Table of Contents

Class TextExtractionResultElement

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

Represents an extracted element from text, containing the value and associated metadata.

public sealed class TextExtractionResultElement : ILayoutElement
Inheritance
TextExtractionResultElement
Implements
Inherited Members

Examples

// Assume 'el' is a TextExtractionResultElement
Console.WriteLine(el.TextExtractionElement.Name);
Console.WriteLine(el.Value);
Console.WriteLine(el.ToString()); // JSON-like representation

Remarks

The TextExtractionResultElement class stores the result of an extraction operation performed by the TextExtraction class. It contains the extracted value and the corresponding TextExtractionElement that defines the extraction parameters.

Fields

TextExtractionElement

Gets the TextExtractionElement associated with this result element.

Properties

Bounds

Gets the detected bounds of the element, when available.

InnerElements

Gets the list of inner elements associated with this result element, based on the schema defined in the TextExtractionElement.

Value

Gets the extracted value.

Methods

As<T>(T)

Strongly typed projection of Value. Returns defaultValue if cast/conversion fails.

ToString()

Returns a JSON representation of the extracted value.