Property NullOnDoubt
- Namespace
- LMKit.Extraction
- Assembly
- LM-Kit.NET.dll
NullOnDoubt
When true, the language model will return null on uncertain content detection rather than risk an aggressive extraction leading to 'false positives'.
public bool NullOnDoubt { get; set; }
Property Value
- bool
The default value is true.
Examples
var te = new TextExtraction(LM.LoadFromModelID("lmkit-tasks:4b-preview"))
{
NullOnDoubt = false // prefer recall over precision in this scenario
};
te.Elements = new List<TextExtractionElement> { new TextExtractionElement("PartNumber", ElementType.String) };
te.SetContent("PN: maybe missing");
var r = te.Parse();
Console.WriteLine(r.GetValue("PartNumber") ?? "(null)");