Comparative Analysis of Open-Source Large Language Models for Sentiment Analysis and Prompt Engineering
dc.contributor.author | Njoki, Fredrick Kiarie | |
dc.date.accessioned | 2024-11-12T11:13:41Z | |
dc.date.available | 2024-11-12T11:13:41Z | |
dc.date.issued | 2024-05 | |
dc.description | Undergraduate thesis submitted to the Department of Computer Science, Ashesi University, in partial fulfillment of Bachelor of Science degree in Computer Science, May 2024 | |
dc.description.abstract | Machine Learning models such as Random Forests and Naïve Bayes are trained and used for sentiment analysis. Large language models (LLMs) are currently used in many tasks because of their advanced attention architecture and the large amount of data they have been trained on. Closed source LLMs like ChatGPT, from OpenAI, and Gemini, from Google, are being explored and used for various tasks. However, they do not allow the user to fully interact and fine-tune them for performing specific tasks. Hence, some users opt for open-source LLMs such as BERT and GPT-2 because they can fine-tune them to their desired tasks. Despite their widespread use, they have not been explored fully to find out how they perform against each other in sentiment analysis and prompt engineering. This paper examines how such open-source large language models perform in analyzing sentiments and their responsiveness to prompts, specifically offering more insights and details about the sentiments aside from giving the sentiment's polarity. The study aims to contribute to the knowledge of the effectiveness of the large language models in sentiment analysis and prompt engineering. This will also inform the reader of the choice between the various LLMs for their use. | |
dc.description.sponsorship | Ashesi University | |
dc.identifier.citation | Njoki, F. K. (2024). Comparative Analysis of Open-Source Large Language Models for Sentiment Analysis and Prompt Engineering. Ashesi University. | |
dc.identifier.uri | https://hdl.handle.net/20.500.11988/1157 | |
dc.language.iso | en_US | |
dc.publisher | Ashesi University | |
dc.subject | Machine learning | |
dc.subject | Artificial Intelligence | |
dc.subject | large language model | |
dc.subject | sentiment analysis | |
dc.subject | prompt engineering | |
dc.title | Comparative Analysis of Open-Source Large Language Models for Sentiment Analysis and Prompt Engineering | |
dc.type | Thesis |
Files
Original bundle
1 - 1 of 1
Loading...
- Name:
- 2431226376 - Fredrick Kiarie Njoki - Fredrick_Njoki_Capstone_Final_Report.pdf
- Size:
- 819.2 KB
- Format:
- Adobe Portable Document Format