Zacytuj

This paper investigates the effectiveness of sentiment analysis (SA) methods, ranging from rule-based approaches to deep learning architectures, in analysing textual data. The study focuses on three Python libraries: TextBlob, VADER, and Flair, evaluating their accuracy on a public dataset of Twitter posts. Additionally, custom neural network architectures are developed to optimize sentiment classification. Results indicate that while rule-based libraries offer simplicity, deep learning-based libraries show promise for higher accuracy. The customized LSTM models, particularly LSTM2 with architectural adjustments and regularization techniques, demonstrate improved performance over baseline models with classification accuracy as high as 76.3%.