Markov chain text generator: Difference between revisions

m
→‎Functional Python: Edited an in-line comment string
m (→‎Functional Python: Edited an in-line comment string)
Line 1,039:
# markovText :: Dict -> [String] -> ([String] -> Bool) -> IO [String]
def markovText(dct):
'''WordnGram-hashed nGramword dict -> opening words -> end condition -> text'''
 
n = len(list(dct.keys())[0].split())
9,655

edits