Abstract
The article is based on the problems of machine learning in the field of computer linguistics, in particular, the identification of psychological types of people on the basis of text messages on social networks. The purpose of this article is to study the methods of machine learning Naive bayes and Extreme Gradient Boosting (XGBoost) to create a classifier for the Kazakh language, which determines the type of Myers-Briggs Type Index (MBTI) based on text samples of people’s posts on social networks. The course of research experiments in the use of machine learning methods and the results of the study are presented and the results obtained are compared.