UNPKG

bilingual-summarizer

Version:

A powerful text summarization package for Arabic and English content with sentiment analysis and topic extraction

14 lines (13 loc) 520 B
import { SentimentResult } from '../types'; /** * Analyzes the sentiment of the given text based on its language * @param text The text to analyze * @returns An object with the sentiment score and comparative value */ export declare function analyzeSentiment(text: string): SentimentResult; /** * Maps a sentiment score to a human-readable label * @param score The sentiment score * @returns A sentiment label (positive, negative, or neutral) */ export declare function getSentimentLabel(score: number): string;