Contents

vector(for:)

Accesses the vector associated with the given string in the vocabulary.

Declaration

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

Parameters

  • text:

    A string in the vocabulary.

Return Value

The vector associated with the string if present in the word embedding; otherwise, nil.

See Also

Testing a word embedding