Datasets:
|
Download README.md from VillanovaAI/Multi-UNER-LLM-inst: direct link, hf CLI and curl.
- Browser
- Download file 12.8 kB
-
https://huggingface.co/datasets/VillanovaAI/Multi-UNER-LLM-inst/resolve/main/README.md
- Command line
-
hf download hf://datasets/VillanovaAI/Multi-UNER-LLM-inst/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/datasets/VillanovaAI/Multi-UNER-LLM-inst/resolve/main/README.md
12.8 kB
| dataset_info: | |
| - config_name: de | |
| features: | |
| - name: id | |
| dtype: int64 | |
| - name: inputs | |
| dtype: string | |
| - name: targets | |
| dtype: string | |
| - name: dataset_name | |
| dtype: string | |
| - name: sub_dataset_name | |
| dtype: string | |
| - name: task_type | |
| dtype: string | |
| - name: template_id | |
| dtype: int64 | |
| - name: language | |
| dtype: string | |
| - name: split | |
| dtype: string | |
| - name: script | |
| dtype: string | |
| - name: model_version | |
| dtype: string | |
| splits: | |
| - name: train | |
| num_bytes: 2190821 | |
| num_examples: 1931 | |
| - name: test | |
| num_bytes: 769014 | |
| num_examples: 511 | |
| - name: validation | |
| num_bytes: 527275 | |
| num_examples: 350 | |
| download_size: 503382 | |
| dataset_size: 3487110 | |
| - config_name: en | |
| features: | |
| - name: id | |
| dtype: int64 | |
| - name: inputs | |
| dtype: string | |
| - name: targets | |
| dtype: string | |
| - name: dataset_name | |
| dtype: string | |
| - name: sub_dataset_name | |
| dtype: string | |
| - name: task_type | |
| dtype: string | |
| - name: template_id | |
| dtype: int64 | |
| - name: language | |
| dtype: string | |
| - name: split | |
| dtype: string | |
| - name: script | |
| dtype: string | |
| - name: model_version | |
| dtype: 'null' | |
| splits: | |
| - name: train | |
| num_bytes: 4976603 | |
| num_examples: 5151 | |
| - name: test | |
| num_bytes: 1501228 | |
| num_examples: 1364 | |
| - name: validation | |
| num_bytes: 961841 | |
| num_examples: 933 | |
| download_size: 953046 | |
| dataset_size: 7439672 | |
| - config_name: es | |
| features: | |
| - name: id | |
| dtype: int64 | |
| - name: inputs | |
| dtype: string | |
| - name: targets | |
| dtype: string | |
| - name: dataset_name | |
| dtype: string | |
| - name: sub_dataset_name | |
| dtype: string | |
| - name: task_type | |
| dtype: string | |
| - name: template_id | |
| dtype: int64 | |
| - name: language | |
| dtype: string | |
| - name: split | |
| dtype: string | |
| - name: script | |
| dtype: string | |
| - name: model_version | |
| dtype: string | |
| splits: | |
| - name: train | |
| num_bytes: 2161813 | |
| num_examples: 1931 | |
| - name: test | |
| num_bytes: 640983 | |
| num_examples: 511 | |
| - name: validation | |
| num_bytes: 414403 | |
| num_examples: 350 | |
| download_size: 445817 | |
| dataset_size: 3217199 | |
| - config_name: fr | |
| features: | |
| - name: id | |
| dtype: int64 | |
| - name: inputs | |
| dtype: string | |
| - name: targets | |
| dtype: string | |
| - name: dataset_name | |
| dtype: string | |
| - name: sub_dataset_name | |
| dtype: string | |
| - name: task_type | |
| dtype: string | |
| - name: template_id | |
| dtype: int64 | |
| - name: language | |
| dtype: string | |
| - name: split | |
| dtype: string | |
| - name: script | |
| dtype: string | |
| - name: model_version | |
| dtype: string | |
| splits: | |
| - name: train | |
| num_bytes: 2186185 | |
| num_examples: 1931 | |
| - name: test | |
| num_bytes: 639017 | |
| num_examples: 511 | |
| - name: validation | |
| num_bytes: 426885 | |
| num_examples: 350 | |
| download_size: 476338 | |
| dataset_size: 3252087 | |
| - config_name: it | |
| features: | |
| - name: id | |
| dtype: int64 | |
| - name: inputs | |
| dtype: string | |
| - name: targets | |
| dtype: string | |
| - name: dataset_name | |
| dtype: string | |
| - name: sub_dataset_name | |
| dtype: string | |
| - name: task_type | |
| dtype: string | |
| - name: template_id | |
| dtype: int64 | |
| - name: language | |
| dtype: string | |
| - name: split | |
| dtype: string | |
| - name: script | |
| dtype: string | |
| - name: model_version | |
| dtype: string | |
| splits: | |
| - name: train | |
| num_bytes: 2023988 | |
| num_examples: 1931 | |
| - name: test | |
| num_bytes: 606168 | |
| num_examples: 511 | |
| - name: validation | |
| num_bytes: 395037 | |
| num_examples: 350 | |
| download_size: 411511 | |
| dataset_size: 3025193 | |
| configs: | |
| - config_name: de | |
| data_files: | |
| - split: train | |
| path: de/train-* | |
| - split: test | |
| path: de/test-* | |
| - split: validation | |
| path: de/validation-* | |
| - config_name: en | |
| data_files: | |
| - split: train | |
| path: en/train-* | |
| - split: test | |
| path: en/test-* | |
| - split: validation | |
| path: en/validation-* | |
| - config_name: es | |
| data_files: | |
| - split: train | |
| path: es/train-* | |
| - split: test | |
| path: es/test-* | |
| - split: validation | |
| path: es/validation-* | |
| - config_name: fr | |
| data_files: | |
| - split: train | |
| path: fr/train-* | |
| - split: test | |
| path: fr/test-* | |
| - split: validation | |
| path: fr/validation-* | |
| - config_name: it | |
| data_files: | |
| - split: train | |
| path: it/train-* | |
| - split: test | |
| path: it/test-* | |
| - split: validation | |
| path: it/validation-* | |
| license: cc-by-sa-4.0 | |
| task_categories: | |
| - token-classification | |
| - text-generation | |
| language: | |
| - en | |
| - it | |
| - es | |
| - fr | |
| - de | |
| tags: | |
| - named-entity-recognition | |
| - multilingual | |
| - instruction-tuning | |
| # Multi-UNER-LLM-inst | |
| **Multi-UNER-LLM-inst** is a **multilingual** extension of **UNER-LLM-inst**, the instruction-format version of Universal NER v1 (UNER) included in the [Aya Collection](https://huggingface.co/datasets/CohereLabs/aya_collection) by CohereLabs (`templated_uner_llm` subset). | |
| It is an instruction-following Named Entity Recognition (NER) dataset covering **English, Italian, Spanish, French and German**, with aligned train/test/validation splits. | |
| ## Source dataset | |
| | Resource | Hugging Face dataset | Paper | | |
| | -------- | -------------------- | ----- | | |
| | UNER-LLM-inst in the Aya Collection (`templated_uner_llm`) | [CohereLabs/aya_collection](https://huggingface.co/datasets/CohereLabs/aya_collection/viewer/templated_uner_llm) | [Aya Dataset: An Open-Access Collection for Multilingual Instruction Tuning](https://arxiv.org/abs/2402.06619) (Singh et al., 2024) | | |
| | Universal NER instruction format | [universalner/uner_llm_instructions](https://huggingface.co/datasets/universalner/uner_llm_instructions) | [Universal NER: A Gold-Standard Multilingual Named Entity Recognition Benchmark](https://arxiv.org/abs/2311.09122) (Mayhew et al., 2023) | |
| **License of the source data:** CC BY-SA 4.0 | |
| ## How the dataset was built | |
| The English (17,617 samples) and German (999 samples) portions of UNER-LLM-inst were used as source data, for a total of 18,616 samples. | |
| - **English** (7,448): kept in English. | |
| - **Italian, Spanish, French** (2,792 each): machine-translated from distinct, non-overlapping portions of the English data. | |
| - **German** (2,792): the 999 original German samples were kept as originally available. To balance the train split with the other languages, 1,793 additional English samples were machine-translated into German. | |
| ### Translation models | |
| | Language | Model | Translated samples | | |
| |----------|-------|-------------------:| | |
| | Italian | `Mistral-Small-3.1-24B-Instruct-2503` | 2,792 | | |
| | Spanish | `Mistral-Small-3.1-24B-Instruct-2503` | 2,792 | | |
| | French | `Qwen3.5-122B-A10B-FP8` | 2,792 | | |
| | German | `Mistral-Small-3.1-24B-Instruct-2503` | 1,793 (the remaining 999 are original) | | |
| ### Pre- and post-processing | |
| - **Entity review (pre-processing):** before translation, the extracted named entities of the English source were reviewed for correctness and consistency, with manual corrections applied where needed. | |
| - **Offset adaptation (post-processing, translated samples only):** after translation, the character-level `Start`/`End` offsets were no longer valid. They were automatically recalculated by locating each entity's translated text in the corresponding translated sentence. | |
| - **Original German samples** were not modified. | |
| - **Metadata normalization (all languages):** `language` was normalized to two-letter codes, `split` was aligned with the file name, `model_version` was added. | |
| ## Dataset structure | |
| Each language is a separate configuration (`en`, `it`, `es`, `fr`, `de`) with `train`, `validation` and `test` splits. | |
| ```python | |
| from datasets import load_dataset | |
| ds = load_dataset("VillanovaAI/Multi-UNER-LLM-inst", "it", split="train") | |
| ``` | |
| ### Language and split distribution | |
| | Language | Config | Train | Validation | Test | Total | % | | |
| |----------|--------|-------:|-----------:|------:|-------:|---:| | |
| | English | `en` | 5,151 | 933 | 1,364 | 7,448 | 40% | | |
| | Italian | `it` | 1,931 | 350 | 511 | 2,792 | 15% | | |
| | Spanish | `es` | 1,931 | 350 | 511 | 2,792 | 15% | | |
| | French | `fr` | 1,931 | 350 | 511 | 2,792 | 15% | | |
| | German | `de` | 1,931 | 350 | 511 | 2,792 | 15% | | |
| | **Total**| | **12,875** | **2,333** | **3,408** | **18,616** | **100%** | | |
| ### Fields | |
| | Field | Description | | |
| |-------|-------------| | |
| | `id` | Unique id of the sample as in the source dataset | | |
| | `inputs` | Prompt with the task instruction, a one-shot example with its expected answer, and the final input sentence | | |
| | `targets` | Expected output for the final sentence, in JSON-like format | | |
| | `dataset_name` | Name of the source dataset | | |
| | `sub_dataset_name` | Name of the source sub-dataset | | |
| | `task_type` | Task type (`named-entity-recognition`) | | |
| | `template_id` | Id of the template applied, as in the source dataset (`1`) | | |
| | `language` | Two-letter language code (`en`, `it`, `es`, `fr`, `de`) | | |
| | `split` | `train`, `validation` or `test` | | |
| | `script` | Script of the language, as in the source dataset (`Latn`) | | |
| | `model_version` | Model used to translate the sample. `null` for English samples and for the original German samples | | |
| ### Entity types and output format | |
| Entities follow the UNER scheme: `PER` (person), `ORG` (organization), `LOC` (location). Nationalities are annotated neither as locations nor as organizations. | |
| `targets` contains a `"Results"` list where each entity has `TypeName`, `Text`, `Start` and `End`. | |
| `Start`/`End` are character offsets (0-based, `End` exclusive) in the sentence they refer to: the example sentence for the `Results` block inside `inputs`, and the final input sentence for `targets`. | |
| When the sentence has no entities, `targets` is `"Results": []`. | |
| ### Data instance | |
| ```json | |
| { | |
| "id": 25526, | |
| "inputs": "Please identify all the named entities mentioned in the input sentence provided below. Use only the categories: PER - person, ORG - organization, and LOC - location.\nRemember, nationalities are neither locations nor organizations, and organizations can represent other groups of people.\nPay attention to the provided example. You should only output the results in JSON format, following a similar structure to the example result provided.\n\nExample sentence and results:\n\nWhat is this Miramar?\n\n\"Results\": [\n {\n \"TypeName\": \"LOC\",\n \"Text\": \"Miramar\",\n \"Start\": 13,\n \"End\": 20\n }\n]\n\nConsidering the input sentence below, what is the output result?\n\nDoes anyone know any good restaurants in cordoba?\n", | |
| "targets": "\"Results\": [\n {\n \"TypeName\": \"LOC\",\n \"Text\": \"cordoba\",\n \"Start\": 41,\n \"End\": 48\n }\n]", | |
| "dataset_name": "UNER-LLM-inst", | |
| "sub_dataset_name": "uner-llm-inst-english", | |
| "task_type": "named-entity-recognition", | |
| "template_id": 1, | |
| "language": "en", | |
| "split": "test", | |
| "script": "Latn", | |
| "model_version": null | |
| } | |
| ``` | |
| ## Limitations | |
| - Translations are machine-generated and may contain errors or unnatural phrasing. | |
| - Entity annotations in translated samples derive from the English annotations. Entity type ambiguity (e.g. `ORG` vs `LOC` for institutions, venues or cities acting as organizations) may not transfer consistently across languages. | |
| - Offsets in translated samples are computed by exact string matching; entities that were inflected or rephrased by the translation required some manual correction. | |
| - The language distribution is deliberately unbalanced (40% English). | |
| ## Licensing and attribution | |
| This dataset is released under **CC BY-SA 4.0**. | |
| It derives from UNER-LLM-inst, the instruction-format version of Universal NER v1 included in the Aya Collection. The Aya Collection as a whole is released under Apache 2.0, but its UNER-LLM-inst component is CC BY-SA 4.0. According to the Universal NER authors, this license follows from the Universal Dependencies treebanks on which the annotations were built. | |
| Since this dataset adapts that material, it is distributed under the same license, as required by the ShareAlike clause. | |
| ## Citation | |
| If you use this dataset, please cite the Aya collection works and the original Universal NER: | |
| ```bibtex | |
| @misc{singh2024aya, | |
| title={Aya Dataset: An Open-Access Collection for Multilingual Instruction Tuning}, | |
| author={Shivalika Singh and others}, | |
| year={2024}, | |
| eprint={2402.06619}, | |
| archivePrefix={arXiv}, | |
| primaryClass={cs.CL}, | |
| url={https://arxiv.org/pdf/2402.06619} | |
| } | |
| @misc{mayhew2023universal, | |
| title={Universal NER: A Gold-Standard Multilingual Named Entity Recognition Benchmark}, | |
| author={Stephen Mayhew and Terra Blevins and Shuheng Liu and Marek Šuppa and Hila Gonen and Joseph Marvin Imperial and Börje F. Karlsson and Peiqin Lin and Nikola Ljubešić and LJ Miranda and Barbara Plank and Arij Riabi and Yuval Pinter}, | |
| year={2023}, | |
| eprint={2311.09122}, | |
| archivePrefix={arXiv}, | |
| primaryClass={cs.CL}, | |
| url={https://arxiv.org/pdf/2311.09122} | |
| } | |
| ``` |