Update README.md
Browse files
README.md
CHANGED
|
@@ -21,6 +21,8 @@ The Token labels are Person, Organisation, Location, Building, Event, Product, A
|
|
| 21 |
## How to use the model
|
| 22 |
|
| 23 |
```python
|
|
|
|
|
|
|
| 24 |
def print_ner(sentences):
|
| 25 |
"""Cleaning and printing NER results
|
| 26 |
|
|
@@ -46,7 +48,6 @@ def print_ner(sentences):
|
|
| 46 |
print(f"{word[1:]} {last_entity_type}")
|
| 47 |
|
| 48 |
|
| 49 |
-
from transformers import pipeline
|
| 50 |
pipe = pipeline(model='RashidNLP/NER-Deberta')
|
| 51 |
sentence = pipe(["Elon Musk will be at SpaceX's Starbase facility in Boca Chica for the orbital launch of starship next month"])
|
| 52 |
print_ner(sentence)
|
|
|
|
| 21 |
## How to use the model
|
| 22 |
|
| 23 |
```python
|
| 24 |
+
from transformers import pipeline
|
| 25 |
+
|
| 26 |
def print_ner(sentences):
|
| 27 |
"""Cleaning and printing NER results
|
| 28 |
|
|
|
|
| 48 |
print(f"{word[1:]} {last_entity_type}")
|
| 49 |
|
| 50 |
|
|
|
|
| 51 |
pipe = pipeline(model='RashidNLP/NER-Deberta')
|
| 52 |
sentence = pipe(["Elon Musk will be at SpaceX's Starbase facility in Boca Chica for the orbital launch of starship next month"])
|
| 53 |
print_ner(sentence)
|