Downloads · 30 days
21
14% of all-time downloads
Aldo26/camembert-ner-travel
camembert-ner-travel is a token classification model from Aldo26. Use it when you need labels on individual words, such as names. The card lists the license as mit.
CamemBERT-base fine-tuned for Named Entity Recognition on French travel sentences. The model extracts departure city (LOCORIGIN) and destination city (LOCDEST) from user queries.
Downloads · 30 days
21
14% of all-time downloads
All-time downloads
148
Public
Parameters
110M
2.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt1.8 GB · 57%
From the Hugging Face model README
CamemBERT-base fine-tuned for Named Entity Recognition on French travel sentences. The model extracts departure city (LOC_ORIGIN) and destination city (LOC_DEST) from user queries.
This model is part of the Travel Order Resolver project, a pipeline that:
Base model: camembert-base
Task: Token classification (BIO tagging)
| Label | Description |
|---|---|
O | Outside any entity |
B-LOC_ORIGIN | Beginning of a departure location |
I-LOC_ORIGIN | Inside a departure location |
B-LOC_DEST | Beginning of a destination location |
I-LOC_DEST | Inside a destination location |
Synthetic dataset of French travel sentences generated from SNCF station data. Noise augmentation applied: lowercase, missing accents, typos (≈30% of samples).
Examples:
"Je veux aller de Paris à Lyon" → Paris = LOC_ORIGIN, Lyon = LOC_DEST"un billet depuis marseille pour bordeaux" → noisy variant| Hyperparameter | Value |
|---|---|
| Base model | camembert-base |
| Epochs | 3 |
| Batch size | 16 |
| Learning rate | 5e-5 |
| LR scheduler | linear |
| Warmup steps | 500 |
| Weight decay | 0.01 |
| Training runtime | ~164s |
| Metric | Value |
|---|---|
| F1 | 0.9930 |
| Precision | 0.9879 |
| Recall | 0.9981 |
| Metric | Value |
|---|---|
| F1 | 0.9921 |
| Precision | 0.9890 |
| Recall | 0.9951 |
| Run | LR | Scheduler | Epochs | F1 test |
|---|---|---|---|---|
| exp_lr2e-5_cosine | 2e-5 | cosine | 3 | 0.9918 |
| exp_lr2e-5_linear | 2e-5 | linear | 3 | 0.9930 |
| exp_lr5e-5_linear | 5e-5 | linear | 3 | 0.9930 |
lr=5e-5 converges ~2× faster than lr=2e-5 (train loss 0.057 vs 0.129 at step 1000) with identical final F1.
from transformers import pipeline
ner = pipeline(
"token-classification",
model="Aldo26/camembert-ner-travel",
aggregation_strategy="simple",
)
result = ner("Je voudrais un billet de Nantes pour Strasbourg")
# [
# {'entity_group': 'LOC_ORIGIN', 'word': 'Nantes', ...},
# {'entity_group': 'LOC_DEST', 'word': 'Strasbourg', ...}
# ]