Models of Artificial Intelligence for Semantic Comparison of Textual Information