NER / app.py
Sathiskumar's picture
Update app.py
c37549e
Raw History Blame Contribute Delete
215 Bytes
import streamlit as st
from transformers import pipeline
ner = pipeline("ner", grouped_entities=True)
text = st.text_area('enter some text to extract entities')
if text:
output = ner(text)
st.json(output)