Update modules/studentact/student_activities_v2.py
Browse files
modules/studentact/student_activities_v2.py
CHANGED
@@ -77,6 +77,188 @@ def display_student_activities(username: str, lang_code: str, t: dict):
|
|
77 |
|
78 |
|
79 |
###############################################################################################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
def display_morphosyntax_activities(username: str, t: dict):
|
81 |
"""Muestra actividades de análisis morfosintáctico"""
|
82 |
try:
|
@@ -264,189 +446,6 @@ def display_chat_activities(username: str, t: dict):
|
|
264 |
except Exception as e:
|
265 |
logger.error(f"Error mostrando historial del chat: {str(e)}")
|
266 |
st.error(t.get('error_chat', 'Error al mostrar historial del chat'))
|
267 |
-
|
268 |
-
#################################################################################
|
269 |
-
|
270 |
-
def display_current_situation_activities(username: str, t: dict):
|
271 |
-
"""
|
272 |
-
Muestra análisis de situación actual junto con las recomendaciones de Claude
|
273 |
-
unificando la información de ambas colecciones.
|
274 |
-
"""
|
275 |
-
try:
|
276 |
-
# Recuperar datos de ambas colecciones
|
277 |
-
logger.info(f"Recuperando análisis de situación actual para {username}")
|
278 |
-
situation_analyses = get_current_situation_analysis(username)
|
279 |
-
|
280 |
-
logger.info(f"Recuperando recomendaciones de Claude para {username}")
|
281 |
-
claude_recommendations = get_claude_recommendations(username)
|
282 |
-
|
283 |
-
# Verificar si hay algún tipo de análisis disponible
|
284 |
-
if not situation_analyses and not claude_recommendations:
|
285 |
-
logger.info("No se encontraron análisis de situación actual ni recomendaciones")
|
286 |
-
st.info(t.get('no_current_situation', 'No hay análisis de situación actual registrados'))
|
287 |
-
return
|
288 |
-
|
289 |
-
# Crear un diccionario para indexar análisis por timestamp
|
290 |
-
logger.info("Creando índice temporal de análisis")
|
291 |
-
analyses_by_timestamp = {}
|
292 |
-
|
293 |
-
# Indexar análisis de situación actual
|
294 |
-
for analysis in situation_analyses:
|
295 |
-
if 'timestamp' in analysis:
|
296 |
-
timestamp_key = analysis['timestamp'].split('.')[0]
|
297 |
-
if timestamp_key not in analyses_by_timestamp:
|
298 |
-
analyses_by_timestamp[timestamp_key] = {'situation': analysis}
|
299 |
-
|
300 |
-
# Indexar recomendaciones de Claude
|
301 |
-
for recommendation in claude_recommendations:
|
302 |
-
if 'timestamp' in recommendation:
|
303 |
-
timestamp_key = recommendation['timestamp'].split('.')[0]
|
304 |
-
if timestamp_key in analyses_by_timestamp:
|
305 |
-
analyses_by_timestamp[timestamp_key]['recommendation'] = recommendation
|
306 |
-
else:
|
307 |
-
analyses_by_timestamp[timestamp_key] = {'recommendation': recommendation}
|
308 |
-
|
309 |
-
# Si no hay análisis después de la indexación
|
310 |
-
if not analyses_by_timestamp:
|
311 |
-
st.info(t.get('no_paired_analyses', 'No hay análisis disponibles'))
|
312 |
-
return
|
313 |
-
|
314 |
-
# Convertir a lista ordenada por timestamp (más reciente primero)
|
315 |
-
paired_analyses = sorted(
|
316 |
-
analyses_by_timestamp.items(),
|
317 |
-
key=lambda x: x[0],
|
318 |
-
reverse=True
|
319 |
-
)
|
320 |
-
|
321 |
-
logger.info(f"Procesando {len(paired_analyses)} pares de análisis")
|
322 |
-
|
323 |
-
# Mostrar cada par de análisis
|
324 |
-
for i, (timestamp_key, analysis_pair) in enumerate(paired_analyses):
|
325 |
-
try:
|
326 |
-
# Obtener datos de situación y recomendación
|
327 |
-
situation_data = analysis_pair.get('situation', {})
|
328 |
-
recommendation_data = analysis_pair.get('recommendation', {})
|
329 |
-
|
330 |
-
# Si no hay ningún dato, continuar al siguiente
|
331 |
-
if not situation_data and not recommendation_data:
|
332 |
-
continue
|
333 |
-
|
334 |
-
# Determinar qué texto mostrar
|
335 |
-
text_to_show = situation_data.get('text', recommendation_data.get('text', ''))
|
336 |
-
text_type = situation_data.get('text_type', recommendation_data.get('text_type', ''))
|
337 |
-
|
338 |
-
# Formatear fecha para mostrar
|
339 |
-
try:
|
340 |
-
timestamp_str = situation_data.get('timestamp', recommendation_data.get('timestamp', timestamp_key))
|
341 |
-
timestamp = datetime.fromisoformat(timestamp_str.replace('Z', '+00:00'))
|
342 |
-
formatted_date = timestamp.strftime("%d/%m/%Y %H:%M:%S")
|
343 |
-
except Exception as date_error:
|
344 |
-
logger.error(f"Error formateando fecha: {str(date_error)}")
|
345 |
-
formatted_date = timestamp_key
|
346 |
-
|
347 |
-
# Determinar el título del expander
|
348 |
-
title = f"{t.get('analysis_date', 'Fecha')}: {formatted_date}"
|
349 |
-
if text_type:
|
350 |
-
text_type_display = {
|
351 |
-
'academic_article': t.get('academic_article', 'Artículo académico'),
|
352 |
-
'student_essay': t.get('student_essay', 'Trabajo universitario'),
|
353 |
-
'general_communication': t.get('general_communication', 'Comunicación general')
|
354 |
-
}.get(text_type, text_type)
|
355 |
-
title += f" - {text_type_display}"
|
356 |
-
|
357 |
-
# Mostrar el análisis en un expander
|
358 |
-
with st.expander(title, expanded=False, key=f"situation_expander_{i}"):
|
359 |
-
# Mostrar texto analizado
|
360 |
-
st.subheader(t.get('analyzed_text', 'Texto analizado'))
|
361 |
-
st.text_area(
|
362 |
-
label="Texto analizado",
|
363 |
-
value=text_to_show,
|
364 |
-
height=100,
|
365 |
-
disabled=True,
|
366 |
-
key=f"situation_text_{i}",
|
367 |
-
label_visibility="hidden"
|
368 |
-
)
|
369 |
-
|
370 |
-
# Crear tabs para separar diagnóstico y recomendaciones
|
371 |
-
diagnosis_tab, recommendations_tab = st.tabs([
|
372 |
-
t.get('diagnosis_tab', 'Diagnóstico'),
|
373 |
-
t.get('recommendations_tab', 'Recomendaciones')
|
374 |
-
])
|
375 |
-
|
376 |
-
# Tab de diagnóstico
|
377 |
-
with diagnosis_tab:
|
378 |
-
if situation_data and 'metrics' in situation_data:
|
379 |
-
metrics = situation_data['metrics']
|
380 |
-
|
381 |
-
# Dividir en dos columnas
|
382 |
-
col1, col2 = st.columns(2)
|
383 |
-
|
384 |
-
# Principales métricas en formato de tarjetas
|
385 |
-
with col1:
|
386 |
-
st.subheader(t.get('key_metrics', 'Métricas clave'))
|
387 |
-
|
388 |
-
# Mostrar cada métrica principal
|
389 |
-
for j, (metric_name, metric_data) in enumerate(metrics.items()):
|
390 |
-
if isinstance(metric_data, dict) and 'normalized_score' in metric_data:
|
391 |
-
score = metric_data['normalized_score']
|
392 |
-
|
393 |
-
# Determinar color y emoji basado en la puntuación
|
394 |
-
if score < 0.5:
|
395 |
-
emoji = "🔴"
|
396 |
-
color = "#ffcccc" # light red
|
397 |
-
elif score < 0.75:
|
398 |
-
emoji = "🟡"
|
399 |
-
color = "#ffffcc" # light yellow
|
400 |
-
else:
|
401 |
-
emoji = "🟢"
|
402 |
-
color = "#ccffcc" # light green
|
403 |
-
|
404 |
-
# Mostrar la métrica con estilo
|
405 |
-
st.markdown(f"""
|
406 |
-
<div style="background-color:{color}; padding:10px; border-radius:5px; margin-bottom:10px;">
|
407 |
-
<b>{emoji} {metric_name.capitalize()}:</b> {score:.2f}
|
408 |
-
</div>
|
409 |
-
""", unsafe_allow_html=True)
|
410 |
-
|
411 |
-
# Mostrar detalles adicionales si están disponibles
|
412 |
-
with col2:
|
413 |
-
st.subheader(t.get('details', 'Detalles'))
|
414 |
-
|
415 |
-
# Mostrar detalles como texto simple
|
416 |
-
for j, (metric_name, metric_data) in enumerate(metrics.items()):
|
417 |
-
if isinstance(metric_data, dict) and 'details' in metric_data and metric_data['details']:
|
418 |
-
st.markdown(f"**{metric_name.capitalize()}**")
|
419 |
-
st.json(metric_data['details'])
|
420 |
-
else:
|
421 |
-
st.info(t.get('no_diagnosis', 'No hay datos de diagnóstico disponibles'))
|
422 |
-
|
423 |
-
# Tab de recomendaciones
|
424 |
-
with recommendations_tab:
|
425 |
-
if recommendation_data and 'recommendations' in recommendation_data:
|
426 |
-
st.markdown(f"""
|
427 |
-
<div style="padding: 20px; border-radius: 10px;
|
428 |
-
background-color: #f8f9fa; margin-bottom: 20px;">
|
429 |
-
{recommendation_data['recommendations']}
|
430 |
-
</div>
|
431 |
-
""", unsafe_allow_html=True)
|
432 |
-
elif recommendation_data and 'feedback' in recommendation_data:
|
433 |
-
st.markdown(f"""
|
434 |
-
<div style="padding: 20px; border-radius: 10px;
|
435 |
-
background-color: #f8f9fa; margin-bottom: 20px;">
|
436 |
-
{recommendation_data['feedback']}
|
437 |
-
</div>
|
438 |
-
""", unsafe_allow_html=True)
|
439 |
-
else:
|
440 |
-
st.info(t.get('no_recommendations', 'No hay recomendaciones disponibles'))
|
441 |
-
|
442 |
-
except Exception as e:
|
443 |
-
logger.error(f"Error procesando par de análisis: {str(e)}")
|
444 |
-
continue
|
445 |
-
|
446 |
-
except Exception as e:
|
447 |
-
logger.error(f"Error mostrando actividades de situación actual: {str(e)}")
|
448 |
-
st.error(t.get('error_current_situation', 'Error al mostrar análisis de situación actual'))
|
449 |
-
|
450 |
|
451 |
#################################################################################
|
452 |
def display_discourse_comparison(analysis: dict, t: dict):
|
|
|
77 |
|
78 |
|
79 |
###############################################################################################
|
80 |
+
def display_current_situation_activities(username: str, t: dict):
|
81 |
+
"""
|
82 |
+
Muestra análisis de situación actual junto con las recomendaciones de Claude
|
83 |
+
unificando la información de ambas colecciones.
|
84 |
+
"""
|
85 |
+
try:
|
86 |
+
# Recuperar datos de ambas colecciones
|
87 |
+
logger.info(f"Recuperando análisis de situación actual para {username}")
|
88 |
+
situation_analyses = get_student_current_situation(username)
|
89 |
+
|
90 |
+
logger.info(f"Recuperando recomendaciones de Claude para {username}")
|
91 |
+
claude_recommendations = get_claude_recommendations(username)
|
92 |
+
|
93 |
+
# Verificar si hay algún tipo de análisis disponible
|
94 |
+
if not situation_analyses and not claude_recommendations:
|
95 |
+
logger.info("No se encontraron análisis de situación actual ni recomendaciones")
|
96 |
+
st.info(t.get('no_current_situation', 'No hay análisis de situación actual registrados'))
|
97 |
+
return
|
98 |
+
|
99 |
+
# Crear un diccionario para indexar análisis por timestamp
|
100 |
+
logger.info("Creando índice temporal de análisis")
|
101 |
+
analyses_by_timestamp = {}
|
102 |
+
|
103 |
+
# Indexar análisis de situación actual
|
104 |
+
for analysis in situation_analyses:
|
105 |
+
if 'timestamp' in analysis:
|
106 |
+
timestamp_key = analysis['timestamp'].split('.')[0]
|
107 |
+
if timestamp_key not in analyses_by_timestamp:
|
108 |
+
analyses_by_timestamp[timestamp_key] = {'situation': analysis}
|
109 |
+
|
110 |
+
# Indexar recomendaciones de Claude
|
111 |
+
for recommendation in claude_recommendations:
|
112 |
+
if 'timestamp' in recommendation:
|
113 |
+
timestamp_key = recommendation['timestamp'].split('.')[0]
|
114 |
+
if timestamp_key in analyses_by_timestamp:
|
115 |
+
analyses_by_timestamp[timestamp_key]['recommendation'] = recommendation
|
116 |
+
else:
|
117 |
+
analyses_by_timestamp[timestamp_key] = {'recommendation': recommendation}
|
118 |
+
|
119 |
+
# Si no hay análisis después de la indexación
|
120 |
+
if not analyses_by_timestamp:
|
121 |
+
st.info(t.get('no_paired_analyses', 'No hay análisis disponibles'))
|
122 |
+
return
|
123 |
+
|
124 |
+
# Convertir a lista ordenada por timestamp (más reciente primero)
|
125 |
+
paired_analyses = sorted(
|
126 |
+
analyses_by_timestamp.items(),
|
127 |
+
key=lambda x: x[0],
|
128 |
+
reverse=True
|
129 |
+
)
|
130 |
+
|
131 |
+
logger.info(f"Procesando {len(paired_analyses)} pares de análisis")
|
132 |
+
|
133 |
+
# Mostrar cada par de análisis
|
134 |
+
for i, (timestamp_key, analysis_pair) in enumerate(paired_analyses):
|
135 |
+
try:
|
136 |
+
# Obtener datos de situación y recomendación
|
137 |
+
situation_data = analysis_pair.get('situation', {})
|
138 |
+
recommendation_data = analysis_pair.get('recommendation', {})
|
139 |
+
|
140 |
+
# Si no hay ningún dato, continuar al siguiente
|
141 |
+
if not situation_data and not recommendation_data:
|
142 |
+
continue
|
143 |
+
|
144 |
+
# Determinar qué texto mostrar
|
145 |
+
text_to_show = situation_data.get('text', recommendation_data.get('text', ''))
|
146 |
+
text_type = situation_data.get('text_type', recommendation_data.get('text_type', ''))
|
147 |
+
|
148 |
+
# Formatear fecha para mostrar
|
149 |
+
try:
|
150 |
+
timestamp_str = situation_data.get('timestamp', recommendation_data.get('timestamp', timestamp_key))
|
151 |
+
timestamp = datetime.fromisoformat(timestamp_str.replace('Z', '+00:00'))
|
152 |
+
formatted_date = timestamp.strftime("%d/%m/%Y %H:%M:%S")
|
153 |
+
except Exception as date_error:
|
154 |
+
logger.error(f"Error formateando fecha: {str(date_error)}")
|
155 |
+
formatted_date = timestamp_key
|
156 |
+
|
157 |
+
# Determinar el título del expander
|
158 |
+
title = f"{t.get('analysis_date', 'Fecha')}: {formatted_date}"
|
159 |
+
if text_type:
|
160 |
+
text_type_display = {
|
161 |
+
'academic_article': t.get('academic_article', 'Artículo académico'),
|
162 |
+
'student_essay': t.get('student_essay', 'Trabajo universitario'),
|
163 |
+
'general_communication': t.get('general_communication', 'Comunicación general')
|
164 |
+
}.get(text_type, text_type)
|
165 |
+
title += f" - {text_type_display}"
|
166 |
+
|
167 |
+
# Mostrar el análisis en un expander
|
168 |
+
with st.expander(title, expanded=False, key=f"situation_expander_{i}"):
|
169 |
+
# Mostrar texto analizado
|
170 |
+
st.subheader(t.get('analyzed_text', 'Texto analizado'))
|
171 |
+
st.text_area(
|
172 |
+
label="Texto analizado",
|
173 |
+
value=text_to_show,
|
174 |
+
height=100,
|
175 |
+
disabled=True,
|
176 |
+
key=f"situation_text_{i}",
|
177 |
+
label_visibility="hidden"
|
178 |
+
)
|
179 |
+
|
180 |
+
# Crear tabs para separar diagnóstico y recomendaciones
|
181 |
+
diagnosis_tab, recommendations_tab = st.tabs([
|
182 |
+
t.get('diagnosis_tab', 'Diagnóstico'),
|
183 |
+
t.get('recommendations_tab', 'Recomendaciones')
|
184 |
+
])
|
185 |
+
|
186 |
+
# Tab de diagnóstico
|
187 |
+
with diagnosis_tab:
|
188 |
+
if situation_data and 'metrics' in situation_data:
|
189 |
+
metrics = situation_data['metrics']
|
190 |
+
|
191 |
+
# Dividir en dos columnas
|
192 |
+
col1, col2 = st.columns(2)
|
193 |
+
|
194 |
+
# Principales métricas en formato de tarjetas
|
195 |
+
with col1:
|
196 |
+
st.subheader(t.get('key_metrics', 'Métricas clave'))
|
197 |
+
|
198 |
+
# Mostrar cada métrica principal
|
199 |
+
for j, (metric_name, metric_data) in enumerate(metrics.items()):
|
200 |
+
if isinstance(metric_data, dict) and 'normalized_score' in metric_data:
|
201 |
+
score = metric_data['normalized_score']
|
202 |
+
|
203 |
+
# Determinar color y emoji basado en la puntuación
|
204 |
+
if score < 0.5:
|
205 |
+
emoji = "🔴"
|
206 |
+
color = "#ffcccc" # light red
|
207 |
+
elif score < 0.75:
|
208 |
+
emoji = "🟡"
|
209 |
+
color = "#ffffcc" # light yellow
|
210 |
+
else:
|
211 |
+
emoji = "🟢"
|
212 |
+
color = "#ccffcc" # light green
|
213 |
+
|
214 |
+
# Mostrar la métrica con estilo
|
215 |
+
st.markdown(f"""
|
216 |
+
<div style="background-color:{color}; padding:10px; border-radius:5px; margin-bottom:10px;">
|
217 |
+
<b>{emoji} {metric_name.capitalize()}:</b> {score:.2f}
|
218 |
+
</div>
|
219 |
+
""", unsafe_allow_html=True)
|
220 |
+
|
221 |
+
# Mostrar detalles adicionales si están disponibles
|
222 |
+
with col2:
|
223 |
+
st.subheader(t.get('details', 'Detalles'))
|
224 |
+
|
225 |
+
# Mostrar detalles como texto simple
|
226 |
+
for j, (metric_name, metric_data) in enumerate(metrics.items()):
|
227 |
+
if isinstance(metric_data, dict) and 'details' in metric_data and metric_data['details']:
|
228 |
+
st.markdown(f"**{metric_name.capitalize()}**")
|
229 |
+
st.json(metric_data['details'])
|
230 |
+
else:
|
231 |
+
st.info(t.get('no_diagnosis', 'No hay datos de diagnóstico disponibles'))
|
232 |
+
|
233 |
+
# Tab de recomendaciones
|
234 |
+
with recommendations_tab:
|
235 |
+
if recommendation_data and 'recommendations' in recommendation_data:
|
236 |
+
st.markdown(f"""
|
237 |
+
<div style="padding: 20px; border-radius: 10px;
|
238 |
+
background-color: #f8f9fa; margin-bottom: 20px;">
|
239 |
+
{recommendation_data['recommendations']}
|
240 |
+
</div>
|
241 |
+
""", unsafe_allow_html=True)
|
242 |
+
elif recommendation_data and 'feedback' in recommendation_data:
|
243 |
+
st.markdown(f"""
|
244 |
+
<div style="padding: 20px; border-radius: 10px;
|
245 |
+
background-color: #f8f9fa; margin-bottom: 20px;">
|
246 |
+
{recommendation_data['feedback']}
|
247 |
+
</div>
|
248 |
+
""", unsafe_allow_html=True)
|
249 |
+
else:
|
250 |
+
st.info(t.get('no_recommendations', 'No hay recomendaciones disponibles'))
|
251 |
+
|
252 |
+
except Exception as e:
|
253 |
+
logger.error(f"Error procesando par de análisis: {str(e)}")
|
254 |
+
continue
|
255 |
+
|
256 |
+
except Exception as e:
|
257 |
+
logger.error(f"Error mostrando actividades de situación actual: {str(e)}")
|
258 |
+
st.error(t.get('error_current_situation', 'Error al mostrar análisis de situación actual'))
|
259 |
+
|
260 |
+
###############################################################################################
|
261 |
+
|
262 |
def display_morphosyntax_activities(username: str, t: dict):
|
263 |
"""Muestra actividades de análisis morfosintáctico"""
|
264 |
try:
|
|
|
446 |
except Exception as e:
|
447 |
logger.error(f"Error mostrando historial del chat: {str(e)}")
|
448 |
st.error(t.get('error_chat', 'Error al mostrar historial del chat'))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
449 |
|
450 |
#################################################################################
|
451 |
def display_discourse_comparison(analysis: dict, t: dict):
|