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
- Inheritance
-
TextExtractionResultElement
- Inherited Members
Examples
using LMKit.Extraction;
using System;
// Assume 'result' is an instance of TextExtractionResult after parsing some content.
foreach (var item in result.Items)
{
Console.WriteLine($"Element Name: {item.TextExtractionElement.Name}");
Console.WriteLine($"Value: {item.Value}");
Console.WriteLine($"JSON Representation: {item.ToString()}");
}
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
- Value
Gets the extracted value.
Methods
- ToString()
Returns a JSON representation of the extracted value.