markov: abandon min_words_per_sentence for lines
was yielding too many short chains, i think
This commit is contained in:
parent
dcb7a0af4a
commit
464727cc74
|
@ -15,9 +15,8 @@ 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_per_sentence,
|
||||
line += generate_longish_sentence(context, topics=topics, min_words=min_words,
|
||||
max_words=max_words, max_tries=max_tries)
|
||||
sentences += 1
|
||||
if sentences >= max_sentences:
|
||||
|
|
Loading…
Reference in New Issue