<!--
{
  "availability" : [
    "macOS: 10.14.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLWordTaggerMetrics",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML19MLWordTaggerMetricsV"
  },
  "title" : "MLWordTaggerMetrics"
}
-->

# MLWordTaggerMetrics

Metrics you use to evaluate a word tagger’s performance.

```
struct MLWordTaggerMetrics
```

## Topics

### Analyzing the tagger’s performance

[`taggingError`](/documentation/CreateML/MLWordTaggerMetrics/taggingError)

The fraction of incorrectly tagged examples.

[`precisionRecall`](/documentation/CreateML/MLWordTaggerMetrics/precisionRecall)

A data table listing the precision and recall percentages for each category.

[`confusion`](/documentation/CreateML/MLWordTaggerMetrics/confusion)

A table comparing the actual and predicted labels for each tagging category.

### Handling errors

[`isValid`](/documentation/CreateML/MLWordTaggerMetrics/isValid)

A Boolean value indicating whether the metrics were calculated.

[`error`](/documentation/CreateML/MLWordTaggerMetrics/error)

The underlying error present when the metrics are invalid.

### Describing metrics

[`description`](/documentation/CreateML/MLWordTaggerMetrics/description)

A text representation of the word tagger metrics.

[`debugDescription`](/documentation/CreateML/MLWordTaggerMetrics/debugDescription)

A text representation of the word tagger metrics that’s suitable for
output during debugging.

[`playgroundDescription`](/documentation/CreateML/MLWordTaggerMetrics/playgroundDescription)

A description of the word tagger metrics shown in a playground.

[`confusionDataFrame`](/documentation/CreateML/MLWordTaggerMetrics/confusionDataFrame)

A data frame comparing the actual and predicted labels for each class.

[`precisionRecallDataFrame`](/documentation/CreateML/MLWordTaggerMetrics/precisionRecallDataFrame)

A data frame listing the precision and recall percentages for each class.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)