Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nan777999 opened this issue Jun 1, 2020 · 0 comments
Open

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

nan777999 opened this issue Jun 1, 2020 · 0 comments

Comments

@nan777999
Copy link

nan777999 commented Jun 1, 2020

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

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

@nan777999 nan777999 reopened this Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant