saritha5 commited on
Commit
fa5b2fc
·
1 Parent(s): 3020d4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ 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(tex1, 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
+ 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.