Initializer

init(validationData:algorithm:language:)

Creates a new set of word tagger parameters with validation data represented by a dictionary.

Declaration

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

Parameters

validationData

Dictionary of labeled inputs to be used to validate the model.

algorithm

Optional definition of the algorithm type.

language

Optional definition of the language of the content.

See Also

Creating Parameters

enum MLWordTagger.ModelAlgorithmType

The type of algorithm used by a word tagger.