Modern methods of text analysis