|
|
|
+ text = re.sub(r"(?:^| )?((\.{2,})|(\!{2,})|(\?{2,})|([.?!,:;\(\)\"'\$\+\-–—]))(?: |$)", r"\1 ", text)
|
|
self.chain = markovify.Chain(self.corpus, config.MARKOV_STATE_SIZE).compile()
|
|
self.chain = markovify.Chain(self.corpus, config.MARKOV_STATE_SIZE).compile()
|