TextClassifierResult
class TextClassifierResult : TaskResult
Represents the classification results generated by MPPTextClassifier
. *
-
The
MPPClassificationResult
instance containing one set of results per classifier head. *Declaration
Swift
var classificationResult: ClassificationResult { get }
-
Initializes a new
MPPTextClassifierResult
with the givenMPPClassificationResult
and timestamp (in milliseconds).Declaration
Swift
init(classificationResult: ClassificationResult, timestampInMilliseconds: Int)
Parameters
classificationResult
The
MPPClassificationResult
instance containing one set of results per classifier head.timestampInMilliseconds
The timestamp (in milliseconds) for this result.
Return Value
An instance of
MPPTextClassifierResult
initialized with the givenMPPClassificationResult
and timestamp (in milliseconds).