Polarity Scoring
The sentiment analysis grammars support polarity scoring. Polarity scoring is a number, usually between 0.50 and 1.50, that represents the strength of the sentiment in the matched phrase. For example:
- a strongly positive or negative phrase might have a score of 1.35
- a typical phrase might have a score of 1.00
- a match where the sentiment is weak or ambiguous might have a score of 0.60
You can edit the user modification files to increase the scores of words in the dictionaries. For example, add the following on a new line in the user modification file to modify the existing entry flexible
so that it has a score of 1.23
:
" <entry score="1.23" headword="flexible"/>"
NOTE: sentiment_basic_eng.ecr
does not support polarity scoring.