Skip to content

Commit

Permalink
Actualizo ejemplo en README porque en Python 3 map() devuelve un iter…
Browse files Browse the repository at this point in the history
…ador y no una lista.
  • Loading branch information
abenassi committed Oct 21, 2019
1 parent 44fb5b5 commit 3d01434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -62,7 +62,7 @@ tc = TextClassifier(
"El edificio más antiguo tiene muchos cuadros caros porque era de un multimillonario",
"El edificio más moderno tiene muchas programadoras que comen manzanas durante el almuerzo grupal"
],
ids=map(str, range(4))
ids=list(map(str, range(4)))
)

ids, distancias, palabras_comunes = tc.get_similar(
Expand Down

0 comments on commit 3d01434

Please sign in to comment.