export interface TfIdfCorpus { docSets: Set[]; docCount: number; } export declare function buildCorpus(allTexts: string[]): TfIdfCorpus; export declare function extractKeywords(text: string, allTexts: string[], topN: number): string[]; export declare function extractKeywords(text: string, corpus: TfIdfCorpus, topN: number): string[]; //# sourceMappingURL=tf-idf.d.ts.map