Downloads · 30 days
14
1% of all-time downloads
rmihaylov/bert-base-ner-theseus-bg
bert-base-ner-theseus-bg is a token classification model from rmihaylov. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as mit.
Pretrained model on Bulgarian language using a masked language modeling (MLM) objective. It was introduced in this paper and first released in this repository. This model is cased: it does make a difference between bu…
Downloads · 30 days
14
1% of all-time downloads
All-time downloads
1.8K
Public
Repo size
1.1 GB
Likes
1
Public
Click a slice to open those files.
.bin539 MB · 98%
From the Hugging Face model README
Pretrained model on Bulgarian language using a masked language modeling (MLM) objective. It was introduced in this paper and first released in this repository. This model is cased: it does make a difference between bulgarian and Bulgarian. The training data is Bulgarian text from OSCAR, Chitanka and Wikipedia.
It was finetuned on public named-entity-recognition Bulgarian data.
Then, it was compressed via progressive module replacing.
Here is how to use this model in PyTorch:
>>> from transformers import pipeline
>>>
>>> model = pipeline(
>>> 'ner',
>>> model='rmihaylov/bert-base-ner-theseus-bg',
>>> tokenizer='rmihaylov/bert-base-ner-theseus-bg',
>>> device=0,
>>> revision=None)
>>> output = model('Здравей, аз се казвам Иван.')
>>> print(output)
[{'end': 26,
'entity': 'B-PER',
'index': 6,
'score': 0.9937722,
'start': 21,
'word': '▁Иван'}]