<!--
{
  "availability" : [
    "macOS: 10.14.0 - 10.15.0"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLWordTagger/ModelParameters-swift.struct/init(validationData:algorithm:language:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML12MLWordTaggerV15ModelParametersV14validationData9algorithm8languageAESaySaySSG6tokens_AI6labelstG_AC0E13AlgorithmTypeOSo10NLLanguageaSgtcfc"
  },
  "title" : "init(validationData:algorithm:language:)"
}
-->

# init(validationData:algorithm:language:)

Creates model parameters.

```
init(validationData: [(tokens: [MLWordTagger.Token], labels: [String])], algorithm: MLWordTagger.ModelAlgorithmType = .crf(revision: 1), language: NLLanguage? = nil)
```

## Parameters

`validationData`

The validation data of token and label pairs.

`algorithm`

The algorithm type.

`language`

The language of the text to tag.

---

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)