Instructions to use MohamedDataX/camembert-person-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MohamedDataX/camembert-person-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="MohamedDataX/camembert-person-ner")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("MohamedDataX/camembert-person-ner") model = AutoModelForTokenClassification.from_pretrained("MohamedDataX/camembert-person-ner", device_map="auto") - Notebooks
- Google Colab
- Kaggle
CamemBERT - noms de personnes
Modèle fait pour le TD2 de NLP (ESGI). Pour chaque mot, il dit si c'est un nom de personne (1) ou pas (0).
Entraînement
- Base :
almanach/camembert-base - Étape 1 : MultiNERD FR (20 000 phrases, 2 epochs)
- Étape 2 : données France Inter du TD (3 epochs)
Résultats (jeu de test)
- MultiNERD FR : 99.9 % accuracy
- France Inter : 99.45 % accuracy par mot
Utilisation
from transformers import AutoModelForTokenClassification, AutoTokenizer
model = AutoModelForTokenClassification.from_pretrained("MohamedDataX/camembert-person-ner")
tokenizer = AutoTokenizer.from_pretrained("MohamedDataX/camembert-person-ner")
Le label d'un mot = le label de son 1er token.
- Downloads last month
- 75
Model tree for MohamedDataX/camembert-person-ner
Base model
almanach/camembert-base