Method used to refine handwritten word text when AI-augmented text is available.

from nutrient_sdk import WordRefiningMethod

Values

NameValueDescription
WordRefiningMethod.HEURISTIC0Uses heuristic character-level alignment to redistribute AI-augmented word boundaries across detected bounding boxes.
WordRefiningMethod.VLM1Uses an additional AI model call to correct each detected word’s text individually.

Usage Example

from nutrient_sdk import WordRefiningMethod
# Access enum values
value = WordRefiningMethod.HEURISTIC
print(f"Value: {value}") # Output: Value: WordRefiningMethod.HEURISTIC
print(f"Integer value: {value.value}") # Output: Integer value: 0