Objective-CclassNaturalLanguage
NLLMLanguageModelSession
@interface NLLMLanguageModelSession : NLTokenIDBasedLanguageModelSession
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
Members 26
- ivar
void *_model;+0x10 - ivar
NLTokenizer *_tokenizer;+0x18 - method
- (void).cxx_destruct; - method
- (void)adaptToToken:(id)arg0 context:(id)arg1; - method
- (void)adaptToTokenID:(unsigned int)arg0 contextTokenIDs:(const unsigned int *)arg1 length:(unsigned long long)arg2; - method
- (BOOL)addTokenForString:(id)arg0 tokenID:(unsigned int *)arg1; - method
- (void)applyExponentialDecay; - method
- (long long)blocklistStatusForString:(id)arg0 matchType:(long long)arg1; - method
- (long long)blocklistStatusForTokenIDs:(const unsigned int *)arg0 length:(unsigned long long)arg1 matchType:(long long)arg2; - method
- (id)conditionalProbabilityForString:(id)arg0 context:(id)arg1; - method
- (id)conditionalProbabilityForToken:(id)arg0 context:(id)arg1; - method
- (id)conditionalProbabilityForTokenID:(unsigned int)arg0 contextTokenIDs:(const unsigned int *)arg1 length:(unsigned long long)arg2; - method
- (void)dealloc; - method
- (id)description; - method
- (void)enumeratePredictionsForContext:(id)arg0 maximumPredictions:(unsigned long long)arg1 maximumTokensPerPrediction:(unsigned long long)arg2 withBlock:(id /* block */)arg3; - method
- (void)enumeratePredictionsForContextTokenIDs:(const unsigned int *)arg0 length:(unsigned long long)arg1 maximumPredictions:(unsigned long long)arg2 maximumTokensPerPrediction:(unsigned long long)arg3 withBlock:(id /* block */)arg4; - method
- (void)flushDynamicData; - method
- (BOOL)getFirstDynamicTokenID:(unsigned int *)arg0 lastDynamicTokenID:(unsigned int *)arg1; - method
- (id)initWithLanguageModel:(id)arg0 options:(id)arg1; - method
- (void)pruneToSize:(unsigned long long)arg0; - method
- (void)recordWithDifferentialPrivacy:(id)arg0; - method
- (void)reset; - method
- (BOOL)shouldAdaptToTokenIDs:(const unsigned int *)arg0 length:(unsigned long long)arg1; - method
- (void)unadaptToToken:(id)arg0 context:(id)arg1; - method
- (void)unadaptToTokenID:(unsigned int)arg0 contextTokenIDs:(const unsigned int *)arg1 length:(unsigned long long)arg2; - method
- (float)usageCountForTokenID:(unsigned int)arg0;
Header
@interface NLLMLanguageModelSession : NLTokenIDBasedLanguageModelSession { void *_model; NLTokenizer *_tokenizer; } - (void)reset; - (void)flushDynamicData; - (void).cxx_destruct; - (void)dealloc; - (id)description; - (void)adaptToTokenID:(unsigned int)tokenID contextTokenIDs:(const unsigned int *)contextTokenIDs length:(unsigned long long)length; - (BOOL)addTokenForString:(id)string tokenID:(unsigned int *)tokenID; - (void)applyExponentialDecay; - (long long)blocklistStatusForString:(id)string matchType:(long long)matchType; - (long long)blocklistStatusForTokenIDs:(const unsigned int *)tokenIDs length:(unsigned long long)length matchType:(long long)matchType; - (id)conditionalProbabilityForString:(id)string context:(id)context; - (id)conditionalProbabilityForTokenID:(unsigned int)tokenID contextTokenIDs:(const unsigned int *)contextTokenIDs length:(unsigned long long)length; - (void)enumeratePredictionsForContextTokenIDs:(const unsigned int *)contextTokenIDs length:(unsigned long long)length maximumPredictions:(unsigned long long)maximumPredictions maximumTokensPerPrediction:(unsigned long long)prediction withBlock:(id /* block */)withBlock; - (BOOL)getFirstDynamicTokenID:(unsigned int *)firstDynamicTokenID lastDynamicTokenID:(unsigned int *)lastDynamicTokenID; - (void)pruneToSize:(unsigned long long)size; - (void)recordWithDifferentialPrivacy:(id)differentialPrivacy; - (BOOL)shouldAdaptToTokenIDs:(const unsigned int *)tokenIDs length:(unsigned long long)length; - (float)usageCountForTokenID:(unsigned int)tokenID; - (void)adaptToToken:(id)token context:(id)context; - (id)conditionalProbabilityForToken:(id)token context:(id)context; - (void)enumeratePredictionsForContext:(id)context maximumPredictions:(unsigned long long)maximumPredictions maximumTokensPerPrediction:(unsigned long long)prediction withBlock:(id /* block */)withBlock; - (id)initWithLanguageModel:(id)languageModel options:(id)options; - (void)unadaptToToken:(id)token context:(id)context; - (void)unadaptToTokenID:(unsigned int)tokenID contextTokenIDs:(const unsigned int *)contextTokenIDs length:(unsigned long long)length; @end