Comparison of text vectorization techniques for machine learning applied to binary classification
Text vectorization is indispensable for natural language processing (NLP). It allows us to transform text—from comments, reviews, documents, and even complete books—into formats or values that we can use as input in machine learning (ML) models. In this article, we present a comparative analysis between some of these methods used for text vectorization. The general purpose is to identify which of these methods offers a superior performance when applied together with some classification models on binary classification datasets. Each vectorization method, in combination with the models used, is evaluated by standard metrics in machine learning, such as Accuracy, Precision, Recall, F1-score and area under the curve (Receiver Operating Characteristic (ROC)) for a robust evaluation, demonstrating that the newest and most complex vectorization methods are not necessarily better for all binary classification tasks.
Authors
- Huizilopoztli Luna-García (ORCID: https://orcid.org/0000-0001-5714-7482)
- Klinge O. Villalba-Condori
- Claudia Acra-Despradel
- José M. Celaya-Padilla (ORCID: https://orcid.org/0000-0001-6847-3777)
- Luis C. Reveles-Gómez (ORCID: https://orcid.org/0009-0001-5406-1656)
- Carlos E. Galvan-Tejada (ORCID: https://orcid.org/0000-0002-7635-4687)
- Jorge A. Morgan-Benita
- Luis A. Flores-Chaires (ORCID: https://orcid.org/0000-0003-3958-8959)
- Joan E. Lopez-Robles
Institutions
- Catholic University of Santa María (PE)
- Universidad Nacional Pedro Henríquez Ureña (DO)
- Universidad Autónoma de Zacatecas "Francisco García Salinas" (MX)
Publication Details
- Journal
- PeerJ Computer Science
- Published
- 2026-05-29
- DOI
- https://doi.org/10.7717/peerj-cs.3889
- Primary Topic
- Text and Document Classification Technologies
- Type
- article
- Field-Weighted Citation Impact
- 0.00