Constructor TextCorrection
- Namespace
- LMKit.TextEnhancement
- Assembly
- LM-Kit.NET.dll
TextCorrection(LLM)
Initializes a new instance of the TextCorrection class.
public TextCorrection(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 TextCorrection using the LLM
TextCorrection textCorrection = new TextCorrection(languageModel);
Exceptions
- ArgumentNullException
Thrown when the provided
model
isnull
.- InvalidModelException
Thrown when the provided
model
is incompatible with the TextCorrection service.