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

# predictedLabelHypotheses(forTokens:maximumCount:)

Predicts multiple possible labels for each string in the given array.

## Declaration

```swift
@nonobjc func predictedLabelHypotheses(forTokens tokens: [String], maximumCount maxCount: Int) -> [[String : Double]]
```

## Parameters

- `tokens`: An array of input tokens for the model to analyze.
- `maxCount`: The maximum number of label predictions to return for each input string.

## Return Value

Return Value An array of dictionaries. Each dictionary corresponds to the token at the same index in the input array tokens. Within each dictionary, each entry is a predicted label with its associated probability score. These labels are the top candidates proposed as possible labels for the token. Each 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(for:maximumCount:)](naturallanguage/nlmodel/predictedlabelhypotheses(for:maximumcount:).md)
