This is specifically Designed on locations. the tag is
python
1from flair.data import Sentence
2from flair.models import SequenceTagger
3# load tagger4tagger = SequenceTagger.load("Saisam/Inquirer_ner_loc")5# make example sentence6sentence = Sentence("George Washington went to Washington")7# predict NER tags8tagger.predict(sentence)9# print sentence10print(sentence)11# print predicted NER spans12print('The following NER tags are found:')13# iterate over entities and print14for entity in sentence.get_spans('ner'):15print(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}
}