Class SarcasmDetection
- Namespace
- LMKit.TextAnalysis
- Assembly
- LM-Kit.NET.dll
Represents a specialized class for analyzing sarcastic tones in text. This class is designed for applications where understanding sarcasm context is crucial, such as customer feedback analysis, social media monitoring, or mental health assessment tools.
public sealed class SarcasmDetection
- Inheritance
-
SarcasmDetection
- Inherited Members
Constructors
- SarcasmDetection(LLM)
Initializes a new instance of the SarcasmDetection class.
Properties
- Confidence
Confidence of the last detection process, expressed as a floating-point value ranging from 0 to 1. A score closer to 1 indicates a higher confidence level in the categorization accuracy, while a score closer to 0 suggests lower confidence. This metric can be used to evaluate and filter predictions based on their reliability.
- Model
Gets the Model instance associated with this object.
- UseEmbeddingClassifier
Gets or sets a value indicating whether the classifier should utilize embeddings strategy instead of completion.
Methods
- CreateTrainingObject(TrainingDataset, int, bool, int?)
Creates a training object for fine-tuning a sarcasm detection model using a specified dataset.
- CreateTrainingObject(IList<(string, bool)>, int)
Creates an object for fine-tuning a sarcasm detection model using the provided training data.
- GetTrainingData(TrainingDataset, int, bool, int?)
Retrieves training data for fine-tuning a sarcasm detection model from a specified dataset.
- IsSarcastic(string, CancellationToken)
Analyzes the provided text to determine if it contains sarcasm.
- IsSarcasticAsync(string, CancellationToken)
Analyzes the provided text to determine if it contains sarcasm.