Class EntityValidationResult
- Namespace
- LMKit.Extraction
- Assembly
- LM-Kit.NET.dll
Contains the outcome of automatic entity detection and validation for a single extracted element.
public sealed class EntityValidationResult
- Inheritance
-
EntityValidationResult
- Inherited Members
Examples
var result = extractor.Parse(document);
foreach (var el in result.Elements)
{
var v = el.Validation;
if (v.Status == EntityValidationStatus.Invalid)
{
Console.WriteLine($"{el.TextExtractionElement.Name}: INVALID {v.EntityKind}");
}
}
Remarks
When the extraction pipeline detects a known entity kind (such as EmailAddress or Iban), it validates the extracted value against format rules specific to that entity kind. This class captures both the detection and validation outcome so that consuming code can decide whether to trust, review, or reject the value.
Properties
- EntityKind
Gets the entity kind that was automatically detected from the field name and type.
- HasValidator
Gets a value indicating whether a format-specific validator exists for the detected entity kind.
- IsValid
Gets a value indicating whether the extracted value is considered structurally valid for its entity kind.
- OriginalValue
Gets the original value before any automatic repair was applied.
- Status
Gets the validation status indicating whether the extracted value conforms to the expected format for the detected entity kind.