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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Thanks for your contribution. Those fixes are in now.