Contents

writeEmbeddingForDictionary:language:revision:toURL:error:

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

Declaration

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