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

load_embeddings.py run error #5

Open
yja1 opened this issue Dec 5, 2017 · 1 comment
Open

load_embeddings.py run error #5

yja1 opened this issue Dec 5, 2017 · 1 comment

Comments

@yja1
Copy link

yja1 commented Dec 5, 2017

d = len(all_vocab['the'])
when run this line occur error, because all_vocab is None:

loading vocab...
19538 0
Traceback (most recent call last):
File "load_embeddings.py", line 24, in
d = len(all_vocab['the'])
KeyError: 'the'

environment: anaconda python3, I have change some function from python2 to python3.

@kulatu
Copy link

kulatu commented Jul 7, 2018

@yja1 have you found any solution to this?

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

2 participants