Classifiers are used to label a text with a specific category. For example, you can use a classifier to label a text as positive or negative.

Response signature

Each classifier model returns an object with the detected label and the respective scores. This object is added to the API response under the model’s key.

label
string
required

The most probable label. This will always be the label with the highest score. Returns null if the analyzer fails.

score
number
required

The score of the label. From 0-1 score with 1 meaning a high probability of being correct.

label_scores
object
required

An object containing all the label scores.

Pre-built text classifiers

Was this page helpful?