Skip to content
New issue

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

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

Already on GitHub? # 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.

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

Successfully merging this pull request may close these issues.

2 participants