init(validation:algorithm:language:)
Creates model parameters.
Declaration
init(validation: MLWordTagger.ModelParameters.ValidationData = .split(strategy: .automatic), algorithm: MLWordTagger.ModelAlgorithmType = .crf(revision: 1), language: NLLanguage? = nil)Parameters
- validation:
The validation data source.
- algorithm:
The algorithm type.
- language:
The language of the text to tag.