Skip to content

tokenizer get_vocab

GitHub Action edited this page Jul 9, 2026 · 1 revision
std::vector<std::string>* get_vocab()

Basic Info

Returns a pointer to the vocab vector.

Return Type

Returns an std::vector<std::string>*


Example

// Calling the get_vocab() function
tokenizer t("hello.txt");
t.get_vocab();

Clone this wiki locally