I recently started to learn NLP and ML using Python. I started with Sentiment Analysis. I'm having trouble understanding where machine learning comes in to play when doing sentiment analysis.
Let's say I'm analyzing tweets or news headlines using NLTK's SentimentIntensityAnalyzer and I'm loading a case relevant lexicons so I'm getting polarity and negativity, positivity, neutral scores. Now what I don't understand is, in which case should I use code like in this article:
or just the built-in like in NLTK or even something like Google's BERT?
Any answer or link to Blog or tutorial would be welcomed!