|
@@ -63,8 +63,8 @@ class Markov:
|
|
"",
|
|
"",
|
|
text,
|
|
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 = filter(bool, text)
|
|
text = list(text)
|
|
text = list(text)
|
|
|
|
|