ailiaTokenizerDecode method
- Pointer<
AILIATokenizer> net, - Pointer<
Int> tokens, - int token_count
Perform decode
Parameters:
net: A tokenizer instance pointertokens: Tokens for decodetoken_count: The number of tokens
Returns:
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.
Get the decoded result with ailiaTokenizerGetText API. Similarly to skip_special_tokens=True, special tokens will not be output.
Implementation
int ailiaTokenizerDecode(
ffi.Pointer<AILIATokenizer> net,
ffi.Pointer<ffi.Int> tokens,
int token_count,
) {
return _ailiaTokenizerDecode(
net,
tokens,
token_count,
);
}