abot_erbase
Version:
entity recognition
13 lines (12 loc) • 788 B
TypeScript
import * as IMatch from './iferbase';
export declare function findWordByCategory(oSentence: any, sCategory: string): {
word: IMatch.IWord;
index: number;
};
export declare function getDistinctCategoriesInSentence(oSentence: IMatch.ISentence): string[];
export declare function rankingGeometricMean(oSentence: IMatch.ISentence): number;
export declare function rankingProduct(oSentence: IMatch.ISentence): number;
export declare function cmpRankingProduct(a: IMatch.ISentence, b: IMatch.ISentence): number;
export declare function cutoffSentenceAtRatio(sentences: IMatch.ISentence[]): IMatch.IWord[][];
export declare function dumpNice(sentence: IMatch.ISentence, fn?: any): string;
export declare function dumpNiceArr(sentences: IMatch.ISentence[], fn?: any): string;