Text summarization plays a crucial role in extracting key information from lengthy documents, making it easier for users to comprehend…