Table of Contents

Constructor TextRewriter

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

TextRewriter(LM)

Initializes a new instance of the TextRewriter class.

public TextRewriter(LM model)

Parameters

model LM

A LM object specifying the language model to be used; cannot be null.

Examples

using LMKit.TextEnhancement;
using LMKit.Model;

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

// Create an instance of TextRewriter using the LM
TextRewriter textRewriter = new TextRewriter(languageModel);

Exceptions

ArgumentNullException

Thrown when the provided model is null.

InvalidModelException

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