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

# prediction(from:)

Predicts the label for the given term.

## Declaration

```swift
func prediction(from text: String) throws -> String
```

## Parameters

- `text`: The input term.

## Return Value

Return Value A label.

## See Also

### Testing a gazetteer

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