Downloads · 30 days
2
0% of all-time downloads
Saisam/Inquirer_ner_loc
Inquirer_ner_loc is a machine learning model from Saisam. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for flair.
This is specifically Designed on locations. the tag is <unk
Downloads · 30 days
2
0% of all-time downloads
All-time downloads
2K
Public
Repo size
2.3 GB
Likes
0
Public
Click a slice to open those files.
.bin2.3 GB · 100%
From the Hugging Face model README
This is specifically Designed on locations. the tag is <unk>
from flair.data import Sentence
from flair.models import SequenceTagger
# load tagger
tagger = SequenceTagger.load("Saisam/Inquirer_ner_loc")
# make example sentence
sentence = Sentence("George Washington went to Washington")
# predict NER tags
tagger.predict(sentence)
# print sentence
print(sentence)
# print predicted NER spans
print('The following NER tags are found:')
# iterate over entities and print
for entity in sentence.get_spans('ner'):
print(entity)
@inproceedings{akbik2018coling,
title={Contextual String Embeddings for Sequence Labeling},
author={Akbik, Alan and Blythe, Duncan and Vollgraf, Roland},
booktitle = {{COLING} 2018, 27th International Conference on Computational Linguistics},
pages = {1638--1649},
year = {2018}
}