Patent attributes
A text preparation apparatus is configured to in the decoding processing: perform first-layer recurrent neural network processing for phrase types to be used in the text and second-layer recurrent neural network processing for words appropriate for each of the phrase types; determine a phrase appropriate for each of the phrase types based on outputs of the second-layer recurrent neural network processing; generate a first vector set from a state vector of a previous step in the first-layer recurrent neural network processing and the feature vector sets, each vector of the first vector set being generated based on similarity degrees between individual vectors in one of the feature vector sets and the state vector; generate a second vector based on similarity degrees between individual vectors in the first vector set and the state vector; and input the second vector to a given step in the first-layer recurrent neural network processing.