parse-bench 1.0.0__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.
- parse_bench-1.0.0/.gitignore +222 -0
- parse_bench-1.0.0/CHANGELOG.md +99 -0
- parse_bench-1.0.0/LICENSE +201 -0
- parse_bench-1.0.0/PKG-INFO +476 -0
- parse_bench-1.0.0/README.md +345 -0
- parse_bench-1.0.0/pyproject.toml +231 -0
- parse_bench-1.0.0/src/parse_bench/__init__.py +3 -0
- parse_bench-1.0.0/src/parse_bench/analysis/__init__.py +6 -0
- parse_bench-1.0.0/src/parse_bench/analysis/aggregation_report.py +582 -0
- parse_bench-1.0.0/src/parse_bench/analysis/cli.py +472 -0
- parse_bench-1.0.0/src/parse_bench/analysis/comparison.py +382 -0
- parse_bench-1.0.0/src/parse_bench/analysis/comparison_core.py +357 -0
- parse_bench-1.0.0/src/parse_bench/analysis/comparison_report.py +2066 -0
- parse_bench-1.0.0/src/parse_bench/analysis/detailed_report.py +2254 -0
- parse_bench-1.0.0/src/parse_bench/analysis/leaderboard_report.py +852 -0
- parse_bench-1.0.0/src/parse_bench/analysis/metric_definitions.py +771 -0
- parse_bench-1.0.0/src/parse_bench/cli.py +267 -0
- parse_bench-1.0.0/src/parse_bench/data/__init__.py +1 -0
- parse_bench-1.0.0/src/parse_bench/data/cli.py +118 -0
- parse_bench-1.0.0/src/parse_bench/data/download.py +127 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/__init__.py +11 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/cli.py +435 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/evaluators/__init__.py +17 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/evaluators/base.py +34 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/evaluators/extract.py +429 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/evaluators/layoutdet.py +1682 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/evaluators/parse.py +1353 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/evaluators/qa.py +199 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/layout_adapters/__init__.py +21 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/layout_adapters/adapters.py +3180 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/layout_adapters/base.py +105 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/layout_adapters/registry.py +109 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/layout_label_mappers/__init__.py +22 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/layout_label_mappers/base.py +66 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/layout_label_mappers/mappers.py +332 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/layout_label_mappers/projection.py +74 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/layout_label_mappers/registry.py +119 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metric_aggregation.py +56 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/__init__.py +5 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/attribution/__init__.py +35 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/attribution/constants.py +12 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/attribution/core.py +1108 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/attribution/evaluate.py +446 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/attribution/geometry.py +161 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/attribution/text_utils.py +233 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/base.py +33 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/downstream/__init__.py +0 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/extract/__init__.py +29 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/extract/json_subset_match.py +473 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/extract/json_subset_match_metric.py +81 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/extract/list_unwrap.py +340 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/extract/rule_based_metric.py +90 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/extract/test_rules.py +409 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/extract/test_types.py +11 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/field_grounding/__init__.py +21 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/field_grounding/core.py +437 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/field_grounding/extract_adapter.py +1224 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/field_grounding/parse_adapter.py +697 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/field_grounding/rule_filters.py +19 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/field_grounding/value_compare.py +190 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/layoutdet/__init__.py +17 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/layoutdet/classification_utils.py +300 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/layoutdet/iou.py +76 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/__init__.py +5 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/_vendor_grits_reference.py +531 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/cross_page_table_consistency.py +165 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/emphasis_spans.py +242 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/fast_tree_edit.py +282 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/grits_metric.py +1125 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/grits_reference_metric.py +142 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/header_accuracy_metric.py +1662 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/llm_normalization/__init__.py +51 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/llm_normalization/base.py +125 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/llm_normalization/config.py +44 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/llm_normalization/postprocess.py +322 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/llm_normalization/strategy_judge.py +541 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/mermaid_graph.py +682 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/rule_based_judge_metric.py +56 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/rule_based_metric.py +434 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/rules_bag.py +1161 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/rules_base.py +751 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/rules_chart.py +1556 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/rules_diagram.py +591 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/rules_form.py +2274 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/rules_formatting.py +1500 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/rules_heading.py +228 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/rules_list.py +226 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/rules_page_decoration.py +276 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/rules_table.py +1666 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/rules_text.py +340 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/rules_watermark.py +105 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/structural_consistency_metric.py +251 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/table_extraction.py +152 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/table_merging.py +195 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/table_pairing.py +87 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/table_parsing.py +955 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/table_record_match_metric.py +1453 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/table_splitting.py +301 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/table_title_stripping.py +530 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/teds_metric.py +600 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/test_rules.py +120 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/test_types.py +103 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/text_content_projection.py +175 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/text_similarity_metric.py +61 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/parse/utils.py +885 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/qa/__init__.py +5 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/metrics/qa/answer_comparison.py +380 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/qa/__init__.py +5 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/qa/llm_service.py +335 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/reports/__init__.py +8 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/reports/csv.py +64 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/reports/html.py +338 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/reports/markdown.py +98 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/reports/rule_csv.py +22 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/runner.py +1864 -0
- parse_bench-1.0.0/src/parse_bench/evaluation/stats.py +104 -0
- parse_bench-1.0.0/src/parse_bench/extensions.py +72 -0
- parse_bench-1.0.0/src/parse_bench/inference/__init__.py +33 -0
- parse_bench-1.0.0/src/parse_bench/inference/chunkr_layout_extraction.py +160 -0
- parse_bench-1.0.0/src/parse_bench/inference/cli.py +484 -0
- parse_bench-1.0.0/src/parse_bench/inference/layout_extraction.py +422 -0
- parse_bench-1.0.0/src/parse_bench/inference/pipelines/__init__.py +59 -0
- parse_bench-1.0.0/src/parse_bench/inference/pipelines/extract.py +39 -0
- parse_bench-1.0.0/src/parse_bench/inference/pipelines/layout.py +142 -0
- parse_bench-1.0.0/src/parse_bench/inference/pipelines/parse.py +2603 -0
- parse_bench-1.0.0/src/parse_bench/inference/pipelines.py +0 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/__init__.py +28 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/base.py +196 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/cancellation.py +137 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/extract/__init__.py +22 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/extract/citations.py +549 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/extract/extend.py +851 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/extract/llamaextract_v2_api.py +583 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/layoutdet/__init__.py +25 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/layoutdet/adapters.py +946 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/layoutdet/base.py +203 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/layoutdet/chandra.py +449 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/layoutdet/docling.py +125 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/layoutdet/dots_ocr.py +606 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/layoutdet/layout_v3.py +137 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/layoutdet/layout_v3_byoc.py +204 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/layoutdet/paddle.py +117 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/layoutdet/qwen3vl.py +360 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/layoutdet/surya.py +250 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/layoutdet/yolo.py +109 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/__init__.py +64 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/_docling_common.py +233 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/_layout_utils.py +611 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/amazon_nova.py +515 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/anthropic.py +882 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/azure_document_intelligence.py +700 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/chandra2.py +633 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/chunkr.py +268 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/databricks_ai_parse.py +724 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/datalab.py +370 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/deepseekocr2.py +382 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/docling.py +281 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/docling_serve.py +289 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/dots_ocr.py +574 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/extend_parse.py +710 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/falconocr.py +436 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/florin_parser_nano.py +559 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/gemma4.py +472 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/glm_zai.py +229 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/google.py +1125 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/google_agentic_vision.py +819 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/google_docai.py +776 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/google_docai_layout_normalization.py +573 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/granite_vision.py +515 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/infinity_parser2.py +704 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/kdl_frontier_nano.py +3327 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/landingai.py +452 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/liteparse.py +350 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/llamaparse.py +677 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/llamaparse_v2_normalization.py +1013 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/markitdown.py +138 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/mineru25.py +405 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/mineru2605pro.py +432 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/mineru_diffusion.py +371 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/mistral_ocr.py +546 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/nemotron_omni.py +473 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/oi_parser.py +222 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/openai.py +740 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/opendataloader.py +152 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/paddleocr.py +624 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/pdf_inspector.py +142 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/pulse.py +785 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/pymupdf.py +207 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/pymupdf4llm.py +356 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/pypdf.py +179 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/qwen.py +678 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/rakedoc_nano.py +70 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/reducto.py +546 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/surya2.py +372 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/tesseract.py +301 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/textract.py +694 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/unlimitedocr.py +346 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/unstructured.py +485 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/parse/warp_ingest.py +199 -0
- parse_bench-1.0.0/src/parse_bench/inference/providers/registry.py +49 -0
- parse_bench-1.0.0/src/parse_bench/inference/renormalize.py +170 -0
- parse_bench-1.0.0/src/parse_bench/inference/runner.py +2023 -0
- parse_bench-1.0.0/src/parse_bench/layout_label_mapping.py +424 -0
- parse_bench-1.0.0/src/parse_bench/layout_projection.py +179 -0
- parse_bench-1.0.0/src/parse_bench/pipeline/__init__.py +1 -0
- parse_bench-1.0.0/src/parse_bench/pipeline/cli.py +549 -0
- parse_bench-1.0.0/src/parse_bench/schemas/__init__.py +33 -0
- parse_bench-1.0.0/src/parse_bench/schemas/evaluation.py +93 -0
- parse_bench-1.0.0/src/parse_bench/schemas/extract_output.py +36 -0
- parse_bench-1.0.0/src/parse_bench/schemas/layout_detection_output.py +545 -0
- parse_bench-1.0.0/src/parse_bench/schemas/layout_ontology.py +315 -0
- parse_bench-1.0.0/src/parse_bench/schemas/metrics.py +69 -0
- parse_bench-1.0.0/src/parse_bench/schemas/parse_output.py +152 -0
- parse_bench-1.0.0/src/parse_bench/schemas/pipeline.py +22 -0
- parse_bench-1.0.0/src/parse_bench/schemas/pipeline_io.py +106 -0
- parse_bench-1.0.0/src/parse_bench/schemas/product.py +97 -0
- parse_bench-1.0.0/src/parse_bench/test_cases/__init__.py +25 -0
- parse_bench-1.0.0/src/parse_bench/test_cases/bbox_value_strict_comparator.py +880 -0
- parse_bench-1.0.0/src/parse_bench/test_cases/extract_field_paths.py +164 -0
- parse_bench-1.0.0/src/parse_bench/test_cases/layout_attribution_generation.py +287 -0
- parse_bench-1.0.0/src/parse_bench/test_cases/loader.py +652 -0
- parse_bench-1.0.0/src/parse_bench/test_cases/parse_rule_schemas.py +1071 -0
- parse_bench-1.0.0/src/parse_bench/test_cases/rule_filters.py +32 -0
- parse_bench-1.0.0/src/parse_bench/test_cases/rule_ids.py +107 -0
- parse_bench-1.0.0/src/parse_bench/test_cases/schema.py +427 -0
- parse_bench-1.0.0/src/parse_bench/utils/__init__.py +15 -0
- parse_bench-1.0.0/src/parse_bench/utils/gemini_layout_utils.py +670 -0
- parse_bench-1.0.0/src/parse_bench/utils/text_aggregation.py +100 -0
- parse_bench-1.0.0/tests/parse_bench/analysis/test_comparison_consistency.py +73 -0
- parse_bench-1.0.0/tests/parse_bench/analysis/test_comparison_core.py +256 -0
- parse_bench-1.0.0/tests/parse_bench/analysis/test_comparison_directory_suffix.py +52 -0
- parse_bench-1.0.0/tests/parse_bench/analysis/test_detailed_report.py +81 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/evaluators/test_extract_empty_expected_output.py +59 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/evaluators/test_parse_evaluator_layout_rule_filter.py +382 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/evaluators/test_parse_evaluator_styling_rollup.py +14 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/evaluators/test_parse_evaluator_table_pages.py +273 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/layout_adapters/test_docling_parse_layout_adapter.py +212 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/layout_adapters/test_llamaparse_attribution_scope.py +108 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/layout_adapters/test_llamaparse_canonical_layout_pages.py +157 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/layout_label_mappers/test_llamaparse_label_mapper.py +77 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/layout_label_mappers/test_projection_attributes.py +84 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/layout_label_mappers/test_pymupdf4llm_label_mapper.py +62 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/attribution/test_attribution_overclaim.py +195 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/extract/test_json_subset_match.py +295 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/field_grounding/test_extract_adapter.py +94 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/layoutdet/test_classification_utils_paging.py +98 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_chart_data_point_rule.py +825 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_chart_label_punctuation.py +98 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_cross_page_table_consistency_metric.py +131 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_degenerate_marker_rules.py +201 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_diagram_rules.py +309 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_fast_table_parity.py +252 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_form_field_rule.py +1735 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_formatting_rule_adjacent_spans.py +83 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_grits_metric.py +802 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_grits_perf_equivalence.py +85 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_grits_trm_composite.py +54 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_header_accuracy_metric.py +1830 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_heading_structure_rule.py +76 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_merge_preceding_titles.py +168 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_normalize_cell_text.py +173 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_normalize_text_inline_tag_separator.py +123 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_page_decoration_rule.py +121 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_parse_combining_mark_tokenization.py +125 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_parse_formatting_rule_paragraph_spans.py +313 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_parse_formatting_rule_quotes.py +161 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_parse_formatting_rule_span_scope.py +504 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_parse_list_level_rule.py +199 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_parse_table_cell_augmentation.py +117 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_parse_text_order_rule_html.py +113 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_parse_text_presence_rule.py +1759 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_relaxed_normalize_cell_text.py +98 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_rule_metric_budget_and_bag_images.py +84 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_table_caption_title_band.py +89 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_table_cell_inline_marker_separator.py +81 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_table_dot_leaders.py +1119 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_table_extraction.py +119 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_table_marker_cells_rule.py +188 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_table_merging_metric.py +215 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_table_pairing.py +81 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_table_record_match_metric.py +2844 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_table_row_header_th.py +173 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_table_splitting.py +276 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_table_tbody_provenance.py +65 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_table_title_stripping.py +210 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_teds_metric.py +441 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_text_color_rule.py +161 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_text_content_projection.py +210 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_text_similarity_metric.py +60 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_title_hierarchy_inapplicable.py +181 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/parse/test_watermark_removal_rule.py +96 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/metrics/qa/test_answer_comparison_exact_choice.py +66 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/test_cli_detailed_report_nonfatal.py +57 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/test_runner_aggregation.py +547 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/test_runner_result_files.py +33 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/test_runner_worker_timeout.py +264 -0
- parse_bench-1.0.0/tests/parse_bench/evaluation/test_stats.py +86 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/extract/test_extend_cost_stats.py +67 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/extract/test_extend_schema_adapter.py +219 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_amazon_nova.py +290 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_anthropic_pricing.py +71 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_azure_document_intelligence_layout.py +101 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_chandra2_multipage.py +81 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_datalab.py +65 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_deepseekocr2_multipage.py +76 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_extend_parse_pages.py +49 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_falconocr_multipage.py +74 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_gemma4_multipage.py +64 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_glm_zai.py +102 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_google_parse_pricing.py +224 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_granite_vision_multipage.py +71 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_infinity_parser2.py +227 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_kdl_frontier_nano.py +28 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_layout_coordinate_frames.py +302 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_layout_utils.py +123 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_liteparse_layout.py +95 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_llamaparse_picture_type.py +24 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_llamaparse_polling.py +201 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_llamaparse_usage_metadata.py +236 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_llamaparse_v2_normalization.py +654 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_llamaparse_v2_null_page_fields.py +39 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_mineru25_multipage.py +93 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_mineru2605pro_multipage.py +95 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_mineru_diffusion_multipage.py +93 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_nemotron_omni_multipage.py +70 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_openai_parse_errors.py +79 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_paddleocr_multipage.py +110 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_pymupdf4llm.py +178 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_qwen.py +241 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_reducto_normalize.py +99 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_surya2_multipage.py +74 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_textract_cost.py +100 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_unlimitedocr_multipage.py +77 -0
- parse_bench-1.0.0/tests/parse_bench/inference/providers/parse/test_warp_ingest.py +285 -0
- parse_bench-1.0.0/tests/parse_bench/inference/test_cli.py +89 -0
- parse_bench-1.0.0/tests/parse_bench/inference/test_layout_extraction.py +284 -0
- parse_bench-1.0.0/tests/parse_bench/inference/test_parse_pipelines.py +79 -0
- parse_bench-1.0.0/tests/parse_bench/inference/test_renormalize.py +155 -0
- parse_bench-1.0.0/tests/parse_bench/inference/test_runner.py +248 -0
- parse_bench-1.0.0/tests/parse_bench/test_cases/test_loader_stem_twins.py +117 -0
- parse_bench-1.0.0/tests/parse_bench/test_cases/test_parse_rule_schemas.py +483 -0
- parse_bench-1.0.0/tests/parse_bench/test_cases/test_rule_ids.py +100 -0
- parse_bench-1.0.0/tests/parse_bench/test_extensions.py +149 -0
- parse_bench-1.0.0/tests/parse_bench/test_layout_label_mapping_code_alias.py +63 -0
- parse_bench-1.0.0/tests/test_data_dir_routing.py +143 -0
- parse_bench-1.0.0/tests/test_extract_integration.py +517 -0
- parse_bench-1.0.0/tests/test_llamaparse_base_url.py +108 -0
- parse_bench-1.0.0/tests/test_pulse_public_api.py +378 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
# Claude Code local state
|
|
2
|
+
.claude/projects/
|
|
3
|
+
|
|
4
|
+
# Byte-compiled / optimized / DLL files
|
|
5
|
+
__pycache__/
|
|
6
|
+
*.py[codz]
|
|
7
|
+
*$py.class
|
|
8
|
+
|
|
9
|
+
# C extensions
|
|
10
|
+
*.so
|
|
11
|
+
|
|
12
|
+
# Distribution / packaging
|
|
13
|
+
.Python
|
|
14
|
+
build/
|
|
15
|
+
develop-eggs/
|
|
16
|
+
dist/
|
|
17
|
+
downloads/
|
|
18
|
+
eggs/
|
|
19
|
+
.eggs/
|
|
20
|
+
lib/
|
|
21
|
+
lib64/
|
|
22
|
+
parts/
|
|
23
|
+
sdist/
|
|
24
|
+
var/
|
|
25
|
+
wheels/
|
|
26
|
+
share/python-wheels/
|
|
27
|
+
*.egg-info/
|
|
28
|
+
.installed.cfg
|
|
29
|
+
*.egg
|
|
30
|
+
MANIFEST
|
|
31
|
+
|
|
32
|
+
# PyInstaller
|
|
33
|
+
# Usually these files are written by a python script from a template
|
|
34
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
35
|
+
*.manifest
|
|
36
|
+
*.spec
|
|
37
|
+
|
|
38
|
+
# Installer logs
|
|
39
|
+
pip-log.txt
|
|
40
|
+
pip-delete-this-directory.txt
|
|
41
|
+
|
|
42
|
+
# Unit test / coverage reports
|
|
43
|
+
htmlcov/
|
|
44
|
+
.tox/
|
|
45
|
+
.nox/
|
|
46
|
+
.coverage
|
|
47
|
+
.coverage.*
|
|
48
|
+
.cache
|
|
49
|
+
nosetests.xml
|
|
50
|
+
coverage.xml
|
|
51
|
+
*.cover
|
|
52
|
+
*.py.cover
|
|
53
|
+
.hypothesis/
|
|
54
|
+
.pytest_cache/
|
|
55
|
+
cover/
|
|
56
|
+
|
|
57
|
+
# Translations
|
|
58
|
+
*.mo
|
|
59
|
+
*.pot
|
|
60
|
+
|
|
61
|
+
# Django stuff:
|
|
62
|
+
*.log
|
|
63
|
+
local_settings.py
|
|
64
|
+
db.sqlite3
|
|
65
|
+
db.sqlite3-journal
|
|
66
|
+
|
|
67
|
+
# Flask stuff:
|
|
68
|
+
instance/
|
|
69
|
+
.webassets-cache
|
|
70
|
+
|
|
71
|
+
# Scrapy stuff:
|
|
72
|
+
.scrapy
|
|
73
|
+
|
|
74
|
+
# Sphinx documentation
|
|
75
|
+
docs/_build/
|
|
76
|
+
|
|
77
|
+
# PyBuilder
|
|
78
|
+
.pybuilder/
|
|
79
|
+
target/
|
|
80
|
+
|
|
81
|
+
# Jupyter Notebook
|
|
82
|
+
.ipynb_checkpoints
|
|
83
|
+
|
|
84
|
+
# IPython
|
|
85
|
+
profile_default/
|
|
86
|
+
ipython_config.py
|
|
87
|
+
|
|
88
|
+
# pyenv
|
|
89
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
90
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
91
|
+
# .python-version
|
|
92
|
+
|
|
93
|
+
# pipenv
|
|
94
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
95
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
96
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
97
|
+
# install all needed dependencies.
|
|
98
|
+
#Pipfile.lock
|
|
99
|
+
|
|
100
|
+
# UV
|
|
101
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
102
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
103
|
+
# commonly ignored for libraries.
|
|
104
|
+
#uv.lock
|
|
105
|
+
|
|
106
|
+
# poetry
|
|
107
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
108
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
109
|
+
# commonly ignored for libraries.
|
|
110
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
111
|
+
#poetry.lock
|
|
112
|
+
#poetry.toml
|
|
113
|
+
|
|
114
|
+
# pdm
|
|
115
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
116
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
117
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
118
|
+
#pdm.lock
|
|
119
|
+
#pdm.toml
|
|
120
|
+
.pdm-python
|
|
121
|
+
.pdm-build/
|
|
122
|
+
|
|
123
|
+
# pixi
|
|
124
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
125
|
+
#pixi.lock
|
|
126
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
127
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
128
|
+
.pixi
|
|
129
|
+
|
|
130
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
131
|
+
__pypackages__/
|
|
132
|
+
|
|
133
|
+
# Celery stuff
|
|
134
|
+
celerybeat-schedule
|
|
135
|
+
celerybeat.pid
|
|
136
|
+
|
|
137
|
+
# SageMath parsed files
|
|
138
|
+
*.sage.py
|
|
139
|
+
|
|
140
|
+
# Environments
|
|
141
|
+
.env
|
|
142
|
+
.envrc
|
|
143
|
+
.venv
|
|
144
|
+
env/
|
|
145
|
+
venv/
|
|
146
|
+
ENV/
|
|
147
|
+
env.bak/
|
|
148
|
+
venv.bak/
|
|
149
|
+
|
|
150
|
+
# Spyder project settings
|
|
151
|
+
.spyderproject
|
|
152
|
+
.spyproject
|
|
153
|
+
|
|
154
|
+
# Rope project settings
|
|
155
|
+
.ropeproject
|
|
156
|
+
|
|
157
|
+
# mkdocs documentation
|
|
158
|
+
/site
|
|
159
|
+
|
|
160
|
+
# mypy
|
|
161
|
+
.mypy_cache/
|
|
162
|
+
.dmypy.json
|
|
163
|
+
dmypy.json
|
|
164
|
+
|
|
165
|
+
# Pyre type checker
|
|
166
|
+
.pyre/
|
|
167
|
+
|
|
168
|
+
# pytype static type analyzer
|
|
169
|
+
.pytype/
|
|
170
|
+
|
|
171
|
+
# Cython debug symbols
|
|
172
|
+
cython_debug/
|
|
173
|
+
|
|
174
|
+
# PyCharm
|
|
175
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
176
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
177
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
178
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
179
|
+
#.idea/
|
|
180
|
+
|
|
181
|
+
# Abstra
|
|
182
|
+
# Abstra is an AI-powered process automation framework.
|
|
183
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
184
|
+
# Learn more at https://abstra.io/docs
|
|
185
|
+
.abstra/
|
|
186
|
+
|
|
187
|
+
# Visual Studio Code
|
|
188
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
189
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
190
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
191
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
192
|
+
# .vscode/
|
|
193
|
+
|
|
194
|
+
# Ruff stuff:
|
|
195
|
+
.ruff_cache/
|
|
196
|
+
|
|
197
|
+
# PyPI configuration file
|
|
198
|
+
.pypirc
|
|
199
|
+
|
|
200
|
+
# Cursor
|
|
201
|
+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
|
|
202
|
+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
|
|
203
|
+
# refer to https://docs.cursor.com/context/ignore-files
|
|
204
|
+
.cursorignore
|
|
205
|
+
.cursorindexingignore
|
|
206
|
+
|
|
207
|
+
# Marimo
|
|
208
|
+
marimo/_static/
|
|
209
|
+
marimo/_lsp/
|
|
210
|
+
__marimo__/
|
|
211
|
+
|
|
212
|
+
# Internal scripts
|
|
213
|
+
scripts/convert_sidecar_to_jsonl.py
|
|
214
|
+
|
|
215
|
+
# Internal research documentation
|
|
216
|
+
internal_docs/
|
|
217
|
+
data/
|
|
218
|
+
!src/parse_bench/data/
|
|
219
|
+
CLAUDE.md
|
|
220
|
+
.DS_Store
|
|
221
|
+
output/
|
|
222
|
+
data_small/
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `parse-bench` are recorded here. The format follows
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses
|
|
5
|
+
[Semantic Versioning](https://semver.org/).
|
|
6
|
+
|
|
7
|
+
## [1.0.0] - 2026-09-02
|
|
8
|
+
|
|
9
|
+
This release brings the public evaluator back to parity with the internal
|
|
10
|
+
LlamaIndex benchmark harness, which had accumulated five months of fixes since
|
|
11
|
+
ParseBench was extracted from it. Existing leaderboard rows were produced by the
|
|
12
|
+
internal harness and are therefore already consistent with this code; runs made
|
|
13
|
+
with `parse-bench` 0.2.0 or earlier are **not** directly comparable to runs made
|
|
14
|
+
with this version.
|
|
15
|
+
|
|
16
|
+
### Scoring (changes evaluation numbers)
|
|
17
|
+
- Text similarity: removed an erroneous `/100` that made `text_similarity` ~100x too small.
|
|
18
|
+
- Text normalization: combining marks are preserved for Thai, Indic and related scripts;
|
|
19
|
+
abutting inline tags (`</u><s>`) no longer weld adjacent words; trailing dot-leader
|
|
20
|
+
stripping is linear instead of quadratic; shared dot-leader, boolean-marker (checkmark),
|
|
21
|
+
quote and dash normalizers are applied consistently across table metrics.
|
|
22
|
+
- Tables: table cell text now *replaces* the table in the rule-augmented text instead of
|
|
23
|
+
being appended, which previously counted every table word two to three times in
|
|
24
|
+
occurrence-counting rules; `<thead>/<tbody>/<tfoot>`, `scope=`, `<colgroup>` and
|
|
25
|
+
`<caption>` are honoured; a `<th>` section-label row inside `<tbody>` is no longer folded
|
|
26
|
+
into the column headers; row provenance uses identity instead of structural equality.
|
|
27
|
+
- Table pairing: GriTS and TEDS pair GT and predicted tables per page (`expected_pages`
|
|
28
|
+
metadata) instead of document-wide, and a `<caption>` on one side versus a title band
|
|
29
|
+
on the other is neutralised symmetrically.
|
|
30
|
+
- Table record match and header accuracy compare cells leader-insensitively, so `no.`
|
|
31
|
+
and `no` no longer unmatch a whole column.
|
|
32
|
+
- Rules: `order` anchors strip residual HTML; bag-of-words rules use a Unicode word class
|
|
33
|
+
and ignore markdown image alt text; degenerate marker-only rules are excluded from the
|
|
34
|
+
denominator instead of scoring 0; a per-document rule budget and a timeout around
|
|
35
|
+
normalization stop a single pathological page from stalling a run.
|
|
36
|
+
- Formatting rules: emphasis is resolved with a delimiter-run pairer instead of regex,
|
|
37
|
+
typographic and ASCII quotes are folded, and `<strong>/<em>/<mark>/<sup>/<sub>` with
|
|
38
|
+
attributes are recognised.
|
|
39
|
+
- Visual grounding: the LlamaParse V2 `code` item type is mapped (code blocks were
|
|
40
|
+
silently dropped); LlamaParse attribution is restricted to layout-aware segments
|
|
41
|
+
rather than falling back to coarse item bboxes; Docling attribution blocks no longer
|
|
42
|
+
fall back to the item bbox; layout checkbox predictions are de-duplicated.
|
|
43
|
+
- Extract accuracy: a missing object or array is weighted by its leaf count instead of 1;
|
|
44
|
+
date normalization handles `MM/DD/YY`, missing spaces after commas and out-of-range
|
|
45
|
+
years; keyless lists are aligned order-invariantly; nullable numeric fields treat `0`
|
|
46
|
+
and `null` as equal when the schema allows null.
|
|
47
|
+
- Aggregation: `micro_*` aggregates are emitted for standalone F1, accuracy and pass-rate
|
|
48
|
+
metrics; fractional `passed` counts are no longer dropped from `total_*` metrics.
|
|
49
|
+
- Inference providers: 13 self-hosted VLM/OCR providers (Chandra 2, DeepSeek-OCR 2,
|
|
50
|
+
Falcon OCR, Gemma 4, Granite Vision, Infinity Parser 2, MinerU 2.5/2605/Diffusion,
|
|
51
|
+
Nemotron Omni, PaddleOCR, Surya 2, Unlimited-OCR) rendered only the first page of a
|
|
52
|
+
multi-page PDF; Reducto output was truncated to the first chunk; Gemini empty and
|
|
53
|
+
RECITATION responses are retried instead of scored as empty output;
|
|
54
|
+
`amazon_nova_2_lite_parse_with_layout` now actually enables layout mode.
|
|
55
|
+
- Cost columns: Pulse cost used an account-wide cumulative page counter; LlamaParse now
|
|
56
|
+
bills cost-optimised pages at the cost-effective rate; OpenAI GPT-5 Mini and GPT-5.6
|
|
57
|
+
prices corrected; AWS Textract and Extend now report cost; Anthropic prompt-cache
|
|
58
|
+
tokens are priced. `parse-bench inference renormalize` re-prices saved runs via
|
|
59
|
+
`Provider.recompute_cost` without re-running inference.
|
|
60
|
+
|
|
61
|
+
### Added
|
|
62
|
+
- Rule types from the internal harness: `heading_structure`, `list_level`, `page_decoration`,
|
|
63
|
+
`watermark_removal`, `diagram_graph` / `diagram_edge` / `diagram_count`, `table_marker_cells`,
|
|
64
|
+
`text_color`, `absent_unless_strikeout`, `present_as_strikeout`, `is_not_latex`; metadata-only
|
|
65
|
+
`table_merging` and `cross_page_table_consistency` metrics; extended `form_field` rule
|
|
66
|
+
(`label` list, `label_max_diffs`, `value_max_diffs`). None are used by the public dataset yet.
|
|
67
|
+
- `ParseTestCase` accepts layout and extract-field rules on `test_rules` and carries `metadata`.
|
|
68
|
+
- Evaluation worker pool: a hung document is now killed and retried once instead of
|
|
69
|
+
blocking the run forever; `*.images/` artifact directories are skipped.
|
|
70
|
+
- Runner: `per_file_timeout` (CLI > pipeline > default 1800s), randomised external
|
|
71
|
+
filenames for third-party providers, a hint when a corpus contains only unsupported
|
|
72
|
+
extensions.
|
|
73
|
+
- New pipelines: Reducto change-tracking / agentic table / agentic chart, GPT-5.4
|
|
74
|
+
reasoning-none, Sonnet 5 parse-with-layout, Gemini 3.6 / 3.7 / 3.1 Flash Lite
|
|
75
|
+
layout variants, Mistral OCR 4.1, Nemotron Omni vLLM, Qwen3.8 Flash Next.
|
|
76
|
+
- `parse_bench_version` is recorded in `_metadata.json` and `_evaluation_report.json`.
|
|
77
|
+
- Leaderboard: the *LiteParse (no OCR)* row was re-run with LiteParse 2.14.3 and this release's scoring (overall 32.8 -> 36.9; visual grounding 10.7 -> 31.8 now that layout blocks are scored).
|
|
78
|
+
- `parse-bench` is now published to PyPI. Install with `pip install "parse-bench[runners]"`.
|
|
79
|
+
- Per-provider extras (`llamaparse`, `openai`, `anthropic`, `google`, `azure`, `aws`,
|
|
80
|
+
`reducto`, `datalab`, `landingai`, `unstructured`, `chunkr`, `extend`, `docling`, `local`)
|
|
81
|
+
so a runner can be installed without every provider SDK. `runners` remains the union.
|
|
82
|
+
- `parse-bench version` command.
|
|
83
|
+
- `liteparse` extra installs the released `lit` CLI from PyPI; the provider finds it on `PATH`.
|
|
84
|
+
- LlamaParse normalisation rewrites `layout_pages[*].items[*].type` to canonical layout classes (splitting items whose segments disagree) and synthesises checkbox mark items, matching the internal harness's output contract. ParseBench's own layout scores are unchanged; it lets other consumers of saved outputs classify without the raw-label adapter.
|
|
85
|
+
- LiteParse now requests `--extract-blocks` and emits `layout_pages` from the block kinds and bboxes, with a matching layout adapter and label mapper, so the Visual Grounding column can be scored (set `extract_blocks: false` in the pipeline config to disable).
|
|
86
|
+
- `markdown2` floor raised to 2.5.5: 2.5.4 renders `*`/`_` runs inside table cells differently, which changed 12 of 2078 LiteParse outputs between environments.
|
|
87
|
+
- CI (lint, tests, wheel smoke test) and a tag-driven PyPI publish workflow.
|
|
88
|
+
|
|
89
|
+
### Changed
|
|
90
|
+
- Dropped unused core dependencies `datasets` (which pulled in pyarrow, 123 MB) and `tqdm`; a base install is now ~280 MB instead of ~410 MB.
|
|
91
|
+
- The package version is single-sourced from `parse_bench.__version__`.
|
|
92
|
+
- `.env` discovery now walks up from the current directory instead of assuming a repo checkout.
|
|
93
|
+
- The optional LlamaParse job-log HTML renderer is configured with `PARSE_BENCH_LOG_VIEWER`
|
|
94
|
+
instead of a hard-coded sibling-directory path.
|
|
95
|
+
- The `liteparse` provider locates the `lit` binary via `LITEPARSE_BIN` or `PATH`.
|
|
96
|
+
|
|
97
|
+
## [0.2.0] - 2026-09-01
|
|
98
|
+
|
|
99
|
+
Last version distributed as a source checkout only. See the git history for details.
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|