yongyehuang / zhihu-text-classification

[2017知乎看山杯 多标签 文本分类] ye组(第六名) 解题方案
https://biendata.com/competition/zhihu/
405 stars 156 forks source link

UNKNOW word index? #2

Closed Irvinglove closed 7 years ago

Irvinglove commented 7 years ago

Dear yongye: Thank you for providing such excellent code. I encountered a problem when I ran the word2id.py file. The function get_id() use the index 1 for unknown word. However, we use index 0 for unknown word when build the sr_word2id variable . Is there something wrong?

yongyehuang commented 7 years ago

@Irvinglove Thanks for your question and reminders. I have made some mistakes in the previous code, though it won't affect the normal running. Now I have corrected it, please check it out.