Command Palette
Search for a command to run...
Louis Martin Benjamin Muller Pedro Javier Ortiz Suárez Yoann Dupont Laurent Romary Éric Villemonte de la Clergerie Djamé Seddah Benoît Sagot

Abstract
Pretrained language models are now ubiquitous in Natural Language Processing. Despite their success, most available models have either been trained on English data or on the concatenation of data in multiple languages. This makes practical use of such models --in all languages except English-- very limited. In this paper, we investigate the feasibility of training monolingual Transformer-based language models for other languages, taking French as an example and evaluating our language models on part-of-speech tagging, dependency parsing, named entity recognition and natural language inference tasks. We show that the use of web crawled data is preferable to the use of Wikipedia data. More surprisingly, we show that a relatively small web crawled dataset (4GB) leads to results that are as good as those obtained using larger datasets (130+GB). Our best performing model CamemBERT reaches or improves the state of the art in all four downstream tasks.
Code Repositories
Benchmarks
| Benchmark | Methodology | Metrics |
|---|---|---|
| dependency-parsing-on-french-gsd | CamemBERT | LAS: 92.47 UAS: 94.82 |
| dependency-parsing-on-partut | CamemBERT | LAS: 92.9 UAS: 95.21 |
| dependency-parsing-on-sequoia-treebank | CamemBERT | LAS: 94.39 UAS: 95.56 |
| dependency-parsing-on-spoken-corpus | CamemBERT | LAS: 81.37 UAS: 86.05 |
| named-entity-recognition-on-french-treebank | CamemBERT (subword masking) | F1: 87.93 Precision: 88.35 Recall: 87.46 |
| natural-language-inference-on-xnli-french | CamemBERT (large) | Accuracy: 85.7 |
| natural-language-inference-on-xnli-french | CamemBERT (base) | Accuracy: 81.2 |
| part-of-speech-tagging-on-french-gsd | CamemBERT | UPOS: 98.19 |
| part-of-speech-tagging-on-partut | CamemBERT | UPOS: 97.63 |
| part-of-speech-tagging-on-sequoia-treebank | CamemBERT | UPOS: 99.21 |
| part-of-speech-tagging-on-spoken-corpus | CamemBERT | UPOS: 96.68 |
Build AI with AI
From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.