NLTK is a strong and adaptable Python package for sentiment analysis and other natural language processing applications. We can preprocess text input with NLTK, turn it to a bag of words model, then do sentiment analysis with Vader's sentiment analyzer.