<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 10.14.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLTextClassifier/ModelAlgorithmType/crf(revision:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML16MLTextClassifierV18ModelAlgorithmTypeO3crfyAESiSg_tcAEmF"
  },
  "title" : "MLTextClassifier.ModelAlgorithmType.crf(revision:)"
}
-->

# MLTextClassifier.ModelAlgorithmType.crf(revision:)

A text classification algorithm that uses a statistical model of transition probabilities between words.

```
case crf(revision: Int?)
```

## Parameters

`revision`

The algorithm version. The only supported version is 1. If `nil` defaults to the latest version.

---

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)