Tezgider, MuratYıldız, BeytullahYildiz, BeytullahAydin, GalipYıldız, BeytullahSoftware Engineering2024-07-052024-07-052022141532-06261532-063410.1002/cpe.64862-s2.0-85110364023https://doi.org/10.1002/cpe.6486https://hdl.handle.net/20.500.14411/2048YILDIZ, Beytullah/0000-0001-7664-5145; Tezgider, Murat/0000-0002-4918-5697Text data have an important place in our daily life. A huge amount of text data is generated everyday. As a result, automation becomes necessary to handle these large text data. Recently, we are witnessing important developments with the adaptation of new approaches in text processing. Attention mechanisms and transformers are emerging as methods with significant potential for text processing. In this study, we introduced a bidirectional transformer (BiTransformer) constructed using two transformer encoder blocks that utilize bidirectional position encoding to take into account the forward and backward position information of text data. We also created models to evaluate the contribution of attention mechanisms to the classification process. Four models, including long short term memory, attention, transformer, and BiTransformer, were used to conduct experiments on a large Turkish text dataset consisting of 30 categories. The effect of using pretrained embedding on models was also investigated. Experimental results show that the classification models using transformer and attention give promising results compared with classical deep learning models. We observed that the BiTransformer we proposed showed superior performance in text classification.eninfo:eu-repo/semantics/closedAccessattentiondeep learningmachine learningtext classificationtext processingtransformerText classification using improved bidirectional transformerArticleQ3Q2349WOS:000673965600001