Table of Contents

Constructor TextCorrection

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

TextCorrection(LM)

Initializes a new instance of the TextCorrection class.

public TextCorrection(LM model)

Parameters

model LM

The LM specifying the language model to use.

Examples

using LMKit.TextEnhancement;
using LMKit.Model;

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

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