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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparison of text vectorization techniques for machine learning applied to binary classification

Huizilopoztli Luna-García, Klinge O. Villalba-Condori, Claudia Acra-Despradel, José M. Celaya-Padilla et al.
PeerJ Computer Science
Text and Document Classification Technologies
article

Comparison of text vectorization techniques for machine learning applied to binary classification

Huizilopoztli Luna-García, Klinge O. Villalba-Condori, Claudia Acra-Despradel, José M. Celaya-Padilla, Luis C. Reveles-Gómez, Carlos E. Galvan-Tejada, Jorge A. Morgan-Benita, Luis A. Flores-Chaires, Joan E. Lopez-Robles
article en

Abstract

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.

PeerJ Computer ScienceVol. 12
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)
Quality Education
Openalex Percentile: Top 4%
Text and Document Classification Technologies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.