To provide a method and a device for generating an interactive model which achieves improvement for variety in answers, and is able to answer efficiently to question sentences given by users.SOLUTION: A method comprises the steps of: obtaining a corpus sample collection composed of corpus samples including input information and target answer information; categorizing the corpus samples in the corpus sample collection and setting a discrete latent variable to each of the corpus samples based on a result of the categorization, for generating a training sample collection composed of training samples including the input information, the target answer information, and the discrete latent variables; and training a prior established neural network using the training sample collection, for obtaining an interactive model for characterizing correspondence between the inputted input information and the output target answer information.EFFECT: Introducing the discrete latent variables enables efficiently modeling a 'one-to-many' relation among interactive texts.SELECTED DRAWING: Figure 2
METHOD AND DEVICE FOR GENERATING INTERACTIVE MODELS