Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ nlp = spacy.load("en_core_web_sm")
|
|
10 |
def text_analysis(text):
|
11 |
doc = nlp(text)
|
12 |
dependency_parsing = displacy.render(doc, style="dep", page=True)
|
13 |
-
named_entity_recognition = displacy.render(doc, style="ent", page=True)
|
14 |
|
15 |
visual1 = (
|
16 |
"<div style='max-width:100%; overflow:auto'>"
|
@@ -31,7 +31,7 @@ def text_analysis(text):
|
|
31 |
|
32 |
table = pd.DataFrame(rows, columns = ["TEXT", "LEMMA","POS","TAG","DEP","SHAPE","ALPHA","STOP"])
|
33 |
|
34 |
-
return table,
|
35 |
|
36 |
|
37 |
demo = gr.Interface(
|
|
|
10 |
def text_analysis(text):
|
11 |
doc = nlp(text)
|
12 |
dependency_parsing = displacy.render(doc, style="dep", page=True)
|
13 |
+
named_entity_recognition = displacy.render(doc, style="ent",jupyter=False, page=True)
|
14 |
|
15 |
visual1 = (
|
16 |
"<div style='max-width:100%; overflow:auto'>"
|
|
|
31 |
|
32 |
table = pd.DataFrame(rows, columns = ["TEXT", "LEMMA","POS","TAG","DEP","SHAPE","ALPHA","STOP"])
|
33 |
|
34 |
+
return table, visual2, visual1
|
35 |
|
36 |
|
37 |
demo = gr.Interface(
|