UNPKG

llmtrim

Version:

A library for trimming tokens in encoding and decoding in LLM applications.

9 lines (8 loc) 207 B
export interface TrimOptions { stemmer?: 'porter' | 'lancaster'; language?: 'english'; removeSpaces?: boolean; removeStopwords?: boolean; removePunctuation?: boolean; removeNewLines?: boolean; }