Table of Contents

Property Grammar

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

Grammar

Gets or sets the Grammar object used to enforce grammatical rules during generation. When Grammar is set to a non-null value, repetition penalties are disabled by default. This prevents conflicts between grammar enforcement and repetition control. If needed, you can manually re-enable repetition penalties after setting the Grammar property.

public Grammar Grammar { get; set; }

Property Value

Grammar