Classify
SentimentClassifier.Classify method
Sentiment classification for a text.
public ClassificationResponse Classify(string text, int bestClassesCount = 1,
Taxonomy taxonomy = Taxonomy.Sentiment)
| Parameter | Type | Description |
|---|---|---|
| text | String | Raw text to classify. |
| bestClassesCount | Int32 | Count of the best classes to return. |
| taxonomy | Taxonomy | Sentiment taxonomy (Sentiment or Sentiment3). |
Return Value
ClassificationResponse with classification results.
Exceptions
| exception | condition |
|---|---|
| ApiException | An API exception occurred. |
See Also
- class ClassificationResponse
- enum Taxonomy
- class SentimentClassifier
- namespace GroupDocs.Classification
- assembly GroupDocs.Classification