楼主: sound118
1218 2

[实际应用] 用fastrtext做中文文本分类问题 [推广有奖]

  • 2关注
  • 0粉丝

高中生

22%

还不是VIP/贵宾

-

威望
0
论坛币
10 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
330 点
帖子
4
精华
0
在线时间
41 小时
注册时间
2011-4-4
最后登录
2021-7-24

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

这个是我在github https://github.com/pommedeterresautee/fastrtext/issues/34 上提问的,用fastrtext 来做文本分类预测的,以下是英文直接复制过来的,哪位大神帮忙看看,多谢多谢~

I got an issue with Chinese text classification prediction model as folloing:

test_sentences$text2[9]
[1] "蛋白粉 开封 后 两个 月 在 次 食用 味道 发苦"
predict(model,test_sentences$text2[9])
[[1]]
__label__262
0.5312194

predict(model, "蛋白粉 开封 后 两个 月 在 次 食用 味道 发苦")
[[1]]
__label__314
0.9935217

Basically, after you trained the model using "fastrtext", if you try to predict a Chinese tokenized text and put it as an object (e.g. test_sentences$text2[9] in my case), it will give you a wrong prediction with low probability. If you just simply copy the tokenized Chinese text into the prediction model like I did above, it will give a correct one with high probability. I am really confused about this situation. Anyone can help with it? Much appreciated!


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝


沙发
admin_kefu 在职认证  发表于 2019-4-19 15:08:03 |只看作者 |坛友微信交流群
您好,如果您的求助没有解决,请到项目交易发布需求,会有更快更专业的用户帮助您 https://bbs.pinggu.org/prj/

使用道具

藤椅
hjli 发表于 2019-11-26 10:15:54 |只看作者 |坛友微信交流群
您好!请问您的问题解决了吗?能否加我QQ912393320指教一下,我也遇到了同样的问题

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-25 10:25