Skip to content

Support for new OPUS-MT models #94

@iliaschalkidis

Description

@iliaschalkidis

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
....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions