---
title: "currentSentenceEmbeddingRevision(for:)"
framework: naturallanguage
role: symbol
role_heading: Type Method
path: "naturallanguage/nlembedding/currentsentenceembeddingrevision(for:)"
---

# currentSentenceEmbeddingRevision(for:)

Retrieves the current version of a sentence embedding for the given language.

## Declaration

```swift
class func currentSentenceEmbeddingRevision(for language: NLLanguage) -> Int
```

## Parameters

- `language`: A language supported by the Natural Language framework. For possible values, see doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLLanguage.

## Return Value

Return Value An integer representing the current version number of a sentence embedding.

## See Also

### Checking for Natural Language support

- [currentRevision(for:)](naturallanguage/nlembedding/currentrevision(for:).md)
- [supportedRevisions(for:)](naturallanguage/nlembedding/supportedrevisions(for:).md)
- [supportedSentenceEmbeddingRevisions(for:)](naturallanguage/nlembedding/supportedsentenceembeddingrevisions(for:).md)
