Update modules/__init__.py
Browse files- modules/__init__.py +25 -6
modules/__init__.py
CHANGED
@@ -134,10 +134,27 @@ def load_database_functions():
|
|
134 |
get_student_situation_history,
|
135 |
update_exercise_status
|
136 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
|
138 |
from .database.chat_mongo_db import store_chat_history, get_chat_history
|
139 |
|
140 |
return {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
'store_current_situation_result': store_current_situation_result,
|
142 |
'verify_storage': verify_storage,
|
143 |
'get_recent_sessions': get_recent_sessions,
|
@@ -192,12 +209,12 @@ def load_student_activities_v2_functions():
|
|
192 |
|
193 |
def load_morphosyntax_functions():
|
194 |
from .morphosyntax.morphosyntax_interface import (
|
195 |
-
|
196 |
-
get_cached_analysis,
|
197 |
-
arc_analysis_state,
|
198 |
reset_morpho_state,
|
199 |
display_original_analysis,
|
200 |
display_iteration_analysis,
|
|
|
|
|
201 |
display_morphosyntax_interface,
|
202 |
display_morphosyntax_results
|
203 |
)
|
@@ -208,14 +225,16 @@ def load_morphosyntax_functions():
|
|
208 |
)
|
209 |
|
210 |
return {
|
211 |
-
|
212 |
-
'
|
213 |
-
'arc_analysis_state': arc_analysis_state,
|
214 |
'reset_morpho_state': reset_morpho_state,
|
215 |
'display_original_analysis': display_original_analysis,
|
216 |
'display_iteration_analysis': display_iteration_analysis,
|
|
|
|
|
217 |
'display_morphosyntax_interface': display_morphosyntax_interface,
|
218 |
'display_morphosyntax_results': display_morphosyntax_results,
|
|
|
219 |
'process_morphosyntactic_input': process_morphosyntactic_input,
|
220 |
'format_analysis_results': format_analysis_results,
|
221 |
'perform_advanced_morphosyntactic_analysis': perform_advanced_morphosyntactic_analysis
|
|
|
134 |
get_student_situation_history,
|
135 |
update_exercise_status
|
136 |
)
|
137 |
+
|
138 |
+
# Importar nuevas funciones de análisis morfosintáctico iterativo
|
139 |
+
from .morphosyntax_iterative_mongo_db import (
|
140 |
+
store_student_morphosyntax_base,
|
141 |
+
store_student_morphosyntax_iteration,
|
142 |
+
get_student_morphosyntax_analysis,
|
143 |
+
update_student_morphosyntax_analysis,
|
144 |
+
delete_student_morphosyntax_analysis,
|
145 |
+
get_student_morphosyntax_data
|
146 |
+
)
|
147 |
|
148 |
from .database.chat_mongo_db import store_chat_history, get_chat_history
|
149 |
|
150 |
return {
|
151 |
+
# Nuevas funciones morfosintácticas iterativas
|
152 |
+
'store_student_morphosyntax_base': store_student_morphosyntax_base,
|
153 |
+
'store_student_morphosyntax_iteration': store_student_morphosyntax_iteration,
|
154 |
+
'get_student_morphosyntax_iterative_analysis': get_student_morphosyntax_analysis, # Renombrada para evitar conflicto
|
155 |
+
'update_student_morphosyntax_iterative': update_student_morphosyntax_analysis, # Renombrada para evitar conflicto
|
156 |
+
'delete_student_morphosyntax_iterative': delete_student_morphosyntax_analysis, # Renombrada para evitar conflicto
|
157 |
+
'get_student_morphosyntax_iterative_data': get_student_morphosyntax_data,
|
158 |
'store_current_situation_result': store_current_situation_result,
|
159 |
'verify_storage': verify_storage,
|
160 |
'get_recent_sessions': get_recent_sessions,
|
|
|
209 |
|
210 |
def load_morphosyntax_functions():
|
211 |
from .morphosyntax.morphosyntax_interface import (
|
212 |
+
initialize_arc_analysis_state,
|
|
|
|
|
213 |
reset_morpho_state,
|
214 |
display_original_analysis,
|
215 |
display_iteration_analysis,
|
216 |
+
cache_analysis_results,
|
217 |
+
get_cached_analysis,
|
218 |
display_morphosyntax_interface,
|
219 |
display_morphosyntax_results
|
220 |
)
|
|
|
225 |
)
|
226 |
|
227 |
return {
|
228 |
+
#Interface
|
229 |
+
'initialize_arc_analysis_state': initialize_arc_analysis_state,
|
|
|
230 |
'reset_morpho_state': reset_morpho_state,
|
231 |
'display_original_analysis': display_original_analysis,
|
232 |
'display_iteration_analysis': display_iteration_analysis,
|
233 |
+
'cache_analysis_results': cache_analysis_results,
|
234 |
+
'get_cached_analysis': get_cached_analysis,
|
235 |
'display_morphosyntax_interface': display_morphosyntax_interface,
|
236 |
'display_morphosyntax_results': display_morphosyntax_results,
|
237 |
+
#Process
|
238 |
'process_morphosyntactic_input': process_morphosyntactic_input,
|
239 |
'format_analysis_results': format_analysis_results,
|
240 |
'perform_advanced_morphosyntactic_analysis': perform_advanced_morphosyntactic_analysis
|