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

About padding index number #17

Open
ys201810 opened this issue Feb 16, 2022 · 1 comment
Open

About padding index number #17

ys201810 opened this issue Feb 16, 2022 · 1 comment

Comments

@ys201810
Copy link

ys201810 commented Feb 16, 2022

Hi!!

Thanks for great code!
I have one question about padding at dataloaders/bert.py.

tokens = [0] * mask_len + tokens

seq = [0] * padding_len + seq

At this code, if item length is not enough, then pad using [0].
But I think, index 0 already have a Corresponding itemID, so that is padding using real itemID, right?

Thanks

@ys201810
Copy link
Author

ys201810 commented Sep 11, 2023 via email

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