fastnlp / fastNLP

fastNLP: A Modularized and Extensible NLP Framework. Currently still in incubation.
https://gitee.com/fastnlp/fastNLP
Apache License 2.0
3.06k stars 450 forks source link

Can't find model 'en' #341

Closed Styx-TZ closed 3 years ago

Styx-TZ commented 3 years ago

使用YelpFullPipe出现的报错。 将源码 classification.py中131行改为 super().init(lower=lower, tokenizer=tokenizer, lang='en_core_web_sm') utils.py中第83行改为 if lang != 'en_core_web_sm': 即可正常运行。 其它pipe中也存在类似问题,建议处理一下lang='en'和lang='en_core_web_sm',增加健壮性。

xuyige commented 3 years ago

感谢您的issue,这个原因可能是因为spacy的版本升级导致的,我们将在下个版本对此进行修复