Table of Contents

Property NgramSequenceBreakers

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

NgramSequenceBreakers

Specifies the texts after which a repeat is legitimate, such as a line break or a quotation mark.

public IReadOnlyList<string> NgramSequenceBreakers { get; set; }

Property Value

IReadOnlyList<string>

The default value is a line break, a colon, a double quote, and an asterisk.

Remarks

The sequence-aware penalty stops matching across these, so a list, a dialogue, or a table can restate the structure that makes it readable without being charged for it. Setting this to null or an empty list lets the penalty match across the whole window.

Share