-
Notifications
You must be signed in to change notification settings - Fork 0
/
s2s_installs.sh
56 lines (47 loc) · 1.36 KB
/
s2s_installs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Indic Trans dependencies
git clone https://github.com/AI4Bharat/indicTrans.git
cp indicTrans_setup.py indicTrans/setup.py
cd indicTrans
cp -r model_configs ../
pip install -e .
cd ..
pip install sacremoses pandas mock sacrebleu tensorboardX pyarrow indic-nlp-library
pip install mosestokenizer subword-nmt
git clone https://github.com/Open-Speech-EkStep/fairseq -b v2-hydra
cd fairseq
pip install -e .
cd ..
# downloading the IndicTrans en-indic model
wget https://storage.googleapis.com/vakyansh-open-models/translation_models/en-indic.zip
unzip en-indic.zip
# Installing vakyansh-tts and tts_infer package for TTS inference
git clone https://github.com/Open-Speech-EkStep/vakyansh-tts
cd vakyansh-tts
bash install.sh
python setup.py bdist_wheel
pip install -e .
cd tts_infer
gsutil -m cp -r gs://vakyansh-open-models/translit_models .
cd ../../
Installing indic-punct
git clone https://github.com/Open-Speech-EkStep/indic-punct.git
cd indic-punct
bash install.sh
python setup.py bdist_wheel
pip install -e .
cd ..
# Remaining ASR dependencies
git clone https://github.com/kpu/kenlm.git
cd kenlm
mkdir -p build && cd build
cmake ..
make -j 16
cd ..
export KENLM_ROOT=$PWD
# export USE_CUDA=0 ## for cpu
cd ..
git clone https://github.com/flashlight/flashlight.git
cd flashlight/bindings/python
export USE_MKL=0
python setup.py install
# python criterion_example.py ## to test