Contents

vector(for:)

Requests the vector for the given term.

Declaration

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

Parameters

  • string:

    The term to find in the word embedding.

Mentioned in

Return Value

A vector represented as an array of doubles if present in the word embedding, otherwise nil.

See Also

Inspecting the vocabulary of an embedding