Table of Contents

Constructor TextExtraction

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

TextExtraction(LM)

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

public TextExtraction(LM model)

Parameters

model LM

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

Examples

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

// Create an instance of TextExtraction using the LM
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.