mirror of
https://github.com/thewesker/allanxaesthetic_ebooks.git
synced 2025-12-20 04:11:07 -05:00
hopefully fixed colon issue
This commit is contained in:
@@ -33,7 +33,7 @@ class MarkovChainer(object):
|
|||||||
|
|
||||||
def add_text(self, text):
|
def add_text(self, text):
|
||||||
text = re.sub(r'\n\s*\n/m', ".", text)
|
text = re.sub(r'\n\s*\n/m', ".", text)
|
||||||
seps = '([.!?;])'
|
seps = '([.!?;:])'
|
||||||
pieces = re.split(seps, text)
|
pieces = re.split(seps, text)
|
||||||
sentence = ""
|
sentence = ""
|
||||||
for piece in pieces:
|
for piece in pieces:
|
||||||
|
|||||||
Reference in New Issue
Block a user