From 78eb16f4d6189d1554d40629d235e040cd49d3d7 Mon Sep 17 00:00:00 2001 From: Nathan TeBlunthuis Date: Wed, 27 Nov 2024 18:53:16 -0800 Subject: [PATCH] more path munging. --- ngrams/term_frequencies.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ngrams/term_frequencies.py b/ngrams/term_frequencies.py index b687192..4e56db9 100755 --- a/ngrams/term_frequencies.py +++ b/ngrams/term_frequencies.py @@ -224,9 +224,9 @@ def gen_task_list(mwe_pass='first', curdir = Path('.') if curdir.absolute().name == 'cdsc_reddit': - curdir = str(curdir.absolute()) + curdir = str(curdir.absolute()) / "ngrams" else: - curdir = str(curdir.absolute() / "cdsc_reddit") + curdir = str(curdir.absolute() / "cdsc_reddit" / "ngrams") with open("tf_task_list",'w') as outfile: for f in files: