Instance Method

predictions(from:)

Classifies a data column with labels.

Declaration

func predictions(from texts: MLDataColumn<String>) throws -> MLDataColumn<String>

Parameters

texts

The data column of strings to be classified.

Return Value

An array of labels for the given strings.

See Also

Testing a Text Classifier

func prediction(from: String) -> String

Classifies a string with a label.

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

Classifies an array of strings with labels.