Research Article Open Access

Sentence Classification Using Attention Model for E-Commerce Product Review

Nagendra N1 and Chandra J1
  • 1 Department of Computer Science, Christ Deemed to be University, Bengaluru, India


The importance of aspect extraction in text classification, particularly in the e-commerce sector. E-commerce platforms generate vast amounts of textual data, such as comments, product descriptions, and customer reviews, which contain valuable information about various aspects of products or services. Aspect extraction involves identifying and classifying individual traits or aspects mentioned in textual reviews to understand customer opinions, improve products, and enhance the customer experience. The role of product reviews in e-commerce is discussed, emphasizing their value in aiding customers' purchase decisions and guiding businesses in product stocking and marketing strategies. Reviews are essential for boosting sales potential, maintaining a good reputation, and promoting brand recognition. Customers extensively research product reviews from different sources before purchasing, making them vital user-generated content for e-commerce businesses. The current work provided an efficient and novel classification model for sentence classification using the ABNAM model. The automated text classification models available cannot categorize the data into sixteen distinct classes. The technologies applied for the mentioned work contain TF-IDF, N-gram, CNN, linear SVM, random forest, Naïve bays, and ABNAM with significant results. The best-performing ML method for the successful classification of a given sentence into one of the sixteen categories is achieved with the proposed model named the based Neural Attention Model (ABNAM), which has the highest accuracy at 97%. The research acclaimed ABNAM as a novel classification model with the highest-class categorizations.

Journal of Computer Science
Volume 20 No. 5, 2024, 535-547


Submitted On: 20 December 2023 Published On: 28 February 2024

How to Cite: N, N. & J, C. (2024). Sentence Classification Using Attention Model for E-Commerce Product Review. Journal of Computer Science, 20(5), 535-547.

  • 0 Citations



  • Text Classification
  • Natural Language Processing (NLP)
  • TF-IDF
  • N-Gram
  • Neural Networks
  • Machine Learning
  • Deep Learning
  • Logistic Regression (LR)
  • Random Forest (RF)
  • Multinomial Naïve Bayes (MNB)
  • Linear Support Vector Machine (LSVC)