You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your great project, the code is quite readable and efficient!
I could successfully run the train_model.py and the model can be saved successfully as well.
The problem is when I tried to run predict.py, it comes out a following error message: Traceback (most recent call last): File "E:/chinese_ner-master/chinese_ner-master/predict.py", line 70, in <module> predict = ner.batch_predict_ner() File "E:/chinese_ner-master/chinese_ner-master/predict.py", line 55, in batch_predict_ner sentence_ner.append(self.source_data[i].tolist()[j]) AttributeError: 'str' object has no attribute 'tolist'
Thanks again!
The text was updated successfully, but these errors were encountered:
Hi @jakeywu,
Thanks for your great project, the code is quite readable and efficient!
I could successfully run the train_model.py and the model can be saved successfully as well.
The problem is when I tried to run predict.py, it comes out a following error message:
Traceback (most recent call last): File "E:/chinese_ner-master/chinese_ner-master/predict.py", line 70, in <module> predict = ner.batch_predict_ner() File "E:/chinese_ner-master/chinese_ner-master/predict.py", line 55, in batch_predict_ner sentence_ner.append(self.source_data[i].tolist()[j]) AttributeError: 'str' object has no attribute 'tolist'
Thanks again!
The text was updated successfully, but these errors were encountered: