Constructor TextExtraction
- Namespace
- LMKit.Extraction
- Assembly
- LM-Kit.NET.dll
TextExtraction(LM)
Initializes a new instance of the TextExtraction class with the specified language model.
public TextExtraction(LM model)
Parameters
Examples
// Initialize the language model (LM)
LM languageModel = new LM("path/to/your/model");
// Create an instance of TextExtraction using the LM
TextExtraction textExtraction = new TextExtraction(languageModel);
Exceptions
- ArgumentNullException
Thrown when the provided
model
isnull
.- InvalidModelException
Thrown when the model is an embedding model or has been loaded without weights.