Skip to content

Add task for SEGData (German VQA) - #3963

Open
redspottedbittern wants to merge 4 commits into
EleutherAI:mainfrom
redspottedbittern:SEGData
Open

Add task for SEGData (German VQA)#3963
redspottedbittern wants to merge 4 commits into
EleutherAI:mainfrom
redspottedbittern:SEGData

Conversation

@redspottedbittern

Copy link
Copy Markdown

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

This commit adds a description of the paper, a incomplete citation and a
description of the correct usage of the task.

@baberabb baberabb left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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") }}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

as answers was a python list, this stringifies with newline delimitation.

generation_kwargs:
until:
- "\n\n"
max_gen_toks: 16

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this normalizes leading whitespace such as A.

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.

2 participants