Skip to content

scoring: add figure-caption alignment diagnostic with evidence - #28

Open
qiaobochi040726-source wants to merge 1 commit into
zxyasfas:mainfrom
qiaobochi040726-source:20260806-figure-caption-diagnostics
Open

scoring: add figure-caption alignment diagnostic with evidence#28
qiaobochi040726-source wants to merge 1 commit into
zxyasfas:mainfrom
qiaobochi040726-source:20260806-figure-caption-diagnostics

Conversation

@qiaobochi040726-source

Copy link
Copy Markdown

Fixes #11

新增 figure_caption_align 诊断:检测未按格式规则居中的图题注,并在证据中给出段落索引与题注文本片段,用户可直接定位问题。

  • paper_format_agent/scorer.py:诊断目录条目(severity=medium + suggested_fix)、_figure_caption_align_issues() 收集器、罚分 min(12, n*2),证据含 idx/text
  • tests/test_scorer_diagnostics.py:合成失败用例(未居中 → 诊断发出 + 分数下降 + 证据含段落索引与文本)+ 负向用例(居中不误报)

验证:pytest 63 passed(基线 61+2);validate_skill / compile_check OK。遗留:对齐检测对 None(继承样式)按未居中处理,极少数继承居中的样式可能误报,可后续扩展。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Help wanted: add figure caption diagnostics

1 participant