prepare_dict.sh
619 Bytes
#!/bin/bash
mkdir -p data/lang data/local/dict
cat asr_swahili/lang/lexicon.txt | sed '1,4d' > data/local/dict/lexicon_words.txt
cp asr_swahili/lang/lexicon.txt data/local/dict/.
cp asr_swahili/lang/nonsilence_phones.txt data/local/dict/.
cp asr_swahili/lang/optional_silence.txt data/local/dict/.
touch data/local/dict/extra_questions.txt
echo "SIL" > data/local/dict/silence_phones.txt
echo "SPN" >> data/local/dict/silence_phones.txt
echo "LAU" >> data/local/dict/silence_phones.txt
echo "MUS" >> data/local/dict/silence_phones.txt
echo "<UNK>" > data/lang/oov.txt
echo "Dictionary preparation succeeded"