cfodes
cfodes
I agree that reversing the extracted string is not sufficient. The safer boundary is to reconstruct structure before applying bidirectional text processing. A possible pipeline would be: 1. Group glyphs...
This looks like a reason to change the extraction contract, not only extend `should_skip_invisible()` with more boolean rules. A PDF may contain text that is semantically present in the content...
Fair point — agreed that the public API should not grow for this. The minimal version I had in mind is to derive visibility internally from the existing `TextItem` and...
从这个现象看,单纯提高 `effort` 可能改善表格结构,但不能保证单元格里的公式重新出现。修复进入主流程之前,可以先做一个按页、按区域的补救链路: 1. 保留 MinerU 输出的 HTML/JSON、表格 bbox 和原始表格截图。 2. 检测可疑单元格:原图明显含有数学符号,但输出为空、只有普通文本,或者整页公式数量明显下降。 3. 只裁剪这些表格区域,四周留少量边距,再交给擅长公式识别的解析器或视觉模型;不必重新处理整份 PDF。 4. 根据行列位置把识别出的 LaTeX 合并回对应单元格。位置无法唯一确定时,不要猜,保留原始表格截图并标记为待复核。 5. 回归测试至少保存“原始裁剪图、当前 HTML/JSON、期望公式、MinerU 版本和后端”,这样后续版本才能判断是表格检测还是公式识别链路发生了变化。 如果后续还要做翻译或知识库,建议把“表格内检测到公式特征,但结构化输出没有公式”设成失败条件,而不是让这页静默进入下游。