Datasets:
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 2 new columns ({'-', '↓0;d¦'}) and 2 missing columns ({'↑0¦↓1;d¦', 'Prototype'}).
This happened while the csv dataset builder was generating data using
hf://datasets/oliat/lemmatization/spanish/ses-udpipe/training-files/es-test-ancora-ses-udp.tsv (at revision cd3b350dcc2d1d0ac7a37859fd09d4e14faf0e46), ['hf://datasets/oliat/lemmatization@cd3b350dcc2d1d0ac7a37859fd09d4e14faf0e46/spanish/ses-udpipe/training-files/es-dev-gsd-ses-udp.tsv', 'hf://datasets/oliat/lemmatization@cd3b350dcc2d1d0ac7a37859fd09d4e14faf0e46/spanish/ses-udpipe/training-files/es-test-ancora-ses-udp.tsv', 'hf://datasets/oliat/lemmatization@cd3b350dcc2d1d0ac7a37859fd09d4e14faf0e46/spanish/ses-udpipe/training-files/es-test-gsd-ses-udp.tsv', 'hf://datasets/oliat/lemmatization@cd3b350dcc2d1d0ac7a37859fd09d4e14faf0e46/spanish/ses-udpipe/training-files/es-train-gsd-ses-udp.tsv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1848, in _prepare_split_single
writer.write_table(table)
~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 784, in write_table
self._write_table(pa_table, writer_batch_size=writer_batch_size)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 795, in _write_table
pa_table = table_cast(pa_table, self._schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
-: string
↓0;d¦: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 513
to
{'Prototype': Value('string'), '↑0¦↓1;d¦': Value('string')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1850, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
...<4 lines>...
)
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 2 new columns ({'-', '↓0;d¦'}) and 2 missing columns ({'↑0¦↓1;d¦', 'Prototype'}).
This happened while the csv dataset builder was generating data using
hf://datasets/oliat/lemmatization/spanish/ses-udpipe/training-files/es-test-ancora-ses-udp.tsv (at revision cd3b350dcc2d1d0ac7a37859fd09d4e14faf0e46), ['hf://datasets/oliat/lemmatization@cd3b350dcc2d1d0ac7a37859fd09d4e14faf0e46/spanish/ses-udpipe/training-files/es-dev-gsd-ses-udp.tsv', 'hf://datasets/oliat/lemmatization@cd3b350dcc2d1d0ac7a37859fd09d4e14faf0e46/spanish/ses-udpipe/training-files/es-test-ancora-ses-udp.tsv', 'hf://datasets/oliat/lemmatization@cd3b350dcc2d1d0ac7a37859fd09d4e14faf0e46/spanish/ses-udpipe/training-files/es-test-gsd-ses-udp.tsv', 'hf://datasets/oliat/lemmatization@cd3b350dcc2d1d0ac7a37859fd09d4e14faf0e46/spanish/ses-udpipe/training-files/es-train-gsd-ses-udp.tsv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Prototype string | ↑0¦↓1;d¦ string |
|---|---|
es | ↓0;d-¦+e+r |
un | ↓0;d¦+o |
videojuego | ↓0;d¦ |
de | ↓0;d¦ |
acción | ↓0;d¦ |
, | ↓0;d¦ |
en | ↓0;d¦ |
el | ↓0;d¦ |
que | ↓0;d¦ |
la | ↓0;d+e¦- |
historia | ↓0;d¦ |
gira | ↓0;d¦ |
alrededor | ↓0;d¦ |
de | ↓0;d¦ |
Alex | ↑0¦↓1;d¦ |
Mercer | ↑0¦↓1;d¦ |
, | ↓0;d¦ |
un | ↓0;d¦+o |
personaje | ↓0;d¦ |
con | ↓0;d¦ |
superpoderes | ↓0;d¦-- |
que | ↓0;d¦ |
puede | ↓0;d→--+o¦+r |
, | ↓0;d¦ |
por | ↓0;d¦ |
ejemplo | ↓0;d¦ |
, | ↓0;d¦ |
convertir | ↓0;d¦ |
sus | ↓0;d¦- |
manos | ↓0;d¦- |
en | ↓0;d¦ |
garras | ↓0;d¦- |
afiladas | ↓0;d¦--+o |
, | ↓0;d¦ |
escudos | ↓0;d¦- |
y | ↓0;d¦ |
todo | ↓0;d¦ |
tipo | ↓0;d¦ |
de | ↓0;d¦ |
armas | ↓0;d¦- |
. | ↓0;d¦ |
Durante | ↓0;d¦ |
la | ↓0;d+e¦- |
incubación | ↓0;d¦ |
, | ↓0;d¦ |
los | ↓0;d+e¦-- |
machos | ↓0;d¦- |
forman | ↓0;d¦-+r |
bandadas | ↓0;d¦--+o |
sólo | ↓0;d¦ |
de | ↓0;d¦ |
individuos | ↓0;d¦- |
masculinos | ↓0;d¦- |
y | ↓0;d¦ |
pueden | ↓0;d→--+o¦-+r |
pasar | ↓0;d¦ |
el | ↓0;d¦ |
día | ↓0;d¦ |
a | ↓0;d¦ |
varios | ↓0;d¦ |
kilómetros | ↓0;d¦- |
de | ↓0;d¦ |
las | ↓0;d+e¦-- |
colonias | ↓0;d¦- |
. | ↓0;d¦ |
El | ↓0;d¦ |
alcalde | ↓0;d¦ |
de | ↓0;d¦ |
Alhaurín | ↑0¦↓1;d¦ |
de | ↓0;d¦ |
la | ↓0;d+e¦- |
Torre | ↑0¦↓1;d¦ |
, | ↓0;d¦ |
Joaquín | ↑0¦↓1;d¦ |
Villanova | ↑0¦↓1;d¦ |
, | ↓0;d¦ |
ha | ↓0;d¦+b+e+r |
manifestado | ↓0;d¦--+r |
su | ↓0;d¦ |
intención | ↓0;d¦ |
de | ↓0;d¦ |
acelerar | ↓0;d¦ |
las | ↓0;d+e¦-- |
gestiones | ↓0;d¦-+ó→-- |
para | ↓0;d¦ |
propiciar | ↓0;d¦ |
la | ↓0;d+e¦- |
inmediata | ↓0;d¦-+o |
ejecución | ↓0;d¦ |
de | ↓0;d¦ |
el | ↓0;d¦ |
nuevo | ↓0;d¦ |
puente | ↓0;d¦ |
sobre | ↓0;d¦ |
el | ↓0;d¦ |
arroyo | ↓0;d¦ |
de | ↓0;d¦ |
el | ↓0;d¦ |
Valle | ↑0¦↓1;d¦ |
en | ↓0;d¦ |
Dataset Details
Dataset Description
This dataset contains lemmatization data for seven languages: Basque, Czech, English, Polish, Russian, Spanish, and Turkish. For each language, the data is provided in three different Shortest Edit Script (SES) representations:
ses-udpipeses-ixapipesses-morpheus
The datasets were created for the experiments presented in Evaluating Shortest Edit Script Methods for Contextual Lemmatization (Toporkov and Agerri (2024)) and are intended for multilingual contextual lemmatization. The files are provided in a format ready for model training and can be used to fine-tune pretrained language models such as XLM-RoBERTa-large as a token classification task, where the model predicts an edit script that is subsequently applied to generate the lemma. The three SES variants encode the transformation from a surface word form to its lemma using different edit-script generation strategies, allowing the effect of lemma representation on contextual lemmatization performance to be studied across languages with different morphological profiles.
- Curated by: Olia Toporkov and Rodrigo Agerri
- Language(s): Basque (
eu), Czech (cs), English (en), Polish (pl), Russian (ru), Spanish (es), and Turkish (tr) - License: Apache-2.0
Dataset Sources
- Paper: Evaluating Shortest Edit Script Methods for Contextual Lemmatization
- Original code and resources: hitz-zentroa/ses-lemma
- Project: Multilingual Contextual Lemmatization
Uses
Direct Use
The dataset is intended for training and evaluating contextual lemmatization models that formulate lemmatization as a token classification task.
In particular, it can be used to:
- train models to predict Shortest Edit Script labels from words in context;
- compare different SES representations for contextual lemmatization;
- evaluate multilingual and language-specific pretrained language models;
- study lemmatization across languages with different morphological characteristics;
- reproduce or extend the experiments described in Toporkov and Agerri (2024).
The data can be used with multilingual pretrained encoders such as XLM-RoBERTa, as well as suitable language-specific encoder models.
Dataset Structure
The dataset is organized by language and Shortest Edit Script representation. Each SES variant contains the corresponding data used for training and evaluation. Depending on the language and experimental setting, the resources include training, development, in-domain test, and out-of-domain test data. The SES label associated with each token encodes the sequence of transformations required to convert the observed word form into its lemma.
For each of the seven languages, three SES variants are provided along with all-labels files listing the unique SES labels found in the training, development, and test corpora, and requiered to reproduce the experiments:
ses-udpipeses-ixapipesses-morpheus
The structure of the files in each ses-folder is the following:
in-domain-train-filein-domain-dev-filein-domain-test-fileout-of-domain-test-fileall-labels-file
Source Data
The experimental data originates from existing linguistically annotated corpora and treebanks used in the corresponding publication.
The in-domain datasets include:
- Spanish: GSD
- Russian: GSD
- English: English Web Treebank (EWT)
- Basque: Basque Dependency Treebank (BDT)
- Turkish: ITU-METU-Sabancı Treebank (IMST)
- Czech: Czech Academic Corpus (CAC)
- Polish: LFG corpus
The paper additionally evaluates the models on out-of-domain corpora, including resources such as AnCora, SynTagRus, GUM, Armiarma, and PUD, depending on the language. Please refer to the paper for the complete description and citations of the original corpora.
Data Collection and Processing
The original corpora provide tokenized text together with lemma annotations. For every word–lemma pair, three alternative SES representations were automatically generated:
UDPipe SES (
ses-udpipe)
Based on the lemmatization approach used in UDPipe (Straka et al., 2016). It encodes casing information separately from character-level edit operations and uses the longest common substring between the word form and lemma to identify the unchanged part.IXA pipes SES (
ses-ixapipes)
Based on the edit-script approach used in IXA pipes (Agerri et al., 2014), which in turn builds on the lemma-class representation introduced by Chrupała et al. (2008).Morpheus SES (
ses-morpheus)
Based on Morpheus (Yildiz and Tantuğ, 2019), which represents the transformation from a surface form to its lemma through character-level edit operations such as keeping, deleting, replacing, and inserting characters.
These SES labels are used as classification labels during model fine-tuning.
Annotations
The lemma annotations originate from the corresponding source corpora. The Shortest Edit Script labels provided in this dataset are automatically derived from the word-form and lemma pairs using the three SES generation methods.
Recommendations
Users comparing SES representations should keep training data, model architecture, preprocessing, and evaluation settings consistent whenever possible. For full reproducibility of the experiments, please consult the original paper and accompanying code repository.
Citation
If you use this dataset, please cite:
Toporkov, Olia and Rodrigo Agerri. 2024. “Evaluating Shortest Edit Script Methods for Contextual Lemmatization.” In Proceedings of LREC-COLING 2024, pp. 6451–6463.
BibTeX
@inproceedings{toporkov-agerri-2024-evaluating,
title = "Evaluating Shortest Edit Script Methods for Contextual Lemmatization",
author = "Toporkov, Olia and
Agerri, Rodrigo",
booktitle = "Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)",
month = may,
year = "2024",
address = "Torino, Italia",
publisher = "ELRA and ICCL",
url = "https://aclanthology.org/2024.lrec-main.572/",
pages = "6451--6463"
}
More Information
For additional information about the SES implementations, experimental settings, model configurations, and evaluation results, see:
Dataset Card Contact
For questions, bug reports, or issues related to the dataset, please open an issue in the associated GitHub repository.
- Downloads last month
- 12