implementing sentiment analysis from scratch without any external libraries and self-trained word vectors