Table of Contents

Property Confidence

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

Confidence

Gets the confidence score of the extraction for this element, derived from per-token probability analysis during generation.

public float Confidence { get; }

Property Value

float

A value in the range [0.0, 1.0] where 1.0 means the model is fully confident. Returns -1 when confidence data is not available (e.g. the model does not support token probabilities).

Examples

if (element.Confidence >= 0)
{
    Console.WriteLine($"Confidence: {element.Confidence:P0}");
}