liu-nlper / NER-LSTM-CRF

An easy-to-use named entity recognition (NER) toolkit, implemented the Bi-LSTM+CRF model in tensorflow.
347 stars 117 forks source link

你好 有个问题 #22

Closed LuckyPickleZZ closed 6 years ago

LuckyPickleZZ commented 6 years ago

我跑preprocess和train的时候,都出现了list indices must be integers or slices, not str 请问这个怎么解决

LuckyPickleZZ commented 6 years ago

Traceback (most recent call last): File "C:/Users/lenovo/Desktop/NER-LSTM-CRF-master/train.py", line 97, in main() File "C:/Users/lenovo/Desktop/NER-LSTM-CRF-master/train.py", line 27, in main config['model_params']['embed_params']['feature_name']['shape'] TypeError: list indices must be integers or slices, not str

whuzzh commented 6 years ago

你好 请问测试的时候测试文件格式是怎样的? 测试文件需要自己预先构造好分词和词性标注,然后结果会生成实体识别结果?

LuckyPickleZZ commented 6 years ago