The Arabic, Chinese, Czech, English, French, German, Italian, Polish, Portuguese, Russian, Spanish, and Turkish sentiment grammars (sentiment_ara.ecr
, sentiment_chi.ecr
, sentiment_cze.ecr
, sentiment_dut.ecr
, sentiment_eng.ecr
, sentiment_fre.ecr
, sentiment_ger.ecr
, sentiment_ita.ecr
, sentiment_pol.ecr
, sentiment_por.ecr
, sentiment_rus.ecr
, sentiment_spa.ecr
, and sentiment_tur.ecr
) support polarity scoring. This is a number, usually between 0.50 and 1.50, that represents the strength of the sentiment in the matched phrase. For example:
You can edit the user modification files (sentiment_user_ara.xml
, sentiment_user_chi.xml
, sentiment_user_cze.xml
, sentiment_user_dutch.xml
, sentiment_user_eng.xml
, sentiment_user_fre.xml
, sentiment_user_ita.xml
, sentiment_user_pol.xml
, sentiment_user_por.xml
, sentiment_user_rus.xml
, sentiment_user_spa.xml
, and sentiment_user_tur.xml
) 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"/>"
sentiment_basic_eng.ecr
does not support polarity scoring.
|