|
|
|
@ -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'])
|
|
|
|
|