Finding what matters in reviews. The experience of the Yandex geosearch developers

Ivan (aim110)18 May 2022

Problem

A venue page in a map service can hold thousands or tens of thousands of reviews. Visitors read the top few, and the star rating hides whether food, service or price drives it. Owners cannot quickly see what customers like either. Yandex geosearch wanted a short summary per venue, but a large generative model meant heavy investment for an unproven hypothesis. So the first goal was narrower: per-aspect scores above the reviews.

Example from the article: for a cafe with 2,280 reviews the page shows "Food 89%", "Staff 83%", "Atmosphere 93%" with counts of reviews behind each number.

Solution in brief

The team first matched aspects with regular expressions, taking sentiment from the average rating of reviews with a context word. Recall for "food" was about 0.3. They then fine-tuned BERT on crowd-labeled aspect and sentiment classes (precision and recall above 0.9), and with active learning and better crowd instructions reached 200+ aspects through an automated pipeline.

Questions this case answers
  • How to summarize long user-generated texts into per-attribute counts and sentiment when readers skim only a few items
  • How to extend a text-attribute classifier from a handful of attributes to hundreds when crowd labels for narrow, confusable attributes are unreliable
  • How to turn thousands of venue reviews into a short per-aspect summary (food, staff, price) that a visitor reads in seconds?
  • How to get aspect mentions and their sentiment from review text without a hand-written synonym list?

Tools and methods

  • Remorph — Yandex internal regular-expression library over words, used for the MVP and later replaced by BERT.
  • BERT — fine-tuned for two classifications: is the aspect present, and what is its sentiment.
  • Yandex Toloka — crowd labeling of aspects and sentiment.
  • Active learning — send for labeling the reviews where the model is unsure.
  • Self-attention — used to highlight the review fragment that relates to the chosen aspect.
Continue reading — it's free

Google or a one-time email code. No password.