Update README.md
Browse files
README.md
CHANGED
@@ -11,9 +11,10 @@ inference: false
|
|
11 |
|
12 |
## English NER in Flair (default model)
|
13 |
|
14 |
-
This is the standard 4-class NER model for English that ships with Flair
|
15 |
|
16 |
-
F1-Score: **92,98**
|
|
|
17 |
|
18 |
Predicts 4 tags:
|
19 |
|
@@ -24,10 +25,10 @@ Predicts 4 tags:
|
|
24 |
| ORG | organization name |
|
25 |
| MISC | other name |
|
26 |
|
27 |
-
|
28 |
-
|
29 |
### Demo: How to use in Flair
|
30 |
|
|
|
|
|
31 |
```python
|
32 |
from flair.data import Sentence
|
33 |
from flair.models import SequenceTagger
|
@@ -52,12 +53,14 @@ for entity in sentence.get_spans('ner'):
|
|
52 |
|
53 |
```
|
54 |
|
55 |
-
yields the following output:
|
56 |
```
|
57 |
Span [1,2]: "George Washington" [− Labels: PER (0.9968)]
|
58 |
Span [5]: "Washington" [− Labels: LOC (0.9994)]
|
59 |
```
|
60 |
|
|
|
|
|
61 |
|
62 |
### Training: Script to train this model
|
63 |
|
|
|
11 |
|
12 |
## English NER in Flair (default model)
|
13 |
|
14 |
+
This is the standard 4-class NER model for English that ships with [Flair](https://github.com/flairNLP/flair/).
|
15 |
|
16 |
+
- F1-Score: **92,98**
|
17 |
+
- Trained on: CoNLL-03
|
18 |
|
19 |
Predicts 4 tags:
|
20 |
|
|
|
25 |
| ORG | organization name |
|
26 |
| MISC | other name |
|
27 |
|
|
|
|
|
28 |
### Demo: How to use in Flair
|
29 |
|
30 |
+
Requires: **[Flair](https://github.com/flairNLP/flair/)** (`pip install flair`)
|
31 |
+
|
32 |
```python
|
33 |
from flair.data import Sentence
|
34 |
from flair.models import SequenceTagger
|
|
|
53 |
|
54 |
```
|
55 |
|
56 |
+
This yields the following output:
|
57 |
```
|
58 |
Span [1,2]: "George Washington" [− Labels: PER (0.9968)]
|
59 |
Span [5]: "Washington" [− Labels: LOC (0.9994)]
|
60 |
```
|
61 |
|
62 |
+
Indicating that the entities "George Washington" (labeled as a person) and "Washington" (labeled as a location) are found in the sentence "George Washington went to Washington".
|
63 |
+
|
64 |
|
65 |
### Training: Script to train this model
|
66 |
|