---
title: MLWordTagger
framework: createml
role: symbol
role_heading: Structure
path: createml/mlwordtagger
---

# MLWordTagger

A word-tagging model you train to classify natural language text at the word level.

## Declaration

```swift
struct MLWordTagger
```

## Mentioned in

Creating a word tagger model

## Overview

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:)](createml/mlwordtagger/init(trainingdata:parameters:).md)
- [init(trainingData:tokenColumn:labelColumn:parameters:)](createml/mlwordtagger/init(trainingdata:tokencolumn:labelcolumn:parameters:).md)
- [MLWordTagger.Token](createml/mlwordtagger/token.md)
- [MLWordTagger.ModelParameters](createml/mlwordtagger/modelparameters-swift.struct.md)
- [modelParameters](createml/mlwordtagger/modelparameters-swift.property.md)

### Evaluating a word tagger

- [evaluation(on:tokenColumn:labelColumn:)](createml/mlwordtagger/evaluation(on:tokencolumn:labelcolumn:).md)
- [evaluation(on:)](createml/mlwordtagger/evaluation(on:).md)
- [trainingMetrics](createml/mlwordtagger/trainingmetrics.md)
- [validationMetrics](createml/mlwordtagger/validationmetrics.md)
- [MLWordTaggerMetrics](createml/mlwordtaggermetrics.md)

### Testing a word tagger

- [prediction(from:)](createml/mlwordtagger/prediction(from:).md)
- [predictions(from:)](createml/mlwordtagger/predictions(from:).md)
- [predictionWithConfidence(from:)](createml/mlwordtagger/predictionwithconfidence(from:).md)

### Saving a word tagger

- [write(to:metadata:)](createml/mlwordtagger/write(to:metadata:).md)
- [write(toFile:metadata:)](createml/mlwordtagger/write(tofile:metadata:).md)

### Describing a word tagger

- [model](createml/mlwordtagger/model.md)
- [description](createml/mlwordtagger/description.md)
- [debugDescription](createml/mlwordtagger/debugdescription.md)
- [playgroundDescription](createml/mlwordtagger/playgrounddescription.md)

### Supporting types

- [MLWordTagger.FeatureExtractorType](createml/mlwordtagger/featureextractortype.md)
- [MLWordTagger.ModelAlgorithmType](createml/mlwordtagger/modelalgorithmtype.md)

### Default Implementations

- [CustomDebugStringConvertible Implementations](createml/mlwordtagger/customdebugstringconvertible-implementations.md)
- [CustomPlaygroundDisplayConvertible Implementations](createml/mlwordtagger/customplaygrounddisplayconvertible-implementations.md)
- [CustomStringConvertible Implementations](createml/mlwordtagger/customstringconvertible-implementations.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomPlaygroundDisplayConvertible](swift/customplaygrounddisplayconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Escapable](swift/escapable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Text models

- [Creating a text classifier model](createml/creating-a-text-classifier-model.md)
- [Creating a word tagger model](createml/creating-a-word-tagger-model.md)
- [MLTextClassifier](createml/mltextclassifier.md)
- [MLGazetteer](createml/mlgazetteer.md)
- [MLWordEmbedding](createml/mlwordembedding.md)
