Phantom Ring

Results 2 comments of Phantom Ring

> > 执行pip install -r requirements.txt的时候会给你安装FastHan2.0.0版本,但会报错,pip安装1.7版本的即可。如果FastHan初次运行连不上网下不了模型,去它的Issues里找百度网盘下载模型,然后修改model = FastHan()这句为model = FastHan(url="模型路径")即可 > > 请问具体来说是怎么解决的?我使用`pip install fasthan==1.7`之后,python报错`ModuleNotFoundError: No module named 'fastNLP.core.optimizer'` 我是先卸载了fasthan然后安装1.7版本,之后导入下载好的模型就行了。你这个报错应该是因为fastnlp版本不对吧,我记得fasthan里写了它的1.x版本对应的fastnlp版本,记得是要fastnlp=1.0?明天我给你看看

这里只有1.x版本的模型 链接:https://pan.baidu.com/s/1w9EL-1fwAF2GSD52Bnf1GA 提取码:fhan