Imported from my final project for sentiment analysis