Instance Method

prediction(from:)

Tags each token in the given string.

Declaration

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

Parameters

text

The string to tokenize and then tag.

Return Value

An array of tags for the tokens in the string.

See Also

Testing a Word Tagger

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

Tags each input token in the given array.