Skip to content

Commit

Permalink
Add an 'english' in the middle of the path
Browse files Browse the repository at this point in the history
  • Loading branch information
AngledLuffa committed Nov 4, 2023
1 parent 5d5a4c3 commit 1c30703
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stanza/utils/datasets/ner/convert_en_conll03.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def process_dataset(short_name, conll_path, ner_output_path):
def main():
paths = get_default_paths()
ner_input_path = paths['NERBASE']
conll_path = os.path.join(ner_input_path, "en_conll03")
conll_path = os.path.join(ner_input_path, "english", "en_conll03")
ner_output_path = paths['NER_DATA_DIR']
process_dataset("en_conll03", conll_path, ner_output_path)

Expand Down
2 changes: 1 addition & 1 deletion stanza/utils/datasets/ner/prepare_ner_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ def process_toy_dataset(paths, short_name):

def process_en_conll03(paths, short_name):
ner_input_path = paths['NERBASE']
conll_path = os.path.join(ner_input_path, "en_conll03")
conll_path = os.path.join(ner_input_path, "english", "en_conll03")
ner_output_path = paths['NER_DATA_DIR']
convert_en_conll03.process_dataset("en_conll03", conll_path, ner_output_path)

Expand Down

0 comments on commit 1c30703

Please sign in to comment.