Constructor TextExtraction
- Namespace
- LMKit.Extraction
- Assembly
- LM-Kit.NET.dll
TextExtraction(LLM)
Initializes a new instance of the TextExtraction class with the specified language model.
public TextExtraction(LLM model)
Parameters
Examples
// Initialize the language model (LLM)
LLM languageModel = new LLM("path/to/your/model");
// Create an instance of TextExtraction using the LLM
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.