Skip to main content
POST
Zero-shot text classification

Body

application/json

Zero-shot text classification request.

sequences
required

Sequence(s) to classify. Required.

candidate_labels
required

Label or list of labels to test against the sequences. Required.

hypothesis_template
string
default:This example is {}.

Template used to convert labels into hypotheses for entailment scoring.

multi_label
boolean
default:false

If true, multiple labels may be true and scores are not normalized across labels.

Response

200 - application/json

Zero-shot classification results

sequence
string
labels
string[]
scores
number[]