---
title: "wordEmbedding(for:revision:)"
framework: naturallanguage
role: symbol
role_heading: Type Method
path: "naturallanguage/nlembedding/wordembedding(for:revision:)"
---

# wordEmbedding(for:revision:)

Retrieves a word embedding for a given language and revision.

## Declaration

```swift
class func wordEmbedding(for language: NLLanguage, revision: Int) -> NLEmbedding?
```

## Parameters

- `language`: The language of the word embedding, such as doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLLanguage/french.
- `revision`: The revision of the word embedding.

## Return Value

Return Value An NLEmbedding if available, otherwise nil.

## See Also

### Creating a word embedding

- [wordEmbedding(for:)](naturallanguage/nlembedding/wordembedding(for:).md)
- [init(contentsOf:)](naturallanguage/nlembedding/init(contentsof:).md)
