Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ def main():
|
|
| 21 |
raw_text = st.text_area("Your Text","Enter the Text Here")
|
| 22 |
docx = nlp(raw_text)
|
| 23 |
if st.button("Tokenize"):
|
| 24 |
-
spacy_streamlit.visualize_tokens(docx)
|
| 25 |
|
| 26 |
if choice == "Home":
|
| 27 |
st.subheader("Tokenization")
|
|
|
|
| 21 |
raw_text = st.text_area("Your Text","Enter the Text Here")
|
| 22 |
docx = nlp(raw_text)
|
| 23 |
if st.button("Tokenize"):
|
| 24 |
+
spacy_streamlit.visualize_tokens(docx,attrs = ['text','pos_','dep_','ent_type_'])
|
| 25 |
|
| 26 |
if choice == "Home":
|
| 27 |
st.subheader("Tokenization")
|