SentimentDetector (Apache OpenNLP :: API 3.0.0-M4 API)
Description: declaration: package: opennlp.tools.sentiment, interface: SentimentDetector

Package opennlp.tools.sentiment

# Interface SentimentDetector

public interface SentimentDetector

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `predict(String sentence)`
  Conducts a sentiment prediction for the specifed sentence.
  `String`
  `predict(String[] tokens)`
  Conducts a sentiment prediction for the specifed sentence.

- ## Method Details

  - ### predict

    String predict(String sentence)
    Conducts a sentiment prediction for the specifed sentence.
    Parameters:
      `sentence` - The text to be analysed for its sentiment.
    Returns:
      The predicted sentiment.

  - ### predict

    String predict(String[] tokens)
    Conducts a sentiment prediction for the specifed sentence.
    Parameters:
      `tokens` - The text to be analysed for its sentiment.
    Returns:
      The predicted sentiment.