mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-08 12:48:28 +00:00
chore: update deprecation note for OcrEngine (#2200)
This commit updates the deprecated note to correctly point to get_ocr_factory().registered_kind. Signed-off-by: Alina Ryan <aliryan@redhat.com>
This commit is contained in:
@@ -237,7 +237,9 @@ class PdfBackend(str, Enum):
|
||||
|
||||
|
||||
# Define an enum for the ocr engines
|
||||
@deprecated("Use ocr_factory.registered_enum")
|
||||
@deprecated(
|
||||
"Use get_ocr_factory().registered_kind to get a list of registered OCR engines."
|
||||
)
|
||||
class OcrEngine(str, Enum):
|
||||
"""Enum of valid OCR engines."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user