TextCorrectionMode
Controls how AI text correction resolves differences between VLM and OCR text.
from nutrient_sdk import TextCorrectionModeValues
| Name | Value | Description |
|---|---|---|
TextCorrectionMode.AUTO | 0 | Zone health determines whether VLM or OCR text is preferred. High-health zones use a 0.85 confidence gate; low-health zones force gate to 1.0. |
TextCorrectionMode.PREFER_VLM | 1 | VLM text is always preferred (gate forced to 1.0 for all zones). Use for degraded documents where OCR is unreliable. |
Usage Example
from nutrient_sdk import TextCorrectionMode
# Access enum valuesvalue = TextCorrectionMode.AUTOprint(f"Value: {value}") # Output: Value: TextCorrectionMode.AUTOprint(f"Integer value: {value.value}") # Output: Integer value: 0