Advancing Text Summarization and Classification: Deep Insights from Transformer-Based Statistical Learning