Skip to content

Repository files navigation

DUMB: A Dutch Model Benchmark

This repository contains the data processing and reference implementations for DUMB, a Dutch Model Benchmark.

An up-to-date leaderboard for this benchmark can be found on dumbench.nl. The paper about this benchmark is published at EMNLP 2023 and can be found here.

Citation

If you want to cite the benchmark, code, leaderboard or the accompanying paper, use the following bibtex.

@inproceedings{de-vries-etal-2023-dumb,
title = "{DUMB}: A Benchmark for Smart Evaluation of {D}utch Models",
author = "de Vries, Wietse and Wieling, Martijn and Nissim, Malvina",
editor = "Bouamor, Houda and Pino, Juan and Bali, Kalika",
booktitle = "Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing",
month = dec,
year = "2023",
address = "Singapore",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2023.emnlp-main.447",
pages = "7221--7241",
}

Tasks and Baseline Implementations

TypeData SourceLicenseTaskTrainer Implementation
Part-Of-Speech TaggingLassy Small v6.01custom3lassy-postoken-classification
Named Entity RecognitionSoNaR v1.2.11custom3sonar-netoken-classification
Word Sense DisambiguationWiC-NL2 (DutchSemCor v1.2.2)CC BY 3.0wicnlspan-classification
Pronoun DisambiguationDPR2 (SemEval-2010 T1)custom3dprspan-classification
Causal ReasoningCOPA-NL2 (COPA)BSD-2-Clausecopanlmultiple-choice
Natural Language InferenceSICK-NLMITsicknl-nlisequence-classification
Sentiment AnalysisDBRD v3.0MITdbrdsequence-classification
Abusive Language DetectionDALC v2.0GPLv3dalcsequence-classification
Question AnsweringSQuAD v2.0CC-BY-SA 4.0squadnlquestion-answering

1 Cross-validation splits are newly introduced in DUMB
2 Dataset is newly introduced in DUMB
3 Due to licensing restrictions, we cannot redistribute this data (yet) and you are required to download it from the official source (see next section).

Reproduction

The DUMB datasets can be preprocessed and generated from official sources. If the dumb directory is empty, generate the datasets with python build.py. This requires the datasets python package.

Most datasets can be downloaded automatically, except for these datasets that have to be downloaded manually:

  • SoNaR v1.2.1
    • Provide to build.py with argument --sonar=path/to/sonar.
    • path/to/sonar should contain subdirectories SONAR1 and SONAR500.
  • Lassy Small v6.0
    • Provide to build.py with argument --lassy=path/to/lassy-small.
    • path/to/lassy-small should contain subdirectory CONLLU.
  • DALC v2.0
    • Provide to build.py with argument --dalc=path/to/dalc
    • path/to/dalc should contain DALC-2_{train,dev,test}_full.csv.

After generating the data, you can use the jsonl files in the dumb directory, or you can use it via the datasets library with load_dataset('hf_datasets/dumb', 'TASK') where task is one of kebab-cased task names in the table above.

Repository structure

  • dumb: The benchmark data in jsonl format.
    • These files are required by the hf_datasets/dumb dataset script.
    • If this directory does not exist, check the Reproduction section.
  • hf_datasets: Dataset scripts that are usable by the Hugging Face datasets library.
    • hf_datasets/dumb is the main benchmark dataset that contains all tasks.
    • The other dataset scripts are required by hf_datasets/dumb.
  • tasks: Example scripts for fine-tuning pre-trained language models for specific tasks.
    • Typically bash scripts that call trainers from the trainers directory.
  • trainers: Reference implementations for model training / fine-tuning.
    • For instance the lassy-pos and sonar-ne tasks both use the token-classification trainer.

Examples

These are example items for each task, selected from training data.

POS: Part-Of-Speech Tagging (Lassy)

Provide POS tags for every word in the sentence.

SentenceTagged Sentence
Scoubidou-touwtjes zijn veilig in de hand, maar niet in de mond.[N|soort|mv|dim Scoubidou-touwtjes] [WW|pv|tgw|mv zijn] [ADJ|vrij|basis|zonder veilig] [VZ|init in] [LID|bep|stan|rest de] [N|soort|ev|basis|zijd|stan hand] [LET ,] [VG|neven maar] [BW niet] [VZ|init in] [LID|bep|stan|rest de] [N|soort|ev|basis|zijd|stan mond] [LET .]

NER: Named Entity Recognition (SoNaR)

Mark all named entities in the sentence.

SentenceTagged Sentence
Topman Jack Welch van het Amerikaanse industriële concern General Electric (GE) verwerpt het aanbod van zijn collega van Honeywell om de beoogde fusie van de twee ondernemingen te redden.Topman [PERSON Jack Welch] van het [LOCATION Amerikaanse] industriële concern [ORGANIZATION General Electric] ([ORGANIZATION GE]) verwerpt het aanbod van zijn collega van [ORGANIZATION Honeywell] om de beoogde fusie van de twee ondernemingen te redden.
De radar wordt dit weekend gepresenteerd op het Vogelfestival in het natuurgebied de Oostvaardersplassen in Lelystad.De radar wordt dit weekend gepresenteerd op het [EVENT Vogelfestival] in het natuurgebied de [LOCATION Oostvaardersplassen] in [LOCATION Lelystad].

WSD: Word Sense Disambiguation (WiC-NL)

Determine whether the marked words in each sentence have the same sense.

Sentence 1Sentence 2Label
In bijna elk mechanisch apparaat zijn wel assen te vinden.Mannen daarentegen zijn meer geboeid door mechaniek en willen nagenoeg altijd een mechanisch uurwerk.same
Het merendeel lijkt een ijzige kalmte over zich heen te hebben.De schaatsgrootheden uit de tijd van de wollen muts en de ijzig koude buitenbanen met storm en sneeuw kunnen worden vergelijken met de schaatsgrootheden uit de tijd van gestoomlijnde pakken, klapschaats en en geconditioneerde binnenbanen.different

PR: Pronoun Resolution (DPR)

Determine whether the marked pronoun refers to the marked entity.

TextLabel
Toen kwam de aanslag op New York en de generaal, intussen president, werd voor de keuze gesteld. Hij nam het binnenlandse risico: confrontatie met zijn islamitische militanten, in plaats van met de Verenigde Staten.same
Di Rupo weet waarom hij zich verzet tegen het privatiseringsbeginsel.different

CR: Causal Reasoning (COPA-NL)

Choose the most plausible cause or effect, given a premise.

PremiseChoice 1Choice 2Label
De vrouw bungelde het koekje boven de hond.
(The woman dangled the biscuit above the dog.)
De hond sprong op.
(The dog jumped up.)
De hond krabde aan zijn vacht.
(The dog scratched its fur.)
Choice 1
De vrouw voelde zich eenzaam.Ze renoveerde haar keuken.Ze adopteerde een kat.Choice 2

NLI: Natural Language Inference (SICK-NL)

Classify whether the first sentence entails or contradicts the second sentence.

Sentence 1Sentence 2Label
Een man met een trui is de bal aan het dunken bij een basketbalwedstrijd
(A man with a jersey is dunking the ball at a basketball game)
De bal wordt gedunkt door een man met een trui bij een basketbalwedstrijd
(The ball is being dunked by a man with a jersey at a basketball game)
entailment
Drie kinderen zitten in de bladeren
(Three kids are sitting in the leaves)
Drie kinderen springen in de bladeren
(Three kids are jumping in the leaves)
neutral
Een man springt in een leeg bad
(A man is jumping into an empty pool)
Een man springt in een vol zwembad
(A man is jumping into a full pool)
contradiction

ALD: Abusive Language Detection (DALC)

Classify whether the tweet is abusive or offensive.

TextLabel
Ach @USER wie neemt die nog serieus. Het gezellige dikkertje dat propogandeerde dat dik zijn, wat extra vet niet erg is en dat we gewoon lekker ongezond moeten eten wanneer we dat willen. En nu klagen over de kwetsbaren wat juist diegene zijn met teveel vetcellen.abusive
@USER OMDAT VROUWEN MOEILIJKE WEZENS ZIJN (buik van vol)offensive
ABVV waarschuwt regering voor algemene stakingnot

SA: Sentiment Analysis (DBRD)

Classify whether the review is positive or negative.

TextLabel
Het verhaal speelt zich af aan het einde van de 19e eeuw. Boeiend van begin tot eind, geeft het een inkijkje in het leven van arbeiders en wetenschappers in Barcelona. De industriële revolutie is net begonnen en de effecten daarvan tekenen zich af. Grote veranderingen op het gebied van de medische wetenschap spelen op de achtergrond van liefde, vriendschap, betrokkenheid en verraad. Fictie wordt vermengd met historische feiten op een meeslepende manier, pakkend begin, verrassend einde. Aanrader!positive
Eerlijk gezegd vindt ik dat dit boek vreemd is geschreven. De verhaallijnen gaan door elkaar heen en dat maakt het heel onduidelijk. Het onderwerp is wel goed bedachtnegative

QA: Question Answering (SQuAD-NL)

Locate the answer to a question in a given paragraph, or classify the question as unanswerable.

TextLabel
Wat is Saksische tuin in het Pools?Vlakbij, in Ogród Saski (de Saksische Tuin), was het Zomertheater in gebruik van 1870 tot 1939, en in het interbellum omvatte het theatercomplex ook Momus, het eerste literaire cabaret van Warschau, en Melodram, het muziektheater van Leon Schiller. Het Wojciech Bogusławski Theater (1922-26) was het beste voorbeeld van "Pools monumentaal theater". Vanaf het midden van de jaren dertig huisvestte het Great Theatre-gebouw het Upati Institute of Dramatic Arts - de eerste door de staat gerunde academie voor dramatische kunst, met een acteerafdeling en een regie-afdeling.

About

A Benchmark for Smart Evaluation of Dutch Models (EMNLP 2023)

Resources

Stars

9 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages