Skip to content

fix: use list instead of set for ordered span zip in PerClassScorer#611

Open
Chessing234 wants to merge 1 commit into
allenai:mainfrom
Chessing234:fix/592-per-class-scorer-list-zip
Open

fix: use list instead of set for ordered span zip in PerClassScorer#611
Chessing234 wants to merge 1 commit into
allenai:mainfrom
Chessing234:fix/592-per-class-scorer-list-zip

Conversation

@Chessing234

Copy link
Copy Markdown

Summary

Test plan

  • Score NER predictions where span order matters; untyped TP/FP counts match expected pairings

Made with Cursor

…ixes allenai#592)

Sets do not preserve insertion order, so zipping untyped_predicted_spans
with predicted_spans could pair the wrong spans when scoring NER metrics.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

fix: set-list zip produces incorrect span pairings in PerClassScorer (candidate_generation.py)

1 participant