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
feat: tune docs (#948)
icecraft7d40115cce0e
diff --git a/next_docs/en/user_guide/data/data_reader_writer.rst b/next_docs/en/user_guide/data/data_reader_writer.rstindex 132a4fff..501e320f 100644--- a/next_docs/en/user_guide/data/data_reader_writer.rst+++ b/next_docs/en/user_guide/data/data_reader_writer.rst@@ -87,6 +87,8 @@ Read Examples.. code:: python+ from magic_pdf.data.data_reader_writer import *+# file based relatedfile_based_reader1 = FileBasedDataReader('')@@ -142,6 +144,8 @@ Write Examples.. code:: python+ from magic_pdf.data.data_reader_writer import *+# file based relatedfile_based_writer1 = FileBasedDataWriter('')diff --git a/next_docs/en/user_guide/data/read_api.rst b/next_docs/en/user_guide/data/read_api.rstindex b4048245..f11b5039 100644--- a/next_docs/en/user_guide/data/read_api.rst+++ b/next_docs/en/user_guide/data/read_api.rst@@ -18,6 +18,8 @@ Read the contet from jsonl which may located on local machine or remote s3. if y.. code:: python+ from magic_pdf.data.io.read_api import *+# read jsonl from local machinedatasets = read_jsonl("tt.jsonl", None)@@ -33,6 +35,8 @@ Read pdf from path or directory... code:: python+ from magic_pdf.data.io.read_api import *+# read pdf pathdatasets = read_local_pdfs("tt.pdf")@@ -47,10 +51,11 @@ Read images from path or directory.. code:: python+ from magic_pdf.data.io.read_api import *+# read from image pathdatasets = read_local_images("tt.png")-# read files from directory that endswith suffix in suffixes arraydatasets = read_local_images("images/", suffixes=["png", "jpg"])diff --git a/next_docs/zh_cn/user_guide/data/data_reader_writer.rst b/next_docs/zh_cn/user_guide/data/data_reader_writer.rstindex e43169e9..af244a5c 100644--- a/next_docs/zh_cn/user_guide/data/data_reader_writer.rst+++ b/next_docs/zh_cn/user_guide/data/data_reader_writer.rst@@ -73,6 +73,8 @@ S3DataReader 基于 MultiBucketS3DataReader 构建,但仅支持单个桶。S3D---------.. code:: python+ from magic_pdf.data.data_reader_writer import *+# 文件相关的file_based_reader1 = FileBasedDataReader('')@@ -126,6 +128,8 @@ S3DataReader 基于 MultiBucketS3DataReader 构建,但仅支持单个桶。S3D----------.. code:: python+ from magic_pdf.data.data_reader_writer import *+# 文件相关的file_based_writer1 = FileBasedDataWriter('')diff --git a/next_docs/zh_cn/user_guide/data/read_api.rst b/next_docs/zh_cn/user_guide/data/read_api.rstindex aadfb21e..d040b2fe 100644--- a/next_docs/zh_cn/user_guide/data/read_api.rst+++ b/next_docs/zh_cn/user_guide/data/read_api.rst@@ -15,6 +15,8 @@ read_jsonl.. code:: python+ from magic_pdf.data.io.read_api import *+# 从本地机器读取 JSONLdatasets = read_jsonl("tt.jsonl", None)@@ -28,6 +30,8 @@ read_local_pdfs.. code:: python+ from magic_pdf.data.io.read_api import *+# 读取 PDF 路径datasets = read_local_pdfs("tt.pdf")@@ -41,6 +45,8 @@ read_local_images.. code:: python+ from magic_pdf.data.io.read_api import *+# 从图像路径读取datasets = read_local_images("tt.png")