This application discloses a method and
system for generating original text summaries based on a given question, belonging to the field of
text processing technology. Step 1: Input each
sentence of the original text U and the given question q into a
sentence similarity model to calculate the similarity; Step 2: Divide the original text U into multiple text blocks u1, u2, u3, u4, u5, u6, u7, u8, u9, u1, u99, u1, u1, u99, u1, u1, u1, u2, u1, u1, u2, u1, u2, u3, u1 ...3, u4, u1, u2, u3, u3, u4, u1, u2, u3, u3, u4, u1, u2, u3, u3, 2、 u3……u m Step 3: Input all text blocks sequentially into the
encoder of the summarization generation model for encoding; Step 4: Input the similarity and encoding results from Step 1 into the decoder, fuse word-level and
sentence-level attention in the joint attention module, and generate a summary based on the
beam search algorithm. This application addresses the problem of insufficient explicit attention to the question in traditional
transformer-based end-to-end summarization schemes when faced with long input text. It utilizes a
text matching model to calculate the similarity between each sentence in the original text and the question, and integrates it into the summarization
generation process through an attention fusion module.