---
title: "Opinion Classification with Kili and HuggingFace AutoTrain"
description: "Kili's annotation platform and Hugging Face AutoTrain combine into an active-learning pipeline that classifies about 40,000 Google Play reviews of the Medium app into Subscription, Content, Interface and User Experience, then applies sentiment analysis to the classified reviews."
url: "https://swe.quest/articles/opinion-classification-with-kili-and-huggingface-autotrain-97ebbffd8c146463"
canonical: "https://huggingface.co/blog/opinion-classification-with-kili"
source: "Hugging Face"
published: "2022-04-28"
difficulty: "medium"
kind: "How-to"
reading_minutes: 18
tags: ["machine-learning","model-training","python"]
---

# Opinion Classification with Kili and HuggingFace AutoTrain

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2022-04-28, 18 min read, How-to. Original: [https://huggingface.co/blog/opinion-classification-with-kili](https://huggingface.co/blog/opinion-classification-with-kili)

## Summary

Kili's annotation platform and Hugging Face AutoTrain combine into an active-learning pipeline that classifies about 40,000 Google Play reviews of the Medium app into Subscription, Content, Interface and User Experience, then applies sentiment analysis to the classified reviews. The walkthrough covers creating a Kili labeling project through the web UI and the Python API, uploading data in batches of at most 100, and flagging changed samples between dataset versions for re-review. It then exports the labels to CSV and trains a model with AutoTrain and a second one without it.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Python](https://swe.quest/tags/python.md) (Languages)

## Prerequisites

- Python and pandas ([easy posts on Python](https://swe.quest/tags/python.md?difficulty=easy))
- text classification basics

## Keywords

Kili, Hugging Face AutoTrain, Transformers, active learning, sentiment analysis

## Related posts

- [Supercharged Customer Service with Machine Learning](https://swe.quest/articles/supercharged-customer-service-with-machine-learning-40f2ea8336a86ea0.md): Hugging Face · 2022-04-25 · Medium · 22 min read · Model training, Machine learning, Python
  A walkthrough of building a classifier that flags very unsatisfied customer messages by framing the problem as 5-class sentiment text classification.
- [Data-Centric Machine Learning: Building Shopify Inbox’s Message Classification Model](https://swe.quest/articles/data-centric-machine-learning-building-shopify-inbox-s-message-classification-89547c88c3590e73.md): Shopify Engineering · 2022-07-21 · Medium · 12 min read · Machine learning, Model training, Privacy, Communications
  Shopify Inbox's message classifier improved from ~70% to ~90% accuracy, and from ~35% to ~80% high-confidence coverage, by investing in better training data rather than model tweaks.
- [How we think about text classification in the LLM era](https://swe.quest/articles/how-we-think-about-text-classification-in-the-llm-era-a6b9a6bf775ffc1a.md): Medium Engineering · 2026-08-19 · Medium · 13 min read · LLMs, Machine learning, Evaluation, Cost optimization
  Medium replaced its aging NSFW story classifier with a prompt-based LLM classifier that runs inside Snowflake Cortex SQL queries.
- [Automated merchant review summary system with integrated feedback](https://swe.quest/articles/automated-merchant-review-summary-system-with-integrated-feedback-48cd43919529123c.md): Grab Engineering · 2026-09-25 · Easy · 4 min read · LLMs, System design, Evaluation
  Grab generates consumer-facing merchant review summaries with a pipeline that stratifies review samples by a sentiment-scored rating distribution, uses an LLM to produce overall and topic-based summaries (taste, packaging, portion size), and has a separate LLM check each claim against the sampled reviews before publication.
- [Small models, big results: Achieving superior intent extraction through decomposition](https://swe.quest/articles/small-models-big-results-achieving-superior-intent-extraction-through-b0a3ad09360b6393.md): Google Research · 2026-01-22 · Hard · 7 min read · LLMs, Evaluation, Model training, Mobile, Privacy
  Splitting UI-trajectory intent extraction into two stages lets small on-device multimodal LLMs match much larger models.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
