JOURNAL ARTICLE

Hierarchical Sentence Sentiment Analysis Of Hotel Reviews Using The Naïve Bayes Classifier

Abstract

Traveloka provides a space for its users to write reviews about their hotel reservation services. These reviews are very useful in informing hotel managers of the level of customer satisfaction. Sentiment analysis is a tool that can be used to analyse such reviews to determine whether they express opinions or not, so that the level of customer satisfaction can be measured based on the number of sentiments (positive or negative) contained in the opinions. In this research, the Naïve Bayes classifier was used to perform a hierarchical sentence sentiment analysis on hotel reviews obtained from Traveloka. In addition, two types of term weighting schemes were used for the feature extraction, namely, raw term frequency and TF-IDF. The results of this research indicated that it is better to use a hierarchical classification in sentiment analysis than a flat classification. The average F-measure value for the flat classification model was 75.18%, while for the hierarchical classification model it was 77.48%. These results showed that the use of a hierarchical classification in sentiment analysis improved the average performance of the classification model by 2.3%. The use of the raw term frequency feature extraction in a flat classification provided a higher F-measure value than the use of the TF-IDF feature extraction, with a margin of 3.9%. The average F-measure value for the flat classification using the raw term frequency feature extraction was 75.18%, while for the TF-IDF feature extraction it was 71.23%.

Keywords:
Naive Bayes classifier Computer science Artificial intelligence Classifier (UML) Weighting Sentiment analysis Feature extraction Pattern recognition (psychology) tf–idf Term (time) Sentence Data mining Support vector machine

Metrics

14
Cited By
1.59
FWCI (Field Weighted Citation Impact)
18
Refs
0.86
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Sentiment Analysis and Opinion Mining
Physical Sciences →  Computer Science →  Artificial Intelligence
Advanced Text Analysis Techniques
Physical Sciences →  Computer Science →  Artificial Intelligence
Multimedia Learning Systems
Physical Sciences →  Computer Science →  Information Systems
© 2026 ScienceGate Book Chapters — All rights reserved.