CNNs for Sentence Classification: Downloading and Preparing Data
Learn how to download and preprocess data for training a CNN in the context of sentence classification.
We'll cover the following
Implementation: Downloading and preparing data
First, we’ll download the data from the web. The data download functions are provided in the notebook at the end of this lesson and are simply downloading two files: training and testing data (the paths to the files are retained in train_filename
and test_filename
).
If we open these files, we’ll see that they contain a collection of lines of text. Each line has the format:
Get hands-on with 1400+ tech skills courses.