abhibisht89 commited on
Commit
109a4e0
·
1 Parent(s): afb2fec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -25,6 +25,7 @@ def get_med7_ent(text):
25
  # [(ent.text, ent.label_) for ent in doc.ents]
26
 
27
  html = displacy.render(doc, style="ent", jupyter=True, options=options)
 
28
  return html
29
 
30
  exp=["A patient was prescribed Magnesium hydroxide 400mg/5ml suspension PO of total 30ml bid for the next 5 days."]
 
25
  # [(ent.text, ent.label_) for ent in doc.ents]
26
 
27
  html = displacy.render(doc, style="ent", jupyter=True, options=options)
28
+ print([(ent.text, ent.label_) for ent in doc.ents])
29
  return html
30
 
31
  exp=["A patient was prescribed Magnesium hydroxide 400mg/5ml suspension PO of total 30ml bid for the next 5 days."]