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
test: read Chinese source files explicitly as UTF-8
myhloli739ad39f737f
diff --git a/tests/unittest/test_backend_architecture.py b/tests/unittest/test_backend_architecture.pyindex 7b778b7e..0402b972 100644--- a/tests/unittest/test_backend_architecture.py+++ b/tests/unittest/test_backend_architecture.py@@ -131,7 +131,7 @@ def test_target_python_files_have_copyright_header() -> None:if "_internal/pytorchocr" not in path.as_posix() and path.name != "cli_parser.py"]offenders = [- str(path.relative_to(_PROJECT_ROOT)) for path in paths if path.read_text().splitlines()[0] != _COPYRIGHT_HEADER+ str(path.relative_to(_PROJECT_ROOT)) for path in paths if path.read_text(encoding="utf-8").splitlines()[0] != _COPYRIGHT_HEADER]assert not offendersdiff --git a/tests/unittest/test_docvortex_import_boundary.py b/tests/unittest/test_docvortex_import_boundary.pyindex 36ed67fb..8a680437 100644--- a/tests/unittest/test_docvortex_import_boundary.py+++ b/tests/unittest/test_docvortex_import_boundary.py@@ -82,7 +82,7 @@ def test_mineru_uses_declared_docvortex_api() -> None:for path in root.rglob("*.py"):errors.extend(f"{path.relative_to(root)}:{error}"- for error in _check_source(path.read_text(), model_layer=path.is_relative_to(root / "model"))+ for error in _check_source(path.read_text(encoding="utf-8"), model_layer=path.is_relative_to(root / "model")))assert not errors, "\n".join(errors)