OSError:[E050]找不到型号'en'.它似乎不是快捷方式链接,Python包或数据目录的有效路径. [英] OSError: [E050] Can't find model 'en'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory
问题描述
当我运行命令时,我尝试在系统中为rasacore设置内容
i try to set things for rasacore in my system when i run the command
python3 -m rasa_nlu.train -c nlu_config.yml --data data/nlu.md -o models --fixed_model_name nlu --project current --verbose
python3 -m rasa_nlu.train -c nlu_config.yml --data data/nlu.md -o models --fixed_model_name nlu --project current --verbose
尝试获取
rasa_nlu.utils.spacy_utils-尝试加载名称为"en"的spacy模型它给出错误为在load_model中的文件"E:\ anaconda \ envs \ bottenv \ lib \ site-packages \ spacy \ util.py",行119引发IOError(Errors.E050.format(name = name))OSError:[E050]找不到型号'en'.它似乎不是快捷方式链接,Python包或数据目录的有效路径.
rasa_nlu.utils.spacy_utils - Trying to load spacy model with name 'en' it gives error as File "E:\anaconda\envs\botenv\lib\site-packages\spacy\util.py", line 119, in load_model raise IOError(Errors.E050.format(name=name)) OSError: [E050] Can't find model 'en'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.
推荐答案
您需要下载并链接要使用的spacy模型.例如
You need to download and link the spacy model you want to use. e.g.
python -m spacy download en_core_web_md
python -m spacy link en_core_web_md en
Also, preconfigured pipelines will be deprecated, see the new guide to choosing a pipeline and pass the components you want explicitly
这篇关于OSError:[E050]找不到型号'en'.它似乎不是快捷方式链接,Python包或数据目录的有效路径.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!