Table of Contents

Property GenerateTitle

Namespace
LMKit.TextGeneration
Assembly
LM-Kit.NET.dll

GenerateTitle

Gets or sets a value indicating whether the summarization should include a generated title.

public bool GenerateTitle { get; set; }

Property Value

bool

The default value is true.

Examples

// Disable title generation if only the content summary is needed.
var model = new LMKit.Model.LM("article-model.gguf");
var summarizer = new LMKit.TextGeneration.Summarizer(model)
{
    GenerateTitle = false
};

string articleContent = "The stock markets saw unprecedented growth today...";
var result = summarizer.Summarize(articleContent);

Console.WriteLine("Title Generation Enabled: " + summarizer.GenerateTitle);
Console.WriteLine("Summary: " + result.Content);
// Note: result.Title may be empty since GenerateTitle = false.