-
Notifications
You must be signed in to change notification settings - Fork 126
Open
Description
Dear all,
does phonetisaurus really have the attribute 'predict'?
respectively what paths / env variables are relevant for it?
Many thanks in advance.
my setup in Docker:
opt/kaldi
opt/kaldi/Phonetisaurus (manually installed as in README)
opt/kaldi/egs/vosk-model-de-0.21-compile
- in this folder:
- when I run "compile-graph.sh", it calls "dict.py" and 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 <module>
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
[...]
Metadata
Metadata
Assignees
Labels
No labels