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