Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -20,10 +20,10 @@ st.title("Ancient Greek Syntax Analyzer")
|
|
20 |
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 language 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 [email protected]")
|
21 |
|
22 |
st.header("Select a model:")
|
23 |
-
spacy_model = st.selectbox("", ["grc_proiel_trf","grc_proiel_lg","grc_proiel_sm","grc_perseus_trf"])
|
24 |
|
25 |
st.header("Enter text:")
|
26 |
-
text = st.text_area("","
|
27 |
|
28 |
|
29 |
config = {"punct_chars": [".", ";", "·"]}
|
|
|
20 |
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 language 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 [email protected]")
|
21 |
|
22 |
st.header("Select a model:")
|
23 |
+
spacy_model = st.selectbox("Model", ["grc_proiel_trf","grc_proiel_lg","grc_proiel_sm","grc_perseus_trf"])
|
24 |
|
25 |
st.header("Enter text:")
|
26 |
+
text = st.text_area("Greek text","φύσει μὲν οὖν αἴσθησιν ἔχοντα γίγνεται τὰ ζῷα, ἐκ δὲ ταύτης τοῖς μὲν αὐτῶν οὐκ ἐγγίγνεται μνήμη, τοῖς δʼ ἐγγίγνεται.")
|
27 |
|
28 |
|
29 |
config = {"punct_chars": [".", ";", "·"]}
|