IDEAS home Printed from https://ideas.repec.org/a/tec/techni/v17y2023i1p440-445.html
   My bibliography  Save this article

Sentiment Analysis for Indonesian Salt Policy uses Naïve Bayes and Information Gain Methods

Author

Listed:
  • Yeni Kustiyahningsih

Abstract

Salt production is one of the concerns of the Indonesian government. Several government policies such as salt imports have had a major impact on local salt farmers. Other factors are due to the increased demand for salt, decreased domestic salt production which is unfavorable due to weather factors, and the price of imported salt is lower than that of local salt. Many people express their opinions regarding the salt import policy, via Twitter social media. Sentiment analysis can be applied to analyze tweets or writings by the public regarding salt import policies and classify the data. This study uses the naïve Bayes classifier algorithm model as a sentiment classification algorithm on Twitter social media tweets. The classification process uses the Naïve Bayes algorithm. The feature extraction and weighting method is the TF-IDF method. Not all of the features resulting from the TF-IDF process are used, so feature selection is carried out using the information gain method. Model testing was carried out 5 times with 500 data, using feature selection and without feature selection. Without feature selection, the highest accuracy result is 84% at K=4, while without feature selection it produces an accuracy of 71% at K=3, so there is an increase of 13%.

Suggested Citation

  • Yeni Kustiyahningsih, 2023. "Sentiment Analysis for Indonesian Salt Policy uses Naïve Bayes and Information Gain Methods," Technium, Technium Science, vol. 17(1), pages 440-445.
  • Handle: RePEc:tec:techni:v:17:y:2023:i:1:p:440-445
    DOI: 10.47577/technium.v17i.10121
    as

    Download full text from publisher

    File URL: https://techniumscience.com/index.php/technium/article/view/10121/3923
    Download Restriction: no

    File URL: https://techniumscience.com/index.php/technium/article/view/10121
    Download Restriction: no

    File URL: https://libkey.io/10.47577/technium.v17i.10121?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    JEL classification:

    • R00 - Urban, Rural, Regional, Real Estate, and Transportation Economics - - General - - - General
    • Z0 - Other Special Topics - - General

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:tec:techni:v:17:y:2023:i:1:p:440-445. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Ana Maria Golita (email available below). General contact details of provider: .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.