Skip to main content
This class encapsulates the result from text classification, containing information about the classes that were detected.

Constructor

new ClassificationResult(
    classes: string[]
): ClassificationResult
Creates a new ClassificationResult instance.

Parameters

classes (string[]) The list of class labels detected in the input text.

Returns

ClassificationResult Overrides: AbstractApiDataType.constructor

Properties

classes

readonly classes: string[]
The list of class labels detected in the input text.