【发布时间】:2020-09-10 03:26:49
【问题描述】:
我正在尝试构建文本分类器,通常,我们有一个文本列和基本事实。但我正在研究一个数据集包含许多文本特征的问题。我正在探索如何利用不同的文本功能的不同方式。
例如,我的数据集是这样的
Index_no domain comment_by comment research_paper books_name
01 Science Professor Thesis needs Evolution of MOIRCS
more work Quiescent Deep
Galaxies as a Survey
Function of
Stellar Mass
02 Math Professor Doesn't follow Evolution of
Latex format Quiescent nonlinear
Galaxies as a dispersive
Function of equations
Stellar Mass
这只是一个虚拟数据集,这里我的基本事实 (Y) 是域,特征是 comment_by、comment、research_paper、books_name
如果我使用任何 NLP 模型(RNN-LSTM、Transformers 等),这些模型通常采用一个 3 个暗向量,因为如果我使用一个有效的文本列但文本分类器有多少文本特征?
我尝试过的:
1) 加入所有列并制作一个长字符串
教授论文需要更多工作 静止星系演化作为恒星质量 MOIRCS 深度调查的函数
2) 在列之间使用标记
<CB> Professor <C> Thesis needs more work <R> Evolution of Quiescent Galaxies as a Function of Stellar Mass <B> MOIRCS Deep Survey
<CB>comment_by、<C>comment、<R>research_paper、<B>books_name 的位置
我应该在开头使用<CB>还是这样使用?
Professor <1> Thesis needs more work <2> Evolution of Quiescent Galaxies as a Function of Stellar Mass <3> MOIRCS Deep Survey
3) 对每一列使用不同的密集层(或嵌入),并且 连接它们。
我已经尝试了所有三种方法,还有其他方法可以尝试提高模型的准确性吗?还是提取、组合、加入更好的特征?
提前致谢!
【问题讨论】:
-
嘿Aaditya,你解决了上述问题吗?我也在寻找同样的解决方案。如果您已解决,请在答案中发布。
标签: machine-learning keras deep-learning neural-network nlp