alphacep / alphacep/vosk-api

module 'phonetisaurus' has no attribute 'predict'

Open
#1,270 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
15.1k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.