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

Text sentiment classification method and system

A technology of emotion classification and emotion type, which is applied in the field of natural language processing and deep learning, can solve the problem of not being able to further learn the local semantic features of text, achieve rich emotional feature representation, improve functional diversity, and accurately judge emotional tendencies Effect

Pending Publication Date: 2020-11-03
SHANDONG NORMAL UNIV
View PDF0 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The variant BiGRU model of LSTM can effectively extract the semantic information before and after the text, and has a stronger perception of the overall semantics of the sentence, and the model is more streamlined than the LSTM; although the BiGRU model can effectively learn the information closely related to the emotional tendency Text sequence semantic features, but cannot further learn the local semantic features of the text

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
  • Text sentiment classification method and system
  • Text sentiment classification method and system
  • Text sentiment classification method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0043]Target keywords play an important role in the field of sentence-level semantic short text sentiment analysis, and even determine the sentiment judgment of the entire sentence at a certain level. Therefore, this embodiment considers the influence of target keywords, enriches the emotional feature representation of the text, and makes the judgment of the emotional tendency of the text more accurate; currently in the field of specific target emotion classification, the convolutional neural network model based on the attention mechanism is used It proves that good results have been achieved in semantically fine-grained target keyword extraction; based on this, based on the characteristics of the above two models, this embodiment proposes a MATT-CNN+BiGRU text sentiment classification model, and establishes two dimensions of sentiment classification : That is, the CNN (MATT-CNN) model combined with the multi-attention mechanism obtains the first dimension of keyword sentiment ...

Embodiment 2

[0133] This embodiment provides a text sentiment classification system, including:

[0134] The segmentation module is used to divide the text sentence in units of words, and maps each word to a word vector;

[0135] The first feature extraction module is used to extract the keywords in the text sentence, and constructs the word vector attention matrix and position attention respectively according to the word vector of the keyword, the position of the keyword in the text sentence, and the emotional part-of-speech type of the keyword. Matrix and part-of-speech attention matrix, and combine the three to build the first feature;

[0136] The second feature extraction module is used to obtain the second feature according to the context semantic information of the keyword by using the BiGRU network;

[0137] The classification module is used to classify the emotional type of the text sentence to be tested by using the multi-attention convolutional neural network model trained as t...

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 sentiment classification method and system, and the method comprises the steps: dividing a text sentence in terms of words, and mapping each word into a word vector; extracting keywords in the text sentences, respectively constructing a word vector attention matrix, a position attention matrix and a part-of-speech attention matrix according to word vectors of the keywords, positions of the keywords in the text sentences and emotion part-of-speech types to which the keywords belong, and fusing the word vector attention matrix, the position attention matrix and thepart-of-speech attention matrix to construct a first feature; adopting a BiGRU network to obtain a second feature according to the context semantic information of the keyword; and classifying the emotion types of the text sentences to be tested by adopting a multi-attention convolutional neural network model trained by taking the first features and the second features as a training set. Accordingto the method, a keyword sentiment classification first-dimensional feature is obtained in combination with a CNN model of a multi-attention mechanism, an initial sentence sentiment classification second-dimensional feature is obtained through BiGRU, the two dimensional features are fused, the text deep-level semantic perception capability is improved, and then the text sentiment classification accuracy is improved.

Description

technical field [0001] The present invention relates to the technical fields of natural language processing and deep learning, in particular to a text emotion classification method and system. Background technique [0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art. [0003] With the continuous development of social networks, the role of Internet users has also changed from the original information recipients to information creators. Internet users are accustomed to expressing opinions through the Internet and publishing content with emotional attitudes on Internet platforms, forming a short text-based The main expression method, in which the amount of text information data is large, and the arrangement of text content is scattered and messy, it is difficult to distinguish and organize manually. Therefore, how to use natural language processing related technologies to anal...

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 Applications(China)
IPC IPC(8): G06F16/35G06F16/33G06F40/30G06N3/04G06N3/08
CPCG06F16/35G06F16/3344G06F40/30G06N3/08G06N3/045
Inventor 李筱雯鲁燃刘杰张敬仁刘培玉朱振方
Owner SHANDONG NORMAL UNIV
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