Sentiment analyser core written in Python