---
title: MLTextClassifier.FeatureExtractorType.dynamicEmbedding
framework: createml
role: symbol
role_heading: Case
path: createml/mltextclassifier/featureextractortype/dynamicembedding
---

# MLTextClassifier.FeatureExtractorType.dynamicEmbedding

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

## Declaration

```swift
case dynamicEmbedding
```

## Discussion

Discussion Dynamic embedding requires certain downloadable assets to be present on device at training time. Training will throw an error if the specified language is unavailable at runtime. Asset downloads are managed in the background automatically by the OS when a new language is configured in device settings, such as when adding a new keyboard language or changing the preferred language.

## See Also

### Selecting a feature extractor type

- [MLTextClassifier.FeatureExtractorType.customEmbedding(_:)](createml/mltextclassifier/featureextractortype/customembedding(_:).md)
- [MLTextClassifier.FeatureExtractorType.staticEmbedding](createml/mltextclassifier/featureextractortype/staticembedding.md)
- [MLTextClassifier.FeatureExtractorType.bertEmbedding](createml/mltextclassifier/featureextractortype/bertembedding.md)
- [MLTextClassifier.FeatureExtractorType.elmoEmbedding](createml/mltextclassifier/featureextractortype/elmoembedding.md)
