Change example
Browse files
README.md
CHANGED
@@ -26,10 +26,11 @@ ner_pipeline = pipeline("token-classification",
|
|
26 |
aggregation_strategy="max")
|
27 |
|
28 |
# Apply it to some text
|
29 |
-
ner_pipeline("
|
30 |
|
31 |
# Output:
|
32 |
-
|
|
|
33 |
```
|
34 |
|
35 |
## Dataset Info
|
|
|
26 |
aggregation_strategy="max")
|
27 |
|
28 |
# Apply it to some text
|
29 |
+
ner_pipeline("Tuberculous is an infectious disease.")
|
30 |
|
31 |
# Output:
|
32 |
+
# [ {"entity_group": "SpecificDisease", "score": 0.99873, "word": "tuberculous", "start": 0, "end": 11},
|
33 |
+
# {"entity_group": "DiseaseClass", "score": 0.99418, "word": "infectious disease", "start": 18, "end": 36} ]
|
34 |
```
|
35 |
|
36 |
## Dataset Info
|