Downloads · 30 days
17
0% of all-time downloads
julien-c/flair-de-ner
flair-de-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/de-ner/
Downloads · 30 days
17
0% of all-time downloads
All-time downloads
4.6K
Public
Repo size
1.5 GB
Likes
0
Public
Click a slice to open those files.
.bin1.5 GB · 98%
From the Hugging Face model README
de-ner-conll03-v0.4.ptImported from https://nlp.informatik.hu-berlin.de/resources/models/de-ner/
from flair.data import Sentence
from flair.models import SequenceTagger
sentence = Sentence(
"Mein Name ist Julien, ich lebe zurzeit in Paris, ich arbeite bei Hugging Face, Inc."
)
tagger = SequenceTagger.load("julien-c/flair-de-ner")
# predict NER tags
tagger.predict(sentence)
# print sentence with predicted tags
print(sentence.to_tagged_string())
yields the following output:
Mein Name ist Julien <S-PER> , ich lebe zurzeit in Paris <S-LOC> , ich arbeite bei Hugging <B-ORG> Face <E-ORG> , Inc <S-ORG> .