Skip to content

Commit

Permalink
Add one document
Browse files Browse the repository at this point in the history
  • Loading branch information
AngledLuffa committed Nov 30, 2024
1 parent 0614f16 commit 77ef43f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stanza/utils/datasets/ner/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def convert_bio_to_json(base_input_path, base_output_path, short_name, suffix="b
It can often be convenient to put the intermediate BIO files in
the same directory as the output files, in which case you can pass
in same path for both base_input_path and base_output_path.
This also will rewrite a BIOES as json
"""
for input_shard, output_shard in zip(shard_names, shards):
input_filename = os.path.join(base_input_path, '%s.%s.%s' % (short_name, input_shard, suffix))
Expand Down

0 comments on commit 77ef43f

Please sign in to comment.