init
TypeScriptstatic initLanguage(language: NLLanguage): (NLContextualEmbedding) | nullSwift declarationinit?(language: NLLanguage)class · iOS 17.0+ · SDK 27.1
class NLContextualEmbeddingstatic initLanguage(language: NLLanguage): (NLContextualEmbedding) | nullSwift declarationinit?(language: NLLanguage)static initModelIdentifier(modelIdentifier: string): (NLContextualEmbedding) | nullSwift declarationconvenience init?(modelIdentifier: String)static initScript(script: NLScript): (NLContextualEmbedding) | nullSwift declarationinit?(script: NLScript)static contextualEmbeddings(valuesDictionary: NativeMap<NLContextualEmbeddingKey, unknown>): Array<NLContextualEmbedding>Swift declarationclass func contextualEmbeddings(forValues valuesDictionary: [NLContextualEmbeddingKey : Any]) -> [NLContextualEmbedding]embeddingResult(string: string, language?: (NLLanguage) | null): NLContextualEmbeddingResultSwift declarationfunc embeddingResult(for string: String, language: NLLanguage?) throws -> NLContextualEmbeddingResultload(): voidSwift declarationfunc load() throwsrequestAssets(completionHandler: ((arg0: NLContextualEmbedding_AssetsResult, arg1: (NativeError) | null) => void)): voidSwift declarationfunc requestAssets() async throws -> NLContextualEmbedding.AssetsResultunload(): voidSwift declarationfunc unload()get dimension(): numberSwift declarationvar dimension: Int { get }get hasAvailableAssets(): booleanSwift declarationvar hasAvailableAssets: Bool { get }get languages(): Array<NLLanguage>Swift declarationvar languages: [NLLanguage] { get }get maximumSequenceLength(): numberSwift declarationvar maximumSequenceLength: Int { get }get modelIdentifier(): stringSwift declarationvar modelIdentifier: String { get }get revision(): numberSwift declarationvar revision: Int { get }get scripts(): Array<NLScript>Swift declarationvar scripts: [NLScript] { get }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
NLContextualEmbedding.init()
inherited init: cannot prove legal (class declares 3 custom initializers)