Refactored code, and create a data object called NLPSentence to perform sentiment analysis