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

Short text emotional value calculation method based on sentence structure and context

A technology of sentence structure and emotional value, applied in computing, special data processing applications, instruments, etc., to achieve high accuracy and good results

Inactive Publication Date: 2018-12-04
TIANJIN UNIV
View PDF2 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, because the semantics of a sentence is affected by the structure of the sentence itself, and is also related to the context of the sentence, at present, there is no method that considers both the structure of the sentence and the context of the sentence. Therefore, the present invention proposes a method based on sentence structure and sentence structure. The calculation method of the emotional value of short texts in context, which considers both the structure of the sentence and the influence of the context on the sentence itself, realizes the calculation of the emotional value of sentences and realizes the emotional analysis of short texts

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
  • Short text emotional value calculation method based on sentence structure and context
  • Short text emotional value calculation method based on sentence structure and context
  • Short text emotional value calculation method based on sentence structure and context

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0077] Below in conjunction with accompanying drawing and specific embodiment the present invention is described in further detail:

[0078] The present invention is mainly a sentiment analysis method for network media comment data in a specific field: calculating the sentiment value of a short text based on sentence structure and context, mainly including four parts: data crawling, word segmentation, sentiment dictionary construction, and sentiment calculation.

[0079] The first is data crawling. Media comment data needs to be representative, all levels of users need to be involved, and the data must be relevant to the research field. Therefore, it is necessary to crawl corresponding user posts and comment data on the network. The present invention has crawled about 4,000 posts and about 50,000 comment data in network media.

[0080] The second is the word segmentation tool. The present invention is based on the Java environment, so in the Java environment, by segmenting t...

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 relates to a short text emotional value calculation method based on sentence structures and contexts. The method comprises: obtaining any to-be-analyzed text data; performing word segmentation processing on the text data through a Java-based word segmentation program; combined with a string matching algorithm, determining sentence structures of the to-be-analyzed text by computer programming; and making the to-be-analyzed text corresponding to the corresponding sentence structure, calculating an emotional score of each clause; implementing a contextual emotional score of the to-be-analyzed text. Part of the emotional score is an emotional value from comment data appearing before the text, influence on current data is calculated according to the distance from the current data,and the other part is an emotional value produced by the news. Establishment of an emotional dictionary is based on an open-source emotional dictionary, that is, emotional vocabulary noumenon of Dalian University of Technology. The emotional value of the short text is calculated combined with the emotional dictionary. Accuracy of the emotional values calculated by the method is higher, and effectin the field of public opinion analysis will be better.

Description

technical field [0001] The invention relates to natural language processing technology, in particular to a short text sentiment value calculation method based on sentence structure and context. Background technique [0002] The sentiment analysis of text is an important problem in the field of natural language processing, so the calculation of text sentiment value plays a very important role in text sentiment analysis. Especially in recent years, with the vigorous development of social media such as Weibo, sentiment analysis on short texts has been more and more widely used in academic research. [0003] At present, there are mainly two methods for text sentiment analysis, one is the method of machine learning, and the other is the classification method based on rules. The machine learning classification method mainly uses emotional words as classification features, and realizes the text classification according to the emotional dictionary. The main methods are Naive Bayes...

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/27
CPCG06F40/289G06F40/30
Inventor 孙越恒刘玉雪
Owner TIANJIN UNIV
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