Contents

init(validationData:algorithm:language:)

Creates model parameters.

Declaration

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.

See Also

Deprecated