Revert "markov: abandon min_words_per_sentence for lines"

This reverts commit 464727cc74.

it turns out that without the min_words_per_sentence adjustment, the
default min_words (15) is way too demanding on a lot of chains, so we're
going to go back to this for the moment
This commit is contained in:
Brian S. Stephan 2016-06-30 23:20:05 -05:00
parent ab9edb2c9b
commit 9b5e8445bf
1 changed files with 2 additions and 1 deletions

View File

@ -15,8 +15,9 @@ def generate_line(context, topics=None, min_words=15, max_words=30, max_sentence
tries = 0
sentences = 0
line = []
min_words_per_sentence = min_words / max_sentences
while tries < max_tries:
line += generate_longish_sentence(context, topics=topics, min_words=min_words,
line += generate_longish_sentence(context, topics=topics, min_words=min_words_per_sentence,
max_words=max_words, max_tries=max_tries)
sentences += 1
if sentences >= max_sentences: