Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import spacy_streamlit
|
|
8 |
from spacy_streamlit import visualize_ner
|
9 |
import en_core_web_sm
|
10 |
|
11 |
-
nlp = spacy.load("
|
12 |
|
13 |
def main():
|
14 |
"""A simple NLP app with spacy-streamlit"""
|
@@ -30,7 +30,7 @@ def main():
|
|
30 |
st.subheader("Name Entity Recognition")
|
31 |
raw_text = st.text_area("Your Text","Enter the Text Here")
|
32 |
docx = nlp(raw_text)
|
33 |
-
spacy_streamlit.visualize_ner(docx
|
34 |
|
35 |
|
36 |
|
|
|
8 |
from spacy_streamlit import visualize_ner
|
9 |
import en_core_web_sm
|
10 |
|
11 |
+
nlp = spacy.load("en")
|
12 |
|
13 |
def main():
|
14 |
"""A simple NLP app with spacy-streamlit"""
|
|
|
30 |
st.subheader("Name Entity Recognition")
|
31 |
raw_text = st.text_area("Your Text","Enter the Text Here")
|
32 |
docx = nlp(raw_text)
|
33 |
+
spacy_streamlit.visualize_ner(docx,labels = nlp.get_pipe('ner').labels)
|
34 |
|
35 |
|
36 |
|