Sinkron : Jurnal dan Penelitian Teknik Informatika
Vol. 8 No. 1 (2023): Articles Research Volume 8 Issue 1, 2023

Comparison of the Sentiment Analysis Model's Code Complexity and Processing Time: Sentiment analysis for tolerance and religious moderation in Indonesia: A Case Study

Luh Gede Surya Kartika (Universitas Hindu Negeri I Gusti Bagus Sugriwa Denpasar)
Putu Kussa Laksana Utama (Universitas Hindu Negeri I Gusti Bagus Sugriwa Denpasar)
I Dewa Gede Budiastawa (Universitas Hindu Negeri I Gusti Bagus Sugriwa Denpasar)
Komang Rinartha (Institut Teknologi dan Bisnis STIKOM Bali)



Article Info

Publish Date
01 Jan 2023

Abstract

Text processing, which includes sentiment analysis, obviously demands a lot of resources. The extent to which resources are used to promote environmental conservation is directly impacted by code complexity or computational time. Twitter users' responses on the Indonesian Language of religious moderation and tolerance are used to test the model. The phases of doing the research include determining the research's needs, gathering data, text preprocessing (case folding, tokenizing, stopword removal, and stemming), word weighting with TF/IDF, and classification with Multinomial Naive Bayes (MNB) and Support Vector Machine (SVM), validation, and the last step was calculation of the code complexity and computation time. The validation results showed that the performance of the two models was still low, with an average accuracy of 75.5%. Based on computation time, SVM has a faster computational time than MNB. However, when compared in terms of the code complexity, the Cyclomatic Complexity in both models was the same because both models used existing libraries in Python Interpreter, and the complexity of the libraries cannot be calculated directly. Based on the Raw Metrics, it can be seen that MNB and SVM not significantly different in LOC, LLOC, and SLOC. It was evident that SVM has a greater Halstead Complexity than SVM in all measures when comparing the program code of MNB and SVM. Particularly on programming effort and volume metrics, SVM required more bits to run than an MNB program, and it also required more mental effort to convert a prepared SVM algorithm into a program than an MNB.

Copyrights © 2023






Journal Info

Abbrev

sinkron

Publisher

Subject

Computer Science & IT

Description

Scope of SinkrOns Scientific Discussion 1. Machine Learning 2. Cryptography 3. Steganography 4. Digital Image Processing 5. Networking 6. Security 7. Algorithm and Programming 8. Computer Vision 9. Troubleshooting 10. Internet and E-Commerce 11. Artificial Intelligence 12. Data Mining 13. Artificial ...