siavava commited on
Commit
3271545
1 Parent(s): bb38caf

restructure for hf

Browse files
Files changed (5) hide show
  1. README.md +8 -8
  2. analytics.ipynb +35 -27
  3. counts.csv +0 -3
  4. train.csv → raw.csv +0 -0
  5. test.ipynb +35 -75
README.md CHANGED
@@ -59,15 +59,15 @@ dataset = load_dataset("siavava/ai-tech-articles")
59
  df = dataset["train"].to_pandas()
60
  ```
61
 
62
- > [!NOTE]
63
- > You do not need to clone this repo.
64
- >
65
- > HuggingFace will download the dataset for you, the first time that you load it,
66
- > and cache it so it does not need to re-download it again
67
- > (unless it detects a change upstream).
68
 
69
  ## File Structure
70
 
71
- - [analytics.ipynb](analytics.ipynb) - Notebook containing some details about the dataset and how to load it.
72
- - [data/index.parquet](./index.csv) - compressed [parquet](https://www.databricks.com/glossary/what-is-parquet) containing the data.
 
 
73
  - For raw text files, see the [scraper repo](https://github.com/siavava/scrape.hs) on GitHub.
 
59
  df = dataset["train"].to_pandas()
60
  ```
61
 
62
+ You do not need to clone this repo.
63
+ HuggingFace will download the dataset for you, the first time that you load it,
64
+ and cache it locally so it does not need to re-download it again
65
+ (unless it detects a change upstream).
 
 
66
 
67
  ## File Structure
68
 
69
+ - [`analytics.ipynb`](analytics.ipynb) - Notebook containing some details about the dataset.
70
+ - [`example.ipynb`](example.ipynb) - A minimal notebook that loads in the dataset and converts to Pandas.
71
+ - [`raw.csv`](raw.csv) - The raw data, in CSV format.
72
+ - `data/*.parquet`- compressed [parquet](https://www.databricks.com/glossary/what-is-parquet) containing the data.
73
  - For raw text files, see the [scraper repo](https://github.com/siavava/scrape.hs) on GitHub.
analytics.ipynb CHANGED
@@ -18,7 +18,7 @@
18
  },
19
  {
20
  "cell_type": "code",
21
- "execution_count": 21,
22
  "metadata": {},
23
  "outputs": [],
24
  "source": [
@@ -31,9 +31,23 @@
31
  },
32
  {
33
  "cell_type": "code",
34
- "execution_count": 25,
35
  "metadata": {},
36
  "outputs": [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  {
38
  "data": {
39
  "text/html": [
@@ -60,66 +74,60 @@
60
  " <th>title</th>\n",
61
  " <th>url</th>\n",
62
  " <th>text</th>\n",
63
- " <th>__index_level_0__</th>\n",
64
  " </tr>\n",
65
  " </thead>\n",
66
  " <tbody>\n",
67
  " <tr>\n",
68
  " <th>0</th>\n",
69
  " <td>0</td>\n",
70
- " <td>2023.0</td>\n",
71
  " <td>\"MIT Technology Review\"</td>\n",
72
  " <td>\"https://www.technologyreview.com\"</td>\n",
73
  " <td>\"Featured Topics Newsletters Events Podcasts F...</td>\n",
74
- " <td>0</td>\n",
75
  " </tr>\n",
76
  " <tr>\n",
77
  " <th>1</th>\n",
78
  " <td>1</td>\n",
79
- " <td>2023.0</td>\n",
80
  " <td>\"WIRED - The Latest in Technology, Science, Cu...</td>\n",
81
  " <td>\"https://www.wired.com\"</td>\n",
82
  " <td>\"Open Navigation Menu To revisit this article,...</td>\n",
83
- " <td>1</td>\n",
84
  " </tr>\n",
85
  " <tr>\n",
86
  " <th>2</th>\n",
87
  " <td>2</td>\n",
88
- " <td>2019.0</td>\n",
89
  " <td>\"The Verge\"</td>\n",
90
  " <td>\"https://www.theverge.com\"</td>\n",
91
  " <td>\"The Verge homepage The Verge The Verge logo.\\...</td>\n",
92
- " <td>2</td>\n",
93
  " </tr>\n",
94
  " <tr>\n",
95
  " <th>3</th>\n",
96
  " <td>3</td>\n",
97
- " <td>2023.0</td>\n",
98
  " <td>\"TechCrunch | Startup and Technology News\"</td>\n",
99
  " <td>\"https://www.techcrunch.com\"</td>\n",
100
  " <td>\"WeWork reportedly on the verge of filing for ...</td>\n",
101
- " <td>3</td>\n",
102
  " </tr>\n",
103
  " <tr>\n",
104
  " <th>4</th>\n",
105
  " <td>4</td>\n",
106
- " <td>2022.0</td>\n",
107
  " <td>\"A new vision of artificial intelligence for t...</td>\n",
108
  " <td>\"https://www.technologyreview.com/2022/04/22/1...</td>\n",
109
  " <td>\"Featured Topics Newsletters Events Podcasts A...</td>\n",
110
- " <td>4</td>\n",
111
  " </tr>\n",
112
  " </tbody>\n",
113
  "</table>\n",
114
  "</div>"
115
  ],
116
  "text/plain": [
117
- " id year title \\\n",
118
- "0 0 2023.0 \"MIT Technology Review\" \n",
119
- "1 1 2023.0 \"WIRED - The Latest in Technology, Science, Cu... \n",
120
- "2 2 2019.0 \"The Verge\" \n",
121
- "3 3 2023.0 \"TechCrunch | Startup and Technology News\" \n",
122
- "4 4 2022.0 \"A new vision of artificial intelligence for t... \n",
123
  "\n",
124
  " url \\\n",
125
  "0 \"https://www.technologyreview.com\" \n",
@@ -128,15 +136,15 @@
128
  "3 \"https://www.techcrunch.com\" \n",
129
  "4 \"https://www.technologyreview.com/2022/04/22/1... \n",
130
  "\n",
131
- " text __index_level_0__ \n",
132
- "0 \"Featured Topics Newsletters Events Podcasts F... 0 \n",
133
- "1 \"Open Navigation Menu To revisit this article,... 1 \n",
134
- "2 \"The Verge homepage The Verge The Verge logo.\\... 2 \n",
135
- "3 \"WeWork reportedly on the verge of filing for ... 3 \n",
136
- "4 \"Featured Topics Newsletters Events Podcasts A... 4 "
137
  ]
138
  },
139
- "execution_count": 25,
140
  "metadata": {},
141
  "output_type": "execute_result"
142
  }
@@ -150,7 +158,7 @@
150
  },
151
  {
152
  "cell_type": "code",
153
- "execution_count": 19,
154
  "metadata": {},
155
  "outputs": [
156
  {
 
18
  },
19
  {
20
  "cell_type": "code",
21
+ "execution_count": 1,
22
  "metadata": {},
23
  "outputs": [],
24
  "source": [
 
31
  },
32
  {
33
  "cell_type": "code",
34
+ "execution_count": 2,
35
  "metadata": {},
36
  "outputs": [
37
+ {
38
+ "data": {
39
+ "application/vnd.jupyter.widget-view+json": {
40
+ "model_id": "15d5e7a1a1f44517adab6907cd675b92",
41
+ "version_major": 2,
42
+ "version_minor": 0
43
+ },
44
+ "text/plain": [
45
+ "Downloading readme: 0%| | 0.00/1.87k [00:00<?, ?B/s]"
46
+ ]
47
+ },
48
+ "metadata": {},
49
+ "output_type": "display_data"
50
+ },
51
  {
52
  "data": {
53
  "text/html": [
 
74
  " <th>title</th>\n",
75
  " <th>url</th>\n",
76
  " <th>text</th>\n",
 
77
  " </tr>\n",
78
  " </thead>\n",
79
  " <tbody>\n",
80
  " <tr>\n",
81
  " <th>0</th>\n",
82
  " <td>0</td>\n",
83
+ " <td>2023</td>\n",
84
  " <td>\"MIT Technology Review\"</td>\n",
85
  " <td>\"https://www.technologyreview.com\"</td>\n",
86
  " <td>\"Featured Topics Newsletters Events Podcasts F...</td>\n",
 
87
  " </tr>\n",
88
  " <tr>\n",
89
  " <th>1</th>\n",
90
  " <td>1</td>\n",
91
+ " <td>2023</td>\n",
92
  " <td>\"WIRED - The Latest in Technology, Science, Cu...</td>\n",
93
  " <td>\"https://www.wired.com\"</td>\n",
94
  " <td>\"Open Navigation Menu To revisit this article,...</td>\n",
 
95
  " </tr>\n",
96
  " <tr>\n",
97
  " <th>2</th>\n",
98
  " <td>2</td>\n",
99
+ " <td>2019</td>\n",
100
  " <td>\"The Verge\"</td>\n",
101
  " <td>\"https://www.theverge.com\"</td>\n",
102
  " <td>\"The Verge homepage The Verge The Verge logo.\\...</td>\n",
 
103
  " </tr>\n",
104
  " <tr>\n",
105
  " <th>3</th>\n",
106
  " <td>3</td>\n",
107
+ " <td>2023</td>\n",
108
  " <td>\"TechCrunch | Startup and Technology News\"</td>\n",
109
  " <td>\"https://www.techcrunch.com\"</td>\n",
110
  " <td>\"WeWork reportedly on the verge of filing for ...</td>\n",
 
111
  " </tr>\n",
112
  " <tr>\n",
113
  " <th>4</th>\n",
114
  " <td>4</td>\n",
115
+ " <td>2022</td>\n",
116
  " <td>\"A new vision of artificial intelligence for t...</td>\n",
117
  " <td>\"https://www.technologyreview.com/2022/04/22/1...</td>\n",
118
  " <td>\"Featured Topics Newsletters Events Podcasts A...</td>\n",
 
119
  " </tr>\n",
120
  " </tbody>\n",
121
  "</table>\n",
122
  "</div>"
123
  ],
124
  "text/plain": [
125
+ " id year title \\\n",
126
+ "0 0 2023 \"MIT Technology Review\" \n",
127
+ "1 1 2023 \"WIRED - The Latest in Technology, Science, Cu... \n",
128
+ "2 2 2019 \"The Verge\" \n",
129
+ "3 3 2023 \"TechCrunch | Startup and Technology News\" \n",
130
+ "4 4 2022 \"A new vision of artificial intelligence for t... \n",
131
  "\n",
132
  " url \\\n",
133
  "0 \"https://www.technologyreview.com\" \n",
 
136
  "3 \"https://www.techcrunch.com\" \n",
137
  "4 \"https://www.technologyreview.com/2022/04/22/1... \n",
138
  "\n",
139
+ " text \n",
140
+ "0 \"Featured Topics Newsletters Events Podcasts F... \n",
141
+ "1 \"Open Navigation Menu To revisit this article,... \n",
142
+ "2 \"The Verge homepage The Verge The Verge logo.\\... \n",
143
+ "3 \"WeWork reportedly on the verge of filing for ... \n",
144
+ "4 \"Featured Topics Newsletters Events Podcasts A... "
145
  ]
146
  },
147
+ "execution_count": 2,
148
  "metadata": {},
149
  "output_type": "execute_result"
150
  }
 
158
  },
159
  {
160
  "cell_type": "code",
161
+ "execution_count": 3,
162
  "metadata": {},
163
  "outputs": [
164
  {
counts.csv DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:06a4a5ec4a4ac58a3f578ae83ad05450730de0a7700dab86e0ce8c21c60dde9f
3
- size 535
 
 
 
 
train.csv → raw.csv RENAMED
File without changes
test.ipynb CHANGED
@@ -22,43 +22,14 @@
22
  "cell_type": "code",
23
  "execution_count": 4,
24
  "metadata": {},
25
- "outputs": [
26
- {
27
- "data": {
28
- "application/vnd.jupyter.widget-view+json": {
29
- "model_id": "b56274faa04d46c0a8ce3871242ffc6e",
30
- "version_major": 2,
31
- "version_minor": 0
32
- },
33
- "text/plain": [
34
- "Downloading readme: 0%| | 0.00/1.37k [00:00<?, ?B/s]"
35
- ]
36
- },
37
- "metadata": {},
38
- "output_type": "display_data"
39
- },
40
- {
41
- "ename": "FileNotFoundError",
42
- "evalue": "Couldn't find a dataset script at /Users/amittaijoel/workspace/crawl.hs/data/metadata/siavava/ai-tech-articles/ai-tech-articles.py or any data file in the same directory. Couldn't find 'siavava/ai-tech-articles' on the Hugging Face Hub either: FileNotFoundError: No (supported) data files or dataset script found in siavava/ai-tech-articles. ",
43
- "output_type": "error",
44
- "traceback": [
45
- "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
46
- "\u001b[0;31mFileNotFoundError\u001b[0m Traceback (most recent call last)",
47
- "\u001b[1;32m/Users/amittaijoel/workspace/crawl.hs/data/metadata/test.ipynb Cell 3\u001b[0m line \u001b[0;36m1\n\u001b[0;32m----> <a href='vscode-notebook-cell:/Users/amittaijoel/workspace/crawl.hs/data/metadata/test.ipynb#W2sZmlsZQ%3D%3D?line=0'>1</a>\u001b[0m dt \u001b[39m=\u001b[39m load_dataset(\u001b[39m\"\u001b[39;49m\u001b[39msiavava/ai-tech-articles\u001b[39;49m\u001b[39m\"\u001b[39;49m)\n",
48
- "File \u001b[0;32m~/miniconda3/envs/data-mining/lib/python3.11/site-packages/datasets/load.py:2129\u001b[0m, in \u001b[0;36mload_dataset\u001b[0;34m(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, ignore_verifications, keep_in_memory, save_infos, revision, token, use_auth_token, task, streaming, num_proc, storage_options, **config_kwargs)\u001b[0m\n\u001b[1;32m 2124\u001b[0m verification_mode \u001b[39m=\u001b[39m VerificationMode(\n\u001b[1;32m 2125\u001b[0m (verification_mode \u001b[39mor\u001b[39;00m VerificationMode\u001b[39m.\u001b[39mBASIC_CHECKS) \u001b[39mif\u001b[39;00m \u001b[39mnot\u001b[39;00m save_infos \u001b[39melse\u001b[39;00m VerificationMode\u001b[39m.\u001b[39mALL_CHECKS\n\u001b[1;32m 2126\u001b[0m )\n\u001b[1;32m 2128\u001b[0m \u001b[39m# Create a dataset builder\u001b[39;00m\n\u001b[0;32m-> 2129\u001b[0m builder_instance \u001b[39m=\u001b[39m load_dataset_builder(\n\u001b[1;32m 2130\u001b[0m path\u001b[39m=\u001b[39;49mpath,\n\u001b[1;32m 2131\u001b[0m name\u001b[39m=\u001b[39;49mname,\n\u001b[1;32m 2132\u001b[0m data_dir\u001b[39m=\u001b[39;49mdata_dir,\n\u001b[1;32m 2133\u001b[0m data_files\u001b[39m=\u001b[39;49mdata_files,\n\u001b[1;32m 2134\u001b[0m cache_dir\u001b[39m=\u001b[39;49mcache_dir,\n\u001b[1;32m 2135\u001b[0m features\u001b[39m=\u001b[39;49mfeatures,\n\u001b[1;32m 2136\u001b[0m download_config\u001b[39m=\u001b[39;49mdownload_config,\n\u001b[1;32m 2137\u001b[0m download_mode\u001b[39m=\u001b[39;49mdownload_mode,\n\u001b[1;32m 2138\u001b[0m revision\u001b[39m=\u001b[39;49mrevision,\n\u001b[1;32m 2139\u001b[0m token\u001b[39m=\u001b[39;49mtoken,\n\u001b[1;32m 2140\u001b[0m storage_options\u001b[39m=\u001b[39;49mstorage_options,\n\u001b[1;32m 2141\u001b[0m \u001b[39m*\u001b[39;49m\u001b[39m*\u001b[39;49mconfig_kwargs,\n\u001b[1;32m 2142\u001b[0m )\n\u001b[1;32m 2144\u001b[0m \u001b[39m# Return iterable dataset in case of streaming\u001b[39;00m\n\u001b[1;32m 2145\u001b[0m \u001b[39mif\u001b[39;00m streaming:\n",
49
- "File \u001b[0;32m~/miniconda3/envs/data-mining/lib/python3.11/site-packages/datasets/load.py:1815\u001b[0m, in \u001b[0;36mload_dataset_builder\u001b[0;34m(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, use_auth_token, storage_options, **config_kwargs)\u001b[0m\n\u001b[1;32m 1813\u001b[0m download_config \u001b[39m=\u001b[39m download_config\u001b[39m.\u001b[39mcopy() \u001b[39mif\u001b[39;00m download_config \u001b[39melse\u001b[39;00m DownloadConfig()\n\u001b[1;32m 1814\u001b[0m download_config\u001b[39m.\u001b[39mstorage_options\u001b[39m.\u001b[39mupdate(storage_options)\n\u001b[0;32m-> 1815\u001b[0m dataset_module \u001b[39m=\u001b[39m dataset_module_factory(\n\u001b[1;32m 1816\u001b[0m path,\n\u001b[1;32m 1817\u001b[0m revision\u001b[39m=\u001b[39;49mrevision,\n\u001b[1;32m 1818\u001b[0m download_config\u001b[39m=\u001b[39;49mdownload_config,\n\u001b[1;32m 1819\u001b[0m download_mode\u001b[39m=\u001b[39;49mdownload_mode,\n\u001b[1;32m 1820\u001b[0m data_dir\u001b[39m=\u001b[39;49mdata_dir,\n\u001b[1;32m 1821\u001b[0m data_files\u001b[39m=\u001b[39;49mdata_files,\n\u001b[1;32m 1822\u001b[0m )\n\u001b[1;32m 1823\u001b[0m \u001b[39m# Get dataset builder class from the processing script\u001b[39;00m\n\u001b[1;32m 1824\u001b[0m builder_kwargs \u001b[39m=\u001b[39m dataset_module\u001b[39m.\u001b[39mbuilder_kwargs\n",
50
- "File \u001b[0;32m~/miniconda3/envs/data-mining/lib/python3.11/site-packages/datasets/load.py:1508\u001b[0m, in \u001b[0;36mdataset_module_factory\u001b[0;34m(path, revision, download_config, download_mode, dynamic_modules_path, data_dir, data_files, **download_kwargs)\u001b[0m\n\u001b[1;32m 1506\u001b[0m \u001b[39mraise\u001b[39;00m e1 \u001b[39mfrom\u001b[39;00m \u001b[39mNone\u001b[39;00m\n\u001b[1;32m 1507\u001b[0m \u001b[39mif\u001b[39;00m \u001b[39misinstance\u001b[39m(e1, \u001b[39mFileNotFoundError\u001b[39;00m):\n\u001b[0;32m-> 1508\u001b[0m \u001b[39mraise\u001b[39;00m \u001b[39mFileNotFoundError\u001b[39;00m(\n\u001b[1;32m 1509\u001b[0m \u001b[39mf\u001b[39m\u001b[39m\"\u001b[39m\u001b[39mCouldn\u001b[39m\u001b[39m'\u001b[39m\u001b[39mt find a dataset script at \u001b[39m\u001b[39m{\u001b[39;00mrelative_to_absolute_path(combined_path)\u001b[39m}\u001b[39;00m\u001b[39m or any data file in the same directory. \u001b[39m\u001b[39m\"\u001b[39m\n\u001b[1;32m 1510\u001b[0m \u001b[39mf\u001b[39m\u001b[39m\"\u001b[39m\u001b[39mCouldn\u001b[39m\u001b[39m'\u001b[39m\u001b[39mt find \u001b[39m\u001b[39m'\u001b[39m\u001b[39m{\u001b[39;00mpath\u001b[39m}\u001b[39;00m\u001b[39m'\u001b[39m\u001b[39m on the Hugging Face Hub either: \u001b[39m\u001b[39m{\u001b[39;00m\u001b[39mtype\u001b[39m(e1)\u001b[39m.\u001b[39m\u001b[39m__name__\u001b[39m\u001b[39m}\u001b[39;00m\u001b[39m: \u001b[39m\u001b[39m{\u001b[39;00me1\u001b[39m}\u001b[39;00m\u001b[39m\"\u001b[39m\n\u001b[1;32m 1511\u001b[0m ) \u001b[39mfrom\u001b[39;00m \u001b[39mNone\u001b[39;00m\n\u001b[1;32m 1512\u001b[0m \u001b[39mraise\u001b[39;00m e1 \u001b[39mfrom\u001b[39;00m \u001b[39mNone\u001b[39;00m\n\u001b[1;32m 1513\u001b[0m \u001b[39melse\u001b[39;00m:\n",
51
- "\u001b[0;31mFileNotFoundError\u001b[0m: Couldn't find a dataset script at /Users/amittaijoel/workspace/crawl.hs/data/metadata/siavava/ai-tech-articles/ai-tech-articles.py or any data file in the same directory. Couldn't find 'siavava/ai-tech-articles' on the Hugging Face Hub either: FileNotFoundError: No (supported) data files or dataset script found in siavava/ai-tech-articles. "
52
- ]
53
- }
54
- ],
55
  "source": [
56
  "dt = load_dataset(\"siavava/ai-tech-articles\")\n"
57
  ]
58
  },
59
  {
60
  "cell_type": "code",
61
- "execution_count": null,
62
  "metadata": {},
63
  "outputs": [
64
  {
@@ -87,116 +58,105 @@
87
  " <th>title</th>\n",
88
  " <th>url</th>\n",
89
  " <th>text</th>\n",
90
- " <th>__index_level_0__</th>\n",
91
  " </tr>\n",
92
  " </thead>\n",
93
  " <tbody>\n",
94
  " <tr>\n",
95
  " <th>0</th>\n",
96
  " <td>0</td>\n",
97
- " <td>2023.0</td>\n",
98
  " <td>\"MIT Technology Review\"</td>\n",
99
  " <td>\"https://www.technologyreview.com\"</td>\n",
100
  " <td>\"Featured Topics Newsletters Events Podcasts F...</td>\n",
101
- " <td>0</td>\n",
102
  " </tr>\n",
103
  " <tr>\n",
104
  " <th>1</th>\n",
105
  " <td>1</td>\n",
106
- " <td>2023.0</td>\n",
107
  " <td>\"WIRED - The Latest in Technology, Science, Cu...</td>\n",
108
  " <td>\"https://www.wired.com\"</td>\n",
109
  " <td>\"Open Navigation Menu To revisit this article,...</td>\n",
110
- " <td>1</td>\n",
111
  " </tr>\n",
112
  " <tr>\n",
113
  " <th>2</th>\n",
114
  " <td>2</td>\n",
115
- " <td>2019.0</td>\n",
116
  " <td>\"The Verge\"</td>\n",
117
  " <td>\"https://www.theverge.com\"</td>\n",
118
  " <td>\"The Verge homepage The Verge The Verge logo.\\...</td>\n",
119
- " <td>2</td>\n",
120
  " </tr>\n",
121
  " <tr>\n",
122
  " <th>3</th>\n",
123
  " <td>3</td>\n",
124
- " <td>2023.0</td>\n",
125
  " <td>\"TechCrunch | Startup and Technology News\"</td>\n",
126
  " <td>\"https://www.techcrunch.com\"</td>\n",
127
  " <td>\"WeWork reportedly on the verge of filing for ...</td>\n",
128
- " <td>3</td>\n",
129
  " </tr>\n",
130
  " <tr>\n",
131
  " <th>4</th>\n",
132
  " <td>4</td>\n",
133
- " <td>2022.0</td>\n",
134
  " <td>\"A new vision of artificial intelligence for t...</td>\n",
135
  " <td>\"https://www.technologyreview.com/2022/04/22/1...</td>\n",
136
  " <td>\"Featured Topics Newsletters Events Podcasts A...</td>\n",
137
- " <td>4</td>\n",
138
  " </tr>\n",
139
  " <tr>\n",
140
  " <th>5</th>\n",
141
  " <td>5</td>\n",
142
- " <td>2022.0</td>\n",
143
  " <td>\"The scientist who co-created CRISPR isn’t rul...</td>\n",
144
  " <td>\"https://www.technologyreview.com/2022/04/26/1...</td>\n",
145
  " <td>\"Featured Topics Newsletters Events Podcasts F...</td>\n",
146
- " <td>5</td>\n",
147
  " </tr>\n",
148
  " <tr>\n",
149
  " <th>6</th>\n",
150
  " <td>6</td>\n",
151
- " <td>2022.0</td>\n",
152
  " <td>\"These fast, cheap tests could help us coexist...</td>\n",
153
  " <td>\"https://www.technologyreview.com/2022/04/27/1...</td>\n",
154
  " <td>\"Featured Topics Newsletters Events Podcasts F...</td>\n",
155
- " <td>6</td>\n",
156
  " </tr>\n",
157
  " <tr>\n",
158
  " <th>7</th>\n",
159
  " <td>7</td>\n",
160
- " <td>2022.0</td>\n",
161
  " <td>\"Tackling multiple tasks with a single visual ...</td>\n",
162
  " <td>\"http://www.deepmind.com/blog/tackling-multipl...</td>\n",
163
  " <td>\"DeepMind Search Search Close DeepMind About O...</td>\n",
164
- " <td>7</td>\n",
165
  " </tr>\n",
166
  " <tr>\n",
167
  " <th>8</th>\n",
168
  " <td>8</td>\n",
169
- " <td>2019.0</td>\n",
170
  " <td>\"About - Google DeepMind\"</td>\n",
171
  " <td>\"https://www.deepmind.com/about\"</td>\n",
172
  " <td>\"DeepMind Search Search Close DeepMind About O...</td>\n",
173
- " <td>8</td>\n",
174
  " </tr>\n",
175
  " <tr>\n",
176
  " <th>9</th>\n",
177
  " <td>9</td>\n",
178
- " <td>2023.0</td>\n",
179
  " <td>\"Blog - Google DeepMind\"</td>\n",
180
  " <td>\"https://www.deepmind.com/blog-categories/appl...</td>\n",
181
  " <td>\"DeepMind Search Search Close DeepMind About O...</td>\n",
182
- " <td>9</td>\n",
183
  " </tr>\n",
184
  " </tbody>\n",
185
  "</table>\n",
186
  "</div>"
187
  ],
188
  "text/plain": [
189
- " id year title \\\n",
190
- "0 0 2023.0 \"MIT Technology Review\" \n",
191
- "1 1 2023.0 \"WIRED - The Latest in Technology, Science, Cu... \n",
192
- "2 2 2019.0 \"The Verge\" \n",
193
- "3 3 2023.0 \"TechCrunch | Startup and Technology News\" \n",
194
- "4 4 2022.0 \"A new vision of artificial intelligence for t... \n",
195
- "5 5 2022.0 \"The scientist who co-created CRISPR isn’t rul... \n",
196
- "6 6 2022.0 \"These fast, cheap tests could help us coexist... \n",
197
- "7 7 2022.0 \"Tackling multiple tasks with a single visual ... \n",
198
- "8 8 2019.0 \"About - Google DeepMind\" \n",
199
- "9 9 2023.0 \"Blog - Google DeepMind\" \n",
200
  "\n",
201
  " url \\\n",
202
  "0 \"https://www.technologyreview.com\" \n",
@@ -210,20 +170,20 @@
210
  "8 \"https://www.deepmind.com/about\" \n",
211
  "9 \"https://www.deepmind.com/blog-categories/appl... \n",
212
  "\n",
213
- " text __index_level_0__ \n",
214
- "0 \"Featured Topics Newsletters Events Podcasts F... 0 \n",
215
- "1 \"Open Navigation Menu To revisit this article,... 1 \n",
216
- "2 \"The Verge homepage The Verge The Verge logo.\\... 2 \n",
217
- "3 \"WeWork reportedly on the verge of filing for ... 3 \n",
218
- "4 \"Featured Topics Newsletters Events Podcasts A... 4 \n",
219
- "5 \"Featured Topics Newsletters Events Podcasts F... 5 \n",
220
- "6 \"Featured Topics Newsletters Events Podcasts F... 6 \n",
221
- "7 \"DeepMind Search Search Close DeepMind About O... 7 \n",
222
- "8 \"DeepMind Search Search Close DeepMind About O... 8 \n",
223
- "9 \"DeepMind Search Search Close DeepMind About O... 9 "
224
  ]
225
  },
226
- "execution_count": 4,
227
  "metadata": {},
228
  "output_type": "execute_result"
229
  }
 
22
  "cell_type": "code",
23
  "execution_count": 4,
24
  "metadata": {},
25
+ "outputs": [],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  "source": [
27
  "dt = load_dataset(\"siavava/ai-tech-articles\")\n"
28
  ]
29
  },
30
  {
31
  "cell_type": "code",
32
+ "execution_count": 5,
33
  "metadata": {},
34
  "outputs": [
35
  {
 
58
  " <th>title</th>\n",
59
  " <th>url</th>\n",
60
  " <th>text</th>\n",
 
61
  " </tr>\n",
62
  " </thead>\n",
63
  " <tbody>\n",
64
  " <tr>\n",
65
  " <th>0</th>\n",
66
  " <td>0</td>\n",
67
+ " <td>2023</td>\n",
68
  " <td>\"MIT Technology Review\"</td>\n",
69
  " <td>\"https://www.technologyreview.com\"</td>\n",
70
  " <td>\"Featured Topics Newsletters Events Podcasts F...</td>\n",
 
71
  " </tr>\n",
72
  " <tr>\n",
73
  " <th>1</th>\n",
74
  " <td>1</td>\n",
75
+ " <td>2023</td>\n",
76
  " <td>\"WIRED - The Latest in Technology, Science, Cu...</td>\n",
77
  " <td>\"https://www.wired.com\"</td>\n",
78
  " <td>\"Open Navigation Menu To revisit this article,...</td>\n",
 
79
  " </tr>\n",
80
  " <tr>\n",
81
  " <th>2</th>\n",
82
  " <td>2</td>\n",
83
+ " <td>2019</td>\n",
84
  " <td>\"The Verge\"</td>\n",
85
  " <td>\"https://www.theverge.com\"</td>\n",
86
  " <td>\"The Verge homepage The Verge The Verge logo.\\...</td>\n",
 
87
  " </tr>\n",
88
  " <tr>\n",
89
  " <th>3</th>\n",
90
  " <td>3</td>\n",
91
+ " <td>2023</td>\n",
92
  " <td>\"TechCrunch | Startup and Technology News\"</td>\n",
93
  " <td>\"https://www.techcrunch.com\"</td>\n",
94
  " <td>\"WeWork reportedly on the verge of filing for ...</td>\n",
 
95
  " </tr>\n",
96
  " <tr>\n",
97
  " <th>4</th>\n",
98
  " <td>4</td>\n",
99
+ " <td>2022</td>\n",
100
  " <td>\"A new vision of artificial intelligence for t...</td>\n",
101
  " <td>\"https://www.technologyreview.com/2022/04/22/1...</td>\n",
102
  " <td>\"Featured Topics Newsletters Events Podcasts A...</td>\n",
 
103
  " </tr>\n",
104
  " <tr>\n",
105
  " <th>5</th>\n",
106
  " <td>5</td>\n",
107
+ " <td>2022</td>\n",
108
  " <td>\"The scientist who co-created CRISPR isn’t rul...</td>\n",
109
  " <td>\"https://www.technologyreview.com/2022/04/26/1...</td>\n",
110
  " <td>\"Featured Topics Newsletters Events Podcasts F...</td>\n",
 
111
  " </tr>\n",
112
  " <tr>\n",
113
  " <th>6</th>\n",
114
  " <td>6</td>\n",
115
+ " <td>2022</td>\n",
116
  " <td>\"These fast, cheap tests could help us coexist...</td>\n",
117
  " <td>\"https://www.technologyreview.com/2022/04/27/1...</td>\n",
118
  " <td>\"Featured Topics Newsletters Events Podcasts F...</td>\n",
 
119
  " </tr>\n",
120
  " <tr>\n",
121
  " <th>7</th>\n",
122
  " <td>7</td>\n",
123
+ " <td>2022</td>\n",
124
  " <td>\"Tackling multiple tasks with a single visual ...</td>\n",
125
  " <td>\"http://www.deepmind.com/blog/tackling-multipl...</td>\n",
126
  " <td>\"DeepMind Search Search Close DeepMind About O...</td>\n",
 
127
  " </tr>\n",
128
  " <tr>\n",
129
  " <th>8</th>\n",
130
  " <td>8</td>\n",
131
+ " <td>2019</td>\n",
132
  " <td>\"About - Google DeepMind\"</td>\n",
133
  " <td>\"https://www.deepmind.com/about\"</td>\n",
134
  " <td>\"DeepMind Search Search Close DeepMind About O...</td>\n",
 
135
  " </tr>\n",
136
  " <tr>\n",
137
  " <th>9</th>\n",
138
  " <td>9</td>\n",
139
+ " <td>2023</td>\n",
140
  " <td>\"Blog - Google DeepMind\"</td>\n",
141
  " <td>\"https://www.deepmind.com/blog-categories/appl...</td>\n",
142
  " <td>\"DeepMind Search Search Close DeepMind About O...</td>\n",
 
143
  " </tr>\n",
144
  " </tbody>\n",
145
  "</table>\n",
146
  "</div>"
147
  ],
148
  "text/plain": [
149
+ " id year title \\\n",
150
+ "0 0 2023 \"MIT Technology Review\" \n",
151
+ "1 1 2023 \"WIRED - The Latest in Technology, Science, Cu... \n",
152
+ "2 2 2019 \"The Verge\" \n",
153
+ "3 3 2023 \"TechCrunch | Startup and Technology News\" \n",
154
+ "4 4 2022 \"A new vision of artificial intelligence for t... \n",
155
+ "5 5 2022 \"The scientist who co-created CRISPR isn’t rul... \n",
156
+ "6 6 2022 \"These fast, cheap tests could help us coexist... \n",
157
+ "7 7 2022 \"Tackling multiple tasks with a single visual ... \n",
158
+ "8 8 2019 \"About - Google DeepMind\" \n",
159
+ "9 9 2023 \"Blog - Google DeepMind\" \n",
160
  "\n",
161
  " url \\\n",
162
  "0 \"https://www.technologyreview.com\" \n",
 
170
  "8 \"https://www.deepmind.com/about\" \n",
171
  "9 \"https://www.deepmind.com/blog-categories/appl... \n",
172
  "\n",
173
+ " text \n",
174
+ "0 \"Featured Topics Newsletters Events Podcasts F... \n",
175
+ "1 \"Open Navigation Menu To revisit this article,... \n",
176
+ "2 \"The Verge homepage The Verge The Verge logo.\\... \n",
177
+ "3 \"WeWork reportedly on the verge of filing for ... \n",
178
+ "4 \"Featured Topics Newsletters Events Podcasts A... \n",
179
+ "5 \"Featured Topics Newsletters Events Podcasts F... \n",
180
+ "6 \"Featured Topics Newsletters Events Podcasts F... \n",
181
+ "7 \"DeepMind Search Search Close DeepMind About O... \n",
182
+ "8 \"DeepMind Search Search Close DeepMind About O... \n",
183
+ "9 \"DeepMind Search Search Close DeepMind About O... "
184
  ]
185
  },
186
+ "execution_count": 5,
187
  "metadata": {},
188
  "output_type": "execute_result"
189
  }