11 lines
203 B
Python
11 lines
203 B
Python
import markovify
|
|
|
|
f = open("data/data.txt", "r")
|
|
text = f.read()
|
|
|
|
text_model = markovify.Text(text)
|
|
|
|
for i in range(3):
|
|
# print(text_model.make_short_sentence(280))
|
|
print(text_model.make_sentence())
|