Update modules/semantic/semantic_interface.py
Browse files
modules/semantic/semantic_interface.py
CHANGED
@@ -1,4 +1,31 @@
|
|
1 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
def display_semantic_interface(lang_code, nlp_models, semantic_t):
|
3 |
"""
|
4 |
Interfaz para el an谩lisis sem谩ntico
|
|
|
1 |
+
#modules/semantic/semantic_interface.py
|
2 |
+
# Importaciones necesarias
|
3 |
+
import streamlit as st
|
4 |
+
from streamlit_float import *
|
5 |
+
from streamlit_antd_components import *
|
6 |
+
from streamlit.components.v1 import html
|
7 |
+
import io
|
8 |
+
from io import BytesIO
|
9 |
+
import base64
|
10 |
+
import matplotlib.pyplot as plt
|
11 |
+
import pandas as pd
|
12 |
+
import re
|
13 |
+
import logging
|
14 |
+
|
15 |
+
# Configuraci贸n del logger
|
16 |
+
logger = logging.getLogger(__name__)
|
17 |
+
|
18 |
+
# Importaciones locales
|
19 |
+
from .semantic_process import (
|
20 |
+
process_semantic_input,
|
21 |
+
format_semantic_results
|
22 |
+
)
|
23 |
+
|
24 |
+
from ..utils.widget_utils import generate_unique_key
|
25 |
+
from ..database.semantic_mongo_db import store_student_semantic_result
|
26 |
+
from ..database.semantics_export import export_user_interactions
|
27 |
+
|
28 |
+
|
29 |
def display_semantic_interface(lang_code, nlp_models, semantic_t):
|
30 |
"""
|
31 |
Interfaz para el an谩lisis sem谩ntico
|