Spaces:
Runtime error
Runtime error
File size: 786 Bytes
324bed5 a988da7 df13e11 a988da7 4e870ab a601f8c 7632f29 4e870ab a601f8c 522f5e5 a601f8c a988da7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
import streamlit as st
import spacy
from spacy import displacy
import en_core_web_sm
NER = spacy.load("en_core_web_sm")
st.title('Entity Extraction')
raw_text="The Indian Space Research Organisation or is the national space agency of India, headquartered in Bengaluru. It operates under Department of Space which is directly overseen by the Prime Minister of India while Chairman of ISRO acts as executive of DOS as well."
text1= NER(raw_text)
for word in text1.ents:
st.write(word.text,word.label_)
import local_css
local_css("style.css")
t = "<div>raw_text <span class='highlight blue'>word.text <span class='bold'>yo</span> <span class='bold'>Name</span></span></div>"
st.write(t, unsafe_allow_html=True)
#st. write(displacy.render(text1,style="ent",jupyter=True))
|