Instance Method

evaluation(on:tokenColumn:labelColumn:)

Generates metrics describing the tagger’s performance on labeled data provided in a data table.

Declaration

func evaluation(on labeledTokens: MLDataTable, tokenColumn: String, labelColumn: String) -> MLWordTaggerMetrics

Parameters

labeledTokens

A set of labeled tokens given in a data table.

tokenColumn

The name of the column containing the tokens in the given data table.

labelColumn

The name of the column containing the token labels in the given data table.

Return Value

The metrics that indicate the performance of the tagger when operating on the input data set.

See Also

Evaluating a Word Tagger

func evaluation(on: [(tokens: [MLWordTagger.Token], labels: [String])]) -> MLWordTaggerMetrics

Generates metrics describing the tagger’s performance on labeled tokens provided in a dictionary.