Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A Text Sentiment Classification Algorithm Based on Convolutional Neural Network and Attention Mechanism

A convolutional neural network and emotion classification technology, applied in biological neural network models, text database clustering/classification, neural architecture, etc., can solve problems such as rigidity, lack of diversity, and fixed local information granularity, and achieve good classification results. , increasing the effect of residual connections and nonlinearities

Active Publication Date: 2021-09-21
SOUTH CHINA UNIV OF TECH
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, ordinary convolutional neural networks set fixed filters and pooling operation types, and the captured local information has a fixed granularity, is relatively rigid, and lacks diversity.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A Text Sentiment Classification Algorithm Based on Convolutional Neural Network and Attention Mechanism
  • A Text Sentiment Classification Algorithm Based on Convolutional Neural Network and Attention Mechanism

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The present invention will be further described below in conjunction with specific examples.

[0027] see figure 1 with figure 2 As shown, the text sentiment classification algorithm based on convolutional neural network and attention mechanism provided in this embodiment includes the following steps:

[0028] 1) Establish a convolutional neural network that includes multiple convolutions and pooling, and use sentiment classification text for training to obtain the first model; wherein, establishing a convolutional neural network that includes multiple convolutions and pooling includes the following steps :

[0029] 1.1) Establish two different types of convolutions. The convolution kernel of the first kind of convolution is the overall convolution kernel, which matches the entire word vector. The convolution kernel of the second convolution is a single-dimensional convolution kernel, which is in the word Matches are performed on each dimension of the vector. Suppo...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a text emotion classification algorithm based on a convolutional neural network and an attention mechanism. One model; 2) Establish a multi-head dot product attention mechanism with residual connection and nonlinearity, and use sentiment classification text for training to obtain the second model; 3) Model fusion of the two models to obtain text sentiment classification . The present invention integrates multiple granularities, multiple convolutions, and multiple pools into the convolutional neural network, introduces residual connections and nonlinearity into the attention mechanism, and calculates multiple attentions to obtain two text emotion classification models, Through the Bagging model fusion method, the fusion model is obtained, and the text is classified, which can combine the advantages of the convolutional neural network to better capture local features and the attention mechanism to better capture global information, and obtain a more comprehensive text emotion classification model.

Description

technical field [0001] The invention relates to the field of text classification of natural language processing, in particular to a text emotion classification algorithm based on a convolutional neural network and an attention mechanism. Background technique [0002] Text classification has various applications, such as sentiment polarity classification, topic classification, etc. For text classification, there are many commonly used methods, such as unsupervised methods based on dictionaries and rules, and supervised methods based on machine learning. The dictionary-based method uses authoritative dictionaries and artificially constructs features according to experience. The accuracy of the model is high, but the recall rate of the model is low due to the low coverage of the dictionary. Supervised methods based on machine learning, modeled using machine learning methods such as SVM, maximum entropy model, naive Bayesian, and KNN. These machine learning methods are relativ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/35G06F40/284G06N3/04
CPCG06F40/284G06N3/045
Inventor 董敏汤雪毕盛
Owner SOUTH CHINA UNIV OF TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products