Sentiment Grammars

Eduction includes standard grammars designed to identify those phrases in a passage of text that indicate positive or negative sentiment. These grammars can also identify which sentiments are expressed for which topics.

The sentiment grammar files have lite versions. The lite versions are identical to the full versions in most respects, but they do not support components or user modification. They can process data up to twice as fast as the full versions, depending on language.

Micro Focus recommends that you use the lite versions except when you need to use components or modify the built-in dictionaries.

The lite grammars have the same name as the full version, with _lite after the language. For example, the file name of the Chinese sentiment grammar file is sentiment_chi.ecr, and the file name of the lite version is sentiment_chi_lite.ecr.

All sentiment analysis grammar files except sentiment_basic_eng.ecr support components. You can extract the SENTIMENT and TOPIC components in most matches.