Photo by fabio on Unsplash

Do you think doing NLP is difficult? then you don’t know TextBlob!

from textblob import TextBlob

# Get the sentiment of a phrase

sentiment = TextBlob(“I love my life”).sentiment

print(sentiment)

Finished! You will now have an object that contains the data relating to positivity/negativity and how subjective/objective your sentences are.

In the complete code on codelab you can also test a practical approach related to the use of even basic techniques of NLP.

Natural Language Processing

Made with Love by Antonio Scapellato


Photo by Michael Dziedzic on Unsplash

Getting started with web scraping can be easy or difficult.

The trick is to be able to gradually understand every little step that is part of this “practice”.

Getting started with web scraping can be easy or difficult.

First, you need to get familiar with the external modules:

import requests

from bs4 import BeautifulSoup

import urllib.request


Recently I found myself in the situation of explaining in a simple way what linear regression was and what it was for.

Once explained I was told: “it only works with linear data, it will never be needed”.

In part, this statement may also be true, but the world does not always “fluctuate” or evolve exponentially and twisted in everyday life.

An example? Life expectancy!

In these few passages, I wanted to share a simple practical case in which it is worth using linear regression, the prediction of life expectancy.

If we look at the data we can immediately see…

Antonio Scapellato

Creative Developer & Entrepreneur.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store