txlyre vor 1 Woche
Ursprung
Commit
75d4785f4b
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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)