-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add more tests for do_ocr and pdf2parquet_do_table_structure
Signed-off-by: Michele Dolfi <[email protected]>
- Loading branch information
1 parent
340a0cc
commit 2fdbf83
Showing
7 changed files
with
154 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+27.7 KB
transforms/language/pdf2parquet/python/test-data/expected_md_no_table/2206.01062.parquet
Binary file not shown.
Binary file added
BIN
+51.6 KB
transforms/language/pdf2parquet/python/test-data/expected_md_no_table/archive1.parquet
Binary file not shown.
47 changes: 47 additions & 0 deletions
47
transforms/language/pdf2parquet/python/test-data/expected_md_no_table/metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"pipeline": "pipeline_id", | ||
"job details": { | ||
"job category": "preprocessing", | ||
"job name": "pdf2parquet", | ||
"job type": "pure python", | ||
"job id": "job_id", | ||
"start_time": "2024-07-24 10:10:06", | ||
"end_time": "2024-07-24 10:10:41", | ||
"status": "success" | ||
}, | ||
"code": { | ||
"github": "github", | ||
"commit_hash": "12345", | ||
"path": "path" | ||
}, | ||
"job_input_params": { | ||
"artifacts_path": null, | ||
"contents_type": "text/markdown", | ||
"do_table_structure": false, | ||
"do_ocr": false, | ||
"checkpointing": false, | ||
"max_files": -1, | ||
"random_samples": -1, | ||
"files_to_use": [ | ||
".pdf", | ||
".zip" | ||
] | ||
}, | ||
"job_output_stats": { | ||
"source_files": 2, | ||
"source_size": 8925664, | ||
"result_files": 2, | ||
"result_size": 81129, | ||
"processing_time": 23.67374563217163, | ||
"nrows": 3, | ||
"nsuccess": 3 | ||
}, | ||
"source": { | ||
"name": "/data/docling-dev/data-prep-kit/transforms/language/pdf2parquet/python/test-data/input", | ||
"type": "path" | ||
}, | ||
"target": { | ||
"name": "/data/docling-dev/data-prep-kit/transforms/language/pdf2parquet/python/output", | ||
"type": "path" | ||
} | ||
} |
Binary file added
BIN
+30.8 KB
transforms/language/pdf2parquet/python/test-data/expected_md_ocr/2206.01062.parquet
Binary file not shown.
Binary file added
BIN
+54.4 KB
transforms/language/pdf2parquet/python/test-data/expected_md_ocr/archive1.parquet
Binary file not shown.
47 changes: 47 additions & 0 deletions
47
transforms/language/pdf2parquet/python/test-data/expected_md_ocr/metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"pipeline": "pipeline_id", | ||
"job details": { | ||
"job category": "preprocessing", | ||
"job name": "pdf2parquet", | ||
"job type": "pure python", | ||
"job id": "job_id", | ||
"start_time": "2024-07-24 09:53:24", | ||
"end_time": "2024-07-24 10:06:13", | ||
"status": "success" | ||
}, | ||
"code": { | ||
"github": "github", | ||
"commit_hash": "12345", | ||
"path": "path" | ||
}, | ||
"job_input_params": { | ||
"artifacts_path": null, | ||
"contents_type": "text/markdown", | ||
"do_table_structure": true, | ||
"do_ocr": true, | ||
"checkpointing": false, | ||
"max_files": -1, | ||
"random_samples": -1, | ||
"files_to_use": [ | ||
".pdf", | ||
".zip" | ||
] | ||
}, | ||
"job_output_stats": { | ||
"source_files": 2, | ||
"source_size": 8925664, | ||
"result_files": 2, | ||
"result_size": 87208, | ||
"processing_time": 669.7063181400299, | ||
"nrows": 3, | ||
"nsuccess": 3 | ||
}, | ||
"source": { | ||
"name": "/data/docling-dev/data-prep-kit/transforms/language/pdf2parquet/python/test-data/input", | ||
"type": "path" | ||
}, | ||
"target": { | ||
"name": "/data/docling-dev/data-prep-kit/transforms/language/pdf2parquet/python/output", | ||
"type": "path" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters