Emotion classification method and system
A sentiment classification and sentiment technology, applied in the computer field, can solve the problems of not being able to capture full text information, affecting the accuracy rate, and high computational complexity
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025] figure 1 The implementation flow of the emotion classification method provided by the first embodiment of the present invention is shown. For the convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
[0026] In step S101 , in the phrase binary tree, recursively go up layer by layer from the leaf node, and calculate the vector of each node, and the vector of the node is a vector based on the phrase level.
[0027] In the embodiment of the present invention, the leaf nodes of the phrase binary tree are phrases rather than words, therefore, phrase-level vectors need to be obtained as initial input data. First, word-level vectors need to be obtained, and then the word vectors are calculated in a certain combination to obtain phrase vectors, which are the vectors of the nodes of the phrase binary tree. In practical applications, the semantic word embedding representation can be learned throu...
Embodiment 2
[0052] image 3 The implementation process of the emotion classification method provided by the second embodiment of the present invention is shown. For the convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
[0053] In step S301, the phrase dependency tree is converted into a phrase binary tree.
[0054] Figure 4 It shows the implementation process of converting the phrase binary tree in the sentiment classification method provided by the second embodiment of the present invention, converting the phrase dependency tree into a phrase binary tree, including:
[0055] In step S401, the phrase dependency tree is parsed layer by layer from the bottom to obtain the triplet structure in each layer.
[0056] In this embodiment, in the process of constructing the phrase binary tree, each embedded structure T in the phrase dependency tree is stored i , according to the phrase dependency tree struc...
Embodiment 3
[0069] Figure 5 A schematic structural diagram of the emotion classification system provided by Embodiment 3 of the present invention is shown. For the convenience of illustration, only the parts related to the embodiment of the present invention are shown, including: vector calculation unit 51, emotion label determination unit 52, feedback vector Calculation unit 53 and sentiment classification unit 54, wherein:
[0070] The vector calculation unit 51 is configured to recurse layer by layer from the leaf node in the phrase binary tree to calculate the vector of each node, and the vector of the node is a vector based on the phrase level.
[0071] The emotional label determination unit 52 is used to determine the emotional label of the node by calculating the similarity with a reference word, the reference word is an emotional word with strong positive and negative, and the emotional label is an emotional tendency value.
[0072] The feedback vector calculation unit 53 is con...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com