Abstract

With the fast growth of online content and social media platforms, the amount of user- generated data available in the form of product evaluations, social media postings, and online debates has rapidly expanded. It has become essential for organizations to comprehend client attitudes, make wise decisions, and improve their goods and services by analysing the sentiment indicated in this data. This paper aims to develop a sentiment analysis system for product reviews using URLs of particular item as data sources. It utilizes web scraping techniques to collect textual information from web pages. Natural Language Processing (NLP) techniques are applied for data pre-processing, including tokenization and stop word removal. Machine learning models like Support Vector Classifier (SVC), Random Forest, KNN, Logistic Regression, Naive Bayes and Deep learning models like LSTM and GRU are used for sentiment analysis. Performance measures such as recall, accuracy, and precision are employed to evaluate the models. High scores were consistently achieved by the LSTM and GRU models across all measures, demonstrating their potency in successfully capturing sequential relationships. With strong F-1 ratings of 91% and 90%, respectively, Long Short Term Memory (LSTM) and Gated Recurrent Units (GRU) regularly beat other models, demonstrating their outstanding precision-recall balance. Conversely, K-Nearest Neighbor (KNN) presents a significant trade-off, offering a blazing-fast training time of 0.01 seconds but demanding an extensive 102.34 seconds for prediction, resulting in a lower F-1 score of 47%. Support Vector Machine (SVM) and Logistic Regression achieve competitive F-1 scores of 85% and 84%, respectively, with relatively slow training and prediction times, striking a balance between performance and efficiency. Naive Bayes and Random Forest, while respectable in accuracy, fall slightly behind with F-1 scores of 71% and 80%, respectively, highlighting the significance of taking into account both performance and computing efficiency when choosing the best approach.Through this research, valuable insights are gained into the effectiveness and accuracy of different algorithms in sentiment analysis. The findings contribute to the understanding of sentiment analysis techniques and offer guidance for selecting the most suitable algorithm for URL-based sentiment analysis applications.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.