KennethEnevoldsen
commited on
Commit
•
9b7974b
1
Parent(s):
8a7fb2b
Delete data file
Browse files- experiments.ipynb +0 -211
experiments.ipynb
DELETED
@@ -1,211 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"cells": [
|
3 |
-
{
|
4 |
-
"cell_type": "markdown",
|
5 |
-
"metadata": {},
|
6 |
-
"source": [
|
7 |
-
"# 🤗 Experiments over hf dataset"
|
8 |
-
]
|
9 |
-
},
|
10 |
-
{
|
11 |
-
"cell_type": "code",
|
12 |
-
"execution_count": 1,
|
13 |
-
"metadata": {},
|
14 |
-
"outputs": [],
|
15 |
-
"source": [
|
16 |
-
"import datasets\n",
|
17 |
-
"from datasets import load_dataset"
|
18 |
-
]
|
19 |
-
},
|
20 |
-
{
|
21 |
-
"cell_type": "code",
|
22 |
-
"execution_count": 2,
|
23 |
-
"metadata": {},
|
24 |
-
"outputs": [
|
25 |
-
{
|
26 |
-
"name": "stderr",
|
27 |
-
"output_type": "stream",
|
28 |
-
"text": [
|
29 |
-
"Using custom data configuration default\n",
|
30 |
-
"Reusing dataset ctkfacts_nli (/Users/bertik/.cache/huggingface/datasets/ctkfacts_nli/default/0.0.0/5dcd805dfbd9694ead18f5cf4da8d902a1a1ca53685a5ebabd33f3d314dd597d)\n",
|
31 |
-
"100%|██████████| 3/3 [00:00<00:00, 409.28it/s]\n"
|
32 |
-
]
|
33 |
-
}
|
34 |
-
],
|
35 |
-
"source": [
|
36 |
-
"d=load_dataset(\"../ctkfacts_nli.py\")"
|
37 |
-
]
|
38 |
-
},
|
39 |
-
{
|
40 |
-
"cell_type": "code",
|
41 |
-
"execution_count": 10,
|
42 |
-
"metadata": {},
|
43 |
-
"outputs": [
|
44 |
-
{
|
45 |
-
"data": {
|
46 |
-
"text/plain": [
|
47 |
-
"DatasetDict({\n",
|
48 |
-
" train: Dataset({\n",
|
49 |
-
" features: ['id', 'label', 'evidence', 'claim'],\n",
|
50 |
-
" num_rows: 2903\n",
|
51 |
-
" })\n",
|
52 |
-
" validation: Dataset({\n",
|
53 |
-
" features: ['id', 'label', 'evidence', 'claim'],\n",
|
54 |
-
" num_rows: 377\n",
|
55 |
-
" })\n",
|
56 |
-
" test: Dataset({\n",
|
57 |
-
" features: ['id', 'label', 'evidence', 'claim'],\n",
|
58 |
-
" num_rows: 431\n",
|
59 |
-
" })\n",
|
60 |
-
"})"
|
61 |
-
]
|
62 |
-
},
|
63 |
-
"execution_count": 10,
|
64 |
-
"metadata": {},
|
65 |
-
"output_type": "execute_result"
|
66 |
-
}
|
67 |
-
],
|
68 |
-
"source": [
|
69 |
-
"d"
|
70 |
-
]
|
71 |
-
},
|
72 |
-
{
|
73 |
-
"cell_type": "code",
|
74 |
-
"execution_count": 11,
|
75 |
-
"metadata": {},
|
76 |
-
"outputs": [
|
77 |
-
{
|
78 |
-
"name": "stdout",
|
79 |
-
"output_type": "stream",
|
80 |
-
"text": [
|
81 |
-
"\n",
|
82 |
-
" _| _| _| _| _|_|_| _|_|_| _|_|_| _| _| _|_|_| _|_|_|_| _|_| _|_|_| _|_|_|_|\n",
|
83 |
-
" _| _| _| _| _| _| _| _|_| _| _| _| _| _| _| _|\n",
|
84 |
-
" _|_|_|_| _| _| _| _|_| _| _|_| _| _| _| _| _| _|_| _|_|_| _|_|_|_| _| _|_|_|\n",
|
85 |
-
" _| _| _| _| _| _| _| _| _| _| _|_| _| _| _| _| _| _| _|\n",
|
86 |
-
" _| _| _|_| _|_|_| _|_|_| _|_|_| _| _| _|_|_| _| _| _| _|_|_| _|_|_|_|\n",
|
87 |
-
"\n",
|
88 |
-
" \n",
|
89 |
-
"Username: ^C\n",
|
90 |
-
"Traceback (most recent call last):\n",
|
91 |
-
" File \"/opt/homebrew/bin/huggingface-cli\", line 8, in <module>\n",
|
92 |
-
" sys.exit(main())\n",
|
93 |
-
" File \"/opt/homebrew/lib/python3.9/site-packages/huggingface_hub/commands/huggingface_cli.py\", line 41, in main\n",
|
94 |
-
" service.run()\n",
|
95 |
-
" File \"/opt/homebrew/lib/python3.9/site-packages/huggingface_hub/commands/user.py\", line 169, in run\n",
|
96 |
-
" username = input(\"Username: \")\n",
|
97 |
-
"KeyboardInterrupt\n"
|
98 |
-
]
|
99 |
-
}
|
100 |
-
],
|
101 |
-
"source": [
|
102 |
-
"!huggingface-cli login"
|
103 |
-
]
|
104 |
-
},
|
105 |
-
{
|
106 |
-
"cell_type": "code",
|
107 |
-
"execution_count": 4,
|
108 |
-
"metadata": {},
|
109 |
-
"outputs": [
|
110 |
-
{
|
111 |
-
"name": "stderr",
|
112 |
-
"output_type": "stream",
|
113 |
-
"text": [
|
114 |
-
"Downloading: 100%|██████████| 2.55k/2.55k [00:00<00:00, 1.33MB/s]\n",
|
115 |
-
"Using custom data configuration default\n"
|
116 |
-
]
|
117 |
-
},
|
118 |
-
{
|
119 |
-
"name": "stdout",
|
120 |
-
"output_type": "stream",
|
121 |
-
"text": [
|
122 |
-
"Downloading and preparing dataset ctkfacts_nli/default to /Users/bertik/.cache/huggingface/datasets/heruberuto___ctkfacts_nli/default/0.0.0/5dcd805dfbd9694ead18f5cf4da8d902a1a1ca53685a5ebabd33f3d314dd597d...\n"
|
123 |
-
]
|
124 |
-
},
|
125 |
-
{
|
126 |
-
"name": "stderr",
|
127 |
-
"output_type": "stream",
|
128 |
-
"text": [
|
129 |
-
"Downloading: 100%|██████████| 2.14M/2.14M [00:00<00:00, 2.86MB/s]\n",
|
130 |
-
"Downloading: 100%|██████████| 247k/247k [00:00<00:00, 386kB/s]\n",
|
131 |
-
"Downloading: 100%|██████████| 287k/287k [00:00<00:00, 450kB/s]\n",
|
132 |
-
"100%|██████████| 3/3 [00:04<00:00, 1.66s/it]\n",
|
133 |
-
"100%|██████████| 3/3 [00:00<00:00, 976.56it/s]\n"
|
134 |
-
]
|
135 |
-
},
|
136 |
-
{
|
137 |
-
"name": "stdout",
|
138 |
-
"output_type": "stream",
|
139 |
-
"text": [
|
140 |
-
"Dataset ctkfacts_nli downloaded and prepared to /Users/bertik/.cache/huggingface/datasets/heruberuto___ctkfacts_nli/default/0.0.0/5dcd805dfbd9694ead18f5cf4da8d902a1a1ca53685a5ebabd33f3d314dd597d. Subsequent calls will reuse this data.\n"
|
141 |
-
]
|
142 |
-
},
|
143 |
-
{
|
144 |
-
"name": "stderr",
|
145 |
-
"output_type": "stream",
|
146 |
-
"text": [
|
147 |
-
"100%|██████████| 3/3 [00:00<00:00, 811.96it/s]\n"
|
148 |
-
]
|
149 |
-
},
|
150 |
-
{
|
151 |
-
"data": {
|
152 |
-
"text/plain": [
|
153 |
-
"DatasetDict({\n",
|
154 |
-
" train: Dataset({\n",
|
155 |
-
" features: ['id', 'label', 'evidence', 'claim'],\n",
|
156 |
-
" num_rows: 2903\n",
|
157 |
-
" })\n",
|
158 |
-
" validation: Dataset({\n",
|
159 |
-
" features: ['id', 'label', 'evidence', 'claim'],\n",
|
160 |
-
" num_rows: 377\n",
|
161 |
-
" })\n",
|
162 |
-
" test: Dataset({\n",
|
163 |
-
" features: ['id', 'label', 'evidence', 'claim'],\n",
|
164 |
-
" num_rows: 431\n",
|
165 |
-
" })\n",
|
166 |
-
"})"
|
167 |
-
]
|
168 |
-
},
|
169 |
-
"execution_count": 4,
|
170 |
-
"metadata": {},
|
171 |
-
"output_type": "execute_result"
|
172 |
-
}
|
173 |
-
],
|
174 |
-
"source": [
|
175 |
-
"load_dataset(\"heruberuto/ctkfacts_nli\", use_auth_token=True)"
|
176 |
-
]
|
177 |
-
},
|
178 |
-
{
|
179 |
-
"cell_type": "code",
|
180 |
-
"execution_count": null,
|
181 |
-
"metadata": {},
|
182 |
-
"outputs": [],
|
183 |
-
"source": []
|
184 |
-
}
|
185 |
-
],
|
186 |
-
"metadata": {
|
187 |
-
"interpreter": {
|
188 |
-
"hash": "b0fa6594d8f4cbf19f97940f81e996739fb7646882a419484c72d19e05852a7e"
|
189 |
-
},
|
190 |
-
"kernelspec": {
|
191 |
-
"display_name": "Python 3.9.7 64-bit",
|
192 |
-
"language": "python",
|
193 |
-
"name": "python3"
|
194 |
-
},
|
195 |
-
"language_info": {
|
196 |
-
"codemirror_mode": {
|
197 |
-
"name": "ipython",
|
198 |
-
"version": 3
|
199 |
-
},
|
200 |
-
"file_extension": ".py",
|
201 |
-
"mimetype": "text/x-python",
|
202 |
-
"name": "python",
|
203 |
-
"nbconvert_exporter": "python",
|
204 |
-
"pygments_lexer": "ipython3",
|
205 |
-
"version": "3.9.7"
|
206 |
-
},
|
207 |
-
"orig_nbformat": 4
|
208 |
-
},
|
209 |
-
"nbformat": 4,
|
210 |
-
"nbformat_minor": 2
|
211 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|