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

de_core_news_sm和en_core_web_sm应该放在哪个目录下 #9

Open
xiao-liya opened this issue Apr 21, 2024 · 0 comments
Open

de_core_news_sm和en_core_web_sm应该放在哪个目录下 #9

xiao-liya opened this issue Apr 21, 2024 · 0 comments

Comments

@xiao-liya
Copy link

我是在github上下载的两个模型,不知道放在哪个目录下,会报错:
Traceback (most recent call last):
File "/home/liying/transformer-pytorch-master/train.py", line 213, in
main()
File "/home/liying/transformer-pytorch-master/train.py", line 148, in main
problem.prepare(opt.problem, opt.data_dir, opt.max_length,
File "/home/liying/transformer-pytorch-master/dataset/problem.py", line 10, in prepare
from dataset import translation
File "/home/liying/transformer-pytorch-master/dataset/translation.py", line 19, in
spacy_de = spacy.load('de_core_news_sm')
File "/opt/conda/lib/python3.10/site-packages/spacy/init.py", line 51, in load
return util.load_model(
File "/opt/conda/lib/python3.10/site-packages/spacy/util.py", line 472, in load_model
raise IOError(Errors.E050.format(name=name))
OSError: [E050] Can't find model 'de_core_news_sm'. It doesn't seem to be a Python package or a valid path to a data directory.
请问怎么解决

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