Jacobo commited on
Commit
e0f06cd
1 Parent(s): d506925

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -21,7 +21,7 @@ st.title("Diogenet's Ancient Greek Syntax Analyzer")
21
  st.markdown("Welcome to our analyzer. Here you can parse the parts of speech (POS) and the syntactic relationships of any ancient Greek sentence. This analysis is done by our two AI models trained with transformers and the NLP library spaCy. Below, you can choose which model do you want to use (each model may produce a different analysis). Documentation about the linguistic terms used by our models to annotate your sentences can be found here. If you have any questions, please contact us at mailto:diogenet@ucsd.edu")
22
 
23
  st.header("Select a model:")
24
- spacy_model = st.selectbox("", ["grc_ud_perseus_lg","grc_ud_perseus_lge","grc_ud_perseus_dioberto","grc_ud_proiel_dioberto"])
25
 
26
  st.header("Enter text:")
27
  text = st.text_area("", "Πλάτων ὁ Περικτιόνης τὸ γένος ἀνέφερεν εἰς Σόλωνα.")
@@ -75,10 +75,4 @@ def visualize_parser(
75
  visualize_parser(doc)
76
 
77
 
78
- st.header("Tree view:")
79
-
80
- graph_dot = deplacy.dot(doc)
81
-
82
- st.graphviz_chart(graph_dot, use_container_width=True)
83
-
84
  visualize_tokens(doc, attrs=["text", "lemma_", "pos_", "dep_"], title="Table view:", key="tokens")
21
  st.markdown("Welcome to our analyzer. Here you can parse the parts of speech (POS) and the syntactic relationships of any ancient Greek sentence. This analysis is done by our two AI models trained with transformers and the NLP library spaCy. Below, you can choose which model do you want to use (each model may produce a different analysis). Documentation about the linguistic terms used by our models to annotate your sentences can be found here. If you have any questions, please contact us at mailto:diogenet@ucsd.edu")
22
 
23
  st.header("Select a model:")
24
+ spacy_model = st.selectbox("", ["grc_ud_perseus_lg","grc_ud_perseus_lge","grc_ud_proiel_lg","grc_ud_proiel_trf"])
25
 
26
  st.header("Enter text:")
27
  text = st.text_area("", "Πλάτων ὁ Περικτιόνης τὸ γένος ἀνέφερεν εἰς Σόλωνα.")
75
  visualize_parser(doc)
76
 
77
 
 
 
 
 
 
 
78
  visualize_tokens(doc, attrs=["text", "lemma_", "pos_", "dep_"], title="Table view:", key="tokens")