Property OverflowStrategy
- Namespace
- LMKit.Extraction
- Assembly
- LM-Kit.NET.dll
OverflowStrategy
Gets or sets the strategy applied when the content does not fit the context window a single inference pass can hold.
public TextExtraction.OverflowResolutionStrategy OverflowStrategy { get; set; }
Property Value
- TextExtraction.OverflowResolutionStrategy
The default value is Reject.
Examples
var extraction = new TextExtraction(model)
{
OverflowStrategy = TextExtraction.OverflowResolutionStrategy.Segment
};
Remarks
Left at the default, oversize content raises NotEnoughContextSizeException. Set Segment to process content of any size as a sequence of windowed passes whose answers are folded into one result, at the cost of one inference pass per window.