Skip to content

Commit 0c99b66

Browse files
committed
Update XML aligner, apply minor fix
1 parent 17a2acd commit 0c99b66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/align_xml_sources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ def main(input_dir, main_wit, hierarchy, id_attribute, tokenization_models, devi
490490
TEIAligner.align_corpus(division=division)
491491

492492
for wit_ID, tree in TEIAligner.parsed_witnesses.items():
493-
with open(f"data/XML_test/out/{wit_ID}.aligned.xml", "w") as output_sp:
493+
with open(f"{TEIAligner.out_dir}/{wit_ID}.aligned.xml", "w") as output_sp:
494494
output_sp.write(etree.tostring(tree, pretty_print=True, encoding='utf8').decode('utf8'))
495495

496496

0 commit comments

Comments
 (0)