Skip to content

model tokenize

GitHub Action edited this page Jul 9, 2026 · 1 revision
std::forward_list<int> tokenize(std::string input)

Basic Info

Encodes a string into a list of tokens.

Return Type

Returns an std::forward_list<int>

Parameters

Parameter Type Use Optional
input std::string Input String

Example

// Calling the tokenize() function
model m();
std::forward_list<int> toks = m.tokenize("Hello, World!");

Clone this wiki locally