whisper_token_count method

int whisper_token_count(
  1. Pointer<whisper_context> ctx,
  2. Pointer<Char> text
)

Return the number of tokens in the provided text Equivalent to: -whisper_tokenize(ctx, text, NULL, 0)

Implementation

int whisper_token_count(
  ffi.Pointer<whisper_context> ctx,
  ffi.Pointer<ffi.Char> text,
) {
  return _whisper_token_count(
    ctx,
    text,
  );
}