---
title: "write(_:language:revision:to:)"
framework: naturallanguage
role: symbol
role_heading: Type Method
path: "naturallanguage/nlembedding/write(_:language:revision:to:)"
---

# write(_:language:revision:to:)

Exports the word embedding contained within a Core ML model file at the given URL.

## Declaration

```swift
@nonobjc class func write(_ dictionary: [String : [Double]], language: NLLanguage?, revision: Int, to url: URL) throws
```

## Parameters

- `dictionary`: A dictionary of terms, and their vectors, which are represented by an array of doubles.
- `language`: The language of the text in the word embedding.
- `revision`: The revision of the word embedding.
- `url`: The location in the file system to write the file to.
