Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,6 @@ def main():
|
|
21 |
|
22 |
if choice == "Home":
|
23 |
st.subheader("Tokenization")
|
24 |
-
|
25 |
raw_text = st.text_area("Your Text","Enter the Text Here")
|
26 |
docx = nlp(raw_text)
|
27 |
if st.button("Tokenize"):
|
@@ -31,7 +30,7 @@ def main():
|
|
31 |
st.subheader("Name Entity Recognition")
|
32 |
raw_text = st.text_area("Your Text","Enter the Text Here")
|
33 |
docx = nlp(raw_text)
|
34 |
-
spacy_streamlit.visualize_ner(docx
|
35 |
|
36 |
|
37 |
|
|
|
21 |
|
22 |
if choice == "Home":
|
23 |
st.subheader("Tokenization")
|
|
|
24 |
raw_text = st.text_area("Your Text","Enter the Text Here")
|
25 |
docx = nlp(raw_text)
|
26 |
if st.button("Tokenize"):
|
|
|
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 |
|