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

Social network text sentiment analysis method based on deformable self-attention mechanism

A social network and sentiment analysis technology, applied in the field of social network text sentiment analysis, can solve the problems of learning local context features without different words, and not directly modeling multi-scale context features.

Active Publication Date: 2021-03-19
SOUTH CHINA UNIV OF TECH
View PDF3 Cites 4 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
  • Social network text sentiment analysis method based on deformable self-attention mechanism
  • Social network text sentiment analysis method based on deformable self-attention mechanism
  • Social network text sentiment analysis method 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 a user utterance. The method comprises the following steps: segmenting each sentence in user utterance text data into words, and expressing each word with a word vector; inputting the word vector sequence into a bidirectional recurrentneural network (Bi-LSTM) to obtain a coded representation of each word; utilizing a deformable self-attention mechanism to convert the coding representation of the words into a plurality of sentencecoding representations with different context ranges; fusing the plurality of sentence code representations to obtain a sentence code representation; inputting the fused sentence code representation into a feed-forward neural network (FFN) for classification, and outputting a result; according to a model output result and a data real result, iteratively training a model updating parameter by minimizing a cross entropy loss function; and inputting the social network text to be classified into the trained model to obtain an emotion 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
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