Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

feat: update file paths in DOCX processing scripts for improved accessibility

myhlolid5fed5ec0eeb
diff --git a/mineru/model/docx/test.docx b/demo/docx/test.docx
similarity index 100%
rename from mineru/model/docx/test.docx
rename to demo/docx/test.docx
diff --git a/mineru/backend/office/docx_analyze.py b/mineru/backend/office/docx_analyze.py
index 3c0761cb..90f9cc2e 100644
--- a/mineru/backend/office/docx_analyze.py
+++ b/mineru/backend/office/docx_analyze.py
@@ -29,7 +29,7 @@ def office_docx_analyze(
return middle_json, results
if __name__ == '__main__':
- docx_path = "/Users/myhloli/projects/20240809magic_pdf/Magic-PDF/demo/docx/docx_grouped_images.docx"
+ docx_path = "../../../demo/docx/test.docx"
from mineru.data.data_reader_writer import FileBasedDataWriter
with open(docx_path, 'rb') as f:
file_bytes = f.read()
diff --git a/mineru/model/docx/main.py b/mineru/model/docx/main.py
index c34fae4a..5bf95d5d 100644
--- a/mineru/model/docx/main.py
+++ b/mineru/model/docx/main.py
@@ -15,4 +15,4 @@ def convert_binary(file_binary: BinaryIO):
if __name__ == "__main__":
- print(convert_path("test.docx"))
+ print(convert_path("../../../demo/docx/test.docx"))