shiyybua / NER

基于tensorflow深度学习的中文的命名实体识别
1.04k stars 400 forks source link

预测时出现错误 #60

Open amberlwan opened 6 years ago

amberlwan commented 6 years ago

building word index... source vocabulary file has already existed, continue to next stage. target vocabulary file has already existed, continue to next stage. loading word embedding, it will take few minutes... Traceback (most recent call last): File "/home/ontoweb/wanglixia/NER-BiRNN-CRF-shiyybua/rnn.py", line 189, in iterator = get_predict_iterator(src_vocab_table, vocab_size, BATCH_SIZE) File "/home/ontoweb/wanglixia/NER-BiRNN-CRF-shiyybua/utils.py", line 231, in get_predict_iterator pred_dataset = tf.contrib.data.TextLineDataset(pred_file) AttributeError: 'module' object has no attribute 'TextLineDataset' ,不知道该怎么解决

amberlwan commented 6 years ago

已解决