01/08/2023 • Mehmet Emre Toktay Aspect-Based Sentiment Analysis Application Introduction Sentiment analysis, a study area widely examined under the discipline of NLP, has found a substantial place for itself. The history of sentiment analysis emerging as a need is parallel to social media. As social media usage has become widespread, the necessity to detect emotions in what people say has also arisen. For many of us, the question, “what do other people think about this?” is a significant criterion in the decision-making stage. Thanks to the internet becoming widespread, the answer to this question has become more accessible for all of us. The general sentiment analysis has two shortcomings; assuming there is only one emotion in a text and being unable to retrieve information about what opinion is expressed on while performing sentiment analysis. The analysis that will reveal these shortcomings is named “Aspect-Based Sentiment Analysis” (ABSA) in literature. The problem attempted to be solved here is extracting all opinions within a text with the aspects they are targeting. If we were to explain with examples; Aspect/Direction Determination: This identifies the target in the mentioned text, for example, "battery life", "camera", "service" or "customer service". Sentiment Detection: For each determined aspect, the sentiment (positive, negative or neutral) is identified. For instance: "The camera quality of this phone is excellent but the battery life is disappointing." Here there are two aspects: "camera quality" and "battery life", with positive and negative sentiments, respectively. Technical Application The implementation of ABSA involves Natural Language Processing (NLP) techniques and machine learning models. The main steps include: Data Preprocessing: Text is cleaned, tokenized, and converted into a format suitable for model training. Aspect Extraction: Techniques such as dependency parsing or topic modeling can be used to extract aspects from the text. Sentiment Classification: For each extracted aspect, sentiment is classified using traditional algorithms like LSTM, BERT, or SVM. Some Applications and Use Cases -Analyzing product reviews to determine the most and least liked features. -Measuring guest sentiments about different services and facilities. -Understanding public sentiment about different components of a policy or law. Challenges and Limitations Ambiguity: Texts can sometimes be ambiguous, which means it can be difficult to determine the sentiment. Sarcastic Humor: Existing models may struggle to understand sarcastic humor, which could lead to incorrect sentiment predictions. Conclusion Aspect-Based Sentiment Analysis bridges between broad sentiment summary and detailed text analysis. By focusing on specific aspects within a text, businesses and researchers can obtain richer information and make more informed decisions. This application has the potential to accelerate the work of every company collecting feedback for customer experience, reviewing comments on the internet and social media. It can also aid programs regarding the Voice of Customer (VoC) which is a critical point for LSS and CX titles. For instance, by employing web scraping, every comment written about the company on the internet can be collected, subjected to aspect-based sentiment analysis, and insights can be obtained. Another area where it can be used is to identify and display misleading score/comment relationships, such as Turkish users giving 1 star on Google Play just to have their comments seen, yet expressing their satisfaction in the comment section. The Gradio application below has been prepared to perform aspect-based sentiment analysis on comments. The data set used for machine learning and training contains restaurant reviews. While working on my model, a ready-made model has been used in this application. It has not gone through machine learning processes that would strain my old trusty machine, for being a simple example, hence the f1 score is between 60-70%. If you try examples with Turkish synonyms, or a taunting approach, it may not be able to respond to you. A few examples as: -Yemekler güzeldi. -Servisi beğenmedim. -Ambiyans fena değildi. -Restorantı çok beğenmedim. Yemekler çok yavaş geldi ama manzara çok güzeldi. -Servis çok kötüydü. Çalışanlar çok kabaydı. -Uzun süre gitmek istiyordum, ilk defa gitme fırsatım oldu. Öncelikle yorumların gerçekliği payı var. Gerçekten temiz ve titiz çalışan bir işletme. Yemekler çok lezzetliydi. Fiyatların çok pahalı olması beni biraz mutsuz etti, düzenli olarak gidilemez.