---
title: "predictedLabelHypotheses(for:maximumCount:)"
framework: naturallanguage
role: symbol
role_heading: Instance Method
path: "naturallanguage/nlmodel/predictedlabelhypotheses(for:maximumcount:)"
---

# predictedLabelHypotheses(for:maximumCount:)

Predicts multiple possible labels for the given input string.

## Declaration

```swift
@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

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

- [predictedLabel(for:)](naturallanguage/nlmodel/predictedlabel(for:).md)
- [predictedLabels(forTokens:)](naturallanguage/nlmodel/predictedlabels(fortokens:).md)
- [predictedLabelHypotheses(forTokens:maximumCount:)](naturallanguage/nlmodel/predictedlabelhypotheses(fortokens:maximumcount:).md)
