Downloads · 30 days
24
35% of all-time downloads
Crysy-rthomas/T-AIA-CamemBERT-NER-V2
T-AIA-CamemBERT-NER-V2 is a machine learning model from Crysy-rthomas. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This model is a fine-tuned version of the cmarkea/distilcamembert-base-ner, adapted for Named Entity Recognition (NER) on French datasets. It is a lighter variant of CamemBERT, which is specifically optimized for NER…
Downloads · 30 days
24
35% of all-time downloads
All-time downloads
69
Public
Parameters
67.5M
271 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors270 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of the cmarkea/distilcamembert-base-ner, adapted for Named Entity Recognition (NER) on French datasets. It is a lighter variant of CamemBERT, which is specifically optimized for NER tasks involving entities like locations, organizations, persons, and other miscellaneous entities in French texts.
CamembertForTokenClassificationThis model is fine-tuned for Named Entity Recognition (NER) tasks, identifying and classifying entities such as:
Given a sentence such as "Je veux aller de Paris à Lyon", the model will detect and label:
Paris as LOCLyon as LOCThe model uses the following entity labels:
O: Outside any named entityB-START: Beginning of a named entity (start location)I-START: Inside a named entity (start location)B-END: Beginning of a named entity (end location)I-END: Inside a named entity (end location)The model was fine-tuned using a French NER dataset of travel queries, including phrases like "Je veux aller de Paris à Lyon" to simulate common transportation-related interactions. The dataset contains named entity labels for city and station names.
The tokenizer is based on the pre-trained CamemBERT tokenizer, adapted for the specific entity-labeling task. It uses subword tokenization based on the BPE (Byte-Pair Encoding) approach, which splits words into smaller units.
Tokenizer special settings:
You can load and use this model with Hugging Face’s transformers library as follows:
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("Crysy-rthomas/T-AIA-CamemBERT-NER-V2")
model = AutoModelForTokenClassification.from_pretrained("Crysy-rthomas/T-AIA-CamemBERT-NER-V2")
text = "Je veux aller de Paris à Lyon"
tokens = tokenizer(text, return_tensors="pt")
outputs = model(**tokens)
This model is released under the Apache 2.0 License.