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