Instance Property


The number of words in the vocabulary.


var vocabularySize: Int { get }

See Also

Inspecting the Vocabulary of an Embedding

var dimension: Int

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

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.

var revision: Int

The revision of the word embedding.