Skip to content

Allow METEOR to return one score per prediction - #916

Open
Boulea7 wants to merge 1 commit into
huggingface:mainfrom
Boulea7:feat/meteor-example-scores
Open

Boulea7 wants to merge 1 commit into
huggingface:mainfrom
Boulea7:feat/meteor-example-scores

Conversation

@Boulea7

@Boulea7 Boulea7 commented Dec 2, 2026

Copy link
Copy Markdown

Fixes #572.

METEOR now accepts use_aggregator=False to return one score per prediction in input order. This also works when each prediction has several references. Calls that omit the argument still return the same mean.

For example, exact matches on ["red", "blue sky"] return [0.5, 0.9375] with the option and 0.71875 by default.

The new example passes the existing METEOR doctest. With NLTK 3.10.4, I also checked the returned lists against NLTK scores for single and multiple references, custom weights, and input split across two add_batch calls. Codex assisted with the implementation and tests.

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.

METEOR has no option to return unaggregated results

1 participant