Skip to content

Function: tokenizeText()

ts
function tokenizeText(text: string | LlamaText, tokenizer: Tokenizer): Token[]

Tokenize the given input using the given tokenizer, whether it's a string or a LlamaText

Parameters

ParameterType
textstring | LlamaText
tokenizerTokenizer

Returns

Token[]

Defined in

utils/LlamaText.ts:591