---
title: MLTextClassifier.ModelAlgorithmType
framework: createml
role: symbol
role_heading: Enumeration
path: createml/mltextclassifier/modelalgorithmtype
---

# MLTextClassifier.ModelAlgorithmType

The type of algorithm that a text classifier uses.

## Declaration

```swift
enum ModelAlgorithmType
```

## Mentioned in

Creating a text classifier model Improving Your Model’s Accuracy

## Overview

Overview Typically, maxEnt is the fastest training algorithm. If the text classifier’s performance isn’t good enough, consider the transferLearning algorithm.

## Topics

### Selecting an algorithm type

- [MLTextClassifier.ModelAlgorithmType.crf(revision:)](createml/mltextclassifier/modelalgorithmtype/crf(revision:).md)
- [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)

### Describing an algorithm type

- [description](createml/mltextclassifier/modelalgorithmtype/description.md)
- [debugDescription](createml/mltextclassifier/modelalgorithmtype/debugdescription.md)
- [playgroundDescription](createml/mltextclassifier/modelalgorithmtype/playgrounddescription.md)

### Default Implementations

- [CustomDebugStringConvertible Implementations](createml/mltextclassifier/modelalgorithmtype/customdebugstringconvertible-implementations.md)
- [CustomPlaygroundDisplayConvertible Implementations](createml/mltextclassifier/modelalgorithmtype/customplaygrounddisplayconvertible-implementations.md)
- [CustomStringConvertible Implementations](createml/mltextclassifier/modelalgorithmtype/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

### Supporting types

- [MLTextClassifier.FeatureExtractorType](createml/mltextclassifier/featureextractortype.md)
