0PricingLogin
NLP Academy · Lesson

Running a QA Pipeline

Pull answers from a passage.

What a Pipeline Gives You

A Hugging Face pipeline wraps a model and tokenizer into one easy call. You hand it a question and context, it hands back an answer. 🚀

Import the Helper

Everything starts with one import. The pipeline function from the transformers library builds the whole QA stack for you.

from transformers import pipeline

All lessons in this course

  1. Extractive vs Generative QA
  2. Running a QA Pipeline
  3. Finding Answer Spans in Context
  4. Handling No-Answer and Long Docs
← Back to NLP Academy