Introduction to Machine Learning for SEO
- Practical: Semantic Analysis of Customer reviews
- Marketing and SEO implementations of entity and sentiment analysis
- Comparative Analysis of NLP APIs versus generative AI on entity extraction
NLP (Concepts & Pipeline)
In shortNLP that scores the sentiment expressed towards each entity in a text, so one review can be positive about one thing and negative about another.
Entity sentiment analysis combines entity extraction with sentiment analysis. Instead of giving a whole review one overall score, it finds each entity mentioned and scores how the writer feels about that entity specifically. This shows which parts of a product, service or brand people praise and which they complain about.
The model first identifies entities and every place they are mentioned, then scores the sentiment of the language around each mention and combines the results per entity. In the Google Cloud Natural Language API (the analyzeEntitySentiment method), each entity gets:
IBM Watson NLU offers the same idea through sentiment options on its entities and keywords features, and Amazon Comprehend has targeted sentiment.
A review reads: “The jacket fits perfectly, but delivery took two weeks and customer service never replied.” Document-level sentiment might come out close to neutral because the praise and the complaints cancel out. Entity sentiment separates them: jacket positive, delivery negative, customer service negative. MLforSEO’s customer review lesson plots results like these on a chart, with sentiment on one axis and entity prominence or magnitude shown by size, so the biggest pain points stand out.