Contents

init(contentsOf:)

Creates a word embedding from a model file.

Declaration

convenience init(contentsOf url: URL) throws

Parameters

  • url:

    The location of the .mlmodel file that contains a word embedding.

Discussion

Use this initializer to create a word embedding from an .mlmodel file saved by Create ML’s MLWordEmbedding.

See Also

Creating a word embedding