#!/bin/sh
# $Header: /home/ws01/gzweig/auroraTutorial/RCS/generate,v 1.1 2001/07/03 21:55:35 zweig Exp gzweig $


#
# "Copyright 2001, University of Washington and International Business Machines Corporation. All Rights Reserved
#
#    Written by Jeff Bilmes and Geoffrey Zweig
#
# NO WARRANTY
# THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR
# CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT
# LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is
# solely responsible for determining the appropriateness of using the Program
# and assumes all risks associated with such use, including but not limited
# to the risks and costs of program errors, compliance with applicable laws,
# damage to or loss of data, programs or equipment, and unavailability or
# interruption of operations.

# DISCLAIMER OF LIABILITY
# THE UNIVERSITY OF WASHINGTON, INTERNATIONAL BUSINESS MACHINES CORPORATION,
# JEFF BILMES AND GEOFFREY ZWEIG SHALL NOT HAVE ANY LIABILITY FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE  OF
# THE PROGRAM, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES."
#

NUM_STATES_PER_WORD=8
NUM_UTS=100    # only do the first 100 so training will go fast

./genWordPositionDTs.pl -n $NUM_STATES_PER_WORD > ./PARAMS/wordPosition.dts
./genWordTransitionDTs.pl  -n $NUM_STATES_PER_WORD > ./PARAMS/wordTransition.dts
./genWordWordPos2WholeWordStateDTs.pl -n $NUM_STATES_PER_WORD > ./PARAMS/wordWordPos2WholeWordState.dts
./genGMParms.pl -n $NUM_STATES_PER_WORD > ./PARAMS/aurora.InitialGMParams

# these next ones needs to match the current pfile
labfile="./DATA/AllCleanTr.mlf"

./genWordCounterDTs.pl $labfile $NUM_UTS > ./PARAMS/wordCounter.dts

./genCounterToWordMapDTs.pl -f $labfile -m $NUM_UTS > ./PARAMS/counterToWordMap.dts

./genEndOfUtteranceDTs.pl $labfile $NUM_UTS > ./PARAMS/endOfUtterance.dts
