A lot of functions are taken from the following source: https://github.com/dipanjanS/text-analytics-with-python Thanks for sharing!