---
title: "contextualEmbeddings(forValues:)"
framework: Natural Language
role: symbol
role_heading: Type Method
platforms: [iOS 17.0+, iPadOS 17.0+, Mac Catalyst 17.0+, macOS 14.0+, tvOS 17.0+, visionOS 1.0+, watchOS 10.0+]
path: "naturallanguage/nlcontextualembedding/contextualembeddings(forvalues:)"
---

# contextualEmbeddings(forValues:)

Returns contextual embedding models that match the specified language, script, or revision criteria.

## Declaration

```swift
class func contextualEmbeddings(forValues valuesDictionary: [NLContextualEmbeddingKey : Any]) -> [NLContextualEmbedding]
```
