shiyybua / NER

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

预测时报错,求解 #69

Closed tangchao19970707 closed 5 years ago

tangchao19970707 commented 5 years ago

E:\NER-master>python rnn.py building word index... source vocabulary file has already existed, continue to next stage. loading word embedding, it will take few minutes... Traceback (most recent call last): File "rnn.py", line 153, in embedding = load_word2vec_embedding(vocab_size) File "E:\NER-master\utils.py", line 264, in load_word2vec_embedding embeddings[index] = coefs # 将词和对应的向量存到字典里 IndexError: index 2 is out of bounds for axis 0 with size 2

请问是什么问题?