Blame view

egs/swahili/s5/local/prepare_dict.sh 619 Bytes
8dcb6dfcb   Yannick Estève   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  #!/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"