Views
No views yet
| Property | Value |
|---|---|
| Base model | proxectonos/MrBERT-nos-gl |
| Task | Token classification (NER) |
| Language | Galician (gl) |
| License | Apache 2.0 |
| Tagging scheme | BIO (enamex standard) |
| Label | Description | Example |
|---|---|---|
PER | Person names | María Soliña |
ORG | Organizations | Xunta de Galicia |
LOC | Locations | Cangas do Morrazo |
MISC | Other named entities | Copa do Mundo |
B- (beginning) or I- (inside) prefix in the raw output; the aggregation_strategy="simple" pipeline setting merges these into the entity group labels above.pip install transformers torch1from transformers import pipeline, AutoTokenizer, AutoModelForTokenClassification
2
3tokenizer = AutoTokenizer.from_pretrained("proxectonos/MrBERT-nos-gl-NER")
4model = AutoModelForTokenClassification.from_pretrained("proxectonos/MrBERT-nos-gl-NER")
5
6ner = pipeline(
7 "token-classification",
8 model=model,
9 tokenizer=tokenizer,
10 aggregation_strategy="simple",
11)
12
13text = "María Soliña viviu en Cangas do Morrazo no século XVII."
14results = ner(text)
15for entity in results:
16 print(
17 f"{entity['word']:<20} [{entity['entity_group']:<10}] {entity['score']*100:.1f}%"
18 )María Soliña [PER ] 95.1%
Cangas do Morrazo [LOC ] 88.3%1while True:
2 text = input("Enter text for NER: ").strip()
3 if text.lower() in ["quit", "exit", "q"]:
4 break
5 for e in ner(text):
6 bar = "█" * int(e['score'] * 20)
7 print(f" • {e['word']:<20} [{e['entity_group']:<10}] {e['score']*100:5.1f}% {bar}")1@misc{proxectenos2026MrBERT-nos-gl-ner,
2 author = {{Proxecto Nós}},
3 title = {{MrBERT-nos-gl-NER}: Named Entity Recognition for Galician},
4 year = {2026},
5 publisher = {Hugging Face},
6 howpublished = {\url{https://huggingface.co/proxectonos/MrBERT-nosgl-NER}},
7}