Created
August 8, 2012 12:33
-
-
Save edobashira/3294798 to your computer and use it in GitHub Desktop.
Kaldi bash completions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_sgmm2-gselect() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --diag-gmm-nbest --full-gmm-nbest --help --print-args --verbose --write-likes" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm2-gselect sgmm2-gselect | |
_sgmm2-project() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --end-dim --help --print-args --start-dim --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm2-project sgmm2-project | |
_sgmm2-acc-stats2() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --gselect --help --print-args --rand-prune --spk-vecs --update-flags --utt2spk --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm2-acc-stats2 sgmm2-acc-stats2 | |
_sgmm2-latgen-faster() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --allow-partial --beam --beam-delta --config --determinize-lattice --gselect --hash-ratio --help --lattice-beam --log-prune --max-active --max-arcs --max-loop --max-mem --print-args --prune-interval --spk-vecs --utt2spk --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm2-latgen-faster sgmm2-latgen-faster | |
_sgmm2-comp-prexform() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm2-comp-prexform sgmm2-comp-prexform | |
_sgmm2-est-fmllr() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--gselect --config --fmllr-bases-occ-scale --fmllr-iters --fmllr-min-count --fmllr-min-count-bases --fmllr-min-count-full --fmllr-num-bases --fmllr-step-iters --gselect --help --input-fmllr --print-args --spk-vecs --spk2utt --spkvec-min-count --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm2-est-fmllr sgmm2-est-fmllr | |
_sgmm2-acc-stats-gpost() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --rand-prune --spk-vecs --update-flags --utt2spk --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm2-acc-stats-gpost sgmm2-acc-stats-gpost | |
_sgmm2-post-to-gpost() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --gselect --help --print-args --spk-vecs --utt2spk --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm2-post-to-gpost sgmm2-post-to-gpost | |
_sgmm2-acc-stats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --gselect --help --print-args --rand-prune --spk-vecs --update-flags --utt2spk --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm2-acc-stats sgmm2-acc-stats | |
_sgmm2-est-ebw() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --cov-min-value --epsilon --help --lrate-m --lrate-n --lrate-sigma --lrate-u --lrate-v --lrate-w --max-cond --min-substate-weight --num-threads --print-args --tau-c --tau-m --tau-n --tau-sigma --tau-u --tau-v --tau-w --update-flags --verbose --write-flags" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm2-est-ebw sgmm2-est-ebw | |
_sgmm2-sum-accs() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm2-sum-accs sgmm2-sum-accs | |
_sgmm2-init() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --init-from-sgmm --pdf-map --phn-space-dim --print-args --self-weight --spk-dep-weights --spk-space-dim --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm2-init sgmm2-init | |
_sgmm2-est-spkvecs-gpost() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --rand-prune --spk-vecs --spk2utt --spkvec-min-count --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm2-est-spkvecs-gpost sgmm2-est-spkvecs-gpost | |
_sgmm2-rescore-lattice() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --gselect --help --log-prune --old-acoustic-scale --print-args --spk-vecs --utt2spk --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm2-rescore-lattice sgmm2-rescore-lattice | |
_sgmm2-est() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --cov-diag-ratio --cov-floor --help --increase-phn-dim --increase-spk-dim --max-cond --max-cond-split --max-impr-u --min-count --num-threads --perturb-factor --power --print-args --remove-speaker-space --renormalize-n --renormalize-v --share-for-pdfs --spk-dep-weights --split-substates --tau-c --transition-floor --transition-min-count --update-flags --verbose --weight-projections-iters --write-flags --write-occs" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm2-est sgmm2-est | |
_sgmm2-est-spkvecs() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --gselect --help --print-args --rand-prune --spk-vecs --spk2utt --spkvec-min-count --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm2-est-spkvecs sgmm2-est-spkvecs | |
_sgmm2-align-compiled() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --beam --binary --config --gselect --help --log-prune --print-args --retry-beam --self-loop-scale --spk-vecs --transition-scale --utt2spk --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm2-align-compiled sgmm2-align-compiled | |
_sgmm2-copy() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm2-copy sgmm2-copy | |
_sgmm2-info() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --sgmm2-detailed --trans-detailed --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm2-info sgmm2-info | |
_fgmm-global-acc-stats-twofeats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --gselect --help --print-args --update-flags --verbose --weights" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fgmm-global-acc-stats-twofeats fgmm-global-acc-stats-twofeats | |
_fgmm-global-acc-stats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --gselect --help --print-args --update-flags --verbose --weights" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fgmm-global-acc-stats fgmm-global-acc-stats | |
_fgmm-global-mixdown() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --gselect --help --mixdown-target --num-pairs --power --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fgmm-global-mixdown fgmm-global-mixdown | |
_fgmm-gselect() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --gselect --help --n --print-args --verbose --write-likes" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fgmm-gselect fgmm-gselect | |
_fgmm-global-est() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --max-condition --min-gaussian-occupancy --min-gaussian-weight --mix-up --perturb-factor --print-args --remove-low-count-gaussians --update-flags --variance-floor --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fgmm-global-est fgmm-global-est | |
_fgmm-global-get-frame-likes() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --gselect --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fgmm-global-get-frame-likes fgmm-global-get-frame-likes | |
_fgmm-global-merge() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fgmm-global-merge fgmm-global-merge | |
_fgmm-global-to-gmm() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fgmm-global-to-gmm fgmm-global-to-gmm | |
_fgmm-global-sum-accs() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fgmm-global-sum-accs fgmm-global-sum-accs | |
_fgmm-global-copy() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fgmm-global-copy fgmm-global-copy | |
_arpa2fst() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --natural-base --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _arpa2fst arpa2fst | |
_tied-full-gmm-init-model() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _tied-full-gmm-init-model tied-full-gmm-init-model | |
_init-tied-codebooks() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --full --help --max-gauss --min-gauss --perturb --power --print-args --split-gaussians --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _init-tied-codebooks init-tied-codebooks | |
_tied-full-gmm-align-compiled() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --beam --binary --config --gselect --help --print-args --retry-beam --self-loop-scale --transition-scale --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _tied-full-gmm-align-compiled tied-full-gmm-align-compiled | |
_tied-diag-gmm-decode-simple() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --allow-partial --beam --config --help --print-args --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _tied-diag-gmm-decode-simple tied-diag-gmm-decode-simple | |
_tied-full-gmm-init-mono() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _tied-full-gmm-init-mono tied-full-gmm-init-mono | |
_full-to-diag() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _full-to-diag full-to-diag | |
_tied-diag-gmm-est() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --interpolate-means --interpolate-variances --interpolate-weights --interpolation-weight --min-gaussian-occupancy --min-gaussian-weight --min-tied-gaussian-occupancy --min-tied-gaussian-weight --min-variance --print-args --remove-low-count-gaussians --share-for-pdfs --transition-floor --transition-min-count --update-flags --verbose --write-occs" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _tied-diag-gmm-est tied-diag-gmm-est | |
_smooth-stats-diag() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --preserve-counts --print-args --print-diversity --tau --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _smooth-stats-diag smooth-stats-diag | |
_tied-full-gmm-acc-stats-ali() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _tied-full-gmm-acc-stats-ali tied-full-gmm-acc-stats-ali | |
_tied-full-gmm-decode-simple() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --allow-partial --beam --config --help --print-args --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _tied-full-gmm-decode-simple tied-full-gmm-decode-simple | |
_tied-diag-gmm-decode-faster() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --allow-partial --beam --beam-delta --config --hash-ratio --help --max-active --print-args --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _tied-diag-gmm-decode-faster tied-diag-gmm-decode-faster | |
_tied-diag-gmm-acc-stats-ali() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _tied-diag-gmm-acc-stats-ali tied-diag-gmm-acc-stats-ali | |
_tied-lbg() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --full --help --interim-em --max-gauss --min-gauss --min-gaussian-occupancy --min-gaussian-weight --min-variance --perturb --print-args --remove-low-count-gaussians --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _tied-lbg tied-lbg | |
_tied-diag-gmm-init-mono() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _tied-diag-gmm-init-mono tied-diag-gmm-init-mono | |
_tied-diag-gmm-init-model() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _tied-diag-gmm-init-model tied-diag-gmm-init-model | |
_tied-full-gmm-est() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --interpolate-means --interpolate-variances --interpolate-weights --interpolation-weight --max-condition --min-gaussian-occupancy --min-gaussian-weight --min-tied-gaussian-occupancy --min-tied-gaussian-weight --print-args --remove-low-count-gaussians --share-for-pdfs --transition-floor --transition-min-count --update-flags --variance-floor --verbose --write-occs" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _tied-full-gmm-est tied-full-gmm-est | |
_smooth-stats-full() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --preserve-counts --print-args --print-diversity --tau --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _smooth-stats-full smooth-stats-full | |
_tied-diag-gmm-align-compiled() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --beam --binary --config --help --print-args --retry-beam --self-loop-scale --transition-scale --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _tied-diag-gmm-align-compiled tied-diag-gmm-align-compiled | |
_tied-full-gmm-decode-faster() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --allow-partial --beam --beam-delta --config --hash-ratio --help --max-active --print-args --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _tied-full-gmm-decode-faster tied-full-gmm-decode-faster | |
_lattice-to-nbest() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --config --help --n --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-to-nbest lattice-to-nbest | |
_lattice-1best() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --config --help --lm-scale --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-1best lattice-1best | |
_nbest-to-lattice() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _nbest-to-lattice nbest-to-lattice | |
_lattice-copy-backoff() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-copy-backoff lattice-copy-backoff | |
_lattice-interp() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--alpha, --alpha --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-interp lattice-interp | |
_lattice-determinize-pruned() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --beam --config --delta --help --max-arcs --max-loop --max-mem --max-states --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-determinize-pruned lattice-determinize-pruned | |
_lattice-to-phone-lattice() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --replace-words --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-to-phone-lattice lattice-to-phone-lattice | |
_lattice-copy() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose --write-compact" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-copy lattice-copy | |
_lattice-compose() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --phi-label --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-compose lattice-compose | |
_lattice-mbr-decode() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --config --help --lm-scale --one-best-times --print-args --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-mbr-decode lattice-mbr-decode | |
_lattice-boost-ali() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--max-silence-error --b --config --help --max-silence --print-args --silence-phones --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-boost-ali lattice-boost-ali | |
_lattice-rmali() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-rmali lattice-rmali | |
_lattice-word-align() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--wend-phones=3:7:11:15 --silence-label=2 --config --help --output-error-lats --partial-word-label --print-args --reorder --silence-has-olabels --silence-label --silence-may-be-word-internal --silence-phones --test --verbose --wbegin-and-end-phones --wbegin-phones --wend-phones --winternal-phones" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-word-align lattice-word-align | |
_lattice-add-trans-probs() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --self-loop-scale --transition-scale --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-add-trans-probs lattice-add-trans-probs | |
_lattice-equivalent() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --delta --help --num-paths --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-equivalent lattice-equivalent | |
_lattice-project() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --project-output --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-project lattice-project | |
_lattice-to-post() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --config --help --lm-scale --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-to-post lattice-to-post | |
_lattice-oracle() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose --wildcard-symbols-list --word-symbol-table --write-lattices" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-oracle lattice-oracle | |
_lattice-to-ctm-conf() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --config --decode-mbr --frame-shift --help --lm-scale --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-to-ctm-conf lattice-to-ctm-conf | |
_lattice-difference() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-difference lattice-difference | |
_lattice-scale() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --acoustic2lm-scale --config --help --lm-scale --lm2acoustic-scale --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-scale lattice-scale | |
_lattice-determinize() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --beam --beam-ratio --config --delta --help --max-loop --max-mem --num-loops --print-args --prune --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-determinize lattice-determinize | |
_lattice-align-words() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --output-error-lats --partial-word-label --print-args --reorder --silence-label --test --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-align-words lattice-align-words | |
_lattice-prune() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --beam --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-prune lattice-prune | |
_nbest-to-linear() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _nbest-to-linear nbest-to-linear | |
_linear-to-nbest() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _linear-to-nbest linear-to-nbest | |
_lattice-to-fst() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --config --help --lm-scale --print-args --rm-eps --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-to-fst lattice-to-fst | |
_lattice-best-path() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --config --help --lm-scale --print-args --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-best-path lattice-best-path | |
_lattice-to-mpe-post() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --config --help --lm-scale --print-args --silence-phones --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-to-mpe-post lattice-to-mpe-post | |
_lattice-lmrescore() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --lm-scale --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-lmrescore lattice-lmrescore | |
_nbest-to-ctm() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--frame-length --config --frame-shift --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _nbest-to-ctm nbest-to-ctm | |
_lattice-union() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _lattice-union lattice-union | |
_nnet-train-xent-hardlab-perutt() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --cross-validate --feature-transform --help --l1-penalty --l2-penalty --learn-rate --momentum --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _nnet-train-xent-hardlab-perutt nnet-train-xent-hardlab-perutt | |
_rnnlm-train-perseq() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --bptt --config --cross-validate --help --l1-penalty --l2-penalty --learn-rate --min-seq-len --preserve-state --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _rnnlm-train-perseq rnnlm-train-perseq | |
_nnet-forward() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--apply-log --class-frame-counts --config --feature-transform --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _nnet-forward nnet-forward | |
_copy-matrix() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _copy-matrix copy-matrix | |
_cluster-phones() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--central-position --config --context-width --help --mode --num-classes --pdf-class-list --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _cluster-phones cluster-phones | |
_acc-tree-stats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --central-position --ci-phones --config --context-width --help --print-args --var-floor --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _acc-tree-stats acc-tree-stats | |
_post-to-weights() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _post-to-weights post-to-weights | |
_copy-int-vector() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _copy-int-vector copy-int-vector | |
_prons-to-wordali() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --per-frame --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _prons-to-wordali prons-to-wordali | |
_convert-ali() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --phone-map --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _convert-ali convert-ali | |
_rand-prune-post() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _rand-prune-post rand-prune-post | |
_sum-matrices() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sum-matrices sum-matrices | |
_copy-tree() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _copy-tree copy-tree | |
_dot-weights() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _dot-weights dot-weights | |
_est-mllt() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _est-mllt est-mllt | |
_scale-post() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _scale-post scale-post | |
_hmm-info() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _hmm-info hmm-info | |
_decode-faster-mapped() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --allow-partial --beam --beam-delta --binary --config --hash-ratio --help --max-active --print-args --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _decode-faster-mapped decode-faster-mapped | |
_compile-train-graphs-fsts() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--batch-size --config --help --print-args --read-disambig-syms --reorder --rm-eps --self-loop-scale --transition-scale --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _compile-train-graphs-fsts compile-train-graphs-fsts | |
_copy-int-vector-vector() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _copy-int-vector-vector copy-int-vector-vector | |
_decode-faster() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --beam --beam-delta --binary --config --hash-ratio --help --max-active --print-args --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _decode-faster decode-faster | |
_compile-train-graphs() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--batch-size --config --help --print-args --read-disambig-syms --reorder --rm-eps --self-loop-scale --transition-scale --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _compile-train-graphs compile-train-graphs | |
_build-tree() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --central-position --cluster-thresh --config --context-width --help --max-leaves --print-args --thresh --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _build-tree build-tree | |
_est-lda() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --dim --help --print-args --verbose --write-full-matrix" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _est-lda est-lda | |
_make-ilabel-transducer() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --old-to-new-mapping --print-args --verbose --write-disambig-syms" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _make-ilabel-transducer make-ilabel-transducer | |
_reverse-weights() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --reverse --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _reverse-weights reverse-weights | |
_align-equal() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --read-disambig-syms --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _align-equal align-equal | |
_thresh-post() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --scale --threshold --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _thresh-post thresh-post | |
_build-tree-two-level() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --central-position --cluster-leaves --config --context-width --help --max-leaves-first --max-leaves-second --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _build-tree-two-level build-tree-two-level | |
_latgen-faster-mapped() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --allow-partial --beam --beam-delta --config --determinize-lattice --hash-ratio --help --lattice-beam --max-active --max-arcs --max-loop --max-mem --print-args --prune-interval --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _latgen-faster-mapped latgen-faster-mapped | |
_scale-vecs() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --scale --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _scale-vecs scale-vecs | |
_get-silence-probs() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --quantize --sil-prior --verbose --write-nonsil-probs" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _get-silence-probs get-silence-probs | |
_compute-mce-scale() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --mce-alpha --mce-beta --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _compute-mce-scale compute-mce-scale | |
_sum-tree-stats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sum-tree-stats sum-tree-stats | |
_copy-vector() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --change_dim --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _copy-vector copy-vector | |
_align-mapped() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --beam --config --help --print-args --read-disambig-syms --reorder --retry-beam --rm-eps --self-loop-scale --transition-scale --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _align-mapped align-mapped | |
_compile-questions() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --central-position --config --context-width --help --num-iters-refine --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _compile-questions compile-questions | |
_phones-to-prons() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _phones-to-prons phones-to-prons | |
_sum-post() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --merge --print-args --scale1 --scale2 --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sum-post sum-post | |
_make-pdf-to-tid-transducer() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _make-pdf-to-tid-transducer make-pdf-to-tid-transducer | |
_weight-post() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _weight-post weight-post | |
_show-transitions() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _show-transitions show-transitions | |
_align-compiled-mapped() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --beam --binary --config --help --print-args --retry-beam --self-loop-scale --transition-scale --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _align-compiled-mapped align-compiled-mapped | |
_ali-to-post() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _ali-to-post ali-to-post | |
_draw-tree() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --gen-html --help --print-args --query --use-tooltips --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _draw-tree draw-tree | |
_make-h-transducer() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --disambig-syms-out --help --print-args --push-delta --push-weights --reverse --transition-scale --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _make-h-transducer make-h-transducer | |
_weight-silence-post() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _weight-silence-post weight-silence-post | |
_copy-gselect() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --n --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _copy-gselect copy-gselect | |
_compute-wer() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --mode --print-args --text --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _compute-wer compute-wer | |
_align-equal-compiled() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _align-equal-compiled align-equal-compiled | |
_post-to-tacc() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _post-to-tacc post-to-tacc | |
_ali-to-phones() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --per-frame --print-args --verbose --write-lengths" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _ali-to-phones ali-to-phones | |
_add-self-loops() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --disambig-syms --help --print-args --reorder --self-loop-scale --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _add-self-loops add-self-loops | |
_show-alignments() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _show-alignments show-alignments | |
_acc-lda() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --rand-prune --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _acc-lda acc-lda | |
_copy-transition-model() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _copy-transition-model copy-transition-model | |
_decode-faster() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --allow-partial --beam --beam-delta --binary --config --hash-ratio --help --max-active --print-args --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _decode-faster decode-faster | |
_ali-to-pdf() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _ali-to-pdf ali-to-pdf | |
_fstpredeterminize() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --first-disambig --help --prefix --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fstpredeterminize fstpredeterminize | |
_fstaddsubsequentialloop() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --delta --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fstaddsubsequentialloop fstaddsubsequentialloop | |
_fstreorder() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--arc-sort --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fstreorder fstreorder | |
_fstoptimize() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --delta --help --print-args --push-in-log --push-labels --push-weights --use-log --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fstoptimize fstoptimize | |
_fstremoveuselessarcs() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fstremoveuselessarcs fstremoveuselessarcs | |
_fstdeterminizelog() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fstdeterminizelog fstdeterminizelog | |
_fstrmsymbols() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --remove-from-output --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fstrmsymbols fstrmsymbols | |
_fstdeterminizestar() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --delta --help --max-states --print-args --use-log --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fstdeterminizestar fstdeterminizestar | |
_fstphicompose() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fstphicompose fstphicompose | |
_fstisstochastic() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --delta --help --print-args --test-in-log --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fstisstochastic fstisstochastic | |
_fstcopy() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fstcopy fstcopy | |
_fstgetnextsymbol() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fstgetnextsymbol fstgetnextsymbol | |
_fstmakecontextsyms() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --disambig-prefix --help --phone-separator --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fstmakecontextsyms fstmakecontextsyms | |
_fstminimizeencoded() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --delta --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fstminimizeencoded fstminimizeencoded | |
_fstfactor() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --push --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fstfactor fstfactor | |
_fstaddselfloops() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fstaddselfloops fstaddselfloops | |
_fstmakecontextfst() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --central-position --config --context-size --help --print-args --read-disambig-syms --verbose --write-disambig-syms" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fstmakecontextfst fstmakecontextfst | |
_fstrmepslocal() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --stochastic-in-log --use-log --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fstrmepslocal fstrmepslocal | |
_fsttablecompose() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--compose-filter --config --connect --help --match-side --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fsttablecompose fsttablecompose | |
_fstmakedisambigsyms() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fstmakedisambigsyms fstmakedisambigsyms | |
_fstcomposecontext() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --central-position --config --context-size --help --print-args --read-disambig-syms --verbose --write-disambig-syms" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fstcomposecontext fstcomposecontext | |
_fstpropfinal() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fstpropfinal fstpropfinal | |
_sgmm-est() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --check-v --config --cov-diag-ratio --cov-floor --help --increase-phn-dim --increase-spk-dim --max-cond --max-cond-split --num-threads --perturb-factor --power --print-args --remove-speaker-space --renormalize-n --renormalize-v --share-for-pdfs --split-substates --tau-c --tau-vec --transition-floor --transition-min-count --update-flags --verbose --weight-projections-iters --write-flags --write-occs" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-est sgmm-est | |
_sgmm-decode-faster-fmllr() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --beam --beam-delta --config --diag-gmm-nbest --full-gmm-nbest --gselect --hash-ratio --help --log-prune --max-active --print-args --spk-vecs --utt2spk --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-decode-faster-fmllr sgmm-decode-faster-fmllr | |
_sgmm-decode-faster() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --allow-partial --beam --beam-delta --config --diag-gmm-nbest --full-gmm-nbest --gselect --hash-ratio --help --log-prune --max-active --print-args --spk-vecs --utt2spk --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-decode-faster sgmm-decode-faster | |
_sgmm-acc-tree-stats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --central-position --ci-phones --config --context-width --diag-gmm-nbest --full-gmm-nbest --gselect --help --print-args --spk-vecs --utt2spk --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-acc-tree-stats sgmm-acc-tree-stats | |
_sgmm-est-multi() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --check-v --config --cov-diag-ratio --cov-floor --help --increase-phn-dim --increase-spk-dim --max-cond --max-cond-split --perturb-factor --power --print-args --remove-speaker-space --renormalize-n --renormalize-v --share-for-pdfs --split-substates --tau-c --tau-vec --transition-floor --transition-min-count --update-flags --verbose --weight-projections-iters --write-flags" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-est-multi sgmm-est-multi | |
_sgmm-acc-stats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --diag-gmm-nbest --full-gmm-nbest --gselect --help --print-args --rand-prune --spk-vecs --update-flags --utt2spk --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-acc-stats sgmm-acc-stats | |
_sgmm-gselect() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --diag-gmm-nbest --full-gmm-nbest --help --preselect --print-args --verbose --write-likes" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-gselect sgmm-gselect | |
_sgmm-build-tree() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --central-position --cluster-thresh --config --context-width --help --max-leaves --print-args --thresh --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-build-tree sgmm-build-tree | |
_sgmm-comp-prexform() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-comp-prexform sgmm-comp-prexform | |
_sgmm-cluster-phones() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--central-position --config --context-width --help --mode --num-classes --pdf-class-list --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-cluster-phones sgmm-cluster-phones | |
_sgmm-est-fmllr() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --diag-gmm-nbest --fmllr-bases-occ-scale --fmllr-iters --fmllr-min-count --fmllr-min-count-bases --fmllr-min-count-full --fmllr-num-bases --fmllr-step-iters --full-gmm-nbest --gselect --help --input-fmllr --print-args --spk-vecs --spk2utt --spkvec-min-count --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-est-fmllr sgmm-est-fmllr | |
_sgmm-latgen-simple() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --allow-partial --beam --config --determinize-lattice --diag-gmm-nbest --full-gmm-nbest --gselect --help --lattice-beam --log-prune --max-arcs --max-loop --max-mem --print-args --prune-interval --spk-vecs --utt2spk --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-latgen-simple sgmm-latgen-simple | |
_sgmm-init-from-tree-stats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-init-from-tree-stats sgmm-init-from-tree-stats | |
_sgmm-est-fmllrbasis() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --num-bases --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-est-fmllrbasis sgmm-est-fmllrbasis | |
_sgmm-acc-fmllrbasis-ali() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --diag-gmm-nbest --full-gmm-nbest --gselect --help --print-args --sil-phone-list --sil-weight --spk-vecs --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-acc-fmllrbasis-ali sgmm-acc-fmllrbasis-ali | |
_sgmm-post-to-gpost() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --diag-gmm-nbest --full-gmm-nbest --gselect --help --print-args --spk-vecs --utt2spk --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-post-to-gpost sgmm-post-to-gpost | |
_sgmm-write-ubm() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-write-ubm sgmm-write-ubm | |
_sgmm-align() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --beam --binary --config --diag-gmm-nbest --full-gmm-nbest --gselect --help --log-prune --print-args --reorder --retry-beam --self-loop-scale --spk-vecs --transition-scale --utt2spk --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-align sgmm-align | |
_sgmm-sum-accs() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-sum-accs sgmm-sum-accs | |
_sgmm-acc-stats-ali() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --diag-gmm-nbest --full-gmm-nbest --gselect --help --print-args --rand-prune --spk-vecs --update-flags --utt2spk --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-acc-stats-ali sgmm-acc-stats-ali | |
_sgmm-est-spkvecs-gpost() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --rand-prune --spk-vecs --spk2utt --spkvec-min-count --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-est-spkvecs-gpost sgmm-est-spkvecs-gpost | |
_sgmm-copy() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-copy sgmm-copy | |
_init-ubm() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --cluster-varfloor --config --fullcov-ubm --help --intermediate-num-gauss --intermediate-numcomps --max-am-gauss --print-args --reduce-state-factor --ubm-num-gauss --ubm-numcomps --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _init-ubm init-ubm | |
_sgmm-init() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --init-from-sgmm --phn-space-dim --print-args --spk-space-dim --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-init sgmm-init | |
_sgmm-info() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --sgmm-detailed --trans-detailed --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-info sgmm-info | |
_sgmm-acc-stats-gpost() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --rand-prune --spk-vecs --update-flags --utt2spk --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-acc-stats-gpost sgmm-acc-stats-gpost | |
_sgmm-align-compiled() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --beam --binary --config --diag-gmm-nbest --full-gmm-nbest --gselect --help --log-prune --print-args --retry-beam --self-loop-scale --spk-vecs --transition-scale --utt2spk --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-align-compiled sgmm-align-compiled | |
_sgmm-normalize() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-normalize sgmm-normalize | |
_sgmm-est-fmllr-gpost() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --fmllr-bases-occ-scale --fmllr-iters --fmllr-min-count --fmllr-min-count-bases --fmllr-min-count-full --fmllr-num-bases --fmllr-step-iters --help --input-fmllr --print-args --spk-vecs --spk2utt --spkvec-min-count --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-est-fmllr-gpost sgmm-est-fmllr-gpost | |
_sgmm-mixup() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --increase-phn-dim --increase-spk-dim --max-cond-split --perturb-factor --power --print-args --read-occs --remove-speaker-space --split-substates --verbose --write-flags" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-mixup sgmm-mixup | |
_sgmm-rescore-lattice() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --diag-gmm-nbest --full-gmm-nbest --gselect --help --log-prune --old-acoustic-scale --print-args --spk-vecs --utt2spk --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-rescore-lattice sgmm-rescore-lattice | |
_sgmm-acc-stats2() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --diag-gmm-nbest --full-gmm-nbest --gselect --help --print-args --rand-prune --spk-vecs --update-flags --utt2spk --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-acc-stats2 sgmm-acc-stats2 | |
_sgmm-est-ebw() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --cov-min-value --epsilon --help --lrate-m --lrate-n --lrate-sigma --lrate-v --lrate-w --max-cond --min-substate-weight --num-threads --print-args --tau-c --tau-m --tau-n --tau-sigma --tau-v --tau-w --update-flags --verbose --write-flags" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-est-ebw sgmm-est-ebw | |
_sgmm-sum-tree-stats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-sum-tree-stats sgmm-sum-tree-stats | |
_sgmm-est-spkvecs() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --diag-gmm-nbest --full-gmm-nbest --gselect --help --print-args --rand-prune --spk-vecs --spk2utt --spkvec-min-count --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-est-spkvecs sgmm-est-spkvecs | |
_sgmm-latgen-faster() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --allow-partial --beam --beam-delta --config --determinize-lattice --diag-gmm-nbest --full-gmm-nbest --gselect --hash-ratio --help --lattice-beam --log-prune --max-active --max-arcs --max-loop --max-mem --print-args --prune-interval --spk-vecs --utt2spk --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-latgen-faster sgmm-latgen-faster | |
_sgmm-calc-distances() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _sgmm-calc-distances sgmm-calc-distances | |
_gmm-acc-stats-ali() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-acc-stats-ali gmm-acc-stats-ali | |
_gmm-copy() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-copy gmm-copy | |
_gmm-et-est-a() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --learning-rate --print-args --renormalize --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-et-est-a gmm-et-est-a | |
_gmm-et-get-a() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-et-get-a gmm-et-get-a | |
_gmm-est-et() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --normalize-type --print-args --spk2utt --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-est-et gmm-est-et | |
_gmm-est-basis-fmllr-gpost() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --fmllr-min-count --help --num-iters --print-args --size-scale --spk2utt --step-size-iters --verbose --write-weights" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-est-basis-fmllr-gpost gmm-est-basis-fmllr-gpost | |
_gmm-init-model-flat() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-init-model-flat gmm-init-model-flat | |
_gmm-global-acc-stats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --gselect --help --print-args --update-flags --verbose --weights" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-global-acc-stats gmm-global-acc-stats | |
_gmm-global-to-fgmm() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-global-to-fgmm gmm-global-to-fgmm | |
_gmm-acc-stats-twofeats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-acc-stats-twofeats gmm-acc-stats-twofeats | |
_gmm-est() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --min-count --min-gaussian-occupancy --min-gaussian-weight --min-variance --mix-down --mix-up --perturb-factor --power --print-args --remove-low-count-gaussians --share-for-pdfs --transition-floor --transition-min-count --update-flags --verbose --write-occs" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-est gmm-est | |
_gmm-latgen-map() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --allow-partial --beam --beam-delta --binary --config --determinize-lattice --hash-ratio --help --lattice-beam --max-active --max-arcs --max-loop --max-mem --print-args --prune-interval --utt2spk --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-latgen-map gmm-latgen-map | |
_gmm-global-est() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --min-gaussian-occupancy --min-gaussian-weight --min-variance --mix-up --perturb-factor --print-args --remove-low-count-gaussians --update-flags --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-global-est gmm-global-est | |
_gmm-mixup() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --min-count --mix-down --mix-up --perturb-factor --power --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-mixup gmm-mixup | |
_gmm-basis-fmllr-training() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-basis-fmllr-training gmm-basis-fmllr-training | |
_gmm-est-hlda() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-est-hlda gmm-est-hlda | |
_gmm-acc-stats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --update-flags --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-acc-stats gmm-acc-stats | |
_gmm-acc-stats2() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --update-flags --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-acc-stats2 gmm-acc-stats2 | |
_gmm-est-regtree-fmllr() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --fmllr-min-count --fmllr-num-iters --fmllr-update-type --fmllr-use-regtree --help --print-args --spk2utt --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-est-regtree-fmllr gmm-est-regtree-fmllr | |
_gmm-fmpe-acc-stats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --model-derivative --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-fmpe-acc-stats gmm-fmpe-acc-stats | |
_gmm-decode-faster-regtree-fmllr() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --allow-partial --beam --beam-delta --binary --config --hash-ratio --help --max-active --print-args --utt2spk --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-decode-faster-regtree-fmllr gmm-decode-faster-regtree-fmllr | |
_gmm-est-rescale() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --min-gaussian-occupancy --min-variance --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-est-rescale gmm-est-rescale | |
_gmm-est-basis-fmllr() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --fmllr-min-count --help --num-iters --print-args --size-scale --spk2utt --step-size-iters --verbose --write-weights" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-est-basis-fmllr gmm-est-basis-fmllr | |
_gmm-global-sum-accs() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-global-sum-accs gmm-global-sum-accs | |
_gmm-est-regtree-mllr() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --mllr-min-count --mllr-use-regtree --print-args --spk2utt --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-est-regtree-mllr gmm-est-regtree-mllr | |
_gmm-compute-likes() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-compute-likes gmm-compute-likes | |
_gmm-basis-fmllr-accs() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --spk2utt --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-basis-fmllr-accs gmm-basis-fmllr-accs | |
_gmm-acc-hlda() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --speedup --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-acc-hlda gmm-acc-hlda | |
_gmm-latgen-biglm-faster() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --allow-partial --beam --beam-delta --config --determinize-lattice --hash-ratio --help --lattice-beam --max-active --max-arcs --max-loop --max-mem --print-args --prune-interval --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-latgen-biglm-faster gmm-latgen-biglm-faster | |
_gmm-decode-kaldi() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --beam --beam2 --config --help --lm-scale --max-active --print-args --verbose --word-penalty --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-decode-kaldi gmm-decode-kaldi | |
_gmm-est-weights-ebw() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --min-gaussian-weight --min-num-count-weight-update --print-args --update-flags --verbose --weight-tau" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-est-weights-ebw gmm-est-weights-ebw | |
_gmm-global-est-fmllr() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--align-model --config --fmllr-min-count --fmllr-num-iters --fmllr-update-type --gselect --help --print-args --spk2utt --verbose --weights" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-global-est-fmllr gmm-global-est-fmllr | |
_gmm-post-to-gpost() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --rand-prune --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-post-to-gpost gmm-post-to-gpost | |
_gmm-align() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --beam --config --help --print-args --read-disambig-syms --reorder --retry-beam --rm-eps --self-loop-scale --transition-scale --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-align gmm-align | |
_gmm-init-mono() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --shared-phones --train-feats --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-init-mono gmm-init-mono | |
_gmm-est-gaussians-ebw() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --E --help --print-args --tau --update-flags --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-est-gaussians-ebw gmm-est-gaussians-ebw | |
_gmm-et-acc-b() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --spk2utt --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-et-acc-b gmm-et-acc-b | |
_gmm-decode-faster() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --allow-partial --beam --beam-delta --config --hash-ratio --help --max-active --print-args --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-decode-faster gmm-decode-faster | |
_gmm-est-fmllr() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --fmllr-min-count --fmllr-num-iters --fmllr-update-type --help --print-args --spk2utt --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-est-fmllr gmm-est-fmllr | |
_gmm-et-apply-c() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-et-apply-c gmm-et-apply-c | |
_gmm-acc-mllt() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --rand-prune --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-acc-mllt gmm-acc-mllt | |
_gmm-get-stats-deriv() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --min-gaussian-occupancy --min-variance --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-get-stats-deriv gmm-get-stats-deriv | |
_gmm-decode-nbest() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --allow-partial --beam --beam-delta --config --hash-ratio --help --max-active --n-best --print-args --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-decode-nbest gmm-decode-nbest | |
_gmm-train-lvtln-special() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --normalize-covar --normalize-var --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-train-lvtln-special gmm-train-lvtln-special | |
_gmm-latgen-faster() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --allow-partial --beam --beam-delta --config --determinize-lattice --hash-ratio --help --lattice-beam --max-active --max-arcs --max-loop --max-mem --print-args --prune-interval --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-latgen-faster gmm-latgen-faster | |
_gmm-rescore-lattice() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --old-acoustic-scale --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-rescore-lattice gmm-rescore-lattice | |
_gmm-init-et() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --dim --help --normalize-type --print-args --seed --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-init-et gmm-init-et | |
_gmm-global-get-frame-likes() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --gselect --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-global-get-frame-likes gmm-global-get-frame-likes | |
_gmm-decode-simple() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --allow-partial --beam --config --help --print-args --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-decode-simple gmm-decode-simple | |
_gmm-basis-fmllr-accs-gpost() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --spk2utt --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-basis-fmllr-accs-gpost gmm-basis-fmllr-accs-gpost | |
_gmm-decode-biglm-faster() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --allow-partial --beam --beam-delta --config --hash-ratio --help --max-active --print-args --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-decode-biglm-faster gmm-decode-biglm-faster | |
_gmm-transform-means() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-transform-means gmm-transform-means | |
_gmm-info() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-info gmm-info | |
_gmm-et-acc-a() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --spk2utt --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-et-acc-a gmm-et-acc-a | |
_gmm-decode-faster-regtree-mllr() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --allow-partial --beam --beam-delta --binary --config --hash-ratio --help --max-active --print-args --utt2spk --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-decode-faster-regtree-mllr gmm-decode-faster-regtree-mllr | |
_gmm-init-lvtln() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --default-class --dim --help --male-female --num-blocks --num-classes --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-init-lvtln gmm-init-lvtln | |
_gmm-boost-silence() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --boost --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-boost-silence gmm-boost-silence | |
_gmm-et-get-b() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-et-get-b gmm-et-get-b | |
_gmm-gselect() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --gselect --help --n --print-args --verbose --write-likes" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-gselect gmm-gselect | |
_gmm-init-model() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --var-floor --verbose --write-occs" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-init-model gmm-init-model | |
_gmm-align-compiled() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --beam --binary --config --help --print-args --retry-beam --self-loop-scale --transition-scale --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-align-compiled gmm-align-compiled | |
_gmm-est-lvtln-trans() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --logdet-scale --norm-type --print-args --spk2utt --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-est-lvtln-trans gmm-est-lvtln-trans | |
_gmm-et-est-b() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --learning-rate --print-args --renormalize --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-et-est-b gmm-et-est-b | |
_gmm-latgen-simple() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --allow-partial --beam --config --determinize-lattice --help --lattice-beam --max-arcs --max-loop --max-mem --print-args --prune-interval --verbose --word-symbol-table" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-latgen-simple gmm-latgen-simple | |
_gmm-diff-accs() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-diff-accs gmm-diff-accs | |
_gmm-est-map() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --spk2utt --tau --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-est-map gmm-est-map | |
_gmm-copy-et() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --normalize-type --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-copy-et gmm-copy-et | |
_gmm-scale-accs() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-scale-accs gmm-scale-accs | |
_gmm-sum-accs() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-sum-accs gmm-sum-accs | |
_gmm-ismooth-stats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --smooth-from-model --tau --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-ismooth-stats gmm-ismooth-stats | |
_gmm-global-copy() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-global-copy gmm-global-copy | |
_gmm-est-fmllr-gpost() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --fmllr-min-count --fmllr-num-iters --fmllr-update-type --help --print-args --spk2utt --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-est-fmllr-gpost gmm-est-fmllr-gpost | |
_gmm-align-compiled-plusphones() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--acoustic-scale --alpha --beam --binary --config --help --max-gauss --print-args --retry-beam --self-loop-scale --transition-scale --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-align-compiled-plusphones gmm-align-compiled-plusphones | |
_gmm-get-feat-deriv() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-get-feat-deriv gmm-get-feat-deriv | |
_gmm-make-regtree() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --max-leaves --print-args --sil-phones --state-occs --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-make-regtree gmm-make-regtree | |
_gmm-global-acc-stats-twofeats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --gselect --help --print-args --update-flags --verbose --weights" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-global-acc-stats-twofeats gmm-global-acc-stats-twofeats | |
_gmm-init-trans() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-init-trans gmm-init-trans | |
_gmm-est-regtree-fmllr-ali() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --fmllr-min-count --fmllr-num-iters --fmllr-update-type --fmllr-use-regtree --help --print-args --spk2utt --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _gmm-est-regtree-fmllr-ali gmm-est-regtree-fmllr-ali | |
_copy-feats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --htk-in --print-args --sphinx-in --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _copy-feats copy-feats | |
_splice-feats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --left-context --print-args --right-context --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _splice-feats splice-feats | |
_fmpe-init() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --context-expansion --help --post-scale --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fmpe-init fmpe-init | |
_compute-mfcc-feats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--cepstral-lifter --channel --config --debug-mel --dither --energy-floor --frame-length --frame-shift --help --high-freq --htk-compat --low-freq --num-ceps --num-mel-bins --output-format --preemphasis-coefficient --print-args --raw-energy --remove-dc-offset --round-to-power-of-two --sample-frequency --subtract-mean --use-energy --utt2spk --verbose --vtln-high --vtln-low --vtln-map --vtln-warp --window-type" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _compute-mfcc-feats compute-mfcc-feats | |
_fmpe-sum-accs() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fmpe-sum-accs fmpe-sum-accs | |
_fmpe-est() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --l2-weight --learning-rate --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fmpe-est fmpe-est | |
_append-feats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --feats-offset-in1 --feats-offset-in2 --help --num-feats-in1 --num-feats-in2 --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _append-feats append-feats | |
_remove-mean() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _remove-mean remove-mean | |
_compute-fbank-feats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--channel --config --debug-mel --dither --energy-floor --frame-length --frame-shift --help --high-freq --htk-compat --low-freq --num-mel-bins --output-format --preemphasis-coefficient --print-args --raw-energy --remove-dc-offset --round-to-power-of-two --sample-frequency --subtract-mean --use-energy --utt2spk --verbose --vtln-high --vtln-low --vtln-map --vtln-warp --window-type" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _compute-fbank-feats compute-fbank-feats | |
_extract-segments() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --min-segment-length --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _extract-segments extract-segments | |
_compute-cmvn-stats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --spk2utt --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _compute-cmvn-stats compute-cmvn-stats | |
_fmpe-apply-transform() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--add-to-features --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fmpe-apply-transform fmpe-apply-transform | |
_extend-transform-dim() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --new-dimension --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _extend-transform-dim extend-transform-dim | |
_add-deltas() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --delta-order --delta-window --help --print-args --truncate --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _add-deltas add-deltas | |
_feat-to-len() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _feat-to-len feat-to-len | |
_apply-cmvn() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --norm-vars --print-args --utt2spk --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _apply-cmvn apply-cmvn | |
_subset-feats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --n --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _subset-feats subset-feats | |
_feat-to-dim() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _feat-to-dim feat-to-dim | |
_compose-transforms() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--b-is-affine --binary --config --help --print-args --utt2spk --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _compose-transforms compose-transforms | |
_compute-spectrogram-feats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--channel --config --dither --energy-floor --frame-length --frame-shift --help --output-format --preemphasis-coefficient --print-args --raw-energy --remove-dc-offset --round-to-power-of-two --sample-frequency --subtract-mean --verbose --window-type" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _compute-spectrogram-feats compute-spectrogram-feats | |
_fmpe-copy() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --context-expansion --help --post-scale --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fmpe-copy fmpe-copy | |
_get-full-lda-mat() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _get-full-lda-mat get-full-lda-mat | |
_fmpe-acc-stats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--binary --config --help --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _fmpe-acc-stats fmpe-acc-stats | |
_extract-feature-segments() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --frame-rate --help --min-segment-length --print-args --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _extract-feature-segments extract-feature-segments | |
_compute-plp-feats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--cepstral-lifter --cepstral-scale --channel --compress-factor --config --debug-mel --dither --energy-floor --frame-length --frame-shift --help --high-freq --htk-compat --low-freq --lpc-order --num-ceps --num-mel-bins --output-format --preemphasis-coefficient --print-args --raw-energy --remove-dc-offset --round-to-power-of-two --sample-frequency --subtract-mean --use-energy --utt2spk --verbose --vtln-high --vtln-low --vtln-map --vtln-warp --window-type" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _compute-plp-feats compute-plp-feats | |
_transform-feats() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="--config --help --print-args --utt2spk --verbose" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _transform-feats transform-feats |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#Run on the Kaldi src directory eg | |
#makekaldibc.py /path/to/kaldi/trunk/src > kaldi.bc | |
#and source the output . kaldi.bc | |
import sys,os,stat | |
import commands | |
def runcommand(cmd): | |
return commands.getoutput(cmd) | |
cmd = """_CMD() | |
{ | |
local cur prev opts filters len pprev | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
if (( $COMP_CWORD > 2)) ; then | |
pprev="${COMP_WORDS[COMP_CWORD-2]}" | |
else | |
pprev="NULL" | |
fi | |
opts="OPTS" | |
if [[ ${cur} == -* ]] ; then | |
COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
return 0 | |
fi | |
} | |
complete -o default -o nospace -F _CMD CMD""" | |
def makecompletetions(dir): | |
for dirname, dirnames, filenames in os.walk(dir): | |
for filename in filenames: | |
fn = os.path.join(dirname, filename) | |
f = os.path.splitext(filename)[0] | |
if ".py" in fn: | |
continue | |
if ".sh" in fn: | |
continue | |
if ".pl" in fn: | |
continue | |
executable = stat.S_IEXEC | stat.S_IXGRP | stat.S_IXOTH | |
if os.path.isfile(fn): | |
st = os.stat(fn) | |
mode = st.st_mode | |
if mode & executable: | |
#print fn | |
flags = [] | |
for line in runcommand(fn + " --help").split("\n"): | |
#print line | |
line = line.strip() | |
if line.startswith("--"): | |
flags.append(line.split()[0].strip()) | |
if len(flags) > 0: | |
#print fn, flagsa | |
opts = " ".join(flags) | |
print cmd.replace("OPTS",opts).replace("CMD",f) | |
#print f,opts | |
#print(fn, oct(mode)) | |
if __name__ == "__main__": | |
for i in range(1, len(sys.argv)): | |
#print sys.argv[i] | |
makecompletetions(sys.argv[i]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment