Skip to content

Conversation

@LvHang
Copy link
Contributor

@LvHang LvHang commented Dec 12, 2016

@danpovey

Hi Dan,
I modify the utils/mkgraph.sh and other checked-in example scripts to ignore the "--mono --left-biphone and --quinphone" options.
Please check it. Thank you for your time.

Best wishes,
Hang

[ "$1" == "--quinphone" ] && context=quinphone && shift;
for x in `seq 4`; do
[ "$1" == "--mono" -o "$1" == "left-biphone" -o "$1" == "--quinphone" ] && shift && \
echo "WARNING: The '--mono, --left-biphone and --qunphone' options are deprecated and ignored. Please delete it!"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please spell quinphone right. Also remove the words "Please delete it!". Firstly, I don't think this adds useful information; secondly, the exclamation mark '!' is problematic in interactive shells, if not enclosed in single quotes; it can cause crashes.

echo " --quinphone # For models with 5-phone context (3 is default)"
echo " --left-biphone # For left biphone models"
echo "For other accepted options, see top of script."
echo " --remove-oov # For remove out-of-vocabulary."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace 'For remove out-of-vocabulary' with the following text, suitably line-broken:
If true, any paths containing the OOV symbol (obtained from oov.int in the lang directory) are removed from the graph G.fst during compilation.

echo " --left-biphone # For left biphone models"
echo "For other accepted options, see top of script."
echo " --remove-oov # For remove out-of-vocabulary."
echo " --transition-scale # For the scale on transition probabilities."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the scale -> Scaling factor on

echo "For other accepted options, see top of script."
echo " --remove-oov # For remove out-of-vocabulary."
echo " --transition-scale # For the scale on transition probabilities."
echo " --self-loop-scale # For the scale on self-loop."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace 'For the scale on self-loop' with this:
Please see: http://kaldi-asr.org/doc/hmm.html#hmm_scale

echo " --remove-oov # For remove out-of-vocabulary."
echo " --transition-scale # For the scale on transition probabilities."
echo " --self-loop-scale # For the scale on self-loop."
echo "Attention, please! Currently the '--mono, --left-biphone and --qunphone' options"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please reword to:
"Note: the --mono, --left-biphone and --quinphone options are now deprecated"
"and will be ignored."

…quinphone options and fix the checked-in example scripts

fix the utils/mkgraph.sh
@LvHang
Copy link
Contributor Author

LvHang commented Dec 12, 2016

@danpovey
Hi Dan,
According to your guidance, I modify the utils/mkgraph.sh. Please check it.
Thanks a lot.

Best wishes,
Hang

@danpovey
Copy link
Contributor

Thanks! Merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants