PeerJ Computer Science (Jan 2022)

Attention enhanced capsule network for text classification by encoding syntactic dependency trees with graph convolutional neural network

  • Xudong Jia,
  • Li Wang

DOI
https://doi.org/10.7717/peerj-cs.831
Journal volume & issue
Vol. 7
p. e831

Abstract

Read online Read online

Text classification is a fundamental task in many applications such as topic labeling, sentiment analysis, and spam detection. The text syntactic relationship and word sequence are important and useful for text classification. How to model and incorporate them to improve performance is one key challenge. Inspired by human behavior in understanding text. In this paper, we combine the syntactic relationship, sequence structure, and semantics for text representation, and propose an attention-enhanced capsule network-based text classification model. Specifically, we use graph convolutional neural networks to encode syntactic dependency trees, build multi-head attention to encode dependencies relationship in text sequence, merge with semantic information by capsule network at last. Extensive experiments on five datasets demonstrate that our approach can effectively improve the performance of text classification compared with state-of-the-art methods. The result also shows capsule network, graph convolutional neural network, and multi-headed attention has integration effects on text classification tasks.

Keywords