saritha5's picture
Update app.py
2fff9d3
raw
history blame
613 Bytes
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:
raw_text = raw_text.replace(word,<b style='color:orange'>" + k + "</b>")
raw_text = raw_replace("\n","<br>")
st.markdown(raw_text)