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
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
请问是什么问题?