crownpku / Information-Extraction-Chinese

Chinese Named Entity Recognition with IDCNN/biLSTM+CRF, and Relation Extraction with biGRU+2ATT 中文实体识别与关系提取
2.23k stars 814 forks source link

run main.py and have import error #11

Open wangyingshuai opened 6 years ago

wangyingshuai commented 6 years ago

when I run python3 main.py --train=True --clean=True --model_type=idcnn in my GPU,the error is: Traceback (most recent call last): File "main.py", line 10, in from model import Model File "/root/wangys/NLP/Information-Extraction-Chinese-master/NER_IDCNN_CRF/model.py", line 8, in from NER_IDCNN_CRF.utils import result_to_json ImportError: No module named 'NER_IDCNN_CRF'

crownpku commented 6 years ago

model.py, line 8 should be:

from utils import result_to_json

instead of

from NER_IDCNN_CRF.utils import result_to_json

Perhaps something was wrong when you clone the repo?

wangyingshuai commented 6 years ago

thank you ,error has solved