Text sentiment analysis method and system, and computer readable storage medium
A sentiment analysis and text technology, applied in computing, special data processing applications, instruments, etc., can solve the problems of high labor cost and neglect, and achieve the effect of improving accuracy and strong generalization ability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0035] This embodiment discloses a text sentiment analysis method.
[0036] The method of this embodiment includes:
[0037] Step S1: Perform word segmentation on the original text, obtain a text word set, and train the obtained text word set to generate a word vector matrix.
[0038] Optionally, in this step, jieba is used for word segmentation, and word2vec is used for training to generate a word vector matrix.
[0039] Step S2, splitting the word vector matrix in units of sentences, inputting the word vector corresponding to any sentence into the preset LSTM network model, and obtaining the hidden layer vector of each word; When the word vector is input to the preset LSTM network model, a word corresponds to a hidden layer unit, and the hidden information between the sentence contexts is extracted through the correlation between the adjacent hidden layers of the LSTM, and the last word of the sentence corresponds to the hidden information. The hidden layer vector is used ...
Embodiment 2
[0058] This embodiment discloses a text sentiment analysis system, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the above method embodiments when the processor executes the computer program.
Embodiment 3
[0060] This embodiment discloses a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the steps of the foregoing method embodiments.
[0061] To sum up, the text sentiment analysis method, system and computer-readable storage medium disclosed by the above-mentioned embodiments of the present invention perform text sentiment analysis based on LSTM and attention model, and have the following beneficial effects:
[0062] Since sentiment analysis belongs to the field of natural language processing, its core task is to extract the emotional information features of the input text to provide the basis for the final classification. The invention takes the better sentence vector representation as the starting point, grasps the source of sentiment analysis, uses the attention mechanism and the LSTM model to process and predict the input text, associates the input and output, and considers the sentence struct...
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