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

Support for new OPUS-MT models #94

Open
iliaschalkidis opened this issue Sep 19, 2023 · 0 comments
Open

Support for new OPUS-MT models #94

iliaschalkidis opened this issue Sep 19, 2023 · 0 comments

Comments

@iliaschalkidis
Copy link

It seems that OPUS-MT models have been updated recently, and the library can't locate them in the old HuggingFace links...

They seem to have released what they call tc-big models, e.g., https://huggingface.co/Helsinki-NLP/opus-mt-tc-big-el-en. Is it possible to do a hotfix to support loading the new models?

With the current code, I do the following call:

from easynmt import EasyNMT

model = EasyNMT('opus-mt')

translated_sentences = model.translate('Γειά σου, τι κάνεις;',
                                                   source_lang='el',
                                                   target_lang='en',
                                                   perform_sentence_splitting=True)

and I get the following error:

Repository Not Found for url: https://huggingface.co/Helsinki-NLP/opus-mt-el-en/resolve/main/source.spm
....
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

No branches or pull requests

1 participant