UNPKG

novel-segment

Version:

Chinese word segmentation 簡繁中文分词模块 以網路小說為樣本

15 lines (14 loc) 460 B
import AbstractTableDictCore, { IDICT } from './core'; /** * 原版 node-segment 的格式 */ export declare abstract class TableDictLine extends AbstractTableDictCore<boolean> { exists(data: any, ...argv: any[]): boolean; add(word: string | string[]): this; _add(word: string): void; remove(word: string): this; _remove(word: string): void; json(): IDICT<boolean>; stringify(LF?: string): string; } export default TableDictLine;