txlyre hace 1 semana
padre
commit
75d4785f4b
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      markov.py

+ 2 - 2
markov.py

@@ -63,8 +63,8 @@ class Markov:
             "",
             text,
         )
-        text = list(self.nlp(text))
-        text = map(lambda word: word.strip(), text)
+        text = self.nlp(text)
+        text = map(lambda word: str(word).strip(), text)
         text = filter(bool, text)
         text = list(text)