Method AllowOnlyIntegerTextChunks
- Namespace
- LMKit.TextGeneration.Sampling
- Assembly
- LM-Kit.NET.dll
AllowOnlyIntegerTextChunks(bool)
Configures the LogitBias instance to restrict the generation of text chunks exclusively to numerical values (0-9) during the sampling process. Spacing between numerical values can be enabled or disabled.
public void AllowOnlyIntegerTextChunks(bool allowSpacing = true)
Parameters
allowSpacing
boolDetermines whether spaces between numerical values are allowed (true) or disallowed (false).