This study addresses the challenge of sentiment analysis and text classification in user-generated comments, an essential task for understanding public opinion in the digital age. With the widespread adoption of social media, the sheer volume of text data has increased exponentially, thereby necessitating advanced analytical tools. The study integrates Long Short-Term Memory (LSTM) networks with attention mechanisms to develop a model adept at both classifying and analyzing the sentiment of textual comments. The research methodology commences with data cleaning, tokenization, and feature extraction, subsequently followed by the implementation of a bidirectional LSTM architecture augmented with an attention mechanism. The model underwent rigorous training and testing on a comprehensive dataset, yielding high accuracy rates in sentiment analysis and text classification. The results underscore the model’s proficiency in capturing sentiment nuances and underscore its potential for deployment in e-commerce and content recommendation systems, emphasizing the practical implications of this research for enhancing decision-making processes in businesses and among policymakers.
Read full abstract