Menu

g2p install failed : fst/fstlib.h not found

Help
paul
2016-06-02
2016-07-07
  • paul

    paul - 2016-06-02

    Hello everyone,

    I tried to install OpenFst to use it with SphinxTrain and recompile it with g2p enabled, and it seem to work but I got stuck with the following error :

    checking fst/fstlib.h usability...
    no checking fst/fstlib.h presence...
    no checking for fst/fstlib.h...
    no configure: error: fst/fstlib.h header not found

    But the OpenFst binaries are well installed in /usr/local/lib/fst and the header too in /usr/local/include/fst..

    Can anyone give me a clue about the issue ?

     
    • Nickolay V. Shmyrev

      It looks in /usr/include by default, not in /usr/local/include. You probably need to set CFLAGS and LDFLAGS before configure:

       CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure ....
      

      Overall I do not recommend you to use this feature, it never worked well. Use phonetisaurus to extend the dictionary or g2p-seq2seq.

       
  • paul

    paul - 2016-06-09

    Hello,

    thank you Nickolay for the answer, I have seen phonetisaurus but

    I have another question, to extend a dictionary, what tool of phonetisaurus have I to use (g2p, align...) ?

    And about phonetisaurus I didn't see an "output" option to write the generated dictionary in a file ?

     
    • Nickolay V. Shmyrev

      And about phonetisaurus I didn't see an "output" option to write the generated dictionary in a file ?

      You just redirect the output to a file:

       phonetisaurus-g2p --model=cmudict.dic.fst --input=a.a --isfile --words > file.out
      

      You can also try g2p-seq2seq, it should work pretty well

      http://github.com/cmusphinx/g2p-seq2seq

       
      • Nickolay V. Shmyrev

         

        Last edit: Nickolay V. Shmyrev 2016-07-07

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.