Instance Method

prediction(from:)

Tags each input token in the given array.

Declaration

func prediction(from tokens: [MLWordTagger.Token]) throws -> [String]

Parameters

tokens

An array of tokens to tag.

Return Value

An array of tags for the tokens.

See Also

Testing a Word Tagger

func prediction(from: String) -> [String]

Tags each token in the given string.