From 8e818b6c17f73e71a5b2c200bb96da3e50b6a4d8 Mon Sep 17 00:00:00 2001 From: ana mertens Date: Wed, 2 Jun 2021 16:46:08 +0200 Subject: [PATCH] small changes to filepath --- scripts/medialab.py | 3 ++- scripts/paseo.py | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/medialab.py b/scripts/medialab.py index 1269209..2718cff 100644 --- a/scripts/medialab.py +++ b/scripts/medialab.py @@ -7,6 +7,7 @@ Created on Fri May 28 17:00:51 2021 #NECESITAS INSTALAR: # pip install -U spacy # python -m spacy download en_core_web_sm +# python -m spacy download en_core_web_sm #IMPORTAMOS MÓDULOS________________________________________________________ @@ -84,4 +85,4 @@ def crear_camino(nombre_archivo, palabra_inicial): return camino(palabra_inicial, palabras_arboles, palabras_camino) #EJECUCIÓN__________________________________________________________________ -print(crear_camino('emilia_prueba.txt', 'un')) \ No newline at end of file +print(crear_camino('../data/emilia_prueba.txt', 'un')) \ No newline at end of file diff --git a/scripts/paseo.py b/scripts/paseo.py index ade3268..a083243 100644 --- a/scripts/paseo.py +++ b/scripts/paseo.py @@ -67,10 +67,10 @@ def crear_camino(nombre_archivo, palabra_inicial): trees = load_trees_from_json() shuffle(trees) - print("Starting to read text") + #print("Starting to read text") (palabras_arboles, palabras_camino) = crear_base_datos(nombre_archivo) - print("Amount of tree words: ", len(palabras_arboles)) + #print("Amount of tree words: ", len(palabras_arboles)) return path(palabra_inicial, palabras_arboles, palabras_camino, trees) @@ -86,5 +86,3 @@ for step in path: print(step[0]) print(step[1]['properties']['NOMBRE_COMUN'], ' en ', step[1]['properties']['MINTDIRECCIONAUX']) -# for tree in trees[:10]: -# print(tree['properties']['NOMBRE_COMUN'], ' en ', tree['properties']['MINTDIRECCIONAUX'])