Skip to content

Commit

Permalink
Make use of installation scripts in 'tools/intstall'
Browse files Browse the repository at this point in the history
Based on a feedback on PR#4885. Instead of letting users find out
how to install the required modules by themselves, let's automate
those steps.

Signed-off-by: Fujimoto Seiji <fujimoto@clear-code.com>
  • Loading branch information
Fujimoto Seiji committed Jan 30, 2023
1 parent ba4cd3a commit 76c6f37
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
10 changes: 6 additions & 4 deletions egs2/reazonspeech/asr1/local/path.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
if ! python3 -c 'import datasets' > /dev/null; then
echo "ERR: Module 'datasets' is not installed." >&2
echo "ERR: See 'https://huggingface.co/docs/datasets/quickstart'" >&2
echo "Error: it seems that datasets is not installed." >&2
echo "Error: please install datasets as follows." >&2
echo "Error: cd ${MAIN_ROOT}/tools/installers && ./install_datasets.sh" >&2
return 1
fi

if ! python3 -c 'import reazonspeech' > /dev/null; then
echo "ERR: Module 'reazonspeech' is not installed." >&2
echo "ERR: See 'https://github.com/reazon-research/ReazonSpeech'" >&2
echo "Error: it seems that reazonspeech is not installed." >&2
echo "Error: please install reazonspeech as follows." >&2
echo "Error: cd ${MAIN_ROOT}/tools/installers && ./install_reazonspeech.sh" >&2
return 1
fi
1 change: 1 addition & 0 deletions tools/check_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
("datasets", None, "installers/install_longformer.sh"),
("pykeops", None, "installers/install_cauchy_mult.sh"),
("whisper", None, "installers/install_whisper.sh"),
("reazonspeech", None, "installers/install_reazonspeech.sh"),
]

executable_list = [
Expand Down
Empty file modified tools/installers/install_datasets.sh
100644 → 100755
Empty file.
9 changes: 9 additions & 0 deletions tools/installers/install_reazonspeech.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail

if [ $# != 0 ]; then
echo "Usage: $0"
exit 1;
fi

python3 -m pip install git+https://github.com/reazon-research/ReazonSpeech

0 comments on commit 76c6f37

Please sign in to comment.