Hadith is the second holy book for Muslims after the Quran, containing instructions from the Prophet Muhammad SAW, and narrated by Ulama / Mufti. As one of the main sources of Islamic teachings, hadith is used to explain and illustrate the teachings of the Quran. This study aims to compare the performance of hadith text classification using Artificial Neural Network (ANN) and Support Vector Machine (SVM) with Hadith Bukhari dataset. The stages include preprocessing, feature extraction with TF-IDF, classification, and evaluation. The evaluation results show different performance between ANN and SVM in two scenarios: with and without stemming. The use of stemming has a significant impact on model performance, reducing word variation and can result in a decrease in accuracy. The SVM model consistently showed higher accuracy than ANN in both scenarios, with the highest accuracy reaching 85% for classification without stemming. This study provides insight into the application of ANN and SVM in hadith text classification, emphasizing the importance of selecting a method that suits the characteristics of the data.
Copyrights © 2024