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

Reference strategy used when classifying inline text styles on OCR words.

from nutrient_sdk import InlineStyleReferenceMode

Values

NameValueDescription
InlineStyleReferenceMode.NEAREST0Compare each word against the nearest unstyled word on the page. This is the default and the mode the shipped classifier was calibrated with.
InlineStyleReferenceMode.NONE1Classify each word in isolation, without a reference word.

Usage Example

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