The Groovy plugin is used to count the number of positive and negative annotations in a given piece of text and determine an overall polarity score.
this can also be considered a third phase in the sentiment analysis, which takes place at the paragraph or entire document level.