Text this: Use of machine learning algorithms for diagnosis and treatment of psychological pathologies