repo stringlengths 7 90 | file_url stringlengths 81 315 | file_path stringlengths 4 228 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:38:15 2026-01-05 02:33:18 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_mim_gold_ner.py | src/scripts/create_mim_gold_ner.py | """Create the MIM-GOLD-NER-mini NER dataset and upload it to the HF Hub."""
url = "https://repository.clarin.is/repository/xmlui/bitstream/handle/20.500.12537/230/MIM-GOLD-2_0.zip?sequence=15&isAllowed=y"
| python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_no_cola.py | src/scripts/create_no_cola.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# "scikit-learn<1.6.0",
# ]
# ///
"""Create the NoCoLA linguistic acceptability dataset."""
import logging
import pandas as pd
import reques... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/load_ud_pos.py | src/scripts/load_ud_pos.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Load the part-of-speech part of a Universal Dependencies treebank."""
import logging
import re
from collections import defaultdict
from functools import partial
from typing import Callable, ... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_lithuanian_lrytas_summarization.py | src/scripts/create_lithuanian_lrytas_summarization.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the Lithuanian summarisation dataset Lrytas."""
import pandas as pd
from datasets import Dataset, DatasetDict, Split, load_da... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_dansk.py | src/scripts/create_dansk.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the DANSK-mini NER dataset and upload it to the HF Hub."""
from dataclasses import dataclass
import pandas as pd
from datase... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_icelandic_error_corpus.py | src/scripts/create_icelandic_error_corpus.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the Icelandic Error Corpus dataset and upload it to the HF Hub."""
import re
import pandas as pd
from datasets import Datase... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_nrk_quiz_qa.py | src/scripts/create_nrk_quiz_qa.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# "scikit-learn<1.6.0",
# ]
# ///
"""Create the NRK-Quiz-QA-mini dataset and upload them to the HF Hub."""
import warnings
from collections i... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_multi_wiki_qa.py | src/scripts/create_multi_wiki_qa.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.6.0",
# "huggingface-hub==0.33.0",
# "pandas==2.3.0",
# "requests==2.32.4",
# "tqdm==4.67.1",
# ]
# ///
"""Create the MultiWikiQA-mini datasets and upload them to the HF Hub."""
import pandas as pd
from datasets.arrow... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_norquad.py | src/scripts/create_norquad.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the NorQuAD-mini dataset and upload them to the HF Hub."""
import pandas as pd
import requests
from datasets import Dataset
f... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_mmlu_lv.py | src/scripts/create_mmlu_lv.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# "scikit-learn<1.6.0",
# ]
# ///
"""Create the MMLU-LV (Latvian) dataset from VTI-Data and upload to HF Hub."""
from collections import Coun... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_latvian_lsm_summary.py | src/scripts/create_latvian_lsm_summary.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the Latvian summarisation dataset LSM."""
import pandas as pd
from datasets import Dataset, DatasetDict, Split, load_dataset
... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_rosent.py | src/scripts/create_rosent.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==4.0.0",
# "huggingface-hub==0.34.4",
# "pandas==2.2.0",
# "requests==2.32.5",
# ]
# ///
"""Create the RoSent Romanian sentiment dataset and upload to HF Hub."""
import json
import os
from typing import Literal
import panda... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_icesum.py | src/scripts/create_icesum.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the icesum summarisation dataset."""
import io
import json
from zipfile import ZipFile
import pandas as pd
import requests
f... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/__init__.py | src/scripts/__init__.py | """Scripts."""
| python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_nor_common_sense_qa.py | src/scripts/create_nor_common_sense_qa.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the NorCommonSenseQA dataset and upload them to the HF Hub."""
import warnings
from collections import Counter
import pandas... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_rrn.py | src/scripts/create_rrn.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the RRN-mini summarisation dataset."""
import pandas as pd
from datasets import Dataset, DatasetDict, Split, load_dataset
fro... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_belebele.py | src/scripts/create_belebele.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# "scikit-learn<1.6.0",
# ]
# ///
"""Create the Belebele-mini datasets and upload them to the HF Hub."""
import re
from collections import Co... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_trivia_et.py | src/scripts/create_trivia_et.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==4.0.0",
# "huggingface-hub==0.34.4",
# "requests==2.32.5",
# ]
# ///
"""Create the Estonian Trivia dataset and upload to HF Hub."""
from typing import MutableMapping
from datasets import Dataset, DatasetDict, concatenate_datase... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_sentiment_headlines_es.py | src/scripts/create_sentiment_headlines_es.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the SentimentHeadlines-es dataset and upload to HF Hub."""
import pandas as pd
from datasets import Dataset, DatasetDict, Spl... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_lt_history.py | src/scripts/create_lt_history.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# "scikit-learn<1.6.0",
# ]
# ///
"""Create the LT-History knowledge dataset and upload it to the HF Hub."""
from collections import Counter
... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_harem.py | src/scripts/create_harem.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the HAREM NER dataset and upload it to the HF Hub."""
import logging
import re
import urllib.request
from collections import ... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_hellaswag.py | src/scripts/create_hellaswag.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# "scikit-learn<1.6.0",
# ]
# ///
"""Create the HellaSwag-mini datasets and upload them to the HF Hub."""
from collections import Counter
im... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_llmzszl.py | src/scripts/create_llmzszl.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# "scikit-learn<1.6.0",
# ]
# ///
"""Create the LLMzSzŁ Polish knowledge dataset and upload it to the HF Hub."""
from collections import Coun... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_duidelijke_taal.py | src/scripts/create_duidelijke_taal.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==4.4.2",
# "huggingface-hub==0.36.0",
# "pandas==2.2.3",
# "requests==2.32.3",
# "evaluate==0.4.6",
# "bert-score==0.3.13",
# ]
# ///
"""Create the DuidelijkeTaal simplification dataset by filtering the original datas... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_cinexio.py | src/scripts/create_cinexio.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the Cinexio sentiment dataset and upload to HF Hub."""
import json
import tarfile
from pathlib import Path
from tempfile impo... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_err_news.py | src/scripts/create_err_news.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==4.0.0",
# "huggingface-hub==0.34.4",
# "requests==2.32.5",
# "pandas==2.3.1",
# ]
# ///
"""Create the ERRNews summarisation dataset."""
import tempfile
import zipfile
import pandas as pd
import requests
from datasets impor... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_latvian_twitter_sentiment.py | src/scripts/create_latvian_twitter_sentiment.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the Latvian Twitter Sentiment dataset and upload it to the HF Hub."""
import pandas as pd
from datasets import Dataset, Datas... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_germanquad.py | src/scripts/create_germanquad.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the GermanQuAD-mini dataset and upload them to the HF Hub."""
import pandas as pd
from datasets.arrow_dataset import Dataset
... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_mmlu.py | src/scripts/create_mmlu.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "polars==1.31.0",
# "requests==2.32.3",
# "scikit-learn<1.6.0",
# ]
# ///
"""Create the MMLU-mini datasets and upload them to the HF Hub."""
from collections... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_mlsum_es.py | src/scripts/create_mlsum_es.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the Spanish MLSum-es-mini summarisation dataset."""
import pandas as pd
from datasets import Dataset, DatasetDict, Split, loa... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_sentinews.py | src/scripts/create_sentinews.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the Slovene SentiNews sentiment dataset and upload to HF Hub."""
import pandas as pd
from datasets import Dataset, DatasetDic... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_conll_en.py | src/scripts/create_conll_en.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the CoNLL-EN-mini NER dataset and upload it to the HF Hub."""
import pandas as pd
from datasets import Dataset, DatasetDict, ... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_poner.py | src/scripts/create_poner.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the PONER NER dataset and upload it to the HF Hub."""
import pandas as pd
from datasets import Dataset, DatasetDict, Split, l... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_exams_bg.py | src/scripts/create_exams_bg.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the Bulgarian Exams knowledge dataset and upload to HF Hub."""
import json
import tarfile
from pathlib import Path
from tempf... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_skolprov.py | src/scripts/create_skolprov.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# "scikit-learn<1.6.0",
# ]
# ///
"""Create the Swedish skolprov datasets and upload them to the HF Hub."""
import logging
from collections i... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_polemo2.py | src/scripts/create_polemo2.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the PolEmo2-mini sentiment dataset and upload it to the HF Hub."""
import pandas as pd
from datasets import Dataset, DatasetD... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_jentoft.py | src/scripts/create_jentoft.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the Jentoft linguistic acceptability dataset."""
import logging
import pandas as pd
from datasets import Dataset, DatasetDic... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_allocine.py | src/scripts/create_allocine.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the Allocine-mini sentiment dataset and upload it to the HF Hub."""
import pandas as pd
from datasets import Dataset, Dataset... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_cnn_dailymail.py | src/scripts/create_cnn_dailymail.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the CNN-DailyMail-mini summarisation dataset."""
import pandas as pd
from datasets import Dataset, DatasetDict, Split, load_d... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_tydiqa_fi.py | src/scripts/create_tydiqa_fi.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the TydiQA-mini Finnish dataset and upload it to the HF Hub."""
import pandas as pd
from datasets.arrow_dataset import Datase... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_szeged_ner.py | src/scripts/create_szeged_ner.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==4.0.0",
# "huggingface-hub==0.34.4",
# "pandas==2.2.0",
# "requests==2.32.5",
# ]
# ///
"""Create the Hungarian NER dataset SzegedNER and upload it to the HF Hub."""
import ast
import pandas as pd
from datasets import Dat... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_danish_citizen_tests.py | src/scripts/create_danish_citizen_tests.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# "python-dotenv==1.0.1",
# ]
# ///
"""Create the Danish Citizen Tests dataset and upload it to the HF Hub."""
import warnings
import pandas... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_atsiliepimai.py | src/scripts/create_atsiliepimai.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# "scikit-learn==1.6.1",
# ]
# ///
"""Create the Atsiliepimai sentiment dataset and upload to HF Hub."""
import pandas as pd
from datasets im... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_norne.py | src/scripts/create_norne.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# "tqdm==4.67.1",
# ]
# ///
"""Create the NorNE-mini NER datasets and upload them to the HF Hub."""
import re
from collections import default... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_csfd_sentiment.py | src/scripts/create_csfd_sentiment.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the CSFD Sentiment dataset and upload to HF Hub."""
import pandas as pd
from datasets import Dataset, DatasetDict, Split, loa... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_nqii.py | src/scripts/create_nqii.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the NQiI-mini dataset and upload them to the HF Hub."""
import pandas as pd
from datasets.arrow_dataset import Dataset
from d... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_conll_nl.py | src/scripts/create_conll_nl.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the CoNLL-NL-mini NER dataset and upload it to the HF Hub."""
import pandas as pd
from datasets import Dataset, DatasetDict, ... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_mlqa_es.py | src/scripts/create_mlqa_es.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==2.15.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the MLQA dataset and upload them to the HF Hub."""
import pandas as pd
from datasets.arrow_dataset import Dataset
from datas... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_norglm_multiqa.py | src/scripts/create_norglm_multiqa.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==2.15.0",
# "huggingface-hub==0.24.0",
# "openai==1.66.5",
# "pandas==2.2.0",
# "python-dotenv==1.0.1",
# "requests==2.32.3",
# ]
# ///
"""Create the NorGLM NO-multi question answering dataset."""
import ast
import h... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_cross_domain_uk_reviews.py | src/scripts/create_cross_domain_uk_reviews.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the Cross-Domain UK Reviews dataset and upload it to the HF Hub."""
from pathlib import Path
import pandas as pd
import requ... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_fquad.py | src/scripts/create_fquad.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "click==8.1.3",
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the FQuAD-mini NER dataset and upload it to the HF Hub."""
from collections import defaultdict
from pat... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_mms.py | src/scripts/create_mms.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the MMS sentiment datasets and upload to HF Hub."""
import pandas as pd
from datasets import Dataset, DatasetDict, Split, loa... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_greek_wikipedia.py | src/scripts/create_greek_wikipedia.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the Greek Wikipedia summarisation dataset."""
import pandas as pd
from datasets import Dataset, DatasetDict, Split, load_data... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_hellaswag_cs.py | src/scripts/create_hellaswag_cs.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# "scikit-learn<1.6.0",
# ]
# ///
"""Create the Czech HellaSwag dataset and upload to HF Hub."""
from collections import Counter
import pand... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_winogrande_et.py | src/scripts/create_winogrande_et.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==4.0.0",
# "huggingface-hub==0.34.4",
# "requests==2.32.5",
# ]
# ///
"""Create the Estonian Winogrande dataset and upload to HF Hub."""
from typing import MutableMapping
from datasets import Dataset, DatasetDict, load_dataset
... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_xquad.py | src/scripts/create_xquad.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==4.0.0",
# "huggingface-hub==0.34.4",
# "requests==2.32.5",
# "pandas==2.2.0",
# ]
# ///
"""Create the XQuAD datasets and upload them to the HF Hub."""
import pandas as pd
from datasets.arrow_dataset import Dataset
from data... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_squad_it.py | src/scripts/create_squad_it.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the SQuAD-it-mini dataset and upload it to the HF Hub."""
import pandas as pd
from datasets.arrow_dataset import Dataset
from... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_mlsum_de.py | src/scripts/create_mlsum_de.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the German MLSum-de-mini summarisation dataset."""
import pandas as pd
from datasets import Dataset, DatasetDict, Split, load... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_ronec.py | src/scripts/create_ronec.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the RoNEC NER dataset and upload it to the HF Hub."""
import pandas as pd
from datasets import Dataset, DatasetDict, load_dat... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_grammar_et.py | src/scripts/create_grammar_et.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==4.0.0",
# "huggingface-hub==0.34.4",
# "requests==2.32.5",
# ]
# ///
"""Create the Estonian Grammar dataset and upload to HF Hub."""
from datasets import Dataset, DatasetDict, concatenate_datasets, load_dataset
from huggingface... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_dbrd.py | src/scripts/create_dbrd.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the SST5-mini sentiment dataset and upload it to the HF Hub."""
import pandas as pd
from datasets import Dataset, DatasetDict... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/versioning.py | src/scripts/versioning.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = []
# ///
"""Scripts related to updating of version."""
import datetime as dt
import re
import subprocess
from pathlib import Path
from typing import Tuple
def bump_major() -> None:
"""Add one to the major version."""
major, _, _ = get_current_v... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_poquad.py | src/scripts/create_poquad.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the PoQuaD-mini dataset and upload it to the HF Hub."""
import pandas as pd
from datasets.arrow_dataset import Dataset
from d... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/scripts/create_squad_nl.py | src/scripts/create_squad_nl.py | # /// script
# requires-python = ">=3.10,<4.0"
# dependencies = [
# "datasets==3.5.0",
# "huggingface-hub==0.24.0",
# "pandas==2.2.0",
# "requests==2.32.3",
# ]
# ///
"""Create the SQuAD-nl-mini dataset and upload them to the HF Hub."""
import pandas as pd
from datasets.arrow_dataset import Dataset
fr... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/logging_utils.py | src/euroeval/logging_utils.py | """Utility functions related to logging."""
import datetime as dt
import logging
import os
import sys
import warnings
from io import TextIOWrapper
from types import TracebackType
import litellm
from datasets.utils import disable_progress_bars as disable_datasets_progress_bars
from evaluate import disable_progress_bar... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/scores.py | src/euroeval/scores.py | """Aggregation of raw scores into the mean and a confidence interval."""
import collections.abc as c
import logging
import typing as t
import warnings
import numpy as np
from .logging_utils import log
if t.TYPE_CHECKING:
from .metrics import Metric
from .types import ScoreDict
def log_scores(
dataset_... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/enums.py | src/euroeval/enums.py | """Enums used in the project."""
from enum import Enum, auto
class AutoStrEnum(str, Enum):
"""StrEnum where auto() returns the field name in lower case."""
@staticmethod
def _generate_next_value_(
name: str, start: int, count: int, last_values: list
) -> str:
return name.lower()
... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/languages.py | src/euroeval/languages.py | """List of languages and their language codes.
The language codes contain both all the ISO 639-1 codes, as well as the ISO 639-3 codes
for languages that do not have an ISO 639-1 code.
"""
from dataclasses import dataclass, field
@dataclass
class Language:
"""A benchmarkable language.
Attributes:
c... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | true |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/tasks.py | src/euroeval/tasks.py | """All benchmarks tasks used in EuroEval."""
from . import metrics as m
from .constants import NUM_GENERATION_TOKENS_FOR_CLASSIFICATION
from .data_models import Task
from .enums import GenerativeType, ModelType, TaskGroup
from .prompt_templates import (
CLASSIFICATION_TEMPLATES,
LA_TEMPLATES,
MULTIPLE_CHOI... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/model_cache.py | src/euroeval/model_cache.py | """ModelCache class for caching model outputs."""
import collections.abc as c
import hashlib
import json
import logging
import sys
import typing as t
from collections import defaultdict
from dataclasses import asdict
from datasets import Dataset
from .constants import NUM_GENERATION_TOKENS_FOR_CLASSIFICATION
from .d... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/cli.py | src/euroeval/cli.py | """Command-line interface for benchmarking."""
from pathlib import Path
import click
from .benchmarker import Benchmarker
from .data_models import DatasetConfig
from .enums import Device, GenerativeType
from .languages import get_all_languages
@click.command()
@click.option(
"--model",
"-m",
required=T... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/callbacks.py | src/euroeval/callbacks.py | """Callbacks for the Hugging Face Trainer."""
import sys
import typing as t
from collections.abc import Sized
from tqdm.auto import tqdm
from transformers.trainer_callback import ProgressCallback
from .logging_utils import get_pbar
if t.TYPE_CHECKING:
from torch.utils.data import DataLoader
from transformer... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/constants.py | src/euroeval/constants.py | """Constants used throughout the project."""
import re
from typing import TypeVar
from .enums import TaskGroup
# Type variable used for generic typing
T = TypeVar("T", bound=object)
# This is used as input to generative models; it cannot be a special token
DUMMY_FILL_VALUE = 100
# This is the maximum allowed conte... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/data_models.py | src/euroeval/data_models.py | """Data models used in EuroEval."""
import collections.abc as c
import json
import re
import typing as t
from copy import deepcopy
from dataclasses import dataclass, field
from pathlib import Path
import pydantic
import torch
from transformers.generation.configuration_utils import GenerationConfig
from .enums import... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/finetuning.py | src/euroeval/finetuning.py | """Functions related to the finetuning of models."""
import collections.abc as c
import logging
import sys
import typing as t
from functools import partial
import torch
from transformers.trainer_callback import (
EarlyStoppingCallback,
PrinterCallback,
ProgressCallback,
)
from transformers.trainer_utils i... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/benchmark_config_factory.py | src/euroeval/benchmark_config_factory.py | """Factory class for creating dataset configurations."""
import collections.abc as c
import sys
import typing as t
from pathlib import Path
import torch
from .data_models import BenchmarkConfig, BenchmarkConfigParams, DatasetConfig, Task
from .dataset_configs import get_all_dataset_configs
from .enums import Device
... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/exceptions.py | src/euroeval/exceptions.py | """Exceptions to used by other functions."""
class InvalidBenchmark(Exception):
"""The (model, dataset) combination cannot be benchmarked."""
def __init__(
self, message: str = "This model cannot be benchmarked on the given dataset."
) -> None:
"""Initialise the exception.
Args:
... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/tokenisation_utils.py | src/euroeval/tokenisation_utils.py | """Utility functions related to tokenisation."""
import collections.abc as c
import logging
import re
import typing as t
import torch
from .constants import BOS_TOKENS, EOS_TOKENS, PAD_TOKENS
from .enums import GenerativeType
from .exceptions import InvalidModel
from .logging_utils import log, log_once
from .types i... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/model_config.py | src/euroeval/model_config.py | """Functions related to getting the model configuration."""
import logging
import typing as t
from . import benchmark_modules
from .exceptions import InvalidModel, NeedsEnvironmentVariable, NeedsExtraInstalled
from .logging_utils import log
if t.TYPE_CHECKING:
from .data_models import BenchmarkConfig, ModelConfi... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/utils.py | src/euroeval/utils.py | """Utility functions to be used in other scripts."""
import asyncio
import collections.abc as c
import gc
import importlib
import importlib.metadata
import importlib.util
import logging
import os
import random
import re
import socket
import sys
import typing as t
from pathlib import Path
from types import ModuleType, ... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/__init__.py | src/euroeval/__init__.py | """EuroEval - A benchmarking framework for language models."""
### STAGE 1 ###
### Block unwanted terminal output that happens on importing external modules ###
import importlib.util
import logging
import os
import sys
import warnings
from termcolor import colored
# Block specific warnings before importing anything... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/types.py | src/euroeval/types.py | """Types used throughout the project."""
import collections.abc as c
import typing as t
from transformers import PreTrainedTokenizer
from transformers.trainer_utils import EvalPrediction
try:
from transformers.tokenization_mistral_common import MistralCommonTokenizer
except ImportError:
from transformers.tok... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/speed_benchmark.py | src/euroeval/speed_benchmark.py | """Benchmarking model inference speed."""
import collections.abc as c
import logging
import typing as t
import pyinfer
from transformers.models.auto.tokenization_auto import AutoTokenizer
from .benchmark_modules import HuggingFaceEncoderModel, LiteLLMModel, VLLMModel
from .exceptions import InvalidBenchmark
from .lo... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/generation_utils.py | src/euroeval/generation_utils.py | """Utility functions related to generative models."""
import collections.abc as c
import itertools as it
import json
import logging
import random
import re
import typing as t
from datasets import Dataset
from .enums import GenerativeType, TaskGroup
from .exceptions import InvalidBenchmark, InvalidModel
from .logging... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/benchmarker.py | src/euroeval/benchmarker.py | """Class that benchmarks language models."""
import collections.abc as c
import contextlib
import datetime as dt
import json
import logging
import os
import re
import typing as t
from pathlib import Path
from shutil import rmtree
from time import sleep
from torch.distributed import destroy_process_group
from .benchm... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | true |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/model_loading.py | src/euroeval/model_loading.py | """Functions related to the loading of models."""
import typing as t
from .benchmark_modules import (
FreshEncoderModel,
HuggingFaceEncoderModel,
LiteLLMModel,
VLLMModel,
)
from .enums import InferenceBackend, ModelType
from .exceptions import InvalidModel
from .logging_utils import log_once
if t.TYP... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/data_loading.py | src/euroeval/data_loading.py | """Functions related to the loading of the data."""
import collections.abc as c
import logging
import sys
import time
import typing as t
import requests
from datasets import DatasetDict, load_dataset
from datasets.exceptions import DatasetsError
from huggingface_hub.errors import HfHubHTTPError
from numpy.random impo... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/caching_utils.py | src/euroeval/caching_utils.py | """Caching utility functions."""
import typing as t
from functools import wraps
from .constants import T
def cache_arguments(
*arguments: str, disable_condition: t.Callable[[], bool] = lambda: False
) -> t.Callable[[t.Callable[..., T]], t.Callable[..., T]]:
"""Cache specified arguments of a function.
A... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/generation.py | src/euroeval/generation.py | """Functions related to text generation of models."""
import collections.abc as c
import logging
import sys
import typing as t
from pathlib import Path
from datasets import Dataset
from tqdm.auto import tqdm
from .enums import BatchingPreference, TaskGroup
from .exceptions import InvalidBenchmark, InvalidModel
from ... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/benchmark_modules/fresh.py | src/euroeval/benchmark_modules/fresh.py | """Freshly initialised encoder models."""
import re
import typing as t
from functools import cached_property
from json import JSONDecodeError
from transformers.models.auto.configuration_auto import AutoConfig
from transformers.models.auto.tokenization_auto import AutoTokenizer
from transformers.models.electra import ... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/benchmark_modules/litellm.py | src/euroeval/benchmark_modules/litellm.py | """Generative models from an inference API, using the LiteLLM framework."""
import asyncio
import collections.abc as c
import json
import logging
import re
import typing as t
from functools import cached_property, partial
from time import sleep
import litellm
import ollama
from datasets import Dataset
from huggingfac... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | true |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/benchmark_modules/hf.py | src/euroeval/benchmark_modules/hf.py | """Encoder models from the Hugging Face Hub."""
import collections.abc as c
import logging
import re
import typing as t
from functools import cached_property, partial
from json import JSONDecodeError
from pathlib import Path
from time import sleep
import torch
from datasets import DatasetDict
from huggingface_hub imp... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | true |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/benchmark_modules/vllm.py | src/euroeval/benchmark_modules/vllm.py | """Generative models using the vLLM inference framework."""
import collections.abc as c
import contextlib
import importlib.util
import json
import logging
import re
import shutil
import typing as t
from functools import partial
from pathlib import Path
from time import sleep
import torch
from huggingface_hub import s... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | true |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/benchmark_modules/__init__.py | src/euroeval/benchmark_modules/__init__.py | """The different types of modules that can be benchmarked."""
from .base import BenchmarkModule
from .fresh import FreshEncoderModel
from .hf import HuggingFaceEncoderModel
from .litellm import LiteLLMModel
from .vllm import VLLMModel
| python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/benchmark_modules/base.py | src/euroeval/benchmark_modules/base.py | """Abstract benchmark module class that the model classes inherit from."""
import collections.abc as c
import logging
import re
import typing as t
from abc import ABC, abstractmethod
from functools import cached_property, partial
from datasets import Dataset, DatasetDict
from torch import nn
from ..enums import Task... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/metrics/huggingface.py | src/euroeval/metrics/huggingface.py | """All the Hugging Face metrics used in EuroEval."""
import collections.abc as c
import typing as t
from pathlib import Path
import evaluate
import numpy as np
from datasets import DownloadConfig, DownloadMode
from ..exceptions import InvalidBenchmark
from ..logging_utils import no_terminal_output
from .base import ... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/metrics/pipeline.py | src/euroeval/metrics/pipeline.py | """Metrics based on a scikit-learn Pipeline."""
import collections.abc as c
import logging
import typing as t
from pathlib import Path
import cloudpickle
import huggingface_hub as hf_hub
import numpy as np
from scipy.special import expit as sigmoid
from ..exceptions import InvalidBenchmark
from ..logging_utils impor... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/metrics/__init__.py | src/euroeval/metrics/__init__.py | """All the metrics used in EuroEval."""
from .huggingface import * # noqa: F403
from .llm_as_a_judge import * # noqa: F403
from .pipeline import * # noqa: F403
from .speed import * # noqa: F403
| python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/metrics/base.py | src/euroeval/metrics/base.py | """The abstract base class for all metrics."""
import abc
import collections.abc as c
import typing as t
if t.TYPE_CHECKING:
from datasets.arrow_dataset import Dataset
from ..data_models import BenchmarkConfig, DatasetConfig
class Metric(abc.ABC):
"""Abstract base class for all metrics."""
def __i... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
EuroEval/EuroEval | https://github.com/EuroEval/EuroEval/blob/34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f/src/euroeval/metrics/speed.py | src/euroeval/metrics/speed.py | """Inference speed metric."""
import collections.abc as c
import typing as t
from .base import Metric
if t.TYPE_CHECKING:
from datasets.arrow_dataset import Dataset
from ..data_models import BenchmarkConfig, DatasetConfig
class SpeedMetric(Metric):
"""Speed metric."""
def __init__(self, name: str... | python | MIT | 34d4bf5c2cf4d62b4efd46b1b65d5b814771e25f | 2026-01-05T07:08:43.007726Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.