bilingual-summarizer
Version:
A powerful text summarization package for Arabic and English content with sentiment analysis and topic extraction
14 lines (13 loc) • 504 B
TypeScript
/**
* Extracts topics from the given text
* @param text The text to extract topics from
* @param limit Optional limit for the number of topics to return
* @returns An array of extracted topics
*/
export declare function extractTopics(text: string, limit?: number): string[];
/**
* Suggests related topics based on the extracted topics
* @param topics The already extracted topics
* @returns An array of related topics
*/
export declare function suggestRelatedTopics(topics: string[]): string[];