saritha5 commited on
Commit
d481e18
·
1 Parent(s): b935e2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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)