Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module 'phonetisaurus' has no attribute 'predict' #84

Open
MI35 opened this issue Feb 12, 2023 · 0 comments
Open

module 'phonetisaurus' has no attribute 'predict' #84

MI35 opened this issue Feb 12, 2023 · 0 comments

Comments

@MI35
Copy link

MI35 commented Feb 12, 2023

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
[...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant