Constructor EmotionDetectionTrainingDataset
- Namespace
- LMKit.TextAnalysis.Training
- Assembly
- LM-Kit.NET.dll
EmotionDetectionTrainingDataset(EmotionDetection)
Initializes an emotion-detection-focused training dataset bound to a specific EmotionDetection engine instance.
public EmotionDetectionTrainingDataset(EmotionDetection engine)
Parameters
engine
EmotionDetectionThe configured emotion detection engine whose prompts, model, and label schema will be used to generate training samples.
Examples
var engine = new EmotionDetection(/* configured elsewhere */);
var dataset = new EmotionDetectionTrainingDataset(engine);
dataset.AddSample(
"I can't believe how unfair this is!",
EmotionDetection.EmotionCategory.Anger);
Remarks
The constructor captures the current state of engine
.
Subsequent calls to AddSample(string, EmotionCategory)
will synthesize chat examples consistent with this configuration.