Table of Contents

Class TextExtraction

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

Provides functionality to extract structured data from unstructured text using a language model.

public sealed class TextExtraction : IDisposable
Inheritance
TextExtraction
Implements
Inherited Members

Remarks

The TextExtraction class allows you to define a set of elements to extract from a given text content. It utilizes a language model to parse the content and extract the specified elements.

Constructors

TextExtraction(LLM)

Initializes a new instance of the TextExtraction class with the specified language model.

Properties

Elements

Gets or sets the list of TextExtractionElement instances that define the elements to extract from the content.

Guidance

Gets or sets semantic guidance for the extraction process.

Methods

Parse(CancellationToken)

Parses the content synchronously to extract the defined elements.

ParseAsync(CancellationToken)

Parses the content asynchronously to extract the defined elements.

SetContent(string)

Sets the content from which the elements will be extracted.