www.pudn.com > sphinx_recipe.zip > prep_dict.sh



# Gets the dictionary and phone lists ready

# Convert the CMU dictionary to the proper form and also
# output the list of all unique phones found in the
# converted dictionary.
perl $CMU_SCRIPTS/FixCMUDict.pl $CMU_COMMON/c0.6 etc/wsj_all.phone >temp.dic

# We need to add in some extra words to cover things in WSJ base LMs
# and the WSJ1 training data.
perl $CMU_SCRIPTS/MergeDict.pl temp.dic $CMU_COMMON/wsj1_extra_dict >etc/wsj_all.dic

rm -f temp.dic

# Create the standard filler dictionary
echo "   SIL" >etc/wsj_all.filler
echo "  SIL" >>etc/wsj_all.filler
echo " SIL" >>etc/wsj_all.filler

# Make copies of the dictionary files for the SI-284 training experiment
cp etc/wsj_all.dic etc/wsj_si284.dic
cp etc/wsj_all.filler etc/wsj_si284.filler
cp etc/wsj_all.phone etc/wsj_si284.phone

# Make copies of the dictionary files for the SI-84 training experiment
cp etc/wsj_all.dic etc/wsj_si84.dic
cp etc/wsj_all.filler etc/wsj_si84.filler
cp etc/wsj_all.phone etc/wsj_si84.phone