Skip to content

Commit

Permalink
Move importer scripts to bin/
Browse files Browse the repository at this point in the history
  • Loading branch information
reuben committed Apr 14, 2017
1 parent a2731a3 commit 53c1f3a
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion util/importers/fisher.py → bin/import_fisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This script needs to be run from the root of the DeepSpeech repository
import sys
import os
sys.path.insert(1, os.path.join(sys.path[0], '..', '..'))
sys.path.insert(1, os.path.join(sys.path[0], '..'))

import codecs
import fnmatch
Expand Down
2 changes: 1 addition & 1 deletion util/importers/ldc93s1.py → bin/import_ldc93s1.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This script needs to be run from the root of the DeepSpeech repository
import sys
import os
sys.path.insert(1, os.path.join(sys.path[0], '..', '..'))
sys.path.insert(1, os.path.join(sys.path[0], '..'))

import pandas

Expand Down
2 changes: 1 addition & 1 deletion util/importers/librivox.py → bin/import_librivox.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This script needs to be run from the root of the DeepSpeech repository
import sys
import os
sys.path.insert(1, os.path.join(sys.path[0], '..', '..'))
sys.path.insert(1, os.path.join(sys.path[0], '..'))

import codecs
import fnmatch
Expand Down
2 changes: 1 addition & 1 deletion util/importers/LDC97S62.py → bin/import_swb.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This script needs to be run from the root of the DeepSpeech repository
import sys
import os
sys.path.insert(1, os.path.join(sys.path[0], '..', '..'))
sys.path.insert(1, os.path.join(sys.path[0], '..'))

import fnmatch
import pandas
Expand Down
2 changes: 1 addition & 1 deletion util/importers/ted.py → bin/import_ted.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This script needs to be run from the root of the DeepSpeech repository
import sys
import os
sys.path.insert(1, os.path.join(sys.path[0], '..', '..'))
sys.path.insert(1, os.path.join(sys.path[0], '..'))

import codecs
import pandas
Expand Down
2 changes: 1 addition & 1 deletion bin/run-fisher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if [ ! -f "${ds_dataroot}/fisher-train.csv" ]; then
echo "Warning: It looks like you don't have the Fisher corpus" \
"downloaded and preprocessed. Make sure \$ds_dataroot points to the" \
"folder where the Fisher data is located, and that you ran the" \
"importer script at util/importers/fisher.py before running this script."
"importer script at bin/import_fisher.py before running this script."
fi;

checkpoint_dir=$(python -c 'from xdg import BaseDirectory as xdg; print(xdg.save_data_path("deepspeech/fisher"))')
Expand Down
2 changes: 1 addition & 1 deletion bin/run-ldc93s1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fi;

if [ ! -f "data/ldc93s1/ldc93s1.csv" ]; then
echo "Downloading and preprocessing LDC93S1 example data, saving in ./data/ldc93s1."
python -u util/importers/ldc93s1.py ./data/ldc93s1
python -u bin/import_ldc93s1.py ./data/ldc93s1
fi;

checkpoint_dir=$(python -c 'from xdg import BaseDirectory as xdg; print(xdg.save_data_path("deepspeech/ldc93s1"))')
Expand Down
2 changes: 1 addition & 1 deletion bin/run-librivox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if [ ! -f "${ds_dataroot}/librivox-train-clean-100.csv" ]; then
echo "Warning: It looks like you don't have the LibriSpeech corpus" \
"downloaded and preprocessed. Make sure \$ds_dataroot points to the" \
"folder where the LibriSpeech data is located, and that you ran the" \
"importer script at util/importers/librivox.py before running this script."
"importer script at bin/import_librivox.py before running this script."
fi;

checkpoint_dir=$(python -c 'from xdg import BaseDirectory as xdg; print(xdg.save_data_path("deepspeech/librivox"))')
Expand Down
2 changes: 1 addition & 1 deletion bin/run-swb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if [ ! -f "${ds_dataroot}/swb-train.csv" ]; then
echo "Warning: It looks like you don't have the Switchboard corpus" \
"downloaded and preprocessed. Make sure \$ds_dataroot points to the" \
"folder where the Switchboard data is located, and that you ran the" \
"importer script at util/importers/LDC97S62.py before running this script."
"importer script at bin/import_swb.py before running this script."
fi;

checkpoint_dir=$(python -c 'from xdg import BaseDirectory as xdg; print(xdg.save_data_path("deepspeech/swb"))')
Expand Down
2 changes: 1 addition & 1 deletion bin/run-ted.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if [ ! -f "${ds_dataroot}/ted-train.csv" ]; then
echo "Warning: It looks like you don't have the TED-LIUM corpus downloaded"\
"and preprocessed. Make sure \$ds_dataroot points to the folder where"\
"folder where the TED-LIUM data is located, and that you ran the" \
"importer script at util/importers/ted.py before running this script."
"importer script at bin/import_ted.py before running this script."
fi;

checkpoint_dir=$(python -c 'from xdg import BaseDirectory as xdg; print(xdg.save_data_path("deepspeech/ted"))')
Expand Down
Empty file removed util/importers/__init__.py
Empty file.

0 comments on commit 53c1f3a

Please sign in to comment.