WordRefiningMethod
Method used to refine handwritten word text when AI-augmented text is available.
from nutrient_sdk import WordRefiningMethodValues
| Name | Value | Description |
|---|---|---|
WordRefiningMethod.HEURISTIC | 0 | Uses heuristic character-level alignment to redistribute AI-augmented word boundaries across detected bounding boxes. |
WordRefiningMethod.VLM | 1 | Uses an additional AI model call to correct each detected word’s text individually. |
Usage Example
from nutrient_sdk import WordRefiningMethod
# Access enum valuesvalue = WordRefiningMethod.HEURISTICprint(f"Value: {value}") # Output: Value: WordRefiningMethod.HEURISTICprint(f"Integer value: {value.value}") # Output: Integer value: 0