Commit ·
4d9e29f
1
Parent(s): c85d79c
Update download comments
Browse filesFiles changed (2)
54 unmodified lines555657585960616263646566917 unmodified lines98498598698798898999099199299399499599699799854 unmodified lines ], "source": [ "# Download the datasets\n", "# The dataset can be downloaded through the `download_data.sh` script, which requires to set up\n", "# Kaggle's CLI, or manually at https://www.kaggle.com/datasets/crowdflower/twitter-airline-sentiment\n", "if not os.path.isfile(\"local_datasets/twitter-airline-sentiment/Tweets.csv\"):\n", " raise ValueError(\"Please launch the `download_data.sh` script to get datasets\")\n", "\n", "\n", "train = pd.read_csv(\"local_datasets/twitter-airline-sentiment/Tweets.csv\", index_col=0)\n", "text_X = train[\"text\"]\n", "y = train[\"airline_sentiment\"]\n",917 unmodified lines "metadata": { "execution": { "timeout": 10800 }, "kernelspec": { "display_name": ".venv", "language": "python", "name": "python3" }, "language_info": { "name": "python", "version": "3.10.11" } }, "nbformat": 4,1 unmodified line234565678910111 unmodified line
set -e
# You need to have a valid ~/.kaggle/kaggle.json, that you can generate from "Create new API token"# on your account page in kaggle.com# You need to install kaggle using pip and then have a valid ~/.kaggle/kaggle.json, that you can # generate from "Create new API token" on your account page in kaggle.com# Alternatively, the dataset can be downloaded manually at # https://www.kaggle.com/datasets/crowdflower/twitter-airline-sentimentrm -rf local_datasetsmkdir local_datasetscd local_datasetsSentimentClassification.ipynb+12
download_data.sh+4-2