Open topic with navigation

# Polarity Scoring

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:

- 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 (`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"/>"

NOTE:

`sentiment_basic_eng.ecr` does not support polarity scoring.

© Copyright 2013-2018 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm