Back to Article

A Comparative Study of Attention-Based Transformer Networks and Traditional Machine Learning Methods for Toxic Comments Classification

Journal of Social Mathematical & Human Engineering Sciences | Vol 1, Issue 1

Table 2. Comparative Analysis of Models' Ability to CaptureContextual Dependencies, Handle Long-Range Dependencies, and Learn EffectiveRepresentations for Toxic Language Classification

ModelAbility to Capture Contextual DependenciesHandling Long-Range DependenciesEffective Representation for Toxic Language
Logistic RegressionNoNoNo
Naive BayesNoNoNo
Support Vector Machines (SVM)NoNoNo
Decision TreesPartialPartialPartial
Random ForestsPartialPartialPartial
Gradient BoostingPartialPartialPartial
Attention-Based TransformerYesYesYes