alphacep / alphacep/vosk-api

module 'phonetisaurus' has no attribute 'predict'

Offen
#1,270 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Jupyter Notebook
Sterne
15.1k
Forks
1.8k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Dear all,
running "compile-graph.sh" in kaldi-container get following error:

**AttributeError: module 'phonetisaurus' has no attribute 'predict'**

```
# bash compile-graph.sh
+ rm -rf data/extra.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/nonsilence_phones.txt db/phone/optional_silence.txt db/phone/silence_phones.txt data/dict
+ ./dict.py
Traceback (most recent call last):
File "./dict.py", line 25, in
for w, phones in phonetisaurus.predict(new_words, "db/g2p/de.fst"):
AttributeError: module 'phonetisaurus' has no attribute 'predict'
+ ngram-count -wbdiscount -order 4 -text db/extra.txt -lm data/extra.lm.gz
+ ngram -order 4 -lm db/de.lm.gz -mix-lm data/extra.lm.gz -lambda 0.95 -write-lm data/de-mix.lm.gz
[...]
```

"for w, phones in phonetisaurus.predict" is in your(?) "dict.py".
Is it still up to date?
My env variables and paths seem to be set correctly -> module 'phonetisaurus' can be found.
Many thanks in advance

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.