Classify
POST/classify
Classify
To send a batch of requests all at once, the text field can either be a string, an array of strings, or an array of tuples of strings.
Request​
- application/json
Body
required
- InputText
- MOD2
Array [
]
consumer_groupstringnullable
text
object
required
oneOf
Input Text used for ease of users not to have to use the clunky PayloadText. Mapping provided below to convert InputText to PayloadText.
type
itemsstring
Responses​
- 200
- 422
- 503
Takes in a JSON payload and returns the classification.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
result
object
required
oneOf
SequenceClassificationarray[]required
QuestionAnsweringstring[]required
{
"result": {}
}
Malformed request body
The server is not ready to process requests yet.