This program takes in a sample text and establishes a dictionary of the frequency with which each two word pair follows each other. It then uses that dictionary to semistochastically generate new text of a somewhat similar structure as the original corpus.
solomonnoah / markov_twoword_phrase Goto Github PK
View Code? Open in Web Editor NEWTakes an in a corpus and uses markov chains to generate similarly structured text using two word pairs.