---
title: "writeEmbeddingForDictionary:language:revision:toURL:error:"
framework: naturallanguage
role: symbol
role_heading: Type Method
path: "naturallanguage/nlembedding/writeembeddingfordictionary:language:revision:tourl:error:"
---

# writeEmbeddingForDictionary:language:revision:toURL:error:

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

## Declaration

```occ
+ (BOOL) writeEmbeddingForDictionary:(NSDictionary<NSString *,NSArray<NSNumber *> *> *) dictionary language:(NLLanguage) language revision:(NSUInteger) revision toURL:(NSURL *) url error:(NSError **) error;
```

## 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.
