ailiaTokenizerDecodeWithSpecialTokens method
- Pointer<
AILIATokenizer> net, - Pointer<
Int> tokens, - int token_count
Perform decode with special tokens
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=False, special tokens will be output.
Implementation
int ailiaTokenizerDecodeWithSpecialTokens(
ffi.Pointer<AILIATokenizer> net,
ffi.Pointer<ffi.Int> tokens,
int token_count,
) {
return _ailiaTokenizerDecodeWithSpecialTokens(
net,
tokens,
token_count,
);
}