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

Add truncation argument to remove truncation warnings #68

Merged
merged 1 commit into from
Jul 1, 2020

Conversation

jinyongyoo
Copy link
Contributor

Like issue found here, transformers v3.0.0 has an updated tokenizer API where if you supply max_length argument, you must also supply truncation=(True|False) argument to let the tokenizer know you want truncation to happen. If truncation argument is not set, warnings are generated.

@Tiiiger Tiiiger merged commit 8640092 into Tiiiger:master Jul 1, 2020
@Tiiiger
Copy link
Owner

Tiiiger commented Jul 1, 2020

Thank you for the contribution! This is fast.

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

Successfully merging this pull request may close these issues.

None yet

2 participants