Contents

sentenceEmbedding(for:revision:)

Retrieves a sentence embedding for a given language and revision.

Declaration

class func sentenceEmbedding(for language: NLLanguage, revision: Int) -> NLEmbedding?

Parameters

  • language:

    The language of the sentence embedding, such as French. For possible values, see Nllanguage.

  • revision:

    The revision of the sentence embedding.

Return Value

An NLEmbedding if available, otherwise nil.

See Also

Creating a sentence embedding