run 1 fn twice in 1 line

This commit is contained in:
mousebot 2020-04-24 10:52:59 -03:00
parent 0d0bd9c597
commit 907cbc0cb3
1 changed files with 3 additions and 5 deletions

View File

@ -110,7 +110,7 @@ def main():
fnf = 'error: file not found. please provide a path to a really-existing \
file!'
# if a -c, combine it w infile/URL:
# if a -c/-C, combine it w infile/URL:
if args.combine or args.combine_URL:
if args.combine:
# get raw text as a string for both:
@ -145,12 +145,10 @@ def main():
# build the models and build a combined model:
# with --newline:
if args.newline:
text_model = mkbnewline(text)
ctext_model = mkbnewline(ctext)
text_model, ctext_model = mkbnewline(text, ctext)
# no --newline:
else:
text_model = mkbtext(text)
ctext_model = mkbtext(ctext)
text_model, ctext_model = mkbtext(text, ctext)
combo_model = markovify.combine(
[text_model, ctext_model], [1, args.weight])