pmaitra commited on
Commit
19b367a
1 Parent(s): 9588289

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -4
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
- pipe = pipeline("ner", model=model, tokenizer=tokenizer, aggregation_strategy="simple") # pass device=0 if using gpu
73
- pipe("""The patient reported no recurrence of palpitations at follow-up 6 months after the ablation.""")
 
 
 
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>