saritha5 commited on
Commit
3a31f30
·
1 Parent(s): d481e18

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def prediction(raw_text):
23
  #st.markdown(displacy.render(text1,style="ent"))
24
 
25
  models = ["en_core_web_sm"]
26
- spacy_streamlit.visualize_ner(text1)
27
  #visualize_ner(text1, labels=nlp.get_pipe("ner").labels)
28
 
29
  raw_text = """Ai-Khanoum (/aɪ ˈhɑːnjuːm/, meaning Lady Moon; Uzbek: Oyxonim) is the archaeological site of a Hellenistic city in Takhar Province, Afghanistan.
 
23
  #st.markdown(displacy.render(text1,style="ent"))
24
 
25
  models = ["en_core_web_sm"]
26
+ spacy_streamlit.visualize_ner(text1,labels = word.label_)
27
  #visualize_ner(text1, labels=nlp.get_pipe("ner").labels)
28
 
29
  raw_text = """Ai-Khanoum (/aɪ ˈhɑːnjuːm/, meaning Lady Moon; Uzbek: Oyxonim) is the archaeological site of a Hellenistic city in Takhar Province, Afghanistan.