Skip to content

Commit

Permalink
remove internal path from file loading
Browse files Browse the repository at this point in the history
  • Loading branch information
masoudjs committed Nov 4, 2021
1 parent 6cd38ef commit f4be8e5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions induce_alignments_AdAd.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ def load_texts_and_alignments(editions_file, lang_files_path, verse_alignments_p
texts = {}
for langl in langs:
verses = {}
if langl == "eng":
lang_path = os.path.join("/mounts/work/mjalili/projects/graph_align_base/data/pbc/", editions[langl] + ".txt")
else:
lang_path = os.path.join(lang_files_path, editions[langl] + ".txt")
lang_path = os.path.join(lang_files_path, editions[langl] + ".txt")
with codecs.open(lang_path, "r", "utf-8") as fi:
for l in fi:
if l[0] == "#": continue
Expand Down

0 comments on commit f4be8e5

Please sign in to comment.