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

Should we do this as a batch instead of one sentence at a time? #43

Open
NirantK opened this issue Oct 8, 2020 · 1 comment
Open

Should we do this as a batch instead of one sentence at a time? #43

NirantK opened this issue Oct 8, 2020 · 1 comment
Assignees

Comments

@NirantK
Copy link
Owner

NirantK commented Oct 8, 2020

Reference Code: https://github.com/NirantK/Hinglish/blob/2798fda87b9b28fa1d7921203ed466c9fd23a28d/hinglishutils.py#L401-#L408

Recommended approach from Huggingface from here:

batch_sentences = ["Hello I'm a single sentence",
                   "And another sentence",
                   "And the very very last one"]
encoded_inputs = tokenizer(batch_sentences)
print(encoded_inputs)
@NirantK
Copy link
Owner Author

NirantK commented Oct 19, 2020

Following up -- did you get a chance to look at this?

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