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

Why do we need [PAD] as a valid sequence? #73

Open
minstar opened this issue Feb 4, 2020 · 2 comments
Open

Why do we need [PAD] as a valid sequence? #73

minstar opened this issue Feb 4, 2020 · 2 comments

Comments

@minstar
Copy link

minstar commented Feb 4, 2020

In converting examples to features function (convert_examples_to_features), we set valid.append(1) at [PAD] position.
Why do we have to use [PAD] position?
Can anyone explain this to me?

@kushalj001
Copy link

@minstar Did you find the reason for this?

@minstar
Copy link
Author

minstar commented Jul 21, 2020

@minstar Did you find the reason for this?

I just used HuggingFace code (run_ner.py) to reproduce results.
And as I think, the pad position only needs to be considered to distinguish with the context.
Thus, in this case, it really doesn't matter to append (1) or append (-100)

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

2 participants