Initializer

init(validationData:algorithm:language:tokenColumnValidationData:labelColumnValidationData:)

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

Declaration

init(validationData: MLDataTable?, algorithm: MLWordTagger.ModelAlgorithmType = .crf(revision: 1), language: NLLanguage? = nil, tokenColumnValidationData: String? = nil, labelColumnValidationData: String? = nil)

Parameters

validationData

An optional validation set of labeled tokens given in a data table.

algorithm

An optional definition of the algorithm type.

language

An optional definition of the language of the content.

tokenColumnValidationData

An optional name of the column containing the tokens in the validation data table.

labelColumnValidationData

An optional name of the column containing the token labels validation data table.

See Also

Creating Parameters

init(validationData: [(tokens: [MLWordTagger.Token], labels: [String])], algorithm: MLWordTagger.ModelAlgorithmType, language: NLLanguage?)

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

Deprecated
enum MLWordTagger.ModelAlgorithmType

The type of algorithm used by a word tagger.