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

read vocab bug #10

Open
luckystar1992 opened this issue Nov 4, 2016 · 0 comments
Open

read vocab bug #10

luckystar1992 opened this issue Nov 4, 2016 · 0 comments

Comments

@luckystar1992
Copy link

when read the vocab, if it is a '' character, it will return a hash code -1, compare to the origin source code of google, I found a missing at code code.

if ((vocab[a].cn < min_count)&& (a != 0)) { vocab_size--; free(vocab[a].word); vocab[a].word = NULL; }

it is the &&(a!=0)

dav added a commit that referenced this issue Jan 8, 2018
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