DEV Community

Cover image for How to Build Q&A Models in Python (Transformers)
James Briggs
James Briggs

Posted on

How to Build Q&A Models in Python (Transformers)

In this video, we'll cover how to build a question-answering model in Python using HuggingFace's Transformers.

You will need to install the transformers library with:

pip install transformers
Enter fullscreen mode Exit fullscreen mode

Alongside either TensorFlow or PyTorch (to follow this video exactly you will need PyTorch). To install TensorFlow just type:

pip install tensorflow
OR
conda install tensorflow
Enter fullscreen mode Exit fullscreen mode

And for PyTorch follow the instructions under 'Install PyTorch' here:
https://pytorch.org/

Top comments (0)