AIdeaText commited on
Commit
0db7797
verified
1 Parent(s): 678ba22

Update modules/morphosyntax/morphosyntax_interface.py

Browse files
modules/morphosyntax/morphosyntax_interface.py CHANGED
@@ -110,9 +110,20 @@ def display_morphosyntax_interface(lang_code, nlp_models, t):
110
  st.info(morpho_t.get('morpho_initial_message', 'Enter text to begin analysis'))
111
 
112
  def display_morphosyntax_results(result, lang_code, t):
 
 
 
 
 
 
 
 
 
 
113
  if result is None:
114
- st.warning(t['no_results']) # A帽ade esta traducci贸n a tu diccionario
115
  return
 
116
 
117
  doc = result['doc']
118
  advanced_analysis = result['advanced_analysis']
 
110
  st.info(morpho_t.get('morpho_initial_message', 'Enter text to begin analysis'))
111
 
112
  def display_morphosyntax_results(result, lang_code, t):
113
+ """
114
+ Muestra los resultados del an谩lisis morfosint谩ctico.
115
+ Args:
116
+ result: Resultado del an谩lisis
117
+ lang_code: C贸digo del idioma
118
+ t: Diccionario de traducciones
119
+ """
120
+ # Obtener el diccionario de traducciones morfosint谩cticas
121
+ morpho_t = t.get('MORPHOSYNTACTIC', {})
122
+
123
  if result is None:
124
+ st.warning(morpho_t.get('no_results', 'No results available'))
125
  return
126
+
127
 
128
  doc = result['doc']
129
  advanced_analysis = result['advanced_analysis']