txlyre 1 hafta önce
ebeveyn
işleme
75d4785f4b
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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)