<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLGazetteer/init(dictionary:parameters:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML11MLGazetteerV10dictionary10parametersACSDySSSaySSGG_AC15ModelParametersVtKcfc"
  },
  "title" : "init(dictionary:parameters:)"
}
-->

# init(dictionary:parameters:)

Creates a gazetteer from a dictionary of labels and terms.

```
init(dictionary: [String : [String]], parameters: MLGazetteer.ModelParameters = ModelParameters()) throws
```

## Parameters

`dictionary`

A dictionary of labels and terms.

`parameters`

The model parameters.

---

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)