Refactor sentiment_analyzer to take paragraph of text as input