Skip to content

Commit

Permalink
updated code and docs for v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
minhhdvn committed Mar 31, 2021
1 parent ce2ba74 commit 2f45bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trankit/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def process_a_file(input_fpath, input_format, output_dir, pipeline, task):
assert task == 'pall'
output = pipeline(task_input)

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:
json.dump(output, f, ensure_ascii=False)


Expand Down

0 comments on commit 2f45bfe

Please sign in to comment.