huggingface / huggingface/lighteval

[FT] More general approach than `output_regex` to model answer extraction

Open
#360 0 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
Python
Stars
2.5k
Forks
555
Avg merge
1d 6h
Merged PRs (30d)
1

Description

Hi there!

Currently, we can specify an `output_regex` in the task config to extract the model answer from its generated content. This config option is used in `apply_generative_metrics`.

We could replace `output_regex` with an answer extractor object that performs arbitary operations to extract the answer. For example, that of [MMLU-Pro](https://arxiv.org/pdf/2406.01574) is as follows:

![image](https://github.com/user-attachments/assets/10e67a90-1166-400e-ad9b-c34af83b1370)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.