Field TextGeneration
- Namespace
- LMKit.Extraction.Ocr
- Assembly
- LM-Kit.NET.dll
Gets the raw text generation result returned by the underlying language model.
public readonly TextGenerationResult TextGeneration
Returns
- TextGenerationResult
- Gets the raw text generation result returned by the underlying language model.
Examples
VlmOcr.VlmOcrResult result = ocr.Run(image);
Console.WriteLine($"Completion: {result.TextGeneration.Completion}");
Console.WriteLine($"Stop reason: {result.TextGeneration.StopReason}");
Remarks
This value contains the full completion text as well as any model-specific metadata (for example, termination reason or quality score) that may be useful for diagnostics or custom post-processing.