From 65937de6e057465b0185024a9da40ff3d14eded6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E4=B8=9E=E5=AE=8F?= Date: Tue, 10 Oct 2017 18:18:05 +0800 Subject: [PATCH] using os.path.join for absolute path of csv --- prepro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prepro.py b/prepro.py index 3eca204..4f5685a 100644 --- a/prepro.py +++ b/prepro.py @@ -29,7 +29,7 @@ def create_train_data(): reader = csv.reader(codecs.open(hp.text_file, 'rb', 'utf-8')) for row in reader: sound_fname, text, duration = row - sound_file = hp.sound_fpath + "/" + sound_fname + ".wav" + sound_file = os.path.join(hp.sound_fpath, sound_fname + ".wav") text = re.sub(r"[^ a-z']", "", text.strip().lower()) if hp.min_len <= len(text) <= hp.max_len: