We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In preprocess/data2pkl.py line 43, 44:
preprocess/data2pkl.py
sent = f.readline().strip().split(",") sentences.append([(x+1) for x in list(map(int, sent))])
sent should be the word id list of current sentence. But why x+1 (instead of x)?
sent
x+1
x
Is it because a new token '' is added to vocaburary?
Thanks.
The text was updated successfully, but these errors were encountered:
Index 0 is used for a special token [UNK], which is represented for the unseen words in Glove.
Sorry, something went wrong.
No branches or pull requests
In
preprocess/data2pkl.py
line 43, 44:sent
should be the word id list of current sentence. But whyx+1
(instead ofx
)?Is it because a new token '' is added to vocaburary?
Thanks.
The text was updated successfully, but these errors were encountered: