Table of Contents

Constructor TextExtraction

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

TextExtraction(LLM)

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

public TextExtraction(LLM model)

Parameters

model LLM

The LLM model to use for the extraction process; cannot be null.

Examples

// Initialize the language model (LLM)
LLM languageModel = new LLM("path/to/your/model");

// Create an instance of TextExtraction using the LLM
TextExtraction textExtraction = new TextExtraction(languageModel);

Exceptions

ArgumentNullException

Thrown when the provided model is null.

InvalidModelException

Thrown when the model is an embedding model or has been loaded without weights.