Advancements in Natural Language Processing: Exploring Transformer-Based Architectures for Text Understanding