txlyre 1 Minggu lalu
induk
melakukan
e00987070b
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      markov.py

+ 1 - 1
markov.py

@@ -45,7 +45,7 @@ class Markov:
 
         text = orig_init_state if orig_init_state is not None else ""
         for word in words:
-            if word in "-–—" or not all(c in string.punctuation for c in word):
+            if word in "-–—" or not all(c in string.punctuation or c == "…" for c in word):
                 text += " "
 
             text += word