Blame view

egs/aurora4/s5/local/run_basis_fmllr.sh 1.6 KB
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
33
34
35
36
37
38
39
40
  #!/bin/bash
  
  . ./cmd.sh
  
  mfccdir=mfcc
  
  # Make "per-utterance" versions of the test sets where the speaker
  # information corresponds to utterances-- to demonstrate adaptation on
  # short utterances, particularly for basis fMLLR
  for x in test_eval92 test_eval93 test_dev93 ; do
    y=${x}_utt
    rm -r data/$y
    cp -r data/$x data/$y
    cat data/$x/utt2spk | awk '{print $1, $1;}' > data/$y/utt2spk;
    cp data/$y/utt2spk data/$y/spk2utt;
    steps/compute_cmvn_stats.sh data/$y exp/make_mfcc/$y $mfccdir || exit 1; 
  done
  
  
   # basis fMLLR experiments.
   # First a baseline: decode per-utterance with normal fMLLR.
  steps/decode_fmllr.sh --nj 10 --cmd "$decode_cmd" \
    exp/tri3b/graph_tgpr data/test_dev93_utt exp/tri3b/decode_tgpr_dev93_utt || exit 1;
  steps/decode_fmllr.sh --nj 8 --cmd "$decode_cmd" \
    exp/tri3b/graph_tgpr data/test_eval92_utt exp/tri3b/decode_tgpr_eval92_utt || exit 1;
  
   # get the fMLLR basis.
  steps/get_fmllr_basis.sh --cmd "$train_cmd" data/train_si84 data/lang exp/tri3b
  
   # decoding tri3b with basis fMLLR
  steps/decode_basis_fmllr.sh --nj 10 --cmd "$decode_cmd" \
    exp/tri3b/graph_tgpr data/test_dev93 exp/tri3b/decode_tgpr_dev93_basis || exit 1;
  steps/decode_basis_fmllr.sh --nj 8 --cmd "$decode_cmd" \
    exp/tri3b/graph_tgpr data/test_eval92 exp/tri3b/decode_tgpr_eval92_basis || exit 1;
  
    # The same, per-utterance.
  steps/decode_basis_fmllr.sh --nj 10 --cmd "$decode_cmd" \
    exp/tri3b/graph_tgpr data/test_dev93_utt exp/tri3b/decode_tgpr_dev93_basis_utt || exit 1;
  steps/decode_basis_fmllr.sh --nj 8 --cmd "$decode_cmd" \
    exp/tri3b/graph_tgpr data/test_eval92_utt exp/tri3b/decode_tgpr_eval92_basis_utt || exit 1;