CamemBERT: a Tasty French Language Model

Louis Martin, Benjamin Muller, Pedro Javier Ortiz Suárez, Yoann Dupont, Laurent Romary +3 more
11/10/2019
1,227 citations
cs.CL

Official code: huggingface/transformers (169,409 stars, Python, Apache-2.0, PyTorch, last commit 2026-04-30).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

169,40935,271Python, DockerfileOct 29, 20187 months agoApache-2.0
audiodeep-learningdeepseekgemmaglm+14 more

Similar Papers

Cite this paper

@article{martin2019camembert,
  title  = {CamemBERT: a Tasty French Language Model},
  author = {Louis Martin and Benjamin Muller and Pedro Javier Ortiz Suárez and Yoann Dupont and Laurent Romary and Éric Villemonte de la Clergerie and Djamé Seddah and Benoît Sagot},
  year   = {2019},
  eprint = {1911.03894},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.03894}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1911.03894.svg)](https://codeofpaper.com/paper/1911.03894)

Discussion