摘要:AbstractTo improve text sentiments classification issues, such as information loss and insensitivity to spatial information, this paper proposes a text sentiment classification model based on the capsule network (T-Caps), which uses the Transformer to extract low-level text features. The method iteratively updates capsule network parameters through optimized dynamic routing algorithms and global parameter sharing, and it obtains the relationship between local features of the text and the overall emotional polarity to save the information integrity of text features. By comparing with multiple models, we find that the Transformer has the strongest feature extraction capability. The experimental results show that our model is capable of extracting more discriminative semantic features and yields a significant performance gain compared to other baseline methods.