Update utils_gdmk.py
Browse files- utils_gdmk.py +1 -5
utils_gdmk.py
CHANGED
@@ -22,13 +22,9 @@ headers = {
|
|
22 |
"Content-Type": "application/json"
|
23 |
}
|
24 |
|
25 |
-
# Sample vocabulary for concept extraction
|
26 |
-
VOCABULARY = ["algoritmos", "inteligencia artificial", "pol铆ticas p煤blicas",
|
27 |
-
"educaci贸n a distancia", "gobernanza", "educaci贸n superior"]
|
28 |
-
|
29 |
def cargar_vocabulario(archivo):
|
30 |
with open('vocabulario_postdoc.txt', "r", encoding="utf-8") as f:
|
31 |
-
|
32 |
return vocabulario
|
33 |
|
34 |
def cargar_nombres(archivo):
|
|
|
22 |
"Content-Type": "application/json"
|
23 |
}
|
24 |
|
|
|
|
|
|
|
|
|
25 |
def cargar_vocabulario(archivo):
|
26 |
with open('vocabulario_postdoc.txt', "r", encoding="utf-8") as f:
|
27 |
+
vocabulario = [line.strip() for line in f if line.strip()] # Eliminar espacios y l铆neas vac铆as
|
28 |
return vocabulario
|
29 |
|
30 |
def cargar_nombres(archivo):
|