ailiaTokenizerGetVocab method

int ailiaTokenizerGetVocab(
  1. Pointer<AILIATokenizer> net,
  2. int token,
  3. Pointer<Pointer<Char>> vocab
)

~japanese @brief Vocabの取得を行います。 @param net トークナイザオブジェクトポインタ @param token トークン @param vocab Vocabのテキスト(UTF8) @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details vocabを解放する必要はありません。 vocabの有効期間は次にailiaTokenizer APIを呼び出すまでになります。

~english @brief Perform encode @param net A tokenizer instance pointer @param token Token @param text Text of vocab (UTF8) @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise. @details There is no need to release the vocab. The validity period of the vocab will last until the next time the ailiaTokenizer API is called.

Implementation

int ailiaTokenizerGetVocab(
  ffi.Pointer<AILIATokenizer> net,
  int token,
  ffi.Pointer<ffi.Pointer<ffi.Char>> vocab,
) {
  return _ailiaTokenizerGetVocab(
    net,
    token,
    vocab,
  );
}