UNPKG

@harryjwang/simplewordcloud

Version:

A simple word cloud generator supporting English and Chinese text

14 lines 411 B
/** * Chinese text tokenizer using the jieba-wasm library */ export declare class ChineseTokenizer { private stopwords; constructor(); /** * Tokenize Chinese text into words and count their frequencies * @param text The input Chinese text * @returns A map of words to their frequencies */ tokenize(text: string): Map<string, number>; } //# sourceMappingURL=chinese.d.ts.map