Research Article
On the Feature Selection and Classification Based on Information Gain for Document Sentiment Analysis
(1) procedure IG-BASED–CLASSIFIER(input: Feature Vector: Vocabulary | × Number of , output: Label: positive or ) | (2) for each document in featurevector do | (3) for each vocabinVocabulary do | (4) if is positive – features then | (5) | (6) else | (7) | (8) end if | (9) end for | (10) if then | (11) ′positive′ | (12) else | (13) ′negative′ | (14) end if | (15) end for | (16) end procedure |
|