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
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
isnull
.- InvalidModelException
Thrown when the provided
model
is incompatible with the TextRewriter service.