alphacep / alphacep/vosk-api

Graph compilation - Error missing file

Abierto
#1,148 7 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Jupyter Notebook
Estrellas
15.1k
Forks
1.8k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hi, I have downloaded the model compile file from link [https://alphacephei.com/vosk/models/vosk-model-en-us-0.22-compile.zip](url) and while running the `compile-graph.sh` to compile graph in kaldi, I got a following error like below

```
root@MAK:~/kaldi/tools/model/vosk-model-en-us-0.22-compile# compile-graph.sh
+ rm -rf 'data/*.lm.gz' data/lang_local data/dict data/lang data/lang_test data/lang_test_rescore
+ rm -rf exp/lgraph
+ rm -rf exp/graph
+ mkdir -p data/dict
+ cp db/phone/extra_questions.txt db/phone/extra_questions.txt:Zone.Identifier db/phone/nonsilence_phones.txt db/phone/nonsilence_phones.txt:Zone.Identifier db/phone/optional_silence.txt db/phone/optional_silence.txt:Zone.Identifier db/phone/silence_phones.txt db/phone/silence_phones.txt:Zone.Identifier data/dict
+ python3 ./dict.py
+ ngram-count -wbdiscount -order 4 -text db/extra.txt -lm data/extra.lm.gz
/root/kaldi/tools/model/vosk-model-en-us-0.22-compile/compile-graph.sh: line 15: ngram-count: command not found
+ ngram -order 4 -lm db/en-230k-0.5.lm.gz -mix-lm data/extra.lm.gz -lambda 0.95 -write-lm data/en-mix.lm.gz
/root/kaldi/tools/model/vosk-model-en-us-0.22-compile/compile-graph.sh: line 16: ngram: command not found
+ ngram -order 4 -lm data/en-mix.lm.gz -prune 3e-8 -write-lm data/en-mixp.lm.gz
/root/kaldi/tools/model/vosk-model-en-us-0.22-compile/compile-graph.sh: line 17: ngram: command not found
+ ngram -lm data/en-mixp.lm.gz -write-lm data/en-mix-small.lm.gz
/root/kaldi/tools/model/vosk-model-en-us-0.22-compile/compile-graph.sh: line 18: ngram: command not found
+ utils/prepare_lang.sh data/dict '[unk]' data/lang_local data/lang
utils/prepare_lang.sh data/dict [unk] data/lang_local data/lang
Checking data/dict/silence_phones.txt ...
--> reading data/dict/silence_phones.txt
--> text seems to be UTF-8 or ASCII, checking whitespaces
--> text contains only allowed whitespaces
--> data/dict/silence_phones.txt is OK

Checking data/dict/optional_silence.txt ...
--> reading data/dict/optional_silence.txt
--> text seems to be UTF-8 or ASCII, checking whitespaces
--> text contains only allowed whitespaces
--> data/dict/optional_silence.txt is OK

Checking data/dict/nonsilence_phones.txt ...
--> reading data/dict/nonsilence_phones.txt
--> text seems to be UTF-8 or ASCII, checking whitespaces
--> text contains only allowed whitespaces
--> data/dict/nonsilence_phones.txt is OK

Checking disjoint: silence_phones.txt, nonsilence_phones.txt
--> disjoint property is OK.

Checking data/dict/lexicon.txt
--> reading data/dict/lexicon.txt
--> text seems to be UTF-8 or ASCII, checking whitespaces
--> text contains only allowed whitespaces
--> data/dict/lexicon.txt is OK

Checking data/dict/extra_questions.txt ...
--> reading data/dict/extra_questions.txt
--> text seems to be UTF-8 or ASCII, checking whitespaces
--> text contains only allowed whitespaces
--> data/dict/extra_questions.txt is OK
--> SUCCESS [validating dictionary directory data/dict]

**Creating data/dict/lexiconp.txt from data/dict/lexicon.txt
utils/prepare_lang.sh: line 547: fstaddselfloops: command not found
ERROR: FstHeader::Read: Bad FST header: standard input
+ utils/format_lm.sh data/lang data/en-mix-small.lm.gz data/dict/lexicon.txt data/lang_test
Converting 'data/en-mix-small.lm.gz' to FST
gzip: data/en-mix-small.lm.gz: No such file or directory
utils/format_lm.sh: line 55: arpa2fst: command not found
+ utils/mkgraph.sh --self-loop-scale 1.0 data/lang_test exp/chain/tdnn exp/chain/tdnn/graph
mkgraph.sh: expected data/lang_test/G.fst to exist
+ utils/build_const_arpa_lm.sh data/en-mix.lm.gz data/lang_test data/lang_test_rescore
utils/build_const_arpa_lm.sh: line 45: arpa-to-const-arpa: command not found
+ rnnlm/change_vocab.sh data/lang/words.txt exp/rnnlm exp/rnnlm_out
rnnlm/change_vocab.sh: Copying config directory.
rnnlm/change_vocab.sh: Re-generating words.txt, unigram_probs.txt, word_feats.txt and word_embedding.final.mat.
rnnlm/get_word_features.py: made features for 312336 words.
rnnlm/change_vocab.sh: line 75: rnnlm-get-word-embedding: command not found
+ utils/mkgraph_lookahead.sh --self-loop-scale 1.0 data/lang exp/chain/tdnn data/en-mix-small.lm.gz exp/chain/tdnn/lgraph
utils/mkgraph_lookahead.sh : compiling grammar data/en-mix-small.lm.gz
utils/mkgraph_lookahead.sh : expected data/en-mix-small.lm.gz to exist
```
kindly suggest where to find `en-mix-small.lm.gz` file.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.