Table of Contents

Constructor TextCorrection

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

TextCorrection(LLM)

Initializes a new instance of the TextCorrection class.

public TextCorrection(LLM model)

Parameters

model LLM

The LLM specifying the language model to use.

Examples

using LMKit.TextEnhancement;
using LMKit.Model;

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

// Create an instance of TextCorrection using the LLM
TextCorrection textCorrection = new TextCorrection(languageModel);

Exceptions

ArgumentNullException

Thrown when the provided model is null.

InvalidModelException

Thrown when the provided model is incompatible with the TextCorrection service.