-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fast version of German NER models #211
Comments
Good idea - we'll add some faster models for German as well. |
Hi @sscdotopen - we just released flair 0.4.0 - it includes new 'one model, many languages' NER taggers. I.e. this is a single model that can consume text in English, German, Dutch and Spanish and predict NER tags. (Also kind of works for other languages such as French.) Use like this: # load model
tagger = SequenceTagger.load('ner-multi')
# text with English and German sentences
sentence = Sentence('George Washington went to Washington . Dort traf er Thomas Jefferson .')
# predict NER tags
tagger.predict(sentence)
# print sentence with predicted tags
for entity in sentence.get_spans('ner'):
print(entity) We also include a 'fast' version for CPU inference, and a 'fast-learning' version with new, experimental continuous learning (a bit better than 'fast' and theoretically should keep improving as you use it more). # fast multilingual NER model
tagger = SequenceTagger.load('ner-multi-fast')
# fast multilingual NER model with continuous learning
tagger = SequenceTagger.load('ner-multi-fast-learn') We'd be happy to hear how they work for you! |
Thanks for this awesome package! I noticed that |
Hi @timnon thanks for sharing this example - we'll take a look! |
Hey, is there a more recent version of |
Hi,
Is there a chance that you could provide a fast version of the German NER model, similar to
ner-fast
for english?The text was updated successfully, but these errors were encountered: