Contents

contains(_:)

Returns a Boolean value indicating whether the vocabulary contains the given string.

Declaration

func contains(_ text: String) -> Bool

Parameters

  • text:

    The string to find in the vocabulary.

Return Value

true if the string was found in the vocabulary; otherwise, false.

See Also

Testing a word embedding