We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce2ba74 commit 2f45bfeCopy full SHA for 2f45bfe
trankit/__main__.py
@@ -69,7 +69,7 @@ def process_a_file(input_fpath, input_format, output_dir, pipeline, task):
69
assert task == 'pall'
70
output = pipeline(task_input)
71
72
- with open(os.path.join(output_dir, os.path.basename(input_fpath) + '.processed.json'), 'w') as f:
+ with open(os.path.join(output_dir, os.path.basename(input_fpath) + '.{}.json'.format(task)), 'w') as f:
73
json.dump(output, f, ensure_ascii=False)
74
75
0 commit comments