A computer-implemented learning method includes combining a first score for a word included in a dictionary of a model and a second score for the word calculated based on a length of the word and a number of remaining characters up to an upper limit number of characters of a summary, the first score being output in response to input of input text to the model, calculating, based on a combined score generated by the combining, a distribution of generation probabilities of the word, and updating, based on the calculated distribution of the generation probabilities, parameters in the model.
LEARNING METHOD AND GENERATING APPARATUS