saritha5 commited on
Commit
4d53264
·
1 Parent(s): fa5b2fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -18,7 +18,10 @@ def prediction(raw_text):
18
  st.write("------------------")
19
  st.write("NERs in the sentence:")
20
  st.markdown(displacy.render(text1,style="ent"))
21
- visualize_ner(text1, labels=nlp.get_pipe("ner").labels)
 
 
 
22
 
23
  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.
24
  The city, whose original name is unknown,[a] was probably founded by an early ruler of the Seleucid Empire and served as a military and economic centre for the rulers of the Greco-Bactrian Kingdom until its destruction c. 145 BC.
 
18
  st.write("------------------")
19
  st.write("NERs in the sentence:")
20
  st.markdown(displacy.render(text1,style="ent"))
21
+
22
+ models = "en_core_web_sm"
23
+ spacy_streamlit.visualize(models, text1)
24
+ #visualize_ner(text1, labels=nlp.get_pipe("ner").labels)
25
 
26
  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.
27
  The city, whose original name is unknown,[a] was probably founded by an early ruler of the Seleucid Empire and served as a military and economic centre for the rulers of the Greco-Bactrian Kingdom until its destruction c. 145 BC.