arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1911.04115cs.CL
收藏

像素嵌入文本分类

Text classification with pixel embedding

Southwestern University of Finance and Economics(西南财经大学);The University of Hong Kong(香港大学)

Bin Liu, Guosheng Yin, Wenbin Du

摘要:

我们提出了一个新的框架来理解文本转换成视频一样的三维张量的句子或文章。对应于张量的一个切片的每一帧都是由单词的形状渲染的单词图像。张量的长度等于句子或文章中的字数。提出的从文本到三维张量的转换使得它非常方便地实现了一个$n$ -gram模型与卷积神经网络的文本分析。具体地,我们在3维文本张量上施加3维卷积核。卷积核大小的前两个维度等于单词图像的大小,并且核大小的最后一个维度是$n$。也就是说,每当我们在单词序列上滑动三维内核时,卷积就覆盖$n$单词图像并输出标量。通过对每个$n$ -gram以及具有多个内核的句子或文章连续迭代该过程,我们获得了二维特征图。随后的1维最大时间池应用于该特征图,并且三个完全连接的层最终用于进行文本分类。几个文本分类数据集的实验表明,与现有的方法相比,使用该模型具有令人惊讶的优越性能。

英文摘要:

We propose a novel framework to understand the text by converting sentences or articles into video-like 3-dimensional tensors. Each frame, corresponding to a slice of the tensor, is a word image that is rendered by the word's shape. The length of the tensor equals to the number of words in the sentence or article. The proposed transformation from the text to a 3-dimensional tensor makes it very convenient to implement an $n$-gram model with convolutional neural networks for text analysis. Concretely, we impose a 3-dimensional convolutional kernel on the 3-dimensional text tensor. The first two dimensions of the convolutional kernel size equal the size of the word image and the last dimension of the kernel size is $n$. That is, every time when we slide the 3-dimensional kernel over a word sequence, the convolution covers $n$ word images and outputs a scalar. By iterating this process continuously for each $n$-gram along with the sentence or article with multiple kernels, we obtain a 2-dimensional feature map. A subsequent 1-dimensional max-over-time pooling is applied to this feature map, and three fully-connected layers are used for conducting text classification finally. Experiments of several text classification datasets demonstrate surprisingly superior performances using the proposed model in comparison with existing methods.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑