Implementing a multi-layer neural network and logistic regression for Twitter sentiment analysis