Update README.md
Browse files
README.md
CHANGED
@@ -66,11 +66,12 @@ Developing a BioBERT-based Natural Language Processing Algorithm for Acute Myelo
|
|
66 |
|
67 |
from transformers import pipeline, AutoTokenizer, AutoModelForTokenClassification
|
68 |
|
69 |
-
tokenizer = AutoTokenizer.from_pretrained("d4data/biomedical-ner-all")
|
70 |
-
model = AutoModelForTokenClassification.from_pretrained("d4data/biomedical-ner-all")
|
71 |
|
72 |
-
|
73 |
-
|
|
|
|
|
|
|
74 |
|
75 |
</span>
|
76 |
</div>
|
|
|
66 |
|
67 |
from transformers import pipeline, AutoTokenizer, AutoModelForTokenClassification
|
68 |
|
|
|
|
|
69 |
|
70 |
+
tokenizer = AutoTokenizer.from_pretrained("pmaitra/en_biobert_ner_symptom")
|
71 |
+
model = AutoModelForTokenClassification.from_pretrained("pmaitra/en_biobert_ner_symptom")
|
72 |
+
|
73 |
+
pipe = pipeline("ner", model=model, tokenizer=tokenizer, aggregation_strategy="simple")
|
74 |
+
print(pipe("He complained of dizziness during the trip."))
|
75 |
|
76 |
</span>
|
77 |
</div>
|