MLWordTagger
A word-tagging model you train to classify natural language text at the word level.
Declaration
struct MLWordTaggerMentioned in
Overview
Use an MLWordTagger to create a custom word tagger to identify content that’s relevant for your app, like product names and points of interest.
To use your custom word tagger in the Natural Language framework, save it to a model file and import it into an NLModel. Then add your custom NLModel to an NLTagger with its setModels(_:forTagScheme:) method.
Topics
Creating and training a word tagger
init(trainingData:parameters:)init(trainingData:tokenColumn:labelColumn:parameters:)MLWordTagger.TokenMLWordTagger.ModelParametersmodelParameters
Evaluating a word tagger
evaluation(on:tokenColumn:labelColumn:)evaluation(on:)trainingMetricsvalidationMetricsMLWordTaggerMetrics