UNPKG

@enjoyjs/node-mecab

Version:
56 lines 1.45 kB
export type OutputFormatType = 'wakati' | 'yomi' | 'chasen' | 'dump' | 'simple' | 'none' | 'em'; export type MecabOptions = { rcfile?: string; dicdir?: string; userdic?: string; latticeLevel?: number; dictionaryInfo?: boolean; outputFormatType?: OutputFormatType; allMorphs?: boolean; nbest?: number; partial?: boolean; marginal?: boolean; maxGroupingSize?: number; nodeFormat?: string; unkFormat?: string; bosFormat?: string; eosFormat?: string; eonFormat?: string; unkFeature?: string; inputBufferSize?: number; dumpConfig?: boolean; allocateSentence?: boolean; theta?: number; costFactor?: number; output?: string; }; export type Feature = { pos?: string; posSubs: [string | undefined, string | undefined, string | undefined]; conjugatedType?: string; conjugatedForm?: string; basicForm?: string; reading?: string; pronunciation?: string; }; export type Stats = readonly ['NORMAL', 'UNKNOWN', 'BOS', 'EOS', 'EON']; export type Stat = Stats[number]; export type Token = { id: number; surface: string; feature: Feature; startPosition: number; endPosition: number; rcAttr: number; lcAttr: number; posid: number; charType: number; stat: Stat; isbest: boolean; alpha: number; beta: number; prob: number; cost: number; _: string[]; }; //# sourceMappingURL=types.d.ts.map