Type Method

wordEmbedding(for:revision:)

Retrieves a word embedding for a given language and revision.

Declaration

class func wordEmbedding(for language: NLLanguage, revision: Int) -> NLEmbedding?

Parameters

language

The language of the word embedding, such as french.

revision

The revision of the word embedding.

Return Value

An NLEmbedding if available, otherwise nil.

See Also

Creating a Word Embedding

class func wordEmbedding(for: NLLanguage) -> NLEmbedding?

Retrieves a word embedding for a given language.

init(contentsOf: URL)

Creates a word embedding from a model file.