Instance Method

containsString:

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

Declaration

- (BOOL)containsString:(NSString *)string;

Parameters

string

The term to search for in the word embedding.

Return Value

true if the term is in the word embedding’s vocabulary, otherwise false.

See Also

Inspecting the Vocabulary of an Embedding

dimension

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

vocabularySize

The number of words in the vocabulary.

language

The language of the text in the word embedding.

- vectorForString:

Requests the vector for the given term.

- getVector:forString:

Copies a vector into the given a pointer to a float array.

revision

The revision of the word embedding.