Interface TokenizationOptions

interface TokenizationOptions {
    type?: "word" | "sentence" | "subword_bpe";
    toLowerCase?: boolean;
    removePunctuation?: boolean;
    language?: string;
    modelId?: string;
}

Properties

type?: "word" | "sentence" | "subword_bpe"
toLowerCase?: boolean

Default true. StatisticalUtilityAI keeps a sentence's case unless it is true.

removePunctuation?: boolean

LLMUtilityAI: default true for words, false for sentences. StatisticalUtilityAI's words never hold punctuation.

language?: string
modelId?: string