PDF OCR Correction
pdf_ocr_correct · Built-in task recipeRun Tesseract OCR on the bounding boxes annotated with PDF Image Annotation and correct the extracted text.
If you've connected Ellf to your coding assistant, it can set up the task for you: it knows the recipe's settings, can create the datasets and assets it needs and will ask you about anything it can't work out itself.
✳︎Claude Code: Setting up a task
› Set up an Ellf task using the PDF OCR Correction recipe (pdf_ocr_correct) and help me choose the right settings for my data.- In the app, go to TasksNew task.
- Select the PDF OCR Correction recipe under PDF.
- Fill in the form – you'll need to provide Dataset, Source dataset, PDF document set and Labels. Everything else has sensible defaults.
- Create the task. It starts on your cluster straight away.
Create the task with ellf tasks create and the recipe name. All settings from the form are available as arguments. To view all recipe arguments, run ellf tasks create pdf_ocr_correct --help.
| Argument | Type | Description | Default |
|---|---|---|---|
--name | str | Name of the task | None |
--dataset | str | Dataset: Select an existing dataset or create a new one. | |
--source | str | Source dataset: Dataset of bounding box annotations from PDF Image Annotation. | |
--input | str | PDF document set: PDFs published to your cluster, with their pages rendered as images. | |
--label | List[str] | Labels: Only OCR and correct boxes with these labels. | |
--lang | str | OCR language: Tesseract language code, e.g. eng, deu, or eng+deu to combine. For languages not bundled in the cluster image, upload a .traineddata asset and select it below. | "eng" |
--tessdata | str | Tesseract language data: Asset with .traineddata files for languages not bundled in the cluster image. | None |
--fold-dashes | bool | Fold line-break dashes: Remove dashes at the end of a line and fold them with the next word. | False |
--autofocus | bool | Autofocus transcript field: Automatically focus the transcript text input when a task loads. | False |
--settings.instructions | str | Instructions: Markdown document with annotation guidelines, shown to annotators and agents. | None |
--settings.goal | str | Data collection goalAvailable: nooverlap, overlap | "nooverlap" |
--settings.config | str | Prodigy config: JSON object of Prodigy config to override, e.g. the theme, keyboard shortcuts or interface style. | "" |
--settings.exclude | List[str] | Exclude datasets: Datasets containing annotations to exclude. | None |
--project-id | str | Project ID to add task to. Defaults to your saved project. | None |
--worker-class | str | Worker class to launch the task on, as configured on your cluster | None |