nemo_curator.tasks.ocr
nemo_curator.tasks.ocr
Task data classes for the OCR mixed dense pipeline.
Module Contents
Classes
API
Dataclass
Bases: ImageTaskData
Task data for the OCR dense pipeline.
Fields are populated incrementally as the task moves through pipeline stages:
- OCR stage (NemotronOCR-v2): ocr_dense
- Scoring QA stage (Nemotron-Nano-Omni): ocr_scoring_*
- Conversationalize stage: conversation
ocr_dense
ocr_dense_prompt
ocr_is_word_level
ocr_scoring_missing
ocr_scoring_mode
ocr_scoring_model
ocr_scoring_prompt
ocr_scoring_response_raw
classmethod
Deserialize from a JSONL record (produced by JsonlSampleWriterStage).
Dataclass
Single entry (word, line, or block) in dense OCR output.
Coordinates are normalized 0-1000.
bbox_2d
bbox_match
quad
text_content
text_errors
valid
classmethod
staticmethod
Merge multiple items into one by unioning their bboxes and joining text.