init(contentsOf:)
Creates a word embedding from a model file.
Declaration
convenience init(contentsOf url: URL) throwsParameters
- url:
The location of the .
mlmodelfile that contains a word embedding.
Discussion
Use this initializer to create a word embedding from an .mlmodel file saved by Create ML’s MLWordEmbedding.