You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I've been trying to use your code (which is amazingly clear and easy to understand, great job and thanks a lot) on a different corpus (this one) but I got an issue on line 102 of word2vec.lua
I don't know why but word_index had a value over vocab_size (in this case vocab_size is 1169). So I fixed it my changing line 104 :
from "if word_index > self.vocab_size then"
to "if word_index >= self.vocab_size then"
No PR, extremely simple fixing, but I can't figure out if it changes anything.
Thanks again for your code !
The text was updated successfully, but these errors were encountered:
Hey, I've been trying to use your code (which is amazingly clear and easy to understand, great job and thanks a lot) on a different corpus (this one) but I got an issue on line 102 of word2vec.lua
I don't know why but word_index had a value over vocab_size (in this case vocab_size is 1169). So I fixed it my changing line 104 :
No PR, extremely simple fixing, but I can't figure out if it changes anything.
Thanks again for your code !
The text was updated successfully, but these errors were encountered: