Downloads · 30 days
17
0% of all-time downloads
julien-c/flair-ner
flair-ner is a token classification model from julien-c. Use it when you need labels on individual words, such as names. It is set up for flair.
Imported from https://nlp.informatik.hu-berlin.de/resources/models/ner/
Downloads · 30 days
17
0% of all-time downloads
All-time downloads
35.8K
Public
Repo size
453 MB
Likes
0
Public
Click a slice to open those files.
.bin432 MB · 95%
From the Hugging Face model README
en-ner-conll03-v0.4.ptImported from https://nlp.informatik.hu-berlin.de/resources/models/ner/
from flair.data import Sentence
from flair.models import SequenceTagger
sentence = Sentence(
"My name is Julien, I currently live in Paris, I work at Hugging Face, Inc."
)
tagger = SequenceTagger.load("julien-c/flair-ner")
# predict NER tags
tagger.predict(sentence)
# print sentence with predicted tags
print(sentence.to_tagged_string())
yields the following output:
My name is Julien <S-PER> , I currently live in Paris <S-LOC> , I work at Hugging <B-LOC> Face <E-LOC> .