dialogflow / asr-server

FastCGI support for Kaldi ASR
Apache License 2.0
184 stars 86 forks source link

Rebuild when server running #8

Closed xinq2016 closed 7 years ago

xinq2016 commented 8 years ago

When I use the FastCGI api-ai server, the repository often been rebuilded. LOG (fcgi-nnet3-decoder:RebuildRepository():determinize-lattice-pruned.cc:283) Rebuilding repository.

How can I fix it?

Many thanks

folomeev commented 8 years ago

Hello!

I took a look to RebuildRespository() method comments:

// rebuild the string repository,
// freeing stuff we don't need.. we call this when memory usage // passes a supplied threshold. We need to accumulate all the // strings we need the repository to "remember", then tell it // to clean the repository.

and as I saw in code, this method is called when memory usage exceeds some threshold defined by "max-mem" option.

I guess that that you pass "--max-mem" option with some non-default value and it causes repository rebuild. Try to increase the passed value or do not pass it at all.