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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
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