# Uses of Class
opennlp.tools.sentiment.SentimentContextGenerator

Packages that use SentimentContextGenerator
Package
Description
opennlp.tools.sentiment

- ## Uses of SentimentContextGenerator in opennlp.tools.sentiment

  Subclasses of SentimentContextGenerator in opennlp.tools.sentiment
  Modifier and Type
  Class
  Description
  `class`
  `EmojiSentimentContextGenerator`
  A `SentimentContextGenerator` that adds emoji annotation features to the default token context: for every annotated token the project-authored coarse sentiment score (`emojiSentiment=2`), the entity type (`emojiType=HEART`), the category (`emojiCategory=SMILEYS_AND_EMOTION`), and for flags the region (`emojiRegion=DE`).
  Methods in opennlp.tools.sentiment that return SentimentContextGenerator
  Modifier and Type
  Method
  Description
  `SentimentContextGenerator`
  EmojiSentimentFactory.`createContextGenerator()`
  Creates a new `context generator`.
  `SentimentContextGenerator`
  SentimentFactory.`createContextGenerator()`
  Creates a new `context generator`.
  Constructors in opennlp.tools.sentiment with parameters of type SentimentContextGenerator
  Modifier
  Constructor
  Description
  ``
  `SentimentEventStream(opennlp.tools.util.ObjectStream<opennlp.tools.sentiment.SentimentSample> samples, SentimentContextGenerator createContextGenerator)`
  Instantiates a `event stream`.