Response signature
Custom models have a similar response signature to the pre-built classifiers. Each 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.string
required
The most probable label. This will always be the label with the highest score.
Returns null if the analyzer fails.
number
required
The score of the label. From 0-1 score with 1 meaning a high probability of
being correct.
object
required
An object containing all the label scores.