Jacobo commited on
Commit
fba9cb6
1 Parent(s): 500e543

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -79,11 +79,17 @@ def visualize_parser(
79
  st.write(get_svg(html), unsafe_allow_html=True)
80
 
81
 
82
- displacy.render(doc, style="ent")
83
 
84
 
85
  visualize_parser(doc)
86
 
 
 
 
 
 
 
87
 
88
  #pd.set_option('display.max_colwidth', None)
89
 
79
  st.write(get_svg(html), unsafe_allow_html=True)
80
 
81
 
82
+ d#isplacy.render(doc, style="ent")
83
 
84
 
85
  visualize_parser(doc)
86
 
87
+ spacy_streamlit.visualize_ner(
88
+ doc,
89
+ labels=["PERSON", "DATE", "GPE"],
90
+ show_table=False,
91
+ title="Persons, dates and locations",
92
+ )
93
 
94
  #pd.set_option('display.max_colwidth', None)
95