raw2md 0.2.0__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {raw2md-0.2.0 → raw2md-0.2.2}/.github/release.yml +5 -2
- {raw2md-0.2.0 → raw2md-0.2.2}/.github/workflows/release.yml +7 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/CHANGELOG.md +21 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/PKG-INFO +10 -7
- {raw2md-0.2.0 → raw2md-0.2.2}/README.md +7 -5
- {raw2md-0.2.0 → raw2md-0.2.2}/benchmarks/README.md +15 -13
- {raw2md-0.2.0 → raw2md-0.2.2}/benchmarks/mpdocbench/README.md +3 -3
- {raw2md-0.2.0 → raw2md-0.2.2}/benchmarks/mpdocbench/results/all.yaml +20 -20
- {raw2md-0.2.0 → raw2md-0.2.2}/benchmarks/mpdocbench/results/english.yaml +21 -19
- {raw2md-0.2.0 → raw2md-0.2.2}/benchmarks/mpdocbench/scripts/mpdocbench/cli.py +17 -4
- {raw2md-0.2.0 → raw2md-0.2.2}/benchmarks/mpdocbench/scripts/mpdocbench/pins.py +4 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/benchmarks/mpdocbench/scripts/mpdocbench/scoring.py +28 -5
- {raw2md-0.2.0 → raw2md-0.2.2}/benchmarks/mpdocbench/scripts/scorer/requirements.txt +10 -12
- {raw2md-0.2.0 → raw2md-0.2.2}/benchmarks/mpdocbench/scripts/scorer/setup.sh +59 -9
- {raw2md-0.2.0 → raw2md-0.2.2}/examples/README.md +7 -7
- {raw2md-0.2.0 → raw2md-0.2.2}/examples/book.md +365 -349
- {raw2md-0.2.0 → raw2md-0.2.2}/examples/report.md +6 -4
- {raw2md-0.2.0 → raw2md-0.2.2}/examples/thesis.md +95 -97
- raw2md-0.2.2/notes/notes.md +10 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/pyproject.toml +22 -6
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/doctor.py +2 -1
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_mpdocbench.py +76 -0
- raw2md-0.2.0/.markdownlint-cli2.jsonc +0 -31
- raw2md-0.2.0/notes/notes.md +0 -16
- raw2md-0.2.0/package-lock.json +0 -1367
- raw2md-0.2.0/package.json +0 -19
- raw2md-0.2.0/uv.lock +0 -2948
- {raw2md-0.2.0 → raw2md-0.2.2}/.gitattributes +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/.github/ISSUE_TEMPLATE/bug.yml +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/.github/ISSUE_TEMPLATE/docs.yml +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/.github/ISSUE_TEMPLATE/feature.yml +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/.github/ISSUE_TEMPLATE/quality.yml +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/.github/ISSUE_TEMPLATE/task.yml +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/.github/pull_request_template.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/.github/scripts/check-smoke-result.sh +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/.github/workflows/ci.yml +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/.github/workflows/docs.yml +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/.github/workflows/smoke.yml +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/.gitignore +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/AGENTS.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/LICENSE +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/NOTICE +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/SECURITY.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/THIRD_PARTY_NOTICES.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/benchmarks/mpdocbench/run.sh +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/benchmarks/mpdocbench/scripts/mpdocbench/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/benchmarks/mpdocbench/scripts/mpdocbench/convert.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/benchmarks/mpdocbench/scripts/mpdocbench/fetch.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/benchmarks/mpdocbench/scripts/mpdocbench/pdfs.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/benchmarks/mpdocbench/scripts/mpdocbench/report.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/benchmarks/mpdocbench/scripts/pins.yaml +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/benchmarks/mpdocbench/scripts/run.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/codecov.yml +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/docs/README.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/docs/assets/raw2md-logo.svg +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/docs/cleaning.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/docs/inspection.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/docs/post.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/docs/quality.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/docs/reference.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/examples/MODEL_LICENSE +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/.gitkeep +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/__main__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/cleaner.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/cleaning/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/cleaning/findings.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/cleaning/headings.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/cleaning/lists.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/cleaning/math.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/cleaning/ocr.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/cleaning/options.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/cleaning/prose.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/cleaning/segments.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/cleaning/tables.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/cli.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/config.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/engines/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/engines/base.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/engines/bundled.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/engines/djvu.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/engines/pandoc.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/engines/pandoc_tables.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/engines/pdfium.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/engines/preflight.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/engines/signature.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/engines/weights.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/exit_codes.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/header.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/init.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/katex.min.js +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/katex.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/keywords.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/keywords.yaml +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/acceptance.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/base.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/chunking.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/claude.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/edit_guard.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/factory.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/gemini.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/inspection/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/inspection/addressing.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/inspection/apply.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/inspection/common.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/inspection/coordinator.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/inspection/masking.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/inspection/numbering.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/inspection/reply.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/ocr.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/post/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/post/blocks.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/post/common.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/post/coordinator.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/post/ladder.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/post/spacing.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/post/tables.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/rpd.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/llm/trace.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/lock.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/logging_setup.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/mdtext/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/mdtext/formulas.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/mdtext/lines.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/mdtext/links.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/mdtext/loops.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/mdtext/math_spans.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/mdtext/pages.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/mdtext/tables.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/mdtext/zones.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/media.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/orchestrator.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/output.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/paths.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/pipeline.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/progress.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/prompts.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/quality/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/quality/evaluator.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/quality/headings.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/queue.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/service.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/settings.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/source_outline.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/source_text.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md/temp.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/LICENSE +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/builders/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/builders/document.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/builders/layout.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/builders/line.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/builders/ocr.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/builders/structure.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/converters/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/converters/pdf.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/logger.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/models.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/output.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/processors/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/processors/blank_page.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/processors/block_relabel.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/processors/blockquote.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/processors/code.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/processors/debug.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/processors/document_toc.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/processors/equation.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/processors/footnote.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/processors/ignoretext.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/processors/line_merge.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/processors/line_numbers.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/processors/list.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/processors/order.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/processors/page_header.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/processors/reference.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/processors/sectionheader.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/processors/table.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/processors/text.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/providers/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/providers/pdf.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/providers/utils.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/renderers/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/renderers/html.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/renderers/markdown.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/blocks/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/blocks/base.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/blocks/basetable.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/blocks/caption.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/blocks/code.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/blocks/complexregion.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/blocks/equation.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/blocks/figure.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/blocks/footnote.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/blocks/form.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/blocks/handwriting.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/blocks/inlinemath.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/blocks/listitem.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/blocks/pagefooter.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/blocks/pageheader.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/blocks/picture.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/blocks/reference.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/blocks/sectionheader.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/blocks/table.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/blocks/tablecell.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/blocks/text.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/blocks/toc.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/document.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/groups/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/groups/base.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/groups/figure.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/groups/list.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/groups/page.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/groups/picture.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/groups/table.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/polygon.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/registry.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/text/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/text/char.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/text/line.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/schema/text/span.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/settings.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/util.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/utils/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/marker/utils/image.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/pdftext/LICENSE +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/pdftext/extraction.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/pdftext/pdf/chars.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/pdftext/pdf/links.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/pdftext/pdf/pages.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/pdftext/pdf/utils.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/pdftext/postprocessing.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/pdftext/schema.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/pdftext/settings.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/pdftext/tables.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/LICENSE +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/adetr/decoder.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/donut/encoder.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/donut/processor.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/load.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/polygon.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/predictor.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/pretrained.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/s3.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/surya/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/surya/config.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/surya/decoder/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/surya/decoder/config.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/surya/embedder/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/surya/encoder/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/surya/encoder/config.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/surya/flash_attn_utils.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/surya/processor/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/surya/processor/schema.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/surya/processor/tokenizer.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/surya/schema.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/util.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/common/xla.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/detection/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/detection/heatmap.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/detection/loader.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/detection/model/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/detection/model/config.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/detection/model/encoderdecoder.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/detection/parallel.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/detection/processor.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/detection/schema.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/detection/util.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/foundation/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/foundation/cache/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/foundation/cache/dynamic_ops.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/foundation/cache/static_ops.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/foundation/loader.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/foundation/util.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/input/processing.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/layout/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/layout/label.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/layout/schema.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/logging.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/ocr_error/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/ocr_error/loader.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/ocr_error/model/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/ocr_error/model/config.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/ocr_error/model/encoder.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/ocr_error/schema.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/ocr_error/tokenizer.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/recognition/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/recognition/postprocessing.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/recognition/schema.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/recognition/util.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/settings.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/table_rec/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/table_rec/loader.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/table_rec/model/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/table_rec/model/config.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/table_rec/model/decoder.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/table_rec/model/encoder.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/table_rec/model/encoderdecoder.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/table_rec/processor.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/table_rec/schema.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/src/raw2md_engine/surya/table_rec/shaper.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/.gitkeep +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/cleaning/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/cleaning/_helpers.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/cleaning/test_findings.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/cleaning/test_heading_levels.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/cleaning/test_heading_recovery.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/cleaning/test_headings.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/cleaning/test_lists.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/cleaning/test_math.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/cleaning/test_ocr.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/cleaning/test_prose.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/cleaning/test_prose_rejoin.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/cleaning/test_tables.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/conftest.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/README.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/assets/chart-2.png +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/assets/chart-3.png +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/assets/chart.png +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/assets/diagram (v2).png +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/assets/fonts/Caveat-Regular.ttf +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/assets/fonts/OFL.txt +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/assets/fonts/sources.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/assets/sample.png +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/chart_series.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/engineering_prose.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/footnotes.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/formulas.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/handwriting.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/headers.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/images.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/long_doc.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/math_legend.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/mixed.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/multilang.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/multiline_display_math.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/nested_lists.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/single_glyph_math.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/table_formulas.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/table_math_pipes.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/corpus/tables.md +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/fixtures/offline/prompts.yaml +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/fixtures/offline/settings.json +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/fixtures/real/prompts.yaml +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/fixtures/real/settings.json +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/inspection/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/inspection/_helpers.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/inspection/test_addressing.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/inspection/test_apply.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/inspection/test_coordinator.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/inspection/test_masking.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/inspection/test_reply.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/pdf_fixtures.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/post/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/post/_helpers.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/post/test_blocks.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/post/test_coordinator.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/post/test_ladder.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/post/test_spacing.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/post/test_tables.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/synthesis/__init__.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/synthesis/_degrade.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/synthesis/_paths.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/synthesis/_structure.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/synthesis/gen_djvu.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/synthesis/gen_docx.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/synthesis/gen_pdf.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/synthesis/gen_scan.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/synthesis/gen_smoke.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/synthesis/generate.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/synthesis/roundtrip.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/synthesis/runner.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/synthesis/test_corpus_fast.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/synthesis/test_llm_live.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/synthesis/test_roundtrip.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/synthesis/test_structure.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/synthesis/test_synthesis.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_acceptance.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_cleaner.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_cli.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_comment_length.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_doctor.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_edit_guard.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_engine_copy.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_engines.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_entry_point.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_fixtures_config.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_header.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_init.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_inspection_chunking.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_katex.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_keywords.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_llm.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_llm_trace.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_lock.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_logging_setup.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_media.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_no_network.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_ocr.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_orchestrator.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_output.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_pandoc_media.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_pipeline.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_progress.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_prompts.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_quality.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_queue.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_rpd.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_settings.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_source_outline.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_source_text.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_temp.py +0 -0
- {raw2md-0.2.0 → raw2md-0.2.2}/tests/test_weights.py +0 -0
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
# Categories of the generated release notes
|
|
2
|
-
#
|
|
1
|
+
# Categories of the generated release notes: one for each issue form label,
|
|
2
|
+
# and one for security fixes, which have no issue form.
|
|
3
|
+
# The catch-all keeps a pull request without a known label in the notes.
|
|
3
4
|
changelog:
|
|
4
5
|
categories:
|
|
6
|
+
- title: Security
|
|
7
|
+
labels: [security]
|
|
5
8
|
- title: Bug fixes
|
|
6
9
|
labels: [bug]
|
|
7
10
|
- title: Conversion quality
|
|
@@ -58,6 +58,13 @@ jobs:
|
|
|
58
58
|
- run: uv build --no-sources
|
|
59
59
|
- run: uvx twine check --strict dist/*
|
|
60
60
|
|
|
61
|
+
- name: Check the sdist holds no dev lock files
|
|
62
|
+
run: |
|
|
63
|
+
if tar -tzf dist/*.tar.gz | grep -E '/(uv\.lock|package\.json|package-lock\.json|\.markdownlint-cli2\.jsonc)$'; then
|
|
64
|
+
echo "sdist holds dev lock or lint files" >&2
|
|
65
|
+
exit 1
|
|
66
|
+
fi
|
|
67
|
+
|
|
61
68
|
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
62
69
|
with:
|
|
63
70
|
name: dist
|
|
@@ -3,6 +3,27 @@
|
|
|
3
3
|
Each section holds the notes of one release, newest first. The GitHub release
|
|
4
4
|
of the version carries the same text.
|
|
5
5
|
|
|
6
|
+
## v0.2.2 - 2026-10-23
|
|
7
|
+
|
|
8
|
+
### Bug fixes
|
|
9
|
+
|
|
10
|
+
- Pin the Python range in the `uv tool install` commands, so that a default Python newer than 3.14 no longer picks an old release
|
|
11
|
+
|
|
12
|
+
### Maintenance
|
|
13
|
+
|
|
14
|
+
- Move the MPDocBench scorer to Python 3.14 and current pins ([#24](https://github.com/MikeDolg/raw2md/pull/24))
|
|
15
|
+
|
|
16
|
+
Full changelog: <https://github.com/MikeDolg/raw2md/compare/v0.2.1...v0.2.2>
|
|
17
|
+
|
|
18
|
+
## v0.2.1 - 2026-10-22
|
|
19
|
+
|
|
20
|
+
### Security
|
|
21
|
+
|
|
22
|
+
- Require fixed certifi and keep dev lock files out of the sdist ([#20](https://github.com/MikeDolg/raw2md/pull/20))
|
|
23
|
+
- Require Pillow 13.0.0 ([#22](https://github.com/MikeDolg/raw2md/pull/22))
|
|
24
|
+
|
|
25
|
+
Full changelog: <https://github.com/MikeDolg/raw2md/compare/v0.2.0...v0.2.1>
|
|
26
|
+
|
|
6
27
|
## v0.2.0 - 2026-10-20
|
|
7
28
|
|
|
8
29
|
### Bug fixes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: raw2md
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Convert PDF, DjVu, and DOCX into clean Markdown for RAG and LLM pipelines, with deterministic repair of converter defects.
|
|
5
5
|
Project-URL: Homepage, https://raw2md.com
|
|
6
6
|
Project-URL: Documentation, https://github.com/MikeDolg/raw2md/blob/main/docs/README.md
|
|
@@ -33,6 +33,7 @@ Classifier: Topic :: Text Processing :: Markup :: Markdown
|
|
|
33
33
|
Classifier: Topic :: Utilities
|
|
34
34
|
Requires-Python: <3.15,>=3.11
|
|
35
35
|
Requires-Dist: beautifulsoup4<5,>=4.9
|
|
36
|
+
Requires-Dist: certifi>=2026.10.19
|
|
36
37
|
Requires-Dist: ftfy<7,>=6.1.1
|
|
37
38
|
Requires-Dist: google-genai<2,>=1.0
|
|
38
39
|
Requires-Dist: huggingface-hub<3,>=1.31
|
|
@@ -40,7 +41,7 @@ Requires-Dist: img2pdf<0.7,>=0.5
|
|
|
40
41
|
Requires-Dist: markdownify<2,>=1.1
|
|
41
42
|
Requires-Dist: numpy<3,>=1.24.1
|
|
42
43
|
Requires-Dist: opencv-python-headless==4.11.0.86
|
|
43
|
-
Requires-Dist: pillow<14,>=
|
|
44
|
+
Requires-Dist: pillow<14,>=13.0.0
|
|
44
45
|
Requires-Dist: pydantic<3,>=2.7.1
|
|
45
46
|
Requires-Dist: pypdfium2==4.30.0
|
|
46
47
|
Requires-Dist: pyyaml<7,>=6.0
|
|
@@ -72,7 +73,7 @@ Description-Content-Type: text/markdown
|
|
|
72
73
|
|
|
73
74
|
**raw2md** is an open-source Python command-line tool that converts PDF, DjVu, and DOCX documents into clean Markdown for retrieval-augmented generation (RAG) and other large language model (LLM) pipelines. It runs the conversion with its built-in engine `raw2md-engine`, with `pandoc`, or with Gemini, then repairs the defects that these engines leave in headings, tables, formulas, lists, and text. Markdown from another converter goes through the same cleaning.
|
|
74
75
|
|
|
75
|
-
The cleaning uses deterministic rules and no LLM, so the same input always gives the same cleaned text. On the MPDocBench-Parse benchmark, the cleaning alone raises the aggregate score of the `
|
|
76
|
+
The cleaning uses deterministic rules and no LLM, so the same input always gives the same cleaned text. On the MPDocBench-Parse benchmark, the cleaning alone raises the aggregate score of the `raw2md-engine` output by 3.1%.
|
|
76
77
|
|
|
77
78
|
Two optional LLM stages repair what the rules leave: inspection corrects recognition errors against the source pages, and post-processing repairs damaged markup.
|
|
78
79
|
|
|
@@ -101,12 +102,12 @@ raw2md is built for large, mixed collections of long documents:
|
|
|
101
102
|
|
|
102
103
|
## What's the impact?
|
|
103
104
|
|
|
104
|
-
On the full [MPDocBench-Parse](https://arxiv.org/abs/2605.22100) set, the deterministic cleaning alone, with no LLM stage involved, lifts the seven-metric aggregate score of the underlying `
|
|
105
|
+
On the full [MPDocBench-Parse](https://arxiv.org/abs/2605.22100) set, the deterministic cleaning alone, with no LLM stage involved, lifts the seven-metric aggregate score of the underlying `raw2md-engine` output from 67.18 to 69.25. That is a gain of about 2.1 points, or 3.1% relative. The score follows the leaderboard formula, a normalized mean of the task scores, but without Figure F1: raw2md cannot be scored on that task. Therefore, the score is not comparable with the Overall column of the leaderboard.
|
|
105
106
|
|
|
106
107
|
Most of the improvement lands in the document structure:
|
|
107
108
|
|
|
108
109
|
- table TEDS: 0.652 → 0.698 (+7%)
|
|
109
|
-
- merged-table TEDS: 0.
|
|
110
|
+
- merged-table TEDS: 0.489 → 0.553 (+13%)
|
|
110
111
|
- heading TEDS: 0.371 → 0.408 (+10%)
|
|
111
112
|
|
|
112
113
|
Plain text, on the other hand, loses a little: the text edit distance grows from 0.122 to 0.130. You can find every metric in the [benchmark results](https://github.com/MikeDolg/raw2md/blob/main/benchmarks/README.md).
|
|
@@ -151,7 +152,7 @@ raw2md needs Python 3.11 to 3.14. For `raw2md-engine`, you need an NVIDIA GPU of
|
|
|
151
152
|
Install the tool with [uv](https://docs.astral.sh/uv/getting-started/installation/):
|
|
152
153
|
|
|
153
154
|
```bash
|
|
154
|
-
uv tool install raw2md --torch-backend cu130
|
|
155
|
+
uv tool install --python ">=3.11,<3.15" raw2md --torch-backend cu130
|
|
155
156
|
```
|
|
156
157
|
|
|
157
158
|
Or with `pip`:
|
|
@@ -163,9 +164,11 @@ pip install raw2md --extra-index-url https://download.pytorch.org/whl/cu130
|
|
|
163
164
|
Or straight from GitHub:
|
|
164
165
|
|
|
165
166
|
```bash
|
|
166
|
-
uv tool install git+https://github.com/MikeDolg/raw2md.git
|
|
167
|
+
uv tool install --python ">=3.11,<3.15" git+https://github.com/MikeDolg/raw2md.git
|
|
167
168
|
```
|
|
168
169
|
|
|
170
|
+
Do not skip `--python` in the `uv` commands. Without it, `uv` takes the default Python. If that Python is newer than 3.14, the install fails or picks an old raw2md release, because `uv` ignores the upper bound of `requires-python`.
|
|
171
|
+
|
|
169
172
|
On Windows, do not skip `--torch-backend cu130` or `--extra-index-url`: without them, you get a `torch` build with no CUDA support, and `raw2md-engine` can then run on the CPU only.
|
|
170
173
|
|
|
171
174
|
To work with DOCX files, you need to install `pandoc` 3.1.9 or later separately:
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
**raw2md** is an open-source Python command-line tool that converts PDF, DjVu, and DOCX documents into clean Markdown for retrieval-augmented generation (RAG) and other large language model (LLM) pipelines. It runs the conversion with its built-in engine `raw2md-engine`, with `pandoc`, or with Gemini, then repairs the defects that these engines leave in headings, tables, formulas, lists, and text. Markdown from another converter goes through the same cleaning.
|
|
15
15
|
|
|
16
|
-
The cleaning uses deterministic rules and no LLM, so the same input always gives the same cleaned text. On the MPDocBench-Parse benchmark, the cleaning alone raises the aggregate score of the `
|
|
16
|
+
The cleaning uses deterministic rules and no LLM, so the same input always gives the same cleaned text. On the MPDocBench-Parse benchmark, the cleaning alone raises the aggregate score of the `raw2md-engine` output by 3.1%.
|
|
17
17
|
|
|
18
18
|
Two optional LLM stages repair what the rules leave: inspection corrects recognition errors against the source pages, and post-processing repairs damaged markup.
|
|
19
19
|
|
|
@@ -42,12 +42,12 @@ raw2md is built for large, mixed collections of long documents:
|
|
|
42
42
|
|
|
43
43
|
## What's the impact?
|
|
44
44
|
|
|
45
|
-
On the full [MPDocBench-Parse](https://arxiv.org/abs/2605.22100) set, the deterministic cleaning alone, with no LLM stage involved, lifts the seven-metric aggregate score of the underlying `
|
|
45
|
+
On the full [MPDocBench-Parse](https://arxiv.org/abs/2605.22100) set, the deterministic cleaning alone, with no LLM stage involved, lifts the seven-metric aggregate score of the underlying `raw2md-engine` output from 67.18 to 69.25. That is a gain of about 2.1 points, or 3.1% relative. The score follows the leaderboard formula, a normalized mean of the task scores, but without Figure F1: raw2md cannot be scored on that task. Therefore, the score is not comparable with the Overall column of the leaderboard.
|
|
46
46
|
|
|
47
47
|
Most of the improvement lands in the document structure:
|
|
48
48
|
|
|
49
49
|
- table TEDS: 0.652 → 0.698 (+7%)
|
|
50
|
-
- merged-table TEDS: 0.
|
|
50
|
+
- merged-table TEDS: 0.489 → 0.553 (+13%)
|
|
51
51
|
- heading TEDS: 0.371 → 0.408 (+10%)
|
|
52
52
|
|
|
53
53
|
Plain text, on the other hand, loses a little: the text edit distance grows from 0.122 to 0.130. You can find every metric in the [benchmark results](https://github.com/MikeDolg/raw2md/blob/main/benchmarks/README.md).
|
|
@@ -92,7 +92,7 @@ raw2md needs Python 3.11 to 3.14. For `raw2md-engine`, you need an NVIDIA GPU of
|
|
|
92
92
|
Install the tool with [uv](https://docs.astral.sh/uv/getting-started/installation/):
|
|
93
93
|
|
|
94
94
|
```bash
|
|
95
|
-
uv tool install raw2md --torch-backend cu130
|
|
95
|
+
uv tool install --python ">=3.11,<3.15" raw2md --torch-backend cu130
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
Or with `pip`:
|
|
@@ -104,9 +104,11 @@ pip install raw2md --extra-index-url https://download.pytorch.org/whl/cu130
|
|
|
104
104
|
Or straight from GitHub:
|
|
105
105
|
|
|
106
106
|
```bash
|
|
107
|
-
uv tool install git+https://github.com/MikeDolg/raw2md.git
|
|
107
|
+
uv tool install --python ">=3.11,<3.15" git+https://github.com/MikeDolg/raw2md.git
|
|
108
108
|
```
|
|
109
109
|
|
|
110
|
+
Do not skip `--python` in the `uv` commands. Without it, `uv` takes the default Python. If that Python is newer than 3.14, the install fails or picks an old raw2md release, because `uv` ignores the upper bound of `requires-python`.
|
|
111
|
+
|
|
110
112
|
On Windows, do not skip `--torch-backend cu130` or `--extra-index-url`: without them, you get a `torch` build with no CUDA support, and `raw2md-engine` can then run on the CPU only.
|
|
111
113
|
|
|
112
114
|
To work with DOCX files, you need to install `pandoc` 3.1.9 or later separately:
|
|
@@ -9,20 +9,22 @@
|
|
|
9
9
|
| Element, metric | Whole set, engine | Whole set, raw2md | English, engine | English, raw2md |
|
|
10
10
|
|---|---|---|---|---|
|
|
11
11
|
| `text_block`, Edit_dist ↓ | 0.122 | 0.130 | 0.112 | 0.126 |
|
|
12
|
-
| `merged_text_block`, Edit_dist ↓ | 0.
|
|
13
|
-
| `table`, TEDS ↑ | 0.652 | 0.698 | 0.
|
|
14
|
-
| `merged_table`, TEDS ↑ | 0.
|
|
15
|
-
| `text_relation`, Relation_F1 ↑ | 0.
|
|
12
|
+
| `merged_text_block`, Edit_dist ↓ | 0.302 | 0.299 | 0.285 | 0.280 |
|
|
13
|
+
| `table`, TEDS ↑ | 0.652 | 0.698 | 0.665 | 0.706 |
|
|
14
|
+
| `merged_table`, TEDS ↑ | 0.489 | 0.553 | 0.500 | 0.573 |
|
|
15
|
+
| `text_relation`, Relation_F1 ↑ | 0.123 | 0.132 | 0.134 | 0.149 |
|
|
16
16
|
| `reading_order`, Edit_dist ↓ | 0.204 | 0.205 | 0.209 | 0.211 |
|
|
17
|
-
| `head`, HeadTEDS ↑ | 0.371 | 0.408 | 0.392 | 0.
|
|
18
|
-
| `display_formula`, CDM ↑ | 0.
|
|
19
|
-
|
|
20
|
-
**engine** is the output of
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
| `head`, HeadTEDS ↑ | 0.371 | 0.408 | 0.392 | 0.429 |
|
|
18
|
+
| `display_formula`, CDM ↑ | 0.819 | 0.822 | 0.858 | 0.868 |
|
|
19
|
+
|
|
20
|
+
**engine** is the output of the engine before raw2md, and **raw2md** is the
|
|
21
|
+
final Markdown file. The difference between the two is what raw2md adds.
|
|
22
|
+
|
|
23
|
+
All four columns come from one run of raw2md 0.2.1 without the LLM stages:
|
|
24
|
+
`raw2md <pdf> -d -s -e raw2md-engine`. `raw2md-engine` is based on `marker`
|
|
25
|
+
1.10.2. The English columns score the English documents of that run.
|
|
26
|
+
|
|
27
|
+
The result files are in [mpdocbench/results/](mpdocbench/results/).
|
|
26
28
|
|
|
27
29
|
`FigureF1` and `table_relation` are not computable for raw2md: they read
|
|
28
30
|
figure boxes from image file names and merged tables from HTML.
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
- Ubuntu 22.04.
|
|
6
6
|
- raw2md installed.
|
|
7
7
|
- An NVIDIA GPU with CUDA with 24 GB of VRAM or more.
|
|
8
|
-
- `uv`, `git`,
|
|
9
|
-
|
|
8
|
+
- `uv`, `git`, and root or `sudo`: the scorer setup installs TeX Live,
|
|
9
|
+
ImageMagick, Ghostscript, Node.js, and, through `uv`, Python 3.14.
|
|
10
10
|
- About 4 GB of free disk space.
|
|
11
11
|
- For 11 documents from SlideVQA: accept its terms on the
|
|
12
12
|
[Hub page](https://huggingface.co/datasets/NTT-hil-insight/SlideVQA) and log
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
## Run
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
git clone --depth 1 --branch v0.
|
|
18
|
+
git clone --depth 1 --branch v0.2.2 https://github.com/MikeDolg/raw2md
|
|
19
19
|
bash raw2md/benchmarks/mpdocbench/run.sh [options]
|
|
20
20
|
```
|
|
21
21
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
benchmark: MPDocBench-Parse
|
|
2
|
-
raw2md: 0.1
|
|
3
|
-
command: raw2md <pdf> -d -s -e
|
|
2
|
+
raw2md: 0.2.1
|
|
3
|
+
command: raw2md <pdf> -d -s -e raw2md-engine
|
|
4
4
|
llm: null
|
|
5
5
|
language: all
|
|
6
|
-
scored_at: '2026-
|
|
6
|
+
scored_at: '2026-10-23'
|
|
7
7
|
pins:
|
|
8
8
|
upstream_commit: 4e5aee32280febb7b0844237ba087f837e3c8905
|
|
9
9
|
dataset_sha256: 212d3af3ecea9a095ba61234f58a8c3e99a2ab3bdda6757d71121c6eaedf254d
|
|
@@ -14,8 +14,8 @@ machine:
|
|
|
14
14
|
scoring_cpus: 96
|
|
15
15
|
scoring_platform: Ubuntu 22.04.5 LTS
|
|
16
16
|
time:
|
|
17
|
-
conversion_minutes:
|
|
18
|
-
scoring_minutes:
|
|
17
|
+
conversion_minutes: 362.6
|
|
18
|
+
scoring_minutes: 56.5
|
|
19
19
|
documents:
|
|
20
20
|
annotated: 420
|
|
21
21
|
missing: 0
|
|
@@ -30,29 +30,29 @@ documents:
|
|
|
30
30
|
llm_requests: 0
|
|
31
31
|
scores:
|
|
32
32
|
text_block.Edit_dist:
|
|
33
|
-
engine: 0.
|
|
34
|
-
result: 0.
|
|
33
|
+
engine: 0.1218
|
|
34
|
+
result: 0.1296
|
|
35
35
|
merged_text_block.Edit_dist:
|
|
36
|
-
engine: 0.
|
|
37
|
-
result: 0.
|
|
36
|
+
engine: 0.3021
|
|
37
|
+
result: 0.2987
|
|
38
38
|
table.TEDS:
|
|
39
|
-
engine: 0.
|
|
39
|
+
engine: 0.6517
|
|
40
40
|
result: 0.6982
|
|
41
41
|
merged_table.TEDS:
|
|
42
|
-
engine: 0.
|
|
42
|
+
engine: 0.4891
|
|
43
43
|
result: 0.5529
|
|
44
44
|
text_relation.Relation_F1:
|
|
45
|
-
engine: 0.
|
|
46
|
-
result: 0.
|
|
45
|
+
engine: 0.1234
|
|
46
|
+
result: 0.1318
|
|
47
47
|
reading_order.Edit_dist:
|
|
48
|
-
engine: 0.
|
|
48
|
+
engine: 0.2043
|
|
49
49
|
result: 0.2048
|
|
50
50
|
head.HeadTEDS:
|
|
51
|
-
engine: 0.
|
|
52
|
-
result: 0.
|
|
51
|
+
engine: 0.3709
|
|
52
|
+
result: 0.4076
|
|
53
53
|
display_formula.CDM:
|
|
54
|
-
engine: 0.
|
|
55
|
-
result: 0.
|
|
54
|
+
engine: 0.8193
|
|
55
|
+
result: 0.8216
|
|
56
56
|
figure.FigureF1:
|
|
57
57
|
engine: n/a
|
|
58
58
|
result: n/a
|
|
@@ -64,5 +64,5 @@ notes:
|
|
|
64
64
|
not write.'
|
|
65
65
|
- 'table_relation.Relation_F1 is n/a: the metric reads a merged table out of the HTML tables of a prediction,
|
|
66
66
|
and raw2md writes a table as Markdown.'
|
|
67
|
-
- The engine text match fell back to the simple algorithm on
|
|
68
|
-
- The result text match fell back to the simple algorithm on
|
|
67
|
+
- The engine text match fell back to the simple algorithm on 2 documents.
|
|
68
|
+
- The result text match fell back to the simple algorithm on 2 documents.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
benchmark: MPDocBench-Parse
|
|
2
|
-
raw2md: 0.1
|
|
3
|
-
command: raw2md <pdf> -d -s -e
|
|
2
|
+
raw2md: 0.2.1
|
|
3
|
+
command: raw2md <pdf> -d -s -e raw2md-engine
|
|
4
4
|
llm: null
|
|
5
5
|
language: english
|
|
6
|
-
scored_at: '2026-
|
|
6
|
+
scored_at: '2026-10-23'
|
|
7
7
|
pins:
|
|
8
8
|
upstream_commit: 4e5aee32280febb7b0844237ba087f837e3c8905
|
|
9
9
|
dataset_sha256: 212d3af3ecea9a095ba61234f58a8c3e99a2ab3bdda6757d71121c6eaedf254d
|
|
@@ -14,8 +14,8 @@ machine:
|
|
|
14
14
|
scoring_cpus: 96
|
|
15
15
|
scoring_platform: Ubuntu 22.04.5 LTS
|
|
16
16
|
time:
|
|
17
|
-
conversion_minutes:
|
|
18
|
-
scoring_minutes:
|
|
17
|
+
conversion_minutes: 362.6
|
|
18
|
+
scoring_minutes: 34.8
|
|
19
19
|
documents:
|
|
20
20
|
annotated: 193
|
|
21
21
|
missing: 0
|
|
@@ -30,29 +30,29 @@ documents:
|
|
|
30
30
|
llm_requests: 0
|
|
31
31
|
scores:
|
|
32
32
|
text_block.Edit_dist:
|
|
33
|
-
engine: 0.
|
|
33
|
+
engine: 0.112
|
|
34
34
|
result: 0.1259
|
|
35
35
|
merged_text_block.Edit_dist:
|
|
36
|
-
engine: 0.
|
|
37
|
-
result: 0.
|
|
36
|
+
engine: 0.2853
|
|
37
|
+
result: 0.2804
|
|
38
38
|
table.TEDS:
|
|
39
|
-
engine: 0.
|
|
40
|
-
result: 0.
|
|
39
|
+
engine: 0.6647
|
|
40
|
+
result: 0.7063
|
|
41
41
|
merged_table.TEDS:
|
|
42
|
-
engine: 0.
|
|
43
|
-
result: 0.
|
|
42
|
+
engine: 0.4998
|
|
43
|
+
result: 0.5725
|
|
44
44
|
text_relation.Relation_F1:
|
|
45
|
-
engine: 0.
|
|
46
|
-
result: 0.
|
|
45
|
+
engine: 0.1338
|
|
46
|
+
result: 0.1489
|
|
47
47
|
reading_order.Edit_dist:
|
|
48
48
|
engine: 0.2087
|
|
49
|
-
result: 0.
|
|
49
|
+
result: 0.2109
|
|
50
50
|
head.HeadTEDS:
|
|
51
|
-
engine: 0.
|
|
52
|
-
result: 0.
|
|
51
|
+
engine: 0.3917
|
|
52
|
+
result: 0.4294
|
|
53
53
|
display_formula.CDM:
|
|
54
|
-
engine: 0.
|
|
55
|
-
result: 0.
|
|
54
|
+
engine: 0.8583
|
|
55
|
+
result: 0.868
|
|
56
56
|
figure.FigureF1:
|
|
57
57
|
engine: n/a
|
|
58
58
|
result: n/a
|
|
@@ -66,3 +66,5 @@ notes:
|
|
|
66
66
|
and raw2md writes a table as Markdown.'
|
|
67
67
|
- The engine text match fell back to the simple algorithm on 2 documents.
|
|
68
68
|
- The result text match fell back to the simple algorithm on 2 documents.
|
|
69
|
+
- 'Scored from a conversion of the whole set: conversion_minutes covers every document, not only the english
|
|
70
|
+
ones.'
|
|
@@ -62,9 +62,16 @@ def _convert(args: argparse.Namespace, _pins: Pins) -> None:
|
|
|
62
62
|
def _score(args: argparse.Namespace, pins: Pins) -> None:
|
|
63
63
|
run = RunDir(args.run)
|
|
64
64
|
result = scoring.score(
|
|
65
|
-
pins,
|
|
65
|
+
pins,
|
|
66
|
+
DataDir(args.data),
|
|
67
|
+
run,
|
|
68
|
+
args.scorer_python,
|
|
69
|
+
args.skip_metric,
|
|
70
|
+
args.language,
|
|
66
71
|
)
|
|
67
|
-
|
|
72
|
+
narrowed = result["language"] != load_yaml(run.record)["language"]
|
|
73
|
+
written = run.results_for(result["language"]) if narrowed else run.results
|
|
74
|
+
print(f"result written to {written}\n")
|
|
68
75
|
print(report.render([result], pins))
|
|
69
76
|
|
|
70
77
|
|
|
@@ -149,9 +156,15 @@ def _parser() -> argparse.ArgumentParser:
|
|
|
149
156
|
)
|
|
150
157
|
add_language(add("build", "assemble one PDF per document", data=True, run=True))
|
|
151
158
|
add_llm(add("convert", "convert the PDFs with raw2md", data=False, run=True))
|
|
152
|
-
|
|
153
|
-
|
|
159
|
+
scored = add("score", "score the run and write results.yaml", data=True, run=True)
|
|
160
|
+
scored.add_argument(
|
|
161
|
+
"--language",
|
|
162
|
+
choices=LANGUAGES,
|
|
163
|
+
help="score this language subset of a run of the whole set;"
|
|
164
|
+
" the result goes to results-<language>.yaml"
|
|
165
|
+
" (default: the language of the run)",
|
|
154
166
|
)
|
|
167
|
+
add_scorer(scored)
|
|
155
168
|
every = add("all", "fetch, build, convert, and score", data=True, run=True)
|
|
156
169
|
add_language(every)
|
|
157
170
|
add_llm(every)
|
|
@@ -180,6 +180,10 @@ class RunDir:
|
|
|
180
180
|
def results(self) -> Path:
|
|
181
181
|
return self.root / "results.yaml"
|
|
182
182
|
|
|
183
|
+
def results_for(self, language: str) -> Path:
|
|
184
|
+
"""The result of the language subset of a whole-set run."""
|
|
185
|
+
return self.root / f"results-{language}.yaml"
|
|
186
|
+
|
|
183
187
|
|
|
184
188
|
def load_yaml(path: Path) -> dict[str, Any]:
|
|
185
189
|
try:
|
|
@@ -341,15 +341,33 @@ def score(
|
|
|
341
341
|
run: RunDir,
|
|
342
342
|
scorer_python: Path,
|
|
343
343
|
skip_metrics: Sequence[str] = (),
|
|
344
|
+
language: str | None = None,
|
|
344
345
|
) -> dict[str, Any]:
|
|
345
|
-
"""Score both stages of a run and write `results.yaml`. Return it.
|
|
346
|
+
"""Score both stages of a run and write `results.yaml`. Return it.
|
|
347
|
+
|
|
348
|
+
A run of the whole set also scores one language subset: the documents of
|
|
349
|
+
that language were converted already, so the subset needs no conversion.
|
|
350
|
+
Its result goes to `results-<language>.yaml`, and its scorer folders stay
|
|
351
|
+
apart from those of the whole set.
|
|
352
|
+
"""
|
|
346
353
|
if not data.record.is_file():
|
|
347
354
|
raise BenchmarkError(f"{data.root} holds no fetch.yaml; run fetch first")
|
|
348
355
|
if not run.record.is_file() or not load_yaml(run.record).get("sessions"):
|
|
349
356
|
raise BenchmarkError(f"{run.root} holds no conversion; run convert first")
|
|
350
357
|
fetched = load_yaml(data.record)
|
|
351
358
|
run_record = load_yaml(run.record)
|
|
352
|
-
|
|
359
|
+
converted = str(run_record["language"])
|
|
360
|
+
language = language or converted
|
|
361
|
+
narrowed = language != converted
|
|
362
|
+
if narrowed and (converted != "all" or run_record.get("documents")):
|
|
363
|
+
raise BenchmarkError(
|
|
364
|
+
f"{run.root} converted {converted!r}"
|
|
365
|
+
f"{' for chosen documents' if run_record.get('documents') else ''};"
|
|
366
|
+
f" only a run of the whole set narrows to {language!r}"
|
|
367
|
+
)
|
|
368
|
+
run_record = {**run_record, "language": language}
|
|
369
|
+
prefix = f"{run.root.name}-{language}" if narrowed else run.root.name
|
|
370
|
+
scoring_root = run.scoring / language if narrowed else run.scoring
|
|
353
371
|
harness = data.harness(pins).resolve()
|
|
354
372
|
annotation = data.annotation(pins).resolve()
|
|
355
373
|
|
|
@@ -375,11 +393,11 @@ def score(
|
|
|
375
393
|
scores: dict[str, dict[str, Any]] = {}
|
|
376
394
|
fallbacks: dict[str, int] = {}
|
|
377
395
|
for stage in STAGES:
|
|
378
|
-
stage_dir =
|
|
396
|
+
stage_dir = scoring_root.resolve() / stage
|
|
379
397
|
# The scorer names its output folder after the prediction folder, so
|
|
380
398
|
# the name carries the run: two runs scored from one clone would
|
|
381
399
|
# otherwise overwrite each other's output.
|
|
382
|
-
predictions = stage_dir / f"{
|
|
400
|
+
predictions = stage_dir / f"{prefix}-{stage}"
|
|
383
401
|
layout_predictions(run.outputs, predictions, census.scored, stage)
|
|
384
402
|
print(f"{stage}: scoring {len(census.scored)} documents", flush=True)
|
|
385
403
|
config = stage_dir / _CONFIG
|
|
@@ -411,5 +429,10 @@ def score(
|
|
|
411
429
|
scoring_minutes=(time.monotonic() - started) / 60,
|
|
412
430
|
missing_reason=fetched.get("missing_reason"),
|
|
413
431
|
)
|
|
414
|
-
|
|
432
|
+
if narrowed:
|
|
433
|
+
result["notes"].append(
|
|
434
|
+
f"Scored from a conversion of the whole set: conversion_minutes"
|
|
435
|
+
f" covers every document, not only the {language} ones."
|
|
436
|
+
)
|
|
437
|
+
dump_yaml(run.results_for(language) if narrowed else run.results, result)
|
|
415
438
|
return result
|
|
@@ -1,27 +1,25 @@
|
|
|
1
1
|
# Python dependencies of the MPDocBench scorer (pdf_validation.py and the
|
|
2
2
|
# packages it imports: registry, dataset, metrics, task), pinned to the
|
|
3
|
-
# versions verified against Python 3.
|
|
3
|
+
# versions verified against Python 3.14 for the end2end task. Upstream ships
|
|
4
4
|
# no requirements.txt at this commit; this list is read from the import graph
|
|
5
5
|
# of the code path the benchmark actually calls, not from tools/model_infer.
|
|
6
6
|
#
|
|
7
|
-
# mmeval is
|
|
8
|
-
#
|
|
9
|
-
# the end2end task never uses it.
|
|
7
|
+
# mmeval is not here: only the detection task uses it, it does not import on
|
|
8
|
+
# Python 3.14, and setup.sh moves its import into that task.
|
|
10
9
|
pyyaml==6.0.3
|
|
11
|
-
python-Levenshtein==0.27.
|
|
10
|
+
python-Levenshtein==0.27.5
|
|
12
11
|
func_timeout==4.3.5
|
|
13
12
|
loguru==0.7.3
|
|
14
13
|
tqdm==4.70.1
|
|
15
14
|
pylatexenc==2.11
|
|
16
|
-
pandas==
|
|
15
|
+
pandas==3.1.0
|
|
17
16
|
evaluate==0.4.6
|
|
18
|
-
numpy
|
|
19
|
-
scikit-image
|
|
20
|
-
Pillow==
|
|
17
|
+
numpy==2.5.4
|
|
18
|
+
scikit-image==0.26.0
|
|
19
|
+
Pillow==13.0.0
|
|
21
20
|
apted==1.0.3
|
|
22
21
|
lxml==6.1.3
|
|
23
22
|
beautifulsoup4==4.15.0
|
|
24
|
-
scipy==1.
|
|
23
|
+
scipy==1.18.1
|
|
25
24
|
tabulate==0.10.0
|
|
26
|
-
matplotlib==3.
|
|
27
|
-
mmeval==0.2.1
|
|
25
|
+
matplotlib==3.11.2
|
|
@@ -19,6 +19,7 @@ FONT_RELEASE_TAG="2.005R"
|
|
|
19
19
|
FONT_ASSET="09_SourceHanSansSC.zip"
|
|
20
20
|
MAGICK_RELEASE_TAG="7.1.2-31"
|
|
21
21
|
MAGICK_ASSET="ImageMagick-${MAGICK_RELEASE_TAG}-gcc-x86_64.AppImage" # archive/binaries/ 404s; a pinned release asset does not
|
|
22
|
+
SCORER_PYTHON="3.14" # the pins of requirements.txt are verified against it
|
|
22
23
|
WORKDIR="${2:-$HOME/mpdocbench-scorer}" # holds the venv of the scorer
|
|
23
24
|
|
|
24
25
|
# A container runs as root and often carries no sudo, while a workstation is
|
|
@@ -32,11 +33,10 @@ else
|
|
|
32
33
|
exit 1
|
|
33
34
|
fi
|
|
34
35
|
|
|
35
|
-
#
|
|
36
|
-
#
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
echo "python3.10 is not on this image; the scorer pins are read for 3.10" >&2
|
|
36
|
+
# apt on Ubuntu 22.04 has no Python new enough for the pins, so uv installs
|
|
37
|
+
# the interpreter. Say so here rather than halfway through the install.
|
|
38
|
+
if ! command -v uv >/dev/null; then
|
|
39
|
+
echo "uv is not on PATH; it installs Python $SCORER_PYTHON for the scorer" >&2
|
|
40
40
|
exit 1
|
|
41
41
|
fi
|
|
42
42
|
|
|
@@ -56,7 +56,7 @@ $SUDO apt-get update
|
|
|
56
56
|
# fails and CDM answers zero for each formula.
|
|
57
57
|
$SUDO env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
58
58
|
texlive-xetex texlive-latex-recommended texlive-fonts-recommended \
|
|
59
|
-
texlive-lang-chinese fontconfig curl unzip
|
|
59
|
+
texlive-lang-chinese fontconfig curl unzip \
|
|
60
60
|
libfribidi0 nodejs ghostscript
|
|
61
61
|
|
|
62
62
|
# The portable AppImage, not the from-source build the CDM README asks for:
|
|
@@ -106,9 +106,59 @@ fc-cache -f ~/.fonts
|
|
|
106
106
|
fc-list | grep -i "Source Han Sans SC" || echo "WARNING: font family not registered under the expected name"
|
|
107
107
|
|
|
108
108
|
mkdir -p "$WORKDIR"
|
|
109
|
-
|
|
110
|
-
"$WORKDIR/.venv-scorer
|
|
111
|
-
"$WORKDIR/.venv-scorer/bin/
|
|
109
|
+
uv python install "$SCORER_PYTHON"
|
|
110
|
+
uv venv --clear --managed-python --python "$SCORER_PYTHON" "$WORKDIR/.venv-scorer"
|
|
111
|
+
uv pip install --python "$WORKDIR/.venv-scorer/bin/python" \
|
|
112
|
+
-r "$(dirname "$0")/requirements.txt"
|
|
113
|
+
|
|
114
|
+
# The harness is written for scikit-image 0.20, and the current release breaks
|
|
115
|
+
# it in two ways. ransac() no longer takes random_state; rng seeds the same
|
|
116
|
+
# generator. ransac() now builds a model through a from_estimate class method,
|
|
117
|
+
# and a model whose estimate() returns None counts as failed, so CDM would
|
|
118
|
+
# match no boxes and score a formula near zero without an error. The added
|
|
119
|
+
# from_estimate keeps every estimate a success, as 0.20 read None. mmeval goes
|
|
120
|
+
# from the module level into the detection task, the one place that uses it.
|
|
121
|
+
# Each patch applies to the pinned file, which checkout restores first, so a
|
|
122
|
+
# second run patches again instead of failing on its own edit.
|
|
123
|
+
HARNESS_PATCHED=(
|
|
124
|
+
metrics/cdm_metric.py
|
|
125
|
+
metrics/cdm/modules/visual_matcher.py
|
|
126
|
+
dataset/detection_dataset.py
|
|
127
|
+
)
|
|
128
|
+
git -C "$CLONE/MPDocBench" checkout -- "${HARNESS_PATCHED[@]}"
|
|
129
|
+
"$WORKDIR/.venv-scorer/bin/python" - "$CLONE/MPDocBench" <<'PY'
|
|
130
|
+
import pathlib
|
|
131
|
+
import sys
|
|
132
|
+
|
|
133
|
+
harness = pathlib.Path(sys.argv[1])
|
|
134
|
+
patches = [
|
|
135
|
+
("metrics/cdm_metric.py", "random_state=42", "rng=42"),
|
|
136
|
+
(
|
|
137
|
+
"metrics/cdm/modules/visual_matcher.py",
|
|
138
|
+
" def estimate(self, src, dst):\n",
|
|
139
|
+
" @classmethod\n"
|
|
140
|
+
" def from_estimate(cls, src, dst):\n"
|
|
141
|
+
" model = cls()\n"
|
|
142
|
+
" model.estimate(src, dst)\n"
|
|
143
|
+
" return model\n"
|
|
144
|
+
"\n"
|
|
145
|
+
" def estimate(self, src, dst):\n",
|
|
146
|
+
),
|
|
147
|
+
("dataset/detection_dataset.py", "from mmeval import COCODetection\n", ""),
|
|
148
|
+
(
|
|
149
|
+
"dataset/detection_dataset.py",
|
|
150
|
+
" self.coco_det_metric = COCODetection(",
|
|
151
|
+
" from mmeval import COCODetection\n"
|
|
152
|
+
" self.coco_det_metric = COCODetection(",
|
|
153
|
+
),
|
|
154
|
+
]
|
|
155
|
+
for name, old, new in patches:
|
|
156
|
+
path = harness / name
|
|
157
|
+
text = path.read_text(encoding="utf-8")
|
|
158
|
+
if text.count(old) != 1:
|
|
159
|
+
sys.exit(f"{name}: want one {old.strip()!r}, found {text.count(old)}")
|
|
160
|
+
path.write_text(text.replace(old, new), encoding="utf-8")
|
|
161
|
+
PY
|
|
112
162
|
|
|
113
163
|
# Named rather than left to the self-check below: `node` changes the score of
|
|
114
164
|
# a changed pair without breaking it, so its absence hides inside a plausible
|