Menu

g2p-seq2seq fails to save model

Help
2017-01-24
2017-01-24
  • Jonne Saleva

    Jonne Saleva - 2017-01-24

    Hi there,

    I tried using the search functionality, github docs and looked at the source code for g2p-seq2seq but couldn't find an answer, so I thought I'd ask here:

    When I run

    g2p-seq2seq --train train.dic \
                              --model my_model_folder \
                              --size 2 \
                              --num_layers 2 \
                              --max_steps 10
    

    I get the following output

    Preparing G2P data
    Creating vocabularies in my_model_folder
    Creating vocabulary my_model_folder/vocab.phoneme
    Creating vocabulary my_model_folder/vocab.grapheme
    Reading development and training data.
    Creating 2 layers of 2 units.
    Created model with fresh parameters.
    Training done.
    Traceback (most recent call last):
      File "/Users/admin/anaconda/bin/g2p-seq2seq", line 11, in <module>
        load_entry_point('g2p-seq2seq==5.0.0a0', 'console_scripts', 'g2p-seq2seq')()
      File "build/bdist.macosx-10.6-x86_64/egg/g2p_seq2seq/app.py", line 67, in main
      File "build/bdist.macosx-10.6-x86_64/egg/g2p_seq2seq/g2p.py", line 234, in train
      File "build/bdist.macosx-10.6-x86_64/egg/g2p_seq2seq/g2p.py", line 337, in evaluate
    RuntimeError: Model not found in my_model_folder
    

    Same error gets repeated if i change into another conda virtual environment. Any idea what could be going on?

    Thank you very much for all your help!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.