Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difference in unpadded length of input_ids and label_ids #66

Open
vardaan123 opened this issue Jan 8, 2020 · 0 comments
Open

Difference in unpadded length of input_ids and label_ids #66

vardaan123 opened this issue Jan 8, 2020 · 0 comments

Comments

@vardaan123
Copy link

In the function convert_examples_to_features, each word may be split into >1 word by the BERT tokenizer

token = tokenizer.tokenize(word)
tokens.extend(token)

but the length of labels remains the same. So, the unpadded length of input_ids and label_ids is not the same in such cases. What is the intuition behind this? Is this a bug or done purposefully?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant