Property MaxTitleWords
- Namespace
- LMKit.TextGeneration
- Assembly
- LM-Kit.NET.dll
MaxTitleWords
Gets or sets the maximum number of words allowed in the summarized title. Value is constrained between 0 and 50 words.
public int MaxTitleWords { get; set; }
Property Value
- int
The default value is 10.
Examples
// Create a short, punchy title for a blog post summary.
var model = new LMKit.Model.LM("my-model.gguf");
var summarizer = new LMKit.TextGeneration.Summarizer(model)
{
MaxTitleWords = 5
};
string blogPost = "In this comprehensive guide, we explore the fundamentals of AI...";
var result = summarizer.Summarize(blogPost);
Console.WriteLine("Title (Max 5 words): " + result.Title);