---
title: "predictions(from:)"
framework: createml
role: symbol
role_heading: Instance Method
path: "createml/mlgazetteer/predictions(from:)"
---

# predictions(from:)

Predicts the labels for the given terms.

## Declaration

```swift
func predictions(from texts: [String]) throws -> [String]
```

## Parameters

- `texts`: The array of input terms.

## Return Value

Return Value An array of labels.

## See Also

### Testing a gazetteer

- [prediction(from:)](createml/mlgazetteer/prediction(from:).md)
- [predictions(from:)](createml/mlgazetteer/predictions(from:)-2rej.md)
- [predictions(from:)](createml/mlgazetteer/predictions(from:)-2jaui.md)
