<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLTextClassifier/FeatureExtractorType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Create ML",
      "CreateML"
    ],
    "preciseIdentifier" : "s:8CreateML16MLTextClassifierV20FeatureExtractorTypeO"
  },
  "title" : "MLTextClassifier.FeatureExtractorType"
}
-->

# MLTextClassifier.FeatureExtractorType

The text feature extractor type.

```
enum FeatureExtractorType
```

## Topics

### Selecting a feature extractor type

[`case customEmbedding(URL)`](/documentation/CreateML/MLTextClassifier/FeatureExtractorType/customEmbedding(_:))

A feature extractor that uses a custom embedding contained in a CoreML model file.

[`case staticEmbedding`](/documentation/CreateML/MLTextClassifier/FeatureExtractorType/staticEmbedding)

A feature extractor that uses the standard, built-in word embeddings.

[`case bertEmbedding`](/documentation/CreateML/MLTextClassifier/FeatureExtractorType/bertEmbedding)

A feature extractor that provides BERT contextual word embeddings.

[`case elmoEmbedding`](/documentation/CreateML/MLTextClassifier/FeatureExtractorType/elmoEmbedding)

A feature extractor that provides ELMo contextual word embeddings.

[`case dynamicEmbedding`](/documentation/CreateML/MLTextClassifier/FeatureExtractorType/dynamicEmbedding)

A feature extractor that provides embeddings for words, based on their in-context use.

### Describing a feature extractor type

[`var description: String`](/documentation/CreateML/MLTextClassifier/FeatureExtractorType/description)

A text representation of a feature extractor type.

[`var debugDescription: String`](/documentation/CreateML/MLTextClassifier/FeatureExtractorType/debugDescription)

A text representation of the feature extractor type that’s suitable for
output during debugging.

[`var playgroundDescription: Any`](/documentation/CreateML/MLTextClassifier/FeatureExtractorType/playgroundDescription)

A description of the feature extractor type shown in a playground.

### Default Implementations

[CustomDebugStringConvertible Implementations](/documentation/CreateML/MLTextClassifier/FeatureExtractorType/CustomDebugStringConvertible-Implementations)

[CustomPlaygroundDisplayConvertible Implementations](/documentation/CreateML/MLTextClassifier/FeatureExtractorType/CustomPlaygroundDisplayConvertible-Implementations)

[CustomStringConvertible Implementations](/documentation/CreateML/MLTextClassifier/FeatureExtractorType/CustomStringConvertible-Implementations)

## Relationships

### Conforms To

[`CustomPlaygroundDisplayConvertible`](/documentation/Swift/CustomPlaygroundDisplayConvertible)

[`Sendable`](/documentation/Swift/Sendable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Copyable`](/documentation/Swift/Copyable)

[`Escapable`](/documentation/Swift/Escapable)

---

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)