FanhuaandLuomu / BiLstm_CNN_CRF_CWS

BiLstm+CNN+CRF 法律文档(合同类案件)领域分词(100篇标注样本)
385 stars 108 forks source link

FileNotFoundError: [Errno 2] No such file or directory: 'corpus' #3

Closed SeekPoint closed 6 years ago

SeekPoint commented 6 years ago

mldl@mldlUB1604:~/ub16_prj/BiLstm_CNN_CRF_CWS$ python3 embedding_model.py Using TensorFlow backend. Traceback (most recent call last): File "embedding_model.py", line 20, in sentences=MySentences([corpus_path+os.sep+fname for fname in os.listdir(corpus_path)]) FileNotFoundError: [Errno 2] No such file or directory: 'corpus' mldl@mldlUB1604:~/ub16_prj/BiLstm_CNN_CRF_CWS$

QLMX commented 6 years ago

os.listdir需要绝对路径

SeekPoint commented 6 years ago

works