Contents

predictionWithConfidence(from:)

Predicts multiple possible labels and their confidence scores for the specified string.

Declaration

func predictionWithConfidence(from text: String) throws -> [String : Double]

Parameters

  • text:

    The string to classify.

Return Value

A dictionary of label predictions and confidence scores.

See Also

Testing a text classifier