Downloads · 30 days
15
2% of all-time downloads
nettle-ai/slovakbert-address-ner
slovakbert-address-ner is a token classification model from nettle-ai. 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.
SlovakBERT based model for named entity recognition of Slovak addresses.
Downloads · 30 days
15
2% of all-time downloads
All-time downloads
854
Public
Repo size
993 MB
Likes
1
Public
Click a slice to open those files.
.bin496 MB · 99%
From the Hugging Face model README
SlovakBERT based model for named entity recognition of Slovak addresses.
This work is a joint effort of Slovak National Competence Center for High-Performance Computing and Nettle, s.r.o., a Slovak-based start-up focusing on natural language processing, chatbots and voicebots.
The model recognizes following entities: STREET, HOUSENUMBER, MUNICIPALITY, POSTALNUMBER. It uses BIO annotation scheme and therefore together with the O label has 9 labels in total.
It is inteded to be used only on SLOVAK addresses.
The primary use is to annotate input from speech-to-text transcriptions, therefore it handles natural speech hesitations (e.g. "Ďalej", "no", "uh").
Both house number and cadastral registration number are labelled as HOUSENUMBER. Names of parts of a municipalities are also labelled as MUNICIPALITY.
The input is preprocessed so that it doesn't contain any commas! The input can be both lower case and upper case, even contain errors when a proper noun starts lowercase. The house number can have two parts separated by a slash and it can contain a letter from A to F at the end (e.g. "Mätová ulica 97/25C"). The postal number is always composed of 5 digits, but can be split into two parts by 3 and 2 digits respectively (e.g. "923 12", "84401"). The street can contain shortened parts (e.g. "Ulica J. Matúšku").
from transformers import pipeline
ner_pipeline = pipeline(task='ner', model='nettle-ai/slovakbert-address-ner')
input_sentence = "Žiškova uhm 21 85510 no Pezinok"
classifications = ner_pipeline(input_sentence)
The research results were obtained with the support of the Slovak National competence centre for HPC, the EuroCC 2 project and Slovak National Supercomputing Centre under grant agreement 101101903-EuroCC 2-DIGITAL-EUROHPC-JU-2022-NCC-01.