Downloads · 30 days
12
1% of all-time downloads
wkaminski/polish-roberta-base-v2-cposes-tagging
polish-roberta-base-v2-cposes-tagging is a token classification model from wkaminski. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as lgpl-3.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
12
1% of all-time downloads
All-time downloads
1.8K
Public
Parameters
124M
495 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors495 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of sdadas/polish-roberta-base-v2 on the nkjp1m dataset. It achieves the following results on the evaluation set:
You can find the training notebook here: https://github.com/WikKam/roberta-pos-finetuning
from transformers import pipeline
nlp = pipeline("token-classification", "wkaminski/polish-roberta-base-v2-cposes-tagging")
nlp("Ale dzisiaj leje")
This model is a coarse-part-of-speech tagger for the Polish language based on sdadas/polish-roberta-base-v2. It support 13 classes representing coarse part of speech):
{
0: 'A',
1: 'Adv',
2: 'Comp',
3: 'Conj',
4: 'Dig',
5: 'Interj',
6: 'N',
7: 'Num',
8: 'Part',
9: 'Prep',
10: 'Punct',
11: 'V',
12: 'X'
}
Tags meaning is the same as in nkjp1m dataset:
| Tag | Description in English | Description in Polish | Example in Polish |
|---|---|---|---|
| A | Adjective | przymiotnik | szybki |
| Adv | Adverb | przysłówek | szybko |
| Comp | Comparative / Complementizer | stopień porównawczy / spójnik podrzędny | lepszy / że |
| Conj | Conjunction | spójnik | i |
| Dig | Digit | cyfra | 5, 3 |
| Interj | Interjection | wykrzyknik | och! |
| N | Noun | rzeczownik | dom |
| Num | Numeral | liczebnik | jeden |
| Part | Particle | partykuła | by |
| Prep | Preposition | przyimek | w |
| Punct | Punctuation | interpunkcja | ., !, ? |
| V | Verb | czasownik | biegać |
| X | Unknown / Other | niesklasyfikowane | xxx |
Even though we have some nice tools for pos-tagging in polish (http://morfeusz.sgjp.pl/), I needed a pos tagger for polish that could be easily loaded inside the browser. Huggingface supports such functionality and that's why I created this model.
Model was trained on a half of test data of the nkjp1m dataset (~0.5 milion tokens).
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.0471 | 1.0 | 2155 | 0.0491 | 0.9896 | 0.9900 | 0.9898 | 0.9873 |
| 0.0291 | 2.0 | 4310 | 0.0467 | 0.9901 | 0.9905 | 0.9903 | 0.9884 |
| 0.0191 | 3.0 | 6465 | 0.0458 | 0.9913 | 0.9912 | 0.9913 | 0.9889 |