10 lines
156 B
Python
10 lines
156 B
Python
import markovify
|
|
|
|
f = open("data/data.txt", "r")
|
|
text = f.read()
|
|
|
|
text_model = markovify.Text(text)
|
|
|
|
for i in range(5):
|
|
print(text_model.make_sentence())
|