Downloads · 30 days
7
2% of all-time downloads
sdocio/es_trf_ner_cds_xlm-large
es_trf_ner_cds_xlm-large is a token classification model from sdocio. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as gpl-3.0.
This model is a fine-tuned version of xlm-roberta-large for Named-Entity Recognition, in the domain of tourism related to the Way of Saint Jacques. It recognizes four types of entities: location (LOC), organizations (…
Downloads · 30 days
7
2% of all-time downloads
All-time downloads
361
Public
Repo size
4.5 GB
Likes
0
Public
Click a slice to open those files.
.bin2.2 GB · 99%
From the Hugging Face model README
This model is a fine-tuned version of xlm-roberta-large for Named-Entity Recognition, in the domain of tourism related to the Way of Saint Jacques. It recognizes four types of entities: location (LOC), organizations (ORG), person (PER) and miscellaneous (MISC).
You can use this model with Transformers pipeline for NER.
from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline
tokenizer = AutoTokenizer.from_pretrained("es_trf_ner_cds_xlm-large")
model = AutoModelForTokenClassification.from_pretrained("es_trf_ner_cds_xlm-large")
example = "Fue antes de llegar a Sigüeiro, en el Camino de Santiago. Si te metes en el Franco desde la Alameda, vas hacia la Catedral. Y allí precisamente es Santiago el patrón del pueblo."
ner_pipe = pipeline('ner', model=model, tokenizer=tokenizer, aggregation_strategy="simple")
for ent in ner_pipe(example):
print(ent)
ToDo
| entity | precision | recall | f1 |
|---|---|---|---|
| LOC | 0.973 | 0.983 | 0.978 |
| MISC | 0.760 | 0.788 | 0.773 |
| ORG | 0.885 | 0.701 | 0.783 |
| PER | 0.937 | 0.878 | 0.906 |
| micro avg | 0.953 | 0.958 | 0.955 |
| macro avg | 0.889 | 0.838 | 0.860 |
| weighted avg | 0.953 | 0.958 | 0.955 |
The following hyperparameters were used during training: