8000 [fix] Allow to build_vocab with full train config, patch vocab validation by francoishernandez · Pull Request #49 · eole-nlp/eole · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[fix] Allow to build_vocab with full train config, patch vocab validation #49

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

Merged
merged 2 commits into from
Jul 2, 2024

Conversation

francoishernandez
Copy link
Member
@francoishernandez francoishernandez commented Jul 2, 2024

By default, all configs are set with extra="allow"``. To facilitate building the vocab with a full train config, e.g. in wiki_103orwmt17, we'll be more permissive for BuildVocabConfig`.

Note: pydantic 2.8.0 upgrade triggers errors that were not raised before. This outlined some remaining issues around some vocab/data validation logic. This PR provides some patches, but this logic might be reviewed more in depth at some point.
A somewhat cleaner way might be to nest the VocabConfig in a vocab key, and pop it when needed (like already done for data in some places).

@francoishernandez francoishernandez merged commit a70f857 into main Jul 2, 2024
4 checks passed
@francoishernandez francoishernandez deleted the permissive_build_vocab_config branch February 7, 2025 08:56
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.

1 participant
0