zero-shot-classification
Classify text into categories not seen during training for applications like intent detection, content moderation, and dynamic classification
post/models/v2/facebook/bart-large-mnli
Request
- Base URLhttps://api.bytez.com
- AuthAPI key in header Authorization
- TypeScripthttps://skmtc.dev/bytez/apis/closed-source-model-api/docs/models/v2/facebook/bart-large-mnli/post.tsA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"text": "One day I will see the world",
"candidate_labels": [
"travel",
"cooking",
"dancing"
]
}Response
Successful zero-shot-classification response.
Example response
{
"output": {
"sequence": "One day I will see the world",
"labels": [
"travel",
"dancing",
"cooking"
],
"scores": [
0.9941015839576721,
0.0031261409167200327,
0.002772255800664425
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.