v1

latestOpenAPI 3.1.02026-07-26405.8 KB

Classify

Score text against a set of user-defined labels and return a softmax-normalised probability distribution.

post/classify

Request body

textstring required

The text to classify.

Response

Successful classification

top_labelstring

Name of the highest-scoring label.

scoresobject

Map of label name to probability score. All values sum to 1.0.