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 language_bcp47 tag #4753

Merged
merged 7 commits into from
Jul 27, 2022
Merged

Add language_bcp47 tag #4753

merged 7 commits into from
Jul 27, 2022

Conversation

lhoestq
Copy link
Member

@lhoestq lhoestq commented Jul 27, 2022

Following (internal) https://github.com/huggingface/moon-landing/pull/3509, we need to move the bcp47 tags to language_bcp47 and keep the language tag for iso 639 1-2-3 codes. In particular I made sure that all the tags in languages are not longer than 3 characters. I moved the rest to language_bcp47 and fixed some of them.

After this PR is merged I think we can simplify the language validation from the DatasetMetadata class (and keep it bare-bone just for the tagging app)

PS: the CI is failing because of missing content in dataset cards that are unrelated to this PR

@lhoestq lhoestq requested a review from julien-c July 27, 2022 13:31
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jul 27, 2022

The documentation is not available anymore as the PR was closed or merged.

Copy link
Member

@julien-c julien-c left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

I skimmed through it and it looks good to me 🙂

@lhoestq lhoestq merged commit aa48a29 into main Jul 27, 2022
@lhoestq lhoestq deleted the add-language_bcp47-tag branch July 27, 2022 14:37
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.

3 participants