зеркало из https://github.com/mozilla/kaldi.git
trunk: minor fix to prepare_dict script for tedlium, to pass current validation script (remove dups)
git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@4749 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
This commit is contained in:
Родитель
af83343428
Коммит
495e4cfa69
|
@ -34,7 +34,7 @@ echo -n >$dir/extra_questions.txt
|
||||||
(echo '!SIL SIL'; echo '[BREATH] BRH'; echo '[NOISE] NSN'; echo '[COUGH] CGH';
|
(echo '!SIL SIL'; echo '[BREATH] BRH'; echo '[NOISE] NSN'; echo '[COUGH] CGH';
|
||||||
echo '[SMACK] SMK'; echo '[UM] UM'; echo '[UH] UHH'
|
echo '[SMACK] SMK'; echo '[UM] UM'; echo '[UH] UHH'
|
||||||
echo '<UNK> NSN' ) | \
|
echo '<UNK> NSN' ) | \
|
||||||
cat - $dir/lexicon_words.txt > $dir/lexicon.txt
|
cat - $dir/lexicon_words.txt | sort | uniq > $dir/lexicon.txt
|
||||||
|
|
||||||
# Check that the dict dir is okay!
|
# Check that the dict dir is okay!
|
||||||
utils/validate_dict_dir.pl $dir || exit 1
|
utils/validate_dict_dir.pl $dir || exit 1
|
||||||
|
|
Загрузка…
Ссылка в новой задаче