Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,16 +11,16 @@ st.title('Entity Extraction')
|
|
11 |
|
12 |
def prediction(raw_text):
|
13 |
text1= NER(raw_text)
|
14 |
-
st.write("List wise NERs:")
|
15 |
-
st.write("------------------")
|
16 |
-
st.write(f"{'Text' : <10}{'NER' : >10}")
|
17 |
|
18 |
for word in text1.ents:
|
19 |
st.write(word.text,"\t\t",word.label_)
|
20 |
print()
|
21 |
st.write("------------------")
|
22 |
-
st.write("NERs in the sentence:")
|
23 |
-
st.markdown(displacy.render(text1,style="ent"))
|
24 |
|
25 |
models = ["en_core_web_sm"]
|
26 |
spacy_streamlit.visualize_ner(text1)
|
|
|
11 |
|
12 |
def prediction(raw_text):
|
13 |
text1= NER(raw_text)
|
14 |
+
#st.write("List wise NERs:")
|
15 |
+
#st.write("------------------")
|
16 |
+
#st.write(f"{'Text' : <10}{'NER' : >10}")
|
17 |
|
18 |
for word in text1.ents:
|
19 |
st.write(word.text,"\t\t",word.label_)
|
20 |
print()
|
21 |
st.write("------------------")
|
22 |
+
#st.write("NERs in the sentence:")
|
23 |
+
#st.markdown(displacy.render(text1,style="ent"))
|
24 |
|
25 |
models = ["en_core_web_sm"]
|
26 |
spacy_streamlit.visualize_ner(text1)
|