Evaluating Lexicon-Based Models versus BERT for Sentence-Level Sentiment Analysis in Swedish
| dc.contributor.author | Nilsson, Erik | |
| dc.contributor.author | Mansour, Ricardo | |
| dc.contributor.department | Chalmers tekniska högskola / Institutionen för data och informationsteknik | sv |
| dc.contributor.department | Chalmers University of Technology / Department of Computer Science and Engineering | en |
| dc.contributor.examiner | Johansson, Richard | |
| dc.contributor.supervisor | Dannélls, Dana | |
| dc.contributor.supervisor | Sievers, Erik | |
| dc.date.accessioned | 2025-09-05T09:59:15Z | |
| dc.date.issued | 2024 | |
| dc.date.submitted | ||
| dc.description.abstract | This thesis explores the development and evaluation of different approaches to sentiment analysis for the Swedish language, focusing on sentence-level sentiment detection. The study compares traditional rule- and lexicon-based models with modern machine learning approaches, particularly the Bidirectional Encoder Representations from Transformers (BERT), as well as a hybrid model combining the rule-based model with Support Vector Machines SVM. Utilizing the Sparv pipeline for linguistic analysis and breadkdown in tandem with the sentiment lexicon SenSALDO, we aim to enhance the existing research on Swedish rule-based models by inclusion of linguistic features. The research also involves expanding the lexicon with neutral, positive and negative entries in order to improve coverage and accuracy of sentence level sentiment analysis. The evaluation highlights the strengths and weaknesses of each model where the BERT model was the best performing overall, especially for neutral sentences, while the rule based and hybrid model were much better at positive sentences, for negative sentiment detection the hybrid SVM model was the best performing. Our thesis contributes to the ongoing discourse on effective sentiment analysis in non-English languages and offers insights for further advancements in natural language processing (NLP) for Swedish. | |
| dc.identifier.coursecode | DATX05 | |
| dc.identifier.uri | http://hdl.handle.net/20.500.12380/310424 | |
| dc.language.iso | eng | |
| dc.relation.ispartofseries | CSE-24-52 | |
| dc.setspec.uppsok | Technology | |
| dc.subject | Computer science, Sentiment analysis, BERT, Lexicon-based, Rule-based, Support Vector Machines (SVM), Swedish language, Natural language processing (NLP), Sparv, SALDO, SenSALDO, Machine learning. | |
| dc.title | Evaluating Lexicon-Based Models versus BERT for Sentence-Level Sentiment Analysis in Swedish | |
| dc.type.degree | Examensarbete för masterexamen | sv |
| dc.type.degree | Master's Thesis | en |
| dc.type.uppsok | H | |
| local.programme | Computer science – algorithms, languages and logic (MPALG), MSc |
