Skip to content

Type Alias: Tokenizer

ts
type Tokenizer = {
  tokenize: Token[];
 }["tokenize"] & {
  detokenize: Detokenizer;
  isSpecialToken: boolean;
  isEogToken: boolean;
};

Defined in: types.ts:12

Type declaration

detokenize

ts
readonly detokenize: Detokenizer;

isSpecialToken()

Parameters

ParameterType
tokenToken

Returns

boolean

isEogToken()

Parameters

ParameterType
tokenToken

Returns

boolean