turicreate.text_classifier.TextClassifier

class turicreate.text_classifier.TextClassifier(state=None)

Methods

TextClassifier.classify(dataset) Return a classification, for each example in the dataset, using the trained model.
TextClassifier.evaluate(dataset[, metric]) Evaluate the model by making predictions of target values and comparing these to actual values.
TextClassifier.export_coreml(filename) Export the model in Core ML format.
TextClassifier.name() Returns the name of the model.
TextClassifier.predict(dataset[, output_type]) Return predictions for dataset, using the trained model.
TextClassifier.save(location) Save the model.
TextClassifier.summary() Get a summary for the underlying classifier.