ailiaTokenizerEncode method
- Pointer<
AILIATokenizer> net, - Pointer<
Char> utf8
Perform encode
Parameters:
net: A tokenizer instance pointertext: Text for encode (UTF8)
Returns:
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.
Get the encoded result with ailiaTokenizerGetTokens API. Just like with split_special_tokens=True, Special Tokens are treated as strings by splitting them.
Implementation
int ailiaTokenizerEncode(
ffi.Pointer<AILIATokenizer> net,
ffi.Pointer<ffi.Char> utf8,
) {
return _ailiaTokenizerEncode(
net,
utf8,
);
}