Text sentiment analysis method, electronic device and storage medium

A technology of sentiment analysis and sentiment classification, applied in text database clustering/classification, semantic analysis, unstructured text data retrieval, etc., can solve the problem of low accuracy of text sentiment analysis and achieve the effect of improving accuracy

Pending Publication Date: 2021-09-24
PING AN TECH (SHENZHEN) CO LTD
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the existing deep learning models model all lexical dependencies in the text in the same way, which easily leads to low accuracy of text sentiment analysis

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, electronic device and storage medium
  • Text sentiment analysis method, electronic device and storage medium
  • Text sentiment analysis method, electronic device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] Such as figure 2 as shown, figure 2 It is a flow chart of the text sentiment analysis method provided by Embodiment 1 of the present invention. based on figure 1 In the shown device embodiment, the processor 12 implements the following steps when executing the text sentiment analysis program 10 stored in the memory 11:

[0034] Step S210: Obtain an input text, where the input text includes a plurality of first words.

[0035] In this embodiment, the input text may be a sentence to be analyzed, or the input text may also be a sentence and a specified characteristic vocabulary, and the type of the input text is not limited. Specifically, the feature vocabulary can be an aspect feature word in a sentence, which is suitable for aspect-level text sentiment analysis. For example, in the sentence "This device is fully functional but has a short battery life", the aspect feature word can be "function" or "battery life ", if the aspect feature word is "function", the sente...

Embodiment 2

[0053] Such as image 3 as shown, image 3 It is a flow chart of the text sentiment analysis method provided by Embodiment 2 of the present invention. based on figure 1 In the illustrated embodiment of the electronic device, the following steps are implemented when the processor 12 executes the text sentiment analysis program 10 stored in the memory 11:

[0054] Step S310: Obtain an input text, the input text includes a plurality of first words; execute steps S320-S330, and steps S340-S350 respectively.

[0055] Step S320: Construct a processing sequence according to the input text.

[0056] In this embodiment, the processing sequence includes text initializers and the above-mentioned plurality of first words. Specifically, word tokenization (Tokenization) processing may be performed on the input text first to obtain a plurality of first vocabularies, and then text initializers are combined to form a processing sequence with the plurality of first vocabularies. Wherein, 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 discloses a text sentiment analysis method, an electronic device and a storage medium, and belongs to the technical field of natural language processing. The method comprises the following steps: acquiring an input text, wherein the input text comprises a plurality of first vocabularies; performing semantic analysis on the input text to obtain a plurality of vocabulary feature vectors, and performing dependency syntax analysis on the input text to obtain dependency syntax information corresponding to each first vocabulary; performing weighted calculation according to the plurality of vocabulary feature vectors and the dependency syntax information corresponding to each first vocabulary to obtain a plurality of target feature vectors; and performing sentiment classification based on the plurality of target feature vectors to obtain a sentiment analysis result corresponding to the input text. According to the technical scheme, the dependency relationship between vocabularies in the input text can be fused, and the accuracy of text sentiment analysis can be improved by adopting the syntactic information to carry out weighted recognition on noise in the syntactic information.

Description

technical field [0001] The invention relates to the technical field of natural language processing, in particular to a text sentiment analysis method, an electronic device and a storage medium. Background technique [0002] In securities trading, investors will pursue the maximization of investment benefits based on the information they own. Therefore, the more and more accurate information investors have, the higher the expected return will be. Some domestic portal websites publish a large amount of stock review information, research reports and forum posts every day. In the face of massive data on the Internet, investors urgently need an effective tool to automatically extract concise and clear information from the massive data, especially the tendency analysis of stock reviews, so as to predict market fluctuations by sensing investor sentiment. [0003] In the existing method, the sentimental analysis of the input text is mainly performed by using the trained deep learni...

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/30G06F40/211G06F40/289G06K9/62
CPCG06F16/353G06F40/30G06F40/211G06F40/289G06F18/2415
Inventor 于凤英王健宗
Owner PING AN TECH (SHENZHEN) CO LTD
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