Skip to content

Type Alias: Tokenizer

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

Type declaration

detokenize

ts
readonly detokenize: Detokenizer;

isSpecialToken()

Parameters

ParameterType
tokenToken

Returns

boolean

isEogToken()

Parameters

ParameterType
tokenToken

Returns

boolean

Defined in

types.ts:12