Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
CI yaml
quyuan3400a661e24b
diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.ymlindex 337e59e8..fee9a599 100644--- a/.github/workflows/benchmark.yml+++ b/.github/workflows/benchmark.yml@@ -44,7 +44,8 @@ jobs:- name: benchmarkrun: |echo "start test"- cd tools && python ocr_badcase.py pdf_json_label_0306.json ocr_dataset.json json_files.zip badcase.json overall.json base_data.json+ cd tools && python text_badcase.py pdf_json_label_0306.json pdf_json_label_0229.json json_files.zip text_badcase text_overall base_data_text.json --s3_bucket_name llm-process-pperf --s3_file_directory qa-validate/pdf-datasets/badcase --AWS_ACCESS_KEY 7X9CWNHIVOHH3LXRD5WK --AWS_SECRET_KEY IHLyTsv7h4ArzReLWUGZNKvwqB7CMrRi6e7ZyUt0 --END_POINT_URL http://p-ceph-norm-outside.pjlab.org.cn:80+ cd tools && python ocr_badcase.py pdf_json_label_0306.json ocr_dataset.json json_files.zip ocr_badcase ocr_overall base_data_ocr.json --s3_bucket_name llm-process-pperf --s3_file_directory qa-validate/pdf-datasets/badcase --AWS_ACCESS_KEY 7X9CWNHIVOHH3LXRD5WK --AWS_SECRET_KEY IHLyTsv7h4ArzReLWUGZNKvwqB7CMrRi6e7ZyUt0 --END_POINT_URL http://p-ceph-norm-outside.pjlab.org.cn:80notify_to_feishu:if: ${{ always() && !cancelled() && contains(needs.*.result, 'failure') && (github.ref_name == 'master') }}needs: [pdf-test]diff --git a/tools/ocr_badcase.py b/tools/ocr_badcase.pyindex 774a75fa..a4d098d5 100644--- a/tools/ocr_badcase.py+++ b/tools/ocr_badcase.py@@ -867,7 +867,6 @@ def main(standard_file, test_file, zip_file, badcase_path, overall_path,base_datsave_results(result_dict, overall_report_dict,badcase_file,overall_file)result=compare_edit_distance(base_data_path, overall_report_dict)-<<<<<<< HEADif all([s3_bucket_name, s3_file_directory, aws_access_key, aws_secret_key, end_point_url]):try:@@ -875,8 +874,6 @@ def main(standard_file, test_file, zip_file, badcase_path, overall_path,base_datupload_to_s3(overall_file, s3_bucket_name, s3_file_directory, aws_access_key, aws_secret_key, end_point_url)except Exception as e:print(f"上传到S3时发生错误: {e}")-=======->>>>>>> ff8f62aa3c28facc192104387f131d87978064fcprint(result)assert result == 1diff --git a/tools/text_badcase.py b/tools/text_badcase.pyindex c2f41a53..9f38cedd 100644--- a/tools/text_badcase.py+++ b/tools/text_badcase.py@@ -886,6 +886,7 @@ def main(standard_file, test_file, zip_file, badcase_path, overall_path,base_datexcept Exception as e:print(f"上传到S3时发生错误: {e}")print(result)+ assert result == 1if __name__ == "__main__":parser = argparse.ArgumentParser(description="主函数,执行整个评估流程。")