Cycle nerve network text emotion analysis method by embedding logic rules

A technology of cyclic neural network and sentiment analysis, applied in the field of data processing, can solve problems such as counter-intuitiveness, inexplicability, and time-consuming, and achieve the effects of improving accuracy, short training time, and wide application

Active Publication Date: 2017-08-18
GUANGDONG UNIV OF TECH
View PDF7 Cites 30 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] As a sequence model, the cyclic neural network has achieved great success and is widely used in many natural language processing tasks, such as language recognition, machine translation, sentiment analysis, entity recognition, etc., which makes more and more people believe in the cyclic neural network. I

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
  • Cycle nerve network text emotion analysis method by embedding logic rules
  • Cycle nerve network text emotion analysis method by embedding logic rules
  • Cycle nerve network text emotion analysis method by embedding logic rules

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] The specific embodiment of the present invention will be further described below in conjunction with accompanying drawing:

[0042] Such as figure 1 , figure 2 Shown, a kind of cyclic neural network text emotion analysis method of embedding logic rule is characterized in that, comprises the following steps:

[0043] S1), use the data collection tool to grab the text corpus used for training, mark the text corpus with emotion category, and then divide the text corpus of emotion mark into two sets of training set corpus and test set corpus,

[0044] S2), in conjunction with the lexicon related to the text corpus and the Ansj word segmentation tool, the training set corpus and the test set corpus in step S1) are subjected to word segmentation processing, and stop word processing;

[0045] S3), adopting word2vec algorithm to do word segmentation in step S2), remove the training set corpus and the test set corpus after stop words are trained, obtain corresponding word vec...

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 provides a cycle nerve network text emotion analysis method by embedding logic rules, and the method comprises the steps of grabbing a text corpus for training and conducting emotion class labeling; then dividing the emotion labeled text corpus into a training set corpus and a test set corpus for dividing the words and removing the stopped words; then conducting training to the training set corpus and the test set corpus whose words are divided and stopped words are removed by using word2vec algorithm so as to obtain a corresponding word vector; inputting the training set corpus and the test set corpus in an existing knowledge base and analyzing in combination with a probability graph model; embedding a first order logic rule in the cycle nerve network through a logic cycle nerve network structure (Logic-RNN and Logic-LSTM). According to the invention, the training direction of the cycle nerve network can be controlled, and inclination to human's intuition is realized; besides, the precision of text emotion analysis is improved. Therefore, the method can be used in other fields like natural language processing and machine learning.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a text sentiment analysis method for embedding logic rules in Recurrent Neural Networks (RNNs). Background technique [0002] With the development of Internet technology and the rise of web2.0, the Internet has gradually changed from a static information carrier to a platform for people to obtain information, express opinions, and exchange emotions. People share, comment, and express their opinions on various things online. , Opinions, such as comments on movies, news, stocks, etc. These comments are self-evident for the importance of the government, enterprises, consumers, etc. However, with the explosive growth of online comment data, relying on manual processing of massive text data Acquisition, processing, analysis, and prediction are impractical, so using automated tools to quickly obtain valuable information from a large amount of text has become an urgent need for ...

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): G06F17/27G06F17/30G06N3/04G06N3/08
CPCG06F16/367G06N3/082G06F40/205G06F40/289G06F40/30G06N3/045
Inventor 郝志峰蔡晓凤蔡瑞初温雯王丽娟陈炳丰
Owner GUANGDONG UNIV OF 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