bourdoiscatie's picture
Update README.md
86a9822
metadata
language:
  - fr
license:
  - mit
size_categories:
  - 10K<n<100K
tags:
  - coreference
  - DFP
  - french prompts
annotations_creators:
  - found
language_creators:
  - found
multilinguality:
  - monolingual
source_datasets:
  - wino_x

wino_x_fr_prompt_coreference

Summary

wino_x_fr_prompt_coreference is a subset of the Dataset of French Prompts (DFP).
It contains 27,930 rows that can be used for a coreference task.
The original data (without prompts) comes from the dataset wino_x by Emelin et al. where only the French part has been kept.
A list of prompts (see below) was then applied in order to build the input and target columns and thus obtain the same format as the xP3 dataset by Muennighoff et al.

Prompts used

List

10 prompts were created for this dataset. The logic applied consists in proposing prompts in the indicative tense, in the form of tutoiement and in the form of vouvoiement.

'"'+sentence+'"\nRemplacer le "_" dans la phrase ci-dessus par la bonne option :\n- "'+option1+'"\n- "'+option2+'"',  
'"'+sentence+'"\nRemplace le "_" dans la phrase ci-dessus par la bonne option :\n- "'+option1+'"\n- "'+option2+'"',  
'"'+sentence+'"\nRemplacez le "_" dans la phrase ci-dessus par la bonne option :\n- "'+option1+'"\n- "'+option2+'"',  
'"'+sentence+'" Dans la phrase précédente, "_" fait-il référence à "'+option1+'" ou "'+option2+'" ?',  
'"'+sentence+'" À quoi le "_" dans la phrase ci-dessus fait-il référence ? "'+option1+'" ou "'+option2+'" ?',  
'"'+sentence+'" Le "_" dans la phrase ci-dessous fait référence à "'+option1+'"\n- "'+option2+'" ?',  
'Remplisser le "_" de la phrase suivante : "'+sentence+ '"\nChoix :\n- "'+option1+'"\n- "'+option2+'"\nRéponse :',  
'Remplis le "_" de la phrase suivante : "'+sentence+ '"\nChoix :\n- "'+option1+'"\n- "'+option2+'"\nRéponse :',  
'Remplissez le "_" de la phrase suivante : "'+sentence+ '"\nChoix :\n- "'+option1+'"\n- "'+option2+'"\nRéponse :',  
'Dans la phrase ci-dessous, le "_" renvoie-t-il à "'+option1+'" ou "'+option2+'" ? : '+sentence,

Features used in the prompts

In the prompt list above, option1, option2, sentence and targets have been constructed from:

wino_x = load_dataset('demelin/wino_x','lm_en_fr') 
sentence = wino_x['test'][i]['context_fr']
option1 = wino_x['test'][i]['option1_fr']
option2 = wino_x['test'][i]['option2_fr']  
targets = str(wino_x['test'][i]['answer']).replace("1",wino_x['test'][i]['option1_fr']).replace("2",wino_x['test'][i]['option2_fr'])

Splits

  • train with 27,930 samples
  • no valid split
  • no test split

How to use?

from datasets import load_dataset
dataset = load_dataset("CATIE-AQ/wino_x_fr_prompt_coreference")

Citation

Original data

@inproceedings{Emelin2021WinoXMW, title={Wino-X: Multilingual Winograd Schemas for Commonsense Reasoning and Coreference Resolution}, author={Denis Emelin and Rico Sennrich}, booktitle={EMNLP}, year={2021} }

This Dataset

@misc {centre_aquitain_des_technologies_de_l'information_et_electroniques_2023,
author = { {Centre Aquitain des Technologies de l'Information et Electroniques} },
title = { DFP (Revision 1d24c09) },
year = 2023,
url = { https://huggingface.co/datasets/CATIE-AQ/DFP },
doi = { 10.57967/hf/1200 },
publisher = { Hugging Face }
}

License

MIT