One Logo Pool Ball
NaturalLanguage · IOS API REFERENCE

NLContextualEmbeddingResult

class · iOS 17.0+ · SDK 27.1

class NLContextualEmbeddingResult

Members (4)

get · iOS 17.0+

language

TypeScript
get language(): NLLanguage
Swift declaration
var language: NLLanguage { get }
get · iOS 17.0+

sequenceLength

TypeScript
get sequenceLength(): number
Swift declaration
var sequenceLength: Int { get }
get · iOS 17.0+

string

TypeScript
get string(): string
Swift declaration
var string: String { get }
method · iOS 17.0+

tokenVector

TypeScript
tokenVector(index: SDKHandle): ([Array<number>, SDKHandle]) | null
Swift declaration
@nonobjc func tokenVector(at index: String.Index) -> ([Double], Range<String.Index>)?

Skipped declarations

2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

NLContextualEmbeddingResult.enumerateTokenVectors(in:using:)

callback cannot propagate synchronous failure

NLContextualEmbeddingResult.init()

inherited init: clang: 'init' is unavailable

All NaturalLanguage types →