Constructor TextCorrection
- Namespace
- LMKit.TextEnhancement
- Assembly
- LM-Kit.NET.dll
TextCorrection(LM)
Initializes a new instance of the TextCorrection class.
public TextCorrection(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 TextCorrection using the LM
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.