predictionsWithConfidence(from:)
Predicts multiple possible labels and their confidence scores for each string in the specified array.
Declaration
func predictionsWithConfidence(from texts: [String]) throws -> [[String : Double]]Parameters
- texts:
The array of strings to classify.
Return Value
An array of dictionaries. Each dictionary corresponds to a string in the input array. A dictionary entry contains a label prediction with its associated confidence score.