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
docs(next): fix review findings — validator wording, 0-1 bbox rule, office internal fields
Lubana3e2837c9733
diff --git a/docs/next/middle-json/backend-gaps.md b/docs/next/middle-json/backend-gaps.mdindex 4c983be8..0a54e0f2 100644--- a/docs/next/middle-json/backend-gaps.md+++ b/docs/next/middle-json/backend-gaps.md@@ -116,7 +116,7 @@- 与其它 backend 共用统一 `blocks` block tree,不再有独立的 `para_blocks` / `preproc_blocks`。- 大量 block 的 `bbox` 为 `null`(unknown),由 strict model 直接表达。- `PageInfo` 不携带 `page_size`。-- 保留 Office 特有字段,如 `section_number`、`anchor`、`is_numbered_style`。+- Office 特有内部字段不进入 public schema(`section_number`/`is_numbered_style` 已内化;`anchor` 保留在内部模型中)。- Office render 仍有专门逻辑。已解决:diff --git a/docs/next/middle-json/envelope.md b/docs/next/middle-json/envelope.mdindex bfc74496..6df574b3 100644--- a/docs/next/middle-json/envelope.md+++ b/docs/next/middle-json/envelope.md@@ -178,7 +178,7 @@ def normalize_middle_json(## Validator-当前生产代码不提供 envelope validator API;页面树校验逻辑仅保留在单测中作为 test-local helper。+当前生产代码不提供独立的 envelope validator API;结构合法性由 strict Pydantic 模型(`MiddleJson` 等,`extra="forbid"` + `strict`,`mineru/types.py:1092`)在解析时强制,页面树语义校验仅保留在单测中作为 test-local helper。```pythonfrom mineru.parser import MIDDLE_JSON_SCHEMA_VERSION@@ -203,7 +203,7 @@ P1 校验:- block index 页内唯一。- locator 可生成。-- bbox 在 page_size 范围内,unknown bbox 除外。+- bbox 为 schema 约定的 0-1 归一化坐标或 `null`(unknown)。- 内部字段不出现在 public output。## 与 `ParseResult`