Text sentiment analysis method based on BERT model and double-channel attention

A technology of emotion analysis and attention, applied in semantic analysis, biological neural network model, neural architecture, etc., can solve problems such as limited application of emotional language knowledge, and achieve the effect of enhancing the ability to capture emotional semantics, good performance, and improved performance

Pending Publication Date: 2020-01-21
UNIV OF SHANGHAI FOR SCI & TECH
View PDF5 Cites 33 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Despite the usefulness of emotional language words, the application of emotional language knowledge has been limited in rece

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 analysis method based on BERT model and double-channel attention
  • Text sentiment analysis method based on BERT model and double-channel attention
  • Text sentiment analysis method based on BERT model and double-channel attention

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] Example figure 1 As shown, the text sentiment analysis method based on the BERT model and dual-channel attention of the present invention comprises the following steps:

[0035] Step 1. Construct a custom emotional language library that includes emotional words, degree adverbs, and negative words through the existing Chinese emotional language library;

[0036] Step 2. Use the NLPIR tool to segment the text data, use the custom emotional language library as the word segmentation dictionary, extract the emotional information words in each text data, and provide the BERT model training with semantic information words {W 1 ,W 2 ,...,W n} and sentiment information words {E 1 ,E 2 ,...,E m} dual-channel input;

[0037] Step 3. Use the BERT model to provide word vectors for the input of dual-channel semantic and emotional information words, dynamically adjust the word vectors in conjunction with the text context, and embed the real emotional semantics into the BERT mode...

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 analysis method based on a BERT model and dual-channel attention, and the method comprises the steps: building a sentiment language library, carrying out the word segmentation of text data, extracting sentiment information words in each piece of text data, and providing dual-channel input containing semantics and sentiment information words for model training; extracting sentiment information words contained in the text statements to obtain a sentiment information set corresponding to each text statement; constructing a word vector double-input matrix of semantic information and sentiment information by utilizing a BERT model; a dual-channel attention feature extraction module composed of a BiGRU neural network and a full-connection network is addedto a hidden layer, and the emotion semantic capturing capacity of the model is enhanced; and fusing the obtained deep semantic information with the emotion information word vector to obtain a final deep semantic expression. According to the method, the statement-level text sentiment analysis performance is effectively improved, the superiority of the method is verified through experimental comparison, and the method has good performance in multiple evaluation indexes.

Description

technical field [0001] The invention relates to the technical field of natural language processing, in particular to a text sentiment analysis method based on a BERT model and dual-channel attention. Background technique [0002] Text sentiment analysis at the sentence level in the text, that is, sentiment analysis for sentences, is the process of analyzing, processing, inducing and inferring subjective texts with emotional color. With the development of social media such as forum discussions, blogs and Twitter, there are massive emotional data, so sentiment analysis technology is playing an increasingly important role. The deep learning model based on neural network can learn the distributed vector representation of words. This low-dimensional and continuous word representation overcomes the shortcomings of traditional word representation methods and can be used as a good example of other deep neural network models. Input, through the continuous learning of multi-layer net...

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): G06F40/30G06N3/04
CPCG06N3/045
Inventor 李烨谢润忠
Owner UNIV OF SHANGHAI FOR SCI & TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products