initial commit
Browse files
README.md
CHANGED
@@ -13,7 +13,7 @@ inference: false
|
|
13 |
|
14 |
This is the large 4-class NER model for German that ships with [Flair](https://github.com/flairNLP/flair/).
|
15 |
|
16 |
-
F1-Score: **
|
17 |
|
18 |
**! This model only works with Flair version 0.8 (will be released in the next few days) !**
|
19 |
|
@@ -42,7 +42,7 @@ from flair.models import SequenceTagger
|
|
42 |
tagger = SequenceTagger.load("flair/ner-german-large")
|
43 |
|
44 |
# make example sentence
|
45 |
-
sentence = Sentence("George Washington
|
46 |
|
47 |
# predict NER tags
|
48 |
tagger.predict(sentence)
|
@@ -64,7 +64,7 @@ Span [1,2]: "George Washington" [− Labels: PER (1.0)]
|
|
64 |
Span [5]: "Washington" [− Labels: LOC (1.0)]
|
65 |
```
|
66 |
|
67 |
-
So, the entities "*George Washington*" (labeled as a **person**) and "*Washington*" (labeled as a **location**) are found in the sentence "*George Washington
|
68 |
|
69 |
|
70 |
---
|
|
|
13 |
|
14 |
This is the large 4-class NER model for German that ships with [Flair](https://github.com/flairNLP/flair/).
|
15 |
|
16 |
+
F1-Score: **92,31** (CoNLL-03 German revised)
|
17 |
|
18 |
**! This model only works with Flair version 0.8 (will be released in the next few days) !**
|
19 |
|
|
|
42 |
tagger = SequenceTagger.load("flair/ner-german-large")
|
43 |
|
44 |
# make example sentence
|
45 |
+
sentence = Sentence("George Washington ging nach Washington")
|
46 |
|
47 |
# predict NER tags
|
48 |
tagger.predict(sentence)
|
|
|
64 |
Span [5]: "Washington" [− Labels: LOC (1.0)]
|
65 |
```
|
66 |
|
67 |
+
So, the entities "*George Washington*" (labeled as a **person**) and "*Washington*" (labeled as a **location**) are found in the sentence "*George Washington ging nach Washington*".
|
68 |
|
69 |
|
70 |
---
|