Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
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.
|