InlineStyleReferenceMode
Reference strategy used when classifying inline text styles on OCR words.
from nutrient_sdk import InlineStyleReferenceModeValues
| Name | Value | Description |
|---|---|---|
InlineStyleReferenceMode.NEAREST | 0 | Compare each word against the nearest unstyled word on the page. This is the default and the mode the shipped classifier was calibrated with. |
InlineStyleReferenceMode.NONE | 1 | Classify each word in isolation, without a reference word. |
Usage Example
from nutrient_sdk import InlineStyleReferenceMode
# Access enum valuesvalue = InlineStyleReferenceMode.NEARESTprint(f"Value: {value}") # Output: Value: InlineStyleReferenceMode.NEARESTprint(f"Integer value: {value.value}") # Output: Integer value: 0