I am trying to extend a Greek dictionary with g2p-seq2seq. After training, I run the evaluation and the results are: WER=1. So, I run interactive mode to see the outputs. The results are attached, giving in all letters the error WARNING:tensorflow:Invalid symbol:γ. I checked the vocab.g2p file and indeed it don't contain any of the Greek letters (attached too). After reading this https://sourceforge.net/p/cmusphinx/discussion/help/thread/951e4dff/, I tried to add the Greek letters in the vocab.g2p, but when I run the model again the following error occurs. This error happens even if I add an English letter!!
2019-05-30 14:21:49.271776: W tensorflow/core/framework/op_kernel.cc:1401] OP_REQUIRES failed at save_restore_v2_ops.cc:184 : Not found: Key transformer/symbol_modality_71_4/shared/weights_0 not found in checkpoint
Traceback (most recent call last):
File "/usr/local/bin/g2p-seq2seq", line 11, in <module>
load_entry_point('g2p-seq2seq==6.2.2a0', 'console_scripts', 'g2p-seq2seq')()
File "/usr/local/lib/python2.7/dist-packages/g2p_seq2seq-6.2.2a0-py2.7.egg/g2p_seq2seq/app.py", line 123, in main
g2p_model.interactive()
File "/usr/local/lib/python2.7/dist-packages/g2p_seq2seq-6.2.2a0-py2.7.egg/g2p_seq2seq/g2p.py", line 264, in interactive
self.prepare_interactive_model()
File "/usr/local/lib/python2.7/dist-packages/g2p_seq2seq-6.2.2a0-py2.7.egg/g2p_seq2seq/g2p.py", line 183, in prepare_interactive_model
raise StandardError("Invalid model in {}".format(self.params.model_dir))
StandardError: Invalid model in cmusphinx-el-gr-5.2/trained-dict</module>
I am trying to extend a Greek dictionary with g2p-seq2seq. After training, I run the evaluation and the results are: WER=1. So, I run interactive mode to see the outputs. The results are attached, giving in all letters the error WARNING:tensorflow:Invalid symbol:γ. I checked the vocab.g2p file and indeed it don't contain any of the Greek letters (attached too). After reading this https://sourceforge.net/p/cmusphinx/discussion/help/thread/951e4dff/, I tried to add the Greek letters in the vocab.g2p, but when I run the model again the following error occurs. This error happens even if I add an English letter!!
2019-05-30 14:21:49.271776: W tensorflow/core/framework/op_kernel.cc:1401] OP_REQUIRES failed at save_restore_v2_ops.cc:184 : Not found: Key transformer/symbol_modality_71_4/shared/weights_0 not found in checkpoint
Traceback (most recent call last):
File "/usr/local/bin/g2p-seq2seq", line 11, in <module>
load_entry_point('g2p-seq2seq==6.2.2a0', 'console_scripts', 'g2p-seq2seq')()
File "/usr/local/lib/python2.7/dist-packages/g2p_seq2seq-6.2.2a0-py2.7.egg/g2p_seq2seq/app.py", line 123, in main
g2p_model.interactive()
File "/usr/local/lib/python2.7/dist-packages/g2p_seq2seq-6.2.2a0-py2.7.egg/g2p_seq2seq/g2p.py", line 264, in interactive
self.prepare_interactive_model()
File "/usr/local/lib/python2.7/dist-packages/g2p_seq2seq-6.2.2a0-py2.7.egg/g2p_seq2seq/g2p.py", line 183, in prepare_interactive_model
raise StandardError("Invalid model in {}".format(self.params.model_dir))
StandardError: Invalid model in cmusphinx-el-gr-5.2/trained-dict</module>
Please help!
Try phonetisaurus instead:
https://github.com/AdolfVonKleist/Phonetisaurus