A Stochastic Approach for Dialog Management based on Neural Networks