cmusphinx / g2p-seq2seq

G2P with Tensorflow
Other
667 stars 196 forks source link

fixed python 2 to python 3 errors #134

Closed maxisawesome closed 6 years ago

maxisawesome commented 6 years ago

There were a few things that weren't working due to old python 2 notation. I fixed them and now it runs on my machine! The g2p_encoder.py and g2p_unittest.py both made 'python setup.py test' fail, and the error in g2p.py made the interactive model fail when typing anything in. Most of this is talked about in issue #129

maxisawesome commented 6 years ago

The error that throws - "no module google.protobuf," you need to solve like this: https://github.com/tensorflow/tensorflow/issues/6341 with the relevent answer being this one: "the init.py file is missing in site-packages/google directory. creating an empty init.py file there should work. thanks. @fangbq"

nurtas-m commented 6 years ago

@maxisawesome, thank you so much for your contribution!