Enum Summarizer.SummarizationIntent
- Namespace
- LMKit.TextGeneration
- Assembly
- LM-Kit.NET.dll
Defines the type of summarization intent to apply when processing a given input.
[Obfuscation(Exclude = true)]
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum Summarizer.SummarizationIntent
Fields
Classification = 0Classify the nature or category of the input content without attempting to interpret or summarize it. Typically used to describe format, domain, tone, or structural features (e.g., "This is a legal contract").
Abstraction = 1Generate a high-level summary that captures the semantic meaning of the input content. Intended to provide a condensed version of the text, highlighting core ideas or messages.
Examples
Example: Choose a summarization intent
using LMKit.Model;
using LMKit.TextGeneration;
LM model = LM.LoadFromModelID("gemma3:4b");
var summarizer = new Summarizer(model);
// Classify the nature of the content
summarizer.Intent = Summarizer.SummarizationIntent.Classification;
var classification = summarizer.Summarize("Dear client, please find attached the signed NDA...");
Console.WriteLine($"Classification: {classification.Summary}");
// Generate a semantic summary instead
summarizer.Intent = Summarizer.SummarizationIntent.Abstraction;
var summary = summarizer.Summarize("Artificial intelligence has transformed many industries...");
Console.WriteLine($"Summary: {summary.Summary}");