Table of Contents

Property NullOnDoubt

Namespace
LMKit.Extraction
Assembly
LM-Kit.NET.dll

NullOnDoubt

Gets or sets a value indicating whether the language model should return null for uncertain content rather than risk an aggressive extraction that could lead 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)");