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

when I run the python preprocess.py -lang_src de -lang_trg en -share_vocab -save_data m30k_deen_shr.pkl.I have faced a problem #218

Open
dapaolufuduizhang opened this issue Feb 9, 2024 · 1 comment

Comments

@dapaolufuduizhang
Copy link

when I run the python preprocess.py -lang_src de -lang_trg en -share_vocab -save_data m30k_deen_shr.pkl.I have face a problem ,which is Namespace(data_src=None, data_trg=None, keep_case=False, lang_src='de', lang_trg='en', max_len=100, min_word_count=3, save_data='m30k_deen_shr.pkl', share_vocab=True) Traceback (most recent call last): File "preprocess.py", line 335, in <module> main_wo_bpe() File "preprocess.py", line 270, in main_wo_bpe src_lang_model = spacy.load(opt.lang_src) File "E:\app\aconda\envs\att\lib\site-packages\spacy\__init__.py", line 30, in load return util.load_model(name, **overrides) File "E:\app\aconda\envs\att\lib\site-packages\spacy\util.py", line 175, in load_model raise IOError(Errors.E050.format(name=name)) OSError: [E050] Can't find model 'de'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory..
How can I solve it?

@dapaolufuduizhang dapaolufuduizhang changed the title when I run the python preprocess.py -lang_src de -lang_trg en -share_vocab -save_data m30k_deen_shr.pkl.I have face a problem when I run the python preprocess.py -lang_src de -lang_trg en -share_vocab -save_data m30k_deen_shr.pkl.I have faced a problem Feb 9, 2024
@WLSheng
Copy link

WLSheng commented Mar 28, 2024

Run conda prompt as an administrator and download it:
python -m spacy download en
python -m spacy download de

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

2 participants