---
title: "MLTextClassifier.ModelAlgorithmType.crf(revision:)"
framework: createml
role: symbol
role_heading: Case
path: "createml/mltextclassifier/modelalgorithmtype/crf(revision:)"
---

# MLTextClassifier.ModelAlgorithmType.crf(revision:)

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

## Declaration

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

## Parameters

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

## Mentioned in

Creating a text classifier model

## See Also

### Selecting an algorithm type

- [MLTextClassifier.ModelAlgorithmType.maxEnt(revision:)](createml/mltextclassifier/modelalgorithmtype/maxent(revision:).md)
- [MLTextClassifier.ModelAlgorithmType.transferLearning(_:revision:)](createml/mltextclassifier/modelalgorithmtype/transferlearning(_:revision:).md)
- [MLTextClassifier.FeatureExtractorType](createml/mltextclassifier/featureextractortype.md)
