---
title: load()
framework: Natural Language
role: symbol
role_heading: Instance 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/load()
---

# load()

The instance method that loads the embedding model.

## Declaration

```swift
func load() throws
```

## Discussion

Discussion The method fails if the necessary assets aren’t on device for the model you specify. Use hasAvailableAssets and requestAssets(completionHandler:) to manage the assets.

## See Also

### Loading and unloading assets

- [unload()](naturallanguage/nlcontextualembedding/unload().md)
