Unlock instant, AI-driven research and patent intelligence for your innovation.

Aspect-level sentiment analysis method based on LSTM (Long Short Term Memory) and grammar distance

A sentiment analysis and aspect technology, applied in semantic analysis, neural learning methods, natural language data processing, etc., can solve problems such as judgment affecting sentiment polarity, wrong sentiment classification, wrong context, etc., to reduce the probability of wrong matching, The effect of large position weights

Pending Publication Date: 2022-06-24
CHONGQING UNIV OF POSTS & TELECOMM
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] (1) Using relative position weights, lacking consideration of grammatical distance, it is very likely to mistakenly match aspect words with contexts with low grammatical relevance, resulting in wrong sentiment classification
[0004] (2) Most methods lack the interaction between aspect words and context words, and it is easy to make aspect words match context words that have nothing to do with their emotional polarity judgment, which affects the judgment of emotional polarity
[0005] (3) When obtaining the final representation, only the feature representations of aspect words and context words are considered, and other features are ignored

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 based on LSTM (Long Short Term Memory) and grammar distance
  • Aspect-level sentiment analysis method based on LSTM (Long Short Term Memory) and grammar distance
  • Aspect-level sentiment analysis method based on LSTM (Long Short Term Memory) and grammar distance

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0055] like figure 1 As shown, an aspect-level sentiment analysis method based on LSTM and grammatical distance according to an embodiment of the present invention is characterized in that, it includes the following steps:

[0056] S1: Feature input: Use the GloVe pre-training model to map the word vector, and then pass the aspect word and the context word through Bi-LSTM to obtain the hidden representation of the aspect word and the context.

[0057] A high-dimensional digital vector is used to represent the words in each sentence, and the GloVe word embedding is used to map the word vector, and then the mapping is used as the input of the aspect-level sentiment analysis, and a Bi-LSTM layer is calculated to obtain the content of the aspect-level sentiment analysis. Hidden representation of word and contextual semantic information.

[0058] S2: Semantic feature extraction: using graph convolutional network and mLSTM to extract semantic features of aspect words and context, r...

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 an aspect-level sentiment analysis method based on LSTM (Long Short Term Memory) and grammar distance, which comprises the following steps: S1, feature input: mapping word vectors by using a GloVe pre-training model, and respectively enabling aspect words and context words to pass through Bi-LSTM to obtain hidden representations of the aspect words and the context; s2, semantic feature extraction: respectively extracting semantic features of aspect words and contexts by adopting a graph convolutional network and an mLSTM; s3, a semantic interaction stage of the aspect word and the context word: performing a dot product attention operation on the features of the aspect word and the context extracted in the S2; and S4, an emotion prediction stage: performing maximum pooling operation on the features obtained in the S3, and then performing softmax operation to obtain the final predicted emotion polarity. The probability of correct matching of aspect words and important contexts is improved, a grammar distance weight is introduced to replace a relative distance, the context with a large degree of association with an aspect word method is further extracted on the grammar level, and finally the accuracy of aspect-level sentiment analysis is improved.

Description

technical field [0001] The invention relates to an aspect-level sentiment analysis method based on LSTM and grammatical distance, and mainly relates to the field of natural language. Background technique [0002] Different from traditional sentiment analysis, Aspect-Based Sentiment Analysis (ABSA) has been widely studied because it can analyze the sentiment of specific aspects in sentences. In recent years, deep learning methods have been widely used in aspect-level sentiment analysis, and mostly rely on Long-Short TermMemory (LSTM) and attention mechanisms. LSTM is widely used for feature extraction because it can avoid the problem of vanishing or exploding gradients. Tang et al. used the hidden representation of LSTM to predict sentiment. Ruder et al. used a bidirectional long short-term memory network (Bidirectional LSTM, Bi-LSTM) to obtain better classification results. Li et al. proposed Target-Specific Transformation Networks (Tnet) to convolve contextual features a...

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/30G06F16/35G06F40/205G06F40/253G06F40/284G06N3/04G06N3/08
CPCG06F40/30G06F40/284G06F40/253G06F40/205G06F16/355G06N3/08G06N3/045
Inventor 刘辉马祥
Owner CHONGQING UNIV OF POSTS & TELECOMM