This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /api/python/enums/text-correction-mode.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. TextCorrectionMode

Controls how AI text correction resolves differences between VLM and OCR text.

from nutrient_sdk import TextCorrectionMode

Values

NameValueDescription
TextCorrectionMode.AUTO0Zone 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_VLM1VLM 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 values
value = TextCorrectionMode.AUTO
print(f"Value: {value}") # Output: Value: TextCorrectionMode.AUTO
print(f"Integer value: {value.value}") # Output: Integer value: 0