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

index out of bounds #2

Closed
lambda-ai opened this issue May 16, 2018 · 1 comment
Closed

index out of bounds #2

lambda-ai opened this issue May 16, 2018 · 1 comment

Comments

@lambda-ai
Copy link

Hi,
after correcting a few small typos, I'm running into a real error, apparently related to a wrong embedding size:

Traceback (most recent call last):
File "/home/mat/repos/tmp/LEAM/main.py", line 275, in
main()
File "/home/mat/repos/tmp/LEAM/main.py", line 151, in main
opt.W_class_emb = load_class_embedding( wordtoix, opt)
File "/home/mat/repos/tmp/LEAM/utils.py", line 90, in load_class_embedding
value_list = [ [ opt.W_emb[i] for i in l] for l in id_list]
IndexError: index 514556 is out of bounds for axis 0 with size 300

This is using your latest checkout and the data downloaded from your google drive.

Thanks,
-Mathias

@guoyinwang
Copy link
Owner

Thanks for pointing this out. It due mismatch of the dataset process. I have corrected the data format. Please redownload the file. Then it should work. Also, would you mind pointing out the small typos?

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