Views
No views yet
| Property | Value |
|---|---|
| Base model | proxectonos/MrBERT-nos-gl |
| Task | Token classification (POS tagging) |
| Language | Galician (gl) |
| License | Apache 2.0 |
| Tagset | EAGLES (FreeLing/CTAG-compatible morphosyntactic tags) |
| Code | Category | Example tag | Decoded |
|---|---|---|---|
A | Adjective | AQ0MS0 | Qualitative, masculine, singular |
C | Conjunction | CC / CS | Coordinating / Subordinating |
D | Determiner | DA0MS0 | Article, masculine, singular |
F | Punctuation | Fp / Fc | Period / Comma |
I | Interjection | I | Interjection |
N | Noun | NCMS0 | Common, masculine, singular |
P | Pronoun | PP3MS | Personal, 3rd person, masc., sing. |
R | Adverb | RG / RN | General / Negative |
S | Adposition | SPS00 | Preposition, simple |
V | Verb | VMIP3S0 | Main, indicative, present, 3rd sing. |
W | Date/Time | W | Temporal expression |
Z | Numeral | Z | Number or quantity |
VIS3S00 = V (verb) + I (main) + S (past/preterite) + 3 (3rd person) + S (singular) + 00 (unspecified gender/unused).0 to mark attributes that are not applicable or unspecified for a given form.pip install transformers torch1from transformers import pipeline, AutoTokenizer, AutoModelForTokenClassification
2
3tokenizer = AutoTokenizer.from_pretrained("proxectonos/MrBERT-nos-gl-POS")
4model = AutoModelForTokenClassification.from_pretrained("proxectonos/MrBERT-nos-gl-POS")
5pos_tagger = pipeline(
6 "token-classification",
7 model=model,
8 tokenizer=tokenizer,
9 aggregation_strategy="simple",
10)
11
12text = "O gato negro durmiu tranquilamente sobre o sofá vermello."
13results = pos_tagger(text)
14
15for result in results:
16 print(
17 f"{result['word']:<20} [{result['entity_group']:<10}] {result['score']*100:.1f}%"
18 )Enter text for POS tagging: O gato negro durmiu tranquilamente sobre o sofá vermello.
O [GMS ] 99.4%
gato [NCMS0 ] 99.9%
negro [A0MS ] 88.7%
durmiu [VIS3S00 ] 95.3%
tranquilamente [R0 ] 99.8%
sobre [S ] 100.0%
o [GMS ] 99.7%
sofá [NCMS0 ] 92.1%
vermello [A0MS ] 85.5% 1while True:
2 text = input("Enter text for POS tagging: ").strip()
3 if text.lower() in ["quit", "exit", "q"]:
4 break
5 results = pos_tagger(text)
6 for r in results:
7 bar = "█" * int(r['score'] * 20)
8 print(f" • {r['word']:<20} [{r['entity_group']:<10}] {r['score']*100:5.1f}% {bar}")1@misc{proxectenos2026MrBERT-nos-gl-pos,
2 author = {{Proxecto Nós}},
3 title = {{MrBERT-nos-gl-POS}: Part-of-Speech Tagging for Galician},
4 year = {2026},
5 publisher = {Hugging Face},
6 howpublished = {\url{https://huggingface.co/proxectonos/MrBERT-nos-gl-POS}},
7}