Supercharge Your Innovation With Domain-Expert AI Agents!

Text sentiment classification method

A technology of emotion classification and text, applied in the field of emotion classification, can solve problems such as poor classification accuracy and inability to deal with polysemy

Pending Publication Date: 2021-05-18
HEBEI UNIV OF ENG
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the embodiment of the present invention provides a text sentiment classification method to solve the problem that the sentiment classification method in the prior art cannot deal with polysemy and poor classification accuracy

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 classification method
  • Text sentiment classification method
  • Text sentiment classification method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0077] Optionally, as a specific implementation of the text sentiment classification method provided in the embodiment of the present invention, obtaining subject information of the target text includes:

[0078] Obtain multiple initial topic information of the target text through the LDA topic model;

[0079] Extract the first m words of each initial topic information to obtain the topic information corresponding to each initial topic information; wherein, the set of topic information corresponding to each initial topic information forms the topic information of the target text, and m is a preset value.

[0080] Optionally, as a specific implementation of the text sentiment classification method provided in the embodiment of the present invention, static word vector modeling is performed on topic information based on a pre-trained word2vec model, including:

[0081] T=[t 1 ,t 2 ...t m ]

[0082] In the formula, T is the static word vector matrix of the topic information c...

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 is applicable to the technical field of sentiment classification, and provides a text sentiment classification method, which comprises the following steps: performing dynamic word vector modeling on a target text based on a Bert model, and inputting dynamic word vector data into a CNN channel of a preset dual-channel neural network model for feature learning to obtain a first feature vector; obtaining topic information of the target text, performing static word vector modeling on the topic information based on a word2vec model, and inputting static word vector data into a GRU channel of a preset dual-channel neural network model for feature learning to obtain a second feature vector; splicing the first feature vector and the second feature vector to obtain a third feature vector; and processing the third feature vector through a self-attention mechanism, and performing sentiment classification on the processed third feature vector based on a preset classifier model. The sentiment classification method and device can improve the sentiment classification accuracy of the target text.

Description

technical field [0001] The invention belongs to the technical field of sentiment classification, and in particular relates to a text sentiment classification method. Background technique [0002] Sentiment classification is also called opinion mining, tendency analysis, etc. It refers to the use of text mining, natural language processing and other technologies to identify and extract subjective information in comment texts, and to obtain the opinions and attitudes of the analysis object on a certain topic or a certain text. [0003] At present, using deep learning methods and attention mechanism technology to classify the sentiment of review texts has become a new research hotspot. However, the inventors of the present application found that after the existing emotion classification method has trained a language model, the word vector of each word is fixed. When the word vector is used later, no matter what the input sentence is, the word vector Neither has changed and can...

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/35G06F40/247G06N3/04G06N3/08
CPCG06F16/35G06F40/247G06N3/08G06N3/047G06N3/045
Inventor 吴迪王梓宇蔡超志赵伟超赵玉凤段晓旋杨丽君马文莉马超
Owner HEBEI UNIV OF ENG
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More