This paper presents a new convolutional neural network (CNN) architecture for text classification and sentiment analysis, evaluating various optimizer algorithms across three text review datasets of different sizes. The study finds that adaptive optimizers, particularly Adam and RMSProp, outperform others, with the best CNN model achieving 90.48% accuracy. The research highlights the importance of selecting the appropriate optimizer for enhancing the performance of deep learning models in natural language processing tasks.