Skip to content

Conversation

@Vangmay
Copy link

@Vangmay Vangmay commented Jan 28, 2026

This PR makes a few small, backward-compatible improvements to the BLEU metric implementation to improve usability and robustness.

Changes

  • Support a string alias for the default tokenizer (e.g. tokenizer="13a") in addition to passing a callable.
  • Add explicit validation for length mismatches and empty input lists.

These changes do not modify the default BLEU computation or scoring logic and are intended to make behavior clearer and easier to debug for users.

Fixes #729

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.

BLEU: improve input validation and document edge-case behavior)

1 participant