Tech
How I Extracted Amazon Review Text Data from Kaggle's .bz2 Dataset for Sentiment Analysis
I recently started working on my first NLP and Sentiment Analysis project using the Amazon Reviews dataset on Kaggle.
I expected to find a normal CSV file that I could load using pandas.read_csv() .
Instead, I found files like this:
train.ft.txt.bz2
test.ft.txt.bz2
At first, I was confused.
What is a .bz2 file?
How do I read it?
Why isn't there a CSV file?
After some searching and experimentation, I discovered that the dataset is stored in a compressed BZip2 ...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to