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

Aspect-level sentiment analysis method, system and model based on double attention mechanism

A sentiment analysis and attention technology, applied in neural learning methods, biological neural network models, text database clustering/classification, etc., can solve problems such as lack of combination, polysemy, and weakening of inter-word dependencies. , to achieve the effect of improving the accuracy

Pending Publication Date: 2021-05-28
HEFEI UNIV OF TECH
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] First, the existing methods generally use glove or word2vec to encode word vectors for sentences and aspect words in terms of feature representation. The word vectors trained in this way are all static word vectors, which cannot solve the problem of polysemy.
[0007] Second, the traditional method considers single-level attention information, that is, only considers the relationship between words within a sentence or the relationship between aspect words and sentences, and cannot dig deep attention information.
[0008] Third, the CNN-type model cannot obtain context information, while the RNN-type sequence model has the characteristics that the training time is too long and the dependence between words gradually weakens as the distance increases.
Previous methods did not combine the advantages of the two well

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
  • Aspect-level sentiment analysis method, system and model based on double attention mechanism
  • Aspect-level sentiment analysis method, system and model based on double attention mechanism
  • Aspect-level sentiment analysis method, system and model based on double attention mechanism

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0079] The specific implementations of the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the specific implementation manners described herein are only used to illustrate and explain the embodiments of the present invention, and are not used to limit the embodiments of the present invention.

[0080] like figure 1 Shown is a flowchart of an aspect-level sentiment analysis method based on a dual attention mechanism according to an embodiment of the present invention. exist figure 1 , the method can include:

[0081] In step S10, the text to be recognized is acquired. Since text is classified, it is necessary to determine the focus of classification, that is, the corresponding category. Therefore, in this step S10, when acquiring the text to be recognized, the category to be classified, that is, the aspect word, can also be acquired simultaneously.

[0082] In step S11, each wo...

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 embodiment of the invention provides an aspect-level sentiment analysis method, system and model based on a double attention mechanism, and belongs to the technical field of natural language processing. The method comprises the steps of obtaining a to-be-recognized text; mapping the text into continuous word vectors of a low-dimensional space; obtaining a forward hidden vector and a backward hidden vector; splicing the forward hidden vector and the backward hidden vector to obtain a hidden vector; obtaining an external attention weight of the hidden vector; obtaining an internal attention weight of the hidden vector; obtaining a comprehensive attention weight according to the external attention weight and the internal attention weight; determining a first vector; selecting a vector with a relatively large comprehensive attention weight from the first vectors to obtain a second vector; performing convolution operation on the second vector to obtain a third vector; selecting the vector with the maximum value from the third vectors to obtain a fourth vector; adopting a softmax function to calculate the probability that the text is classified into each category; and selecting the category with the maximum probability as a classification result of the text.

Description

technical field [0001] The present invention relates to the technical field of natural language processing, in particular to an aspect-level sentiment analysis method, system and model based on a dual attention mechanism. Background technique [0002] Sentiment analysis is a subfield of natural language processing with a wide range of real-life application scenarios. For example, companies can conduct sentiment analysis on Taobao product evaluations, Ele.me takeaway evaluations, etc., to determine the emotional tendencies contained in them, so as to better understand user needs and promote product updates and iterations. Aspect-level sentiment analysis is a fine-grained sentiment analysis task that aims to analyze the sentiment polarity of text for different aspects. For example, in the comment "Staffs are not that friendly, but the taste covers all", for the aspect word "service", the sentence shows a negative emotional polarity. And for the aspect word "food", the senten...

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): G06F40/247G06F16/35G06N3/04G06N3/08
CPCG06F40/247G06F16/35G06N3/08G06N3/047G06N3/045
Inventor 余本功王惠灵罗贺付超张强张子薇朱晓洁
Owner HEFEI 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