ailiaTokenizerDecode method
- Pointer<
AILIATokenizer> net, - Pointer<
Int> tokens, - int token_count
~japanese @brief デコードを行います。 @param net トークナイザオブジェクトポインタ @param tokens デコードするトークン @param token_count トークンの数 @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details デコードした結果はailiaTokenizerGetText APIで取得します。 skip_special_tokens=Trueと同様に、Special Tokenは出力しません。
~english @brief Perform decode @param net A tokenizer instance pointer @param tokens Tokens for decode @param token_count The number of tokens @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise. @details 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,
);
}