-
Notifications
You must be signed in to change notification settings - Fork 178
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
关于set_ids 索引的疑问 #18
Comments
0应该是用来给unknown word了,在后面找一下 |
第61行程序 |
那就是给一些非word了?太久忘记了 |
非word应该是为了凑batch在后面添加的padding吧。 代码你可以改一改试一下效果,我实在不记得代码细节了。 @Mryangkaitong |
好的,谢谢 |
请问在ChineseNRE/data/people-relation/data_util.py的54行
set_ids = range(1, len(set_words)+1)
那么“所有单词”列表的id索引是从1开始的,而在使用nn.Embedding时,取某个单词的vec索引是从索引0开始的,不就混乱了吗?
为什么不直接这样set_ids = range(len(set_words))写呢?
谢谢
The text was updated successfully, but these errors were encountered: