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: