Analyze Sentiment
analyze_sentimentAnalyze text sentiment.
Returns positive/negative classification with confidence scores. Brainiall Sentiment engine-based with sub-10ms latency. Multiple domain-specific model variants available.
Args: text: Text to analyze for sentiment (positive/negative). model: Model variant -- 'general' (default), 'financial', 'twitter'.
Returns: dict with keys: - label (str): 'positive' or 'negative' - score (float 0-1): Confidence score for the predicted label - scores (dict): All label scores (positive, negative)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to analyze for sentiment (positive/negative) | |
| model | No | Model variant: 'general' (default), 'financial', 'twitter' | general |