Technical requirements
In this chapter, we will be using the huggingface
package, so you’ll need to install it, as follows:
pip install datasets transformers huggingface_hub && apt-get install git-lfs
Plus, you will need the following imports:
from transformers import pipeline import torch from datasets import load_dataset import numpy as np import pandas as pd from sklearn.metrics import accuracy_score