Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example de paraphrase #44

Closed
ExtReMLapin opened this issue Jun 21, 2022 · 1 comment
Closed

Example de paraphrase #44

ExtReMLapin opened this issue Jun 21, 2022 · 1 comment

Comments

@ExtReMLapin
Copy link

Bonjour,
Dans la documentation de Flaubert, il est fait mention de la possibilité de paraphraser.
Auriez-vous un exemple de code à utiliser pour, par exemple, d'une phrase en générer une dizaines de similaires ?

Merci

@formiel
Copy link
Contributor

formiel commented Nov 2, 2022

Hello @ExtReMLapin !

I'm sorry for my very late response! The paraphrasing task in FLUE (French Language Understanding Evaluation benchmark that we proposed together with FlauBERT) is a paraphrase identification task in which the model learns to distinguish whether a given pair of sentences are semantically equivalent or not. FlauBERT is pre-trained with MLM only and thus it's not suited for text generation. To do paraphrasing, I would suggest fine-tuning a pre-trained sequence-to-sequence model such as BART on a paraphrasing dataset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants