Downloads · 30 days
1.4K
84% of all-time downloads
CATIE-AQ/Moderncamembert_4entities
Moderncamembert_4entities is a token classification model from CATIE-AQ. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as mit.
We present Moderncamembert-4entities, which is a Moderncamembert-cv2-base fine-tuned for the Name Entity Recognition task for the French language on four French NER datasets for 4 entities (LOC, PER, ORG, MISC). All t…
Downloads · 30 days
1.4K
84% of all-time downloads
All-time downloads
1.7K
Public
Parameters
136M
544 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors544 MB · 100%
From the Hugging Face model README
We present Moderncamembert-4entities, which is a Moderncamembert-cv2-base fine-tuned for the Name Entity Recognition task for the French language on four French NER datasets for 4 entities (LOC, PER, ORG, MISC).
All these datasets were concatenated and cleaned into a single dataset that we called frenchNER_4entities.
There are a total of 384,773 rows, of which 328,757 are for training, 24,131 for validation and 31,885 for testing.
The evaluation was carried out using the evaluate python package.
For space reasons, we show only the F1 of the different models. You can see the full results below the table.
<table> <thead> <tr> <th><br>Model</th> <th><br>Parameters</th> <th><br>Context</th> <th><br>PER</th> <th><br>LOC</th> <th><br>ORG</th> <th><br>MISC</th> </tr> </thead> <tbody> <tr> <td rowspan="1"><br><a href="https://hf.co/Jean-Baptiste/camembert-ner">Jean-Baptiste/camembert-ner</a></td> <td><br>110M</td> <td><br>512 tokens</td> <td><br>0.971</td> <td><br>0.947</td> <td><br>0.902</td> <td><br>0.663</td> </tr> <tr> <td rowspan="1"><br><a href="https://hf.co/cmarkea/distilcamembert-base-ner">cmarkea/distilcamembert-base-ner</a></td> <td><br>67.5M</td> <td><br>512 tokens</td> <td><br>0.974</td> <td><br>0.948</td> <td><br>0.892</td> <td><br>0.658</td> </tr> <tr> <td rowspan="1"><br><a href="https://hf.co/CATIE-AQ/NERmembert-base-4entities">NERmembert-base-4entities</a></td> <td><br>110M</td> <td><br>512 tokens</td> <td><br>0.978</td> <td><br>0.958</td> <td><br>0.903</td> <td><br>0.814</td> </tr> <tr> <td rowspan="1"><br><a href="https://hf.co/CATIE-AQ/NERmembert2-4entities">NERmembert2-4entities</a></td> <td><br>111M</td> <td><br>1024 tokens</td> <td><br>0.978</td> <td><br>0.958</td> <td><br>0.901</td> <td><br>0.806</td> </tr> <tr> <td rowspan="1"><br><a href="https://huggingface.co/CATIE-AQ/NERmemberta-4entities">NERmemberta-4entities</a></td> <td><br>111M</td> <td><br>1024 tokens</td> <td><br>0.979</td> <td><br>0.961</td> <td><br>0.915</td> <td><br>0.812</td> </tr> <tr> <td rowspan="1"><br>Moderncamembert-4entities (this model)</td> <td><br>136M</td> <td><br>8192 tokens</td> <td><br>0.981</td> <td><br>0.960</td> <td><br>0.913</td> <td><br>0.811</td> </tr> <tr> <td rowspan="1"><br><a href="https://hf.co/CATIE-AQ/NERmembert-large-4entities">NERmembert-large-4entities</a></td> <td><br>336M</td> <td><br>512 tokens</td> <td><br><b>0.982</b></td> <td><br><b>0.964</b></td> <td><br><b>0.919</b></td> <td><br><b>0.834</b></td> </tr> </tbody> </table> <details> <summary>Full results</summary> <code> {'LOC': {'precision': 0.9565485362095532,<br> 'recall': 0.9639751552795031,<br> 'f1': 0.9602474864655839,<br> 'number': 54740},<br> 'MISC': {'precision': 0.8599987367357251,<br> 'recall': 0.7680873268834796,<br> 'f1': 0.8114486642728371,<br> 'number': 35453},<br> 'O': {'precision': 0.9908647492910065,<br> 'recall': 0.9941133167897094,<br> 'f1': 0.9924863747765278,<br> 'number': 805547},<br> 'ORG': {'precision': 0.9089921444091593,<br> 'recall': 0.9175031632222691,<br> 'f1': 0.913227824188741,<br> 'number': 11855},<br> 'PER': {'precision': 0.97616260010303,<br> 'recall': 0.9855785143505603,<br> 'f1': 0.9808479600959955,<br> 'number': 63447},<br> 'overall_precision': 0.9826691327460604,<br> 'overall_recall': 0.9826691327460604,<br> 'overall_f1': 0.9826691327460604,<br> 'overall_accuracy': 0.9826691327460604} </code> </details>from transformers import pipeline
ner = pipeline('token-classification', model='CATIE-AQ/Moderncamembert_4entities', tokenizer='CATIE-AQ/Moderncamembert_4entities', aggregation_strategy="simple")
result = ner(
"Le dévoilement du logo officiel des JO s'est déroulé le 21 octobre 2019 au Grand Rex. Ce nouvel emblème et cette nouvelle typographie ont été conçus par le designer Sylvain Boyer avec les agences Royalties & Ecobranding. Rond, il rassemble trois symboles : une médaille d'or, la flamme olympique et Marianne, symbolisée par un visage de femme mais privée de son bonnet phrygien caractéristique. La typographie dessinée fait référence à l'Art déco, mouvement artistique des années 1920, décennie pendant laquelle ont eu lieu pour la dernière fois les Jeux olympiques à Paris en 1924. Pour la première fois, ce logo sera unique pour les Jeux olympiques et les Jeux paralympiques."
)
print(result)
Carbon emissions were estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). The hardware, runtime, cloud provider, and compute region were utilized to estimate the carbon impact.
@misc {Moderncamembert2025,
author = { {BOURDOIS, Loïck} },
organization = { {Centre Aquitain des Technologies de l'Information et Electroniques} },
title = { Moderncamembert-4entities},
year = 2025,
url = { https://huggingface.co/CATIE-AQ/Moderncamembert-4entities },
doi = { 10.57967/hf/5202 },
publisher = { Hugging Face }
}
@misc{antoun2025modernbertdebertav3examiningarchitecture,
title={ModernBERT or DeBERTaV3? Examining Architecture and Data Influence on Transformer Encoder Models Performance},
author={Wissam Antoun and Benoît Sagot and Djamé Seddah},
year={2025},
eprint={2504.08716},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2504.08716},
}
@misc {NERmemberta2024,
author = { {BOURDOIS, Loïck} },
organization = { {Centre Aquitain des Technologies de l'Information et Electroniques} },
title = { NERmemberta-4entities},
year = 2024,
url = { https://huggingface.co/CATIE-AQ/NERmemberta-4entities },
doi = { 10.57967/hf/3640 },
publisher = { Hugging Face }
}
@misc{antoun2024camembert20smarterfrench,
title={CamemBERT 2.0: A Smarter French Language Model Aged to Perfection},
author={Wissam Antoun and Francis Kulumba and Rian Touchent and Éric de la Clergerie and Benoît Sagot and Djamé Seddah},
year={2024},
eprint={2411.08868},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2411.08868},
}
@misc {NERmembert2024,
author = { {BOURDOIS, Loïck} },
organization = { {Centre Aquitain des Technologies de l'Information et Electroniques} },
title = { NERmembert-base-3entities },
year = 2024,
url = { https://huggingface.co/CATIE-AQ/NERmembert-base-4entities },
doi = { 10.57967/hf/1752 },
publisher = { Hugging Face }
}
@inproceedings{martin2020camembert,
title={CamemBERT: a Tasty French Language Model},
author={Martin, Louis and Muller, Benjamin and Su{\'a}rez, Pedro Javier Ortiz and Dupont, Yoann and Romary, Laurent and de la Clergerie, {\'E}ric Villemonte and Seddah, Djam{\'e} and Sagot, Beno{\^\i}t},
booktitle={Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics},
year={2020}}
@misc {frenchNER2024,
author = { {BOURDOIS, Loïck} },
organization = { {Centre Aquitain des Technologies de l'Information et Electroniques} },
title = { frenchNER_4entities },
year = 2024,
url = { https://huggingface.co/CATIE-AQ/frenchNER_4entities },
doi = { 10.57967/hf/1751 },
publisher = { Hugging Face }
}
MIT