[test-dev] _extract_content_units 空章节误计为功能章节 #29
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
来源
Dev-Agent 分析 #21 时发现。
问题
_extract_content_units() 把 4 个无实质文本内容的章节计入 functional_sections,导致覆盖率虚低。
空内容章节(text=无): 2.3, 2.4, 2.5, 2.6.1
期望
过滤掉无实质内容的章节。建议阈值: 总文本长度 >= 10 或 有 table 或 有 images。
关联
阻塞: #21