From 10cfcf8b916361c0eccd5cb17372e25ac4af6593 Mon Sep 17 00:00:00 2001 From: Ming Yao Date: Tue, 7 Feb 2017 20:18:19 +0800 Subject: [PATCH] Fix path bugs --- pytreebank/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytreebank/download.py b/pytreebank/download.py index 6183efb..2246046 100644 --- a/pytreebank/download.py +++ b/pytreebank/download.py @@ -56,6 +56,6 @@ def download_sst(path, url): utils.urlretrieve(url, zip_local) ZipFile(zip_local).extractall(path) for fname in local_files.values(): - move(join(path, 'trainDevTestTrees_PTB', 'trees', fname.split('/')[-1]), fname) + move(join(path, 'trees', fname.split('/')[-1]), fname) delete_paths([zip_local, join(path, 'trainDevTestTrees_PTB', 'trees'), join(path, 'trainDevTestTrees_PTB')]) return local_files