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

Sentiment Analysis Method for Social Network Text Based on Deformable Self-Attention Mechanism

A sentiment analysis and social network technology, applied in the field of social network text sentiment analysis, can solve the problems of learning local context features without different words, and without directly modeling multi-scale context features, so as to reduce redundant features and simplify local The effect of features

Active Publication Date: 2022-03-29
SOUTH CHINA UNIV OF TECH
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Some people use the self-attention model (see: Z.Lin, M.Feng, C.N.dos Santos, M.Yu, B.Xiang, B.Zhou, and Y.Bengio, "Astructured self-attentive sentence embedding," 2017.), however, because RNN encodes each word sequentially, it does not directly model multi-scale contextual features, and the self-attention model extracts global contextual features
Some local self-attention models also consider local context features, see: T.Shen, T.Zhou, G.Long, J.Jiang, and C.Zhang, "Tensorized self-attention: Efficiently modeling pairwise and global dependencies together ," in Proc.Conf.North Amer.ChapterAssoc.Comput.Linguistics, 2019, pp.1256–1266.), but the context features extracted by this model are also fixed-scale
At present, the methods at home and abroad are not very good at learning local context features of different scales for different words, and all of them are fixed-scale or global-scale contexts.

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
  • Sentiment Analysis Method for Social Network Text Based on Deformable Self-Attention Mechanism
  • Sentiment Analysis Method for Social Network Text Based on Deformable Self-Attention Mechanism
  • Sentiment Analysis Method for Social Network Text Based on Deformable Self-Attention Mechanism

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0050] Such as figure 1 It is a flow chart of the social network text sentiment analysis method based on the deformable self-attention mechanism disclosed in this embodiment, such as figure 1 As shown, the method includes the following steps:

[0051] S1. Segment each sentence in the user utterance text data into words. The data can be Chinese data or English data, and English data is taken as an example here. This sentence is a user's evaluation of a movie in a social network, and the sentiment classification label is negative. Such as figure 2 As shown, the sentence "The film has little insight into history." is segmented into words, and the segmented word sequence is obtained: [The, file, has, little, insight, into, history], and each word is used as a word vector express N is the number of words, here is 7, 1≤i≤7, the size of each word vector dimension is emb dimension, here is 300 dimensions;

[0052] S2, the word vector sequence Input the code representation ...

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 social network text sentiment analysis method based on a deformable self-attention mechanism, which is used for analyzing the sentiment of user speech. The steps are as follows: segment each sentence in the user utterance text data into words, and represent each word with a word vector; input the word vector sequence into a bidirectional recurrent neural network (Bi-LSTM) to obtain the coded representation of each word; Using the deformable self-attention mechanism, the coded representation of words is converted into a variety of sentence coded representations with different context ranges; multiple sentence coded representations are fused to obtain a sentence coded representation; the fused sentence coded representation is input to the feedforward neural network Classify in the network (FFN), output the result; minimize the cross-entropy loss function iteratively train the model to update the parameters according to the model output result and the real data result; input the social network text to be classified into the trained model to obtain the sentiment analysis result.

Description

technical field [0001] The invention relates to the technical field of social network text sentiment analysis in natural language processing, in particular to a social network text sentiment analysis method based on a deformable self-attention mechanism. Background technique [0002] A platform for content production and exchange based on user relationships in the Internet is a social network, where people can share opinions with each other. Using the text sentiment analysis method, it is possible to automatically extract the user's emotional preference for some things such as products, services, events, etc., so as to help users better choose their favorite products and help businesses provide better products and services. The use of public opinion and sentiment analysis can also predict the public's attitude towards social events and the trend of emotional changes, which is conducive to enterprises and government agencies to make corresponding adjustments in real time. Se...

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/9536G06F40/289G06F40/211G06N3/04
CPCG06F16/9536G06F40/289G06F40/211G06N3/044G06N3/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