-
Book Overview & Buying
-
Table Of Contents
Python Natural Language Processing Cookbook - Second Edition
By :
In this recipe, we will learn how to load a public dataset and work with it. We will use the RottenTomatoes dataset for this recipe as an example. This dataset contains ratings and reviews for movies. Please refer to the link at https://www.kaggle.com/datasets/stefanoleone992/rotten-tomatoes-movies-and-critic-reviews-dataset for more information about the dataset
As part of this chapter, we will use the libraries from the HuggingFace site (huggingface.co). For this recipe, we will use the dataset package. You can use the 8.1_Transformers_dataset.ipynb notebook from the code site if you need to work from an existing notebook.
In this recipe, you will load the RottenTomatoes dataset from the HuggingFace site using the dataset package. This package will download the dataset for you if it does not exist. For any subsequent runs, it will use the downloaded dataset from the cache if it was downloaded previously.
The recipe does...