bench-debug
Debug specific document parsing failures
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
/bench-debug <doc_id>
Compares parsing output with ground-truth for a specific document and analyzes failure causes.
Usage
/bench-debug 01030000000189
Execution Steps
-
Run benchmark for the specific document
./scripts/bench.sh --doc-id <doc_id> -
Compare files
- Ground-truth:
tests/benchmark/ground-truth/markdown/<doc_id>.md - Prediction:
tests/benchmark/prediction/opendataloader/markdown/<doc_id>.md - Original PDF:
tests/benchmark/pdfs/<doc_id>.pdf
- Ground-truth:
-
Analyze differences
- Missing/extra text locations
- Table structure differences (TEDS score causes)
- Heading level mismatches (MHS score causes)
- Reading order errors (NID score causes)
-
Identify root causes
- Which PDF elements caused the issue
- Which Java core components are involved
-
Suggest improvements
- Java classes/methods that need modification
- Expected impact scope
Reference Files
-
ground-truth/reference.json: Per-document element info (categories, coordinates, etc.) -
java/opendataloader-pdf-core/: Core parsing logic
Example Output
Document 01030000000189 Analysis:
Overall: 0.2763 (one of the worst performing documents)
Issues:
1. 2 of 3 tables not detected (TEDS: 0.15)
- Table boundary detection failed
- Related code: TableDetector.java
2. Reading order errors (NID: 0.45)
- Multi-column layout handling failed
- Related code: ColumnDetector.java
Recommended Actions:
- Adjust clustering threshold in TableDetector
- Improve multi-column detection logic
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-28
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!