CPC G06F 16/3322 (2019.01) [G06F 40/205 (2020.01); G06F 40/30 (2020.01); G06F 40/56 (2020.01)] | 12 Claims |
1. A sentence generation device comprising a processor configured to execute operations comprising:
receiving input of a first sentence and an output length of a word string, wherein the output length of a word string indicates a target number of words in a second sentence, and the output length of the word string represents a condition of generating the second sentence from the first sentence;
estimating an importance score of each word in the first sentence using a pre-trained content selection model, wherein the importance score indicates a level of importance for determining whether to select said each word for generating the second sentence having the output length of the word string, the pre-trained content selection model determines the importance score based on a combination of attention match between the first sentence and the second sentence and semantic fusion between the first sentence and the second sentence, and the pre-trained content selection model comprises the output length of the word string in embedding form; and
generating the second sentence having the output length of the word string based on the importance score according to content selection by a combination of the pre-trained content selection model and sentence generation by a generative model.
|