ailiaTokenizerEncode method

int ailiaTokenizerEncode(
  1. Pointer<AILIATokenizer> net,
  2. Pointer<Char> utf8
)

~japanese @brief エンコードを行います。 @param net トークナイザオブジェクトポインタ @param text エンコードするテキスト(UTF8) @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details 認識した結果はailiaTokenizerGetTokens APIで取得します。

~english @brief Perform encode @param net A tokenizer instance pointer @param text Text for encode (UTF8) @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise. @details Get the encoded result with ailiaTokenizerGetTokens API.

Implementation

int ailiaTokenizerEncode(
  ffi.Pointer<AILIATokenizer> net,
  ffi.Pointer<ffi.Char> utf8,
) {
  return _ailiaTokenizerEncode(
    net,
    utf8,
  );
}