Contents

contains(_:)

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

Declaration

func contains(_ string: String) -> Bool

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