shiyybua / NER

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

IndexError: index 2 is out of bounds for axis 0 with size 2 #73

Open nan777999 opened 4 years ago

nan777999 commented 4 years ago

source vocabulary file has already existed, continue to next stage. loading word embedding, it will take few minutes... Traceback (most recent call last): File "e:/实体识别/NER-master/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

请问这是为什么 。我应该改哪里