Instance Method

evaluation(on:)

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

Declaration

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

Parameters

labeledTokens

A set of labeled tokens given in a dictionary.

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: MLDataTable, tokenColumn: String, labelColumn: String) -> MLWordTaggerMetrics

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