-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathConfig.sh
122 lines (110 loc) · 2.64 KB
/
Config.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#!/bin/sh
#
# Copyright 2011 by Idiap Research Institute, http://www.idiap.ch
#
# See the file COPYING for the licence associated with this software.
#
# Author(s):
# Phil Garner, July 2011
# Marc Ferras
#
# Allow setshell
software=/idiap/resource/software
source $software/initfiles/shrc $software
# SETSHELLs
SETSHELL hts
SETSHELL icsi-speech-tools
SETSHELL quicknet
SETSHELL grid
# Check for ISS; add it to the path
if [ "$ISSROOT" = "" ]
then
echo "Please \"SETSHELL iss\" or point \$ISSROOT to an ISS installation"
exit 1
fi
path=( $ISSROOT/bin $path )
fpath=( $ISSROOT/lib/zsh $fpath )
# Functions that ISS provides
autoload chdir.sh
# Shell variables
wsj0=/idiap/resource/database/WSJ0
wsj1=/idiap/resource/database/WSJ1
# Environment variables to pass to working scripts
export DBASE_ROOT=..
export AUDIO_NAME=wv1
export PHONESET=CMUbet
export FLAT_DICT=../local/flat-dict.txt
export MAIN_DICT=../local/main-dict.txt
export MIX_ORDER=16
# Basic grid operation
nCPUs=$(cat /proc/cpuinfo | fgrep processor | wc -l)
if false
then
export USE_GE=1
export N_JOBS=15
else
export USE_GE=0
export N_JOBS=$nCPUs
fi
# Front-end
# $FEAT_NAME is the directory to which features are written
export EXTRACT=hcopy
feats=plp
case $feats in
user)
export FEAT_NAME=USER
export TARGET_KIND=USER_D_A
;;
mfcc)
export FEAT_NAME=MFCC_E
export HCOPY_CONFIG=$ISSROOT/lib/config/MFCC_E.cfg
export TARGET_KIND=MFCC_E_D_A_Z
;;
plp)
export FEAT_NAME=PLP_0
export HCOPY_CONFIG=$ISSROOT/lib/config/PLP_0.cfg
export TARGET_KIND=PLP_0_D_A_Z
;;
esac
# Train and test lists
# Choose si-84 or si-284 for training
# It's best to leave the default at si-84 as it's quicker
train=si-84
case $train in
si-84)
trainList=../local/si-84-list.txt
;;
si-284)
trainList=../local/si-284-list.txt
;;
esac
# Various sets for decoding
# Default is the 5k system as it's quicker
export DECODER=HDecode
gram=b
task=h2-p0
case $task in
h2-p0)
export LM_ARPA_FILE=../local/${gram}cb05cnp-arpa.txt
export LM_WORD_LIST=../local/wlist5c-nvp.txt
export SCORE_REFERENCE=../local/h2_p0.mlf
testList=../local/h2_p0-list.txt
;;
20k)
export LM_ARPA_FILE=../local/${gram}cb20onp-arpa.txt
export LM_WORD_LIST=../local/wlist20o-nvp.txt
export SCORE_REFERENCE=../local/si_et_20.mlf
testList=../local/si_et_20-list.txt
;;
esac
# This should get overridden
export FILE_LIST=/dev/null
# For Tandem training; set to true
if false
then
echo Config.sh: TANDEM MODE
trainList=../fwdmlp-train-si-84/file-list-htk.txt
testList=../fwdmlp-test-h2-p0/file-list-htk.txt
export TARGET_KIND=USER
export FEAT_DIM=32
fi