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

No pronunciation for word: (ALL!) #72

Open
Rita-ritally opened this issue Jan 12, 2022 · 4 comments
Open

No pronunciation for word: (ALL!) #72

Rita-ritally opened this issue Jan 12, 2022 · 4 comments

Comments

@Rita-ritally
Copy link

I have tried the whole process twice to make sure that there is no mistake in my environment. But it still wrong in
"bin/phonetisaurus-apply --model train/model.fst --word_list text.wlist"
what should i do......

image

@danijel3
Copy link
Contributor

danijel3 commented Oct 4, 2022

How did you create "model.fst"?

Oftentimes, it's important to use the same type of input for "text.wlist" as well as what was used in "model.fst". A common problem that happened to me was that the model was trained on all capital letters and when I used it on lowercase I would get this message.

@YangangCao
Copy link

I use lowercase letters to train model.fst, I also get bad results

$ ./phonetisaurus-apply  --model train/model.fst  --word_list oov.txt
WARNING:phonetisaurus-apply:2024-09-19 01:41:07:  No pronunciation for word: 'question'

$ ./phonetisaurus-apply  --model train/model.fst  --word_list oov.txt
WARNING:phonetisaurus-apply:2024-09-19 01:41:42:  No pronunciation for word: 'QUESTION'

@YangangCao
Copy link

phonetisaurus-g2pfst also get nothing

@YangangCao
Copy link

I find the solution, I didn't generate training lexicon in right way, the following way in README.md is good:

$ mkdir example
$ cd example
$ wget https://raw.githubusercontent.com/cmusphinx/cmudict/master/cmudict.dict
# Clean it up a bit and reformat:
$ cat cmudict.dict \
  | perl -pe 's/\([0-9]+\)//;
              s/\s+/ /g; s/^\s+//;
              s/\s+$//; @_ = split (/\s+/);
              $w = shift (@_);
              $_ = $w."\t".join (" ", @_)."\n";' \
  > cmudict.formatted.dict

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

3 participants