Text summarization involves reducing the number of words in a text while maintaining its meaning. It increases productivity and…