Constructor LanguageDetectionTrainingDataset
- Namespace
- LMKit.Translation.Training
- Assembly
- LM-Kit.NET.dll
LanguageDetectionTrainingDataset(TextTranslation)
Initializes a language-detection-focused training dataset bound to a specific TextTranslation engine instance.
public LanguageDetectionTrainingDataset(TextTranslation engine)
Parameters
engineTextTranslationThe configured translation engine whose prompts, model, and preferred modality are used to generate training samples for language identification.
Examples
var tx = new TextTranslation(/* configured elsewhere */);
var dataset = new LanguageDetectionTrainingDataset(tx)
{
EnableModalityAugmentation = true
};
dataset.AddSample("Bonjour, comment ça va ?", TextGeneration.Language.French);
Remarks
The constructor captures the current state of engine.
Subsequent calls to AddSample(string, Language)
and overloads synthesize chat examples consistent with this configuration.