Skip to content

Conversation

mahdibaghbanzadeh
Copy link

This PR fixes a bug in the filtering step for computing normalized WER. Previously, predictions and references were filtered separately, which could cause misalignment. Now, both lists are filtered together to ensure they stay in sync.

Changes:

  • Filter predictions and references together using a single list comprehension.
  • Prevent index mismatches by unpacking the filtered pairs correctly.
  • Handle edge cases where all references are empty.

Why this is needed:
This ensures that only valid reference-prediction pairs are evaluated without breaking alignment.

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.

1 participant