Merge branch 'testing'
This commit is contained in:
commit
36f5b25197
|
@ -112,11 +112,19 @@ def main():
|
|||
|
||||
# write it combo!
|
||||
if args.length:
|
||||
|
||||
|
||||
<< << << < HEAD
|
||||
writeshortsentence(combo_model, args.sentences,
|
||||
args.outfile, args.overlap, args.length)
|
||||
else:
|
||||
writesentence(combo_model, args.sentences,
|
||||
args.outfile, args.overlap, args.length)
|
||||
=======
|
||||
writeshortsentence(combo_model, args.sentences, args.outfile, args.overlap, args.length)
|
||||
else:
|
||||
writesentence(combo_model, args.sentences, args.outfile, args.overlap, args.length)
|
||||
>>>>>>> testing
|
||||
|
||||
# no combining:
|
||||
else:
|
||||
|
@ -127,6 +135,7 @@ def main():
|
|||
# no --newline:
|
||||
else:
|
||||
text_model = mkbtext(text, args.state_size, args.well_formed)
|
||||
<<<<<<< HEAD
|
||||
|
||||
# write it!
|
||||
if args.length:
|
||||
|
@ -136,6 +145,15 @@ def main():
|
|||
writesentence(text_model, args.sentences,
|
||||
args.outfile, args.overlap, args.length)
|
||||
|
||||
=======
|
||||
|
||||
# write it!
|
||||
if args.length:
|
||||
writeshortsentence(text_model, args.sentences, args.outfile, args.overlap, args.length)
|
||||
else:
|
||||
writesentence(text_model, args.sentences, args.outfile, args.overlap, args.length)
|
||||
|
||||
>>>>>>> testing
|
||||
os.unlink(batchfile)
|
||||
|
||||
# print('\n: The options you used are as follows:\n')
|
||||
|
@ -149,7 +167,11 @@ def main():
|
|||
print(': mkv-this ran but did NOT create an output file as requested. this is a very regrettable and dangerous situation. contact the package maintainer asap. soz!')
|
||||
|
||||
sys.exit()
|
||||
<<<<<<< HEAD
|
||||
|
||||
|
||||
=======
|
||||
|
||||
>>>>>>> testing
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
4
setup.py
4
setup.py
|
@ -7,7 +7,7 @@ with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
|
|||
long_description = f.read()
|
||||
|
||||
setup(name='mkv-this',
|
||||
version='0.1.39',
|
||||
version='0.1.41',
|
||||
description='cli wrapper for markovify: take a text file or URL, markovify, save the results.',
|
||||
long_description=long_description,
|
||||
long_description_content_type='text/markdown',
|
||||
|
@ -28,4 +28,4 @@ setup(name='mkv-this',
|
|||
'html2text',
|
||||
],
|
||||
zip_safe=False,
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue