Markov chain text generator: Difference between revisions
m
→Functional Python
Line 1,094:
'''Random pick from nGrams which start with capital letters'''
return choice(list(filter(
lambda
dct.keys()
))).split()
|