Skip to content

Conversation

0xjunhao
Copy link

No description provided.

@HuggingFaceDocBuilderDev
Copy link
Collaborator

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Comment on lines +57 to +68
metric = SampleLevelMetric(
metric_name="extractive_match",
sample_level_fn=MultilingualExtractiveMatchMetric(
language=Language.ENGLISH,
gold_extraction_target=extraction_targets,
pred_extraction_target=extraction_targets,
precision=4,
),
category=SamplingMethod.GENERATIVE,
corpus_level_fn=np.mean,
higher_is_better=True,
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should be able to use existing extractive match for latex and expr

Copy link
Member

@NathanHB NathanHB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the PR ! can you run it adn compare against existing results to make sure everything is sound ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants