EricR401S commited on
Commit
0941189
β€’
1 Parent(s): 20a7f56

forgot to commit notebook

Browse files
Files changed (1) hide show
  1. reddit_scraping_nb.ipynb +45 -4
reddit_scraping_nb.ipynb CHANGED
@@ -9565,22 +9565,22 @@
9565
  },
9566
  {
9567
  "cell_type": "code",
9568
- "execution_count": 16,
9569
  "metadata": {},
9570
  "outputs": [
9571
  {
9572
  "data": {
9573
  "text/plain": [
9574
- "''"
9575
  ]
9576
  },
9577
- "execution_count": 16,
9578
  "metadata": {},
9579
  "output_type": "execute_result"
9580
  }
9581
  ],
9582
  "source": [
9583
- "dataset.description"
9584
  ]
9585
  },
9586
  {
@@ -9604,6 +9604,47 @@
9604
  "dataset2.info"
9605
  ]
9606
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9607
  {
9608
  "cell_type": "code",
9609
  "execution_count": null,
 
9565
  },
9566
  {
9567
  "cell_type": "code",
9568
+ "execution_count": 17,
9569
  "metadata": {},
9570
  "outputs": [
9571
  {
9572
  "data": {
9573
  "text/plain": [
9574
+ "DatasetInfo(description='', citation='', homepage='', license='', features={'subreddit': Value(dtype='string', id=None), 'id': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'url': Value(dtype='string', id=None), 'score': Value(dtype='int64', id=None), 'author': Value(dtype='string', id=None), 'date': Value(dtype='string', id=None)}, post_processed=None, supervised_keys=None, task_templates=None, builder_name=None, dataset_name=None, config_name=None, version=None, splits=None, download_checksums=None, download_size=None, post_processing_size=None, dataset_size=None, size_in_bytes=None)"
9575
  ]
9576
  },
9577
+ "execution_count": 17,
9578
  "metadata": {},
9579
  "output_type": "execute_result"
9580
  }
9581
  ],
9582
  "source": [
9583
+ "dataset.info"
9584
  ]
9585
  },
9586
  {
 
9604
  "dataset2.info"
9605
  ]
9606
  },
9607
+ {
9608
+ "cell_type": "code",
9609
+ "execution_count": 18,
9610
+ "metadata": {},
9611
+ "outputs": [
9612
+ {
9613
+ "name": "stderr",
9614
+ "output_type": "stream",
9615
+ "text": [
9616
+ "Downloading readme: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 8.60k/8.60k [00:00<00:00, 8.54MB/s]\n",
9617
+ "Downloading data: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 10.3M/10.3M [00:01<00:00, 6.55MB/s]\n",
9618
+ "Generating train split: 0 examples [00:00, ? examples/s]c:\\Users\\ericr\\miniconda3\\envs\\sta663C\\Lib\\site-packages\\datasets\\download\\streaming_download_manager.py:778: FutureWarning: The 'verbose' keyword in pd.read_csv is deprecated and will be removed in a future version.\n",
9619
+ " return pd.read_csv(xopen(filepath_or_buffer, \"rb\", download_config=download_config), **kwargs)\n",
9620
+ "Generating train split: 6249 examples [00:00, 33187.31 examples/s]\n"
9621
+ ]
9622
+ }
9623
+ ],
9624
+ "source": [
9625
+ "dataset3 = load_dataset(\"steamcyclone/Pill-Ideologies-New-Test\", trust_remote_code = True)"
9626
+ ]
9627
+ },
9628
+ {
9629
+ "cell_type": "code",
9630
+ "execution_count": 22,
9631
+ "metadata": {},
9632
+ "outputs": [
9633
+ {
9634
+ "data": {
9635
+ "text/plain": [
9636
+ "DatasetInfo(description='', citation='', homepage='', license='', features={'subreddit': Value(dtype='string', id=None), 'id': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'url': Value(dtype='string', id=None), 'score': Value(dtype='int64', id=None), 'author': Value(dtype='string', id=None), 'date': Value(dtype='string', id=None)}, post_processed=None, supervised_keys=None, task_templates=None, builder_name='csv', dataset_name='pill-ideologies-new-test', config_name='default', version=0.0.0, splits={'train': SplitInfo(name='train', num_bytes=10432223, num_examples=6249, shard_lengths=None, dataset_name='pill-ideologies-new-test')}, download_checksums={'hf://datasets/steamcyclone/Pill-Ideologies-New-Test@025c19e863bdba8bf9e18a1515eb2e8a4b7c462f/reddit_posts_fm.csv': {'num_bytes': 10297084, 'checksum': None}}, download_size=10297084, post_processing_size=None, dataset_size=10432223, size_in_bytes=20729307)"
9637
+ ]
9638
+ },
9639
+ "execution_count": 22,
9640
+ "metadata": {},
9641
+ "output_type": "execute_result"
9642
+ }
9643
+ ],
9644
+ "source": [
9645
+ "dataset3['train']._info"
9646
+ ]
9647
+ },
9648
  {
9649
  "cell_type": "code",
9650
  "execution_count": null,