CoolFace
Datasetpublic

CATIE-AQ/amazon_reviews_multi_fr_prompt_text_generation_from_title_of_a_review

amazon_reviews_multi_fr_prompt_text_generation_from_title_of_a_review Summary amazon_reviews_multi_fr_prompt_text_generation_from_title_of_a_review is a subset of the Dataset of French Prompts (DFP).It contains 7,560,000 rows that can be used for a text generation task.The original data (without prompts) comes from the dataset amazon_reviews_multi by Keung et al. where only the French split has been kept.A list of prompts (see below) was then applied in order to… See the full description on the dataset page: https://huggingface.co/datasets/CATIE-AQ/amazon_reviews_multi_fr_prompt_text_generation_from_title_of_a_review.

sourceHugging Faceotherupdated 1y agoView on Hugging Face
0likes32downloads
Dataset Card

amazonreviewsmultifrprompttextgenerationfromtitleofa_review

Summary

amazon_reviews_multi_fr_prompt_text_generation_from_title_of_a_review is a subset of the **Dataset of French Prompts (DFP)**. It contains 7,560,000 rows that can be used for a text generation task. The original data (without prompts) comes from the dataset amazon_reviews_multi by Keung et al. where only the French split 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

36 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.

'Rédiger un commentaire dont le titre est : "'+title+'"',
'Rédige un commentaire dont le titre est : "'+title+'"',
'Rédigez un commentaire dont le titre est : "'+title+'"',
'Rédiger un avis dont le titre est : "'+title+'"',
'Rédige un avis dont le titre est : "'+title+'"',
'Rédigez un avis dont le titre est : "'+title+'"',
'Rédiger une critique dont le titre est : "'+title+'"',
'Rédige une critique dont le titre est : "'+title+'"',
'Rédigez une critique dont le titre est : "'+title+'"',
'Rédiger une évaluation dont le titre est : "'+title+'"',
'Rédige une évaluation dont le titre est : "'+title+'"',
'Rédigez une évaluation dont le titre est : "'+title+'"',
"""Générer un commentaire d'un produit imaginaire dont le titre est : " """+title+""" "\nLe commentaire : """,
"""Génère un commentaire d'un produit imaginaire dont le titre est : " """+title+""" "\nLe commentaire : """,
"""Générez un commentaire d'un produit imaginaire dont le titre est : " """+title+""" "\nLe commentaire : """,
"""Générer un avis d'un produit imaginaire dont le titre est : " """+title+""" "\nL'avis : """,
"""Génére un avis d'un produit imaginaire dont le titre est : " """+title+""" "\nL'avis : """,
"""Générez un avis d'un produit imaginaire dont le titre est : " """+title+""" "\nL'avis : """,
"""Générer une critique d'un produit imaginaire dont le titre est : " """+title+""" "\nLa critique : """,
"""Génère une critique d'un produit imaginaire dont le titre est : " """+title+""" "\nLa critique : """,
"""Générez une critique d'un produit imaginaire dont le titre est : " """+title+""" "\nLa critique : """,
"""Générer une évaluation d'un produit imaginaire dont le titre est : " """+title+""" "\nL'évaluation : """,
"""Génère une évaluation d'un produit imaginaire dont le titre est : " """+title+""" "\nL'évaluation : """,
"""Générez une évaluation d'un produit imaginaire dont le titre est : " """+title+""" "\nL'évaluation : """,
'Titre : "'+title +'"\nEcrire un commentaire de 1 à 5 phrases sur le titre précédent : ',
'Titre : "'+title +'"\nEcris un commentaire de 1 à 5 phrases sur le titre précédent : ',
'Titre : "'+title +'"\nEcrivez un commentaire de 1 à 5 phrases sur le titre précédent : ',
'Titre : "'+title +'"\nEcrire un avis de 1 à 5 phrases sur le titre précédent : ',
'Titre : "'+title +'"\nEcris un avis de 1 à 5 phrases sur le titre précédent : ',
'Titre : "'+title +'"\nEcrivez un avis de 1 à 5 phrases sur le titre précédent : ',
'Titre : "'+title +'"\nEcrire une critique de 1 à 5 phrases sur le titre précédent : ',
'Titre : "'+title +'"\nEcris une critique de 1 à 5 phrases sur le titre précédent : ',
'Titre : "'+title +'"\nEcrivez une critique de 1 à 5 phrases sur le titre précédent : ',
'Titre : "'+title +'"\nEcrire une évaluation de 1 à 5 phrases sur le titre précédent : ',
'Titre : "'+title +'"\nEcris une évaluation de 1 à 5 phrases sur le titre précédent : ',
'Titre : "'+title +'"\nEcrivez une évaluation de 1 à 5 phrases sur le titre précédent : ',

Features used in the prompts

In the prompt list above, title and targets have been constructed from:

arm = load_dataset('amazon_reviews_multi', 'fr')
title = arm['train']['review_title'][i]
targets = arm['train']['review_body'][i]

Splits

  • —train with 7,200,000 samples
  • —valid with 180,000 samples
  • —test with 180,000 samples

How to use?

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

Citation

Original data

@inproceedings{marc_reviews,
    title={The Multilingual Amazon Reviews Corpus},
    author={Keung, Phillip and Lu, Yichao and Szarvas, György and Smith, Noah A.},
    booktitle={Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing},
    year={2020}
}

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

Amazon has licensed his dataset under its own agreement for non-commercial research usage only. This licence is quite restrictive preventing use anywhere a fee is received including paid for internships etc. A copy of the agreement can be found at the dataset webpage here: https://docs.opendata.aws/amazon-reviews-ml/license.txt

By accessing the Multilingual Amazon Reviews Corpus ("Reviews Corpus"), you agree that the Reviews Corpus is an Amazon Service subject to the Amazon.com Conditions of Use and you agree to be bound by them, with the following additional conditions:

In addition to the license rights granted under the Conditions of Use, Amazon or its content providers grant you a limited, non-exclusive, non-transferable, non-sublicensable, revocable license to access and use the Reviews Corpus for purposes of academic research. You may not resell, republish, or make any commercial use of the Reviews Corpus or its contents, including use of the Reviews Corpus for commercial research, such as research related to a funding or consultancy contract, internship, or other relationship in which the results are provided for a fee or delivered to a for-profit organization. You may not (a) link or associate content in the Reviews Corpus with any personal information (including Amazon customer accounts), or (b) attempt to determine the identity of the author of any content in the Reviews Corpus. If you violate any of the foregoing conditions, your license to access and use the Reviews Corpus will automatically terminate without prejudice to any of the other rights or remedies Amazon may have.