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 support for WMT21 tokenizer in M2M100Tokenizer #14376

Merged
merged 1 commit into from
Nov 13, 2021

Conversation

patil-suraj
Copy link
Contributor

@patil-suraj patil-suraj commented Nov 12, 2021

What does this PR do?

The tokenizer for WMT21 translation models is similar to M2M100Tokenizer with the only difference being it uses different language codes.

This PR adds support for wmt21 tokenizers in M2M100Tokenizer by adding the language_codes attribute which specifies what language codes to use.

@patil-suraj patil-suraj changed the title Add support WMT21 tokenizer in M2M100Tokenizer Add support for WMT21 tokenizer in M2M100Tokenizer Nov 12, 2021
Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this!

@patil-suraj patil-suraj merged commit 3165930 into huggingface:master Nov 13, 2021
@patil-suraj patil-suraj deleted the wmt21-tok branch November 13, 2021 08:52
Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@patil-suraj patil-suraj mentioned this pull request Jan 14, 2022
11 tasks
Albertobegue pushed a commit to Albertobegue/transformers that referenced this pull request Jan 27, 2022
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

3 participants