scoring: add figure-caption alignment diagnostic with evidence - #28
Open
qiaobochi040726-source wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #11
新增
figure_caption_align诊断:检测未按格式规则居中的图题注,并在证据中给出段落索引与题注文本片段,用户可直接定位问题。paper_format_agent/scorer.py:诊断目录条目(severity=medium + suggested_fix)、_figure_caption_align_issues()收集器、罚分 min(12, n*2),证据含 idx/texttests/test_scorer_diagnostics.py:合成失败用例(未居中 → 诊断发出 + 分数下降 + 证据含段落索引与文本)+ 负向用例(居中不误报)验证:pytest 63 passed(基线 61+2);validate_skill / compile_check OK。遗留:对齐检测对 None(继承样式)按未居中处理,极少数继承居中的样式可能误报,可后续扩展。