METHOD AND ELECTRONIC DEVICE FOR SENTIMENT CLASSIFICATION
First Claim
Patent Images
1. A method for emotion classification, comprising at an electronic device:
- obtaining a plurality of keywords in a document to be processed;
looking up at least one associated word associated with each of the keywords according to a preset association mode;
determining emotion category of each of the keywords and the associated words using a preset emotion dictionary;
counting the number of words corresponding to each of the emotion categories; and
determining the emotion category with the largest number of words as the emotion category of the document to be processed.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the present disclosure provide a method and device for emotion classification method. The method comprises: obtaining a plurality of keywords in a document to be processed; looking up at least one associated word associated with each of the keywords according to a preset association mode; determining emotion category of each of the keywords and the associated words using a preset emotion dictionary; counting the number of words corresponding to each of the emotion categories; and determining the emotion category with the largest number of words as the emotion category of the document to be processed.
-
Citations
15 Claims
-
1. A method for emotion classification, comprising at an electronic device:
-
obtaining a plurality of keywords in a document to be processed; looking up at least one associated word associated with each of the keywords according to a preset association mode; determining emotion category of each of the keywords and the associated words using a preset emotion dictionary; counting the number of words corresponding to each of the emotion categories; and determining the emotion category with the largest number of words as the emotion category of the document to be processed. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A non-volatile computer-readable storage medium, which is stored with computer executable instructions that, when executed by an electronic device, cause the electronic device to:
-
obtain a plurality of keywords in a document to be processed; look up at least one associated word associated with each of the keywords according to a preset association mode; determine emotion category of each of the keywords and the associated words using a preset emotion dictionary; count the number of words corresponding to each of the emotion categories; and determine the emotion category with the largest number of words as the emotion category of the document to be processed. - View Dependent Claims (7, 8, 9, 10)
-
-
11. An electronic device, comprising:
-
at least one processor; and a memory, communicably connected with the at least one processor and storing instructions executable by the at least one processor, wherein execution of the instructions by the at least one processor causes the at least one processor to; obtaining a plurality of keywords in a document to be processed; looking up at least one associated word associated with each of the keywords according to a preset association mode; determining emotion category of each of the keywords and the associated words using a preset emotion dictionary; counting the number of words corresponding to each of the emotion categories; and determining the emotion category with the largest number of words as the emotion category of the document to be processed. - View Dependent Claims (12, 13, 14, 15)
-
Specification