Skip to content

Commit 2f45bfe

Browse files
committed
updated code and docs for v1.0.0
1 parent ce2ba74 commit 2f45bfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trankit/__main__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def process_a_file(input_fpath, input_format, output_dir, pipeline, task):
6969
assert task == 'pall'
7070
output = pipeline(task_input)
7171

72-
with open(os.path.join(output_dir, os.path.basename(input_fpath) + '.processed.json'), 'w') as f:
72+
with open(os.path.join(output_dir, os.path.basename(input_fpath) + '.{}.json'.format(task)), 'w') as f:
7373
json.dump(output, f, ensure_ascii=False)
7474

7575

0 commit comments

Comments
 (0)