IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0232525.html
   My bibliography  Save this article

The influence of preprocessing on text classification using a bag-of-words representation

Author

Listed:
  • Yaakov HaCohen-Kerner
  • Daniel Miller
  • Yair Yigal

Abstract

Text classification (TC) is the task of automatically assigning documents to a fixed number of categories. TC is an important component in many text applications. Many of these applications perform preprocessing. There are different types of text preprocessing, e.g., conversion of uppercase letters into lowercase letters, HTML tag removal, stopword removal, punctuation mark removal, lemmatization, correction of common misspelled words, and reduction of replicated characters. We hypothesize that the application of different combinations of preprocessing methods can improve TC results. Therefore, we performed an extensive and systematic set of TC experiments (and this is our main research contribution) to explore the impact of all possible combinations of five/six basic preprocessing methods on four benchmark text corpora (and not samples of them) using three ML methods and training and test sets. The general conclusion (at least for the datasets verified) is that it is always advisable to perform an extensive and systematic variety of preprocessing methods combined with TC experiments because it contributes to improve TC accuracy. For all the tested datasets, there was always at least one combination of basic preprocessing methods that could be recommended to significantly improve the TC using a BOW representation. For three datasets, stopword removal was the only single preprocessing method that enabled a significant improvement compared to the baseline result using a bag of 1,000-word unigrams. For some of the datasets, there was minimal improvement when we removed HTML tags, performed spelling correction or removed punctuation marks, and reduced replicated characters. However, for the fourth dataset, the stopword removal was not beneficial. Instead, the conversion of uppercase letters into lowercase letters was the only single preprocessing method that demonstrated a significant improvement compared to the baseline result. The best result for this dataset was obtained when we performed spelling correction and conversion into lowercase letters. In general, for all the datasets processed, there was always at least one combination of basic preprocessing methods that could be recommended to improve the accuracy results when using a bag-of-words representation.

Suggested Citation

  • Yaakov HaCohen-Kerner & Daniel Miller & Yair Yigal, 2020. "The influence of preprocessing on text classification using a bag-of-words representation," PLOS ONE, Public Library of Science, vol. 15(5), pages 1-22, May.
  • Handle: RePEc:plo:pone00:0232525
    DOI: 10.1371/journal.pone.0232525
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0232525
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0232525&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0232525?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
    ---><---

    References listed on IDEAS

    as
    1. Yaakov HaCohen‐Kerner & Hananya Beck & Elchai Yehudai & Mordechay Rosenstein & Dror Mughaz, 2010. "Cuisine: Classification using stylistic feature sets and/or name‐based feature sets," Journal of the American Society for Information Science and Technology, Association for Information Science & Technology, vol. 61(8), pages 1644-1657, August.
    2. Yaakov HaCohen-Kerner & Hananya Beck & Elchai Yehudai & Mordechay Rosenstein & Dror Mughaz, 2010. "Cuisine: Classification using stylistic feature sets and/or name-based feature sets," Journal of the Association for Information Science & Technology, Association for Information Science & Technology, vol. 61(8), pages 1644-1657, August.
    3. Shlomo Argamon & Casey Whitelaw & Paul Chase & Sobhan Raj Hota & Navendu Garg & Shlomo Levitan, 2007. "Stylistic text classification using functional lexical features," Journal of the American Society for Information Science and Technology, Association for Information Science & Technology, vol. 58(6), pages 802-822, April.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Xu, Qianwen Ariel & Jayne, Chrisina & Chang, Victor, 2024. "An emoji feature-incorporated multi-view deep learning for explainable sentiment classification of social media reviews," Technological Forecasting and Social Change, Elsevier, vol. 202(C).

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Zhang, Xi & Cheng, Yihang & Chen, Aoshuang & Lytras, Miltiadis & de Pablos, Patricia Ordóñez & Zhang, Renyu, 2022. "How rumors diffuse in the infodemic: Evidence from the healthy online social change in China," Technological Forecasting and Social Change, Elsevier, vol. 185(C).
    2. Rutherford, Brian A., 2013. "A genre-theoretic approach to financial reporting research," The British Accounting Review, Elsevier, vol. 45(4), pages 297-310.
    3. Shlomo Argamon & Jeff Dodick & Paul Chase, 2008. "Language use reflects scientific methodology: A corpus-based study of peer-reviewed journal articles," Scientometrics, Springer;Akadémiai Kiadó, vol. 75(2), pages 203-238, May.
    4. Mini Zhu & Gang Wang & Chaoping Li & Hongjun Wang & Bin Zhang, 2023. "Artificial Intelligence Classification Model for Modern Chinese Poetry in Education," Sustainability, MDPI, vol. 15(6), pages 1-19, March.

    More about this item

    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:plo:pone00:0232525. 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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    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.