Comment sentiment analysis method based on improved neural network

A sentiment analysis, neural network technology, applied in the field of comment sentiment analysis based on improved neural network, can solve the problems of ignoring the relationship between words and word sequences, unable to sequence modeling, unable to solve long sequence modeling, etc., to avoid length differences. Effect

Active Publication Date: 2020-05-12
CHENGDU UNION BIG DATA TECH CO LTD
View PDF14 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The bag-of-words model only considers information related to word frequency and ignores the sequence relationship between words, so it cannot effectively perform sequence modeling
The Markov hypothesis believes that "the appearance of a word is only related to its first k words", so it cannot solve the problem of long sequence modeling

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
  • Comment sentiment analysis method based on improved neural network
  • Comment sentiment analysis method based on improved neural network
  • Comment sentiment analysis method based on improved neural network

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further elaborated below in conjunction with the accompanying drawings.

[0028] In this example, see figure 1 and figure 2 As shown, the present invention proposes a comment sentiment analysis method based on an improved neural network, comprising steps:

[0029] For the input comment text data, construct a comment representation matrix;

[0030] Calculate the comment representation matrix through multiple convolution kernels in turn to obtain feature maps of different sizes;

[0031] Calculate each resulting feature map using pyramid pooling to obtain a fixed-length feature vector;

[0032] The feature vectors of each feature map obtained by splicing are connected to the fully connected layer;

[0033] Use the Softmax function to map the output of the fully connected layer to a probability distribution vector, and each dimension of the v...

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 comment sentiment analysis method based on an improved neural network, and the method comprises the steps: constructing a comment representation matrix for inputted comment text data; calculating a comment representation matrix through a plurality of convolution kernels in sequence to obtain feature maps of different sizes; calculating each obtained feature map by using pyramid pooling to obtain a feature vector with a fixed length; splicing to obtain a feature vector of each feature map, and connecting the feature vectors with the full connection layer; mapping the output of the full connection layer into a probability distribution vector by using a Softmax function, wherein each dimension of the probability distribution vector corresponds to an emotion categoryin the emotion analysis task; and selecting the emotion category corresponding to the value with the maximum probability in the probability distribution vector as a comment emotion judgment result. According to the method, the text sequence can be effectively modeled, and the sequence characteristics of the text can be effectively reserved, so that the emotional attitude in the comment text content can be accurately and effectively recognized.

Description

technical field [0001] The invention belongs to the technical field of text recognition, in particular to a comment emotion analysis method based on an improved neural network. Background technique [0002] The purpose of review sentiment analysis is to make the computer "understand" the reviewer's emotional attitude towards the reviewed product through an intelligent method. Traditional sentiment analysis algorithms mainly use statistical methods to extract the inherent characteristics of text in terms of word frequency, sequence, etc., and then use classic statistical learning algorithms (such as Bayesian, support vector machines, decision trees, etc.) analyze. Traditional sentiment analysis algorithms mostly rely on bag-of-words models or Markov assumptions. The bag-of-words model only considers information related to word frequency and ignores the sequence relationship between words, so it cannot perform sequence modeling effectively. The Markov hypothesis believes th...

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
IPC IPC(8): G06F16/35G06N3/04
CPCG06F16/353G06N3/045
Inventor 不公告发明人
Owner CHENGDU UNION BIG DATA TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products