Spaces:
Runtime error
Runtime error
Commit
·
109a4e0
1
Parent(s):
afb2fec
Update app.py
Browse files
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."]
|