快速文本中多标签的标签的正确格式是什么? [英] What is the right format for label for multi label in fasttext?

查看:81
本文介绍了快速文本中多标签的标签的正确格式是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我正在使用Fasttext进行文本分类的堆栈溢出标记预测中.

Currently I am working on Stack overflow tag prediction where I am using fasttext for text classification.

我想知道标签多类时标签的正确格式是什么.

I wanted to know that what is the correct format for label for if label multiclass.

 1.) __label__toxic__label__racist__label__insult
2.)__label__toxic, __label__racist, __label__insult

3.)__label__toxic __label__racist __label__insult
4.)__label__toxic,__label__racist,__label__insult

所以有人可以告诉我哪个是真的.

So can someone tells me which one is true.

推荐答案

第三个是正确的格式,如您在用于文本分类的FastText教程:

The third is the correct format, as you can see in this example file from FastText tutorial for text classification:

__ label__sauce __label__cheese土豆淀粉对奶酪酱配方的影响有多大?__label__sauce __label__存储寿命__label__酸度__label__蛋黄酱调节和平衡现成包装的蛋黄酱和其他酱料

__label__sauce __label__cheese How much does potato starch affect a cheese sauce recipe? __label__sauce __label__storage-lifetime __label__acidity __label__mayonnaise Regulation and balancing of readymade packed mayonnaise and other sauces

这篇关于快速文本中多标签的标签的正确格式是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆