html_url
stringlengths
48
51
title
stringlengths
5
268
comments
stringlengths
63
51.8k
body
stringlengths
0
36.2k
comment_length
int64
16
1.52k
text
stringlengths
164
54.1k
embeddings
sequence
https://github.com/huggingface/datasets/issues/3634
Dataset.shuffle(seed=None) gives fixed row permutation
Hi! Thanks for reporting! Yes, this is not expected behavior. I've opened a PR with the fix.
## Describe the bug Repeated attempts to `shuffle` a dataset without specifying a seed give the same results. ## Steps to reproduce the bug ```python import datasets # Some toy example data = datasets.Dataset.from_dict( {"feature": [1, 2, 3, 4, 5], "label": ["a", "b", "c", "d", "e"]} ) # Doesn't work as expected print("Shuffle dataset") for _ in range(3): print(data.shuffle(seed=None)[:]) # This seems to work with pandas print("\nShuffle via pandas") for _ in range(3): df = data.to_pandas().sample(frac=1.0) print(datasets.Dataset.from_pandas(df, preserve_index=False)[:]) ``` ## Expected results I assumed that the default setting would initialize a new/random state of a `np.random.BitGenerator` (see [docs](https://huggingface.co/docs/datasets/package_reference/main_classes.html?highlight=shuffle#datasets.Dataset.shuffle)). Wouldn't that reshuffle the rows each time I call `data.shuffle()`? ## Actual results ```bash Shuffle dataset {'feature': [5, 1, 3, 2, 4], 'label': ['e', 'a', 'c', 'b', 'd']} {'feature': [5, 1, 3, 2, 4], 'label': ['e', 'a', 'c', 'b', 'd']} {'feature': [5, 1, 3, 2, 4], 'label': ['e', 'a', 'c', 'b', 'd']} Shuffle via pandas {'feature': [4, 2, 3, 1, 5], 'label': ['d', 'b', 'c', 'a', 'e']} {'feature': [2, 5, 3, 4, 1], 'label': ['b', 'e', 'c', 'd', 'a']} {'feature': [5, 2, 3, 1, 4], 'label': ['e', 'b', 'c', 'a', 'd']} ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.0 - Platform: Linux-5.13.0-27-generic-x86_64-with-glibc2.17 - Python version: 3.8.12 - PyArrow version: 6.0.1
17
Dataset.shuffle(seed=None) gives fixed row permutation ## Describe the bug Repeated attempts to `shuffle` a dataset without specifying a seed give the same results. ## Steps to reproduce the bug ```python import datasets # Some toy example data = datasets.Dataset.from_dict( {"feature": [1, 2, 3, 4, 5], "label": ["a", "b", "c", "d", "e"]} ) # Doesn't work as expected print("Shuffle dataset") for _ in range(3): print(data.shuffle(seed=None)[:]) # This seems to work with pandas print("\nShuffle via pandas") for _ in range(3): df = data.to_pandas().sample(frac=1.0) print(datasets.Dataset.from_pandas(df, preserve_index=False)[:]) ``` ## Expected results I assumed that the default setting would initialize a new/random state of a `np.random.BitGenerator` (see [docs](https://huggingface.co/docs/datasets/package_reference/main_classes.html?highlight=shuffle#datasets.Dataset.shuffle)). Wouldn't that reshuffle the rows each time I call `data.shuffle()`? ## Actual results ```bash Shuffle dataset {'feature': [5, 1, 3, 2, 4], 'label': ['e', 'a', 'c', 'b', 'd']} {'feature': [5, 1, 3, 2, 4], 'label': ['e', 'a', 'c', 'b', 'd']} {'feature': [5, 1, 3, 2, 4], 'label': ['e', 'a', 'c', 'b', 'd']} Shuffle via pandas {'feature': [4, 2, 3, 1, 5], 'label': ['d', 'b', 'c', 'a', 'e']} {'feature': [2, 5, 3, 4, 1], 'label': ['b', 'e', 'c', 'd', 'a']} {'feature': [5, 2, 3, 1, 4], 'label': ['e', 'b', 'c', 'a', 'd']} ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.0 - Platform: Linux-5.13.0-27-generic-x86_64-with-glibc2.17 - Python version: 3.8.12 - PyArrow version: 6.0.1 Hi! Thanks for reporting! Yes, this is not expected behavior. I've opened a PR with the fix.
[ 0.2256516367, -0.2673810124, 0.0401451588, 0.1096486673, 0.2171934992, 0.0051689851, 0.5835940242, -0.0988347903, -0.2688475251, 0.4067517519, 0.0916137397, 0.4485055506, -0.1216275916, 0.30659163, 0.1507817656, 0.1546613276, 0.3101200461, 0.0387729742, -0.0948881954, -0.2629060149, -0.2420201898, -0.2345194519, -0.5006457567, -0.2106882483, -0.4018549323, 0.1617210805, -0.288813591, 0.2026996017, 0.0705019087, -0.0197259765, 0.2843488753, 0.3294392526, -0.1826946884, 0.4684555829, -0.0001162541, -0.1587902606, 0.2686458528, -0.119218193, -0.1626604646, -0.1475040913, -0.159379214, 0.2459884882, -0.1424245536, -0.0334042124, -0.0766229331, -0.288872391, -0.0247698035, -0.121859014, 0.0016158235, -0.1474998891, 0.1500995755, 0.0871207342, 0.0488244072, 0.1291519254, 0.4296835959, 0.2574070096, -0.0081768548, 0.2552582026, -0.0817481577, 0.0750359446, -0.0653485656, -0.0377786681, -0.0579669625, 0.2558073401, 0.3295451999, 0.0968595371, -0.0336234495, -0.2755070627, 0.1060641259, 0.4645742476, 0.1952928901, -0.290037185, -0.2904610336, -0.451666683, 0.0601984225, -0.2949525416, 0.0565521531, 0.1876679212, -0.2025703639, -0.2842726111, -0.0451226272, 0.3667739034, 0.2454073578, 0.0015645322, -0.0354936793, 0.3009099066, -0.0510072783, 0.1184059829, 0.1679548174, -0.2017055005, 0.3343928456, -0.2941747904, 0.0219164807, 0.1606018692, -0.3496530056, -0.0109534357, 0.2669649422, 0.2966363728, 0.198584646, 0.0852919444, 0.0021538343, 0.138358146, -0.0180995278, -0.0202867966, 0.2764522433, 0.1235437095, 0.0311449412, 0.2717362344, 0.1070868894, 0.265622288, 0.1255069226, 0.2547364235, 0.3363689482, 0.0085415421, 0.1369516402, -0.2322993428, 0.2124379128, 0.0484590828, -0.2943055332, -0.0595170334, -0.246678561, -0.1283288598, -0.0556640476, 0.1537535191, 0.0737379715, 0.0665645227, -0.2489828318, -0.0331137963, -0.0881611109, 0.1195410639, -0.2969889045, -0.1325568259, -0.1701522022, 0.064477548, 0.0462293886, -0.1106836051, 0.2292824537, 0.4473645687, 0.1004276276, -0.0769889876, -0.1968513876, 0.0402095318, 0.1274347901, 0.0879495889, -0.0164085738, 0.122673817, 0.198297441, 0.0803193748, -0.0240993835, 0.2995972037, -0.1353334635, 0.1544156224, 0.1475073397, 0.1874855608, -0.346499145, 0.0641236603, -0.362385273, 0.176725775, -0.0652637258, -0.0037052308, 0.155500412, -0.3015497625, -0.124937959, -0.2656253278, 0.0616980866, 0.1461606473, -0.0251624472, -0.143887639, 0.3342518508, 0.018409403, 0.4784056544, 0.3257245123, -0.2096535712, -0.0154026644, -0.2255907506, -0.1495616436, -0.1083064824, 0.4567143619, -0.4047406614, -0.4431344867, -0.2153987437, 0.4331863821, 0.0081778523, 0.0819746703, 0.0179578904, -0.0385786705, 0.3817166984, 0.2444968373, -0.1899467558, 0.3296741843, -0.3144617677, -0.1855110824, 0.2505240142, 0.2462031245, -0.2222332209, 0.0585850812, 0.0733152404, -0.0889953673, 0.3848058283, -0.1289530545, -0.0884655938, -0.1433282495, 0.0179360881, 0.4039310515, 0.1823560894, -0.165749833, -0.2599184811, 0.1171401069, 0.2018535733, 0.0029513915, -0.0604130551, -0.2741459608, 0.0338515751, -0.2631422877, -0.2504563332, -0.2856300473, 0.044049263, 0.1757373959, 0.0869549662, 0.1491076946, -0.2291630059, -0.0802079663, -0.1484196335, 0.0645997077, -0.5968745947, 0.2440187782, 0.08535254, -0.3012915552, -0.1596515477, 0.1743725091, 0.0097559076, -0.0758562684, 0.0311989505, 0.3636754453, 0.2924374938, -0.3252247572, -0.3238769472, -0.1303282082, 0.1343488246, 0.1681207567, -0.1399611086, 0.1470188797, 0.1779778004, -0.0804240331, -0.121392712, 0.5381625891, -0.5788695216, 0.0322663747, -0.0726497769, -0.1201385185, 0.1160708219, 0.1493432224, -0.1945489198, 0.0822781846, 0.2195886523, -0.0059954375, -0.0465639979, 0.3415364921, -0.4768415093, 0.0323309563, 0.3071293533, -0.2322491705, -0.0269542374, -0.0837392882, 0.0188733935, -0.0999820456, -0.0486835875, 0.2807812989, 0.3230985105, 0.2688830495, -0.0718415156, 0.1516860873, -0.1438192129, -0.2490878254, -0.1145005375, -0.0580037795, 0.1040323451, 0.0853908658, 0.176912114, 0.038910076, -0.316868335, -0.2389861345, 0.0818921402, 0.324721992, -0.1803408116, -0.0514450893, -0.4431861341, -0.0387667529, -0.009316721, -0.3071049452, -0.270866394, -0.1043811515, 0.0101059582, 0.4893620312, -0.1115540788, 0.3053559661, 0.1564190388, 0.2078215331, 0.1381389052, 0.0748214573, -0.1274336576, 0.1437882185, -0.2818394601, 0.0150921131, -0.0390200503, 0.1349902451, 0.2054228187, -0.2569690347, -0.3116915226, -0.1203718036, -0.0179519225, -0.142061606, -0.2211241126, 0.4013070762, 0.0253588557, -0.0233794376, -0.2860898376, -0.227131933, 0.1904276013, -0.0451348834, -0.0648901463, 0.3365608156, 0.1105494276, -0.1068387926, -0.1458199024, 0.0136299208, -0.0034213103, -0.104886286, 0.2351641804, -0.0386776105, -0.0458831266, 0.0987713709, 0.1670244932, -0.1384062171, -0.3173838258, -0.1414353997, -0.3987329602, -0.3888043761, 0.147094205, 0.0624410659, -0.2756631672, -0.127030015, -0.2158236355, -0.3860140741, 0.4554984272, -0.1000800952, 0.2293782085, -0.3016576767, 0.2923064232, 0.1860687733, 0.3463493586, 0.4538746774, -0.1194278225, 0.1996243894, 0.0213342682, -0.3375161588, -0.1280879676, 0.0289197396, 0.2314969897, 0.1576375514, 0.268792659, -0.0216473546, 0.3854146302, -0.0398478471, -0.009809141, 0.0762815922, -0.1578671038, 0.5059738159, -0.3897585869, -0.1130098924, 0.2232132107, 0.4898449779, -0.3241243958, 0.1434066445, -0.1895372272, 0.0629495904, -0.0635768101, 0.1904892325, 0.1462795734, -0.2856886387, 0.0135597205, -0.1967721879, -0.0980790779, 0.0954543874, 0.2575052977, 0.1177896708, 0.0184660982, -0.5446510315, 0.1372553259, 0.1866618544, 0.0235357508, -0.5734229684, -0.3267529011, -0.1539455354, -0.0597187802, 0.150470674, 0.462389797, 0.2157885134, -0.1962299496, 0.2648601234, 0.1647234112, 0.8915828466, -0.0467815548, 0.1146968678, 0.0732796118, 0.1635376066, -0.2649357021, -0.4546970129, -0.2381127924, -0.1978377402, -0.1089578569, 0.2546728849, -0.2300559729, 0.2465203106, 0.1447123587, 0.0990607068, -0.0006704552, -0.2173319012, -0.3613473773, -0.2643306851, -0.0786341354, 0.1352512836, -0.0948058516, -0.0506893471, -0.351886332, 0.1844875515, 0.0308459885, 0.0102356002, 0.0793219432, 0.1560287923, 0.1975232959, 0.1404749751, 0.0225949138, 0.3604982495, -0.3001084626, 0.3221251965, 0.0482962877, 0.2225001901, -0.1422030628, 0.0290335156, -0.2681728899, -0.1376342177, 0.3408220708, -0.1631711125, 0.1309796721, -0.1608645916, 0.1401539743, -0.0112383617, -0.3557258546, 0.3504270017, -0.051688835, -0.0794783831, -0.8680721521, 0.1817013323, -0.0525919087, -0.0650352016, 0.4112047553, 0.0973248482, -0.034374088, 0.4985460341, -0.2779335976, 0.4993925691, 0.1301673502, 0.336332947, 0.4972105026, 0.1299514621, 0.5130110979, 0.6294953823, 0.3185442984, -0.1847019196, -0.4780731797, 0.0992592499, -0.1759792864, -0.0125648826, -0.0071181874, 0.04788699, 0.4015740752, -0.1805988401, 0.0949991867, -0.0300048441, -0.3078624904, -0.1982776225, -0.0856807306, -0.1130111441, 0.0221223496, 0.0211895388, 0.178151533, 0.0912567526, 0.2057075649, -0.3787666559, -0.1445296705, -0.3186221123, 0.0894851387, 0.2338887304, -0.0260473508, 0.152116254, 0.0683057755, -0.1998309642, 0.0378142111, 0.0244511198, 0.1981841475, 0.0907803699, 0.0044247294, 0.382150501, 0.2621701956, 0.1391790658, -0.1029914767, 0.4146232307, 0.2465572357, -0.2777111828, -0.2022509724, 0.1954377443, -0.3522323072, -0.6706197858, -0.1285526752, -0.1405415088, -0.1061163768, -0.0722280964, -0.0439183488, 0.1868506074, -0.2886901498, 0.116736047, -0.0396555364, 0.0117564574, 0.4350627363, -0.2672805488, -0.1368576437, -0.280715853, 0.438895762, 0.2899824679, 0.2885295153, 0.1924794018, -0.0349113606, -0.0856789872, -0.066015996, 0.2732005417, -0.1237894073, -0.0284430552, 0.4353238642, -0.1440408081, 0.1864027977, -0.0626508221, -0.037840426, 0.0742567033, 0.0819196329, 0.1245243698, -0.1854061186, -0.1632068902, 0.1938152313, 0.3613402247, 0.2088628411, 0.0219642539, 0.3208123147, -0.1193650514, -0.3614845872, -0.253534615, 0.1431948692, 0.1790164113, 0.2099084556, -0.1475216597, 0.0704717115, -0.180167377, -0.2363923788, 0.1389875114, -0.0025844325, -0.0809402093, -0.1933418959, -0.2349028289, 0.0833955482, 0.1575681567, 0.0033905278, 0.1298403144, -0.3233121037, -0.2392972112, -0.1133146212, 0.153902173, 0.4284291863, 0.0132030258, 0.0435471572, 0.6163710356, 0.2621622682, 0.1613926589, 0.0818945765, -0.4901520908, -0.3361723721, -0.0420386828, 0.0212193951, -0.2076777369, 0.192473188, -0.4672383666, -0.1280734241, -0.4098404944, 0.1418907493, 0.2709915936, -0.3619429171, -0.0202738922, 0.0171452481, 0.4219255447, 0.5022954345, -0.2668947279, -0.348942548, 0.3519748151, 0.1305281371, -0.1387485713, -0.0205490943, -0.0587484054, 0.5530580282, 0.2261933535, 0.2791653872, -0.2016991526, -0.5511184335, -0.4876234531, -0.0017171579, 0.2291925699, -0.4254348576, 0.358186543, 0.6855015755, -0.1370053589, 0.0556554198, 0.5088124275, 0.0150694074, -0.1972001344, 0.6681826711, 0.3344261944, 0.1863660365, 0.0489086583, -0.1793722212, -0.2857417166, -0.3123832345, 0.1390939504, 0.6649491191, -0.234042868, 0.2035930008, 0.2654134631, -0.004846029, -0.3314013481, 0.2245695144, -0.0010319171, -0.1249067038, -0.1601090431, -0.0650204346, -0.1029809564, -0.3306111097, -0.1476939172, 0.0246366858, -0.1798548549, -0.0052411985, 0.2668942213, -0.067762211, -0.4050561488, -0.5349076986, 0.1120459884, -0.0263449214, 0.3158536553, 0.1129344478, -0.1613164395, -0.00285318, -0.1614190042, 0.3889224231, 0.1044606343, 0.2017664909, 0.4825253487, 0.0934958756, 0.0591345206, -0.0880489796, -0.1354840845, -0.0070832069, 0.1567000002, 0.2659505308, -0.0319448523, 0.0091593955, 0.1406008452, -0.1700948626, 0.092846714, 0.3662532568, 0.4079238176, -0.3787096441, 0.3874715567, -0.3352763355, 0.0850567445, 0.2590190172, 0.1527014077, -0.3241850734, 0.0620911941, -0.3139046729, 0.2575303912, 0.0885760486, 0.018134648, 0.0645637438, 0.1009664461, 0.1818027198, 0.0720988736, -0.3121340871, 0.2163847536, -0.0415454693, -0.5146206021, -0.0225487053, -0.0555000342, -0.0456234962, 0.0512229688, 0.3157479763, -0.0591564663, -0.0125091197, -0.139750123, 0.1174240559, -0.1777781397, 0.5873085856, -0.0372419879, -0.2665085196, -0.3067521155, 0.0008125696, -0.1413879395, -0.335677743, 0.3313353658, -0.0223947093, 0.0367598198, 0.0360907726, 0.2394411266, -0.093428202, -0.1564810872, -0.1899866313, 0.2113381475, 0.1111752242, 0.0260818359, 0.0289771892, -0.6319593787, -0.0208192151, -0.4201254845, 0.1408254504, -0.0962414816, 0.3976534009, 0.089590691, -0.4609769583, -0.1025171801, 0.3738394976, 0.0305595361, 0.1850089431, -0.3951430619, 0.3852940798, -0.0225187466, 0.167557776, -0.2110121995, 0.1591954976, -0.2524327934, 0.1591850072, -0.0122123482, -0.1580080688, 0.5096931458, -0.2417763174, -0.3464825749, -0.4890519083, 0.0905716047, 0.012238862, -0.2273885906, 0.1932144016, 0.2343060523, 0.1785311699, -0.0566622689, -0.1293518543, 0.3822264671, -0.4701569974, -0.0345273055, -0.1649865657, 0.1998228282, 0.0661915466, -0.3064244986, 0.3347405195, -0.1897014976 ]
https://github.com/huggingface/datasets/issues/3632
Adding CC-100: Monolingual Datasets from Web Crawl Data (Datasets links are invalid)
Hi @AnzorGozalishvili, Maybe their site was temporarily down, but it seems to work fine now. Could you please try again and confirm if the problem persists?
## Describe the bug The dataset links are no longer valid for CC-100. It seems that the website which was keeping these files are no longer accessible and therefore this dataset became unusable. Check out the dataset [homepage](http://data.statmt.org/cc-100/) which isn't accessible. Also the URLs for dataset file per language isn't accessible: http://data.statmt.org/cc-100/<language code here>.txt.xz (language codes: am, sr, ka, etc.) ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("cc100", "ka") ``` It throws 503 error. ## Expected results It should successfully download and load dataset but it throws an exception because the dataset files are no longer accessible. ## Environment info Run from google colab. Just installed the library using pip: ```!pip install -U datasets```
26
Adding CC-100: Monolingual Datasets from Web Crawl Data (Datasets links are invalid) ## Describe the bug The dataset links are no longer valid for CC-100. It seems that the website which was keeping these files are no longer accessible and therefore this dataset became unusable. Check out the dataset [homepage](http://data.statmt.org/cc-100/) which isn't accessible. Also the URLs for dataset file per language isn't accessible: http://data.statmt.org/cc-100/<language code here>.txt.xz (language codes: am, sr, ka, etc.) ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("cc100", "ka") ``` It throws 503 error. ## Expected results It should successfully download and load dataset but it throws an exception because the dataset files are no longer accessible. ## Environment info Run from google colab. Just installed the library using pip: ```!pip install -U datasets``` Hi @AnzorGozalishvili, Maybe their site was temporarily down, but it seems to work fine now. Could you please try again and confirm if the problem persists?
[ -0.1619237661, 0.0289881676, 0.0137884766, 0.213355571, 0.1414141208, 0.0469214134, 0.2221632004, 0.1372686774, 0.1100815609, 0.0725905597, -0.2368589789, 0.2323393971, 0.105717063, 0.1059431136, 0.3223291636, 0.0096261734, 0.0029664445, -0.1015315205, -0.2132701129, 0.0463137329, -0.2494629323, -0.007686256, -0.102747798, -0.1476005763, -0.0973701179, 0.0315166861, -0.1315178722, 0.1922232807, -0.2006031275, -0.4400336742, 0.2031597793, 0.1081444919, 0.4141765833, 0.1844167858, -0.0001199075, 0.0167122241, 0.5445299149, 0.086564146, -0.6314388514, -0.3288877904, -0.7089250684, -0.2919817269, -0.0180062316, -0.0432244986, 0.0502806567, 0.3707898557, -0.0233940817, -0.45857054, 0.2456409186, 0.6069424152, 0.1442874223, 0.0868326649, 0.1812199503, -0.2857233286, 0.2586219013, -0.1754069477, -0.030245522, 0.7133319974, 0.4629912674, 0.129820317, 0.404619664, 0.1924889833, 0.0044987472, -0.3867481053, -0.1215733364, -0.1989664733, -0.0823093429, -0.3317591846, 0.3130810261, 0.2928832471, 0.6623698473, -0.0054124189, -0.3957979381, -0.1057452932, -0.071350202, -0.4657967389, 0.2735916972, 0.2698730528, 0.2985091209, 0.3680866957, -0.1298359334, -0.2688211501, -0.101703316, 0.3308907747, 0.0435455739, 0.3316264153, -0.139624998, 0.0793027952, 0.0209160633, 0.0037810472, 0.4038711786, 0.0365408249, -0.0155519014, 0.0553735979, -0.1630518287, 0.1403836906, 0.1068416312, 0.3346148133, 0.1310498416, 0.1025424972, 0.2711148262, 0.0896987841, -0.309810549, 0.2049447, 0.057311397, 0.1003652886, -0.1079769656, 0.0543072633, 0.35734725, 0.1749581248, 0.0460527614, -0.1080486625, -0.0677404925, -0.2810090482, -0.213059023, 0.2805379927, 0.1378479749, -0.1239440739, -0.4474993944, 0.173065111, -0.3333091736, -0.1819061488, 0.1766074747, 0.3096299469, -0.001778074, 0.0602262132, -0.0861195624, 0.2549185455, -0.1371168345, -0.2512952387, 0.0456425287, 0.1224958077, -0.247430861, -0.1367922276, 0.121774286, -0.2492923141, 0.0122610293, 0.0391716398, -0.0790259168, -0.1646342278, 0.0152952233, -0.2491392642, -0.1611771286, 0.1382025182, 0.1329900175, 0.2017436475, -0.0553402901, -0.3728396297, 0.0101337871, 0.0768837929, -0.5691791177, -0.2013860494, -0.230963394, 0.13173455, -0.2273549438, -0.1432871222, -0.2726476789, 0.1656234413, 0.014424419, -0.1393219978, -0.0420760848, -0.082600005, -0.2818351686, -0.1452201456, 0.0560340174, 0.7340679765, -0.4017786682, -0.0266130324, -0.2426044643, 0.1288339049, 0.084488824, 0.0906486958, -0.2271493077, 0.07349509, -0.322953105, -0.1689004749, 0.1093281955, -0.2657555342, -0.5116686225, 0.1201883554, -0.0252274051, -0.0079472056, -0.2216495425, -0.2100668997, -0.0789152235, -0.0993598327, 0.0041843639, 0.0437924415, 0.1022379473, -0.0928578973, -0.2974234521, -0.1978760362, 0.4148331285, -0.2043594867, 0.3425294161, 0.0193329845, 0.5781059265, -0.3860348165, 0.2206240892, -0.2636219263, 0.1882269681, 0.3099060953, 0.4677244723, 0.1149268076, 0.1246391758, -0.1060386598, -0.2285372317, 0.2962983549, -0.0466787852, 0.2210804671, -0.3071645498, 0.0399374403, -0.5082675815, 0.0340296701, -0.2148793042, -0.0576151125, 0.0353022851, 0.1847110391, -0.1307344288, 0.4209227562, 0.0032797719, 0.2807160914, -0.0021005485, 0.0442348868, -0.01191686, 0.4823142886, -0.2023631185, 0.1070880741, 0.010505761, 0.288872093, 0.4400113225, -0.1589302719, -0.2476130426, 0.2888623178, -0.0916883796, 0.2748668194, 0.2509644032, 0.0410625376, 0.632863462, -0.5733925104, 0.0600227267, 0.0639126971, 0.1832096428, 0.2189050764, 0.0286671128, 0.0350259617, -0.1124922112, 0.0936221406, 0.0781167299, 0.152929619, 0.4217941761, 0.0017356728, -0.0558145903, -0.1248898953, 0.2936246991, 0.203553766, 0.4314723015, -0.0712219328, -0.0916400254, 0.2966240942, 0.0931346193, -0.0940555856, 0.1986501664, 0.2759707868, -0.1420145184, -0.0472862683, 0.2793944478, 0.3571630418, 0.0617685616, -0.1107273325, 0.1466504931, -0.0738249049, -0.1236751229, -0.1795744151, 0.135661006, 0.0553611815, 0.1800721139, 0.0572195537, 0.259732008, 0.2296113819, -0.2693730295, -0.1770936251, 0.043764662, 0.0977079123, -0.3850705922, 0.3198747039, -0.4206575751, -0.3714059889, -0.1748397499, -0.1127713099, -0.1566517055, -0.2849929929, -0.2414201945, -0.0297516361, -0.1499874741, -0.0101550194, -0.1110576838, 0.065089725, -0.060598854, 0.111382328, 0.0381826721, -0.0368130878, -0.0533198602, -0.0101992702, 0.2385208756, -0.1892902702, 0.1465584189, -0.2174129784, 0.0277799293, -0.3403331935, -0.4480598867, 0.231204018, 0.0147284996, 0.3346890807, -0.1354523897, 0.0725214928, -0.3668981194, -0.0217189584, 0.2322054505, 0.171077162, 0.2484710962, 0.1139376983, 0.0657089874, -0.0813463852, -0.0653163716, -0.1103567854, -0.4957526624, -0.1793407351, -0.1246419773, 0.1536818594, 0.1728598028, 0.341760546, 0.1925977468, 0.03610342, 0.1838956475, 0.1747839004, -0.2592660189, -0.1887217611, 0.3169511855, -0.2994825542, -0.4231185913, -0.0013274245, -0.1527213007, 0.3969306052, 0.1120112911, -0.1135264486, 0.0186216664, -0.2702241242, -0.092171818, 0.056666065, 0.0544049703, 0.2337042689, -0.0009886202, 0.0992880464, -0.1817006171, -0.0167025272, -0.2959614396, 0.3417547345, 0.3809021115, 0.1451753974, 0.0203719456, 0.0906711966, 0.4363628626, 0.2427275926, 0.2120977044, 0.6297110319, -0.060402941, 0.5440220237, 0.0845432058, -0.372396946, 0.0192030724, -0.2390252501, -0.2382687777, 0.1612250358, 0.2383000255, -0.1874652803, -0.3889157474, -0.2403133512, -0.6345182657, -0.3832508028, -0.1418582499, -0.040656358, 0.2965220213, 0.3474948406, 0.126045987, -0.1725357473, -0.2942212224, 0.0448135547, 0.3703002334, 0.072724618, 0.0299920961, -0.3207757473, -0.5367180705, -0.5008346438, 0.3610312045, 0.213448897, 0.4207839966, 0.0885483474, 0.0882914513, -0.0551514141, -0.0810639113, -0.096964024, -0.5464570522, 0.128785342, 0.1034542248, 0.2971583307, 0.070373401, 0.013617456, 0.0938065127, 0.2510399818, 0.1470185369, -0.313729763, -0.2281008661, 0.1633930951, -0.010229568, 0.2975659668, 0.0155587802, 0.2191028595, -0.1925443858, -0.4246091247, -0.159584865, -0.2277493924, -0.0564136431, 0.141348049, -0.3521236181, -0.1038659215, 0.096544005, -0.0533536337, 0.2429224551, 0.0853440613, 0.2402769327, 0.4133728445, 0.0631078705, -0.0182547942, 0.0567558482, 0.3315648437, 0.7867790461, -0.2752710581, -0.3182063103, -0.0770160109, -0.2766053081, 0.1695888937, 0.3066057861, -0.0020029433, 0.0243252628, 0.3553139865, -0.0488717407, -0.2607516646, 0.1353857368, 0.1096860319, 0.1334143132, -0.6755120754, -0.3911734521, 0.3834150136, -0.1278553158, -0.1664437056, 0.2908623517, 0.0816723332, -0.388803035, 0.0771310404, 0.0549607277, 1.0190716982, -0.0091052633, -0.0911121592, -0.0837472677, 0.1408104151, 0.4973617792, 0.162675932, 0.0607125051, -0.1138582528, -0.1246733218, -0.0700165406, -0.0572831482, 0.0985916406, -0.1887416244, -0.157730177, 0.155881837, 0.0025078091, 0.3782182634, 0.2287110537, 0.2718051672, -0.1345783919, 0.0864439458, 0.1853044182, 0.1493026018, -0.1829522997, 0.2483356893, -0.2859162986, -0.0247230064, -0.3541668355, -0.2064412683, -0.3466173708, 0.0668059886, -0.4561067224, 0.1797712743, -0.2637602389, -0.6701658964, 0.4225723445, 0.1219039336, 0.2891980708, 0.3598835468, -0.3909415007, 0.296168685, 0.0486970171, -0.2132350653, 0.0123181259, -0.098167941, 0.2245779634, 0.1001678333, -0.4388581514, 0.0877006799, -0.0001648723, -0.1645021737, 0.1838780791, 0.2134112418, -0.1289577037, -0.1086198017, 0.0644699261, -0.0231474396, -0.0557095855, -0.3406117857, 0.0832167119, 0.13156946, 0.1856302321, 0.0025005182, 0.1775492132, -0.0893589705, -0.1454567313, 0.3269176185, -0.2820109427, -0.0483986139, 0.1398290247, 0.3601181805, -0.275853008, -0.0777532235, -0.0403116047, -0.5205413103, -0.3617342412, 0.0378939547, -0.1482519805, 0.1671883464, -0.2677958608, 0.2592409253, -0.0123565299, 0.0979631171, 0.1150887832, -0.5724586248, -0.0797696114, 0.2059549093, -0.0208581537, -0.0438125692, 0.0543022081, 0.0150172347, 0.179627955, -0.1678192466, -0.2425422817, 0.2309435606, -0.20290488, 0.1294974685, 0.3445531726, -0.0943880975, 0.2422850132, -0.4278111458, -0.0302472971, -0.029020777, 0.0007625897, -0.0765090883, -0.2549318969, 0.1635648161, 0.2113161683, -0.6050876975, -0.1473000646, -0.4838404655, 0.2182074487, -0.1268249899, -0.1851158738, 0.1614894718, 0.0645353124, 0.07835152, -0.3534556925, 0.073234193, -0.1059683412, 0.3051147163, -0.1185035259, 0.5185388923, 0.0822969005, 0.1687800884, 0.3518840671, 0.0872710198, -0.0903981104, 0.0306449831, -0.2002461851, -0.0198880918, 0.5086788535, -0.368100971, 0.3510394394, 0.2936922908, 0.2516549826, 0.2172712833, -0.1988488138, 0.2062129676, 0.3047783077, 0.1014164239, -0.3004229665, 0.1150809824, 0.0159801748, 0.0651220754, 0.1383408159, 0.1658912748, 0.5606253147, -0.2190640718, -0.0685389414, -0.0163384471, 0.4417789578, 0.1392035931, 0.3236117363, 0.3110523224, 0.2900130153, 0.1830001622, -0.0973144323, 0.0500950776, -0.0748305023, 0.2706686258, -0.133740291, -0.0987859815, 0.1866388172, 0.1848723888, -0.0370102525, -0.4131138325, 0.347884953, 0.1645574719, -0.2458540201, 0.0719166026, 0.1489596665, 0.7868954539, -0.1887423545, 0.1752036512, -0.1481918693, 0.1334286183, -0.0375844575, -0.056424208, -0.2982526124, -0.2509371638, -0.2422152311, -0.0733673051, -0.0586859621, -0.1063345224, -0.1433651596, 0.1082015112, -0.1017593294, -0.3794521689, 0.3364706933, 0.3621798456, 0.2028146535, -0.1999592334, 0.1857271492, 0.3464282155, -0.1719554812, 0.0074377707, 0.2057501078, 0.3879887164, 0.087437287, -0.1566801965, 0.1482192576, 0.1143825129, -0.1440000832, -0.0052913213, 0.1741818786, 0.227596119, 0.0821936876, 0.413710773, 0.0730043054, -0.1410700381, 0.1914092749, 0.0720186904, 0.0849898085, -0.1819256395, -0.0903948322, -0.1200601533, -0.0456256717, -0.2064752281, -0.3404140174, -0.1980414242, 0.3214280605, 0.4371164441, -0.2427286208, 0.2040553391, -0.3018766642, 0.0047573457, 0.1174384356, 0.2863406241, 0.4484575987, 0.2393261045, -0.2064921111, -0.288520664, -0.5764862299, -0.0258210655, -0.4754672647, 0.0723562986, -0.0762487724, -0.114967823, -0.2170016915, 0.048626028, 0.3660111129, 0.4408789575, 0.2496287525, -0.017781388, -0.1813774705, -0.2129303664, -0.0429779179, 0.2035400867, -0.195351705, -0.2649560869, 0.1460011154, -0.2970181406, -0.0560207106, -0.2477761954, -0.2408623248, -0.3503349721, -0.1050971523, 0.6549286246, 0.2564200163, 0.4288600981, -0.1581574529, -0.068873629, -0.2520101368, -0.2571132183, 0.1967098862, 0.3724673688, 0.0582017452, 0.2805326879, -0.0172694288, 0.0879405141, -0.1511735618, 0.2399860919, 0.1088941395, 0.1461710632, -0.4424231052, 0.0553143062, -0.3098161817, 0.0040840218, 0.1393719167, 0.0953576118, -0.0878612176, 0.1538071483, -0.1115093157, -0.5785825253, 0.1797335595, -0.3249541223, -0.1917698681, -0.3131373227, 0.2437624484, 0.3197624683, 0.0869327933, -0.1989630312, -0.0005359129, 0.2626122832, 0.147112146, -0.221254319, 0.0574617945, -0.0964579508, -0.07620316, 0.0856462494, 0.404725492, 0.259888202, -0.0715379491, 0.0027879009, -0.1810723245 ]
https://github.com/huggingface/datasets/issues/3632
Adding CC-100: Monolingual Datasets from Web Crawl Data (Datasets links are invalid)
Hi @albertvillanova I checked and it works. It seems that it was really temporarily down. Thanks!
## Describe the bug The dataset links are no longer valid for CC-100. It seems that the website which was keeping these files are no longer accessible and therefore this dataset became unusable. Check out the dataset [homepage](http://data.statmt.org/cc-100/) which isn't accessible. Also the URLs for dataset file per language isn't accessible: http://data.statmt.org/cc-100/<language code here>.txt.xz (language codes: am, sr, ka, etc.) ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("cc100", "ka") ``` It throws 503 error. ## Expected results It should successfully download and load dataset but it throws an exception because the dataset files are no longer accessible. ## Environment info Run from google colab. Just installed the library using pip: ```!pip install -U datasets```
16
Adding CC-100: Monolingual Datasets from Web Crawl Data (Datasets links are invalid) ## Describe the bug The dataset links are no longer valid for CC-100. It seems that the website which was keeping these files are no longer accessible and therefore this dataset became unusable. Check out the dataset [homepage](http://data.statmt.org/cc-100/) which isn't accessible. Also the URLs for dataset file per language isn't accessible: http://data.statmt.org/cc-100/<language code here>.txt.xz (language codes: am, sr, ka, etc.) ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("cc100", "ka") ``` It throws 503 error. ## Expected results It should successfully download and load dataset but it throws an exception because the dataset files are no longer accessible. ## Environment info Run from google colab. Just installed the library using pip: ```!pip install -U datasets``` Hi @albertvillanova I checked and it works. It seems that it was really temporarily down. Thanks!
[ -0.1686966121, 0.0409710146, 0.0132524855, 0.2089214176, 0.1232639402, 0.0467350595, 0.2052616477, 0.1223095506, 0.090792425, 0.0844413564, -0.2521444559, 0.25331375, 0.0570643358, 0.1296910495, 0.3611768484, 0.0015481981, 0.0005133852, -0.1116832048, -0.2077596188, 0.049201142, -0.2357859612, 0.0165774655, -0.1149305701, -0.1767584532, -0.116755873, 0.0593593232, -0.1564052701, 0.1667040139, -0.2282363772, -0.4358335733, 0.215702191, 0.1322776228, 0.4082991779, 0.1873311102, -0.0001197625, 0.0349856503, 0.544631958, 0.0662514493, -0.6426514983, -0.3356358111, -0.6715111732, -0.3007977009, 0.0123791117, -0.0274391677, 0.0167444758, 0.3618828654, -0.0277007576, -0.4767540991, 0.2271569818, 0.6008828282, 0.1476812661, 0.086886622, 0.1727495044, -0.2739333212, 0.2489446253, -0.1708148271, -0.0690147057, 0.7275505066, 0.4946793914, 0.1295210868, 0.4125566781, 0.1845821738, 0.0076125413, -0.3968625665, -0.1176399216, -0.2100417316, -0.1340993792, -0.3567729294, 0.3307419121, 0.2912731469, 0.6424117684, 0.0039949049, -0.3784965575, -0.0929806158, -0.0498937406, -0.4816654623, 0.2507855594, 0.2574687004, 0.3046654761, 0.3628769219, -0.139303416, -0.2735241055, -0.09085951, 0.3324931562, 0.0453150086, 0.3748703003, -0.1621338427, 0.0785313994, 0.0413401388, 0.0042315638, 0.4125799239, 0.0716832355, -0.035861697, 0.078962341, -0.1519685537, 0.1507550031, 0.1264357269, 0.3536154628, 0.1471935064, 0.0660249591, 0.2507810593, 0.1017672345, -0.3112880588, 0.1698498279, 0.0381548367, 0.106722191, -0.1150702238, 0.0738558918, 0.3688946068, 0.159210518, 0.0677632689, -0.1182437539, -0.0613991618, -0.2674591243, -0.2283686101, 0.2556323409, 0.1531329006, -0.1462882906, -0.4231630266, 0.1360474825, -0.3301637471, -0.211074844, 0.1639319062, 0.3111865819, 0.033625979, 0.0575816333, -0.0706893429, 0.2372721136, -0.1245021597, -0.2089272738, 0.0322142839, 0.1241166443, -0.2433841974, -0.1230117902, 0.1392676383, -0.2505142391, 0.0031765541, 0.043843247, -0.0865865946, -0.1570577025, 0.0317892246, -0.2140891701, -0.1386998892, 0.1562522054, 0.1144067943, 0.1867273897, -0.0522818528, -0.3724614382, -0.0087176515, 0.0832165182, -0.5701639652, -0.2169690281, -0.2791008055, 0.1283302158, -0.2695637047, -0.1489637792, -0.2853403091, 0.2058374435, 0.0143829305, -0.145001635, -0.0216261446, -0.0961253345, -0.2967613935, -0.1305196136, 0.0792154893, 0.7386159897, -0.4342747033, -0.048758585, -0.2769091725, 0.1364397705, 0.0921776071, 0.0569845177, -0.2276146263, 0.0604718812, -0.3234634697, -0.197067529, 0.1078337729, -0.2446376383, -0.4979791641, 0.1224724501, -0.0324271284, 0.0064144614, -0.2172316909, -0.2011310756, -0.092413649, -0.0511519313, 0.0176738929, 0.0383274555, 0.1035177708, -0.0806720778, -0.2991196513, -0.1938672066, 0.4211417437, -0.155536294, 0.379149437, -0.0043474389, 0.5662853122, -0.3644711375, 0.2176106274, -0.2659945786, 0.1939075887, 0.2963502407, 0.439997822, 0.1049092561, 0.1654067039, -0.1256373972, -0.2411820889, 0.320189327, -0.0381001346, 0.2452432215, -0.3278304338, 0.0344121791, -0.4981053472, 0.0252895076, -0.2098157555, -0.0962176025, 0.0309319608, 0.1802656502, -0.1229467168, 0.4207364321, -0.027542999, 0.2843274176, 0.0063906051, 0.0278623439, -0.0266463831, 0.4727978408, -0.1960923374, 0.0982609168, -0.0017490139, 0.2903725803, 0.3947388232, -0.1779211462, -0.2541543841, 0.2662623227, -0.1262873411, 0.2814248502, 0.2548260987, 0.0063224141, 0.626204133, -0.5681081414, 0.0841667652, 0.0707008392, 0.1762448847, 0.1867066771, 0.0240746327, 0.0313535035, -0.1332456321, 0.0684030652, 0.0738878921, 0.1566825956, 0.4207107127, 0.013058614, -0.0954517052, -0.0991424248, 0.3143625259, 0.2016898096, 0.4600764513, -0.0670764521, -0.1045033038, 0.3120796382, 0.108769156, -0.0742047951, 0.1983178258, 0.2902632952, -0.1534670889, -0.0399733707, 0.2858681083, 0.3327556849, 0.1055978611, -0.1059692949, 0.1433264911, -0.0740237311, -0.130411461, -0.1692162901, 0.1089302376, 0.0656104833, 0.157139048, 0.0382812656, 0.2888274491, 0.2285305113, -0.3155474663, -0.186759606, 0.050345771, 0.1155014262, -0.3573442698, 0.3317325711, -0.4286231399, -0.3616816401, -0.156865418, -0.1484417468, -0.1551259458, -0.281763494, -0.2330395132, -0.049534332, -0.1388602108, -0.0122662485, -0.1106761992, 0.0758869499, -0.0893938914, 0.0808062702, 0.0391594209, -0.0517432243, -0.050260216, 0.0100993868, 0.264038384, -0.1724707931, 0.1706153899, -0.2192886025, 0.0068137562, -0.3051437438, -0.4764652252, 0.2179600894, -0.0245565083, 0.3165226877, -0.1215497181, 0.0458611026, -0.4109137058, -0.0262233205, 0.1984727979, 0.1690066755, 0.2612794936, 0.0858158022, 0.0416365787, -0.0913751572, -0.1101654992, -0.1233540848, -0.5252873302, -0.183201775, -0.0632141307, 0.1652840376, 0.1549461633, 0.3366316855, 0.1474260837, 0.0757809207, 0.2183715403, 0.1494124234, -0.2455482334, -0.1805853099, 0.3179426193, -0.2896232009, -0.4237007499, 0.0131102549, -0.1682003438, 0.3746482432, 0.0923854336, -0.1329204291, 0.0456721671, -0.2685444653, -0.0893441215, 0.080246374, 0.0379062258, 0.2551350892, 0.005300967, 0.1122637466, -0.1591556668, -0.0158410091, -0.3392070532, 0.3350474238, 0.3782215118, 0.1334948391, 0.0154626397, 0.0999999642, 0.4393834472, 0.1920243055, 0.2207001001, 0.6338077188, -0.0688000768, 0.5687462687, 0.0546484515, -0.3938675225, 0.0556845888, -0.2478005141, -0.2491336465, 0.1581374705, 0.2450096607, -0.2046411037, -0.4130856395, -0.2371701449, -0.5723711848, -0.3683334887, -0.1234380677, -0.0193825327, 0.2685749829, 0.3345276415, 0.1236724406, -0.1735194325, -0.3245304227, 0.0316328444, 0.3984342515, 0.0639953837, 0.0263469424, -0.333599031, -0.5505034328, -0.5388811827, 0.3591094911, 0.2076465786, 0.3793284297, 0.0754014701, 0.082485497, -0.0366848931, -0.0831159949, -0.1123427376, -0.523609519, 0.0928589255, 0.1718676984, 0.275888145, 0.0633985922, 0.0027077799, 0.0834259465, 0.2479432225, 0.1640152037, -0.2930092216, -0.2033283412, 0.1849990934, 0.0391148925, 0.309689343, 0.028954884, 0.2208149135, -0.1985266209, -0.4420462549, -0.1586304754, -0.219683215, -0.0420090966, 0.129018411, -0.3819316328, -0.1165726483, 0.1126878411, -0.032935556, 0.2551766336, 0.1090080142, 0.2253659517, 0.4349507391, 0.0751065686, -0.0194370877, 0.047356572, 0.3019087613, 0.795394063, -0.2661148012, -0.3112020791, -0.03066203, -0.2669036984, 0.183258459, 0.3060691953, -0.003213824, 0.0327135436, 0.3510875106, -0.0364872105, -0.2613561451, 0.1464056671, 0.0812264383, 0.1364301443, -0.6864013672, -0.3892385662, 0.4002835155, -0.0875537992, -0.1682630777, 0.2974960506, 0.0890357122, -0.399795562, 0.0928651169, 0.031855531, 1.0174692869, -0.0274432525, -0.0985251963, -0.0928961933, 0.1493779719, 0.5237335563, 0.1633580923, 0.058938846, -0.0927000791, -0.1325465292, -0.0597388372, -0.0466893353, 0.0937993079, -0.2066279501, -0.2073420584, 0.1749970913, 0.0288400948, 0.3774546683, 0.2298511118, 0.2816451192, -0.1537935585, 0.0683391094, 0.1922290623, 0.155223012, -0.1775839776, 0.278749615, -0.280400753, -0.0102371676, -0.35867396, -0.217473805, -0.379401952, 0.0703457147, -0.4060207903, 0.1633284688, -0.2462673038, -0.6602706909, 0.4338370264, 0.1205657795, 0.2953121066, 0.3710668981, -0.3932204843, 0.2830161154, 0.0239310451, -0.2206688374, 0.030194087, -0.0845055506, 0.2056861073, 0.1173517853, -0.4267243445, 0.0895794034, -0.0037134024, -0.1713475287, 0.1599374712, 0.2419638634, -0.1047080904, -0.0820981935, 0.0599967912, -0.0073942197, -0.0491313599, -0.330480665, 0.0885587335, 0.1493447125, 0.1783909351, 0.0097509744, 0.1619664133, -0.0958187357, -0.1544229239, 0.3151189685, -0.25309816, -0.0632922947, 0.13919954, 0.3911685646, -0.26954633, -0.070681341, -0.0473225266, -0.4991235733, -0.339191407, 0.0454150178, -0.1027127504, 0.1563071758, -0.2484594434, 0.2654891312, -0.0263729338, 0.1186119094, 0.086828202, -0.5552803874, -0.0980733931, 0.1957936585, -0.025658315, -0.0149923628, 0.0671435148, 0.0301188342, 0.2047827691, -0.1622065306, -0.2424966395, 0.2445443869, -0.2135376781, 0.1199399605, 0.3434721231, -0.0886015221, 0.2419326901, -0.4266901016, -0.0304627102, -0.0000346187, 0.0259265974, -0.0820125565, -0.2415634394, 0.1586337388, 0.2061636001, -0.5914024115, -0.1370424479, -0.4863663614, 0.2145091891, -0.1171436235, -0.1589024961, 0.1751611084, 0.0647707507, 0.0661599711, -0.339348346, 0.064356558, -0.0829498991, 0.3267698884, -0.0944334716, 0.5299888849, 0.0758971721, 0.1879925132, 0.3769181669, 0.1134106517, -0.055919148, 0.0246753804, -0.2319803536, -0.0112922648, 0.5022451282, -0.3425880373, 0.3507255614, 0.2465022951, 0.261592567, 0.2443622947, -0.1779493392, 0.2260088027, 0.2823573351, 0.0909952745, -0.3000843227, 0.0937544629, 0.0115779908, 0.0824020728, 0.1368150562, 0.1520657986, 0.546276629, -0.2220063508, -0.0396674015, 0.001415882, 0.42965734, 0.1362590939, 0.3017369807, 0.2920716703, 0.2693468332, 0.175263226, -0.0912332535, 0.0207522772, -0.087590389, 0.2547178566, -0.1379159391, -0.0821616128, 0.1782061607, 0.1945973188, -0.0305369552, -0.3923585117, 0.3515490294, 0.1725746691, -0.2610603273, 0.077937901, 0.1828349531, 0.7976779938, -0.1984873265, 0.183079049, -0.137344107, 0.1440337002, -0.0301319845, -0.0505790785, -0.2471534908, -0.252727598, -0.2621657848, -0.0592064336, -0.0610498749, -0.1059942171, -0.1253724843, 0.1061543971, -0.1016702428, -0.3681756258, 0.3037948608, 0.3521585464, 0.172854498, -0.2035190612, 0.1825893372, 0.3418325186, -0.1482839882, 0.0040613953, 0.2024294138, 0.3861694038, 0.0747606903, -0.1403690279, 0.1820910722, 0.1083263233, -0.1495498419, -0.0195955765, 0.1980685443, 0.2372305989, 0.0759490207, 0.3859500587, 0.075919345, -0.1425086707, 0.2000023425, 0.0423830934, 0.0977969393, -0.1968781203, -0.0979517624, -0.112503536, -0.0397835486, -0.2064268291, -0.3278519809, -0.2028045505, 0.3139310181, 0.4088252485, -0.2299467027, 0.1868811101, -0.3239833415, 0.000516325, 0.1261677891, 0.2727919519, 0.4664872289, 0.2439810336, -0.1989738643, -0.3095884025, -0.5874521732, -0.0503743105, -0.4558967352, 0.0922527462, -0.1124013066, -0.138702035, -0.2017611563, 0.0641684756, 0.3375464976, 0.424777627, 0.2721302211, -0.0404401496, -0.1890501231, -0.2046800256, -0.0492702946, 0.2118883282, -0.1923734397, -0.248929441, 0.1503741592, -0.3066419363, -0.0696752742, -0.2676889002, -0.2645619512, -0.345277071, -0.0703681037, 0.6433687806, 0.257183671, 0.4398259223, -0.1559209526, -0.0496361181, -0.2844349444, -0.2896568775, 0.2070206404, 0.3664244115, 0.0660889223, 0.2829656005, -0.0291371103, 0.0720810965, -0.1439006031, 0.249372527, 0.0873787254, 0.1431247443, -0.4374057353, 0.0510795936, -0.3216996789, 0.0348291993, 0.1270641237, 0.1259450614, -0.0789984465, 0.1169353798, -0.076329872, -0.5725871921, 0.1885204166, -0.3093962073, -0.2068093419, -0.3365700841, 0.2046373039, 0.3011253476, 0.0500557087, -0.2008962184, 0.0037919707, 0.249636218, 0.1418015808, -0.2018741071, 0.0781472996, -0.0684862286, -0.0567876995, 0.0553076677, 0.4014609158, 0.2442216873, -0.0502641685, -0.0057892408, -0.2053783387 ]
https://github.com/huggingface/datasets/issues/3625
Add a metadata field for when source data was produced
A question to the datasets maintainers: is there a policy about how the set of allowed metadata fields is maintained and expanded? Metadata are very important, but defining the standard is always a struggle between allowing exhaustivity without being too complex. Archivists have Dublin Core, open data has https://frictionlessdata.io/, geo has ISO 19139 and INSPIRE, etc. and it's always a mess! I'm not sure we want to dig too much into it, but I'm curious to know if there has been some work on the metadata standard.
**Is your feature request related to a problem? Please describe.** The current problem is that information about when source data was produced is not easily visible. Though there are a variety of metadata fields available in the dataset viewer, time period information is not included. This feature request suggests making metadata relating to the time that the underlying *source* data was produced more prominent and outlines why this specific information is of particular importance, both in domain-specific historic research and more broadly. **Describe the solution you'd like** There are a variety of metadata fields exposed in the dataset viewer (license, task categories, etc.) These fields make this metadata more prominent both for human users and as potentially machine-actionable information (for example, through the API). I would propose to add a metadata field that says when some underlying data was produced. For example, a dataset would be labelled as being produced between `1800-1900`. **Describe alternatives you've considered** This information is sometimes available in the Datacard or a paper describing the dataset. However, it's often not that easy to identify or extract this information, particularly if you want to use this field as a filter to identify relevant datasets. **Additional context** I believe this feature is relevant for a number of reasons: - Increasingly, there is an interest in using historical data for training language models (for example, https://huggingface.co/dbmdz/bert-base-historic-dutch-cased), and datasets to support this task (for example, https://huggingface.co/datasets/bnl_newspapers). For these datasets, indicating the time periods covered is particularly relevant. - More broadly, time is likely a common source of domain drift. Datasets of movie reviews from the 90s may not work well for recent movie reviews. As the documentation and long-term management of ML data become more of a priority, quickly understanding the time when the underlying text (or other data types) is arguably more important. - time-series data: datasets are adding more support for time series data. Again, the periods covered might be particularly relevant here. **open questions** - I think some of my points above apply not only to the underlying data but also to annotations. As a result, there could also be an argument for encoding this information somewhere. However, I would argue (but could be persuaded otherwise) that this is probably less important for filtering. This type of context is already addressed in the datasheets template and often requires more narrative to discuss. - what level of granularity would make sense for this? e.g. assigning a decade, century or year? - how to encode this information? What formatting makes sense - what specific time to encode; a data range? (mean, modal, min, max value?) This is a slightly amorphous feature request - I would be happy to discuss further/try and propose a more concrete solution if this seems like something that could be worth considering. I realise this might also touch on other parts of the 🤗 hubs ecosystem.
87
Add a metadata field for when source data was produced **Is your feature request related to a problem? Please describe.** The current problem is that information about when source data was produced is not easily visible. Though there are a variety of metadata fields available in the dataset viewer, time period information is not included. This feature request suggests making metadata relating to the time that the underlying *source* data was produced more prominent and outlines why this specific information is of particular importance, both in domain-specific historic research and more broadly. **Describe the solution you'd like** There are a variety of metadata fields exposed in the dataset viewer (license, task categories, etc.) These fields make this metadata more prominent both for human users and as potentially machine-actionable information (for example, through the API). I would propose to add a metadata field that says when some underlying data was produced. For example, a dataset would be labelled as being produced between `1800-1900`. **Describe alternatives you've considered** This information is sometimes available in the Datacard or a paper describing the dataset. However, it's often not that easy to identify or extract this information, particularly if you want to use this field as a filter to identify relevant datasets. **Additional context** I believe this feature is relevant for a number of reasons: - Increasingly, there is an interest in using historical data for training language models (for example, https://huggingface.co/dbmdz/bert-base-historic-dutch-cased), and datasets to support this task (for example, https://huggingface.co/datasets/bnl_newspapers). For these datasets, indicating the time periods covered is particularly relevant. - More broadly, time is likely a common source of domain drift. Datasets of movie reviews from the 90s may not work well for recent movie reviews. As the documentation and long-term management of ML data become more of a priority, quickly understanding the time when the underlying text (or other data types) is arguably more important. - time-series data: datasets are adding more support for time series data. Again, the periods covered might be particularly relevant here. **open questions** - I think some of my points above apply not only to the underlying data but also to annotations. As a result, there could also be an argument for encoding this information somewhere. However, I would argue (but could be persuaded otherwise) that this is probably less important for filtering. This type of context is already addressed in the datasheets template and often requires more narrative to discuss. - what level of granularity would make sense for this? e.g. assigning a decade, century or year? - how to encode this information? What formatting makes sense - what specific time to encode; a data range? (mean, modal, min, max value?) This is a slightly amorphous feature request - I would be happy to discuss further/try and propose a more concrete solution if this seems like something that could be worth considering. I realise this might also touch on other parts of the 🤗 hubs ecosystem. A question to the datasets maintainers: is there a policy about how the set of allowed metadata fields is maintained and expanded? Metadata are very important, but defining the standard is always a struggle between allowing exhaustivity without being too complex. Archivists have Dublin Core, open data has https://frictionlessdata.io/, geo has ISO 19139 and INSPIRE, etc. and it's always a mess! I'm not sure we want to dig too much into it, but I'm curious to know if there has been some work on the metadata standard.
[ -0.3327313662, 0.2428779155, -0.0236785784, -0.1035892591, -0.2707235217, -0.161868602, 0.3315870762, 0.2197172642, -0.5503545403, -0.0032399925, 0.4462813437, 0.3695133626, -0.199112162, 0.0012922501, -0.3244539201, -0.0545660928, -0.0300791133, 0.1974953562, 0.0388663746, 0.2795036137, -0.1341546476, -0.3649156988, 0.015588115, -0.1106296852, -0.6584820747, -0.0131683145, -0.0097078159, -0.245763123, -0.2800128758, -0.3473436832, -0.1150521338, 0.178995505, 0.3024338186, 0.0823436454, -0.0001082704, -0.2205022573, 0.1021557376, -0.0304494221, -0.3979969025, 0.2353871614, -0.3093629181, 0.008942862, -0.0106917629, -0.1935675889, -0.2694327235, 0.038228862, -0.2015724778, -0.2302813977, -0.0226499811, 0.2096544951, 0.2180387527, 0.101394102, 0.0353036039, 0.0034382215, 0.2110030353, 0.4970017672, -0.3136863708, 0.1491890401, 0.4633835554, 0.2256068736, -0.0790340677, 0.5303238034, -0.1318510026, -0.1563620418, 0.4803426266, 0.0794336051, -0.0196658932, 0.0221894719, 0.0381954648, 0.0657822713, 1.0497556925, -0.3005073369, -0.6400738358, -0.3131263852, -0.0287610106, -0.2899566293, -0.0206245091, 0.0469602086, 0.135919109, 0.2862553298, 0.1529171914, -0.0006789505, -0.2413852066, 0.2581863403, 0.190658316, 0.5964323878, -0.0935954228, -0.0045737871, -0.0229582991, -0.1731840074, 0.3466400206, -0.0437574051, 0.0845187008, 0.3244001865, 0.2550895214, -0.4106377959, -0.020148728, -0.2211660892, -0.2685049772, 0.3116215169, -0.1554582268, -0.2152313739, -0.3488795161, 0.0143811284, 0.1823629439, -0.0521843694, -0.0654092208, 0.0571545027, 0.3324837387, -0.2685374916, 0.0818618685, -0.2084449679, 0.0705765486, 0.1232950091, 0.2235990912, 0.1682756245, 0.2489264458, -0.1136943847, -0.0179063641, -0.0670528933, -0.3448577821, -0.3703079224, 0.0319026597, -0.1758321375, -0.0820299536, 0.1649264395, -0.2577327788, -0.0813991725, 0.33731094, -0.4842534363, 0.037618652, 0.0848377496, -0.2134588212, 0.1989763528, 0.1971702278, -0.1040383354, -0.0543206185, 0.3667910099, -0.4674567282, -0.2671705782, 0.1362531632, -0.0502733663, 0.1213926747, 0.2728663683, -0.6708786488, -0.0359788798, -0.0328065082, 0.0680196956, -0.4065240026, 0.1614420712, -0.1267834157, -0.2285155207, -0.2913940847, 0.2165711671, 0.0395697579, -0.0169441588, -0.0348329917, 0.2622376382, -0.0513781272, -0.1128497198, 0.3826446831, 0.3345525861, -0.2886179686, -0.1055598855, -0.0824062154, 0.3132627308, -0.3706123233, 0.1262739301, -0.4333338737, 0.0289442465, -0.0300284233, -0.1934414953, -0.1165631562, 0.3691640198, 0.0785313323, -0.0796540529, 0.1349884123, -0.1545504183, 0.1034116969, -0.0115287835, -0.1743308008, 0.2645847797, 0.089600563, 0.3461872041, 0.1644787639, -0.4002455771, -0.0855920166, 0.0776794031, -0.1693276763, 0.016329715, 0.0170231368, -0.1683267355, -0.0003568554, 0.3097573817, -0.055634737, 0.2323742211, 0.0646075681, 0.2025993019, -0.1027859375, 0.0701776445, 0.2355364263, 0.1136039719, 0.3631001115, 0.0911593437, -0.0845476836, -0.4591390789, -0.1014469713, 0.0275455937, 0.3418156803, 0.2621898651, 0.0094874045, -0.482447207, 0.107730478, 0.233178556, 0.1329490095, -0.0075287605, 0.1712531596, -0.2108650059, -0.0024533481, -0.0255560298, -0.0476238988, -0.0279385597, 0.031550698, 0.1658469439, -0.0290503353, -0.1027569994, 0.0742766485, -0.0956063345, -0.1544672251, 0.4426938295, 0.1273771375, 0.1511202902, -0.0580428019, 0.065310806, 0.2966314554, 0.4081923962, -0.1175222546, 0.8323482871, 0.0305609182, -0.2687149644, 0.2871218324, -0.067287907, -0.2043893486, -0.1289659142, -0.2116234899, 0.1538200974, 0.1308294088, -0.0287392624, -0.3559420407, -0.111793749, 0.0012394382, -0.0301073696, -0.1111632064, -0.254296273, -0.3622640669, 0.134841904, -0.0443804376, 0.2592233419, -0.1999972016, 0.643797338, 0.507707715, -0.0199635234, 0.0618592501, 0.4252172112, -0.2763418555, -0.3513451219, 0.1205519885, 0.0618070588, 0.1337195188, 0.2005300671, -0.0377342589, -0.0462109521, 0.0852495357, 0.0601457171, 0.1491705477, 0.1479827911, 0.0735948309, -0.1713437587, -0.0110750087, 0.450106442, 0.3422293961, -0.3069055974, -0.1561527401, 0.2666021585, -0.0435723141, -0.01742406, 0.0462701172, -0.0571405217, -0.0237587932, -0.3285509348, -0.1548572034, -0.1723489761, 0.0016217483, 0.3911000788, -0.0763695613, 0.0266889222, 0.0898998454, 0.5714316964, -0.1188945919, 0.3691208065, -0.0877682343, -0.3721864522, 0.1481582373, 0.1263923049, -0.1003204435, -0.0094332816, 0.6776945591, 0.1245407984, 0.542081058, -0.4314917624, -0.5420832634, -0.0654086322, 0.0156484768, 0.1042211056, -0.1033384278, 0.1693787575, 0.0319063887, -0.2418944687, -0.1628420949, 0.2095573246, 0.0186938662, -0.2436217368, -0.2564199865, 0.2242481112, 0.0179337543, 0.1551481485, -0.2873895168, -0.323474288, 0.0730577707, -0.2449717969, 0.1440973878, 0.5653582215, -0.3769897223, -0.2217645794, 0.0785498917, 0.4951767623, -0.2336639315, -0.260289222, -0.0161652267, -0.3853642642, 0.1395078897, 0.1315382272, -0.03120807, -0.2742131054, 0.1159913167, 0.010776055, -0.2133488804, 0.1616202593, 0.2240667492, -0.0755975619, -0.3857021034, 0.3822267056, 0.1567516476, -0.0942953527, 0.1475505531, -0.183683008, -0.2372686863, 0.014846961, -0.0601213947, 0.1527035087, 0.1147020683, -0.0181365609, 0.5780408382, 0.0567737855, -0.3313296437, -0.0365480036, 0.0358878449, 0.0517447479, -0.1286506951, 0.0938068405, 0.1434614509, -0.0095805097, 0.1187186018, 0.3419384658, 0.0187068265, 0.3296884596, 0.0354179665, 0.0828821063, -0.3574456573, -0.2565893531, 0.2014017403, -0.169021666, 0.6463079453, -0.0870159268, -0.0106980782, -0.2547417879, -0.2193760425, -0.0026128576, 0.1273498684, 0.2662169933, -0.1400330961, -0.1679563969, 0.1354758888, -0.1145042479, -0.2523903251, 0.087025471, -0.1160971597, -0.1864600182, -0.0351739526, -0.0190676004, 0.3410686553, 0.1444844157, -0.537124455, 0.0676582605, -0.1301709116, -0.0176380128, 0.0174938813, 0.1402700543, 0.3572720289, -0.0490695424, 0.0423068367, 0.5136856437, -0.2035026252, -0.1689593643, 0.5952445865, -0.0144074084, 0.0396312289, -0.3093814254, 0.3306986392, 0.419023186, -0.0480947383, -0.0802314803, 0.1290821284, 0.1179725677, 0.1514160931, -0.0410150625, -0.0162694268, 0.4416910708, 0.1733051091, 0.1040190905, 0.0869834572, 0.2026070356, 0.2258014679, 0.3377769887, -0.0091289459, 0.3165979385, 0.1488758475, -0.1124896035, -0.3205648959, -0.072518833, -0.2526842654, 0.0584495887, 0.1764175892, 0.2222515196, 0.4286354482, -0.0678264126, 0.0945192799, -0.7608528733, -0.0611113757, -0.1331849545, -0.0239541177, -0.4272243381, -0.4915425479, 0.5695812106, -0.0269162394, 0.0143889152, 0.2028143406, -0.0355512872, -0.2054285109, 0.1404167712, 0.111752294, 0.9784370661, 0.1614497602, 0.0183401834, -0.0274339933, -0.2560431361, 0.3099460304, -0.2240134925, -0.3613578975, -0.2581540644, -0.1574354172, -0.0976999775, 0.0444409922, -0.0551820062, 0.2940300405, -0.2062992305, -0.3423837125, 0.0070754774, 0.2759031653, 0.1744722873, 0.3541486561, 0.1983649284, -0.4265001118, 0.0455982685, 0.1425095499, -0.3273234963, -0.028650552, 0.0561031848, -0.1848718524, -0.0393601619, 0.0560445786, -0.5666928887, -0.3303578794, -0.0125646666, -0.0422192514, 0.18010436, -0.1935035735, 0.2197407186, -0.0944117531, 0.4614584446, -0.0986275077, -0.0082486933, 0.0337322801, -0.1049728096, 0.0525240712, 0.1312087476, -0.0582208186, 0.4070601463, -0.0669308901, 0.0585622378, 0.1382413208, -0.3053851724, -0.4410959482, 0.0323498957, -0.2054893821, -0.0203142557, 0.1962060481, -0.3957163095, 0.2631897032, -0.2231686264, -0.2130116224, 0.1594618261, 0.3661236167, 0.2695603967, 0.009016729, -0.3683319986, -0.0141358189, -0.2039146125, -0.0056193946, -0.15888457, 0.140925929, -0.0802851468, 0.185656935, -0.2737149298, -0.2105538696, 0.2355054021, -0.0369355418, -0.5898628235, -0.1067829058, 0.3451681435, 0.0656046197, 0.2049135119, 0.2973488867, -0.0092332056, 0.0150664616, -0.2726184726, -0.2315695137, -0.1669258028, 0.180077374, -0.2238909006, -0.0749130473, -0.0470016487, 0.1938563138, -0.131428957, -0.0058471202, -0.3739167452, -0.2801824212, 0.239965573, 0.1805556118, 0.1307715178, -0.0979447439, 0.0517227426, -0.2393946052, -0.0086805224, -0.1024872065, -0.0185832661, -0.1531238258, -0.3309538066, 0.0779582113, 0.0245452262, -0.2102958709, -0.2102891058, -0.0472123697, -0.2565330267, -0.160490483, 0.0824402794, 0.2336119711, 0.0201890003, 0.1478234082, -0.2487661541, 0.1302911341, -0.2994285822, 0.0039502075, 0.1982190758, 0.4012509584, 0.079526566, 0.5387562513, -0.4161683917, -0.0046738712, -0.3606981933, 0.3456531763, -0.0250635687, -0.2611350417, 0.3567261994, 0.1837329119, 0.1598860919, 0.5661808848, 0.0889279768, -0.2648354471, -0.1078373641, -0.1748979837, -0.0081566377, 0.3245608807, -0.1440777779, -0.0084444545, -0.3257597685, 0.0268518869, 0.1088927314, 0.1184510142, 0.2478711754, 0.4347953498, 0.0531117842, 0.1068751514, 0.2323227376, -0.1383860409, 0.2496764958, 0.3764421344, 0.2080729902, 0.2403741181, 0.4376173615, 0.2485899925, 0.1506465673, -0.054206524, 0.3081294, 0.2456824183, 0.349173665, -0.1566435844, 0.1411925703, -0.0850064233, -0.0336208642, 0.3707270026, -0.0392000601, 0.0722867325, 0.0386012122, -0.0842179805, 0.0564957559, -0.103308022, -0.2062442154, -0.1615830958, 0.0798815712, 0.1958756894, 0.1990539283, -0.0022587362, 0.1619379371, -0.2874873579, -0.1809169203, -0.0107553974, -0.0721169263, -0.191000998, 0.1188777611, -0.0174747426, -0.0503760949, 0.0570624135, 0.4430931211, -0.0952413827, -0.1941516101, -0.1494792402, -0.0876094103, 0.2424835861, 0.149018392, 0.1438598186, -0.0186888818, 0.0281861536, 0.3770880997, -0.34427616, -0.1761820465, 0.2292249352, 0.0079257712, 0.2042930424, -0.1611932814, 0.1589322388, 0.1595407873, -0.0792215466, -0.0148863858, 0.1618368477, 0.2630308568, -0.1359769255, -0.2179825753, 0.4482418895, -0.2650256753, 0.3391005695, 0.143024087, 0.3320019543, -0.129722476, 0.4520697594, 0.0563574135, -0.032568533, -0.2349545807, 0.1294332147, 0.1506531984, -0.1364135146, 0.3311929703, 0.0836404562, -0.0393994562, -0.3313995302, -0.3925767839, -0.2167042792, -0.0571813211, -0.0707551166, 0.4410097599, -0.2871041596, 0.1272177845, 0.3696736395, 0.1277336478, -0.4035860002, -0.2641947567, 0.0115786958, -0.1003268585, -0.055475004, -0.0241774097, 0.0468873903, -0.154424265, -0.0657968894, 0.0948008746, 0.0942965001, 0.0309537984, -0.5569013357, 0.2010581195, 0.2612304986, 0.3624070287, 0.4200798273, -0.2190729082, 0.0218828525, -0.0784474984, -0.0656544417, -0.1126863509, 0.0203977935, -0.0546932817, 0.1801135689, -0.2356785685, 0.4029827714, -0.0637032017, 0.142235741, -0.2754600346, 0.0604875684, -0.1451092809, -0.2224327624, -0.3923820853, 0.1807299703, 0.0728459954, -0.0016482861, 0.2127024382, 0.0183337592, -0.0081040636, 0.2501272261, 0.0078377156, -0.1739808321, -0.0353184789, 0.0633366853, -0.0812074542, 0.1010300145, 0.2731562257, -0.2190748751, 0.0103943478, -0.298597157, -0.0053787143, 0.5580498576, -0.0898104459, 0.0342503525, 0.1021981612, 0.2664300799, -0.0411347412, -0.045806542, 0.1393591017, -0.2375445217, -0.0049931281, 0.054809466, -0.1115094796 ]
https://github.com/huggingface/datasets/issues/3625
Add a metadata field for when source data was produced
> Metadata are very important, but defining the standard is always a struggle between allowing exhaustivity without being too complex. Archivists have Dublin Core, open data has [frictionlessdata.io](https://frictionlessdata.io/), geo has ISO 19139 and INSPIRE, etc. and it's always a mess! I'm not sure we want to dig too much into it, but I'm curious to know if there has been some work on the metadata standard. I thought this is a potential issue with adding this field since it might be hard to define what is general enough to be useful for most data vs what becomes very domain-specific. Potentially adding one extra field leads to more and more fields in the future. Another issue is that there are some metadata standards around data i.e. [datacite](https://schema.datacite.org/meta/kernel-4.4/), but not many aimed explicitly at ML data afaik. Some of the discussions around metadata for ML are also more focused on versioning/managing data in production environments. My thinking is that here, some reference to the time of production would also often be tracked/relevant, i.e. for triggering model training, so having this information available in the hub would also help address this use case.
**Is your feature request related to a problem? Please describe.** The current problem is that information about when source data was produced is not easily visible. Though there are a variety of metadata fields available in the dataset viewer, time period information is not included. This feature request suggests making metadata relating to the time that the underlying *source* data was produced more prominent and outlines why this specific information is of particular importance, both in domain-specific historic research and more broadly. **Describe the solution you'd like** There are a variety of metadata fields exposed in the dataset viewer (license, task categories, etc.) These fields make this metadata more prominent both for human users and as potentially machine-actionable information (for example, through the API). I would propose to add a metadata field that says when some underlying data was produced. For example, a dataset would be labelled as being produced between `1800-1900`. **Describe alternatives you've considered** This information is sometimes available in the Datacard or a paper describing the dataset. However, it's often not that easy to identify or extract this information, particularly if you want to use this field as a filter to identify relevant datasets. **Additional context** I believe this feature is relevant for a number of reasons: - Increasingly, there is an interest in using historical data for training language models (for example, https://huggingface.co/dbmdz/bert-base-historic-dutch-cased), and datasets to support this task (for example, https://huggingface.co/datasets/bnl_newspapers). For these datasets, indicating the time periods covered is particularly relevant. - More broadly, time is likely a common source of domain drift. Datasets of movie reviews from the 90s may not work well for recent movie reviews. As the documentation and long-term management of ML data become more of a priority, quickly understanding the time when the underlying text (or other data types) is arguably more important. - time-series data: datasets are adding more support for time series data. Again, the periods covered might be particularly relevant here. **open questions** - I think some of my points above apply not only to the underlying data but also to annotations. As a result, there could also be an argument for encoding this information somewhere. However, I would argue (but could be persuaded otherwise) that this is probably less important for filtering. This type of context is already addressed in the datasheets template and often requires more narrative to discuss. - what level of granularity would make sense for this? e.g. assigning a decade, century or year? - how to encode this information? What formatting makes sense - what specific time to encode; a data range? (mean, modal, min, max value?) This is a slightly amorphous feature request - I would be happy to discuss further/try and propose a more concrete solution if this seems like something that could be worth considering. I realise this might also touch on other parts of the 🤗 hubs ecosystem.
190
Add a metadata field for when source data was produced **Is your feature request related to a problem? Please describe.** The current problem is that information about when source data was produced is not easily visible. Though there are a variety of metadata fields available in the dataset viewer, time period information is not included. This feature request suggests making metadata relating to the time that the underlying *source* data was produced more prominent and outlines why this specific information is of particular importance, both in domain-specific historic research and more broadly. **Describe the solution you'd like** There are a variety of metadata fields exposed in the dataset viewer (license, task categories, etc.) These fields make this metadata more prominent both for human users and as potentially machine-actionable information (for example, through the API). I would propose to add a metadata field that says when some underlying data was produced. For example, a dataset would be labelled as being produced between `1800-1900`. **Describe alternatives you've considered** This information is sometimes available in the Datacard or a paper describing the dataset. However, it's often not that easy to identify or extract this information, particularly if you want to use this field as a filter to identify relevant datasets. **Additional context** I believe this feature is relevant for a number of reasons: - Increasingly, there is an interest in using historical data for training language models (for example, https://huggingface.co/dbmdz/bert-base-historic-dutch-cased), and datasets to support this task (for example, https://huggingface.co/datasets/bnl_newspapers). For these datasets, indicating the time periods covered is particularly relevant. - More broadly, time is likely a common source of domain drift. Datasets of movie reviews from the 90s may not work well for recent movie reviews. As the documentation and long-term management of ML data become more of a priority, quickly understanding the time when the underlying text (or other data types) is arguably more important. - time-series data: datasets are adding more support for time series data. Again, the periods covered might be particularly relevant here. **open questions** - I think some of my points above apply not only to the underlying data but also to annotations. As a result, there could also be an argument for encoding this information somewhere. However, I would argue (but could be persuaded otherwise) that this is probably less important for filtering. This type of context is already addressed in the datasheets template and often requires more narrative to discuss. - what level of granularity would make sense for this? e.g. assigning a decade, century or year? - how to encode this information? What formatting makes sense - what specific time to encode; a data range? (mean, modal, min, max value?) This is a slightly amorphous feature request - I would be happy to discuss further/try and propose a more concrete solution if this seems like something that could be worth considering. I realise this might also touch on other parts of the 🤗 hubs ecosystem. > Metadata are very important, but defining the standard is always a struggle between allowing exhaustivity without being too complex. Archivists have Dublin Core, open data has [frictionlessdata.io](https://frictionlessdata.io/), geo has ISO 19139 and INSPIRE, etc. and it's always a mess! I'm not sure we want to dig too much into it, but I'm curious to know if there has been some work on the metadata standard. I thought this is a potential issue with adding this field since it might be hard to define what is general enough to be useful for most data vs what becomes very domain-specific. Potentially adding one extra field leads to more and more fields in the future. Another issue is that there are some metadata standards around data i.e. [datacite](https://schema.datacite.org/meta/kernel-4.4/), but not many aimed explicitly at ML data afaik. Some of the discussions around metadata for ML are also more focused on versioning/managing data in production environments. My thinking is that here, some reference to the time of production would also often be tracked/relevant, i.e. for triggering model training, so having this information available in the hub would also help address this use case.
[ -0.3327313662, 0.2428779155, -0.0236785784, -0.1035892591, -0.2707235217, -0.161868602, 0.3315870762, 0.2197172642, -0.5503545403, -0.0032399925, 0.4462813437, 0.3695133626, -0.199112162, 0.0012922501, -0.3244539201, -0.0545660928, -0.0300791133, 0.1974953562, 0.0388663746, 0.2795036137, -0.1341546476, -0.3649156988, 0.015588115, -0.1106296852, -0.6584820747, -0.0131683145, -0.0097078159, -0.245763123, -0.2800128758, -0.3473436832, -0.1150521338, 0.178995505, 0.3024338186, 0.0823436454, -0.0001082704, -0.2205022573, 0.1021557376, -0.0304494221, -0.3979969025, 0.2353871614, -0.3093629181, 0.008942862, -0.0106917629, -0.1935675889, -0.2694327235, 0.038228862, -0.2015724778, -0.2302813977, -0.0226499811, 0.2096544951, 0.2180387527, 0.101394102, 0.0353036039, 0.0034382215, 0.2110030353, 0.4970017672, -0.3136863708, 0.1491890401, 0.4633835554, 0.2256068736, -0.0790340677, 0.5303238034, -0.1318510026, -0.1563620418, 0.4803426266, 0.0794336051, -0.0196658932, 0.0221894719, 0.0381954648, 0.0657822713, 1.0497556925, -0.3005073369, -0.6400738358, -0.3131263852, -0.0287610106, -0.2899566293, -0.0206245091, 0.0469602086, 0.135919109, 0.2862553298, 0.1529171914, -0.0006789505, -0.2413852066, 0.2581863403, 0.190658316, 0.5964323878, -0.0935954228, -0.0045737871, -0.0229582991, -0.1731840074, 0.3466400206, -0.0437574051, 0.0845187008, 0.3244001865, 0.2550895214, -0.4106377959, -0.020148728, -0.2211660892, -0.2685049772, 0.3116215169, -0.1554582268, -0.2152313739, -0.3488795161, 0.0143811284, 0.1823629439, -0.0521843694, -0.0654092208, 0.0571545027, 0.3324837387, -0.2685374916, 0.0818618685, -0.2084449679, 0.0705765486, 0.1232950091, 0.2235990912, 0.1682756245, 0.2489264458, -0.1136943847, -0.0179063641, -0.0670528933, -0.3448577821, -0.3703079224, 0.0319026597, -0.1758321375, -0.0820299536, 0.1649264395, -0.2577327788, -0.0813991725, 0.33731094, -0.4842534363, 0.037618652, 0.0848377496, -0.2134588212, 0.1989763528, 0.1971702278, -0.1040383354, -0.0543206185, 0.3667910099, -0.4674567282, -0.2671705782, 0.1362531632, -0.0502733663, 0.1213926747, 0.2728663683, -0.6708786488, -0.0359788798, -0.0328065082, 0.0680196956, -0.4065240026, 0.1614420712, -0.1267834157, -0.2285155207, -0.2913940847, 0.2165711671, 0.0395697579, -0.0169441588, -0.0348329917, 0.2622376382, -0.0513781272, -0.1128497198, 0.3826446831, 0.3345525861, -0.2886179686, -0.1055598855, -0.0824062154, 0.3132627308, -0.3706123233, 0.1262739301, -0.4333338737, 0.0289442465, -0.0300284233, -0.1934414953, -0.1165631562, 0.3691640198, 0.0785313323, -0.0796540529, 0.1349884123, -0.1545504183, 0.1034116969, -0.0115287835, -0.1743308008, 0.2645847797, 0.089600563, 0.3461872041, 0.1644787639, -0.4002455771, -0.0855920166, 0.0776794031, -0.1693276763, 0.016329715, 0.0170231368, -0.1683267355, -0.0003568554, 0.3097573817, -0.055634737, 0.2323742211, 0.0646075681, 0.2025993019, -0.1027859375, 0.0701776445, 0.2355364263, 0.1136039719, 0.3631001115, 0.0911593437, -0.0845476836, -0.4591390789, -0.1014469713, 0.0275455937, 0.3418156803, 0.2621898651, 0.0094874045, -0.482447207, 0.107730478, 0.233178556, 0.1329490095, -0.0075287605, 0.1712531596, -0.2108650059, -0.0024533481, -0.0255560298, -0.0476238988, -0.0279385597, 0.031550698, 0.1658469439, -0.0290503353, -0.1027569994, 0.0742766485, -0.0956063345, -0.1544672251, 0.4426938295, 0.1273771375, 0.1511202902, -0.0580428019, 0.065310806, 0.2966314554, 0.4081923962, -0.1175222546, 0.8323482871, 0.0305609182, -0.2687149644, 0.2871218324, -0.067287907, -0.2043893486, -0.1289659142, -0.2116234899, 0.1538200974, 0.1308294088, -0.0287392624, -0.3559420407, -0.111793749, 0.0012394382, -0.0301073696, -0.1111632064, -0.254296273, -0.3622640669, 0.134841904, -0.0443804376, 0.2592233419, -0.1999972016, 0.643797338, 0.507707715, -0.0199635234, 0.0618592501, 0.4252172112, -0.2763418555, -0.3513451219, 0.1205519885, 0.0618070588, 0.1337195188, 0.2005300671, -0.0377342589, -0.0462109521, 0.0852495357, 0.0601457171, 0.1491705477, 0.1479827911, 0.0735948309, -0.1713437587, -0.0110750087, 0.450106442, 0.3422293961, -0.3069055974, -0.1561527401, 0.2666021585, -0.0435723141, -0.01742406, 0.0462701172, -0.0571405217, -0.0237587932, -0.3285509348, -0.1548572034, -0.1723489761, 0.0016217483, 0.3911000788, -0.0763695613, 0.0266889222, 0.0898998454, 0.5714316964, -0.1188945919, 0.3691208065, -0.0877682343, -0.3721864522, 0.1481582373, 0.1263923049, -0.1003204435, -0.0094332816, 0.6776945591, 0.1245407984, 0.542081058, -0.4314917624, -0.5420832634, -0.0654086322, 0.0156484768, 0.1042211056, -0.1033384278, 0.1693787575, 0.0319063887, -0.2418944687, -0.1628420949, 0.2095573246, 0.0186938662, -0.2436217368, -0.2564199865, 0.2242481112, 0.0179337543, 0.1551481485, -0.2873895168, -0.323474288, 0.0730577707, -0.2449717969, 0.1440973878, 0.5653582215, -0.3769897223, -0.2217645794, 0.0785498917, 0.4951767623, -0.2336639315, -0.260289222, -0.0161652267, -0.3853642642, 0.1395078897, 0.1315382272, -0.03120807, -0.2742131054, 0.1159913167, 0.010776055, -0.2133488804, 0.1616202593, 0.2240667492, -0.0755975619, -0.3857021034, 0.3822267056, 0.1567516476, -0.0942953527, 0.1475505531, -0.183683008, -0.2372686863, 0.014846961, -0.0601213947, 0.1527035087, 0.1147020683, -0.0181365609, 0.5780408382, 0.0567737855, -0.3313296437, -0.0365480036, 0.0358878449, 0.0517447479, -0.1286506951, 0.0938068405, 0.1434614509, -0.0095805097, 0.1187186018, 0.3419384658, 0.0187068265, 0.3296884596, 0.0354179665, 0.0828821063, -0.3574456573, -0.2565893531, 0.2014017403, -0.169021666, 0.6463079453, -0.0870159268, -0.0106980782, -0.2547417879, -0.2193760425, -0.0026128576, 0.1273498684, 0.2662169933, -0.1400330961, -0.1679563969, 0.1354758888, -0.1145042479, -0.2523903251, 0.087025471, -0.1160971597, -0.1864600182, -0.0351739526, -0.0190676004, 0.3410686553, 0.1444844157, -0.537124455, 0.0676582605, -0.1301709116, -0.0176380128, 0.0174938813, 0.1402700543, 0.3572720289, -0.0490695424, 0.0423068367, 0.5136856437, -0.2035026252, -0.1689593643, 0.5952445865, -0.0144074084, 0.0396312289, -0.3093814254, 0.3306986392, 0.419023186, -0.0480947383, -0.0802314803, 0.1290821284, 0.1179725677, 0.1514160931, -0.0410150625, -0.0162694268, 0.4416910708, 0.1733051091, 0.1040190905, 0.0869834572, 0.2026070356, 0.2258014679, 0.3377769887, -0.0091289459, 0.3165979385, 0.1488758475, -0.1124896035, -0.3205648959, -0.072518833, -0.2526842654, 0.0584495887, 0.1764175892, 0.2222515196, 0.4286354482, -0.0678264126, 0.0945192799, -0.7608528733, -0.0611113757, -0.1331849545, -0.0239541177, -0.4272243381, -0.4915425479, 0.5695812106, -0.0269162394, 0.0143889152, 0.2028143406, -0.0355512872, -0.2054285109, 0.1404167712, 0.111752294, 0.9784370661, 0.1614497602, 0.0183401834, -0.0274339933, -0.2560431361, 0.3099460304, -0.2240134925, -0.3613578975, -0.2581540644, -0.1574354172, -0.0976999775, 0.0444409922, -0.0551820062, 0.2940300405, -0.2062992305, -0.3423837125, 0.0070754774, 0.2759031653, 0.1744722873, 0.3541486561, 0.1983649284, -0.4265001118, 0.0455982685, 0.1425095499, -0.3273234963, -0.028650552, 0.0561031848, -0.1848718524, -0.0393601619, 0.0560445786, -0.5666928887, -0.3303578794, -0.0125646666, -0.0422192514, 0.18010436, -0.1935035735, 0.2197407186, -0.0944117531, 0.4614584446, -0.0986275077, -0.0082486933, 0.0337322801, -0.1049728096, 0.0525240712, 0.1312087476, -0.0582208186, 0.4070601463, -0.0669308901, 0.0585622378, 0.1382413208, -0.3053851724, -0.4410959482, 0.0323498957, -0.2054893821, -0.0203142557, 0.1962060481, -0.3957163095, 0.2631897032, -0.2231686264, -0.2130116224, 0.1594618261, 0.3661236167, 0.2695603967, 0.009016729, -0.3683319986, -0.0141358189, -0.2039146125, -0.0056193946, -0.15888457, 0.140925929, -0.0802851468, 0.185656935, -0.2737149298, -0.2105538696, 0.2355054021, -0.0369355418, -0.5898628235, -0.1067829058, 0.3451681435, 0.0656046197, 0.2049135119, 0.2973488867, -0.0092332056, 0.0150664616, -0.2726184726, -0.2315695137, -0.1669258028, 0.180077374, -0.2238909006, -0.0749130473, -0.0470016487, 0.1938563138, -0.131428957, -0.0058471202, -0.3739167452, -0.2801824212, 0.239965573, 0.1805556118, 0.1307715178, -0.0979447439, 0.0517227426, -0.2393946052, -0.0086805224, -0.1024872065, -0.0185832661, -0.1531238258, -0.3309538066, 0.0779582113, 0.0245452262, -0.2102958709, -0.2102891058, -0.0472123697, -0.2565330267, -0.160490483, 0.0824402794, 0.2336119711, 0.0201890003, 0.1478234082, -0.2487661541, 0.1302911341, -0.2994285822, 0.0039502075, 0.1982190758, 0.4012509584, 0.079526566, 0.5387562513, -0.4161683917, -0.0046738712, -0.3606981933, 0.3456531763, -0.0250635687, -0.2611350417, 0.3567261994, 0.1837329119, 0.1598860919, 0.5661808848, 0.0889279768, -0.2648354471, -0.1078373641, -0.1748979837, -0.0081566377, 0.3245608807, -0.1440777779, -0.0084444545, -0.3257597685, 0.0268518869, 0.1088927314, 0.1184510142, 0.2478711754, 0.4347953498, 0.0531117842, 0.1068751514, 0.2323227376, -0.1383860409, 0.2496764958, 0.3764421344, 0.2080729902, 0.2403741181, 0.4376173615, 0.2485899925, 0.1506465673, -0.054206524, 0.3081294, 0.2456824183, 0.349173665, -0.1566435844, 0.1411925703, -0.0850064233, -0.0336208642, 0.3707270026, -0.0392000601, 0.0722867325, 0.0386012122, -0.0842179805, 0.0564957559, -0.103308022, -0.2062442154, -0.1615830958, 0.0798815712, 0.1958756894, 0.1990539283, -0.0022587362, 0.1619379371, -0.2874873579, -0.1809169203, -0.0107553974, -0.0721169263, -0.191000998, 0.1188777611, -0.0174747426, -0.0503760949, 0.0570624135, 0.4430931211, -0.0952413827, -0.1941516101, -0.1494792402, -0.0876094103, 0.2424835861, 0.149018392, 0.1438598186, -0.0186888818, 0.0281861536, 0.3770880997, -0.34427616, -0.1761820465, 0.2292249352, 0.0079257712, 0.2042930424, -0.1611932814, 0.1589322388, 0.1595407873, -0.0792215466, -0.0148863858, 0.1618368477, 0.2630308568, -0.1359769255, -0.2179825753, 0.4482418895, -0.2650256753, 0.3391005695, 0.143024087, 0.3320019543, -0.129722476, 0.4520697594, 0.0563574135, -0.032568533, -0.2349545807, 0.1294332147, 0.1506531984, -0.1364135146, 0.3311929703, 0.0836404562, -0.0393994562, -0.3313995302, -0.3925767839, -0.2167042792, -0.0571813211, -0.0707551166, 0.4410097599, -0.2871041596, 0.1272177845, 0.3696736395, 0.1277336478, -0.4035860002, -0.2641947567, 0.0115786958, -0.1003268585, -0.055475004, -0.0241774097, 0.0468873903, -0.154424265, -0.0657968894, 0.0948008746, 0.0942965001, 0.0309537984, -0.5569013357, 0.2010581195, 0.2612304986, 0.3624070287, 0.4200798273, -0.2190729082, 0.0218828525, -0.0784474984, -0.0656544417, -0.1126863509, 0.0203977935, -0.0546932817, 0.1801135689, -0.2356785685, 0.4029827714, -0.0637032017, 0.142235741, -0.2754600346, 0.0604875684, -0.1451092809, -0.2224327624, -0.3923820853, 0.1807299703, 0.0728459954, -0.0016482861, 0.2127024382, 0.0183337592, -0.0081040636, 0.2501272261, 0.0078377156, -0.1739808321, -0.0353184789, 0.0633366853, -0.0812074542, 0.1010300145, 0.2731562257, -0.2190748751, 0.0103943478, -0.298597157, -0.0053787143, 0.5580498576, -0.0898104459, 0.0342503525, 0.1021981612, 0.2664300799, -0.0411347412, -0.045806542, 0.1393591017, -0.2375445217, -0.0049931281, 0.054809466, -0.1115094796 ]
https://github.com/huggingface/datasets/issues/3621
Consider adding `ipywidgets` as a dependency.
Hi! We use `tqdm` to display progress bars, so I suggest you open this issue in their repo.
When I install `datasets` in a fresh virtualenv with jupyterlab I always see this error. ``` ImportError: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html ``` It's a bit of a nuisance, because I need to run shut down the jupyterlab server in order to install the required dependency. Might it be an option to just include it as a dependency here?
18
Consider adding `ipywidgets` as a dependency. When I install `datasets` in a fresh virtualenv with jupyterlab I always see this error. ``` ImportError: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html ``` It's a bit of a nuisance, because I need to run shut down the jupyterlab server in order to install the required dependency. Might it be an option to just include it as a dependency here? Hi! We use `tqdm` to display progress bars, so I suggest you open this issue in their repo.
[ -0.3716931641, 0.6513088346, -0.0791809782, -0.2230323553, 0.1602570266, -0.1791561693, 0.592005074, 0.1570910513, 0.0256811772, 0.2411099225, -0.2169428468, 0.0295983255, -0.1418178231, 0.468570739, 0.1340662986, 0.1758034974, 0.0730534568, 0.4884797335, -0.4984247386, -0.0682071969, -0.0362909921, 0.0128919985, -0.2562272847, 0.0943832546, -0.3190377951, 0.0187124535, 0.0835832953, 0.0782051161, -0.0184341893, -0.6023112535, 0.4485515356, 0.3965828717, 0.2151115984, 0.3287483752, -0.0001165038, 0.1713743061, 0.3366449773, -0.0163220763, -0.1893920451, 0.2773658633, -0.0516574495, -0.5374930501, -0.0758312717, -0.2866882384, 0.0508068353, -0.1511373818, -0.2572811246, -0.3347733021, 0.1470592022, -0.0136366542, 0.1507732421, 0.5454634428, 0.1825626343, -0.021012513, 0.448228538, 0.0512545221, -0.1822282821, 0.1173038483, 0.3168505132, -0.2026749253, -0.0304035377, 0.3030379415, -0.0302818269, 0.1936507821, 0.0190061163, 0.0277272072, 0.3011356592, -0.110216409, -0.3498347104, 0.245546177, 0.3917123675, -0.2592936158, -0.2339809686, -0.0499047823, 0.1517355591, -0.1566775143, 0.1743229032, -0.3423104584, -0.1461060494, 0.296943903, -0.2963808775, -0.310764432, -0.3151763082, 0.3353936672, -0.145366326, 0.1986231655, 0.1208146513, 0.1559001952, -0.052031409, -0.1393834651, 0.4161204994, 0.214739114, 0.1022338867, -0.2465796024, -0.0749628618, -0.1937894076, 0.1653378457, -0.0820643976, 0.0145683382, 0.2123271972, -0.3927071095, -0.1506684572, -0.025222227, 0.1039630994, 0.051432211, -0.1221962497, 0.1239979267, 0.1566422135, 0.706661582, -0.1439399123, 0.0626169443, 0.1088911742, 0.2192571163, -0.1302557588, 0.172881186, -0.1083217859, 0.3571549356, -0.2443074435, -0.3769700825, 0.0719526112, -0.1743235737, 0.0350153148, 0.1980032474, 0.0792039186, -0.0770652741, 0.0595277026, 0.2046407759, 0.1953061074, -0.2566701472, -0.1640030444, -0.0766024366, 0.0475776978, 0.1473438889, 0.1356889457, 0.2509944141, 0.2694479525, 0.2333488911, -0.0924214423, 0.464520067, 0.4385801256, 0.2812386751, 0.0131902751, -0.0510629304, 0.4794232547, -0.1153535396, -0.0309326816, 0.0850877389, -0.3375671506, 0.004661385, 0.1735325903, -0.0165541582, -0.3063051403, 0.041296836, 0.0732104704, -0.4011377692, -0.2442836463, -0.0581497587, -0.1596111357, -0.2455810606, -0.4358069897, -0.1957033128, -0.2554008365, 0.2661514282, -0.0967292413, 0.2777732909, 0.3445404768, -0.5478109121, -0.2757455111, -0.0762591586, -0.2384996116, -0.0002844817, 0.0701980293, -0.14371185, 0.261646688, 0.0601359382, -0.0347017869, 0.1441223472, -0.5278853178, -0.6088751554, -0.0498261973, 0.0619986728, 0.0240213349, -0.0595866181, 0.4482801855, 0.3556533158, 0.0133497659, -0.2982600629, 0.4569290876, -0.0763698816, -0.2617715597, -0.0386604443, -0.1805868894, 0.0067738844, 0.4258244038, 0.324798286, -0.0510551371, 0.118867591, -0.1376841217, -0.0042242454, 0.0159411896, 0.0587900802, 0.3127221167, 0.2035109103, 0.1356269121, -0.0835258812, -0.1889876723, 0.0346029252, 0.1413518637, -0.1702677608, 0.1154872924, 0.0789095387, -0.10228616, -0.2454819083, 0.1071291268, -0.1682981998, -0.0802774355, 0.0500797331, 0.1024700031, -0.0697408989, 0.0817267746, 0.0036472089, 0.1987975836, -0.0221828464, 0.0163517427, -0.0036271922, 0.4086538851, -0.0513398685, -0.4258259833, 0.2219247371, 0.1707794517, -0.2719248533, -0.1332845837, -0.1435252875, 0.3033767343, 0.325920105, -0.0839417353, 0.2970158458, 0.0826104134, 0.1791870296, -0.2117767781, 0.1043832228, 0.2871213555, -0.1102767587, 0.065161027, 0.0109884301, 0.2652719915, -0.2426860332, 0.0783745348, -0.1063484401, 0.3721356094, 0.2908540666, 0.0831997171, -0.6024469137, -0.3013145626, 0.0787591562, 0.0032625443, 0.1580439359, -0.3127764165, -0.0882571638, 0.0598811135, 0.198237285, 0.1460844278, 0.3041210473, -0.0780916885, -0.2690666914, 0.432756573, 0.2971246541, -0.0466787182, 0.3534589708, 0.2660992742, -0.0625969172, -0.0505862609, 0.0573519804, -0.1229608357, -0.0850573331, 0.1473395824, 0.1726419032, -0.0529839322, -0.0856183395, -0.0510544255, -0.2742184699, -0.1342024505, -0.3248443902, 0.0698939264, -0.1654318273, 0.043708045, -0.4284404814, -0.2753077149, 0.2023860067, -0.61278826, -0.131700173, -0.2485900223, 0.1550094038, 0.1271535009, -0.0668391362, 0.6372924447, 0.165056482, 0.3733531833, 0.2703257799, -0.1787932664, 0.0575212128, -0.2054721713, -0.2278706431, 0.0855805501, 0.1310630888, 0.0987634063, 0.5046549439, -0.0773172453, 0.3130856454, -0.4630704522, -0.4139753282, 0.0137319062, 0.0596176162, 0.5631390214, 0.2572042346, 0.2034732997, -0.0920913741, 0.1513117701, 0.1470210403, -0.119132854, -0.0649588183, -0.0417129584, -0.0242561363, -0.1744247228, 0.0140081821, -0.2897996604, -0.5003002286, -0.2992970049, -0.1291805208, 0.3938809335, -0.072612606, -0.1331167072, 0.098311998, 0.0950468108, 0.4845481217, -0.1160919443, 0.0807685554, -0.3804621398, 0.5313606262, -0.3248310685, -0.1918823868, -0.0674274117, -0.1249896288, -0.0056870971, 0.0116976602, -0.6173814535, -0.1092152894, -0.0065790294, 0.6884260178, 0.0051558814, 0.2628895044, 0.3854025304, 0.1401598305, 0.0252605639, -0.1536611468, -0.2156877816, 0.1035459861, -0.137084946, 0.0965377092, 0.1408058852, 0.3998511434, -0.2199361771, 0.6166591048, 0.052457571, 0.135218814, 0.3601400256, -0.0372896679, 0.5033372641, -0.1043559983, -0.404450804, 0.0599932708, 0.1728212535, 0.2156811208, -0.0477029756, -0.0577038489, 0.2475772649, -0.306132257, 0.0105004171, 0.2164971232, -0.1475356519, 0.0746393278, -0.2931669652, 0.3131027222, 0.0642859638, 0.1479735523, -0.2014393061, -0.0714765117, -0.1072311774, 0.0303779133, 0.270270139, 0.1555544734, 0.1151550263, -0.123998031, -0.2291346043, 0.2557018995, 0.0273981281, 0.1404677629, -0.0584430955, -0.0794857219, -0.1353668869, -0.1110128611, 0.2553036511, -0.1950121373, -0.448263675, 0.2341130972, -0.0383891799, -0.413382858, -0.2216717154, -0.2589629292, 0.0737956315, 0.1284566373, 0.1558668315, -0.1822160482, 0.0689923242, 0.6543259621, 0.2998282909, -0.3054436445, -0.3206670284, -0.4080428779, -0.182750538, -0.4375281632, 0.0660344139, -0.2835032642, -0.068077594, -0.0322823338, -0.2365468591, -0.1972246319, -0.2070866227, -0.0076673804, 0.4029464126, 0.118620351, -0.3053731918, 0.2692792714, 0.0621110275, -0.0467461087, 0.2858929336, 0.1700095534, -0.0980692431, -0.2758093774, 0.0272766203, -0.275902003, 0.2452120483, 0.1422358602, -0.1076932698, 0.1931163371, 0.0959972665, 0.0171141829, -0.3465070426, 0.0769270733, 0.4456690848, -0.1092879549, -0.0722683668, -0.1447665095, 0.3389943838, 0.0420512334, 0.0038264045, 0.1209320799, 0.3668298125, 0.0352729782, -0.2841365933, 0.1759949028, 0.8661023974, 0.0978419855, 0.0343160108, 0.6337162852, 0.1956698895, 0.3835870624, 0.0596605986, -0.0190419033, 0.031464994, -0.2806037962, -0.1197331697, -0.2570759058, 0.2838442326, 0.0477081835, -0.3516358733, 0.2666183412, -0.2231370509, 0.0321209617, -0.096621111, 0.1995641887, 0.1351572424, -0.3407447636, -0.0548083447, 0.1486666799, -0.1949381381, 0.2428504527, -0.1864986569, -0.1145117953, -0.1071610004, 0.0216983091, -0.1499563009, -0.1600164175, 0.2100852877, 0.6730976105, 0.0789116845, -0.1954510361, -0.2727411985, -0.2925973535, 0.3710418344, 0.2416075766, -0.1090350747, 0.0634670109, -0.0529661588, -0.1381504834, 0.1402947158, -0.0104890745, 0.3240935504, -0.3778684735, -0.3993061483, 0.325786382, 0.0285616722, -0.622418344, -0.0426437743, 0.0003756079, 0.5940241814, -0.0179038681, 0.2893694937, 0.2428743988, -0.0651552528, -0.2118482441, 0.0817985758, 0.1933563948, 0.0446017385, 0.6426622272, -0.2087454796, 0.0984562412, -0.3228031397, 0.0708713382, 0.0915759206, 0.1055802107, 0.2312494963, 0.0752891302, -0.2837854028, -0.2538563609, 0.6121087074, 0.1917541176, 0.0402458236, 0.1285977066, 0.1170176193, 0.0199637692, -0.2109596282, -0.016033683, 0.135655269, -0.2598578036, -0.3115074039, -0.3595297635, -0.3380845785, 0.3466071486, 0.0504335202, 0.0975295678, 0.1820973307, 0.411591202, -0.270301193, -0.016553143, -0.2718989551, -0.2379867285, -0.2198539078, -0.0872572511, 0.4202824831, 0.1422298551, 0.014114392, -0.1138797775, -0.0289667156, -0.3079655468, -0.0456405431, -0.1241492853, -0.2167829275, 0.1472544372, -0.1677450389, -0.0283283982, 0.1487879157, -0.137787655, -0.3257991076, 0.0795544609, 0.0923763812, -0.0848246887, -0.0667574331, 0.1763785779, -0.4133480489, -0.0280635003, 0.1413195729, 0.1815020144, 0.1237810776, 0.1422929466, -0.1600975692, 0.4288396835, 0.312374413, -0.1143436953, -0.1065337658, 0.0655062497, 0.0257156827, -0.099383533, 0.2797392607, -0.3050436974, 0.1946794838, 0.2016378343, 0.1933233589, 0.4569506943, -0.235318169, -0.0142751746, 0.25097242, 0.1565227807, -0.5616078973, -0.2467842251, -0.0690096244, -0.0982082412, 0.1573438793, 0.3330790997, -0.085126169, 0.2022978514, 0.2568675876, 0.1919696033, 0.0775214881, -0.368326664, -0.0005832833, 0.1483628005, -0.0280164629, 0.0412103608, 0.0452210978, 0.2456430048, 0.0964089036, 0.5177291632, -0.4246688485, 0.225137502, 0.12249735, -0.1810922176, 0.0710158348, -0.0162896328, -0.0638120249, -0.0902082101, 0.03098616, -0.0388314277, 0.2357139289, 0.2983255088, -0.519058466, -0.1653191745, -0.4889106452, 0.1607931703, -0.1038387343, 0.29715693, -0.1949575841, -0.0174124781, -0.0463788658, -0.1235510632, 0.0912999585, -0.0574253947, 0.0995216742, 0.2017242759, 0.03187472, -0.7312660813, 0.0977317467, -0.0070587681, -0.0382674411, 0.1035947874, -0.1017293632, 0.2721298933, 0.1405106932, -0.1484566778, 0.537312746, 0.3577747047, 0.174004674, -0.117729187, -0.0817265958, -0.035630025, -0.2721745968, -0.0632257313, 0.0117755998, -0.0862689987, -0.229871273, 0.1215316281, 0.0696971416, -0.1260639876, 0.1080708727, 0.1156994179, -0.1123190448, -0.3698165715, 0.1639033705, -0.0028875414, 0.0694955513, -0.0211792905, 0.033838246, -0.1460629404, 0.1893331259, 0.3122609556, 0.0926161781, -0.1390980333, -0.3081839383, 0.0523085855, -0.1686133295, 0.5413382053, 0.1190065518, 0.4017656744, -0.2756052911, -0.0028903484, -0.7047123909, 0.0087736817, -0.2541651726, -0.4639112055, -0.0560348853, 0.0217605066, 0.2151341885, 0.4600557983, 0.3857139349, -0.1449640691, 0.0052986331, -0.6357230544, -0.3937476277, -0.1575529724, 0.4061738849, -0.0869351327, -0.0035819081, -0.2329859436, 0.2463027239, -0.0239251144, 0.0342857987, -0.0359400883, -0.1166718751, 0.2194497436, 0.4838557541, 0.1944071651, 0.2640295327, 0.3620857894, 0.10408739, -0.0672472641, -0.1283098608, -0.6952838898, -0.3160092831, 0.14103055, 0.0403552912, 0.2006915659, -0.3972312212, -0.3069808185, -0.2764264643, 0.3233690262, 0.1135662347, 0.1462346613, 0.0545897074, 0.1335663944, -0.104340218, 0.4145944417, -0.1380532384, -0.0326787382, -0.0558296591, 0.2155694813, -0.2589346766, -0.0935536847, 0.3087307811, 0.1455572397, -0.1609186232, -0.2641894221, -0.0200445987, -0.0654270276, 0.0025293392, -0.1250245273, 0.0329011157, 0.1768801361, 0.0272287466, -0.2432504445, 0.4198812842, 0.1996171921, 0.0848854259, 0.0488115326, 0.3454108238, -0.0946794227, -0.197970435, -0.0323954038, -0.0532759465 ]
https://github.com/huggingface/datasets/issues/3621
Consider adding `ipywidgets` as a dependency.
It depends on how you use `tqdm`, no? Doesn't this library import via; ``` from tqdm.notebook import tqdm ```
When I install `datasets` in a fresh virtualenv with jupyterlab I always see this error. ``` ImportError: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html ``` It's a bit of a nuisance, because I need to run shut down the jupyterlab server in order to install the required dependency. Might it be an option to just include it as a dependency here?
19
Consider adding `ipywidgets` as a dependency. When I install `datasets` in a fresh virtualenv with jupyterlab I always see this error. ``` ImportError: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html ``` It's a bit of a nuisance, because I need to run shut down the jupyterlab server in order to install the required dependency. Might it be an option to just include it as a dependency here? It depends on how you use `tqdm`, no? Doesn't this library import via; ``` from tqdm.notebook import tqdm ```
[ -0.2867106199, 0.4942075312, -0.0472910628, -0.2324493229, 0.1650672704, -0.220628038, 0.6369206309, 0.1494795531, -0.0111662177, 0.1839485317, -0.280236572, 0.0793604776, -0.1705818176, 0.2784908116, 0.1941234022, 0.2538711131, 0.0409017466, 0.3885454834, -0.5920870304, -0.022615334, -0.0274321921, 0.031773854, -0.2519715428, 0.0497723557, -0.3118757904, -0.006370673, 0.0501382314, 0.2135570943, -0.0480112545, -0.501609087, 0.3662218451, 0.3646164834, 0.1196340919, 0.3131045997, -0.0001131121, 0.2414922416, 0.2094493508, -0.0503106155, -0.1127108932, 0.3710414171, 0.0699548721, -0.4585802555, -0.0724111944, -0.3041642904, -0.0005845129, -0.0945899859, -0.3035492003, -0.3308681846, 0.1647030115, 0.0278553627, 0.1689833403, 0.641887784, 0.0572975688, 0.0200644638, 0.354146421, 0.0491871946, -0.1691830903, 0.0541391484, 0.3924208879, -0.1361270845, 0.0147134634, 0.2750825286, -0.0642506108, 0.1276458949, 0.0923625603, 0.1278775185, 0.1210814938, -0.070138, -0.2905290425, 0.2758180201, 0.4292113781, -0.269446075, -0.2418931723, 0.0631711408, 0.2139132917, -0.0991104245, 0.3131175339, -0.4497641623, -0.2148750424, 0.3068558872, -0.2315534055, -0.3455026448, -0.2333669215, 0.3053711653, -0.1785157621, 0.2559015751, 0.1142111942, 0.1173412427, -0.0208383445, -0.2946539223, 0.4433990121, 0.2211328894, 0.0886548534, -0.1867527068, -0.0137840007, -0.3005490899, 0.1260394454, -0.2102064043, 0.0498821512, 0.2383190393, -0.2510878146, -0.0774683133, -0.0204874892, 0.1061850265, 0.0319513641, -0.1739572734, 0.0392494202, 0.187037155, 0.6599032283, -0.2035988122, -0.0168552287, 0.0832771882, 0.2252794504, -0.1722169071, 0.222970888, -0.1814573407, 0.4684804082, -0.1900540888, -0.2219352126, 0.0188305322, -0.1649876535, 0.143958956, 0.1685570329, 0.1279689074, -0.0480061658, 0.110258393, 0.1568909585, 0.1513884664, -0.2572242022, -0.2877495587, -0.040915411, 0.0528844856, 0.2196616083, 0.0433382839, 0.2291918099, 0.2989785373, 0.1953721642, -0.0508207753, 0.5787415504, 0.4522238076, 0.3816141486, 0.0634618402, 0.0333807878, 0.4854061306, -0.131565243, -0.1026449353, 0.0249157064, -0.3536827564, -0.1086810455, 0.0737252384, -0.0633292943, -0.2351402044, 0.1102350727, 0.1308980286, -0.2046388686, -0.2079653293, 0.1103627756, -0.2341774106, -0.3072836697, -0.4954729676, -0.1940034628, -0.2256949991, 0.4243277311, -0.113145858, 0.2249854356, 0.2653319538, -0.4601117671, -0.2062947154, -0.1605774313, -0.1564611197, -0.0049210833, 0.0961391553, -0.204097718, 0.3270098865, 0.0292877704, -0.0830507502, 0.3702297211, -0.6408063173, -0.639972508, 0.0296219978, 0.0197186265, 0.0846651271, -0.085784547, 0.5241470933, 0.3068738282, 0.0858612284, -0.2093662322, 0.4806627333, -0.1483372003, -0.1971712261, -0.0576341636, -0.1359054595, 0.0373284556, 0.3130683899, 0.3392172158, -0.0800923258, 0.1497281641, -0.0417396091, -0.0673752502, -0.0009294539, -0.0244378336, 0.3128733337, 0.1665969193, 0.0542197004, -0.1264473647, -0.1960002333, -0.1107275411, 0.1192791313, -0.0579274967, 0.1257329583, 0.1042966843, -0.1754801124, -0.1352236271, 0.095468007, -0.1298619658, -0.1013113186, 0.0930079296, 0.1596424133, -0.1232716739, -0.0036806471, -0.0725574046, 0.1472809464, 0.252951026, 0.176208809, -0.023866713, 0.2613352239, -0.0677271187, -0.3586935699, 0.1090482324, 0.1701632291, -0.335277617, -0.1319352239, -0.0900105163, 0.3407942951, 0.4082669914, -0.2380339354, 0.3246032298, 0.05201561, 0.1756594032, -0.1937439591, 0.0732376948, 0.2521195114, -0.0690040216, 0.0098224655, 0.0256878641, 0.3500209749, -0.2590280771, 0.0103159398, -0.1288800538, 0.4146057069, 0.292672962, 0.0307553001, -0.6084948182, -0.261747092, 0.0162532236, 0.0605861768, 0.0955781266, -0.1752194613, -0.2543356121, 0.0159982108, 0.0334497355, 0.0887204707, 0.324641645, -0.2100155503, -0.2137271315, 0.4359297752, 0.2404474914, -0.0372974686, 0.4492694438, 0.2806439102, -0.0783172697, -0.0772555023, 0.0278903209, -0.0997190699, -0.0492744446, 0.1808351427, 0.0051850309, -0.0872964859, -0.0871735588, 0.0076963836, -0.219966799, -0.0928665698, -0.24161838, -0.002712222, -0.1748850942, 0.1118113101, -0.4491064548, -0.2293029726, 0.2030509561, -0.5212427378, -0.2160508186, -0.244570151, 0.1619917154, -0.0168206263, -0.0930668935, 0.5576911569, 0.0955446661, 0.4702448547, 0.203336671, -0.2983322442, 0.1565519869, -0.1312998235, -0.2992708087, 0.1054438278, 0.2421674132, 0.1363965124, 0.5393559337, -0.0316916518, 0.2466258109, -0.4845529199, -0.4732040465, 0.0545137264, 0.1022531912, 0.6900001168, 0.3237272501, 0.0621515922, -0.1387085766, 0.0440898761, 0.166334033, -0.0385057703, -0.0729078576, 0.0181347672, 0.0235922858, -0.2008431107, -0.0341474786, -0.3360389769, -0.29861027, -0.2950069606, -0.1769665033, 0.3486222625, -0.0829795226, -0.0927811339, 0.016124092, 0.0588540472, 0.3180842102, -0.0206322446, 0.0898871273, -0.3707608283, 0.5029925108, -0.3979716003, -0.191059351, -0.0333999246, -0.1291874498, 0.1801940501, 0.0777424127, -0.5511297584, -0.1410763115, 0.0654741675, 0.7284297347, -0.040219672, 0.2764093578, 0.3267889023, 0.1705253124, 0.0306237619, -0.1317825615, -0.1115470454, 0.0896469206, -0.1533233672, 0.0859257877, 0.1304989159, 0.3572067916, -0.2334501147, 0.6716111898, -0.1177755147, 0.1416478455, 0.2552238703, -0.1352650225, 0.568177402, -0.0814026147, -0.4260882437, 0.0525079891, 0.2062784731, 0.1803411543, -0.0191785507, -0.0855650306, 0.3179219961, -0.322348237, 0.0441976599, 0.2135264277, -0.2668296993, 0.1464914829, -0.3147507906, 0.2640205026, 0.1282544583, 0.1570350677, -0.2253717482, 0.0424727201, -0.0113321375, 0.0792673454, 0.1020341665, 0.1317211539, -0.115992099, -0.1196136624, -0.2230399251, 0.2191874832, 0.0261836387, 0.2404688448, -0.0165886357, -0.1655322909, -0.1095914394, -0.0739666, 0.190870747, -0.1988419294, -0.5103997588, 0.2807512879, -0.1326408833, -0.4292388856, -0.1374553591, -0.2507673204, -0.0326721519, 0.1619945318, 0.1883656234, -0.1779570878, 0.0560692102, 0.5997779369, 0.2336649746, -0.296526581, -0.2166063637, -0.3291006386, -0.2326500565, -0.3789511323, 0.0067297416, -0.2686217129, -0.0688360408, 0.1643387079, -0.1529519707, -0.299128741, -0.1642276645, 0.067179665, 0.4165729284, 0.1425938755, -0.3186392784, 0.3129088283, 0.0070208861, -0.1018705219, 0.2514201999, 0.1760959178, -0.1310741454, -0.3228205442, -0.0345928371, -0.2179274857, 0.3676495254, 0.1397598833, -0.1043306068, 0.2091929466, 0.0432852469, -0.0323243737, -0.2216507792, 0.1827275306, 0.4010591209, -0.1141119078, 0.0236350205, -0.0976990834, 0.1987619549, 0.0164039712, -0.0325538069, 0.199545294, 0.3527761698, 0.0226193145, -0.1812733561, 0.3035847545, 0.9165818691, 0.146410197, 0.1522711217, 0.6513634324, 0.2202797532, 0.3645025492, -0.0723540261, 0.0111945076, 0.073944293, -0.2818852961, -0.1023279428, -0.2274403274, 0.2842705846, -0.046265997, -0.3689509928, 0.239265129, -0.1001184136, 0.0879961625, -0.1598139405, 0.1687190533, 0.0670628622, -0.4395652413, 0.050080318, 0.1629914492, -0.1275121123, 0.1466643214, -0.1918031424, -0.1416983455, -0.1185758114, -0.0742485151, -0.0169550627, -0.214839071, 0.0096407142, 0.6444873214, 0.3040103912, -0.0524189286, -0.2355457693, -0.2406832129, 0.3440982997, 0.4000155628, -0.0433987938, 0.0717704147, 0.0799765065, -0.052272547, 0.1338747889, -0.0779965445, 0.3596158624, -0.3198270798, -0.2761414349, 0.3512181938, -0.0108635109, -0.4795058072, 0.0249256659, 0.0350893289, 0.5497729182, -0.0758449808, 0.2816483974, 0.2361395061, -0.0452798866, -0.174848035, 0.1008143425, 0.1524831206, 0.0688231662, 0.5765607953, -0.1402796507, 0.0636824891, -0.2521253824, 0.0644466877, 0.0705566853, 0.0657843575, 0.2553700805, -0.0473124459, -0.22989057, -0.3009047806, 0.6919536591, 0.1295275241, 0.1147435457, 0.1772862673, 0.1029451713, -0.0971715599, -0.0997434705, 0.0827250034, 0.1697405279, -0.3477233052, -0.3795701265, -0.1701888889, -0.3387385309, 0.3596401811, 0.0462441482, 0.0943148136, 0.2132460475, 0.4576582313, -0.3392366171, -0.0368496031, -0.3107004762, -0.2772778869, -0.1424090117, -0.0949314609, 0.419449538, 0.143327564, 0.0313636288, -0.0277590547, 0.0043627233, -0.2738635242, 0.0146462275, -0.1507783681, -0.1988757402, 0.1411728859, -0.1522776634, -0.0387219712, 0.1577774435, -0.1584586352, -0.3418131471, 0.021103695, 0.0838044509, -0.0991737619, -0.078386642, 0.1481593549, -0.3768814504, -0.1075623855, 0.0585789196, 0.3060428202, 0.06752377, 0.0824378654, -0.1397322714, 0.3283933699, 0.1840067506, -0.1539913714, -0.0616148822, 0.1856702417, -0.0143026989, -0.2305908054, 0.3218609989, -0.2231933922, 0.1363498569, 0.286355257, 0.0730778873, 0.4569113851, -0.2799159288, -0.0125399809, 0.2804988623, 0.1663576961, -0.5556248426, -0.3510444164, -0.1996938139, -0.0974197462, 0.1752709746, 0.3815092444, -0.0965417773, 0.1128130332, 0.2216551751, 0.1087281629, 0.0120345708, -0.3811805844, -0.0756239593, 0.2367773652, -0.0633790269, 0.0422404334, 0.0608780906, 0.2405409068, 0.0855388269, 0.4831393063, -0.4432850778, 0.1824384779, 0.1196445599, -0.1434121728, 0.1619127393, -0.1240108833, 0.1057589948, -0.1612861156, 0.0892238021, -0.019130595, 0.1979919374, 0.1469049752, -0.4309567809, -0.2020447701, -0.4439211786, 0.2156722695, -0.1603158116, 0.3049994409, -0.0784306526, -0.0179600194, -0.0538510829, -0.1292378157, 0.0294852927, -0.0659088343, 0.0290728007, 0.239675343, 0.0738698021, -0.6847850084, 0.0989059731, -0.0583171435, -0.1567256153, 0.0176200867, -0.0445557646, 0.2182492912, 0.069095239, -0.0323119871, 0.5816653371, 0.3231272399, 0.1773144752, -0.1014662087, -0.0358508788, -0.104354158, -0.1844967306, -0.1254680157, -0.015610015, -0.1229685023, -0.0956404433, 0.117406331, 0.100377731, -0.1477284878, -0.1200146973, 0.0243792366, -0.2031515688, -0.396792382, 0.0585452877, 0.0684087873, 0.0818889663, -0.0844427794, 0.158393696, -0.2363158017, -0.0121989325, 0.2911683917, 0.1408874542, -0.0676664189, -0.3222961128, 0.0683473647, -0.0719385222, 0.5890770555, 0.1038541049, 0.1241217107, -0.3152835071, -0.016938379, -0.7514752746, 0.0495634899, -0.2905494571, -0.5353868604, -0.0345060639, 0.060566254, 0.3074801862, 0.339359045, 0.3123241961, -0.142847389, 0.0105007393, -0.5719118118, -0.4096484482, -0.2090815455, 0.3304330707, -0.1382088512, 0.0191833824, -0.2897961438, 0.251285553, -0.0214850195, 0.0381324701, 0.0163832456, -0.1229569092, 0.2964733243, 0.6167086959, 0.1749622077, 0.2349285632, 0.3532494903, 0.1006743014, -0.0987982899, -0.16795367, -0.6530197859, -0.2931588888, 0.0334974639, 0.0916267708, 0.0560934544, -0.4078923166, -0.3256361485, -0.2885702252, 0.224704057, 0.073493287, 0.0933723897, -0.04052018, 0.1758154333, -0.159701243, 0.4515098631, -0.0110522648, 0.0488938056, -0.0648664609, 0.1677450836, -0.2993846834, -0.1541772634, 0.3593842387, 0.1835760176, -0.1068328694, -0.3008306921, 0.052088704, -0.0947299525, -0.0055517424, -0.1329536736, -0.0257482007, 0.1629253179, 0.0384281725, -0.1881630272, 0.3565500975, 0.2373676598, 0.0876737088, -0.0517364889, 0.2493637353, -0.1658073813, -0.1852554828, -0.0549970046, 0.0222256724 ]
https://github.com/huggingface/datasets/issues/3621
Consider adding `ipywidgets` as a dependency.
Hi! Sorry for the late reply. We import `tqdm` as `from tqdm.auto import tqdm`, which should be equal to `from tqdm.notebook import tqdm` in Jupyter.
When I install `datasets` in a fresh virtualenv with jupyterlab I always see this error. ``` ImportError: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html ``` It's a bit of a nuisance, because I need to run shut down the jupyterlab server in order to install the required dependency. Might it be an option to just include it as a dependency here?
25
Consider adding `ipywidgets` as a dependency. When I install `datasets` in a fresh virtualenv with jupyterlab I always see this error. ``` ImportError: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html ``` It's a bit of a nuisance, because I need to run shut down the jupyterlab server in order to install the required dependency. Might it be an option to just include it as a dependency here? Hi! Sorry for the late reply. We import `tqdm` as `from tqdm.auto import tqdm`, which should be equal to `from tqdm.notebook import tqdm` in Jupyter.
[ -0.1685499251, 0.5084441304, -0.0195758417, -0.2097097784, 0.1149033159, -0.1665549576, 0.5911034346, 0.0885964856, 0.1410358548, 0.094332315, -0.1721209437, 0.0448136367, -0.1704341769, 0.2847237885, 0.2028015554, 0.2025005966, 0.1609587222, 0.4420511127, -0.4774923325, -0.0616519414, -0.0198268183, 0.0675862432, -0.2546597719, 0.0595065467, -0.3997333646, 0.0885455087, 0.060617432, 0.1451113224, -0.1114649177, -0.4789671302, 0.4817397296, 0.3293170035, 0.2032409608, 0.28782323, -0.0001234447, 0.1922905296, 0.2596251369, -0.0520714633, -0.0932219997, 0.3647443056, -0.0823450238, -0.4693397582, -0.1016971692, -0.2261386216, 0.0594944879, -0.1099919081, -0.2557118535, -0.3363711238, 0.1219860315, 0.0253571253, 0.0898780674, 0.5811765194, 0.2138707042, 0.0789187476, 0.3351933062, 0.1285903901, -0.1139082164, 0.1712235212, 0.3407633901, -0.2107188106, 0.0859558582, 0.2119518369, -0.0273709167, 0.0556849949, 0.1549501568, 0.0684654042, 0.2630332112, -0.0927389562, -0.3842209578, 0.2570610046, 0.3445684314, -0.2310509086, -0.2545743585, 0.0407448635, 0.2522331178, -0.039347548, 0.2569670975, -0.4015807509, -0.1233981028, 0.327201277, -0.0561848134, -0.4476975799, -0.3259232938, 0.341730386, -0.181694895, 0.3318753242, 0.2103934437, 0.1498582214, -0.0527483374, -0.2122428417, 0.4515531957, 0.1603634953, 0.1194899604, -0.2323400378, -0.0090402244, -0.2996990383, 0.0513653718, 0.0165520106, -0.0393717848, 0.1774914414, -0.396540761, -0.2101786286, -0.0295278765, 0.1045372188, 0.0671352893, -0.2246438414, 0.0579535104, 0.2437632531, 0.6480408311, -0.2174523622, -0.0064564529, 0.1251287609, 0.2001014203, -0.1195758209, 0.2362050563, -0.243898809, 0.5231433511, -0.217919454, -0.297278136, -0.0013592328, -0.3092192411, 0.0915078223, 0.1977706105, -0.0522271469, -0.0317384154, 0.1582841575, 0.2382338494, 0.1970879436, -0.2010263354, -0.2705860138, -0.0113627007, 0.1114518568, 0.3091166317, 0.1525522172, 0.1853637099, 0.2360280156, 0.2103490978, -0.0696177408, 0.6064561009, 0.4185257256, 0.319657743, 0.0612756312, -0.1102310345, 0.5214223266, -0.2120833397, -0.0693127513, 0.077970162, -0.3890131116, -0.0696930811, 0.1870780438, -0.0529215597, -0.2552993894, 0.1179898381, 0.0280969143, -0.3109799623, -0.2678516507, 0.0074770944, -0.26824826, -0.2972454727, -0.4722961485, -0.1850694716, -0.2891260684, 0.4349463582, -0.0765817389, 0.1708248109, 0.3357799053, -0.5350364447, -0.3182127774, -0.1197819412, -0.1703458577, -0.020237999, 0.0612188838, -0.1838837266, 0.3589404225, 0.0496852547, -0.1337318867, 0.2330089808, -0.6073666215, -0.6372493505, -0.0384175144, 0.0309044421, 0.0821938515, -0.0322200321, 0.5464901924, 0.2199384868, 0.1073564664, -0.2905368805, 0.5305739641, -0.1707076281, -0.3148156106, 0.0002335064, -0.1572040468, 0.052584637, 0.3821460903, 0.3017148077, -0.0155982412, 0.0419661663, -0.0272891503, -0.1193350255, 0.0279186405, -0.0456452407, 0.3243474662, 0.2819454372, 0.1815121323, -0.0668634772, -0.1824533194, 0.0377735086, 0.085026592, -0.1041101813, 0.1425855011, 0.0677598566, -0.1662840396, -0.1643844396, 0.0914454088, -0.1221529022, -0.0299370456, -0.0123716881, 0.1472648829, -0.0960381478, -0.0291694645, -0.0489738844, 0.258515358, 0.1359170675, 0.1807265431, -0.0606972016, 0.3430263698, -0.0771039724, -0.2933772802, 0.1164943576, 0.133145228, -0.3250314891, -0.0987028629, -0.0574168488, 0.2371307015, 0.373601675, -0.2221817225, 0.2751278281, 0.0536927991, 0.172216922, -0.2344395667, 0.1207376197, 0.2833957374, -0.0861430466, -0.0340740941, 0.1598803401, 0.3205684125, -0.1950030178, 0.0895872861, -0.2047547847, 0.4380504787, 0.2292642742, 0.068230398, -0.7125287652, -0.2089516073, -0.0303564128, -0.0262818653, 0.0787988827, -0.1719075739, -0.171835959, -0.0435800441, -0.059673965, 0.1309543103, 0.2944911122, -0.1481171697, -0.2126213759, 0.4972479939, 0.2546367645, -0.0878403112, 0.5374804139, 0.2056118399, -0.2233437598, -0.1307636499, 0.1174083203, -0.0253010597, -0.0672526881, 0.1921797395, 0.1046352312, -0.1248905659, -0.116249159, -0.0341325924, -0.1350661069, -0.0997405127, -0.2580316067, -0.0173013527, -0.2075004578, 0.0964481905, -0.4322736859, -0.2243961394, 0.1339693516, -0.646040976, -0.179308176, -0.2263543308, 0.0625812709, 0.0232423116, 0.0181030873, 0.6019338965, 0.0818998143, 0.4491600096, 0.1590188295, -0.3954349458, 0.1814785749, -0.0910185352, -0.2453003824, 0.0259520486, 0.1940071136, 0.0941620693, 0.4677792788, -0.0489939302, 0.2114512473, -0.4771714807, -0.4866347909, -0.0355444215, 0.0848359764, 0.6208822131, 0.3454455137, 0.1769774407, -0.0360727757, -0.0165868867, 0.1064067483, -0.0493479706, -0.033052545, -0.0774542689, -0.0204654932, -0.1203219444, 0.0899633393, -0.2571057081, -0.4227819145, -0.193409726, -0.1419570297, 0.3893733621, -0.1374849677, -0.1464570761, 0.0899869353, 0.0038529492, 0.3946998715, -0.0849066451, 0.178384766, -0.3254539967, 0.5075465441, -0.2760146856, -0.0805082023, -0.0292310547, -0.1853515059, 0.1358511299, 0.0001400283, -0.5549380779, -0.0791400298, 0.1207561716, 0.749076128, -0.0230760034, 0.2369900644, 0.395862788, 0.2010243684, 0.1365620494, -0.1475387216, -0.1586484015, 0.0217810366, -0.0687813833, 0.1309902668, 0.2934626937, 0.4118883014, -0.2914856672, 0.6725059152, -0.0392448008, 0.1736200005, 0.2743341923, -0.0171203315, 0.4721430838, -0.0264172349, -0.5013679266, -0.0639458299, 0.1832319051, 0.1518101394, -0.1094290838, -0.0383347087, 0.286746949, -0.3371963799, -0.0233858954, 0.2547039688, -0.161843583, 0.145921573, -0.2507455349, 0.3412098289, 0.143334806, 0.0112752849, -0.2299443781, 0.0340564027, 0.0000163237, 0.1365393698, 0.2313081175, 0.1733676493, 0.0317249261, -0.1702821553, -0.1432808638, 0.198576808, -0.0111280493, 0.2284897864, 0.0325850658, -0.0977725685, -0.1442206502, -0.0409634486, 0.1934296042, -0.1665181071, -0.5342385173, 0.2795217335, -0.0905474201, -0.4034434557, -0.2057549655, -0.206244722, 0.0123335402, 0.2234990895, 0.1072371975, -0.1891506016, 0.1036554053, 0.7545127273, 0.2977113724, -0.2720912993, -0.3441777527, -0.3506291211, -0.1844653338, -0.3513562381, 0.0137932887, -0.2496616393, -0.0753962025, 0.1832437515, -0.0620244518, -0.2962540388, -0.1333737671, 0.0701461062, 0.2586212456, 0.0334528834, -0.2906961143, 0.2708657086, -0.0420170724, -0.175739333, 0.2554745078, 0.1843342632, -0.1396366954, -0.4244829714, -0.1068039834, -0.1501173973, 0.4051846862, 0.151627779, -0.1183577776, 0.246731773, 0.0884251222, -0.1267924756, -0.2421099544, 0.1013095453, 0.4669402242, -0.1495366395, 0.0084550697, -0.1484889686, 0.2502954602, 0.1099774614, -0.0108224927, 0.1731567532, 0.509989202, 0.0069253356, -0.2497157902, 0.172115311, 0.9860291481, 0.2021320164, 0.1012566388, 0.6312329769, 0.2421996891, 0.4399639666, -0.0410732441, 0.0382217169, 0.1015071198, -0.3108620942, -0.1210532933, -0.3194668293, 0.3260023892, -0.0292322207, -0.3862274289, 0.2915399075, -0.2015079409, 0.1187703013, -0.086122252, 0.1801610291, 0.1531312317, -0.3567917049, 0.0667787939, 0.0564701036, -0.1334192604, 0.2824151516, -0.1537331641, -0.1496568322, -0.1239711195, -0.1175237149, -0.1321086138, -0.2952569127, 0.1077298597, 0.6304215789, 0.2160435319, -0.0521408282, -0.1711791456, -0.1801042557, 0.3217012584, 0.3328557909, -0.0557005666, 0.0337948799, 0.0433753431, -0.1677127779, 0.1195243672, -0.0467090122, 0.2857931852, -0.2680199444, -0.3502467573, 0.2903219759, -0.0631612986, -0.5763242841, -0.04018002, 0.0054436489, 0.6093133092, -0.1147208363, 0.1362341046, 0.2575176954, -0.0112720104, -0.1725463122, 0.0490344353, 0.1796729416, 0.0496361256, 0.547899127, -0.2494122237, 0.0855585635, -0.2666151524, 0.0845709816, 0.1617695242, 0.0731370226, 0.2541917861, -0.0685324073, -0.2429372221, -0.1704263687, 0.7064754963, 0.1307491958, 0.0696783438, 0.0936795399, 0.1933250129, -0.050484281, -0.3057267666, -0.044935815, 0.1739065647, -0.2521310747, -0.3225387335, -0.2363252491, -0.3346688151, 0.3776862621, 0.0255259927, 0.0326748975, 0.2187380493, 0.3947833478, -0.3410939574, 0.0250804033, -0.1907934844, -0.190680474, -0.1528085321, -0.091907002, 0.474942565, 0.2236132324, -0.0237205047, -0.0739719272, -0.0585752726, -0.2973326445, 0.1639134288, -0.0376817621, -0.1314024478, 0.2136920542, -0.0793725923, 0.0377715006, 0.2203051895, -0.2295611799, -0.2492347062, 0.1346559823, 0.0286033899, -0.0756920129, -0.0901331753, 0.0785143822, -0.3576304317, -0.0409358777, 0.0476762727, 0.3229069114, 0.0875242501, 0.0886468515, -0.134290278, 0.3844670355, 0.3167770803, -0.100774847, -0.1367007792, 0.1822218597, -0.0436944366, -0.1785608232, 0.3083625138, -0.2704961896, 0.1453994513, 0.3116588891, -0.0167521816, 0.472751081, -0.269985199, 0.118924886, 0.2550489902, 0.0620981157, -0.5928706527, -0.3615384996, -0.1092298403, -0.09841647, 0.0649753809, 0.4429134429, -0.105799064, 0.1230851859, 0.3597388566, 0.1536883116, 0.0204966236, -0.276838541, 0.0207684468, 0.2125843167, 0.0144351926, 0.0425375104, 0.0667207614, 0.2632791698, 0.0216359552, 0.3370196223, -0.5002425313, 0.1349917352, 0.0111718085, -0.2503637373, 0.1594863087, -0.0537821092, 0.0407046564, -0.0967398435, 0.1323598176, -0.0940037519, 0.2178461552, 0.1878986508, -0.411696732, -0.1911844164, -0.3623691797, 0.1515446007, -0.1291655004, 0.2915205657, -0.0496453308, 0.0148204695, -0.0119476812, -0.1711021215, 0.1076929271, -0.1714030504, -0.0003742664, 0.2250552922, -0.0020430337, -0.7129439712, 0.0602760762, -0.0527020395, -0.1636055112, 0.0625747219, -0.0868465826, 0.1419718415, 0.1098985523, 0.0239555947, 0.5652329326, 0.335459739, 0.1701275259, -0.0176655706, 0.0088166129, -0.1347075403, -0.2399658859, -0.0321661197, -0.0889422372, -0.1513363123, -0.0958977938, -0.0014420432, 0.0309878439, -0.0631640851, -0.1191158295, 0.0785846263, -0.1361194998, -0.4833416641, 0.1458082348, -0.0203676596, 0.0521612652, -0.0549348705, 0.2131907791, -0.1659912169, 0.0567158908, 0.2167802453, 0.1895713061, -0.1604510099, -0.2532886267, 0.0128571223, -0.130268842, 0.5226836801, 0.0846382678, 0.143736437, -0.3597839475, -0.0437753983, -0.6404470801, 0.0193524268, -0.2968477309, -0.5260398984, 0.0291588176, -0.0497353785, 0.2863173783, 0.3738186657, 0.2305338085, -0.1569149196, 0.0009002971, -0.5597596765, -0.3680776656, -0.2450611144, 0.4946397841, -0.0971700624, 0.0117398305, -0.1793978512, 0.2295861542, -0.0036278302, -0.0540908761, -0.0417433754, -0.1683806926, 0.2509756088, 0.6405128837, 0.163656801, 0.2328312546, 0.4231649041, 0.1493365616, -0.1038389131, -0.1499179751, -0.7086790204, -0.3522152007, 0.1372445524, 0.0362023599, 0.0783353969, -0.4814357162, -0.4145101011, -0.2714392245, 0.2554022372, 0.0208317768, 0.0600731559, -0.0376966335, 0.1545299143, -0.2238985747, 0.4541107118, -0.0344308652, -0.0249545258, -0.0693080351, 0.1401952952, -0.3438522518, -0.0877209082, 0.3414148986, 0.2053406984, -0.0910219699, -0.3163193762, 0.0184180979, -0.1632163674, 0.0196813364, -0.1058089212, -0.0196324643, 0.1945782006, 0.0641306415, -0.131127283, 0.3763854504, 0.2707925141, 0.1747806072, 0.01072702, 0.2793097198, -0.2332927585, -0.1216990799, -0.0870253295, -0.0492278151 ]
https://github.com/huggingface/datasets/issues/3621
Consider adding `ipywidgets` as a dependency.
Any objection if I make a PR that checks if the widgets library is installed beforehand?
When I install `datasets` in a fresh virtualenv with jupyterlab I always see this error. ``` ImportError: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html ``` It's a bit of a nuisance, because I need to run shut down the jupyterlab server in order to install the required dependency. Might it be an option to just include it as a dependency here?
16
Consider adding `ipywidgets` as a dependency. When I install `datasets` in a fresh virtualenv with jupyterlab I always see this error. ``` ImportError: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html ``` It's a bit of a nuisance, because I need to run shut down the jupyterlab server in order to install the required dependency. Might it be an option to just include it as a dependency here? Any objection if I make a PR that checks if the widgets library is installed beforehand?
[ -0.1698446423, 0.625315249, -0.0337269083, -0.1724758744, 0.0254313052, -0.0749921128, 0.5609041452, 0.0913157389, 0.3140844107, 0.1015946716, 0.078153044, -0.0286185611, -0.151409179, 0.2816159725, 0.2125277072, 0.2335123122, 0.2751716375, 0.5633582473, -0.3676190972, -0.0988632888, -0.1116574034, -0.0347695686, -0.1519543231, 0.0548068956, -0.3511426151, 0.0238981806, 0.063473314, 0.1016884297, -0.1363856643, -0.4607232809, 0.5777139664, 0.3291802406, 0.1829305887, 0.0741042793, -0.0001255787, 0.150086835, 0.2985602021, -0.0007330202, -0.1851272732, 0.3132073283, -0.1297179461, -0.4040049613, -0.078759633, -0.2174449861, 0.0743217841, -0.1031623855, -0.227456063, -0.3523018062, 0.0122311972, -0.0648628548, 0.0581170134, 0.4925003052, 0.1856989861, 0.195247829, 0.5403257608, 0.2280287743, -0.116582498, 0.0856621936, 0.2041206956, -0.2684324682, 0.1170275137, 0.2190799266, 0.1306944937, 0.0630074069, 0.3097292185, 0.0209998358, 0.2759647071, 0.0660602525, -0.4033084512, 0.2106676102, 0.3250308037, -0.149643451, -0.3562248349, -0.0704769269, 0.2550876439, -0.0583484918, 0.3422492743, -0.3430244923, -0.0263726451, 0.2894649804, 0.1078766659, -0.5781263709, -0.2664657831, 0.3693402708, -0.0700974688, 0.479593724, 0.3161058426, 0.1985241324, -0.0967453271, -0.1183208674, 0.3611531556, 0.0562214516, 0.033883024, -0.1796239763, 0.2060661912, -0.2017771006, 0.0711062402, 0.2309263498, -0.0618220121, 0.1645114869, -0.4302867949, -0.2952088118, -0.0416546725, 0.049684044, 0.1817879528, -0.2933804095, -0.0076889461, 0.3316506445, 0.6616976857, -0.2163467109, 0.0969370082, 0.0619815551, 0.2459982485, 0.0888934731, 0.1565704495, -0.270108372, 0.5052210093, -0.342394948, -0.2367963642, -0.0201020334, -0.3855846524, -0.0303695388, 0.2329205424, -0.1495795995, -0.0513508767, 0.2823872566, 0.2630007267, 0.1474101692, -0.0590525679, 0.0385923609, -0.0033857508, 0.157097131, 0.1823113859, 0.2168341726, 0.2251619548, 0.1363554001, 0.2969411612, -0.0861795619, 0.5005746484, 0.4187028408, 0.3313660622, 0.0448664241, -0.1637663394, 0.5464609265, -0.2956809402, -0.0783808976, -0.0063525829, -0.389310658, -0.0754318535, 0.1939586252, -0.010092482, -0.2734136581, 0.0666243434, 0.0123202587, -0.446148783, -0.1366166919, 0.0074668322, -0.3248822987, -0.1796106249, -0.5992831588, -0.1514533311, -0.2283676863, 0.3973808289, -0.0664260015, 0.1021312252, 0.3476396203, -0.5715788603, -0.3402830064, -0.0733756572, -0.2480948269, -0.1069970801, -0.0280984174, -0.2908346355, 0.2364387065, 0.0351664051, -0.1487948298, 0.1314180791, -0.5397214293, -0.5965548754, -0.2122623175, 0.0612489693, 0.1992186606, -0.0264245998, 0.6303254962, 0.016965434, -0.0413509794, -0.4201819003, 0.5909955502, -0.1248452514, -0.3550852239, -0.0117165968, -0.2473416924, 0.0927200466, 0.3950351179, 0.3215249777, 0.0194064956, -0.0159380846, 0.1638849229, -0.0895748585, -0.0454514883, -0.0500957184, 0.1150233597, 0.3745536506, 0.2908500433, 0.0085012885, -0.1669326425, 0.1004476696, 0.1137758642, -0.1868172139, 0.0800261721, 0.0953590423, -0.2668142915, 0.0079601277, 0.0991380736, -0.0951653719, 0.0167218577, -0.0533154793, 0.2961574793, -0.0656139776, -0.039934665, -0.1718148291, 0.1526815742, -0.0902495384, 0.1530534774, -0.060744971, 0.3729675412, -0.0645933673, -0.2135490179, 0.0417710692, 0.0943675265, -0.3669327199, -0.0591214411, -0.0483369268, 0.1481358856, 0.3277968764, -0.1730038226, 0.197395429, 0.0492535494, 0.1949959248, -0.0542363748, 0.1898226887, 0.2790266871, -0.0216262061, -0.0084809111, 0.0441549122, 0.3051654398, -0.0862034634, 0.1973567903, -0.1512652189, 0.2281394154, 0.1152426675, 0.1136171967, -0.6816262007, -0.1844782382, 0.0491013229, -0.0551537909, 0.1662991941, -0.1312476546, -0.1032832414, -0.1892941296, 0.0557083935, 0.1774374843, 0.2608674169, -0.0827177688, -0.109037526, 0.3614248633, 0.3483642042, -0.149874717, 0.5598440766, 0.1710160375, -0.3067480624, -0.2627649009, 0.1594250649, -0.028673714, -0.1001954973, 0.1697970927, 0.2052289397, -0.1520929337, -0.1030024365, -0.0541318506, -0.1600587517, -0.0652011335, -0.3704784214, -0.0605895631, -0.1716333181, 0.041657526, -0.2319146395, -0.1657488346, 0.2021164298, -0.5451376438, -0.1748807132, -0.1765934527, 0.109301053, 0.0422497652, -0.0613355078, 0.4978560209, 0.0863558799, 0.4895183444, 0.0004227219, -0.4752270281, 0.1618614346, -0.0845330432, -0.1753152162, 0.0304617491, 0.2084639221, 0.1494946778, 0.453114897, 0.0626230463, 0.1433313191, -0.4372127652, -0.5477263927, -0.0479021259, 0.0771348327, 0.442042619, 0.359439373, 0.1661394089, 0.0904603601, -0.0872832164, 0.0847366154, -0.0206915271, 0.0135191306, -0.2606226802, -0.0162117165, -0.0813419148, -0.0012295407, -0.1995191574, -0.4544081688, -0.12547414, -0.0532971881, 0.5242176652, -0.1751288027, -0.2322380841, 0.1581646204, -0.0572875962, 0.4474241138, -0.1707732528, 0.1811968982, -0.2363151014, 0.3916350901, -0.175019443, 0.0277962629, -0.064926967, -0.2297561467, 0.0183797404, 0.1602412015, -0.6476016641, -0.0370265841, 0.0292273685, 0.6905682087, -0.0240084883, 0.2126169801, 0.4880788326, 0.2428169847, 0.1215013191, -0.1361618638, -0.1325758398, 0.146181047, -0.105239138, 0.1317663789, 0.3715669513, 0.3233340979, -0.4095645547, 0.7123072743, -0.1857303977, 0.0875150636, 0.332216382, 0.017852962, 0.4932099581, 0.0050758305, -0.352851063, -0.0024240694, 0.2259403318, 0.0705669075, -0.165266335, 0.0168320276, 0.0392405465, -0.4162041545, -0.0597007461, 0.2956805527, -0.1171411201, 0.1764709651, -0.1182958856, 0.3546711504, 0.1721252352, 0.0776548311, -0.195757404, -0.0243427176, -0.0182250477, 0.0889892057, 0.3994244337, 0.130946368, 0.2096125036, -0.2447420508, -0.1085154563, 0.1011088714, 0.0525522232, 0.0800258219, 0.0803707615, -0.1192904785, -0.2069479674, -0.1518839598, 0.107853733, -0.2416702956, -0.4131391048, 0.2072212249, 0.0552415997, -0.2389747798, -0.2146365792, -0.2213925421, 0.0278138295, 0.0200150739, 0.1100305989, -0.2335358858, 0.1516220421, 0.74211061, 0.3377749026, -0.1874630153, -0.3445843756, -0.4444830418, -0.1059928015, -0.474775821, 0.0758472532, -0.3318804502, -0.1402132809, 0.1536559463, -0.149657324, -0.3386603594, -0.0445051529, 0.0674722493, 0.2308041602, -0.013297312, -0.2146250159, 0.2184697241, -0.1208430082, -0.1212488115, 0.3289286494, 0.1578111947, -0.1006187946, -0.2283895314, -0.2022207081, -0.1964395642, 0.3521868587, 0.2323209941, -0.2070180029, 0.294131875, 0.0554899313, -0.146605894, -0.2875320911, 0.0242986083, 0.4538917542, -0.1156954914, -0.0742899179, -0.2592720091, 0.361423403, 0.1789598167, -0.0511913821, 0.1983731836, 0.636408329, -0.0695779845, -0.2148750722, 0.2246273756, 0.9812102318, 0.245985955, 0.0986151099, 0.6625816226, 0.2572605014, 0.6542534828, -0.0872711241, 0.0020877793, 0.1714906991, -0.2308276445, -0.1721000969, -0.3455467224, 0.3459757864, -0.0516323894, -0.3056166172, 0.2660928369, -0.2484447807, 0.1302940696, -0.12404982, 0.3501187265, 0.0490115099, -0.2995162606, 0.0497886054, 0.0137319341, -0.1574659646, 0.3786260784, -0.155577898, -0.093947798, -0.1328692138, -0.2566560805, -0.1945551783, -0.2636607289, 0.2593675256, 0.4960334003, -0.1314200759, -0.0618116185, -0.0649767742, -0.2291570902, 0.2501525581, 0.4068253636, -0.0140547864, 0.070898965, -0.1909793466, -0.2530653477, 0.0257880371, 0.0905342028, 0.1048109829, -0.2439231873, -0.4038676322, 0.1878806055, -0.2124065906, -0.5577991605, -0.0743415877, 0.0142296255, 0.6436876059, -0.079755649, 0.0743799657, 0.3754424155, -0.1186422482, -0.1451185048, 0.0464267656, 0.0884114876, 0.1574777961, 0.442356348, -0.206354171, 0.1045377031, -0.3709488511, 0.0424284376, 0.2324427366, 0.0449416116, 0.2806131542, -0.132012859, -0.2289233953, -0.1077846736, 0.469807744, 0.1676275134, 0.0226281434, -0.0266371258, 0.3981691599, -0.1180598438, -0.4282175004, -0.1298234165, 0.1572582871, 0.0088002849, -0.2370427698, -0.2826344073, -0.2644365728, 0.3760640025, 0.0966126025, 0.0976074487, 0.1106358692, 0.1839623451, -0.3553831875, 0.0391668342, -0.1504219174, -0.2043085992, -0.1972225308, -0.0266116224, 0.3808562756, 0.3668090403, -0.0876279175, -0.1303670108, -0.0506733507, -0.3030368686, 0.1779792756, -0.0081541874, -0.0924551636, 0.2324049026, -0.0049548973, 0.0761664212, 0.2762087882, -0.2571359277, -0.1533287764, 0.1130279452, 0.0449748933, -0.1606508493, -0.1744728833, -0.045195438, -0.2959689796, 0.0712068528, -0.0203128122, 0.4021688402, 0.0384171978, 0.0250313953, -0.1645774543, 0.3892672062, 0.4197897911, -0.0564926974, -0.0420580097, 0.1312847883, -0.0181493461, 0.0274341963, 0.1400032341, -0.2006919831, 0.1402970105, 0.3034564257, 0.0098856296, 0.5319483876, -0.1190111563, 0.2571206391, 0.1901126504, 0.0576406308, -0.6236214638, -0.2695873678, -0.0291970931, -0.1521241367, 0.0555981435, 0.4714617431, -0.0668979064, 0.1359640062, 0.3304924369, 0.0837342963, 0.0561272129, -0.2459243238, -0.0412005447, 0.2708378136, 0.0221804101, 0.1114586741, -0.1009974405, 0.2919502854, 0.0390503444, 0.3648949862, -0.5475281477, 0.1531277001, 0.1026442945, -0.1888717264, 0.0591182671, -0.0485287569, 0.0913814008, 0.1974452883, 0.2354171872, -0.0635457635, 0.2920728326, 0.1989418268, -0.348572284, -0.2060074508, -0.3141123056, 0.0835218504, -0.0891188085, 0.3415826857, -0.1084985957, 0.0075299791, -0.0599007159, -0.0680994615, 0.1121237054, -0.2042075992, -0.0394012108, 0.1710278243, 0.0343445987, -0.6431214809, 0.2231186181, -0.1604685038, -0.0439246781, 0.0839098319, -0.1364096105, 0.186336413, 0.1345047206, 0.0385526344, 0.4791341424, 0.2151227444, 0.2361454517, 0.1551062167, 0.0798140094, -0.1045802608, -0.1904732734, -0.0252696332, -0.0769892856, -0.0862131715, -0.0116254706, -0.0589211136, 0.0313601941, -0.087678425, -0.0680358559, 0.0028744584, -0.0846756995, -0.4976559579, 0.0961843431, -0.0925732329, 0.0042391317, -0.0617268085, 0.2251203805, -0.0543782637, 0.180526793, 0.1342088431, 0.3105609417, -0.2136860639, -0.1610287577, -0.0028763835, -0.1662345529, 0.4186907411, 0.0577555373, 0.28969872, -0.3157942891, -0.0876554772, -0.5531746149, -0.040891245, -0.4697813988, -0.4682866931, -0.0414240398, -0.2110178024, 0.2669853866, 0.3736379147, 0.1580505818, -0.1386443824, 0.0620013028, -0.6161752939, -0.2592096329, -0.2632523179, 0.533197701, -0.14987728, 0.0551405065, -0.1978690475, 0.09793441, -0.0288627893, -0.1062127948, -0.1203531027, -0.0964466184, 0.1328119338, 0.4600465894, 0.2185456455, 0.16983217, 0.4704829752, 0.1224857122, -0.1933155358, -0.1036085114, -0.7319121957, -0.3937548697, 0.1418690383, -0.1043223292, 0.1453542709, -0.4900100529, -0.3306347728, -0.2553122342, 0.2406625599, 0.023671573, 0.3051875234, -0.049764242, 0.1055655256, -0.250769645, 0.3758791089, -0.0470539443, -0.098311834, -0.070220083, -0.0414655991, -0.3566848934, 0.0330034457, 0.421934098, 0.1744207889, 0.0080536976, -0.2335597277, -0.018905513, -0.155217275, -0.021863874, -0.1813714057, -0.0280206576, 0.1774685383, 0.086707443, -0.1690363586, 0.2006234825, 0.2773382664, 0.1232686341, -0.0197728034, 0.2431634963, -0.3196751177, -0.1846542954, -0.0113941506, -0.1501012444 ]
https://github.com/huggingface/datasets/issues/3618
TIMIT Dataset not working with GPU
Hi ! I think you should avoid calling `timit_train['audio']`. Indeed by doing so you're **loading all the audio column in memory**. This is problematic in your case because the TIMIT dataset is huge. If you want to access the audio data of some samples, you should do this instead `timit_train[:10]["train"]` for example. Other than that, I'm not sure why you get a `TypeError: string indices must be integers`, do you have a code snippet that reproduces the issue that you can share here ?
## Describe the bug I am working trying to use the TIMIT dataset in order to fine-tune Wav2Vec2 model and I am unable to load the "audio" column from the dataset when working with a GPU. I am working on Amazon Sagemaker Studio, on the Python 3 (PyTorch 1.8 Python 3.6 GPU Optimized) environment, with a single ml.g4dn.xlarge instance (corresponds to a Tesla T4 GPU). I don't know if the issue is GPU related or Python environment related because everything works when I work off of the CPU Optimized environment with a non-GPU instance. My code also works on Google Colab with a GPU instance. This issue is blocking because I cannot get the 'audio' column in any way due to this error, which means that I can't pass it to any functions. I later use the dataset.map function and that is where I originally noticed this error. ## Steps to reproduce the bug ```python from datasets import load_dataset timit_train = load_dataset('timit_asr', split='train') print(timit_train['audio']) ``` ## Expected results Expected to see inside the 'audio' column, which contains an 'array' nested field with the array data I actually need. ## Actual results Traceback ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-ceeac555e921> in <module> ----> 1 timit_train['audio'] /opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py in __getitem__(self, key) 1917 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).""" 1918 return self._getitem( -> 1919 key, 1920 ) 1921 /opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py in _getitem(self, key, decoded, **kwargs) 1902 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None) 1903 formatted_output = format_table( -> 1904 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns 1905 ) 1906 return formatted_output /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_table(table, key, formatter, format_columns, output_all_columns) 529 python_formatter = PythonFormatter(features=None) 530 if format_columns is None: --> 531 return formatter(pa_table, query_type=query_type) 532 elif query_type == "column": 533 if key in format_columns: /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in __call__(self, pa_table, query_type) 280 return self.format_row(pa_table) 281 elif query_type == "column": --> 282 return self.format_column(pa_table) 283 elif query_type == "batch": 284 return self.format_batch(pa_table) /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_column(self, pa_table) 315 column = self.python_arrow_extractor().extract_column(pa_table) 316 if self.decoded: --> 317 column = self.python_features_decoder.decode_column(column, pa_table.column_names[0]) 318 return column 319 /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in decode_column(self, column, column_name) 221 222 def decode_column(self, column: list, column_name: str) -> list: --> 223 return self.features.decode_column(column, column_name) if self.features else column 224 225 def decode_batch(self, batch: dict) -> dict: /opt/conda/lib/python3.6/site-packages/datasets/features/features.py in decode_column(self, column, column_name) 1337 return ( 1338 [self[column_name].decode_example(value) if value is not None else None for value in column] -> 1339 if self._column_requires_decoding[column_name] 1340 else column 1341 ) /opt/conda/lib/python3.6/site-packages/datasets/features/features.py in <listcomp>(.0) 1336 """ 1337 return ( -> 1338 [self[column_name].decode_example(value) if value is not None else None for value in column] 1339 if self._column_requires_decoding[column_name] 1340 else column /opt/conda/lib/python3.6/site-packages/datasets/features/audio.py in decode_example(self, value) 85 dict 86 """ ---> 87 path, file = (value["path"], BytesIO(value["bytes"])) if value["bytes"] is not None else (value["path"], None) 88 if path is None and file is None: 89 raise ValueError(f"An audio sample should have one of 'path' or 'bytes' but both are None in {value}.") TypeError: string indices must be integers ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.0 - Platform: Linux-4.14.256-197.484.amzn2.x86_64-x86_64-with-debian-buster-sid - Python version: 3.6.13 - PyArrow version: 6.0.1
84
TIMIT Dataset not working with GPU ## Describe the bug I am working trying to use the TIMIT dataset in order to fine-tune Wav2Vec2 model and I am unable to load the "audio" column from the dataset when working with a GPU. I am working on Amazon Sagemaker Studio, on the Python 3 (PyTorch 1.8 Python 3.6 GPU Optimized) environment, with a single ml.g4dn.xlarge instance (corresponds to a Tesla T4 GPU). I don't know if the issue is GPU related or Python environment related because everything works when I work off of the CPU Optimized environment with a non-GPU instance. My code also works on Google Colab with a GPU instance. This issue is blocking because I cannot get the 'audio' column in any way due to this error, which means that I can't pass it to any functions. I later use the dataset.map function and that is where I originally noticed this error. ## Steps to reproduce the bug ```python from datasets import load_dataset timit_train = load_dataset('timit_asr', split='train') print(timit_train['audio']) ``` ## Expected results Expected to see inside the 'audio' column, which contains an 'array' nested field with the array data I actually need. ## Actual results Traceback ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-ceeac555e921> in <module> ----> 1 timit_train['audio'] /opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py in __getitem__(self, key) 1917 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).""" 1918 return self._getitem( -> 1919 key, 1920 ) 1921 /opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py in _getitem(self, key, decoded, **kwargs) 1902 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None) 1903 formatted_output = format_table( -> 1904 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns 1905 ) 1906 return formatted_output /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_table(table, key, formatter, format_columns, output_all_columns) 529 python_formatter = PythonFormatter(features=None) 530 if format_columns is None: --> 531 return formatter(pa_table, query_type=query_type) 532 elif query_type == "column": 533 if key in format_columns: /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in __call__(self, pa_table, query_type) 280 return self.format_row(pa_table) 281 elif query_type == "column": --> 282 return self.format_column(pa_table) 283 elif query_type == "batch": 284 return self.format_batch(pa_table) /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_column(self, pa_table) 315 column = self.python_arrow_extractor().extract_column(pa_table) 316 if self.decoded: --> 317 column = self.python_features_decoder.decode_column(column, pa_table.column_names[0]) 318 return column 319 /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in decode_column(self, column, column_name) 221 222 def decode_column(self, column: list, column_name: str) -> list: --> 223 return self.features.decode_column(column, column_name) if self.features else column 224 225 def decode_batch(self, batch: dict) -> dict: /opt/conda/lib/python3.6/site-packages/datasets/features/features.py in decode_column(self, column, column_name) 1337 return ( 1338 [self[column_name].decode_example(value) if value is not None else None for value in column] -> 1339 if self._column_requires_decoding[column_name] 1340 else column 1341 ) /opt/conda/lib/python3.6/site-packages/datasets/features/features.py in <listcomp>(.0) 1336 """ 1337 return ( -> 1338 [self[column_name].decode_example(value) if value is not None else None for value in column] 1339 if self._column_requires_decoding[column_name] 1340 else column /opt/conda/lib/python3.6/site-packages/datasets/features/audio.py in decode_example(self, value) 85 dict 86 """ ---> 87 path, file = (value["path"], BytesIO(value["bytes"])) if value["bytes"] is not None else (value["path"], None) 88 if path is None and file is None: 89 raise ValueError(f"An audio sample should have one of 'path' or 'bytes' but both are None in {value}.") TypeError: string indices must be integers ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.0 - Platform: Linux-4.14.256-197.484.amzn2.x86_64-x86_64-with-debian-buster-sid - Python version: 3.6.13 - PyArrow version: 6.0.1 Hi ! I think you should avoid calling `timit_train['audio']`. Indeed by doing so you're **loading all the audio column in memory**. This is problematic in your case because the TIMIT dataset is huge. If you want to access the audio data of some samples, you should do this instead `timit_train[:10]["train"]` for example. Other than that, I'm not sure why you get a `TypeError: string indices must be integers`, do you have a code snippet that reproduces the issue that you can share here ?
[ -0.1453542113, -0.1040818691, -0.00356368, 0.4680360258, 0.4012950063, -0.0252673663, 0.4242496789, 0.2931960821, -0.1032611355, 0.0186554566, -0.0983693153, 0.5495102406, -0.0063605495, 0.2732047737, 0.1169297248, -0.2103835642, -0.1081266552, -0.1027195901, -0.19415012, 0.2106096298, -0.2738254964, 0.1691141576, -0.296458602, 0.4507960975, -0.0143753365, 0.0297153406, 0.4842517674, 0.1759412438, 0.0774410367, -0.2081423998, 0.2863993049, -0.3206769824, 0.121682696, 0.4999118745, -0.0001201344, 0.2589621842, 0.2124396861, -0.1648834646, -0.1748984158, -0.4557406604, -0.0997843593, -0.0070487363, -0.1593949348, 0.0279695466, -0.3590208292, -0.0961341932, -0.0872089788, -0.3805219829, -0.0607861988, 0.3169795275, 0.0915838182, 0.0138006806, 0.1753876209, 0.0358861275, 0.115840368, -0.0338132456, -0.1987027377, 0.1178981811, 0.0329385772, -0.2579991817, 0.1998914182, 0.2917821705, -0.2212018371, 0.274148941, 0.2835295796, 0.094406642, -0.3582466543, -0.3364070654, 0.0866875052, -0.0088150622, 0.6263715029, -0.5339731574, -0.3961461782, -0.0125040319, 0.143409729, -0.2794905007, 0.215576753, 0.172550872, -0.385613054, 0.0611049794, -0.2525271177, 0.1584769487, -0.2741956115, 0.1384826601, 0.0527274199, 0.1286488622, -0.0021206748, 0.3445754349, 0.0177489463, -0.1277386844, -0.2029891908, 0.2075670809, 0.0490633287, 0.169592157, -0.5074945092, 0.1561605781, -0.0590110086, -0.2784885168, 0.0213651974, 0.4442003071, 0.3085013926, 0.0684166998, 0.2312794328, 0.2866384983, 0.1607064754, -0.2133554369, -0.1315347701, -0.077434361, 0.3800643682, -0.1579202414, -0.0312992372, -0.2791540325, -0.0948118418, -0.0583206974, -0.0575708337, -0.0962946787, 0.3323001862, -0.260017544, -0.6997210383, -0.0417489409, -0.5195009708, 0.1506728977, 0.1491726935, 0.3462818265, 0.23168464, 0.1574572176, 0.1515974253, 0.212949127, -0.0948887467, -0.0798665658, 0.0896477774, -0.1056538969, 0.0886522457, 0.1058686078, 0.2811163664, -0.260217458, 0.2803219855, 0.0191753432, 0.4490256608, 0.0192875862, 0.2292640358, -0.2954487205, -0.015682146, 0.4971875548, 0.1166474149, 0.2651299536, 0.1039259806, 0.0101518827, 0.019681206, 0.2307700813, -0.1679602414, -0.2292968184, 0.1407343894, 0.0016076795, 0.0669175759, 0.1103816256, -0.2389706373, 0.0578478947, 0.3206510544, -0.4441978037, -0.064306967, -0.1949266344, -0.4316872954, -0.2013162374, 0.3722191155, -0.1084437594, -0.6513617635, 0.1045412198, 0.0236543287, 0.1632917374, 0.0088309953, 0.3961005509, -0.0112047847, 0.2315011919, -0.0613732226, -0.0440552197, -0.0140294414, -0.2861176729, -0.5760608315, 0.0165104046, -0.0763748437, 0.1896134913, 0.0881206319, 0.0789603814, -0.1311472654, 0.0413254648, 0.3340964615, 0.1525493562, -0.0303562284, -0.0240437184, -0.0345952623, -0.0441510193, 0.4431476295, 0.2284796089, 0.0528262891, 0.0194367655, -0.0705958158, 0.0870608687, 0.0799352825, 0.0270777084, 0.0522460155, 0.1466531903, 0.4021407664, -0.3157336414, 0.1598216295, -0.3271743357, -0.112919271, 0.1966174692, 0.1699453145, 0.1953427196, -0.2066401988, 0.1386381686, -0.1906581074, 0.1201773509, -0.0267531164, -0.069680661, -0.0604867302, 0.2993451357, -0.2808760703, -0.0124050453, -0.1343551725, 0.3729434311, -0.1461434662, -0.0864053741, -0.1875316501, -0.0000641567, 0.1419467032, -0.2393693626, 0.0002671641, 0.0797231421, 0.0870928094, 0.0045566629, -0.1264182478, 0.2659954131, 0.1864772141, -0.0123778544, -0.5099664927, 0.1358454376, 0.2132543921, -0.2505379021, -0.1092748493, 0.4693285823, 0.3796739876, -0.1245098263, -0.0790434703, 0.3849306107, -0.119304128, 0.3330419362, -0.1116546318, 0.1812598705, 0.2093195766, 0.274441272, 0.0068644299, 0.1506505758, 0.021122396, -0.2048844397, 0.2734593153, -0.1904795915, -0.2818724811, 0.2286006063, 0.3271781802, 0.2093796283, -0.0514540784, 0.1076723784, -0.2721425295, 0.1516777277, 0.1378265619, -0.2153419405, 0.3620249629, 0.1566128582, -0.2942177057, -0.1039868221, -0.3839655519, -0.0999749452, 0.1770615876, 0.1884637773, -0.073772788, 0.0137780635, -0.0414110608, -0.1179172695, -0.0008465364, -0.2245997638, 0.0906269476, 0.4030398428, -0.5930880308, 0.1000925452, 0.0191036705, -0.267700851, 0.1207422912, -0.1434212178, -0.0740682855, -0.0160419531, -0.1190149114, 0.6340525746, -0.1469589919, 0.2620176375, -0.0815270767, 0.1414778382, 0.3570580482, -0.1296305805, -0.098803468, -0.0885026604, -0.0854306966, 0.0011889265, 0.4016357362, -0.0439865775, 0.2023260742, 0.2336529493, 0.1412504464, -0.2749039531, -0.0897913277, 0.0508538447, -0.3653045595, 0.7204537988, -0.1640058607, 0.1258494109, -0.1466319859, -0.1920344532, 0.2292628139, -0.0488662384, -0.1461553872, 0.2437187135, 0.0446085855, 0.000384418, -0.1159567311, -0.4202420712, 0.0132124359, -0.3999993205, 0.3586186171, 0.1072509885, 0.1895507425, 0.1659380049, 0.1549632251, 0.1562080234, 0.5091471076, 0.1099719629, -0.2041817755, -0.2590506375, 0.2574756444, -0.0697098523, -0.464917928, -0.1124717444, 0.4360384047, 0.3336763978, 0.2588374913, -0.1185891777, 0.2212992758, 0.1288626194, -0.0324075855, -0.0766128153, -0.238868475, 0.1317048669, -0.0728277713, 0.0494289733, -0.2745552957, -0.3032081723, 0.1397331655, 0.0226838887, 0.1132417619, 0.3928683996, 0.5157334805, 0.0421098955, 0.5403512716, 0.2728718519, -0.0509802438, 0.130217433, -0.2260809541, 0.1423335224, -0.0559347868, -0.3948753774, -0.0694175884, -0.1584545821, 0.0007229695, -0.0193023738, -0.157888025, -0.0771823972, -0.2333943397, 0.1978649944, 0.0093691153, -0.1479647011, 0.2445992678, -0.3535998166, 0.0670065284, 0.1714166999, 0.3258111477, -0.0797345564, -0.1897968054, -0.02940543, -0.1731527001, 0.2757436633, 0.0925865695, -0.3803437352, -0.5879612565, -0.2355359793, 0.2904399931, 0.2428919673, 0.8867891431, -0.3483828604, -0.2687593102, 0.0277345143, 0.1150508299, 0.3138073683, -0.420945406, -0.0172105003, 0.3141970038, -0.0256401412, -0.2833343446, 0.0376374722, -0.3385159969, 0.1933983564, -0.0536344685, 0.3005484641, 0.0456705056, -0.0770859048, 0.0239048228, 0.0019387809, -0.0911118016, 0.155749023, -0.3271614909, -0.3157286048, -0.1845865697, 0.1295760423, 0.1652625948, 0.2534556985, -0.015430266, 0.2368920743, -0.1467077434, 0.0309756007, 0.4134193361, 0.1124803126, 0.3990642428, -0.0775865465, 0.3258313835, 0.227422893, -0.0900941044, 0.1546642482, 0.2868456244, 0.5725414157, -0.0323080644, 0.3078282177, -0.1749108732, 0.4172322452, 0.1886118948, -0.2250883877, 0.2920154035, -0.3986315131, 0.0418120176, -0.2910481989, 0.0567376018, 0.2856907845, -0.008488154, -0.2237467617, -0.5144874454, 0.1979600489, -0.0459268242, -0.0560951382, 0.7299509645, -0.0128056565, -0.2948811352, 0.2372062206, 0.2152870744, 0.7660694718, -0.0186674036, 0.2062073499, 0.3183413744, -0.176482603, 0.118490234, -0.3992277384, 0.2899084687, -0.1800289154, -0.2160352767, -0.1287498176, -0.0633258224, 0.0366717577, 0.1583643258, -0.0426299833, 0.1004423723, 0.2357468158, 0.4692077041, 0.1830513626, 0.0587856025, -0.0521932282, -0.3091671169, -0.2232974917, 0.0033575257, -0.0997157842, -0.0960991234, 0.0906258896, -0.110776484, -0.0457365699, -0.0773631781, -0.5194411874, 0.0535821132, -0.3627541065, 0.3261047006, -0.2141866237, -0.6226693988, 0.2401055098, -0.0428159051, -0.0291735642, 0.0382410698, -0.385284692, 0.0233800597, 0.0071326531, 0.1889747083, 0.0599404685, 0.131660372, 0.327873826, 0.0018269389, -0.2886902094, 0.2651730776, -0.0154095544, -0.2867151499, -0.0843158811, 0.0425843336, -0.2340361327, -0.1563681513, -0.154581964, -0.184483394, -0.0673311725, -0.1933299899, 0.064413771, 0.0609555654, -0.1925369054, 0.2862131, 0.1178911775, -0.3722852767, 0.1208425537, 0.5922311544, -0.1044874862, 0.0986310095, 0.6652623415, 0.0796928778, -0.0411516912, -0.1205023974, 0.2942801714, -0.0756262243, -0.268873632, -0.0503177159, -0.0487553254, 0.1516090631, -0.0506255887, -0.167547822, -0.0805245861, -0.1758137941, -0.2727404237, -0.5850058198, -0.2710942924, 0.4216202796, 0.0465104692, 0.0664132163, -0.0039542327, -0.0125648165, 0.1235478297, -0.2457625568, -0.173204571, -0.1730000824, -0.1864524335, 0.0992197767, 0.109084852, 0.3034298718, 0.1271173358, -0.1642693281, 0.0024715005, 0.2740500569, 0.005958837, -0.0537681617, -0.0383958332, 0.1883956343, 0.0306131132, -0.2857909799, -0.2305451483, -0.2729805112, -0.2378116548, -0.0993069485, 0.0965342745, 0.1879846007, -0.0069698771, 0.1475953907, -0.3082165718, 0.0017598118, -0.1866011918, 0.1458521485, -0.1074182317, -0.1133364514, 0.2258211821, 0.1386358738, 0.0547134466, 0.1314424574, -0.1657541543, 0.1480870843, -0.2875167131, -0.1025430337, 0.4952565432, -0.5074385405, 0.3625124991, -0.1919727921, 0.252681464, 0.392298013, -0.1583902687, -0.0099186078, 0.1625702679, 0.0692374259, -0.3233441412, 0.0294750836, -0.3804225326, -0.1392388344, -0.027701715, 0.26228863, 0.123854652, 0.0852112174, 0.1133655161, -0.0637324527, 0.3936152756, -0.2213416845, -0.1942415833, 0.4566861093, 0.063235864, 0.1766739488, -0.0688645616, 0.1945198625, 0.1705157012, 0.7244449258, -0.0006022932, 0.042460002, -0.2130423337, -0.0665801987, -0.0629656687, -0.3499328494, -0.4599939883, 0.144386068, -0.2989296317, 0.1111950725, 0.0577003472, 0.3975704908, -0.1730648726, -0.3031702936, -0.0472435169, -0.1753057837, -0.1730867922, 0.0281847045, -0.5757647157, -0.1632053256, -0.1118373945, -0.0222658273, 0.0006013685, 0.0871397108, 0.2948348522, 0.0391984954, -0.0443058498, -0.2205421627, -0.2438505739, 0.4409479499, -0.029736381, -0.2656317949, 0.0741010755, 0.1560167819, -0.0196603518, 0.0571200587, 0.1199645326, 0.4240724444, 0.1152626052, -0.310426116, 0.2576148808, -0.0664638057, -0.0699197724, 0.0609894581, 0.3784953356, 0.2500983477, 0.2076296955, 0.2722445428, 0.0345834494, 0.1915850788, 0.0031156801, 0.2969479263, 0.1994044483, -0.3863657713, 0.195916608, -0.4573026299, -0.2188980877, 0.1199477464, -0.2961947322, 0.1033784896, 0.2350989729, 0.5911546946, 0.2280559689, 0.1881303489, -0.002915831, 0.0041497676, 0.0947549045, 0.5744278431, 0.0319978744, 0.0476973504, -0.2640280426, -0.1280625314, -0.5037081242, 0.0677492172, -0.105383262, 0.054201033, 0.2863100469, -0.0168936588, 0.5386120677, 0.1733201891, 0.266548425, -0.0246534441, -0.2372231036, 0.4261235893, -0.384573549, -0.4848055243, -0.2835628688, 0.2862389982, -0.0762587339, -0.3783429265, 0.0141425095, 0.083425723, -0.021082703, -0.4094472229, -0.0861343443, -0.0014884736, 0.2176867723, 0.2670980692, -0.1251600087, 0.5147185326, 0.0774391815, 0.2180286199, -0.3981278539, -0.2362485677, -0.2551153302, 0.4228233695, -0.0760391504, 0.4331750274, 0.0186811686, -0.2309828401, -0.3043473959, 0.4147603512, -0.1831318289, -0.1479568779, -0.1847371757, 0.2072651833, -0.3646056652, 0.1374667436, -0.1810904592, 0.0608295053, -0.0882928818, 0.1937090158, -0.5200526714, -0.2763133347, 0.5229322314, -0.3914631009, -0.5244169831, 0.1773594469, 0.170191884, -0.2286364436, -0.0885095745, -0.6719046831, -0.1520963013, 0.186852783, -0.0626940429, -0.2174043208, 0.0681295618, 0.0103617907, 0.0388517305, -0.1853183806, 0.5076367855, 0.0016692254, -0.133594498, -0.0853607357, -0.1912436038 ]
https://github.com/huggingface/datasets/issues/3618
TIMIT Dataset not working with GPU
I get the same error when I try to do `timit_train[0]` or really any indexing into the whole thing. Really, that IS the code snippet that reproduces the issue. If you index into other fields like 'file' or whatever, it works. As soon as one of the fields you're looking into is 'audio', you get that issue. It's a weird issue and I suspect it's Sagemaker/environment related, maybe the mix of libraries and dependencies are not good. Example code snippet with issue. ```python from datasets import load_dataset timit_train = load_dataset('timit_asr', split='train') print(timit_train[0]) ```
## Describe the bug I am working trying to use the TIMIT dataset in order to fine-tune Wav2Vec2 model and I am unable to load the "audio" column from the dataset when working with a GPU. I am working on Amazon Sagemaker Studio, on the Python 3 (PyTorch 1.8 Python 3.6 GPU Optimized) environment, with a single ml.g4dn.xlarge instance (corresponds to a Tesla T4 GPU). I don't know if the issue is GPU related or Python environment related because everything works when I work off of the CPU Optimized environment with a non-GPU instance. My code also works on Google Colab with a GPU instance. This issue is blocking because I cannot get the 'audio' column in any way due to this error, which means that I can't pass it to any functions. I later use the dataset.map function and that is where I originally noticed this error. ## Steps to reproduce the bug ```python from datasets import load_dataset timit_train = load_dataset('timit_asr', split='train') print(timit_train['audio']) ``` ## Expected results Expected to see inside the 'audio' column, which contains an 'array' nested field with the array data I actually need. ## Actual results Traceback ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-ceeac555e921> in <module> ----> 1 timit_train['audio'] /opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py in __getitem__(self, key) 1917 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).""" 1918 return self._getitem( -> 1919 key, 1920 ) 1921 /opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py in _getitem(self, key, decoded, **kwargs) 1902 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None) 1903 formatted_output = format_table( -> 1904 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns 1905 ) 1906 return formatted_output /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_table(table, key, formatter, format_columns, output_all_columns) 529 python_formatter = PythonFormatter(features=None) 530 if format_columns is None: --> 531 return formatter(pa_table, query_type=query_type) 532 elif query_type == "column": 533 if key in format_columns: /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in __call__(self, pa_table, query_type) 280 return self.format_row(pa_table) 281 elif query_type == "column": --> 282 return self.format_column(pa_table) 283 elif query_type == "batch": 284 return self.format_batch(pa_table) /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_column(self, pa_table) 315 column = self.python_arrow_extractor().extract_column(pa_table) 316 if self.decoded: --> 317 column = self.python_features_decoder.decode_column(column, pa_table.column_names[0]) 318 return column 319 /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in decode_column(self, column, column_name) 221 222 def decode_column(self, column: list, column_name: str) -> list: --> 223 return self.features.decode_column(column, column_name) if self.features else column 224 225 def decode_batch(self, batch: dict) -> dict: /opt/conda/lib/python3.6/site-packages/datasets/features/features.py in decode_column(self, column, column_name) 1337 return ( 1338 [self[column_name].decode_example(value) if value is not None else None for value in column] -> 1339 if self._column_requires_decoding[column_name] 1340 else column 1341 ) /opt/conda/lib/python3.6/site-packages/datasets/features/features.py in <listcomp>(.0) 1336 """ 1337 return ( -> 1338 [self[column_name].decode_example(value) if value is not None else None for value in column] 1339 if self._column_requires_decoding[column_name] 1340 else column /opt/conda/lib/python3.6/site-packages/datasets/features/audio.py in decode_example(self, value) 85 dict 86 """ ---> 87 path, file = (value["path"], BytesIO(value["bytes"])) if value["bytes"] is not None else (value["path"], None) 88 if path is None and file is None: 89 raise ValueError(f"An audio sample should have one of 'path' or 'bytes' but both are None in {value}.") TypeError: string indices must be integers ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.0 - Platform: Linux-4.14.256-197.484.amzn2.x86_64-x86_64-with-debian-buster-sid - Python version: 3.6.13 - PyArrow version: 6.0.1
93
TIMIT Dataset not working with GPU ## Describe the bug I am working trying to use the TIMIT dataset in order to fine-tune Wav2Vec2 model and I am unable to load the "audio" column from the dataset when working with a GPU. I am working on Amazon Sagemaker Studio, on the Python 3 (PyTorch 1.8 Python 3.6 GPU Optimized) environment, with a single ml.g4dn.xlarge instance (corresponds to a Tesla T4 GPU). I don't know if the issue is GPU related or Python environment related because everything works when I work off of the CPU Optimized environment with a non-GPU instance. My code also works on Google Colab with a GPU instance. This issue is blocking because I cannot get the 'audio' column in any way due to this error, which means that I can't pass it to any functions. I later use the dataset.map function and that is where I originally noticed this error. ## Steps to reproduce the bug ```python from datasets import load_dataset timit_train = load_dataset('timit_asr', split='train') print(timit_train['audio']) ``` ## Expected results Expected to see inside the 'audio' column, which contains an 'array' nested field with the array data I actually need. ## Actual results Traceback ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-ceeac555e921> in <module> ----> 1 timit_train['audio'] /opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py in __getitem__(self, key) 1917 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).""" 1918 return self._getitem( -> 1919 key, 1920 ) 1921 /opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py in _getitem(self, key, decoded, **kwargs) 1902 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None) 1903 formatted_output = format_table( -> 1904 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns 1905 ) 1906 return formatted_output /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_table(table, key, formatter, format_columns, output_all_columns) 529 python_formatter = PythonFormatter(features=None) 530 if format_columns is None: --> 531 return formatter(pa_table, query_type=query_type) 532 elif query_type == "column": 533 if key in format_columns: /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in __call__(self, pa_table, query_type) 280 return self.format_row(pa_table) 281 elif query_type == "column": --> 282 return self.format_column(pa_table) 283 elif query_type == "batch": 284 return self.format_batch(pa_table) /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_column(self, pa_table) 315 column = self.python_arrow_extractor().extract_column(pa_table) 316 if self.decoded: --> 317 column = self.python_features_decoder.decode_column(column, pa_table.column_names[0]) 318 return column 319 /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in decode_column(self, column, column_name) 221 222 def decode_column(self, column: list, column_name: str) -> list: --> 223 return self.features.decode_column(column, column_name) if self.features else column 224 225 def decode_batch(self, batch: dict) -> dict: /opt/conda/lib/python3.6/site-packages/datasets/features/features.py in decode_column(self, column, column_name) 1337 return ( 1338 [self[column_name].decode_example(value) if value is not None else None for value in column] -> 1339 if self._column_requires_decoding[column_name] 1340 else column 1341 ) /opt/conda/lib/python3.6/site-packages/datasets/features/features.py in <listcomp>(.0) 1336 """ 1337 return ( -> 1338 [self[column_name].decode_example(value) if value is not None else None for value in column] 1339 if self._column_requires_decoding[column_name] 1340 else column /opt/conda/lib/python3.6/site-packages/datasets/features/audio.py in decode_example(self, value) 85 dict 86 """ ---> 87 path, file = (value["path"], BytesIO(value["bytes"])) if value["bytes"] is not None else (value["path"], None) 88 if path is None and file is None: 89 raise ValueError(f"An audio sample should have one of 'path' or 'bytes' but both are None in {value}.") TypeError: string indices must be integers ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.0 - Platform: Linux-4.14.256-197.484.amzn2.x86_64-x86_64-with-debian-buster-sid - Python version: 3.6.13 - PyArrow version: 6.0.1 I get the same error when I try to do `timit_train[0]` or really any indexing into the whole thing. Really, that IS the code snippet that reproduces the issue. If you index into other fields like 'file' or whatever, it works. As soon as one of the fields you're looking into is 'audio', you get that issue. It's a weird issue and I suspect it's Sagemaker/environment related, maybe the mix of libraries and dependencies are not good. Example code snippet with issue. ```python from datasets import load_dataset timit_train = load_dataset('timit_asr', split='train') print(timit_train[0]) ```
[ -0.1453542113, -0.1040818691, -0.00356368, 0.4680360258, 0.4012950063, -0.0252673663, 0.4242496789, 0.2931960821, -0.1032611355, 0.0186554566, -0.0983693153, 0.5495102406, -0.0063605495, 0.2732047737, 0.1169297248, -0.2103835642, -0.1081266552, -0.1027195901, -0.19415012, 0.2106096298, -0.2738254964, 0.1691141576, -0.296458602, 0.4507960975, -0.0143753365, 0.0297153406, 0.4842517674, 0.1759412438, 0.0774410367, -0.2081423998, 0.2863993049, -0.3206769824, 0.121682696, 0.4999118745, -0.0001201344, 0.2589621842, 0.2124396861, -0.1648834646, -0.1748984158, -0.4557406604, -0.0997843593, -0.0070487363, -0.1593949348, 0.0279695466, -0.3590208292, -0.0961341932, -0.0872089788, -0.3805219829, -0.0607861988, 0.3169795275, 0.0915838182, 0.0138006806, 0.1753876209, 0.0358861275, 0.115840368, -0.0338132456, -0.1987027377, 0.1178981811, 0.0329385772, -0.2579991817, 0.1998914182, 0.2917821705, -0.2212018371, 0.274148941, 0.2835295796, 0.094406642, -0.3582466543, -0.3364070654, 0.0866875052, -0.0088150622, 0.6263715029, -0.5339731574, -0.3961461782, -0.0125040319, 0.143409729, -0.2794905007, 0.215576753, 0.172550872, -0.385613054, 0.0611049794, -0.2525271177, 0.1584769487, -0.2741956115, 0.1384826601, 0.0527274199, 0.1286488622, -0.0021206748, 0.3445754349, 0.0177489463, -0.1277386844, -0.2029891908, 0.2075670809, 0.0490633287, 0.169592157, -0.5074945092, 0.1561605781, -0.0590110086, -0.2784885168, 0.0213651974, 0.4442003071, 0.3085013926, 0.0684166998, 0.2312794328, 0.2866384983, 0.1607064754, -0.2133554369, -0.1315347701, -0.077434361, 0.3800643682, -0.1579202414, -0.0312992372, -0.2791540325, -0.0948118418, -0.0583206974, -0.0575708337, -0.0962946787, 0.3323001862, -0.260017544, -0.6997210383, -0.0417489409, -0.5195009708, 0.1506728977, 0.1491726935, 0.3462818265, 0.23168464, 0.1574572176, 0.1515974253, 0.212949127, -0.0948887467, -0.0798665658, 0.0896477774, -0.1056538969, 0.0886522457, 0.1058686078, 0.2811163664, -0.260217458, 0.2803219855, 0.0191753432, 0.4490256608, 0.0192875862, 0.2292640358, -0.2954487205, -0.015682146, 0.4971875548, 0.1166474149, 0.2651299536, 0.1039259806, 0.0101518827, 0.019681206, 0.2307700813, -0.1679602414, -0.2292968184, 0.1407343894, 0.0016076795, 0.0669175759, 0.1103816256, -0.2389706373, 0.0578478947, 0.3206510544, -0.4441978037, -0.064306967, -0.1949266344, -0.4316872954, -0.2013162374, 0.3722191155, -0.1084437594, -0.6513617635, 0.1045412198, 0.0236543287, 0.1632917374, 0.0088309953, 0.3961005509, -0.0112047847, 0.2315011919, -0.0613732226, -0.0440552197, -0.0140294414, -0.2861176729, -0.5760608315, 0.0165104046, -0.0763748437, 0.1896134913, 0.0881206319, 0.0789603814, -0.1311472654, 0.0413254648, 0.3340964615, 0.1525493562, -0.0303562284, -0.0240437184, -0.0345952623, -0.0441510193, 0.4431476295, 0.2284796089, 0.0528262891, 0.0194367655, -0.0705958158, 0.0870608687, 0.0799352825, 0.0270777084, 0.0522460155, 0.1466531903, 0.4021407664, -0.3157336414, 0.1598216295, -0.3271743357, -0.112919271, 0.1966174692, 0.1699453145, 0.1953427196, -0.2066401988, 0.1386381686, -0.1906581074, 0.1201773509, -0.0267531164, -0.069680661, -0.0604867302, 0.2993451357, -0.2808760703, -0.0124050453, -0.1343551725, 0.3729434311, -0.1461434662, -0.0864053741, -0.1875316501, -0.0000641567, 0.1419467032, -0.2393693626, 0.0002671641, 0.0797231421, 0.0870928094, 0.0045566629, -0.1264182478, 0.2659954131, 0.1864772141, -0.0123778544, -0.5099664927, 0.1358454376, 0.2132543921, -0.2505379021, -0.1092748493, 0.4693285823, 0.3796739876, -0.1245098263, -0.0790434703, 0.3849306107, -0.119304128, 0.3330419362, -0.1116546318, 0.1812598705, 0.2093195766, 0.274441272, 0.0068644299, 0.1506505758, 0.021122396, -0.2048844397, 0.2734593153, -0.1904795915, -0.2818724811, 0.2286006063, 0.3271781802, 0.2093796283, -0.0514540784, 0.1076723784, -0.2721425295, 0.1516777277, 0.1378265619, -0.2153419405, 0.3620249629, 0.1566128582, -0.2942177057, -0.1039868221, -0.3839655519, -0.0999749452, 0.1770615876, 0.1884637773, -0.073772788, 0.0137780635, -0.0414110608, -0.1179172695, -0.0008465364, -0.2245997638, 0.0906269476, 0.4030398428, -0.5930880308, 0.1000925452, 0.0191036705, -0.267700851, 0.1207422912, -0.1434212178, -0.0740682855, -0.0160419531, -0.1190149114, 0.6340525746, -0.1469589919, 0.2620176375, -0.0815270767, 0.1414778382, 0.3570580482, -0.1296305805, -0.098803468, -0.0885026604, -0.0854306966, 0.0011889265, 0.4016357362, -0.0439865775, 0.2023260742, 0.2336529493, 0.1412504464, -0.2749039531, -0.0897913277, 0.0508538447, -0.3653045595, 0.7204537988, -0.1640058607, 0.1258494109, -0.1466319859, -0.1920344532, 0.2292628139, -0.0488662384, -0.1461553872, 0.2437187135, 0.0446085855, 0.000384418, -0.1159567311, -0.4202420712, 0.0132124359, -0.3999993205, 0.3586186171, 0.1072509885, 0.1895507425, 0.1659380049, 0.1549632251, 0.1562080234, 0.5091471076, 0.1099719629, -0.2041817755, -0.2590506375, 0.2574756444, -0.0697098523, -0.464917928, -0.1124717444, 0.4360384047, 0.3336763978, 0.2588374913, -0.1185891777, 0.2212992758, 0.1288626194, -0.0324075855, -0.0766128153, -0.238868475, 0.1317048669, -0.0728277713, 0.0494289733, -0.2745552957, -0.3032081723, 0.1397331655, 0.0226838887, 0.1132417619, 0.3928683996, 0.5157334805, 0.0421098955, 0.5403512716, 0.2728718519, -0.0509802438, 0.130217433, -0.2260809541, 0.1423335224, -0.0559347868, -0.3948753774, -0.0694175884, -0.1584545821, 0.0007229695, -0.0193023738, -0.157888025, -0.0771823972, -0.2333943397, 0.1978649944, 0.0093691153, -0.1479647011, 0.2445992678, -0.3535998166, 0.0670065284, 0.1714166999, 0.3258111477, -0.0797345564, -0.1897968054, -0.02940543, -0.1731527001, 0.2757436633, 0.0925865695, -0.3803437352, -0.5879612565, -0.2355359793, 0.2904399931, 0.2428919673, 0.8867891431, -0.3483828604, -0.2687593102, 0.0277345143, 0.1150508299, 0.3138073683, -0.420945406, -0.0172105003, 0.3141970038, -0.0256401412, -0.2833343446, 0.0376374722, -0.3385159969, 0.1933983564, -0.0536344685, 0.3005484641, 0.0456705056, -0.0770859048, 0.0239048228, 0.0019387809, -0.0911118016, 0.155749023, -0.3271614909, -0.3157286048, -0.1845865697, 0.1295760423, 0.1652625948, 0.2534556985, -0.015430266, 0.2368920743, -0.1467077434, 0.0309756007, 0.4134193361, 0.1124803126, 0.3990642428, -0.0775865465, 0.3258313835, 0.227422893, -0.0900941044, 0.1546642482, 0.2868456244, 0.5725414157, -0.0323080644, 0.3078282177, -0.1749108732, 0.4172322452, 0.1886118948, -0.2250883877, 0.2920154035, -0.3986315131, 0.0418120176, -0.2910481989, 0.0567376018, 0.2856907845, -0.008488154, -0.2237467617, -0.5144874454, 0.1979600489, -0.0459268242, -0.0560951382, 0.7299509645, -0.0128056565, -0.2948811352, 0.2372062206, 0.2152870744, 0.7660694718, -0.0186674036, 0.2062073499, 0.3183413744, -0.176482603, 0.118490234, -0.3992277384, 0.2899084687, -0.1800289154, -0.2160352767, -0.1287498176, -0.0633258224, 0.0366717577, 0.1583643258, -0.0426299833, 0.1004423723, 0.2357468158, 0.4692077041, 0.1830513626, 0.0587856025, -0.0521932282, -0.3091671169, -0.2232974917, 0.0033575257, -0.0997157842, -0.0960991234, 0.0906258896, -0.110776484, -0.0457365699, -0.0773631781, -0.5194411874, 0.0535821132, -0.3627541065, 0.3261047006, -0.2141866237, -0.6226693988, 0.2401055098, -0.0428159051, -0.0291735642, 0.0382410698, -0.385284692, 0.0233800597, 0.0071326531, 0.1889747083, 0.0599404685, 0.131660372, 0.327873826, 0.0018269389, -0.2886902094, 0.2651730776, -0.0154095544, -0.2867151499, -0.0843158811, 0.0425843336, -0.2340361327, -0.1563681513, -0.154581964, -0.184483394, -0.0673311725, -0.1933299899, 0.064413771, 0.0609555654, -0.1925369054, 0.2862131, 0.1178911775, -0.3722852767, 0.1208425537, 0.5922311544, -0.1044874862, 0.0986310095, 0.6652623415, 0.0796928778, -0.0411516912, -0.1205023974, 0.2942801714, -0.0756262243, -0.268873632, -0.0503177159, -0.0487553254, 0.1516090631, -0.0506255887, -0.167547822, -0.0805245861, -0.1758137941, -0.2727404237, -0.5850058198, -0.2710942924, 0.4216202796, 0.0465104692, 0.0664132163, -0.0039542327, -0.0125648165, 0.1235478297, -0.2457625568, -0.173204571, -0.1730000824, -0.1864524335, 0.0992197767, 0.109084852, 0.3034298718, 0.1271173358, -0.1642693281, 0.0024715005, 0.2740500569, 0.005958837, -0.0537681617, -0.0383958332, 0.1883956343, 0.0306131132, -0.2857909799, -0.2305451483, -0.2729805112, -0.2378116548, -0.0993069485, 0.0965342745, 0.1879846007, -0.0069698771, 0.1475953907, -0.3082165718, 0.0017598118, -0.1866011918, 0.1458521485, -0.1074182317, -0.1133364514, 0.2258211821, 0.1386358738, 0.0547134466, 0.1314424574, -0.1657541543, 0.1480870843, -0.2875167131, -0.1025430337, 0.4952565432, -0.5074385405, 0.3625124991, -0.1919727921, 0.252681464, 0.392298013, -0.1583902687, -0.0099186078, 0.1625702679, 0.0692374259, -0.3233441412, 0.0294750836, -0.3804225326, -0.1392388344, -0.027701715, 0.26228863, 0.123854652, 0.0852112174, 0.1133655161, -0.0637324527, 0.3936152756, -0.2213416845, -0.1942415833, 0.4566861093, 0.063235864, 0.1766739488, -0.0688645616, 0.1945198625, 0.1705157012, 0.7244449258, -0.0006022932, 0.042460002, -0.2130423337, -0.0665801987, -0.0629656687, -0.3499328494, -0.4599939883, 0.144386068, -0.2989296317, 0.1111950725, 0.0577003472, 0.3975704908, -0.1730648726, -0.3031702936, -0.0472435169, -0.1753057837, -0.1730867922, 0.0281847045, -0.5757647157, -0.1632053256, -0.1118373945, -0.0222658273, 0.0006013685, 0.0871397108, 0.2948348522, 0.0391984954, -0.0443058498, -0.2205421627, -0.2438505739, 0.4409479499, -0.029736381, -0.2656317949, 0.0741010755, 0.1560167819, -0.0196603518, 0.0571200587, 0.1199645326, 0.4240724444, 0.1152626052, -0.310426116, 0.2576148808, -0.0664638057, -0.0699197724, 0.0609894581, 0.3784953356, 0.2500983477, 0.2076296955, 0.2722445428, 0.0345834494, 0.1915850788, 0.0031156801, 0.2969479263, 0.1994044483, -0.3863657713, 0.195916608, -0.4573026299, -0.2188980877, 0.1199477464, -0.2961947322, 0.1033784896, 0.2350989729, 0.5911546946, 0.2280559689, 0.1881303489, -0.002915831, 0.0041497676, 0.0947549045, 0.5744278431, 0.0319978744, 0.0476973504, -0.2640280426, -0.1280625314, -0.5037081242, 0.0677492172, -0.105383262, 0.054201033, 0.2863100469, -0.0168936588, 0.5386120677, 0.1733201891, 0.266548425, -0.0246534441, -0.2372231036, 0.4261235893, -0.384573549, -0.4848055243, -0.2835628688, 0.2862389982, -0.0762587339, -0.3783429265, 0.0141425095, 0.083425723, -0.021082703, -0.4094472229, -0.0861343443, -0.0014884736, 0.2176867723, 0.2670980692, -0.1251600087, 0.5147185326, 0.0774391815, 0.2180286199, -0.3981278539, -0.2362485677, -0.2551153302, 0.4228233695, -0.0760391504, 0.4331750274, 0.0186811686, -0.2309828401, -0.3043473959, 0.4147603512, -0.1831318289, -0.1479568779, -0.1847371757, 0.2072651833, -0.3646056652, 0.1374667436, -0.1810904592, 0.0608295053, -0.0882928818, 0.1937090158, -0.5200526714, -0.2763133347, 0.5229322314, -0.3914631009, -0.5244169831, 0.1773594469, 0.170191884, -0.2286364436, -0.0885095745, -0.6719046831, -0.1520963013, 0.186852783, -0.0626940429, -0.2174043208, 0.0681295618, 0.0103617907, 0.0388517305, -0.1853183806, 0.5076367855, 0.0016692254, -0.133594498, -0.0853607357, -0.1912436038 ]
https://github.com/huggingface/datasets/issues/3618
TIMIT Dataset not working with GPU
Ok I see ! From the error you got, it looks like the `value` encoded in the arrow file of the TIMIT dataset you loaded is a string instead of a dictionary with keys "path" and "bytes" but we don't support this since 1.18 Can you try regenerating the dataset with `load_dataset('timit_asr', download_mode="force_redownload")` please ? I think it should fix the issue.
## Describe the bug I am working trying to use the TIMIT dataset in order to fine-tune Wav2Vec2 model and I am unable to load the "audio" column from the dataset when working with a GPU. I am working on Amazon Sagemaker Studio, on the Python 3 (PyTorch 1.8 Python 3.6 GPU Optimized) environment, with a single ml.g4dn.xlarge instance (corresponds to a Tesla T4 GPU). I don't know if the issue is GPU related or Python environment related because everything works when I work off of the CPU Optimized environment with a non-GPU instance. My code also works on Google Colab with a GPU instance. This issue is blocking because I cannot get the 'audio' column in any way due to this error, which means that I can't pass it to any functions. I later use the dataset.map function and that is where I originally noticed this error. ## Steps to reproduce the bug ```python from datasets import load_dataset timit_train = load_dataset('timit_asr', split='train') print(timit_train['audio']) ``` ## Expected results Expected to see inside the 'audio' column, which contains an 'array' nested field with the array data I actually need. ## Actual results Traceback ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-ceeac555e921> in <module> ----> 1 timit_train['audio'] /opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py in __getitem__(self, key) 1917 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).""" 1918 return self._getitem( -> 1919 key, 1920 ) 1921 /opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py in _getitem(self, key, decoded, **kwargs) 1902 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None) 1903 formatted_output = format_table( -> 1904 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns 1905 ) 1906 return formatted_output /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_table(table, key, formatter, format_columns, output_all_columns) 529 python_formatter = PythonFormatter(features=None) 530 if format_columns is None: --> 531 return formatter(pa_table, query_type=query_type) 532 elif query_type == "column": 533 if key in format_columns: /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in __call__(self, pa_table, query_type) 280 return self.format_row(pa_table) 281 elif query_type == "column": --> 282 return self.format_column(pa_table) 283 elif query_type == "batch": 284 return self.format_batch(pa_table) /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_column(self, pa_table) 315 column = self.python_arrow_extractor().extract_column(pa_table) 316 if self.decoded: --> 317 column = self.python_features_decoder.decode_column(column, pa_table.column_names[0]) 318 return column 319 /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in decode_column(self, column, column_name) 221 222 def decode_column(self, column: list, column_name: str) -> list: --> 223 return self.features.decode_column(column, column_name) if self.features else column 224 225 def decode_batch(self, batch: dict) -> dict: /opt/conda/lib/python3.6/site-packages/datasets/features/features.py in decode_column(self, column, column_name) 1337 return ( 1338 [self[column_name].decode_example(value) if value is not None else None for value in column] -> 1339 if self._column_requires_decoding[column_name] 1340 else column 1341 ) /opt/conda/lib/python3.6/site-packages/datasets/features/features.py in <listcomp>(.0) 1336 """ 1337 return ( -> 1338 [self[column_name].decode_example(value) if value is not None else None for value in column] 1339 if self._column_requires_decoding[column_name] 1340 else column /opt/conda/lib/python3.6/site-packages/datasets/features/audio.py in decode_example(self, value) 85 dict 86 """ ---> 87 path, file = (value["path"], BytesIO(value["bytes"])) if value["bytes"] is not None else (value["path"], None) 88 if path is None and file is None: 89 raise ValueError(f"An audio sample should have one of 'path' or 'bytes' but both are None in {value}.") TypeError: string indices must be integers ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.0 - Platform: Linux-4.14.256-197.484.amzn2.x86_64-x86_64-with-debian-buster-sid - Python version: 3.6.13 - PyArrow version: 6.0.1
62
TIMIT Dataset not working with GPU ## Describe the bug I am working trying to use the TIMIT dataset in order to fine-tune Wav2Vec2 model and I am unable to load the "audio" column from the dataset when working with a GPU. I am working on Amazon Sagemaker Studio, on the Python 3 (PyTorch 1.8 Python 3.6 GPU Optimized) environment, with a single ml.g4dn.xlarge instance (corresponds to a Tesla T4 GPU). I don't know if the issue is GPU related or Python environment related because everything works when I work off of the CPU Optimized environment with a non-GPU instance. My code also works on Google Colab with a GPU instance. This issue is blocking because I cannot get the 'audio' column in any way due to this error, which means that I can't pass it to any functions. I later use the dataset.map function and that is where I originally noticed this error. ## Steps to reproduce the bug ```python from datasets import load_dataset timit_train = load_dataset('timit_asr', split='train') print(timit_train['audio']) ``` ## Expected results Expected to see inside the 'audio' column, which contains an 'array' nested field with the array data I actually need. ## Actual results Traceback ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-ceeac555e921> in <module> ----> 1 timit_train['audio'] /opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py in __getitem__(self, key) 1917 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).""" 1918 return self._getitem( -> 1919 key, 1920 ) 1921 /opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py in _getitem(self, key, decoded, **kwargs) 1902 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None) 1903 formatted_output = format_table( -> 1904 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns 1905 ) 1906 return formatted_output /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_table(table, key, formatter, format_columns, output_all_columns) 529 python_formatter = PythonFormatter(features=None) 530 if format_columns is None: --> 531 return formatter(pa_table, query_type=query_type) 532 elif query_type == "column": 533 if key in format_columns: /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in __call__(self, pa_table, query_type) 280 return self.format_row(pa_table) 281 elif query_type == "column": --> 282 return self.format_column(pa_table) 283 elif query_type == "batch": 284 return self.format_batch(pa_table) /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_column(self, pa_table) 315 column = self.python_arrow_extractor().extract_column(pa_table) 316 if self.decoded: --> 317 column = self.python_features_decoder.decode_column(column, pa_table.column_names[0]) 318 return column 319 /opt/conda/lib/python3.6/site-packages/datasets/formatting/formatting.py in decode_column(self, column, column_name) 221 222 def decode_column(self, column: list, column_name: str) -> list: --> 223 return self.features.decode_column(column, column_name) if self.features else column 224 225 def decode_batch(self, batch: dict) -> dict: /opt/conda/lib/python3.6/site-packages/datasets/features/features.py in decode_column(self, column, column_name) 1337 return ( 1338 [self[column_name].decode_example(value) if value is not None else None for value in column] -> 1339 if self._column_requires_decoding[column_name] 1340 else column 1341 ) /opt/conda/lib/python3.6/site-packages/datasets/features/features.py in <listcomp>(.0) 1336 """ 1337 return ( -> 1338 [self[column_name].decode_example(value) if value is not None else None for value in column] 1339 if self._column_requires_decoding[column_name] 1340 else column /opt/conda/lib/python3.6/site-packages/datasets/features/audio.py in decode_example(self, value) 85 dict 86 """ ---> 87 path, file = (value["path"], BytesIO(value["bytes"])) if value["bytes"] is not None else (value["path"], None) 88 if path is None and file is None: 89 raise ValueError(f"An audio sample should have one of 'path' or 'bytes' but both are None in {value}.") TypeError: string indices must be integers ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.0 - Platform: Linux-4.14.256-197.484.amzn2.x86_64-x86_64-with-debian-buster-sid - Python version: 3.6.13 - PyArrow version: 6.0.1 Ok I see ! From the error you got, it looks like the `value` encoded in the arrow file of the TIMIT dataset you loaded is a string instead of a dictionary with keys "path" and "bytes" but we don't support this since 1.18 Can you try regenerating the dataset with `load_dataset('timit_asr', download_mode="force_redownload")` please ? I think it should fix the issue.
[ -0.1453542113, -0.1040818691, -0.00356368, 0.4680360258, 0.4012950063, -0.0252673663, 0.4242496789, 0.2931960821, -0.1032611355, 0.0186554566, -0.0983693153, 0.5495102406, -0.0063605495, 0.2732047737, 0.1169297248, -0.2103835642, -0.1081266552, -0.1027195901, -0.19415012, 0.2106096298, -0.2738254964, 0.1691141576, -0.296458602, 0.4507960975, -0.0143753365, 0.0297153406, 0.4842517674, 0.1759412438, 0.0774410367, -0.2081423998, 0.2863993049, -0.3206769824, 0.121682696, 0.4999118745, -0.0001201344, 0.2589621842, 0.2124396861, -0.1648834646, -0.1748984158, -0.4557406604, -0.0997843593, -0.0070487363, -0.1593949348, 0.0279695466, -0.3590208292, -0.0961341932, -0.0872089788, -0.3805219829, -0.0607861988, 0.3169795275, 0.0915838182, 0.0138006806, 0.1753876209, 0.0358861275, 0.115840368, -0.0338132456, -0.1987027377, 0.1178981811, 0.0329385772, -0.2579991817, 0.1998914182, 0.2917821705, -0.2212018371, 0.274148941, 0.2835295796, 0.094406642, -0.3582466543, -0.3364070654, 0.0866875052, -0.0088150622, 0.6263715029, -0.5339731574, -0.3961461782, -0.0125040319, 0.143409729, -0.2794905007, 0.215576753, 0.172550872, -0.385613054, 0.0611049794, -0.2525271177, 0.1584769487, -0.2741956115, 0.1384826601, 0.0527274199, 0.1286488622, -0.0021206748, 0.3445754349, 0.0177489463, -0.1277386844, -0.2029891908, 0.2075670809, 0.0490633287, 0.169592157, -0.5074945092, 0.1561605781, -0.0590110086, -0.2784885168, 0.0213651974, 0.4442003071, 0.3085013926, 0.0684166998, 0.2312794328, 0.2866384983, 0.1607064754, -0.2133554369, -0.1315347701, -0.077434361, 0.3800643682, -0.1579202414, -0.0312992372, -0.2791540325, -0.0948118418, -0.0583206974, -0.0575708337, -0.0962946787, 0.3323001862, -0.260017544, -0.6997210383, -0.0417489409, -0.5195009708, 0.1506728977, 0.1491726935, 0.3462818265, 0.23168464, 0.1574572176, 0.1515974253, 0.212949127, -0.0948887467, -0.0798665658, 0.0896477774, -0.1056538969, 0.0886522457, 0.1058686078, 0.2811163664, -0.260217458, 0.2803219855, 0.0191753432, 0.4490256608, 0.0192875862, 0.2292640358, -0.2954487205, -0.015682146, 0.4971875548, 0.1166474149, 0.2651299536, 0.1039259806, 0.0101518827, 0.019681206, 0.2307700813, -0.1679602414, -0.2292968184, 0.1407343894, 0.0016076795, 0.0669175759, 0.1103816256, -0.2389706373, 0.0578478947, 0.3206510544, -0.4441978037, -0.064306967, -0.1949266344, -0.4316872954, -0.2013162374, 0.3722191155, -0.1084437594, -0.6513617635, 0.1045412198, 0.0236543287, 0.1632917374, 0.0088309953, 0.3961005509, -0.0112047847, 0.2315011919, -0.0613732226, -0.0440552197, -0.0140294414, -0.2861176729, -0.5760608315, 0.0165104046, -0.0763748437, 0.1896134913, 0.0881206319, 0.0789603814, -0.1311472654, 0.0413254648, 0.3340964615, 0.1525493562, -0.0303562284, -0.0240437184, -0.0345952623, -0.0441510193, 0.4431476295, 0.2284796089, 0.0528262891, 0.0194367655, -0.0705958158, 0.0870608687, 0.0799352825, 0.0270777084, 0.0522460155, 0.1466531903, 0.4021407664, -0.3157336414, 0.1598216295, -0.3271743357, -0.112919271, 0.1966174692, 0.1699453145, 0.1953427196, -0.2066401988, 0.1386381686, -0.1906581074, 0.1201773509, -0.0267531164, -0.069680661, -0.0604867302, 0.2993451357, -0.2808760703, -0.0124050453, -0.1343551725, 0.3729434311, -0.1461434662, -0.0864053741, -0.1875316501, -0.0000641567, 0.1419467032, -0.2393693626, 0.0002671641, 0.0797231421, 0.0870928094, 0.0045566629, -0.1264182478, 0.2659954131, 0.1864772141, -0.0123778544, -0.5099664927, 0.1358454376, 0.2132543921, -0.2505379021, -0.1092748493, 0.4693285823, 0.3796739876, -0.1245098263, -0.0790434703, 0.3849306107, -0.119304128, 0.3330419362, -0.1116546318, 0.1812598705, 0.2093195766, 0.274441272, 0.0068644299, 0.1506505758, 0.021122396, -0.2048844397, 0.2734593153, -0.1904795915, -0.2818724811, 0.2286006063, 0.3271781802, 0.2093796283, -0.0514540784, 0.1076723784, -0.2721425295, 0.1516777277, 0.1378265619, -0.2153419405, 0.3620249629, 0.1566128582, -0.2942177057, -0.1039868221, -0.3839655519, -0.0999749452, 0.1770615876, 0.1884637773, -0.073772788, 0.0137780635, -0.0414110608, -0.1179172695, -0.0008465364, -0.2245997638, 0.0906269476, 0.4030398428, -0.5930880308, 0.1000925452, 0.0191036705, -0.267700851, 0.1207422912, -0.1434212178, -0.0740682855, -0.0160419531, -0.1190149114, 0.6340525746, -0.1469589919, 0.2620176375, -0.0815270767, 0.1414778382, 0.3570580482, -0.1296305805, -0.098803468, -0.0885026604, -0.0854306966, 0.0011889265, 0.4016357362, -0.0439865775, 0.2023260742, 0.2336529493, 0.1412504464, -0.2749039531, -0.0897913277, 0.0508538447, -0.3653045595, 0.7204537988, -0.1640058607, 0.1258494109, -0.1466319859, -0.1920344532, 0.2292628139, -0.0488662384, -0.1461553872, 0.2437187135, 0.0446085855, 0.000384418, -0.1159567311, -0.4202420712, 0.0132124359, -0.3999993205, 0.3586186171, 0.1072509885, 0.1895507425, 0.1659380049, 0.1549632251, 0.1562080234, 0.5091471076, 0.1099719629, -0.2041817755, -0.2590506375, 0.2574756444, -0.0697098523, -0.464917928, -0.1124717444, 0.4360384047, 0.3336763978, 0.2588374913, -0.1185891777, 0.2212992758, 0.1288626194, -0.0324075855, -0.0766128153, -0.238868475, 0.1317048669, -0.0728277713, 0.0494289733, -0.2745552957, -0.3032081723, 0.1397331655, 0.0226838887, 0.1132417619, 0.3928683996, 0.5157334805, 0.0421098955, 0.5403512716, 0.2728718519, -0.0509802438, 0.130217433, -0.2260809541, 0.1423335224, -0.0559347868, -0.3948753774, -0.0694175884, -0.1584545821, 0.0007229695, -0.0193023738, -0.157888025, -0.0771823972, -0.2333943397, 0.1978649944, 0.0093691153, -0.1479647011, 0.2445992678, -0.3535998166, 0.0670065284, 0.1714166999, 0.3258111477, -0.0797345564, -0.1897968054, -0.02940543, -0.1731527001, 0.2757436633, 0.0925865695, -0.3803437352, -0.5879612565, -0.2355359793, 0.2904399931, 0.2428919673, 0.8867891431, -0.3483828604, -0.2687593102, 0.0277345143, 0.1150508299, 0.3138073683, -0.420945406, -0.0172105003, 0.3141970038, -0.0256401412, -0.2833343446, 0.0376374722, -0.3385159969, 0.1933983564, -0.0536344685, 0.3005484641, 0.0456705056, -0.0770859048, 0.0239048228, 0.0019387809, -0.0911118016, 0.155749023, -0.3271614909, -0.3157286048, -0.1845865697, 0.1295760423, 0.1652625948, 0.2534556985, -0.015430266, 0.2368920743, -0.1467077434, 0.0309756007, 0.4134193361, 0.1124803126, 0.3990642428, -0.0775865465, 0.3258313835, 0.227422893, -0.0900941044, 0.1546642482, 0.2868456244, 0.5725414157, -0.0323080644, 0.3078282177, -0.1749108732, 0.4172322452, 0.1886118948, -0.2250883877, 0.2920154035, -0.3986315131, 0.0418120176, -0.2910481989, 0.0567376018, 0.2856907845, -0.008488154, -0.2237467617, -0.5144874454, 0.1979600489, -0.0459268242, -0.0560951382, 0.7299509645, -0.0128056565, -0.2948811352, 0.2372062206, 0.2152870744, 0.7660694718, -0.0186674036, 0.2062073499, 0.3183413744, -0.176482603, 0.118490234, -0.3992277384, 0.2899084687, -0.1800289154, -0.2160352767, -0.1287498176, -0.0633258224, 0.0366717577, 0.1583643258, -0.0426299833, 0.1004423723, 0.2357468158, 0.4692077041, 0.1830513626, 0.0587856025, -0.0521932282, -0.3091671169, -0.2232974917, 0.0033575257, -0.0997157842, -0.0960991234, 0.0906258896, -0.110776484, -0.0457365699, -0.0773631781, -0.5194411874, 0.0535821132, -0.3627541065, 0.3261047006, -0.2141866237, -0.6226693988, 0.2401055098, -0.0428159051, -0.0291735642, 0.0382410698, -0.385284692, 0.0233800597, 0.0071326531, 0.1889747083, 0.0599404685, 0.131660372, 0.327873826, 0.0018269389, -0.2886902094, 0.2651730776, -0.0154095544, -0.2867151499, -0.0843158811, 0.0425843336, -0.2340361327, -0.1563681513, -0.154581964, -0.184483394, -0.0673311725, -0.1933299899, 0.064413771, 0.0609555654, -0.1925369054, 0.2862131, 0.1178911775, -0.3722852767, 0.1208425537, 0.5922311544, -0.1044874862, 0.0986310095, 0.6652623415, 0.0796928778, -0.0411516912, -0.1205023974, 0.2942801714, -0.0756262243, -0.268873632, -0.0503177159, -0.0487553254, 0.1516090631, -0.0506255887, -0.167547822, -0.0805245861, -0.1758137941, -0.2727404237, -0.5850058198, -0.2710942924, 0.4216202796, 0.0465104692, 0.0664132163, -0.0039542327, -0.0125648165, 0.1235478297, -0.2457625568, -0.173204571, -0.1730000824, -0.1864524335, 0.0992197767, 0.109084852, 0.3034298718, 0.1271173358, -0.1642693281, 0.0024715005, 0.2740500569, 0.005958837, -0.0537681617, -0.0383958332, 0.1883956343, 0.0306131132, -0.2857909799, -0.2305451483, -0.2729805112, -0.2378116548, -0.0993069485, 0.0965342745, 0.1879846007, -0.0069698771, 0.1475953907, -0.3082165718, 0.0017598118, -0.1866011918, 0.1458521485, -0.1074182317, -0.1133364514, 0.2258211821, 0.1386358738, 0.0547134466, 0.1314424574, -0.1657541543, 0.1480870843, -0.2875167131, -0.1025430337, 0.4952565432, -0.5074385405, 0.3625124991, -0.1919727921, 0.252681464, 0.392298013, -0.1583902687, -0.0099186078, 0.1625702679, 0.0692374259, -0.3233441412, 0.0294750836, -0.3804225326, -0.1392388344, -0.027701715, 0.26228863, 0.123854652, 0.0852112174, 0.1133655161, -0.0637324527, 0.3936152756, -0.2213416845, -0.1942415833, 0.4566861093, 0.063235864, 0.1766739488, -0.0688645616, 0.1945198625, 0.1705157012, 0.7244449258, -0.0006022932, 0.042460002, -0.2130423337, -0.0665801987, -0.0629656687, -0.3499328494, -0.4599939883, 0.144386068, -0.2989296317, 0.1111950725, 0.0577003472, 0.3975704908, -0.1730648726, -0.3031702936, -0.0472435169, -0.1753057837, -0.1730867922, 0.0281847045, -0.5757647157, -0.1632053256, -0.1118373945, -0.0222658273, 0.0006013685, 0.0871397108, 0.2948348522, 0.0391984954, -0.0443058498, -0.2205421627, -0.2438505739, 0.4409479499, -0.029736381, -0.2656317949, 0.0741010755, 0.1560167819, -0.0196603518, 0.0571200587, 0.1199645326, 0.4240724444, 0.1152626052, -0.310426116, 0.2576148808, -0.0664638057, -0.0699197724, 0.0609894581, 0.3784953356, 0.2500983477, 0.2076296955, 0.2722445428, 0.0345834494, 0.1915850788, 0.0031156801, 0.2969479263, 0.1994044483, -0.3863657713, 0.195916608, -0.4573026299, -0.2188980877, 0.1199477464, -0.2961947322, 0.1033784896, 0.2350989729, 0.5911546946, 0.2280559689, 0.1881303489, -0.002915831, 0.0041497676, 0.0947549045, 0.5744278431, 0.0319978744, 0.0476973504, -0.2640280426, -0.1280625314, -0.5037081242, 0.0677492172, -0.105383262, 0.054201033, 0.2863100469, -0.0168936588, 0.5386120677, 0.1733201891, 0.266548425, -0.0246534441, -0.2372231036, 0.4261235893, -0.384573549, -0.4848055243, -0.2835628688, 0.2862389982, -0.0762587339, -0.3783429265, 0.0141425095, 0.083425723, -0.021082703, -0.4094472229, -0.0861343443, -0.0014884736, 0.2176867723, 0.2670980692, -0.1251600087, 0.5147185326, 0.0774391815, 0.2180286199, -0.3981278539, -0.2362485677, -0.2551153302, 0.4228233695, -0.0760391504, 0.4331750274, 0.0186811686, -0.2309828401, -0.3043473959, 0.4147603512, -0.1831318289, -0.1479568779, -0.1847371757, 0.2072651833, -0.3646056652, 0.1374667436, -0.1810904592, 0.0608295053, -0.0882928818, 0.1937090158, -0.5200526714, -0.2763133347, 0.5229322314, -0.3914631009, -0.5244169831, 0.1773594469, 0.170191884, -0.2286364436, -0.0885095745, -0.6719046831, -0.1520963013, 0.186852783, -0.0626940429, -0.2174043208, 0.0681295618, 0.0103617907, 0.0388517305, -0.1853183806, 0.5076367855, 0.0016692254, -0.133594498, -0.0853607357, -0.1912436038 ]
https://github.com/huggingface/datasets/issues/3615
Dataset BnL Historical Newspapers does not work in streaming mode
@albertvillanova let me know if there is anything I can do to help with this. I had a quick look at the code again and though I could try the following changes: - use `download` instead of `download_and_extract` https://github.com/huggingface/datasets/blob/d3d339fb86d378f4cb3c5d1de423315c07a466c6/datasets/bnl_newspapers/bnl_newspapers.py#L136 - swith to using `iter_archive` to loop through downloaded data to replace https://github.com/huggingface/datasets/blob/d3d339fb86d378f4cb3c5d1de423315c07a466c6/datasets/bnl_newspapers/bnl_newspapers.py#L159 Let me know if it's useful for me to try and make those changes.
## Describe the bug When trying to load in streaming mode, it "hangs"... ## Steps to reproduce the bug ```python ds = load_dataset("bnl_newspapers", split="train", streaming=True) ``` ## Expected results The code should be optimized, so that it works fast in streaming mode. CC: @davanstrien
66
Dataset BnL Historical Newspapers does not work in streaming mode ## Describe the bug When trying to load in streaming mode, it "hangs"... ## Steps to reproduce the bug ```python ds = load_dataset("bnl_newspapers", split="train", streaming=True) ``` ## Expected results The code should be optimized, so that it works fast in streaming mode. CC: @davanstrien @albertvillanova let me know if there is anything I can do to help with this. I had a quick look at the code again and though I could try the following changes: - use `download` instead of `download_and_extract` https://github.com/huggingface/datasets/blob/d3d339fb86d378f4cb3c5d1de423315c07a466c6/datasets/bnl_newspapers/bnl_newspapers.py#L136 - swith to using `iter_archive` to loop through downloaded data to replace https://github.com/huggingface/datasets/blob/d3d339fb86d378f4cb3c5d1de423315c07a466c6/datasets/bnl_newspapers/bnl_newspapers.py#L159 Let me know if it's useful for me to try and make those changes.
[ -0.5219474435, -0.026741961, 0.0061430652, 0.2931693196, 0.2553721666, 0.1118415147, 0.1230439991, 0.3831239939, 0.1705756783, -0.0961003527, -0.0062708762, 0.0785974413, -0.1458618343, 0.0590120964, -0.236588791, -0.3113933802, 0.2990855873, 0.1549980938, 0.0718444735, 0.0589086451, -0.2371332943, 0.0749769732, -0.5070959926, -0.466145128, -0.2282555699, 0.1365103722, -0.0228516664, 0.2049665451, -0.1659233272, -0.0999106914, 0.276722014, 0.1039444655, 0.4577462077, 0.5200037956, -0.0001188698, -0.0827115998, 0.3516005874, -0.0956425741, -0.2744155228, -0.2743734717, -0.1077818051, -0.0688679963, 0.0779995546, -0.1111017019, -0.2712130249, -0.1995776892, -0.0691712499, -0.3929201663, 0.4679187536, 0.2977482677, 0.1453496665, 0.1926878393, -0.1655693799, 0.0013500778, -0.1085224077, 0.0525149703, -0.2397520095, 0.1891165823, 0.2295179665, 0.1840102077, 0.0211686175, 0.5254442692, 0.0169096254, -0.147824645, 0.1848908663, -0.0498701669, 0.0246634409, -0.0573560186, -0.0462434106, 0.0471539125, 0.3462712169, -0.0298553202, -0.0855976269, -0.2008526325, 0.0744751021, -0.3034158349, 0.2652470767, 0.1462445706, -0.2524252236, 0.1338173598, -0.0943585187, -0.2057518512, -0.1824168414, 0.0830049142, 0.1081206501, 0.2411431074, -0.1296548843, -0.0321603045, 0.2505602837, 0.067099005, 0.3769626617, -0.1226325184, 0.0403622948, 0.0431153886, -0.6166305542, 0.2182705551, -0.0060959794, 0.3178244233, -0.3050346375, 0.1997179091, 0.1107601002, 0.0334960818, 0.2594221532, -0.0305891559, 0.2919690311, 0.0517667867, -0.1228695065, -0.1545768529, 0.294300288, 0.4829491079, -0.2342448086, -0.1281074286, -0.0632722676, -0.025843313, 0.0336802155, -0.3226457238, 0.3366729319, -0.2652921379, 0.0867257416, -0.0142122554, -0.2854503095, 0.0194530133, 0.109205842, 0.4750638604, -0.241145879, 0.3439519107, 0.0834545791, -0.0844084099, -0.2026797533, -0.1942851543, -0.1769749075, -0.1486897469, -0.1298671663, -0.304589361, 0.0898206308, -0.5245130062, -0.1829954833, 0.1329463869, -0.2250606716, -0.1240776926, -0.0390196033, -0.3264344037, 0.125340119, 0.240755856, 0.1418254375, 0.0803772882, 0.0965539888, 0.1080961153, -0.1910402775, 0.2378580719, -0.0173175447, -0.2955728769, 0.081446819, 0.140445441, -0.177452594, 0.1090032831, -0.1533711702, 0.3745016158, 0.0632743165, -0.3681231737, -0.0400950164, 0.0368609019, -0.2742674053, -0.0743238181, 0.4390893877, 0.2662694454, -0.2066645473, -0.0263350196, -0.3113428652, -0.0196548793, 0.5101729631, 0.07284078, -0.0265800413, -0.1059017703, -0.0259895585, -0.262445569, 0.5732402802, 0.0605455227, -0.5109141469, 0.3169443607, -0.0095809018, 0.4266857505, 0.1538582593, 0.2408715487, 0.2230631709, -0.0871506408, -0.1946763992, 0.6935070753, -0.0095630186, 0.1935733557, -0.2956853211, -0.1272120625, 0.4511513114, 0.4111347497, -0.0740018263, 0.0990712494, -0.214172408, 0.3258071542, 0.2675776184, 0.1355015785, 0.077521801, 0.106470786, 0.163979739, 0.1820100695, 0.1633378416, -0.3088375032, -0.279876709, 0.1516236067, 0.245940879, 0.0362885483, -0.0064352439, -0.1206546798, -0.201536417, -0.0744029433, -0.3499237597, -0.1904702783, 0.0223801564, 0.0921008959, 0.2579064369, 0.1992124468, -0.2250772268, 0.6934368014, -0.2023303509, -0.0230113976, -0.4818649888, 0.1243752092, -0.070153065, -0.2583260834, 0.0881587937, 0.1623311937, -0.1286933124, -0.1137500629, -0.2916869521, 0.3388073146, -0.2131440341, 0.4025121033, -0.1742613763, -0.0290208235, 0.0856865197, -0.3313430548, 0.1616500616, 0.5610716939, 0.0300589111, -0.1758023202, -0.2713856101, 0.0964790732, -0.088669762, 0.4176139534, -0.0621693917, 0.0016836064, -0.1019185111, 0.0615938418, 0.0530166328, 0.1244999394, 0.4176783562, -0.3066267073, 0.2558011413, 0.0066708755, -0.2604621351, -0.0583328493, 0.2424688786, 0.2437669486, -0.057558313, 0.3308299184, -0.160148859, -0.0903823897, 0.1484653801, 0.0722075179, 0.32530725, 0.0551386848, 0.1676693559, 0.1502484977, 0.2567785084, -0.2534900308, 0.2875497937, -0.0372715816, 0.0836166516, 0.0473782383, 0.21771954, -0.060022302, -0.219302088, -0.0358668379, 0.0766929463, 0.3685021102, -0.1360238492, 0.1588131636, -0.2040436268, -0.2715183496, -0.2371636629, -0.2203075737, -0.0622761883, -0.3284317553, -0.2982082367, 0.4662900269, 0.0331288762, 0.206784457, -0.1629171669, 0.2437369823, 0.2910265028, -0.1190653071, -0.3302271366, -0.0167861916, -0.1635900736, 0.058267802, 0.2346153855, 0.085220255, 0.2925885618, -0.0176904611, -0.1159628928, 0.015856063, -0.0501263551, 0.0342346355, -0.1457346976, 0.3553352952, 0.020650601, 0.3922761083, -0.2117174566, 0.0249720197, 0.3484272957, -0.1294442415, 0.1124444827, 0.1623927057, 0.0881048664, 0.4564239085, 0.0451653413, -0.3189421594, -0.4450543523, -0.4904760122, 0.2450392842, -0.3135274649, 0.0978150889, 0.1514782459, 0.1871745735, -0.1489582509, 0.2925102115, 0.1276791841, -0.162641868, -0.4262374938, 0.553819418, -0.0456919111, -0.3494677544, -0.1083989069, 0.2279256582, -0.426827997, 0.1422419548, -0.5398598313, 0.0581805408, -0.1013215035, -0.0176125187, 0.0591524802, -0.0977796316, 0.0938318446, -0.3503182828, 0.1168783754, -0.0221633688, 0.1937298477, -0.0933392271, -0.2062701434, 0.4710650146, 0.2521648109, 0.154862389, -0.0716432631, 0.1382940114, 0.6411320567, 0.1451678425, 0.3172513843, 0.0489117876, 0.2021291554, -0.0569716059, -0.4211845696, 0.0479787439, -0.1412776709, -0.1675950289, 0.3200127482, 0.2082893848, -0.1542683393, -0.3889623582, -0.0770981982, 0.0256830156, -0.3692159355, 0.2375371605, -0.0743505359, 0.3737432957, -0.1203668416, 0.1498772055, 0.1428367645, -0.3304120004, -0.0002201298, 0.3265371323, -0.0265517645, -0.098884061, 0.1147190556, 0.0423706882, -0.5465987921, 0.0647629946, -0.0008593338, 0.3384376764, -0.0225361157, -0.076423943, 0.2104523331, -0.1283497214, 0.6920932531, -0.312936008, -0.0398453102, 0.1118525937, 0.0731306002, -0.2693302929, 0.0119822035, -0.0572361089, 0.258851409, 0.2628759742, 0.1721506566, -0.2064544261, -0.177328974, 0.2741162181, 0.0410747603, -0.1025096774, -0.5345306396, -0.3987927139, 0.1053418517, -0.2443848997, 0.061715316, -0.2533171177, 0.1956633478, -0.4211398363, 0.0198772904, 0.0612409562, 0.371558845, 0.2160562277, 0.1014772803, 0.2930828631, 0.1024730727, 0.3285382092, 0.4471666217, 0.0865319446, -0.0866961703, 0.5222649574, 0.0107348431, -0.3773562014, 0.1337337792, 0.1230620667, 0.1690396667, 0.3955809176, -0.1866701245, 0.0162450932, 0.4186271429, 0.0930234417, -0.2433126867, -0.0890947133, 0.153498292, 0.1387490481, -0.2353386879, -0.6462064385, 0.4328339696, 0.0642917082, 0.1426420808, 0.1300669611, -0.370457232, -0.0130391018, 0.1700561643, -0.2671934664, 0.9054769874, 0.208733812, -0.0045000366, 0.3417942524, 0.0303960256, 0.3860122263, -0.3317005634, -0.0501492694, -0.3567444384, -0.4482345283, 0.0287204701, -0.0692372993, 0.1024263948, -0.3535153866, -0.3840819895, 0.1111454815, -0.1191049218, 0.5356870294, -0.0663770586, 0.0530851334, -0.2389150113, -0.3228885829, -0.8444302082, 0.051130414, -0.1765780896, 0.1021790206, -0.1405222118, -0.0736259297, -0.0293494035, 0.0250172783, -0.3298437595, 0.1225369722, -0.1888769567, -0.1164650396, -0.0540061407, -0.3723588884, 0.1441491544, 0.5157245398, -0.1015041694, 0.0297936071, -0.2661446333, 0.2777908742, 0.1775187701, 0.0071523222, 0.1650479138, -0.0641325787, 0.1216085181, -0.017777836, -0.1450483948, 0.1276704669, -0.1708992422, -0.2703564167, 0.1324039847, -0.1374377757, 0.3019824326, -0.1752329022, -0.4155541062, -0.0948185846, -0.0711163059, -0.2822885215, 0.1448044479, -0.2139744759, -0.0574770384, 0.24031955, 0.0434782393, -0.0561539568, -0.1538965404, 0.5680718422, 0.0299005974, 0.113156274, 0.3921697736, 0.7166850567, -0.3482686281, -0.1776841879, 0.1119866669, 0.0277259033, -0.2854495347, 0.1404743046, -0.0291624162, 0.0091363378, 0.1519851238, 0.1975729764, 0.0504602194, -0.0887584984, -0.1936536729, -0.3429968655, -0.2561972439, 0.0990868881, 0.269880116, 0.0316902548, -0.1364787966, -0.0475260131, 0.0605046004, 0.0161398128, -0.2703286707, -0.1395938247, -0.105964005, 0.0436002985, -0.150793314, -0.0367258564, 0.4397752285, -0.1208413467, 0.0156308282, 0.2754420638, -0.2076411098, -0.1658336073, -0.2150732726, 0.1572224051, -0.0223419964, -0.1472537369, -0.2865855992, -0.3041681647, -0.2757965922, -0.1481803507, -0.0098520285, -0.1528554559, -0.0224204045, -0.2119490951, 0.2551270425, -0.0190966967, -0.2922421992, 0.1773947775, -0.2216155976, 0.2266599536, -0.0914451033, 0.0439796261, -0.0963897035, 0.0669820309, -0.3332823217, -0.0486954637, 0.3701052666, -0.0667394251, 0.6816518903, -0.1613260508, 0.2416305989, 0.2428581864, 0.5064925551, 0.5732761025, -0.2125077099, -0.1667303294, -0.1513377279, 0.1268011779, -0.2309331149, 0.1810984462, -0.0644760579, 0.0135529852, -0.0948551074, 0.0662372783, 0.0755669773, -0.1587746888, -0.3270718455, 0.1801298708, 0.339087218, 0.0864340514, 0.0314509794, 0.3534129262, 0.2575313151, 0.1108909771, -0.1000445336, 0.0398801863, -0.1580388397, 0.2440643758, -0.0750345513, -0.0010840587, 0.2878327966, 0.3733712733, -0.290887177, -0.4149761498, 0.0178612154, 0.6308205724, -0.1534026563, 0.2774187326, -0.1265009046, 0.5731316805, -0.2784633934, -0.0655786395, -0.0899621546, 0.3850943744, -0.0786604732, 0.0243207607, 0.1689618379, -0.0349625833, -0.316041708, 0.0060990807, -0.0487779863, 0.1972782612, -0.070105806, 0.3353893757, 0.1411629021, -0.5322511196, 0.0298455413, 0.054034099, 0.4531761706, -0.4160292745, 0.3139493763, 0.3518109918, 0.1559001803, 0.1313479841, 0.2125943452, 0.3140442967, 0.3184748888, -0.1382179856, 0.0989959538, 0.0845186263, -0.0927830786, 0.1086620018, 0.2370931655, 0.3517625332, 0.075758554, 0.295640409, 0.0421969593, -0.1781654358, 0.0803037733, -0.0440138467, 0.2712715864, -0.1344958842, 0.2639244199, -0.0797643214, 0.0678110272, -0.1731312722, -0.1929745078, -0.2218184918, 0.158465758, 0.1565598696, -0.1408436894, 0.0082089612, -0.0153985256, 0.0466559306, 0.0391008295, 0.6715772748, 0.3728094399, 0.3369447291, -0.3345735967, -0.5765368342, -0.7283442616, -0.0471592993, -0.0799376667, 0.0624147654, 0.3492706418, 0.1491371691, -0.1085858196, 0.2787313461, -0.2293616086, -0.0892857164, -0.2001340538, 0.3560742736, -0.3969115317, -0.2157154977, 0.0067256247, 0.1574530303, -0.2071572095, -0.3732840419, 0.3591250777, -0.1677569151, -0.1096712947, -0.1122333929, -0.3165622056, -0.0807772502, 0.043356549, 0.2147011906, 0.0274332613, -0.0051489077, -0.009899307, -0.2364608496, -0.2587848604, 0.0449174196, -0.0001569624, 0.0771254376, 0.0469925702, 0.6053797007, -0.2091682553, -0.0762053356, -0.2327849567, 0.2498694211, 0.1338821799, -0.5013354421, -0.5760106444, -0.1387207657, -0.0350413248, 0.5217354894, 0.0135135194, 0.3702889085, -0.1034874767, 0.1751407385, -0.3788636029, -0.3475804329, 0.4932982922, -0.0346057266, -0.2848361731, -0.0664456561, 0.0980539471, 0.3900361061, 0.2107789665, -0.6850100756, 0.1096449122, 0.1306561977, -0.011704132, 0.1864160597, 0.3570190668, 0.0065455446, 0.1557605863, -0.0448676348, 0.0466942936, 0.0067339838, -0.1957257539, 0.1542298645, -0.0349979512 ]
https://github.com/huggingface/datasets/issues/3615
Dataset BnL Historical Newspapers does not work in streaming mode
Thanks @davanstrien. I have already been working on it so that it can be used in the BigScience workshop. I agree that the `rglob()` is not efficient in this case. I tried different solutions without success: - `iter_archive` cannot be used in this case because it does not support ZIP files yet Finally I have used `iter_files()`.
## Describe the bug When trying to load in streaming mode, it "hangs"... ## Steps to reproduce the bug ```python ds = load_dataset("bnl_newspapers", split="train", streaming=True) ``` ## Expected results The code should be optimized, so that it works fast in streaming mode. CC: @davanstrien
57
Dataset BnL Historical Newspapers does not work in streaming mode ## Describe the bug When trying to load in streaming mode, it "hangs"... ## Steps to reproduce the bug ```python ds = load_dataset("bnl_newspapers", split="train", streaming=True) ``` ## Expected results The code should be optimized, so that it works fast in streaming mode. CC: @davanstrien Thanks @davanstrien. I have already been working on it so that it can be used in the BigScience workshop. I agree that the `rglob()` is not efficient in this case. I tried different solutions without success: - `iter_archive` cannot be used in this case because it does not support ZIP files yet Finally I have used `iter_files()`.
[ -0.5628231168, -0.1082761958, 0.0663999617, 0.3091987967, 0.1017114893, 0.0588339008, 0.2123790532, 0.4981285334, 0.177158609, -0.0876947269, -0.0313860998, 0.1764090061, -0.2093244344, -0.0390730761, -0.2260355949, -0.2108296007, 0.2899224162, 0.2498149425, 0.0469625555, 0.0502227247, -0.2475501597, 0.131508261, -0.5979425907, -0.428211391, -0.1510833353, 0.0072058318, 0.0507252663, 0.1879527271, -0.0633818135, -0.0157364625, 0.1460557729, 0.0920711607, 0.5395732522, 0.5176458359, -0.0001239608, -0.0058313087, 0.2569401264, -0.095187448, -0.2906939983, -0.2585142255, -0.1020107493, -0.0654195249, -0.1160978749, -0.1392214149, -0.3070296347, -0.2799563706, 0.073051922, -0.3725591004, 0.3655767441, 0.3863725364, 0.0761841983, 0.1409156024, -0.2004666924, 0.0304290242, -0.0278575104, 0.0884696543, -0.1991851032, 0.1636557877, 0.0284789354, 0.2199262679, -0.1214352176, 0.5261400342, -0.0443478748, -0.1346152276, 0.1502926201, -0.0292993579, 0.0342353955, -0.0540625677, -0.1070085242, 0.1110851765, 0.3655202389, -0.0679477006, -0.0724586919, -0.0942813605, 0.0151459789, -0.3797848225, 0.2239279002, 0.2556232214, -0.2337910235, 0.1618898511, -0.0715170205, -0.161942482, -0.2990465164, 0.1293316185, 0.1243599132, 0.3584264517, -0.0392775834, 0.0846698806, 0.2196493, 0.0624308847, 0.4606912136, -0.0810479522, -0.0387355387, 0.0168543924, -0.6160318851, 0.1716555655, -0.0549366809, 0.4378824234, -0.2609732449, 0.2320353836, 0.1889009327, -0.0447730199, 0.3474465907, 0.0766766667, 0.1760537773, 0.0455834046, -0.1449992806, -0.0759020373, 0.3708622754, 0.2841507494, -0.2485096008, -0.0292159226, -0.1745188534, 0.0778649226, 0.0627371967, -0.3138667047, 0.1779145598, -0.1268665791, 0.1037227735, -0.0083748875, -0.4026607573, -0.0410089493, 0.0827727765, 0.4458235502, -0.2637751102, 0.23038131, 0.0432288647, -0.193497777, -0.0636026934, -0.173786819, -0.0581782013, -0.0795031711, -0.1065652594, -0.3251214325, 0.0170538835, -0.4737389684, -0.1635611206, 0.0957134366, -0.2170660645, 0.0028374211, 0.0662014112, -0.3951206803, 0.3001796305, 0.226998657, 0.1058840826, 0.0803544, 0.0909439474, 0.0698569939, -0.3152311742, 0.2838228941, 0.0892566442, -0.2813374102, 0.0133519666, 0.0403755791, -0.1535687, 0.1038666293, 0.0692966133, 0.3817709684, 0.0241083838, -0.5601128936, -0.0512313806, 0.100035198, -0.2327524275, -0.0708360225, 0.3535827398, 0.1926696748, -0.2860063314, 0.0130665377, -0.2482083291, 0.0597473606, 0.6290710568, 0.1090386584, -0.032757733, -0.0597412065, -0.0215754695, -0.3601931632, 0.6638295054, 0.1785091311, -0.6226029396, 0.3290173411, -0.0440114886, 0.3789472878, 0.256814003, 0.4254401028, 0.1411830634, -0.1134290248, -0.0331390314, 0.7479306459, 0.0334100984, 0.1972769946, -0.3132408261, 0.0272300187, 0.6238605976, 0.4029538333, -0.0365589149, 0.094541125, -0.2269357592, 0.2794874907, 0.2694798112, 0.1740863174, 0.0402028672, 0.0617434606, 0.1293715388, -0.111705102, 0.2114736885, -0.2633316219, -0.1505527347, 0.0874703974, 0.2182418406, 0.0771939009, 0.119527638, -0.0294009931, -0.135700047, -0.099067606, -0.2282644659, -0.0811941847, -0.0774864629, 0.2016584277, 0.2784947455, 0.1968647093, -0.2295963764, 0.823635757, -0.142096296, -0.1451894641, -0.5379843712, 0.0282996017, -0.0312606581, -0.2162494212, 0.1084012389, 0.0711535364, -0.1476656348, -0.1075342596, -0.2726501226, 0.2455594838, -0.3096320629, 0.1885529608, -0.1253379583, -0.0732256472, 0.0132540502, -0.2688420415, 0.210709691, 0.5545508862, 0.0169930961, -0.0410036892, -0.3205722272, 0.134883821, 0.1117881313, 0.389552325, -0.0641787499, 0.0346042514, -0.0769979283, 0.022753302, 0.0520081893, 0.1884341985, 0.4336003363, -0.1703290492, 0.1715059429, 0.2094153464, -0.3681911528, -0.0367127992, 0.4160194099, 0.2357078642, -0.0367852151, 0.4611196816, -0.2587347627, -0.1360319108, 0.2198809683, -0.02192517, 0.3283159733, 0.1078341529, 0.1342517138, 0.0524983592, 0.2249073535, -0.1705569774, 0.2240942866, -0.0902681127, 0.2084422857, 0.0002339119, 0.2020128816, -0.045330625, -0.1905062348, -0.1370840818, 0.0800944492, 0.3698251545, -0.050729055, 0.2315992713, -0.1140810177, -0.2091330588, -0.1722791642, -0.2051212639, -0.0705000162, -0.1947009861, -0.1990063787, 0.4103383422, 0.1228992641, 0.2779925168, -0.0066667707, 0.2831015885, 0.366931051, -0.2461257279, -0.2704751492, -0.0430120118, -0.2304380983, 0.0233427025, 0.1838715374, 0.02886739, 0.2801907063, -0.0030244759, -0.0659067258, -0.1101369336, -0.0394906178, 0.0402788408, -0.1410763562, 0.3721103668, -0.0289675258, 0.2113321573, -0.3266676664, 0.0367686972, 0.2304909974, -0.1415745765, 0.1516415924, 0.28784132, -0.0702592432, 0.3904883265, 0.094060272, -0.36941275, -0.4928660989, -0.5057162642, 0.2641812563, -0.3052361906, 0.2377546281, 0.0303495079, 0.1730629206, -0.2884063125, 0.3283097744, 0.0890202671, -0.1140573174, -0.5250402689, 0.6210098267, -0.0405423641, -0.3506957889, -0.2335724086, 0.1969621629, -0.414470613, 0.2828266025, -0.4940617681, 0.12586236, -0.0825576559, -0.0796835348, 0.0279828645, -0.1077232808, 0.0426409282, -0.3474770188, 0.0832950026, 0.0351569727, 0.1976484805, -0.0235359315, -0.2384921014, 0.5426082015, 0.4358036816, 0.1139424294, -0.0220932197, 0.0108537031, 0.596901536, 0.0477658883, 0.3033668101, 0.0328851901, 0.2285106927, 0.0305124447, -0.350299269, 0.0602582209, -0.0351334102, -0.1639744043, 0.3391292989, 0.1348240674, -0.3285434246, -0.3342379928, -0.1296084076, 0.0514931902, -0.3798007667, 0.3649713695, -0.1884564459, 0.3353004158, -0.1536591202, 0.0506915413, 0.0491474122, -0.3651550412, 0.0617346019, 0.1946603656, 0.0199744198, -0.0527954958, 0.0448591895, -0.0025916402, -0.5564672351, 0.1283954531, -0.0273467582, 0.4220211804, -0.0640147179, -0.174203679, 0.1197758093, -0.1242654994, 0.5941389799, -0.2842282653, -0.0529386252, 0.1676983982, 0.1462876499, -0.3848397136, 0.1106187627, -0.0808743089, 0.3611575663, 0.3585225642, 0.2039269656, -0.148220703, -0.1605036557, 0.2631115317, 0.0834935531, -0.1368232816, -0.5526041985, -0.3909701109, 0.102816619, -0.2919010222, 0.0092302784, -0.2085028291, 0.1175165102, -0.3316140175, -0.0607070513, -0.0177915879, 0.3574283421, 0.3576814532, 0.1436244696, 0.3211673498, 0.0533346534, 0.2658613026, 0.3811961114, 0.2317733616, -0.2151230574, 0.3664679825, -0.0154998926, -0.2901285291, 0.1652627736, 0.1407941729, 0.2952969968, 0.3313595355, -0.276576072, 0.0215531122, 0.2562119961, 0.2024003416, -0.1469557732, -0.0400287136, 0.03307309, 0.0787384883, -0.5061169863, -0.6229168177, 0.3464277983, 0.1625269353, 0.047469575, 0.2912915647, -0.4451709092, 0.0953652337, 0.1677017957, -0.2426547557, 0.9709663987, 0.1753025204, 0.0697808787, 0.2928057909, 0.1600830704, 0.3729637861, -0.3740843534, 0.1255612969, -0.4348240793, -0.4797188044, -0.0420949943, -0.1169298664, -0.0155153694, -0.3226683438, -0.5110754371, 0.1333141178, -0.0686404333, 0.4713771343, 0.0161792208, 0.03314697, -0.2830263376, -0.3965708017, -0.8311293125, -0.0220335163, -0.1521144658, 0.0501522906, -0.0805029273, -0.1563455909, -0.0145851253, -0.0082635125, -0.2438083589, 0.1330596954, -0.0474884026, -0.1083085313, -0.0319022164, -0.4226469398, -0.0195811633, 0.5712047219, -0.0850945562, 0.0998164788, -0.1270449162, 0.1746996492, 0.1120797172, 0.0223397259, 0.1803845465, -0.0647763833, 0.2072479278, 0.0193888899, -0.1549850553, 0.2162924558, -0.1594743133, -0.264072001, 0.1313834488, -0.0886507183, 0.3766081333, -0.0727524832, -0.263630867, -0.1145110577, -0.2076655775, -0.2544009387, 0.0780411959, -0.1241398603, -0.1240877658, 0.3086794615, -0.0156206135, -0.1826837957, -0.1532261819, 0.4352402985, 0.1275706738, 0.2317605168, 0.283939898, 0.604604423, -0.337204814, -0.1685996503, 0.1665551215, 0.0714863166, -0.311624527, 0.2220974118, -0.0188648514, -0.0329372399, 0.1444054693, 0.0516984463, -0.0118368352, -0.1312843114, -0.2217826396, -0.3225238919, -0.2487334013, 0.0561290309, 0.2335049808, 0.0784001797, 0.0032141828, -0.3025685251, 0.0369378924, -0.0064463955, -0.21514301, -0.1321124583, -0.1705215126, 0.0364209004, -0.262830466, 0.016662702, 0.4358493388, -0.0312606171, -0.0008018334, 0.3049350977, -0.1318862587, -0.1103128418, -0.2707772851, 0.1782791167, -0.002245194, -0.179537341, -0.2206645608, -0.3295086026, -0.3213958442, -0.1978052258, 0.0924115926, -0.1036874056, -0.0360038988, -0.2252924144, 0.2130824476, -0.1461513638, -0.2419047058, 0.1426545978, -0.1280397326, 0.2368543148, -0.0574401505, 0.0967442989, -0.1167299598, -0.0043623061, -0.3059125841, 0.0392442159, 0.4725506008, -0.1375415176, 0.6948196888, -0.1604962349, 0.2543459535, 0.1329042912, 0.3783433735, 0.4426982999, -0.1872770935, -0.0946561918, -0.1020163074, 0.0588449091, -0.3307717741, 0.000757793, -0.1051102206, -0.124111861, -0.078570649, 0.0942708328, 0.0616385192, -0.1003210545, -0.3617966175, 0.0562972501, 0.2687166631, 0.1046188027, -0.1516997814, 0.3756495416, 0.3015778065, 0.1468898356, -0.1572154909, 0.0543195494, -0.0774946362, 0.3381777704, -0.0326684378, 0.1058109552, 0.3048374057, 0.2817745805, -0.2943299413, -0.4480720162, 0.1215178594, 0.6377775073, -0.0130756851, 0.2825642228, -0.0499342903, 0.515380621, -0.2281100601, 0.0290005542, -0.1345912516, 0.3586704433, -0.0135396039, 0.1052120402, 0.2015815675, -0.0621816143, -0.333157599, 0.0824645981, -0.0260811113, 0.1833303422, -0.0932478532, 0.480237484, 0.22283867, -0.4943830967, 0.1355441958, 0.1084072962, 0.361061722, -0.4960629642, 0.2248546481, 0.2455958575, 0.1308446229, 0.1151580289, 0.0580192134, 0.3189740777, 0.3430022597, -0.12703228, 0.1821651459, 0.073203817, -0.0955869406, 0.042342633, 0.1834364086, 0.398070842, 0.120533146, 0.2590673864, -0.0280147381, -0.1223805174, 0.2174274921, -0.0763288885, 0.3268953562, 0.0212325975, 0.3293442428, -0.025372237, 0.0448461063, -0.1893035769, -0.2309112102, -0.2511420846, 0.153630048, 0.2796491385, -0.0988416225, 0.0167617593, -0.0234762821, 0.0180622227, 0.0236925855, 0.6106167436, 0.2842984498, 0.3899959624, -0.3321966231, -0.5622048974, -0.5834978819, 0.0262550581, -0.1140842736, 0.1113745496, 0.3339973986, 0.1153212413, -0.0307260733, 0.2309635878, -0.2680916786, -0.0830309093, -0.2879471183, 0.3729982972, -0.4124721289, -0.212082684, 0.0355832204, 0.2942290902, -0.2091183513, -0.4635337889, 0.3065983653, -0.2115616798, -0.0844748765, -0.2465125769, -0.3916088045, -0.0502473973, 0.0603898875, 0.3481056392, 0.0249572042, -0.0316052325, -0.0644477606, -0.2612811029, -0.171566397, 0.1732802838, -0.0470746271, -0.0642243698, 0.1170082763, 0.6482492685, -0.291859448, -0.0517523997, -0.1657826006, 0.1298788786, 0.0685571581, -0.4390646517, -0.5509955883, -0.0955278799, -0.087902464, 0.5472270846, -0.0590238161, 0.2898390591, -0.08759211, 0.0934745967, -0.3633129001, -0.2147007287, 0.5250751972, -0.0275914147, -0.3441171944, -0.1345103085, 0.0239081588, 0.3655023873, 0.2720826268, -0.6151903272, 0.0846777409, 0.1943430454, 0.0328902639, 0.2557807863, 0.284757942, 0.1062319875, 0.2190319598, -0.0761716664, -0.0361954793, -0.0129307313, -0.3837865293, 0.0888501853, -0.041684296 ]
https://github.com/huggingface/datasets/issues/3615
Dataset BnL Historical Newspapers does not work in streaming mode
I see this is fixed now 🙂. I also picked up a few other tips from your redactors so hopefully my next attempts will support streaming from the start.
## Describe the bug When trying to load in streaming mode, it "hangs"... ## Steps to reproduce the bug ```python ds = load_dataset("bnl_newspapers", split="train", streaming=True) ``` ## Expected results The code should be optimized, so that it works fast in streaming mode. CC: @davanstrien
29
Dataset BnL Historical Newspapers does not work in streaming mode ## Describe the bug When trying to load in streaming mode, it "hangs"... ## Steps to reproduce the bug ```python ds = load_dataset("bnl_newspapers", split="train", streaming=True) ``` ## Expected results The code should be optimized, so that it works fast in streaming mode. CC: @davanstrien I see this is fixed now 🙂. I also picked up a few other tips from your redactors so hopefully my next attempts will support streaming from the start.
[ -0.639200449, 0.1436474174, 0.0176750589, 0.0161989536, 0.2014867514, -0.0171704646, 0.3039646149, 0.3379111588, 0.1105153561, -0.0491941422, 0.0870378762, 0.1462349445, -0.1340525448, 0.1133008599, -0.2418841124, -0.3361700475, 0.1876149029, 0.2186702639, 0.042955488, -0.0179382283, -0.1598050594, 0.010355304, -0.5436112881, -0.4633287489, -0.293854326, 0.0725308061, -0.0694618449, 0.115322575, -0.246463269, -0.0956115797, 0.0793805569, 0.0873534307, 0.3797914684, 0.5006851554, -0.0001045579, -0.068251662, 0.3329671323, -0.1211504638, -0.1467690468, -0.3165216446, -0.1200764403, -0.0800596699, 0.1428357661, -0.1134158671, -0.3123520911, -0.2161013931, 0.0911294371, -0.1987465322, 0.506003499, 0.3721102178, 0.2636330724, 0.1435885578, -0.0381894819, -0.1916084439, 0.0200589579, -0.1114272922, -0.2552906871, 0.0621886142, 0.0712224171, 0.0721608475, -0.092611745, 0.5395272374, 0.067495048, -0.1149845421, 0.0119220512, -0.0950197056, 0.0456017926, -0.0837133154, -0.0666013286, 0.1383724064, 0.4002623856, -0.0296735726, -0.1128510907, -0.0716232359, 0.0923159495, -0.3567080796, 0.0479286537, 0.2869259417, -0.2435922772, 0.1817087382, -0.0533673316, -0.1455273777, -0.2861306965, 0.1239590943, 0.0310392007, 0.3795745373, -0.0335641243, -0.0279931705, 0.1999191493, 0.101853624, 0.3921272755, 0.0992609933, 0.0924549922, 0.0294573251, -0.5172248483, 0.2342825681, 0.067194283, 0.2067531198, -0.2895882726, 0.1044497415, 0.1553256214, 0.1105133072, 0.2363706976, 0.0976384282, 0.2635285854, 0.0158808697, -0.2049121559, -0.0411989056, 0.3603884876, 0.2921732962, -0.2609397769, -0.1722355783, -0.0527563281, -0.0738934577, -0.1301086992, -0.1683187187, 0.2716508806, -0.2282891721, 0.0065820962, 0.0888675079, -0.2021489441, 0.0334980413, 0.0085895434, 0.4240403175, -0.2503169775, 0.3868646324, 0.094485268, -0.07286001, -0.1206962466, -0.0826703757, -0.2659617662, -0.1024206653, -0.2098499686, -0.3008897901, 0.1222522631, -0.3663854599, -0.1036151201, 0.1227807701, -0.0728200749, 0.1371945441, 0.0753855482, -0.2321272045, 0.158179462, 0.2268726081, 0.1841801852, 0.0172982495, 0.1682235599, 0.0870685205, -0.1077630147, 0.1905840337, 0.0938429683, -0.25583902, -0.0040058447, 0.2395966798, 0.006570762, -0.0479942448, 0.0094845016, 0.3855862021, 0.0243893098, -0.3582800329, -0.1159616336, 0.0343243554, -0.1795923561, -0.0646470115, 0.3086239994, 0.0185302272, -0.3458275497, 0.0086661689, -0.2224927396, 0.0465340391, 0.4783311486, -0.0090366798, -0.0807409286, -0.1921438277, 0.1610539854, -0.1447809041, 0.4480691254, 0.017800305, -0.3349719942, 0.363822639, -0.0058064549, 0.1460789144, 0.0325042866, 0.3051077724, 0.271053642, 0.058419466, -0.0036106834, 0.6243720651, -0.0545240641, 0.1958116591, -0.2924692929, -0.1282483935, 0.3380372524, 0.4067069888, 0.1400501728, 0.0364614464, -0.2084701359, 0.2942723334, 0.4143999219, 0.0988758057, 0.1219435483, 0.1289405823, 0.2562006116, 0.0370098054, 0.0683157295, -0.2686276138, -0.0872512162, 0.0570980571, 0.3454033732, 0.1562728733, 0.0758717582, -0.1090666279, -0.2145521492, -0.0950056687, -0.275316298, -0.1072739065, 0.2417951673, 0.1350848228, 0.0040979353, 0.2209509313, -0.3215946853, 0.4765018821, -0.1395190209, -0.0627280921, -0.350826174, 0.1230677292, -0.2464250177, -0.2410572767, 0.0972629189, 0.0779572353, -0.0178087242, 0.0827493221, -0.1831181943, 0.4086005092, -0.1779658794, 0.2534781098, -0.1502226889, -0.1189400032, 0.0499635004, -0.3739640117, 0.1012077779, 0.5952691436, 0.0150244441, -0.117982924, -0.3907120824, 0.0501100272, -0.015184341, 0.1532167345, 0.0156030962, -0.0113121625, -0.0056878002, 0.0533554219, -0.0519254655, 0.0211124737, 0.266589731, -0.254162848, -0.0312956385, -0.1203609332, -0.3751474917, -0.0103918435, 0.3093355596, 0.2812275887, 0.0643044263, 0.2043651044, -0.159030363, -0.128443256, 0.2087300122, 0.135950774, 0.2126038373, 0.1232112944, 0.2703262269, 0.1771530211, 0.0668541566, -0.318705529, 0.1962000579, -0.1019586027, 0.0404639542, 0.1755817831, 0.2301201969, -0.1468441635, -0.3803938925, 0.0646866783, 0.0933397189, 0.2632519305, -0.0253812373, 0.0293993913, -0.2109108269, -0.1167756692, -0.1123542115, -0.2976842821, -0.0075518987, -0.4463531375, -0.0360691883, 0.4087036252, -0.055528082, 0.3266419768, -0.2880339324, 0.2062741667, 0.2807093561, 0.0258788485, -0.1809276193, -0.2450481355, -0.1098568588, 0.2608832419, 0.0310069416, 0.125764519, 0.2443621606, 0.0610266849, -0.1355134994, 0.0068950369, -0.1683872491, 0.0735696256, -0.1288335174, 0.2347132266, -0.0431771725, 0.3930201232, -0.2285358608, -0.0956363901, 0.2747420669, -0.145995602, 0.119911477, 0.0974525735, 0.026704248, 0.2564315498, -0.1120063215, -0.3940235078, -0.4055450857, -0.5257222652, 0.234042719, -0.1331181377, 0.0113082957, 0.1579029262, 0.1973540783, -0.1702145785, 0.3683002591, 0.1863796562, -0.1896622181, -0.2950547338, 0.4982823431, -0.2836522162, -0.4694307745, 0.1044703126, 0.305308789, -0.2864201665, 0.1122335419, -0.4676696062, -0.0814983174, -0.0305887442, -0.1313198805, 0.1523448825, -0.0790287331, 0.1049257219, -0.2210929394, -0.0552094691, -0.0990458131, 0.2550994754, -0.1564009935, -0.1271556318, 0.3348616064, 0.0956587642, 0.1555639952, -0.0542008094, 0.1641837806, 0.355429709, 0.0936765075, 0.2929096222, -0.0711328909, 0.2833200693, -0.1856061369, -0.3311026394, 0.0640834197, -0.1215461269, -0.2013853192, 0.3092142344, 0.1351788342, -0.3562852442, -0.4504116178, 0.2169815004, -0.0490073934, -0.3797504306, 0.2025701106, -0.0541655831, 0.3533127308, -0.0239878371, 0.2328928411, 0.1546325982, -0.3435347974, -0.0120420558, 0.0969462469, -0.0343333855, -0.0825404301, 0.1114042401, 0.1410308629, -0.5775935054, -0.0553333238, -0.1297227591, 0.2563928664, -0.1446069777, -0.2632194757, 0.1118079871, -0.1523093432, 0.4731355011, -0.3511379063, -0.031372454, 0.1303922832, 0.2172255516, -0.3071973324, 0.0227939822, -0.2156444043, 0.0848848596, 0.2458666414, 0.0817357749, -0.2809523642, 0.0458596796, 0.2556488514, -0.0559168756, -0.0127628688, -0.3439989388, -0.4276547432, 0.1255669594, -0.2107459754, 0.0173196476, -0.146231845, 0.1394955218, -0.5176370144, -0.015812682, 0.0451266505, 0.3098684549, 0.1565499753, 0.1485461146, 0.3458456099, 0.0915058255, 0.1400701404, 0.3406707048, 0.2014650106, -0.1299809366, 0.5276272893, -0.0735092983, -0.2377862334, 0.2314790189, -0.0334162228, 0.0638716593, 0.4195229113, -0.1788497865, -0.0402901173, 0.4024861753, 0.1178096458, -0.0968170762, 0.1330731958, 0.2178511322, 0.0297877025, -0.1741443723, -0.6038041115, 0.2701593339, 0.0132963574, 0.1216736957, 0.0480886176, -0.487593025, 0.0017101213, 0.3205717802, -0.2604338825, 0.8478603959, 0.2670909166, 0.1176966876, 0.3298397064, 0.0709464103, 0.1494463384, -0.2866649032, 0.1037061512, -0.4060114026, -0.3688280284, -0.0911646187, 0.0558876656, -0.0330265835, -0.1704650968, -0.4993487, 0.1250622869, 0.0528007224, 0.5093061328, -0.1850254834, 0.0347471274, -0.1800903231, -0.2378653437, -0.7668042779, 0.2173618376, -0.1199654713, -0.1003266424, -0.1387777925, -0.1307248175, 0.0718558356, -0.0652169362, -0.2207559198, 0.1657303274, -0.0432599038, 0.0609112941, -0.0942163169, -0.284959197, -0.1431249976, 0.4253371656, -0.0432519205, 0.0257709511, -0.3159973025, 0.3531171083, 0.1513005942, -0.0686309263, -0.0023032497, 0.0130793974, 0.1886035502, -0.0445910357, -0.1563127637, 0.2549077272, -0.1571327448, -0.3457017243, 0.0046822308, -0.0708127767, 0.2673501372, -0.1376348883, -0.3051439524, 0.0180214178, -0.103981398, -0.2302196622, 0.2512371838, -0.2662965059, -0.1321219355, 0.2166064382, 0.2056100965, -0.0427367799, -0.1262102276, 0.5570927262, 0.026725987, 0.1053450257, 0.2360614091, 0.7783277035, -0.3412625492, -0.2119792253, -0.0006368007, 0.0763417482, -0.2037984282, 0.0232132357, 0.0516768657, -0.083745338, 0.3208777905, 0.3149137497, -0.0759708285, -0.0587102026, -0.1736955047, -0.2697808444, -0.2313729376, 0.1789885908, 0.2444123328, 0.2043925226, -0.0335561484, -0.0462098941, 0.1241324022, -0.0505753085, -0.4265212715, -0.1020978242, -0.1077127084, 0.1517603844, -0.2882004082, -0.2179083377, 0.3540953994, -0.033122167, 0.1407982409, 0.2235604972, -0.2270445675, -0.2600384355, -0.1574433744, 0.0687970817, 0.1405568123, -0.0771791637, -0.305123806, -0.3492272496, -0.417358458, -0.0442495644, 0.1196472645, -0.0913905278, -0.1155923828, -0.1447613835, 0.2842194438, 0.0563219935, -0.0206052233, -0.0093941856, -0.1481753588, 0.2563760579, -0.0213232618, -0.0470768735, -0.0780311227, 0.0545177385, -0.1432635635, -0.0012276828, 0.380395174, -0.0523302816, 0.5665140748, -0.2053246498, 0.1697534472, 0.0789242461, 0.668587029, 0.3255566061, -0.1969896853, -0.1313052922, -0.0760788918, 0.2875436842, -0.3003066778, 0.1456892788, -0.0548922494, -0.0142142577, 0.1277237982, -0.0469008721, 0.0653941929, -0.2294953465, -0.3246001899, 0.2969710231, 0.1550925523, -0.0769724846, 0.0583919138, 0.3166415095, 0.0616304912, 0.010874372, -0.233299166, -0.0242456943, -0.0691735819, 0.4518880844, -0.0052722446, 0.0328245535, 0.3803043067, 0.161929056, -0.1982175857, -0.3292544186, 0.099104479, 0.413613528, -0.1210291386, 0.2110144347, -0.0209161956, 0.4711770713, -0.1345614791, -0.0628742203, -0.2082241625, 0.4247783124, -0.0237270202, 0.0026138667, -0.0084348619, -0.0470738299, -0.2301012129, 0.0710533634, 0.0273269061, 0.3463338614, -0.0309801772, 0.2920086682, 0.1832584739, -0.4621451199, 0.0480225049, -0.0143193165, 0.3673993051, -0.3490888774, 0.2729971409, 0.2801764607, 0.1964893043, 0.1779057831, 0.1264446974, 0.2915160656, 0.3271591663, -0.2843584716, 0.2053487152, 0.0866684392, -0.1441932172, 0.0626048967, 0.2413456589, 0.4830500782, 0.0700115785, 0.3458622694, 0.1866241843, -0.2603206038, 0.1858619601, -0.0802328587, 0.1884461194, 0.0194431376, 0.2298489362, 0.0479855463, 0.0421001241, -0.2042660862, -0.2066106945, -0.4149392843, 0.0592649803, 0.1961296946, -0.1369747519, 0.1049910411, -0.2253706157, 0.1304186732, 0.0237565748, 0.605099082, 0.244868651, 0.3479785621, -0.2092748582, -0.4991392195, -0.7439684272, 0.0635609254, -0.1552799046, 0.1434170604, 0.0796879157, 0.2128210217, 0.0639204234, 0.2801581025, -0.3433066308, -0.1317448169, -0.1560022533, 0.313331902, -0.3654790223, -0.0319537036, 0.1202699542, 0.1735155284, -0.1558219343, -0.2619854808, 0.1987224519, -0.1449028403, 0.1309899986, -0.0477781966, -0.4372218549, -0.1709903777, 0.0986200422, 0.1929429919, -0.0155003276, 0.0878002197, -0.1534510255, -0.2092187703, -0.2632306218, -0.1088630632, -0.0139849726, -0.095951207, 0.0311629027, 0.5591487885, 0.0116986539, -0.0350304134, -0.1329898387, 0.2539636195, 0.1388981789, -0.3310723603, -0.4748350084, -0.1139710248, 0.0219333135, 0.4722159803, -0.1504417509, 0.2555875778, -0.1555842459, 0.1010494828, -0.173115015, -0.5298804641, 0.4960549772, -0.1111973524, -0.3246839046, -0.1753561795, -0.0651161, 0.3530609012, 0.2232723534, -0.6150440574, 0.159065336, 0.0145907551, 0.0002863066, 0.1469317377, 0.2642730474, 0.0419730768, 0.0811576396, -0.1271866709, 0.0089662522, 0.1222725511, -0.2085975558, -0.0028008027, -0.0983424261 ]
https://github.com/huggingface/datasets/issues/3613
Files not updating in dataset viewer
Yes. The jobs queue is full right now, following an upgrade... Back to normality in the next hours hopefully. I'll look at your datasets to be sure the dataset viewer works as expected on them.
## Dataset viewer issue for '*name of the dataset*' **Link:** Some examples: * https://huggingface.co/datasets/abidlabs/crowdsourced-speech4 * https://huggingface.co/datasets/abidlabs/test-audio-13 *short description of the issue* It seems that the dataset viewer is reading a cached version of the dataset and it is not updating to reflect new files that are added to the dataset. I get this error: ![image](https://user-images.githubusercontent.com/1778297/150566660-30dc0dcd-18fd-4471-b70c-7c4bdc6a23c6.png) Am I the one who added this dataset? Yes
35
Files not updating in dataset viewer ## Dataset viewer issue for '*name of the dataset*' **Link:** Some examples: * https://huggingface.co/datasets/abidlabs/crowdsourced-speech4 * https://huggingface.co/datasets/abidlabs/test-audio-13 *short description of the issue* It seems that the dataset viewer is reading a cached version of the dataset and it is not updating to reflect new files that are added to the dataset. I get this error: ![image](https://user-images.githubusercontent.com/1778297/150566660-30dc0dcd-18fd-4471-b70c-7c4bdc6a23c6.png) Am I the one who added this dataset? Yes Yes. The jobs queue is full right now, following an upgrade... Back to normality in the next hours hopefully. I'll look at your datasets to be sure the dataset viewer works as expected on them.
[ -0.3797994256, 0.1163970158, -0.1014503166, 0.1263846308, 0.069827646, 0.0949605405, 0.0576605536, 0.2934433222, 0.0349196307, 0.1519840509, 0.0154691096, 0.0699015185, -0.0732654855, -0.0716505423, -0.1866235733, 0.1329112053, 0.1891683191, -0.0158929173, -0.1370634884, -0.0425222032, -0.1500424445, 0.1812660992, -0.1953297704, -0.1917188466, -0.5102659464, -0.0586277582, -0.18239519, -0.0634702295, -0.2453574389, -0.2994509339, 0.1661978215, 0.2411734313, 0.1041126847, 0.6502739191, -0.0000981088, -0.05217259, 0.5114244223, 0.0228086244, -0.3603645861, -0.1221653894, -0.3154076934, -0.3242824674, -0.1659523994, 0.128403008, -0.0797583163, -0.2443587929, 0.3302291036, -0.1247739494, 0.4149989188, 0.156621024, 0.3663796186, 0.0402800329, 0.2756922245, -0.2505025268, -0.000396049, 0.1777423769, 0.1342047602, 0.0211700182, 0.2491107732, 0.1365859061, -0.1409418285, 0.4649128914, -0.0911555812, 0.0061408388, 0.3645098507, -0.1182490811, -0.0793161541, -0.4502668381, 0.4696726203, 0.1723979861, 0.8310868144, -0.0073154084, -0.353417784, -0.1900249869, 0.1084382385, -0.059228804, 0.3401078582, 0.1133538261, 0.0294574797, 0.0112021025, -0.1891120374, -0.2167093903, -0.0019435198, 0.1785860807, -0.1308147311, -0.3422620893, -0.1936003864, -0.054849457, 0.0226331931, -0.3203727603, 0.2890892923, -0.059504535, -0.1239823699, 0.1351859272, -0.336764127, 0.1458026618, -0.0029468907, 0.2346181422, -0.1251685023, -0.0203896295, -0.2012645155, 0.0026018873, -0.3285805285, 0.2970861793, 0.2398401946, 0.0495487601, 0.0486227795, 0.0686092079, 0.3268592656, 0.0951789171, -0.1518556476, -0.1375862062, -0.2464442849, -0.3035638332, -0.1140848547, -0.2341130674, 0.1832090169, -0.1488663703, -0.1870076507, 0.1036554053, 0.1306025833, -0.0729803145, -0.1247225329, 0.3120934665, -0.0310747251, 0.0982405022, 0.0921264812, 0.0831989497, -0.1892792135, -0.2492619753, -0.2011503279, -0.1229145527, -0.0896772444, 0.0741678774, 0.2296394855, -0.184344098, 0.3501271307, -0.0180091579, 0.0174462777, -0.1835935414, -0.0630429983, -0.1805623919, -0.0519399904, 0.3123166263, 0.0376805738, 0.3051741719, -0.1387081146, -0.1716878116, 0.0986445174, 0.3894824684, -0.301287353, -0.0557833575, -0.2668683231, 0.3298268914, -0.1172414944, -0.1984174252, -0.2858680785, 0.1178670153, 0.0420731381, -0.2683653831, -0.1846081167, -0.1499711126, -0.0406783074, -0.0360653326, 0.1038323343, 0.4076511562, -0.3388268054, 0.0032923133, -0.2602189183, 0.0138329286, -0.1028777212, 0.086937286, -0.0069888839, 0.0097890878, -0.2683640718, 0.0062846784, 0.1270243824, -0.3847044706, -0.5280434489, -0.0297441725, -0.0330845267, -0.0157594513, 0.0240337215, 0.1500908434, 0.2599222064, -0.3060280383, -0.2477760017, -0.1611902118, 0.0495828055, 0.0272009317, -0.2216252983, -0.0826703832, -0.0679654405, 0.1417824179, 0.0818753168, 0.0294102747, 0.1362809837, -0.0552848428, 0.2113503516, 0.1385192126, 0.2052320838, 0.2716357112, 0.196036607, 0.3052735925, 0.0563507564, 0.099306263, -0.3562805653, 0.1298312396, 0.0376451313, 0.0418946035, 0.0157969445, -0.0851343349, -0.2506106198, -0.2104933262, -0.371070981, -0.2747806013, 0.218682915, 0.3672999442, -0.2285307348, 0.1147598177, -0.1881185323, 0.2092082947, -0.0540914387, -0.005456422, -0.1929954141, 0.2282471508, -0.037869215, -0.116282925, 0.1645759195, -0.0926980525, 0.1265501231, -0.0108347731, -0.1853953451, 0.3828794956, 0.1736241132, 0.4428768158, 0.2326334417, 0.0549137555, 0.16422382, -0.1678902954, 0.1736438274, 0.0216006506, -0.078327924, -0.1034858227, -0.234792158, 0.003934761, -0.064506337, -0.0159602948, -0.0614055209, 0.0463143177, 0.2971680462, -0.0066354303, 0.1097982973, -0.0107097141, -0.0891542435, 0.0736528486, 0.2277670205, 0.0412104614, -0.2464617342, 0.0067996839, 0.5360496044, 0.1395550817, -0.199991703, 0.1967851222, -0.3689284623, 0.0143631892, 0.1373365223, 0.3390748203, 0.0664703622, 0.2723039091, -0.0071911942, 0.0493992753, 0.2511710525, -0.2523832619, -0.0046109408, 0.0655080751, 0.0597898103, 0.3073239028, 0.2224249989, -0.0185986962, -0.4751043916, 0.1727587879, 0.1905309409, 0.1737125963, -0.1331218779, -0.2849431932, -0.148657009, -0.4039024413, -0.270947516, 0.0022587187, -0.3288230896, -0.3557167053, 0.1184470281, 0.3749229908, 0.0303149521, 0.3267637789, 0.0496013314, 0.1472488344, -0.1504373997, 0.1302462518, -0.3342978656, 0.0329130106, -0.2647187412, 0.2004992813, 0.5254772305, 0.0717939734, 0.2383503616, -0.1200599521, 0.2712792754, -0.5074766874, -0.2029636204, -0.0330373421, -0.1062901393, 0.270376116, -0.2450431734, 0.1793392152, -0.1538423598, -0.1656547785, 0.0279559027, -0.159045577, -0.0996902063, -0.130441457, 0.1363810748, -0.085630618, 0.022210801, -0.3074045777, -0.1948357373, -0.4157474041, 0.0974738076, 0.0246862751, 0.0921782702, 0.2435361892, -0.0127848284, -0.1117711887, -0.1671362221, -0.0716501251, -0.3129087985, -0.5299850702, 0.2602340579, -0.2684811354, -0.4490500093, 0.301053375, 0.2041319609, 0.2233511806, -0.1852355152, -0.5290558338, -0.2735422552, -0.0840140507, 0.1781709194, 0.1819737703, -0.2361415774, 0.227551356, -0.0622922406, -0.1516859382, -0.2720479667, -0.1614667028, -0.0975471511, 0.1197665036, 0.3388819993, -0.0882905275, 0.1707778275, 0.0107734576, 0.5725229979, 0.4264965057, -0.0531298779, 0.2424164712, -0.0738277361, 0.4359696507, -0.2324406803, -0.1901981682, 0.1824271977, -0.1227643117, -0.0892668962, 0.2917497158, 0.1278145015, 0.1051756516, -0.1508360505, 0.0580332726, -0.3764820695, -0.1176160425, -0.0973673239, -0.043228101, 0.1868988425, 0.1503210664, 0.0502553396, -0.0890626833, -0.3234774172, 0.1077165753, 0.4055892527, 0.2769238353, -0.0077298265, -0.1911264509, 0.2245759815, -0.3040242791, 0.3311322331, -0.12156488, 0.1837459356, -0.1557861865, 0.0934882313, 0.1577925235, 0.0397731028, 0.5120525956, -0.1464233696, 0.0713791922, 0.1008012891, 0.1692173928, -0.0864463821, -0.0626076981, -0.0537371039, 0.0776107535, 0.1478905231, 0.2123221308, 0.0169050917, -0.0430001467, 0.0890808553, -0.0382334217, -0.0683062822, -0.1444608122, -0.0868420079, -0.1548040211, -0.2164977789, -0.3048063815, -0.0133963851, -0.0746576563, -0.1297352016, -0.1130149364, 0.0575049669, 0.043046616, 0.0067758467, -0.1484586, 0.3250090778, 0.3332371116, 0.2258297801, 0.4552122653, 0.2031545788, 0.4712150991, 0.4336999655, -0.1125068441, -0.2214200497, 0.0469081365, -0.2676388621, 0.0347322561, 0.2238235027, 0.10235136, -0.096851252, 0.1450734437, 0.1972590089, -0.329705447, 0.1817730963, 0.5478059053, 0.0638769642, -0.2470594198, -0.4508351684, 0.3491354287, 0.0904617235, -0.059079241, 0.2141254097, 0.0227440633, -0.0313625224, -0.04222719, -0.1231055036, 0.7080119848, 0.0225522295, -0.0792197436, -0.0638253018, -0.276301384, 0.241223067, -0.176059261, 0.1677317172, -0.1698789895, -0.3088244796, -0.0813159645, 0.1006092131, 0.1023003533, 0.0326200426, -0.2283186913, 0.2909834683, 0.1361174583, 0.0577754602, -0.0552929118, 0.2372167259, -0.2039316893, -0.0075871446, 0.1304461509, 0.3477529287, 0.0040946677, 0.3638281524, 0.0129473312, -0.0966504142, 0.0042704684, 0.0168288238, -0.3099343479, -0.0875485986, -0.0016050105, 0.0825046152, 0.0348961093, -0.0514026098, 0.0158632211, 0.2850010395, 0.081089519, -0.0585870221, -0.1492572129, 0.5342200994, 0.0437434688, 0.1196740642, -0.0406179689, 0.0516343489, 0.4315177798, -0.0860358179, -0.0968390852, -0.0004970913, -0.1480958015, -0.1531142145, -0.3847036958, 0.0511596203, -0.055713024, -0.1675288081, 0.0506882742, -0.06389945, -0.2209826261, -0.1693545878, 0.2914343178, 0.0234621391, 0.1240275204, 0.2340101153, 0.0398151316, -0.201838851, -0.003500201, 0.5256322622, -0.0689180866, -0.2283439934, 0.6417987943, 0.0095283939, -0.1035811529, -0.1950481385, 0.0680095404, -0.0626498908, -0.2803342044, 0.1100128517, -0.078761287, 0.1561896801, 0.2562303543, 0.1675191373, 0.0274084602, -0.1338272989, -0.1104788557, -0.2342378646, -0.2448468953, 0.0412033722, -0.1089317948, 0.1787878871, -0.2028436065, -0.05050385, 0.4836816192, -0.0229117684, -0.4443208277, 0.1885325462, -0.0916456208, 0.1951923519, 0.1717291027, -0.0497561842, 0.0158789232, -0.1922119111, 0.1290946156, -0.0348885804, -0.3576958776, -0.2760145664, 0.0542397089, 0.0773539394, 0.1697691381, 0.0160124954, -0.2032468319, -0.1605733782, -0.0540568307, -0.050336197, -0.0267949812, 0.0019925013, -0.1546229571, 0.0471902117, -0.0551823191, -0.0959246308, 0.5064879656, 0.0381791815, 0.2040553838, 0.1809169203, -0.0516854674, -0.0446344614, 0.2058107853, -0.0344240069, -0.0924519897, 0.2395604253, -0.0228102263, -0.028449716, 0.365029633, -0.4086622, 0.1643685251, 0.3317153752, 0.4991412461, 0.3551913798, -0.1584047675, -0.154415682, 0.420997411, 0.363356173, -0.3210859299, 0.0217109937, 0.3982320428, 0.0886385143, -0.032336086, -0.2688084841, 0.2399700135, -0.1273982972, -0.0397979431, 0.3328173161, 0.5071566105, -0.5851855874, 0.3151950538, 0.2500274181, -0.0268701706, 0.0831419155, 0.3186456263, 0.1943723559, -0.1546905935, 0.6643781066, -0.0952887386, 0.3229857981, 0.159887895, -0.0280463081, 0.1567437798, -0.4826043844, 0.0733790398, 0.2626884878, -0.1624981463, 0.1188357249, 0.0302088503, 0.2099214196, 0.0096294321, -0.0851954967, -0.2976182699, 0.1932977587, -0.099506177, 0.0298413485, -0.0035865977, -0.2279946357, -0.0707929209, 0.0576776676, -0.0115650771, -0.0541518666, 0.1033155546, 0.0720471591, -0.3639316261, -0.3384598792, -0.2102457285, -0.116764538, 0.2670244575, -0.1497577131, 0.2398273349, 0.1880421937, -0.0426535569, 0.4847484231, 0.5574073792, 0.3732785285, 0.1569896787, 0.0975221172, 0.1686058939, -0.206553489, -0.0853224695, -0.1087880954, 0.3362374604, 0.0300756227, 0.0051994156, 0.2172703147, 0.2552619576, -0.2023956329, 0.1862024367, -0.0502561927, 0.3528642356, -0.4663150311, -0.1620035619, -0.2170518339, -0.057444077, -0.2459850609, -0.3152753413, -0.3685745299, 0.0656460375, 0.3287204504, -0.2702165544, 0.1548055708, -0.1377874613, 0.1513147205, -0.1416448057, 0.371383816, 0.4424980581, -0.10762465, 0.0154177044, -0.4166581035, -0.8767281175, 0.0920786932, 0.0583846755, 0.205609113, -0.1287396252, -0.060352698, -0.0556135289, -0.2260884494, 0.2225874066, -0.2391896099, -0.137184754, 0.1077068448, -0.3959972262, -0.0045999368, 0.0663682073, 0.2053451687, 0.0235382691, -0.0849084482, 0.2339281589, -0.0814023092, 0.147328645, 0.1617381573, 0.1241158471, -0.2235933393, -0.0913404226, 0.3839035332, 0.0419595912, 0.2479349971, -0.1359907389, -0.0004325903, -0.4164927304, -0.3283132613, -0.3046871424, 0.0797305182, -0.0552895069, 0.6120775342, -0.0969294459, 0.0147378035, -0.0907954425, 0.048188556, -0.2022903562, 0.0653746128, -0.3168259859, -0.0772078261, 0.0072891149, 0.0624403283, 0.1610695869, 0.0660513639, 0.0757224113, -0.0101470128, -0.4741445184, -0.2499413788, 0.4411115944, -0.3875516653, -0.1729047745, -0.220111534, 0.0950982794, -0.0102057466, -0.0886453614, -0.27597785, 0.1169981509, 0.4036998749, 0.1302772462, -0.0092820125, 0.0869590864, 0.0135963578, -0.1003731415, 0.0551845171, 0.2937631011, 0.2135934532, -0.2391294688, 0.1684252471, -0.148764506 ]
https://github.com/huggingface/datasets/issues/3608
Add support for continuous metrics (RMSE, MAE)
Hey @ck37 You can always use a custom metric as explained [in this guide from HF](https://huggingface.co/docs/datasets/master/loading_metrics.html#using-a-custom-metric-script). If this issue needs to be contributed to (for enhancing the metric API) I think [this link](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.mean_absolute_error.html) would be helpful for the `MAE` metric.
**Is your feature request related to a problem? Please describe.** I am uploading our dataset and models for the "Constructing interval measures" method we've developed, which uses item response theory to convert multiple discrete labels into a continuous spectrum for hate speech. Once we have this outcome our NLP models conduct regression rather than classification, so binary metrics are not relevant. The only continuous metrics available at https://huggingface.co/metrics are pearson & spearman correlation, which don't ensure that the prediction is on the same scale as the outcome. **Describe the solution you'd like** I would like to be able to tag our models on the Hub with the following metrics: - RMSE - MAE **Describe alternatives you've considered** I don't know if there are any alternatives. **Additional context** Our preprint is available here: https://arxiv.org/abs/2009.10277 . We are making it available for use in Jigsaw's Toxic Severity Rating Kaggle competition: https://www.kaggle.com/c/jigsaw-toxic-severity-rating/overview . I have our first model uploaded to the Hub at https://huggingface.co/ucberkeley-dlab/hate-measure-roberta-large Thanks, Chris
40
Add support for continuous metrics (RMSE, MAE) **Is your feature request related to a problem? Please describe.** I am uploading our dataset and models for the "Constructing interval measures" method we've developed, which uses item response theory to convert multiple discrete labels into a continuous spectrum for hate speech. Once we have this outcome our NLP models conduct regression rather than classification, so binary metrics are not relevant. The only continuous metrics available at https://huggingface.co/metrics are pearson & spearman correlation, which don't ensure that the prediction is on the same scale as the outcome. **Describe the solution you'd like** I would like to be able to tag our models on the Hub with the following metrics: - RMSE - MAE **Describe alternatives you've considered** I don't know if there are any alternatives. **Additional context** Our preprint is available here: https://arxiv.org/abs/2009.10277 . We are making it available for use in Jigsaw's Toxic Severity Rating Kaggle competition: https://www.kaggle.com/c/jigsaw-toxic-severity-rating/overview . I have our first model uploaded to the Hub at https://huggingface.co/ucberkeley-dlab/hate-measure-roberta-large Thanks, Chris Hey @ck37 You can always use a custom metric as explained [in this guide from HF](https://huggingface.co/docs/datasets/master/loading_metrics.html#using-a-custom-metric-script). If this issue needs to be contributed to (for enhancing the metric API) I think [this link](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.mean_absolute_error.html) would be helpful for the `MAE` metric.
[ -0.2287482768, -0.3802615106, -0.0881353021, -0.1381486356, 0.2096349597, 0.160359323, -0.230401352, 0.0744787082, 0.3844649196, 0.0689124912, -0.062576957, 0.2589017451, -0.3647340834, 0.2241398096, -0.1389572769, -0.3047387302, -0.0666413903, -0.0653638989, 0.2313116342, 0.1159720346, -0.1732453555, -0.0680028126, -0.0164647065, 0.1343034953, -0.7210460901, -0.1397714466, -0.2097360194, -0.1337974966, -0.2628181279, -0.5267781019, 0.4249002039, 0.1194111928, 0.2145846784, 0.0191093571, -0.0001098693, -0.2125864327, 0.4086972773, -0.1118721068, -0.1955538094, -0.2383984327, -0.2119684666, -0.1390224546, 0.0620323606, -0.0058833081, 0.0255749132, 0.0992673934, -0.0716490895, -0.1151266918, 0.3077867627, 0.066604577, 0.1250887215, 0.1492089629, -0.0785387978, -0.3562819362, -0.0456501804, 0.3987996578, -0.2262848914, 0.5990530849, 0.3708298504, -0.1175741032, -0.1327044666, 0.2112250775, 0.0902322456, -0.0303793028, 0.5033262372, 0.0305043403, 0.5993272066, -0.2023894787, -0.1125271171, 0.2646529377, 0.1054798961, -0.1550525278, -0.4436763525, -0.2344267517, 0.1696691662, -0.7406081557, -0.1525862217, -0.0890195146, -0.1796445996, 0.1205666214, -0.2004229724, -0.4116165638, -0.3185279965, 0.3033254147, 0.0710003302, 0.4423880875, 0.1523084193, -0.0322790518, 0.0621704832, 0.061554648, -0.4483595788, -0.0091256974, -0.1529835612, 0.1338817775, -0.2948441207, -0.2533437908, -0.2381614596, 0.2369192839, 0.106731832, -0.1393351257, -0.0097082034, 0.0525809079, 0.064201571, 0.1292606443, 0.161650002, 0.4878112972, 0.2964050174, -0.1785459965, 0.257856667, 0.2839892209, 0.2687700689, 0.0549484827, 0.1810737848, 0.0796786621, -0.0503877141, 0.1647810489, -0.3738875985, -0.0063290624, -0.2888813615, -0.0101277456, -0.0246942323, -0.04908555, 0.2627684474, 0.1690075845, -0.0061841444, 0.1144957393, -0.0974104479, 0.3574233651, -0.0103095639, 0.1019777432, -0.0343289264, 0.0388283916, -0.4484541714, 0.2361995131, 0.358999908, -0.1089953333, 0.1792717874, -0.181683585, 0.0461184047, -0.0456312969, -0.2682067156, 0.0972970799, 0.1034373567, -0.0122649139, -0.3942843378, -0.0428356826, -0.02311505, 0.0507946648, -0.1293399036, -0.137320146, -0.2313489467, -0.1679450423, -0.163049221, 0.1302890182, -0.1684515178, -0.2467957884, 0.2545478344, 0.5239133835, -0.2566767335, -0.1997877508, 0.226009354, 0.2134883255, -0.5124636889, 0.0600665584, 0.1064773351, -0.0775365159, -0.1531211138, -0.4292037785, -0.3077003062, -0.0376505405, -0.2522054315, 0.0427441895, 0.0822162181, 0.1780909598, -0.0038405985, 0.0582961924, 0.3913882673, -0.4663086832, -0.0054436396, -0.392521739, -0.1821297109, -0.0614298098, -0.0603378154, 0.2335404009, 0.5110323429, -0.0497085936, 0.3263565898, -0.0459440686, 0.019370053, -0.2409965098, -0.2493760884, -0.4313951135, -0.082318455, 0.2958959341, 0.1868516058, -0.2786144614, 0.126666218, 0.0313636661, 0.2986091375, 0.0065558022, 0.2278688699, -0.2079779953, 0.1812904924, -0.2778403759, -0.0548439808, -0.5259389877, -0.0942337587, 0.1031792313, -0.1752367765, 0.180002898, 0.1926980913, -0.0357822329, -0.3460627198, 0.1245194748, 0.0004862469, -0.1637720764, 0.0911453664, -0.4256188273, 0.038893424, 0.1444263309, -0.1104740426, 0.204895854, -0.144116357, 0.1538077593, 0.1629246026, 0.1132117286, 0.0236018412, -0.1897606254, 0.2439985424, 0.6977480054, 0.0872689113, 0.2143076807, -0.1046381071, 0.0769985169, -0.0621941425, 0.2635695338, 0.3075031638, 0.4533732533, 0.4856908917, 0.1056728289, 0.1029466316, -0.0953769982, 0.0611081943, -0.0390503593, -0.2208705246, 0.356510669, -0.058085449, 0.1297616065, -0.2425390929, 0.2348065972, -0.1005064398, -0.0866034925, -0.2559160888, -0.2933889031, 0.2091531456, -0.2724311948, -0.3040786982, -0.3226969242, 0.1636135727, -0.1600515842, 0.1464776099, 0.1321894974, 0.3413194716, 0.1510985047, -0.36300686, -0.2305338681, 0.1637824029, -0.2527413666, 0.4033883512, 0.2015531659, -0.0580274835, 0.071982637, -0.1630465984, -0.1764490902, 0.2561103106, 0.4411118329, -0.1383943111, 0.377997905, 0.3139277399, -0.1255755872, -0.1279612035, -0.0631780177, -0.1858563125, -0.2833299041, -0.0166014787, -0.2359154671, -0.1772120446, -0.0081589809, 0.1184457466, -0.4975192547, -0.288941294, -0.4255946279, 0.4767524898, 0.0423910618, -0.0952000618, 0.3244537413, 0.2221830487, 0.7471814752, -0.1823207587, 0.3336435854, -0.1747672707, -0.5080205202, 0.0377230011, 0.0895164758, -0.2720040381, 0.0020235027, 0.4994551837, 0.1263139993, 0.5515375733, 0.0860149041, -0.4121527374, 0.2125063986, -0.0417409837, 0.3485887945, 0.1580927074, -0.1372118294, 0.1741089672, -0.079468213, 0.1983857751, -0.2601165175, 0.1103420705, -0.0636942461, -0.1129316241, -0.0138783902, -0.1818119287, -0.0030479422, -0.4230079353, -0.4251229763, -0.1153665558, -0.0624903031, -0.1476396918, 0.0856335014, -0.0373711921, 0.1379467696, -0.3875274062, 0.1089601889, -0.0998844504, -0.3127793074, 0.3412471712, -0.3482741714, 0.1003844291, 0.2339187115, -0.3252344728, 0.1239629462, -0.0992719382, -0.2007181942, -0.8155386448, 0.2333422154, 0.1369034201, 0.0359537974, 0.0123300888, 0.0937314406, -0.0580422394, -0.1589035988, -0.0109974053, -0.2629624009, 0.2283293307, 0.2978242338, 0.3886987269, -0.1719254851, 0.0413076282, 0.1339338422, 0.4497791231, 0.4648596346, -0.1560314, 0.2555319667, 0.3287070096, 0.1418237239, 0.0876370147, -0.2169343978, 0.2477547526, -0.0494234413, 0.068549864, 0.4766242802, 0.3499097526, 0.157114327, -0.3536589146, -0.3442663848, 0.1795763373, -0.213226974, -0.0662016422, 0.0157092847, 0.3553692997, -0.047705017, 0.2170890123, -0.4257114232, -0.3628841341, 0.3457043469, 0.332462728, -0.0527032092, 0.0120780598, 0.1544400752, -0.048025433, -0.3344807327, 0.1596760452, 0.2190779448, -0.0003939999, -0.0277210828, 0.2493662089, 0.0766330883, 0.3024986684, 0.2902182937, -0.3571628332, -0.3493824601, -0.0927819535, 0.320702076, -0.151205942, 0.0937463716, 0.0535969958, 0.1617232263, 0.3577714562, 0.2196744084, -0.0627317354, -0.1422363818, 0.0945695937, -0.113621071, -0.2638843954, -0.2678072155, 0.2771869004, 0.2849434912, -0.260477066, 0.1280821264, -0.1160666198, 0.1069338396, -0.062439993, -0.0738868639, 0.1912050098, -0.1459050775, 0.0354202017, 0.101386629, 0.108829163, -0.1051127389, -0.0667120367, 0.2856841087, 0.3154736459, -0.2002268583, 0.1295755804, -0.0918389335, -0.3374646306, -0.1398400217, -0.2219825387, 0.4240362048, 0.365190208, 0.2018933743, 0.0997557491, -0.23798123, 0.0742569938, -0.6053396463, -0.0202567037, 0.2328386903, 0.0916540325, -0.1435427517, 0.4529636204, 0.2861025035, 0.2025976926, -0.1441727579, -0.1308058947, 0.11580199, -0.3710658848, 0.2364870012, 0.2488254607, 0.9166266322, 0.3927681148, 0.0435477868, -0.1799946278, -0.2685777247, 0.4558826685, -0.1534847468, 0.082233645, -0.0250470303, 0.2065224946, 0.0161082018, 0.1059431881, 0.1482001245, -0.2468374223, -0.2956045568, 0.1485241503, 0.2605863512, 0.1340139359, -0.0732532144, 0.2613202035, -0.0501580872, -0.5350472927, -0.2191031277, 0.1592590213, -0.1429598182, 0.0014946234, -0.156310901, -0.1973161399, -0.0056511443, 0.2113614678, -0.2166843265, -0.4410673082, 0.0781264231, -0.2291333973, 0.1332591623, 0.1164335832, 0.4024178684, -0.1382870972, 0.5258669257, -0.0039938926, -0.5042884946, 0.0569299944, -0.4452450573, 0.1678581536, -0.04639237, -0.1891415119, 0.3811841905, -0.0209125001, -0.0532513298, 0.1726410091, 0.1717783362, -0.0663719848, -0.2397404313, -0.1929818392, 0.0996843725, -0.1219106838, 0.2850116193, -0.011854548, 0.0229410045, -0.3385651708, 0.0954775959, 0.2815056741, -0.0863799453, 0.4770154357, 0.1272618473, 0.0847416148, -0.059098307, 0.202555716, -0.3963635266, -0.0456397496, -0.162346676, -0.013965616, -0.1885985583, -0.1417420059, -0.1782946736, -0.3106632233, -0.4042558074, 0.2468809038, 0.525297761, -0.1867997348, 0.0268810391, 0.5943214893, 0.2243403047, -0.1410850286, -0.1760699898, -0.3769192994, -0.2695127428, 0.3122470975, -0.0275634602, 0.2305091918, -0.2306555361, 0.2226393074, 0.0081671029, 0.2762762606, -0.3297644556, -0.2843263447, -0.0501831286, -0.0487739369, -0.1366017908, -0.2939611375, -0.1019916534, -0.0423441641, -0.0160610266, 0.2083028704, -0.3703659177, -0.0842296034, -0.116758585, 0.1418608129, 0.0813830048, 0.0589894503, -0.0985733047, 0.0198059455, 0.0962297171, -0.119459264, 0.020353619, 0.0320450477, -0.0574944392, 0.1340444386, 0.0993574858, 0.2959702909, 0.4100041687, 0.1309810281, 0.2777025998, 0.3380579054, -0.0187722519, -0.0582655035, -0.1151473448, 0.0268074423, 0.4303678572, 0.2970201075, 0.2148516774, -0.0476322807, 0.3607792854, 0.2662673891, -0.2235375792, 0.4605287313, 0.2473220825, 0.0367265604, 0.0987439528, -0.0033035642, -0.1444908082, 0.2259437144, -0.2451638877, 0.0306935813, 0.0158362798, 0.1667724103, 0.185709551, -0.1645695865, 0.3883863389, 0.0097579025, 0.1048641205, 0.0436923578, 0.0383326672, -0.1944926083, 0.0899287537, -0.1955281645, 0.3019637465, -0.0458741412, 0.2708629072, -0.0620908886, 0.2898032367, -0.1400647163, -0.1341620833, 0.4245135188, 0.2820748687, 0.2663211524, 0.4183151126, 0.3348876536, -0.0643971935, -0.1376844049, 0.1178585514, -0.0286338907, 0.002349895, 0.2750464976, -0.0745524839, -0.1583389789, -0.4250690043, 0.0548734143, -0.0203847811, -0.084236674, -0.4057032764, -0.3025866449, -0.1175509989, -0.1531170905, -0.0586110316, -0.0068976451, -0.0897068828, -0.0475560017, 0.1517879069, -0.2790875137, -0.4191513658, 0.3025201857, 0.3942439258, 0.0222284365, -0.049750559, 0.4866847396, 0.0930588543, 0.1065773964, 0.2260138541, 0.1998615414, -0.1549030542, -0.5947443843, 0.0652834699, -0.1399469525, -0.1309630722, 0.1509697586, 0.4847449064, 0.3392564654, -0.2539297044, 0.420427233, 0.1409153938, -0.1185771376, 0.4101992249, -0.2420714945, -0.0586056225, -0.3898778856, 0.5204871893, 0.3692941368, -0.0051600174, -0.1215235591, -0.2201714963, -0.1402180046, -0.0603183694, 0.0615406111, -0.5128328204, -0.0242076088, -0.3795889914, 0.0730524585, -0.36670506, 0.2555940449, 0.0225705486, -0.0723052844, -0.1587892175, 0.1680680811, -0.1159931198, -0.188510105, 0.3684730828, 0.0211866144, -0.1618170291, -0.2816917896, 0.0938874558, 0.2771547735, -0.0147887925, 0.1288675219, 0.2839410901, -0.0278052203, -0.4519878626, 0.3754631877, 0.2534734011, -0.0806859359, 0.2424581051, 0.2160389274, 0.1482093632, -0.2807163596, -0.0760389119, -0.1280757934, -0.0120023992, 0.175777778, 0.3749456108, 0.3387723565, 0.2199769318, 0.1509300321, -0.0269191638, 0.0840620771, -0.3283109665, 0.091959849, -0.0399476737, -0.3276020586, 0.0359356329, 0.6613277197, -0.2494759262, -0.001267837, 0.0561972894, -0.1194959432, 0.0141928215, -0.2753311992, -0.1682819724, 0.0763005763, -0.1661950201, -0.1703408211, 0.0685613155, 0.267760694, 0.2133175582, 0.2658477128, 0.1760308444, -0.2460214198, 0.2686758637, 0.0898852572, -0.080160439, -0.0640532523, 0.1005367711, 0.3872286677, 0.024363596, -0.3707724512, -0.2021343857, 0.1377177387, 0.1884658933, 0.0141828973, 0.4616959095, 0.2908750772, -0.266325742, -0.1805795282, -0.2200307846, 0.069678247, 0.1456974596, -0.078072682, -0.209441036 ]
https://github.com/huggingface/datasets/issues/3608
Add support for continuous metrics (RMSE, MAE)
You can use a local metric script just by providing its path instead of the usual shortcut name
**Is your feature request related to a problem? Please describe.** I am uploading our dataset and models for the "Constructing interval measures" method we've developed, which uses item response theory to convert multiple discrete labels into a continuous spectrum for hate speech. Once we have this outcome our NLP models conduct regression rather than classification, so binary metrics are not relevant. The only continuous metrics available at https://huggingface.co/metrics are pearson & spearman correlation, which don't ensure that the prediction is on the same scale as the outcome. **Describe the solution you'd like** I would like to be able to tag our models on the Hub with the following metrics: - RMSE - MAE **Describe alternatives you've considered** I don't know if there are any alternatives. **Additional context** Our preprint is available here: https://arxiv.org/abs/2009.10277 . We are making it available for use in Jigsaw's Toxic Severity Rating Kaggle competition: https://www.kaggle.com/c/jigsaw-toxic-severity-rating/overview . I have our first model uploaded to the Hub at https://huggingface.co/ucberkeley-dlab/hate-measure-roberta-large Thanks, Chris
18
Add support for continuous metrics (RMSE, MAE) **Is your feature request related to a problem? Please describe.** I am uploading our dataset and models for the "Constructing interval measures" method we've developed, which uses item response theory to convert multiple discrete labels into a continuous spectrum for hate speech. Once we have this outcome our NLP models conduct regression rather than classification, so binary metrics are not relevant. The only continuous metrics available at https://huggingface.co/metrics are pearson & spearman correlation, which don't ensure that the prediction is on the same scale as the outcome. **Describe the solution you'd like** I would like to be able to tag our models on the Hub with the following metrics: - RMSE - MAE **Describe alternatives you've considered** I don't know if there are any alternatives. **Additional context** Our preprint is available here: https://arxiv.org/abs/2009.10277 . We are making it available for use in Jigsaw's Toxic Severity Rating Kaggle competition: https://www.kaggle.com/c/jigsaw-toxic-severity-rating/overview . I have our first model uploaded to the Hub at https://huggingface.co/ucberkeley-dlab/hate-measure-roberta-large Thanks, Chris You can use a local metric script just by providing its path instead of the usual shortcut name
[ -0.3416827023, -0.2790041566, -0.1028750315, -0.1780608147, 0.1408375949, 0.1478315294, -0.1508249342, 0.2230169773, 0.4105049968, 0.1154447794, 0.0020978018, 0.2769636214, -0.3721655905, 0.2808315158, -0.1003166586, -0.2971885502, -0.1172103286, -0.0224492773, 0.2668163478, 0.1321943104, -0.198035717, -0.1037358269, 0.023720514, 0.107220754, -0.6630895734, -0.0290409476, -0.2260854542, -0.0652648658, -0.1904198825, -0.4976800084, 0.3428757787, 0.2010935843, 0.200378716, -0.0334692523, -0.0001095913, -0.2044949383, 0.336980015, -0.0998898372, -0.1601934433, -0.2674619555, -0.2653906345, -0.11625126, 0.0801959261, -0.0905328467, -0.0122860037, 0.0859464109, -0.0779779926, -0.1154630184, 0.2242054045, 0.0964298248, 0.1361946315, 0.1445861012, -0.2035454512, -0.3764347136, 0.0049191946, 0.4396566749, -0.2426736653, 0.6159625649, 0.5139715075, -0.1427426338, -0.1009570733, 0.197684899, -0.0170304719, -0.023326477, 0.4813712835, 0.0844790861, 0.6958499551, -0.154209733, -0.0574816316, 0.2043513507, 0.1045101658, -0.2038822919, -0.3302958012, -0.1541201472, 0.1373360604, -0.7294669151, -0.1907363087, -0.1161893904, -0.2061216533, 0.1549514532, -0.1587769836, -0.4930068254, -0.3177870512, 0.2768802345, 0.1664550453, 0.4757443666, 0.2199028581, -0.045127321, -0.0195059739, 0.061846368, -0.3918881416, -0.0232588537, -0.0868931636, 0.1032818034, -0.1731420308, -0.2119034231, -0.1677534729, 0.2423904687, 0.1016823351, -0.1461583674, -0.023517767, 0.049482435, 0.159254998, 0.1584421694, 0.084806107, 0.5036936998, 0.3317579925, -0.1396020055, 0.3209893703, 0.2337913364, 0.2250032723, 0.0696774721, 0.1174228936, 0.0212190878, -0.0258299168, 0.2194066942, -0.3229129016, 0.0026291611, -0.2426929474, 0.0105718402, 0.0407173261, -0.0636033937, 0.2746444046, 0.1910522729, 0.0040117633, 0.1095077917, -0.1112330779, 0.3173978329, -0.0622968152, 0.0841464028, -0.0455104671, 0.0729660764, -0.4247816801, 0.1928904355, 0.3990181684, -0.1086527482, 0.1296422333, -0.2798522115, 0.0334459767, -0.0120244361, -0.2973558903, 0.0963344276, 0.1071054041, -0.0103938701, -0.3416926861, -0.0546954833, -0.0408522338, -0.0487266369, -0.2117544115, -0.0231125858, -0.2077048272, -0.1754911691, -0.2182009518, 0.1358882785, -0.1538490504, -0.2671108544, 0.2685143054, 0.4960367084, -0.2791224122, -0.2168132216, 0.199275136, 0.2046991438, -0.5188472271, 0.0581972338, 0.0676091239, 0.0245220866, -0.3011395931, -0.4465849102, -0.2591524124, -0.0904546306, -0.1533241272, 0.0094781052, 0.0943814367, 0.2196566314, 0.070881255, 0.0822714642, 0.4641649723, -0.509098649, 0.0048110057, -0.3438969553, -0.27820912, -0.1568176001, 0.0217964724, 0.2826700211, 0.5029380918, -0.0210121572, 0.329983145, -0.0202614143, 0.0053093089, -0.1786704361, -0.2482029349, -0.3996644914, -0.0868051648, 0.3901628256, 0.2534313202, -0.254235059, 0.1052966267, 0.0023951659, 0.3343404233, 0.0381450467, 0.2923698425, -0.2308920026, 0.1622381359, -0.3125485182, -0.0014582719, -0.5568654537, -0.073683165, 0.1117399558, -0.190820232, 0.1517755836, 0.2201919407, 0.0113021564, -0.3889949322, 0.1428037286, -0.0131046409, -0.0902454779, 0.0828460082, -0.3455541134, -0.0491803065, 0.06852974, -0.1613974273, 0.1934017241, -0.0853225663, 0.1029946059, 0.2359976918, 0.1165541038, -0.0194363724, -0.2382288128, 0.2468622476, 0.6357346773, 0.1093238369, 0.2071857899, -0.1138229668, 0.0730459541, -0.0831738785, 0.2719478309, 0.4044058919, 0.4729159176, 0.4831923544, 0.1484597921, 0.1572137922, -0.0850685388, 0.0376378484, -0.0341451764, -0.2296292633, 0.3044745326, 0.0048160311, 0.1255886406, -0.2582882047, 0.2644210756, -0.084064208, -0.1736067981, -0.2277241051, -0.3020239174, 0.257851094, -0.1693015099, -0.3334601223, -0.3658973277, 0.1037005931, -0.1032055691, 0.1556351632, 0.1557362676, 0.3678380251, 0.1190202162, -0.3741559684, -0.1908989251, 0.1670007259, -0.2998956144, 0.4195042253, 0.1846616566, -0.0567427985, 0.1129392385, -0.1648431271, -0.2068026215, 0.2138094008, 0.3497402668, -0.2227059454, 0.3749517202, 0.3149456084, -0.1577436626, -0.0977720767, -0.1154955253, -0.1574980766, -0.2783381641, 0.0010020976, -0.2405382842, -0.2079238147, -0.0494715534, 0.1595695019, -0.5096865296, -0.2092920691, -0.3706873059, 0.5409379601, 0.0541645959, -0.1374143511, 0.327739656, 0.2912616432, 0.8189284205, -0.1782445163, 0.2739866078, -0.1721439064, -0.4947497547, 0.0127766114, 0.0992775559, -0.2161757797, 0.0792736709, 0.4828804135, 0.1079216748, 0.5459854007, 0.1247315481, -0.2956189811, 0.2357371598, 0.0085955262, 0.3664240241, 0.1000402421, -0.0938848183, 0.1955196857, -0.0569156706, 0.2369493544, -0.2029000074, 0.1467456669, -0.0984812826, -0.1431142092, -0.1139170453, -0.2446238846, -0.048232656, -0.4250280261, -0.4252286553, -0.1454173177, -0.003631246, -0.0200474225, 0.0175594371, -0.0473075025, 0.1251396537, -0.3384884298, 0.1044357568, -0.0326274484, -0.3063325584, 0.3171124756, -0.42069152, 0.072955206, 0.217135489, -0.2856339514, 0.0731026754, -0.1496602297, -0.1281429231, -0.7420790792, 0.2362563014, 0.1360279173, 0.0414382108, -0.0159709211, 0.1069535241, -0.0055897934, -0.1862332374, -0.0113909319, -0.2632115483, 0.2063461542, 0.3334068358, 0.3153347671, -0.1532052755, -0.0632533655, 0.0831762552, 0.348578155, 0.3646079302, -0.1707165092, 0.2497419119, 0.3094418049, 0.0409941971, 0.0847658291, -0.2280427068, 0.2323257029, -0.0100858491, -0.0458343141, 0.5214874744, 0.3689686954, 0.071128808, -0.3969375491, -0.3714007139, 0.2052612603, -0.1877310276, -0.0553427823, 0.0699335486, 0.3810496032, -0.0813307762, 0.1639797986, -0.484318316, -0.3238800764, 0.3313362896, 0.364282608, -0.0623830035, -0.0375983492, 0.1385194957, 0.0267458446, -0.3321371675, 0.1836039275, 0.2499256432, -0.0798999071, -0.0808194131, 0.1807406694, 0.0416562483, 0.2946374714, 0.2202572227, -0.4462818205, -0.2769837081, -0.0241656452, 0.3660939038, -0.139496848, 0.0698583871, 0.0584704578, 0.2035036236, 0.3082798719, 0.3037623763, 0.0736875609, -0.1367005557, 0.1368626952, -0.1828720868, -0.2741487622, -0.3061209321, 0.3119314611, 0.3348498642, -0.2561931312, 0.1084317639, -0.1590699852, 0.0615534633, -0.0428238511, -0.138599202, 0.2733494043, -0.1770017445, 0.0293001626, 0.115063265, 0.0415801257, -0.0962541848, -0.0891255364, 0.209284991, 0.3030688465, -0.2369669378, 0.0766847283, -0.0691326186, -0.319270581, -0.0968331099, -0.2295823097, 0.4960780442, 0.4286534786, 0.1907243282, 0.0809875801, -0.256373018, 0.1052132696, -0.6410270333, -0.0070778839, 0.1902692467, 0.0170504022, -0.110716179, 0.4376253188, 0.2009117454, 0.2011170685, -0.1986067146, -0.1770438105, -0.0268414747, -0.3467768431, 0.2622583807, 0.2290107012, 0.9725439548, 0.3037911952, -0.0178372189, -0.2461889386, -0.2876550853, 0.3181415796, -0.1412919164, 0.096426703, -0.0334798135, 0.1638564914, -0.0066461293, 0.0795315355, 0.1786457896, -0.1984004825, -0.3219794631, 0.14419581, 0.2092734724, 0.1499034762, -0.0769898593, 0.2227741927, -0.0069249999, -0.5360803604, -0.1622270495, 0.1621029377, -0.1940679848, -0.002512923, -0.157969445, -0.1635234654, 0.0125906831, 0.1731101573, -0.2185918689, -0.3938207328, 0.1218771115, -0.2988182604, 0.090169318, 0.1730711013, 0.2999540269, -0.1409519464, 0.4523229599, 0.0700717866, -0.4763765931, 0.0315773375, -0.4264010489, 0.2209470868, -0.0821023509, -0.2006198913, 0.3717129827, -0.0620402507, -0.0596241765, 0.0782954469, 0.2156304717, -0.1226794198, -0.2524980307, -0.2201793641, 0.2016541064, -0.0487186499, 0.2836751938, 0.0142475115, -0.0444025472, -0.3531100452, 0.098198764, 0.236780256, -0.0731941983, 0.4888929725, 0.1108774319, 0.074644044, -0.0632376522, 0.2072646618, -0.2911496162, -0.0516756587, -0.2402700484, 0.0568368994, -0.1790995151, -0.1905481517, -0.2199584991, -0.243535459, -0.3096455038, 0.2412192374, 0.4692092836, -0.2376054078, 0.0309030544, 0.6320455074, 0.165722385, -0.0936017409, -0.2444898188, -0.3833678365, -0.2815321088, 0.2606073618, 0.0349828899, 0.169071272, -0.182337746, 0.195083335, 0.0428932309, 0.2319659144, -0.3382660747, -0.2922789156, -0.0596757457, -0.0207427721, -0.1724602133, -0.2337258756, -0.0818004981, -0.0461903065, -0.0105834007, 0.1871743649, -0.3719523847, -0.1117966548, -0.1086693779, 0.1343639046, 0.0586421639, 0.08609128, -0.1214581057, -0.0194331706, 0.1044617295, -0.0868426859, 0.0645475164, 0.0617246516, -0.0922832936, 0.1292603016, 0.1601638347, 0.2629647851, 0.4847943485, 0.1789574474, 0.2611071765, 0.3716382384, -0.0535463952, -0.0495567396, -0.1177022308, -0.0050840136, 0.3946693242, 0.2811846137, 0.283236891, 0.0281293187, 0.3294353485, 0.3018318415, -0.2318523377, 0.4853757918, 0.2721365988, 0.0048846239, 0.1061072499, 0.0403883792, -0.1384228766, 0.244455114, -0.2609099448, -0.0666759312, -0.0160508491, 0.137591958, 0.1848718524, -0.1350336671, 0.4519993067, 0.049112577, 0.1267603189, 0.013992372, 0.0240313504, -0.1541054547, 0.0242463518, -0.1712285578, 0.2965512276, -0.0451696143, 0.217672348, -0.0305411778, 0.2744062841, -0.1815502942, -0.0539616793, 0.4115015268, 0.3931549191, 0.3286013007, 0.4514453411, 0.3334860504, -0.0614245608, -0.1849567294, 0.158832103, -0.0040566833, 0.026852224, 0.2798212469, -0.0470077731, -0.073530063, -0.3772166371, 0.0577485822, 0.0023736921, -0.0554844439, -0.4635103941, -0.2876340747, -0.2266051322, -0.1759720147, -0.0545511954, 0.0777322426, -0.1043723822, -0.0139061352, 0.1770657599, -0.1894636303, -0.3768751621, 0.2463281006, 0.3226590455, 0.0027813737, -0.1056745127, 0.4450165629, 0.1443495005, 0.0278386883, 0.2509323359, 0.1308851838, -0.1019840911, -0.6007413864, 0.0299528688, -0.1761227995, -0.1721410155, 0.1025467962, 0.4394342601, 0.3327273726, -0.1517614126, 0.4113420844, 0.1577303708, -0.1094928682, 0.5485168695, -0.2436179072, -0.0672474429, -0.2817369699, 0.5088678002, 0.4764873087, -0.0133347902, -0.1568558961, -0.2877325416, -0.2003144473, -0.1042593047, 0.1413714588, -0.495503366, 0.0041362275, -0.4019591808, 0.0754765272, -0.3712770641, 0.2642135918, -0.0040116129, -0.0641654357, -0.1677326262, 0.1269386113, 0.0001173433, -0.1198330149, 0.3713254333, 0.0040312679, -0.1652785093, -0.2612483203, 0.0879793912, 0.2877478004, -0.0688463375, 0.0040637213, 0.2496357709, 0.0043011322, -0.4659713209, 0.434743166, 0.3153226376, -0.0433092043, 0.2979521453, 0.1562148482, 0.1830862761, -0.2632883191, -0.0596451983, -0.1834953427, -0.1173186675, 0.2206372768, 0.3823350072, 0.3761155009, 0.1452327371, 0.1583518833, -0.0589183122, 0.1035336331, -0.3687585294, 0.137176916, -0.0514298901, -0.3956389427, 0.0165233836, 0.5835598707, -0.2692127526, 0.0541147925, 0.0336924978, -0.2162317187, -0.063844122, -0.2467620224, -0.1282024533, -0.0101066083, -0.1412970275, -0.1669190228, 0.0291328877, 0.1990540773, 0.2016597837, 0.2384433299, 0.1330627799, -0.2272594571, 0.276716888, 0.2326264232, -0.1307003349, -0.0864764377, 0.1529730856, 0.3119271398, 0.1283094287, -0.2092909515, -0.2386765927, 0.1220987812, 0.190907672, 0.0238772091, 0.4852722883, 0.3130239546, -0.2283531874, -0.1911612004, -0.34691903, 0.0401100181, 0.1699617952, -0.2431800067, -0.2555977404 ]
https://github.com/huggingface/datasets/issues/3606
audio column not saved correctly after resampling
Hi ! We just released a new version of `datasets` that should fix this. I tested resampling and using save/load_from_disk afterwards and it seems to be fixed now
## Describe the bug After resampling the audio column, saving with save_to_disk doesn't seem to save with the correct type. ## Steps to reproduce the bug - load a subset of common voice dataset (48Khz) - resample audio column to 16Khz - save with save_to_disk() - load with load_from_disk() ## Expected results I expected that after saving the data, and then loading it back in, the audio column has the correct dataset.Audio type (i.e. same as before saving it) {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': Audio(sampling_rate=16000, mono=True, _storage_dtype='string', id=None), 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} ## Actual results Audio column does not have the right type {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': {'bytes': Value(dtype='binary', id=None), 'path': Value(dtype='string', id=None)}, 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: linux - Python version: - PyArrow version:
28
audio column not saved correctly after resampling ## Describe the bug After resampling the audio column, saving with save_to_disk doesn't seem to save with the correct type. ## Steps to reproduce the bug - load a subset of common voice dataset (48Khz) - resample audio column to 16Khz - save with save_to_disk() - load with load_from_disk() ## Expected results I expected that after saving the data, and then loading it back in, the audio column has the correct dataset.Audio type (i.e. same as before saving it) {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': Audio(sampling_rate=16000, mono=True, _storage_dtype='string', id=None), 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} ## Actual results Audio column does not have the right type {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': {'bytes': Value(dtype='binary', id=None), 'path': Value(dtype='string', id=None)}, 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: linux - Python version: - PyArrow version: Hi ! We just released a new version of `datasets` that should fix this. I tested resampling and using save/load_from_disk afterwards and it seems to be fixed now
[ -0.2528468966, 0.1135269701, 0.0847015381, 0.2255780399, 0.460318774, -0.073203519, 0.1811225116, 0.3404786289, -0.1009492427, 0.0725950599, -0.4832224846, 0.369177103, -0.0401452184, -0.0950341672, -0.0164750442, -0.1994142979, 0.2537722588, 0.0790266395, -0.1742042005, -0.2164458781, -0.2962217927, 0.3525260389, -0.1891234964, 0.069290027, -0.0691821724, 0.0024939547, 0.1407296211, 0.207365647, 0.1072042957, 0.0623661466, 0.0481995046, -0.3001407683, 0.3213793337, 0.1699998975, -0.0001128995, -0.3090108633, 0.0154154161, -0.261693269, 0.0699163154, 0.0612795763, -0.0414636098, 0.0634498224, -0.4947631955, -0.0165033415, -0.0087053077, 0.0780239254, -0.3153741062, -0.3832595348, 0.0751515552, 0.138196975, 0.2147355974, -0.0492028967, -0.0012083652, 0.237168014, -0.0120167499, 0.0725445375, -0.1989046484, 0.0233739167, -0.0382526368, 0.0849669054, 0.1009248421, 0.3572221398, -0.0879145414, -0.3120155931, -0.1956323236, -0.0470523611, -0.2996374369, -0.0160866566, 0.2595230937, 0.1041529849, 0.5175704956, -0.0048606596, -0.2894322574, 0.191459775, -0.0201261435, -0.238647759, 0.237866804, 0.1155951917, 0.0820131972, 0.2807940841, -0.1142901704, 0.0266376231, 0.0994037613, -0.047009971, 0.0836498067, -0.143967852, -0.2032049596, 0.1181914732, 0.1636584699, -0.2784497142, -0.2374083847, -0.0678006262, -0.0963648707, 0.3195741475, -0.543908596, -0.3499386907, -0.2866736948, 0.005518314, -0.0216918644, 0.0298027303, 0.0182991251, 0.1406375617, 0.199826017, -0.0217385367, 0.3478655219, 0.2525072098, 0.1130222902, 0.1037760824, 0.3521867096, -0.0746135712, 0.02233731, -0.1477271616, 0.0836914852, 0.2690513432, 0.5099982023, 0.0197617766, -0.0672586262, -0.3000499308, -0.2156443447, 0.2878974974, 0.0345069692, 0.049633801, -0.1710571647, 0.1251998395, -0.0764244795, 0.4590424597, 0.0327581875, 0.4337724447, -0.0936871469, -0.0147613036, -0.0085535487, -0.2855796218, 0.2067207992, 0.0529182144, 0.2645798922, 0.0313418806, 0.149652347, 0.3465573192, -0.3265751898, -0.3838711977, -0.2842284739, 0.0488252416, -0.1309248805, 0.1274592727, -0.0423227437, 0.2578018606, -0.1696449369, 0.0020380409, -0.0619814396, 0.4289253354, -0.2903952599, -0.1125706136, -0.2923178077, 0.1907129139, 0.0864499062, 0.0131146498, -0.2744625807, 0.0089156255, 0.4834216237, -0.2748686671, 0.0773145482, -0.0806788057, -0.1565922946, -0.0632598177, 0.1286387742, -0.4940531254, -0.4053564072, 0.1426912546, -0.1175563484, 0.0030382585, 0.3993893266, 0.2996936142, 0.3102989197, -0.1869680136, -0.0549756736, 0.4295400679, 0.3371573091, -0.2676152587, -0.5990156531, -0.1776273549, 0.146871075, 0.1951403767, -0.0752948448, 0.0491237007, 0.4992274642, -0.1595560908, 0.2319822311, 0.456225574, 0.0454690121, 0.2549942136, -0.2811858058, -0.057266809, -0.1447132975, -0.0621902868, -0.2464316487, 0.3153679669, -0.0039911554, 0.0241305213, 0.3176389337, 0.0370045751, 0.1516217887, 0.0490026847, 0.3597032726, -0.2816777229, 0.0861697793, -0.21436131, -0.1178097054, -0.0486442074, -0.1503627896, -0.2163768411, 0.2488515526, -0.0914003327, -0.3676002622, -0.364598155, -0.2110551, -0.0076357652, 0.087645933, 0.0707298368, -0.3114387691, 0.0439620502, -0.1159250587, 0.0142318457, 0.0953129455, -0.0484625846, -0.1316909939, 0.0089559061, -0.0677900389, -0.186193496, 0.0149719482, 0.3123128116, 0.3450392187, 0.1589997411, -0.2119973302, 0.5700928569, 0.0687832162, 0.3879565597, -0.6059725285, -0.1892718822, 0.1249326617, -0.0319603756, -0.0265802778, -0.1580911428, 0.2721363902, -0.0876074359, -0.0798753053, 0.3454016149, 0.3811721206, 0.0345169641, -0.0312259402, 0.0697629005, 0.1346303374, 0.0370551869, 0.0012723397, -0.0233149361, -0.3874672949, -0.1099684834, -0.0968804359, -0.1654322743, -0.3453849554, 0.117053479, 0.530803442, -0.1850414127, 0.2281682342, 0.0075675021, -0.1470186859, -0.1087352335, 0.1124928817, 0.2404015064, 0.466619581, 0.0254021101, 0.1515966505, -0.1779877245, -0.033627443, -0.1533635259, 0.0971813947, -0.0775929242, -0.0901783034, 0.4509018064, 0.1687518209, -0.1973529458, -0.3663102388, 0.6564016938, -0.1237366945, 0.0765913874, -0.5308884382, -0.2410462648, -0.2315034568, 0.3585716784, -0.0324923098, -0.2053435594, -0.0422546938, -0.1393605024, 0.0086700944, 0.5790907741, -0.2330856025, 0.2047369182, 0.1589427441, 0.1110528857, 0.0579949431, 0.0984032378, 0.0009990127, 0.249581933, -0.3836548924, 0.0910879895, -0.0382782519, -0.1425764114, -0.0677048489, -0.0772965625, -0.0807073861, -0.1428430676, -0.0605803654, -0.036714606, -0.0281041022, 0.3250165284, -0.2733567655, 0.2014372647, -0.1686039716, -0.2538140118, 0.1812571883, 0.0491871014, -0.2323764414, 0.3382060826, 0.0537909046, 0.304836601, 0.0122896992, -0.3900027871, -0.1645230055, -0.2841764688, 0.056259837, -0.4697793722, 0.0638715327, -0.0945689529, -0.0432003476, -0.3328934014, -0.0877646506, 0.0427141897, -0.6847988367, -0.0959491879, 0.5248351693, -0.1414031386, -0.4598067105, -0.2473503649, 0.1240172759, 0.1540139467, -0.1365685016, 0.0365167186, 0.2330843359, 0.0508519225, -0.0311741885, -0.0240802616, 0.1157598644, 0.3267198801, -0.1417649388, 0.0993378758, 0.0251766592, -0.1981299371, 0.0282436609, 0.5364112258, 0.5549005866, -0.1644926816, 0.178687796, -0.1952570826, 0.220257774, 0.0919294953, 0.1740239263, 0.1686147749, 0.0544731617, 0.0890805796, -0.3747352362, -0.162164852, 0.1152466238, -0.1892510653, 0.0707588643, 0.0973942876, 0.3600244224, -0.0746506006, 0.0279321894, 0.0800896138, -0.1834504455, -0.1530849934, 0.0976338163, -0.0343952514, 0.0389795862, 0.2103648782, 0.2026925534, 0.2165843993, -0.0293328147, 0.1484295428, 0.0814132169, 0.1881538481, -0.1185711473, -0.4481307268, -0.2234360427, -0.3545651734, 0.0912399739, 0.1035313904, 0.6006823778, -0.0777226835, -0.2779709101, -0.0437242165, 0.2529000044, 0.1686933488, -0.1633769572, -0.0454406515, 0.0208258945, 0.407099247, -0.0739364773, -0.1055468097, 0.1402896941, -0.4342110753, -0.072770603, 0.5643237829, 0.0091407634, 0.1789480299, 0.0624711774, 0.3873260915, -0.2238224447, -0.1558467001, -0.1838876009, -0.3179812133, -0.0101093715, -0.0952812433, 0.009905207, 0.179243356, -0.0474920273, -0.1546021551, 0.2184117883, -0.316488862, 0.0388397276, -0.1304415315, 0.5755527616, -0.1819608063, 0.3327232897, 0.0214157682, -0.1384477168, -0.0322244354, 0.2376999408, -0.1764524877, 0.4605278373, 0.3290474713, -0.3243385553, 0.1581997275, -0.0160875637, -0.0998200104, -0.0700144395, -0.0059688897, -0.0816362649, -0.3749403059, -0.2816533446, 0.4204262197, 0.1701109111, -0.1022722572, -0.0232976787, 0.6227812767, -0.0825516656, -0.1838493049, 0.0011258528, 0.2217093557, -0.1487594992, 0.4297595024, -0.1417057812, 0.6527841687, 0.2523675859, 0.1065090671, 0.1462152898, -0.5444073081, -0.2293321937, -0.1652929187, 0.1697012186, -0.2202854604, 0.2531221509, -0.0827697068, 0.2382111549, -0.0561196283, 0.0643691719, -0.3056360185, 0.0728711784, -0.2805967033, 0.047717683, -0.0501614027, -0.0679105893, -0.2904999256, -0.2710367739, 0.1809450388, 0.111208424, 0.0109700523, 0.169707343, 0.1199104562, 0.0916064531, 0.03488563, -0.1431538016, -0.2330219299, 0.093914941, 0.0905673578, -0.0380423069, -0.0123269288, -0.2984679937, -0.0513437055, 0.1791595221, 0.0517803282, 0.1506680995, -0.0067560547, 0.1243581846, 0.2880651057, 0.6339942813, 0.2871091068, -0.0715227798, 0.154316172, -0.0150799965, -0.3156057, -0.3104260862, -0.086976327, 0.0209081825, -0.2128934264, -0.2167936414, 0.1125920042, -0.4937744439, -0.062621437, 0.0410491303, 0.1609905958, -0.4045675695, 0.1496849358, -0.1141724065, -0.0739824474, 0.6445255876, 0.0047600083, 0.1655536294, -0.0243828744, 0.6089037657, 0.2820837796, -0.1513030529, 0.3287304938, -0.2582818866, -0.1653562337, -0.1762723923, 0.3575164974, 0.0284486189, -0.1852244139, 0.0541780517, -0.3673055768, -0.3740349412, -0.1462273896, 0.2043999583, 0.0661951825, -0.2488675117, -0.2211665511, -0.2388254404, -0.4250851274, 0.0921060145, 0.4310159981, 0.0376857556, -0.1146062464, -0.0520507358, -0.1018365249, -0.0090183541, -0.2931331694, -0.0984845459, 0.1196277067, 0.2182096243, 0.01692071, 0.0340712182, 0.1967618912, -0.1715978682, 0.1906102598, 0.2100922018, 0.0160771944, -0.1417850405, -0.2114672959, 0.1718948334, 0.0301391482, -0.1217823997, 0.0642175525, -0.1088643447, -0.2690013945, -0.0798070952, -0.1402969062, 0.1687149554, 0.0396477282, 0.0105390819, -0.350502193, 0.014726541, 0.3097483814, 0.0237887017, -0.1067951471, -0.1164642796, -0.0313632786, 0.1639649421, 0.0480807647, -0.1718614697, -0.5198201537, 0.0705167502, -0.1465520114, -0.0338664576, 0.4798908234, -0.1818328947, -0.1375236809, 0.0999999791, 0.4513640404, 0.0306157395, -0.0777123421, -0.2748290002, -0.117890738, 0.2755974531, 0.0477817245, -0.0378985405, -0.2475102395, -0.1497109532, -0.1189009026, 0.0452048592, 0.0837727785, -0.163797766, -0.133161664, -0.1439950466, 0.5757254958, -0.2095103115, 0.1527417451, 0.4259846807, -0.0916160047, 0.2945958674, 0.404622227, -0.2868052721, -0.0771865845, 0.1228252798, -0.0519941337, 0.1418467462, 0.2665627599, 0.0006832819, 0.137214765, -0.3130125701, 0.3408060372, 0.2238617837, -0.2402778119, 0.3856385946, 0.3453139067, 0.4145476818, -0.5463547111, -0.1660172641, -0.1738705933, 0.10690438, -0.3406039774, -0.1065189019, -0.0591783673, -0.2635780871, 0.1377307624, -0.2031533867, -0.138170734, 0.3197323084, 0.5135267377, -0.0895085558, -0.0313332565, -0.0075803436, -0.5768504739, -0.0022710238, 0.1264247596, -0.1566872597, 0.3915846348, 0.1538472027, -0.0012097247, 0.2591921389, 0.3685637414, 0.221171692, 0.2122566253, 0.1616622508, 0.2372278124, 0.1192496419, 0.0316733234, 0.1795863062, 0.3393382132, 0.1879531592, 0.1275190562, 0.1141878515, 0.1238152608, -0.0648056418, 0.2394205034, 0.1895474643, 0.2987000048, 0.0452330224, 0.1511596888, -0.2689310908, -0.3677330613, -0.1300040931, -0.2102947831, 0.2810280919, -0.1317897886, 0.0126922941, -0.0999968573, 0.3402333558, 0.0332075991, 0.0837625265, 0.1125181019, 0.1149704605, 0.138022095, -0.7388619781, -0.1203548238, -0.1033318415, -0.3213712871, -0.0267777964, 0.2734606564, 0.2446896583, -0.1623892784, 0.1950090379, 0.1511862576, 0.1163840219, 0.2537924945, -0.0582961105, -0.3496398032, 0.136596337, -0.1755851656, -0.2157066017, 0.127702117, 0.2967326939, -0.1578199416, -0.5848609209, 0.3915533423, 0.5221313834, 0.1340815127, -0.085311912, 0.0585803203, -0.1680035144, -0.0927199796, 0.1720479131, 0.2525339723, 0.2027441114, -0.2543665171, -0.0152223706, 0.3261375725, -0.0582910702, -0.061234165, -0.5134110451, -0.035762798, 0.7402210832, 0.2330051214, 0.0895058811, -0.2819790542, 0.0429220721, -0.0477159172, -0.0737348199, -0.4973107576, 0.2877762616, 0.1218914315, -0.2273941338, 0.2051206678, 0.0138111049, -0.1202945188, 0.3989735246, -0.5146306157, -0.4746529758, 0.329829663, 0.2447845191, -0.2865897715, -0.0288347881, 0.4929170907, -0.1522328854, 0.1190532744, -0.741001606, -0.0567587018, 0.1680012196, -0.2270632088, 0.1816165149, 0.2049039453, -0.1839321256, -0.1063852087, -0.0453702025, 0.4732525349, 0.2032730728, -0.2116980851, 0.1633903831, -0.3394487798 ]
https://github.com/huggingface/datasets/issues/3606
audio column not saved correctly after resampling
Hi @lhoestq, Just tested the latest datasets version, and confirming that this is fixed for me. Thanks!
## Describe the bug After resampling the audio column, saving with save_to_disk doesn't seem to save with the correct type. ## Steps to reproduce the bug - load a subset of common voice dataset (48Khz) - resample audio column to 16Khz - save with save_to_disk() - load with load_from_disk() ## Expected results I expected that after saving the data, and then loading it back in, the audio column has the correct dataset.Audio type (i.e. same as before saving it) {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': Audio(sampling_rate=16000, mono=True, _storage_dtype='string', id=None), 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} ## Actual results Audio column does not have the right type {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': {'bytes': Value(dtype='binary', id=None), 'path': Value(dtype='string', id=None)}, 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: linux - Python version: - PyArrow version:
17
audio column not saved correctly after resampling ## Describe the bug After resampling the audio column, saving with save_to_disk doesn't seem to save with the correct type. ## Steps to reproduce the bug - load a subset of common voice dataset (48Khz) - resample audio column to 16Khz - save with save_to_disk() - load with load_from_disk() ## Expected results I expected that after saving the data, and then loading it back in, the audio column has the correct dataset.Audio type (i.e. same as before saving it) {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': Audio(sampling_rate=16000, mono=True, _storage_dtype='string', id=None), 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} ## Actual results Audio column does not have the right type {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': {'bytes': Value(dtype='binary', id=None), 'path': Value(dtype='string', id=None)}, 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: linux - Python version: - PyArrow version: Hi @lhoestq, Just tested the latest datasets version, and confirming that this is fixed for me. Thanks!
[ -0.2528468966, 0.1135269701, 0.0847015381, 0.2255780399, 0.460318774, -0.073203519, 0.1811225116, 0.3404786289, -0.1009492427, 0.0725950599, -0.4832224846, 0.369177103, -0.0401452184, -0.0950341672, -0.0164750442, -0.1994142979, 0.2537722588, 0.0790266395, -0.1742042005, -0.2164458781, -0.2962217927, 0.3525260389, -0.1891234964, 0.069290027, -0.0691821724, 0.0024939547, 0.1407296211, 0.207365647, 0.1072042957, 0.0623661466, 0.0481995046, -0.3001407683, 0.3213793337, 0.1699998975, -0.0001128995, -0.3090108633, 0.0154154161, -0.261693269, 0.0699163154, 0.0612795763, -0.0414636098, 0.0634498224, -0.4947631955, -0.0165033415, -0.0087053077, 0.0780239254, -0.3153741062, -0.3832595348, 0.0751515552, 0.138196975, 0.2147355974, -0.0492028967, -0.0012083652, 0.237168014, -0.0120167499, 0.0725445375, -0.1989046484, 0.0233739167, -0.0382526368, 0.0849669054, 0.1009248421, 0.3572221398, -0.0879145414, -0.3120155931, -0.1956323236, -0.0470523611, -0.2996374369, -0.0160866566, 0.2595230937, 0.1041529849, 0.5175704956, -0.0048606596, -0.2894322574, 0.191459775, -0.0201261435, -0.238647759, 0.237866804, 0.1155951917, 0.0820131972, 0.2807940841, -0.1142901704, 0.0266376231, 0.0994037613, -0.047009971, 0.0836498067, -0.143967852, -0.2032049596, 0.1181914732, 0.1636584699, -0.2784497142, -0.2374083847, -0.0678006262, -0.0963648707, 0.3195741475, -0.543908596, -0.3499386907, -0.2866736948, 0.005518314, -0.0216918644, 0.0298027303, 0.0182991251, 0.1406375617, 0.199826017, -0.0217385367, 0.3478655219, 0.2525072098, 0.1130222902, 0.1037760824, 0.3521867096, -0.0746135712, 0.02233731, -0.1477271616, 0.0836914852, 0.2690513432, 0.5099982023, 0.0197617766, -0.0672586262, -0.3000499308, -0.2156443447, 0.2878974974, 0.0345069692, 0.049633801, -0.1710571647, 0.1251998395, -0.0764244795, 0.4590424597, 0.0327581875, 0.4337724447, -0.0936871469, -0.0147613036, -0.0085535487, -0.2855796218, 0.2067207992, 0.0529182144, 0.2645798922, 0.0313418806, 0.149652347, 0.3465573192, -0.3265751898, -0.3838711977, -0.2842284739, 0.0488252416, -0.1309248805, 0.1274592727, -0.0423227437, 0.2578018606, -0.1696449369, 0.0020380409, -0.0619814396, 0.4289253354, -0.2903952599, -0.1125706136, -0.2923178077, 0.1907129139, 0.0864499062, 0.0131146498, -0.2744625807, 0.0089156255, 0.4834216237, -0.2748686671, 0.0773145482, -0.0806788057, -0.1565922946, -0.0632598177, 0.1286387742, -0.4940531254, -0.4053564072, 0.1426912546, -0.1175563484, 0.0030382585, 0.3993893266, 0.2996936142, 0.3102989197, -0.1869680136, -0.0549756736, 0.4295400679, 0.3371573091, -0.2676152587, -0.5990156531, -0.1776273549, 0.146871075, 0.1951403767, -0.0752948448, 0.0491237007, 0.4992274642, -0.1595560908, 0.2319822311, 0.456225574, 0.0454690121, 0.2549942136, -0.2811858058, -0.057266809, -0.1447132975, -0.0621902868, -0.2464316487, 0.3153679669, -0.0039911554, 0.0241305213, 0.3176389337, 0.0370045751, 0.1516217887, 0.0490026847, 0.3597032726, -0.2816777229, 0.0861697793, -0.21436131, -0.1178097054, -0.0486442074, -0.1503627896, -0.2163768411, 0.2488515526, -0.0914003327, -0.3676002622, -0.364598155, -0.2110551, -0.0076357652, 0.087645933, 0.0707298368, -0.3114387691, 0.0439620502, -0.1159250587, 0.0142318457, 0.0953129455, -0.0484625846, -0.1316909939, 0.0089559061, -0.0677900389, -0.186193496, 0.0149719482, 0.3123128116, 0.3450392187, 0.1589997411, -0.2119973302, 0.5700928569, 0.0687832162, 0.3879565597, -0.6059725285, -0.1892718822, 0.1249326617, -0.0319603756, -0.0265802778, -0.1580911428, 0.2721363902, -0.0876074359, -0.0798753053, 0.3454016149, 0.3811721206, 0.0345169641, -0.0312259402, 0.0697629005, 0.1346303374, 0.0370551869, 0.0012723397, -0.0233149361, -0.3874672949, -0.1099684834, -0.0968804359, -0.1654322743, -0.3453849554, 0.117053479, 0.530803442, -0.1850414127, 0.2281682342, 0.0075675021, -0.1470186859, -0.1087352335, 0.1124928817, 0.2404015064, 0.466619581, 0.0254021101, 0.1515966505, -0.1779877245, -0.033627443, -0.1533635259, 0.0971813947, -0.0775929242, -0.0901783034, 0.4509018064, 0.1687518209, -0.1973529458, -0.3663102388, 0.6564016938, -0.1237366945, 0.0765913874, -0.5308884382, -0.2410462648, -0.2315034568, 0.3585716784, -0.0324923098, -0.2053435594, -0.0422546938, -0.1393605024, 0.0086700944, 0.5790907741, -0.2330856025, 0.2047369182, 0.1589427441, 0.1110528857, 0.0579949431, 0.0984032378, 0.0009990127, 0.249581933, -0.3836548924, 0.0910879895, -0.0382782519, -0.1425764114, -0.0677048489, -0.0772965625, -0.0807073861, -0.1428430676, -0.0605803654, -0.036714606, -0.0281041022, 0.3250165284, -0.2733567655, 0.2014372647, -0.1686039716, -0.2538140118, 0.1812571883, 0.0491871014, -0.2323764414, 0.3382060826, 0.0537909046, 0.304836601, 0.0122896992, -0.3900027871, -0.1645230055, -0.2841764688, 0.056259837, -0.4697793722, 0.0638715327, -0.0945689529, -0.0432003476, -0.3328934014, -0.0877646506, 0.0427141897, -0.6847988367, -0.0959491879, 0.5248351693, -0.1414031386, -0.4598067105, -0.2473503649, 0.1240172759, 0.1540139467, -0.1365685016, 0.0365167186, 0.2330843359, 0.0508519225, -0.0311741885, -0.0240802616, 0.1157598644, 0.3267198801, -0.1417649388, 0.0993378758, 0.0251766592, -0.1981299371, 0.0282436609, 0.5364112258, 0.5549005866, -0.1644926816, 0.178687796, -0.1952570826, 0.220257774, 0.0919294953, 0.1740239263, 0.1686147749, 0.0544731617, 0.0890805796, -0.3747352362, -0.162164852, 0.1152466238, -0.1892510653, 0.0707588643, 0.0973942876, 0.3600244224, -0.0746506006, 0.0279321894, 0.0800896138, -0.1834504455, -0.1530849934, 0.0976338163, -0.0343952514, 0.0389795862, 0.2103648782, 0.2026925534, 0.2165843993, -0.0293328147, 0.1484295428, 0.0814132169, 0.1881538481, -0.1185711473, -0.4481307268, -0.2234360427, -0.3545651734, 0.0912399739, 0.1035313904, 0.6006823778, -0.0777226835, -0.2779709101, -0.0437242165, 0.2529000044, 0.1686933488, -0.1633769572, -0.0454406515, 0.0208258945, 0.407099247, -0.0739364773, -0.1055468097, 0.1402896941, -0.4342110753, -0.072770603, 0.5643237829, 0.0091407634, 0.1789480299, 0.0624711774, 0.3873260915, -0.2238224447, -0.1558467001, -0.1838876009, -0.3179812133, -0.0101093715, -0.0952812433, 0.009905207, 0.179243356, -0.0474920273, -0.1546021551, 0.2184117883, -0.316488862, 0.0388397276, -0.1304415315, 0.5755527616, -0.1819608063, 0.3327232897, 0.0214157682, -0.1384477168, -0.0322244354, 0.2376999408, -0.1764524877, 0.4605278373, 0.3290474713, -0.3243385553, 0.1581997275, -0.0160875637, -0.0998200104, -0.0700144395, -0.0059688897, -0.0816362649, -0.3749403059, -0.2816533446, 0.4204262197, 0.1701109111, -0.1022722572, -0.0232976787, 0.6227812767, -0.0825516656, -0.1838493049, 0.0011258528, 0.2217093557, -0.1487594992, 0.4297595024, -0.1417057812, 0.6527841687, 0.2523675859, 0.1065090671, 0.1462152898, -0.5444073081, -0.2293321937, -0.1652929187, 0.1697012186, -0.2202854604, 0.2531221509, -0.0827697068, 0.2382111549, -0.0561196283, 0.0643691719, -0.3056360185, 0.0728711784, -0.2805967033, 0.047717683, -0.0501614027, -0.0679105893, -0.2904999256, -0.2710367739, 0.1809450388, 0.111208424, 0.0109700523, 0.169707343, 0.1199104562, 0.0916064531, 0.03488563, -0.1431538016, -0.2330219299, 0.093914941, 0.0905673578, -0.0380423069, -0.0123269288, -0.2984679937, -0.0513437055, 0.1791595221, 0.0517803282, 0.1506680995, -0.0067560547, 0.1243581846, 0.2880651057, 0.6339942813, 0.2871091068, -0.0715227798, 0.154316172, -0.0150799965, -0.3156057, -0.3104260862, -0.086976327, 0.0209081825, -0.2128934264, -0.2167936414, 0.1125920042, -0.4937744439, -0.062621437, 0.0410491303, 0.1609905958, -0.4045675695, 0.1496849358, -0.1141724065, -0.0739824474, 0.6445255876, 0.0047600083, 0.1655536294, -0.0243828744, 0.6089037657, 0.2820837796, -0.1513030529, 0.3287304938, -0.2582818866, -0.1653562337, -0.1762723923, 0.3575164974, 0.0284486189, -0.1852244139, 0.0541780517, -0.3673055768, -0.3740349412, -0.1462273896, 0.2043999583, 0.0661951825, -0.2488675117, -0.2211665511, -0.2388254404, -0.4250851274, 0.0921060145, 0.4310159981, 0.0376857556, -0.1146062464, -0.0520507358, -0.1018365249, -0.0090183541, -0.2931331694, -0.0984845459, 0.1196277067, 0.2182096243, 0.01692071, 0.0340712182, 0.1967618912, -0.1715978682, 0.1906102598, 0.2100922018, 0.0160771944, -0.1417850405, -0.2114672959, 0.1718948334, 0.0301391482, -0.1217823997, 0.0642175525, -0.1088643447, -0.2690013945, -0.0798070952, -0.1402969062, 0.1687149554, 0.0396477282, 0.0105390819, -0.350502193, 0.014726541, 0.3097483814, 0.0237887017, -0.1067951471, -0.1164642796, -0.0313632786, 0.1639649421, 0.0480807647, -0.1718614697, -0.5198201537, 0.0705167502, -0.1465520114, -0.0338664576, 0.4798908234, -0.1818328947, -0.1375236809, 0.0999999791, 0.4513640404, 0.0306157395, -0.0777123421, -0.2748290002, -0.117890738, 0.2755974531, 0.0477817245, -0.0378985405, -0.2475102395, -0.1497109532, -0.1189009026, 0.0452048592, 0.0837727785, -0.163797766, -0.133161664, -0.1439950466, 0.5757254958, -0.2095103115, 0.1527417451, 0.4259846807, -0.0916160047, 0.2945958674, 0.404622227, -0.2868052721, -0.0771865845, 0.1228252798, -0.0519941337, 0.1418467462, 0.2665627599, 0.0006832819, 0.137214765, -0.3130125701, 0.3408060372, 0.2238617837, -0.2402778119, 0.3856385946, 0.3453139067, 0.4145476818, -0.5463547111, -0.1660172641, -0.1738705933, 0.10690438, -0.3406039774, -0.1065189019, -0.0591783673, -0.2635780871, 0.1377307624, -0.2031533867, -0.138170734, 0.3197323084, 0.5135267377, -0.0895085558, -0.0313332565, -0.0075803436, -0.5768504739, -0.0022710238, 0.1264247596, -0.1566872597, 0.3915846348, 0.1538472027, -0.0012097247, 0.2591921389, 0.3685637414, 0.221171692, 0.2122566253, 0.1616622508, 0.2372278124, 0.1192496419, 0.0316733234, 0.1795863062, 0.3393382132, 0.1879531592, 0.1275190562, 0.1141878515, 0.1238152608, -0.0648056418, 0.2394205034, 0.1895474643, 0.2987000048, 0.0452330224, 0.1511596888, -0.2689310908, -0.3677330613, -0.1300040931, -0.2102947831, 0.2810280919, -0.1317897886, 0.0126922941, -0.0999968573, 0.3402333558, 0.0332075991, 0.0837625265, 0.1125181019, 0.1149704605, 0.138022095, -0.7388619781, -0.1203548238, -0.1033318415, -0.3213712871, -0.0267777964, 0.2734606564, 0.2446896583, -0.1623892784, 0.1950090379, 0.1511862576, 0.1163840219, 0.2537924945, -0.0582961105, -0.3496398032, 0.136596337, -0.1755851656, -0.2157066017, 0.127702117, 0.2967326939, -0.1578199416, -0.5848609209, 0.3915533423, 0.5221313834, 0.1340815127, -0.085311912, 0.0585803203, -0.1680035144, -0.0927199796, 0.1720479131, 0.2525339723, 0.2027441114, -0.2543665171, -0.0152223706, 0.3261375725, -0.0582910702, -0.061234165, -0.5134110451, -0.035762798, 0.7402210832, 0.2330051214, 0.0895058811, -0.2819790542, 0.0429220721, -0.0477159172, -0.0737348199, -0.4973107576, 0.2877762616, 0.1218914315, -0.2273941338, 0.2051206678, 0.0138111049, -0.1202945188, 0.3989735246, -0.5146306157, -0.4746529758, 0.329829663, 0.2447845191, -0.2865897715, -0.0288347881, 0.4929170907, -0.1522328854, 0.1190532744, -0.741001606, -0.0567587018, 0.1680012196, -0.2270632088, 0.1816165149, 0.2049039453, -0.1839321256, -0.1063852087, -0.0453702025, 0.4732525349, 0.2032730728, -0.2116980851, 0.1633903831, -0.3394487798 ]
https://github.com/huggingface/datasets/issues/3606
audio column not saved correctly after resampling
Also, just an FYI, data that I had saved (with save_to_disk) previously from common voice using datasets==1.17.0 now give the error below when loading (with load_from disk) using datasets==1.18.0. However, when starting fresh using load_dataset, then doing the resampling, the save/load_from disk worked fine. ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <timed exec> in <module> /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_from_disk(dataset_path, fs, keep_in_memory) 1747 return Dataset.load_from_disk(dataset_path, fs, keep_in_memory=keep_in_memory) 1748 elif fs.isfile(Path(dest_dataset_path, config.DATASETDICT_JSON_FILENAME).as_posix()): -> 1749 return DatasetDict.load_from_disk(dataset_path, fs, keep_in_memory=keep_in_memory) 1750 else: 1751 raise FileNotFoundError( /opt/conda/lib/python3.7/site-packages/datasets/dataset_dict.py in load_from_disk(dataset_dict_path, fs, keep_in_memory) 769 else Path(dest_dataset_dict_path, k).as_posix() 770 ) --> 771 dataset_dict[k] = Dataset.load_from_disk(dataset_dict_split_path, fs, keep_in_memory=keep_in_memory) 772 return dataset_dict 773 /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in load_from_disk(dataset_path, fs, keep_in_memory) 1118 info=dataset_info, 1119 split=split, -> 1120 fingerprint=state["_fingerprint"], 1121 ) 1122 /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 655 if self.info.features.type != inferred_features.type: 656 raise ValueError( --> 657 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 658 ) 659 ValueError: External features info don't match the dataset: Got {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': Audio(sampling_rate=48000, mono=True, id=None), 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} with type struct<accent: string, age: string, audio: struct<bytes: binary, path: string>, client_id: string, down_votes: int64, gender: string, locale: string, path: string, segment: string, sentence: string, up_votes: int64> but expected something like {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': {'path': Value(dtype='string', id=None), 'bytes': Value(dtype='binary', id=None)}, 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} with type struct<accent: string, age: string, audio: struct<path: string, bytes: binary>, client_id: string, down_votes: int64, gender: string, locale: string, path: string, segment: string, sentence: string, up_votes: int64> ```
## Describe the bug After resampling the audio column, saving with save_to_disk doesn't seem to save with the correct type. ## Steps to reproduce the bug - load a subset of common voice dataset (48Khz) - resample audio column to 16Khz - save with save_to_disk() - load with load_from_disk() ## Expected results I expected that after saving the data, and then loading it back in, the audio column has the correct dataset.Audio type (i.e. same as before saving it) {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': Audio(sampling_rate=16000, mono=True, _storage_dtype='string', id=None), 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} ## Actual results Audio column does not have the right type {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': {'bytes': Value(dtype='binary', id=None), 'path': Value(dtype='string', id=None)}, 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: linux - Python version: - PyArrow version:
290
audio column not saved correctly after resampling ## Describe the bug After resampling the audio column, saving with save_to_disk doesn't seem to save with the correct type. ## Steps to reproduce the bug - load a subset of common voice dataset (48Khz) - resample audio column to 16Khz - save with save_to_disk() - load with load_from_disk() ## Expected results I expected that after saving the data, and then loading it back in, the audio column has the correct dataset.Audio type (i.e. same as before saving it) {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': Audio(sampling_rate=16000, mono=True, _storage_dtype='string', id=None), 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} ## Actual results Audio column does not have the right type {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': {'bytes': Value(dtype='binary', id=None), 'path': Value(dtype='string', id=None)}, 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: linux - Python version: - PyArrow version: Also, just an FYI, data that I had saved (with save_to_disk) previously from common voice using datasets==1.17.0 now give the error below when loading (with load_from disk) using datasets==1.18.0. However, when starting fresh using load_dataset, then doing the resampling, the save/load_from disk worked fine. ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <timed exec> in <module> /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_from_disk(dataset_path, fs, keep_in_memory) 1747 return Dataset.load_from_disk(dataset_path, fs, keep_in_memory=keep_in_memory) 1748 elif fs.isfile(Path(dest_dataset_path, config.DATASETDICT_JSON_FILENAME).as_posix()): -> 1749 return DatasetDict.load_from_disk(dataset_path, fs, keep_in_memory=keep_in_memory) 1750 else: 1751 raise FileNotFoundError( /opt/conda/lib/python3.7/site-packages/datasets/dataset_dict.py in load_from_disk(dataset_dict_path, fs, keep_in_memory) 769 else Path(dest_dataset_dict_path, k).as_posix() 770 ) --> 771 dataset_dict[k] = Dataset.load_from_disk(dataset_dict_split_path, fs, keep_in_memory=keep_in_memory) 772 return dataset_dict 773 /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in load_from_disk(dataset_path, fs, keep_in_memory) 1118 info=dataset_info, 1119 split=split, -> 1120 fingerprint=state["_fingerprint"], 1121 ) 1122 /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 655 if self.info.features.type != inferred_features.type: 656 raise ValueError( --> 657 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 658 ) 659 ValueError: External features info don't match the dataset: Got {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': Audio(sampling_rate=48000, mono=True, id=None), 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} with type struct<accent: string, age: string, audio: struct<bytes: binary, path: string>, client_id: string, down_votes: int64, gender: string, locale: string, path: string, segment: string, sentence: string, up_votes: int64> but expected something like {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': {'path': Value(dtype='string', id=None), 'bytes': Value(dtype='binary', id=None)}, 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} with type struct<accent: string, age: string, audio: struct<path: string, bytes: binary>, client_id: string, down_votes: int64, gender: string, locale: string, path: string, segment: string, sentence: string, up_votes: int64> ```
[ -0.2528468966, 0.1135269701, 0.0847015381, 0.2255780399, 0.460318774, -0.073203519, 0.1811225116, 0.3404786289, -0.1009492427, 0.0725950599, -0.4832224846, 0.369177103, -0.0401452184, -0.0950341672, -0.0164750442, -0.1994142979, 0.2537722588, 0.0790266395, -0.1742042005, -0.2164458781, -0.2962217927, 0.3525260389, -0.1891234964, 0.069290027, -0.0691821724, 0.0024939547, 0.1407296211, 0.207365647, 0.1072042957, 0.0623661466, 0.0481995046, -0.3001407683, 0.3213793337, 0.1699998975, -0.0001128995, -0.3090108633, 0.0154154161, -0.261693269, 0.0699163154, 0.0612795763, -0.0414636098, 0.0634498224, -0.4947631955, -0.0165033415, -0.0087053077, 0.0780239254, -0.3153741062, -0.3832595348, 0.0751515552, 0.138196975, 0.2147355974, -0.0492028967, -0.0012083652, 0.237168014, -0.0120167499, 0.0725445375, -0.1989046484, 0.0233739167, -0.0382526368, 0.0849669054, 0.1009248421, 0.3572221398, -0.0879145414, -0.3120155931, -0.1956323236, -0.0470523611, -0.2996374369, -0.0160866566, 0.2595230937, 0.1041529849, 0.5175704956, -0.0048606596, -0.2894322574, 0.191459775, -0.0201261435, -0.238647759, 0.237866804, 0.1155951917, 0.0820131972, 0.2807940841, -0.1142901704, 0.0266376231, 0.0994037613, -0.047009971, 0.0836498067, -0.143967852, -0.2032049596, 0.1181914732, 0.1636584699, -0.2784497142, -0.2374083847, -0.0678006262, -0.0963648707, 0.3195741475, -0.543908596, -0.3499386907, -0.2866736948, 0.005518314, -0.0216918644, 0.0298027303, 0.0182991251, 0.1406375617, 0.199826017, -0.0217385367, 0.3478655219, 0.2525072098, 0.1130222902, 0.1037760824, 0.3521867096, -0.0746135712, 0.02233731, -0.1477271616, 0.0836914852, 0.2690513432, 0.5099982023, 0.0197617766, -0.0672586262, -0.3000499308, -0.2156443447, 0.2878974974, 0.0345069692, 0.049633801, -0.1710571647, 0.1251998395, -0.0764244795, 0.4590424597, 0.0327581875, 0.4337724447, -0.0936871469, -0.0147613036, -0.0085535487, -0.2855796218, 0.2067207992, 0.0529182144, 0.2645798922, 0.0313418806, 0.149652347, 0.3465573192, -0.3265751898, -0.3838711977, -0.2842284739, 0.0488252416, -0.1309248805, 0.1274592727, -0.0423227437, 0.2578018606, -0.1696449369, 0.0020380409, -0.0619814396, 0.4289253354, -0.2903952599, -0.1125706136, -0.2923178077, 0.1907129139, 0.0864499062, 0.0131146498, -0.2744625807, 0.0089156255, 0.4834216237, -0.2748686671, 0.0773145482, -0.0806788057, -0.1565922946, -0.0632598177, 0.1286387742, -0.4940531254, -0.4053564072, 0.1426912546, -0.1175563484, 0.0030382585, 0.3993893266, 0.2996936142, 0.3102989197, -0.1869680136, -0.0549756736, 0.4295400679, 0.3371573091, -0.2676152587, -0.5990156531, -0.1776273549, 0.146871075, 0.1951403767, -0.0752948448, 0.0491237007, 0.4992274642, -0.1595560908, 0.2319822311, 0.456225574, 0.0454690121, 0.2549942136, -0.2811858058, -0.057266809, -0.1447132975, -0.0621902868, -0.2464316487, 0.3153679669, -0.0039911554, 0.0241305213, 0.3176389337, 0.0370045751, 0.1516217887, 0.0490026847, 0.3597032726, -0.2816777229, 0.0861697793, -0.21436131, -0.1178097054, -0.0486442074, -0.1503627896, -0.2163768411, 0.2488515526, -0.0914003327, -0.3676002622, -0.364598155, -0.2110551, -0.0076357652, 0.087645933, 0.0707298368, -0.3114387691, 0.0439620502, -0.1159250587, 0.0142318457, 0.0953129455, -0.0484625846, -0.1316909939, 0.0089559061, -0.0677900389, -0.186193496, 0.0149719482, 0.3123128116, 0.3450392187, 0.1589997411, -0.2119973302, 0.5700928569, 0.0687832162, 0.3879565597, -0.6059725285, -0.1892718822, 0.1249326617, -0.0319603756, -0.0265802778, -0.1580911428, 0.2721363902, -0.0876074359, -0.0798753053, 0.3454016149, 0.3811721206, 0.0345169641, -0.0312259402, 0.0697629005, 0.1346303374, 0.0370551869, 0.0012723397, -0.0233149361, -0.3874672949, -0.1099684834, -0.0968804359, -0.1654322743, -0.3453849554, 0.117053479, 0.530803442, -0.1850414127, 0.2281682342, 0.0075675021, -0.1470186859, -0.1087352335, 0.1124928817, 0.2404015064, 0.466619581, 0.0254021101, 0.1515966505, -0.1779877245, -0.033627443, -0.1533635259, 0.0971813947, -0.0775929242, -0.0901783034, 0.4509018064, 0.1687518209, -0.1973529458, -0.3663102388, 0.6564016938, -0.1237366945, 0.0765913874, -0.5308884382, -0.2410462648, -0.2315034568, 0.3585716784, -0.0324923098, -0.2053435594, -0.0422546938, -0.1393605024, 0.0086700944, 0.5790907741, -0.2330856025, 0.2047369182, 0.1589427441, 0.1110528857, 0.0579949431, 0.0984032378, 0.0009990127, 0.249581933, -0.3836548924, 0.0910879895, -0.0382782519, -0.1425764114, -0.0677048489, -0.0772965625, -0.0807073861, -0.1428430676, -0.0605803654, -0.036714606, -0.0281041022, 0.3250165284, -0.2733567655, 0.2014372647, -0.1686039716, -0.2538140118, 0.1812571883, 0.0491871014, -0.2323764414, 0.3382060826, 0.0537909046, 0.304836601, 0.0122896992, -0.3900027871, -0.1645230055, -0.2841764688, 0.056259837, -0.4697793722, 0.0638715327, -0.0945689529, -0.0432003476, -0.3328934014, -0.0877646506, 0.0427141897, -0.6847988367, -0.0959491879, 0.5248351693, -0.1414031386, -0.4598067105, -0.2473503649, 0.1240172759, 0.1540139467, -0.1365685016, 0.0365167186, 0.2330843359, 0.0508519225, -0.0311741885, -0.0240802616, 0.1157598644, 0.3267198801, -0.1417649388, 0.0993378758, 0.0251766592, -0.1981299371, 0.0282436609, 0.5364112258, 0.5549005866, -0.1644926816, 0.178687796, -0.1952570826, 0.220257774, 0.0919294953, 0.1740239263, 0.1686147749, 0.0544731617, 0.0890805796, -0.3747352362, -0.162164852, 0.1152466238, -0.1892510653, 0.0707588643, 0.0973942876, 0.3600244224, -0.0746506006, 0.0279321894, 0.0800896138, -0.1834504455, -0.1530849934, 0.0976338163, -0.0343952514, 0.0389795862, 0.2103648782, 0.2026925534, 0.2165843993, -0.0293328147, 0.1484295428, 0.0814132169, 0.1881538481, -0.1185711473, -0.4481307268, -0.2234360427, -0.3545651734, 0.0912399739, 0.1035313904, 0.6006823778, -0.0777226835, -0.2779709101, -0.0437242165, 0.2529000044, 0.1686933488, -0.1633769572, -0.0454406515, 0.0208258945, 0.407099247, -0.0739364773, -0.1055468097, 0.1402896941, -0.4342110753, -0.072770603, 0.5643237829, 0.0091407634, 0.1789480299, 0.0624711774, 0.3873260915, -0.2238224447, -0.1558467001, -0.1838876009, -0.3179812133, -0.0101093715, -0.0952812433, 0.009905207, 0.179243356, -0.0474920273, -0.1546021551, 0.2184117883, -0.316488862, 0.0388397276, -0.1304415315, 0.5755527616, -0.1819608063, 0.3327232897, 0.0214157682, -0.1384477168, -0.0322244354, 0.2376999408, -0.1764524877, 0.4605278373, 0.3290474713, -0.3243385553, 0.1581997275, -0.0160875637, -0.0998200104, -0.0700144395, -0.0059688897, -0.0816362649, -0.3749403059, -0.2816533446, 0.4204262197, 0.1701109111, -0.1022722572, -0.0232976787, 0.6227812767, -0.0825516656, -0.1838493049, 0.0011258528, 0.2217093557, -0.1487594992, 0.4297595024, -0.1417057812, 0.6527841687, 0.2523675859, 0.1065090671, 0.1462152898, -0.5444073081, -0.2293321937, -0.1652929187, 0.1697012186, -0.2202854604, 0.2531221509, -0.0827697068, 0.2382111549, -0.0561196283, 0.0643691719, -0.3056360185, 0.0728711784, -0.2805967033, 0.047717683, -0.0501614027, -0.0679105893, -0.2904999256, -0.2710367739, 0.1809450388, 0.111208424, 0.0109700523, 0.169707343, 0.1199104562, 0.0916064531, 0.03488563, -0.1431538016, -0.2330219299, 0.093914941, 0.0905673578, -0.0380423069, -0.0123269288, -0.2984679937, -0.0513437055, 0.1791595221, 0.0517803282, 0.1506680995, -0.0067560547, 0.1243581846, 0.2880651057, 0.6339942813, 0.2871091068, -0.0715227798, 0.154316172, -0.0150799965, -0.3156057, -0.3104260862, -0.086976327, 0.0209081825, -0.2128934264, -0.2167936414, 0.1125920042, -0.4937744439, -0.062621437, 0.0410491303, 0.1609905958, -0.4045675695, 0.1496849358, -0.1141724065, -0.0739824474, 0.6445255876, 0.0047600083, 0.1655536294, -0.0243828744, 0.6089037657, 0.2820837796, -0.1513030529, 0.3287304938, -0.2582818866, -0.1653562337, -0.1762723923, 0.3575164974, 0.0284486189, -0.1852244139, 0.0541780517, -0.3673055768, -0.3740349412, -0.1462273896, 0.2043999583, 0.0661951825, -0.2488675117, -0.2211665511, -0.2388254404, -0.4250851274, 0.0921060145, 0.4310159981, 0.0376857556, -0.1146062464, -0.0520507358, -0.1018365249, -0.0090183541, -0.2931331694, -0.0984845459, 0.1196277067, 0.2182096243, 0.01692071, 0.0340712182, 0.1967618912, -0.1715978682, 0.1906102598, 0.2100922018, 0.0160771944, -0.1417850405, -0.2114672959, 0.1718948334, 0.0301391482, -0.1217823997, 0.0642175525, -0.1088643447, -0.2690013945, -0.0798070952, -0.1402969062, 0.1687149554, 0.0396477282, 0.0105390819, -0.350502193, 0.014726541, 0.3097483814, 0.0237887017, -0.1067951471, -0.1164642796, -0.0313632786, 0.1639649421, 0.0480807647, -0.1718614697, -0.5198201537, 0.0705167502, -0.1465520114, -0.0338664576, 0.4798908234, -0.1818328947, -0.1375236809, 0.0999999791, 0.4513640404, 0.0306157395, -0.0777123421, -0.2748290002, -0.117890738, 0.2755974531, 0.0477817245, -0.0378985405, -0.2475102395, -0.1497109532, -0.1189009026, 0.0452048592, 0.0837727785, -0.163797766, -0.133161664, -0.1439950466, 0.5757254958, -0.2095103115, 0.1527417451, 0.4259846807, -0.0916160047, 0.2945958674, 0.404622227, -0.2868052721, -0.0771865845, 0.1228252798, -0.0519941337, 0.1418467462, 0.2665627599, 0.0006832819, 0.137214765, -0.3130125701, 0.3408060372, 0.2238617837, -0.2402778119, 0.3856385946, 0.3453139067, 0.4145476818, -0.5463547111, -0.1660172641, -0.1738705933, 0.10690438, -0.3406039774, -0.1065189019, -0.0591783673, -0.2635780871, 0.1377307624, -0.2031533867, -0.138170734, 0.3197323084, 0.5135267377, -0.0895085558, -0.0313332565, -0.0075803436, -0.5768504739, -0.0022710238, 0.1264247596, -0.1566872597, 0.3915846348, 0.1538472027, -0.0012097247, 0.2591921389, 0.3685637414, 0.221171692, 0.2122566253, 0.1616622508, 0.2372278124, 0.1192496419, 0.0316733234, 0.1795863062, 0.3393382132, 0.1879531592, 0.1275190562, 0.1141878515, 0.1238152608, -0.0648056418, 0.2394205034, 0.1895474643, 0.2987000048, 0.0452330224, 0.1511596888, -0.2689310908, -0.3677330613, -0.1300040931, -0.2102947831, 0.2810280919, -0.1317897886, 0.0126922941, -0.0999968573, 0.3402333558, 0.0332075991, 0.0837625265, 0.1125181019, 0.1149704605, 0.138022095, -0.7388619781, -0.1203548238, -0.1033318415, -0.3213712871, -0.0267777964, 0.2734606564, 0.2446896583, -0.1623892784, 0.1950090379, 0.1511862576, 0.1163840219, 0.2537924945, -0.0582961105, -0.3496398032, 0.136596337, -0.1755851656, -0.2157066017, 0.127702117, 0.2967326939, -0.1578199416, -0.5848609209, 0.3915533423, 0.5221313834, 0.1340815127, -0.085311912, 0.0585803203, -0.1680035144, -0.0927199796, 0.1720479131, 0.2525339723, 0.2027441114, -0.2543665171, -0.0152223706, 0.3261375725, -0.0582910702, -0.061234165, -0.5134110451, -0.035762798, 0.7402210832, 0.2330051214, 0.0895058811, -0.2819790542, 0.0429220721, -0.0477159172, -0.0737348199, -0.4973107576, 0.2877762616, 0.1218914315, -0.2273941338, 0.2051206678, 0.0138111049, -0.1202945188, 0.3989735246, -0.5146306157, -0.4746529758, 0.329829663, 0.2447845191, -0.2865897715, -0.0288347881, 0.4929170907, -0.1522328854, 0.1190532744, -0.741001606, -0.0567587018, 0.1680012196, -0.2270632088, 0.1816165149, 0.2049039453, -0.1839321256, -0.1063852087, -0.0453702025, 0.4732525349, 0.2032730728, -0.2116980851, 0.1633903831, -0.3394487798 ]
https://github.com/huggingface/datasets/issues/3598
Readme info not being parsed to show on Dataset card page
i suspect a markdown parsing error, @severo do you want to take a quick look at it when you have some time?
## Describe the bug The info contained in the README.md file is not being shown in the dataset main page. Basic info and table of contents are properly formatted in the README. ## Steps to reproduce the bug # Sample code to reproduce the bug The README file is this one: https://huggingface.co/datasets/softcatala/Tilde-MODEL-Catalan/blob/main/README.md ## Expected results README info should appear in the Dataset card page. ## Actual results Nothing is shown. However, labels are parsed and shown successfully.
22
Readme info not being parsed to show on Dataset card page ## Describe the bug The info contained in the README.md file is not being shown in the dataset main page. Basic info and table of contents are properly formatted in the README. ## Steps to reproduce the bug # Sample code to reproduce the bug The README file is this one: https://huggingface.co/datasets/softcatala/Tilde-MODEL-Catalan/blob/main/README.md ## Expected results README info should appear in the Dataset card page. ## Actual results Nothing is shown. However, labels are parsed and shown successfully. i suspect a markdown parsing error, @severo do you want to take a quick look at it when you have some time?
[ -0.3140523732, -0.4610441625, -0.0429990664, 0.4984800518, 0.3827379644, 0.3550934196, 0.1448007375, 0.2580851018, -0.0173245277, 0.1981521398, 0.2267410755, 0.4555899203, 0.2250601947, 0.2512841523, 0.1963027567, 0.0808806345, 0.0349486545, -0.092020914, 0.1977230459, -0.106730409, -0.2473594397, 0.1543776244, -0.3241180182, -0.0942046717, -0.0923708454, 0.0133496784, 0.0029537801, 0.0504696481, -0.1747715026, -0.5224246383, 0.1767552644, -0.1511462927, 0.3618125618, 0.1607667208, -0.0001106336, -0.1824621111, 0.3158419728, -0.0843574256, -0.0419780836, -0.1817770451, -0.3962016702, -0.2806951106, 0.0790508837, -0.1203191727, -0.2523438931, -0.3274746835, 0.0376303121, -0.1252008379, 0.1939651817, 0.1411035657, 0.1637543291, -0.3640953004, 0.1856640577, -0.0204803087, 0.423777014, 0.2685470283, -0.0164376944, 0.1987750381, 0.4201978743, 0.1997930408, 0.0914718583, 0.7301707268, 0.1059243232, 0.2021211684, 0.3100326359, 0.355176568, 0.8252458572, -0.2795638442, 0.383115679, 0.3101480603, 0.7847026587, -0.2429853678, -0.1057444811, -0.4970705807, -0.0879467353, -0.0106882434, 0.2108480781, 0.3280596733, -0.0365953073, 0.3784499466, -0.0506299958, -0.004804892, 0.0547889322, -0.0950311795, 0.0010966855, 0.5242744088, -0.2832426131, -0.0571612231, 0.0024035829, -0.171762988, 0.2931789756, -0.121535711, -0.3141617775, 0.2157037854, 0.3242370784, 0.0583157465, -0.1071251631, -0.1317789257, 0.3472332954, -0.278269887, -0.3365407884, 0.3707973659, 0.0575272106, 0.1472603083, 0.546864152, -0.2543667555, 0.1581031829, 0.2046250403, -0.002232407, 0.1814308465, 0.1220024675, -0.170362711, -0.137739256, 0.2018999457, -0.1469801068, 0.056657657, 0.0945180878, -0.4469933808, -0.2791918516, -0.0046039587, 0.0414178744, -0.2688418329, 0.0359696783, 0.4885917604, -0.1089300737, 0.0790119618, 0.2505735159, -0.1276202053, -0.1221650317, -0.3481458127, -0.0595719069, -0.0568646565, -0.2879793346, -0.0682624727, 0.036663603, -0.0386113413, 0.2776677608, 0.046195928, -0.2116174102, -0.4243305922, 0.0117334267, -0.0448233783, 0.4117023647, 0.0550144464, 0.1049846634, 0.1771051735, 0.1194892824, -0.2118742168, -0.1826072186, 0.2271168679, -0.6256478429, 0.0573031008, -0.1749229878, 0.1694276184, 0.0295734033, 0.2186890841, -0.2645465732, 0.3057061732, 0.481533289, -0.1753230393, 0.080898568, 0.0571030118, -0.3383786678, -0.0774893388, 0.5665248036, 0.4267725646, -0.1739795357, -0.101026468, 0.1803541034, -0.0164752994, 0.3285779357, 0.0081305178, -0.2300947607, 0.2979784906, -0.1857606471, 0.1513677388, 0.2442268133, -0.3911616802, -0.2191675454, 0.3132404089, -0.1297921389, -0.1477806121, -0.14793244, -0.1642777771, 0.2048342079, 0.1196007729, 0.225894168, 0.0621141195, 0.0555353388, 0.1468571573, -0.338760525, -0.1191414744, -0.0221690144, 0.0334401056, -0.2367819101, -0.0561351031, 0.1682125032, -0.0008383103, 0.5972525477, 0.1099435315, 0.311324656, 0.2032069266, 0.2289340943, 0.0031351487, 0.349214673, -0.0516331904, -0.0982163548, -0.1104553416, -0.1014760286, -0.0574768633, -0.1456388831, -0.2206109464, -0.3791939914, -0.0683439001, -0.2924550474, -0.3935264051, 0.1354886293, 0.1103966683, -0.1304017305, 0.2179121524, -0.1108497307, 0.3211986721, -0.2584498823, 0.0490071326, -0.2663171887, 0.2394272089, -0.0226245448, -0.3214513958, 0.0235512666, 0.2702672482, 0.1650608778, -0.0122349998, -0.0328590684, 0.3955874741, 0.0825237259, 0.0278641637, -0.0983163416, -0.210053429, 0.3534079194, -0.4291700721, 0.0019597586, -0.0336269289, 0.0594784804, 0.0155167822, -0.5142484903, 0.0112309204, 0.1586812288, 0.1273287088, -0.0412211753, -0.0456393994, 0.1857715249, 0.0385265164, 0.2067752928, -0.4706870317, 0.0561491325, -0.0752891079, 0.0460688435, -0.3609575927, -0.1008823588, 0.4318501353, 0.6484761238, 0.1841644049, 0.1198149174, -0.1421731859, -0.3876871467, -0.0295819975, 0.3624075651, 0.1356726438, -0.092834644, 0.2949030101, 0.199067831, 0.2486390173, 0.0539163388, 0.0687130392, 0.1215730384, 0.0555082895, -0.1196460947, -0.0079053864, -0.161343202, 0.1032400951, 0.0631114393, 0.2490311265, 0.0193064697, 0.2722134888, -0.4646290839, 0.0543608628, -0.2053162605, -0.1657656431, -0.2891039252, 0.1311852932, -0.1366360337, -0.3644951582, -0.1536031961, 0.0063864784, -0.0336504243, -0.0129035134, -0.1106484905, -0.1212180629, -0.13571769, 0.4625695348, -0.2494229376, -0.1519389451, -0.2723656297, 0.0307774507, 0.2503511906, 0.4859340489, -0.0686036274, -0.5785263181, 0.1440151185, -0.1576884091, -0.3148589134, 0.3809491694, -0.109805651, 0.3597175479, -0.0693271309, 0.1775021404, -0.0557522476, -0.0050925696, 0.2561486065, -0.0919516757, -0.1512394547, -0.21512115, 0.1624249369, -0.2490858138, -0.3209443986, -0.5362595916, -0.0324573182, -0.1570573449, 0.0679236948, -0.3295711577, 0.0348049812, 0.0708694533, -0.0489520654, 0.1805885434, -0.5282497406, 0.0450085364, -0.1945771873, -0.3357585371, 0.1956539154, -0.3485113084, -0.3333941102, 0.4135295749, 0.09102083, 0.014117864, -0.1585069895, -0.3295392096, 0.326941669, -0.0637490079, -0.225487411, -0.2577461004, 0.1639320701, 0.1462713927, 0.0539818369, 0.0731113628, -0.1758439988, -0.2493485659, -0.1927271932, -0.2351181805, 0.3732225299, -0.0625704601, 0.3638648987, 0.0520196632, -0.0630182102, 0.031133607, -0.0135565223, -0.0025255817, -0.1480236351, 0.3016506732, 0.054108154, -0.103765361, 0.0485157706, 0.0446423739, -0.0622603483, 0.3841836452, 0.1505942792, 0.0434931181, -0.0861423165, -0.004733311, -0.3963436782, -0.3689772189, -0.1250867099, 0.3672463298, 0.0891092718, -0.0415645838, 0.4853118956, 0.0945280492, -0.0717381462, 0.0777411014, 0.6167966723, 0.1347427666, 0.0313219354, -0.1898007691, -0.043915987, 0.0645195544, -0.0149413105, 0.1334202141, 0.0598697029, -0.2766677141, 0.0705420226, 0.1357053518, -0.1819429994, 0.364313513, -0.2696298659, 0.354865402, 0.0472564623, 0.1925514787, 0.116392985, 0.0926228985, -0.1488848031, -0.1454139203, 0.1404594183, 0.1585526615, -0.299674809, -0.3197187781, 0.1122192293, -0.2403112203, -0.0208975058, -0.2112196535, -0.0901779085, -0.217199266, -0.3272818029, -0.0343670174, 0.2883103192, -0.0263583418, 0.1516390741, -0.1818065941, 0.1831167489, 0.1632942259, 0.0378349498, 0.3869045377, 0.3941181898, 0.0333602428, 0.1748242676, 0.4426971972, 0.2711783946, 0.4806492925, 0.4343709648, -0.0266651027, -0.3488104939, 0.2247775644, -0.5707061887, 0.3575166762, 0.0945873335, -0.11322245, -0.0939574689, 0.2947197855, -0.0559488907, -0.3606332541, 0.0731643736, 0.0795355216, -0.0308187362, -0.4083941877, -0.5805814266, 0.4318960011, -0.041684866, 0.0969051719, 0.12803635, 0.054896757, -0.44852826, -0.245262295, 0.2113624066, 0.8379204273, 0.0638298765, -0.065220885, -0.1697269529, -0.3260876536, -0.0677489042, -0.291628629, 0.0175375938, -0.2828443944, 0.0481618978, -0.2026058584, 0.0400261283, 0.2748011053, 0.2491009831, -0.2542059422, -0.0705955476, 0.1832616776, 0.1313909441, 0.0612279102, 0.2750863731, -0.0287874825, -0.2088250816, -0.2849031687, 0.0902577043, -0.1808666438, 0.0298888087, 0.026622856, -0.3778199852, -0.1834601462, -0.0162975322, -0.1849319786, 0.1336577237, -0.3369601667, -0.2566358745, -0.1397409886, -0.3647982776, 0.4127154648, -0.0576323494, 0.1672571599, 0.2848228514, -0.3932415545, 0.1669558436, -0.1583280414, -0.1141698509, -0.175930813, 0.1148637012, 0.1207532063, -0.1103977934, -0.1981543452, -0.0447977073, -0.0458734222, 0.0528943241, -0.0907128081, 0.104522191, -0.0464051068, -0.2573667765, -0.0288069956, 0.2066107839, 0.0907611027, -0.1212761626, 0.161986798, 0.1815996468, -0.2211560458, -0.0002334851, 0.1774073094, -0.3358452022, -0.06126922, 0.31213516, -0.1059025452, -0.2333671749, 0.1760229021, 0.207966581, -0.2063195854, -0.2554149628, 0.1624970585, 0.4316543341, -0.2069572508, -0.344822675, -0.2473676801, 0.0051135495, 0.1801734418, 0.1948638558, 0.0820534974, -0.4275392294, -0.0656521916, -0.3272505701, -0.3487888575, 0.3396323621, -0.2495902181, -0.114993602, 0.1009117812, 0.1165310889, 0.2639905512, -0.1225758642, -0.3245964348, 0.0272621382, 0.1573783755, 0.1526870131, 0.0772782415, 0.1328943819, 0.1395238191, -0.1813835055, 0.0335597433, 0.4153602123, -0.1212026104, -0.1706299633, -0.0389948972, 0.0693442971, -0.0323291756, -0.0518891402, -0.082625106, -0.1342189908, -0.310520947, -0.3307799995, 0.1940601319, -0.1035815999, 0.1741258651, 0.0705573708, 0.1881157905, 0.4214714468, -0.3067196608, -0.0098453127, 0.0622526295, 0.0609789528, -0.0755448937, -0.1086101383, -0.3837733567, 0.1406382024, 0.131023556, 0.0151239587, 0.2062551528, 0.0278641693, 0.4384773374, -0.268997252, 0.2218445539, 0.4589751363, -0.0882412717, 0.2582303286, -0.1746177077, -0.0890256315, 0.2047940344, 0.1536043882, 0.0124121988, 0.1921034455, 0.2463864237, -0.0063423533, 0.0417272858, 0.2031415403, 0.2454417944, 0.1505781114, -0.2018463165, 0.2677789927, 0.8130936027, -0.3002558351, 0.1074066684, 0.4726757407, -0.1163390055, 0.2845920324, 0.0183694214, 0.3763833344, 0.1260521561, 0.4827008247, 0.3740168512, 0.4151397645, 0.4732337892, 0.3106084168, -0.2368173003, -0.2740078568, -0.0385758877, 0.3881083727, 0.022606425, 0.1379981637, -0.0745727867, -0.1013525352, -0.0101140477, -0.0716586187, 0.0236340817, -0.0741960183, -0.200107187, 0.0064734719, 0.1316519976, -0.0705977604, -0.1370977461, -0.2253559977, 0.0224558488, -0.1796859056, 0.0476203747, -0.268702209, -0.1311520934, -0.0100988224, -0.3954048753, 0.2319237143, 0.3003874421, -0.3364510238, 0.3201479018, -0.1136499792, -0.0785994604, 0.2284752578, 0.1611443162, 0.4346210659, 0.3080385923, -0.026267834, -0.2407793701, -0.1109623164, -0.0583912805, 0.1034140512, 0.3261469007, 0.2253815681, 0.0847697258, 0.111729078, 0.1767621487, -0.122134909, -0.1605620533, 0.1324661523, 0.2650000751, 0.0122209359, -0.3018446565, -0.2623453438, -0.0292391796, -0.0435084626, -0.3980449438, -0.227625832, 0.1035250351, 0.4570385814, 0.0001063347, -0.0673113838, 0.1332988292, 0.0712884367, 0.1876859367, 0.0614078194, 0.2991537154, -0.1466425955, 0.0101415738, -0.1824285537, -0.6850887537, 0.0345331915, -0.2009273469, -0.2882537246, 0.1819108278, 0.1893638223, 0.0674624145, 0.1184272096, 0.1779968888, 0.0223078132, 0.2868312001, 0.1512518674, -0.0717785582, -0.5684830546, -0.1174629778, 0.1714069247, 0.0608890764, -0.0015185369, 0.1678417623, 0.1651520878, -0.0336569808, -0.0991520584, 0.1742087454, -0.205120787, -0.0451579802, 0.3893618584, -0.0373958908, 0.4082750976, -0.1910877079, -0.0975196958, -0.3297945559, -0.1467723399, 0.1879042536, 0.7315772176, 0.064335905, 0.2704338431, -0.1509406269, -0.2843875289, -0.4599728286, 0.0704787597, 0.0711209998, 0.0757653788, -0.3019970953, -0.0355858728, 0.0584785864, -0.0295648333, 0.1607735455, 0.0037098411, 0.0153113399, -0.1364667267, -0.1283483505, -0.3590152562, 0.2440228313, -0.2136079222, -0.2935642302, -0.1468173414, 0.1626255959, -0.1374226958, -0.0470275991, -1.0026674271, 0.0629335046, 0.3827932775, -0.053918913, -0.0989315435, -0.1926725209, 0.0563670844, 0.0543312803, -0.1791004986, 0.4989224076, 0.1879917532, -0.1341356784, 0.1087121889, -0.1951883286 ]
https://github.com/huggingface/datasets/issues/3598
Readme info not being parsed to show on Dataset card page
# Problem The issue seems to coming from the front matter of the README ```--- annotations_creators: - no-annotation language_creators: - machine-generated languages: - 'ca' - 'de' licenses: - cc-by-4.0 multilinguality: - translation pretty_name: Catalan-German aligned corpora to train NMT systems. size_categories: - "1M<n<10M" source_datasets: - extended|tilde_model task_categories: - machine-translation task_ids: - machine-translation --- ``` # Solution The fix is to correctly style the README as explained [here](https://huggingface.co/docs/datasets/v1.12.0/dataset_card.html). I have also correctly parsed the font matter as shown below: ``` --- annotations_creators: [] language_creators: [machine-generated] languages: ['ca', 'de'] licenses: [] multilinguality: - multilingual pretty_name: 'Catalan-German aligned corpora to train NMT systems.' size_categories: - 1M<n<10M source_datasets: ['extended|tilde_model'] task_categories: ['machine-translation'] task_ids: ['machine-translation'] --- ``` You can find the README for a sample dataset [here](https://huggingface.co/datasets/ritwikraha/Test)
## Describe the bug The info contained in the README.md file is not being shown in the dataset main page. Basic info and table of contents are properly formatted in the README. ## Steps to reproduce the bug # Sample code to reproduce the bug The README file is this one: https://huggingface.co/datasets/softcatala/Tilde-MODEL-Catalan/blob/main/README.md ## Expected results README info should appear in the Dataset card page. ## Actual results Nothing is shown. However, labels are parsed and shown successfully.
121
Readme info not being parsed to show on Dataset card page ## Describe the bug The info contained in the README.md file is not being shown in the dataset main page. Basic info and table of contents are properly formatted in the README. ## Steps to reproduce the bug # Sample code to reproduce the bug The README file is this one: https://huggingface.co/datasets/softcatala/Tilde-MODEL-Catalan/blob/main/README.md ## Expected results README info should appear in the Dataset card page. ## Actual results Nothing is shown. However, labels are parsed and shown successfully. # Problem The issue seems to coming from the front matter of the README ```--- annotations_creators: - no-annotation language_creators: - machine-generated languages: - 'ca' - 'de' licenses: - cc-by-4.0 multilinguality: - translation pretty_name: Catalan-German aligned corpora to train NMT systems. size_categories: - "1M<n<10M" source_datasets: - extended|tilde_model task_categories: - machine-translation task_ids: - machine-translation --- ``` # Solution The fix is to correctly style the README as explained [here](https://huggingface.co/docs/datasets/v1.12.0/dataset_card.html). I have also correctly parsed the font matter as shown below: ``` --- annotations_creators: [] language_creators: [machine-generated] languages: ['ca', 'de'] licenses: [] multilinguality: - multilingual pretty_name: 'Catalan-German aligned corpora to train NMT systems.' size_categories: - 1M<n<10M source_datasets: ['extended|tilde_model'] task_categories: ['machine-translation'] task_ids: ['machine-translation'] --- ``` You can find the README for a sample dataset [here](https://huggingface.co/datasets/ritwikraha/Test)
[ -0.2200216651, -0.4916219413, 0.001602566, 0.6471502781, 0.460257858, 0.2593294382, 0.0698466077, 0.2069071531, -0.0885194764, 0.1984075308, 0.1808967143, 0.4812800288, 0.3071290255, 0.126343295, 0.2062165588, 0.1296862662, 0.0109634679, -0.2193579376, 0.2972039878, -0.1837093085, -0.1439480931, 0.2011326104, -0.3098046482, -0.1654570103, -0.1763853431, 0.0367295556, -0.0149180423, 0.1407997012, -0.0395961925, -0.4099969864, 0.2198223174, -0.0546949133, 0.2331008166, 0.1394224167, -0.0001224593, -0.2016877532, 0.2720484734, -0.1059329584, 0.0271568466, -0.2775946856, -0.2358175665, -0.3690286279, 0.024133468, -0.1159166917, -0.2653074265, -0.3223185241, 0.0130801518, -0.0951956138, 0.2967312634, 0.0833315253, 0.0112180179, -0.3431654572, 0.3340063095, 0.1666263193, 0.3147513866, 0.2284545004, -0.0764061436, 0.1927694529, 0.3905032575, 0.3298909068, 0.0615567043, 0.7368035316, 0.0566947162, 0.1706760228, 0.3015004098, 0.31114465, 0.6618067622, -0.3187080622, 0.3193927109, 0.3462354243, 0.5792186856, -0.1925497502, -0.2490105182, -0.6705209613, -0.1588784009, -0.0729946643, 0.2065334022, 0.2302054912, 0.0188994315, 0.4041959345, -0.0478040129, -0.0856639221, -0.0154269831, 0.0643147901, -0.0612409152, 0.5336287618, -0.2550933957, 0.0221615136, 0.0456473827, -0.1984041333, 0.3620318472, -0.1382169425, -0.3320047259, 0.3631873131, 0.289242506, 0.0327180922, -0.1096526086, -0.0188811105, 0.3416898549, -0.3072130978, -0.3642136753, 0.5142812133, -0.1544069648, 0.0700611025, 0.5688095689, -0.2267083228, 0.1909001619, 0.2128403336, 0.0043803444, 0.0183242522, 0.2145938426, -0.2169318646, -0.2651575208, 0.106460683, -0.1800328195, 0.0966788381, -0.032420937, -0.3713853657, -0.1376954466, -0.0249634143, -0.0180799533, -0.2377972901, 0.030807741, 0.3496028185, -0.0356995985, 0.2786742747, 0.2141118199, -0.0835791156, -0.1369650066, -0.3147492111, -0.0073665334, -0.1454795152, -0.2935532629, -0.0458970331, 0.1289876699, -0.1521173269, 0.2966818213, 0.0111682341, -0.0710972175, -0.3637541234, -0.0983513221, -0.1493257731, 0.4819294512, 0.0504461676, 0.0323741734, 0.2647613883, 0.0884489119, -0.1135184839, -0.1472812444, 0.2246921808, -0.6601409912, 0.1659623832, -0.0931803882, 0.0119395358, -0.1122491211, 0.3220579624, -0.1952005476, 0.3939465284, 0.4933977425, -0.1226416007, 0.1171122268, 0.0132390009, -0.4490613341, 0.0315909795, 0.5345925093, 0.5175890326, -0.0191765837, -0.1500315368, 0.043377813, 0.0453376323, 0.2968922555, 0.105567269, -0.0843718722, 0.2660782635, -0.1820610464, 0.0725701898, 0.2067913711, -0.5112653375, -0.2876421213, 0.4181279838, -0.0814817548, 0.0240493994, -0.0763798133, -0.1450503767, 0.0861300528, 0.1976023167, 0.2893284857, 0.1065542921, -0.0097624864, 0.124452278, -0.2996030152, -0.0828290582, -0.0780792534, -0.06059983, -0.2559678853, -0.0189648699, 0.0678972825, 0.0876927376, 0.6415068507, 0.1592070162, 0.342651397, 0.2400608063, 0.1294638515, 0.0388036296, 0.3489444852, 0.0347972624, -0.2334389687, -0.1417408884, 0.0071319123, 0.0050623254, -0.1755859107, -0.2213161886, -0.3688934147, -0.2104983032, -0.2735341787, -0.3503697813, -0.0326995812, 0.0850988775, -0.1345094293, 0.160893932, 0.1098883227, 0.4407612383, -0.1406396627, 0.0747976527, -0.2838715911, 0.1897782385, 0.0789136812, -0.2494053692, 0.015678592, 0.3605497181, 0.2897309959, -0.1674574614, 0.0273279678, 0.4320841134, 0.2573445439, 0.1604865342, -0.2457059622, -0.1195011958, 0.4136088192, -0.303553015, -0.092438817, -0.089519836, 0.0052636997, -0.0865937695, -0.5360174179, 0.0700220019, 0.0720071569, 0.2437546849, -0.0466418602, 0.0421463512, 0.2181116641, -0.00746042, 0.1341971606, -0.5990081429, 0.000945573, -0.1469186246, 0.1196896061, -0.2651996315, -0.1308963448, 0.3781145215, 0.6157800555, 0.3441340327, -0.0017512593, -0.1363657117, -0.3082759976, -0.0475328676, 0.3687644899, 0.075197503, -0.1158885136, 0.2100579292, 0.1813775748, 0.2782332301, 0.266793102, 0.0488145873, 0.1567847878, 0.1185051426, -0.0539850406, 0.0360424705, -0.1191061065, 0.1525871009, 0.0747640282, 0.3228675127, 0.0587910451, 0.2806968689, -0.5309558511, 0.1269137114, -0.2121859491, -0.1828487962, -0.2588038445, -0.0178991798, -0.189559862, -0.3917068243, -0.2296686471, 0.0879257172, 0.0218375102, -0.0510383807, 0.0192048009, -0.2082373351, -0.1454442292, 0.3556164801, -0.3444798887, -0.1351253688, -0.1976810396, -0.0719251856, 0.1750896871, 0.3769292235, -0.1716265231, -0.5501983166, 0.1170761809, -0.1349294484, -0.3997960091, 0.3919312358, -0.1477474719, 0.444291234, -0.1158071607, 0.0522710942, -0.1137927547, 0.1412650794, 0.2442419827, 0.0253495481, -0.1359862536, -0.1871382743, 0.1339741498, -0.1681200266, -0.3780758679, -0.4673041701, 0.0121302353, -0.1548790783, 0.1075094044, -0.4019793868, 0.0539045185, 0.2490120977, -0.1050417349, -0.0115227206, -0.5551184416, 0.0301930308, -0.2000281513, -0.290551275, 0.2050395906, -0.2631585002, -0.2743886709, 0.3221083879, 0.0607114695, 0.1317211241, -0.0409208573, -0.2908808887, 0.2714008689, -0.0409265123, -0.1415198594, -0.1713068932, 0.1517983973, 0.1436205804, 0.0111228814, 0.1596803963, -0.2228904814, -0.1862039119, -0.1926731169, -0.1989809573, 0.3240866959, -0.00850798, 0.2160846889, 0.0914145261, 0.0532645471, 0.0781097785, 0.0772316307, 0.031911239, -0.0051479856, 0.2994752228, 0.0622322373, -0.1424301565, 0.0577108599, 0.2566525042, 0.0249627978, 0.434314698, 0.2456423491, 0.1300905049, -0.1178016886, 0.0473371074, -0.4836239815, -0.3889581263, -0.1703171134, 0.1750174761, 0.1766264439, 0.0329126902, 0.4898011684, 0.1342870593, -0.1970566809, -0.003352517, 0.6330150962, 0.2390424162, 0.0219074059, -0.3011713922, -0.0737063736, 0.0844831839, -0.0596529357, 0.0760275275, 0.1716389805, -0.2797242999, 0.1484851837, 0.1277175099, -0.1480681002, 0.4695641696, -0.1749051362, 0.3094864488, 0.0844220147, 0.070748359, 0.1018101051, 0.1379310191, -0.0931887999, -0.1982132345, 0.2921611369, 0.2048124969, -0.4097659886, -0.4084812105, -0.1212242767, -0.3193284273, -0.0711946785, -0.1659228355, 0.0093968855, -0.0294161402, -0.2040947825, -0.060299471, 0.3750042021, 0.0423738137, 0.1822165698, -0.0285807401, 0.246179983, 0.2667253613, 0.1791170835, 0.3270967901, 0.3843896985, 0.0984031782, 0.2313300073, 0.5391048193, 0.3246925473, 0.3692183793, 0.3940851092, -0.0035237216, -0.3711149693, 0.1450999677, -0.5697326064, 0.3595483005, 0.1527559012, -0.1827384233, -0.1159635559, 0.3169681132, -0.0745890588, -0.4221204817, 0.0889608935, 0.0896647573, 0.0643254071, -0.3648196757, -0.6396932006, 0.2968572974, 0.053626325, 0.010998439, 0.1651802361, 0.088264592, -0.5379193425, -0.2512883246, 0.1814368516, 0.8627387881, 0.1078723297, -0.0137298862, -0.2138179839, -0.2421996891, -0.0388100706, -0.234339118, -0.0492072143, -0.1354756653, 0.2386057377, -0.1655059904, 0.1157650873, 0.2255578786, 0.3693780601, -0.2266149968, 0.0042523057, 0.2648591101, -0.0930894241, 0.0464261882, 0.3377362788, -0.0664758682, -0.3000891209, -0.1781768054, -0.0720203295, -0.2219774574, 0.098638922, 0.0807239115, -0.4145523012, -0.2952280343, -0.0048153172, -0.2310714126, 0.0811310932, -0.3781760633, -0.3867532015, -0.0094190985, -0.4130945802, 0.5744630694, -0.0723196045, 0.2758936584, 0.280059725, -0.4365571439, 0.2853743136, -0.1206409931, -0.0871927962, -0.042667944, 0.0754689351, 0.1022315174, -0.0856618807, -0.1264050305, -0.2198711783, -0.1251667589, 0.1475198865, -0.1671662182, 0.0430733114, 0.0903089643, -0.2041476965, -0.0982269272, 0.297764957, 0.1101947576, -0.1305194944, 0.0603550859, 0.2854718566, -0.1926179677, -0.0826243833, 0.1526482403, -0.3549810648, 0.0284311008, 0.2997741103, -0.1018109471, -0.3413987458, 0.1072580218, 0.2374407053, -0.1681701839, -0.1651102006, 0.1056166887, 0.2904333472, -0.2202980816, -0.3593952358, 0.0113251172, -0.0663353503, 0.05008623, 0.0912119597, -0.1019603461, -0.3366106153, -0.0988922268, -0.3528273404, -0.2719525099, 0.3116458654, -0.3288582563, -0.1908521503, 0.0509146005, 0.0448723771, 0.1919105053, -0.0654025525, -0.1823905855, 0.0731562078, 0.3660241067, 0.1746250242, 0.1104956269, 0.1220271513, 0.1739170551, -0.3179636598, -0.1054249331, 0.29294765, -0.1030777246, -0.0451413393, -0.0931789726, 0.1294157356, -0.0297584701, -0.1674395055, 0.0574353226, -0.1674038768, -0.2798383534, -0.4353077412, 0.2957845032, 0.0595237948, 0.2446910143, 0.2527782619, 0.0039155665, 0.5874491334, -0.2123004198, -0.038213972, 0.0765772313, 0.0864084139, -0.054392226, -0.1031432822, -0.3878756166, 0.1345226169, 0.0691368431, 0.0150533374, 0.096312359, 0.0486896858, 0.3986540437, -0.1584419608, 0.1948529929, 0.4924975932, -0.0801849589, 0.2117320895, -0.1205691546, -0.1517932862, 0.1753055751, 0.024326086, 0.1084557623, 0.2001621127, 0.2366175205, 0.0010455422, 0.01615851, 0.2198033631, 0.24872908, 0.0846209228, -0.3408436477, 0.208710447, 0.7521344423, -0.1838454753, 0.1436741948, 0.4513647556, -0.095180124, 0.3694294989, 0.0977407917, 0.3274693489, -0.0049279435, 0.3830835521, 0.5017043948, 0.3667523861, 0.5281658769, 0.324373126, -0.1530786008, -0.2686727047, -0.1820810288, 0.3288332522, 0.0191626027, 0.1304211617, -0.101107128, -0.0426164158, 0.1272387505, -0.0677667111, 0.1573215723, -0.1812039912, -0.1741460562, -0.0614271723, 0.1589168906, 0.0079975026, -0.1692724824, -0.2276664078, 0.0361125134, -0.2984359562, 0.1053655744, -0.1531898379, -0.1613478214, -0.0085442923, -0.4060807824, 0.2181223482, 0.2849655151, -0.3474458158, 0.3789353967, -0.2334537506, -0.103782244, 0.186733067, 0.1936636716, 0.347664535, 0.2521376312, 0.1565576196, -0.264864713, -0.1007400379, -0.0797315389, 0.0045968574, 0.4277582169, 0.1623376161, 0.142579779, 0.0552413277, 0.0404643118, -0.0972605348, -0.244646728, 0.2190344632, 0.2244141102, 0.0941566676, -0.2155905515, -0.3257593513, -0.0641890839, -0.0160691086, -0.3106361926, -0.1486280411, -0.0037951248, 0.462464869, -0.0265862104, -0.083829537, 0.0379863642, -0.0088892207, 0.1919570863, -0.0279424433, 0.4405941665, -0.1383282095, 0.0098834606, -0.2224951237, -0.7170411348, 0.0405847244, -0.1383983493, -0.2272624671, 0.1501479894, 0.2334944606, 0.1186954603, -0.0211478453, 0.0272813477, -0.0778703317, 0.2847908139, 0.0895401016, -0.0894220993, -0.4153297544, -0.1840593815, 0.1982128322, 0.0589831546, 0.0052470039, 0.1627604961, 0.2557406723, -0.1899273992, -0.0636609495, 0.2518609464, -0.2831934094, 0.0984506533, 0.344581306, 0.0625194758, 0.3671163619, -0.2028951049, -0.0758998618, -0.3945798278, -0.1851388812, 0.2488227338, 0.779479146, -0.0042375727, 0.3810175359, -0.1649599075, -0.394156158, -0.3972177804, 0.0430797487, 0.0278068185, -0.2127890438, -0.2162309736, 0.0731139556, -0.0624767989, 0.0064222463, 0.0276686158, 0.1019343808, -0.0185418632, -0.2468633354, -0.1096316054, -0.482311815, 0.1796821207, -0.2325726449, -0.1873286664, -0.1786798239, 0.1280440092, -0.07237418, -0.0810379758, -0.9825869203, 0.0730045214, 0.4169130623, -0.042828314, -0.1443319619, -0.250017643, -0.0323257037, -0.0216038991, -0.1541145742, 0.5105718374, 0.3135156333, -0.1973566562, 0.1867312938, -0.1468480229 ]
https://github.com/huggingface/datasets/issues/3598
Readme info not being parsed to show on Dataset card page
Thank you. It finally worked implementing your changes and leaving a white line between title and text in the description.
## Describe the bug The info contained in the README.md file is not being shown in the dataset main page. Basic info and table of contents are properly formatted in the README. ## Steps to reproduce the bug # Sample code to reproduce the bug The README file is this one: https://huggingface.co/datasets/softcatala/Tilde-MODEL-Catalan/blob/main/README.md ## Expected results README info should appear in the Dataset card page. ## Actual results Nothing is shown. However, labels are parsed and shown successfully.
20
Readme info not being parsed to show on Dataset card page ## Describe the bug The info contained in the README.md file is not being shown in the dataset main page. Basic info and table of contents are properly formatted in the README. ## Steps to reproduce the bug # Sample code to reproduce the bug The README file is this one: https://huggingface.co/datasets/softcatala/Tilde-MODEL-Catalan/blob/main/README.md ## Expected results README info should appear in the Dataset card page. ## Actual results Nothing is shown. However, labels are parsed and shown successfully. Thank you. It finally worked implementing your changes and leaving a white line between title and text in the description.
[ -0.1167043969, -0.1736114621, -0.0457949899, 0.1973761022, 0.4050149024, 0.149337709, 0.2383347899, 0.0577396452, 0.0127058886, 0.2358467281, 0.1479034126, 0.3144131601, 0.3428182304, 0.3346486688, 0.2078316659, -0.0082408553, 0.0039033387, 0.0413327813, 0.1572258323, -0.0487841293, -0.141690731, 0.1252376586, -0.2226826847, -0.053946808, -0.1764366031, 0.0658419058, 0.0260808524, 0.0239637271, -0.1715483516, -0.6609656811, 0.2419891506, 0.2248466313, 0.1234373301, 0.197803244, -0.0001096589, -0.2465658039, 0.2606942654, -0.0628371164, 0.1081166118, -0.3238123059, -0.1792514175, -0.3169773221, 0.1996179223, -0.0515888967, -0.2192110866, -0.1626138687, 0.0221037157, 0.0332951695, 0.0174517818, 0.1025002748, 0.1428236663, -0.3840938807, 0.1205929592, -0.0681632608, 0.2673473656, 0.2379121035, 0.0986788347, 0.1189629659, 0.3710790873, 0.1568928361, 0.0120215239, 0.6945773363, 0.1935556829, 0.0935234129, 0.3485500216, 0.2467933297, 0.5253255963, -0.260047555, 0.2548161149, 0.4280276597, 0.7338124514, -0.3269384205, -0.1892324537, -0.2952082753, -0.0518413149, -0.2197523117, 0.2260277867, 0.2936688662, -0.0492241532, 0.2330533117, -0.030620167, 0.0457345992, -0.0377036892, -0.1501909792, -0.0286395755, 0.4264788032, -0.0951974615, -0.0185210016, 0.1318848133, -0.2931894064, 0.1836217493, -0.0418335795, -0.3696626425, 0.1697611362, 0.1388695836, -0.1519871652, -0.0133478008, -0.2065721303, 0.409288764, -0.3734413981, -0.2098621577, 0.3157308996, -0.0412167162, 0.0843017027, 0.384205699, -0.0995572805, 0.2381436676, 0.0624587387, -0.0696684346, 0.1682773232, 0.1996626854, -0.2419342697, -0.041843392, 0.0899278373, -0.1403366327, 0.014313071, 0.0904049575, -0.495144248, -0.2909968793, -0.0221232474, -0.1017789021, -0.0996877924, -0.145885095, 0.5022281408, -0.0363998562, 0.0327938385, 0.3763753176, -0.1542339176, -0.0652273521, -0.2554436028, -0.0975284204, -0.1170432717, -0.3137435317, 0.0676604137, 0.0598169751, 0.0639891997, 0.2639663517, 0.060117811, -0.0946280584, -0.2830135822, -0.03419495, 0.0750627443, 0.3472566903, 0.0800575539, 0.0867496356, 0.1188203022, 0.0982322693, -0.2993609905, -0.1225872934, 0.2240224928, -0.4750013053, 0.0360561833, -0.3489008844, 0.1764497459, 0.0960688293, 0.2405109853, -0.1320962161, 0.2510786057, 0.3092100024, -0.0240782406, 0.1507264674, 0.2051458657, -0.2778107524, 0.1954756379, 0.2915137708, 0.44143188, -0.1886431873, -0.138641715, 0.1899214685, -0.0219593346, 0.2691299319, 0.0708114654, -0.1837423891, 0.2673609257, -0.0602177829, 0.2468874007, 0.1938883215, -0.4319395125, -0.265245676, 0.3445350826, -0.0991087556, -0.1741237044, -0.0179961361, -0.343390435, 0.2579948008, 0.2148469537, 0.2524542511, -0.1661844105, 0.2207473814, 0.1385659575, -0.4266414344, -0.1366759837, 0.0357454494, -0.0256463904, -0.3049357533, -0.1253446788, 0.0962801725, 0.1158164889, 0.6959294081, 0.1533011347, 0.261282146, 0.3033491075, 0.3522495627, -0.0241080001, 0.1763311625, 0.1081266329, -0.1885166615, -0.2051653266, -0.1070253327, 0.3355361521, 0.1078417227, -0.3675113916, -0.3377489746, -0.1526024938, -0.3350580335, -0.6366423368, 0.1587338448, -0.0260146279, -0.0797029957, 0.1886141598, 0.1429469436, 0.2323901206, -0.4032111466, -0.0069443472, 0.0257398821, 0.1990537047, -0.0228640158, -0.3178852797, 0.0417095684, 0.2851982117, 0.1359808594, 0.1975286007, -0.238035515, 0.3778536618, -0.0871391222, 0.1901873201, -0.146053195, -0.1313734949, 0.3406007886, -0.3864450753, 0.046895016, 0.0530255996, 0.078770794, 0.1119845957, -0.5889363289, -0.0511994883, 0.0092690885, 0.2011037767, -0.0133768246, -0.086116761, 0.3998261988, -0.0015351969, -0.0550968535, -0.5001237392, 0.001820714, 0.0782650039, 0.0798630491, -0.2310590595, -0.2024350315, 0.4564600587, 0.771574378, 0.2994484007, 0.1313946396, -0.0570424497, -0.33323434, -0.1103473902, 0.4654715955, -0.0301006772, -0.03337235, 0.4190670848, 0.1118236408, 0.392201066, 0.0271023903, -0.0690484792, 0.2271168232, 0.0179219954, -0.2430724502, 0.005328259, -0.0871080309, -0.0019777489, 0.0216254443, 0.1614950299, -0.0621343032, 0.1773822904, -0.4573904872, -0.0209665895, -0.0594820715, -0.1763338596, -0.3098484576, 0.0728609115, -0.2264568806, -0.2746065259, -0.0652505979, 0.0985697284, -0.1899864376, 0.1901050508, 0.0619628876, -0.2433644086, 0.0687260181, 0.5073615313, -0.1716789305, -0.1616762727, -0.080150865, 0.0512222722, 0.0832863376, 0.3237131834, -0.0136598879, -0.4906450808, 0.1861934811, -0.1833129227, -0.318618238, 0.3141609728, -0.0434811041, 0.3247361183, -0.0012805233, 0.2342229187, -0.1370959282, 0.055682309, 0.1851815283, -0.0226868633, -0.1859364808, -0.3348245025, 0.0282389149, -0.0656820163, -0.3817827404, -0.4774838984, -0.0519069023, -0.3157140017, 0.1555024981, -0.4246224463, 0.2464950085, 0.1970515847, 0.0351668224, 0.292681396, -0.5459509492, 0.0388870463, -0.1668564826, -0.3823120296, 0.0558050759, -0.4048287868, -0.3618625402, 0.3949913085, 0.1631523073, 0.0267088842, -0.3341093361, -0.2514846921, 0.2815212905, -0.0144670634, -0.1334929764, -0.057242427, 0.1144766361, 0.3793830276, 0.1577173322, -0.0697495937, -0.1339188367, -0.3119757473, -0.0438644327, -0.1155859753, 0.2979970276, -0.1389143765, 0.388636291, 0.0120680742, -0.0624470152, 0.0627971515, 0.0480770729, 0.0304579306, -0.0962055922, 0.3052568436, -0.0440447554, -0.2031850815, 0.0139321545, 0.1166825071, 0.0730610341, 0.5134596825, 0.0007977004, 0.0547176823, 0.0454771519, -0.000713378, -0.2866205275, -0.3052438796, -0.0732443482, 0.3609287441, 0.0619026609, -0.0260136742, 0.2598274052, 0.1241475716, -0.0875288695, -0.0522778071, 0.615819335, 0.0313093364, 0.0393725149, -0.2989473343, -0.0362862125, -0.0604874566, -0.0398055986, 0.0913379714, -0.1431251615, -0.3192756474, 0.0592314117, 0.0324639715, -0.0743220448, 0.4339795411, -0.2331924886, 0.2449631095, 0.044915583, 0.1511404663, 0.1209278107, 0.088438198, -0.1507486105, -0.1710205525, 0.1876116544, 0.1666365862, -0.3246678412, -0.4001183212, -0.0000674752, -0.4184898436, -0.0159271359, -0.1521263719, -0.1000408605, -0.0764430836, -0.4435096979, 0.1576016694, 0.2839526832, 0.1553595215, -0.0857510194, -0.3352130651, 0.2858240902, 0.1778340638, 0.0443283357, 0.2121944129, 0.4504133463, 0.1605361402, 0.1285461187, 0.2090350986, 0.4161189795, 0.3366629779, 0.3173453808, -0.219090119, -0.0888595283, 0.2783112228, -0.601098001, 0.3152644038, 0.2962034941, 0.1771084815, 0.0254293606, 0.3201087117, -0.0291023068, -0.3413131833, 0.2141042948, -0.0955008343, 0.0538542122, -0.1706491858, -0.4873903692, 0.3278205097, -0.1511151344, 0.0835381895, 0.0713759288, 0.2776869535, -0.5145578384, -0.3223185837, 0.178868264, 0.8847847581, 0.1874953359, 0.1085542142, -0.122758314, -0.271604687, -0.0871348456, -0.0348189585, 0.0287542026, -0.2651028931, 0.2031427175, -0.1987538338, 0.0874173045, 0.2980881929, 0.1838742793, -0.3110131323, -0.036205072, 0.4137808084, 0.0836476386, 0.0846428424, 0.2371689379, -0.0021671127, -0.4166724086, -0.4041436315, 0.0414159372, -0.0916430056, 0.0040649264, 0.0216244254, -0.4012559056, -0.0594611838, -0.0111947041, -0.1600267142, 0.0172126386, -0.4705145955, -0.3516526222, -0.3243397474, -0.3298304081, 0.382486552, -0.1560631245, -0.0296912529, 0.4308226109, -0.4695020318, 0.1985409558, -0.0457810946, -0.0809418932, -0.153760761, 0.1975237429, 0.110253945, -0.1467882246, -0.3124137819, -0.1670895815, 0.0090189083, 0.1024772301, -0.0837520957, -0.1130560935, -0.0573949665, -0.3374430239, -0.1814364791, 0.2017636895, 0.0733363628, -0.2450587302, 0.1820766032, 0.1015898287, -0.2265552282, -0.2300363034, 0.3482639492, -0.3162889481, 0.0033781137, 0.2662557662, -0.0105400588, -0.0019657116, 0.22190772, 0.2549185753, -0.0895563364, -0.2644373775, 0.1053873748, 0.5778807998, -0.3775359094, -0.3474313021, -0.1512703151, -0.1985911131, 0.0553921871, 0.2357127517, -0.0782220215, -0.0597082227, -0.0309462901, -0.2284078896, -0.3729510307, 0.2978137434, -0.2887637317, 0.0395110026, 0.0566878766, 0.2787828445, 0.2235158533, -0.2011159211, -0.34976542, 0.0535757951, 0.109593302, 0.0583283231, 0.1129748672, 0.0351049565, 0.2138002366, -0.2575328946, -0.0376769081, 0.3787174523, -0.2332259566, -0.1934555918, -0.0619423427, 0.0234762095, 0.0369492583, -0.2267692685, 0.0896466076, 0.0512900501, -0.2090535015, -0.2571587563, 0.3174888492, -0.2478071004, 0.0883125961, 0.2179280967, -0.0047162492, 0.4470032156, -0.3555474877, -0.1688814163, 0.2991948724, 0.1266108453, -0.0825379044, -0.0863292441, -0.4793729484, 0.1280013472, 0.1455436945, 0.1169625521, 0.1966890842, 0.2138515711, 0.2301931232, -0.1620690972, 0.1036286578, 0.296307981, 0.0202222951, 0.0236517452, -0.1995504647, -0.1501352638, 0.1834055185, 0.2066014707, 0.0277077667, 0.4262934327, 0.1506227553, -0.2743937075, 0.1775465012, 0.1404204667, 0.2488810718, 0.1627788842, -0.1958610713, 0.415009439, 0.575758338, -0.2611287832, -0.0396953635, 0.4503952861, -0.1638984531, 0.3053328097, 0.1306909621, 0.2646173239, 0.1897255778, 0.5025148392, 0.5045283437, 0.5362421274, 0.3877645135, 0.2498504668, -0.278051585, -0.0918959826, -0.0439399518, 0.3513093293, -0.0209491011, 0.0832909942, -0.0821063221, -0.2566838861, 0.0215198416, -0.2058145553, 0.0355552845, -0.0174332354, -0.2214963585, -0.2021802962, 0.0801803395, -0.0785890594, -0.005673402, -0.1780870557, 0.0523900166, -0.0553111322, 0.0382697955, -0.4314343333, -0.0993966833, -0.0273194648, -0.4171973467, 0.1137989759, 0.295122534, -0.2542534471, 0.3416594863, -0.0235065836, -0.0078645665, 0.060430374, 0.4984748065, 0.3971409202, 0.2915514112, 0.1371559799, -0.2587809563, -0.1194356158, -0.0870978162, 0.1552696526, 0.0412238389, 0.323412627, 0.0123128174, 0.0536836348, 0.1594005227, -0.1747296453, -0.1519788653, 0.1175958589, 0.084236227, -0.0016275068, -0.2952425182, -0.0349834487, -0.0261832718, -0.0112834107, -0.2486720234, -0.2235126495, 0.0248531792, 0.4667492807, -0.001807813, -0.0731525272, -0.1478773952, 0.092729494, 0.1845350862, 0.1869680882, 0.0363200828, -0.0527324826, 0.04999917, -0.0509875789, -0.5355722904, 0.0032033436, -0.1941196471, -0.1001678184, 0.1146374494, 0.2702190876, -0.0459255353, -0.0021428545, 0.1287623495, -0.1842487305, 0.1953010708, -0.0979429558, -0.1680483222, -0.4233639538, 0.1147801429, 0.1199208423, 0.1156675443, 0.0133835794, 0.0109275971, 0.0728687197, 0.0295194983, -0.0687229112, 0.3677087426, 0.0026518456, 0.2299884558, 0.4300082028, 0.0243889373, 0.3836980164, -0.1374045014, -0.2151440829, -0.1631152183, -0.1701060086, 0.0979053378, 0.6356047392, 0.2003807425, 0.381777674, -0.0635704398, -0.4981276691, -0.3267920613, 0.1324781179, -0.0018159508, -0.1325920969, -0.136695832, 0.0486079827, 0.1953706145, -0.1814899147, 0.0198885277, 0.0065155034, 0.0546757355, -0.1449307799, -0.2260595262, -0.429692179, 0.2207926065, -0.0423407927, -0.1200115606, -0.119236432, 0.1385225356, -0.0857869759, -0.1340698898, -1.1476898193, 0.0368413702, 0.2081083506, 0.0675759614, -0.2024138123, -0.0751801506, -0.067174606, 0.1409370601, -0.2288180739, 0.5131853819, 0.1877079904, -0.1734540015, 0.0315197594, -0.2099075168 ]
https://github.com/huggingface/datasets/issues/3597
ERROR: File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode: /content
Hi! The `cd` command in Jupyer/Colab needs to start with `%`, so this should work: ``` !git clone https://github.com/huggingface/datasets.git %cd datasets !pip install -e ".[streaming]" ```
## Bug The install of streaming dataset is giving following error. ## Steps to reproduce the bug ```python ! git clone https://github.com/huggingface/datasets.git ! cd datasets ! pip install -e ".[streaming]" ``` ## Actual results Cloning into 'datasets'... remote: Enumerating objects: 50816, done. remote: Counting objects: 100% (2356/2356), done. remote: Compressing objects: 100% (1606/1606), done. remote: Total 50816 (delta 834), reused 1741 (delta 525), pack-reused 48460 Receiving objects: 100% (50816/50816), 72.47 MiB | 27.68 MiB/s, done. Resolving deltas: 100% (22541/22541), done. Checking out files: 100% (6722/6722), done. ERROR: File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode: /content
26
ERROR: File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode: /content ## Bug The install of streaming dataset is giving following error. ## Steps to reproduce the bug ```python ! git clone https://github.com/huggingface/datasets.git ! cd datasets ! pip install -e ".[streaming]" ``` ## Actual results Cloning into 'datasets'... remote: Enumerating objects: 50816, done. remote: Counting objects: 100% (2356/2356), done. remote: Compressing objects: 100% (1606/1606), done. remote: Total 50816 (delta 834), reused 1741 (delta 525), pack-reused 48460 Receiving objects: 100% (50816/50816), 72.47 MiB | 27.68 MiB/s, done. Resolving deltas: 100% (22541/22541), done. Checking out files: 100% (6722/6722), done. ERROR: File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode: /content Hi! The `cd` command in Jupyer/Colab needs to start with `%`, so this should work: ``` !git clone https://github.com/huggingface/datasets.git %cd datasets !pip install -e ".[streaming]" ```
[ -0.2805958986, 0.0059206099, 0.0532629862, 0.0867149234, 0.1233595163, 0.1511144936, -0.0670933351, 0.1101514399, -0.2740464807, 0.1692894697, -0.2694028616, 0.3483410478, -0.2103759199, 0.2704070807, -0.011787775, -0.1742322594, 0.0239560548, 0.331048429, -0.2299905121, 0.1471987069, -0.0600806139, 0.2225803137, -0.2159905136, -0.300827831, -0.2476944029, -0.101636298, -0.0691176876, 0.1205924675, -0.5584040284, -0.2806477547, 0.1041322276, 0.1633413136, -0.0252925269, 0.9435853362, -0.0001159732, -0.0086407959, 0.5131062865, -0.1744880229, -0.6947644949, -0.1360991448, -0.0912802517, -0.0149512216, 0.0127458824, -0.0473669693, 0.1082391292, 0.0562895387, 0.0263050161, -0.0687408149, 0.3090508878, 0.1433611959, 0.2015932947, 0.1568184048, 0.1444755197, -0.0507717766, -0.0703363568, 0.2792480588, -0.2552321851, 0.5715398788, 0.2204630822, 0.1209351495, 0.2613905072, 0.3037083447, -0.0702391565, -0.0765448362, 0.188515678, -0.1269205362, -0.2006505579, -0.4825873375, 0.0409779549, 0.0563265979, 0.4074158072, -0.5007217526, -0.4555947483, -0.2031185478, 0.4305533171, -0.3596731722, 0.0891723186, 0.1970396936, -0.4193038046, 0.1830883622, -0.4821973741, -0.2693834603, -0.1416008919, -0.1220120713, 0.339228332, 0.1236027479, -0.1259806156, 0.0074228942, 0.1137879565, 0.0921999365, 0.2956171036, -0.2294702232, -0.1589819938, 0.0212807599, -0.0115375416, -0.1348157972, -0.1258449256, 0.3401715755, -0.096964933, 0.0303784758, 0.1030367762, -0.4377258122, -0.0378597043, 0.2999756038, 0.0572615974, 0.5299230814, -0.0511162356, 0.3056846857, 0.349390626, 0.4275917709, 0.194713369, 0.0665070713, -0.0447166152, -0.0888032243, -0.2629458308, 0.0052208803, 0.1235067993, -0.0624488704, -0.3710984886, -0.2866511941, 0.0056776456, 0.0480570048, 0.1651795805, 0.3149050176, -0.0470171049, -0.0867424458, -0.0290107056, 0.230173856, -0.0108508384, -0.1146075204, -0.0847801492, 0.3135745525, -0.0676295608, -0.0123684555, 0.0703542382, -0.409691602, 0.4586765468, -0.0203488357, 0.3117513359, 0.1368588954, -0.1506400257, -0.0384646803, -0.1762399524, 0.6022830009, 0.0088950153, 0.0615579933, 0.1057884395, -0.2156723291, -0.1500881016, 0.2696416974, -0.0501855537, -0.3334860504, 0.1827378124, 0.1373781264, -0.2166856676, 0.0537723191, -0.6689690351, -0.1430406272, -0.0639958978, -0.3073041737, 0.0434081443, -0.1194340736, 0.2065997571, -0.2860461473, 0.3842348158, 0.6091387272, -0.3521527946, -0.0660743341, -0.308706373, 0.0202903841, 0.4488037527, 0.2872610688, 0.0776496679, 0.0572029129, -0.2471999228, -0.2377771586, 0.3621506989, -0.3017597497, -0.4505339563, 0.228716746, -0.1284443736, 0.1532526761, 0.2038682401, -0.0014141788, 0.2820828855, -0.1327121854, 0.1330849379, 0.0195776634, -0.1596543491, 0.0412297174, -0.2415659577, -0.5157350898, -0.1326233149, -0.0147451805, 0.0274021067, 0.2429525703, 0.0229476131, -0.1610868871, 0.0148686897, 0.0839119032, -0.0202162676, 0.2453859597, 0.4260366559, -0.0667821094, -0.1125687733, -0.1231415346, -0.1107689962, 0.2623855472, 0.3225967288, 0.1744643003, -0.2464389652, -0.0643579811, -0.4895509779, 0.2226725221, -0.2624049187, -0.4788954556, 0.084586069, 0.2510546148, 0.3238981664, -0.0351607166, -0.2020384967, 0.462459892, 0.1771710366, 0.1505374163, -0.2489424646, 0.239105463, -0.4088403881, -0.3820580244, 0.1196341068, 0.033066459, 0.1249101385, -0.2154665291, -0.192552194, 0.4968466163, -0.1947487295, 0.2320085764, 0.1174682379, -0.1313889027, 0.2224770933, -0.2169946134, 0.0650010556, 0.2646797299, 0.1529492289, 0.1158820763, 0.0205264464, -0.1365209222, -0.3016510904, 0.0320016742, 0.2034616023, 0.0685077906, 0.190098688, 0.4223011434, -0.0897943228, -0.1778443456, 0.2964973152, 0.1260839403, 0.0989719331, -0.2116261125, -0.007715276, 0.0923991129, 0.021646427, 0.0805896372, -0.028326584, 0.2159601748, -0.1818531901, -0.0117293913, 0.139803201, 0.3961989582, 0.5896659493, 0.2376559079, 0.0708564892, 0.1218011603, 0.1118363142, -0.2394695282, 0.4201745391, -0.0006409544, 0.0830241665, 0.1387090832, 0.0675140023, -0.0104955379, -0.1372614205, -0.3381995261, -0.0796727464, 0.2591252029, -0.2590180039, -0.0463668033, -0.1750999242, -0.3868788481, -0.2604927123, -0.1891009957, -0.030050531, -0.160198614, 0.1231332719, 0.4293966889, -0.0015687399, 0.2788416743, 0.0870347023, 0.1031846181, 0.0460293889, -0.0098645305, -0.0913045555, 0.1508736759, 0.0699023083, 0.028245749, 0.1626146436, -0.031828329, 0.4001651406, -0.1747567654, -0.0209875666, -0.2181558311, -0.1677190959, 0.2413689345, -0.1114943549, 0.6180775166, 0.2661004066, 0.4592854083, 0.0041471813, -0.3879850507, 0.1446587741, 0.0463060662, -0.1369532198, 0.0333751664, -0.0002433871, -0.2438080162, -0.1226319447, -0.2254490852, -0.3785443008, -0.4328781962, 0.2543375492, 0.2345902026, 0.0537235886, 0.1100644022, 0.166372925, 0.0636159107, 0.2898412645, 0.122811906, -0.0541148633, -0.5589822531, 0.2520832419, -0.3775459826, -0.0720542669, 0.0205589458, 0.0416781642, 0.0512189344, -0.1223201007, -0.4090926945, 0.0361612514, -0.2404901683, 0.1619967967, 0.1167780682, 0.1241848394, 0.1887366027, 0.1009559184, 0.0150833568, -0.1101562679, -0.1925559193, -0.2691411376, 0.1991300583, 0.3631561995, 0.0030858598, 0.3257462084, -0.0962238014, 0.5873414278, 0.5794039965, 0.3977866173, 0.1987006217, -0.0593294725, 0.5639396906, -0.3945723772, -0.3446124494, 0.2578230798, -0.0594798289, -0.2480033636, 0.2798624933, 0.3003342748, -0.0594797768, -0.3631209731, -0.1509702951, -0.2810397744, 0.03420306, -0.1667869389, 0.0040723309, 0.017018199, -0.0500285886, 0.0167906582, 0.0390184782, -0.0330687724, -0.14634718, 0.4212604165, -0.1131585613, 0.1543162912, 0.0635120794, -0.5545091033, -0.3221096694, 0.0258001462, -0.0134526873, 0.2246141136, -0.1552365571, 0.1488038301, 0.0736004412, 0.1361331195, 0.5541759133, -0.4562051594, -0.1684581935, -0.0185723901, 0.3175087869, -0.187796697, -0.1512874961, 0.0218877718, 0.28227669, 0.4394952953, 0.2160900384, -0.2467669547, 0.4621323943, 0.3397037983, 0.374992907, -0.0639040098, -0.2137821615, -0.3173767328, -0.3006902933, -0.3153763413, -0.1690579802, -0.0030906603, -0.1293442398, -0.0890597925, 0.0818026364, 0.2626326382, -0.1077632159, 0.1175214127, 0.3011842966, 0.2676175535, 0.0628982112, 0.183711648, 0.1136375964, 0.107920453, 0.5600685477, 0.6040761471, -0.1542661935, -0.1516924649, -0.0446491949, 0.0871324167, 0.1013358533, 0.3287271857, -0.2060725391, -0.1814008951, 0.0443585031, 0.1897454262, 0.072685577, -0.0899402797, 0.054934185, 0.0123261278, -0.3696211278, -0.3092419207, 0.1365389526, 0.0751717165, -0.0179420672, 0.3476447463, 0.2324533612, -0.1843087673, 0.1121257022, -0.2440471053, 1.0892512798, 0.1622357965, 0.0140682869, 0.4029418528, -0.3385725319, 0.4583916366, -0.031809628, 0.2442832142, -0.0922417417, -0.4561598897, 0.0760199875, -0.1833046824, 0.221001178, -0.2464592308, -0.7757096887, 0.4563070238, -0.3794751465, 0.0685612187, -0.0300742444, -0.1200446486, -0.4201433957, -0.0748952702, -0.3167243898, 0.1457156092, -0.0775690079, 0.3932019472, -0.1120497808, 0.0524398424, -0.2544223964, -0.2240349352, -0.5470010638, 0.0648931563, -0.4221257567, 0.0870109349, -0.1005591154, -0.2043048888, -0.0237199813, 0.1300022602, 0.2684548199, 0.2387485951, -0.1359120458, 0.062929906, 0.2351138294, -0.1863389909, 0.0767041147, 0.0249788929, 0.2519852817, -0.1830637902, -0.1148935929, -0.1202558726, -0.1968929023, 0.0013775108, 0.2756583393, -0.1562344581, 0.2505801618, -0.0474171117, -0.3397966027, -0.1195169389, -0.0131341778, -0.3878999949, 0.0768568441, -0.1563622355, -0.1838847548, 0.2293212712, -0.0908098072, -0.0587861799, -0.2404298633, 0.2533457577, 0.0589632727, 0.0086136954, 0.4357521832, -0.0179358721, -0.4207966924, -0.1417492032, 0.2253418565, -0.3126995862, -0.2303750366, 0.2614357173, -0.1140251905, -0.0068787606, -0.0806739405, 0.2069678009, 0.3451449275, 0.1540852487, -0.3323571682, -0.3764584363, -0.3284120858, 0.147574544, 0.0310713947, 0.1521606892, -0.0193343181, 0.2260930687, 0.301022172, 0.1063328087, -0.2491924614, -0.1927050799, -0.1546873748, 0.0869675502, 0.5593775511, 0.1796758324, 0.2105420083, -0.1022008583, 0.0897473171, 0.1014234275, -0.0468633249, -0.122245498, -0.0596163757, 0.1183071211, -0.0445856974, -0.2224501669, 0.0075366301, -0.0801506713, -0.2461294234, -0.0703816935, 0.2415385395, 0.1378124952, 0.126748845, -0.1606354862, 0.1127148643, -0.1929808259, 0.0166930594, 0.2934846878, -0.0303370301, 0.1871168911, 0.0341817811, 0.1094911098, 0.0658173561, -0.1896954775, -0.2572782934, -0.0026635423, -0.2651737034, 0.4260790944, 0.1823092401, -0.4378909171, 0.3943258226, -0.0470792912, 0.381827265, 0.1750438213, 0.0311768036, -0.0798356012, 0.3884981573, 0.0976299271, -0.3294933736, -0.0843222812, 0.0136838239, -0.0750706494, 0.0869540125, 0.2809217572, -0.1960110068, -0.0793209821, -0.0979739502, 0.067431286, 0.3489884436, 0.0899996907, 0.3644240201, 0.4494819045, 0.1126564071, 0.1406738907, -0.1987127513, 0.0569520034, -0.0604957789, 0.0460496582, -0.3265147209, -0.0085800076, 0.2286066413, -0.1492639631, 0.1810629964, -0.173875764, 0.2188152373, 0.0198584478, 0.020071052, 0.2120382786, 0.2323509008, 0.3749299347, -0.518401742, -0.0160949808, -0.2409089208, 0.2749628127, -0.0291029103, 0.097088702, 0.1253504753, -0.1341632456, -0.0940333158, -0.0317747183, 0.0488397628, -0.1553530246, -0.1827266216, 0.2091092616, -0.1731859744, -0.4741514921, 0.2151437402, 0.1709955484, 0.1987563819, -0.2799891233, 0.2162549347, 0.0572266169, 0.0219436716, -0.1203117147, 0.4637075663, 0.7801421285, 0.3294224441, 0.1607101858, 0.0075640003, 0.0260517355, -0.1403224468, 0.0504874587, -0.0238529649, 0.1272445619, -0.0618148781, 0.1241570413, 0.1165470257, -0.1607911438, 0.0520366542, 0.2472748011, 0.1489596814, -0.1081255525, 0.2092262506, -0.2972979844, -0.1301208735, -0.0311010946, 0.0023320687, -0.591096282, 0.4035550952, 0.0654170886, -0.3935137689, -0.0704390183, -0.0148963556, 0.0559370741, 0.0052349353, 0.4858071506, 0.2610240579, -0.0906377882, -0.0969787911, -0.2555734217, -0.4394168556, -0.2572410107, 0.0648181513, -0.2767971456, -0.2447713315, -0.0615714826, -0.2166422606, 0.1988962591, 0.1124035716, 0.1634512991, -0.0874838009, 0.2428378761, -0.1261274964, -0.3542248905, 0.0134977326, 0.1447350532, 0.0601870529, -0.3210523129, 0.0795665234, -0.1711051017, 0.0103720818, 0.2309747487, 0.0931776315, -0.13638556, 0.0477112383, -0.0831361637, 0.0881427452, 0.4115926623, -0.1577791572, -0.2478695363, -0.1169848368, -0.3588957191, -0.1551549733, 0.2649927139, 0.2699197233, 0.6113962531, -0.271260649, -0.2950592935, -0.4323140979, 0.1789598316, 0.2405824512, -0.1755367368, -0.2232941538, 0.0106149921, -0.15290609, 0.2978137136, 0.1207847819, 0.0265767816, -0.1669476628, 0.1511306018, -0.2116550058, -0.4269526899, 0.628108561, -0.1684235334, -0.116250746, -0.1275644898, 0.1113930866, 0.2874827385, -0.2038563192, -0.316717416, 0.2491469234, 0.1344027817, -0.063421391, -0.1391741633, 0.3145729303, -0.3537726104, 0.1434515864, 0.1226359382, 0.3309340775, 0.036096096, -0.3287591636, 0.1985344738, -0.125503391 ]
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
Hi! Thanks for reporting! The issue with `cast_column` should be fixed by #3575 and after we merge that PR I'll start working on the `push_to_hub` support for the `Image`/`Audio` feature.
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0
30
Loss of cast `Image` feature on certain dataset method ## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0 Hi! Thanks for reporting! The issue with `cast_column` should be fixed by #3575 and after we merge that PR I'll start working on the `push_to_hub` support for the `Image`/`Audio` feature.
[ -0.212974757, 0.0474174246, 0.038972795, 0.0052658841, 0.6166043282, 0.1256070584, 0.5568077564, 0.3356984258, -0.0696557909, 0.0527435541, -0.058810696, 0.4363155663, 0.0470174327, -0.1245157272, 0.2604289949, -0.2225403041, 0.1796381027, -0.0886645988, -0.2497292608, -0.0093806041, -0.3457139134, -0.0661686584, -0.189347893, 0.237794891, -0.1622091383, -0.0066234502, 0.1640386283, -0.0999358743, 0.1083053946, -0.0299792346, 0.1094763577, -0.2759464979, -0.0227153674, 0.2365700305, -0.0001221718, -0.065070115, 0.3803015053, 0.1371918768, -0.2269870341, -0.0291915555, -0.5200991035, -0.0374795757, 0.1395736635, -0.3502288461, 0.2283566594, 0.2589011192, 0.1385475546, -0.005789414, -0.1646185815, 0.2796777785, 0.1743339449, 0.4169071019, -0.1179315895, 0.0851156861, 0.0722787455, 0.4628681242, -0.3308902681, 0.0254456606, 0.1116627306, 0.3031892776, 0.2586580813, 0.3366072774, -0.1592241526, -0.3194157481, 0.0250832625, 0.2142709792, -0.2843177915, -0.0781232193, 0.0946594402, -0.149554953, 0.319103986, -0.3005329669, -0.3253417313, -0.1712526679, 0.1816152185, 0.0329556949, 0.1259126216, 0.2044391185, 0.1956202388, -0.1157480925, -0.5924867392, 0.0183529314, -0.0085016713, 0.1172120273, -0.3056591153, -0.1439817101, 0.0070280829, 0.2836531103, -0.2083891928, 0.0262531843, 0.047384873, -0.2720197737, 0.0605405606, -0.0732231885, -0.0166722741, -0.0155036682, 0.1188423485, 0.0479594767, -0.1330491304, 0.061952427, -0.0283175036, 0.0416061953, -0.2844966948, 0.1649550498, 0.4856223166, -0.0716555268, -0.1864899248, 0.3215300739, 0.3532758355, 0.4134801626, -0.1369772404, -0.1804829985, 0.3006676435, 0.1830182523, 0.5300552249, -0.0874374211, 0.4510237277, -0.1081014127, -0.3315900266, -0.000249277, 0.0127328206, 0.3132003844, 0.0374832563, -0.0803609341, 0.0762054846, 0.1434403658, 0.5463798642, 0.3438688517, -0.0879276916, -0.2247524559, -0.2489572912, 0.0367455035, -0.0654135793, -0.2301190645, -0.136517778, 0.1686648428, -0.1438101083, 0.0565822683, 0.1042659581, -0.090176031, -0.1707594097, -0.1447999775, 0.050354436, 0.2149533182, -0.2269268036, 0.0025324759, 0.0520613417, -0.088469997, -0.1506866217, 0.1472952217, -0.3751039803, -0.0410818644, -0.0657971203, 0.116718851, -0.1498432904, 0.0185175538, -0.4390591979, 0.0777314231, 0.2409620732, 0.0095926104, 0.2663364708, -0.4195593894, -0.2266321927, -0.1588679105, 0.0716342479, 0.2041889578, -0.1159175485, -0.1556358188, -0.2473698407, -0.0093976501, 0.1166887805, 0.2143129855, -0.0851545781, 0.2201890051, -0.1553698778, 0.147358194, 0.313921839, -0.1477223039, -0.3504665494, -0.0881447122, 0.0493958779, 0.1589129716, -0.393587023, 0.2253857404, 0.4084374011, -0.4220540524, -0.2208252996, 0.4992125928, -0.3667494059, 0.2877869606, -0.0515155904, -0.0572104901, -0.2323422581, 0.2307857573, 0.2822723389, 0.2687315345, 0.2102842182, 0.3427781761, -0.0379122831, -0.0262793321, 0.2914377153, -0.0867511407, 0.3882531524, -0.0889562368, -0.067830503, -0.454113096, -0.1059579104, 0.0282533579, 0.425581485, -0.0085925795, -0.517481029, -0.1013183594, -0.0854581445, 0.1925174594, 0.0403112508, 0.254180491, 0.0197455753, -0.2305019945, -0.3230267465, 0.2358162701, -0.0565983467, 0.0063597681, -0.1164680496, 0.1345174611, -0.2400365174, 0.4560572207, -0.0052541429, -0.3721536994, -0.4887198508, 0.1276488751, 0.0498059392, 0.0649491176, -0.282002449, 0.3803838789, -0.0080363005, 0.2810367048, -0.1981510371, 0.2927631438, 0.2661062777, -0.3616520762, 0.0815318674, 0.2056100965, 0.3214101493, 0.1190568879, -0.254612565, 0.1512318701, -0.0619866587, 0.0886868536, -0.0484200679, 0.2666266561, -0.0770882964, -0.0554106496, -0.0165513009, -0.2249839753, -0.1481880397, -0.0495919138, -0.3853007853, -0.0742676109, -0.4956927598, 0.1608685255, 0.5034551024, -0.0643947497, 0.3723058701, 0.3330649436, -0.0202444717, 0.0904542133, 0.0312909, 0.0792244822, 0.4658776522, -0.1677256078, 0.1057599857, -0.000236143, -0.1788224429, 0.0161226001, 0.2243050039, 0.2232704014, -0.1491252333, -0.078996107, 0.3754318357, 0.1582890004, -0.1314387172, 0.1041737199, 0.2087133974, 0.1085171252, -0.4319802821, 0.2590956986, -0.4952991009, -0.0003921678, -0.244825542, 0.4045081139, 0.0609069057, -0.5520871878, -0.2235294729, 0.205740124, -0.2956366837, 0.1914073974, -0.6933474541, 0.0808956176, 0.082631655, -0.2239792496, -0.1248698309, 0.1186764389, -0.1262239814, -0.0981422961, 0.1418997347, -0.0207545757, 0.2755361497, -0.0254653599, -0.1842603087, -0.5889191031, -0.3886368573, -0.0630068332, -0.075690411, 0.3410921395, 0.365183562, 0.1305100322, 0.0006974844, -0.0128048128, 0.4348777831, -0.1086290628, -0.2362837493, 0.3483405411, -0.0918570682, -0.1570038795, -0.2010460198, 0.1228514612, 0.0980478674, -0.1359257549, 0.0976850316, -0.2406583279, 0.0018188885, 0.1143696234, 0.0268062986, -0.318138361, 0.0508753173, -0.0115880556, -0.2531525791, 0.156210646, 0.2456844151, 0.0552294813, -0.1961912662, -0.234648034, 0.0089845881, -0.0035510287, 0.3924392164, -0.4369996786, -0.211906001, -0.2768323421, 0.6420892477, 0.0023065112, -0.1714526117, 0.1048810109, 0.0654585585, 0.0926557705, -0.165676102, -0.2180749923, -0.0064849723, 0.4205626547, 0.2507822812, 0.2317138463, 0.3459699452, 0.210127458, -0.0322267339, -0.2190698832, -0.3280091882, 0.5038994551, -0.078451097, 0.1444238126, -0.2922511995, -0.391430974, 0.3558739424, -0.1367315203, -0.1644902527, -0.3814609349, -0.083474502, -0.2405689657, -0.0226104725, 0.0500969887, -0.1955518723, -0.4334535897, 0.1921088696, -0.0654786825, 0.1598985642, 0.0236768629, -0.047851868, -0.1074384004, -0.0107212709, 0.4665455818, 0.1237649247, 0.2454434335, -0.2067333609, -0.0250703245, -0.2892753184, 0.0607366785, 0.0884109139, 0.0594514757, 0.3322373033, -0.0856976509, -0.1440947503, 0.1262920797, 0.1556486338, 0.7274237275, -0.1483343989, 0.195775792, -0.0361245163, -0.0014917903, -0.2165748328, -0.0868782327, -0.1029654294, -0.0922525525, 0.1407944709, 0.450116545, -0.2474384308, 0.1840441227, 0.5047356486, 0.1798761636, -0.0940297246, 0.1123652905, -0.0673985854, -0.3316678405, 0.1183465943, -0.0192065332, 0.1487566084, -0.0237703659, 0.0060057794, -0.0873005316, -0.3123444915, 0.013444596, -0.3394703865, -0.1052955911, 0.2014959157, -0.4200636744, 0.3163332641, -0.1351912171, -0.1978119016, 0.0320822112, 0.5124359131, 0.1369955242, -0.4666186869, 0.0011037808, 0.0354865305, -0.0047222083, 0.3964680135, -0.0384865776, -0.1343960464, -0.0498611517, 0.0155119998, -0.1916587055, -0.2284306884, 0.4817675948, -0.0217692386, 0.0780846849, -0.1918257177, 0.4544467032, -0.0442098528, -0.0776279792, 0.0437020175, 0.1622878313, -0.4419854581, 0.0774130523, 0.4937763512, 0.9333990216, -0.0024699913, 0.1461246163, 0.2930726409, -0.2845028341, 0.2834184468, 0.3333913982, -0.0870693326, -0.1744444221, -0.1867193729, -0.1051383764, -0.0303857177, 0.0598942675, -0.2938219011, -0.0638770387, 0.0103151072, -0.3770984411, 0.3907189965, -0.0189871322, -0.3764875829, -0.2629474699, -0.2860756218, -0.0788192302, 0.1320095211, -0.0390595682, -0.1102278233, 0.0354409106, 0.1300735325, -0.2032932788, 0.0144732017, -0.4156180024, 0.0967199206, 0.2399387211, 0.25557971, 0.1965522915, -0.3608346581, 0.1681174785, 0.1595659107, 0.34108904, 0.0053519765, -0.0315885581, 0.452931881, 0.152715072, 0.4174836278, 0.3572153151, -0.0051486939, 0.4238231182, 0.0888735428, -0.1753108948, -0.2058074474, 0.1089816839, 0.0586939007, -0.1450487673, 0.1156688109, -0.0254396033, -0.3804958761, -0.3685141802, -0.2999643385, 0.3118784428, -0.4402896762, 0.1007712185, 0.0964814723, 0.1231472492, 0.6040995717, -0.1881407648, -0.1243166476, 0.0411367267, 0.3414463699, -0.0610602871, 0.1142574549, 0.3218381405, -0.0826962069, -0.2839652002, -0.0218136143, 0.2779640257, 0.0563345253, -0.5644205213, 0.3454326093, -0.5721961856, -0.0620684996, -0.3639295995, 0.0864317566, -0.3505715132, -0.2031119615, -0.4157331586, -0.1756341159, -0.0306510646, 0.2790122926, 0.329115808, 0.0328655615, -0.438223809, 0.3189426363, -0.0551299788, -0.3032430708, -0.2002198845, 0.1937913448, -0.2333880961, 0.4072976112, 0.0599587262, 0.1934261471, -0.0338170789, -0.3001273274, 0.1044765785, 0.0737975389, 0.1759084314, -0.0262232684, -0.3367474377, 0.1705731153, 0.136572957, -0.0736462027, 0.0015761373, -0.0651342943, -0.0402601697, -0.197309345, 0.0413293615, 0.1718618423, -0.1855417043, 0.0451018736, 0.2124294341, -0.0929839686, 0.3679856956, 0.2824163437, -0.1659743488, 0.3266651928, -0.005318685, 0.2633401453, 0.0429730155, 0.0097988527, -0.265532583, 0.1268763244, -0.2093329877, 0.3221723437, 0.6773637533, -0.2110945135, 0.1371896565, 0.1205084026, 0.3189427555, 0.1192443371, -0.3660621345, -0.3100446165, -0.0837258473, 0.1020722687, -0.0122837303, -0.1428960711, 0.0776479244, 0.0336551741, -0.1584312171, 0.100444302, -0.2144838721, 0.0951986387, -0.3762450218, -0.0272470489, 0.8769263029, -0.399258554, 0.0217278805, 0.3303746581, 0.0858706012, 0.3479355574, 0.1389481872, 0.1006341279, 0.0107019106, 0.2749049962, 0.0527244546, -0.0474690348, 0.2196831405, 0.0645809099, 0.3474527895, -0.1199454889, 0.1033014804, -0.0918914601, -0.3875272572, 0.2785761952, 0.0631351173, -0.1608000249, -0.3593702316, -0.2287411392, -0.0179915689, 0.4369044006, -0.2188993692, 0.1574021876, -0.3753629327, 0.0166224074, -0.1118796319, -0.0252777748, -0.0073685488, 0.0802041888, 0.5945531726, 0.2699858248, 0.0638611987, -0.4011995494, -0.1349122077, -0.2144838125, 0.4155800045, -0.3469121456, 0.090499416, 0.1740228087, -0.0544590391, 0.399725765, 0.3305267394, 0.3945848048, 0.150282979, 0.0923845544, 0.0986912251, -0.0011055277, -0.2139588147, 0.0288256891, 0.1427207887, 0.1049057245, 0.3256346881, 0.0278781205, 0.0656507984, 0.0096087661, 0.0390326381, 0.1112023592, 0.2772231996, -0.3701537848, 0.538890481, -0.341218859, -0.3337435722, -0.1257275045, -0.1559713781, 0.0446226299, -0.1171020046, 0.1184754521, -0.1567246169, 0.2345588505, 0.1732303351, 0.0336982161, 0.2426124662, 0.1088086143, 0.1495086551, -0.2013105601, -0.0588348769, 0.0744139329, -0.2163743228, 0.1035531461, 0.1462006718, -0.5723319054, 0.2769875824, 0.1082109287, -0.0811894909, -0.09319783, 0.1233957633, -0.0669182912, 0.3524290621, 0.4547781646, -0.1122281849, -0.4798442125, 0.1951285303, -0.021021422, -0.3671062887, -0.2276887745, 0.3512464762, 0.1471439302, 0.0467145145, 0.1348611414, -0.2886038125, 0.0031903961, -0.1773680001, 0.2143843472, 0.1750638932, 0.1911586374, -0.0897886977, -0.0690924227, 0.0375899188, -0.3868398666, -0.2782467306, 0.1589876264, -0.3699575663, 0.4721068144, 0.2323772162, 0.1134838834, -0.2245676368, 0.2714464068, -0.061962951, -0.0764188692, -0.3553388417, 0.0316689499, -0.2100833356, 0.0093282061, 0.0384366922, 0.064399533, -0.0071632308, 0.2635783255, -0.1632766128, -0.5909435749, 0.5922524333, -0.1685755402, -0.4060596526, -0.0557326116, 0.0765123516, -0.4758182764, -0.054214254, -0.502445817, -0.2975519598, 0.2621207535, -0.2652988732, -0.0814171657, 0.0974775851, 0.3282448351, 0.1177828535, -0.0033767424, 0.5410542488, -0.1355032772, 0.0517033376, 0.4239302874, 0.1216700524 ]
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
> Hi! Thanks for reporting! The issue with `cast_column` should be fixed by #3575 and after we merge that PR I'll start working on the `push_to_hub` support for the `Image`/`Audio` feature. Thanks, I'll keep an eye out for #3575 getting merged. I managed to use `push_to_hub` sucesfully with images when they were loaded via `map` - something like `ds.map(lambda example: {"img": load_image_function(example['fname']})`, this only pushed the images to the hub if the `load_image_function` return a PIL Image without the filename attribute though. I guess this might often be the prefered behaviour though.
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0
92
Loss of cast `Image` feature on certain dataset method ## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0 > Hi! Thanks for reporting! The issue with `cast_column` should be fixed by #3575 and after we merge that PR I'll start working on the `push_to_hub` support for the `Image`/`Audio` feature. Thanks, I'll keep an eye out for #3575 getting merged. I managed to use `push_to_hub` sucesfully with images when they were loaded via `map` - something like `ds.map(lambda example: {"img": load_image_function(example['fname']})`, this only pushed the images to the hub if the `load_image_function` return a PIL Image without the filename attribute though. I guess this might often be the prefered behaviour though.
[ -0.212974757, 0.0474174246, 0.038972795, 0.0052658841, 0.6166043282, 0.1256070584, 0.5568077564, 0.3356984258, -0.0696557909, 0.0527435541, -0.058810696, 0.4363155663, 0.0470174327, -0.1245157272, 0.2604289949, -0.2225403041, 0.1796381027, -0.0886645988, -0.2497292608, -0.0093806041, -0.3457139134, -0.0661686584, -0.189347893, 0.237794891, -0.1622091383, -0.0066234502, 0.1640386283, -0.0999358743, 0.1083053946, -0.0299792346, 0.1094763577, -0.2759464979, -0.0227153674, 0.2365700305, -0.0001221718, -0.065070115, 0.3803015053, 0.1371918768, -0.2269870341, -0.0291915555, -0.5200991035, -0.0374795757, 0.1395736635, -0.3502288461, 0.2283566594, 0.2589011192, 0.1385475546, -0.005789414, -0.1646185815, 0.2796777785, 0.1743339449, 0.4169071019, -0.1179315895, 0.0851156861, 0.0722787455, 0.4628681242, -0.3308902681, 0.0254456606, 0.1116627306, 0.3031892776, 0.2586580813, 0.3366072774, -0.1592241526, -0.3194157481, 0.0250832625, 0.2142709792, -0.2843177915, -0.0781232193, 0.0946594402, -0.149554953, 0.319103986, -0.3005329669, -0.3253417313, -0.1712526679, 0.1816152185, 0.0329556949, 0.1259126216, 0.2044391185, 0.1956202388, -0.1157480925, -0.5924867392, 0.0183529314, -0.0085016713, 0.1172120273, -0.3056591153, -0.1439817101, 0.0070280829, 0.2836531103, -0.2083891928, 0.0262531843, 0.047384873, -0.2720197737, 0.0605405606, -0.0732231885, -0.0166722741, -0.0155036682, 0.1188423485, 0.0479594767, -0.1330491304, 0.061952427, -0.0283175036, 0.0416061953, -0.2844966948, 0.1649550498, 0.4856223166, -0.0716555268, -0.1864899248, 0.3215300739, 0.3532758355, 0.4134801626, -0.1369772404, -0.1804829985, 0.3006676435, 0.1830182523, 0.5300552249, -0.0874374211, 0.4510237277, -0.1081014127, -0.3315900266, -0.000249277, 0.0127328206, 0.3132003844, 0.0374832563, -0.0803609341, 0.0762054846, 0.1434403658, 0.5463798642, 0.3438688517, -0.0879276916, -0.2247524559, -0.2489572912, 0.0367455035, -0.0654135793, -0.2301190645, -0.136517778, 0.1686648428, -0.1438101083, 0.0565822683, 0.1042659581, -0.090176031, -0.1707594097, -0.1447999775, 0.050354436, 0.2149533182, -0.2269268036, 0.0025324759, 0.0520613417, -0.088469997, -0.1506866217, 0.1472952217, -0.3751039803, -0.0410818644, -0.0657971203, 0.116718851, -0.1498432904, 0.0185175538, -0.4390591979, 0.0777314231, 0.2409620732, 0.0095926104, 0.2663364708, -0.4195593894, -0.2266321927, -0.1588679105, 0.0716342479, 0.2041889578, -0.1159175485, -0.1556358188, -0.2473698407, -0.0093976501, 0.1166887805, 0.2143129855, -0.0851545781, 0.2201890051, -0.1553698778, 0.147358194, 0.313921839, -0.1477223039, -0.3504665494, -0.0881447122, 0.0493958779, 0.1589129716, -0.393587023, 0.2253857404, 0.4084374011, -0.4220540524, -0.2208252996, 0.4992125928, -0.3667494059, 0.2877869606, -0.0515155904, -0.0572104901, -0.2323422581, 0.2307857573, 0.2822723389, 0.2687315345, 0.2102842182, 0.3427781761, -0.0379122831, -0.0262793321, 0.2914377153, -0.0867511407, 0.3882531524, -0.0889562368, -0.067830503, -0.454113096, -0.1059579104, 0.0282533579, 0.425581485, -0.0085925795, -0.517481029, -0.1013183594, -0.0854581445, 0.1925174594, 0.0403112508, 0.254180491, 0.0197455753, -0.2305019945, -0.3230267465, 0.2358162701, -0.0565983467, 0.0063597681, -0.1164680496, 0.1345174611, -0.2400365174, 0.4560572207, -0.0052541429, -0.3721536994, -0.4887198508, 0.1276488751, 0.0498059392, 0.0649491176, -0.282002449, 0.3803838789, -0.0080363005, 0.2810367048, -0.1981510371, 0.2927631438, 0.2661062777, -0.3616520762, 0.0815318674, 0.2056100965, 0.3214101493, 0.1190568879, -0.254612565, 0.1512318701, -0.0619866587, 0.0886868536, -0.0484200679, 0.2666266561, -0.0770882964, -0.0554106496, -0.0165513009, -0.2249839753, -0.1481880397, -0.0495919138, -0.3853007853, -0.0742676109, -0.4956927598, 0.1608685255, 0.5034551024, -0.0643947497, 0.3723058701, 0.3330649436, -0.0202444717, 0.0904542133, 0.0312909, 0.0792244822, 0.4658776522, -0.1677256078, 0.1057599857, -0.000236143, -0.1788224429, 0.0161226001, 0.2243050039, 0.2232704014, -0.1491252333, -0.078996107, 0.3754318357, 0.1582890004, -0.1314387172, 0.1041737199, 0.2087133974, 0.1085171252, -0.4319802821, 0.2590956986, -0.4952991009, -0.0003921678, -0.244825542, 0.4045081139, 0.0609069057, -0.5520871878, -0.2235294729, 0.205740124, -0.2956366837, 0.1914073974, -0.6933474541, 0.0808956176, 0.082631655, -0.2239792496, -0.1248698309, 0.1186764389, -0.1262239814, -0.0981422961, 0.1418997347, -0.0207545757, 0.2755361497, -0.0254653599, -0.1842603087, -0.5889191031, -0.3886368573, -0.0630068332, -0.075690411, 0.3410921395, 0.365183562, 0.1305100322, 0.0006974844, -0.0128048128, 0.4348777831, -0.1086290628, -0.2362837493, 0.3483405411, -0.0918570682, -0.1570038795, -0.2010460198, 0.1228514612, 0.0980478674, -0.1359257549, 0.0976850316, -0.2406583279, 0.0018188885, 0.1143696234, 0.0268062986, -0.318138361, 0.0508753173, -0.0115880556, -0.2531525791, 0.156210646, 0.2456844151, 0.0552294813, -0.1961912662, -0.234648034, 0.0089845881, -0.0035510287, 0.3924392164, -0.4369996786, -0.211906001, -0.2768323421, 0.6420892477, 0.0023065112, -0.1714526117, 0.1048810109, 0.0654585585, 0.0926557705, -0.165676102, -0.2180749923, -0.0064849723, 0.4205626547, 0.2507822812, 0.2317138463, 0.3459699452, 0.210127458, -0.0322267339, -0.2190698832, -0.3280091882, 0.5038994551, -0.078451097, 0.1444238126, -0.2922511995, -0.391430974, 0.3558739424, -0.1367315203, -0.1644902527, -0.3814609349, -0.083474502, -0.2405689657, -0.0226104725, 0.0500969887, -0.1955518723, -0.4334535897, 0.1921088696, -0.0654786825, 0.1598985642, 0.0236768629, -0.047851868, -0.1074384004, -0.0107212709, 0.4665455818, 0.1237649247, 0.2454434335, -0.2067333609, -0.0250703245, -0.2892753184, 0.0607366785, 0.0884109139, 0.0594514757, 0.3322373033, -0.0856976509, -0.1440947503, 0.1262920797, 0.1556486338, 0.7274237275, -0.1483343989, 0.195775792, -0.0361245163, -0.0014917903, -0.2165748328, -0.0868782327, -0.1029654294, -0.0922525525, 0.1407944709, 0.450116545, -0.2474384308, 0.1840441227, 0.5047356486, 0.1798761636, -0.0940297246, 0.1123652905, -0.0673985854, -0.3316678405, 0.1183465943, -0.0192065332, 0.1487566084, -0.0237703659, 0.0060057794, -0.0873005316, -0.3123444915, 0.013444596, -0.3394703865, -0.1052955911, 0.2014959157, -0.4200636744, 0.3163332641, -0.1351912171, -0.1978119016, 0.0320822112, 0.5124359131, 0.1369955242, -0.4666186869, 0.0011037808, 0.0354865305, -0.0047222083, 0.3964680135, -0.0384865776, -0.1343960464, -0.0498611517, 0.0155119998, -0.1916587055, -0.2284306884, 0.4817675948, -0.0217692386, 0.0780846849, -0.1918257177, 0.4544467032, -0.0442098528, -0.0776279792, 0.0437020175, 0.1622878313, -0.4419854581, 0.0774130523, 0.4937763512, 0.9333990216, -0.0024699913, 0.1461246163, 0.2930726409, -0.2845028341, 0.2834184468, 0.3333913982, -0.0870693326, -0.1744444221, -0.1867193729, -0.1051383764, -0.0303857177, 0.0598942675, -0.2938219011, -0.0638770387, 0.0103151072, -0.3770984411, 0.3907189965, -0.0189871322, -0.3764875829, -0.2629474699, -0.2860756218, -0.0788192302, 0.1320095211, -0.0390595682, -0.1102278233, 0.0354409106, 0.1300735325, -0.2032932788, 0.0144732017, -0.4156180024, 0.0967199206, 0.2399387211, 0.25557971, 0.1965522915, -0.3608346581, 0.1681174785, 0.1595659107, 0.34108904, 0.0053519765, -0.0315885581, 0.452931881, 0.152715072, 0.4174836278, 0.3572153151, -0.0051486939, 0.4238231182, 0.0888735428, -0.1753108948, -0.2058074474, 0.1089816839, 0.0586939007, -0.1450487673, 0.1156688109, -0.0254396033, -0.3804958761, -0.3685141802, -0.2999643385, 0.3118784428, -0.4402896762, 0.1007712185, 0.0964814723, 0.1231472492, 0.6040995717, -0.1881407648, -0.1243166476, 0.0411367267, 0.3414463699, -0.0610602871, 0.1142574549, 0.3218381405, -0.0826962069, -0.2839652002, -0.0218136143, 0.2779640257, 0.0563345253, -0.5644205213, 0.3454326093, -0.5721961856, -0.0620684996, -0.3639295995, 0.0864317566, -0.3505715132, -0.2031119615, -0.4157331586, -0.1756341159, -0.0306510646, 0.2790122926, 0.329115808, 0.0328655615, -0.438223809, 0.3189426363, -0.0551299788, -0.3032430708, -0.2002198845, 0.1937913448, -0.2333880961, 0.4072976112, 0.0599587262, 0.1934261471, -0.0338170789, -0.3001273274, 0.1044765785, 0.0737975389, 0.1759084314, -0.0262232684, -0.3367474377, 0.1705731153, 0.136572957, -0.0736462027, 0.0015761373, -0.0651342943, -0.0402601697, -0.197309345, 0.0413293615, 0.1718618423, -0.1855417043, 0.0451018736, 0.2124294341, -0.0929839686, 0.3679856956, 0.2824163437, -0.1659743488, 0.3266651928, -0.005318685, 0.2633401453, 0.0429730155, 0.0097988527, -0.265532583, 0.1268763244, -0.2093329877, 0.3221723437, 0.6773637533, -0.2110945135, 0.1371896565, 0.1205084026, 0.3189427555, 0.1192443371, -0.3660621345, -0.3100446165, -0.0837258473, 0.1020722687, -0.0122837303, -0.1428960711, 0.0776479244, 0.0336551741, -0.1584312171, 0.100444302, -0.2144838721, 0.0951986387, -0.3762450218, -0.0272470489, 0.8769263029, -0.399258554, 0.0217278805, 0.3303746581, 0.0858706012, 0.3479355574, 0.1389481872, 0.1006341279, 0.0107019106, 0.2749049962, 0.0527244546, -0.0474690348, 0.2196831405, 0.0645809099, 0.3474527895, -0.1199454889, 0.1033014804, -0.0918914601, -0.3875272572, 0.2785761952, 0.0631351173, -0.1608000249, -0.3593702316, -0.2287411392, -0.0179915689, 0.4369044006, -0.2188993692, 0.1574021876, -0.3753629327, 0.0166224074, -0.1118796319, -0.0252777748, -0.0073685488, 0.0802041888, 0.5945531726, 0.2699858248, 0.0638611987, -0.4011995494, -0.1349122077, -0.2144838125, 0.4155800045, -0.3469121456, 0.090499416, 0.1740228087, -0.0544590391, 0.399725765, 0.3305267394, 0.3945848048, 0.150282979, 0.0923845544, 0.0986912251, -0.0011055277, -0.2139588147, 0.0288256891, 0.1427207887, 0.1049057245, 0.3256346881, 0.0278781205, 0.0656507984, 0.0096087661, 0.0390326381, 0.1112023592, 0.2772231996, -0.3701537848, 0.538890481, -0.341218859, -0.3337435722, -0.1257275045, -0.1559713781, 0.0446226299, -0.1171020046, 0.1184754521, -0.1567246169, 0.2345588505, 0.1732303351, 0.0336982161, 0.2426124662, 0.1088086143, 0.1495086551, -0.2013105601, -0.0588348769, 0.0744139329, -0.2163743228, 0.1035531461, 0.1462006718, -0.5723319054, 0.2769875824, 0.1082109287, -0.0811894909, -0.09319783, 0.1233957633, -0.0669182912, 0.3524290621, 0.4547781646, -0.1122281849, -0.4798442125, 0.1951285303, -0.021021422, -0.3671062887, -0.2276887745, 0.3512464762, 0.1471439302, 0.0467145145, 0.1348611414, -0.2886038125, 0.0031903961, -0.1773680001, 0.2143843472, 0.1750638932, 0.1911586374, -0.0897886977, -0.0690924227, 0.0375899188, -0.3868398666, -0.2782467306, 0.1589876264, -0.3699575663, 0.4721068144, 0.2323772162, 0.1134838834, -0.2245676368, 0.2714464068, -0.061962951, -0.0764188692, -0.3553388417, 0.0316689499, -0.2100833356, 0.0093282061, 0.0384366922, 0.064399533, -0.0071632308, 0.2635783255, -0.1632766128, -0.5909435749, 0.5922524333, -0.1685755402, -0.4060596526, -0.0557326116, 0.0765123516, -0.4758182764, -0.054214254, -0.502445817, -0.2975519598, 0.2621207535, -0.2652988732, -0.0814171657, 0.0974775851, 0.3282448351, 0.1177828535, -0.0033767424, 0.5410542488, -0.1355032772, 0.0517033376, 0.4239302874, 0.1216700524 ]
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
Hi ! We merged the PR and did a release of `datasets` that includes the changes. Can you try updating `datasets` and try again ?
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0
25
Loss of cast `Image` feature on certain dataset method ## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0 Hi ! We merged the PR and did a release of `datasets` that includes the changes. Can you try updating `datasets` and try again ?
[ -0.212974757, 0.0474174246, 0.038972795, 0.0052658841, 0.6166043282, 0.1256070584, 0.5568077564, 0.3356984258, -0.0696557909, 0.0527435541, -0.058810696, 0.4363155663, 0.0470174327, -0.1245157272, 0.2604289949, -0.2225403041, 0.1796381027, -0.0886645988, -0.2497292608, -0.0093806041, -0.3457139134, -0.0661686584, -0.189347893, 0.237794891, -0.1622091383, -0.0066234502, 0.1640386283, -0.0999358743, 0.1083053946, -0.0299792346, 0.1094763577, -0.2759464979, -0.0227153674, 0.2365700305, -0.0001221718, -0.065070115, 0.3803015053, 0.1371918768, -0.2269870341, -0.0291915555, -0.5200991035, -0.0374795757, 0.1395736635, -0.3502288461, 0.2283566594, 0.2589011192, 0.1385475546, -0.005789414, -0.1646185815, 0.2796777785, 0.1743339449, 0.4169071019, -0.1179315895, 0.0851156861, 0.0722787455, 0.4628681242, -0.3308902681, 0.0254456606, 0.1116627306, 0.3031892776, 0.2586580813, 0.3366072774, -0.1592241526, -0.3194157481, 0.0250832625, 0.2142709792, -0.2843177915, -0.0781232193, 0.0946594402, -0.149554953, 0.319103986, -0.3005329669, -0.3253417313, -0.1712526679, 0.1816152185, 0.0329556949, 0.1259126216, 0.2044391185, 0.1956202388, -0.1157480925, -0.5924867392, 0.0183529314, -0.0085016713, 0.1172120273, -0.3056591153, -0.1439817101, 0.0070280829, 0.2836531103, -0.2083891928, 0.0262531843, 0.047384873, -0.2720197737, 0.0605405606, -0.0732231885, -0.0166722741, -0.0155036682, 0.1188423485, 0.0479594767, -0.1330491304, 0.061952427, -0.0283175036, 0.0416061953, -0.2844966948, 0.1649550498, 0.4856223166, -0.0716555268, -0.1864899248, 0.3215300739, 0.3532758355, 0.4134801626, -0.1369772404, -0.1804829985, 0.3006676435, 0.1830182523, 0.5300552249, -0.0874374211, 0.4510237277, -0.1081014127, -0.3315900266, -0.000249277, 0.0127328206, 0.3132003844, 0.0374832563, -0.0803609341, 0.0762054846, 0.1434403658, 0.5463798642, 0.3438688517, -0.0879276916, -0.2247524559, -0.2489572912, 0.0367455035, -0.0654135793, -0.2301190645, -0.136517778, 0.1686648428, -0.1438101083, 0.0565822683, 0.1042659581, -0.090176031, -0.1707594097, -0.1447999775, 0.050354436, 0.2149533182, -0.2269268036, 0.0025324759, 0.0520613417, -0.088469997, -0.1506866217, 0.1472952217, -0.3751039803, -0.0410818644, -0.0657971203, 0.116718851, -0.1498432904, 0.0185175538, -0.4390591979, 0.0777314231, 0.2409620732, 0.0095926104, 0.2663364708, -0.4195593894, -0.2266321927, -0.1588679105, 0.0716342479, 0.2041889578, -0.1159175485, -0.1556358188, -0.2473698407, -0.0093976501, 0.1166887805, 0.2143129855, -0.0851545781, 0.2201890051, -0.1553698778, 0.147358194, 0.313921839, -0.1477223039, -0.3504665494, -0.0881447122, 0.0493958779, 0.1589129716, -0.393587023, 0.2253857404, 0.4084374011, -0.4220540524, -0.2208252996, 0.4992125928, -0.3667494059, 0.2877869606, -0.0515155904, -0.0572104901, -0.2323422581, 0.2307857573, 0.2822723389, 0.2687315345, 0.2102842182, 0.3427781761, -0.0379122831, -0.0262793321, 0.2914377153, -0.0867511407, 0.3882531524, -0.0889562368, -0.067830503, -0.454113096, -0.1059579104, 0.0282533579, 0.425581485, -0.0085925795, -0.517481029, -0.1013183594, -0.0854581445, 0.1925174594, 0.0403112508, 0.254180491, 0.0197455753, -0.2305019945, -0.3230267465, 0.2358162701, -0.0565983467, 0.0063597681, -0.1164680496, 0.1345174611, -0.2400365174, 0.4560572207, -0.0052541429, -0.3721536994, -0.4887198508, 0.1276488751, 0.0498059392, 0.0649491176, -0.282002449, 0.3803838789, -0.0080363005, 0.2810367048, -0.1981510371, 0.2927631438, 0.2661062777, -0.3616520762, 0.0815318674, 0.2056100965, 0.3214101493, 0.1190568879, -0.254612565, 0.1512318701, -0.0619866587, 0.0886868536, -0.0484200679, 0.2666266561, -0.0770882964, -0.0554106496, -0.0165513009, -0.2249839753, -0.1481880397, -0.0495919138, -0.3853007853, -0.0742676109, -0.4956927598, 0.1608685255, 0.5034551024, -0.0643947497, 0.3723058701, 0.3330649436, -0.0202444717, 0.0904542133, 0.0312909, 0.0792244822, 0.4658776522, -0.1677256078, 0.1057599857, -0.000236143, -0.1788224429, 0.0161226001, 0.2243050039, 0.2232704014, -0.1491252333, -0.078996107, 0.3754318357, 0.1582890004, -0.1314387172, 0.1041737199, 0.2087133974, 0.1085171252, -0.4319802821, 0.2590956986, -0.4952991009, -0.0003921678, -0.244825542, 0.4045081139, 0.0609069057, -0.5520871878, -0.2235294729, 0.205740124, -0.2956366837, 0.1914073974, -0.6933474541, 0.0808956176, 0.082631655, -0.2239792496, -0.1248698309, 0.1186764389, -0.1262239814, -0.0981422961, 0.1418997347, -0.0207545757, 0.2755361497, -0.0254653599, -0.1842603087, -0.5889191031, -0.3886368573, -0.0630068332, -0.075690411, 0.3410921395, 0.365183562, 0.1305100322, 0.0006974844, -0.0128048128, 0.4348777831, -0.1086290628, -0.2362837493, 0.3483405411, -0.0918570682, -0.1570038795, -0.2010460198, 0.1228514612, 0.0980478674, -0.1359257549, 0.0976850316, -0.2406583279, 0.0018188885, 0.1143696234, 0.0268062986, -0.318138361, 0.0508753173, -0.0115880556, -0.2531525791, 0.156210646, 0.2456844151, 0.0552294813, -0.1961912662, -0.234648034, 0.0089845881, -0.0035510287, 0.3924392164, -0.4369996786, -0.211906001, -0.2768323421, 0.6420892477, 0.0023065112, -0.1714526117, 0.1048810109, 0.0654585585, 0.0926557705, -0.165676102, -0.2180749923, -0.0064849723, 0.4205626547, 0.2507822812, 0.2317138463, 0.3459699452, 0.210127458, -0.0322267339, -0.2190698832, -0.3280091882, 0.5038994551, -0.078451097, 0.1444238126, -0.2922511995, -0.391430974, 0.3558739424, -0.1367315203, -0.1644902527, -0.3814609349, -0.083474502, -0.2405689657, -0.0226104725, 0.0500969887, -0.1955518723, -0.4334535897, 0.1921088696, -0.0654786825, 0.1598985642, 0.0236768629, -0.047851868, -0.1074384004, -0.0107212709, 0.4665455818, 0.1237649247, 0.2454434335, -0.2067333609, -0.0250703245, -0.2892753184, 0.0607366785, 0.0884109139, 0.0594514757, 0.3322373033, -0.0856976509, -0.1440947503, 0.1262920797, 0.1556486338, 0.7274237275, -0.1483343989, 0.195775792, -0.0361245163, -0.0014917903, -0.2165748328, -0.0868782327, -0.1029654294, -0.0922525525, 0.1407944709, 0.450116545, -0.2474384308, 0.1840441227, 0.5047356486, 0.1798761636, -0.0940297246, 0.1123652905, -0.0673985854, -0.3316678405, 0.1183465943, -0.0192065332, 0.1487566084, -0.0237703659, 0.0060057794, -0.0873005316, -0.3123444915, 0.013444596, -0.3394703865, -0.1052955911, 0.2014959157, -0.4200636744, 0.3163332641, -0.1351912171, -0.1978119016, 0.0320822112, 0.5124359131, 0.1369955242, -0.4666186869, 0.0011037808, 0.0354865305, -0.0047222083, 0.3964680135, -0.0384865776, -0.1343960464, -0.0498611517, 0.0155119998, -0.1916587055, -0.2284306884, 0.4817675948, -0.0217692386, 0.0780846849, -0.1918257177, 0.4544467032, -0.0442098528, -0.0776279792, 0.0437020175, 0.1622878313, -0.4419854581, 0.0774130523, 0.4937763512, 0.9333990216, -0.0024699913, 0.1461246163, 0.2930726409, -0.2845028341, 0.2834184468, 0.3333913982, -0.0870693326, -0.1744444221, -0.1867193729, -0.1051383764, -0.0303857177, 0.0598942675, -0.2938219011, -0.0638770387, 0.0103151072, -0.3770984411, 0.3907189965, -0.0189871322, -0.3764875829, -0.2629474699, -0.2860756218, -0.0788192302, 0.1320095211, -0.0390595682, -0.1102278233, 0.0354409106, 0.1300735325, -0.2032932788, 0.0144732017, -0.4156180024, 0.0967199206, 0.2399387211, 0.25557971, 0.1965522915, -0.3608346581, 0.1681174785, 0.1595659107, 0.34108904, 0.0053519765, -0.0315885581, 0.452931881, 0.152715072, 0.4174836278, 0.3572153151, -0.0051486939, 0.4238231182, 0.0888735428, -0.1753108948, -0.2058074474, 0.1089816839, 0.0586939007, -0.1450487673, 0.1156688109, -0.0254396033, -0.3804958761, -0.3685141802, -0.2999643385, 0.3118784428, -0.4402896762, 0.1007712185, 0.0964814723, 0.1231472492, 0.6040995717, -0.1881407648, -0.1243166476, 0.0411367267, 0.3414463699, -0.0610602871, 0.1142574549, 0.3218381405, -0.0826962069, -0.2839652002, -0.0218136143, 0.2779640257, 0.0563345253, -0.5644205213, 0.3454326093, -0.5721961856, -0.0620684996, -0.3639295995, 0.0864317566, -0.3505715132, -0.2031119615, -0.4157331586, -0.1756341159, -0.0306510646, 0.2790122926, 0.329115808, 0.0328655615, -0.438223809, 0.3189426363, -0.0551299788, -0.3032430708, -0.2002198845, 0.1937913448, -0.2333880961, 0.4072976112, 0.0599587262, 0.1934261471, -0.0338170789, -0.3001273274, 0.1044765785, 0.0737975389, 0.1759084314, -0.0262232684, -0.3367474377, 0.1705731153, 0.136572957, -0.0736462027, 0.0015761373, -0.0651342943, -0.0402601697, -0.197309345, 0.0413293615, 0.1718618423, -0.1855417043, 0.0451018736, 0.2124294341, -0.0929839686, 0.3679856956, 0.2824163437, -0.1659743488, 0.3266651928, -0.005318685, 0.2633401453, 0.0429730155, 0.0097988527, -0.265532583, 0.1268763244, -0.2093329877, 0.3221723437, 0.6773637533, -0.2110945135, 0.1371896565, 0.1205084026, 0.3189427555, 0.1192443371, -0.3660621345, -0.3100446165, -0.0837258473, 0.1020722687, -0.0122837303, -0.1428960711, 0.0776479244, 0.0336551741, -0.1584312171, 0.100444302, -0.2144838721, 0.0951986387, -0.3762450218, -0.0272470489, 0.8769263029, -0.399258554, 0.0217278805, 0.3303746581, 0.0858706012, 0.3479355574, 0.1389481872, 0.1006341279, 0.0107019106, 0.2749049962, 0.0527244546, -0.0474690348, 0.2196831405, 0.0645809099, 0.3474527895, -0.1199454889, 0.1033014804, -0.0918914601, -0.3875272572, 0.2785761952, 0.0631351173, -0.1608000249, -0.3593702316, -0.2287411392, -0.0179915689, 0.4369044006, -0.2188993692, 0.1574021876, -0.3753629327, 0.0166224074, -0.1118796319, -0.0252777748, -0.0073685488, 0.0802041888, 0.5945531726, 0.2699858248, 0.0638611987, -0.4011995494, -0.1349122077, -0.2144838125, 0.4155800045, -0.3469121456, 0.090499416, 0.1740228087, -0.0544590391, 0.399725765, 0.3305267394, 0.3945848048, 0.150282979, 0.0923845544, 0.0986912251, -0.0011055277, -0.2139588147, 0.0288256891, 0.1427207887, 0.1049057245, 0.3256346881, 0.0278781205, 0.0656507984, 0.0096087661, 0.0390326381, 0.1112023592, 0.2772231996, -0.3701537848, 0.538890481, -0.341218859, -0.3337435722, -0.1257275045, -0.1559713781, 0.0446226299, -0.1171020046, 0.1184754521, -0.1567246169, 0.2345588505, 0.1732303351, 0.0336982161, 0.2426124662, 0.1088086143, 0.1495086551, -0.2013105601, -0.0588348769, 0.0744139329, -0.2163743228, 0.1035531461, 0.1462006718, -0.5723319054, 0.2769875824, 0.1082109287, -0.0811894909, -0.09319783, 0.1233957633, -0.0669182912, 0.3524290621, 0.4547781646, -0.1122281849, -0.4798442125, 0.1951285303, -0.021021422, -0.3671062887, -0.2276887745, 0.3512464762, 0.1471439302, 0.0467145145, 0.1348611414, -0.2886038125, 0.0031903961, -0.1773680001, 0.2143843472, 0.1750638932, 0.1911586374, -0.0897886977, -0.0690924227, 0.0375899188, -0.3868398666, -0.2782467306, 0.1589876264, -0.3699575663, 0.4721068144, 0.2323772162, 0.1134838834, -0.2245676368, 0.2714464068, -0.061962951, -0.0764188692, -0.3553388417, 0.0316689499, -0.2100833356, 0.0093282061, 0.0384366922, 0.064399533, -0.0071632308, 0.2635783255, -0.1632766128, -0.5909435749, 0.5922524333, -0.1685755402, -0.4060596526, -0.0557326116, 0.0765123516, -0.4758182764, -0.054214254, -0.502445817, -0.2975519598, 0.2621207535, -0.2652988732, -0.0814171657, 0.0974775851, 0.3282448351, 0.1177828535, -0.0033767424, 0.5410542488, -0.1355032772, 0.0517033376, 0.4239302874, 0.1216700524 ]
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
> Hi ! We merged the PR and did a release of `datasets` that includes the changes. Can you try updating `datasets` and try again ? Thanks for checking. There is no longer an error when calling `select` but it appears the cast value isn't preserved. Before `select` ```python dataset.features {'url': Image(id=None)} ``` after select: ``` {'url': Value(dtype='string', id=None)} ``` Updated Colab example [here](https://colab.research.google.com/gist/davanstrien/4e88f55a3675c279b5c2f64299ae5c6f/potential_casting_bug.ipynb)
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0
64
Loss of cast `Image` feature on certain dataset method ## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0 > Hi ! We merged the PR and did a release of `datasets` that includes the changes. Can you try updating `datasets` and try again ? Thanks for checking. There is no longer an error when calling `select` but it appears the cast value isn't preserved. Before `select` ```python dataset.features {'url': Image(id=None)} ``` after select: ``` {'url': Value(dtype='string', id=None)} ``` Updated Colab example [here](https://colab.research.google.com/gist/davanstrien/4e88f55a3675c279b5c2f64299ae5c6f/potential_casting_bug.ipynb)
[ -0.212974757, 0.0474174246, 0.038972795, 0.0052658841, 0.6166043282, 0.1256070584, 0.5568077564, 0.3356984258, -0.0696557909, 0.0527435541, -0.058810696, 0.4363155663, 0.0470174327, -0.1245157272, 0.2604289949, -0.2225403041, 0.1796381027, -0.0886645988, -0.2497292608, -0.0093806041, -0.3457139134, -0.0661686584, -0.189347893, 0.237794891, -0.1622091383, -0.0066234502, 0.1640386283, -0.0999358743, 0.1083053946, -0.0299792346, 0.1094763577, -0.2759464979, -0.0227153674, 0.2365700305, -0.0001221718, -0.065070115, 0.3803015053, 0.1371918768, -0.2269870341, -0.0291915555, -0.5200991035, -0.0374795757, 0.1395736635, -0.3502288461, 0.2283566594, 0.2589011192, 0.1385475546, -0.005789414, -0.1646185815, 0.2796777785, 0.1743339449, 0.4169071019, -0.1179315895, 0.0851156861, 0.0722787455, 0.4628681242, -0.3308902681, 0.0254456606, 0.1116627306, 0.3031892776, 0.2586580813, 0.3366072774, -0.1592241526, -0.3194157481, 0.0250832625, 0.2142709792, -0.2843177915, -0.0781232193, 0.0946594402, -0.149554953, 0.319103986, -0.3005329669, -0.3253417313, -0.1712526679, 0.1816152185, 0.0329556949, 0.1259126216, 0.2044391185, 0.1956202388, -0.1157480925, -0.5924867392, 0.0183529314, -0.0085016713, 0.1172120273, -0.3056591153, -0.1439817101, 0.0070280829, 0.2836531103, -0.2083891928, 0.0262531843, 0.047384873, -0.2720197737, 0.0605405606, -0.0732231885, -0.0166722741, -0.0155036682, 0.1188423485, 0.0479594767, -0.1330491304, 0.061952427, -0.0283175036, 0.0416061953, -0.2844966948, 0.1649550498, 0.4856223166, -0.0716555268, -0.1864899248, 0.3215300739, 0.3532758355, 0.4134801626, -0.1369772404, -0.1804829985, 0.3006676435, 0.1830182523, 0.5300552249, -0.0874374211, 0.4510237277, -0.1081014127, -0.3315900266, -0.000249277, 0.0127328206, 0.3132003844, 0.0374832563, -0.0803609341, 0.0762054846, 0.1434403658, 0.5463798642, 0.3438688517, -0.0879276916, -0.2247524559, -0.2489572912, 0.0367455035, -0.0654135793, -0.2301190645, -0.136517778, 0.1686648428, -0.1438101083, 0.0565822683, 0.1042659581, -0.090176031, -0.1707594097, -0.1447999775, 0.050354436, 0.2149533182, -0.2269268036, 0.0025324759, 0.0520613417, -0.088469997, -0.1506866217, 0.1472952217, -0.3751039803, -0.0410818644, -0.0657971203, 0.116718851, -0.1498432904, 0.0185175538, -0.4390591979, 0.0777314231, 0.2409620732, 0.0095926104, 0.2663364708, -0.4195593894, -0.2266321927, -0.1588679105, 0.0716342479, 0.2041889578, -0.1159175485, -0.1556358188, -0.2473698407, -0.0093976501, 0.1166887805, 0.2143129855, -0.0851545781, 0.2201890051, -0.1553698778, 0.147358194, 0.313921839, -0.1477223039, -0.3504665494, -0.0881447122, 0.0493958779, 0.1589129716, -0.393587023, 0.2253857404, 0.4084374011, -0.4220540524, -0.2208252996, 0.4992125928, -0.3667494059, 0.2877869606, -0.0515155904, -0.0572104901, -0.2323422581, 0.2307857573, 0.2822723389, 0.2687315345, 0.2102842182, 0.3427781761, -0.0379122831, -0.0262793321, 0.2914377153, -0.0867511407, 0.3882531524, -0.0889562368, -0.067830503, -0.454113096, -0.1059579104, 0.0282533579, 0.425581485, -0.0085925795, -0.517481029, -0.1013183594, -0.0854581445, 0.1925174594, 0.0403112508, 0.254180491, 0.0197455753, -0.2305019945, -0.3230267465, 0.2358162701, -0.0565983467, 0.0063597681, -0.1164680496, 0.1345174611, -0.2400365174, 0.4560572207, -0.0052541429, -0.3721536994, -0.4887198508, 0.1276488751, 0.0498059392, 0.0649491176, -0.282002449, 0.3803838789, -0.0080363005, 0.2810367048, -0.1981510371, 0.2927631438, 0.2661062777, -0.3616520762, 0.0815318674, 0.2056100965, 0.3214101493, 0.1190568879, -0.254612565, 0.1512318701, -0.0619866587, 0.0886868536, -0.0484200679, 0.2666266561, -0.0770882964, -0.0554106496, -0.0165513009, -0.2249839753, -0.1481880397, -0.0495919138, -0.3853007853, -0.0742676109, -0.4956927598, 0.1608685255, 0.5034551024, -0.0643947497, 0.3723058701, 0.3330649436, -0.0202444717, 0.0904542133, 0.0312909, 0.0792244822, 0.4658776522, -0.1677256078, 0.1057599857, -0.000236143, -0.1788224429, 0.0161226001, 0.2243050039, 0.2232704014, -0.1491252333, -0.078996107, 0.3754318357, 0.1582890004, -0.1314387172, 0.1041737199, 0.2087133974, 0.1085171252, -0.4319802821, 0.2590956986, -0.4952991009, -0.0003921678, -0.244825542, 0.4045081139, 0.0609069057, -0.5520871878, -0.2235294729, 0.205740124, -0.2956366837, 0.1914073974, -0.6933474541, 0.0808956176, 0.082631655, -0.2239792496, -0.1248698309, 0.1186764389, -0.1262239814, -0.0981422961, 0.1418997347, -0.0207545757, 0.2755361497, -0.0254653599, -0.1842603087, -0.5889191031, -0.3886368573, -0.0630068332, -0.075690411, 0.3410921395, 0.365183562, 0.1305100322, 0.0006974844, -0.0128048128, 0.4348777831, -0.1086290628, -0.2362837493, 0.3483405411, -0.0918570682, -0.1570038795, -0.2010460198, 0.1228514612, 0.0980478674, -0.1359257549, 0.0976850316, -0.2406583279, 0.0018188885, 0.1143696234, 0.0268062986, -0.318138361, 0.0508753173, -0.0115880556, -0.2531525791, 0.156210646, 0.2456844151, 0.0552294813, -0.1961912662, -0.234648034, 0.0089845881, -0.0035510287, 0.3924392164, -0.4369996786, -0.211906001, -0.2768323421, 0.6420892477, 0.0023065112, -0.1714526117, 0.1048810109, 0.0654585585, 0.0926557705, -0.165676102, -0.2180749923, -0.0064849723, 0.4205626547, 0.2507822812, 0.2317138463, 0.3459699452, 0.210127458, -0.0322267339, -0.2190698832, -0.3280091882, 0.5038994551, -0.078451097, 0.1444238126, -0.2922511995, -0.391430974, 0.3558739424, -0.1367315203, -0.1644902527, -0.3814609349, -0.083474502, -0.2405689657, -0.0226104725, 0.0500969887, -0.1955518723, -0.4334535897, 0.1921088696, -0.0654786825, 0.1598985642, 0.0236768629, -0.047851868, -0.1074384004, -0.0107212709, 0.4665455818, 0.1237649247, 0.2454434335, -0.2067333609, -0.0250703245, -0.2892753184, 0.0607366785, 0.0884109139, 0.0594514757, 0.3322373033, -0.0856976509, -0.1440947503, 0.1262920797, 0.1556486338, 0.7274237275, -0.1483343989, 0.195775792, -0.0361245163, -0.0014917903, -0.2165748328, -0.0868782327, -0.1029654294, -0.0922525525, 0.1407944709, 0.450116545, -0.2474384308, 0.1840441227, 0.5047356486, 0.1798761636, -0.0940297246, 0.1123652905, -0.0673985854, -0.3316678405, 0.1183465943, -0.0192065332, 0.1487566084, -0.0237703659, 0.0060057794, -0.0873005316, -0.3123444915, 0.013444596, -0.3394703865, -0.1052955911, 0.2014959157, -0.4200636744, 0.3163332641, -0.1351912171, -0.1978119016, 0.0320822112, 0.5124359131, 0.1369955242, -0.4666186869, 0.0011037808, 0.0354865305, -0.0047222083, 0.3964680135, -0.0384865776, -0.1343960464, -0.0498611517, 0.0155119998, -0.1916587055, -0.2284306884, 0.4817675948, -0.0217692386, 0.0780846849, -0.1918257177, 0.4544467032, -0.0442098528, -0.0776279792, 0.0437020175, 0.1622878313, -0.4419854581, 0.0774130523, 0.4937763512, 0.9333990216, -0.0024699913, 0.1461246163, 0.2930726409, -0.2845028341, 0.2834184468, 0.3333913982, -0.0870693326, -0.1744444221, -0.1867193729, -0.1051383764, -0.0303857177, 0.0598942675, -0.2938219011, -0.0638770387, 0.0103151072, -0.3770984411, 0.3907189965, -0.0189871322, -0.3764875829, -0.2629474699, -0.2860756218, -0.0788192302, 0.1320095211, -0.0390595682, -0.1102278233, 0.0354409106, 0.1300735325, -0.2032932788, 0.0144732017, -0.4156180024, 0.0967199206, 0.2399387211, 0.25557971, 0.1965522915, -0.3608346581, 0.1681174785, 0.1595659107, 0.34108904, 0.0053519765, -0.0315885581, 0.452931881, 0.152715072, 0.4174836278, 0.3572153151, -0.0051486939, 0.4238231182, 0.0888735428, -0.1753108948, -0.2058074474, 0.1089816839, 0.0586939007, -0.1450487673, 0.1156688109, -0.0254396033, -0.3804958761, -0.3685141802, -0.2999643385, 0.3118784428, -0.4402896762, 0.1007712185, 0.0964814723, 0.1231472492, 0.6040995717, -0.1881407648, -0.1243166476, 0.0411367267, 0.3414463699, -0.0610602871, 0.1142574549, 0.3218381405, -0.0826962069, -0.2839652002, -0.0218136143, 0.2779640257, 0.0563345253, -0.5644205213, 0.3454326093, -0.5721961856, -0.0620684996, -0.3639295995, 0.0864317566, -0.3505715132, -0.2031119615, -0.4157331586, -0.1756341159, -0.0306510646, 0.2790122926, 0.329115808, 0.0328655615, -0.438223809, 0.3189426363, -0.0551299788, -0.3032430708, -0.2002198845, 0.1937913448, -0.2333880961, 0.4072976112, 0.0599587262, 0.1934261471, -0.0338170789, -0.3001273274, 0.1044765785, 0.0737975389, 0.1759084314, -0.0262232684, -0.3367474377, 0.1705731153, 0.136572957, -0.0736462027, 0.0015761373, -0.0651342943, -0.0402601697, -0.197309345, 0.0413293615, 0.1718618423, -0.1855417043, 0.0451018736, 0.2124294341, -0.0929839686, 0.3679856956, 0.2824163437, -0.1659743488, 0.3266651928, -0.005318685, 0.2633401453, 0.0429730155, 0.0097988527, -0.265532583, 0.1268763244, -0.2093329877, 0.3221723437, 0.6773637533, -0.2110945135, 0.1371896565, 0.1205084026, 0.3189427555, 0.1192443371, -0.3660621345, -0.3100446165, -0.0837258473, 0.1020722687, -0.0122837303, -0.1428960711, 0.0776479244, 0.0336551741, -0.1584312171, 0.100444302, -0.2144838721, 0.0951986387, -0.3762450218, -0.0272470489, 0.8769263029, -0.399258554, 0.0217278805, 0.3303746581, 0.0858706012, 0.3479355574, 0.1389481872, 0.1006341279, 0.0107019106, 0.2749049962, 0.0527244546, -0.0474690348, 0.2196831405, 0.0645809099, 0.3474527895, -0.1199454889, 0.1033014804, -0.0918914601, -0.3875272572, 0.2785761952, 0.0631351173, -0.1608000249, -0.3593702316, -0.2287411392, -0.0179915689, 0.4369044006, -0.2188993692, 0.1574021876, -0.3753629327, 0.0166224074, -0.1118796319, -0.0252777748, -0.0073685488, 0.0802041888, 0.5945531726, 0.2699858248, 0.0638611987, -0.4011995494, -0.1349122077, -0.2144838125, 0.4155800045, -0.3469121456, 0.090499416, 0.1740228087, -0.0544590391, 0.399725765, 0.3305267394, 0.3945848048, 0.150282979, 0.0923845544, 0.0986912251, -0.0011055277, -0.2139588147, 0.0288256891, 0.1427207887, 0.1049057245, 0.3256346881, 0.0278781205, 0.0656507984, 0.0096087661, 0.0390326381, 0.1112023592, 0.2772231996, -0.3701537848, 0.538890481, -0.341218859, -0.3337435722, -0.1257275045, -0.1559713781, 0.0446226299, -0.1171020046, 0.1184754521, -0.1567246169, 0.2345588505, 0.1732303351, 0.0336982161, 0.2426124662, 0.1088086143, 0.1495086551, -0.2013105601, -0.0588348769, 0.0744139329, -0.2163743228, 0.1035531461, 0.1462006718, -0.5723319054, 0.2769875824, 0.1082109287, -0.0811894909, -0.09319783, 0.1233957633, -0.0669182912, 0.3524290621, 0.4547781646, -0.1122281849, -0.4798442125, 0.1951285303, -0.021021422, -0.3671062887, -0.2276887745, 0.3512464762, 0.1471439302, 0.0467145145, 0.1348611414, -0.2886038125, 0.0031903961, -0.1773680001, 0.2143843472, 0.1750638932, 0.1911586374, -0.0897886977, -0.0690924227, 0.0375899188, -0.3868398666, -0.2782467306, 0.1589876264, -0.3699575663, 0.4721068144, 0.2323772162, 0.1134838834, -0.2245676368, 0.2714464068, -0.061962951, -0.0764188692, -0.3553388417, 0.0316689499, -0.2100833356, 0.0093282061, 0.0384366922, 0.064399533, -0.0071632308, 0.2635783255, -0.1632766128, -0.5909435749, 0.5922524333, -0.1685755402, -0.4060596526, -0.0557326116, 0.0765123516, -0.4758182764, -0.054214254, -0.502445817, -0.2975519598, 0.2621207535, -0.2652988732, -0.0814171657, 0.0974775851, 0.3282448351, 0.1177828535, -0.0033767424, 0.5410542488, -0.1355032772, 0.0517033376, 0.4239302874, 0.1216700524 ]
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
Hmmm, if I re-run your google colab I'm getting the right type at the end: ``` sample.features # {'url': Image(id=None)} ```
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0
21
Loss of cast `Image` feature on certain dataset method ## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0 Hmmm, if I re-run your google colab I'm getting the right type at the end: ``` sample.features # {'url': Image(id=None)} ```
[ -0.212974757, 0.0474174246, 0.038972795, 0.0052658841, 0.6166043282, 0.1256070584, 0.5568077564, 0.3356984258, -0.0696557909, 0.0527435541, -0.058810696, 0.4363155663, 0.0470174327, -0.1245157272, 0.2604289949, -0.2225403041, 0.1796381027, -0.0886645988, -0.2497292608, -0.0093806041, -0.3457139134, -0.0661686584, -0.189347893, 0.237794891, -0.1622091383, -0.0066234502, 0.1640386283, -0.0999358743, 0.1083053946, -0.0299792346, 0.1094763577, -0.2759464979, -0.0227153674, 0.2365700305, -0.0001221718, -0.065070115, 0.3803015053, 0.1371918768, -0.2269870341, -0.0291915555, -0.5200991035, -0.0374795757, 0.1395736635, -0.3502288461, 0.2283566594, 0.2589011192, 0.1385475546, -0.005789414, -0.1646185815, 0.2796777785, 0.1743339449, 0.4169071019, -0.1179315895, 0.0851156861, 0.0722787455, 0.4628681242, -0.3308902681, 0.0254456606, 0.1116627306, 0.3031892776, 0.2586580813, 0.3366072774, -0.1592241526, -0.3194157481, 0.0250832625, 0.2142709792, -0.2843177915, -0.0781232193, 0.0946594402, -0.149554953, 0.319103986, -0.3005329669, -0.3253417313, -0.1712526679, 0.1816152185, 0.0329556949, 0.1259126216, 0.2044391185, 0.1956202388, -0.1157480925, -0.5924867392, 0.0183529314, -0.0085016713, 0.1172120273, -0.3056591153, -0.1439817101, 0.0070280829, 0.2836531103, -0.2083891928, 0.0262531843, 0.047384873, -0.2720197737, 0.0605405606, -0.0732231885, -0.0166722741, -0.0155036682, 0.1188423485, 0.0479594767, -0.1330491304, 0.061952427, -0.0283175036, 0.0416061953, -0.2844966948, 0.1649550498, 0.4856223166, -0.0716555268, -0.1864899248, 0.3215300739, 0.3532758355, 0.4134801626, -0.1369772404, -0.1804829985, 0.3006676435, 0.1830182523, 0.5300552249, -0.0874374211, 0.4510237277, -0.1081014127, -0.3315900266, -0.000249277, 0.0127328206, 0.3132003844, 0.0374832563, -0.0803609341, 0.0762054846, 0.1434403658, 0.5463798642, 0.3438688517, -0.0879276916, -0.2247524559, -0.2489572912, 0.0367455035, -0.0654135793, -0.2301190645, -0.136517778, 0.1686648428, -0.1438101083, 0.0565822683, 0.1042659581, -0.090176031, -0.1707594097, -0.1447999775, 0.050354436, 0.2149533182, -0.2269268036, 0.0025324759, 0.0520613417, -0.088469997, -0.1506866217, 0.1472952217, -0.3751039803, -0.0410818644, -0.0657971203, 0.116718851, -0.1498432904, 0.0185175538, -0.4390591979, 0.0777314231, 0.2409620732, 0.0095926104, 0.2663364708, -0.4195593894, -0.2266321927, -0.1588679105, 0.0716342479, 0.2041889578, -0.1159175485, -0.1556358188, -0.2473698407, -0.0093976501, 0.1166887805, 0.2143129855, -0.0851545781, 0.2201890051, -0.1553698778, 0.147358194, 0.313921839, -0.1477223039, -0.3504665494, -0.0881447122, 0.0493958779, 0.1589129716, -0.393587023, 0.2253857404, 0.4084374011, -0.4220540524, -0.2208252996, 0.4992125928, -0.3667494059, 0.2877869606, -0.0515155904, -0.0572104901, -0.2323422581, 0.2307857573, 0.2822723389, 0.2687315345, 0.2102842182, 0.3427781761, -0.0379122831, -0.0262793321, 0.2914377153, -0.0867511407, 0.3882531524, -0.0889562368, -0.067830503, -0.454113096, -0.1059579104, 0.0282533579, 0.425581485, -0.0085925795, -0.517481029, -0.1013183594, -0.0854581445, 0.1925174594, 0.0403112508, 0.254180491, 0.0197455753, -0.2305019945, -0.3230267465, 0.2358162701, -0.0565983467, 0.0063597681, -0.1164680496, 0.1345174611, -0.2400365174, 0.4560572207, -0.0052541429, -0.3721536994, -0.4887198508, 0.1276488751, 0.0498059392, 0.0649491176, -0.282002449, 0.3803838789, -0.0080363005, 0.2810367048, -0.1981510371, 0.2927631438, 0.2661062777, -0.3616520762, 0.0815318674, 0.2056100965, 0.3214101493, 0.1190568879, -0.254612565, 0.1512318701, -0.0619866587, 0.0886868536, -0.0484200679, 0.2666266561, -0.0770882964, -0.0554106496, -0.0165513009, -0.2249839753, -0.1481880397, -0.0495919138, -0.3853007853, -0.0742676109, -0.4956927598, 0.1608685255, 0.5034551024, -0.0643947497, 0.3723058701, 0.3330649436, -0.0202444717, 0.0904542133, 0.0312909, 0.0792244822, 0.4658776522, -0.1677256078, 0.1057599857, -0.000236143, -0.1788224429, 0.0161226001, 0.2243050039, 0.2232704014, -0.1491252333, -0.078996107, 0.3754318357, 0.1582890004, -0.1314387172, 0.1041737199, 0.2087133974, 0.1085171252, -0.4319802821, 0.2590956986, -0.4952991009, -0.0003921678, -0.244825542, 0.4045081139, 0.0609069057, -0.5520871878, -0.2235294729, 0.205740124, -0.2956366837, 0.1914073974, -0.6933474541, 0.0808956176, 0.082631655, -0.2239792496, -0.1248698309, 0.1186764389, -0.1262239814, -0.0981422961, 0.1418997347, -0.0207545757, 0.2755361497, -0.0254653599, -0.1842603087, -0.5889191031, -0.3886368573, -0.0630068332, -0.075690411, 0.3410921395, 0.365183562, 0.1305100322, 0.0006974844, -0.0128048128, 0.4348777831, -0.1086290628, -0.2362837493, 0.3483405411, -0.0918570682, -0.1570038795, -0.2010460198, 0.1228514612, 0.0980478674, -0.1359257549, 0.0976850316, -0.2406583279, 0.0018188885, 0.1143696234, 0.0268062986, -0.318138361, 0.0508753173, -0.0115880556, -0.2531525791, 0.156210646, 0.2456844151, 0.0552294813, -0.1961912662, -0.234648034, 0.0089845881, -0.0035510287, 0.3924392164, -0.4369996786, -0.211906001, -0.2768323421, 0.6420892477, 0.0023065112, -0.1714526117, 0.1048810109, 0.0654585585, 0.0926557705, -0.165676102, -0.2180749923, -0.0064849723, 0.4205626547, 0.2507822812, 0.2317138463, 0.3459699452, 0.210127458, -0.0322267339, -0.2190698832, -0.3280091882, 0.5038994551, -0.078451097, 0.1444238126, -0.2922511995, -0.391430974, 0.3558739424, -0.1367315203, -0.1644902527, -0.3814609349, -0.083474502, -0.2405689657, -0.0226104725, 0.0500969887, -0.1955518723, -0.4334535897, 0.1921088696, -0.0654786825, 0.1598985642, 0.0236768629, -0.047851868, -0.1074384004, -0.0107212709, 0.4665455818, 0.1237649247, 0.2454434335, -0.2067333609, -0.0250703245, -0.2892753184, 0.0607366785, 0.0884109139, 0.0594514757, 0.3322373033, -0.0856976509, -0.1440947503, 0.1262920797, 0.1556486338, 0.7274237275, -0.1483343989, 0.195775792, -0.0361245163, -0.0014917903, -0.2165748328, -0.0868782327, -0.1029654294, -0.0922525525, 0.1407944709, 0.450116545, -0.2474384308, 0.1840441227, 0.5047356486, 0.1798761636, -0.0940297246, 0.1123652905, -0.0673985854, -0.3316678405, 0.1183465943, -0.0192065332, 0.1487566084, -0.0237703659, 0.0060057794, -0.0873005316, -0.3123444915, 0.013444596, -0.3394703865, -0.1052955911, 0.2014959157, -0.4200636744, 0.3163332641, -0.1351912171, -0.1978119016, 0.0320822112, 0.5124359131, 0.1369955242, -0.4666186869, 0.0011037808, 0.0354865305, -0.0047222083, 0.3964680135, -0.0384865776, -0.1343960464, -0.0498611517, 0.0155119998, -0.1916587055, -0.2284306884, 0.4817675948, -0.0217692386, 0.0780846849, -0.1918257177, 0.4544467032, -0.0442098528, -0.0776279792, 0.0437020175, 0.1622878313, -0.4419854581, 0.0774130523, 0.4937763512, 0.9333990216, -0.0024699913, 0.1461246163, 0.2930726409, -0.2845028341, 0.2834184468, 0.3333913982, -0.0870693326, -0.1744444221, -0.1867193729, -0.1051383764, -0.0303857177, 0.0598942675, -0.2938219011, -0.0638770387, 0.0103151072, -0.3770984411, 0.3907189965, -0.0189871322, -0.3764875829, -0.2629474699, -0.2860756218, -0.0788192302, 0.1320095211, -0.0390595682, -0.1102278233, 0.0354409106, 0.1300735325, -0.2032932788, 0.0144732017, -0.4156180024, 0.0967199206, 0.2399387211, 0.25557971, 0.1965522915, -0.3608346581, 0.1681174785, 0.1595659107, 0.34108904, 0.0053519765, -0.0315885581, 0.452931881, 0.152715072, 0.4174836278, 0.3572153151, -0.0051486939, 0.4238231182, 0.0888735428, -0.1753108948, -0.2058074474, 0.1089816839, 0.0586939007, -0.1450487673, 0.1156688109, -0.0254396033, -0.3804958761, -0.3685141802, -0.2999643385, 0.3118784428, -0.4402896762, 0.1007712185, 0.0964814723, 0.1231472492, 0.6040995717, -0.1881407648, -0.1243166476, 0.0411367267, 0.3414463699, -0.0610602871, 0.1142574549, 0.3218381405, -0.0826962069, -0.2839652002, -0.0218136143, 0.2779640257, 0.0563345253, -0.5644205213, 0.3454326093, -0.5721961856, -0.0620684996, -0.3639295995, 0.0864317566, -0.3505715132, -0.2031119615, -0.4157331586, -0.1756341159, -0.0306510646, 0.2790122926, 0.329115808, 0.0328655615, -0.438223809, 0.3189426363, -0.0551299788, -0.3032430708, -0.2002198845, 0.1937913448, -0.2333880961, 0.4072976112, 0.0599587262, 0.1934261471, -0.0338170789, -0.3001273274, 0.1044765785, 0.0737975389, 0.1759084314, -0.0262232684, -0.3367474377, 0.1705731153, 0.136572957, -0.0736462027, 0.0015761373, -0.0651342943, -0.0402601697, -0.197309345, 0.0413293615, 0.1718618423, -0.1855417043, 0.0451018736, 0.2124294341, -0.0929839686, 0.3679856956, 0.2824163437, -0.1659743488, 0.3266651928, -0.005318685, 0.2633401453, 0.0429730155, 0.0097988527, -0.265532583, 0.1268763244, -0.2093329877, 0.3221723437, 0.6773637533, -0.2110945135, 0.1371896565, 0.1205084026, 0.3189427555, 0.1192443371, -0.3660621345, -0.3100446165, -0.0837258473, 0.1020722687, -0.0122837303, -0.1428960711, 0.0776479244, 0.0336551741, -0.1584312171, 0.100444302, -0.2144838721, 0.0951986387, -0.3762450218, -0.0272470489, 0.8769263029, -0.399258554, 0.0217278805, 0.3303746581, 0.0858706012, 0.3479355574, 0.1389481872, 0.1006341279, 0.0107019106, 0.2749049962, 0.0527244546, -0.0474690348, 0.2196831405, 0.0645809099, 0.3474527895, -0.1199454889, 0.1033014804, -0.0918914601, -0.3875272572, 0.2785761952, 0.0631351173, -0.1608000249, -0.3593702316, -0.2287411392, -0.0179915689, 0.4369044006, -0.2188993692, 0.1574021876, -0.3753629327, 0.0166224074, -0.1118796319, -0.0252777748, -0.0073685488, 0.0802041888, 0.5945531726, 0.2699858248, 0.0638611987, -0.4011995494, -0.1349122077, -0.2144838125, 0.4155800045, -0.3469121456, 0.090499416, 0.1740228087, -0.0544590391, 0.399725765, 0.3305267394, 0.3945848048, 0.150282979, 0.0923845544, 0.0986912251, -0.0011055277, -0.2139588147, 0.0288256891, 0.1427207887, 0.1049057245, 0.3256346881, 0.0278781205, 0.0656507984, 0.0096087661, 0.0390326381, 0.1112023592, 0.2772231996, -0.3701537848, 0.538890481, -0.341218859, -0.3337435722, -0.1257275045, -0.1559713781, 0.0446226299, -0.1171020046, 0.1184754521, -0.1567246169, 0.2345588505, 0.1732303351, 0.0336982161, 0.2426124662, 0.1088086143, 0.1495086551, -0.2013105601, -0.0588348769, 0.0744139329, -0.2163743228, 0.1035531461, 0.1462006718, -0.5723319054, 0.2769875824, 0.1082109287, -0.0811894909, -0.09319783, 0.1233957633, -0.0669182912, 0.3524290621, 0.4547781646, -0.1122281849, -0.4798442125, 0.1951285303, -0.021021422, -0.3671062887, -0.2276887745, 0.3512464762, 0.1471439302, 0.0467145145, 0.1348611414, -0.2886038125, 0.0031903961, -0.1773680001, 0.2143843472, 0.1750638932, 0.1911586374, -0.0897886977, -0.0690924227, 0.0375899188, -0.3868398666, -0.2782467306, 0.1589876264, -0.3699575663, 0.4721068144, 0.2323772162, 0.1134838834, -0.2245676368, 0.2714464068, -0.061962951, -0.0764188692, -0.3553388417, 0.0316689499, -0.2100833356, 0.0093282061, 0.0384366922, 0.064399533, -0.0071632308, 0.2635783255, -0.1632766128, -0.5909435749, 0.5922524333, -0.1685755402, -0.4060596526, -0.0557326116, 0.0765123516, -0.4758182764, -0.054214254, -0.502445817, -0.2975519598, 0.2621207535, -0.2652988732, -0.0814171657, 0.0974775851, 0.3282448351, 0.1177828535, -0.0033767424, 0.5410542488, -0.1355032772, 0.0517033376, 0.4239302874, 0.1216700524 ]
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
Appolgies - I've just run again and also got this output. I have also sucesfully used the `push_to_hub` method. I think this is fixed now so will close this issue.
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0
30
Loss of cast `Image` feature on certain dataset method ## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0 Appolgies - I've just run again and also got this output. I have also sucesfully used the `push_to_hub` method. I think this is fixed now so will close this issue.
[ -0.212974757, 0.0474174246, 0.038972795, 0.0052658841, 0.6166043282, 0.1256070584, 0.5568077564, 0.3356984258, -0.0696557909, 0.0527435541, -0.058810696, 0.4363155663, 0.0470174327, -0.1245157272, 0.2604289949, -0.2225403041, 0.1796381027, -0.0886645988, -0.2497292608, -0.0093806041, -0.3457139134, -0.0661686584, -0.189347893, 0.237794891, -0.1622091383, -0.0066234502, 0.1640386283, -0.0999358743, 0.1083053946, -0.0299792346, 0.1094763577, -0.2759464979, -0.0227153674, 0.2365700305, -0.0001221718, -0.065070115, 0.3803015053, 0.1371918768, -0.2269870341, -0.0291915555, -0.5200991035, -0.0374795757, 0.1395736635, -0.3502288461, 0.2283566594, 0.2589011192, 0.1385475546, -0.005789414, -0.1646185815, 0.2796777785, 0.1743339449, 0.4169071019, -0.1179315895, 0.0851156861, 0.0722787455, 0.4628681242, -0.3308902681, 0.0254456606, 0.1116627306, 0.3031892776, 0.2586580813, 0.3366072774, -0.1592241526, -0.3194157481, 0.0250832625, 0.2142709792, -0.2843177915, -0.0781232193, 0.0946594402, -0.149554953, 0.319103986, -0.3005329669, -0.3253417313, -0.1712526679, 0.1816152185, 0.0329556949, 0.1259126216, 0.2044391185, 0.1956202388, -0.1157480925, -0.5924867392, 0.0183529314, -0.0085016713, 0.1172120273, -0.3056591153, -0.1439817101, 0.0070280829, 0.2836531103, -0.2083891928, 0.0262531843, 0.047384873, -0.2720197737, 0.0605405606, -0.0732231885, -0.0166722741, -0.0155036682, 0.1188423485, 0.0479594767, -0.1330491304, 0.061952427, -0.0283175036, 0.0416061953, -0.2844966948, 0.1649550498, 0.4856223166, -0.0716555268, -0.1864899248, 0.3215300739, 0.3532758355, 0.4134801626, -0.1369772404, -0.1804829985, 0.3006676435, 0.1830182523, 0.5300552249, -0.0874374211, 0.4510237277, -0.1081014127, -0.3315900266, -0.000249277, 0.0127328206, 0.3132003844, 0.0374832563, -0.0803609341, 0.0762054846, 0.1434403658, 0.5463798642, 0.3438688517, -0.0879276916, -0.2247524559, -0.2489572912, 0.0367455035, -0.0654135793, -0.2301190645, -0.136517778, 0.1686648428, -0.1438101083, 0.0565822683, 0.1042659581, -0.090176031, -0.1707594097, -0.1447999775, 0.050354436, 0.2149533182, -0.2269268036, 0.0025324759, 0.0520613417, -0.088469997, -0.1506866217, 0.1472952217, -0.3751039803, -0.0410818644, -0.0657971203, 0.116718851, -0.1498432904, 0.0185175538, -0.4390591979, 0.0777314231, 0.2409620732, 0.0095926104, 0.2663364708, -0.4195593894, -0.2266321927, -0.1588679105, 0.0716342479, 0.2041889578, -0.1159175485, -0.1556358188, -0.2473698407, -0.0093976501, 0.1166887805, 0.2143129855, -0.0851545781, 0.2201890051, -0.1553698778, 0.147358194, 0.313921839, -0.1477223039, -0.3504665494, -0.0881447122, 0.0493958779, 0.1589129716, -0.393587023, 0.2253857404, 0.4084374011, -0.4220540524, -0.2208252996, 0.4992125928, -0.3667494059, 0.2877869606, -0.0515155904, -0.0572104901, -0.2323422581, 0.2307857573, 0.2822723389, 0.2687315345, 0.2102842182, 0.3427781761, -0.0379122831, -0.0262793321, 0.2914377153, -0.0867511407, 0.3882531524, -0.0889562368, -0.067830503, -0.454113096, -0.1059579104, 0.0282533579, 0.425581485, -0.0085925795, -0.517481029, -0.1013183594, -0.0854581445, 0.1925174594, 0.0403112508, 0.254180491, 0.0197455753, -0.2305019945, -0.3230267465, 0.2358162701, -0.0565983467, 0.0063597681, -0.1164680496, 0.1345174611, -0.2400365174, 0.4560572207, -0.0052541429, -0.3721536994, -0.4887198508, 0.1276488751, 0.0498059392, 0.0649491176, -0.282002449, 0.3803838789, -0.0080363005, 0.2810367048, -0.1981510371, 0.2927631438, 0.2661062777, -0.3616520762, 0.0815318674, 0.2056100965, 0.3214101493, 0.1190568879, -0.254612565, 0.1512318701, -0.0619866587, 0.0886868536, -0.0484200679, 0.2666266561, -0.0770882964, -0.0554106496, -0.0165513009, -0.2249839753, -0.1481880397, -0.0495919138, -0.3853007853, -0.0742676109, -0.4956927598, 0.1608685255, 0.5034551024, -0.0643947497, 0.3723058701, 0.3330649436, -0.0202444717, 0.0904542133, 0.0312909, 0.0792244822, 0.4658776522, -0.1677256078, 0.1057599857, -0.000236143, -0.1788224429, 0.0161226001, 0.2243050039, 0.2232704014, -0.1491252333, -0.078996107, 0.3754318357, 0.1582890004, -0.1314387172, 0.1041737199, 0.2087133974, 0.1085171252, -0.4319802821, 0.2590956986, -0.4952991009, -0.0003921678, -0.244825542, 0.4045081139, 0.0609069057, -0.5520871878, -0.2235294729, 0.205740124, -0.2956366837, 0.1914073974, -0.6933474541, 0.0808956176, 0.082631655, -0.2239792496, -0.1248698309, 0.1186764389, -0.1262239814, -0.0981422961, 0.1418997347, -0.0207545757, 0.2755361497, -0.0254653599, -0.1842603087, -0.5889191031, -0.3886368573, -0.0630068332, -0.075690411, 0.3410921395, 0.365183562, 0.1305100322, 0.0006974844, -0.0128048128, 0.4348777831, -0.1086290628, -0.2362837493, 0.3483405411, -0.0918570682, -0.1570038795, -0.2010460198, 0.1228514612, 0.0980478674, -0.1359257549, 0.0976850316, -0.2406583279, 0.0018188885, 0.1143696234, 0.0268062986, -0.318138361, 0.0508753173, -0.0115880556, -0.2531525791, 0.156210646, 0.2456844151, 0.0552294813, -0.1961912662, -0.234648034, 0.0089845881, -0.0035510287, 0.3924392164, -0.4369996786, -0.211906001, -0.2768323421, 0.6420892477, 0.0023065112, -0.1714526117, 0.1048810109, 0.0654585585, 0.0926557705, -0.165676102, -0.2180749923, -0.0064849723, 0.4205626547, 0.2507822812, 0.2317138463, 0.3459699452, 0.210127458, -0.0322267339, -0.2190698832, -0.3280091882, 0.5038994551, -0.078451097, 0.1444238126, -0.2922511995, -0.391430974, 0.3558739424, -0.1367315203, -0.1644902527, -0.3814609349, -0.083474502, -0.2405689657, -0.0226104725, 0.0500969887, -0.1955518723, -0.4334535897, 0.1921088696, -0.0654786825, 0.1598985642, 0.0236768629, -0.047851868, -0.1074384004, -0.0107212709, 0.4665455818, 0.1237649247, 0.2454434335, -0.2067333609, -0.0250703245, -0.2892753184, 0.0607366785, 0.0884109139, 0.0594514757, 0.3322373033, -0.0856976509, -0.1440947503, 0.1262920797, 0.1556486338, 0.7274237275, -0.1483343989, 0.195775792, -0.0361245163, -0.0014917903, -0.2165748328, -0.0868782327, -0.1029654294, -0.0922525525, 0.1407944709, 0.450116545, -0.2474384308, 0.1840441227, 0.5047356486, 0.1798761636, -0.0940297246, 0.1123652905, -0.0673985854, -0.3316678405, 0.1183465943, -0.0192065332, 0.1487566084, -0.0237703659, 0.0060057794, -0.0873005316, -0.3123444915, 0.013444596, -0.3394703865, -0.1052955911, 0.2014959157, -0.4200636744, 0.3163332641, -0.1351912171, -0.1978119016, 0.0320822112, 0.5124359131, 0.1369955242, -0.4666186869, 0.0011037808, 0.0354865305, -0.0047222083, 0.3964680135, -0.0384865776, -0.1343960464, -0.0498611517, 0.0155119998, -0.1916587055, -0.2284306884, 0.4817675948, -0.0217692386, 0.0780846849, -0.1918257177, 0.4544467032, -0.0442098528, -0.0776279792, 0.0437020175, 0.1622878313, -0.4419854581, 0.0774130523, 0.4937763512, 0.9333990216, -0.0024699913, 0.1461246163, 0.2930726409, -0.2845028341, 0.2834184468, 0.3333913982, -0.0870693326, -0.1744444221, -0.1867193729, -0.1051383764, -0.0303857177, 0.0598942675, -0.2938219011, -0.0638770387, 0.0103151072, -0.3770984411, 0.3907189965, -0.0189871322, -0.3764875829, -0.2629474699, -0.2860756218, -0.0788192302, 0.1320095211, -0.0390595682, -0.1102278233, 0.0354409106, 0.1300735325, -0.2032932788, 0.0144732017, -0.4156180024, 0.0967199206, 0.2399387211, 0.25557971, 0.1965522915, -0.3608346581, 0.1681174785, 0.1595659107, 0.34108904, 0.0053519765, -0.0315885581, 0.452931881, 0.152715072, 0.4174836278, 0.3572153151, -0.0051486939, 0.4238231182, 0.0888735428, -0.1753108948, -0.2058074474, 0.1089816839, 0.0586939007, -0.1450487673, 0.1156688109, -0.0254396033, -0.3804958761, -0.3685141802, -0.2999643385, 0.3118784428, -0.4402896762, 0.1007712185, 0.0964814723, 0.1231472492, 0.6040995717, -0.1881407648, -0.1243166476, 0.0411367267, 0.3414463699, -0.0610602871, 0.1142574549, 0.3218381405, -0.0826962069, -0.2839652002, -0.0218136143, 0.2779640257, 0.0563345253, -0.5644205213, 0.3454326093, -0.5721961856, -0.0620684996, -0.3639295995, 0.0864317566, -0.3505715132, -0.2031119615, -0.4157331586, -0.1756341159, -0.0306510646, 0.2790122926, 0.329115808, 0.0328655615, -0.438223809, 0.3189426363, -0.0551299788, -0.3032430708, -0.2002198845, 0.1937913448, -0.2333880961, 0.4072976112, 0.0599587262, 0.1934261471, -0.0338170789, -0.3001273274, 0.1044765785, 0.0737975389, 0.1759084314, -0.0262232684, -0.3367474377, 0.1705731153, 0.136572957, -0.0736462027, 0.0015761373, -0.0651342943, -0.0402601697, -0.197309345, 0.0413293615, 0.1718618423, -0.1855417043, 0.0451018736, 0.2124294341, -0.0929839686, 0.3679856956, 0.2824163437, -0.1659743488, 0.3266651928, -0.005318685, 0.2633401453, 0.0429730155, 0.0097988527, -0.265532583, 0.1268763244, -0.2093329877, 0.3221723437, 0.6773637533, -0.2110945135, 0.1371896565, 0.1205084026, 0.3189427555, 0.1192443371, -0.3660621345, -0.3100446165, -0.0837258473, 0.1020722687, -0.0122837303, -0.1428960711, 0.0776479244, 0.0336551741, -0.1584312171, 0.100444302, -0.2144838721, 0.0951986387, -0.3762450218, -0.0272470489, 0.8769263029, -0.399258554, 0.0217278805, 0.3303746581, 0.0858706012, 0.3479355574, 0.1389481872, 0.1006341279, 0.0107019106, 0.2749049962, 0.0527244546, -0.0474690348, 0.2196831405, 0.0645809099, 0.3474527895, -0.1199454889, 0.1033014804, -0.0918914601, -0.3875272572, 0.2785761952, 0.0631351173, -0.1608000249, -0.3593702316, -0.2287411392, -0.0179915689, 0.4369044006, -0.2188993692, 0.1574021876, -0.3753629327, 0.0166224074, -0.1118796319, -0.0252777748, -0.0073685488, 0.0802041888, 0.5945531726, 0.2699858248, 0.0638611987, -0.4011995494, -0.1349122077, -0.2144838125, 0.4155800045, -0.3469121456, 0.090499416, 0.1740228087, -0.0544590391, 0.399725765, 0.3305267394, 0.3945848048, 0.150282979, 0.0923845544, 0.0986912251, -0.0011055277, -0.2139588147, 0.0288256891, 0.1427207887, 0.1049057245, 0.3256346881, 0.0278781205, 0.0656507984, 0.0096087661, 0.0390326381, 0.1112023592, 0.2772231996, -0.3701537848, 0.538890481, -0.341218859, -0.3337435722, -0.1257275045, -0.1559713781, 0.0446226299, -0.1171020046, 0.1184754521, -0.1567246169, 0.2345588505, 0.1732303351, 0.0336982161, 0.2426124662, 0.1088086143, 0.1495086551, -0.2013105601, -0.0588348769, 0.0744139329, -0.2163743228, 0.1035531461, 0.1462006718, -0.5723319054, 0.2769875824, 0.1082109287, -0.0811894909, -0.09319783, 0.1233957633, -0.0669182912, 0.3524290621, 0.4547781646, -0.1122281849, -0.4798442125, 0.1951285303, -0.021021422, -0.3671062887, -0.2276887745, 0.3512464762, 0.1471439302, 0.0467145145, 0.1348611414, -0.2886038125, 0.0031903961, -0.1773680001, 0.2143843472, 0.1750638932, 0.1911586374, -0.0897886977, -0.0690924227, 0.0375899188, -0.3868398666, -0.2782467306, 0.1589876264, -0.3699575663, 0.4721068144, 0.2323772162, 0.1134838834, -0.2245676368, 0.2714464068, -0.061962951, -0.0764188692, -0.3553388417, 0.0316689499, -0.2100833356, 0.0093282061, 0.0384366922, 0.064399533, -0.0071632308, 0.2635783255, -0.1632766128, -0.5909435749, 0.5922524333, -0.1685755402, -0.4060596526, -0.0557326116, 0.0765123516, -0.4758182764, -0.054214254, -0.502445817, -0.2975519598, 0.2621207535, -0.2652988732, -0.0814171657, 0.0974775851, 0.3282448351, 0.1177828535, -0.0033767424, 0.5410542488, -0.1355032772, 0.0517033376, 0.4239302874, 0.1216700524 ]
https://github.com/huggingface/datasets/issues/3583
Add The Medical Segmentation Decathlon Dataset
Hello! I have recently been involved with a medical image segmentation project myself and was going through the `The Medical Segmentation Decathlon Dataset` as well. I haven't yet had experience adding datasets to this repository yet but would love to get started. Should I take this issue? If yes, I've got two questions - 1. There are 10 different datasets available, so are all datasets to be added in a single PR, or one at a time? 2. Since it's a competition, masks for the test-set are not available. How is that to be tackled? Sorry if it's a silly question, I have recently started exploring `datasets`.
## Adding a Dataset - **Name:** *The Medical Segmentation Decathlon Dataset* - **Description:** The underlying data set was designed to explore the axis of difficulties typically encountered when dealing with medical images, such as small data sets, unbalanced labels, multi-site data, and small objects. - **Paper:** [link to the dataset paper if available](https://arxiv.org/abs/2106.05735) - **Data:** http://medicaldecathlon.com/ - **Motivation:** Hugging Face seeks to democratize ML for society. One of the growing niches within ML is the ML + Medicine community. Key data sets will help increase the supply of HF resources for starting an initial community. (cc @osanseviero @abidlabs ) Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
107
Add The Medical Segmentation Decathlon Dataset ## Adding a Dataset - **Name:** *The Medical Segmentation Decathlon Dataset* - **Description:** The underlying data set was designed to explore the axis of difficulties typically encountered when dealing with medical images, such as small data sets, unbalanced labels, multi-site data, and small objects. - **Paper:** [link to the dataset paper if available](https://arxiv.org/abs/2106.05735) - **Data:** http://medicaldecathlon.com/ - **Motivation:** Hugging Face seeks to democratize ML for society. One of the growing niches within ML is the ML + Medicine community. Key data sets will help increase the supply of HF resources for starting an initial community. (cc @osanseviero @abidlabs ) Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Hello! I have recently been involved with a medical image segmentation project myself and was going through the `The Medical Segmentation Decathlon Dataset` as well. I haven't yet had experience adding datasets to this repository yet but would love to get started. Should I take this issue? If yes, I've got two questions - 1. There are 10 different datasets available, so are all datasets to be added in a single PR, or one at a time? 2. Since it's a competition, masks for the test-set are not available. How is that to be tackled? Sorry if it's a silly question, I have recently started exploring `datasets`.
[ 0.0942726061, -0.0452841111, -0.0943571702, -0.0122368205, -0.0802382752, 0.1419505775, 0.3158585727, 0.0644161105, -0.1904926002, 0.0251721032, 0.0979224294, -0.4280961454, -0.202884689, 0.2265471965, 0.256485343, -0.3091827035, 0.045162648, -0.2086950392, 0.3492043316, -0.2050656527, -0.0713911429, -0.1432873756, -0.0300784111, -0.1015365645, -0.0934711695, -0.3822140396, -0.1917451024, 0.3608092666, -0.2051279545, -0.7670732141, -0.1230980456, -0.0348994322, 0.1011075974, 0.6412981749, -0.0001161452, -0.1478103101, -0.0084149791, -0.0848337859, -0.3374887109, -0.0440168716, -0.0788228139, -0.4802173376, -0.151592508, -0.0135002444, -0.0864664763, -0.1339940131, 0.1306324303, -0.2742240429, 0.3100064695, 0.2736026347, 0.1447588354, 0.1436349303, -0.0868617967, -0.1887098104, 0.0056998334, 0.4717193842, -0.0701324344, 0.0078703919, 0.2044713497, -0.0749962404, 0.2874798179, 0.4421051443, 0.0210559014, 0.1982281804, 0.42663306, 0.1092183962, 0.1258950084, -0.5974551439, 0.0559473597, 0.2127866298, 0.2342436016, -0.178421244, -0.4078416526, -0.5291619301, 0.2059511393, -0.3819087148, -0.130110234, 0.3649246395, -0.0269138273, -0.0732524991, -0.4081461728, -0.1561270952, -0.1342957318, 0.1127019376, 0.0097533688, -0.1530584693, 0.0017156005, 0.1168232858, 0.343836993, -0.0424689613, -0.2114077508, -0.2677923143, 0.0705835074, 0.2192896008, -0.2205145061, -0.1264063418, -0.1796247661, 0.0921471938, 0.3817139566, 0.3685338795, -0.0869732499, -0.2771298587, 0.1120191664, -0.2007175088, 0.339209795, -0.3386568427, -0.333760798, 0.3540197909, -0.0395193659, -0.1396066248, 0.2896791101, 0.1214347184, -0.0782771483, 0.0362918079, -0.2143891454, -0.1962619126, 0.124121964, -0.033499185, -0.1667603701, 0.2140025198, -0.0487449728, -0.2284207195, -0.1407027394, 0.1946970969, -0.0392591432, -0.266225785, -0.0788707063, 0.3122853041, -0.2588798106, 0.0208313577, -0.1679123193, 0.2128987014, 0.0372800641, 0.1876364201, 0.1447374076, -0.2720502913, -0.0818253383, -0.0897458494, 0.2858554721, 0.0383555181, 0.0175928101, -0.1375603229, 0.2842827141, 0.3531301916, 0.05712891, 0.0398957282, -0.0994146317, -0.1299725324, -0.0999108851, -0.0019767724, -0.0654615387, -0.0235252231, -0.1184761524, 0.1094135493, -0.10948544, 0.1459176987, 0.0418190621, 0.5046555996, -0.0082062166, -0.0598855056, 0.0027598527, 0.0136763314, 0.0574823767, -0.1750761122, 0.3735815287, 0.6698916554, -0.3429259658, -0.0850899667, -0.0527835526, 0.3033718765, -0.0798171833, 0.2290781289, -0.1870684326, 0.0665125325, -0.05274757, 0.0818958431, 0.1496508718, -0.4279792011, -0.3854959011, -0.2629052401, -0.2760054469, 0.099245742, 0.1256671101, 0.2241741568, 0.1003896371, -0.073585771, -0.2249659747, 0.1665548384, -0.3890022933, -0.1158941165, -0.2659347057, -0.0101002138, 0.1413137615, 0.2605066597, 0.214477092, -0.1139334217, 0.039504189, 0.0999798849, 0.0199546516, -0.0936010927, -0.0576322451, -0.0817223191, 0.2147753388, 0.0767134354, -0.0420501418, 0.144161582, -0.4999025166, -0.0445439406, 0.3488592505, 0.3062635958, -0.0402032323, -0.2221164852, -0.0777104199, -0.1202465296, -0.2359609306, -0.1453108937, 0.0302217677, 0.3847322762, 0.0777861997, -0.1498199999, -0.464633584, 0.372723341, 0.2250035852, 0.3383983374, -0.3640587926, 0.3472410738, -0.1331476122, -0.1655283123, 0.0137132723, 0.2529510558, 0.1293494999, -0.297161907, 0.3385391533, 0.1878783703, -0.1229017004, 0.0474111289, 0.2846398354, 0.2968545258, 0.4130284488, -0.4315478504, 0.1326368451, -0.1704818606, 0.01247318, -0.0141127286, -0.1358787268, 0.3570282459, -0.0007858428, 0.1069532633, -0.0491906516, -0.0013378737, -0.0060410504, -0.021927027, -0.3553287387, 0.0797880664, 0.1241404191, 0.1563488692, 0.258081764, -0.2766456306, -0.4386888742, 0.0878301859, 0.0420824327, -0.0836932361, -0.0861009732, -0.0636425465, -0.0996208489, 0.1658531725, 0.1003894359, -0.1098633632, 0.3221701682, 0.2422104329, -0.0493479669, 0.1079878137, 0.0069621615, -0.1862655729, -0.2603146136, 0.3464981318, -0.0636017248, 0.0521046929, 0.1615438908, 0.1254733503, 0.0721266642, -0.0035632069, -0.0895183235, -0.0046709455, -0.2584584355, 0.2136676759, 0.2748993039, -0.3287926614, -0.1720420718, -0.0442257486, -0.3604059517, -0.0305446777, 0.094513692, -0.3865693808, -0.0190758351, 0.2023683786, 0.0058029117, 0.7166701555, -0.4136126339, 0.0057035922, 0.1122499183, 0.0330256298, -0.0004596532, 0.1111268252, 0.2861191928, 0.0590873994, 0.5017840862, -0.2868903875, 0.1349078715, -0.1492195576, -0.5609357357, 0.1848371178, -0.2129806429, 0.280783236, -0.0788661391, 0.1252018362, -0.2500431538, -0.3879734874, 0.0706626028, 0.0058464399, 0.0179174095, -0.1205905452, -0.1329439729, 0.0260291006, -0.0188809633, -0.2681467235, -0.5367610455, -0.1389305443, 0.299074471, 0.506480813, 0.0501681715, 0.3203159571, -0.1043928638, 0.0130476709, 0.0682493672, -0.0710705221, -0.2288987041, -0.1657317728, 0.0710504577, -0.3138523698, -0.3062583506, -0.0238782428, -0.253105104, 0.1546926051, 0.1259741932, -0.6310390234, -0.1804778129, 0.176665023, 0.0443377942, -0.0194703937, 0.2313763946, 0.2511267066, -0.033003632, -0.0095325457, -0.122998178, -0.1510723531, 0.1730054021, 0.2041827589, 0.1665186584, -0.1484481245, 0.1553954333, 0.0878872946, 0.8356949091, 0.5344970226, -0.0848705098, 0.1044107378, 0.0364868939, 0.3966195583, 0.1586624682, -0.3778917491, 0.434051156, 0.2490292341, 0.135536015, 0.2064275146, 0.0680630952, 0.2430151254, -0.1365923136, 0.4274829626, -0.4316900671, -0.199803412, 0.1078957394, -0.1342742741, 0.2513561845, -0.1670785993, -0.1055101082, -0.4814087749, -0.1696267277, -0.0046737525, 0.5180496573, 0.2736621499, 0.1097406745, -0.6985529065, 0.0434682406, -0.2730499506, 0.3962890208, 0.0048910803, 0.0020020043, -0.2526233494, -0.0446442626, 0.0868597776, 0.0087226378, 0.2520722747, -0.2537883818, -0.3085245192, -0.0302829258, -0.0223518908, -0.0828513876, 0.0503881201, -0.1698949933, -0.1014714018, 0.2075114697, 0.2498503774, -0.5513784885, 0.0591158681, 0.5553227663, 0.2206443399, -0.059426032, 0.0842778012, -0.1135767922, -0.5158858895, -0.3334751427, 0.1242315397, -0.0146248536, 0.1045973077, 0.0021152331, 0.0434360653, -0.0917665586, -0.1641588062, 0.2738079727, 0.1024084315, -0.0036143367, 0.4242202342, 0.2281551361, 0.7171264291, -0.125824973, 0.6485426426, 0.6952828765, -0.2118854374, -0.3386670947, 0.2556423843, 0.0142036257, 0.4119140208, 0.7285606265, 0.3436762691, -0.0300213508, 0.1351002306, 0.1861296445, -0.4641826153, 0.3196881413, 0.2433292568, -0.1228559613, -0.3449546397, -0.4501139224, 0.0504358523, 0.0865340605, -0.0919551849, -0.0488098934, 0.37915048, -0.0567279942, 0.0123583861, 0.1017666012, 1.2639918327, -0.2557224631, 0.1606243998, -0.0291425977, -0.1085489616, 0.3219896853, -0.2164678574, 0.0366195403, -0.2330728173, -0.1199535802, -0.022938896, -0.2897690833, 0.3251538873, -0.0270889122, -0.0379173905, 0.1245949864, 0.0202227738, 0.1987560093, -0.218623057, 0.6151913404, 0.227408886, -0.1430527717, -0.1309004277, 0.1394638866, -0.0054563098, 0.2924815416, -0.0681931227, -0.1799208075, -0.4850564301, -0.1397180855, -0.0051569203, -0.2007698566, -0.2801136672, -0.2549520135, -0.0139930192, -0.8026924133, 0.1580769122, 0.3040810823, 0.5550075173, 0.0059362631, -0.1210328117, 0.1914448887, -0.0034744078, -0.0546421371, -0.0875862688, -0.1835030913, 0.4003912508, -0.1074377298, -0.100714922, 0.2975562215, 0.0984991863, -0.1482455879, -0.4297290742, -0.0672609508, 0.2525998354, -0.1450239271, 0.166678071, 0.262331605, 0.0840283185, 0.0766554773, 0.0844694898, 0.1975834072, -0.1138528436, -0.0176326428, 0.3410945535, 0.1635799706, -0.2120009065, -0.1403361559, 0.1281344891, -0.2178393304, 0.3579580188, 0.119139716, -0.0561614372, -0.0980242044, -0.0278330296, 0.6629341841, -0.3559173942, -0.1689927578, -0.0460664593, -0.0981277749, 0.1051624343, 0.3278391063, 0.3369089067, -0.3732884228, 0.0515879616, 0.0455194041, -0.192564413, 0.4187501371, -0.1799375564, 0.2206798792, 0.1853202134, 0.4458943903, -0.0896582529, 0.5709952116, -0.3226507604, 0.1240869388, -0.2257766128, 0.1963615566, 0.0072058369, -0.1710386723, -0.1338945031, -0.1032769457, 0.0329560004, 0.0838708431, -0.5142356753, -0.095510982, 0.1087312102, 0.1493796259, 0.0875660852, -0.5271032453, -0.0603257045, -0.052687794, 0.0178105589, -0.0003284748, 0.175123632, -0.4702277184, 0.013722741, -0.2940812707, 0.1320521235, 0.0695373118, 0.262186259, 0.2483318895, -0.1295192987, 0.3083603382, 0.2973885238, 0.0868583173, -0.0539912097, -0.0266024824, -0.0259657651, 0.3336805105, 0.2884165049, 0.173777163, 0.1536460221, -0.2423958182, 0.1146788597, 0.0237948466, 0.3065957129, 0.0491961353, -0.3201910555, 0.3163849115, 0.2716701329, 0.1266340315, -0.220661208, -0.0110932998, 0.0813696757, 0.1509458572, 0.0828266144, 0.6263945699, 0.5743345022, 0.518789649, -0.2243429124, 0.0917573497, 0.4851585329, 0.0305297934, 0.2880632579, 0.1699669659, -0.2947664857, -0.02153554, 0.2867263854, 0.1551413983, -0.1490615457, -0.1363630146, -0.4208274782, 0.2877984345, 0.1364419013, -0.2628878057, 0.3336319625, -0.1338300407, 0.2084130496, 0.0574394949, 0.3084391952, 0.0349740498, 0.0272884034, 0.106967032, -0.2158850133, -0.4550875723, -0.0343142226, 0.2569169104, 0.1877273768, 0.2543750703, -0.0617301613, -0.2301076651, -0.0752289891, 0.0326309614, -0.0975579917, -0.6540083289, 0.3189934492, -0.0723155439, 0.1068031266, -0.0451553911, -0.1410458833, 0.1838359684, 0.1953356713, -0.0782577842, 0.3745065928, 0.2022819668, 0.0799832791, 0.3754478991, 0.297891885, 0.3103950322, -0.2145510018, -0.1655709445, 0.2268328667, 0.1447016895, -0.0264864061, 0.1364442855, 0.201220274, 0.0241717082, 0.1447948664, 0.1065706983, 0.1391189098, -0.1513997167, -0.3215121031, -0.0539372861, -0.2393395901, -0.6335413456, 0.1085263863, -0.3993576169, -0.3669168651, -0.1964219064, -0.0799664408, -0.2614317834, 0.0845214501, 0.1974462569, -0.1496128887, 0.0480504185, -0.0245654937, 0.039086353, -0.0810975879, 0.4022242725, 0.1633262187, 0.1959747672, -0.2334611565, -0.2963759601, -0.6075333357, 0.1401608437, -0.286287874, -0.2627399266, 0.0483695231, 0.1064833403, 0.2436561733, 0.2736862004, 0.0298947059, -0.3585715294, 0.0065170652, 0.0944146812, -0.2514146566, 0.019330889, 0.0724263191, 0.194941923, -0.0781480297, 0.4041747153, 0.221638158, 0.1237411648, -0.0141432537, -0.0777030587, 0.1280802339, -0.0089357523, -0.0088548809, 0.2805006504, -0.0579237789, 0.5644428134, 0.0298579093, -0.3134123981, -0.0766477361, -0.0284311138, -0.1887991726, 0.3746019006, -0.0029823463, 0.6978912354, -0.1668366045, -0.3675248921, -0.1226298362, -0.0206691697, 0.110684596, -0.0101596601, -0.1110387221, 0.1442016363, 0.0756875351, 0.0488361344, 0.1539640427, 0.229322806, 0.1360116899, 0.1132531017, -0.1140340194, -0.2412930429, 0.53313905, -0.3683203459, -0.058038, -0.0951088592, 0.055076737, 0.3073447943, -0.1027054861, -0.8472741246, -0.0866606534, 0.1650875509, -0.1677697599, -0.2063405216, 0.2309436649, -0.1284273267, -0.4738200903, -0.0111247264, 0.1364448518, -0.2437368482, -0.2820143402, 0.1286285222, -0.1006987467 ]
https://github.com/huggingface/datasets/issues/3583
Add The Medical Segmentation Decathlon Dataset
Hi! Sure, feel free to take this issue. You can self-assign the issue by commenting `#self-assign`. To answer your questions: 1. It makes the most sense to add each one as a separate config, so one dataset script with 10 configs in a single PR. 2. Just set masks in the test set to `None`. Note that the images/masks in this dataset are in NIfTI format, which our `Image` feature currently doesn't support, so I think it's best to yield the paths to the images/masks in the script and add a preprocessing section to the card where we explain how to load/process the images/masks with `nibabel` (I can help with that).
## Adding a Dataset - **Name:** *The Medical Segmentation Decathlon Dataset* - **Description:** The underlying data set was designed to explore the axis of difficulties typically encountered when dealing with medical images, such as small data sets, unbalanced labels, multi-site data, and small objects. - **Paper:** [link to the dataset paper if available](https://arxiv.org/abs/2106.05735) - **Data:** http://medicaldecathlon.com/ - **Motivation:** Hugging Face seeks to democratize ML for society. One of the growing niches within ML is the ML + Medicine community. Key data sets will help increase the supply of HF resources for starting an initial community. (cc @osanseviero @abidlabs ) Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
111
Add The Medical Segmentation Decathlon Dataset ## Adding a Dataset - **Name:** *The Medical Segmentation Decathlon Dataset* - **Description:** The underlying data set was designed to explore the axis of difficulties typically encountered when dealing with medical images, such as small data sets, unbalanced labels, multi-site data, and small objects. - **Paper:** [link to the dataset paper if available](https://arxiv.org/abs/2106.05735) - **Data:** http://medicaldecathlon.com/ - **Motivation:** Hugging Face seeks to democratize ML for society. One of the growing niches within ML is the ML + Medicine community. Key data sets will help increase the supply of HF resources for starting an initial community. (cc @osanseviero @abidlabs ) Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Hi! Sure, feel free to take this issue. You can self-assign the issue by commenting `#self-assign`. To answer your questions: 1. It makes the most sense to add each one as a separate config, so one dataset script with 10 configs in a single PR. 2. Just set masks in the test set to `None`. Note that the images/masks in this dataset are in NIfTI format, which our `Image` feature currently doesn't support, so I think it's best to yield the paths to the images/masks in the script and add a preprocessing section to the card where we explain how to load/process the images/masks with `nibabel` (I can help with that).
[ -0.0416804701, -0.2808955312, -0.0886708796, -0.0931892172, 0.0039942875, 0.0898778066, 0.5937296748, 0.3467416465, 0.2115156204, 0.2499487549, 0.0095475689, -0.1307509691, -0.2073960602, 0.416721046, 0.2649593949, -0.1821739376, -0.0593423396, 0.0177171286, -0.0619516596, 0.0080957087, -0.0619859621, -0.0537795089, -0.0030615032, -0.1445762515, -0.0732172504, -0.3286901414, -0.1275136769, 0.3754026294, -0.076961711, -0.5650200844, -0.1318927407, 0.1798969507, -0.0932097211, 0.287109822, -0.0001096796, -0.0723096803, -0.0663737357, -0.1481020451, -0.1413076818, -0.0628378242, -0.049809657, -0.2816704214, -0.0691194162, -0.1301915199, -0.2603260279, -0.2475028187, 0.0319500081, -0.1964935511, 0.4506407976, 0.1420229673, 0.2190002203, 0.2602427006, -0.459857583, -0.030911481, 0.0021772461, 0.5844781995, -0.1091322005, -0.0224481914, 0.1217593253, -0.2706952393, 0.0222312417, 0.639574945, -0.0325267501, -0.0019522774, 0.4639189243, 0.2181219608, 0.1870061606, -0.6023839712, -0.0803778768, 0.2695086896, -0.2177196443, -0.26408723, -0.279073894, -0.4205765128, 0.1000538021, -0.2172894478, -0.0527026877, 0.2446800023, -0.111610949, -0.0154195428, -0.4999106526, 0.1070370376, -0.1528998017, -0.0794552565, 0.1330477148, -0.1302417368, 0.1425838768, 0.0294546224, 0.3343712389, -0.1861781031, -0.3729123473, -0.1629237235, 0.0230474547, 0.1523551643, -0.1720885783, -0.2654801905, -0.1640522033, -0.0532293394, 0.3697678447, 0.4832856953, 0.0638968199, -0.0363189504, 0.1824023575, -0.1211503446, -0.0438339077, -0.0496313609, -0.0577210002, 0.1234181821, 0.0168577656, 0.2397847772, 0.1633354425, 0.0896857902, 0.121790871, 0.0572422482, -0.3308766186, -0.225577876, -0.0811454803, -0.0002390669, -0.1609500647, 0.1005167514, 0.1293536127, -0.0600305758, -0.0789091066, 0.3934301734, 0.1934275478, -0.2706230581, 0.1464312822, 0.0803372115, -0.2459012121, 0.0893395841, -0.1670994461, 0.262586832, -0.1636091173, 0.3475331366, 0.2404975891, -0.102478154, 0.2453823835, 0.0274735447, 0.3050079644, 0.1664650887, 0.1687847823, -0.1899651438, 0.5680442452, 0.3909558654, 0.0693669692, -0.1719572246, 0.0636893362, -0.1183826551, -0.2308973968, -0.0526298136, 0.0715566203, 0.2025755197, 0.047990527, 0.1618742496, -0.1220276877, 0.21598804, 0.197296679, 0.4100221395, -0.20480223, -0.2783721685, 0.0180774406, -0.1484361589, -0.0630649552, -0.1960713565, 0.4046359956, 0.7366454005, -0.1881808192, -0.3006500304, 0.1651220769, 0.1611487865, -0.1473585516, 0.1625331938, -0.0792374685, -0.1011229306, -0.2083940208, 0.2506603301, -0.0208888203, -0.3614988923, -0.1380156279, -0.1473023146, -0.1980969906, 0.247764796, 0.1343170106, 0.2642163336, 0.0702364668, -0.1379286796, -0.3474317491, 0.2342159301, -0.3819923401, -0.0169452187, -0.1304655671, -0.2278579175, 0.0961099714, 0.3411927819, 0.0058607263, -0.1600929797, 0.0409067981, -0.1948662698, 0.1363842934, -0.2909427881, 0.0167648345, -0.1834191084, 0.094513163, -0.077623494, 0.0195888635, 0.1464340687, -0.4670471847, 0.0032581815, 0.0051510301, 0.3907477558, -0.1964421719, -0.2885175645, 0.0712868348, -0.2742973268, -0.1524677128, -0.3264071941, 0.0866259933, 0.3682673872, -0.0044151028, -0.2439432591, -0.3678133488, 0.3020978272, 0.2812298536, 0.4132825732, -0.3112314641, 0.1932674944, -0.0672898516, -0.1260510236, 0.0285760798, 0.1363995224, 0.037230093, -0.2934661508, 0.3263397515, 0.2597673535, 0.096722208, -0.024532944, 0.2332856357, 0.2276162058, 0.3397419453, -0.3128356636, 0.2440294921, -0.0033103104, -0.0279783886, -0.0013681852, -0.3182864189, 0.4781301022, -0.1421161741, 0.1490642875, 0.0055697071, 0.0834045485, 0.0616831183, -0.1932917535, -0.3222840726, -0.2899093032, 0.1068332791, 0.2562482357, 0.1443832666, -0.1298871338, -0.3940069079, 0.2061268538, -0.0347846523, 0.0050317291, -0.1869215965, -0.0628740042, -0.0344698243, 0.2116027325, 0.1730649769, 0.0503277816, 0.2344245911, 0.3359960318, -0.2914760709, 0.1896429062, -0.1102051213, -0.2017318159, -0.0119464071, 0.1649126709, 0.1288300753, 0.0313240588, 0.0574740432, 0.0291678607, -0.0659531802, -0.3705380857, -0.1598197222, -0.2319270819, -0.2561617792, 0.1771766841, 0.2117700875, -0.5314976573, -0.1371276975, 0.0214565061, -0.3608751297, 0.1332492232, 0.1767237186, -0.4479261637, -0.2611071169, 0.3589027822, -0.0130379731, 0.7541032434, -0.3076578975, -0.1590917408, -0.0614667498, 0.102290079, 0.0414565392, 0.1183600277, 0.2024319172, 0.0564918108, 0.5010100007, -0.2838723958, -0.0768435746, 0.0558877215, -0.4825158417, 0.2617583871, -0.2779965997, 0.3687841892, 0.0168920495, 0.1516843736, -0.0750754848, -0.3401266336, 0.1577030122, -0.0175422039, -0.020264104, -0.0882826224, -0.0109101757, 0.1026631966, -0.2867507935, -0.2638289928, -0.2939737141, -0.1479656845, 0.2171964943, 0.4306927621, 0.2903031111, 0.5444647074, 0.0694082826, -0.220362246, -0.2823674083, 0.0057778428, -0.0489184372, -0.2748467326, 0.0509402156, -0.3986029625, -0.2244811058, -0.1483399868, -0.0381614044, 0.1743812114, 0.3041327894, -0.5840756893, -0.3773756921, 0.0433269851, 0.0417986624, -0.0177980158, 0.0933832824, 0.2026422471, 0.2028745711, -0.1489674896, -0.1933598369, -0.1448377371, 0.4020904005, -0.0905532092, -0.0050729732, -0.0846184567, 0.0886426419, -0.011292452, 0.3520183265, 0.5585624576, -0.0413526222, 0.0970619172, -0.0215928685, 0.3215948641, 0.1582596153, -0.1642062813, 0.4019833207, 0.3156289458, 0.1629470289, 0.320276916, -0.030146895, 0.198349461, -0.1916239113, 0.2138887346, -0.3638010621, -0.3292133808, 0.3352054954, 0.0192969367, 0.1511718035, -0.2411383837, -0.0218358953, -0.303673774, -0.0313645005, 0.1325899065, 0.3441505432, 0.1787147224, 0.0162442457, -0.5919259191, -0.0054708757, -0.3074398339, 0.2027918845, -0.0370541029, -0.0506323427, -0.2172251046, -0.1940012127, -0.0098083103, 0.0284142625, 0.3430048525, -0.1091766879, -0.0767820999, 0.1018326953, -0.2141197026, -0.2743326426, 0.0776920244, -0.1506534964, -0.3489323854, 0.1704761982, 0.3784188926, -0.3813667893, -0.2342063785, 0.4187221229, 0.2633170485, -0.0493785515, 0.007299324, 0.0895228237, -0.3159222901, -0.2592650652, -0.0258335955, -0.2756569088, 0.0056651104, -0.0736538842, -0.1117751971, 0.1316668689, -0.2150901854, 0.3077692688, 0.468003571, 0.1477522105, 0.110562861, 0.124588728, 0.6124492288, -0.0379023105, 0.5235818028, 0.5430983305, -0.1523405015, -0.1275430322, -0.0039374107, 0.0146715511, 0.1522109509, 0.5434623957, 0.3023490012, -0.033219628, -0.0911181271, 0.3313542008, -0.4792684019, 0.2570219934, 0.0444934741, -0.2563422024, -0.025318969, -0.3536720276, 0.0891101584, 0.0320184082, -0.0213231202, 0.1101950407, 0.2748008668, -0.28167364, 0.414013803, 0.3562343121, 1.1164224148, -0.1423006356, 0.3405138552, -0.0386578366, 0.0060360734, 0.4174386561, -0.1331782788, 0.1092929766, -0.2996124327, -0.2014367133, 0.039898064, -0.2167068869, 0.2046189904, -0.0779480934, -0.1769126505, 0.0556339175, -0.0404315963, 0.1092008278, -0.2788442969, 0.3224592209, -0.0319334418, -0.4388343096, -0.1315905601, 0.1638367474, 0.0189520288, 0.0386002585, 0.0245396476, -0.1001701206, -0.4555516541, -0.1086146757, 0.2540608346, 0.088795051, -0.4055149257, -0.2048437446, -0.2068367153, -0.4974476695, -0.0029767766, 0.304628253, 0.1860523671, -0.0160793476, -0.125164777, 0.2261951715, 0.0564214475, 0.0666601136, -0.1977656037, -0.1184920222, 0.5063042045, -0.05793586, -0.1034577936, 0.0568597689, 0.1484394968, 0.1621674597, -0.2075326145, -0.1589206457, 0.0643477291, -0.1918527037, 0.1129228473, -0.0032012018, 0.0501441993, -0.0594622083, 0.1452361941, 0.0504898615, -0.072927773, 0.3749246299, 0.260102123, -0.003512484, -0.1545134485, -0.2459669858, -0.0490270518, -0.0931113958, 0.264515847, 0.1164695844, -0.0295295343, -0.3243662715, 0.0308098104, 0.5519490838, -0.4232330918, 0.0417707041, -0.0034290242, -0.2660728991, 0.0108062997, 0.3863739669, 0.2156259567, -0.1966688335, 0.1108846739, -0.0564500764, -0.3664840162, 0.4787193239, -0.1675195545, 0.4448792338, 0.165550977, 0.4279667139, -0.1375981122, 0.4273873568, -0.4347933531, 0.032473065, -0.2357873172, 0.1647656113, -0.0013292443, 0.0724254772, 0.1697935611, -0.0682995096, 0.1324573159, 0.0310121998, -0.4704849422, -0.1865216941, -0.12311849, 0.1121712476, -0.0843727887, -0.5805614591, 0.0457091555, 0.0702931359, -0.0460780859, -0.2116959393, 0.4259079695, -0.2793422043, -0.0639042556, -0.1461620778, -0.0484453663, -0.1458669305, 0.1530551165, 0.0808693469, -0.1080216244, 0.092929095, 0.3474681973, -0.0314275585, -0.3896794319, -0.1949742287, 0.335400492, 0.4360843003, 0.1847350001, 0.0724537596, 0.0820987001, 0.0451510474, -0.113849476, -0.048613295, 0.4195538461, 0.1401269734, -0.3448426127, 0.2807821035, 0.2162495852, 0.2468888462, -0.263710767, -0.0090950765, 0.0152024198, 0.0512702055, 0.2489213645, 0.6441305876, 0.3599300981, 0.2541788816, -0.2816644907, 0.0496280268, 0.3105325699, -0.091809921, 0.1685670614, 0.2266460061, -0.2519643307, -0.0455842279, 0.2317037582, 0.1166852266, 0.1682489514, 0.0231217649, -0.3674568534, 0.4913481474, 0.098958984, -0.0955937356, 0.1249322742, -0.1414232254, 0.1623211801, 0.0504940525, 0.1557018012, 0.1354911029, 0.0601679385, 0.0319032185, -0.1314339042, -0.4311801791, 0.1238450408, 0.3081606627, 0.1389550865, 0.1487970948, -0.352624625, -0.1781574935, -0.1392341405, 0.0422278792, 0.0623812973, -0.4831193089, 0.3866668344, 0.0949366316, -0.0293550156, 0.1551592052, -0.3709723651, 0.2920197546, 0.27412799, -0.1894512624, 0.1902554184, 0.4627866447, 0.0318227932, 0.3953472078, 0.3038362861, 0.41447106, -0.1305584013, -0.0216981601, 0.0856376886, 0.0318853222, -0.0640670806, -0.039334625, 0.1379985362, 0.0877468213, 0.2546781003, 0.2259450853, 0.1757126749, -0.1741916537, -0.5769337416, 0.0280930661, -0.1907693446, -0.2346939296, 0.0552908778, -0.0142303808, -0.2903718948, -0.1783234626, -0.2161528617, -0.3659076989, 0.0966532528, 0.2159608155, -0.0347300917, 0.1303404272, 0.1192664206, 0.105713807, 0.026485648, 0.3621035814, -0.0870455578, 0.0390361026, -0.2987156808, -0.3716392815, -0.366435349, -0.0907288194, -0.0617134012, -0.3479026556, 0.0188512523, 0.1457531601, 0.2458917052, -0.1106033996, 0.0447398312, -0.1980476826, 0.458283782, 0.0228623673, -0.3304865956, 0.1639023572, -0.1284544468, 0.2757543325, 0.0352652855, 0.1658335924, 0.1896700561, 0.020280635, 0.0750246793, 0.0001627407, 0.1694251001, 0.0313783474, -0.1458721161, 0.4785738885, -0.0565635785, 0.524571538, -0.1999831945, -0.4178901613, -0.0673813596, 0.1181254461, -0.2786495984, 0.0939527452, 0.264656812, 0.7237294316, -0.0444500856, -0.4246097505, -0.1420628428, 0.0966132656, -0.0271143392, 0.0729311258, -0.0728555098, 0.2027115375, 0.2038241476, -0.006983147, 0.0882897153, 0.4205934405, -0.0187036283, 0.0909207165, -0.176716432, -0.3139450848, 0.6752058268, -0.1229621321, -0.1079516187, -0.0631846115, 0.1570911705, -0.1352819055, 0.0900035053, -0.8087933064, 0.049925331, -0.0048144143, 0.0521442294, -0.3098830581, 0.33455953, -0.1395110786, -0.3360218108, 0.0033693123, 0.1203325465, 0.0800076723, -0.150945276, -0.2389488071, -0.1247953922 ]
https://github.com/huggingface/datasets/issues/3583
Add The Medical Segmentation Decathlon Dataset
> Note that the images/masks in this dataset are in NIfTI format, which our `Image` feature currently doesn't support, so I think it's best to yield the paths to the images/masks in the script and add a preprocessing section to the card where we explain how to load/process the images/masks with `nibabel` (I can help with that). Gotcha, thanks. Will start working on the issue and let you know in case of any doubt.
## Adding a Dataset - **Name:** *The Medical Segmentation Decathlon Dataset* - **Description:** The underlying data set was designed to explore the axis of difficulties typically encountered when dealing with medical images, such as small data sets, unbalanced labels, multi-site data, and small objects. - **Paper:** [link to the dataset paper if available](https://arxiv.org/abs/2106.05735) - **Data:** http://medicaldecathlon.com/ - **Motivation:** Hugging Face seeks to democratize ML for society. One of the growing niches within ML is the ML + Medicine community. Key data sets will help increase the supply of HF resources for starting an initial community. (cc @osanseviero @abidlabs ) Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
74
Add The Medical Segmentation Decathlon Dataset ## Adding a Dataset - **Name:** *The Medical Segmentation Decathlon Dataset* - **Description:** The underlying data set was designed to explore the axis of difficulties typically encountered when dealing with medical images, such as small data sets, unbalanced labels, multi-site data, and small objects. - **Paper:** [link to the dataset paper if available](https://arxiv.org/abs/2106.05735) - **Data:** http://medicaldecathlon.com/ - **Motivation:** Hugging Face seeks to democratize ML for society. One of the growing niches within ML is the ML + Medicine community. Key data sets will help increase the supply of HF resources for starting an initial community. (cc @osanseviero @abidlabs ) Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). > Note that the images/masks in this dataset are in NIfTI format, which our `Image` feature currently doesn't support, so I think it's best to yield the paths to the images/masks in the script and add a preprocessing section to the card where we explain how to load/process the images/masks with `nibabel` (I can help with that). Gotcha, thanks. Will start working on the issue and let you know in case of any doubt.
[ -0.1030204222, -0.3495714366, -0.0923557281, -0.0719333515, 0.0702075511, 0.0257596634, 0.4989385605, 0.398943454, 0.1786017269, 0.288439244, 0.121741049, -0.0976137295, -0.0700705349, 0.4220615923, 0.2009046078, -0.2264316082, -0.0912129357, 0.1593818814, -0.0431683697, -0.0614767149, -0.0576389357, 0.1652672291, -0.0458688885, -0.1220145896, -0.1154583171, -0.0751407146, -0.0138169387, 0.350815326, -0.1860343218, -0.3985086679, -0.1568482369, -0.0365776755, -0.1095997915, 0.3065207303, -0.0001017393, -0.1228338927, 0.0520879515, -0.1671818197, -0.2173713446, -0.1566443741, 0.1018693596, -0.3571836352, -0.1813536584, -0.1000310704, -0.4260005057, -0.1772130579, 0.1006779447, -0.0702311173, 0.4301290214, 0.1017093956, 0.3303816915, 0.1865784079, -0.1618564427, -0.1682281196, 0.0155090839, 0.5975185037, -0.134662807, 0.0038826852, 0.0789616555, -0.2860840857, 0.02799353, 0.6627331376, -0.0137069356, -0.0004613505, 0.3518674672, 0.1845763028, 0.1710547209, -0.3687855303, 0.1277835965, 0.20651941, -0.2927893102, -0.2038034648, -0.2195630223, -0.3465675414, 0.0120051326, -0.2399955243, -0.0746805817, 0.2082210928, -0.1716308594, 0.0506635532, -0.3471398056, 0.1454147696, -0.1587759852, 0.0378063396, 0.046673134, -0.1031342745, -0.0391312614, -0.0072926413, 0.3734034002, -0.1582303345, -0.4397560954, 0.2064626664, -0.019908851, 0.1089146584, -0.1775827706, -0.1042391658, -0.0578129999, 0.0433042012, 0.3505150378, 0.3669309616, 0.096327953, -0.0388356335, 0.1680966616, 0.1169864684, -0.0710839704, -0.1212876588, -0.1142616794, 0.0235788655, -0.0780528337, 0.3236265182, 0.0309009701, -0.0408687592, -0.0147349844, 0.0200574789, -0.2039209008, -0.1326319873, -0.1654776335, 0.0096093006, -0.2538628578, 0.1039360911, 0.1575082093, 0.1713990718, -0.1493285298, 0.5126612782, 0.0655447766, -0.1321481168, 0.2309192717, 0.1385968029, -0.2645122409, 0.0066371532, -0.1842860132, 0.2103706449, -0.2848118246, 0.1985583454, 0.1731203347, -0.0511561558, 0.2402775884, -0.1737828702, 0.2975144088, 0.1361083537, 0.0312639065, -0.0866943151, 0.5264101624, 0.3225569129, 0.1600690484, -0.2040837705, 0.1604797393, -0.0623489395, -0.0688923821, -0.0894804969, -0.0593637675, 0.225361824, -0.281190455, 0.2381013483, 0.0801579729, 0.1716099381, 0.227106899, 0.2467446923, -0.0949016809, -0.3116089106, 0.0225814544, -0.0911159217, -0.1362772584, -0.1589854509, 0.3263536096, 0.4502592981, -0.0986897126, -0.2812121212, 0.0177936144, 0.2184371054, -0.0353615321, 0.2320459783, -0.0064207376, -0.173082456, -0.1996398717, 0.2454140633, -0.1474395394, -0.2844965756, -0.2687808275, -0.1102242395, -0.298424542, 0.1337788403, 0.0797774568, 0.3462885618, 0.1245168671, 0.0003101639, -0.2823776305, 0.3074982464, -0.2769681811, 0.0840137675, -0.1103842109, -0.2314398438, 0.0025398666, 0.3742999434, 0.0878807977, -0.1769257635, 0.1187491715, -0.0335077345, 0.2108138651, -0.1848241836, 0.0308408905, -0.0654139146, 0.1507299393, -0.0261889528, 0.066689387, 0.0022617294, -0.2938589156, -0.1004929319, -0.0285101309, 0.4164272249, -0.2574874461, -0.2432591021, -0.1509407312, -0.1516591609, -0.1075236052, -0.2267515212, 0.2221158445, 0.2534936368, -0.0279905517, -0.0795487985, -0.1298576742, 0.27110973, 0.2940110564, 0.2413499057, -0.2526029944, 0.2824275196, -0.1938878745, -0.2229465246, 0.0674192384, 0.1713177264, 0.0972197726, -0.0894351602, 0.2696672976, 0.2727975547, 0.0370186754, 0.0491335317, 0.1355922222, 0.2062861323, 0.180479899, -0.3791789114, 0.115216434, 0.1636549979, 0.0125958147, -0.0068358942, -0.2400850505, 0.4280414879, -0.0083072586, 0.0280844551, 0.1207098588, 0.158511728, 0.0811809227, -0.2246308327, -0.1912696511, -0.3248206973, 0.1022738665, 0.0940313116, 0.0015319186, -0.3088212907, -0.3144612014, 0.1649957746, 0.2901458144, 0.1850463003, 0.0723987147, 0.0586169697, -0.2483712286, 0.1427527368, 0.0880658478, -0.0756012797, -0.0677284449, 0.3389710784, -0.3149440587, 0.1856881082, -0.0018353857, -0.1616713405, 0.035671588, -0.0047954381, 0.1220819056, 0.0652423203, 0.1664775163, -0.0203938093, -0.2233638763, -0.1988186985, -0.3101237118, -0.1766799837, -0.156324625, 0.2144066989, 0.1364801675, -0.4693805277, -0.0305715464, -0.0748900101, -0.2373307794, 0.012379677, 0.133780539, -0.1066102013, -0.2218173593, 0.2172344923, -0.0423558913, 0.5310471654, -0.0479445942, -0.1432227194, -0.1638324708, 0.0106237121, 0.0400116928, 0.1945753843, -0.006963565, 0.0347915441, 0.4289873242, -0.2992619872, 0.1743642539, -0.0445253402, -0.5828441978, 0.221733138, -0.2203932256, 0.2422935963, 0.0740116462, 0.2284938991, -0.1184985787, -0.2228925526, 0.2280270755, -0.3005105555, -0.1120791659, 0.0363688767, -0.0790257379, 0.115151383, -0.3386138976, -0.0625390112, -0.1808622777, -0.3114028573, 0.2943761051, 0.475209862, 0.2629403174, 0.4756629765, 0.2121474147, -0.1434405893, -0.2634913027, 0.0103328926, -0.2075831592, -0.237375766, 0.1086452082, -0.455219835, -0.3003668189, -0.2068037391, -0.0596460328, 0.2468780577, 0.1330823153, -0.4675869644, -0.2864730358, 0.0841127262, -0.0240525194, -0.0049017142, 0.01345722, 0.2011289746, 0.0760356188, -0.2163459361, -0.2062519789, -0.1512936801, 0.213485077, -0.1237591356, 0.0138025535, -0.1844756454, 0.1674083918, 0.1657562107, 0.2354916781, 0.1852699965, -0.1573653668, 0.328903228, -0.1415563673, 0.4081220627, -0.0237261448, -0.2871920764, 0.3021249771, 0.236246869, 0.131117031, 0.2914401889, 0.00615869, 0.1832543015, -0.1187016591, 0.1604747772, -0.4613189399, -0.2261170596, 0.2341955602, 0.2052082568, 0.076884605, -0.166538462, 0.079868637, -0.2973893285, -0.1235714629, 0.2220355123, 0.2615989149, 0.2579092681, 0.0222647246, -0.3904878497, -0.0386947952, -0.2217738777, 0.2039209753, -0.0075397473, -0.104430303, -0.3233659863, -0.2783028781, -0.0394413099, -0.0959082916, 0.3107196987, 0.0549858697, 0.0132394172, 0.0585943274, -0.269826144, -0.2704228163, 0.167187199, -0.0559625961, -0.3249554932, 0.1770547181, 0.4536759853, -0.347746551, -0.0160744395, 0.3576204479, 0.0601281933, -0.0716725588, 0.0525906123, -0.106127575, -0.314842999, -0.3611364961, -0.1278025806, -0.1112176329, 0.1429485977, 0.0869354159, -0.1405754536, 0.0194267612, -0.3332313001, 0.120048739, 0.4062671065, 0.2263837457, 0.0820621997, 0.0826208815, 0.5558399558, 0.0853943378, 0.3567243814, 0.5406894088, -0.003051911, -0.214701727, 0.0326501988, -0.0021097788, 0.0569176935, 0.3953354359, 0.2401108891, 0.0908091888, 0.0358371772, 0.3207091391, -0.4909304082, 0.2618124187, 0.0745978355, -0.2150379866, 0.000263237, -0.2612568736, 0.1599041671, -0.0218059104, 0.0713572428, -0.0087406598, 0.2664209604, -0.1608041674, 0.3252051771, 0.3435211778, 1.0857890844, -0.1433217525, 0.2719253898, 0.0348537751, -0.0279255453, 0.2938624322, -0.0576774627, 0.1167767048, -0.4998082519, -0.2246519774, 0.0437283888, -0.1303524375, 0.0875719339, -0.0659587756, -0.1321769506, -0.079161495, -0.1002151147, 0.0799003094, -0.2538928986, 0.2516392767, -0.0304410737, -0.4468654096, -0.1297416687, 0.2758073807, 0.104425557, 0.1558768153, 0.006753617, -0.193099618, -0.3877958953, -0.1081518233, 0.1083639562, 0.176231578, -0.3509815037, -0.1733378023, -0.0900888219, -0.3841460645, -0.1162336394, 0.0831892416, 0.238156572, 0.1023300886, -0.277903527, 0.3152710497, 0.0126076266, -0.103131406, -0.1099748686, -0.0200870149, 0.4201291203, -0.1592657715, 0.0038919554, 0.0368064418, 0.2269614637, -0.0263320636, -0.2939203382, -0.0354813784, 0.0429249592, -0.0333800204, -0.0153507069, -0.1663061082, -0.0675235838, -0.2294492871, 0.246229127, 0.0505602509, -0.0074611413, 0.0035234569, 0.4295552969, 0.0142362695, -0.0633767247, 0.0662178323, -0.0491916351, -0.1058225855, 0.2176556289, 0.1902144849, -0.075916782, -0.4090650976, -0.1988284886, 0.5801712275, -0.4467912614, 0.0137885399, 0.0429187827, -0.3269991577, 0.1599978805, 0.341111213, 0.1933576167, -0.2751266658, 0.0054052207, -0.1845237464, -0.3476230502, 0.4038812816, -0.2095583677, 0.286364466, 0.2554700971, 0.4939795136, -0.1284580678, 0.2362689674, -0.5140981078, 0.0578736775, -0.1348397583, 0.1350571215, 0.0232465081, -0.1021001935, 0.2182465643, 0.0401424505, 0.2461583018, 0.2903018296, -0.4053251743, -0.2732503116, -0.1866959631, 0.057098493, -0.009837172, -0.3474198282, 0.0673892796, 0.0738035813, -0.1805768609, -0.1869448274, 0.2634482086, -0.2086241692, -0.0274842344, -0.1803832948, -0.0915701985, -0.0155551638, 0.3573400974, -0.0683630854, -0.1155997738, 0.2259650975, 0.1268979013, -0.1943328977, -0.2808265388, -0.0528857298, 0.2272838056, 0.4024212658, 0.3152621984, 0.1089282483, 0.3774238825, -0.0125352917, -0.0764504001, -0.0642715916, 0.5330241323, -0.1757055819, -0.3318292499, 0.2134760916, 0.2567718625, 0.3682329655, -0.397788018, 0.0515989698, -0.0870374218, -0.0802684277, 0.2848565876, 0.4486230314, 0.2620121241, 0.271658361, -0.3552745283, 0.0879457518, 0.3540255725, -0.1189348251, -0.0128335692, 0.2106256336, -0.1150480509, 0.023468446, 0.1783629805, 0.044296924, 0.1940803528, 0.2404578179, -0.3156037927, 0.4381967485, 0.1467003822, -0.0865267739, 0.1613664031, 0.0834800974, -0.00605423, 0.0809227526, 0.178533107, 0.31226331, -0.0197183285, 0.1104946584, -0.073678486, -0.245522663, -0.055581063, 0.2286075801, 0.0212397687, 0.1339352876, -0.2308391929, -0.1427662522, -0.2033801973, -0.1573000848, 0.1538593024, -0.2760571241, 0.3545109332, -0.0437268503, 0.001398612, 0.1079669669, -0.5725805163, 0.3296944201, 0.3441004753, -0.2392128259, 0.0943945423, 0.3728799522, 0.0276217181, 0.3236115575, 0.2629915476, 0.4852798283, 0.0216403641, -0.0386705697, -0.060169097, -0.0900691971, -0.1720626652, -0.1789758801, 0.1562433094, 0.1776105762, 0.2931051254, 0.2268709242, 0.2974832356, -0.3373870254, -0.4386961162, 0.1150222495, -0.0477815308, -0.0975286439, 0.014092111, -0.2116901726, -0.1962174028, -0.4134916663, -0.2731501162, -0.3919912875, 0.0161315855, 0.0437646359, -0.0789984539, 0.1503736079, -0.071355626, 0.153703779, 0.076113455, 0.4201427102, 0.0138531784, 0.0943680108, -0.16771245, -0.3822953403, -0.3773698509, 0.1477706134, -0.1021690741, -0.3580611348, -0.0299240872, 0.1675476432, 0.2245377451, -0.020252049, 0.1063040569, -0.1185138524, 0.4460310042, -0.0337433368, -0.2670461535, 0.2329458743, -0.0655125007, 0.1093093678, 0.0964839533, -0.0339059755, 0.1202127188, -0.055635117, 0.2595534623, -0.1220809892, 0.1808523089, -0.2006915659, -0.1314350367, 0.5362374783, -0.0896483585, 0.2952432632, -0.3651078939, -0.4590833783, -0.1141289026, -0.023711035, -0.2617068291, 0.1705142558, 0.2906982899, 0.7654339671, 0.1377810389, -0.3732150197, -0.1789032817, 0.0881742612, 0.010429034, 0.0059872279, -0.1765769869, 0.3503581583, 0.119028531, -0.0909053236, -0.1301484704, 0.3896059096, 0.0103335259, -0.0338533297, -0.1638530046, -0.4786457717, 0.5874362588, -0.2364690602, -0.2234821022, 0.0800449476, 0.0911397114, -0.1267976761, -0.0087420586, -0.6879373789, 0.1705164164, -0.0652512386, 0.2629934847, -0.1593273133, 0.2616330385, -0.1680791378, -0.2256424874, 0.0300894827, 0.0954475477, 0.209415853, -0.1681518257, -0.0327407606, -0.1460046917 ]
https://github.com/huggingface/datasets/issues/3583
Add The Medical Segmentation Decathlon Dataset
This is great! There is a first model on the HUb that uses this dataset! https://huggingface.co/MONAI/example_spleen_segmentation
## Adding a Dataset - **Name:** *The Medical Segmentation Decathlon Dataset* - **Description:** The underlying data set was designed to explore the axis of difficulties typically encountered when dealing with medical images, such as small data sets, unbalanced labels, multi-site data, and small objects. - **Paper:** [link to the dataset paper if available](https://arxiv.org/abs/2106.05735) - **Data:** http://medicaldecathlon.com/ - **Motivation:** Hugging Face seeks to democratize ML for society. One of the growing niches within ML is the ML + Medicine community. Key data sets will help increase the supply of HF resources for starting an initial community. (cc @osanseviero @abidlabs ) Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
16
Add The Medical Segmentation Decathlon Dataset ## Adding a Dataset - **Name:** *The Medical Segmentation Decathlon Dataset* - **Description:** The underlying data set was designed to explore the axis of difficulties typically encountered when dealing with medical images, such as small data sets, unbalanced labels, multi-site data, and small objects. - **Paper:** [link to the dataset paper if available](https://arxiv.org/abs/2106.05735) - **Data:** http://medicaldecathlon.com/ - **Motivation:** Hugging Face seeks to democratize ML for society. One of the growing niches within ML is the ML + Medicine community. Key data sets will help increase the supply of HF resources for starting an initial community. (cc @osanseviero @abidlabs ) Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). This is great! There is a first model on the HUb that uses this dataset! https://huggingface.co/MONAI/example_spleen_segmentation
[ -0.0270238314, -0.3896330893, -0.1645667255, -0.2371069044, 0.0072027589, 0.0695009977, 0.4940696955, 0.3347842097, 0.0314945988, 0.3018218577, -0.0489493683, -0.1498311609, -0.1921692789, 0.4657769203, 0.2673726678, -0.333525002, -0.0200640932, 0.1890469044, 0.1262889653, -0.1176437438, 0.1101023108, 0.0684563816, -0.0155896209, -0.0797495693, -0.2350756973, -0.0479804836, -0.045671396, 0.3668198884, -0.1265967637, -0.4435363114, -0.2004516274, -0.071055159, 0.0146814007, 0.390424341, -0.0001022133, -0.1528245807, -0.097772561, -0.1257195026, -0.2877316475, -0.030126147, 0.1588528454, -0.4097623527, -0.0699478388, -0.1407024413, -0.2770799696, -0.0044871406, 0.0376845002, 0.1013038009, 0.3316261768, 0.0976644382, 0.3041472137, 0.2825217545, -0.0126219606, -0.262326926, 0.0228024591, 0.5798239112, -0.2012302876, 0.1847321838, 0.2622633278, -0.0992611423, -0.152467221, 0.5862278342, 0.0421998203, 0.1594697535, 0.2711849511, 0.0433811322, 0.2923085392, -0.4727607071, -0.0124950418, 0.4039777815, -0.1382981092, -0.1511773318, -0.2232172489, -0.4442080855, 0.1072372422, -0.2762312591, -0.2574436367, 0.2898867726, -0.0514661968, 0.1522119939, -0.2577718794, 0.0036274905, -0.2377884537, -0.0909331515, -0.0291005354, -0.0461921655, -0.0407049768, -0.1594787538, 0.263335079, -0.0717206225, -0.384716481, 0.2813394666, 0.1984394044, 0.1305492967, -0.3410106897, -0.3583396673, -0.2088494003, 0.2040735185, 0.3273285925, 0.260453105, 0.1606562436, -0.0675937608, 0.1017333269, 0.0421060808, 0.0347271152, -0.211263001, -0.2997443676, 0.0877122357, -0.0418333821, 0.1646374613, -0.0676718429, 0.0748425946, 0.0317490287, 0.2372333556, -0.1756159663, -0.3039318025, -0.3474836946, -0.0090217534, -0.2521406114, 0.0530917011, -0.0348400213, 0.2632692754, -0.0276466478, 0.421682179, -0.0331666805, 0.0262603201, -0.0091025885, 0.1190423593, -0.1878587604, -0.1435455978, -0.2009522617, 0.1065528393, -0.2127272338, 0.2158328444, 0.2102497816, -0.1496815085, 0.1415400356, -0.1582760811, 0.3442232609, 0.0292334519, -0.0430988371, -0.0598433986, 0.3995530009, 0.2475840151, 0.0398641378, -0.2233406752, 0.0359926298, -0.0616045333, -0.0626190379, -0.3629679978, -0.2360111028, -0.029003473, -0.4206962287, 0.2049832344, -0.064842172, 0.1476448327, 0.3341109157, 0.4652747512, -0.2485468388, -0.2124275565, 0.0083081806, 0.1336003393, -0.0218611266, -0.2038933039, 0.3266792893, 0.2934153378, -0.0809982345, -0.3146288097, 0.0319042541, 0.3607743084, -0.1202195734, 0.3692781627, 0.1106317118, 0.0218540411, -0.0454110578, 0.3821897507, -0.0475707799, -0.236662671, -0.3699795306, -0.1487264782, -0.2932541072, 0.0697966293, 0.0203040671, 0.3585281074, 0.1651856452, -0.0837104619, -0.2864162922, 0.3109348714, -0.261526376, 0.0935187936, -0.1753572524, -0.2441124469, -0.1259768456, 0.368676573, 0.1090938374, -0.1824783087, 0.2339742631, 0.1565205306, 0.2729780674, -0.2223872989, -0.05482658, -0.0983999819, 0.140323177, 0.0401861742, 0.1376825869, -0.2686365545, -0.293540895, -0.188006267, 0.077223137, 0.288477689, 0.001185627, -0.2121801823, -0.1492411196, -0.0908191875, 0.0613224357, -0.0511975735, 0.2838752866, 0.017652778, 0.0253167581, 0.0366008393, -0.2284903377, 0.1887468845, 0.1027789488, 0.2885996401, -0.2223876268, 0.5107653141, -0.0773624405, -0.2251154333, 0.056394875, 0.3128339052, -0.0781029463, -0.0574517064, 0.3977354169, 0.2373289764, -0.0813106671, 0.1435075849, 0.0811459497, 0.4554272294, 0.2488144636, -0.340959549, 0.0328012593, -0.1235309467, -0.0202111602, 0.1319026649, -0.2997778654, 0.3614704013, 0.0998405665, -0.0618684329, 0.0857859701, 0.2117728144, 0.0081056077, -0.2116843909, -0.17532821, -0.1873119473, 0.2966585755, -0.0891014636, -0.0060291104, -0.2188635767, -0.4155852497, 0.1656569839, 0.24924694, -0.0998109132, 0.2614776492, -0.0337020233, -0.3641699255, -0.0865608975, 0.110018529, -0.1091312096, -0.1419515759, 0.3325548768, -0.1870559752, -0.0073412955, -0.033211071, -0.1935309023, -0.0487367138, 0.0025244462, 0.1727673262, 0.1774924248, 0.2582597136, 0.1353941113, -0.2072939575, -0.08742138, -0.3345640898, -0.1689327061, -0.0903283805, 0.1120992228, 0.1643741578, -0.1769791692, 0.1059036478, -0.094590947, -0.1321151704, -0.0466450006, 0.2646437287, -0.0785984322, -0.098270908, 0.0151694361, -0.085899055, 0.7049549222, -0.1361889094, 0.0419235602, -0.1331054866, 0.0939271674, 0.233752802, 0.239478305, -0.07642892, 0.119180657, 0.3059720397, -0.2420286983, 0.2000964731, 0.0366664231, -0.7282124758, 0.2268715501, -0.1291044056, 0.2942334712, 0.223290056, -0.0075597172, -0.1949144602, -0.1630248874, 0.012874512, -0.3004370034, -0.0198666565, 0.094990097, -0.0219527595, 0.2965886891, -0.1570225805, 0.0541687831, -0.260984838, -0.2736382484, 0.4029821455, 0.3724201918, 0.1196591184, 0.1512295753, 0.1189253628, -0.01501159, -0.2391367704, 0.0704124644, -0.1903071254, -0.1236233711, 0.1052778661, -0.4946626425, -0.2025733143, -0.4307967424, -0.2452953309, 0.2248694599, 0.0104959607, -0.4720846117, -0.2229798287, 0.0702596679, -0.096169509, -0.0956356451, -0.0690864772, 0.1743999422, -0.1138964295, -0.1574191004, -0.177395612, 0.0359617285, 0.1424242407, 0.0274225678, -0.061511483, -0.3750936687, 0.0887199938, 0.291651994, 0.3221221864, 0.1217207089, -0.0926460624, 0.1859730929, -0.0609811135, 0.1138466075, 0.0104359817, -0.1243090779, 0.4390413463, 0.0372021608, 0.0831048638, 0.3666620255, 0.1114471778, 0.0036178036, -0.0382084735, -0.0153278364, -0.4095843136, -0.2335890979, 0.126197964, 0.1572233438, 0.179221645, -0.2780391872, -0.0779594555, -0.1886613071, -0.2324747443, 0.2003534138, 0.3655682504, 0.2816060483, -0.0356498212, -0.4045876265, -0.0624725968, -0.2130744159, 0.1356180757, 0.0235540271, -0.2519173026, -0.1982634664, -0.3312269747, -0.0251448397, -0.0483575352, 0.124765031, -0.0380418673, 0.0783452019, -0.1772080958, -0.2312482297, -0.2077954561, 0.2946546376, -0.1341461986, -0.2783412337, 0.222759828, 0.6048160791, -0.2922265232, -0.0150784217, 0.4058975279, 0.0832413062, -0.003990131, 0.0190505758, 0.0209877379, -0.1510089487, -0.2013451308, 0.0078038103, -0.1939706206, 0.0962694585, 0.1238897517, -0.0739229918, -0.1013526395, -0.2948705256, 0.1193044409, 0.4946707785, 0.0279105548, -0.0420346744, -0.0597715639, 0.5083087683, 0.1736569852, 0.3354919553, 0.4134556949, -0.0581922159, -0.2075366229, 0.1580288112, 0.0629675239, 0.1145826727, 0.3681652546, 0.3933128119, 0.2132742256, 0.0451719984, 0.2136758715, -0.6080539227, 0.1857429892, 0.1650424004, -0.1938793361, -0.1619736254, -0.0784392804, 0.3237043321, -0.0523281395, -0.0761809647, -0.112005569, 0.3751174212, -0.0642953143, 0.3098017871, 0.4374552965, 0.9793302417, -0.0558276027, 0.2688033581, 0.1160016656, -0.0674506053, 0.3711492717, -0.254805088, 0.1088061184, -0.359067142, -0.2196299881, 0.0163796023, -0.0509897768, 0.0503663234, 0.0147065893, -0.1514455974, -0.136036858, 0.0027717515, 0.2196967304, -0.2465033829, 0.2896642089, 0.0352674685, -0.3609564304, -0.2937097251, 0.264898926, 0.056384448, 0.0082421284, 0.0266550984, -0.126383096, -0.2499142289, 0.0568520911, 0.0328200385, -0.0562005788, -0.2871083319, -0.2015750855, 0.0091079464, -0.4443234205, 0.0850915685, 0.0376918539, 0.2678285539, 0.2128654867, -0.2429117113, 0.1927944571, 0.0212498046, -0.0662316233, -0.0041139433, -0.0909743533, 0.4661801457, -0.151823625, 0.000977364, 0.1547449678, 0.3577207327, -0.0870760307, -0.2724565566, 0.034208674, 0.0231150687, -0.0770467743, 0.2068521529, 0.0024135995, -0.0604808144, -0.1248515174, 0.2355307043, 0.0901974738, -0.0870914757, 0.0139451465, 0.3192484677, -0.0142051671, -0.1781965643, -0.096738115, 0.0199416988, -0.0324605294, 0.1668407619, 0.0562837906, -0.0772575438, -0.4464805126, -0.0108508505, 0.5333175659, -0.5288715363, 0.1433065832, -0.0799275935, -0.3435298204, 0.2010810375, 0.2711878121, 0.374142617, -0.367295295, -0.1241251305, -0.1129410341, -0.2768396139, 0.5455955267, -0.162289381, 0.2686486244, 0.1028128266, 0.4126702845, -0.2105602324, 0.4231437147, -0.5048627853, 0.1121577471, -0.1976179183, 0.0284340698, -0.2537166178, -0.1558594257, 0.1225177795, -0.053773731, 0.2228970975, 0.3052393794, -0.3245460689, -0.2984851301, -0.2383985668, 0.0321681499, -0.116707921, -0.141540885, 0.1029375792, 0.1490790695, -0.1222139001, -0.1596213132, 0.2374067307, -0.2606348395, 0.1922782212, -0.1691679209, 0.1459702849, -0.0342298672, 0.3603396416, -0.0075029973, -0.0560716167, 0.0789182559, 0.1597746611, -0.0648321286, -0.0558526963, 0.0000024109, 0.2125096619, 0.4625999928, 0.180914402, -0.1121960878, 0.3772573471, 0.0770268515, -0.2151814997, -0.0042704246, 0.480152756, -0.1513043791, -0.1843553782, 0.1716400534, 0.2247042656, 0.4019597173, -0.370760113, -0.0997940451, -0.0078297714, -0.0157729164, 0.3445011079, 0.4008023441, 0.4512387812, 0.4025122225, -0.3380447626, 0.0087824427, 0.273447156, 0.0285287742, 0.0836621672, 0.3694186509, -0.0252818037, 0.0231619198, 0.1315930635, 0.0083400542, 0.238629058, 0.1602921337, -0.1693091094, 0.3360775709, 0.0923036486, -0.1004551426, 0.3497420549, 0.3678521812, -0.1779183745, -0.0551334061, -0.0087773558, 0.2939939797, -0.2104301453, 0.1490237117, -0.1503660679, -0.2900095582, -0.1477923691, 0.0922218114, 0.0927360579, 0.0711817965, -0.23674725, -0.1595769525, -0.2098677903, -0.1708982587, 0.0456076749, -0.3259118497, 0.3879270256, -0.0377687477, 0.1876103431, 0.0481984466, -0.4212079644, 0.4705295265, 0.5282369852, -0.1551525444, 0.0575575791, 0.2619071007, -0.0134915831, 0.3255403042, 0.2282378078, 0.3077000678, -0.2198489755, -0.1646087766, -0.0982707217, -0.1868081838, -0.1013032123, -0.1054847986, 0.1203159094, 0.2533213198, 0.1309505254, 0.242249921, 0.2780440748, -0.2815352082, -0.1760746092, 0.01908632, 0.0029932172, -0.3885229528, 0.0175315998, -0.3144738674, -0.0845922008, -0.3310717344, -0.2244716287, -0.2333945334, 0.1162769347, 0.0308672208, -0.200980708, 0.0542954579, -0.0438181944, 0.1373261511, 0.0128202001, 0.5682820082, 0.1125021204, 0.029946167, -0.02698013, -0.3530489504, -0.24305439, 0.1844457686, -0.1787971854, -0.2228729576, 0.0569167659, 0.2260576785, 0.1746363193, 0.0472500995, -0.0372979529, 0.0115413964, 0.0802460089, 0.145238772, -0.1586176753, 0.2736710012, -0.1992676258, 0.1187742054, 0.0272954442, 0.0637327582, 0.1977350712, 0.1273887455, 0.1175993979, -0.0920231938, 0.1444338858, -0.1177105978, -0.0732806548, 0.434725821, -0.0648443699, 0.1084061787, -0.3775055408, -0.575730145, -0.2442816943, -0.1276054829, -0.3786605597, 0.01749436, 0.2132364213, 0.685189724, 0.0672927275, -0.3558264375, 0.0468354896, 0.0941487253, 0.0884240866, -0.0169698354, -0.0875002965, 0.1498900205, 0.1566360742, -0.0722131953, -0.0406677164, 0.3887325823, -0.0634332746, -0.057313744, 0.0805447176, -0.3522801399, 0.5576981902, -0.2102832049, -0.0690290406, -0.1622474939, -0.0062874081, 0.2549200058, 0.0217843, -0.7319887877, -0.0891443864, 0.0620104671, 0.2421831638, -0.0482810773, 0.3635136485, -0.0103057511, -0.4082896113, -0.0605729371, 0.1114256084, 0.0130864736, -0.202429682, 0.0318523347, -0.2834848464 ]
https://github.com/huggingface/datasets/issues/3582
conll 2003 dataset source url is no longer valid
Thanks for reporting ! I pushed a temporary fix on `master` that uses an URL from a previous commit to access the dataset for now, until we have a better solution
## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual results It is looking for the dataset at `https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt` but it was removed from there yesterday (see [commit](https://github.com/davidsbatista/NER-datasets/commit/9d8f45cc7331569af8eb3422bbe1c97cbebd5690) that removed the file and related [issue](https://github.com/davidsbatista/NER-datasets/issues/8)). - We should replace this with an alternate valid location. - this is being referenced in the huggingface course chapter 7 [colab notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter7/section2_pt.ipynb), which is also broken. ```python FileNotFoundError Traceback (most recent call last) <ipython-input-4-27c956bec93c> in <module>() 1 from datasets import load_dataset 2 ----> 3 raw_datasets = load_dataset("conll2003") 11 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params) 610 ) 611 elif response is not None and response.status_code == 404: --> 612 raise FileNotFoundError(f"Couldn't find file at {url}") 613 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 614 if head_error is not None: FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
31
conll 2003 dataset source url is no longer valid ## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual results It is looking for the dataset at `https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt` but it was removed from there yesterday (see [commit](https://github.com/davidsbatista/NER-datasets/commit/9d8f45cc7331569af8eb3422bbe1c97cbebd5690) that removed the file and related [issue](https://github.com/davidsbatista/NER-datasets/issues/8)). - We should replace this with an alternate valid location. - this is being referenced in the huggingface course chapter 7 [colab notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter7/section2_pt.ipynb), which is also broken. ```python FileNotFoundError Traceback (most recent call last) <ipython-input-4-27c956bec93c> in <module>() 1 from datasets import load_dataset 2 ----> 3 raw_datasets = load_dataset("conll2003") 11 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params) 610 ) 611 elif response is not None and response.status_code == 404: --> 612 raise FileNotFoundError(f"Couldn't find file at {url}") 613 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 614 if head_error is not None: FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version: Thanks for reporting ! I pushed a temporary fix on `master` that uses an URL from a previous commit to access the dataset for now, until we have a better solution
[ 0.0253509022, 0.0967388824, 0.065923214, 0.2801699936, -0.0838980228, -0.0983769894, 0.3944682181, 0.1143219024, -0.3661052287, 0.010017517, -0.1598331183, 0.153081283, -0.1152235493, -0.116748184, 0.0637081191, 0.1321539283, 0.0121241845, 0.000835884, 0.0810598731, 0.0310794916, -0.3898716569, 0.4209730923, -0.4365297556, 0.0629990324, -0.3902913928, 0.0804226398, -0.16993846, 0.4743026495, -0.2052625716, -0.1979974657, 0.4889352322, -0.1144517735, 0.1795951575, 0.2775033414, -0.0001129979, 0.1032520011, 0.2143998146, -0.0595819652, -0.5245830417, -0.3750487864, -0.5292636156, -0.0421055257, 0.0451603718, -0.0714644417, -0.0944876298, 0.4565855563, -0.0474237651, 0.0319452174, 0.3811579347, 0.7521839142, 0.1968508512, 0.4414002001, 0.1743047684, -0.1015697122, 0.5255883932, 0.0766244978, -0.1110145971, 0.6119887829, -0.0278862678, -0.0886689126, 0.0172358286, 0.279619664, -0.1529474109, -0.1965390444, 0.2908532917, 0.1870018393, -0.2838508487, -0.1528364569, -0.1646653563, 0.1080819592, 0.2675341368, -0.2151462734, -0.4405227005, -0.2066781372, -0.0290534962, -0.4647008777, 0.3244925439, -0.0935686827, -0.0408927202, 0.3328481615, -0.0077437395, -0.3877592683, -0.2175438851, 0.2450855076, -0.2362279743, 0.4616679251, -0.1982468516, -0.0661138296, -0.0414219536, 0.0715459883, 0.3729721904, 0.0184813589, 0.1353755146, 0.1575663984, -0.1948741823, 0.0408191457, 0.0827621222, 0.0212456379, 0.0772702619, 0.0586711951, 0.0275252163, -0.3540601134, -0.246681273, 0.0627682135, -0.0127243958, 0.1849479824, -0.1086144745, 0.2846391499, 0.2959340215, 0.4536523521, -0.0691286325, -0.13704741, -0.0618424416, -0.1590445489, -0.307711184, 0.1159120873, 0.4330877066, -0.2834414542, -0.4536600709, 0.1265705675, -0.075455457, -0.0376193821, 0.1437016577, 0.2931142747, -0.2419084162, 0.1813091636, 0.3210600317, 0.0947435498, -0.0665304735, -0.2068404257, -0.1123542786, 0.0930938572, -0.1624078155, -0.1120410338, 0.0973365009, -0.1617785692, 0.2950329781, 0.0580094196, -0.0498434678, -0.0270661563, -0.118618384, -0.0825600699, 0.0584098808, 0.0959890485, -0.255908668, -0.0700638592, 0.1872967333, -0.1893987507, -0.0909802318, -0.0214241836, -0.4910676479, -0.3637753725, -0.5540165305, 0.168131873, -0.1340541691, -0.0802562088, 0.2238660604, -0.1684782654, -0.1284169555, -0.2272421271, 0.0041453838, -0.1627313495, -0.4808424115, -0.2206246853, 0.3789058328, 0.6022601128, -0.0749849826, -0.144536376, -0.0296847504, -0.0125884572, -0.0113351559, 0.0722648278, -0.2435078323, 0.1706333458, -0.4337828457, -0.2722162604, 0.3397962153, -0.3444938362, -0.3977220356, 0.2569458783, -0.2445739806, 0.1040637046, -0.127039656, 0.0098680332, 0.0058277501, -0.1300293207, 0.4136152267, 0.2132979035, 0.2842938304, -0.1912845224, -0.342669636, -0.0771214291, -0.3532923758, 0.0929969773, 0.1055356041, 0.1955371648, 0.0883221626, 0.0729058012, 0.3487869501, -0.0456362516, -0.011103441, 0.4780996442, 0.523042798, 0.2254860699, -0.1831436455, -0.1006928161, -0.5838641524, 0.2132487744, -0.1837220639, 0.1683391631, -0.140527457, -0.0316184387, -0.3568355441, 0.0358634144, -0.2229212523, -0.2888861001, 0.076976493, 0.2807332575, 0.1073598415, 0.3723208904, -0.2859922349, 0.5278152227, -0.0764867589, 0.1875047982, -0.4465019405, 0.2189902663, -0.1892786622, -0.0683519468, -0.0328542888, 0.2968820333, 0.2758167386, -0.0469949692, -0.2104012966, 0.4799610376, 0.2833930552, -0.033931043, 0.0530576445, -0.1412368268, 0.3879188895, 0.0216606073, 0.0175175183, -0.1234814525, -0.03690321, 0.2466683686, 0.0356053635, 0.4087167084, 0.158116281, -0.1722099781, 0.1716520339, 0.0450472571, 0.2269729078, -0.2442213297, 0.0487258025, -0.2441659272, 0.2858730555, 0.3254208267, 0.1884657443, 0.2218256593, -0.404229641, -0.0688454583, 0.2046669424, -0.0681114346, -0.147220552, 0.4004523754, -0.2549816668, 0.0204702914, 0.0422204919, 0.4559445381, 0.369723618, -0.0018173885, -0.0816521719, 0.1717090905, -0.1631027609, -0.1395666599, 0.3055932522, -0.1335677356, 0.3088121116, 0.1874019951, 0.1382221729, 0.267628938, -0.1393774599, -0.3593531847, -0.1998708844, 0.1674646139, -0.410561949, 0.1584680378, -0.2326514423, -0.1283441484, -0.3285337389, -0.2339736521, -0.3903582096, -0.287291795, -0.0921416134, 0.2891154587, 0.0806999356, 0.0992858931, -0.3818287253, 0.052065324, -0.0832891688, -0.207000792, -0.0555494539, -0.1511656791, -0.2422627658, 0.0415614434, 0.1475660652, -0.1073287949, 0.0884688646, -0.5785440803, -0.111759156, -0.2843218148, -0.233587414, 0.185741663, -0.0151789198, 0.3821644783, 0.266492486, -0.0697070286, -0.2937787473, -0.1993514746, 0.1901034415, -0.1194523126, -0.1287557781, 0.1649290174, -0.046237357, 0.1242080182, -0.0826411545, -0.2610948086, -0.2372128665, -0.212079376, -0.0767427981, -0.1635096818, 0.0332951322, 0.5627381802, 0.0108380523, 0.2882922888, -0.1466232091, 0.3226825297, -0.1974569708, -0.4903647304, 0.2691138685, -0.1067605466, -0.2987869084, -0.0245028082, -0.101401791, 0.0484301746, 0.0408871211, -0.6074545979, -0.333355099, 0.0715180561, 0.2439820617, -0.0836491063, -0.091620259, 0.1310885698, 0.0044971746, 0.0169883594, -0.1084387749, -0.1526849121, -0.0279960651, -0.0123941787, 0.4001573622, 0.1530859619, 0.285666883, 0.0420149304, 0.5507600307, 0.0928631425, -0.2339052707, 0.4759048522, -0.2186863571, 0.4636937082, -0.0296103805, -0.4504038393, 0.0066047665, -0.0370012484, -0.1819276512, 0.0673618913, 0.0650070459, 0.1461120397, -0.383420676, 0.03579925, -0.4171646237, -0.323785603, -0.1294250488, 0.1997882128, 0.51863873, 0.141228646, -0.0203765985, -0.0638150275, -0.1897606105, 0.0956467018, 0.3541416824, 0.3586685061, -0.1536746025, 0.1097293943, 0.0954213291, -0.5346694589, 0.2498691678, 0.1164160147, 0.2855676413, -0.0721211135, -0.0852084905, 0.0033584451, 0.0780051202, 0.7094945312, 0.0957786143, 0.0932210311, 0.1239262298, -0.0134895369, -0.3132127225, 0.0285422429, -0.0567343384, -0.2339721024, 0.7941427827, 0.5793807507, -0.1796579808, -0.2448667139, 0.4700962603, 0.1199061126, -0.1388816535, -0.0222063214, -0.4360752404, -0.2812048495, -0.2433781028, -0.2498898953, -0.0460595787, 0.175698638, 0.2289873362, 0.1411258727, 0.0942482874, 0.0133412443, 0.0069472864, 0.0471279025, 0.3667369783, 0.1521010697, 0.0875141248, 0.1237420887, 0.3165043592, 0.2233427465, 0.5931283832, -0.2113486081, -0.5890557766, -0.0196701903, 0.1716353446, 0.0961006135, 0.2409362644, 0.0272362418, -0.1374897212, 0.1331938952, 0.0229494162, -0.0222947616, 0.2598652244, 0.3909745216, -0.1052041799, -0.1667043269, -0.2202133089, 0.1839201301, 0.0799533799, 0.0702645034, 0.0616287738, 0.0346186124, -0.2053495497, 0.0974564627, 0.0519538261, 0.8340656161, 0.157977432, 0.201674059, 0.5079487562, -0.041616302, 0.4650934935, 0.2374851853, 0.1631447524, -0.249722302, -0.2047721744, -0.1255884767, -0.1783704907, -0.137865603, -0.1744802743, -0.1000150219, 0.3202367723, 0.0559699126, 0.209402293, 0.2041436583, 0.2568252683, -0.0647969991, 0.1942098886, -0.1986092776, 0.1063385308, 0.0070619229, 0.3560439646, -0.1907224953, -0.0848865062, -0.1383392811, -0.1336325705, -0.1906439364, 0.2861297727, -0.3470436037, 0.2383952588, 0.1994378567, -0.5571333766, -0.1531778425, 0.3834462762, 0.1671642065, -0.0660771951, -0.1919646114, 0.172549516, 0.0226812586, -0.0504725277, 0.1469898075, 0.0166521762, 0.3030378222, -0.1667350829, -0.2799091041, 0.019603109, -0.1332208514, -0.4376718104, 0.4721125364, 0.0408408269, -0.0180420168, -0.2416033745, -0.1377818882, 0.0410687476, 0.1678078622, -0.3979026675, 0.1352979541, 0.1070146114, 0.0997831523, -0.282445997, -0.2128213644, -0.3429228067, -0.1134912223, 0.2461919039, -0.4026428461, 0.1572065055, 0.3691962659, 0.2164934427, -0.0388050489, -0.0947909579, 0.1664259732, -0.4295641482, -0.4276159406, 0.1911737174, 0.1135646552, 0.195710361, -0.2244526744, 0.2241283804, 0.2131268829, -0.0234991703, 0.0816683546, -0.4208971262, -0.0573577397, 0.179807201, -0.1346451938, 0.0890328735, 0.1785348803, 0.1280143559, 0.0844882727, -0.39983055, -0.3125585914, 0.2659762502, -0.1955264658, -0.0455458388, 0.0448860452, -0.0963082463, 0.2457349002, -0.1079395339, 0.1482986063, -0.0357735567, 0.0924094096, -0.1786075234, -0.3083226383, 0.1198837236, 0.0477711335, -0.3378747404, -0.186585471, -0.1435094178, 0.0013373481, -0.0741073713, -0.0993194878, 0.3183906972, 0.1246545091, 0.3457006514, -0.3861229718, 0.0770087838, 0.0285548288, 0.2465441227, -0.060096126, 0.3072298467, 0.2335361242, 0.3626565933, -0.1410410404, -0.0174735803, -0.1161890179, 0.0941664875, -0.304459095, -0.047407411, 0.2895689607, -0.1286600828, -0.2583488822, 0.0804452226, 0.2489448935, 0.2149027586, -0.2065898329, 0.0493826792, 0.2251132578, 0.1854285747, -0.3118268847, 0.0312931389, 0.0394633524, 0.0260484926, 0.0641547963, 0.1031032279, -0.0655573308, -0.0265722834, 0.0206055716, 0.2290819585, 0.2501906157, 0.329916358, 0.1768212914, 0.1094231009, 0.1164157689, 0.2759676874, 0.2468852103, -0.023601545, 0.2308472395, 0.0375321619, 0.1384308636, -0.0496865101, -0.4090566039, 0.3574178815, 0.183890745, -0.4850933552, 0.1525864899, 0.098277919, -0.3351129889, 0.0595584698, -0.0835897848, 0.3090578616, -0.3447545469, 0.0961189121, -0.2887633145, 0.4542267621, -0.1170191094, -0.0377432294, -0.2764167488, -0.1713253111, 0.1708384603, 0.2148483396, -0.0155136036, -0.0815984458, 0.0520277172, 0.161512211, -0.1662601382, -0.1590646356, 0.2457882613, 0.2846098542, 0.1373610497, -0.1913719773, 0.2791170776, 0.1394008994, -0.0336038321, -0.0040965937, 0.3988018632, 0.4129146338, 0.0947472155, 0.0996777341, -0.0073963674, -0.0163154658, 0.0193068869, -0.1174129993, 0.2872723937, -0.0070247054, 0.0536852516, 0.386731714, 0.2063885629, -0.1790587455, 0.0651682764, -0.0069419015, 0.26603356, -0.3323436081, 0.3762597144, -0.1992399842, -0.0937547088, -0.153156206, 0.1921987534, -0.291882664, 0.3629387617, 0.299915731, 0.0027929908, 0.2230302095, 0.0913587511, 0.0659094006, 0.0418185852, -0.0205159392, 0.7449780107, 0.2307311147, -0.3425579071, -0.464594543, -0.6903236508, 0.2836838961, -0.0210065749, -0.212864846, 0.0345652625, -0.0700096637, -0.2509898543, 0.024474198, -0.0838142559, 0.0082125431, -0.0987113565, -0.118060261, -0.3277314305, 0.0180022474, -0.0246572644, 0.0822507739, -0.0575739704, -0.3346542418, 0.0516878068, -0.2780436277, 0.0366745293, -0.1110831499, -0.1087007225, -0.0403331928, 0.0017609168, 0.4773257375, 0.1844790429, 0.0303753912, -0.2066303939, -0.3831861913, -0.2202346623, -0.1590362191, 0.0039391592, -0.0141007556, -0.1668247432, 0.2478741258, -0.0052259699, -0.1130278558, -0.3594194949, 0.6564289927, 0.1941615045, -0.0665682629, -0.3242474496, 0.1254468411, -0.155978933, 0.025528634, 0.1975376308, 0.3971735537, -0.2059224844, 0.1919439733, -0.2127087265, -0.2657880783, 0.4087334573, -0.3252229691, -0.0258049574, -0.0771460161, 0.2957195044, -0.1709603071, -0.103382796, -0.4683244526, 0.0652704388, 0.4253767431, 0.2509461641, -0.2382995188, 0.2304837406, 0.0510389432, -0.0152829699, 0.1360287964, 0.5226019025, 0.1991051883, -0.3656589687, 0.1683948487, -0.0177091174 ]
https://github.com/huggingface/datasets/issues/3582
conll 2003 dataset source url is no longer valid
I changed the URL again to use another host, the fix is available on `master` and we'll probably do a new release of `datasets` tomorrow. In the meantime, feel free to do `load_dataset(..., revision="master")` to use the fixed script
## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual results It is looking for the dataset at `https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt` but it was removed from there yesterday (see [commit](https://github.com/davidsbatista/NER-datasets/commit/9d8f45cc7331569af8eb3422bbe1c97cbebd5690) that removed the file and related [issue](https://github.com/davidsbatista/NER-datasets/issues/8)). - We should replace this with an alternate valid location. - this is being referenced in the huggingface course chapter 7 [colab notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter7/section2_pt.ipynb), which is also broken. ```python FileNotFoundError Traceback (most recent call last) <ipython-input-4-27c956bec93c> in <module>() 1 from datasets import load_dataset 2 ----> 3 raw_datasets = load_dataset("conll2003") 11 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params) 610 ) 611 elif response is not None and response.status_code == 404: --> 612 raise FileNotFoundError(f"Couldn't find file at {url}") 613 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 614 if head_error is not None: FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
39
conll 2003 dataset source url is no longer valid ## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual results It is looking for the dataset at `https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt` but it was removed from there yesterday (see [commit](https://github.com/davidsbatista/NER-datasets/commit/9d8f45cc7331569af8eb3422bbe1c97cbebd5690) that removed the file and related [issue](https://github.com/davidsbatista/NER-datasets/issues/8)). - We should replace this with an alternate valid location. - this is being referenced in the huggingface course chapter 7 [colab notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter7/section2_pt.ipynb), which is also broken. ```python FileNotFoundError Traceback (most recent call last) <ipython-input-4-27c956bec93c> in <module>() 1 from datasets import load_dataset 2 ----> 3 raw_datasets = load_dataset("conll2003") 11 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params) 610 ) 611 elif response is not None and response.status_code == 404: --> 612 raise FileNotFoundError(f"Couldn't find file at {url}") 613 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 614 if head_error is not None: FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version: I changed the URL again to use another host, the fix is available on `master` and we'll probably do a new release of `datasets` tomorrow. In the meantime, feel free to do `load_dataset(..., revision="master")` to use the fixed script
[ 0.0253509022, 0.0967388824, 0.065923214, 0.2801699936, -0.0838980228, -0.0983769894, 0.3944682181, 0.1143219024, -0.3661052287, 0.010017517, -0.1598331183, 0.153081283, -0.1152235493, -0.116748184, 0.0637081191, 0.1321539283, 0.0121241845, 0.000835884, 0.0810598731, 0.0310794916, -0.3898716569, 0.4209730923, -0.4365297556, 0.0629990324, -0.3902913928, 0.0804226398, -0.16993846, 0.4743026495, -0.2052625716, -0.1979974657, 0.4889352322, -0.1144517735, 0.1795951575, 0.2775033414, -0.0001129979, 0.1032520011, 0.2143998146, -0.0595819652, -0.5245830417, -0.3750487864, -0.5292636156, -0.0421055257, 0.0451603718, -0.0714644417, -0.0944876298, 0.4565855563, -0.0474237651, 0.0319452174, 0.3811579347, 0.7521839142, 0.1968508512, 0.4414002001, 0.1743047684, -0.1015697122, 0.5255883932, 0.0766244978, -0.1110145971, 0.6119887829, -0.0278862678, -0.0886689126, 0.0172358286, 0.279619664, -0.1529474109, -0.1965390444, 0.2908532917, 0.1870018393, -0.2838508487, -0.1528364569, -0.1646653563, 0.1080819592, 0.2675341368, -0.2151462734, -0.4405227005, -0.2066781372, -0.0290534962, -0.4647008777, 0.3244925439, -0.0935686827, -0.0408927202, 0.3328481615, -0.0077437395, -0.3877592683, -0.2175438851, 0.2450855076, -0.2362279743, 0.4616679251, -0.1982468516, -0.0661138296, -0.0414219536, 0.0715459883, 0.3729721904, 0.0184813589, 0.1353755146, 0.1575663984, -0.1948741823, 0.0408191457, 0.0827621222, 0.0212456379, 0.0772702619, 0.0586711951, 0.0275252163, -0.3540601134, -0.246681273, 0.0627682135, -0.0127243958, 0.1849479824, -0.1086144745, 0.2846391499, 0.2959340215, 0.4536523521, -0.0691286325, -0.13704741, -0.0618424416, -0.1590445489, -0.307711184, 0.1159120873, 0.4330877066, -0.2834414542, -0.4536600709, 0.1265705675, -0.075455457, -0.0376193821, 0.1437016577, 0.2931142747, -0.2419084162, 0.1813091636, 0.3210600317, 0.0947435498, -0.0665304735, -0.2068404257, -0.1123542786, 0.0930938572, -0.1624078155, -0.1120410338, 0.0973365009, -0.1617785692, 0.2950329781, 0.0580094196, -0.0498434678, -0.0270661563, -0.118618384, -0.0825600699, 0.0584098808, 0.0959890485, -0.255908668, -0.0700638592, 0.1872967333, -0.1893987507, -0.0909802318, -0.0214241836, -0.4910676479, -0.3637753725, -0.5540165305, 0.168131873, -0.1340541691, -0.0802562088, 0.2238660604, -0.1684782654, -0.1284169555, -0.2272421271, 0.0041453838, -0.1627313495, -0.4808424115, -0.2206246853, 0.3789058328, 0.6022601128, -0.0749849826, -0.144536376, -0.0296847504, -0.0125884572, -0.0113351559, 0.0722648278, -0.2435078323, 0.1706333458, -0.4337828457, -0.2722162604, 0.3397962153, -0.3444938362, -0.3977220356, 0.2569458783, -0.2445739806, 0.1040637046, -0.127039656, 0.0098680332, 0.0058277501, -0.1300293207, 0.4136152267, 0.2132979035, 0.2842938304, -0.1912845224, -0.342669636, -0.0771214291, -0.3532923758, 0.0929969773, 0.1055356041, 0.1955371648, 0.0883221626, 0.0729058012, 0.3487869501, -0.0456362516, -0.011103441, 0.4780996442, 0.523042798, 0.2254860699, -0.1831436455, -0.1006928161, -0.5838641524, 0.2132487744, -0.1837220639, 0.1683391631, -0.140527457, -0.0316184387, -0.3568355441, 0.0358634144, -0.2229212523, -0.2888861001, 0.076976493, 0.2807332575, 0.1073598415, 0.3723208904, -0.2859922349, 0.5278152227, -0.0764867589, 0.1875047982, -0.4465019405, 0.2189902663, -0.1892786622, -0.0683519468, -0.0328542888, 0.2968820333, 0.2758167386, -0.0469949692, -0.2104012966, 0.4799610376, 0.2833930552, -0.033931043, 0.0530576445, -0.1412368268, 0.3879188895, 0.0216606073, 0.0175175183, -0.1234814525, -0.03690321, 0.2466683686, 0.0356053635, 0.4087167084, 0.158116281, -0.1722099781, 0.1716520339, 0.0450472571, 0.2269729078, -0.2442213297, 0.0487258025, -0.2441659272, 0.2858730555, 0.3254208267, 0.1884657443, 0.2218256593, -0.404229641, -0.0688454583, 0.2046669424, -0.0681114346, -0.147220552, 0.4004523754, -0.2549816668, 0.0204702914, 0.0422204919, 0.4559445381, 0.369723618, -0.0018173885, -0.0816521719, 0.1717090905, -0.1631027609, -0.1395666599, 0.3055932522, -0.1335677356, 0.3088121116, 0.1874019951, 0.1382221729, 0.267628938, -0.1393774599, -0.3593531847, -0.1998708844, 0.1674646139, -0.410561949, 0.1584680378, -0.2326514423, -0.1283441484, -0.3285337389, -0.2339736521, -0.3903582096, -0.287291795, -0.0921416134, 0.2891154587, 0.0806999356, 0.0992858931, -0.3818287253, 0.052065324, -0.0832891688, -0.207000792, -0.0555494539, -0.1511656791, -0.2422627658, 0.0415614434, 0.1475660652, -0.1073287949, 0.0884688646, -0.5785440803, -0.111759156, -0.2843218148, -0.233587414, 0.185741663, -0.0151789198, 0.3821644783, 0.266492486, -0.0697070286, -0.2937787473, -0.1993514746, 0.1901034415, -0.1194523126, -0.1287557781, 0.1649290174, -0.046237357, 0.1242080182, -0.0826411545, -0.2610948086, -0.2372128665, -0.212079376, -0.0767427981, -0.1635096818, 0.0332951322, 0.5627381802, 0.0108380523, 0.2882922888, -0.1466232091, 0.3226825297, -0.1974569708, -0.4903647304, 0.2691138685, -0.1067605466, -0.2987869084, -0.0245028082, -0.101401791, 0.0484301746, 0.0408871211, -0.6074545979, -0.333355099, 0.0715180561, 0.2439820617, -0.0836491063, -0.091620259, 0.1310885698, 0.0044971746, 0.0169883594, -0.1084387749, -0.1526849121, -0.0279960651, -0.0123941787, 0.4001573622, 0.1530859619, 0.285666883, 0.0420149304, 0.5507600307, 0.0928631425, -0.2339052707, 0.4759048522, -0.2186863571, 0.4636937082, -0.0296103805, -0.4504038393, 0.0066047665, -0.0370012484, -0.1819276512, 0.0673618913, 0.0650070459, 0.1461120397, -0.383420676, 0.03579925, -0.4171646237, -0.323785603, -0.1294250488, 0.1997882128, 0.51863873, 0.141228646, -0.0203765985, -0.0638150275, -0.1897606105, 0.0956467018, 0.3541416824, 0.3586685061, -0.1536746025, 0.1097293943, 0.0954213291, -0.5346694589, 0.2498691678, 0.1164160147, 0.2855676413, -0.0721211135, -0.0852084905, 0.0033584451, 0.0780051202, 0.7094945312, 0.0957786143, 0.0932210311, 0.1239262298, -0.0134895369, -0.3132127225, 0.0285422429, -0.0567343384, -0.2339721024, 0.7941427827, 0.5793807507, -0.1796579808, -0.2448667139, 0.4700962603, 0.1199061126, -0.1388816535, -0.0222063214, -0.4360752404, -0.2812048495, -0.2433781028, -0.2498898953, -0.0460595787, 0.175698638, 0.2289873362, 0.1411258727, 0.0942482874, 0.0133412443, 0.0069472864, 0.0471279025, 0.3667369783, 0.1521010697, 0.0875141248, 0.1237420887, 0.3165043592, 0.2233427465, 0.5931283832, -0.2113486081, -0.5890557766, -0.0196701903, 0.1716353446, 0.0961006135, 0.2409362644, 0.0272362418, -0.1374897212, 0.1331938952, 0.0229494162, -0.0222947616, 0.2598652244, 0.3909745216, -0.1052041799, -0.1667043269, -0.2202133089, 0.1839201301, 0.0799533799, 0.0702645034, 0.0616287738, 0.0346186124, -0.2053495497, 0.0974564627, 0.0519538261, 0.8340656161, 0.157977432, 0.201674059, 0.5079487562, -0.041616302, 0.4650934935, 0.2374851853, 0.1631447524, -0.249722302, -0.2047721744, -0.1255884767, -0.1783704907, -0.137865603, -0.1744802743, -0.1000150219, 0.3202367723, 0.0559699126, 0.209402293, 0.2041436583, 0.2568252683, -0.0647969991, 0.1942098886, -0.1986092776, 0.1063385308, 0.0070619229, 0.3560439646, -0.1907224953, -0.0848865062, -0.1383392811, -0.1336325705, -0.1906439364, 0.2861297727, -0.3470436037, 0.2383952588, 0.1994378567, -0.5571333766, -0.1531778425, 0.3834462762, 0.1671642065, -0.0660771951, -0.1919646114, 0.172549516, 0.0226812586, -0.0504725277, 0.1469898075, 0.0166521762, 0.3030378222, -0.1667350829, -0.2799091041, 0.019603109, -0.1332208514, -0.4376718104, 0.4721125364, 0.0408408269, -0.0180420168, -0.2416033745, -0.1377818882, 0.0410687476, 0.1678078622, -0.3979026675, 0.1352979541, 0.1070146114, 0.0997831523, -0.282445997, -0.2128213644, -0.3429228067, -0.1134912223, 0.2461919039, -0.4026428461, 0.1572065055, 0.3691962659, 0.2164934427, -0.0388050489, -0.0947909579, 0.1664259732, -0.4295641482, -0.4276159406, 0.1911737174, 0.1135646552, 0.195710361, -0.2244526744, 0.2241283804, 0.2131268829, -0.0234991703, 0.0816683546, -0.4208971262, -0.0573577397, 0.179807201, -0.1346451938, 0.0890328735, 0.1785348803, 0.1280143559, 0.0844882727, -0.39983055, -0.3125585914, 0.2659762502, -0.1955264658, -0.0455458388, 0.0448860452, -0.0963082463, 0.2457349002, -0.1079395339, 0.1482986063, -0.0357735567, 0.0924094096, -0.1786075234, -0.3083226383, 0.1198837236, 0.0477711335, -0.3378747404, -0.186585471, -0.1435094178, 0.0013373481, -0.0741073713, -0.0993194878, 0.3183906972, 0.1246545091, 0.3457006514, -0.3861229718, 0.0770087838, 0.0285548288, 0.2465441227, -0.060096126, 0.3072298467, 0.2335361242, 0.3626565933, -0.1410410404, -0.0174735803, -0.1161890179, 0.0941664875, -0.304459095, -0.047407411, 0.2895689607, -0.1286600828, -0.2583488822, 0.0804452226, 0.2489448935, 0.2149027586, -0.2065898329, 0.0493826792, 0.2251132578, 0.1854285747, -0.3118268847, 0.0312931389, 0.0394633524, 0.0260484926, 0.0641547963, 0.1031032279, -0.0655573308, -0.0265722834, 0.0206055716, 0.2290819585, 0.2501906157, 0.329916358, 0.1768212914, 0.1094231009, 0.1164157689, 0.2759676874, 0.2468852103, -0.023601545, 0.2308472395, 0.0375321619, 0.1384308636, -0.0496865101, -0.4090566039, 0.3574178815, 0.183890745, -0.4850933552, 0.1525864899, 0.098277919, -0.3351129889, 0.0595584698, -0.0835897848, 0.3090578616, -0.3447545469, 0.0961189121, -0.2887633145, 0.4542267621, -0.1170191094, -0.0377432294, -0.2764167488, -0.1713253111, 0.1708384603, 0.2148483396, -0.0155136036, -0.0815984458, 0.0520277172, 0.161512211, -0.1662601382, -0.1590646356, 0.2457882613, 0.2846098542, 0.1373610497, -0.1913719773, 0.2791170776, 0.1394008994, -0.0336038321, -0.0040965937, 0.3988018632, 0.4129146338, 0.0947472155, 0.0996777341, -0.0073963674, -0.0163154658, 0.0193068869, -0.1174129993, 0.2872723937, -0.0070247054, 0.0536852516, 0.386731714, 0.2063885629, -0.1790587455, 0.0651682764, -0.0069419015, 0.26603356, -0.3323436081, 0.3762597144, -0.1992399842, -0.0937547088, -0.153156206, 0.1921987534, -0.291882664, 0.3629387617, 0.299915731, 0.0027929908, 0.2230302095, 0.0913587511, 0.0659094006, 0.0418185852, -0.0205159392, 0.7449780107, 0.2307311147, -0.3425579071, -0.464594543, -0.6903236508, 0.2836838961, -0.0210065749, -0.212864846, 0.0345652625, -0.0700096637, -0.2509898543, 0.024474198, -0.0838142559, 0.0082125431, -0.0987113565, -0.118060261, -0.3277314305, 0.0180022474, -0.0246572644, 0.0822507739, -0.0575739704, -0.3346542418, 0.0516878068, -0.2780436277, 0.0366745293, -0.1110831499, -0.1087007225, -0.0403331928, 0.0017609168, 0.4773257375, 0.1844790429, 0.0303753912, -0.2066303939, -0.3831861913, -0.2202346623, -0.1590362191, 0.0039391592, -0.0141007556, -0.1668247432, 0.2478741258, -0.0052259699, -0.1130278558, -0.3594194949, 0.6564289927, 0.1941615045, -0.0665682629, -0.3242474496, 0.1254468411, -0.155978933, 0.025528634, 0.1975376308, 0.3971735537, -0.2059224844, 0.1919439733, -0.2127087265, -0.2657880783, 0.4087334573, -0.3252229691, -0.0258049574, -0.0771460161, 0.2957195044, -0.1709603071, -0.103382796, -0.4683244526, 0.0652704388, 0.4253767431, 0.2509461641, -0.2382995188, 0.2304837406, 0.0510389432, -0.0152829699, 0.1360287964, 0.5226019025, 0.1991051883, -0.3656589687, 0.1683948487, -0.0177091174 ]
https://github.com/huggingface/datasets/issues/3582
conll 2003 dataset source url is no longer valid
We just released a new version of `datasets` with a working URL. Feel free to update `datasets` and try again :)
## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual results It is looking for the dataset at `https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt` but it was removed from there yesterday (see [commit](https://github.com/davidsbatista/NER-datasets/commit/9d8f45cc7331569af8eb3422bbe1c97cbebd5690) that removed the file and related [issue](https://github.com/davidsbatista/NER-datasets/issues/8)). - We should replace this with an alternate valid location. - this is being referenced in the huggingface course chapter 7 [colab notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter7/section2_pt.ipynb), which is also broken. ```python FileNotFoundError Traceback (most recent call last) <ipython-input-4-27c956bec93c> in <module>() 1 from datasets import load_dataset 2 ----> 3 raw_datasets = load_dataset("conll2003") 11 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params) 610 ) 611 elif response is not None and response.status_code == 404: --> 612 raise FileNotFoundError(f"Couldn't find file at {url}") 613 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 614 if head_error is not None: FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
21
conll 2003 dataset source url is no longer valid ## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual results It is looking for the dataset at `https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt` but it was removed from there yesterday (see [commit](https://github.com/davidsbatista/NER-datasets/commit/9d8f45cc7331569af8eb3422bbe1c97cbebd5690) that removed the file and related [issue](https://github.com/davidsbatista/NER-datasets/issues/8)). - We should replace this with an alternate valid location. - this is being referenced in the huggingface course chapter 7 [colab notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter7/section2_pt.ipynb), which is also broken. ```python FileNotFoundError Traceback (most recent call last) <ipython-input-4-27c956bec93c> in <module>() 1 from datasets import load_dataset 2 ----> 3 raw_datasets = load_dataset("conll2003") 11 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params) 610 ) 611 elif response is not None and response.status_code == 404: --> 612 raise FileNotFoundError(f"Couldn't find file at {url}") 613 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 614 if head_error is not None: FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version: We just released a new version of `datasets` with a working URL. Feel free to update `datasets` and try again :)
[ 0.0253509022, 0.0967388824, 0.065923214, 0.2801699936, -0.0838980228, -0.0983769894, 0.3944682181, 0.1143219024, -0.3661052287, 0.010017517, -0.1598331183, 0.153081283, -0.1152235493, -0.116748184, 0.0637081191, 0.1321539283, 0.0121241845, 0.000835884, 0.0810598731, 0.0310794916, -0.3898716569, 0.4209730923, -0.4365297556, 0.0629990324, -0.3902913928, 0.0804226398, -0.16993846, 0.4743026495, -0.2052625716, -0.1979974657, 0.4889352322, -0.1144517735, 0.1795951575, 0.2775033414, -0.0001129979, 0.1032520011, 0.2143998146, -0.0595819652, -0.5245830417, -0.3750487864, -0.5292636156, -0.0421055257, 0.0451603718, -0.0714644417, -0.0944876298, 0.4565855563, -0.0474237651, 0.0319452174, 0.3811579347, 0.7521839142, 0.1968508512, 0.4414002001, 0.1743047684, -0.1015697122, 0.5255883932, 0.0766244978, -0.1110145971, 0.6119887829, -0.0278862678, -0.0886689126, 0.0172358286, 0.279619664, -0.1529474109, -0.1965390444, 0.2908532917, 0.1870018393, -0.2838508487, -0.1528364569, -0.1646653563, 0.1080819592, 0.2675341368, -0.2151462734, -0.4405227005, -0.2066781372, -0.0290534962, -0.4647008777, 0.3244925439, -0.0935686827, -0.0408927202, 0.3328481615, -0.0077437395, -0.3877592683, -0.2175438851, 0.2450855076, -0.2362279743, 0.4616679251, -0.1982468516, -0.0661138296, -0.0414219536, 0.0715459883, 0.3729721904, 0.0184813589, 0.1353755146, 0.1575663984, -0.1948741823, 0.0408191457, 0.0827621222, 0.0212456379, 0.0772702619, 0.0586711951, 0.0275252163, -0.3540601134, -0.246681273, 0.0627682135, -0.0127243958, 0.1849479824, -0.1086144745, 0.2846391499, 0.2959340215, 0.4536523521, -0.0691286325, -0.13704741, -0.0618424416, -0.1590445489, -0.307711184, 0.1159120873, 0.4330877066, -0.2834414542, -0.4536600709, 0.1265705675, -0.075455457, -0.0376193821, 0.1437016577, 0.2931142747, -0.2419084162, 0.1813091636, 0.3210600317, 0.0947435498, -0.0665304735, -0.2068404257, -0.1123542786, 0.0930938572, -0.1624078155, -0.1120410338, 0.0973365009, -0.1617785692, 0.2950329781, 0.0580094196, -0.0498434678, -0.0270661563, -0.118618384, -0.0825600699, 0.0584098808, 0.0959890485, -0.255908668, -0.0700638592, 0.1872967333, -0.1893987507, -0.0909802318, -0.0214241836, -0.4910676479, -0.3637753725, -0.5540165305, 0.168131873, -0.1340541691, -0.0802562088, 0.2238660604, -0.1684782654, -0.1284169555, -0.2272421271, 0.0041453838, -0.1627313495, -0.4808424115, -0.2206246853, 0.3789058328, 0.6022601128, -0.0749849826, -0.144536376, -0.0296847504, -0.0125884572, -0.0113351559, 0.0722648278, -0.2435078323, 0.1706333458, -0.4337828457, -0.2722162604, 0.3397962153, -0.3444938362, -0.3977220356, 0.2569458783, -0.2445739806, 0.1040637046, -0.127039656, 0.0098680332, 0.0058277501, -0.1300293207, 0.4136152267, 0.2132979035, 0.2842938304, -0.1912845224, -0.342669636, -0.0771214291, -0.3532923758, 0.0929969773, 0.1055356041, 0.1955371648, 0.0883221626, 0.0729058012, 0.3487869501, -0.0456362516, -0.011103441, 0.4780996442, 0.523042798, 0.2254860699, -0.1831436455, -0.1006928161, -0.5838641524, 0.2132487744, -0.1837220639, 0.1683391631, -0.140527457, -0.0316184387, -0.3568355441, 0.0358634144, -0.2229212523, -0.2888861001, 0.076976493, 0.2807332575, 0.1073598415, 0.3723208904, -0.2859922349, 0.5278152227, -0.0764867589, 0.1875047982, -0.4465019405, 0.2189902663, -0.1892786622, -0.0683519468, -0.0328542888, 0.2968820333, 0.2758167386, -0.0469949692, -0.2104012966, 0.4799610376, 0.2833930552, -0.033931043, 0.0530576445, -0.1412368268, 0.3879188895, 0.0216606073, 0.0175175183, -0.1234814525, -0.03690321, 0.2466683686, 0.0356053635, 0.4087167084, 0.158116281, -0.1722099781, 0.1716520339, 0.0450472571, 0.2269729078, -0.2442213297, 0.0487258025, -0.2441659272, 0.2858730555, 0.3254208267, 0.1884657443, 0.2218256593, -0.404229641, -0.0688454583, 0.2046669424, -0.0681114346, -0.147220552, 0.4004523754, -0.2549816668, 0.0204702914, 0.0422204919, 0.4559445381, 0.369723618, -0.0018173885, -0.0816521719, 0.1717090905, -0.1631027609, -0.1395666599, 0.3055932522, -0.1335677356, 0.3088121116, 0.1874019951, 0.1382221729, 0.267628938, -0.1393774599, -0.3593531847, -0.1998708844, 0.1674646139, -0.410561949, 0.1584680378, -0.2326514423, -0.1283441484, -0.3285337389, -0.2339736521, -0.3903582096, -0.287291795, -0.0921416134, 0.2891154587, 0.0806999356, 0.0992858931, -0.3818287253, 0.052065324, -0.0832891688, -0.207000792, -0.0555494539, -0.1511656791, -0.2422627658, 0.0415614434, 0.1475660652, -0.1073287949, 0.0884688646, -0.5785440803, -0.111759156, -0.2843218148, -0.233587414, 0.185741663, -0.0151789198, 0.3821644783, 0.266492486, -0.0697070286, -0.2937787473, -0.1993514746, 0.1901034415, -0.1194523126, -0.1287557781, 0.1649290174, -0.046237357, 0.1242080182, -0.0826411545, -0.2610948086, -0.2372128665, -0.212079376, -0.0767427981, -0.1635096818, 0.0332951322, 0.5627381802, 0.0108380523, 0.2882922888, -0.1466232091, 0.3226825297, -0.1974569708, -0.4903647304, 0.2691138685, -0.1067605466, -0.2987869084, -0.0245028082, -0.101401791, 0.0484301746, 0.0408871211, -0.6074545979, -0.333355099, 0.0715180561, 0.2439820617, -0.0836491063, -0.091620259, 0.1310885698, 0.0044971746, 0.0169883594, -0.1084387749, -0.1526849121, -0.0279960651, -0.0123941787, 0.4001573622, 0.1530859619, 0.285666883, 0.0420149304, 0.5507600307, 0.0928631425, -0.2339052707, 0.4759048522, -0.2186863571, 0.4636937082, -0.0296103805, -0.4504038393, 0.0066047665, -0.0370012484, -0.1819276512, 0.0673618913, 0.0650070459, 0.1461120397, -0.383420676, 0.03579925, -0.4171646237, -0.323785603, -0.1294250488, 0.1997882128, 0.51863873, 0.141228646, -0.0203765985, -0.0638150275, -0.1897606105, 0.0956467018, 0.3541416824, 0.3586685061, -0.1536746025, 0.1097293943, 0.0954213291, -0.5346694589, 0.2498691678, 0.1164160147, 0.2855676413, -0.0721211135, -0.0852084905, 0.0033584451, 0.0780051202, 0.7094945312, 0.0957786143, 0.0932210311, 0.1239262298, -0.0134895369, -0.3132127225, 0.0285422429, -0.0567343384, -0.2339721024, 0.7941427827, 0.5793807507, -0.1796579808, -0.2448667139, 0.4700962603, 0.1199061126, -0.1388816535, -0.0222063214, -0.4360752404, -0.2812048495, -0.2433781028, -0.2498898953, -0.0460595787, 0.175698638, 0.2289873362, 0.1411258727, 0.0942482874, 0.0133412443, 0.0069472864, 0.0471279025, 0.3667369783, 0.1521010697, 0.0875141248, 0.1237420887, 0.3165043592, 0.2233427465, 0.5931283832, -0.2113486081, -0.5890557766, -0.0196701903, 0.1716353446, 0.0961006135, 0.2409362644, 0.0272362418, -0.1374897212, 0.1331938952, 0.0229494162, -0.0222947616, 0.2598652244, 0.3909745216, -0.1052041799, -0.1667043269, -0.2202133089, 0.1839201301, 0.0799533799, 0.0702645034, 0.0616287738, 0.0346186124, -0.2053495497, 0.0974564627, 0.0519538261, 0.8340656161, 0.157977432, 0.201674059, 0.5079487562, -0.041616302, 0.4650934935, 0.2374851853, 0.1631447524, -0.249722302, -0.2047721744, -0.1255884767, -0.1783704907, -0.137865603, -0.1744802743, -0.1000150219, 0.3202367723, 0.0559699126, 0.209402293, 0.2041436583, 0.2568252683, -0.0647969991, 0.1942098886, -0.1986092776, 0.1063385308, 0.0070619229, 0.3560439646, -0.1907224953, -0.0848865062, -0.1383392811, -0.1336325705, -0.1906439364, 0.2861297727, -0.3470436037, 0.2383952588, 0.1994378567, -0.5571333766, -0.1531778425, 0.3834462762, 0.1671642065, -0.0660771951, -0.1919646114, 0.172549516, 0.0226812586, -0.0504725277, 0.1469898075, 0.0166521762, 0.3030378222, -0.1667350829, -0.2799091041, 0.019603109, -0.1332208514, -0.4376718104, 0.4721125364, 0.0408408269, -0.0180420168, -0.2416033745, -0.1377818882, 0.0410687476, 0.1678078622, -0.3979026675, 0.1352979541, 0.1070146114, 0.0997831523, -0.282445997, -0.2128213644, -0.3429228067, -0.1134912223, 0.2461919039, -0.4026428461, 0.1572065055, 0.3691962659, 0.2164934427, -0.0388050489, -0.0947909579, 0.1664259732, -0.4295641482, -0.4276159406, 0.1911737174, 0.1135646552, 0.195710361, -0.2244526744, 0.2241283804, 0.2131268829, -0.0234991703, 0.0816683546, -0.4208971262, -0.0573577397, 0.179807201, -0.1346451938, 0.0890328735, 0.1785348803, 0.1280143559, 0.0844882727, -0.39983055, -0.3125585914, 0.2659762502, -0.1955264658, -0.0455458388, 0.0448860452, -0.0963082463, 0.2457349002, -0.1079395339, 0.1482986063, -0.0357735567, 0.0924094096, -0.1786075234, -0.3083226383, 0.1198837236, 0.0477711335, -0.3378747404, -0.186585471, -0.1435094178, 0.0013373481, -0.0741073713, -0.0993194878, 0.3183906972, 0.1246545091, 0.3457006514, -0.3861229718, 0.0770087838, 0.0285548288, 0.2465441227, -0.060096126, 0.3072298467, 0.2335361242, 0.3626565933, -0.1410410404, -0.0174735803, -0.1161890179, 0.0941664875, -0.304459095, -0.047407411, 0.2895689607, -0.1286600828, -0.2583488822, 0.0804452226, 0.2489448935, 0.2149027586, -0.2065898329, 0.0493826792, 0.2251132578, 0.1854285747, -0.3118268847, 0.0312931389, 0.0394633524, 0.0260484926, 0.0641547963, 0.1031032279, -0.0655573308, -0.0265722834, 0.0206055716, 0.2290819585, 0.2501906157, 0.329916358, 0.1768212914, 0.1094231009, 0.1164157689, 0.2759676874, 0.2468852103, -0.023601545, 0.2308472395, 0.0375321619, 0.1384308636, -0.0496865101, -0.4090566039, 0.3574178815, 0.183890745, -0.4850933552, 0.1525864899, 0.098277919, -0.3351129889, 0.0595584698, -0.0835897848, 0.3090578616, -0.3447545469, 0.0961189121, -0.2887633145, 0.4542267621, -0.1170191094, -0.0377432294, -0.2764167488, -0.1713253111, 0.1708384603, 0.2148483396, -0.0155136036, -0.0815984458, 0.0520277172, 0.161512211, -0.1662601382, -0.1590646356, 0.2457882613, 0.2846098542, 0.1373610497, -0.1913719773, 0.2791170776, 0.1394008994, -0.0336038321, -0.0040965937, 0.3988018632, 0.4129146338, 0.0947472155, 0.0996777341, -0.0073963674, -0.0163154658, 0.0193068869, -0.1174129993, 0.2872723937, -0.0070247054, 0.0536852516, 0.386731714, 0.2063885629, -0.1790587455, 0.0651682764, -0.0069419015, 0.26603356, -0.3323436081, 0.3762597144, -0.1992399842, -0.0937547088, -0.153156206, 0.1921987534, -0.291882664, 0.3629387617, 0.299915731, 0.0027929908, 0.2230302095, 0.0913587511, 0.0659094006, 0.0418185852, -0.0205159392, 0.7449780107, 0.2307311147, -0.3425579071, -0.464594543, -0.6903236508, 0.2836838961, -0.0210065749, -0.212864846, 0.0345652625, -0.0700096637, -0.2509898543, 0.024474198, -0.0838142559, 0.0082125431, -0.0987113565, -0.118060261, -0.3277314305, 0.0180022474, -0.0246572644, 0.0822507739, -0.0575739704, -0.3346542418, 0.0516878068, -0.2780436277, 0.0366745293, -0.1110831499, -0.1087007225, -0.0403331928, 0.0017609168, 0.4773257375, 0.1844790429, 0.0303753912, -0.2066303939, -0.3831861913, -0.2202346623, -0.1590362191, 0.0039391592, -0.0141007556, -0.1668247432, 0.2478741258, -0.0052259699, -0.1130278558, -0.3594194949, 0.6564289927, 0.1941615045, -0.0665682629, -0.3242474496, 0.1254468411, -0.155978933, 0.025528634, 0.1975376308, 0.3971735537, -0.2059224844, 0.1919439733, -0.2127087265, -0.2657880783, 0.4087334573, -0.3252229691, -0.0258049574, -0.0771460161, 0.2957195044, -0.1709603071, -0.103382796, -0.4683244526, 0.0652704388, 0.4253767431, 0.2509461641, -0.2382995188, 0.2304837406, 0.0510389432, -0.0152829699, 0.1360287964, 0.5226019025, 0.1991051883, -0.3656589687, 0.1683948487, -0.0177091174 ]
https://github.com/huggingface/datasets/issues/3580
Bug in wiki bio load
+1, here's the error I got: ``` >>> from datasets import load_dataset >>> >>> load_dataset("wiki_bio") Downloading: 7.58kB [00:00, 4.42MB/s] Downloading: 2.71kB [00:00, 1.30MB/s] Using custom data configuration default Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to /home/jxm3/.cache/huggingface/datasets/wiki_bio/default/1.1.0/5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/load.py", line 1694, in load_dataset builder_instance.download_and_prepare( File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/builder.py", line 595, in download_and_prepare self._download_and_prepare( File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/builder.py", line 662, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/jxm3/.cache/huggingface/modules/datasets_modules/datasets/wiki_bio/5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9/wiki_bio.py", line 125, in _split_generators data_dir = dl_manager.download_and_extract(my_urls) File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 308, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 196, in download downloaded_path_or_paths = map_nested( File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 251, in map_nested return function(data_struct) File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 217, in _download return cached_path(url_or_filename, download_config=download_config) File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 298, in cached_path output_path = get_from_cache( File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 612, in get_from_cache raise FileNotFoundError(f"Couldn't find file at {url}") FileNotFoundError: Couldn't find file at https://drive.google.com/uc?export=download&id=1L7aoUXzHPzyzQ0ns4ApBbYepsjFOtXil >>> ```
wiki_bio is failing to load because of a failing drive link . Can someone fix this ? ![7E90023B-A3B1-4930-BA25-45CCCB4E1710](https://user-images.githubusercontent.com/3104771/149617870-5a32a2da-2c78-483b-bff6-d7534215a423.png) ![653C1C76-C725-4A04-A0D8-084373BA612F](https://user-images.githubusercontent.com/3104771/149617875-ef0e30b0-b76e-48cf-b3eb-93ba8e6e5465.png) a
154
Bug in wiki bio load wiki_bio is failing to load because of a failing drive link . Can someone fix this ? ![7E90023B-A3B1-4930-BA25-45CCCB4E1710](https://user-images.githubusercontent.com/3104771/149617870-5a32a2da-2c78-483b-bff6-d7534215a423.png) ![653C1C76-C725-4A04-A0D8-084373BA612F](https://user-images.githubusercontent.com/3104771/149617875-ef0e30b0-b76e-48cf-b3eb-93ba8e6e5465.png) a +1, here's the error I got: ``` >>> from datasets import load_dataset >>> >>> load_dataset("wiki_bio") Downloading: 7.58kB [00:00, 4.42MB/s] Downloading: 2.71kB [00:00, 1.30MB/s] Using custom data configuration default Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to /home/jxm3/.cache/huggingface/datasets/wiki_bio/default/1.1.0/5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/load.py", line 1694, in load_dataset builder_instance.download_and_prepare( File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/builder.py", line 595, in download_and_prepare self._download_and_prepare( File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/builder.py", line 662, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/jxm3/.cache/huggingface/modules/datasets_modules/datasets/wiki_bio/5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9/wiki_bio.py", line 125, in _split_generators data_dir = dl_manager.download_and_extract(my_urls) File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 308, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 196, in download downloaded_path_or_paths = map_nested( File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 251, in map_nested return function(data_struct) File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 217, in _download return cached_path(url_or_filename, download_config=download_config) File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 298, in cached_path output_path = get_from_cache( File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 612, in get_from_cache raise FileNotFoundError(f"Couldn't find file at {url}") FileNotFoundError: Couldn't find file at https://drive.google.com/uc?export=download&id=1L7aoUXzHPzyzQ0ns4ApBbYepsjFOtXil >>> ```
[ -0.0613215007, 0.0982688144, -0.030225791, 0.1260512322, 0.0026656557, 0.2975159883, 0.6769422293, 0.3991516232, 0.4630135298, 0.0595791228, 0.1997943223, -0.2422289401, 0.3955300152, 0.3415488601, 0.2029338628, -0.0963699743, 0.0754149184, 0.1798694134, 0.164155513, 0.0234626289, -0.4353514612, 0.2718142271, -0.3163642585, -0.0709683895, -0.0022901318, 0.2204676867, -0.0486064628, 0.1739231944, 0.1275296658, -0.3497761488, 0.1432876736, -0.0045095962, 0.1551934034, 0.0697782859, -0.0001120384, -0.0412577465, 0.5240587592, 0.0692042187, -0.3178608716, -0.1597373039, -0.2016113847, -0.038524773, -0.1497915685, -0.2445720136, 0.222990036, 0.2346722335, -0.2139966935, 0.1252021641, -0.0390265137, 0.095315218, 0.1987968981, -0.0583581924, 0.2646194994, 0.0181408711, 0.373273015, 0.0155798793, 0.004091749, 0.1633307338, 0.0842435211, -0.0787586048, 0.1086569577, 0.2383839488, -0.0801677629, 0.0364521034, 0.2402081788, 0.1237170622, 0.469260931, 0.0567197166, 0.3530782163, 0.196989879, 0.5903748274, -0.029433541, -0.0415295847, -0.1280734539, 0.1252171397, 0.0674251318, 0.5954215527, 0.083250545, -0.2610492408, 0.0010718853, -0.0759624243, -0.1854424328, 0.030908769, 0.1090274379, -0.2020788491, 0.4105586708, -0.0226751808, 0.1136516109, 0.1786896139, -0.0503636263, 0.439520061, -0.1361645907, -0.2339851558, 0.1896787137, -0.2070209384, -0.0135005675, -0.1201122254, 0.4156011641, 0.3326585293, -0.325973928, 0.0862748697, -0.1449965984, -0.0840852335, 0.156733036, 0.3609647453, 0.1589261591, -0.3195386827, -0.2217241526, 0.1891439855, 0.5125038028, -0.1305964887, -0.0907890275, 0.1653165221, -0.2762566209, 0.0100304699, -0.0455010794, -0.0257761665, -0.1979429871, -0.2321031839, 0.2980462611, -0.0614856854, -0.0023870408, -0.145863235, 0.2161228955, -0.1866011024, 0.2515211403, 0.3574249148, 0.0559017882, -0.08244358, 0.2357937396, -0.0064375661, 0.1222191826, -0.1600072384, 0.0751017928, 0.041018147, 0.2605437338, 0.1595260054, -0.0307611395, 0.0222867317, -0.39692837, -0.2733927071, -0.0234411396, -0.1531261802, 0.4796100259, 0.2142432481, 0.2036483139, 0.0983549505, -0.2911837697, -0.0044184998, 0.1289333701, -0.4867874682, -0.0358147174, -0.1450825632, 0.2033910304, -0.0839762762, 0.0512781627, -0.3130125105, -0.2335722446, -0.1537125409, -0.5989360809, -0.1933733821, 0.1386003047, -0.2395392209, -0.1024351567, 0.4039417207, 0.4156986475, -0.0000540864, 0.0006987881, -0.1018156484, 0.221610114, -0.1046172678, -0.0115218544, -0.0665412769, 0.2728335857, -0.4923346639, 0.0681294501, 0.1394853592, -0.5229017138, -0.3849205375, 0.3950123787, -0.0558390245, -0.0748338103, -0.2254002541, 0.0224612616, -0.171860829, -0.2614789009, 0.1190688163, 0.4715366662, -0.0372194238, 0.0370564498, -0.3601984382, -0.425583005, -0.2468296438, 0.0589730293, 0.1532991081, 0.1000128388, 0.3745217025, 0.3775418401, 0.3174522221, -0.052669052, 0.0075054606, 0.3026786745, -0.0005597685, -0.2805963755, 0.0717739835, 0.1443169117, -0.6967500448, 0.2145917863, 0.1342649609, -0.1452383995, 0.0655709207, -0.0180687867, -0.3974496424, -0.022609489, -0.304025352, 0.0289518666, 0.1877515465, -0.129485175, -0.3595653772, 0.3108113706, 0.0705135614, -0.404759407, 0.0033293453, -0.004886921, -0.1110967919, 0.5477662683, -0.2119180411, 0.1507650018, 0.1548176259, 0.1962381303, 0.2885977328, 0.0184415467, -0.2963322997, 0.3926656544, 0.020285191, 0.5912396312, -0.1091182381, 0.0454166234, 0.243949309, -0.113401711, -0.0318651833, 0.2581079006, 0.1675772965, -0.3847643137, -0.3260566592, 0.0671094507, -0.4722248316, 0.2535615265, -0.0317483284, 0.1512222886, -0.0039379951, -0.1320745945, 0.268676579, -0.1653390378, 0.2369305938, 0.3005073071, 0.1409522295, -0.1240865439, 0.0487931296, -0.058315102, -0.0739746988, 0.0053915423, -0.0375064649, 0.0606850162, -0.2345572114, -0.2763438821, 0.2204355597, 0.6737369299, 0.260063827, -0.005643636, 0.008669951, 0.1155954152, 0.0886212364, -0.1802458018, 0.1946678907, -0.1819589287, 0.3414664567, 0.5268104076, -0.0419181995, 0.130900681, -0.0200578645, 0.1966885179, -0.0317106247, 0.1356153935, -0.3464453518, 0.0159594994, 0.1411156505, 0.0895185992, -0.1570016593, -0.1600888371, -0.1566587538, -0.5299164057, -0.1529946029, 0.310174793, 0.0519989654, -0.0020079205, -0.2153822482, 0.0633928627, -0.0450392477, -0.3012970686, -0.2802174091, -0.166239202, -0.1843260676, 0.010073876, 0.3071174026, 0.3969074488, -0.093542926, -0.2608629763, -0.0544393212, -0.5180279613, -0.2140035033, 0.0895874873, 0.009760214, 0.2636328042, 0.3468266428, 0.441468209, -0.0027954967, -0.3451708555, 0.3658564091, -0.2022988051, 0.0751831681, 0.1757010967, 0.1088136733, 0.2546120286, 0.0045823469, -0.0621655285, 0.0434252545, -0.136287272, -0.099525854, 0.0989914611, 0.0213517547, 0.164816305, 0.2196959406, -0.1433317959, 0.3730157018, -0.3456758261, -0.2219170332, -0.5155209303, 0.1750330329, 0.0200925805, -0.281994611, 0.0942076445, 0.0491555557, 0.3897114694, -0.1497113109, -0.7762524486, -0.1750956774, 0.1764869839, 0.1341579705, -0.2710337341, 0.1375263482, -0.0636332706, 0.1490373015, -0.0426763631, -0.1238144413, 0.0575473532, -0.1657856852, -0.1460285485, 0.4222705662, 0.1180641502, 0.3106056154, -0.1010600328, 0.4293083251, -0.2367257327, 0.1414278746, 0.3598566055, 0.119937405, 0.2073980719, 0.0484702922, -0.1515017897, 0.2243542969, -0.2150793374, -0.2759131789, 0.2897332311, 0.0841631293, -0.2078194767, -0.1819661707, -0.0039161141, -0.3510740697, -0.401733309, -0.0494112074, 0.025591528, -0.0422933027, -0.0191890988, 0.0862031356, -0.0684956983, -0.3093547523, 0.3480349183, 0.3033264279, 0.0825321749, -0.0430595577, -0.0536691919, -0.2354566902, -0.428604573, 0.0636095405, -0.0387193598, 0.3084695041, -0.0453210361, 0.3653308451, -0.0217620693, -0.271178931, 0.4082300067, -0.4427731335, 0.4547968507, 0.1960619688, 0.4042750895, 0.1210188419, -0.0660651699, 0.1454250365, -0.1657995135, 0.407789439, 0.3090206087, -0.0432862863, -0.1309276223, 0.2604501843, 0.3785761893, -0.2095826864, -0.536988616, -0.1001104787, -0.2804809511, -0.285577029, -0.344940871, -0.0229214113, 0.2270928919, -0.1357207596, -0.1570945382, -0.1822978854, -0.2013264894, -0.2073594332, -0.0157895107, -0.0185513124, 0.0272832494, 0.1652857214, 0.2095977366, 0.0341379046, 0.2945013344, 0.0992199406, -0.1345119029, 0.38877213, -0.203579545, -0.114946045, -0.2539904416, 0.0576421916, 0.0387553275, -0.1488201767, 0.0275713988, -0.1597865522, -0.120517686, -0.0909025967, 0.1678765267, 0.0199331418, -0.1679246128, -0.176988706, 0.933029592, -0.0865022838, -0.0713556111, 0.1796815693, 0.5294451118, -0.4653528631, 0.0764802098, 0.2811094522, 0.7232988477, -0.0414342992, 0.0619135574, 0.0771217719, 0.1286533624, 0.2336655408, -0.038167391, -0.0811478049, -0.4565414488, -0.051214017, -0.1787762642, 0.0014900276, -0.1951867193, -0.130067423, -0.3205911219, 0.216093123, -0.2006234676, 0.1260544062, 0.0149146933, 0.0516994484, -0.2127798051, -0.1738109589, -0.3465439081, 0.1629563272, 0.0298193209, 0.1642974317, -0.2725332975, 0.1215752289, 0.3048701286, -0.1252900064, -0.3928075731, 0.1243968233, -0.30245471, 0.0445450172, -0.2617815435, -0.4674718976, 0.0518079847, 0.6251590252, 0.1250040382, 0.3246635497, -0.3180439472, 0.3842650056, -0.4345547557, -0.0159917194, -0.2449137419, 0.0130588347, 0.0013840493, -0.2208711803, -0.2693400383, 0.0825734735, -0.2877449095, -0.2119348049, 0.1707760096, 0.1378979981, 0.0293853506, -0.0755992532, -0.3247169554, -0.1352315545, 0.006498273, -0.3147184849, 0.1368502975, 0.0306601971, 0.062396761, -0.01994754, 0.1868048906, -0.0962903425, 0.0437913202, 0.3657380342, -0.3260503709, -0.2148300707, 0.468764931, 0.1146247461, 0.0477000736, -0.1702964604, 0.3505913317, -0.0102265077, -0.1416025758, -0.1437921673, -0.2076692879, 0.1830796152, -0.0965127498, 0.5914368033, 0.2143858075, -0.0444937646, 0.2614105344, -0.6760597229, -0.1497579217, 0.2870424986, -0.2791707218, 0.2845057249, 0.0909311026, -0.2353379577, 0.0004765778, 0.0318962745, -0.2460525781, 0.3623355925, -0.372320354, -0.1092362702, -0.0134056034, 0.1861159503, 0.1639224738, -0.173542738, 0.1507253796, -0.1358465254, 0.1026344672, -0.1758716851, -0.1523792893, 0.123094365, 0.3749914467, 0.0119452281, 0.1080755666, -0.1082466468, 0.0161662865, -0.1096356064, 0.0294757746, -0.1647364795, -0.0503466614, -0.1933333874, 0.2128674239, 0.4462498426, -0.5195338726, 0.2015985698, -0.0659637898, 0.3449785113, -0.1511737108, -0.0151289199, 0.0741859153, 0.0960892662, 0.0192117617, 0.0451257005, 0.0313284472, 0.0102164429, 0.4435851574, -0.2076969594, 0.1739426255, 0.1276585311, 0.116464138, 0.2501311302, -0.3121620417, 0.0307557117, 0.1118327677, 0.2471236885, -0.0423820727, -0.140955925, -0.0835538134, -0.1143989414, -0.0598573722, 0.1710718423, 0.3030191064, -0.4619199634, -0.1681239456, 0.1826010197, 0.3920097053, -0.2585402429, -0.1708071828, 0.3841070831, -0.0635316148, 0.31440714, -0.1486016661, -0.0309132691, 0.1038158908, 0.3625658751, -0.1812178791, -0.0380024798, 0.3248906136, 0.1043106392, -0.3029195964, -0.1397488266, 0.2814696729, 0.1162704676, -0.2123886198, -0.0351936668, 0.2096671462, -0.122573711, -0.2782359421, 0.072627373, -0.2472034246, 0.1242805347, -0.0001519113, -0.3101362288, -0.1750664115, -0.1257891208, 0.0391364098, 0.1310409456, -0.075995855, -0.1563420147, 0.0754875317, 0.2071987689, -0.0658537969, -0.2519572675, -0.0067213979, 0.4473086596, 0.0028854096, -0.3146316707, 0.0371938199, 0.0093173617, 0.1217745617, 0.1306445301, 0.0389769226, 0.460508734, 0.2290255278, -0.2518902421, -0.3125679195, -0.0223243292, 0.1134353355, 0.0335027613, -0.0281739477, 0.2214767784, 0.0310784597, 0.246869877, 0.2274148464, -0.1754947603, 0.0026888093, 0.0900484174, 0.0193288848, -0.1543839872, 0.174292028, -0.3739700317, -0.1073411405, -0.3438795805, 0.2055633366, -0.0865110308, 0.3600841761, -0.0409536026, 0.0088232132, 0.1911738813, 0.2322973162, 0.0844204202, 0.08333572, 0.439350754, 0.3046764135, -0.1114056632, -0.3251948953, -0.2829166651, -0.6179023385, -0.1165615246, -0.0084775807, -0.0800715461, 0.2445027083, -0.1059629917, -0.3378681839, 0.1080409437, 0.2052682787, 0.2417598814, 0.2494273931, 0.1259482354, -0.1533595324, -0.2625770867, 0.0991341695, -0.0379873738, -0.4095817804, -0.2816748023, 0.123016648, -0.169699356, 0.1132838279, -0.0787972212, 0.2945601344, -0.2630518377, 0.0931650549, 0.3853117526, -0.0259432197, 0.3743810058, -0.0921175331, -0.3323178291, -0.4476427734, -0.2514593601, 0.1225628927, -0.140282318, -0.1102136523, 0.172386989, 0.1407510489, 0.0428837202, -0.2542278767, 0.2349997908, 0.0828207731, 0.3494171202, -0.4413537979, 0.0656775683, 0.0284844227, 0.1942735761, 0.4152616262, 0.1810844094, -0.1507044286, 0.2965551913, -0.1727122366, -0.3651262224, 0.2838021219, -0.1870024651, -0.2137194723, -0.0143735362, 0.1951068938, -0.2692695856, 0.1397098005, -0.6836991906, 0.0103745563, 0.2388759255, 0.2707912326, -0.3955022693, 0.0485289693, 0.0864486918, -0.0797961131, 0.1038204357, -0.2291599065, 0.1993590742, -0.1522050202, -0.0207890943, -0.0481308177 ]
https://github.com/huggingface/datasets/issues/3580
Bug in wiki bio load
@alejandrocros and @lhoestq - you added the wiki_bio dataset in #1173. It doesn't work anymore. Can you take a look at this?
wiki_bio is failing to load because of a failing drive link . Can someone fix this ? ![7E90023B-A3B1-4930-BA25-45CCCB4E1710](https://user-images.githubusercontent.com/3104771/149617870-5a32a2da-2c78-483b-bff6-d7534215a423.png) ![653C1C76-C725-4A04-A0D8-084373BA612F](https://user-images.githubusercontent.com/3104771/149617875-ef0e30b0-b76e-48cf-b3eb-93ba8e6e5465.png) a
22
Bug in wiki bio load wiki_bio is failing to load because of a failing drive link . Can someone fix this ? ![7E90023B-A3B1-4930-BA25-45CCCB4E1710](https://user-images.githubusercontent.com/3104771/149617870-5a32a2da-2c78-483b-bff6-d7534215a423.png) ![653C1C76-C725-4A04-A0D8-084373BA612F](https://user-images.githubusercontent.com/3104771/149617875-ef0e30b0-b76e-48cf-b3eb-93ba8e6e5465.png) a @alejandrocros and @lhoestq - you added the wiki_bio dataset in #1173. It doesn't work anymore. Can you take a look at this?
[ 0.0321893357, 0.0049939719, -0.0749883205, 0.122026898, 0.016177563, 0.2904135883, 0.6395812631, 0.2936856747, 0.4558522105, 0.0400671251, 0.0808757097, -0.1471681297, 0.4145267904, 0.3167213798, 0.2637818158, -0.0694372877, 0.1417486817, 0.1680009663, 0.0526714362, -0.0401646793, -0.4097279608, 0.2010998279, -0.3452147245, -0.0935670435, 0.0569344871, 0.3452290893, -0.0383211151, 0.2691899538, 0.1993586123, -0.2956793308, 0.1510446817, -0.0349285752, 0.1660060734, -0.0131754801, -0.0001058121, -0.0514536388, 0.5034428835, 0.1031743139, -0.283811301, -0.0819241405, -0.1528716832, 0.0106592039, -0.1329654157, -0.2454867214, 0.233149007, 0.4125384092, -0.1100318357, 0.1383201927, -0.0737391785, -0.0282731764, 0.2804980874, -0.1134445444, 0.2686680555, -0.007036732, 0.3582026958, 0.0612106621, -0.0504147187, 0.130283162, 0.1840683371, -0.1097538844, 0.1090710163, 0.3015873432, -0.0726227909, -0.0958292335, 0.1213853732, 0.1309720874, 0.5586109757, 0.0022679558, 0.2993285656, 0.1721432656, 0.530862093, 0.0990452319, 0.1447457075, 0.0643847659, 0.0348383859, 0.1001192108, 0.6453246474, 0.0554174371, -0.1523694247, -0.0184276439, 0.0134235984, -0.210950464, 0.0009018283, 0.0461050607, -0.1298764795, 0.5157305598, 0.0441599153, 0.0524288565, 0.1457580626, -0.0095199049, 0.5015138984, 0.0094790012, -0.3065363169, 0.2240990698, -0.135456562, -0.0738133788, -0.1615031064, 0.5286125541, 0.3844703734, -0.2776503265, 0.0381723531, -0.0262188092, -0.0645927936, 0.0504532158, 0.3267804682, -0.0301167853, -0.2475215346, -0.2702340782, 0.2053948045, 0.3790852427, -0.2248229682, -0.032967329, 0.1885248572, -0.2643593848, 0.0336489491, -0.0834995285, -0.0327565521, -0.293204844, -0.0934331343, 0.2882063389, -0.119633086, -0.0872826874, -0.1877696961, 0.2108186185, -0.1012838408, 0.195802018, 0.3764630556, -0.0337200202, -0.0617506914, 0.2167543918, -0.0570985451, 0.0615500398, -0.1889374554, 0.1595330387, 0.0608030222, 0.2485339046, 0.1584463716, 0.0628735945, -0.0486480556, -0.3765262663, -0.3045425415, 0.0580804162, -0.1916731298, 0.4507753849, 0.2559258938, 0.1502247304, -0.0096713584, -0.2717125714, 0.0544998981, 0.2107949555, -0.5546461344, -0.0510776639, -0.2441647053, 0.2522596121, -0.0867981613, 0.0537910163, -0.3021350801, -0.2135029137, -0.1333462745, -0.6531451941, -0.1036272123, 0.2123244256, -0.1859182864, -0.0474096127, 0.3338044286, 0.3355466723, 0.0466079302, 0.0594823547, -0.1239496544, 0.2168784142, -0.064438954, -0.0583727434, -0.0706964284, 0.2424896061, -0.4760736823, 0.1222537458, 0.1051833183, -0.3855216503, -0.2761519253, 0.2233294696, -0.0169867333, -0.0117250299, -0.2174094468, 0.0348909646, -0.2360233665, -0.2666628659, 0.1021765918, 0.4103854001, 0.058266364, 0.0220327284, -0.4388059974, -0.3693470061, -0.1575174183, 0.0138411215, 0.2064609528, 0.154268831, 0.4071460962, 0.4161361754, 0.3813931346, -0.1062855646, -0.0628231093, 0.291865319, 0.1130941212, -0.2300514728, 0.1492867619, 0.1587335169, -0.6886051893, 0.1638334095, -0.0348458439, -0.0678869039, 0.2805160284, 0.0246764086, -0.3883666694, -0.0936734006, -0.2190939486, 0.015218202, 0.2497884184, -0.1104151607, -0.3157588243, 0.3361887038, 0.0844959915, -0.4631016552, -0.0451100394, -0.0395951681, -0.1290199608, 0.7025788426, -0.2560606301, 0.0583580062, 0.0436946191, 0.1731844544, 0.2751403749, 0.025732208, -0.2385993749, 0.2625121772, -0.0397052094, 0.4564493895, -0.0364487395, 0.1105249524, 0.202957958, -0.1760911047, -0.187555179, 0.2225958705, 0.2034550756, -0.3999115825, -0.2713217139, -0.0182985477, -0.439245522, 0.2484747618, -0.1601634026, 0.1663233936, 0.019834429, -0.1942342967, 0.2979618907, -0.0596639737, 0.2741821706, 0.2583996952, 0.0189832635, -0.1534976214, 0.0143328551, -0.011060453, -0.0686179772, -0.0169749744, -0.0032376128, 0.075265713, -0.2245488018, -0.2744240761, 0.2297228128, 0.3916953504, 0.2010618001, 0.032647267, -0.014846772, 0.0639988035, 0.0839592665, -0.1966771334, 0.2214975953, -0.2267286181, 0.3052075803, 0.371222496, -0.0168708693, 0.1292235106, -0.0936923251, 0.2555834949, -0.039782729, 0.1310718209, -0.3490860164, -0.0623320937, 0.2439877987, 0.1217945069, -0.0369532928, -0.2234913111, -0.159416005, -0.5010499954, -0.0478357486, 0.2554008663, 0.0774664134, 0.0915174037, -0.0963528305, 0.1500691473, -0.0995004773, -0.0543692708, -0.4265753925, -0.209302336, -0.1642441899, 0.0969955325, 0.3460110128, 0.4251785874, -0.149617672, -0.1537746042, -0.0506018959, -0.501349926, -0.3363685012, 0.0525863655, -0.058770936, 0.2904320061, 0.1100967228, 0.4560000896, -0.1108577549, -0.3694720268, 0.2613789737, -0.2273626328, 0.0814248174, 0.2397347689, 0.0877935216, 0.2054669559, -0.0210456681, -0.1237462237, 0.1157535166, -0.0277380627, -0.1201119423, 0.0837678388, 0.0372012109, 0.1328160167, 0.1274320334, -0.2187091112, 0.3348773718, -0.3814541399, -0.2775143683, -0.4310783446, 0.1703971326, -0.0256062448, -0.3397458792, 0.1047015935, 0.1897272617, 0.2834196985, -0.2781017125, -0.7148830295, -0.075281918, 0.156208396, -0.0082504088, -0.2018225789, 0.101228714, 0.0073719933, 0.1456771493, -0.0707075298, 0.0154484874, 0.053329967, -0.0948342681, -0.1259070784, 0.3674834669, 0.0575859658, 0.1990104616, -0.1684052199, 0.3298324943, -0.2656649351, 0.2251414657, 0.2511426508, 0.1473821551, 0.1543538123, -0.0118269389, -0.1050312668, 0.2092683315, -0.1489277631, -0.2076374888, 0.3720493019, 0.0932730734, -0.336706996, -0.1662434042, -0.0358461365, -0.2862929404, -0.3657335639, -0.0350057781, 0.0977214575, -0.0931994095, 0.0214495827, 0.0190993324, 0.0028772394, -0.4081562757, 0.4481222928, 0.2951159179, 0.1504817456, -0.1039684117, -0.1617596895, -0.2688617408, -0.3089647591, 0.0900554135, -0.0943216234, 0.1969243884, -0.1474759728, 0.2264870405, 0.0750173181, -0.2694198489, 0.2625767589, -0.385129869, 0.5093774796, 0.1456123888, 0.4499974847, 0.2914902568, -0.0697237849, 0.1020122245, -0.1179592013, 0.4617547989, 0.2590787411, 0.0754775554, -0.0280584805, 0.2366310358, 0.25198856, -0.235802412, -0.5527620912, -0.1179780588, -0.2186840326, -0.1777288914, -0.2150243968, -0.1215473413, 0.2137030661, -0.2038816363, -0.1762563437, -0.1218683794, -0.1906076372, -0.1635872275, -0.00972398, -0.0751667544, 0.0500842743, 0.1086471677, 0.1651383489, 0.004389572, 0.2047919482, 0.0853983387, -0.11280898, 0.4800717533, -0.2080547065, -0.1995807588, -0.1907784045, 0.0410482883, 0.0797049403, -0.1538825035, 0.1204001084, -0.2185419351, -0.2091896385, -0.2044634521, 0.0476392545, 0.0152497571, -0.2038345933, -0.0732001066, 0.9124209285, -0.1026161835, -0.1295142025, 0.2236748338, 0.6109048128, -0.5432291627, 0.1164308563, 0.2565978169, 0.789378643, -0.1162203252, -0.0143024148, 0.0298300125, 0.170292303, 0.1954945028, 0.0064211376, -0.0447905324, -0.5389315486, -0.0256334282, -0.1313225627, 0.0911435708, -0.152248174, -0.1670449525, -0.424487561, 0.0708436966, -0.2227047682, 0.1867394596, 0.0149609158, -0.0349191613, -0.0422807746, -0.0923547447, -0.289832294, 0.2148630768, -0.0013410313, 0.0892847702, -0.2533963919, 0.0725243986, 0.2672751844, -0.0709217191, -0.3715697229, 0.2093080282, -0.1071896255, -0.0053339195, -0.2513712943, -0.4624071717, 0.020809643, 0.4830701351, 0.213895753, 0.3294548392, -0.3438363075, 0.4371058941, -0.2951157093, -0.1140187532, -0.2609067857, 0.0304326341, -0.090464063, -0.2042716295, -0.3862746358, 0.1676174551, -0.2289790213, -0.3484523594, 0.0467878953, 0.1979273409, -0.0818895027, -0.1107004434, -0.2316720337, 0.0175215732, 0.0127700325, -0.3098573685, 0.2205789536, -0.0027469252, 0.0605350249, -0.0034527266, 0.2774509192, -0.0466533639, 0.0040395763, 0.2802680135, -0.2376517951, -0.2006691396, 0.3668930829, 0.165902257, -0.0099296682, -0.2020089626, 0.3500969112, -0.033578597, -0.204050228, -0.2217158228, -0.1287792027, 0.237836495, 0.0050479695, 0.6646981239, 0.116320692, -0.0410882458, 0.2415605038, -0.561475873, -0.130095318, 0.285405457, -0.3169461489, 0.273671627, 0.106584765, -0.3498781621, -0.0265369974, 0.1584674418, -0.3485201895, 0.2578997314, -0.3883544207, -0.086372748, -0.0906159207, 0.1257661879, 0.0998941734, -0.1696928591, 0.1947766542, -0.0999440923, 0.1649338603, -0.2506514192, -0.0695796907, 0.0849863067, 0.3731837273, 0.0162604209, -0.0064740987, -0.1235383302, 0.0966320038, -0.0327283219, 0.0468272716, -0.1389022768, -0.0442816801, -0.1207001731, 0.2505901158, 0.3078176081, -0.5491864681, 0.2037303001, -0.0793551356, 0.2475606799, -0.1452995539, -0.0696637705, 0.0404395498, 0.0688996613, 0.1280554533, 0.1589393169, 0.0140993278, 0.1070216298, 0.5084674358, -0.2343572229, 0.0960679725, 0.156862542, -0.0539776869, 0.1815920919, -0.3014320135, 0.0822321996, 0.045652505, 0.2932404578, -0.0371007547, -0.1145416275, -0.1452701092, -0.1555242538, -0.0798648596, 0.2018888295, 0.3302637041, -0.598886013, -0.0384763218, 0.2307569236, 0.4016573131, -0.2741153538, -0.2068826407, 0.2888035476, -0.0815632567, 0.1822679341, -0.2031429708, -0.0549547002, 0.0087410146, 0.2028177977, -0.0324849337, -0.0878493413, 0.2998213768, 0.1073035151, -0.3090384603, -0.0582325868, 0.2540450394, 0.1234066337, -0.2524114251, -0.0920054689, 0.2442495227, -0.1695666611, -0.2409011722, 0.0343843736, -0.30728513, 0.0716081411, -0.0327604935, -0.3012938499, -0.197346583, -0.1325788498, 0.106019102, 0.1208053008, -0.1154842228, -0.0481584817, 0.1343739778, 0.204969734, -0.1461452991, 0.007223356, -0.0437742248, 0.5441501737, -0.0031991992, -0.2179962993, 0.0276592746, -0.0079482039, 0.0247163698, 0.1422133595, 0.0412205458, 0.304228276, 0.1669274718, -0.1997047961, -0.2241850644, -0.0090652341, 0.0944721028, 0.1351471096, 0.1397847533, 0.270737946, -0.0416623279, 0.1536285877, 0.249168247, -0.2035258114, 0.0519245081, 0.1387372315, 0.1278546751, -0.027804669, 0.0377735831, -0.2723721266, -0.1117757633, -0.2727539539, 0.1183503345, -0.0660246462, 0.3500557542, -0.1497983336, 0.0060556028, 0.069500111, 0.1927739531, 0.1338453293, 0.2014037371, 0.4956014752, 0.3083374202, -0.1874075681, -0.2341723144, -0.3414287865, -0.4651865661, -0.0363794602, -0.0679969639, 0.0492961891, 0.246201545, -0.1571807712, -0.223111257, 0.0591439642, 0.2445404232, 0.1377398819, 0.1943001151, 0.0829604715, -0.1620691568, -0.1452359557, 0.2618022561, -0.0498859175, -0.5260742307, -0.1939099878, 0.2110661864, -0.060184706, 0.1934898198, -0.0331128128, 0.1974800676, -0.2787302136, 0.159950003, 0.3472084701, -0.0513000675, 0.2875782847, -0.054492604, -0.240481779, -0.4141116738, -0.3360842764, 0.1823863089, -0.2685193121, -0.0692737028, 0.0874353871, 0.0881786942, -0.0460552126, -0.1979961544, 0.2316563427, -0.0248661656, 0.2867353857, -0.4601249993, 0.0796018019, 0.0274864677, 0.1672575474, 0.39005512, 0.171328783, -0.1237563044, 0.1821571589, -0.2702988982, -0.2973218262, 0.2465844452, -0.1252272725, -0.2061119825, -0.050475467, 0.238874808, -0.2497933507, 0.1533168107, -0.6114820242, -0.1290853471, 0.1745650321, 0.267331481, -0.3404955566, 0.0677856356, 0.0402705558, -0.0566474348, 0.0587471686, -0.2699503601, 0.2827026248, -0.0592648536, -0.1283339709, -0.1110651717 ]
https://github.com/huggingface/datasets/issues/3580
Bug in wiki bio load
And if something is wrong with Google Drive, you could try to download (and collate and unzip) from here: https://github.com/DavidGrangier/wikipedia-biography-dataset
wiki_bio is failing to load because of a failing drive link . Can someone fix this ? ![7E90023B-A3B1-4930-BA25-45CCCB4E1710](https://user-images.githubusercontent.com/3104771/149617870-5a32a2da-2c78-483b-bff6-d7534215a423.png) ![653C1C76-C725-4A04-A0D8-084373BA612F](https://user-images.githubusercontent.com/3104771/149617875-ef0e30b0-b76e-48cf-b3eb-93ba8e6e5465.png) a
20
Bug in wiki bio load wiki_bio is failing to load because of a failing drive link . Can someone fix this ? ![7E90023B-A3B1-4930-BA25-45CCCB4E1710](https://user-images.githubusercontent.com/3104771/149617870-5a32a2da-2c78-483b-bff6-d7534215a423.png) ![653C1C76-C725-4A04-A0D8-084373BA612F](https://user-images.githubusercontent.com/3104771/149617875-ef0e30b0-b76e-48cf-b3eb-93ba8e6e5465.png) a And if something is wrong with Google Drive, you could try to download (and collate and unzip) from here: https://github.com/DavidGrangier/wikipedia-biography-dataset
[ 0.1476312876, 0.1652756631, -0.0648238063, 0.1482926756, -0.0046193241, 0.3781234324, 0.5248034, 0.3122829199, 0.400731355, 0.1247579157, 0.1112694964, -0.2811300457, 0.4056453109, 0.1641614735, 0.063554883, -0.2315274328, 0.0691660717, 0.2504971027, 0.1303062588, -0.0925101787, -0.3381925225, 0.2806796134, -0.2111637443, -0.0135702118, 0.0083444742, 0.238312304, 0.0313064083, 0.2887831628, 0.1030194238, -0.1287058592, -0.0786871612, 0.0231959466, 0.0263997521, 0.0089255841, -0.0001106031, -0.1400738209, 0.6025160551, 0.0526969135, -0.3154243827, -0.2390884608, 0.029146038, 0.1459305137, -0.1401845813, -0.3149756193, 0.2412003428, 0.33463642, -0.0330025256, 0.2944811285, -0.002435833, -0.0741557851, 0.2819491625, -0.2865889072, 0.2999062538, -0.0900394619, 0.5521533489, 0.0479722433, 0.0854461044, -0.0248486791, -0.1103062481, -0.202500537, -0.0615010932, 0.3241799772, -0.0459270291, -0.0522671193, 0.198201254, -0.0003632907, 0.4951779544, -0.0918880031, 0.5286718011, 0.3288865387, 0.6026448011, 0.2896837592, 0.0688243136, 0.1307011694, 0.0876477882, 0.2774748802, 0.6808755398, 0.2711418271, -0.2731286585, -0.124502942, -0.0315352753, -0.2270626277, -0.0384168364, 0.0302631743, -0.2816877961, 0.3649846911, 0.0537007824, 0.0290112235, 0.2578215599, -0.1464340091, 0.4291780591, -0.0491776802, -0.1617681235, 0.1931586415, 0.0498035178, -0.0632265359, -0.1068906561, 0.5294387341, 0.3183225691, -0.3183693588, -0.0920731798, -0.0989708528, 0.0116633335, -0.0430301577, 0.3947787881, -0.0325761214, -0.1733270437, -0.2937974632, 0.3552401066, 0.4326066375, -0.2678367496, 0.0278600734, 0.1568796486, -0.215790987, -0.04772963, -0.0801471546, -0.1472123116, -0.3518072665, -0.0683413669, 0.4189554751, -0.2193311453, -0.1522507221, -0.3031924665, 0.275300324, -0.289997071, 0.1507221162, 0.3255281746, -0.0813537017, -0.031996049, 0.2373150885, -0.0534760021, 0.0967512429, -0.1567656398, 0.1748632193, 0.024684988, 0.1808201075, 0.1945073158, 0.0573876537, -0.0745504424, -0.3791557252, -0.2652486563, -0.0634308159, -0.1310120821, 0.4032917917, 0.3503065407, -0.0286422577, -0.0434620231, -0.4216338396, 0.0673841387, 0.1931353211, -0.417963326, -0.076850675, -0.0998694524, 0.2259990871, -0.1221125275, 0.0876882523, -0.2450102419, -0.1560429335, -0.1189742014, -0.5366657972, -0.1728395224, 0.3096045554, -0.1135781929, -0.0983852297, 0.289637059, 0.3288464844, 0.1191893891, 0.0542800501, -0.1864718646, 0.3301959038, -0.080365479, 0.0754853338, 0.0009154605, 0.3409102261, -0.3983299434, 0.1914962232, 0.0873281658, -0.2572927177, -0.1586746573, 0.1543868035, 0.1517818272, 0.0198035315, -0.2539976835, -0.0857001394, -0.0694400966, -0.1247564703, 0.0888384953, 0.5150836706, 0.0330689922, 0.1140451133, -0.3237349689, -0.4615079165, -0.0707882792, 0.018579131, 0.3067048788, 0.2249737233, 0.3534298241, 0.3639581501, 0.3170073032, -0.2588341832, -0.0846605748, 0.3196496964, -0.1151653603, -0.0066364934, 0.1749436557, 0.2577257156, -0.5381884575, 0.0511623509, -0.0965013877, -0.1074644029, 0.0248863809, -0.1538000107, -0.2821565568, -0.1757789999, -0.1969384551, 0.1293455064, 0.2652696371, -0.0238352101, -0.1398825943, 0.4027509689, 0.3327240944, -0.5813550353, -0.1140065044, -0.0918760449, -0.1384447664, 0.6158577204, -0.2570338845, 0.0733020976, 0.206415236, 0.1187894046, 0.2014561892, 0.0233773664, -0.2099895328, 0.1154981256, 0.0024185511, 0.5367821455, -0.0206128601, -0.0006908205, 0.1185860336, -0.3087590933, -0.1930521131, 0.378631115, 0.1443344951, -0.4185042679, -0.4837068617, 0.0024557177, -0.3105711043, 0.2553339899, -0.0507804453, 0.2323591411, 0.0361548029, -0.1437792778, 0.2949442267, -0.1071153507, 0.2535239458, 0.3147040009, 0.0164735578, -0.1692749262, -0.0515075773, -0.0192518104, 0.0018678245, 0.0000748213, 0.1068891287, 0.1163858622, -0.1363975108, -0.3284754753, 0.217704758, 0.2683374882, -0.0311977081, 0.0314470865, 0.1093382165, -0.0251781791, 0.2100266665, -0.176499784, 0.2032685429, -0.1921775341, 0.2915428877, 0.3162907064, -0.0717305839, 0.1508385092, -0.126691252, 0.3200340271, -0.0586957, 0.1391138732, -0.2495480329, -0.1137975082, 0.2444889098, 0.1603213996, 0.1817503721, -0.2265072167, -0.2478236854, -0.4206967056, -0.0778099671, 0.3690398633, -0.0216375925, 0.0125863804, 0.0439046323, 0.1388632208, 0.0350758247, -0.1111849844, -0.2949460447, -0.3050592244, 0.0300739408, 0.102979973, 0.33814165, 0.2427388132, -0.0986957476, -0.2393284291, -0.1810597628, -0.5997219682, -0.3878201544, 0.0467534773, -0.1382029802, 0.1142627969, 0.0705008507, 0.4286628962, -0.0997116566, -0.3338388801, 0.1581416428, -0.1870564818, -0.0028594034, 0.1710871607, 0.1416082829, 0.1266436726, 0.1467794925, -0.0744588375, 0.1002207994, -0.0318404511, 0.0235461928, 0.1643732935, 0.0915388018, 0.147324428, 0.0878682584, -0.2603482604, 0.5300243497, -0.1505688131, -0.2649842501, -0.2927203774, 0.2718270123, -0.1536803097, -0.4416193962, 0.1319747865, 0.1079609096, 0.1279834658, -0.1034092158, -0.676240027, 0.0038942043, 0.0321393162, 0.1004092246, -0.219149664, 0.0200209916, 0.0420842171, 0.1559015661, -0.0808536559, 0.0279017333, 0.0143692419, -0.1561445147, -0.1501432806, 0.2934207618, 0.0609124824, 0.158136785, -0.1721151322, 0.4349758327, -0.1250734925, 0.4221836627, 0.1456223428, 0.1679593325, 0.0533021949, 0.0075705829, 0.0258420892, 0.3012544811, -0.1181918308, -0.2133267224, 0.4917706847, 0.1507707089, -0.4824212492, -0.1791642755, 0.0673265904, -0.4516058862, -0.4003469944, -0.0382085182, 0.1790502816, 0.0030251271, -0.023717029, 0.1689325422, 0.0092142774, -0.4326620102, 0.513867259, 0.256287694, 0.1290290058, -0.0698812753, 0.084639594, -0.3165076673, -0.2710371017, 0.1198109165, -0.0422947928, -0.0913138166, -0.185011059, 0.1478354037, 0.042033352, -0.3441326022, 0.1234779134, -0.3824868202, 0.5119059086, 0.0733292475, 0.2420039624, 0.1315625757, -0.0865995958, 0.0727249086, -0.0249666832, 0.4223242998, 0.1259426028, -0.108411096, -0.0329914317, 0.3457530737, 0.1794813424, -0.1631581932, -0.5414903164, 0.034330748, -0.1279679388, -0.0923221558, -0.305626303, -0.2690927684, 0.1814071685, -0.2271395028, -0.0979950204, -0.0395198204, -0.0602647439, -0.1937260777, -0.0027888687, -0.0575987957, 0.0552585684, -0.022117231, 0.1514377147, -0.0279667135, 0.1364670545, 0.1290243864, -0.1351657808, 0.3763080537, -0.1987821013, -0.2555454373, -0.4055329859, 0.0753765255, 0.0832382664, -0.2216463685, 0.0949853435, -0.1614903361, -0.1522884071, -0.2642438412, 0.0495776199, -0.0278396774, -0.0502440967, -0.0168925859, 0.9155882597, -0.0020062784, -0.0763552487, 0.1665463001, 0.5554491878, -0.4581508934, 0.0754995421, 0.2786412835, 0.8099802732, 0.0220193565, -0.0264173616, -0.0529566519, 0.1478154212, 0.1700731367, 0.0775498152, -0.0718966499, -0.5182383657, 0.1268176585, -0.1441928893, 0.1862651855, -0.2946179211, -0.1751006097, -0.4808201194, 0.0280027166, -0.2690898478, 0.0411451273, -0.0301839076, 0.0548801012, -0.0548299104, -0.0558428392, -0.2099322975, 0.2182129174, -0.0093770046, 0.1522125751, -0.1942210793, 0.1437397003, 0.1035595164, 0.0694282725, -0.3877384961, 0.2586711943, -0.1751938611, 0.1236931831, -0.3370628953, -0.6767634749, -0.0139495423, 0.4205447435, 0.1017036662, 0.2852753699, -0.3822358847, 0.3692991734, -0.426797986, -0.1774555445, -0.269484818, 0.0983487219, 0.016803449, -0.2116034776, -0.3277245462, 0.1927669346, -0.2785764039, -0.3296271563, -0.0686897188, 0.1022744626, -0.1596087068, -0.0150909936, -0.2723580003, -0.0793187693, -0.2085290998, -0.2564392686, 0.2127993852, -0.0745189339, 0.0394542329, -0.0027379587, 0.3233483434, -0.1498033255, 0.0774882883, 0.3300074339, -0.2092895955, 0.0553612597, 0.3486885726, 0.1757444143, -0.1001098454, -0.1969818473, 0.0847516581, -0.2389269471, -0.0474618264, -0.0773088858, -0.326642096, 0.2428106815, -0.1780585796, 0.5538434982, 0.2069433182, 0.0034049575, 0.2625466287, -0.4686080515, -0.0592523515, 0.1572055817, -0.265996784, 0.1675553918, 0.1391961277, -0.4904052615, 0.0491025522, 0.1731139272, -0.3216252327, 0.2468703687, -0.3442752361, -0.0027166186, 0.0638950616, -0.0327158719, -0.0170348082, -0.11769595, 0.1960882992, -0.2152127326, 0.1902561933, -0.2463240772, 0.0169067699, 0.0986618251, 0.2983137965, -0.0379031412, 0.052930858, -0.1132981703, 0.0971786454, -0.0755019635, 0.134653002, -0.1865121275, 0.0116351778, -0.0748603866, 0.1641178876, 0.3197551966, -0.5698624253, 0.2271057516, -0.0318152383, 0.3563558459, -0.3101467192, -0.0047418186, 0.1031467617, 0.0100481771, -0.0361249447, 0.2036715895, -0.0390280001, -0.0425405204, 0.4824260771, -0.1260151714, 0.0935865417, 0.1945230365, -0.0899956673, 0.215189904, -0.2657221556, 0.0189059973, 0.0724640638, 0.3154067397, 0.0348797739, -0.0859616548, -0.0600564629, -0.0648991615, -0.0347310863, 0.1375917643, 0.2138171345, -0.5918575525, -0.0177096426, 0.2396355867, 0.284664005, -0.2380813062, -0.1471222788, 0.0729262009, -0.0631275102, 0.1706536114, -0.2161243856, -0.0248203091, -0.0171002094, 0.0252691172, 0.0403825976, -0.2408902496, 0.2672435045, 0.0890465006, -0.1963880062, -0.0709181577, 0.3523972034, 0.1390176713, -0.2121491283, -0.0206995439, 0.2263706326, -0.1075059846, -0.0898889899, -0.0149616888, -0.3123090267, 0.1564416438, -0.0163959879, -0.2258918136, -0.2075391114, -0.1338399947, 0.1074425429, 0.2285775989, 0.0195784438, -0.0949763209, 0.1310990453, 0.3131092191, -0.1715952009, -0.0430846363, 0.1586607397, 0.3550339639, 0.2350416332, -0.2445922047, -0.0359320715, 0.086934872, 0.0235199463, 0.1080500111, 0.1506439298, 0.3581360281, 0.149283573, -0.3821015358, -0.2918349206, -0.0524199568, 0.0159657691, 0.1497968286, 0.109509334, 0.2473846525, -0.0946495384, 0.1567269564, 0.2575153708, -0.2577605247, 0.0242421124, 0.15021424, 0.0960435867, 0.0359114297, -0.0979980379, -0.0499810465, -0.2265263498, -0.1915361434, -0.0238232519, -0.1291569471, 0.4036664367, -0.1662854403, 0.0766295046, 0.0961555764, 0.1271150112, 0.1033285335, 0.2168623805, 0.4128628075, 0.4417042434, -0.1162552834, -0.0973784253, -0.3179344535, -0.2834352255, -0.0254866052, -0.1389845759, 0.0491615459, 0.3109111488, 0.0665518939, -0.3359683752, 0.0429635122, 0.1934752762, 0.0636770874, 0.2108303457, 0.1145570949, -0.2244444042, -0.0323474593, 0.3551275432, -0.184525311, -0.5238711834, -0.1905968785, 0.2021305859, -0.0917642191, 0.1839975566, 0.0140770869, 0.1310012937, -0.3397212625, 0.1801659763, 0.3649331331, -0.0205951538, 0.3602635562, -0.2164729536, -0.2698626816, -0.2433670461, -0.1339495331, 0.2090084106, -0.1914767027, -0.0227361843, 0.1889877766, 0.1456055492, -0.0587129258, -0.1685821116, 0.5233996511, -0.060376402, 0.2294286638, -0.4003152251, -0.016613476, 0.060118638, 0.1943348348, 0.3156695962, 0.205182299, -0.1821577847, 0.143341884, -0.3048272729, -0.4179247022, 0.2179486305, -0.0942314267, -0.2386450768, -0.0240673423, 0.24806045, -0.168267116, 0.1646430194, -0.4654178023, -0.0152759319, 0.1219191849, 0.1328232884, -0.3152068555, -0.0011024683, -0.021306077, -0.0608652979, 0.0166352838, -0.3056371808, 0.2520284653, -0.1989300102, -0.2071511596, -0.2288593799 ]
https://github.com/huggingface/datasets/issues/3580
Bug in wiki bio load
Hi ! Thanks for reporting. I've downloaded the data and concatenated them into a zip file available here: https://huggingface.co/datasets/wiki_bio/tree/main/data I guess we can update the dataset script to use this zip file now :)
wiki_bio is failing to load because of a failing drive link . Can someone fix this ? ![7E90023B-A3B1-4930-BA25-45CCCB4E1710](https://user-images.githubusercontent.com/3104771/149617870-5a32a2da-2c78-483b-bff6-d7534215a423.png) ![653C1C76-C725-4A04-A0D8-084373BA612F](https://user-images.githubusercontent.com/3104771/149617875-ef0e30b0-b76e-48cf-b3eb-93ba8e6e5465.png) a
34
Bug in wiki bio load wiki_bio is failing to load because of a failing drive link . Can someone fix this ? ![7E90023B-A3B1-4930-BA25-45CCCB4E1710](https://user-images.githubusercontent.com/3104771/149617870-5a32a2da-2c78-483b-bff6-d7534215a423.png) ![653C1C76-C725-4A04-A0D8-084373BA612F](https://user-images.githubusercontent.com/3104771/149617875-ef0e30b0-b76e-48cf-b3eb-93ba8e6e5465.png) a Hi ! Thanks for reporting. I've downloaded the data and concatenated them into a zip file available here: https://huggingface.co/datasets/wiki_bio/tree/main/data I guess we can update the dataset script to use this zip file now :)
[ 0.0163171161, -0.0223626625, -0.0350460447, 0.2036607116, 0.0102495905, 0.2816864252, 0.5000677109, 0.3356057107, 0.4480063319, 0.0293331668, 0.1067662314, -0.1336872429, 0.4862632751, 0.4575192034, 0.2189482152, -0.1626470238, 0.1658850759, 0.1360336542, 0.0206579864, -0.0127587086, -0.4223104715, 0.3174729049, -0.3087363839, -0.0805599019, -0.0701324865, 0.2891200781, -0.0966143161, 0.3522364795, 0.211926043, -0.2622825503, 0.1463517547, 0.0123298299, 0.2225928456, 0.045156233, -0.0001142207, -0.0872222707, 0.5115487576, 0.0817739367, -0.3094241023, -0.1039697602, -0.0552549772, 0.0436303094, -0.112924397, -0.2454090565, 0.1677948982, 0.4410639107, -0.1181769818, 0.1103779525, 0.0343422629, 0.0156641696, 0.198628813, -0.0388469622, 0.2776680291, 0.0248491727, 0.4232707322, 0.0927722678, 0.0471871644, 0.1105428934, 0.1847808212, -0.1812208742, -0.0168625936, 0.2362939119, -0.0238039009, -0.1795308292, 0.2318170518, 0.1941768974, 0.5102157593, -0.0582507886, 0.3229578435, 0.2204759717, 0.5006222129, 0.0508592762, 0.0754980221, -0.0333064944, 0.0439195596, 0.0792958736, 0.7035601139, 0.13085787, -0.2140887827, 0.0253022835, 0.0133072268, -0.1730098128, -0.0536160432, 0.0528650545, -0.0989621207, 0.5030223131, 0.033570338, 0.040148519, 0.1696448028, -0.0740403756, 0.4577165544, -0.0825601369, -0.3223029971, 0.1788127869, -0.1841690689, -0.0673978776, -0.2229745537, 0.647721231, 0.4215982258, -0.2287412882, 0.0180989187, -0.0839568153, -0.0503728837, 0.0274771526, 0.3889907897, 0.1034049243, -0.2191025466, -0.2277695686, 0.245468244, 0.50210917, -0.2373131216, -0.0823966414, 0.1405999064, -0.2782981694, -0.01379018, -0.0821332932, -0.0528982282, -0.3208428323, -0.144465819, 0.2822508812, -0.03198817, -0.0207030419, -0.1231534258, 0.244716078, -0.0772336945, 0.2802609801, 0.4166570008, 0.025213588, -0.0861536562, 0.2686972022, 0.0033230318, 0.0933241993, -0.1366192102, 0.1742987037, 0.0598142557, 0.2234099209, 0.1708334833, 0.0521255508, 0.1094451323, -0.4258502722, -0.4251034856, 0.1126540601, -0.1809798777, 0.4825682938, 0.2418424636, 0.0462234765, 0.0476133153, -0.2950502634, 0.034671858, 0.2166049331, -0.504042089, -0.0648915842, -0.1656536162, 0.1601505727, -0.1602069587, 0.054365214, -0.3685588539, -0.1514179707, -0.1464853585, -0.590923667, -0.0911272168, 0.2752746344, -0.3323353827, -0.0877261311, 0.3463123441, 0.4308661222, 0.1311337799, 0.0535060391, -0.0616657026, 0.2564441562, -0.1859454215, -0.0330471061, -0.0105599174, 0.1490724236, -0.5086308122, 0.1755837202, 0.0474641435, -0.4497596622, -0.2415660918, 0.2776599228, -0.0650151595, 0.0063099214, -0.1730712205, 0.0477579944, -0.2678450942, -0.321521908, 0.028228296, 0.4580124319, 0.0755823404, 0.0927444324, -0.3564405739, -0.4244352579, -0.1727635413, 0.0715245157, 0.1371548176, 0.1501120627, 0.3231940567, 0.2641460598, 0.4316618443, -0.1635870337, -0.0249235164, 0.2917576134, 0.0311745442, -0.1670075804, 0.114996314, 0.1067848578, -0.7576182485, 0.1634251475, 0.0245541539, -0.1555629373, 0.0889122486, -0.115374662, -0.3525184691, -0.026304597, -0.2581289411, 0.037667349, 0.1718749106, -0.1229643449, -0.2498289496, 0.3445886075, 0.0595845357, -0.3671068251, -0.018391557, 0.0434391536, -0.146615997, 0.7144910693, -0.217983827, 0.1095628813, 0.1508632749, 0.1751337945, 0.3475313783, -0.0247251187, -0.2469006628, 0.3569746614, -0.0182958748, 0.5679573417, -0.0617844462, 0.0830129832, 0.1912266761, -0.0979647562, -0.1297138929, 0.2829699218, 0.1211862564, -0.4112237394, -0.3974452019, 0.0937190279, -0.4727894962, 0.2498747408, -0.0892329067, 0.1837418824, -0.0783598572, -0.1845322698, 0.2632254362, -0.0776801184, 0.2732354701, 0.2743216753, 0.0389600769, -0.1385317296, -0.0483198166, 0.010866343, -0.0011141647, -0.1248547658, -0.060888093, 0.093502529, -0.119075492, -0.2704334855, 0.3091192842, 0.4944931567, 0.1492562592, 0.0214003492, 0.0008213031, 0.1634782404, 0.0953966603, -0.1863515079, 0.2361175567, -0.1960901171, 0.3373147845, 0.4056655765, -0.0434569009, 0.0751205385, -0.1484210789, 0.289116621, -0.0704093203, 0.0346909836, -0.3788951933, 0.0087855011, 0.2322015762, -0.0303036235, -0.0797389746, -0.1847615987, -0.1976350099, -0.5136322379, -0.0263242405, 0.3334521949, 0.0388103165, 0.0274484307, -0.0908409283, 0.1354122758, -0.0795903355, -0.1568053961, -0.4128510654, -0.1758209318, -0.1676542759, 0.0146722067, 0.4229948521, 0.4709064364, -0.1670360416, -0.2931585908, -0.0649554804, -0.5542209148, -0.2947582304, 0.0758205876, -0.0699502155, 0.2634211183, 0.2078247517, 0.5022146702, -0.1125207618, -0.3631121218, 0.3053623736, -0.2141824961, 0.0333321691, 0.2301200479, 0.1985617727, 0.1840204, -0.0355805568, -0.1173486114, 0.15749152, -0.0501380488, -0.0340980887, 0.0385616869, 0.0945265442, 0.0467357971, 0.1288248897, -0.2173048705, 0.2867926955, -0.3447936773, -0.2334494591, -0.4904561043, 0.2145747691, 0.006671106, -0.3832450211, 0.0675610229, 0.1523982882, 0.2815798223, -0.2775555551, -0.7139182091, -0.1733461022, 0.1079546735, 0.0977710709, -0.2688210607, 0.1178392917, -0.0084021632, 0.1349302977, 0.017308645, -0.055961065, 0.0684441775, -0.1140019819, -0.1843146086, 0.328183949, 0.1176251844, 0.3382874429, -0.190702945, 0.3177237511, -0.1615432948, 0.2783431113, 0.2923174798, 0.0245496668, 0.2091881931, 0.0535020605, -0.0265627652, 0.1622711569, -0.2179315984, -0.2155957222, 0.4013234973, 0.2117066979, -0.2501216829, -0.1891275793, -0.0927421525, -0.2468025684, -0.4164705276, -0.0516800582, 0.0996876881, -0.1385471374, -0.0383302607, 0.0748417601, 0.0161154699, -0.3724130392, 0.4684202969, 0.3609874249, 0.1818622798, -0.0789928436, -0.1570735276, -0.302608639, -0.4272193015, 0.0889487416, -0.0300371554, 0.1236843169, -0.086081095, 0.2071038932, 0.0777851194, -0.3330431283, 0.3351407945, -0.3587780893, 0.585647285, 0.1303021014, 0.3243482709, 0.2441044003, -0.0278201904, 0.1235050485, -0.1655794531, 0.472443074, 0.2551539838, -0.0106906686, -0.1940042228, 0.2007335573, 0.3167900145, -0.1974354088, -0.5944508314, -0.072585009, -0.229609713, -0.252956748, -0.2403780073, 0.0580813624, 0.2299585044, -0.2874856591, -0.1421501338, -0.0856657922, -0.2184786946, -0.2281605154, -0.0385422334, -0.0133031812, -0.0046515125, 0.0943106934, 0.1671905667, 0.0608595051, 0.1526655108, 0.1971375942, -0.1524385363, 0.4679771662, -0.3513906598, -0.1390667111, -0.215708971, 0.1028935164, 0.0687206537, -0.1907088757, 0.1076735705, -0.1933057606, -0.2026523948, -0.2297348231, 0.0588396192, 0.1038644537, -0.1772405803, -0.0085069323, 0.9985078573, 0.0071803983, -0.1174935997, 0.1345846951, 0.6849122047, -0.5193595886, 0.0753261745, 0.2142648548, 0.822947681, -0.091979824, 0.0935303047, 0.1055058986, 0.0933958516, 0.1747986376, 0.0213642772, -0.0649861619, -0.5295085311, -0.0520100705, -0.147844702, 0.1449823529, -0.3189223707, -0.1788556427, -0.375845015, 0.2130414546, -0.1958182305, 0.2142600119, 0.0127171343, 0.025195688, -0.1542057395, -0.0941008106, -0.4087345302, 0.1354150474, 0.0828007683, 0.1135949045, -0.2623673081, 0.0302027594, 0.2675639093, -0.1528670639, -0.3496594429, 0.2540369928, -0.1694810688, -0.0585512705, -0.2667379975, -0.4716780484, 0.0644954816, 0.6742185354, 0.1955390275, 0.2953975499, -0.3469495475, 0.369540453, -0.3592801392, -0.0711416528, -0.2616750002, 0.0822991133, -0.0527806543, -0.2166918218, -0.3550592661, -0.0563277379, -0.2541650236, -0.2356455177, 0.0033775726, 0.1388874352, -0.1204591691, -0.1325539649, -0.2188995183, -0.1074868217, -0.0261789467, -0.277599901, 0.1436947733, -0.0335262567, 0.0485104471, -0.0726102814, 0.3356750906, -0.0174700692, 0.0542738661, 0.3854706287, -0.3568959832, -0.1224735081, 0.3748398125, 0.2667551637, 0.0456225239, -0.1599084735, 0.3005228937, 0.0230780896, -0.2194955349, -0.1460723877, -0.2097579092, 0.1870890111, -0.0911758617, 0.6734504104, 0.174712792, -0.0468293093, 0.311199367, -0.6046829224, -0.1957357228, 0.3085459471, -0.2354766279, 0.2806883156, 0.0961694792, -0.3903401196, -0.0040063253, 0.0129171358, -0.2569752038, 0.3139956594, -0.3165021241, -0.1274632514, 0.0688463673, 0.1346247196, 0.2142114639, -0.1474387348, 0.1233510599, -0.1433633715, 0.2031772882, -0.1512663215, -0.0660342947, 0.1105075032, 0.3095701635, 0.0116388481, 0.0382105336, -0.1090154871, 0.1008627862, -0.1113315821, 0.0891014338, -0.1444023103, -0.0423512682, -0.1361737102, 0.2496847063, 0.3911357224, -0.5696002245, 0.2144946605, -0.0685560256, 0.1834256798, -0.2485680133, -0.0348302424, -0.017833136, 0.0612762086, 0.1637410074, 0.0972633809, 0.0899652168, 0.0708912089, 0.5121142268, -0.149513945, 0.0384557918, 0.1595113277, 0.0549435392, 0.2418765724, -0.2960969508, 0.1060929894, 0.0246205721, 0.2214462012, -0.0534546897, -0.1412542015, -0.1017955616, -0.1341975331, -0.1128884479, 0.238231793, 0.271223098, -0.6441046596, -0.0439596698, 0.225450471, 0.4071725607, -0.2454993874, -0.1521069258, 0.3345517516, -0.0505373962, 0.2013738453, -0.1882146448, -0.0211554784, 0.0320184343, 0.212542817, -0.0742018893, -0.0958283544, 0.2929801643, 0.10919635, -0.2418833524, 0.0495686494, 0.1617661119, 0.2127023786, -0.2217262089, -0.1443318576, 0.2294831127, -0.0305679459, -0.1647459716, -0.0061782701, -0.2883034945, 0.1739588976, -0.0703200549, -0.3382357359, -0.1840346903, -0.099055551, 0.0813187733, 0.1031246185, -0.1077374741, -0.0640431121, 0.1921786517, 0.2432637215, -0.1146489531, -0.0496947728, 0.005986365, 0.4744155109, 0.1035872921, -0.2409663498, 0.0650897846, 0.0832879245, 0.0228425711, 0.1818371862, -0.0264819488, 0.3920585215, 0.1032748893, -0.2615142167, -0.2222995162, -0.0155851664, 0.1124668717, 0.1762526929, 0.0413559712, 0.2041811794, 0.0142925447, 0.2301989198, 0.1932113022, -0.1513353586, 0.0724588558, 0.1105988324, 0.0710023791, -0.0959383696, 0.0770299137, -0.2969245315, -0.1729997247, -0.3759937882, 0.0602265187, -0.0447680578, 0.3174493909, -0.2667378783, 0.0188778546, 0.1290450096, 0.2082193494, 0.0792618245, 0.1734913141, 0.4908223748, 0.3308080137, -0.2566972673, -0.2106899917, -0.4077657163, -0.5182641149, -0.1259492338, 0.0031977338, -0.0727941543, 0.2754294276, -0.234006241, -0.3313941658, 0.0202385206, 0.1847631335, 0.1829037666, 0.1282397062, 0.0748659745, -0.2058153301, -0.2022298127, 0.2059621513, -0.0628146455, -0.4285933673, -0.2105964422, 0.1789875776, -0.058078099, 0.118570745, -0.0046912292, 0.3686497211, -0.4088648558, 0.0448537879, 0.2489283383, 0.0186201632, 0.316619873, -0.1084921509, -0.2194009721, -0.4374907315, -0.2836344838, 0.1063857377, -0.1745040417, -0.1057011932, 0.111464195, 0.1055340543, -0.0181736201, -0.1971964985, 0.119228065, -0.0061722756, 0.3332268, -0.4254238904, 0.0557245016, 0.0592214204, 0.1609425247, 0.4123759866, 0.2420799881, -0.2056316286, 0.2420183569, -0.1964867115, -0.3616378605, 0.3274631798, -0.1829914302, -0.2063210309, -0.0068013105, 0.2162434161, -0.1725082248, 0.0951441079, -0.5812900066, -0.0319848135, 0.0942619443, 0.3600402474, -0.3739315271, 0.1230264157, -0.0315500014, -0.1065064892, 0.0828034878, -0.1722459942, 0.3173466623, -0.1205055267, -0.082230337, -0.1440383345 ]
https://github.com/huggingface/datasets/issues/3578
label information get lost after parquet serialization
Hi ! We did a release of `datasets` today that may fix this issue. Can you try updating `datasets` and trying again ? EDIT: the issue is still there actually I think we can fix that by storing the Features in the parquet schema metadata, and then reload them when loading the parquet file
## Describe the bug In *dataset_info.json* file, information about the label get lost after the dataset serialization. ## Steps to reproduce the bug ```python from datasets import load_dataset # normal save dataset = load_dataset('glue', 'sst2', split='train') dataset.save_to_disk("normal_save") # save after parquet serialization dataset.to_parquet("glue-sst2-train.parquet") dataset = load_dataset("parquet", data_files='glue-sst2-train.parquet') dataset.save_to_disk("save_after_parquet") ``` ## Expected results I expected to keep label information in *dataset_info.json* file even after parquet serialization ## Actual results In the normal serialization i got ```json "label": { "num_classes": 2, "names": [ "negative", "positive" ], "names_file": null, "id": null, "_type": "ClassLabel" }, ``` And after parquet serialization i got ```json "label": { "dtype": "int64", "id": null, "_type": "Value" }, ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.0 - Platform: ubuntu 20.04 - Python version: 3.8.10 - PyArrow version: 6.0.1
54
label information get lost after parquet serialization ## Describe the bug In *dataset_info.json* file, information about the label get lost after the dataset serialization. ## Steps to reproduce the bug ```python from datasets import load_dataset # normal save dataset = load_dataset('glue', 'sst2', split='train') dataset.save_to_disk("normal_save") # save after parquet serialization dataset.to_parquet("glue-sst2-train.parquet") dataset = load_dataset("parquet", data_files='glue-sst2-train.parquet') dataset.save_to_disk("save_after_parquet") ``` ## Expected results I expected to keep label information in *dataset_info.json* file even after parquet serialization ## Actual results In the normal serialization i got ```json "label": { "num_classes": 2, "names": [ "negative", "positive" ], "names_file": null, "id": null, "_type": "ClassLabel" }, ``` And after parquet serialization i got ```json "label": { "dtype": "int64", "id": null, "_type": "Value" }, ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.0 - Platform: ubuntu 20.04 - Python version: 3.8.10 - PyArrow version: 6.0.1 Hi ! We did a release of `datasets` today that may fix this issue. Can you try updating `datasets` and trying again ? EDIT: the issue is still there actually I think we can fix that by storing the Features in the parquet schema metadata, and then reload them when loading the parquet file
[ 0.100364916, 0.291457355, 0.0859543756, 0.2712121308, 0.2289622724, 0.0452237986, 0.1918179691, 0.0536162853, -0.1856913865, 0.2095583528, 0.2182401866, 0.7100892663, 0.148033008, 0.3368785977, 0.0191617422, -0.0620363764, 0.0825962573, 0.0399495289, 0.1877959669, -0.1167053208, -0.0773747414, 0.1177218705, -0.0725428909, 0.1088370755, -0.1174210161, -0.056193877, -0.0711327195, -0.0012636025, 0.0962496102, -0.6054224372, 0.0342049263, -0.2253650278, 0.032007888, -0.0765511096, -0.0001085304, -0.1383119971, 0.1565928608, -0.0915992856, -0.1051448062, -0.1105898246, 0.0711427927, -0.3784819543, 0.3300037384, -0.3424879014, -0.2301560938, -0.1671872139, -0.2557412982, -0.0170163773, -0.0035470256, -0.0830077305, 0.2307844311, -0.1625620425, 0.3122107983, 0.2586407661, 0.4704161286, -0.0437171869, -0.01091344, -0.003728671, 0.2314885408, 0.2835280001, 0.2405411303, 0.5807896852, 0.1291566789, -0.1825838983, -0.1093861163, 0.3096226752, 0.2080663741, -0.2178891003, 0.2280831337, -0.0601281226, 0.674767971, -0.3999213576, -0.2845657468, -0.3861646652, 0.3335499167, -0.2887297571, 0.0580922961, 0.2185071856, 0.3166772127, 0.1334215403, 0.237154305, -0.1708463281, -0.11921902, -0.0858579129, 0.1301425248, 0.3536884487, -0.0682298318, 0.2548568547, -0.3693116307, -0.3371382058, -0.2147987783, 0.0335909538, -0.2831584215, 0.2274861485, -0.1981092244, -0.1994967163, -0.0669742152, -0.3039906919, 0.0489713326, 0.1019592509, -0.1983527392, -0.0054320502, 0.2048981339, 0.1604737192, 0.4932112992, -0.0555969924, 0.1324809045, 0.0777498782, -0.1039013937, -0.0320450105, -0.1839506477, -0.2764872909, 0.1836483181, 0.4024291933, 0.445771724, -0.1794125289, 0.3011217415, -0.4549842477, -0.2079618126, 0.4260595441, -0.4619099796, 0.1447131038, 0.0310283881, 0.0924371183, -0.0831505209, 0.0323067084, -0.0524619445, 0.0118842293, -0.0102163944, -0.3935035467, -0.221919477, -0.0907559171, -0.0509121828, -0.0339651518, -0.1064365059, 0.128208667, 0.2390611619, 0.2643166482, -0.1880848706, -0.3489891887, -0.0473599285, -0.162735194, 0.1023468599, 0.1875400543, -0.2204145044, 0.2191889286, -0.0834433436, -0.3637949526, -0.2023232728, -0.1016860157, -0.6566874385, 0.1041211486, -0.1241115481, 0.2525677383, 0.0446787141, -0.1317070127, -0.2969459295, 0.1166001633, 0.0721641853, 0.0278271865, -0.0458618142, -0.2294628769, -0.0603415035, -0.1790025085, 0.1346297264, -0.0481536426, -0.3474065363, -0.2001249045, 0.3589529693, -0.0483350083, 0.278765738, 0.0383248143, 0.0756294802, 0.141533345, -0.0388749801, 0.1944044679, 0.2174013853, -0.2875524461, -0.2823401392, -0.021006288, -0.0253666583, 0.0380757973, 0.0090817623, -0.2324973792, 0.4099325836, -0.0414347351, 0.0133692566, 0.0866467208, 0.0214253124, 0.0578831993, -0.263632834, 0.0069198022, 0.1987337023, 0.2319782525, -0.2372734845, -0.1467119008, 0.1768767387, 0.0654794499, 0.0290222969, 0.0382145718, 0.2175443619, 0.4851027429, 0.2541217804, 0.4141965508, 0.179776594, -0.1376270056, -0.2234983444, 0.0783594251, -0.0781071484, -0.0103985015, -0.2429598123, -0.253059864, 0.0227420758, 0.0991919041, -0.0502081998, -0.2439146489, 0.3031913042, 0.0913777873, -0.1269740313, 0.100195542, -0.0273155551, 0.1838348061, -0.0109216934, 0.0757627562, -0.1702973694, 0.2513563335, 0.0952187032, -0.4426878095, 0.0855131745, 0.3544323146, 0.4995159805, -0.1041422188, 0.0137087386, 0.4445256889, 0.2014070749, 0.0289832931, -0.0862010717, 0.1305498332, 0.071544379, -0.1026247591, -0.2642540634, 0.0633733422, 0.1399322301, 0.1967710704, -0.1865434796, 0.0252632424, 0.2812293172, 0.0623735189, -0.0959705263, -0.0692608431, 0.2990394235, -0.2096927464, 0.0166227855, -0.1435912102, -0.1073539257, -0.2108600736, -0.1626036614, -0.0002018308, -0.6145911217, 0.5032927394, 0.6984158158, 0.0708810091, 0.0401832275, -0.0042542713, -0.3210633397, -0.2122994065, 0.1617656648, 0.2659952044, 0.0881165862, 0.3592060804, -0.1225073561, -0.1121208072, -0.0499196686, 0.2447312623, 0.0709358603, 0.107681118, 0.1383336037, 0.0640043095, 0.4070308506, 0.1339171231, -0.0049604503, -0.0359182693, -0.035988681, 0.0262130462, -0.3417164087, 0.0674684048, -0.3322609663, 0.1735459864, -0.2098140717, 0.1640445739, -0.2846748531, -0.292622, -0.0674690157, 0.1341157258, -0.1437262595, 0.1250142902, -0.0222838111, 0.0080405604, -0.0965575054, -0.1678821445, 0.067172043, -0.4347478747, -0.3163765967, 0.0086345477, -0.4006649256, 0.0126007088, 0.2130446136, -0.0709123835, -0.0280110743, -0.2948603332, -0.3984753788, 0.0964619741, -0.1357216835, 0.0825150907, 0.0813807473, 0.0307882503, -0.1015433222, -0.1415463239, 0.1242124066, -0.0323848575, -0.15346241, 0.104354836, 0.0020012944, -0.1004429832, -0.1477635354, -0.4191887081, -0.3183329403, -0.0174970888, 0.3092710972, 0.1172111854, -0.0094888406, -0.119708389, -0.5311763287, 0.063023001, -0.1459662914, 0.3995863497, -0.3926841617, -0.4220211804, 0.0114043523, -0.1346506774, -0.1196632907, 0.1967909336, 0.1004578918, 0.0216634106, -0.2503018081, -0.2524343431, 0.0580684468, 0.0035013563, 0.0749779567, -0.3684175313, 0.0110266861, 0.3689635992, 0.2811099887, -0.0961401388, -0.1706628203, -0.383571744, 0.1525812745, 0.3410894275, 0.2358894199, -0.2528765202, 0.1572578251, -0.0048126639, 0.0995332599, -0.1486611366, -0.0435748845, 0.2308145016, -0.0293903369, 0.2349615544, -0.2616465092, 0.0731590167, 0.2663598061, -0.077828303, 0.1579265893, 0.209643051, -0.0874333233, -0.0144974478, 0.1413566917, 0.0079461811, -0.3139103651, -0.2117075622, -0.3216765225, 0.1907208115, 0.2033039033, 0.0104945935, 0.0252771657, -0.0266739018, -0.1265117675, 0.2608710825, -0.024851473, -0.0540597476, 0.0257425588, -0.6608285904, -0.0657178611, 0.0847101957, -0.1795178652, -0.0041284524, 0.1119386256, -0.1789244711, -0.094430916, 0.1470139325, 0.1322085708, 0.4885121584, -0.1265735775, 0.3751377463, 0.2379975915, 0.100322254, -0.2453972399, -0.2876623273, -0.2912800908, -0.1003802046, 0.3582868874, 0.6195663214, -0.523552835, -0.107729964, 0.1878686398, 0.1044181064, -0.1246675104, 0.0859554857, -0.1029256582, 0.2029885501, -0.0671581179, -0.0522329994, 0.0878513157, 0.4061289728, -0.0542146787, 0.1711432487, -0.146845594, -0.0287457798, -0.2404264659, 0.1153652593, 0.5620647669, -0.0942147076, 0.2263745666, 0.0981186628, 0.48221457, 0.29669258, 0.3531544209, 0.1610713601, -0.61655128, 0.0804502293, -0.1578118503, 0.4311755896, -0.1585064679, 0.1291480213, 0.1197523028, -0.4722486436, 0.0771438554, -0.4163952172, 0.0864036828, 0.0507184975, -0.162848115, -0.1447127312, 0.0130865648, 0.4852149785, -0.3583874702, -0.17045632, -0.2105047554, 0.2506913841, -0.5377957821, 0.5564380884, 0.2487893999, 0.7494694591, 0.2808406055, -0.0808238387, -0.1403194219, -0.6594514251, 0.8142653704, -0.2555281222, -0.1200249046, -0.3759816885, -0.0687061548, 0.1224007979, -0.0834229439, -0.0444271676, 0.1365224272, -0.2962414026, 0.3627184331, -0.0159573574, 0.0227008313, -0.1548187137, 0.2427236885, 0.3553085625, -0.2921674252, -0.2056621164, 0.1445182711, -0.2964007258, -0.0963849798, 0.0639832169, -0.1446216851, -0.0312384851, 0.0938215181, -0.0723062977, 0.2004512995, -0.077847898, 0.0042259134, 0.4581013322, -0.1688642055, -0.1038455218, -0.0841353163, 0.3456353843, 0.2841476798, -0.2000352442, 0.2263672352, 0.0967539772, 0.1975637078, 0.1679093242, 0.1424287409, 0.3876074851, 0.1223650202, -0.0826132596, -0.141318813, -0.1896519214, 0.0646764338, -0.2115665078, -0.2196166664, 0.2740651965, -0.2961719632, 0.0619045049, -0.0480527021, 0.3414177895, -0.3591978848, 0.1727061719, 0.1677538306, -0.2836865187, -0.0115146572, -0.0851975158, -0.1695768386, -0.1805404127, 0.2245233059, 0.034803953, 0.3348269761, 0.352846086, -0.0622067451, -0.1429362297, -0.1029526815, 0.217290476, 0.2503950298, -0.2085377425, -0.07459528, 0.1757216156, 0.0601259544, -0.0476195849, -0.0181390028, -0.1881802529, -0.0559608229, -0.0332568139, -0.3896745145, -0.1161053553, 0.1190472245, -0.0871277899, 0.0088913217, 0.3882285953, 0.331040442, -0.1092368215, -0.0719699711, -0.3546563089, 0.1211431101, -0.2997821569, 0.3892492056, 0.3924573064, 0.0774775147, -0.0856173337, -0.162234962, 0.2648592889, -0.0481105931, 0.2802148461, -0.1957399845, -0.3870232701, 0.0003067938, 0.0884398222, 0.464156419, -0.3174371421, -0.0537659824, 0.0763529688, -0.0293546673, 0.1906013638, -0.0901924595, 0.1228060797, 0.3891913891, 0.1754447073, 0.2003118843, -0.0672480613, -0.0458809882, 0.0184196308, -0.0124319, -0.1231323332, 0.1064880714, -0.3787715435, 0.0398411527, -0.3957137465, 0.035257332, -0.2997280955, 0.0592825599, 0.2163441181, -0.2648516893, -0.1257461756, 0.413720876, 0.1610496491, -0.0464910492, -0.1965191513, -0.4613602161, 0.5011613369, 0.3319054842, -0.0662007704, -0.2555347979, 0.1565062106, 0.0924102664, -0.1193617508, -0.0363506898, 0.1354726255, 0.2115051299, -0.3798413277, 0.1786592752, 0.5540584922, -0.0861945152, 0.1056808606, 0.1376992464, -0.0679262504, -0.0000737168, 0.2266045064, 0.2705449164, -0.0083865384, 0.3190880418, 0.4794487655, 0.1590901315, 0.5984966159, -0.0461871177, -0.0839590281, 0.0850674063, -0.2078386396, 0.1898214668, 0.0912226811, 0.1715391278, 0.0638187826, 0.0080947932, 0.1671444923, -0.5195410252, 0.1701428145, 0.2581712008, -0.3128990829, -0.1471782774, 0.130907312, 0.0075714537, 0.1603508741, -0.0293472819, -0.0073317559, -0.0598257631, 0.0649956167, -0.0947379842, -0.0778456107, -0.4062843919, -0.4649590254, 0.2013923824, 0.4560426176, -0.1656383723, 0.1463177055, -0.2777074873, -0.2051626742, -0.030586319, 0.0198578201, 0.2170107514, 0.007968232, -0.1640275717, -0.1944819987, 0.0278925467, -0.1677774191, 0.1439196318, 0.1219929382, 0.0428195819, -0.3145399988, 0.2179097533, 0.0958990082, -0.1245801002, -0.0828180462, 0.4209714532, 0.22354801, -0.1477878541, 0.1320353001, 0.1896710247, -0.2920807004, -0.07088916, 0.0193513893, -0.066510506, -0.3924252391, 0.0809604302, 0.2460886389, 0.0844959319, -0.0787079185, 0.1360564977, 0.1327244788, 0.2298077941, 0.1403960288, -0.5770463347, -0.1958648562, 0.1079883128, -0.2600747049, 0.0294862427, 0.0089755245, -0.2839783132, 0.3206733465, 0.2069558203, 0.0097978637, 0.0067999689, -0.1625571251, 0.1192528233, 0.0031841614, 0.0752295405, -0.4450632334, 0.0144789545, 0.122828491, 0.0023062816, 0.1349702626, 0.0675976798, 0.2360477895, -0.021043621, 0.0746560842, 0.0344293602, -0.0626769736, -0.092868723, -0.0766853988, 0.3887302279, 0.0451492704, -0.0022901495, -0.0843333155, 0.002454445, 0.1737603396, -0.3790689409, -0.1237362698, 0.2906274796, -0.2801783085, 0.3473268449, 0.0831016302, 0.0829219967, -0.1471741498, -0.1883459985, -0.099263683, 0.0068646371, -0.3488129079, 0.1128895432, 0.2762008309, 0.1728084087, -0.0511810966, -0.0648734346, 0.0029446117, 0.2564857006, -0.1447723508, -0.4166784883, 0.4184482098, -0.0397588834, -0.27587533, 0.0312108323, 0.4659537375, 0.1528854221, 0.0029721553, -0.4709712267, 0.1412468106, 0.5548053384, -0.0379888527, -0.4147718251, -0.0306388028, -0.0198231395, 0.0819883645, 0.0565549769, -0.0720368922, 0.1194517389, 0.1272188127, 0.1592434347, 0.0523544662 ]
https://github.com/huggingface/datasets/issues/3572
ConnectionError in IndicGLUE dataset
@sahoodib, thanks for reporting. Indeed, none of the data links appearing in the IndicGLUE website are working, e.g.: https://storage.googleapis.com/ai4bharat-public-indic-nlp-corpora/evaluations/soham-articles.tar.gz ``` <Error> <Code>UserProjectAccountProblem</Code> <Message>User project billing account not in good standing.</Message> <Details> The billing account for the owning project is disabled in state delinquent </Details> </Error> ``` We have contacted the data owners to inform them about their issue and ask them if they plan to fix it.
While I am trying to load IndicGLUE dataset (https://huggingface.co/datasets/indic_glue) it is giving me with the error: ``` ConnectionError: Couldn't reach https://storage.googleapis.com/ai4bharat-public-indic-nlp-corpora/evaluations/wikiann-ner.tar.gz (error 403)
67
ConnectionError in IndicGLUE dataset While I am trying to load IndicGLUE dataset (https://huggingface.co/datasets/indic_glue) it is giving me with the error: ``` ConnectionError: Couldn't reach https://storage.googleapis.com/ai4bharat-public-indic-nlp-corpora/evaluations/wikiann-ner.tar.gz (error 403) @sahoodib, thanks for reporting. Indeed, none of the data links appearing in the IndicGLUE website are working, e.g.: https://storage.googleapis.com/ai4bharat-public-indic-nlp-corpora/evaluations/soham-articles.tar.gz ``` <Error> <Code>UserProjectAccountProblem</Code> <Message>User project billing account not in good standing.</Message> <Details> The billing account for the owning project is disabled in state delinquent </Details> </Error> ``` We have contacted the data owners to inform them about their issue and ask them if they plan to fix it.
[ -0.4043236375, 0.3878386617, -0.0267183259, 0.6261589527, 0.0222605765, 0.0886498168, 0.1807953119, 0.0415817574, 0.0253699701, 0.0412166119, -0.0606036223, -0.2099455595, 0.328040719, 0.0549296439, 0.1314405203, 0.036257498, -0.2428231835, 0.1725625396, -0.070566155, 0.2514490187, -0.2611515224, 0.430123806, -0.2761683762, 0.5252302289, -0.0091513162, -0.0537979677, 0.0108431419, 0.1877590418, -0.0104840146, -0.4994139373, 0.4097234905, 0.0057264362, 0.2434546053, 0.2724925876, -0.0001148371, -0.0496998876, 0.6451973319, -0.0762540251, -0.1786138862, -0.1532893628, -0.6412776709, -0.2427853644, 0.1779624969, 0.0917278677, -0.2135965675, -0.0609540455, 0.1193348691, -0.1530081928, 0.1720353663, 0.1226516068, 0.1434803158, -0.2940349281, 0.4689927101, -0.0948362947, -0.1054940224, -0.3243199587, 0.1159839481, 0.6527166367, -0.1453696936, -0.5358204842, 0.2206302434, 0.1204419285, 0.0583422743, -0.0585749634, 0.2120805532, -0.0209001862, -0.0717203617, -0.3748866916, 0.2222802788, 0.3638872504, 0.8399500847, -0.0058805398, -0.3516872823, 0.0886765197, 0.3189176321, -0.0978781208, 0.4786065221, 0.3489352465, -0.0027941233, 0.3746265471, -0.0251938682, -0.3879668713, -0.2738532722, 0.2120632082, -0.1646927446, -0.0210488122, -0.1610716432, 0.0917802453, 0.1783415228, -0.1919796318, -0.0398931205, 0.0685465857, -0.3091014922, 0.1744864732, -0.3250119984, 0.1233160943, -0.3503325582, 0.0742148235, 0.176747337, 0.2901989222, 0.2617741823, 0.1712956727, -0.0327750333, 0.2222109139, 0.1798160374, 0.10333395, 0.1082463712, 0.1028320193, 0.5134888291, 0.131427899, 0.2461074442, -0.2020866573, -0.1810676008, -0.0711728036, -0.336068511, -0.0832635537, 0.2495876551, -0.2327743769, -0.5119811893, 0.2193897665, -0.3385063112, 0.0359852761, -0.0610213168, 0.1666564196, -0.172209844, -0.1876675338, 0.1876835674, 0.1526194513, -0.07537359, -0.1564216018, -0.0393907204, -0.0923376903, -0.0072488389, 0.2800857723, 0.0326798074, -0.0812895969, 0.0462283902, -0.2177616954, -0.0794776008, -0.0255291499, 0.3496099114, -0.2297019958, -0.3227311373, 0.3794977367, 0.1459613591, -0.0265806578, 0.0602167808, -0.5670269728, 0.0025045222, -0.1946540773, -0.4127660394, -0.2172003835, -0.3056876659, 0.1236252263, -0.1164995357, 0.0521681346, -0.083998099, -0.0021004279, 0.147396937, -0.2747702599, -0.1525277197, -0.2070090026, 0.0727128312, -0.1351362467, 0.1624546945, 0.5512100458, -0.3507904112, -0.1561375558, -0.0442167372, -0.1689477414, 0.0834233165, 0.5338190198, -0.1540868133, -0.1225422397, -0.2926577926, 0.2910320163, 0.4141795933, -0.117165029, -0.6818207502, 0.4594961703, -0.1853527725, -0.0949608982, 0.0193745922, -0.0100036124, 0.3676593304, 0.0912884325, 0.3919124603, 0.3410648108, 0.0082314136, -0.3407227993, -0.0037189708, -0.2206573188, 0.1422775388, -0.1007762253, -0.1310129166, 0.0886129588, 0.1986709982, -0.3302695155, 0.3150429726, 0.1557753682, 0.2241778225, 0.2674648464, 0.2597388029, 0.1525428146, -0.0645683259, 0.1860859692, -0.2782551944, 0.1297167689, -0.3208764195, 0.359400332, -0.2253606468, 0.0618740804, -0.0765000284, -0.0053298878, -0.1715795547, 0.1813429147, 0.0618219823, 0.1955776364, -0.0632375181, 0.2962322533, -0.0213239882, 0.8180764318, 0.0439378321, 0.1541221291, -0.3403182924, 0.6038761735, -0.1925956607, -0.0187008437, 0.3814825416, 0.1033410355, 0.2193463147, -0.205144465, -0.0186387673, 0.2784311175, -0.2629795671, 0.1583882868, 0.5227832794, 0.2214931548, 0.2187636942, -0.6946054101, 0.1649154276, 0.0423455201, 0.3227451444, 0.1464087516, 0.4297001064, 0.2449942976, 0.4545125365, 0.2388552576, 0.0176409706, 0.3985763788, 0.3640808761, 0.0775696561, -0.1980292052, -0.2063800097, 0.1067018136, -0.2293253392, 0.0395727307, -0.0973089263, -0.3466548324, -0.1869159937, -0.1025793925, -0.0822356492, 0.0431496687, 0.1083363295, -0.2157337517, -0.1440313905, 0.1325026155, 0.1115588695, 0.1195606962, -0.0112294275, -0.2147522569, -0.0698564947, 0.1115628257, -0.1424109489, 0.0944970921, 0.0730741024, 0.0463055633, 0.2325127125, -0.0618935116, 0.0358947478, -0.0667574257, -0.3982250988, 0.1079232767, 0.3428255916, -0.1860565841, 0.1115395352, -0.0312916338, -0.4492980242, 0.1326301992, -0.2871261537, -0.4464939237, -0.3150816262, -0.2452972233, 0.0396401435, 0.1951532066, 0.0948884338, -0.2805877924, 0.0238430984, 0.1031715646, -0.0439375564, -0.3232940435, -0.0632630289, -0.2854244709, 0.0290877242, 0.3187894225, 0.0566737093, 0.1126117185, -0.0444391705, 0.1536147147, -0.4827732146, -0.0449292175, 0.0977780074, 0.0310120471, 0.1911696941, 0.1024858132, 0.3012568057, 0.2151901573, 0.0681737885, 0.2945026457, -0.0669876561, 0.1450516433, 0.2086139917, -0.002262475, 0.0922974274, 0.2886859179, 0.0403537303, -0.5257280469, -0.278896302, 0.0938427001, 0.1821525395, 0.0894121826, 0.0784530565, -0.0442048684, 0.2979561388, 0.1778973192, -0.0852061436, -0.1618532836, 0.0012106783, 0.14402996, -0.1092909798, -0.2463213801, 0.138112247, 0.0955158025, -0.083029002, 0.0091527868, -0.5455813408, 0.0350873694, -0.1520951986, -0.0795238614, -0.02621576, -0.3101905286, 0.0676446408, -0.1388934851, 0.0482567549, 0.3072767854, -0.2789992988, -0.0609412119, 0.3940567672, 0.2243274152, 0.4074166715, 0.44978562, -0.1888772994, 0.2701702714, 0.4175569713, 0.1496578306, 0.3208696842, 0.0086925346, 0.4890313148, 0.0152724618, -0.1860282421, -0.2715028524, 0.0705167875, 0.0767113641, -0.0023665091, 0.1110652983, -0.3363567889, -0.3866770267, -0.257185936, -0.2446985394, -0.2119080573, -0.0000832797, -0.245716691, 0.1935638934, 0.1026954278, -0.2245895267, 0.0853445455, -0.2182966024, 0.0660622865, 0.4303553402, 0.1727518737, 0.1258095652, 0.0060472027, -0.2913628519, -0.4591248035, 0.5632861853, -0.1487488747, 0.5989048481, -0.5136701465, 0.096732311, -0.0255355071, -0.0513727106, 0.1026935801, -0.4721108377, -0.186145246, 0.1825724691, 0.1860712022, -0.0057833642, -0.0487498194, 0.0310845096, 0.1763858795, 0.086673893, 0.3424319327, -0.1071603969, -0.139800027, 0.2303152531, 0.0293579511, -0.3382324576, 0.0130557921, -0.299836576, -0.3142678142, -0.1230908856, -0.015190403, -0.3472756445, 0.1675115526, 0.4493877292, -0.0396246612, -0.0218407121, -0.2262670398, 0.0813122913, -0.0431537852, 0.053292308, -0.0492300652, -0.0425949171, 0.2880614996, -0.145822525, 0.3672165871, 0.5056183934, 0.1051732749, -0.1243372336, 0.3028911054, -0.0987459272, 0.2618179917, 0.0531416759, 0.0155011741, -0.1639353931, 0.2807464004, 0.1814997047, -0.0104424125, -0.195538938, -0.006264328, 0.0589996725, -0.6283718348, -0.3184494972, 0.2506091595, -0.1624612063, -0.1618186831, -0.0396378115, 0.5104506016, -0.1307281256, 0.2372601479, -0.1750971228, 1.0186870098, -0.2103441358, -0.0452720635, 0.0199861806, -0.1480265558, 0.1784466952, -0.1535992026, 0.141338557, -0.3803046942, -0.3518441916, -0.2975922525, -0.1599165946, 0.2393181324, -0.1381536871, -0.0949488878, 0.3428537846, -0.1977877319, 0.0996810868, 0.0943177119, 0.3679308295, -0.13572523, 0.0661474764, -0.300001651, 0.1402070522, 0.1056168228, 0.2749935985, -0.1372796297, -0.3296040893, -0.1229287237, -0.0414890721, -0.2693305612, 0.2506466508, -0.3260088265, 0.2814623713, -0.0747294948, -0.4599821866, 0.023624599, 0.1203442439, 0.0122149363, -0.1078236476, -0.3348177373, -0.0868555754, -0.2525859177, -0.2325356156, 0.152134344, 0.1571073532, 0.150069654, -0.0958630592, -0.1031552106, 0.395647794, 0.0487433225, -0.2642618418, 0.2429764718, 0.039025452, -0.2056863308, -0.0693004206, 0.0953790024, -0.3007408082, -0.1383489072, 0.0214534644, 0.0599444769, 0.1944074631, -0.043972753, -0.3056871891, 0.2648976743, -0.141575858, -0.0332745798, 0.2346279621, 0.0912912115, 0.2613069415, 0.3072961271, -0.0331970043, -0.0969428122, -0.2103822976, -0.1134172603, 0.18141675, -0.3004218936, -0.2557291389, -0.0359418839, 0.1731801033, -0.132925272, -0.0967354178, 0.4142021537, -0.0394335836, -0.0731603801, -0.6730261445, -0.1528033614, 0.2701521218, -0.1772741824, 0.2065666616, -0.0959259719, -0.1675064415, 0.062582612, -0.2502327263, -0.2304553986, -0.0815326422, -0.5433551669, -0.1348185688, 0.4827137589, -0.1420723349, 0.2822960615, 0.2059357911, 0.0871756077, -0.1152767763, -0.1938219965, -0.0811150298, 0.3548893929, 0.1502232403, 0.17412965, -0.2272000462, -0.2682078779, -0.3332598805, -0.0731423199, -0.0412719101, 0.0813315883, -0.2056755573, -0.0209583081, -0.3067476749, -0.241427958, -0.0709014088, -0.3027394712, 0.5905814767, -0.090558283, 0.2243952751, -0.1768748164, 0.1046967804, -0.1238325164, -0.0209210496, -0.3033165038, 0.3491278589, -0.0578278266, -0.2247873247, 0.5062458515, -0.4600054324, 0.0294242222, 0.2694378793, 0.2136128098, 0.1466950625, -0.1506999582, -0.0303288493, 0.0598833375, 0.1199578419, -0.1301959157, -0.0105839139, 0.2518055737, -0.1705470681, -0.1848363876, 0.0865581632, 0.2824110091, -0.1892605871, -0.1227651089, 0.0171766952, 0.7439956665, 0.0173063707, 0.0131926043, -0.3127932847, -0.1046262011, 0.1585921198, 0.2300910354, 0.2134903222, 0.1165228486, 0.0245731454, -0.2948364019, -0.3969013393, 0.060209427, 0.2156200409, -0.2048841417, -0.5315163136, -0.1240886226, 0.3173862398, -0.0803257823, -0.1559315324, 0.0732545182, 0.3089422882, -0.196335718, 0.0891876444, -0.3719535172, 0.1463872045, -0.0141353095, 0.1912900954, 0.1030586585, -0.157732293, 0.1519556046, -0.3094390035, 0.1687125713, -0.0918613151, 0.1567926109, -0.0099753365, 0.061519783, -0.2694073915, 0.0354196168, 0.4893805385, -0.1319522858, -0.261220932, 0.0919712558, -0.1061057895, 0.1834754944, -0.0524289794, 0.3587307632, 0.5907358527, 0.1586827785, -0.0299611352, 0.1374749541, 0.1887250394, -0.1519579738, 0.0408442393, 0.2293364853, 0.2102307677, 0.0465269797, 0.2572278976, 0.1317451894, 0.0115316184, -0.0609959811, 0.002155168, 0.5432200432, -0.0299030803, -0.2163282633, -0.4297532737, -0.1575437188, -0.1686439067, -0.1225103438, -0.3565542698, 0.1279070824, 0.2058806717, -0.2552663088, 0.1931355298, 0.1564376801, 0.0077301399, -0.2381981313, 0.3480223417, 0.4935445189, 0.198182255, -0.2670188546, -0.1972866952, -0.4644472599, 0.2920303941, -0.0699654594, 0.0128720477, -0.0432025008, 0.2546630204, 0.0139960572, 0.0471692756, 0.0625105426, 0.4255466163, -0.049797114, -0.0929137245, -0.0916457772, -0.2316586226, 0.0441905074, 0.1180720627, -0.3338406086, -0.149954766, 0.2581276, -0.3358911276, 0.0170852561, -0.0700406954, -0.0186218005, -0.1385666579, 0.1955292821, 0.4790584445, 0.2109773457, 0.6457647085, 0.2315212339, -0.0432979278, -0.1419627964, -0.4584739208, 0.1082391068, 0.2032584399, 0.1010372266, -0.0124164829, -0.0425400585, 0.1405891776, -0.2614210546, 0.1155584604, -0.1330825835, 0.536575079, -0.1473308951, 0.0270125736, -0.0119669344, -0.0754473731, -0.0479572304, -0.2129102349, 0.3816465139, -0.2537375093, 0.038387686, -0.1909994036, 0.3573687971, -0.1714419872, -0.0855694413, 0.1529549509, 0.365572691, 0.0228071846, 0.0429115817, -0.1076251268, 0.2134632766, 0.422526896, -0.0074065933, -0.4266267121, 0.0528292544, -0.0298176613, 0.2317459434, 0.0242958721, 0.2284040898, -0.0495515689, -0.3143007457, -0.0770349726, 0.1561833024 ]
https://github.com/huggingface/datasets/issues/3568
Downloading Hugging Face Medical Dialog Dataset NonMatchingSplitsSizesError
Hi @fabianslife, thanks for reporting. I think you were using an old version of `datasets` because this bug was already fixed in version `1.13.0` (13 Oct 2021): - Fix: 55fd140a63b8f03a0e72985647e498f1fc799d3f - PR: #3046 - Issue: #2969 Please, feel free to update the library: `pip install -U datasets`.
I wanted to download the Nedical Dialog Dataset from huggingface, using this github link: https://github.com/huggingface/datasets/tree/master/datasets/medical_dialog After downloading the raw datasets from google drive, i unpacked everything and put it in the same folder as the medical_dialog.py which is: ``` import copy import os import re import datasets _CITATION = """\ @article{chen2020meddiag, title={MedDialog: a large-scale medical dialogue dataset}, author={Chen, Shu and Ju, Zeqian and Dong, Xiangyu and Fang, Hongchao and Wang, Sicheng and Yang, Yue and Zeng, Jiaqi and Zhang, Ruisi and Zhang, Ruoyu and Zhou, Meng and Zhu, Penghui and Xie, Pengtao}, journal={arXiv preprint arXiv:2004.03329}, year={2020} } """ _DESCRIPTION = """\ The MedDialog dataset (English) contains conversations (in English) between doctors and patients.\ It has 0.26 million dialogues. The data is continuously growing and more dialogues will be added. \ The raw dialogues are from healthcaremagic.com and icliniq.com.\ All copyrights of the data belong to healthcaremagic.com and icliniq.com. """ _HOMEPAGE = "https://github.com/UCSD-AI4H/Medical-Dialogue-System" _LICENSE = "" class MedicalDialog(datasets.GeneratorBasedBuilder): VERSION = datasets.Version("1.0.0") BUILDER_CONFIGS = [ datasets.BuilderConfig(name="en", description="The dataset of medical dialogs in English.", version=VERSION), datasets.BuilderConfig(name="zh", description="The dataset of medical dialogs in Chinese.", version=VERSION), ] @property def manual_download_instructions(self): return """\ \n For English:\nYou need to go to https://drive.google.com/drive/folders/1g29ssimdZ6JzTST6Y8g6h-ogUNReBtJD?usp=sharing,\ and manually download the dataset from Google Drive. Once it is completed, a file named Medical-Dialogue-Dataset-English-<timestamp-info>.zip will appear in your Downloads folder( or whichever folder your browser chooses to save files to). Unzip the folder to obtain a folder named "Medical-Dialogue-Dataset-English" several text files. Now, you can specify the path to this folder for the data_dir argument in the datasets.load_dataset(...) option. The <path/to/folder> can e.g. be "/Downloads/Medical-Dialogue-Dataset-English". The data can then be loaded using the below command:\ datasets.load_dataset("medical_dialog", name="en", data_dir="/Downloads/Medical-Dialogue-Dataset-English")`. \n For Chinese:\nFollow the above process. Change the 'name' to 'zh'.The download link is https://drive.google.com/drive/folders/1r09_i8nJ9c1nliXVGXwSqRYqklcHd9e2 **NOTE** - A caution while downloading from drive. It is better to download single files since creating a zip might not include files <500 MB. This has been observed mutiple times. - After downloading the files and adding them to the appropriate folder, the path of the folder can be given as input tu the data_dir path. """ datasets.load_dataset("medical_dialog", name="en", data_dir="Medical-Dialogue-Dataset-English") def _info(self): if self.config.name == "zh": features = datasets.Features( { "file_name": datasets.Value("string"), "dialogue_id": datasets.Value("int32"), "dialogue_url": datasets.Value("string"), "dialogue_turns": datasets.Sequence( { "speaker": datasets.ClassLabel(names=["病人", "医生"]), "utterance": datasets.Value("string"), } ), } ) if self.config.name == "en": features = datasets.Features( { "file_name": datasets.Value("string"), "dialogue_id": datasets.Value("int32"), "dialogue_url": datasets.Value("string"), "dialogue_turns": datasets.Sequence( { "speaker": datasets.ClassLabel(names=["Patient", "Doctor"]), "utterance": datasets.Value("string"), } ), } ) return datasets.DatasetInfo( # This is the description that will appear on the datasets page. description=_DESCRIPTION, features=features, supervised_keys=None, # Homepage of the dataset for documentation homepage=_HOMEPAGE, # License for the dataset if available license=_LICENSE, # Citation for the dataset citation=_CITATION, ) def _split_generators(self, dl_manager): """Returns SplitGenerators.""" path_to_manual_file = os.path.abspath(os.path.expanduser(dl_manager.manual_dir)) if not os.path.exists(path_to_manual_file): raise FileNotFoundError( f"{path_to_manual_file} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('medical_dialog', data_dir=...)`. Manual download instructions: {self.manual_download_instructions})" ) filepaths = [ os.path.join(path_to_manual_file, txt_file_name) for txt_file_name in sorted(os.listdir(path_to_manual_file)) if txt_file_name.endswith("txt") ] return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepaths": filepaths})] def _generate_examples(self, filepaths): """Yields examples. Iterates over each file and give the creates the corresponding features. NOTE: - The code makes some assumption on the structure of the raw .txt file. - There are some checks to separate different id's. Hopefully, should not cause further issues later when more txt files are added. """ data_lang = self.config.name id_ = -1 for filepath in filepaths: with open(filepath, encoding="utf-8") as f_in: # Parameters to just "sectionize" the raw data last_part = "" last_dialog = {} last_list = [] last_user = "" check_list = [] # These flags are present to have a single function address both chinese and english data # English data is a little hahazard (i.e. the sentences spans multiple different lines), # Chinese is compact with one line for doctor and patient. conv_flag = False des_flag = False while True: line = f_in.readline() if not line: break # Extracting the dialog id if line[:2] == "id": # Hardcode alert! # Handling ID references that may come in the description # These were observed in the Chinese dataset and were not # followed by numbers try: dialogue_id = int(re.findall(r"\d+", line)[0]) except IndexError: continue # Extracting the url if line[:4] == "http": # Hardcode alert! dialogue_url = line.rstrip() # Extracting the patient info from description. if line[:11] == "Description": # Hardcode alert! last_part = "description" last_dialog = {} last_list = [] last_user = "" last_conv = {"speaker": "", "utterance": ""} while True: line = f_in.readline() if (not line) or (line in ["\n", "\n\r"]): break else: if data_lang == "zh": # Condition in chinese if line[:5] == "病情描述:": # Hardcode alert! last_user = "病人" sen = f_in.readline().rstrip() des_flag = True if data_lang == "en": last_user = "Patient" sen = line.rstrip() des_flag = True if des_flag: if sen == "": continue if sen in check_list: last_conv["speaker"] = "" last_conv["utterance"] = "" else: last_conv["speaker"] = last_user last_conv["utterance"] = sen check_list.append(sen) des_flag = False break # Extracting the conversation info from dialogue. elif line[:8] == "Dialogue": # Hardcode alert! if last_part == "description" and len(last_conv["utterance"]) > 0: last_part = "dialogue" if data_lang == "zh": last_user = "病人" if data_lang == "en": last_user = "Patient" while True: line = f_in.readline() if (not line) or (line in ["\n", "\n\r"]): conv_flag = False last_user = "" last_list.append(copy.deepcopy(last_conv)) # To ensure close of conversation, only even number of sentences # are extracted last_turn = len(last_list) if int(last_turn / 2) > 0: temp = int(last_turn / 2) id_ += 1 last_dialog["file_name"] = filepath last_dialog["dialogue_id"] = dialogue_id last_dialog["dialogue_url"] = dialogue_url last_dialog["dialogue_turns"] = last_list[: temp * 2] yield id_, last_dialog break if data_lang == "zh": if line[:3] == "病人:" or line[:3] == "医生:": # Hardcode alert! user = line[:2] # Hardcode alert! line = f_in.readline() conv_flag = True # The elif block is to ensure that multi-line sentences are captured. # This has been observed only in english. if data_lang == "en": if line.strip() == "Patient:" or line.strip() == "Doctor:": # Hardcode alert! user = line.replace(":", "").rstrip() line = f_in.readline() conv_flag = True elif line[:2] != "id": # Hardcode alert! conv_flag = True # Continues till the next ID is parsed if conv_flag: sen = line.rstrip() if sen == "": continue if user == last_user: last_conv["utterance"] = last_conv["utterance"] + sen else: last_user = user last_list.append(copy.deepcopy(last_conv)) last_conv["utterance"] = sen last_conv["speaker"] = user ``` running this code gives me the error: ``` File "C:\Users\Fabia\AppData\Local\Programs\Python\Python39\lib\site-packages\datasets\utils\info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=0, num_examples=0, dataset_name='medical_dialog'), 'recorded': SplitInfo(name='train', num_bytes=292801173, num_examples=229674, dataset_name='medical_dialog')}] ```
47
Downloading Hugging Face Medical Dialog Dataset NonMatchingSplitsSizesError I wanted to download the Nedical Dialog Dataset from huggingface, using this github link: https://github.com/huggingface/datasets/tree/master/datasets/medical_dialog After downloading the raw datasets from google drive, i unpacked everything and put it in the same folder as the medical_dialog.py which is: ``` import copy import os import re import datasets _CITATION = """\ @article{chen2020meddiag, title={MedDialog: a large-scale medical dialogue dataset}, author={Chen, Shu and Ju, Zeqian and Dong, Xiangyu and Fang, Hongchao and Wang, Sicheng and Yang, Yue and Zeng, Jiaqi and Zhang, Ruisi and Zhang, Ruoyu and Zhou, Meng and Zhu, Penghui and Xie, Pengtao}, journal={arXiv preprint arXiv:2004.03329}, year={2020} } """ _DESCRIPTION = """\ The MedDialog dataset (English) contains conversations (in English) between doctors and patients.\ It has 0.26 million dialogues. The data is continuously growing and more dialogues will be added. \ The raw dialogues are from healthcaremagic.com and icliniq.com.\ All copyrights of the data belong to healthcaremagic.com and icliniq.com. """ _HOMEPAGE = "https://github.com/UCSD-AI4H/Medical-Dialogue-System" _LICENSE = "" class MedicalDialog(datasets.GeneratorBasedBuilder): VERSION = datasets.Version("1.0.0") BUILDER_CONFIGS = [ datasets.BuilderConfig(name="en", description="The dataset of medical dialogs in English.", version=VERSION), datasets.BuilderConfig(name="zh", description="The dataset of medical dialogs in Chinese.", version=VERSION), ] @property def manual_download_instructions(self): return """\ \n For English:\nYou need to go to https://drive.google.com/drive/folders/1g29ssimdZ6JzTST6Y8g6h-ogUNReBtJD?usp=sharing,\ and manually download the dataset from Google Drive. Once it is completed, a file named Medical-Dialogue-Dataset-English-<timestamp-info>.zip will appear in your Downloads folder( or whichever folder your browser chooses to save files to). Unzip the folder to obtain a folder named "Medical-Dialogue-Dataset-English" several text files. Now, you can specify the path to this folder for the data_dir argument in the datasets.load_dataset(...) option. The <path/to/folder> can e.g. be "/Downloads/Medical-Dialogue-Dataset-English". The data can then be loaded using the below command:\ datasets.load_dataset("medical_dialog", name="en", data_dir="/Downloads/Medical-Dialogue-Dataset-English")`. \n For Chinese:\nFollow the above process. Change the 'name' to 'zh'.The download link is https://drive.google.com/drive/folders/1r09_i8nJ9c1nliXVGXwSqRYqklcHd9e2 **NOTE** - A caution while downloading from drive. It is better to download single files since creating a zip might not include files <500 MB. This has been observed mutiple times. - After downloading the files and adding them to the appropriate folder, the path of the folder can be given as input tu the data_dir path. """ datasets.load_dataset("medical_dialog", name="en", data_dir="Medical-Dialogue-Dataset-English") def _info(self): if self.config.name == "zh": features = datasets.Features( { "file_name": datasets.Value("string"), "dialogue_id": datasets.Value("int32"), "dialogue_url": datasets.Value("string"), "dialogue_turns": datasets.Sequence( { "speaker": datasets.ClassLabel(names=["病人", "医生"]), "utterance": datasets.Value("string"), } ), } ) if self.config.name == "en": features = datasets.Features( { "file_name": datasets.Value("string"), "dialogue_id": datasets.Value("int32"), "dialogue_url": datasets.Value("string"), "dialogue_turns": datasets.Sequence( { "speaker": datasets.ClassLabel(names=["Patient", "Doctor"]), "utterance": datasets.Value("string"), } ), } ) return datasets.DatasetInfo( # This is the description that will appear on the datasets page. description=_DESCRIPTION, features=features, supervised_keys=None, # Homepage of the dataset for documentation homepage=_HOMEPAGE, # License for the dataset if available license=_LICENSE, # Citation for the dataset citation=_CITATION, ) def _split_generators(self, dl_manager): """Returns SplitGenerators.""" path_to_manual_file = os.path.abspath(os.path.expanduser(dl_manager.manual_dir)) if not os.path.exists(path_to_manual_file): raise FileNotFoundError( f"{path_to_manual_file} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('medical_dialog', data_dir=...)`. Manual download instructions: {self.manual_download_instructions})" ) filepaths = [ os.path.join(path_to_manual_file, txt_file_name) for txt_file_name in sorted(os.listdir(path_to_manual_file)) if txt_file_name.endswith("txt") ] return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepaths": filepaths})] def _generate_examples(self, filepaths): """Yields examples. Iterates over each file and give the creates the corresponding features. NOTE: - The code makes some assumption on the structure of the raw .txt file. - There are some checks to separate different id's. Hopefully, should not cause further issues later when more txt files are added. """ data_lang = self.config.name id_ = -1 for filepath in filepaths: with open(filepath, encoding="utf-8") as f_in: # Parameters to just "sectionize" the raw data last_part = "" last_dialog = {} last_list = [] last_user = "" check_list = [] # These flags are present to have a single function address both chinese and english data # English data is a little hahazard (i.e. the sentences spans multiple different lines), # Chinese is compact with one line for doctor and patient. conv_flag = False des_flag = False while True: line = f_in.readline() if not line: break # Extracting the dialog id if line[:2] == "id": # Hardcode alert! # Handling ID references that may come in the description # These were observed in the Chinese dataset and were not # followed by numbers try: dialogue_id = int(re.findall(r"\d+", line)[0]) except IndexError: continue # Extracting the url if line[:4] == "http": # Hardcode alert! dialogue_url = line.rstrip() # Extracting the patient info from description. if line[:11] == "Description": # Hardcode alert! last_part = "description" last_dialog = {} last_list = [] last_user = "" last_conv = {"speaker": "", "utterance": ""} while True: line = f_in.readline() if (not line) or (line in ["\n", "\n\r"]): break else: if data_lang == "zh": # Condition in chinese if line[:5] == "病情描述:": # Hardcode alert! last_user = "病人" sen = f_in.readline().rstrip() des_flag = True if data_lang == "en": last_user = "Patient" sen = line.rstrip() des_flag = True if des_flag: if sen == "": continue if sen in check_list: last_conv["speaker"] = "" last_conv["utterance"] = "" else: last_conv["speaker"] = last_user last_conv["utterance"] = sen check_list.append(sen) des_flag = False break # Extracting the conversation info from dialogue. elif line[:8] == "Dialogue": # Hardcode alert! if last_part == "description" and len(last_conv["utterance"]) > 0: last_part = "dialogue" if data_lang == "zh": last_user = "病人" if data_lang == "en": last_user = "Patient" while True: line = f_in.readline() if (not line) or (line in ["\n", "\n\r"]): conv_flag = False last_user = "" last_list.append(copy.deepcopy(last_conv)) # To ensure close of conversation, only even number of sentences # are extracted last_turn = len(last_list) if int(last_turn / 2) > 0: temp = int(last_turn / 2) id_ += 1 last_dialog["file_name"] = filepath last_dialog["dialogue_id"] = dialogue_id last_dialog["dialogue_url"] = dialogue_url last_dialog["dialogue_turns"] = last_list[: temp * 2] yield id_, last_dialog break if data_lang == "zh": if line[:3] == "病人:" or line[:3] == "医生:": # Hardcode alert! user = line[:2] # Hardcode alert! line = f_in.readline() conv_flag = True # The elif block is to ensure that multi-line sentences are captured. # This has been observed only in english. if data_lang == "en": if line.strip() == "Patient:" or line.strip() == "Doctor:": # Hardcode alert! user = line.replace(":", "").rstrip() line = f_in.readline() conv_flag = True elif line[:2] != "id": # Hardcode alert! conv_flag = True # Continues till the next ID is parsed if conv_flag: sen = line.rstrip() if sen == "": continue if user == last_user: last_conv["utterance"] = last_conv["utterance"] + sen else: last_user = user last_list.append(copy.deepcopy(last_conv)) last_conv["utterance"] = sen last_conv["speaker"] = user ``` running this code gives me the error: ``` File "C:\Users\Fabia\AppData\Local\Programs\Python\Python39\lib\site-packages\datasets\utils\info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=0, num_examples=0, dataset_name='medical_dialog'), 'recorded': SplitInfo(name='train', num_bytes=292801173, num_examples=229674, dataset_name='medical_dialog')}] ``` Hi @fabianslife, thanks for reporting. I think you were using an old version of `datasets` because this bug was already fixed in version `1.13.0` (13 Oct 2021): - Fix: 55fd140a63b8f03a0e72985647e498f1fc799d3f - PR: #3046 - Issue: #2969 Please, feel free to update the library: `pip install -U datasets`.
[ -0.0822347105, -0.1012541056, 0.0506370142, 0.2017839402, 0.2633808851, 0.1685770303, 0.0695230365, 0.3702645302, 0.0356435217, 0.1093899533, -0.3243410289, -0.1678570658, -0.2540262043, 0.2069634944, -0.0428670831, -0.0932669938, -0.1223635525, 0.1837748289, -0.0260311496, -0.0639087632, -0.289732784, 0.3934536874, -0.1954779476, 0.1877860576, -0.1856003553, -0.1499014795, -0.0101948297, 0.255608201, -0.115221478, -0.4220688343, 0.0924975201, -0.049588576, -0.149270311, 0.2886662483, -0.0001166153, -0.0065964716, 0.4009491205, -0.0713842213, -0.4339611232, -0.2540563941, 0.1313821375, -0.3205159605, 0.1037529856, -0.0638358369, -0.1562525332, -0.1953098327, 0.1677977443, -0.0769336745, 0.3271372318, 0.4283127487, 0.2095063031, 0.4849649072, 0.1842076778, -0.1346450597, -0.040590167, -0.2048740834, -0.1212997362, 0.2380755544, 0.1828802973, 0.0269929618, 0.0527459383, 0.3027258515, -0.1575195193, 0.0641234964, 0.1269059926, -0.0285632703, 0.1781820357, -0.2157180011, 0.1740413755, 0.4907416701, 0.3824258447, -0.2173597664, -0.1474623531, -0.4859428108, -0.1597751528, -0.0888682008, 0.1685721427, 0.2050097585, -0.1217925549, 0.1508706212, -0.298301369, -0.213140741, -0.113663353, 0.1146651879, 0.2418624163, -0.2215076685, -0.139775306, 0.044508297, 0.3040447831, -0.0977017209, 0.0613323525, -0.0643989667, 0.1481475234, 0.2524743676, -0.3526422083, 0.0232418533, 0.0686798543, 0.5975242853, 0.4845497012, 0.0587841123, -0.0263767932, -0.181801334, 0.1276572198, -0.0384420566, 0.0964784399, 0.0655280277, -0.0612434372, 0.1387531161, -0.017042527, 0.327691257, 0.1118507758, 0.1094721481, 0.1075876653, -0.3062860072, -0.0333932675, -0.0190594029, 0.3457419574, -0.1425896138, -0.2742962837, 0.2366678268, -0.0440536104, 0.0637442991, -0.0333527736, 0.2590544522, -0.1769038737, 0.0435285978, 0.1166360602, 0.1159577593, -0.3451220989, -0.1613076478, -0.2608225942, 0.1643085927, -0.0332897194, 0.1689849347, 0.0347322896, -0.1255003959, 0.2564378977, -0.1071614251, 0.2307155281, 0.0722803995, 0.056706313, 0.0726834089, -0.2184644341, 0.2611078024, -0.0535261631, 0.236499235, 0.2328541428, -0.2591093481, -0.1387569457, -0.1284891963, 0.0172980633, -0.3381441236, -0.0802358612, 0.1900098771, -0.2638621032, 0.014308528, 0.0297070742, 0.1307978183, 0.0930798948, -0.1983012706, 0.0333299451, -0.0617576502, 0.0044349646, -0.2744120657, 0.1232729405, 0.7426920533, -0.1395767927, -0.283049196, 0.0191564355, -0.1410680115, 0.1419608444, 0.5420592427, 0.0058146371, 0.0687238052, -0.411934644, 0.3345682323, -0.2171800435, -0.358002454, -0.6660625935, 0.2153518796, -0.3179682195, 0.3620890677, 0.2330597937, 0.0182174724, 0.0280611105, 0.003095025, 0.0458006449, 0.1369432062, -0.0440054573, -0.0849101618, -0.3701814115, -0.4301193655, 0.2411246896, -0.02328429, 0.1990386993, 0.1035282388, 0.0802483857, 0.0383671261, 0.3199337423, -0.1821790934, 0.0209118649, 0.2389182746, 0.1267652214, 0.2265432477, -0.0901512504, -0.1460616142, -0.581496954, 0.2160629183, -0.1932526231, 0.2225379497, -0.3028110564, -0.1779702455, -0.2360212058, -0.1964426935, -0.2772651911, -0.2810020745, 0.1227610409, 0.2595590651, 0.3135047257, 0.2352922261, 0.0345581546, 0.7752690911, -0.0233305618, 0.252283901, -0.7721093893, 0.3411809504, -0.1991529912, -0.1179218888, 0.2211401165, 0.0363144837, 0.2060832828, -0.0644016415, 0.0028670386, 0.4849652648, -0.1496255994, 0.4109019935, -0.0291131102, 0.1369059831, 0.2067422718, -0.3650001287, -0.0245871916, 0.0684618801, 0.0142566292, 0.028160017, -0.0001098695, 0.1398441792, -0.133672446, 0.1685014814, 0.1113565639, 0.1893994659, 0.1078235582, -0.0124494852, -0.3713843524, -0.2351923287, 0.4695644379, 0.245634988, 0.2423609793, 0.0623888001, -0.4302945435, -0.0021303564, 0.3643642366, -0.1484609693, 0.127719596, -0.014842324, -0.1894425154, -0.0664962679, -0.0950462222, -0.1106677055, 0.1218651682, 0.2724353373, -0.0799275488, 0.3874332905, -0.0665778145, -0.2628053129, 0.0560829602, 0.0531192198, 0.1897229105, 0.27043733, -0.1357045323, -0.0093826102, -0.4821294546, 0.1189675704, -0.1958281547, 0.3352092206, -0.491024226, -0.3174892068, -0.2799963951, -0.0921365395, 0.0074217101, -0.1840840727, -0.2012171447, -0.1917652041, -0.1656813771, -0.0163897667, 0.0405472741, 0.2200469673, -0.1257197559, 0.1210514903, 0.0384353884, -0.1624416709, -0.2158189267, -0.0795656443, -0.1359451562, 0.0479290783, -0.0171365775, -0.090439111, 0.4363773465, -0.5416260958, 0.0498073846, -0.2271080166, -0.3000354767, 0.0101093659, -0.2053350508, 0.2798481882, 0.317930162, 0.4344513118, -0.001432515, 0.0614341423, 0.2266160846, -0.2231182158, -0.1952258199, -0.032288596, 0.0966494754, 0.0942687467, 0.0933217555, -0.2693894804, -0.3744223714, -0.4122770727, 0.3693109751, -0.1089497134, 0.0985021144, 0.5286793709, 0.0807347223, 0.3109907508, -0.1672536582, 0.2240257263, -0.2821724117, -0.1232079268, 0.255734235, -0.0820048451, -0.3442487121, -0.1020710021, 0.0245838817, 0.131722331, -0.0023872808, -0.4030704796, -0.292111963, -0.2679083347, 0.0483531021, 0.2299390435, -0.0519906171, 0.541655004, -0.0149334036, -0.0770052671, -0.0996071771, -0.3142590821, 0.0239280686, 0.0432604514, 0.0952378139, -0.0779516175, 0.6070739031, 0.0214169119, 0.5544836521, 0.4699340761, 0.2559576631, 0.229414314, -0.151699096, 0.5467893481, -0.0128664561, -0.5121337771, 0.2927034199, 0.0441055149, -0.0650535524, 0.2897482812, -0.1048722565, 0.2026493549, -0.2118299752, -0.2646672428, -0.6456464529, -0.1762982607, -0.2353816628, 0.1617206484, 0.1434622556, 0.160946086, -0.0330208875, -0.0053425473, -0.0370313711, 0.0971671864, 0.4108883142, -0.0226050355, 0.0751704201, -0.0085365521, 0.076392822, -0.4592523277, 0.3236079812, -0.0331929065, 0.0805515349, -0.1665815115, -0.1113563254, 0.0163444933, -0.1424544752, 0.5026258826, -0.0410013236, -0.0517015643, -0.1781110317, -0.1287594587, -0.4919137359, 0.04327612, 0.0168441646, 0.0840708613, 0.3116862178, 0.5281102657, -0.4452826977, -0.0976346731, 0.19451873, 0.2515942156, -0.0102093779, 0.0243888665, -0.1799251586, -0.4172773063, -0.3505486846, -0.0204988904, -0.0808864385, 0.2304374576, 0.1812806129, -0.0034345645, 0.199510783, -0.1697457582, 0.0967651978, -0.1427955031, 0.1331948936, 0.0529024079, 0.1512797475, 0.5728703141, 0.5350928903, 0.0786043108, 0.6240761876, -0.0691428408, -0.4440068603, -0.3057984114, 0.1007195041, -0.120041877, 0.3571653664, -0.0907668546, -0.1712183654, 0.2837341726, 0.271453917, 0.0085828044, 0.1053773984, 0.3946861625, 0.0094588865, -0.371593684, -0.3436361551, 0.4316321909, 0.1858188063, 0.0516974255, -0.1783379912, 0.4775496721, -0.2511236966, -0.2157899141, 0.0383540019, 0.8953424096, -0.0937918946, 0.1848929375, 0.4055725336, -0.3966810107, 0.5989507437, 0.2056718618, 0.0263480525, -0.1713030189, -0.0057373871, 0.0048289034, -0.1337894052, 0.2126365602, -0.1230243295, -0.2461895496, 0.3847281337, -0.1709043831, -0.0642694533, 0.0748049691, 0.3311958015, -0.170707956, -0.1093560159, -0.0325815678, 0.1384076923, -0.219391495, 0.4188014865, -0.0394176058, -0.2404273003, -0.2072573453, -0.1882775128, -0.3397915959, 0.2743100822, -0.5847673416, -0.0383865684, 0.0013112319, -0.1300222576, 0.005401697, 0.2360230237, 0.324405998, -0.0345861502, -0.5137813687, 0.1101063266, -0.0878317356, -0.305937469, 0.0995746702, -0.0866929516, 0.4145116508, -0.1283955723, -0.2166633308, 0.1674262136, 0.0495165288, -0.1370412558, -0.3493126929, -0.2952976525, -0.1627619565, -0.2227132767, -0.1866935641, -0.1915900558, -0.0312723555, -0.2495830059, 0.1094711721, 0.0906830132, -0.1328963339, 0.024429433, -0.0419647321, -0.3151349425, -0.251362741, 0.4610463679, 0.1521811932, -0.0512660407, 0.5632688403, 0.2002717108, -0.3233127892, -0.2465096712, -0.2250162512, 0.2704407275, -0.4776332676, 0.1393508911, -0.0432996638, 0.2182225287, 0.0449526049, 0.2880504727, 0.3602121174, -0.2466482967, 0.0008967501, -0.2222546786, -0.4700655937, 0.1309071481, -0.0596206784, 0.1966872513, 0.1623690873, 0.4077444077, 0.2241561413, -0.1239377782, -0.3124750257, 0.010613733, -0.216711551, -0.114677757, 0.45451805, -0.2232976258, 0.3484701216, 0.0189634021, 0.1943913847, -0.0108624771, -0.2793110013, -0.2075916678, -0.0625482872, 0.1083012968, 0.1035748422, -0.2605866492, -0.0125266006, -0.1723844409, -0.0854243115, -0.0786763355, 0.1147760376, 0.3418751359, 0.0524758883, 0.0601616874, -0.3211009502, -0.0983441249, 0.2594397366, 0.1410192549, -0.2399785221, 0.1701226681, -0.0224099327, 0.1299790293, -0.0862883329, -0.0759859309, 0.2344021499, 0.1600450426, 0.1328869611, 0.0322782062, 0.3297136426, -0.4442741573, -0.2793811262, 0.2657354176, 0.3345656693, 0.3478668928, -0.1545236856, -0.0968599692, 0.045682963, 0.1354719549, -0.4223065376, 0.0854439214, 0.3438809514, -0.1444565207, 0.2125074118, 0.2527526021, 0.0185992569, 0.0357810892, -0.1073871106, 0.0520083122, 0.4747007787, 0.087994948, 0.0454615243, 0.4360029697, 0.0565340742, -0.0573729537, 0.2500699759, 0.304816395, 0.2394034863, 0.235513255, -0.2547443211, 0.0261710063, -0.560819447, 0.2080359012, -0.0529208034, -0.1945705414, 0.0836817622, 0.2501783967, -0.240620479, 0.2422857136, -0.1558194757, 0.3652954996, -0.0064624217, 0.0582906753, -0.1107829288, 0.2679825425, -0.0867995098, -0.1373019665, 0.0936743543, -0.1433954984, -0.2697413564, 0.0202534981, 0.0329395868, -0.1448673755, 0.0917573422, -0.1159002334, 0.0034590519, -0.3567976058, -0.1539384574, 0.2904308438, 0.0051560788, -0.318398267, 0.0882054791, 0.0092957756, -0.1275780648, 0.0581469871, 0.600628376, 0.5509274602, 0.196961537, -0.2879448831, 0.0864192396, -0.0020190147, -0.0037810011, 0.0222028587, 0.2670423687, 0.0346134976, 0.0645355955, 0.4949603081, 0.0983036235, -0.2181581557, 0.2130800039, -0.189775005, -0.1522803456, -0.371840328, 0.0021489311, -0.3389193714, 0.1232426465, -0.2732036114, 0.0447228961, -0.5747818351, -0.1598295569, 0.2288896143, -0.066387713, 0.1712823808, -0.0344492681, 0.0886585638, -0.1183390394, 0.4662489593, 0.7658452392, 0.1950760186, -0.1461924016, -0.0811329409, -0.6188271046, 0.0709036738, -0.1768274158, -0.1068474203, 0.0268811416, 0.1973494291, 0.0654342622, -0.0235469639, 0.2058245987, 0.4085811973, -0.3481048048, -0.1655450016, 0.0909102187, -0.0640657917, -0.0993563309, -0.0876769796, 0.0563984327, -0.176240772, 0.2348361611, 0.1353074908, 0.0527086407, -0.3077133894, 0.2911676764, -0.1260605454, -0.2398659289, 0.2262183279, 0.3468193114, 0.2222936898, -0.2367585152, -0.3089569807, -0.1678967476, 0.0932966024, -0.2515740991, 0.2456221879, 0.1267859936, 0.2110754251, -0.1027123928, -0.0325403586, -0.3003506064, 0.2116854638, 0.2983044982, -0.198544234, -0.0631467029, 0.0725483149, 0.032104291, -0.0725311413, -0.0324789844, 0.3848542869, -0.1235979944, 0.2762275934, -0.1951680183, -0.3528312445, 0.6450754404, -0.305115968, -0.1233927533, 0.0146149267, 0.2928107977, 0.1111808047, -0.1781678349, -0.3361108005, 0.1590392143, 0.2901155651, 0.1698991954, -0.3439466655, 0.0882543102, -0.1428325176, -0.0652751178, 0.0769714415, 0.2256623656, 0.2567755878, -0.1163156033, 0.3305069804, -0.0624506287 ]
https://github.com/huggingface/datasets/issues/3563
Dataset.from_pandas preserves useless index
Hi! That makes sense. Sure, feel free to open a PR! Just a small suggestion: let's make `preserve_index` a parameter of `Dataset.from_pandas` (which we then pass to `InMemoryTable.from_pandas`) with `None` as a default value to not have this as a breaking change.
## Describe the bug Let's say that you want to create a Dataset object from pandas dataframe. Most likely you will write something like this: ``` import pandas as pd from datasets import Dataset df = pd.read_csv('some_dataset.csv') # Some DataFrame preprocessing code... dataset = Dataset.from_pandas(df) ``` If your preprocessing code contain indexing operations like this: ``` df = df[df.col1 == some_value] ``` then your df.index can be changed from (default) ```RangeIndex(start=0, stop=16590, step=1)``` to something like this ```Int64Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ... 83979, 83980, 83981, 83982, 83983, 83984, 83985, 83986, 83987, 83988], dtype='int64', length=16590)``` In this case, PyArrow (by default) will preserve this non-standard index. In the result, your dataset object will have the extra field that you likely don't want to have: '__index_level_0__'. You can easily fix this by just adding extra argument ```preserve_index=False``` to call of ```InMemoryTable.from_pandas``` in ```arrow_dataset.py```. If you approve that this isn't desirable behavior, I can make a PR fixing that. ## Environment info - `datasets` version: 1.16.1 - Platform: Linux-5.11.0-44-generic-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 6.0.1
42
Dataset.from_pandas preserves useless index ## Describe the bug Let's say that you want to create a Dataset object from pandas dataframe. Most likely you will write something like this: ``` import pandas as pd from datasets import Dataset df = pd.read_csv('some_dataset.csv') # Some DataFrame preprocessing code... dataset = Dataset.from_pandas(df) ``` If your preprocessing code contain indexing operations like this: ``` df = df[df.col1 == some_value] ``` then your df.index can be changed from (default) ```RangeIndex(start=0, stop=16590, step=1)``` to something like this ```Int64Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ... 83979, 83980, 83981, 83982, 83983, 83984, 83985, 83986, 83987, 83988], dtype='int64', length=16590)``` In this case, PyArrow (by default) will preserve this non-standard index. In the result, your dataset object will have the extra field that you likely don't want to have: '__index_level_0__'. You can easily fix this by just adding extra argument ```preserve_index=False``` to call of ```InMemoryTable.from_pandas``` in ```arrow_dataset.py```. If you approve that this isn't desirable behavior, I can make a PR fixing that. ## Environment info - `datasets` version: 1.16.1 - Platform: Linux-5.11.0-44-generic-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 6.0.1 Hi! That makes sense. Sure, feel free to open a PR! Just a small suggestion: let's make `preserve_index` a parameter of `Dataset.from_pandas` (which we then pass to `InMemoryTable.from_pandas`) with `None` as a default value to not have this as a breaking change.
[ -0.2243756503, 0.3234053254, 0.0587055907, 0.1705539376, 0.2824808955, 0.0902998, 0.4146197438, 0.3388771415, -0.3311904967, 0.2017637938, -0.0870507881, 0.7348047495, 0.0466929898, -0.0187785905, 0.0809659511, -0.0653653294, 0.0340247042, 0.3033463359, -0.2229703665, 0.012182055, -0.2992596328, -0.2617446482, -0.1162524149, 0.2087625116, -0.1491329372, -0.0711380541, -0.0544276536, 0.0133537445, -0.0843412131, -0.4421840906, 0.1837628186, -0.2413154244, 0.0348998718, 0.1909716129, -0.0001061488, 0.1269637644, 0.2929551899, 0.1040476859, -0.2487769276, -0.2009606957, 0.0406556502, -0.0854232162, 0.2651417553, -0.1809880733, 0.0517310798, -0.4325744212, -0.1412443966, -0.0870837048, -0.0658285916, 0.3131158948, 0.2831374705, 0.2681262195, 0.1087154672, 0.0363561176, 0.4885994196, -0.0615905337, -0.1852741092, 0.2224209458, -0.120996356, -0.0868605971, 0.0378794298, -0.0343750268, -0.2417909354, -0.0810278431, 0.1166482344, 0.2406052351, 0.1946251541, -0.1090769619, -0.0143213496, 0.3205243349, 0.2647430897, -0.5828949809, -0.3346120119, -0.1726161242, 0.2476529181, -0.5424515605, -0.0686818659, 0.119909361, 0.1778431386, 0.4228181839, 0.0825977549, 0.2070682198, -0.2193766981, 0.1262442768, -0.1504840702, 0.1809943467, 0.1318942457, 0.2256334126, 0.1389176399, 0.0344901234, 0.1877878457, -0.2394260019, -0.0424300097, 0.0216426961, -0.1525306702, 0.0851544514, 0.2426302433, -0.0835164115, 0.1542247981, -0.0691077113, -0.0732640922, 0.1020489782, 0.2712259889, 0.1270654649, 0.1114306748, 0.0795775503, -0.2477151603, 0.2102602124, 0.2814891636, -0.2274585813, 0.0221740175, -0.0388558246, 0.2345328033, -0.0820037872, 0.4982729852, -0.0928102285, 0.3799665272, -0.025490921, -0.418523252, 0.0523929335, -0.4124318361, 0.0365242809, -0.1004812121, 0.1861465871, 0.019200312, -0.0545817949, -0.3121850193, 0.1766641438, -0.2005535215, 0.0827705115, -0.2802987993, 0.0382546782, -0.0823890045, 0.1494998634, 0.0279745925, -0.2132972628, 0.045825053, 0.3085217774, 0.0590579845, 0.1295129955, 0.106138587, -0.2581413984, 0.1074688658, 0.3506390452, -0.0868679136, 0.1980046183, 0.0668549463, -0.4710258543, -0.2249351293, 0.4137711525, -0.0721865222, -0.498490423, -0.2762148082, 0.2748335302, -0.1268715858, 0.1859219819, -0.2722288072, 0.1883835793, 0.0368746407, 0.052816797, 0.2728886604, -0.3318122327, -0.0458404534, -0.4111840427, 0.064227514, 0.1589533985, -0.5422580242, 0.0993660837, -0.1239060089, -0.1799289584, -0.0124158086, 0.0127795823, -0.4224136472, 0.1676036268, -0.2014567107, 0.2659123838, 0.1465141475, -0.0390392765, -0.5903707147, -0.0812666491, -0.3164004385, 0.0748179331, -0.0046121129, 0.2540891767, 0.1371315271, -0.020682212, 0.0233568698, 0.32255885, -0.037250448, -0.0005473286, -0.170341894, -0.0654916987, 0.258484453, 0.1509493142, -0.122704789, -0.0588214286, 0.2197585255, -0.4168145657, 0.2868820429, -0.2132770717, 0.0574426241, 0.1162126958, 0.3327488899, -0.0041006925, 0.1484286338, -0.2234967947, -0.2341686338, 0.2428616881, 0.0887253284, 0.1104404479, -0.4512271881, -0.3861406446, -0.0482698381, 0.266158551, -0.1477150768, -0.049728591, 0.1613945067, -0.2309211195, -0.1080143079, 0.0410445333, -0.1869440228, -0.0742334798, -0.0987840965, 0.1398877203, -0.0784161016, 0.4354539216, -0.10692586, -0.1603868902, -0.0796015859, 0.1150523797, 0.0811772719, -0.071262069, -0.045851998, 0.4587309062, 0.0951657966, 0.1705026031, -0.2288713455, 0.0968258306, 0.1209890693, -0.3104605377, -0.1178050041, 0.0831965804, 0.193121016, 0.07995148, 0.0779101104, 0.5578993559, -0.1037523001, 0.0209622532, -0.0314837322, -0.0993581936, 0.1898504198, -0.0706328973, 0.1051087976, -0.1282125413, -0.2510678768, 0.3841779828, 0.0853051916, 0.2948792577, -0.3544217646, 0.2508254349, 0.4527948201, -0.2150282264, 0.06464497, 0.1020575315, -0.2573451996, -0.0807984844, 0.0674881116, -0.0632733852, 0.3379606605, 0.3345302343, 0.0522973537, 0.1367140114, -0.1877577454, -0.1570265591, 0.2007957101, 0.1371200234, 0.2361498028, 0.1705016792, 0.2098523378, -0.1249791086, -0.3151076436, 0.0695138872, -0.0096891103, 0.3304159045, -0.3519198, 0.3122062087, -0.4095880091, -0.1308336556, -0.0795679241, -0.4027686417, -0.0770068467, -0.0548902825, 0.0143308938, 0.3446910977, -0.1582425535, 0.3020526171, -0.2424169332, -0.0738852695, 0.1630614996, -0.3808794916, 0.0585220568, -0.219614774, -0.3668566942, 0.1522368342, 0.0176431723, 0.1277708262, 0.0929870307, 0.197969228, 0.1255374998, -0.3530886769, -0.2634618282, 0.102422066, -0.1938585788, 0.573022306, 0.0309656542, -0.1565893888, -0.2808253169, -0.0906412676, 0.1143863574, -0.3027763963, -0.1869519502, 0.164443925, -0.2237973362, 0.1112728193, -0.0406736843, -0.2121741921, -0.0585656464, -0.1605529189, 0.0616935492, -0.0139580239, 0.0542015918, 0.2147477567, 0.1488818079, 0.1853149682, 0.1422726959, 0.0321763568, -0.2231363058, 0.0788145438, 0.4090474546, -0.0333049297, -0.3800208271, -0.1998157948, -0.4535878897, -0.3254095316, 0.2696207166, -0.3782709241, -0.1802102923, -0.0177932903, 0.3628464043, 0.0895249918, 0.1121088415, 0.4093685746, 0.132996738, -0.1490147412, -0.1208344772, -0.326641351, -0.0129802199, 0.218672812, -0.2089796364, -0.1045490578, 0.4196886718, -0.0629871413, 0.4607955813, -0.1169155985, -0.0415239781, 0.4389567673, -0.31905213, 0.5942973495, -0.1948079616, -0.2386009842, -0.226967752, 0.0247919317, -0.1130093336, 0.1696794629, -0.1190273464, -0.3576886654, 0.1651341617, -0.1939508766, -0.1999301165, -0.2959311903, 0.0281857494, 0.1862736344, 0.0320444889, 0.2690423429, 0.1900381297, -0.2420044988, -0.1216039285, 0.0699040666, -0.2195707411, -0.1128821895, -0.1887395829, -0.1371393204, -0.2559314966, -0.3848878145, 0.1071002334, 0.3119594157, 0.0845165327, 0.4089255929, -0.3637802303, 0.1041970551, 0.0129828565, 0.6305729151, 0.0133324033, -0.1044420004, 0.2691538632, 0.0460814014, -0.4698493779, -0.0071718278, -0.0851876214, 0.2347481996, -0.1844674647, 0.2204052359, -0.3166566789, 0.0028092552, 0.2778359056, 0.3586331606, -0.0924408436, -0.1679596156, -0.2875196338, -0.2846518755, 0.0833478123, 0.1111381277, -0.0903847963, 0.3423289061, -0.0282259956, 0.0262781512, -0.3852846324, -0.2473985553, 0.0216775294, 0.1188190728, 0.3807659745, 0.0125942742, 0.273131907, 0.0341567621, -0.0612080656, 0.5384241939, 0.4184992909, -0.0135342814, -0.0578310154, -0.2368108183, -0.1068264171, 0.2256709337, 0.2154373527, -0.0940101296, 0.1059027314, -0.3079473674, 0.0476074927, 0.077550821, -0.134093523, 0.1563801169, -0.2174679488, -0.2209553421, -0.264914453, 0.4586108029, 0.0229447689, -0.1610207409, 0.3315794766, 0.5408637524, -0.2781659067, 0.3168817163, 0.2349688262, 0.8849518299, 0.041045256, 0.2334592193, 0.5126281381, -0.198975116, 0.2527839243, 0.2523706555, 0.2079355121, -0.5127144456, -0.5287424326, 0.0323812589, -0.1404796392, -0.0648314059, 0.0177166518, 0.0287700295, 0.1651387811, -0.1385480165, 0.3065487742, 0.1794327348, 0.1236262694, -0.0010034848, -0.2119412273, -0.3277380168, 0.0837177113, 0.1643553376, -0.3174697757, -0.0328479558, -0.1451918781, -0.2082000524, -0.0894132853, 0.0612866692, 0.0687112287, 0.0230348799, 0.2903873026, -0.0257459451, -0.3397102058, -0.3089455962, -0.1326584071, 0.0929947495, -0.2651739419, 0.0045792651, 0.0962505043, 0.2116130143, 0.1461784542, 0.1933259964, -0.2691996098, 0.4238429964, 0.047947973, -0.2199449986, 0.1378006786, 0.041472014, -0.2330870926, 0.0395071469, 0.0123596173, 0.0391915627, -0.138234973, 0.1324741095, -0.1256295443, 0.1667248607, -0.3968362212, 0.1708749235, -0.0604581125, 0.1237664744, 0.3035057485, -0.1824498028, -0.3303020298, -0.3953493536, 0.2994752824, 0.1330745369, 0.4673863351, 0.2712835371, 0.0222162735, -0.2214514613, -0.1230901927, 0.1573875397, 0.3474437296, -0.3909674585, 0.2182408124, -0.0637889504, 0.276294589, 0.0439667404, 0.1345618516, 0.0696051344, 0.0958080143, -0.2144818753, -0.0907036886, -0.2619543672, 0.2283851355, 0.2282606959, 0.1114063114, 0.0833820775, 0.1794038862, -0.0255235936, -0.1220336184, -0.3796449602, 0.1008725166, 0.0434150659, 0.234958306, -0.0618979558, -0.056670174, 0.0972662568, -0.1834588498, 0.2654394805, -0.1168221459, -0.052103214, -0.3268518746, -0.3027046323, 0.084693186, -0.0441401675, -0.2601146698, -0.0510075428, -0.2454117239, -0.065361537, -0.2141588926, 0.1118024588, 0.2868818045, -0.0495365225, 0.0332411937, 0.3602156043, -0.0253077913, -0.1226697341, -0.1346957684, -0.2237706631, 0.2382025868, -0.0352323204, 0.289901793, -0.2231634706, -0.0406894162, -0.0434185416, 0.0014188131, -0.1324645728, -0.0528668948, 0.3398047388, -0.3034737408, -0.3112100959, 0.178847298, 0.4696739614, 0.2473811954, -0.0732435361, -0.2362982482, 0.2484652102, 0.3116790056, -0.4119211435, -0.1709465832, 0.1052826345, -0.2847560942, 0.1102530882, 0.2812992632, 0.1006826535, 0.1259895712, -0.199780196, 0.0655188486, 0.0992927626, 0.2432433963, -0.127398625, 0.5726804733, -0.0794314072, -0.0822137147, 0.5635821819, 0.3313483, 0.4563495815, 0.5569054484, 0.008404783, 0.3796197474, -0.0447607301, -0.0533753484, -0.0650358573, -0.0568334758, 0.2016605884, 0.1715745479, -0.035721954, -0.3549579382, 0.391123414, 0.2902361453, 0.2153894007, -0.0467280447, -0.029584771, 0.2477417886, -0.1196554899, 0.0029539405, 0.1032416746, -0.0948463231, 0.0791309252, 0.0504698083, -0.0324235484, -0.2300841212, 0.12146274, 0.0883116871, -0.027346652, -0.3084400594, 0.2946619689, 0.2315663993, 0.1637471914, -0.0288160983, -0.302213043, 0.1697161049, -0.1943959445, -0.161647886, 0.0325533487, 0.2846644819, -0.0270852055, -0.2661408186, -0.0251483116, 0.0183701832, -0.2240318507, -0.0038115287, 0.0804010108, 0.0117287375, 0.1584290713, 0.1731032878, 0.2349556983, -0.2217812538, -0.0105667133, 0.2118837237, 0.2831099927, -0.41928491, 0.129620105, 0.2581102252, -0.2998043597, -0.0139788939, -0.0288939998, 0.1291562468, 0.1883364469, 0.4289996326, -0.1277612001, -0.0177597534, -0.1953205317, 0.1165588498, 0.1175674051, 0.1810917258, 0.159601301, 0.2390894741, -0.2319156826, 0.1109509617, -0.6824199557, 0.2403043807, -0.2198542804, -0.0403194241, 0.2911249995, 0.2242960334, 0.0037719451, 0.1477856636, 0.2475739866, 0.3026168346, 0.0025958349, 0.0610109828, -0.0493491441, -0.1634027213, -0.2664417922, -0.1736772209, -0.3027769327, -0.3700723052, 0.2331068069, -0.3924843371, 0.2437395453, -0.3088058829, -0.0091888122, 0.1723462194, 0.2962604165, 0.5440494418, 0.1368765533, -0.0375526957, -0.0194014609, 0.1915557384, -0.0568335392, -0.1194884479, -0.3039357364, 0.2800561488, -0.2116945684, 0.0766440779, 0.0070989304, -0.2306827307, -0.18913728, 0.2631832957, 0.1145750955, -0.0169225596, -0.3097241521, 0.2484390736, -0.3098442554, 0.013440731, -0.395440042, 0.1573706865, 0.1317021996, 0.2750215232, -0.0037736061, -0.4997940063, 0.4104661345, -0.6524382234, -0.3170660734, -0.0779509097, 0.2321285307, 0.4452560842, -0.2862722278, -0.0551086739, 0.1188774779, 0.4268456697, -0.0629284084, -0.2609908879, 0.1370349973, -0.1997549832, 0.2479987741, -0.1477065384, 0.2038974166, -0.0322436728, -0.2468860894, -0.0247846525, -0.2775456607 ]
https://github.com/huggingface/datasets/issues/3561
Cannot load ‘bookcorpusopen’
The host of this copy of the dataset (https://the-eye.eu) is down and has been down for a good amount of time ([potentially months](https://www.reddit.com/r/Roms/comments/q82s15/theeye_downdied/)) Finding this dataset is a little esoteric, as the original authors took down the official BookCorpus dataset some time ago. There are community-created versions of BookCorpus, such as the files hosted in the link below. https://battle.shawwn.com/sdb/bookcorpus/ And more discussion here: https://github.com/soskek/bookcorpus Do we want to remove this dataset entirely? There's a fair argument for this, given that the official BookCorpus dataset was taken down by the authors. If not, perhaps can open a PR with the link to the community-created tar above and updated dataset description.
## Describe the bug Cannot load 'bookcorpusopen' ## Steps to reproduce the bug ```python dataset = load_dataset('bookcorpusopen') ``` or ```python dataset = load_dataset('bookcorpusopen',script_version='master') ``` ## Actual results ConnectionError: Couldn't reach https://the-eye.eu/public/AI/pile_preliminary_components/books1.tar.gz ## Environment info - `datasets` version: 1.9.0 - Platform: Linux version 3.10.0-1160.45.1.el7.x86_64 - Python version: 3.6.13 - PyArrow version: 6.0.1
109
Cannot load ‘bookcorpusopen’ ## Describe the bug Cannot load 'bookcorpusopen' ## Steps to reproduce the bug ```python dataset = load_dataset('bookcorpusopen') ``` or ```python dataset = load_dataset('bookcorpusopen',script_version='master') ``` ## Actual results ConnectionError: Couldn't reach https://the-eye.eu/public/AI/pile_preliminary_components/books1.tar.gz ## Environment info - `datasets` version: 1.9.0 - Platform: Linux version 3.10.0-1160.45.1.el7.x86_64 - Python version: 3.6.13 - PyArrow version: 6.0.1 The host of this copy of the dataset (https://the-eye.eu) is down and has been down for a good amount of time ([potentially months](https://www.reddit.com/r/Roms/comments/q82s15/theeye_downdied/)) Finding this dataset is a little esoteric, as the original authors took down the official BookCorpus dataset some time ago. There are community-created versions of BookCorpus, such as the files hosted in the link below. https://battle.shawwn.com/sdb/bookcorpus/ And more discussion here: https://github.com/soskek/bookcorpus Do we want to remove this dataset entirely? There's a fair argument for this, given that the official BookCorpus dataset was taken down by the authors. If not, perhaps can open a PR with the link to the community-created tar above and updated dataset description.
[ -0.2679781318, 0.2642430663, -0.0406800844, 0.3686515391, -0.1236103103, 0.0088020796, 0.3477190137, 0.2313549519, -0.0628313869, -0.0716194585, -0.3619252145, 0.118346341, 0.317332238, 0.1622451842, 0.2099274844, 0.1416336894, 0.1095947549, 0.1244373322, -0.0420725048, -0.1039996296, -0.328976959, 0.2198023796, -0.001149757, 0.2526173592, 0.2699788809, -0.223253563, -0.0906175897, 0.3051839769, -0.1197850853, -0.2623184323, 0.4554979801, 0.1434920579, 0.3238527179, 0.6428262591, -0.0001143883, 0.0899471641, 0.0564443059, -0.0990107507, -0.3595983386, -0.065146625, -0.0582972355, -0.1493970752, 0.095328711, -0.3118152022, 0.0231516752, 0.0105587645, 0.0196719058, -0.1644538641, 0.2155456394, 0.2412837744, 0.2213805616, 0.4040020406, 0.3803328872, 0.0679683611, 0.2500817776, -0.1040581465, -0.3095433116, 0.5428575277, 0.3403079212, 0.0807541981, 0.0224007722, 0.3587880731, -0.1305622309, -0.1254705191, 0.1965779066, -0.1220627278, 0.5176153183, -0.2331691086, 0.247646749, 0.2934414148, 0.5113762021, -0.2616435289, -0.4140468836, 0.1837057322, 0.1699529588, 0.0322331078, 0.3097358644, 0.334712863, 0.0053675077, 0.2169807851, 0.0254638828, -0.4843738377, -0.0615807623, 0.3431072831, -0.2274960876, 0.2735557258, -0.0729938, 0.2040790319, 0.3152402639, 0.1779633164, 0.1018488333, 0.0266223997, -0.1606456935, 0.0825365484, -0.164601773, -0.0588695481, -0.2169840336, 0.5055844784, -0.0336552039, 0.123165518, 0.212854445, -0.123024568, -0.086871922, 0.1260263622, 0.4837768972, 0.0123021416, 0.0481714122, 0.1520151496, 0.2045627832, 0.7138829231, 0.1913658082, 0.0981345624, -0.1880588382, -0.0510262214, 0.0337160863, -0.1175663471, 0.5653992891, -0.4848368764, -0.4543456733, 0.3072773814, -0.0077443887, -0.0197185315, 0.0198656991, 0.1600172818, -0.2206798941, 0.2074651867, 0.2650175393, -0.0204159599, -0.2330150604, -0.1891527623, -0.1086948961, 0.1059304997, -0.1655209363, -0.0604044646, 0.359439224, -0.3906920254, 0.2246901393, -0.099516198, -0.0536312163, 0.0602480993, 0.2040916234, -0.3240057528, -0.1276813149, 0.2504815161, -0.0160012189, -0.067020379, 0.0321131013, -0.2059645653, -0.19868806, 0.3059182763, -0.2018957734, -0.1519726217, -0.5673009753, 0.1900297999, -0.197519511, 0.0819127932, -0.4204939902, -0.0876159519, 0.1104665995, -0.2966825366, 0.1409500986, -0.1353540868, 0.0633405671, -0.139405027, 0.1342308074, 0.2713605165, -0.4957620502, -0.0497972853, -0.3453406394, -0.0532547534, 0.0271551535, 0.1291700006, -0.3058458567, -0.0599794239, -0.0734915882, -0.2498874366, 0.1228134185, -0.2078670859, -0.6266629696, 0.1747738868, -0.1749511361, 0.2422842234, -0.1076101139, 0.1224827915, -0.2711033523, -0.2856104672, 0.1892530024, 0.0395688973, 0.1427498758, -0.3307003081, -0.2452438623, -0.4436431229, 0.1804315299, 0.4680603147, 0.1191376597, -0.1772887707, -0.1076783687, 0.0890365243, 0.3502187133, 0.1766110212, -0.0509195551, 0.1819293201, 0.1754274517, 0.0680611208, 0.1992986053, 0.0068422747, -0.3301228285, 0.2409983873, -0.4696341753, 0.2182341814, -0.0805592611, -0.4297944903, -0.44062078, -0.1004213244, -0.0509002656, 0.0636586323, 0.0401799195, -0.0480421484, -0.27444911, 0.0435154736, -0.2564123273, 0.0903474167, -0.1550248265, 0.2813825905, -0.6964088678, 0.1154368445, -0.4056469202, 0.178099826, -0.063344866, 0.1042407677, 0.0719778612, -0.1598701179, 0.0037434665, 0.4030951858, -0.3168519139, 0.0403874107, 0.0982341096, 0.1801530719, 0.222207278, -0.4282799065, 0.3501418829, 0.5049270391, 0.2856430113, 0.0103452755, -0.1090491042, -0.0089987423, 0.1305780858, 0.0984048843, 0.02916063, -0.0030103114, 0.0958844945, -0.1273360252, -0.15203771, 0.0504451245, 0.1843437403, -0.1030523032, 0.2075476646, 0.0862353221, -0.1398867667, -0.0408842489, 0.0376984105, -0.1187177375, 0.0815704465, 0.2617833018, -0.1485504359, -0.1240708679, 0.2126574665, -0.1838729978, 0.1995605826, 0.0322750211, -0.1208019406, 0.0325936675, 0.1097607762, 0.0484641045, 0.3112055659, 0.397185564, -0.0660107359, 0.0028016465, 0.0665199161, 0.2005403191, -0.2754912078, -0.4903722405, -0.2283382863, 0.163760215, -0.1722084284, 0.1698347032, 0.2370212078, -0.2141721845, -0.0838473961, 0.1873280406, -0.3687983751, -0.0789535716, 0.0286410488, 0.2352348864, 0.0669862777, 0.1225118041, -0.3489832878, 0.2770345509, -0.3919393122, 0.0014274283, -0.133337304, -0.0565214008, -0.3301624358, 0.0920079052, 0.2122506946, -0.211972937, 0.0552849956, -0.5115882158, -0.3799058199, -0.1695480645, -0.356703192, 0.0359566845, -0.2347743958, 0.1806859076, 0.1634972095, 0.2807316184, -0.3463642895, -0.3735805154, 0.0737927482, -0.0436908528, 0.1714197099, 0.0170258805, -0.189846158, -0.1302832961, -0.0081235701, -0.3031012416, -0.2066405863, -0.2951742113, 0.2240195274, 0.1978417039, 0.0908305272, 0.2454814017, -0.1749835163, -0.0004800277, 0.5221595168, 0.1750655621, -0.2276177257, -0.3855638206, 0.2468341887, 0.1684844047, -0.1682075709, 0.1463077217, 0.0505341105, 0.2771578133, 0.0531833731, -0.817751646, -0.0254863519, 0.0538309775, -0.1250704825, -0.2742980719, 0.0514637046, 0.1140514538, 0.2335758507, -0.0938274562, 0.2096381485, -0.3126136065, -0.0161299389, 0.3687925637, 0.28633371, -0.1188386008, -0.2148837894, -0.1089709103, 0.4244801104, 0.0496545844, 0.0606807843, 0.1882961541, 0.2901285887, 0.494892329, -0.0835360885, -0.4200487435, -0.1669686139, -0.1790693849, -0.2194239944, 0.312114507, 0.092399478, -0.5306641459, -0.2999592423, -0.1856970638, -0.5346146822, -0.3557182252, -0.0302827545, 0.0454124957, 0.1717104763, 0.08466129, 0.108016327, 0.129076615, -0.2535159886, 0.2515771389, 0.3383431733, -0.0479187332, 0.0521367528, -0.1686297208, 0.0389617495, -0.5621462464, 0.3946812749, -0.3506307602, 0.1533899605, -0.0215277001, 0.0641561374, 0.2522918284, -0.3106724322, 0.3366471231, 0.011896465, 0.1693474203, 0.4326081574, 0.0655252486, -0.4873348475, -0.1630595177, -0.1588412821, 0.2365312129, 0.1979538649, 0.1405780166, -0.3204976022, -0.0455868207, 0.4747410417, 0.2749094665, -0.1099568456, 0.1819977164, -0.3156817257, -0.6483119726, -0.0299830511, -0.0074676145, -0.0557294413, 0.1810331345, 0.0239413418, 0.0424791537, 0.0126241688, 0.0552045032, 0.3615249097, 0.0019523762, 0.2238718271, 0.0675264001, 0.3025586903, 0.0722644404, 0.0651200339, 0.3528347015, 0.8450402617, 0.1759486049, -0.3835077286, 0.0241624843, -0.0803995058, -0.081914179, 0.5034763813, 0.0871974379, -0.3210948706, 0.2912596464, 0.1088249758, -0.0220866706, 0.128490895, 0.1654881537, -0.2300364673, -0.5719309449, -0.3588835597, 0.2725360096, -0.0127193136, -0.1920895725, 0.167994529, 0.2625388503, -0.0600968227, 0.5150806904, -0.1034374982, 1.32089293, -0.1910914779, 0.2649567723, 0.1777676046, 0.1361930072, -0.0367327034, -0.4152928889, 0.0811300501, -0.120993644, -0.2529943883, -0.1835798472, 0.1717648357, 0.184137851, 0.1882667691, -0.0826531202, 0.4189198613, -0.2966529429, -0.1607295126, 0.0315491892, 0.0362101644, -0.1666063666, -0.0825976059, -0.2720405161, 0.1232866645, -0.1083085984, 0.3267181814, -0.1173442379, 0.1197491363, 0.0505606569, -0.0791377351, -0.173343733, 0.1487749219, -0.2359651923, 0.2098185569, -0.2402945757, -0.3419056535, 0.1123977676, 0.2680840492, 0.2357700318, 0.11550688, -0.1867633909, 0.3021386862, 0.0177207645, -0.1832669228, 0.3159809113, 0.0997120738, 0.0249073487, 0.0441482514, -0.1935634613, 0.1093414798, -0.0663239732, -0.1012838259, 0.2247374952, 0.0487212986, 0.4204213321, -0.2965245545, 0.1464334577, -0.1017274186, 0.1119235083, -0.1886057705, 0.1073554158, 0.0405637808, -0.0199183933, -0.1571420878, 0.0268189423, -0.2701840401, -0.1839719862, 0.5585182905, 0.3987170756, -0.0521878004, 0.2937117219, -0.0304553509, -0.0499026775, -0.2364774197, -0.0572556369, 0.0656941459, -0.7015140653, 0.0174829029, 0.160724014, -0.0132902721, -0.0545378067, 0.3692054451, 0.2968901396, -0.106057696, 0.0066493857, -0.3410922587, 0.0782836378, 0.3608202338, 0.2570414245, 0.13288939, 0.5220054388, -0.2816987336, -0.1601065993, -0.1147825792, -0.3017418981, 0.3185017705, -0.3986577988, 0.0378245749, 0.0171088371, 0.0252088699, 0.0931180716, -0.1843763441, 0.1174047291, -0.162758261, -0.200676173, -0.1652440727, -0.1744900495, 0.1720487773, -0.0884338468, -0.2282896042, -0.0201226175, -0.220557183, -0.0144448187, 0.0426513813, 0.1863751858, 0.2804582417, 0.3309496939, 0.0036110112, -0.0518460348, 0.0006876992, -0.5843294859, 0.2148769647, -0.0287288222, 0.1500186771, 0.2624968588, 0.1854515523, -0.0489703976, -0.0518147126, -0.0963593572, 0.2524686456, 0.0218346585, 0.4749212861, 0.4306433201, -0.0136664947, 0.1397909373, 0.0313833877, 0.1195265278, 0.441539228, -0.3387796283, -0.1692393124, 0.0883209109, 0.2515736818, -0.4485961795, -0.1971061826, 0.2594450414, -0.2402012348, -0.1197831035, 0.2400658429, 0.312862128, -0.0698342398, 0.1358358264, 0.1246327534, 0.444722414, 0.0855221152, 0.3100286126, 0.3325445056, 0.0276905224, 0.0642832294, 0.1238717511, 0.2395185083, 0.249507606, 0.1048164815, -0.265188396, 0.1728865653, 0.2553798854, 0.4821549654, -0.1305575222, -0.3231161237, -0.0010568358, 0.1203215644, 0.0904828906, 0.1265002936, 0.2308172584, 0.2135331184, -0.3927084208, -0.1004695296, -0.3233563304, -0.2320170552, -0.0606496409, 0.0552731827, -0.1171348616, -0.1063242629, -0.193746388, 0.0056798621, -0.1999349296, -0.1773027629, 0.3571522236, 0.0279778931, -0.0929324627, -0.3370255828, -0.1625455916, 0.0410929583, 0.1781618595, -0.0831970572, 0.174335137, 0.1894725263, 0.0299984775, 0.0222442001, 0.3547235429, 0.2851715386, -0.2019107789, -0.0140841296, 0.0813570842, 0.1810421646, 0.012162962, -0.2289548665, 0.0184733458, -0.025275331, 0.3782162666, 0.1890066713, 0.1296845526, -0.1013664678, 0.0664453804, -0.1604100764, 0.3080023527, -0.3745546937, 0.2836544514, -0.3681476414, -0.3523115814, -0.1602153927, -0.0612538755, -0.1518192738, -0.055637408, 0.2342238724, 0.0879518241, 0.0129274158, -0.060394682, 0.0662776306, -0.174705565, 0.2286238223, 0.5654842257, -0.0941510722, -0.4411655962, -0.1250743866, -0.493929863, 0.3738009334, -0.1438073814, -0.3350329697, 0.3709637821, -0.0701511949, 0.2009260058, 0.3199349046, 0.0056024315, -0.0583460666, 0.0395346992, -0.0125726881, -0.2066346854, -0.0430394784, 0.0368615203, 0.2185161114, -0.1309239566, -0.4488105774, 0.047042381, -0.1497007012, -0.1188817173, -0.1541462839, -0.5131468773, 0.343575269, -0.219668299, 0.7518502474, -0.1327902079, -0.0874473304, 0.0026246158, -0.3542780578, -0.0680364966, -0.3516100645, -0.054361742, 0.2244984359, 0.0336194225, 0.2900224328, -0.0976326391, 0.1374471337, 0.0456630476, 0.4620166421, 0.001052868, 0.3293031156, -0.2571620047, -0.0241925381, -0.0702001825, 0.0461510979, 0.0539245494, 0.3411726058, 0.1364192963, -0.0783187523, -0.2135638595, -0.4617379308, 0.8660418987, 0.1177420765, -0.2225050628, -0.0900354236, 0.4192326665, -0.0936375782, 0.0461931601, -0.4728721678, 0.0849164501, 0.2110588402, 0.0127682164, -0.522585094, 0.0860668942, -0.4252762496, -0.0329186134, 0.0125585785, 0.2195968181, -0.2200663239, -0.266241312, 0.0273811352, -0.2109597027 ]
https://github.com/huggingface/datasets/issues/3561
Cannot load ‘bookcorpusopen’
Hi! The `bookcorpusopen` dataset is not working for the same reason as explained in this comment: https://github.com/huggingface/datasets/issues/3504#issuecomment-1004564980
## Describe the bug Cannot load 'bookcorpusopen' ## Steps to reproduce the bug ```python dataset = load_dataset('bookcorpusopen') ``` or ```python dataset = load_dataset('bookcorpusopen',script_version='master') ``` ## Actual results ConnectionError: Couldn't reach https://the-eye.eu/public/AI/pile_preliminary_components/books1.tar.gz ## Environment info - `datasets` version: 1.9.0 - Platform: Linux version 3.10.0-1160.45.1.el7.x86_64 - Python version: 3.6.13 - PyArrow version: 6.0.1
17
Cannot load ‘bookcorpusopen’ ## Describe the bug Cannot load 'bookcorpusopen' ## Steps to reproduce the bug ```python dataset = load_dataset('bookcorpusopen') ``` or ```python dataset = load_dataset('bookcorpusopen',script_version='master') ``` ## Actual results ConnectionError: Couldn't reach https://the-eye.eu/public/AI/pile_preliminary_components/books1.tar.gz ## Environment info - `datasets` version: 1.9.0 - Platform: Linux version 3.10.0-1160.45.1.el7.x86_64 - Python version: 3.6.13 - PyArrow version: 6.0.1 Hi! The `bookcorpusopen` dataset is not working for the same reason as explained in this comment: https://github.com/huggingface/datasets/issues/3504#issuecomment-1004564980
[ -0.304099828, -0.0313268453, -0.0976268277, 0.3863776624, 0.1762519777, -0.0748730153, 0.3626802564, 0.1297377497, 0.0686660558, -0.011390727, -0.3443722129, 0.2929640412, 0.4512723684, 0.4727550447, 0.2462410331, -0.2257454246, 0.0581259392, 0.0326237418, -0.1498839706, -0.0128786992, -0.2741917372, 0.2433876395, -0.2439013869, 0.1151219457, 0.0347778797, -0.0482543856, -0.1153988019, 0.207637623, -0.1773621738, -0.2931481898, 0.3920195401, 0.0796984136, 0.3414256275, 0.6839103699, -0.0001057868, 0.098888725, 0.2179621309, -0.1007972583, -0.2508337498, -0.3339307904, 0.0136697395, -0.2229677588, 0.1835237592, -0.3404554427, -0.1066095307, -0.0038231239, 0.0682202056, -0.0778978169, 0.2157715559, 0.2731748223, 0.3140530288, 0.486557126, 0.504131794, -0.1894097328, 0.2589670122, -0.1930468827, -0.3055263162, 0.3859068155, 0.1879627258, -0.022761805, 0.006926538, 0.2931950092, 0.0704250783, 0.0184212234, 0.2964849174, 0.1651800126, 0.2890576124, -0.2286773771, 0.1311082244, 0.2888595164, 0.5893779993, -0.3430305421, -0.4288449585, 0.1980899721, 0.0353051871, -0.0482677706, 0.2403665334, 0.2741198242, 0.0024976698, 0.0978774875, -0.0529080927, -0.1914313436, -0.2008307129, 0.3476569653, -0.0746482536, 0.18998456, -0.140644908, 0.09444502, 0.4421224892, -0.0651949346, -0.0740436763, 0.0313823745, -0.2132894695, 0.2532496154, -0.2683218122, 0.0807924941, -0.1002196148, 0.3529555202, 0.1015544236, 0.0460747182, 0.1917612106, 0.0786436275, -0.0968852714, 0.2581849992, 0.3640650511, 0.1725260764, -0.0227870494, 0.0971101671, 0.2282195091, 0.700720191, -0.0137570677, -0.1636494994, -0.1453305334, -0.1738511622, 0.0868594348, -0.2776423693, 0.3585457504, -0.360155195, -0.3709005713, 0.3883832991, -0.0415777788, -0.0881092995, 0.0041235355, 0.5087109208, -0.2309180349, 0.0699047744, 0.3570580781, 0.1927259862, -0.1977947056, 0.0101119308, -0.1891305745, 0.1511405557, -0.273326993, -0.0187432244, 0.3191660941, -0.3257420063, 0.403511852, -0.039933566, 0.2166831195, -0.0889153555, 0.146116063, -0.2246314138, -0.1274901181, 0.2353281379, 0.2621248662, -0.0685863793, 0.065679349, -0.0196942128, -0.1300848126, 0.0930282101, -0.1994359791, -0.0278198384, -0.3251883686, 0.2825752497, -0.1520909816, -0.0686280951, -0.4004479647, -0.0609165542, 0.1089005545, -0.2294531614, 0.0211113244, -0.1992719322, 0.0245255921, -0.109414719, 0.3554525971, 0.30287534, -0.3606639802, -0.1434229463, -0.2361541986, -0.180537045, -0.0555020906, 0.2575699091, -0.2320536673, -0.0333131291, -0.1370914727, 0.0158602484, 0.3123158514, -0.2744398117, -0.5513471961, 0.2150409818, -0.0283900294, 0.2342714965, -0.1087094843, 0.1122461259, -0.2205353379, 0.023791587, 0.2164283842, 0.2077669203, 0.1260237247, -0.1710081398, -0.2055869699, -0.3486626446, 0.0166731142, 0.441149056, 0.1020843908, -0.0726988986, 0.0253831018, -0.0721805319, 0.3531666994, 0.0695235059, -0.0735365376, 0.1227052063, 0.1832722872, 0.0771999583, 0.2287885398, -0.14532125, -0.2660003304, 0.2397563756, -0.3486397862, 0.2044307142, -0.061560601, -0.2220142633, -0.3950302303, 0.035456948, -0.1266088188, -0.0811914504, 0.1774270087, 0.0145137543, -0.1073367074, 0.0187750962, -0.1582645774, 0.1478349268, 0.0688468814, 0.1915236562, -0.5456566811, 0.2845678031, -0.3376747072, -0.1068236083, -0.0281463787, 0.0898927227, 0.0734538734, -0.1532950252, 0.0061348872, 0.34809798, -0.2124080956, -0.0243988037, 0.1298399121, 0.0591788851, 0.0733828619, -0.4544081092, 0.1580819637, 0.2984004021, 0.2761692405, 0.0501616299, -0.1404433697, 0.2039929479, 0.2342474461, 0.2024301738, 0.2034059912, -0.0016335286, 0.2011037171, -0.0892282501, -0.0016703333, 0.0262158364, 0.336371541, -0.2481397241, 0.0602839403, -0.0251091309, -0.3129990995, -0.0402562469, 0.1746573895, -0.0669003725, 0.2029161006, 0.1479575485, -0.1903833151, -0.0178293101, 0.1150676385, -0.3738417327, 0.257330507, 0.2263431102, -0.2497542351, 0.0930976942, -0.1334787011, -0.0581295826, 0.1939084083, 0.1569177061, -0.005337548, 0.0540843718, 0.0828353316, 0.0419433378, -0.2955306768, -0.3467866182, -0.1753731817, 0.1976492703, -0.2493765652, 0.1494531482, 0.1006184444, -0.1785405129, -0.0730083957, 0.0395987257, -0.2517970204, -0.0576481894, -0.178216055, 0.5135449767, 0.1653685719, 0.0944240019, -0.2523265183, 0.1649961472, -0.1305604279, -0.0083045419, -0.3104058504, -0.1165601686, -0.2800059021, 0.1639333069, 0.2169736624, -0.0081353746, 0.1147056967, -0.3798897862, -0.2331968546, -0.2768363655, -0.2770314813, 0.0278612971, -0.0243405513, 0.4442034364, -0.0164537374, 0.2563552856, -0.2690220773, -0.2391490638, 0.4104327559, -0.025218552, -0.0551100262, 0.063390106, -0.1336031258, -0.3349413574, -0.0116803981, -0.3949995637, -0.2395922691, -0.4058280289, 0.3706285655, 0.2338159829, 0.0733824968, 0.104986541, 0.0988710374, 0.0991876423, 0.2292342633, 0.1874795705, -0.221459344, -0.2830176353, 0.2920250893, -0.1198166087, -0.4630993009, 0.0656865835, 0.1131288856, 0.1902664155, -0.0264894553, -0.6776520014, -0.1692541838, -0.1752000898, 0.0313437842, -0.1260604858, 0.1965574771, 0.0402386002, -0.0052938056, -0.0928208008, 0.0170210134, -0.4726470411, 0.0850821659, 0.1414820552, 0.2064215839, -0.1225699931, 0.1178363785, -0.1756327003, 0.5118344426, 0.1037818715, -0.0811485201, 0.4418144524, 0.1093985885, 0.390829742, -0.2810315192, -0.4701531827, -0.1611880362, -0.3115677536, 0.0822238997, 0.220963493, -0.0024048779, -0.375274837, -0.4349367917, -0.1949695349, -0.4474476874, -0.269833982, -0.0290829875, 0.085218139, 0.1127505228, 0.0783265531, 0.1124550998, 0.0834706798, -0.0946435854, 0.179108426, 0.3534032106, -0.0007352362, 0.0388079658, -0.2802513242, -0.1462578475, -0.4805060327, 0.3283921778, -0.210369423, 0.1980583519, -0.2352585644, -0.0370914005, 0.223911956, -0.3204946518, 0.6144997478, -0.0093635814, 0.1728260219, 0.4057640135, -0.013636359, -0.526462853, -0.0828307867, -0.2940132022, 0.11707744, 0.2348421961, 0.3509582579, -0.2553066015, 0.0599553511, 0.4748440385, 0.1645158082, -0.0158452392, -0.0486561097, -0.4206216335, -0.3196687102, -0.1951255053, 0.0304842554, -0.118668139, 0.2436778396, -0.0011449257, 0.013608695, -0.0089298142, 0.0107659297, 0.1850789785, 0.2022734284, 0.2247380018, -0.0126277758, 0.3980644643, 0.1434929371, 0.0905327946, 0.2659112513, 0.7135412693, 0.0327083059, -0.5008511543, 0.0900157541, -0.0227073841, -0.0310291313, 0.2618307173, 0.051805824, -0.0624743104, 0.2001625299, 0.1251383275, 0.0244063102, 0.1497112662, 0.3137307167, 0.1028390452, -0.576992929, -0.3422691822, 0.4406668544, -0.1169515625, -0.0465575457, 0.0778569207, 0.1541463286, -0.1336718202, 0.4549635053, -0.2417917997, 1.0021089315, -0.1145407706, 0.2427241653, 0.2553594112, -0.014133065, -0.0129043814, -0.1486058533, 0.1356041133, -0.3271720111, -0.2582064867, -0.0649421215, -0.0613954253, 0.0654761493, 0.0572355166, -0.3087801635, 0.303160876, -0.2696458995, -0.2105709016, 0.0625184104, 0.0680762976, -0.0628703833, -0.141100511, -0.3803877234, 0.2314563692, 0.0443217568, 0.3567926884, -0.1676473916, -0.0226897616, -0.1196691021, -0.085467577, -0.2580916584, 0.3576474786, -0.2148175985, 0.1482171565, -0.0145061901, -0.2393376231, 0.0745884106, 0.2285681814, 0.2019247711, 0.1183306575, -0.2992404103, 0.1924430579, -0.1638436317, -0.1888489872, 0.2328923345, 0.0783179998, 0.1019886211, -0.0613801777, -0.3271622062, 0.0480009876, 0.0161411073, -0.0927089378, 0.1607933939, 0.0849569887, 0.2614637613, -0.3471041322, -0.0635157824, -0.1734281629, 0.0671194866, -0.2117796987, 0.1892756373, 0.0022359167, -0.0888841525, 0.0277047791, 0.2594613135, -0.2065007985, -0.1383990049, 0.6686165929, -0.0214781202, 0.0542105623, 0.160790205, 0.2781145573, -0.1004715934, -0.293972522, -0.06841553, 0.2279808074, -0.5964717269, 0.0711598545, 0.3115288615, -0.0122461496, -0.2038105279, 0.4656572342, 0.2762180567, -0.1813990027, 0.0180657972, -0.5407479405, -0.0445381775, 0.2763815522, 0.133655414, 0.1238092706, 0.4205599129, -0.1256549209, -0.0229182877, -0.0463673174, -0.3944762349, 0.2003708333, -0.3416558504, -0.007120599, 0.2691643834, -0.127671361, 0.1908138543, -0.0512644723, 0.225318253, -0.036440447, -0.2402384281, -0.2968451083, -0.1772971898, 0.0890922025, -0.0776546076, -0.2188912481, -0.0603155494, -0.2072436661, -0.0440434031, -0.1311188489, 0.2013142854, 0.1854420006, 0.0983481109, -0.1173911616, -0.0018790666, 0.0482340902, -0.3911754489, 0.1219954789, -0.0102478731, -0.0283728186, 0.1875773668, 0.0173595678, -0.1033102944, -0.0359385796, 0.0618633702, 0.0826954842, 0.1943311542, 0.2518769503, 0.3417833745, -0.168628633, 0.0890346318, 0.0306382421, 0.1952399462, 0.258320719, -0.2637284398, 0.0951636583, 0.1451113373, 0.3402833045, -0.462610811, -0.3310275078, 0.2628762424, -0.2222930491, -0.0609533861, 0.0674420297, 0.1682220697, 0.0301944911, 0.1276479661, 0.0827873349, 0.4194489419, 0.1094553918, 0.1979373991, 0.1648473293, 0.0678075179, 0.1128057018, 0.2298573256, 0.2070115507, 0.2516305447, 0.283180207, -0.3263908923, 0.0258055311, -0.0321173668, 0.4552662969, -0.1533532888, -0.3228697777, -0.0931858197, 0.1509293765, 0.0849810392, 0.1022504494, 0.0031262373, 0.3928726315, -0.2795146108, -0.0575892068, -0.4269496799, -0.1229105666, -0.0750925615, -0.071915336, -0.072382018, -0.2172936648, -0.1823534518, -0.0228917673, -0.1022445783, -0.0781274065, 0.348131001, 0.0352818072, -0.1361167431, -0.4408045709, -0.20945701, 0.2311015725, 0.1317866296, -0.1543653607, 0.3024119735, 0.0414042734, -0.0694854334, 0.0454166159, 0.3235851526, 0.4469957948, 0.0963473693, 0.0580982678, 0.0781949535, 0.0795664564, -0.0529595129, -0.1919621378, 0.0879728049, 0.1996473819, 0.2975708842, 0.2231722176, 0.2505525947, -0.2763690948, 0.1207804531, -0.0362225324, 0.3711418808, -0.355302006, 0.2637490034, -0.4586302042, -0.2723971009, -0.2378589809, -0.1085037589, -0.4034242034, 0.0586191155, 0.1236774847, -0.00416792, 0.0169550627, -0.1156774983, 0.1177267581, -0.0524105132, 0.3808487356, 0.4653937519, 0.1157524809, -0.4122169912, -0.0680556446, -0.5506902933, 0.2974469364, -0.023951225, -0.1374248713, 0.1637555063, 0.0550795645, 0.0528820343, 0.1838723123, 0.2359380871, -0.0581839234, 0.2420050204, 0.1067413762, -0.2926804721, -0.0834685564, -0.0636497661, 0.2304434031, -0.0520003736, -0.420627594, 0.0070127388, -0.2719002962, 0.0221781563, -0.1552064121, -0.3012882173, 0.125462234, -0.3118230104, 0.7638133764, -0.0955329537, 0.3096137345, -0.0481367819, -0.0540891849, -0.133028537, -0.4544858038, -0.0161107089, 0.1133314893, 0.0620735958, 0.3218181431, -0.0733561292, 0.0230256189, -0.0932176262, 0.4070433974, 0.0060418434, 0.131233111, -0.0869073272, 0.0950933695, 0.035676565, -0.1404300481, -0.0507300943, 0.148741737, -0.0063778115, -0.1298784614, -0.2225790918, -0.35940063, 0.708979547, -0.0996626318, -0.2034867555, -0.0851794705, 0.2821946442, -0.12864016, -0.1914440244, -0.479683429, 0.1527657956, 0.230920583, 0.1226006001, -0.442481041, 0.1469134241, -0.3285801411, 0.0742826909, -0.1102859452, 0.2534855008, -0.0451954342, -0.2648028135, 0.0469535962, -0.2261340618 ]
https://github.com/huggingface/datasets/issues/3561
Cannot load ‘bookcorpusopen’
Hi @HUIYINXUE, it should work now that the data owners created a mirror server with all data, and we updated the URL in our library.
## Describe the bug Cannot load 'bookcorpusopen' ## Steps to reproduce the bug ```python dataset = load_dataset('bookcorpusopen') ``` or ```python dataset = load_dataset('bookcorpusopen',script_version='master') ``` ## Actual results ConnectionError: Couldn't reach https://the-eye.eu/public/AI/pile_preliminary_components/books1.tar.gz ## Environment info - `datasets` version: 1.9.0 - Platform: Linux version 3.10.0-1160.45.1.el7.x86_64 - Python version: 3.6.13 - PyArrow version: 6.0.1
25
Cannot load ‘bookcorpusopen’ ## Describe the bug Cannot load 'bookcorpusopen' ## Steps to reproduce the bug ```python dataset = load_dataset('bookcorpusopen') ``` or ```python dataset = load_dataset('bookcorpusopen',script_version='master') ``` ## Actual results ConnectionError: Couldn't reach https://the-eye.eu/public/AI/pile_preliminary_components/books1.tar.gz ## Environment info - `datasets` version: 1.9.0 - Platform: Linux version 3.10.0-1160.45.1.el7.x86_64 - Python version: 3.6.13 - PyArrow version: 6.0.1 Hi @HUIYINXUE, it should work now that the data owners created a mirror server with all data, and we updated the URL in our library.
[ -0.2113384753, 0.1578316838, -0.0710607544, 0.3246243894, -0.0623678938, -0.1400378644, 0.3946614563, 0.1990953535, 0.0004558234, -0.0569876432, -0.3438051939, 0.318657428, 0.4406041205, 0.2468894124, 0.1852912009, -0.1837173253, -0.0093768798, 0.0977922305, -0.2471719235, -0.1362242401, -0.2226492614, 0.2103238404, -0.2186716795, 0.0564594381, 0.0957673714, 0.0557496846, -0.1874883324, 0.2291536331, -0.1800057888, -0.2768177986, 0.3075954318, 0.0620443821, 0.2802501023, 0.7133699059, -0.0001043752, 0.1147789136, 0.2440027893, -0.1123208553, -0.1996038407, -0.3130016625, 0.0770697594, -0.2271603048, 0.2209308445, -0.3804937005, -0.0671214089, -0.0349610411, 0.0549526364, -0.054491248, 0.1544204205, 0.3217820227, 0.3033830822, 0.4034891129, 0.4645882547, -0.1542152911, 0.3528247774, -0.3595564663, -0.2430075854, 0.4711849093, 0.2329699248, -0.0000270361, -0.0594381467, 0.2717031538, 0.0006137127, 0.0236881617, 0.1965852976, 0.0888852403, 0.2946031988, -0.1633600891, 0.0341505483, 0.2413432747, 0.7398321629, -0.2725265622, -0.4196256697, 0.2690435946, -0.0104722045, 0.1753216386, 0.1445168406, 0.294185549, 0.0955388471, 0.1861483753, -0.0064804363, -0.2058638185, -0.243358314, 0.3780086935, -0.1200266033, 0.3623867035, -0.0302212555, 0.0756171569, 0.3546872139, -0.0821367726, 0.1572983265, 0.1028215289, -0.1625429392, 0.2287706733, -0.1837221235, 0.0521073639, -0.1136937588, 0.0814214498, 0.0651368201, 0.2042746395, 0.2832840383, 0.0479984395, -0.1897612065, 0.3114687502, 0.2890386283, 0.2099094838, -0.0990481973, 0.2186513096, 0.2040911019, 0.5851656199, -0.0522705577, -0.1133780628, -0.183131367, -0.1301209927, -0.0175679512, -0.2839525342, 0.3272910118, -0.3732515574, -0.2428336889, 0.3340558708, -0.1135901511, 0.0038516852, -0.0512586981, 0.4544197023, -0.2428417951, 0.1243248433, 0.4575767815, 0.1149265543, -0.1609883457, -0.0197774712, -0.1905477792, 0.0718090683, -0.2310279161, -0.09217944, 0.3717740178, -0.2346973568, 0.3886068761, -0.132455349, 0.2145483196, -0.0450338982, 0.2261023521, -0.1107661277, -0.0937566459, 0.2854643166, 0.243088454, -0.0938539803, 0.0770736933, 0.044229269, -0.1203149781, 0.1645058692, -0.340085417, -0.1221260726, -0.3745466769, 0.2861119807, -0.1825065017, -0.1074182317, -0.2950912118, -0.2062167525, 0.0992174968, -0.3185287416, 0.0059391996, -0.0863391757, 0.079010047, -0.2045503408, 0.3045517206, 0.2460778952, -0.3608827889, -0.0126382224, -0.2692111135, -0.0628831238, -0.054433424, 0.2876455188, -0.2625781, -0.1211234704, -0.1881089807, 0.0460058041, 0.3114864528, -0.263156265, -0.6067814827, 0.2937269211, -0.2281535566, 0.1462282091, -0.0250609983, 0.1078273728, -0.0763036683, -0.0253908988, 0.2408119589, 0.2417179644, 0.2699097395, -0.1109600738, -0.3394349813, -0.3910668492, -0.0384811722, 0.4875763059, 0.1057461947, -0.0100297853, 0.0949738175, -0.054008022, 0.4236531258, 0.1404283792, -0.0630757585, 0.1220270991, 0.2237712592, 0.1767885089, 0.3094778359, -0.0424289294, -0.0907083377, 0.2697152793, -0.3930767477, 0.2053227872, -0.0588644259, -0.2123314589, -0.428557992, 0.0650537759, -0.089962326, -0.0569386445, 0.2328092754, -0.090460889, -0.2030474842, 0.0396566689, -0.0656253397, 0.1372672766, 0.0822558925, 0.1634833217, -0.4641527832, 0.3984287083, -0.3690485954, -0.0225082487, -0.0202385485, -0.0086793173, 0.1869436502, -0.1579684615, -0.0603019372, 0.313441813, -0.2789281011, 0.1034662947, 0.2607091069, 0.0233396608, 0.0776280686, -0.5886684656, 0.3687870204, 0.4780145586, 0.296459645, 0.0148391724, -0.0755929872, 0.1813368797, 0.2256783396, 0.1825270653, 0.1536368728, 0.0372754261, 0.1909893602, -0.1526697129, 0.0254957937, 0.0202581137, 0.3346024454, -0.1322576255, -0.0063850693, 0.0396117866, -0.2098359615, -0.0408607572, 0.1187139675, -0.0673248842, 0.215824157, 0.1518543959, -0.1765341163, -0.0545131154, 0.1143115386, -0.261731267, 0.2376491278, 0.2424410433, -0.1962996274, 0.1205815971, -0.0530797243, -0.1583870798, 0.2539414465, 0.1262933761, 0.0370222591, 0.0898854136, 0.1443261355, 0.0009157897, -0.2410615981, -0.4116148353, -0.0746952519, 0.1623811722, -0.2382945716, 0.0791033134, 0.0664238259, -0.0957226083, -0.1217724979, 0.0451388955, -0.199778229, -0.1133357286, -0.1184488237, 0.4504693151, 0.0264465734, 0.0648227781, -0.3711137176, 0.0415998474, -0.1645878553, -0.1014218256, -0.2811215222, -0.1806523204, -0.288885206, 0.1768966466, 0.1535651088, -0.0825319439, 0.0570342131, -0.3095958531, -0.1843841821, -0.2965043187, -0.2994406819, -0.045690123, 0.0486635379, 0.2570072412, 0.0005068662, 0.2092553526, -0.1285837591, -0.2552424073, 0.358630538, -0.027417494, 0.0589396656, 0.1379741132, -0.1063659117, -0.2267005444, -0.0193146169, -0.5125074387, -0.3380690515, -0.3987956345, 0.314742893, 0.1875484288, 0.1704497784, -0.0023095885, 0.1591466963, 0.0435287207, 0.3087788224, 0.160881117, -0.1396671981, -0.2524965107, 0.373723954, -0.147897616, -0.4355970621, 0.0946123153, 0.1519610137, 0.0961540788, -0.0401360914, -0.6759766936, -0.1097939387, -0.1375063509, -0.0273620877, -0.0781619698, 0.1414000541, 0.0561330914, 0.0347312018, -0.1499191821, 0.0273851715, -0.4032807052, 0.0654854402, 0.159084186, 0.1545918733, -0.0933998451, 0.1210774705, -0.083007589, 0.6092500687, -0.0274667982, -0.0149577595, 0.436960578, 0.1339588016, 0.2517249584, -0.2581676245, -0.4237671196, -0.1597117335, -0.2568036318, -0.0600540899, 0.2483064383, 0.0157658383, -0.5045006275, -0.4501191378, -0.3331962228, -0.5675030947, -0.2753208876, 0.0089197354, -0.0719381571, 0.0911383629, 0.0780937299, 0.0128876735, 0.0145098297, -0.0963312164, 0.1521010399, 0.3040141761, -0.1481874138, 0.0833374262, -0.1206774637, -0.0940038413, -0.2736775577, 0.353967309, -0.2671337426, 0.2980114818, -0.1249781474, -0.100547798, 0.2629596889, -0.3230398297, 0.638014853, 0.0082694218, 0.3022169173, 0.3665378392, 0.0259197634, -0.451187104, -0.1541582048, -0.2001920789, 0.0294609778, 0.1749907434, 0.2141485661, -0.2115743756, 0.1402035952, 0.4305332601, 0.0828724578, -0.0781247392, -0.0059864926, -0.3422329724, -0.3572891653, -0.2227009237, -0.0228666458, -0.1531080902, 0.1573431045, -0.1160224155, -0.013709126, -0.0152600715, 0.0305186007, 0.1163145229, 0.1457173824, 0.2639703751, -0.1099143773, 0.3240835071, 0.1155624241, 0.0948384851, 0.2871701717, 0.7446414232, 0.1116942689, -0.3370912671, 0.041785121, -0.0551413819, -0.020662671, 0.2610169947, 0.0048211315, -0.2074571848, 0.1395502388, 0.0342626087, 0.1634100825, 0.0662318096, 0.188321963, -0.0808208585, -0.4458663464, -0.3623213768, 0.5419849157, -0.1763762683, -0.0892957151, 0.0025266311, 0.0234434903, -0.1174282581, 0.602439642, -0.2046650946, 1.07310009, -0.0784781128, 0.2624060512, 0.117059119, -0.1561500728, -0.0487363227, -0.2989570498, 0.0636298433, -0.3299022019, -0.2562718093, -0.0851659104, -0.0718799159, -0.0237158071, 0.1108014062, -0.307567507, 0.2754490077, -0.2756039798, -0.2234491855, 0.1724719703, 0.1816823184, 0.0252918806, -0.0874755457, -0.3112658262, 0.2398578823, 0.0349986032, 0.2546244264, -0.1421050578, -0.142579034, -0.1960466951, -0.1053925678, -0.2052361667, 0.4745501876, -0.2542688847, 0.2434314042, -0.1754250079, -0.2466665357, 0.0102597224, 0.0822102875, -0.0186552703, 0.2524265349, -0.308870405, 0.2326643616, 0.0173444767, -0.1279834956, 0.2950786054, 0.1582986116, 0.0416651815, -0.0549742579, -0.3730274439, 0.0725264102, -0.0148361558, -0.160564214, 0.1594183743, 0.0751500577, 0.3132824302, -0.2070559412, -0.0709974021, -0.1074108332, 0.0134177031, -0.1893331856, 0.2036079913, 0.0533238836, -0.1922431737, -0.0843846798, 0.2157756388, -0.2456856966, -0.0664409474, 0.7728044391, 0.1232257932, 0.1468596011, 0.2361034006, 0.2071629316, -0.0184178166, -0.2692121863, -0.0887424871, 0.0694495812, -0.6529726982, 0.0005069808, 0.2313907444, -0.0818223208, -0.0766117126, 0.393376261, 0.2997403741, -0.0084870327, -0.1044646427, -0.5065671802, 0.0216872152, 0.2028723508, 0.0818260685, 0.0827914327, 0.3796269, -0.0641475096, 0.0060422923, -0.1236646175, -0.4116663039, 0.315048337, -0.3315867186, 0.0308318809, 0.0936476514, -0.1347466111, 0.1418402344, 0.0005322082, 0.2200605273, -0.0489713214, -0.2237579972, -0.2962745726, -0.1254371405, 0.1226468533, -0.0033886824, -0.1222443804, -0.2312854975, -0.3860677481, -0.0391735248, 0.0650051981, 0.1203333363, 0.1621112078, 0.1240960434, -0.0797165334, 0.0519694202, -0.0031842298, -0.4444368482, 0.1985837817, -0.0452792235, -0.065884687, 0.1298242509, 0.0912828967, -0.1583109349, -0.0694922432, 0.0590968281, 0.0226700995, 0.0615421608, 0.3145031035, 0.436816752, -0.1629356742, 0.1339528263, -0.0509844087, 0.1849841475, 0.2612164915, -0.2078340203, -0.0729369372, 0.1526343524, 0.3540167511, -0.4477764368, -0.3526628911, 0.2382069379, -0.1806350201, -0.1087968126, 0.0087979622, 0.2350682616, -0.0875483826, 0.047091797, 0.1349907964, 0.445715487, 0.1635049134, 0.1719189137, 0.2580153346, 0.0004262487, 0.1204206944, 0.162528187, 0.1544805169, 0.2563191652, 0.3055799603, -0.3128968179, 0.0885480419, 0.0809004307, 0.3286983371, -0.1676595211, -0.2168354094, -0.1381679326, 0.1188590527, 0.2074526995, 0.1913174242, -0.0565063022, 0.3620160818, -0.1326013803, -0.0254450031, -0.4138616323, -0.0808367059, -0.0249359589, -0.0275644884, -0.1080126464, -0.2123764455, -0.2032846212, -0.1128249168, -0.1027130336, -0.0808826908, 0.3284742832, 0.0993054062, -0.0961510465, -0.5230860114, -0.143099308, 0.1823871732, 0.0958136544, -0.2565134764, 0.2666962147, 0.0365914851, -0.0634076819, 0.089863658, 0.2327132076, 0.4223219454, 0.123612158, 0.041864749, 0.1407302767, 0.0946136937, -0.1001295149, -0.1753361374, 0.062429551, 0.2533451021, 0.1925166994, 0.2253410667, 0.2436021119, -0.280416429, 0.1619313806, -0.013588082, 0.3202233016, -0.3014871478, 0.2309499979, -0.3325869143, -0.4070995152, -0.1952549219, -0.0987859964, -0.4688844681, -0.0728330091, 0.2020842433, 0.0007822522, 0.0137464339, -0.1523217261, 0.1187068522, -0.0169551205, 0.3687722385, 0.454598397, 0.1130872741, -0.3886917531, -0.0843030885, -0.5450871587, 0.3988426626, -0.1244460344, -0.151455313, 0.2204361409, 0.0839764699, 0.1343571395, 0.113032192, 0.1673181951, 0.078170374, 0.0332961939, 0.1699645072, -0.2004832774, -0.1290975213, -0.1461673081, 0.2446922064, -0.0701119229, -0.3832394183, -0.0369277336, -0.2993628085, 0.0884969532, -0.1257372499, -0.3810762763, 0.2922919393, -0.1487852037, 0.8024365306, -0.1313587129, 0.2803284526, 0.0017337932, 0.0286763385, -0.1990975291, -0.4653085172, -0.0179830287, 0.0020983454, 0.1543707848, 0.2491905391, -0.0300378595, 0.1560171247, -0.0484346636, 0.333078146, -0.0552200377, 0.0692114383, -0.0582428351, 0.0304074604, 0.0689732805, -0.1270094812, -0.0946803167, 0.1862232536, 0.0054394752, -0.1724075973, -0.190882057, -0.4672055542, 0.7114459872, -0.1030204967, -0.2075530738, 0.0333057381, 0.3456046283, -0.1726067513, -0.0587779693, -0.3827211261, 0.1652199924, 0.2739074826, 0.1309908777, -0.41242823, 0.0568276308, -0.2625150383, 0.0411125198, -0.1428362131, 0.2053294778, -0.0412620604, -0.2461291701, -0.0471074916, -0.1913258135 ]
https://github.com/huggingface/datasets/issues/3558
Integrate Milvus (pymilvus) library
Hi @mariosasko,Just search randomly and I found this issue~ I'm the tech lead of Milvus and we are looking forward to integrate milvus together with huggingface datasets. Any suggestion on how we could start?
Milvus is a popular open-source vector database. We should add a new vector index to support this project.
34
Integrate Milvus (pymilvus) library Milvus is a popular open-source vector database. We should add a new vector index to support this project. Hi @mariosasko,Just search randomly and I found this issue~ I'm the tech lead of Milvus and we are looking forward to integrate milvus together with huggingface datasets. Any suggestion on how we could start?
[ 0.0640774444, -0.6056883931, -0.1171271652, 0.3045168221, 0.2704040408, 0.0546639301, -0.0459689684, 0.1624069214, 0.0897542015, 0.3288972378, -0.0334931016, -0.2064775378, -0.2139965892, 0.0561555438, -0.0317880772, 0.0591635332, -0.0616706572, 0.2412931919, 0.001262023, -0.0326103196, -0.2023344934, 0.2339386344, -0.1005808264, 0.0185905676, 0.2333410382, 0.1426485479, 0.1572430283, -0.1160846874, -0.2688400149, -0.2826809883, 0.1873019189, -0.235159263, -0.151475966, 0.5717048049, -0.0001188723, -0.0652588978, 0.2326373458, -0.0549626164, 0.1972399056, -0.1731403023, 0.034770444, -0.3233482838, -0.1281182468, -0.1074106097, -0.1706587225, -0.2926496267, -0.0710720196, -0.5964465737, -0.2635918856, 0.1063940749, 0.1442858726, 0.4784964919, 0.3292409778, -0.0758836791, 0.3599384427, -0.121744141, -0.1919474602, 0.6081725359, 0.5009288192, -0.0002412909, 0.2405849397, 0.2835016847, -0.0646193996, -0.1182206422, 0.5529876351, 0.1180722564, 0.8380256295, -0.1818924695, -0.0281097386, 0.027206881, 0.134693563, -0.0680358559, 0.0575870536, 0.1364650875, 0.1755423099, -0.4938666224, 0.0569408759, 0.1757732928, 0.1318284124, 0.2205092907, 0.26554811, -0.1725438833, -0.0752056092, 0.2154687643, -0.0028352302, 0.3418534994, 0.0233715046, 0.0758147985, 0.394697994, -0.1318676919, 0.0224271268, 0.568136394, 0.0185264312, -0.131982103, -0.1189174205, 0.0572712608, -0.0633488148, -0.3709014356, 0.4313016236, -0.003126042, 0.0226371288, -0.2082556784, 0.0029619189, 0.2597186267, -0.1714760512, -0.201342538, -0.0861432999, -0.2329561561, 0.2983797193, 0.0723396912, 0.10227824, 0.0376557671, 0.2513909638, -0.1774547398, -0.282594502, -0.3470977545, 0.043243777, 0.1033101827, -0.2078983486, -0.1809223294, -0.2211037129, -0.0037079861, 0.1467460394, 0.0357604735, -0.2684473991, -0.2309137881, 0.1364335269, 0.0129126357, -0.3062095344, 0.0455563515, -0.0202397183, 0.1122937202, -0.0688345656, -0.1838411242, 0.0792481825, -0.3871751428, 0.0374007151, -0.0771060586, 0.1869304776, 0.0767986402, -0.041609779, -0.04758792, 0.0578577258, 0.315010488, -0.1441960931, -0.1388160586, 0.0892365351, -0.0176054277, -0.2436799258, 0.0026869648, -0.3039504588, -0.3894796968, -0.3341697156, 0.0803238899, 0.4449618757, 0.0663630664, 0.4900226593, 0.3132516742, -0.1803751886, -0.504219532, -0.1224638224, 0.2646357417, 0.0156276114, -0.241305396, 0.4447279274, 0.1417585164, -0.1247414052, 0.2167754471, -0.0623412803, 0.2353203148, 0.3730483055, 0.2841132283, -0.1614310592, -0.3372093141, -0.2997214496, 0.1281128526, -0.3179245591, -0.4486317039, -0.1208473369, -0.5448647738, -0.3067320585, -0.4284932017, 0.3326906562, 0.4694441259, -0.1430888474, 0.2331378013, 0.1648111045, 0.3336722255, -0.0445084609, -0.251726836, -0.0597843118, -0.3283790052, 0.6525873542, 0.1713437289, 0.0242096949, -0.1411654949, 0.4616518319, -0.579554677, -0.0121720014, 0.0231888704, -0.009096357, 0.1459648609, 0.3686928153, 0.1586292833, 0.391112417, -0.0865117088, 0.1163507253, 0.1051461026, -0.3396743834, 0.0361315608, -0.2508214116, -0.0356583819, -0.2629170418, -0.1352829635, 0.0364982449, 0.0670111105, -0.0318696201, -0.2382506877, -0.3115352988, 0.1542324424, -0.1922539622, -0.0548176318, -0.1652858406, -0.0521133579, -0.4417096078, 0.3776812255, -0.1195377037, -0.0210147165, 0.0794629678, 0.2951494455, 0.043877054, -0.1631698906, 0.152800113, 0.2212004066, -0.0852446556, 0.015319353, 0.7192296386, 0.2945521176, 0.1079729497, -0.5347043276, 0.0068727504, -0.0041134353, 0.1528102309, -0.0925317258, 0.2486053854, 0.1572890729, -0.014710458, 0.178078711, -0.1594860703, 0.0065059564, 0.2473974228, -0.0028935738, 0.0434055328, -0.1572739035, 0.0645033717, 0.1076479033, 0.0761690065, -0.141578868, -0.3542026281, -0.1171538234, 0.1643647999, -0.1013179421, 0.1175801605, 0.1627500355, -0.3167304099, 0.0348994359, -0.0897210389, -0.5359889865, 0.1135026217, 0.2461378127, -0.1771799326, -0.1272273809, 0.2609109581, -0.0614465587, 0.1805732399, 0.206828773, -0.0777910948, 0.1472896636, 0.4162649214, 0.0431603827, -0.2616820037, 0.2158873975, -0.0106767938, -0.0219981354, 0.0007522461, 0.0371478237, -0.1250481457, 0.1806036979, 0.1357901245, -0.0941892043, -0.6648201942, -0.2142739296, 0.0728991181, 0.1275456548, 0.1695731729, 0.1869937778, 0.4651480913, 0.463118732, 0.0528204516, -0.1447892487, 0.088183485, -0.1521667838, -0.0431037471, -0.0009559203, -0.0788456276, 0.1492582858, 0.5806849003, 0.0815670043, 0.180094704, -0.4703766406, -0.6065312028, 0.0823464543, -0.1861573309, 0.1771578342, 0.2125247568, -0.1436451226, -0.2309381664, -0.1994220465, 0.1557214558, -0.0082056886, -0.1297176331, 0.04926195, -0.335346967, 0.0701395869, -0.142125383, -0.2989516258, -0.2652876377, -0.3564403653, 0.1097659245, 0.0875865519, -0.0726087317, 0.0388256572, -0.0016443528, 0.1927210093, 0.0696711987, -0.0211957153, -0.1786550879, 0.0742833167, 0.4342831373, -0.1867426187, -0.3065771759, 0.1381778866, -0.1064951718, 0.0571721606, 0.0850123689, -0.3523309529, 0.1546776891, -0.0610074103, 0.3218576908, -0.1123159081, 0.3270026743, 0.4461303651, -0.0446482226, -0.088968873, -0.1905190498, -0.1769392639, 0.1037846804, 0.2450825125, 0.306088537, 0.3555229902, -0.0756054372, -0.0451415628, 0.6219736338, -0.3386336863, -0.1456989199, 0.2428369522, -0.1936112195, 0.4376241863, -0.0139222974, -0.4716154933, 0.096218206, 0.3142545819, 0.3476983905, -0.0665580481, 0.0898523033, 0.2160286158, -0.160746485, -0.1331674308, -0.0854477808, -0.1029679179, -0.2385239899, 0.2264609933, 0.3866179585, -0.1294229925, -0.2962551415, -0.4123976529, -0.1962986588, 0.3053955436, 0.4216221273, 0.1781224459, 0.1478909105, 0.1791285127, -0.0724848136, -0.2054241151, 0.1740506738, 0.1457477063, -0.0558197759, -0.0066165486, 0.0559570752, 0.3355024457, -0.2244765311, 0.5626233816, 0.0243267547, -0.3074697852, -0.0088285571, 0.0407169461, -0.3049859107, 0.1441021711, -0.0650635064, 0.1298890412, 0.0141876964, -0.041668348, -0.5302036405, 0.0682508051, 0.4911661148, 0.1494932622, 0.0001981305, -0.0170875974, -0.3456966281, -0.1698413044, -0.227427572, -0.3186425567, 0.2005231082, 0.3892911375, 0.3289974928, -0.2729674578, -0.0491190143, -0.3709281683, 0.2793228626, -0.1054316461, 0.3466238678, 0.1669665575, 0.2836897969, 0.2697622776, 0.0963556841, -0.0555413626, 0.1396628916, 0.0980908349, -0.2327221483, 0.0527208745, -0.2153675407, 0.583877027, 0.2226356417, 0.050179515, 0.6141888499, -0.3313163817, 0.1311043352, -0.0226902291, -0.0746816173, 0.5086202025, 0.1225597858, -0.0610575415, -0.0447968133, -0.0228382461, -0.0815266073, -0.0630526766, 0.5167874098, 0.5547443628, 0.01861622, -0.255767554, 0.0976052806, 1.3628805876, -0.0811522231, 0.005751593, 0.3004936278, 0.0339161344, 0.078411065, -0.1007631421, 0.3509681225, -0.3362838924, -0.1813459545, -0.050017707, -0.0927111804, 0.0398183651, -0.7088240981, 0.0321513973, -0.149334684, -0.3030357063, -0.1595787257, -0.2855991125, 0.1410139203, 0.3558030427, -0.360168457, -0.0500113145, -0.0340521559, 0.0454355441, 0.2566794157, 0.1183583215, -0.1891800016, -0.1110198796, 0.0193315651, -0.0762908012, -0.386292696, 0.2408753037, 0.5866703391, 0.2417015433, -0.0308571029, 0.0498212017, 0.1120711714, 0.2485139221, 0.303161025, -0.2522235513, 0.3177100718, -0.1657214165, -0.4763189852, -0.0414608233, -0.0046583805, -0.138974458, -0.1829430759, -0.3092213571, 0.1161540225, -0.0242230147, -0.6195047498, -0.6061892509, 0.2052309215, 0.0822194517, 0.2068148404, -0.1054669991, 0.0919284001, -0.0178965107, -0.0166801289, 0.0375479758, 0.1976068765, 0.1098550558, 0.0120616071, 0.2530114651, -0.2008553296, -0.2325448841, 0.2478339821, 0.0646125078, -0.142121315, 0.0855698064, 0.0381987542, -0.281404227, -0.0331214964, 0.0581911951, 0.5830450058, 0.1315374672, -0.0212697517, 0.0719410032, -0.1749036312, 0.2965399325, 0.192479521, 0.3949225843, -0.2429962158, -0.0732115731, -0.3513287306, -0.3163246214, 0.3484801054, -0.043449115, -0.1562946737, 0.2433127761, -0.0711972937, -0.0924446061, -0.033666674, -0.2632474303, 0.3363705277, -0.1881945133, 0.0690351278, 0.2036933154, -0.1803167015, 0.0486372896, 0.0469916612, 0.1028366089, -0.0151729593, -0.298196584, -0.0218159836, -0.3041773736, 0.149996683, -0.141738221, 0.0533398688, -0.0832996219, -0.5385978222, -0.510379374, -0.0512900949, -0.0187145099, 0.0932532772, -0.0160681885, -0.6408500075, -0.0928661898, -0.0429689549, -0.0733518451, 0.093161881, 0.0389990658, 0.1199406907, 0.2359804511, -0.224433437, -0.3045921624, -0.0481663458, 0.0147905098, 0.2940584719, 0.3196629286, 0.0399778336, 0.5769917369, -0.0747792497, 0.0467628352, -0.029746009, 0.0496548042, -0.0767783821, -0.2211487293, 0.1342259794, 0.1535982043, 0.1105381995, -0.585771203, -0.4077900052, -0.3119055033, -0.2343962491, 0.161961019, 0.0676275492, 0.4494939148, 0.4538651705, 0.019318644, 0.1490335315, 0.1967627406, 0.0437039286, -0.2941670418, -0.3485928774, 0.1395166665, -0.208493799, 0.4045767486, 0.1115898415, 0.0924257636, 0.441654861, -0.5368750691, 0.4478177726, 0.1738826334, 0.1316131651, 0.0397179797, 0.12189053, 0.307636559, 0.1677765101, 0.4097854495, 0.2406162322, 0.1420916021, 0.5606206059, -0.3804118335, -0.1967633218, 0.1201693714, 0.2243904769, 0.0971545205, 0.1903623641, 0.0617691725, -0.1119533256, -0.0647049844, -0.3116308153, 0.1972821206, 0.0486779734, -0.2097253054, 0.1831752658, -0.1440877765, -0.1363001168, -0.1386445761, 0.2106862366, 0.4739027321, -0.1045347154, -0.1624957025, 0.2494176477, 0.0913270488, 0.1328295767, -0.0241740439, 0.0960178822, 0.0332422182, -0.1460829824, -0.195960179, -0.1051916629, -0.2250473201, 0.1318442225, -0.0249798838, 0.2067725062, 0.3403000534, -0.1318967044, 0.0268816799, -0.2058685124, -0.1550111175, 0.272059083, 0.3827702105, -0.325861752, -0.3790400326, -0.0993954465, -0.2463607341, -0.5994952321, 0.0980948657, -0.267123729, 0.3588971794, 0.1283341795, 0.0609566532, -0.1528518349, 0.2188635468, 0.0339773074, 0.2205180377, 0.2203594595, 0.0665478185, -0.2054213136, -0.111745216, -0.233328864, -0.7049575448, 0.2064198554, 0.0954754576, 0.0084758997, 0.2147201896, -0.0356770381, 0.3205849528, -0.1184135601, 0.2072131485, -0.0055760625, 0.2822192311, -0.451998353, -0.2855432928, -0.1710004359, -0.0709591433, -0.1797491312, 0.0264771413, 0.1926868558, 0.173073709, -0.182248041, 0.0678797066, -0.2640131414, 0.1843919456, -0.0706762522, 0.316876322, 0.2924314737, -0.0360703133, 0.2424457222, -0.1077394113, -0.1398814172, -0.0578521378, -0.1564809084, 0.0925322473, 0.2735256553, 0.1168673262, 0.2119016945, -0.2961872518, -0.6158108115, -0.2826435268, 0.7528396249, 0.1265882105, -0.1975889355, -0.0618507713, 0.4843508899, 0.0723693818, 0.1895291507, -0.0660048872, 0.250537008, 0.1703033149, -0.1182751432, -0.2157802582, -0.2870204449, 0.308699131, 0.1234837025, -0.2351766527, -0.0597901754, 0.2058576196, 0.5529353619, 0.2493617833, -0.3958494663, -0.1484027505, 0.0493436307, 0.216884926, -0.1530850679, 0.1964782029, 0.0710840449, -0.0549037606, -0.0137760788, -0.265067637, 0.3903189003, -0.2536891401, 0.1314300746, 0.1775626689 ]
https://github.com/huggingface/datasets/issues/3558
Integrate Milvus (pymilvus) library
Hi! For starters, I suggest you take a look at this file: https://github.com/huggingface/datasets/blob/master/src/datasets/search.py, which contains all the code for Faiss/ElasticSearch support. We could set up a Slack channel for additional guidance. Let me know what you prefer.
Milvus is a popular open-source vector database. We should add a new vector index to support this project.
37
Integrate Milvus (pymilvus) library Milvus is a popular open-source vector database. We should add a new vector index to support this project. Hi! For starters, I suggest you take a look at this file: https://github.com/huggingface/datasets/blob/master/src/datasets/search.py, which contains all the code for Faiss/ElasticSearch support. We could set up a Slack channel for additional guidance. Let me know what you prefer.
[ -0.19968687, -0.2113723904, -0.2736818194, -0.103936702, -0.0298224445, -0.0717026517, -0.0178257227, 0.2599717975, 0.2742888629, 0.0905229002, -0.0979632288, -0.1096255183, -0.2341021597, -0.0411486551, 0.0008002831, 0.0969581455, 0.0917071402, 0.1584693938, 0.0501033776, -0.0148178982, -0.0903296173, 0.1128598526, 0.0499014966, 0.0641862974, 0.2216903269, 0.1480341852, -0.1244575083, -0.0498953871, -0.2565738261, -0.266787678, 0.1558993012, -0.0964855552, 0.1288022548, 0.2598869503, -0.0001064196, -0.0179435778, 0.1433654726, 0.0047416533, 0.0997690782, -0.0084285671, -0.118448846, -0.2279231399, 0.0532172136, -0.2662227452, -0.2144882977, -0.4859131277, -0.1341069788, -0.4452920258, 0.2199270725, 0.1467214823, 0.233697474, 0.0746308193, 0.3601368666, 0.0071708602, 0.5529499054, -0.2372096628, -0.2885304391, 0.0051299585, 0.4539780319, 0.0610530414, 0.1477692425, 0.3699942529, -0.1159968525, -0.1947922707, 0.2221238762, 0.106870383, 0.4270574152, -0.0072708488, -0.1538192183, 0.1803956926, 0.1145692915, -0.2229720652, -0.0699834079, 0.1914347857, -0.0334235802, -0.2576309144, -0.1261108518, 0.1187092736, 0.0613942146, 0.18036744, 0.2340784073, -0.4090568423, -0.2084461302, 0.3718321025, -0.1216095313, 0.2715989053, -0.0212193988, -0.2059275955, 0.1730967462, -0.3538991511, -0.1679367423, 0.2785622478, 0.2305598259, 0.0571450442, -0.2942253649, -0.2377620935, -0.0811336935, -0.5706097484, 0.3375131488, -0.2074987292, -0.1955699772, 0.0900898352, 0.2216229439, 0.3228750825, -0.2101262361, -0.2097266465, -0.2001670599, -0.0291994493, 0.1937064081, -0.3186357617, -0.1002793089, -0.0251532178, 0.0451130457, 0.0220182389, -0.2475154102, -0.3446317613, -0.0511975735, -0.0935775712, 0.0037605674, -0.0861356631, -0.1421069503, 0.0033983043, 0.1561706811, 0.2810289562, -0.1028174087, -0.4162725508, 0.1258645505, 0.0582379103, -0.0031148205, 0.1550133675, -0.1084359586, -0.0049559791, 0.0129171396, 0.0761940852, 0.1336526573, -0.6120269299, 0.0612682179, -0.1838200986, 0.0037606366, 0.1686348915, 0.2643789649, 0.0274820123, 0.2055301964, 0.2035521865, -0.1120960191, -0.5167544484, -0.1855097562, 0.1699669659, -0.2262836695, -0.1139604449, -0.3778395057, -0.4942476153, -0.4481313229, 0.2234472334, 0.1796164066, -0.2228080332, 0.4024089575, 0.4126859903, -0.3548001051, -0.2963244021, -0.1058109105, 0.3906877935, 0.1571441591, -0.1351464838, 0.2902109325, -0.1313343197, -0.0202646311, 0.0118931951, -0.2248997539, 0.504899025, -0.0662063286, 0.1392602623, -0.0347672813, -0.279006809, -0.0036114068, 0.3304454684, 0.4822556376, -0.3000305593, -0.0227475539, -0.2636088133, 0.0796510577, -0.5524977446, 0.0523912795, 0.2052304, 0.0892672911, 0.0531254448, 0.021312736, 0.40721035, -0.025830552, -0.1311262101, -0.165504083, -0.4313464165, 0.0357988589, 0.4187693894, 0.1334157586, -0.3452709913, 0.4032147825, -0.541508913, -0.1832792014, -0.1210528687, -0.0457672141, 0.0926907435, 0.5260558128, 0.1576604843, 0.3091513515, -0.3850443363, 0.1198111176, -0.033388786, -0.2431647629, 0.0870586187, -0.352350235, -0.0732063353, -0.0951685086, -0.098296836, 0.0927228332, 0.1428928673, 0.2098100334, -0.3033085763, -0.1098269075, 0.1945928186, -0.3140212297, -0.2798894346, -0.1142739728, -0.0188329313, -0.3054894209, 0.3918405473, -0.0929692686, 0.0881127045, 0.0749449655, 0.1675076187, 0.075220786, -0.1479289085, 0.1869113147, 0.1549418867, -0.2739957571, -0.0091641713, 0.8975941539, 0.4802395403, 0.0175998416, -0.3842438161, 0.1477983445, 0.0055863997, 0.0201049503, 0.0911378488, -0.1244322881, 0.2941149473, 0.3031481802, 0.2254728228, -0.0775815248, -0.0455072485, 0.1502981186, 0.0024085029, -0.04762825, -0.0599105097, -0.0640739501, -0.123268567, 0.1006905958, -0.1453700811, -0.132248342, -0.0649665669, 0.2379290611, -0.1393030137, 0.3229660392, 0.2683368325, -0.257830739, 0.016376067, 0.0201769676, -0.3871348798, -0.0300801434, 0.2999269366, -0.0569413565, -0.2085570693, -0.0344197042, 0.09726917, 0.2749279141, 0.1304406971, 0.0294433814, -0.0136727123, 0.1956469119, -0.0211675577, -0.2328206301, -0.1826578081, -0.2057395279, -0.0771105886, 0.1428839713, 0.2005377114, 0.0110436846, 0.3600646853, 0.1903537661, -0.0566259846, -0.3708269, -0.0073947436, 0.3997584283, -0.0783465281, -0.0328833349, 0.1164171025, 0.0117119513, 0.4452025592, 0.2204934359, -0.3487305045, -0.1669184119, -0.2349137366, 0.043105334, 0.2400681973, -0.0015248206, 0.1874569952, 0.4249180555, 0.229506284, 0.2107600272, -0.3933821917, -0.4839555621, 0.2477773279, -0.1741292179, 0.055748228, 0.1956835985, -0.1962391734, -0.3780663013, -0.0483061373, 0.0864708498, -0.1529415101, -0.0368564464, 0.1021775529, -0.163167432, 0.1023581699, 0.0488765463, -0.3954355717, -0.3916690648, -0.3595961332, -0.0274759755, -0.0446208939, -0.0226066336, -0.1771229357, 0.2990557551, 0.1686670333, 0.1279669553, 0.13485834, -0.1889824122, 0.0649250522, 0.4527845383, -0.2566145658, -0.1708543748, -0.0181465242, -0.0681992769, -0.0381555781, 0.4663718343, -0.1299449056, 0.1240497753, 0.0856283009, 0.0353718773, 0.1382254213, 0.30048576, 0.2683665454, 0.0991783217, -0.2645446956, -0.0217293892, 0.0738529414, 0.0220990144, 0.2893733084, 0.2130496204, 0.2308410704, -0.0029476439, -0.0548145734, 0.6531760693, -0.2967819273, -0.2631383538, 0.2691026032, -0.012052333, 0.1178177819, 0.1618404835, -0.1622471809, -0.0150553342, 0.1944559067, 0.2030189633, 0.0466635302, 0.2889373302, -0.288482666, -0.3056092262, -0.1227702126, -0.2784003019, -0.007918071, 0.0333172008, 0.3570826054, 0.5051311255, -0.1649230272, -0.1708513647, -0.2093347013, -0.2263376415, 0.2048594505, 0.156573832, 0.1434410214, -0.0312485211, 0.3168322444, 0.0355945006, -0.2220083475, 0.3952849805, 0.0596075617, -0.2032163441, 0.0540940352, 0.0213193037, 0.1796365678, -0.1223846674, 0.4185597301, -0.2102918625, -0.4694129527, -0.1669142097, 0.0825217739, -0.4134753644, 0.1632868052, -0.3072847426, -0.0182630531, -0.0919477418, 0.0931650251, -0.4854015708, -0.1694660634, 0.2359027117, -0.045577012, -0.1087071821, -0.2542355955, -0.1293758452, -0.0789120048, -0.1206743121, 0.0144006452, 0.1203814223, 0.1205629557, 0.3245279193, -0.3379618824, -0.2511945665, -0.0689076781, 0.1756273806, 0.0781850219, 0.2383477837, -0.1411833614, 0.0473332703, 0.283757478, 0.1724685878, 0.1285181642, 0.1200661957, 0.0654635951, 0.0544718131, 0.0951858982, -0.0408382118, 0.3214980662, 0.1900729984, 0.009017434, 0.3952993155, -0.1849951893, 0.1070187986, -0.030605454, -0.2644314766, 0.5225653052, 0.2395128608, 0.0486809351, -0.0866784081, 0.4408428371, -0.067601271, -0.2217381299, 0.2629431486, 0.5869060159, -0.1676508635, 0.4532953501, 0.2363718301, 1.05744946, -0.0117599815, -0.1292116344, 0.1781241298, 0.1125795245, 0.279925704, -0.5956265926, 0.2249488235, -0.2039908171, 0.0396302119, -0.0407811552, -0.0040621669, -0.0577976815, -0.1204877198, -0.1903728694, 0.1450449526, 0.1879604161, -0.1272877753, -0.1273542792, 0.3579223454, 0.3439925313, -0.3103919327, -0.3013480902, 0.1819981635, 0.1357055455, 0.0185646899, 0.1034992412, -0.3047155142, 0.0830242485, 0.0344834812, -0.1328447461, -0.1018100977, 0.3216406107, 0.4885408878, 0.2080715895, 0.1568827778, 0.1209803894, -0.3246265352, 0.1357632428, 0.0807929412, -0.2851870656, 0.0936550871, -0.3109690845, -0.1915396005, -0.0051571121, -0.2755740285, 0.0866328478, -0.111239925, -0.3166369498, 0.2013269365, 0.1676024348, -0.6664407849, -0.3372679055, 0.0755880103, -0.2028594613, 0.0667914897, 0.117541641, 0.1253774911, -0.3374663293, 0.0325325504, 0.2148078382, 0.2461929768, -0.0708998591, 0.3150689304, 0.405813396, -0.0171822384, -0.1546073109, 0.1051190719, -0.0284961853, -0.0506913364, -0.1271847486, -0.0151226306, -0.2688365877, -0.22230272, -0.3119608164, 0.4201433659, 0.0381670892, -0.2548461556, 0.0032225323, -0.3535568714, 0.4396544099, -0.0568861589, 0.2929469347, -0.1767689437, -0.1620694846, -0.0871028379, 0.0641268194, 0.292118758, 0.1284276545, 0.1033443958, 0.0258531347, -0.5081548095, -0.1465207189, 0.0282285493, -0.4336669743, 0.2259073108, -0.017160628, 0.1018643901, -0.252122134, -0.1015497074, 0.2499361485, 0.0029006402, 0.1596026421, 0.0779576972, -0.4300128222, -0.2296161801, -0.1166328117, 0.0836593211, -0.1022914425, 0.1327094585, -0.2257974148, -0.324852109, -0.3506916761, -0.0830815956, -0.0019101063, -0.0870268494, 0.0604455136, -0.1362321824, -0.0939367712, -0.3473753929, 0.0706143752, 0.0641583502, 0.1437130421, -0.0000330118, 0.159204483, 0.168088451, -0.1257147342, -0.1910092235, 0.1211942956, 0.4041853249, 0.1968521476, 0.1046925336, 0.5491153598, 0.1414156705, -0.2608198822, 0.107517384, 0.2696934044, 0.0960497111, -0.1596203893, 0.0564554557, -0.0298405401, 0.3606764078, -0.450481832, -0.3176637292, -0.0444265939, 0.030292578, 0.2909101546, 0.012975608, 0.4852793515, 0.2562942803, 0.138135761, 0.0681325272, 0.1840907931, 0.113885127, -0.2033885866, -0.3805401325, 0.2010856271, -0.1567383111, 0.1770230234, 0.2106210887, 0.2750797868, 0.4870550632, -0.395529598, 0.2763564289, 0.2302259505, 0.1239444241, 0.1587435007, 0.3798201382, 0.4582277238, 0.2528441846, 0.3463538885, 0.2904444039, 0.1078551188, 0.4327222407, 0.2437218577, -0.2691414058, -0.0623560809, 0.1378942728, 0.1965371221, 0.1318117976, 0.0088122636, -0.1031302959, -0.2214528173, -0.2776204348, 0.0686012581, -0.1888647825, -0.2158086747, 0.2130209059, 0.1885516942, -0.1386232674, 0.086705856, 0.3581252992, 0.4236233234, 0.0206343476, -0.1404245049, 0.2332299352, -0.0448539294, -0.0134326871, 0.065650776, 0.0692986622, -0.0115075288, -0.4453468025, 0.2349126786, -0.0923235267, -0.2713490129, 0.0563827753, -0.119160369, -0.0364867188, -0.2156729847, -0.0443952344, 0.1822050363, -0.1962614208, -0.1050056517, -0.015894426, 0.3227714598, -0.0632239357, -0.4716477692, 0.3210738003, -0.0082849143, -0.2274709195, -0.1356672794, -0.4198690653, 0.0880998969, 0.3158776164, -0.0807178617, 0.0368896201, 0.217410326, 0.1250509173, 0.1089966372, 0.3011992872, 0.1097690016, 0.1477469057, -0.0338716544, -0.1136650518, -0.3587688208, 0.1358636022, -0.2428473234, 0.0729271099, 0.2945874333, 0.1373115331, 0.3614171147, 0.1561737061, -0.0025092445, -0.0521229543, 0.2137806863, -0.1266608387, -0.3907957375, 0.2010114342, 0.1434174627, 0.1058347523, 0.1672578901, 0.0013195619, -0.0259979274, -0.3156399131, 0.1200888678, -0.2671637833, 0.1772751659, -0.0238258447, 0.0160441473, 0.3892952204, -0.0272719152, 0.0250897612, -0.2319859266, -0.0171863884, -0.0005504537, -0.122268647, -0.0399735011, 0.1163416579, 0.1826126277, -0.0970543474, -0.1116076857, -0.6782010794, -0.1682693511, 0.4812524617, 0.03184212, -0.2373657525, 0.0460553654, 0.0727277547, 0.0526130795, 0.0307248682, -0.3235814571, 0.124718383, -0.039379552, -0.0358738303, 0.0270812623, -0.2714387774, 0.3265726268, 0.0003035896, -0.1251041591, -0.0184691958, 0.1588384211, 0.980007112, 0.4328390062, -0.3976130486, -0.0161128286, 0.0825962946, 0.1822360605, 0.0081563182, 0.0605455227, 0.4527449608, -0.0159208458, -0.2813647687, -0.3654763997, 0.2602820098, -0.177303955, -0.2405168861, -0.2546017468 ]
https://github.com/huggingface/datasets/issues/3558
Integrate Milvus (pymilvus) library
> Hi! For starters, I suggest you take a look at this file: https://github.com/huggingface/datasets/blob/master/src/datasets/search.py, which contains all the code for Faiss/ElasticSearch support. We could set up a Slack channel for additional guidance. Let me know what you prefer. Sure, we take a look and do some research
Milvus is a popular open-source vector database. We should add a new vector index to support this project.
47
Integrate Milvus (pymilvus) library Milvus is a popular open-source vector database. We should add a new vector index to support this project. > Hi! For starters, I suggest you take a look at this file: https://github.com/huggingface/datasets/blob/master/src/datasets/search.py, which contains all the code for Faiss/ElasticSearch support. We could set up a Slack channel for additional guidance. Let me know what you prefer. Sure, we take a look and do some research
[ -0.1838495284, -0.2007055879, -0.2723218203, -0.1145946383, -0.0485320874, -0.0991515443, -0.0014097604, 0.2520477474, 0.2506119907, 0.0776884779, -0.082934998, -0.1187220886, -0.2495795786, -0.0352785327, -0.0100632748, 0.0800941512, 0.0907990932, 0.1512244493, 0.0490903668, -0.0126725696, -0.0660577714, 0.0851878449, 0.0518780276, 0.0436043255, 0.2292882353, 0.1437685788, -0.1377736926, -0.0539350882, -0.2769849598, -0.2413776964, 0.1564955115, -0.0774841458, 0.1290182173, 0.2662979364, -0.0001064582, -0.0225629769, 0.1228269115, 0.0140643502, 0.1151080355, -0.0346874408, -0.1349386424, -0.2411335558, 0.0458522104, -0.2771393359, -0.198580727, -0.4916763306, -0.1333553493, -0.4710768759, 0.2166125774, 0.1316190958, 0.2281602323, 0.074454397, 0.3363110125, 0.009259643, 0.5519428253, -0.2229122818, -0.269115746, 0.0074060862, 0.4689540863, 0.0421603508, 0.1389677823, 0.3810665309, -0.1454326808, -0.1955883801, 0.2206924111, 0.0982535034, 0.4282183051, -0.0095790578, -0.1753349602, 0.1805289537, 0.1110285148, -0.2250163555, -0.0788318589, 0.1809606105, -0.0284920484, -0.2325815409, -0.1342647374, 0.1063339263, 0.0791993961, 0.1588394195, 0.2312546521, -0.4216113389, -0.2155379206, 0.3669522703, -0.1136148423, 0.2767480612, -0.019860195, -0.2008993775, 0.1655228585, -0.3470969498, -0.1363884062, 0.290579319, 0.2304239869, 0.0602847859, -0.2879693806, -0.2492338419, -0.0944921449, -0.5986531377, 0.3427855372, -0.2054496706, -0.154921636, 0.077040121, 0.240464136, 0.3161809444, -0.2005084455, -0.2026628852, -0.2088503093, -0.0286556166, 0.1699559689, -0.3444762826, -0.0918710977, -0.022458842, 0.0623499937, -0.0006921416, -0.2346491069, -0.3442836404, -0.0654635876, -0.0783998072, 0.0168610644, -0.0829623044, -0.1828736365, 0.0239043497, 0.1609215587, 0.2449444681, -0.1395032406, -0.3928560019, 0.135194242, 0.0375298671, -0.0053179492, 0.1689644456, -0.0965940431, 0.0100691989, 0.0023119214, 0.0701633543, 0.1460647881, -0.5671559572, 0.0292766411, -0.17475079, 0.019759519, 0.1782865673, 0.2754992545, 0.0260042027, 0.2135457397, 0.1806086302, -0.1302547306, -0.5133362412, -0.1952997148, 0.1537565142, -0.2298737615, -0.1110393256, -0.375086993, -0.4878135026, -0.4384630919, 0.227169171, 0.148106128, -0.2204740047, 0.3910003901, 0.427773267, -0.3603821695, -0.2957589626, -0.1016057059, 0.3982324898, 0.1597145349, -0.1354963183, 0.288985163, -0.1266712844, -0.0057749869, 0.0108525995, -0.2196674794, 0.5035970807, -0.0422125198, 0.1316528618, -0.0216534007, -0.2926214337, 0.0116083743, 0.3425949514, 0.4518365264, -0.3029856086, -0.0149687761, -0.2406923175, 0.0545609146, -0.5633056164, 0.0792344138, 0.2096617073, 0.1344566643, 0.0501666777, 0.0242964905, 0.3985221386, -0.0512349345, -0.1333290786, -0.1919519156, -0.4289926589, 0.0362821594, 0.425269872, 0.131191507, -0.3561258614, 0.4057949483, -0.5052748919, -0.2074347138, -0.1239181235, -0.0338366292, 0.0844356194, 0.5412852764, 0.1567861587, 0.3153901696, -0.3783402741, 0.1085513756, -0.0503460318, -0.2488382906, 0.0784637108, -0.346938163, -0.0716328025, -0.0910503715, -0.0892565995, 0.1221483275, 0.1574816257, 0.2140502036, -0.3212472498, -0.1044792458, 0.1802386343, -0.3196226358, -0.2652041316, -0.1292809993, -0.0385552719, -0.2805103362, 0.3915205002, -0.0862022266, 0.1055537164, 0.0671902522, 0.1610024571, 0.061626371, -0.1484388858, 0.2018922418, 0.1337479353, -0.2917760611, 0.0073587047, 0.8955330253, 0.5201516747, 0.0431735069, -0.3943396211, 0.1588508487, -0.0130657377, 0.0214673076, 0.0926240608, -0.128567934, 0.2874954045, 0.2656235397, 0.2322862744, -0.0845895261, -0.0425835401, 0.1379559189, -0.0053060623, -0.0723608583, -0.0661350787, -0.0572170317, -0.1288230568, 0.0893404707, -0.1351428777, -0.1301018298, -0.0716920942, 0.1990547776, -0.1331579685, 0.3077427745, 0.2596422434, -0.2437577993, 0.0013021075, 0.0095590353, -0.3631808758, -0.0459752977, 0.2997258604, -0.0640512258, -0.2106295228, -0.0048431219, 0.0951227099, 0.2717075348, 0.1286964417, 0.0302718934, 0.018436268, 0.1915630698, 0.0177323036, -0.2153526992, -0.1854230314, -0.1951696426, -0.0668410584, 0.1493188292, 0.2072001696, 0.0376833901, 0.3530527055, 0.195000723, -0.0458636992, -0.3443636894, -0.0144750606, 0.4100600481, -0.0767484307, -0.0421594009, 0.1025856584, 0.0217085779, 0.4511109889, 0.2136943638, -0.3520774543, -0.1538603902, -0.2367710173, 0.0633930787, 0.2473134696, 0.0088797174, 0.1858030111, 0.4376125336, 0.2571066916, 0.2127038538, -0.3876190186, -0.4935801923, 0.233024925, -0.1532872319, 0.0589127131, 0.1929988116, -0.2206155807, -0.3990205228, -0.0517540798, 0.0812419653, -0.1410362273, -0.038166374, 0.0959179029, -0.1845544428, 0.1216931716, 0.0458715856, -0.3977395296, -0.4162748456, -0.3557629883, -0.0455200076, -0.0456446484, -0.0362893902, -0.1858667731, 0.309681803, 0.1718530357, 0.1489395797, 0.1382782161, -0.1802508533, 0.0826380178, 0.4447266161, -0.2524924874, -0.1593600214, -0.0434707366, -0.0912092403, -0.0297311563, 0.4868721664, -0.1446629614, 0.1272456944, 0.1106294617, 0.0276145395, 0.1388146132, 0.2915970385, 0.264028132, 0.1054872125, -0.2642192245, -0.0273697376, 0.1050676927, -0.005904817, 0.2929905355, 0.1947723627, 0.2424636036, -0.0144336773, -0.0451468788, 0.6720749736, -0.2984960377, -0.2602054775, 0.2490051836, -0.0034313973, 0.104786858, 0.173292473, -0.1872844696, -0.0226724762, 0.1885199547, 0.2009494901, 0.0349004231, 0.279527396, -0.3024822176, -0.3083618283, -0.1323414147, -0.2639890313, 0.0007949169, 0.0596107692, 0.3374822736, 0.5049420595, -0.1596098095, -0.1952914, -0.2232289314, -0.2376402467, 0.1913437545, 0.1440125257, 0.1459364146, -0.0357297026, 0.3387974799, 0.0553724281, -0.2155947834, 0.3629949391, 0.0824967623, -0.1860643923, 0.0677450821, 0.0268809032, 0.1725885421, -0.1323415041, 0.4043340981, -0.2065739483, -0.4873760045, -0.1594651043, 0.0736364648, -0.394184649, 0.1763568819, -0.3205231726, 0.0068666521, -0.1136021465, 0.094715938, -0.4844938517, -0.1771826744, 0.2222537249, -0.0387289599, -0.094743222, -0.2380237281, -0.0960138738, -0.0559343062, -0.1252459437, 0.0191982556, 0.1370466948, 0.1402453929, 0.3207206726, -0.3401060998, -0.2520520091, -0.0502615497, 0.1872290373, 0.0638418496, 0.2204709947, -0.14600344, 0.0636524633, 0.2775781155, 0.1642595828, 0.1172382906, 0.0892550126, 0.0632687584, 0.0680411682, 0.1069634035, -0.0233374219, 0.3265203238, 0.1808237433, 0.0194990784, 0.3913805485, -0.1804355681, 0.1141389981, -0.0423559435, -0.2604002655, 0.4960716367, 0.2410313189, 0.0269674547, -0.0868023038, 0.4299283624, -0.0469464548, -0.235907197, 0.2853970528, 0.5808384418, -0.1668595076, 0.4439554214, 0.2675403059, 1.0383871794, -0.0122199142, -0.128379494, 0.1795212179, 0.1204141825, 0.269133389, -0.6011080146, 0.2164153308, -0.1964827478, 0.0274801403, -0.0408154279, -0.0064285006, -0.0697368458, -0.1317232996, -0.190683201, 0.1111861616, 0.1863936931, -0.12069989, -0.1323551387, 0.3642855585, 0.3395701349, -0.3210721612, -0.2706574798, 0.181554988, 0.1538190246, 0.0020725552, 0.105677709, -0.2998119295, 0.0781834722, 0.039044816, -0.1355871707, -0.1188041642, 0.3087679446, 0.4905967712, 0.1741245091, 0.1625531316, 0.1327651143, -0.3226848841, 0.1257733703, 0.0768239647, -0.2856529057, 0.0607367307, -0.2775607407, -0.2065762281, 0.0193866268, -0.2759068608, 0.0930841342, -0.1105653718, -0.3012130558, 0.2017981261, 0.1754357666, -0.659465909, -0.3418258727, 0.0836815909, -0.1701558083, 0.0636950508, 0.1412100345, 0.1325716823, -0.359038204, 0.0555397719, 0.2176902443, 0.2564651072, -0.0694569275, 0.3333567679, 0.4036755264, -0.0057778158, -0.153967768, 0.1158896014, -0.0075795739, -0.0464002192, -0.1240428016, -0.0432526805, -0.2876077592, -0.2221812159, -0.2854140699, 0.4157267809, 0.0418546684, -0.2526673675, -0.006106372, -0.3607375622, 0.4527302384, -0.0450306647, 0.3140168488, -0.1727399081, -0.1535892338, -0.0983127654, 0.0567456111, 0.2965069115, 0.1427628249, 0.0918486044, 0.0183057506, -0.5189758539, -0.1578731388, 0.0114058815, -0.4334090948, 0.2286334187, -0.007190052, 0.1063084751, -0.2386698127, -0.1021538973, 0.2500933409, 0.0109613119, 0.1621306539, 0.0876344964, -0.4116943777, -0.231482923, -0.1236420348, 0.0805365592, -0.0950105414, 0.1323785633, -0.2211241722, -0.3193804026, -0.359344542, -0.0709572807, -0.0045001479, -0.0630049184, 0.0641150251, -0.1549394578, -0.0908936188, -0.3334689736, 0.0634664819, 0.0723577142, 0.1708803773, -0.0070782183, 0.1451170295, 0.1834892631, -0.1247405931, -0.1881177574, 0.1373228133, 0.4044446349, 0.2010707557, 0.0831450894, 0.5375263691, 0.152546078, -0.2368500978, 0.1234593317, 0.2550790012, 0.0963425487, -0.1580905765, 0.0577409863, -0.0154542951, 0.3643208742, -0.4453064501, -0.3125891984, -0.0670954138, 0.0336907133, 0.2935087979, 0.0166694578, 0.4879746139, 0.2389136851, 0.1436474323, 0.0601492338, 0.1832121909, 0.0988753438, -0.1916330159, -0.3860568106, 0.1825957, -0.1723236442, 0.1587225795, 0.2044251114, 0.2707366347, 0.4581338465, -0.4082999527, 0.2947480381, 0.2302533388, 0.135247767, 0.1582621485, 0.3967864811, 0.4562449455, 0.258444488, 0.3702040315, 0.3144093156, 0.1114491075, 0.4251476526, 0.2476436794, -0.2465925068, -0.0367679447, 0.1231550276, 0.2063788474, 0.1517603695, -0.009693766, -0.1124589518, -0.2319198996, -0.2824400067, 0.0638050064, -0.1887149364, -0.2193908691, 0.2291184515, 0.1883485317, -0.1095229685, 0.0904332921, 0.3555340171, 0.4166276753, 0.0004533785, -0.1546323448, 0.2388351113, -0.0318162255, -0.0286674425, 0.07302057, 0.0563502088, -0.0107051171, -0.4558761716, 0.2257028222, -0.0821933597, -0.2781863511, 0.0654589534, -0.0977764651, -0.0243156962, -0.2434467375, -0.0650473014, 0.1796620488, -0.2000410557, -0.095084019, 0.0032954973, 0.2965253592, -0.056488052, -0.4919052422, 0.3472872674, 0.0074501075, -0.2338650227, -0.134237811, -0.4188366532, 0.0841365233, 0.3005529344, -0.0935782418, 0.0358041674, 0.2280877978, 0.1254589707, 0.1229949519, 0.2878252268, 0.100620307, 0.1406832188, -0.0295419507, -0.1041217074, -0.3634973466, 0.1271973848, -0.2193911076, 0.082505174, 0.2816828787, 0.1395605057, 0.3679006696, 0.1698482484, -0.0405689813, -0.0603676327, 0.1992297322, -0.1249749213, -0.3822179139, 0.204476431, 0.1448413283, 0.1070777774, 0.182390511, -0.0025224453, -0.0346038565, -0.3101215065, 0.1301468015, -0.2788976431, 0.1621965766, -0.0321323089, 0.0537338592, 0.3725428879, -0.0304893702, 0.0201117098, -0.2256979644, -0.025899319, -0.0036556344, -0.1083102524, -0.0559460409, 0.121015355, 0.2135673463, -0.1045392901, -0.1131762862, -0.6762949824, -0.1518760473, 0.4576284587, 0.0291916337, -0.2497894019, 0.0316783376, 0.0757634193, 0.0730877817, 0.0288285166, -0.3684960306, 0.1338889152, -0.0348924585, -0.0269930661, 0.0236676503, -0.2695982158, 0.3219841719, -0.0089872265, -0.1018577889, -0.0204553287, 0.1398904771, 0.9689580798, 0.4489302039, -0.3871205747, -0.0203559939, 0.0868373588, 0.1569051743, 0.0386280082, 0.0439679176, 0.4656308591, -0.0265937336, -0.2930724323, -0.3746168315, 0.2507253289, -0.1640724987, -0.2463879436, -0.2525264323 ]
https://github.com/huggingface/datasets/issues/3555
DuplicatedKeysError when loading tweet_qa dataset
Hi, we've just merged the PR with the fix. The fixed version of the dataset can be downloaded as follows: ```python import datasets dset = datasets.load_dataset("tweet_qa", revision="master") ```
When loading the tweet_qa dataset with `load_dataset('tweet_qa')`, the following error occurs: `DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 2a167f9e016ba338e1813fed275a6a1e Keys should be unique and deterministic in nature ` Might be related to issues #2433 and #2333 - `datasets` version: 1.17.0 - Python version: 3.8.5
28
DuplicatedKeysError when loading tweet_qa dataset When loading the tweet_qa dataset with `load_dataset('tweet_qa')`, the following error occurs: `DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 2a167f9e016ba338e1813fed275a6a1e Keys should be unique and deterministic in nature ` Might be related to issues #2433 and #2333 - `datasets` version: 1.17.0 - Python version: 3.8.5 Hi, we've just merged the PR with the fix. The fixed version of the dataset can be downloaded as follows: ```python import datasets dset = datasets.load_dataset("tweet_qa", revision="master") ```
[ 0.0209830124, -0.2672317326, -0.0047798767, 0.206936419, 0.3006342351, 0.0638986528, 0.1432422847, 0.3013512194, -0.1967462152, 0.0905203298, 0.000505654, 0.3443004489, -0.199397102, 0.2585407495, 0.1344979852, -0.0611697547, -0.1748432666, -0.061942149, -0.0889877006, 0.0461024977, -0.1691441089, 0.4314878881, -0.1449285597, 0.1948371679, -0.1514069736, 0.07265874, -0.0386162512, 0.0718172416, 0.097966522, -0.3187613487, 0.0485627204, 0.0315147527, -0.1733047217, 0.6347215772, -0.0001032614, 0.1497585326, 0.1402188838, -0.0559783727, -0.0438546725, -0.2027409375, 0.0528955646, -0.0531776063, 0.1835672408, -0.1234568208, -0.1724006087, -0.2952158451, 0.0381580889, -0.2132157683, 0.5270637274, 0.126376003, 0.3108352423, 0.2570209503, 0.2260605544, -0.0647266507, 0.1587929577, -0.2609914243, -0.0890784487, 0.0479850546, 0.1330112517, 0.0808942318, 0.3148095906, 0.2817918062, 0.1307475567, 0.0402644686, 0.3670465052, -0.1551924646, 0.1408165842, -0.3080177605, 0.2870365679, 0.321833998, 0.4155681431, -0.3932707012, -0.1758619249, -0.1174164414, 0.2359463573, -0.1879176348, 0.0450606719, -0.185886398, -0.0891249403, 0.117402032, 0.047409378, -0.1125848368, -0.0982174873, 0.035632927, -0.0093263667, 0.0726042911, -0.0037690881, 0.1117288172, -0.1335888803, -0.2727932334, -0.1170971245, -0.0241193213, 0.0531761013, 0.1824919581, -0.4530871809, 0.0190224294, 0.028769182, -0.1686780304, 0.136866942, 0.0670945421, 0.0485957861, 0.2350114733, 0.15146707, 0.0192159228, 0.3881800473, 0.146755442, 0.0179718826, 0.0523315147, 0.4256110489, -0.336681217, -0.401255101, 0.1335012466, 0.0612708069, -0.16198726, 0.4245045483, -0.0933112502, 0.3518026769, -0.0684880912, -0.1004281789, 0.0112384129, -0.1678740531, -0.0971985906, -0.3677781224, 0.1684327126, 0.2764484286, 0.1619241387, 0.0642197654, 0.1393603384, -0.2932190895, -0.0441521555, -0.2724290788, -0.1754118651, 0.2297789603, 0.0165110044, 0.1141076088, -0.3037875295, 0.2697276771, 0.02327195, -0.016229691, -0.1190124229, 0.2231531739, 0.1861412376, -0.3691108823, 0.2522194386, 0.2159578949, 0.3801510334, 0.0444414131, -0.0657738075, -0.0184348952, 0.1413257718, -0.2036398053, -0.5011164546, -0.2332920283, 0.3129762113, -0.1472161561, -0.105459027, 0.0000289659, 0.2654807568, 0.3024116158, 0.0329154655, -0.2014224827, -0.1434975117, -0.1591224372, -0.2269378901, 0.0831915066, 0.2825366855, -0.2837952971, -0.2192050815, -0.1994063109, -0.1903499961, -0.1688138843, 0.3608956337, -0.167072475, 0.3379668593, -0.1507979631, 0.1051340476, 0.3109601736, -0.5079996586, -0.2172869444, 0.2449387312, -0.3078502417, 0.1172402054, -0.0237102136, 0.1034529358, 0.1113829687, -0.0154377269, 0.1665262133, 0.1040713638, 0.0611669794, -0.0051486581, -0.2918877602, -0.2327945828, 0.1726957113, -0.0086264191, 0.0913040265, -0.1310147792, 0.028989587, 0.0485394634, 0.1855809689, -0.1124879196, -0.0967183486, 0.0156429093, 0.3962937295, 0.1154067442, 0.1158815324, -0.0207047015, -0.244134903, 0.2214991003, 0.0745183378, 0.2376570553, -0.1278322637, -0.1703805476, -0.3137262464, -0.0227810107, -0.2901741862, -0.1469523907, 0.2759569287, 0.1269544661, 0.0991334692, 0.2253145128, -0.2245864421, 0.0736838728, 0.0904177651, -0.0353065357, -0.1671424806, -0.0907322988, -0.1985818148, -0.000015383, 0.1321505457, 0.1417252123, 0.1675451249, -0.1575847417, -0.0930963382, 0.3807487488, -0.1459652632, 0.183453247, -0.1173607409, 0.0946477875, 0.2701909244, -0.1927555352, -0.1976427138, 0.2730550468, 0.1179152876, -0.1717867106, 0.2042406797, 0.3086828589, 0.1158494055, -0.0866582021, 0.0686480552, -0.1727933586, 0.2221007794, 0.0525726229, 0.0609610714, -0.2166211009, 0.0137968007, -0.1454029977, -0.073368907, -0.0509340577, -0.1883056909, 0.3138225079, 0.4415297806, -0.0362129807, 0.272606343, -0.0579013526, -0.1167602614, -0.1369898021, -0.2282812595, 0.4364472032, 0.2698988616, 0.1560087949, -0.2016586065, 0.1695034951, 0.044145029, -0.2727579474, 0.3852109313, -0.110537529, 0.0857847035, 0.336399883, 0.1037397757, 0.0073583717, -0.4314971566, 0.1053181216, 0.1750351936, 0.334310919, -0.3183243275, -0.1757625043, -0.387136966, -0.1014157906, 0.0267933886, 0.1365716755, 0.124205552, -0.4778538644, 0.3482120633, 0.1228084937, -0.0045359209, 0.1328115165, 0.0152961388, 0.0610447861, 0.212648347, 0.0505137518, 0.0225328915, -0.3593290746, -0.3428864777, 0.1738721728, 0.183702603, -0.1618131101, 0.3100453913, -0.243414551, 0.0291035175, -0.2370078564, -0.5286775231, 0.1101815253, -0.3338295817, 0.3879236579, 0.0459500179, 0.2415132821, -0.0656211674, -0.1326458156, 0.258523792, -0.2900001705, -0.3225953579, 0.1913188696, -0.0040632668, -0.1177863702, -0.2863716483, -0.6119113564, -0.2320204824, -0.0067999628, 0.0650994182, -0.0217824522, 0.1029453576, 0.1672927439, 0.003465326, 0.0664108396, 0.0913110971, -0.1194213256, -0.3855082393, -0.2991397977, 0.3120848238, -0.2916056216, -0.4581762254, 0.1919592321, 0.3693513572, 0.2002985775, -0.4235447645, -0.6195800304, -0.35627684, -0.2360385656, 0.4172389507, 0.0098471716, 0.1735920161, -0.051483728, 0.0889142305, -0.2018241882, -0.077507183, -0.1550941914, 0.1873609573, -0.1811659485, 0.0159237664, -0.028253857, 0.4260445833, -0.1087983921, 0.6520239711, 0.2633991241, -0.1470682621, 0.1576393396, -0.264315784, 0.1971453428, -0.1781637222, -0.1741814315, -0.038144134, 0.088324368, 0.2058561742, 0.3946110606, -0.1040792018, 0.2059565783, -0.026852129, 0.213145867, -0.3546041846, -0.3879667521, -0.1550582051, -0.2437066436, 0.0213711411, 0.2123608291, 0.0636183247, -0.1416448504, -0.0632352382, 0.1005920917, 0.076792106, 0.0420831405, -0.0995179489, -0.0863389894, -0.1784727722, -0.4788525999, 0.2481212914, -0.0092096152, 0.3909902275, -0.1121616289, -0.1002166048, 0.2194548547, -0.0043684035, 0.4560068846, -0.2689033747, -0.0179145895, 0.0936718211, -0.186203748, -0.4442029595, -0.0221100692, -0.0198603477, 0.2342890054, -0.2899645865, 0.330068022, -0.4090228677, 0.1094613969, -0.075098373, 0.1931867301, -0.3598313332, -0.1018326506, -0.2383761555, -0.5908291936, -0.562951982, -0.3407286108, -0.0888634101, 0.3199715316, -0.0571721978, 0.1004409119, -0.0045275828, -0.1027230993, 0.11345274, 0.3446065784, 0.1762350947, 0.0315550715, 0.3835323751, 0.0326558836, -0.3842028081, -0.127900511, 0.3927181661, 0.0056092106, -0.3613856435, -0.0328206606, -0.1646306813, -0.2811401784, 0.1208712459, -0.1757832915, 0.3222605288, -0.2872906327, 0.0121394806, 0.2697769403, -0.4153168797, 0.3032592833, -0.012663235, 0.0497943386, -0.2725847661, 0.1624762267, 0.0893576965, -0.0922516137, 0.0353355594, 0.0193528812, -0.1577179134, 0.3070990443, -0.3339823782, 0.8086027503, -0.322098434, -0.0031750356, 0.1793979853, -0.1708465368, 0.4431123137, -0.1009109318, -0.0825243071, -0.3335845768, -0.0315138549, 0.1846619844, 0.2317995429, -0.1739351302, -0.0865767747, -0.2442623973, 0.1741727293, -0.0519158021, 0.0858055502, -0.0408449844, 0.3070879877, -0.1015062407, 0.2904550433, -0.2883580923, 0.2675263286, -0.0877432227, 0.1828585863, -0.0383108296, -0.1374116391, 0.1783939302, -0.3050158322, -0.2982871532, -0.1119298413, -0.2175596803, 0.4140582085, -0.1023026183, -0.1878101975, 0.0138737326, 0.2614915371, 0.449763, 0.1073211953, -0.3052051663, 0.2241965234, 0.0273749009, 0.1277082562, -0.3906707466, 0.1022052914, -0.0751245469, -0.2009393871, -0.439679116, 0.1827705801, 0.1438465267, -0.3287850916, -0.2771500051, -0.0787955672, -0.0701141655, 0.109819293, -0.0815261975, 0.1268526167, -0.1358921677, -0.286346674, 0.2097563446, 0.0765758827, -0.2099359781, 0.2110081315, -0.0103826923, -0.3628774881, 0.0940711424, 0.3204194903, 0.3085792959, 0.1888679117, 0.6236081719, 0.2847037911, 0.0266484022, -0.2605065405, 0.1731085777, -0.0869769752, -0.4127441943, 0.2609810829, 0.037350852, 0.2647718787, 0.1355596632, 0.5139142275, -0.0379284844, 0.1114336699, 0.1115645692, -0.1308708638, -0.156591177, 0.0394294187, 0.076548703, 0.242466554, -0.0585241802, 0.3012081385, -0.028369518, 0.172747761, -0.4169736207, 0.4042407274, 0.080250062, 0.0594592206, 0.1233550012, -0.0578255542, 0.0112573588, 0.1012475044, 0.206666261, 0.2453943044, -0.1682658345, -0.33706671, 0.0295093488, 0.1115056127, 0.110854581, -0.0455924571, -0.1579122543, -0.0489119515, -0.0048617008, 0.1292029917, 0.5175469518, 0.0785564929, 0.0341003239, 0.204171136, 0.1231437847, 0.0100792712, -0.0428552926, -0.0189244617, -0.1597540379, 0.2994710207, 0.2570385337, -0.065957956, 0.064685829, -0.0835338533, -0.1245017201, -0.027031647, 0.0820432752, 0.3408680856, 0.0697108582, -0.3726454973, -0.0572146624, 0.0504115783, 0.0845650882, 0.1730721444, -0.338137567, -0.1250138581, 0.0152192218, 0.2680246532, -0.3273528814, -0.0416692086, -0.0598351471, -0.0593536682, 0.0419772565, 0.1253675967, 0.097974129, -0.0795865133, -0.1577425003, 0.180839017, 0.3923417032, -0.1692246497, 0.3493635356, 0.5018152595, -0.2021931261, -0.2801321745, -0.1751324534, -0.1486115158, -0.1547107399, 0.4010102749, -0.4265427887, 0.2644356489, 0.0058409725, -0.0253037196, 0.3134355545, -0.1954245567, 0.4575383067, 0.2299711853, -0.1750812232, 0.0539674088, 0.285351187, 0.278237164, -0.008305761, -0.0313470624, -0.2563527822, 0.2766211331, -0.0765282959, -0.2839587033, 0.0142062753, -0.214744553, -0.1756837815, 0.001897693, -0.1829963923, -0.0022403561, 0.1282914579, 0.1748277992, -0.3386029303, -0.560939014, -0.0142879011, -0.0377918519, 0.2609837949, 0.0445873179, 0.2074540704, 0.3442330956, -0.2296827286, 0.1394457668, 0.5412376523, 0.3105796874, 0.118127659, -0.2200495154, 0.4105908275, -0.0443098433, -0.0067194798, 0.1902710944, 0.2455508262, -0.051098153, -0.0982219875, 0.1347332299, 0.1799922884, -0.1555467397, 0.045496434, 0.4057557285, 0.0981360823, -0.1524368674, 0.0871280655, -0.3643079698, 0.0418299586, -0.0669961572, 0.2676010728, -0.395449698, -0.1085029989, 0.3045177162, 0.1557341665, 0.096489504, -0.4577563405, 0.1833015084, -0.1170969009, 0.6167404652, 0.2375577092, -0.1030004695, -0.0100439703, -0.0098384814, -0.7823601365, 0.3897297978, -0.207069248, 0.012958671, -0.1922494024, 0.2003074437, 0.1655292064, 0.1181920394, 0.2594937682, 0.0851882994, -0.30339697, 0.2087202221, -0.4308031201, 0.0334512033, 0.1361687034, -0.0556749813, -0.0249122288, -0.2137904018, 0.0938195586, -0.3152658939, 0.2230759859, -0.1755545586, -0.1446733177, 0.1275314242, -0.0831425115, 0.3925928771, 0.33591941, 0.261294663, -0.0130950976, -0.118927747, -0.2074190527, -0.2591650784, -0.1136423722, 0.3041811585, 0.3585503399, 0.0810937807, 0.1503806263, -0.0894585997, -0.1325131208, 0.0998272896, -0.1522545666, -0.0375137441, -0.121941939, 0.2126614749, 0.0502052456, -0.0981858969, -0.0966464132, 0.1886237711, -0.0873555318, 0.1743250936, -0.2423198074, -0.4815323651, 0.4326890409, -0.4872297943, -0.149122715, -0.1540156305, 0.180042237, -0.1308722794, -0.0508492924, -0.4597642124, 0.390381217, 0.3034302294, -0.021403702, -0.1663860679, 0.3868189752, -0.0154589647, -0.0606199205, -0.0008463904, 0.2884442508, 0.1162431166, -0.0939747468, 0.1778358221, -0.1560614407 ]
https://github.com/huggingface/datasets/issues/3554
ImportError: cannot import name 'is_valid_waiter_error'
Hi! I can't reproduce this error in Colab, but I'm assuming you are using Amazon SageMaker Studio Notebooks (you mention the `conda_pytorch_p36` kernel), so maybe @philschmid knows more about what might be causing this issue?
Based on [SO post](https://stackoverflow.com/q/70606147/17840900). I'm following along to this [Notebook][1], cell "**Loading the dataset**". Kernel: `conda_pytorch_p36`. I run: ``` ! pip install datasets transformers optimum[intel] ``` Output: ``` Requirement already satisfied: datasets in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (1.17.0) Requirement already satisfied: transformers in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (4.15.0) Requirement already satisfied: optimum[intel] in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (0.1.3) Requirement already satisfied: numpy>=1.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.19.5) Requirement already satisfied: dill in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.3.4) Requirement already satisfied: tqdm>=4.62.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.62.3) Requirement already satisfied: huggingface-hub<1.0.0,>=0.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.2.1) Requirement already satisfied: packaging in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (21.3) Requirement already satisfied: pyarrow!=4.0.0,>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (6.0.1) Requirement already satisfied: pandas in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.1.5) Requirement already satisfied: xxhash in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.0.2) Requirement already satisfied: aiohttp in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (3.8.1) Requirement already satisfied: fsspec[http]>=2021.05.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2021.11.1) Requirement already satisfied: dataclasses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.8) Requirement already satisfied: multiprocess in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: importlib-metadata in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.5.0) Requirement already satisfied: requests>=2.19.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.25.1) Requirement already satisfied: pyyaml>=5.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (5.4.1) Requirement already satisfied: regex!=2019.12.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (2021.4.4) Requirement already satisfied: tokenizers<0.11,>=0.10.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.10.3) Requirement already satisfied: filelock in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (3.0.12) Requirement already satisfied: sacremoses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.0.46) Requirement already satisfied: torch>=1.9 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.10.1) Requirement already satisfied: sympy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.8) Requirement already satisfied: coloredlogs in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (15.0.1) Requirement already satisfied: pycocotools in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (2.0.3) Requirement already satisfied: neural-compressor>=1.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.9) Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets) (3.10.0.0) Requirement already satisfied: sigopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.2.0) Requirement already satisfied: opencv-python in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (4.5.1.48) Requirement already satisfied: cryptography in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.4.7) Requirement already satisfied: py-cpuinfo in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.0.0) Requirement already satisfied: gevent in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (21.1.2) Requirement already satisfied: schema in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: psutil in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.8.0) Requirement already satisfied: gevent-websocket in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.10.1) Requirement already satisfied: hyperopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.2.7) Requirement already satisfied: Flask in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: prettytable in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.5.0) Requirement already satisfied: Flask-SocketIO in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.1.1) Requirement already satisfied: scikit-learn in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.24.2) Requirement already satisfied: Pillow in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.4.0) Requirement already satisfied: Flask-Cors in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.0.10) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: chardet<5,>=3.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: certifi>=2017.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: yarl<2.0,>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.6.3) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (2.0.9) Requirement already satisfied: attrs>=17.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (21.2.0) Requirement already satisfied: asynctest==0.13.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (0.13.0) Requirement already satisfied: idna-ssl>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.1.0) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (4.0.1) Requirement already satisfied: aiosignal>=1.1.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: frozenlist>=1.1.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: multidict<7.0,>=4.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (5.1.0) Requirement already satisfied: humanfriendly>=9.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from coloredlogs->optimum[intel]) (10.0) Requirement already satisfied: zipp>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: python-dateutil>=2.7.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: matplotlib>=2.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (3.3.4) Requirement already satisfied: cython>=0.27.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (0.29.23) Requirement already satisfied: setuptools>=18.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (52.0.0.post20210125) Requirement already satisfied: joblib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.0.1) Requirement already satisfied: click in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (8.0.1) Requirement already satisfied: six in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.16.0) Requirement already satisfied: mpmath>=0.19 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sympy->optimum[intel]) (1.2.1) Requirement already satisfied: kiwisolver>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (1.3.1) Requirement already satisfied: cycler>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/cycler-0.10.0-py3.6.egg (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (0.10.0) Requirement already satisfied: cffi>=1.12 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cryptography->neural-compressor>=1.7->optimum[intel]) (1.14.5) Requirement already satisfied: Werkzeug>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.2) Requirement already satisfied: Jinja2>=3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (3.0.1) Requirement already satisfied: itsdangerous>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: python-socketio>=5.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (5.5.0) Requirement already satisfied: zope.event in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (4.5.0) Requirement already satisfied: greenlet<2.0,>=0.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (1.1.0) Requirement already satisfied: zope.interface in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: future in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.18.2) Requirement already satisfied: cloudpickle in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.6.0) Requirement already satisfied: networkx>=2.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (2.5) Requirement already satisfied: scipy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.5.3) Requirement already satisfied: py4j in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.10.7) Requirement already satisfied: wcwidth in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from prettytable->neural-compressor>=1.7->optimum[intel]) (0.2.5) Requirement already satisfied: contextlib2>=0.5.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from schema->neural-compressor>=1.7->optimum[intel]) (0.6.0.post1) Requirement already satisfied: threadpoolctl>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from scikit-learn->neural-compressor>=1.7->optimum[intel]) (2.1.0) Requirement already satisfied: pyOpenSSL>=20.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (20.0.1) Requirement already satisfied: pypng>=0.0.20 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.0.21) Requirement already satisfied: kubernetes<13.0.0,>=12.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (12.0.1) Requirement already satisfied: rsa<5.0.0,>=4.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.7.2) Requirement already satisfied: boto3<2.0.0,==1.16.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.16.34) Requirement already satisfied: Pint<0.17.0,>=0.16.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.16.1) Requirement already satisfied: GitPython>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.18) Requirement already satisfied: backoff<2.0.0,>=1.10.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.11.1) Requirement already satisfied: ipython>=5.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (7.16.1) Requirement already satisfied: docker<5.0.0,>=4.4.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.4.4) Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.10.0) Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.3.7) Requirement already satisfied: botocore<1.20.0,>=1.19.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (1.19.63) Requirement already satisfied: pycparser in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cffi>=1.12->cryptography->neural-compressor>=1.7->optimum[intel]) (2.20) Requirement already satisfied: websocket-client>=0.32.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from docker<5.0.0,>=4.4.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.58.0) Requirement already satisfied: gitdb<5,>=4.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.0.9) Requirement already satisfied: traitlets>=4.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.3.3) Requirement already satisfied: jedi>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.17.2) Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (3.0.19) Requirement already satisfied: backcall in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: pygments in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (2.9.0) Requirement already satisfied: pexpect in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.8.0) Requirement already satisfied: decorator in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.9) Requirement already satisfied: pickleshare in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: MarkupSafe>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Jinja2>=3.0->Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: google-auth>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.30.2) Requirement already satisfied: requests-oauthlib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.3.0) Requirement already satisfied: importlib-resources in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Pint<0.17.0,>=0.16.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: python-engineio>=4.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (4.3.0) Requirement already satisfied: bidict>=0.21.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (0.21.4) Requirement already satisfied: pyasn1>=0.1.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from rsa<5.0.0,>=4.7->sigopt->neural-compressor>=1.7->optimum[intel]) (0.4.8) Requirement already satisfied: smmap<6,>=3.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gitdb<5,>=4.0.1->GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.0) Requirement already satisfied: pyasn1-modules>=0.2.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.8) Requirement already satisfied: cachetools<5.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (4.2.2) Requirement already satisfied: parso<0.8.0,>=0.7.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from jedi>=0.10->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.1) Requirement already satisfied: ipython-genutils in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from traitlets>=4.2->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: ptyprocess>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pexpect->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.0) Requirement already satisfied: oauthlib>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests-oauthlib->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.1) ``` --- **Cell:** ```python from datasets import load_dataset, load_metric ``` OR ```python import datasets ``` **Traceback:** ``` --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-7-34fb7ba3338d> in <module> ----> 1 from datasets import load_dataset, load_metric ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/__init__.py in <module> 32 ) 33 ---> 34 from .arrow_dataset import Dataset, concatenate_datasets 35 from .arrow_reader import ArrowReader, ReadInstruction 36 from .arrow_writer import ArrowWriter ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_dataset.py in <module> 59 from . import config, utils 60 from .arrow_reader import ArrowReader ---> 61 from .arrow_writer import ArrowWriter, OptimizedTypedSequence 62 from .features import ClassLabel, Features, FeatureType, Sequence, Value, _ArrayXD, pandas_types_mapper 63 from .filesystems import extract_path_from_uri, is_remote_filesystem ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_writer.py in <module> 26 27 from . import config, utils ---> 28 from .features import ( 29 Features, 30 ImageExtensionType, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/__init__.py in <module> 1 # flake8: noqa ----> 2 from .audio import Audio 3 from .features import * 4 from .features import ( 5 _ArrayXD, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/audio.py in <module> 5 import pyarrow as pa 6 ----> 7 from ..utils.streaming_download_manager import xopen 8 9 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/utils/streaming_download_manager.py in <module> 16 17 from .. import config ---> 18 from ..filesystems import COMPRESSION_FILESYSTEMS 19 from .download_manager import DownloadConfig, map_nested 20 from .file_utils import ( ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/__init__.py in <module> 11 12 if _has_s3fs: ---> 13 from .s3filesystem import S3FileSystem # noqa: F401 14 15 COMPRESSION_FILESYSTEMS: List[compression.BaseCompressedFileFileSystem] = [ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/s3filesystem.py in <module> ----> 1 import s3fs 2 3 4 class S3FileSystem(s3fs.S3FileSystem): 5 """ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/__init__.py in <module> ----> 1 from .core import S3FileSystem, S3File 2 from .mapping import S3Map 3 4 from ._version import get_versions 5 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/core.py in <module> 12 from fsspec.asyn import AsyncFileSystem, sync, sync_wrapper 13 ---> 14 import aiobotocore 15 import botocore 16 import aiobotocore.session ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/__init__.py in <module> ----> 1 from .session import get_session, AioSession 2 3 __all__ = ['get_session', 'AioSession'] 4 __version__ = '1.3.0' ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/session.py in <module> 4 from botocore import retryhandler, translate 5 from botocore.exceptions import PartialCredentialsError ----> 6 from .client import AioClientCreator, AioBaseClient 7 from .hooks import AioHierarchicalEmitter 8 from .parsers import AioResponseParserFactory ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/client.py in <module> 11 from .args import AioClientArgsCreator 12 from .utils import AioS3RegionRedirector ---> 13 from . import waiter 14 15 history_recorder = get_global_history_recorder() ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/waiter.py in <module> 4 from botocore.exceptions import ClientError 5 from botocore.waiter import WaiterModel # noqa: F401, lgtm[py/unused-import] ----> 6 from botocore.waiter import Waiter, xform_name, logger, WaiterError, \ 7 NormalizedOperationMethod as _NormalizedOperationMethod, is_valid_waiter_error 8 from botocore.docs.docstring import WaiterDocstring ImportError: cannot import name 'is_valid_waiter_error' ``` Please let me know if there's anything else I can add to post. [1]: https://github.com/huggingface/notebooks/blob/master/examples/text_classification_quantization_inc.ipynb
35
ImportError: cannot import name 'is_valid_waiter_error' Based on [SO post](https://stackoverflow.com/q/70606147/17840900). I'm following along to this [Notebook][1], cell "**Loading the dataset**". Kernel: `conda_pytorch_p36`. I run: ``` ! pip install datasets transformers optimum[intel] ``` Output: ``` Requirement already satisfied: datasets in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (1.17.0) Requirement already satisfied: transformers in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (4.15.0) Requirement already satisfied: optimum[intel] in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (0.1.3) Requirement already satisfied: numpy>=1.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.19.5) Requirement already satisfied: dill in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.3.4) Requirement already satisfied: tqdm>=4.62.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.62.3) Requirement already satisfied: huggingface-hub<1.0.0,>=0.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.2.1) Requirement already satisfied: packaging in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (21.3) Requirement already satisfied: pyarrow!=4.0.0,>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (6.0.1) Requirement already satisfied: pandas in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.1.5) Requirement already satisfied: xxhash in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.0.2) Requirement already satisfied: aiohttp in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (3.8.1) Requirement already satisfied: fsspec[http]>=2021.05.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2021.11.1) Requirement already satisfied: dataclasses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.8) Requirement already satisfied: multiprocess in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: importlib-metadata in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.5.0) Requirement already satisfied: requests>=2.19.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.25.1) Requirement already satisfied: pyyaml>=5.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (5.4.1) Requirement already satisfied: regex!=2019.12.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (2021.4.4) Requirement already satisfied: tokenizers<0.11,>=0.10.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.10.3) Requirement already satisfied: filelock in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (3.0.12) Requirement already satisfied: sacremoses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.0.46) Requirement already satisfied: torch>=1.9 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.10.1) Requirement already satisfied: sympy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.8) Requirement already satisfied: coloredlogs in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (15.0.1) Requirement already satisfied: pycocotools in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (2.0.3) Requirement already satisfied: neural-compressor>=1.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.9) Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets) (3.10.0.0) Requirement already satisfied: sigopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.2.0) Requirement already satisfied: opencv-python in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (4.5.1.48) Requirement already satisfied: cryptography in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.4.7) Requirement already satisfied: py-cpuinfo in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.0.0) Requirement already satisfied: gevent in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (21.1.2) Requirement already satisfied: schema in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: psutil in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.8.0) Requirement already satisfied: gevent-websocket in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.10.1) Requirement already satisfied: hyperopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.2.7) Requirement already satisfied: Flask in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: prettytable in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.5.0) Requirement already satisfied: Flask-SocketIO in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.1.1) Requirement already satisfied: scikit-learn in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.24.2) Requirement already satisfied: Pillow in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.4.0) Requirement already satisfied: Flask-Cors in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.0.10) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: chardet<5,>=3.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: certifi>=2017.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: yarl<2.0,>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.6.3) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (2.0.9) Requirement already satisfied: attrs>=17.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (21.2.0) Requirement already satisfied: asynctest==0.13.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (0.13.0) Requirement already satisfied: idna-ssl>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.1.0) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (4.0.1) Requirement already satisfied: aiosignal>=1.1.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: frozenlist>=1.1.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: multidict<7.0,>=4.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (5.1.0) Requirement already satisfied: humanfriendly>=9.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from coloredlogs->optimum[intel]) (10.0) Requirement already satisfied: zipp>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: python-dateutil>=2.7.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: matplotlib>=2.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (3.3.4) Requirement already satisfied: cython>=0.27.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (0.29.23) Requirement already satisfied: setuptools>=18.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (52.0.0.post20210125) Requirement already satisfied: joblib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.0.1) Requirement already satisfied: click in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (8.0.1) Requirement already satisfied: six in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.16.0) Requirement already satisfied: mpmath>=0.19 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sympy->optimum[intel]) (1.2.1) Requirement already satisfied: kiwisolver>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (1.3.1) Requirement already satisfied: cycler>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/cycler-0.10.0-py3.6.egg (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (0.10.0) Requirement already satisfied: cffi>=1.12 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cryptography->neural-compressor>=1.7->optimum[intel]) (1.14.5) Requirement already satisfied: Werkzeug>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.2) Requirement already satisfied: Jinja2>=3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (3.0.1) Requirement already satisfied: itsdangerous>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: python-socketio>=5.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (5.5.0) Requirement already satisfied: zope.event in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (4.5.0) Requirement already satisfied: greenlet<2.0,>=0.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (1.1.0) Requirement already satisfied: zope.interface in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: future in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.18.2) Requirement already satisfied: cloudpickle in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.6.0) Requirement already satisfied: networkx>=2.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (2.5) Requirement already satisfied: scipy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.5.3) Requirement already satisfied: py4j in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.10.7) Requirement already satisfied: wcwidth in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from prettytable->neural-compressor>=1.7->optimum[intel]) (0.2.5) Requirement already satisfied: contextlib2>=0.5.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from schema->neural-compressor>=1.7->optimum[intel]) (0.6.0.post1) Requirement already satisfied: threadpoolctl>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from scikit-learn->neural-compressor>=1.7->optimum[intel]) (2.1.0) Requirement already satisfied: pyOpenSSL>=20.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (20.0.1) Requirement already satisfied: pypng>=0.0.20 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.0.21) Requirement already satisfied: kubernetes<13.0.0,>=12.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (12.0.1) Requirement already satisfied: rsa<5.0.0,>=4.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.7.2) Requirement already satisfied: boto3<2.0.0,==1.16.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.16.34) Requirement already satisfied: Pint<0.17.0,>=0.16.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.16.1) Requirement already satisfied: GitPython>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.18) Requirement already satisfied: backoff<2.0.0,>=1.10.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.11.1) Requirement already satisfied: ipython>=5.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (7.16.1) Requirement already satisfied: docker<5.0.0,>=4.4.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.4.4) Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.10.0) Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.3.7) Requirement already satisfied: botocore<1.20.0,>=1.19.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (1.19.63) Requirement already satisfied: pycparser in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cffi>=1.12->cryptography->neural-compressor>=1.7->optimum[intel]) (2.20) Requirement already satisfied: websocket-client>=0.32.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from docker<5.0.0,>=4.4.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.58.0) Requirement already satisfied: gitdb<5,>=4.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.0.9) Requirement already satisfied: traitlets>=4.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.3.3) Requirement already satisfied: jedi>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.17.2) Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (3.0.19) Requirement already satisfied: backcall in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: pygments in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (2.9.0) Requirement already satisfied: pexpect in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.8.0) Requirement already satisfied: decorator in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.9) Requirement already satisfied: pickleshare in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: MarkupSafe>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Jinja2>=3.0->Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: google-auth>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.30.2) Requirement already satisfied: requests-oauthlib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.3.0) Requirement already satisfied: importlib-resources in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Pint<0.17.0,>=0.16.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: python-engineio>=4.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (4.3.0) Requirement already satisfied: bidict>=0.21.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (0.21.4) Requirement already satisfied: pyasn1>=0.1.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from rsa<5.0.0,>=4.7->sigopt->neural-compressor>=1.7->optimum[intel]) (0.4.8) Requirement already satisfied: smmap<6,>=3.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gitdb<5,>=4.0.1->GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.0) Requirement already satisfied: pyasn1-modules>=0.2.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.8) Requirement already satisfied: cachetools<5.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (4.2.2) Requirement already satisfied: parso<0.8.0,>=0.7.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from jedi>=0.10->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.1) Requirement already satisfied: ipython-genutils in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from traitlets>=4.2->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: ptyprocess>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pexpect->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.0) Requirement already satisfied: oauthlib>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests-oauthlib->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.1) ``` --- **Cell:** ```python from datasets import load_dataset, load_metric ``` OR ```python import datasets ``` **Traceback:** ``` --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-7-34fb7ba3338d> in <module> ----> 1 from datasets import load_dataset, load_metric ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/__init__.py in <module> 32 ) 33 ---> 34 from .arrow_dataset import Dataset, concatenate_datasets 35 from .arrow_reader import ArrowReader, ReadInstruction 36 from .arrow_writer import ArrowWriter ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_dataset.py in <module> 59 from . import config, utils 60 from .arrow_reader import ArrowReader ---> 61 from .arrow_writer import ArrowWriter, OptimizedTypedSequence 62 from .features import ClassLabel, Features, FeatureType, Sequence, Value, _ArrayXD, pandas_types_mapper 63 from .filesystems import extract_path_from_uri, is_remote_filesystem ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_writer.py in <module> 26 27 from . import config, utils ---> 28 from .features import ( 29 Features, 30 ImageExtensionType, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/__init__.py in <module> 1 # flake8: noqa ----> 2 from .audio import Audio 3 from .features import * 4 from .features import ( 5 _ArrayXD, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/audio.py in <module> 5 import pyarrow as pa 6 ----> 7 from ..utils.streaming_download_manager import xopen 8 9 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/utils/streaming_download_manager.py in <module> 16 17 from .. import config ---> 18 from ..filesystems import COMPRESSION_FILESYSTEMS 19 from .download_manager import DownloadConfig, map_nested 20 from .file_utils import ( ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/__init__.py in <module> 11 12 if _has_s3fs: ---> 13 from .s3filesystem import S3FileSystem # noqa: F401 14 15 COMPRESSION_FILESYSTEMS: List[compression.BaseCompressedFileFileSystem] = [ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/s3filesystem.py in <module> ----> 1 import s3fs 2 3 4 class S3FileSystem(s3fs.S3FileSystem): 5 """ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/__init__.py in <module> ----> 1 from .core import S3FileSystem, S3File 2 from .mapping import S3Map 3 4 from ._version import get_versions 5 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/core.py in <module> 12 from fsspec.asyn import AsyncFileSystem, sync, sync_wrapper 13 ---> 14 import aiobotocore 15 import botocore 16 import aiobotocore.session ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/__init__.py in <module> ----> 1 from .session import get_session, AioSession 2 3 __all__ = ['get_session', 'AioSession'] 4 __version__ = '1.3.0' ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/session.py in <module> 4 from botocore import retryhandler, translate 5 from botocore.exceptions import PartialCredentialsError ----> 6 from .client import AioClientCreator, AioBaseClient 7 from .hooks import AioHierarchicalEmitter 8 from .parsers import AioResponseParserFactory ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/client.py in <module> 11 from .args import AioClientArgsCreator 12 from .utils import AioS3RegionRedirector ---> 13 from . import waiter 14 15 history_recorder = get_global_history_recorder() ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/waiter.py in <module> 4 from botocore.exceptions import ClientError 5 from botocore.waiter import WaiterModel # noqa: F401, lgtm[py/unused-import] ----> 6 from botocore.waiter import Waiter, xform_name, logger, WaiterError, \ 7 NormalizedOperationMethod as _NormalizedOperationMethod, is_valid_waiter_error 8 from botocore.docs.docstring import WaiterDocstring ImportError: cannot import name 'is_valid_waiter_error' ``` Please let me know if there's anything else I can add to post. [1]: https://github.com/huggingface/notebooks/blob/master/examples/text_classification_quantization_inc.ipynb Hi! I can't reproduce this error in Colab, but I'm assuming you are using Amazon SageMaker Studio Notebooks (you mention the `conda_pytorch_p36` kernel), so maybe @philschmid knows more about what might be causing this issue?
[ -0.147882849, -0.1469279379, -0.2213934511, 0.1788341254, 0.1569535136, -0.1981433779, 0.3735085726, 0.1772010922, -0.0016112427, 0.0087774508, -0.1001608148, 0.3891834319, 0.0245094839, 0.115436241, -0.0132378004, -0.0450459421, 0.0596403442, 0.2368056029, -0.1831156015, -0.0913481265, -0.0493095703, 0.1821940988, -0.0914355144, 0.0991098583, -0.5285232067, 0.0171161294, 0.3036387563, -0.1104498208, -0.356695056, -0.3713035882, 0.2825567424, 0.0187201183, -0.101386331, 0.4599294066, -0.0001122417, 0.230179444, 0.2476487756, -0.0499860533, -0.3345485926, -0.2134087086, -0.0398932472, -0.2608369887, 0.1104154289, -0.3822897673, -0.0143551892, -0.1368087083, -0.1702281833, -0.0528266467, 0.4874278903, 0.4079868495, 0.2351163328, 0.335752964, 0.1470543295, -0.0369230509, 0.0279232357, -0.0211200882, -0.0040119388, -0.2910863757, -0.0123527879, -0.0471112765, 0.0962779224, 0.1077363119, -0.2222494036, 0.1710375696, 0.1241177842, -0.0654975995, -0.005631851, -0.2618323565, -0.07161396, 0.0502546616, 0.3171564341, -0.0479386635, -0.2048242241, 0.0131162116, -0.1751163006, -0.0341178402, 0.2309506387, -0.1560394764, -0.2949763536, 0.1756309867, -0.0247070938, 0.0081617674, -0.2785775959, 0.1817536205, -0.4565275908, 0.7678371072, -0.0489430688, 0.0298462827, 0.1483294666, -0.0376048014, 0.3596742153, 0.016422065, 0.2523131371, 0.0981854275, -0.2793001831, 0.0397321284, 0.2744545043, 0.1319993138, -0.1555294394, 0.3421449959, -0.0452989265, -0.010428491, 0.1772435308, 0.1695551276, -0.1268129349, 0.1690245569, 0.0345578827, 0.4688955545, 0.0148683731, 0.2946380377, 0.1175011471, 0.010093037, 0.0981882438, -0.2418649942, -0.2369597852, -0.0289267525, 0.4705238044, -0.0926315337, -0.4008590877, 0.2684022784, -0.0243987795, -0.0137887141, 0.2722733319, 0.5937828422, -0.2541590035, 0.0152362185, 0.2565145195, 0.1324544847, -0.1600553691, -0.003718371, -0.1664023101, 0.0108995903, -0.0480647348, -0.2606745958, 0.3093197942, -0.0377327092, 0.3955486417, -0.0325195752, 0.3315051794, -0.0167363696, 0.0469162352, -0.0624641664, 0.0432012528, 0.4161676466, -0.0650724843, -0.0360060968, 0.2363214046, -0.2227837145, -0.0510434695, 0.1127198637, -0.1398515999, -0.2046097666, -0.1627254337, 0.2663307488, -0.0711949244, -0.203376621, -0.0496626534, -0.3503131568, 0.2936306894, -0.3419854641, -0.059664242, -0.1041733772, 0.3260509074, -0.0699322596, 0.1980643272, 0.1620357186, -0.0309998244, -0.2566138506, -0.0580763221, -0.0227422211, -0.0156975519, 0.2671222985, -0.0691751689, 0.2928942442, 0.0069948114, -0.0671879575, 0.3016170561, -0.3634079993, -0.4851002097, 0.0759643018, -0.0397103578, 0.035957966, 0.2842035592, -0.0800511912, 0.2552697062, 0.0652231947, 0.3026783764, 0.190078795, 0.0718901902, -0.1407695413, -0.2025605589, 0.0093414271, -0.001571547, 0.2212698907, 0.334073782, -0.1150455177, -0.0708579272, 0.086341694, 0.0546515509, 0.0711742118, 0.0246128887, 0.260894388, 0.4277401567, 0.1926628053, -0.1258416474, -0.1145480797, -0.1011543721, 0.0480536483, -0.009828873, 0.2681351006, -0.2944582701, -0.0841060653, -0.3610239625, 0.193884626, -0.2637548149, -0.0621223189, 0.2436019629, 0.0911015496, -0.0583874844, -0.0399751589, -0.2093597203, 0.5022643209, -0.0612060912, 0.3174741864, -0.1920443624, 0.1801324934, -0.2967032492, 0.0811512172, -0.1548830122, 0.033550296, 0.1584486663, -0.1607597917, 0.0019735449, 0.0806027278, 0.0995635688, -0.0911887065, -0.4025057256, -0.0693584085, 0.0140240192, -0.040461842, -0.0612958632, 0.0771565735, 0.0371596441, -0.004972273, -0.1816973835, 0.1851634085, -0.1059818044, 0.1643472314, -0.0125464303, 0.0808048919, 0.3824872077, -0.1058042571, -0.1905660331, -0.1865924746, 0.4284558296, 0.044614058, 0.400703758, -0.089771159, 0.1700810492, -0.153591156, 0.137421608, 0.006270336, 0.1750783026, -0.114324443, 0.0300712734, 0.2086067051, 0.2309205979, 0.3923051357, 0.4204880297, 0.2654604018, -0.1815605909, -0.0590885095, -0.1567087471, -0.1053405404, 0.2149129212, 0.1123131439, 0.1805271506, 0.1572756469, -0.0655312985, -0.0514626242, -0.2755739689, -0.3691124618, 0.0449734442, 0.2246840745, -0.3862241507, 0.197142899, -0.3713849485, 0.0378690958, -0.0700483099, -0.4746536314, -0.196326986, -0.2479985505, 0.0187221859, 0.1868582666, 0.0340279713, 0.3932768106, 0.2305351049, 0.1749008745, 0.0847125202, -0.5530105233, -0.3919089735, -0.1822858155, 0.0130748143, 0.1629484743, 0.0899289846, 0.0395144522, 0.2660743892, -0.4861733913, -0.042902302, -0.0474385284, -0.5116285682, 0.0688924268, -0.2954367995, 0.358001858, 0.1606632322, 0.2106068283, 0.0412857682, -0.0698725507, 0.1822586209, -0.1377102882, -0.1190350577, 0.0367961526, 0.1163151637, -0.3229208291, 0.0954670012, -0.3759790361, -0.3106663525, -0.3536979854, 0.0166446716, 0.3028673232, 0.1337805092, 0.0542097539, 0.1005367264, 0.0942065865, 0.2855482101, 0.2112276405, -0.2116113007, 0.049501285, 0.3355379701, -0.3503981233, -0.2486625016, -0.1395149082, 0.0325691886, 0.605050385, -0.2025162876, -0.5017104745, -0.070351921, 0.0724208578, 0.0871893018, -0.1687178612, 0.2250496596, 0.3816601038, 0.221854195, -0.0721165612, -0.1877246499, -0.2443278134, -0.2268708497, 0.0523878261, 0.1715291142, -0.1827577651, 0.3797294497, 0.0422426537, 0.4859942496, 0.0453512333, -0.1519201994, 0.3058897555, -0.0000821069, 0.2879121304, -0.1440900117, -0.4906705618, -0.2398591787, -0.073172316, -0.0590171888, -0.0785194933, -0.251726836, -0.0846906453, -0.3152534068, 0.1573420316, -0.3020946383, 0.018848123, 0.0278134234, -0.0167115796, 0.2282641977, 0.2743487656, 0.0769392923, -0.2599675655, 0.0290763546, -0.2330682427, 0.3022710681, -0.1653577536, -0.2033086717, -0.393666029, -0.0700829849, -0.3505122066, 0.5201406479, -0.1417502761, 0.0975712836, -0.040482074, 0.066048339, 0.01409462, -0.052057948, 0.2304414064, 0.1007827893, -0.1274980754, 0.2202352136, -0.0403390266, -0.4240364134, 0.0012902265, -0.3186603785, 0.2164902687, 0.3229163885, 0.0207707696, -0.3441846967, -0.1582396328, 0.4272226691, -0.0325245373, -0.1108949035, -0.1570966244, -0.4874000549, -0.4498811364, -0.4555694163, 0.1350949258, 0.2208063006, 0.3350026309, 0.1066677943, 0.0339355245, -0.2213433683, -0.139997974, 0.1577839851, 0.2872525454, 0.0557299741, -0.1664206684, -0.011939358, -0.2326803356, 0.0704903007, 0.5179842114, 0.5934937596, -0.2430634797, -0.2944009304, -0.0398992188, 0.1407307088, 0.1506175399, 0.2000865787, -0.0697526932, -0.0683979839, 0.1763928086, 0.1869591027, 0.1995501518, 0.0210899599, 0.23314026, 0.2988471687, -0.4171695709, -0.2365463227, 0.3339708447, -0.0664699003, -0.0779234841, 0.045690991, 0.1877263635, -0.2108778954, 0.3500016928, 0.2081944793, 0.8249516487, 0.2740315497, 0.021773586, 0.3340115845, 0.0530164987, 0.4772346318, -0.5256401896, 0.2779949009, -0.1998993158, -0.1485441327, -0.1056682467, -0.1200078949, 0.2859657705, 0.1885987222, -0.375082463, 0.1634072065, 0.0837130994, -0.0050590131, 0.1467693299, 0.2155250162, -0.0813946053, -0.1755890101, -0.4749569595, 0.198226437, -0.1161043867, 0.4056152105, -0.3695657849, 0.1758720577, -0.2364398092, -0.4864913821, -0.0219651628, -0.0572793633, -0.5641258359, 0.4834366143, 0.1611067802, -0.1438444853, -0.1929983348, 0.1012995765, -0.0321187526, 0.1950654984, -0.062342491, 0.1826947778, 0.0070191054, -0.2802789509, 0.0761467367, -0.055438675, 0.3725720346, -0.1888173819, -0.2949993312, 0.0676439255, -0.0227391031, -0.5746198893, 0.3706075549, 0.3127175868, 0.2594403327, -0.4141755402, -0.1008988321, 0.0471216999, -0.0022063537, -0.3120408952, 0.1713686436, 0.0554380901, -0.3020749986, 0.323297441, 0.1941832155, -0.2698325217, -0.2043769658, 0.3248438537, 0.0698584542, -0.370123595, 0.2533122003, -0.0411593989, -0.1644686162, -0.2992781699, 0.2554464936, -0.2276527137, -0.451157093, -0.2315697372, -0.0778469816, -0.3177290559, 0.003283347, 0.2383664101, 0.4500198066, 0.2553205788, -0.2294580787, -0.4196708798, -0.270702064, 0.2733838558, 0.094782114, 0.0822881684, 0.2173053771, 0.2445056885, -0.0785725191, 0.2283004522, -0.3474649191, 0.0849699154, -0.2437528372, 0.0401080623, 0.3991332948, -0.1664494574, 0.2360538393, -0.1057447046, 0.2053281665, 0.0557870343, -0.1856923699, -0.3034193516, -0.0992537886, 0.1484923512, 0.1175192147, -0.0955811739, -0.3456858695, -0.012256965, -0.0652472824, -0.1181234196, -0.0333212167, 0.1138168871, 0.1033727974, 0.0561168604, 0.1782404184, 0.0713145584, -0.1407315433, -0.0557088442, -0.0220888127, 0.0108476374, 0.0346566141, 0.1881541759, 0.1897949725, 0.0804275051, 0.1335049421, 0.0586599, 0.0972505733, 0.0819602162, 0.3060843945, -0.4266725779, 0.0856694728, -0.0395678096, 0.2348963469, 0.4736513197, -0.2496418059, 0.025428107, 0.2098951042, 0.2950935066, -0.2877690494, -0.251195997, 0.2391693294, 0.0821405202, 0.1769164801, 0.4968072474, -0.1200477332, 0.0315552652, 0.6059990525, 0.437158823, 0.2822387218, -0.254507035, 0.3256478012, 0.0466721877, -0.3255583942, 0.1784092337, 0.4047519267, 0.2448444664, 0.2808089554, 0.3693656623, -0.1588609964, 0.0974026546, -0.2743860781, 0.0932687744, 0.0654430017, -0.0686974972, -0.0210657641, -0.1939718723, -0.1426850259, 0.1229707971, 0.1009000763, -0.1209658384, -0.435210675, -0.0772820786, -0.5616144538, 0.1916722506, -0.3719940782, 0.0624890924, 0.0843581855, -0.0817593783, 0.0194741488, -0.1926516593, 0.1767230034, -0.1335428059, 0.1164516136, 0.1317354441, -0.2246079743, -0.2322927266, -0.15771842, 0.1555505097, 0.0218298156, -0.2483112067, 0.2015416175, 0.0959184766, 0.0067358925, -0.3204151988, 0.4864838719, 0.6182714701, 0.2359368652, -0.0477551259, 0.2139195055, -0.1882870197, -0.1154772341, -0.21221295, 0.2470015436, 0.1821264178, 0.2646687627, 0.265759021, 0.2384691685, -0.324133575, 0.0736602396, 0.1151357964, -0.1132102236, -0.3249032497, 0.5744448304, -0.0970284492, -0.2325419933, -0.2296977937, 0.0957970172, -0.6688085794, 0.0016218923, 0.1012999117, -0.1869391501, 0.1108119339, -0.097238794, 0.0933166817, 0.0038401322, 0.4608186781, 0.180932492, 0.2653103471, -0.4273065031, -0.1796087772, -0.4527228475, 0.129712075, -0.1776193529, -0.0388172567, -0.0259649996, -0.0256293006, 0.1027621403, 0.3866543174, 0.1732467115, -0.2431422919, -0.1525466442, -0.0350415409, -0.3035101593, 0.0948396847, 0.1827399731, 0.0200398136, 0.1293052882, -0.3258501887, -0.0112639843, -0.1497566998, 0.1597599834, -0.2867316604, 0.0712298304, 0.3038262725, 0.0413157195, 0.5474320054, 0.1641434729, 0.6859192848, -0.0505449735, -0.0715183914, 0.0780516937, -0.2429568172, -0.2286791801, 0.4720576108, 0.2581991851, 0.3122891188, -0.0096704699, -0.5907734036, -0.3078118563, 0.2258808613, 0.2094399184, -0.0729818344, -0.0988013148, 0.0807392374, -0.1488000304, 0.1402383, 0.0258283913, 0.2333547026, -0.0289727636, 0.2142147422, -0.4133351743, -0.3637703359, 0.4925272167, -0.2699373066, -0.24975577, -0.0548798591, 0.2195810676, 0.0707299188, -0.1204774603, -0.4549995959, -0.0122006508, 0.2876493633, -0.1110278741, -0.4158360362, 0.3226323128, 0.0699551329, -0.053013321, -0.0906257629, 0.2138214558, -0.0570859909, -0.3271856904, -0.0836623833, -0.2636033595 ]
https://github.com/huggingface/datasets/issues/3554
ImportError: cannot import name 'is_valid_waiter_error'
Hey @mariosasko. Yes, I am using **Amazon SageMaker Studio Jupyter Labs**. However, I no longer need this notebook; but it would be nice to have this problem solved for others. So don't stress too much if you two can't reproduce error.
Based on [SO post](https://stackoverflow.com/q/70606147/17840900). I'm following along to this [Notebook][1], cell "**Loading the dataset**". Kernel: `conda_pytorch_p36`. I run: ``` ! pip install datasets transformers optimum[intel] ``` Output: ``` Requirement already satisfied: datasets in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (1.17.0) Requirement already satisfied: transformers in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (4.15.0) Requirement already satisfied: optimum[intel] in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (0.1.3) Requirement already satisfied: numpy>=1.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.19.5) Requirement already satisfied: dill in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.3.4) Requirement already satisfied: tqdm>=4.62.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.62.3) Requirement already satisfied: huggingface-hub<1.0.0,>=0.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.2.1) Requirement already satisfied: packaging in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (21.3) Requirement already satisfied: pyarrow!=4.0.0,>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (6.0.1) Requirement already satisfied: pandas in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.1.5) Requirement already satisfied: xxhash in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.0.2) Requirement already satisfied: aiohttp in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (3.8.1) Requirement already satisfied: fsspec[http]>=2021.05.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2021.11.1) Requirement already satisfied: dataclasses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.8) Requirement already satisfied: multiprocess in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: importlib-metadata in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.5.0) Requirement already satisfied: requests>=2.19.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.25.1) Requirement already satisfied: pyyaml>=5.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (5.4.1) Requirement already satisfied: regex!=2019.12.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (2021.4.4) Requirement already satisfied: tokenizers<0.11,>=0.10.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.10.3) Requirement already satisfied: filelock in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (3.0.12) Requirement already satisfied: sacremoses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.0.46) Requirement already satisfied: torch>=1.9 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.10.1) Requirement already satisfied: sympy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.8) Requirement already satisfied: coloredlogs in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (15.0.1) Requirement already satisfied: pycocotools in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (2.0.3) Requirement already satisfied: neural-compressor>=1.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.9) Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets) (3.10.0.0) Requirement already satisfied: sigopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.2.0) Requirement already satisfied: opencv-python in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (4.5.1.48) Requirement already satisfied: cryptography in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.4.7) Requirement already satisfied: py-cpuinfo in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.0.0) Requirement already satisfied: gevent in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (21.1.2) Requirement already satisfied: schema in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: psutil in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.8.0) Requirement already satisfied: gevent-websocket in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.10.1) Requirement already satisfied: hyperopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.2.7) Requirement already satisfied: Flask in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: prettytable in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.5.0) Requirement already satisfied: Flask-SocketIO in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.1.1) Requirement already satisfied: scikit-learn in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.24.2) Requirement already satisfied: Pillow in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.4.0) Requirement already satisfied: Flask-Cors in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.0.10) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: chardet<5,>=3.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: certifi>=2017.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: yarl<2.0,>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.6.3) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (2.0.9) Requirement already satisfied: attrs>=17.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (21.2.0) Requirement already satisfied: asynctest==0.13.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (0.13.0) Requirement already satisfied: idna-ssl>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.1.0) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (4.0.1) Requirement already satisfied: aiosignal>=1.1.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: frozenlist>=1.1.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: multidict<7.0,>=4.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (5.1.0) Requirement already satisfied: humanfriendly>=9.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from coloredlogs->optimum[intel]) (10.0) Requirement already satisfied: zipp>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: python-dateutil>=2.7.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: matplotlib>=2.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (3.3.4) Requirement already satisfied: cython>=0.27.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (0.29.23) Requirement already satisfied: setuptools>=18.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (52.0.0.post20210125) Requirement already satisfied: joblib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.0.1) Requirement already satisfied: click in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (8.0.1) Requirement already satisfied: six in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.16.0) Requirement already satisfied: mpmath>=0.19 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sympy->optimum[intel]) (1.2.1) Requirement already satisfied: kiwisolver>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (1.3.1) Requirement already satisfied: cycler>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/cycler-0.10.0-py3.6.egg (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (0.10.0) Requirement already satisfied: cffi>=1.12 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cryptography->neural-compressor>=1.7->optimum[intel]) (1.14.5) Requirement already satisfied: Werkzeug>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.2) Requirement already satisfied: Jinja2>=3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (3.0.1) Requirement already satisfied: itsdangerous>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: python-socketio>=5.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (5.5.0) Requirement already satisfied: zope.event in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (4.5.0) Requirement already satisfied: greenlet<2.0,>=0.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (1.1.0) Requirement already satisfied: zope.interface in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: future in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.18.2) Requirement already satisfied: cloudpickle in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.6.0) Requirement already satisfied: networkx>=2.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (2.5) Requirement already satisfied: scipy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.5.3) Requirement already satisfied: py4j in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.10.7) Requirement already satisfied: wcwidth in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from prettytable->neural-compressor>=1.7->optimum[intel]) (0.2.5) Requirement already satisfied: contextlib2>=0.5.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from schema->neural-compressor>=1.7->optimum[intel]) (0.6.0.post1) Requirement already satisfied: threadpoolctl>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from scikit-learn->neural-compressor>=1.7->optimum[intel]) (2.1.0) Requirement already satisfied: pyOpenSSL>=20.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (20.0.1) Requirement already satisfied: pypng>=0.0.20 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.0.21) Requirement already satisfied: kubernetes<13.0.0,>=12.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (12.0.1) Requirement already satisfied: rsa<5.0.0,>=4.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.7.2) Requirement already satisfied: boto3<2.0.0,==1.16.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.16.34) Requirement already satisfied: Pint<0.17.0,>=0.16.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.16.1) Requirement already satisfied: GitPython>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.18) Requirement already satisfied: backoff<2.0.0,>=1.10.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.11.1) Requirement already satisfied: ipython>=5.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (7.16.1) Requirement already satisfied: docker<5.0.0,>=4.4.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.4.4) Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.10.0) Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.3.7) Requirement already satisfied: botocore<1.20.0,>=1.19.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (1.19.63) Requirement already satisfied: pycparser in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cffi>=1.12->cryptography->neural-compressor>=1.7->optimum[intel]) (2.20) Requirement already satisfied: websocket-client>=0.32.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from docker<5.0.0,>=4.4.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.58.0) Requirement already satisfied: gitdb<5,>=4.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.0.9) Requirement already satisfied: traitlets>=4.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.3.3) Requirement already satisfied: jedi>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.17.2) Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (3.0.19) Requirement already satisfied: backcall in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: pygments in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (2.9.0) Requirement already satisfied: pexpect in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.8.0) Requirement already satisfied: decorator in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.9) Requirement already satisfied: pickleshare in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: MarkupSafe>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Jinja2>=3.0->Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: google-auth>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.30.2) Requirement already satisfied: requests-oauthlib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.3.0) Requirement already satisfied: importlib-resources in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Pint<0.17.0,>=0.16.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: python-engineio>=4.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (4.3.0) Requirement already satisfied: bidict>=0.21.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (0.21.4) Requirement already satisfied: pyasn1>=0.1.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from rsa<5.0.0,>=4.7->sigopt->neural-compressor>=1.7->optimum[intel]) (0.4.8) Requirement already satisfied: smmap<6,>=3.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gitdb<5,>=4.0.1->GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.0) Requirement already satisfied: pyasn1-modules>=0.2.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.8) Requirement already satisfied: cachetools<5.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (4.2.2) Requirement already satisfied: parso<0.8.0,>=0.7.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from jedi>=0.10->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.1) Requirement already satisfied: ipython-genutils in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from traitlets>=4.2->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: ptyprocess>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pexpect->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.0) Requirement already satisfied: oauthlib>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests-oauthlib->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.1) ``` --- **Cell:** ```python from datasets import load_dataset, load_metric ``` OR ```python import datasets ``` **Traceback:** ``` --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-7-34fb7ba3338d> in <module> ----> 1 from datasets import load_dataset, load_metric ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/__init__.py in <module> 32 ) 33 ---> 34 from .arrow_dataset import Dataset, concatenate_datasets 35 from .arrow_reader import ArrowReader, ReadInstruction 36 from .arrow_writer import ArrowWriter ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_dataset.py in <module> 59 from . import config, utils 60 from .arrow_reader import ArrowReader ---> 61 from .arrow_writer import ArrowWriter, OptimizedTypedSequence 62 from .features import ClassLabel, Features, FeatureType, Sequence, Value, _ArrayXD, pandas_types_mapper 63 from .filesystems import extract_path_from_uri, is_remote_filesystem ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_writer.py in <module> 26 27 from . import config, utils ---> 28 from .features import ( 29 Features, 30 ImageExtensionType, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/__init__.py in <module> 1 # flake8: noqa ----> 2 from .audio import Audio 3 from .features import * 4 from .features import ( 5 _ArrayXD, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/audio.py in <module> 5 import pyarrow as pa 6 ----> 7 from ..utils.streaming_download_manager import xopen 8 9 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/utils/streaming_download_manager.py in <module> 16 17 from .. import config ---> 18 from ..filesystems import COMPRESSION_FILESYSTEMS 19 from .download_manager import DownloadConfig, map_nested 20 from .file_utils import ( ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/__init__.py in <module> 11 12 if _has_s3fs: ---> 13 from .s3filesystem import S3FileSystem # noqa: F401 14 15 COMPRESSION_FILESYSTEMS: List[compression.BaseCompressedFileFileSystem] = [ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/s3filesystem.py in <module> ----> 1 import s3fs 2 3 4 class S3FileSystem(s3fs.S3FileSystem): 5 """ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/__init__.py in <module> ----> 1 from .core import S3FileSystem, S3File 2 from .mapping import S3Map 3 4 from ._version import get_versions 5 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/core.py in <module> 12 from fsspec.asyn import AsyncFileSystem, sync, sync_wrapper 13 ---> 14 import aiobotocore 15 import botocore 16 import aiobotocore.session ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/__init__.py in <module> ----> 1 from .session import get_session, AioSession 2 3 __all__ = ['get_session', 'AioSession'] 4 __version__ = '1.3.0' ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/session.py in <module> 4 from botocore import retryhandler, translate 5 from botocore.exceptions import PartialCredentialsError ----> 6 from .client import AioClientCreator, AioBaseClient 7 from .hooks import AioHierarchicalEmitter 8 from .parsers import AioResponseParserFactory ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/client.py in <module> 11 from .args import AioClientArgsCreator 12 from .utils import AioS3RegionRedirector ---> 13 from . import waiter 14 15 history_recorder = get_global_history_recorder() ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/waiter.py in <module> 4 from botocore.exceptions import ClientError 5 from botocore.waiter import WaiterModel # noqa: F401, lgtm[py/unused-import] ----> 6 from botocore.waiter import Waiter, xform_name, logger, WaiterError, \ 7 NormalizedOperationMethod as _NormalizedOperationMethod, is_valid_waiter_error 8 from botocore.docs.docstring import WaiterDocstring ImportError: cannot import name 'is_valid_waiter_error' ``` Please let me know if there's anything else I can add to post. [1]: https://github.com/huggingface/notebooks/blob/master/examples/text_classification_quantization_inc.ipynb
41
ImportError: cannot import name 'is_valid_waiter_error' Based on [SO post](https://stackoverflow.com/q/70606147/17840900). I'm following along to this [Notebook][1], cell "**Loading the dataset**". Kernel: `conda_pytorch_p36`. I run: ``` ! pip install datasets transformers optimum[intel] ``` Output: ``` Requirement already satisfied: datasets in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (1.17.0) Requirement already satisfied: transformers in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (4.15.0) Requirement already satisfied: optimum[intel] in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (0.1.3) Requirement already satisfied: numpy>=1.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.19.5) Requirement already satisfied: dill in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.3.4) Requirement already satisfied: tqdm>=4.62.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.62.3) Requirement already satisfied: huggingface-hub<1.0.0,>=0.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.2.1) Requirement already satisfied: packaging in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (21.3) Requirement already satisfied: pyarrow!=4.0.0,>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (6.0.1) Requirement already satisfied: pandas in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.1.5) Requirement already satisfied: xxhash in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.0.2) Requirement already satisfied: aiohttp in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (3.8.1) Requirement already satisfied: fsspec[http]>=2021.05.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2021.11.1) Requirement already satisfied: dataclasses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.8) Requirement already satisfied: multiprocess in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: importlib-metadata in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.5.0) Requirement already satisfied: requests>=2.19.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.25.1) Requirement already satisfied: pyyaml>=5.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (5.4.1) Requirement already satisfied: regex!=2019.12.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (2021.4.4) Requirement already satisfied: tokenizers<0.11,>=0.10.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.10.3) Requirement already satisfied: filelock in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (3.0.12) Requirement already satisfied: sacremoses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.0.46) Requirement already satisfied: torch>=1.9 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.10.1) Requirement already satisfied: sympy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.8) Requirement already satisfied: coloredlogs in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (15.0.1) Requirement already satisfied: pycocotools in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (2.0.3) Requirement already satisfied: neural-compressor>=1.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.9) Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets) (3.10.0.0) Requirement already satisfied: sigopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.2.0) Requirement already satisfied: opencv-python in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (4.5.1.48) Requirement already satisfied: cryptography in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.4.7) Requirement already satisfied: py-cpuinfo in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.0.0) Requirement already satisfied: gevent in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (21.1.2) Requirement already satisfied: schema in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: psutil in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.8.0) Requirement already satisfied: gevent-websocket in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.10.1) Requirement already satisfied: hyperopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.2.7) Requirement already satisfied: Flask in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: prettytable in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.5.0) Requirement already satisfied: Flask-SocketIO in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.1.1) Requirement already satisfied: scikit-learn in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.24.2) Requirement already satisfied: Pillow in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.4.0) Requirement already satisfied: Flask-Cors in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.0.10) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: chardet<5,>=3.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: certifi>=2017.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: yarl<2.0,>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.6.3) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (2.0.9) Requirement already satisfied: attrs>=17.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (21.2.0) Requirement already satisfied: asynctest==0.13.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (0.13.0) Requirement already satisfied: idna-ssl>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.1.0) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (4.0.1) Requirement already satisfied: aiosignal>=1.1.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: frozenlist>=1.1.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: multidict<7.0,>=4.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (5.1.0) Requirement already satisfied: humanfriendly>=9.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from coloredlogs->optimum[intel]) (10.0) Requirement already satisfied: zipp>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: python-dateutil>=2.7.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: matplotlib>=2.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (3.3.4) Requirement already satisfied: cython>=0.27.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (0.29.23) Requirement already satisfied: setuptools>=18.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (52.0.0.post20210125) Requirement already satisfied: joblib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.0.1) Requirement already satisfied: click in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (8.0.1) Requirement already satisfied: six in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.16.0) Requirement already satisfied: mpmath>=0.19 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sympy->optimum[intel]) (1.2.1) Requirement already satisfied: kiwisolver>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (1.3.1) Requirement already satisfied: cycler>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/cycler-0.10.0-py3.6.egg (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (0.10.0) Requirement already satisfied: cffi>=1.12 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cryptography->neural-compressor>=1.7->optimum[intel]) (1.14.5) Requirement already satisfied: Werkzeug>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.2) Requirement already satisfied: Jinja2>=3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (3.0.1) Requirement already satisfied: itsdangerous>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: python-socketio>=5.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (5.5.0) Requirement already satisfied: zope.event in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (4.5.0) Requirement already satisfied: greenlet<2.0,>=0.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (1.1.0) Requirement already satisfied: zope.interface in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: future in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.18.2) Requirement already satisfied: cloudpickle in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.6.0) Requirement already satisfied: networkx>=2.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (2.5) Requirement already satisfied: scipy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.5.3) Requirement already satisfied: py4j in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.10.7) Requirement already satisfied: wcwidth in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from prettytable->neural-compressor>=1.7->optimum[intel]) (0.2.5) Requirement already satisfied: contextlib2>=0.5.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from schema->neural-compressor>=1.7->optimum[intel]) (0.6.0.post1) Requirement already satisfied: threadpoolctl>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from scikit-learn->neural-compressor>=1.7->optimum[intel]) (2.1.0) Requirement already satisfied: pyOpenSSL>=20.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (20.0.1) Requirement already satisfied: pypng>=0.0.20 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.0.21) Requirement already satisfied: kubernetes<13.0.0,>=12.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (12.0.1) Requirement already satisfied: rsa<5.0.0,>=4.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.7.2) Requirement already satisfied: boto3<2.0.0,==1.16.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.16.34) Requirement already satisfied: Pint<0.17.0,>=0.16.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.16.1) Requirement already satisfied: GitPython>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.18) Requirement already satisfied: backoff<2.0.0,>=1.10.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.11.1) Requirement already satisfied: ipython>=5.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (7.16.1) Requirement already satisfied: docker<5.0.0,>=4.4.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.4.4) Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.10.0) Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.3.7) Requirement already satisfied: botocore<1.20.0,>=1.19.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (1.19.63) Requirement already satisfied: pycparser in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cffi>=1.12->cryptography->neural-compressor>=1.7->optimum[intel]) (2.20) Requirement already satisfied: websocket-client>=0.32.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from docker<5.0.0,>=4.4.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.58.0) Requirement already satisfied: gitdb<5,>=4.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.0.9) Requirement already satisfied: traitlets>=4.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.3.3) Requirement already satisfied: jedi>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.17.2) Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (3.0.19) Requirement already satisfied: backcall in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: pygments in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (2.9.0) Requirement already satisfied: pexpect in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.8.0) Requirement already satisfied: decorator in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.9) Requirement already satisfied: pickleshare in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: MarkupSafe>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Jinja2>=3.0->Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: google-auth>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.30.2) Requirement already satisfied: requests-oauthlib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.3.0) Requirement already satisfied: importlib-resources in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Pint<0.17.0,>=0.16.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: python-engineio>=4.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (4.3.0) Requirement already satisfied: bidict>=0.21.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (0.21.4) Requirement already satisfied: pyasn1>=0.1.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from rsa<5.0.0,>=4.7->sigopt->neural-compressor>=1.7->optimum[intel]) (0.4.8) Requirement already satisfied: smmap<6,>=3.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gitdb<5,>=4.0.1->GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.0) Requirement already satisfied: pyasn1-modules>=0.2.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.8) Requirement already satisfied: cachetools<5.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (4.2.2) Requirement already satisfied: parso<0.8.0,>=0.7.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from jedi>=0.10->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.1) Requirement already satisfied: ipython-genutils in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from traitlets>=4.2->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: ptyprocess>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pexpect->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.0) Requirement already satisfied: oauthlib>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests-oauthlib->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.1) ``` --- **Cell:** ```python from datasets import load_dataset, load_metric ``` OR ```python import datasets ``` **Traceback:** ``` --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-7-34fb7ba3338d> in <module> ----> 1 from datasets import load_dataset, load_metric ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/__init__.py in <module> 32 ) 33 ---> 34 from .arrow_dataset import Dataset, concatenate_datasets 35 from .arrow_reader import ArrowReader, ReadInstruction 36 from .arrow_writer import ArrowWriter ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_dataset.py in <module> 59 from . import config, utils 60 from .arrow_reader import ArrowReader ---> 61 from .arrow_writer import ArrowWriter, OptimizedTypedSequence 62 from .features import ClassLabel, Features, FeatureType, Sequence, Value, _ArrayXD, pandas_types_mapper 63 from .filesystems import extract_path_from_uri, is_remote_filesystem ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_writer.py in <module> 26 27 from . import config, utils ---> 28 from .features import ( 29 Features, 30 ImageExtensionType, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/__init__.py in <module> 1 # flake8: noqa ----> 2 from .audio import Audio 3 from .features import * 4 from .features import ( 5 _ArrayXD, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/audio.py in <module> 5 import pyarrow as pa 6 ----> 7 from ..utils.streaming_download_manager import xopen 8 9 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/utils/streaming_download_manager.py in <module> 16 17 from .. import config ---> 18 from ..filesystems import COMPRESSION_FILESYSTEMS 19 from .download_manager import DownloadConfig, map_nested 20 from .file_utils import ( ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/__init__.py in <module> 11 12 if _has_s3fs: ---> 13 from .s3filesystem import S3FileSystem # noqa: F401 14 15 COMPRESSION_FILESYSTEMS: List[compression.BaseCompressedFileFileSystem] = [ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/s3filesystem.py in <module> ----> 1 import s3fs 2 3 4 class S3FileSystem(s3fs.S3FileSystem): 5 """ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/__init__.py in <module> ----> 1 from .core import S3FileSystem, S3File 2 from .mapping import S3Map 3 4 from ._version import get_versions 5 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/core.py in <module> 12 from fsspec.asyn import AsyncFileSystem, sync, sync_wrapper 13 ---> 14 import aiobotocore 15 import botocore 16 import aiobotocore.session ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/__init__.py in <module> ----> 1 from .session import get_session, AioSession 2 3 __all__ = ['get_session', 'AioSession'] 4 __version__ = '1.3.0' ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/session.py in <module> 4 from botocore import retryhandler, translate 5 from botocore.exceptions import PartialCredentialsError ----> 6 from .client import AioClientCreator, AioBaseClient 7 from .hooks import AioHierarchicalEmitter 8 from .parsers import AioResponseParserFactory ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/client.py in <module> 11 from .args import AioClientArgsCreator 12 from .utils import AioS3RegionRedirector ---> 13 from . import waiter 14 15 history_recorder = get_global_history_recorder() ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/waiter.py in <module> 4 from botocore.exceptions import ClientError 5 from botocore.waiter import WaiterModel # noqa: F401, lgtm[py/unused-import] ----> 6 from botocore.waiter import Waiter, xform_name, logger, WaiterError, \ 7 NormalizedOperationMethod as _NormalizedOperationMethod, is_valid_waiter_error 8 from botocore.docs.docstring import WaiterDocstring ImportError: cannot import name 'is_valid_waiter_error' ``` Please let me know if there's anything else I can add to post. [1]: https://github.com/huggingface/notebooks/blob/master/examples/text_classification_quantization_inc.ipynb Hey @mariosasko. Yes, I am using **Amazon SageMaker Studio Jupyter Labs**. However, I no longer need this notebook; but it would be nice to have this problem solved for others. So don't stress too much if you two can't reproduce error.
[ -0.147882849, -0.1469279379, -0.2213934511, 0.1788341254, 0.1569535136, -0.1981433779, 0.3735085726, 0.1772010922, -0.0016112427, 0.0087774508, -0.1001608148, 0.3891834319, 0.0245094839, 0.115436241, -0.0132378004, -0.0450459421, 0.0596403442, 0.2368056029, -0.1831156015, -0.0913481265, -0.0493095703, 0.1821940988, -0.0914355144, 0.0991098583, -0.5285232067, 0.0171161294, 0.3036387563, -0.1104498208, -0.356695056, -0.3713035882, 0.2825567424, 0.0187201183, -0.101386331, 0.4599294066, -0.0001122417, 0.230179444, 0.2476487756, -0.0499860533, -0.3345485926, -0.2134087086, -0.0398932472, -0.2608369887, 0.1104154289, -0.3822897673, -0.0143551892, -0.1368087083, -0.1702281833, -0.0528266467, 0.4874278903, 0.4079868495, 0.2351163328, 0.335752964, 0.1470543295, -0.0369230509, 0.0279232357, -0.0211200882, -0.0040119388, -0.2910863757, -0.0123527879, -0.0471112765, 0.0962779224, 0.1077363119, -0.2222494036, 0.1710375696, 0.1241177842, -0.0654975995, -0.005631851, -0.2618323565, -0.07161396, 0.0502546616, 0.3171564341, -0.0479386635, -0.2048242241, 0.0131162116, -0.1751163006, -0.0341178402, 0.2309506387, -0.1560394764, -0.2949763536, 0.1756309867, -0.0247070938, 0.0081617674, -0.2785775959, 0.1817536205, -0.4565275908, 0.7678371072, -0.0489430688, 0.0298462827, 0.1483294666, -0.0376048014, 0.3596742153, 0.016422065, 0.2523131371, 0.0981854275, -0.2793001831, 0.0397321284, 0.2744545043, 0.1319993138, -0.1555294394, 0.3421449959, -0.0452989265, -0.010428491, 0.1772435308, 0.1695551276, -0.1268129349, 0.1690245569, 0.0345578827, 0.4688955545, 0.0148683731, 0.2946380377, 0.1175011471, 0.010093037, 0.0981882438, -0.2418649942, -0.2369597852, -0.0289267525, 0.4705238044, -0.0926315337, -0.4008590877, 0.2684022784, -0.0243987795, -0.0137887141, 0.2722733319, 0.5937828422, -0.2541590035, 0.0152362185, 0.2565145195, 0.1324544847, -0.1600553691, -0.003718371, -0.1664023101, 0.0108995903, -0.0480647348, -0.2606745958, 0.3093197942, -0.0377327092, 0.3955486417, -0.0325195752, 0.3315051794, -0.0167363696, 0.0469162352, -0.0624641664, 0.0432012528, 0.4161676466, -0.0650724843, -0.0360060968, 0.2363214046, -0.2227837145, -0.0510434695, 0.1127198637, -0.1398515999, -0.2046097666, -0.1627254337, 0.2663307488, -0.0711949244, -0.203376621, -0.0496626534, -0.3503131568, 0.2936306894, -0.3419854641, -0.059664242, -0.1041733772, 0.3260509074, -0.0699322596, 0.1980643272, 0.1620357186, -0.0309998244, -0.2566138506, -0.0580763221, -0.0227422211, -0.0156975519, 0.2671222985, -0.0691751689, 0.2928942442, 0.0069948114, -0.0671879575, 0.3016170561, -0.3634079993, -0.4851002097, 0.0759643018, -0.0397103578, 0.035957966, 0.2842035592, -0.0800511912, 0.2552697062, 0.0652231947, 0.3026783764, 0.190078795, 0.0718901902, -0.1407695413, -0.2025605589, 0.0093414271, -0.001571547, 0.2212698907, 0.334073782, -0.1150455177, -0.0708579272, 0.086341694, 0.0546515509, 0.0711742118, 0.0246128887, 0.260894388, 0.4277401567, 0.1926628053, -0.1258416474, -0.1145480797, -0.1011543721, 0.0480536483, -0.009828873, 0.2681351006, -0.2944582701, -0.0841060653, -0.3610239625, 0.193884626, -0.2637548149, -0.0621223189, 0.2436019629, 0.0911015496, -0.0583874844, -0.0399751589, -0.2093597203, 0.5022643209, -0.0612060912, 0.3174741864, -0.1920443624, 0.1801324934, -0.2967032492, 0.0811512172, -0.1548830122, 0.033550296, 0.1584486663, -0.1607597917, 0.0019735449, 0.0806027278, 0.0995635688, -0.0911887065, -0.4025057256, -0.0693584085, 0.0140240192, -0.040461842, -0.0612958632, 0.0771565735, 0.0371596441, -0.004972273, -0.1816973835, 0.1851634085, -0.1059818044, 0.1643472314, -0.0125464303, 0.0808048919, 0.3824872077, -0.1058042571, -0.1905660331, -0.1865924746, 0.4284558296, 0.044614058, 0.400703758, -0.089771159, 0.1700810492, -0.153591156, 0.137421608, 0.006270336, 0.1750783026, -0.114324443, 0.0300712734, 0.2086067051, 0.2309205979, 0.3923051357, 0.4204880297, 0.2654604018, -0.1815605909, -0.0590885095, -0.1567087471, -0.1053405404, 0.2149129212, 0.1123131439, 0.1805271506, 0.1572756469, -0.0655312985, -0.0514626242, -0.2755739689, -0.3691124618, 0.0449734442, 0.2246840745, -0.3862241507, 0.197142899, -0.3713849485, 0.0378690958, -0.0700483099, -0.4746536314, -0.196326986, -0.2479985505, 0.0187221859, 0.1868582666, 0.0340279713, 0.3932768106, 0.2305351049, 0.1749008745, 0.0847125202, -0.5530105233, -0.3919089735, -0.1822858155, 0.0130748143, 0.1629484743, 0.0899289846, 0.0395144522, 0.2660743892, -0.4861733913, -0.042902302, -0.0474385284, -0.5116285682, 0.0688924268, -0.2954367995, 0.358001858, 0.1606632322, 0.2106068283, 0.0412857682, -0.0698725507, 0.1822586209, -0.1377102882, -0.1190350577, 0.0367961526, 0.1163151637, -0.3229208291, 0.0954670012, -0.3759790361, -0.3106663525, -0.3536979854, 0.0166446716, 0.3028673232, 0.1337805092, 0.0542097539, 0.1005367264, 0.0942065865, 0.2855482101, 0.2112276405, -0.2116113007, 0.049501285, 0.3355379701, -0.3503981233, -0.2486625016, -0.1395149082, 0.0325691886, 0.605050385, -0.2025162876, -0.5017104745, -0.070351921, 0.0724208578, 0.0871893018, -0.1687178612, 0.2250496596, 0.3816601038, 0.221854195, -0.0721165612, -0.1877246499, -0.2443278134, -0.2268708497, 0.0523878261, 0.1715291142, -0.1827577651, 0.3797294497, 0.0422426537, 0.4859942496, 0.0453512333, -0.1519201994, 0.3058897555, -0.0000821069, 0.2879121304, -0.1440900117, -0.4906705618, -0.2398591787, -0.073172316, -0.0590171888, -0.0785194933, -0.251726836, -0.0846906453, -0.3152534068, 0.1573420316, -0.3020946383, 0.018848123, 0.0278134234, -0.0167115796, 0.2282641977, 0.2743487656, 0.0769392923, -0.2599675655, 0.0290763546, -0.2330682427, 0.3022710681, -0.1653577536, -0.2033086717, -0.393666029, -0.0700829849, -0.3505122066, 0.5201406479, -0.1417502761, 0.0975712836, -0.040482074, 0.066048339, 0.01409462, -0.052057948, 0.2304414064, 0.1007827893, -0.1274980754, 0.2202352136, -0.0403390266, -0.4240364134, 0.0012902265, -0.3186603785, 0.2164902687, 0.3229163885, 0.0207707696, -0.3441846967, -0.1582396328, 0.4272226691, -0.0325245373, -0.1108949035, -0.1570966244, -0.4874000549, -0.4498811364, -0.4555694163, 0.1350949258, 0.2208063006, 0.3350026309, 0.1066677943, 0.0339355245, -0.2213433683, -0.139997974, 0.1577839851, 0.2872525454, 0.0557299741, -0.1664206684, -0.011939358, -0.2326803356, 0.0704903007, 0.5179842114, 0.5934937596, -0.2430634797, -0.2944009304, -0.0398992188, 0.1407307088, 0.1506175399, 0.2000865787, -0.0697526932, -0.0683979839, 0.1763928086, 0.1869591027, 0.1995501518, 0.0210899599, 0.23314026, 0.2988471687, -0.4171695709, -0.2365463227, 0.3339708447, -0.0664699003, -0.0779234841, 0.045690991, 0.1877263635, -0.2108778954, 0.3500016928, 0.2081944793, 0.8249516487, 0.2740315497, 0.021773586, 0.3340115845, 0.0530164987, 0.4772346318, -0.5256401896, 0.2779949009, -0.1998993158, -0.1485441327, -0.1056682467, -0.1200078949, 0.2859657705, 0.1885987222, -0.375082463, 0.1634072065, 0.0837130994, -0.0050590131, 0.1467693299, 0.2155250162, -0.0813946053, -0.1755890101, -0.4749569595, 0.198226437, -0.1161043867, 0.4056152105, -0.3695657849, 0.1758720577, -0.2364398092, -0.4864913821, -0.0219651628, -0.0572793633, -0.5641258359, 0.4834366143, 0.1611067802, -0.1438444853, -0.1929983348, 0.1012995765, -0.0321187526, 0.1950654984, -0.062342491, 0.1826947778, 0.0070191054, -0.2802789509, 0.0761467367, -0.055438675, 0.3725720346, -0.1888173819, -0.2949993312, 0.0676439255, -0.0227391031, -0.5746198893, 0.3706075549, 0.3127175868, 0.2594403327, -0.4141755402, -0.1008988321, 0.0471216999, -0.0022063537, -0.3120408952, 0.1713686436, 0.0554380901, -0.3020749986, 0.323297441, 0.1941832155, -0.2698325217, -0.2043769658, 0.3248438537, 0.0698584542, -0.370123595, 0.2533122003, -0.0411593989, -0.1644686162, -0.2992781699, 0.2554464936, -0.2276527137, -0.451157093, -0.2315697372, -0.0778469816, -0.3177290559, 0.003283347, 0.2383664101, 0.4500198066, 0.2553205788, -0.2294580787, -0.4196708798, -0.270702064, 0.2733838558, 0.094782114, 0.0822881684, 0.2173053771, 0.2445056885, -0.0785725191, 0.2283004522, -0.3474649191, 0.0849699154, -0.2437528372, 0.0401080623, 0.3991332948, -0.1664494574, 0.2360538393, -0.1057447046, 0.2053281665, 0.0557870343, -0.1856923699, -0.3034193516, -0.0992537886, 0.1484923512, 0.1175192147, -0.0955811739, -0.3456858695, -0.012256965, -0.0652472824, -0.1181234196, -0.0333212167, 0.1138168871, 0.1033727974, 0.0561168604, 0.1782404184, 0.0713145584, -0.1407315433, -0.0557088442, -0.0220888127, 0.0108476374, 0.0346566141, 0.1881541759, 0.1897949725, 0.0804275051, 0.1335049421, 0.0586599, 0.0972505733, 0.0819602162, 0.3060843945, -0.4266725779, 0.0856694728, -0.0395678096, 0.2348963469, 0.4736513197, -0.2496418059, 0.025428107, 0.2098951042, 0.2950935066, -0.2877690494, -0.251195997, 0.2391693294, 0.0821405202, 0.1769164801, 0.4968072474, -0.1200477332, 0.0315552652, 0.6059990525, 0.437158823, 0.2822387218, -0.254507035, 0.3256478012, 0.0466721877, -0.3255583942, 0.1784092337, 0.4047519267, 0.2448444664, 0.2808089554, 0.3693656623, -0.1588609964, 0.0974026546, -0.2743860781, 0.0932687744, 0.0654430017, -0.0686974972, -0.0210657641, -0.1939718723, -0.1426850259, 0.1229707971, 0.1009000763, -0.1209658384, -0.435210675, -0.0772820786, -0.5616144538, 0.1916722506, -0.3719940782, 0.0624890924, 0.0843581855, -0.0817593783, 0.0194741488, -0.1926516593, 0.1767230034, -0.1335428059, 0.1164516136, 0.1317354441, -0.2246079743, -0.2322927266, -0.15771842, 0.1555505097, 0.0218298156, -0.2483112067, 0.2015416175, 0.0959184766, 0.0067358925, -0.3204151988, 0.4864838719, 0.6182714701, 0.2359368652, -0.0477551259, 0.2139195055, -0.1882870197, -0.1154772341, -0.21221295, 0.2470015436, 0.1821264178, 0.2646687627, 0.265759021, 0.2384691685, -0.324133575, 0.0736602396, 0.1151357964, -0.1132102236, -0.3249032497, 0.5744448304, -0.0970284492, -0.2325419933, -0.2296977937, 0.0957970172, -0.6688085794, 0.0016218923, 0.1012999117, -0.1869391501, 0.1108119339, -0.097238794, 0.0933166817, 0.0038401322, 0.4608186781, 0.180932492, 0.2653103471, -0.4273065031, -0.1796087772, -0.4527228475, 0.129712075, -0.1776193529, -0.0388172567, -0.0259649996, -0.0256293006, 0.1027621403, 0.3866543174, 0.1732467115, -0.2431422919, -0.1525466442, -0.0350415409, -0.3035101593, 0.0948396847, 0.1827399731, 0.0200398136, 0.1293052882, -0.3258501887, -0.0112639843, -0.1497566998, 0.1597599834, -0.2867316604, 0.0712298304, 0.3038262725, 0.0413157195, 0.5474320054, 0.1641434729, 0.6859192848, -0.0505449735, -0.0715183914, 0.0780516937, -0.2429568172, -0.2286791801, 0.4720576108, 0.2581991851, 0.3122891188, -0.0096704699, -0.5907734036, -0.3078118563, 0.2258808613, 0.2094399184, -0.0729818344, -0.0988013148, 0.0807392374, -0.1488000304, 0.1402383, 0.0258283913, 0.2333547026, -0.0289727636, 0.2142147422, -0.4133351743, -0.3637703359, 0.4925272167, -0.2699373066, -0.24975577, -0.0548798591, 0.2195810676, 0.0707299188, -0.1204774603, -0.4549995959, -0.0122006508, 0.2876493633, -0.1110278741, -0.4158360362, 0.3226323128, 0.0699551329, -0.053013321, -0.0906257629, 0.2138214558, -0.0570859909, -0.3271856904, -0.0836623833, -0.2636033595 ]
https://github.com/huggingface/datasets/issues/3554
ImportError: cannot import name 'is_valid_waiter_error'
Hey @danielbellhv, This issue might be related to Studio probably not having an up to date `botocore` and `boto3` version. I ran into this as well a while back. My workaround was ```python # using older dataset due to incompatibility of sagemaker notebook & aws-cli with > s3fs and fsspec to >= 2021.10 !pip install "datasets==1.13" --upgrade ``` In `datasets` we use the latest `s3fs` and `fsspec` but aws-cli and notebook is not supporting this. You could also update the `aws-cli` and associated packages to get the latest `datasets` version
Based on [SO post](https://stackoverflow.com/q/70606147/17840900). I'm following along to this [Notebook][1], cell "**Loading the dataset**". Kernel: `conda_pytorch_p36`. I run: ``` ! pip install datasets transformers optimum[intel] ``` Output: ``` Requirement already satisfied: datasets in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (1.17.0) Requirement already satisfied: transformers in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (4.15.0) Requirement already satisfied: optimum[intel] in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (0.1.3) Requirement already satisfied: numpy>=1.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.19.5) Requirement already satisfied: dill in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.3.4) Requirement already satisfied: tqdm>=4.62.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.62.3) Requirement already satisfied: huggingface-hub<1.0.0,>=0.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.2.1) Requirement already satisfied: packaging in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (21.3) Requirement already satisfied: pyarrow!=4.0.0,>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (6.0.1) Requirement already satisfied: pandas in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.1.5) Requirement already satisfied: xxhash in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.0.2) Requirement already satisfied: aiohttp in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (3.8.1) Requirement already satisfied: fsspec[http]>=2021.05.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2021.11.1) Requirement already satisfied: dataclasses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.8) Requirement already satisfied: multiprocess in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: importlib-metadata in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.5.0) Requirement already satisfied: requests>=2.19.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.25.1) Requirement already satisfied: pyyaml>=5.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (5.4.1) Requirement already satisfied: regex!=2019.12.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (2021.4.4) Requirement already satisfied: tokenizers<0.11,>=0.10.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.10.3) Requirement already satisfied: filelock in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (3.0.12) Requirement already satisfied: sacremoses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.0.46) Requirement already satisfied: torch>=1.9 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.10.1) Requirement already satisfied: sympy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.8) Requirement already satisfied: coloredlogs in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (15.0.1) Requirement already satisfied: pycocotools in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (2.0.3) Requirement already satisfied: neural-compressor>=1.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.9) Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets) (3.10.0.0) Requirement already satisfied: sigopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.2.0) Requirement already satisfied: opencv-python in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (4.5.1.48) Requirement already satisfied: cryptography in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.4.7) Requirement already satisfied: py-cpuinfo in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.0.0) Requirement already satisfied: gevent in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (21.1.2) Requirement already satisfied: schema in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: psutil in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.8.0) Requirement already satisfied: gevent-websocket in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.10.1) Requirement already satisfied: hyperopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.2.7) Requirement already satisfied: Flask in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: prettytable in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.5.0) Requirement already satisfied: Flask-SocketIO in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.1.1) Requirement already satisfied: scikit-learn in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.24.2) Requirement already satisfied: Pillow in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.4.0) Requirement already satisfied: Flask-Cors in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.0.10) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: chardet<5,>=3.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: certifi>=2017.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: yarl<2.0,>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.6.3) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (2.0.9) Requirement already satisfied: attrs>=17.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (21.2.0) Requirement already satisfied: asynctest==0.13.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (0.13.0) Requirement already satisfied: idna-ssl>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.1.0) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (4.0.1) Requirement already satisfied: aiosignal>=1.1.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: frozenlist>=1.1.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: multidict<7.0,>=4.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (5.1.0) Requirement already satisfied: humanfriendly>=9.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from coloredlogs->optimum[intel]) (10.0) Requirement already satisfied: zipp>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: python-dateutil>=2.7.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: matplotlib>=2.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (3.3.4) Requirement already satisfied: cython>=0.27.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (0.29.23) Requirement already satisfied: setuptools>=18.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (52.0.0.post20210125) Requirement already satisfied: joblib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.0.1) Requirement already satisfied: click in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (8.0.1) Requirement already satisfied: six in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.16.0) Requirement already satisfied: mpmath>=0.19 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sympy->optimum[intel]) (1.2.1) Requirement already satisfied: kiwisolver>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (1.3.1) Requirement already satisfied: cycler>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/cycler-0.10.0-py3.6.egg (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (0.10.0) Requirement already satisfied: cffi>=1.12 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cryptography->neural-compressor>=1.7->optimum[intel]) (1.14.5) Requirement already satisfied: Werkzeug>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.2) Requirement already satisfied: Jinja2>=3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (3.0.1) Requirement already satisfied: itsdangerous>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: python-socketio>=5.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (5.5.0) Requirement already satisfied: zope.event in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (4.5.0) Requirement already satisfied: greenlet<2.0,>=0.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (1.1.0) Requirement already satisfied: zope.interface in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: future in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.18.2) Requirement already satisfied: cloudpickle in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.6.0) Requirement already satisfied: networkx>=2.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (2.5) Requirement already satisfied: scipy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.5.3) Requirement already satisfied: py4j in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.10.7) Requirement already satisfied: wcwidth in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from prettytable->neural-compressor>=1.7->optimum[intel]) (0.2.5) Requirement already satisfied: contextlib2>=0.5.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from schema->neural-compressor>=1.7->optimum[intel]) (0.6.0.post1) Requirement already satisfied: threadpoolctl>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from scikit-learn->neural-compressor>=1.7->optimum[intel]) (2.1.0) Requirement already satisfied: pyOpenSSL>=20.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (20.0.1) Requirement already satisfied: pypng>=0.0.20 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.0.21) Requirement already satisfied: kubernetes<13.0.0,>=12.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (12.0.1) Requirement already satisfied: rsa<5.0.0,>=4.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.7.2) Requirement already satisfied: boto3<2.0.0,==1.16.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.16.34) Requirement already satisfied: Pint<0.17.0,>=0.16.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.16.1) Requirement already satisfied: GitPython>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.18) Requirement already satisfied: backoff<2.0.0,>=1.10.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.11.1) Requirement already satisfied: ipython>=5.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (7.16.1) Requirement already satisfied: docker<5.0.0,>=4.4.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.4.4) Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.10.0) Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.3.7) Requirement already satisfied: botocore<1.20.0,>=1.19.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (1.19.63) Requirement already satisfied: pycparser in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cffi>=1.12->cryptography->neural-compressor>=1.7->optimum[intel]) (2.20) Requirement already satisfied: websocket-client>=0.32.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from docker<5.0.0,>=4.4.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.58.0) Requirement already satisfied: gitdb<5,>=4.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.0.9) Requirement already satisfied: traitlets>=4.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.3.3) Requirement already satisfied: jedi>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.17.2) Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (3.0.19) Requirement already satisfied: backcall in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: pygments in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (2.9.0) Requirement already satisfied: pexpect in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.8.0) Requirement already satisfied: decorator in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.9) Requirement already satisfied: pickleshare in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: MarkupSafe>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Jinja2>=3.0->Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: google-auth>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.30.2) Requirement already satisfied: requests-oauthlib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.3.0) Requirement already satisfied: importlib-resources in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Pint<0.17.0,>=0.16.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: python-engineio>=4.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (4.3.0) Requirement already satisfied: bidict>=0.21.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (0.21.4) Requirement already satisfied: pyasn1>=0.1.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from rsa<5.0.0,>=4.7->sigopt->neural-compressor>=1.7->optimum[intel]) (0.4.8) Requirement already satisfied: smmap<6,>=3.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gitdb<5,>=4.0.1->GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.0) Requirement already satisfied: pyasn1-modules>=0.2.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.8) Requirement already satisfied: cachetools<5.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (4.2.2) Requirement already satisfied: parso<0.8.0,>=0.7.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from jedi>=0.10->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.1) Requirement already satisfied: ipython-genutils in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from traitlets>=4.2->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: ptyprocess>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pexpect->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.0) Requirement already satisfied: oauthlib>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests-oauthlib->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.1) ``` --- **Cell:** ```python from datasets import load_dataset, load_metric ``` OR ```python import datasets ``` **Traceback:** ``` --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-7-34fb7ba3338d> in <module> ----> 1 from datasets import load_dataset, load_metric ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/__init__.py in <module> 32 ) 33 ---> 34 from .arrow_dataset import Dataset, concatenate_datasets 35 from .arrow_reader import ArrowReader, ReadInstruction 36 from .arrow_writer import ArrowWriter ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_dataset.py in <module> 59 from . import config, utils 60 from .arrow_reader import ArrowReader ---> 61 from .arrow_writer import ArrowWriter, OptimizedTypedSequence 62 from .features import ClassLabel, Features, FeatureType, Sequence, Value, _ArrayXD, pandas_types_mapper 63 from .filesystems import extract_path_from_uri, is_remote_filesystem ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_writer.py in <module> 26 27 from . import config, utils ---> 28 from .features import ( 29 Features, 30 ImageExtensionType, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/__init__.py in <module> 1 # flake8: noqa ----> 2 from .audio import Audio 3 from .features import * 4 from .features import ( 5 _ArrayXD, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/audio.py in <module> 5 import pyarrow as pa 6 ----> 7 from ..utils.streaming_download_manager import xopen 8 9 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/utils/streaming_download_manager.py in <module> 16 17 from .. import config ---> 18 from ..filesystems import COMPRESSION_FILESYSTEMS 19 from .download_manager import DownloadConfig, map_nested 20 from .file_utils import ( ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/__init__.py in <module> 11 12 if _has_s3fs: ---> 13 from .s3filesystem import S3FileSystem # noqa: F401 14 15 COMPRESSION_FILESYSTEMS: List[compression.BaseCompressedFileFileSystem] = [ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/s3filesystem.py in <module> ----> 1 import s3fs 2 3 4 class S3FileSystem(s3fs.S3FileSystem): 5 """ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/__init__.py in <module> ----> 1 from .core import S3FileSystem, S3File 2 from .mapping import S3Map 3 4 from ._version import get_versions 5 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/core.py in <module> 12 from fsspec.asyn import AsyncFileSystem, sync, sync_wrapper 13 ---> 14 import aiobotocore 15 import botocore 16 import aiobotocore.session ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/__init__.py in <module> ----> 1 from .session import get_session, AioSession 2 3 __all__ = ['get_session', 'AioSession'] 4 __version__ = '1.3.0' ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/session.py in <module> 4 from botocore import retryhandler, translate 5 from botocore.exceptions import PartialCredentialsError ----> 6 from .client import AioClientCreator, AioBaseClient 7 from .hooks import AioHierarchicalEmitter 8 from .parsers import AioResponseParserFactory ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/client.py in <module> 11 from .args import AioClientArgsCreator 12 from .utils import AioS3RegionRedirector ---> 13 from . import waiter 14 15 history_recorder = get_global_history_recorder() ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/waiter.py in <module> 4 from botocore.exceptions import ClientError 5 from botocore.waiter import WaiterModel # noqa: F401, lgtm[py/unused-import] ----> 6 from botocore.waiter import Waiter, xform_name, logger, WaiterError, \ 7 NormalizedOperationMethod as _NormalizedOperationMethod, is_valid_waiter_error 8 from botocore.docs.docstring import WaiterDocstring ImportError: cannot import name 'is_valid_waiter_error' ``` Please let me know if there's anything else I can add to post. [1]: https://github.com/huggingface/notebooks/blob/master/examples/text_classification_quantization_inc.ipynb
90
ImportError: cannot import name 'is_valid_waiter_error' Based on [SO post](https://stackoverflow.com/q/70606147/17840900). I'm following along to this [Notebook][1], cell "**Loading the dataset**". Kernel: `conda_pytorch_p36`. I run: ``` ! pip install datasets transformers optimum[intel] ``` Output: ``` Requirement already satisfied: datasets in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (1.17.0) Requirement already satisfied: transformers in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (4.15.0) Requirement already satisfied: optimum[intel] in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (0.1.3) Requirement already satisfied: numpy>=1.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.19.5) Requirement already satisfied: dill in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.3.4) Requirement already satisfied: tqdm>=4.62.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.62.3) Requirement already satisfied: huggingface-hub<1.0.0,>=0.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.2.1) Requirement already satisfied: packaging in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (21.3) Requirement already satisfied: pyarrow!=4.0.0,>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (6.0.1) Requirement already satisfied: pandas in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.1.5) Requirement already satisfied: xxhash in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.0.2) Requirement already satisfied: aiohttp in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (3.8.1) Requirement already satisfied: fsspec[http]>=2021.05.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2021.11.1) Requirement already satisfied: dataclasses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.8) Requirement already satisfied: multiprocess in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: importlib-metadata in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.5.0) Requirement already satisfied: requests>=2.19.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.25.1) Requirement already satisfied: pyyaml>=5.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (5.4.1) Requirement already satisfied: regex!=2019.12.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (2021.4.4) Requirement already satisfied: tokenizers<0.11,>=0.10.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.10.3) Requirement already satisfied: filelock in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (3.0.12) Requirement already satisfied: sacremoses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.0.46) Requirement already satisfied: torch>=1.9 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.10.1) Requirement already satisfied: sympy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.8) Requirement already satisfied: coloredlogs in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (15.0.1) Requirement already satisfied: pycocotools in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (2.0.3) Requirement already satisfied: neural-compressor>=1.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.9) Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets) (3.10.0.0) Requirement already satisfied: sigopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.2.0) Requirement already satisfied: opencv-python in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (4.5.1.48) Requirement already satisfied: cryptography in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.4.7) Requirement already satisfied: py-cpuinfo in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.0.0) Requirement already satisfied: gevent in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (21.1.2) Requirement already satisfied: schema in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: psutil in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.8.0) Requirement already satisfied: gevent-websocket in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.10.1) Requirement already satisfied: hyperopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.2.7) Requirement already satisfied: Flask in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: prettytable in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.5.0) Requirement already satisfied: Flask-SocketIO in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.1.1) Requirement already satisfied: scikit-learn in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.24.2) Requirement already satisfied: Pillow in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.4.0) Requirement already satisfied: Flask-Cors in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.0.10) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: chardet<5,>=3.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: certifi>=2017.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: yarl<2.0,>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.6.3) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (2.0.9) Requirement already satisfied: attrs>=17.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (21.2.0) Requirement already satisfied: asynctest==0.13.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (0.13.0) Requirement already satisfied: idna-ssl>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.1.0) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (4.0.1) Requirement already satisfied: aiosignal>=1.1.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: frozenlist>=1.1.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: multidict<7.0,>=4.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (5.1.0) Requirement already satisfied: humanfriendly>=9.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from coloredlogs->optimum[intel]) (10.0) Requirement already satisfied: zipp>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: python-dateutil>=2.7.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: matplotlib>=2.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (3.3.4) Requirement already satisfied: cython>=0.27.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (0.29.23) Requirement already satisfied: setuptools>=18.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (52.0.0.post20210125) Requirement already satisfied: joblib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.0.1) Requirement already satisfied: click in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (8.0.1) Requirement already satisfied: six in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.16.0) Requirement already satisfied: mpmath>=0.19 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sympy->optimum[intel]) (1.2.1) Requirement already satisfied: kiwisolver>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (1.3.1) Requirement already satisfied: cycler>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/cycler-0.10.0-py3.6.egg (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (0.10.0) Requirement already satisfied: cffi>=1.12 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cryptography->neural-compressor>=1.7->optimum[intel]) (1.14.5) Requirement already satisfied: Werkzeug>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.2) Requirement already satisfied: Jinja2>=3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (3.0.1) Requirement already satisfied: itsdangerous>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: python-socketio>=5.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (5.5.0) Requirement already satisfied: zope.event in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (4.5.0) Requirement already satisfied: greenlet<2.0,>=0.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (1.1.0) Requirement already satisfied: zope.interface in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: future in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.18.2) Requirement already satisfied: cloudpickle in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.6.0) Requirement already satisfied: networkx>=2.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (2.5) Requirement already satisfied: scipy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.5.3) Requirement already satisfied: py4j in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.10.7) Requirement already satisfied: wcwidth in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from prettytable->neural-compressor>=1.7->optimum[intel]) (0.2.5) Requirement already satisfied: contextlib2>=0.5.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from schema->neural-compressor>=1.7->optimum[intel]) (0.6.0.post1) Requirement already satisfied: threadpoolctl>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from scikit-learn->neural-compressor>=1.7->optimum[intel]) (2.1.0) Requirement already satisfied: pyOpenSSL>=20.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (20.0.1) Requirement already satisfied: pypng>=0.0.20 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.0.21) Requirement already satisfied: kubernetes<13.0.0,>=12.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (12.0.1) Requirement already satisfied: rsa<5.0.0,>=4.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.7.2) Requirement already satisfied: boto3<2.0.0,==1.16.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.16.34) Requirement already satisfied: Pint<0.17.0,>=0.16.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.16.1) Requirement already satisfied: GitPython>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.18) Requirement already satisfied: backoff<2.0.0,>=1.10.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.11.1) Requirement already satisfied: ipython>=5.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (7.16.1) Requirement already satisfied: docker<5.0.0,>=4.4.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.4.4) Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.10.0) Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.3.7) Requirement already satisfied: botocore<1.20.0,>=1.19.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (1.19.63) Requirement already satisfied: pycparser in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cffi>=1.12->cryptography->neural-compressor>=1.7->optimum[intel]) (2.20) Requirement already satisfied: websocket-client>=0.32.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from docker<5.0.0,>=4.4.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.58.0) Requirement already satisfied: gitdb<5,>=4.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.0.9) Requirement already satisfied: traitlets>=4.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.3.3) Requirement already satisfied: jedi>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.17.2) Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (3.0.19) Requirement already satisfied: backcall in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: pygments in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (2.9.0) Requirement already satisfied: pexpect in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.8.0) Requirement already satisfied: decorator in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.9) Requirement already satisfied: pickleshare in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: MarkupSafe>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Jinja2>=3.0->Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: google-auth>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.30.2) Requirement already satisfied: requests-oauthlib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.3.0) Requirement already satisfied: importlib-resources in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Pint<0.17.0,>=0.16.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: python-engineio>=4.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (4.3.0) Requirement already satisfied: bidict>=0.21.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (0.21.4) Requirement already satisfied: pyasn1>=0.1.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from rsa<5.0.0,>=4.7->sigopt->neural-compressor>=1.7->optimum[intel]) (0.4.8) Requirement already satisfied: smmap<6,>=3.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gitdb<5,>=4.0.1->GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.0) Requirement already satisfied: pyasn1-modules>=0.2.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.8) Requirement already satisfied: cachetools<5.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (4.2.2) Requirement already satisfied: parso<0.8.0,>=0.7.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from jedi>=0.10->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.1) Requirement already satisfied: ipython-genutils in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from traitlets>=4.2->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: ptyprocess>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pexpect->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.0) Requirement already satisfied: oauthlib>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests-oauthlib->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.1) ``` --- **Cell:** ```python from datasets import load_dataset, load_metric ``` OR ```python import datasets ``` **Traceback:** ``` --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-7-34fb7ba3338d> in <module> ----> 1 from datasets import load_dataset, load_metric ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/__init__.py in <module> 32 ) 33 ---> 34 from .arrow_dataset import Dataset, concatenate_datasets 35 from .arrow_reader import ArrowReader, ReadInstruction 36 from .arrow_writer import ArrowWriter ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_dataset.py in <module> 59 from . import config, utils 60 from .arrow_reader import ArrowReader ---> 61 from .arrow_writer import ArrowWriter, OptimizedTypedSequence 62 from .features import ClassLabel, Features, FeatureType, Sequence, Value, _ArrayXD, pandas_types_mapper 63 from .filesystems import extract_path_from_uri, is_remote_filesystem ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_writer.py in <module> 26 27 from . import config, utils ---> 28 from .features import ( 29 Features, 30 ImageExtensionType, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/__init__.py in <module> 1 # flake8: noqa ----> 2 from .audio import Audio 3 from .features import * 4 from .features import ( 5 _ArrayXD, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/audio.py in <module> 5 import pyarrow as pa 6 ----> 7 from ..utils.streaming_download_manager import xopen 8 9 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/utils/streaming_download_manager.py in <module> 16 17 from .. import config ---> 18 from ..filesystems import COMPRESSION_FILESYSTEMS 19 from .download_manager import DownloadConfig, map_nested 20 from .file_utils import ( ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/__init__.py in <module> 11 12 if _has_s3fs: ---> 13 from .s3filesystem import S3FileSystem # noqa: F401 14 15 COMPRESSION_FILESYSTEMS: List[compression.BaseCompressedFileFileSystem] = [ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/s3filesystem.py in <module> ----> 1 import s3fs 2 3 4 class S3FileSystem(s3fs.S3FileSystem): 5 """ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/__init__.py in <module> ----> 1 from .core import S3FileSystem, S3File 2 from .mapping import S3Map 3 4 from ._version import get_versions 5 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/core.py in <module> 12 from fsspec.asyn import AsyncFileSystem, sync, sync_wrapper 13 ---> 14 import aiobotocore 15 import botocore 16 import aiobotocore.session ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/__init__.py in <module> ----> 1 from .session import get_session, AioSession 2 3 __all__ = ['get_session', 'AioSession'] 4 __version__ = '1.3.0' ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/session.py in <module> 4 from botocore import retryhandler, translate 5 from botocore.exceptions import PartialCredentialsError ----> 6 from .client import AioClientCreator, AioBaseClient 7 from .hooks import AioHierarchicalEmitter 8 from .parsers import AioResponseParserFactory ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/client.py in <module> 11 from .args import AioClientArgsCreator 12 from .utils import AioS3RegionRedirector ---> 13 from . import waiter 14 15 history_recorder = get_global_history_recorder() ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/waiter.py in <module> 4 from botocore.exceptions import ClientError 5 from botocore.waiter import WaiterModel # noqa: F401, lgtm[py/unused-import] ----> 6 from botocore.waiter import Waiter, xform_name, logger, WaiterError, \ 7 NormalizedOperationMethod as _NormalizedOperationMethod, is_valid_waiter_error 8 from botocore.docs.docstring import WaiterDocstring ImportError: cannot import name 'is_valid_waiter_error' ``` Please let me know if there's anything else I can add to post. [1]: https://github.com/huggingface/notebooks/blob/master/examples/text_classification_quantization_inc.ipynb Hey @danielbellhv, This issue might be related to Studio probably not having an up to date `botocore` and `boto3` version. I ran into this as well a while back. My workaround was ```python # using older dataset due to incompatibility of sagemaker notebook & aws-cli with > s3fs and fsspec to >= 2021.10 !pip install "datasets==1.13" --upgrade ``` In `datasets` we use the latest `s3fs` and `fsspec` but aws-cli and notebook is not supporting this. You could also update the `aws-cli` and associated packages to get the latest `datasets` version
[ -0.147882849, -0.1469279379, -0.2213934511, 0.1788341254, 0.1569535136, -0.1981433779, 0.3735085726, 0.1772010922, -0.0016112427, 0.0087774508, -0.1001608148, 0.3891834319, 0.0245094839, 0.115436241, -0.0132378004, -0.0450459421, 0.0596403442, 0.2368056029, -0.1831156015, -0.0913481265, -0.0493095703, 0.1821940988, -0.0914355144, 0.0991098583, -0.5285232067, 0.0171161294, 0.3036387563, -0.1104498208, -0.356695056, -0.3713035882, 0.2825567424, 0.0187201183, -0.101386331, 0.4599294066, -0.0001122417, 0.230179444, 0.2476487756, -0.0499860533, -0.3345485926, -0.2134087086, -0.0398932472, -0.2608369887, 0.1104154289, -0.3822897673, -0.0143551892, -0.1368087083, -0.1702281833, -0.0528266467, 0.4874278903, 0.4079868495, 0.2351163328, 0.335752964, 0.1470543295, -0.0369230509, 0.0279232357, -0.0211200882, -0.0040119388, -0.2910863757, -0.0123527879, -0.0471112765, 0.0962779224, 0.1077363119, -0.2222494036, 0.1710375696, 0.1241177842, -0.0654975995, -0.005631851, -0.2618323565, -0.07161396, 0.0502546616, 0.3171564341, -0.0479386635, -0.2048242241, 0.0131162116, -0.1751163006, -0.0341178402, 0.2309506387, -0.1560394764, -0.2949763536, 0.1756309867, -0.0247070938, 0.0081617674, -0.2785775959, 0.1817536205, -0.4565275908, 0.7678371072, -0.0489430688, 0.0298462827, 0.1483294666, -0.0376048014, 0.3596742153, 0.016422065, 0.2523131371, 0.0981854275, -0.2793001831, 0.0397321284, 0.2744545043, 0.1319993138, -0.1555294394, 0.3421449959, -0.0452989265, -0.010428491, 0.1772435308, 0.1695551276, -0.1268129349, 0.1690245569, 0.0345578827, 0.4688955545, 0.0148683731, 0.2946380377, 0.1175011471, 0.010093037, 0.0981882438, -0.2418649942, -0.2369597852, -0.0289267525, 0.4705238044, -0.0926315337, -0.4008590877, 0.2684022784, -0.0243987795, -0.0137887141, 0.2722733319, 0.5937828422, -0.2541590035, 0.0152362185, 0.2565145195, 0.1324544847, -0.1600553691, -0.003718371, -0.1664023101, 0.0108995903, -0.0480647348, -0.2606745958, 0.3093197942, -0.0377327092, 0.3955486417, -0.0325195752, 0.3315051794, -0.0167363696, 0.0469162352, -0.0624641664, 0.0432012528, 0.4161676466, -0.0650724843, -0.0360060968, 0.2363214046, -0.2227837145, -0.0510434695, 0.1127198637, -0.1398515999, -0.2046097666, -0.1627254337, 0.2663307488, -0.0711949244, -0.203376621, -0.0496626534, -0.3503131568, 0.2936306894, -0.3419854641, -0.059664242, -0.1041733772, 0.3260509074, -0.0699322596, 0.1980643272, 0.1620357186, -0.0309998244, -0.2566138506, -0.0580763221, -0.0227422211, -0.0156975519, 0.2671222985, -0.0691751689, 0.2928942442, 0.0069948114, -0.0671879575, 0.3016170561, -0.3634079993, -0.4851002097, 0.0759643018, -0.0397103578, 0.035957966, 0.2842035592, -0.0800511912, 0.2552697062, 0.0652231947, 0.3026783764, 0.190078795, 0.0718901902, -0.1407695413, -0.2025605589, 0.0093414271, -0.001571547, 0.2212698907, 0.334073782, -0.1150455177, -0.0708579272, 0.086341694, 0.0546515509, 0.0711742118, 0.0246128887, 0.260894388, 0.4277401567, 0.1926628053, -0.1258416474, -0.1145480797, -0.1011543721, 0.0480536483, -0.009828873, 0.2681351006, -0.2944582701, -0.0841060653, -0.3610239625, 0.193884626, -0.2637548149, -0.0621223189, 0.2436019629, 0.0911015496, -0.0583874844, -0.0399751589, -0.2093597203, 0.5022643209, -0.0612060912, 0.3174741864, -0.1920443624, 0.1801324934, -0.2967032492, 0.0811512172, -0.1548830122, 0.033550296, 0.1584486663, -0.1607597917, 0.0019735449, 0.0806027278, 0.0995635688, -0.0911887065, -0.4025057256, -0.0693584085, 0.0140240192, -0.040461842, -0.0612958632, 0.0771565735, 0.0371596441, -0.004972273, -0.1816973835, 0.1851634085, -0.1059818044, 0.1643472314, -0.0125464303, 0.0808048919, 0.3824872077, -0.1058042571, -0.1905660331, -0.1865924746, 0.4284558296, 0.044614058, 0.400703758, -0.089771159, 0.1700810492, -0.153591156, 0.137421608, 0.006270336, 0.1750783026, -0.114324443, 0.0300712734, 0.2086067051, 0.2309205979, 0.3923051357, 0.4204880297, 0.2654604018, -0.1815605909, -0.0590885095, -0.1567087471, -0.1053405404, 0.2149129212, 0.1123131439, 0.1805271506, 0.1572756469, -0.0655312985, -0.0514626242, -0.2755739689, -0.3691124618, 0.0449734442, 0.2246840745, -0.3862241507, 0.197142899, -0.3713849485, 0.0378690958, -0.0700483099, -0.4746536314, -0.196326986, -0.2479985505, 0.0187221859, 0.1868582666, 0.0340279713, 0.3932768106, 0.2305351049, 0.1749008745, 0.0847125202, -0.5530105233, -0.3919089735, -0.1822858155, 0.0130748143, 0.1629484743, 0.0899289846, 0.0395144522, 0.2660743892, -0.4861733913, -0.042902302, -0.0474385284, -0.5116285682, 0.0688924268, -0.2954367995, 0.358001858, 0.1606632322, 0.2106068283, 0.0412857682, -0.0698725507, 0.1822586209, -0.1377102882, -0.1190350577, 0.0367961526, 0.1163151637, -0.3229208291, 0.0954670012, -0.3759790361, -0.3106663525, -0.3536979854, 0.0166446716, 0.3028673232, 0.1337805092, 0.0542097539, 0.1005367264, 0.0942065865, 0.2855482101, 0.2112276405, -0.2116113007, 0.049501285, 0.3355379701, -0.3503981233, -0.2486625016, -0.1395149082, 0.0325691886, 0.605050385, -0.2025162876, -0.5017104745, -0.070351921, 0.0724208578, 0.0871893018, -0.1687178612, 0.2250496596, 0.3816601038, 0.221854195, -0.0721165612, -0.1877246499, -0.2443278134, -0.2268708497, 0.0523878261, 0.1715291142, -0.1827577651, 0.3797294497, 0.0422426537, 0.4859942496, 0.0453512333, -0.1519201994, 0.3058897555, -0.0000821069, 0.2879121304, -0.1440900117, -0.4906705618, -0.2398591787, -0.073172316, -0.0590171888, -0.0785194933, -0.251726836, -0.0846906453, -0.3152534068, 0.1573420316, -0.3020946383, 0.018848123, 0.0278134234, -0.0167115796, 0.2282641977, 0.2743487656, 0.0769392923, -0.2599675655, 0.0290763546, -0.2330682427, 0.3022710681, -0.1653577536, -0.2033086717, -0.393666029, -0.0700829849, -0.3505122066, 0.5201406479, -0.1417502761, 0.0975712836, -0.040482074, 0.066048339, 0.01409462, -0.052057948, 0.2304414064, 0.1007827893, -0.1274980754, 0.2202352136, -0.0403390266, -0.4240364134, 0.0012902265, -0.3186603785, 0.2164902687, 0.3229163885, 0.0207707696, -0.3441846967, -0.1582396328, 0.4272226691, -0.0325245373, -0.1108949035, -0.1570966244, -0.4874000549, -0.4498811364, -0.4555694163, 0.1350949258, 0.2208063006, 0.3350026309, 0.1066677943, 0.0339355245, -0.2213433683, -0.139997974, 0.1577839851, 0.2872525454, 0.0557299741, -0.1664206684, -0.011939358, -0.2326803356, 0.0704903007, 0.5179842114, 0.5934937596, -0.2430634797, -0.2944009304, -0.0398992188, 0.1407307088, 0.1506175399, 0.2000865787, -0.0697526932, -0.0683979839, 0.1763928086, 0.1869591027, 0.1995501518, 0.0210899599, 0.23314026, 0.2988471687, -0.4171695709, -0.2365463227, 0.3339708447, -0.0664699003, -0.0779234841, 0.045690991, 0.1877263635, -0.2108778954, 0.3500016928, 0.2081944793, 0.8249516487, 0.2740315497, 0.021773586, 0.3340115845, 0.0530164987, 0.4772346318, -0.5256401896, 0.2779949009, -0.1998993158, -0.1485441327, -0.1056682467, -0.1200078949, 0.2859657705, 0.1885987222, -0.375082463, 0.1634072065, 0.0837130994, -0.0050590131, 0.1467693299, 0.2155250162, -0.0813946053, -0.1755890101, -0.4749569595, 0.198226437, -0.1161043867, 0.4056152105, -0.3695657849, 0.1758720577, -0.2364398092, -0.4864913821, -0.0219651628, -0.0572793633, -0.5641258359, 0.4834366143, 0.1611067802, -0.1438444853, -0.1929983348, 0.1012995765, -0.0321187526, 0.1950654984, -0.062342491, 0.1826947778, 0.0070191054, -0.2802789509, 0.0761467367, -0.055438675, 0.3725720346, -0.1888173819, -0.2949993312, 0.0676439255, -0.0227391031, -0.5746198893, 0.3706075549, 0.3127175868, 0.2594403327, -0.4141755402, -0.1008988321, 0.0471216999, -0.0022063537, -0.3120408952, 0.1713686436, 0.0554380901, -0.3020749986, 0.323297441, 0.1941832155, -0.2698325217, -0.2043769658, 0.3248438537, 0.0698584542, -0.370123595, 0.2533122003, -0.0411593989, -0.1644686162, -0.2992781699, 0.2554464936, -0.2276527137, -0.451157093, -0.2315697372, -0.0778469816, -0.3177290559, 0.003283347, 0.2383664101, 0.4500198066, 0.2553205788, -0.2294580787, -0.4196708798, -0.270702064, 0.2733838558, 0.094782114, 0.0822881684, 0.2173053771, 0.2445056885, -0.0785725191, 0.2283004522, -0.3474649191, 0.0849699154, -0.2437528372, 0.0401080623, 0.3991332948, -0.1664494574, 0.2360538393, -0.1057447046, 0.2053281665, 0.0557870343, -0.1856923699, -0.3034193516, -0.0992537886, 0.1484923512, 0.1175192147, -0.0955811739, -0.3456858695, -0.012256965, -0.0652472824, -0.1181234196, -0.0333212167, 0.1138168871, 0.1033727974, 0.0561168604, 0.1782404184, 0.0713145584, -0.1407315433, -0.0557088442, -0.0220888127, 0.0108476374, 0.0346566141, 0.1881541759, 0.1897949725, 0.0804275051, 0.1335049421, 0.0586599, 0.0972505733, 0.0819602162, 0.3060843945, -0.4266725779, 0.0856694728, -0.0395678096, 0.2348963469, 0.4736513197, -0.2496418059, 0.025428107, 0.2098951042, 0.2950935066, -0.2877690494, -0.251195997, 0.2391693294, 0.0821405202, 0.1769164801, 0.4968072474, -0.1200477332, 0.0315552652, 0.6059990525, 0.437158823, 0.2822387218, -0.254507035, 0.3256478012, 0.0466721877, -0.3255583942, 0.1784092337, 0.4047519267, 0.2448444664, 0.2808089554, 0.3693656623, -0.1588609964, 0.0974026546, -0.2743860781, 0.0932687744, 0.0654430017, -0.0686974972, -0.0210657641, -0.1939718723, -0.1426850259, 0.1229707971, 0.1009000763, -0.1209658384, -0.435210675, -0.0772820786, -0.5616144538, 0.1916722506, -0.3719940782, 0.0624890924, 0.0843581855, -0.0817593783, 0.0194741488, -0.1926516593, 0.1767230034, -0.1335428059, 0.1164516136, 0.1317354441, -0.2246079743, -0.2322927266, -0.15771842, 0.1555505097, 0.0218298156, -0.2483112067, 0.2015416175, 0.0959184766, 0.0067358925, -0.3204151988, 0.4864838719, 0.6182714701, 0.2359368652, -0.0477551259, 0.2139195055, -0.1882870197, -0.1154772341, -0.21221295, 0.2470015436, 0.1821264178, 0.2646687627, 0.265759021, 0.2384691685, -0.324133575, 0.0736602396, 0.1151357964, -0.1132102236, -0.3249032497, 0.5744448304, -0.0970284492, -0.2325419933, -0.2296977937, 0.0957970172, -0.6688085794, 0.0016218923, 0.1012999117, -0.1869391501, 0.1108119339, -0.097238794, 0.0933166817, 0.0038401322, 0.4608186781, 0.180932492, 0.2653103471, -0.4273065031, -0.1796087772, -0.4527228475, 0.129712075, -0.1776193529, -0.0388172567, -0.0259649996, -0.0256293006, 0.1027621403, 0.3866543174, 0.1732467115, -0.2431422919, -0.1525466442, -0.0350415409, -0.3035101593, 0.0948396847, 0.1827399731, 0.0200398136, 0.1293052882, -0.3258501887, -0.0112639843, -0.1497566998, 0.1597599834, -0.2867316604, 0.0712298304, 0.3038262725, 0.0413157195, 0.5474320054, 0.1641434729, 0.6859192848, -0.0505449735, -0.0715183914, 0.0780516937, -0.2429568172, -0.2286791801, 0.4720576108, 0.2581991851, 0.3122891188, -0.0096704699, -0.5907734036, -0.3078118563, 0.2258808613, 0.2094399184, -0.0729818344, -0.0988013148, 0.0807392374, -0.1488000304, 0.1402383, 0.0258283913, 0.2333547026, -0.0289727636, 0.2142147422, -0.4133351743, -0.3637703359, 0.4925272167, -0.2699373066, -0.24975577, -0.0548798591, 0.2195810676, 0.0707299188, -0.1204774603, -0.4549995959, -0.0122006508, 0.2876493633, -0.1110278741, -0.4158360362, 0.3226323128, 0.0699551329, -0.053013321, -0.0906257629, 0.2138214558, -0.0570859909, -0.3271856904, -0.0836623833, -0.2636033595 ]
https://github.com/huggingface/datasets/issues/3553
set_format("np") no longer works for Image data
This error also propagates to jax and is even trickier to fix, since `.with_format(type='jax')` will use numpy conversion internally (and fail). For a three line failure: ```python dataset = datasets.load_dataset("mnist") dataset.set_format("jax") X_train = dataset["train"]["image"] ```
## Describe the bug `dataset.set_format("np")` no longer works for image data, previously you could load the MNIST like this: ```python dataset = load_dataset("mnist") dataset.set_format("np") X_train = dataset["train"]["image"][..., None] # <== No longer a numpy array ``` but now it doesn't work, `set_format("np")` seems to have no effect and the dataset just returns a list/array of PIL images instead of numpy arrays as requested.
35
set_format("np") no longer works for Image data ## Describe the bug `dataset.set_format("np")` no longer works for image data, previously you could load the MNIST like this: ```python dataset = load_dataset("mnist") dataset.set_format("np") X_train = dataset["train"]["image"][..., None] # <== No longer a numpy array ``` but now it doesn't work, `set_format("np")` seems to have no effect and the dataset just returns a list/array of PIL images instead of numpy arrays as requested. This error also propagates to jax and is even trickier to fix, since `.with_format(type='jax')` will use numpy conversion internally (and fail). For a three line failure: ```python dataset = datasets.load_dataset("mnist") dataset.set_format("jax") X_train = dataset["train"]["image"] ```
[ -0.0351040848, 0.1116232276, -0.0163861923, -0.1090965569, 0.5629806519, -0.0685696006, 0.6217341423, 0.4775542617, -0.1744560152, 0.1781869382, 0.0658131242, 0.527074039, -0.088053219, 0.1173616201, 0.0401965939, -0.3605453968, 0.072074309, 0.2647365034, 0.0808508024, 0.1596167088, -0.2727207541, 0.0092616146, -0.1465440989, 0.003473294, -0.5034464002, -0.0809286386, -0.1346642971, 0.062474966, -0.2421914339, -0.4246686101, 0.0983466506, -0.2450549155, 0.1019949391, 0.453407675, -0.0001089365, 0.0271534119, 0.3976077139, -0.0286024045, -0.1434716582, 0.147964254, -0.2425324619, -0.6847034693, -0.0113288546, -0.3895187974, -0.1181758568, -0.6137138009, 0.1512785405, -0.160841167, 0.2759801149, 0.3020050526, 0.2656770051, 0.3735822737, 0.2316920459, -0.0511063673, -0.2185556591, 0.2524042428, -0.1683118492, 0.162082538, 0.0784730986, 0.1988574862, 0.2597341537, 0.5298146009, -0.0807200372, -0.0531503819, 0.1742202491, 0.1831923723, 0.2833396792, 0.0358220488, -0.0156703666, 0.1402590871, 0.5266159773, -0.073596254, -0.1954972595, -0.2019925267, 0.1465507448, -0.3878442943, 0.1582662761, 0.1862772405, -0.1870664209, -0.1155842543, -0.2630521357, 0.0817793757, -0.1390253454, 0.3541702628, -0.1157845706, -0.067685239, 0.015739236, 0.0803293139, -0.0788849965, -0.0602476001, 0.1954139769, 0.0539927892, 0.0174034592, 0.0442515649, 0.0084665082, -0.0733495951, -0.1420343816, -0.4403008521, -0.1133213341, -0.1448113471, 0.145297572, 0.1026846692, -0.1827957332, 0.2191250175, 0.4138930142, 0.1623384506, -0.0417225845, 0.0674235523, 0.2067486346, 0.1377829611, 0.1517889202, -0.1474217027, 0.0383777507, -0.3996121287, 0.2932494283, 0.0515110083, 0.3725038171, -0.0626887754, 0.0621828809, -0.1082594171, -0.0444615185, 0.0084982673, -0.0774778649, 0.0998674557, 0.1481801718, 0.3952067792, 0.1595819741, 0.2254124284, -0.0880638286, -0.227491647, -0.1482561529, 0.0865740404, -0.3660969138, -0.1981009543, 0.0021031986, 0.0877740309, 0.1401328444, -0.0305958111, 0.0234379973, -0.0633088648, 0.1319309324, -0.142196238, 0.307151854, 0.2525739074, -0.1399775892, 0.0432525091, 0.133658126, 0.0036237435, -0.186727792, 0.1242255941, -0.4695411026, 0.0291409101, -0.2225115001, 0.185542047, 0.0852295682, 0.0446873233, -0.1540358663, -0.1068980396, 0.2773964107, -0.1968355477, 0.2839345336, -0.438221544, -0.2772710919, -0.2240455002, 0.1149159446, 0.0332334824, -0.1932683289, 0.1439327151, 0.1071674079, -0.00748123, 0.1018060222, 0.1918514222, -0.0473603271, 0.1452837735, -0.247638613, -0.1362894028, 0.2143564075, -0.1408875138, -0.0928951576, -0.1015689448, 0.1607040465, -0.0027221486, -0.1773069352, 0.3334984481, -0.2641776502, 0.1362923235, 0.056912303, 0.5629372001, 0.0143681346, 0.1592326909, -0.1188403741, -0.1784051359, 0.0310415942, 0.3358623683, 0.0138052711, 0.0077813077, -0.0330257118, 0.1882646531, 0.2014694214, -0.0925348252, -0.0534340143, 0.0755807161, 0.1995651573, -0.2911316454, 0.0185355134, -0.0256012417, -0.1572624147, 0.030323917, 0.0272069722, 0.0695615634, -0.1368525773, 0.0173727162, -0.1804390252, -0.1368695796, -0.3472115695, -0.183655858, 0.2206355482, 0.1827757657, -0.1109230965, 0.1879810542, -0.1583160758, 0.0659511462, -0.0056473757, 0.0051678238, -0.4220476151, 0.3041940331, 0.044163812, -0.2824535966, -0.1916975081, 0.2994114459, 0.0614317842, 0.0656116232, -0.2639608383, 0.57306844, 0.4213168025, 0.2177817672, -0.4591379464, -0.178780064, 0.1666871905, -0.3457983434, -0.0895587727, 0.5837767124, 0.048031684, 0.05733582, -0.4763411283, 0.3855287135, -0.0087685566, 0.03418139, -0.1211706623, 0.1601756513, 0.1805400997, 0.0407365076, -0.1198851988, -0.4135544002, -0.0469771139, 0.1916656643, -0.2490784079, -0.0563009642, -0.3349248171, -0.1348214298, 0.4423451424, 0.142904833, 0.1328816414, -0.1122384444, 0.010604783, -0.0336153917, 0.1412932277, 0.0877160579, 0.1900300533, 0.1870515049, -0.1748010069, 0.1700355411, -0.1333752275, -0.2049433887, 0.2116579562, 0.0917286426, 0.5073422194, -0.0030149054, 0.4448336661, -0.1088945195, -0.1860016286, -0.1464074254, -0.1816649437, 0.1302128434, -0.0796159506, 0.0216189753, -0.3496920168, -0.4065952003, -0.2717849612, 0.2504840195, -0.0179770365, -0.3456212878, -0.1109824851, -0.2161916047, -0.1071746647, 0.0358983986, -0.3411968648, 0.0089063318, 0.2165854722, 0.0862341225, -0.1426628381, -0.1380440593, -0.1106991917, 0.0731698796, 0.2722603083, 0.0089958422, 0.2439141721, -0.0768204927, -0.0398929045, -0.1394507289, -0.2901535928, 0.1382261813, 0.2168738246, 0.1040569097, 0.4167671204, 0.3230096996, -0.1401654184, 0.1315546781, 0.4002190232, -0.1627412736, -0.0254812986, 0.2691704929, 0.0449873134, 0.0960903242, -0.1788375527, -0.1522422731, -0.2751210928, -0.1977090091, -0.1126004308, 0.1163998544, 0.1436607838, 0.705417037, 0.2757718563, 0.0490965657, 0.0176462177, -0.0115008531, -0.0730227008, -0.0953909904, 0.27179721, -0.167538777, -0.268257767, -0.1303216219, 0.1279796064, -0.0629049838, 0.1383192539, -0.1871501356, -0.4157294929, -0.0484754145, 0.0385480933, 0.0366157293, -0.0263769925, -0.0091451332, 0.0726405606, -0.1758126915, -0.1355220526, 0.2338328511, -0.1310917735, 0.1179278791, 0.320463866, 0.1383841038, 0.1337813288, 0.2210443616, -0.2168319523, -0.0214186665, -0.4519104064, 0.4663636088, -0.2218849957, 0.4458682835, -0.280724138, -0.2061610818, 0.1734599471, 0.0592945591, -0.0401897505, -0.2486056536, 0.0214256383, -0.0758947358, -0.1387165338, 0.3439963162, -0.1152880564, -0.0285301022, 0.0068595312, 0.3055423796, 0.2107090354, -0.1349717677, 0.2676009834, 0.0122213075, -0.2455695271, -0.0395352989, 0.213704735, -0.1597788483, -0.0430722274, -0.8264835477, -0.3996436298, -0.0994702429, 0.2773171365, 0.0543740429, 0.648999989, -0.0500294492, 0.0310087651, 0.0432395749, -0.0914766267, 0.6774826646, -0.3392495513, -0.2409930676, 0.2016803473, 0.1752403677, -0.3060545325, -0.151598081, -0.1321933866, -0.059651494, 0.1797607392, 0.8475635052, 0.1324953437, -0.1417964846, 0.0579336248, 0.1748535931, -0.1752367467, -0.0986164361, -0.4479634762, -0.2308239937, -0.202425316, 0.0487260781, -0.1478377879, 0.3489276171, 0.221370548, -0.1809233129, -0.2475417405, 0.0170500875, -0.2252365947, 0.0403006263, 0.473518312, 0.1296943426, -0.0773373023, 0.1037893444, 0.3721105754, 0.5081960559, 0.026262816, -0.3828891814, 0.2266248763, 0.063587822, -0.3215304017, 0.2314610481, 0.3074129522, 0.0239710007, -0.1908444166, -0.0107763512, 0.0445840955, -0.0231432114, 0.0751160905, 0.3417728245, -0.0883393511, -0.1850304753, -0.5036115646, 0.365847528, 0.1672097445, 0.3850694597, 0.0339888781, -0.3160814345, -0.1095767096, 0.1639916301, 0.4185281396, 0.809257865, -0.0682393759, 0.456148237, 0.4911264181, -0.2995210588, 0.5695205927, 0.0434415042, 0.2125956565, -0.2259345651, -0.1280834526, -0.0842946172, -0.1740901619, 0.3111883402, -0.1389236897, -0.154292956, 0.1786177754, -0.1886743456, -0.052139543, -0.1302735806, 0.1215941831, -0.1807416826, -0.2132625282, -0.6214511395, 0.1950205564, -0.2900869846, -0.1299227774, -0.0648062378, -0.1643492877, 0.0232217815, 0.0942595974, 0.0106626106, 0.1766851842, 0.0590050146, 0.1578149199, 0.2313334346, -0.4740872681, -0.263000071, 0.1627508253, 0.2821092606, 0.063503094, -0.1439619213, 0.3154546916, 0.1678872705, 0.1975038946, -0.0864556208, -0.0658964217, 0.5532748699, -0.0738246143, 0.0689627901, 0.0327228121, -0.0297215171, -0.0691278055, -0.2816523015, -0.0678561851, 0.0440120772, 0.0116671752, -0.4126858115, -0.3136882484, 0.0935064107, -0.3034728467, 0.1894266903, 0.1356950104, 0.0869778171, 0.1378225982, 0.0224316884, -0.1773643643, 0.1783095151, 0.2771951258, 0.2107178718, -0.3508957326, 0.4194118679, 0.3179357648, -0.0302656144, -0.1882400364, 0.398786217, 0.3623490036, -0.0964273959, 0.2199003994, -0.1034902185, 0.1806081235, -0.0277501997, 0.1491926908, -0.2305357009, -0.0779508203, 0.0985473245, -0.3520786464, -0.4529437125, 0.2558924258, 0.1126715913, 0.4019581079, 0.1618233919, 0.1694566458, -0.0173745248, -0.1744026542, -0.334839195, 0.0211307164, -0.0960647762, 0.1465865076, -0.0546734929, 0.122672528, -0.113881439, -0.3387658298, 0.1310211867, 0.1498751789, -0.3076599836, -0.2443771511, -0.2374456376, 0.06796325, 0.2517120242, -0.26053074, 0.1243836731, -0.2890512347, -0.2735804021, -0.159888044, -0.2498382628, 0.0937422141, -0.2657955289, 0.2168992162, -0.0921537951, 0.1089151278, 0.2216354012, -0.1788490117, -0.214487657, -0.1553047597, 0.2210329175, 0.2057429254, -0.0599103794, 0.0502687283, -0.3433231413, 0.0579723343, -0.1109578311, 0.1612258404, 0.3091688454, -0.2404415458, -0.0341111384, -0.1536164135, 0.4049133062, -0.0306924023, -0.4319457114, -0.0153728314, 0.1109280065, 0.2337015718, -0.2757720351, -0.0708099753, 0.2103562355, 0.2478518337, -0.0693835914, 0.0284336731, 0.1353013217, 0.0688957945, -0.5332705379, 0.2126341909, 0.0765753686, -0.4270127118, 0.1200934947, 0.6202938557, -0.0948327184, -0.0235821679, 0.1503512412, 0.0125583056, 0.0867814273, 0.6321910024, 0.0469559282, 0.5951247811, 0.6965129375, -0.0893038958, -0.2659469247, -0.1016718224, 0.1153780371, 0.3631860614, -0.0020159695, 0.3775541782, 0.0957341269, 0.3259887099, -0.1480741054, -0.2709781528, 0.0024625992, 0.0224525649, -0.1408819705, 0.1270193309, -0.6314414144, -0.1439724565, -0.3222391605, 0.0963429958, -0.1548177749, 0.0589892901, 0.0652464479, 0.3197841048, -0.2498001158, -0.3269373477, 0.1718300283, 0.1022247523, 0.2299774885, -0.2759743929, 0.0038104404, 0.135347262, -0.0631328002, 0.1658938676, 0.1561539024, 0.3784772754, 0.3973163068, 0.0572267435, -0.1930633485, 0.0811399743, -0.1450469941, 0.0086403843, -0.014340492, 0.3168621361, -0.1277908534, 0.1886544824, 0.1944632828, -0.1541268229, 0.0372776911, 0.1785456389, 0.2451501191, -0.2144387215, 0.2620443702, -0.1301889718, -0.3541846871, 0.0403930545, -0.1362733096, -0.3484934866, -0.269857794, 0.2492948323, 0.31327793, 0.1589907408, -0.0172177814, 0.0901645422, -0.0662164167, 0.288297385, 0.2077450901, -0.1455771178, -0.0092117898, -0.1486317664, -0.6375386119, 0.0536509827, -0.1604621559, -0.3783880472, 0.1557203233, -0.1875164062, 0.0759271011, -0.0523228534, 0.2667715549, 0.2455396801, 0.3331504464, 0.2750911415, -0.3774347305, -0.018604124, 0.2004637122, 0.0174053703, -0.1613024026, -0.4444098175, 0.1665773243, -0.1532344967, 0.1460820436, 0.0233052522, -0.2014036775, -0.2177469283, 0.2414316386, 0.3439962864, 0.0519925728, 0.0962151885, -0.0290726367, -0.1875329614, -0.2889108658, -0.1294258237, -0.0738828629, 0.2601102293, -0.0705594122, 0.6709544659, 0.0190696064, 0.1817800105, -0.4059072435, 0.5269644856, -0.1186766848, -0.1968962401, -0.1654231697, 0.1540600508, -0.1086699143, -0.1304768324, 0.2059350014, 0.0803024471, -0.0348745286, -0.0013905229, -0.3817399144, -0.2565648258, 0.2823616862, -0.2410841584, -0.4450146556, -0.1344266236, -0.0575824715, -0.2022632807, 0.3599492908, -0.2597589195, -0.1195736974, 0.1523290575, -0.0696463361, -0.3572166264, 0.2760596871, 0.1422207952, 0.0077032046, -0.0339115635, 0.0891001448, 0.0502945259, -0.2101270407, -0.1908624172, -0.0970721245 ]
https://github.com/huggingface/datasets/issues/3553
set_format("np") no longer works for Image data
Hi! We've recently introduced a new Image feature that yields PIL Images (and caches transforms on them) instead of arrays. However, this feature requires a custom transform to yield np arrays directly: ```python ddict = datasets.load_dataset("mnist") def pil_image_to_array(batch): return {"image": [np.array(img) for img in batch["image"]]} # or jnp.array(img) for Jax ddict.set_transform(pil_image_to_array, columns="image", output_all_columns=True) ``` [Docs](https://huggingface.co/docs/datasets/master/process.html#format-transform) on `set_transform`. Also, the approach proposed by @cgarciae is not the best because it loads the entire column in memory. @albertvillanova @lhoestq WDYT? The Audio and the Image feature currently don't support the TF/Jax/PT Formatters, but for the Numpy Formatter maybe it makes more sense to return np arrays (and not a dict in the case of the Audio feature or a PIL Image object in the case of the Image feature).
## Describe the bug `dataset.set_format("np")` no longer works for image data, previously you could load the MNIST like this: ```python dataset = load_dataset("mnist") dataset.set_format("np") X_train = dataset["train"]["image"][..., None] # <== No longer a numpy array ``` but now it doesn't work, `set_format("np")` seems to have no effect and the dataset just returns a list/array of PIL images instead of numpy arrays as requested.
127
set_format("np") no longer works for Image data ## Describe the bug `dataset.set_format("np")` no longer works for image data, previously you could load the MNIST like this: ```python dataset = load_dataset("mnist") dataset.set_format("np") X_train = dataset["train"]["image"][..., None] # <== No longer a numpy array ``` but now it doesn't work, `set_format("np")` seems to have no effect and the dataset just returns a list/array of PIL images instead of numpy arrays as requested. Hi! We've recently introduced a new Image feature that yields PIL Images (and caches transforms on them) instead of arrays. However, this feature requires a custom transform to yield np arrays directly: ```python ddict = datasets.load_dataset("mnist") def pil_image_to_array(batch): return {"image": [np.array(img) for img in batch["image"]]} # or jnp.array(img) for Jax ddict.set_transform(pil_image_to_array, columns="image", output_all_columns=True) ``` [Docs](https://huggingface.co/docs/datasets/master/process.html#format-transform) on `set_transform`. Also, the approach proposed by @cgarciae is not the best because it loads the entire column in memory. @albertvillanova @lhoestq WDYT? The Audio and the Image feature currently don't support the TF/Jax/PT Formatters, but for the Numpy Formatter maybe it makes more sense to return np arrays (and not a dict in the case of the Audio feature or a PIL Image object in the case of the Image feature).
[ -0.1515493989, 0.0228351578, 0.0084198676, -0.0925700441, 0.4749735594, -0.1852437109, 0.6634012461, 0.2563917935, -0.260232538, 0.1248800829, -0.1729411781, 0.5843823552, -0.1788263172, 0.1715169847, 0.1118780747, -0.3430039287, 0.0372204855, 0.3603931665, 0.0618001521, 0.1723250747, -0.3272289038, 0.1344286799, -0.263464123, 0.0861902609, -0.4767287076, -0.0661723688, -0.1078892425, 0.0066483393, -0.1984825879, -0.3672806919, 0.0650552362, -0.0899898037, 0.0130422022, 0.4456021786, -0.0001152095, -0.0384521037, 0.3978103697, -0.1642993838, -0.1810418963, 0.0872646421, -0.1467795223, -0.6463111043, -0.1325520724, -0.254848212, -0.0852172673, -0.686021924, 0.0792466775, -0.0645475239, 0.2990922928, 0.2482526749, 0.2060497999, 0.3390341103, 0.2749557197, 0.2411825359, -0.2573983073, 0.4382197559, -0.1105692163, 0.1216431856, 0.145326823, 0.0237086061, 0.2539551854, 0.5484271049, -0.220992133, 0.057382632, 0.2404433787, 0.2813939452, 0.1152969971, -0.0220950227, 0.040174555, 0.2176549435, 0.4898166358, -0.1947091222, -0.3166612387, -0.4122257531, 0.1198853776, -0.4587458074, 0.0406495221, 0.1984523237, -0.2650134861, -0.0567156449, -0.3740573525, 0.1171120927, 0.0222898554, 0.2823209465, -0.0456485189, -0.1759707034, -0.1028423011, 0.0576643124, 0.0419887044, -0.1210117936, 0.1083859354, 0.0596800968, 0.0371036828, 0.1796307564, 0.0490409881, -0.1666659415, -0.0945575014, -0.4323478341, -0.1529685557, -0.1894751489, 0.08099062, 0.1916535646, -0.2951229811, 0.184016034, 0.2888410389, 0.2164524943, -0.0821167901, -0.0525447652, 0.2852154374, 0.1045384258, 0.2400373667, -0.1601969004, 0.1156529114, -0.2244514078, 0.2787855268, -0.0385521315, 0.416811198, 0.0301384367, 0.0088886637, -0.1293616444, 0.0642319247, -0.0609923266, -0.1282882839, 0.1508500129, 0.2486306429, 0.560243547, 0.2349901199, 0.2159018666, -0.161427334, -0.1925286502, -0.0822313726, -0.006627751, -0.1989300698, -0.0362182595, 0.0848499015, 0.1765984297, 0.075340651, -0.0173361413, -0.0246205162, -0.0415076874, -0.0088927746, -0.106594339, 0.4241457582, 0.259699136, -0.2139353007, 0.0704019144, 0.0541279167, 0.1267676502, -0.2885314524, 0.209234491, -0.4288038909, 0.015864158, -0.150563553, 0.1087000892, 0.0312745869, 0.169493854, -0.3941250741, 0.0987794623, 0.2028859258, -0.3692640662, 0.3841764033, -0.4700890779, -0.5587828755, -0.1695147455, 0.2191798687, 0.1094157994, -0.1533305049, 0.0761647969, 0.0735368133, 0.001331972, 0.0375325717, 0.1380724013, 0.1073159203, 0.2133853585, -0.2286973745, -0.2122683674, 0.1484706551, -0.2332201153, -0.2268927097, -0.1247231588, 0.1701717079, 0.1617250443, -0.1016107574, 0.2244248986, -0.0890861005, 0.0674528331, 0.0569262281, 0.6075392962, -0.0263404213, 0.3059258461, -0.0066909278, -0.2196365148, -0.080548577, 0.2984389365, -0.1166428104, 0.0484250523, -0.1367308646, 0.273443073, 0.2728921175, -0.0852848962, -0.0018212133, -0.0536597818, 0.2712169588, -0.2026079893, 0.0456809588, -0.1647477746, -0.2059661299, -0.0249684155, 0.077846311, 0.0168580208, -0.2611257136, -0.0013881751, -0.1153158918, -0.0032684694, -0.3520041704, -0.2371584326, 0.1536418349, 0.2365896702, -0.0054409164, 0.1986443102, -0.2242780626, 0.2526262403, 0.0625590011, -0.0131863514, -0.411477983, 0.2703096569, 0.2271252871, -0.2620181143, -0.2473962307, 0.4269944429, -0.0331897102, 0.0302182566, -0.2343097925, 0.7249735594, 0.4657440186, 0.2926523387, -0.7064931393, 0.0055740289, 0.281922698, -0.416559577, 0.0745072141, 0.5468760133, 0.1683639586, -0.0033944179, -0.4245770276, 0.4874696732, -0.0482061096, 0.1244051233, -0.0761867538, 0.0511436611, 0.0486127771, 0.1520112455, -0.2072229534, -0.3055912852, -0.1525849998, 0.0037298906, -0.1452240497, 0.0710783303, -0.4102092981, -0.0925612897, 0.4910868108, 0.0218858514, 0.1934859753, 0.0064907405, -0.054394491, -0.0897962302, 0.1562197953, -0.0058003766, 0.2562033534, 0.1710117757, -0.3469453156, 0.1377921999, -0.0786865279, -0.0972842351, 0.26295048, 0.1237180606, 0.3333341777, 0.0847159475, 0.5339021087, -0.1529106945, -0.3027715385, -0.1224269122, -0.2235995382, 0.0744187161, -0.1552687585, -0.0308648739, -0.3485656679, -0.4398039579, -0.2936054766, 0.2015108913, 0.0674075633, -0.1315790713, -0.1878161579, -0.0391658731, -0.0384644903, 0.1930161268, -0.2447389066, 0.0952166095, 0.1490460932, -0.0046016192, -0.1872455776, 0.030785678, -0.0364397131, -0.0075907754, 0.1841243505, 0.0098262113, 0.0433916636, -0.0488697328, -0.1583244801, -0.1105448753, -0.2222774625, 0.2108157575, 0.1248642057, 0.0866225213, 0.4271628857, 0.3520510197, -0.0414103568, 0.0280102398, 0.362950027, -0.2032916397, -0.0452716835, 0.245181486, 0.0922486112, 0.2228110582, -0.2316288948, -0.0856581628, -0.3287822008, -0.2470315397, 0.1328257918, -0.0508757271, 0.1495000422, 0.7958385348, 0.2256079167, 0.0150553538, 0.014399481, 0.1586262435, -0.1078372598, 0.0249555223, 0.2690541446, -0.1032267213, -0.1912807971, -0.3754962981, 0.086270161, -0.1258633733, 0.082888782, -0.1982388347, -0.6452743411, -0.0801530033, 0.0068532238, 0.0896688998, 0.076586172, -0.0839836374, 0.0985774845, -0.044885736, -0.1198735312, 0.0688028634, -0.2342879772, 0.1943044364, 0.1935247332, 0.3671120703, 0.2396015674, 0.1421525329, -0.1034665853, -0.107009083, -0.3542130291, 0.3868311644, -0.2588154078, 0.5685843229, -0.3324805796, -0.2524153292, 0.1753917187, 0.1222760975, -0.0575758852, -0.0701370239, -0.0167922154, -0.0477791391, -0.1609167457, 0.4592241645, -0.1193343401, -0.076038368, 0.0192063991, 0.3452752233, 0.199242875, -0.0704724044, 0.3653956354, 0.0327392668, -0.2685877979, -0.0933615491, 0.1187695414, -0.0708315894, -0.0230517909, -0.7733974457, -0.4875629842, -0.1755924076, 0.2389981151, 0.1033557802, 0.8692153096, -0.044373177, -0.0522865057, 0.0928057134, -0.0324467197, 0.6820444465, -0.2119129151, -0.1539883614, 0.1404976547, 0.0064063529, -0.3040235043, -0.1521454155, -0.0896036848, -0.2110321969, 0.0483698957, 0.8557204604, 0.0427244976, -0.1596841514, 0.1237075627, 0.2356297225, -0.1553628445, 0.0425139815, -0.378159821, -0.3487277925, -0.2058539838, 0.0932892784, -0.0894869044, 0.3297825158, 0.2532715201, -0.0262721106, -0.0014576623, 0.0129511645, -0.2072734237, 0.040489465, 0.4550161064, 0.2064145356, -0.0102542872, 0.1883658022, 0.2012609839, 0.3095063865, 0.0349231064, -0.4448703527, 0.221159786, 0.127457723, -0.1914874315, 0.2563515902, 0.4420274496, 0.0072244075, -0.0697589517, 0.0761104897, 0.036817994, -0.2662555575, 0.0308473594, 0.3742267191, -0.0565866381, -0.1303538829, -0.5863589048, 0.4738127589, 0.1583750993, 0.2329084128, 0.0479024574, -0.1486619115, -0.1446413994, 0.3350014687, 0.2509403527, 0.8181160688, -0.0776513889, 0.5039049983, 0.4675374329, -0.3120532632, 0.5096094608, -0.0463693105, 0.2083064318, -0.0772517771, -0.1592256129, -0.0559590235, -0.0739479065, 0.0774808004, 0.0106141092, -0.115874134, 0.3104288876, 0.0819797516, -0.0621922091, -0.0484290011, 0.140814811, -0.1783914417, -0.4004250467, -0.5288305283, 0.1111823022, -0.2283739746, -0.0522586778, -0.0010614927, -0.0329436585, 0.0833143815, -0.0339712016, -0.1489981413, -0.0091627715, -0.1042692959, 0.0976265669, 0.2968963087, -0.5878306627, -0.3490605056, 0.2247764766, 0.0902026147, 0.0538357459, -0.1397222877, 0.2657310367, 0.2150273919, 0.4984482527, -0.1356014162, -0.0443360172, 0.5702275634, 0.0614107512, 0.1008814648, -0.1069324464, -0.0607680045, 0.0003207305, -0.21099931, -0.0935279131, 0.0942577571, 0.1057022735, -0.4569241405, -0.3185239136, 0.1718737632, -0.1745042801, 0.1305576712, 0.0956862196, -0.0188127737, 0.3188285828, 0.0055979542, -0.232695058, 0.1539470404, 0.2251200676, 0.1096131802, -0.3035569489, 0.4726053178, 0.3052627444, -0.0014878687, -0.1002656966, 0.3475579917, 0.2372802645, -0.1154349521, 0.2259370089, 0.0533800684, 0.1425807774, -0.0286387317, 0.1450023204, -0.307966888, -0.0874506682, -0.085210368, -0.1914348751, -0.4196766317, 0.3449158072, 0.1251546443, 0.4796212018, 0.1830694526, 0.1246274635, -0.0009213716, -0.189726457, -0.2789677083, 0.0528762341, -0.0104397722, 0.1372748464, 0.1756006479, 0.1791250408, -0.0633498877, -0.2325339168, 0.0810832828, 0.1098903269, -0.2586608231, -0.1411221474, -0.2310493588, 0.1522099972, 0.270999372, -0.2880517542, 0.013942318, -0.2632593215, -0.3717274368, -0.2703020275, -0.1881072819, 0.1442490518, -0.2643204927, 0.2358393967, -0.3217237592, -0.0069091367, 0.298050493, -0.0949653238, -0.1758771092, -0.2247753292, 0.2196715176, 0.3380331099, -0.0145723876, 0.1247296408, -0.3486609459, 0.158532843, -0.0936581045, -0.1198967397, 0.3864569366, -0.0667016953, -0.0679572746, -0.2158273458, 0.4862700403, 0.0045600291, -0.3736252487, -0.1075882688, 0.1478301883, 0.1486468464, -0.216658175, 0.0801521614, 0.2462109178, 0.1870888174, -0.0356701687, 0.2276970297, 0.1905557215, 0.064749077, -0.4602295458, 0.1293163896, 0.2731308043, -0.4810684621, -0.0559610687, 0.6640626192, -0.0394249335, 0.0989241973, 0.2390895635, 0.0007567201, 0.1193815321, 0.5623286366, 0.0244496148, 0.4368836284, 0.550935626, -0.1227598488, -0.103072457, -0.1733181179, -0.0642753541, 0.3369082808, -0.0376141369, 0.4181374013, 0.1006216332, 0.426238656, -0.3002694547, -0.263802588, 0.0839659199, 0.0368205346, -0.1558508575, -0.015870396, -0.4693768322, -0.1006155908, -0.2836388052, 0.0696955174, -0.1820325851, 0.0114896791, 0.0521202609, 0.2527126074, -0.1379913092, -0.2948767245, -0.028647745, 0.0991354808, 0.3234824538, -0.2845190465, 0.0163111165, 0.030261619, -0.0373106003, 0.2736016214, 0.3718553782, 0.3481014669, 0.3524882197, 0.0762163326, -0.1780711412, -0.049935054, -0.0537812859, -0.0546399094, 0.128904447, 0.1878550202, -0.1206150651, 0.0941971615, 0.1644293666, -0.0956527367, -0.1495664418, 0.2666939795, 0.0864736438, -0.347330302, 0.2350919247, -0.2624275982, -0.3299822509, 0.0418319888, -0.0065178052, -0.3043959737, -0.2274129689, 0.2203395218, 0.2880051136, 0.1750566065, 0.0430172049, 0.0415903367, -0.1317661703, 0.1550346464, 0.3796868026, -0.050099507, 0.2540130317, -0.1124674678, -0.6963325739, -0.0851126611, 0.0061369292, -0.3051169515, 0.1161873639, -0.1711302251, 0.1831606328, -0.0812273473, 0.1610728949, 0.0773631558, 0.1394177824, 0.3564309478, -0.2241928875, -0.0723841488, 0.0853907838, 0.1827471107, -0.2035196424, -0.5164289474, 0.1883824021, -0.1302898377, 0.0362325907, -0.0383438393, 0.0111598093, -0.4001908004, 0.1643161774, 0.3093171418, 0.0852376893, 0.0746278316, -0.1004409268, -0.0713313594, -0.3172924221, -0.0750039518, -0.1656787395, 0.1212794706, -0.1875902414, 0.7902429104, -0.0116970269, 0.1301328242, -0.3584263921, 0.487395823, -0.0661252663, -0.2042032927, -0.2725482285, 0.1015049294, -0.2901996672, -0.158318013, 0.1293549687, 0.0009479059, -0.0773599744, -0.0106062386, -0.5239105225, -0.281168133, 0.2662609816, -0.1974546462, -0.4671429098, -0.1848301291, 0.0381218381, -0.3029127419, 0.3081083596, -0.3401252925, -0.0487582721, 0.0647178665, -0.0818011314, -0.4633288383, 0.3025087416, -0.0482690707, -0.0789272711, -0.1109101251, 0.0833540484, 0.087730296, -0.1654307097, -0.2258527279, -0.0893182904 ]
https://github.com/huggingface/datasets/issues/3553
set_format("np") no longer works for Image data
Yes I agree it should return arrays and not a PIL image (and possible an array instead of a dict for audio data). I'm currently finishing some code refactoring of the image and audio and opening a PR today. Maybe we can look into that after the refactoring
## Describe the bug `dataset.set_format("np")` no longer works for image data, previously you could load the MNIST like this: ```python dataset = load_dataset("mnist") dataset.set_format("np") X_train = dataset["train"]["image"][..., None] # <== No longer a numpy array ``` but now it doesn't work, `set_format("np")` seems to have no effect and the dataset just returns a list/array of PIL images instead of numpy arrays as requested.
48
set_format("np") no longer works for Image data ## Describe the bug `dataset.set_format("np")` no longer works for image data, previously you could load the MNIST like this: ```python dataset = load_dataset("mnist") dataset.set_format("np") X_train = dataset["train"]["image"][..., None] # <== No longer a numpy array ``` but now it doesn't work, `set_format("np")` seems to have no effect and the dataset just returns a list/array of PIL images instead of numpy arrays as requested. Yes I agree it should return arrays and not a PIL image (and possible an array instead of a dict for audio data). I'm currently finishing some code refactoring of the image and audio and opening a PR today. Maybe we can look into that after the refactoring
[ -0.3260746598, 0.0780695602, -0.0351971686, -0.0143146245, 0.3845542967, -0.3260154128, 0.5448749065, 0.2585427761, -0.1670454443, 0.1273833066, -0.1693264544, 0.7061198354, -0.2626221478, 0.0751629323, 0.1509307921, -0.2775861919, 0.1291610748, 0.2442281842, 0.1163542941, 0.0611656494, -0.3141694665, 0.0769307092, -0.3639255464, -0.0002277038, -0.3928612173, -0.1809425503, -0.1425784677, 0.0637936965, -0.1997183561, -0.4782781005, -0.0001462143, -0.077809982, 0.0579646118, 0.3881600797, -0.0001148768, -0.099631913, 0.4576437175, -0.0902771801, -0.0668753013, -0.0522194467, -0.1356749982, -0.4700759351, -0.0503627881, -0.1526648253, -0.0782116055, -0.6301778555, 0.1184908971, -0.0943331867, 0.2201139331, 0.4080254436, 0.2271854877, 0.3000594378, 0.2481986582, 0.1179534793, -0.1870693862, 0.4389388561, -0.0413561203, 0.1906604916, 0.2529707253, 0.0918149054, 0.2736002803, 0.4729378521, -0.123146005, -0.0009078436, 0.1328154206, 0.2702375054, 0.0094387867, -0.1130520105, -0.1320378929, 0.2401176244, 0.4953454733, -0.0738329738, -0.2160764635, -0.238073498, 0.1493584216, -0.3737760186, 0.0778546706, 0.1764615625, -0.2331381142, 0.0255570579, -0.2819567323, -0.0041696997, -0.0645021945, 0.4499409497, -0.0563826896, -0.0825751871, -0.0380410142, 0.0953865871, 0.1551285982, -0.087080352, 0.2446874529, 0.177854836, 0.020859126, 0.0836101845, -0.0243988745, -0.1199119538, -0.1602735668, -0.3180031776, -0.2036096305, -0.024591947, 0.1058490202, 0.1808286905, -0.3809664547, 0.2120750844, 0.4176843762, 0.0365849249, -0.1010599956, 0.0009747167, 0.3168264329, -0.035009861, 0.2243606597, -0.1512205899, -0.0043176711, -0.3199769557, 0.3007968366, -0.0382321291, 0.3924557865, -0.0902448446, -0.0413965546, -0.0497656316, -0.0424252115, -0.0787462294, -0.1247612834, 0.1619147807, 0.1877603531, 0.397682935, 0.1805304438, 0.309841603, -0.1259361207, -0.1194383651, -0.0477052033, 0.047859598, -0.224572584, -0.1363794655, 0.1291354746, 0.2282876372, 0.0784813464, 0.0551729836, 0.1070875227, -0.1345255077, 0.1028895453, -0.1820438206, 0.4688180983, 0.2575933039, -0.1899711341, 0.0925099999, -0.0860691294, 0.0348291248, -0.2492946535, 0.2126650065, -0.5047069192, 0.0371620357, -0.2815009952, 0.1686285585, 0.0570479594, 0.1027852967, -0.1967706531, 0.0829075351, 0.1825658083, -0.421781987, 0.3385528326, -0.577427268, -0.3783521652, -0.1803834736, 0.2274564356, 0.0411206111, -0.2426269352, 0.098414287, -0.0348914899, -0.0412096642, 0.0697198138, 0.1980861425, 0.0794065595, 0.063622348, -0.2573801279, -0.0623531789, 0.2354953438, -0.299608469, -0.343726486, -0.1225305051, 0.1301442087, 0.022532085, -0.0898522511, 0.3080227375, -0.119455114, 0.1168916821, 0.1486275643, 0.4580119252, 0.0573702008, 0.1408163309, -0.0979475379, -0.1830166578, 0.0482528806, 0.4184814692, -0.1028878167, 0.0517016426, -0.0544674881, 0.1859757453, 0.3439674377, 0.0267852042, -0.1110531017, 0.0167446565, 0.3398382366, -0.2197366506, 0.0028660165, -0.2095483541, 0.0431211479, -0.1478593647, 0.0239295773, 0.0907489508, -0.093671225, -0.0303694643, -0.1324693114, -0.153893441, -0.3827355206, -0.2273095697, 0.1805299819, 0.2178438753, -0.2259850502, 0.2257790267, -0.1897244602, 0.2109855413, 0.0285526328, -0.1189272776, -0.2801932096, 0.207654193, 0.0363393351, -0.3014754951, -0.1671218872, 0.4065724611, -0.0117294742, 0.0527630709, -0.0849064887, 0.714255929, 0.4944219887, 0.0282403734, -0.6157614589, -0.139495343, 0.2729226351, -0.5527373552, 0.0515607446, 0.5118814111, 0.0290196706, -0.0603745952, -0.4614304304, 0.3658854961, -0.0356748514, 0.0439648628, -0.168030411, 0.1717942059, 0.0797091797, 0.1198759153, -0.2308692783, -0.2444688678, -0.0997757837, 0.0320892595, 0.018892277, -0.051059667, -0.5594379306, -0.0336580575, 0.4645654559, 0.1148755848, 0.2590465546, 0.0301084183, -0.0271454826, -0.1495889574, 0.1451839656, 0.0261467882, 0.3400305212, 0.1537372321, -0.2149111927, 0.2407577634, -0.1196469367, -0.1682774276, 0.2154104114, 0.0665373877, 0.2591871619, -0.0151092401, 0.4109227657, -0.1855474114, -0.3271982968, -0.2407162935, -0.2805558741, 0.0690909401, -0.2462231815, -0.0605846532, -0.4072410762, -0.3430661857, -0.2578241229, 0.2560184896, -0.0303835366, -0.062095698, -0.1329576373, -0.0942467451, 0.0122310249, 0.2505581975, 0.0444021374, 0.0950260013, 0.0890676081, 0.1215655357, -0.0997855887, -0.005761059, -0.1538458467, 0.0515320972, 0.1825869381, -0.0648515448, 0.0681575611, -0.1333357096, -0.2062541842, 0.0428936817, -0.1157940254, 0.1639493257, 0.2646989524, 0.1813241094, 0.4035843313, 0.2773593664, -0.1286721379, 0.0645198748, 0.2330508828, -0.1497824192, -0.0170549247, 0.2547558844, 0.0568232797, 0.2278752327, -0.2534992993, -0.2349433303, -0.5620396733, -0.1764632761, 0.0791658685, 0.0457029305, 0.1623636186, 0.7829419971, 0.3211749792, -0.1044584364, -0.1472109258, 0.081229724, -0.224529177, -0.1039700434, 0.2771009803, -0.1156861186, -0.294264853, -0.331551671, 0.2496512234, -0.0640186295, 0.1773401201, -0.2040989399, -0.5476475358, 0.1387841403, -0.0398059264, -0.0032209039, 0.0813934505, -0.0075429482, 0.1137835234, -0.0838067681, -0.1142450348, 0.208041504, -0.1732750982, 0.150830552, 0.3007612824, 0.2344010323, 0.1223358884, 0.0832255781, -0.1548371315, 0.0508779846, -0.2700658441, 0.3505954146, -0.3175278306, 0.6035671234, -0.3017682731, -0.1525538266, 0.2335360497, 0.1362443417, -0.0602570474, -0.1524495631, 0.0046042521, -0.1205998063, -0.1563749611, 0.4205057025, -0.2012564838, 0.0243305117, 0.0324295312, 0.1980753094, 0.1926696301, -0.0790282339, 0.4707791507, 0.0915872678, -0.2209154963, -0.0927620083, 0.1903301477, -0.0075901314, -0.0457363129, -0.8644351363, -0.4391103089, -0.1010903046, 0.1403759569, 0.0354336649, 0.9216076136, -0.1207875833, 0.0252786484, 0.1371208727, 0.0106932065, 0.7360290289, -0.252943635, -0.2245014459, 0.1910360008, 0.1481667161, -0.2411644608, -0.1068385094, -0.1739555746, -0.1264079213, 0.1203789115, 0.5905035138, 0.0737919882, -0.0374489687, 0.1133668721, 0.2022527456, -0.073822923, 0.0140703162, -0.3081147373, -0.2630140185, -0.1419790983, 0.0689300224, -0.0297099166, 0.2041973472, 0.0776913166, -0.0352480896, 0.02754445, 0.0729557723, -0.0665981397, 0.0395408347, 0.6074451804, 0.0362733155, -0.1598581523, 0.2286469042, 0.0605236255, 0.5037292242, -0.0061157765, -0.3588909209, 0.3268944919, 0.1875698715, -0.35186854, 0.2907755077, 0.3402849138, 0.0077345492, -0.1819483489, 0.1264198869, -0.0129318703, -0.2638530135, 0.1143102944, 0.4431908727, -0.1306075156, -0.1809247881, -0.706302762, 0.4694836438, 0.1950949728, 0.1749151945, 0.126862973, -0.331653893, -0.1075337753, 0.3828138709, 0.193351388, 0.8134248257, 0.0153832594, 0.4617581666, 0.3469572961, -0.3387618363, 0.5060822368, -0.1578726172, 0.1741613448, -0.1730236113, -0.0497112423, -0.0710310787, -0.1362165511, 0.0675027892, 0.0388069935, -0.2017453313, 0.2141949832, -0.0225466117, -0.0366421491, -0.0100730173, 0.1719080061, -0.0957367569, -0.1190926954, -0.3486542106, 0.135742873, -0.2592956424, -0.0932586044, -0.0696022511, -0.0794873387, -0.0191883538, 0.035422191, -0.157223627, -0.0130121978, 0.1036193892, 0.0871159583, 0.2158691436, -0.6510202289, -0.2294033468, 0.222821489, 0.1042638868, 0.0706338286, -0.2416890562, 0.3667128086, 0.3362162411, 0.455927372, 0.0889313743, -0.1093959063, 0.4189322889, 0.0483023711, -0.0303852446, -0.0308685154, -0.0218917821, 0.0048629162, -0.4158257842, -0.0193566941, 0.1605786979, 0.0825123787, -0.2276915759, -0.2729112208, 0.2073530257, -0.2024741322, 0.157987684, 0.203028366, 0.0844531059, 0.4066618979, 0.1362745166, -0.1416328698, 0.0549225472, 0.2588557899, 0.1894714236, -0.2861533165, 0.3808168769, 0.2594668567, 0.0121941343, -0.1859415025, 0.4090717137, 0.1771755368, -0.1466469467, 0.220226109, 0.0592260286, 0.1620099396, -0.0535293147, 0.0611078851, -0.2962949574, -0.0304612853, -0.1499043405, -0.2784811556, -0.3929445744, 0.2523711324, 0.019057041, 0.4391101897, 0.1565488428, 0.1191760525, 0.0070790285, -0.3468785882, -0.3088109195, -0.0088197663, -0.0579266883, 0.0691368505, -0.183338359, 0.1654154062, -0.2274575531, -0.3574121594, 0.0983749852, 0.0585871488, -0.2348198295, -0.1648995131, -0.0781694353, 0.1444388032, 0.1790022999, -0.314180553, -0.0038905954, -0.2860443294, -0.3962263465, -0.1333942115, -0.2611295283, 0.1832159609, -0.1999705434, 0.2876808941, -0.2163646072, -0.0518764891, 0.3931733668, -0.0530151613, -0.2313165516, -0.161043942, 0.1844515502, 0.3413042128, 0.0389202833, 0.1046662033, -0.2135673612, 0.1912668496, -0.1535131931, 0.0075331111, 0.3455403149, -0.1241842359, -0.0003503441, -0.3256037533, 0.5525931716, 0.2592208385, -0.3827399611, -0.1229658574, 0.1199382469, 0.205267787, -0.2400286645, 0.0185063928, 0.2526394129, 0.2971735299, -0.0771115497, 0.0979094431, 0.2348932922, -0.0483537465, -0.3767293394, 0.157205835, 0.4035673141, -0.4542174637, 0.0230245516, 0.6425056458, -0.0261768475, 0.0784902796, 0.1873821467, -0.0457333475, 0.0512674078, 0.7629050612, 0.1500306875, 0.5435711145, 0.6258505583, -0.1257957071, -0.0419180319, -0.0309681688, -0.0797300488, 0.2503640652, 0.004332839, 0.2936697304, 0.1601631641, 0.3597717881, -0.3168817759, -0.2792163491, 0.1502020359, -0.0872006714, -0.2171070576, 0.0279016495, -0.5974263549, -0.126819998, -0.1924416572, 0.0348907262, -0.2210148126, 0.029594915, 0.0492811091, 0.2740437686, -0.2265396565, -0.2958461344, -0.1009722948, 0.0401954353, 0.1707831174, -0.270175457, 0.0062992084, 0.0928895622, 0.046046447, 0.3682074845, 0.3478728235, 0.4704498053, 0.379909128, -0.095544152, -0.228814736, 0.0025236041, -0.0940058008, -0.1182780787, 0.0019897253, 0.400529474, 0.0080089569, 0.1316971928, 0.1940854341, -0.0802432448, 0.061860878, 0.2493217587, 0.0137959849, -0.3201711774, 0.1060911119, -0.3112929761, -0.3876904845, -0.0348514505, -0.1734621674, -0.2807611525, -0.1729623675, 0.2779190838, 0.3317432106, 0.1232129559, -0.0205857325, 0.0581531264, -0.0880743191, 0.1801345795, 0.3093475997, 0.106788069, 0.1600942612, -0.269443661, -0.7151325941, 0.0293199122, -0.0217024758, -0.2763051391, 0.0058334409, -0.1755706221, 0.1717951447, -0.0270310156, 0.258449614, 0.2524860203, 0.0581162833, 0.3840925097, -0.3516008556, -0.0273653679, 0.054618042, 0.2490781844, -0.1883025616, -0.369987905, 0.1789580584, -0.2052590698, 0.0700386316, -0.0851625502, -0.1442685127, -0.402978152, 0.2717320919, 0.427659899, 0.112333931, 0.1261458695, -0.1002161279, -0.046617981, -0.2850320339, -0.0740401372, -0.0905178189, 0.161794439, -0.1241955608, 0.6501985788, -0.0257479195, 0.0793295875, -0.3397965431, 0.441960156, -0.102928102, -0.1006399989, -0.3245119452, 0.1017921194, -0.1554386914, -0.1685539782, 0.0922747776, -0.100853391, -0.1238596439, -0.0253725555, -0.4949659705, -0.2724178433, 0.275749594, -0.0013022408, -0.3904481232, -0.3328227103, 0.0532014892, -0.31500718, 0.3103465736, -0.3545128405, -0.2402492762, 0.1906683892, -0.0854377598, -0.4433853924, 0.177186206, -0.0594199561, -0.0673497766, -0.0619154125, 0.2453864813, 0.1257035732, -0.2014579624, -0.1697970331, -0.1627707183 ]
https://github.com/huggingface/datasets/issues/3548
Specify the feature types of a dataset on the Hub without needing a dataset script
After looking into this, discovered that this is already supported if the `dataset_infos.json` file is configured correctly! Here is a working example: https://huggingface.co/datasets/abidlabs/test-audio-13 This should be probably be documented, though.
**Is your feature request related to a problem? Please describe.** Currently if I upload a CSV with paths to audio files, the column type is string instead of Audio. **Describe the solution you'd like** I'd like to be able to specify the types of the column, so that when loading the dataset I directly get the features types I want. The feature types could read from the `dataset_infos.json` for example. **Describe alternatives you've considered** Create a dataset script to specify the features, but that seems complicated for a simple thing. cc @abidlabs
30
Specify the feature types of a dataset on the Hub without needing a dataset script **Is your feature request related to a problem? Please describe.** Currently if I upload a CSV with paths to audio files, the column type is string instead of Audio. **Describe the solution you'd like** I'd like to be able to specify the types of the column, so that when loading the dataset I directly get the features types I want. The feature types could read from the `dataset_infos.json` for example. **Describe alternatives you've considered** Create a dataset script to specify the features, but that seems complicated for a simple thing. cc @abidlabs After looking into this, discovered that this is already supported if the `dataset_infos.json` file is configured correctly! Here is a working example: https://huggingface.co/datasets/abidlabs/test-audio-13 This should be probably be documented, though.
[ -0.1981454343, -0.3338792622, -0.0593696311, -0.015883591, 0.2914840281, 0.0536743775, 0.5299441814, 0.2025271356, 0.2964348197, 0.2206585556, -0.0498791374, 0.4667156041, -0.0649666712, 0.60937953, 0.117898874, 0.0383371338, 0.154357627, 0.2395860553, -0.0806983635, 0.1582984179, -0.3150162101, -0.0504627526, -0.0614234097, -0.0036163677, -0.4712052047, 0.1417070329, 0.1184485257, 0.1861241311, -0.3263603151, -0.3569810092, 0.3003381491, 0.3291708827, 0.279612571, -0.2143638879, -0.0001160909, -0.1337009519, 0.2005433887, -0.16425547, -0.1774947643, -0.227934733, -0.55134058, -0.0836394951, 0.227476418, -0.2112006992, -0.0727188811, 0.0880130082, 0.1129017919, -0.0226846226, -0.1636062562, 0.2917295694, 0.1305098832, 0.2089856416, -0.1338496208, -0.0815963596, 0.2693926096, 0.7169439197, -0.4224774241, 0.0209935997, 0.464448452, 0.1264068931, -0.0162284076, -0.0045947162, -0.182633549, 0.1853895038, 0.5518288016, 0.2778951526, -0.3976092637, -0.1355306804, 0.0871088803, 0.4588478804, 0.8786901236, -0.087838687, -0.1939988434, -0.1749208719, 0.026779823, -0.3243299425, 0.4002416134, 0.097560294, 0.0070630098, 0.202575475, -0.0524786115, -0.2061247379, -0.2650532722, 0.1806898564, 0.1430536062, -0.1337580681, -0.0708984435, -0.039458286, -0.0643293038, -0.2143250108, 0.3740804791, -0.3572395444, -0.1320582628, 0.1310597658, -0.2229077816, -0.3487229645, -0.2667338252, 0.274864912, 0.0761095509, 0.2284381837, 0.1235288233, 0.2150971144, -0.575160265, 0.1461702287, 0.223617211, 0.0312229469, 0.2647952735, -0.2231322229, 0.4049198925, 0.1327346116, 0.293829143, -0.0979544222, -0.1514687687, 0.0859227628, 0.039149344, 0.2528969646, 0.4035217762, -0.1567376703, -0.016749911, -0.356959641, 0.4327532053, 0.0390131809, 0.0695258677, 0.2537147403, 0.0974663943, 0.1990094334, -0.1714725196, 0.3858540952, -0.1488922089, -0.0845071077, 0.189789325, 0.2008985281, 0.1473315805, 0.1124143824, 0.4138317406, 0.1815622449, 0.1098843813, 0.0134225888, 0.3173080385, -0.1264141947, -0.3549357951, 0.0129348394, -0.2834029198, 0.0773822218, -0.0167590827, 0.272387743, -0.0552868396, -0.0506223254, -0.4751161635, 0.1708454341, -0.3368244171, -0.303424865, -0.1354265511, 0.0383664146, -0.4155795574, -0.1201519594, -0.5427668095, 0.0646240637, -0.4383241236, -0.0632331297, -0.0394734181, 0.1913253665, -0.2103268802, -0.2185588926, -0.1256883293, 0.1066289395, -0.2239599973, 0.0307983998, -0.0268871672, -0.0089408383, -0.0203367881, -0.1170367599, -0.0957356542, 0.0536536761, 0.0456117988, 0.4620752335, 0.431209743, -0.405446887, -0.0331125855, -0.2307885587, 0.228900075, 0.062247172, 0.2640252411, 0.3157483637, 0.4934763312, -0.098335892, 0.1523222774, 0.4741748571, 0.0992996693, 0.2643800378, 0.1819674522, -0.549128592, 0.0315491334, 0.1797797978, -0.1065608859, 0.2581997812, 0.1446226835, -0.0296283755, 0.0534995236, -0.130518496, -0.0107653299, 0.0021564539, 0.4415028095, -0.0106013548, -0.0992402807, -0.4873968065, -0.4763361514, 0.1549556702, 0.2670305073, 0.1106576249, -0.0939432085, -0.5158810019, -0.2023272812, -0.1793970764, -0.0022506604, 0.425360322, 0.0916184261, -0.1400132775, -0.3270558715, -0.1062552258, -0.4174019992, 0.3752211332, 0.0002530556, 0.0000243247, -0.2992809117, 0.1290500164, 0.2566502988, -0.0731766969, 0.3209610581, 0.0930948406, 0.192616418, 0.1662248224, -0.0929055884, 0.3178835511, 0.2108104974, 0.5900645852, 0.2433582842, 0.5383267999, 0.0826215222, 0.1584253013, 0.011554501, -0.1779984683, 0.2496953309, 0.094818905, -0.4319274426, 0.4375811219, -0.1180759817, 0.0822687969, -0.1200413629, 0.0898853615, 0.2290069163, 0.0133506125, -0.3427515924, -0.0319631733, -0.3089579046, 0.1382146925, -0.5322529078, 0.0817568302, -0.2817533314, 0.0358003862, 0.6619442105, -0.0461980291, 0.3075362146, 0.0519229509, -0.3511511087, 0.0634467229, 0.3191054165, -0.2391019911, 0.3604511619, 0.0832395703, -0.1026822329, -0.1268162429, -0.1492353082, -0.0895826072, 0.208889097, 0.0501997136, -0.1018673554, -0.1234963313, 0.1338668913, -0.4073739052, -0.4078284204, 0.1178539097, 0.0276925992, -0.040127784, -0.3508968353, -0.3640927374, -0.5263759494, 0.1472908407, 0.2185673565, -0.3499584198, -0.0383072533, -0.0973390192, 0.256585449, 0.5492588878, 0.0109142642, 0.0286731049, -0.0481974892, 0.6265376806, -0.0376807228, -0.0972722694, 0.0445111506, 0.1679497957, 0.1754615307, 0.0491245277, 0.0560520291, 0.5278326869, 0.1086820215, -0.04144812, 0.2894291878, -0.3643512726, 0.3610894084, 0.0630922168, 0.1874328852, 0.1762527674, 0.0397479981, 0.4828989506, 0.1685433984, -0.172583282, 0.0340109169, 0.2317653298, 0.0776574239, 0.1224905178, 0.0170747768, 0.1095783636, -0.0856948495, -0.4379960597, -0.1218671799, -0.4504958689, 0.2023867667, -0.0005406589, 0.201726228, -0.0960224792, 0.1131483316, -0.2640446424, -0.1325994283, -0.2014993578, -0.2150752097, -0.1825556755, 0.6530634165, -0.2297088653, -0.1049228832, 0.1991362125, 0.014987628, -0.1469806284, -0.0182967428, 0.1271436214, -0.4359737635, -0.2118767798, 0.3859465122, 0.1163844541, 0.014521203, 0.4817347527, 0.1262935698, 0.0368056744, -0.0623311438, -0.1336557567, 0.0498410538, 0.5586377382, -0.0400024913, 0.374142766, -0.0867907032, -0.2914330065, 0.0664801747, -0.032187514, 0.1188267171, 0.2544041872, -0.1607787907, 0.1767328382, -0.205492273, 0.1357481033, -0.097315371, -0.2200459242, 0.0328694247, 0.2749067545, 0.1587695032, -0.0535483956, -0.1598012, 0.2452020645, -0.1921967715, -0.3534283638, 0.3322869837, -0.2142153978, -0.0914787352, -0.1739172935, -0.0409265831, -0.5223982334, -0.2406125069, 0.0340537615, 0.4128822386, 0.2880511284, -0.0936038122, -0.6237380505, -0.2090871185, -0.3304353952, 0.2468871325, -0.0867876038, 0.224739477, -0.0556024462, -0.0516233481, 0.1421716362, 0.1425383836, 0.2904685736, -0.3914239705, -0.0754408687, -0.2261698693, 0.1267504543, -0.1464585364, -0.0756187886, -0.126212433, 0.0214433484, -0.3805817962, 0.5009675026, -0.149243623, -0.0884782821, -0.0414918922, 0.0637151748, -0.1814868748, -0.1262551397, 0.1856084615, 0.0661747903, -0.2708592713, -0.298604697, 0.2973378599, -0.0018563642, -0.241625309, -0.3061188757, 0.0613549314, 0.061806418, 0.2923496664, -0.006701001, 0.2086277455, 0.1417737603, -0.1430283636, 0.0171574615, 0.0670313612, -0.0916666314, 0.2164470404, 0.3346591294, -0.2599274516, -0.0061377548, -0.3578727543, 0.2485691607, 0.4487596452, -0.075472869, 0.5743088126, -0.0133184977, -0.172080189, -0.7291164994, 0.1020053923, 0.3145815432, -0.0288439747, -0.1662885696, -0.2998295426, 0.6168628931, -0.2725993395, -0.1895329952, 0.0511113927, 0.2204315215, -0.3182691038, 0.2140066177, 0.1321065575, 0.8645841479, 0.0340428874, 0.011199492, -0.081887275, -0.2732952535, 0.2986963391, -0.5399836302, 0.0732929856, -0.0878059864, -0.2071903199, -0.2783838212, 0.0671659112, 0.2269368023, 0.210102275, -0.2212616056, 0.108397603, -0.0734253526, 0.6367172599, -0.1965334713, 0.1671185046, -0.3129649162, -0.6906152964, -0.0398149416, 0.0369010605, -0.1288676411, 0.0980240479, 0.2812977433, -0.0389801711, 0.0169610251, -0.136344403, -0.3585017025, -0.3297388852, 0.3274404407, -0.2841480672, 0.0628459454, 0.0984844491, 0.204194665, 0.0816111118, 0.3192821145, 0.233614251, -0.3352466226, 0.124741599, 0.0643680841, 0.1888214201, -0.248115316, 0.0619076565, -0.0624961816, -0.0170032922, -0.3212586045, 0.046466168, -0.0455985442, -0.216678828, 0.0054111923, -0.2426064312, -0.0447102413, -0.2984681726, -0.5147821903, -0.1353864074, 0.1135102212, -0.0631240532, 0.0795228705, -0.0203619041, 0.0013943728, 0.5547565222, 0.379499644, 0.0971344635, -0.0548287407, 0.067854017, 0.1069714874, -0.1642781645, 0.1832854748, -0.089081347, -0.1496882737, -0.1275556982, 0.3322929144, 0.2189494669, -0.1899232119, -0.114677228, 0.1934988201, -0.2762117386, -0.3286958337, 0.3623865843, -0.2670291662, 0.2147118896, -0.2744802833, -0.3359822333, -0.1413730085, 0.4666644931, 0.0769127756, 0.292349577, -0.1971795708, -0.1851842552, 0.0043253135, -0.2318500876, -0.2200738043, 0.0107797878, -0.1021309346, 0.136903733, 0.0736945346, 0.4045024514, 0.092174992, -0.2331520468, 0.0168766584, -0.1989448518, -0.1662061661, -0.0678645745, -0.1343199462, 0.1799399853, -0.0782074407, 0.2010465413, -0.0235926341, -0.3045990467, -0.2190234214, -0.2925300002, 0.0772872865, 0.3653926849, -0.1682201475, -0.0760393515, 0.0119605092, -0.1189373434, -0.0153245162, 0.1206239089, 0.0529368669, 0.1550169289, -0.0533037297, -0.0134470379, -0.2813064158, 0.0705316216, 0.0101385666, 0.3770611584, -0.0222685765, 0.0393210873, 0.1671431661, 0.2962330878, 0.1392877102, 0.0762159973, 0.1000141725, -0.0011406422, 0.0229755696, 0.0034453506, 0.1573134661, 0.1065144315, -0.0558974855, -0.1284155399, 0.0421122946, -0.2641117871, 0.2549147904, 0.3779040873, 0.3833250999, 0.1246668771, 0.147572875, -0.3384438753, 0.2826265097, -0.0988742262, 0.2333384454, 0.2729008794, -0.1763688475, -0.0105024027, 0.1763129085, -0.0703591779, -0.0124292355, 0.4962878823, 0.1529972553, -0.0685526282, 0.6497216821, -0.1255203038, 0.2666554749, -0.2051956952, -0.1017902493, -0.2242462933, 0.1085183695, 0.1652181894, 0.4230501056, 0.0880164728, -0.4922735393, -0.0002899973, -0.4875631928, -0.2912003398, 0.0296430904, -0.1807316691, -0.1726982743, -0.2656084001, -0.159298569, -0.057556726, -0.0788837448, 0.0162843503, 0.1129723415, -0.1173202693, 0.3116276264, 0.2000624388, 0.5072774887, -0.2562712133, 0.2594951689, 0.0821841508, -0.0568789467, -0.3796786964, 0.3088052869, 0.3595707119, 0.0775061175, -0.0732033625, 0.2009996921, 0.138668254, -0.0200388581, -0.1240435988, -0.1266869754, 0.2567017972, -0.1307156533, 0.3112621307, 0.3762660623, 0.1354717761, 0.1799903214, -0.0426687859, 0.2209805995, -0.3313443363, -0.127176553, -0.2114595473, 0.1523427814, 0.1880950034, -0.0991335958, -0.032577008, -0.1734278202, -0.0032958023, -0.3369924128, 0.225021854, -0.0672367066, 0.2229286879, 0.1292154342, 0.039404355, -0.1944898963, 0.1897487491, -0.074060142, -0.2546187639, 0.1422499418, 0.0959821567, -0.1041063145, -0.1942656338, 0.1265155077, -0.1515433937, 0.1384012699, -0.1704876572, 0.3605219722, 0.2885664403, 0.0090998504, -0.1089859679, 0.0375529863, 0.2744553089, -0.2406707108, -0.2432504892, 0.3287856579, 0.2799151838, -0.2179433107, -0.3147361577, 0.0599589683, 0.4544463456, -0.0968635529, 0.154833436, 0.1305203289, -0.1125598475, -0.393134743, 0.1918276697, -0.0355828777, 0.3959639072, -0.1668742746, 0.1428048313, -0.2299607694, -0.2695543468, -0.1704967469, -0.1631459147, -0.2059123516, 0.4931283295, 0.0292813294, 0.4070112407, -0.1207148284, 0.1285173893, -0.2131287456, -0.0481494851, -0.1936928779, 0.0676938519, -0.2143937051, -0.1322392672, 0.1385964304, -0.0955877155, -0.1270776391, -0.0103417849, 0.0525065325, -0.17948322, 0.3726197481, 0.4224024415, -0.485264957, -0.0142985908, 0.1339583546, 0.1502496302, 0.3927716613, -0.4232257903, -0.0469775125, 0.0141324392, -0.1439704895, 0.2261119783, 0.2684984803, -0.1260865629, -0.1638017595, -0.1880354881, 0.1582813263, 0.0923997313, 0.1342812926, -0.5928848386, -0.4937510788 ]
https://github.com/huggingface/datasets/issues/3547
Datasets created with `push_to_hub` can't be accessed in offline mode
Thanks for reporting. I think this can be fixed by improving the `CachedDatasetModuleFactory` and making it look into the `parquet` cache directory (datasets from push_to_hub are loaded with the parquet dataset builder). I'll look into it
## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0
36
Datasets created with `push_to_hub` can't be accessed in offline mode ## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0 Thanks for reporting. I think this can be fixed by improving the `CachedDatasetModuleFactory` and making it look into the `parquet` cache directory (datasets from push_to_hub are loaded with the parquet dataset builder). I'll look into it
[ -0.3195171058, -0.3339677453, 0.0332719758, 0.2394816726, 0.1446232647, 0.0975356847, 0.4311662614, 0.1092434898, 0.1457218379, 0.002082299, -0.164107725, 0.093978785, 0.1401516795, 0.2055078447, 0.0176242907, -0.014554346, 0.2575738132, -0.1719705909, 0.1519204676, -0.0428157002, -0.1026386693, 0.2145073712, -0.2717151642, -0.0918260664, -0.4786058664, -0.1715521961, 0.0072418964, 0.1375299841, 0.0983123928, -0.1982851028, 0.5618562698, 0.0059411484, 0.103352353, 0.1883043349, -0.000118924, 0.1634402871, 0.1552412957, -0.1369487196, -0.2160771787, -0.2375619709, -0.1998865008, -0.2773494124, 0.1711933315, -0.3357679844, -0.2126461267, 0.2292057425, -0.0426310524, -0.3213085532, 0.1652081907, 0.2484101355, 0.1675602645, 0.5394250751, 0.1133316457, -0.1926931292, 0.3908043802, 0.0352408029, -0.4815357327, -0.0478920378, 0.216932416, 0.1057801321, -0.0873725936, 0.0955787376, -0.0401729494, 0.1236689389, 0.127931878, 0.2539870739, -0.2739548981, -0.2427001595, 0.223382473, 0.1836338341, 0.2832242548, -0.4607832134, -0.3038971424, -0.5668204427, -0.3989491165, -0.0569345802, 0.426217407, 0.1196077615, -0.1075300723, 0.1647398174, -0.1673900634, -0.3615065515, -0.180114761, 0.2553163767, -0.0507017635, 0.2435660064, -0.0127855092, 0.0654216409, -0.121055007, -0.0118902298, 0.1412380338, -0.1742902696, -0.0086733783, 0.014568775, -0.1901694685, -0.0139586134, 0.139995575, 0.176397115, 0.0491846278, 0.0565902777, -0.0936963707, 0.0154820308, -0.2260011882, 0.0614661798, 0.2883328199, 0.2885785103, 0.1107788533, -0.0467592515, 0.2462829053, 0.3686425388, -0.3089176118, -0.2441820949, 0.2574826479, -0.221730873, 0.329834789, -0.0473622307, 0.2780805826, -0.2934555113, -0.1470422745, 0.1202895492, 0.0250121579, 0.1021159291, -0.0152174262, 0.2891375124, -0.0235902332, -0.016841419, -0.0554352961, 0.3246846199, -0.4990616739, -0.1498200744, -0.2089681923, 0.1270388663, -0.0062382775, 0.0886949226, 0.2935880721, -0.491527319, 0.1563724577, 0.0505203009, 0.2745393813, -0.1385034919, 0.149503395, -0.1491165608, 0.2719367743, 0.1847939193, 0.3161770999, 0.1009786129, 0.3158431649, -0.2736134231, -0.015977215, 0.0239225496, -0.3096458614, -0.4561886191, 0.3782880306, 0.068119213, -0.426222831, 0.0375072211, -0.5627214909, 0.0123481723, 0.0651910901, -0.0928992555, -0.0258918703, 0.0867047384, 0.0271445215, -0.1568861157, 0.2006125003, 0.403621763, -0.202533409, 0.1583126038, 0.3658184707, 0.0338044502, -0.0837462544, 0.0716101751, -0.2401771694, 0.2471170127, -0.2227686942, -0.0970323756, 0.4733482301, -0.4486736059, -0.682259798, -0.0787166208, 0.065242283, 0.3112170398, -0.0814509913, -0.0059463875, 0.3603820801, -0.0259775128, -0.1450407058, 0.2583919466, -0.002107823, 0.1187849566, -0.418656081, -0.0454589166, 0.1694417149, 0.0165432412, 0.1650583893, 0.1634817421, 0.4258950949, 0.2574226856, 0.2256707251, 0.1872083396, 0.3208343685, 0.1611557156, 0.0836451277, 0.1437808871, 0.1998039931, -0.1411563605, -0.4150831401, 0.2895509899, -0.0267131962, 0.1599520296, -0.4241291881, -0.1928527355, -0.2295521498, -0.0593568981, -0.3631531894, -0.172897473, 0.0951196179, -0.0654123798, 0.2586471736, 0.2109872401, -0.034633562, 0.624504745, 0.1341839284, 0.0416041948, -0.4798690975, 0.8153215051, 0.1306831241, -0.0041590258, -0.1969144791, 0.1620591283, 0.1795417815, -0.1256811768, -0.2401777655, 0.2919608951, 0.2330814302, 0.3122935295, 0.1290652752, 0.2360831946, 0.3139644563, -0.2188427001, 0.2941648364, 0.0083270716, 0.1413949728, -0.0522136688, -0.2164560109, 0.4521490932, 0.1155318916, 0.3692089319, 0.0183280259, -0.0279619191, 0.2950905263, 0.2456363291, -0.0211329684, -0.2528880835, 0.1909266114, 0.0289855767, 0.0162207484, -0.4276538491, -0.0096478099, 0.3168670237, 0.4420224428, 0.3086488843, 0.0359031521, -0.0672060177, -0.0577678457, -0.120033145, 0.1472230405, 0.0521622226, -0.0485136397, 0.040819779, 0.0440229736, 0.2782534957, -0.2542057335, -0.0917931348, 0.0560676865, 0.1655015796, 0.2912888825, 0.0378454775, 0.3271937966, 0.0519957878, -0.1471971422, -0.1076665819, 0.0051952805, 0.261855036, -0.267165035, 0.0787256509, -0.2876366377, -0.0107282586, 0.0785477683, -0.1524829566, -0.5600878596, -0.5373478532, -0.0053536119, 0.5398571491, -0.026120333, -0.0056678946, 0.0515900142, 0.1115512699, -0.165267691, -0.2394002676, -0.1965786368, -0.5324935317, -0.211294964, 0.0199741926, 0.1049961001, 0.12438225, 0.3899325728, -0.1711917371, -0.0234611686, -0.5424862504, -0.1873882264, 0.0501783416, -0.0959549919, 0.2982405126, -0.0695232973, 0.1149682552, -0.1324275434, -0.0093096867, 0.439733386, -0.3568196595, -0.0003142281, 0.1426495314, -0.3024093509, 0.0539277606, 0.188765496, -0.4706176817, -0.3092303872, -0.2282695621, 0.0954501331, 0.1998714805, 0.025868075, 0.1106333509, -0.2696457207, -0.1224223003, 0.1470930725, -0.0511517189, -0.2089462876, -0.4900513887, 0.1975857466, -0.5021387935, -0.3814417422, 0.3539157212, 0.0862261951, 0.2027066648, 0.3184290826, -0.4994578063, -0.1258062124, -0.0575966202, 0.3294219375, 0.1062882915, -0.1883647591, 0.3428941667, -0.0849053189, 0.1758502275, -0.139179334, 0.0057723061, 0.2529509366, 0.2663900852, 0.1100352779, 0.0226508491, 0.0796230286, 0.1728400439, 0.1711196899, 0.0073451903, 0.397059381, 0.6783841252, 0.0041830605, 0.328664571, -0.5421411991, -0.1680478901, -0.2083495557, -0.2083882391, -0.2667061687, 0.1349436194, 0.1770355254, -0.1808101833, -0.4266962409, -0.3250537217, -0.3013278842, -0.489774406, -0.3857289851, 0.0549451523, 0.1505643725, 0.2303876877, 0.2045458853, -0.5071662068, -0.3238655627, 0.0454309247, 0.3215362132, 0.0941439569, 0.166450873, -0.1811556518, -0.045524817, -0.4901768863, 0.1371736228, 0.0847682059, 0.3333132267, -0.0121753728, -0.0098281736, 0.296587944, -0.1578251123, 0.7644295096, -0.4109387994, 0.3581613898, 0.2868555188, -0.0218761601, -0.4699097276, -0.0978844836, -0.1483996958, 0.0463022888, 0.1281446815, 0.5464254022, 0.0231827758, -0.0836843923, -0.4119620323, 0.0386996157, -0.0668675378, -0.0443955027, -0.1555601805, -0.0186867826, -0.3671362996, 0.0896154493, 0.1313773543, 0.454166621, -0.1571490318, -0.0119982474, 0.1078333855, 0.2317920029, -0.2106553614, 0.0584547333, 0.3091223836, -0.2243590951, 0.3164305985, 0.0817899182, 0.3503752351, 0.2076222897, 0.4480514228, 0.07363493, -0.1105415076, 0.1411438137, 0.0272309091, -0.1046573892, 0.3686093986, -0.0029287846, 0.2148870379, -0.3652557135, 0.1675773561, -0.184741199, -0.0570085533, -0.1084870845, -0.0614427179, -0.3814068139, -0.2778775394, 0.2756737471, -0.1518655568, 0.0425367355, 0.0945701003, 0.3532729149, -0.2335450351, 0.6277748346, -0.02354821, 0.8573259711, 0.054055348, 0.1997643709, 0.1652622819, -0.0829091519, 0.520129323, -0.6512085795, 0.2253192961, -0.2071950436, -0.322016865, -0.0991679057, -0.0544231459, 0.2560589015, -0.1122518554, -0.0664681569, 0.1736676693, -0.0098931743, 0.4296161532, -0.3739534318, -0.141055122, -0.1711154878, -0.1369216144, -0.4737472534, 0.1297462285, 0.1214586347, 0.2493877858, -0.1677751839, -0.0814536363, -0.3170722127, 0.1077905595, -0.3566490114, 0.1108534485, 0.0685229078, 0.0874101967, 0.0320431814, -0.262604475, -0.1052799821, 0.1273821145, 0.7091279626, -0.0060210093, -0.4931010306, -0.0151047818, -0.1314924061, -0.1000237688, 0.1595714986, 0.1072847918, 0.124250263, -0.1377652884, -0.3415492177, -0.0151568297, -0.2174984366, -0.3013838232, 0.1349545121, -0.1591064334, 0.0888382867, -0.2382989973, 0.0609323457, 0.168163538, 0.085959956, -0.2580934167, 0.0925714076, -0.0520694889, -0.0188901182, 0.0085398005, -0.2711754143, -0.1645306498, -0.1212200448, 0.5823928714, 0.0368510298, -0.0439640395, 0.0813830197, 0.4108031094, -0.3721684217, -0.0921464413, 0.1580427587, 0.2020828128, -0.4676923454, 0.0244576409, 0.0823899508, 0.3038544357, 0.0030701288, 0.3824775219, -0.0010812115, 0.0533824675, 0.0146379881, -0.4000466466, -0.3705711961, 0.0716315508, -0.0357833318, 0.0771481395, 0.227210179, 0.0440874025, 0.1431326717, -0.0122868698, -0.2610748112, 0.0960658193, -0.1513594836, 0.0840889066, -0.1557956636, -0.1173404902, 0.3455449939, -0.1610903889, -0.0167167671, 0.1029997095, -0.3891220391, -0.1261347234, -0.044101093, 0.1816444099, 0.1878144145, -0.2739665806, -0.1605556607, -0.2088873535, -0.163212359, -0.3191873729, 0.5172192454, 0.6256864071, -0.0643844008, -0.1517383605, 0.81638062, 0.1470449269, -0.4062416553, -0.0464319959, 0.1162150428, 0.1018865407, -0.2676328421, -0.0031122242, -0.3179641068, 0.0865202025, -0.0615286194, 0.1256627142, 0.1309511662, 0.219955191, 0.5808963776, -0.2143790275, 0.0658685043, 0.2634932101, 0.4108806252, -0.1564916819, 0.0869916156, 0.0146777341, 0.1981386691, 0.0914279073, -0.26441589, -0.3308038414, 0.4399484992, 0.1504875273, 0.0342824198, 0.120620124, 0.6583538651, 0.0371115319, 0.0686900094, 0.0723002702, 0.8008736372, -0.4622962177, 0.1793776453, 0.2178478241, 0.1490879208, 0.3490901887, -0.0434687175, 0.1405548453, 0.0196972061, 0.337469399, 0.0065861107, 0.2236322016, 0.3139278889, -0.0257163029, -0.0647006109, -0.4322153628, -0.2357670963, -0.0461851656, -0.0405803621, -0.010298592, -0.3669739068, 0.0974481478, 0.1118927002, -0.1226586699, -0.2552700639, 0.1273623556, -0.2044450492, -0.0312314779, 0.1718696058, -0.3047900796, -0.2165378779, 0.0379464254, -0.1011012569, -0.203952834, 0.0943767428, -0.0418124981, 0.1687801927, 0.0014239382, 0.1048218608, -0.0110360058, 0.2680755258, 0.031820301, 0.2901629508, -0.1139727011, -0.234399721, -0.0143916756, 0.0627359003, 0.3469980061, 0.0052393968, -0.1204150468, 0.1797633469, 0.160717383, -0.0848001614, 0.0717510357, 0.1112727225, -0.0273918118, 0.0533164144, 0.3339763582, 0.0669448674, -0.0587665103, 0.1267810315, 0.0065096505, 0.1247109994, -0.2294456661, 0.3299072981, -0.1632560641, -0.1825605482, -0.0454242378, -0.11541868, -0.2307642847, -0.3428757787, 0.1961639971, -0.123952508, 0.2817004323, -0.1349473447, 0.0326386727, -0.1700457036, 0.4315828681, 0.2093702108, 0.0130572217, -0.1737456173, -0.2698657215, -0.4582303166, 0.3578880131, -0.2666083276, 0.0333286114, 0.1792382747, -0.0365669616, -0.1417022198, 0.1076285467, 0.0785519332, 0.3431120217, 0.0260858405, 0.0902868211, -0.2846119404, -0.2791592181, 0.1981435716, -0.217411235, -0.1607577205, -0.1978187412, 0.2215373516, 0.0952954292, -0.0984887928, 0.0490883887, 0.0649611428, 0.1182682142, -0.2033797801, 0.1982626915, 0.0734956339, 0.2365975231, 0.1014475748, 0.0833476335, -0.3696395159, -0.220623225, -0.0201356076, -0.0219331905, -0.3162955642, 0.3768266439, -0.2327426225, -0.3347854316, 0.0032126675, 0.1364904493, 0.1509335339, 0.4624350071, -0.0575587377, 0.0303584877, -0.1047424749, 0.1909103096, 0.18937397, 0.0218245313, 0.0603679121, 0.3743233979, -0.0856865942, -0.2340211272, 0.4714112878, -0.1710334867, -0.2050458342, -0.34141469, 0.3234484196, 0.2378303558, -0.2133416086, -0.3434581459, -0.150155127, 0.3011903167, 0.0456948541, -0.1048600599, 0.2388042957, -0.0591243804, 0.0110858902, 0.0660840869, 0.2696884274, -0.0184772611, -0.1374952942, 0.1898769736, -0.150501281 ]
https://github.com/huggingface/datasets/issues/3543
Allow loading community metrics from the hub, just like datasets
Hi ! Thanks for your message :) This is a great idea indeed. We haven't started working on this yet though. For now I guess you can host your metric on the Hub (either with your model or your dataset) and use `hf_hub_download` to download it (docs [here](https://github.com/huggingface/huggingface_hub/blob/main/docs/hub/how-to-downstream.md#cached_download))
**Is your feature request related to a problem? Please describe.** Currently, I can load a metric implemented by me by providing the local path to the file in `load_metric`. However, there is no option to do it with the metric uploaded to the hub. This means that if I want to allow other users to use it, they must download it first which makes the usage less smooth. **Describe the solution you'd like** Load metrics from the hub just like datasets are loaded. In order to not break stuff, the convention can be to put the metric file in a "metrics" folder in the hub.
48
Allow loading community metrics from the hub, just like datasets **Is your feature request related to a problem? Please describe.** Currently, I can load a metric implemented by me by providing the local path to the file in `load_metric`. However, there is no option to do it with the metric uploaded to the hub. This means that if I want to allow other users to use it, they must download it first which makes the usage less smooth. **Describe the solution you'd like** Load metrics from the hub just like datasets are loaded. In order to not break stuff, the convention can be to put the metric file in a "metrics" folder in the hub. Hi ! Thanks for your message :) This is a great idea indeed. We haven't started working on this yet though. For now I guess you can host your metric on the Hub (either with your model or your dataset) and use `hf_hub_download` to download it (docs [here](https://github.com/huggingface/huggingface_hub/blob/main/docs/hub/how-to-downstream.md#cached_download))
[ -0.5048287511, -0.1317422688, -0.0456834771, 0.1188793108, 0.0301415231, -0.0557257459, 0.1593100578, 0.013089898, 0.4941082001, 0.4180036783, -0.4741497338, 0.2941925526, -0.0305409059, 0.3988614082, -0.0859557539, -0.0085316356, -0.2955570221, -0.0084171826, -0.1162706763, 0.0474631749, 0.0530210547, -0.1613151282, 0.2532276809, 0.2135640383, -0.3227630258, 0.0802231282, 0.200645268, 0.1970958859, -0.272824049, -0.2717384398, 0.4238561392, 0.563033402, 0.1159579754, 0.3305654824, -0.0001061543, -0.0786159858, 0.2991356254, 0.0714590698, -0.2334747314, -0.2987891734, -0.0998636559, -0.0467876755, 0.1687866002, 0.1064796969, -0.2268282026, 0.1906069964, 0.0272016674, -0.0006078607, 0.0478473082, -0.0264001694, 0.2057810575, 0.4432120919, -0.3400794864, -0.4115640819, -0.3352016509, 0.5020110011, -0.1131511852, 0.6779901981, 0.2542402744, 0.1181295142, -0.1706926376, 0.0282253902, 0.2171237767, 0.2356938869, 0.5956739783, -0.0598752275, 0.1636101305, 0.0851397812, -0.0610252991, 0.408501476, 0.3021130562, -0.1725061536, -0.1158093214, -0.171630919, 0.0671825334, -0.239523381, -0.0074468129, -0.0297320355, -0.1379470527, 0.2530712783, -0.2390895635, -0.3526848257, -0.2399854511, -0.0570027977, -0.0826096013, 0.1024699882, -0.1462442875, 0.0091399569, -0.0159792677, 0.0984272957, -0.0335093401, 0.0513621233, -0.0967071727, 0.1604797244, -0.0273147114, 0.0006597965, 0.0604098253, 0.4617576003, 0.4568031728, 0.0989834443, 0.2230919302, 0.2363080978, -0.2709519863, 0.1536441743, 0.166639328, -0.0514116026, 0.3012267649, 0.0900227875, 0.3651629388, 0.3395867646, 0.0630213916, -0.2943931818, 0.0013648012, 0.0950856283, -0.2591580451, -0.02827744, -0.1462461352, -0.202771455, -0.1327975243, -0.3450411558, 0.6931810975, 0.0107111717, 0.5417448878, 0.3176421821, 0.0588980764, 0.1156138033, -0.2716208696, 0.1921785772, -0.1241530031, -0.083054617, -0.2337158322, -0.1367152929, -0.058192689, 0.5368869305, 0.2357902378, -0.4752218425, 0.2796852887, -0.1052461565, 0.4121450782, -0.188922897, -0.1375775039, 0.1757005006, -0.3105192482, -0.000621522, 0.0973390788, -0.0083370209, 0.017648587, -0.081687659, -0.3113298118, -0.1079661101, -0.4191294312, -0.4300988317, -0.1207526252, 0.1663353592, -0.2481537908, 0.0390246846, -0.3980374038, 0.2604451776, -0.4555785358, -0.0795758441, -0.1187219918, 0.4053472281, -0.4844878614, -0.0446178988, 0.1672067642, 0.311799556, -0.0116003435, -0.3317887187, 0.0522928573, -0.1847350746, -0.33951208, 0.0058228378, -0.3431920707, 0.2713150382, -0.0651894733, 0.0612058826, 0.4639921188, -0.7296114564, -0.3447312713, 0.0470645651, -0.1977259815, -0.1224221885, -0.0847091451, 0.0929162726, 0.2078303695, -0.0274925791, 0.1770866662, 0.3326742649, 0.2414586246, -0.0928219855, -0.1835445911, -0.3459459245, -0.2056160122, 0.2501345277, 0.1853288561, 0.2791808248, 0.4789742827, 0.1579927057, 0.1434044838, 0.016690705, 0.024214752, 0.0730511993, 0.0910600871, -0.0173861142, 0.0259931907, -0.3406644464, 0.0581322946, 0.3591675162, -0.3307290375, -0.2445979863, 0.4301565886, -0.2815644145, -0.5987865925, 0.0479110517, -0.1537450999, 0.1859924644, 0.0626041591, -0.2454629987, -0.0970345214, -0.0847763196, -0.1952188462, 0.6768413186, -0.3861151636, 0.0737623647, 0.0159383789, 0.3578000665, 0.0738203451, 0.1324584633, 0.1614789367, 0.0508241467, 0.1817267239, 0.2040106952, -0.1290761828, 0.3390098214, -0.2217947096, 0.5933007598, 0.1906089038, 0.312959969, 0.4003566206, 0.0135594718, 0.2407014519, -0.3326103687, 0.0620368086, 0.0203187913, -0.4599305987, 0.4124235213, -0.0898023769, -0.1582268029, -0.1493537426, -0.0730363801, 0.038199503, -0.0086762067, -0.2438449413, -0.1727915853, 0.141429171, -0.1632408798, 0.0497475229, -0.1695921272, 0.2954286039, -0.0324655287, 0.2090897411, 0.2398215085, 0.1131672636, 0.1595122814, -0.1599697173, 0.0739758685, 0.0628266782, -0.3479552269, 0.3871248066, 0.2069302499, 0.1549098194, 0.0545403771, 0.0346076004, -0.139032349, -0.145404011, -0.0331106782, -0.0943501368, 0.1842845231, 0.2141077965, -0.0747528076, -0.4123501182, 0.1814620495, 0.069358319, -0.0731626377, -0.2632796764, -0.1892240494, -0.0068980157, 0.2533794641, 0.3100185096, -0.2020059973, -0.2694751918, -0.1015036628, 0.2656511068, 0.4933465421, 0.0952444598, -0.0005408189, 0.1782478094, 0.5631861091, -0.2715005577, 0.1884183139, -0.2121147066, -0.1278710812, 0.0593701564, 0.0203208048, -0.0393019766, 0.1951871216, 0.2764164507, -0.0951632261, 0.4720877409, -0.1343568861, -0.2242959887, 0.113420926, 0.2601185739, 0.3740411699, -0.1224244088, 0.1001453549, -0.0113252737, 0.060162086, 0.3156374097, -0.2842019796, -0.0049889302, 0.0033768115, -0.1428983808, 0.0821565017, -0.1812293231, 0.0957568362, -0.240850389, -0.5417824984, 0.167207092, 0.3180844784, 0.0454223752, 0.061046306, -0.0065477095, 0.017738672, -0.0001519851, -0.1139749959, -0.3045318127, -0.567332387, 0.2799918652, -0.4677863121, -0.2844168842, 0.0358985215, 0.2711376548, 0.107254073, -0.2286890596, -0.2398109287, -0.6675009727, 0.1405433118, 0.2934445739, 0.0415147617, -0.0323005058, 0.142823711, -0.1279292107, 0.0273349043, -0.0762030259, -0.1513915062, 0.0574275106, 0.2127248943, -0.0678131804, -0.1173644811, -0.1311901659, 0.1090189517, 0.3894679546, 0.172210902, 0.0703132153, 0.2546948791, -0.0145430183, 0.4403128326, -0.168382585, -0.0552135743, 0.1359040886, 0.0537485741, 0.1766206771, 0.4084231555, 0.5067662597, 0.2259187549, -0.2642564178, -0.5897677541, 0.0526558608, -0.2048519701, -0.3351510763, 0.0211505536, 0.0855383798, 0.1228948757, 0.0984387621, -0.4724998772, -0.337506026, 0.4288730919, 0.4539532959, 0.1887748539, 0.1107929423, -0.2020160407, 0.0762830079, -0.3627966046, 0.1515917629, -0.0795794949, -0.2961621583, -0.2789686024, 0.2649650872, 0.2060846984, 0.0807679445, 0.2234434932, -0.2403434366, -0.0001103715, -0.2708271146, 0.0278987195, -0.3226920962, 0.0680142939, 0.2340037376, 0.1108150929, -0.3512449861, 0.7541882992, -0.1939595342, -0.3428581357, -0.1417521685, -0.1781841069, -0.3749881089, -0.2862377167, -0.1166895553, -0.2185716629, -0.2630385458, -0.0115679651, -0.1404976845, 0.3670029938, 0.0040808688, -0.0824597403, 0.0813004225, 0.1765939742, 0.1261095405, 0.2099116892, 0.2018911839, 0.1526970118, -0.0747425929, 0.324824512, 0.0612323508, -0.1422637254, 0.3360598683, 0.2456801981, -0.156572789, 0.0374368876, -0.1429227591, 0.1231860965, 0.4008589685, -0.016345663, 0.1524536908, 0.1865785271, 0.0226152074, -0.7064365149, 0.2133946419, -0.1848086119, -0.1317034215, -0.0266105775, 0.0916368663, 0.6506912112, 0.0812941492, -0.1036815345, 0.3239157796, 0.2183001488, -0.130918026, 0.0893219784, 0.1590096802, 0.8972668052, -0.2280816138, -0.2367424965, 0.0556001551, -0.2937387526, 0.2437506765, -0.56005615, -0.0709657818, -0.079528302, -0.1563221663, -0.1078456044, 0.1243200004, 0.1541559547, -0.0567520522, 0.1917734295, 0.1044699401, -0.1934961379, 0.3148973882, -0.1713177711, 0.3870482445, -0.3229314387, -0.4780906439, -0.0723057389, 0.1850525886, -0.1983753145, 0.3153461218, -0.1655014455, -0.2220815569, 0.1485488117, 0.0581409261, -0.0286416095, -0.235860765, 0.264692843, -0.1315310001, 0.0871137679, 0.1499890983, 0.0772645473, 0.0475551859, 0.5930353403, 0.2018430233, -0.504642427, 0.3087294996, -0.5075591803, 0.0620488673, -0.2953307927, 0.1415158212, 0.0003126395, -0.3050224185, -0.2143001407, 0.0744173005, 0.1610914618, -0.3301723599, 0.009463775, -0.0737172738, 0.3963799775, -0.1794392765, 0.3122736514, -0.0412743054, 0.1648460627, -0.199944064, 0.1456661373, 0.1368957907, -0.1645733714, -0.0429413468, 0.3387133181, -0.1403824091, -0.0360042267, 0.366094619, -0.1861267239, -0.3352016807, -0.1046272591, -0.1697075814, -0.2588668764, -0.1594762653, -0.163490355, 0.2724344134, -0.3372071683, -0.1065231264, 0.3503456712, -0.1288551688, -0.0470444895, 0.3014883399, 0.2077185959, -0.2279188782, -0.1001672894, -0.3715107739, -0.2427015901, 0.1880505532, -0.3391268253, 0.0509731881, 0.004673433, -0.1262137741, -0.0755740255, 0.2705727518, -0.3584283888, -0.0560632721, -0.1579488367, -0.1520433724, -0.1355563551, 0.003184991, 0.1065161601, -0.0867399126, 0.0233445112, 0.1628152579, -0.4477730393, -0.1814383715, -0.2622846663, 0.129831776, -0.0926202983, 0.270940125, -0.2019773126, -0.0935631171, -0.243150264, -0.1159063503, 0.2874860466, 0.2738197148, 0.0101145068, -0.179381758, 0.310053885, 0.3457196951, -0.1881119013, 0.3148343265, 0.4651276171, 0.3002517819, -0.2608164251, -0.0493974127, -0.2312412411, 0.0305474028, 0.030951215, 0.2605713308, 0.7275731564, 0.0086935973, 0.3225583434, 0.0784855336, 0.2294841111, -0.0420617908, 0.2070518434, -0.2318973839, -0.0388511606, 0.1729872823, 0.0091950074, 0.161803335, -0.0493808426, -0.2145022303, -0.0582467169, -0.1469709277, 0.0335836746, 0.1825304031, 0.5594881177, 0.1063980162, 0.0964458957, 0.0284281038, 0.2499558032, -0.05414645, -0.2209249288, 0.086019069, -0.0344030745, -0.0243452862, 0.5314959288, 0.227954343, -0.0042016846, 0.2313636392, -0.1107209995, 0.2765267491, -0.1016247123, 0.3531287014, 0.0896654055, -0.1747845709, -0.0287757628, -0.1367893219, 0.079022266, -0.012443061, -0.2209387273, 0.1674501747, -0.242386952, -0.1722509563, -0.27762869, -0.0290577263, 0.0274292231, -0.2259179503, -0.3901976347, -0.3391030133, -0.0992174149, -0.0981811732, 0.1242767796, -0.0975043178, -0.0642687008, -0.1957184523, 0.1790015846, 0.0093848864, -0.0466323607, 0.5147830248, 0.1704203933, -0.0091556739, 0.1720283926, -0.2016951889, 0.2349709272, 0.3387093842, 0.3031464219, -0.1972145289, -0.1752578467, 0.0412298888, 0.1933888942, -0.0255297665, -0.1027622148, 0.0669054687, 0.0698570907, 0.0601835176, -0.1759072542, 0.2923533916, 0.2483083457, -0.1833929718, 0.110010162, -0.496029377, 0.1147863567, -0.4270640612, 0.477134198, 0.0238115806, 0.0183352921, 0.0852262005, -0.2644189894, -0.0227926727, -0.0262944326, 0.2259401679, -0.1155135855, 0.1929724813, -0.3219934702, 0.0865621641, -0.1385950595, 0.2593187094, 0.1579699069, -0.1493783742, -0.1149773225, -0.0666785911, -0.3314993382, 0.1063968688, 0.1682256162, 0.2749108672, 0.2793799639, -0.0189214852, 0.0611369014, 0.2219919115, -0.0125084762, -0.1061215997, 0.0754536092, -0.1498035342, -0.0748880133, -0.0531846061, -0.0587384887, -0.0599142909, -0.0900396481, -0.0248761903, 0.2379768193, -0.1095691547, -0.0094959727, -0.0064774291, 0.0323245674, 0.1324889809, 0.0333070271, 0.2736861408, -0.073611699, -0.0790024921, 0.0401067212, 0.2063449323, -0.2396401167, -0.140549764, -0.0373939984, -0.2535832226, -0.214966625, 0.1047827676, -0.0844286457, -0.2639554143, -0.1684363335, 0.0585095137, 0.044787962, -0.2124752998, 0.0753054991, -0.1847130507, -0.3939308822, -0.0122664925, 0.2480079532, 0.2472974062, 0.138718307, 0.0394090191, 0.1098650768, -0.0208893921, 0.4418568313, -0.1265903413, -0.1964157373, 0.078023605, 0.349860549, 0.3384341896, -0.24656865, -0.3824707866, 0.1809915453, 0.2244132906, 0.0041624862, 0.1502471119, 0.3942198455, -0.2214934826, -0.0066737924, -0.1914653182, -0.2909551263, 0.0473632514, 0.0318113007, -0.0152309621, -0.0162139665 ]
https://github.com/huggingface/datasets/issues/3543
Allow loading community metrics from the hub, just like datasets
Here's the code I used, in case it can be of help to someone else: ```python import os, shutil from huggingface_hub import hf_hub_download def download_metric(repo_id, file_path): # repo_id: for models "username/model_name", for datasets "datasets/username/model_name" local_metric_path = hf_hub_download(repo_id=repo_id, filename=file_path) updated_local_metric_path = (os.path.dirname(local_metric_path) + os.path.basename(local_metric_path).replace(".", "_") + ".py") shutil.copy(local_metric_path, updated_local_metric_path) return updated_local_metric_path metric = load_metric(download_metric(REPO_ID, FILE_PATH)) ```
**Is your feature request related to a problem? Please describe.** Currently, I can load a metric implemented by me by providing the local path to the file in `load_metric`. However, there is no option to do it with the metric uploaded to the hub. This means that if I want to allow other users to use it, they must download it first which makes the usage less smooth. **Describe the solution you'd like** Load metrics from the hub just like datasets are loaded. In order to not break stuff, the convention can be to put the metric file in a "metrics" folder in the hub.
55
Allow loading community metrics from the hub, just like datasets **Is your feature request related to a problem? Please describe.** Currently, I can load a metric implemented by me by providing the local path to the file in `load_metric`. However, there is no option to do it with the metric uploaded to the hub. This means that if I want to allow other users to use it, they must download it first which makes the usage less smooth. **Describe the solution you'd like** Load metrics from the hub just like datasets are loaded. In order to not break stuff, the convention can be to put the metric file in a "metrics" folder in the hub. Here's the code I used, in case it can be of help to someone else: ```python import os, shutil from huggingface_hub import hf_hub_download def download_metric(repo_id, file_path): # repo_id: for models "username/model_name", for datasets "datasets/username/model_name" local_metric_path = hf_hub_download(repo_id=repo_id, filename=file_path) updated_local_metric_path = (os.path.dirname(local_metric_path) + os.path.basename(local_metric_path).replace(".", "_") + ".py") shutil.copy(local_metric_path, updated_local_metric_path) return updated_local_metric_path metric = load_metric(download_metric(REPO_ID, FILE_PATH)) ```
[ -0.47042045, -0.1260262728, 0.0011760294, 0.1479982883, 0.0563812032, -0.0769120753, 0.1348915249, 0.0765777901, 0.6092924476, 0.4103240371, -0.5060341358, 0.2940291762, -0.0671618879, 0.2850588262, -0.073428452, -0.0907046348, -0.2695915997, -0.027828997, -0.1544400901, -0.0260260329, -0.0280564688, -0.1558344662, 0.208050698, 0.1911709756, -0.1678883582, 0.1476731002, 0.1840713173, 0.2838586569, -0.2053977847, -0.3304077089, 0.4456526935, 0.5503481627, 0.1883531809, 0.3859694302, -0.0001135956, -0.087557584, 0.2550706267, 0.1105500162, -0.2337158918, -0.3525861204, -0.0754410177, -0.2017875165, 0.2018484026, 0.0904764906, -0.1953088343, 0.1337654293, -0.0052480283, -0.0347209573, 0.1268303543, -0.041897811, 0.1403917223, 0.5090542436, -0.4325531721, -0.4037281275, -0.2709551156, 0.4168078303, -0.1642151028, 0.7467908263, 0.2396560758, -0.009979438, -0.1102262512, -0.0478146002, 0.0756047964, 0.2568552196, 0.6512978673, -0.0675272793, 0.2330901921, 0.1151654422, -0.1534955949, 0.3534965515, 0.214093551, -0.2449530065, -0.1234984249, -0.1763202846, 0.0345768556, -0.3227670789, -0.063217923, 0.008565302, -0.1887709647, 0.2590175867, -0.1045302302, -0.4148364961, -0.2106392533, 0.0558638349, -0.0368169323, 0.2049690783, -0.1062417179, 0.0431373306, -0.0101787373, 0.1935497969, 0.0538456514, -0.0365653224, 0.0431547165, 0.2609762251, -0.0955907851, 0.0587804988, 0.0312891267, 0.4027685523, 0.4302577674, 0.2181356847, 0.1376516968, 0.1905733943, -0.2361375391, 0.0994972885, 0.1102149934, -0.04319207, 0.2460263819, 0.1777607054, 0.3514087796, 0.4180752933, 0.0317085572, -0.2101013958, -0.0810456723, -0.0173751302, -0.1889166087, 0.0157539155, -0.0288811699, -0.1531413496, -0.1056935564, -0.2846637964, 0.5684272647, 0.0382226743, 0.5057634711, 0.3517762423, 0.0236571915, 0.200572893, -0.2550625205, 0.2763522863, -0.1900285631, 0.0690013766, -0.208400324, -0.058752127, -0.0582617708, 0.5887375474, 0.234677285, -0.5247986317, 0.2368823886, -0.0200496782, 0.4915433526, -0.1969480515, -0.0732841641, 0.1076072454, -0.2679136395, 0.0220669657, 0.0579363778, 0.1327778846, 0.1491750777, -0.0598002784, -0.3408455253, -0.0260327738, -0.4711170495, -0.4081010818, -0.104082711, 0.1098521054, -0.2859271169, 0.0734653994, -0.4317523539, 0.0775855109, -0.4821166694, 0.0047325618, -0.1120350212, 0.2686304152, -0.4315986037, -0.1315025389, 0.2438562512, 0.433978349, 0.0677798092, -0.2590993345, -0.0088184122, -0.1126210317, -0.2572835684, 0.1092869267, -0.3610680103, 0.2790735364, -0.0954107568, 0.0389836766, 0.5211933851, -0.9458455443, -0.3328951895, 0.0644901022, -0.1664204746, 0.0073259049, -0.0065961075, 0.0809182301, 0.2234164476, -0.0517421365, 0.2329121083, 0.3964783549, 0.3361794055, -0.0482212827, -0.1591375321, -0.3762647808, -0.1921636462, 0.2307858616, 0.2786687016, 0.3496336639, 0.4163074791, 0.1680487394, 0.2255158871, -0.0263606831, 0.0003293677, 0.0974825844, 0.1049616039, 0.1143806353, 0.0129299192, -0.3890976906, 0.0799956247, 0.373683095, -0.2948548496, -0.2535491288, 0.3295487761, -0.3071290255, -0.6497320533, 0.0717398152, -0.2174429446, 0.2218300402, -0.0094779041, -0.1320743263, -0.1342637092, -0.0985230953, -0.1925448328, 0.7412905693, -0.3466995656, 0.1802423149, 0.1307884306, 0.4312155843, 0.0543901064, 0.1018291712, 0.1308614314, 0.0267634802, 0.2703485191, 0.1251389533, -0.0699020028, 0.3287084401, -0.0880891606, 0.4650450051, 0.275870055, 0.2898957729, 0.4067501426, -0.0054784263, 0.2856782377, -0.2366473377, 0.1057587713, 0.0245724656, -0.3323641121, 0.4842098653, -0.0818308592, -0.1042986587, -0.1160514802, -0.061478205, -0.0328242406, -0.0258056056, -0.2667109668, -0.1020417213, 0.1413585544, -0.0467018522, -0.0725788847, -0.1981919259, 0.3134128153, -0.1237371787, 0.2371424288, 0.2091755718, 0.1050274521, 0.0258195382, -0.1288860142, 0.1993851215, 0.0162910223, -0.3479981124, 0.3831092119, 0.144057706, 0.1234130114, 0.1185271814, -0.0506288409, -0.0750526488, -0.1804741025, 0.0105949333, -0.1091973037, 0.1926471293, 0.1619761586, 0.0011688176, -0.4022043347, 0.1124765053, 0.0063633984, -0.032533709, -0.3390609026, -0.1496532857, -0.0382808857, 0.2645614445, 0.2170617431, -0.215788424, -0.2793004215, -0.1349744052, 0.0750922412, 0.5538930297, 0.1614894867, 0.0468637086, 0.1447573304, 0.5236111879, -0.2551169097, -0.0568954013, -0.1482296884, -0.0142179877, 0.1439612955, -0.0725771636, -0.0454466045, 0.1739037931, 0.2413812429, -0.0912044868, 0.4172994792, -0.2088560015, -0.1891919076, 0.0768807977, 0.2501607239, 0.46110636, -0.0929700583, 0.1304717511, 0.0025872416, 0.0090274941, 0.3372781873, -0.3128146827, 0.0546655022, -0.0676622465, -0.0604061708, 0.1071836278, -0.1951392442, 0.111132957, -0.2213587314, -0.5807491541, 0.1501951516, 0.439825356, 0.0685188919, 0.0794208124, 0.0031906147, 0.0320579819, 0.0665731505, -0.0774656385, -0.2650558949, -0.4061392248, 0.2982349694, -0.4582742155, -0.2638453841, 0.0022569669, 0.1692916602, 0.0940053314, -0.1531166136, -0.2486804277, -0.7160105109, 0.0647157282, 0.4212592542, -0.0038627677, 0.0864088535, 0.1784058064, -0.1395206302, 0.0859607682, -0.0885400474, -0.1797664165, 0.0611111782, 0.3109692037, -0.1558005065, -0.0821069628, -0.1974601299, 0.0424809754, 0.4971698225, 0.1698800772, 0.2713297904, 0.3501394689, -0.0511982888, 0.5025961995, -0.1764496565, -0.1557632387, 0.0280106124, 0.1081064045, 0.1495097578, 0.3067952394, 0.5071967244, 0.3047134876, -0.2153476775, -0.6147101521, 0.0037621448, -0.2263053805, -0.339966923, 0.0314561576, 0.1318852901, 0.0846068263, 0.1593501717, -0.5748668313, -0.2776645124, 0.4903755486, 0.637147963, 0.1280492991, 0.1518920213, -0.1206053272, 0.0552968457, -0.3585391641, 0.1530967355, -0.057159353, -0.2637101412, -0.2079836577, 0.270134598, 0.200763613, 0.0330255441, 0.1991901547, -0.2255009562, 0.003159794, -0.1423275322, 0.0159942303, -0.4304148555, 0.0029649583, 0.1917707473, 0.099368453, -0.4750193059, 0.847845614, -0.1738599092, -0.4247583449, -0.034800116, -0.0756861269, -0.2989982963, -0.2295330763, -0.1366301179, -0.3459232152, -0.3227376342, -0.1217513382, -0.0941434205, 0.3434232473, -0.0047206907, -0.0175199211, 0.1096531451, 0.1947849393, 0.1948297769, 0.1111350805, 0.2148857713, 0.2373467088, -0.0780703351, 0.249504596, -0.0522931293, -0.1744696796, 0.3820414245, 0.2253185362, -0.3070632219, -0.0762839913, -0.07833267, 0.1371464133, 0.4801199734, -0.0437205248, 0.2358624786, 0.0787197202, 0.0197461657, -0.7109902501, 0.2538617253, -0.0256461501, -0.1669920236, -0.0041732159, -0.1369686276, 0.6161687374, 0.10625384, -0.1732199937, 0.3632221818, 0.2656737566, -0.1211238354, 0.1032264009, 0.0221170411, 0.9866482615, -0.266628176, -0.1187291369, 0.1936693937, -0.3690711558, 0.253228426, -0.5046826601, -0.0693949014, -0.1007535309, -0.0964913741, -0.0862020254, 0.0181095283, 0.220432952, -0.1676096767, 0.1486731172, 0.1529458016, -0.36255759, 0.3266733289, -0.1402166486, 0.3930826485, -0.3955660164, -0.478445977, -0.0614695437, 0.138087824, -0.2296775281, 0.412342459, -0.1534569412, -0.2023046017, 0.0030851529, 0.0662357062, -0.0691938996, -0.2354371697, 0.2398042083, -0.0661601499, 0.0534519106, 0.1833446771, 0.0456361696, 0.0079116225, 0.6012509465, 0.2342512906, -0.385522157, 0.2612635195, -0.5457404256, 0.0423961729, -0.2813000381, 0.1302259862, 0.0128507763, -0.2199520618, -0.2856848538, 0.0685030073, 0.1144039929, -0.3973574936, -0.0122771664, -0.0554270819, 0.4768300056, -0.1605659425, 0.2854651809, 0.0504462309, 0.153840363, -0.1631578356, 0.0913397148, 0.0873942375, -0.141683355, -0.0707213059, 0.2602919042, -0.1676339209, 0.0133471442, 0.3708074987, -0.1216719076, -0.3894595206, -0.0020890262, -0.2180394381, -0.2498512417, -0.131254673, -0.145651415, 0.1247597188, -0.2103984058, -0.0700919181, 0.3366425037, -0.1366857439, -0.0176889971, 0.3235156536, 0.2475001961, -0.2243812978, -0.138856262, -0.4490123689, -0.1925795227, 0.1427560151, -0.3954597116, -0.0082133915, 0.0054019745, -0.0999536291, -0.1230864823, 0.1260472834, -0.2973225415, 0.0017790011, -0.1725658476, -0.1629307717, -0.0701807812, -0.0163026117, 0.0989373252, -0.1001755223, 0.0117407441, 0.1002142578, -0.4468547106, -0.1364150345, -0.3660956621, 0.1829230785, -0.1120260656, 0.2204938829, -0.1574839801, -0.2230196446, -0.137241751, -0.1670116782, 0.3574380577, 0.3818191886, -0.0118690822, -0.0821670964, 0.2831299305, 0.3294128478, -0.0923616141, 0.3854602873, 0.3941165507, 0.332328707, -0.1994291395, -0.0110404994, -0.1982190758, 0.0544496216, 0.0134083834, 0.2247400582, 0.6961209774, 0.0442036428, 0.3749138713, 0.065861769, 0.2369581759, -0.0320324637, 0.2316333652, -0.1618781984, -0.051842995, 0.2249000669, 0.0021125621, 0.0947398767, -0.0253210682, -0.2338869572, 0.0087797521, -0.2055323422, 0.0449959524, 0.2886714935, 0.5066241026, 0.0561794601, 0.0519721583, -0.0355405137, 0.3812804222, 0.0209180675, -0.0690143406, 0.1296716034, 0.0305063166, -0.0704081133, 0.4251377881, 0.230502978, -0.0095481761, 0.2435871363, -0.178178668, 0.1322108209, -0.1679233611, 0.3493182659, 0.1350298822, -0.2504685223, -0.0206768941, -0.126026094, 0.0612159185, 0.0291548185, -0.2863613963, 0.165504083, -0.2647317648, -0.1854336262, -0.2359737456, -0.0176989641, 0.0427391976, -0.2308763713, -0.3272781968, -0.2498069108, -0.0746867657, -0.1547602266, 0.2293726504, -0.1963636577, -0.1290199459, -0.1063191965, 0.1971113682, 0.1115267575, -0.0104439156, 0.4876624644, 0.2027592361, -0.055552654, 0.0249792989, -0.290441066, 0.2620103061, 0.2527616024, 0.2218000442, -0.116489023, -0.1473730654, -0.0258970018, 0.1935319602, -0.0309524722, -0.027469255, 0.0875959694, -0.0307542663, 0.0320343487, 0.0053315042, 0.2573635578, 0.190286085, -0.1597438455, 0.0055388077, -0.5309101939, -0.0035558261, -0.538077116, 0.4959950149, -0.010043907, -0.0058870944, 0.0434948131, -0.21318084, -0.0568947904, -0.0862316042, 0.3536625206, -0.0352839306, 0.2322798967, -0.2716713846, 0.0414438397, -0.1325000376, 0.2079530507, 0.1824603379, -0.1152670756, -0.1534395665, -0.0581757873, -0.3935525715, 0.0594936199, 0.0965941399, 0.1024898887, 0.3204141855, -0.0221650396, 0.1023370996, 0.2228958607, -0.0329867005, -0.1564733088, 0.1296960115, -0.1464702338, -0.0756965205, -0.0776603669, 0.0495744124, -0.0851962641, -0.0462497994, -0.1647113264, 0.1841635704, -0.1607019007, -0.0817840248, 0.0405982472, 0.0253608786, 0.193521142, -0.0256002638, 0.2559723854, -0.0692682415, -0.0464476831, 0.0692020729, 0.150009498, -0.3159300685, -0.135281831, -0.0357171707, -0.2685240507, -0.3601727486, 0.0673907921, -0.1045980453, -0.2194642425, -0.2443584204, 0.2075296342, 0.1171894222, -0.2450160235, 0.1203398108, -0.202457577, -0.4153288901, 0.0335096568, 0.1542045474, 0.2090837359, 0.1049354076, 0.0643336624, 0.0780253783, -0.0850102082, 0.4925252199, -0.1658309251, -0.3163255751, 0.0130713545, 0.4525221586, 0.1516017169, -0.1607655138, -0.3377546072, 0.152402997, 0.2300557792, 0.016781088, 0.0837610513, 0.4109134674, -0.3099607527, -0.0059647239, -0.1232251897, -0.4062406719, -0.0769440755, 0.0349592827, -0.0210422277, -0.041557461 ]
https://github.com/huggingface/datasets/issues/3518
Add PubMed Central Open Access dataset
In the framework of BigScience: - bigscience-workshop/data_tooling#121 I have created this dataset as a community dataset: https://huggingface.co/datasets/albertvillanova/pmc_open_access However, I was wondering that it may be more appropriate to move it under an org namespace: `pubmed_central` or `pmc` This way, we could add other datasets I'm also working on: Author Manuscript Dataset, Historical OCR Dataset, LitArch Open Access Subset. What do you think? @lhoestq @mariosasko
## Adding a Dataset - **Name:** PubMed Central Open Access - **Description:** The PMC Open Access Subset includes more than 3.4 million journal articles and preprints that are made available under license terms that allow reuse. - **Paper:** *link to the dataset paper if available* - **Data:** https://www.ncbi.nlm.nih.gov/pmc/tools/openftlist/ - **Motivation:** *what are some good reasons to have this dataset* Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
64
Add PubMed Central Open Access dataset ## Adding a Dataset - **Name:** PubMed Central Open Access - **Description:** The PMC Open Access Subset includes more than 3.4 million journal articles and preprints that are made available under license terms that allow reuse. - **Paper:** *link to the dataset paper if available* - **Data:** https://www.ncbi.nlm.nih.gov/pmc/tools/openftlist/ - **Motivation:** *what are some good reasons to have this dataset* Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). In the framework of BigScience: - bigscience-workshop/data_tooling#121 I have created this dataset as a community dataset: https://huggingface.co/datasets/albertvillanova/pmc_open_access However, I was wondering that it may be more appropriate to move it under an org namespace: `pubmed_central` or `pmc` This way, we could add other datasets I'm also working on: Author Manuscript Dataset, Historical OCR Dataset, LitArch Open Access Subset. What do you think? @lhoestq @mariosasko
[ 0.0158515554, 0.2765922248, -0.0521292724, -0.076617375, 0.0842334926, 0.0609657019, 0.1692059785, 0.1762033403, 0.0278634988, 0.0237174761, -0.0096464222, 0.0166482441, -0.215217486, -0.1154047474, 0.1166006252, -0.1897338033, 0.328087002, -0.1133034304, 0.1321059763, 0.0420291387, -0.2378161997, -0.2021128535, -0.0019803084, -0.036071226, 0.3539794683, -0.1188680381, -0.1388874352, -0.0042551812, -0.2727663219, -0.3476476669, 0.0024105604, 0.3628610075, 0.089593187, 0.679479003, -0.0001185068, -0.1025406048, -0.1038747653, 0.1389737725, 0.0512724295, -0.0692761615, 0.0220119003, -0.5081723332, 0.0006393579, -0.1720892936, -0.0359058306, -0.4024895728, 0.272236079, -0.5547109246, -0.2256570458, 0.2530169189, 0.1222101375, 0.2204780579, -0.3209613562, -0.1764645875, 0.2534777522, 0.2564744949, -0.3760085106, 0.1715536714, 0.4872003198, 0.2515048683, 0.0287691429, 0.0928292349, -0.2040766776, -0.2278678119, 0.6633479595, 0.1467332691, -0.2750992775, 0.1219966412, 0.046840515, 0.2807143927, 0.5527390242, -0.2092984468, -0.0114107812, -0.0144909006, 0.0100511862, 0.0721489862, -0.1849198937, 0.29476735, 0.4462462366, 0.1381655186, 0.0814692155, -0.2139606029, -0.1310301572, 0.37303105, -0.0783450082, 0.0960506648, -0.1500933617, 0.2592254281, 0.0338123739, -0.0373221636, 0.0921084806, -0.1959356219, 0.1990385205, -0.0188315436, 0.0373136699, 0.0472247191, -0.0378483012, 0.2887370586, 0.1865148842, 0.1741462499, -0.1898082793, -0.2612910867, 0.0878135636, -0.1522953361, -0.0171254557, -0.4643515646, -0.3855185211, 0.341783911, 0.2500932515, -0.3046092987, 0.0027650103, -0.1464159042, -0.0448035635, 0.245165959, -0.0698986575, -0.4666620791, 0.0952689052, 0.0796763375, 0.1902525127, 0.0564489625, 0.3934006393, 0.035117168, 0.1339550912, 0.177097708, 0.3751953542, 0.1149093136, -0.0788509622, 0.6355523467, 0.2102376372, 0.1345936805, -0.0375154652, -0.0021664596, -0.3614925146, 0.160138607, -0.0067299623, 0.0395711884, -0.0266228523, -0.096715048, 0.3008620143, -0.1160548776, 0.2101245373, 0.2339997888, 0.157821551, 0.2976383865, -0.2197746485, 0.351154089, 0.1030723304, 0.1662789434, -0.269651264, -0.1023290232, 0.0454074852, -0.4071651101, -0.3829750717, 0.0561513491, 0.079032883, 0.1476411968, -0.0992046595, -0.0882500932, 0.25364393, -0.3014894724, 0.2038735747, 0.025544893, -0.0687888786, -0.2326731831, -0.2965143621, 0.0911646113, 0.3601047993, 0.2043469995, -0.4880893826, 0.5983769894, 0.0500939675, 0.0680849403, -0.3117736578, 0.1152362078, -0.0537408814, -0.0489354618, 0.5037590265, -0.547737062, -0.4984687865, 0.1441667229, -0.2967636883, -0.559312284, 0.4023450911, 0.1918301582, -0.143372044, -0.1759950966, -0.0248941034, -0.1664708108, -0.1113114432, 0.3289037645, -0.0547170155, -0.0785687044, 0.1616228223, 0.1441575885, 0.180271849, -0.02249391, 0.2123324573, 0.1281775236, 0.2231023461, -0.2086962909, 0.0309826322, -0.3471497595, 0.1619669199, -0.4683897495, -0.0358796753, -0.2983858883, 0.0283499435, -0.0361196287, 0.1093043536, 0.1763536036, 0.0998082086, -0.1999931037, -0.1705268323, -0.2219973803, -0.1151221097, 0.0117854653, -0.0364718698, 0.30265674, -0.0814839751, -0.4852146506, -0.4732024372, 0.1437442899, -0.4031910002, 0.2608577907, -0.1376285851, 0.1056601927, -0.1525716633, 0.3706233501, -0.0532450937, 0.259428829, 0.029971851, 0.0395198576, 0.1220495552, 0.1594750881, -0.3515380323, 0.1888899803, 0.3916285336, 0.4663829207, 0.1185289174, -0.4026099741, 0.6616993546, -0.143417418, -0.136415869, -0.0259272903, -0.0890875086, 0.0225852411, 0.1117458344, 0.2377941906, -0.0783030316, -0.0404264368, 0.0456826314, 0.1922243536, -0.1081867889, -0.2340695113, 0.1866869628, 0.4524821937, 0.3803354204, 0.2082873881, 0.0160760488, 0.23359254, 0.1546793282, -0.0663800463, 0.047080256, -0.0121539626, -0.2550869882, -0.1208028272, 0.0300534647, 0.3331448734, 0.4669316113, 0.2167011797, -0.2655003071, 0.0395029709, 0.3331744671, -0.1734518558, 0.0014754573, 0.3376305699, 0.0064174589, -0.1244695559, 0.1885412186, 0.2533666193, -0.0447360203, 0.0151279112, 0.0889970362, 0.1642820388, -0.1040283069, -0.0316701867, 0.1436863542, 0.1384346634, -0.0895862505, 0.2297429889, -0.3416831791, -0.0887289494, -0.0705190971, -0.0566549338, -0.0303948037, -0.1292890161, -0.5446336269, 0.4581000209, -0.3913327157, -0.0838602781, 0.1080277935, -0.0162113216, 0.2037888914, -0.026225796, 0.3466911316, 0.0907596722, 0.605453372, 0.0632542521, 0.4166825712, -0.3469684422, -0.1393067539, -0.0379884206, -0.1473543495, -0.133962363, -0.0483167432, 0.1831515878, -0.0157815665, -0.1368610263, -0.1939709485, -0.2535898685, 0.1306272298, -0.0271770675, -0.0688332394, -0.1824597567, 0.0934907198, -0.1721847951, -0.4824669659, -0.4400230348, -0.0365748033, -0.2438208014, 0.0208207555, 0.2611801326, -0.6727872491, 0.0127264718, -0.0487740971, 0.1454496384, -0.1620324403, -0.3597790897, 0.0088074831, -0.2993276417, 0.0076567708, -0.1924418956, 0.0347329862, -0.0811937675, 0.1624262333, -0.1690018773, -0.0171242841, -0.0016075575, 0.0110034905, 0.5356569886, 0.0622046143, 0.5722587109, -0.0719601139, -0.0348417982, -0.0182622951, -0.2364426106, 0.0298934504, 0.4698658884, 0.0777283087, 0.170998767, -0.3580763638, -0.290201813, 0.9710739851, 0.2965132594, -0.1713839024, 0.0631611422, 0.1430558264, 0.2083700448, 0.0264066011, -0.4701271057, 0.4017318189, 0.1364483684, -0.1143124625, 0.481423527, 0.1479277909, 0.1150116697, 0.1770114601, 0.0820225626, -0.2915973663, -0.280069977, 0.0834782347, -0.08293809, 0.3876847029, 0.0754513815, -0.1681244522, -0.4255979061, -0.3660200834, -0.1160392836, 0.6538578272, -0.1142452434, -0.1258312315, -0.4774701297, 0.1449124366, -0.6085612774, 0.3803392351, 0.0214236174, -0.2502520382, 0.0126184337, -0.0113821272, -0.0497409552, 0.1116142645, 0.072813645, -0.4606561065, -0.3904491961, -0.0290552098, 0.5501584411, -0.1235475317, 0.1143630594, 0.2304804921, 0.296769172, 0.0006772337, 0.2576835752, -0.2466110587, -0.1288449019, 0.2770326734, 0.0327283479, 0.2910166681, -0.2574965954, 0.0733031631, -0.3492001295, -0.012703212, -0.1217289716, 0.0171453264, 0.0357362516, 0.1698209643, 0.1949679404, 0.1981311291, -0.097748138, 0.2256532311, -0.182421118, 0.1590351313, 0.4454301596, 0.1266987324, 0.0655061603, 0.4128840268, 0.3844290972, 0.3295364678, -0.32967031, -0.0678881854, 0.1904779971, -0.1603772342, 0.3001004159, 0.3861577511, 0.1942078024, 0.2013553083, 0.3411199152, 0.0425418951, -0.1244502887, 0.3874673545, 0.0624485686, -0.1885462701, -0.5399445891, -0.2831003964, 0.4995117188, 0.2051655948, -0.2323358059, 0.1379655451, 0.4427674115, -0.2312688679, 0.1930781305, -0.1842815131, 1.0862421989, -0.5195863247, 0.2443523407, -0.0929958373, 0.0200215485, 0.5552052259, -0.4518344998, -0.3017796278, -0.2449905574, -0.1445441395, -0.0371276774, -0.1873171031, 0.2462837398, -0.1532120705, -0.0114052966, -0.011239537, 0.2144707888, 0.8225551844, 0.0950796604, 0.5237517953, 0.2141477764, -0.3505687118, -0.2153193504, 0.0550446659, -0.1904369593, -0.1187444776, -0.0380200706, 0.1895848215, -0.3502270877, 0.2336383015, -0.1847839952, -0.3235502541, 0.2997757196, -0.1874362528, -0.0791012719, -0.5872882009, 0.5558843613, 0.1508960128, 0.6464121938, 0.2440239936, -0.2552930713, 0.1612945646, 0.0127486829, -0.1135364622, 0.1100695804, -0.2693596184, 0.0862489194, -0.0399060138, 0.0144742364, -0.0534294546, 0.0941394791, -0.5332531929, -0.2709648013, -0.0764865577, 0.5519688725, -0.511775136, 0.1087415963, 0.4650911987, -0.105920881, -0.1287619323, 0.0556791276, 0.3067331314, 0.050068561, 0.0440685377, -0.0184787251, -0.2364210933, -0.1504022777, -0.4014802575, 0.2511953413, -0.3489948511, -0.0866956338, -0.0567856729, -0.0407907851, -0.1454258114, 0.2863265574, 0.3987950087, -0.0037632876, -0.1825781763, 0.302757293, -0.2136054486, 0.1614292413, -0.0277561136, 0.2444149107, -0.2401183993, -0.1617229134, 0.0987386703, -0.3479523063, 0.0989108458, -0.4493613541, 0.0972055569, 0.2662107944, -0.0531180277, -0.2012525797, -0.0055140895, -0.2239292562, 0.0360340849, 0.0700623766, 0.0638445094, 0.2582277954, -0.2874371707, 0.1117663682, -0.2544725835, -0.0017985253, -0.0517659411, -0.2074815035, -0.1496432424, 0.0437521264, 0.2285957038, 0.1871519685, -0.2580114007, 0.1633922309, -0.3929444253, -0.0528325215, -0.2649217844, -0.0791474953, -0.0881499201, 0.0148107149, -0.4372182786, -0.0485649183, -0.0722539425, -0.0629516169, 0.2576524019, -0.0472110137, 0.1935337633, 0.0760909021, 0.4128553569, 0.0728400573, -0.0944233164, -0.025514625, 0.3512403667, 0.4211097062, 0.2227590531, 0.2346143872, 0.0352520645, -0.2302607298, 0.4258627295, 0.2692302763, 0.0051403353, -0.1460382789, 0.0477409661, -0.1899363101, 0.0087418975, -0.1601855159, 0.0810122341, 0.1213697493, 0.1534436047, 0.0909353271, 0.4232224226, 0.3354070485, 0.0109470487, -0.2712017, -0.0477100313, 0.4337882698, 0.0307458192, 0.3115887046, 0.0026168202, 0.2787849903, 0.1136150211, 0.6243612766, 0.3791712523, -0.1118506938, 0.093472451, 0.1306730509, 0.5986206532, 0.4047169983, -0.1733513325, 0.2052819729, 0.0974226519, 0.3397498429, 0.1112076417, 0.1230764911, -0.1170487255, 0.255884558, 0.3103269637, -0.1730158776, -0.3573288321, 0.0672538951, 0.0411474593, 0.1397752166, -0.019559063, -0.0670214742, -0.0524172895, 0.1365288496, -0.164539814, -0.298784405, -0.4640319943, 0.0845673084, -0.0299654864, 0.1809806377, -0.2291647941, 0.2824651599, 0.1796454489, 0.145949766, -0.240889743, 0.0679722875, -0.1662181765, -0.1381348073, 0.4206982255, 0.1779920161, 0.1410683692, -0.2619308829, -0.1744237095, 0.1978157908, 0.0221917797, 0.0461413637, 0.0455595143, -0.2914808691, -0.0995296463, 0.2287530005, 0.1206195503, 0.0570207573, -0.0361603834, -0.037150044, 0.0278301276, 0.0512684733, -0.3960890174, 0.230483979, -0.0779918358, -0.4108059108, 0.0293833558, 0.3091777563, -0.2181373388, -0.0988612249, 0.5337395668, -0.1661171764, 0.024836868, -0.2529399395, 0.028344024, 0.2320951074, 0.1879168749, 0.2746986747, 0.3287864029, -0.4138231874, -0.4547879696, -0.2929296792, 0.269974947, -0.0088027045, 0.1608270407, 0.018886989, -0.1978529394, 0.5313642025, -0.020836344, 0.139993161, -0.1385428905, -0.3861527145, -0.0567754656, -0.0721467063, 0.1063000262, -0.2164172828, 0.0531028397, 0.0517015047, 0.0680099726, -0.0284424238, 0.0206879769, -0.0630165562, -0.3072987497, 0.0348563455, 0.1978681087, -0.3617964983, 0.2388535887, -0.1438411176, 0.1282559633, 0.0888834819, -0.2769664824, -0.1535168886, 0.0003746948, -0.3956955671, 0.1397905499, -0.2862430215, 0.0542374626, -0.2674815655, -0.0467587486, -0.0041046655, -0.4501434863, -0.1383061111, 0.1539731473, -0.1594896317, -0.1279378384, -0.0915074497, -0.0889781564, -0.0460133441, -0.1000182554, 0.1680612862, 0.0274739228, 0.0483360365, -0.15367423, 0.2109995186, -0.0005609063, -0.1762218922, 0.1714936048, 0.4029728472, -0.3606175184, 0.1669424474, -0.6192156076, -0.1384500563, 0.209344089, -0.0772074983, -0.0276311468, -0.2408837676, -0.0863076374, -0.2862761319, -0.0808321908, 0.1899631172, -0.2302462757, -0.2277143896, -0.1636418551, -0.0981188342 ]
https://github.com/huggingface/datasets/issues/3518
Add PubMed Central Open Access dataset
Why not ! Having them under such namespaces would also help people searching for this kind of datasets. We can also invite people from pubmed at one point
## Adding a Dataset - **Name:** PubMed Central Open Access - **Description:** The PMC Open Access Subset includes more than 3.4 million journal articles and preprints that are made available under license terms that allow reuse. - **Paper:** *link to the dataset paper if available* - **Data:** https://www.ncbi.nlm.nih.gov/pmc/tools/openftlist/ - **Motivation:** *what are some good reasons to have this dataset* Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
28
Add PubMed Central Open Access dataset ## Adding a Dataset - **Name:** PubMed Central Open Access - **Description:** The PMC Open Access Subset includes more than 3.4 million journal articles and preprints that are made available under license terms that allow reuse. - **Paper:** *link to the dataset paper if available* - **Data:** https://www.ncbi.nlm.nih.gov/pmc/tools/openftlist/ - **Motivation:** *what are some good reasons to have this dataset* Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Why not ! Having them under such namespaces would also help people searching for this kind of datasets. We can also invite people from pubmed at one point
[ -0.1280044317, 0.0742644891, -0.2116854191, -0.2449233383, -0.0705326125, 0.0678361356, 0.2654060125, 0.323445946, 0.0099771302, 0.2698273361, -0.0652089715, 0.0095179658, -0.2703078091, 0.0643100739, 0.0232646074, -0.0676072687, 0.0715512931, 0.1311511248, 0.2244762331, 0.0050915512, -0.0993055105, 0.0186129902, -0.1237548813, -0.2121482342, 0.2558350861, -0.0565141179, -0.0822058544, -0.0111052794, -0.2948715687, -0.4508591294, -0.1412628293, 0.23819682, 0.1326745003, 0.2251700312, -0.0000961673, -0.0759049505, -0.1182175055, 0.0998772606, -0.1848813295, 0.0235348493, -0.0201120693, -0.300340265, 0.0766225606, -0.2687698007, -0.2607450187, -0.5329333544, 0.0978421569, -0.3341442049, 0.1831435561, 0.3041622043, 0.3691527545, 0.3268479407, -0.1013848782, -0.3705290258, 0.3279952705, 0.0003667424, -0.2456731647, 0.0822276101, 0.6235817075, 0.2256845236, 0.0297965258, 0.2237737924, -0.245803237, -0.0331796631, 0.1427439451, 0.0285609514, 0.0399105214, -0.1708511859, -0.0770374388, 0.3050064445, 0.4682053328, -0.3800936043, -0.0309388526, -0.0965773985, -0.0522094667, 0.1384599209, -0.2950528562, 0.3492053151, 0.0841961578, 0.2334496528, 0.0958201513, -0.0828862935, -0.1012832224, 0.1053211018, 0.2938142419, 0.0699053779, -0.1859208643, -0.1211629659, 0.0319176279, 0.0587846525, -0.0202207696, 0.0206594132, 0.1724481136, -0.1314724237, 0.1021206975, -0.3139236569, 0.1509311795, -0.1949460059, 0.2513915896, 0.2167344242, 0.0367946215, -0.102048561, 0.1162255779, 0.0715753958, -0.0016999607, -0.5248044729, -0.3403416872, 0.0942234248, 0.3266788125, -0.1112599596, 0.0006944731, 0.0904254317, 0.0644633844, 0.3547414243, 0.0028260124, -0.295974791, -0.1253724843, -0.0632539466, 0.0375002399, 0.087000519, 0.3897681534, 0.2141195089, -0.1490397751, 0.2779920399, 0.1109145209, -0.0033811196, 0.1092119142, 0.1779908091, 0.0093521839, -0.1384045482, -0.1603920758, -0.0396470428, -0.143619433, 0.2475957423, 0.3301928043, 0.1167238727, -0.0025756338, -0.1237144694, 0.1156005487, -0.0173113048, 0.3514297605, 0.2168144584, 0.1712787151, 0.2035540342, 0.1046212614, -0.1199142933, 0.0734674409, -0.0285592061, -0.2501287758, -0.2050319016, -0.0585513636, -0.161378324, -0.4806888998, 0.2917521, 0.0094389562, 0.0916549042, 0.2390639186, 0.2338017225, -0.0698597878, -0.3419358432, -0.0314959772, 0.3233863711, -0.1242675781, -0.2794409692, 0.1158928499, 0.1990672648, 0.42977494, 0.0273277983, -0.1970636249, 0.2913466394, -0.1055477113, 0.0584943406, -0.0860312805, 0.0614399388, -0.0484730266, 0.0154488413, 0.3792076409, -0.2940107584, -0.2806822658, -0.1421525329, -0.2885065079, -0.4496104717, 0.2844284475, 0.1744529307, 0.1436320096, -0.2541535199, -0.0067824544, 0.0495911725, -0.2286539972, 0.2805503309, -0.2419989109, -0.3191725612, -0.2077181935, 0.2636911571, 0.2522676587, -0.0437559634, 0.4847253859, 0.2123836428, 0.3112639785, -0.2396375686, 0.0599454157, -0.0230622087, 0.0700480491, -0.1831100583, -0.0221623834, -0.4137478769, 0.0987995937, -0.1156584322, -0.0067370152, 0.1990430504, -0.0126905693, -0.3588167429, -0.1010544449, -0.05399267, 0.1405901462, -0.0249329992, 0.3153842688, 0.2400959432, 0.1042278409, 0.0658864826, -0.2278619707, -0.2299522907, -0.2612196207, 0.0464828722, -0.1635567248, 0.1964289844, -0.0180060305, 0.1414873898, 0.3226898313, 0.3490683436, -0.1717241853, 0.1529968679, 0.2631435692, 0.0218956042, -0.3503316641, 0.237073034, 0.4939682782, 0.5346071124, -0.0284744631, -0.5362480879, 0.3209545016, 0.0228615552, -0.0566795208, 0.1403741688, -0.2808607817, 0.2318210155, 0.1512131244, -0.035270296, 0.0491502099, 0.0815447047, 0.1778819412, -0.0945928991, 0.0497105606, -0.2267062515, 0.0445157588, 0.4692376554, -0.1025188789, -0.0816926509, -0.1940100789, 0.3206011057, 0.1220692322, 0.0833858475, 0.3152086139, -0.123460494, -0.3834972382, -0.0056540985, 0.1156538799, 0.0826121047, 0.0738394707, 0.5113788247, 0.1193059906, -0.069215782, 0.1874409467, -0.3105480671, 0.0419050306, 0.0340088457, -0.0976941362, 0.144368872, 0.2473182529, 0.1933348477, -0.2472586185, 0.0993441641, 0.0365053229, 0.0098756067, -0.0143780094, -0.0570937507, 0.0025786413, 0.1841162294, 0.0609872565, 0.1431193799, 0.1850914508, -0.0694455504, 0.2939302027, 0.2412143797, -0.1766327024, -0.0854525119, -0.4922677577, 0.5900937319, -0.2299288511, 0.0554979332, 0.0186844319, -0.161455825, 0.1516497433, 0.3181247413, 0.2887972295, 0.0664018318, 0.6696480513, 0.0313169435, 0.3937741518, -0.4056628644, -0.3360238075, 0.0261898506, -0.0007524312, -0.0379863605, 0.0170336366, 0.0970296115, 0.0349381901, -0.1576406509, -0.0455045477, -0.2956982255, 0.0576000884, 0.0592254475, -0.0149510512, -0.1941442192, -0.108700864, -0.4036976993, -0.2660715878, -0.3916779459, 0.0819504112, -0.0877956226, -0.0255380534, 0.0684869215, -0.1992974132, 0.090835467, -0.2347147763, 0.3864312768, -0.2032037079, -0.1316523105, 0.1770558506, -0.4397173226, -0.2599437237, -0.1334656328, -0.162284866, -0.1684753001, 0.0279064681, -0.4149578512, -0.038733948, 0.0514316224, -0.0503841303, 0.4289177954, -0.0090848347, 0.3824659586, 0.0711327717, -0.2857224941, -0.0257629994, 0.0079947487, -0.0673996657, -0.1470202357, 0.0081280814, -0.0453074872, -0.3236499727, 0.0221125633, 0.528454423, 0.2726764083, 0.0762904733, 0.2002135962, -0.1006996259, 0.2036379129, 0.0538822263, -0.2337335199, 0.2363708615, -0.013171846, 0.099478893, 0.4711548984, 0.2935199142, -0.1489792317, -0.0138062183, -0.0487974025, -0.5067541003, -0.476561904, -0.0367377214, 0.041849222, 0.4040907323, 0.0475496314, -0.2431403846, -0.2818307579, -0.2880937755, -0.0257144216, 0.4048939645, -0.1408643574, -0.2512456179, -0.2264676839, 0.3176779747, -0.3481809795, 0.1938748211, 0.0791782737, -0.2547214031, -0.2093419135, -0.1502718031, -0.097907424, -0.0005906459, 0.0113910781, -0.3634696007, -0.0134817138, 0.0111436024, 0.2297558784, -0.1913646758, 0.1847089082, -0.1264067888, -0.1415928602, -0.1701147109, 0.235932678, -0.2099679112, -0.0098911915, 0.3575559556, -0.0381896347, -0.0022182793, -0.1767807752, 0.1558953673, -0.2852697372, -0.2974738777, -0.0962277949, -0.176850453, 0.0052778819, 0.0965623483, -0.2010611147, 0.1072335392, 0.0057197763, 0.2003525943, 0.1142431796, 0.0720838979, 0.3814398646, 0.1122777164, 0.1162213758, 0.130358696, 0.1506355107, 0.3321798742, -0.3551533222, -0.0398060977, 0.1533790976, -0.1405502856, 0.0811088681, 0.2309153974, 0.2122100443, 0.3741770685, 0.262860328, 0.0912924483, -0.0850552842, 0.146498546, 0.058639247, -0.1756027192, -0.2383233756, -0.3297356367, 0.3692974448, 0.1591613591, -0.0754356459, 0.1241572127, 0.2706646621, -0.0685879812, 0.0939441249, -0.0193188135, 0.9565892816, -0.1767404079, 0.2255363166, 0.0411758795, -0.0662221313, 0.3388478458, -0.2067790329, -0.1176598668, -0.2069228441, -0.3018041849, 0.0201850962, -0.0100641213, -0.2000073045, -0.1192286015, -0.1899481267, -0.1843082458, 0.3364860415, 0.269547224, 0.0685121641, 0.3960731328, 0.0139007941, -0.3053073287, -0.383736521, 0.3132726252, 0.2024948597, -0.3321816027, -0.0343785211, -0.1589259803, -0.0627134293, 0.0994317457, -0.2623710632, -0.1161641255, 0.165093869, -0.0206591152, 0.1216615736, -0.20227696, 0.1876648813, -0.0477373339, 0.3209340572, 0.3206085861, -0.351195246, -0.1414047927, -0.0531126261, -0.2671134472, -0.0625129938, 0.0554157645, 0.1910557747, -0.1584553719, -0.0699176118, 0.2004896253, 0.1874035299, -0.5267657042, -0.2733237743, 0.0637843534, 0.3319526315, -0.1605667025, 0.266225636, 0.3060796559, -0.4675777853, -0.2373564243, 0.2902484834, 0.2281605452, 0.1059669554, 0.1311502308, 0.2450948805, -0.0891331285, -0.0995642617, -0.2256316841, 0.3889118731, -0.0270004142, -0.1329686642, 0.1240719035, -0.1673965901, -0.4237594903, 0.0097250082, 0.1617616117, -0.0467466675, -0.0138109345, 0.0246110875, -0.1426589787, 0.3351442814, 0.2564947605, 0.350505203, -0.253280133, -0.0840404034, 0.0071250214, -0.2486843467, 0.2404682487, -0.3142633438, 0.2218787074, 0.3595176041, -0.0527712367, -0.3269183934, -0.0531338751, -0.5346189141, -0.0101123555, -0.0675831363, -0.1095071062, 0.031336043, -0.160538286, 0.2428591698, -0.1762218028, 0.1969268471, 0.0859217942, -0.2218171954, -0.3978486061, -0.0081552109, 0.0735492334, -0.0194152929, 0.047670085, 0.0609518178, -0.0719935149, -0.2054731399, -0.1427622736, 0.0370230973, -0.1706942469, 0.0078521799, -0.330419898, 0.0754256845, -0.0614267141, 0.0958791971, 0.1513080597, -0.0547183529, 0.0417654179, 0.0480320305, 0.1350908726, -0.1370601654, -0.066803731, 0.1460920572, 0.4672795832, 0.4002158046, -0.0239932798, 0.4592602551, 0.1358591467, -0.1209383979, 0.3628436327, 0.2761703134, -0.0865972638, -0.3214332461, 0.2356622368, -0.1077693775, 0.3581032753, -0.3542801142, -0.0361694805, -0.1292237937, 0.1332246959, 0.265917778, 0.424785316, 0.197388947, -0.1259207726, -0.0528708398, 0.1314210892, 0.180101648, -0.0619845726, -0.0166241825, -0.1113470346, 0.3003817201, -0.068094112, 0.1901172549, 0.1955496967, 0.0624448098, -0.0970371291, 0.0311854761, 0.364728868, 0.1389243305, -0.2063586265, 0.0922503993, 0.2395538837, 0.444350034, 0.0475628898, 0.2164461762, 0.1848574132, 0.1744475514, 0.1244311407, -0.0006697634, -0.0554882176, -0.1425256282, 0.2583462, 0.2309764624, 0.050391946, -0.0047773966, -0.0106188236, -0.0655376613, -0.2962254584, 0.0065625357, -0.2629083395, 0.0572184511, -0.0217129327, 0.1279307157, -0.4034962952, 0.2437669635, 0.4525037706, 0.297317028, -0.3357588053, -0.0660696626, -0.0342008583, -0.1403136253, 0.1576649547, 0.3617029786, 0.1443947405, -0.2558269799, -0.1422124654, 0.1224730834, -0.2001072615, -0.0710217804, -0.136624217, -0.1434492469, 0.1929904222, 0.311563313, 0.1651420146, 0.2914860547, -0.2185087353, 0.0227215327, 0.0450573601, -0.0074552442, -0.2415336519, 0.02070879, 0.2105501592, -0.1127000153, -0.1611597687, 0.1320681572, -0.4685608447, -0.0725706369, 0.2946219742, -0.2479414493, 0.1568680108, -0.2000594735, 0.1894762665, 0.3256421387, 0.1640695035, 0.1965440363, 0.2622569799, 0.0420604721, -0.4073280096, -0.4022889733, 0.167681098, -0.1257529408, 0.0513704978, 0.0042380062, -0.0185318645, 0.4428374767, 0.2550685108, -0.0537190661, 0.115368396, -0.3284667432, 0.0568130687, -0.1560188681, -0.0316703767, -0.0386119336, 0.0337443538, 0.0217334908, 0.0117235249, 0.0914189294, -0.152295813, 0.2693102658, -0.2047770768, -0.0018666546, 0.0835928246, -0.0492138267, 0.3609228134, -0.1745359451, 0.1298583001, -0.3083598018, -0.316845119, -0.2280217856, 0.0334339738, -0.1982258558, 0.0354681909, 0.0801267773, 0.0623390973, -0.189311862, -0.1452491879, 0.1600431353, -0.2543559372, -0.023525862, 0.0168666523, -0.0980474129, -0.0286209714, 0.1136147156, 0.0507400446, -0.2000522166, 0.0162801165, -0.0385912061, -0.0414695144, 0.1258220822, -0.40169698, 0.1442642212, -0.1844314486, -0.0411333255, 0.0787995532, 0.3740868866, -0.3499213457, 0.1207452193, -0.4860422611, 0.0879786983, 0.2411143631, -0.0208072029, 0.0465438031, 0.159548983, -0.028658038, -0.2355279475, -0.2210389227, 0.0982138962, -0.0694880635, -0.395598799, -0.2637359798, -0.3590782285 ]
https://github.com/huggingface/datasets/issues/3510
`wiki_dpr` details for Open Domain Question Answering tasks
Hi ! According to the DPR paper, the wikipedia dump is the one from Dec. 20, 2018. Each instance contains a paragraph of at most 100 word, as well as the title of the wikipedia page it comes from and the DPR embedding (a 768-d vector).
Hey guys! Thanks for creating the `wiki_dpr` dataset! I am currently trying to use the dataset for context retrieval using DPR on NQ questions and need details about what each of the files and data instances mean, which version of the Wikipedia dump it uses, etc. Please respond at your earliest convenience regarding the same! Thanks a ton! P.S.: (If one of @thomwolf @lewtun @lhoestq could respond, that would be even better since they have the first-hand details of the dataset. If anyone else has those, please reach out! Thanks!)
46
`wiki_dpr` details for Open Domain Question Answering tasks Hey guys! Thanks for creating the `wiki_dpr` dataset! I am currently trying to use the dataset for context retrieval using DPR on NQ questions and need details about what each of the files and data instances mean, which version of the Wikipedia dump it uses, etc. Please respond at your earliest convenience regarding the same! Thanks a ton! P.S.: (If one of @thomwolf @lewtun @lhoestq could respond, that would be even better since they have the first-hand details of the dataset. If anyone else has those, please reach out! Thanks!) Hi ! According to the DPR paper, the wikipedia dump is the one from Dec. 20, 2018. Each instance contains a paragraph of at most 100 word, as well as the title of the wikipedia page it comes from and the DPR embedding (a 768-d vector).
[ 0.146807313, -0.3599883616, -0.1104262546, 0.5688871145, -0.2651137412, 0.0071313893, 0.1473311186, 0.1168371066, -0.1801617593, -0.2350244075, -0.0067062248, -0.0107021453, 0.0064400793, 0.1478558034, 0.1353964508, -0.5107955933, 0.10089463, 0.0089568133, 0.0648308471, -0.2404282838, -0.1580114514, 0.1133474261, -0.5038692951, 0.1290734261, -0.1562559009, -0.2433904558, -0.2280955166, 0.1571407169, -0.3485134244, -0.4826008379, 0.3066921532, 0.1999156922, 0.5760831833, 0.1271487176, -0.0001116685, -0.2763669193, 0.2172319591, -0.0284946188, -0.1582502723, 0.4231162667, -0.5140340328, -0.1671160311, 0.1726876199, -0.3551970124, 0.3106274009, -0.5295949578, 0.000472523, 0.3169939816, 0.3888758719, 0.1339211613, 0.1594085544, -0.1981490552, -0.0706541836, -0.1687015742, -0.0432025827, 0.2109134793, 0.0879056901, -0.2134172171, 0.054803133, 0.0790387318, -0.1157178208, 0.0932189226, -0.3038279712, 0.0596617684, 0.3489580452, -0.1674750745, -0.1517791897, -0.4351550043, 0.4154567122, 0.6235173941, 1.0557756424, -0.0582363009, 0.1653032303, 0.0842049867, -0.3430510759, -0.2632784545, 0.0724845007, 0.2549049556, -0.0597155914, 0.0844703615, 0.0459233038, 0.0988879353, -0.3525495827, -0.0660267249, -0.4859411716, 0.3603988588, -0.0956519544, -0.1524918079, -0.1332605481, -0.2201257795, -0.1197413653, -0.2582207024, -0.075869903, 0.1380988955, 0.0813380852, -0.1960390359, -0.0144393081, 0.2058965415, 0.103917256, 0.1517534405, -0.0321798809, 0.0553499162, 0.1553788185, -0.0679020435, 0.589458406, -0.1172456667, 0.0824514106, 0.2480857521, 0.2179449648, -0.1771537066, -0.0932126343, 0.2241449356, -0.0958791748, 0.1698106527, -0.0952591449, -0.3475188613, -0.0256959386, -0.1765571088, 0.339595139, 0.5081166029, -0.2119088173, -0.2511977851, -0.5433137417, 0.143962115, -0.0724350139, 0.2263396233, 0.1261407733, -0.1283297241, -0.0093734842, -0.0317854248, 0.0312478282, -0.1439610124, -0.1165599152, -0.090912424, -0.0995640606, 0.2544186115, 0.30075562, -0.0132865161, -0.0120899323, -0.0628184751, 0.2883186042, 0.1435114741, 0.4088804424, 0.2431744337, 0.0264672171, 0.0653224215, -0.1296440512, -0.2920663357, -0.3290183842, 0.1271611899, -0.0145190274, -0.1255481094, -0.3794345856, 0.1818444431, -0.2204214334, -0.0311303735, -0.1434299946, 0.3879497945, -0.1079709306, -0.2257082015, 0.23762016, -0.1241786554, 0.0422231406, -0.3442401588, 0.0996989459, 0.2531830966, -0.5339754224, 0.2154152542, 0.0884593427, -0.0179498438, 0.003574074, -0.0027890236, -0.0778324455, 0.2600713074, 0.0996521339, 0.2558113039, 0.1653072387, -0.3504900038, -0.0240315013, 0.2304504663, 0.2619318664, -0.0031489148, 0.040083915, -0.0888655037, 0.4833317399, 0.0871084109, -0.0310042892, 0.3420560956, 0.0983751416, -0.0745488778, -0.1251421273, -0.058135327, -0.1222249642, -0.0268392581, -0.0604451783, -0.1612693965, 0.2109295279, 0.5080270171, 0.2458338141, 0.0620278791, 0.0785710439, 0.2437519431, -0.1031632647, 0.0318602473, 0.4806426167, -0.070721522, -0.2980214357, -0.0254668463, -0.1643807292, 0.2947775722, 0.2091661692, -0.0569561683, -0.2462621331, 0.0296604168, -0.0694216341, -0.6346976757, 0.1825539321, -0.134741351, 0.2002726346, 0.2829962075, 0.0263546295, -0.4179141223, 0.1168470606, -0.1508009285, -0.3515051007, 0.0402131565, -0.0528308824, 0.24829337, 0.0282763839, 0.1365652233, 0.0012267954, 0.2096631676, 0.1662367582, -0.199026525, 0.309991926, 0.0575625002, 0.3121470213, 0.5474579334, 0.1672428697, -0.4221025705, 0.3135583401, 0.0097278925, 0.0506816879, -0.1355801076, -0.3305470049, 0.4808564782, 0.1015537605, -0.0911634639, -0.1326791197, 0.1209544241, 0.2047296464, -0.1241745204, 0.2408510745, -0.1761583984, -0.0536064021, 0.5355107784, -0.1288271248, 0.1641761512, -0.1978629529, 0.207350105, -0.0705109909, -0.603458643, 0.0323046967, -0.0261398796, -0.3675805628, -0.6090577245, 0.3488853872, 0.1280798763, -0.0511550903, 0.1210691035, 0.3134017885, 0.0250293426, 0.1054702625, -0.281401217, 0.2922218144, 0.1323705316, -0.294729799, 0.1092889756, -0.1143743619, 0.3988983333, -0.0341961421, 0.0417789556, 0.0217812173, 0.2325130552, -0.0273007452, -0.026012918, -0.2558702528, -0.199434787, 0.2162519544, 0.4301963151, -0.1592896581, -0.2968257964, 0.1049417555, -0.2731720805, -0.031901367, 0.042814035, -0.0398169458, 0.4947300255, -0.0914443806, 0.1142945588, -0.1254176497, -0.5702388287, -0.2216063291, 0.167145282, 0.0043518785, 0.4730893075, 0.2006805986, 0.0615446307, 0.027971575, -0.1948077679, -0.3771122396, 0.2749086022, 0.0271191001, 0.1235200241, 0.0299482364, 0.2710009813, -0.2959024906, -0.1787259728, -0.2965991199, 0.0112044914, -0.155864194, 0.0502529666, -0.1415266246, -0.0006120547, 0.2380174398, -0.3561463356, -0.2138936818, -0.1005491093, 0.1703163385, 0.0556772202, 0.0415744558, 0.0199213289, -0.3117672205, 0.1492576003, 0.0666551962, 0.0884125531, -0.3115167022, 0.0268897135, 0.1876998246, -0.3332180083, -0.3622555435, -0.0269673411, -0.2470222414, -0.0422627032, 0.0147012258, -0.5535592437, -0.1292989552, 0.0975082442, 0.4674603045, 0.4584522247, 0.1356953532, 0.2166374922, 0.048699934, -0.0223428812, 0.0183916539, 0.0778303817, -0.1877861619, -0.0271365382, 0.04656028, 0.1986152828, -0.1598831117, -0.1615210921, 0.8978897333, 0.328779459, 0.000710181, -0.1886295825, 0.0542045347, 0.0828768611, 0.0812461749, 0.3094264567, 0.1461465955, -0.158357963, -0.1215296686, 0.3632850349, 0.1558089852, -0.3538033366, -0.0194306616, 0.1971382052, -0.4137772024, -0.0474471189, 0.1039153114, 0.1694964021, 0.3358003795, 0.0073461365, -0.1098667532, -0.0551966578, -0.3558531106, -0.0039503751, 0.1159242764, 0.070076935, -0.1502847821, -0.3658563197, 0.0727115571, -0.2537301779, 0.2074044645, 0.0518753454, -0.3233167529, -0.1125689745, 0.1023419127, 0.1448533982, 0.2590363622, 0.1036229953, -0.6515968442, 0.2491787225, 0.2450971007, -0.0239295531, 0.1081535071, 0.1538995951, -0.4654585421, -0.2285346389, 0.1134741008, -0.1211099997, -0.1578001827, -0.0823604092, 0.2198199928, 0.1503870487, -0.3325511515, 0.0876539871, 0.2968558371, -0.3698282242, -0.0357159041, -0.1711561531, 0.1887790263, 0.0538147576, -0.2238446623, 0.1396691799, -0.0598472655, 0.6358277202, 0.1089960784, 0.2398456633, 0.0183201581, 0.1840499341, -0.1587888151, 0.164050281, -0.1403857768, 0.2226998806, 0.0664145872, -0.091056332, 0.0968257934, 0.0044103931, 0.0010680818, 0.0433818325, 0.2595339715, -0.0920706987, -0.0575160794, -0.1998926252, -0.0779378936, -0.4634836018, -0.3333184719, 0.1498979032, -0.1265581101, -0.2876895964, -0.2943078876, 0.5341911316, 0.0852837861, -0.3334855437, 0.0900796503, 0.2408359349, -0.1113092378, 0.5726267099, 0.2546648681, 1.0124307871, 0.0728869736, 0.3013716936, 0.2153790444, 0.042838946, 0.4201388061, -0.2166172415, -0.1817518026, -0.3204354048, 0.3445421457, -0.2056182623, 0.0870902389, -0.1614390612, 0.1653941572, -0.2381660342, -0.1672190428, 0.0330330245, -0.2428913563, 0.0029545857, 0.2574388385, 0.4406961501, 0.1316481233, -0.0608846657, 0.1036745086, 0.2084353566, 0.051644057, -0.084006004, -0.1193163991, 0.101406239, -0.0894707218, -0.6938207746, -0.1446161568, 0.3040717244, 0.2205507755, -0.0062836981, -0.5179880261, -0.0067537506, 0.9110678434, 0.0090247774, -0.1043230444, -0.2963886261, 0.237349838, -0.2418464571, -0.2543944716, 0.2574524283, 0.0880671293, 0.266471982, -0.1185312048, -0.1629616618, 0.2492358685, -0.1441993117, 0.086329557, -0.3338043988, 0.1495852619, -0.37666291, -0.1787374318, 0.0823493376, -0.0929215178, -0.4592579305, 0.0291847382, 0.140625298, 0.0955661461, -0.0328612551, 0.2345609963, 0.3182823062, 0.0051348507, 0.0788675472, 0.1832142174, 0.3496101499, -0.3145319223, 0.0427171439, 0.4445183873, -0.3267808557, -0.2045079917, 0.3152220249, -0.2118025571, -0.0345618911, 0.0851501226, 0.0591899455, 0.0527110659, -0.0776157901, 0.2421738356, 0.1329586804, -0.1892103404, -0.0438635722, -0.2654977441, 0.0295719206, 0.4483582973, -0.3214871883, 0.0617613569, 0.0018773252, -0.4619656503, 0.1919269115, 0.4594932497, -0.2615371644, 0.2736033797, -0.2981272042, 0.1279776096, -0.0147546418, -0.2237112224, -0.1371315718, 0.0435931794, -0.0422990099, -0.136856094, -0.2067480683, -0.1359856129, -0.1390371472, 0.2083328068, 0.1024893597, -0.3425747752, 0.1519536227, -0.2291009277, -0.1314622611, 0.0051309965, 0.2063221484, 0.0592111312, 0.0407463759, 0.1857923716, 0.2228872776, 0.2326307595, -0.3224106431, 0.2063213885, 0.2563193738, 0.5068851113, 0.2024246454, -0.0173848923, -0.0041423449, -0.1687057912, -0.0802123845, 0.3521818519, 0.0312241912, -0.3089215457, 0.6065126657, 0.0455629863, -0.1404395849, -0.0269604884, 0.2767322361, 0.2853062451, -0.2933977544, 0.2066874802, 0.0056605646, 0.1167851463, -0.0000901844, -0.0456281044, 0.1668078899, 0.1359439641, -0.3538565338, -0.0236721523, 0.2553535998, -0.2145608068, -0.2203169465, 0.0931079909, 0.111820668, -0.5072060227, 0.3067827225, 0.2698409259, 0.0719222873, 0.0747764036, 0.0038421175, 0.4125705659, 0.0594985597, -0.0774954408, 0.3253270388, 0.2223076969, 0.2287699878, 0.2244240791, 0.1695545763, -0.2481241971, 0.3465125859, 0.3462077081, -0.1010748073, 0.1725814044, -0.0412256643, -0.144930765, 0.2151096165, 0.1461770684, -0.4326238334, 0.0118449973, -0.0932732821, -0.2213126123, -0.0649369806, -0.2927492559, 0.0980141535, 0.1983803958, -0.1406896561, -0.2699543238, 0.1156844422, -0.0250693467, -0.2699615657, -0.2376518101, 0.4060789347, -0.230684638, 0.1341056824, 0.0067017539, -0.0930989087, 0.0359678529, 0.1215659231, 0.1913227886, 0.4239756465, 0.2804238498, 0.0590934865, -0.6759782434, 0.0046153897, -0.0273322836, -0.0416027382, -0.0057277377, 0.3657988906, 0.1271648705, 0.0501428805, -0.023748273, 0.0613114424, 0.002398636, -0.2257887423, 0.3473935425, -0.0425316282, 0.0954582915, -0.1425269395, 0.1258209646, -0.215449661, 0.3171747625, 0.0086123766, -0.2580658197, 0.2769482434, 0.3069764674, 0.392616123, 0.1385297924, -0.0053544794, 0.0903206766, -0.1383432299, 0.4564582407, 0.5984025598, 0.1831304431, -0.0196980573, -0.1394225359, -0.3494384587, 0.1328232139, 0.0246828143, -0.3186727762, 0.3210576773, 0.2196725905, 0.1293793917, 0.2575721741, -0.4618197083, -0.17356354, -0.1272051036, 0.5393886566, -0.3134623766, -0.0600838512, 0.0100159859, 0.2575778365, -0.3557347953, 0.0403802991, 0.2864099741, 0.1198704392, -0.0552723594, -0.1852652282, -0.0398895368, 0.1576775461, 0.5686980486, 0.0124106891, 0.1874971539, 0.3892472982, -0.0579257049, -0.0162072051, -0.1320119053, -0.00756235, 0.1857114881, 0.1713511348, -0.1321340352, -0.1546348482, -0.0585524254, -0.1605717242, 0.1446629018, -0.0673929676, -0.2395290583, 0.259188652, -0.4176957011, -0.3461328447, 0.0276953653, 0.005178113, 0.2272839695, 0.2252939045, -0.2268801928, -0.0876415074, -0.0589381978, -0.2727935016, 0.1373521835, -0.4831084013, -0.0196214225, 0.1654344052, 0.0734590292, -0.2589673996, 0.1800549179, -0.4710064232, 0.1471197307, 0.3507258892, -0.2305959165, -0.2875241339, -0.1754292846, 0.1239067987, -0.1333118677, -0.2466830909, 0.1372389346, -0.0033308284, -0.3687978387, -0.3573466241, -0.2780869603 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
IMO, the data streaming test is good enough of a test that the dataset works correctly (assuming that we can more or less ensure that if streaming works then the non-streaming case will also work), so that for datasets that have a working dataset preview, we can remove the dummy data IMO. On the other hand, it seems like not all datasets have streaming enabled yet and for those datasets (if they are used a lot), I think it would be nice to continue testing some dummy data. I don't really have an opinion regarding the JSON metadata as I don't know enough about it.
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
105
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw IMO, the data streaming test is good enough of a test that the dataset works correctly (assuming that we can more or less ensure that if streaming works then the non-streaming case will also work), so that for datasets that have a working dataset preview, we can remove the dummy data IMO. On the other hand, it seems like not all datasets have streaming enabled yet and for those datasets (if they are used a lot), I think it would be nice to continue testing some dummy data. I don't really have an opinion regarding the JSON metadata as I don't know enough about it.
[ -0.2486526221, 0.0137668708, 0.0282523055, 0.1720922291, 0.0348425992, 0.2506077588, 0.3021661937, 0.1551800519, -0.1902869642, 0.0683339164, 0.2187203616, 0.0646495596, -0.0933549777, 0.244366765, -0.11610955, -0.0490053557, 0.1391410977, 0.0312336441, 0.1161179468, 0.0746642798, -0.3207255304, -0.292614162, -0.0709844008, -0.241312772, -0.2504268587, 0.1092137024, -0.1224097833, 0.0149586704, -0.3816935718, -0.1647892892, 0.1133759692, 0.3793190718, 0.0979221389, 0.2544299364, -0.0001264203, 0.0128028449, 0.6090390682, -0.0712980404, -0.4011119306, -0.1539130956, -0.3898028731, 0.362811327, -0.0220419914, 0.0321547426, -0.2279219478, -0.1073066965, -0.2318498939, -0.3765940666, -0.0290933214, 0.1177043915, 0.0256801657, 0.039614968, -0.4309013784, -0.0631439984, -0.0313722827, 0.9255703688, -0.1825042963, 0.0989713073, 0.4341517687, 0.1677657068, -0.0156636722, 0.2434832603, 0.0460384004, -0.0732743591, 0.0879202262, -0.0114353923, 0.104558602, -0.2269557267, 0.3958579898, 0.1985937804, 1.1765062809, -0.2331518382, -0.1955236644, -0.1157744601, 0.1926610917, -0.0146533204, 0.2199675292, 0.2478120774, 0.0509906448, 0.141182065, -0.4045703709, -0.3414750397, -0.044459559, 0.0882326812, -0.1029476449, 0.2359267175, 0.0860852227, 0.1686286181, -0.1502656937, 0.0836120918, 0.3949389458, -0.7694565058, -0.2043084353, -0.1173361093, 0.407294482, -0.3681436181, -0.1559503973, -0.1759454757, 0.2297381461, 0.3057639003, -0.0552045442, -0.0458592512, -0.1806497723, -0.1297554225, 0.6822134256, -0.1319938749, 0.2199289203, 0.4627605975, 0.2848487198, 0.1766171902, 0.2574860752, -0.0315729193, 0.1004958078, 0.4986416399, -0.3643733859, 0.1501464248, 0.2979201376, -0.4887470901, -0.069649756, 0.0692838877, -0.180928871, -0.2053926885, 0.0799738914, 0.0412658565, -0.0877056941, 0.354286015, -0.271199584, 0.1464088708, 0.3190533817, -0.0799843371, 0.0080535784, -0.0237995479, -0.1003377587, 0.2988202572, 0.2166260332, 0.2190883309, 0.3037215769, 0.239871487, 0.4130536616, 0.0553476252, 0.2576732337, -0.2618195713, 0.0307004862, 0.2436750233, -0.3425036371, 0.1409930885, -0.1227422804, -0.0024412426, -0.2252640128, 0.4225276709, 0.0982008129, -0.4757496715, 0.0818148479, 0.0361492336, -0.3409238458, 0.2439304441, -0.536916852, 0.2835013866, -0.4571819901, -0.0821090341, 0.1437700242, 0.0071931165, 0.0578449592, -0.1192632392, -0.0832066238, 0.2534865439, -0.2441457808, 0.0986580402, 0.2421216369, 0.0721873045, -0.0823992267, 0.1026090905, -0.5668732524, -0.0173748508, -0.1907695532, -0.4189892411, 0.2413859963, -0.8214487433, -0.0991703793, 0.3857123554, 0.1366874129, 0.2780224383, 0.1970303208, -0.0171156712, 0.156387493, -0.2286948562, -0.0189915095, 0.0432742089, -0.2614360154, -0.0347660072, -0.2717987895, -0.2289517671, 0.050596118, 0.3059805036, -0.0392984897, -0.0525126457, -0.1926525682, 0.3646832108, 0.1365927458, 0.0634340718, 0.0849896222, 0.1070230305, 0.4106436968, -0.3799119294, 0.0647515655, 0.2652451992, -0.6074754596, 0.1401082277, 0.2517109811, 0.3863730729, 0.1255488992, -0.556347549, -0.0805995539, -0.1913723201, 0.0351369232, -0.1770510823, -0.0404790603, 0.0315017812, 0.1153380573, -0.0994780287, -0.2010633647, 0.1973275691, -0.2527267635, 0.2045268714, 0.0242693108, 0.5208438635, 0.0934554636, 0.2553085983, 0.1447544396, 0.0518063679, -0.1822932959, -0.2388096303, 0.0535622127, 0.2125794739, 0.1466685832, 0.1059792563, 0.3040184975, 0.5328745246, 0.5045660138, -0.3572554886, 0.1747084409, 0.1948998421, 0.0583741479, -0.26504457, -0.6684814692, 0.4018934667, -0.2051253021, -0.0164160244, -0.1205787808, -0.1986341923, 0.0239946563, -0.0178098734, -0.5093135834, -0.1551643461, 0.0300023388, 0.3529708982, 0.0941117033, 0.220717296, -0.2849732935, 0.0801610053, 0.2103638649, -0.0866310298, -0.248623684, -0.0398219861, -0.2598920465, -0.2340339571, 0.385540396, -0.0764451623, 0.798963964, 0.0883768648, 0.1172178313, 0.015588237, 0.0058106747, 0.0148227056, 0.2417991459, -0.1069393232, 0.0657225624, -0.0059655746, -0.0123098725, -0.0430614725, 0.0476202369, -0.0808848068, 0.2607135475, 0.2574304342, -0.073755689, -0.2194235176, -0.0323582292, -0.3028434217, 0.2093314976, -0.124289833, -0.1464807391, -0.1831123233, 0.1439924091, 0.289162755, -0.1152830347, 0.0884758532, 0.0853968039, 0.4977720976, -0.2961882651, -0.2895882726, -0.286337018, -0.2353239506, -0.0523757897, 0.0494159944, 0.2383067906, 0.0238173641, 0.2719207406, 0.0393215232, 0.1430501789, -0.4720922112, -0.54058218, 0.2405344695, -0.0001884927, 0.2240739912, -0.05666795, 0.0606762357, -0.0024817875, -0.0516294837, 0.0781564713, 0.0332837179, -0.0436776131, -0.2030096799, -0.1050014496, -0.0594248548, -0.1466127187, -0.2361754179, -0.0594708472, -0.249132067, 0.1131789461, -0.0464332588, -0.1321881413, -0.0750781894, -0.1236278117, -0.4684521854, 0.0574590117, -0.2236884385, -0.2692933083, -0.5981267095, -0.0194495302, 0.0145446612, -0.1172964424, 0.2431928813, 0.1091464162, 0.2024854422, 0.2283026427, -0.6837745309, -0.4362452924, 0.2931392193, 0.3793487847, -0.0636714175, -0.3816943467, 0.2476786375, 0.2275768369, 0.0922095999, 0.1237607375, -0.2312770635, -0.2526855171, 0.2111118734, 0.2029977292, 0.062288031, 0.0612440258, 0.0631499961, 0.3500649631, 0.2516457438, -0.0819621161, -0.2772548199, 0.2394864708, 0.3754941523, -0.1660517752, -0.0558465309, 0.0604625978, 0.1601311117, -0.1350191385, 0.2968074381, 0.0678834021, -0.0973777473, -0.2813180983, 0.2370919585, -0.0452110171, -0.3035182059, 0.2415847927, -0.4091868699, 0.1550940722, 0.0231489036, -0.0217558835, -0.1466550529, -0.1002396494, 0.0423553698, 0.5034753084, 0.2783593237, -0.0083187632, -0.4892100394, 0.2006554008, 0.0083855828, 0.0083019519, 0.0728008524, 0.3936957717, -0.0940512419, 0.2989914715, -0.0210169163, 0.0007144677, 0.3286928236, -0.5707760453, -0.2335461825, 0.1670620441, -0.0428851172, -0.1664729714, 0.0168879032, -0.2313163877, 0.2644793391, 0.0239498373, 0.6697840095, -0.2699999809, -0.3246203363, 0.3383855522, 0.0828138962, 0.0674140379, -0.2856112123, -0.0321738347, -0.0750915781, -0.1372475624, 0.0555257462, -0.092303969, -0.1471085101, -0.3737545311, 0.0274092574, 0.0553075671, -0.1558558345, 0.1737683564, 0.0414326787, 0.0046462826, 0.0308968853, 0.2793536484, 0.0474343076, 0.1924204081, 0.7693204284, 0.3909531832, 0.3979735672, -0.4147132337, -0.1166813374, -0.2301608026, 0.1531545669, 0.5015386939, 0.2215406746, 0.1740347743, -0.4207727015, -0.141726613, -0.4922091365, 0.0930811614, -0.0220656861, -0.2092052698, -0.5669457316, -0.1503653228, 0.3481888473, 0.1970621943, -0.2452255338, 0.3040930033, 0.0897506252, -0.3009056747, 0.0284745488, 0.0205446258, 1.1651360989, 0.1981741339, -0.0065157791, -0.1398412287, -0.1673158407, 0.6191307902, -0.4909055829, -0.1811784804, -0.1206256375, -0.049090337, -0.0899106562, -0.1163937077, 0.4379429519, 0.246389702, -0.2986992896, 0.0288004298, 0.3784840107, 0.572527647, 0.026642289, 0.3478035033, -0.3482069373, -0.0133843347, 0.0592950433, -0.0177862681, -0.0723917186, -0.0168380849, -0.0099929394, -0.0143725229, -0.3442596495, -0.1186099425, -0.1679121703, -0.1380724758, -0.1633179933, -0.1967998594, -0.1522788852, -0.2885855138, 0.4057646394, -0.1621692181, 0.5719057322, 0.201029554, -0.3264507353, 0.0866523013, -0.2633268237, 0.0990459025, 0.0114817414, -0.111816898, -0.0024001955, -0.0237898566, -0.2631308138, 0.2846908569, -0.3557668924, -0.1896915585, -0.267573446, -0.3093957007, 0.1830302477, -0.3109353483, 0.1077486351, 0.2516305745, -0.2224674225, 0.01697612, 0.004510873, 0.0760295689, 0.1155411676, 0.2227005661, 0.0082841255, -0.1737398356, -0.4441073537, 0.0374661125, 0.2974748611, -0.3219109476, -0.1271488965, -0.2322881073, 0.0222019982, -0.1899161041, 0.3360590041, 0.1308137774, -0.1113323718, -0.1926324964, 0.2458851784, 0.0159000419, 0.0455775186, 0.0116736824, 0.3309718668, -0.0102846324, -0.0661063567, -0.1731788516, -0.3583730757, 0.3396502435, -0.1095809266, 0.3098113239, -0.0685337856, -0.0463406704, 0.0096744522, 0.0121175796, -0.2023301721, -0.0144205568, -0.0656957701, 0.3160945177, 0.2112073004, 0.1449186355, 0.0276278276, -0.2803663015, -0.0422370471, -0.3516736329, -0.2868833542, -0.023086926, 0.1275617927, 0.2809814513, 0.3384427428, -0.0376499854, -0.1500309408, -0.2077422142, 0.1156703085, -0.0080245137, 0.1496207863, -0.1203156114, -0.0356905572, 0.0058535007, 0.1910447031, 0.0440810956, -0.3722789586, 0.3454252183, 0.0546301864, 0.4598928094, -0.2124189287, 0.2504469156, 0.0648896024, -0.0804773718, -0.1417903304, 0.1854493916, 0.0400740616, 0.1473621577, 0.4051570296, 0.0914779678, 0.3698188961, 0.1439426541, 0.0213162526, 0.3299422562, -0.1809253097, -0.0180879068, 0.1915844083, 0.0498333834, 0.1457447708, -0.1635586768, -0.0804099366, 0.274117589, 0.1696029007, 0.232639581, 0.6333767176, 0.1775079519, 0.2402660251, -0.0294056237, 0.7635182738, -0.0574462377, 0.2399635315, 0.3764434755, -0.1167756617, 0.1191514954, -0.0351339169, 0.3073780835, -0.1491155922, -0.1993374377, 0.1909731179, 0.5179648399, 0.322114259, 0.0216933154, 0.2641579509, -0.0099693555, 0.1708472222, 0.3231379092, 0.0818750188, 0.0023820742, 0.1958492249, -0.0771887004, -0.204679057, -0.0772280619, -0.2126876861, -0.3639891148, 0.0880696848, 0.1506709903, -0.5006456375, -0.1697759628, -0.1837078929, 0.1838807315, -0.1817232221, 0.0174083244, -0.0457838699, -0.1484707743, -0.1329374015, -0.0173709244, 0.1628297418, 0.2102784514, -0.0187514275, 0.0081222272, 0.0996230841, 0.0022623446, -0.1249376535, 0.3844878078, 0.424852252, 0.0217791386, 0.0384734794, -0.190551877, -0.0773019046, -0.1012302488, -0.09202867, 0.0956396088, 0.3028650582, 0.1253066361, -0.5479757786, 0.0691737533, 0.1287347227, 0.0321627446, 0.2131882906, -0.1628496647, -0.3159790039, -0.2815338373, -0.0068668108, 0.0978960022, -0.0937405825, 0.4688024521, -0.0071539232, 0.0270436667, -0.364036411, 0.5241746902, 0.0041171922, -0.021359805, -0.0358911939, 0.0238233823, -0.0921154469, 0.2306790352, 0.1587035954, -0.1240062714, -0.2049052566, -0.3577739298, -0.2047332972, 0.0141326077, 0.1776228696, -0.182898283, 0.1691962332, -0.1137368903, 0.4095193148, 0.4557334185, -0.4116664231, -0.1069062874, 0.12581864, -0.0162883606, -0.3264275789, -0.0205626599, 0.1886055917, 0.1813781559, -0.2440036982, -0.0988649949, 0.1568683833, 0.4233753085, -0.1817379147, -0.2811163366, 0.2268772721, 0.2455709875, 0.1225331277, 0.1667365134, 0.1232463047, 0.5224644542, 0.1608021855, -0.079609707, 0.0635168925, -0.1789106131, 0.2579903901, 0.3085361421, -0.0412228853, 0.1808121651, -0.1446410269, -0.0472285524, -0.0094022527, -0.2748440504, -0.1689914167, 0.1085759401, -0.4727940857, -0.0689735562, -0.2966825664, 0.1079563051, 0.0787700266, 0.2858289182, -0.0695574209, -0.088835679, -0.0996594355, -0.0062532746, 0.3061682284, -0.0447495356, 0.0242084786, -0.0041867481, 0.037004713, -0.3057147563, -0.0057229986, -0.5408075452, -0.0437805094, 0.3630216122, -0.1478678137, -0.1160593554, 0.0472250991, 0.351303488, -0.1868223399, -0.1239861846, 0.189467907, -0.2174384147, 0.0014007069, -0.1419035792, 0.0678874329 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
I don't know all the details, but generally I'd be in favor of unifying the metadata formats into YAML inside .md (and so deprecating the dataset_infos.json) (Ultimately the CI can run on "HuggingFace Actions" instead of on GitHub)
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
38
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw I don't know all the details, but generally I'd be in favor of unifying the metadata formats into YAML inside .md (and so deprecating the dataset_infos.json) (Ultimately the CI can run on "HuggingFace Actions" instead of on GitHub)
[ -0.2565703988, -0.0132413674, 0.0461184047, 0.1416006088, 0.139359653, 0.2571756244, 0.3560964167, 0.188470155, -0.2326669395, 0.0781047493, 0.1527014375, 0.1550492197, -0.1056066528, 0.2942405343, -0.0938436612, 0.0398536287, 0.1528295577, -0.0513016991, 0.0435610339, 0.1166535765, -0.2324076146, -0.2528562546, -0.0571071543, -0.2305634171, -0.2598581016, 0.1249531135, -0.1566950381, 0.0633402988, -0.4106205702, -0.2137597799, 0.1743179709, 0.3247009218, 0.0896926895, 0.2540901899, -0.0001246251, 0.0060735899, 0.6050921679, -0.0537862182, -0.2970479727, -0.1600690186, -0.3328145742, 0.2906112373, 0.0145548154, 0.034682706, -0.2549165487, -0.1105046868, -0.3020369112, -0.38093099, -0.0573396198, 0.1132749394, 0.0441935956, -0.0016264725, -0.4321269691, -0.124069117, 0.0176070761, 0.9487277865, -0.2242537141, 0.0832726955, 0.4400205314, 0.1104183868, 0.0055345194, 0.2511417568, -0.0183034912, -0.1480805725, 0.1482379884, 0.0542646125, 0.2769655585, -0.1803619862, 0.3802473545, 0.169118762, 1.1847338676, -0.2980665565, -0.1961335391, -0.0855480656, 0.1469856352, 0.0561019368, 0.1904311478, 0.2749424577, 0.0226561893, 0.1590433717, -0.494356662, -0.2969920635, -0.0018678693, 0.0925917253, -0.1353554577, 0.2303596586, 0.0598985851, 0.1119995788, -0.0817822665, 0.0569799431, 0.4314076602, -0.6801912189, -0.2379593551, -0.1470595151, 0.468139112, -0.4178715348, -0.1822863221, -0.1639828235, 0.315435499, 0.3232320845, -0.1322111189, -0.0676484928, -0.1182574406, -0.1468307972, 0.7002786398, -0.16685085, 0.1949216425, 0.4919015169, 0.2789278328, 0.1883298308, 0.2716888785, -0.0199730229, 0.0895085409, 0.4109479487, -0.3386644125, 0.1187297925, 0.3129402697, -0.4845791459, -0.0528710112, -0.0052829725, -0.1292872876, -0.1126812398, 0.0170138814, 0.0350761712, -0.0387643091, 0.3999951184, -0.2567219138, 0.1766821146, 0.3021101058, -0.0074771638, 0.0112404525, 0.0128180124, -0.1566257626, 0.2825135887, 0.190502733, 0.3046734631, 0.2801950872, 0.3589212, 0.4855591059, 0.0062276903, 0.1866153181, -0.1752793193, 0.0425023176, 0.2534373999, -0.321834743, 0.0975924954, -0.0386159681, -0.0875001103, -0.263576895, 0.3770353496, -0.0413466804, -0.4021498561, 0.0433181487, 0.0500486083, -0.2884597182, 0.3348762989, -0.4575413764, 0.2201310992, -0.3668029606, 0.0455244482, 0.1497785151, 0.0110586816, 0.0818299055, -0.1558545381, -0.0595888793, 0.2145083547, -0.21906133, 0.0998605415, 0.1867482662, 0.099715136, -0.1493079513, 0.1167141125, -0.5950160623, -0.019342795, -0.2265223861, -0.3761901259, 0.2680709064, -0.9781393409, -0.0862037763, 0.3875419199, 0.150979653, 0.2233335823, 0.1928898245, -0.0281693824, 0.2047892362, -0.2677517533, 0.0752758309, 0.0267111044, -0.3526500463, -0.0404147543, -0.2413204163, -0.26113832, 0.0028880953, 0.249381423, -0.0650250167, -0.0704546198, -0.0812997669, 0.3685339093, 0.1718640924, 0.0031156109, 0.0648461804, 0.1550648957, 0.3700855374, -0.3747097552, 0.1169398129, 0.2551825345, -0.6471697688, 0.1039182469, 0.2409281433, 0.3850512505, 0.0610975288, -0.6422052979, -0.1037906483, -0.1907633543, 0.0131255602, -0.2316428125, -0.0295447838, -0.0320502631, 0.028244894, -0.0393640101, -0.1840423942, 0.1557932645, -0.1785773486, 0.2254112363, 0.0972927138, 0.421272248, 0.097808741, 0.2518070042, 0.1794214398, 0.1216340959, -0.1627431512, -0.2107481211, 0.0858392119, 0.2355059683, 0.1420681626, 0.1429121345, 0.3499445617, 0.5536305904, 0.4912441075, -0.3566737771, 0.2160499692, 0.0493651666, 0.01866965, -0.2800177336, -0.6802322268, 0.4566257894, -0.2688020766, 0.001473819, -0.1239589155, -0.1167333424, 0.0358804092, -0.0486034304, -0.5542071462, -0.2367336452, -0.0548826605, 0.263278991, 0.095188424, 0.2151772976, -0.1527880281, 0.1387812495, 0.2934567332, -0.0639308468, -0.2198858112, -0.0632853657, -0.2505204082, -0.1648674011, 0.2953700721, -0.0481902175, 0.7303114533, 0.132880941, 0.1025363877, 0.0637683198, 0.0190031603, 0.0166126397, 0.246803239, -0.0941288546, 0.1161879599, 0.0116855176, 0.0773394927, -0.0375977904, 0.1234453097, 0.0776257962, 0.1560183614, 0.2009220421, -0.0647544935, -0.1422571987, -0.0912888572, -0.1877273023, 0.1913493127, -0.1030499116, -0.2025354803, -0.1551283449, 0.0911142826, 0.2413778603, -0.0629168525, 0.1106379107, 0.0553516299, 0.4378423095, -0.2798093557, -0.1776719838, -0.1645486057, -0.2106559575, -0.0440258384, 0.0446692072, 0.2849070132, 0.0155347707, 0.2756646574, -0.0140440455, 0.1978572756, -0.574167788, -0.5353813171, 0.2564862072, 0.0225441065, 0.2368776798, 0.0462733246, -0.0300052799, -0.0133646922, -0.0198773388, 0.0942616686, 0.1059287786, -0.0426515602, -0.139150396, -0.1234077066, -0.0554160401, -0.2215986401, -0.2531767488, -0.040193364, -0.2280886918, -0.0011412789, -0.083031185, -0.1553629935, -0.0639987141, -0.1233597919, -0.5331251621, -0.0243525114, -0.2296660841, -0.2312081754, -0.5105113983, -0.0055030128, -0.0475643687, -0.0964688063, 0.2881304324, 0.1338598728, 0.165891856, 0.2360761762, -0.6717328429, -0.4597175419, 0.3057687879, 0.3347576857, -0.0059936936, -0.3518351614, 0.244657442, 0.278826654, 0.0932811648, 0.1383456141, -0.2069210559, -0.2460864633, 0.0792097896, 0.1690742373, 0.0375904143, 0.0475278571, 0.1589487493, 0.2641872168, 0.2458785921, -0.0773320198, -0.3262378275, 0.1932058036, 0.3924692273, -0.1080079526, -0.1047019362, 0.0172929261, 0.1727535725, -0.0671514198, 0.3229855001, 0.1148889065, -0.0627982169, -0.2049087435, 0.2556046546, 0.0071308161, -0.3686795831, 0.2558734119, -0.4704269469, 0.123442173, 0.0087813921, 0.0230975207, -0.1346833855, -0.1381619573, 0.0832316503, 0.5081343651, 0.1568184495, 0.0356507003, -0.4369156063, 0.2471275777, 0.029080281, 0.0241039135, 0.0566714481, 0.3378043771, -0.1049174294, 0.2747971117, -0.0164282285, -0.0206825156, 0.3889724016, -0.5256382227, -0.2275761664, 0.2119199783, -0.0574856922, -0.0837206692, -0.0225502606, -0.2052701712, 0.3418600857, 0.0095833363, 0.7943099737, -0.2530727684, -0.4259714782, 0.3123732507, 0.1097142175, 0.0790015161, -0.24453789, -0.0198938102, -0.108764939, -0.15500772, 0.0197048951, -0.1053217128, -0.1417351514, -0.3634743392, 0.0169221628, 0.0326453522, -0.1428551227, 0.1512284875, 0.0323932283, 0.0715218484, -0.0974933505, 0.2244594693, 0.0333618708, 0.2368780524, 0.7870948911, 0.3248868585, 0.3764774203, -0.4701586366, -0.1413056105, -0.3387793601, 0.1815239042, 0.4957786202, 0.2412474155, 0.1061332673, -0.4186825752, -0.2240944952, -0.4770532846, 0.0355897583, 0.0579454377, -0.2671808302, -0.6551100016, -0.0776730403, 0.3171151876, 0.2429419011, -0.1816039085, 0.1765282899, 0.1524480283, -0.3663304746, 0.0094205663, 0.1023520082, 1.1896779537, 0.1269803345, 0.0356191471, -0.1622264385, 0.0102179274, 0.5701081157, -0.4937041402, -0.1408753395, -0.2024167627, 0.0606582873, -0.1117944121, -0.1314281672, 0.4176470041, 0.2538172007, -0.3344371617, 0.0028517416, 0.2887921035, 0.5883649588, 0.0304110628, 0.2847398221, -0.2770496309, -0.0304166153, 0.0832194388, -0.0094809206, -0.031961713, -0.0707313791, -0.0258090086, -0.0795897469, -0.3746044934, -0.0508511066, -0.1954680681, -0.1416074038, -0.1019733697, -0.2325478345, -0.1193816811, -0.359254986, 0.4106393158, -0.1621631086, 0.7000203133, 0.2766178846, -0.2975450754, 0.0491099991, -0.2648477852, 0.091916889, -0.013819634, -0.1774229109, -0.0308609679, -0.0074166874, -0.21332407, 0.2115178853, -0.2820946574, -0.2045288682, -0.2247120142, -0.3048284948, 0.1971713454, -0.3845855594, 0.1185907722, 0.1280961931, -0.0839106217, 0.0113039128, 0.004914186, 0.0960902646, 0.1370788813, 0.2212244421, 0.0367507525, -0.1769825071, -0.3501282334, -0.077609621, 0.3098030686, -0.3752487302, -0.2399926633, -0.1475981772, -0.0094599724, -0.2126806825, 0.3510921597, 0.1421331018, -0.1219793409, -0.1507965475, 0.2695623338, -0.0237352494, 0.093336381, 0.1127623096, 0.3146815598, -0.0515975989, -0.102431953, -0.1979137361, -0.3289599419, 0.3840497136, -0.1318802387, 0.2872430086, -0.051689107, -0.056545876, -0.1325329691, -0.042393107, -0.2097153515, -0.0162674002, -0.0692190006, 0.303601265, 0.2139458805, 0.1221432686, -0.0240688715, -0.2627845109, -0.031161705, -0.3534572423, -0.2751668096, -0.0336882919, 0.1471648663, 0.2724638879, 0.2222256511, 0.0498971157, -0.0468056388, -0.1586136818, 0.0580569021, -0.061911989, 0.2105538249, -0.0503339469, 0.0047197109, -0.0504721552, 0.0970500931, 0.0851868019, -0.3326858878, 0.2952724993, 0.0369971581, 0.4398790896, -0.2146814018, 0.2647306919, 0.0017060088, -0.1003947333, -0.0617920794, 0.2472523749, 0.0694339201, 0.1736962199, 0.3687591851, 0.129648596, 0.3413084149, 0.2477743179, 0.0417751223, 0.2876476049, -0.1865827441, -0.0221995413, 0.1387123317, 0.0472339056, 0.1520921737, -0.1901610792, -0.0610040799, 0.2262417227, 0.1025877967, 0.2895799279, 0.6259869933, 0.1861834526, 0.1689307839, 0.0109317582, 0.8310328722, -0.1295230985, 0.2305062264, 0.4195268154, -0.1056063697, 0.1527599543, 0.0301084407, 0.2861784697, -0.1035544127, -0.1024606302, 0.1370753199, 0.4660720229, 0.3241268992, -0.0835018978, 0.2703151107, 0.0030138849, 0.2356892973, 0.2960928679, 0.1491870582, -0.0746888071, 0.2108215392, -0.0419306755, -0.0900572836, -0.1889792681, -0.2169693261, -0.2879267335, 0.0254308581, 0.1624693274, -0.3389310241, -0.2255863994, -0.1586282551, 0.1957431734, -0.2672097981, 0.0598067679, 0.0241044741, -0.140800029, -0.078766197, -0.0084228199, 0.1988600791, 0.1595545113, -0.0479609929, -0.030191578, 0.0559078753, 0.011743363, -0.1479271501, 0.3222784698, 0.3658795953, 0.0831514522, 0.0830387697, -0.1658109576, -0.1350785345, -0.1879859716, -0.110240005, 0.1104926094, 0.2146939486, 0.0889727175, -0.5584033132, 0.0252722576, 0.1351103783, 0.0404849984, 0.1781629026, -0.2308668196, -0.3896416426, -0.2313796729, -0.0348066241, 0.1144121662, -0.1175756231, 0.4333830476, 0.0954006463, 0.0744342953, -0.4825786948, 0.589489162, 0.0822871476, -0.0157612506, -0.0888231099, 0.0373951308, 0.0241612699, 0.1474100649, 0.1662738472, -0.1605366915, -0.1691179872, -0.3011990786, -0.2486537844, 0.0813202858, 0.0939256772, -0.1980558187, 0.1353012025, -0.1107024029, 0.4603683054, 0.4491732717, -0.3487544954, -0.0394925177, 0.2224500626, -0.0426922664, -0.2812840641, -0.0046268641, 0.13375552, 0.045975145, -0.2589533627, -0.1777799129, 0.1768338382, 0.3481763303, -0.1406993419, -0.2761748731, 0.3012723625, 0.2858673036, 0.1462807208, 0.087557748, 0.1661088616, 0.4103266001, 0.1616930366, -0.1598236114, 0.0402574651, -0.1613606364, 0.2418168187, 0.3118973672, -0.0842339024, 0.0653461814, -0.2564405799, -0.0468820035, -0.0512910187, -0.2714597881, -0.15225178, 0.1303765625, -0.499147594, -0.0093348622, -0.2495427728, 0.0367993154, 0.1036805212, 0.2710160613, -0.0892218202, -0.089424625, -0.053444922, -0.0525590405, 0.2567112744, -0.0307049509, -0.0904336721, 0.0553323627, 0.0272734966, -0.3359898627, -0.012120855, -0.5348020792, -0.0627349392, 0.298171252, -0.057256043, -0.1670687497, 0.0760931373, 0.3573369384, -0.2173679322, -0.1674497724, 0.2204756886, -0.204054445, 0.013069896, -0.1719883531, 0.0306227561 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
The dataset_infos.json file currently has these useful infos for each dataset configuration, that I think can be moved to the dataset tags: - Size of the dataset in MB: download size, arrow file size, and total size (sum of download + arrow) - Size of each split in MB and number of examples. Again this can be moved to the dataset tags - Feature type of each column - supported task templates (it defines what columns correspond to the features and labels for example) But it also has this, which I'm not sure if it should be in the tags or not: - Checksums of the downloaded files for integrity verifications So ultimately this file could probably be deprecated in favor of having the infos in the tags. > Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). To get the exact number of examples and size in MB of the dataset, one needs to download and generate it completely. IMO these infos are very important when someone considers using a dataset. Though using streaming we could do some extrapolation to have approximate values instead. For the integrity verifications we also need the number of examples and the checksums of the downloaded files, so it requires the dataset to be fully downloaded once. This can be optional though. > IMO, the data streaming test is good enough of a test that the dataset works correctly (assuming that we can more or less ensure that if streaming works then the non-streaming case will also work) I agree with this. Usually if a dataset works in streaming mode, then it works in non-streaming mode (the other way around is not true though). > On the other hand, it seems like not all datasets have streaming enabled yet and for those datasets (if they are used a lot), I think it would be nice to continue testing some dummy data. Yes indeed, or at least make sure that it was tested on the true data.
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
355
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw The dataset_infos.json file currently has these useful infos for each dataset configuration, that I think can be moved to the dataset tags: - Size of the dataset in MB: download size, arrow file size, and total size (sum of download + arrow) - Size of each split in MB and number of examples. Again this can be moved to the dataset tags - Feature type of each column - supported task templates (it defines what columns correspond to the features and labels for example) But it also has this, which I'm not sure if it should be in the tags or not: - Checksums of the downloaded files for integrity verifications So ultimately this file could probably be deprecated in favor of having the infos in the tags. > Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). To get the exact number of examples and size in MB of the dataset, one needs to download and generate it completely. IMO these infos are very important when someone considers using a dataset. Though using streaming we could do some extrapolation to have approximate values instead. For the integrity verifications we also need the number of examples and the checksums of the downloaded files, so it requires the dataset to be fully downloaded once. This can be optional though. > IMO, the data streaming test is good enough of a test that the dataset works correctly (assuming that we can more or less ensure that if streaming works then the non-streaming case will also work) I agree with this. Usually if a dataset works in streaming mode, then it works in non-streaming mode (the other way around is not true though). > On the other hand, it seems like not all datasets have streaming enabled yet and for those datasets (if they are used a lot), I think it would be nice to continue testing some dummy data. Yes indeed, or at least make sure that it was tested on the true data.
[ -0.2210954279, 0.0069160708, 0.0213334933, 0.2000364214, 0.1244293451, 0.3079423308, 0.2800020278, 0.2172093689, -0.0784053355, 0.096394375, 0.2354323119, 0.1877381653, -0.0900824666, 0.3275886178, -0.072766304, -0.015771471, 0.1152651459, 0.0301218908, 0.173539862, 0.1080226898, -0.2839276791, -0.2887778282, -0.0311905574, -0.2195351422, -0.3118306398, 0.0708048493, -0.1482165754, 0.0251574814, -0.3925420046, -0.2551784217, 0.1556081623, 0.3005901575, 0.1127887815, 0.164299652, -0.0001224926, 0.0712168664, 0.5550851226, -0.028968621, -0.3917884231, -0.1632172614, -0.4925614297, 0.2374787033, -0.044560384, 0.0124404579, -0.2017586976, -0.2084182948, -0.2402848005, -0.2984035015, -0.0418401919, 0.1340539455, 0.0343528725, -0.0409506597, -0.3865484893, -0.1780649573, 0.0645644665, 0.9078685641, -0.2102440745, 0.1271467656, 0.4289441109, 0.1529582143, 0.0245041773, 0.3261458278, 0.0558364615, -0.1429646015, 0.1884844601, -0.0244757738, 0.1278889775, -0.2045822293, 0.389210999, 0.2028097212, 1.1805282831, -0.2984223366, -0.1752675176, -0.1384029239, 0.1525876224, -0.0377217978, 0.1832220554, 0.2163563371, 0.0798652545, 0.1787981242, -0.4444429576, -0.3263569176, -0.0194117595, 0.0566713251, -0.070039317, 0.2103637308, 0.0666916966, 0.1638322771, -0.1348730475, 0.1070079878, 0.2654392123, -0.6999872327, -0.252835989, -0.1038836613, 0.4104928374, -0.333548665, -0.1276326627, -0.2637266517, 0.3395618498, 0.3031007946, -0.0606805272, -0.1517610997, -0.1202437058, -0.073189266, 0.7145395875, -0.0699143782, 0.190242961, 0.4698487222, 0.1969081312, 0.2032781988, 0.3117819428, -0.0511935502, 0.0088813882, 0.4114598334, -0.3733817041, 0.1473637372, 0.276946485, -0.396017909, -0.0723865926, 0.0367022082, -0.1326280087, -0.1609281749, 0.086893253, 0.0169258732, -0.0804301798, 0.3018762767, -0.2698969543, 0.0985456109, 0.34016487, -0.0762261674, -0.0016322857, 0.0208015442, -0.1440435797, 0.2887394428, 0.1298593134, 0.257969588, 0.3302916288, 0.2647244632, 0.4206182957, 0.0689916611, 0.2493014932, -0.240668416, 0.0557181314, 0.2864411175, -0.319488734, 0.1364716291, -0.1285971105, -0.0684107617, -0.2857652009, 0.4004405141, -0.0176002104, -0.4607973099, -0.002079627, 0.0538964123, -0.2711711228, 0.2970173359, -0.5828507543, 0.3256412745, -0.3997908533, -0.0412874669, 0.1680086851, -0.022230478, 0.0187079124, -0.1763267666, -0.0427716076, 0.2106146663, -0.315295428, 0.0616493784, 0.2595340908, 0.0927528739, -0.1336489618, 0.0908620507, -0.6103594303, 0.0816172361, -0.2089205831, -0.3092782199, 0.2543433905, -0.8403222561, -0.1496044248, 0.3902075291, 0.2087953538, 0.2094253749, 0.1515907645, 0.0183184128, 0.1785827726, -0.1954102516, -0.0026974005, 0.0359923951, -0.3083599806, -0.0463448428, -0.2085134238, -0.2920590937, 0.0910401195, 0.2639703155, -0.0959587544, -0.1236291304, -0.1475801468, 0.3946579397, 0.0984623209, 0.0158230364, 0.0525003485, 0.1682745963, 0.3374055922, -0.3927161694, 0.1344364285, 0.2572001517, -0.6598460674, 0.1868915409, 0.16542463, 0.3377944529, 0.0868850499, -0.5778263211, -0.1670800298, -0.1954965442, 0.0261644907, -0.3015489876, -0.0415926836, -0.0131726963, 0.2018499076, -0.1454062909, -0.1893326938, 0.1935057789, -0.2928800583, 0.2157314271, 0.0256241746, 0.4264737666, 0.0359662138, 0.2122020572, 0.1712300032, 0.1127697304, -0.1798414588, -0.2050189525, 0.0274980236, 0.2283370644, 0.2143554538, -0.0057862871, 0.3482728302, 0.5337328315, 0.4653944075, -0.2988365293, 0.2050932646, 0.0947860852, 0.0471492037, -0.1710038483, -0.6474602222, 0.3310772181, -0.2230482101, -0.0072272094, -0.1052768305, -0.135932833, 0.0464697517, 0.0589719154, -0.4383321702, -0.130917713, -0.0905921906, 0.3962101042, 0.1611952037, 0.2313715816, -0.2130074799, 0.1161330789, 0.3556316495, -0.0343427733, -0.2293510735, -0.0343603082, -0.279461652, -0.2061219066, 0.4193128645, -0.0824767053, 0.7531798482, 0.1462222189, 0.1103858948, -0.0258706342, -0.0501205213, 0.0592082478, 0.1984781474, -0.1164450496, 0.0976671576, -0.0475075431, -0.0457681678, -0.0271973088, 0.1161286831, -0.0686227679, 0.2259609401, 0.2483833581, -0.0864614993, -0.1396698803, -0.0852168277, -0.3184210658, 0.2284791768, -0.0491146147, -0.2026500553, -0.1847952604, 0.1936955452, 0.1265631318, -0.0995666385, 0.1218189597, 0.1299764067, 0.4502474666, -0.2398065776, -0.2140861005, -0.2615544796, -0.249287203, -0.1126449704, 0.0526732579, 0.2719908059, 0.0299425498, 0.2362422347, -0.0195369739, 0.1474661678, -0.4518902898, -0.5225101709, 0.2673473358, -0.0162873864, 0.3029923737, 0.0484130941, 0.0412347279, -0.0516047217, -0.032394629, 0.0620969236, 0.1496199071, -0.0704204962, -0.2363098115, -0.1133576185, -0.0633447692, -0.231793955, -0.3378813267, -0.0925959051, -0.2846382558, 0.1502205878, -0.0773871318, -0.1027370393, 0.019330686, 0.012955362, -0.4175918102, 0.0257477295, -0.1537335366, -0.2391967773, -0.5657060742, 0.0110339625, -0.0273889415, -0.0888505057, 0.2655241191, 0.1111277714, 0.2430261672, 0.2342039496, -0.6086320877, -0.4187903702, 0.2139720768, 0.3895590603, -0.0758738965, -0.3151684999, 0.2793072462, 0.2290165424, 0.1067207828, 0.1175942048, -0.2546655834, -0.2088497281, 0.1025094464, 0.1292866319, 0.127227053, -0.0053915083, 0.1767270714, 0.3566435874, 0.2389946431, -0.1325137168, -0.2747155428, 0.1912467927, 0.3884126842, -0.1418129802, -0.0829222202, 0.1117803603, 0.1565793604, -0.0695865154, 0.3088891208, 0.1218032539, -0.0143983485, -0.2148485035, 0.226111114, -0.0635025427, -0.2950587273, 0.2683446705, -0.264391005, 0.1501785368, -0.0426615179, -0.0120558888, -0.227258876, -0.0475687571, 0.0978163034, 0.5554263592, 0.1887883544, 0.0681078807, -0.4388993382, 0.2059173882, 0.1159597188, -0.0228154343, 0.1331106126, 0.2178889513, -0.1367291063, 0.2967523038, -0.0849486515, 0.0125868535, 0.4061547518, -0.5641739964, -0.2490234077, 0.213706404, 0.0670908093, -0.0567621216, 0.0234133843, -0.2432233244, 0.289170593, 0.0389705375, 0.7069610953, -0.2929341495, -0.3893752396, 0.3147114515, 0.1544757932, 0.0329077207, -0.2256744802, 0.0220174473, -0.0544614904, -0.1854403913, -0.0060731671, 0.0154895484, -0.1108562872, -0.3019336164, -0.0190152097, 0.0107506663, -0.1473127604, 0.1411847323, 0.092661649, 0.0776453465, -0.0136786494, 0.2190449089, 0.0087196473, 0.2436149716, 0.8170477152, 0.3782995045, 0.3365018666, -0.5143991113, -0.1127115265, -0.2675055861, 0.2113510966, 0.4544321299, 0.1668570489, 0.0632880777, -0.4907184839, -0.2013751268, -0.4812218547, 0.1589055955, 0.0386596769, -0.2092464119, -0.5037896633, -0.1870130152, 0.3475292027, 0.3262977004, -0.2435683757, 0.2783554196, 0.0983397663, -0.3478415608, -0.0653321445, 0.0588516295, 1.1540904045, 0.11910142, -0.0472504906, -0.1540280432, -0.1717087626, 0.6450312138, -0.5244190693, -0.18222256, -0.1577476114, -0.0302343257, -0.1067900062, -0.0982331857, 0.4321010709, 0.2960585356, -0.3193456531, 0.0391730629, 0.326304704, 0.5067607164, -0.0198362749, 0.4135214388, -0.2935845852, -0.0834350139, 0.101390563, -0.0003101837, -0.0855088085, -0.1062004045, 0.0112845525, -0.0905852467, -0.418382287, -0.0599100329, -0.191368863, -0.1282421947, -0.1663029343, -0.2030860037, -0.0793068409, -0.2224725038, 0.4037859738, -0.1378671527, 0.5302571654, 0.1929026693, -0.3049373627, 0.0540955365, -0.3065366745, 0.0697169527, 0.002215628, -0.1158835888, 0.0678028464, 0.0106757833, -0.2101589739, 0.2392551303, -0.3297281861, -0.1771294028, -0.2321210951, -0.345865041, 0.190699324, -0.4040242732, 0.1992893517, 0.1753689796, -0.1499633938, -0.0404982716, 0.0121996729, 0.0763499513, 0.1073092073, 0.1842510402, -0.0229859017, -0.1262889206, -0.3964149952, -0.0611889549, 0.2756153047, -0.3476820588, -0.1954743117, -0.1598006636, -0.0458977744, -0.1887640804, 0.3038827777, 0.1679325253, -0.1438991278, -0.1833667457, 0.2348281741, -0.0185767356, -0.0088532558, 0.0669496506, 0.3232866824, -0.0544734858, -0.0816716105, -0.1432119906, -0.3715566993, 0.4028797448, -0.1823400706, 0.3134675324, -0.0818244293, -0.1138625145, 0.0305842534, -0.0058759693, -0.2205612212, -0.0365895666, -0.0661554188, 0.2864274979, 0.1744335294, 0.1277127266, 0.0126580996, -0.2647539377, -0.0431592762, -0.3780554831, -0.2650859952, -0.0412401967, 0.0935455114, 0.2523546517, 0.2218867987, 0.0655557215, -0.1067181602, -0.1765737832, 0.0662382618, -0.0641137362, 0.2226489633, -0.1752611995, -0.0448502004, 0.0932209194, 0.1416744888, 0.0922287032, -0.3433896899, 0.3467065394, 0.1117971614, 0.5312806368, -0.1865225583, 0.2580167055, 0.02923931, -0.0749344006, -0.1526935995, 0.2276283354, 0.0195713434, 0.1286310256, 0.3657963276, 0.1603603214, 0.3465726078, 0.2089760453, -0.0155011257, 0.2790930867, -0.1392330825, 0.02792673, 0.0726490393, 0.0484892242, 0.141361326, -0.1811529249, -0.0568309203, 0.2142521739, 0.1334158033, 0.2636530399, 0.6747857332, 0.2498114854, 0.1733896136, -0.0072635673, 0.700678885, -0.0579644218, 0.1993572414, 0.5048009753, -0.0776380822, 0.1357853115, -0.0135589745, 0.353048116, 0.0143295387, -0.135675326, 0.1141141653, 0.4865880609, 0.3726508617, 0.0026926869, 0.318428576, -0.0290773921, 0.1794252247, 0.3023540676, 0.1419021338, -0.0670803264, 0.1766724885, -0.0145331826, -0.067816861, -0.1309369355, -0.1907021403, -0.3587525487, 0.0150218438, 0.1683892161, -0.4824785292, -0.1791236997, -0.3151361048, 0.1827763617, -0.2073832005, -0.0366834477, 0.0406793244, -0.2241320759, -0.1596912742, 0.0338370577, 0.1805709004, 0.2128445357, -0.0845594555, 0.0141023165, 0.0690612197, -0.0421263911, -0.1347837597, 0.308709383, 0.4660387039, 0.0824494362, 0.066582121, -0.2124108076, -0.1308588088, -0.0506611578, -0.1296516955, 0.0391762629, 0.2310786396, 0.0341344029, -0.5708651543, 0.0348074138, 0.1248038039, 0.0421672985, 0.1354025602, -0.1989424676, -0.2767201364, -0.2407914698, -0.0540656596, 0.078418918, -0.1032252535, 0.4628551304, 0.0227063261, -0.0427658595, -0.4017724395, 0.5763491988, 0.1103453934, -0.0289946645, -0.0451518744, 0.0439566188, -0.1235710382, 0.1442904174, 0.1906377971, -0.1309595257, -0.2462376952, -0.239561677, -0.1814215034, 0.0200530514, 0.1540413052, -0.3178525865, 0.1533635408, -0.0712493286, 0.3779445589, 0.4581993222, -0.3736560047, -0.105822295, 0.2715401649, -0.0152705964, -0.3707456589, -0.0622560978, 0.2235274464, 0.1098058149, -0.1252273321, -0.1390486062, 0.1152919754, 0.3709403276, -0.1631354839, -0.3056570888, 0.1723619252, 0.3162274957, 0.2023231536, 0.2360920906, 0.1264562309, 0.428684026, 0.1638689339, -0.1399567127, 0.0408893451, -0.1543721259, 0.2819180489, 0.400737077, -0.0842897072, 0.0958259404, -0.2708890438, -0.0001168237, -0.0764841214, -0.2805206478, -0.1654946506, 0.1511965543, -0.4665099084, -0.0382991284, -0.2848176658, 0.1192196682, 0.1124218628, 0.2177848369, -0.0875757188, -0.1499686688, -0.0570413247, -0.0156349074, 0.24235937, 0.0165343061, -0.030077558, 0.0701295808, 0.0026956231, -0.2321690619, 0.0333516076, -0.5695518255, -0.0111768134, 0.400231719, -0.0767683163, -0.1363385618, 0.0335313864, 0.3707151711, -0.1405590326, -0.1549312025, 0.1387513578, -0.2491162419, 0.0038379468, -0.1777577698, 0.0167775862 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
(note that if we wanted to display sizes, etc we could also pretty easily parse the `dataset_infos.json` on the hub side)
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
21
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw (note that if we wanted to display sizes, etc we could also pretty easily parse the `dataset_infos.json` on the hub side)
[ -0.2448803186, -0.0072730361, 0.0365820192, 0.1965517402, 0.078777127, 0.2738459408, 0.3356241882, 0.1830960214, -0.1585740298, 0.1159566864, 0.1745054424, 0.12919496, -0.0386308022, 0.2549432516, -0.1055927351, 0.0186514128, 0.1146853268, 0.0495393276, 0.0804453269, 0.0655288771, -0.3198399246, -0.2816703022, -0.0632382035, -0.2555607855, -0.3255382478, 0.1402469426, -0.1412354857, 0.0127848852, -0.3754111528, -0.202870369, 0.174962163, 0.3253170252, 0.1176562384, 0.1910836548, -0.00012484, 0.0245984495, 0.5953426361, -0.039674066, -0.3544956148, -0.1475137919, -0.3949457109, 0.3029103577, -0.0091450913, 0.0002632505, -0.2615970671, -0.1314412057, -0.2109636664, -0.3209062219, -0.0479370132, 0.1222054958, 0.0411136188, 0.0386699662, -0.4607895017, -0.1866854727, -0.0347405076, 0.935234189, -0.2265194207, 0.0461825542, 0.3475133479, 0.1384931058, -0.0224170201, 0.2036408782, 0.0573353134, -0.1447869241, 0.0753308311, 0.0302377753, 0.1645532548, -0.2002701759, 0.4008168876, 0.2043207586, 1.1521351337, -0.2731022239, -0.1573775858, -0.1098149866, 0.1627562195, 0.0540836267, 0.1839991063, 0.221502617, 0.0325042345, 0.1627642065, -0.4268215895, -0.3527646363, -0.0002799052, 0.0587718673, -0.1230926365, 0.1822797954, 0.1033627391, 0.1533602774, -0.1324158758, 0.098429963, 0.4020738304, -0.7522621155, -0.2735718489, -0.1007318869, 0.4321742058, -0.4182076156, -0.1062970757, -0.2099200934, 0.2524701655, 0.3113316596, -0.0914523304, -0.0711656362, -0.1720697135, -0.1221873686, 0.7082363963, -0.1236142591, 0.2212323844, 0.5232922435, 0.2780003548, 0.1661791503, 0.2873710692, -0.0057614655, 0.0576485731, 0.4986968637, -0.3875405788, 0.1142006144, 0.2498282939, -0.4602185786, -0.0922132134, 0.0809110925, -0.1082367897, -0.1439628154, 0.0528808311, 0.046730686, -0.0712865517, 0.3402050734, -0.2294054776, 0.1194688007, 0.2805404961, -0.0817140639, -0.0199744049, -0.0052313679, -0.0966556221, 0.3138817549, 0.1771493703, 0.3406618834, 0.2998601496, 0.2923064232, 0.4300594926, 0.0593837276, 0.2132395655, -0.2793403268, 0.0001082157, 0.2182283998, -0.2386259437, 0.1239299774, -0.0862811878, -0.0506770015, -0.24823156, 0.4380423725, 0.0574146509, -0.4373382032, 0.0171913207, 0.0438859537, -0.3926956654, 0.3019967973, -0.5288165808, 0.2820005417, -0.4432471097, -0.0249201469, 0.1190089658, 0.0195544157, 0.0248718075, -0.1251827925, -0.0602718554, 0.2222678065, -0.2909183502, 0.0822683945, 0.2265955359, 0.0277496129, -0.1541757882, 0.1189552322, -0.6049751043, 0.0128299333, -0.2480074167, -0.3945961297, 0.299048841, -0.8168697953, -0.1244232208, 0.345187068, 0.1384906322, 0.2133283615, 0.1345088482, -0.0079275193, 0.1656026691, -0.2160921246, 0.0251346361, 0.0117834713, -0.2696977854, -0.0653972104, -0.2308374196, -0.2717417181, 0.0172464419, 0.2806305587, 0.0060129063, -0.0614548139, -0.1411823928, 0.382286638, 0.1870007515, 0.0458829664, 0.0840020403, 0.1599847525, 0.4090307951, -0.4020366371, 0.1422463208, 0.2636935711, -0.5938822031, 0.1921904981, 0.1457267553, 0.4153380692, 0.1573150605, -0.5842547417, -0.1127411276, -0.173308298, 0.0505855829, -0.2129986137, -0.0308427289, -0.0095122494, 0.1204680279, -0.0484315045, -0.1656338722, 0.1967915595, -0.2263901681, 0.1808982342, 0.034974508, 0.5117430687, 0.1074044034, 0.2380799949, 0.1106771752, 0.0937674865, -0.1670982987, -0.1756873429, 0.0512222424, 0.186821416, 0.1662068516, 0.10085731, 0.3528004587, 0.4733614624, 0.4692262113, -0.3767587245, 0.189940989, 0.1217422038, 0.0405224226, -0.25406304, -0.66969347, 0.4085490108, -0.1638133675, -0.0549567416, -0.1621217132, -0.1577788591, 0.006258864, -0.0241206512, -0.4573487937, -0.1596006453, -0.0181768965, 0.4296538234, 0.09402477, 0.2110813707, -0.2111326754, 0.0833507478, 0.2673319876, -0.0746684223, -0.2052905709, -0.0710527822, -0.2826618552, -0.1918043047, 0.364023596, -0.1359580159, 0.7602382302, 0.1191383302, 0.1038706303, 0.0466118529, -0.0236746166, 0.057540793, 0.218534708, -0.1110881269, 0.1060414016, -0.0385601074, 0.0367091373, -0.0684515759, 0.0923173279, -0.026813468, 0.2278688699, 0.2543400228, -0.0719149187, -0.2512280047, -0.0217594206, -0.2160619795, 0.2402979136, -0.0480845831, -0.1620964408, -0.1591302007, 0.1419714838, 0.2757009268, -0.0853084028, 0.084193483, 0.0269442331, 0.4895678163, -0.2644591033, -0.2518653274, -0.2223690301, -0.2057269514, -0.0746065155, 0.06476482, 0.2126497924, 0.0384403579, 0.2144054323, 0.0102605112, 0.1699955463, -0.4834697545, -0.5269749761, 0.2771584392, 0.018449543, 0.2274240404, 0.004313367, 0.002106841, -0.0397795327, 0.0353262238, 0.0887582153, 0.0775970817, -0.0531275272, -0.2162498236, -0.1185302138, -0.0581044331, -0.1817250699, -0.2194176912, -0.000443012, -0.2431332618, 0.0819657296, -0.052737508, -0.1218451113, -0.1247653887, -0.0735529512, -0.4697289765, 0.0690140873, -0.2654529214, -0.2741990685, -0.5547904968, 0.0313587226, -0.0406833664, -0.125079304, 0.2537885904, 0.0537319593, 0.1624374539, 0.174142316, -0.7173503041, -0.4413892627, 0.242653802, 0.3998216093, -0.0657702237, -0.3543562293, 0.2726743817, 0.2117990106, 0.0958071426, 0.1249479949, -0.2847732306, -0.2780542374, 0.1635117829, 0.2081744075, 0.0431035608, -0.0001118553, 0.1260635853, 0.267766118, 0.2481461614, -0.0625024363, -0.288084358, 0.1741874665, 0.4026473165, -0.1415926218, -0.0407557674, 0.0074257855, 0.1931579113, -0.1205728725, 0.3058815598, 0.0775189474, -0.0831309929, -0.2570913136, 0.2183120698, 0.005664682, -0.3367733657, 0.2637063265, -0.3942074776, 0.1125371382, 0.0020584478, 0.047252927, -0.1636514813, -0.100474298, 0.0652767494, 0.4560281932, 0.2240086794, -0.0010823661, -0.481761992, 0.251404047, 0.0023043868, -0.0053135972, 0.0536058843, 0.3383032084, -0.1001740843, 0.2988629639, -0.0215249807, 0.014771834, 0.4050771296, -0.5168816447, -0.193210274, 0.1920489967, -0.0422966555, -0.1840372384, 0.0273564029, -0.2182108611, 0.2460557818, 0.0023367838, 0.7356858253, -0.2107118517, -0.3762225807, 0.337058574, 0.074609682, 0.0179837178, -0.2846461833, -0.0130636999, -0.0846116096, -0.1317470968, 0.0216067601, -0.0801939964, -0.1049156561, -0.3953232169, 0.0264590364, -0.0159748774, -0.1623134017, 0.169330582, 0.0613735877, 0.0466747135, -0.0363363102, 0.2892474532, 0.076947771, 0.1579776555, 0.7484484315, 0.4107915163, 0.4382841885, -0.4635061622, -0.0931960642, -0.2404107451, 0.1380588114, 0.4817920625, 0.2557784915, 0.1271374971, -0.5198004246, -0.1745422184, -0.5105239153, 0.0836900696, -0.0277466197, -0.2685304284, -0.613212049, -0.0910990983, 0.3650700748, 0.2142512053, -0.2238659859, 0.2108807415, 0.1570092738, -0.3193649948, 0.019317653, 0.0389456265, 1.1698758602, 0.1830934882, -0.0043285764, -0.1864587516, -0.0838395581, 0.6361073256, -0.4890291989, -0.1673267931, -0.212934196, 0.0199761987, -0.0898135528, -0.1147947833, 0.3936065435, 0.2581639886, -0.262121439, 0.0006960773, 0.3522523344, 0.5214217901, 0.0224925429, 0.3154394031, -0.3265459836, -0.0148063032, 0.1541388184, 0.0052282647, -0.0132321799, -0.0184504781, -0.0104173915, -0.0197157357, -0.4017748833, -0.1023105383, -0.2132920027, -0.1039509177, -0.0899783745, -0.2015687674, -0.0919896811, -0.3058175445, 0.4010346532, -0.1104227826, 0.6038659215, 0.2609815001, -0.3231954873, 0.0639269352, -0.3085020185, 0.0751124993, -0.0116014751, -0.1387605071, -0.0606014691, 0.0032493102, -0.3064303994, 0.2432161123, -0.3254351914, -0.2026228309, -0.274436295, -0.2607300878, 0.1537337899, -0.3675947785, 0.1252041906, 0.161943391, -0.1325408071, 0.0281106327, 0.0089881988, 0.1281221807, 0.1219154447, 0.2124245167, 0.0609120466, -0.189840734, -0.377568692, 0.0200340748, 0.3264290988, -0.3556032777, -0.1920734346, -0.2028668374, 0.0291442666, -0.1968257278, 0.3710873723, 0.2207672149, -0.0965373814, -0.2223246545, 0.2181028277, -0.011491864, 0.0338707976, 0.0309719387, 0.3195765615, -0.0224083029, -0.0735874698, -0.2023472935, -0.3408815563, 0.3661922216, -0.1267558783, 0.3589340746, -0.0185319148, -0.0911505446, -0.0451183617, -0.0290187001, -0.2082275748, 0.0231924262, -0.0900358334, 0.3099189103, 0.1629164666, 0.1623820066, 0.0086137345, -0.2866376042, -0.0243388675, -0.3284851611, -0.2890637517, -0.0303432941, 0.1094619632, 0.2649244666, 0.2793790698, 0.0356810801, -0.1433503777, -0.1807414591, 0.1407506168, -0.0307047907, 0.1844889373, -0.0464715511, -0.025812313, 0.0361607037, 0.1382006854, 0.0570480451, -0.4062075317, 0.3607287109, 0.0995935351, 0.5160184503, -0.2362734228, 0.3030524552, 0.0209273994, -0.0624160953, -0.0877623782, 0.207920596, 0.0792718008, 0.1692045033, 0.3275760412, 0.1601941586, 0.3879770637, 0.1555381417, -0.0102616064, 0.2795279026, -0.2005609125, -0.0061673839, 0.1749338061, 0.0606777295, 0.1403992474, -0.1896952689, -0.071454525, 0.2657598555, 0.1429252028, 0.263971746, 0.6285019517, 0.229007557, 0.1928684413, -0.0328860134, 0.777281642, -0.0713329464, 0.2237100303, 0.4252929091, -0.1518817842, 0.1114841625, -0.0249475297, 0.3093875647, -0.1004907861, -0.1049375683, 0.1527827829, 0.467898041, 0.2854520977, -0.0227011237, 0.3264813125, -0.0119609851, 0.1990650743, 0.3166440725, 0.1204859167, -0.0578127839, 0.1454545408, -0.0825508609, -0.1541695744, -0.0506931171, -0.2424945384, -0.3844136894, 0.0451570377, 0.155349344, -0.448571682, -0.195744127, -0.2408973575, 0.1932023168, -0.1743308306, -0.0388719589, -0.0505952947, -0.2062329203, -0.1570759267, 0.0418481827, 0.1861621141, 0.2474960238, -0.0974062234, 0.0146782128, 0.0309634898, -0.0442014262, -0.1474166214, 0.3463684022, 0.4346375465, 0.0260904524, 0.0279297959, -0.1865420192, -0.1394799501, -0.1002914086, -0.1253598034, 0.0685238689, 0.2152947038, 0.0588277429, -0.5760828257, 0.0470917225, 0.1441423893, 0.0351414271, 0.1585153043, -0.2088683695, -0.2991169989, -0.282899797, 0.0619035959, 0.075538598, -0.0855027288, 0.4913007915, 0.0152961584, 0.0807548091, -0.4333144426, 0.598359108, 0.0308034867, -0.0142852282, -0.0513798892, 0.0290752929, -0.1039104313, 0.1334180385, 0.1956234425, -0.1874072254, -0.1598759443, -0.3061278462, -0.1642806977, 0.1301841438, 0.129055962, -0.2408108115, 0.1384519637, -0.0810696557, 0.3720773757, 0.4451357722, -0.3595115244, -0.0745735243, 0.1973445415, 0.0229933001, -0.2871242166, -0.0338365771, 0.1725887954, 0.1110406518, -0.2166782022, -0.1448842436, 0.1416721046, 0.4076652825, -0.155645296, -0.2948505878, 0.2502322495, 0.2801314294, 0.0835738331, 0.2179675847, 0.1572657824, 0.5035453439, 0.1610426009, -0.0490030348, 0.0813856497, -0.156784445, 0.2684530616, 0.3139247298, -0.0525406189, 0.1003706381, -0.2041381598, -0.0401333794, 0.0406351686, -0.2992600799, -0.1471794397, 0.1750724465, -0.4890478253, -0.0440446548, -0.3113870621, 0.0957864299, 0.1037473008, 0.2567076981, -0.061121162, -0.1071294099, -0.0357244015, -0.0068856552, 0.2613135874, -0.0302164927, -0.0500626937, -0.0023945856, 0.0229969323, -0.3390082419, -0.0381236598, -0.5267849565, -0.0543203987, 0.3465496898, -0.0905883014, -0.1149571165, 0.0346680209, 0.3708227873, -0.152731806, -0.1554870307, 0.2457194179, -0.2196881771, 0.0131729515, -0.15045093, 0.0105635421 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
I agree that we can move the relevant parts of `dataset_infos.json` to the YAML tags. > On the other hand, it seems like not all datasets have streaming enabled yet and for those datasets (if they are used a lot), I think it would be nice to continue testing some dummy data. < > > Yes indeed, or at least make sure that it was tested on the true data. I like the idea of testing streaming and falling back to the dummy data test if streaming does not work. Generating dummy data can be very tedious, so this would be a nice incentive for the contributors to make their datasets streamable.
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
112
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw I agree that we can move the relevant parts of `dataset_infos.json` to the YAML tags. > On the other hand, it seems like not all datasets have streaming enabled yet and for those datasets (if they are used a lot), I think it would be nice to continue testing some dummy data. < > > Yes indeed, or at least make sure that it was tested on the true data. I like the idea of testing streaming and falling back to the dummy data test if streaming does not work. Generating dummy data can be very tedious, so this would be a nice incentive for the contributors to make their datasets streamable.
[ -0.2844230533, -0.0424161591, 0.0515675135, 0.1613871753, 0.0921573266, 0.2515726089, 0.2895365357, 0.1487917751, -0.1381627172, 0.073765479, 0.223337993, 0.0595797002, -0.0699712709, 0.300771147, -0.0091128284, -0.0684612691, 0.1368359923, 0.0008898102, 0.1397280395, 0.0916286185, -0.2191911936, -0.3130420744, -0.069471769, -0.2289416641, -0.1978827715, 0.1418414116, -0.1116775051, 0.0126848537, -0.3999061286, -0.1857617646, 0.1602190286, 0.4046838284, 0.0852562189, 0.2554298937, -0.0001274659, 0.0098120393, 0.6224817038, -0.1009428054, -0.3922304213, -0.148961857, -0.3854768276, 0.3515822291, -0.0044917632, 0.0952889696, -0.3044503033, -0.1279332787, -0.2087492049, -0.4227377474, 0.0243015215, 0.1042626798, 0.0013077235, -0.0147903822, -0.4303900599, -0.059294451, 0.0069345376, 0.9034436345, -0.2144510746, 0.1205799058, 0.4881693423, 0.1570315957, -0.0200622063, 0.2841074467, 0.0404434353, -0.0974308699, 0.1218168065, -0.0118865464, 0.1415306777, -0.251106441, 0.3563937843, 0.2304176539, 1.1459501982, -0.300506413, -0.2046819776, -0.1473677009, 0.1772741526, -0.0512163639, 0.1874877959, 0.2747395933, -0.0337284319, 0.1329088658, -0.4277137816, -0.4019576609, -0.0635859668, 0.1192886904, -0.0475765914, 0.2305912375, 0.1230271384, 0.1539467126, -0.095494464, 0.1591352522, 0.4473619461, -0.7138869762, -0.1978395879, -0.1406138688, 0.3941428661, -0.3111299574, -0.1697444022, -0.1774038076, 0.2714791, 0.2679114342, -0.0154298386, -0.0607650727, -0.0631792843, -0.1090660468, 0.72084409, -0.1153966412, 0.1582299471, 0.4682689011, 0.2596993744, 0.2408836037, 0.2012639642, -0.0707854778, 0.064636901, 0.4607872665, -0.3382975459, 0.1664037555, 0.3111594021, -0.4857997, -0.0999355018, 0.0143829565, -0.2281089127, -0.1772994399, 0.0733401254, 0.0789743736, -0.0761291906, 0.3882939816, -0.24187617, 0.1934387237, 0.3027529418, -0.1145764291, -0.0034553155, -0.0041515599, -0.1657896936, 0.3470933735, 0.1951928139, 0.1296958476, 0.2634916902, 0.2737026513, 0.4704782963, 0.0512962416, 0.2529415488, -0.2185769975, 0.0489529483, 0.2380275577, -0.3281314075, 0.1162380576, -0.0473512188, -0.0211681183, -0.2439173907, 0.4336550832, 0.1191348359, -0.4679329693, 0.1796665639, 0.0125331171, -0.2995862365, 0.2595323622, -0.5294456482, 0.3592475653, -0.3771204054, -0.1243984252, 0.1382556558, -0.0024178566, 0.0627022758, -0.1026096642, -0.0052287849, 0.2474366575, -0.2493494153, 0.0636120811, 0.2002147734, 0.1250085682, -0.0179588255, 0.0900292471, -0.572912991, -0.0469760597, -0.167048201, -0.3868468106, 0.2669441998, -0.8581876755, -0.123395808, 0.3713080287, 0.120700717, 0.3004645705, 0.2320496589, -0.0055920775, 0.2675846517, -0.212919876, 0.0301884674, 0.0465875454, -0.3349090815, -0.0161629021, -0.307962507, -0.2265078127, 0.0945704058, 0.2624753714, -0.0590810366, -0.0441112183, -0.1500216573, 0.4032409191, 0.1337803155, 0.0805207565, 0.0879931301, 0.1048467308, 0.4394851923, -0.3458074331, 0.0651491657, 0.2895367444, -0.5860266685, 0.1229199171, 0.2417684495, 0.3911189139, 0.1634614617, -0.5772849321, -0.1430340409, -0.1789511889, 0.0459015928, -0.2400700152, -0.0656552687, 0.0261994414, 0.1150437817, -0.0741257966, -0.2104471177, 0.2440681309, -0.3115797639, 0.1898014843, 0.0487056375, 0.5319479108, 0.0898043066, 0.2251372039, 0.1407473534, 0.0287358016, -0.1512629241, -0.2219995707, 0.0426467657, 0.2252216041, 0.1504155695, 0.1605557203, 0.341746062, 0.5188673139, 0.4916801751, -0.4172060192, 0.1845067143, 0.2178681493, 0.025994109, -0.2408695668, -0.6013584137, 0.3599242866, -0.2368201464, -0.0263604056, -0.1153777093, -0.1667492092, 0.0016769919, 0.0170078576, -0.5470960736, -0.1123711467, 0.090728417, 0.2099006921, 0.113274008, 0.1665973365, -0.2918818593, 0.1566223651, 0.2325003445, -0.0213035606, -0.2554631233, -0.0110585308, -0.3312935233, -0.2417688072, 0.3941476643, -0.0215532072, 0.7536580563, 0.0984566361, 0.1636940092, 0.0169653632, 0.0299885049, 0.0219328217, 0.2724090517, -0.1129985005, 0.0288487915, 0.0286129452, 0.0239878744, -0.0808468163, 0.036267776, 0.0344679169, 0.2635924816, 0.2432645559, -0.1003380269, -0.16192092, -0.0172094759, -0.3053221405, 0.1917825639, -0.178154543, -0.1496698409, -0.2033565342, 0.2040340602, 0.3175604343, -0.0944446772, 0.1273418069, 0.0784414336, 0.5013077259, -0.3055695295, -0.2648164034, -0.3362763822, -0.2111385465, -0.1034582406, 0.0344586223, 0.2410272509, 0.0287901722, 0.2796284854, 0.0752305314, 0.1684127897, -0.5140853524, -0.538228929, 0.2174352854, 0.0139356656, 0.3049099147, -0.0310868174, 0.1216576919, -0.0250875056, -0.0639387369, 0.0975414813, -0.0025737509, -0.0524863414, -0.1939921528, -0.1128901392, -0.0019649658, -0.1587324291, -0.2971282601, -0.0902845338, -0.2918539345, 0.1051562652, -0.0730408877, -0.1434215605, -0.1070268825, -0.0589573309, -0.5134773254, 0.0458096005, -0.2294795364, -0.2299085855, -0.5700784922, -0.0212655198, 0.0297621749, -0.0951367989, 0.2575116754, 0.1159236059, 0.1578108221, 0.3000306487, -0.6660439372, -0.3488685787, 0.331546545, 0.3319987655, -0.0431915186, -0.4322791398, 0.2451168001, 0.2141675502, 0.1096560583, 0.1321792901, -0.1610825509, -0.2646901608, 0.1878001541, 0.1865523458, 0.0891238824, 0.0654769614, 0.1473895311, 0.3983015716, 0.2663641274, -0.0648938715, -0.2229081839, 0.2258968055, 0.3414362669, -0.1689860523, -0.1318527609, 0.0252586473, 0.137860924, -0.1747960448, 0.2968814075, 0.1147284731, -0.079851158, -0.2762854695, 0.2543106377, -0.0103248032, -0.3082037568, 0.2560491562, -0.4348722696, 0.1638319343, 0.020549994, 0.0114419991, -0.1908032149, -0.1311157495, 0.0373843387, 0.4841832519, 0.3175421357, 0.0547670349, -0.4305287302, 0.2180321515, -0.0202158447, 0.0016508726, 0.067949146, 0.3296808004, -0.1407759339, 0.2780027688, 0.0115901623, -0.0373991393, 0.3455699086, -0.5783689022, -0.2407624722, 0.1655425876, -0.0054429118, -0.1200294048, 0.0444038846, -0.2034358382, 0.2388616204, 0.0175239965, 0.60966748, -0.3550017178, -0.2822940052, 0.2932281792, 0.1215562299, 0.0642751083, -0.198509708, -0.0503305458, -0.0543898754, -0.1288664192, 0.0936522186, -0.0752717927, -0.1571923643, -0.4100494981, 0.036474131, 0.0881269947, -0.0749571025, 0.1421028525, 0.0469338, 0.0626528189, -0.0979404077, 0.2371516973, 0.0463875532, 0.191490382, 0.7696124911, 0.3409900069, 0.4160467982, -0.4643350542, -0.1353003234, -0.1644020081, 0.1534888148, 0.5468375087, 0.2005075514, 0.1955494434, -0.3043648005, -0.1527573466, -0.4695263207, 0.1080467775, -0.0037171885, -0.2371850461, -0.5317699909, -0.2487992495, 0.3388594985, 0.1886254102, -0.2206192315, 0.4467853308, 0.0402147733, -0.3319704235, -0.0178905036, 0.0312735885, 1.2792316675, 0.1214302853, -0.0323107019, -0.1527762711, -0.1462442726, 0.5451027155, -0.5708181262, -0.1289632767, -0.1414121538, -0.05989803, -0.1120398268, -0.1221895888, 0.429369241, 0.1775849611, -0.3807793558, 0.0351988189, 0.3697557449, 0.5835246444, 0.0205992237, 0.2991349697, -0.3727300465, -0.0128174331, 0.0302749965, -0.0335845239, -0.0821232423, 0.0003807441, -0.0052340245, -0.0735801607, -0.3839597404, -0.1054234952, -0.2385232151, -0.1283961236, -0.237990737, -0.2731109858, -0.1965223849, -0.3222799301, 0.3633841872, -0.0948043317, 0.5019497275, 0.1628816724, -0.3216604888, 0.1012829468, -0.2143907398, 0.0779381096, 0.0476408564, -0.1197188571, -0.0411887728, -0.0230511539, -0.2834990919, 0.2986154556, -0.3208674192, -0.2703989446, -0.2954031527, -0.3605556488, 0.2659896314, -0.3336157501, 0.1409415007, 0.2117342055, -0.22044608, -0.0263300017, -0.0058599822, 0.0849639475, 0.0565940663, 0.155530557, 0.0219300929, -0.1651546806, -0.4224821329, 0.0394152142, 0.2694174051, -0.3045014441, -0.1701179296, -0.1577427089, -0.009238149, -0.2061183602, 0.3058218658, 0.1182172075, -0.1569526643, -0.1806542277, 0.1984705627, -0.0326190516, 0.0516980849, 0.0610534102, 0.3350221813, -0.0084711378, -0.096599184, -0.1788706481, -0.3579652607, 0.3615839481, -0.0990907326, 0.2674124837, -0.1219738573, -0.0900570154, 0.0006235343, 0.0119503187, -0.1928010285, -0.0458584502, -0.0781385005, 0.3011434376, 0.2131311595, 0.1492047608, 0.0383862108, -0.2852771878, -0.0510436036, -0.3562728763, -0.3007902205, -0.0038553185, 0.1559007019, 0.2927823663, 0.2744464874, 0.0274720266, -0.1568952799, -0.2016425282, 0.0789494142, -0.0417704955, 0.1308304816, -0.120286189, -0.0479742587, -0.0844841972, 0.2252878249, 0.0615347065, -0.3781661093, 0.3257944584, 0.0677115172, 0.4341133535, -0.2472419143, 0.2128497064, 0.1022352725, -0.0970698819, -0.1784593016, 0.1983899772, 0.1348614395, 0.1798907667, 0.4412377179, 0.1192173809, 0.3328970075, 0.1489501595, 0.0803195387, 0.3555029035, -0.1196838617, 0.0178048592, 0.1639382243, 0.0171668772, 0.1399366856, -0.1261457205, -0.0797616988, 0.2176662832, 0.1274510771, 0.2237443626, 0.6461985111, 0.150766924, 0.227761358, -0.0014365511, 0.7928248644, -0.1318540722, 0.2763136327, 0.4308004975, -0.0971094519, 0.1708818376, -0.1081600338, 0.3154341877, -0.1515369266, -0.2188376784, 0.1573350877, 0.5189564228, 0.3427005708, -0.0412773341, 0.1949091256, 0.0048897667, 0.1344176978, 0.3513190448, 0.0765365437, 0.0247872733, 0.2272911966, 0.0137737952, -0.1412458867, -0.1398594826, -0.2290907949, -0.3185525835, 0.1110804379, 0.1386997253, -0.4359220862, -0.2163322568, -0.1913777441, 0.1680479944, -0.1504031271, 0.0723403916, 0.0318984613, -0.1368984431, -0.0832852647, -0.024936812, 0.1501926482, 0.230317995, -0.0129479431, 0.0016505375, 0.1148385108, 0.0257666018, -0.1271673739, 0.3821212351, 0.3919388652, 0.0466454327, 0.0295496564, -0.2429942787, -0.0604472235, -0.0711135566, -0.1301075071, 0.1024589241, 0.2972390354, 0.1774754226, -0.5488964319, 0.035692092, 0.1114369705, 0.0185491461, 0.2382469326, -0.1978162974, -0.3093684316, -0.2431284338, -0.0148613295, 0.0627054572, -0.0974618718, 0.4177244604, -0.0103720203, 0.0088786436, -0.3182293475, 0.509000659, 0.0117381569, -0.0385657363, -0.0723504126, 0.0197083652, -0.0621972568, 0.1966673434, 0.1316551268, -0.0854023695, -0.2448009402, -0.3610420823, -0.2296055555, 0.080477193, 0.1033702865, -0.2245674878, 0.1125796586, -0.0976492316, 0.4820906222, 0.484698534, -0.4268712103, -0.1129920483, 0.1829780936, 0.0758475736, -0.3376199007, -0.0371551961, 0.2039524913, 0.2162590325, -0.2466728836, -0.1248583868, 0.1621250361, 0.3803682327, -0.1835976392, -0.1919573992, 0.217617929, 0.2758753896, 0.1546768397, 0.1423944682, 0.0898314714, 0.5151195526, 0.1421162188, -0.1229712293, 0.0453699417, -0.2409022897, 0.2396761328, 0.2676728368, -0.1085729599, 0.1622562557, -0.199762851, -0.1492838413, -0.0972277895, -0.257383883, -0.1362151355, 0.0951839611, -0.4752887785, -0.0754365176, -0.249407053, 0.1090430021, 0.1271277666, 0.2466169745, -0.0965540037, -0.143495068, -0.1035647765, -0.0041721514, 0.3267432451, -0.0768440962, -0.0245106034, -0.0034286918, 0.0435932167, -0.1962143779, 0.0100497957, -0.5621885061, -0.0349391252, 0.3259996176, -0.1096972451, -0.08630725, 0.100106582, 0.3843013644, -0.14738518, -0.1325057745, 0.177412644, -0.2337645441, 0.0406882726, -0.1431030035, 0.0451768823 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
About dummy data, please see e.g. this PR: https://github.com/huggingface/datasets/pull/3692/commits/62368daac0672041524a471386d5e78005cf357a - I updated the previous dummy data: I just had to rename the file and its directory - the dummy data zip contains only a single file: `pubmed22n0001.xml.gz` Then I discover it fails: https://app.circleci.com/pipelines/github/huggingface/datasets/9800/workflows/173a4433-8feb-4fc6-ab9e-59762084e3e1/jobs/60437 ``` No such file or directory: '.../dummy_data/pubmed22n0002.xml.gz' ``` - it needs dummy data for all the 1114 files: `_URLs = [f"ftp://ftp.ncbi.nlm.nih.gov/pubmed/baseline/pubmed22n{i:04d}.xml.gz" for i in range(1, 1115)]` - this confirms me that it never passed the test: these dummy data files were not present before my PR - therefore, is it really useful the data test if we just ignore it when it does not pass? In relation with JSON metadata, I'm generating the file for `pubmed` (see above) in a GCP instance: it's running for more than 3 hours and only 9 million examples generated so far (before my PR, it had 32 million, now it has more).
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
151
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw About dummy data, please see e.g. this PR: https://github.com/huggingface/datasets/pull/3692/commits/62368daac0672041524a471386d5e78005cf357a - I updated the previous dummy data: I just had to rename the file and its directory - the dummy data zip contains only a single file: `pubmed22n0001.xml.gz` Then I discover it fails: https://app.circleci.com/pipelines/github/huggingface/datasets/9800/workflows/173a4433-8feb-4fc6-ab9e-59762084e3e1/jobs/60437 ``` No such file or directory: '.../dummy_data/pubmed22n0002.xml.gz' ``` - it needs dummy data for all the 1114 files: `_URLs = [f"ftp://ftp.ncbi.nlm.nih.gov/pubmed/baseline/pubmed22n{i:04d}.xml.gz" for i in range(1, 1115)]` - this confirms me that it never passed the test: these dummy data files were not present before my PR - therefore, is it really useful the data test if we just ignore it when it does not pass? In relation with JSON metadata, I'm generating the file for `pubmed` (see above) in a GCP instance: it's running for more than 3 hours and only 9 million examples generated so far (before my PR, it had 32 million, now it has more).
[ -0.1429853886, -0.060847979, 0.0550825633, 0.2112828642, 0.1136176214, 0.2524834871, 0.3205831051, 0.1741959453, -0.1172098815, 0.1219318509, 0.1199110895, 0.0238968544, -0.037739858, 0.2567646205, -0.0817495063, -0.0914015099, 0.127621904, 0.0220600981, 0.0700239986, 0.0524603054, -0.3250976205, -0.1204111129, -0.0531781763, -0.2826391757, -0.3528703451, 0.1647422463, -0.205726549, 0.134059459, -0.3978280723, -0.191465646, 0.2212940305, 0.3630510271, 0.0465125516, 0.3235680461, -0.0001267659, 0.061949946, 0.6010788679, -0.0551043078, -0.433377862, -0.1551012248, -0.1791589111, 0.192111969, -0.0500923172, 0.0137452018, -0.2771268487, -0.052492857, -0.2159398794, -0.3742839992, 0.0664427727, 0.1287027299, 0.012901945, 0.1784932911, -0.262354672, -0.1545287371, -0.0230748262, 0.9064522386, -0.2542627156, 0.1952039599, 0.377366811, 0.1876835525, 0.0672513172, 0.2430383116, -0.0148477051, -0.1117307767, 0.0829190388, 0.0675997213, 0.1029968485, -0.1896285415, 0.4011778533, 0.2238108069, 0.9586893916, -0.303663075, -0.2907430828, -0.2157544345, 0.1869854331, -0.0181673765, 0.1913446486, 0.1785247475, 0.0397411771, 0.1960578561, -0.4012610614, -0.3143666387, 0.0349098817, 0.1434730589, -0.0893877894, 0.087393865, -0.0288744345, 0.169308275, -0.0745385066, 0.1521276981, 0.1572716534, -0.7519181371, -0.1615582407, -0.0427120142, 0.4198242426, -0.3990246058, -0.1570976526, -0.1758515239, 0.3184003234, 0.2953704894, -0.0797378272, -0.0783588588, -0.1785330623, -0.1203651577, 0.6392645836, -0.1442231238, 0.1338600516, 0.4546441138, 0.316829443, 0.235844627, 0.3636964858, -0.0701960176, 0.1284398288, 0.5073346496, -0.4522352219, 0.097108297, 0.3184721768, -0.4132575095, -0.1428739578, 0.0626271814, -0.1000596657, -0.1632751524, 0.0307043102, 0.0711586848, -0.101369746, 0.3538360298, -0.1644990742, 0.1907868832, 0.3041490018, -0.1593927741, -0.018003704, -0.060086228, -0.0546600297, 0.3600047529, 0.2489938289, 0.1196485758, 0.4207492471, 0.2822527289, 0.3832466006, 0.0626730919, 0.2533538043, -0.2977341115, -0.050605841, 0.250896275, -0.3156484962, 0.1417946517, -0.0279279891, -0.091231063, -0.2454259694, 0.3223766387, -0.0054739262, -0.4390693605, -0.0475824364, -0.0138122328, -0.372104764, 0.3217371404, -0.5260321498, 0.3213417232, -0.3927741051, -0.0628281236, 0.056772761, 0.0744911134, -0.09987133, -0.1265878528, 0.0429441296, 0.312240541, -0.2367039174, 0.017460797, 0.1731427908, 0.1049896032, -0.1668091863, 0.1312970668, -0.5550537109, 0.0419932343, -0.2621077299, -0.3298401237, 0.196166724, -0.8516145349, -0.0879919901, 0.2924169004, 0.1329149753, 0.3353053331, 0.1732609868, -0.08665701, 0.0540082529, -0.2318427563, -0.0112430099, -0.0167255756, -0.2163781822, -0.0797596797, -0.2545322776, -0.2757944167, -0.0368804522, 0.2863402665, -0.0640805289, -0.0497498251, -0.1633556485, 0.3115154207, 0.1990865767, 0.0139964316, 0.0923486501, 0.2358521819, 0.284874469, -0.303465277, 0.1365366876, 0.2105214745, -0.6838439107, 0.2064493001, 0.0786237344, 0.4251701832, 0.0726053864, -0.6026446223, -0.1549230367, -0.2257652581, 0.0565142371, -0.2781120241, -0.0550548434, 0.0764186606, 0.2158068419, -0.0021881296, -0.2200250328, 0.211433202, -0.2686790526, 0.2725763023, -0.1222393364, 0.5405554175, 0.1225197837, 0.2313309461, 0.1497874707, 0.152695924, -0.1663902998, -0.2877869308, 0.1134226918, 0.2495893836, 0.1154928952, 0.0987076983, 0.3016182482, 0.4256033897, 0.4663096666, -0.254430443, 0.1710943431, 0.1453970671, 0.0968282968, -0.2723919749, -0.688901782, 0.4246871173, -0.1205624938, -0.0665782169, -0.1160174757, -0.189997986, 0.0405496359, -0.070377171, -0.4578502774, -0.1708365828, 0.0441857353, 0.3524606824, 0.2157452404, 0.1903336048, -0.2490665764, 0.0777381957, 0.2929940522, -0.1252760142, -0.2523806095, -0.0696252584, -0.3806867301, -0.183022067, 0.3261986971, -0.0722164139, 0.8438600302, 0.1063764542, 0.0947177261, 0.0362220183, -0.000590047, 0.0315612592, 0.2223539948, -0.1240881756, 0.0020641179, 0.0335705131, -0.028848568, 0.0045730947, 0.0244587902, 0.0192382615, 0.2222864479, 0.231979683, -0.161685884, -0.250290215, -0.061876256, -0.278765738, 0.1589179188, 0.0535120443, -0.1840758622, -0.1880640686, 0.1139784455, 0.3379368782, -0.0659022331, 0.0425525084, 0.0684424639, 0.520008564, -0.332665354, -0.2546700835, -0.3144612312, -0.1272609681, -0.0163925998, 0.0325903147, 0.2754480243, -0.0253778268, 0.2311143428, -0.1032652408, 0.0704787001, -0.4760931432, -0.60300982, 0.2469691485, -0.007248322, 0.2965968549, 0.0559279099, 0.0940008089, -0.0368823484, 0.0088452026, 0.1728194207, 0.0606236756, -0.1016816199, -0.1895771772, -0.0529674105, -0.0590517148, -0.1960998923, -0.2047656178, -0.0217403937, -0.2118026614, 0.1771484613, -0.0235653259, -0.1862995178, 0.040079385, -0.0721801445, -0.3192138374, 0.028881859, -0.164960444, -0.3288448751, -0.6179893017, 0.0457108766, -0.0193851311, -0.13661246, 0.2020439357, 0.0389693081, 0.2182577699, 0.193603918, -0.7374121547, -0.5587507486, 0.2243492752, 0.3620937169, -0.0357313976, -0.259904176, 0.3653229177, 0.1726313531, 0.1311988831, 0.0838756561, -0.2743239403, -0.2635345459, 0.0797693804, 0.2031677067, 0.105087392, 0.0785322413, 0.1302152425, 0.472812742, 0.3580766916, -0.017832825, -0.180687204, 0.1935708821, 0.5549228191, -0.1765863895, -0.1317026615, 0.0003304901, 0.0993885919, 0.0020392896, 0.2585817277, 0.1045094058, 0.0654931068, -0.2931592762, 0.1639226228, -0.0289313719, -0.3213624656, 0.2367675155, -0.2419618666, 0.1791113764, 0.0016128949, 0.011576565, -0.1011542603, -0.0873126686, 0.056810379, 0.579783082, 0.2799268365, 0.0492341705, -0.5291676521, 0.2664828598, -0.0879166201, 0.0396790355, 0.0759328008, 0.2565929592, -0.1351767778, 0.3293720782, 0.004679617, 0.0209522899, 0.3768492043, -0.4905392528, -0.2717830539, 0.1646979004, -0.1222813725, -0.2774652243, 0.0704213902, -0.17653431, 0.3026172817, 0.0201336611, 0.8159657121, -0.3916674852, -0.437251687, 0.3753927648, 0.1666564047, 0.0446239859, -0.2787630558, -0.0594477616, -0.148114875, -0.2386214435, -0.0508772656, -0.0489770174, -0.1283661574, -0.3079505563, 0.0103390273, 0.0164292008, -0.1552891284, 0.1780475974, 0.0249489956, 0.0851678625, 0.0196781158, 0.3044332564, 0.1299081296, 0.1582383066, 0.6493213773, 0.5121126175, 0.3013959527, -0.5019935369, -0.1611838639, -0.2031734884, 0.1570789665, 0.5850151181, 0.2212521136, 0.1776048392, -0.4007165432, -0.1301347464, -0.512078464, 0.1566155553, 0.088097766, -0.1841628999, -0.5410349965, -0.0616103187, 0.377807796, 0.241818741, -0.1693337411, 0.3054768443, 0.2537576258, -0.3138068914, -0.0965690017, -0.0432883315, 1.1906919479, 0.1956077218, 0.0859551132, -0.0942357555, -0.1053168476, 0.6823961735, -0.4041574895, -0.1581347436, -0.1622945368, 0.0040013059, -0.1118427441, -0.0620385408, 0.429926604, 0.218043223, -0.3192596138, 0.0427311063, 0.3713334203, 0.4466710389, -0.0505330153, 0.3980083168, -0.3688605726, -0.0472704358, 0.0456973016, -0.012489235, -0.006070477, 0.0608497337, 0.0049386579, -0.0250995234, -0.4587801397, -0.1487639248, -0.2034511417, -0.190113157, -0.241643399, -0.2142044157, 0.0208573453, -0.3120104373, 0.2933560908, -0.158565715, 0.6563749909, 0.2610256076, -0.3450198472, 0.0074490234, -0.4262329042, 0.0268642269, 0.0351843238, -0.1356265694, 0.0094651282, -0.0097268634, -0.2255695015, 0.2065554112, -0.3969279528, -0.2168751359, -0.2064115256, -0.3202024102, 0.0891878232, -0.3670297563, 0.0976637825, 0.243633911, -0.1626210958, -0.0311501063, -0.0222145319, 0.1334538311, 0.1073649898, 0.1186894253, 0.0328015722, -0.1822937578, -0.3863966167, 0.0423310138, 0.225985527, -0.3243074119, -0.06263116, -0.2252098918, 0.002083888, -0.1436480731, 0.2790108919, 0.2213052213, -0.1932603568, -0.1153694913, 0.3016497791, 0.019535264, -0.0229244716, 0.0969967842, 0.3265606761, -0.1478777826, -0.0760813281, -0.1988674104, -0.3870190978, 0.3367666602, -0.0289828777, 0.3724616766, 0.0988989472, -0.0190359224, -0.0024088316, -0.0040860442, -0.1877278835, 0.0545245036, -0.03059127, 0.2420734167, 0.3484833539, 0.1176982298, 0.1100422069, -0.2782996297, -0.0555715933, -0.317646414, -0.2483704984, 0.0054102866, 0.0387363918, 0.2868294418, 0.2898344398, -0.0953384191, -0.0492033996, -0.1772221327, 0.1335735023, -0.0612213984, 0.1781793535, -0.0375854112, 0.0035754289, -0.028842818, 0.0750264153, 0.1269499958, -0.3771860898, 0.3639004529, 0.0969902202, 0.4145448804, -0.1799250543, 0.2584475279, 0.0204921365, -0.0480071269, -0.0560384206, 0.17890279, 0.0675497577, 0.0635791495, 0.4099683762, 0.1044161543, 0.3011188805, 0.1512408108, 0.048915796, 0.3325281143, -0.2316668481, 0.0811002105, 0.2133544236, 0.0044366904, 0.1143641323, -0.150552243, 0.0039062519, 0.2417730689, 0.1598342359, 0.2668036819, 0.5875677466, 0.191376105, 0.2795422673, -0.0418553203, 0.7735757232, -0.0300492626, 0.207210511, 0.2892846763, -0.0986796096, 0.110755451, -0.0070151091, 0.3264578581, -0.0562707372, -0.2226819247, 0.0953673944, 0.450399965, 0.0991466492, -0.0247748811, 0.2661682069, 0.0076585929, 0.2107819766, 0.3455576599, 0.0873925984, 0.0118134581, 0.1360276788, 0.1442793906, -0.2727044225, -0.1053776592, -0.2073450536, -0.2876238525, 0.0427571125, 0.1327931434, -0.402703464, -0.1572502702, -0.2492297739, 0.1557500064, -0.1428393275, -0.0848494992, 0.0225546993, -0.2092509419, -0.1660370827, -0.0733365417, 0.0729942322, 0.2545426488, 0.028802406, 0.0034661999, 0.117444396, 0.0741474703, -0.0703286007, 0.3434714973, 0.4943245351, 0.1141995862, -0.0225510206, -0.0389723517, -0.1289819926, -0.1284273714, -0.0626663715, 0.1112384945, 0.2781288028, 0.0165037196, -0.5711724758, 0.073748149, 0.0951393098, 0.0274772029, 0.0937475786, -0.1865650117, -0.3103398383, -0.4317792058, 0.0594468638, -0.0845073387, -0.0829880461, 0.4270243347, -0.0181300137, 0.0232101269, -0.3234959245, 0.4932717681, -0.0027953065, -0.0451287739, -0.0786933079, 0.0177646894, -0.0240771007, 0.1302497387, 0.252826035, -0.1999045163, -0.2057368755, -0.350967139, -0.2730758786, 0.0319750309, 0.1272265613, -0.2389953434, 0.1146840379, -0.1550716162, 0.4205954969, 0.4589155912, -0.335616678, -0.1412421018, 0.2489105165, -0.1048501208, -0.2788465917, -0.0561554171, 0.096273236, 0.081885986, -0.140853703, -0.1329694539, 0.1447206587, 0.4323096871, -0.2135674208, -0.2472239584, 0.3062291741, 0.1411639005, 0.0349613465, 0.1594435424, 0.1869147718, 0.4964342117, 0.1304339617, -0.1350273192, 0.0559198558, -0.1090533063, 0.1670654565, 0.3685787916, -0.059973605, 0.1473565698, -0.2688525319, -0.1578317732, 0.02540222, -0.1824749857, -0.1211921871, 0.1350376457, -0.4302347302, -0.02965324, -0.341053009, 0.0713597089, 0.1088041738, 0.330068469, -0.0977352858, -0.0539570898, -0.0961126983, 0.0054295836, 0.3404171467, -0.0763697028, 0.0628405288, 0.0299483631, -0.0351213589, -0.3118656576, -0.0743731782, -0.6982420683, -0.045173388, 0.3266147077, -0.0143975532, -0.0943627134, 0.1040018424, 0.2903446257, -0.2085048556, -0.1064368486, 0.2990188003, -0.1638993174, -0.014236832, -0.0123250391, 0.013932094 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
I mention in https://github.com/huggingface/datasets-server/wiki/Preliminary-design that the future "datasets server" could be in charge of generating both the dummy data and the dataset-info.json file if required (or their equivalent).
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
28
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw I mention in https://github.com/huggingface/datasets-server/wiki/Preliminary-design that the future "datasets server" could be in charge of generating both the dummy data and the dataset-info.json file if required (or their equivalent).
[ -0.1777145565, -0.003646753, 0.0536854379, 0.2157488018, 0.0634276718, 0.2323122323, 0.3523750007, 0.1556675434, -0.1672702879, 0.1026074961, 0.1788233519, 0.0926263481, -0.0486217141, 0.3518205583, -0.0754186213, -0.0335629694, 0.135946095, 0.0997845978, 0.0033886631, 0.086744912, -0.3042045832, -0.2361476272, -0.0841131881, -0.2575913668, -0.2976869941, 0.152635023, -0.1894830167, 0.0637386367, -0.4237044752, -0.2219994664, 0.2153352648, 0.3534488082, 0.0537119396, 0.2138228714, -0.0001225653, 0.0252200682, 0.5969035625, -0.017842792, -0.3981497884, -0.1710560769, -0.3274737895, 0.246163711, -0.0189150535, -0.001409306, -0.281458497, -0.1528158933, -0.1891471595, -0.3273017406, 0.0186737422, 0.0812246129, 0.0400923081, 0.0874934047, -0.4291189909, -0.1612337232, -0.0818694532, 0.9571205378, -0.2585006952, 0.0330738835, 0.3326472342, 0.1197418645, 0.01074271, 0.2116231471, 0.040140111, -0.114187859, 0.0903177708, 0.0753190741, 0.0913882852, -0.2153701335, 0.3814254701, 0.2678995132, 1.1522852182, -0.2762091458, -0.1973183751, -0.1446505785, 0.1739801317, 0.0381488241, 0.2397037446, 0.1658890843, 0.0618104227, 0.1640254408, -0.4449846148, -0.3431917131, 0.0198743381, 0.1072298959, -0.0705582872, 0.0952442735, 0.0344450623, 0.1379492432, -0.1201499403, 0.0939856693, 0.262970984, -0.745429337, -0.257599175, -0.0603597462, 0.3870793283, -0.4218229651, -0.1135564595, -0.2115350515, 0.3538297713, 0.3345221281, -0.1111299917, -0.1067096442, -0.2213677913, -0.1537575871, 0.7225149274, -0.1378652453, 0.2329865694, 0.4398666322, 0.2958951592, 0.233043924, 0.3381997645, -0.0201256108, 0.0953225046, 0.4814767838, -0.3909195662, 0.0541625209, 0.3049862981, -0.4372656047, -0.0209819749, 0.0554892272, -0.0864918604, -0.1405843794, 0.011798162, 0.0285985824, -0.0846014917, 0.3715599477, -0.2032060474, 0.1446042657, 0.2942994833, -0.1359737664, -0.0157381184, -0.0665862709, -0.0642574579, 0.3746606708, 0.2032364905, 0.2113078386, 0.345289439, 0.3458713591, 0.3903808892, 0.070177719, 0.2428623736, -0.293063581, -0.0394829512, 0.2185771912, -0.3059601784, 0.1420078129, -0.0935558304, -0.0047492576, -0.2060717493, 0.4009050429, 0.0689242855, -0.4504179657, -0.018069569, 0.0422207005, -0.3725982904, 0.3105051517, -0.6302959323, 0.3212889731, -0.449496299, -0.0101761436, 0.100969635, 0.0517376959, -0.0523763224, -0.1248100027, 0.0181053597, 0.3076168597, -0.2698201239, 0.073285751, 0.1889259666, 0.0005738762, -0.1943526715, 0.1526814997, -0.6245526671, 0.0122821461, -0.2694573998, -0.3449339271, 0.2291906625, -0.7686027884, -0.0897508934, 0.3314984143, 0.162237376, 0.2125796527, 0.118082568, -0.0541318357, 0.1699326485, -0.187785238, -0.0364272632, 0.0258858558, -0.250597626, -0.0701411664, -0.2595449686, -0.3064087331, -0.0002329645, 0.312307477, -0.048624374, -0.0366817862, -0.1954512894, 0.2864953876, 0.1775182784, 0.0179925114, 0.0949041992, 0.1565399766, 0.3916993737, -0.3014127016, 0.1352309585, 0.2334108204, -0.6444411278, 0.1975169927, 0.1951595545, 0.4320061505, 0.1485058516, -0.5930860043, -0.1029032841, -0.173584491, 0.0435144156, -0.2010968626, -0.0340519845, 0.0115579618, 0.1211374179, -0.0452663302, -0.2242076844, 0.2274678349, -0.2596686184, 0.2351391762, -0.0245987624, 0.5059049129, 0.1014836058, 0.2720296383, 0.1597904265, 0.0804150477, -0.1777515858, -0.2350760549, 0.0844995975, 0.2283540815, 0.1265162677, 0.0839714929, 0.3611898422, 0.4594216645, 0.4610916078, -0.3162856698, 0.1583164334, 0.1003953069, 0.0955333561, -0.2565862834, -0.5998070836, 0.3915373683, -0.1737541258, -0.0438623875, -0.1641141325, -0.1432136893, 0.01304371, -0.0482495837, -0.4275665879, -0.1415356845, -0.0097642783, 0.379964292, 0.1296392083, 0.2056543827, -0.2946893573, 0.0531005524, 0.2750363648, -0.120651722, -0.2213623822, -0.039935682, -0.2835046649, -0.2131587118, 0.3361600935, -0.1328587979, 0.7713496089, 0.1209636405, 0.0436615162, 0.0377168916, 0.0255414676, 0.0883209705, 0.2186288387, -0.12583296, 0.1182079688, -0.0324634463, 0.0457505882, -0.0494484529, 0.0811761096, 0.0021897333, 0.2144865692, 0.205561161, -0.0961878747, -0.2264668196, -0.0327391252, -0.2271744162, 0.2300194055, 0.0140651735, -0.1798843294, -0.1528635174, 0.1385829747, 0.2403527945, -0.1137421727, 0.0850011483, 0.0343832895, 0.4886505008, -0.3061146438, -0.2410275787, -0.2677026391, -0.1657682359, -0.0734797865, 0.0618367866, 0.1971723586, 0.023621574, 0.2405921519, -0.0351365469, 0.1009805277, -0.5213592052, -0.5410519838, 0.2955496311, 0.0001109981, 0.2679002881, 0.0899560899, 0.0666274279, -0.0487343594, 0.0581956469, 0.1107017398, 0.0175704211, -0.0886338875, -0.2240761518, -0.0859871507, -0.0356838033, -0.2029499859, -0.2795726061, 0.0065380516, -0.2301284224, 0.1363248527, -0.0877690166, -0.125476554, -0.0585363768, -0.0880341455, -0.4339041412, 0.0181646086, -0.1985786706, -0.3128739595, -0.5986893773, 0.0234374925, -0.0372063667, -0.1292192191, 0.243935436, 0.0605119802, 0.1218542084, 0.1591914296, -0.7447004318, -0.5032983422, 0.2345252335, 0.4234191179, -0.0477776974, -0.3173962235, 0.310999155, 0.2278096676, 0.0832131729, 0.1170544177, -0.3207494915, -0.217118457, 0.1447832733, 0.1627765, 0.1277528256, 0.0953728855, 0.1252428293, 0.3877670467, 0.2440483123, -0.0326829366, -0.2251192182, 0.1728604138, 0.4601610005, -0.1436407417, -0.055341959, -0.0205380321, 0.1699702144, -0.0389896892, 0.3011409938, 0.1087837517, -0.0113612683, -0.2783041, 0.1913186014, -0.0254949667, -0.3263961077, 0.2322096676, -0.2829450369, 0.152976647, 0.0074529513, 0.0285781007, -0.1288160384, -0.0951859206, 0.016636394, 0.5238056183, 0.2468839288, 0.0284499824, -0.490755856, 0.3453741074, -0.0362796783, 0.015858626, 0.0642222092, 0.330968529, -0.1232439801, 0.3331086338, -0.019789191, 0.0236335788, 0.4445438683, -0.4926342964, -0.238877818, 0.152506575, -0.056985449, -0.1497760266, 0.0737097487, -0.162637949, 0.2662455738, 0.0423097946, 0.751891613, -0.2969515622, -0.4287427962, 0.3408091664, 0.1578548253, 0.0252987314, -0.271561116, -0.0349390879, -0.1377605498, -0.1266386807, 0.0174350962, -0.0755100697, -0.1056844443, -0.3175943196, 0.0260265209, -0.0238210391, -0.1721646637, 0.1114030182, 0.0303442739, 0.0546215437, -0.0654356778, 0.3372075856, 0.1389100254, 0.1736271828, 0.7122343183, 0.4304528832, 0.326022476, -0.4986724257, -0.148833856, -0.2333359122, 0.1432382017, 0.4917689562, 0.2278854847, 0.1420699954, -0.4294642508, -0.1606623828, -0.5017117262, 0.0626664981, 0.0331364647, -0.2438491136, -0.6164060235, -0.1544437408, 0.3848066032, 0.2000685632, -0.214165017, 0.2205425501, 0.2656229436, -0.3095138371, -0.0084103439, -0.0450317748, 1.1555470228, 0.1757107079, 0.0245999545, -0.1149814427, -0.1065208241, 0.6793072224, -0.4255954921, -0.1858886927, -0.2060047239, -0.0205755606, -0.0938187465, -0.102142632, 0.3804915249, 0.2663585246, -0.2509111464, 0.0901794359, 0.3563223481, 0.4945222139, -0.0142683107, 0.3898916245, -0.2858298421, -0.053529609, 0.0196189359, 0.0211790446, 0.0125988638, -0.022582572, 0.006416603, -0.0441529639, -0.3411689103, -0.1050817296, -0.1931610256, -0.1319981217, -0.1565704793, -0.2275251746, -0.0226439927, -0.2782051265, 0.4232372642, -0.0844773948, 0.6044277549, 0.2455088049, -0.3120978475, 0.0252109412, -0.3517166376, 0.096073024, -0.0450969301, -0.1293387115, -0.0374060534, -0.0078742635, -0.3067756593, 0.2087462097, -0.3283028305, -0.2010321617, -0.2161342502, -0.30909127, 0.1198206246, -0.3985058665, 0.1434236914, 0.1668873429, -0.0647771955, -0.0094014052, 0.0152679887, 0.1565540433, 0.1232060567, 0.1433872879, 0.0393279083, -0.1470110118, -0.3978399336, 0.0041715675, 0.2770229876, -0.2692910731, -0.1589067578, -0.1429389715, 0.0159941092, -0.1977048367, 0.3720247149, 0.1997869015, -0.167324394, -0.1820653528, 0.3057172894, 0.0101867104, 0.0006341903, 0.1199884862, 0.2830385268, -0.0928949118, -0.0517458878, -0.1890857816, -0.343165338, 0.3512015343, -0.1181937903, 0.3345222175, 0.0859443992, -0.0863648951, -0.0243398435, -0.0201754626, -0.2216730863, 0.0526892953, -0.0753312185, 0.2847147286, 0.2870535254, 0.166798681, 0.0974198356, -0.295209676, -0.0300235767, -0.3444051147, -0.2882020175, -0.0333822034, 0.1000862569, 0.2676332593, 0.2568013072, -0.0176567305, -0.112228401, -0.1796218306, 0.1092352346, -0.058594007, 0.194259584, -0.0686690509, -0.0194907989, 0.0159873758, 0.084037751, 0.0687154755, -0.4341881275, 0.3754295111, 0.0992490575, 0.4480363131, -0.1986392736, 0.2784869969, 0.0274896063, -0.0918744728, -0.0733334944, 0.2001973987, 0.0882815793, 0.1193230674, 0.3511791527, 0.1146742627, 0.3173515499, 0.2090519518, 0.0429515541, 0.2688275278, -0.2168392986, 0.028752001, 0.2309557647, 0.057785701, 0.1276928186, -0.1675067991, -0.0516515709, 0.2727687359, 0.1398678273, 0.2458409369, 0.6077327728, 0.2225882113, 0.1563166976, -0.0155275529, 0.7006281018, -0.0843594894, 0.2440916449, 0.3493399322, -0.1620713174, 0.107105203, 0.0232164748, 0.3154456019, -0.1192762032, -0.1215084195, 0.1491221637, 0.4702643156, 0.2415596247, 0.0009061344, 0.3198785484, -0.0260477606, 0.2710341215, 0.3705263734, 0.0821956322, -0.0659643114, 0.1103441194, 0.0520244427, -0.1739208549, -0.0801020041, -0.262676537, -0.3060340285, 0.0453260392, 0.112857759, -0.37391904, -0.1867286116, -0.2089910209, 0.2030779272, -0.188585639, -0.0923269764, -0.005620217, -0.1987881213, -0.1429816484, -0.0926055238, 0.1553637683, 0.2794078588, -0.0496812128, 0.0316216536, 0.0530361868, -0.0185106881, -0.1491574049, 0.3530934155, 0.5031472445, 0.0197104737, -0.0201235209, -0.1284151524, -0.1225927174, -0.095255062, -0.1026084572, 0.0855974704, 0.2235464603, 0.0302298628, -0.5851405859, 0.0689811483, 0.139624849, 0.0251509286, 0.1041260734, -0.2128595263, -0.2968191206, -0.3669643104, 0.0262591522, 0.0331340842, -0.0960710272, 0.4461912215, 0.007079687, 0.0607543699, -0.3856603503, 0.588128984, 0.0547737554, -0.0189268664, -0.0791352019, 0.0462807231, -0.0869636834, 0.1070642099, 0.2018471658, -0.1912506521, -0.1488719881, -0.2979172468, -0.2081828117, 0.0422390364, 0.143327266, -0.2320041209, 0.13920784, -0.1380317062, 0.4098129272, 0.4427725077, -0.390558511, -0.1173596829, 0.2234852165, -0.0147499759, -0.250292182, -0.0387314372, 0.1327975243, 0.1030478999, -0.1879684627, -0.1521997601, 0.1177343279, 0.3698961437, -0.1607453674, -0.2790339291, 0.3099749386, 0.2141514271, 0.0345528983, 0.1679661274, 0.2105721831, 0.4351430535, 0.1644377261, -0.11517068, 0.0774651989, -0.1636370569, 0.2047723234, 0.3362175822, -0.0683105364, 0.0880260244, -0.2195166498, -0.0335852951, -0.0031426356, -0.2445799261, -0.1352404505, 0.2015992403, -0.5308613777, -0.0306359548, -0.2970210314, 0.0237703267, 0.0899779201, 0.2851660252, -0.106526345, -0.1478132755, -0.0672148988, 0.0275070164, 0.2555240691, -0.1395131648, 0.000141422, -0.038594719, 0.0194999594, -0.2666428089, -0.063397184, -0.5933329463, -0.0273984913, 0.3375598788, -0.0327013768, -0.131874904, 0.0758101195, 0.3694896102, -0.14944309, -0.147631079, 0.2911897302, -0.2055060416, -0.0243637729, -0.1001140326, 0.0088826036 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
Hi ! I think dummy data generation is out of scope for the datasets server, since it's about generating the original data files. That would be amazing to have it generate the dataset_infos.json though !
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
35
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw Hi ! I think dummy data generation is out of scope for the datasets server, since it's about generating the original data files. That would be amazing to have it generate the dataset_infos.json though !
[ -0.1948589534, 0.0102332085, 0.0505853146, 0.2380984575, 0.0520472601, 0.2354520112, 0.3769235611, 0.118540749, -0.1812932342, 0.0504686907, 0.1859699786, 0.1205503345, -0.0686953738, 0.2514625788, -0.1029324681, 0.0122028058, 0.1358127594, 0.0883083045, 0.0188365951, 0.069558084, -0.3453149796, -0.2744666338, -0.0890721902, -0.2486842871, -0.314388752, 0.1541723907, -0.1692312062, 0.0650549307, -0.4135770202, -0.1915638298, 0.1903420389, 0.3340916932, 0.0970606431, 0.2285332531, -0.0001246212, -0.0137136877, 0.5858671069, -0.0336934067, -0.4238948822, -0.1245687455, -0.3585727513, 0.2725353837, -0.0955471918, 0.0128071196, -0.2476502061, -0.1295002401, -0.1986706406, -0.3544753194, -0.0139111187, 0.1729275137, 0.0304821953, 0.0661456436, -0.4462533891, -0.1552830637, -0.0780569091, 0.9516149163, -0.2445220053, 0.0143578639, 0.3206218183, 0.1337778419, 0.0307951197, 0.1610080302, 0.031937778, -0.1033146158, 0.1201024204, 0.0492455326, 0.1342387497, -0.2321370542, 0.4020805061, 0.2454582006, 1.1869409084, -0.2659074664, -0.219934687, -0.1033958122, 0.1796938628, 0.1197395995, 0.2338930368, 0.2057502568, 0.0054799179, 0.1728139818, -0.4405198991, -0.3868682384, -0.0136058796, 0.0828039944, -0.0914620459, 0.1081474349, 0.0764207765, 0.150676012, -0.1319610476, 0.0588308536, 0.4278784692, -0.7517824769, -0.2457811534, -0.062993072, 0.3941105604, -0.3874966502, -0.150458172, -0.1932356507, 0.3005942106, 0.2899193168, -0.1003874168, -0.0909057111, -0.194521755, -0.1220684275, 0.6579542756, -0.1835356206, 0.2165461183, 0.5986159444, 0.248776868, 0.2057366222, 0.3070276082, -0.0085258679, 0.0501965135, 0.4580483735, -0.3559899926, 0.1135629267, 0.3220054209, -0.4257608354, -0.0820705146, 0.0928814933, -0.0730832219, -0.1179222986, 0.0265925955, 0.0156577397, -0.1073608547, 0.4118023813, -0.244209677, 0.1163510978, 0.2619054615, -0.1691559106, 0.0014238986, -0.0333883762, -0.0778494179, 0.3672222793, 0.2183014601, 0.2977804244, 0.2921377122, 0.3375116289, 0.3614586592, 0.0644338802, 0.2657136023, -0.2865573168, 0.0483682081, 0.1971949935, -0.2976624966, 0.0860943571, -0.117373839, -0.0520834848, -0.1681057662, 0.4510306716, 0.0518085025, -0.4274747074, -0.0308062918, 0.0398100354, -0.369628191, 0.2886811793, -0.5436121821, 0.306212604, -0.4167550504, -0.0061536562, 0.1225446686, 0.020024728, -0.0477138422, -0.1380867511, 0.0039751632, 0.337641865, -0.3546610177, 0.1241863444, 0.1376679391, 0.0682115033, -0.1355219334, 0.0976431295, -0.5698050261, 0.0090574576, -0.2597598732, -0.3917782605, 0.2107915431, -0.7245198488, -0.0527765676, 0.3263938725, 0.1791740507, 0.1801624596, 0.1496450156, -0.0645906776, 0.1660557985, -0.1837111115, -0.0318238586, 0.0191618763, -0.2806329727, -0.083153598, -0.2682231665, -0.2617743313, 0.0348328874, 0.304420948, 0.0277819708, 0.0414362289, -0.2109814733, 0.3581062853, 0.1359633356, -0.0064521846, 0.1301134527, 0.136733979, 0.3852007091, -0.3646298647, 0.1561648846, 0.2493319064, -0.6380553246, 0.1966902018, 0.1880623847, 0.4528010786, 0.1778423041, -0.5670553446, -0.1437867135, -0.1468261182, 0.0385299101, -0.1696320921, -0.0359267369, 0.0280675944, 0.1189147681, -0.0967151523, -0.1575112194, 0.2332438827, -0.2407568097, 0.1942411214, -0.0328742042, 0.5010330081, 0.1091516018, 0.2853379846, 0.1629903764, 0.0964113921, -0.1618954837, -0.2051103115, 0.0602598079, 0.2141713947, 0.1870740503, 0.1111883521, 0.3974798322, 0.4247231781, 0.4477740228, -0.3103119135, 0.1925903559, 0.1509870589, 0.0753235221, -0.2127711028, -0.5855008364, 0.4025783837, -0.1955644786, -0.0855592117, -0.2130405307, -0.119592987, 0.006328491, -0.0666269213, -0.4284427166, -0.1653014868, -0.0281802323, 0.4102649987, 0.1385043561, 0.2240803689, -0.2294515222, 0.1069502309, 0.2363145947, -0.1127404049, -0.2608179152, -0.0343474373, -0.2447262853, -0.2175221443, 0.35763219, -0.0760133043, 0.7826747298, 0.1057049781, 0.0656918064, 0.016965203, -0.003438333, 0.0586483106, 0.2532227635, -0.1202933863, 0.0830951482, 0.0017475246, 0.0052093719, -0.1048926637, 0.0964001492, 0.0126348371, 0.2225435823, 0.3168846667, -0.1253337711, -0.2479967624, -0.0285597164, -0.2081046402, 0.2332375646, 0.0725480542, -0.1621848643, -0.1254202425, 0.1380712688, 0.2094379812, -0.0942760631, 0.0476546623, 0.0050453921, 0.4666485786, -0.3039304912, -0.2327421755, -0.283210963, -0.1820244193, -0.0861615911, 0.0620112307, 0.2119736671, 0.0261681993, 0.2683385015, -0.0345500298, 0.1445038617, -0.5180165768, -0.4634195268, 0.252296567, 0.0593941323, 0.261384964, 0.0816032216, 0.0341063179, -0.0884684548, 0.0643767715, 0.0829953253, -0.0030096343, -0.0558769256, -0.2064954191, -0.1228437498, -0.0442349687, -0.1758054197, -0.3010545671, -0.0338209607, -0.1831241548, 0.0936005041, -0.0758852288, -0.1396861225, -0.0917056873, -0.0547071919, -0.4432267845, 0.072774604, -0.258985728, -0.3318423033, -0.6195006371, 0.075614281, -0.0597064383, -0.1350615025, 0.2490483522, 0.0221246444, 0.1384938359, 0.2164848745, -0.6986830831, -0.4241257608, 0.2587233782, 0.4052048624, -0.0929831043, -0.3550582528, 0.2869263589, 0.2108807713, 0.1084008142, 0.0825251415, -0.2661288083, -0.229759261, 0.1614144146, 0.1751896143, 0.106026873, 0.0605162457, 0.1032134742, 0.3238623142, 0.251748234, -0.0338355564, -0.2773767412, 0.1513292193, 0.4563350976, -0.0811794475, -0.0708349645, -0.0296384487, 0.1907843947, -0.1329558194, 0.3020755053, 0.0880931243, -0.0105035109, -0.264941901, 0.2278592288, -0.0496326834, -0.3097026348, 0.2288974077, -0.3930645585, 0.1806739867, 0.0400842391, 0.045660127, -0.2059482634, -0.1469038278, -0.0085967937, 0.4432200789, 0.3004215062, 0.0033743661, -0.4678472579, 0.2943743169, 0.0010482502, -0.0080018211, 0.0905996412, 0.3999955654, -0.0931667686, 0.3716992736, -0.0008432684, -0.0072629964, 0.4108562469, -0.6031451821, -0.227450341, 0.1404900998, 0.0328119174, -0.2128578871, 0.0721241459, -0.1617634743, 0.3029289544, -0.0243062824, 0.7227540612, -0.2641972303, -0.3784859478, 0.2961876392, 0.1741278768, -0.00125303, -0.2628872693, -0.0243871137, -0.0839062333, -0.0816360489, -0.0033010696, -0.0862518325, -0.1293481737, -0.352743715, 0.0130282762, 0.0233078618, -0.1037388518, 0.1885838807, 0.0584567785, 0.0828901604, -0.0610466264, 0.3257549703, 0.1034017131, 0.1313356906, 0.7447346449, 0.413146615, 0.3233855367, -0.4630487263, -0.1426717043, -0.2742359042, 0.1098113284, 0.4510614276, 0.213357538, 0.0988784209, -0.4338906109, -0.1592951715, -0.4889299273, 0.0585082248, 0.0096504744, -0.265797019, -0.5960658193, -0.1762781143, 0.3423910439, 0.2098857164, -0.1946149617, 0.2322781682, 0.1654826999, -0.3117160201, -0.0106807929, 0.0364863425, 1.1372129917, 0.1707758009, 0.0101741813, -0.1522748619, -0.091068387, 0.6949191689, -0.4794972539, -0.2120867074, -0.230445981, 0.020044256, -0.0982845947, -0.1055505499, 0.3895759881, 0.3323965371, -0.2938265502, 0.0261611752, 0.3190360963, 0.5290607214, 0.035270974, 0.3862559795, -0.3117249906, -0.022452537, 0.107072711, 0.0175044816, 0.008927878, -0.0972715244, 0.0006012247, -0.0294541102, -0.3941327035, -0.0911890641, -0.1982352585, -0.1042690501, -0.1316882819, -0.2227214426, -0.0518812574, -0.2688442171, 0.3732956648, -0.1023292616, 0.6510102749, 0.2202300429, -0.3347438872, 0.0359893739, -0.3414070904, 0.0581138022, -0.0447924584, -0.1443890482, -0.0855821893, -0.0180683974, -0.3235902786, 0.1985039413, -0.3365795016, -0.2013842911, -0.2689166069, -0.3212228417, 0.1674938649, -0.3649048209, 0.1505705863, 0.1200839728, -0.107780233, -0.0102774138, 0.0145544987, 0.1332890242, 0.1253107637, 0.20934394, 0.0216221083, -0.1467244476, -0.3919969499, 0.0032066943, 0.2958921492, -0.2547494471, -0.1665381491, -0.1934324503, 0.011590803, -0.2185720801, 0.3935302794, 0.1394246072, -0.1466332823, -0.1510878652, 0.28501454, 0.0234917402, 0.0578889064, 0.0234697387, 0.297399193, -0.0711747557, -0.0511646308, -0.1760151088, -0.3237277269, 0.2694989145, -0.0692696795, 0.3076923788, 0.0455658697, -0.0762841552, -0.018350929, -0.0379975587, -0.2034137249, 0.0091454107, -0.0850371271, 0.2772497237, 0.2382278442, 0.1415388286, -0.0091929175, -0.3250307739, -0.0536299758, -0.3282478452, -0.2396110445, -0.0204081014, 0.1020755395, 0.2774896026, 0.302457273, -0.0315484554, -0.1419138461, -0.1961374134, 0.0667166561, -0.0266713165, 0.1049449369, -0.0482885651, -0.0287895054, 0.0550347157, 0.0929257944, 0.052149985, -0.4186541438, 0.3640987873, 0.1086997166, 0.4981409609, -0.2313827872, 0.3520741165, 0.1155732796, -0.1021814197, -0.1187714264, 0.2287893891, 0.0451792218, 0.1342412531, 0.3565940559, 0.10720516, 0.3317174613, 0.1557475179, 0.0413706116, 0.3337000608, -0.1700251848, -0.0014565989, 0.2136479318, 0.0446416102, 0.1218291074, -0.1914851964, -0.0252621267, 0.2504907846, 0.1381466538, 0.2610553205, 0.5684726834, 0.1674748957, 0.1824354678, -0.017615363, 0.7072815299, -0.1010213494, 0.2434397638, 0.4091522396, -0.1462074071, 0.1225253418, -0.0064684623, 0.2436057031, -0.1353819519, -0.1185144857, 0.1831943989, 0.4645106196, 0.2891922295, 0.0060766661, 0.3376294076, -0.0231518615, 0.2668124139, 0.3071104586, 0.081751734, -0.0349737182, 0.1401090473, 0.0712509379, -0.1896153241, -0.0710283071, -0.2995305657, -0.354688555, 0.0402572863, 0.1322724521, -0.4318907857, -0.2127628326, -0.2278624922, 0.1876521558, -0.1516073793, -0.0687164813, -0.0151958279, -0.1973631084, -0.1468778849, -0.001105596, 0.21690768, 0.2533170581, -0.0970940143, 0.0234400686, -0.035682518, -0.0315044448, -0.1414556354, 0.3525690138, 0.448851198, 0.0041095717, 0.019632034, -0.1713111699, -0.1424929947, -0.0778811797, -0.1094418615, 0.089049302, 0.3017894924, 0.0227638017, -0.6074564457, 0.0561022833, 0.1318263561, 0.0336749814, 0.1196878776, -0.1696053594, -0.2930711508, -0.3093167245, 0.0349319801, 0.0978042036, -0.1174840108, 0.491230309, 0.0053820941, 0.068863973, -0.4218289554, 0.6116889715, 0.0203998927, -0.0135248005, -0.1178774908, 0.0338031538, -0.1395038962, 0.1375407726, 0.1418243051, -0.1621309072, -0.1440772563, -0.3001714647, -0.2205270082, 0.0772442147, 0.1082795039, -0.2581253648, 0.137957111, -0.1087095588, 0.3799064755, 0.4360385835, -0.4269246459, -0.0856345072, 0.1493407935, 0.0921812356, -0.2350292951, -0.0601313487, 0.136244297, 0.1209576949, -0.205193311, -0.2144846618, 0.155859977, 0.3706273735, -0.1678116322, -0.2632843256, 0.2396599948, 0.3011558354, 0.115921542, 0.1781297475, 0.1991792768, 0.4450962245, 0.1305136383, -0.0499561392, 0.0399186611, -0.1402998269, 0.2278208286, 0.3486583829, -0.0127527211, 0.0899556726, -0.2102352828, -0.0199077129, 0.0029159843, -0.2568723857, -0.1454183012, 0.2583141029, -0.492423147, -0.0154542821, -0.2978668809, 0.0228514019, 0.0478911586, 0.2392016947, -0.0960057005, -0.1142868549, -0.0359735936, 0.0362405181, 0.2581104636, -0.1144110411, -0.0300937835, -0.031984657, 0.0281229336, -0.2988878191, -0.0821258873, -0.5084251761, -0.035827551, 0.3739146292, -0.0714877173, -0.0713289902, 0.0690614432, 0.3855465949, -0.1021689773, -0.1462683678, 0.3011069596, -0.212126106, -0.0194283482, -0.0506070368, 0.030854689 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
From some offline discussion with @mariosasko and especially for vision datasets, we'll probably not require dummy data anymore and use streaming instead :) This will make adding a new dataset much easier. This should also make sure that streaming works as expected directly in the CI, without having to check the dataset viewer once the PR is merged
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
58
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw From some offline discussion with @mariosasko and especially for vision datasets, we'll probably not require dummy data anymore and use streaming instead :) This will make adding a new dataset much easier. This should also make sure that streaming works as expected directly in the CI, without having to check the dataset viewer once the PR is merged
[ -0.324167043, 0.0028328344, 0.0530671589, 0.1227909923, 0.0889795721, 0.2199126035, 0.2552140355, 0.181075722, -0.151201278, 0.098315753, 0.1719060093, 0.1244265884, -0.0338424742, 0.3266551495, -0.1211210117, -0.0729696378, 0.1732610166, 0.0790969282, 0.107607387, 0.1135489419, -0.2933542728, -0.2771555781, -0.0892895013, -0.2865454257, -0.2818805277, 0.1704633236, -0.1468868405, 0.0664556697, -0.4142169356, -0.1764492989, 0.1573473066, 0.3842196167, 0.1258397251, 0.2026726007, -0.0001244875, 0.0609173216, 0.5964474678, -0.0615680665, -0.3459528089, -0.1388450712, -0.344291836, 0.3251213729, -0.0037274982, 0.0563988388, -0.3120824993, -0.1080527976, -0.2012585551, -0.3454527557, -0.0418567136, 0.1187125742, 0.0408902876, 0.1177651882, -0.4162547886, -0.1850221604, -0.0828744844, 0.8959905505, -0.2184733599, 0.0396169722, 0.3214276135, 0.1252555549, -0.0214542691, 0.2462194413, 0.0636517853, -0.1543288678, 0.1575549841, 0.0029876493, 0.0538950935, -0.2519348562, 0.3336926997, 0.1782876551, 1.0410091877, -0.2155256569, -0.1378965229, -0.0828526989, 0.1488089412, -0.0570682921, 0.2091366947, 0.2203892022, 0.0047219698, 0.1472853571, -0.4312946498, -0.3242123127, -0.0675406456, 0.0863317102, -0.06829869, 0.1963181496, 0.1512874663, 0.1827611029, -0.032735724, 0.1232687905, 0.4678578377, -0.7272580266, -0.2923150063, -0.176306203, 0.3717646599, -0.3945513964, -0.1382314563, -0.0913934484, 0.1544780433, 0.3186751306, -0.0517117046, -0.0299985148, -0.1204476058, -0.0908388048, 0.6764488816, -0.0969470441, 0.1591025889, 0.5062068701, 0.2608686686, 0.1866647452, 0.2671681345, 0.0150523363, 0.0697796568, 0.4231528044, -0.4522967339, 0.0954698622, 0.287724942, -0.4338807762, -0.0992420614, -0.0105744628, -0.1103539392, -0.1238319799, 0.0416932888, 0.0783529431, -0.0860735551, 0.418931663, -0.1722423136, 0.1072689816, 0.2390532494, -0.1500848532, -0.0111545231, 0.0161891803, -0.0937853307, 0.2817308009, 0.1632750183, 0.2352618277, 0.2449202389, 0.2655419707, 0.5070670247, 0.1084121242, 0.2386456728, -0.2171186954, 0.1245881543, 0.2789685428, -0.2482052147, 0.0188656989, -0.0539842919, -0.0935713425, -0.2289472371, 0.4336296022, 0.0884449109, -0.4489964843, -0.025049543, 0.0494365692, -0.3690259159, 0.2312483788, -0.4969611764, 0.3566551805, -0.5019930005, -0.0650997609, 0.0835508853, 0.0231482107, 0.0555037335, -0.1173822433, -0.0324310809, 0.2143107355, -0.2944128513, 0.0912995413, 0.1851642728, 0.025127586, -0.1170078963, 0.1568720788, -0.6129283905, -0.0500513203, -0.2285742462, -0.3935678005, 0.3086715043, -0.8477144241, -0.1294120699, 0.2989561856, 0.1432188302, 0.1975877136, 0.1881818771, 0.0636190921, 0.2252756208, -0.2162256688, -0.0111495145, 0.1082949117, -0.354719758, -0.027918648, -0.2360621989, -0.2612778842, -0.0100399954, 0.301876545, -0.0409656204, -0.0554574542, -0.1049726456, 0.3760013282, 0.168858096, -0.0092440946, 0.0784527436, 0.1436166018, 0.3767306805, -0.4412897527, 0.1171501353, 0.3038470447, -0.5733506083, 0.1398735344, 0.2014063001, 0.4316476583, 0.1817215532, -0.5865430236, -0.1029360592, -0.1961625516, -0.0073578483, -0.206525743, -0.0317928717, 0.0277233087, 0.0852416828, -0.1101694107, -0.1717990786, 0.2060656399, -0.2192740142, 0.2135260403, -0.0054579447, 0.5620456934, 0.0850514993, 0.2040944397, 0.0904039741, 0.0994198695, -0.1562521905, -0.2186804265, 0.0306697208, 0.2174742669, 0.1191917658, 0.1722205281, 0.3574073315, 0.4845868647, 0.5241592526, -0.4383273423, 0.1730112582, 0.1681895852, -0.0070970794, -0.2035505027, -0.66035676, 0.4108441174, -0.2032640427, -0.0603547394, -0.1086585373, -0.1631270051, 0.0191796627, -0.0263506752, -0.5009215474, -0.1570660472, 0.0206331443, 0.3617026806, 0.0346779712, 0.2119879723, -0.2503418028, 0.1653728038, 0.2489846647, -0.041881755, -0.2560430467, -0.0734013766, -0.3119318485, -0.2224854827, 0.4121027589, -0.0615798868, 0.7546886802, 0.1410358101, 0.0716553554, 0.055924803, -0.0183895957, 0.0470759943, 0.2953933179, -0.0540554859, 0.0979320705, -0.024065733, 0.0316236392, -0.0318356678, 0.0031080274, -0.0114892758, 0.2157935649, 0.1867375672, -0.0456023365, -0.2046145946, 0.0024965387, -0.3290114999, 0.2191880196, -0.0153647838, -0.1362144202, -0.1916928738, 0.1173139811, 0.3332621157, -0.1289615631, 0.1369427592, 0.0812585577, 0.5222626328, -0.2611394525, -0.2801065445, -0.248816371, -0.1813656837, -0.0823928416, 0.0644385368, 0.2530829906, -0.0110606877, 0.2992452979, 0.042415984, 0.2190319598, -0.5009662509, -0.6021684408, 0.2781815529, -0.0115866894, 0.232991159, -0.0345762931, -0.0089711649, 0.0068082311, -0.0550080054, 0.0509784445, 0.0610423423, -0.0705518425, -0.2175285667, -0.1650014222, -0.0931691453, -0.1749331802, -0.2989954948, -0.0271900836, -0.296652317, 0.086537227, -0.0438254066, -0.1612772942, -0.1292581707, -0.035827525, -0.5355432034, 0.0194080602, -0.3132396042, -0.2721153796, -0.5159099698, -0.0053508901, -0.0551142842, -0.1502455622, 0.2905947566, 0.0149664693, 0.187828362, 0.1801385432, -0.6355611682, -0.4519747794, 0.2450996935, 0.4014112353, -0.0096779699, -0.3944189548, 0.3081794083, 0.2317149788, 0.0781513304, 0.1073632091, -0.2837240398, -0.2847272754, 0.2288769335, 0.2375813872, 0.0354455784, 0.0019911751, 0.1353359669, 0.4114743769, 0.3028434515, -0.1114418656, -0.2220629603, 0.1965157688, 0.4624951184, -0.1647166461, -0.0858352035, 0.0284273252, 0.1187226102, -0.0799854323, 0.3136778474, 0.0783563629, -0.1345361322, -0.2938976288, 0.2200452238, -0.0091186073, -0.3245024085, 0.2462799996, -0.3886366189, 0.1310480833, 0.0086885039, -0.0026905288, -0.1810182482, -0.164444983, 0.0609243624, 0.5126926303, 0.215625003, 0.0109498119, -0.3922183514, 0.2254240215, -0.020399373, 0.0305287912, 0.047587242, 0.3183737397, -0.1006512269, 0.2326280028, -0.020597348, 0.0096710334, 0.3619250655, -0.5719400644, -0.2629007101, 0.1595187187, -0.0254396219, -0.114690356, 0.0059720818, -0.2136045694, 0.2342954427, 0.0096664336, 0.7039010525, -0.2044447809, -0.3472063243, 0.3800971806, 0.0786054656, 0.0557026751, -0.2233520001, -0.0440460779, -0.0758320615, -0.2184955925, 0.0544793308, -0.0877112076, -0.1326833963, -0.4300161302, 0.0392479673, 0.0065714032, -0.1386075169, 0.1421233267, 0.0591612197, 0.0756335482, 0.0087345298, 0.2762982547, 0.0637427121, 0.197132796, 0.6988303065, 0.4573860168, 0.4754015207, -0.4999070168, -0.1099480465, -0.1697416008, 0.139049992, 0.5575083494, 0.2413779348, 0.1259517074, -0.3874629438, -0.1496490687, -0.537479341, 0.1662859619, -0.0077700177, -0.2753596604, -0.5904632211, -0.0395674817, 0.2766444981, 0.1901074648, -0.2208287716, 0.2423340231, 0.0716937035, -0.2954408824, 0.050126113, 0.0835339725, 1.2299718857, 0.1557794809, 0.0748053119, -0.1142553166, -0.1605084985, 0.608261466, -0.4684001505, -0.12200699, -0.2312954813, -0.0357312001, -0.1058771089, -0.1070739701, 0.4212023616, 0.136247918, -0.3654742539, 0.027647268, 0.4150635302, 0.6232835054, 0.0090513015, 0.3334206045, -0.2862465978, -0.051271148, 0.1285196692, 0.0008601098, -0.0426812842, -0.0338948742, -0.0133902477, -0.0740607604, -0.3584202826, -0.1299197078, -0.1787642986, -0.0720337555, -0.1273623705, -0.2293295562, -0.1876275241, -0.2990334928, 0.3476728499, -0.0607868135, 0.5859193206, 0.1765906662, -0.3040042222, 0.1545699984, -0.2439034134, 0.0627344772, 0.0177467465, -0.2267912775, -0.0039618728, -0.0233692937, -0.2642529309, 0.2565304637, -0.3134243786, -0.2393542826, -0.3106119335, -0.265812397, 0.2347884774, -0.3444952667, 0.1604540646, 0.1504295468, -0.2175739706, 0.0223349109, 0.0095752291, 0.0268928837, 0.1288287044, 0.1711421311, 0.0577258766, -0.1934423, -0.3767569661, 0.0454508774, 0.3326439857, -0.3947031796, -0.1790221483, -0.2192772478, 0.0086609526, -0.1988683939, 0.3321894407, 0.1791647524, -0.156933248, -0.1746481657, 0.2327184081, -0.0752289519, 0.1238316894, 0.1042578369, 0.3200901449, -0.0290699229, -0.1371759027, -0.1182337627, -0.3665415049, 0.3352341354, -0.1479914635, 0.3642282188, -0.0221377667, -0.0474406071, -0.0195897985, -0.0129715493, -0.2135231048, -0.0340359956, -0.0769129321, 0.3327139616, 0.173813045, 0.138127625, 0.0076770396, -0.2906364799, -0.041359026, -0.335426867, -0.3065828681, -0.0241763815, 0.1393946111, 0.2570876181, 0.3119018078, -0.0257044006, -0.1587395221, -0.2187302262, 0.0926861241, -0.0352477729, 0.2001083791, -0.1472227573, -0.0552832596, -0.068599768, 0.1408138573, 0.0187067632, -0.2946337461, 0.3429132104, 0.0797455013, 0.5523641109, -0.2327837497, 0.2721138895, -0.0172739979, -0.0880326852, -0.0223697927, 0.1948526353, 0.1313584745, 0.2030769885, 0.3658859432, 0.1381610483, 0.2919041216, 0.08829429, 0.0542401597, 0.2289493829, -0.2070331126, 0.0009710417, 0.1349734217, 0.0522180013, 0.0814800486, -0.2097769827, -0.0458145253, 0.2342493981, 0.1655075997, 0.2127910107, 0.6762368679, 0.2095028758, 0.2358068079, 0.0109198671, 0.7158056498, -0.1156889945, 0.2989411652, 0.3894629478, -0.1337077618, 0.1146732494, -0.0090449955, 0.278780669, -0.1025111377, -0.0721675381, 0.1176792681, 0.514806211, 0.283118695, 0.0285319202, 0.3529289663, -0.0305857882, 0.2805872262, 0.2043258846, 0.1254721582, -0.0150951687, 0.2405246347, -0.0676537082, -0.1392039955, -0.1717009395, -0.2663328052, -0.2911621034, 0.0567331389, 0.1734191924, -0.471550703, -0.1629499346, -0.2032780945, 0.2303710729, -0.1432909817, 0.0468828306, 0.0121060768, -0.1299114674, -0.1206825003, 0.0583986342, 0.1589296907, 0.224864617, -0.0515844598, 0.0208727848, 0.1059251428, 0.0208106209, -0.13788791, 0.3983849883, 0.4229769111, 0.0621295534, 0.003803964, -0.2320007086, -0.0614818521, -0.0443141833, -0.1336642057, 0.0769104511, 0.193571493, 0.1190968305, -0.4904951751, 0.0212854613, 0.1388168037, 0.0297484715, 0.1804464608, -0.2842587233, -0.3110001385, -0.2846981883, 0.0610255599, 0.1269840896, -0.0690912232, 0.4337034822, 0.0143405804, 0.0460552499, -0.3855979443, 0.5976654291, 0.0385432579, -0.0103500187, -0.0917089954, 0.0363441259, -0.0084955068, 0.2042476833, 0.1790890396, -0.1883838773, -0.2034517825, -0.3328741193, -0.1947909445, 0.1070816219, 0.1630973667, -0.1779341847, 0.1463038474, -0.0809577703, 0.416964978, 0.4561842978, -0.3595537841, -0.1441432685, 0.2934256494, -0.0222709831, -0.2934433222, -0.0161221344, 0.2251841277, 0.1042207107, -0.1966588646, -0.183257103, 0.2004150003, 0.4509161115, -0.1606549323, -0.2713688016, 0.1942878962, 0.2937690318, 0.0315926, 0.1308795661, 0.159987241, 0.4915082753, 0.1288781017, -0.1000427604, 0.0813634694, -0.1717936844, 0.1416848749, 0.2832787633, -0.0461413339, 0.1572897434, -0.2004495114, -0.0689639896, 0.0070728515, -0.2913219333, -0.1414252669, 0.1477022916, -0.4729122519, -0.0472754277, -0.3158198595, 0.1874685436, 0.095048435, 0.2901878655, -0.0748574138, -0.0923228115, -0.1020857692, -0.081897825, 0.31161201, -0.0652399883, -0.0298984982, -0.0154610965, -0.0042113336, -0.3242740929, 0.0142480833, -0.5196756124, -0.0757671744, 0.2631605864, -0.1422017366, -0.0989630893, 0.0923934802, 0.3349246681, -0.0902346745, -0.1836149395, 0.2457854897, -0.2172703296, -0.0004724185, -0.1494915336, 0.0340165757 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
It seems that migration from dataset-info.json to dataset card YAML has been acted. Probably it's a good idea, but I didn't find the pros and cons of this decision, so I put some I could think of: pros: - only one file to parse, share, sync - it gives a hint to the users that if you write your dataset card, you should also specify the metadata cons: - the metadata header might be very long, before reaching the start of the README/dataset card. It might be surprising when you edit the file because the metadata is not shown on top when the dataset card is rendered (dataset page). It also somewhat prevents including large strings like the checksums - YAML vs JSON: not sure which one is easier for users to fill and maintain - two concepts are mixed in the same file (metadata and documentation). This means that if you're interested only in one of them, you still have to know how to parse the whole file. - [low priority] besides the JSON file, we might want to support yaml or toml file if the user prefers (as [prettier](https://prettier.io/docs/en/configuration.html) and others do for their config files, for example). Inside the md, I understand that only YAML is allowed
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
210
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw It seems that migration from dataset-info.json to dataset card YAML has been acted. Probably it's a good idea, but I didn't find the pros and cons of this decision, so I put some I could think of: pros: - only one file to parse, share, sync - it gives a hint to the users that if you write your dataset card, you should also specify the metadata cons: - the metadata header might be very long, before reaching the start of the README/dataset card. It might be surprising when you edit the file because the metadata is not shown on top when the dataset card is rendered (dataset page). It also somewhat prevents including large strings like the checksums - YAML vs JSON: not sure which one is easier for users to fill and maintain - two concepts are mixed in the same file (metadata and documentation). This means that if you're interested only in one of them, you still have to know how to parse the whole file. - [low priority] besides the JSON file, we might want to support yaml or toml file if the user prefers (as [prettier](https://prettier.io/docs/en/configuration.html) and others do for their config files, for example). Inside the md, I understand that only YAML is allowed
[ -0.2458129972, 0.0725631118, 0.0490858741, 0.1374435872, 0.0960530788, 0.2946307957, 0.3775528669, 0.2325655669, -0.2260082364, 0.0578873195, 0.204494223, 0.1616473794, -0.0737449676, 0.1169880629, -0.0357842892, 0.0991988853, 0.1957191378, -0.08241155, 0.0424896665, 0.0821361244, -0.3140948415, -0.2128605694, -0.0029767768, -0.1942624152, -0.2713183165, 0.2255711257, -0.0595802218, 0.1250093579, -0.3897125125, -0.2232363075, 0.2344599813, 0.2648127973, 0.0101266494, 0.21185866, -0.0001254561, 0.0219638925, 0.5573881865, -0.0310817566, -0.2862558961, -0.1731317192, -0.3966327906, 0.2392092347, -0.0645182654, -0.023943508, -0.164224565, -0.1230784133, -0.2316622585, -0.4236288965, -0.0904371291, 0.1119435504, 0.0209231395, -0.1281619072, -0.4025226533, -0.1342912763, 0.0576744713, 0.8744249344, -0.1635184437, 0.086691618, 0.4153918922, 0.0357444026, -0.0156164756, 0.2925401628, -0.0131100221, -0.2143668532, 0.1448256224, 0.0217459537, 0.3097137809, -0.1213153005, 0.4607020319, 0.2310019881, 1.0232340097, -0.3339764178, -0.1650912166, -0.1920342594, 0.2018479407, 0.046897117, 0.2180627733, 0.2553751171, 0.0349454544, 0.1748925596, -0.3350850642, -0.3043083549, -0.0532127842, 0.0867359117, -0.1037170663, 0.1884149015, 0.118733786, 0.1460499465, -0.1171575859, 0.1146332398, 0.5123540759, -0.6611412764, -0.2052415907, -0.0494499058, 0.4328432381, -0.2740963995, -0.1120891124, -0.2723458111, 0.3622403145, 0.1502530128, -0.1056201681, -0.0845802203, -0.0515957363, -0.1613935977, 0.6765851378, -0.1951908618, 0.270944804, 0.4857603908, 0.2068418413, 0.1097973809, 0.3558481634, -0.0169467609, 0.0275983755, 0.4236779213, -0.2334451973, 0.1517974883, 0.3061839044, -0.5264109373, -0.0700256079, -0.0010948718, -0.1513604224, -0.2167410702, 0.0434962884, 0.0732601956, -0.0667541772, 0.3365078568, -0.2944552004, 0.1129323393, 0.387159586, -0.0272708964, 0.0292915106, -0.0000669409, -0.1321747452, 0.2954185009, 0.1795013398, 0.2546350956, 0.3569712341, 0.2749108076, 0.2778422832, 0.1254777014, 0.2126247436, -0.227350086, -0.0203181151, 0.2221152037, -0.2674277425, 0.1357555091, -0.0906983763, 0.0154984556, -0.2425860614, 0.3936829567, -0.0075671752, -0.484894067, 0.1711172909, 0.046644289, -0.1833802164, 0.3787021935, -0.5226448178, 0.3028146625, -0.265475899, -0.063902244, 0.09437529, -0.0391241945, 0.0758405104, -0.2001128048, -0.0780474991, 0.206011638, -0.2689234316, 0.0265684295, 0.1821847111, 0.1835428923, -0.1128551289, 0.1387725174, -0.6814332008, 0.0086805765, -0.1930308789, -0.223812893, 0.2639654279, -0.9662441015, -0.1644694358, 0.3931194842, 0.1148646623, 0.2616600394, 0.1859057397, -0.0193242095, 0.1546002328, -0.3390677869, 0.1039415523, 0.0225524083, -0.2659649551, -0.0311997086, -0.2678821683, -0.2672685981, 0.0256136153, 0.2164316177, -0.0166650284, -0.1552045196, -0.0920512602, 0.4619903862, 0.2085518539, 0.0265065655, 0.1126235649, 0.169578746, 0.4537019134, -0.3635906875, 0.0706775934, 0.2630221248, -0.5882101655, 0.0995651037, 0.0996043682, 0.3630200624, 0.0374169499, -0.5928766131, -0.092826359, -0.2264359295, -0.0519168042, -0.2224389464, -0.0334075429, 0.016172979, 0.1760015339, -0.03651613, -0.1445962638, 0.2631174028, -0.2954930961, 0.2064349502, 0.0821135193, 0.4420948029, 0.1300016493, 0.2988013327, 0.041830048, 0.0362823121, -0.1302720457, -0.2257069945, 0.0472139977, 0.2654966414, 0.1290198267, 0.059393093, 0.2227126956, 0.5241359472, 0.5324872732, -0.3105401695, 0.1798178703, 0.0409291312, 0.0641152263, -0.2755150795, -0.6814864874, 0.3605360687, -0.2061822712, 0.0529466048, -0.0831594169, -0.2165974677, -0.0067492514, 0.0130304797, -0.5220208168, -0.2126068622, -0.0013484806, 0.251267463, 0.1375463754, 0.217106849, -0.1585519463, 0.1345749795, 0.4089343846, -0.0532733314, -0.1820454746, -0.0487139896, -0.3153189123, -0.2136712968, 0.3184402585, 0.0696080327, 0.7673095465, 0.0888233632, 0.0289569944, 0.0271291006, -0.0342018381, 0.0250274036, 0.2386965007, -0.1692144573, 0.2030094564, 0.030911956, -0.0013745263, 0.0103520192, 0.102159664, -0.0025221631, 0.1919775605, 0.185308218, -0.0265790764, -0.2327499241, -0.0444625579, -0.2168560028, 0.2352805734, -0.1599758565, -0.0720530674, -0.2218924016, 0.1295793951, 0.1980028898, -0.077614747, 0.0246686693, 0.0489622019, 0.3080641925, -0.2680728436, -0.3100036979, -0.1774626523, -0.1845178157, -0.038961105, 0.0294551793, 0.3014757335, 0.0572617389, 0.2272360027, -0.021988444, 0.0902076513, -0.5844405293, -0.554305315, 0.2199606448, -0.0114920828, 0.2267916501, 0.0125627248, -0.0125384592, -0.0493448377, -0.0357793979, 0.1228649467, 0.1481038928, -0.0678223893, -0.1665269732, -0.1013265178, -0.0693411976, -0.1386355162, -0.3014490604, -0.1190194339, -0.2797602415, 0.0616526082, -0.0320061706, -0.1312157959, -0.1170178205, -0.1184772477, -0.4778541028, -0.0405218005, -0.1947010607, -0.2331457138, -0.4756771326, 0.0033597066, -0.0417956188, -0.1865062714, 0.2016940862, 0.1531429142, 0.2526437342, 0.251568228, -0.640439868, -0.3635880947, 0.2204321027, 0.3617002666, -0.0785266906, -0.3748377264, 0.2409526408, 0.4136595428, 0.109696053, 0.1314531565, -0.1525264084, -0.2058731914, 0.1164271981, 0.1733413935, 0.0965743363, 0.0631290227, 0.205279246, 0.3014645875, 0.2303939015, -0.0238432493, -0.3041137159, 0.2195902318, 0.3392546177, -0.160136953, -0.1856108457, -0.0102901245, 0.1056038737, 0.0536900163, 0.2566877902, 0.0738471895, -0.0206304509, -0.2161154747, 0.1673425436, -0.0514938645, -0.3431797326, 0.23479864, -0.3258185685, 0.132788986, 0.0958768427, 0.0037384275, -0.1090710163, -0.0889717415, 0.1466882676, 0.4976737499, 0.1743072122, 0.1243273243, -0.4511561692, 0.3046045601, 0.0031139452, -0.08439821, 0.043798063, 0.2430315912, -0.1236646622, 0.2665137053, -0.1167971492, -0.0489451513, 0.3429722786, -0.3815173209, -0.1727388352, 0.1236576661, -0.0580680482, -0.1266757697, 0.0215213094, -0.2137851715, 0.2328717113, 0.0404165275, 0.7249448895, -0.3893068433, -0.3638687134, 0.2157055587, 0.1326420605, 0.1034718156, -0.2075370699, 0.0126572093, -0.0954458565, -0.2083398104, -0.0623359755, -0.0943085179, -0.0240742546, -0.2903947234, 0.0343279727, -0.0400078446, -0.0989753157, 0.1771917045, 0.0941160843, 0.0112060811, -0.1947904229, 0.3631031513, -0.0006865485, 0.2389101386, 0.9481896162, 0.275570333, 0.4440122247, -0.449655652, -0.1652799845, -0.2885407805, 0.1793875843, 0.4665715694, 0.1506352723, 0.1089007631, -0.4353899062, -0.1948774606, -0.3450484872, 0.1139139235, 0.0154387094, -0.1735885739, -0.6815409064, -0.2052448243, 0.3447721899, 0.3213334382, -0.206276685, 0.2747278512, 0.1595111191, -0.4423621893, -0.0953678489, 0.1143689677, 1.1027493477, 0.1534772962, 0.0240978301, -0.1129828617, 0.0120825544, 0.5655421615, -0.5468782187, -0.2023124993, -0.169993788, 0.0573223121, -0.1105324179, -0.0953866243, 0.4271403849, 0.307605952, -0.3171527684, 0.0665182546, 0.3760084808, 0.3877004981, -0.0293941386, 0.3993366659, -0.3510080278, -0.0742054582, 0.0766024143, -0.0069014062, -0.0323839933, -0.0461760387, 0.0120252948, -0.1184767783, -0.5048005581, -0.0352875814, -0.1203606203, -0.1022156626, -0.2382326424, -0.1329219639, -0.2183088958, -0.2226940095, 0.4165581465, -0.1862242222, 0.5585981011, 0.2893874943, -0.2676178217, 0.0111884857, -0.2534012794, 0.0527599417, 0.0763982013, -0.1506588906, 0.009518913, -0.0653494522, -0.1428999305, 0.2437609732, -0.4322521985, -0.1838100553, -0.2856943011, -0.3267496824, 0.2874286175, -0.3972763717, -0.0143907126, 0.2185991108, -0.161208123, -0.0424015932, -0.0047137798, 0.1360269189, 0.1072017252, 0.1699217856, 0.077199094, -0.18941544, -0.3785460591, -0.0853337571, 0.2366083562, -0.4076642096, -0.1198140159, -0.2491586208, 0.0160437189, -0.1745432615, 0.3726710379, 0.2499842793, -0.2122892737, -0.258572787, 0.2406936735, -0.0464637615, 0.1930502951, 0.0080913827, 0.3904550076, -0.0534183644, -0.0989331305, -0.1528410017, -0.3704645336, 0.426301986, -0.0838532224, 0.26447016, -0.1009284779, -0.1022026464, -0.0904469043, -0.0365476571, -0.2027289569, -0.0138806263, 0.0110882018, 0.3234612942, 0.2898307443, 0.1772098094, -0.0161815379, -0.1915632784, -0.012665987, -0.3334390521, -0.262139082, -0.0141949356, 0.0703285709, 0.2547887564, 0.2943771482, 0.0096958075, -0.0763999, -0.2549785376, 0.0439668298, -0.0384789184, 0.2081175297, -0.0597652234, -0.0148180593, -0.0177206732, 0.1492542028, 0.0555669181, -0.3738578856, 0.4113754332, 0.0410939045, 0.3008281589, -0.2845146954, 0.3215805888, 0.0092222393, -0.1026498377, -0.1424107552, 0.2068305612, 0.1125154197, 0.170323208, 0.3666963875, 0.0637292415, 0.4101210535, 0.2418354303, 0.0015591072, 0.3229469955, -0.177434817, -0.0450887308, 0.1649062037, 0.0441576242, 0.1059717163, -0.2808954716, -0.1134346202, 0.1378463954, 0.1395846009, 0.2617443502, 0.6107955575, 0.1981852949, 0.1573050022, 0.0223889966, 0.8079673648, -0.1322633028, 0.2276793867, 0.5587704778, -0.12285842, 0.1849906147, 0.0056886263, 0.3069050312, -0.0755729899, 0.0033747132, 0.0083081014, 0.4674563706, 0.2809513211, -0.1467738897, 0.2401890755, 0.0543116517, 0.2157965451, 0.4437096119, -0.0171076953, -0.0422467813, 0.2064950317, -0.0035993441, -0.0384078361, -0.0995547399, -0.1509351879, -0.2164848596, 0.0182139613, 0.138151288, -0.3230611682, -0.2111430615, -0.1732994467, 0.154929176, -0.2302758098, -0.0461714342, -0.0166409295, -0.1141952872, -0.0897892416, -0.0041813524, 0.2379938215, 0.2066402584, -0.050803829, 0.0072568348, -0.0134419957, -0.0091818571, -0.1601508707, 0.258759141, 0.3437722027, 0.097506173, 0.1494029164, -0.1429680586, -0.0855919942, -0.1038480774, -0.1023378223, 0.104672052, 0.2283135951, 0.0877827108, -0.5904812217, 0.0514872521, 0.1048815772, -0.0116911642, 0.0512492619, -0.0869784281, -0.3271186352, -0.1769760847, -0.0521328077, 0.0184802394, -0.1348034143, 0.5184243917, 0.1318226457, 0.0315206461, -0.4246058464, 0.6472571492, 0.1133600548, -0.0034361908, -0.0708361641, 0.0383176506, 0.0176441818, 0.1050149575, 0.0869629607, -0.279923737, -0.2245021611, -0.2869446874, -0.3406626582, 0.0114408555, 0.074312076, -0.2239450663, 0.1343096942, -0.1045243144, 0.4390726089, 0.4526130259, -0.2944199145, -0.0711132959, 0.2657049894, -0.0094496189, -0.2847438753, 0.0501436777, 0.3269124627, 0.1434351504, -0.1831220835, -0.2267412543, 0.1505770236, 0.294485122, -0.1189245582, -0.3583386242, 0.3358570635, 0.338196367, 0.2454428226, 0.1365929991, 0.1274029762, 0.4152624607, 0.1321992576, -0.1274968386, 0.1224509552, -0.120324336, 0.2686738372, 0.4127637148, -0.0315682851, 0.0875049904, -0.1834026873, -0.1917534024, -0.0570092723, -0.2454121411, -0.1541803628, 0.1104928777, -0.520097971, 0.0679737702, -0.2056205869, 0.0665758327, 0.0384126753, 0.1586783081, -0.048122827, -0.0920186043, -0.0936962888, -0.1335920841, 0.2509686351, -0.0836235359, 0.0041581625, 0.0531605147, -0.0023607337, -0.3000032902, -0.0246511493, -0.5633504987, -0.0754614025, 0.367629528, -0.0839685872, -0.1857484728, 0.0197258964, 0.28265962, -0.1885168403, -0.1252359599, 0.1765539497, -0.2426811457, -0.0439612307, -0.0952348784, 0.0518286936 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
> the metadata header might be very long, before reaching the start of the README/dataset card. It might be surprising when you edit the file because the metadata is not shown on top when the dataset card is rendered (dataset page). It also somewhat prevents including large strings like the checksums Note that we could simply not have the checksums in the YAML metadata at all, or maybe at one point have a pointer to another file instead. We can also choose to hide (collapse) certain sections in the YAML by default when we open the dataset card editor. > two concepts are mixed in the same file (metadata and documentation). This means that if you're interested only in one of them, you still have to know how to parse the whole file. I think it's fine for now. Later if we really end up with too many YAML sections we can see if we need to tweak the API endpoints or the `datasets`/`huggingface_hub` tools > YAML vs JSON: not sure which one is easier for users to fill and maintain Regarding YAML vs JSON: I think YAML is easier to write by hand, and I also think that it's better for consistency - i.e. we're using more and more YAML to configure models/datasets/spaces
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
214
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw > the metadata header might be very long, before reaching the start of the README/dataset card. It might be surprising when you edit the file because the metadata is not shown on top when the dataset card is rendered (dataset page). It also somewhat prevents including large strings like the checksums Note that we could simply not have the checksums in the YAML metadata at all, or maybe at one point have a pointer to another file instead. We can also choose to hide (collapse) certain sections in the YAML by default when we open the dataset card editor. > two concepts are mixed in the same file (metadata and documentation). This means that if you're interested only in one of them, you still have to know how to parse the whole file. I think it's fine for now. Later if we really end up with too many YAML sections we can see if we need to tweak the API endpoints or the `datasets`/`huggingface_hub` tools > YAML vs JSON: not sure which one is easier for users to fill and maintain Regarding YAML vs JSON: I think YAML is easier to write by hand, and I also think that it's better for consistency - i.e. we're using more and more YAML to configure models/datasets/spaces
[ -0.2032292634, 0.0275494643, 0.0572872944, 0.1954613179, 0.13915582, 0.2496224791, 0.4129858315, 0.1944946349, -0.1112275198, 0.0788740665, 0.1915496439, 0.1532637924, -0.013792634, 0.2418874502, -0.0354791172, 0.0570903011, 0.1467804313, -0.0240850616, 0.0660683811, 0.1013740748, -0.2296426147, -0.243506372, -0.0125359781, -0.1627845615, -0.2779268026, 0.1427887082, -0.0652331039, 0.163471967, -0.4329427481, -0.2414531857, 0.3005454838, 0.3051056862, 0.0020641331, 0.1965620816, -0.0001206806, 0.0554367304, 0.6133012772, -0.027712971, -0.2977304757, -0.1639793664, -0.3489323258, 0.1645851284, -0.0341399461, -0.0296190958, -0.2175879478, -0.1416798234, -0.2961345315, -0.3454913497, 0.0267088693, 0.0341598429, 0.0557606071, -0.0105351079, -0.397407949, -0.1319602877, 0.0406824127, 0.8578312993, -0.215408504, 0.0073764529, 0.4081349373, 0.0433144569, -0.0410460494, 0.2915611267, 0.0144685749, -0.1538505405, 0.1862285584, 0.0656516701, 0.2155627757, -0.2193213105, 0.4002029896, 0.2973579466, 1.0688922405, -0.3371961415, -0.2243126482, -0.2196124196, 0.1188322902, 0.047428146, 0.2191231996, 0.2440913767, -0.0084526334, 0.1859667599, -0.3491555154, -0.304974407, -0.0282642674, 0.1032608822, -0.0754991472, 0.0973199159, 0.0974122509, 0.1616747081, -0.0920738727, 0.0742116049, 0.4320082664, -0.6401066184, -0.2296016514, -0.0204199981, 0.3946668804, -0.3357397318, -0.1088185087, -0.1853625625, 0.4152907729, 0.2259098291, -0.1066604406, -0.0294243377, -0.1542460471, -0.1099236384, 0.6978173256, -0.1677552462, 0.260027051, 0.4338560402, 0.2486695945, 0.2175524831, 0.3864872456, -0.0584410541, 0.0749310106, 0.3904863596, -0.2591840625, 0.1152347848, 0.3168913722, -0.5075970292, -0.093185924, 0.0079690367, -0.1403203756, -0.1961097866, 0.0536827035, 0.0672761351, -0.0601143576, 0.3517614901, -0.2512369752, 0.155371666, 0.3039603531, -0.0421389975, -0.0015313202, 0.0114319082, -0.0696379244, 0.4269008934, 0.2096894383, 0.2208812982, 0.3422110677, 0.3063421845, 0.3109741211, 0.0957735851, 0.2234770656, -0.2359327227, -0.0022666878, 0.21122621, -0.2616118491, 0.1187115461, -0.108066842, -0.0542081632, -0.2392329723, 0.368683368, -0.0343027897, -0.4156426489, 0.1549541354, 0.0680000857, -0.2514642775, 0.3964616954, -0.5492045283, 0.2827777267, -0.3300187588, -0.0136810187, 0.1507814974, 0.0278171469, 0.0675309747, -0.1844966114, -0.0198989455, 0.1929878294, -0.238008976, 0.016569417, 0.1729353517, 0.0911777392, -0.2271543145, 0.1156108007, -0.6257846355, 0.0117682917, -0.2002190053, -0.2311406583, 0.2509530783, -0.9791876674, -0.1357679218, 0.3369642198, 0.1923928857, 0.3068125546, 0.1007225066, -0.0269657131, 0.2047303766, -0.3195359409, 0.0598337986, 0.0448935106, -0.2873681188, -0.0733108297, -0.2740700245, -0.2847241759, -0.0311869755, 0.2559043765, -0.1018761322, -0.1768003851, -0.0819053799, 0.4318944514, 0.1764958501, 0.0096046086, 0.1389524937, 0.1965237707, 0.451700002, -0.315662086, 0.1218507513, 0.2339278013, -0.6177052855, 0.1692655534, 0.1508006305, 0.381404072, 0.0297959987, -0.5918344855, -0.0770729259, -0.2163894922, -0.0099972505, -0.2433726341, -0.0004900478, -0.0917035118, 0.1173524782, -0.0609476268, -0.1818114668, 0.2935878634, -0.239762634, 0.2526282072, 0.0016176275, 0.4414770305, 0.1160954833, 0.2773282528, 0.09160126, 0.1166316122, -0.1280637085, -0.2069752365, 0.0751192197, 0.255584836, 0.1764247268, 0.0543965623, 0.2166910172, 0.5889645815, 0.5203461051, -0.3372326195, 0.1648433656, 0.0310958233, 0.0868470967, -0.2730454504, -0.6699864864, 0.3655446768, -0.1679946482, 0.0393056497, -0.0999943763, -0.1275833398, 0.0478588678, -0.0494696051, -0.5536087155, -0.2255432904, -0.0240117274, 0.2392833829, 0.108180508, 0.1632959992, -0.0988024846, 0.1633230895, 0.3604870737, -0.06163105, -0.2134320587, 0.0010253565, -0.3381300271, -0.2014228553, 0.2981232405, 0.0251020826, 0.6484026313, 0.1195752174, 0.0219309349, 0.0218614079, -0.0329280607, 0.0507323481, 0.1812932789, -0.0765975788, 0.1840254664, -0.0249006655, 0.0772510469, -0.0204037745, 0.1338986456, 0.0042110463, 0.1021784768, 0.1913018525, -0.0672363341, -0.175321728, -0.0205878876, -0.1958996654, 0.2499354929, -0.1517716348, -0.1473196447, -0.1925513744, 0.138766408, 0.2298338413, -0.0979507715, 0.0825342461, 0.072562851, 0.3959182799, -0.2813746929, -0.1204543486, -0.2327215821, -0.1651355177, -0.0439329222, 0.0582944937, 0.3040471673, 0.0584447235, 0.2808158398, 0.0122229513, 0.1155134141, -0.5600786805, -0.5690748692, 0.2730997503, -0.0361540578, 0.3282233477, 0.0467675142, 0.0323232897, -0.0145593612, -0.0297627375, 0.1656499803, 0.0986701772, -0.0658979416, -0.1802346855, -0.0925604552, -0.0544558577, -0.1930687726, -0.2319602966, -0.1192614511, -0.2891087532, 0.0945846736, -0.0122795654, -0.1299389452, -0.0698717535, -0.1466841847, -0.4840102196, 0.0165333841, -0.1905809343, -0.2415480316, -0.4816346169, 0.0181592349, -0.0676406398, -0.1654388458, 0.2375149131, 0.0746866018, 0.2262078226, 0.1856744587, -0.6290555596, -0.4427185059, 0.2132826596, 0.4102083743, -0.042839326, -0.3579455614, 0.2518576682, 0.3507938981, 0.0924571306, 0.1079108119, -0.250656575, -0.2095084935, 0.103497833, 0.1455166638, 0.1050753817, 0.0466657169, 0.2024914026, 0.2713690102, 0.2672966421, -0.0106022237, -0.259262681, 0.2496733218, 0.3086400926, -0.1476705521, -0.1051750332, -0.0706839636, 0.0983030125, 0.0546901487, 0.2802021801, 0.158545047, -0.040040765, -0.2203096002, 0.1459403038, -0.0697494894, -0.3760252595, 0.2310373485, -0.3243932426, 0.0745586008, 0.0075319004, 0.0250149406, -0.1566874087, -0.168808639, 0.1096256748, 0.4860022664, 0.1721515507, 0.0748959258, -0.4938006401, 0.2822023034, -0.0307870358, -0.0671219081, 0.0578047298, 0.2251971513, -0.0989726856, 0.2531058788, -0.0505565405, -0.0780961812, 0.3526752591, -0.4388191104, -0.2535430193, 0.1646853685, -0.0807790756, -0.1770292968, 0.0417565517, -0.2275899947, 0.2609326243, -0.0394290239, 0.6994913816, -0.4218501747, -0.4426476657, 0.2125041485, 0.1483113766, 0.0459274799, -0.2157651186, 0.0577821061, -0.142787084, -0.2082595229, -0.0802277476, -0.0719907805, -0.0230976567, -0.2715197802, -0.0211522393, 0.020742733, -0.0829947963, 0.1620192826, 0.0724597201, 0.0694715381, -0.2162422538, 0.3278149068, 0.0618465655, 0.2373678386, 0.8385234475, 0.3669354618, 0.4238016307, -0.4539070725, -0.2002661824, -0.3074586093, 0.1404233724, 0.4754040539, 0.1818009913, 0.1938070059, -0.4013937712, -0.1982388198, -0.4576761723, 0.0334566161, -0.0146377254, -0.2035964131, -0.6504049897, -0.1959367692, 0.3878289759, 0.2666768432, -0.2156428695, 0.3010459244, 0.2067134082, -0.3962228596, -0.0376157425, 0.0866333246, 1.1362236738, 0.1541607976, -0.0084572351, -0.0583239943, 0.0035234138, 0.5866770744, -0.5484541059, -0.1845047623, -0.2415106595, 0.0617336258, -0.1075116023, -0.0928223953, 0.3966409862, 0.2336058021, -0.2925574481, 0.0492185019, 0.3552227914, 0.4268776476, -0.0629578233, 0.3612100184, -0.38727808, -0.1095210761, 0.0820799097, 0.0446225442, 0.018270148, -0.0338944122, 0.0174151212, -0.0962471664, -0.4845564961, -0.1105835512, -0.1988229156, -0.147032693, -0.1477601677, -0.1986032873, -0.0465157703, -0.2512930036, 0.3982534409, -0.1830011308, 0.6042495966, 0.2235779911, -0.3155656457, 0.0150468862, -0.3381755352, 0.0779401436, 0.0554798506, -0.1502484381, 0.0276568569, -0.0521896891, -0.2410082221, 0.216317445, -0.3543215692, -0.2192085236, -0.2177375406, -0.3468821645, 0.2281311154, -0.3810095489, 0.0384334587, 0.1364470273, -0.1190933138, -0.0622070543, 0.0355881639, 0.1435022205, 0.1044054553, 0.1588050425, 0.0919146538, -0.1232929304, -0.3346908987, -0.0725314766, 0.2149445266, -0.3734185696, -0.1391279399, -0.1238579378, -0.0416871421, -0.221316427, 0.3120868206, 0.3106379807, -0.2099310309, -0.255746603, 0.2785313129, -0.0465658568, 0.1231462955, 0.0968130454, 0.3314029574, -0.086603336, -0.1053831726, -0.2259795368, -0.3583989143, 0.459708035, -0.0959372744, 0.2516570389, -0.1320357025, -0.1511795521, -0.1114138886, 0.0459379964, -0.2501785159, 0.0077517247, -0.0833868459, 0.3174552619, 0.2770189643, 0.1856925786, 0.0533271804, -0.2341252863, 0.0062289564, -0.3642773032, -0.282599926, -0.0541278273, 0.0702402219, 0.2414676398, 0.2422891408, -0.0728975013, -0.0694808438, -0.190712437, 0.0781242996, -0.0753224492, 0.2495035529, -0.0338579267, -0.0230857171, -0.0006320161, 0.1113243476, 0.1121442094, -0.4129161537, 0.3745690882, 0.053790655, 0.3807536066, -0.2464836836, 0.2510094941, 0.0065438701, -0.1073955223, -0.0275437813, 0.2754963934, 0.1092221811, 0.1682250947, 0.3972336352, 0.1339156181, 0.3850400746, 0.237153396, 0.0361913778, 0.2976311445, -0.2054796517, 0.0415228978, 0.1776373684, 0.0924482644, 0.1518761963, -0.2202331424, -0.0682058409, 0.1108689532, 0.1491589248, 0.3016771376, 0.6415423751, 0.1760949194, 0.1237796471, 0.0073743341, 0.8378626704, -0.1525062025, 0.1750000715, 0.490134418, -0.1894548088, 0.174558863, 0.0261000656, 0.2637457252, -0.0283884648, -0.0255243797, 0.0543636903, 0.4527131319, 0.2552824318, -0.0719428062, 0.2010357231, -0.0045445985, 0.219131723, 0.3456186354, 0.1206307933, -0.1490057856, 0.1876649559, 0.0160371177, -0.0012852473, -0.1158375815, -0.1921565384, -0.2676283121, 0.0580604412, 0.136618346, -0.2987565398, -0.2444412261, -0.1760377735, 0.1510766298, -0.2198101282, -0.1055308059, 0.0205702055, -0.183924675, -0.0976750329, -0.0052613667, 0.2264014482, 0.2074508965, -0.0739534274, 0.052483622, 0.0093326, 0.0415032618, -0.1319102943, 0.2515473664, 0.3689050376, 0.0797626227, 0.0693952143, -0.1787044108, -0.0768207163, -0.1176689118, -0.1117127985, 0.1197876856, 0.2376491427, 0.0261113141, -0.6138677001, 0.008003979, 0.1507821828, -0.0364957564, 0.068225801, -0.2131068408, -0.3203725815, -0.1744486392, -0.0148687866, 0.0337445736, -0.1006064862, 0.4719310403, 0.0277818553, 0.0832398906, -0.4517629147, 0.6079746485, 0.0736870021, 0.0292977672, -0.1236181036, 0.0669335946, -0.0384186544, 0.1024047956, 0.1510882676, -0.224122569, -0.1480548531, -0.2354461104, -0.2541487217, 0.0241020788, -0.0268545803, -0.2977940142, 0.0996243656, -0.1311193258, 0.4184387922, 0.4528288841, -0.3329335749, -0.0988679156, 0.3430162072, -0.0347112194, -0.303889662, 0.0299095847, 0.3053986132, 0.0997576863, -0.2045733035, -0.2091864347, 0.1870371103, 0.2736747265, -0.0963461846, -0.2686830163, 0.3653705418, 0.3232783079, 0.1080603972, 0.1666753143, 0.1416621506, 0.3877179921, 0.1206124872, -0.1678466648, 0.0988838896, -0.1411933154, 0.2335267812, 0.3748904467, -0.0797269493, 0.1133271605, -0.1778656393, -0.176347971, -0.0757701099, -0.2164149582, -0.1920706183, 0.1226908341, -0.5357576609, 0.0749020129, -0.2123187631, 0.0791503564, 0.0941986591, 0.1843232512, -0.0873698443, -0.1093452573, -0.0861209258, -0.0823302045, 0.2499011904, -0.0700268745, -0.0132144131, 0.0415442809, 0.0074988473, -0.2809973359, -0.0260133315, -0.6125816703, -0.0600113645, 0.3211246729, -0.0761174336, -0.2102812976, 0.1020276621, 0.3352183998, -0.2270935923, -0.1391261816, 0.1429559439, -0.1870468557, -0.0367395282, -0.0997495577, 0.0759897605 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
> the metadata header might be very long, before reaching the start of the README/dataset card. It might be surprising when you edit the file because the metadata is not shown on top when the dataset card is rendered (dataset page). It also somewhat prevents including large strings like the checksums We can definitely work on this on the hub side to make the UX better
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
66
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw > the metadata header might be very long, before reaching the start of the README/dataset card. It might be surprising when you edit the file because the metadata is not shown on top when the dataset card is rendered (dataset page). It also somewhat prevents including large strings like the checksums We can definitely work on this on the hub side to make the UX better
[ -0.2525478601, -0.004522847, 0.0422584862, 0.2192870975, 0.1078495383, 0.2615562379, 0.3254029155, 0.2054439634, -0.1367204785, 0.0993757993, 0.178440094, 0.1867020875, -0.0159963649, 0.2168878168, -0.1041497812, 0.0664003864, 0.1291632652, 0.040331427, 0.0660883859, 0.0407174565, -0.2711906135, -0.3084928989, -0.0883713365, -0.2363280952, -0.3418317437, 0.1558414251, -0.1023288593, 0.0794935301, -0.4107552767, -0.2224001288, 0.2102196217, 0.3314017653, 0.0823899806, 0.215048641, -0.0001231236, 0.0152525008, 0.6182839274, -0.0485323146, -0.3104630113, -0.1856081188, -0.4505034387, 0.3207576573, -0.0650575608, 0.0100593241, -0.2107751518, -0.0936584473, -0.2375879437, -0.3037691712, -0.0773874596, 0.1012998819, 0.0444971696, 0.0051484676, -0.4160044789, -0.1687512547, 0.0330959782, 0.8936148286, -0.1988702565, 0.0789230391, 0.3599607348, 0.11491438, -0.0309540443, 0.2300138474, 0.0082014734, -0.1346884817, 0.1320378035, 0.0445429124, 0.1627871543, -0.1996754706, 0.3916345537, 0.2508246303, 1.1065526009, -0.312725693, -0.1738735884, -0.1500200033, 0.18719396, 0.0495962426, 0.2381417602, 0.2170524448, 0.0106298318, 0.1982475817, -0.3822771311, -0.3232983053, 0.0090635652, 0.0624960661, -0.0804188475, 0.2336846143, 0.1116820723, 0.1541484147, -0.1175564155, 0.0766076669, 0.4607911706, -0.7217177749, -0.2561197579, -0.117613174, 0.4314760268, -0.3670303524, -0.1327340901, -0.1991816759, 0.3130512536, 0.2609930038, -0.0994269177, -0.0443603881, -0.2038590461, -0.1046342775, 0.6426258683, -0.1599447578, 0.2338841408, 0.5109958649, 0.2782658637, 0.1439881623, 0.2703889906, -0.014881107, 0.0604098551, 0.4577283263, -0.3568862677, 0.1483709961, 0.2336449027, -0.500058651, -0.0868634135, 0.0218686089, -0.0850190222, -0.1798965186, 0.0644369945, 0.0528992973, -0.1026860327, 0.3543027639, -0.2872562408, 0.1227083728, 0.287209928, -0.0495819487, -0.0191136356, 0.0146015678, -0.07879287, 0.3330209255, 0.1980874538, 0.2689503431, 0.2838196158, 0.2883684933, 0.3829471469, 0.0430409759, 0.2239150554, -0.2724370956, 0.0399012007, 0.2089577019, -0.2341768742, 0.1211274043, -0.0935064331, -0.0573230721, -0.2556297481, 0.4163290858, -0.0476059988, -0.4204232097, 0.0555749349, 0.0483931676, -0.342053026, 0.3051314652, -0.5157051682, 0.2184378952, -0.4042596519, -0.0043598195, 0.1280788332, 0.0397927053, 0.0289151147, -0.1501343548, -0.0568789765, 0.2313003242, -0.2466066331, 0.1109435558, 0.263771534, 0.0867196023, -0.1723587066, 0.1362841129, -0.6118916869, 0.038144961, -0.2494051903, -0.3352674246, 0.3074498177, -0.9067510962, -0.1494519264, 0.3540630639, 0.1372427046, 0.1994910985, 0.1451293528, -0.005616019, 0.1458417922, -0.2662974894, 0.0621820129, 0.0161727834, -0.2690818012, -0.039889127, -0.2645442784, -0.3097443581, 0.0254724324, 0.2543651164, -0.0178791396, -0.1049050912, -0.1294218302, 0.3828356862, 0.2038938403, 0.0218905322, 0.0995198563, 0.1730931997, 0.4194051921, -0.4043857157, 0.1228677407, 0.211818397, -0.5747008324, 0.196500361, 0.1510177553, 0.3921766877, 0.0904666632, -0.5748607516, -0.1295394152, -0.2214393765, 0.022971252, -0.1632959098, -0.0176558848, -0.003986638, 0.1153919771, -0.0626369566, -0.1773686409, 0.2601028979, -0.2354895175, 0.2049116939, 0.0070343018, 0.5532865524, 0.1208801121, 0.223470822, 0.0995251685, 0.0859158412, -0.1156590432, -0.1725366861, 0.0311976876, 0.2328219265, 0.1568132788, 0.0949266851, 0.3202737272, 0.5157931447, 0.5151196122, -0.3858295381, 0.1897212267, 0.0689925998, 0.057934463, -0.2653342783, -0.6614839435, 0.3766142726, -0.2193344384, -0.0365726352, -0.1329127699, -0.1853914559, -0.0119763361, -0.0271138009, -0.4595808685, -0.1980406493, -0.0551998764, 0.3902987838, 0.1035208628, 0.2205668539, -0.1320798993, 0.1005303189, 0.3477065861, -0.0434069894, -0.1690254807, -0.0265486147, -0.2705813646, -0.1837725788, 0.3264893293, -0.0888948962, 0.7185099721, 0.1131923795, 0.0744253919, 0.0407849476, -0.0585343912, 0.0252181608, 0.1874706745, -0.1067245379, 0.1525639445, -0.0082073947, 0.0102778291, -0.0359072909, 0.1247931048, -0.0660186037, 0.220122695, 0.2535126805, -0.0889561251, -0.2743714452, -0.0874539316, -0.2149308473, 0.218304649, -0.0880998746, -0.1652082056, -0.1622233689, 0.1102951691, 0.2573668361, -0.0689136013, 0.0974058211, 0.0755448863, 0.4247821271, -0.2427298874, -0.2073094994, -0.2257246673, -0.2101555914, -0.0617536083, 0.0435459688, 0.2831184566, 0.1004352719, 0.2257661223, 0.0065849321, 0.1618758291, -0.4886366427, -0.5541843772, 0.2728199959, 0.0284700375, 0.228467688, 0.009736849, -0.0396347158, -0.011821067, 0.0202934109, 0.0922371075, 0.1108258516, -0.0412648022, -0.2017135173, -0.1290153265, -0.0792836323, -0.178365171, -0.2368694842, -0.0142040337, -0.2797546089, 0.080818899, -0.0592837445, -0.1162353531, -0.1147873774, -0.0783709958, -0.4636089504, 0.008330347, -0.2500187755, -0.2498619705, -0.5803271532, 0.0595148467, -0.0640817806, -0.1609151512, 0.2584357858, 0.0595845692, 0.208043918, 0.1807612777, -0.6640052199, -0.465025425, 0.1876858473, 0.3958700597, -0.0891815349, -0.34398669, 0.2664585412, 0.2400681674, 0.0967698321, 0.1208003461, -0.2726141512, -0.2422388196, 0.1333174258, 0.1515718699, 0.0658953637, 0.0056432984, 0.1735861748, 0.2237872928, 0.2377058119, -0.0388110951, -0.3151889145, 0.2118248791, 0.369985044, -0.1415924877, -0.0502197817, 0.00216087, 0.1966557801, -0.0544296317, 0.3009549081, 0.0862972289, -0.0443703681, -0.2646510303, 0.1769749671, -0.0263586659, -0.3487238288, 0.2484573871, -0.3596026003, 0.0662859529, 0.0003389373, 0.0461350568, -0.1777664721, -0.1593332887, 0.1023743376, 0.476426512, 0.1874032617, 0.0132777132, -0.4853207171, 0.2206536382, 0.0416279435, -0.0506807491, 0.1035951152, 0.3425191343, -0.0880468935, 0.3283884525, -0.0483531281, 0.0019581108, 0.3977074027, -0.5547660589, -0.1512909085, 0.2068853527, -0.0199539438, -0.1675738245, 0.0433880724, -0.2306954861, 0.2407384217, -0.0335805714, 0.7493346334, -0.2454121709, -0.3976527154, 0.2624887824, 0.0472019538, 0.0689900294, -0.3046735525, 0.002068446, -0.0686509162, -0.1840581447, 0.0205233488, -0.0332363769, -0.0811852217, -0.3980735242, -0.0350397006, -0.0084087169, -0.1391747445, 0.1890591383, 0.0623945259, 0.0404280946, -0.0366967693, 0.3195935488, 0.0634866953, 0.1492068022, 0.7668976188, 0.3837336302, 0.4161521792, -0.4543065727, -0.1058476716, -0.3246277869, 0.117213577, 0.4732835889, 0.2346207649, 0.1851587296, -0.4726127982, -0.1919907182, -0.4868244529, 0.0857784972, -0.0738227144, -0.2552902102, -0.6383148432, -0.1375492513, 0.3816950023, 0.2497120798, -0.2206012309, 0.2695958614, 0.147896409, -0.3607655466, -0.002204092, 0.097641781, 1.1725594997, 0.1692668051, 0.0009972177, -0.1723679155, -0.1150945872, 0.6183503866, -0.5301772356, -0.1935575902, -0.2344581485, -0.005548168, -0.0821475536, -0.1214785278, 0.4260928631, 0.2941666842, -0.3031458557, 0.013254676, 0.362634033, 0.5022873282, 0.0015542802, 0.3923135996, -0.3524214327, -0.0778430402, 0.1230334789, 0.0153682763, -0.0116899097, -0.0573148653, 0.0055769319, -0.0507157743, -0.4263550043, -0.0577226505, -0.1792788357, -0.1105889902, -0.0933204368, -0.212717995, -0.070413515, -0.2567591965, 0.4135213196, -0.1320096403, 0.6449606419, 0.2932078838, -0.3419634402, 0.0642690137, -0.3165004253, 0.0748281777, 0.0079553081, -0.1629868746, -0.0343962274, -0.015247588, -0.2946480811, 0.212536782, -0.3118207753, -0.1944688857, -0.225452736, -0.2912431061, 0.1996214837, -0.3476275504, 0.1078000441, 0.168445006, -0.1384898424, 0.0073622391, 0.0170525238, 0.1354553401, 0.1188471317, 0.2110504508, 0.0802776366, -0.1884654015, -0.3526631892, 0.0152025335, 0.2939302027, -0.3768507242, -0.2056528777, -0.1903233677, -0.0039933594, -0.2033452392, 0.3453969359, 0.1919656247, -0.1213426664, -0.2528532743, 0.1917997003, -0.0172011163, 0.0873601288, 0.0045247474, 0.3205135167, -0.0214486048, -0.063207157, -0.2115225047, -0.3497402072, 0.3807051182, -0.0916269273, 0.2919464409, -0.0683972836, -0.0786667392, -0.0614301451, -0.0062390035, -0.2235074043, 0.0218433365, -0.0663751364, 0.2912396491, 0.1489284933, 0.1706653684, -0.018210886, -0.2802800238, -0.0199937541, -0.2684747577, -0.2860018611, -0.0397210717, 0.0757860392, 0.2574982345, 0.2959871888, 0.0074740811, -0.1036049351, -0.209045589, 0.0996102542, -0.0622610003, 0.2146570832, -0.0232099891, -0.0220783371, 0.0488272421, 0.1715368629, 0.0709531158, -0.4105067253, 0.3914173245, 0.0719703287, 0.4327597618, -0.2352029979, 0.2946350873, -0.0152054392, -0.0612213872, -0.0553894117, 0.2016709596, 0.0974111035, 0.171972096, 0.3632380664, 0.1060381606, 0.3981845081, 0.2101712078, -0.0381797217, 0.2498977333, -0.2057382315, -0.0251284763, 0.1952166408, 0.073071152, 0.1710453928, -0.202187106, -0.0747888014, 0.2264945805, 0.1496923268, 0.277975142, 0.6407282352, 0.2312526852, 0.1307518482, 0.0229666382, 0.7801966071, -0.1150161698, 0.1825210899, 0.4128966033, -0.130276978, 0.1237219423, 0.0059404746, 0.2632151842, -0.0892689526, -0.0481152125, 0.1795891523, 0.495698601, 0.2998677194, -0.013827662, 0.27154845, -0.039838288, 0.2398342937, 0.3696199656, 0.1130827963, -0.0879412591, 0.1374157518, -0.0684911311, -0.0868760347, -0.0498063117, -0.2067907304, -0.3668954372, 0.0545096174, 0.136832431, -0.4162169099, -0.1870284826, -0.2311842293, 0.1607759297, -0.2099113464, -0.0396641009, -0.0382209979, -0.1647682637, -0.1278602034, 0.0273556132, 0.1743176728, 0.2659270167, -0.076525636, -0.0016898286, 0.0405783579, -0.0415139906, -0.147274524, 0.3161902428, 0.37930426, 0.0466433913, 0.0740568861, -0.1726815104, -0.1315366328, -0.0742811114, -0.1237085462, 0.103195928, 0.2452100515, 0.0586136915, -0.5139549375, 0.0472519808, 0.1570423692, 0.0115787946, 0.0798380822, -0.197862044, -0.2855716646, -0.2562289536, 0.0077024079, 0.1073616371, -0.0825067684, 0.4870182872, 0.0208832379, 0.0538884588, -0.4181520045, 0.6692823768, 0.0191907715, -0.0039513744, -0.0703547671, 0.0425694361, -0.0651441813, 0.1414285898, 0.1674900055, -0.1930683255, -0.1589140892, -0.2823213637, -0.2321419716, 0.115205206, 0.1104356423, -0.2653420269, 0.1417543739, -0.0867989361, 0.3583486378, 0.424203366, -0.3741682172, -0.1010288298, 0.2467051893, 0.032042183, -0.2766409516, -0.0365542024, 0.1668134481, 0.0822073817, -0.1887584627, -0.1787743419, 0.1507261544, 0.4506453276, -0.134792462, -0.2999207377, 0.2830165327, 0.3178569078, 0.0853162408, 0.2199992687, 0.1397493482, 0.5187576413, 0.1464263201, -0.0787926167, 0.079482682, -0.1530013978, 0.2617835402, 0.3189048469, -0.058758501, 0.1414272189, -0.2210558653, -0.0532722324, -0.017274389, -0.2511198521, -0.1788023561, 0.1776338071, -0.5305959582, -0.0113270134, -0.2560065389, 0.0917209908, 0.0984131172, 0.213708967, -0.0587557182, -0.098405771, -0.0441072285, -0.0401412286, 0.2684294879, -0.0176754817, -0.0518156551, -0.0155504942, 0.0341790654, -0.337526679, -0.027025288, -0.5848042965, -0.0310093705, 0.3600200415, -0.0691965669, -0.1191707402, 0.0464422517, 0.3520837128, -0.1510270834, -0.1741789281, 0.1778115928, -0.2246719003, -0.0263680257, -0.111155428, 0.0208938774 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
Tensorflow Datasets catalog includes a community catalog where you can find and use HF datasets (see [here](https://www.tensorflow.org/datasets/community_catalog/huggingface)). FYI I noticed today that they are using the exported dataset_infos.json files from github to get the metadata (see their code [here](https://github.com/tensorflow/datasets/blob/a482f01c036a10496f5e22e69a2ef81b707cc418/tensorflow_datasets/scripts/documentation/build_community_catalog.py#L261))
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
39
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw Tensorflow Datasets catalog includes a community catalog where you can find and use HF datasets (see [here](https://www.tensorflow.org/datasets/community_catalog/huggingface)). FYI I noticed today that they are using the exported dataset_infos.json files from github to get the metadata (see their code [here](https://github.com/tensorflow/datasets/blob/a482f01c036a10496f5e22e69a2ef81b707cc418/tensorflow_datasets/scripts/documentation/build_community_catalog.py#L261))
[ -0.1930968761, -0.0408927612, 0.0171367414, 0.1483712047, 0.0837191492, 0.2352292389, 0.4617837965, 0.3679298759, -0.1482816488, 0.1370883435, 0.0799530819, 0.0977993309, -0.0425133295, 0.1569617093, -0.0325315818, -0.1178674698, 0.0716281459, 0.084002845, 0.0171172768, -0.1026257873, -0.2108215839, -0.3138795197, -0.0573207475, -0.2419695854, -0.2407097369, 0.2100919038, -0.0826089084, -0.0266863424, -0.2046020031, -0.0941647664, 0.2508800924, 0.2647181451, 0.1250739098, 0.3568687141, -0.0001222372, 0.1595203131, 0.4303729236, -0.0048716501, -0.2071066052, -0.3389703035, -0.2597807944, 0.2637268007, -0.1862555146, -0.0072159665, -0.265596509, -0.0657428354, -0.1742952317, -0.2730126977, 0.0540482365, 0.2508940101, 0.0341713913, 0.2917208672, -0.3452797532, -0.0460386761, -0.0394300818, 0.8040383458, -0.2310285121, 0.0436120182, 0.1752561033, -0.0227117538, 0.0732167289, 0.3317811489, 0.0840109661, -0.0748221204, 0.1333269179, 0.0930224434, 0.1514274776, -0.2897087336, 0.3353881538, 0.4625918567, 0.9551768899, -0.2319930345, -0.1840749383, -0.1619187742, 0.1765869856, -0.082329616, 0.1787540168, 0.2266600877, -0.0300181322, 0.1121811569, -0.2798976004, -0.2696775496, -0.1554618627, 0.1911628246, -0.2069739997, 0.1905491352, 0.0602020063, 0.1731401235, -0.150634706, 0.1130905971, 0.3398446739, -0.6478117108, -0.0235281959, 0.0077916947, 0.221053049, -0.4013287127, -0.1160967425, -0.6053965688, 0.257347703, 0.0512127839, -0.154563114, 0.0001488236, -0.3753091097, -0.070349358, 0.5297185779, -0.1863649487, 0.1865561306, 0.5259381533, 0.23312141, 0.0960349962, 0.2218010724, 0.0031763939, 0.0176596791, 0.4236889482, -0.4282912612, 0.0247691981, 0.219048366, -0.299341172, -0.1377867162, 0.12369591, -0.2629763186, -0.1937132627, 0.0605255254, 0.1389843971, -0.1903847903, 0.3507858217, -0.2152279317, 0.1436672658, 0.1995144933, -0.0806106552, -0.0641854331, 0.0483272187, 0.0200265627, 0.2545834184, 0.1653649956, 0.1177988723, 0.2901414037, 0.2367286235, 0.4559174478, 0.0681142285, 0.2697551548, -0.2989704609, -0.0130411154, 0.3570165634, -0.2557719648, 0.06163802, -0.0130515015, -0.0606037229, -0.2182208598, 0.3738618195, -0.093430683, -0.4933844805, -0.0475795791, 0.0746927932, -0.221382305, 0.2663303316, -0.5500369072, 0.2959047556, -0.3618080914, 0.2120882124, 0.1310444474, -0.0638472289, -0.1128620803, -0.17222853, -0.0023028688, 0.0976131409, -0.355414331, 0.0895126164, 0.24158746, 0.141207844, -0.2171728909, 0.2636355162, -0.5941981077, 0.1387079507, -0.1592743695, -0.2609983981, 0.3432137668, -0.8712714314, -0.1100458801, 0.2763181925, 0.1221798062, 0.2301325798, 0.0018487846, -0.060817074, 0.1014334559, -0.1660168171, 0.0243685767, 0.0041148621, -0.1762381196, -0.1874900013, -0.2242811173, -0.246251896, 0.0196796972, 0.3388541341, 0.1591477394, -0.0542471968, -0.2054230422, 0.4471400976, 0.1881512105, -0.0602033064, 0.0240200125, 0.246002987, 0.4291906059, -0.1845162213, 0.129652217, 0.2087482065, -0.5540626645, 0.2240835577, 0.1663805842, 0.3638637364, 0.223110199, -0.5873088837, 0.0096066175, -0.1301366091, 0.1181784868, -0.1861404479, -0.0187666304, -0.0961216092, -0.0250548851, 0.0001555321, -0.3404201567, 0.2665948868, -0.4510499537, 0.2357602417, 0.0045180279, 0.6286014318, 0.1515498012, 0.28352952, 0.0875437334, 0.1167590842, -0.2367016077, -0.2827850282, 0.0671130642, 0.1489973217, -0.0532050207, 0.1615291387, 0.0903540254, 0.6129931211, 0.5335848927, -0.2884146571, 0.101916492, 0.0000828451, -0.0369455889, -0.2884543538, -0.5666667819, 0.4422420859, -0.0559045598, -0.0029908393, -0.0825814605, -0.2270183414, -0.0119047472, -0.0730720758, -0.425663054, -0.0976899415, -0.0030438986, 0.2948183715, 0.0984265432, 0.170413211, -0.4284433424, 0.0354533456, 0.5133137703, -0.0624063909, -0.2216020972, 0.0383287854, -0.2280472219, -0.1407341212, 0.3491387367, -0.1897025704, 0.7110165954, 0.0155703835, 0.0787201971, 0.161621213, -0.1448248923, 0.014492739, 0.1541190445, -0.2103214413, 0.2163841873, -0.0064031049, -0.0052792365, 0.0875519216, 0.0183210168, -0.0013100783, 0.1640999317, 0.2196376622, -0.1486720592, -0.1519058496, -0.0950850993, -0.2850100696, 0.1047465876, 0.0338385142, -0.1715429276, -0.1407743096, 0.0386833102, 0.3406382799, -0.0305807032, 0.0886433497, 0.1808142215, 0.4147258103, -0.186827749, -0.2315228432, -0.176595822, -0.092550084, -0.0487232506, 0.0531849451, 0.1743243635, -0.0626505315, 0.2001692802, 0.0750692636, 0.0259981714, -0.450951606, -0.6469026804, 0.2413496226, -0.0558760203, 0.09965083, -0.0629616454, 0.1520870626, -0.1433279216, -0.091005303, 0.1308472157, 0.045812957, 0.00522464, -0.1650265604, -0.1705230623, -0.0297836531, -0.1498759538, -0.3198329806, -0.0438084453, -0.2606501579, 0.1365998387, -0.0259411372, -0.0753491744, 0.1221206486, -0.0366969034, -0.2608629167, 0.05173048, -0.2346722335, -0.2944400012, -0.5804103017, 0.0650939271, -0.0839865804, -0.2328499705, 0.227893129, 0.0048946859, 0.2839175165, 0.2167742252, -0.7857511044, -0.4269506931, 0.2274854183, 0.3932648301, -0.0797619298, -0.3337606788, 0.2175690979, 0.0189387277, 0.1448349357, 0.0404928103, -0.1132279783, -0.126237452, 0.2549746335, 0.116617769, 0.177706331, 0.1584162116, 0.3040888309, 0.5982828736, 0.21277982, -0.2492616475, -0.2869091928, 0.0741490498, 0.3733222783, -0.0578997321, -0.1036263332, 0.1210701615, 0.2905965447, 0.1301941127, 0.2276149243, -0.0424820222, -0.0253246725, -0.1843277216, 0.2878121436, -0.0003596682, -0.3354502618, 0.2809138596, -0.2658845484, 0.1301483065, 0.0553661361, 0.078331694, -0.2011680603, -0.1475128829, 0.1185236424, 0.5334508419, 0.1934815794, -0.0243196413, -0.4205852747, 0.1824891865, -0.0540541746, -0.0124938264, 0.0119706169, 0.4162621796, -0.1833326221, 0.3915783465, -0.0449757203, 0.0244808402, 0.4954372048, -0.4900004268, -0.2309019417, 0.0876850262, -0.1500861198, -0.275582999, -0.0005393247, -0.2351945639, 0.1088939533, -0.0357809179, 0.714605093, -0.1714433134, -0.446115762, 0.3584286869, -0.0239318293, 0.0369919017, -0.2725662589, 0.0437953249, -0.1037569344, -0.120465897, -0.0888084993, -0.0868724287, -0.104223527, -0.3072613776, -0.0233936496, 0.005066304, -0.0643905997, 0.2232230753, 0.0080204727, -0.107506454, 0.1791814864, 0.2672230303, 0.0745629147, 0.0570713393, 0.7683216929, 0.278785497, 0.314334631, -0.6388043165, -0.1915096641, -0.1226911023, 0.1015788093, 0.4719535112, 0.0990489498, 0.1939386874, -0.4078730047, -0.1013319045, -0.4935394228, 0.3810866773, 0.1294292212, -0.0692940354, -0.5756582022, -0.1928722709, 0.4010971189, 0.1551485509, -0.1105715856, 0.365555793, 0.1217155159, -0.317350626, 0.052969262, 0.0935768783, 1.0190944672, 0.098437883, -0.019140726, 0.0323399566, -0.0240784008, 0.7626817226, -0.7436240315, -0.1226720065, -0.1789370328, -0.1403669864, -0.1674902588, -0.1542070657, 0.358838439, 0.2735331655, -0.1333578378, 0.0073495596, 0.4127990901, 0.5504685044, 0.0347287767, 0.4447631538, -0.2339719385, -0.1044213399, 0.0695584565, 0.0067970701, -0.07718537, 0.1618433893, -0.0560523234, -0.0906593651, -0.3460764885, 0.0078173727, -0.169071734, -0.0909083784, -0.2417036593, -0.1728607416, 0.0872502699, -0.1962813437, 0.4290563166, -0.0541515127, 0.7328569889, 0.2616309226, -0.3537163436, 0.0141433571, -0.2835873663, 0.0827335492, 0.0622905754, -0.189725861, 0.1300766617, -0.0606775396, -0.2676477432, 0.2392782122, -0.2020996511, -0.2048059553, -0.2314817756, -0.3202234507, 0.0444658212, -0.193914175, 0.1685094982, 0.3031593263, -0.1964687854, 0.1422062963, 0.0330128781, 0.0679428279, 0.0688343719, 0.0832348615, 0.0321552008, -0.2075732946, -0.2827956975, 0.0301040523, 0.3069542944, -0.2673638463, -0.0484666936, -0.1018606052, -0.0014871414, -0.1209172606, 0.282253325, 0.2937491238, -0.0604586825, -0.3265697658, 0.1896889955, 0.044731576, -0.0043942425, -0.0158437937, 0.210566625, -0.1492636055, -0.1115223616, -0.1765299737, -0.3116205931, 0.3173925877, -0.1907942742, 0.3289590478, -0.0208458491, 0.1268782616, -0.0222641788, -0.0225627534, -0.2249743342, 0.0259829033, 0.0214656517, 0.2191219479, 0.1504626721, 0.1632658541, 0.1106647104, -0.2850713432, 0.0087440424, -0.2767826617, -0.388858974, -0.0695467219, -0.0093608126, 0.2391610146, 0.2543729544, -0.0418305546, -0.0842956901, -0.198099345, -0.0400777943, -0.0296720192, 0.2551385164, -0.0188497268, -0.0319160409, 0.2135153413, 0.1396302134, 0.1520186216, -0.3041119576, 0.2478770614, 0.0895765349, 0.5130175948, -0.2197096944, 0.2576370835, 0.0691109374, -0.0537182577, -0.2155009508, 0.1337019652, -0.0301996674, 0.0489875376, 0.3481249809, 0.029604163, 0.3693278134, 0.0175069701, -0.0111124003, 0.2439808249, -0.346413523, 0.0912344828, 0.2723570168, 0.0705668926, 0.1690095663, -0.1141943783, 0.0332988799, 0.3027026951, 0.1687573195, 0.2151171267, 0.6353744864, 0.3339847624, 0.1169929728, 0.011214803, 0.6143178344, -0.2630317807, 0.2003491819, 0.3689909279, -0.216924265, 0.1441948861, -0.0748417303, 0.2929740846, -0.1136857793, -0.0806651935, 0.295101285, 0.4352551997, 0.2201420367, -0.1054160148, 0.4833029211, -0.036266163, 0.049296584, 0.4084829092, -0.074744381, 0.0727617815, 0.0691110045, -0.0553828701, -0.0294113681, -0.1421809793, -0.1381497085, -0.2550266385, -0.0135847339, 0.1223759055, -0.4670752883, -0.0953773558, -0.1891651899, 0.1482395083, -0.0321046934, -0.1838476658, -0.1543605775, -0.0047874935, -0.1795396209, 0.1162127554, 0.1740572453, 0.1824816018, -0.0290128253, 0.0935222507, 0.0538538545, -0.0882742256, -0.1370198131, 0.1660704315, 0.3474875391, -0.0315210968, -0.0026721589, -0.109640874, 0.0616520755, 0.0079587717, -0.058814656, 0.1644385308, 0.1948462129, 0.042124819, -0.5085411072, 0.0496292934, 0.1463761479, 0.0107356263, 0.096554026, -0.2307773381, -0.217280075, -0.4990132451, 0.0591287352, 0.0645822212, -0.0574640743, 0.4574721456, -0.1010092497, 0.0294854231, -0.3773113787, 0.8060503006, 0.0263504889, 0.0991489291, -0.0874389336, 0.0357469916, -0.2146472782, 0.153262645, 0.1522902846, -0.0438760445, -0.1177684888, -0.1858362556, -0.1937509477, 0.0583224855, 0.0882924423, -0.1330680251, 0.2204923928, 0.0295309108, 0.3773762882, 0.3697669506, -0.3032003045, -0.4840949178, 0.2535093427, -0.010011456, -0.321439594, -0.0453679375, -0.0792540684, 0.0925313756, -0.1333144307, -0.0842309818, 0.1883534789, 0.2720585465, -0.1555367857, -0.3787904978, 0.3840656877, 0.3757873476, 0.1496523172, 0.1991284937, 0.0569059104, 0.3709400594, 0.1862776577, -0.1205776781, 0.1172808707, -0.0927925259, 0.109031491, 0.3445883393, -0.152767241, 0.1934961379, -0.1514911801, -0.2614707649, -0.0019563073, -0.2555558681, -0.0187186114, -0.1288880408, -0.4508125186, 0.0215157252, -0.2755329907, 0.0956027657, 0.1892374009, 0.3912439048, -0.0188085288, -0.144668892, -0.0262684338, -0.0500368923, 0.3349223733, -0.2741718292, -0.0483028591, -0.0054821232, 0.0006856741, -0.3220480084, -0.0190594159, -0.738163352, -0.1095609218, 0.3931807578, -0.1401571035, -0.2031903565, -0.0233824719, 0.381734252, -0.0617253035, -0.168791458, 0.1729902476, -0.2691994309, -0.0944226757, -0.1096698344, -0.0117162168 ]
https://github.com/huggingface/datasets/issues/3505
cast_column function not working with map function in streaming mode for Audio features
Hi! This is probably due to the fact that `IterableDataset.map` sets `features` to `None` before mapping examples. We can fix the issue by passing the old `features` dict to the map generator and performing encoding/decoding there (before calling the map transform function).
## Describe the bug I am trying to use Audio class for loading audio features using custom dataset. I am able to cast 'audio' feature into 'Audio' format with cast_column function. On using map function, I am not getting 'Audio' casted feature but getting path of audio file only. I am getting features of 'audio' of string type with load_dataset call. After using cast_column 'audio' feature is converted into 'Audio' type. But in map function I am not able to get Audio type for audio feature & getting string type data containing path of file only. So I am not able to use processor in encode function. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset, Audio from transformers import Wav2Vec2Processor def encode(batch, processor): print("Audio: ",batch['audio']) batch["input_values"] = processor(batch["audio"]['array'], sampling_rate=16000).input_values return batch def print_ds(ds): iterator = iter(ds) for d in iterator: print("Data: ",d) break processor = Wav2Vec2Processor.from_pretrained(pretrained_model_path) dataset = load_dataset("custom_dataset.py","train",data_files={'train':'train_path.txt'}, data_dir="data", streaming=True, split="train") print("Features: ",dataset.features) print_ds(dataset) dataset = dataset.cast_column("audio", Audio(sampling_rate=16_000)) print("Features: ",dataset.features) print_ds(dataset) dataset = dataset.map(lambda x: encode(x,processor)) print("Features: ",dataset.features) print_ds(dataset) ``` ## Expected results map function not printing Audio type features be used with processor function and getting error in processor call due to this. ## Actual results # after load_dataset call Features: {'sentence': Value(dtype='string', id=None), 'audio': Value(dtype='string', id=None)} Data: {'sentence': 'और अपने पेट को माँ की स्वादिष्ट गरमगरम जलेबियाँ हड़पते\n', 'audio': 'data/0116_003.wav'} # after cast_column call Features: {'sentence': Value(dtype='string', id=None), 'audio': Audio(sampling_rate=16000, mono=True, _storage_dtype='string', id=None)} Data: {'sentence': 'और अपने पेट को माँ की स्वादिष्ट गरमगरम जलेबियाँ हड़पते\n', 'audio': {'path': 'data/0116_003.wav', 'array': array([ 1.2662281e-06, 1.0264218e-06, -1.3615092e-06, ..., 1.3017889e-02, 1.0085563e-02, 4.8155054e-03], dtype=float32), 'sampling_rate': 16000}} # after map call Features: None Audio: data/0116_003.wav Traceback (most recent call last): File "demo2.py", line 36, in <module> print_ds(dataset) File "demo2.py", line 11, in print_ds for d in iterator: File "/opt/conda/lib/python3.7/site-packages/datasets/iterable_dataset.py", line 341, in __iter__ for key, example in self._iter(): File "/opt/conda/lib/python3.7/site-packages/datasets/iterable_dataset.py", line 338, in _iter yield from ex_iterable File "/opt/conda/lib/python3.7/site-packages/datasets/iterable_dataset.py", line 192, in __iter__ yield key, self.function(example) File "demo2.py", line 32, in <lambda> dataset = dataset.map(lambda x: batch_encode(x,processor)) File "demo2.py", line 6, in batch_encode batch["input_values"] = processor(batch["audio"]['array'], sampling_rate=16000).input_values TypeError: string indices must be integers ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-4.14.243 with-debian-bullseye-sid - Python version: 3.7.9 - PyArrow version: 6.0.1
42
cast_column function not working with map function in streaming mode for Audio features ## Describe the bug I am trying to use Audio class for loading audio features using custom dataset. I am able to cast 'audio' feature into 'Audio' format with cast_column function. On using map function, I am not getting 'Audio' casted feature but getting path of audio file only. I am getting features of 'audio' of string type with load_dataset call. After using cast_column 'audio' feature is converted into 'Audio' type. But in map function I am not able to get Audio type for audio feature & getting string type data containing path of file only. So I am not able to use processor in encode function. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset, Audio from transformers import Wav2Vec2Processor def encode(batch, processor): print("Audio: ",batch['audio']) batch["input_values"] = processor(batch["audio"]['array'], sampling_rate=16000).input_values return batch def print_ds(ds): iterator = iter(ds) for d in iterator: print("Data: ",d) break processor = Wav2Vec2Processor.from_pretrained(pretrained_model_path) dataset = load_dataset("custom_dataset.py","train",data_files={'train':'train_path.txt'}, data_dir="data", streaming=True, split="train") print("Features: ",dataset.features) print_ds(dataset) dataset = dataset.cast_column("audio", Audio(sampling_rate=16_000)) print("Features: ",dataset.features) print_ds(dataset) dataset = dataset.map(lambda x: encode(x,processor)) print("Features: ",dataset.features) print_ds(dataset) ``` ## Expected results map function not printing Audio type features be used with processor function and getting error in processor call due to this. ## Actual results # after load_dataset call Features: {'sentence': Value(dtype='string', id=None), 'audio': Value(dtype='string', id=None)} Data: {'sentence': 'और अपने पेट को माँ की स्वादिष्ट गरमगरम जलेबियाँ हड़पते\n', 'audio': 'data/0116_003.wav'} # after cast_column call Features: {'sentence': Value(dtype='string', id=None), 'audio': Audio(sampling_rate=16000, mono=True, _storage_dtype='string', id=None)} Data: {'sentence': 'और अपने पेट को माँ की स्वादिष्ट गरमगरम जलेबियाँ हड़पते\n', 'audio': {'path': 'data/0116_003.wav', 'array': array([ 1.2662281e-06, 1.0264218e-06, -1.3615092e-06, ..., 1.3017889e-02, 1.0085563e-02, 4.8155054e-03], dtype=float32), 'sampling_rate': 16000}} # after map call Features: None Audio: data/0116_003.wav Traceback (most recent call last): File "demo2.py", line 36, in <module> print_ds(dataset) File "demo2.py", line 11, in print_ds for d in iterator: File "/opt/conda/lib/python3.7/site-packages/datasets/iterable_dataset.py", line 341, in __iter__ for key, example in self._iter(): File "/opt/conda/lib/python3.7/site-packages/datasets/iterable_dataset.py", line 338, in _iter yield from ex_iterable File "/opt/conda/lib/python3.7/site-packages/datasets/iterable_dataset.py", line 192, in __iter__ yield key, self.function(example) File "demo2.py", line 32, in <lambda> dataset = dataset.map(lambda x: batch_encode(x,processor)) File "demo2.py", line 6, in batch_encode batch["input_values"] = processor(batch["audio"]['array'], sampling_rate=16000).input_values TypeError: string indices must be integers ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-4.14.243 with-debian-bullseye-sid - Python version: 3.7.9 - PyArrow version: 6.0.1 Hi! This is probably due to the fact that `IterableDataset.map` sets `features` to `None` before mapping examples. We can fix the issue by passing the old `features` dict to the map generator and performing encoding/decoding there (before calling the map transform function).
[ -0.2622295916, -0.2025067061, -0.0266618859, 0.3577167988, 0.6027312875, -0.2296938449, 0.3419704735, 0.3029460907, 0.2976568043, -0.0616048686, -0.0520022623, 0.7353785634, -0.1707476377, 0.1945964545, -0.0731458217, -0.2837214768, 0.1454188973, 0.1953483373, -0.2825004458, -0.127344951, -0.4571537375, 0.2662766278, -0.5858390927, 0.2607055008, 0.1315928251, 0.1269850433, 0.3911375403, -0.0558037199, -0.0058510061, 0.0119489599, 0.0709325075, -0.3035012484, 0.2639532089, 0.3384833336, -0.0001273209, -0.0100576309, 0.2654282749, -0.1152282655, 0.0421555676, -0.1628180742, -0.5065383315, 0.0108540226, -0.1724242419, -0.2680976391, -0.2423132062, -0.0755803958, -0.2448242158, -0.3864841461, 0.1261117458, 0.4162017405, 0.0513847247, -0.0125745246, 0.0004480713, 0.2920204103, -0.0410075709, 0.2500534952, -0.1632403284, -0.2827578485, 0.4039221406, 0.279926002, 0.1716989279, 0.4097904861, -0.3054203093, -0.1890188903, 0.2012017816, 0.0870052353, 0.0525160991, -0.3052862287, 0.2437958568, 0.0800206363, 0.7388802171, -0.2157376707, -0.0468572415, 0.1816223115, -0.0824645013, -0.2008294463, 0.3370785713, 0.0756121203, -0.0204868913, 0.1056833789, -0.3921615481, 0.4437983632, 0.1107806489, 0.2740787268, 0.2294822484, 0.1720711142, -0.1795600057, 0.2363817245, -0.0695681944, -0.2040259689, -0.0221352056, -0.1341204792, 0.0279267356, 0.4370914996, -0.3593991995, -0.2515300214, -0.0444705002, -0.0032966344, -0.3157378137, 0.0519563667, 0.021635469, 0.3925277591, 0.1234941185, 0.0938352346, 0.2280021161, -0.0510586873, 0.0008995919, 0.3334599435, 0.1110182032, 0.1315761507, -0.369762212, -0.1317853332, -0.0382161476, 0.0798168257, 0.0605840944, 0.1862514168, 0.0260364562, -0.2497038394, 0.0764499158, -0.1182753071, -0.1678246111, 0.007087193, 0.2809309065, 0.4877814353, 0.1833332777, 0.4044605494, 0.1203614026, 0.2574442029, -0.003140541, -0.1776709855, 0.084089458, -0.1287066042, 0.0117293624, -0.0060197143, 0.0182060227, 0.2866126001, 0.241456449, 0.0980078653, 0.1072001606, -0.2441666573, -0.1221687496, -0.3176814914, 0.2119736522, 0.0030418367, -0.2090203315, 0.1638396233, -0.0101242345, 0.2265066355, -0.0471812375, 0.2381007671, -0.3662847877, -0.2675878108, -0.0933961272, -0.0010761111, 0.1161946282, 0.3221942782, -0.153629452, 0.0612341426, 0.3623495996, -0.6997804642, 0.0954069942, -0.4201663435, -0.4355264008, -0.1637337357, 0.254259944, -0.1953827292, -0.0231240746, -0.093897216, -0.2415256351, 0.0905788615, 0.4225088358, 0.1920286417, -0.1534345001, 0.2236082405, -0.3049719632, 0.1352201253, 0.9009023309, -0.4058738053, -0.4501795173, 0.2768710256, 0.2986757457, 0.1677737981, 0.0994963124, -0.0011042524, 0.3990190923, -0.2763808072, -0.1823785305, 0.4065683186, 0.1563875526, 0.3689536452, -0.0520186238, -0.0952974781, 0.2213768959, 0.0388220064, -0.0506979935, 0.5168457627, 0.0837467462, 0.0967709944, 0.1961032003, -0.1836419255, 0.3395855725, 0.08265315, 0.163609311, -0.0412130617, 0.0213949382, -0.3311615884, -0.0408200771, 0.0523190275, 0.1841142029, -0.1628909707, -0.163995415, -0.0609971248, -0.0883297548, -0.103489764, -0.2182547301, 0.1538131684, -0.0608253963, -0.0276362337, 0.1602065712, -0.1317274272, 0.0014980469, 0.2876744568, -0.1499686092, -0.2683258951, -0.0389656387, 0.0992076471, 0.3014133275, -0.1411530823, -0.1287007183, 0.2912286818, 0.3118903041, 0.1603488922, -0.3191339672, 0.2160571516, 0.1409415752, 0.1586341709, -0.6849150062, 0.219250381, 0.0656087175, -0.363858223, 0.1252855361, 0.3009473383, 0.5238637328, -0.1400037408, 0.0592609011, 0.2220313549, 0.2513670921, 0.2689088285, 0.0396321639, -0.0774179995, 0.1419259757, -0.01203153, -0.0247998163, -0.038942717, -0.3056527376, -0.327968657, 0.0739355981, -0.0633989722, -0.2098128498, -0.0415340476, 0.812528789, 0.0605158843, 0.2783505023, 0.098792389, -0.2616199255, -0.0487153381, 0.2482558042, -0.1952680349, 0.4748613536, -0.0486865006, 0.0303081404, -0.0334708504, 0.1873230636, 0.1295357049, 0.2900333107, 0.0046806275, -0.1638183892, 0.1424696296, 0.0798766986, -0.163742438, 0.0008391013, -0.0190560557, 0.1437791735, 0.04691967, -0.4936679006, -0.2273440957, -0.4648257494, -0.115355663, -0.1666274518, -0.059986826, 0.509250164, 0.0893868431, -0.3088845611, 0.4446443617, -0.0951268673, 0.2908422053, -0.1469128877, -0.2637881935, 0.1620959938, -0.356477797, -0.095371291, 0.2510156333, -0.0679314062, -0.0724667981, 0.0697361603, 0.3131884038, -0.2888312638, 0.1012986004, -0.1983560026, -0.2583792508, -0.0535523184, 0.0664230809, 0.0366902873, -0.1491825283, -0.0462144762, 0.0849675611, -0.1044560671, -0.243171677, 0.2912277877, -0.106679, -0.0193351358, 0.3490875959, 0.0152087035, -0.0196825396, -0.1917312145, -0.2694984972, -0.1783269644, -0.410015136, -0.0557865836, -0.1864387989, 0.1280481666, -0.4934847951, 0.1497713327, 0.0313413776, 0.2044693381, 0.0084127504, -0.3485564888, 0.0114275794, 0.5552468896, -0.0836588666, -0.2093535662, -0.114252165, -0.0217915792, 0.047702089, 0.1209981963, -0.0551129095, 0.1179179326, -0.0448079258, 0.144748047, 0.0450588278, -0.0214343946, 0.3484900892, 0.0411445759, 0.2303139716, -0.1711707115, -0.1864883155, -0.0733754411, 0.3733543158, 0.253334403, 0.6482352614, 0.8357480168, -0.2835792601, 0.2486015558, 0.3465372622, -0.0985202268, 0.2963235974, -0.2686644793, -0.2231534868, -0.2796330452, -0.1124288663, 0.2684703171, -0.0886670575, -0.0688260645, 0.1260101944, 0.0281607695, -0.3336804509, -0.0332170427, 0.420429498, -0.2158204168, -0.1492934078, 0.2165098339, 0.0611574836, 0.2174166739, -0.0807184875, 0.3276366591, 0.0268116649, -0.1308235526, 0.1783768088, -0.0228539109, 0.0847090557, -0.1257777661, -0.2237020731, -0.2350859642, 0.0552502759, 0.2396225482, 0.1960903406, 0.4747083783, -0.2550133765, -0.1530086249, 0.0484585315, 0.1703213006, 0.2878398597, -0.4533205926, 0.205265671, 0.0280317925, 0.0971680507, 0.0423787571, -0.1529347003, -0.080982253, -0.275667578, 0.1136788353, 0.4071158469, -0.0815032497, -0.0332478359, 0.0586093105, 0.0907242224, -0.0662698671, -0.0585478209, -0.0878144652, -0.1495014578, -0.3002857268, -0.036779575, 0.1847510189, 0.1949922144, -0.0085737053, -0.2383331507, 0.1535235792, -0.046810884, 0.0280115511, 0.0568293817, 0.4022828043, -0.0722294822, 0.1487560421, -0.0815898031, -0.1883483976, -0.3535625637, 0.495696336, 0.1652912349, -0.2602319419, 0.1853158027, -0.2412182242, 0.4029819965, 0.1011809185, -0.1343296468, 0.0903265253, 0.2458885163, -0.0874024406, -0.2549266517, -0.2430289686, 0.4368495047, 0.0785081834, -0.0236639082, -0.5335978866, 0.2301540673, 0.0865041912, -0.1633831114, 0.1680247635, -0.2352419794, -0.3388541341, 0.3432054818, -0.1904069632, 0.8662583828, 0.1858938932, -0.2632186711, 0.290391326, -0.300128758, -0.1780641228, -0.1795459241, 0.1022707298, -0.0816501006, -0.082980521, -0.141191408, -0.0751826763, 0.0924276263, 0.2696483433, -0.4602770209, 0.1783753335, -0.102372922, 0.4684388638, -0.0074872528, -0.1988711655, 0.2013612539, -0.3299686611, -0.3475788236, 0.0267636664, -0.0035738032, -0.1568516344, 0.2851468027, -0.2140465677, 0.0067756954, -0.2769628465, -0.1596678942, 0.325841248, -0.3037374914, 0.0130198728, -0.0775867403, -0.0739469305, 0.5173738003, 0.5436003804, -0.2672452331, -0.0131181413, -0.0435670204, 0.1059218198, 0.4622488022, 0.6396811008, -0.0523897447, 0.167508021, -0.0217487551, -0.0248165447, -0.2697175443, 0.2626564503, -0.1733288169, -0.1409388334, 0.0788507238, -0.0824606121, 0.30600366, -0.4444488883, -0.6049604416, 0.0000753571, 0.1170324087, -0.0814996809, 0.0115796793, -0.1796556264, -0.3741014302, 0.4981631041, -0.0043271412, -0.1619404256, 0.0736666992, 0.3894682229, 0.0836690739, 0.283855468, 0.3638867438, 0.0052114655, -0.1001101136, -0.1136377305, -0.0264958497, -0.2361433506, -0.2212419808, -0.0632476583, 0.1335398704, -0.321729362, -0.092864953, 0.0359047428, -0.4244316518, 0.0546934456, -0.5025587082, -0.4253549576, -0.3488764763, 0.2028365582, 0.0774229765, -0.1342176348, -0.187848717, 0.0717187226, 0.0307236444, -0.113783963, -0.1421945989, -0.0859616771, -0.0017384987, 0.2197616845, 0.2736001313, 0.2980347276, 0.0203473307, -0.0359098762, 0.0315447338, 0.1159103215, -0.267442584, 0.0607910417, -0.1774565428, 0.2038882971, 0.2238494456, 0.0418421105, -0.3026413023, -0.1990234852, -0.1618237495, -0.2621109486, 0.0643089116, 0.0025252723, -0.1475220621, 0.1182340309, -0.2427351773, -0.1915799826, -0.2954321802, 0.0710626394, -0.2529905438, -0.244988367, -0.017320944, 0.182059899, 0.2840428948, 0.0511760563, -0.2807918787, -0.1540466249, 0.0872633234, -0.0066652303, 0.6355471611, -0.0355019756, 0.2566841841, 0.0386968032, -0.0683120042, 0.0696243271, -0.2299011648, -0.3074232042, 0.10985706, 0.0124092381, -0.1137328073, -0.0557626188, 0.1087427214, -0.0517938212, -0.0732124224, 0.1618062109, -0.0449314713, -0.3027341366, 0.0236498397, -0.1582630128, 0.4688990116, -0.2820239067, 0.0452084802, 0.6165962815, 0.1185149923, 0.3648839891, -0.1079774126, -0.0919493139, -0.2167133391, 0.3508639634, -0.1506765634, -0.1069101617, 0.3458407521, 0.1956776232, 0.1988971829, -0.2349265069, 0.0056104911, 0.1942289472, -0.5534793735, 0.3539837003, 0.2043150067, -0.2721677125, -0.3786438107, -0.1818089634, -0.233477205, 0.1251261383, -0.2215946168, -0.0051665064, -0.0182944573, -0.0210139025, -0.1447809637, -0.0531297922, 0.0502024144, 0.5045639873, 0.4310779274, 0.0870233253, 0.0858061761, 0.2110393047, -0.4131858647, -0.0310612451, 0.2213822156, -0.270863831, 0.3400246203, -0.1367946714, 0.1598189771, 0.390573144, -0.1439705193, 0.2030795366, 0.4034152925, 0.006519611, -0.054432109, 0.3201422095, -0.0675915778, -0.0184368007, 0.4293670356, 0.3210142553, 0.3777395487, 0.0706109926, 0.0110225687, 0.0190703664, -0.2167429179, 0.0509027876, 0.4894423485, -0.116556026, 0.5307811499, -0.270252049, -0.2018712759, -0.0888937712, -0.2033581883, -0.0520821586, 0.1141970009, 0.1909982264, -0.0853671134, 0.3126500547, 0.1788066328, -0.0416859165, 0.1640917659, 0.1812865883, 0.0410255305, -0.4002220631, -0.049920246, -0.1197563559, -0.3469231129, -0.0669750348, 0.3375754654, -0.3208049834, 0.1077364534, -0.0755323246, 0.2811565101, -0.0129225552, 0.0068178391, -0.4920988977, 0.0898666233, 0.5967161059, -0.0430769213, -0.2177161276, -0.0496998914, 0.5169046521, -0.0999248549, -0.5579121709, 0.2161032408, 0.2015517056, 0.0563601851, 0.1278947741, -0.0739088729, -0.3412891626, -0.5072228909, 0.3258370459, -0.0157700311, 0.498685509, -0.3464188278, 0.3925125301, 0.1518999934, 0.0125318188, 0.100732699, 0.0485028327, -0.1190291792, 0.6830311418, -0.0024226841, 0.4759530425, -0.4157496393, -0.0444735847, -0.1241222471, -0.1277854592, -0.2222116739, 0.3002303243, -0.3046272993, 0.0468524471, 0.0051871678, -0.0599142797, -0.0954301506, 0.0280669369, -0.1759741902, -0.1935024559, 0.4255974293, -0.4865241647, -0.3767154217, -0.0589209311, 0.2844193578, -0.3074866235, 0.1051009372, -0.745126009, -0.0610659979, 0.1103231311, -0.0849552825, 0.1107961908, 0.0693609715, -0.0132216634, -0.0314315446, -0.1254398823, 0.1219210923, 0.0067266361, -0.140704304, -0.1254536211, -0.186560303 ]
https://github.com/huggingface/datasets/issues/3504
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
Hi @ToddMorrill, thanks for reporting. Three weeks ago I contacted the team who created the Pile dataset to report this issue with their data host server: https://the-eye.eu They told me that unfortunately, the-eye was heavily affected by the recent tornado catastrophe in the US. They hope to have their data back online asap.
## Describe the bug I am unable to download the PubMed dataset from the link provided in the [Hugging Face Course (Chapter 5 Section 4)](https://huggingface.co/course/chapter5/4?fw=pt). https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset # This takes a few minutes to run, so go grab a tea or coffee while you wait :) data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset("json", data_files=data_files, split="train") pubmed_dataset ``` I also tried with `wget` as follows. ``` wget https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ``` ## Expected results I expect to be able to download this file. ## Actual results Traceback ``` --------------------------------------------------------------------------- timeout Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 158 try: --> 159 conn = connection.create_connection( 160 (self._dns_host, self.port), self.timeout, **extra_kw /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock timeout: timed out During handling of the above exception, another exception occurred: ConnectTimeoutError Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 664 # Make the request on the httplib connection object. --> 665 httplib_response = self._make_request( 666 conn, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 375 try: --> 376 self._validate_conn(conn) 377 except (SocketTimeout, BaseSSLError) as e: /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 995 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 996 conn.connect() 997 /usr/lib/python3/dist-packages/urllib3/connection.py in connect(self) 313 # Add certificate verification --> 314 conn = self._new_conn() 315 hostname = self.host /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 163 except SocketTimeout: --> 164 raise ConnectTimeoutError( 165 self, ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)') During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 718 --> 719 retries = retries.increment( 720 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] /usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 435 if new_retry.is_exhausted(): --> 436 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 437 MaxRetryError: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) During handling of the above exception, another exception occurred: ConnectTimeout Traceback (most recent call last) /tmp/ipykernel_15104/606583593.py in <module> 3 # This takes a few minutes to run, so go grab a tea or coffee while you wait :) 4 data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" ----> 5 pubmed_dataset = load_dataset("json", data_files=data_files, split="train") 6 pubmed_dataset ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1655 1656 # Create a dataset builder -> 1657 builder_instance = load_dataset_builder( 1658 path=path, 1659 name=name, ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1492 download_config = download_config.copy() if download_config else DownloadConfig() 1493 download_config.use_auth_token = use_auth_token -> 1494 dataset_module = dataset_module_factory( 1495 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1496 ) ~/.local/lib/python3.8/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1116 # Try packaged 1117 if path in _PACKAGED_DATASETS_MODULES: -> 1118 return PackagedDatasetModuleFactory( 1119 path, data_files=data_files, download_config=download_config, download_mode=download_mode 1120 ).get_module() ~/.local/lib/python3.8/site-packages/datasets/load.py in get_module(self) 773 else get_patterns_locally(str(Path().resolve())) 774 ) --> 775 data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) 776 module_path, hash = _PACKAGED_DATASETS_MODULES[self.name] 777 builder_kwargs = {"hash": hash, "data_files": data_files} ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 576 for key, patterns_for_key in patterns.items(): 577 out[key] = ( --> 578 DataFilesList.from_local_or_remote( 579 patterns_for_key, 580 base_path=base_path, ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 545 base_path = base_path if base_path is not None else str(Path().resolve()) 546 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) --> 547 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token) 548 return cls(data_files, origin_metadata) 549 ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_origin_metadata_locally_or_by_urls(data_files, max_workers, use_auth_token) 492 data_files: List[Union[Path, Url]], max_workers=64, use_auth_token: Optional[Union[bool, str]] = None 493 ) -> Tuple[str]: --> 494 return thread_map( 495 partial(_get_single_origin_metadata_locally_or_by_urls, use_auth_token=use_auth_token), 496 data_files, ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in thread_map(fn, *iterables, **tqdm_kwargs) 92 """ 93 from concurrent.futures import ThreadPoolExecutor ---> 94 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) 95 96 ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs) 74 map_args.update(chunksize=chunksize) 75 with PoolExecutor(**pool_kwargs) as ex: ---> 76 return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs)) 77 78 ~/.local/lib/python3.8/site-packages/tqdm/notebook.py in __iter__(self) 252 def __iter__(self): 253 try: --> 254 for obj in super(tqdm_notebook, self).__iter__(): 255 # return super(tqdm...) will not catch exception 256 yield obj ~/.local/lib/python3.8/site-packages/tqdm/std.py in __iter__(self) 1171 # (note: keep this check outside the loop for performance) 1172 if self.disable: -> 1173 for obj in iterable: 1174 yield obj 1175 return /usr/lib/python3.8/concurrent/futures/_base.py in result_iterator() 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.8/concurrent/futures/_base.py in result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() /usr/lib/python3.8/concurrent/futures/_base.py in __get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception /usr/lib/python3.8/concurrent/futures/thread.py in run(self) 55 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_single_origin_metadata_locally_or_by_urls(data_file, use_auth_token) 483 if isinstance(data_file, Url): 484 data_file = str(data_file) --> 485 return (request_etag(data_file, use_auth_token=use_auth_token),) 486 else: 487 data_file = str(data_file.resolve()) ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in request_etag(url, use_auth_token) 489 def request_etag(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> Optional[str]: 490 headers = get_authentication_headers_for_url(url, use_auth_token=use_auth_token) --> 491 response = http_head(url, headers=headers, max_retries=3) 492 response.raise_for_status() 493 etag = response.headers.get("ETag") if response.ok else None ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries) 474 headers = copy.deepcopy(headers) or {} 475 headers["user-agent"] = get_datasets_user_agent(user_agent=headers.get("user-agent")) --> 476 response = _request_with_retry( 477 method="HEAD", 478 url=url, ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: 408 if tries > max_retries: --> 409 raise err 410 else: 411 logger.info(f"{method} request to {url} timed out, retrying... [{tries/max_retries}]") ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 403 tries += 1 404 try: --> 405 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params) 406 success = True 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: /usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs) 58 # cases, and look like a memory leak in others. 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 62 /usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 531 } 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 535 return resp /usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs) 644 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 648 # Total elapsed time of the request (approximately) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 502 # TODO: Remove this in 3.0.0: see #2811 503 if not isinstance(e.reason, NewConnectionError): --> 504 raise ConnectTimeout(e, request=request) 505 506 if isinstance(e.reason, ResponseError): ConnectTimeout: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) ``` ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 6.0.1
53
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Describe the bug I am unable to download the PubMed dataset from the link provided in the [Hugging Face Course (Chapter 5 Section 4)](https://huggingface.co/course/chapter5/4?fw=pt). https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset # This takes a few minutes to run, so go grab a tea or coffee while you wait :) data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset("json", data_files=data_files, split="train") pubmed_dataset ``` I also tried with `wget` as follows. ``` wget https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ``` ## Expected results I expect to be able to download this file. ## Actual results Traceback ``` --------------------------------------------------------------------------- timeout Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 158 try: --> 159 conn = connection.create_connection( 160 (self._dns_host, self.port), self.timeout, **extra_kw /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock timeout: timed out During handling of the above exception, another exception occurred: ConnectTimeoutError Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 664 # Make the request on the httplib connection object. --> 665 httplib_response = self._make_request( 666 conn, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 375 try: --> 376 self._validate_conn(conn) 377 except (SocketTimeout, BaseSSLError) as e: /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 995 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 996 conn.connect() 997 /usr/lib/python3/dist-packages/urllib3/connection.py in connect(self) 313 # Add certificate verification --> 314 conn = self._new_conn() 315 hostname = self.host /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 163 except SocketTimeout: --> 164 raise ConnectTimeoutError( 165 self, ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)') During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 718 --> 719 retries = retries.increment( 720 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] /usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 435 if new_retry.is_exhausted(): --> 436 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 437 MaxRetryError: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) During handling of the above exception, another exception occurred: ConnectTimeout Traceback (most recent call last) /tmp/ipykernel_15104/606583593.py in <module> 3 # This takes a few minutes to run, so go grab a tea or coffee while you wait :) 4 data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" ----> 5 pubmed_dataset = load_dataset("json", data_files=data_files, split="train") 6 pubmed_dataset ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1655 1656 # Create a dataset builder -> 1657 builder_instance = load_dataset_builder( 1658 path=path, 1659 name=name, ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1492 download_config = download_config.copy() if download_config else DownloadConfig() 1493 download_config.use_auth_token = use_auth_token -> 1494 dataset_module = dataset_module_factory( 1495 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1496 ) ~/.local/lib/python3.8/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1116 # Try packaged 1117 if path in _PACKAGED_DATASETS_MODULES: -> 1118 return PackagedDatasetModuleFactory( 1119 path, data_files=data_files, download_config=download_config, download_mode=download_mode 1120 ).get_module() ~/.local/lib/python3.8/site-packages/datasets/load.py in get_module(self) 773 else get_patterns_locally(str(Path().resolve())) 774 ) --> 775 data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) 776 module_path, hash = _PACKAGED_DATASETS_MODULES[self.name] 777 builder_kwargs = {"hash": hash, "data_files": data_files} ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 576 for key, patterns_for_key in patterns.items(): 577 out[key] = ( --> 578 DataFilesList.from_local_or_remote( 579 patterns_for_key, 580 base_path=base_path, ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 545 base_path = base_path if base_path is not None else str(Path().resolve()) 546 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) --> 547 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token) 548 return cls(data_files, origin_metadata) 549 ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_origin_metadata_locally_or_by_urls(data_files, max_workers, use_auth_token) 492 data_files: List[Union[Path, Url]], max_workers=64, use_auth_token: Optional[Union[bool, str]] = None 493 ) -> Tuple[str]: --> 494 return thread_map( 495 partial(_get_single_origin_metadata_locally_or_by_urls, use_auth_token=use_auth_token), 496 data_files, ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in thread_map(fn, *iterables, **tqdm_kwargs) 92 """ 93 from concurrent.futures import ThreadPoolExecutor ---> 94 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) 95 96 ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs) 74 map_args.update(chunksize=chunksize) 75 with PoolExecutor(**pool_kwargs) as ex: ---> 76 return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs)) 77 78 ~/.local/lib/python3.8/site-packages/tqdm/notebook.py in __iter__(self) 252 def __iter__(self): 253 try: --> 254 for obj in super(tqdm_notebook, self).__iter__(): 255 # return super(tqdm...) will not catch exception 256 yield obj ~/.local/lib/python3.8/site-packages/tqdm/std.py in __iter__(self) 1171 # (note: keep this check outside the loop for performance) 1172 if self.disable: -> 1173 for obj in iterable: 1174 yield obj 1175 return /usr/lib/python3.8/concurrent/futures/_base.py in result_iterator() 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.8/concurrent/futures/_base.py in result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() /usr/lib/python3.8/concurrent/futures/_base.py in __get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception /usr/lib/python3.8/concurrent/futures/thread.py in run(self) 55 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_single_origin_metadata_locally_or_by_urls(data_file, use_auth_token) 483 if isinstance(data_file, Url): 484 data_file = str(data_file) --> 485 return (request_etag(data_file, use_auth_token=use_auth_token),) 486 else: 487 data_file = str(data_file.resolve()) ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in request_etag(url, use_auth_token) 489 def request_etag(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> Optional[str]: 490 headers = get_authentication_headers_for_url(url, use_auth_token=use_auth_token) --> 491 response = http_head(url, headers=headers, max_retries=3) 492 response.raise_for_status() 493 etag = response.headers.get("ETag") if response.ok else None ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries) 474 headers = copy.deepcopy(headers) or {} 475 headers["user-agent"] = get_datasets_user_agent(user_agent=headers.get("user-agent")) --> 476 response = _request_with_retry( 477 method="HEAD", 478 url=url, ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: 408 if tries > max_retries: --> 409 raise err 410 else: 411 logger.info(f"{method} request to {url} timed out, retrying... [{tries/max_retries}]") ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 403 tries += 1 404 try: --> 405 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params) 406 success = True 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: /usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs) 58 # cases, and look like a memory leak in others. 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 62 /usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 531 } 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 535 return resp /usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs) 644 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 648 # Total elapsed time of the request (approximately) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 502 # TODO: Remove this in 3.0.0: see #2811 503 if not isinstance(e.reason, NewConnectionError): --> 504 raise ConnectTimeout(e, request=request) 505 506 if isinstance(e.reason, ResponseError): ConnectTimeout: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) ``` ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 6.0.1 Hi @ToddMorrill, thanks for reporting. Three weeks ago I contacted the team who created the Pile dataset to report this issue with their data host server: https://the-eye.eu They told me that unfortunately, the-eye was heavily affected by the recent tornado catastrophe in the US. They hope to have their data back online asap.
[ 0.0793420821, -0.1990926862, -0.0149749918, 0.3214186728, 0.0415689573, 0.0988509506, 0.2786985934, 0.3070810735, -0.0256312788, 0.0241771862, 0.0213186704, 0.0649859682, 0.2614779174, -0.0090518696, 0.0891454816, -0.137454614, -0.1224960014, 0.0288257934, 0.1671686172, -0.0706988499, -0.1634530723, 0.3103229105, -0.2114493549, 0.0229474511, 0.3344616294, -0.0487440787, -0.0180448573, 0.0796108544, -0.2594803274, -0.4001642168, 0.3467975259, 0.0676353499, 0.0968735814, 0.2832933068, -0.0001152371, -0.181439355, 0.3865605593, -0.1060888097, -0.1463316679, -0.6200526953, -0.0925691053, -0.3742440939, 0.0368296467, -0.2364805788, -0.0161442235, -0.2569459081, -0.0521953776, 0.0574442632, 0.5009846091, 0.2733207345, 0.160057649, 0.3386076987, 0.4762302339, -0.1643427014, 0.2631475627, -0.0007333686, -0.112845473, 0.3671373129, 0.1977306604, 0.1890681386, 0.0809970647, 0.1884226203, 0.187256977, 0.0214328039, 0.0720421001, 0.2159962207, -0.1662816703, -0.2893693447, 0.2658517957, 0.200678125, 0.5076358914, -0.101334855, -0.3343560398, -0.1578327715, -0.0257834066, 0.2880057395, 0.1259235144, 0.3794698119, -0.2153221965, 0.1394669116, 0.0239907112, -0.0752819031, -0.2904424369, 0.141140759, 0.1545030475, -0.0535571203, -0.1805347502, 0.210021168, 0.2253743112, -0.1191943586, 0.1156723946, -0.1589014232, 0.0045632492, 0.1201127395, -0.0652742311, -0.1301219016, 0.1300204545, -0.2145698071, 0.2953866422, 0.1702556461, -0.0052006179, -0.1111156791, 0.056447804, -0.0162038095, 0.3816424608, -0.1233995631, -0.0841440037, -0.2060022205, 0.3447532952, 0.6683695912, 0.2530402839, -0.0015185243, 0.1052562296, -0.0171631705, -0.1383760124, -0.1462053657, 0.285618335, -0.3072586358, -0.2293112129, 0.2585444152, -0.3156480789, 0.1121014208, -0.3288187981, 0.269377172, -0.1420354694, 0.1492167413, 0.4245760739, 0.1484356374, -0.0290620252, -0.2422590256, -0.1016429067, 0.0527960062, 0.114682287, -0.1797042489, 0.2691034377, -0.1405479759, 0.3284018338, 0.0177315921, 0.0434702896, -0.2795041502, -0.0850495249, 0.1849165112, 0.0152451545, 0.2789568007, 0.3548774123, 0.3509333432, -0.0322626457, 0.0762059018, -0.1938821226, 0.0723606572, -0.2473400533, -0.0533913299, -0.0830335766, 0.1086282879, -0.3945967853, 0.0259633679, -0.1337230504, -0.0649369657, -0.199549377, 0.1299390942, 0.0005098578, -0.1368607432, -0.0169741474, -0.1217868254, 0.5306910872, 0.432454139, 0.0124968849, -0.1217364073, -0.1118801832, 0.0434904881, -0.1127401292, 0.000661334, -0.2803042531, 0.0575218648, -0.1191475987, 0.2649980783, 0.1093821228, -0.4711230099, -0.8733952045, 0.0114977583, -0.3416736424, 0.25262025, -0.0470299572, -0.0134671312, -0.0048580477, 0.0233113263, -0.0141059514, 0.4104499817, 0.1495376527, -0.0713911653, -0.2368452251, -0.373826772, -0.0259877481, 0.1753928959, 0.0423936844, -0.0787833929, 0.1425981373, 0.3396871388, 0.4201108217, 0.0455284305, 0.2494727224, 0.2911367416, 0.1919085681, -0.0834890828, 0.1782009006, -0.0896165892, -0.5133877397, 0.1730191708, 0.051721517, 0.2064817399, -0.4273386896, -0.1029784977, -0.3319748044, -0.0099719893, -0.2414235473, -0.2010108232, 0.0930674598, 0.0288966261, 0.1742320508, 0.2303347886, -0.0119323367, 0.1851138473, -0.1602057368, 0.1431326717, -0.5135124922, 0.1428668946, -0.2051271349, 0.0414537191, 0.2167688459, -0.0474703126, 0.0622037873, -0.0518581718, -0.0695515126, 0.1353898048, -0.1594227701, 0.2733826339, 0.0773168355, -0.0797433555, 0.160321638, -0.5517671108, 0.001969903, 0.490470171, 0.1188815534, 0.0783351064, -0.1263230592, 0.2736310363, 0.013704746, 0.0661554709, 0.1842763275, 0.2874754369, 0.3209612668, -0.1492516696, -0.3007630408, -0.0183590446, 0.3522842228, 0.2142374068, -0.1417356431, -0.2299476564, -0.4221256673, 0.1657794863, 0.4969479442, -0.262748003, -0.0531389192, 0.2558319867, -0.1094782799, -0.0873027742, -0.0679855645, 0.2343417257, 0.1452103704, 0.1128680557, 0.0103095723, 0.2695218027, 0.0871117488, -0.1448904574, 0.121205844, 0.199558273, 0.0297711808, 0.1385248601, 0.0680977404, 0.1382667571, -0.0641848221, -0.1483419389, -0.0802401975, 0.0919036195, -0.450083524, -0.1027804762, -0.0939679518, 0.188065961, -0.2880824208, -0.2205044478, -0.3286836445, -0.1170017868, -0.2444552928, 0.3951083124, -0.090211004, -0.1454010606, -0.3001419306, 0.3773145378, 0.0136409607, -0.0375469141, -0.2003992051, -0.1187487468, -0.3264167607, 0.0232077353, 0.0127661815, 0.073381044, 0.1335759312, -0.3038696051, -0.0058858115, -0.2667241991, -0.2802239358, 0.131750524, -0.1951265186, 0.3825176358, 0.1503157765, 0.5875204802, -0.1490402371, -0.0307231285, 0.2851515114, -0.3901845813, -0.2450079322, -0.2378755659, -0.0231321268, -0.1235973015, -0.0828843191, -0.4791833758, -0.2473436892, -0.3006750345, 0.4074534178, -0.1374832988, 0.0367515497, 0.176033482, -0.1233251616, 0.1073086411, 0.1578091979, 0.181289196, -0.1553850025, -0.4383783042, 0.3929953277, -0.2362469584, -0.757389009, 0.1659153402, 0.0932072923, 0.0847237706, 0.1104107201, -0.5766035914, -0.0191007797, 0.0418877713, 0.048672244, -0.0347315818, 0.0436801799, 0.1139028892, -0.1765691489, 0.0315664634, -0.1546557248, -0.1199722886, 0.1829021424, 0.0851232708, 0.3600033522, 0.1991249621, 0.2229772657, 0.1364159882, 0.5776365995, 0.3293665946, 0.0902140513, 0.1597549766, 0.1262655109, 0.0691309199, 0.0534059331, -0.2993422449, -0.1624230593, -0.2021419853, 0.1867461205, 0.1768736392, 0.0858356059, 0.2674196959, -0.3720971346, -0.300293982, -0.474638164, -0.5008303523, -0.030158408, 0.1494983733, 0.1684797704, 0.1300337166, 0.1542454213, 0.1063452214, -0.1491193175, 0.3402774334, 0.4541424215, -0.0305681247, 0.115793854, -0.3048231304, 0.0041860878, -0.4445753098, 0.1391023695, 0.0793861076, 0.3024348915, -0.0102585526, 0.1382115036, 0.1377569586, -0.2935151458, 0.7017265558, 0.1455616057, 0.6401175261, -0.1017322093, -0.1377803236, -0.5438881516, 0.0181819946, -0.2039888054, -0.1042656302, 0.3589468002, 0.1207516864, -0.3946707249, -0.021610463, 0.2777291238, -0.0352203958, -0.1140050143, -0.1103914008, -0.0757704377, -0.7638061643, -0.4124482572, -0.1232362613, 0.1485598534, 0.2538883388, -0.0332244262, 0.0385712422, 0.2246688008, -0.0374525972, -0.0803498551, 0.1203286871, 0.2790343463, 0.0328930169, 0.3760579824, 0.4396906197, 0.0191394091, 0.242804125, 0.6106331944, 0.1281584054, -0.5608606935, -0.0231638923, -0.1584013402, -0.0032052163, 0.3653843105, -0.0053201099, 0.0622250363, 0.4910505116, 0.0758683234, -0.1817677766, 0.0910539478, 0.4395694137, -0.039084103, -0.1914835572, -0.3707776964, 0.5057325363, -0.1137634516, 0.050305672, 0.2944589257, 0.2757516205, -0.1713818908, 0.2348255515, 0.1629066318, 1.0327938795, 0.2294091284, 0.1749434322, 0.1045630574, -0.1637021899, 0.5025728941, 0.0626398697, 0.0680457056, -0.1886166483, -0.1244359985, -0.1260962337, -0.0523732975, 0.0598349161, -0.0642380938, -0.0654541552, 0.0328721255, 0.1577946991, 0.4063697457, 0.3328113854, 0.4669062197, 0.00364498, -0.0296147205, -0.4180842638, 0.0745801255, -0.0925690234, 0.4443751276, 0.0216075908, -0.3469443321, -0.5592703223, -0.3904497027, -0.2791783512, 0.4111516774, 0.0942968205, 0.1628315002, 0.0051631881, -0.313185364, 0.2336549908, -0.0288578644, -0.0335127972, 0.1400007606, -0.5149431229, 0.2811121047, -0.2780286372, -0.3187217116, 0.2546771765, 0.1493581831, 0.1599858105, -0.2647098303, -0.3199102879, -0.0530474931, 0.0401444025, -0.2361989468, -0.039034266, -0.1541299671, -0.2295510471, -0.0982925221, -0.2363478243, -0.0101769092, 0.1084998325, -0.2309567481, 0.1202849373, 0.0330875032, -0.106171906, -0.1155391037, 0.1534955055, -0.2212482244, -0.0098515563, 0.516001761, -0.0622185543, 0.012202315, 0.5068852305, 0.380582422, -0.0814235136, -0.0981672257, -0.0924863741, 0.1996916682, -0.4172885716, 0.1022649035, -0.3209952414, 0.2385352999, -0.3230991364, 0.341534704, 0.3081327677, -0.1510486305, 0.0259535909, -0.6305723786, 0.0129554225, 0.0904377848, -0.1495508105, 0.0180285424, 0.2950297594, -0.0192802418, 0.1604830921, -0.2262252718, -0.2614884377, 0.1589422375, -0.1687506735, -0.0961098447, 0.3078429699, -0.056486927, 0.4862648249, 0.0729832798, 0.0577957034, 0.1554829329, -0.1549363583, -0.1470566094, -0.1924921274, 0.151905179, 0.0300164018, -0.0878724009, -0.1376313269, -0.3919294477, -0.3230476379, 0.1823933274, -0.035034202, 0.0007844799, 0.1301781386, 0.0466099568, -0.0938304365, 0.1558194011, -0.2278533876, 0.2445827574, -0.053258732, 0.4355845451, 0.116412878, 0.2708756328, 0.0359090604, 0.1006888002, -0.3887174129, 0.0978684276, 0.0691607893, -0.0427266471, 0.3944216967, -0.07415656, 0.046527084, -0.0154954987, 0.4340229928, 0.4135075212, -0.3697757125, 0.0565467291, 0.0288794711, 0.1434909105, -0.2886708975, 0.0959704146, 0.0898386687, -0.0141664464, -0.1537090689, 0.1483236253, 0.1315237284, -0.1252614856, -0.2117439657, 0.061431136, 0.9846247435, 0.1093773991, 0.1892303079, 0.4525279999, 0.0163592696, 0.2340409607, 0.1145285219, 0.1624155641, 0.2194193155, 0.1139149219, -0.0013124789, -0.0492320769, -0.0014722155, 0.2622923851, -0.0268517099, -0.1413231194, -0.0778414831, 0.2837184668, 0.0961191431, 0.0593161099, 0.1322746128, 0.2900477052, 0.1236947179, -0.1032894477, -0.2954338193, 0.3227509558, 0.0487125106, 0.0157524832, -0.1815986782, -0.2887386978, -0.1471751332, 0.2944404185, 0.1282437146, -0.4241610467, 0.0366091244, 0.1014779732, -0.1474779099, -0.5647772551, -0.2689584494, 0.0310034007, 0.1304192841, -0.4224376678, 0.0029286556, 0.2229581624, -0.2215263695, 0.1086910293, 0.2606768608, 0.3972254395, 0.0711615756, -0.0406863615, 0.0780455992, 0.161235109, -0.0970153213, -0.0213421769, 0.1330571026, 0.395973146, 0.0595554188, 0.4312087595, 0.1554001421, -0.2270973176, -0.131278798, 0.160135746, 0.2482584268, -0.2205243409, 0.3555720448, -0.4328973293, -0.0254962277, -0.1343967915, -0.1916448772, -0.3688807786, -0.3810174465, 0.1385918856, -0.0146636609, 0.1029563621, -0.3113946319, 0.0573141947, -0.0809970573, 0.4928002954, 0.378955543, 0.1840617061, -0.0687080324, -0.3380780518, -0.6391942501, 0.1751745194, -0.0173919983, 0.025197275, 0.2015954256, 0.1057161391, -0.1672097594, 0.1135192141, 0.0707193017, 0.237264052, -0.1321407557, 0.2497559339, -0.1750147045, -0.2103186995, 0.1149310693, 0.0964245796, -0.0467678979, 0.0447343439, 0.2006983906, -0.3258144855, -0.0963022783, -0.2115379572, -0.1136514172, 0.0360333286, -0.0915633366, 0.5129441023, 0.0658961684, 0.3182295859, -0.0520749204, -0.485275656, -0.3249719739, -0.0278340615, -0.1729279608, 0.4495978653, -0.0246302858, 0.2191179246, 0.0242383275, -0.0864949301, -0.364790976, -0.2130102515, -0.1066681445, -0.0028697329, -0.4310641289, -0.0297652911, -0.1603891253, 0.0877434239, 0.0663833171, 0.0979453027, -0.2329794317, 0.1573594958, -0.4367949069, -0.3176772296, 0.4234059453, -0.535865128, -0.1900762767, 0.0696813241, 0.2336655855, -0.5565729737, -0.2104775757, -0.5639576316, 0.1165159866, 0.2500997186, -0.0411403961, -0.3502580225, 0.1159007996, -0.160315156, -0.151549384, 0.1310312152, 0.3185493648, 0.2171225548, -0.4408486485, 0.2020275593, -0.1629110724 ]
https://github.com/huggingface/datasets/issues/3504
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
Hi @ToddMorrill, people from the Pile team have mirrored their data in a new host server: https://mystic.the-eye.eu See: - #3627 It should work if you update your URL. We should also update the URL in our course material.
## Describe the bug I am unable to download the PubMed dataset from the link provided in the [Hugging Face Course (Chapter 5 Section 4)](https://huggingface.co/course/chapter5/4?fw=pt). https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset # This takes a few minutes to run, so go grab a tea or coffee while you wait :) data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset("json", data_files=data_files, split="train") pubmed_dataset ``` I also tried with `wget` as follows. ``` wget https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ``` ## Expected results I expect to be able to download this file. ## Actual results Traceback ``` --------------------------------------------------------------------------- timeout Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 158 try: --> 159 conn = connection.create_connection( 160 (self._dns_host, self.port), self.timeout, **extra_kw /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock timeout: timed out During handling of the above exception, another exception occurred: ConnectTimeoutError Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 664 # Make the request on the httplib connection object. --> 665 httplib_response = self._make_request( 666 conn, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 375 try: --> 376 self._validate_conn(conn) 377 except (SocketTimeout, BaseSSLError) as e: /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 995 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 996 conn.connect() 997 /usr/lib/python3/dist-packages/urllib3/connection.py in connect(self) 313 # Add certificate verification --> 314 conn = self._new_conn() 315 hostname = self.host /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 163 except SocketTimeout: --> 164 raise ConnectTimeoutError( 165 self, ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)') During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 718 --> 719 retries = retries.increment( 720 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] /usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 435 if new_retry.is_exhausted(): --> 436 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 437 MaxRetryError: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) During handling of the above exception, another exception occurred: ConnectTimeout Traceback (most recent call last) /tmp/ipykernel_15104/606583593.py in <module> 3 # This takes a few minutes to run, so go grab a tea or coffee while you wait :) 4 data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" ----> 5 pubmed_dataset = load_dataset("json", data_files=data_files, split="train") 6 pubmed_dataset ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1655 1656 # Create a dataset builder -> 1657 builder_instance = load_dataset_builder( 1658 path=path, 1659 name=name, ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1492 download_config = download_config.copy() if download_config else DownloadConfig() 1493 download_config.use_auth_token = use_auth_token -> 1494 dataset_module = dataset_module_factory( 1495 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1496 ) ~/.local/lib/python3.8/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1116 # Try packaged 1117 if path in _PACKAGED_DATASETS_MODULES: -> 1118 return PackagedDatasetModuleFactory( 1119 path, data_files=data_files, download_config=download_config, download_mode=download_mode 1120 ).get_module() ~/.local/lib/python3.8/site-packages/datasets/load.py in get_module(self) 773 else get_patterns_locally(str(Path().resolve())) 774 ) --> 775 data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) 776 module_path, hash = _PACKAGED_DATASETS_MODULES[self.name] 777 builder_kwargs = {"hash": hash, "data_files": data_files} ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 576 for key, patterns_for_key in patterns.items(): 577 out[key] = ( --> 578 DataFilesList.from_local_or_remote( 579 patterns_for_key, 580 base_path=base_path, ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 545 base_path = base_path if base_path is not None else str(Path().resolve()) 546 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) --> 547 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token) 548 return cls(data_files, origin_metadata) 549 ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_origin_metadata_locally_or_by_urls(data_files, max_workers, use_auth_token) 492 data_files: List[Union[Path, Url]], max_workers=64, use_auth_token: Optional[Union[bool, str]] = None 493 ) -> Tuple[str]: --> 494 return thread_map( 495 partial(_get_single_origin_metadata_locally_or_by_urls, use_auth_token=use_auth_token), 496 data_files, ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in thread_map(fn, *iterables, **tqdm_kwargs) 92 """ 93 from concurrent.futures import ThreadPoolExecutor ---> 94 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) 95 96 ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs) 74 map_args.update(chunksize=chunksize) 75 with PoolExecutor(**pool_kwargs) as ex: ---> 76 return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs)) 77 78 ~/.local/lib/python3.8/site-packages/tqdm/notebook.py in __iter__(self) 252 def __iter__(self): 253 try: --> 254 for obj in super(tqdm_notebook, self).__iter__(): 255 # return super(tqdm...) will not catch exception 256 yield obj ~/.local/lib/python3.8/site-packages/tqdm/std.py in __iter__(self) 1171 # (note: keep this check outside the loop for performance) 1172 if self.disable: -> 1173 for obj in iterable: 1174 yield obj 1175 return /usr/lib/python3.8/concurrent/futures/_base.py in result_iterator() 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.8/concurrent/futures/_base.py in result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() /usr/lib/python3.8/concurrent/futures/_base.py in __get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception /usr/lib/python3.8/concurrent/futures/thread.py in run(self) 55 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_single_origin_metadata_locally_or_by_urls(data_file, use_auth_token) 483 if isinstance(data_file, Url): 484 data_file = str(data_file) --> 485 return (request_etag(data_file, use_auth_token=use_auth_token),) 486 else: 487 data_file = str(data_file.resolve()) ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in request_etag(url, use_auth_token) 489 def request_etag(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> Optional[str]: 490 headers = get_authentication_headers_for_url(url, use_auth_token=use_auth_token) --> 491 response = http_head(url, headers=headers, max_retries=3) 492 response.raise_for_status() 493 etag = response.headers.get("ETag") if response.ok else None ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries) 474 headers = copy.deepcopy(headers) or {} 475 headers["user-agent"] = get_datasets_user_agent(user_agent=headers.get("user-agent")) --> 476 response = _request_with_retry( 477 method="HEAD", 478 url=url, ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: 408 if tries > max_retries: --> 409 raise err 410 else: 411 logger.info(f"{method} request to {url} timed out, retrying... [{tries/max_retries}]") ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 403 tries += 1 404 try: --> 405 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params) 406 success = True 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: /usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs) 58 # cases, and look like a memory leak in others. 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 62 /usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 531 } 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 535 return resp /usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs) 644 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 648 # Total elapsed time of the request (approximately) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 502 # TODO: Remove this in 3.0.0: see #2811 503 if not isinstance(e.reason, NewConnectionError): --> 504 raise ConnectTimeout(e, request=request) 505 506 if isinstance(e.reason, ResponseError): ConnectTimeout: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) ``` ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 6.0.1
38
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Describe the bug I am unable to download the PubMed dataset from the link provided in the [Hugging Face Course (Chapter 5 Section 4)](https://huggingface.co/course/chapter5/4?fw=pt). https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset # This takes a few minutes to run, so go grab a tea or coffee while you wait :) data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset("json", data_files=data_files, split="train") pubmed_dataset ``` I also tried with `wget` as follows. ``` wget https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ``` ## Expected results I expect to be able to download this file. ## Actual results Traceback ``` --------------------------------------------------------------------------- timeout Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 158 try: --> 159 conn = connection.create_connection( 160 (self._dns_host, self.port), self.timeout, **extra_kw /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock timeout: timed out During handling of the above exception, another exception occurred: ConnectTimeoutError Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 664 # Make the request on the httplib connection object. --> 665 httplib_response = self._make_request( 666 conn, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 375 try: --> 376 self._validate_conn(conn) 377 except (SocketTimeout, BaseSSLError) as e: /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 995 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 996 conn.connect() 997 /usr/lib/python3/dist-packages/urllib3/connection.py in connect(self) 313 # Add certificate verification --> 314 conn = self._new_conn() 315 hostname = self.host /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 163 except SocketTimeout: --> 164 raise ConnectTimeoutError( 165 self, ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)') During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 718 --> 719 retries = retries.increment( 720 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] /usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 435 if new_retry.is_exhausted(): --> 436 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 437 MaxRetryError: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) During handling of the above exception, another exception occurred: ConnectTimeout Traceback (most recent call last) /tmp/ipykernel_15104/606583593.py in <module> 3 # This takes a few minutes to run, so go grab a tea or coffee while you wait :) 4 data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" ----> 5 pubmed_dataset = load_dataset("json", data_files=data_files, split="train") 6 pubmed_dataset ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1655 1656 # Create a dataset builder -> 1657 builder_instance = load_dataset_builder( 1658 path=path, 1659 name=name, ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1492 download_config = download_config.copy() if download_config else DownloadConfig() 1493 download_config.use_auth_token = use_auth_token -> 1494 dataset_module = dataset_module_factory( 1495 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1496 ) ~/.local/lib/python3.8/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1116 # Try packaged 1117 if path in _PACKAGED_DATASETS_MODULES: -> 1118 return PackagedDatasetModuleFactory( 1119 path, data_files=data_files, download_config=download_config, download_mode=download_mode 1120 ).get_module() ~/.local/lib/python3.8/site-packages/datasets/load.py in get_module(self) 773 else get_patterns_locally(str(Path().resolve())) 774 ) --> 775 data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) 776 module_path, hash = _PACKAGED_DATASETS_MODULES[self.name] 777 builder_kwargs = {"hash": hash, "data_files": data_files} ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 576 for key, patterns_for_key in patterns.items(): 577 out[key] = ( --> 578 DataFilesList.from_local_or_remote( 579 patterns_for_key, 580 base_path=base_path, ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 545 base_path = base_path if base_path is not None else str(Path().resolve()) 546 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) --> 547 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token) 548 return cls(data_files, origin_metadata) 549 ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_origin_metadata_locally_or_by_urls(data_files, max_workers, use_auth_token) 492 data_files: List[Union[Path, Url]], max_workers=64, use_auth_token: Optional[Union[bool, str]] = None 493 ) -> Tuple[str]: --> 494 return thread_map( 495 partial(_get_single_origin_metadata_locally_or_by_urls, use_auth_token=use_auth_token), 496 data_files, ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in thread_map(fn, *iterables, **tqdm_kwargs) 92 """ 93 from concurrent.futures import ThreadPoolExecutor ---> 94 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) 95 96 ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs) 74 map_args.update(chunksize=chunksize) 75 with PoolExecutor(**pool_kwargs) as ex: ---> 76 return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs)) 77 78 ~/.local/lib/python3.8/site-packages/tqdm/notebook.py in __iter__(self) 252 def __iter__(self): 253 try: --> 254 for obj in super(tqdm_notebook, self).__iter__(): 255 # return super(tqdm...) will not catch exception 256 yield obj ~/.local/lib/python3.8/site-packages/tqdm/std.py in __iter__(self) 1171 # (note: keep this check outside the loop for performance) 1172 if self.disable: -> 1173 for obj in iterable: 1174 yield obj 1175 return /usr/lib/python3.8/concurrent/futures/_base.py in result_iterator() 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.8/concurrent/futures/_base.py in result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() /usr/lib/python3.8/concurrent/futures/_base.py in __get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception /usr/lib/python3.8/concurrent/futures/thread.py in run(self) 55 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_single_origin_metadata_locally_or_by_urls(data_file, use_auth_token) 483 if isinstance(data_file, Url): 484 data_file = str(data_file) --> 485 return (request_etag(data_file, use_auth_token=use_auth_token),) 486 else: 487 data_file = str(data_file.resolve()) ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in request_etag(url, use_auth_token) 489 def request_etag(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> Optional[str]: 490 headers = get_authentication_headers_for_url(url, use_auth_token=use_auth_token) --> 491 response = http_head(url, headers=headers, max_retries=3) 492 response.raise_for_status() 493 etag = response.headers.get("ETag") if response.ok else None ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries) 474 headers = copy.deepcopy(headers) or {} 475 headers["user-agent"] = get_datasets_user_agent(user_agent=headers.get("user-agent")) --> 476 response = _request_with_retry( 477 method="HEAD", 478 url=url, ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: 408 if tries > max_retries: --> 409 raise err 410 else: 411 logger.info(f"{method} request to {url} timed out, retrying... [{tries/max_retries}]") ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 403 tries += 1 404 try: --> 405 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params) 406 success = True 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: /usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs) 58 # cases, and look like a memory leak in others. 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 62 /usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 531 } 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 535 return resp /usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs) 644 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 648 # Total elapsed time of the request (approximately) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 502 # TODO: Remove this in 3.0.0: see #2811 503 if not isinstance(e.reason, NewConnectionError): --> 504 raise ConnectTimeout(e, request=request) 505 506 if isinstance(e.reason, ResponseError): ConnectTimeout: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) ``` ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 6.0.1 Hi @ToddMorrill, people from the Pile team have mirrored their data in a new host server: https://mystic.the-eye.eu See: - #3627 It should work if you update your URL. We should also update the URL in our course material.
[ 0.0793420821, -0.1990926862, -0.0149749918, 0.3214186728, 0.0415689573, 0.0988509506, 0.2786985934, 0.3070810735, -0.0256312788, 0.0241771862, 0.0213186704, 0.0649859682, 0.2614779174, -0.0090518696, 0.0891454816, -0.137454614, -0.1224960014, 0.0288257934, 0.1671686172, -0.0706988499, -0.1634530723, 0.3103229105, -0.2114493549, 0.0229474511, 0.3344616294, -0.0487440787, -0.0180448573, 0.0796108544, -0.2594803274, -0.4001642168, 0.3467975259, 0.0676353499, 0.0968735814, 0.2832933068, -0.0001152371, -0.181439355, 0.3865605593, -0.1060888097, -0.1463316679, -0.6200526953, -0.0925691053, -0.3742440939, 0.0368296467, -0.2364805788, -0.0161442235, -0.2569459081, -0.0521953776, 0.0574442632, 0.5009846091, 0.2733207345, 0.160057649, 0.3386076987, 0.4762302339, -0.1643427014, 0.2631475627, -0.0007333686, -0.112845473, 0.3671373129, 0.1977306604, 0.1890681386, 0.0809970647, 0.1884226203, 0.187256977, 0.0214328039, 0.0720421001, 0.2159962207, -0.1662816703, -0.2893693447, 0.2658517957, 0.200678125, 0.5076358914, -0.101334855, -0.3343560398, -0.1578327715, -0.0257834066, 0.2880057395, 0.1259235144, 0.3794698119, -0.2153221965, 0.1394669116, 0.0239907112, -0.0752819031, -0.2904424369, 0.141140759, 0.1545030475, -0.0535571203, -0.1805347502, 0.210021168, 0.2253743112, -0.1191943586, 0.1156723946, -0.1589014232, 0.0045632492, 0.1201127395, -0.0652742311, -0.1301219016, 0.1300204545, -0.2145698071, 0.2953866422, 0.1702556461, -0.0052006179, -0.1111156791, 0.056447804, -0.0162038095, 0.3816424608, -0.1233995631, -0.0841440037, -0.2060022205, 0.3447532952, 0.6683695912, 0.2530402839, -0.0015185243, 0.1052562296, -0.0171631705, -0.1383760124, -0.1462053657, 0.285618335, -0.3072586358, -0.2293112129, 0.2585444152, -0.3156480789, 0.1121014208, -0.3288187981, 0.269377172, -0.1420354694, 0.1492167413, 0.4245760739, 0.1484356374, -0.0290620252, -0.2422590256, -0.1016429067, 0.0527960062, 0.114682287, -0.1797042489, 0.2691034377, -0.1405479759, 0.3284018338, 0.0177315921, 0.0434702896, -0.2795041502, -0.0850495249, 0.1849165112, 0.0152451545, 0.2789568007, 0.3548774123, 0.3509333432, -0.0322626457, 0.0762059018, -0.1938821226, 0.0723606572, -0.2473400533, -0.0533913299, -0.0830335766, 0.1086282879, -0.3945967853, 0.0259633679, -0.1337230504, -0.0649369657, -0.199549377, 0.1299390942, 0.0005098578, -0.1368607432, -0.0169741474, -0.1217868254, 0.5306910872, 0.432454139, 0.0124968849, -0.1217364073, -0.1118801832, 0.0434904881, -0.1127401292, 0.000661334, -0.2803042531, 0.0575218648, -0.1191475987, 0.2649980783, 0.1093821228, -0.4711230099, -0.8733952045, 0.0114977583, -0.3416736424, 0.25262025, -0.0470299572, -0.0134671312, -0.0048580477, 0.0233113263, -0.0141059514, 0.4104499817, 0.1495376527, -0.0713911653, -0.2368452251, -0.373826772, -0.0259877481, 0.1753928959, 0.0423936844, -0.0787833929, 0.1425981373, 0.3396871388, 0.4201108217, 0.0455284305, 0.2494727224, 0.2911367416, 0.1919085681, -0.0834890828, 0.1782009006, -0.0896165892, -0.5133877397, 0.1730191708, 0.051721517, 0.2064817399, -0.4273386896, -0.1029784977, -0.3319748044, -0.0099719893, -0.2414235473, -0.2010108232, 0.0930674598, 0.0288966261, 0.1742320508, 0.2303347886, -0.0119323367, 0.1851138473, -0.1602057368, 0.1431326717, -0.5135124922, 0.1428668946, -0.2051271349, 0.0414537191, 0.2167688459, -0.0474703126, 0.0622037873, -0.0518581718, -0.0695515126, 0.1353898048, -0.1594227701, 0.2733826339, 0.0773168355, -0.0797433555, 0.160321638, -0.5517671108, 0.001969903, 0.490470171, 0.1188815534, 0.0783351064, -0.1263230592, 0.2736310363, 0.013704746, 0.0661554709, 0.1842763275, 0.2874754369, 0.3209612668, -0.1492516696, -0.3007630408, -0.0183590446, 0.3522842228, 0.2142374068, -0.1417356431, -0.2299476564, -0.4221256673, 0.1657794863, 0.4969479442, -0.262748003, -0.0531389192, 0.2558319867, -0.1094782799, -0.0873027742, -0.0679855645, 0.2343417257, 0.1452103704, 0.1128680557, 0.0103095723, 0.2695218027, 0.0871117488, -0.1448904574, 0.121205844, 0.199558273, 0.0297711808, 0.1385248601, 0.0680977404, 0.1382667571, -0.0641848221, -0.1483419389, -0.0802401975, 0.0919036195, -0.450083524, -0.1027804762, -0.0939679518, 0.188065961, -0.2880824208, -0.2205044478, -0.3286836445, -0.1170017868, -0.2444552928, 0.3951083124, -0.090211004, -0.1454010606, -0.3001419306, 0.3773145378, 0.0136409607, -0.0375469141, -0.2003992051, -0.1187487468, -0.3264167607, 0.0232077353, 0.0127661815, 0.073381044, 0.1335759312, -0.3038696051, -0.0058858115, -0.2667241991, -0.2802239358, 0.131750524, -0.1951265186, 0.3825176358, 0.1503157765, 0.5875204802, -0.1490402371, -0.0307231285, 0.2851515114, -0.3901845813, -0.2450079322, -0.2378755659, -0.0231321268, -0.1235973015, -0.0828843191, -0.4791833758, -0.2473436892, -0.3006750345, 0.4074534178, -0.1374832988, 0.0367515497, 0.176033482, -0.1233251616, 0.1073086411, 0.1578091979, 0.181289196, -0.1553850025, -0.4383783042, 0.3929953277, -0.2362469584, -0.757389009, 0.1659153402, 0.0932072923, 0.0847237706, 0.1104107201, -0.5766035914, -0.0191007797, 0.0418877713, 0.048672244, -0.0347315818, 0.0436801799, 0.1139028892, -0.1765691489, 0.0315664634, -0.1546557248, -0.1199722886, 0.1829021424, 0.0851232708, 0.3600033522, 0.1991249621, 0.2229772657, 0.1364159882, 0.5776365995, 0.3293665946, 0.0902140513, 0.1597549766, 0.1262655109, 0.0691309199, 0.0534059331, -0.2993422449, -0.1624230593, -0.2021419853, 0.1867461205, 0.1768736392, 0.0858356059, 0.2674196959, -0.3720971346, -0.300293982, -0.474638164, -0.5008303523, -0.030158408, 0.1494983733, 0.1684797704, 0.1300337166, 0.1542454213, 0.1063452214, -0.1491193175, 0.3402774334, 0.4541424215, -0.0305681247, 0.115793854, -0.3048231304, 0.0041860878, -0.4445753098, 0.1391023695, 0.0793861076, 0.3024348915, -0.0102585526, 0.1382115036, 0.1377569586, -0.2935151458, 0.7017265558, 0.1455616057, 0.6401175261, -0.1017322093, -0.1377803236, -0.5438881516, 0.0181819946, -0.2039888054, -0.1042656302, 0.3589468002, 0.1207516864, -0.3946707249, -0.021610463, 0.2777291238, -0.0352203958, -0.1140050143, -0.1103914008, -0.0757704377, -0.7638061643, -0.4124482572, -0.1232362613, 0.1485598534, 0.2538883388, -0.0332244262, 0.0385712422, 0.2246688008, -0.0374525972, -0.0803498551, 0.1203286871, 0.2790343463, 0.0328930169, 0.3760579824, 0.4396906197, 0.0191394091, 0.242804125, 0.6106331944, 0.1281584054, -0.5608606935, -0.0231638923, -0.1584013402, -0.0032052163, 0.3653843105, -0.0053201099, 0.0622250363, 0.4910505116, 0.0758683234, -0.1817677766, 0.0910539478, 0.4395694137, -0.039084103, -0.1914835572, -0.3707776964, 0.5057325363, -0.1137634516, 0.050305672, 0.2944589257, 0.2757516205, -0.1713818908, 0.2348255515, 0.1629066318, 1.0327938795, 0.2294091284, 0.1749434322, 0.1045630574, -0.1637021899, 0.5025728941, 0.0626398697, 0.0680457056, -0.1886166483, -0.1244359985, -0.1260962337, -0.0523732975, 0.0598349161, -0.0642380938, -0.0654541552, 0.0328721255, 0.1577946991, 0.4063697457, 0.3328113854, 0.4669062197, 0.00364498, -0.0296147205, -0.4180842638, 0.0745801255, -0.0925690234, 0.4443751276, 0.0216075908, -0.3469443321, -0.5592703223, -0.3904497027, -0.2791783512, 0.4111516774, 0.0942968205, 0.1628315002, 0.0051631881, -0.313185364, 0.2336549908, -0.0288578644, -0.0335127972, 0.1400007606, -0.5149431229, 0.2811121047, -0.2780286372, -0.3187217116, 0.2546771765, 0.1493581831, 0.1599858105, -0.2647098303, -0.3199102879, -0.0530474931, 0.0401444025, -0.2361989468, -0.039034266, -0.1541299671, -0.2295510471, -0.0982925221, -0.2363478243, -0.0101769092, 0.1084998325, -0.2309567481, 0.1202849373, 0.0330875032, -0.106171906, -0.1155391037, 0.1534955055, -0.2212482244, -0.0098515563, 0.516001761, -0.0622185543, 0.012202315, 0.5068852305, 0.380582422, -0.0814235136, -0.0981672257, -0.0924863741, 0.1996916682, -0.4172885716, 0.1022649035, -0.3209952414, 0.2385352999, -0.3230991364, 0.341534704, 0.3081327677, -0.1510486305, 0.0259535909, -0.6305723786, 0.0129554225, 0.0904377848, -0.1495508105, 0.0180285424, 0.2950297594, -0.0192802418, 0.1604830921, -0.2262252718, -0.2614884377, 0.1589422375, -0.1687506735, -0.0961098447, 0.3078429699, -0.056486927, 0.4862648249, 0.0729832798, 0.0577957034, 0.1554829329, -0.1549363583, -0.1470566094, -0.1924921274, 0.151905179, 0.0300164018, -0.0878724009, -0.1376313269, -0.3919294477, -0.3230476379, 0.1823933274, -0.035034202, 0.0007844799, 0.1301781386, 0.0466099568, -0.0938304365, 0.1558194011, -0.2278533876, 0.2445827574, -0.053258732, 0.4355845451, 0.116412878, 0.2708756328, 0.0359090604, 0.1006888002, -0.3887174129, 0.0978684276, 0.0691607893, -0.0427266471, 0.3944216967, -0.07415656, 0.046527084, -0.0154954987, 0.4340229928, 0.4135075212, -0.3697757125, 0.0565467291, 0.0288794711, 0.1434909105, -0.2886708975, 0.0959704146, 0.0898386687, -0.0141664464, -0.1537090689, 0.1483236253, 0.1315237284, -0.1252614856, -0.2117439657, 0.061431136, 0.9846247435, 0.1093773991, 0.1892303079, 0.4525279999, 0.0163592696, 0.2340409607, 0.1145285219, 0.1624155641, 0.2194193155, 0.1139149219, -0.0013124789, -0.0492320769, -0.0014722155, 0.2622923851, -0.0268517099, -0.1413231194, -0.0778414831, 0.2837184668, 0.0961191431, 0.0593161099, 0.1322746128, 0.2900477052, 0.1236947179, -0.1032894477, -0.2954338193, 0.3227509558, 0.0487125106, 0.0157524832, -0.1815986782, -0.2887386978, -0.1471751332, 0.2944404185, 0.1282437146, -0.4241610467, 0.0366091244, 0.1014779732, -0.1474779099, -0.5647772551, -0.2689584494, 0.0310034007, 0.1304192841, -0.4224376678, 0.0029286556, 0.2229581624, -0.2215263695, 0.1086910293, 0.2606768608, 0.3972254395, 0.0711615756, -0.0406863615, 0.0780455992, 0.161235109, -0.0970153213, -0.0213421769, 0.1330571026, 0.395973146, 0.0595554188, 0.4312087595, 0.1554001421, -0.2270973176, -0.131278798, 0.160135746, 0.2482584268, -0.2205243409, 0.3555720448, -0.4328973293, -0.0254962277, -0.1343967915, -0.1916448772, -0.3688807786, -0.3810174465, 0.1385918856, -0.0146636609, 0.1029563621, -0.3113946319, 0.0573141947, -0.0809970573, 0.4928002954, 0.378955543, 0.1840617061, -0.0687080324, -0.3380780518, -0.6391942501, 0.1751745194, -0.0173919983, 0.025197275, 0.2015954256, 0.1057161391, -0.1672097594, 0.1135192141, 0.0707193017, 0.237264052, -0.1321407557, 0.2497559339, -0.1750147045, -0.2103186995, 0.1149310693, 0.0964245796, -0.0467678979, 0.0447343439, 0.2006983906, -0.3258144855, -0.0963022783, -0.2115379572, -0.1136514172, 0.0360333286, -0.0915633366, 0.5129441023, 0.0658961684, 0.3182295859, -0.0520749204, -0.485275656, -0.3249719739, -0.0278340615, -0.1729279608, 0.4495978653, -0.0246302858, 0.2191179246, 0.0242383275, -0.0864949301, -0.364790976, -0.2130102515, -0.1066681445, -0.0028697329, -0.4310641289, -0.0297652911, -0.1603891253, 0.0877434239, 0.0663833171, 0.0979453027, -0.2329794317, 0.1573594958, -0.4367949069, -0.3176772296, 0.4234059453, -0.535865128, -0.1900762767, 0.0696813241, 0.2336655855, -0.5565729737, -0.2104775757, -0.5639576316, 0.1165159866, 0.2500997186, -0.0411403961, -0.3502580225, 0.1159007996, -0.160315156, -0.151549384, 0.1310312152, 0.3185493648, 0.2171225548, -0.4408486485, 0.2020275593, -0.1629110724 ]
https://github.com/huggingface/datasets/issues/3504
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
The old URL is still present in the HuggingFace course here: https://huggingface.co/course/chapter5/4?fw=pt I have created a PR for the Notebook here: https://github.com/huggingface/notebooks/pull/148 Not sure if the HTML is in a public repo. I wasn't able to find it.
## Describe the bug I am unable to download the PubMed dataset from the link provided in the [Hugging Face Course (Chapter 5 Section 4)](https://huggingface.co/course/chapter5/4?fw=pt). https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset # This takes a few minutes to run, so go grab a tea or coffee while you wait :) data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset("json", data_files=data_files, split="train") pubmed_dataset ``` I also tried with `wget` as follows. ``` wget https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ``` ## Expected results I expect to be able to download this file. ## Actual results Traceback ``` --------------------------------------------------------------------------- timeout Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 158 try: --> 159 conn = connection.create_connection( 160 (self._dns_host, self.port), self.timeout, **extra_kw /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock timeout: timed out During handling of the above exception, another exception occurred: ConnectTimeoutError Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 664 # Make the request on the httplib connection object. --> 665 httplib_response = self._make_request( 666 conn, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 375 try: --> 376 self._validate_conn(conn) 377 except (SocketTimeout, BaseSSLError) as e: /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 995 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 996 conn.connect() 997 /usr/lib/python3/dist-packages/urllib3/connection.py in connect(self) 313 # Add certificate verification --> 314 conn = self._new_conn() 315 hostname = self.host /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 163 except SocketTimeout: --> 164 raise ConnectTimeoutError( 165 self, ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)') During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 718 --> 719 retries = retries.increment( 720 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] /usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 435 if new_retry.is_exhausted(): --> 436 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 437 MaxRetryError: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) During handling of the above exception, another exception occurred: ConnectTimeout Traceback (most recent call last) /tmp/ipykernel_15104/606583593.py in <module> 3 # This takes a few minutes to run, so go grab a tea or coffee while you wait :) 4 data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" ----> 5 pubmed_dataset = load_dataset("json", data_files=data_files, split="train") 6 pubmed_dataset ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1655 1656 # Create a dataset builder -> 1657 builder_instance = load_dataset_builder( 1658 path=path, 1659 name=name, ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1492 download_config = download_config.copy() if download_config else DownloadConfig() 1493 download_config.use_auth_token = use_auth_token -> 1494 dataset_module = dataset_module_factory( 1495 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1496 ) ~/.local/lib/python3.8/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1116 # Try packaged 1117 if path in _PACKAGED_DATASETS_MODULES: -> 1118 return PackagedDatasetModuleFactory( 1119 path, data_files=data_files, download_config=download_config, download_mode=download_mode 1120 ).get_module() ~/.local/lib/python3.8/site-packages/datasets/load.py in get_module(self) 773 else get_patterns_locally(str(Path().resolve())) 774 ) --> 775 data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) 776 module_path, hash = _PACKAGED_DATASETS_MODULES[self.name] 777 builder_kwargs = {"hash": hash, "data_files": data_files} ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 576 for key, patterns_for_key in patterns.items(): 577 out[key] = ( --> 578 DataFilesList.from_local_or_remote( 579 patterns_for_key, 580 base_path=base_path, ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 545 base_path = base_path if base_path is not None else str(Path().resolve()) 546 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) --> 547 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token) 548 return cls(data_files, origin_metadata) 549 ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_origin_metadata_locally_or_by_urls(data_files, max_workers, use_auth_token) 492 data_files: List[Union[Path, Url]], max_workers=64, use_auth_token: Optional[Union[bool, str]] = None 493 ) -> Tuple[str]: --> 494 return thread_map( 495 partial(_get_single_origin_metadata_locally_or_by_urls, use_auth_token=use_auth_token), 496 data_files, ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in thread_map(fn, *iterables, **tqdm_kwargs) 92 """ 93 from concurrent.futures import ThreadPoolExecutor ---> 94 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) 95 96 ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs) 74 map_args.update(chunksize=chunksize) 75 with PoolExecutor(**pool_kwargs) as ex: ---> 76 return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs)) 77 78 ~/.local/lib/python3.8/site-packages/tqdm/notebook.py in __iter__(self) 252 def __iter__(self): 253 try: --> 254 for obj in super(tqdm_notebook, self).__iter__(): 255 # return super(tqdm...) will not catch exception 256 yield obj ~/.local/lib/python3.8/site-packages/tqdm/std.py in __iter__(self) 1171 # (note: keep this check outside the loop for performance) 1172 if self.disable: -> 1173 for obj in iterable: 1174 yield obj 1175 return /usr/lib/python3.8/concurrent/futures/_base.py in result_iterator() 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.8/concurrent/futures/_base.py in result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() /usr/lib/python3.8/concurrent/futures/_base.py in __get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception /usr/lib/python3.8/concurrent/futures/thread.py in run(self) 55 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_single_origin_metadata_locally_or_by_urls(data_file, use_auth_token) 483 if isinstance(data_file, Url): 484 data_file = str(data_file) --> 485 return (request_etag(data_file, use_auth_token=use_auth_token),) 486 else: 487 data_file = str(data_file.resolve()) ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in request_etag(url, use_auth_token) 489 def request_etag(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> Optional[str]: 490 headers = get_authentication_headers_for_url(url, use_auth_token=use_auth_token) --> 491 response = http_head(url, headers=headers, max_retries=3) 492 response.raise_for_status() 493 etag = response.headers.get("ETag") if response.ok else None ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries) 474 headers = copy.deepcopy(headers) or {} 475 headers["user-agent"] = get_datasets_user_agent(user_agent=headers.get("user-agent")) --> 476 response = _request_with_retry( 477 method="HEAD", 478 url=url, ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: 408 if tries > max_retries: --> 409 raise err 410 else: 411 logger.info(f"{method} request to {url} timed out, retrying... [{tries/max_retries}]") ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 403 tries += 1 404 try: --> 405 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params) 406 success = True 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: /usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs) 58 # cases, and look like a memory leak in others. 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 62 /usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 531 } 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 535 return resp /usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs) 644 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 648 # Total elapsed time of the request (approximately) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 502 # TODO: Remove this in 3.0.0: see #2811 503 if not isinstance(e.reason, NewConnectionError): --> 504 raise ConnectTimeout(e, request=request) 505 506 if isinstance(e.reason, ResponseError): ConnectTimeout: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) ``` ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 6.0.1
38
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Describe the bug I am unable to download the PubMed dataset from the link provided in the [Hugging Face Course (Chapter 5 Section 4)](https://huggingface.co/course/chapter5/4?fw=pt). https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset # This takes a few minutes to run, so go grab a tea or coffee while you wait :) data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset("json", data_files=data_files, split="train") pubmed_dataset ``` I also tried with `wget` as follows. ``` wget https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ``` ## Expected results I expect to be able to download this file. ## Actual results Traceback ``` --------------------------------------------------------------------------- timeout Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 158 try: --> 159 conn = connection.create_connection( 160 (self._dns_host, self.port), self.timeout, **extra_kw /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock timeout: timed out During handling of the above exception, another exception occurred: ConnectTimeoutError Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 664 # Make the request on the httplib connection object. --> 665 httplib_response = self._make_request( 666 conn, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 375 try: --> 376 self._validate_conn(conn) 377 except (SocketTimeout, BaseSSLError) as e: /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 995 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 996 conn.connect() 997 /usr/lib/python3/dist-packages/urllib3/connection.py in connect(self) 313 # Add certificate verification --> 314 conn = self._new_conn() 315 hostname = self.host /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 163 except SocketTimeout: --> 164 raise ConnectTimeoutError( 165 self, ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)') During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 718 --> 719 retries = retries.increment( 720 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] /usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 435 if new_retry.is_exhausted(): --> 436 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 437 MaxRetryError: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) During handling of the above exception, another exception occurred: ConnectTimeout Traceback (most recent call last) /tmp/ipykernel_15104/606583593.py in <module> 3 # This takes a few minutes to run, so go grab a tea or coffee while you wait :) 4 data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" ----> 5 pubmed_dataset = load_dataset("json", data_files=data_files, split="train") 6 pubmed_dataset ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1655 1656 # Create a dataset builder -> 1657 builder_instance = load_dataset_builder( 1658 path=path, 1659 name=name, ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1492 download_config = download_config.copy() if download_config else DownloadConfig() 1493 download_config.use_auth_token = use_auth_token -> 1494 dataset_module = dataset_module_factory( 1495 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1496 ) ~/.local/lib/python3.8/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1116 # Try packaged 1117 if path in _PACKAGED_DATASETS_MODULES: -> 1118 return PackagedDatasetModuleFactory( 1119 path, data_files=data_files, download_config=download_config, download_mode=download_mode 1120 ).get_module() ~/.local/lib/python3.8/site-packages/datasets/load.py in get_module(self) 773 else get_patterns_locally(str(Path().resolve())) 774 ) --> 775 data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) 776 module_path, hash = _PACKAGED_DATASETS_MODULES[self.name] 777 builder_kwargs = {"hash": hash, "data_files": data_files} ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 576 for key, patterns_for_key in patterns.items(): 577 out[key] = ( --> 578 DataFilesList.from_local_or_remote( 579 patterns_for_key, 580 base_path=base_path, ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 545 base_path = base_path if base_path is not None else str(Path().resolve()) 546 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) --> 547 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token) 548 return cls(data_files, origin_metadata) 549 ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_origin_metadata_locally_or_by_urls(data_files, max_workers, use_auth_token) 492 data_files: List[Union[Path, Url]], max_workers=64, use_auth_token: Optional[Union[bool, str]] = None 493 ) -> Tuple[str]: --> 494 return thread_map( 495 partial(_get_single_origin_metadata_locally_or_by_urls, use_auth_token=use_auth_token), 496 data_files, ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in thread_map(fn, *iterables, **tqdm_kwargs) 92 """ 93 from concurrent.futures import ThreadPoolExecutor ---> 94 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) 95 96 ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs) 74 map_args.update(chunksize=chunksize) 75 with PoolExecutor(**pool_kwargs) as ex: ---> 76 return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs)) 77 78 ~/.local/lib/python3.8/site-packages/tqdm/notebook.py in __iter__(self) 252 def __iter__(self): 253 try: --> 254 for obj in super(tqdm_notebook, self).__iter__(): 255 # return super(tqdm...) will not catch exception 256 yield obj ~/.local/lib/python3.8/site-packages/tqdm/std.py in __iter__(self) 1171 # (note: keep this check outside the loop for performance) 1172 if self.disable: -> 1173 for obj in iterable: 1174 yield obj 1175 return /usr/lib/python3.8/concurrent/futures/_base.py in result_iterator() 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.8/concurrent/futures/_base.py in result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() /usr/lib/python3.8/concurrent/futures/_base.py in __get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception /usr/lib/python3.8/concurrent/futures/thread.py in run(self) 55 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_single_origin_metadata_locally_or_by_urls(data_file, use_auth_token) 483 if isinstance(data_file, Url): 484 data_file = str(data_file) --> 485 return (request_etag(data_file, use_auth_token=use_auth_token),) 486 else: 487 data_file = str(data_file.resolve()) ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in request_etag(url, use_auth_token) 489 def request_etag(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> Optional[str]: 490 headers = get_authentication_headers_for_url(url, use_auth_token=use_auth_token) --> 491 response = http_head(url, headers=headers, max_retries=3) 492 response.raise_for_status() 493 etag = response.headers.get("ETag") if response.ok else None ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries) 474 headers = copy.deepcopy(headers) or {} 475 headers["user-agent"] = get_datasets_user_agent(user_agent=headers.get("user-agent")) --> 476 response = _request_with_retry( 477 method="HEAD", 478 url=url, ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: 408 if tries > max_retries: --> 409 raise err 410 else: 411 logger.info(f"{method} request to {url} timed out, retrying... [{tries/max_retries}]") ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 403 tries += 1 404 try: --> 405 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params) 406 success = True 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: /usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs) 58 # cases, and look like a memory leak in others. 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 62 /usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 531 } 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 535 return resp /usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs) 644 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 648 # Total elapsed time of the request (approximately) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 502 # TODO: Remove this in 3.0.0: see #2811 503 if not isinstance(e.reason, NewConnectionError): --> 504 raise ConnectTimeout(e, request=request) 505 506 if isinstance(e.reason, ResponseError): ConnectTimeout: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) ``` ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 6.0.1 The old URL is still present in the HuggingFace course here: https://huggingface.co/course/chapter5/4?fw=pt I have created a PR for the Notebook here: https://github.com/huggingface/notebooks/pull/148 Not sure if the HTML is in a public repo. I wasn't able to find it.
[ 0.0793420821, -0.1990926862, -0.0149749918, 0.3214186728, 0.0415689573, 0.0988509506, 0.2786985934, 0.3070810735, -0.0256312788, 0.0241771862, 0.0213186704, 0.0649859682, 0.2614779174, -0.0090518696, 0.0891454816, -0.137454614, -0.1224960014, 0.0288257934, 0.1671686172, -0.0706988499, -0.1634530723, 0.3103229105, -0.2114493549, 0.0229474511, 0.3344616294, -0.0487440787, -0.0180448573, 0.0796108544, -0.2594803274, -0.4001642168, 0.3467975259, 0.0676353499, 0.0968735814, 0.2832933068, -0.0001152371, -0.181439355, 0.3865605593, -0.1060888097, -0.1463316679, -0.6200526953, -0.0925691053, -0.3742440939, 0.0368296467, -0.2364805788, -0.0161442235, -0.2569459081, -0.0521953776, 0.0574442632, 0.5009846091, 0.2733207345, 0.160057649, 0.3386076987, 0.4762302339, -0.1643427014, 0.2631475627, -0.0007333686, -0.112845473, 0.3671373129, 0.1977306604, 0.1890681386, 0.0809970647, 0.1884226203, 0.187256977, 0.0214328039, 0.0720421001, 0.2159962207, -0.1662816703, -0.2893693447, 0.2658517957, 0.200678125, 0.5076358914, -0.101334855, -0.3343560398, -0.1578327715, -0.0257834066, 0.2880057395, 0.1259235144, 0.3794698119, -0.2153221965, 0.1394669116, 0.0239907112, -0.0752819031, -0.2904424369, 0.141140759, 0.1545030475, -0.0535571203, -0.1805347502, 0.210021168, 0.2253743112, -0.1191943586, 0.1156723946, -0.1589014232, 0.0045632492, 0.1201127395, -0.0652742311, -0.1301219016, 0.1300204545, -0.2145698071, 0.2953866422, 0.1702556461, -0.0052006179, -0.1111156791, 0.056447804, -0.0162038095, 0.3816424608, -0.1233995631, -0.0841440037, -0.2060022205, 0.3447532952, 0.6683695912, 0.2530402839, -0.0015185243, 0.1052562296, -0.0171631705, -0.1383760124, -0.1462053657, 0.285618335, -0.3072586358, -0.2293112129, 0.2585444152, -0.3156480789, 0.1121014208, -0.3288187981, 0.269377172, -0.1420354694, 0.1492167413, 0.4245760739, 0.1484356374, -0.0290620252, -0.2422590256, -0.1016429067, 0.0527960062, 0.114682287, -0.1797042489, 0.2691034377, -0.1405479759, 0.3284018338, 0.0177315921, 0.0434702896, -0.2795041502, -0.0850495249, 0.1849165112, 0.0152451545, 0.2789568007, 0.3548774123, 0.3509333432, -0.0322626457, 0.0762059018, -0.1938821226, 0.0723606572, -0.2473400533, -0.0533913299, -0.0830335766, 0.1086282879, -0.3945967853, 0.0259633679, -0.1337230504, -0.0649369657, -0.199549377, 0.1299390942, 0.0005098578, -0.1368607432, -0.0169741474, -0.1217868254, 0.5306910872, 0.432454139, 0.0124968849, -0.1217364073, -0.1118801832, 0.0434904881, -0.1127401292, 0.000661334, -0.2803042531, 0.0575218648, -0.1191475987, 0.2649980783, 0.1093821228, -0.4711230099, -0.8733952045, 0.0114977583, -0.3416736424, 0.25262025, -0.0470299572, -0.0134671312, -0.0048580477, 0.0233113263, -0.0141059514, 0.4104499817, 0.1495376527, -0.0713911653, -0.2368452251, -0.373826772, -0.0259877481, 0.1753928959, 0.0423936844, -0.0787833929, 0.1425981373, 0.3396871388, 0.4201108217, 0.0455284305, 0.2494727224, 0.2911367416, 0.1919085681, -0.0834890828, 0.1782009006, -0.0896165892, -0.5133877397, 0.1730191708, 0.051721517, 0.2064817399, -0.4273386896, -0.1029784977, -0.3319748044, -0.0099719893, -0.2414235473, -0.2010108232, 0.0930674598, 0.0288966261, 0.1742320508, 0.2303347886, -0.0119323367, 0.1851138473, -0.1602057368, 0.1431326717, -0.5135124922, 0.1428668946, -0.2051271349, 0.0414537191, 0.2167688459, -0.0474703126, 0.0622037873, -0.0518581718, -0.0695515126, 0.1353898048, -0.1594227701, 0.2733826339, 0.0773168355, -0.0797433555, 0.160321638, -0.5517671108, 0.001969903, 0.490470171, 0.1188815534, 0.0783351064, -0.1263230592, 0.2736310363, 0.013704746, 0.0661554709, 0.1842763275, 0.2874754369, 0.3209612668, -0.1492516696, -0.3007630408, -0.0183590446, 0.3522842228, 0.2142374068, -0.1417356431, -0.2299476564, -0.4221256673, 0.1657794863, 0.4969479442, -0.262748003, -0.0531389192, 0.2558319867, -0.1094782799, -0.0873027742, -0.0679855645, 0.2343417257, 0.1452103704, 0.1128680557, 0.0103095723, 0.2695218027, 0.0871117488, -0.1448904574, 0.121205844, 0.199558273, 0.0297711808, 0.1385248601, 0.0680977404, 0.1382667571, -0.0641848221, -0.1483419389, -0.0802401975, 0.0919036195, -0.450083524, -0.1027804762, -0.0939679518, 0.188065961, -0.2880824208, -0.2205044478, -0.3286836445, -0.1170017868, -0.2444552928, 0.3951083124, -0.090211004, -0.1454010606, -0.3001419306, 0.3773145378, 0.0136409607, -0.0375469141, -0.2003992051, -0.1187487468, -0.3264167607, 0.0232077353, 0.0127661815, 0.073381044, 0.1335759312, -0.3038696051, -0.0058858115, -0.2667241991, -0.2802239358, 0.131750524, -0.1951265186, 0.3825176358, 0.1503157765, 0.5875204802, -0.1490402371, -0.0307231285, 0.2851515114, -0.3901845813, -0.2450079322, -0.2378755659, -0.0231321268, -0.1235973015, -0.0828843191, -0.4791833758, -0.2473436892, -0.3006750345, 0.4074534178, -0.1374832988, 0.0367515497, 0.176033482, -0.1233251616, 0.1073086411, 0.1578091979, 0.181289196, -0.1553850025, -0.4383783042, 0.3929953277, -0.2362469584, -0.757389009, 0.1659153402, 0.0932072923, 0.0847237706, 0.1104107201, -0.5766035914, -0.0191007797, 0.0418877713, 0.048672244, -0.0347315818, 0.0436801799, 0.1139028892, -0.1765691489, 0.0315664634, -0.1546557248, -0.1199722886, 0.1829021424, 0.0851232708, 0.3600033522, 0.1991249621, 0.2229772657, 0.1364159882, 0.5776365995, 0.3293665946, 0.0902140513, 0.1597549766, 0.1262655109, 0.0691309199, 0.0534059331, -0.2993422449, -0.1624230593, -0.2021419853, 0.1867461205, 0.1768736392, 0.0858356059, 0.2674196959, -0.3720971346, -0.300293982, -0.474638164, -0.5008303523, -0.030158408, 0.1494983733, 0.1684797704, 0.1300337166, 0.1542454213, 0.1063452214, -0.1491193175, 0.3402774334, 0.4541424215, -0.0305681247, 0.115793854, -0.3048231304, 0.0041860878, -0.4445753098, 0.1391023695, 0.0793861076, 0.3024348915, -0.0102585526, 0.1382115036, 0.1377569586, -0.2935151458, 0.7017265558, 0.1455616057, 0.6401175261, -0.1017322093, -0.1377803236, -0.5438881516, 0.0181819946, -0.2039888054, -0.1042656302, 0.3589468002, 0.1207516864, -0.3946707249, -0.021610463, 0.2777291238, -0.0352203958, -0.1140050143, -0.1103914008, -0.0757704377, -0.7638061643, -0.4124482572, -0.1232362613, 0.1485598534, 0.2538883388, -0.0332244262, 0.0385712422, 0.2246688008, -0.0374525972, -0.0803498551, 0.1203286871, 0.2790343463, 0.0328930169, 0.3760579824, 0.4396906197, 0.0191394091, 0.242804125, 0.6106331944, 0.1281584054, -0.5608606935, -0.0231638923, -0.1584013402, -0.0032052163, 0.3653843105, -0.0053201099, 0.0622250363, 0.4910505116, 0.0758683234, -0.1817677766, 0.0910539478, 0.4395694137, -0.039084103, -0.1914835572, -0.3707776964, 0.5057325363, -0.1137634516, 0.050305672, 0.2944589257, 0.2757516205, -0.1713818908, 0.2348255515, 0.1629066318, 1.0327938795, 0.2294091284, 0.1749434322, 0.1045630574, -0.1637021899, 0.5025728941, 0.0626398697, 0.0680457056, -0.1886166483, -0.1244359985, -0.1260962337, -0.0523732975, 0.0598349161, -0.0642380938, -0.0654541552, 0.0328721255, 0.1577946991, 0.4063697457, 0.3328113854, 0.4669062197, 0.00364498, -0.0296147205, -0.4180842638, 0.0745801255, -0.0925690234, 0.4443751276, 0.0216075908, -0.3469443321, -0.5592703223, -0.3904497027, -0.2791783512, 0.4111516774, 0.0942968205, 0.1628315002, 0.0051631881, -0.313185364, 0.2336549908, -0.0288578644, -0.0335127972, 0.1400007606, -0.5149431229, 0.2811121047, -0.2780286372, -0.3187217116, 0.2546771765, 0.1493581831, 0.1599858105, -0.2647098303, -0.3199102879, -0.0530474931, 0.0401444025, -0.2361989468, -0.039034266, -0.1541299671, -0.2295510471, -0.0982925221, -0.2363478243, -0.0101769092, 0.1084998325, -0.2309567481, 0.1202849373, 0.0330875032, -0.106171906, -0.1155391037, 0.1534955055, -0.2212482244, -0.0098515563, 0.516001761, -0.0622185543, 0.012202315, 0.5068852305, 0.380582422, -0.0814235136, -0.0981672257, -0.0924863741, 0.1996916682, -0.4172885716, 0.1022649035, -0.3209952414, 0.2385352999, -0.3230991364, 0.341534704, 0.3081327677, -0.1510486305, 0.0259535909, -0.6305723786, 0.0129554225, 0.0904377848, -0.1495508105, 0.0180285424, 0.2950297594, -0.0192802418, 0.1604830921, -0.2262252718, -0.2614884377, 0.1589422375, -0.1687506735, -0.0961098447, 0.3078429699, -0.056486927, 0.4862648249, 0.0729832798, 0.0577957034, 0.1554829329, -0.1549363583, -0.1470566094, -0.1924921274, 0.151905179, 0.0300164018, -0.0878724009, -0.1376313269, -0.3919294477, -0.3230476379, 0.1823933274, -0.035034202, 0.0007844799, 0.1301781386, 0.0466099568, -0.0938304365, 0.1558194011, -0.2278533876, 0.2445827574, -0.053258732, 0.4355845451, 0.116412878, 0.2708756328, 0.0359090604, 0.1006888002, -0.3887174129, 0.0978684276, 0.0691607893, -0.0427266471, 0.3944216967, -0.07415656, 0.046527084, -0.0154954987, 0.4340229928, 0.4135075212, -0.3697757125, 0.0565467291, 0.0288794711, 0.1434909105, -0.2886708975, 0.0959704146, 0.0898386687, -0.0141664464, -0.1537090689, 0.1483236253, 0.1315237284, -0.1252614856, -0.2117439657, 0.061431136, 0.9846247435, 0.1093773991, 0.1892303079, 0.4525279999, 0.0163592696, 0.2340409607, 0.1145285219, 0.1624155641, 0.2194193155, 0.1139149219, -0.0013124789, -0.0492320769, -0.0014722155, 0.2622923851, -0.0268517099, -0.1413231194, -0.0778414831, 0.2837184668, 0.0961191431, 0.0593161099, 0.1322746128, 0.2900477052, 0.1236947179, -0.1032894477, -0.2954338193, 0.3227509558, 0.0487125106, 0.0157524832, -0.1815986782, -0.2887386978, -0.1471751332, 0.2944404185, 0.1282437146, -0.4241610467, 0.0366091244, 0.1014779732, -0.1474779099, -0.5647772551, -0.2689584494, 0.0310034007, 0.1304192841, -0.4224376678, 0.0029286556, 0.2229581624, -0.2215263695, 0.1086910293, 0.2606768608, 0.3972254395, 0.0711615756, -0.0406863615, 0.0780455992, 0.161235109, -0.0970153213, -0.0213421769, 0.1330571026, 0.395973146, 0.0595554188, 0.4312087595, 0.1554001421, -0.2270973176, -0.131278798, 0.160135746, 0.2482584268, -0.2205243409, 0.3555720448, -0.4328973293, -0.0254962277, -0.1343967915, -0.1916448772, -0.3688807786, -0.3810174465, 0.1385918856, -0.0146636609, 0.1029563621, -0.3113946319, 0.0573141947, -0.0809970573, 0.4928002954, 0.378955543, 0.1840617061, -0.0687080324, -0.3380780518, -0.6391942501, 0.1751745194, -0.0173919983, 0.025197275, 0.2015954256, 0.1057161391, -0.1672097594, 0.1135192141, 0.0707193017, 0.237264052, -0.1321407557, 0.2497559339, -0.1750147045, -0.2103186995, 0.1149310693, 0.0964245796, -0.0467678979, 0.0447343439, 0.2006983906, -0.3258144855, -0.0963022783, -0.2115379572, -0.1136514172, 0.0360333286, -0.0915633366, 0.5129441023, 0.0658961684, 0.3182295859, -0.0520749204, -0.485275656, -0.3249719739, -0.0278340615, -0.1729279608, 0.4495978653, -0.0246302858, 0.2191179246, 0.0242383275, -0.0864949301, -0.364790976, -0.2130102515, -0.1066681445, -0.0028697329, -0.4310641289, -0.0297652911, -0.1603891253, 0.0877434239, 0.0663833171, 0.0979453027, -0.2329794317, 0.1573594958, -0.4367949069, -0.3176772296, 0.4234059453, -0.535865128, -0.1900762767, 0.0696813241, 0.2336655855, -0.5565729737, -0.2104775757, -0.5639576316, 0.1165159866, 0.2500997186, -0.0411403961, -0.3502580225, 0.1159007996, -0.160315156, -0.151549384, 0.1310312152, 0.3185493648, 0.2171225548, -0.4408486485, 0.2020275593, -0.1629110724 ]
https://github.com/huggingface/datasets/issues/3499
Adjusting chunk size for streaming datasets
Hi ! Data streaming uses `fsspec` to read the data files progressively. IIRC the block size for buffering is 5MiB by default. So every time you finish iterating over a block, it downloads the next one. You can still try to increase the `fsspec` block size for buffering if it can help. To do so you just need to increase `fsspec.spec.AbstractBufferedFile.DEFAULT_BLOCK_SIZE ` Currently this is unfortunately done in a single thread, so it blocks the processing to download and uncompress the next block. At one point it would be nice to be able to do that in parallel !
**Is your feature request related to a problem? Please describe.** I want to use mc4 which I cannot save locally, so I stream it. However, I want to process the entire dataset and filter some documents from it. With the current chunk size of around 1000 documents (right?) I hit a performance bottleneck because of the frequent decompressing. **Describe the solution you'd like** I would appreciate a parameter in the load_dataset function, that allows me to set the chunksize myself (to a value like 100'000 in my case). Like that, I hope to improve the processing time.
99
Adjusting chunk size for streaming datasets **Is your feature request related to a problem? Please describe.** I want to use mc4 which I cannot save locally, so I stream it. However, I want to process the entire dataset and filter some documents from it. With the current chunk size of around 1000 documents (right?) I hit a performance bottleneck because of the frequent decompressing. **Describe the solution you'd like** I would appreciate a parameter in the load_dataset function, that allows me to set the chunksize myself (to a value like 100'000 in my case). Like that, I hope to improve the processing time. Hi ! Data streaming uses `fsspec` to read the data files progressively. IIRC the block size for buffering is 5MiB by default. So every time you finish iterating over a block, it downloads the next one. You can still try to increase the `fsspec` block size for buffering if it can help. To do so you just need to increase `fsspec.spec.AbstractBufferedFile.DEFAULT_BLOCK_SIZE ` Currently this is unfortunately done in a single thread, so it blocks the processing to download and uncompress the next block. At one point it would be nice to be able to do that in parallel !
[ -0.5548549294, -0.2060949802, -0.1399072856, 0.0709016994, 0.0956754312, 0.0037738408, -0.1515313387, 0.3243740797, -0.1375258565, 0.2203868628, 0.0862965137, -0.0971089303, -0.1958140284, 0.5901542902, -0.1302232891, -0.1306979507, -0.1648022532, 0.0590562895, 0.0277798381, 0.1990038157, 0.0974327028, -0.0189409852, 0.0198093485, -0.6022530198, 0.1881756932, 0.0265390463, 0.1503474116, 0.0122204097, -0.3508108556, -0.3309926093, -0.1004800573, 0.4133903682, 0.1716551036, 0.1305892766, -0.0001138771, -0.2089525461, 0.2831511796, -0.3095949888, -0.3822434843, 0.1872399896, -0.0764363036, -0.4439765513, -0.0631274506, -0.0710716099, -0.0751123577, -0.1969991475, 0.0391195193, -0.3250284791, 0.2127857655, 0.0869815499, 0.1483975649, -0.0796459764, -0.1940462142, 0.1860072911, -0.0643227547, 0.3127611578, -0.085299924, -0.0802974179, 0.3420883119, 0.1993032396, -0.2087542117, 0.2976884246, -0.1112685949, 0.2460092455, 0.4956052005, -0.4455622435, -0.09277419, -0.371388644, 0.102919966, 0.2438620329, 0.714507997, -0.0832658261, -0.2557314038, -0.5224410295, 0.0802910924, -0.1425321102, -0.1151218116, 0.2609227896, -0.3283981383, 0.0298275668, -0.365206033, -0.273465991, -0.1098367795, 0.1022279933, 0.3073311448, -0.2195441127, -0.1205581129, -0.001808546, 0.3249648809, -0.2240156233, 0.0422480144, -0.0486533046, -0.0074204765, 0.1300520599, -0.4647016525, -0.1544582099, -0.0001658416, 0.2702718079, 0.1700455099, 0.1758772731, 0.1972462088, 0.2038179636, 0.2580966651, -0.0763950348, 0.1709879041, -0.0837272182, 0.0980356336, -0.3131632805, 0.0736216977, 0.1371891797, -0.015282236, -0.0528652705, 0.0291849561, -0.0000591375, -0.4178836644, -0.0125346025, -0.044649262, 0.0057947366, -0.001192056, -0.1839696765, 0.1298347563, -0.0953537971, -0.0289771892, 0.2909840643, -0.0777792484, 0.5712604523, -0.1752859056, -0.2165400088, -0.3459455073, -0.4310779274, -0.0761375204, -0.2338293046, -0.0888478607, 0.2020256817, 0.169388473, -0.2783120871, 0.0399975739, -0.0936398134, 0.0666551143, 0.295904696, 0.1052632928, -0.3066129088, -0.0380076766, 0.3085612655, -0.1494263858, 0.0043671867, -0.2215294987, 0.4809817672, -0.2179928273, 0.1457765996, -0.194769159, -0.2696138024, 0.0731983781, 0.1156844795, 0.134638086, 0.0157066528, -0.3504624367, 0.5784114599, -0.0331892893, -0.2501258552, -0.1421144903, -0.0717108473, -0.3559536934, -0.203167215, -0.0027024432, 0.3025586903, -0.183369413, -0.1387616098, -0.2062048465, 0.0249584243, 0.4835467935, 0.3386744261, -0.0591220818, -0.1587149501, 0.0625110418, 0.0559519939, 0.4195453525, -0.1484155655, -0.5411463976, 0.5417987108, -0.1105485708, 0.0662713423, 0.4418466687, 0.0538836941, 0.5593796372, 0.0295012183, 0.161076501, 0.5086995959, -0.098968409, 0.2482570261, -0.1194730997, -0.3432942629, -0.1102903336, 0.1816513389, -0.1134660691, -0.0218741447, 0.0758950636, -0.125797987, 0.372990042, -0.0546653941, 0.2732227743, 0.2300445735, 0.2394281179, -0.1282444894, 0.1102254242, -0.0546404533, -0.3041495085, 0.1005888507, 0.3771882355, -0.2742822766, 0.4221670032, -0.1015228108, 0.1392829418, -0.2924571037, 0.3437580466, 0.0143321846, -0.0150854019, 0.0635126755, -0.1415155083, -0.2458222508, -0.2408815026, 0.5416978002, -0.1826698184, 0.0616598502, -0.0008492189, -0.0377129018, 0.532812953, -0.2159738243, 0.1566022933, -0.2308301628, 0.0528137647, 0.1152117029, -0.1857105196, 0.1515425146, 0.3441094756, 0.3726286888, -0.0281281378, 0.1839377284, 0.2270568013, 0.0714290366, 0.4088124931, 0.1027821973, 0.0044044806, -0.1532725692, -0.1182702929, 0.1954164654, -0.2255041897, 0.1792746633, 0.2026896477, -0.340115875, 0.2510656714, 0.066439122, 0.001169774, -0.0431165136, 0.3955658674, -0.0858117789, 0.3505116999, 0.0787205324, -0.1897360086, 0.2620830536, 0.0560874864, 0.1158516407, -0.4359901249, 0.5846377611, -0.2539600134, -0.1535601765, 0.3386848867, 0.3428372145, 0.5393021703, 0.3318009973, 0.2848132253, -0.0417930186, 0.5781963468, -0.1954745501, 0.1448602229, -0.186692968, -0.0303388275, 0.2474902421, 0.1746100485, -0.1949789077, -0.2564770579, 0.1638406962, 0.1095270887, 0.0178816337, -0.0907403231, -0.0087430822, -0.2588245273, -0.3494363129, -0.1342977285, -0.1267887801, -0.0736306086, -0.0985529944, 0.0112498896, 0.349786669, -0.1481425464, -0.1212904826, 0.0460210331, 0.47661075, 0.018712109, 0.019847421, -0.1462801844, 0.0527703241, 0.1501653045, 0.0760687292, 0.0079562403, 0.2590301335, 0.2484205514, -0.0261918344, 0.1088612154, -0.2026824057, -0.0406626314, -0.0431992635, 0.1804898381, 0.1973839849, -0.0353203937, 0.2131907791, 0.2141071707, -0.1070540622, -0.1390106827, -0.1780701578, -0.02875847, -0.2339562476, -0.0495068654, 0.289631635, -0.1170560271, 0.0764805973, -0.470761925, -0.4896783233, 0.4149020612, -0.1123197079, 0.0470684133, -0.1421617717, 0.0849485621, -0.2890694141, 0.1288808733, -0.0452249944, -0.1030428931, -0.4842690229, 0.1586178541, -0.2339250445, -0.2634831369, 0.1136211082, 0.2403647155, -0.1749455333, 0.5149565935, -0.2933390737, 0.4796843529, -0.2028425783, -0.1563823372, -0.242993623, 0.0295387395, 0.0197617654, -0.2346161008, 0.0164282471, -0.1021760479, -0.1840994507, -0.2393689156, 0.488576144, 0.5038709044, 0.0644812956, 0.5198025107, 0.0777112469, 0.6940977573, 0.3563836813, -0.1030330956, 0.3544609249, 0.2052443773, 0.123182334, 0.0104197944, -0.1430019438, 0.7483280301, -0.0930239484, -0.200566262, 0.2809273601, 0.0622271113, -0.3452652693, -0.0382141769, -0.3934489489, 0.0197808091, -0.0658253431, 0.2850175202, 0.0705929026, 0.1195873693, -0.1004380509, -0.0430555753, -0.3599026501, -0.3526488543, -0.1385388374, 0.2067494094, 0.2703332603, 0.0217371956, -0.029287098, 0.384498179, -0.7007573843, 0.2942791581, 0.0585198849, 0.0526989996, -0.0356041826, -0.1241057292, 0.1185260564, 0.0492368154, 0.5051513314, -0.109466143, -0.2374856472, -0.1274815053, 0.1185324043, -0.2975131273, -0.0177964624, 0.3244038224, 0.2191967666, 0.2772735059, -0.0868438929, -0.2981623709, -0.0486376584, -0.1673460454, 0.0916022211, -0.0417136326, -0.3198791444, -0.0829976574, -0.035396304, -0.3399866223, 0.0246899296, -0.1212992966, -0.0623654947, -0.0773839578, -0.1938896924, 0.2330391854, -0.06050466, 0.0691047087, 0.0642553121, 0.1521875113, 0.2211732566, 0.1877817363, 0.1600384414, 0.098321788, 0.6625747085, 0.3844189346, 0.0912801549, -0.2174673527, 0.0379032865, 0.3072871268, 0.2231049687, 0.4129774868, 0.0631273687, 0.2759579718, 0.1775350124, 0.3802471757, -0.4833876491, 0.2555630505, -0.0636189356, -0.0006260975, -0.3014769256, -0.5744559765, 0.3033336997, -0.0210562199, 0.1234415248, 0.677965343, -0.287835896, -0.0874807909, 0.0297872499, 0.3060310483, 0.811467886, -0.0242932402, -0.1572080553, -0.3006377816, -0.259196043, 0.0147217903, -0.8571311831, 0.227144748, -0.0453315638, -0.1583239734, 0.0370780751, 0.0413741171, 0.2784550786, 0.2085422277, -0.1847786754, 0.1707967967, 0.2169277966, 0.0976805091, -0.3339747488, 0.2725727558, -0.5053741932, -0.3915425539, -0.1292779148, 0.1510330737, -0.3422828913, -0.03224767, 0.0219443701, -0.1073187515, 0.2755927444, 0.0130166942, -0.4952931404, -0.2776521146, -0.5207623243, -0.2737562656, -0.3341234326, -0.0571087226, 0.150385648, -0.0575374439, -0.2981042564, -0.0012043513, -0.2781783044, 0.3969913125, -0.1006803438, 0.2040701658, -0.1625208706, -0.2496972829, -0.0189778041, -0.1514986455, -0.2593204975, 0.0605670325, 0.184786737, -0.3555109203, 0.2787855268, -0.1987335235, -0.0773630589, -0.0151771698, -0.4186158776, -0.0641385466, 0.2179890871, 0.0023197385, 0.0735631287, 0.0327473618, -0.0430102609, 0.328455478, -0.0209250078, 0.0139909666, -0.2841003537, 0.4306180775, 0.0267275255, -0.1755579263, -0.04930529, -0.0010590657, -0.3574942648, -0.0513233952, 0.1079738289, -0.2182951421, 0.4373326004, 0.0495642051, -0.013002703, -0.1258395165, 0.2446836978, -0.0892697945, -0.0007859178, 0.0469962731, -0.234400928, -0.1400108933, -0.4216789901, 0.0379647501, -0.4223126769, 0.0382743739, -0.0800085515, -0.1613309383, 0.0628003851, 0.4889517426, -0.2667131722, 0.0529985204, 0.199718073, -0.0342184752, 0.0106218187, 0.1354298592, -0.1743629128, 0.0178020038, -0.091792278, 0.2202025354, -0.2331603467, -0.1306261569, -0.0950058475, 0.1314042062, 0.0355996974, -0.0298055764, -0.1154438257, -0.4000824094, -0.3407160938, -0.3715803921, 0.1886183769, -0.1452809274, -0.1335856915, 0.0025239966, 0.5514860153, -0.3404501975, 0.010194351, 0.4250927567, 0.2143087983, 0.3001408279, 0.1241715252, 0.0762173459, -0.0003247129, 0.012624708, 0.0505245961, -0.0190830026, 0.3585012257, -0.032711219, 0.1134361252, 0.1002184525, -0.0409511812, 0.0837375894, 0.183483243, 0.5264680982, 0.1983393133, -0.0539318323, 0.1471477598, 0.1688825041, -0.0468736589, -0.1298504323, 0.2799853981, 0.1625714749, 0.0695395395, -0.0812076181, 0.2616969049, -0.0252378378, -0.1057608277, 0.0885429606, -0.0271009803, 0.1139478683, 0.0831051394, 0.1372694075, 0.2450551987, -0.0333697721, -0.0007695805, 0.0549666882, 0.3573911488, 0.4375030994, 0.0858765319, 0.3682952523, 0.3767833412, 0.3304555118, -0.1918129474, -0.6664574742, -0.0402671322, 0.2663766146, -0.24928312, 0.3042285144, 0.3239508271, -0.1129048988, 0.379928112, -0.3075678647, -0.2188664228, 0.343339324, 0.0205848105, -0.1911492497, 0.1654798239, -0.216076985, 0.0529676042, 0.3139428198, -0.1310097724, -0.0618010797, 0.4564537406, 0.1341497153, 0.1402531117, -0.1739798337, -0.29578951, -0.1330892295, 0.2771457136, -0.2437075078, -0.1188023835, 0.0387880169, -0.0153911365, 0.1637924314, -0.0441503115, 0.0889902115, 0.1295391619, -0.096135363, 0.0714255124, 0.1700604558, 0.0194146577, -0.1914385855, 0.3155183196, 0.2294637561, 0.1642506719, 0.0451554842, 0.0602056384, -0.1530702263, -0.1301465034, -0.176633656, -0.1272940636, -0.4508861601, -0.1606410444, 0.1381365359, 0.1461101472, -0.3326840103, -0.1143090725, -0.2242079824, 0.0999642089, 0.6507689357, -0.4025448561, 0.0344319046, 0.0232597515, 0.0701484904, -0.334988296, 0.5620495677, -0.0650161356, -0.0845162049, -0.0527343713, -0.395640403, -0.2580489516, -0.0744396225, -0.3585495353, 0.1604908407, 0.1484897435, 0.1796065122, 0.2909391224, 0.2158577591, -0.1070820913, 0.0587865859, 0.2677943408, 0.3796484172, -0.3456787467, -0.1817950457, -0.2183093429, 0.1114416942, 0.0173275992, -0.2360065281, 0.2695620358, 0.1962967366, -0.0696101636, -0.1229689121, -0.069147557, 0.2355487198, -0.059382014, 0.1490563154, -0.0859223679, 0.275515765, -0.1976388991, 0.0165276099, -0.0744873956, 0.1003152356, -0.1262428015, -0.0987047032, -0.0313244313, 0.4278834462, -0.1141045466, 0.2028410733, -0.1977928877, 0.3796216249, 0.0241954625, -0.2389870733, 0.0261677466, -0.0796793625, 0.0047487686, 0.1319212466, 0.0307089072, 0.424975276, 0.0731642246, -0.1099381372, -0.1837791055, 0.0035174983, 0.5441663265, -0.371854037, -0.0935260803, -0.1033874005, 0.1321133077, 0.218906641, 0.0907068253, -0.5247268081, 0.137498185, 0.1466097385, -0.1811846495, 0.1478834152, 0.4874657691, 0.115499042, 0.0399439633, -0.0674509779, 0.2391459048, 0.1656030267, -0.0688279122, -0.4222284853, -0.3215138316 ]
https://github.com/huggingface/datasets/issues/3490
Does datasets support load text from HDFS?
Hi ! `datasets` currently supports reading local files or files over HTTP. We may add support for other filesystems (cloud storages, hdfs...) at one point though :)
The raw text data is stored on HDFS due to the dataset's size is too large to store on my develop machine, so I wander does datasets support read data from hdfs?
27
Does datasets support load text from HDFS? The raw text data is stored on HDFS due to the dataset's size is too large to store on my develop machine, so I wander does datasets support read data from hdfs? Hi ! `datasets` currently supports reading local files or files over HTTP. We may add support for other filesystems (cloud storages, hdfs...) at one point though :)
[ -0.3971250355, 0.0771138072, -0.218753159, 0.3979658782, 0.0818777084, -0.0516116247, 0.3947126865, 0.0203535222, 0.3752122521, -0.010376093, -0.409894079, -0.113229543, 0.0458144359, 0.4414334893, 0.1317270696, 0.1704085916, 0.0876928717, -0.0880468041, -0.078074418, -0.0664894506, -0.0723645613, 0.0449705273, -0.195840776, -0.0986035466, -0.1383964866, 0.0206857342, -0.2444385588, 0.1659330428, -0.18079108, -0.1719963104, 0.2904438674, 0.2946030796, 0.2875446975, 0.320738256, -0.0001013837, 0.0132858539, 0.2074206322, -0.0434819683, -0.2026391178, -0.3350117505, -0.0653472245, -0.2407705784, 0.0035842655, -0.2166060656, -0.0226572771, -0.2916091383, 0.1962842792, -0.3205721676, 0.1705724597, 0.0757756755, 0.2325267047, -0.0088318083, -0.1013400927, 0.0907872096, 0.1396612376, 0.5480784178, -0.1571070403, 0.0220933054, 0.4860543609, 0.2169068009, -0.1732484847, 0.1997142583, -0.0902613252, 0.1511501223, 0.1779232174, 0.1132756472, -0.154600963, -0.2904854119, 0.0558003709, 0.242313832, 0.9940251112, -0.3276416957, -0.4075830579, -0.3322303593, -0.0641547367, 0.1604029983, 0.3607275188, 0.3255703151, -0.1696308106, 0.4253826737, -0.5047803521, -0.6933264732, -0.1363621056, -0.0957369357, -0.0807734728, -0.0932076946, -0.3084052801, -0.1098838151, 0.0643698797, 0.09138266, 0.7180294991, -0.3602028787, -0.0597853027, 0.208461836, -0.2561233342, -0.09607324, -0.3207001686, 0.090255253, 0.2026826888, -0.2118566483, 0.0198483262, 0.2277432084, -0.456663996, 0.0648563728, 0.5252538323, -0.2089336962, 0.306352824, -0.0718113482, 0.0628682673, -0.2984001935, 0.0360975228, -0.3316275179, -0.2401828617, 0.0921876356, -0.2810923457, -0.3829034269, 0.1116233245, -0.2253173292, 0.0822220221, 0.0337936357, 0.1559275687, -0.191353038, 0.0619581565, 0.391993314, -0.1081594899, 0.2064448744, -0.0714290589, 0.0408841595, 0.0963770524, -0.2708083391, -0.0522052236, -0.1336165369, 0.0331962965, 0.0372855403, 0.1115338504, -0.1255083382, -0.0152166355, 0.0489356443, 0.0978310034, 0.0926073939, 0.0981462672, -0.3789801896, 0.2233299166, 0.1619251668, 0.0714054629, 0.1607790291, 0.0607539788, -0.2745659351, -0.0073827631, 0.3100049496, -0.5396038294, -0.1091498956, -0.0649786592, 0.2071305215, -0.0480632484, -0.0459499732, -0.5413886905, 0.2662038803, -0.2232275158, -0.0022773012, 0.0217976607, 0.1019905061, -0.1735139936, -0.0805799961, 0.150274545, 0.1084256321, -0.531591773, 0.0687942356, -0.1965747029, -0.3105777502, -0.1554384977, 0.1261643469, -0.0588436909, -0.059966471, -0.1359011233, 0.3645388484, 0.3171961308, -0.212013945, -0.0320080742, 0.7275361419, 0.3368389606, -0.1937544495, -0.3636115193, 0.0429060012, 0.2797921598, 0.0767889768, 0.0072785015, 0.3445053101, 0.1434055716, -0.0343246013, -0.0992920995, -0.2606255114, -0.1513897181, 0.3098197877, 0.1538521498, 0.0209492873, 0.2251601368, -0.1150300726, 0.3242800534, -0.0703151822, 0.0500113294, 0.3459137678, 0.223700121, 0.3099581301, -0.0678345263, -0.1959764212, -0.156672433, 0.2332296818, 0.2586606443, -0.2221779972, 0.1721015722, -0.1538184881, 0.1086555049, 0.1497267634, -0.0045291716, 0.1427992433, 0.1545957327, 0.038808383, -0.239828974, 0.0632676929, -0.3949104846, 0.4017185867, -0.3499348462, -0.0181993823, 0.0926125646, 0.4166499376, -0.0106172292, 0.0808213949, -0.0876211673, -0.1749964505, -0.1940188408, -0.0414364412, 0.1010764912, 0.4668953121, -0.0750198886, 0.2455575615, 0.2863831818, 0.1798900068, 0.2454584837, -0.1643284857, 0.2677402496, -0.1628618389, 0.2774425447, -0.0821914151, -0.302005589, 0.208900407, -0.2663176954, -0.0514874235, 0.0614554472, -0.02038843, 0.0925379768, -0.0201943293, 0.0566268563, -0.0049064918, 0.0394118391, -0.0558152981, 0.2595348954, -0.0715444088, -0.3631033897, -0.0958031788, 0.2407077998, -0.0317037739, 0.0271429364, 0.1611094028, -0.3337492049, -0.2464179248, 0.32789433, 0.117070213, 0.2371633351, 0.2530483603, 0.2812438905, -0.0230469201, 0.150565207, -0.0941455662, 0.1930574775, -0.1070412621, -0.1335048378, -0.0494759195, -0.0451730825, -0.1455818862, -0.3172803521, 0.1474347413, 0.052619826, -0.0921370983, -0.2168501765, 0.0984407514, -0.1659572124, -0.1912461966, 0.2519090772, -0.1315381974, -0.1917567849, -0.0826797336, 0.0158639289, 0.1581758708, 0.1226818413, -0.3144493401, 0.0499447212, 0.3406345248, -0.1327798218, 0.0643341839, -0.4494994879, -0.1645041406, -0.0645794645, 0.1781387627, 0.4641901553, 0.1733228564, 0.1368009299, 0.007894313, -0.0287120398, -0.179861322, 0.1170420423, 0.2090582252, 0.0459233746, 0.1049795374, -0.3072610497, 0.1867196262, -0.2108757198, 0.2874259055, -0.0336629562, -0.0681386366, -0.2360317111, -0.246449694, 0.3845225871, -0.1867472827, -0.121092394, -0.0512890518, -0.3403863013, -0.1262527257, 0.2414739132, 0.0097173229, 0.0269967876, 0.1361627877, 0.065131247, 0.210368365, -0.0211636946, -0.0318977684, -0.1222805753, -0.7032641172, 0.2029697299, 0.0007149058, -0.3657358885, 0.1774184853, 0.3640442491, -0.4068465531, 0.3074138165, -0.5222821236, 0.1057422757, 0.0909912288, 0.0678118765, 0.0349542648, 0.1624973714, 0.1927145422, 0.0572926179, -0.0291601047, -0.1969805658, 0.0112018865, -0.0817696005, 0.0078595756, -0.1554272175, 0.1054017469, -0.0368547663, 0.1991499364, 0.2418666333, -0.1906702369, 0.061072275, 0.315939486, 0.115839839, 0.4249776602, 0.0039970474, -0.1487402469, 0.1157604605, -0.2114353925, -0.1746855974, 0.4164539874, 0.1546481848, -0.1371940821, -0.2766760886, -0.1114200279, -0.3160533607, 0.058798749, -0.0398502089, -0.2241227627, 0.2605805993, -0.1281064004, 0.0526999086, 0.0743291974, -0.2268376052, -0.0877999514, 0.2188949883, 0.1241167784, -0.0797827989, -0.2687271535, 0.3753612638, -0.0209276024, 0.1096565127, 0.0766719952, 0.0557565428, -0.2031211406, 0.1307037026, 0.2133855671, -0.2525707185, 0.384378314, -0.2510576546, -0.151065886, -0.0568996817, -0.0462468006, -0.1117755175, 0.1163949147, -0.2548986971, 0.2196146697, 0.081443131, 0.461751163, 0.1356811821, -0.3283415437, -0.2861849368, 0.1399367899, -0.2545399964, -0.3153916597, 0.1508035213, 0.003957225, -0.2309050262, -0.1828646213, 0.0704415217, -0.0187244862, -0.0908368677, 0.0445827879, -0.1170883924, 0.1807833165, 0.2069289833, -0.0084350025, 0.0329286568, -0.1885735542, -0.0229154099, -0.068221502, 0.4075338542, 0.2799819112, 0.5544926524, 0.2130820006, 0.0868293568, -0.0370096341, -0.3643520772, 0.2361480147, 0.1231805608, 0.0381938331, -0.0491413847, 0.0258528236, -0.1864316911, -0.5430471897, 0.0210451093, 0.1319637746, 0.1098017916, -0.3234421313, -0.3834822178, 0.6478251815, -0.2295481712, -0.1335881352, 0.04086335, 0.1744517237, -0.334066987, 0.0558115132, 0.1412142217, 0.633207202, -0.1126508638, 0.0784547031, -0.1651678383, -0.1958265454, 0.0561603419, -0.5668249726, -0.2198374718, -0.2977615893, -0.3294915259, -0.3011461496, -0.0698156953, 0.2832405865, 0.4605335891, 0.0800951496, -0.0346692875, 0.4697444141, -0.0809563249, 0.0312903821, 0.2704176307, -0.2013940364, -0.1642512977, -0.2409139723, 0.289755255, 0.0236444883, -0.1535634398, -0.1366321594, -0.1003482938, 0.2356123179, 0.1368017942, -0.3608240783, 0.0230365377, 0.1967653632, -0.0844514295, 0.1450080723, -0.1430663913, 0.3515464664, 0.3283938468, 0.467933774, 0.1470253468, -0.3747096062, 0.0298228525, -0.1087336987, 0.0932632014, 0.1541749239, -0.0536162853, 0.1630585492, -0.0097716888, -0.0679912493, -0.002163593, 0.1218699664, -0.1383872479, 0.1132924631, 0.0730631873, 0.0209545381, -0.2869136035, -0.3517866731, 0.0200893451, 0.0057111057, 0.1414717883, 0.1710253209, 0.055944223, 0.0636888668, 0.0361098535, 0.0900338292, 0.016349297, -0.2262926847, 0.3404255509, -0.1118296087, 0.0115297455, 0.0002118233, 0.2866060138, -0.3772955239, -0.2544058263, 0.4264578223, 0.257828474, -0.0293806847, -0.1594825089, 0.0081995986, 0.0979634896, -0.2858792841, 0.0360760316, 0.0045240372, -0.2659564018, -0.2877492607, -0.3670379817, -0.0505384468, 0.2199022472, -0.0867635533, 0.202527985, 0.2840093076, -0.1898489445, 0.2130570859, -0.1017903909, -0.367918998, 0.2295063585, 0.0416934341, -0.0303881411, 0.077682294, 0.0652158037, 0.1064089537, -0.3660125136, 0.10960944, -0.1188462973, 0.0520431586, -0.2233579308, 0.1796099246, 0.1241412386, 0.1889328957, -0.0979175046, -0.2215835899, -0.4259315729, -0.2710591853, -0.1682938933, 0.0321349204, 0.2191642672, -0.1453280151, 0.3766791821, 0.2469792813, 0.2446731925, -0.4533387423, 0.2715673149, 0.0641985312, 0.3495729864, -0.2082402557, 0.0968219414, 0.2537488341, -0.0043076281, -0.2144665122, 0.3360041082, 0.2310150415, -0.0427047722, 0.6474112868, -0.2355476171, 0.3314418793, 0.1415223628, 0.5365489125, 0.2557907104, -0.1344551295, 0.0586676672, 0.2276541144, 0.2706718445, -0.0875390321, -0.1817889214, -0.0161929484, -0.2554854155, 0.0196503997, 0.075587213, 0.3084515035, 0.2345025539, -0.2854111493, 0.1928466111, 0.2017842531, -0.0910917893, -0.23435615, 0.2560019195, -0.0133945988, 0.022209188, 0.1025582254, 0.2533768117, -0.0450322405, 0.6536272168, -0.0651362613, 0.0696539059, 0.5037750602, 0.1776049137, 0.1051678807, -0.4530054033, 0.2497780472, -0.0359539762, 0.0811736435, 0.089697063, -0.2621039152, -0.1556509286, -0.0772665516, 0.0348113365, -0.1836318076, 0.0529702939, -0.1490364671, -0.1468459815, -0.0258106627, -0.2588817179, -0.2495447546, 0.2140415609, -0.2978693247, -0.1690338999, 0.2895098031, 0.0814273506, 0.1346772909, -0.1622852087, 0.3473626971, 0.1389364898, -0.1670948267, -0.2505588233, 0.2972937822, -0.0526670441, 0.283470422, 0.3189079165, 0.3463155627, 0.1596883982, 0.2142126709, -0.2302840203, 0.0293868724, -0.2664845288, -0.3235546052, -0.0678277984, 0.2185070068, -0.175426662, 0.2801147401, 0.4245687425, 0.2662858367, -0.0162276346, 0.3588001728, -0.3215705752, -0.0506055132, -0.2781096995, 0.4176150858, 0.1007362902, -0.1596618742, -0.0539455116, -0.2144303471, -0.3227051497, -0.2961522937, 0.5862170458, -0.3292159438, 0.2007164806, 0.0524297878, 0.1422120035, -0.1374123693, 0.3650425971, 0.5731448531, 0.0434536263, 0.0955738872, -0.0945826843, -0.4369727373, -0.1338149756, 0.0678446144, 0.0089025218, 0.0107816253, 0.1830524057, 0.3862344921, 0.4467965066, -0.1869352013, -0.0153478878, -0.1822256595, 0.1298723072, -0.1657508612, -0.0767756328, 0.0460374467, 0.3952319622, -0.2897906899, -0.1724505574, 0.4173537791, 0.0182472821, 0.0265926011, 0.0457677208, 0.2714346945, 0.0977409929, -0.5929439664, 0.0614739433, -0.1603625566, 0.2355481088, -0.1721981615, 0.2414250225, 0.1373959631, -0.1280042976, -0.1305268854, 0.1907344609, -0.0574578494, 0.1716884822, -0.3571233451, -0.08256495, 0.0647052377, -0.0814751014, -0.1640084684, 0.3353146017, -0.1368272901, -0.2502538264, -0.2477086931, 0.0425930731, 0.1390909702, 0.1823730618, 0.0429899842, -0.0781135708, -0.1135294586, -0.2151606381, 0.1451539397, -0.0872517154, -0.1353379786, 0.0589492358, -0.2858801186, 0.3859556317, 0.1200227812, -0.6641353965, 0.1055158004, 0.540571332, -0.1386525631, 0.1021634415, 0.0195409618, 0.1281976104, 0.1179981604, -0.3420709074, 0.198147282, 0.0382942148, -0.1321630478, -0.2538728714, -0.0975822434 ]
https://github.com/huggingface/datasets/issues/3488
URL query parameters are set as path in the compression hop for fsspec
I think the test passes because it simply ignore what's after `gzip://`. The returned urlpath is expected to look like `gzip://filename::url`, and the filename is currently considered to be what's after the final `/`, hence the result. We can decide to change this and simply have `gzip://::url`, this way we don't need to guess the filename, what do you think ?
## Describe the bug There is an ssue with `StreamingDownloadManager._extract`. I don't know how the test `test_streaming_gg_drive_gzipped` passes: For ```python TEST_GG_DRIVE_GZIPPED_URL = "https://drive.google.com/uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz" urlpath = StreamingDownloadManager().download_and_extract(TEST_GG_DRIVE_GZIPPED_URL) ``` gives `urlpath`: ```python 'gzip://uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz::https://drive.google.com/uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz' ``` The gzip path makes no sense: `gzip://uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz` ## Steps to reproduce the bug ```python from datasets.utils.streaming_download_manager import StreamingDownloadManager dl_manager = StreamingDownloadManager() urlpath = dl_manager.extract("https://drive.google.com/uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz") print(urlpath) ``` ## Expected results The query parameters should not be set as part of the path.
61
URL query parameters are set as path in the compression hop for fsspec ## Describe the bug There is an ssue with `StreamingDownloadManager._extract`. I don't know how the test `test_streaming_gg_drive_gzipped` passes: For ```python TEST_GG_DRIVE_GZIPPED_URL = "https://drive.google.com/uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz" urlpath = StreamingDownloadManager().download_and_extract(TEST_GG_DRIVE_GZIPPED_URL) ``` gives `urlpath`: ```python 'gzip://uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz::https://drive.google.com/uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz' ``` The gzip path makes no sense: `gzip://uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz` ## Steps to reproduce the bug ```python from datasets.utils.streaming_download_manager import StreamingDownloadManager dl_manager = StreamingDownloadManager() urlpath = dl_manager.extract("https://drive.google.com/uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz") print(urlpath) ``` ## Expected results The query parameters should not be set as part of the path. I think the test passes because it simply ignore what's after `gzip://`. The returned urlpath is expected to look like `gzip://filename::url`, and the filename is currently considered to be what's after the final `/`, hence the result. We can decide to change this and simply have `gzip://::url`, this way we don't need to guess the filename, what do you think ?
[ -0.1200753972, -0.2668937147, 0.0669212714, 0.1035846621, 0.1400488615, -0.0840494558, 0.0135708721, 0.1877432615, -0.1366844773, 0.3031463623, 0.1042386517, 0.077818729, 0.1425676942, 0.2099909484, 0.179748401, -0.2270773351, -0.1237718537, -0.102872692, 0.0296686087, -0.1007667929, -0.4542135596, 0.4369776249, -0.2181155831, 0.0931536779, -0.1255482733, -0.0209526438, -0.1915089935, 0.3402764797, -0.3238635957, -0.2631290555, -0.1054722816, -0.0093716811, 0.2223873883, 0.3188156188, -0.0001212824, -0.1656177342, 0.2562016845, -0.1779167205, -0.1950002611, -0.1478470564, -0.3134922981, 0.1760126203, -0.2776449919, -0.2585629523, 0.1006465182, -0.0153284315, -0.1159372777, -0.2997098565, 0.339194864, 0.5125176907, 0.1390043646, -0.123923704, -0.3674893379, -0.0947569087, 0.1236241162, -0.2848809361, -0.1213234216, 0.162598148, 0.1519924402, 0.171436429, -0.0579592101, 0.0737939402, 0.0791865215, -0.0424973294, 0.025607923, 0.0945156664, 0.1936361641, -0.3186736703, 0.1472056508, 0.048105482, 0.0222782753, -0.0452176966, -0.46393466, -0.0657656789, -0.1084435731, -0.1299150288, 0.2217296809, 0.2729938924, -0.1960270256, 0.2572202384, -0.2311238647, -0.1513137668, -0.173502937, -0.1299240142, -0.0995393693, 0.094469972, -0.0008799526, 0.1582343727, 0.124754183, 0.2794315815, -0.1233396754, -0.3653354645, -0.1166313291, 0.0935969576, -0.1529981047, -0.1528752446, 0.147449255, 0.1255502701, 0.0266649891, 0.4807077646, 0.0893489197, -0.1703300923, 0.3930551708, 0.1204740703, 0.0785761699, 0.3941887915, 0.0815762281, 0.201266408, 0.0804373994, 0.2944234312, -0.0386524685, -0.0561195128, 0.2512274683, -0.2972789109, -0.264929831, 0.1777308285, 0.3564287424, -0.1892911494, -0.3143884242, 0.0410931632, -0.2184205055, -0.030066479, -0.1831285954, 0.4634531736, -0.0371719114, -0.002168319, 0.247023195, 0.2550733685, -0.0162984449, 0.0164081417, -0.2703057528, 0.1108306125, 0.0052412627, 0.1522700489, 0.1034540161, -0.4277410209, 0.2165858597, 0.1216611937, -0.0663290992, -0.3253886402, 0.1092903391, 0.1975221634, 0.2440505773, 0.2815895379, 0.2030352503, 0.1765714288, 0.1365701109, -0.0425552055, -0.0792643726, 0.3035259843, -0.4789441526, -0.2224312872, 0.2801383138, 0.1416328996, -0.2264171094, -0.0024332984, -0.0432807989, -0.0530183464, -0.1679525971, 0.0470658652, 0.1476823688, 0.0755204707, -0.1294061691, -0.0703973621, 0.2232562453, 0.3170354366, 0.0154531058, -0.2153195143, -0.0630873293, 0.1426206678, 0.722528398, 0.1929921061, 0.009864579, 0.1071376428, -0.4924545288, 0.6328914165, 0.6310553551, -0.047122892, -0.3598884642, 0.5554043055, -0.3494948745, 0.199090302, 0.3580456674, -0.4840403795, 0.266972661, -0.0137389889, 0.0748405755, 0.3245824575, -0.2647053301, 0.034750443, -0.4339489937, -0.013624168, 0.2202377468, -0.1438930482, -0.0504895821, 0.2787369192, 0.0996065214, -0.2623200715, 0.4705971777, -0.0443034731, -0.2441941202, 0.0069799777, 0.2963030338, -0.2019274384, 0.3347882926, 0.2740220726, -0.027751077, 0.2024386674, -0.475440532, -0.1129156351, -0.2034953237, -0.1152489185, -0.4951960444, 0.0650238246, -0.0157860406, -0.4092567563, -0.0175519362, 0.2507524192, 0.0285219904, -0.0275336821, 0.0681426674, 0.0417354889, -0.0030223569, 0.0170635618, -0.1759831905, 0.3469675481, -0.1185142398, -0.0974383801, 0.1243605316, -0.0966360122, 0.4481047392, -0.2626684308, -0.3320673704, 0.3309872746, 0.3111212254, 0.3915637434, 0.2203548551, 0.0677020103, 0.0626716018, -0.417373538, 0.0207707956, 0.7088800669, 0.1294705123, 0.0722078308, -0.0293047093, 0.5234999657, -0.0741870329, 0.1418034136, 0.0212651156, 0.1899567991, 0.1998215765, -0.1221953854, -0.1874103546, 0.1892440766, 0.3354907036, -0.0118867913, 0.2948578, 0.0245109312, 0.0763459802, 0.1233005002, 0.3702920377, -0.1795663387, -0.1732230783, 0.1532424092, 0.0698932335, -0.2202911973, 0.2450279146, 0.3403728008, 0.4503230453, 0.0982947275, 0.3503684998, 0.1435111463, -0.0699765757, -0.3279801905, 0.6407837272, -0.108972393, -0.4544627964, 0.192901805, -0.2483638674, 0.02608376, -0.3615212739, 0.0955459327, 0.0175845921, 0.0299921334, -0.6068554521, 0.2411493212, -0.2486430854, -0.2277026027, -0.2852456272, 0.0009749703, 0.0640811846, -0.3842352331, 0.1202954724, -0.1218713522, -0.3477266431, 0.2709879875, -0.1980825961, 0.538628459, 0.0344489329, -0.3411827385, -0.4442928731, 0.2570397556, -0.253985256, -0.0070424406, 0.2330525219, -0.0270974282, 0.0660197139, -0.0242731925, -0.0045506996, -0.3552458286, -0.2418977618, 0.1212583184, -0.0444878563, 0.4292432368, 0.1443443, 0.0636556447, 0.219731316, -0.1883012354, 0.0551806316, -0.1560057104, -0.1982092857, 0.1446104199, 0.2099086642, -0.052967649, -0.3863252401, -0.4993726611, 0.1120016873, -0.171350345, 0.074801825, -0.4135669172, 0.0826641843, 0.4599467218, -0.1395973861, -0.0980935469, 0.195891425, -0.0127963312, -0.3415562212, -0.5274037719, 0.3688154519, -0.1424399018, -0.4720998704, 0.074266918, 0.0026528481, -0.1467401683, 0.253502816, -0.2937300205, -0.0057622599, -0.0556155555, -0.0544278473, 0.0494182594, 0.0360454656, 0.1581137031, -0.1332651079, 0.0452747382, -0.3576613069, -0.1635559946, 0.2795049548, 0.5095178485, 0.4986588955, -0.0841347873, 0.2681480944, 0.1264109612, 0.3988364041, 0.3047038913, 0.5839117765, 0.4116562903, -0.0551884025, 0.0183842629, 0.2383849621, -0.0552039929, 0.3487702608, 0.0519395843, -0.5321478844, 0.4542735517, 0.0521942005, -0.0545264557, 0.051597517, 0.3330844641, -0.157414034, -0.2319874018, -0.0164616965, -0.0999353975, 0.1069607511, 0.1890162081, 0.1825437099, 0.1747791767, 0.3096700609, 0.2095641643, 0.2400408089, 0.365247488, 0.191066578, 0.2361154407, -0.1467005163, -0.4802889228, 0.3420026898, 0.2577406168, 0.5094006658, -0.1106381118, -0.0348223671, 0.1806114018, -0.1188499108, 0.6626530886, -0.3599022031, 0.4005059898, 0.0920448899, -0.1398597807, 0.0031760701, -0.198814109, -0.1898696423, -0.2170692533, 0.127917856, -0.1526431441, -0.169672966, -0.0706013143, -0.0309895985, -0.2482087165, -0.1254056692, 0.0620189682, -0.1899370849, -0.6949264407, 0.0629381314, 0.0107638622, 0.147014156, 0.2371356785, -0.3122921288, -0.1007219851, 0.0730492473, -0.2525458634, 0.0738187879, -0.0040743207, 0.2944883704, -0.1919634044, -0.0766725838, 0.1235644296, 0.2216440588, -0.0330818072, 0.6188633442, 0.0346657969, -0.2143609673, 0.3271528184, -0.0581945404, 0.2109256834, 0.4971552491, -0.3514809608, 0.0964344293, 0.0299228337, 0.2774529755, -0.3315659761, 0.1105839685, 0.5453767776, -0.0007632508, 0.1238345578, -0.2404522747, 0.4009563327, 0.1100436375, -0.1567832679, 0.4755088687, -0.1334835589, -0.3817669749, 0.065315567, -0.2812456191, 1.0890734196, 0.2920976877, -0.1741755307, 0.4028506577, -0.3173712492, -0.2577384114, -0.0794483572, -0.0725695789, -0.046287667, -0.3538877964, -0.0814754292, -0.0859175473, 0.2889152765, 0.004892197, -0.5590984225, 0.360712558, -0.08009509, -0.0655554309, 0.3940043449, 0.0649343655, -0.3659229577, 0.1184831932, -0.3762477636, 0.0678395107, 0.1526277214, 0.1848487258, 0.0340032838, -0.2589255571, 0.0644648522, -0.6254307032, -0.2088350058, 0.352358371, -0.6331170797, -0.145378232, -0.2057499588, -0.2351444066, 0.009416271, -0.0942194834, -0.4529295862, -0.1928240955, -0.2826097012, 0.3354020119, -0.2249825895, 0.2836029232, 0.0810015649, 0.0652800202, 0.2487194538, -0.2044740617, 0.0676093474, 0.1488454193, -0.2087734193, -0.3831367791, 0.4252877831, -0.0042602536, -0.0933282375, 0.1321277618, -0.0377152748, -0.1779630333, -0.1194693893, -0.2146599144, 0.0544717573, 0.0114527373, -0.4172843993, 0.3075932264, 0.0519608036, -0.4796240628, -0.0901914388, 0.2978525162, -0.1912800074, -0.036754936, 0.3122785389, -0.3093907833, 0.0040555401, -0.1320990324, 0.0064591668, -0.3622965217, -0.0538325943, 0.2761695683, -0.2356163561, 0.0507849045, -0.0755534545, 0.405146718, 0.2231019139, 0.2498297542, -0.2470037937, -0.3411037028, 0.3022283614, -0.0636469871, -0.2948421538, 0.2083961517, -0.223208189, 0.2338163257, 0.2189512104, 0.0747937188, -0.2871099114, 0.1296388805, -0.1075053141, 0.0835128427, -0.1809891164, 0.102774635, 0.1573070139, -0.1450368911, 0.015299934, 0.1864757538, -0.1353390664, -0.1004412919, -0.2805224657, 0.1688864678, 0.2638989687, 0.0303068142, -0.1196189448, 0.0179209746, -0.1730193049, 0.0325327031, 0.0513810106, 0.0601187535, 0.0151762376, -0.0067925043, 0.4763721228, -0.2824745178, -0.3692724705, 0.0801955312, -0.089522399, 0.5318048596, 0.0145970695, 0.08157482, -0.3617493808, -0.0441270843, 0.0787470639, 0.0583159812, 0.2110491097, 0.1555881202, 0.3762273788, -0.060689088, -0.0876533836, -0.1011016518, 0.2077910751, 0.4460190833, -0.3039729893, -0.0730321184, -0.1148989946, 0.108871676, -0.0269339941, 0.0368711576, -0.2917588949, 0.2463604957, -0.0640543178, 0.2648598254, 0.0378959849, -0.1283916086, 0.1331822574, -0.0544047691, 0.2896150947, 0.3819791973, 0.2593824267, 0.2019237876, -0.0981404334, 0.469076097, 0.1209903657, -0.1248571351, 0.171429038, -0.437325865, -0.1285753101, 0.1651638001, -0.0296461079, 0.1666694731, -0.2353470027, -0.4123538733, -0.136112079, -0.051328823, -0.3690859079, 0.3190094233, 0.1865603626, 0.3266702294, -0.3274192512, -0.3163868487, -0.2172959596, 0.1122616157, 0.0866544172, -0.1161092892, 0.0747160167, 0.0033917835, -0.5350162387, -0.0598512702, 0.0900560096, 0.1017684713, 0.176911667, 0.0737633929, -0.093165867, -0.0344621241, -0.5297955871, 0.0136910174, 0.1653534174, -0.4307606816, 0.3242805302, 0.0085474579, -0.0952088684, 0.281380713, 0.0695331991, 0.3556522429, 0.0024779954, -0.1661975384, -0.2869316041, 0.1246614456, 0.0630071759, 0.0113605205, 0.1623739004, 0.0953476876, -0.2704734206, 0.2850175202, 0.1243303567, -0.1067652926, 0.0433413908, 0.1071983278, 0.30029881, -0.2653609216, 0.7210392952, -0.1288244724, 0.4009088278, -0.2449257374, -0.1431708336, -0.3789732754, -0.0305948015, 0.0428507105, -0.2777254283, 0.1467828602, 0.131260708, 0.0341281593, -0.0021970088, 0.4061193168, 0.2724610269, 0.2302176058, -0.3906011581, -0.3321835995, -0.4051625133, 0.0188632943, 0.3231955767, -0.065458715, 0.153384015, 0.2744811773, -0.1670602858, 0.0880449638, 0.0354057774, 0.4090407491, 0.1981752366, 0.339674592, -0.1658128947, -0.2508791983, 0.0856797546, 0.0915725008, -0.1501989514, -0.3487942219, 0.2341207862, -0.2817567885, -0.0416869596, 0.0747193024, -0.2538390458, 0.0716999173, -0.1775026023, 0.3442424238, 0.1124098897, 0.3229345977, -0.3840720654, 0.2242176384, -0.0666269809, -0.104959093, -0.0730087608, -0.5213524103, -0.242626518, 0.2145832032, 0.076257132, -0.1988956183, -0.2917074263, 0.5150737762, 0.168724671, -0.3253790736, -0.1383759528, 0.1260330677, -0.4760488272, 0.2135026902, 0.025016075, 0.1812130362, -0.1832105219, 0.2619137168, -0.0179478526, -0.3591485322, 0.6965423226, 0.0172236785, -0.1637827307, -0.0009495915, 0.543448329, -0.115571633, 0.0246537961, -0.2354458719, -0.1868086308, 0.0875061005, 0.0188109744, -0.1395880431, 0.3009520471, -0.1162499115, 0.160700649, 0.0445323549, 0.248459205, 0.2371300161, 0.0164051838, 0.207570225, -0.3570119739 ]
https://github.com/huggingface/datasets/issues/3485
skip columns which cannot set to specific format when set_format
You can add columns that you wish to set into `torch` format using `dataset.set_format("torch", ['id', 'abc'])` so that input batch of the transform only contains those columns
**Is your feature request related to a problem? Please describe.** When using `dataset.set_format("torch")`, I must make sure every columns in datasets can convert to `torch`, however, sometimes I want to keep some string columns. **Describe the solution you'd like** skip columns which cannot set to specific format when set_format instead of raise an error.
27
skip columns which cannot set to specific format when set_format **Is your feature request related to a problem? Please describe.** When using `dataset.set_format("torch")`, I must make sure every columns in datasets can convert to `torch`, however, sometimes I want to keep some string columns. **Describe the solution you'd like** skip columns which cannot set to specific format when set_format instead of raise an error. You can add columns that you wish to set into `torch` format using `dataset.set_format("torch", ['id', 'abc'])` so that input batch of the transform only contains those columns
[ -0.3243052065, -0.1946023852, -0.0388779715, -0.1543871015, 0.4741528332, 0.2856017053, 0.2840107083, 0.4905923307, -0.3940932453, 0.0933625996, -0.0263921414, 0.2987178564, -0.0623508319, 0.3534404337, -0.2112528384, -0.2602641881, -0.0206499528, 0.2999278009, -0.2954287529, 0.0468866117, -0.4561050236, -0.1408116072, -0.3091675341, -0.0297329817, -0.1906947941, 0.0292672012, 0.3002412021, -0.3008447289, -0.0399110056, 0.0656546429, 0.0123052448, 0.0069009531, 0.0363748446, 0.1810804754, -0.0001081349, -0.0160811134, 0.1301725954, -0.2195993215, -0.3299790621, -0.1431245953, -0.371850282, -0.0905744061, -0.2950956225, -0.2663309872, -0.1896488219, -0.1401637644, -0.0952894315, -0.4644095302, 0.1024495438, 0.4853487909, 0.2348562628, 0.1350910664, -0.2964111567, 0.0722648725, 0.299537003, 0.3972420096, -0.2410627007, -0.3440467119, 0.0864808783, 0.2560838759, 0.0636712089, 0.502597332, -0.2810773551, -0.2205692977, 0.0571531616, -0.2276029587, -0.2016369551, -0.3125628233, 0.3520086408, 0.258238256, 0.5080833435, -0.2998073101, -0.3742904961, -0.3401039541, 0.0674794987, -0.2068054825, 0.0548261628, 0.1307736039, 0.0363367647, 0.4015848041, -0.4790679514, -0.1625610441, -0.2643215656, 0.0172719397, -0.1692647934, -0.0573382862, 0.0165935326, 0.020811785, -0.0769390985, 0.0073159337, 0.2076422572, -0.1224611402, 0.0946200266, 0.3148288727, -0.3080965877, -0.355493933, -0.5389913917, 0.0955508351, 0.1867538095, 0.075364098, -0.1235343888, 0.1864015013, 0.2671445608, 0.1431762576, 0.0130656455, 0.0210746638, 0.1204940826, 0.4377764761, 0.2330938131, -0.3576967418, 0.1812657416, 0.0181700848, 0.2457291037, -0.1983181983, 0.1249254271, 0.24788028, 0.3329780698, -0.0858823434, -0.172711879, -0.0017865867, 0.1928842217, -0.1447856277, -0.0199297518, 0.3755535185, 0.1642415375, 0.2564142644, -0.1331695914, 0.2177591622, 0.0665550604, -0.1403637528, -0.0841812342, 0.0837113708, 0.0576296411, -0.1298919022, 0.2841644585, -0.1527226716, 0.1930899769, 0.2031196207, -0.127952233, 0.3537931442, 0.1117698848, -0.0514102355, 0.4221669436, 0.21460931, -0.1674292535, 0.3445463181, 0.070003666, 0.3925982714, -0.1631741375, 0.3792555034, -0.0651684254, -0.2699490488, -0.0662752315, 0.2153635919, -0.1957402229, 0.0204362627, -0.1321408749, 0.0618969165, 0.2814065516, 0.0186599866, 0.0746659636, -0.1998500377, 0.1139157861, -0.1231084988, 0.0711116269, 0.2847773731, -0.4096952081, -0.133307457, 0.3929499686, -0.0863037705, 0.1963781267, -0.0889889672, 0.0664371029, -0.1425440162, -0.108578451, 0.0721275061, 0.4260413945, -0.0069251675, 0.0084323483, -0.0295193736, -0.037812952, -0.1623030454, 0.3657946885, 0.0232436769, 0.0337622985, -0.2451416403, -0.1790475249, 0.454533875, -0.1712198853, 0.2574807405, 0.1649269313, 0.0844216272, 0.4695430696, 0.0110722529, -0.1365291476, 0.29648453, -0.2974936962, 0.1924759001, -0.1318780631, -0.2769060731, 0.1106709465, 0.0708396137, -0.0953314751, -0.3583742082, 0.1022649556, -0.2187886089, -0.4266928732, -0.0589634851, 0.4561722875, -0.3542353809, 0.0970123932, -0.395259589, -0.3367393613, -0.271371454, 0.0022517629, 0.2900140882, 0.1162500679, -0.020334376, 0.0994940624, -0.2335131764, -0.5567673445, 0.0671499744, -0.0272129662, 0.1044826731, -0.2846072018, -0.130366087, 0.0997803658, -0.0044189068, 0.2138816267, 0.1086477786, 0.3010511398, -0.1630526483, -0.1034553126, 0.2312488556, -0.0901533216, 0.0890718922, -0.3966836035, 0.3075701594, 0.086982809, 0.0495728441, -0.1238964498, -0.0352534465, 0.0482313707, 0.0870567262, -0.3723143935, 0.3465194702, -0.0755102262, 0.3751086593, 0.0737323239, 0.2594951391, 0.234332189, -0.2248363048, -0.2096146643, -0.6360853314, 0.1034285426, -0.0272500161, 0.1021989733, 0.1111836806, -0.6754395366, 0.0454359688, 0.554105103, 0.0833610818, 0.0565357991, 0.0756356716, 0.0378110968, 0.2890274823, 0.1252549589, 0.1377467215, 0.1188593954, 0.4231421351, 0.011309986, -0.0596553981, -0.1064503416, -0.1366692334, 0.2493627369, 0.0641887039, 0.0021686747, 0.070174031, 0.1275026649, -0.0105568077, -0.160678938, 0.1480064392, 0.2924828529, -0.0242636446, -0.3355660439, -0.1369874179, -0.4925870001, -0.1005029976, -0.1166168749, -0.0399224125, 0.1458829939, -0.0587361529, 0.2384434789, 0.0827140063, -0.378985405, 0.4144333601, -0.2136496305, 0.1895824224, -0.0030991652, -0.3009552062, -0.3801521659, 0.0238830056, 0.0265280977, 0.1740157157, 0.1560009122, 0.0060045803, 0.4912435114, -0.1249049753, -0.0822672173, -0.3287598789, 0.0707468763, 0.1470826417, -0.2164660245, -0.0569107309, 0.3324037492, 0.3964128196, 0.0763779432, -0.0153752435, 0.0430771448, 0.0644929484, -0.0349212736, 0.174963966, 0.1625467241, 0.2701945305, 0.0446590744, -0.4521201849, -0.1134576574, -0.3003341556, -0.1235651672, -0.4632866979, 0.1883076876, -0.0061458917, 0.1362869143, -0.2275923491, 0.0584124252, -0.0515377037, -0.0872900933, 0.0007177232, 0.5690452456, -0.2262094319, -0.1042096317, -0.008093955, 0.1157486141, -0.2568918467, 0.4820667803, -0.2381723076, -0.2211978585, -0.3817391098, -0.0881802663, -0.083879374, -0.0410434529, 0.256918788, 0.294455409, -0.1758358181, -0.097609736, -0.1121696159, -0.1324095428, 0.0436980389, 0.0471487083, 0.0281824023, 0.439106822, -0.0043765074, 0.3052277565, -0.0658021197, -0.0560282655, 0.2454447746, -0.0096421195, 0.2830365598, -0.1222239807, -0.2672265172, 0.0254809819, 0.041338481, 0.0791997388, 0.0174225252, -0.1234843209, -0.0124926632, -0.0558627285, -0.0368101932, -0.0046473769, -0.1913532764, 0.2912067175, -0.2694702148, 0.4059478343, 0.1566039026, 0.2858456075, -0.1738022417, -0.1003484428, 0.1431717575, -0.1645747572, 0.287109524, -0.0677392483, -0.3063006997, -0.4027498662, -0.1520920843, 0.3916738927, 0.0903771594, 0.3942323029, -0.0768360868, -0.1260889918, -0.1344175041, 0.2508349419, 0.5940642357, -0.3412508965, -0.1137418672, 0.1778544784, -0.0256893989, -0.353893131, 0.052359879, -0.1174835488, 0.1401555985, -0.1629801393, 0.5039789081, -0.1367273331, -0.2737461329, 0.3234861791, 0.6217317581, -0.1693374664, -0.009365241, 0.110137172, -0.0535398722, -0.5658325553, 0.1979867965, 0.5686546564, -0.0287159458, -0.2395770252, -0.2398448139, -0.2259050757, -0.1336835176, 0.2592898905, 0.0807307288, 0.1383101344, 0.1398156136, 0.0960195437, 0.0010866249, 0.1665136367, 0.0725651309, 0.0958921611, 0.0742899999, -0.1654268354, -0.0238413438, -0.2368438095, 0.5402601957, 0.170950219, -0.0281092357, 0.1454030871, -0.3427457809, 0.0128006255, 0.0509636849, -0.056315247, -0.1326578408, -0.1015453264, -0.5120258927, -0.3339192867, 0.2325103879, 0.1445954591, 0.0645274073, 0.0680106729, 0.0649560243, -0.2647161484, 0.3863896132, 0.3587656617, 0.8346291184, 0.0311060082, 0.0093691451, -0.1364449412, -0.2299880683, 0.3121957481, -0.0675835833, -0.058706589, -0.237367332, -0.3328329027, -0.0854851082, -0.119463712, 0.2798677385, 0.2102806866, -0.3259195685, 0.2449915707, -0.4303075373, 0.2376531214, 0.052863773, 0.0136673981, -0.1531539261, -0.4325039089, -0.1449588537, 0.0779122189, -0.0882701278, -0.1844790131, 0.140187785, -0.0218820479, 0.1918297112, -0.2272464633, -0.0951062068, -0.1016077921, -0.0637052506, -0.2330731899, -0.3318176568, -0.4959670305, 0.1616302878, 0.3658694327, 0.6405569911, 0.0365346707, 0.0119804749, 0.0530126393, 0.1634045392, 0.2883438766, -0.2591205537, -0.0050125956, 0.3305769861, -0.0142932609, 0.053165324, 0.3443134725, -0.0392247327, 0.056402009, -0.0754162222, -0.2793552876, 0.2228188068, -0.2576563954, -0.1840736568, -0.3969687223, 0.1200469658, -0.2945336699, 0.1538233757, -0.1762919724, 0.0332747102, 0.4283690751, 0.0094193285, -0.1202616766, -0.1197547317, 0.1625066251, 0.0860975161, 0.0759009868, 0.7099695802, 0.0325843021, -0.2382372916, -0.2792546153, 0.189418599, 0.346165359, -0.5555704236, 0.3150121868, 0.0083466284, -0.2013335824, -0.1036039516, 0.2771506011, -0.235305354, -0.0164606981, -0.2696177065, -0.1141443625, -0.1976208985, -0.0735543296, 0.3973288834, 0.3927190602, -0.0210639313, 0.2413016558, -0.0865079388, 0.018998513, -0.359480381, -0.3951669335, -0.2913297713, 0.2951472402, 0.1642380506, 0.4597079754, -0.4251655936, -0.2619368434, 0.0793349519, 0.2359009534, 0.1077634618, -0.3101647794, -0.2368127257, 0.1033239514, -0.019399561, 0.0808233097, 0.018453097, 0.0443222448, -0.1460876167, -0.2501840889, -0.0524668433, 0.2383592576, 0.1561908722, 0.2722450197, 0.0494647287, -0.0404507183, -0.0195193198, -0.2533700764, -0.019632455, -0.1224189326, 0.0019933649, 0.2107776552, 0.0000544031, -0.090196833, -0.150229916, -0.2358125746, 0.3364894688, 0.1609293967, -0.3217521012, 0.032744363, -0.090286456, 0.4404552281, -0.0114587778, -0.0076602758, -0.2739697099, -0.0755793452, 0.5778495073, 0.2721564174, -0.522297442, -0.0786605403, 0.1974341273, -0.1489939839, 0.1373819858, 0.215280205, 0.0283018276, 0.021853691, 0.2184037268, 0.0308688264, 0.1483976245, -0.2241389006, 0.405022949, 0.6426243186, 0.0959478095, -0.1051202491, 0.2331345826, 0.2059386671, 0.2177176774, -0.0219078101, 0.0942943692, 0.343950659, 0.2639729977, 0.1943314075, -0.1700112522, -0.2795861959, 0.1152675897, -0.12011493, 0.1166606247, 0.2290913016, 0.2973935604, -0.1591965109, 0.1510105133, -0.2710136473, -0.1649365723, 0.2214526385, 0.0616785511, -0.1527694911, -0.2501603067, 0.0456013903, -0.076304704, -0.1419669539, -0.0631135851, -0.0204776656, 0.6407950521, -0.034487363, 0.189136833, -0.0781393871, 0.4390188456, -0.1730365902, 0.028211385, -0.1325822175, -0.0755934268, 0.0344354697, -0.0063326838, 0.4844756722, 0.2306255102, 0.0146572459, 0.0939333662, 0.1193429977, 0.2024377286, -0.3584249318, -0.2043135762, 0.0145567451, 0.3170312047, -0.3498545587, -0.0789815485, 0.4616551101, 0.1520349532, -0.1433244199, 0.0785110071, 0.0898321718, 0.0146513991, -0.2063937038, 0.0110408226, 0.3304513395, -0.24451828, -0.0013735256, -0.2726688981, -0.0005914114, 0.0174571499, 0.2670545876, -0.1728215665, -0.0168085117, 0.1926762611, 0.1331092268, 0.1125431284, 0.3371913731, -0.0886258185, -0.2495967299, -0.2341015339, -0.1012282819, -0.2976606488, -0.1378132105, -0.0230554137, -0.1154156253, 0.428478688, -0.1277172416, 0.2468481064, 0.1292662472, 0.0858363286, 0.139785096, -0.1851114184, 0.5948573351, -0.1098608896, -0.4330133796, 0.0981881395, 0.3137049973, 0.0252578855, -0.3509325683, 0.4028713405, 0.4635398388, 0.0652754307, -0.2850944698, -0.0181344002, 0.3057547212, -0.0421244502, 0.1892526746, 0.108508423, 0.0517715663, -0.2069659829, 0.3891234696, 0.0261181239, 0.0439185984, -0.3601604402, -0.0894809812, 0.187814042, 0.1747135073, -0.0634846166, -0.1060897037, -0.1630003601, 0.1392875165, -0.0767755061, 0.3177841008, -0.1411367059, 0.3712264895, 0.0378364995, -0.1179876179, -0.1148721054, -0.0128746247, -0.0371805578, 0.2414607853, -0.298884809, -0.5573014021, 0.5803064704, -0.1602253318, -0.572994709, -0.012107701, 0.1595646292, 0.2971582711, -0.0993843079, -0.386811167, 0.020288052, 0.16831249, -0.2152275145, 0.0996625647, 0.1676865071, 0.0638270676, 0.0999800861, -0.1187701076, 0.2629351914, 0.0518498383, 0.0886559635, -0.3128812313, -0.173886925 ]
https://github.com/huggingface/datasets/issues/3485
skip columns which cannot set to specific format when set_format
Sorry, I miss `output_all_columns` args and thought after `dataset.set_format("torch", columns=columns)` I can only get specific columns I assigned.
**Is your feature request related to a problem? Please describe.** When using `dataset.set_format("torch")`, I must make sure every columns in datasets can convert to `torch`, however, sometimes I want to keep some string columns. **Describe the solution you'd like** skip columns which cannot set to specific format when set_format instead of raise an error.
18
skip columns which cannot set to specific format when set_format **Is your feature request related to a problem? Please describe.** When using `dataset.set_format("torch")`, I must make sure every columns in datasets can convert to `torch`, however, sometimes I want to keep some string columns. **Describe the solution you'd like** skip columns which cannot set to specific format when set_format instead of raise an error. Sorry, I miss `output_all_columns` args and thought after `dataset.set_format("torch", columns=columns)` I can only get specific columns I assigned.
[ -0.2914406061, -0.2245162427, -0.0692841187, -0.1242927238, 0.4770968258, 0.3206258416, 0.1285251379, 0.5214928389, -0.3331496119, 0.2311048955, -0.0285504814, 0.3594092429, -0.1113210693, 0.3187877536, -0.200254783, -0.0854486376, -0.0791164264, 0.2076987624, -0.1604340672, 0.0142326495, -0.5035930872, -0.0673882961, -0.2356802225, -0.0830830187, -0.0422033668, -0.0407310687, 0.2280008197, -0.2339221239, -0.1043406278, -0.071530439, 0.1030832678, -0.0062282248, 0.0117382463, 0.0740417764, -0.0001111192, -0.0483460985, 0.0563385487, -0.1714337766, -0.3745973706, -0.0939025059, -0.2877215147, -0.1493567377, -0.0840599686, -0.3283054233, -0.1775546223, -0.0828025639, -0.0985559076, -0.5474969745, -0.0203523953, 0.607278049, 0.2206606567, -0.0401344411, -0.2079630643, 0.0554972701, 0.2789064348, 0.2965489924, -0.2213106304, -0.0968404785, 0.1535817534, 0.3496620953, 0.0949916244, 0.4483101368, -0.4570741653, -0.0624537617, -0.1271034926, -0.2069602758, -0.1368166357, -0.1696693897, 0.4456743598, 0.2214467525, 0.7606418729, -0.2737032175, -0.3163724542, -0.2262034118, 0.1231354475, -0.4307577312, -0.1528118998, 0.2060289383, -0.0811194032, 0.3249381483, -0.4119480848, -0.2360971123, -0.354816556, 0.020668067, 0.0154921999, -0.1401567906, -0.203466922, 0.1073920801, -0.0197079629, 0.2311376333, -0.022713542, -0.1184492931, 0.0166852474, 0.1451249123, -0.3125086427, -0.2637704313, -0.2920748591, 0.0391481556, 0.1654729396, 0.210057959, -0.0946579799, 0.1892052144, 0.418574661, 0.1166031137, 0.0142896641, -0.1966970265, 0.3529675007, 0.4129503071, 0.228455469, -0.26080513, 0.0902177766, -0.1787827015, 0.2510506213, 0.0122540575, 0.1422178596, 0.2125261426, 0.4701578617, -0.3024903238, -0.1953534931, 0.0543048382, 0.2018176913, -0.1699430048, -0.0415418968, 0.385753274, 0.1464441568, 0.2023288906, -0.2144161612, 0.2098641992, 0.0900560468, -0.1094220877, -0.0882424116, -0.0063410527, 0.0488336422, -0.0225137509, 0.277058363, -0.020962229, 0.1137556508, 0.2638830543, -0.1532073617, 0.2357264757, 0.165574044, -0.1551438123, 0.4289331734, 0.1166244075, -0.1073722914, 0.3771654963, 0.1887648553, 0.4448900819, -0.2652189434, 0.3001045585, 0.026269041, -0.4886758626, -0.1240728274, 0.1897277981, -0.174537003, 0.1538805962, -0.2301210165, 0.186043188, 0.2575903237, 0.1702305377, 0.0651280433, -0.2447382212, -0.0263834149, -0.1958010197, 0.1367726475, 0.3595794737, -0.491368711, 0.0623071492, 0.2883015573, -0.2364074737, 0.3357135057, -0.2854503691, 0.2273774594, -0.1654102206, -0.1578747481, -0.2922972441, 0.4903788269, 0.0289672259, 0.1280631423, -0.1101101935, 0.0750917718, -0.0886219218, 0.3851986229, -0.1272100359, -0.0153313596, 0.0889122412, -0.1597902477, 0.2394316047, -0.1529886127, 0.1102745607, 0.125693813, 0.1100114137, 0.5099294782, 0.0754282326, -0.082608901, 0.3482390642, -0.2346826643, -0.1466187835, 0.0688325614, -0.1807711869, 0.0130403237, -0.0465664342, 0.1079156846, -0.1680731177, 0.1345521361, -0.3423458636, -0.4078037143, -0.0723511502, 0.7319090366, -0.2726658583, 0.0789653137, -0.3352168798, -0.2049710602, -0.2567695677, 0.1107119471, 0.2908737361, 0.0822041109, 0.1966241598, 0.0545496456, -0.1065276638, -0.5920351148, 0.0368179753, -0.3498799205, -0.0226363726, -0.2332904488, -0.229564622, 0.1478669494, -0.1000893414, 0.3202289939, 0.1154925302, 0.1548694074, 0.0003394037, -0.0780380517, 0.1400158554, 0.0008422243, 0.0635078326, -0.439929992, 0.2348705679, -0.1209632084, 0.0051155603, -0.1742555052, -0.1457706094, 0.1381259263, 0.1133304462, -0.1437177807, 0.3182294071, -0.2004451454, 0.5244542956, 0.1569339335, 0.2001056522, 0.0668627992, -0.0913647562, -0.1017787606, -0.5089074969, 0.1526879072, -0.0591256991, -0.0944920182, 0.1287008971, -0.7387923002, 0.0884017646, 0.7176116109, 0.1192101091, -0.031476818, 0.0900376365, 0.2187543511, 0.177792564, 0.3118281662, -0.0519136786, 0.2368336022, 0.5076602101, 0.0116273882, -0.1381978095, -0.0922903344, -0.1290247738, 0.3106616735, 0.1459738165, -0.0658759251, 0.1146139279, 0.0951663926, -0.2121424377, -0.2340363413, 0.2081097066, 0.1620763987, 0.0343377478, -0.2693780363, -0.1163115576, -0.4660428166, -0.1862976551, -0.0989226475, -0.0114763435, 0.109871991, -0.1399482191, 0.1891928166, 0.0588927343, -0.2704150081, 0.1943314523, -0.5419807434, 0.3021374941, 0.031891305, -0.1864538044, -0.2978917956, -0.0602534302, -0.1004560143, 0.146289587, 0.068048887, 0.1089316979, 0.565269649, 0.080223158, -0.1786695421, -0.2160674483, 0.1591848284, 0.1441484392, -0.2287179679, 0.0423990525, 0.325517863, 0.39304322, 0.1002419814, 0.0008314451, 0.1468836069, 0.0258599669, 0.0224368628, 0.1841795444, 0.0773945153, 0.3059367836, 0.0698511153, -0.4689532518, -0.1738309115, -0.4129554927, -0.0060675894, -0.3026126325, 0.3904269934, -0.0647270903, 0.070501402, -0.2405886948, -0.0967890993, 0.2355310172, -0.1611066312, -0.0985504836, 0.4318624139, -0.1593332142, 0.0272577517, -0.0217299461, 0.2005005628, -0.2265978158, 0.3195028603, -0.3393157721, -0.3503690362, -0.4836180508, -0.2014924586, -0.247886017, -0.0805844963, 0.0872778744, 0.2044846416, -0.1194622666, -0.0754450187, -0.302687645, 0.0276774019, 0.0317815244, -0.1168133989, 0.1787040383, 0.2837750614, 0.0403631367, 0.1262182891, -0.0303594172, 0.1901770085, 0.1458010077, -0.1540092677, 0.3480654657, -0.0720337555, -0.4622350335, 0.1703328937, 0.0283041801, 0.1194030195, -0.04928229, -0.1549179703, 0.1078048795, -0.0590279549, 0.0834417865, 0.2062275708, -0.2261144966, 0.1982051283, -0.2823143005, 0.3134530187, 0.0313649178, 0.2723051608, -0.1497886926, -0.0738212913, 0.1262899935, -0.0638045743, 0.2512274683, 0.1576420069, -0.5773009062, -0.3565140367, 0.0084133008, 0.4206876159, 0.1016858518, 0.3262854815, -0.1979381889, -0.1733614057, -0.008641582, 0.3244956732, 0.5355813503, -0.2232736796, -0.0777566507, 0.3279091716, -0.0862491205, -0.1731926054, 0.0043855407, -0.1064498723, 0.2533663809, -0.3406699896, 0.5777776837, -0.088726528, -0.2730522454, 0.2249054611, 0.5841036439, -0.1383954287, 0.0056640133, -0.0282784533, 0.1190759763, -0.368550539, 0.362611413, 0.3067075908, 0.0863291025, -0.3657865524, -0.3318699896, -0.0367190354, -0.110265404, 0.2212481052, 0.0773988068, 0.0942219272, 0.0048261839, -0.0242286958, 0.0420124047, -0.0590346865, 0.0993238017, 0.0905855745, -0.0763964355, -0.0094200866, 0.0232040193, -0.3424489498, 0.7679463029, 0.1470132321, -0.0644353554, 0.333219409, -0.4297690392, -0.072305575, -0.0141956611, -0.2186357826, -0.1326638907, -0.1467923224, -0.3707439899, -0.3922144473, 0.1047975421, 0.0886237845, 0.125706926, 0.3600406051, 0.1309005171, -0.2144511938, 0.3038270175, 0.252014488, 0.8823475242, 0.1147711053, -0.0388595723, -0.191795662, -0.3415700495, 0.5540213585, 0.1193158627, 0.1477376819, -0.2631362975, -0.3096468449, -0.0204757638, -0.1653683335, 0.378188014, 0.1308475882, -0.1959931999, 0.1870650053, -0.2627569139, 0.4477602541, 0.1056229547, -0.1251419634, -0.2723841667, -0.2691617608, -0.3564488888, 0.0461804606, -0.2939109802, -0.3199841976, 0.2569795847, -0.0579763725, 0.3527795374, -0.2364984155, -0.0846119076, -0.1002101228, -0.0938535854, -0.1692323983, -0.2282109708, -0.5670552254, 0.0659371242, 0.1654556245, 0.3065970242, 0.1682960242, 0.0934408605, -0.1711139828, 0.2892413437, 0.2869140208, -0.2784962356, 0.0643039271, 0.1837914437, 0.0184713975, -0.0618791543, 0.2800575197, -0.002708589, -0.0528039299, -0.0406759344, -0.2516873479, 0.4453809261, -0.1793840528, -0.1887982339, -0.4152950943, 0.2482588887, -0.3426307142, 0.1144306883, -0.1026128232, -0.0863415152, 0.5877235532, 0.0108807161, -0.1424819231, -0.0682714805, -0.0275275242, 0.0487907231, 0.2247825265, 0.6292297244, 0.1176896989, -0.2475438267, -0.218525663, 0.0790274665, 0.1094992384, -0.3887620866, 0.337620914, 0.1186186224, 0.0905513018, -0.0885109603, 0.1337286681, -0.2977178991, -0.0205535367, -0.3099551797, -0.2237838805, -0.150484696, -0.1032564044, 0.2557567656, 0.4563300312, 0.0117321154, -0.0460886098, -0.1755113602, 0.0292049292, -0.3367349803, -0.4795994163, -0.3512717783, 0.3034688532, 0.2609674335, 0.3464456797, -0.4951361418, -0.2089924663, 0.0925292969, 0.1712138802, 0.1745557636, -0.2591505647, -0.1472950131, 0.1508375704, 0.064354822, 0.168537885, 0.0630690008, 0.0069655431, -0.1981345713, -0.1730941087, -0.0990667567, 0.2518694997, 0.0288884696, 0.2473770082, -0.2006700188, 0.0059119761, -0.0618113726, -0.1619755626, -0.1129218861, -0.2248762548, 0.1071226299, 0.2845358551, -0.09193822, -0.126061663, 0.1025691852, -0.2699676454, 0.0261651203, 0.1250179261, -0.2750813961, 0.0946320817, -0.1073449701, 0.3398000002, -0.0159049146, 0.0938203782, -0.0234182328, 0.0768548325, 0.4647972584, 0.2348333895, -0.4794235229, -0.0160909817, 0.3174861073, -0.1939692199, 0.0593080036, 0.275570631, 0.0923833624, -0.1098923236, 0.2834073007, -0.0941024199, 0.2736498117, -0.2369526923, 0.3487291038, 0.6295800805, 0.0203476772, -0.1416853219, 0.2569310069, 0.4082175493, 0.294714272, -0.1459437758, 0.1463117003, 0.129171893, 0.281335175, 0.0379252732, -0.1412445307, -0.4073603451, 0.0871265307, -0.0496370234, 0.036284782, 0.2223005295, 0.0992271453, -0.0198193192, 0.020524852, -0.2027257383, -0.0631246716, -0.0144954072, 0.0540752821, 0.0946453288, -0.3089118302, 0.0361319147, -0.2508753836, -0.0058531468, -0.0004271471, -0.1155880019, 0.6799408197, -0.166446507, 0.1500084102, -0.2739842534, 0.3931367695, -0.1414561421, -0.0245565362, -0.0701328665, -0.0199692361, 0.0962225348, 0.1063674539, 0.3918224275, 0.0732501447, 0.0002941167, 0.1352838427, 0.2571277916, 0.0685914308, -0.1819660217, -0.2358469814, -0.0434080176, 0.3777748346, -0.2390617132, -0.1185239255, 0.3663238287, 0.1122014225, -0.0604443289, 0.2563926876, 0.0528808199, -0.0912746117, -0.2712475061, 0.1255375296, 0.4457573593, -0.2732084095, 0.0492773801, -0.193790704, -0.0474289767, -0.261269182, 0.3458955884, 0.0279629249, -0.1155663878, 0.2111074328, 0.119798325, 0.0176846627, 0.0959159881, -0.0605478734, -0.1495883316, -0.2716479301, 0.0345908366, -0.194400385, -0.0961328223, 0.1885145456, -0.0957551301, 0.4066889286, -0.0399169065, 0.3810899854, 0.0301652979, 0.0943962559, 0.1739829481, -0.0240723211, 0.5443117023, -0.1284587979, -0.4871589243, 0.1668395102, 0.1188361868, -0.0989534706, -0.3516705632, 0.3733806908, 0.3570475578, 0.0118907988, -0.206764251, -0.1297981143, 0.4000475407, -0.0298326407, 0.0480573699, 0.1065594703, 0.1501836628, -0.1520711035, 0.4153986871, 0.090883553, 0.0892928541, -0.3450485468, 0.006551696, 0.1377293468, 0.1946404576, -0.0916812643, 0.0269321799, -0.1473878473, 0.2316783518, -0.098090142, 0.2282072306, 0.081932582, 0.2783330083, 0.0553331189, -0.2516115904, 0.0318199284, -0.2957330644, 0.0675414354, 0.1828974932, -0.3916754723, -0.3179174364, 0.5096561909, -0.0866356418, -0.5487482548, -0.1247708723, 0.2683543265, 0.5809771419, -0.0941653848, -0.3511652946, -0.0921566412, 0.3677201271, -0.2850752771, 0.202444002, 0.3261297047, -0.0283890143, 0.1586216837, -0.1082172096, 0.132812947, 0.0037930903, 0.1588279903, -0.3587300479, -0.358169347 ]
https://github.com/huggingface/datasets/issues/3484
make shape verification to use ArrayXD instead of nested lists for map
Hi! Yes, this makes sense for numeric values, but first I have to finish https://github.com/huggingface/datasets/pull/3336 because currently ArrayXD only allows the first dimension to be dynamic.
As describe in https://github.com/huggingface/datasets/issues/2005#issuecomment-793716753 and mentioned by @mariosasko in [image feature example](https://colab.research.google.com/drive/1mIrTnqTVkWLJWoBzT1ABSe-LFelIep1c#scrollTo=ow3XHDvf2I0B&line=1&uniqifier=1), IMO make shape verifcaiton to use ArrayXD instead of nested lists for map can help user reduce unnecessary cast. I notice datasets have done something special for `input_ids` and `attention_mask` which is also unnecessary after this feature added.
26
make shape verification to use ArrayXD instead of nested lists for map As describe in https://github.com/huggingface/datasets/issues/2005#issuecomment-793716753 and mentioned by @mariosasko in [image feature example](https://colab.research.google.com/drive/1mIrTnqTVkWLJWoBzT1ABSe-LFelIep1c#scrollTo=ow3XHDvf2I0B&line=1&uniqifier=1), IMO make shape verifcaiton to use ArrayXD instead of nested lists for map can help user reduce unnecessary cast. I notice datasets have done something special for `input_ids` and `attention_mask` which is also unnecessary after this feature added. Hi! Yes, this makes sense for numeric values, but first I have to finish https://github.com/huggingface/datasets/pull/3336 because currently ArrayXD only allows the first dimension to be dynamic.
[ -0.3617073298, -0.4997362196, -0.1934599876, 0.2382970601, 0.3340795338, -0.0900439098, 0.3655255735, 0.2702302039, 0.4711226225, 0.2727881074, -0.013780782, 0.1076696068, -0.056096945, 0.2658049166, 0.0668741688, -0.0237629842, 0.1465830803, 0.2901389301, -0.3523030281, -0.0038963926, -0.2070188373, -0.2951273918, -0.1612806022, -0.0156408977, 0.0162872933, -0.0644534454, -0.0121284015, -0.1191865131, -0.043209102, -0.4249671102, 0.27619946, 0.1818969101, -0.3901960552, 0.0035761986, -0.0001122029, -0.0866781548, 0.1540634185, 0.1201515347, 0.0822978616, 0.268240869, -0.6081889868, -0.1868348867, -0.1379904598, -0.4825143218, 0.0594834462, -0.1219727173, -0.0082458435, -0.3265215456, 0.2653703988, -0.2063875049, 0.1219748631, 0.2893179059, 0.0690849945, 0.3019156456, -0.039151296, 0.470893234, -0.0422996916, 0.0102595324, 0.445971489, 0.5078372955, 0.0667609274, 0.4769304991, -0.2099753618, -0.1104426757, 0.1160403565, -0.1753963977, -0.028995093, -0.3436534107, -0.0598426946, 0.5457000136, 0.2493316978, -0.1551608294, -0.043563664, -0.5095644593, -0.0702763945, 0.1996081322, 0.2885712087, -0.0565812774, 0.1449424326, 0.0004641599, -0.6731480956, -0.0134156123, -0.0427380018, -0.0095347064, 0.1808353662, 0.0090904096, 0.0580531806, 0.1509800106, 0.1544749886, -0.351390183, 0.2712722421, -0.3496264517, -0.0620274991, -0.1291021258, -0.1777103692, -0.3769592345, -0.1137967035, -0.2403972, 0.2445564568, -0.1304440349, 0.1444749385, 0.5333008766, -0.0204017386, -0.1362161487, 0.1289213449, 0.1822890788, 0.1266709268, -0.0040780571, 0.2083385587, 0.0161060225, 0.1459579319, 0.1232102141, 0.1385812163, 0.1420343369, -0.0667745322, 0.2679990828, 0.2094804198, -0.0993037298, 0.0260699838, -0.169345066, -0.3022431433, -0.2353592515, 0.3432765007, 0.0645122752, 0.0705997944, 0.130448997, -0.2737260461, 0.0153088737, 0.1663101017, 0.1137115732, -0.0416165628, 0.0025949543, 0.0641049221, -0.1667582244, 0.0147058237, 0.0184257962, 0.1924859583, -0.1477685571, 0.349583298, 0.3496866524, -0.2062439919, -0.1072973311, 0.4603833556, 0.2156814039, -0.3630842566, -0.3477854431, -0.0060933963, 0.2848418057, -0.1099113151, 0.0992550179, -0.0453800857, -0.1174409762, 0.3077041209, 0.1186542064, -0.0798895508, -0.0182406064, -0.1531677246, 0.2311302423, 0.1367108375, -0.0851469263, 0.1168531328, -0.1048445106, -0.2077825069, -0.1332198977, 0.0068226019, 0.112571314, 0.0735045224, -0.2184476107, -0.2746071517, -0.1613014191, -0.2305236012, 0.2406418622, -0.2212050408, 0.3927029371, -0.2865465879, 0.3523679376, 0.2739127576, -0.3217480779, -0.1695717275, 0.1361940205, 0.0505715311, 0.0448399037, 0.0840130597, 0.1275389493, 0.1957845241, -0.1940868497, -0.3776835203, -0.2142429203, -0.035414774, 0.2020052522, -0.0703835934, -0.2931568623, 0.1673986912, -0.0343309455, -0.0443437025, 0.1609958708, 0.2104108185, 0.1372914314, 0.1466521472, -0.6703628302, -0.1451723874, -0.1677090079, 0.5546861887, -0.7015400529, -0.1609446853, -0.2866318524, -0.6092736125, 0.0824235827, 0.0603037402, -0.0698155314, 0.0113238487, -0.1889580935, 0.0476953126, 0.0229466334, -0.1473820955, 0.3428664505, 0.0431335904, -0.2642666399, 0.1243318468, -0.4750570059, -0.1463640034, -0.1403357834, -0.3317645192, 0.1511565298, -0.3418850303, -0.0740290955, 0.0253909063, 0.2492804974, -0.1347031593, 0.2711457908, -0.0787975714, -0.3208595812, -0.0117365653, 0.336157769, -0.1260939986, -0.0565733425, -0.1134579033, 0.6684597135, 0.3834910691, -0.4229678512, 0.1849147528, -0.0341766328, 0.261816591, -0.2506639957, -0.0938554779, 0.4037896991, 0.0568223372, 0.1163130775, -0.0970089957, -0.1143205762, -0.1189952865, -0.1221701875, -0.0732325166, -0.4438500702, -0.1745244861, -0.1476118416, 0.0368660428, 0.305038631, -0.3751016855, 0.457592994, 0.4057352841, -0.0148897115, 0.245995, 0.2771878541, 0.2664325237, -0.149268195, -0.0251275077, 0.0717761442, 0.2972211242, 0.1839858592, -0.0088325497, 0.2680282891, 0.1875166893, 0.0329393558, 0.5512154102, 0.041416727, -0.3288391531, -0.0131561421, -0.0748040974, 0.0142669296, -0.2691058517, -0.0270969849, 0.0331058577, -0.0959292948, -0.2966941893, -0.2144792378, -0.3066107929, -0.519297123, -0.0916705355, -0.0669239759, 0.0043747085, -0.1169977412, 0.0837558359, -0.0282307193, -0.1851758808, 0.4575863183, -0.0076681408, 0.1538324654, 0.124897249, -0.1893361211, -0.3524224758, 0.2354795039, 0.081550397, 0.0831785426, 0.1823148131, 0.0127553586, 0.403260231, -0.1303645521, 0.3674848676, -0.48325032, -0.566008091, 0.0021201049, -0.125691548, -0.2414865643, 0.4407699108, 0.056246154, -0.1681421846, -0.067394875, -0.1520165503, -0.186178565, -0.3604728281, -0.0515234545, -0.1621516049, -0.2408917546, -0.3392466605, -0.1968208849, 0.2265881598, -0.1269876212, 0.2789379656, -0.084412463, 0.301037401, -0.0038790349, 0.2223736644, 0.4013779759, -0.2174049914, -0.0219459478, -0.0524545647, -0.1853905171, 0.0138805425, 0.2933526933, -0.1249922216, -0.3531875908, -0.4526188076, 0.1065488756, 0.1169507056, -0.2568133473, -0.3797923028, -0.4734035432, 0.1929093152, 0.012128016, 0.054524947, 0.3909542561, 0.1894200742, -0.0597027168, -0.0522890501, -0.0866681412, 0.150424391, 0.2260039002, 0.0679908544, 0.2974732518, 0.2050198168, 0.2974531949, 0.4570001662, 0.171463117, -0.1454427987, 0.2504062355, -0.0462029427, 0.2080907673, -0.1758263111, -0.5362506509, 0.3528295755, 0.0998822749, 0.2381586134, -0.0368708521, -0.2233684212, -0.1402760893, 0.1212757751, 0.084184058, -0.0238160249, -0.1973441839, 0.1661754102, -0.0256587043, 0.0619222336, 0.0182098635, -0.0326461345, -0.115289852, -0.1302542388, 0.227147311, -0.2572337687, 0.5260699987, -0.2377963215, -0.6431989074, -0.5455925465, -0.0844743997, 0.5262941122, 0.3920100033, 0.0978164747, -0.2820003629, 0.0153227532, 0.0352419503, 0.1191224456, 0.455188781, -0.0545463823, 0.0165027399, -0.1530549526, -0.1834113449, -0.115424104, 0.3257392347, -0.0774371997, -0.4699749649, 0.1836216301, 0.6223570108, -0.5729785562, -0.126535669, 0.3782244027, 0.2350065708, -0.0162863638, -0.0914195478, 0.1955471337, -0.2194745541, -0.2900522947, 0.1852598637, 0.1952311546, -0.0077732541, 0.2670788467, 0.0011413348, -0.2650308907, -0.0007878105, 0.1067711785, 0.034336362, 0.0438135937, 0.0200828612, 0.0401988439, -0.008225223, -0.22924155, -0.0327956416, 0.4451341629, -0.0518710911, 0.1170203388, -0.3221466839, 0.1307559013, 0.2908471525, 0.4171375334, -0.0126753794, -0.0998079255, 0.1135753393, 0.1635888815, -0.2262918055, 0.0685798824, 0.0256051105, 0.1918834895, -0.071977593, -0.2049437016, 0.1297609359, 0.1021812558, -0.0875833854, 0.4497377574, 0.3272721469, -0.3595049083, 0.1350063533, 0.5963981748, 0.8860529065, 0.1451002508, -0.113391012, 0.5168271065, -0.0997873247, -0.2931296527, 0.3224565387, -0.1266356111, -0.3333459795, -0.289131701, -0.2361103743, -0.2103427947, 0.4679385126, 0.271971941, -0.2260536551, -0.0195077788, 0.3131850064, 0.1062882915, -0.1164482459, 0.2882214189, -0.1178383753, -0.4222198725, 0.0195321478, 0.0659132749, -0.1050195768, -0.3659842908, 0.1235283539, -0.0781468153, 0.2765018344, -0.5002822876, 0.0056938012, -0.1751549691, -0.0321144946, 0.0737307966, 0.2696382701, 0.0305789597, 0.6069959998, 0.3642747104, 0.095358409, 0.2787195742, 0.0969399437, 0.0401137583, 0.3788605332, 0.4846091866, 0.2131840885, -0.2723196149, 0.2245019823, 0.1089057177, 0.0496138707, -0.3837991953, -0.0582861565, -0.0094370004, -0.3173428774, -0.1317998916, -0.2800179124, -0.5058529377, -0.1616873294, 0.0020533009, -0.0869037658, -0.0769439712, -0.0094667133, 0.0573868379, 0.2081251591, 0.4230164587, 0.295353353, -0.1631866693, 0.0259546693, 0.0280261524, -0.0056473981, 0.2899385989, 0.0289221797, -0.3344200253, -0.1992191821, -0.3231056929, 0.3890638649, -0.1477977335, -0.118186444, 0.015063826, -0.0728317499, -0.3358445466, -0.3833552599, 0.1047084704, -0.1621370763, 0.0720896944, -0.0016098043, -0.1058648676, -0.4108704031, 0.2922729254, 0.024309665, 0.3407253325, -0.1304063201, 0.1385795027, -0.1496493071, -0.0090656402, -0.2746884227, 0.0639458075, 0.010564452, 0.0892719552, -0.0358330086, -0.0970460996, 0.3264227211, -0.0263163988, 0.0366956964, 0.0747586265, -0.4867259562, -0.1186250225, 0.1953516304, 0.1859832108, -0.0427642241, -0.1921213269, 0.1748593003, 0.100175254, -0.2383107245, -0.2333808094, -0.0589716621, -0.2729061544, 0.0321541093, 0.1033162847, -0.2144683301, -0.2415458709, 0.2910075188, 0.2267643511, -0.1894298494, -0.2290272862, -0.1505635083, 0.0859795287, -0.3013747931, -0.2561298311, 0.2034413815, 0.2158003002, 0.4405765831, -0.0941461325, 0.3249004185, 0.1569183767, -0.2940227985, 0.3071702123, 0.4059100449, -0.1871442348, -0.1820916235, -0.1219290048, 0.0294181984, 0.1217297688, -0.2552129626, -0.0588967688, 0.6989927292, 0.1165633425, 0.2092819512, 0.4588851631, 0.2638297975, -0.0354894772, 0.2719065547, -0.146525085, 0.3842877746, -0.4153105021, 0.1805918813, 0.1978180557, -0.2782302797, -0.2326235324, 0.6231438518, 0.1762418747, 0.1875788271, 0.1708983332, -0.0578058921, 0.1968635172, 0.139608264, 0.460858196, 0.1485403031, -0.1045295224, 0.3305898607, 0.0849831179, -0.3923917413, 0.0607266873, 0.4056646228, 0.0514996499, -0.1435221285, -0.3624249995, -0.1243832558, 0.2656405866, -0.1463880986, 0.0612578429, 0.0760947019, 0.1023113504, 0.2640478611, -0.0980495736, 0.0457724333, -0.2383556217, 0.3623010814, -0.0768161789, 0.0523203388, -0.0524854735, -0.0319740586, 0.1279325336, 0.4332466125, -0.2409583628, 0.0866984054, 0.3082463741, 0.0979953334, 0.0722192749, 0.7346702218, 0.1393728852, -0.0666312799, 0.1216401309, 0.1109629795, -0.1318766177, -0.1888069361, -0.1167457625, 0.3484976292, -0.0093564736, 0.325563252, 0.2863841057, 0.043578364, -0.0529289953, 0.0666890368, -0.1689364165, 0.2150975317, -0.2175322473, 0.0712392405, 0.1111274213, -0.1324353367, -0.0882780626, -0.0969088748, -0.1701200455, -0.0464951918, 0.5418506265, -0.4652889967, 0.2704916298, -0.2745739222, 0.0543938652, 0.1232985556, 0.3114007413, -0.0394726247, -0.3579423428, -0.1926585287, 0.1928240359, -0.3318690658, -0.1626513898, 0.4726720452, 0.1158629134, 0.1999970526, -0.0569342189, 0.0162108, 0.1867894083, 0.1173728406, -0.5050138235, 0.2415307611, 0.1595885158, -0.1544606388, 0.397372812, -0.0629622713, 0.1085557714, -0.0123484358, -0.1001737565, 0.6618405581, 0.201100722, 0.0149227809, 0.1274356097, 0.3386905491, -0.1365363896, -0.0419211537, 0.0031683899, 0.3509083092, 0.2207309157, -0.1521760076, 0.2060662657, 0.2239683419, -0.0503084324, -0.2657142878, 0.5154459476, 0.3362828493, 0.2789453566, -0.2358086556, 0.1547261477, -0.0598987192, -0.0069206674, 0.2481375784, -0.2816479504, -0.340616107, 0.3318557739, -0.2159689367, 0.0495023429, -0.1034439206, 0.1342034042, 0.1519671977, -0.0649345666, 0.0009992965, -0.6940476894, 0.5485824347, 0.0636804253, -0.1229760647, 0.1881203502, -0.053434968, -0.0803155079, -0.2104532719, -0.7903729677, -0.316375941, 0.2970036268, -0.3647543192, 0.0703962743, 0.1648340672, -0.0152016934, 0.0443741083, -0.2212930769, 0.3441737294, -0.1259049326, -0.1371770203, 0.1704500169, -0.0689055547 ]
https://github.com/huggingface/datasets/issues/3480
the compression format requested when saving a dataset in json format is not respected
Thanks for reporting @SaulLu. At first sight I think the problem is caused because `pandas` only takes into account the `compression` parameter if called with a non-null file path or buffer. And in our implementation, we call pandas `to_json` with `None` `path_or_buf`. We should fix this: - either handling directly the `compression` parameter ourselves - or refactoring to pass non-null path or buffer to pandas CC: @lhoestq
## Describe the bug In the documentation of the `to_json` method, it is stated in the parameters that > **to_json_kwargs – Parameters to pass to pandas’s pandas.DataFrame.to_json. however when we pass for example `compression="gzip"`, the saved file is not compressed. Would you also have expected compression to be applied? :relaxed: ## Steps to reproduce the bug ```python my_dict = {"a": [1, 2, 3], "b": [1, 2, 3]} ``` ### Result with datasets ```python from datasets import Dataset dataset = Dataset.from_dict(my_dict) dataset.to_json("dic_with_datasets.jsonl.gz", compression="gzip") !cat dic_with_datasets.jsonl.gz ``` output ``` {"a":1,"b":1} {"a":2,"b":2} {"a":3,"b":3} ``` Note: I would expected to see binary data here ### Result with pandas ```python import pandas as pd df = pd.DataFrame(my_dict) df.to_json("dic_with_pandas.jsonl.gz", lines=True, orient="records", compression="gzip") !cat dic_with_pandas.jsonl.gz ``` output ``` 4��a�dic_with_pandas.jsonl��VJT�2�QJ��\� ��g��yƵ���������)��� ``` Note: It looks like binary data ## Expected results I would have expected that the saved result with datasets would also be a binary file ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.11 - PyArrow version: 5.0.0
67
the compression format requested when saving a dataset in json format is not respected ## Describe the bug In the documentation of the `to_json` method, it is stated in the parameters that > **to_json_kwargs – Parameters to pass to pandas’s pandas.DataFrame.to_json. however when we pass for example `compression="gzip"`, the saved file is not compressed. Would you also have expected compression to be applied? :relaxed: ## Steps to reproduce the bug ```python my_dict = {"a": [1, 2, 3], "b": [1, 2, 3]} ``` ### Result with datasets ```python from datasets import Dataset dataset = Dataset.from_dict(my_dict) dataset.to_json("dic_with_datasets.jsonl.gz", compression="gzip") !cat dic_with_datasets.jsonl.gz ``` output ``` {"a":1,"b":1} {"a":2,"b":2} {"a":3,"b":3} ``` Note: I would expected to see binary data here ### Result with pandas ```python import pandas as pd df = pd.DataFrame(my_dict) df.to_json("dic_with_pandas.jsonl.gz", lines=True, orient="records", compression="gzip") !cat dic_with_pandas.jsonl.gz ``` output ``` 4��a�dic_with_pandas.jsonl��VJT�2�QJ��\� ��g��yƵ���������)��� ``` Note: It looks like binary data ## Expected results I would have expected that the saved result with datasets would also be a binary file ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.11 - PyArrow version: 5.0.0 Thanks for reporting @SaulLu. At first sight I think the problem is caused because `pandas` only takes into account the `compression` parameter if called with a non-null file path or buffer. And in our implementation, we call pandas `to_json` with `None` `path_or_buf`. We should fix this: - either handling directly the `compression` parameter ourselves - or refactoring to pass non-null path or buffer to pandas CC: @lhoestq
[ 0.0959543958, 0.084326975, 0.0052433158, 0.1249306872, 0.2311229408, 0.2284452617, 0.1374153793, 0.735542655, -0.1682051718, 0.0322644599, 0.0988725051, 0.6285889149, 0.1668547392, -0.1779368669, -0.0252587833, -0.1777684838, 0.2336666286, 0.278378576, 0.1768105775, -0.0489056706, -0.3310528696, 0.202629745, -0.0932227597, 0.0754082203, -0.0871059671, -0.3380554616, -0.2930556238, 0.0848302841, -0.2822119594, -0.320866704, 0.2543917298, -0.105954051, 0.1139653027, 0.2735970318, -0.0001103283, -0.1187786087, 0.5136423111, -0.1129105911, -0.3638564646, -0.1143036112, -0.515129447, -0.5084792376, -0.0209046863, -0.3923642933, -0.0042844457, -0.6715155244, -0.1304218769, -0.4284906089, 0.5897341371, 0.1064264551, 0.2530964911, -0.1132916287, 0.2179193646, -0.07767158, -0.4429483712, 0.3793645501, -0.188532263, 0.187090978, -0.1671288908, 0.2569930851, 0.1956579983, 0.0812299103, -0.0926644802, -0.0216837879, 0.0097035896, 0.0350484997, 0.0197319463, -0.049835939, -0.0271455273, 0.0761541873, 0.4737273157, -0.305811733, -0.6643251777, -0.0795006156, 0.0658666417, -0.2094258368, 0.0189701896, 0.2863758802, -0.1166770831, 0.0483195148, -0.1525430679, -0.0630098283, -0.2724606991, 0.0371536314, -0.0365024991, -0.0492578484, -0.253621757, -0.0369625129, -0.0159971509, -0.0305200797, -0.0708622262, -0.5273457766, -0.1865665466, 0.1457216442, -0.0719662681, -0.3064986169, 0.0000984728, -0.2987368405, 0.1936796308, 0.0176804233, -0.0028410931, -0.1849239022, 0.1466291845, -0.0029880286, 0.4204555452, 0.1502864361, 0.0802351832, 0.3146013021, 0.099152863, 0.0850720182, 0.1365206689, -0.1048126295, 0.0079433639, -0.1041576192, 0.3732405901, -0.143991515, 0.3312725127, -0.2030401528, -0.216800943, 0.0833556429, -0.2611644566, 0.0630731359, -0.3124164641, -0.1507602632, -0.1514781564, 0.2332489491, 0.0034763599, 0.3078615367, 0.137024641, 0.4168915153, -0.2586381137, 0.0041813063, 0.1273590028, -0.143248409, 0.0378019512, -0.4046562612, 0.0895786062, 0.5105075836, -0.022477977, -0.0826414078, -0.0100099677, -0.0854527578, 0.1955714375, 0.2579304874, 0.1437712163, 0.2792627811, 0.2089689374, -0.2113301605, -0.2986185253, 0.2486826777, -0.4605104625, 0.0292070601, -0.2560099959, 0.1595025063, -0.042927485, 0.055116646, -0.3348671198, 0.274867624, 0.1966767162, -0.1801181138, 0.0321299434, 0.0267427657, 0.0006636361, -0.4571326077, 0.2918200195, 0.1182112023, -0.5121602416, 0.021381719, 0.0750148073, 0.2308676392, 0.6207116246, 0.5247012377, -0.1191913337, -0.1412649304, -0.1423733383, 0.1645466685, 0.3763669729, -0.0468307473, -0.4045384228, 0.3642503023, 0.0242295172, 0.4847750664, 0.1305290461, -0.2228394598, 0.155068323, -0.0363500454, 0.1992653459, 0.3693660796, -0.0557482839, 0.0619118363, -0.4430516958, -0.064292185, 0.4678367376, -0.1699501127, -0.3883447349, 0.2178978473, -0.00245294, 0.2428590655, 0.2506139278, -0.0804757103, 0.0638638437, 0.3086358309, 0.1198654845, -0.3146741986, 0.1632295102, 0.3052102625, 0.1472618282, -0.1145885289, 0.0809542611, -0.1498435438, -0.3048722446, -0.1407958418, -0.2058816701, -0.1875879765, -0.107692726, -0.1177968532, 0.1780435592, 0.0128932875, -0.0120474827, 0.3903463483, 0.0264937542, 0.4820532501, 0.1005361751, -0.0010462917, -0.2759959698, 0.1158207431, -0.0379242934, -0.2311153263, 0.3320189714, -0.0974185392, 0.2295008302, -0.1428047121, -0.300134778, 0.1413774937, 0.2170107216, 0.225867942, -0.0660842285, -0.0925226286, 0.1412868947, 0.1051119789, 0.1502962261, 0.5381321907, 0.180896461, 0.0085956752, -0.5527156591, 0.4099637866, 0.0243916474, -0.0862065181, -0.1178915426, 0.0540284589, 0.3378256857, 0.108368136, -0.2041238993, -0.0977727026, -0.2750461996, -0.0472349301, -0.1340637654, 0.1668382287, -0.3097890019, 0.022549402, 0.6822716594, -0.0963477492, 0.0762594044, 0.283069849, -0.0423355177, -0.415725559, 0.1052125171, 0.2975736558, 0.461668551, 0.0805433095, 0.1279069036, -0.2288960963, -0.1549202353, -0.0906842873, 0.1673585624, -0.0770628303, 0.2545942068, 0.1181303412, 0.1110529527, 0.2820703685, -0.0290894918, 0.3023229241, -0.0234718826, 0.0714604557, -0.2308460623, 0.2031535655, -0.4720598459, -0.0302267987, 0.033102341, -0.1164301708, -0.0778420791, -0.3131667674, -0.1119891331, -0.0769644305, 0.0319993719, 0.0924172029, -0.1024043486, 0.2103667408, 0.2172865719, -0.2005131841, -0.286559999, 0.1968994141, -0.2816171944, 0.143331781, -0.1378453374, -0.2001893669, 0.166710481, -0.075466603, 0.0600255318, 0.0569987856, -0.1135571748, -0.0663515925, -0.2575480044, 0.2288731188, 0.0273012891, 0.3378920853, -0.2068569064, -0.1598187387, 0.1648994982, 0.1095994338, -0.1696804166, 0.1982068717, -0.0528213941, -0.0715165958, -0.093269892, -0.0318816081, -0.1572360396, -0.1063427478, 0.2704165578, -0.0565910228, 0.1392191797, 0.1973007321, 0.2140406668, -0.1268418729, 0.3513578773, 0.0511155203, -0.2392888218, -0.5068240762, 0.7602478862, -0.2449452877, -0.3859739006, -0.1725376844, 0.079528816, 0.1614607871, -0.0880030766, -0.1534083486, -0.0119471196, -0.224977985, -0.067815721, -0.1848443598, 0.0198619589, 0.0403064303, 0.0518769398, -0.1263994724, -0.1105453819, -0.2610534728, -0.033003211, 0.3372405767, 0.4534071982, -0.0190294683, 0.4135376215, 0.1546539515, -0.17939955, 0.5717160702, 0.0476982296, 0.3094683886, 0.1278037578, 0.3763606846, -0.0722107291, -0.2975990474, -0.0612751245, -0.0679246187, 0.0264544785, 0.0939799696, 0.1127979234, -0.1751132905, 0.0689913705, -0.2409233302, -0.2740904093, -0.2495454103, -0.0357407704, -0.1889057308, 0.082905449, 0.0020649256, 0.1178090721, -0.1368969381, 0.0763358846, -0.0126139335, 0.3689611852, 0.3340449929, 0.1307107508, 0.0789883509, -0.0939674154, -0.6562027335, 0.1513341516, 0.0436341278, 0.5441921353, 0.0582962185, 0.1738841385, -0.0023034813, -0.043420583, 0.6829501987, -0.1703356653, -0.2175702304, 0.3610576689, 0.0684261397, -0.4031473994, -0.0112643484, 0.02728034, 0.2091779411, -0.053587079, 0.3538142443, -0.1131020561, -0.2115356475, -0.1857877374, 0.1027956456, -0.1100289598, -0.2035538107, -0.3175363243, -0.4147720337, -0.1589714289, -0.0881585255, 0.2062910646, 0.3032518625, -0.2433008105, -0.3415138721, -0.2025645226, -0.0973349959, 0.1102033705, 0.0247610323, 0.4115578234, 0.0624697432, 0.0062405709, -0.1139804274, 0.2230095267, 0.4027943313, 0.2820367813, 0.2034546733, -0.275192827, -0.0792814866, -0.2088813037, 0.1480706334, -0.0405387022, -0.2771978974, -0.0898667201, -0.4160830081, -0.0191448387, -0.2324633747, -0.3044740856, 0.5022268891, -0.18249695, -0.6107929349, -0.2482057214, 0.2525749505, 0.2145349085, 0.0979931727, 0.3040968776, -0.058368925, -0.2316194177, 0.1280367523, 0.2611038983, 0.7648084164, 0.047799319, 0.1504538655, 0.2229180336, -0.565670073, 0.671959579, -0.0372922979, 0.1371887922, -0.0955162644, -0.2174440771, -0.0292407181, 0.0092701474, 0.291251719, 0.2295021862, -0.5380389094, 0.1535478681, -0.432993263, -0.3317451775, 0.0201896727, 0.2693520188, -0.1606557369, -0.2301663905, -0.6696221232, 0.2430445701, -0.0148900086, -0.0291407313, 0.215669021, -0.5278519988, -0.3152644634, -0.126413554, -0.2449496835, 0.2655180693, 0.1530911773, 0.2015731782, -0.0695264339, -0.1790905297, 0.1609864533, 0.099997431, 0.2952477038, 0.208327353, -0.125469625, -0.0289131887, -0.2899478078, 0.2646274865, -0.1493808776, -0.0603321455, 0.3584861755, 0.1002922878, 0.0841559842, 0.0039131455, -0.1636638492, -0.1743364334, -0.023732068, -0.0884042978, -0.3093299568, -0.2989714146, -0.2347984165, -0.3162449002, 0.0205171425, -0.2498167753, 0.2022714168, 0.2587643266, -0.016322786, 0.5083416104, -0.3028536141, -0.0734405518, -0.0519817919, 0.3211494386, 0.0306610204, 0.037993174, 0.3723026812, -0.2899669707, -0.2237903774, -0.0578474887, 0.2762362957, 0.1739892215, 0.0845365748, 0.4398041368, -0.1921887845, 0.3383109272, -0.1641836911, 0.0826995373, 0.0909125581, 0.1436515152, 0.0585507751, -0.294611752, -0.2884425819, -0.014750923, 0.0999455228, 0.2017605603, 0.0350542516, -0.013776578, 0.0843626112, 0.012538041, -0.2965554893, -0.0276377853, -0.1254159212, 0.0332886688, -0.0829666555, 0.1061921418, 0.0400062315, -0.2081895024, 0.1509660482, 0.1804578751, 0.1895146668, -0.2852138579, -0.3200521767, 0.076171197, 0.148922205, -0.1874304265, 0.067451179, -0.1909283698, -0.2400866151, -0.1226834431, -0.0749147832, 0.0677150041, 0.051077351, 0.0363444239, 0.2635914981, -0.0487925857, 0.0401612967, -0.2158331871, -0.1300802827, 0.3530085087, 0.0816779286, 0.157754451, 0.117397204, -0.0482018329, -0.3440636992, 0.0452061966, -0.1430158466, 0.0248023141, 0.325268358, -0.16998519, -0.0783051625, 0.1223146319, 0.3196020126, 0.2394128442, -0.3257862329, 0.1249779314, -0.1297790706, 0.2032168806, -0.0830330998, -0.3596097827, -0.0024459537, 0.1535173506, -0.3954207599, 0.0544032343, -0.0253195874, 0.0731608644, -0.2135805041, -0.308454603, 0.3390391171, -0.002076928, 0.2323206216, 0.6476688981, 0.0834941342, 0.1626054496, 0.0686664507, 0.0551368631, 0.0063887257, -0.0060960702, 0.1741124392, 0.0862560868, 0.4006585777, 0.0196216572, -0.146630764, -0.1343442053, 0.0600057803, 0.0944372714, -0.0981066674, 0.4090543091, 0.4583696425, 0.0350135043, -0.3348219395, -0.156744048, -0.1281084865, 0.1168326959, -0.1652140766, -0.008708477, 0.0397497863, -0.0089481995, -0.1607346535, -0.0963895693, -0.107201755, -0.0935494527, -0.2268863767, 0.1075505391, 0.0426643565, -0.2004526854, 0.1316161454, 0.0881387964, 0.4066199362, -0.2200848907, 0.0976666957, 0.2092812806, -0.255071342, -0.1891207844, 0.289016664, 0.5846915841, 0.183226347, 0.2996285856, -0.0491735488, 0.1829448789, -0.2026684731, 0.2648801804, 0.3856571615, 0.2498902678, -0.2644187808, 0.1233005524, 0.1915400773, -0.0314275101, 0.1931458861, 0.0736634135, 0.133157596, -0.1689528972, 0.4247643352, -0.1596186757, -0.1833958328, 0.0584613457, -0.0521482229, -0.0726136416, -0.2956833541, 0.1621611118, 0.18648839, 0.0423473902, -0.2314818352, 0.108908616, -0.0213337392, 0.2124733329, 0.1268223375, -0.1877837628, -0.2670211494, -0.1557720304, -0.0754285753, 0.1439042836, 0.0062727216, -0.0919221491, 0.2019765377, 0.1498026252, 0.0341044813, 0.0259473622, -0.1001783982, 0.3615374863, -0.1380596757, 0.2271478474, -0.2319260687, -0.1158759445, 0.2141506225, -0.0835824758, -0.0598778762, -0.2505144179, 0.4199290276, -0.1742231101, 0.1069798619, -0.3530464172, 0.1702563763, -0.1414099038, 0.4390194118, 0.1981346756, 0.4460699558, 0.0558557063, -0.2125952989, -0.2845892906, -0.0204708017, 0.3433521986, -0.2253361642, 0.343719691, -0.0981763676, 0.5184318423, -0.0654017627, -0.1895947754, -0.1380214989, 0.1557812542, -0.0929613113, -0.2840008438, -0.1906114221, 0.0431680754, -0.0916461721, -0.2807298601, 0.2773646116, 0.1502126455, -0.1078099236, 0.3298941553, -0.1095031574, -0.2034248561, 0.2861424387, -0.1726787984, -0.240725264, 0.1346254647, 0.007217824, 0.0363631062, 0.0713204667, -0.1567899436, 0.0027210298, 0.3820611238, -0.0740500242, -0.0592250489, 0.3169441819, 0.0407354832, 0.1366226226, -0.0777655765, 0.1657474041, 0.0360882431, -0.0481742434, 0.2028805315, -0.2354460955 ]
https://github.com/huggingface/datasets/issues/3480
the compression format requested when saving a dataset in json format is not respected
I was thinking if we can handle the `compression` parameter by ourselves? Compression types will be similar to what `pandas` offer. Initially, we can try this with 2-3 compression types and see how good/bad it is? Let me know if it sounds good, I can raise a PR for this next week
## Describe the bug In the documentation of the `to_json` method, it is stated in the parameters that > **to_json_kwargs – Parameters to pass to pandas’s pandas.DataFrame.to_json. however when we pass for example `compression="gzip"`, the saved file is not compressed. Would you also have expected compression to be applied? :relaxed: ## Steps to reproduce the bug ```python my_dict = {"a": [1, 2, 3], "b": [1, 2, 3]} ``` ### Result with datasets ```python from datasets import Dataset dataset = Dataset.from_dict(my_dict) dataset.to_json("dic_with_datasets.jsonl.gz", compression="gzip") !cat dic_with_datasets.jsonl.gz ``` output ``` {"a":1,"b":1} {"a":2,"b":2} {"a":3,"b":3} ``` Note: I would expected to see binary data here ### Result with pandas ```python import pandas as pd df = pd.DataFrame(my_dict) df.to_json("dic_with_pandas.jsonl.gz", lines=True, orient="records", compression="gzip") !cat dic_with_pandas.jsonl.gz ``` output ``` 4��a�dic_with_pandas.jsonl��VJT�2�QJ��\� ��g��yƵ���������)��� ``` Note: It looks like binary data ## Expected results I would have expected that the saved result with datasets would also be a binary file ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.11 - PyArrow version: 5.0.0
52
the compression format requested when saving a dataset in json format is not respected ## Describe the bug In the documentation of the `to_json` method, it is stated in the parameters that > **to_json_kwargs – Parameters to pass to pandas’s pandas.DataFrame.to_json. however when we pass for example `compression="gzip"`, the saved file is not compressed. Would you also have expected compression to be applied? :relaxed: ## Steps to reproduce the bug ```python my_dict = {"a": [1, 2, 3], "b": [1, 2, 3]} ``` ### Result with datasets ```python from datasets import Dataset dataset = Dataset.from_dict(my_dict) dataset.to_json("dic_with_datasets.jsonl.gz", compression="gzip") !cat dic_with_datasets.jsonl.gz ``` output ``` {"a":1,"b":1} {"a":2,"b":2} {"a":3,"b":3} ``` Note: I would expected to see binary data here ### Result with pandas ```python import pandas as pd df = pd.DataFrame(my_dict) df.to_json("dic_with_pandas.jsonl.gz", lines=True, orient="records", compression="gzip") !cat dic_with_pandas.jsonl.gz ``` output ``` 4��a�dic_with_pandas.jsonl��VJT�2�QJ��\� ��g��yƵ���������)��� ``` Note: It looks like binary data ## Expected results I would have expected that the saved result with datasets would also be a binary file ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.11 - PyArrow version: 5.0.0 I was thinking if we can handle the `compression` parameter by ourselves? Compression types will be similar to what `pandas` offer. Initially, we can try this with 2-3 compression types and see how good/bad it is? Let me know if it sounds good, I can raise a PR for this next week
[ 0.0959543958, 0.084326975, 0.0052433158, 0.1249306872, 0.2311229408, 0.2284452617, 0.1374153793, 0.735542655, -0.1682051718, 0.0322644599, 0.0988725051, 0.6285889149, 0.1668547392, -0.1779368669, -0.0252587833, -0.1777684838, 0.2336666286, 0.278378576, 0.1768105775, -0.0489056706, -0.3310528696, 0.202629745, -0.0932227597, 0.0754082203, -0.0871059671, -0.3380554616, -0.2930556238, 0.0848302841, -0.2822119594, -0.320866704, 0.2543917298, -0.105954051, 0.1139653027, 0.2735970318, -0.0001103283, -0.1187786087, 0.5136423111, -0.1129105911, -0.3638564646, -0.1143036112, -0.515129447, -0.5084792376, -0.0209046863, -0.3923642933, -0.0042844457, -0.6715155244, -0.1304218769, -0.4284906089, 0.5897341371, 0.1064264551, 0.2530964911, -0.1132916287, 0.2179193646, -0.07767158, -0.4429483712, 0.3793645501, -0.188532263, 0.187090978, -0.1671288908, 0.2569930851, 0.1956579983, 0.0812299103, -0.0926644802, -0.0216837879, 0.0097035896, 0.0350484997, 0.0197319463, -0.049835939, -0.0271455273, 0.0761541873, 0.4737273157, -0.305811733, -0.6643251777, -0.0795006156, 0.0658666417, -0.2094258368, 0.0189701896, 0.2863758802, -0.1166770831, 0.0483195148, -0.1525430679, -0.0630098283, -0.2724606991, 0.0371536314, -0.0365024991, -0.0492578484, -0.253621757, -0.0369625129, -0.0159971509, -0.0305200797, -0.0708622262, -0.5273457766, -0.1865665466, 0.1457216442, -0.0719662681, -0.3064986169, 0.0000984728, -0.2987368405, 0.1936796308, 0.0176804233, -0.0028410931, -0.1849239022, 0.1466291845, -0.0029880286, 0.4204555452, 0.1502864361, 0.0802351832, 0.3146013021, 0.099152863, 0.0850720182, 0.1365206689, -0.1048126295, 0.0079433639, -0.1041576192, 0.3732405901, -0.143991515, 0.3312725127, -0.2030401528, -0.216800943, 0.0833556429, -0.2611644566, 0.0630731359, -0.3124164641, -0.1507602632, -0.1514781564, 0.2332489491, 0.0034763599, 0.3078615367, 0.137024641, 0.4168915153, -0.2586381137, 0.0041813063, 0.1273590028, -0.143248409, 0.0378019512, -0.4046562612, 0.0895786062, 0.5105075836, -0.022477977, -0.0826414078, -0.0100099677, -0.0854527578, 0.1955714375, 0.2579304874, 0.1437712163, 0.2792627811, 0.2089689374, -0.2113301605, -0.2986185253, 0.2486826777, -0.4605104625, 0.0292070601, -0.2560099959, 0.1595025063, -0.042927485, 0.055116646, -0.3348671198, 0.274867624, 0.1966767162, -0.1801181138, 0.0321299434, 0.0267427657, 0.0006636361, -0.4571326077, 0.2918200195, 0.1182112023, -0.5121602416, 0.021381719, 0.0750148073, 0.2308676392, 0.6207116246, 0.5247012377, -0.1191913337, -0.1412649304, -0.1423733383, 0.1645466685, 0.3763669729, -0.0468307473, -0.4045384228, 0.3642503023, 0.0242295172, 0.4847750664, 0.1305290461, -0.2228394598, 0.155068323, -0.0363500454, 0.1992653459, 0.3693660796, -0.0557482839, 0.0619118363, -0.4430516958, -0.064292185, 0.4678367376, -0.1699501127, -0.3883447349, 0.2178978473, -0.00245294, 0.2428590655, 0.2506139278, -0.0804757103, 0.0638638437, 0.3086358309, 0.1198654845, -0.3146741986, 0.1632295102, 0.3052102625, 0.1472618282, -0.1145885289, 0.0809542611, -0.1498435438, -0.3048722446, -0.1407958418, -0.2058816701, -0.1875879765, -0.107692726, -0.1177968532, 0.1780435592, 0.0128932875, -0.0120474827, 0.3903463483, 0.0264937542, 0.4820532501, 0.1005361751, -0.0010462917, -0.2759959698, 0.1158207431, -0.0379242934, -0.2311153263, 0.3320189714, -0.0974185392, 0.2295008302, -0.1428047121, -0.300134778, 0.1413774937, 0.2170107216, 0.225867942, -0.0660842285, -0.0925226286, 0.1412868947, 0.1051119789, 0.1502962261, 0.5381321907, 0.180896461, 0.0085956752, -0.5527156591, 0.4099637866, 0.0243916474, -0.0862065181, -0.1178915426, 0.0540284589, 0.3378256857, 0.108368136, -0.2041238993, -0.0977727026, -0.2750461996, -0.0472349301, -0.1340637654, 0.1668382287, -0.3097890019, 0.022549402, 0.6822716594, -0.0963477492, 0.0762594044, 0.283069849, -0.0423355177, -0.415725559, 0.1052125171, 0.2975736558, 0.461668551, 0.0805433095, 0.1279069036, -0.2288960963, -0.1549202353, -0.0906842873, 0.1673585624, -0.0770628303, 0.2545942068, 0.1181303412, 0.1110529527, 0.2820703685, -0.0290894918, 0.3023229241, -0.0234718826, 0.0714604557, -0.2308460623, 0.2031535655, -0.4720598459, -0.0302267987, 0.033102341, -0.1164301708, -0.0778420791, -0.3131667674, -0.1119891331, -0.0769644305, 0.0319993719, 0.0924172029, -0.1024043486, 0.2103667408, 0.2172865719, -0.2005131841, -0.286559999, 0.1968994141, -0.2816171944, 0.143331781, -0.1378453374, -0.2001893669, 0.166710481, -0.075466603, 0.0600255318, 0.0569987856, -0.1135571748, -0.0663515925, -0.2575480044, 0.2288731188, 0.0273012891, 0.3378920853, -0.2068569064, -0.1598187387, 0.1648994982, 0.1095994338, -0.1696804166, 0.1982068717, -0.0528213941, -0.0715165958, -0.093269892, -0.0318816081, -0.1572360396, -0.1063427478, 0.2704165578, -0.0565910228, 0.1392191797, 0.1973007321, 0.2140406668, -0.1268418729, 0.3513578773, 0.0511155203, -0.2392888218, -0.5068240762, 0.7602478862, -0.2449452877, -0.3859739006, -0.1725376844, 0.079528816, 0.1614607871, -0.0880030766, -0.1534083486, -0.0119471196, -0.224977985, -0.067815721, -0.1848443598, 0.0198619589, 0.0403064303, 0.0518769398, -0.1263994724, -0.1105453819, -0.2610534728, -0.033003211, 0.3372405767, 0.4534071982, -0.0190294683, 0.4135376215, 0.1546539515, -0.17939955, 0.5717160702, 0.0476982296, 0.3094683886, 0.1278037578, 0.3763606846, -0.0722107291, -0.2975990474, -0.0612751245, -0.0679246187, 0.0264544785, 0.0939799696, 0.1127979234, -0.1751132905, 0.0689913705, -0.2409233302, -0.2740904093, -0.2495454103, -0.0357407704, -0.1889057308, 0.082905449, 0.0020649256, 0.1178090721, -0.1368969381, 0.0763358846, -0.0126139335, 0.3689611852, 0.3340449929, 0.1307107508, 0.0789883509, -0.0939674154, -0.6562027335, 0.1513341516, 0.0436341278, 0.5441921353, 0.0582962185, 0.1738841385, -0.0023034813, -0.043420583, 0.6829501987, -0.1703356653, -0.2175702304, 0.3610576689, 0.0684261397, -0.4031473994, -0.0112643484, 0.02728034, 0.2091779411, -0.053587079, 0.3538142443, -0.1131020561, -0.2115356475, -0.1857877374, 0.1027956456, -0.1100289598, -0.2035538107, -0.3175363243, -0.4147720337, -0.1589714289, -0.0881585255, 0.2062910646, 0.3032518625, -0.2433008105, -0.3415138721, -0.2025645226, -0.0973349959, 0.1102033705, 0.0247610323, 0.4115578234, 0.0624697432, 0.0062405709, -0.1139804274, 0.2230095267, 0.4027943313, 0.2820367813, 0.2034546733, -0.275192827, -0.0792814866, -0.2088813037, 0.1480706334, -0.0405387022, -0.2771978974, -0.0898667201, -0.4160830081, -0.0191448387, -0.2324633747, -0.3044740856, 0.5022268891, -0.18249695, -0.6107929349, -0.2482057214, 0.2525749505, 0.2145349085, 0.0979931727, 0.3040968776, -0.058368925, -0.2316194177, 0.1280367523, 0.2611038983, 0.7648084164, 0.047799319, 0.1504538655, 0.2229180336, -0.565670073, 0.671959579, -0.0372922979, 0.1371887922, -0.0955162644, -0.2174440771, -0.0292407181, 0.0092701474, 0.291251719, 0.2295021862, -0.5380389094, 0.1535478681, -0.432993263, -0.3317451775, 0.0201896727, 0.2693520188, -0.1606557369, -0.2301663905, -0.6696221232, 0.2430445701, -0.0148900086, -0.0291407313, 0.215669021, -0.5278519988, -0.3152644634, -0.126413554, -0.2449496835, 0.2655180693, 0.1530911773, 0.2015731782, -0.0695264339, -0.1790905297, 0.1609864533, 0.099997431, 0.2952477038, 0.208327353, -0.125469625, -0.0289131887, -0.2899478078, 0.2646274865, -0.1493808776, -0.0603321455, 0.3584861755, 0.1002922878, 0.0841559842, 0.0039131455, -0.1636638492, -0.1743364334, -0.023732068, -0.0884042978, -0.3093299568, -0.2989714146, -0.2347984165, -0.3162449002, 0.0205171425, -0.2498167753, 0.2022714168, 0.2587643266, -0.016322786, 0.5083416104, -0.3028536141, -0.0734405518, -0.0519817919, 0.3211494386, 0.0306610204, 0.037993174, 0.3723026812, -0.2899669707, -0.2237903774, -0.0578474887, 0.2762362957, 0.1739892215, 0.0845365748, 0.4398041368, -0.1921887845, 0.3383109272, -0.1641836911, 0.0826995373, 0.0909125581, 0.1436515152, 0.0585507751, -0.294611752, -0.2884425819, -0.014750923, 0.0999455228, 0.2017605603, 0.0350542516, -0.013776578, 0.0843626112, 0.012538041, -0.2965554893, -0.0276377853, -0.1254159212, 0.0332886688, -0.0829666555, 0.1061921418, 0.0400062315, -0.2081895024, 0.1509660482, 0.1804578751, 0.1895146668, -0.2852138579, -0.3200521767, 0.076171197, 0.148922205, -0.1874304265, 0.067451179, -0.1909283698, -0.2400866151, -0.1226834431, -0.0749147832, 0.0677150041, 0.051077351, 0.0363444239, 0.2635914981, -0.0487925857, 0.0401612967, -0.2158331871, -0.1300802827, 0.3530085087, 0.0816779286, 0.157754451, 0.117397204, -0.0482018329, -0.3440636992, 0.0452061966, -0.1430158466, 0.0248023141, 0.325268358, -0.16998519, -0.0783051625, 0.1223146319, 0.3196020126, 0.2394128442, -0.3257862329, 0.1249779314, -0.1297790706, 0.2032168806, -0.0830330998, -0.3596097827, -0.0024459537, 0.1535173506, -0.3954207599, 0.0544032343, -0.0253195874, 0.0731608644, -0.2135805041, -0.308454603, 0.3390391171, -0.002076928, 0.2323206216, 0.6476688981, 0.0834941342, 0.1626054496, 0.0686664507, 0.0551368631, 0.0063887257, -0.0060960702, 0.1741124392, 0.0862560868, 0.4006585777, 0.0196216572, -0.146630764, -0.1343442053, 0.0600057803, 0.0944372714, -0.0981066674, 0.4090543091, 0.4583696425, 0.0350135043, -0.3348219395, -0.156744048, -0.1281084865, 0.1168326959, -0.1652140766, -0.008708477, 0.0397497863, -0.0089481995, -0.1607346535, -0.0963895693, -0.107201755, -0.0935494527, -0.2268863767, 0.1075505391, 0.0426643565, -0.2004526854, 0.1316161454, 0.0881387964, 0.4066199362, -0.2200848907, 0.0976666957, 0.2092812806, -0.255071342, -0.1891207844, 0.289016664, 0.5846915841, 0.183226347, 0.2996285856, -0.0491735488, 0.1829448789, -0.2026684731, 0.2648801804, 0.3856571615, 0.2498902678, -0.2644187808, 0.1233005524, 0.1915400773, -0.0314275101, 0.1931458861, 0.0736634135, 0.133157596, -0.1689528972, 0.4247643352, -0.1596186757, -0.1833958328, 0.0584613457, -0.0521482229, -0.0726136416, -0.2956833541, 0.1621611118, 0.18648839, 0.0423473902, -0.2314818352, 0.108908616, -0.0213337392, 0.2124733329, 0.1268223375, -0.1877837628, -0.2670211494, -0.1557720304, -0.0754285753, 0.1439042836, 0.0062727216, -0.0919221491, 0.2019765377, 0.1498026252, 0.0341044813, 0.0259473622, -0.1001783982, 0.3615374863, -0.1380596757, 0.2271478474, -0.2319260687, -0.1158759445, 0.2141506225, -0.0835824758, -0.0598778762, -0.2505144179, 0.4199290276, -0.1742231101, 0.1069798619, -0.3530464172, 0.1702563763, -0.1414099038, 0.4390194118, 0.1981346756, 0.4460699558, 0.0558557063, -0.2125952989, -0.2845892906, -0.0204708017, 0.3433521986, -0.2253361642, 0.343719691, -0.0981763676, 0.5184318423, -0.0654017627, -0.1895947754, -0.1380214989, 0.1557812542, -0.0929613113, -0.2840008438, -0.1906114221, 0.0431680754, -0.0916461721, -0.2807298601, 0.2773646116, 0.1502126455, -0.1078099236, 0.3298941553, -0.1095031574, -0.2034248561, 0.2861424387, -0.1726787984, -0.240725264, 0.1346254647, 0.007217824, 0.0363631062, 0.0713204667, -0.1567899436, 0.0027210298, 0.3820611238, -0.0740500242, -0.0592250489, 0.3169441819, 0.0407354832, 0.1366226226, -0.0777655765, 0.1657474041, 0.0360882431, -0.0481742434, 0.2028805315, -0.2354460955 ]
https://github.com/huggingface/datasets/issues/3480
the compression format requested when saving a dataset in json format is not respected
Hi ! Thanks for your help @bhavitvyamalik :) Maybe let's start with `gzip` ? I think it's the most common use case, then if we're fine with it we can add other compression methods
## Describe the bug In the documentation of the `to_json` method, it is stated in the parameters that > **to_json_kwargs – Parameters to pass to pandas’s pandas.DataFrame.to_json. however when we pass for example `compression="gzip"`, the saved file is not compressed. Would you also have expected compression to be applied? :relaxed: ## Steps to reproduce the bug ```python my_dict = {"a": [1, 2, 3], "b": [1, 2, 3]} ``` ### Result with datasets ```python from datasets import Dataset dataset = Dataset.from_dict(my_dict) dataset.to_json("dic_with_datasets.jsonl.gz", compression="gzip") !cat dic_with_datasets.jsonl.gz ``` output ``` {"a":1,"b":1} {"a":2,"b":2} {"a":3,"b":3} ``` Note: I would expected to see binary data here ### Result with pandas ```python import pandas as pd df = pd.DataFrame(my_dict) df.to_json("dic_with_pandas.jsonl.gz", lines=True, orient="records", compression="gzip") !cat dic_with_pandas.jsonl.gz ``` output ``` 4��a�dic_with_pandas.jsonl��VJT�2�QJ��\� ��g��yƵ���������)��� ``` Note: It looks like binary data ## Expected results I would have expected that the saved result with datasets would also be a binary file ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.11 - PyArrow version: 5.0.0
34
the compression format requested when saving a dataset in json format is not respected ## Describe the bug In the documentation of the `to_json` method, it is stated in the parameters that > **to_json_kwargs – Parameters to pass to pandas’s pandas.DataFrame.to_json. however when we pass for example `compression="gzip"`, the saved file is not compressed. Would you also have expected compression to be applied? :relaxed: ## Steps to reproduce the bug ```python my_dict = {"a": [1, 2, 3], "b": [1, 2, 3]} ``` ### Result with datasets ```python from datasets import Dataset dataset = Dataset.from_dict(my_dict) dataset.to_json("dic_with_datasets.jsonl.gz", compression="gzip") !cat dic_with_datasets.jsonl.gz ``` output ``` {"a":1,"b":1} {"a":2,"b":2} {"a":3,"b":3} ``` Note: I would expected to see binary data here ### Result with pandas ```python import pandas as pd df = pd.DataFrame(my_dict) df.to_json("dic_with_pandas.jsonl.gz", lines=True, orient="records", compression="gzip") !cat dic_with_pandas.jsonl.gz ``` output ``` 4��a�dic_with_pandas.jsonl��VJT�2�QJ��\� ��g��yƵ���������)��� ``` Note: It looks like binary data ## Expected results I would have expected that the saved result with datasets would also be a binary file ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.11 - PyArrow version: 5.0.0 Hi ! Thanks for your help @bhavitvyamalik :) Maybe let's start with `gzip` ? I think it's the most common use case, then if we're fine with it we can add other compression methods
[ 0.0959543958, 0.084326975, 0.0052433158, 0.1249306872, 0.2311229408, 0.2284452617, 0.1374153793, 0.735542655, -0.1682051718, 0.0322644599, 0.0988725051, 0.6285889149, 0.1668547392, -0.1779368669, -0.0252587833, -0.1777684838, 0.2336666286, 0.278378576, 0.1768105775, -0.0489056706, -0.3310528696, 0.202629745, -0.0932227597, 0.0754082203, -0.0871059671, -0.3380554616, -0.2930556238, 0.0848302841, -0.2822119594, -0.320866704, 0.2543917298, -0.105954051, 0.1139653027, 0.2735970318, -0.0001103283, -0.1187786087, 0.5136423111, -0.1129105911, -0.3638564646, -0.1143036112, -0.515129447, -0.5084792376, -0.0209046863, -0.3923642933, -0.0042844457, -0.6715155244, -0.1304218769, -0.4284906089, 0.5897341371, 0.1064264551, 0.2530964911, -0.1132916287, 0.2179193646, -0.07767158, -0.4429483712, 0.3793645501, -0.188532263, 0.187090978, -0.1671288908, 0.2569930851, 0.1956579983, 0.0812299103, -0.0926644802, -0.0216837879, 0.0097035896, 0.0350484997, 0.0197319463, -0.049835939, -0.0271455273, 0.0761541873, 0.4737273157, -0.305811733, -0.6643251777, -0.0795006156, 0.0658666417, -0.2094258368, 0.0189701896, 0.2863758802, -0.1166770831, 0.0483195148, -0.1525430679, -0.0630098283, -0.2724606991, 0.0371536314, -0.0365024991, -0.0492578484, -0.253621757, -0.0369625129, -0.0159971509, -0.0305200797, -0.0708622262, -0.5273457766, -0.1865665466, 0.1457216442, -0.0719662681, -0.3064986169, 0.0000984728, -0.2987368405, 0.1936796308, 0.0176804233, -0.0028410931, -0.1849239022, 0.1466291845, -0.0029880286, 0.4204555452, 0.1502864361, 0.0802351832, 0.3146013021, 0.099152863, 0.0850720182, 0.1365206689, -0.1048126295, 0.0079433639, -0.1041576192, 0.3732405901, -0.143991515, 0.3312725127, -0.2030401528, -0.216800943, 0.0833556429, -0.2611644566, 0.0630731359, -0.3124164641, -0.1507602632, -0.1514781564, 0.2332489491, 0.0034763599, 0.3078615367, 0.137024641, 0.4168915153, -0.2586381137, 0.0041813063, 0.1273590028, -0.143248409, 0.0378019512, -0.4046562612, 0.0895786062, 0.5105075836, -0.022477977, -0.0826414078, -0.0100099677, -0.0854527578, 0.1955714375, 0.2579304874, 0.1437712163, 0.2792627811, 0.2089689374, -0.2113301605, -0.2986185253, 0.2486826777, -0.4605104625, 0.0292070601, -0.2560099959, 0.1595025063, -0.042927485, 0.055116646, -0.3348671198, 0.274867624, 0.1966767162, -0.1801181138, 0.0321299434, 0.0267427657, 0.0006636361, -0.4571326077, 0.2918200195, 0.1182112023, -0.5121602416, 0.021381719, 0.0750148073, 0.2308676392, 0.6207116246, 0.5247012377, -0.1191913337, -0.1412649304, -0.1423733383, 0.1645466685, 0.3763669729, -0.0468307473, -0.4045384228, 0.3642503023, 0.0242295172, 0.4847750664, 0.1305290461, -0.2228394598, 0.155068323, -0.0363500454, 0.1992653459, 0.3693660796, -0.0557482839, 0.0619118363, -0.4430516958, -0.064292185, 0.4678367376, -0.1699501127, -0.3883447349, 0.2178978473, -0.00245294, 0.2428590655, 0.2506139278, -0.0804757103, 0.0638638437, 0.3086358309, 0.1198654845, -0.3146741986, 0.1632295102, 0.3052102625, 0.1472618282, -0.1145885289, 0.0809542611, -0.1498435438, -0.3048722446, -0.1407958418, -0.2058816701, -0.1875879765, -0.107692726, -0.1177968532, 0.1780435592, 0.0128932875, -0.0120474827, 0.3903463483, 0.0264937542, 0.4820532501, 0.1005361751, -0.0010462917, -0.2759959698, 0.1158207431, -0.0379242934, -0.2311153263, 0.3320189714, -0.0974185392, 0.2295008302, -0.1428047121, -0.300134778, 0.1413774937, 0.2170107216, 0.225867942, -0.0660842285, -0.0925226286, 0.1412868947, 0.1051119789, 0.1502962261, 0.5381321907, 0.180896461, 0.0085956752, -0.5527156591, 0.4099637866, 0.0243916474, -0.0862065181, -0.1178915426, 0.0540284589, 0.3378256857, 0.108368136, -0.2041238993, -0.0977727026, -0.2750461996, -0.0472349301, -0.1340637654, 0.1668382287, -0.3097890019, 0.022549402, 0.6822716594, -0.0963477492, 0.0762594044, 0.283069849, -0.0423355177, -0.415725559, 0.1052125171, 0.2975736558, 0.461668551, 0.0805433095, 0.1279069036, -0.2288960963, -0.1549202353, -0.0906842873, 0.1673585624, -0.0770628303, 0.2545942068, 0.1181303412, 0.1110529527, 0.2820703685, -0.0290894918, 0.3023229241, -0.0234718826, 0.0714604557, -0.2308460623, 0.2031535655, -0.4720598459, -0.0302267987, 0.033102341, -0.1164301708, -0.0778420791, -0.3131667674, -0.1119891331, -0.0769644305, 0.0319993719, 0.0924172029, -0.1024043486, 0.2103667408, 0.2172865719, -0.2005131841, -0.286559999, 0.1968994141, -0.2816171944, 0.143331781, -0.1378453374, -0.2001893669, 0.166710481, -0.075466603, 0.0600255318, 0.0569987856, -0.1135571748, -0.0663515925, -0.2575480044, 0.2288731188, 0.0273012891, 0.3378920853, -0.2068569064, -0.1598187387, 0.1648994982, 0.1095994338, -0.1696804166, 0.1982068717, -0.0528213941, -0.0715165958, -0.093269892, -0.0318816081, -0.1572360396, -0.1063427478, 0.2704165578, -0.0565910228, 0.1392191797, 0.1973007321, 0.2140406668, -0.1268418729, 0.3513578773, 0.0511155203, -0.2392888218, -0.5068240762, 0.7602478862, -0.2449452877, -0.3859739006, -0.1725376844, 0.079528816, 0.1614607871, -0.0880030766, -0.1534083486, -0.0119471196, -0.224977985, -0.067815721, -0.1848443598, 0.0198619589, 0.0403064303, 0.0518769398, -0.1263994724, -0.1105453819, -0.2610534728, -0.033003211, 0.3372405767, 0.4534071982, -0.0190294683, 0.4135376215, 0.1546539515, -0.17939955, 0.5717160702, 0.0476982296, 0.3094683886, 0.1278037578, 0.3763606846, -0.0722107291, -0.2975990474, -0.0612751245, -0.0679246187, 0.0264544785, 0.0939799696, 0.1127979234, -0.1751132905, 0.0689913705, -0.2409233302, -0.2740904093, -0.2495454103, -0.0357407704, -0.1889057308, 0.082905449, 0.0020649256, 0.1178090721, -0.1368969381, 0.0763358846, -0.0126139335, 0.3689611852, 0.3340449929, 0.1307107508, 0.0789883509, -0.0939674154, -0.6562027335, 0.1513341516, 0.0436341278, 0.5441921353, 0.0582962185, 0.1738841385, -0.0023034813, -0.043420583, 0.6829501987, -0.1703356653, -0.2175702304, 0.3610576689, 0.0684261397, -0.4031473994, -0.0112643484, 0.02728034, 0.2091779411, -0.053587079, 0.3538142443, -0.1131020561, -0.2115356475, -0.1857877374, 0.1027956456, -0.1100289598, -0.2035538107, -0.3175363243, -0.4147720337, -0.1589714289, -0.0881585255, 0.2062910646, 0.3032518625, -0.2433008105, -0.3415138721, -0.2025645226, -0.0973349959, 0.1102033705, 0.0247610323, 0.4115578234, 0.0624697432, 0.0062405709, -0.1139804274, 0.2230095267, 0.4027943313, 0.2820367813, 0.2034546733, -0.275192827, -0.0792814866, -0.2088813037, 0.1480706334, -0.0405387022, -0.2771978974, -0.0898667201, -0.4160830081, -0.0191448387, -0.2324633747, -0.3044740856, 0.5022268891, -0.18249695, -0.6107929349, -0.2482057214, 0.2525749505, 0.2145349085, 0.0979931727, 0.3040968776, -0.058368925, -0.2316194177, 0.1280367523, 0.2611038983, 0.7648084164, 0.047799319, 0.1504538655, 0.2229180336, -0.565670073, 0.671959579, -0.0372922979, 0.1371887922, -0.0955162644, -0.2174440771, -0.0292407181, 0.0092701474, 0.291251719, 0.2295021862, -0.5380389094, 0.1535478681, -0.432993263, -0.3317451775, 0.0201896727, 0.2693520188, -0.1606557369, -0.2301663905, -0.6696221232, 0.2430445701, -0.0148900086, -0.0291407313, 0.215669021, -0.5278519988, -0.3152644634, -0.126413554, -0.2449496835, 0.2655180693, 0.1530911773, 0.2015731782, -0.0695264339, -0.1790905297, 0.1609864533, 0.099997431, 0.2952477038, 0.208327353, -0.125469625, -0.0289131887, -0.2899478078, 0.2646274865, -0.1493808776, -0.0603321455, 0.3584861755, 0.1002922878, 0.0841559842, 0.0039131455, -0.1636638492, -0.1743364334, -0.023732068, -0.0884042978, -0.3093299568, -0.2989714146, -0.2347984165, -0.3162449002, 0.0205171425, -0.2498167753, 0.2022714168, 0.2587643266, -0.016322786, 0.5083416104, -0.3028536141, -0.0734405518, -0.0519817919, 0.3211494386, 0.0306610204, 0.037993174, 0.3723026812, -0.2899669707, -0.2237903774, -0.0578474887, 0.2762362957, 0.1739892215, 0.0845365748, 0.4398041368, -0.1921887845, 0.3383109272, -0.1641836911, 0.0826995373, 0.0909125581, 0.1436515152, 0.0585507751, -0.294611752, -0.2884425819, -0.014750923, 0.0999455228, 0.2017605603, 0.0350542516, -0.013776578, 0.0843626112, 0.012538041, -0.2965554893, -0.0276377853, -0.1254159212, 0.0332886688, -0.0829666555, 0.1061921418, 0.0400062315, -0.2081895024, 0.1509660482, 0.1804578751, 0.1895146668, -0.2852138579, -0.3200521767, 0.076171197, 0.148922205, -0.1874304265, 0.067451179, -0.1909283698, -0.2400866151, -0.1226834431, -0.0749147832, 0.0677150041, 0.051077351, 0.0363444239, 0.2635914981, -0.0487925857, 0.0401612967, -0.2158331871, -0.1300802827, 0.3530085087, 0.0816779286, 0.157754451, 0.117397204, -0.0482018329, -0.3440636992, 0.0452061966, -0.1430158466, 0.0248023141, 0.325268358, -0.16998519, -0.0783051625, 0.1223146319, 0.3196020126, 0.2394128442, -0.3257862329, 0.1249779314, -0.1297790706, 0.2032168806, -0.0830330998, -0.3596097827, -0.0024459537, 0.1535173506, -0.3954207599, 0.0544032343, -0.0253195874, 0.0731608644, -0.2135805041, -0.308454603, 0.3390391171, -0.002076928, 0.2323206216, 0.6476688981, 0.0834941342, 0.1626054496, 0.0686664507, 0.0551368631, 0.0063887257, -0.0060960702, 0.1741124392, 0.0862560868, 0.4006585777, 0.0196216572, -0.146630764, -0.1343442053, 0.0600057803, 0.0944372714, -0.0981066674, 0.4090543091, 0.4583696425, 0.0350135043, -0.3348219395, -0.156744048, -0.1281084865, 0.1168326959, -0.1652140766, -0.008708477, 0.0397497863, -0.0089481995, -0.1607346535, -0.0963895693, -0.107201755, -0.0935494527, -0.2268863767, 0.1075505391, 0.0426643565, -0.2004526854, 0.1316161454, 0.0881387964, 0.4066199362, -0.2200848907, 0.0976666957, 0.2092812806, -0.255071342, -0.1891207844, 0.289016664, 0.5846915841, 0.183226347, 0.2996285856, -0.0491735488, 0.1829448789, -0.2026684731, 0.2648801804, 0.3856571615, 0.2498902678, -0.2644187808, 0.1233005524, 0.1915400773, -0.0314275101, 0.1931458861, 0.0736634135, 0.133157596, -0.1689528972, 0.4247643352, -0.1596186757, -0.1833958328, 0.0584613457, -0.0521482229, -0.0726136416, -0.2956833541, 0.1621611118, 0.18648839, 0.0423473902, -0.2314818352, 0.108908616, -0.0213337392, 0.2124733329, 0.1268223375, -0.1877837628, -0.2670211494, -0.1557720304, -0.0754285753, 0.1439042836, 0.0062727216, -0.0919221491, 0.2019765377, 0.1498026252, 0.0341044813, 0.0259473622, -0.1001783982, 0.3615374863, -0.1380596757, 0.2271478474, -0.2319260687, -0.1158759445, 0.2141506225, -0.0835824758, -0.0598778762, -0.2505144179, 0.4199290276, -0.1742231101, 0.1069798619, -0.3530464172, 0.1702563763, -0.1414099038, 0.4390194118, 0.1981346756, 0.4460699558, 0.0558557063, -0.2125952989, -0.2845892906, -0.0204708017, 0.3433521986, -0.2253361642, 0.343719691, -0.0981763676, 0.5184318423, -0.0654017627, -0.1895947754, -0.1380214989, 0.1557812542, -0.0929613113, -0.2840008438, -0.1906114221, 0.0431680754, -0.0916461721, -0.2807298601, 0.2773646116, 0.1502126455, -0.1078099236, 0.3298941553, -0.1095031574, -0.2034248561, 0.2861424387, -0.1726787984, -0.240725264, 0.1346254647, 0.007217824, 0.0363631062, 0.0713204667, -0.1567899436, 0.0027210298, 0.3820611238, -0.0740500242, -0.0592250489, 0.3169441819, 0.0407354832, 0.1366226226, -0.0777655765, 0.1657474041, 0.0360882431, -0.0481742434, 0.2028805315, -0.2354460955 ]
https://github.com/huggingface/datasets/issues/3475
The rotten_tomatoes dataset of movie reviews contains some reviews in Spanish
Hi @puzzler10, thanks for reporting. Please note this dataset is not hosted on Hugging Face Hub. See: https://github.com/huggingface/datasets/blob/c8f914473b041833fd47178fa4373cdcb56ac522/datasets/rotten_tomatoes/rotten_tomatoes.py#L42 If there are issues with the source data of a dataset, you should contact the data owners/creators instead. In the homepage associated with this dataset (http://www.cs.cornell.edu/people/pabo/movie-review-data/), you can find the authors of the dataset and how to contact them: > If you have any questions or comments regarding this site, please send email to Bo Pang or Lillian Lee. P.S.: Please also note that the example you gave of non-English review is in Portuguese (not Spanish). ;)
## Describe the bug See title. I don't think this is intentional and they probably should be removed. If they stay the dataset description should be at least updated to make it clear to the user. ## Steps to reproduce the bug Go to the [dataset viewer](https://huggingface.co/datasets/viewer/?dataset=rotten_tomatoes) for the dataset, set the offset to 4160 for the train dataset, and scroll through the results. I found ones at index 4166 and 4173. There's others too (e.g. index 2888) but those two are easy to find like that. ## Expected results English movie reviews only. ## Actual results Example of a Spanish movie review (4173): > "É uma pena que , mais tarde , o próprio filme abandone o tom de paródia e passe a utilizar os mesmos clichês que havia satirizado "
95
The rotten_tomatoes dataset of movie reviews contains some reviews in Spanish ## Describe the bug See title. I don't think this is intentional and they probably should be removed. If they stay the dataset description should be at least updated to make it clear to the user. ## Steps to reproduce the bug Go to the [dataset viewer](https://huggingface.co/datasets/viewer/?dataset=rotten_tomatoes) for the dataset, set the offset to 4160 for the train dataset, and scroll through the results. I found ones at index 4166 and 4173. There's others too (e.g. index 2888) but those two are easy to find like that. ## Expected results English movie reviews only. ## Actual results Example of a Spanish movie review (4173): > "É uma pena que , mais tarde , o próprio filme abandone o tom de paródia e passe a utilizar os mesmos clichês que havia satirizado " Hi @puzzler10, thanks for reporting. Please note this dataset is not hosted on Hugging Face Hub. See: https://github.com/huggingface/datasets/blob/c8f914473b041833fd47178fa4373cdcb56ac522/datasets/rotten_tomatoes/rotten_tomatoes.py#L42 If there are issues with the source data of a dataset, you should contact the data owners/creators instead. In the homepage associated with this dataset (http://www.cs.cornell.edu/people/pabo/movie-review-data/), you can find the authors of the dataset and how to contact them: > If you have any questions or comments regarding this site, please send email to Bo Pang or Lillian Lee. P.S.: Please also note that the example you gave of non-English review is in Portuguese (not Spanish). ;)
[ 0.0775980204, 0.3383808732, -0.1574923396, 0.2872702479, 0.3433725834, 0.2087222636, 0.0929915011, 0.2478998899, -0.117431201, 0.0967246294, -0.4815720916, 0.0033949746, 0.0114612821, -0.1756013334, 0.0343776084, 0.0748326182, 0.2239582539, -0.0237260349, -0.173426643, -0.2515216768, -0.0800899342, 0.212624535, 0.1339432895, 0.0995079279, -0.6924959421, 0.0753566399, 0.1364070177, -0.1510759443, 0.3064261675, -0.1701555848, 0.2806664109, -0.1623496115, -0.1956363022, 0.6200700998, -0.0001128261, 0.0604966134, 0.3802308738, -0.0089866742, 0.0584996566, -0.2841441631, -0.0630170256, -0.1023702323, -0.1558225602, -0.0836034939, -0.0952553973, -0.2996972203, -0.1322906613, -0.4439215958, 0.0886469111, 0.3722769618, 0.2058451325, 0.1275348216, -0.3235879838, -0.1906461418, 0.4681548774, 0.5497832298, -0.1119368076, 0.3121244013, 0.1663765311, 0.0387282111, -0.222202599, 0.210351795, 0.0279327855, -0.3314796388, -0.1717762202, -0.0002904502, -0.2278203964, -0.3157129884, 0.1599531621, 0.4272158444, 0.0722533762, -0.4220968187, -0.2358408719, -0.1337206811, 0.0804922134, 0.0871540904, 0.1504491419, 0.4234384596, 0.0720908567, 0.3903190494, -0.0943476334, 0.1298761219, 0.2081908584, 0.1347895712, 0.389829576, 0.1491752118, 0.0354844444, -0.0451402962, 0.0731769726, 0.0825665444, 0.2751666903, -0.0486877784, -0.0266627502, -0.0222956203, 0.0025259038, 0.0048840721, -0.2662070394, 0.1408528239, 0.1187985092, -0.2384686917, -0.0836014971, 0.0818534493, -0.1328645945, 0.147537902, 0.3307207227, 0.1451527029, 0.0160522014, 0.2547890544, 0.14865987, 0.1915071309, 0.0695655271, 0.1207090318, 0.2936163545, -0.0904949158, 0.0287154634, 0.191078499, 0.1238925457, -0.0972818136, -0.3087182045, 0.197005406, 0.0062069227, 0.061461661, 0.0072946977, 0.1471932977, -0.0519227423, 0.253154248, -0.1871701181, 0.1709065884, -0.0393960848, -0.4547866583, -0.2431349158, 0.1819986999, -0.3064082861, -0.0151867801, -0.015617663, -0.1073293462, 0.3698093593, 0.1516218036, 0.1817556024, -0.3672724366, -0.4065668285, -0.5185279846, 0.1344594359, 0.2496622354, 0.0738297552, 0.1930321604, -0.0148870973, -0.1174213216, -0.0984635055, 0.5416668653, -0.3122508824, -0.0149295134, -0.3429645002, 0.1529160738, -0.2386550754, -0.1685642004, -0.273768425, 0.2624278069, 0.14553532, 0.0287508331, 0.3838167489, -0.0201556198, -0.1142108515, 0.2381727397, -0.1148684025, 0.5075317025, -0.2212489545, -0.1801903993, -0.1266903132, -0.1786122918, 0.3226438165, 0.4618788064, -0.0044941581, 0.1159670949, -0.4006376266, 0.2212016881, -0.0666362345, 0.046627719, -0.267790556, 0.1455519795, -0.0366335697, 0.181874752, -0.0784800425, 0.2202779204, 0.0248967484, 0.0529196225, -0.1381686926, 0.1723629087, 0.2867570519, -0.0404152796, -0.3129344881, -0.1612553447, 0.2182195634, 0.1112570167, 0.0281861573, 0.1776431799, -0.0300483182, -0.1221737117, 0.3241305649, 0.2765094042, 0.069583036, 0.3186804056, 0.2371929586, 0.4378859699, 0.1384548396, -0.0968614146, -0.2474745363, 0.0149248699, -0.1557596475, 0.0562712438, 0.0447745621, -0.5113098621, -0.3602094352, -0.0132227391, -0.25017488, -0.1949224472, 0.1053243652, -0.0138037587, -0.3512329459, 0.3576212525, -0.1997227669, 0.1217270195, -0.4329376817, -0.0262241866, -0.0406561084, 0.1214762107, -0.0825008601, 0.0528576784, -0.1179282293, 0.2896504402, -0.0748582706, -0.0824672356, -0.130032748, 0.3152926266, 0.1967163384, 0.3893190324, -0.0194515642, -0.0056012427, 0.2285884619, -0.3850583136, -0.2388342768, 0.4023307562, 0.0154410554, 0.0600294471, -0.1237939373, 0.3775289655, -0.0294921529, -0.0430823453, -0.1184946448, -0.0119606853, 0.253270179, -0.0337959826, -0.2571257651, -0.4835959673, 0.3958638608, -0.037343923, 0.1882108897, 0.4324666858, -0.1766364872, -0.1654619724, 0.6964837313, -0.089205496, 0.3233798742, 0.362752974, 0.0811079517, -0.0337457061, 0.0539156161, 0.0769800767, 0.2238267958, -0.0148433167, 0.0568825752, 0.3743571043, 0.2150232643, -0.2548018694, -0.0254939739, 0.1791520119, 0.0146045526, 0.2527248859, 0.0570069626, 0.0871399492, -0.3475524187, 0.0494978577, -0.2337248623, 0.1289097518, -0.374001652, 0.1513503343, -0.2788363397, -0.1856580526, -0.5338105559, -0.1826971471, -0.1371816695, -0.0083031813, 0.3848929107, -0.5350185633, -0.4200910628, 0.4128510654, -0.0485076308, 0.2151176333, -0.3225394189, -0.0727011338, -0.0984829441, -0.2087974399, -0.2122241855, 0.0624181144, 0.2326642424, -0.1914136857, 0.1400386244, -0.6252579689, -0.2342725396, -0.051972907, -0.0677421466, 0.0808720738, -0.021815272, 0.3384752572, -0.1872259527, -0.0543416068, -0.1486216486, -0.0664144009, 0.0193075538, -0.0458737314, -0.0664141253, 0.0654736236, -0.1022133082, 0.0451307409, -0.0477657467, -0.4743640721, -0.1710330099, -0.0067692446, -0.0550035201, -0.3167712092, 0.0889540538, -0.010827831, 0.1036845744, 0.1132147163, -0.2468835413, 0.1163726598, -0.3530255556, -0.1623296738, 0.2913244069, -0.0481736138, -0.3797512949, -0.0257846229, 0.0602940768, -0.0715158582, -0.1957809478, -0.6586166024, 0.0306735449, -0.2321115732, 0.0807385296, 0.0919479728, -0.2128856927, 0.0899070278, -0.3091147542, -0.0878183171, 0.0255955476, 0.0077333357, 0.125587061, -0.1055699512, -0.0037736206, -0.0514737517, 0.2540180981, 0.0256381724, 0.2261021286, 0.2845230997, 0.0648221746, 0.2778256536, -0.0692925602, 0.555563271, -0.144627288, -0.2002167851, -0.039227128, -0.1196580529, -0.0377868265, 0.4186838269, -0.1055839658, -0.2462712526, -0.1800374389, -0.0914022699, -0.4486518204, -0.0833010301, 0.3242741227, -0.035171438, 0.2190149277, 0.0895483494, -0.0382074825, 0.5857477784, -0.2032644898, -0.0674055293, 0.0378434025, -0.0021551347, 0.0375513956, -0.2432353348, -0.2331600934, 0.1617548019, -0.0927593485, 0.1040281132, 0.3582555056, -0.1722700298, 0.0609216131, 0.2120452374, 0.1869484931, 0.5747214556, 0.2602689266, -0.0337911062, -0.1390016973, 0.0516728424, -0.0767732114, -0.2192837298, -0.3178625405, -0.0212129336, 0.339766115, 0.0792669281, -0.0977245048, -0.0230773948, 0.1354975998, 0.2412369698, -0.269536823, 0.011264707, -0.345670253, -0.2985232472, 0.0343333967, 0.2904643714, 0.6609451771, 0.0370142646, -0.151850611, -0.1786453277, 0.1770279855, 0.1798840612, 0.0562274456, -0.0535097867, 0.2755328715, 0.0696922839, -0.0027345615, -0.0351661406, -0.0899272785, 0.1566447467, 0.6234278679, -0.1990359426, -0.5347464085, -0.0206664894, -0.4055419266, 0.1202097982, 0.4224035442, 0.2982838154, -0.1940386891, 0.3535506725, -0.3796401918, -0.0223289859, -0.1317801625, 0.3921004236, 0.030397445, 0.0407960638, -0.4403526187, 0.2187909931, 0.1060274616, 0.0929925218, -0.3502227664, 0.154658854, -0.2423933148, 0.1255830675, 0.3049727082, 1.1049127579, 0.3091265559, 0.2251158208, -0.1300490499, -0.2165472955, 0.0552188903, -0.0823095292, -0.2815191448, -0.1865245998, -0.1610417664, -0.0552293397, 0.1097624302, 0.0329436883, 0.1292759627, -0.0638616309, 0.2051310539, -0.4232103527, 0.3236413002, 0.2603683174, -0.2751582265, 0.0213630032, -0.2291930765, 0.00230927, 0.1221638471, -0.0706772059, -0.0451554582, -0.0085725924, 0.2188435197, -0.095360972, 0.1157591715, -0.5497357845, 0.0232302416, -0.214249596, 0.0081649786, 0.2544920146, -0.1821515709, 0.0391983576, 0.456499666, 0.1721302569, 0.2598896325, 0.0285255555, 0.3317379653, 0.5481266975, 0.1876216978, 0.2773622274, 0.1310743392, 0.2320561409, -0.1105671078, -0.3759027123, -0.0384143293, 0.214729324, 0.2556614578, -0.1691664457, -0.1031541973, -0.0777268633, -0.1681739241, -0.5014753938, 0.064525649, 0.2309434116, -0.4216508865, 0.1817347258, 0.0467255712, -0.0410917476, -0.0715480745, 0.1584708095, -0.3814513981, -0.2610351443, 0.3025065362, 0.2010792792, -0.2230756879, 0.0795566812, 0.1484006494, -0.4395746589, -0.2030390799, 0.4076218605, 0.032371264, -0.9670746326, -0.0944217369, -0.2535753548, 0.0349507481, -0.5425694585, -0.0781171918, 0.0340138189, 0.2585286498, -0.2434622496, -0.2717372775, 0.1144827008, 0.1251011342, 0.2398322225, -0.0467802435, -0.1167801544, -0.1628056467, 0.0911884382, -0.1093788967, -0.3049125671, 0.0578459091, -0.2752441168, -0.1118789017, -0.0117588108, 0.2712792158, 0.0885261521, -0.1981914341, 0.0045388499, 0.2163510323, 0.1541869789, -0.2278089076, -0.2836560309, 0.1012374684, -0.1726299226, -0.052018825, -0.0560993738, 0.1346224099, -0.0436998941, -0.1750098169, 0.1304981261, 0.4086427093, 0.1103090495, 0.6706462502, -0.1253002286, -0.068372488, -0.0376012102, -0.1546229273, -0.1009905636, 0.0786039606, 0.233658731, -0.0074905232, 0.3056655824, 0.054898724, 0.0972652882, -0.1016221195, -0.0666093156, 0.4293732643, 0.0091375327, -0.0958495066, 0.570292294, 0.4419237971, 0.1287091076, 0.2203242481, -0.4604104459, -0.4662072361, 0.4176119566, 0.1751392484, -0.4005415142, 0.0516068377, 0.0620317459, -0.0265845414, -0.0601973683, 0.1880811453, 0.2023872286, 0.2620318234, 0.3125546575, 0.1030193791, 0.2816567719, -0.0286435615, 0.2245482504, 0.2119406164, 0.180184111, 0.259378612, 0.0351809673, -0.0219523571, 0.0375644676, 0.3726575375, -0.0744736791, 0.3681031764, 0.1896684319, 0.3218751252, -0.0004148453, -0.1098927855, 0.3205627799, 0.3728419542, -0.451684624, 0.0885468796, 0.0012280345, 0.3262177706, -0.1151234806, 0.0225885306, -0.1613278836, -0.2012060136, -0.2824293077, -0.0820949227, -0.0096109305, 0.045609165, -0.4406154752, -0.0509329252, -0.1133916304, 0.1131705791, -0.1710102558, 0.1574325562, -0.499781549, -0.1665596664, 0.1053008661, -0.2117608488, 0.0687758848, -0.1873906255, 0.2407326847, 0.2479644567, 0.2734031677, -0.0070874896, 0.4781315327, 0.1146146357, 0.14222534, 0.2972441316, 0.1395756751, -0.1139949262, 0.0300858226, 0.1668065935, 0.4553410411, 0.374409318, -0.0038936732, 0.0920249894, 0.1391631514, -0.2100918442, 0.4741184115, 0.2688093483, 0.5501976013, -0.1716667563, 0.210788399, -0.4049789011, 0.0321086049, -0.372181505, -0.2122521847, -0.0744271055, -0.3083150387, 0.2472825944, -0.2932221591, 0.0278299637, -0.1701824516, 0.0910291225, -0.0262249764, 0.4878065586, 0.2468326837, -0.0042141303, -0.0568718649, -0.1690079421, -0.434867382, 0.2786160409, 0.0577394329, 0.1803988814, 0.0034585181, -0.2710811198, -0.2048026174, 0.424996525, -0.119258903, 0.0798575059, -0.4106081426, -0.0195048377, -0.310408175, -0.0894022211, -0.1320720464, 0.4319810271, 0.0495993644, -0.0372990705, -0.099963285, 0.0239950884, -0.034127146, -0.0074353693, -0.5150257945, -0.0412254408, 0.4790575206, 0.2317679822, 0.1211466342, 0.1075929552, -0.1309526414, 0.1729315817, -0.1255344301, -0.5064527392, -0.05703637, 0.3402152658, 0.2189459652, 0.0871593356, -0.0248231031, -0.3286203742, 0.0048850388, 0.4629912674, 0.1297063082, -0.1980121881, -0.3032656312, -0.2033405751, 0.0284265429, -0.3432083428, -0.1023901924, 0.1826930642, 0.0546155497, -0.0558499917, -0.0880449787, -0.3003823161, 0.2247160822, 0.1348564774, 0.0187698975, -0.2626923025, 0.1572994739, 0.2276711315, -0.3862805068, -0.2235088199, 0.090607658, 0.1814200431, 0.290659517, -0.151620239, 0.2584215403, -0.6676841974, 0.1979738623, -0.0049540028, 0.3851211965, 0.1367292702, -0.2464305013, 0.273879379, -0.3043677807 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
As discussed, I remember I set `decoded=False` here to avoid decoding just by iterating over examples of dataset. We wanted to decode only if the "audio" field (for Audio feature) was accessed.
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
32
Iterating over a vision dataset doesn't decode the images ## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge As discussed, I remember I set `decoded=False` here to avoid decoding just by iterating over examples of dataset. We wanted to decode only if the "audio" field (for Audio feature) was accessed.
[ -0.1267590225, -0.3187014461, -0.0562812574, 0.4169413149, 0.2039797753, -0.0484367609, 0.1617482156, 0.0489288829, -0.0526031516, 0.2663674951, 0.0970081314, 0.5622793436, -0.0772200599, -0.1984000951, -0.0889359042, -0.1298073977, 0.0134134991, 0.3308178186, 0.031991154, -0.0851628259, -0.2212481946, 0.0739018396, -0.3497108817, -0.2482760847, 0.0404275358, -0.0333075561, -0.2307287604, -0.0113921277, -0.1831243485, -0.4801519215, -0.0190015268, 0.0766221583, 0.1080364436, 0.3269093037, -0.0001233442, 0.1580651551, 0.41360569, -0.0816950947, -0.2558895648, -0.0877097696, -0.196395725, -0.1986250877, 0.123170048, -0.1644234508, -0.1030524299, -0.5773656368, 0.096355021, -0.2540631592, 0.2806848884, 0.0971984714, 0.0906033516, 0.0578032695, 0.0072706565, 0.565733552, 0.1217618808, 0.2430297732, -0.1889678091, 0.3289595544, -0.0120504256, 0.1668633968, -0.2594263256, 0.4326407015, -0.0639949366, 0.159131676, 0.0229824539, 0.2228321135, -0.1415269822, -0.4424693882, -0.167847082, -0.0291419737, 0.3919107318, -0.1493216157, -0.4843541384, -0.3056430221, -0.0892802924, -0.4744009376, 0.3207058907, 0.1855038255, -0.270001024, 0.0513193496, -0.0098781753, 0.1063630432, -0.2212203592, 0.1970555037, -0.3180180192, -0.103194043, -0.1198614091, 0.15069215, 0.3663075864, -0.0418141671, 0.3552368581, -0.0610675216, -0.1626597345, -0.1827730834, -0.4076956809, -0.1456993967, 0.0125524793, 0.0227551945, -0.0596322492, 0.0632374212, 0.06184984, 0.050734628, -0.2133897692, 0.1981837004, 0.3155870736, 0.0130282082, -0.1854509264, 0.5198150873, 0.1808296889, 0.1634864211, -0.1871842891, -0.1224344224, -0.093487747, -0.0663901195, 0.1576224864, -0.0263312496, 0.4403362572, -0.0948666409, -0.2429988533, -0.249382332, -0.7110182643, -0.1815323085, -0.0041944049, 0.0064310562, 0.3910165131, 0.2369327694, 0.1370497793, 0.1956523806, -0.2314056009, -0.3425639868, -0.0648727342, -0.060941115, -0.1817814559, 0.036441762, 0.1330506951, 0.2255574614, -0.0531563573, 0.0031520149, -0.010382019, -0.3065252304, 0.2088886499, -0.4075781703, 0.6748943925, 0.2751647234, -0.1785516441, -0.0045595281, 0.0054932474, -0.1114238724, -0.1219110191, 0.1804520339, -0.1693372279, 0.1900363415, 0.102823779, -0.0086661065, -0.3492946923, -0.2689424455, -0.1031584293, 0.326914221, 0.0283505283, -0.3455923498, 0.2146222144, -0.2212670892, -0.3251112103, -0.1322068423, 0.3171462417, 0.3856447339, -0.5427633524, 0.2411510348, -0.0886704102, -0.269098103, 0.2534234226, 0.3628000021, -0.1090231538, 0.0704128593, -0.4402825832, 0.1128331795, 0.1061737165, -0.4006195664, -0.5919460654, 0.3357589543, 0.3105622232, 0.5488023758, 0.0985212028, 0.1341862977, 0.0488152355, -0.1111063063, -0.3746317625, 0.2024697214, -0.2129584551, -0.1101816148, -0.1909810454, 0.085020557, 0.4172558486, 0.2780318558, 0.140844807, 0.1567089409, 0.1117097959, -0.1480826139, 0.4006382525, -0.0973093063, 0.091561377, -0.0285577122, 0.112954013, -0.1719704419, 0.4677259326, -0.0812917203, 0.0758642778, 0.2467507571, 0.1724956036, -0.0886352509, -0.4330660999, 0.0197653361, 0.2811438441, 0.0389550999, -0.6287845373, -0.1328057051, 0.1098160744, 0.4489212632, -0.1869975477, 0.07571318, -0.2966898382, 0.1416509449, -0.2522657514, -0.0929449648, -0.1130237579, 0.281067729, 0.1186055467, -0.1102880388, -0.3108247817, 0.1958691627, -0.0428443216, -0.1964041144, -0.0123496335, 0.2776184678, 0.4771281183, 0.2388502508, -0.1488773078, 0.0481055416, 0.3421055675, -0.8031752706, -0.0728763714, 0.1556116343, 0.0785600916, -0.0426284075, 0.1856783181, -0.028777251, 0.1905685514, 0.4862321317, -0.03167044, 0.0139805824, 0.0803480893, -0.0323073044, -0.424384743, -0.1617763489, 0.038923718, -0.2887594998, 0.0967060104, -0.0627513528, -0.3451254666, 0.0983114913, 0.4215000272, -0.0603764355, 0.045992665, -0.015291187, -0.1580924094, 0.1275507063, 0.19958435, 0.1186507195, 0.3133378625, -0.0434246175, 0.12774463, 0.0672863796, -0.0749397129, 0.1446155608, 0.132931456, 0.5702860951, 0.475895822, 0.154508397, 0.1971393824, 0.0762589201, -0.4968160987, -0.4346295595, 0.0160890985, 0.0094667636, -0.037385352, 0.4796386063, -0.4988852143, -0.638017416, -0.1414709836, 0.2508306205, -0.1091572717, -0.2609804571, -0.3074395359, 0.1694040596, 0.0737186223, 0.0461524203, -0.0924054384, 0.0984587371, 0.1205719188, -0.0827533901, -0.427043438, -0.076380007, -0.1016983837, -0.0748346969, 0.3222793639, -0.4541302323, 0.268576771, -0.1015169844, -0.1747848094, -0.2843221128, -0.3780849576, 0.3806132674, -0.2976790369, 0.267021358, 0.0583526529, -0.0379896201, -0.124735795, 0.0768179148, 0.252268523, 0.115704827, -0.2459195107, 0.0980880558, -0.1105841324, -0.060056664, -0.150539279, 0.0118720392, -0.108946763, -0.2478488684, 0.2897529006, 0.1167300865, 0.166242525, 0.5830759406, 0.0139597952, 0.0977303162, -0.2325415611, 0.0630616248, -0.0763919801, 0.0724927038, 0.1357619762, -0.0284346286, -0.2734294534, 0.0716618523, -0.1093529314, 0.3095185459, 0.2691141963, -0.4650782347, -0.051945325, -0.1901527792, -0.0970968679, -0.2115965486, -0.1585822105, -0.0870620087, 0.0328054987, 0.0877341852, -0.3036302328, -0.1060895696, 0.0277337972, 0.2181598395, 0.3797620833, 0.2735289037, 0.1846487373, 0.3852021694, 0.3678383827, 0.3901167214, -0.0676931739, 0.5244944096, -0.3241099417, 0.2545666099, 0.0370954573, -0.2164428532, 0.1448194534, -0.0143793477, -0.2439197153, 0.040773306, -0.1659495831, -0.5518521667, -0.1901299655, -0.0036137351, -0.3970396817, -0.3890904188, -0.042136889, -0.1962809116, 0.0711454675, -0.1254627705, 0.2840538025, 0.1820241511, -0.0322663262, 0.0393822901, 0.2333096415, 0.3365669549, 0.0179948695, -0.2179739475, -0.5925338864, -0.0159548968, -0.2319427133, 0.0620816536, 0.8080316782, 0.0239956211, -0.1404037178, 0.3412164152, -0.1666964293, 0.8729166389, -0.228101626, 0.0109853595, 0.0815966874, -0.1524174362, -0.0131751364, -0.0578342564, -0.3337419331, 0.0898160636, -0.059070915, 0.2314617634, -0.1078417003, -0.1283180863, 0.300983429, 0.2823321819, -0.0246649161, -0.2229659855, -0.4047117829, -0.226891309, -0.2625510991, -0.11420995, 0.0318745226, 0.0303565189, -0.0705252886, 0.0424749181, -0.1515497118, -0.0259863846, 0.1708075106, 0.2044459134, 0.2720111609, -0.0821763352, 0.1222518533, 0.499110043, 0.2001921982, 0.1991057694, 0.6736482978, 0.382388711, -0.3236963451, 0.2165845782, -0.0948413834, 0.3443531096, 0.3533466756, -0.359683603, -0.1144548729, 0.0737784356, -0.1039723456, -0.5473014116, 0.0140630761, 0.589324832, -0.0857613832, -0.2726638913, -0.2252301723, 0.4934459329, 0.0535062291, 0.0401083454, 0.3770737052, 0.2900179029, -0.1015995666, 0.4543084502, 0.2156165093, 0.8342969418, 0.0562795177, 0.1359069794, 0.3724787235, 0.282297343, 0.3457469046, 0.2219638377, 0.4945213199, -0.0629963279, -0.3176397085, -0.0976133198, -0.0636978373, 0.2748914957, -0.1831298769, -0.2027617097, 0.0762056708, 0.2835598886, 0.0286957361, 0.2615996897, 0.0643799379, -0.164035812, -0.0500478484, 0.2147221565, 0.0640717447, 0.0109528601, 0.1865663528, 0.0435582288, -0.2604275942, -0.0231764633, 0.0110200457, -0.1781696826, 0.2941263616, -0.1846281886, -0.0148980701, -0.1406416744, -0.4299236238, 0.1366378963, 0.1798799187, -0.0518936627, -0.1719031632, -0.2020691037, 0.176995486, 0.1557436287, -0.0341627859, 0.14703013, -0.1966502815, 0.30143556, 0.0894291326, -0.1425282955, -0.1499909312, 0.1106098443, -0.030963717, -0.0925236195, 0.1055980772, 0.0122673437, 0.0591077842, 0.0880426094, -0.0667518377, -0.2125096172, -0.0638415739, 0.0408926122, -0.0448628701, -0.0477230512, 0.300922364, -0.1510401815, -0.2191518098, 0.009069317, 0.2125204802, -0.0284057613, -0.0276202764, 0.4531717896, 0.0798941106, -0.1523439139, -0.1279797107, -0.0616470836, -0.2321888804, -0.311609298, 0.0475431234, -0.1022283211, 0.3296187818, -0.0050797565, 0.1128844768, -0.1454862803, -0.3435115814, -0.392557621, -0.3131257594, 0.0094297389, 0.2765444815, -0.2482480109, 0.2728850543, -0.2769114673, 0.0063389079, -0.040651761, -0.1705139428, -0.1648864001, 0.0089039849, -0.1880441308, 0.1252622157, -0.0688635185, 0.1993682981, 0.2753481865, 0.0874601081, 0.0993683636, 0.2802778482, 0.1512694508, -0.0162806567, -0.1997307092, 0.1642667055, 0.2781126499, -0.1962560713, 0.042114757, -0.3522316813, -0.1597051024, -0.2381167561, -0.1329592168, -0.094569169, -0.0428235196, 0.4127268493, -0.049906522, 0.1398745626, 0.1637597978, -0.0359739996, -0.0724439025, 0.183333829, 0.206241712, 0.2561964095, 0.0897494927, 0.0961156562, -0.0462815762, 0.0493337214, -0.0547122434, -0.0617597587, 0.4288362265, -0.1039495394, 0.2778858542, -0.1030467898, 0.607850194, 0.5180625319, -0.2349538654, -0.1596972495, -0.0131170163, 0.0485764891, -0.1800183803, 0.1313287914, 0.3602070212, 0.0356531329, 0.0858396888, 0.4490383863, 0.1042517647, 0.2630536854, -0.0452219248, -0.218050167, 0.2711757421, -0.2250017971, 0.0219859965, 0.3856900334, -0.1276026368, 0.082271032, 0.3351857662, 0.2183136195, 0.1776152402, 0.9009718895, -0.3376880884, 0.2784794271, 0.0482922383, 0.0197375808, 0.1007276103, -0.2820799947, 0.1329570115, -0.0699674115, 0.1778243184, 0.21016334, -0.1838174909, -0.0664361566, 0.0866114348, 0.0037294966, 0.0300182682, 0.1379178762, -0.0052025989, 0.162012279, -0.3961995542, -0.0732813627, -0.2307002097, -0.1995434463, 0.1314937025, -0.3043603897, 0.2716653645, 0.3806458116, 0.01414748, -0.3297320604, -0.2254940271, -0.0643020496, 0.4333686829, -0.370447427, 0.2625380158, 0.1673922092, 0.0985715315, 0.2328360528, 0.238143906, 0.2759531438, 0.2681313455, -0.2021846771, 0.1020620093, -0.2986940444, -0.2586065531, -0.1948976815, 0.3324749172, -0.0806330591, 0.2450189143, 0.4536631405, -0.0332898162, 0.0528949834, -0.2700496018, 0.1429241151, 0.0682499781, -0.4311175346, 0.3120635748, -0.3458194733, 0.208307758, 0.0387566984, -0.2212013155, -0.366830498, -0.2884504795, 0.2543080747, -0.0747371688, 0.1497040689, 0.038880229, -0.0017280334, -0.3866754174, 0.0671335161, 0.5540456176, 0.2951233387, -0.0198740158, 0.0638330355, -0.4804447293, 0.0900250003, -0.1480376124, -0.4865410924, 0.0454859994, 0.4300514162, 0.0924251974, 0.1210207939, 0.3741823435, -0.0222231839, 0.4993254542, 0.3900791109, -0.1234089285, -0.5267176032, 0.075273104, 0.0586582385, -0.223849237, -0.294619143, 0.2723092437, -0.3871793747, -0.0232973732, -0.0109547134, -0.2998864949, -0.0477040485, -0.4039984941, 0.5271594524, 0.3142002821, 0.4090275466, -0.2101362646, -0.3209668994, -0.2906591296, -0.1268197596, -0.3037267923, 0.176489681, -0.0489721298, 0.577267468, -0.1431723386, 0.2039729506, -0.2063460946, -0.021623645, -0.0322973765, -0.071682483, -0.4274769723, 0.4188482463, -0.1332531273, 0.2323634028, 0.0082437731, 0.2063509077, 0.0837970078, 0.1673905849, -0.4264759421, -0.4390749335, 0.429507345, -0.5840105414, -0.157487601, 0.2093428075, -0.0509268828, 0.0111820139, 0.1019227579, -0.4180632234, -0.1876608282, 0.252779603, -0.1193442866, -0.1731843799, 0.2143997997, 0.1445247531, 0.036879424, -0.1110835075, 0.3814378679, 0.2788133919, -0.0831483081, 0.2207610905, 0.0060229134 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
> I set decoded=False here to avoid decoding just by iterating over examples of dataset. We wanted to decode only if the "audio" field (for Audio feature) was accessed https://github.com/huggingface/datasets/pull/3430 will add more control to decoding, so I think it's OK to enable decoding in `__iter__` for now. After we merge the linked PR, the user can easily disable it again.
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
61
Iterating over a vision dataset doesn't decode the images ## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge > I set decoded=False here to avoid decoding just by iterating over examples of dataset. We wanted to decode only if the "audio" field (for Audio feature) was accessed https://github.com/huggingface/datasets/pull/3430 will add more control to decoding, so I think it's OK to enable decoding in `__iter__` for now. After we merge the linked PR, the user can easily disable it again.
[ -0.1568084657, -0.3336033225, -0.0613897145, 0.4453437328, 0.2357357889, -0.0553116128, 0.1046500728, 0.0181350149, -0.0682632402, 0.2494532913, 0.0704558417, 0.5809364915, -0.1020295396, -0.1611496806, -0.0695886537, -0.1490104347, 0.0153620439, 0.3161056936, -0.0318765901, -0.099981606, -0.2071298212, 0.1023738086, -0.3060067892, -0.2811090052, 0.0188564342, -0.0585905276, -0.2602614164, 0.0054783239, -0.1705721617, -0.4633089006, -0.0435331725, 0.065280579, 0.0898322612, 0.3550776541, -0.0001218025, 0.1714567989, 0.3926329911, -0.0766748115, -0.2516237497, -0.0872383863, -0.154825598, -0.2000952959, 0.1211209446, -0.1686759293, -0.1566106975, -0.5621824861, 0.1026416272, -0.2368815094, 0.3039441407, 0.0785365626, 0.1132612899, 0.1018180251, 0.0205362607, 0.5415073633, 0.1171692312, 0.2465613186, -0.1867717803, 0.3536755443, -0.0122045204, 0.1801637411, -0.2669998109, 0.4592631757, -0.0306760427, 0.1353231519, 0.0458478332, 0.2410845757, -0.1307699531, -0.4000461102, -0.1753912568, -0.042797368, 0.3311598301, -0.1504935771, -0.4958271682, -0.3084161282, -0.0932427421, -0.4708476067, 0.3129247427, 0.195363462, -0.2901803851, 0.0664150938, -0.0583339408, 0.1247057989, -0.2093392164, 0.2014330626, -0.3378782272, -0.1084323078, -0.152780056, 0.1447120756, 0.4033130109, -0.0320578255, 0.2779603004, -0.0420991816, -0.1421370208, -0.1954577565, -0.3847661316, -0.1232141033, 0.0203073882, 0.0524488986, -0.0645512268, 0.0578005761, 0.0794763938, 0.068055883, -0.2058539838, 0.1781583428, 0.285156846, 0.0202387385, -0.1997603774, 0.4919994175, 0.1737648696, 0.1901939362, -0.1810988635, -0.1067944765, -0.0819824785, -0.0589182563, 0.1030344889, -0.0223374721, 0.4108565152, -0.0787447914, -0.244137615, -0.2362947613, -0.6744168401, -0.1464809626, 0.0183612499, 0.069809407, 0.3414119482, 0.2264320105, 0.1556865573, 0.1344257593, -0.2268496603, -0.3217452168, -0.1096209511, -0.0446848795, -0.2074655741, 0.0636198297, 0.1185536981, 0.184181124, -0.0217321571, -0.0202758852, -0.025653271, -0.3012332022, 0.1591383815, -0.377453804, 0.6764340997, 0.2588718534, -0.2081512511, -0.0501942188, -0.0108572505, -0.1215523258, -0.1060341597, 0.1040909737, -0.1598771214, 0.1993067116, 0.1099522337, 0.0229155514, -0.3430244923, -0.2527408004, -0.1139442623, 0.3253356516, 0.0164484102, -0.2926618457, 0.2120169997, -0.1828405857, -0.2859787345, -0.12149591, 0.3268648684, 0.3754220009, -0.4916125238, 0.214830935, -0.0532014407, -0.2656239271, 0.2252281159, 0.3700033724, -0.071103096, 0.0508663543, -0.4439811409, 0.082645759, 0.1004211754, -0.4002557397, -0.5635707974, 0.3373477757, 0.2992920578, 0.5197439194, 0.1139113158, 0.1541144252, 0.0362265408, -0.0740387961, -0.3475144506, 0.2028940469, -0.1982481182, -0.0837427974, -0.2083164901, 0.0672504976, 0.3516071439, 0.3037167788, 0.1218966842, 0.1487181485, 0.1277001202, -0.1665150672, 0.4245145917, -0.1215856448, 0.0877041295, 0.0038806275, 0.106994532, -0.1671829373, 0.4273760617, -0.1038651615, 0.0264869798, 0.2240026444, 0.1610205024, -0.0620160885, -0.4413606524, -0.0088370228, 0.2648384571, 0.0263022967, -0.6344661713, -0.1679087728, 0.1348584741, 0.4636654556, -0.1200841367, 0.0967941955, -0.2615158856, 0.1347485185, -0.2638896406, -0.0599215925, -0.1450875998, 0.3203407228, 0.116304718, -0.1255959272, -0.2873786092, 0.2208421528, -0.0426705405, -0.217971161, 0.0207025018, 0.2638665438, 0.4587858617, 0.2756503522, -0.1257916242, 0.0469121747, 0.3517667353, -0.8030489683, -0.0910909697, 0.156600967, 0.0756346509, -0.0306999516, 0.1582783908, 0.0143701304, 0.183785677, 0.4665872455, -0.0111179445, 0.0108778821, 0.0697319806, -0.0202182252, -0.4101628661, -0.2020789087, 0.0385806262, -0.2970334291, 0.1312535703, -0.0589043088, -0.3312998712, 0.079696402, 0.4144179225, -0.0640871227, 0.0264878478, -0.0430930555, -0.1900426894, 0.1377953887, 0.2496273816, 0.1111702099, 0.2860052884, 0.0026255809, 0.1423758417, 0.1045078784, -0.0816873759, 0.1179992035, 0.1393827051, 0.5456995368, 0.4626992941, 0.1497632861, 0.1879798621, 0.0575520694, -0.544172883, -0.4354055226, 0.0043940269, 0.0276714098, -0.036645893, 0.4652587473, -0.486556828, -0.6728246808, -0.1544693708, 0.2773948014, -0.1142084077, -0.2607966661, -0.3231730759, 0.1858042479, 0.0421828106, 0.0228844378, -0.0827149153, 0.0799110606, 0.1354549676, -0.0803541318, -0.4561858475, -0.0923107862, -0.1074689627, -0.0554933846, 0.331543535, -0.4613159001, 0.3218898475, -0.1233355477, -0.1762066185, -0.3147497773, -0.4080671072, 0.4133495092, -0.2908175588, 0.2821209729, 0.0902346373, -0.0402428173, -0.1426120549, 0.068972826, 0.2738066018, 0.1060176417, -0.2722801864, 0.0666863024, -0.112724252, -0.0556657277, -0.1696954668, 0.0006256203, -0.1130329072, -0.2717241645, 0.333573252, 0.1064278185, 0.1557905227, 0.6183412075, 0.0436826237, 0.1239529252, -0.2952928245, 0.0915806368, -0.1106560603, 0.0803734064, 0.1076767519, -0.0493839234, -0.2995259762, 0.0594700649, -0.1269841641, 0.3433030546, 0.2483124733, -0.4860588312, -0.1088283435, -0.2001980096, -0.0837467015, -0.178447023, -0.121865496, -0.0809604153, 0.023009954, 0.0630218536, -0.270660162, -0.0986911729, 0.0159642585, 0.1883414537, 0.3758376837, 0.244572565, 0.1805023402, 0.4051982462, 0.3571254909, 0.4265913367, -0.1064085662, 0.5351154208, -0.3379610181, 0.2825840116, 0.0346545354, -0.2376669645, 0.1590053439, -0.0093015982, -0.2039049566, 0.051184047, -0.1575241834, -0.5136367679, -0.1931745708, -0.0091594132, -0.4052167535, -0.3887173235, -0.05469051, -0.1598533094, 0.0564909503, -0.1378831416, 0.2984230816, 0.1837525964, -0.0357731916, 0.0502317213, 0.2454169542, 0.3017023206, 0.0147611024, -0.2323552966, -0.5600135922, -0.074325338, -0.1889141351, 0.061129231, 0.7454306483, 0.032696832, -0.1441670209, 0.3521997333, -0.1907778829, 0.8931286931, -0.1745643616, 0.0036509128, 0.0612354241, -0.2061767578, -0.032011494, -0.0171479005, -0.3335068226, 0.0627553686, -0.0434476025, 0.3027025759, -0.1250749379, -0.1608911455, 0.3005891144, 0.2579078078, -0.0177170001, -0.2249928713, -0.3983446956, -0.2546779513, -0.259745717, -0.1034777984, 0.0209662039, 0.0690932125, -0.0542053767, 0.0034550589, -0.1384015381, -0.0525456779, 0.1583719105, 0.2140713483, 0.30708915, -0.0738288313, 0.1383868307, 0.5028889775, 0.2763210237, 0.2005427778, 0.6909198761, 0.3393718898, -0.2990195751, 0.2277965695, -0.0682619587, 0.3180029094, 0.3606821299, -0.352763027, -0.1249030456, 0.0891805142, -0.0638578609, -0.5704868436, 0.0774278343, 0.5755836368, -0.0502525531, -0.2467247397, -0.2036542594, 0.5036122203, 0.0755294487, 0.0452172495, 0.3357446492, 0.306625843, -0.1345858127, 0.4332627058, 0.22904405, 0.8371921778, 0.0664701983, 0.1975167394, 0.4190604985, 0.2782624364, 0.3752194047, 0.2443630099, 0.4931094646, -0.07224112, -0.2935525179, -0.0785642639, -0.0573656559, 0.2585948706, -0.2063287199, -0.2275180817, 0.0792280808, 0.2993510962, 0.0497997813, 0.2456898838, 0.0751923546, -0.1930950135, -0.0454207882, 0.1584931016, 0.0760231093, 0.0278170761, 0.1988725066, 0.0360736512, -0.2766834795, -0.0363842174, 0.0062574879, -0.1365678459, 0.2866810858, -0.2043433338, -0.0021290607, -0.1354667544, -0.422304064, 0.0774150416, 0.1585998237, -0.0498052351, -0.1897638142, -0.2146688253, 0.1875269711, 0.1090260297, -0.017079968, 0.130939886, -0.2078872174, 0.3236584663, 0.0703673363, -0.1263880134, -0.1680227965, 0.1297857016, -0.0277371667, -0.1026579812, 0.0939322487, -0.0244820453, 0.0501449481, 0.1173246503, -0.0726366863, -0.2236590683, -0.081152238, 0.0548038185, -0.0418507122, -0.0724701732, 0.3063349724, -0.1006756946, -0.2184456885, 0.0052982545, 0.2373791933, -0.0579878576, -0.062979646, 0.423905313, 0.1024056524, -0.1492201388, -0.1510980874, -0.065669477, -0.1895683557, -0.3472349346, 0.0715967789, -0.0661108941, 0.2904743552, 0.0059091565, 0.1945204437, -0.1170728877, -0.3434319198, -0.3604460657, -0.2922382057, -0.0218097158, 0.3093054593, -0.24381347, 0.3094177544, -0.2597793043, 0.0518356413, -0.0642495304, -0.1518087387, -0.1977261007, 0.0112150228, -0.1870333552, 0.1150118485, -0.0577977188, 0.1435802877, 0.298017621, 0.1002579033, 0.1304492056, 0.3027872443, 0.1218905151, -0.0420313552, -0.1996953338, 0.1484778672, 0.2624360919, -0.1920107007, 0.0289213657, -0.3011051118, -0.142710939, -0.2520177662, -0.0849787444, -0.0990828946, -0.0335681103, 0.405893296, -0.0458111688, 0.1429953277, 0.204651162, -0.0521965735, -0.0804860592, 0.1862020642, 0.2055436224, 0.2482246459, 0.0396124981, 0.0706464648, 0.0052869725, 0.0696548298, -0.039198, -0.0821761265, 0.4352769852, -0.0896871462, 0.2069363296, -0.0835886821, 0.6235200167, 0.4897779524, -0.2130538076, -0.1484170705, -0.0199625138, 0.0811858848, -0.1822690368, 0.1377728432, 0.3611373603, 0.0338964909, 0.1167682186, 0.461928308, 0.0848364457, 0.2669094503, -0.0315168425, -0.2212348133, 0.269287616, -0.1918966621, 0.0230303761, 0.3520163298, -0.1106284559, 0.0879514664, 0.3322310448, 0.2222391218, 0.1806301326, 0.8891649246, -0.3789271414, 0.2810317576, -0.0301862005, 0.0336451195, 0.1174442843, -0.2499156296, 0.1510330886, -0.0759247988, 0.1670830399, 0.2374805808, -0.2280914187, -0.002764819, 0.0796724111, -0.0318871066, 0.0038236165, 0.1798803508, -0.0191681255, 0.1488494575, -0.4384104013, -0.0884494931, -0.2260479033, -0.1747322381, 0.131242007, -0.3458955884, 0.2812268436, 0.3496655226, 0.0209723189, -0.3204385936, -0.2749029398, -0.0464949049, 0.4344980121, -0.3465971649, 0.3179550171, 0.19749403, 0.1010221839, 0.2094187587, 0.2566078007, 0.2804474235, 0.2634672225, -0.1646357626, 0.0899739414, -0.2842895091, -0.2561846077, -0.2365341932, 0.3254283667, -0.0850358233, 0.224770993, 0.4592943192, -0.0073180045, 0.0201855619, -0.3098262846, 0.0979309082, 0.0642295033, -0.4337013662, 0.3161722422, -0.3777694106, 0.2031623423, 0.0222274549, -0.2225871384, -0.4145535231, -0.2736131251, 0.229523629, -0.1021165252, 0.1652677655, 0.0246779099, 0.0124131925, -0.3651841283, 0.0864506587, 0.5485312939, 0.3068870902, -0.029568335, 0.0408919714, -0.4897559881, 0.1018463001, -0.1072579771, -0.5078887939, -0.0245457496, 0.431579113, 0.0781311914, 0.0986219794, 0.3661863506, -0.0075677843, 0.5120609999, 0.3355562389, -0.1594878137, -0.4889879823, 0.0650436878, 0.0166073106, -0.18919155, -0.2935779989, 0.2596865892, -0.3821939826, -0.0060854559, -0.0198381972, -0.2358425856, -0.0958940759, -0.4329816699, 0.5105041265, 0.3110612333, 0.3929795027, -0.2232210338, -0.3729698062, -0.2985541224, -0.1240125522, -0.3117928803, 0.1608437002, -0.0532633476, 0.6107242107, -0.1300371438, 0.1663027555, -0.2135944813, 0.0159970932, 0.0269304048, -0.0969117433, -0.3894901574, 0.4487819076, -0.1560888439, 0.2067020237, 0.0226574857, 0.254992485, 0.0860210359, 0.1470007151, -0.3971427083, -0.488712132, 0.4518759549, -0.6173530817, -0.1096141934, 0.2189197242, -0.0676365197, 0.0491826944, 0.0590861477, -0.4083614647, -0.1824810356, 0.2421122491, -0.1121127307, -0.1751512885, 0.234894067, 0.1507208049, 0.0131173925, -0.1175435409, 0.350070864, 0.3049857616, -0.1327460706, 0.2636427879, -0.0217201877 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
@mariosasko I wonder why there is no issue in `Audio` feature with decoding disabled in `__iter__`, whereas there is in `Image` feature. Enabling decoding in `__iter__` will make fail Audio regressions tests: https://github.com/huggingface/datasets/runs/4608657230?check_suite_focus=true ``` =========================== short test summary info ============================ FAILED tests/features/test_audio.py::test_dataset_with_audio_feature_map_is_not_decoded FAILED tests/features/test_audio.py::test_dataset_with_audio_feature_map_is_decoded ========================= 2 failed, 15 passed in 8.37s =========================
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
52
Iterating over a vision dataset doesn't decode the images ## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge @mariosasko I wonder why there is no issue in `Audio` feature with decoding disabled in `__iter__`, whereas there is in `Image` feature. Enabling decoding in `__iter__` will make fail Audio regressions tests: https://github.com/huggingface/datasets/runs/4608657230?check_suite_focus=true ``` =========================== short test summary info ============================ FAILED tests/features/test_audio.py::test_dataset_with_audio_feature_map_is_not_decoded FAILED tests/features/test_audio.py::test_dataset_with_audio_feature_map_is_decoded ========================= 2 failed, 15 passed in 8.37s =========================
[ -0.1508928686, -0.2987540662, -0.1016991585, 0.3872718811, 0.1785421968, -0.0492620952, 0.2464302778, -0.004940175, -0.0694659576, 0.2798422873, 0.1267050803, 0.5622631907, -0.068370223, -0.1775305271, -0.0727771223, -0.1908052713, 0.0280031171, 0.3463977873, -0.0484352782, -0.1198536903, -0.2097039223, 0.0610203221, -0.3540823162, -0.2867843509, 0.0293846, -0.0790157244, -0.1957989633, -0.059177909, -0.2314467728, -0.4575717449, -0.0549451075, 0.0637343973, 0.0858786702, 0.4071691036, -0.0001241098, 0.1431867629, 0.4660797119, -0.081127435, -0.2237489223, -0.1340429932, -0.1988790631, -0.2039841712, 0.1442227364, -0.1930418611, -0.0260290932, -0.5617835522, 0.0845059305, -0.1878736615, 0.267908603, 0.0799905956, 0.0865791515, 0.0903768167, -0.0407946967, 0.5087561607, 0.1601594985, 0.2625196278, -0.2169995606, 0.4035369158, -0.0918391868, 0.1491846293, -0.2212044001, 0.4030219913, -0.0220489558, 0.2219143808, 0.0232550036, 0.1872172058, -0.0879671797, -0.4516592324, -0.1846903563, -0.000223638, 0.3955826759, -0.1291417927, -0.5207870007, -0.2494550645, -0.1179657876, -0.4843527377, 0.3066270351, 0.199136287, -0.2482756227, 0.0622343644, -0.0441438742, 0.1085856184, -0.2133076787, 0.1955187321, -0.3655474484, -0.1182953194, -0.1054920778, 0.1603343189, 0.4263387918, -0.0066057066, 0.3257419765, -0.0765705258, -0.1238794848, -0.1968618035, -0.4099789262, -0.151791513, -0.0081754848, 0.0128235724, -0.0663982183, 0.1275531203, 0.0555604286, 0.0338783935, -0.2205983549, 0.2273126692, 0.2971057892, 0.0926152989, -0.1889968365, 0.4479320347, 0.1977075487, 0.2057056427, -0.1664726436, -0.1323333234, -0.0031679426, -0.1106001586, 0.1331940144, -0.0083532874, 0.3838196099, -0.1342207342, -0.3089212179, -0.2744193673, -0.6928952336, -0.2151532024, -0.0326773785, 0.0485567711, 0.395488143, 0.2837199271, 0.1071367785, 0.1769823283, -0.2263323516, -0.2182198316, -0.0732737258, -0.0167378392, -0.2031641304, 0.0650621727, 0.0845032483, 0.2156629711, 0.0188924652, -0.0250486229, 0.0733013973, -0.2795394063, 0.1963829845, -0.4504354596, 0.6664810181, 0.2498287857, -0.1914382875, -0.0200240165, -0.0899546444, -0.0729603469, -0.1243770197, 0.1066607684, -0.1641366333, 0.2333995402, 0.1615817994, -0.0080686482, -0.2998097837, -0.2181789875, -0.097617276, 0.271617353, -0.0111481491, -0.378426522, 0.2249279618, -0.2431570739, -0.3054457307, -0.1291560829, 0.3100270331, 0.3128605485, -0.5085040927, 0.2006618977, -0.0162925534, -0.2212712914, 0.24996984, 0.3959436715, -0.0986952782, 0.0844648257, -0.4364675879, 0.0621711724, 0.1344304234, -0.4060564637, -0.5937792063, 0.3419034779, 0.2812226415, 0.5021303892, 0.1213831976, 0.1274091601, 0.0562574156, -0.0778072104, -0.3730583489, 0.2123033553, -0.1704395413, -0.1350428313, -0.1770520359, 0.0763639584, 0.4441020787, 0.2274188697, 0.0855849013, 0.161172241, 0.0994848236, -0.1404566169, 0.377969414, -0.1352635771, 0.0600025728, 0.0175988656, 0.1667938083, -0.2541066706, 0.4518943727, -0.1109008864, 0.0761641189, 0.1810269505, 0.1533886194, -0.0429989956, -0.398307085, 0.0401848927, 0.2361037433, 0.014795078, -0.578212142, -0.1555480957, 0.1069729179, 0.4082613289, -0.1363739073, 0.1310914606, -0.2769382298, 0.1275986135, -0.2673375309, -0.0611224659, -0.0884660855, 0.3378527761, 0.1147941574, -0.1228823662, -0.2844685316, 0.1970625222, -0.0701016933, -0.2469529212, -0.0420147255, 0.2363681942, 0.4958340824, 0.248240456, -0.1738082767, 0.0634524301, 0.4048700929, -0.8184466958, -0.0731531233, 0.2047594786, 0.1147234291, -0.0112548014, 0.2148872614, 0.0004395269, 0.208402589, 0.5009202957, 0.0192254726, 0.0070007681, 0.065641664, -0.0250212215, -0.4626915455, -0.1758690774, 0.0846920684, -0.3450934589, 0.1315339953, -0.0851580352, -0.2810756564, 0.0045753382, 0.4192503691, -0.0414198637, 0.0370092876, -0.0708706751, -0.1737426072, 0.1137733757, 0.2625330091, 0.1060696393, 0.3817309141, -0.0307463817, 0.1158305779, 0.0387669578, -0.0853012875, 0.1163394377, 0.1622755975, 0.5593479276, 0.4519826472, 0.1674320698, 0.1739867777, 0.0989613235, -0.499661833, -0.4535163641, -0.0369942077, -0.0368289985, 0.0005099218, 0.4410972297, -0.5239856243, -0.6593925357, -0.1555226743, 0.2634772062, -0.1059424579, -0.2108800262, -0.3275827169, 0.1243173927, 0.0108223436, 0.053124357, -0.0784796178, 0.1317291707, 0.1481852382, -0.0105119282, -0.4107993245, -0.0609150045, -0.1017961726, -0.0715701431, 0.2680947483, -0.3913147449, 0.2765234113, -0.1607372463, -0.2429050654, -0.27783674, -0.4230123758, 0.4261126816, -0.2118365318, 0.3343224525, 0.0761887431, -0.0550734326, -0.130087167, 0.0421040766, 0.2627418041, 0.0704970136, -0.2798239887, 0.0307926927, -0.1302015185, -0.0611765459, -0.1811631173, -0.0208154377, -0.1162307188, -0.3061003387, 0.31187132, 0.1193758324, 0.1522378922, 0.5688925385, 0.0269614961, 0.0545580573, -0.2560632527, 0.137002036, -0.0859851316, 0.1329921484, 0.1052356735, -0.0629640594, -0.3697578013, 0.0258466862, -0.1197767779, 0.3240387142, 0.2857982814, -0.4700033963, -0.1853570193, -0.1529529095, -0.0834463164, -0.1562947482, -0.0713522062, -0.0684400722, -0.0024919617, 0.087263681, -0.3065319359, -0.145703733, -0.0116436519, 0.2517797649, 0.3584549427, 0.3331948519, 0.2047283351, 0.3619551957, 0.3501826823, 0.4554517865, -0.0919018984, 0.5750848055, -0.2717234194, 0.2448505163, -0.0402133688, -0.2246463299, 0.1662359983, -0.0087858494, -0.2337179184, 0.053026516, -0.2285740077, -0.5887904763, -0.1960498989, 0.0178564712, -0.3011542559, -0.3479035795, -0.0533181801, -0.1693749577, 0.0822668299, -0.1235599369, 0.2889325619, 0.20988819, 0.0202983003, 0.1395361871, 0.2528637946, 0.3555047214, -0.03399444, -0.2717392445, -0.5804102421, -0.0443852507, -0.2124939263, 0.103750743, 0.8331887722, 0.0140207093, -0.1212683618, 0.2945041358, -0.1379891187, 0.7839255333, -0.1923746914, -0.0278849937, 0.0394800901, -0.2082844973, 0.0088488311, -0.0623398796, -0.3635669649, 0.0943631157, -0.0071516582, 0.2717390656, -0.0804430321, -0.153417021, 0.3535495996, 0.2971900403, -0.0093535846, -0.2744175792, -0.3825571239, -0.2077219337, -0.2276383936, -0.1268288195, -0.0045329058, 0.0401883908, -0.0651370957, 0.0385448635, -0.1621164083, -0.01937663, 0.1565266252, 0.2134373635, 0.2968938053, -0.1681021154, 0.1325507462, 0.445143193, 0.2379402667, 0.2139845639, 0.6394232512, 0.3371849358, -0.3368947208, 0.2705137432, -0.0525873713, 0.372520715, 0.3540700972, -0.3391866684, -0.1429084837, -0.0020997385, -0.1082187146, -0.557395339, 0.0276590008, 0.6334295273, -0.021403715, -0.1866615415, -0.1709786057, 0.4540089071, 0.1016607806, 0.0398879014, 0.3203319907, 0.2068716735, -0.1044259667, 0.4610020816, 0.1714583635, 0.8235941529, 0.2300968915, 0.1866767704, 0.3748394847, 0.3064486086, 0.29238379, 0.2641177475, 0.4960433841, -0.0314176828, -0.3518167734, -0.0890789405, -0.1047088802, 0.2992144227, -0.1935378462, -0.2192656398, 0.1506960541, 0.3111181855, 0.0815093741, 0.2347096503, 0.0299156439, -0.1733953953, -0.0236800089, 0.2177769393, 0.0562297218, 0.1212161183, 0.1903377473, 0.0118704317, -0.2481642514, -0.0642246604, -0.0123297591, -0.1111011729, 0.2160306573, -0.2132590711, 0.0358070508, -0.1359745115, -0.45376122, 0.1329725832, 0.1380629241, -0.0738235861, -0.1876317561, -0.152827248, 0.1671768874, 0.1368796974, -0.006858516, 0.0974306464, -0.2086954862, 0.366352886, 0.0364935547, -0.1277607977, -0.1650232375, 0.0844005793, -0.0268500727, -0.0392889455, 0.1168500558, -0.0723452345, 0.0372650512, 0.0485461876, -0.0335760489, -0.1511804312, -0.1190105006, 0.047994934, -0.0087885829, -0.1112424955, 0.3597233295, -0.1048865914, -0.2328716964, -0.0053090407, 0.1769260317, -0.0427345857, -0.0490341224, 0.4217521548, 0.0133563187, -0.1577593237, -0.1480849236, -0.0692935511, -0.207502529, -0.364754349, 0.140058279, -0.1250973642, 0.2528549731, -0.0737044439, 0.1721215397, -0.093711935, -0.2643102109, -0.4504078925, -0.3145992458, 0.0271444283, 0.3347577453, -0.2705027163, 0.3186556101, -0.3287028968, -0.0188714247, -0.0574541464, -0.1611161381, -0.1651756465, -0.0404905602, -0.1646064371, 0.1388882697, -0.075450547, 0.1442654431, 0.2199426144, 0.1550774872, 0.0869328827, 0.2996484637, 0.0933927223, -0.0175696444, -0.191995278, 0.1701731533, 0.254694134, -0.1807546467, 0.0702001452, -0.2816503942, -0.1514479667, -0.227561146, -0.0910746455, -0.17444022, -0.0538520478, 0.4191810191, -0.0511660166, 0.108244136, 0.1688546687, 0.0849459246, -0.0879899785, 0.2491886616, 0.175928697, 0.26016289, 0.0794846714, 0.0838475823, -0.0940458849, 0.0543246381, -0.0768922716, -0.0851515308, 0.3715065718, -0.0870664194, 0.2596730888, -0.1008073986, 0.596108377, 0.5580002666, -0.2305355817, -0.1407831609, -0.0039229887, 0.0693857446, -0.1412427127, 0.1241458431, 0.397891432, 0.0104410937, 0.1444193721, 0.4353463948, 0.1736773252, 0.2749362588, 0.0143642724, -0.2450890094, 0.2383176535, -0.2279677689, 0.0488768928, 0.3446775973, -0.092647329, 0.1299854815, 0.2919385135, 0.2007334977, 0.1748929769, 0.7844697833, -0.3567461073, 0.2613545358, 0.0617296696, 0.0340038277, 0.1773515046, -0.1728674173, 0.1011264548, -0.0795991346, 0.1996079087, 0.2080512345, -0.1607451439, -0.0085196961, 0.0231595002, -0.052786015, 0.0111575248, 0.1092148945, -0.0069439611, 0.1417785585, -0.4929994643, -0.0735169947, -0.2340604961, -0.1918388605, 0.1356870532, -0.2519976199, 0.3346298635, 0.3856914043, 0.0058888388, -0.291893363, -0.2591946423, -0.0477115028, 0.3989057839, -0.3247409463, 0.2840482295, 0.1415618658, 0.1633445621, 0.1955406219, 0.3711590767, 0.3449699879, 0.2484849393, -0.1605554819, 0.015857527, -0.2689829171, -0.2425710857, -0.1662485003, 0.3707965314, -0.1029997543, 0.2711634636, 0.4171506464, -0.0320215821, 0.0286366642, -0.2407170981, 0.1078393832, -0.0064806785, -0.5270090103, 0.3364890218, -0.3918085396, 0.2140947133, 0.0184722804, -0.2306399643, -0.3934653103, -0.2655158043, 0.2311593294, -0.1341202259, 0.1590916216, 0.0475838035, -0.003228765, -0.4647271633, 0.1086120456, 0.5539240241, 0.3461481631, 0.0030357155, 0.0513445213, -0.436838299, 0.1074446589, -0.0841222927, -0.4915780723, -0.0124179572, 0.4681075513, 0.0477593578, 0.1500793397, 0.3801972568, -0.0347919948, 0.5267486572, 0.4164395332, -0.2544757724, -0.4312686622, 0.1107152849, 0.0294879526, -0.1974886209, -0.3502668738, 0.2002529353, -0.3461772799, -0.061735183, 0.0369075201, -0.2597421706, -0.0796403214, -0.3973733783, 0.5772176385, 0.3481808603, 0.4098930359, -0.2171760648, -0.3821609616, -0.2606048286, -0.1754156202, -0.2711026967, 0.0971837789, -0.0402040035, 0.6036795378, -0.1251291484, 0.1967871487, -0.1689332128, 0.0838403478, -0.0147345923, -0.1248614565, -0.3850589395, 0.3776667416, -0.1814442873, 0.1704920381, 0.0581877232, 0.1712839305, 0.0734435692, 0.0768275931, -0.3820696175, -0.4981848001, 0.4031833112, -0.5876677036, -0.0996874124, 0.1801075935, -0.0689426363, 0.0578224659, 0.0800175294, -0.4275700748, -0.2025832087, 0.2308745533, -0.0912072062, -0.1224329546, 0.2842644453, 0.1787293255, 0.0257953405, -0.0682772622, 0.3692870736, 0.2423281223, -0.1311953962, 0.2121574283, -0.013813436 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
Please also note that the regression tests were implemented in accordance with the specifications: - when doing a `map` (wich calls `__iter__`) of a function that doesn't access the audio field, the decoding should be disabled; this is why the decoding is disabled in `__iter__` (and only enabled in `__getitem__`).
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
50
Iterating over a vision dataset doesn't decode the images ## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge Please also note that the regression tests were implemented in accordance with the specifications: - when doing a `map` (wich calls `__iter__`) of a function that doesn't access the audio field, the decoding should be disabled; this is why the decoding is disabled in `__iter__` (and only enabled in `__getitem__`).
[ -0.1789715141, -0.2866581976, -0.0869732425, 0.371363461, 0.1995099634, -0.053819146, 0.1906980127, 0.0316141956, -0.0140854567, 0.2848644853, 0.1102567166, 0.6305354834, -0.0778806582, -0.2217885107, -0.0395907164, -0.1451563835, -0.0334660597, 0.3611385822, -0.0952342898, -0.1042020246, -0.2602479756, 0.0639250427, -0.3702394962, -0.2472733259, 0.0826143846, -0.1064711362, -0.178902477, 0.001298759, -0.2136849463, -0.4196984768, -0.0781212896, 0.0044329804, 0.0248223096, 0.4059693515, -0.000121519, 0.1554967463, 0.4242656529, -0.109442547, -0.1894097626, -0.1349501163, -0.2027020156, -0.1602315456, 0.0669199154, -0.1810100973, -0.0649214163, -0.523277998, 0.0838990584, -0.2499027103, 0.3002084494, 0.1066238806, 0.1142506152, 0.0308188628, -0.0185434744, 0.531504035, 0.1692828089, 0.2468280047, -0.1708954275, 0.415222317, -0.0583789125, 0.1219315007, -0.2273100764, 0.446065098, -0.0496107154, 0.1681677252, 0.0244370531, 0.20506908, -0.047239814, -0.4605135918, -0.1653556079, -0.0530324839, 0.3309440911, -0.1667301804, -0.4589375854, -0.2208454162, -0.127126351, -0.4831511676, 0.3219932616, 0.1420206875, -0.2906318903, 0.0384121165, -0.0874652192, 0.0926056504, -0.1853727698, 0.2338193059, -0.355672121, -0.0948431268, -0.1044337228, 0.1443352252, 0.4409030378, -0.0498951934, 0.2733024657, -0.07006336, -0.1750099212, -0.1239951998, -0.3875400722, -0.1693893224, 0.0216692612, -0.0079216622, -0.0731507763, 0.0553604178, 0.0740679801, 0.0431641005, -0.2220764458, 0.238847658, 0.2710497379, 0.0738255307, -0.2300855219, 0.4705207944, 0.1888394952, 0.1522962153, -0.184072718, -0.1155906618, 0.0143344123, -0.0940680951, 0.0885747597, -0.0208537914, 0.3335846663, -0.1228831857, -0.2263769209, -0.228936106, -0.742339015, -0.1648161858, -0.0226207729, 0.1202654094, 0.4201433957, 0.249983266, 0.1603365242, 0.1388779283, -0.2229290903, -0.2300182581, -0.0838881731, -0.0361916311, -0.2393381298, 0.0666318834, 0.0850356221, 0.2303411365, 0.0008740342, -0.0233198423, 0.0254528392, -0.3203957081, 0.1987044811, -0.4061116874, 0.7475296855, 0.266182512, -0.1966233104, -0.0207602717, -0.0584058054, -0.1047022566, -0.109829329, 0.1222008467, -0.1829852462, 0.1975499839, 0.1330413371, 0.0161935352, -0.3011026382, -0.1963586807, -0.0891502425, 0.2865544558, -0.0197795518, -0.421687901, 0.2456888109, -0.2424381971, -0.3471264243, -0.1291725934, 0.3110236228, 0.331136167, -0.4823746979, 0.1953656524, -0.0488574132, -0.1908258051, 0.2448618561, 0.3664056361, -0.0892485976, 0.1136387959, -0.455442071, 0.100391306, 0.1573894769, -0.3971649408, -0.6393212676, 0.350237906, 0.2317436635, 0.4944280982, 0.0558656305, 0.1349161267, 0.0965906754, -0.0570207313, -0.3248891234, 0.2013663054, -0.1744831949, -0.0605683364, -0.1837567091, 0.0833400264, 0.4329300523, 0.2383268178, 0.084717758, 0.1572258919, 0.1294759363, -0.1424468756, 0.4032499194, -0.1334681958, 0.0418917499, 0.0283040553, 0.136590004, -0.2799535394, 0.4146012962, -0.1249685884, 0.0605202168, 0.1535263807, 0.1304372549, -0.0678596348, -0.3906123936, 0.0622263178, 0.2232220322, 0.0245362502, -0.5923892856, -0.1557961851, 0.1363747269, 0.4418116808, -0.152962774, 0.1457501799, -0.2616071105, 0.0797237903, -0.2535972893, -0.1095391884, -0.0853282958, 0.3213588297, 0.104699187, -0.1463035792, -0.3029441833, 0.2016635984, -0.0656340122, -0.240612179, -0.0405219458, 0.2570307255, 0.5106728673, 0.2430370301, -0.1637866348, 0.0927482992, 0.3728279769, -0.8071993589, -0.0675372481, 0.2072453201, 0.1155462414, -0.047430262, 0.207103774, -0.0210249051, 0.2241636366, 0.4733754694, -0.0394444019, 0.0184531938, 0.0707861632, 0.0043261126, -0.4431526363, -0.1662732363, 0.0379341096, -0.3015811741, 0.1298767179, -0.0871947929, -0.240289256, 0.004004044, 0.4594587088, -0.0768885091, 0.0631586015, -0.0765895918, -0.1967229247, 0.0913173929, 0.2570135593, 0.0713360608, 0.3440685272, -0.0330946036, 0.093863368, 0.0678785667, -0.0720628798, 0.1591127515, 0.1837816238, 0.5515565872, 0.4681221843, 0.1443289369, 0.1762772501, 0.0576139316, -0.5171971917, -0.4493563473, -0.0362453349, -0.0022027788, -0.0369973034, 0.4303495288, -0.4798648953, -0.6042443514, -0.1478455663, 0.2442139238, -0.1147380844, -0.2363816351, -0.3204598725, 0.1604548395, 0.0097892098, 0.0859221444, -0.0370288678, 0.1484366506, 0.1657845676, -0.0771361291, -0.4657951295, -0.1050617546, -0.1010612547, -0.0530971885, 0.3188286126, -0.439009577, 0.2606320977, -0.1121331528, -0.2220496386, -0.2575860322, -0.4064341187, 0.4390815794, -0.2303665876, 0.2908098996, 0.0675041899, -0.0366747938, -0.1556223184, 0.0563266799, 0.267588973, 0.0460660383, -0.2839903235, 0.0758159757, -0.1616168022, -0.051953543, -0.1933504641, -0.0367530584, -0.1021106243, -0.3071850836, 0.2868728638, 0.0870413184, 0.1550756097, 0.5662667155, 0.0637730062, 0.099442035, -0.3122094274, 0.0703218058, -0.1293596774, 0.1263517886, 0.1209413409, -0.0781079829, -0.3277114928, 0.0548628457, -0.1014038175, 0.3211342692, 0.2556359768, -0.4615962505, -0.1392074376, -0.1139417514, -0.1203625947, -0.2021485418, -0.0829721615, -0.0418892354, 0.0374264792, 0.0702889189, -0.2928246558, -0.1629466116, 0.0005133727, 0.2870490253, 0.374795109, 0.3042930663, 0.1930344701, 0.3521552682, 0.3680731952, 0.4678540528, -0.1262819618, 0.4818855822, -0.3723906875, 0.2566928267, -0.0395537503, -0.2187258601, 0.1598908454, 0.0016647523, -0.256419003, 0.0541285947, -0.2437777966, -0.6353650093, -0.1781371534, 0.0491945148, -0.3761362731, -0.3712743819, 0.0019005745, -0.1756647229, 0.0355453566, -0.1203018725, 0.3365421593, 0.1565472037, -0.0090006031, 0.1473643482, 0.186617732, 0.3350981474, -0.0317751206, -0.2171132714, -0.571526587, -0.0298097692, -0.1622176021, 0.1269203275, 0.8125035763, 0.0110840304, -0.1190394089, 0.2821249366, -0.1512831748, 0.8356214166, -0.2780053914, 0.008863478, 0.1096011698, -0.1830142438, 0.0202110391, 0.0010169784, -0.3800160885, 0.1004451886, 0.0023274352, 0.2896248698, -0.0526568741, -0.1187385991, 0.3173407614, 0.2293924689, -0.0370932333, -0.21935229, -0.3681580424, -0.2199852765, -0.2414248884, -0.078463912, 0.0056750514, 0.0489817858, -0.0004797994, 0.0343224555, -0.1026345119, 0.011022646, 0.143671602, 0.2604283988, 0.3160654306, -0.0728462189, 0.082022123, 0.5085617304, 0.2321812212, 0.1537891924, 0.6459139585, 0.3335765898, -0.2557450533, 0.2998597622, -0.0665424317, 0.4068023264, 0.36435467, -0.3132725954, -0.1874459088, 0.0513317138, -0.1118616536, -0.572298646, 0.0425219573, 0.6531649828, -0.0153950946, -0.1666054428, -0.2062826455, 0.4480577111, 0.0593575649, 0.0014694947, 0.3946332633, 0.1685473025, -0.1096208841, 0.5278655887, 0.2179071158, 0.8502215743, 0.1388653666, 0.1641338468, 0.3919452727, 0.3267332017, 0.2860389948, 0.1794553846, 0.4848985374, -0.0467702225, -0.3072224855, -0.073475495, -0.117190063, 0.2346380204, -0.167152226, -0.2430822849, 0.0957309008, 0.3457784057, 0.1371578723, 0.2456609309, 0.0012463306, -0.077819109, -0.0530511588, 0.1965045631, 0.0916161537, 0.0891216695, 0.2124330401, 0.037075676, -0.2583514154, -0.0373520441, -0.0429997295, -0.1160968468, 0.2730697691, -0.2632869184, -0.00626146, -0.1921939552, -0.3759075403, 0.0968486369, 0.1666863114, -0.1627375335, -0.1435145438, -0.1888387054, 0.1674797386, 0.1728871316, 0.0201651193, 0.1472853422, -0.1701790094, 0.3046716452, 0.0498807915, -0.1279814094, -0.1101960465, 0.0971493796, -0.0438259281, -0.0294146072, 0.1200024486, -0.0724653155, 0.0544529036, 0.0725474581, -0.0123819988, -0.1706584692, -0.0735188574, 0.0615957938, -0.0666114166, -0.1192705855, 0.3776540458, -0.1317760944, -0.2665748, 0.0223703515, 0.1882274896, -0.0932010561, -0.062019635, 0.4028544724, 0.0227185637, -0.1343504041, -0.1909644455, -0.0581736639, -0.238941893, -0.3164663911, 0.1102793962, -0.101650089, 0.2349866033, -0.0625813305, 0.1851572394, -0.0985956341, -0.2652618587, -0.4397282004, -0.2957707345, -0.0298029017, 0.3204660118, -0.2127875239, 0.3443320692, -0.2814209759, -0.0136304256, -0.0794736147, -0.1431986094, -0.1990969777, -0.0080921249, -0.1989797652, 0.1274961829, -0.087163277, 0.1579943448, 0.2715980709, 0.0945143327, 0.1080754027, 0.3271054029, 0.0853919908, -0.0514615104, -0.1959170103, 0.1541996151, 0.2512463033, -0.1778972, 0.0402206816, -0.328784883, -0.14218539, -0.2487361729, -0.1036588177, -0.1575998515, -0.0447268113, 0.4012430608, -0.0313381813, 0.0655638799, 0.1766082942, 0.0409796908, -0.0905883759, 0.2366905361, 0.1767263412, 0.27167961, 0.0911502615, 0.0604340024, -0.0302523486, 0.0716769397, -0.0710891411, -0.0653798729, 0.4405335784, -0.0574115068, 0.2603830993, -0.0924924091, 0.5786537528, 0.5097388625, -0.2601542175, -0.1283734292, -0.032610029, 0.1007623076, -0.1579941511, 0.1345609725, 0.4071252048, 0.0192113928, 0.1227916926, 0.4412288666, 0.1113321185, 0.2777810097, 0.0192187522, -0.2467792034, 0.2318643779, -0.2320659161, 0.0028063238, 0.3570323884, -0.1333578676, 0.1024866775, 0.302437216, 0.223558709, 0.1901500374, 0.8309050798, -0.320006907, 0.2275863141, 0.0246128067, 0.0270542447, 0.1165342554, -0.2050451189, 0.1268912107, -0.0427236371, 0.1923176795, 0.2799208164, -0.1721819639, -0.0693820566, 0.0463798195, -0.0543942489, 0.0027966872, 0.1357009709, -0.0215687435, 0.1694406271, -0.476895988, -0.0827135146, -0.2289939225, -0.1945998073, 0.1394105703, -0.2802901268, 0.3686474264, 0.4005943835, 0.021218637, -0.2137192637, -0.3290733993, -0.0718172267, 0.4144623578, -0.3668953478, 0.3121239245, 0.125633657, 0.1619770825, 0.2041007429, 0.3361751139, 0.3097992241, 0.2561323345, -0.2100578845, 0.07333076, -0.2595435381, -0.2715919912, -0.198253125, 0.3916701972, -0.075027667, 0.208418861, 0.4459328055, 0.0042625195, -0.000983772, -0.2967956066, 0.0843169466, 0.0701295361, -0.4040855467, 0.3091337979, -0.3565072417, 0.212950632, -0.0098907398, -0.2691074014, -0.3538586497, -0.266410023, 0.214717254, -0.1264957488, 0.1854694337, 0.0329669714, 0.0116288206, -0.3824066222, 0.1134758741, 0.5059087873, 0.3472710848, -0.0489468277, 0.0162621178, -0.467095077, 0.1331850439, -0.1191274822, -0.4916944802, -0.0160374176, 0.4253552258, 0.1368566006, 0.1348412037, 0.3989802003, -0.0452979393, 0.450303793, 0.4124766588, -0.2201524824, -0.4390871823, 0.0611420497, 0.0433062166, -0.1668005437, -0.3577815294, 0.2182392776, -0.3337178826, -0.0155819431, 0.019002527, -0.2520550489, -0.1389680356, -0.4144247472, 0.5964275599, 0.326908499, 0.3811202943, -0.2493726164, -0.3622297347, -0.2425595075, -0.1602969468, -0.2750682235, 0.095190987, -0.0675533935, 0.6108418107, -0.1146728396, 0.1785501391, -0.2181946039, -0.0237798281, -0.0006485769, -0.0894563422, -0.4429620206, 0.402269721, -0.1815814972, 0.2007004917, 0.0273692664, 0.2096566111, 0.0579275526, 0.1253886521, -0.3646464348, -0.4330117702, 0.4383454919, -0.5859177113, -0.1164817661, 0.2096257359, -0.0723409429, -0.0277045127, 0.0691650435, -0.4257277846, -0.1909605563, 0.2375273257, -0.0796400011, -0.1444470435, 0.2516806722, 0.1109386161, 0.0325657874, -0.0957393274, 0.3940701485, 0.2584434152, -0.1082290709, 0.2094882131, -0.0290988013 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
> I wonder why there is no issue in Audio feature with decoding disabled in __iter__, whereas there is in Image feature. @albertvillanova Not sure if I understand this part. Currently, both the Image and the Audio feature don't decode data in `__iter__`, so their behavior is aligned there.
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
49
Iterating over a vision dataset doesn't decode the images ## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge > I wonder why there is no issue in Audio feature with decoding disabled in __iter__, whereas there is in Image feature. @albertvillanova Not sure if I understand this part. Currently, both the Image and the Audio feature don't decode data in `__iter__`, so their behavior is aligned there.
[ -0.0908605009, -0.3369823098, -0.0806186199, 0.4213090837, 0.1601836979, -0.0303244703, 0.2214541733, -0.0054399865, -0.0804104805, 0.285702318, 0.0867209435, 0.5229113102, -0.0322172977, -0.1369960457, -0.1372658908, -0.2022331357, 0.0346545689, 0.3320819438, 0.0491904169, -0.0941808745, -0.2120274454, 0.069279477, -0.3560756445, -0.2714833319, 0.0287528485, -0.024042422, -0.1912504882, -0.0384813249, -0.2333517522, -0.4596177936, -0.0735018179, 0.0624064691, 0.1069096774, 0.3332906663, -0.0001234678, 0.177542612, 0.4807679951, -0.0630617961, -0.2231526822, -0.1209536567, -0.2199767232, -0.2186960131, 0.1461547911, -0.16757828, -0.043095652, -0.6059794426, 0.1180563867, -0.1544656754, 0.2774114609, 0.0970700011, 0.0833945051, 0.0875462443, 0.0207617432, 0.5472243428, 0.1661502123, 0.2713362277, -0.232591331, 0.3516991436, -0.0323961414, 0.1665891856, -0.2491092831, 0.4132460356, -0.0429002605, 0.1907825321, 0.0424257889, 0.2177724838, -0.1191267222, -0.4638726115, -0.1571336836, -0.0455739535, 0.4525873661, -0.0991378948, -0.4682758749, -0.2749093771, -0.1443208605, -0.4398689866, 0.3522162139, 0.191655159, -0.2702872157, 0.0498339981, -0.0388262458, 0.0680793077, -0.210628733, 0.1847968549, -0.3528876901, -0.1452788413, -0.1344646364, 0.1608618796, 0.3615964651, -0.0132838888, 0.3524281681, -0.0703741983, -0.075250864, -0.2126303315, -0.40615955, -0.1271722615, 0.0104729179, 0.0428059474, -0.0998825878, 0.119517304, 0.0283100177, 0.0362606421, -0.2304581851, 0.2502748966, 0.2944632769, 0.0682686493, -0.1703335643, 0.4527851939, 0.2027795315, 0.2124349028, -0.171615988, -0.173780486, -0.0208224505, -0.1203547195, 0.1328121275, -0.0210482329, 0.4478605986, -0.1283734888, -0.3054825664, -0.2959779203, -0.6404032111, -0.2040372938, -0.0053763101, 0.0150067098, 0.3795149326, 0.2782297134, 0.136341542, 0.2026945949, -0.2545624673, -0.2744054198, -0.0441678502, -0.0293459408, -0.1664626896, 0.0537852757, 0.0836704373, 0.2161823511, -0.0224887468, -0.0046650073, 0.0562217869, -0.2639279664, 0.2102005482, -0.4909256697, 0.6442562938, 0.2474069744, -0.182241559, 0.0048417766, -0.0544551387, -0.0365184508, -0.0994635448, 0.1656706035, -0.2319958657, 0.2143931091, 0.1147631481, -0.0181506183, -0.2979392409, -0.238515079, -0.0601543486, 0.2943539321, 0.018895423, -0.4275337756, 0.2312258184, -0.2260756195, -0.3385115266, -0.1789216697, 0.3007448614, 0.3443675041, -0.5204356909, 0.2083216012, -0.0686153695, -0.2916471362, 0.2639983594, 0.3806131482, -0.0905223787, 0.0582767911, -0.3975414038, 0.0879918188, 0.1202372909, -0.4181300998, -0.5851979852, 0.3284209371, 0.2917782068, 0.5436487198, 0.0896530524, 0.128720209, 0.0569568053, -0.1090873703, -0.3777758479, 0.1626753956, -0.1970509291, -0.1646245122, -0.1831423491, 0.0381755307, 0.4477263093, 0.2457766831, 0.0879467949, 0.1824035943, 0.0836638808, -0.1350916922, 0.3082948327, -0.0842775926, 0.1149113253, -0.0026677998, 0.1280905902, -0.1605347246, 0.4604102969, -0.0582015142, 0.056724295, 0.2398640364, 0.1586249471, -0.0699800551, -0.4116463959, 0.0340499692, 0.2502871454, 0.0053229602, -0.6026595831, -0.1840768754, 0.1000517011, 0.3911398351, -0.1722600013, 0.0750076473, -0.2879247665, 0.1562560499, -0.2274370044, -0.0705452263, -0.1062008068, 0.3323377371, 0.0990591124, -0.1156466231, -0.3004310429, 0.1669394374, -0.0395339839, -0.179914996, -0.0364034362, 0.2521412373, 0.508816123, 0.2554188669, -0.2290394753, 0.0991923437, 0.3801516593, -0.8088200092, -0.0476425923, 0.1818998605, 0.1353772879, -0.0351328887, 0.1607132554, -0.0209614467, 0.1898576468, 0.4863987863, 0.0180052761, 0.0209465269, 0.0272612721, -0.0409732535, -0.4108508527, -0.1598880738, 0.055531282, -0.3598347008, 0.116307497, -0.0849129707, -0.3463288546, 0.0285162646, 0.4301254153, -0.0078558698, 0.0274857562, -0.0121022686, -0.1642508805, 0.0956225693, 0.2290308774, 0.0368795842, 0.3624597788, -0.0403189622, 0.1253333539, 0.044146847, -0.0402597785, 0.1075819284, 0.1185018718, 0.5623558164, 0.4528132677, 0.1497627199, 0.2138263881, 0.1046032533, -0.4651177824, -0.394851923, 0.0173309408, -0.039550975, 0.0022943334, 0.4201056659, -0.4783703685, -0.6801813841, -0.1319322884, 0.2919661105, -0.1373365521, -0.2480566949, -0.2933246791, 0.1676214337, 0.0744958147, 0.0011371422, -0.0938991532, 0.123178415, 0.100337036, 0.0233587846, -0.4160428047, -0.0200767033, -0.0839690268, -0.0615410171, 0.269931525, -0.378615737, 0.2343954593, -0.1289455593, -0.2306696624, -0.2783615291, -0.4092332423, 0.4204204082, -0.2558793128, 0.3087863028, 0.0481367111, -0.0239789113, -0.133570984, 0.0554682426, 0.2966935337, 0.0995068997, -0.2817157507, 0.0105051221, -0.1002336293, -0.0481168963, -0.161929965, 0.0149222175, -0.1258962005, -0.2914820015, 0.3358874619, 0.1118798256, 0.1844109744, 0.5449222922, 0.0024031131, 0.0694599599, -0.1748827994, 0.127639845, -0.0803178251, 0.100536339, 0.1013313755, -0.0648762286, -0.3380973637, 0.0068743872, -0.0328440331, 0.3177344203, 0.2685557306, -0.4728653431, -0.1454165876, -0.2204589844, -0.0250392482, -0.1675826609, -0.1128589511, -0.0652303845, 0.0092149861, 0.0880518928, -0.3293048143, -0.1398234516, -0.0065731769, 0.2604368329, 0.3264965713, 0.3766281307, 0.1959261447, 0.3673951626, 0.3560909927, 0.4180587828, -0.0242104419, 0.6217768788, -0.2453547567, 0.2235402018, -0.0465617552, -0.2100649327, 0.1969671696, -0.0736182034, -0.2455704808, 0.0345993862, -0.1852466315, -0.5804815292, -0.2184080631, -0.019661475, -0.3504750133, -0.3376425207, -0.0526803583, -0.14682585, 0.0901841819, -0.1671458781, 0.2522001266, 0.1628057361, -0.0084212599, 0.0943949446, 0.2534442842, 0.371645689, -0.022837285, -0.2914108932, -0.5911867619, 0.0046211248, -0.2174968272, 0.1168539226, 0.8331122994, -0.0410213247, -0.1377124786, 0.3381366134, -0.1818499267, 0.8283495903, -0.2025293708, -0.02397562, 0.045443397, -0.1781024039, 0.075222671, -0.0642038658, -0.3262148499, 0.1284608245, -0.0242762249, 0.272354424, -0.0718856081, -0.1636167467, 0.3297612965, 0.3079402149, -0.0225124173, -0.2373916805, -0.3744110167, -0.1711660028, -0.2343470603, -0.1924932003, 0.0040043239, -0.0080966493, -0.0985246897, 0.0618934408, -0.1665897965, -0.0187298823, 0.1296595633, 0.1769390255, 0.2710495591, -0.1782050729, 0.1230690181, 0.5224398375, 0.2256483436, 0.2062744051, 0.6675751209, 0.3654746115, -0.3531639576, 0.256654501, -0.0562851913, 0.3422866464, 0.352297157, -0.3408207893, -0.0975656807, 0.0122356927, -0.1112906262, -0.5668606162, -0.0252646506, 0.6096279621, -0.0610435233, -0.2732251883, -0.1769201756, 0.4598680437, 0.1129906625, 0.0289047007, 0.3250639439, 0.2467767894, -0.0666581541, 0.4408019483, 0.1678483337, 0.8743000627, 0.175882563, 0.1387718767, 0.3306452036, 0.2949141562, 0.3108500242, 0.2306854576, 0.5058419704, 0.0072474205, -0.4011847377, -0.1208147556, -0.0735593587, 0.2906253636, -0.2087935954, -0.1849176437, 0.1095587462, 0.2621302605, 0.0373388305, 0.2685832083, 0.0536691509, -0.1754259318, -0.0038159601, 0.2455114573, 0.0594057553, 0.1018024907, 0.1958433986, 0.0350546725, -0.2617573142, -0.053650938, 0.0134813478, -0.135839507, 0.2536008358, -0.2321957946, 0.0559164211, -0.1170614064, -0.4156544507, 0.1647749692, 0.1460798681, -0.0563219786, -0.2348998636, -0.1711829454, 0.156637311, 0.200203225, -0.0301283561, 0.0842740908, -0.2026486993, 0.3569006622, 0.0381433479, -0.1760797501, -0.1521227807, 0.0684030354, -0.0494720042, -0.0878877789, 0.1049283817, 0.0153630525, 0.0578790829, 0.0317309014, -0.0819354504, -0.1691512465, -0.0894205496, 0.0397933498, -0.0217066295, -0.0212446135, 0.2905833423, -0.1458372921, -0.1986802667, -0.0039444002, 0.2171118855, 0.0249884296, -0.026878288, 0.4546544254, 0.0391356871, -0.2004489154, -0.1107055917, -0.0656736046, -0.1949489713, -0.3671678007, 0.0676257983, -0.1261304468, 0.2908172309, -0.0520936772, 0.1441995054, -0.1442283988, -0.2928052247, -0.4800397456, -0.3269312084, 0.0093781203, 0.3258177638, -0.280508846, 0.262170583, -0.3227975667, 0.0050350954, -0.0020994821, -0.1845358163, -0.1624399573, -0.0032264863, -0.1835424453, 0.156273976, -0.0232332963, 0.1647380739, 0.2547971904, 0.1391095966, 0.07366056, 0.2579025328, 0.1300665587, 0.0020955838, -0.1449835747, 0.1856877655, 0.2747655809, -0.2417619675, 0.0295929406, -0.3140929937, -0.160740599, -0.1957337707, -0.0798052028, -0.1129503176, -0.058056809, 0.4289893508, -0.1457698047, 0.1591314375, 0.1448490918, 0.0442173742, -0.0846288949, 0.1995800436, 0.1978479773, 0.2367335558, 0.0917714164, 0.1229453534, -0.1353427768, 0.0677736402, -0.0786478594, -0.0868213326, 0.3642143309, -0.0873144343, 0.2781913579, -0.144094646, 0.5471833348, 0.55613029, -0.2130429, -0.1426015645, 0.0112105971, 0.0498202853, -0.1481562853, 0.1334323138, 0.3459514976, -0.0211181883, 0.1384411305, 0.4181964397, 0.1713575274, 0.3026443124, -0.0293256193, -0.2299720049, 0.2289812565, -0.249110952, 0.0683431625, 0.3891026676, -0.0703686327, 0.1116302907, 0.3112146556, 0.2111013532, 0.1501873732, 0.7722654343, -0.3465871811, 0.270347029, 0.1038087234, 0.0354360379, 0.2168309987, -0.2313962877, 0.0818888992, -0.0609334148, 0.1904127896, 0.1757791638, -0.1905329376, -0.0641871095, 0.0638359189, -0.0691502616, 0.0455394238, 0.135019049, -0.0058231517, 0.1154459119, -0.4323657453, -0.0867663324, -0.2894490957, -0.1967108548, 0.1177459732, -0.2334079891, 0.3510084152, 0.3415649533, -0.0260436311, -0.3121733367, -0.2193823904, -0.0184718482, 0.426181525, -0.3075575233, 0.243146196, 0.127088353, 0.155937314, 0.2344976515, 0.369458288, 0.3269563615, 0.28980425, -0.1527568102, 0.0327006429, -0.2520556152, -0.2605341971, -0.1698058844, 0.3668682575, -0.1014765203, 0.2695501745, 0.405418843, -0.0344047733, 0.0379590318, -0.2395976484, 0.1370757371, 0.0310928412, -0.526117444, 0.2978109121, -0.4013460279, 0.1759233028, 0.0550698563, -0.2596545815, -0.4107823074, -0.3042271435, 0.2304023802, -0.119258523, 0.1686790586, 0.0815382004, -0.0065241144, -0.4379999042, 0.0465222858, 0.6002642512, 0.2758283913, 0.0335941911, 0.0582374856, -0.4403101504, 0.064741239, -0.0518281423, -0.4868618846, 0.0299715791, 0.4496229887, 0.0424949639, 0.1478199065, 0.3421933055, -0.0668088719, 0.5146547556, 0.3937807977, -0.2011989802, -0.4468945265, 0.1439349353, 0.0692005157, -0.2374733388, -0.3139948249, 0.2588258088, -0.3865611851, -0.0565155856, -0.0067409347, -0.2727658451, -0.0636839643, -0.3714513779, 0.5342605114, 0.3488380313, 0.3790991008, -0.2259277254, -0.3754323721, -0.2718987465, -0.1498598605, -0.2724585533, 0.142804727, -0.0273402669, 0.5893816948, -0.1199498922, 0.2193333656, -0.1608718783, 0.0554229692, -0.0583611466, -0.0721670166, -0.3891964257, 0.4091038108, -0.1585768461, 0.1839831322, 0.055485405, 0.1762373596, 0.0906913206, 0.0537357703, -0.4579381347, -0.4856499434, 0.3974810243, -0.6038735509, -0.0913427845, 0.1756598949, -0.0733864754, 0.0460856706, 0.138117075, -0.4503603578, -0.2133243531, 0.2225141823, -0.0999365449, -0.1443073303, 0.2385377437, 0.1649243236, 0.0212946292, -0.0882299095, 0.3802639246, 0.2725198269, -0.1048977524, 0.2448086292, 0.0342579782 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
Therefore, this is not an issue, neither for Audio nor Image feature. Could you please elaborate more on the expected use case? @lhoestq @NielsRogge The expected use cases (in accordance with the specs: see #2324): - decoding should be enabled when accessing a specific item (`__getitem__`) - decoding should be disabled while iterating (`__iter__`) to allow preprocessing of non-audio/image features (like label or text, for example) using `.map` - decoding should be enabled in a `.map` only if the `.map` function accesses the audio/image feature (implemented using `LazyDict`)
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
88
Iterating over a vision dataset doesn't decode the images ## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge Therefore, this is not an issue, neither for Audio nor Image feature. Could you please elaborate more on the expected use case? @lhoestq @NielsRogge The expected use cases (in accordance with the specs: see #2324): - decoding should be enabled when accessing a specific item (`__getitem__`) - decoding should be disabled while iterating (`__iter__`) to allow preprocessing of non-audio/image features (like label or text, for example) using `.map` - decoding should be enabled in a `.map` only if the `.map` function accesses the audio/image feature (implemented using `LazyDict`)
[ -0.130967021, -0.3112417161, -0.0679310188, 0.3901095688, 0.1656422317, -0.0171957146, 0.1670644283, 0.0072897859, -0.0455675423, 0.2232476175, 0.1539147198, 0.5721437335, -0.0708791912, -0.1515946537, -0.0927556232, -0.1920374781, 0.0026815264, 0.3228372931, -0.0092045367, -0.0985440537, -0.2209010571, 0.0836702734, -0.3190726042, -0.257684648, 0.0163267627, -0.0802775025, -0.2616451681, 0.0022414224, -0.1657006592, -0.4797737598, -0.0468683504, 0.0536953993, 0.1137048528, 0.3426577747, -0.0001233709, 0.1679350883, 0.4204081297, -0.0609174073, -0.2382424921, -0.0931021571, -0.1300403625, -0.2252035737, 0.1417703182, -0.2062861472, -0.1086686328, -0.5756092668, 0.1164940819, -0.1719064713, 0.2990897894, 0.0805667117, 0.100360997, 0.0786875337, 0.0268806815, 0.5348861217, 0.1268806309, 0.2620552182, -0.191572547, 0.3795756102, -0.0819903538, 0.1523657441, -0.2265735716, 0.4234167337, -0.0407798365, 0.1625085175, 0.0459192358, 0.2566455007, -0.0618669875, -0.3925709724, -0.2108317614, -0.0704900995, 0.3844064474, -0.1287847161, -0.4892502725, -0.2948345244, -0.1134383678, -0.481684655, 0.3079330921, 0.1710928977, -0.2560332716, 0.0514436476, -0.0389756002, 0.1137613654, -0.2321758717, 0.1943759471, -0.384206146, -0.1371915638, -0.1188232228, 0.1888592243, 0.3837611973, 0.0254177283, 0.3242451847, -0.0397749655, -0.1219606772, -0.2259707749, -0.4048022628, -0.1139252335, 0.014193479, 0.0479028709, -0.1168747544, 0.0735412911, 0.0904514864, 0.0253529865, -0.1905915886, 0.1984435171, 0.3154222071, 0.0642933995, -0.217231974, 0.5264362693, 0.1674223989, 0.1824644208, -0.1531715244, -0.1240153238, -0.0570667721, -0.0841624886, 0.1249044463, -0.0331045985, 0.3717368841, -0.0632437542, -0.2747363448, -0.2811989784, -0.6601774693, -0.1651633531, -0.0173168182, 0.0598409064, 0.3070102036, 0.2883628905, 0.186751321, 0.114082709, -0.2170605361, -0.2788390219, -0.0932619646, -0.0317230858, -0.2435946614, 0.0493808426, 0.0799772143, 0.2068819851, -0.0438046195, -0.0709473416, -0.0334604643, -0.2442279458, 0.193322584, -0.4286789596, 0.7123475671, 0.266790837, -0.192430824, -0.0362608545, -0.0194886997, -0.0708546564, -0.1043719873, 0.1413102597, -0.2246702611, 0.164542824, 0.0612065271, -0.0037572964, -0.3135680854, -0.2626791894, -0.1021484435, 0.2687807679, 0.0264658406, -0.3095986545, 0.2118605822, -0.2410898656, -0.3004999459, -0.1741161942, 0.291623503, 0.3652230203, -0.5320482254, 0.2255468071, -0.0586128496, -0.2366715372, 0.2437716126, 0.3749919832, -0.1029966176, 0.097740598, -0.4363645613, 0.0781511739, 0.0998171568, -0.3840514421, -0.5683248639, 0.3204508424, 0.3181257546, 0.5090757012, 0.1046634242, 0.1833358258, 0.087178506, -0.0827101991, -0.3418696225, 0.2368037999, -0.1993416101, -0.1505278945, -0.1837530434, 0.0871356651, 0.352743119, 0.3418267071, 0.1408895701, 0.1522855908, 0.1180189326, -0.1581155211, 0.376034081, -0.1204305738, 0.1040534377, -0.0025973034, 0.1060807779, -0.1732274592, 0.4980131984, 0.0002644986, 0.0268526133, 0.226889953, 0.1645440161, -0.0981037021, -0.4163218141, 0.0076779593, 0.251190424, 0.023416372, -0.6252772212, -0.1606754959, 0.112998493, 0.4316332936, -0.121344611, 0.1060633212, -0.2688226402, 0.1635499448, -0.2945826352, -0.0449127518, -0.0863586143, 0.368950218, 0.0981355458, -0.1386189908, -0.3041937947, 0.1692068875, -0.0618771017, -0.226475969, 0.0267794635, 0.2421223223, 0.4436723292, 0.2180734873, -0.1374225616, 0.069638975, 0.3748368919, -0.7750808597, -0.0550410524, 0.1202516705, 0.0920347497, -0.0321788006, 0.1888887584, -0.0244975407, 0.1490602493, 0.4148452282, -0.0626837984, 0.0244243853, 0.0490989164, -0.050795868, -0.3914754987, -0.1951415241, 0.0535595566, -0.2931740284, 0.0838677734, -0.1047245637, -0.3040670753, 0.0470210202, 0.3915955424, -0.0683521032, 0.0310531165, -0.0119747669, -0.1522818059, 0.1544266343, 0.2524829507, 0.095965825, 0.3310519755, -0.0306927897, 0.1360143274, 0.0888773724, -0.0498918705, 0.133474499, 0.1227088869, 0.5473163724, 0.5113515854, 0.137340337, 0.1559271961, 0.0878321305, -0.4740813673, -0.4449011385, 0.0098320292, 0.0164756067, -0.0121465558, 0.4929941893, -0.4329054356, -0.6520394087, -0.1479943991, 0.301407963, -0.1000873893, -0.2661986053, -0.3282777667, 0.1593124121, 0.0421013422, 0.0042234156, -0.0764364377, 0.1281044036, 0.1698382795, -0.0609031655, -0.4357953072, -0.0834841058, -0.1008679494, -0.0573104545, 0.2620514035, -0.4720948339, 0.2961024046, -0.1642475873, -0.1843078732, -0.3008645475, -0.4247019291, 0.449849993, -0.2876507938, 0.2851576507, 0.1359600574, -0.0270000678, -0.1465897113, 0.1057954952, 0.2568154931, 0.0721544474, -0.253143847, 0.0290679447, -0.1440203637, -0.0812731087, -0.1689150035, 0.0218223371, -0.1387389749, -0.2649270296, 0.3279151022, 0.1458526701, 0.1670960784, 0.5533843637, 0.0363836773, 0.1165104061, -0.3094139099, 0.0389368385, -0.063169755, 0.0932511687, 0.0919587463, -0.0540025607, -0.3187605143, 0.0787419155, -0.131671831, 0.3096337616, 0.2529428005, -0.5129867196, -0.1434839964, -0.1662821919, -0.032554552, -0.1769920737, -0.0939171687, -0.0785917416, -0.0139195351, 0.0647692159, -0.2802662253, -0.11210493, 0.0199059714, 0.2165014297, 0.3581591249, 0.3518362343, 0.1820649207, 0.431789875, 0.348210007, 0.4034549594, -0.1325006187, 0.5520018339, -0.3079080284, 0.2670599818, 0.0216828436, -0.2070575655, 0.1616761237, -0.0652965754, -0.2261329144, 0.0267190952, -0.1979747415, -0.5360528827, -0.1893571764, -0.0186215769, -0.3823374212, -0.3363659382, -0.0187008213, -0.1578663737, 0.1067885682, -0.1572893262, 0.2636756301, 0.1527353078, -0.034615349, 0.081400618, 0.2589644194, 0.3334906101, 0.0143856108, -0.1999922246, -0.540375948, -0.0517742224, -0.1597676128, 0.083954744, 0.7181680202, 0.0175072178, -0.1302343011, 0.3291839659, -0.2055332214, 0.8995994925, -0.1983639598, -0.0361003168, 0.050403066, -0.224960357, -0.0252600946, -0.0472801775, -0.3051517904, 0.1087140068, -0.0224052891, 0.2572031617, -0.1143842414, -0.1355796009, 0.366076529, 0.2172372639, -0.0319232866, -0.2569074035, -0.3807778955, -0.2283294052, -0.2476781011, -0.1148816198, -0.0109806377, 0.016998902, -0.0681270733, 0.040002808, -0.1950017363, -0.0322408602, 0.0655336678, 0.1971148849, 0.3134975135, -0.1107395813, 0.1159470826, 0.5330931544, 0.2889648378, 0.223583445, 0.6909873486, 0.3143154085, -0.3173937201, 0.2475715727, -0.0793131664, 0.3438534439, 0.3404995203, -0.3511847258, -0.1787528843, 0.0445733778, -0.0976145566, -0.5363287926, 0.0287004597, 0.6061473489, -0.0656754076, -0.269364506, -0.184210524, 0.4654136896, 0.1364588141, 0.044704508, 0.3552941978, 0.2144855559, -0.1470849663, 0.4261947274, 0.2568687797, 0.8632680774, 0.0715795532, 0.2226274163, 0.3937155306, 0.3275083601, 0.3475939929, 0.2872909606, 0.4667754769, -0.1021240503, -0.307615757, -0.0880883709, -0.0857927725, 0.3004710972, -0.2249508202, -0.2461003959, 0.0657689795, 0.2742139399, 0.0413887501, 0.2367129326, 0.0584487021, -0.1530435681, -0.0101529341, 0.1755407006, 0.069386512, 0.0406331196, 0.1669332683, 0.0151082054, -0.2583526075, -0.0421928875, -0.0151030878, -0.0963878483, 0.2680585384, -0.1853652894, 0.0000265311, -0.1132238805, -0.3893577158, 0.0735409558, 0.1258302927, -0.0243333653, -0.2282154262, -0.172900334, 0.1756500453, 0.1291519552, -0.0647061914, 0.1256804466, -0.2473389804, 0.3660989106, 0.0533243343, -0.1465087086, -0.1443416625, 0.1033943817, -0.0983706862, -0.0993449837, 0.1277191341, 0.0142275328, 0.0382014364, 0.1278921813, -0.0740246102, -0.2239023894, -0.0789614022, 0.0456682853, -0.0009817256, -0.0691663027, 0.3197484314, -0.1430332065, -0.2195588946, -0.00952625, 0.203554064, -0.0270920824, -0.0557727553, 0.4317410588, 0.0929111764, -0.1561694741, -0.1336538494, -0.0864098817, -0.1897025853, -0.3807611465, 0.1114041954, -0.0827759057, 0.3107396066, 0.0170797892, 0.2302318066, -0.1104853973, -0.3222617805, -0.422244519, -0.3125150502, 0.0372631885, 0.2918496132, -0.2785657942, 0.317935735, -0.2246940434, 0.0076521435, -0.036071226, -0.1839355528, -0.1794008017, 0.0268343408, -0.1824742556, 0.1433538646, -0.0469312444, 0.1443790942, 0.275080651, 0.1413549632, 0.1043722928, 0.3100786507, 0.1244903505, -0.027354626, -0.1965951025, 0.1605470926, 0.2653038204, -0.240943715, 0.047792837, -0.3214529753, -0.1630676687, -0.2080530822, -0.0553632937, -0.1404560804, -0.0693318099, 0.4138033986, -0.0493111424, 0.1593073905, 0.2068995684, -0.0014134685, -0.0861741155, 0.2530426979, 0.2060502917, 0.2895905674, 0.0370677412, 0.0794369653, -0.0307612568, 0.0675847456, -0.0533118136, -0.0591507703, 0.4264465272, -0.1440194249, 0.215588659, -0.1400168687, 0.6390118599, 0.5011706948, -0.2375453413, -0.1839343905, 0.0062159598, 0.0696747452, -0.1608941704, 0.1405792832, 0.3767567277, 0.0367194489, 0.0812577456, 0.4268703163, 0.142248854, 0.2997747064, -0.0672030747, -0.1773047149, 0.2326812744, -0.2373359501, 0.0458685532, 0.3312296271, -0.1161487252, 0.0973993316, 0.3247205615, 0.2355757505, 0.1622643769, 0.8625944257, -0.314960897, 0.2936847508, 0.0131962113, 0.0509815216, 0.1151472405, -0.2535235584, 0.2200835198, -0.1070633233, 0.1756258607, 0.240962863, -0.2064534128, -0.0031152586, 0.09854009, -0.0697076544, -0.0489221588, 0.1814535707, -0.0356776044, 0.1770286262, -0.5072074533, -0.0800051242, -0.2156064808, -0.1618539542, 0.1110971123, -0.3152384758, 0.3282171786, 0.380900085, 0.0125833545, -0.3085081577, -0.2356847525, -0.075685069, 0.4390505254, -0.3330413103, 0.2723287642, 0.16027008, 0.1112895012, 0.2031654418, 0.2969472706, 0.3094252944, 0.2748714089, -0.165440917, 0.033121787, -0.301055342, -0.2518488169, -0.2094501257, 0.3675798476, -0.0843819678, 0.1835942417, 0.4402915239, -0.0221643262, 0.0149395196, -0.2512243092, 0.0986316577, 0.0630409867, -0.460242033, 0.3270843029, -0.3363494277, 0.2018114924, 0.0353011079, -0.1966687143, -0.4035217166, -0.300640583, 0.2373409122, -0.1244076565, 0.1497048289, 0.0404137261, -0.0005641516, -0.4029831886, 0.1164514348, 0.5308793783, 0.3242543042, -0.0387048461, 0.0783916712, -0.4041387737, 0.1067453027, -0.1110310927, -0.5302609205, 0.012945693, 0.4356043935, 0.0453663543, 0.1217581704, 0.382800132, -0.023909213, 0.538779676, 0.3728661239, -0.1756612957, -0.4579075575, 0.1255058497, 0.0218398906, -0.1902056485, -0.3377003074, 0.242435053, -0.4015504718, -0.0162636545, -0.022616297, -0.2934876382, -0.0129622994, -0.3901019096, 0.5379945636, 0.315277487, 0.3832104504, -0.1741882712, -0.3853627443, -0.3113001585, -0.1732869297, -0.3075484037, 0.1454861611, -0.0397536233, 0.5908696055, -0.1414128691, 0.1418310255, -0.2114929557, -0.0158021599, 0.0335142352, -0.0889115855, -0.3709399402, 0.4453470111, -0.1599287093, 0.2105256915, 0.0347811654, 0.256300211, 0.1083078384, 0.0985867232, -0.4140910804, -0.458116889, 0.4155007601, -0.6476979256, -0.0903268158, 0.2063642442, -0.1132387593, 0.0286969859, 0.1209206581, -0.3812595308, -0.1969447583, 0.2461953312, -0.0969004259, -0.1564538926, 0.2454219311, 0.2007723004, 0.0415209942, -0.1039747596, 0.3664546907, 0.2574994266, -0.1580649465, 0.211604327, -0.0082616378 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
For me it's not an issue, actually. I just (mistakenly) tried to iterate over a PyTorch Dataset instead of a PyTorch DataLoader, i.e. I did this: `batch = next(iter(train_ds)) ` whereas I actually wanted to do `batch = next(iter(train_dataloader))` and then it turned out that in the first case, the image was a string of bytes rather than a Pillow image, hence Quentin opened an issue.
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
66
Iterating over a vision dataset doesn't decode the images ## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge For me it's not an issue, actually. I just (mistakenly) tried to iterate over a PyTorch Dataset instead of a PyTorch DataLoader, i.e. I did this: `batch = next(iter(train_ds)) ` whereas I actually wanted to do `batch = next(iter(train_dataloader))` and then it turned out that in the first case, the image was a string of bytes rather than a Pillow image, hence Quentin opened an issue.
[ -0.087873362, -0.309632659, -0.0400017574, 0.3918700814, 0.1334655285, -0.0821136907, 0.1896429658, 0.0339636281, 0.0456691384, 0.2231494039, 0.1672267914, 0.5336773992, -0.0977951139, -0.1827502549, -0.042795606, -0.1867164522, -0.0286199581, 0.2891237438, -0.031148402, -0.0773725808, -0.1957765222, 0.0315752253, -0.263537854, -0.2707318068, 0.0007089632, -0.0261419639, -0.2875036001, -0.0103440154, -0.147034049, -0.4633406103, 0.0448571406, 0.0660749823, 0.182894811, 0.3788693845, -0.0001244723, 0.1929389536, 0.4055195153, -0.0527810827, -0.282052815, -0.0384094007, -0.0196682364, -0.2608053684, 0.1749287993, -0.228438139, -0.1008384824, -0.6216959953, 0.1086752787, -0.221327439, 0.2153070718, 0.0831180289, 0.0939755887, 0.1570033431, -0.0289740432, 0.505520165, 0.1235689744, 0.2154961973, -0.198895514, 0.4084229469, 0.0479845367, 0.1016619802, -0.3335598707, 0.3707703948, -0.0758276209, 0.2041995525, 0.1035410017, 0.2142032236, -0.0377000012, -0.3779366016, -0.2750449777, -0.063777782, 0.273881793, -0.1113053486, -0.4553214908, -0.3406581879, -0.1492069364, -0.4248563349, 0.2960885763, 0.107201919, -0.2506220341, 0.0054068365, -0.0038841532, 0.1186373085, -0.2856169343, 0.252608031, -0.3819334507, -0.0532801151, -0.0363027751, 0.1724628359, 0.381061703, 0.0611831918, 0.4723158181, -0.0358593017, -0.121466428, -0.24405545, -0.3798343539, -0.0791010857, 0.0279801302, -0.0230475217, -0.1205054969, 0.0869494081, 0.1496712267, 0.0158303864, -0.0931316689, 0.1723005176, 0.3186182678, 0.1097849384, -0.2536129057, 0.5824269056, 0.1288351417, 0.1366135925, -0.1118729487, -0.0614526719, -0.0408871248, -0.1830235273, 0.2101133615, 0.0224942919, 0.3571397364, -0.0294041038, -0.2095262557, -0.2825668156, -0.7051032782, -0.1227431744, 0.0210521594, -0.001540904, 0.2765550613, 0.2614837885, 0.2368800789, 0.1107280031, -0.2681061625, -0.2635683417, -0.090957813, -0.0522143207, -0.2132706344, 0.0430394113, 0.1634560823, 0.2075078338, -0.0834219754, -0.0224966444, 0.1048789471, -0.2499861568, 0.1869224757, -0.3640165329, 0.7249734998, 0.2837800682, -0.2336752117, -0.0662017837, -0.0033201035, -0.0324587822, -0.0849183053, 0.2240937501, -0.2500439584, 0.1385760605, -0.0095635448, -0.0091606574, -0.3609266877, -0.305218339, -0.0690893829, 0.2010337412, 0.061817009, -0.2876731157, 0.2293560207, -0.3440268934, -0.1905535311, -0.1361829638, 0.2468261868, 0.297362268, -0.5268827677, 0.1514053792, 0.0009574183, -0.2127981484, 0.3428064287, 0.4085381925, -0.1592552662, 0.1403373182, -0.4379438758, 0.0744840801, 0.0676316321, -0.3187302053, -0.5857684612, 0.3498163223, 0.2607489526, 0.5002267361, 0.1170066074, 0.2477400154, 0.133759737, -0.0328990258, -0.2950570285, 0.2258386165, -0.1808551401, -0.1341838539, -0.2003589123, 0.0760047883, 0.45461905, 0.3528382778, 0.2399784178, 0.1707792282, 0.0537508167, -0.1410191357, 0.3842095435, -0.2008415312, 0.069026351, 0.0195985697, 0.0491265208, -0.1346081793, 0.5177261233, -0.0173560623, -0.0205113199, 0.2682201564, 0.0748404041, -0.0413057208, -0.4080239534, 0.0724141747, 0.2838977575, 0.069451876, -0.6171795726, -0.163538456, 0.0882106572, 0.3656786382, -0.1373342127, -0.0448757671, -0.255223453, 0.1736798882, -0.3069899678, -0.0621545203, -0.0867497399, 0.3566475809, 0.0766239911, -0.1647554934, -0.3696188629, 0.1613253951, -0.072241582, -0.2446297556, 0.0004947295, 0.1747194678, 0.4015969932, 0.1404506713, -0.2013044059, 0.0129952552, 0.3658570349, -0.7169277072, -0.1114289612, 0.1751359403, 0.0030073295, -0.0588647835, 0.2435588241, -0.0184274036, 0.1275472492, 0.4802014232, -0.0975904018, 0.0225526504, 0.0579183176, -0.0747412518, -0.3947718143, -0.1594983786, 0.1926433742, -0.2450578809, 0.067361474, -0.0886724517, -0.2355223149, 0.0305501372, 0.3042597771, -0.0796728507, 0.0107243881, -0.0115540307, -0.1643079817, 0.1638547331, 0.2252745628, 0.0984578505, 0.2718270123, -0.0431727208, 0.1399520636, 0.0406640731, -0.1195521057, 0.1051956043, 0.0382868126, 0.576998055, 0.5054657459, 0.1072189882, 0.1574975848, 0.1048092842, -0.4390024543, -0.411706239, 0.0112967035, 0.0767567828, -0.0361304134, 0.6062255502, -0.4511971176, -0.6237024069, -0.1048389748, 0.2462697178, -0.1777424961, -0.2944358587, -0.3359279335, 0.1851854622, 0.049490463, 0.0028171006, -0.1385549009, 0.1041713879, 0.1629294157, -0.19577986, -0.3997069001, -0.1297774911, -0.1413851678, -0.0776636675, 0.2794953585, -0.5620765686, 0.2890906036, -0.127920717, -0.1836533546, -0.3642742336, -0.3823759854, 0.432721287, -0.2421465665, 0.225205034, 0.0912265033, 0.0143859023, -0.0683113635, 0.10217271, 0.2394055128, 0.0183783323, -0.2515061498, 0.0955789909, -0.1501940042, -0.0447524488, -0.164933145, 0.0547348037, -0.1141078174, -0.2045221627, 0.2308683097, 0.1901366562, 0.1518035531, 0.5521469712, 0.0836068466, 0.1140304506, -0.2334966063, -0.0155712366, -0.0284492206, 0.0917700902, 0.14025262, -0.0764745921, -0.2969589829, 0.0077440934, -0.1293492764, 0.271453619, 0.3083682656, -0.5498195291, -0.1633279771, -0.1945909262, 0.0177644435, -0.1889932454, -0.1816183776, -0.0237385556, 0.0215867255, 0.0888962299, -0.2221959531, -0.0718506128, 0.0456667729, 0.232409507, 0.3779267073, 0.2438490391, 0.1224702746, 0.4003370702, 0.4336366355, 0.2888171673, -0.1816262752, 0.4989641607, -0.3595417142, 0.2170032859, 0.0421871096, -0.2785227001, 0.1677436978, -0.1488568187, -0.2130137831, 0.0092860106, -0.2441513538, -0.5605190396, -0.1677443832, 0.0476075895, -0.3279673457, -0.3618743718, 0.0660143048, -0.1849810332, 0.0969412774, -0.1846576333, 0.2754905224, 0.0209151115, -0.0631350726, 0.0779346302, 0.2267412841, 0.2905391753, 0.0452739224, -0.1741928607, -0.5022922754, -0.0824228972, -0.1295826882, 0.0897807851, 0.7043465376, 0.0487511344, -0.1598088592, 0.3189599514, -0.219988212, 0.9066260457, -0.0364171118, -0.0278162248, 0.1023027226, -0.2289320976, -0.0454646312, -0.0913439915, -0.3221133947, 0.1895221025, 0.0190429837, 0.2285209745, -0.1131244004, -0.1087395921, 0.348426044, 0.2514283955, -0.0939248949, -0.2893360853, -0.4164366722, -0.2535595298, -0.2317442447, -0.1654107124, 0.064570643, 0.0839994699, -0.0606323704, 0.0767230764, -0.2304537296, -0.0707537606, 0.0734304488, 0.2053640932, 0.231143102, -0.1062567085, 0.0367802046, 0.5656532049, 0.3579335511, 0.2275451869, 0.6420114636, 0.2979490161, -0.3840178251, 0.2834604681, -0.0348580293, 0.3142948151, 0.3465054035, -0.3233632445, -0.1516917348, 0.1265853494, -0.05390976, -0.5226315856, 0.0690050572, 0.6111767292, -0.088408865, -0.30154109, -0.191898331, 0.4512087405, 0.1435943395, 0.062598221, 0.3566797972, 0.1909139454, -0.1325983852, 0.3744034469, 0.3229037821, 0.8596082926, 0.0036298244, 0.300611496, 0.4275903404, 0.3655388951, 0.4402054846, 0.2981856167, 0.5329471231, -0.1060322523, -0.312248379, -0.0821413845, -0.136119023, 0.2936088145, -0.2531017065, -0.1399666816, 0.0688001961, 0.2377956361, 0.0370299071, 0.2628625631, 0.0778856203, -0.1012184098, -0.0535362922, 0.2778910697, 0.0666270629, -0.0524191298, 0.2302429825, -0.0339770615, -0.2455306351, -0.0646149293, 0.0325550921, -0.1269944757, 0.3189571798, -0.2417365015, 0.0195738915, -0.0885964632, -0.4727147818, 0.0173541214, 0.1109397858, -0.020768676, -0.2784694731, -0.1721484065, 0.1520873457, 0.1255222559, -0.0887046009, 0.1663024575, -0.2695926726, 0.3380713165, 0.0671961382, -0.1179292724, -0.1443008929, 0.1018880382, -0.245217517, -0.0661948323, 0.1548226923, 0.0324223191, 0.0479997657, 0.1585711539, -0.1128376871, -0.1801508516, -0.0832930878, 0.0305898413, 0.0046126256, -0.0097241709, 0.2191173881, -0.1128794923, -0.3135000765, -0.0021575997, 0.1882419288, 0.0218635332, -0.1372264922, 0.5098572969, 0.1445855498, -0.1327932626, -0.1101699173, -0.103157565, -0.1814627945, -0.4057205915, 0.1135309041, -0.0746049955, 0.2965260148, -0.0668943897, 0.2039791942, -0.0557238236, -0.3297877014, -0.4397447407, -0.264472872, -0.050820969, 0.2248644233, -0.2184342146, 0.2903894484, -0.1744111478, 0.0525830872, -0.0796867684, -0.1499712169, -0.1583941877, -0.042092178, -0.1308211088, 0.0708609074, -0.0536521003, 0.1139582098, 0.2658956945, 0.1019965112, 0.0742479265, 0.2851573825, 0.2148010731, -0.0309708379, -0.2562137246, 0.1536247283, 0.2676153183, -0.2180155516, 0.0172967315, -0.3931859136, -0.0777229518, -0.2078054696, -0.0772108808, -0.071264863, -0.0204419736, 0.43154338, 0.0417864546, 0.1703394353, 0.1523139477, 0.0077424762, -0.0513949282, 0.3237400651, 0.224528566, 0.2703551054, 0.1017393321, 0.0743092, -0.0479764678, 0.0688303635, -0.0390925072, 0.0131399902, 0.3659219444, -0.1917992383, 0.2580169439, -0.2156977803, 0.5725077987, 0.5158167481, -0.2284672111, -0.2125162184, 0.0278191455, 0.037704505, -0.1471573412, 0.0708577856, 0.3678483367, 0.0582312234, 0.0921260491, 0.4404525161, 0.0349494293, 0.3412452936, -0.0131778801, -0.1696069837, 0.1841154397, -0.1691342741, 0.0334065929, 0.32213673, -0.1536371261, 0.0587892868, 0.3804958761, 0.2201663405, 0.1661561877, 0.7988941073, -0.2805535197, 0.3090990484, 0.0424544178, 0.0156022599, 0.0901802778, -0.1925840229, 0.1193043217, -0.1751396954, 0.159951821, 0.2637042999, -0.1958241165, -0.0050169481, 0.0216991901, -0.0669180974, -0.0602031164, 0.1639363617, -0.053550519, 0.1910004765, -0.4882566631, -0.0595213026, -0.1758684665, -0.1913478673, 0.0838081986, -0.3518158495, 0.2459837943, 0.3768725097, -0.0571147054, -0.3099441826, -0.2380271405, -0.070675239, 0.3682785928, -0.2901048362, 0.2483191341, 0.1754892766, 0.103304863, 0.1928992271, 0.2556161582, 0.2919609249, 0.280946672, -0.2500566244, 0.0175863579, -0.2687200904, -0.2218285501, -0.2498053461, 0.3013111055, -0.1017472744, 0.1014271677, 0.467407465, -0.0345392674, 0.0117222695, -0.2114882022, 0.0933875814, 0.0943854153, -0.3628558815, 0.4559419751, -0.2880602479, 0.144826889, 0.0544120632, -0.1873761714, -0.3899084628, -0.2702045739, 0.2708388567, -0.1105638146, 0.1720326841, 0.0651185289, -0.0041034566, -0.3436915278, 0.2838141322, 0.5350256562, 0.3708789051, -0.1033844575, 0.1680026352, -0.4073480368, 0.1882532835, -0.2554360926, -0.4640431702, -0.0184384845, 0.3894449174, 0.0937184319, 0.1476539969, 0.4120789766, -0.036131002, 0.5126549602, 0.3076190054, -0.1607961506, -0.5010874867, 0.1106278226, 0.0806993097, -0.1826825142, -0.3364553154, 0.2502533197, -0.3772669435, 0.0032807714, -0.0103461882, -0.3491882682, 0.0684277862, -0.3523541987, 0.517701745, 0.310395658, 0.4183123708, -0.1189486608, -0.3723389506, -0.2938469052, -0.1848509312, -0.3444241583, 0.1918986887, -0.0412238762, 0.5089270473, -0.1492952108, 0.1123853102, -0.301754117, 0.0458797328, 0.0200324915, -0.157946676, -0.404219985, 0.4609804749, -0.103438668, 0.2155228704, 0.0273741614, 0.2818512619, 0.0798492208, 0.1263950467, -0.3953909576, -0.4039262533, 0.4307262897, -0.6954956651, -0.1306863576, 0.2122146338, -0.128201291, 0.0047815396, 0.1878951043, -0.3090668023, -0.169971332, 0.2563763559, -0.1091491506, -0.1390731484, 0.2034551054, 0.1718716025, 0.0919340849, -0.1263165176, 0.4496631324, 0.2740582228, -0.1353550404, 0.1429837346, -0.0084564434 ]