LeeSureman / Flat-Lattice-Transformer

code for ACL 2020 paper: FLAT: Chinese NER Using Flat-Lattice Transformer
1k stars 178 forks source link

ImportError: cannot import name '_get_file_name_base_on_postfix' from 'fastNLP.modules.utils' #36

Closed ArlanCooper closed 3 years ago

ArlanCooper commented 3 years ago

在调用fastNLP_module.py 的时候报这个错,报错地方: from fastNLP.modules.utils import _get_file_name_base_on_postfix

我去fastNLP.modules.utils 这个里面找了,确实没有这个方法,是因为fastNLP的版本问题吗?还是其他什么原因呢

geekjuruo commented 3 years ago

pip uninstall fastNLP pip install fastNLP==0.5.0

LeeSureman commented 3 years ago

pip uninstall fastNLP pip install fastNLP==0.5.0

感谢回复

ArlanCooper commented 3 years ago

pip uninstall fastNLP pip install fastNLP==0.5.0

感谢,已经修改成功