Views
No views yet
sl)jhu-clsp/mmBERT-basePER, LOC, ORG, MISC1from transformers import pipeline
2
3ner = pipeline(
4 "token-classification",
5 model="martinkorelic/rudar-mmbert-slv-ner",
6 aggregation_strategy="average", # recommended — gives clean entity spans
7)
8
9ner("Predsednik vlade Robert Golob je v Ljubljani obiskal sedež podjetja Petrol .")
10# [{'entity_group': 'PER', 'word': 'Robert Golob'},
11# {'entity_group': 'LOC', 'word': 'Ljubljani'},
12# {'entity_group': 'ORG', 'word': 'Petrol'}]Useaggregation_strategy="average"(or"max") —"simple"may fragment subword spans.
| Class | Description |
|---|---|
PER | People |
LOC | Locations |
ORG | Organizations |
MISC | Miscellaneous named entities |
B-PER, I-PER, B-LOC, …).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.