Practical Guide to Dataset Creation & Annotation for NLP: Active Learning, Weak Supervision, Tools

Episode 7 65 min

Christiaan Swart NLP practitioner

Episode 7 · Practical Guide to Dataset Creation & Annotation for NLP: Active Learning, Weak Supervision, Tools

65 min

What we talked about

Christiaan Swart is an NLP practitioner and co-founder of Comtura, a company that captures information from sales calls and pushes it into Salesforce. He studied AI at the University of Edinburgh and then worked at an email provider, at Resolver on complaint classification, and at Healx on bio-NLP for rare disease drug development. Alexey invites him because dataset creation gets much less attention than models, even though it often decides a project's outcome.

Christiaan divides dataset creation into automated, manual and hybrid approaches, with hybrid becoming the norm. He says the hidden art is stakeholder management. Before annotating at scale, he shows executives a small labeled sample, for example with displaCy, to check whether the concepts are valuable. He builds a mind map from expert interviews and turns it into an annotation booklet, a living document with task definitions and ambiguous cases. At Resolver, complaints were labeled with 21 categories, which caused fatigue. Experiments showed that four to seven labels worked better.

Christiaan prefers in-house annotators to crowdsourcing, because strong annotators build institutional knowledge, and because GDPR compliance is harder with crowdsourcing. Before bringing in others, he labels 500 to 1,000 samples himself to set a human baseline. For quality, he tracks inter-annotator agreement, annotator throughput, and fatigue over long shifts. He says interface work, such as Prodigy hotkeys, potentially raised throughput by 5 to 10 percent. At Resolver, annotator feedback and a weekly review of about 100 annotations revealed that more than 10 percent of complaints came from vulnerable consumers, a blind spot the team had not expected.

Christiaan describes active learning as useful but modest, saving about 20 percent of labeling when it worked. He calls distance supervision a force multiplier. At Resolver, a semi-supervised topic model was used to sample vulnerable complaints, which needed about ten times less data. Snorkel lets teams write labeling functions, such as a drug and a disease linked by a verb like "treat," and then combine their noisy labels. Christiaan recommends Prodigy for a first proof of concept, with Doccano, Label Studio and Snorkel as open source options. Alexey suggests IPython widgets for quick binary classification.

For job seekers, Christiaan says a dataset project would put a candidate in a more mature category than an entry-level one. His advice is to start a simple project in a domain you know, pick one stack, such as spaCy with Snorkel, and stick with it. He adds that modeling is becoming a commodity, so data creation skills are increasingly valuable.

Chapters

  1. 1:22 Episode Overview: Dataset creation, curation, and annotation 1 min
  2. 2:24 Guest Background & Career in NLP and bio-NLP 3 min
  3. 5:12 Comtura Origin: Sales call transcription and CRM integration 2 min
  4. 6:51 Dataset Creation Approaches: Automated, manual, and hybrid pipelines 2 min
  5. 9:02 Stakeholder Alignment: Top-down framing to de-risk projects 7 min
  6. 15:39 Annotation Strategy: In-house vs. crowdsourcing trade-offs 3 min
  7. 18:36 Annotation Guidebook: Living documentation and ambiguous cases 2 min
  8. 20:57 Model-Assisted Annotation: Pre-labeling and interpretability layers 3 min
  9. 24:01 Expert Knowledge Capture: Mind maps and task translation for annotators 5 min
  10. 29:28 Human Baseline & Prototyping: Validating feasibility and business value 6 min
  11. 35:02 Annotation UX & Productivity: Hotkeys, interfaces, and iterative gains 3 min
  12. 37:42 Annotation Quality Metrics: Inter-annotator agreement, throughput, fatigue 5 min
  13. 42:51 Active Learning in Practice: Expectations and typical gains 2 min
  14. 44:57 Distance Supervision & Weak Supervision: Labeling functions and Snorkel 3 min
  15. 48:24 Programmatic Heuristics: Entity/verb patterns and weak label design 2 min
  16. 50:37 Tooling Recommendations: Prodigy, Docanno, Label Studio, Snorkel, Rubrics 2 min
  17. 52:34 Portfolio Advice: Building career projects via dataset creation 5 min
  18. 57:18 Quick-start Collection: IPython widgets and Fast.ai for beginners 1 min
  19. 58:26 Privacy & Multilingual NLP: GDPR, anonymization, and language challenges 5 min
  20. 1:03:40 Contact & Resources: Blog, company, and social links 1 min

Christiaan Swart NLP practitioner

Christiaan Swart is an NLP practitioner with six years of experience delivering natural language processing services across the email, complaint, pharma, and sales industries. He is the cofounder of Comtura, where he leads a machine learning team helping sales teams put their customers' voices to work. He specializes in cost effective dataset creation, distant supervision, and annotation workflows for production NLP.

Topics in this episode

The wiki pages this conversation is filed under, the strongest first.

NLP

Natural language processing across language data, annotation, LLMs, speech, search, and production systems.

Annotation Quality Workflows

Annotation quality as an NLP workflow with guidebooks, human baselines, agreement checks, model assistance, privacy controls, and feedback loops.

Related books

Mastering spaCy

17 questions answered

Build end-to-end industrial-strength NLP models using advanced morphological and syntactic features in spaCy to create real-world applications with ease.

Duygu Altinok

Natural Language Processing with Transformers

23 questions answered

Since their introduction in 2017, transformers have quickly become the dominant architecture for achieving state-of-the-art results on a variety of natural language processing tasks. If you're a data scientist or coder, this practical book shows you how to train and scale these large models using Hugging Face Transformers, a Python-based deep learning library.

Leandro von Werra Lewis Tunstall Thomas Wolf

Transformers for Natural Language Processing

20 questions answered

The transformer architecture has proved to be revolutionary in outperforming the classical RNN and CNN models in use today. With an apply-as-you-learn approach, Transformers for Natural Language Processing investigates in vast detail the deep learning for machine translations, speech-to-text, text-to-speech, language modeling, question answering, and many more NLP domains with transformers.

Denis Rothman

Optional analytics

Optional analytics are off unless you allow them. Your choice does not affect access to DataTalks.Club, Slack, events, or courses.

Current choice: not chosen.

Privacy Policy

If you allow analytics, self-hosted Umami counts anonymous public pageviews without analytics cookies. Private account and learning pages are excluded. Read the Privacy Policy for the complete data boundary.

Want to learn more about our community?

How it started, who's here, and everything that goes on here: courses, events, Slack, and more.

About DataTalks.Club