<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLGazetteer/predictions(from:)-2rej",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Create ML",
      "CreateML"
    ],
    "preciseIdentifier" : "s:8CreateML11MLGazetteerV11predictions4fromSaySSGAF_tKF"
  },
  "title" : "predictions(from:)"
}
-->

# predictions(from:)

Predicts the labels for the given terms.

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

## Parameters

`texts`

The array of input terms.

## Return Value

An array of labels.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)