Update modules/text_analysis/semantic_analysis.py
Browse files
modules/text_analysis/semantic_analysis.py
CHANGED
@@ -15,20 +15,7 @@ from sklearn.feature_extraction.text import TfidfVectorizer
|
|
15 |
from sklearn.metrics.pairwise import cosine_similarity
|
16 |
|
17 |
# Solo configurar si no hay handlers ya configurados
|
18 |
-
|
19 |
-
# Configurar handler de consola
|
20 |
-
console_handler = logging.StreamHandler()
|
21 |
-
console_handler.setLevel(logging.INFO)
|
22 |
-
|
23 |
-
# Configurar formato
|
24 |
-
formatter = logging.Formatter(
|
25 |
-
'%(asctime)s - %(name)s - %(levelname)s - %(message)s'
|
26 |
-
)
|
27 |
-
console_handler.setFormatter(formatter)
|
28 |
-
|
29 |
-
# Agregar handler al logger
|
30 |
-
logger.addHandler(console_handler)
|
31 |
-
logger.setLevel(logging.INFO)
|
32 |
|
33 |
# 4. Importaciones locales
|
34 |
from .stopwords import (
|
|
|
15 |
from sklearn.metrics.pairwise import cosine_similarity
|
16 |
|
17 |
# Solo configurar si no hay handlers ya configurados
|
18 |
+
logger = logging.getLogger(__name__)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
# 4. Importaciones locales
|
21 |
from .stopwords import (
|