Property Confidence
- Namespace
- LMKit.TextAnalysis
- Assembly
- LM-Kit.NET.dll
Confidence
Gets the confidence score of the last sentiment analysis process, ranging from 0 to 1. A score closer to 1 indicates higher confidence in the categorization accuracy.
public float Confidence { get; }
Property Value
- float
A floating-point value representing the confidence of the last sentiment analysis.
Examples
// After performing sentiment analysis
float confidence = sentimentAnalyzer.Confidence;
Console.WriteLine($"Confidence: {confidence}");
Remarks
This metric can be used to evaluate and filter predictions based on their reliability.