Update modules/ui/ui.py
Browse files- modules/ui/ui.py +7 -6
modules/ui/ui.py
CHANGED
|
@@ -500,12 +500,13 @@ def display_morphosyntax_analysis_interface(nlp_models, lang_code):
|
|
| 500 |
# Mostrar estructura de oraciones
|
| 501 |
with st.expander(t['sentence_structure'], expanded=True):
|
| 502 |
for i, sent_analysis in enumerate(advanced_analysis['sentence_structure']):
|
| 503 |
-
|
| 504 |
-
|
| 505 |
-
|
| 506 |
-
|
| 507 |
-
|
| 508 |
-
|
|
|
|
| 509 |
st.markdown(sentence_str)
|
| 510 |
|
| 511 |
# Mostrar an谩lisis de categor铆as gramaticales # Mostrar an谩lisis morfol贸gico
|
|
|
|
| 500 |
# Mostrar estructura de oraciones
|
| 501 |
with st.expander(t['sentence_structure'], expanded=True):
|
| 502 |
for i, sent_analysis in enumerate(advanced_analysis['sentence_structure']):
|
| 503 |
+
sentence_str = (
|
| 504 |
+
st.subheader(f"{t['sentence']} {i+1}")
|
| 505 |
+
st.write(f"{t['root']}: {sent_analysis['root']} ({sent_analysis['root_pos']})")
|
| 506 |
+
st.write(f"{t['subjects']}: {', '.join(sent_analysis['subjects'])}")
|
| 507 |
+
st.write(f"{t['objects']}: {', '.join(sent_analysis['objects'])}")
|
| 508 |
+
st.write(f"{t['verbs']}: {', '.join(sent_analysis['verbs'])}")
|
| 509 |
+
)
|
| 510 |
st.markdown(sentence_str)
|
| 511 |
|
| 512 |
# Mostrar an谩lisis de categor铆as gramaticales # Mostrar an谩lisis morfol贸gico
|