Add task for SEGData (German VQA) - #3963
Open
redspottedbittern wants to merge 4 commits into
Open
Conversation
This commit adds a description of the paper, a incomplete citation and a description of the correct usage of the task.
baberabb
requested changes
Aug 14, 2026
baberabb
left a comment
Collaborator
There was a problem hiding this comment.
Hi! Thanks for the PR. Made a couple of modifications, just confirming if you're happy with them. The main one is that previously there wasn't any whitespace normalization to the model responses so <space>A would have been wrong. Added a filter to extract the letter.
Also thought 5 tokens would be a bit low, so increased to 16 but it shouldn't make that much a difference. Feel free to revert.
| Beschreibung: {{ description }} | ||
| Frage: {{ text }} | ||
| Antwortmöglichkeiten: | ||
| {{ answers | join("\n") }} |
Collaborator
There was a problem hiding this comment.
as answers was a python list, this stringifies with newline delimitation.
| generation_kwargs: | ||
| until: | ||
| - "\n\n" | ||
| max_gen_toks: 16 |
Collaborator
There was a problem hiding this comment.
though 5 would be a bit low
| # `gold_answer` is always a single letter, so take the first standalone | ||
| # letter in the response. Case is normalized by the metric below. | ||
| - function: regex | ||
| regex_pattern: "\\b([A-Za-z])\\b" |
Collaborator
There was a problem hiding this comment.
this normalizes leading whitespace such as A.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a task for mainly German multiple-choice Visual Question Answering data that covers divers domains.
The original data is designed by the Institut zur Qualitätsentwicklung im Bildungswesen to test German school children in classes 3, 8 and 12. It is freely accessible at their website.
Details of the dataset can be found here: https://huggingface.co/datasets/DFKI-SLT/SEGData
A link to the abstract and the full citation will be added as soon as their are available.
The dataset was originally started as a pull request here, but had to be renamed afterwards