Introduction to Machine Learning for SEO
- Marketing and SEO implementations of entity and sentiment analysis
- Comparative Analysis of NLP APIs versus generative AI on entity extraction
- Practical: Semantic Analysis of Customer reviews
NLP (Concepts & Pipeline)
In shortNLP that detects whether text expresses a positive, negative or neutral opinion, often with a score for polarity and strength.
Sentiment analysis is a natural language processing task that identifies the opinion or feeling expressed in text: whether the writer is positive, negative or neutral, and often how strongly. It is one of the most beginner-friendly NLP problems and one of the most useful for marketers, because so much customer feedback arrives as unstructured text.
There are four broad approaches, covered in MLforSEO’s sentiment deep dive:
Cloud APIs package this up. The Google Cloud Natural Language API returns a score from -1.0 to 1.0 for polarity and a magnitude from 0 upwards for how much emotion is expressed, for the whole document and each sentence. IBM Watson NLU adds emotion scores such as joy, anger and fear. Entity sentiment analysis narrows it to specific things mentioned.
MLforSEO’s Google Sheets tutorial runs a column of reviews through the Natural Language API with Apps Script and returns score and magnitude next to each one. A review scoring 0.1 with magnitude 3.5 is not neutral: it is mixed, with strong positive and negative statements cancelling out, and worth reading in full.