facebookresearch / fastText

Library for fast text representation and classification.
https://fasttext.cc/
MIT License
25.93k stars 4.72k forks source link

The prediction result is the same #1155

Open ninesky110 opened 4 years ago

ninesky110 commented 4 years ago

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Read 4M words Number of words: 137359 Number of labels: 23 Progress: 100.0% words/sec/thread: 96524 lr: 0.000000 avg.loss: 0.818525 ETA: 0h 0m 0s ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ No matter what I enter, the predicted result is the same label,and I set the epoch from 5 to 3000, it doesn't work. what is wrong with the model? help me

MrRace commented 3 years ago

Maybe your data format is not follow fasttext's standard, could you paste one data example?

ninesky110 commented 3 years ago

Maybe your data format is not follow fasttext's standard, could you paste one data example?

this is my data example ++++++++++++++++++++++++++++ label531 , 中华 名 间 鬼故事 label535 , 探索 太空 奥秘 label521 , 电视局 大唐 荣耀 label3613 , 入行论 讲记 175 智圆 法师 label521 , 王牌 宾王 卓伟 label3496 , 画皮 聊斋 label521 , 恐怖片 label3670 , 樊登 读书 本书 戒烟 label543 , 初中英语 初级 label3613 , 小说 行走 阴阳 label529 , 安妮 宝贝 选文 label521 , 别闹 美国宇航局 label547 , 老梁 说 天下 2020 label547 , 见字 如面 第四季 label521 , 大君 哥哥 背影 label531 , 王立 群 三家 分晋 史记 秦始皇 全集

MrRace commented 3 years ago

replace the comma with space

ninesky110 commented 3 years ago

replace the comma with space

thank you ,it works