LLamaToken
Namespace: LLama.Native
A single token
1 |
|
Inheritance Object → ValueType → LLamaToken
Implements IEquatable<LLamaToken>
Attributes NullableContextAttribute, NullableAttribute, IsReadOnlyAttribute, DebuggerDisplayAttribute
Fields
InvalidToken
Token Value used when token is inherently null
1 |
|
Methods
GetAttributes(SafeLlamaModelHandle)
Get attributes for this token
1 |
|
Parameters
model
SafeLlamaModelHandle
Returns
GetAttributes(Vocabulary)
Get attributes for this token
1 |
|
Parameters
vocab
Vocabulary
Returns
GetScore(Vocabulary)
Get score for this token
1 |
|
Parameters
vocab
Vocabulary
Returns
IsControl(SafeLlamaModelHandle)
Check if this is a control token
1 |
|
Parameters
model
SafeLlamaModelHandle
Returns
IsControl(Vocabulary)
Check if this is a control token
1 |
|
Parameters
vocab
Vocabulary
Returns
IsEndOfGeneration(SafeLlamaModelHandle)
Check if this token should end generation
1 |
|
Parameters
model
SafeLlamaModelHandle
Returns
IsEndOfGeneration(Vocabulary)
Check if this token should end generation
1 |
|
Parameters
vocab
Vocabulary
Returns
ToString()
1 |
|
Returns
GetHashCode()
1 |
|
Returns
Equals(Object)
1 |
|
Parameters
obj
Object
Returns
Equals(LLamaToken)
1 |
|
Parameters
other
LLamaToken