Constructor Summarizer
- Namespace
- LMKit.TextGeneration
- Assembly
- LM-Kit.NET.dll
Summarizer(LM)
Initializes a new instance of the Summarizer class with the specified language model.
public Summarizer(LM model)
Parameters
model
LMThe language model to be used for summarization.
Examples
// Constructing a Summarizer after loading a custom model and verifying its usability.
var customModel = new LMKit.Model.LM("custom-weights.gguf");
var summarizer = new LMKit.TextGeneration.Summarizer(customModel);
Console.WriteLine("Summarizer initialized. Model name: " + summarizer.Model.Name);
Console.WriteLine("Context Length: " + summarizer.MaximumContextLength);
Exceptions
- ArgumentNullException
Thrown if the provided model is null.