txlyre 1 주 전
부모
커밋
e00987070b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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