---
title: dimension
framework: Natural Language
role: symbol
role_heading: Instance Property
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/dimension
---

# dimension

The dimensionality of the embedding vectors generated by the model.

## Declaration

```swift
var dimension: Int { get }
```

## See Also

### Inspecting the contextual embedding

- [hasAvailableAssets](naturallanguage/nlcontextualembedding/hasavailableassets.md)
- [languages](naturallanguage/nlcontextualembedding/languages.md)
- [maximumSequenceLength](naturallanguage/nlcontextualembedding/maximumsequencelength.md)
- [modelIdentifier](naturallanguage/nlcontextualembedding/modelidentifier.md)
- [revision](naturallanguage/nlcontextualembedding/revision.md)
- [scripts](naturallanguage/nlcontextualembedding/scripts.md)
