UNPKG

novel-segment

Version:

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

43 lines (42 loc) 922 B
import { Segment } from './lib/Segment'; import { POSTAG } from '@novel-segment/postag/lib/postag/ids'; declare const _Segment: typeof Segment & { version: string; version_dict: string; versions: { 'novel-segment': string; 'segment-dict': string; 'regexp-cjk': string; 'cjk-conv': string; }; /** * 分词接口 */ Segment: typeof Segment; /** * 词性接口 */ POSTAG: typeof POSTAG; }; declare const __Segment: typeof Segment & { version: string; version_dict: string; versions: { 'novel-segment': string; 'segment-dict': string; 'regexp-cjk': string; 'cjk-conv': string; }; /** * 分词接口 */ Segment: typeof Segment; /** * 词性接口 */ POSTAG: typeof POSTAG; } & { default: typeof _Segment; }; export = __Segment; export * from './version';