Menu

Small bugs in sphinx4 and sphinxbase

Help
y_orlov
2011-01-07
2012-09-22
  • y_orlov

    y_orlov - 2011-01-07

    Hello,
    I would like to inform about small bugs in sphinx4 and sphinxbase, which I
    fixed in my local sources. These bugs are about non-closed file access, so
    after finishing of the apllication (using sphinx4 or pocketsphinx) running in
    WEB-APP container, parent WEB-APP could not be correctly undeployed because of
    the file access to the binary language model file (.DMP) (in sphinx4 case) or
    to the LDA transform file (in pocketsphinx case) was not finished correctly.
    in sphinx4 I fixed this adding deallocate() method in
    edu.cmu.sphinx.linguist.language.ngram.large.BinaryLoader class where class
    member private RandomAccessFile file will be closed. This deallocate() method
    should be called in deallocate() of the
    LargeNGramModel class.
    for pocketsphinx I fixed this in sphinxbase/src/libsphinxbase/feat/lda.c
    adding fclose(fh); after line 116.
    Regards,
    Yuri

     
  • Nickolay V. Shmyrev

    Thanks for your contribution. Those fixes are in now.

     

Log in to post a comment.