Instance Property


The revision of the word embedding.


var revision: Int { get }

See Also

Inspecting the Vocabulary of an Embedding

var dimension: Int

The number of dimensions in the vocabulary’s vector space.

var vocabularySize: Int

The number of words in the vocabulary.

var language: NLLanguage?

The language of the text in the word embedding.

func contains(String) -> Bool

Requests a Boolean value that indicates whether the term is in the vocabulary.

func vector(for: String) -> [Double]?

Requests the vector for the given term.