MLTextClassifier
A model you train to classify natural language text.
Declaration
struct MLTextClassifierMentioned 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
init(trainingData:parameters:)init(trainingData:textColumn:labelColumn:parameters:)MLTextClassifier.DataSourceMLTextClassifier.ModelParametersmodelParameters