From f4be8e5e74569cdff53cbba2347ff20a1c258186 Mon Sep 17 00:00:00 2001 From: Masoud Jalili Sabet Date: Thu, 4 Nov 2021 15:19:41 +0100 Subject: [PATCH] remove internal path from file loading --- induce_alignments_AdAd.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/induce_alignments_AdAd.py b/induce_alignments_AdAd.py index 195d70a..3ecf15b 100644 --- a/induce_alignments_AdAd.py +++ b/induce_alignments_AdAd.py @@ -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