Blame view

egs/hub4_spanish/s5/local/reestimate_langp.sh 780 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
23
24
25
26
27
28
29
30
31
32
  #!/bin/bash
  # Copyright (c) 2015, Johns Hopkins University ( Yenda Trmal <jtrmal@gmail.com> )
  # License: Apache 2.0
  
  # Begin configuration section.
  cmd=run.pl
  unk="<unk>"
  # End configuration section
  . ./utils/parse_options.sh
  
  set -e -o pipefail
  set -o nounset                              # Treat unset variables as an error
  
  datadir=$1
  langdir=$2
  idict=$3
  amdir=$4
  odict=$5
  olocallang=$6
  olang=$7
  
  
  mkdir -p $odict
  mkdir -p $olang
  mkdir -p $olocallang
  steps/get_prons.sh --cmd "$cmd" $datadir $langdir $amdir
  utils/dict_dir_add_pronprobs.sh --max-normalize true $idict  \
    $amdir/pron_counts_nowb.txt $amdir/sil_counts_nowb.txt \
    $amdir/pron_bigram_counts_nowb.txt $odict
  
  utils/prepare_lang.sh  --phone-symbol-table $langdir/phones.txt \
    $odict "$unk" $olocallang $olang