<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NaturalLanguage",
  "identifier" : "/documentation/NaturalLanguage/NLEmbedding/writeEmbeddingForDictionary:language:revision:toURL:error:",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Natural Language"
    ],
    "preciseIdentifier" : "c:objc(cs)NLEmbedding(cm)writeEmbeddingForDictionary:language:revision:toURL:error:"
  },
  "title" : "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.

```
+ (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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)