text-classification-cnn-rnn icon indicating copy to clipboard operation
text-classification-cnn-rnn copied to clipboard

一段内容多个分类的问题

Open Chen65010445 opened this issue 7 years ago • 5 comments

你好 我现在在用自己语料进行训练,想问一下,如果语料的内容包含多个分类,是不是应该按照内容里描述的那样,每个分类后都要跟一段同样内容的语料?

Chen65010445 avatar Sep 05 '18 00:09 Chen65010445

hi ,你用这个例子直接跑train和test,test不报错么?可以正常运行?为什么我这里跑test说embedding 命名已被占用呢。我查这个是不能重复命名的,但作者例子里train和test都用的这个名字。

jiyongjie1234 avatar Sep 05 '18 08:09 jiyongjie1234

我还没有试过 不敢试 所以提前问问

| | 陈佳庚 邮箱:[email protected] |

签名由 网易邮箱大师 定制

在2018年09月05日 16:56,jiyongjie1234 写道:

hi ,你用这个例子直接跑train和test,test不报错么?可以正常运行?为什么我这里跑test说embedding 命名已被占用呢。我查这个是不能重复命名的,但作者例子里train和test都用的这个名字。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Chen65010445 avatar Sep 05 '18 23:09 Chen65010445

我同样遇到了文档多分类问题。我这样理解。

在单标签时,在 CNN 最后全连接,softmax 输出的时候,概率最高的作为文档的标签。 多标签的时候,softmax 直接输出多个标签的概率,用这些作为标签,或者选择概率最大的前三位做标签。

leonall avatar Sep 26 '18 05:09 leonall

请问您的源码可以做句子多分类么,我改用自己的数据集做句子分类一直报这个错误:InvalidArgumentError (see above for traceback): Must provide as many biases as the last dimension of the input tensor: [256] vs. [0,600,10] [[node cnn/conv/BiasAdd (defined at E:\模型\text-classification-cnn-rnn-master\cnn_model.py:50) ]]

Qinshimingyue23 avatar Jul 31 '19 10:07 Qinshimingyue23

我同样遇到了文档多分类问题。我这样理解。

在单标签时,在 CNN 最后全连接,softmax 输出的时候,概率最高的作为文档的标签。 多标签的时候,softmax 直接输出多个标签的概率,用这些作为标签,或者选择概率最大的前三位做标签。

请问概率值怎么输出出来

prozyworld avatar Jul 02 '21 08:07 prozyworld