Improving debugging ouptut
This commit is contained in:
parent
dc285ce265
commit
51cf3e7064
10
src/wani.py
10
src/wani.py
|
@ -33,14 +33,10 @@ def load_files(args):
|
||||||
for n, fname in enumerate(filenames):
|
for n, fname in enumerate(filenames):
|
||||||
et = load_xml(fname)
|
et = load_xml(fname)
|
||||||
yield from file_sentence_generator(et, skip_id_check, do_msd_translate, args.pc_tag, args.chunk_size)
|
yield from file_sentence_generator(et, skip_id_check, do_msd_translate, args.pc_tag, args.chunk_size)
|
||||||
if args.count_files:
|
|
||||||
status = " :: {} / {}".format(n, len(filenames))
|
|
||||||
else:
|
|
||||||
status = ""
|
|
||||||
yield from file_sentence_generator(fname, skip_id_check, do_msd_translate, args.pc_tag, status)
|
|
||||||
|
|
||||||
def load_xml(filename, status):
|
|
||||||
logging.info("LOADING XML: {}{}".format(filename, status))
|
def load_xml(filename):
|
||||||
|
logging.info("\rLOADING XML: {}".format(filename))
|
||||||
with open(filename, 'r') as fp:
|
with open(filename, 'r') as fp:
|
||||||
content = fp.read()
|
content = fp.read()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user