Rudar
Collection
Family of Slovenian information-extraction models • 1 item • Updated
How to use martinkorelic/rudar-mmbert-slv-ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="martinkorelic/rudar-mmbert-slv-ner") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("martinkorelic/rudar-mmbert-slv-ner")
model = AutoModelForTokenClassification.from_pretrained("martinkorelic/rudar-mmbert-slv-ner", device_map="auto")Slovenian named-entity recognition (NER) model — token classification over the four CoNLL entity classes. Part of the Rudar family of Slovenian information-extraction models.
sl)jhu-clsp/mmBERT-basePER, LOC, ORG, MISCfrom transformers import pipeline
ner = pipeline(
"token-classification",
model="martinkorelic/rudar-mmbert-slv-ner",
aggregation_strategy="average", # recommended — gives clean entity spans
)
ner("Predsednik vlade Robert Golob je v Ljubljani obiskal sedež podjetja Petrol .")
# [{'entity_group': 'PER', 'word': 'Robert Golob'},
# {'entity_group': 'LOC', 'word': 'Ljubljani'},
# {'entity_group': 'ORG', 'word': 'Petrol'}]
Use
aggregation_strategy="average"(or"max") —"simple"may fragment subword spans.
| Class | Description |
|---|---|
PER |
People |
LOC |
Locations |
ORG |
Organizations |
MISC |
Miscellaneous named entities |
Emitted as BIO tags (B-PER, I-PER, B-LOC, …).
Fine-tuned from jhu-clsp/mmBERT-base in two stages (a broad stage followed by a
refinement stage) on Slovenian text — on the order of ~100k samples per stage.
Base model
jhu-clsp/mmBERT-base