Repository navigation
score: the boundary F1 judges each boundary against its partner - #39
Merged
Merged
Conversation
The label-checked boundary F1 gated each boundary on the labels beside it, then paired the boundaries that passed by time alone, closest first. The label alignment already names each boundary's partner, the system boundary between the same two units, and the pairing dropped it. Issue #36 showed the cost. A short unit with a steady lag lost a hit, and a boundary could be credited against one of another name. f1_all now judges a reference boundary against its partner alone, on the word tier through the word alignment and on the phone tier through the phone alignment's pairs. A hit lies within 20 ms plus the TA_TOL_S float guard, so an error of exactly 20 ms counts, as in the word timestamp F1. The denominators do not change. scoring.boundary_pairing: time keeps the old rule, and tests/repro pins it to rebuild the October 2026 snapshot. The two cases from issue #36 and the exact 20 ms case are tests. Co-authored-by: tabahi <8020255+tabahi@users.noreply.github.com>
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.
TL;DR The label-checked boundary F1 now judges each reference boundary against its partner from the label alignment, as page 3 of the FA-Bench paper defines it. This fixes the two cases tabahi reported in issue #36 and a third found while reviewing it. The word timestamp F1, which ranks the word board, does not move.
FA-Bench reports two boundary F1 scores,
wbnd_f1_all_20mson the word tier andbnd_f1_all_20mson the phone tier. Each one first checks the labels beside a boundary. Until now it then kept only the times of the boundaries that passed and paired them by distance, closest first. With this PR, each reference boundary meets one system boundary, the one between the same two units in the label alignment. The two count as a hit when they lie within 20 ms.Score the case from issue #36
It prints the boundary counts under each rule.
Every boundary lies 15 ms from its partner, so all four are hits. The old rule paired the reference
b|cat 25 ms with the systema|bat 15 ms, and that left the other two without a match.An error of exactly 20 ms is a hit. In floating point, 0.13 minus 0.11 comes out a hair above 0.02. The new rule allows 20 ms plus the
TA_TOL_Sguard, as the word timestamp F1 already does.What was wrong
The old rule lost hits in two ways and gave one away.
The third case appears when a 60 ms word meets a 40 ms lag. The new tests score it with the other cases, and you can run them yourself.
Keep the old rule when you need it
One setting brings the old rule back. Add it to a cell's config and score the cell again.
tests/reprosetstimeand rebuilds all 40 October 2026 cell units exactly, so the published snapshot stays reproducible. That test needs the frozen October system outputs, which stay on local disks because they carry the corpora's transcripts.What moves
The boundary F1 of every row can move either way. Only the hit counts change, because the denominators stay the same. The phone board ranks on
bnd_f1_all_20ms, so its numbers change when the leaderboard is next rescored. The word board ranks on the word timestamp F1 and stays as it is.tools/ci.sh lint test selftestpasses on this branch, andtests/repropasses on the October inputs.Credit
tabahi found the problem and reported it in issue #36, so the commit names tabahi as a co-author. Thank you @tabahi. Review is welcome after the merge as well, and a follow-up PR is the way to propose a change.
Next steps
The report behind this fix, with tabahi's worked example.
Each new case, scored under both rules.
How the word timestamp F1 and the two boundary F1 scores differ.