Table of Contents

Method AddSample

Namespace
LMKit.TextAnalysis.Training
Assembly
LM-Kit.NET.dll

AddSample(string, bool)

Adds a training sample from raw text labeled with the expected sarcasm flag.

public void AddSample(string content, bool isSarcastic)

Parameters

content string

The textual content to analyze for sarcasm.

isSarcastic bool

true if the content is sarcastic; otherwise false.

Examples

dataset.AddSample("What a brilliant idea to deploy on Friday night.", true);
dataset.AddSample("The weather is sunny and warm today.", false);

Remarks

This method calls CreateTrainingSample(Prompt, bool, out InferenceModality) to synthesize a chat-based training example. The resulting sample is wrapped in ChatTrainingSample with the resolved InferenceModality.