UKPLab / EasyNMT

Easy to use, state-of-the-art Neural Machine Translation for 100+ languages
Apache License 2.0
1.16k stars 113 forks source link

Question about OSError: Helsinki-NLP/opus-mt-fa-en is not a local folder #67

Closed Di-Ma-S21 closed 2 years ago

Di-Ma-S21 commented 2 years ago

Hi,

Thanks for releasing this NMT platform! We just have installed it on Windows using the pip command provided on your GitHub. When we follow you commands to run the Opus-mt model for translation: EasyNMT_model = EasyNMT('opus-mt') and EasyNMT_model.translate('our strings'), it always returns the following OSError:

OSError: Helsinki-NLP/opus-mt-fa-en is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models' If this is a private repository, make sure to pass a token having permission to this repo with 'use_auth_token' or log in with 'huggingface-cli login' and pass 'use_auth_token=True'.

Could you please help us with this issue?

Thanks!

nreimers commented 2 years ago

The model identifies your input as language 'fa', but sadly there is no model that can translate from fa to en.

You might need to use the M2M model, if it supports fa->en translation