"Sentiment" (Built-in Classifier)
Determine the sentiment of a text from a snippet.
Classes

Details

- This classifier attempts to infer the sentiment that a snippet of text conveys.
- The input text should typically be one or a few sentences.
- This classifier assumes the text conveys only one sentiment. The probabilities reflect the belief in these sentiments, not the proportion of sentiments.
- The current version only works for the English language.
Examples
open allclose allBasic Examples (2)
Use the "Sentiment" built-in classifier to infer the sentiment of a review:
Obtain the probabilities for the possible classes:
Obtain a ClassifierFunction for this classifier:
Scope (1)
Load the ClassifierFunction corresponding to the built-in classifier:
Options (2)
ClassPriors (1)
Use a custom ClassPriors to restrict the possible outputs:
IndeterminateThreshold (1)
Use a custom IndeterminateThreshold: