UNPKG

novel-segment

Version:

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

16 lines (15 loc) 525 B
/** * Created by user on 2018/4/19/019. */ import AbstractTableDictCore, { IOptions } from './core'; /** * 原版 node-segment 的格式 */ export declare class TableDictSynonymPanGu extends AbstractTableDictCore<string> { static readonly type = "SYNONYM"; constructor(type?: string, options?: IOptions, ...argv: any[]); add(data: [string, string] & string[], skipExists?: boolean): this; _add(n1: string, n2: string): void; protected _trim(s: string): string; } export default TableDictSynonymPanGu;