Contents

MLTextClassifier

A model you train to classify natural language text.

Declaration

struct MLTextClassifier

Mentioned in

Overview

Use a text classifier to train a machine learning model you can include in your app to classify natural language text. The model learns to associate labels with features of the input text, which can be sentences, paragraphs, or even entire documents.

After you train a text classifier, you save it to a Core ML model file. You then use an instance of the NLModel class from the Natural Language framework to read the model file into your app.

Topics

Creating and training a text classifier

Evaluating a text classifier

Testing a text classifier

Saving a text classifier

Describing a text classifier

Supporting types

Default Implementations

See Also

Text models