Table of Contents

Constructor TextRewriter

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

TextRewriter(LLM)

Initializes a new instance of the TextRewriter class.

public TextRewriter(LLM model)

Parameters

model LLM

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

Examples

using LMKit.TextEnhancement;
using LMKit.Model;

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

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