Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,14 +17,15 @@ def main():
|
|
17 |
st.title('Entity Extraction')
|
18 |
|
19 |
menu = ["Home","NER"]
|
20 |
-
|
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")
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
elif choice == 'NER':
|
29 |
st.subheader("Name Entity Recognition")
|
30 |
raw_text = st.text_area("Your Text","Enter the Text Here")
|
|
|
17 |
st.title('Entity Extraction')
|
18 |
|
19 |
menu = ["Home","NER"]
|
20 |
+
|
|
|
|
|
|
|
|
|
|
|
21 |
if choice == "Home":
|
22 |
st.subheader("Tokenization")
|
23 |
+
choice = st.sidebar.selectbox("Menu", menu)
|
24 |
+
raw_text = st.text_area("Your Text","Enter the Text Here")
|
25 |
+
docx = nlp(raw_text)
|
26 |
+
if st.button("Tokenize"):
|
27 |
+
spacy_streamlit.visualize_tokens(docx,attrs = ['text','pos_','dep_','ent_type_'])
|
28 |
+
|
29 |
elif choice == 'NER':
|
30 |
st.subheader("Name Entity Recognition")
|
31 |
raw_text = st.text_area("Your Text","Enter the Text Here")
|