Update README.md
Browse files
README.md
CHANGED
|
@@ -18,6 +18,7 @@ widget:
|
|
| 18 |
### Demo: How to use in Flair
|
| 19 |
Requires:
|
| 20 |
- **[Flair](https://github.com/flairNLP/flair/)** (`pip install flair`)
|
|
|
|
| 21 |
```python
|
| 22 |
from flair.data import Sentence
|
| 23 |
from flair.models import SequenceTagger
|
|
@@ -34,4 +35,4 @@ print('The following NER tags are found:')
|
|
| 34 |
# iterate over entities and print
|
| 35 |
for entity in sentence.get_spans('ner'):
|
| 36 |
print(entity)
|
| 37 |
-
```
|
|
|
|
| 18 |
### Demo: How to use in Flair
|
| 19 |
Requires:
|
| 20 |
- **[Flair](https://github.com/flairNLP/flair/)** (`pip install flair`)
|
| 21 |
+
|
| 22 |
```python
|
| 23 |
from flair.data import Sentence
|
| 24 |
from flair.models import SequenceTagger
|
|
|
|
| 35 |
# iterate over entities and print
|
| 36 |
for entity in sentence.get_spans('ner'):
|
| 37 |
print(entity)
|
| 38 |
+
```
|