Application of Logistic Regression in Natural Language Processing