Instance Method

predictions(from:)

Classifies an array of strings with labels.

Declaration

func predictions(from texts: [String]) throws -> [String]

Parameters

texts

The array of strings to be classified.

Return Value

An array of labels for the given strings.

See Also

Testing a Text Classifier