{'fraction_non_alphanumeric': 0.027164685908319185, 'fraction_numerical': 0.0, 'mean_word_length': 5.2712765957446805, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Trans-CNN: A Sentiment Analysis Model Which Focuses on Key Information of Sentence

Most of sentiment analysis methods rely on large-scale pre-trained model, which require a lot of computing resources.Moreover, the current model only extracts features on the sentence level, which cannot consider the influence of sentence meaning or local keywords on emotional polarity.In order to solve these problems, we use multi-head attention,recurrent neural network(RNN) and convolutional neural network(CNN), by paying attention to the global and local feature information of sentences, and enhancing the expression of emotional features of sentences. Without the help of pre-trained model, we propose Trans-CNN.Firstly we get the vector representation of the sentences. Then with the help of multi-head attention mechanism and CNN, we focus on the global and local feature information of sentences. Finally the feature information is fused and the softmax classifier is used to get the emotional label of the text. Experiments show that the proposed method has better performance on IMDB data set. Compared with models without pre-trained method,our model achieves better performance.