Contents

predictedLabelHypotheses(for:maximumCount:)

Predicts multiple possible labels for the given input string.

Declaration

@nonobjc func predictedLabelHypotheses(for string: String, maximumCount maxCount: Int) -> [String : Double]

Parameters

  • string:

    The input string for the model to analyze.

  • maxCount:

    The maximum number of label predictions to return.

Return Value

A dictionary of label hypotheses. Each dictionary entry is a predicted label with its associated probability score. These labels are the top candidates proposed as possible labels for the input string. The dictionary contains up to maxCount entries.

See Also

Making predictions