Update README.md
Browse files
README.md
CHANGED
|
@@ -39,7 +39,7 @@ token_classifier = pipeline(
|
|
| 39 |
)
|
| 40 |
|
| 41 |
# Example text
|
| 42 |
-
text = "My name is Yeshvanth Kurapati
|
| 43 |
|
| 44 |
# Perform NER
|
| 45 |
entities = token_classifier(text)
|
|
@@ -50,9 +50,16 @@ print(entities)
|
|
| 50 |
|
| 51 |
```python
|
| 52 |
[
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
]
|
| 57 |
```
|
| 58 |
|
|
|
|
| 39 |
)
|
| 40 |
|
| 41 |
# Example text
|
| 42 |
+
text = "My name is Yeshvanth Raju Kurapati. I study at San Jose State University"
|
| 43 |
|
| 44 |
# Perform NER
|
| 45 |
entities = token_classifier(text)
|
|
|
|
| 50 |
|
| 51 |
```python
|
| 52 |
[
|
| 53 |
+
{'entity_group': 'PER',
|
| 54 |
+
'score': 0.99808735,
|
| 55 |
+
'word': 'Yeshvanth Raju Kurapati',
|
| 56 |
+
'start': 11,
|
| 57 |
+
'end': 34},
|
| 58 |
+
{'entity_group': 'ORG',
|
| 59 |
+
'score': 0.9923826,
|
| 60 |
+
'word': 'San Jose State University',
|
| 61 |
+
'start': 47,
|
| 62 |
+
'end': 72}
|
| 63 |
]
|
| 64 |
```
|
| 65 |
|