Dataset Preview Go to dataset viewer
html_url (string)title (string)comments (string)body (string)comment_length (int)text (string)embeddings (json)
https://github.com/huggingface/datasets/issues/2945
Protect master branch
Cool, I think we can do both :)
After accidental merge commit (91c55355b634d0dc73350a7ddee1a6776dbbdd69) into `datasets` master branch, all commits present in the feature branch were permanently added to `datasets` master branch history, as e.g.: - 00cc036fea7c7745cfe722360036ed306796a3f2 - 13ae8c98602bbad8197de3b9b425f4c78f582af1 - ... I propose to protect our master branch, so that we avoid we can accidentally make this kind of mistakes in the future: - [x] For Pull Requests using GitHub, allow only squash merging, so that only a single commit per Pull Request is merged into the master branch - Currently, simple merge commits are already disabled - I propose to disable rebase merging as well - ~~Protect the master branch from direct pushes (to avoid accidentally pushing of merge commits)~~ - ~~This protection would reject direct pushes to master branch~~ - ~~If so, for each release (when we need to commit directly to the master branch), we should previously disable the protection and re-enable it again after the release~~ - [x] Protect the master branch only from direct pushing of **merge commits** - GitHub offers the possibility to protect the master branch only from merge commits (which are the ones that introduce all the commits from the feature branch into the master branch). - No need to disable/re-enable this protection on each release This purpose of this Issue is to open a discussion about this problem and to agree in a solution.
8
Protect master branch After accidental merge commit (91c55355b634d0dc73350a7ddee1a6776dbbdd69) into `datasets` master branch, all commits present in the feature branch were permanently added to `datasets` master branch history, as e.g.: - 00cc036fea7c7745cfe722360036ed306796a3f2 - 13ae8c98602bbad8197de3b9b425f4c78f582af1 - ... I propose to protect our master branch, so that we avoid we can accidentally make this kind of mistakes in the future: - [x] For Pull Requests using GitHub, allow only squash merging, so that only a single commit per Pull Request is merged into the master branch - Currently, simple merge commits are already disabled - I propose to disable rebase merging as well - ~~Protect the master branch from direct pushes (to avoid accidentally pushing of merge commits)~~ - ~~This protection would reject direct pushes to master branch~~ - ~~If so, for each release (when we need to commit directly to the master branch), we should previously disable the protection and re-enable it again after the release~~ - [x] Protect the master branch only from direct pushing of **merge commits** - GitHub offers the possibility to protect the master branch only from merge commits (which are the ones that introduce all the commits from the feature branch into the master branch). - No need to disable/re-enable this protection on each release This purpose of this Issue is to open a discussion about this problem and to agree in a solution. Cool, I think we can do both :)
[ -0.2390099317, -0.0966292247, -0.0759872422, -0.0984264985, -0.0993319154, -0.114640519, 0.0078532966, 0.239554435, -0.029255297, -0.0760675296, 0.3045841157, -0.0697917044, -0.1556909084, 0.2472542524, -0.0918809772, 0.2528043091, 0.1680651754, 0.000099914, -0.099873215, 0.0868200585, -0.0079817604, -0.1016465425, 0.1242587939, 0.0464673564, -0.2174060941, 0.0417824537, 0.0499481186, 0.1391150504, -0.4184132516, -0.4594882727, 0.1383522302, 0.1707512289, 0.0033366256, 0.5652734041, -0.0001042576, 0.0216173306, 0.2390211523, 0.0108919349, -0.1405786723, -0.1769673228, -0.5225075483, -0.4049667418, -0.1415199637, 0.0287014097, 0.0748746395, 0.06865637, -0.0910198018, 0.002452912, 0.3400871456, 0.0976495519, 0.2408002317, -0.1941754073, 0.1793913692, -0.0078934981, 0.3311534822, 0.5539640784, -0.0518133156, 0.22529535, 0.0045611048, -0.0102421539, 0.1125852838, 0.2086250186, -0.0837501734, -0.2613006532, 0.2912853956, -0.1761568338, 0.5298508406, -0.3999355435, -0.1809146106, -0.1078854129, 0.0704470351, -0.201073736, -0.3955834508, -0.2669799924, -0.1179080084, -0.0097809853, 0.0528227128, 0.2314448655, -0.0157607514, 0.0743468106, -0.3007844985, -0.3514812589, 0.0444366112, 0.0477003977, 0.10768985, -0.1619907767, 0.0425621495, -0.0867641419, 0.3245029449, 0.0032727672, -0.1678859442, -0.2417692542, -0.3024554849, -0.0731806457, -0.1582976431, -0.166840598, -0.2660009265, -0.3856663704, 0.4048146307, 0.3533258736, -0.360022366, -0.049508784, 0.002726417, -0.0647690669, 0.2959358394, 0.0719453767, 0.011164953, 0.0792105719, 0.5598432422, 0.3058459461, 0.0217627417, 0.3349214792, 0.3275439441, -0.0626471415, 0.0689635947, 0.5172939301, 0.5336612463, -0.2621914148, 0.0377011895, 0.1680787653, -0.3323733509, -0.3190573454, 0.0054372335, -0.0610207208, 0.0830994621, 0.0703226849, -0.1091590971, 0.0525613427, 0.1415696889, -0.0016033769, -0.3210552037, -0.1457319856, -0.3556134701, -0.0552582555, 0.1311259568, -0.4680353403, 0.0908330008, 0.4519638121, -0.1013908461, -0.2686688304, 0.0358462371, 0.1716575772, 0.0330468714, 0.2908923328, -0.1433112174, -0.3825237751, 0.2031245977, 0.0965870917, -0.0456247479, 0.2545187175, -0.1935967952, -0.2513652146, -0.1866476983, 0.3089985549, -0.1121701747, 0.3287965655, -0.548268497, 0.0025912365, 0.0102211721, 0.3561609685, 0.4972600937, 0.385391444, 0.2942132354, -0.1614470184, 0.0424310081, 0.1232627109, 0.3384101689, -0.0511925742, -0.0100153778, -0.2738169432, 0.1200275049, 0.2083038092, -0.2946696877, -0.0103482995, -0.0507854298, -0.1232980564, 0.0196767803, -0.048742909, -0.204722017, -0.0717563778, -0.4525829852, -0.0241770819, -0.0117112603, 0.0191363525, 0.1543500572, -0.3124671876, -0.0787971914, 0.1779266298, -0.182664752, 0.1171256378, -0.3127051294, -0.6241436601, -0.1159733236, -0.0647230893, 0.1302614063, 0.1962026656, 0.3260959387, 0.0762788281, 0.0484594442, -0.1529644579, -0.0238246322, 0.1797253937, 0.3943619728, -0.1591625661, -0.2575499117, 0.0904227868, -0.3276287019, 0.0429003425, -0.0230592508, -0.0326709487, 0.0328225382, -0.4201252162, 0.2604811192, -0.0395855084, -0.089378275, -0.1092364043, 0.2325994372, 0.0994815007, -0.2429064363, -0.2273789346, -0.1815333217, 0.2851662338, -0.242647782, 0.2751372755, 0.099704735, 0.0815574303, -0.1571651399, -0.0062341182, -0.0228314847, 0.3285116851, 0.1736403704, -0.0701381266, -0.04674327, 0.1801669151, -0.0945321396, 0.1870126128, 0.1769949794, 0.4175725579, 0.3424830437, -0.1347359419, -0.0105623221, -0.1067967415, -0.1460241973, 0.022494385, -0.2684330642, 0.2932992876, 0.0991126224, -0.2107091695, -0.249318257, -0.0687692985, -0.1965132803, -0.265663594, -0.1541765183, 0.0057348073, -0.1855473518, 0.1418430507, -0.2901535332, 0.2540666461, -0.2189239413, 0.1275674105, 0.0980846509, -0.201123789, -0.0243991297, 0.0869311392, -0.0290957168, -0.057731878, 0.100935325, 0.3220874071, 0.0902120993, 0.183042407, -0.0160376783, 0.0336617008, 0.2433368862, -0.0592605695, 0.362724781, 0.1478046626, -0.0405387431, 0.0476890579, 0.3128943741, 0.1199872941, 0.0844289884, 0.3880383074, -0.0403469466, 0.1266814917, -0.2439862639, -0.0744038522, -0.2096193433, -0.5341181755, 0.1785611957, -0.1322654784, -0.311395973, -0.0278486367, -0.053532742, 0.1170226783, -0.4517551064, 0.1408915371, 0.2340205312, 0.2509391308, -0.3069441617, -0.0698819757, 0.1471458375, -0.0289604329, 0.0071960338, 0.1242603362, 0.4291484952, -0.2824301422, 0.4524761438, 0.2389160544, -0.1856772155, -0.4897386432, -0.4018841088, 0.0115547851, -0.1668282598, -0.1153612956, 0.0861761943, -0.0717044175, 0.1023176908, -0.401612252, -0.3951958418, 0.0295078922, -0.3599407971, -0.1393553913, 0.0470686667, 0.1184691191, -0.2150190026, -0.0969456658, -0.2935731709, -0.2871156633, 0.5013284087, -0.0580234416, 0.0385896452, 0.0112076271, -0.2732456625, -0.1094526052, 0.1394193172, 0.0409913287, -0.0648903027, -0.3088234365, -0.0299696531, 0.0454311818, -0.0143893873, 0.368963629, 0.2126246095, -0.3675787747, 0.0550749078, -0.350450635, -0.1397126317, -0.0122180469, 0.4691388905, 0.256077528, -0.1587453038, 0.0662926659, 0.0626281053, -0.1768465936, 0.1262467802, -0.1262247413, 0.1179754212, 0.3565621078, 0.3317129016, -0.0136891427, 0.1207261309, 0.0874625519, 0.6525163054, 0.3680907488, -0.0682478175, 0.1437117904, 0.2640963793, 0.0372981504, 0.0415912867, -0.2894337177, 0.0679146126, -0.0695572942, -0.0514505655, 0.0428000949, -0.1358909458, -0.1156823337, -0.0192327965, -0.4392817616, 0.0292560495, -0.4280707836, -0.212833792, -0.3319002986, 0.1305010617, -0.0154377855, -0.4608305693, 0.1475661546, -0.0283782165, 0.2772078216, 0.2418593913, 0.1750047207, 0.1717233062, 0.0286009591, -0.0267298147, -0.143258512, -0.0784367099, -0.0277465973, 0.2193704545, 0.0662960187, -0.120667249, 0.0654256046, 0.0472218953, 0.401168257, -0.0122205056, 0.1574847549, -0.2568204701, -0.3890761137, 0.6179253459, -0.2597557604, 0.1685838103, 0.3741835654, 0.5948965549, 0.4432282746, -0.3229280412, -0.1968980581, 0.2175525427, -0.0058352049, 0.1632378548, 0.1841427237, 0.0639553592, 0.2376962006, -0.4858786464, 0.2991431355, 0.2369734645, -0.2511768043, -0.0432059951, -0.0785255134, -0.1137046441, 0.0831007659, -0.0332846567, -0.2697017193, 0.0042523337, -0.0428405702, 0.1484801471, 0.103806518, 0.1191856787, 0.3641275465, 0.5810796022, 0.2270472646, -0.4135166109, -0.0292455852, -0.1834749579, -0.0771063045, 0.3103395998, 0.1818852574, 0.2265654951, 0.0643974394, 0.2080049366, -0.1813084334, -0.2263067961, -0.2212891281, 0.0309540853, -0.2094345242, -0.0052669551, 0.1052183583, 0.0515394434, -0.0904067382, 0.0824889988, 0.0987536013, -0.3212070465, 0.1318824291, 0.5714728832, 0.955177784, 0.3502957225, 0.1090738475, -0.2922923863, -0.2720266581, 0.3813621998, -0.357526511, -0.1286929101, -0.3113082349, -0.1811920255, -0.1677663922, -0.3074550629, -0.0780642331, -0.4934645891, -0.3175655603, 0.1523682475, -0.1961845458, 0.5375774503, 0.0177650489, 0.1167705655, 0.1282786429, -0.038145341, 0.2970950305, 0.1892168671, 0.0111535219, 0.1593013853, -0.0028083171, -0.4545554519, -0.0279463418, 0.0025342032, -0.4306589961, 0.0386116318, -0.3405902982, 0.0399823673, -0.2339083552, -0.2824401855, 0.1117530316, -0.1104251817, 0.6192416549, 0.2143154591, -0.0984719917, -0.0485647954, 0.2703552842, 0.3980438113, -0.197127685, -0.196609512, 0.5138126016, -0.2046020627, -0.1562071592, -0.0987637788, -0.0285022315, -0.3348375857, -0.2822057903, -0.0767591447, -0.3614266813, 0.0732668266, -0.0306378119, 0.2732182145, -0.0691128522, -0.1619696319, 0.1780715436, 0.111415118, -0.1410685033, -0.1422604918, -0.1091866344, -0.2943277955, -0.0380600765, 0.1902545691, 0.2271509767, -0.1096624061, -0.0836395845, 0.0573430769, -0.1975595355, -0.2153514922, -0.2259288728, 0.1200701594, -0.1281341463, 0.0691441, -0.4934980571, -0.3398421407, 0.1174373701, 0.1943581998, 0.2834068835, 0.3471649885, 0.07340087, -0.165871352, -0.2640971243, 0.2091121227, -0.3319115043, 0.1677211374, 0.0679885969, 0.2423418313, -0.0730114356, 0.0273042507, -0.3893203735, 0.1249633506, -0.1246866807, -0.0371800624, -0.1938935816, -0.076455161, 0.002154053, -0.4198532403, 0.0430044867, 0.0236390047, -0.1842414141, -0.2793491185, 0.0818327814, 0.0688198656, 0.0645905882, 0.0382995978, -0.0577248856, -0.1069227234, 0.1288665682, 0.3231302798, 0.2298199683, -0.0998132899, 0.1544985622, -0.0540686958, 0.1755025834, 0.0916104764, -0.0348069631, 0.1178810969, -0.012650379, -0.2803532481, -0.1100896522, 0.3647060692, -0.1755682975, -0.1734805107, -0.3497366011, 0.1640637666, 0.0974830911, 0.6140381098, 0.110363245, 0.1082694158, -0.4196391404, 0.2307030708, -0.0214151721, -0.0301906541, -0.1783225387, -0.1215486825, -0.0753639936, 0.2950595319, -0.0994521976, -0.3054563999, 0.2349793315, 0.1782335341, 0.0241322219, 0.0836851299, 0.5049234629, 0.1231228486, -0.2381349504, 0.4243248105, 0.2228861451, -0.1286406517, 0.455909878, 0.5233042836, -0.1415461004, -0.0785631537, -0.0360233933, 0.0871152431, 0.1805791706, -0.1823303849, 0.0883068964, 0.3238530457, 0.6459390521, -0.1694083512, 0.3705488145, 0.0255201813, 0.3059286177, 0.2132881433, 0.0270452425, -0.2294175178, 0.4330947399, 0.2575822473, 0.3352282941, -0.5901472569, 0.1695657074, 0.5056748986, -0.023568213, 0.2167177498, -0.3594747484, -0.0223750621, -0.0552352853, -0.0159900282, -0.0719330311, 0.1218386665, 0.1490119845, 0.2901292443, -0.0673369542, -0.0273434464, -0.0467063077, 0.2230517119, 0.2663088441, -0.1428412646, -0.2008356899, 0.2622175515, -0.2484770417, 0.0786395818, 0.2177159339, 0.1616025418, -0.0978315324, -0.0521366596, 0.1798922271, 0.4497513771, -0.1746967882, -0.039889738, 0.0317630544, -0.1530031413, 0.1404958814, 0.0627516881, 0.2746909261, -0.0635648817, 0.1233454049, 0.0005846465, -0.383130908, -0.0437247008, 0.4243560433, 0.4585390389, -0.3600539863, 0.41664958, 0.174680531, 0.2586427629, -0.0644906461, 0.4355578721, -0.0931281298, 0.1283278465, -0.0560730807, 0.1473985761, 0.0403031036, 0.217051357, 0.0914419889, -0.0287602842, -0.0969899297, 0.0412180498, -0.2160513252, 0.2098333389, 0.3064318895, 0.1730033755, 0.4223076701, -0.3031860292, 0.1374098659, 0.1526105702, -0.0731561556, -0.2435802221, -0.047290422, 0.1329396963, -0.3592749536, 0.0106856637, 0.2144466639, -0.0846365243, 0.01132154, 0.064479664, 0.4179263711, 0.262011826, 0.1000918522, 0.0653353333, -0.0138661312, 0.2816164494, -0.3647170663, 0.2353287637, 0.1579896212, -0.1405763328, -0.2575822473, -0.0880536586, -0.0056584454, -0.0124874227, -0.4783657789, -0.0724288374, -0.1397930533, 0.4400902689, -0.1443308294, 0.0493659228, -0.3884942234, 0.0546305478, -0.0210841242, 0.2141258866, -0.3707188964, 0.1099852324, 0.0246811155, 0.0773969591, 0.0523463786, 0.1700744331, 0.0661983937, 0.2172149122, -0.2984472513, -0.1805216223, 0.3678478599, 0.0187848061, 0.0980769023, -0.15001674, 0.4350650012, 0.5103737712, -0.2477454543, -0.3580597639, -0.2498808056, -0.0220319424, -0.2263912112, -0.4824006557, 0.2833116651, 0.0979687423, 0.2627729475, -0.0858350545, 0.0814130977, -0.069908455, -0.2276804298, 0.164998427, -0.2625057101 ]
https://github.com/huggingface/datasets/issues/2945
Protect master branch
@lhoestq now the 2 are implemented. Please note that for the the second protection, finally I have chosen to protect the master branch only from **merge commits** (see update comment above), so no need to disable/re-enable the protection on each release (direct commits, different from merge commits, can be pushed to the remote master branch; and eventually reverted without messing up the repo history).
After accidental merge commit (91c55355b634d0dc73350a7ddee1a6776dbbdd69) into `datasets` master branch, all commits present in the feature branch were permanently added to `datasets` master branch history, as e.g.: - 00cc036fea7c7745cfe722360036ed306796a3f2 - 13ae8c98602bbad8197de3b9b425f4c78f582af1 - ... I propose to protect our master branch, so that we avoid we can accidentally make this kind of mistakes in the future: - [x] For Pull Requests using GitHub, allow only squash merging, so that only a single commit per Pull Request is merged into the master branch - Currently, simple merge commits are already disabled - I propose to disable rebase merging as well - ~~Protect the master branch from direct pushes (to avoid accidentally pushing of merge commits)~~ - ~~This protection would reject direct pushes to master branch~~ - ~~If so, for each release (when we need to commit directly to the master branch), we should previously disable the protection and re-enable it again after the release~~ - [x] Protect the master branch only from direct pushing of **merge commits** - GitHub offers the possibility to protect the master branch only from merge commits (which are the ones that introduce all the commits from the feature branch into the master branch). - No need to disable/re-enable this protection on each release This purpose of this Issue is to open a discussion about this problem and to agree in a solution.
64
Protect master branch After accidental merge commit (91c55355b634d0dc73350a7ddee1a6776dbbdd69) into `datasets` master branch, all commits present in the feature branch were permanently added to `datasets` master branch history, as e.g.: - 00cc036fea7c7745cfe722360036ed306796a3f2 - 13ae8c98602bbad8197de3b9b425f4c78f582af1 - ... I propose to protect our master branch, so that we avoid we can accidentally make this kind of mistakes in the future: - [x] For Pull Requests using GitHub, allow only squash merging, so that only a single commit per Pull Request is merged into the master branch - Currently, simple merge commits are already disabled - I propose to disable rebase merging as well - ~~Protect the master branch from direct pushes (to avoid accidentally pushing of merge commits)~~ - ~~This protection would reject direct pushes to master branch~~ - ~~If so, for each release (when we need to commit directly to the master branch), we should previously disable the protection and re-enable it again after the release~~ - [x] Protect the master branch only from direct pushing of **merge commits** - GitHub offers the possibility to protect the master branch only from merge commits (which are the ones that introduce all the commits from the feature branch into the master branch). - No need to disable/re-enable this protection on each release This purpose of this Issue is to open a discussion about this problem and to agree in a solution. @lhoestq now the 2 are implemented. Please note that for the the second protection, finally I have chosen to protect the master branch only from **merge commits** (see update comment above), so no need to disable/re-enable the protection on each release (direct commits, different from merge commits, can be pushed to the remote master branch; and eventually reverted without messing up the repo history).
[ -0.1553194672, -0.1002306268, -0.070321016, -0.0798171908, -0.1042534709, -0.1879874468, 0.0104035577, 0.2728635967, -0.0098489737, -0.0841399208, 0.2926148772, -0.0778751224, -0.1324572563, 0.2158903182, -0.0562292449, 0.1705456823, 0.2003232092, -0.0407981202, -0.0923330337, 0.0279233586, 0.0226084664, -0.0687029436, 0.0832000151, 0.0436301306, -0.1837819666, 0.0054013738, -0.0148117775, 0.1564962417, -0.4397666156, -0.4695702493, 0.1452465504, 0.2322402596, 0.0251065325, 0.570535183, -0.0001043637, -0.0003454557, 0.1694866419, -0.0406010039, -0.1401022524, -0.2154636681, -0.4901072085, -0.4447958767, -0.07006336, -0.0083542913, 0.1288067251, 0.0528678969, -0.132499963, 0.0238457564, 0.3848451674, 0.1055523977, 0.2386109382, -0.1028517336, 0.1812405735, 0.0137694413, 0.392008841, 0.5474528074, -0.066634573, 0.3031997979, 0.0540179275, 0.0006757497, 0.0611058585, 0.1741086096, -0.0823729113, -0.2866700888, 0.2270194292, -0.1779912561, 0.5181742311, -0.4243531227, -0.2415838391, -0.0831176639, 0.0523793846, -0.1781465262, -0.4089041948, -0.2419367433, -0.1499476582, 0.0076339091, 0.0677802935, 0.2468644679, 0.039739579, 0.0036496122, -0.3773649931, -0.2718090415, -0.004407926, 0.0492040403, 0.141940549, -0.1626293063, 0.0664263666, -0.1270385236, 0.2942230105, -0.0473279878, -0.1469833106, -0.3676346838, -0.2413333207, -0.0125874653, -0.1026133746, -0.1957468837, -0.2462065965, -0.3248277903, 0.4251304567, 0.3889683783, -0.3832727969, 0.0137396995, -0.0304892361, -0.0810169131, 0.2071851492, 0.1178578511, -0.0104900496, 0.0584886484, 0.530713141, 0.3144408166, 0.0051584225, 0.3255857527, 0.3015701473, 0.0030471815, 0.0344459116, 0.574118197, 0.4289444685, -0.26292032, 0.1276476383, 0.1959735751, -0.3412007391, -0.3845081031, 0.0711311549, -0.0861726329, 0.1103260964, 0.0271337908, -0.1147114784, 0.0668015406, 0.0451908335, -0.0380863659, -0.3079027534, -0.141485557, -0.3744001687, -0.0685305148, 0.1860401928, -0.4571051598, 0.1491677761, 0.4325242639, -0.0680372268, -0.1992845535, 0.0445522442, 0.1292257011, 0.0555874184, 0.2961196899, -0.1537979692, -0.4526284337, 0.2235967368, 0.1313333064, -0.0668994114, 0.1940043122, -0.1598993689, -0.2616221011, -0.1049757376, 0.2977656722, -0.1482721567, 0.3071561158, -0.5237665772, 0.0363732092, -0.0044837268, 0.3506707847, 0.4910375476, 0.3025480509, 0.3280785084, -0.1685939282, 0.0617566295, 0.1903455257, 0.3235116601, -0.0516864397, 0.0623045377, -0.2877363563, 0.1095039099, 0.1450733244, -0.3121602237, 0.0175557248, -0.0052360594, -0.1312822402, 0.0107761566, -0.0714070052, -0.1119878516, -0.0989294425, -0.3666853309, 0.0694030076, -0.0407375731, -0.1007770002, 0.2079568803, -0.3201756477, -0.0947941095, 0.2050814927, -0.1481231451, 0.0208985135, -0.2919872105, -0.6061385274, -0.1636558473, -0.06343887, 0.1249144152, 0.2275642306, 0.3607693315, -0.0050310493, -0.0283617247, -0.1714023799, -0.0093972106, 0.1125069708, 0.3421364129, -0.1496780068, -0.2415423691, 0.1322465539, -0.3545884192, 0.0911409035, -0.0785121024, -0.0097747799, 0.0344485678, -0.3157884181, 0.3412798941, -0.0440529883, -0.1208016798, -0.1141509414, 0.2415172756, 0.095951654, -0.1747335494, -0.2039210498, -0.2074069828, 0.2601909339, -0.2408306301, 0.3018657863, 0.1300136894, 0.1026374176, -0.1411807239, -0.0364533328, -0.0250960924, 0.36193645, 0.2363044769, -0.0899174288, -0.0591584407, 0.1687609404, -0.0490626656, 0.2035702467, 0.2246947736, 0.4252423346, 0.3736152053, -0.1026815102, 0.0626009405, -0.0917925984, -0.0787246898, 0.0245947056, -0.3291273713, 0.3280371726, 0.073694557, -0.1394644678, -0.1740321219, -0.1033326834, -0.1740740985, -0.2202692628, -0.1707722992, -0.012951361, -0.1690982729, 0.1943652332, -0.3365918398, 0.2223692834, -0.2772080004, 0.148579374, 0.0150526064, -0.2516064942, -0.1024010181, 0.0682980418, -0.0059674503, -0.1327149123, 0.1241709664, 0.3773829341, 0.1278743744, 0.1701000035, 0.0042741634, 0.0201513059, 0.2572831213, -0.1164359227, 0.353325963, 0.1443069726, -0.1054452285, 0.054064367, 0.3364559114, 0.1812186539, 0.0643318817, 0.346919328, -0.0033243245, 0.0352581739, -0.2084068358, -0.0459848903, -0.2602106631, -0.5283415914, 0.2192376256, -0.110637784, -0.3552163243, -0.0085041393, -0.0453661792, 0.047418233, -0.5248722434, 0.136029914, 0.1835808307, 0.2905260623, -0.3178029358, -0.1199780703, 0.1263155937, -0.0225951802, 0.0123441136, 0.1285599768, 0.3631602824, -0.2266809344, 0.45945099, 0.2389809936, -0.1695563644, -0.4726397991, -0.3434132934, 0.0191301201, -0.2039363831, -0.1179748252, 0.0098189935, -0.0989309773, 0.0921538174, -0.3585401177, -0.3257124722, -0.018773742, -0.3730046451, -0.1600959152, 0.0695955083, 0.0628860295, -0.2346176803, -0.114040032, -0.386590004, -0.2821527123, 0.4793556035, -0.0164330266, 0.1156589612, -0.0431727543, -0.2923772335, -0.0459178463, 0.0874827728, 0.1366390288, -0.0000448525, -0.3609322906, 0.0325667374, -0.0406603813, -0.0293471292, 0.352609843, 0.1854910851, -0.4302407205, 0.0712517202, -0.3217604458, -0.1558190286, -0.0520843901, 0.4864443243, 0.3141199946, -0.0973737389, 0.0710799471, 0.1035510823, -0.1919001341, 0.0550895296, -0.1816118211, 0.1472238153, 0.3454884887, 0.2857186198, 0.0378993787, 0.1458674669, 0.0254973993, 0.7140879035, 0.3778497577, -0.059657298, 0.210337624, 0.3106974065, -0.0277180839, 0.0039902786, -0.2601569593, 0.065046832, -0.1012431234, -0.0000209612, 0.0867039785, -0.1295782924, -0.1229653433, -0.0112106856, -0.4777139425, 0.0091558872, -0.4146761596, -0.2396630496, -0.3181839585, 0.1842502356, -0.0225256812, -0.4854888022, 0.1313801706, 0.0537709594, 0.2305762768, 0.2159709483, 0.2142065167, 0.1812160015, -0.0202590171, -0.0510845743, -0.1200738922, -0.067726247, -0.0043309759, 0.145250544, 0.0905801877, -0.1670407504, 0.0318057276, 0.0695502236, 0.3299908936, -0.0148684094, 0.1402913779, -0.1708071232, -0.5094846487, 0.6086307168, -0.3185944259, 0.1394028515, 0.2990989089, 0.5112247467, 0.4397634268, -0.2954540849, -0.1953165382, 0.2071224451, 0.0325558819, 0.1978364438, 0.1773502678, 0.1449773014, 0.2783072591, -0.4903811812, 0.2887739539, 0.1548331976, -0.2504818439, -0.1551757604, -0.0039056637, -0.0270501971, 0.1264622211, -0.0263037495, -0.2453983575, 0.0091275191, -0.1094373837, 0.1734458208, 0.1329204887, 0.0698278099, 0.4152193964, 0.594658792, 0.1349339038, -0.3891987503, -0.0482011773, -0.1750733256, -0.0742834732, 0.3271439075, 0.1983511001, 0.24822779, 0.0203486141, 0.1776862442, -0.1234726384, -0.2662384808, -0.2033664733, -0.038491372, -0.0767425969, 0.0075890222, 0.0873292238, -0.0458977483, -0.0909918919, 0.0130487047, 0.1399983913, -0.3661002219, 0.1637848169, 0.6180499792, 0.9825440049, 0.3975676596, 0.0890336856, -0.2546566427, -0.3273829818, 0.3259905577, -0.340107888, -0.1664507836, -0.2470169514, -0.1235878542, -0.1842461079, -0.3403116167, -0.0386944152, -0.4898471832, -0.3528554738, 0.1351124644, -0.2180551142, 0.5279191732, 0.008177679, 0.1233861297, 0.1910188198, -0.12231455, 0.2551510632, 0.1982705742, 0.061811205, 0.104095228, -0.0040276642, -0.4687906206, -0.0022327867, 0.0205386523, -0.3772695959, 0.0891471654, -0.3437781334, 0.0388470143, -0.2063531876, -0.3160520196, 0.115827091, -0.0870479271, 0.6059409976, 0.1666302532, -0.0794522315, -0.0446208119, 0.2913893759, 0.4645246863, -0.2288517058, -0.219530493, 0.5223725438, -0.2133638412, -0.1302172095, -0.2047614008, -0.0803344026, -0.2370928973, -0.2609480619, -0.1280429661, -0.3282325566, 0.0795017928, 0.041714251, 0.2636537552, -0.0910693035, -0.1676060557, 0.1859930903, 0.1154857874, -0.1075729132, -0.118584998, -0.1695205718, -0.2610394955, -0.0678159222, 0.2016011029, 0.161605835, -0.1206071749, -0.0767639652, 0.099657312, -0.2443365902, -0.2207894772, -0.2072923779, 0.105987981, -0.1394685954, 0.0929813311, -0.5486782193, -0.32993415, 0.0517466478, 0.2461933494, 0.279415518, 0.3304983079, 0.1179999709, -0.0997705981, -0.2244495153, 0.2186434418, -0.3279267251, 0.1686490178, 0.0235842206, 0.1588117927, -0.0260097533, 0.0404301658, -0.3905956745, 0.160315454, -0.1254802048, -0.0211261567, -0.2255206406, -0.1017537564, -0.000630246, -0.3081870973, 0.0324874744, 0.0234331191, -0.1957566142, -0.2830150425, 0.0926690474, 0.0656956136, 0.0647893623, -0.0570135079, -0.0574608184, -0.1081577986, 0.0827530622, 0.2720321715, 0.2396921068, -0.1584913284, 0.1097129956, -0.0322248675, 0.1710882336, 0.1105851158, -0.0247724894, 0.0892416015, 0.0146322586, -0.2658016682, -0.0353747047, 0.267159909, -0.1817460209, -0.2171436995, -0.2685393691, 0.1888355613, 0.1056337059, 0.5840907693, 0.2028801143, 0.1442169249, -0.405082494, 0.1754089892, -0.0531977862, -0.0036356284, -0.1692355126, -0.0969402716, -0.0849622712, 0.2793601751, -0.0867193192, -0.3035972714, 0.2713837624, 0.1881819069, 0.0007486099, 0.1049711928, 0.5280760527, 0.1296208501, -0.1896519363, 0.4221355915, 0.2712435424, -0.0876758322, 0.494900018, 0.470233053, -0.1131819189, -0.0203250889, -0.082736142, 0.116614446, 0.2306870967, -0.2540961802, 0.1284718663, 0.2962196171, 0.6462965012, -0.1688840091, 0.3935549557, -0.0330962837, 0.3437395692, 0.1979931891, 0.0587407239, -0.2460495532, 0.3927094042, 0.2117075175, 0.3301511109, -0.6189893484, 0.1363731921, 0.4914032817, 0.0492829382, 0.1995816529, -0.400105536, -0.0492327139, -0.0584757105, -0.0483128205, -0.0781826749, 0.1634954214, 0.1237376407, 0.2829664946, 0.0065842085, -0.088377893, -0.043440666, 0.1850482225, 0.2415616512, -0.1169977486, -0.1811731756, 0.357754916, -0.2761978507, 0.0664936379, 0.215460062, 0.1350683123, -0.074716486, -0.0686341003, 0.1802342385, 0.4503947198, -0.1699341387, 0.0225111321, 0.0557496101, -0.1625677198, 0.1577177346, 0.0801470727, 0.2580322921, -0.0533408038, 0.1128025502, 0.0354268774, -0.4152979553, -0.025322238, 0.4330811501, 0.5564644337, -0.3377302289, 0.4601393938, 0.1192681268, 0.2847007811, -0.0326848105, 0.4374352098, -0.0471260622, 0.1163921505, -0.0051536481, 0.143078804, 0.02808984, 0.2575880587, 0.1414998174, -0.0333454311, -0.1592887938, 0.0301065128, -0.1215411872, 0.127435267, 0.2968399227, 0.17307055, 0.419888705, -0.2947140038, 0.1275687069, 0.1282345057, -0.0875694603, -0.3413968384, 0.0095217237, 0.0940847918, -0.3605292141, 0.0042476766, 0.2224816233, -0.0694397017, -0.0241943654, 0.1189339831, 0.4094779193, 0.1927902848, 0.1120927632, 0.1051306576, -0.0493477993, 0.3209429979, -0.3918459415, 0.2249616981, 0.1892230064, -0.1029298455, -0.2218884081, -0.0510987751, 0.0073658284, 0.0212806091, -0.4355088174, -0.1401801854, -0.162226066, 0.4209837019, -0.1355972886, 0.0682982057, -0.3722180128, 0.0687672645, -0.0371344872, 0.2683559954, -0.3000992239, 0.0864084363, 0.0525472984, 0.017337583, 0.088370651, 0.1305798739, 0.068434529, 0.2528506517, -0.3523156941, -0.1248895153, 0.3586619198, -0.0194706563, 0.0910360888, -0.2172687799, 0.4182040691, 0.4654460251, -0.1480811983, -0.3321150839, -0.2635183036, -0.0111563709, -0.2798339725, -0.542089045, 0.2986377478, 0.1378680468, 0.1974387169, -0.1058711782, 0.0366066247, -0.0743264556, -0.1527637988, 0.0611719489, -0.1987861097 ]
https://github.com/huggingface/datasets/issues/2943
Backwards compatibility broken for cached datasets that use `.filter()`
Hi ! I guess the caching mechanism should have considered the new `filter` to be different from the old one, and don't use cached results from the old `filter`. To avoid other users from having this issue we could make the caching differentiate the two, what do you think ?
## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}` Related feature: https://github.com/huggingface/datasets/pull/2836 :question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :) ## Workaround Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`. ## Steps to reproduce the bug 1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists. 2. `pip install datasets==1.11.0` and run the following snippet: ```python from datasets import load_dataset ids = ["1272-141231-0000"] ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation") ds = ds.filter(lambda x: x["id"] in ids) ``` 3. `pip install datasets==1.12.1` and re-run the code again ## Expected results Same result as with the previous `datasets` version. ## Actual results ```bash Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1) Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow Traceback (most recent call last): File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module> ds = ds.filter(lambda x: x["id"] in ids) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter indices = self.map( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map return self._map_single( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single return Dataset.from_file(cache_file_name, info=info, split=self.split) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file return cls( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__ self.info.features = self.info.features.reorder_fields_as(inferred_features) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as return Features(recursive_reorder(self, other)) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position) ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)} Process finished with exit code 1 ``` ## Environment info - `datasets` version: 1.12.1 - Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 5.0.0
50
Backwards compatibility broken for cached datasets that use `.filter()` ## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}` Related feature: https://github.com/huggingface/datasets/pull/2836 :question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :) ## Workaround Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`. ## Steps to reproduce the bug 1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists. 2. `pip install datasets==1.11.0` and run the following snippet: ```python from datasets import load_dataset ids = ["1272-141231-0000"] ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation") ds = ds.filter(lambda x: x["id"] in ids) ``` 3. `pip install datasets==1.12.1` and re-run the code again ## Expected results Same result as with the previous `datasets` version. ## Actual results ```bash Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1) Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow Traceback (most recent call last): File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module> ds = ds.filter(lambda x: x["id"] in ids) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter indices = self.map( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map return self._map_single( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single return Dataset.from_file(cache_file_name, info=info, split=self.split) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file return cls( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__ self.info.features = self.info.features.reorder_fields_as(inferred_features) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as return Features(recursive_reorder(self, other)) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position) ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)} Process finished with exit code 1 ``` ## Environment info - `datasets` version: 1.12.1 - Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 5.0.0 Hi ! I guess the caching mechanism should have considered the new `filter` to be different from the old one, and don't use cached results from the old `filter`. To avoid other users from having this issue we could make the caching differentiate the two, what do you think ?
[ -0.3049958348, 0.1243880838, -0.0465583764, 0.2368971109, 0.1517290324, -0.0666598156, -0.0069413707, 0.3285393715, 0.1737383604, 0.0293814819, -0.2313861847, 0.3581927419, -0.1503304988, 0.2527370155, -0.2977862358, -0.1378120482, 0.0444693454, 0.0321247876, -0.0614953265, 0.166412577, -0.1239175051, 0.4988580644, -0.1957765073, 0.0070795678, 0.2221652865, 0.0513210297, 0.1091236398, 0.138566196, 0.0798620358, -0.3392693698, 0.5981172919, 0.1064069718, -0.0348691642, 0.498096019, -0.0001213098, 0.099867776, 0.4398066998, -0.1073976383, -0.4579497874, -0.3686879575, -0.192854017, 0.1319934726, 0.2131137848, 0.0811629742, -0.0715122968, 0.1143416911, -0.303493619, -0.346046567, 0.2488765419, 0.1989328116, 0.2267285585, 0.2136144787, 0.2657418847, 0.066587165, 0.170179069, 0.0826525018, 0.0259718653, -0.0490864292, 0.2940285802, 0.014261202, 0.043685697, 0.4806104004, -0.3283523321, -0.2146463245, 0.3046185374, -0.2982533276, 0.1030709222, -0.3957037926, 0.2999309897, 0.0781370997, 0.1462642252, -0.255518198, -0.5773367882, -0.3483263254, -0.5121472478, -0.2868291736, 0.4164735079, -0.216358915, -0.2009968162, 0.2200830877, -0.3342647851, -0.0270038545, 0.0934983194, 0.0535101071, -0.0584819205, 0.2941842079, -0.1318320185, -0.0048626242, 0.0149830757, -0.132900551, 0.1924084276, -0.2750048339, -0.1968749017, 0.1725800484, -0.0155595224, -0.0546131916, 0.0954222009, 0.3323281705, 0.140570581, 0.0356287211, 0.0192098524, 0.0845401734, -0.0409641638, 0.0536773168, 0.1373275816, 0.475378722, 0.4901195765, 0.2467906624, 0.2727875113, 0.2854887545, -0.0078853024, -0.0013800253, 0.5281852484, -0.1666412055, 0.0747071281, 0.1517307162, 0.196695298, -0.4048683643, -0.3602132797, 0.1689626127, -0.0769995078, -0.1250401586, 0.2207264006, 0.0534940958, 0.1005648673, 0.2142349631, 0.1320811808, 0.0338568501, -0.1964725256, 0.0612344779, -0.1725096703, -0.1739457697, 0.0011616903, -0.1112991124, -0.0473052748, -0.89977777, 0.1747701168, 0.0482602492, 0.0063488153, 0.1058098748, -0.0697732121, 0.207434997, 0.1730166823, 0.5229284167, -0.2213587761, 0.0839003325, 0.1671907902, -0.548327744, -0.1386865377, 0.0125284484, -0.2415378094, -0.1112066656, 0.2085879147, 0.1735862345, -0.3296715915, 0.0126515068, -0.17029953, 0.4515431225, 0.2592140436, -0.5466870666, -0.0779574588, -0.213380143, -0.4382343888, -0.1997140199, 0.0971902013, 0.4131370485, -0.5942543149, -0.3216674924, 0.0216870401, 0.0319067985, 0.0399160981, -0.1229341999, -0.063439101, -0.2444722205, -0.1077689156, -0.1384182572, 0.3606542647, -0.3195546865, -0.733892858, 0.1537256837, 0.2360213548, 0.5342661738, -0.0709591061, -0.1374839246, 0.2813950479, -0.2578290701, 0.1459920853, 0.0848445743, -0.1649033576, -0.0079940017, -0.3409692049, -0.2346946597, 0.2238697708, -0.1502910852, 0.0904174298, 0.3348585963, 0.0790057704, -0.2542206049, 0.0502917804, 0.0350500681, 0.1049243882, 0.1990925223, 0.2453232259, 0.2237652242, 0.2863062918, -0.4365186989, -0.2801407278, 0.2506181598, 0.2141302824, -0.0600011088, -0.1524066925, -0.1982273012, -0.2678262889, -0.0884182155, -0.1589775681, -0.3044096231, 0.0788738504, 0.0225765873, 0.3843636513, -0.0385034606, -0.1145259663, 0.6218649745, 0.3084535897, 0.0944804996, -0.5049411654, 0.229641512, -0.0548514128, 0.0051691518, -0.0591857955, 0.0377827175, 0.2939595878, -0.0685256049, -0.2895757854, 0.407875061, 0.0392592028, 0.084168233, -0.0276337974, 0.1937460154, 0.1773459613, 0.2105839252, 0.0639338642, 0.2741822898, -0.0148837138, 0.2087214142, -0.195456177, 0.557248354, 0.0293753464, 0.3240505159, 0.1208347678, 0.148756206, 0.3702490628, 0.1305633932, -0.2189950645, -0.1370786875, 0.3204495311, -0.4587228, 0.0626674443, 0.0123394234, -0.1297932267, 0.3776263595, 0.0716826022, 0.0755119473, -0.0334524736, 0.3119212389, -0.1593657285, -0.042190969, 0.1813624054, 0.4024861157, 0.4014509916, 0.2088322341, 0.0507172868, 0.0758817792, -0.1615392268, -0.0248774402, 0.2082498521, 0.1293462515, -0.1696399748, 0.1535750628, 0.3034210205, 0.2732039392, -0.3061974645, 0.0933934823, -0.2356239706, 0.1195331365, -0.270581305, 0.3616366684, -0.2810101509, -0.2280866951, 0.076141715, -0.1678324938, -0.2615140676, -0.3875222206, 0.089899376, 0.3934392929, -0.086219281, 0.2567750216, 0.0147161586, 0.2445412278, 0.136167407, -0.1996820718, -0.4005717337, -0.2078815252, -0.3476482034, 0.0053976052, 0.2051323503, -0.1568491161, 0.2970358729, -0.0763099566, -0.2066247612, -0.390294075, -0.9079098701, -0.0486286655, -0.123964861, 0.6180298328, 0.3176228106, -0.0916265026, -0.1352719367, -0.2327560335, 0.1665794849, -0.0413150303, -0.4310828745, 0.1568385363, 0.0666227341, 0.1682221591, -0.2003851682, -0.2270279974, -0.1135412008, -0.1458190233, 0.0079398574, -0.1276904047, 0.0849654675, 0.3094039559, 0.1123534068, -0.3165157139, -0.0872011557, 0.1330857426, -0.3335401416, -0.0773374513, 0.0739419162, -0.054162316, -0.2302434891, -0.034139622, -0.0319806486, 0.0831893757, 0.3736632466, -0.4069587886, -0.3791774213, -0.2713731527, -0.0048744264, 0.2311773747, 0.068360962, 0.2319667786, 0.1899949759, 0.0391035639, -0.2794680893, -0.4342857301, -0.0886206329, -0.2365958691, 0.1095489264, 0.1482250243, 0.6309939027, 0.0345636867, 0.4764270186, 0.2947264612, 0.0489611253, 0.1398259848, 0.1815548688, 0.4972691238, -0.3258462548, -0.4095653892, -0.0467088632, -0.0461938493, 0.0505124666, -0.1531914324, 0.1795819253, -0.1120608747, -0.3487883806, 0.000088976, -0.2515632212, -0.2498103678, -0.2386271805, -0.0136443963, 0.2690052986, 0.3906219602, 0.1407706589, -0.3225954771, -0.1763848662, -0.0081372689, 0.4007481039, 0.1035773978, 0.2502198517, -0.1815419495, -0.0471423045, -0.4509257674, 0.492559284, 0.2151459008, 0.2648919821, -0.1177540421, -0.1629662067, -0.3294481337, -0.0492410697, 0.5928120017, -0.3631767035, 0.0443488397, 0.1019544229, -0.2081836015, -0.382881999, 0.0511292815, 0.0076627661, 0.3649113178, 0.0543546379, 0.3508075774, -0.0821149051, -0.0730158612, -0.0869157314, 0.2223753035, -0.1245945767, 0.0196017139, -0.2743616104, -0.2049434334, -0.143308565, 0.0314200111, -0.1528896391, 0.1650674194, -0.1800080687, -0.0685375854, -0.1131430715, -0.0563930348, 0.1153809577, 0.1347035617, 0.2945029438, -0.1000063792, 0.1187398955, 0.1441811323, 0.2405287623, 0.04236985, 0.458391726, -0.2755981982, -0.2780961096, -0.0670714304, 0.1208044589, -0.114640221, 0.3437377512, -0.2040164918, -0.0173406545, -0.0444572084, -0.1020425931, -0.0212400388, -0.1411033124, -0.001939329, 0.3703025281, -0.204925105, -0.2889373302, 0.2329640687, 0.2390516698, -0.2043491751, 0.436775893, 0.3422557414, -0.2809350789, 0.1687894613, -0.1999594271, 0.7136852741, 0.1521688104, -0.0298533011, 0.0877994671, -0.1695175022, 0.4524547458, 0.3125461042, 0.1559776068, -0.0667682663, -0.2370487005, -0.0655061752, -0.0347471349, 0.1580221951, -0.1110610664, -0.2036339194, 0.5631492734, -0.0592185557, -0.0353867561, 0.1755868793, -0.1173290387, -0.2023077309, 0.0190884974, -0.4372626245, 0.099125281, -0.0213232394, 0.2521654963, 0.0010581244, -0.0767222121, 0.0552208163, -0.3087654114, -0.2637814581, -0.0523921177, -0.3992073536, -0.0659277439, 0.2081235945, -0.433280319, 0.0089732604, 0.0526266396, 0.2566778362, -0.0081807002, -0.0373007692, -0.0075372811, 0.0702684447, 0.4977722168, 0.2345933914, 0.0250330679, 0.2863307297, 0.0890943483, 0.1867841035, 0.0195984095, -0.1420115829, -0.3608390987, -0.0186531637, 0.0038103643, 0.1180328727, -0.1588664055, 0.0288226064, -0.2428553104, 0.0213073175, -0.364861697, 0.0650937036, -0.0898337811, -0.0098389015, 0.0943212733, -0.0165627208, -0.226817742, -0.0053528175, 0.6357886791, -0.1438153237, -0.4367529452, 0.127720207, -0.0055662361, -0.2235843986, 0.0353587158, -0.2044414431, 0.0274193734, -0.2750842869, 0.2978782654, -0.2511248887, -0.1071279123, 0.2691295445, 0.3227922022, 0.1886078864, 0.2146122009, -0.1516674459, -0.3945676982, -0.1370823681, 0.2854580283, 0.0442744903, 0.0549807698, -0.0311486106, -0.3236714602, -0.1444216073, -0.2066645175, -0.2257885635, 0.0087526664, 0.3313151598, 0.0712086409, 0.1904872656, 0.2205638587, 0.1548970491, -0.1995647997, -0.0134116681, 0.0725863725, -0.203820318, -0.102092959, -0.093345888, 0.0935418084, -0.0911601558, -0.2648990452, -0.1546195447, -0.0057543651, 0.0614032373, -0.1646934003, 0.4182681739, 0.3214158118, -0.1182498485, -0.0536907464, -0.0327779986, 0.0472252741, 0.3035388887, 0.1383125186, 0.0185656752, 0.0326717421, 0.0427048579, 0.1994483471, -0.1875816137, 0.014096451, 0.082016468, 0.0423960686, -0.2510475516, 0.0270903334, 0.3569348454, -0.295296222, -0.0216397811, 0.5987740755, 0.3562681079, 0.2437597811, -0.1398067921, 0.1138302758, -0.0777392983, 0.1533572823, -0.2739046812, -0.3326784968, 0.205778718, 0.2732258439, 0.0609572381, 0.1860822588, -0.0021066871, 0.0291597173, 0.6171163917, 0.2176484168, 0.4478169084, -0.1253162473, 0.3508082032, 0.5271652937, 0.2326287627, 0.1843764484, 0.241720289, 0.0737254471, 0.0160929821, 0.5080396533, -0.0660088882, 0.2586891651, 0.2197473645, 0.1287705451, -0.0355183855, -0.4662743509, -0.1656748652, 0.0283220075, -0.0797490031, 0.2506761551, 0.1661577374, 0.0856602341, -0.2232845426, -0.3345984221, 0.0114881797, 0.024897946, -0.193626374, -0.2161095738, 0.1446396858, -0.3639173806, -0.0571490377, 0.013486567, -0.1208442077, 0.0703997388, 0.4529311359, -0.2469489723, -0.128362909, -0.4731904268, -0.3793772757, 0.0500456095, 0.1747638434, -0.0140105868, 0.4047631919, 0.258780688, -0.2298548669, 0.2219883502, 0.2503442466, 0.4856500924, 0.2468240112, 0.027692223, 0.0133466832, -0.1420494765, -0.0540064909, -0.0907230228, 0.3356420696, -0.0870835707, 0.0305686034, 0.1879348457, 0.1134100109, 0.0007339246, 0.2053903639, -0.0408540145, 0.3989400268, -0.4661819339, 0.0895344913, -0.2369527221, 0.2848792076, 0.0150147714, 0.1000138745, -0.2490254641, -0.1181152612, 0.171215117, 0.2318110913, 0.2039028108, -0.1064854339, 0.0748107806, 0.1348544508, 0.0739088506, 0.4687882364, -0.0930132717, -0.0892460048, -0.1464888304, -0.653509438, -0.0558623448, 0.1423008889, 0.1280672401, -0.0635151789, 0.0375300944, 0.0490150824, 0.1846857667, 0.0434734374, -0.1836016178, 0.1054587811, -0.2515150607, -0.2000013739, -0.1759469211, 0.2301196903, -0.2421481013, 0.0548487157, -0.2659107745, 0.0627719611, -0.0416926146, 0.0269530844, -0.005927782, -0.0628840253, 0.0675144792, 0.3473338187, -0.1370735615, 0.3493901491, 0.2663169801, 0.03349353, -0.0034476253, -0.2782979906, -0.1931354105, -0.2683142722, 0.0700851008, -0.2921240628, 0.4918605983, -0.4018596709, -0.3019634485, -0.1804217845, 0.2724736333, 0.1233783066, -0.1268284917, -0.4767788649, 0.1658581197, -0.0587571412, 0.0838124454, 0.0044377646, 0.508733511, 0.059986867, 0.3379509747, -0.2266310304, -0.3412219286, 0.5358169079, -0.4137625992, -0.2617653012, -0.1319275051, -0.0639740229, 0.6073155403, -0.4836450815, -0.3043731153, -0.2037671804, 0.2719914615, -0.1200053543, -0.1490247399, 0.1555725485, -0.2652980089, 0.1745556146, -0.1892018616, -0.0870604515, 0.4393822849, -0.0882679075, 0.2773536742, -0.1299419552 ]
https://github.com/huggingface/datasets/issues/2943
Backwards compatibility broken for cached datasets that use `.filter()`
If it's easy enough to implement, then yes please πŸ˜„ But this issue can be low-priority, since I've only encountered it in a couple of `transformers` CI tests.
## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}` Related feature: https://github.com/huggingface/datasets/pull/2836 :question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :) ## Workaround Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`. ## Steps to reproduce the bug 1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists. 2. `pip install datasets==1.11.0` and run the following snippet: ```python from datasets import load_dataset ids = ["1272-141231-0000"] ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation") ds = ds.filter(lambda x: x["id"] in ids) ``` 3. `pip install datasets==1.12.1` and re-run the code again ## Expected results Same result as with the previous `datasets` version. ## Actual results ```bash Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1) Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow Traceback (most recent call last): File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module> ds = ds.filter(lambda x: x["id"] in ids) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter indices = self.map( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map return self._map_single( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single return Dataset.from_file(cache_file_name, info=info, split=self.split) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file return cls( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__ self.info.features = self.info.features.reorder_fields_as(inferred_features) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as return Features(recursive_reorder(self, other)) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position) ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)} Process finished with exit code 1 ``` ## Environment info - `datasets` version: 1.12.1 - Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 5.0.0
28
Backwards compatibility broken for cached datasets that use `.filter()` ## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}` Related feature: https://github.com/huggingface/datasets/pull/2836 :question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :) ## Workaround Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`. ## Steps to reproduce the bug 1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists. 2. `pip install datasets==1.11.0` and run the following snippet: ```python from datasets import load_dataset ids = ["1272-141231-0000"] ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation") ds = ds.filter(lambda x: x["id"] in ids) ``` 3. `pip install datasets==1.12.1` and re-run the code again ## Expected results Same result as with the previous `datasets` version. ## Actual results ```bash Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1) Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow Traceback (most recent call last): File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module> ds = ds.filter(lambda x: x["id"] in ids) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter indices = self.map( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map return self._map_single( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single return Dataset.from_file(cache_file_name, info=info, split=self.split) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file return cls( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__ self.info.features = self.info.features.reorder_fields_as(inferred_features) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as return Features(recursive_reorder(self, other)) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position) ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)} Process finished with exit code 1 ``` ## Environment info - `datasets` version: 1.12.1 - Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 5.0.0 If it's easy enough to implement, then yes please πŸ˜„ But this issue can be low-priority, since I've only encountered it in a couple of `transformers` CI tests.
[ -0.3049958348, 0.1243880838, -0.0465583764, 0.2368971109, 0.1517290324, -0.0666598156, -0.0069413707, 0.3285393715, 0.1737383604, 0.0293814819, -0.2313861847, 0.3581927419, -0.1503304988, 0.2527370155, -0.2977862358, -0.1378120482, 0.0444693454, 0.0321247876, -0.0614953265, 0.166412577, -0.1239175051, 0.4988580644, -0.1957765073, 0.0070795678, 0.2221652865, 0.0513210297, 0.1091236398, 0.138566196, 0.0798620358, -0.3392693698, 0.5981172919, 0.1064069718, -0.0348691642, 0.498096019, -0.0001213098, 0.099867776, 0.4398066998, -0.1073976383, -0.4579497874, -0.3686879575, -0.192854017, 0.1319934726, 0.2131137848, 0.0811629742, -0.0715122968, 0.1143416911, -0.303493619, -0.346046567, 0.2488765419, 0.1989328116, 0.2267285585, 0.2136144787, 0.2657418847, 0.066587165, 0.170179069, 0.0826525018, 0.0259718653, -0.0490864292, 0.2940285802, 0.014261202, 0.043685697, 0.4806104004, -0.3283523321, -0.2146463245, 0.3046185374, -0.2982533276, 0.1030709222, -0.3957037926, 0.2999309897, 0.0781370997, 0.1462642252, -0.255518198, -0.5773367882, -0.3483263254, -0.5121472478, -0.2868291736, 0.4164735079, -0.216358915, -0.2009968162, 0.2200830877, -0.3342647851, -0.0270038545, 0.0934983194, 0.0535101071, -0.0584819205, 0.2941842079, -0.1318320185, -0.0048626242, 0.0149830757, -0.132900551, 0.1924084276, -0.2750048339, -0.1968749017, 0.1725800484, -0.0155595224, -0.0546131916, 0.0954222009, 0.3323281705, 0.140570581, 0.0356287211, 0.0192098524, 0.0845401734, -0.0409641638, 0.0536773168, 0.1373275816, 0.475378722, 0.4901195765, 0.2467906624, 0.2727875113, 0.2854887545, -0.0078853024, -0.0013800253, 0.5281852484, -0.1666412055, 0.0747071281, 0.1517307162, 0.196695298, -0.4048683643, -0.3602132797, 0.1689626127, -0.0769995078, -0.1250401586, 0.2207264006, 0.0534940958, 0.1005648673, 0.2142349631, 0.1320811808, 0.0338568501, -0.1964725256, 0.0612344779, -0.1725096703, -0.1739457697, 0.0011616903, -0.1112991124, -0.0473052748, -0.89977777, 0.1747701168, 0.0482602492, 0.0063488153, 0.1058098748, -0.0697732121, 0.207434997, 0.1730166823, 0.5229284167, -0.2213587761, 0.0839003325, 0.1671907902, -0.548327744, -0.1386865377, 0.0125284484, -0.2415378094, -0.1112066656, 0.2085879147, 0.1735862345, -0.3296715915, 0.0126515068, -0.17029953, 0.4515431225, 0.2592140436, -0.5466870666, -0.0779574588, -0.213380143, -0.4382343888, -0.1997140199, 0.0971902013, 0.4131370485, -0.5942543149, -0.3216674924, 0.0216870401, 0.0319067985, 0.0399160981, -0.1229341999, -0.063439101, -0.2444722205, -0.1077689156, -0.1384182572, 0.3606542647, -0.3195546865, -0.733892858, 0.1537256837, 0.2360213548, 0.5342661738, -0.0709591061, -0.1374839246, 0.2813950479, -0.2578290701, 0.1459920853, 0.0848445743, -0.1649033576, -0.0079940017, -0.3409692049, -0.2346946597, 0.2238697708, -0.1502910852, 0.0904174298, 0.3348585963, 0.0790057704, -0.2542206049, 0.0502917804, 0.0350500681, 0.1049243882, 0.1990925223, 0.2453232259, 0.2237652242, 0.2863062918, -0.4365186989, -0.2801407278, 0.2506181598, 0.2141302824, -0.0600011088, -0.1524066925, -0.1982273012, -0.2678262889, -0.0884182155, -0.1589775681, -0.3044096231, 0.0788738504, 0.0225765873, 0.3843636513, -0.0385034606, -0.1145259663, 0.6218649745, 0.3084535897, 0.0944804996, -0.5049411654, 0.229641512, -0.0548514128, 0.0051691518, -0.0591857955, 0.0377827175, 0.2939595878, -0.0685256049, -0.2895757854, 0.407875061, 0.0392592028, 0.084168233, -0.0276337974, 0.1937460154, 0.1773459613, 0.2105839252, 0.0639338642, 0.2741822898, -0.0148837138, 0.2087214142, -0.195456177, 0.557248354, 0.0293753464, 0.3240505159, 0.1208347678, 0.148756206, 0.3702490628, 0.1305633932, -0.2189950645, -0.1370786875, 0.3204495311, -0.4587228, 0.0626674443, 0.0123394234, -0.1297932267, 0.3776263595, 0.0716826022, 0.0755119473, -0.0334524736, 0.3119212389, -0.1593657285, -0.042190969, 0.1813624054, 0.4024861157, 0.4014509916, 0.2088322341, 0.0507172868, 0.0758817792, -0.1615392268, -0.0248774402, 0.2082498521, 0.1293462515, -0.1696399748, 0.1535750628, 0.3034210205, 0.2732039392, -0.3061974645, 0.0933934823, -0.2356239706, 0.1195331365, -0.270581305, 0.3616366684, -0.2810101509, -0.2280866951, 0.076141715, -0.1678324938, -0.2615140676, -0.3875222206, 0.089899376, 0.3934392929, -0.086219281, 0.2567750216, 0.0147161586, 0.2445412278, 0.136167407, -0.1996820718, -0.4005717337, -0.2078815252, -0.3476482034, 0.0053976052, 0.2051323503, -0.1568491161, 0.2970358729, -0.0763099566, -0.2066247612, -0.390294075, -0.9079098701, -0.0486286655, -0.123964861, 0.6180298328, 0.3176228106, -0.0916265026, -0.1352719367, -0.2327560335, 0.1665794849, -0.0413150303, -0.4310828745, 0.1568385363, 0.0666227341, 0.1682221591, -0.2003851682, -0.2270279974, -0.1135412008, -0.1458190233, 0.0079398574, -0.1276904047, 0.0849654675, 0.3094039559, 0.1123534068, -0.3165157139, -0.0872011557, 0.1330857426, -0.3335401416, -0.0773374513, 0.0739419162, -0.054162316, -0.2302434891, -0.034139622, -0.0319806486, 0.0831893757, 0.3736632466, -0.4069587886, -0.3791774213, -0.2713731527, -0.0048744264, 0.2311773747, 0.068360962, 0.2319667786, 0.1899949759, 0.0391035639, -0.2794680893, -0.4342857301, -0.0886206329, -0.2365958691, 0.1095489264, 0.1482250243, 0.6309939027, 0.0345636867, 0.4764270186, 0.2947264612, 0.0489611253, 0.1398259848, 0.1815548688, 0.4972691238, -0.3258462548, -0.4095653892, -0.0467088632, -0.0461938493, 0.0505124666, -0.1531914324, 0.1795819253, -0.1120608747, -0.3487883806, 0.000088976, -0.2515632212, -0.2498103678, -0.2386271805, -0.0136443963, 0.2690052986, 0.3906219602, 0.1407706589, -0.3225954771, -0.1763848662, -0.0081372689, 0.4007481039, 0.1035773978, 0.2502198517, -0.1815419495, -0.0471423045, -0.4509257674, 0.492559284, 0.2151459008, 0.2648919821, -0.1177540421, -0.1629662067, -0.3294481337, -0.0492410697, 0.5928120017, -0.3631767035, 0.0443488397, 0.1019544229, -0.2081836015, -0.382881999, 0.0511292815, 0.0076627661, 0.3649113178, 0.0543546379, 0.3508075774, -0.0821149051, -0.0730158612, -0.0869157314, 0.2223753035, -0.1245945767, 0.0196017139, -0.2743616104, -0.2049434334, -0.143308565, 0.0314200111, -0.1528896391, 0.1650674194, -0.1800080687, -0.0685375854, -0.1131430715, -0.0563930348, 0.1153809577, 0.1347035617, 0.2945029438, -0.1000063792, 0.1187398955, 0.1441811323, 0.2405287623, 0.04236985, 0.458391726, -0.2755981982, -0.2780961096, -0.0670714304, 0.1208044589, -0.114640221, 0.3437377512, -0.2040164918, -0.0173406545, -0.0444572084, -0.1020425931, -0.0212400388, -0.1411033124, -0.001939329, 0.3703025281, -0.204925105, -0.2889373302, 0.2329640687, 0.2390516698, -0.2043491751, 0.436775893, 0.3422557414, -0.2809350789, 0.1687894613, -0.1999594271, 0.7136852741, 0.1521688104, -0.0298533011, 0.0877994671, -0.1695175022, 0.4524547458, 0.3125461042, 0.1559776068, -0.0667682663, -0.2370487005, -0.0655061752, -0.0347471349, 0.1580221951, -0.1110610664, -0.2036339194, 0.5631492734, -0.0592185557, -0.0353867561, 0.1755868793, -0.1173290387, -0.2023077309, 0.0190884974, -0.4372626245, 0.099125281, -0.0213232394, 0.2521654963, 0.0010581244, -0.0767222121, 0.0552208163, -0.3087654114, -0.2637814581, -0.0523921177, -0.3992073536, -0.0659277439, 0.2081235945, -0.433280319, 0.0089732604, 0.0526266396, 0.2566778362, -0.0081807002, -0.0373007692, -0.0075372811, 0.0702684447, 0.4977722168, 0.2345933914, 0.0250330679, 0.2863307297, 0.0890943483, 0.1867841035, 0.0195984095, -0.1420115829, -0.3608390987, -0.0186531637, 0.0038103643, 0.1180328727, -0.1588664055, 0.0288226064, -0.2428553104, 0.0213073175, -0.364861697, 0.0650937036, -0.0898337811, -0.0098389015, 0.0943212733, -0.0165627208, -0.226817742, -0.0053528175, 0.6357886791, -0.1438153237, -0.4367529452, 0.127720207, -0.0055662361, -0.2235843986, 0.0353587158, -0.2044414431, 0.0274193734, -0.2750842869, 0.2978782654, -0.2511248887, -0.1071279123, 0.2691295445, 0.3227922022, 0.1886078864, 0.2146122009, -0.1516674459, -0.3945676982, -0.1370823681, 0.2854580283, 0.0442744903, 0.0549807698, -0.0311486106, -0.3236714602, -0.1444216073, -0.2066645175, -0.2257885635, 0.0087526664, 0.3313151598, 0.0712086409, 0.1904872656, 0.2205638587, 0.1548970491, -0.1995647997, -0.0134116681, 0.0725863725, -0.203820318, -0.102092959, -0.093345888, 0.0935418084, -0.0911601558, -0.2648990452, -0.1546195447, -0.0057543651, 0.0614032373, -0.1646934003, 0.4182681739, 0.3214158118, -0.1182498485, -0.0536907464, -0.0327779986, 0.0472252741, 0.3035388887, 0.1383125186, 0.0185656752, 0.0326717421, 0.0427048579, 0.1994483471, -0.1875816137, 0.014096451, 0.082016468, 0.0423960686, -0.2510475516, 0.0270903334, 0.3569348454, -0.295296222, -0.0216397811, 0.5987740755, 0.3562681079, 0.2437597811, -0.1398067921, 0.1138302758, -0.0777392983, 0.1533572823, -0.2739046812, -0.3326784968, 0.205778718, 0.2732258439, 0.0609572381, 0.1860822588, -0.0021066871, 0.0291597173, 0.6171163917, 0.2176484168, 0.4478169084, -0.1253162473, 0.3508082032, 0.5271652937, 0.2326287627, 0.1843764484, 0.241720289, 0.0737254471, 0.0160929821, 0.5080396533, -0.0660088882, 0.2586891651, 0.2197473645, 0.1287705451, -0.0355183855, -0.4662743509, -0.1656748652, 0.0283220075, -0.0797490031, 0.2506761551, 0.1661577374, 0.0856602341, -0.2232845426, -0.3345984221, 0.0114881797, 0.024897946, -0.193626374, -0.2161095738, 0.1446396858, -0.3639173806, -0.0571490377, 0.013486567, -0.1208442077, 0.0703997388, 0.4529311359, -0.2469489723, -0.128362909, -0.4731904268, -0.3793772757, 0.0500456095, 0.1747638434, -0.0140105868, 0.4047631919, 0.258780688, -0.2298548669, 0.2219883502, 0.2503442466, 0.4856500924, 0.2468240112, 0.027692223, 0.0133466832, -0.1420494765, -0.0540064909, -0.0907230228, 0.3356420696, -0.0870835707, 0.0305686034, 0.1879348457, 0.1134100109, 0.0007339246, 0.2053903639, -0.0408540145, 0.3989400268, -0.4661819339, 0.0895344913, -0.2369527221, 0.2848792076, 0.0150147714, 0.1000138745, -0.2490254641, -0.1181152612, 0.171215117, 0.2318110913, 0.2039028108, -0.1064854339, 0.0748107806, 0.1348544508, 0.0739088506, 0.4687882364, -0.0930132717, -0.0892460048, -0.1464888304, -0.653509438, -0.0558623448, 0.1423008889, 0.1280672401, -0.0635151789, 0.0375300944, 0.0490150824, 0.1846857667, 0.0434734374, -0.1836016178, 0.1054587811, -0.2515150607, -0.2000013739, -0.1759469211, 0.2301196903, -0.2421481013, 0.0548487157, -0.2659107745, 0.0627719611, -0.0416926146, 0.0269530844, -0.005927782, -0.0628840253, 0.0675144792, 0.3473338187, -0.1370735615, 0.3493901491, 0.2663169801, 0.03349353, -0.0034476253, -0.2782979906, -0.1931354105, -0.2683142722, 0.0700851008, -0.2921240628, 0.4918605983, -0.4018596709, -0.3019634485, -0.1804217845, 0.2724736333, 0.1233783066, -0.1268284917, -0.4767788649, 0.1658581197, -0.0587571412, 0.0838124454, 0.0044377646, 0.508733511, 0.059986867, 0.3379509747, -0.2266310304, -0.3412219286, 0.5358169079, -0.4137625992, -0.2617653012, -0.1319275051, -0.0639740229, 0.6073155403, -0.4836450815, -0.3043731153, -0.2037671804, 0.2719914615, -0.1200053543, -0.1490247399, 0.1555725485, -0.2652980089, 0.1745556146, -0.1892018616, -0.0870604515, 0.4393822849, -0.0882679075, 0.2773536742, -0.1299419552 ]
https://github.com/huggingface/datasets/issues/2943
Backwards compatibility broken for cached datasets that use `.filter()`
Well it can cause issue with anyone that updates `datasets` and re-run some code that uses filter, so I'm creating a PR
## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}` Related feature: https://github.com/huggingface/datasets/pull/2836 :question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :) ## Workaround Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`. ## Steps to reproduce the bug 1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists. 2. `pip install datasets==1.11.0` and run the following snippet: ```python from datasets import load_dataset ids = ["1272-141231-0000"] ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation") ds = ds.filter(lambda x: x["id"] in ids) ``` 3. `pip install datasets==1.12.1` and re-run the code again ## Expected results Same result as with the previous `datasets` version. ## Actual results ```bash Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1) Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow Traceback (most recent call last): File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module> ds = ds.filter(lambda x: x["id"] in ids) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter indices = self.map( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map return self._map_single( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single return Dataset.from_file(cache_file_name, info=info, split=self.split) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file return cls( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__ self.info.features = self.info.features.reorder_fields_as(inferred_features) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as return Features(recursive_reorder(self, other)) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position) ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)} Process finished with exit code 1 ``` ## Environment info - `datasets` version: 1.12.1 - Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 5.0.0
22
Backwards compatibility broken for cached datasets that use `.filter()` ## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}` Related feature: https://github.com/huggingface/datasets/pull/2836 :question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :) ## Workaround Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`. ## Steps to reproduce the bug 1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists. 2. `pip install datasets==1.11.0` and run the following snippet: ```python from datasets import load_dataset ids = ["1272-141231-0000"] ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation") ds = ds.filter(lambda x: x["id"] in ids) ``` 3. `pip install datasets==1.12.1` and re-run the code again ## Expected results Same result as with the previous `datasets` version. ## Actual results ```bash Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1) Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow Traceback (most recent call last): File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module> ds = ds.filter(lambda x: x["id"] in ids) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter indices = self.map( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map return self._map_single( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single return Dataset.from_file(cache_file_name, info=info, split=self.split) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file return cls( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__ self.info.features = self.info.features.reorder_fields_as(inferred_features) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as return Features(recursive_reorder(self, other)) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position) ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)} Process finished with exit code 1 ``` ## Environment info - `datasets` version: 1.12.1 - Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 5.0.0 Well it can cause issue with anyone that updates `datasets` and re-run some code that uses filter, so I'm creating a PR
[ -0.3049958348, 0.1243880838, -0.0465583764, 0.2368971109, 0.1517290324, -0.0666598156, -0.0069413707, 0.3285393715, 0.1737383604, 0.0293814819, -0.2313861847, 0.3581927419, -0.1503304988, 0.2527370155, -0.2977862358, -0.1378120482, 0.0444693454, 0.0321247876, -0.0614953265, 0.166412577, -0.1239175051, 0.4988580644, -0.1957765073, 0.0070795678, 0.2221652865, 0.0513210297, 0.1091236398, 0.138566196, 0.0798620358, -0.3392693698, 0.5981172919, 0.1064069718, -0.0348691642, 0.498096019, -0.0001213098, 0.099867776, 0.4398066998, -0.1073976383, -0.4579497874, -0.3686879575, -0.192854017, 0.1319934726, 0.2131137848, 0.0811629742, -0.0715122968, 0.1143416911, -0.303493619, -0.346046567, 0.2488765419, 0.1989328116, 0.2267285585, 0.2136144787, 0.2657418847, 0.066587165, 0.170179069, 0.0826525018, 0.0259718653, -0.0490864292, 0.2940285802, 0.014261202, 0.043685697, 0.4806104004, -0.3283523321, -0.2146463245, 0.3046185374, -0.2982533276, 0.1030709222, -0.3957037926, 0.2999309897, 0.0781370997, 0.1462642252, -0.255518198, -0.5773367882, -0.3483263254, -0.5121472478, -0.2868291736, 0.4164735079, -0.216358915, -0.2009968162, 0.2200830877, -0.3342647851, -0.0270038545, 0.0934983194, 0.0535101071, -0.0584819205, 0.2941842079, -0.1318320185, -0.0048626242, 0.0149830757, -0.132900551, 0.1924084276, -0.2750048339, -0.1968749017, 0.1725800484, -0.0155595224, -0.0546131916, 0.0954222009, 0.3323281705, 0.140570581, 0.0356287211, 0.0192098524, 0.0845401734, -0.0409641638, 0.0536773168, 0.1373275816, 0.475378722, 0.4901195765, 0.2467906624, 0.2727875113, 0.2854887545, -0.0078853024, -0.0013800253, 0.5281852484, -0.1666412055, 0.0747071281, 0.1517307162, 0.196695298, -0.4048683643, -0.3602132797, 0.1689626127, -0.0769995078, -0.1250401586, 0.2207264006, 0.0534940958, 0.1005648673, 0.2142349631, 0.1320811808, 0.0338568501, -0.1964725256, 0.0612344779, -0.1725096703, -0.1739457697, 0.0011616903, -0.1112991124, -0.0473052748, -0.89977777, 0.1747701168, 0.0482602492, 0.0063488153, 0.1058098748, -0.0697732121, 0.207434997, 0.1730166823, 0.5229284167, -0.2213587761, 0.0839003325, 0.1671907902, -0.548327744, -0.1386865377, 0.0125284484, -0.2415378094, -0.1112066656, 0.2085879147, 0.1735862345, -0.3296715915, 0.0126515068, -0.17029953, 0.4515431225, 0.2592140436, -0.5466870666, -0.0779574588, -0.213380143, -0.4382343888, -0.1997140199, 0.0971902013, 0.4131370485, -0.5942543149, -0.3216674924, 0.0216870401, 0.0319067985, 0.0399160981, -0.1229341999, -0.063439101, -0.2444722205, -0.1077689156, -0.1384182572, 0.3606542647, -0.3195546865, -0.733892858, 0.1537256837, 0.2360213548, 0.5342661738, -0.0709591061, -0.1374839246, 0.2813950479, -0.2578290701, 0.1459920853, 0.0848445743, -0.1649033576, -0.0079940017, -0.3409692049, -0.2346946597, 0.2238697708, -0.1502910852, 0.0904174298, 0.3348585963, 0.0790057704, -0.2542206049, 0.0502917804, 0.0350500681, 0.1049243882, 0.1990925223, 0.2453232259, 0.2237652242, 0.2863062918, -0.4365186989, -0.2801407278, 0.2506181598, 0.2141302824, -0.0600011088, -0.1524066925, -0.1982273012, -0.2678262889, -0.0884182155, -0.1589775681, -0.3044096231, 0.0788738504, 0.0225765873, 0.3843636513, -0.0385034606, -0.1145259663, 0.6218649745, 0.3084535897, 0.0944804996, -0.5049411654, 0.229641512, -0.0548514128, 0.0051691518, -0.0591857955, 0.0377827175, 0.2939595878, -0.0685256049, -0.2895757854, 0.407875061, 0.0392592028, 0.084168233, -0.0276337974, 0.1937460154, 0.1773459613, 0.2105839252, 0.0639338642, 0.2741822898, -0.0148837138, 0.2087214142, -0.195456177, 0.557248354, 0.0293753464, 0.3240505159, 0.1208347678, 0.148756206, 0.3702490628, 0.1305633932, -0.2189950645, -0.1370786875, 0.3204495311, -0.4587228, 0.0626674443, 0.0123394234, -0.1297932267, 0.3776263595, 0.0716826022, 0.0755119473, -0.0334524736, 0.3119212389, -0.1593657285, -0.042190969, 0.1813624054, 0.4024861157, 0.4014509916, 0.2088322341, 0.0507172868, 0.0758817792, -0.1615392268, -0.0248774402, 0.2082498521, 0.1293462515, -0.1696399748, 0.1535750628, 0.3034210205, 0.2732039392, -0.3061974645, 0.0933934823, -0.2356239706, 0.1195331365, -0.270581305, 0.3616366684, -0.2810101509, -0.2280866951, 0.076141715, -0.1678324938, -0.2615140676, -0.3875222206, 0.089899376, 0.3934392929, -0.086219281, 0.2567750216, 0.0147161586, 0.2445412278, 0.136167407, -0.1996820718, -0.4005717337, -0.2078815252, -0.3476482034, 0.0053976052, 0.2051323503, -0.1568491161, 0.2970358729, -0.0763099566, -0.2066247612, -0.390294075, -0.9079098701, -0.0486286655, -0.123964861, 0.6180298328, 0.3176228106, -0.0916265026, -0.1352719367, -0.2327560335, 0.1665794849, -0.0413150303, -0.4310828745, 0.1568385363, 0.0666227341, 0.1682221591, -0.2003851682, -0.2270279974, -0.1135412008, -0.1458190233, 0.0079398574, -0.1276904047, 0.0849654675, 0.3094039559, 0.1123534068, -0.3165157139, -0.0872011557, 0.1330857426, -0.3335401416, -0.0773374513, 0.0739419162, -0.054162316, -0.2302434891, -0.034139622, -0.0319806486, 0.0831893757, 0.3736632466, -0.4069587886, -0.3791774213, -0.2713731527, -0.0048744264, 0.2311773747, 0.068360962, 0.2319667786, 0.1899949759, 0.0391035639, -0.2794680893, -0.4342857301, -0.0886206329, -0.2365958691, 0.1095489264, 0.1482250243, 0.6309939027, 0.0345636867, 0.4764270186, 0.2947264612, 0.0489611253, 0.1398259848, 0.1815548688, 0.4972691238, -0.3258462548, -0.4095653892, -0.0467088632, -0.0461938493, 0.0505124666, -0.1531914324, 0.1795819253, -0.1120608747, -0.3487883806, 0.000088976, -0.2515632212, -0.2498103678, -0.2386271805, -0.0136443963, 0.2690052986, 0.3906219602, 0.1407706589, -0.3225954771, -0.1763848662, -0.0081372689, 0.4007481039, 0.1035773978, 0.2502198517, -0.1815419495, -0.0471423045, -0.4509257674, 0.492559284, 0.2151459008, 0.2648919821, -0.1177540421, -0.1629662067, -0.3294481337, -0.0492410697, 0.5928120017, -0.3631767035, 0.0443488397, 0.1019544229, -0.2081836015, -0.382881999, 0.0511292815, 0.0076627661, 0.3649113178, 0.0543546379, 0.3508075774, -0.0821149051, -0.0730158612, -0.0869157314, 0.2223753035, -0.1245945767, 0.0196017139, -0.2743616104, -0.2049434334, -0.143308565, 0.0314200111, -0.1528896391, 0.1650674194, -0.1800080687, -0.0685375854, -0.1131430715, -0.0563930348, 0.1153809577, 0.1347035617, 0.2945029438, -0.1000063792, 0.1187398955, 0.1441811323, 0.2405287623, 0.04236985, 0.458391726, -0.2755981982, -0.2780961096, -0.0670714304, 0.1208044589, -0.114640221, 0.3437377512, -0.2040164918, -0.0173406545, -0.0444572084, -0.1020425931, -0.0212400388, -0.1411033124, -0.001939329, 0.3703025281, -0.204925105, -0.2889373302, 0.2329640687, 0.2390516698, -0.2043491751, 0.436775893, 0.3422557414, -0.2809350789, 0.1687894613, -0.1999594271, 0.7136852741, 0.1521688104, -0.0298533011, 0.0877994671, -0.1695175022, 0.4524547458, 0.3125461042, 0.1559776068, -0.0667682663, -0.2370487005, -0.0655061752, -0.0347471349, 0.1580221951, -0.1110610664, -0.2036339194, 0.5631492734, -0.0592185557, -0.0353867561, 0.1755868793, -0.1173290387, -0.2023077309, 0.0190884974, -0.4372626245, 0.099125281, -0.0213232394, 0.2521654963, 0.0010581244, -0.0767222121, 0.0552208163, -0.3087654114, -0.2637814581, -0.0523921177, -0.3992073536, -0.0659277439, 0.2081235945, -0.433280319, 0.0089732604, 0.0526266396, 0.2566778362, -0.0081807002, -0.0373007692, -0.0075372811, 0.0702684447, 0.4977722168, 0.2345933914, 0.0250330679, 0.2863307297, 0.0890943483, 0.1867841035, 0.0195984095, -0.1420115829, -0.3608390987, -0.0186531637, 0.0038103643, 0.1180328727, -0.1588664055, 0.0288226064, -0.2428553104, 0.0213073175, -0.364861697, 0.0650937036, -0.0898337811, -0.0098389015, 0.0943212733, -0.0165627208, -0.226817742, -0.0053528175, 0.6357886791, -0.1438153237, -0.4367529452, 0.127720207, -0.0055662361, -0.2235843986, 0.0353587158, -0.2044414431, 0.0274193734, -0.2750842869, 0.2978782654, -0.2511248887, -0.1071279123, 0.2691295445, 0.3227922022, 0.1886078864, 0.2146122009, -0.1516674459, -0.3945676982, -0.1370823681, 0.2854580283, 0.0442744903, 0.0549807698, -0.0311486106, -0.3236714602, -0.1444216073, -0.2066645175, -0.2257885635, 0.0087526664, 0.3313151598, 0.0712086409, 0.1904872656, 0.2205638587, 0.1548970491, -0.1995647997, -0.0134116681, 0.0725863725, -0.203820318, -0.102092959, -0.093345888, 0.0935418084, -0.0911601558, -0.2648990452, -0.1546195447, -0.0057543651, 0.0614032373, -0.1646934003, 0.4182681739, 0.3214158118, -0.1182498485, -0.0536907464, -0.0327779986, 0.0472252741, 0.3035388887, 0.1383125186, 0.0185656752, 0.0326717421, 0.0427048579, 0.1994483471, -0.1875816137, 0.014096451, 0.082016468, 0.0423960686, -0.2510475516, 0.0270903334, 0.3569348454, -0.295296222, -0.0216397811, 0.5987740755, 0.3562681079, 0.2437597811, -0.1398067921, 0.1138302758, -0.0777392983, 0.1533572823, -0.2739046812, -0.3326784968, 0.205778718, 0.2732258439, 0.0609572381, 0.1860822588, -0.0021066871, 0.0291597173, 0.6171163917, 0.2176484168, 0.4478169084, -0.1253162473, 0.3508082032, 0.5271652937, 0.2326287627, 0.1843764484, 0.241720289, 0.0737254471, 0.0160929821, 0.5080396533, -0.0660088882, 0.2586891651, 0.2197473645, 0.1287705451, -0.0355183855, -0.4662743509, -0.1656748652, 0.0283220075, -0.0797490031, 0.2506761551, 0.1661577374, 0.0856602341, -0.2232845426, -0.3345984221, 0.0114881797, 0.024897946, -0.193626374, -0.2161095738, 0.1446396858, -0.3639173806, -0.0571490377, 0.013486567, -0.1208442077, 0.0703997388, 0.4529311359, -0.2469489723, -0.128362909, -0.4731904268, -0.3793772757, 0.0500456095, 0.1747638434, -0.0140105868, 0.4047631919, 0.258780688, -0.2298548669, 0.2219883502, 0.2503442466, 0.4856500924, 0.2468240112, 0.027692223, 0.0133466832, -0.1420494765, -0.0540064909, -0.0907230228, 0.3356420696, -0.0870835707, 0.0305686034, 0.1879348457, 0.1134100109, 0.0007339246, 0.2053903639, -0.0408540145, 0.3989400268, -0.4661819339, 0.0895344913, -0.2369527221, 0.2848792076, 0.0150147714, 0.1000138745, -0.2490254641, -0.1181152612, 0.171215117, 0.2318110913, 0.2039028108, -0.1064854339, 0.0748107806, 0.1348544508, 0.0739088506, 0.4687882364, -0.0930132717, -0.0892460048, -0.1464888304, -0.653509438, -0.0558623448, 0.1423008889, 0.1280672401, -0.0635151789, 0.0375300944, 0.0490150824, 0.1846857667, 0.0434734374, -0.1836016178, 0.1054587811, -0.2515150607, -0.2000013739, -0.1759469211, 0.2301196903, -0.2421481013, 0.0548487157, -0.2659107745, 0.0627719611, -0.0416926146, 0.0269530844, -0.005927782, -0.0628840253, 0.0675144792, 0.3473338187, -0.1370735615, 0.3493901491, 0.2663169801, 0.03349353, -0.0034476253, -0.2782979906, -0.1931354105, -0.2683142722, 0.0700851008, -0.2921240628, 0.4918605983, -0.4018596709, -0.3019634485, -0.1804217845, 0.2724736333, 0.1233783066, -0.1268284917, -0.4767788649, 0.1658581197, -0.0587571412, 0.0838124454, 0.0044377646, 0.508733511, 0.059986867, 0.3379509747, -0.2266310304, -0.3412219286, 0.5358169079, -0.4137625992, -0.2617653012, -0.1319275051, -0.0639740229, 0.6073155403, -0.4836450815, -0.3043731153, -0.2037671804, 0.2719914615, -0.1200053543, -0.1490247399, 0.1555725485, -0.2652980089, 0.1745556146, -0.1892018616, -0.0870604515, 0.4393822849, -0.0882679075, 0.2773536742, -0.1299419552 ]
https://github.com/huggingface/datasets/issues/2943
Backwards compatibility broken for cached datasets that use `.filter()`
I just merged a fix, let me know if you're still having this kind of issues :) We'll do a release soon to make this fix available
## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}` Related feature: https://github.com/huggingface/datasets/pull/2836 :question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :) ## Workaround Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`. ## Steps to reproduce the bug 1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists. 2. `pip install datasets==1.11.0` and run the following snippet: ```python from datasets import load_dataset ids = ["1272-141231-0000"] ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation") ds = ds.filter(lambda x: x["id"] in ids) ``` 3. `pip install datasets==1.12.1` and re-run the code again ## Expected results Same result as with the previous `datasets` version. ## Actual results ```bash Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1) Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow Traceback (most recent call last): File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module> ds = ds.filter(lambda x: x["id"] in ids) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter indices = self.map( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map return self._map_single( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single return Dataset.from_file(cache_file_name, info=info, split=self.split) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file return cls( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__ self.info.features = self.info.features.reorder_fields_as(inferred_features) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as return Features(recursive_reorder(self, other)) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position) ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)} Process finished with exit code 1 ``` ## Environment info - `datasets` version: 1.12.1 - Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 5.0.0
27
Backwards compatibility broken for cached datasets that use `.filter()` ## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}` Related feature: https://github.com/huggingface/datasets/pull/2836 :question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :) ## Workaround Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`. ## Steps to reproduce the bug 1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists. 2. `pip install datasets==1.11.0` and run the following snippet: ```python from datasets import load_dataset ids = ["1272-141231-0000"] ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation") ds = ds.filter(lambda x: x["id"] in ids) ``` 3. `pip install datasets==1.12.1` and re-run the code again ## Expected results Same result as with the previous `datasets` version. ## Actual results ```bash Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1) Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow Traceback (most recent call last): File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module> ds = ds.filter(lambda x: x["id"] in ids) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter indices = self.map( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map return self._map_single( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single return Dataset.from_file(cache_file_name, info=info, split=self.split) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file return cls( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__ self.info.features = self.info.features.reorder_fields_as(inferred_features) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as return Features(recursive_reorder(self, other)) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position) ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)} Process finished with exit code 1 ``` ## Environment info - `datasets` version: 1.12.1 - Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 5.0.0 I just merged a fix, let me know if you're still having this kind of issues :) We'll do a release soon to make this fix available
[ -0.3049958348, 0.1243880838, -0.0465583764, 0.2368971109, 0.1517290324, -0.0666598156, -0.0069413707, 0.3285393715, 0.1737383604, 0.0293814819, -0.2313861847, 0.3581927419, -0.1503304988, 0.2527370155, -0.2977862358, -0.1378120482, 0.0444693454, 0.0321247876, -0.0614953265, 0.166412577, -0.1239175051, 0.4988580644, -0.1957765073, 0.0070795678, 0.2221652865, 0.0513210297, 0.1091236398, 0.138566196, 0.0798620358, -0.3392693698, 0.5981172919, 0.1064069718, -0.0348691642, 0.498096019, -0.0001213098, 0.099867776, 0.4398066998, -0.1073976383, -0.4579497874, -0.3686879575, -0.192854017, 0.1319934726, 0.2131137848, 0.0811629742, -0.0715122968, 0.1143416911, -0.303493619, -0.346046567, 0.2488765419, 0.1989328116, 0.2267285585, 0.2136144787, 0.2657418847, 0.066587165, 0.170179069, 0.0826525018, 0.0259718653, -0.0490864292, 0.2940285802, 0.014261202, 0.043685697, 0.4806104004, -0.3283523321, -0.2146463245, 0.3046185374, -0.2982533276, 0.1030709222, -0.3957037926, 0.2999309897, 0.0781370997, 0.1462642252, -0.255518198, -0.5773367882, -0.3483263254, -0.5121472478, -0.2868291736, 0.4164735079, -0.216358915, -0.2009968162, 0.2200830877, -0.3342647851, -0.0270038545, 0.0934983194, 0.0535101071, -0.0584819205, 0.2941842079, -0.1318320185, -0.0048626242, 0.0149830757, -0.132900551, 0.1924084276, -0.2750048339, -0.1968749017, 0.1725800484, -0.0155595224, -0.0546131916, 0.0954222009, 0.3323281705, 0.140570581, 0.0356287211, 0.0192098524, 0.0845401734, -0.0409641638, 0.0536773168, 0.1373275816, 0.475378722, 0.4901195765, 0.2467906624, 0.2727875113, 0.2854887545, -0.0078853024, -0.0013800253, 0.5281852484, -0.1666412055, 0.0747071281, 0.1517307162, 0.196695298, -0.4048683643, -0.3602132797, 0.1689626127, -0.0769995078, -0.1250401586, 0.2207264006, 0.0534940958, 0.1005648673, 0.2142349631, 0.1320811808, 0.0338568501, -0.1964725256, 0.0612344779, -0.1725096703, -0.1739457697, 0.0011616903, -0.1112991124, -0.0473052748, -0.89977777, 0.1747701168, 0.0482602492, 0.0063488153, 0.1058098748, -0.0697732121, 0.207434997, 0.1730166823, 0.5229284167, -0.2213587761, 0.0839003325, 0.1671907902, -0.548327744, -0.1386865377, 0.0125284484, -0.2415378094, -0.1112066656, 0.2085879147, 0.1735862345, -0.3296715915, 0.0126515068, -0.17029953, 0.4515431225, 0.2592140436, -0.5466870666, -0.0779574588, -0.213380143, -0.4382343888, -0.1997140199, 0.0971902013, 0.4131370485, -0.5942543149, -0.3216674924, 0.0216870401, 0.0319067985, 0.0399160981, -0.1229341999, -0.063439101, -0.2444722205, -0.1077689156, -0.1384182572, 0.3606542647, -0.3195546865, -0.733892858, 0.1537256837, 0.2360213548, 0.5342661738, -0.0709591061, -0.1374839246, 0.2813950479, -0.2578290701, 0.1459920853, 0.0848445743, -0.1649033576, -0.0079940017, -0.3409692049, -0.2346946597, 0.2238697708, -0.1502910852, 0.0904174298, 0.3348585963, 0.0790057704, -0.2542206049, 0.0502917804, 0.0350500681, 0.1049243882, 0.1990925223, 0.2453232259, 0.2237652242, 0.2863062918, -0.4365186989, -0.2801407278, 0.2506181598, 0.2141302824, -0.0600011088, -0.1524066925, -0.1982273012, -0.2678262889, -0.0884182155, -0.1589775681, -0.3044096231, 0.0788738504, 0.0225765873, 0.3843636513, -0.0385034606, -0.1145259663, 0.6218649745, 0.3084535897, 0.0944804996, -0.5049411654, 0.229641512, -0.0548514128, 0.0051691518, -0.0591857955, 0.0377827175, 0.2939595878, -0.0685256049, -0.2895757854, 0.407875061, 0.0392592028, 0.084168233, -0.0276337974, 0.1937460154, 0.1773459613, 0.2105839252, 0.0639338642, 0.2741822898, -0.0148837138, 0.2087214142, -0.195456177, 0.557248354, 0.0293753464, 0.3240505159, 0.1208347678, 0.148756206, 0.3702490628, 0.1305633932, -0.2189950645, -0.1370786875, 0.3204495311, -0.4587228, 0.0626674443, 0.0123394234, -0.1297932267, 0.3776263595, 0.0716826022, 0.0755119473, -0.0334524736, 0.3119212389, -0.1593657285, -0.042190969, 0.1813624054, 0.4024861157, 0.4014509916, 0.2088322341, 0.0507172868, 0.0758817792, -0.1615392268, -0.0248774402, 0.2082498521, 0.1293462515, -0.1696399748, 0.1535750628, 0.3034210205, 0.2732039392, -0.3061974645, 0.0933934823, -0.2356239706, 0.1195331365, -0.270581305, 0.3616366684, -0.2810101509, -0.2280866951, 0.076141715, -0.1678324938, -0.2615140676, -0.3875222206, 0.089899376, 0.3934392929, -0.086219281, 0.2567750216, 0.0147161586, 0.2445412278, 0.136167407, -0.1996820718, -0.4005717337, -0.2078815252, -0.3476482034, 0.0053976052, 0.2051323503, -0.1568491161, 0.2970358729, -0.0763099566, -0.2066247612, -0.390294075, -0.9079098701, -0.0486286655, -0.123964861, 0.6180298328, 0.3176228106, -0.0916265026, -0.1352719367, -0.2327560335, 0.1665794849, -0.0413150303, -0.4310828745, 0.1568385363, 0.0666227341, 0.1682221591, -0.2003851682, -0.2270279974, -0.1135412008, -0.1458190233, 0.0079398574, -0.1276904047, 0.0849654675, 0.3094039559, 0.1123534068, -0.3165157139, -0.0872011557, 0.1330857426, -0.3335401416, -0.0773374513, 0.0739419162, -0.054162316, -0.2302434891, -0.034139622, -0.0319806486, 0.0831893757, 0.3736632466, -0.4069587886, -0.3791774213, -0.2713731527, -0.0048744264, 0.2311773747, 0.068360962, 0.2319667786, 0.1899949759, 0.0391035639, -0.2794680893, -0.4342857301, -0.0886206329, -0.2365958691, 0.1095489264, 0.1482250243, 0.6309939027, 0.0345636867, 0.4764270186, 0.2947264612, 0.0489611253, 0.1398259848, 0.1815548688, 0.4972691238, -0.3258462548, -0.4095653892, -0.0467088632, -0.0461938493, 0.0505124666, -0.1531914324, 0.1795819253, -0.1120608747, -0.3487883806, 0.000088976, -0.2515632212, -0.2498103678, -0.2386271805, -0.0136443963, 0.2690052986, 0.3906219602, 0.1407706589, -0.3225954771, -0.1763848662, -0.0081372689, 0.4007481039, 0.1035773978, 0.2502198517, -0.1815419495, -0.0471423045, -0.4509257674, 0.492559284, 0.2151459008, 0.2648919821, -0.1177540421, -0.1629662067, -0.3294481337, -0.0492410697, 0.5928120017, -0.3631767035, 0.0443488397, 0.1019544229, -0.2081836015, -0.382881999, 0.0511292815, 0.0076627661, 0.3649113178, 0.0543546379, 0.3508075774, -0.0821149051, -0.0730158612, -0.0869157314, 0.2223753035, -0.1245945767, 0.0196017139, -0.2743616104, -0.2049434334, -0.143308565, 0.0314200111, -0.1528896391, 0.1650674194, -0.1800080687, -0.0685375854, -0.1131430715, -0.0563930348, 0.1153809577, 0.1347035617, 0.2945029438, -0.1000063792, 0.1187398955, 0.1441811323, 0.2405287623, 0.04236985, 0.458391726, -0.2755981982, -0.2780961096, -0.0670714304, 0.1208044589, -0.114640221, 0.3437377512, -0.2040164918, -0.0173406545, -0.0444572084, -0.1020425931, -0.0212400388, -0.1411033124, -0.001939329, 0.3703025281, -0.204925105, -0.2889373302, 0.2329640687, 0.2390516698, -0.2043491751, 0.436775893, 0.3422557414, -0.2809350789, 0.1687894613, -0.1999594271, 0.7136852741, 0.1521688104, -0.0298533011, 0.0877994671, -0.1695175022, 0.4524547458, 0.3125461042, 0.1559776068, -0.0667682663, -0.2370487005, -0.0655061752, -0.0347471349, 0.1580221951, -0.1110610664, -0.2036339194, 0.5631492734, -0.0592185557, -0.0353867561, 0.1755868793, -0.1173290387, -0.2023077309, 0.0190884974, -0.4372626245, 0.099125281, -0.0213232394, 0.2521654963, 0.0010581244, -0.0767222121, 0.0552208163, -0.3087654114, -0.2637814581, -0.0523921177, -0.3992073536, -0.0659277439, 0.2081235945, -0.433280319, 0.0089732604, 0.0526266396, 0.2566778362, -0.0081807002, -0.0373007692, -0.0075372811, 0.0702684447, 0.4977722168, 0.2345933914, 0.0250330679, 0.2863307297, 0.0890943483, 0.1867841035, 0.0195984095, -0.1420115829, -0.3608390987, -0.0186531637, 0.0038103643, 0.1180328727, -0.1588664055, 0.0288226064, -0.2428553104, 0.0213073175, -0.364861697, 0.0650937036, -0.0898337811, -0.0098389015, 0.0943212733, -0.0165627208, -0.226817742, -0.0053528175, 0.6357886791, -0.1438153237, -0.4367529452, 0.127720207, -0.0055662361, -0.2235843986, 0.0353587158, -0.2044414431, 0.0274193734, -0.2750842869, 0.2978782654, -0.2511248887, -0.1071279123, 0.2691295445, 0.3227922022, 0.1886078864, 0.2146122009, -0.1516674459, -0.3945676982, -0.1370823681, 0.2854580283, 0.0442744903, 0.0549807698, -0.0311486106, -0.3236714602, -0.1444216073, -0.2066645175, -0.2257885635, 0.0087526664, 0.3313151598, 0.0712086409, 0.1904872656, 0.2205638587, 0.1548970491, -0.1995647997, -0.0134116681, 0.0725863725, -0.203820318, -0.102092959, -0.093345888, 0.0935418084, -0.0911601558, -0.2648990452, -0.1546195447, -0.0057543651, 0.0614032373, -0.1646934003, 0.4182681739, 0.3214158118, -0.1182498485, -0.0536907464, -0.0327779986, 0.0472252741, 0.3035388887, 0.1383125186, 0.0185656752, 0.0326717421, 0.0427048579, 0.1994483471, -0.1875816137, 0.014096451, 0.082016468, 0.0423960686, -0.2510475516, 0.0270903334, 0.3569348454, -0.295296222, -0.0216397811, 0.5987740755, 0.3562681079, 0.2437597811, -0.1398067921, 0.1138302758, -0.0777392983, 0.1533572823, -0.2739046812, -0.3326784968, 0.205778718, 0.2732258439, 0.0609572381, 0.1860822588, -0.0021066871, 0.0291597173, 0.6171163917, 0.2176484168, 0.4478169084, -0.1253162473, 0.3508082032, 0.5271652937, 0.2326287627, 0.1843764484, 0.241720289, 0.0737254471, 0.0160929821, 0.5080396533, -0.0660088882, 0.2586891651, 0.2197473645, 0.1287705451, -0.0355183855, -0.4662743509, -0.1656748652, 0.0283220075, -0.0797490031, 0.2506761551, 0.1661577374, 0.0856602341, -0.2232845426, -0.3345984221, 0.0114881797, 0.024897946, -0.193626374, -0.2161095738, 0.1446396858, -0.3639173806, -0.0571490377, 0.013486567, -0.1208442077, 0.0703997388, 0.4529311359, -0.2469489723, -0.128362909, -0.4731904268, -0.3793772757, 0.0500456095, 0.1747638434, -0.0140105868, 0.4047631919, 0.258780688, -0.2298548669, 0.2219883502, 0.2503442466, 0.4856500924, 0.2468240112, 0.027692223, 0.0133466832, -0.1420494765, -0.0540064909, -0.0907230228, 0.3356420696, -0.0870835707, 0.0305686034, 0.1879348457, 0.1134100109, 0.0007339246, 0.2053903639, -0.0408540145, 0.3989400268, -0.4661819339, 0.0895344913, -0.2369527221, 0.2848792076, 0.0150147714, 0.1000138745, -0.2490254641, -0.1181152612, 0.171215117, 0.2318110913, 0.2039028108, -0.1064854339, 0.0748107806, 0.1348544508, 0.0739088506, 0.4687882364, -0.0930132717, -0.0892460048, -0.1464888304, -0.653509438, -0.0558623448, 0.1423008889, 0.1280672401, -0.0635151789, 0.0375300944, 0.0490150824, 0.1846857667, 0.0434734374, -0.1836016178, 0.1054587811, -0.2515150607, -0.2000013739, -0.1759469211, 0.2301196903, -0.2421481013, 0.0548487157, -0.2659107745, 0.0627719611, -0.0416926146, 0.0269530844, -0.005927782, -0.0628840253, 0.0675144792, 0.3473338187, -0.1370735615, 0.3493901491, 0.2663169801, 0.03349353, -0.0034476253, -0.2782979906, -0.1931354105, -0.2683142722, 0.0700851008, -0.2921240628, 0.4918605983, -0.4018596709, -0.3019634485, -0.1804217845, 0.2724736333, 0.1233783066, -0.1268284917, -0.4767788649, 0.1658581197, -0.0587571412, 0.0838124454, 0.0044377646, 0.508733511, 0.059986867, 0.3379509747, -0.2266310304, -0.3412219286, 0.5358169079, -0.4137625992, -0.2617653012, -0.1319275051, -0.0639740229, 0.6073155403, -0.4836450815, -0.3043731153, -0.2037671804, 0.2719914615, -0.1200053543, -0.1490247399, 0.1555725485, -0.2652980089, 0.1745556146, -0.1892018616, -0.0870604515, 0.4393822849, -0.0882679075, 0.2773536742, -0.1299419552 ]
https://github.com/huggingface/datasets/issues/2943
Backwards compatibility broken for cached datasets that use `.filter()`
Definitely works on several manual cases with our dummy datasets, thank you @lhoestq !
## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}` Related feature: https://github.com/huggingface/datasets/pull/2836 :question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :) ## Workaround Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`. ## Steps to reproduce the bug 1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists. 2. `pip install datasets==1.11.0` and run the following snippet: ```python from datasets import load_dataset ids = ["1272-141231-0000"] ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation") ds = ds.filter(lambda x: x["id"] in ids) ``` 3. `pip install datasets==1.12.1` and re-run the code again ## Expected results Same result as with the previous `datasets` version. ## Actual results ```bash Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1) Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow Traceback (most recent call last): File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module> ds = ds.filter(lambda x: x["id"] in ids) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter indices = self.map( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map return self._map_single( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single return Dataset.from_file(cache_file_name, info=info, split=self.split) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file return cls( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__ self.info.features = self.info.features.reorder_fields_as(inferred_features) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as return Features(recursive_reorder(self, other)) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position) ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)} Process finished with exit code 1 ``` ## Environment info - `datasets` version: 1.12.1 - Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 5.0.0
14
Backwards compatibility broken for cached datasets that use `.filter()` ## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}` Related feature: https://github.com/huggingface/datasets/pull/2836 :question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :) ## Workaround Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`. ## Steps to reproduce the bug 1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists. 2. `pip install datasets==1.11.0` and run the following snippet: ```python from datasets import load_dataset ids = ["1272-141231-0000"] ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation") ds = ds.filter(lambda x: x["id"] in ids) ``` 3. `pip install datasets==1.12.1` and re-run the code again ## Expected results Same result as with the previous `datasets` version. ## Actual results ```bash Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1) Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow Traceback (most recent call last): File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module> ds = ds.filter(lambda x: x["id"] in ids) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter indices = self.map( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map return self._map_single( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single return Dataset.from_file(cache_file_name, info=info, split=self.split) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file return cls( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__ self.info.features = self.info.features.reorder_fields_as(inferred_features) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as return Features(recursive_reorder(self, other)) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position) ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)} Process finished with exit code 1 ``` ## Environment info - `datasets` version: 1.12.1 - Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 5.0.0 Definitely works on several manual cases with our dummy datasets, thank you @lhoestq !
[ -0.3049958348, 0.1243880838, -0.0465583764, 0.2368971109, 0.1517290324, -0.0666598156, -0.0069413707, 0.3285393715, 0.1737383604, 0.0293814819, -0.2313861847, 0.3581927419, -0.1503304988, 0.2527370155, -0.2977862358, -0.1378120482, 0.0444693454, 0.0321247876, -0.0614953265, 0.166412577, -0.1239175051, 0.4988580644, -0.1957765073, 0.0070795678, 0.2221652865, 0.0513210297, 0.1091236398, 0.138566196, 0.0798620358, -0.3392693698, 0.5981172919, 0.1064069718, -0.0348691642, 0.498096019, -0.0001213098, 0.099867776, 0.4398066998, -0.1073976383, -0.4579497874, -0.3686879575, -0.192854017, 0.1319934726, 0.2131137848, 0.0811629742, -0.0715122968, 0.1143416911, -0.303493619, -0.346046567, 0.2488765419, 0.1989328116, 0.2267285585, 0.2136144787, 0.2657418847, 0.066587165, 0.170179069, 0.0826525018, 0.0259718653, -0.0490864292, 0.2940285802, 0.014261202, 0.043685697, 0.4806104004, -0.3283523321, -0.2146463245, 0.3046185374, -0.2982533276, 0.1030709222, -0.3957037926, 0.2999309897, 0.0781370997, 0.1462642252, -0.255518198, -0.5773367882, -0.3483263254, -0.5121472478, -0.2868291736, 0.4164735079, -0.216358915, -0.2009968162, 0.2200830877, -0.3342647851, -0.0270038545, 0.0934983194, 0.0535101071, -0.0584819205, 0.2941842079, -0.1318320185, -0.0048626242, 0.0149830757, -0.132900551, 0.1924084276, -0.2750048339, -0.1968749017, 0.1725800484, -0.0155595224, -0.0546131916, 0.0954222009, 0.3323281705, 0.140570581, 0.0356287211, 0.0192098524, 0.0845401734, -0.0409641638, 0.0536773168, 0.1373275816, 0.475378722, 0.4901195765, 0.2467906624, 0.2727875113, 0.2854887545, -0.0078853024, -0.0013800253, 0.5281852484, -0.1666412055, 0.0747071281, 0.1517307162, 0.196695298, -0.4048683643, -0.3602132797, 0.1689626127, -0.0769995078, -0.1250401586, 0.2207264006, 0.0534940958, 0.1005648673, 0.2142349631, 0.1320811808, 0.0338568501, -0.1964725256, 0.0612344779, -0.1725096703, -0.1739457697, 0.0011616903, -0.1112991124, -0.0473052748, -0.89977777, 0.1747701168, 0.0482602492, 0.0063488153, 0.1058098748, -0.0697732121, 0.207434997, 0.1730166823, 0.5229284167, -0.2213587761, 0.0839003325, 0.1671907902, -0.548327744, -0.1386865377, 0.0125284484, -0.2415378094, -0.1112066656, 0.2085879147, 0.1735862345, -0.3296715915, 0.0126515068, -0.17029953, 0.4515431225, 0.2592140436, -0.5466870666, -0.0779574588, -0.213380143, -0.4382343888, -0.1997140199, 0.0971902013, 0.4131370485, -0.5942543149, -0.3216674924, 0.0216870401, 0.0319067985, 0.0399160981, -0.1229341999, -0.063439101, -0.2444722205, -0.1077689156, -0.1384182572, 0.3606542647, -0.3195546865, -0.733892858, 0.1537256837, 0.2360213548, 0.5342661738, -0.0709591061, -0.1374839246, 0.2813950479, -0.2578290701, 0.1459920853, 0.0848445743, -0.1649033576, -0.0079940017, -0.3409692049, -0.2346946597, 0.2238697708, -0.1502910852, 0.0904174298, 0.3348585963, 0.0790057704, -0.2542206049, 0.0502917804, 0.0350500681, 0.1049243882, 0.1990925223, 0.2453232259, 0.2237652242, 0.2863062918, -0.4365186989, -0.2801407278, 0.2506181598, 0.2141302824, -0.0600011088, -0.1524066925, -0.1982273012, -0.2678262889, -0.0884182155, -0.1589775681, -0.3044096231, 0.0788738504, 0.0225765873, 0.3843636513, -0.0385034606, -0.1145259663, 0.6218649745, 0.3084535897, 0.0944804996, -0.5049411654, 0.229641512, -0.0548514128, 0.0051691518, -0.0591857955, 0.0377827175, 0.2939595878, -0.0685256049, -0.2895757854, 0.407875061, 0.0392592028, 0.084168233, -0.0276337974, 0.1937460154, 0.1773459613, 0.2105839252, 0.0639338642, 0.2741822898, -0.0148837138, 0.2087214142, -0.195456177, 0.557248354, 0.0293753464, 0.3240505159, 0.1208347678, 0.148756206, 0.3702490628, 0.1305633932, -0.2189950645, -0.1370786875, 0.3204495311, -0.4587228, 0.0626674443, 0.0123394234, -0.1297932267, 0.3776263595, 0.0716826022, 0.0755119473, -0.0334524736, 0.3119212389, -0.1593657285, -0.042190969, 0.1813624054, 0.4024861157, 0.4014509916, 0.2088322341, 0.0507172868, 0.0758817792, -0.1615392268, -0.0248774402, 0.2082498521, 0.1293462515, -0.1696399748, 0.1535750628, 0.3034210205, 0.2732039392, -0.3061974645, 0.0933934823, -0.2356239706, 0.1195331365, -0.270581305, 0.3616366684, -0.2810101509, -0.2280866951, 0.076141715, -0.1678324938, -0.2615140676, -0.3875222206, 0.089899376, 0.3934392929, -0.086219281, 0.2567750216, 0.0147161586, 0.2445412278, 0.136167407, -0.1996820718, -0.4005717337, -0.2078815252, -0.3476482034, 0.0053976052, 0.2051323503, -0.1568491161, 0.2970358729, -0.0763099566, -0.2066247612, -0.390294075, -0.9079098701, -0.0486286655, -0.123964861, 0.6180298328, 0.3176228106, -0.0916265026, -0.1352719367, -0.2327560335, 0.1665794849, -0.0413150303, -0.4310828745, 0.1568385363, 0.0666227341, 0.1682221591, -0.2003851682, -0.2270279974, -0.1135412008, -0.1458190233, 0.0079398574, -0.1276904047, 0.0849654675, 0.3094039559, 0.1123534068, -0.3165157139, -0.0872011557, 0.1330857426, -0.3335401416, -0.0773374513, 0.0739419162, -0.054162316, -0.2302434891, -0.034139622, -0.0319806486, 0.0831893757, 0.3736632466, -0.4069587886, -0.3791774213, -0.2713731527, -0.0048744264, 0.2311773747, 0.068360962, 0.2319667786, 0.1899949759, 0.0391035639, -0.2794680893, -0.4342857301, -0.0886206329, -0.2365958691, 0.1095489264, 0.1482250243, 0.6309939027, 0.0345636867, 0.4764270186, 0.2947264612, 0.0489611253, 0.1398259848, 0.1815548688, 0.4972691238, -0.3258462548, -0.4095653892, -0.0467088632, -0.0461938493, 0.0505124666, -0.1531914324, 0.1795819253, -0.1120608747, -0.3487883806, 0.000088976, -0.2515632212, -0.2498103678, -0.2386271805, -0.0136443963, 0.2690052986, 0.3906219602, 0.1407706589, -0.3225954771, -0.1763848662, -0.0081372689, 0.4007481039, 0.1035773978, 0.2502198517, -0.1815419495, -0.0471423045, -0.4509257674, 0.492559284, 0.2151459008, 0.2648919821, -0.1177540421, -0.1629662067, -0.3294481337, -0.0492410697, 0.5928120017, -0.3631767035, 0.0443488397, 0.1019544229, -0.2081836015, -0.382881999, 0.0511292815, 0.0076627661, 0.3649113178, 0.0543546379, 0.3508075774, -0.0821149051, -0.0730158612, -0.0869157314, 0.2223753035, -0.1245945767, 0.0196017139, -0.2743616104, -0.2049434334, -0.143308565, 0.0314200111, -0.1528896391, 0.1650674194, -0.1800080687, -0.0685375854, -0.1131430715, -0.0563930348, 0.1153809577, 0.1347035617, 0.2945029438, -0.1000063792, 0.1187398955, 0.1441811323, 0.2405287623, 0.04236985, 0.458391726, -0.2755981982, -0.2780961096, -0.0670714304, 0.1208044589, -0.114640221, 0.3437377512, -0.2040164918, -0.0173406545, -0.0444572084, -0.1020425931, -0.0212400388, -0.1411033124, -0.001939329, 0.3703025281, -0.204925105, -0.2889373302, 0.2329640687, 0.2390516698, -0.2043491751, 0.436775893, 0.3422557414, -0.2809350789, 0.1687894613, -0.1999594271, 0.7136852741, 0.1521688104, -0.0298533011, 0.0877994671, -0.1695175022, 0.4524547458, 0.3125461042, 0.1559776068, -0.0667682663, -0.2370487005, -0.0655061752, -0.0347471349, 0.1580221951, -0.1110610664, -0.2036339194, 0.5631492734, -0.0592185557, -0.0353867561, 0.1755868793, -0.1173290387, -0.2023077309, 0.0190884974, -0.4372626245, 0.099125281, -0.0213232394, 0.2521654963, 0.0010581244, -0.0767222121, 0.0552208163, -0.3087654114, -0.2637814581, -0.0523921177, -0.3992073536, -0.0659277439, 0.2081235945, -0.433280319, 0.0089732604, 0.0526266396, 0.2566778362, -0.0081807002, -0.0373007692, -0.0075372811, 0.0702684447, 0.4977722168, 0.2345933914, 0.0250330679, 0.2863307297, 0.0890943483, 0.1867841035, 0.0195984095, -0.1420115829, -0.3608390987, -0.0186531637, 0.0038103643, 0.1180328727, -0.1588664055, 0.0288226064, -0.2428553104, 0.0213073175, -0.364861697, 0.0650937036, -0.0898337811, -0.0098389015, 0.0943212733, -0.0165627208, -0.226817742, -0.0053528175, 0.6357886791, -0.1438153237, -0.4367529452, 0.127720207, -0.0055662361, -0.2235843986, 0.0353587158, -0.2044414431, 0.0274193734, -0.2750842869, 0.2978782654, -0.2511248887, -0.1071279123, 0.2691295445, 0.3227922022, 0.1886078864, 0.2146122009, -0.1516674459, -0.3945676982, -0.1370823681, 0.2854580283, 0.0442744903, 0.0549807698, -0.0311486106, -0.3236714602, -0.1444216073, -0.2066645175, -0.2257885635, 0.0087526664, 0.3313151598, 0.0712086409, 0.1904872656, 0.2205638587, 0.1548970491, -0.1995647997, -0.0134116681, 0.0725863725, -0.203820318, -0.102092959, -0.093345888, 0.0935418084, -0.0911601558, -0.2648990452, -0.1546195447, -0.0057543651, 0.0614032373, -0.1646934003, 0.4182681739, 0.3214158118, -0.1182498485, -0.0536907464, -0.0327779986, 0.0472252741, 0.3035388887, 0.1383125186, 0.0185656752, 0.0326717421, 0.0427048579, 0.1994483471, -0.1875816137, 0.014096451, 0.082016468, 0.0423960686, -0.2510475516, 0.0270903334, 0.3569348454, -0.295296222, -0.0216397811, 0.5987740755, 0.3562681079, 0.2437597811, -0.1398067921, 0.1138302758, -0.0777392983, 0.1533572823, -0.2739046812, -0.3326784968, 0.205778718, 0.2732258439, 0.0609572381, 0.1860822588, -0.0021066871, 0.0291597173, 0.6171163917, 0.2176484168, 0.4478169084, -0.1253162473, 0.3508082032, 0.5271652937, 0.2326287627, 0.1843764484, 0.241720289, 0.0737254471, 0.0160929821, 0.5080396533, -0.0660088882, 0.2586891651, 0.2197473645, 0.1287705451, -0.0355183855, -0.4662743509, -0.1656748652, 0.0283220075, -0.0797490031, 0.2506761551, 0.1661577374, 0.0856602341, -0.2232845426, -0.3345984221, 0.0114881797, 0.024897946, -0.193626374, -0.2161095738, 0.1446396858, -0.3639173806, -0.0571490377, 0.013486567, -0.1208442077, 0.0703997388, 0.4529311359, -0.2469489723, -0.128362909, -0.4731904268, -0.3793772757, 0.0500456095, 0.1747638434, -0.0140105868, 0.4047631919, 0.258780688, -0.2298548669, 0.2219883502, 0.2503442466, 0.4856500924, 0.2468240112, 0.027692223, 0.0133466832, -0.1420494765, -0.0540064909, -0.0907230228, 0.3356420696, -0.0870835707, 0.0305686034, 0.1879348457, 0.1134100109, 0.0007339246, 0.2053903639, -0.0408540145, 0.3989400268, -0.4661819339, 0.0895344913, -0.2369527221, 0.2848792076, 0.0150147714, 0.1000138745, -0.2490254641, -0.1181152612, 0.171215117, 0.2318110913, 0.2039028108, -0.1064854339, 0.0748107806, 0.1348544508, 0.0739088506, 0.4687882364, -0.0930132717, -0.0892460048, -0.1464888304, -0.653509438, -0.0558623448, 0.1423008889, 0.1280672401, -0.0635151789, 0.0375300944, 0.0490150824, 0.1846857667, 0.0434734374, -0.1836016178, 0.1054587811, -0.2515150607, -0.2000013739, -0.1759469211, 0.2301196903, -0.2421481013, 0.0548487157, -0.2659107745, 0.0627719611, -0.0416926146, 0.0269530844, -0.005927782, -0.0628840253, 0.0675144792, 0.3473338187, -0.1370735615, 0.3493901491, 0.2663169801, 0.03349353, -0.0034476253, -0.2782979906, -0.1931354105, -0.2683142722, 0.0700851008, -0.2921240628, 0.4918605983, -0.4018596709, -0.3019634485, -0.1804217845, 0.2724736333, 0.1233783066, -0.1268284917, -0.4767788649, 0.1658581197, -0.0587571412, 0.0838124454, 0.0044377646, 0.508733511, 0.059986867, 0.3379509747, -0.2266310304, -0.3412219286, 0.5358169079, -0.4137625992, -0.2617653012, -0.1319275051, -0.0639740229, 0.6073155403, -0.4836450815, -0.3043731153, -0.2037671804, 0.2719914615, -0.1200053543, -0.1490247399, 0.1555725485, -0.2652980089, 0.1745556146, -0.1892018616, -0.0870604515, 0.4393822849, -0.0882679075, 0.2773536742, -0.1299419552 ]
https://github.com/huggingface/datasets/issues/2943
Backwards compatibility broken for cached datasets that use `.filter()`
Fixed by #2947.
## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}` Related feature: https://github.com/huggingface/datasets/pull/2836 :question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :) ## Workaround Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`. ## Steps to reproduce the bug 1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists. 2. `pip install datasets==1.11.0` and run the following snippet: ```python from datasets import load_dataset ids = ["1272-141231-0000"] ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation") ds = ds.filter(lambda x: x["id"] in ids) ``` 3. `pip install datasets==1.12.1` and re-run the code again ## Expected results Same result as with the previous `datasets` version. ## Actual results ```bash Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1) Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow Traceback (most recent call last): File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module> ds = ds.filter(lambda x: x["id"] in ids) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter indices = self.map( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map return self._map_single( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single return Dataset.from_file(cache_file_name, info=info, split=self.split) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file return cls( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__ self.info.features = self.info.features.reorder_fields_as(inferred_features) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as return Features(recursive_reorder(self, other)) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position) ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)} Process finished with exit code 1 ``` ## Environment info - `datasets` version: 1.12.1 - Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 5.0.0
3
Backwards compatibility broken for cached datasets that use `.filter()` ## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}` Related feature: https://github.com/huggingface/datasets/pull/2836 :question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :) ## Workaround Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`. ## Steps to reproduce the bug 1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists. 2. `pip install datasets==1.11.0` and run the following snippet: ```python from datasets import load_dataset ids = ["1272-141231-0000"] ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation") ds = ds.filter(lambda x: x["id"] in ids) ``` 3. `pip install datasets==1.12.1` and re-run the code again ## Expected results Same result as with the previous `datasets` version. ## Actual results ```bash Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1) Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow Traceback (most recent call last): File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module> ds = ds.filter(lambda x: x["id"] in ids) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter indices = self.map( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map return self._map_single( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper out = func(self, *args, **kwargs) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single return Dataset.from_file(cache_file_name, info=info, split=self.split) File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file return cls( File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__ self.info.features = self.info.features.reorder_fields_as(inferred_features) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as return Features(recursive_reorder(self, other)) File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position) ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)} Process finished with exit code 1 ``` ## Environment info - `datasets` version: 1.12.1 - Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 5.0.0 Fixed by #2947.
[ -0.3049958348, 0.1243880838, -0.0465583764, 0.2368971109, 0.1517290324, -0.0666598156, -0.0069413707, 0.3285393715, 0.1737383604, 0.0293814819, -0.2313861847, 0.3581927419, -0.1503304988, 0.2527370155, -0.2977862358, -0.1378120482, 0.0444693454, 0.0321247876, -0.0614953265, 0.166412577, -0.1239175051, 0.4988580644, -0.1957765073, 0.0070795678, 0.2221652865, 0.0513210297, 0.1091236398, 0.138566196, 0.0798620358, -0.3392693698, 0.5981172919, 0.1064069718, -0.0348691642, 0.498096019, -0.0001213098, 0.099867776, 0.4398066998, -0.1073976383, -0.4579497874, -0.3686879575, -0.192854017, 0.1319934726, 0.2131137848, 0.0811629742, -0.0715122968, 0.1143416911, -0.303493619, -0.346046567, 0.2488765419, 0.1989328116, 0.2267285585, 0.2136144787, 0.2657418847, 0.066587165, 0.170179069, 0.0826525018, 0.0259718653, -0.0490864292, 0.2940285802, 0.014261202, 0.043685697, 0.4806104004, -0.3283523321, -0.2146463245, 0.3046185374, -0.2982533276, 0.1030709222, -0.3957037926, 0.2999309897, 0.0781370997, 0.1462642252, -0.255518198, -0.5773367882, -0.3483263254, -0.5121472478, -0.2868291736, 0.4164735079, -0.216358915, -0.2009968162, 0.2200830877, -0.3342647851, -0.0270038545, 0.0934983194, 0.0535101071, -0.0584819205, 0.2941842079, -0.1318320185, -0.0048626242, 0.0149830757, -0.132900551, 0.1924084276, -0.2750048339, -0.1968749017, 0.1725800484, -0.0155595224, -0.0546131916, 0.0954222009, 0.3323281705, 0.140570581, 0.0356287211, 0.0192098524, 0.0845401734, -0.0409641638, 0.0536773168, 0.1373275816, 0.475378722, 0.4901195765, 0.2467906624, 0.2727875113, 0.2854887545, -0.0078853024, -0.0013800253, 0.5281852484, -0.1666412055, 0.0747071281, 0.1517307162, 0.196695298, -0.4048683643, -0.3602132797, 0.1689626127, -0.0769995078, -0.1250401586, 0.2207264006, 0.0534940958, 0.1005648673, 0.2142349631, 0.1320811808, 0.0338568501, -0.1964725256, 0.0612344779, -0.1725096703, -0.1739457697, 0.0011616903, -0.1112991124, -0.0473052748, -0.89977777, 0.1747701168, 0.0482602492, 0.0063488153, 0.1058098748, -0.0697732121, 0.207434997, 0.1730166823, 0.5229284167, -0.2213587761, 0.0839003325, 0.1671907902, -0.548327744, -0.1386865377, 0.0125284484, -0.2415378094, -0.1112066656, 0.2085879147, 0.1735862345, -0.3296715915, 0.0126515068, -0.17029953, 0.4515431225, 0.2592140436, -0.5466870666, -0.0779574588, -0.213380143, -0.4382343888, -0.1997140199, 0.0971902013, 0.4131370485, -0.5942543149, -0.3216674924, 0.0216870401, 0.0319067985, 0.0399160981, -0.1229341999, -0.063439101, -0.2444722205, -0.1077689156, -0.1384182572, 0.3606542647, -0.3195546865, -0.733892858, 0.1537256837, 0.2360213548, 0.5342661738, -0.0709591061, -0.1374839246, 0.2813950479, -0.2578290701, 0.1459920853, 0.0848445743, -0.1649033576, -0.0079940017, -0.3409692049, -0.2346946597, 0.2238697708, -0.1502910852, 0.0904174298, 0.3348585963, 0.0790057704, -0.2542206049, 0.0502917804, 0.0350500681, 0.1049243882, 0.1990925223, 0.2453232259, 0.2237652242, 0.2863062918, -0.4365186989, -0.2801407278, 0.2506181598, 0.2141302824, -0.0600011088, -0.1524066925, -0.1982273012, -0.2678262889, -0.0884182155, -0.1589775681, -0.3044096231, 0.0788738504, 0.0225765873, 0.3843636513, -0.0385034606, -0.1145259663, 0.6218649745, 0.3084535897, 0.0944804996, -0.5049411654, 0.229641512, -0.0548514128, 0.0051691518, -0.0591857955, 0.0377827175, 0.2939595878, -0.0685256049, -0.2895757854, 0.407875061, 0.0392592028, 0.084168233, -0.0276337974, 0.1937460154, 0.1773459613, 0.2105839252, 0.0639338642, 0.2741822898, -0.0148837138, 0.2087214142, -0.195456177, 0.557248354, 0.0293753464, 0.3240505159, 0.1208347678, 0.148756206, 0.3702490628, 0.1305633932, -0.2189950645, -0.1370786875, 0.3204495311, -0.4587228, 0.0626674443, 0.0123394234, -0.1297932267, 0.3776263595, 0.0716826022, 0.0755119473, -0.0334524736, 0.3119212389, -0.1593657285, -0.042190969, 0.1813624054, 0.4024861157, 0.4014509916, 0.2088322341, 0.0507172868, 0.0758817792, -0.1615392268, -0.0248774402, 0.2082498521, 0.1293462515, -0.1696399748, 0.1535750628, 0.3034210205, 0.2732039392, -0.3061974645, 0.0933934823, -0.2356239706, 0.1195331365, -0.270581305, 0.3616366684, -0.2810101509, -0.2280866951, 0.076141715, -0.1678324938, -0.2615140676, -0.3875222206, 0.089899376, 0.3934392929, -0.086219281, 0.2567750216, 0.0147161586, 0.2445412278, 0.136167407, -0.1996820718, -0.4005717337, -0.2078815252, -0.3476482034, 0.0053976052, 0.2051323503, -0.1568491161, 0.2970358729, -0.0763099566, -0.2066247612, -0.390294075, -0.9079098701, -0.0486286655, -0.123964861, 0.6180298328, 0.3176228106, -0.0916265026, -0.1352719367, -0.2327560335, 0.1665794849, -0.0413150303, -0.4310828745, 0.1568385363, 0.0666227341, 0.1682221591, -0.2003851682, -0.2270279974, -0.1135412008, -0.1458190233, 0.0079398574, -0.1276904047, 0.0849654675, 0.3094039559, 0.1123534068, -0.3165157139, -0.0872011557, 0.1330857426, -0.3335401416, -0.0773374513, 0.0739419162, -0.054162316, -0.2302434891, -0.034139622, -0.0319806486, 0.0831893757, 0.3736632466, -0.4069587886, -0.3791774213, -0.2713731527, -0.0048744264, 0.2311773747, 0.068360962, 0.2319667786, 0.1899949759, 0.0391035639, -0.2794680893, -0.4342857301, -0.0886206329, -0.2365958691, 0.1095489264, 0.1482250243, 0.6309939027, 0.0345636867, 0.4764270186, 0.2947264612, 0.0489611253, 0.1398259848, 0.1815548688, 0.4972691238, -0.3258462548, -0.4095653892, -0.0467088632, -0.0461938493, 0.0505124666, -0.1531914324, 0.1795819253, -0.1120608747, -0.3487883806, 0.000088976, -0.2515632212, -0.2498103678, -0.2386271805, -0.0136443963, 0.2690052986, 0.3906219602, 0.1407706589, -0.3225954771, -0.1763848662, -0.0081372689, 0.4007481039, 0.1035773978, 0.2502198517, -0.1815419495, -0.0471423045, -0.4509257674, 0.492559284, 0.2151459008, 0.2648919821, -0.1177540421, -0.1629662067, -0.3294481337, -0.0492410697, 0.5928120017, -0.3631767035, 0.0443488397, 0.1019544229, -0.2081836015, -0.382881999, 0.0511292815, 0.0076627661, 0.3649113178, 0.0543546379, 0.3508075774, -0.0821149051, -0.0730158612, -0.0869157314, 0.2223753035, -0.1245945767, 0.0196017139, -0.2743616104, -0.2049434334, -0.143308565, 0.0314200111, -0.1528896391, 0.1650674194, -0.1800080687, -0.0685375854, -0.1131430715, -0.0563930348, 0.1153809577, 0.1347035617, 0.2945029438, -0.1000063792, 0.1187398955, 0.1441811323, 0.2405287623, 0.04236985, 0.458391726, -0.2755981982, -0.2780961096, -0.0670714304, 0.1208044589, -0.114640221, 0.3437377512, -0.2040164918, -0.0173406545, -0.0444572084, -0.1020425931, -0.0212400388, -0.1411033124, -0.001939329, 0.3703025281, -0.204925105, -0.2889373302, 0.2329640687, 0.2390516698, -0.2043491751, 0.436775893, 0.3422557414, -0.2809350789, 0.1687894613, -0.1999594271, 0.7136852741, 0.1521688104, -0.0298533011, 0.0877994671, -0.1695175022, 0.4524547458, 0.3125461042, 0.1559776068, -0.0667682663, -0.2370487005, -0.0655061752, -0.0347471349, 0.1580221951, -0.1110610664, -0.2036339194, 0.5631492734, -0.0592185557, -0.0353867561, 0.1755868793, -0.1173290387, -0.2023077309, 0.0190884974, -0.4372626245, 0.099125281, -0.0213232394, 0.2521654963, 0.0010581244, -0.0767222121, 0.0552208163, -0.3087654114, -0.2637814581, -0.0523921177, -0.3992073536, -0.0659277439, 0.2081235945, -0.433280319, 0.0089732604, 0.0526266396, 0.2566778362, -0.0081807002, -0.0373007692, -0.0075372811, 0.0702684447, 0.4977722168, 0.2345933914, 0.0250330679, 0.2863307297, 0.0890943483, 0.1867841035, 0.0195984095, -0.1420115829, -0.3608390987, -0.0186531637, 0.0038103643, 0.1180328727, -0.1588664055, 0.0288226064, -0.2428553104, 0.0213073175, -0.364861697, 0.0650937036, -0.0898337811, -0.0098389015, 0.0943212733, -0.0165627208, -0.226817742, -0.0053528175, 0.6357886791, -0.1438153237, -0.4367529452, 0.127720207, -0.0055662361, -0.2235843986, 0.0353587158, -0.2044414431, 0.0274193734, -0.2750842869, 0.2978782654, -0.2511248887, -0.1071279123, 0.2691295445, 0.3227922022, 0.1886078864, 0.2146122009, -0.1516674459, -0.3945676982, -0.1370823681, 0.2854580283, 0.0442744903, 0.0549807698, -0.0311486106, -0.3236714602, -0.1444216073, -0.2066645175, -0.2257885635, 0.0087526664, 0.3313151598, 0.0712086409, 0.1904872656, 0.2205638587, 0.1548970491, -0.1995647997, -0.0134116681, 0.0725863725, -0.203820318, -0.102092959, -0.093345888, 0.0935418084, -0.0911601558, -0.2648990452, -0.1546195447, -0.0057543651, 0.0614032373, -0.1646934003, 0.4182681739, 0.3214158118, -0.1182498485, -0.0536907464, -0.0327779986, 0.0472252741, 0.3035388887, 0.1383125186, 0.0185656752, 0.0326717421, 0.0427048579, 0.1994483471, -0.1875816137, 0.014096451, 0.082016468, 0.0423960686, -0.2510475516, 0.0270903334, 0.3569348454, -0.295296222, -0.0216397811, 0.5987740755, 0.3562681079, 0.2437597811, -0.1398067921, 0.1138302758, -0.0777392983, 0.1533572823, -0.2739046812, -0.3326784968, 0.205778718, 0.2732258439, 0.0609572381, 0.1860822588, -0.0021066871, 0.0291597173, 0.6171163917, 0.2176484168, 0.4478169084, -0.1253162473, 0.3508082032, 0.5271652937, 0.2326287627, 0.1843764484, 0.241720289, 0.0737254471, 0.0160929821, 0.5080396533, -0.0660088882, 0.2586891651, 0.2197473645, 0.1287705451, -0.0355183855, -0.4662743509, -0.1656748652, 0.0283220075, -0.0797490031, 0.2506761551, 0.1661577374, 0.0856602341, -0.2232845426, -0.3345984221, 0.0114881797, 0.024897946, -0.193626374, -0.2161095738, 0.1446396858, -0.3639173806, -0.0571490377, 0.013486567, -0.1208442077, 0.0703997388, 0.4529311359, -0.2469489723, -0.128362909, -0.4731904268, -0.3793772757, 0.0500456095, 0.1747638434, -0.0140105868, 0.4047631919, 0.258780688, -0.2298548669, 0.2219883502, 0.2503442466, 0.4856500924, 0.2468240112, 0.027692223, 0.0133466832, -0.1420494765, -0.0540064909, -0.0907230228, 0.3356420696, -0.0870835707, 0.0305686034, 0.1879348457, 0.1134100109, 0.0007339246, 0.2053903639, -0.0408540145, 0.3989400268, -0.4661819339, 0.0895344913, -0.2369527221, 0.2848792076, 0.0150147714, 0.1000138745, -0.2490254641, -0.1181152612, 0.171215117, 0.2318110913, 0.2039028108, -0.1064854339, 0.0748107806, 0.1348544508, 0.0739088506, 0.4687882364, -0.0930132717, -0.0892460048, -0.1464888304, -0.653509438, -0.0558623448, 0.1423008889, 0.1280672401, -0.0635151789, 0.0375300944, 0.0490150824, 0.1846857667, 0.0434734374, -0.1836016178, 0.1054587811, -0.2515150607, -0.2000013739, -0.1759469211, 0.2301196903, -0.2421481013, 0.0548487157, -0.2659107745, 0.0627719611, -0.0416926146, 0.0269530844, -0.005927782, -0.0628840253, 0.0675144792, 0.3473338187, -0.1370735615, 0.3493901491, 0.2663169801, 0.03349353, -0.0034476253, -0.2782979906, -0.1931354105, -0.2683142722, 0.0700851008, -0.2921240628, 0.4918605983, -0.4018596709, -0.3019634485, -0.1804217845, 0.2724736333, 0.1233783066, -0.1268284917, -0.4767788649, 0.1658581197, -0.0587571412, 0.0838124454, 0.0044377646, 0.508733511, 0.059986867, 0.3379509747, -0.2266310304, -0.3412219286, 0.5358169079, -0.4137625992, -0.2617653012, -0.1319275051, -0.0639740229, 0.6073155403, -0.4836450815, -0.3043731153, -0.2037671804, 0.2719914615, -0.1200053543, -0.1490247399, 0.1555725485, -0.2652980089, 0.1745556146, -0.1892018616, -0.0870604515, 0.4393822849, -0.0882679075, 0.2773536742, -0.1299419552 ]
https://github.com/huggingface/datasets/issues/2941
OSCAR unshuffled_original_ko: NonMatchingSplitsSizesError
I tried `unshuffled_original_da` and it is also not working
## Describe the bug Cannot download OSCAR `unshuffled_original_ko` due to `NonMatchingSplitsSizesError`. ## Steps to reproduce the bug ```python >>> dataset = datasets.load_dataset('oscar', 'unshuffled_original_ko') NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=25292102197, num_examples=7345075, dataset_name='oscar'), 'recorded': SplitInfo(name='train', num_bytes=25284578514, num_examples=7344907, dataset_name='oscar')}] ``` ## Expected results Loading is successful. ## Actual results Loading throws above error. ## Environment info - `datasets` version: 1.12.1 - Platform: Linux-5.4.0-81-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 5.0.0
9
OSCAR unshuffled_original_ko: NonMatchingSplitsSizesError ## Describe the bug Cannot download OSCAR `unshuffled_original_ko` due to `NonMatchingSplitsSizesError`. ## Steps to reproduce the bug ```python >>> dataset = datasets.load_dataset('oscar', 'unshuffled_original_ko') NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=25292102197, num_examples=7345075, dataset_name='oscar'), 'recorded': SplitInfo(name='train', num_bytes=25284578514, num_examples=7344907, dataset_name='oscar')}] ``` ## Expected results Loading is successful. ## Actual results Loading throws above error. ## Environment info - `datasets` version: 1.12.1 - Platform: Linux-5.4.0-81-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 5.0.0 I tried `unshuffled_original_da` and it is also not working
[ -0.2700701952, -0.3562059104, 0.0761256963, 0.3269021809, 0.2630259991, -0.0228649452, -0.0282609034, 0.4201454818, -0.0057781218, 0.2675718367, -0.2937448621, 0.3795824349, -0.175184533, 0.0020705916, -0.1521454006, -0.3282049894, 0.0055401283, 0.0813263729, 0.0597292781, 0.0331693552, -0.2423605472, 0.2973343432, -0.3931003809, 0.0419516861, -0.2768164873, -0.0585272759, -0.0746447295, 0.1445952952, -0.1675010622, -0.2716379166, 0.3857498765, -0.0588463284, 0.232816115, 0.5122596025, -0.0001237657, 0.0590177849, 0.4652545154, -0.3251428604, -0.0443532206, -0.3920538425, -0.0886344537, -0.0983479768, -0.0657844767, -0.3845169842, -0.0129822195, 0.146921888, 0.0608098917, -0.0645650402, 0.5164781213, 0.3238581419, 0.120624736, 0.0500490926, 0.0403883979, -0.2224902213, 0.3106618822, -0.2548942566, -0.3315367401, 0.0346963368, -0.0179840401, -0.1685461998, 0.1427149326, 0.1541062146, -0.0700180754, 0.1261722445, -0.1210525259, -0.0195195898, -0.0040011993, -0.0904255956, 0.2117808163, 0.374551028, 0.3375654519, -0.3247810006, -0.3132323921, -0.3029401302, 0.0337986127, -0.3283481598, 0.3009405434, 0.1460143775, -0.2429262847, 0.2017060965, -0.0670581907, 0.0023002515, -0.1089840308, 0.1734156609, 0.0992210284, 0.2540248334, 0.068739228, 0.1693916321, 0.1453325152, 0.1248955354, 0.3683691025, -0.164793402, 0.1000258476, 0.0660203919, -0.2375979722, -0.1042992249, -0.1702269167, 0.0275418647, 0.1742199361, 0.299749881, 0.3533665538, -0.050712835, 0.23539868, 0.0687230006, 0.1073275581, 0.1424306631, -0.1735071242, 0.4756015539, -0.038373746, 0.4154306054, -0.1177193224, -0.0899807885, 0.0127301393, -0.0728332028, 0.0770530924, 0.0638824552, 0.3465489149, -0.1475606412, -0.5405621529, -0.0646340847, -0.4408827126, -0.2136350721, -0.1520271748, 0.3651462495, -0.2901136577, 0.1182295531, -0.1973749697, 0.2700160146, -0.1282483786, 0.043910075, -0.2218047082, 0.1398160458, -0.1717366427, 0.1828228682, 0.1118824482, -0.204669714, 0.495223105, -0.0624024421, 0.2177726328, -0.1745524108, 0.2678282857, -0.0713035017, -0.2555179, 0.0733668804, 0.0693256706, 0.2275202274, -0.0512226708, -0.1955409944, -0.1835986227, 0.1897325665, -0.1677214205, -0.5662183762, 0.1641817391, 0.1281939894, -0.3114531338, -0.0909331217, 0.2412121892, -0.06287238, 0.0155445421, -0.1351996511, -0.0021220825, -0.0958602279, 0.1657218486, -0.2155779004, 0.2271082997, 0.3483718336, -0.1850482076, -0.1841768026, 0.006626484, -0.2098627985, 0.5653936863, 0.3381557167, 0.0346748829, -0.0691285431, -0.3662846684, -0.035242945, 0.2375092804, -0.1608842909, -0.6755478978, 0.0946134478, 0.0492238738, 0.5803261995, 0.346126765, -0.0058211032, 0.2652187347, 0.1256498843, 0.2001138926, 0.2200994045, -0.2519147992, -0.3296817243, -0.4716974497, -0.4451117814, 0.1734127849, 0.1898487657, 0.3207941949, 0.1099775285, -0.058488369, 0.2988939583, 0.3775659204, 0.0346811637, 0.0107769752, -0.0222215783, 0.1482665092, 0.3807443678, -0.076375179, -0.3940159082, -0.2746164203, 0.2904383838, -0.1236760765, -0.156783849, -0.2122336924, -0.527250886, -0.5870789289, -0.165048629, -0.1906133443, -0.162727192, 0.0038345398, 0.0500118583, 0.4496047795, 0.1891618371, -0.1783928275, 0.2574459016, 0.0525147803, 0.1223757267, -0.1573136151, 0.4813087285, -0.2699065506, -0.4087940454, 0.1640718877, 0.1615529507, 0.2917622626, -0.2825148404, -0.1289041787, 0.5438861251, -0.0126622617, 0.1553732008, -0.0856645703, -0.2544069886, 0.1181099713, -0.167449981, -0.1110598743, 0.3721723258, 0.0395096019, 0.0105408933, -0.0509868823, 0.5377941132, -0.0667465031, -0.0382976942, 0.066784896, 0.0064676078, 0.2481441945, -0.1786244661, 0.0006179169, -0.1696993709, 0.3078433871, -0.0635774508, -0.0126545299, -0.1987084448, -0.5619574189, -0.1079929173, 0.7206522226, -0.0952707604, 0.0389066115, 0.0032789083, -0.1174628735, 0.1458038688, -0.0419397578, 0.1237870455, 0.2527246773, 0.3046537042, -0.0554859377, 0.1650494337, -0.0884823874, -0.2226391435, 0.1139543355, 0.0752876177, 0.3927039802, 0.5039468408, -0.1236994937, 0.0763900355, -0.4040017426, -0.1757810861, -0.0385836139, 0.3962652385, -0.0995420963, -0.251657933, -0.3585939407, -0.0895016566, -0.3763104379, 0.0013211808, -0.1984645426, -0.1646792293, 0.0933002308, 0.4677838087, 0.03062311, 0.456158936, -0.2225827277, 0.0516182445, -0.0948610157, 0.0804057792, -0.2349837869, -0.2070280761, -0.2165757865, -0.0062309718, 0.1760603487, -0.1895347685, 0.4101438522, -0.1628828794, -0.1106793508, 0.0016370228, -0.2100382894, -0.0284292269, 0.0802166983, -0.1457641721, 0.1499073058, 0.1545280069, 0.0492399521, -0.2327251136, 0.3539457917, -0.253189683, -0.12509799, -0.0579356998, 0.3628317118, 0.1966164857, -0.0150078526, -0.6001400352, -0.3433532715, -0.2735929787, 0.1192297861, 0.171149075, 0.2071451992, -0.4059786499, 0.2124399543, 0.0293269083, 0.0146261109, -0.108423464, -0.1782411635, -0.2187789083, 0.4179231524, -0.0541067719, -0.2413789183, -0.0135591552, -0.0757790357, -0.207618624, 0.1081376076, -0.2254442275, -0.2374272496, -0.1528240591, 0.0388922058, 0.0000410417, -0.1447942406, 0.4625220001, -0.0406659842, 0.0200901981, -0.087360315, -0.2536268234, 0.0319263563, -0.0870750993, 0.4643537402, -0.0956633613, 0.5923442245, 0.1564027518, 1.0513212681, 0.3848242462, 0.4277364314, 0.2050092816, -0.2445764095, -0.0273402222, -0.1820255518, -0.1257591844, -0.0314858034, -0.1415696144, 0.1885153949, 0.1321771443, -0.0758097246, -0.1143291369, -0.2025897503, 0.0363576189, -0.4454913139, -0.1845194995, -0.050208386, 0.0200488307, -0.0743915215, 0.2265842706, 0.1607146412, 0.0683756843, -0.0109747304, 0.1947402656, 0.2533482909, -0.095236063, 0.0733086839, -0.1778615266, 0.0034823706, -0.4660815597, 0.4068314433, 0.1445844173, 0.155201152, 0.105390504, -0.2482506037, 0.2122097313, -0.2690775096, 0.8391341567, -0.3196516037, 0.021446595, -0.0050391215, -0.1162589341, -0.2233094126, -0.3100708723, -0.2493042648, 0.0977460891, 0.5004122257, 0.401702255, -0.3936049342, 0.1048643887, 0.1261661202, -0.0172707625, -0.1737206727, -0.1427190602, -0.3067505658, -0.416105777, -0.521835506, 0.0087642455, -0.10390421, 0.4622172713, -0.103750132, -0.1932160407, -0.2216338515, -0.0615733713, 0.1528482884, 0.0589452758, 0.1914952844, 0.0529781282, 0.2729120851, 0.0143474173, 0.5659828782, 0.3270242512, 0.433042109, -0.0510436259, -0.2842541039, -0.2222711891, -0.2774918079, -0.0777949691, 0.3124807179, 0.0741247982, 0.0557200424, -0.2258193046, 0.0286223143, -0.0232267417, -0.0609401241, 0.2382368445, -0.074377045, -0.4884041846, -0.4397383332, 0.2568946183, 0.2011566609, -0.084970735, 0.2157151252, 0.1666444838, -0.1530286074, 0.3322291672, -0.311853826, 1.0656917095, -0.0349132605, -0.0590303577, 0.1567310691, -0.4327569604, 0.4600604773, 0.2230525613, 0.2934070528, -0.3985666931, -0.5422777534, -0.0626290441, -0.0495161489, 0.2620194554, -0.0702634975, -0.2358459234, 0.3924998343, -0.1383437216, 0.059872508, -0.0403107777, 0.0872835815, -0.0655479878, 0.2615909278, -0.2137582153, -0.0282094814, -0.0062475386, 0.6459135413, 0.0490520187, -0.1735088825, -0.3161623478, -0.1341487914, -0.2399571091, 0.2692095339, -0.0620518588, 0.1432400197, -0.1940255165, -0.3515720665, -0.0938458592, -0.0665402114, 0.1554252207, -0.3038245738, -0.1423941851, 0.2567335367, -0.0502586178, -0.3049413562, 0.0468185209, 0.0734311789, 0.1184430718, -0.2098308355, -0.1948067993, 0.2171829045, 0.081996724, -0.2234715521, 0.2245999873, -0.344912529, 0.4029507935, -0.2193651795, -0.3630694151, -0.1238867566, 0.053775616, -0.4139072001, 0.0482330695, -0.3476900756, -0.1793532968, 0.0908351913, -0.0968465805, -0.1877360195, -0.2056991607, 0.6468623877, 0.2441388518, 0.0889284089, 0.4455735385, -0.1392742097, -0.1209909022, -0.0694017634, -0.0522745661, -0.0961838588, -0.6258867979, 0.2478279322, -0.2725172639, 0.2561436892, 0.0560390577, 0.1203305498, 0.5102044344, 0.1091660559, -0.0226831455, -0.315593183, -0.1827117205, -0.006129405, 0.3605924249, 0.2034677416, -0.2084128559, 0.3939769268, 0.0435558408, 0.1410049051, -0.2295722514, 0.1756058782, -0.0111234821, 0.0903083682, -0.0150688291, -0.0624070913, 0.0482578315, 0.1309499592, 0.0656671524, 0.2593142688, -0.107485652, -0.1093422994, -0.1164527461, 0.217103675, -0.0287401099, -0.0509174541, -0.0877763107, 0.0597584993, -0.014149596, 0.0015855627, -0.0073475796, 0.3024415374, 0.0025629182, 0.1959821284, 0.2877029181, 0.0203361772, -0.3707616925, -0.0546788871, -0.1704271585, 0.4047979116, -0.0256696772, 0.2317973226, -0.0267457049, -0.0181804169, -0.0715063438, -0.3175280988, -0.0306168441, 0.2115057111, 0.3874916732, -0.347990185, -0.0214854032, 0.3729046881, 0.2182453871, 0.5003054142, -0.1019885391, -0.1947451532, 0.2794112563, 0.132047534, -0.5035033822, 0.1693591028, 0.6532273293, -0.0279648732, 0.0474482439, 0.2889039218, -0.0722825229, -0.0049079503, -0.2585618496, 0.0728518143, 0.311209619, 0.0896963254, 0.3967244029, 0.6500381827, 0.2969564795, 0.0609108508, 0.1803033948, 0.0377423726, 0.3314584792, 0.4642525315, -0.348226279, 0.2353744805, -0.3763629198, 0.2772921026, -0.0461748801, -0.2185561657, -0.2172773033, 0.3019171655, -0.263828367, 0.2700886428, 0.147561118, 0.2971718013, -0.0907789618, -0.0566396452, -0.2395830452, 0.0068022935, 0.0361580849, -0.1487154663, -0.23768875, -0.3082600832, -0.3154895604, 0.1420746595, 0.0483601578, 0.2234884501, 0.4846854806, -0.0899223089, -0.0839001238, -0.261703372, -0.1129587889, 0.1009543613, 0.4807308614, -0.359243691, 0.002184781, 0.1473571062, -0.2205985636, 0.0831326023, 0.3578595817, 0.2714527547, 0.2029879987, -0.224526599, 0.0407990441, 0.2606113255, 0.0910466984, 0.1569049805, 0.3494497836, 0.3068242073, -0.0663663, 0.2790664434, 0.0528981723, -0.1823626012, 0.1601461917, 0.0584523901, -0.1115810052, -0.2788190246, 0.3917230964, -0.2243009657, 0.102521576, 0.057680171, 0.0891512558, -0.4057340622, -0.2379486412, -0.2201809883, 0.0126067307, 0.231259793, 0.0904681012, 0.0248190816, -0.3940022886, 0.1682776958, 0.2681089044, -0.1561311036, -0.1225692406, -0.2420620918, -0.5433617234, 0.2975563407, -0.2807193995, 0.0935659185, 0.0746108741, 0.3382504284, -0.3834771514, -0.0064511839, 0.1178494468, 0.5332386494, 0.0087339627, 0.4412532747, -0.2814124823, -0.1415888518, -0.226051569, -0.0913680568, 0.1125744134, -0.3669516146, 0.0487546846, -0.2756848037, -0.0543771461, -0.0466812104, -0.121877186, -0.0234336779, -0.1646656841, 0.2823671103, 0.2395053953, 0.2693460882, -0.1665234864, -0.0291301347, 0.1338399649, -0.1567696631, -0.065012753, 0.3058659434, 0.3186143041, 0.2530109882, -0.0928714797, 0.2424036115, -0.1774176359, 0.5707028508, 0.1469569206, -0.1631754786, -0.10322088, -0.1555235088, -0.0427126624, 0.0198512953, 0.0677086264, 0.4105406106, -0.1185427532, 0.1515361816, -0.2512541115, -0.2376576364, 0.6050724983, -0.1785651296, -0.1379883289, -0.1678245664, 0.2456205785, 0.3388739526, 0.0138582885, -0.3756624758, 0.1801710874, 0.4207406342, 0.0298809856, -0.0401440747, 0.1496393681, -0.3060053885, -0.1257539541, 0.0442536511, 0.0996872783, 0.149877876, -0.3360651135, 0.4139497876, -0.1505003273 ]
https://github.com/huggingface/datasets/issues/2937
load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied
Hi @daqieq, thanks for reporting. Unfortunately, I was not able to reproduce this bug: ```ipython In [1]: from datasets import load_dataset ...: ds = load_dataset('wiki_bio') Downloading: 7.58kB [00:00, 26.3kB/s] Downloading: 2.71kB [00:00, ?B/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 C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\ 1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9... Downloading: 334MB [01:17, 4.32MB/s] Dataset wiki_bio downloaded and prepared to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9. Subsequent calls will reuse thi s data. ``` This kind of error messages usually happen because: - Your running Python script hasn't write access to that directory - You have another program (the File Explorer?) already browsing inside that directory
## Describe the bug Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('wiki_bio') ``` ## Expected results It is expected that the dataset downloads without any errors. ## Actual results PermissionError see trace below: ``` 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 C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\load.py", line 1112, in load_dataset builder_instance.download_and_prepare( File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 644, in download_and_prepare self._save_info() File "C:\Users\username\.conda\envs\hf\lib\contextlib.py", line 120, in __exit__ next(self.gen) File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 598, in incomplete_dir os.rename(tmp_dir, dirname) PermissionError: [WinError 5] Access is denied: 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9.incomplete' -> 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9' ``` By commenting out the os.rename() [L604](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L604) and the shutil.rmtree() [L607](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L607) lines, in my virtual environment, I was able to get the load process to complete, rename the directory manually and then rerun the `load_dataset('wiki_bio')` to get what I needed. It seems that os.rename() in the `incomplete_dir` content manager is the culprit. Here's another project [Conan](https://github.com/conan-io/conan/issues/6560) with similar issue with os.rename() if it helps debug this issue. ## Environment info - `datasets` version: 1.12.1 - Platform: Windows-10-10.0.22449-SP0 - Python version: 3.8.12 - PyArrow version: 5.0.0
109
load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied ## Describe the bug Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('wiki_bio') ``` ## Expected results It is expected that the dataset downloads without any errors. ## Actual results PermissionError see trace below: ``` 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 C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\load.py", line 1112, in load_dataset builder_instance.download_and_prepare( File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 644, in download_and_prepare self._save_info() File "C:\Users\username\.conda\envs\hf\lib\contextlib.py", line 120, in __exit__ next(self.gen) File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 598, in incomplete_dir os.rename(tmp_dir, dirname) PermissionError: [WinError 5] Access is denied: 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9.incomplete' -> 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9' ``` By commenting out the os.rename() [L604](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L604) and the shutil.rmtree() [L607](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L607) lines, in my virtual environment, I was able to get the load process to complete, rename the directory manually and then rerun the `load_dataset('wiki_bio')` to get what I needed. It seems that os.rename() in the `incomplete_dir` content manager is the culprit. Here's another project [Conan](https://github.com/conan-io/conan/issues/6560) with similar issue with os.rename() if it helps debug this issue. ## Environment info - `datasets` version: 1.12.1 - Platform: Windows-10-10.0.22449-SP0 - Python version: 3.8.12 - PyArrow version: 5.0.0 Hi @daqieq, thanks for reporting. Unfortunately, I was not able to reproduce this bug: ```ipython In [1]: from datasets import load_dataset ...: ds = load_dataset('wiki_bio') Downloading: 7.58kB [00:00, 26.3kB/s] Downloading: 2.71kB [00:00, ?B/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 C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\ 1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9... Downloading: 334MB [01:17, 4.32MB/s] Dataset wiki_bio downloaded and prepared to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9. Subsequent calls will reuse thi s data. ``` This kind of error messages usually happen because: - Your running Python script hasn't write access to that directory - You have another program (the File Explorer?) already browsing inside that directory
[ -0.2289305478, 0.3834535182, 0.040345341, 0.2550398409, -0.0121113108, 0.2622572184, 0.5036683083, 0.1329532564, 0.3442817032, 0.1357175708, -0.1089743897, 0.0772839189, 0.073150374, -0.0056987684, -0.1256225109, 0.0789283216, 0.0364452153, -0.0053882273, 0.214949578, 0.1039548293, -0.4238833189, 0.1072954684, -0.172855407, 0.1861151755, 0.0260949377, -0.1363423616, 0.1212603897, 0.3607298434, -0.0307886619, -0.3922062814, 0.3530231118, 0.0634532124, 0.4639182985, 0.2582460642, -0.000119246, -0.0137069086, 0.2306841165, 0.1244994402, -0.0737274736, 0.0870998204, -0.1839853674, -0.1409676671, 0.1652300805, -0.0976862535, 0.1767440438, 0.3634920418, -0.1021372527, -0.2009297311, -0.0130413789, 0.379034102, 0.1573001444, -0.0381855965, -0.1186785623, -0.0752038136, 0.4933359921, -0.1592982262, -0.133179754, 0.2798380852, 0.0790250301, -0.11457026, -0.0989914164, 0.1995727867, -0.1621495485, 0.1471577436, 0.0186581202, 0.0311292373, 0.2162310332, -0.4581103027, 0.3521417677, 0.1512579024, 0.9656507373, -0.1955735534, -0.1914045215, -0.0887490958, 0.0133037586, -0.0330028497, 0.4326035678, 0.4286232889, -0.3245685697, 0.2523709536, 0.0659693852, 0.0835653022, -0.0825510696, -0.0019090191, 0.0712853372, 0.1486521512, -0.0504703857, 0.1195566207, -0.1147312596, -0.0834005401, 0.3863353431, -0.2138270736, -0.254601866, 0.191666767, -0.3394370973, 0.2898705602, 0.0534532256, 0.7778053284, 0.157877773, 0.3155301809, 0.1250241548, -0.0540518314, 0.2136244029, 0.0651903003, 0.0085929586, 0.3214896023, -0.1122384295, -0.0169230793, 0.4271060824, 0.1174419895, -0.0816169605, -0.0089906445, -0.0200457647, -0.4294741154, 0.3538792133, 0.1054070443, 0.4081188738, -0.2856419981, -0.1217012107, -0.0002951851, 0.1581317037, -0.0239709932, 0.0588830411, 0.5011533499, -0.2717713416, 0.0426839963, 0.0682517141, 0.1794451177, 0.0186107904, 0.0977605507, -0.0877998695, -0.0890028104, -0.2667180896, -0.0514384918, 0.408646673, -0.3225747645, 0.0955644995, 0.2566769719, 0.0270482041, -0.1792946011, 0.1918320805, -0.0414977111, -0.0328572541, 0.3576870263, 0.397295326, 0.3376339078, 0.174932614, -0.2122963965, -0.0349953882, 0.1863114685, -0.4872902334, -0.4025040567, -0.0336632058, 0.1213277355, -0.0833240524, 0.0632052422, -0.1980368942, -0.0482573472, 0.3823129535, -0.3008547723, -0.0618359111, -0.0137255481, -0.2206203043, -0.5042767525, 0.040707428, 0.4012890756, -0.3596991003, 0.1303672194, -0.0915537477, -0.2640866041, 0.1504325122, 0.0056375656, 0.0056341127, 0.3616814017, -0.2812198102, 0.0156073133, 0.2774584889, -0.3938943148, -1.0015972853, -0.0210030079, 0.0730995089, 0.1660424769, 0.2444063723, 0.1191371009, 0.3659378588, -0.0303458292, 0.1704769284, 0.3187128901, 0.1300752312, 0.1119742319, -0.0629962236, -0.2038549483, 0.2796608508, 0.1339266002, 0.0883391201, 0.3009034991, 0.312600106, -0.0569339506, 0.251095593, -0.1872612089, 0.116804406, 0.1925157905, 0.0114956526, -0.0351362228, 0.1375146806, -0.1277379841, -0.420409292, 0.3514482081, -0.00811728, 0.0851668194, 0.0759790465, -0.2027431279, -0.3184642494, 0.0913407728, -0.5447552204, -0.2889970243, 0.0851063654, 0.2938987911, 0.2124249339, 0.0236818604, 0.1891641766, 0.3374149799, -0.2082268894, 0.1271959245, -0.1811406165, 0.0386061855, -0.1883375496, -0.1364492327, -0.2122476399, 0.0469153933, 0.2001280636, 0.2527483404, -0.2134325951, 0.1961012632, 0.151213333, 0.0374986753, -0.3785572946, -0.0595560744, -0.0223776083, 0.1217297763, 0.1568485051, 0.1381781846, 0.1483232975, -0.0443943143, -0.1922187656, 0.1377540231, -0.1596345007, 0.14373146, -0.3266511559, 0.2430362701, 0.2447061241, 0.0900503173, 0.0856966749, 0.0344529897, 0.3054705858, 0.0241174567, 0.0745961443, -0.2858042717, 0.1012615561, -0.0778078139, 0.0593021847, 0.0225473158, 0.0812815726, 0.2497533113, -0.1746012717, 0.0168862902, 0.2869935334, 0.349679023, 0.5377136469, -0.0409865156, 0.0515500903, 0.0667970031, 0.0479120463, 0.0896691009, 0.1192515045, 0.0857714713, -0.0702273324, 0.2634492815, 0.1284338385, 0.2241659462, -0.0647975802, -0.1138611957, -0.107541278, 0.4194297791, -0.4875138104, -0.084387593, 0.1000552922, 0.0748399198, 0.1812013388, -0.2428474277, -0.0887820199, -0.1460988075, -0.2430461347, 0.3116364777, 0.0940705463, 0.0835373625, -0.511957705, 0.164441213, 0.0075377976, -0.2018063366, -0.1137571484, 0.1238797531, -0.1658339351, -0.0141071854, 0.1862449348, -0.1799398512, 0.1873875707, -0.2951588631, 0.2437517196, -0.3901760876, -0.1954325885, 0.0151099013, 0.0578858256, 0.4098414481, 0.1254311204, 0.1551068723, 0.1864105314, -0.3417646587, 0.0566025972, -0.1075194404, -0.1510609835, 0.2333712131, -0.0550265461, 0.0938554928, 0.0341966748, -0.2493757308, -0.5408244133, -0.2501789927, -0.0095754005, 0.3858899772, 0.0983009189, -0.0028510524, -0.1126530915, 0.0033437847, 0.267029494, 0.3937678933, -0.2108280957, -0.2492020875, 0.2102492452, -0.2092680335, -0.3346993625, 0.0819493756, -0.1042304859, 0.0445711389, 0.2523835003, -0.4788489342, -0.0906342939, -0.3600659072, 0.4096082449, -0.232615903, 0.0938282236, 0.3463047147, 0.0892930999, 0.1463989317, -0.0417488404, -0.2757158875, -0.0651353374, -0.2946413159, -0.068232581, 0.3381980062, 0.4274490774, -0.0575702377, 0.3770318925, 0.3002279699, 0.3604496717, 0.3344713151, 0.04584153, 0.3711133003, 0.0542609356, -0.2594737113, 0.1087757051, -0.1943459958, -0.140160799, 0.3007430136, 0.0889823362, -0.1952640116, -0.052531682, -0.3804523051, -0.2807892859, -0.2852858603, -0.0992422476, -0.2463323325, 0.2537561357, 0.1191406399, 0.1100426763, -0.4462445676, -0.3691142201, 0.0288443286, 0.5546328425, -0.3098391891, 0.1115756556, -0.3508035243, 0.1366987079, -0.6549720168, 0.2522459924, 0.0340248011, 0.4958057404, -0.1741242707, 0.1266969591, -0.0015080259, -0.1074288562, 0.5570681095, -0.6522978544, 0.4618299305, 0.0581227317, 0.1157312021, 0.0101971151, -0.2243451625, -0.0922563747, 0.2416802943, 0.1369419247, 0.2145550996, 0.1639221013, 0.0440419056, 0.0762091056, 0.1665931493, -0.2001322806, -0.279057771, -0.2271348834, -0.3418877125, -0.3903853595, 0.128006041, 0.0421996191, 0.1854700744, -0.1517433375, 0.1171616763, -0.4046885669, 0.2369778156, 0.1301799268, 0.1602822691, 0.187791869, 0.0645751134, 0.2181593776, -0.0480453596, 0.0753483474, -0.1291563809, 0.5240867138, -0.2804769576, -0.328379035, -0.0524905957, -0.199985683, -0.1171171516, 0.1122419834, -0.3265575469, -0.0500914566, -0.1384819001, -0.1327372044, -0.3143305779, 0.117074959, 0.0426035039, -0.1354341507, -0.3776838183, -0.3201939762, 0.3641437292, 0.2117004246, -0.4467277825, 0.3404740095, 0.1198474169, -0.4280630946, 0.1824693233, 0.0517599583, 0.7466567159, 0.0798895434, 0.2780212462, 0.0972766355, -0.1122953147, 0.2001173049, 0.1161781773, 0.0565570518, -0.3728869557, -0.4541019201, -0.0988719016, -0.2205425799, -0.134537518, -0.0249406099, -0.2337937057, 0.2817453742, -0.1129783094, 0.3188050985, 0.274310261, 0.048037339, -0.3741956651, -0.3764992654, -0.1209942549, 0.1251865476, -0.1938239634, 0.1358688474, -0.2274900377, 0.0911153406, 0.0849043131, -0.1673949957, -0.439121902, 0.1967898756, -0.4114460945, 0.1381170154, -0.2974178493, -0.3836832643, 0.0877998993, 0.5960645676, 0.2849669755, 0.3604593873, -0.1543026865, 0.0600666888, 0.0793892592, 0.1179443896, 0.024958102, 0.0074552288, 0.1962639689, -0.0806936249, -0.2981881797, -0.0151690254, -0.2781275809, -0.3215303123, -0.1055536345, 0.2862682045, 0.4039052129, -0.3201119602, -0.2076887786, -0.3106458187, 0.0849739909, -0.2798955739, 0.0937029347, 0.0470425822, -0.0756008551, 0.3795401752, -0.3368881643, -0.425712347, -0.1475177705, 0.5242761374, -0.079077132, -0.1337566078, 0.5711378455, -0.0485029556, -0.1785390973, -0.0130321439, 0.1454919577, -0.1009839401, -0.462458998, -0.1003440917, -0.1225365251, 0.1078282446, -0.029106807, 0.1698505282, 0.2787975669, -0.0963102505, 0.0534037836, -0.7581394315, -0.2621001899, -0.1129847094, -0.2311439961, 0.1716352552, 0.1831110716, -0.4405415952, -0.1353047937, -0.2840806246, -0.203002885, 0.0441007577, -0.2147331834, -0.1294415742, 0.2779014409, 0.154557094, -0.001340596, 0.1245135888, -0.0026244703, 0.0926584527, 0.1227548569, -0.1713698655, -0.1237100959, 0.1475240737, 0.1037818864, -0.0917996764, 0.0267537702, -0.3284253776, -0.0735971555, -0.0984259099, 0.3940449953, 0.2593082786, -0.0281576384, 0.0679169372, -0.1276832074, 0.2894711792, -0.2827050388, 0.4151190817, -0.3472835422, -0.0251300745, -0.0133727901, 0.3347693682, -0.1413164884, 0.0541265719, -0.11745359, -0.0824945197, 0.1532541662, 0.0678972974, 0.0646063909, -0.3769121468, 0.085026145, 0.1787576079, 0.0593337528, 0.0623646304, -0.23318322, 0.0148412948, 0.2450501472, 0.1589923799, -0.0922699794, -0.1294877678, -0.0120077264, -0.3234773874, -0.1790443361, 0.3004153967, 0.1639576256, -0.3836256266, 0.1359916031, -0.0324052311, 0.5581638813, -0.2246947289, -0.0577207766, 0.4813490808, -0.2174006104, 0.2738089263, 0.218585968, 0.2596439123, -0.0843797997, 0.5514788032, 0.1820428967, 0.1367382705, -0.0058679264, -0.1720480621, -0.1030526981, -0.6628072858, 0.28002882, 0.0652534962, -0.0736904144, 0.0509437881, -0.0296167657, -0.0086359354, -0.3041151464, -0.0021537442, -0.4382816255, -0.2168946117, -0.1808834672, -0.283659488, 0.0684353933, -0.2338435054, 0.1725392044, 0.0927761719, -0.1707766503, -0.14519687, -0.069977276, -0.0427515879, -0.3035758734, -0.268468231, 0.1116327941, 0.4133677781, -0.2662928104, -0.1926916391, 0.0890493989, 0.0064425515, 0.2395810932, 0.0886423066, 0.0961362123, 0.7200041413, 0.3696607947, -0.186706394, -0.0827123448, 0.2043794394, 0.08498016, -0.1013351902, 0.3095628321, 0.1992664337, 0.1772322208, 0.3453566134, 0.1196848005, -0.124466449, 0.0374585725, 0.0380601026, -0.008947121, -0.0834797546, 0.1873595268, -0.1764346659, -0.168423444, 0.1405667216, 0.1980234534, -0.0727778077, 0.1700269282, 0.2323683053, 0.0627374277, 0.1945085675, -0.1900534481, 0.0200616512, 0.1487799883, 0.3155461252, 0.3503623307, 0.0980699509, -0.2335534841, -0.068358846, -0.5775797367, 0.2545953691, -0.0182250105, -0.3800154626, -0.0322349034, -0.1324881017, -0.3368008435, 0.1061356142, 0.1619229615, -0.1090964749, 0.0555578545, 0.2668960989, -0.1567609012, -0.2936111093, 0.3894377947, -0.0377689339, -0.0781006962, -0.6786634922, 0.0366012938, -0.0887601152, 0.0320076123, -0.1506992131, -0.1666385084, 0.0341500044, -0.0260742661, 0.5437771082, 0.2644129097, 0.4555599689, 0.0078377938, 0.0918127969, -0.562205255, -0.0687982887, -0.1452899277, -0.0336945578, -0.077826038, 0.271348238, -0.2275042981, 0.0414364263, -0.1241922826, 0.1670939773, 0.2662992477, 0.3795417845, -0.0054561738, 0.2279049158, 0.1809432358, 0.1571899056, 0.3478443921, 0.0699722916, -0.0961795077, 0.4460362792, -0.2409338355, -0.342048198, 0.2109487653, -0.3941510618, -0.3340475857, -0.0192074794, 0.3251572549, -0.2549189031, -0.1531336755, -0.2379637361, 0.2061088979, 0.2478395253, -0.1434804201, -0.3868976235, 0.1413453221, -0.1570352912, 0.140291512, -0.0227520186, 0.0342236757, 0.0101351459, -0.225390628, 0.1708674133, -0.2374369949 ]
https://github.com/huggingface/datasets/issues/2937
load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied
Thanks @albertvillanova for looking at it! I tried on my personal Windows machine and it downloaded just fine. Running on my work machine and on a colleague's machine it is consistently hitting this error. It's not a write access issue because the `.incomplete` directory is written just fine. It just won't rename and then it deletes the directory in the `finally` step. Also the zip file is written and extracted fine in the downloads directory. That leaves another program that might be interfering, and there are plenty of those in my work machine ... (full antivirus, data loss prevention, etc.). So the question remains, why not extend the `try` block to allow catching the error and circle back to the rename after the unknown program is finished doing its 'stuff'. This is the approach that I read about in the linked repo (see my comments above). If it's not high priority, that's fine. However, if someone were to write an PR that solved this issue in our environment in an `except` clause, would it be reviewed for inclusion in a future release? Just wondering whether I should spend any more time on this issue.
## Describe the bug Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('wiki_bio') ``` ## Expected results It is expected that the dataset downloads without any errors. ## Actual results PermissionError see trace below: ``` 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 C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\load.py", line 1112, in load_dataset builder_instance.download_and_prepare( File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 644, in download_and_prepare self._save_info() File "C:\Users\username\.conda\envs\hf\lib\contextlib.py", line 120, in __exit__ next(self.gen) File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 598, in incomplete_dir os.rename(tmp_dir, dirname) PermissionError: [WinError 5] Access is denied: 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9.incomplete' -> 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9' ``` By commenting out the os.rename() [L604](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L604) and the shutil.rmtree() [L607](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L607) lines, in my virtual environment, I was able to get the load process to complete, rename the directory manually and then rerun the `load_dataset('wiki_bio')` to get what I needed. It seems that os.rename() in the `incomplete_dir` content manager is the culprit. Here's another project [Conan](https://github.com/conan-io/conan/issues/6560) with similar issue with os.rename() if it helps debug this issue. ## Environment info - `datasets` version: 1.12.1 - Platform: Windows-10-10.0.22449-SP0 - Python version: 3.8.12 - PyArrow version: 5.0.0
194
load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied ## Describe the bug Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('wiki_bio') ``` ## Expected results It is expected that the dataset downloads without any errors. ## Actual results PermissionError see trace below: ``` 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 C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\load.py", line 1112, in load_dataset builder_instance.download_and_prepare( File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 644, in download_and_prepare self._save_info() File "C:\Users\username\.conda\envs\hf\lib\contextlib.py", line 120, in __exit__ next(self.gen) File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 598, in incomplete_dir os.rename(tmp_dir, dirname) PermissionError: [WinError 5] Access is denied: 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9.incomplete' -> 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9' ``` By commenting out the os.rename() [L604](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L604) and the shutil.rmtree() [L607](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L607) lines, in my virtual environment, I was able to get the load process to complete, rename the directory manually and then rerun the `load_dataset('wiki_bio')` to get what I needed. It seems that os.rename() in the `incomplete_dir` content manager is the culprit. Here's another project [Conan](https://github.com/conan-io/conan/issues/6560) with similar issue with os.rename() if it helps debug this issue. ## Environment info - `datasets` version: 1.12.1 - Platform: Windows-10-10.0.22449-SP0 - Python version: 3.8.12 - PyArrow version: 5.0.0 Thanks @albertvillanova for looking at it! I tried on my personal Windows machine and it downloaded just fine. Running on my work machine and on a colleague's machine it is consistently hitting this error. It's not a write access issue because the `.incomplete` directory is written just fine. It just won't rename and then it deletes the directory in the `finally` step. Also the zip file is written and extracted fine in the downloads directory. That leaves another program that might be interfering, and there are plenty of those in my work machine ... (full antivirus, data loss prevention, etc.). So the question remains, why not extend the `try` block to allow catching the error and circle back to the rename after the unknown program is finished doing its 'stuff'. This is the approach that I read about in the linked repo (see my comments above). If it's not high priority, that's fine. However, if someone were to write an PR that solved this issue in our environment in an `except` clause, would it be reviewed for inclusion in a future release? Just wondering whether I should spend any more time on this issue.
[ -0.2289305478, 0.3834535182, 0.040345341, 0.2550398409, -0.0121113108, 0.2622572184, 0.5036683083, 0.1329532564, 0.3442817032, 0.1357175708, -0.1089743897, 0.0772839189, 0.073150374, -0.0056987684, -0.1256225109, 0.0789283216, 0.0364452153, -0.0053882273, 0.214949578, 0.1039548293, -0.4238833189, 0.1072954684, -0.172855407, 0.1861151755, 0.0260949377, -0.1363423616, 0.1212603897, 0.3607298434, -0.0307886619, -0.3922062814, 0.3530231118, 0.0634532124, 0.4639182985, 0.2582460642, -0.000119246, -0.0137069086, 0.2306841165, 0.1244994402, -0.0737274736, 0.0870998204, -0.1839853674, -0.1409676671, 0.1652300805, -0.0976862535, 0.1767440438, 0.3634920418, -0.1021372527, -0.2009297311, -0.0130413789, 0.379034102, 0.1573001444, -0.0381855965, -0.1186785623, -0.0752038136, 0.4933359921, -0.1592982262, -0.133179754, 0.2798380852, 0.0790250301, -0.11457026, -0.0989914164, 0.1995727867, -0.1621495485, 0.1471577436, 0.0186581202, 0.0311292373, 0.2162310332, -0.4581103027, 0.3521417677, 0.1512579024, 0.9656507373, -0.1955735534, -0.1914045215, -0.0887490958, 0.0133037586, -0.0330028497, 0.4326035678, 0.4286232889, -0.3245685697, 0.2523709536, 0.0659693852, 0.0835653022, -0.0825510696, -0.0019090191, 0.0712853372, 0.1486521512, -0.0504703857, 0.1195566207, -0.1147312596, -0.0834005401, 0.3863353431, -0.2138270736, -0.254601866, 0.191666767, -0.3394370973, 0.2898705602, 0.0534532256, 0.7778053284, 0.157877773, 0.3155301809, 0.1250241548, -0.0540518314, 0.2136244029, 0.0651903003, 0.0085929586, 0.3214896023, -0.1122384295, -0.0169230793, 0.4271060824, 0.1174419895, -0.0816169605, -0.0089906445, -0.0200457647, -0.4294741154, 0.3538792133, 0.1054070443, 0.4081188738, -0.2856419981, -0.1217012107, -0.0002951851, 0.1581317037, -0.0239709932, 0.0588830411, 0.5011533499, -0.2717713416, 0.0426839963, 0.0682517141, 0.1794451177, 0.0186107904, 0.0977605507, -0.0877998695, -0.0890028104, -0.2667180896, -0.0514384918, 0.408646673, -0.3225747645, 0.0955644995, 0.2566769719, 0.0270482041, -0.1792946011, 0.1918320805, -0.0414977111, -0.0328572541, 0.3576870263, 0.397295326, 0.3376339078, 0.174932614, -0.2122963965, -0.0349953882, 0.1863114685, -0.4872902334, -0.4025040567, -0.0336632058, 0.1213277355, -0.0833240524, 0.0632052422, -0.1980368942, -0.0482573472, 0.3823129535, -0.3008547723, -0.0618359111, -0.0137255481, -0.2206203043, -0.5042767525, 0.040707428, 0.4012890756, -0.3596991003, 0.1303672194, -0.0915537477, -0.2640866041, 0.1504325122, 0.0056375656, 0.0056341127, 0.3616814017, -0.2812198102, 0.0156073133, 0.2774584889, -0.3938943148, -1.0015972853, -0.0210030079, 0.0730995089, 0.1660424769, 0.2444063723, 0.1191371009, 0.3659378588, -0.0303458292, 0.1704769284, 0.3187128901, 0.1300752312, 0.1119742319, -0.0629962236, -0.2038549483, 0.2796608508, 0.1339266002, 0.0883391201, 0.3009034991, 0.312600106, -0.0569339506, 0.251095593, -0.1872612089, 0.116804406, 0.1925157905, 0.0114956526, -0.0351362228, 0.1375146806, -0.1277379841, -0.420409292, 0.3514482081, -0.00811728, 0.0851668194, 0.0759790465, -0.2027431279, -0.3184642494, 0.0913407728, -0.5447552204, -0.2889970243, 0.0851063654, 0.2938987911, 0.2124249339, 0.0236818604, 0.1891641766, 0.3374149799, -0.2082268894, 0.1271959245, -0.1811406165, 0.0386061855, -0.1883375496, -0.1364492327, -0.2122476399, 0.0469153933, 0.2001280636, 0.2527483404, -0.2134325951, 0.1961012632, 0.151213333, 0.0374986753, -0.3785572946, -0.0595560744, -0.0223776083, 0.1217297763, 0.1568485051, 0.1381781846, 0.1483232975, -0.0443943143, -0.1922187656, 0.1377540231, -0.1596345007, 0.14373146, -0.3266511559, 0.2430362701, 0.2447061241, 0.0900503173, 0.0856966749, 0.0344529897, 0.3054705858, 0.0241174567, 0.0745961443, -0.2858042717, 0.1012615561, -0.0778078139, 0.0593021847, 0.0225473158, 0.0812815726, 0.2497533113, -0.1746012717, 0.0168862902, 0.2869935334, 0.349679023, 0.5377136469, -0.0409865156, 0.0515500903, 0.0667970031, 0.0479120463, 0.0896691009, 0.1192515045, 0.0857714713, -0.0702273324, 0.2634492815, 0.1284338385, 0.2241659462, -0.0647975802, -0.1138611957, -0.107541278, 0.4194297791, -0.4875138104, -0.084387593, 0.1000552922, 0.0748399198, 0.1812013388, -0.2428474277, -0.0887820199, -0.1460988075, -0.2430461347, 0.3116364777, 0.0940705463, 0.0835373625, -0.511957705, 0.164441213, 0.0075377976, -0.2018063366, -0.1137571484, 0.1238797531, -0.1658339351, -0.0141071854, 0.1862449348, -0.1799398512, 0.1873875707, -0.2951588631, 0.2437517196, -0.3901760876, -0.1954325885, 0.0151099013, 0.0578858256, 0.4098414481, 0.1254311204, 0.1551068723, 0.1864105314, -0.3417646587, 0.0566025972, -0.1075194404, -0.1510609835, 0.2333712131, -0.0550265461, 0.0938554928, 0.0341966748, -0.2493757308, -0.5408244133, -0.2501789927, -0.0095754005, 0.3858899772, 0.0983009189, -0.0028510524, -0.1126530915, 0.0033437847, 0.267029494, 0.3937678933, -0.2108280957, -0.2492020875, 0.2102492452, -0.2092680335, -0.3346993625, 0.0819493756, -0.1042304859, 0.0445711389, 0.2523835003, -0.4788489342, -0.0906342939, -0.3600659072, 0.4096082449, -0.232615903, 0.0938282236, 0.3463047147, 0.0892930999, 0.1463989317, -0.0417488404, -0.2757158875, -0.0651353374, -0.2946413159, -0.068232581, 0.3381980062, 0.4274490774, -0.0575702377, 0.3770318925, 0.3002279699, 0.3604496717, 0.3344713151, 0.04584153, 0.3711133003, 0.0542609356, -0.2594737113, 0.1087757051, -0.1943459958, -0.140160799, 0.3007430136, 0.0889823362, -0.1952640116, -0.052531682, -0.3804523051, -0.2807892859, -0.2852858603, -0.0992422476, -0.2463323325, 0.2537561357, 0.1191406399, 0.1100426763, -0.4462445676, -0.3691142201, 0.0288443286, 0.5546328425, -0.3098391891, 0.1115756556, -0.3508035243, 0.1366987079, -0.6549720168, 0.2522459924, 0.0340248011, 0.4958057404, -0.1741242707, 0.1266969591, -0.0015080259, -0.1074288562, 0.5570681095, -0.6522978544, 0.4618299305, 0.0581227317, 0.1157312021, 0.0101971151, -0.2243451625, -0.0922563747, 0.2416802943, 0.1369419247, 0.2145550996, 0.1639221013, 0.0440419056, 0.0762091056, 0.1665931493, -0.2001322806, -0.279057771, -0.2271348834, -0.3418877125, -0.3903853595, 0.128006041, 0.0421996191, 0.1854700744, -0.1517433375, 0.1171616763, -0.4046885669, 0.2369778156, 0.1301799268, 0.1602822691, 0.187791869, 0.0645751134, 0.2181593776, -0.0480453596, 0.0753483474, -0.1291563809, 0.5240867138, -0.2804769576, -0.328379035, -0.0524905957, -0.199985683, -0.1171171516, 0.1122419834, -0.3265575469, -0.0500914566, -0.1384819001, -0.1327372044, -0.3143305779, 0.117074959, 0.0426035039, -0.1354341507, -0.3776838183, -0.3201939762, 0.3641437292, 0.2117004246, -0.4467277825, 0.3404740095, 0.1198474169, -0.4280630946, 0.1824693233, 0.0517599583, 0.7466567159, 0.0798895434, 0.2780212462, 0.0972766355, -0.1122953147, 0.2001173049, 0.1161781773, 0.0565570518, -0.3728869557, -0.4541019201, -0.0988719016, -0.2205425799, -0.134537518, -0.0249406099, -0.2337937057, 0.2817453742, -0.1129783094, 0.3188050985, 0.274310261, 0.048037339, -0.3741956651, -0.3764992654, -0.1209942549, 0.1251865476, -0.1938239634, 0.1358688474, -0.2274900377, 0.0911153406, 0.0849043131, -0.1673949957, -0.439121902, 0.1967898756, -0.4114460945, 0.1381170154, -0.2974178493, -0.3836832643, 0.0877998993, 0.5960645676, 0.2849669755, 0.3604593873, -0.1543026865, 0.0600666888, 0.0793892592, 0.1179443896, 0.024958102, 0.0074552288, 0.1962639689, -0.0806936249, -0.2981881797, -0.0151690254, -0.2781275809, -0.3215303123, -0.1055536345, 0.2862682045, 0.4039052129, -0.3201119602, -0.2076887786, -0.3106458187, 0.0849739909, -0.2798955739, 0.0937029347, 0.0470425822, -0.0756008551, 0.3795401752, -0.3368881643, -0.425712347, -0.1475177705, 0.5242761374, -0.079077132, -0.1337566078, 0.5711378455, -0.0485029556, -0.1785390973, -0.0130321439, 0.1454919577, -0.1009839401, -0.462458998, -0.1003440917, -0.1225365251, 0.1078282446, -0.029106807, 0.1698505282, 0.2787975669, -0.0963102505, 0.0534037836, -0.7581394315, -0.2621001899, -0.1129847094, -0.2311439961, 0.1716352552, 0.1831110716, -0.4405415952, -0.1353047937, -0.2840806246, -0.203002885, 0.0441007577, -0.2147331834, -0.1294415742, 0.2779014409, 0.154557094, -0.001340596, 0.1245135888, -0.0026244703, 0.0926584527, 0.1227548569, -0.1713698655, -0.1237100959, 0.1475240737, 0.1037818864, -0.0917996764, 0.0267537702, -0.3284253776, -0.0735971555, -0.0984259099, 0.3940449953, 0.2593082786, -0.0281576384, 0.0679169372, -0.1276832074, 0.2894711792, -0.2827050388, 0.4151190817, -0.3472835422, -0.0251300745, -0.0133727901, 0.3347693682, -0.1413164884, 0.0541265719, -0.11745359, -0.0824945197, 0.1532541662, 0.0678972974, 0.0646063909, -0.3769121468, 0.085026145, 0.1787576079, 0.0593337528, 0.0623646304, -0.23318322, 0.0148412948, 0.2450501472, 0.1589923799, -0.0922699794, -0.1294877678, -0.0120077264, -0.3234773874, -0.1790443361, 0.3004153967, 0.1639576256, -0.3836256266, 0.1359916031, -0.0324052311, 0.5581638813, -0.2246947289, -0.0577207766, 0.4813490808, -0.2174006104, 0.2738089263, 0.218585968, 0.2596439123, -0.0843797997, 0.5514788032, 0.1820428967, 0.1367382705, -0.0058679264, -0.1720480621, -0.1030526981, -0.6628072858, 0.28002882, 0.0652534962, -0.0736904144, 0.0509437881, -0.0296167657, -0.0086359354, -0.3041151464, -0.0021537442, -0.4382816255, -0.2168946117, -0.1808834672, -0.283659488, 0.0684353933, -0.2338435054, 0.1725392044, 0.0927761719, -0.1707766503, -0.14519687, -0.069977276, -0.0427515879, -0.3035758734, -0.268468231, 0.1116327941, 0.4133677781, -0.2662928104, -0.1926916391, 0.0890493989, 0.0064425515, 0.2395810932, 0.0886423066, 0.0961362123, 0.7200041413, 0.3696607947, -0.186706394, -0.0827123448, 0.2043794394, 0.08498016, -0.1013351902, 0.3095628321, 0.1992664337, 0.1772322208, 0.3453566134, 0.1196848005, -0.124466449, 0.0374585725, 0.0380601026, -0.008947121, -0.0834797546, 0.1873595268, -0.1764346659, -0.168423444, 0.1405667216, 0.1980234534, -0.0727778077, 0.1700269282, 0.2323683053, 0.0627374277, 0.1945085675, -0.1900534481, 0.0200616512, 0.1487799883, 0.3155461252, 0.3503623307, 0.0980699509, -0.2335534841, -0.068358846, -0.5775797367, 0.2545953691, -0.0182250105, -0.3800154626, -0.0322349034, -0.1324881017, -0.3368008435, 0.1061356142, 0.1619229615, -0.1090964749, 0.0555578545, 0.2668960989, -0.1567609012, -0.2936111093, 0.3894377947, -0.0377689339, -0.0781006962, -0.6786634922, 0.0366012938, -0.0887601152, 0.0320076123, -0.1506992131, -0.1666385084, 0.0341500044, -0.0260742661, 0.5437771082, 0.2644129097, 0.4555599689, 0.0078377938, 0.0918127969, -0.562205255, -0.0687982887, -0.1452899277, -0.0336945578, -0.077826038, 0.271348238, -0.2275042981, 0.0414364263, -0.1241922826, 0.1670939773, 0.2662992477, 0.3795417845, -0.0054561738, 0.2279049158, 0.1809432358, 0.1571899056, 0.3478443921, 0.0699722916, -0.0961795077, 0.4460362792, -0.2409338355, -0.342048198, 0.2109487653, -0.3941510618, -0.3340475857, -0.0192074794, 0.3251572549, -0.2549189031, -0.1531336755, -0.2379637361, 0.2061088979, 0.2478395253, -0.1434804201, -0.3868976235, 0.1413453221, -0.1570352912, 0.140291512, -0.0227520186, 0.0342236757, 0.0101351459, -0.225390628, 0.1708674133, -0.2374369949 ]
https://github.com/huggingface/datasets/issues/2934
to_tf_dataset keeps a reference to the open data somewhere, causing issues on windows
I did some investigation and, as it seems, the bug stems from [this line](https://github.com/huggingface/datasets/blob/8004d7c3e1d74b29c3e5b0d1660331cd26758363/src/datasets/arrow_dataset.py#L325). The lifecycle of the dataset from the linked line is bound to one of the returned `tf.data.Dataset`. So my (hacky) solution involves wrapping the linked dataset with `weakref.proxy` and adding a custom `__del__` to `tf.python.data.ops.dataset_ops.TensorSliceDataset` (this is the type of a dataset that is returned by `tf.data.Dataset.from_tensor_slices`; this works for TF 2.x, but I'm not sure `tf.python.data.ops.dataset_ops` is a valid path for TF 1.x) that deletes the linked dataset, which is assigned to the dataset object as a property. Will open a draft PR soon!
To reproduce: ```python import datasets as ds import weakref import gc d = ds.load_dataset("mnist", split="train") ref = weakref.ref(d._data.table) tfd = d.to_tf_dataset("image", batch_size=1, shuffle=False, label_cols="label") del tfd, d gc.collect() assert ref() is None, "Error: there is at least one reference left" ``` This causes issues because the table holds a reference to an open arrow file that should be closed. So on windows it's not possible to delete or move the arrow file afterwards. Moreover the CI test of the `to_tf_dataset` method isn't able to clean up the temporary arrow files because of this. cc @Rocketknight1
99
to_tf_dataset keeps a reference to the open data somewhere, causing issues on windows To reproduce: ```python import datasets as ds import weakref import gc d = ds.load_dataset("mnist", split="train") ref = weakref.ref(d._data.table) tfd = d.to_tf_dataset("image", batch_size=1, shuffle=False, label_cols="label") del tfd, d gc.collect() assert ref() is None, "Error: there is at least one reference left" ``` This causes issues because the table holds a reference to an open arrow file that should be closed. So on windows it's not possible to delete or move the arrow file afterwards. Moreover the CI test of the `to_tf_dataset` method isn't able to clean up the temporary arrow files because of this. cc @Rocketknight1 I did some investigation and, as it seems, the bug stems from [this line](https://github.com/huggingface/datasets/blob/8004d7c3e1d74b29c3e5b0d1660331cd26758363/src/datasets/arrow_dataset.py#L325). The lifecycle of the dataset from the linked line is bound to one of the returned `tf.data.Dataset`. So my (hacky) solution involves wrapping the linked dataset with `weakref.proxy` and adding a custom `__del__` to `tf.python.data.ops.dataset_ops.TensorSliceDataset` (this is the type of a dataset that is returned by `tf.data.Dataset.from_tensor_slices`; this works for TF 2.x, but I'm not sure `tf.python.data.ops.dataset_ops` is a valid path for TF 1.x) that deletes the linked dataset, which is assigned to the dataset object as a property. Will open a draft PR soon!
[ 0.0456905663, 0.334508419, 0.1148890257, 0.080451034, 0.2304305583, 0.118887417, 0.3988847136, 0.2548755109, -0.1099170819, 0.2674386799, -0.3353850842, 0.4040720165, -0.1644811481, -0.1074629501, -0.0342661999, -0.1066431478, 0.0511111543, 0.1451645941, -0.1666638404, -0.1226122081, -0.2103365809, 0.0351907536, -0.1274755448, 0.0721159056, -0.1387630254, -0.2811448276, 0.0105889933, 0.1006439403, 0.2441080213, -0.0183550231, 0.0682790056, 0.0211760364, -0.177796185, 0.4797623456, -0.0001166652, 0.4142073989, -0.0061280271, 0.1301537901, -0.235580802, 0.0565112084, -0.0690313205, 0.1760492623, 0.1245584637, -0.0599729307, 0.1349684894, -0.2177767009, -0.0255724229, 0.0832738504, 0.2824953496, 0.4290578365, 0.1738771498, 0.6678111553, 0.049049627, -0.0070738695, 0.3827846944, 0.0638971701, -0.2742590308, 0.1161701158, -0.2370098084, -0.1935149431, 0.0655605793, 0.5781883597, 0.0173822027, -0.0747985765, -0.1346866488, 0.0793781951, -0.2474848479, -0.2132097334, 0.099155657, 0.3864619732, 0.2942140996, -0.3177287579, -0.0704426542, -0.1286842972, -0.0647842139, -0.1454346925, 0.1913480461, -0.046207156, 0.017386917, 0.1348499954, 0.0582152456, -0.1622668952, -0.2615066469, -0.0061726281, -0.2810887992, -0.1072200239, 0.0857438222, 0.0801384374, 0.414106369, -0.0271513741, -0.068637602, 0.0416288003, 0.0201638471, 0.1307915747, -0.2023018003, -0.1820205152, -0.039258711, -0.1770301908, -0.0281791855, -0.0708624199, 0.2392520756, -0.1570445448, -0.2443445474, 0.0677398071, 0.1644194871, -0.0705889463, -0.6655332446, 0.1451997906, 0.2680508792, -0.1933338344, -0.1119194329, -0.0286712628, 0.0027096812, -0.4981434345, 0.2861165106, -0.2107922286, 0.4638061523, 0.0174133722, -0.5834477544, 0.1703355759, -0.1943601817, 0.4077934325, -0.0392662771, 0.3421227634, -0.0097245919, 0.2793687582, 0.3236465752, -0.0036117642, -0.4970700741, -0.0162012, -0.0546676517, -0.0396631137, -0.2995604873, -0.3319226205, 0.1675927192, 0.0439531542, -0.0478496067, 0.1728075743, 0.0610827021, 0.1025774032, 0.2539456487, -0.2808155119, 0.5246316791, 0.4812721908, -0.0750983432, 0.2450949699, 0.094958134, -0.2507022023, -0.1292222887, 0.3534173071, -0.271070987, -0.1585650742, -0.2603646219, 0.1245645955, -0.1202328429, -0.1552468389, -0.2238021493, 0.0450044461, 0.0343124531, -0.0595466755, 0.0862919539, -0.1370920688, -0.5523484945, -0.2646558583, 0.0109041464, 0.3650912344, -0.1991525888, 0.1795514375, -0.0254384503, -0.3931910396, -0.1594114155, 0.2656008899, 0.0646049082, 0.315382421, -0.4097916186, -0.1304864734, 0.4838194549, -0.2320678681, -0.4512842894, 0.2350057364, -0.2089946121, 0.2142525762, -0.3518173099, 0.1303172708, 0.2125170231, -0.2066658884, 0.0123629132, -0.0070450343, -0.0623103678, -0.009127249, -0.3236092329, -0.0108151864, -0.0680190474, -0.1952706128, -0.0157284178, -0.0124156829, 0.1318649352, -0.0493954197, 0.3902634382, 0.2196914554, 0.1933261156, 0.1417482793, 0.3756607473, -0.1729133576, -0.0790883675, 0.0432887785, -0.3775175512, 0.1395243853, 0.4056796134, 0.0777031407, -0.1249045953, -0.1479362994, -0.0149693638, 0.1985371262, -0.1919496357, 0.0200802218, 0.0784440786, -0.1194245666, -0.3427836597, 0.2097568363, -0.0087737013, -0.1780350357, -0.2768910527, 0.0820086896, 0.1028026193, 0.4687242806, 0.2687642872, -0.0055732708, -0.2448134571, 0.1943388134, -0.1494650543, -0.0300622191, -0.2719019651, 0.4269395471, 0.1747722477, 0.3178130984, -0.1541973948, 0.5814441442, 0.1066848487, -0.5981359482, -0.2948667407, 0.345680505, 0.1319477111, -0.028623648, -0.0179552659, 0.1456983984, -0.2007223219, 0.171325475, 0.0537690409, 0.2392641008, 0.0408273004, 0.0214642044, -0.0363970362, -0.3410162628, -0.048381418, 0.3614164293, -0.3146298528, 0.2986148596, -0.6084029675, 0.1965304911, 0.3866648376, 0.0311069563, -0.1689249873, 0.2358304709, -0.1694948971, 0.0617295206, 0.0715380758, 0.3181353509, 0.476054281, 0.0223621521, 0.1727905273, 0.1367983967, -0.193739742, -0.0902521908, 0.2373642176, 0.0887134001, 0.3124321103, 0.2039208263, 0.25704512, 0.193103686, -0.3024033606, 0.0330183432, 0.130203411, 0.1728958189, -0.4525787234, 0.1747216135, -0.1807385981, -0.0388464183, -0.307489574, 0.0117461048, 0.0377215482, -0.134800002, 0.3154597282, 0.3967652917, -0.4561233222, 0.153922379, -0.3289419115, 0.1290333718, 0.0227688793, -0.2959315479, 0.1803024411, -0.169179216, -0.2714836895, 0.0344429053, 0.3643865883, -0.24427782, 0.4180335999, -0.0013580687, -0.0747494251, -0.1528537571, -0.2631629407, 0.0897795483, -0.0949533954, 0.1932279766, 0.2937165499, 0.3368107378, -0.1232672036, -0.1301765293, 0.1462340504, -0.4851278663, -0.1786133051, 0.1372669786, -0.1227175817, 0.209010601, 0.0203978065, -0.1520884037, 0.0741765723, -0.3432299793, 0.0670822263, -0.191379711, 0.127728045, 0.6203324199, 0.1520412415, -0.0800016448, 0.3789710402, 0.10767968, -0.1736004055, -0.1127346307, 0.200914368, -0.2037230134, -0.4296337366, 0.2909044921, 0.0338889062, 0.1325789392, 0.295558393, -0.6434158087, -0.1689423323, -0.0437356085, 0.1776636243, -0.1088872477, -0.0470069051, 0.1665738225, 0.1164368093, -0.1197147071, -0.3432469964, 0.0827863663, 0.3821257651, -0.227080822, -0.0485802852, 0.0422705784, 0.0882449597, 0.313570559, 0.6243577003, 0.0508327, -0.3429434299, 0.0208036136, -0.2982521057, 0.5073607564, -0.159090668, -0.2795748413, 0.0158007275, 0.0420313291, -0.13273637, 0.2462733835, -0.0795774087, -0.2103789449, 0.0578622855, 0.2167329341, -0.0375917666, -0.5290263295, 0.1369023621, -0.3965076804, 0.1983652562, 0.1509983689, -0.0425542817, -0.1581777185, -0.4451107979, 0.2289596349, 0.2040211558, 0.0930258259, -0.1366162896, -0.1987896413, -0.2823874056, -0.3425536454, 0.0680471882, 0.1306476295, 0.5035336614, 0.0921356902, -0.2987198234, 0.1360505223, 0.2798964679, 0.7769178748, -0.0301158391, -0.0992753878, 0.2773328424, 0.3224091232, -0.4041952789, 0.0555643141, -0.1050164551, -0.0046288599, 0.028162742, 0.2416950762, 0.0772358328, -0.3887937963, 0.2129498273, 0.1766911447, -0.2477184087, 0.2110395133, -0.3918560147, -0.398602128, 0.1013680622, 0.0878460184, 0.260494113, 0.0497563928, -0.1087201983, -0.1115121841, -0.3012365699, -0.2482331544, 0.0881446972, -0.0156271141, 0.3283712864, 0.3708717823, 0.3975336552, 0.0533410273, 0.5702848434, 0.3938702047, 0.4075015187, -0.5431131124, 0.021427609, 0.0755058676, 0.1911333948, 0.125191927, 0.4420394599, -0.1866856217, 0.0531414859, -0.4151880443, 0.0002785593, -0.3923731148, 0.5302588344, 0.1395115256, -0.2031341493, -0.0013096452, -0.0922305658, 0.1333688647, -0.0103618503, -0.1489023864, 0.6897454262, 0.2165830582, -0.1877485067, 0.2651528418, 0.1582136005, 1.1080405712, -0.0935677141, 0.2334691584, 0.5235840082, -0.2643699646, 0.2126546949, -0.0553808175, 0.1353131831, -0.0632255748, -0.5360183716, 0.0201393031, -0.0125073828, -0.3608244359, -0.2005607784, 0.1893274188, 0.0023706069, 0.1572063267, 0.410684675, 0.2291459441, 0.0776234716, 0.2959440947, -0.2186191976, 0.0396565311, 0.0224721488, 0.4466592371, -0.1266208887, -0.2026067823, -0.1223222986, 0.1659467816, 0.0271231998, -0.0344647914, -0.0096408138, -0.7225638628, 0.2756160796, 0.0422483645, -0.0904388428, -0.0240593981, 0.4012312889, 0.3712239861, -0.0988768116, -0.1523476243, 0.2883424163, 0.3773627877, 0.2930121124, 0.0938072205, -0.0167857539, 0.4750951231, 0.0383024365, -0.0803633481, 0.1676332504, -0.0544717051, -0.0525227487, -0.0370946191, -0.1225825995, 0.0382938497, -0.1205560043, 0.044584427, -0.0995850563, -0.2459054291, -0.0579577163, 0.1035773382, -0.180487588, -0.1070264578, 0.2344724834, -0.1927336901, -0.4316695929, 0.2392567247, 0.3922551274, -0.1205129474, 0.1710344702, 0.3036819696, -0.0761046782, -0.0731279776, -0.2562387288, 0.3445347846, 0.0378310904, -0.5670926571, 0.2645981014, -0.1810758114, 0.3202282488, -0.1079885513, 0.5147185326, -0.1970301867, 0.0209408961, 0.0221601725, -0.1397224218, -0.3977710903, 0.2361740619, 0.0018207144, 0.4124109447, -0.2537195086, 0.4747990668, -0.1287534237, -0.2527932227, -0.2997979224, 0.2343676686, -0.0281137675, 0.0787903517, -0.1058863029, 0.0576506145, 0.3181125224, -0.2779511809, 0.057696119, 0.1073206663, -0.1381114721, -0.1384907216, -0.1637144834, 0.1632773131, 0.0280179083, -0.3234009743, -0.0129801221, -0.1738720238, 0.076291658, -0.1113803163, 0.3281935751, 0.0700529516, -0.3296965957, 0.0270981658, -0.213646844, 0.1309412271, 0.1392472386, 0.0077438001, -0.0305922497, 0.3758689463, 0.0896954685, 0.0981485397, -0.2366094887, -0.2325259447, -0.0303854793, 0.2842668295, -0.0356378406, -0.3600642979, 0.0377127007, -0.0558477119, -0.2938879132, -0.0599053092, 0.3766296208, 0.1799759567, -0.4634622633, -0.1362240314, 0.2592977285, 0.2242168635, -0.240421176, 0.16245085, -0.121767506, 0.0198641177, 0.0385113843, 0.166296646, 0.1840274334, -0.1465545297, -0.1428779364, 0.177231282, -0.2008037418, -0.2036248147, 0.0310160294, 0.5156292915, -0.0325355567, 0.2373232841, -0.1476540118, 0.1036643386, 0.1264172643, 0.2481572181, -0.0781786367, 0.4826430678, 0.1981102079, -0.0654385388, -0.0354681835, -0.3134524226, -0.0555218123, 0.1641895622, -0.123816818, 0.2421867996, -0.0361499302, 0.2217094153, 0.1549313664, -0.4245827198, -0.0117485141, 0.2324923277, -0.0859795734, -0.3671880066, -0.3900308013, -0.208055228, -0.2723349631, 0.0311247166, -0.0055279625, -0.0865737349, 0.0094038406, 0.1060144007, -0.0662822947, -0.2825777233, -0.1198218912, 0.3330772221, 0.2778065503, -0.2325664908, 0.0656126365, -0.0248095151, -0.065677695, -0.0021082226, 0.2082015872, 0.0835288912, 0.0284219794, -0.1759397835, 0.0114991637, -0.0346538313, 0.0922640339, -0.040092878, 0.2144379616, -0.0489174612, -0.1405197233, 0.2157975733, -0.0491833091, -0.070024997, 0.1828447282, 0.0519715101, 0.0976671353, -0.4182255566, 0.1498892158, -0.0033793463, -0.101680629, -0.2287625968, -0.0051180227, 0.050867077, -0.108679451, 0.4808011055, -0.4602059424, 0.3644775152, -0.0873917863, 0.0682187453, -0.0095315883, 0.2219795287, 0.1271091551, 0.3292393088, -0.2891252935, -0.3842819929, -0.5309660435, 0.2625992, -0.0495068468, -0.0506452397, 0.2118176818, 0.0317716971, -0.0888985768, -0.0664601475, 0.0274049416, -0.1865465939, 0.113322854, 0.267254889, -0.2658275366, -0.0360959657, -0.4830030203, 0.0984326154, 0.0199032538, -0.5478616953, -0.1800811589, -0.1762706935, 0.0375101008, -0.0818457901, -0.0215519853, -0.0166112091, 0.5460247397, 0.5247312188, 0.1254571527, 0.0754962265, 0.1195667684, -0.102561526, -0.2674234807, -0.179499656, -0.3766336739, -0.1837470978, 0.0070535499, -0.0237968545, -0.0529440977, 0.197137922, 0.0137047442, -0.2977714539, 0.1801951528, 0.3653975129, -0.4400824606, 0.1956054866, -0.2059031129, 0.3725327849, 0.2628458738, 0.4234926105, -0.1296609044, 0.2166781127, -0.3998849392, -0.3820687532, 0.4928815663, -0.5328620076, -0.093006812, -0.024597371, 0.3842858076, -0.0938029662, 0.0362871028, -0.5819953084, -0.176555559, 0.3898159564, -0.083492741, -0.5030674338, 0.1706117392, 0.130146578, 0.1384345293, 0.1181671172, 0.5913186073, 0.1401758492, -0.1933630854, 0.0364979543, -0.2862138152 ]
https://github.com/huggingface/datasets/issues/2934
to_tf_dataset keeps a reference to the open data somewhere, causing issues on windows
Thanks a lot for investigating !
To reproduce: ```python import datasets as ds import weakref import gc d = ds.load_dataset("mnist", split="train") ref = weakref.ref(d._data.table) tfd = d.to_tf_dataset("image", batch_size=1, shuffle=False, label_cols="label") del tfd, d gc.collect() assert ref() is None, "Error: there is at least one reference left" ``` This causes issues because the table holds a reference to an open arrow file that should be closed. So on windows it's not possible to delete or move the arrow file afterwards. Moreover the CI test of the `to_tf_dataset` method isn't able to clean up the temporary arrow files because of this. cc @Rocketknight1
6
to_tf_dataset keeps a reference to the open data somewhere, causing issues on windows To reproduce: ```python import datasets as ds import weakref import gc d = ds.load_dataset("mnist", split="train") ref = weakref.ref(d._data.table) tfd = d.to_tf_dataset("image", batch_size=1, shuffle=False, label_cols="label") del tfd, d gc.collect() assert ref() is None, "Error: there is at least one reference left" ``` This causes issues because the table holds a reference to an open arrow file that should be closed. So on windows it's not possible to delete or move the arrow file afterwards. Moreover the CI test of the `to_tf_dataset` method isn't able to clean up the temporary arrow files because of this. cc @Rocketknight1 Thanks a lot for investigating !
[ -0.017654635, 0.1541891694, 0.0769107938, 0.0744181946, 0.1725985259, 0.1645845324, 0.3400904834, 0.1861168444, -0.1919683069, 0.3822576702, -0.2824491262, 0.2848426998, -0.1505767554, -0.1510132104, -0.1580371708, -0.0992337465, 0.1257585436, 0.167851299, -0.1901147068, -0.1841688305, -0.2898720801, -0.0215148497, -0.327370286, 0.0795662105, -0.2852760255, -0.3267048597, -0.0916857198, 0.1191536784, 0.1170001402, -0.07841409, -0.1573167741, -0.0711032003, -0.1773468852, 0.4747584462, -0.0001205474, 0.3584452868, 0.0146335, 0.1292270571, -0.1646926254, 0.1001513228, -0.102570191, 0.1868531406, 0.1098253652, -0.1309705675, 0.1541632265, -0.2203837484, 0.047294464, 0.1913519353, 0.2669393718, 0.3942332268, 0.1664138734, 0.5976775289, -0.0148456199, -0.0244104229, 0.4810651839, 0.0666921884, -0.3110128641, 0.228202045, -0.183252871, -0.2691649497, 0.1474390477, 0.4888600409, 0.0831765756, -0.0415764973, -0.1837423146, 0.0297772828, -0.3578903675, -0.2360781282, 0.1937207282, 0.2784611583, 0.3239397705, -0.2224481106, 0.0123386877, 0.0420895405, -0.12151099, -0.0689414591, 0.1815636605, 0.0662881956, 0.1170332655, 0.1451949328, -0.1794295907, -0.0714711398, -0.2178188562, -0.0269813742, -0.2697104514, -0.1216941476, 0.0063582025, 0.1643116474, 0.3995058239, -0.0270410925, -0.2186173201, -0.0294112433, -0.0166256763, 0.0714359283, -0.1651377082, -0.1348735392, -0.1345437765, 0.0025094899, -0.1078164205, 0.0273076948, 0.1821828932, -0.2230697572, -0.1323369145, 0.1000298783, 0.1016594917, -0.1187836677, -0.5958840847, 0.3131462336, 0.295281142, -0.2285301536, -0.2712132633, -0.1387895048, -0.1088327542, -0.6633168459, 0.4933824241, -0.2781928778, 0.498590976, -0.1741571277, -0.5532178283, 0.1169041544, -0.1342375726, 0.3653871417, -0.115196079, 0.4193829894, 0.1590043753, 0.0912155584, 0.2282477468, 0.1190212443, -0.4121915698, 0.0310258958, 0.0330229588, -0.1256711781, -0.360565722, -0.3782528937, 0.1396561265, 0.0635450929, -0.0230039731, 0.2391600609, 0.0726201385, 0.1766205281, 0.2837675512, -0.431430608, 0.6493878365, 0.4464761317, -0.0134130185, 0.2591511011, 0.1623892933, -0.1892025024, -0.1497623026, 0.4186564386, -0.2162784487, -0.0137974694, -0.157305494, 0.115259409, 0.0606884286, -0.1436565369, -0.203731969, -0.1010478437, -0.0786174759, -0.1635623276, 0.2012656033, -0.1976070255, -0.5147459507, -0.2963284552, -0.1082999781, 0.3792219162, -0.1645184755, 0.3078974187, 0.1431201845, -0.3972130418, 0.0059953704, 0.363016516, 0.1134514436, 0.2382273823, -0.4455956221, -0.1024718434, 0.4214687347, -0.2397156507, -0.4494386911, 0.2381397039, -0.1294758916, 0.0941175446, -0.2015377432, 0.1184352636, 0.143118009, -0.2037379295, 0.0316181332, 0.0183395352, -0.0693732202, -0.076740399, -0.3000811338, 0.1583014727, 0.0204451066, -0.0509014651, -0.154321, 0.05273645, 0.3393533826, -0.2361169606, 0.3411521316, 0.1847975552, 0.0689592734, 0.1607869565, 0.321493119, -0.3075342774, -0.0852688402, 0.0619392544, -0.1281856, 0.1172516495, 0.364707619, 0.0094336923, -0.0719543397, -0.113814719, -0.113396585, 0.1810445189, -0.2156182081, 0.037566293, 0.0035135944, -0.0378339328, -0.2137085199, 0.2067743689, -0.0004930327, -0.1253623217, -0.3070148826, 0.026798455, 0.296400249, 0.4681534469, 0.1054550856, -0.0451783091, -0.1720358729, 0.1316904277, -0.1075824574, -0.066053614, -0.2887434065, 0.469099164, 0.2476580292, 0.1296931356, 0.0165344253, 0.4050133228, 0.0425857641, -0.691002965, -0.1249036565, 0.4314128757, 0.1971428692, -0.1063851342, 0.0224665478, 0.0856082737, -0.2597537935, 0.2148093581, 0.100669235, 0.2228789479, 0.0058220923, 0.0665586069, 0.0792132393, -0.3537418544, 0.096439071, 0.4207526743, -0.3075872362, 0.2093724161, -0.6096150279, 0.0245354343, 0.4899153709, -0.0103561152, -0.0894310772, 0.2794166505, -0.1514907628, 0.1749186516, 0.0958402604, 0.1407725215, 0.5122002363, 0.035527043, 0.0858851746, 0.1443796307, -0.2817312479, -0.066528663, 0.2520436347, 0.0302203242, 0.2120308727, 0.1943588257, 0.1666267216, 0.2204724401, -0.3269425929, -0.0779463053, 0.100687407, 0.0708008334, -0.3873489797, 0.2037564516, -0.141062662, -0.1401050091, -0.2412522137, 0.0849737749, -0.0051670396, -0.1253742427, 0.3121213317, 0.2641050816, -0.3669916689, 0.1250952035, -0.4197683334, 0.1320843995, 0.0480908081, -0.2092866898, 0.1106635705, -0.1319660395, -0.3402947783, 0.0305394866, 0.4360516667, -0.1923869103, 0.4651909173, -0.2223875225, 0.1703501493, -0.1473429501, -0.1536527276, 0.0298600588, -0.0900716111, 0.2436603159, 0.2737259269, 0.3140886426, -0.2141556144, -0.0708004832, 0.2795857489, -0.5427033305, -0.2861479223, 0.223249197, -0.0327365473, -0.1293388009, 0.083870694, -0.0071252678, 0.0840421841, -0.3345767558, 0.0517720655, -0.102933906, 0.0879867971, 0.5746050477, 0.191638723, -0.0430085361, 0.2481711358, 0.0756601617, -0.1675255299, -0.0089375759, 0.2714706361, -0.207121104, -0.5179976225, 0.3182075024, 0.1386426985, -0.0428776555, 0.3085761368, -0.6279010177, -0.1342575699, -0.2336850762, 0.100689888, -0.1068340912, 0.1550725847, 0.0871676654, 0.0960529, -0.1449069381, -0.3435560763, 0.0048925113, 0.2848476768, -0.2362652719, 0.0006516685, -0.0349547826, 0.0629395843, 0.1345201433, 0.4822039604, 0.0318293944, -0.1654725671, 0.200495705, -0.3054215014, 0.6046196222, -0.2599270642, -0.2400037944, 0.0599017553, 0.1142046899, -0.1535027176, 0.234093219, -0.0606404692, -0.1787326336, -0.0133119877, 0.1014661565, -0.1196279526, -0.3492877185, 0.0903233215, -0.3583359718, 0.1568625569, 0.1205483004, -0.0469608344, -0.0249231085, -0.3814910352, 0.2835078239, 0.1921522617, 0.0423277169, -0.2172423154, -0.3888531327, -0.454675436, -0.10856013, 0.1654713601, 0.1470241696, 0.5874216557, 0.0064070574, -0.2722571194, 0.1946412474, 0.2674406469, 0.7342179418, -0.1391730607, -0.0503010638, 0.3903177679, 0.3925023973, -0.3472799659, -0.0092262616, -0.2599988878, 0.0213550497, -0.1138023883, 0.2361126691, 0.1701416969, -0.280518651, 0.2421051562, 0.2854965031, -0.2466304898, 0.1876034737, -0.5327395797, -0.343834877, 0.0030114246, 0.1400165558, 0.2260756344, -0.0294362605, -0.1500397772, -0.0529747792, -0.3793028295, -0.2613240778, 0.0598471276, 0.0349562019, 0.4408480227, 0.1943806857, 0.3049543202, -0.0261976104, 0.6141986251, 0.3659821153, 0.4922839701, -0.5450040698, 0.1024127901, 0.2489347011, 0.0703405738, 0.2837764621, 0.4125652015, -0.1229415163, 0.0962915942, -0.4376490116, 0.1911679357, -0.3466957211, 0.4170636237, 0.20371674, -0.1481145918, -0.0529025272, 0.0637534186, 0.0556594357, -0.0155519368, -0.1059591547, 0.6313262582, 0.269338429, -0.0313745104, 0.2944715321, 0.1011382863, 1.2075374126, -0.1255977303, 0.3258848488, 0.3455070555, -0.4239888489, -0.0855606198, 0.0722757354, 0.1262742877, -0.0671244711, -0.5808190703, 0.0595162548, -0.0741003975, -0.2176912725, -0.1429721564, 0.1091328785, 0.0651676208, 0.1057809964, 0.5431858897, 0.235861212, -0.0209707171, 0.1053520069, -0.0252951458, 0.016069822, -0.0120059047, 0.5678728819, -0.1512120366, -0.3326204121, -0.087358214, 0.0550680682, -0.0100521231, 0.0195954721, -0.0133461254, -0.6196104288, 0.2293964177, 0.0329568237, -0.0710296631, 0.0058566988, 0.4161221981, 0.3843311965, 0.0319344103, -0.1466644853, 0.3212939501, 0.4691763222, 0.2076121867, 0.1192942485, 0.0424969308, 0.4516296089, -0.0465639569, -0.1062377393, 0.2462542951, -0.1292869449, -0.0807303339, -0.1673709899, -0.0603705309, 0.038864404, -0.1431066394, -0.048150599, -0.2568143904, -0.270617038, -0.059519697, 0.0889462605, -0.2223586291, 0.0245296545, 0.3424888253, -0.1079980955, -0.5061223507, 0.2096646726, 0.276037395, -0.2299588323, 0.1969762743, 0.3436801732, -0.1816192269, -0.1202588603, -0.256157279, 0.3886810839, 0.0609171651, -0.5470731258, 0.2829530239, -0.1245821118, 0.429043591, -0.0138290934, 0.5695757866, -0.0682384297, -0.0612271167, -0.0057996651, -0.2351913005, -0.3249398172, 0.2648646533, 0.030601548, 0.3474400342, -0.1750466079, 0.3146694005, -0.0190683883, -0.3286039531, -0.2675201893, 0.2184214294, -0.195070371, 0.1273489296, -0.1537469476, 0.0576180927, 0.2064946145, -0.2634270787, 0.085400559, 0.1924275458, -0.0160661768, -0.1238691434, -0.0520596728, 0.1746418625, 0.0810231417, -0.3536424935, -0.0041074217, -0.2538175881, 0.0943080038, -0.047871232, 0.1810651571, 0.0045773825, -0.3380604386, -0.1056242958, -0.1124090403, 0.0229120702, 0.0872407481, 0.058114782, -0.150458619, 0.3196382821, 0.0846866742, -0.0637011901, -0.2290772349, -0.2141297311, 0.019038396, 0.1848994642, 0.0154668232, -0.3869718611, 0.0789402574, -0.070252046, -0.127346918, -0.1185506508, 0.4420285225, 0.250708729, -0.4983851016, -0.1735827476, 0.4078104496, 0.2135398388, -0.3365501165, 0.1308618188, -0.2609257698, 0.003469344, -0.088597402, 0.1060303822, 0.1725834906, -0.2121965587, -0.1787487715, 0.1510977447, -0.4579036236, -0.0566668771, -0.2281567156, 0.6297215819, 0.0878878087, 0.2766057849, -0.0458956733, 0.0726211742, 0.0864037275, 0.2339900881, -0.0945891514, 0.5667414069, 0.1749604195, -0.0305551048, -0.0447542705, -0.319888413, 0.0433935151, 0.2390377373, 0.0055899844, 0.2459430695, -0.0508207157, 0.0674172193, 0.1743658781, -0.4217628837, -0.0918770209, 0.1651830971, -0.0224139057, -0.2720594108, -0.3387703598, -0.2180982232, -0.2728937566, 0.12181665, -0.0307897348, 0.0357925035, -0.0137483692, 0.132101655, -0.0327218994, -0.2596278489, -0.0538723655, 0.2903204858, 0.344977051, -0.2803207636, 0.036957033, -0.0194630641, 0.0688491538, 0.1412667036, 0.3474190235, 0.2181869447, 0.0993962884, -0.2041796148, -0.0227078684, -0.0136043811, 0.0684709847, 0.0822915956, 0.3425371349, 0.0605486557, -0.1241256222, 0.3070169687, -0.0458528548, -0.097131595, 0.1166850254, -0.0437982343, -0.0444129519, -0.334315598, -0.0237693973, -0.0223184638, -0.2086401284, -0.1853766292, -0.0822281688, -0.1447233111, -0.0550839342, 0.3361219466, -0.5006502271, 0.2306670398, -0.1364663988, 0.046309419, 0.0424813442, 0.2000268549, 0.2953695655, 0.5002297163, -0.3583451509, -0.5849112868, -0.5454111695, 0.2477872968, -0.0550521836, -0.1414011866, 0.1582048833, 0.0288414918, -0.0622714907, -0.0681782961, 0.274038583, -0.0469748341, 0.0142406924, 0.4672357142, -0.2215175331, 0.0888676867, -0.3798103631, 0.1021500453, -0.1448572278, -0.6390478611, -0.0195399132, -0.2257535011, 0.0618604831, -0.0238049068, 0.0974493399, -0.0718916506, 0.6155150533, 0.5243155956, 0.0908330306, 0.1478902549, 0.1301814914, 0.0306081325, -0.1639400721, -0.1677481234, -0.1326243728, -0.1898752004, 0.0500835441, -0.0861456469, 0.0079657948, 0.2537888587, 0.1178609505, -0.2608484626, 0.1832638979, 0.4560765028, -0.2930698693, 0.0799366981, -0.2245865464, 0.2090032101, 0.3347372711, 0.3146527112, -0.0712094083, 0.1140887961, -0.4180307984, -0.3265278637, 0.3847385943, -0.441431284, -0.1340732574, 0.0491738394, 0.3551390767, -0.1623359621, -0.0116730267, -0.5308157206, -0.1808762699, 0.3966633379, -0.0071508149, -0.3978721499, 0.2556317747, 0.0600792915, 0.1819682717, 0.1403826475, 0.7158242464, -0.03503526, -0.2116898149, -0.0162410177, -0.1845760942 ]
https://github.com/huggingface/datasets/issues/2932
Conda build fails
Why 1.9 ? https://anaconda.org/HuggingFace/datasets currently says 1.11
## Describe the bug Current `datasets` version in conda is 1.9 instead of 1.12. The build of the conda package fails.
7
Conda build fails ## Describe the bug Current `datasets` version in conda is 1.9 instead of 1.12. The build of the conda package fails. Why 1.9 ? https://anaconda.org/HuggingFace/datasets currently says 1.11
[ -0.4641540647, 0.0640663132, -0.1675162613, 0.0911422074, 0.0242198519, -0.1167648509, 0.0046573328, 0.4584467709, -0.1488352567, 0.0218314379, -0.0215561539, 0.1672185659, 0.1742765456, 0.4530319273, -0.0687930807, -0.0687004402, 0.2214742899, 0.1521472484, -0.3632488847, -0.0315286219, -0.2346586734, 0.3556938469, -0.1418616623, 0.042954348, -0.1667399108, -0.1111968309, -0.0725726113, -0.0722472295, -0.3525906503, -0.309075892, 0.5409511924, -0.1080390662, 0.0791708231, 0.5754619241, -0.0001009286, -0.0032789898, 0.5302111506, 0.0530045889, -0.2712946236, -0.1803977042, -0.3502198458, -0.0796987191, -0.0399142914, 0.1341502666, -0.025258461, -0.3136871755, -0.0039637419, -0.0812839568, 0.2737195194, 0.1549416184, 0.3308033943, 0.0851677209, 0.4155243039, -0.4425582886, -0.4505780041, 0.2404605895, -0.3100655675, 0.1933912933, -0.0950218216, -0.0654576346, 0.3125593662, 0.2748890221, -0.0108567653, -0.2175896168, 0.0571583509, -0.1458919346, -0.1065396816, -0.1608880013, 0.2085220516, 0.082794033, 0.5673777461, -0.3365124464, -0.4459105134, 0.116349265, 0.0547229312, -0.1276331395, 0.2863733172, -0.0994853154, -0.1852693409, 0.2289404869, -0.3072545826, -0.1659559906, -0.0998794213, 0.0542916507, 0.0351006612, 0.0843344927, -0.2238170356, 0.0395075008, 0.0850799978, -0.0795847178, 0.0889546126, -0.017170459, -0.0044747209, -0.0164357647, -0.2207264602, -0.1931111813, -0.1908893287, 0.0040363134, 0.290076822, 0.0416318104, -0.2814685106, -0.2031846493, 0.0022204889, 0.0698052868, -0.057144139, 0.0626951158, 0.4606170654, 0.077450268, 0.145462364, 0.2514044344, 0.1704059988, 0.0070430655, 0.0021299806, -0.3041796386, -0.2461816221, -0.0392220579, 0.2495234162, -0.2043797076, -0.1059830338, 0.1044391021, 0.0609567054, -0.0279124603, 0.0041456302, 0.0737251118, -0.098237142, -0.1265262663, 0.0580965318, 0.1755417287, 0.0175039303, 0.0253259484, -0.2480798662, -0.19085069, -0.0307969321, 0.012003894, 0.2311127931, -0.3263165355, 0.4701302052, -0.1246728003, 0.1668923795, 0.0062446366, -0.1614912301, 0.078064017, -0.3607374132, 0.4940434396, -0.2841105163, 0.1163817868, -0.0540333688, -0.0690908656, -0.0722390711, 0.009847221, -0.1026801541, -0.0875664055, -0.4648688734, 0.2391197681, 0.1965070069, 0.1023772582, -0.1715472639, -0.0221420992, 0.0536693893, -0.0455940999, -0.0935841873, 0.0454386994, -0.0532059669, -0.1457587034, 0.2406151742, 0.2125408351, -0.1583735943, 0.1107756644, 0.1150244549, -0.2624725103, -0.2327995002, 0.0774188638, -0.0671860948, -0.1484007537, -0.0090418523, -0.2777799666, 0.1654792577, -0.4407516718, -0.5214886069, 0.0708692968, 0.1568902731, -0.1486879587, -0.0275132805, -0.1143989637, 0.1878380924, -0.1143638939, 0.1809624135, 0.0786408931, 0.005723747, -0.2770836055, -0.1697548479, -0.275437206, -0.241848886, 0.0517572574, -0.0461218953, 0.1780284196, 0.042331446, -0.2044620216, 0.1104750931, 0.143998459, -0.2036080956, 0.2029421628, 0.4378283918, -0.1347674131, 0.0343065746, -0.1481755525, -0.5067104101, 0.0793106779, 0.1355768591, -0.0216997135, -0.0685060993, -0.1599982828, -0.3334034681, 0.2762608528, 0.0679381713, -0.217081219, 0.2146058977, -0.1150966808, 0.1284432113, 0.0793034956, -0.1678137481, 0.7080689073, -0.137064442, 0.2539079785, -0.1866996437, 0.1552656889, -0.2871536613, -0.1260931939, 0.2259406298, 0.1750397533, 0.2101011425, -0.1859097183, -0.1064059809, 0.3100512624, -0.1132724211, -0.1732333302, 0.1977748871, -0.2093673199, 0.0850393698, -0.0069135549, 0.1005597562, -0.0600860864, -0.1986969262, 0.2078127116, 0.0507737435, -0.0467366427, 0.1806784272, -0.0241424423, -0.0142447082, 0.2336301059, 0.4198890924, 0.0989498571, 0.0189749841, -0.1595772505, 0.1046580002, 0.1180455238, 0.2821315825, 0.0236277115, -0.2964583933, 0.1159171835, 0.3984741867, -0.1097792536, -0.0726787671, 0.2535006702, 0.0919811726, 0.1495138854, 0.3302159607, 0.2453039587, 0.1037769392, 0.0531402938, -0.095606029, 0.2007383853, -0.3480142057, -0.0298374817, 0.1060575619, 0.0322836116, 0.2812074125, -0.0845356435, -0.1015645266, 0.0695140362, -0.0760767683, -0.0694011524, -0.1414503753, 0.0929866508, 0.0086003188, 0.0421742573, -0.1739253849, -0.0793259069, -0.255325973, -0.2271770239, -0.2650867403, -0.020353796, -0.0007564036, 0.1378406584, 0.210903734, 0.4877940714, 0.0403436422, 0.0395924002, -0.0504935272, 0.0288728029, -0.1351604462, 0.1316828281, -0.1524738818, 0.1581934094, 0.0931431428, -0.0417627729, 0.1490940601, -0.4683484435, 0.1915226579, -0.0488868766, -0.5337531567, 0.162495628, -0.2750543058, 0.4730536938, 0.2408772856, 0.0991982818, 0.0325651355, -0.2097351402, 0.1801730543, -0.1365850121, -0.1675789505, -0.219999522, -0.0309822541, -0.3386186361, -0.0958381668, -0.1521292478, -0.135665834, -0.1753454208, 0.3863707185, -0.0221327562, 0.0562425889, 0.3409312069, 0.4604199231, 0.0470611565, -0.1918748617, 0.0891415849, -0.1435628682, -0.4498470724, 0.056229163, -0.2765717506, -0.2497362643, -0.0989951342, 0.2478436381, 0.4750163257, 0.0358756483, -0.5661168694, -0.1986954808, -0.0168789178, 0.1650635004, 0.0965101942, -0.013050952, 0.2417072803, 0.0429633595, -0.1247905418, -0.2604943216, -0.3049151897, 0.1147871763, -0.2061828226, 0.3588501811, -0.0101826554, 0.4184118509, -0.1961857677, 0.2067244649, 0.570433557, -0.193848446, 0.1289104074, 0.1958947629, 0.646984756, -0.2325790077, -0.2919476926, 0.1788204014, 0.2425242811, 0.2087279856, -0.0302555487, 0.2250890583, -0.0930705443, -0.2837232053, -0.2128251344, -0.1717529297, -0.1405042112, -0.2474866956, 0.1902405322, 0.1072169468, 0.1035116091, 0.250531435, -0.1334473193, 0.0827420875, 0.1420256048, 0.2684525549, -0.1062390804, -0.0453671105, -0.2940100133, -0.0090564089, -0.5889351964, 0.3405347168, -0.115719378, 0.5059463382, 0.0934728608, 0.2877984345, -0.1646546274, 0.1292834878, 0.7751023173, -0.1143795177, -0.1694623381, 0.0409080386, 0.1196236387, -0.386511147, 0.1661832929, 0.269202739, 0.4197353423, 0.2771253586, 0.570371449, -0.2825520635, -0.2901853323, 0.4174397886, 0.3029113114, 0.064699769, -0.1520482302, -0.2908979654, -0.3592730463, -0.0160685554, -0.270186305, 0.0235399101, 0.0294448528, -0.0739184543, -0.3009604812, -0.2542800009, -0.1923899204, -0.0933020413, 0.1007940471, 0.1852276027, -0.1531287879, 0.4446290135, 0.1214143708, 0.143140167, 0.3937529624, 0.3233439922, -0.3388970494, -0.4432545602, -0.1255219132, -0.0592223518, 0.2138877064, 0.0718777403, -0.2636139393, -0.4265669286, -0.0393774845, 0.0544238426, 0.0062244446, -0.1491227001, 0.4722716808, 0.4071490765, -0.4898706079, -0.3163699806, 0.3107614219, 0.1555151641, 0.0137672732, 0.6786463261, 0.1637614667, 0.0148167852, 0.0191572513, 0.0330405645, 0.6511470079, -0.0443928279, -0.0499101281, 0.0446797237, -0.2227658033, 0.3669653833, 0.0488393344, -0.0652379617, -0.1855852902, -0.3706175685, 0.0375149027, 0.0188984033, 0.3522101343, -0.0635798946, -0.1897932589, 0.2009338439, 0.0050997678, -0.0510391779, 0.1347304136, 0.0466747731, 0.0570177846, -0.0017096179, -0.2023081779, 0.2671092749, 0.1218866855, 0.0911121443, -0.0820011273, 0.0522740521, 0.0302037653, -0.2407122105, -0.3367681503, -0.0089284312, -0.052127514, 0.0197862741, 0.5075984001, -0.3320956826, -0.006780732, 0.1831906736, 0.532916069, 0.268796891, -0.2907969654, 0.0985455588, -0.1932935715, -0.1898310483, -0.0396836028, 0.08748281, 0.1513931453, -0.1723753661, -0.2542519271, -0.081403546, -0.0534898341, -0.0884619206, 0.1103957668, -0.2348884344, -0.2580360174, -0.2222904563, 0.0855715796, -0.0798651874, 0.1912613213, -0.3580775261, 0.2370942533, -0.0410242192, 0.1347132623, 0.1535924971, 0.0453106724, -0.1981552094, -0.0836486146, 0.2549034357, 0.0502661504, -0.06083728, 0.1065000668, -0.0302821025, -0.283223778, -0.199485153, -0.2953700125, -0.1355858594, -0.2921869159, -0.0426430628, -0.1656433195, -0.1487552971, 0.030801909, 0.2645925581, 0.1511131227, -0.1485049576, 0.1459294707, -0.217853874, -0.4190172255, 0.3893738687, -0.2418382168, 0.081914641, 0.1848844141, 0.3065513074, 0.2461230457, -0.1169423535, -0.3740441203, -0.0096954424, -0.132256791, -0.0716296583, 0.1841001213, 0.0253096037, 0.1819106936, -0.1267617196, 0.1651816815, 0.166282177, -0.3246473372, -0.2387083918, -0.1031778455, 0.0037646173, -0.0249224957, -0.0605644509, 0.1770996302, -0.1955480129, -0.3712851703, 0.0236387346, -0.0425952226, 0.1294345856, 0.0975574777, -0.047995396, -0.0325053371, 0.1657387912, 0.1664978564, 0.1940087974, 0.2027938217, 0.2586369216, -0.0825744346, -0.0052247988, -0.1060191244, -0.0838461593, -0.1263361126, 0.0679822192, -0.3276896775, 0.2343242615, 0.3120971024, -0.153106302, 0.0876108259, 0.3479898274, 0.4070643485, 0.143855691, -0.0349122398, 0.0139444303, 0.4124389291, 0.2923622727, -0.398332715, -0.037430156, 0.2405215502, 0.2383926958, -0.129919067, 0.1489732713, 0.0590852872, -0.1693943292, 0.4098250866, 0.1403006017, 0.2205741554, 0.0602487288, 0.3973987997, 0.3222332597, 0.2497254461, 0.0663221255, 0.4399477243, 0.2902185321, 0.2228898108, 0.4001783133, -0.2888497114, 0.0846696123, -0.0285459496, 0.1135114208, 0.1290114373, -0.104021512, 0.2614093721, -0.0871152207, -0.0681195483, -0.1083463579, -0.1178631559, 0.2789145708, -0.36383003, -0.0831985399, -0.3642092049, 0.0756527483, -0.1014542431, -0.0847678632, -0.0112250736, -0.0103246085, 0.3061100245, -0.1312603951, -0.1614249945, -0.1096174344, 0.5349951982, -0.1963897645, -0.0826527104, -0.4234129786, -0.0658413172, -0.0159965903, -0.0684605166, 0.1299069077, 0.5619087219, 0.0393128321, -0.0317944586, -0.0642656311, 0.5191246271, 0.3900793493, 0.045922596, 0.1561653614, -0.1683365554, -0.0400273055, -0.0259133242, -0.136891067, 0.3559701443, 0.1754811555, 0.0503647886, 0.1609129608, 0.269453615, -0.1784174144, 0.0201286301, 0.1036785692, 0.2914521694, -0.2207628787, 0.122631833, -0.3412408829, -0.1359685957, -0.1008708104, 0.0563278571, -0.2205191106, 0.1479242891, 0.2504945099, -0.1503033936, -0.0945490748, -0.1575134844, 0.1470509917, -0.1119528338, 0.4386317134, 0.2454130054, 0.2079600096, 0.0663516819, -0.411449343, -0.267690748, 0.2406549454, -0.0822616667, 0.1564208269, -0.0161260664, -0.1036028862, 0.0204328652, 0.1059478, 0.3543419242, -0.0168153346, -0.0535218529, -0.2916656733, -0.325381577, -0.1110316217, -0.1225745976, -0.0263410211, 0.162237078, -0.1866420358, 0.18117024, -0.1827753931, 0.0607612543, -0.1764393598, 0.1855309606, -0.0066312873, -0.2995755672, 0.3030668199, -0.0313812457, 0.0356941372, -0.011500272, -0.4884319603, -0.2003731579, -0.3177161813, -0.059405148, 0.3417550623, 0.0319521949, 0.131634593, -0.3392523825, -0.0623484664, -0.1945575625, 0.3203814328, 0.2225255221, 0.0371220186, -0.1918862164, 0.1454050988, -0.08730115, -0.2772326469, 0.2167028487, 0.3893757761, -0.1664120555, 0.2395646125, -0.16181238, -0.3641056418, 0.4493977427, -0.1083183736, -0.1574521214, -0.0138091575, -0.0823283941, 0.0318232365, -0.2974265218, -0.5770468116, 0.3174734712, 0.1961872876, 0.1672439873, -0.1092537194, 0.1885131449, -0.1230864972, 0.0585776381, 0.0498388484, 0.7527417541, -0.0445063934, -0.200931415, 0.3679227531, 0.028568225 ]
https://github.com/huggingface/datasets/issues/2932
Conda build fails
Alright I added 1.12.0 and 1.12.1 and fixed the conda build #2952
## Describe the bug Current `datasets` version in conda is 1.9 instead of 1.12. The build of the conda package fails.
12
Conda build fails ## Describe the bug Current `datasets` version in conda is 1.9 instead of 1.12. The build of the conda package fails. Alright I added 1.12.0 and 1.12.1 and fixed the conda build #2952
[ -0.5863975883, 0.2035934627, -0.232974872, 0.1968558878, 0.2075668573, -0.0917660967, 0.0932786614, 0.5642169118, -0.3096557856, 0.0915806666, 0.0279443692, 0.2152974308, 0.0675806627, 0.4218905568, -0.1395219564, 0.0038826414, 0.0308199879, 0.2241077572, -0.4182020426, -0.0123287281, -0.1885185838, 0.2447249144, -0.1071585938, 0.0497225188, -0.245254755, -0.1354384422, 0.0322817974, 0.0517660826, -0.3269813061, -0.3223083019, 0.2895521522, -0.0699542463, 0.029348569, 0.4992179871, -0.0000913996, 0.0741490647, 0.3882876933, -0.0257503297, -0.2825210094, -0.0777058378, -0.3032828271, -0.1225462258, -0.0787501559, -0.0245858394, -0.1226112768, -0.2728967667, -0.1174333841, -0.1095196307, 0.1959647387, 0.2553437352, 0.4446544051, -0.0068132705, 0.2757855952, -0.4212940931, -0.1860865951, -0.0436917767, -0.2034923285, 0.0971226022, -0.0531155542, -0.0714639053, 0.0847257301, 0.2414616197, -0.0279956367, -0.0224732459, -0.0340468511, -0.164331913, 0.1127335355, -0.135215342, 0.2132426351, -0.0154786697, 0.6562217474, -0.3307790458, -0.2999447286, 0.1405354589, 0.0567250699, -0.1853858232, 0.2922054827, 0.0008688812, -0.0837874711, 0.2183299512, -0.2021050006, -0.1321849227, -0.1009486616, -0.0226571206, -0.0519170277, 0.1495386511, -0.1100725085, 0.0149995303, 0.0504197516, -0.2023219615, 0.362195164, -0.0173723605, -0.0971301347, -0.15897879, -0.2414802462, -0.1807620078, -0.0219156146, -0.1191595793, 0.1366502941, -0.0261811931, -0.1909336001, -0.0144785335, 0.0841854289, 0.1068868414, 0.0498245768, -0.0046015838, 0.2775596678, 0.2492183447, 0.2414739579, -0.0120759141, -0.0095909256, 0.0504127778, -0.0319391079, -0.4023247957, -0.196750626, 0.0584249012, 0.0760341808, -0.2049568146, -0.2722491622, 0.1437727064, 0.0510823801, 0.0147776939, 0.0015100588, 0.2345990539, -0.016674662, -0.1202628314, 0.0807097182, 0.1372875571, -0.0713210627, -0.0524630882, -0.3114102781, -0.1119067445, -0.121408619, -0.0771802515, 0.3006842136, -0.1038021892, 0.3707338572, -0.0830180496, 0.0617507473, -0.032412041, 0.0544019453, 0.027759565, -0.2395564318, 0.3888090551, -0.0499059856, -0.0003740962, 0.0252180807, -0.069863148, -0.027930323, 0.0828347281, -0.0366372727, -0.2251679599, -0.4237506986, 0.3854449987, 0.1938515007, 0.0662305206, 0.0716949105, -0.0636549145, 0.1177643538, -0.1366869509, -0.2729662657, 0.0184946395, 0.0636605322, -0.0871889219, 0.2279902995, 0.2070731521, -0.2756123841, 0.1650138944, 0.1333748549, -0.3019257784, -0.0072152917, -0.0268017929, -0.1443531364, -0.0073989532, -0.058277104, -0.1680708975, 0.3321492374, -0.295216471, -0.4482250512, 0.1187651679, 0.0744725466, -0.328696847, -0.0668687671, -0.0782488808, 0.196417436, -0.0056965332, 0.1062466353, 0.0992733911, -0.0286835041, -0.0740173683, -0.2667303383, -0.2071607858, -0.1118903831, 0.1681469083, 0.057727553, 0.1447627693, 0.1092381552, -0.2082567811, 0.0788387135, 0.0829256773, -0.0572477691, 0.180361703, 0.3837525547, -0.0759066194, 0.0168578904, -0.1095519215, -0.3079583943, 0.1055386439, 0.0256883148, 0.0204669945, -0.064672716, -0.0481392927, -0.3070678413, 0.114816241, -0.0371600352, -0.0541843511, 0.38391608, -0.0289845057, -0.0508067682, 0.0003028249, -0.0711915568, 0.3884094656, -0.150223583, 0.0347469635, 0.113964498, 0.1847821027, -0.3705210686, -0.2101033777, 0.2375807166, 0.0689672604, 0.2542420626, -0.1483214498, -0.1656304598, 0.3099377453, -0.0822563544, -0.1912937462, 0.3436691761, -0.1129948199, 0.0022904254, -0.0102867652, 0.0606409721, -0.0951388702, -0.1239355877, 0.0992038921, 0.0730591044, 0.0231340732, 0.1158568263, -0.1084979028, 0.0092544667, 0.189959541, 0.5791200399, 0.0050684898, 0.1632045656, -0.2162691951, 0.0145309176, 0.055825673, 0.1821321249, 0.037359044, -0.2978574932, 0.0825711638, 0.3980308175, 0.0076435688, 0.0726711303, 0.0926921591, -0.0076113031, 0.1124799475, 0.2614999413, 0.2583378851, 0.2037272304, 0.1349072009, 0.0081493929, 0.1047509387, -0.2374267727, -0.0164957829, 0.2083378881, -0.0552917421, 0.2838928998, 0.1663821787, -0.0411133058, -0.0695776567, -0.2452527285, -0.1380629987, 0.0534085073, 0.2105703056, 0.037322551, -0.1095859855, -0.2824200094, -0.0017022508, -0.1233533695, -0.1432923526, -0.0640132949, -0.1281411797, 0.1245221123, 0.0895596594, 0.00977821, 0.5170032978, 0.0143528832, 0.0652859882, 0.0990787596, 0.009667472, -0.0518003739, -0.0790770501, -0.127101317, 0.2408400774, 0.2044294775, 0.0509005859, 0.2018431723, -0.3337310851, 0.1491089165, -0.2748525441, -0.366984427, 0.1274038702, -0.094208695, 0.3852852583, 0.2254270911, 0.0919218436, 0.0747521743, -0.2698901594, 0.110820815, -0.0580758601, -0.0898231268, 0.0070468765, -0.0787847564, -0.3627088368, -0.2367329299, -0.3228822947, -0.1648404151, -0.3588816226, 0.1358786523, -0.060873311, 0.0982486829, 0.0736362413, 0.3923217952, 0.0536427498, -0.0562113784, 0.0783555135, -0.222058624, -0.2932739556, 0.1643790603, -0.3600728214, -0.3115933836, -0.0019090399, 0.1679629087, 0.5059683919, 0.0179702938, -0.5560306907, 0.0464412272, 0.0780357271, 0.1711068302, -0.0487899296, -0.0328627974, 0.2273453474, 0.2445125133, -0.2243379951, -0.3177289069, -0.2355287969, 0.1948930621, -0.153514728, 0.213289544, -0.2728606462, 0.3523001075, -0.1319694966, 0.166004017, 0.2222482264, -0.2386436909, 0.219208017, 0.1830454022, 0.5038248897, -0.1305069923, -0.1817170829, 0.2021608651, 0.1581531167, 0.119042255, 0.1395495832, -0.0279069915, -0.3791646361, -0.2756888568, -0.1051902995, -0.2455618232, -0.1936589777, -0.2074110061, 0.0622599088, 0.1791433245, 0.1262440085, 0.1772680581, -0.1568305194, 0.1184369698, 0.0211998075, 0.0384883247, -0.0041033318, -0.1069697961, -0.1779532284, 0.0358848907, -0.2792441845, 0.2821165323, -0.2120809704, 0.3916369379, -0.0623135567, 0.2048662305, -0.0723558962, 0.0009504542, 0.6512207389, -0.2112644315, -0.0737034976, 0.1125226542, 0.1181229427, -0.2302242666, 0.0650186986, 0.083207123, 0.3839910328, 0.3091752231, 0.3659373522, -0.3039242029, -0.1437313408, 0.2834871113, 0.1504956931, -0.0098037198, -0.2056625634, -0.0874546692, -0.2531458437, -0.1671919972, -0.1062273532, -0.0554941334, 0.1245535091, -0.1537984908, -0.4580590427, -0.2820667922, -0.1694457382, -0.01758972, 0.1693876237, 0.2554765642, -0.1612110734, 0.5345661044, 0.0045534945, 0.1155918241, 0.4735500813, 0.2798543572, -0.189198032, -0.2257909626, 0.0917203054, -0.2555652261, 0.0836775675, 0.0862136558, -0.2363713384, -0.341285795, -0.2195706218, 0.1084240749, 0.076264888, -0.026122503, 0.3726834059, 0.2485917658, -0.4293208718, -0.2518617511, 0.242318511, 0.0162319206, -0.0728726611, 0.5016472936, -0.1048982367, -0.0741726682, 0.0676231533, 0.0824791938, 0.66672194, 0.0610501505, -0.1266774684, 0.006856665, -0.1592148095, 0.1626461744, -0.1145113334, 0.0037972457, -0.2875882685, -0.4622149169, 0.0564569943, -0.0223851558, 0.2537106872, 0.2087925076, -0.3033083379, 0.0743170977, -0.0972160399, -0.2132728994, 0.0625187531, 0.0630918145, 0.0538320169, -0.0261505786, -0.0835556015, 0.361900717, 0.0005899728, -0.0727578327, -0.1062728912, -0.067716673, 0.0350575037, -0.1675877124, -0.2483343184, 0.0498329103, 0.0010737955, 0.2386963516, 0.1627294123, -0.2036982179, 0.0009662647, 0.1117749289, 0.3256909251, 0.338988781, -0.2267630547, 0.2255694866, 0.0059769298, -0.1343333125, -0.0487091094, 0.1586330235, 0.0849824697, -0.1907640249, -0.2566301227, 0.0247879233, -0.0578859113, -0.0663252398, 0.1320600957, -0.1353257447, -0.0472149029, -0.2453776896, 0.0064868447, 0.0142924003, 0.0114533948, -0.3371916115, 0.3463756442, -0.0527707152, -0.0052369772, 0.3470881283, 0.012192864, -0.1826528311, -0.1017469913, 0.2007384747, 0.1102424562, 0.0318651125, 0.1323222965, -0.0796627328, -0.3194353282, -0.3690176308, -0.1674910337, -0.2219544947, -0.2326253057, 0.0004745419, -0.0364109874, -0.2213421166, 0.1392650902, 0.2272441387, 0.103966862, 0.1268080324, 0.12728405, -0.1871058792, -0.2903102636, 0.1435471773, -0.2305998057, 0.224498108, -0.0108646248, 0.3226473331, 0.1365102828, -0.0325094052, -0.5056607127, -0.0034738155, -0.376393348, 0.0241533406, 0.0283821672, -0.0198156852, 0.0323873013, -0.1437138319, 0.2947608829, 0.2062872499, -0.2226619273, -0.3661328256, -0.0312338322, -0.0175669845, 0.0497309305, 0.0167891141, 0.1219146401, -0.1331655234, -0.4057909846, 0.0281089693, -0.018162312, 0.0284162387, 0.0422412306, -0.0115903253, 0.1159084886, 0.0983861461, 0.1967673749, 0.1101816744, 0.1371367872, 0.2352458239, -0.086849317, 0.008582918, -0.0457893237, -0.0563464426, -0.0349864177, -0.0246918034, -0.2511456311, 0.2289187759, 0.3598465621, -0.2082441896, 0.0332717411, 0.3909105957, 0.334284842, 0.207790032, -0.1314865947, -0.0822631642, 0.3971404433, 0.4947049916, -0.4555192888, -0.1380333006, 0.0083031477, 0.0364327542, 0.0368086807, 0.0361693576, 0.0356303714, -0.2292745262, 0.308706969, 0.2625923753, 0.2341880202, -0.2097451538, 0.2820364535, 0.3012544215, 0.0510902666, -0.0560819656, 0.3553821146, 0.1626077741, 0.0981256738, 0.6015193462, -0.2439955473, 0.1260926723, 0.0874224454, 0.0610313267, 0.0384354778, -0.1500719041, 0.2947190106, -0.0056637153, -0.0532938018, -0.1579737663, -0.2138314545, 0.0789796114, -0.327932924, -0.0442125946, -0.3130210936, 0.047839202, -0.1836959124, 0.0594023429, -0.0732315704, -0.0382933915, 0.2386280447, -0.0940453112, -0.0338380709, 0.0506904498, 0.4240409732, -0.0262736827, -0.0643444732, -0.3497653008, 0.0606286004, 0.028568374, -0.1260315925, 0.0108015751, 0.4940970242, 0.143856734, -0.0359248295, -0.0589989088, 0.3479895294, 0.348203361, 0.277752161, 0.0534951985, -0.1082824618, -0.0092249922, -0.0953803509, -0.2411097437, 0.3029560149, 0.2273861617, 0.0720100328, 0.2493595928, 0.3347663879, -0.2555821836, -0.0169894919, 0.1393467486, 0.2789635658, -0.0335982628, 0.0914347172, 0.0385823473, -0.1384752989, -0.0504327938, -0.0994241536, -0.2475196272, 0.0530853234, 0.3749343157, -0.1021480113, -0.0129441777, -0.20851098, 0.2110289633, -0.1338755935, 0.4848892093, -0.0640231967, 0.2046496123, -0.0398341753, -0.3171172142, -0.3321355581, 0.2472712398, -0.025997106, 0.1577498317, -0.0925640464, -0.0027004264, 0.0405297764, 0.0034110083, 0.2962839603, -0.0514624342, -0.0067159436, -0.1673950255, -0.4477352202, -0.031719882, -0.0999102145, -0.0099834604, 0.1832084507, -0.2746391296, 0.1216634437, -0.1069333702, 0.2742959857, -0.1479437649, -0.01545012, 0.1173128188, -0.004334955, 0.3953119218, 0.0229871981, 0.3068906069, -0.2120409459, -0.2795613408, -0.139135778, -0.4778122306, -0.1043489054, 0.1476300657, 0.2280675769, 0.1021462083, -0.2248517722, 0.0063110883, -0.1715018302, 0.265201062, 0.1091065183, 0.2118775547, -0.1095602289, 0.157030344, 0.054823719, -0.0997829214, 0.0586517639, 0.253433466, -0.067046538, 0.2125879377, -0.2155797929, -0.3528474867, 0.4893417656, 0.0142854201, -0.245224759, 0.0129644563, -0.0260217786, -0.0059275106, -0.1479931176, -0.4293839633, 0.229219079, 0.2826619446, 0.1066514403, -0.1077293307, 0.1915610731, -0.1371898651, 0.1114795953, 0.0018529911, 0.573530376, 0.0091546699, -0.2639088035, 0.1011295021, -0.0598786213 ]
https://github.com/huggingface/datasets/issues/2930
Mutable columns argument breaks set_format
Pushed a fix to my branch #2731
## Describe the bug If you pass a mutable list to the `columns` argument of `set_format` and then change the list afterwards, the returned columns also change. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("glue", "cola") column_list = ["idx", "label"] dataset.set_format("python", columns=column_list) column_list[1] = "foo" # Change the list after we call `set_format` dataset['train'][:4].keys() ``` ## Expected results ```python dict_keys(['idx', 'label']) ``` ## Actual results ```python dict_keys(['idx']) ```
7
Mutable columns argument breaks set_format ## Describe the bug If you pass a mutable list to the `columns` argument of `set_format` and then change the list afterwards, the returned columns also change. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("glue", "cola") column_list = ["idx", "label"] dataset.set_format("python", columns=column_list) column_list[1] = "foo" # Change the list after we call `set_format` dataset['train'][:4].keys() ``` ## Expected results ```python dict_keys(['idx', 'label']) ``` ## Actual results ```python dict_keys(['idx']) ``` Pushed a fix to my branch #2731
[ -0.0634390414, -0.1930613369, -0.0847119913, 0.0437259898, 0.5914995074, 0.0606024899, 0.7192493677, 0.2848295569, 0.1028594598, 0.1568417102, -0.116555728, 0.7383283377, 0.0102749048, 0.2990810573, -0.2102174014, -0.2156233937, 0.1305874735, 0.1316983253, -0.131610781, 0.0363861509, -0.2623939514, 0.0679177791, -0.375447154, -0.1826451868, -0.1687054485, -0.144836247, -0.2592204511, -0.0473862961, -0.0947361514, -0.271669805, 0.1168658212, 0.1954511404, -0.2182203233, 0.4592967629, -0.0001044443, 0.0152202081, 0.0200444236, -0.1021577045, -0.2109158784, -0.0972076952, -0.2637723386, -0.0789669305, 0.1564198732, -0.3649504483, -0.2155194879, -0.0359100625, -0.4558363259, -0.2674218416, 0.2459866256, 0.3095501363, 0.337433964, 0.0961965173, -0.0191967264, -0.0778871626, 0.350938499, 0.024526272, -0.2062668651, 0.1694167107, 0.0360042304, -0.0574511774, 0.2977561057, 0.3134259582, -0.353706181, 0.0584034547, 0.0068529551, 0.0332615748, -0.1524679512, -0.0831187963, 0.2396808267, 0.182026431, 0.2787374258, -0.4583109617, -0.2539326847, -0.2258167565, 0.0679665506, -0.4645034373, 0.0320331641, 0.0488984473, 0.1365063339, 0.1395174265, 0.1109698266, 0.0990392044, -0.0189186633, 0.1066981032, -0.1106197387, 0.4013152719, -0.164026618, 0.0244787335, -0.0885713398, -0.0331682153, -0.0251186453, 0.00836109, -0.2377885878, -0.0240884684, -0.2194893956, -0.1676763147, 0.0029882274, -0.0322995409, 0.0095377434, -0.1139194816, -0.046752058, -0.030285297, 0.1399154961, 0.0920782611, 0.3197984397, 0.278681159, -0.0635075048, 0.4963833392, 0.0732233971, -0.0988840014, -0.0371107832, -0.1538478732, 0.308842361, -0.1950437427, 0.3155840933, 0.1642861962, 0.238843292, 0.0682739392, -0.2911200523, 0.0995498076, -0.1539213657, -0.0634099916, -0.0316827819, 0.3574388027, -0.0768988431, 0.4067205787, -0.0575630032, 0.3268230855, -0.0287995134, 0.2033368051, -0.2828402519, 0.130673483, -0.16348508, -0.2244134843, 0.084832713, 0.0561836064, 0.0570182092, 0.3165373206, 0.0141386166, -0.2182422727, -0.1813179404, -0.2205047458, 0.3185226619, 0.1042528227, -0.0451851599, 0.2784454525, 0.2753438056, -0.391156137, -0.1288427263, 0.0011100398, -0.2692237198, -0.0980003327, -0.2712520361, 0.301181078, -0.0521826521, 0.006486427, -0.0049253348, 0.0343260728, 0.3726559877, 0.1105766967, 0.2605312169, -0.263920784, -0.1242048368, -0.3503037989, 0.0914837793, 0.2431913614, -0.3241707087, 0.1112797782, 0.3844877183, 0.2423685193, 0.1121881604, 0.2034005076, -0.0473191589, 0.0279094465, -0.0148240486, -0.1700301617, 0.2520844638, -0.3341756165, -0.2848739028, 0.0553748496, 0.0027873039, 0.0685167909, 0.2248959839, -0.1666803211, 0.218622759, 0.0578945205, 0.4702925682, 0.1355687827, 0.1329183131, 0.2321659923, -0.2272477895, -0.0266459659, 0.1384196877, -0.0202689543, -0.2603830695, 0.1265508235, -0.0973207727, 0.0009012923, 0.2695514858, -0.1020145565, -0.1591219455, 0.1050361097, 0.3889386952, 0.1192682534, 0.0584359989, -0.1191093028, -0.3901537359, -0.1211959422, 0.5693612695, 0.0484296009, -0.1748030633, -0.420571506, -0.4216828644, 0.1798273921, -0.2152584344, -0.0824195817, 0.3075227141, -0.003220771, 0.0642843321, 0.0407320149, -0.2096620351, 0.1370342225, 0.0039426237, -0.0304533746, -0.0208814349, 0.0401547514, 0.0119094858, -0.1834635288, -0.0599086955, 0.4251461327, 0.3132659197, -0.0375363454, -0.167879343, 0.4503110647, 0.3329874873, -0.1549506932, -0.3464752436, 0.2249492705, 0.0076201176, 0.1943212301, -0.0460130088, 0.0911375135, 0.0759302452, 0.0359970815, -0.3030140102, 0.4775167704, -0.3167341053, 0.0824443698, -0.234490633, 0.1565556824, 0.0981085524, 0.0481777042, -0.2115463167, -0.5392458439, -0.062703222, 0.0825194418, -0.0306131057, -0.0419437215, -0.470782876, 0.1967414916, 0.467872113, 0.083343856, 0.2176243067, -0.2235009074, -0.0992184877, -0.0115429945, 0.0731081441, 0.2889002562, 0.3600578606, 0.2259647995, -0.1365745217, 0.0370337591, -0.0854712948, -0.2084178478, 0.2183267325, 0.0393683836, -0.0967671201, 0.1753202826, 0.3845235407, -0.0736434236, -0.1551766545, -0.0109753758, -0.0839595348, 0.1736816615, -0.383297354, 0.1738462895, -0.357047528, -0.0811517164, -0.1417519152, -0.2927251756, 0.1747904569, -0.4272394776, -0.1525552273, 0.1162470058, -0.0045933891, 0.1375183463, -0.0211186819, -0.0319030136, 0.2776056528, -0.1820731759, 0.0417787805, -0.4216853678, -0.0939931944, 0.1455974728, 0.0303103533, -0.2044923753, 0.143839553, -0.0300900023, -0.2565354407, 0.0638367087, -0.1259914637, 0.1559157372, -0.2809145153, 0.1430458874, 0.4829552472, 0.3382579684, -0.0894901603, 0.0548964813, 0.3780276179, 0.2132316977, 0.2059809715, 0.138030231, 0.0068890937, 0.0550270453, -0.2424753159, -0.3511870801, -0.0555490851, -0.1354611665, 0.1351916194, -0.1916234791, 0.0870930701, 0.2025233358, 0.2921889722, -0.1789580435, 0.0213473085, 0.2048195601, -0.3525743186, -0.0658937842, 0.1719931066, -0.1936250478, -0.2129869014, -0.0455462337, -0.0391085483, 0.0343543291, 0.003133951, -0.1914339364, -0.5200380683, -0.1579808742, 0.0683984458, -0.1270274371, 0.2740614712, 0.054213278, 0.1716973037, -0.0757222623, -0.124540098, -0.1934963614, -0.0346360952, 0.2626588643, -0.1748870909, -0.0929444581, 0.2631197572, 0.0199016724, 0.1118289381, 0.0432161056, -0.0100050457, 0.2867324948, -0.2556657493, 0.3692888916, -0.3020857573, -0.3446291685, 0.0101491911, -0.0587351248, -0.0385484286, 0.0579442456, 0.0086890599, -0.0651061609, -0.03837841, 0.2229370773, -0.0282931291, -0.2501943707, 0.1912529469, -0.1141608059, 0.0595322475, 0.0302135851, 0.3910180032, -0.2894249856, -0.0952822343, 0.0404491015, 0.0114112077, -0.2488003522, -0.2327436656, -0.3056177199, -0.4484499991, -0.2699826956, 0.1899857521, 0.1403895319, 0.4892662764, 0.1334533989, -0.2362642586, 0.0847799107, 0.0963971168, 0.6822872162, -0.4301690459, -0.3574624956, 0.4292676151, 0.0859615058, -0.3903828263, -0.2652634382, -0.3802113831, 0.0143659599, 0.0227175374, 0.3876759708, -0.2589642107, -0.244254753, 0.2214453816, 0.1897400767, -0.0913613886, -0.1592662036, -0.2549227178, -0.0928166062, -0.2348954529, 0.093459256, 0.0586991273, 0.2659591138, -0.1441631168, 0.080433853, -0.120664537, -0.1190443635, -0.073037453, 0.2516750395, 0.3982740939, 0.0575780161, -0.0467027016, -0.1222939566, 0.2817413211, -0.073820971, 0.1757423133, -0.3656084239, 0.0336791202, -0.043546617, -0.3389855623, 0.1086297184, 0.1856503338, -0.0393812321, 0.2526772916, -0.4333719611, 0.0946321487, -0.1003584713, -0.0472176298, 0.4953793287, 0.0461364612, -0.2542179227, -0.685565114, 0.1015549749, 0.0903888866, -0.0064569241, 0.3456730247, 0.0725662932, -0.1828046888, 0.7794381976, 0.0889574587, 0.7490982413, -0.0867960528, 0.2408003211, 0.2939781249, -0.2088262588, 0.3112678528, 0.0492751785, 0.1543674469, -0.2872996628, -0.1380244195, -0.0044919541, -0.058305636, 0.0247331839, -0.0898002461, -0.4097694159, 0.2892744839, -0.5145075917, 0.2875412405, -0.1983894557, -0.0730571076, -0.0874249563, -0.2267119884, -0.4677990079, 0.2220413983, 0.0646434128, -0.2087830454, 0.0112568969, 0.1907317191, -0.065343827, -0.1698995829, -0.1873892993, -0.1199399978, -0.1559698284, -0.060999155, 0.0678645521, -0.4865007401, 0.0141786886, 0.2893814445, 0.3962036669, 0.3095730245, 0.0078290785, 0.0623751841, 0.3810586631, 0.2517932355, 0.0658424273, -0.0208446104, 0.3145283163, 0.2877014875, -0.0982795581, 0.133476764, 0.1272155195, -0.0942069888, -0.208242327, 0.0529583395, 0.1855789423, -0.5744428039, -0.1757421643, -0.1527145803, 0.2630667686, -0.3218447566, 0.2347415537, -0.0754718408, 0.0486424267, 0.5379700661, -0.1782665998, -0.2557305992, -0.1464184821, 0.1999298036, 0.1669089943, 0.0693257004, 0.4183680713, 0.209888503, -0.2242714167, -0.3183072805, -0.0735745728, -0.0647625104, -0.0756294131, 0.3513303101, -0.0830074921, 0.0055152066, -0.0013726874, 0.3915545642, -0.2344167382, 0.3513912261, -0.0538246259, -0.205533132, -0.1155246943, 0.0326848663, 0.2926522493, 0.1945950687, 0.2316054702, 0.2053347826, -0.3007096052, -0.0630117357, -0.4568855166, -0.1410906166, -0.0862020776, 0.0651070401, 0.2362469286, 0.0590859801, 0.0111563224, -0.0795943588, 0.3580130339, 0.1183542982, 0.1108416393, -0.4295145273, -0.325049907, 0.0110547999, -0.0234215762, 0.0853728354, -0.1708765328, -0.1580568254, -0.1967953146, -0.3962603509, 0.2666503191, 0.2017664611, -0.0845334008, 0.1594115496, -0.1476027668, 0.2420492321, 0.069533959, -0.0918390304, -0.1183197945, -0.2192181051, 0.1840180457, 0.1944650263, -0.0407677777, -0.0157293361, -0.1871426105, 0.105258435, -0.0939975604, 0.1689095646, 0.1012573317, -0.1896534264, -0.0661151484, 0.0987796709, 0.4865126908, 0.1566231549, -0.2018299252, -0.0108075626, 0.2645915449, 0.3579041362, -0.1296218932, -0.1321053356, 0.2255125493, 0.2314445674, 0.3111750484, 0.450210005, 0.1397311538, 0.0756184161, -0.2331319749, -0.0009882856, 0.0487412177, -0.1216368228, 0.1389746517, 0.5687338114, 0.1403339207, 0.0290854629, 0.1549241543, 0.0297774058, 0.1120429337, 0.3498232961, 0.3880805969, 0.2931537628, 0.4028396904, -0.1947244108, 0.0580541939, -0.1981632113, 0.3190847337, -0.1623570174, 0.0311275516, 0.1651246846, 0.0851635262, 0.2890863717, -0.2256009579, -0.1322600543, -0.0517679639, 0.0788591281, -0.2149592489, -0.1735067964, -0.0896615535, -0.0712928176, -0.0761795044, -0.0599798895, -0.2564581037, 0.1198756173, 0.3142152429, -0.0564944707, 0.1837552637, -0.3391599059, -0.0654969811, 0.000147028, 0.4076169133, -0.1922232509, 0.0069478415, -0.0030230694, 0.0994503275, 0.0413250551, 0.0327654257, 0.5266547799, 0.1835280061, -0.1379824132, -0.2399745435, -0.0410318933, -0.1680832505, 0.1132266372, 0.0703418106, -0.0068472442, 0.1387183964, 0.1747312844, 0.3146359026, -0.2387895435, 0.0065306732, 0.2093479186, 0.1968953162, -0.176381886, -0.0169236436, 0.0693721697, -0.2573129833, -0.1397525519, -0.0770672634, -0.1836999059, -0.0613855198, 0.1926912814, 0.338663131, 0.3150190115, -0.144917652, 0.1909878105, 0.3556967378, 0.2456722111, -0.0497522913, 0.0769164115, -0.1025438681, -0.0973583683, -0.2256001085, 0.0825739801, -0.1283246875, -0.2780284286, 0.0039949431, 0.056390807, 0.1623618454, 0.0148027819, 0.0437278971, -0.0130933793, 0.0254860874, 0.4582059085, -0.2675381601, -0.1802484095, -0.0817581043, -0.1243195757, 0.0804289132, -0.2435839325, 0.0038390581, 0.1951596886, 0.2180403769, -0.3459209502, -0.0041370536, -0.1667109132, 0.0345008858, 0.0528789237, 0.0232742596, 0.109929055, -0.0425669812, -0.0815995336, -0.2123945504, -0.0985484049, -0.1917688251, 0.0674044117, -0.1040592343, 0.2106078565, -0.007643329, -0.1253238022, -0.132859543, 0.2341602147, 0.1957191378, 0.0204240587, -0.1200679019, 0.257250309, 0.0979948491, -0.1329333782, -0.0794446543, 0.3134340048, -0.0020583791, 0.3305855095, -0.0650895014, -0.4050293565, 0.382350266, -0.3645904958, -0.5083729029, -0.0518184118, 0.0601342954, -0.1210649461, -0.0529172905, -0.3612802029, 0.0644469261, 0.1545197666, -0.1112097576, -0.3463765383, 0.1828248799, 0.0455008373, 0.1964670569, -0.1405544728, 0.1704312861, -0.0222192314, -0.0930835903, -0.1773957312, -0.1250364035 ]
https://github.com/huggingface/datasets/issues/2927
Datasets 1.12 dataset.filter TypeError: get_indices_from_mask_function() got an unexpected keyword argument
Thanks for reporting, I'm looking into it :)
## Describe the bug Upgrading to 1.12 caused `dataset.filter` call to fail with > get_indices_from_mask_function() got an unexpected keyword argument valid_rel_labels ## Steps to reproduce the bug ```pythondef filter_good_rows( ex: Dict, valid_rel_labels: Set[str], valid_ner_labels: Set[str], tokenizer: PreTrainedTokenizerFast, ) -> bool: """Get the good rows""" encoding = get_encoding_for_text(text=ex["text"], tokenizer=tokenizer) ex["encoding"] = encoding for relation in ex["relations"]: if not is_valid_relation(relation, valid_rel_labels): return False for span in ex["spans"]: if not is_valid_span(span, valid_ner_labels, encoding): return False return True def get_dataset(): loader_path = str(Path(__file__).parent / "prodigy_dataset_builder.py") ds = load_dataset( loader_path, name="prodigy-dataset", data_files=sorted(file_paths), cache_dir=cache_dir, )["train"] valid_ner_labels = set(vocab.ner_category) valid_relations = set(vocab.relation_types.keys()) ds = ds.filter( filter_good_rows, fn_kwargs=dict( valid_rel_labels=valid_relations, valid_ner_labels=valid_ner_labels, tokenizer=vocab.tokenizer, ), keep_in_memory=True, num_proc=num_proc, ) ``` `ds` is a `DatasetDict` produced by a jsonl dataset. This runs fine on 1.11 but fails on 1.12 **Stack Trace** ## Expected results I expect 1.12 datasets filter to filter the dataset without raising as it does on 1.11 ## Actual results ``` tf_ner_rel_lib/dataset.py:695: in load_prodigy_arrow_datasets_from_jsonl ds = ds.filter( ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:185: in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/fingerprint.py:398: in wrapper out = func(self, *args, **kwargs) ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:2169: in filter indices = self.map( ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:1686: in map return self._map_single( ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:185: in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/fingerprint.py:398: in wrapper out = func(self, *args, **kwargs) ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:2048: in _map_single batch = apply_function_on_filtered_inputs( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ inputs = {'_input_hash': [2108817714, 1477695082, -1021597032, 2130671338, -1260483858, -1203431639, ...], '_task_hash': [18070...ons', 'relations', 'relations', ...], 'answer': ['accept', 'accept', 'accept', 'accept', 'accept', 'accept', ...], ...} indices = [0, 1, 2, 3, 4, 5, ...], check_same_num_examples = False, offset = 0 def apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples=False, offset=0): """Utility to apply the function on a selection of columns.""" nonlocal update_data fn_args = [inputs] if input_columns is None else [inputs[col] for col in input_columns] if offset == 0: effective_indices = indices else: effective_indices = [i + offset for i in indices] if isinstance(indices, list) else indices + offset processed_inputs = ( > function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) ) E TypeError: get_indices_from_mask_function() got an unexpected keyword argument 'valid_rel_labels' ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:1939: TypeError ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.12.1 - Platform: Mac - Python version: 3.8.9 - PyArrow version: pyarrow==5.0.0
8
Datasets 1.12 dataset.filter TypeError: get_indices_from_mask_function() got an unexpected keyword argument ## Describe the bug Upgrading to 1.12 caused `dataset.filter` call to fail with > get_indices_from_mask_function() got an unexpected keyword argument valid_rel_labels ## Steps to reproduce the bug ```pythondef filter_good_rows( ex: Dict, valid_rel_labels: Set[str], valid_ner_labels: Set[str], tokenizer: PreTrainedTokenizerFast, ) -> bool: """Get the good rows""" encoding = get_encoding_for_text(text=ex["text"], tokenizer=tokenizer) ex["encoding"] = encoding for relation in ex["relations"]: if not is_valid_relation(relation, valid_rel_labels): return False for span in ex["spans"]: if not is_valid_span(span, valid_ner_labels, encoding): return False return True def get_dataset(): loader_path = str(Path(__file__).parent / "prodigy_dataset_builder.py") ds = load_dataset( loader_path, name="prodigy-dataset", data_files=sorted(file_paths), cache_dir=cache_dir, )["train"] valid_ner_labels = set(vocab.ner_category) valid_relations = set(vocab.relation_types.keys()) ds = ds.filter( filter_good_rows, fn_kwargs=dict( valid_rel_labels=valid_relations, valid_ner_labels=valid_ner_labels, tokenizer=vocab.tokenizer, ), keep_in_memory=True, num_proc=num_proc, ) ``` `ds` is a `DatasetDict` produced by a jsonl dataset. This runs fine on 1.11 but fails on 1.12 **Stack Trace** ## Expected results I expect 1.12 datasets filter to filter the dataset without raising as it does on 1.11 ## Actual results ``` tf_ner_rel_lib/dataset.py:695: in load_prodigy_arrow_datasets_from_jsonl ds = ds.filter( ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:185: in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/fingerprint.py:398: in wrapper out = func(self, *args, **kwargs) ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:2169: in filter indices = self.map( ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:1686: in map return self._map_single( ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:185: in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/fingerprint.py:398: in wrapper out = func(self, *args, **kwargs) ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:2048: in _map_single batch = apply_function_on_filtered_inputs( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ inputs = {'_input_hash': [2108817714, 1477695082, -1021597032, 2130671338, -1260483858, -1203431639, ...], '_task_hash': [18070...ons', 'relations', 'relations', ...], 'answer': ['accept', 'accept', 'accept', 'accept', 'accept', 'accept', ...], ...} indices = [0, 1, 2, 3, 4, 5, ...], check_same_num_examples = False, offset = 0 def apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples=False, offset=0): """Utility to apply the function on a selection of columns.""" nonlocal update_data fn_args = [inputs] if input_columns is None else [inputs[col] for col in input_columns] if offset == 0: effective_indices = indices else: effective_indices = [i + offset for i in indices] if isinstance(indices, list) else indices + offset processed_inputs = ( > function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) ) E TypeError: get_indices_from_mask_function() got an unexpected keyword argument 'valid_rel_labels' ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:1939: TypeError ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.12.1 - Platform: Mac - Python version: 3.8.9 - PyArrow version: pyarrow==5.0.0 Thanks for reporting, I'm looking into it :)
[ -0.2829699218, 0.2777142525, -0.0049711736, 0.1934766024, 0.0521399193, -0.0259464737, 0.2624210715, 0.4762106538, -0.1806556284, 0.0836368799, -0.1311300099, 0.3645940423, -0.1310276091, 0.1083575189, -0.1563561261, -0.2259478569, 0.0624334253, 0.0486550108, -0.0484171957, 0.0325096361, -0.3871050477, 0.4132161736, -0.4211299717, 0.1235269159, 0.008685492, -0.1654407978, 0.1102141142, -0.0451107584, 0.0099631641, -0.4235654175, 0.4564154148, 0.0699703991, 0.0381553695, 0.2566260993, -0.0001171321, 0.2396819293, 0.366684258, -0.0842551515, -0.2250449806, -0.405336529, -0.1809279323, -0.0339020006, 0.1180416197, -0.1935501844, -0.0818986967, 0.0174917243, -0.249624908, -0.2356579155, 0.2611079514, 0.4325256944, 0.1972838491, 0.0717553645, -0.0651654452, 0.0339874998, 0.0209346432, 0.2666781545, 0.0185224004, -0.0007021982, 0.0587287322, -0.1879914552, 0.2919843793, 0.5048494339, -0.2368306518, -0.2743239999, 0.2988181114, -0.2294282466, 0.223627314, -0.3586401939, 0.2479036301, -0.0648386478, 0.0247386377, -0.0833451524, -0.3223271072, -0.1697276235, -0.2576664686, -0.1120616794, 0.3498052657, -0.1584596336, -0.244265154, -0.0208345316, -0.07258939, -0.0044453437, -0.0193625409, 0.0009967602, -0.0110017173, 0.5335709453, 0.051298894, 0.0513096936, 0.0644063577, -0.1729889512, 0.3066953421, -0.1076792255, -0.1007701308, 0.0617668256, -0.170351848, 0.0725231543, 0.2387878448, -0.100716427, 0.0953230187, -0.0929184034, -0.0909817293, -0.1606885344, 0.0432230234, -0.0053427084, -0.0694495961, 0.0904969722, 0.3082866073, 0.6318762302, 0.0672923923, 0.058587458, -0.0616019517, 0.0373482928, -0.0557346605, 0.0807316527, 0.0906984136, 0.2471883744, 0.3795975745, -0.3135053217, -0.6206545234, 0.1616326869, -0.5770969987, -0.1607390344, 0.237689808, 0.0602699555, 0.2683047056, 0.0857219398, -0.0559860393, 0.0184919778, -0.0884351358, 0.0967272371, -0.1329723448, 0.0300575532, -0.0661212951, -0.288934499, 0.1902687103, -0.5589625239, 0.0788640752, -0.1231013834, -0.090868406, -0.0088757947, -0.0592832975, 0.0524173155, 0.1024440303, 0.3941213489, -0.4122775495, 0.1066873968, 0.2004962116, -0.5756821632, -0.1944885254, 0.2767592072, -0.4454355538, -0.0839394405, 0.0214587208, 0.2041888237, 0.1366723627, -0.1789838076, -0.3426181376, 0.5803837776, 0.0123843485, -0.2307372093, -0.0704242811, -0.2239028215, -0.3683023453, -0.0239756647, 0.1340631545, 0.1689580381, -0.8365051746, -0.2499466091, 0.2335013896, -0.0030520104, -0.0626956224, -0.2084405422, -0.1818583906, -0.0219790861, -0.1172454953, -0.0013353637, 0.3576940596, -0.485848546, -0.6574547887, 0.1390666068, 0.1225496158, 0.1945742369, 0.1314316094, -0.1025109664, 0.3647884429, -0.0999429971, 0.1756555587, 0.2742819488, 0.0124631217, -0.0347300246, -0.2012303621, 0.0749125555, 0.2941287458, -0.0680078194, 0.1666537374, 0.27637887, -0.1620120853, -0.0194072127, 0.2861098051, 0.1138249561, -0.0791773424, 0.0638790876, 0.2018899024, -0.1175088063, 0.232898742, -0.4075967968, -0.1830836833, -0.0563953593, 0.0861253291, 0.130115062, -0.3378736973, -0.214805305, -0.3373113871, 0.0745304599, -0.2046329081, -0.1652506888, 0.1793425977, 0.1503546089, -0.0387527496, -0.0507269315, -0.0374752656, 0.4382365942, 0.2428901494, 0.1432452947, -0.2216559798, 0.2244707495, -0.0795594603, -0.080613561, 0.0983143821, -0.0522183664, 0.36705634, -0.0016741207, -0.3518117964, 0.2039128393, 0.0591471232, -0.3466408551, -0.0529597551, 0.0107605178, 0.0352687202, 0.0651153848, 0.1794721931, 0.3757503927, -0.0078226523, 0.1407691687, -0.1973981559, 0.4055749774, -0.0408483408, 0.4687744379, 0.0199777223, 0.0771241337, 0.3994879127, 0.2407884896, -0.1524210721, -0.1703110337, 0.0525777675, 0.3843008578, 0.2716696858, -0.1308127642, -0.0575984567, 0.2184957862, 0.3087431192, -0.0334121324, 0.0245152265, 0.3014428616, 0.015626844, 0.0211441629, 0.1812755615, 0.4510476291, 0.150378406, 0.1575035751, -0.1162214428, 0.0736183971, -0.2908762395, -0.0003076858, 0.2586247027, 0.1770678163, -0.2355194986, -0.0977184847, 0.2307223231, 0.0618963651, -0.3269087672, -0.4945808649, -0.1177324802, 0.1571106911, -0.2101406008, 0.4223466814, -0.2563110888, -0.360643059, 0.2112966329, -0.1757659763, -0.1615487486, -0.4771515429, 0.0838324726, 0.1105318815, 0.0211028233, 0.4142694175, -0.1944871247, 0.2770675421, 0.1981321126, -0.2057120055, -0.2324998677, -0.3686217666, -0.3903269172, 0.0790402368, 0.1200828031, 0.0579170287, 0.1671684682, -0.0545275025, 0.1354142576, 0.083329387, -0.7349098921, 0.1015762314, -0.3447894454, 0.4745761752, 0.1016463861, 0.038837377, -0.3328078389, -0.2596282661, 0.1520894766, 0.304394573, -0.2402678132, 0.1635410488, 0.0431459434, 0.2904618084, -0.2289169878, -0.4294990301, -0.2123535424, -0.1180267707, -0.1469037235, -0.1846597344, 0.3282931149, 0.5408180952, 0.0719795302, -0.0907747671, 0.1236420944, 0.184421882, -0.3507416248, -0.4034056962, 0.144136861, -0.0788861513, -0.1249593124, -0.1968769431, -0.2286561579, 0.0848402604, 0.2183059156, -0.5605329275, -0.4192049503, 0.0349870473, 0.0410459861, 0.1570181549, -0.1139656156, 0.1058698297, 0.2774389684, 0.030448081, -0.2724855542, -0.3693442345, 0.0357308015, -0.2114411592, 0.0473164991, 0.0135325789, 0.9601014853, 0.0164168794, 0.0682780072, 0.1694822013, 0.2156193256, 0.3308912516, 0.0938933268, 0.4396736324, -0.2999125719, -0.2751029134, -0.1022948325, 0.0323724411, -0.0618773438, -0.2904603481, 0.0270541478, -0.0472293831, -0.1075963899, -0.1457635909, -0.2428792566, -0.307492286, -0.1465963423, -0.1706662029, 0.0713224858, 0.0963586718, 0.3636464477, -0.308096081, -0.0618637502, 0.0288702194, 0.2998217344, -0.0606535003, 0.0504504703, -0.4331361651, -0.0584681481, -0.3299600482, 0.3512754738, 0.0836806521, 0.5775329471, 0.0337941647, 0.1314383298, -0.1877772957, -0.0064897859, 0.6513140798, -0.37467134, 0.0990580469, 0.3981027007, -0.0517896451, -0.105050236, -0.0820436478, -0.3614759147, 0.1523979008, -0.130425632, 0.3490183353, -0.2240297794, -0.0515188314, 0.3174758554, 0.0232320037, -0.1624078602, 0.1051052287, -0.3738526404, -0.5830719471, -0.0338545628, 0.2991501689, 0.0823923871, 0.4687190056, 0.0837701112, 0.0468495339, -0.0865380093, -0.4693993032, 0.1605705619, 0.2456996441, 0.1313659102, 0.1721284539, 0.1322498471, 0.1905105859, 0.1852574944, 0.2601747811, 0.3494502306, -0.1209676489, -0.429931134, -0.1555662006, -0.003165609, 0.2964791059, 0.0886024907, -0.2174897939, -0.0622401759, -0.1156746596, -0.1378526092, -0.0112768495, 0.1836106479, 0.2737488151, 0.2099698633, -0.4123848975, -0.5313845873, 0.1796308607, 0.2255197465, -0.1604507267, 0.3734816909, 0.2652886808, -0.4143254757, 0.4304826856, -0.1537723541, 0.7024047375, 0.2602522671, -0.1502133161, 0.3903979361, -0.1639682204, 0.3863707483, 0.1703226268, 0.1472315341, -0.0537542589, -0.3721880913, -0.0091732787, 0.0341162309, -0.1155766919, 0.0897843763, -0.2464871407, 0.3867236376, -0.2271939069, -0.1297411919, 0.1523538828, 0.0656017885, 0.072543852, 0.1573487818, -0.436416477, 0.1157073081, -0.1356859058, -0.1174689382, -0.0174163952, -0.157321766, 0.2357757241, -0.4989627004, -0.2169850469, 0.0593276396, -0.2186802477, 0.1991744936, 0.1808251143, -0.5248704553, -0.0648283362, -0.2381993383, 0.1592858881, 0.1625673175, 0.0071186177, 0.1369998753, -0.1568153501, 0.4103268683, 0.1870173216, -0.0307340231, 0.4770958126, 0.1361288428, -0.0680285394, 0.1569158882, 0.016583018, -0.282654196, -0.3184965551, -0.1825746, -0.0308478139, -0.188172102, 0.1618311256, -0.1791258454, -0.2661722004, -0.3849771619, 0.1085400954, -0.1376332939, 0.0371233523, 0.1283319592, 0.1249253303, -0.1639446914, 0.0098909764, 0.2198198438, 0.0911266208, -0.3888247311, 0.3381742537, -0.1077874154, -0.1485274583, -0.1235791966, 0.1685680747, 0.2814444602, 0.0629519448, 0.3650933504, -0.0872263014, -0.2079828233, 0.1700563133, 0.2281175256, -0.1518964171, 0.2485146672, -0.1161972806, -0.3701640368, -0.2486976683, 0.4615723789, -0.1306284964, 0.0186716523, -0.0521034189, 0.0991068631, 0.003739581, -0.0162424091, -0.2511475086, 0.0053935279, 0.0735629424, 0.1900277734, -0.4759955704, 0.1512910128, 0.2287879288, 0.110932909, 0.0573695824, 0.2607388794, 0.0007869502, -0.0999411941, -0.2160836458, 0.1331126839, 0.1301591247, -0.1403605193, -0.1228807792, 0.0188462827, -0.0731661841, -0.0717758238, 0.216513291, 0.0835128203, -0.0267807152, 0.2172831297, 0.1311217993, 0.1191414148, 0.3056656718, 0.0038306452, -0.0522037186, 0.124015674, 0.1425275654, 0.1671767533, -0.0698422417, -0.0610502064, -0.5958340168, 0.0865877271, -0.1721179634, 0.334825635, 0.3047714829, -0.2367942035, 0.0305576939, 0.0753731653, 0.3694211245, 0.314019382, 0.0147067439, -0.0130339265, 0.0858267918, 0.1819656938, -0.3525706828, -0.1376184076, 0.3225528002, 0.0614038594, 0.1956574023, 0.1185259968, -0.3290822804, 0.2033440918, 0.2233221978, -0.120464392, 0.4577661753, 0.0393730588, 0.2156214267, 0.5496623516, 0.0822913945, 0.1059112772, 0.4552771747, -0.1346557885, -0.0528844185, 0.7670977712, 0.0000362798, 0.4767209888, 0.5375198126, 0.1209944114, 0.1651364565, -0.116949372, -0.061264392, 0.0139843347, -0.0742452666, 0.2528257966, -0.1285436898, -0.2894105911, -0.2081596702, -0.0167670101, -0.1109244302, -0.0039245086, -0.1681597084, -0.2484375685, -0.1625422835, -0.2450120449, -0.0422880724, -0.0708364993, -0.160419032, -0.0501407646, 0.1269110143, -0.3143103123, -0.0143398643, -0.1467229724, -0.2234831899, -0.0081214029, 0.2016516626, -0.0929878354, 0.3207439482, 0.2998452187, 0.159827143, 0.3399278522, 0.2196566463, 0.3316202462, 0.443985045, -0.0927284956, -0.1078115478, -0.1613139808, -0.0841439664, -0.1108931452, 0.2211236358, -0.0047986256, 0.1254571676, 0.1096822023, 0.1607336253, -0.0612043366, 0.3804636002, 0.3565916419, 0.0261916313, -0.3428668082, 0.0200863183, -0.0340408646, 0.0160514023, -0.0020940849, -0.0784246698, -0.0881817192, -0.2545608282, 0.4558415115, 0.3104175329, 0.1873828918, -0.1252919883, 0.0795623884, -0.0890269503, 0.3357637227, 0.2054750472, 0.0817027614, -0.1674567759, 0.0917910859, -0.4356390238, -0.0776815191, 0.0969927013, -0.0606095158, 0.2765798271, -0.0421167389, 0.0987063646, 0.2266128808, 0.0339960195, 0.1146242544, -0.1884645075, -0.1508150697, -0.5087311268, -0.089195773, 0.3614899218, 0.1643898338, 0.071918197, -0.2774338424, 0.0469553731, -0.0643579736, 0.0770169273, -0.192634359, -0.1640274078, 0.1316321939, 0.5628841519, 0.121633105, 0.3136529624, 0.4868503809, 0.0407279916, -0.0813758746, -0.3092046678, -0.3655738533, -0.2650110424, 0.2840080559, -0.0509732217, 0.5357193947, -0.1638861448, -0.3490848541, -0.0664884001, 0.264821738, -0.157160446, -0.188663289, -0.4559234977, 0.2295293361, 0.0384258516, 0.0980730504, -0.4108909369, 0.3706010282, 0.111948207, 0.4879986346, -0.2702848613, -0.6187790036, 0.4536240399, -0.2140198201, -0.4248342216, -0.2510511577, 0.067547515, 0.1526652873, -0.1547737271, -0.4326290786, -0.0599381812, 0.4278156459, -0.0611086115, -0.2852191627, 0.0017881198, 0.2702943087, 0.3620921075, -0.1158800274, -0.1328708529, 0.1866863668, -0.0891441852, 0.1879659444, -0.1533495486 ]
https://github.com/huggingface/datasets/issues/2927
Datasets 1.12 dataset.filter TypeError: get_indices_from_mask_function() got an unexpected keyword argument
Fixed by #2950.
## Describe the bug Upgrading to 1.12 caused `dataset.filter` call to fail with > get_indices_from_mask_function() got an unexpected keyword argument valid_rel_labels ## Steps to reproduce the bug ```pythondef filter_good_rows( ex: Dict, valid_rel_labels: Set[str], valid_ner_labels: Set[str], tokenizer: PreTrainedTokenizerFast, ) -> bool: """Get the good rows""" encoding = get_encoding_for_text(text=ex["text"], tokenizer=tokenizer) ex["encoding"] = encoding for relation in ex["relations"]: if not is_valid_relation(relation, valid_rel_labels): return False for span in ex["spans"]: if not is_valid_span(span, valid_ner_labels, encoding): return False return True def get_dataset(): loader_path = str(Path(__file__).parent / "prodigy_dataset_builder.py") ds = load_dataset( loader_path, name="prodigy-dataset", data_files=sorted(file_paths), cache_dir=cache_dir, )["train"] valid_ner_labels = set(vocab.ner_category) valid_relations = set(vocab.relation_types.keys()) ds = ds.filter( filter_good_rows, fn_kwargs=dict( valid_rel_labels=valid_relations, valid_ner_labels=valid_ner_labels, tokenizer=vocab.tokenizer, ), keep_in_memory=True, num_proc=num_proc, ) ``` `ds` is a `DatasetDict` produced by a jsonl dataset. This runs fine on 1.11 but fails on 1.12 **Stack Trace** ## Expected results I expect 1.12 datasets filter to filter the dataset without raising as it does on 1.11 ## Actual results ``` tf_ner_rel_lib/dataset.py:695: in load_prodigy_arrow_datasets_from_jsonl ds = ds.filter( ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:185: in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/fingerprint.py:398: in wrapper out = func(self, *args, **kwargs) ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:2169: in filter indices = self.map( ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:1686: in map return self._map_single( ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:185: in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/fingerprint.py:398: in wrapper out = func(self, *args, **kwargs) ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:2048: in _map_single batch = apply_function_on_filtered_inputs( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ inputs = {'_input_hash': [2108817714, 1477695082, -1021597032, 2130671338, -1260483858, -1203431639, ...], '_task_hash': [18070...ons', 'relations', 'relations', ...], 'answer': ['accept', 'accept', 'accept', 'accept', 'accept', 'accept', ...], ...} indices = [0, 1, 2, 3, 4, 5, ...], check_same_num_examples = False, offset = 0 def apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples=False, offset=0): """Utility to apply the function on a selection of columns.""" nonlocal update_data fn_args = [inputs] if input_columns is None else [inputs[col] for col in input_columns] if offset == 0: effective_indices = indices else: effective_indices = [i + offset for i in indices] if isinstance(indices, list) else indices + offset processed_inputs = ( > function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) ) E TypeError: get_indices_from_mask_function() got an unexpected keyword argument 'valid_rel_labels' ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:1939: TypeError ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.12.1 - Platform: Mac - Python version: 3.8.9 - PyArrow version: pyarrow==5.0.0
3
Datasets 1.12 dataset.filter TypeError: get_indices_from_mask_function() got an unexpected keyword argument ## Describe the bug Upgrading to 1.12 caused `dataset.filter` call to fail with > get_indices_from_mask_function() got an unexpected keyword argument valid_rel_labels ## Steps to reproduce the bug ```pythondef filter_good_rows( ex: Dict, valid_rel_labels: Set[str], valid_ner_labels: Set[str], tokenizer: PreTrainedTokenizerFast, ) -> bool: """Get the good rows""" encoding = get_encoding_for_text(text=ex["text"], tokenizer=tokenizer) ex["encoding"] = encoding for relation in ex["relations"]: if not is_valid_relation(relation, valid_rel_labels): return False for span in ex["spans"]: if not is_valid_span(span, valid_ner_labels, encoding): return False return True def get_dataset(): loader_path = str(Path(__file__).parent / "prodigy_dataset_builder.py") ds = load_dataset( loader_path, name="prodigy-dataset", data_files=sorted(file_paths), cache_dir=cache_dir, )["train"] valid_ner_labels = set(vocab.ner_category) valid_relations = set(vocab.relation_types.keys()) ds = ds.filter( filter_good_rows, fn_kwargs=dict( valid_rel_labels=valid_relations, valid_ner_labels=valid_ner_labels, tokenizer=vocab.tokenizer, ), keep_in_memory=True, num_proc=num_proc, ) ``` `ds` is a `DatasetDict` produced by a jsonl dataset. This runs fine on 1.11 but fails on 1.12 **Stack Trace** ## Expected results I expect 1.12 datasets filter to filter the dataset without raising as it does on 1.11 ## Actual results ``` tf_ner_rel_lib/dataset.py:695: in load_prodigy_arrow_datasets_from_jsonl ds = ds.filter( ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:185: in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/fingerprint.py:398: in wrapper out = func(self, *args, **kwargs) ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:2169: in filter indices = self.map( ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:1686: in map return self._map_single( ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:185: in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/fingerprint.py:398: in wrapper out = func(self, *args, **kwargs) ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:2048: in _map_single batch = apply_function_on_filtered_inputs( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ inputs = {'_input_hash': [2108817714, 1477695082, -1021597032, 2130671338, -1260483858, -1203431639, ...], '_task_hash': [18070...ons', 'relations', 'relations', ...], 'answer': ['accept', 'accept', 'accept', 'accept', 'accept', 'accept', ...], ...} indices = [0, 1, 2, 3, 4, 5, ...], check_same_num_examples = False, offset = 0 def apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples=False, offset=0): """Utility to apply the function on a selection of columns.""" nonlocal update_data fn_args = [inputs] if input_columns is None else [inputs[col] for col in input_columns] if offset == 0: effective_indices = indices else: effective_indices = [i + offset for i in indices] if isinstance(indices, list) else indices + offset processed_inputs = ( > function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) ) E TypeError: get_indices_from_mask_function() got an unexpected keyword argument 'valid_rel_labels' ../../../../.pyenv/versions/tf_ner_rel_lib/lib/python3.8/site-packages/datasets/arrow_dataset.py:1939: TypeError ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.12.1 - Platform: Mac - Python version: 3.8.9 - PyArrow version: pyarrow==5.0.0 Fixed by #2950.
[ -0.2829699218, 0.2777142525, -0.0049711736, 0.1934766024, 0.0521399193, -0.0259464737, 0.2624210715, 0.4762106538, -0.1806556284, 0.0836368799, -0.1311300099, 0.3645940423, -0.1310276091, 0.1083575189, -0.1563561261, -0.2259478569, 0.0624334253, 0.0486550108, -0.0484171957, 0.0325096361, -0.3871050477, 0.4132161736, -0.4211299717, 0.1235269159, 0.008685492, -0.1654407978, 0.1102141142, -0.0451107584, 0.0099631641, -0.4235654175, 0.4564154148, 0.0699703991, 0.0381553695, 0.2566260993, -0.0001171321, 0.2396819293, 0.366684258, -0.0842551515, -0.2250449806, -0.405336529, -0.1809279323, -0.0339020006, 0.1180416197, -0.1935501844, -0.0818986967, 0.0174917243, -0.249624908, -0.2356579155, 0.2611079514, 0.4325256944, 0.1972838491, 0.0717553645, -0.0651654452, 0.0339874998, 0.0209346432, 0.2666781545, 0.0185224004, -0.0007021982, 0.0587287322, -0.1879914552, 0.2919843793, 0.5048494339, -0.2368306518, -0.2743239999, 0.2988181114, -0.2294282466, 0.223627314, -0.3586401939, 0.2479036301, -0.0648386478, 0.0247386377, -0.0833451524, -0.3223271072, -0.1697276235, -0.2576664686, -0.1120616794, 0.3498052657, -0.1584596336, -0.244265154, -0.0208345316, -0.07258939, -0.0044453437, -0.0193625409, 0.0009967602, -0.0110017173, 0.5335709453, 0.051298894, 0.0513096936, 0.0644063577, -0.1729889512, 0.3066953421, -0.1076792255, -0.1007701308, 0.0617668256, -0.170351848, 0.0725231543, 0.2387878448, -0.100716427, 0.0953230187, -0.0929184034, -0.0909817293, -0.1606885344, 0.0432230234, -0.0053427084, -0.0694495961, 0.0904969722, 0.3082866073, 0.6318762302, 0.0672923923, 0.058587458, -0.0616019517, 0.0373482928, -0.0557346605, 0.0807316527, 0.0906984136, 0.2471883744, 0.3795975745, -0.3135053217, -0.6206545234, 0.1616326869, -0.5770969987, -0.1607390344, 0.237689808, 0.0602699555, 0.2683047056, 0.0857219398, -0.0559860393, 0.0184919778, -0.0884351358, 0.0967272371, -0.1329723448, 0.0300575532, -0.0661212951, -0.288934499, 0.1902687103, -0.5589625239, 0.0788640752, -0.1231013834, -0.090868406, -0.0088757947, -0.0592832975, 0.0524173155, 0.1024440303, 0.3941213489, -0.4122775495, 0.1066873968, 0.2004962116, -0.5756821632, -0.1944885254, 0.2767592072, -0.4454355538, -0.0839394405, 0.0214587208, 0.2041888237, 0.1366723627, -0.1789838076, -0.3426181376, 0.5803837776, 0.0123843485, -0.2307372093, -0.0704242811, -0.2239028215, -0.3683023453, -0.0239756647, 0.1340631545, 0.1689580381, -0.8365051746, -0.2499466091, 0.2335013896, -0.0030520104, -0.0626956224, -0.2084405422, -0.1818583906, -0.0219790861, -0.1172454953, -0.0013353637, 0.3576940596, -0.485848546, -0.6574547887, 0.1390666068, 0.1225496158, 0.1945742369, 0.1314316094, -0.1025109664, 0.3647884429, -0.0999429971, 0.1756555587, 0.2742819488, 0.0124631217, -0.0347300246, -0.2012303621, 0.0749125555, 0.2941287458, -0.0680078194, 0.1666537374, 0.27637887, -0.1620120853, -0.0194072127, 0.2861098051, 0.1138249561, -0.0791773424, 0.0638790876, 0.2018899024, -0.1175088063, 0.232898742, -0.4075967968, -0.1830836833, -0.0563953593, 0.0861253291, 0.130115062, -0.3378736973, -0.214805305, -0.3373113871, 0.0745304599, -0.2046329081, -0.1652506888, 0.1793425977, 0.1503546089, -0.0387527496, -0.0507269315, -0.0374752656, 0.4382365942, 0.2428901494, 0.1432452947, -0.2216559798, 0.2244707495, -0.0795594603, -0.080613561, 0.0983143821, -0.0522183664, 0.36705634, -0.0016741207, -0.3518117964, 0.2039128393, 0.0591471232, -0.3466408551, -0.0529597551, 0.0107605178, 0.0352687202, 0.0651153848, 0.1794721931, 0.3757503927, -0.0078226523, 0.1407691687, -0.1973981559, 0.4055749774, -0.0408483408, 0.4687744379, 0.0199777223, 0.0771241337, 0.3994879127, 0.2407884896, -0.1524210721, -0.1703110337, 0.0525777675, 0.3843008578, 0.2716696858, -0.1308127642, -0.0575984567, 0.2184957862, 0.3087431192, -0.0334121324, 0.0245152265, 0.3014428616, 0.015626844, 0.0211441629, 0.1812755615, 0.4510476291, 0.150378406, 0.1575035751, -0.1162214428, 0.0736183971, -0.2908762395, -0.0003076858, 0.2586247027, 0.1770678163, -0.2355194986, -0.0977184847, 0.2307223231, 0.0618963651, -0.3269087672, -0.4945808649, -0.1177324802, 0.1571106911, -0.2101406008, 0.4223466814, -0.2563110888, -0.360643059, 0.2112966329, -0.1757659763, -0.1615487486, -0.4771515429, 0.0838324726, 0.1105318815, 0.0211028233, 0.4142694175, -0.1944871247, 0.2770675421, 0.1981321126, -0.2057120055, -0.2324998677, -0.3686217666, -0.3903269172, 0.0790402368, 0.1200828031, 0.0579170287, 0.1671684682, -0.0545275025, 0.1354142576, 0.083329387, -0.7349098921, 0.1015762314, -0.3447894454, 0.4745761752, 0.1016463861, 0.038837377, -0.3328078389, -0.2596282661, 0.1520894766, 0.304394573, -0.2402678132, 0.1635410488, 0.0431459434, 0.2904618084, -0.2289169878, -0.4294990301, -0.2123535424, -0.1180267707, -0.1469037235, -0.1846597344, 0.3282931149, 0.5408180952, 0.0719795302, -0.0907747671, 0.1236420944, 0.184421882, -0.3507416248, -0.4034056962, 0.144136861, -0.0788861513, -0.1249593124, -0.1968769431, -0.2286561579, 0.0848402604, 0.2183059156, -0.5605329275, -0.4192049503, 0.0349870473, 0.0410459861, 0.1570181549, -0.1139656156, 0.1058698297, 0.2774389684, 0.030448081, -0.2724855542, -0.3693442345, 0.0357308015, -0.2114411592, 0.0473164991, 0.0135325789, 0.9601014853, 0.0164168794, 0.0682780072, 0.1694822013, 0.2156193256, 0.3308912516, 0.0938933268, 0.4396736324, -0.2999125719, -0.2751029134, -0.1022948325, 0.0323724411, -0.0618773438, -0.2904603481, 0.0270541478, -0.0472293831, -0.1075963899, -0.1457635909, -0.2428792566, -0.307492286, -0.1465963423, -0.1706662029, 0.0713224858, 0.0963586718, 0.3636464477, -0.308096081, -0.0618637502, 0.0288702194, 0.2998217344, -0.0606535003, 0.0504504703, -0.4331361651, -0.0584681481, -0.3299600482, 0.3512754738, 0.0836806521, 0.5775329471, 0.0337941647, 0.1314383298, -0.1877772957, -0.0064897859, 0.6513140798, -0.37467134, 0.0990580469, 0.3981027007, -0.0517896451, -0.105050236, -0.0820436478, -0.3614759147, 0.1523979008, -0.130425632, 0.3490183353, -0.2240297794, -0.0515188314, 0.3174758554, 0.0232320037, -0.1624078602, 0.1051052287, -0.3738526404, -0.5830719471, -0.0338545628, 0.2991501689, 0.0823923871, 0.4687190056, 0.0837701112, 0.0468495339, -0.0865380093, -0.4693993032, 0.1605705619, 0.2456996441, 0.1313659102, 0.1721284539, 0.1322498471, 0.1905105859, 0.1852574944, 0.2601747811, 0.3494502306, -0.1209676489, -0.429931134, -0.1555662006, -0.003165609, 0.2964791059, 0.0886024907, -0.2174897939, -0.0622401759, -0.1156746596, -0.1378526092, -0.0112768495, 0.1836106479, 0.2737488151, 0.2099698633, -0.4123848975, -0.5313845873, 0.1796308607, 0.2255197465, -0.1604507267, 0.3734816909, 0.2652886808, -0.4143254757, 0.4304826856, -0.1537723541, 0.7024047375, 0.2602522671, -0.1502133161, 0.3903979361, -0.1639682204, 0.3863707483, 0.1703226268, 0.1472315341, -0.0537542589, -0.3721880913, -0.0091732787, 0.0341162309, -0.1155766919, 0.0897843763, -0.2464871407, 0.3867236376, -0.2271939069, -0.1297411919, 0.1523538828, 0.0656017885, 0.072543852, 0.1573487818, -0.436416477, 0.1157073081, -0.1356859058, -0.1174689382, -0.0174163952, -0.157321766, 0.2357757241, -0.4989627004, -0.2169850469, 0.0593276396, -0.2186802477, 0.1991744936, 0.1808251143, -0.5248704553, -0.0648283362, -0.2381993383, 0.1592858881, 0.1625673175, 0.0071186177, 0.1369998753, -0.1568153501, 0.4103268683, 0.1870173216, -0.0307340231, 0.4770958126, 0.1361288428, -0.0680285394, 0.1569158882, 0.016583018, -0.282654196, -0.3184965551, -0.1825746, -0.0308478139, -0.188172102, 0.1618311256, -0.1791258454, -0.2661722004, -0.3849771619, 0.1085400954, -0.1376332939, 0.0371233523, 0.1283319592, 0.1249253303, -0.1639446914, 0.0098909764, 0.2198198438, 0.0911266208, -0.3888247311, 0.3381742537, -0.1077874154, -0.1485274583, -0.1235791966, 0.1685680747, 0.2814444602, 0.0629519448, 0.3650933504, -0.0872263014, -0.2079828233, 0.1700563133, 0.2281175256, -0.1518964171, 0.2485146672, -0.1161972806, -0.3701640368, -0.2486976683, 0.4615723789, -0.1306284964, 0.0186716523, -0.0521034189, 0.0991068631, 0.003739581, -0.0162424091, -0.2511475086, 0.0053935279, 0.0735629424, 0.1900277734, -0.4759955704, 0.1512910128, 0.2287879288, 0.110932909, 0.0573695824, 0.2607388794, 0.0007869502, -0.0999411941, -0.2160836458, 0.1331126839, 0.1301591247, -0.1403605193, -0.1228807792, 0.0188462827, -0.0731661841, -0.0717758238, 0.216513291, 0.0835128203, -0.0267807152, 0.2172831297, 0.1311217993, 0.1191414148, 0.3056656718, 0.0038306452, -0.0522037186, 0.124015674, 0.1425275654, 0.1671767533, -0.0698422417, -0.0610502064, -0.5958340168, 0.0865877271, -0.1721179634, 0.334825635, 0.3047714829, -0.2367942035, 0.0305576939, 0.0753731653, 0.3694211245, 0.314019382, 0.0147067439, -0.0130339265, 0.0858267918, 0.1819656938, -0.3525706828, -0.1376184076, 0.3225528002, 0.0614038594, 0.1956574023, 0.1185259968, -0.3290822804, 0.2033440918, 0.2233221978, -0.120464392, 0.4577661753, 0.0393730588, 0.2156214267, 0.5496623516, 0.0822913945, 0.1059112772, 0.4552771747, -0.1346557885, -0.0528844185, 0.7670977712, 0.0000362798, 0.4767209888, 0.5375198126, 0.1209944114, 0.1651364565, -0.116949372, -0.061264392, 0.0139843347, -0.0742452666, 0.2528257966, -0.1285436898, -0.2894105911, -0.2081596702, -0.0167670101, -0.1109244302, -0.0039245086, -0.1681597084, -0.2484375685, -0.1625422835, -0.2450120449, -0.0422880724, -0.0708364993, -0.160419032, -0.0501407646, 0.1269110143, -0.3143103123, -0.0143398643, -0.1467229724, -0.2234831899, -0.0081214029, 0.2016516626, -0.0929878354, 0.3207439482, 0.2998452187, 0.159827143, 0.3399278522, 0.2196566463, 0.3316202462, 0.443985045, -0.0927284956, -0.1078115478, -0.1613139808, -0.0841439664, -0.1108931452, 0.2211236358, -0.0047986256, 0.1254571676, 0.1096822023, 0.1607336253, -0.0612043366, 0.3804636002, 0.3565916419, 0.0261916313, -0.3428668082, 0.0200863183, -0.0340408646, 0.0160514023, -0.0020940849, -0.0784246698, -0.0881817192, -0.2545608282, 0.4558415115, 0.3104175329, 0.1873828918, -0.1252919883, 0.0795623884, -0.0890269503, 0.3357637227, 0.2054750472, 0.0817027614, -0.1674567759, 0.0917910859, -0.4356390238, -0.0776815191, 0.0969927013, -0.0606095158, 0.2765798271, -0.0421167389, 0.0987063646, 0.2266128808, 0.0339960195, 0.1146242544, -0.1884645075, -0.1508150697, -0.5087311268, -0.089195773, 0.3614899218, 0.1643898338, 0.071918197, -0.2774338424, 0.0469553731, -0.0643579736, 0.0770169273, -0.192634359, -0.1640274078, 0.1316321939, 0.5628841519, 0.121633105, 0.3136529624, 0.4868503809, 0.0407279916, -0.0813758746, -0.3092046678, -0.3655738533, -0.2650110424, 0.2840080559, -0.0509732217, 0.5357193947, -0.1638861448, -0.3490848541, -0.0664884001, 0.264821738, -0.157160446, -0.188663289, -0.4559234977, 0.2295293361, 0.0384258516, 0.0980730504, -0.4108909369, 0.3706010282, 0.111948207, 0.4879986346, -0.2702848613, -0.6187790036, 0.4536240399, -0.2140198201, -0.4248342216, -0.2510511577, 0.067547515, 0.1526652873, -0.1547737271, -0.4326290786, -0.0599381812, 0.4278156459, -0.0611086115, -0.2852191627, 0.0017881198, 0.2702943087, 0.3620921075, -0.1158800274, -0.1328708529, 0.1866863668, -0.0891441852, 0.1879659444, -0.1533495486 ]
https://github.com/huggingface/datasets/issues/2924
"File name too long" error for file locks
Hi, the filename here is less than 255 ```python >>> len("_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock") 154 ``` so not sure why it's considered too long for your filesystem. (also note that the lock files we use always have smaller filenames than 255) https://github.com/huggingface/datasets/blob/5d1a9f1e3c6c495dc0610b459e39d2eb8893f152/src/datasets/utils/filelock.py#L135-L135
## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock' ``` ## Steps to reproduce the bug Where the user cache dir (e.g. `~/.cache`) is on a file system that limits filenames to 255 chars (e.g. ext4): ```python from datasets import load_dataset load_dataset("gar1t/test") ``` ## Expected results Expect the function to return without an error. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<python_venv>/lib/python3.9/site-packages/datasets/load.py", line 1112, in load_dataset builder_instance.download_and_prepare( File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 644, in download_and_prepare self._save_info() File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 765, in _save_info with FileLock(lock_path): File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 323, in __enter__ self.acquire() File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 272, in acquire self._acquire() File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 403, in _acquire fd = os.open(self._lock_file, open_mode) OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock' ``` ## Environment info - `datasets` version: 1.12.1 - Platform: Linux-5.11.0-27-generic-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 5.0.0
39
"File name too long" error for file locks ## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock' ``` ## Steps to reproduce the bug Where the user cache dir (e.g. `~/.cache`) is on a file system that limits filenames to 255 chars (e.g. ext4): ```python from datasets import load_dataset load_dataset("gar1t/test") ``` ## Expected results Expect the function to return without an error. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<python_venv>/lib/python3.9/site-packages/datasets/load.py", line 1112, in load_dataset builder_instance.download_and_prepare( File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 644, in download_and_prepare self._save_info() File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 765, in _save_info with FileLock(lock_path): File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 323, in __enter__ self.acquire() File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 272, in acquire self._acquire() File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 403, in _acquire fd = os.open(self._lock_file, open_mode) OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock' ``` ## Environment info - `datasets` version: 1.12.1 - Platform: Linux-5.11.0-27-generic-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 5.0.0 Hi, the filename here is less than 255 ```python >>> len("_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock") 154 ``` so not sure why it's considered too long for your filesystem. (also note that the lock files we use always have smaller filenames than 255) https://github.com/huggingface/datasets/blob/5d1a9f1e3c6c495dc0610b459e39d2eb8893f152/src/datasets/utils/filelock.py#L135-L135
[ 0.0493393503, 0.0920015797, -0.0714939609, 0.401848346, 0.4151671231, 0.2358950824, 0.636662364, 0.2435030937, 0.2364584506, 0.2313297093, 0.0185690634, 0.0077435691, -0.1442685276, -0.3100371361, -0.2015356272, -0.2443143427, -0.1581087261, -0.0416213386, -0.177078411, 0.2177188098, -0.1549794227, 0.3787363768, 0.0246380791, 0.1570838541, -0.536006391, 0.0900789052, -0.1295958906, 0.3886749148, -0.0215065964, -0.3729913831, 0.051118616, -0.0467165932, 0.068814449, 0.811357677, -0.0001220686, -0.3334413767, 0.3542338908, -0.0562992319, -0.3271892667, -0.2243083715, -0.1685816944, -0.5117114782, -0.0345845483, -0.4988024831, 0.1872130185, -0.0951189175, -0.0331902057, -0.8021566272, 0.0410523824, 0.3733062148, 0.1268745214, -0.0783471763, 0.0910248384, -0.2579201758, 0.3323119283, -0.2779891491, 0.0040849657, 0.3564026058, 0.3556975722, -0.0988676101, -0.1546510309, 0.2032182515, -0.0368982404, 0.027324792, 0.2471582741, 0.079537563, -0.0874831453, -0.3261650205, 0.2958056033, 0.4273941517, 0.4714379907, -0.0930620804, -0.2793129385, -0.4676968753, 0.1424980164, -0.1251056492, 0.4885306358, -0.0762403011, -0.222074613, 0.1514885277, -0.1704189926, -0.0196209587, -0.1235974729, -0.1102384105, -0.101975739, 0.0650619194, 0.0405084826, 0.0362790599, 0.3111130893, -0.3483147621, 0.2395959646, 0.0048368936, 0.0742740706, 0.2694604397, -0.6542128921, 0.1469123662, 0.0842684656, 0.3854928017, 0.2534896433, 0.0576435812, -0.2659727335, -0.1483078748, 0.1947487742, -0.0104660569, -0.0649549589, 0.374206692, 0.1944440156, 0.1612814218, 0.3012429774, 0.0779469088, -0.3367469013, -0.1069349945, -0.0764871612, -0.5534629822, 0.445138216, 0.133591041, 0.0741629824, -0.3437117934, 0.1504577994, 0.5705774426, 0.1057047993, -0.0104902675, 0.2287023664, 0.2733797133, 0.005434711, 0.1107665151, 0.0830746666, -0.0899362862, -0.0889612734, 0.1008345857, -0.1473124325, -0.1107303202, -0.2270203382, 0.1124099791, 0.0892055854, -0.3083957136, 0.2792796195, -0.227465108, 0.3152402341, -0.1249576584, -0.0829687566, -0.2377426773, -0.0667323172, 0.1559667885, -0.0591069087, 0.0739138052, 0.2452137023, -0.2607334852, -0.1920612901, -0.0771116391, -0.3397490382, -0.2851879001, -0.0617215782, 0.0947027877, -0.165494591, 0.2159024328, 0.2415551245, -0.2671947181, 0.6555529237, -0.0798197463, 0.0127971917, -0.2747654617, -0.1418095827, 0.0071923966, 0.0408245735, 0.5534662008, 0.1325238049, -0.0175623372, -0.0687896535, 0.1282823086, 0.0086658485, 0.3722593188, 0.1806448698, -0.0535966232, -0.4219526947, 0.3124936521, 0.2268715054, -0.2402810752, -0.486985594, 0.3215382397, -0.394307375, 0.0994933695, 0.3229117393, 0.0228835605, 0.0517107099, -0.024582373, 0.2853384614, 0.1822132915, -0.0260959864, 0.0234954469, -0.202524215, -0.1073302031, -0.0406307913, 0.1691952497, 0.0109546073, 0.0670013204, 0.0796193257, -0.1751918048, 0.2715687454, 0.0314637274, -0.2040443867, 0.3736798167, 0.1382424235, 0.3267191648, 0.1860822737, -0.106327638, -0.5937504768, 0.2637207508, -0.1218474954, -0.1787318438, -0.2175928354, -0.1868047863, -0.1749890149, -0.0072898441, 0.0034599197, 0.1351371109, -0.0204084311, 0.2832494974, 0.1417792886, -0.1317639649, 0.0934399366, 0.5883799791, -0.1702439636, 0.0175973084, -0.4781179428, -0.17112647, -0.1178534552, -0.1125399023, 0.0315071233, 0.0016395918, 0.3693964779, -0.1089679822, -0.3443510532, 0.4480753541, 0.3332768381, 0.0975331739, -0.1789251119, -0.0044306694, -0.0568642691, 0.220775336, 0.0726701096, 0.0398121551, 0.0077854944, 0.0142915584, -0.2135758698, 0.3000163734, -0.14081572, 0.27127707, 0.0286138058, 0.1682408899, 0.2461784184, -0.1318140626, 0.0643453151, -0.1761228889, 0.6458842158, -0.2163528502, 0.3048405647, 0.0547799319, 0.0452316478, -0.1448624283, 0.6458194852, 0.045392707, -0.0001772655, 0.1977425367, 0.1562013328, -0.0408157147, -0.0193730351, 0.3064890206, 0.5111442208, 0.1920584738, -0.0301231258, -0.2065057307, 0.3941576481, -0.2238344699, 0.256319046, 0.0159084182, -0.0027928618, 0.3657026589, 0.0496179983, -0.1290875971, 0.0514840819, -0.8095089197, -0.050442148, 0.223697722, -0.3198090196, 0.1480822265, -0.1393256634, -0.0432045013, -0.0237995591, 0.0004903108, -0.0803984031, -0.4162820876, -0.1888936311, 0.2785063386, -0.1418365985, 0.2145332694, -0.1188357845, -0.0032407197, 0.2712830305, -0.0145387761, -0.2950273752, -0.0016123495, 0.0803438574, -0.0837603286, 0.2720724344, -0.5375033021, 0.0838043541, -0.1256639212, -0.0631072521, -0.5083525181, -0.2498805523, 0.1116677895, -0.1684809178, 0.2935642302, 0.3413662016, 0.2078575194, 0.1666625887, 0.0588969849, 0.0049610781, -0.2622792721, 0.0236695651, 0.2326634228, 0.1779004186, -0.0228179917, -0.1917994022, -0.023455549, -0.3463737965, -0.4160333872, 0.3207841218, 0.0303027015, 0.2279285491, 0.3411892653, -0.0708731115, 0.2978130579, -0.0179723371, 0.2472920567, -0.0879067779, -0.446370095, 0.4170611799, -0.1525222659, -0.2990590334, -0.4318080544, 0.2980134785, -0.0355094597, 0.1055189967, -0.4223643541, -0.1790713519, -0.401260376, 0.3389849961, -0.3357198238, 0.0054093283, 0.1970204413, -0.0852006599, -0.0563488565, -0.1069383249, 0.0849020928, 0.2325119227, 0.0110361269, -0.009520852, 0.0929816738, 0.2951667607, -0.1160778701, 0.4532136321, 0.3616654873, 0.0753480569, 0.1953798383, -0.1376693696, 0.1843574643, -0.2590326071, -0.1269457787, 0.0239379536, 0.1744713485, -0.221584484, 0.1342053711, -0.0853912458, 0.0140818916, -0.1333202869, -0.0577918552, 0.1078078598, -0.2960295677, 0.0073167868, 0.0485861041, 0.0524898916, 0.031080164, 0.1456944346, -0.1948870718, -0.1309104413, -0.0240893289, 0.3084784746, 0.0540789627, -0.0233560894, -0.2468729615, 0.0915106237, -0.3371418118, 0.4440097511, 0.1830917299, 0.2137979567, -0.069359839, -0.1601748466, -0.0800488889, 0.0460065827, 0.6831169128, 0.0991293713, 0.3160929978, 0.1554959416, 0.2547036707, -0.1230872124, 0.0391722023, 0.0795527846, 0.3701882362, 0.1390409023, 0.4079330266, -0.2308098525, 0.037608888, -0.183316946, 0.1855425686, -0.1166330427, -0.4492169619, -0.0262856334, 0.0087962123, -0.2636858821, 0.1616199315, 0.0336052962, 0.2442290634, 0.0616719015, 0.0049132649, -0.0601768605, -0.0747785419, 0.1601556242, 0.1748355776, 0.2812633216, -0.4468779564, 0.264365375, -0.027559543, -0.1595295519, 0.2304127961, 0.5639728904, -0.4439823329, -0.2478427738, 0.4144729376, -0.356559068, 0.0764389262, 0.4287089705, -0.3107663095, -0.1584243178, 0.3582065701, 0.6321594715, 0.1236561164, 0.0257820133, 0.0325685404, 0.1308744252, -0.1530217081, -0.3346109092, 0.2163310051, 0.243095085, -0.0178354532, 0.5360283852, 0.0242514107, -0.3025455177, 0.2613933384, -0.2059544474, 1.02094841, -0.1854486763, 0.1871506423, -0.0190800447, 0.1287675947, 0.4992987216, 0.0092902463, -0.0842248872, -0.4268136919, -0.4827860296, 0.1402025223, -0.149804309, 0.2397724092, -0.0366778336, -0.1301997006, 0.3139286041, -0.2595103979, 0.0177618489, -0.1745316088, 0.4527935386, -0.6466593742, -0.2542138696, -0.2503230572, 0.0479833744, -0.0439814702, 0.1101506725, 0.0617118813, 0.168685928, -0.329262048, -0.2781674564, -0.2272064239, 0.0370319821, -0.4157636762, 0.0835297033, -0.2439022213, -0.282207489, -0.0902421251, 0.2852126062, -0.0320501514, 0.4013364017, -0.2035952657, 0.0923504159, 0.0828223079, 0.0968723148, 0.073000282, -0.0632440969, 0.3176957965, 0.0168975573, 0.0743537098, -0.2857038081, 0.0053972583, -0.1422331929, 0.032482598, -0.02342714, 0.1504140943, -0.2308297455, -0.3237563372, -0.3392715752, -0.2038627863, -0.1504354775, 0.0521603599, 0.3335699141, -0.2387240082, -0.0088765109, -0.2857566476, -0.4090466499, -0.0096647162, 0.3055093884, -0.148109138, -0.047204867, 0.4327270687, 0.3000046313, -0.2102095187, -0.1779171973, -0.0190174319, -0.1799966097, -0.6621257663, 0.0823084489, 0.0360400341, -0.0427111723, -0.2416065782, -0.2668305337, 0.2053605467, 0.1265298724, 0.1113983393, -0.46979931, -0.4082916677, -0.2329967916, -0.2976679206, 0.2016152292, -0.0566246063, -0.3551495075, -0.258842051, 0.0327734798, -0.2122098804, 0.0599939972, -0.1423732638, -0.0618365444, 0.4633510113, -0.1418498307, 0.2244604528, -0.1397035271, 0.046355471, 0.4012090564, 0.0694132596, -0.1816515177, -0.3011113703, 0.1451775283, 0.0411616899, 0.0585848205, -0.0672907755, -0.3786494434, -0.052751489, -0.2798325121, 0.1326039732, 0.3364621699, 0.2424450219, 0.0756183788, 0.09433043, 0.098653309, -0.0325292088, 0.3306849301, -0.1649502367, -0.1383991838, 0.0095238341, 0.2725932598, -0.2107255012, 0.1175259277, -0.3212481141, 0.1536602676, -0.0095391795, -0.0361817405, 0.0752809569, -0.0265370756, -0.1096814424, 0.5564427376, 0.2327184081, 0.2920384705, -0.2722925246, -0.2302523255, 0.2756311297, 0.1339128017, 0.0165831745, -0.2051161677, 0.1073662043, -0.1286123842, -0.0995853841, 0.3734355271, -0.0706336424, -0.1355883777, -0.1899372786, -0.1248223633, 0.5824737549, 0.0935555845, -0.0696668848, 0.2455470562, -0.0136265624, 0.0776752979, 0.4613701999, 0.2502685785, 0.0169347022, 0.5474853516, -0.3130877316, 0.0298885182, -0.1627934128, -0.0062184911, -0.2004130483, -0.4473776221, 0.1316621155, 0.3107807636, -0.0724566802, 0.187366575, -0.1468187869, 0.3045750558, -0.2501968741, 0.1819011271, 0.0543667413, 0.049220752, -0.1095726714, -0.0142696071, 0.3495133519, -0.0250102021, -0.2757626772, -0.0046619414, -0.11504668, 0.1466555595, 0.3796023428, 0.2733509541, 0.1335933954, -0.1753616929, 0.0041428227, 0.2133577764, 0.1663140357, -0.482229948, 0.1435226351, 0.3909594119, -0.088678211, 0.2622956634, -0.0017311651, 0.5537607074, 0.1397955269, 0.0983077362, -0.0007230406, -0.1064622477, -0.011388314, -0.1354410052, 0.4446231723, -0.0308796242, -0.1025131792, 0.3387673199, 0.0280349217, -0.1576936543, 0.1146624386, 0.1928842962, 0.1237160265, -0.1751527786, 0.2012574673, 0.0158905946, -0.2077661604, -0.1786319464, 0.1449805051, -0.3786619902, -0.1633839011, 0.2516909838, 0.0403841957, 0.2624582648, -0.1355939955, 0.0489800386, -0.1194112673, 0.1483440697, 0.3839921951, 0.2433493137, -0.2853369117, -0.0405620374, -0.6024463177, 0.2246279418, -0.0487730019, -0.1710739583, 0.0451600216, -0.1129757613, -0.0471117832, -0.1518046707, 0.3878982961, -0.0159281138, 0.111534372, 0.2670121491, -0.4752603173, -0.2240053713, 0.1703025699, -0.0663013086, 0.2272349, -0.3988763988, 0.1303192973, -0.266743809, -0.0137350131, -0.1426671296, -0.1962016076, 0.1286680251, 0.3134683967, 0.3546344638, 0.1124142408, 0.2980175614, 0.0608979315, -0.249863565, -0.3230270147, 0.1182483435, -0.1321166456, 0.0156514794, 0.2199660689, 0.2973281145, -0.4038825631, -0.4329209328, -0.3770737052, 0.5200780034, -0.1345874667, 0.0714471936, -0.1244051009, -0.0493410081, -0.0306261051, 0.2739892602, 0.2633121014, 0.2337562293, 0.070637241, 0.4157318175, -0.1906892061, -0.299829632, 0.659506321, -0.1065887734, -0.4276301563, 0.0981976986, 0.4086528718, 0.0720963702, -0.1614484638, -0.4712712765, 0.1547385156, 0.324437052, 0.0784328952, -0.2918297052, 0.2315367162, -0.2830388844, 0.1289331019, -0.104005374, 0.2516618371, 0.2692824006, -0.2087137401, -0.0591599233, -0.1967329979 ]
https://github.com/huggingface/datasets/issues/2924
"File name too long" error for file locks
Yes, you're right! I need to get you more info here. Either there's something going with the name itself that the file system doesn't like (an encoding that blows up the name length??) or perhaps there's something with the path that's causing the entire string to be used as a name. I haven't seen this on any system before and the Internet's not forthcoming with any info.
## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock' ``` ## Steps to reproduce the bug Where the user cache dir (e.g. `~/.cache`) is on a file system that limits filenames to 255 chars (e.g. ext4): ```python from datasets import load_dataset load_dataset("gar1t/test") ``` ## Expected results Expect the function to return without an error. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<python_venv>/lib/python3.9/site-packages/datasets/load.py", line 1112, in load_dataset builder_instance.download_and_prepare( File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 644, in download_and_prepare self._save_info() File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 765, in _save_info with FileLock(lock_path): File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 323, in __enter__ self.acquire() File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 272, in acquire self._acquire() File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 403, in _acquire fd = os.open(self._lock_file, open_mode) OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock' ``` ## Environment info - `datasets` version: 1.12.1 - Platform: Linux-5.11.0-27-generic-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 5.0.0
67
"File name too long" error for file locks ## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock' ``` ## Steps to reproduce the bug Where the user cache dir (e.g. `~/.cache`) is on a file system that limits filenames to 255 chars (e.g. ext4): ```python from datasets import load_dataset load_dataset("gar1t/test") ``` ## Expected results Expect the function to return without an error. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<python_venv>/lib/python3.9/site-packages/datasets/load.py", line 1112, in load_dataset builder_instance.download_and_prepare( File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 644, in download_and_prepare self._save_info() File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 765, in _save_info with FileLock(lock_path): File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 323, in __enter__ self.acquire() File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 272, in acquire self._acquire() File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 403, in _acquire fd = os.open(self._lock_file, open_mode) OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock' ``` ## Environment info - `datasets` version: 1.12.1 - Platform: Linux-5.11.0-27-generic-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 5.0.0 Yes, you're right! I need to get you more info here. Either there's something going with the name itself that the file system doesn't like (an encoding that blows up the name length??) or perhaps there's something with the path that's causing the entire string to be used as a name. I haven't seen this on any system before and the Internet's not forthcoming with any info.
[ 0.0493393503, 0.0920015797, -0.0714939609, 0.401848346, 0.4151671231, 0.2358950824, 0.636662364, 0.2435030937, 0.2364584506, 0.2313297093, 0.0185690634, 0.0077435691, -0.1442685276, -0.3100371361, -0.2015356272, -0.2443143427, -0.1581087261, -0.0416213386, -0.177078411, 0.2177188098, -0.1549794227, 0.3787363768, 0.0246380791, 0.1570838541, -0.536006391, 0.0900789052, -0.1295958906, 0.3886749148, -0.0215065964, -0.3729913831, 0.051118616, -0.0467165932, 0.068814449, 0.811357677, -0.0001220686, -0.3334413767, 0.3542338908, -0.0562992319, -0.3271892667, -0.2243083715, -0.1685816944, -0.5117114782, -0.0345845483, -0.4988024831, 0.1872130185, -0.0951189175, -0.0331902057, -0.8021566272, 0.0410523824, 0.3733062148, 0.1268745214, -0.0783471763, 0.0910248384, -0.2579201758, 0.3323119283, -0.2779891491, 0.0040849657, 0.3564026058, 0.3556975722, -0.0988676101, -0.1546510309, 0.2032182515, -0.0368982404, 0.027324792, 0.2471582741, 0.079537563, -0.0874831453, -0.3261650205, 0.2958056033, 0.4273941517, 0.4714379907, -0.0930620804, -0.2793129385, -0.4676968753, 0.1424980164, -0.1251056492, 0.4885306358, -0.0762403011, -0.222074613, 0.1514885277, -0.1704189926, -0.0196209587, -0.1235974729, -0.1102384105, -0.101975739, 0.0650619194, 0.0405084826, 0.0362790599, 0.3111130893, -0.3483147621, 0.2395959646, 0.0048368936, 0.0742740706, 0.2694604397, -0.6542128921, 0.1469123662, 0.0842684656, 0.3854928017, 0.2534896433, 0.0576435812, -0.2659727335, -0.1483078748, 0.1947487742, -0.0104660569, -0.0649549589, 0.374206692, 0.1944440156, 0.1612814218, 0.3012429774, 0.0779469088, -0.3367469013, -0.1069349945, -0.0764871612, -0.5534629822, 0.445138216, 0.133591041, 0.0741629824, -0.3437117934, 0.1504577994, 0.5705774426, 0.1057047993, -0.0104902675, 0.2287023664, 0.2733797133, 0.005434711, 0.1107665151, 0.0830746666, -0.0899362862, -0.0889612734, 0.1008345857, -0.1473124325, -0.1107303202, -0.2270203382, 0.1124099791, 0.0892055854, -0.3083957136, 0.2792796195, -0.227465108, 0.3152402341, -0.1249576584, -0.0829687566, -0.2377426773, -0.0667323172, 0.1559667885, -0.0591069087, 0.0739138052, 0.2452137023, -0.2607334852, -0.1920612901, -0.0771116391, -0.3397490382, -0.2851879001, -0.0617215782, 0.0947027877, -0.165494591, 0.2159024328, 0.2415551245, -0.2671947181, 0.6555529237, -0.0798197463, 0.0127971917, -0.2747654617, -0.1418095827, 0.0071923966, 0.0408245735, 0.5534662008, 0.1325238049, -0.0175623372, -0.0687896535, 0.1282823086, 0.0086658485, 0.3722593188, 0.1806448698, -0.0535966232, -0.4219526947, 0.3124936521, 0.2268715054, -0.2402810752, -0.486985594, 0.3215382397, -0.394307375, 0.0994933695, 0.3229117393, 0.0228835605, 0.0517107099, -0.024582373, 0.2853384614, 0.1822132915, -0.0260959864, 0.0234954469, -0.202524215, -0.1073302031, -0.0406307913, 0.1691952497, 0.0109546073, 0.0670013204, 0.0796193257, -0.1751918048, 0.2715687454, 0.0314637274, -0.2040443867, 0.3736798167, 0.1382424235, 0.3267191648, 0.1860822737, -0.106327638, -0.5937504768, 0.2637207508, -0.1218474954, -0.1787318438, -0.2175928354, -0.1868047863, -0.1749890149, -0.0072898441, 0.0034599197, 0.1351371109, -0.0204084311, 0.2832494974, 0.1417792886, -0.1317639649, 0.0934399366, 0.5883799791, -0.1702439636, 0.0175973084, -0.4781179428, -0.17112647, -0.1178534552, -0.1125399023, 0.0315071233, 0.0016395918, 0.3693964779, -0.1089679822, -0.3443510532, 0.4480753541, 0.3332768381, 0.0975331739, -0.1789251119, -0.0044306694, -0.0568642691, 0.220775336, 0.0726701096, 0.0398121551, 0.0077854944, 0.0142915584, -0.2135758698, 0.3000163734, -0.14081572, 0.27127707, 0.0286138058, 0.1682408899, 0.2461784184, -0.1318140626, 0.0643453151, -0.1761228889, 0.6458842158, -0.2163528502, 0.3048405647, 0.0547799319, 0.0452316478, -0.1448624283, 0.6458194852, 0.045392707, -0.0001772655, 0.1977425367, 0.1562013328, -0.0408157147, -0.0193730351, 0.3064890206, 0.5111442208, 0.1920584738, -0.0301231258, -0.2065057307, 0.3941576481, -0.2238344699, 0.256319046, 0.0159084182, -0.0027928618, 0.3657026589, 0.0496179983, -0.1290875971, 0.0514840819, -0.8095089197, -0.050442148, 0.223697722, -0.3198090196, 0.1480822265, -0.1393256634, -0.0432045013, -0.0237995591, 0.0004903108, -0.0803984031, -0.4162820876, -0.1888936311, 0.2785063386, -0.1418365985, 0.2145332694, -0.1188357845, -0.0032407197, 0.2712830305, -0.0145387761, -0.2950273752, -0.0016123495, 0.0803438574, -0.0837603286, 0.2720724344, -0.5375033021, 0.0838043541, -0.1256639212, -0.0631072521, -0.5083525181, -0.2498805523, 0.1116677895, -0.1684809178, 0.2935642302, 0.3413662016, 0.2078575194, 0.1666625887, 0.0588969849, 0.0049610781, -0.2622792721, 0.0236695651, 0.2326634228, 0.1779004186, -0.0228179917, -0.1917994022, -0.023455549, -0.3463737965, -0.4160333872, 0.3207841218, 0.0303027015, 0.2279285491, 0.3411892653, -0.0708731115, 0.2978130579, -0.0179723371, 0.2472920567, -0.0879067779, -0.446370095, 0.4170611799, -0.1525222659, -0.2990590334, -0.4318080544, 0.2980134785, -0.0355094597, 0.1055189967, -0.4223643541, -0.1790713519, -0.401260376, 0.3389849961, -0.3357198238, 0.0054093283, 0.1970204413, -0.0852006599, -0.0563488565, -0.1069383249, 0.0849020928, 0.2325119227, 0.0110361269, -0.009520852, 0.0929816738, 0.2951667607, -0.1160778701, 0.4532136321, 0.3616654873, 0.0753480569, 0.1953798383, -0.1376693696, 0.1843574643, -0.2590326071, -0.1269457787, 0.0239379536, 0.1744713485, -0.221584484, 0.1342053711, -0.0853912458, 0.0140818916, -0.1333202869, -0.0577918552, 0.1078078598, -0.2960295677, 0.0073167868, 0.0485861041, 0.0524898916, 0.031080164, 0.1456944346, -0.1948870718, -0.1309104413, -0.0240893289, 0.3084784746, 0.0540789627, -0.0233560894, -0.2468729615, 0.0915106237, -0.3371418118, 0.4440097511, 0.1830917299, 0.2137979567, -0.069359839, -0.1601748466, -0.0800488889, 0.0460065827, 0.6831169128, 0.0991293713, 0.3160929978, 0.1554959416, 0.2547036707, -0.1230872124, 0.0391722023, 0.0795527846, 0.3701882362, 0.1390409023, 0.4079330266, -0.2308098525, 0.037608888, -0.183316946, 0.1855425686, -0.1166330427, -0.4492169619, -0.0262856334, 0.0087962123, -0.2636858821, 0.1616199315, 0.0336052962, 0.2442290634, 0.0616719015, 0.0049132649, -0.0601768605, -0.0747785419, 0.1601556242, 0.1748355776, 0.2812633216, -0.4468779564, 0.264365375, -0.027559543, -0.1595295519, 0.2304127961, 0.5639728904, -0.4439823329, -0.2478427738, 0.4144729376, -0.356559068, 0.0764389262, 0.4287089705, -0.3107663095, -0.1584243178, 0.3582065701, 0.6321594715, 0.1236561164, 0.0257820133, 0.0325685404, 0.1308744252, -0.1530217081, -0.3346109092, 0.2163310051, 0.243095085, -0.0178354532, 0.5360283852, 0.0242514107, -0.3025455177, 0.2613933384, -0.2059544474, 1.02094841, -0.1854486763, 0.1871506423, -0.0190800447, 0.1287675947, 0.4992987216, 0.0092902463, -0.0842248872, -0.4268136919, -0.4827860296, 0.1402025223, -0.149804309, 0.2397724092, -0.0366778336, -0.1301997006, 0.3139286041, -0.2595103979, 0.0177618489, -0.1745316088, 0.4527935386, -0.6466593742, -0.2542138696, -0.2503230572, 0.0479833744, -0.0439814702, 0.1101506725, 0.0617118813, 0.168685928, -0.329262048, -0.2781674564, -0.2272064239, 0.0370319821, -0.4157636762, 0.0835297033, -0.2439022213, -0.282207489, -0.0902421251, 0.2852126062, -0.0320501514, 0.4013364017, -0.2035952657, 0.0923504159, 0.0828223079, 0.0968723148, 0.073000282, -0.0632440969, 0.3176957965, 0.0168975573, 0.0743537098, -0.2857038081, 0.0053972583, -0.1422331929, 0.032482598, -0.02342714, 0.1504140943, -0.2308297455, -0.3237563372, -0.3392715752, -0.2038627863, -0.1504354775, 0.0521603599, 0.3335699141, -0.2387240082, -0.0088765109, -0.2857566476, -0.4090466499, -0.0096647162, 0.3055093884, -0.148109138, -0.047204867, 0.4327270687, 0.3000046313, -0.2102095187, -0.1779171973, -0.0190174319, -0.1799966097, -0.6621257663, 0.0823084489, 0.0360400341, -0.0427111723, -0.2416065782, -0.2668305337, 0.2053605467, 0.1265298724, 0.1113983393, -0.46979931, -0.4082916677, -0.2329967916, -0.2976679206, 0.2016152292, -0.0566246063, -0.3551495075, -0.258842051, 0.0327734798, -0.2122098804, 0.0599939972, -0.1423732638, -0.0618365444, 0.4633510113, -0.1418498307, 0.2244604528, -0.1397035271, 0.046355471, 0.4012090564, 0.0694132596, -0.1816515177, -0.3011113703, 0.1451775283, 0.0411616899, 0.0585848205, -0.0672907755, -0.3786494434, -0.052751489, -0.2798325121, 0.1326039732, 0.3364621699, 0.2424450219, 0.0756183788, 0.09433043, 0.098653309, -0.0325292088, 0.3306849301, -0.1649502367, -0.1383991838, 0.0095238341, 0.2725932598, -0.2107255012, 0.1175259277, -0.3212481141, 0.1536602676, -0.0095391795, -0.0361817405, 0.0752809569, -0.0265370756, -0.1096814424, 0.5564427376, 0.2327184081, 0.2920384705, -0.2722925246, -0.2302523255, 0.2756311297, 0.1339128017, 0.0165831745, -0.2051161677, 0.1073662043, -0.1286123842, -0.0995853841, 0.3734355271, -0.0706336424, -0.1355883777, -0.1899372786, -0.1248223633, 0.5824737549, 0.0935555845, -0.0696668848, 0.2455470562, -0.0136265624, 0.0776752979, 0.4613701999, 0.2502685785, 0.0169347022, 0.5474853516, -0.3130877316, 0.0298885182, -0.1627934128, -0.0062184911, -0.2004130483, -0.4473776221, 0.1316621155, 0.3107807636, -0.0724566802, 0.187366575, -0.1468187869, 0.3045750558, -0.2501968741, 0.1819011271, 0.0543667413, 0.049220752, -0.1095726714, -0.0142696071, 0.3495133519, -0.0250102021, -0.2757626772, -0.0046619414, -0.11504668, 0.1466555595, 0.3796023428, 0.2733509541, 0.1335933954, -0.1753616929, 0.0041428227, 0.2133577764, 0.1663140357, -0.482229948, 0.1435226351, 0.3909594119, -0.088678211, 0.2622956634, -0.0017311651, 0.5537607074, 0.1397955269, 0.0983077362, -0.0007230406, -0.1064622477, -0.011388314, -0.1354410052, 0.4446231723, -0.0308796242, -0.1025131792, 0.3387673199, 0.0280349217, -0.1576936543, 0.1146624386, 0.1928842962, 0.1237160265, -0.1751527786, 0.2012574673, 0.0158905946, -0.2077661604, -0.1786319464, 0.1449805051, -0.3786619902, -0.1633839011, 0.2516909838, 0.0403841957, 0.2624582648, -0.1355939955, 0.0489800386, -0.1194112673, 0.1483440697, 0.3839921951, 0.2433493137, -0.2853369117, -0.0405620374, -0.6024463177, 0.2246279418, -0.0487730019, -0.1710739583, 0.0451600216, -0.1129757613, -0.0471117832, -0.1518046707, 0.3878982961, -0.0159281138, 0.111534372, 0.2670121491, -0.4752603173, -0.2240053713, 0.1703025699, -0.0663013086, 0.2272349, -0.3988763988, 0.1303192973, -0.266743809, -0.0137350131, -0.1426671296, -0.1962016076, 0.1286680251, 0.3134683967, 0.3546344638, 0.1124142408, 0.2980175614, 0.0608979315, -0.249863565, -0.3230270147, 0.1182483435, -0.1321166456, 0.0156514794, 0.2199660689, 0.2973281145, -0.4038825631, -0.4329209328, -0.3770737052, 0.5200780034, -0.1345874667, 0.0714471936, -0.1244051009, -0.0493410081, -0.0306261051, 0.2739892602, 0.2633121014, 0.2337562293, 0.070637241, 0.4157318175, -0.1906892061, -0.299829632, 0.659506321, -0.1065887734, -0.4276301563, 0.0981976986, 0.4086528718, 0.0720963702, -0.1614484638, -0.4712712765, 0.1547385156, 0.324437052, 0.0784328952, -0.2918297052, 0.2315367162, -0.2830388844, 0.1289331019, -0.104005374, 0.2516618371, 0.2692824006, -0.2087137401, -0.0591599233, -0.1967329979 ]
https://github.com/huggingface/datasets/issues/2919
Unwanted progress bars when accessing examples
doing a patch release now :)
When accessing examples from a dataset formatted for pytorch, some progress bars appear when accessing examples: ```python In [1]: import datasets as ds In [2]: d = ds.Dataset.from_dict({"a": [0, 1, 2]}).with_format("torch") In [3]: d[0] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1/1 [00:00<00:00, 3172.70it/s] Out[3]: {'a': tensor(0)} ``` This is because the pytorch formatter calls `map_nested` that uses progress bars cc @sgugger
6
Unwanted progress bars when accessing examples When accessing examples from a dataset formatted for pytorch, some progress bars appear when accessing examples: ```python In [1]: import datasets as ds In [2]: d = ds.Dataset.from_dict({"a": [0, 1, 2]}).with_format("torch") In [3]: d[0] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1/1 [00:00<00:00, 3172.70it/s] Out[3]: {'a': tensor(0)} ``` This is because the pytorch formatter calls `map_nested` that uses progress bars cc @sgugger doing a patch release now :)
[ -0.0175480675, -0.2450868934, 0.0048732767, 0.10296496, 0.1993564218, 0.0186564457, 0.5456594825, 0.2686175108, -0.3862209618, 0.233160913, 0.1730663329, 0.4301009178, -0.0968903452, 0.163059175, 0.0540391617, -0.2791727781, -0.0362301841, 0.0565355495, 0.0279643871, 0.077860862, -0.0710608438, -0.1534580141, -0.1631929129, 0.2491238117, -0.4254311323, -0.1769718528, 0.0204986315, -0.2497630417, 0.2259828746, -0.6468563676, 0.3624524474, 0.017228175, 0.0925377831, 0.4540927112, -0.0001153858, 0.1453293562, 0.4285333753, 0.2160392404, -0.2830248773, -0.1382309198, 0.3537838757, -0.5126107335, 0.3308672309, -0.3774378598, -0.0873389021, -0.5281800628, -0.2761972547, -0.4125932157, 0.2876147032, 0.0940865576, 0.219826296, 0.4712334275, -0.2902378142, -0.0055018864, 0.5578870773, 0.1376104206, -0.3271023929, 0.1375557929, 0.5464651585, 0.0474077016, -0.2612787783, 0.6541268229, -0.1014311612, 0.3388422132, 0.1663392037, -0.0622609183, 0.0632258281, -0.1512287408, -0.1227654591, 0.3897278607, 0.1704966575, -0.0895446837, -0.2203477472, -0.810939312, -0.0621742755, -0.0982443467, -0.1076176837, 0.1732621491, 0.0438141599, 0.0303935967, -0.5963996649, 0.0290020015, -0.27146402, 0.0937305689, 0.0468122512, -0.1223285422, -0.0942170694, 0.0973090604, -0.0284371544, 0.083435297, 0.1243030503, -0.1994698942, 0.0932707414, 0.0010196987, -0.046441935, 0.1807018369, 0.1487292498, -0.170697704, -0.1335336268, 0.1875990182, -0.0521841459, 0.1841346174, -0.0532620661, 0.1660489142, -0.0838754028, -0.0406403653, 0.1388794035, -0.2265987098, 0.3347287774, 0.0163198523, 0.2717235684, 0.1755359918, -0.037750639, -0.2225538939, 0.1156542897, 0.1093147323, 0.1090649813, 0.0211095344, -0.1003607139, 0.2777105868, -0.3311299682, 0.0219744816, 0.2182542384, 0.2214021385, -0.1495082378, -0.2717446387, 0.1687204242, 0.2794264853, -0.0600529797, 0.2132000178, -0.0743473321, -0.1063092723, -0.4007383883, -0.1235286221, 0.2540350258, 0.1500249505, 0.2033672929, 0.1358764023, 0.1028876156, -0.0182450209, 0.3721589446, 0.0875214264, 0.4961630404, 0.1029135436, -0.2043189853, 0.2071680725, 0.075304538, 0.4455814064, -0.0290748477, 0.271618098, -0.0666681826, -0.3141361773, -0.5112269521, 0.1377267092, -0.4437701702, 0.2145982981, -0.0623717569, -0.0707329661, 0.3211912811, -0.0310045853, -0.0121499458, -0.3121537268, -0.247789517, 0.0666654259, 0.2291434705, 0.2016990036, -0.1900742948, -0.2416289151, 0.2099226117, 0.0013152339, 0.0640754029, 0.1185466424, -0.23551175, 0.3596096337, -0.2419328094, -0.026544407, 0.1872638762, -0.1814072579, -0.3709934652, -0.1421762258, 0.0234307237, 0.3529036641, 0.0315213762, -0.1182669997, 0.3322122693, 0.0806723833, -0.0189346746, 0.1771131754, 0.2529223263, -0.0826835856, -0.2729922533, 0.0518658161, 0.3036836088, 0.2500388026, -0.0991399065, -0.1353184134, -0.2295820117, -0.2512821555, 0.1488023102, -0.2186713666, 0.1137110293, -0.0783538818, -0.0333985202, -0.1114408895, 0.128908366, -0.200934723, -0.1400860697, 0.334146589, -0.1916212291, -0.0585839003, -0.1843481064, -0.1486791074, -0.2163711041, -0.0423979238, -0.2948601842, -0.0875450671, 0.0705130398, -0.1551547796, -0.0718744695, -0.0183241945, 0.0944948941, -0.1325680614, -0.3775212765, -0.0472109951, 0.0076890243, 0.3263398409, 0.1543031484, -0.3600919843, -0.1122498885, 0.4872063696, 0.0123988334, -0.0924425796, -0.1616445929, 0.0323477574, 0.1806732118, 0.020979777, -0.418775171, 0.1870616972, 0.3267300427, 0.1015354991, -0.0053531798, 0.2033281922, -0.110525474, -0.0142406756, -0.2096013576, 0.275554955, 0.3913537562, 0.3871296048, -0.0188226514, 0.1576325446, 0.2299357653, 0.2287838459, -0.19063811, -0.3708530664, 0.3794209957, 0.1164492592, 0.2275259644, -0.1128709093, -0.056149736, 0.2054813057, 0.2419088632, -0.0129112294, 0.0710802451, 0.1942463815, -0.3472250402, -0.0823546052, 0.2821888328, -0.0113203805, 0.0383519419, 0.0980123356, 0.1815937907, 0.1735030264, -0.0646654963, -0.2774474919, -0.002367727, 0.252974838, 0.1037782133, 0.0188018717, 0.1014887169, 0.0363334157, -0.0996529385, -0.2078756839, -0.2531711757, 0.0459414124, -0.4298397005, 0.2782195807, -0.3938655257, -0.2349227965, -0.1121626124, -0.1845910549, 0.0518490709, -0.2728966475, 0.1209051535, 0.5843741298, -0.1538914591, 0.3002850115, 0.3276317716, 0.1584009379, 0.0250879861, 0.1818053126, -0.0510158017, -0.510720849, -0.2618277967, 0.0802433044, -0.0849289596, -0.1672920287, 0.5056151152, -0.1877110004, 0.4327579141, -0.3314349949, -0.1271976531, 0.1429183781, -0.0935863927, 0.0404994525, -0.0486703366, 0.1458623558, -0.0911693275, 0.233792603, 0.160188511, -0.1380708367, -0.0214611273, 0.16621387, -0.2902114093, -0.0336513706, -0.2353742123, 0.0583931804, -0.3945191801, -0.1011367291, 0.0673801824, -0.1514690369, 0.1948434263, -0.0160474218, -0.3517791629, 0.4189587235, 0.1875047535, -0.1340169311, -0.1357982308, -0.3630971313, 0.2848750055, -0.41330266, -0.2727486789, -0.0870164037, -0.2269277126, -0.2414059043, 0.2249186188, -0.4970188141, -0.4690299034, -0.2819567025, 0.2401717752, 0.0068959016, -0.0885310322, 0.2275055051, 0.2388396263, -0.0490171686, -0.1502595395, -0.1286485642, 0.2684911489, -0.2023165226, -0.0526690036, -0.2280971706, -0.1113249883, 0.1931582093, 0.4944924414, 0.1924008131, -0.2912912369, 0.1187348738, 0.0306330826, 0.1123298332, -0.1802462488, -0.1826853007, -0.1176944822, -0.4110670388, 0.0464733355, -0.0148358615, 0.0150283165, -0.0615319833, 0.2057303935, -0.0157856271, -0.1149998009, -0.292308867, -0.1367049962, -0.5465351939, 0.2146653235, -0.0885391533, 0.3431994319, -0.1929283291, -0.1536388397, -0.1729557216, -0.1027353704, 0.3973326683, 0.0111482572, -0.1668602377, -0.256231606, -0.0367813185, 0.3502275944, 0.4951102138, 0.0122325225, -0.0494005047, -0.0513418317, 0.4644909203, 0.4761361778, 0.2832567096, 0.1001850367, -0.1279858649, 0.2342715114, -0.2401283532, -0.7125119567, -0.41146034, -0.1997616738, 0.4119268656, 0.2129512131, 0.4722346961, 0.0457137078, -0.086379692, 0.0880065113, 0.4283269346, -0.1754733473, -0.1151453927, -0.164950341, -0.3428955376, -0.3676280975, 0.2961567342, 0.1100679711, -0.0125856651, -0.2604800761, -0.2776361108, -0.0639647469, 0.0514944792, -0.0319752358, 0.3141577542, 0.229007259, 0.0247712489, 0.1257308871, 0.4538356066, 0.4744880199, 0.2547186613, 0.0707441568, 0.1482186466, -0.048177246, 0.2233390659, -0.4182990193, -0.0396085083, 0.2151462138, -0.0113113131, 0.300827384, -0.2532792091, 0.0221573282, -0.2611340284, 0.0794604346, 0.2527319491, -0.0078818072, -0.1881323904, -0.316670537, 0.2333788425, -0.0685120448, -0.178301841, 0.2720800936, -0.3529309928, -0.1420414448, 0.1504247189, 0.1549986601, 0.6575912833, -0.0286711324, 0.1168500483, 0.511208117, -0.2467370182, 0.2707988918, 0.2357586771, 0.1782183349, -0.2843172848, -0.2260917276, 0.077235803, -0.446272552, 0.0647938997, -0.0009366414, -0.0220275056, -0.131005004, -0.5273835063, 0.2063754499, 0.0190239213, -0.0590235889, 0.3956880569, -0.3413526118, -0.2414980084, 0.1582078487, -0.1195397153, 0.3477330506, -0.153694585, 0.105606243, 0.0029755994, 0.0559373796, -0.2887510955, 0.0984202698, 0.1579602063, 0.3901692331, 0.0510993376, -0.7411983609, -0.0375015289, 0.1320708096, 0.3103530407, -0.0464583524, -0.120931454, 0.1860230863, 0.0712058544, 0.1173128709, 0.2080661058, -0.0445344783, 0.3048805892, -0.2177551091, -0.2133199573, 0.289378047, 0.0879581645, -0.2650895715, -0.0903161094, 0.1210575998, 0.0623679422, -0.0285778753, 0.146940738, -0.1023302898, 0.1881256551, -0.179275915, 0.1194247305, 0.098932758, -0.2934565246, 0.3730723858, -0.1679872125, -0.2851409614, 0.023308998, 0.0684312284, 0.0924657211, -0.0535454601, 0.5884126425, 0.2965933979, -0.3969217241, -0.0453655347, 0.2278076261, 0.2701043487, -0.2893387973, 0.1174756289, 0.2835693359, 0.1774771065, -0.413019985, -0.0458238162, -0.0454670712, -0.026506193, -0.2763679922, -0.3110716641, -0.3819492757, -0.1838888377, -0.037768133, 0.3098086715, 0.0986221954, 0.2046764046, -0.1496843994, -0.1149211973, -0.2811182737, 0.2810724676, -0.1052022502, 0.2823551893, -0.0097785192, -0.2017995566, -0.0716521591, -0.3540430963, -0.0920337066, 0.0676924735, -0.2509935796, -0.2414507866, -0.2945031524, 0.0720853955, -0.1283766329, -0.5431334972, 0.066728361, 0.1387889385, 0.1103348732, -0.0959893838, 0.4568045437, 0.3058486581, 0.0772642195, 0.3269970715, -0.2034392655, 0.2739566267, -0.0409143828, -0.020709984, -0.1116553992, 0.3173391223, 0.1663935035, -0.0878654346, 0.2291099429, 0.1036329418, 0.1654630154, -0.0290552266, 0.0285506975, 0.3309161067, 0.1152022108, -0.1805236489, 0.2272562385, -0.1822111905, 0.3503676355, 0.0519738756, -0.2619753778, -0.2643000782, 0.2569488585, 0.1530782729, -0.0500352234, -0.2258733511, 0.4774631262, 0.0756995752, 0.0340617336, 0.1253063083, 0.2247715294, 0.5043908358, -0.0475612022, 0.0738995597, -0.081570439, 0.0508443005, 0.3201390505, 0.2587703466, -0.0798705667, -0.0055938778, 0.0351336226, 0.0449205413, 0.0840099305, -0.0845154375, 0.3153921962, 0.6276469231, 0.5006055236, -0.0922196507, 0.0945133418, -0.263574332, -0.4391740263, -0.3639207184, -0.1227432266, 0.0407780483, -0.0924314335, 0.2919994593, -0.2905572057, -0.4293654561, -0.3388067782, -0.0357804783, -0.1445909292, -0.070831351, -0.034298256, 0.0904835537, 0.0901739672, -0.0436631069, -0.1581738442, 0.1526149809, 0.0199174788, -0.1052327827, -0.0309135877, -0.0641777217, 0.0459759124, -0.0262360517, 0.3488769233, 0.1154232547, -0.0487071984, 0.1308671981, 0.0627249703, -0.1025522426, 0.1025527045, 0.1545532346, 0.2601504624, -0.3949838877, -0.1687651724, -0.1504912376, 0.1469617635, -0.0068152202, 0.3295758367, -0.0582019277, -0.4498440027, 0.2931940854, 0.0710852221, -0.1421114355, 0.6278657317, 0.0279215667, 0.1311353743, -0.2680278718, 0.3336524963, -0.2577918768, -0.1453121305, 0.0927531719, -0.3478544056, 0.0340452418, -0.1008718088, 0.8285409808, -0.0055257455, 0.0478106216, -0.1501996219, 0.0873420835, -0.1911148876, 0.6613516212, 0.1349851936, 0.5720160007, -0.0729165375, 0.0926222354, -0.3475141227, 0.1489682943, -0.1697594225, 0.0487481356, 0.2350684851, -0.1679376215, -0.3383406103, 0.4007802308, 0.5639624, -0.2407636493, -0.249806881, -0.3299007118, -0.3072220385, 0.0551428385, 0.0805551186, -0.0869708359, -0.0475652367, -0.1825208068, 0.0548046343, -0.0901909247, 0.1151650399, 0.0051526413, -0.1455165148, -0.0173772313, -0.0279609356, 0.4075471163, 0.2661443949, 0.1931025535, 0.2716137767, 0.0248533059, 0.0354542583, -0.0741970539, 0.0967927873, 0.4841645956, 0.0150432829, 0.329911083, -0.0158772171, 0.0391109847, -0.1803999096, 0.4807221889, 0.3238476217, 0.0178111568, -0.1421049386, 0.0984386057, -0.2610158622, 0.2574439645, -0.016893791, 0.0306532588, -0.0154680144, 0.4048753083, -0.0077654449, -0.1700899154, 0.5261824131, -0.4042277336, -0.3670017421, -0.0829792991, 0.2184514552, 0.1859294027, -0.0921535343, -0.3823102415, -0.2459062785, 0.2568610907, -0.1912846565, -0.1312142015, 0.1051476598, 0.0230771396, -0.1514546424, -0.0044824672, 0.5724635124, 0.0191494972, 0.0986652225, -0.0518430099, -0.3697446585 ]
https://github.com/huggingface/datasets/issues/2918
`Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming
Hi @SBrandeis, thanks for reporting! ^^ I think this is an issue with `fsspec`: https://github.com/intake/filesystem_spec/issues/389 I will ask them if they are planning to fix it...
## Describe the bug Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`: ```python ClientPayloadError: 400, message='Can not decode content-encoding: gzip' ``` cc @lhoestq ## Steps to reproduce the bug ```python from datasets import load_dataset iter_dset = iter( load_dataset("scitldr", name="FullText", split="test", streaming=True) ) next(iter_dset) ``` ## Expected results Returns the first sample of the dataset ## Actual results Calling `__next__` crashes with the following Traceback: ```python ----> 1 next(dset_iter) ~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self) 339 340 def __iter__(self): --> 341 for key, example in self._iter(): 342 if self.features: 343 # we encode the example for ClassLabel feature types for example ~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in _iter(self) 336 else: 337 ex_iterable = self._ex_iterable --> 338 yield from ex_iterable 339 340 def __iter__(self): ~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self) 76 77 def __iter__(self): ---> 78 for key, example in self.generate_examples_fn(**self.kwargs): 79 yield key, example 80 ~\.cache\huggingface\modules\datasets_modules\datasets\scitldr\72d6e2195786c57e1d343066fb2cc4f93ea39c5e381e53e6ae7c44bbfd1f05ef\scitldr.py in _generate_examples(self, filepath, split) 162 163 with open(filepath, encoding="utf-8") as f: --> 164 for id_, row in enumerate(f): 165 data = json.loads(row) 166 if self.config.name == "AIC": ~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in read(self, length) 496 else: 497 length = min(self.size - self.loc, length) --> 498 return super().read(length) 499 500 async def async_fetch_all(self): ~\miniconda3\envs\datasets\lib\site-packages\fsspec\spec.py in read(self, length) 1481 # don't even bother calling fetch 1482 return b"" -> 1483 out = self.cache._fetch(self.loc, self.loc + length) 1484 self.loc += len(out) 1485 return out ~\miniconda3\envs\datasets\lib\site-packages\fsspec\caching.py in _fetch(self, start, end) 378 elif start < self.start: 379 if self.end - end > self.blocksize: --> 380 self.cache = self.fetcher(start, bend) 381 self.start = start 382 else: ~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in wrapper(*args, **kwargs) 86 def wrapper(*args, **kwargs): 87 self = obj or args[0] ---> 88 return sync(self.loop, func, *args, **kwargs) 89 90 return wrapper ~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in sync(loop, func, timeout, *args, **kwargs) 67 raise FSTimeoutError 68 if isinstance(result[0], BaseException): ---> 69 raise result[0] 70 return result[0] 71 ~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in _runner(event, coro, result, timeout) 23 coro = asyncio.wait_for(coro, timeout=timeout) 24 try: ---> 25 result[0] = await coro 26 except Exception as ex: 27 result[0] = ex ~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in async_fetch_range(self, start, end) 538 if r.status == 206: 539 # partial content, as expected --> 540 out = await r.read() 541 elif "Content-Length" in r.headers: 542 cl = int(r.headers["Content-Length"]) ~\miniconda3\envs\datasets\lib\site-packages\aiohttp\client_reqrep.py in read(self) 1030 if self._body is None: 1031 try: -> 1032 self._body = await self.content.read() 1033 for trace in self._traces: 1034 await trace.send_response_chunk_received( ~\miniconda3\envs\datasets\lib\site-packages\aiohttp\streams.py in read(self, n) 342 async def read(self, n: int = -1) -> bytes: 343 if self._exception is not None: --> 344 raise self._exception 345 346 # migration problem; with DataQueue you have to catch ClientPayloadError: 400, message='Can not decode content-encoding: gzip' ``` ## Environment info - `datasets` version: 1.12.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.8.5 - PyArrow version: 2.0.0 - aiohttp version: 3.7.4.post0
26
`Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming ## Describe the bug Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`: ```python ClientPayloadError: 400, message='Can not decode content-encoding: gzip' ``` cc @lhoestq ## Steps to reproduce the bug ```python from datasets import load_dataset iter_dset = iter( load_dataset("scitldr", name="FullText", split="test", streaming=True) ) next(iter_dset) ``` ## Expected results Returns the first sample of the dataset ## Actual results Calling `__next__` crashes with the following Traceback: ```python ----> 1 next(dset_iter) ~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self) 339 340 def __iter__(self): --> 341 for key, example in self._iter(): 342 if self.features: 343 # we encode the example for ClassLabel feature types for example ~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in _iter(self) 336 else: 337 ex_iterable = self._ex_iterable --> 338 yield from ex_iterable 339 340 def __iter__(self): ~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self) 76 77 def __iter__(self): ---> 78 for key, example in self.generate_examples_fn(**self.kwargs): 79 yield key, example 80 ~\.cache\huggingface\modules\datasets_modules\datasets\scitldr\72d6e2195786c57e1d343066fb2cc4f93ea39c5e381e53e6ae7c44bbfd1f05ef\scitldr.py in _generate_examples(self, filepath, split) 162 163 with open(filepath, encoding="utf-8") as f: --> 164 for id_, row in enumerate(f): 165 data = json.loads(row) 166 if self.config.name == "AIC": ~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in read(self, length) 496 else: 497 length = min(self.size - self.loc, length) --> 498 return super().read(length) 499 500 async def async_fetch_all(self): ~\miniconda3\envs\datasets\lib\site-packages\fsspec\spec.py in read(self, length) 1481 # don't even bother calling fetch 1482 return b"" -> 1483 out = self.cache._fetch(self.loc, self.loc + length) 1484 self.loc += len(out) 1485 return out ~\miniconda3\envs\datasets\lib\site-packages\fsspec\caching.py in _fetch(self, start, end) 378 elif start < self.start: 379 if self.end - end > self.blocksize: --> 380 self.cache = self.fetcher(start, bend) 381 self.start = start 382 else: ~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in wrapper(*args, **kwargs) 86 def wrapper(*args, **kwargs): 87 self = obj or args[0] ---> 88 return sync(self.loop, func, *args, **kwargs) 89 90 return wrapper ~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in sync(loop, func, timeout, *args, **kwargs) 67 raise FSTimeoutError 68 if isinstance(result[0], BaseException): ---> 69 raise result[0] 70 return result[0] 71 ~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in _runner(event, coro, result, timeout) 23 coro = asyncio.wait_for(coro, timeout=timeout) 24 try: ---> 25 result[0] = await coro 26 except Exception as ex: 27 result[0] = ex ~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in async_fetch_range(self, start, end) 538 if r.status == 206: 539 # partial content, as expected --> 540 out = await r.read() 541 elif "Content-Length" in r.headers: 542 cl = int(r.headers["Content-Length"]) ~\miniconda3\envs\datasets\lib\site-packages\aiohttp\client_reqrep.py in read(self) 1030 if self._body is None: 1031 try: -> 1032 self._body = await self.content.read() 1033 for trace in self._traces: 1034 await trace.send_response_chunk_received( ~\miniconda3\envs\datasets\lib\site-packages\aiohttp\streams.py in read(self, n) 342 async def read(self, n: int = -1) -> bytes: 343 if self._exception is not None: --> 344 raise self._exception 345 346 # migration problem; with DataQueue you have to catch ClientPayloadError: 400, message='Can not decode content-encoding: gzip' ``` ## Environment info - `datasets` version: 1.12.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.8.5 - PyArrow version: 2.0.0 - aiohttp version: 3.7.4.post0 Hi @SBrandeis, thanks for reporting! ^^ I think this is an issue with `fsspec`: https://github.com/intake/filesystem_spec/issues/389 I will ask them if they are planning to fix it...
[ -0.3864652812, -0.2204957455, 0.0894813165, 0.4387415349, 0.2157086134, 0.1229229122, -0.0369101539, 0.3093882799, 0.2422775328, 0.0955026373, -0.2264311761, 0.4261536002, -0.0641756877, 0.3035327792, -0.0094654057, -0.2584786713, -0.0045060921, 0.2337655127, -0.1049250886, 0.1268760264, -0.0005556306, 0.1941259056, -0.2469931841, -0.0304233823, 0.0522285365, -0.1081046611, 0.0124065261, 0.2805253863, -0.059583243, -0.4462363422, 0.1259049624, -0.0615482517, 0.4121141732, 0.3375741839, -0.0001145032, 0.2734483778, 0.4721427262, -0.1227841005, -0.4853440225, -0.2121149004, -0.218665719, 0.0961271524, 0.0428345352, -0.1566341817, -0.0091345869, 0.0711133331, -0.0400046185, -0.7192984819, 0.3178500533, 0.3456359804, 0.1778500229, 0.0426006429, -0.0489487238, 0.0268223863, 0.0688386783, -0.2986646891, -0.0920066237, 0.1218173951, 0.2367273569, 0.2287404835, -0.359573245, 0.3845903277, -0.0658884048, 0.0601840951, 0.0944148228, 0.0967238322, -0.1749501675, -0.4655051231, -0.0073944977, 0.1884141415, 0.6776787043, -0.2555166781, -0.4161978662, -0.2319881767, -0.0021713183, -0.6144573689, 0.1465310603, 0.1489273459, -0.4673651159, 0.1280597448, 0.2459630817, -0.0087530883, -0.327994585, -0.0458728224, -0.246799171, 0.3882223368, -0.0767857283, -0.0237270929, 0.0272943433, -0.0866289064, 0.4627741277, -0.2110346556, -0.28459391, -0.0639790371, -0.4397552311, -0.0420655161, -0.0765123144, -0.094109349, 0.1681466401, 0.215389967, 0.2953203917, 0.0882523879, 0.1543645263, 0.0926442817, 0.3555265665, 0.3608669043, 0.0598316565, 0.1853774786, 0.1311810017, 0.0994313955, 0.1366237104, -0.1818924248, -0.146488592, -0.0372809209, 0.0281632524, -0.0131140957, 0.262858659, -0.1912374645, -0.4138476253, 0.0297920927, -0.3057210743, -0.0794672072, 0.0055905147, 0.2817168832, 0.0958337784, 0.4187803268, 0.0194585584, 0.1178673506, -0.2396837324, -0.4573938251, -0.0878112167, -0.1247182265, -0.0010082311, 0.1233467832, 0.0153353186, -0.1886832416, 0.1515737325, -0.0465371571, 0.1621010602, -0.0012185768, -0.0208561029, -0.1100598425, 0.0216292907, 0.2049841285, 0.2180556655, 0.1640353203, 0.1795151085, -0.1997850239, -0.130682379, 0.0886226073, -0.1416330338, -0.1671275645, -0.1788374335, 0.2166469097, -0.0094024939, -0.3506264389, -0.0937892571, 0.2814688385, 0.1409590542, -0.2037903368, -0.1410701424, -0.0391465798, -0.1241319329, -0.0865156949, 0.1792775393, 0.5796180964, -0.1855915189, -0.1380216628, -0.1521381587, 0.0008939481, 0.5833057165, 0.3344025612, -0.0607914478, 0.0897968188, -0.170722425, 0.1476544142, 0.5017140508, -0.1436584145, -0.5796036124, 0.5436661243, -0.0396082066, 0.5637281537, 0.2707032561, 0.0225366186, 0.1742344499, 0.0431196988, 0.313529104, 0.3299024701, -0.1484592706, 0.0074822325, -0.3334669471, -0.0399836674, 0.4416950643, 0.1912285686, 0.0674290732, 0.2502861321, -0.0288742278, -0.0626677349, 0.3689779639, -0.0752563924, 0.0763451308, 0.0410080664, 0.1468882412, 0.0120370993, 0.1379382461, -0.2090770155, -0.310682714, 0.2972311378, 0.0749307722, 0.0127100674, -0.3174338341, 0.2031723857, -0.1906455308, 0.0017469627, -0.2628925443, -0.2590405643, 0.1243173257, 0.3170801699, 0.0756207108, 0.0505895875, -0.3084766865, 0.7747215033, -0.078255251, -0.0131349247, -0.4549141228, 0.2024929523, -0.0707768798, -0.2014573216, 0.0164402872, -0.1265656799, 0.0672556311, -0.0161919687, -0.2579914331, 0.3313200772, -0.2366138101, 0.2640713155, -0.1954375803, -0.1731976271, 0.2897448838, -0.3644788265, -0.0866843313, 0.2706028223, 0.1075036898, 0.125209704, -0.0176983867, 0.1480839401, 0.2070915401, 0.2361335903, 0.0434485786, 0.1143487841, 0.1961675137, -0.0816748515, -0.0686837137, -0.0850090533, 0.3240485787, -0.3548789024, 0.0467500761, -0.1989230514, -0.2722995877, 0.0823631957, 0.3586791456, -0.1403829306, -0.0492737889, 0.3303245604, -0.2885322273, -0.1639078707, 0.3145605624, 0.1940099597, 0.4723360538, 0.0815219656, 0.2573353648, -0.0455882996, -0.1886483878, -0.0735060051, 0.3051697612, 0.1374839693, 0.0314638466, 0.2464114279, 0.0300063528, 0.1635747999, -0.3229160309, -0.3497166634, -0.0566318817, 0.1123416647, -0.3201874793, 0.306302011, -0.38826859, -0.4651744664, 0.0463509336, 0.1560085416, 0.0689049438, -0.3235587776, -0.1817550063, 0.2325055152, -0.0038823313, 0.1636838913, -0.2682063282, 0.0895485729, 0.2671770155, -0.0134687945, -0.3418698907, -0.1808474958, -0.2729629874, 0.0591977872, 0.1749951094, -0.4228037596, 0.1769195795, 0.0074260007, -0.1160532683, -0.1401735991, -0.076423429, 0.3197818398, -0.1554995328, 0.1568958163, -0.2774865627, 0.1493911892, 0.2213633955, -0.2503491044, 0.1219482496, 0.0908335969, -0.1187844425, 0.2801248431, 0.0940897167, -0.0241610892, -0.0305832736, -0.3010807931, -0.3024666011, -0.6177494526, 0.0549683981, 0.0454257689, 0.2135515809, 0.1643050015, 0.0170347784, 0.0968246013, 0.3292069137, 0.0991601422, -0.114212282, -0.4199434817, 0.3747448325, -0.1670146883, -0.2868409157, -0.3248367012, -0.0681597292, 0.1972901672, 0.2589270473, -0.5295243263, 0.2950162292, -0.4081035852, 0.0848925635, -0.3834516108, -0.0974560827, -0.0261515174, 0.0762885734, -0.0349893123, -0.1878576428, 0.0707459524, -0.1169513538, 0.0990076959, 0.2066107839, 0.1086307243, 0.3698712885, 0.1008493528, 0.3327504098, 0.4812112153, -0.0195496976, 0.3407551944, 0.082891129, 0.1538007557, -0.1004334986, -0.0627885908, -0.0955621898, -0.2280800343, -0.0261197276, 0.0981990993, -0.0962127745, -0.5762300491, -0.2840516269, 0.0549149849, -0.0692367032, -0.2383105308, 0.0528838076, -0.511775136, 0.0420482606, -0.1872570366, 0.1583397985, 0.0807970166, 0.0520012863, 0.0860457644, 0.1772524714, 0.1261645257, 0.1721196771, -0.185021311, -0.0639052019, -0.4881900847, 0.1825860441, 0.1051262617, 0.4215749502, -0.1678105742, -0.1327165961, 0.0791147202, -0.0652071014, 0.3487038612, -0.2754168212, 0.003567247, 0.2673943937, 0.1421353668, -0.1415521204, 0.0917675421, -0.3209457397, 0.1368288398, 0.235954389, 0.0974201635, -0.1718239039, 0.0333400816, -0.0884195939, -0.0724961758, -0.1253028065, -0.0163991563, -0.1704963744, -0.2492375523, -0.152009964, -0.134242788, 0.2032724619, 0.1256832927, -0.0124605224, -0.0567925759, -0.0460816547, -0.0396244489, 0.2418593764, 0.2213254869, 0.1399096996, -0.072280176, 0.2290114909, 0.0671992972, 0.2844450474, 0.2292162329, 0.836432457, 0.1181946918, -0.5624260902, 0.2350820601, 0.2339563966, 0.1660992503, 0.1305397898, -0.148232609, -0.0085166721, -0.0403849594, 0.2698210478, -0.3024733663, 0.2146548331, 0.2112327665, -0.0507208817, -0.5149303675, -0.4357535839, 0.5883390903, -0.039368242, -0.0761907846, 0.7872929573, -0.1665049642, -0.3171558082, 0.4775415361, 0.0234355517, 0.7585879564, 0.0943952724, 0.2168687731, 0.2407481223, -0.3207278252, 0.5003329515, -0.2320687622, 0.3346687257, -0.1206100509, -0.3350296021, -0.0831092745, -0.1041097715, 0.1709026545, -0.147603929, -0.6302542686, 0.1709609181, -0.0596441738, -0.2528051734, 0.3353525698, 0.2742269933, -0.6082689762, -0.3062928915, -0.0675497502, 0.1388825476, -0.2213602215, 0.3239610493, 0.1382443607, -0.2202336341, -0.0515731983, -0.0843103677, -0.4702361524, 0.4758630693, -0.2765566409, 0.1624139398, -0.2390307039, -0.4760982394, 0.1513123959, 0.2664022446, -0.1421327889, -0.2257857472, -0.1582512558, 0.2350440472, 0.1860539466, 0.128023684, 0.0993071273, 0.1514580995, 0.3883590102, 0.0532772318, -0.0168129094, 0.1884423494, -0.0089801019, -0.1606287062, -0.0637812093, 0.0554574467, 0.3183139861, -0.2681806087, 0.2368578017, -0.1058510691, 0.0429251082, -0.1842529923, 0.0869722143, -0.0188314319, -0.1740541756, -0.0738878325, -0.08129704, -0.2196760625, -0.0847442299, 0.3771200478, 0.1454578936, 0.3179713786, 0.4994189143, 0.0281169843, -0.1778806895, -0.1036716029, -0.0551506244, -0.2931399345, -0.252612263, 0.0693599209, -0.2414764762, -0.1610280573, -0.2706694007, 0.0038265749, 0.0448373631, -0.103554666, -0.1137386858, -0.2993660271, -0.1906369925, -0.0266146194, -0.1242436618, 0.2199304104, -0.1722201109, 0.0222039819, 0.0031197246, 0.1290859282, -0.270683825, -0.1228595003, -0.0753692091, 0.0231177211, 0.2672106326, 0.0292674527, 0.2592337132, 0.1096690521, 0.1476223618, 0.3139047623, -0.0276747048, -0.1609539241, -0.1787950993, 0.138489455, 0.0165312476, -0.348051548, -0.1548943967, -0.05662065, 0.0126910359, -0.125136137, 0.3503144085, 0.181230098, 0.0380968302, 0.2706013322, 0.1240136698, 0.0563360825, -0.2326476574, 0.1542367488, -0.2642730176, 0.2401308864, 0.0811118633, 0.0928405821, -0.0755398721, -0.0118692657, -0.3646134436, 0.0622693747, 0.1017946154, -0.0280170571, 0.5909268856, -0.4241805971, 0.1720450372, -0.0497748405, 0.0660299286, 0.4045228958, -0.2296188772, -0.2089618146, 0.0850852206, 0.2000514269, -0.0432033539, -0.2126210332, -0.4010480046, -0.1016407683, 0.0112383589, 0.1459593624, -0.1068896204, -0.2721833587, 0.0999634638, -0.2103084773, 0.4859834313, 0.3358429968, 0.2670664489, 0.4836392403, -0.1811283231, 0.0228473805, -0.2260247022, 0.0204593837, 0.1999064386, 0.2970430553, 0.0035512666, -0.0078696832, -0.1613658667, 0.2178194076, -0.1859746873, -0.482195437, -0.0797479451, 0.1024470255, -0.1647549272, 0.3901939094, 0.1489096284, 0.1521606892, -0.2779354751, -0.0519221425, -0.0458415113, -0.0661262944, -0.0142799746, -0.096080415, 0.1068764329, -0.0128562739, -0.3279225528, 0.0976088271, 0.0123996465, 0.0633685365, -0.0198641457, 0.2808055282, -0.2884631157, -0.1185014918, -0.0822276548, 0.1043173745, 0.2999251485, -0.3544151187, 0.4440693855, 0.3661904037, -0.1568607092, 0.0282512195, 0.0700021908, 0.4816074371, 0.2853379846, -0.1766507179, 0.0946500823, 0.3374164999, -0.0436370596, -0.0402214266, 0.0442541391, 0.2830949128, 0.1793196946, 0.4566897452, 0.0887393281, -0.1485419422, 0.1045718119, 0.0814351737, 0.2538890839, -0.2799384296, 0.4623198807, -0.1195058972, 0.0366923138, 0.0272421893, -0.3365718424, -0.5624158978, -0.0282046329, 0.0348961949, -0.2285001576, 0.0745235756, -0.0081122555, 0.0628783256, 0.1139546707, 0.4926685393, 0.3248410225, -0.0188453235, -0.2245095521, -0.1508785933, -0.235583514, 0.2332020253, -0.0674795657, -0.1231484041, 0.1752853394, 0.2219228297, -0.0048415069, 0.1680491567, -0.1584448814, 0.0204550214, -0.2672839463, 0.1405724436, -0.3995800018, -0.3515672684, 0.1919635981, 0.1735794991, -0.0483116023, -0.576480031, 0.1881390065, -0.1502387971, 0.1608176678, 0.0926132202, -0.241848141, 0.101145193, -0.2756578326, 0.5297338963, 0.2331105173, 0.3792004883, -0.184295252, -0.4119567871, -0.0992468074, -0.3762306273, -0.2749142647, -0.0155847622, 0.1083334535, 0.5696322322, -0.1493341029, -0.2373841256, -0.3574708402, 0.3262623847, 0.0608894229, -0.2656728923, -0.2735387981, 0.1733704358, -0.1194598079, 0.2131261081, 0.3050509691, 0.380345583, -0.0287131406, 0.1639950573, -0.2235154659, -0.4333209693, 0.5773110986, -0.3461063206, -0.2659671307, 0.2418412119, 0.0638139024, 0.3264979422, 0.2410199344, -0.4596662819, 0.0893656164, 0.3556547463, -0.2354129702, -0.1511856616, 0.1421462744, 0.2259705812, -0.0607201755, -0.0850398242, 0.45531106, 0.2423961759, -0.249204129, 0.1750813872, -0.1786384881 ]
https://github.com/huggingface/datasets/issues/2918
`Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming
Code to reproduce the bug: `ClientPayloadError: 400, message='Can not decode content-encoding: gzip'` ```python In [1]: import fsspec In [2]: import json In [3]: with fsspec.open('https://raw.githubusercontent.com/allenai/scitldr/master/SciTLDR-Data/SciTLDR-FullText/test.jsonl', encoding="utf-8") as f: ...: for row in f: ...: data = json.loads(row) ...: --------------------------------------------------------------------------- ClientPayloadError Traceback (most recent call last) ```
## Describe the bug Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`: ```python ClientPayloadError: 400, message='Can not decode content-encoding: gzip' ``` cc @lhoestq ## Steps to reproduce the bug ```python from datasets import load_dataset iter_dset = iter( load_dataset("scitldr", name="FullText", split="test", streaming=True) ) next(iter_dset) ``` ## Expected results Returns the first sample of the dataset ## Actual results Calling `__next__` crashes with the following Traceback: ```python ----> 1 next(dset_iter) ~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self) 339 340 def __iter__(self): --> 341 for key, example in self._iter(): 342 if self.features: 343 # we encode the example for ClassLabel feature types for example ~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in _iter(self) 336 else: 337 ex_iterable = self._ex_iterable --> 338 yield from ex_iterable 339 340 def __iter__(self): ~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self) 76 77 def __iter__(self): ---> 78 for key, example in self.generate_examples_fn(**self.kwargs): 79 yield key, example 80 ~\.cache\huggingface\modules\datasets_modules\datasets\scitldr\72d6e2195786c57e1d343066fb2cc4f93ea39c5e381e53e6ae7c44bbfd1f05ef\scitldr.py in _generate_examples(self, filepath, split) 162 163 with open(filepath, encoding="utf-8") as f: --> 164 for id_, row in enumerate(f): 165 data = json.loads(row) 166 if self.config.name == "AIC": ~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in read(self, length) 496 else: 497 length = min(self.size - self.loc, length) --> 498 return super().read(length) 499 500 async def async_fetch_all(self): ~\miniconda3\envs\datasets\lib\site-packages\fsspec\spec.py in read(self, length) 1481 # don't even bother calling fetch 1482 return b"" -> 1483 out = self.cache._fetch(self.loc, self.loc + length) 1484 self.loc += len(out) 1485 return out ~\miniconda3\envs\datasets\lib\site-packages\fsspec\caching.py in _fetch(self, start, end) 378 elif start < self.start: 379 if self.end - end > self.blocksize: --> 380 self.cache = self.fetcher(start, bend) 381 self.start = start 382 else: ~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in wrapper(*args, **kwargs) 86 def wrapper(*args, **kwargs): 87 self = obj or args[0] ---> 88 return sync(self.loop, func, *args, **kwargs) 89 90 return wrapper ~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in sync(loop, func, timeout, *args, **kwargs) 67 raise FSTimeoutError 68 if isinstance(result[0], BaseException): ---> 69 raise result[0] 70 return result[0] 71 ~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in _runner(event, coro, result, timeout) 23 coro = asyncio.wait_for(coro, timeout=timeout) 24 try: ---> 25 result[0] = await coro 26 except Exception as ex: 27 result[0] = ex ~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in async_fetch_range(self, start, end) 538 if r.status == 206: 539 # partial content, as expected --> 540 out = await r.read() 541 elif "Content-Length" in r.headers: 542 cl = int(r.headers["Content-Length"]) ~\miniconda3\envs\datasets\lib\site-packages\aiohttp\client_reqrep.py in read(self) 1030 if self._body is None: 1031 try: -> 1032 self._body = await self.content.read() 1033 for trace in self._traces: 1034 await trace.send_response_chunk_received( ~\miniconda3\envs\datasets\lib\site-packages\aiohttp\streams.py in read(self, n) 342 async def read(self, n: int = -1) -> bytes: 343 if self._exception is not None: --> 344 raise self._exception 345 346 # migration problem; with DataQueue you have to catch ClientPayloadError: 400, message='Can not decode content-encoding: gzip' ``` ## Environment info - `datasets` version: 1.12.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.8.5 - PyArrow version: 2.0.0 - aiohttp version: 3.7.4.post0
46
`Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming ## Describe the bug Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`: ```python ClientPayloadError: 400, message='Can not decode content-encoding: gzip' ``` cc @lhoestq ## Steps to reproduce the bug ```python from datasets import load_dataset iter_dset = iter( load_dataset("scitldr", name="FullText", split="test", streaming=True) ) next(iter_dset) ``` ## Expected results Returns the first sample of the dataset ## Actual results Calling `__next__` crashes with the following Traceback: ```python ----> 1 next(dset_iter) ~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self) 339 340 def __iter__(self): --> 341 for key, example in self._iter(): 342 if self.features: 343 # we encode the example for ClassLabel feature types for example ~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in _iter(self) 336 else: 337 ex_iterable = self._ex_iterable --> 338 yield from ex_iterable 339 340 def __iter__(self): ~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self) 76 77 def __iter__(self): ---> 78 for key, example in self.generate_examples_fn(**self.kwargs): 79 yield key, example 80 ~\.cache\huggingface\modules\datasets_modules\datasets\scitldr\72d6e2195786c57e1d343066fb2cc4f93ea39c5e381e53e6ae7c44bbfd1f05ef\scitldr.py in _generate_examples(self, filepath, split) 162 163 with open(filepath, encoding="utf-8") as f: --> 164 for id_, row in enumerate(f): 165 data = json.loads(row) 166 if self.config.name == "AIC": ~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in read(self, length) 496 else: 497 length = min(self.size - self.loc, length) --> 498 return super().read(length) 499 500 async def async_fetch_all(self): ~\miniconda3\envs\datasets\lib\site-packages\fsspec\spec.py in read(self, length) 1481 # don't even bother calling fetch 1482 return b"" -> 1483 out = self.cache._fetch(self.loc, self.loc + length) 1484 self.loc += len(out) 1485 return out ~\miniconda3\envs\datasets\lib\site-packages\fsspec\caching.py in _fetch(self, start, end) 378 elif start < self.start: 379 if self.end - end > self.blocksize: --> 380 self.cache = self.fetcher(start, bend) 381 self.start = start 382 else: ~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in wrapper(*args, **kwargs) 86 def wrapper(*args, **kwargs): 87 self = obj or args[0] ---> 88 return sync(self.loop, func, *args, **kwargs) 89 90 return wrapper ~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in sync(loop, func, timeout, *args, **kwargs) 67 raise FSTimeoutError 68 if isinstance(result[0], BaseException): ---> 69 raise result[0] 70 return result[0] 71 ~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in _runner(event, coro, result, timeout) 23 coro = asyncio.wait_for(coro, timeout=timeout) 24 try: ---> 25 result[0] = await coro 26 except Exception as ex: 27 result[0] = ex ~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in async_fetch_range(self, start, end) 538 if r.status == 206: 539 # partial content, as expected --> 540 out = await r.read() 541 elif "Content-Length" in r.headers: 542 cl = int(r.headers["Content-Length"]) ~\miniconda3\envs\datasets\lib\site-packages\aiohttp\client_reqrep.py in read(self) 1030 if self._body is None: 1031 try: -> 1032 self._body = await self.content.read() 1033 for trace in self._traces: 1034 await trace.send_response_chunk_received( ~\miniconda3\envs\datasets\lib\site-packages\aiohttp\streams.py in read(self, n) 342 async def read(self, n: int = -1) -> bytes: 343 if self._exception is not None: --> 344 raise self._exception 345 346 # migration problem; with DataQueue you have to catch ClientPayloadError: 400, message='Can not decode content-encoding: gzip' ``` ## Environment info - `datasets` version: 1.12.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.8.5 - PyArrow version: 2.0.0 - aiohttp version: 3.7.4.post0 Code to reproduce the bug: `ClientPayloadError: 400, message='Can not decode content-encoding: gzip'` ```python In [1]: import fsspec In [2]: import json In [3]: with fsspec.open('https://raw.githubusercontent.com/allenai/scitldr/master/SciTLDR-Data/SciTLDR-FullText/test.jsonl', encoding="utf-8") as f: ...: for row in f: ...: data = json.loads(row) ...: --------------------------------------------------------------------------- ClientPayloadError Traceback (most recent call last) ```
[ -0.3864652812, -0.2204957455, 0.0894813165, 0.4387415349, 0.2157086134, 0.1229229122, -0.0369101539, 0.3093882799, 0.2422775328, 0.0955026373, -0.2264311761, 0.4261536002, -0.0641756877, 0.3035327792, -0.0094654057, -0.2584786713, -0.0045060921, 0.2337655127, -0.1049250886, 0.1268760264, -0.0005556306, 0.1941259056, -0.2469931841, -0.0304233823, 0.0522285365, -0.1081046611, 0.0124065261, 0.2805253863, -0.059583243, -0.4462363422, 0.1259049624, -0.0615482517, 0.4121141732, 0.3375741839, -0.0001145032, 0.2734483778, 0.4721427262, -0.1227841005, -0.4853440225, -0.2121149004, -0.218665719, 0.0961271524, 0.0428345352, -0.1566341817, -0.0091345869, 0.0711133331, -0.0400046185, -0.7192984819, 0.3178500533, 0.3456359804, 0.1778500229, 0.0426006429, -0.0489487238, 0.0268223863, 0.0688386783, -0.2986646891, -0.0920066237, 0.1218173951, 0.2367273569, 0.2287404835, -0.359573245, 0.3845903277, -0.0658884048, 0.0601840951, 0.0944148228, 0.0967238322, -0.1749501675, -0.4655051231, -0.0073944977, 0.1884141415, 0.6776787043, -0.2555166781, -0.4161978662, -0.2319881767, -0.0021713183, -0.6144573689, 0.1465310603, 0.1489273459, -0.4673651159, 0.1280597448, 0.2459630817, -0.0087530883, -0.327994585, -0.0458728224, -0.246799171, 0.3882223368, -0.0767857283, -0.0237270929, 0.0272943433, -0.0866289064, 0.4627741277, -0.2110346556, -0.28459391, -0.0639790371, -0.4397552311, -0.0420655161, -0.0765123144, -0.094109349, 0.1681466401, 0.215389967, 0.2953203917, 0.0882523879, 0.1543645263, 0.0926442817, 0.3555265665, 0.3608669043, 0.0598316565, 0.1853774786, 0.1311810017, 0.0994313955, 0.1366237104, -0.1818924248, -0.146488592, -0.0372809209, 0.0281632524, -0.0131140957, 0.262858659, -0.1912374645, -0.4138476253, 0.0297920927, -0.3057210743, -0.0794672072, 0.0055905147, 0.2817168832, 0.0958337784, 0.4187803268, 0.0194585584, 0.1178673506, -0.2396837324, -0.4573938251, -0.0878112167, -0.1247182265, -0.0010082311, 0.1233467832, 0.0153353186, -0.1886832416, 0.1515737325, -0.0465371571, 0.1621010602, -0.0012185768, -0.0208561029, -0.1100598425, 0.0216292907, 0.2049841285, 0.2180556655, 0.1640353203, 0.1795151085, -0.1997850239, -0.130682379, 0.0886226073, -0.1416330338, -0.1671275645, -0.1788374335, 0.2166469097, -0.0094024939, -0.3506264389, -0.0937892571, 0.2814688385, 0.1409590542, -0.2037903368, -0.1410701424, -0.0391465798, -0.1241319329, -0.0865156949, 0.1792775393, 0.5796180964, -0.1855915189, -0.1380216628, -0.1521381587, 0.0008939481, 0.5833057165, 0.3344025612, -0.0607914478, 0.0897968188, -0.170722425, 0.1476544142, 0.5017140508, -0.1436584145, -0.5796036124, 0.5436661243, -0.0396082066, 0.5637281537, 0.2707032561, 0.0225366186, 0.1742344499, 0.0431196988, 0.313529104, 0.3299024701, -0.1484592706, 0.0074822325, -0.3334669471, -0.0399836674, 0.4416950643, 0.1912285686, 0.0674290732, 0.2502861321, -0.0288742278, -0.0626677349, 0.3689779639, -0.0752563924, 0.0763451308, 0.0410080664, 0.1468882412, 0.0120370993, 0.1379382461, -0.2090770155, -0.310682714, 0.2972311378, 0.0749307722, 0.0127100674, -0.3174338341, 0.2031723857, -0.1906455308, 0.0017469627, -0.2628925443, -0.2590405643, 0.1243173257, 0.3170801699, 0.0756207108, 0.0505895875, -0.3084766865, 0.7747215033, -0.078255251, -0.0131349247, -0.4549141228, 0.2024929523, -0.0707768798, -0.2014573216, 0.0164402872, -0.1265656799, 0.0672556311, -0.0161919687, -0.2579914331, 0.3313200772, -0.2366138101, 0.2640713155, -0.1954375803, -0.1731976271, 0.2897448838, -0.3644788265, -0.0866843313, 0.2706028223, 0.1075036898, 0.125209704, -0.0176983867, 0.1480839401, 0.2070915401, 0.2361335903, 0.0434485786, 0.1143487841, 0.1961675137, -0.0816748515, -0.0686837137, -0.0850090533, 0.3240485787, -0.3548789024, 0.0467500761, -0.1989230514, -0.2722995877, 0.0823631957, 0.3586791456, -0.1403829306, -0.0492737889, 0.3303245604, -0.2885322273, -0.1639078707, 0.3145605624, 0.1940099597, 0.4723360538, 0.0815219656, 0.2573353648, -0.0455882996, -0.1886483878, -0.0735060051, 0.3051697612, 0.1374839693, 0.0314638466, 0.2464114279, 0.0300063528, 0.1635747999, -0.3229160309, -0.3497166634, -0.0566318817, 0.1123416647, -0.3201874793, 0.306302011, -0.38826859, -0.4651744664, 0.0463509336, 0.1560085416, 0.0689049438, -0.3235587776, -0.1817550063, 0.2325055152, -0.0038823313, 0.1636838913, -0.2682063282, 0.0895485729, 0.2671770155, -0.0134687945, -0.3418698907, -0.1808474958, -0.2729629874, 0.0591977872, 0.1749951094, -0.4228037596, 0.1769195795, 0.0074260007, -0.1160532683, -0.1401735991, -0.076423429, 0.3197818398, -0.1554995328, 0.1568958163, -0.2774865627, 0.1493911892, 0.2213633955, -0.2503491044, 0.1219482496, 0.0908335969, -0.1187844425, 0.2801248431, 0.0940897167, -0.0241610892, -0.0305832736, -0.3010807931, -0.3024666011, -0.6177494526, 0.0549683981, 0.0454257689, 0.2135515809, 0.1643050015, 0.0170347784, 0.0968246013, 0.3292069137, 0.0991601422, -0.114212282, -0.4199434817, 0.3747448325, -0.1670146883, -0.2868409157, -0.3248367012, -0.0681597292, 0.1972901672, 0.2589270473, -0.5295243263, 0.2950162292, -0.4081035852, 0.0848925635, -0.3834516108, -0.0974560827, -0.0261515174, 0.0762885734, -0.0349893123, -0.1878576428, 0.0707459524, -0.1169513538, 0.0990076959, 0.2066107839, 0.1086307243, 0.3698712885, 0.1008493528, 0.3327504098, 0.4812112153, -0.0195496976, 0.3407551944, 0.082891129, 0.1538007557, -0.1004334986, -0.0627885908, -0.0955621898, -0.2280800343, -0.0261197276, 0.0981990993, -0.0962127745, -0.5762300491, -0.2840516269, 0.0549149849, -0.0692367032, -0.2383105308, 0.0528838076, -0.511775136, 0.0420482606, -0.1872570366, 0.1583397985, 0.0807970166, 0.0520012863, 0.0860457644, 0.1772524714, 0.1261645257, 0.1721196771, -0.185021311, -0.0639052019, -0.4881900847, 0.1825860441, 0.1051262617, 0.4215749502, -0.1678105742, -0.1327165961, 0.0791147202, -0.0652071014, 0.3487038612, -0.2754168212, 0.003567247, 0.2673943937, 0.1421353668, -0.1415521204, 0.0917675421, -0.3209457397, 0.1368288398, 0.235954389, 0.0974201635, -0.1718239039, 0.0333400816, -0.0884195939, -0.0724961758, -0.1253028065, -0.0163991563, -0.1704963744, -0.2492375523, -0.152009964, -0.134242788, 0.2032724619, 0.1256832927, -0.0124605224, -0.0567925759, -0.0460816547, -0.0396244489, 0.2418593764, 0.2213254869, 0.1399096996, -0.072280176, 0.2290114909, 0.0671992972, 0.2844450474, 0.2292162329, 0.836432457, 0.1181946918, -0.5624260902, 0.2350820601, 0.2339563966, 0.1660992503, 0.1305397898, -0.148232609, -0.0085166721, -0.0403849594, 0.2698210478, -0.3024733663, 0.2146548331, 0.2112327665, -0.0507208817, -0.5149303675, -0.4357535839, 0.5883390903, -0.039368242, -0.0761907846, 0.7872929573, -0.1665049642, -0.3171558082, 0.4775415361, 0.0234355517, 0.7585879564, 0.0943952724, 0.2168687731, 0.2407481223, -0.3207278252, 0.5003329515, -0.2320687622, 0.3346687257, -0.1206100509, -0.3350296021, -0.0831092745, -0.1041097715, 0.1709026545, -0.147603929, -0.6302542686, 0.1709609181, -0.0596441738, -0.2528051734, 0.3353525698, 0.2742269933, -0.6082689762, -0.3062928915, -0.0675497502, 0.1388825476, -0.2213602215, 0.3239610493, 0.1382443607, -0.2202336341, -0.0515731983, -0.0843103677, -0.4702361524, 0.4758630693, -0.2765566409, 0.1624139398, -0.2390307039, -0.4760982394, 0.1513123959, 0.2664022446, -0.1421327889, -0.2257857472, -0.1582512558, 0.2350440472, 0.1860539466, 0.128023684, 0.0993071273, 0.1514580995, 0.3883590102, 0.0532772318, -0.0168129094, 0.1884423494, -0.0089801019, -0.1606287062, -0.0637812093, 0.0554574467, 0.3183139861, -0.2681806087, 0.2368578017, -0.1058510691, 0.0429251082, -0.1842529923, 0.0869722143, -0.0188314319, -0.1740541756, -0.0738878325, -0.08129704, -0.2196760625, -0.0847442299, 0.3771200478, 0.1454578936, 0.3179713786, 0.4994189143, 0.0281169843, -0.1778806895, -0.1036716029, -0.0551506244, -0.2931399345, -0.252612263, 0.0693599209, -0.2414764762, -0.1610280573, -0.2706694007, 0.0038265749, 0.0448373631, -0.103554666, -0.1137386858, -0.2993660271, -0.1906369925, -0.0266146194, -0.1242436618, 0.2199304104, -0.1722201109, 0.0222039819, 0.0031197246, 0.1290859282, -0.270683825, -0.1228595003, -0.0753692091, 0.0231177211, 0.2672106326, 0.0292674527, 0.2592337132, 0.1096690521, 0.1476223618, 0.3139047623, -0.0276747048, -0.1609539241, -0.1787950993, 0.138489455, 0.0165312476, -0.348051548, -0.1548943967, -0.05662065, 0.0126910359, -0.125136137, 0.3503144085, 0.181230098, 0.0380968302, 0.2706013322, 0.1240136698, 0.0563360825, -0.2326476574, 0.1542367488, -0.2642730176, 0.2401308864, 0.0811118633, 0.0928405821, -0.0755398721, -0.0118692657, -0.3646134436, 0.0622693747, 0.1017946154, -0.0280170571, 0.5909268856, -0.4241805971, 0.1720450372, -0.0497748405, 0.0660299286, 0.4045228958, -0.2296188772, -0.2089618146, 0.0850852206, 0.2000514269, -0.0432033539, -0.2126210332, -0.4010480046, -0.1016407683, 0.0112383589, 0.1459593624, -0.1068896204, -0.2721833587, 0.0999634638, -0.2103084773, 0.4859834313, 0.3358429968, 0.2670664489, 0.4836392403, -0.1811283231, 0.0228473805, -0.2260247022, 0.0204593837, 0.1999064386, 0.2970430553, 0.0035512666, -0.0078696832, -0.1613658667, 0.2178194076, -0.1859746873, -0.482195437, -0.0797479451, 0.1024470255, -0.1647549272, 0.3901939094, 0.1489096284, 0.1521606892, -0.2779354751, -0.0519221425, -0.0458415113, -0.0661262944, -0.0142799746, -0.096080415, 0.1068764329, -0.0128562739, -0.3279225528, 0.0976088271, 0.0123996465, 0.0633685365, -0.0198641457, 0.2808055282, -0.2884631157, -0.1185014918, -0.0822276548, 0.1043173745, 0.2999251485, -0.3544151187, 0.4440693855, 0.3661904037, -0.1568607092, 0.0282512195, 0.0700021908, 0.4816074371, 0.2853379846, -0.1766507179, 0.0946500823, 0.3374164999, -0.0436370596, -0.0402214266, 0.0442541391, 0.2830949128, 0.1793196946, 0.4566897452, 0.0887393281, -0.1485419422, 0.1045718119, 0.0814351737, 0.2538890839, -0.2799384296, 0.4623198807, -0.1195058972, 0.0366923138, 0.0272421893, -0.3365718424, -0.5624158978, -0.0282046329, 0.0348961949, -0.2285001576, 0.0745235756, -0.0081122555, 0.0628783256, 0.1139546707, 0.4926685393, 0.3248410225, -0.0188453235, -0.2245095521, -0.1508785933, -0.235583514, 0.2332020253, -0.0674795657, -0.1231484041, 0.1752853394, 0.2219228297, -0.0048415069, 0.1680491567, -0.1584448814, 0.0204550214, -0.2672839463, 0.1405724436, -0.3995800018, -0.3515672684, 0.1919635981, 0.1735794991, -0.0483116023, -0.576480031, 0.1881390065, -0.1502387971, 0.1608176678, 0.0926132202, -0.241848141, 0.101145193, -0.2756578326, 0.5297338963, 0.2331105173, 0.3792004883, -0.184295252, -0.4119567871, -0.0992468074, -0.3762306273, -0.2749142647, -0.0155847622, 0.1083334535, 0.5696322322, -0.1493341029, -0.2373841256, -0.3574708402, 0.3262623847, 0.0608894229, -0.2656728923, -0.2735387981, 0.1733704358, -0.1194598079, 0.2131261081, 0.3050509691, 0.380345583, -0.0287131406, 0.1639950573, -0.2235154659, -0.4333209693, 0.5773110986, -0.3461063206, -0.2659671307, 0.2418412119, 0.0638139024, 0.3264979422, 0.2410199344, -0.4596662819, 0.0893656164, 0.3556547463, -0.2354129702, -0.1511856616, 0.1421462744, 0.2259705812, -0.0607201755, -0.0850398242, 0.45531106, 0.2423961759, -0.249204129, 0.1750813872, -0.1786384881 ]
https://github.com/huggingface/datasets/issues/2918
`Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming
Thanks for investigating @albertvillanova ! πŸ€—
## Describe the bug Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`: ```python ClientPayloadError: 400, message='Can not decode content-encoding: gzip' ``` cc @lhoestq ## Steps to reproduce the bug ```python from datasets import load_dataset iter_dset = iter( load_dataset("scitldr", name="FullText", split="test", streaming=True) ) next(iter_dset) ``` ## Expected results Returns the first sample of the dataset ## Actual results Calling `__next__` crashes with the following Traceback: ```python ----> 1 next(dset_iter) ~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self) 339 340 def __iter__(self): --> 341 for key, example in self._iter(): 342 if self.features: 343 # we encode the example for ClassLabel feature types for example ~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in _iter(self) 336 else: 337 ex_iterable = self._ex_iterable --> 338 yield from ex_iterable 339 340 def __iter__(self): ~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self) 76 77 def __iter__(self): ---> 78 for key, example in self.generate_examples_fn(**self.kwargs): 79 yield key, example 80 ~\.cache\huggingface\modules\datasets_modules\datasets\scitldr\72d6e2195786c57e1d343066fb2cc4f93ea39c5e381e53e6ae7c44bbfd1f05ef\scitldr.py in _generate_examples(self, filepath, split) 162 163 with open(filepath, encoding="utf-8") as f: --> 164 for id_, row in enumerate(f): 165 data = json.loads(row) 166 if self.config.name == "AIC": ~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in read(self, length) 496 else: 497 length = min(self.size - self.loc, length) --> 498 return super().read(length) 499 500 async def async_fetch_all(self): ~\miniconda3\envs\datasets\lib\site-packages\fsspec\spec.py in read(self, length) 1481 # don't even bother calling fetch 1482 return b"" -> 1483 out = self.cache._fetch(self.loc, self.loc + length) 1484 self.loc += len(out) 1485 return out ~\miniconda3\envs\datasets\lib\site-packages\fsspec\caching.py in _fetch(self, start, end) 378 elif start < self.start: 379 if self.end - end > self.blocksize: --> 380 self.cache = self.fetcher(start, bend) 381 self.start = start 382 else: ~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in wrapper(*args, **kwargs) 86 def wrapper(*args, **kwargs): 87 self = obj or args[0] ---> 88 return sync(self.loop, func, *args, **kwargs) 89 90 return wrapper ~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in sync(loop, func, timeout, *args, **kwargs) 67 raise FSTimeoutError 68 if isinstance(result[0], BaseException): ---> 69 raise result[0] 70 return result[0] 71 ~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in _runner(event, coro, result, timeout) 23 coro = asyncio.wait_for(coro, timeout=timeout) 24 try: ---> 25 result[0] = await coro 26 except Exception as ex: 27 result[0] = ex ~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in async_fetch_range(self, start, end) 538 if r.status == 206: 539 # partial content, as expected --> 540 out = await r.read() 541 elif "Content-Length" in r.headers: 542 cl = int(r.headers["Content-Length"]) ~\miniconda3\envs\datasets\lib\site-packages\aiohttp\client_reqrep.py in read(self) 1030 if self._body is None: 1031 try: -> 1032 self._body = await self.content.read() 1033 for trace in self._traces: 1034 await trace.send_response_chunk_received( ~\miniconda3\envs\datasets\lib\site-packages\aiohttp\streams.py in read(self, n) 342 async def read(self, n: int = -1) -> bytes: 343 if self._exception is not None: --> 344 raise self._exception 345 346 # migration problem; with DataQueue you have to catch ClientPayloadError: 400, message='Can not decode content-encoding: gzip' ``` ## Environment info - `datasets` version: 1.12.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.8.5 - PyArrow version: 2.0.0 - aiohttp version: 3.7.4.post0
6
`Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming ## Describe the bug Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`: ```python ClientPayloadError: 400, message='Can not decode content-encoding: gzip' ``` cc @lhoestq ## Steps to reproduce the bug ```python from datasets import load_dataset iter_dset = iter( load_dataset("scitldr", name="FullText", split="test", streaming=True) ) next(iter_dset) ``` ## Expected results Returns the first sample of the dataset ## Actual results Calling `__next__` crashes with the following Traceback: ```python ----> 1 next(dset_iter) ~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self) 339 340 def __iter__(self): --> 341 for key, example in self._iter(): 342 if self.features: 343 # we encode the example for ClassLabel feature types for example ~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in _iter(self) 336 else: 337 ex_iterable = self._ex_iterable --> 338 yield from ex_iterable 339 340 def __iter__(self): ~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self) 76 77 def __iter__(self): ---> 78 for key, example in self.generate_examples_fn(**self.kwargs): 79 yield key, example 80 ~\.cache\huggingface\modules\datasets_modules\datasets\scitldr\72d6e2195786c57e1d343066fb2cc4f93ea39c5e381e53e6ae7c44bbfd1f05ef\scitldr.py in _generate_examples(self, filepath, split) 162 163 with open(filepath, encoding="utf-8") as f: --> 164 for id_, row in enumerate(f): 165 data = json.loads(row) 166 if self.config.name == "AIC": ~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in read(self, length) 496 else: 497 length = min(self.size - self.loc, length) --> 498 return super().read(length) 499 500 async def async_fetch_all(self): ~\miniconda3\envs\datasets\lib\site-packages\fsspec\spec.py in read(self, length) 1481 # don't even bother calling fetch 1482 return b"" -> 1483 out = self.cache._fetch(self.loc, self.loc + length) 1484 self.loc += len(out) 1485 return out ~\miniconda3\envs\datasets\lib\site-packages\fsspec\caching.py in _fetch(self, start, end) 378 elif start < self.start: 379 if self.end - end > self.blocksize: --> 380 self.cache = self.fetcher(start, bend) 381 self.start = start 382 else: ~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in wrapper(*args, **kwargs) 86 def wrapper(*args, **kwargs): 87 self = obj or args[0] ---> 88 return sync(self.loop, func, *args, **kwargs) 89 90 return wrapper ~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in sync(loop, func, timeout, *args, **kwargs) 67 raise FSTimeoutError 68 if isinstance(result[0], BaseException): ---> 69 raise result[0] 70 return result[0] 71 ~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in _runner(event, coro, result, timeout) 23 coro = asyncio.wait_for(coro, timeout=timeout) 24 try: ---> 25 result[0] = await coro 26 except Exception as ex: 27 result[0] = ex ~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in async_fetch_range(self, start, end) 538 if r.status == 206: 539 # partial content, as expected --> 540 out = await r.read() 541 elif "Content-Length" in r.headers: 542 cl = int(r.headers["Content-Length"]) ~\miniconda3\envs\datasets\lib\site-packages\aiohttp\client_reqrep.py in read(self) 1030 if self._body is None: 1031 try: -> 1032 self._body = await self.content.read() 1033 for trace in self._traces: 1034 await trace.send_response_chunk_received( ~\miniconda3\envs\datasets\lib\site-packages\aiohttp\streams.py in read(self, n) 342 async def read(self, n: int = -1) -> bytes: 343 if self._exception is not None: --> 344 raise self._exception 345 346 # migration problem; with DataQueue you have to catch ClientPayloadError: 400, message='Can not decode content-encoding: gzip' ``` ## Environment info - `datasets` version: 1.12.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.8.5 - PyArrow version: 2.0.0 - aiohttp version: 3.7.4.post0 Thanks for investigating @albertvillanova ! πŸ€—
[ -0.3864652812, -0.2204957455, 0.0894813165, 0.4387415349, 0.2157086134, 0.1229229122, -0.0369101539, 0.3093882799, 0.2422775328, 0.0955026373, -0.2264311761, 0.4261536002, -0.0641756877, 0.3035327792, -0.0094654057, -0.2584786713, -0.0045060921, 0.2337655127, -0.1049250886, 0.1268760264, -0.0005556306, 0.1941259056, -0.2469931841, -0.0304233823, 0.0522285365, -0.1081046611, 0.0124065261, 0.2805253863, -0.059583243, -0.4462363422, 0.1259049624, -0.0615482517, 0.4121141732, 0.3375741839, -0.0001145032, 0.2734483778, 0.4721427262, -0.1227841005, -0.4853440225, -0.2121149004, -0.218665719, 0.0961271524, 0.0428345352, -0.1566341817, -0.0091345869, 0.0711133331, -0.0400046185, -0.7192984819, 0.3178500533, 0.3456359804, 0.1778500229, 0.0426006429, -0.0489487238, 0.0268223863, 0.0688386783, -0.2986646891, -0.0920066237, 0.1218173951, 0.2367273569, 0.2287404835, -0.359573245, 0.3845903277, -0.0658884048, 0.0601840951, 0.0944148228, 0.0967238322, -0.1749501675, -0.4655051231, -0.0073944977, 0.1884141415, 0.6776787043, -0.2555166781, -0.4161978662, -0.2319881767, -0.0021713183, -0.6144573689, 0.1465310603, 0.1489273459, -0.4673651159, 0.1280597448, 0.2459630817, -0.0087530883, -0.327994585, -0.0458728224, -0.246799171, 0.3882223368, -0.0767857283, -0.0237270929, 0.0272943433, -0.0866289064, 0.4627741277, -0.2110346556, -0.28459391, -0.0639790371, -0.4397552311, -0.0420655161, -0.0765123144, -0.094109349, 0.1681466401, 0.215389967, 0.2953203917, 0.0882523879, 0.1543645263, 0.0926442817, 0.3555265665, 0.3608669043, 0.0598316565, 0.1853774786, 0.1311810017, 0.0994313955, 0.1366237104, -0.1818924248, -0.146488592, -0.0372809209, 0.0281632524, -0.0131140957, 0.262858659, -0.1912374645, -0.4138476253, 0.0297920927, -0.3057210743, -0.0794672072, 0.0055905147, 0.2817168832, 0.0958337784, 0.4187803268, 0.0194585584, 0.1178673506, -0.2396837324, -0.4573938251, -0.0878112167, -0.1247182265, -0.0010082311, 0.1233467832, 0.0153353186, -0.1886832416, 0.1515737325, -0.0465371571, 0.1621010602, -0.0012185768, -0.0208561029, -0.1100598425, 0.0216292907, 0.2049841285, 0.2180556655, 0.1640353203, 0.1795151085, -0.1997850239, -0.130682379, 0.0886226073, -0.1416330338, -0.1671275645, -0.1788374335, 0.2166469097, -0.0094024939, -0.3506264389, -0.0937892571, 0.2814688385, 0.1409590542, -0.2037903368, -0.1410701424, -0.0391465798, -0.1241319329, -0.0865156949, 0.1792775393, 0.5796180964, -0.1855915189, -0.1380216628, -0.1521381587, 0.0008939481, 0.5833057165, 0.3344025612, -0.0607914478, 0.0897968188, -0.170722425, 0.1476544142, 0.5017140508, -0.1436584145, -0.5796036124, 0.5436661243, -0.0396082066, 0.5637281537, 0.2707032561, 0.0225366186, 0.1742344499, 0.0431196988, 0.313529104, 0.3299024701, -0.1484592706, 0.0074822325, -0.3334669471, -0.0399836674, 0.4416950643, 0.1912285686, 0.0674290732, 0.2502861321, -0.0288742278, -0.0626677349, 0.3689779639, -0.0752563924, 0.0763451308, 0.0410080664, 0.1468882412, 0.0120370993, 0.1379382461, -0.2090770155, -0.310682714, 0.2972311378, 0.0749307722, 0.0127100674, -0.3174338341, 0.2031723857, -0.1906455308, 0.0017469627, -0.2628925443, -0.2590405643, 0.1243173257, 0.3170801699, 0.0756207108, 0.0505895875, -0.3084766865, 0.7747215033, -0.078255251, -0.0131349247, -0.4549141228, 0.2024929523, -0.0707768798, -0.2014573216, 0.0164402872, -0.1265656799, 0.0672556311, -0.0161919687, -0.2579914331, 0.3313200772, -0.2366138101, 0.2640713155, -0.1954375803, -0.1731976271, 0.2897448838, -0.3644788265, -0.0866843313, 0.2706028223, 0.1075036898, 0.125209704, -0.0176983867, 0.1480839401, 0.2070915401, 0.2361335903, 0.0434485786, 0.1143487841, 0.1961675137, -0.0816748515, -0.0686837137, -0.0850090533, 0.3240485787, -0.3548789024, 0.0467500761, -0.1989230514, -0.2722995877, 0.0823631957, 0.3586791456, -0.1403829306, -0.0492737889, 0.3303245604, -0.2885322273, -0.1639078707, 0.3145605624, 0.1940099597, 0.4723360538, 0.0815219656, 0.2573353648, -0.0455882996, -0.1886483878, -0.0735060051, 0.3051697612, 0.1374839693, 0.0314638466, 0.2464114279, 0.0300063528, 0.1635747999, -0.3229160309, -0.3497166634, -0.0566318817, 0.1123416647, -0.3201874793, 0.306302011, -0.38826859, -0.4651744664, 0.0463509336, 0.1560085416, 0.0689049438, -0.3235587776, -0.1817550063, 0.2325055152, -0.0038823313, 0.1636838913, -0.2682063282, 0.0895485729, 0.2671770155, -0.0134687945, -0.3418698907, -0.1808474958, -0.2729629874, 0.0591977872, 0.1749951094, -0.4228037596, 0.1769195795, 0.0074260007, -0.1160532683, -0.1401735991, -0.076423429, 0.3197818398, -0.1554995328, 0.1568958163, -0.2774865627, 0.1493911892, 0.2213633955, -0.2503491044, 0.1219482496, 0.0908335969, -0.1187844425, 0.2801248431, 0.0940897167, -0.0241610892, -0.0305832736, -0.3010807931, -0.3024666011, -0.6177494526, 0.0549683981, 0.0454257689, 0.2135515809, 0.1643050015, 0.0170347784, 0.0968246013, 0.3292069137, 0.0991601422, -0.114212282, -0.4199434817, 0.3747448325, -0.1670146883, -0.2868409157, -0.3248367012, -0.0681597292, 0.1972901672, 0.2589270473, -0.5295243263, 0.2950162292, -0.4081035852, 0.0848925635, -0.3834516108, -0.0974560827, -0.0261515174, 0.0762885734, -0.0349893123, -0.1878576428, 0.0707459524, -0.1169513538, 0.0990076959, 0.2066107839, 0.1086307243, 0.3698712885, 0.1008493528, 0.3327504098, 0.4812112153, -0.0195496976, 0.3407551944, 0.082891129, 0.1538007557, -0.1004334986, -0.0627885908, -0.0955621898, -0.2280800343, -0.0261197276, 0.0981990993, -0.0962127745, -0.5762300491, -0.2840516269, 0.0549149849, -0.0692367032, -0.2383105308, 0.0528838076, -0.511775136, 0.0420482606, -0.1872570366, 0.1583397985, 0.0807970166, 0.0520012863, 0.0860457644, 0.1772524714, 0.1261645257, 0.1721196771, -0.185021311, -0.0639052019, -0.4881900847, 0.1825860441, 0.1051262617, 0.4215749502, -0.1678105742, -0.1327165961, 0.0791147202, -0.0652071014, 0.3487038612, -0.2754168212, 0.003567247, 0.2673943937, 0.1421353668, -0.1415521204, 0.0917675421, -0.3209457397, 0.1368288398, 0.235954389, 0.0974201635, -0.1718239039, 0.0333400816, -0.0884195939, -0.0724961758, -0.1253028065, -0.0163991563, -0.1704963744, -0.2492375523, -0.152009964, -0.134242788, 0.2032724619, 0.1256832927, -0.0124605224, -0.0567925759, -0.0460816547, -0.0396244489, 0.2418593764, 0.2213254869, 0.1399096996, -0.072280176, 0.2290114909, 0.0671992972, 0.2844450474, 0.2292162329, 0.836432457, 0.1181946918, -0.5624260902, 0.2350820601, 0.2339563966, 0.1660992503, 0.1305397898, -0.148232609, -0.0085166721, -0.0403849594, 0.2698210478, -0.3024733663, 0.2146548331, 0.2112327665, -0.0507208817, -0.5149303675, -0.4357535839, 0.5883390903, -0.039368242, -0.0761907846, 0.7872929573, -0.1665049642, -0.3171558082, 0.4775415361, 0.0234355517, 0.7585879564, 0.0943952724, 0.2168687731, 0.2407481223, -0.3207278252, 0.5003329515, -0.2320687622, 0.3346687257, -0.1206100509, -0.3350296021, -0.0831092745, -0.1041097715, 0.1709026545, -0.147603929, -0.6302542686, 0.1709609181, -0.0596441738, -0.2528051734, 0.3353525698, 0.2742269933, -0.6082689762, -0.3062928915, -0.0675497502, 0.1388825476, -0.2213602215, 0.3239610493, 0.1382443607, -0.2202336341, -0.0515731983, -0.0843103677, -0.4702361524, 0.4758630693, -0.2765566409, 0.1624139398, -0.2390307039, -0.4760982394, 0.1513123959, 0.2664022446, -0.1421327889, -0.2257857472, -0.1582512558, 0.2350440472, 0.1860539466, 0.128023684, 0.0993071273, 0.1514580995, 0.3883590102, 0.0532772318, -0.0168129094, 0.1884423494, -0.0089801019, -0.1606287062, -0.0637812093, 0.0554574467, 0.3183139861, -0.2681806087, 0.2368578017, -0.1058510691, 0.0429251082, -0.1842529923, 0.0869722143, -0.0188314319, -0.1740541756, -0.0738878325, -0.08129704, -0.2196760625, -0.0847442299, 0.3771200478, 0.1454578936, 0.3179713786, 0.4994189143, 0.0281169843, -0.1778806895, -0.1036716029, -0.0551506244, -0.2931399345, -0.252612263, 0.0693599209, -0.2414764762, -0.1610280573, -0.2706694007, 0.0038265749, 0.0448373631, -0.103554666, -0.1137386858, -0.2993660271, -0.1906369925, -0.0266146194, -0.1242436618, 0.2199304104, -0.1722201109, 0.0222039819, 0.0031197246, 0.1290859282, -0.270683825, -0.1228595003, -0.0753692091, 0.0231177211, 0.2672106326, 0.0292674527, 0.2592337132, 0.1096690521, 0.1476223618, 0.3139047623, -0.0276747048, -0.1609539241, -0.1787950993, 0.138489455, 0.0165312476, -0.348051548, -0.1548943967, -0.05662065, 0.0126910359, -0.125136137, 0.3503144085, 0.181230098, 0.0380968302, 0.2706013322, 0.1240136698, 0.0563360825, -0.2326476574, 0.1542367488, -0.2642730176, 0.2401308864, 0.0811118633, 0.0928405821, -0.0755398721, -0.0118692657, -0.3646134436, 0.0622693747, 0.1017946154, -0.0280170571, 0.5909268856, -0.4241805971, 0.1720450372, -0.0497748405, 0.0660299286, 0.4045228958, -0.2296188772, -0.2089618146, 0.0850852206, 0.2000514269, -0.0432033539, -0.2126210332, -0.4010480046, -0.1016407683, 0.0112383589, 0.1459593624, -0.1068896204, -0.2721833587, 0.0999634638, -0.2103084773, 0.4859834313, 0.3358429968, 0.2670664489, 0.4836392403, -0.1811283231, 0.0228473805, -0.2260247022, 0.0204593837, 0.1999064386, 0.2970430553, 0.0035512666, -0.0078696832, -0.1613658667, 0.2178194076, -0.1859746873, -0.482195437, -0.0797479451, 0.1024470255, -0.1647549272, 0.3901939094, 0.1489096284, 0.1521606892, -0.2779354751, -0.0519221425, -0.0458415113, -0.0661262944, -0.0142799746, -0.096080415, 0.1068764329, -0.0128562739, -0.3279225528, 0.0976088271, 0.0123996465, 0.0633685365, -0.0198641457, 0.2808055282, -0.2884631157, -0.1185014918, -0.0822276548, 0.1043173745, 0.2999251485, -0.3544151187, 0.4440693855, 0.3661904037, -0.1568607092, 0.0282512195, 0.0700021908, 0.4816074371, 0.2853379846, -0.1766507179, 0.0946500823, 0.3374164999, -0.0436370596, -0.0402214266, 0.0442541391, 0.2830949128, 0.1793196946, 0.4566897452, 0.0887393281, -0.1485419422, 0.1045718119, 0.0814351737, 0.2538890839, -0.2799384296, 0.4623198807, -0.1195058972, 0.0366923138, 0.0272421893, -0.3365718424, -0.5624158978, -0.0282046329, 0.0348961949, -0.2285001576, 0.0745235756, -0.0081122555, 0.0628783256, 0.1139546707, 0.4926685393, 0.3248410225, -0.0188453235, -0.2245095521, -0.1508785933, -0.235583514, 0.2332020253, -0.0674795657, -0.1231484041, 0.1752853394, 0.2219228297, -0.0048415069, 0.1680491567, -0.1584448814, 0.0204550214, -0.2672839463, 0.1405724436, -0.3995800018, -0.3515672684, 0.1919635981, 0.1735794991, -0.0483116023, -0.576480031, 0.1881390065, -0.1502387971, 0.1608176678, 0.0926132202, -0.241848141, 0.101145193, -0.2756578326, 0.5297338963, 0.2331105173, 0.3792004883, -0.184295252, -0.4119567871, -0.0992468074, -0.3762306273, -0.2749142647, -0.0155847622, 0.1083334535, 0.5696322322, -0.1493341029, -0.2373841256, -0.3574708402, 0.3262623847, 0.0608894229, -0.2656728923, -0.2735387981, 0.1733704358, -0.1194598079, 0.2131261081, 0.3050509691, 0.380345583, -0.0287131406, 0.1639950573, -0.2235154659, -0.4333209693, 0.5773110986, -0.3461063206, -0.2659671307, 0.2418412119, 0.0638139024, 0.3264979422, 0.2410199344, -0.4596662819, 0.0893656164, 0.3556547463, -0.2354129702, -0.1511856616, 0.1421462744, 0.2259705812, -0.0607201755, -0.0850398242, 0.45531106, 0.2423961759, -0.249204129, 0.1750813872, -0.1786384881 ]
https://github.com/huggingface/datasets/issues/2917
windows download abnormal
Hi ! Is there some kind of proxy that is configured in your browser that gives you access to internet ? If it's the case it could explain why it doesn't work in the code, since the proxy wouldn't be used
## Describe the bug The script clearly exists (accessible from the browser), but the script download fails on windows. Then I tried it again and it can be downloaded normally on linux. why?? ## Steps to reproduce the bug ```python3.7 + windows ![image](https://user-images.githubusercontent.com/52347799/133436174-4303f847-55d5-434f-a749-08da3bb9b654.png) # Sample code to reproduce the bug ``` ## Expected results It can be downloaded normally. ## Actual results it cann't ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:1.11.0 - Platform:windows - Python version:3.7 - PyArrow version:
41
windows download abnormal ## Describe the bug The script clearly exists (accessible from the browser), but the script download fails on windows. Then I tried it again and it can be downloaded normally on linux. why?? ## Steps to reproduce the bug ```python3.7 + windows ![image](https://user-images.githubusercontent.com/52347799/133436174-4303f847-55d5-434f-a749-08da3bb9b654.png) # Sample code to reproduce the bug ``` ## Expected results It can be downloaded normally. ## Actual results it cann't ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:1.11.0 - Platform:windows - Python version:3.7 - PyArrow version: Hi ! Is there some kind of proxy that is configured in your browser that gives you access to internet ? If it's the case it could explain why it doesn't work in the code, since the proxy wouldn't be used
[ -0.1240484565, -0.2018248588, -0.0703396499, 0.1894593984, 0.2147738934, -0.1120505109, 0.0276671592, 0.0718739256, 0.2805814743, 0.0850560516, 0.1648736149, 0.1174071059, 0.1554815173, 0.1022035182, 0.1588474363, -0.2615045309, 0.0301855393, 0.0393100753, -0.1691515595, 0.0088643078, -0.3215381503, 0.0859283432, -0.3066691756, -0.1127134934, 0.1635590941, 0.0324402116, -0.2886959612, 0.3004715145, -0.2545996904, -0.1694043726, 0.099369511, -0.0709087476, 0.1850661635, 0.3519495726, -0.0001087431, 0.0813257769, 0.3922842741, 0.0235310104, 0.0174283162, -0.0581749007, -0.2938911617, -0.1413686872, -0.1911946684, -0.3151716888, 0.0997065529, 0.2347301394, 0.0454377979, -0.1112284884, 0.244362548, 0.4491443336, 0.3060822189, 0.4809369445, -0.1150025278, 0.0517268442, 0.4554628432, 0.0505648442, -0.1816764176, 0.2491989583, 0.3063491285, -0.1419377476, 0.2570019662, -0.059411183, -0.1210118234, 0.0115583753, 0.0310037415, 0.1206353381, -0.0494647175, -0.5093158484, 0.1234319583, 0.1743744612, 0.31266132, -0.1531091034, -0.1585402191, 0.1158476546, -0.1493998766, -0.185696885, 0.2733875215, 0.2762599587, -0.1393169761, 0.1871818155, -0.2805486917, 0.1743876189, -0.2056800723, 0.2596932352, -0.1191073507, 0.3299077153, -0.0759498328, 0.1894465089, -0.1710143685, 0.3167176545, 0.03771016, -0.3272551894, -0.0156770907, -0.0039893929, 0.0856893435, 0.105707854, 0.0493557453, 0.5118294954, 0.05730417, 0.2643461227, 0.0334886052, -0.0560189262, 0.2410898954, 0.0700188726, 0.090272449, 0.0949797034, -0.2958666682, 0.066043593, 0.3817819655, 0.313916266, -0.0065793474, -0.026200084, -0.0330495574, -0.3155067265, 0.2965119183, -0.0053916001, 0.486035049, -0.04742698, -0.556910634, 0.0026351295, 0.0146284271, 0.0908918232, -0.0023530021, 0.2526860833, -0.32183218, -0.022580795, 0.1233704016, 0.3000146747, -0.1240452528, 0.1943567246, 0.004063094, 0.1806814522, -0.2520693839, -0.2260728776, 0.3475835323, -0.0671294406, 0.12012472, 0.1935619116, -0.0914587379, -0.042873878, 0.0132011967, -0.0805152804, 0.0271826498, 0.4316020012, 0.1952559203, 0.3702535331, -0.0094595077, 0.0780785382, -0.0707269013, 0.2062932998, -0.1463157386, -0.0249700788, 0.021134628, 0.2608017921, -0.3265893757, -0.1885598153, 0.0397941098, -0.2664661705, -0.0409113131, -0.0293878373, 0.2495985031, -0.1964796036, -0.2891480029, -0.3841315806, 0.0929920301, 0.5247913599, -0.3482265472, 0.2068513781, 0.0614641719, -0.271443069, 0.4014218748, 0.0586097874, 0.1309562773, 0.1605100483, -0.4302997291, 0.0415051356, 0.117131643, -0.3501324654, -0.4970429242, 0.3584975302, -0.1899531484, 0.3206911981, 0.1783815473, 0.0919841528, 0.293910265, -0.0833817273, -0.012038324, 0.3098945022, -0.022483252, 0.0582434274, -0.1245782077, -0.1297618896, 0.1300003082, 0.1085215658, 0.1208592206, 0.1432953179, 0.293230623, -0.1360394806, 0.3164023459, 0.1788195372, 0.0964889973, 0.2375457287, 0.2550174594, 0.2680895925, 0.1236548349, -0.2269855589, 0.0015702655, 0.2861069441, -0.0804182291, -0.1590327024, -0.2410328686, -0.2218061388, -0.5582574606, 0.0224495344, -0.1886620373, -0.2219815105, 0.1653012484, 0.1372602582, 0.249552846, 0.0426937975, 0.0754473731, 0.179336831, -0.0071864342, -0.068459399, 0.0751905069, 0.3602052331, -0.3439503014, -0.050523717, -0.096596159, -0.0721758753, 0.2299172729, -0.0566853061, -0.0152284885, 0.197268486, 0.0202615354, -0.0426289514, 0.0362087451, 0.0486600362, 0.0167178959, -0.1805609912, 0.2716660798, 0.5724846125, 0.2685571015, -0.0967838913, -0.0322295241, 0.0053620976, -0.075025402, 0.0177561473, -0.0222576819, 0.1486974061, 0.1936407834, -0.188959837, -0.1011113226, 0.0021014542, 0.3638005555, 0.0613047183, -0.0991422012, -0.1685334742, -0.1679939777, 0.167080909, 0.5450258255, -0.2752330005, 0.3014795184, 0.0706219375, -0.0966639817, 0.2094732076, -0.1800906807, 0.1059181914, 0.6080446839, 0.033296559, 0.112960726, 0.3711541593, 0.0088629806, -0.1436058879, 0.2149284184, 0.1461233199, -0.2989706993, 0.1730046868, -0.0520784967, 0.1769192368, -0.2095150501, -0.2376021594, -0.0571574084, 0.0526774004, -0.3452227414, 0.2429896444, -0.1614445746, -0.1740004569, -0.3291527927, -0.086957626, -0.0766705945, -0.0632937625, 0.0246917997, 0.2807940841, -0.1450743377, -0.1818347871, -0.4370901287, 0.092590116, 0.2119114399, -0.3590200245, -0.0015145239, 0.1992023885, -0.2863779962, 0.1333586127, 0.1517552882, -0.0984132662, 0.5485373139, -0.5067276955, 0.0579211973, -0.3667593896, -0.1009359881, -0.0654943958, 0.0553083122, 0.3579990566, 0.182639122, 0.1857500374, 0.0548134558, 0.1031560078, 0.2081247717, -0.2389806062, -0.179515481, 0.1597154588, 0.0564894304, -0.3985366821, -0.2559876144, -0.2491457164, -0.2066613436, -0.3509724736, 0.0161345936, 0.1100101173, 0.1269879043, -0.1030690521, 0.0080765542, 0.0372453369, 0.0731868744, 0.2246696055, -0.083026208, 0.0263501108, 0.3867479861, -0.0423500165, -0.6439450383, 0.2405601293, -0.0189747661, -0.3578401804, 0.3052423, -0.5030599833, -0.132392019, -0.2873800397, 0.2506045699, 0.0892270058, 0.2778801024, 0.3353272378, -0.2777280211, -0.0245965142, -0.3039755225, -0.0659073442, -0.2901861966, -0.1096735597, 0.2428965271, 0.1826853007, 0.3031284213, -0.0289380215, 0.2855456471, 0.2206116915, 0.1294395328, 0.4378712475, -0.3864388764, 0.4741620421, 0.001300477, -0.1765860617, 0.035116639, -0.2722176611, 0.0180080682, 0.2376574576, 0.022387892, -0.004943266, -0.2312289178, -0.1656051874, -0.231309548, -0.2478713095, 0.1438776106, 0.1106841117, 0.0407827273, 0.1241698265, 0.2241891772, 0.1028406844, -0.1557345092, 0.1141644493, 0.5970383286, -0.2615623474, 0.1439668685, 0.0227814205, -0.1640785187, -0.4693872631, 0.0716748014, 0.1027646363, 0.4488425553, -0.0301668625, 0.0443425849, 0.2156197429, -0.1619966328, 0.7495212555, -0.2151187062, 0.3322592676, 0.2032127231, -0.0067156502, -0.3780357242, -0.2583532333, -0.5120751262, 0.123098731, 0.0817756206, -0.0529246628, -0.0555245318, 0.1852327734, 0.1150577143, 0.2468607128, -0.1428902447, -0.3871606886, -0.3885157406, -0.6134721041, -0.2445401102, 0.085090965, 0.4038743079, -0.0435088724, -0.3796861768, -0.1664035767, -0.0642804652, 0.1533765495, -0.0725113228, -0.0277298614, 0.0795960501, -0.017775014, 0.1780821234, -0.2506742775, 0.2862488925, -0.1739084572, 0.6596170068, 0.1054916233, -0.1496224999, 0.1620587111, -0.2683568299, -0.2014200389, 0.2051974386, -0.1649345309, -0.220199585, -0.0797214359, 0.0492504165, -0.3298475146, -0.0799625888, 0.5729669333, -0.101683788, -0.0054186624, -0.2596149147, 0.1787786633, 0.0138970232, -0.1558488905, 0.2674739361, 0.0348851718, -0.0924990326, -0.108341001, -0.2890718579, 0.651114285, 0.2145095021, 0.2358662635, 0.2590305209, -0.5253791809, 0.0419862084, 0.2136851996, 0.0738660768, -0.2070637792, -0.2838785946, -0.0373834483, -0.1332621872, 0.0825860873, -0.0341505371, -0.2779364288, 0.2207877785, -0.0865820795, 0.1747573763, 0.2744155824, -0.1581595838, -0.313105762, 0.1084561571, -0.0328159146, 0.195117116, 0.2385889739, 0.6629055142, -0.2662183642, 0.0184965637, -0.1715994924, -0.2779659629, -0.3965134323, 0.255030632, -0.1340843886, 0.0074540563, -0.1599158049, 0.1396337897, 0.0225496311, -0.0147371292, 0.0021659129, 0.1571852863, -0.2298111022, 0.0857386962, 0.1341610104, -0.0822363645, 0.263004005, -0.0994025618, 0.1180735081, -0.2447074354, -0.4229418635, -0.0727604851, 0.0214396194, -0.0027245332, -0.0277121738, 0.2639417648, 0.2187709659, -0.1882333159, -0.1784814149, -0.3920820057, 0.083862029, -0.0708945021, 0.2175155431, 0.0490465052, 0.0885434523, 0.5029727817, -0.2861326635, -0.2359030694, -0.1554895788, 0.3932054639, -0.1673704088, -0.0755681172, 0.1102359146, 0.0948679075, -0.3069735765, -0.2523458302, 0.0131361112, -0.3942269385, -0.2205286175, 0.0540067367, -0.0543695949, 0.2869075835, -0.1471764296, 0.0090060364, 0.1335751414, -0.0578686707, -0.0151845738, -0.6815165877, 0.1296804845, -0.2197964042, 0.412201792, 0.0466443598, 0.0262459274, -0.157206744, 0.4631694555, -0.5489163995, -0.3702111244, -0.0008696999, 0.0495049134, -0.1290583014, 0.1779977232, 0.1302772611, 0.1998716146, 0.0118945697, 0.1212280467, 0.0002453557, -0.0661850348, -0.2484522611, -0.1650175601, 0.1045997515, -0.0540886931, -0.2632085681, 0.1900731623, -0.4511168599, 0.0091411378, 0.18899028, 0.14730452, 0.3043759167, -0.0957731083, 0.0366581641, 0.0956626311, 0.1146368384, -0.2398875803, 0.2471019179, -0.4936737418, 0.5263616443, 0.0056513948, 0.1713121086, 0.2247191817, 0.0065553351, -0.054802306, -0.281349808, 0.062704742, 0.1826201379, 0.3916451633, -0.1167972237, 0.2606552839, -0.0006228012, 0.283251822, 0.5525352955, -0.352715075, -0.0893501639, 0.1433627754, 0.275811404, -0.2590067089, -0.0346851833, 0.0842292532, 0.1091726124, 0.0576287955, 0.1179928631, 0.0555240661, -0.2826647758, -0.0912482589, -0.0500898212, 0.4335025847, 0.3670791388, -0.1808381081, 0.3947139084, 0.0065175421, 0.1476498097, -0.0576697998, -0.0217515342, -0.0486023426, 0.4234354198, 0.0409806445, 0.0692659318, -0.1091255769, 0.0251742806, -0.1315766871, -0.2052455992, 0.0766841099, -0.2012568414, 0.0254510138, 0.097710222, 0.0770515501, -0.1540478617, -0.2748750746, 0.2177974731, -0.3454121649, -0.0678378046, 0.0694723278, -0.0125074452, -0.3036753833, -0.0721507445, -0.1196656898, 0.0252670608, 0.1473329514, -0.0054127262, 0.259942174, 0.0745272934, -0.2369666696, -0.3160700798, 0.0126224859, -0.2048031986, 0.1134118363, -0.2885008752, 0.0778895468, 0.3658398986, 0.1674333662, 0.1078387499, 0.1148513034, 0.5545535088, 0.3852181435, -0.1072471216, -0.061104849, 0.0784613341, -0.1331625879, -0.3258143961, 0.43635571, 0.071632877, 0.193093881, 0.2363510728, 0.2184062153, -0.2301051915, 0.2584095299, -0.030818494, -0.0795634016, -0.0589464083, 0.1791744381, -0.2505965829, 0.0937965512, -0.3897891343, -0.1013927385, -0.4083535373, -0.098580189, 0.1772197485, -0.0879954323, 0.1667040288, -0.3462209702, 0.1035932824, 0.0375302359, 0.2181000561, 0.3795768917, 0.3196724355, -0.088166751, -0.0573232137, -0.5226137042, 0.3419146836, -0.2258433551, -0.5296083689, -0.0877915993, 0.0447274148, -0.6105858684, 0.0722363666, 0.3415539265, 0.2679618895, -0.0636082962, 0.3222130537, -0.1352423877, -0.3121239245, 0.0335871987, 0.1525713652, 0.0759184957, -0.5940473676, 0.2918206453, -0.4170546532, 0.1697357893, -0.2700899541, -0.1863706708, -0.0113285938, -0.0088556763, 0.5608647466, 0.1507781595, 0.5199138522, -0.1912190616, -0.1256828904, -0.4629922211, 0.0781015754, -0.1126953214, 0.2469523996, 0.116675429, -0.1811442822, 0.0191525444, -0.2678036988, -0.0600166209, 0.3138544858, -0.0368412472, 0.0905802175, -0.0571234785, -0.0728074685, -0.183093071, 0.1488180161, 0.0811512843, 0.1466140598, -0.3787932098, -0.1018520966, -0.0337751284, -0.5434590578, 0.2741713226, -0.2698807716, -0.3332621753, -0.2687217593, 0.2311914861, -0.4032007754, 0.0730406642, -0.0221859496, 0.1500967294, 0.1658335179, -0.0674838051, 0.0399886183, 0.2936095595, -0.3748459816, 0.0406060629, 0.25768736, 0.4179147184, -0.0696628317, -0.1712902337, 0.3069999814, -0.2148606628 ]
https://github.com/huggingface/datasets/issues/2917
windows download abnormal
It is indeed an agency problem, thank you very, very much
## Describe the bug The script clearly exists (accessible from the browser), but the script download fails on windows. Then I tried it again and it can be downloaded normally on linux. why?? ## Steps to reproduce the bug ```python3.7 + windows ![image](https://user-images.githubusercontent.com/52347799/133436174-4303f847-55d5-434f-a749-08da3bb9b654.png) # Sample code to reproduce the bug ``` ## Expected results It can be downloaded normally. ## Actual results it cann't ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:1.11.0 - Platform:windows - Python version:3.7 - PyArrow version:
11
windows download abnormal ## Describe the bug The script clearly exists (accessible from the browser), but the script download fails on windows. Then I tried it again and it can be downloaded normally on linux. why?? ## Steps to reproduce the bug ```python3.7 + windows ![image](https://user-images.githubusercontent.com/52347799/133436174-4303f847-55d5-434f-a749-08da3bb9b654.png) # Sample code to reproduce the bug ``` ## Expected results It can be downloaded normally. ## Actual results it cann't ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:1.11.0 - Platform:windows - Python version:3.7 - PyArrow version: It is indeed an agency problem, thank you very, very much
[ -0.1819480658, -0.0709162951, -0.0238682684, 0.1505493969, 0.2515722811, -0.0938239619, 0.0032474413, 0.11024113, 0.362229526, 0.0661070794, 0.1379210949, 0.2134204656, 0.0683521777, 0.2074184567, -0.0183983669, -0.2120418251, 0.0408425257, 0.169603616, -0.109351553, 0.0084896954, -0.3778957427, 0.1222561225, -0.244990021, -0.0322376676, 0.118513003, -0.1276566386, -0.3018625379, 0.1873607785, -0.2236432433, -0.0762688667, 0.1565723866, -0.1330198646, 0.1389445513, 0.3082361221, -0.0001110555, 0.0270548705, 0.4110395014, 0.0012154208, 0.0296383202, -0.0051854542, -0.1887717694, -0.1067669615, -0.2910613418, -0.3018800914, 0.163738668, 0.3125549555, 0.0271366872, -0.1251074672, 0.2193036079, 0.4728519619, 0.3004208505, 0.4755435586, -0.1050411314, -0.052202031, 0.2329810262, 0.0768294707, -0.1763174385, 0.1497375667, 0.254214406, -0.2113004178, 0.2170041651, -0.0690852255, -0.0610753894, -0.0063095409, -0.0902022049, 0.0914523378, 0.0073744375, -0.5927760601, 0.1896012127, 0.1313620359, 0.401514262, -0.1367759109, -0.1460928917, 0.1193385571, 0.0144195985, -0.0813066885, 0.2506349087, 0.3949985504, -0.1587389559, 0.0788909793, -0.2028708309, 0.2833296955, -0.2204892486, 0.1841510683, -0.1222558171, 0.1910018027, -0.0857133567, 0.2090443075, -0.0596853197, 0.2083201408, 0.0718123764, -0.2013075501, -0.0888202116, -0.0001829596, -0.0580069907, 0.0415586531, -0.0736014992, 0.6245207787, 0.131835565, 0.1753447503, 0.0869020745, -0.1592784822, 0.183907643, 0.0403068922, 0.224851951, 0.1441524029, -0.2167216688, 0.1089039966, 0.2697381079, 0.2915846109, -0.0308599882, 0.1096391231, -0.107437022, -0.41546157, 0.2698237002, 0.0131871272, 0.4077474773, -0.1028263122, -0.62843436, 0.0436515138, 0.1092530116, 0.1674703658, -0.1276319921, 0.1536726505, -0.2733654976, 0.013872534, 0.0132438513, 0.32657969, -0.1094577163, 0.206694752, 0.0036723863, 0.0926430076, -0.2967072725, -0.2458346933, 0.3576645553, -0.1119512916, 0.1324940771, 0.2963950634, -0.1462853998, -0.01702445, 0.0105879866, -0.1995972842, -0.1029506847, 0.439473182, 0.2255644649, 0.3950291276, -0.1827936321, 0.0152565576, -0.0298757032, 0.1933602542, -0.1561779529, -0.0408560708, -0.0541052632, 0.2324374616, -0.3855369985, -0.1968738139, -0.039049834, -0.2038401216, -0.0327578783, 0.1615654677, 0.2465070188, -0.2326217592, -0.2305738032, -0.3819427192, -0.0289984588, 0.5887625813, -0.2635556459, 0.2373927385, -0.0847060829, -0.328499347, 0.4486765862, 0.1127441376, 0.1913455874, 0.1516014636, -0.4607596099, 0.0760051906, 0.0519300029, -0.4398525655, -0.5598500967, 0.4142220914, -0.0977686942, 0.1617045999, 0.1845384538, 0.1501137912, 0.3036822379, -0.0325751416, -0.0825505555, 0.4031662345, -0.0779337958, 0.1080535129, -0.1352510601, -0.134622559, 0.201709345, 0.168760702, 0.1124669537, 0.0058825724, 0.1826209873, -0.1374899149, 0.298524797, 0.2201125473, 0.0792058855, 0.2166628391, 0.2818375528, 0.1327269375, 0.1090106666, -0.1992979348, -0.0353883244, 0.2307479382, -0.068367891, -0.1274635792, -0.1719899923, -0.2560539246, -0.4767713547, 0.0034119347, -0.2548181415, -0.193141818, 0.1301574707, 0.0973193944, 0.1700637639, 0.1048899293, 0.1259745061, 0.1654153466, 0.0545962192, 0.0097603537, 0.1804260761, 0.302990526, -0.2577700615, -0.0457421467, 0.0831682235, -0.0594857298, 0.2411195934, 0.0036581284, -0.0234827735, 0.1238250807, 0.0947378799, -0.0369792469, 0.0112583535, -0.0961492285, -0.0187985655, -0.0046684532, 0.208516553, 0.5677586794, 0.1324958503, -0.0747223124, 0.0045230803, 0.1056594327, -0.1307276189, -0.0183902904, -0.0695005655, 0.2344380766, 0.2568475604, -0.3220861256, -0.0040925732, -0.0434314571, 0.2829574049, 0.0912019163, -0.0603718944, -0.0726193562, -0.1558505297, 0.1877027154, 0.700084269, -0.1830890179, 0.3046873808, 0.1612100303, -0.1223507747, 0.1930639148, -0.137361154, 0.2834716737, 0.7158129215, 0.0091603678, 0.0177161265, 0.2950727344, 0.002406968, -0.1490684301, 0.2080704123, 0.0997634754, -0.2241471559, 0.3055584729, -0.0021933594, 0.2467545569, -0.3240906596, -0.2490481883, 0.0142765054, 0.1652551144, -0.2981254756, 0.098265931, -0.1337950528, -0.2373199612, -0.4030925632, 0.0705316141, -0.0321190171, -0.0354837701, 0.0339757949, 0.1372851282, -0.0919834822, -0.1605060548, -0.3157018423, 0.1221830696, 0.1355545223, -0.1588221341, -0.0273725614, 0.2578795254, -0.2540774345, 0.1120541915, 0.2056393325, -0.0287933052, 0.5603420734, -0.496091783, 0.2043798715, -0.4564227164, -0.2349586785, 0.0054968395, 0.0737605169, 0.429425329, 0.1740064919, 0.074083142, 0.0736172348, 0.0474765077, 0.1184441224, -0.2257839143, -0.2208357453, 0.1726488918, -0.0539861992, -0.4455712736, -0.3471133113, -0.2787243128, -0.2446427345, -0.3425118625, 0.228518784, 0.1010006294, 0.1010874212, -0.1100757569, 0.0160217341, -0.098175019, -0.0168962702, 0.1484609544, -0.0863984153, 0.1665725112, 0.4026210904, -0.0914862081, -0.6598010659, 0.226908803, -0.0615841225, -0.2246567756, 0.2210018188, -0.4095596969, -0.1262203753, -0.342110157, 0.129096806, 0.0070878975, 0.2367419153, 0.2802664936, -0.2545440495, 0.0095087094, -0.2566065192, -0.113554813, -0.3147451878, -0.0000580463, 0.1881667525, 0.0922107473, 0.2084324509, 0.0313312039, 0.1634161323, 0.3067245483, -0.0213810727, 0.3113523424, -0.4172437489, 0.4244993925, 0.0466330908, -0.2214517891, 0.0983962864, -0.2498928308, 0.1606142521, 0.3106133938, -0.0131996665, -0.0498652756, -0.0531375594, -0.1525879204, -0.2962233722, -0.1872186512, 0.1845183671, 0.1975913942, 0.0270271003, 0.1604973674, 0.2584456503, 0.0593817346, -0.1810683012, 0.1808519512, 0.5908366442, -0.2561921775, 0.1567899436, 0.0854340792, -0.1405245364, -0.3897050917, 0.0586795174, -0.048919417, 0.3696776927, 0.0397022516, 0.092400454, 0.183471337, -0.1580636948, 0.7567191124, -0.2351808399, 0.335219115, 0.0931395069, 0.0759490356, -0.3002094626, -0.2571650147, -0.5032290816, 0.1778117418, 0.1313455105, 0.1499896944, -0.0213212427, 0.1512990743, 0.0676208735, 0.2166710496, -0.1317122281, -0.4037706852, -0.2964296639, -0.6127716899, -0.2049366981, 0.117291458, 0.3299233913, -0.0507941172, -0.3962244689, -0.2173570246, -0.0589839593, 0.1337932795, 0.0097574433, -0.0469903946, 0.1613981575, -0.0620574243, 0.354998976, -0.2106681168, 0.2135154009, 0.0068420973, 0.6776823997, 0.0515572429, -0.20278126, 0.1849692166, -0.4547348022, -0.075928323, 0.1978503317, -0.2219791412, -0.181578353, -0.2288752943, 0.0577406138, -0.1304596514, -0.1154361218, 0.6724388599, 0.0116147408, -0.0880290642, -0.2290315926, 0.0269637574, 0.0930446237, -0.1775280386, 0.1311566979, 0.0083262734, 0.0038521371, -0.0504921637, -0.3116265535, 0.5648178458, 0.1825739145, 0.2294044197, 0.25097996, -0.6363233924, 0.132541433, 0.1731054485, -0.0348364413, -0.3449183702, -0.1180073246, -0.060735397, -0.0839627385, 0.1357378662, 0.0965342596, -0.2864951193, 0.2465907186, -0.0923556387, 0.1755324602, 0.2961422801, -0.053293705, -0.4048813879, 0.0279879328, 0.0016065218, 0.1267795116, 0.2139146924, 0.5632892847, -0.1866210252, -0.0936785042, -0.0864489675, -0.2423260212, -0.4809702337, 0.2019794881, -0.1480094939, -0.0914589316, -0.0404894277, 0.2275454849, 0.2673154175, 0.1050150692, 0.0534894355, 0.1554015577, -0.2471711636, 0.09378694, 0.2429651618, -0.163590923, 0.3407642841, -0.1084667817, 0.1350386739, -0.2384069264, -0.2937361002, -0.2282719314, 0.0748440102, 0.0276120156, -0.116148755, 0.2478477508, 0.0971163362, -0.2641325593, -0.1859139502, -0.4118072689, 0.0480490588, -0.0216537248, 0.1968362927, 0.0426948182, 0.2514934838, 0.5543159842, -0.2680101395, -0.2960169911, -0.1482276917, 0.316008538, -0.0751970038, -0.0281304382, 0.0849173367, -0.0338713862, -0.2844862938, -0.2949290574, -0.1094078198, -0.3924708068, -0.4937892854, 0.0646348968, 0.0028452519, 0.2016657442, 0.0639257208, -0.0053070709, 0.0866598338, -0.1805602014, -0.0810055435, -0.6708059907, 0.1208183914, -0.2188697308, 0.3121037781, -0.0310322922, -0.080994457, -0.0924195573, 0.462344259, -0.56297791, -0.3270189762, 0.0689965785, 0.0888255239, -0.0834360719, 0.109193787, 0.139086917, 0.1852610856, -0.0086610345, 0.0958006084, 0.0629086271, -0.1129151657, -0.2175378799, -0.239239648, 0.123343803, -0.0251545962, -0.1054501235, 0.3249388933, -0.3739489019, -0.1129374206, 0.2286068797, 0.0371736549, 0.2270472944, -0.1074041575, 0.0664063394, 0.1346448511, 0.1107195541, -0.1786526144, 0.2178373933, -0.4177097082, 0.502301991, -0.0636654794, 0.2077580541, 0.0905166268, 0.0062949709, -0.042831663, -0.2727173567, 0.0531402491, 0.3122295439, 0.3746222556, -0.1874159575, 0.2840179205, -0.0366584845, 0.2948142886, 0.4220358133, -0.3256885707, -0.1145882607, 0.2006989568, 0.2581072748, -0.3778952956, -0.1126070246, 0.0249982718, 0.0281744618, -0.0173770655, 0.0426898114, 0.1704592407, -0.3231846988, -0.0715658963, -0.0891949311, 0.510776937, 0.3488326073, -0.3181062639, 0.4961268604, -0.0357793383, 0.2045413852, 0.1308365911, 0.0022999949, -0.123532027, 0.466999203, 0.1138676703, -0.0657802895, -0.07365264, -0.0520526879, -0.0127656963, -0.3265745342, 0.0969003737, -0.2036779374, 0.0883152783, 0.1655903906, 0.2275578827, 0.1800905913, -0.1424449831, 0.1382020563, -0.3902211487, -0.1678872854, 0.0352386832, 0.1181734353, -0.3001885116, 0.0077317753, -0.1403809637, 0.1666193604, 0.03115898, 0.0294490382, 0.3884918988, 0.1017772108, -0.2867660522, -0.2919543087, -0.065970242, -0.1406376809, 0.1262633651, -0.3228229582, 0.0812824517, 0.1998783797, 0.0639883801, 0.1520850211, 0.1378840059, 0.6043738127, 0.4262299836, -0.1217401624, -0.052427981, 0.0836070701, -0.035255909, -0.2587223053, 0.4822923541, 0.1293968409, 0.2001360506, 0.219263345, 0.1742515415, -0.2169545889, 0.1601615399, -0.0443608537, -0.0834314376, 0.0095301662, 0.1602160633, -0.226329416, 0.0906851217, -0.4063223898, -0.0822347403, -0.356235534, -0.2838271558, 0.1814249009, -0.0034272557, 0.1390607953, -0.5132735968, 0.0922186598, 0.0056273444, 0.2130190283, 0.3403390646, 0.3399863839, -0.1434624493, -0.0310119316, -0.5878449082, 0.4222592115, -0.1601106822, -0.469481945, -0.0580243543, -0.074073568, -0.4996267855, -0.0051813284, 0.3259088099, 0.3747652471, -0.034929134, 0.2777367532, -0.2828331888, -0.2070655376, -0.0261246599, 0.1599916518, 0.1422616839, -0.6948549747, 0.2628783882, -0.3964836597, 0.1354710013, -0.3572916687, -0.1515267193, 0.0148491617, -0.0411220454, 0.4819484055, 0.0784450695, 0.5681082606, -0.2400528491, -0.1901470125, -0.3536834717, 0.150347814, -0.1731881648, 0.2326658219, 0.2059119046, -0.2228829563, 0.0862541646, -0.1185080707, -0.0339981914, 0.2086851001, -0.0462474152, 0.2048280835, -0.1679049134, 0.1487743109, -0.1486237049, 0.0804283768, -0.0019246727, 0.2268226743, -0.4055153131, -0.2166316658, -0.0701380074, -0.4929824471, 0.2949214578, -0.4310215712, -0.2514631152, -0.1839419752, 0.2517825961, -0.3235113621, 0.0435998961, -0.0431705825, 0.1134158745, 0.1523936093, -0.0991116017, -0.0711204708, 0.2593789101, -0.3562481999, -0.0355296209, 0.2653440535, 0.4769489169, -0.0163087025, -0.180393517, 0.3521855772, -0.1993495673 ]
https://github.com/huggingface/datasets/issues/2917
windows download abnormal
Let me know if you have other questions :) Closing this issue now
## Describe the bug The script clearly exists (accessible from the browser), but the script download fails on windows. Then I tried it again and it can be downloaded normally on linux. why?? ## Steps to reproduce the bug ```python3.7 + windows ![image](https://user-images.githubusercontent.com/52347799/133436174-4303f847-55d5-434f-a749-08da3bb9b654.png) # Sample code to reproduce the bug ``` ## Expected results It can be downloaded normally. ## Actual results it cann't ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:1.11.0 - Platform:windows - Python version:3.7 - PyArrow version:
13
windows download abnormal ## Describe the bug The script clearly exists (accessible from the browser), but the script download fails on windows. Then I tried it again and it can be downloaded normally on linux. why?? ## Steps to reproduce the bug ```python3.7 + windows ![image](https://user-images.githubusercontent.com/52347799/133436174-4303f847-55d5-434f-a749-08da3bb9b654.png) # Sample code to reproduce the bug ``` ## Expected results It can be downloaded normally. ## Actual results it cann't ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:1.11.0 - Platform:windows - Python version:3.7 - PyArrow version: Let me know if you have other questions :) Closing this issue now
[ -0.2207755297, -0.1332957745, -0.0691334903, 0.1743752807, 0.2265743613, -0.0526336357, -0.0071485089, 0.1346075088, 0.2471247762, 0.0947366357, 0.1111562997, 0.2011167854, 0.0616793036, 0.1772477627, 0.0522657, -0.2514466345, 0.0436070114, 0.1884659082, -0.1824369282, -0.0201365389, -0.3421658576, 0.1442255229, -0.2688935101, -0.0980346352, 0.1254004985, 0.0039493642, -0.3086517155, 0.2426276207, -0.2599076033, -0.1714349836, 0.0742157772, -0.0879949704, 0.163236618, 0.2892299891, -0.0001064452, 0.0440166481, 0.3960578144, 0.0089306133, 0.0559709035, -0.0490174629, -0.2207491994, -0.1396053284, -0.2216101736, -0.293787092, 0.1231971383, 0.110559687, 0.0049971924, -0.0325602069, 0.0923154652, 0.3783936501, 0.3404253125, 0.4842950702, -0.0722764954, -0.0313038714, 0.4031114578, 0.1105747074, -0.1911314577, 0.1367606372, 0.2970518172, -0.2148809433, 0.1355500519, -0.0241315197, -0.0474884994, 0.0302238148, -0.0182570498, 0.0709910616, -0.0401855186, -0.4947353899, 0.1354618669, 0.1454054117, 0.3116519451, -0.1623973399, -0.1045670062, 0.1049401239, -0.0483258218, -0.2304380387, 0.1805960536, 0.3206201792, -0.1367184669, 0.1314445287, -0.2873217762, 0.2481869012, -0.2228381038, 0.1704220772, -0.0978163704, 0.2842999995, -0.0906764865, 0.1684194952, -0.0802360848, 0.2447992563, 0.0083303163, -0.2286545932, -0.100851655, 0.0021302979, -0.0380191021, 0.0297235865, 0.0100703146, 0.5421230197, 0.129743889, 0.2278441787, -0.0172666032, -0.1089707017, 0.2379163802, 0.0550119728, 0.1292164624, 0.1321160793, -0.1616736948, 0.0282277036, 0.3516741991, 0.2831096351, 0.0294332672, 0.1096406654, -0.0448804945, -0.409791708, 0.3063461781, 0.067747876, 0.3790406585, -0.1142017618, -0.6207893491, 0.0279846601, 0.070389539, 0.1223948523, -0.0729451403, 0.2053755671, -0.2115510255, -0.038713377, 0.0287676323, 0.3363829255, -0.1473443359, 0.1672639549, -0.0085347267, 0.1934087873, -0.2336297184, -0.2789251506, 0.4062646925, -0.1174081489, 0.1876767725, 0.2447303534, -0.1050559208, 0.0019086151, -0.0402509943, -0.1226891279, -0.0408820026, 0.4309408367, 0.2251872271, 0.4080506861, -0.1081939563, 0.1009383127, -0.0526482053, 0.2426031977, -0.1097498462, -0.0552099682, -0.0306426436, 0.2899795175, -0.3140995502, -0.2293543965, -0.0028886429, -0.2081403881, -0.0288612023, 0.0473718569, 0.2172876298, -0.2606675923, -0.2903537452, -0.4342307448, 0.0709750429, 0.4895909131, -0.4144755304, 0.227134794, 0.0270461105, -0.3316147923, 0.4150057137, 0.1907803267, 0.1251585186, 0.099305965, -0.4734765291, 0.1356181353, 0.0067809615, -0.3681674302, -0.4561111033, 0.3584577441, -0.1014415994, 0.1938920319, 0.1865333468, 0.0966966599, 0.288595438, -0.0928407386, -0.0392433889, 0.2651661932, -0.0274843816, 0.0421565957, -0.1506972611, -0.1795333475, 0.1650287658, 0.1755206734, 0.0803700909, 0.0484602489, 0.2923360765, -0.1043607593, 0.3381632268, 0.1145961881, 0.0599303469, 0.2569989264, 0.3408920169, 0.1021471545, 0.1144763753, -0.243753314, -0.0720155612, 0.2930027843, -0.0744742453, -0.1432997733, -0.2104561776, -0.2281522602, -0.4664123952, 0.0491136797, -0.2203699201, -0.2093744129, 0.1927045584, 0.105987832, 0.2294083834, 0.0463595949, 0.0988513902, 0.1179435104, -0.0049782838, -0.0852696747, 0.1478122175, 0.2976120412, -0.358138293, -0.0983111262, 0.0428683013, -0.0618663542, 0.2359926403, -0.0797711536, 0.0072130114, 0.1748583913, 0.0909606516, 0.0120516652, -0.0225844402, -0.0551137365, -0.0018050423, -0.0328586437, 0.2095954716, 0.4951538742, 0.1691873521, -0.1198024824, -0.0891863182, 0.0866177082, -0.056391336, -0.0603130832, -0.0616283976, 0.135127157, 0.2473331243, -0.2254518121, -0.0318140052, -0.0709816664, 0.4197178185, 0.1235188469, -0.1139750704, -0.1175652519, -0.1888785362, 0.154271245, 0.6313266158, -0.2423981279, 0.2632025778, 0.0781768337, -0.0857005417, 0.1904331446, -0.1035305858, 0.2065784037, 0.6523746848, 0.0705253407, 0.0944053531, 0.3197440505, -0.0311157349, -0.1489898115, 0.2229828387, 0.0814782307, -0.1967646033, 0.2652468383, -0.0275604334, 0.1729865074, -0.3210701644, -0.1806147695, 0.0191281699, 0.1348359287, -0.3165897727, 0.1074841619, -0.1814183295, -0.0536290482, -0.3422429264, -0.0320985392, -0.0447294153, -0.053749226, 0.0935111567, 0.2653478086, -0.1439779252, -0.1548583955, -0.2668774128, 0.0174200926, 0.2345918864, -0.2694985569, -0.021260269, 0.218075648, -0.2366104424, 0.1633965224, 0.1720452756, -0.0932388231, 0.5667923689, -0.4775111079, 0.1574508995, -0.4538096488, -0.1942285001, -0.0239324756, -0.0515272506, 0.3197554946, 0.2340763509, 0.1066003665, 0.0461247899, 0.0562638193, 0.1573544741, -0.2489885539, -0.2195565104, 0.2129605412, 0.0073923734, -0.4503124058, -0.3328312635, -0.2961428463, -0.202512458, -0.3447829485, 0.1225349307, 0.1772155315, 0.1006463096, -0.0672200993, 0.0358825438, -0.0186522044, 0.047959242, 0.0959775299, -0.1114475951, 0.1012131572, 0.4370254278, -0.108312875, -0.668559134, 0.2404889315, 0.0451720208, -0.2690183222, 0.241299063, -0.5037426949, -0.088098526, -0.3273606896, 0.2437198013, 0.0548889041, 0.2400947064, 0.2727158964, -0.2193379253, -0.0504980423, -0.2639805079, -0.0492048077, -0.2931634486, -0.0319044366, 0.1824257225, 0.0572677068, 0.2499418408, 0.0213780347, 0.2403487414, 0.2202055752, 0.0174942203, 0.3821138442, -0.3713877201, 0.4587187171, -0.0153283775, -0.1699820757, 0.0924867392, -0.2480327785, 0.0673405975, 0.2961802781, -0.0331741124, -0.0549514927, -0.1332375258, -0.1691046953, -0.1654629558, -0.1967912763, 0.1489178687, 0.1905439347, -0.0007379284, 0.1263190657, 0.2819885314, 0.126558423, -0.1203787774, 0.1470764428, 0.529684782, -0.2528937459, 0.1417438388, -0.0430495441, -0.1875661463, -0.4491520822, 0.0247008894, 0.028167218, 0.381575644, 0.0108286748, 0.0817865953, 0.1806859076, -0.1728951335, 0.7310193181, -0.1994722933, 0.3743469417, 0.131025508, -0.0181296635, -0.3187329769, -0.2922997177, -0.5790176392, 0.1523871869, 0.0467407405, 0.0785343796, -0.0655063391, 0.1080228686, 0.1322008371, 0.3294463456, -0.1184682176, -0.4172126651, -0.2886999547, -0.5888552666, -0.3001114428, 0.0594724566, 0.4062659144, 0.000087206, -0.4491736591, -0.1950608939, -0.0533062816, 0.0927784741, -0.0568115413, -0.0113462741, 0.1471142918, -0.0048097325, 0.2928668261, -0.2623037398, 0.2470901459, -0.028746685, 0.6279499531, 0.070920743, -0.1808263958, 0.1777650118, -0.3867741823, -0.1477529556, 0.143608436, -0.2414682657, -0.2455293983, -0.1764716357, 0.0498459563, -0.2587479949, -0.0836134553, 0.6548749208, -0.0413557142, -0.0423992425, -0.1491366029, 0.1900945753, 0.0426516347, -0.1285643429, 0.2071285695, 0.0451181121, -0.0856232122, -0.0590202399, -0.2113350332, 0.5505878925, 0.2270111889, 0.2372392416, 0.2324950695, -0.585196197, 0.0767249316, 0.2548376322, 0.0133874621, -0.3171902597, -0.2484219521, -0.0332701951, -0.0792204291, 0.1030970961, 0.081428133, -0.2686470747, 0.2291331589, -0.0590135045, 0.1270036101, 0.2279467285, -0.1004103422, -0.2982287109, 0.0521233603, 0.0186875034, 0.1960546076, 0.2562512159, 0.5732926726, -0.2369992733, -0.0070824078, -0.094170548, -0.2494924664, -0.4075240493, 0.2002867758, -0.1548224837, 0.0800937116, -0.1750008166, 0.0427773744, 0.0968228355, 0.0378658399, -0.0155429896, 0.1895344555, -0.2424435318, 0.0958389044, 0.2168214917, -0.1496645361, 0.2837164998, -0.0939572006, 0.1009400859, -0.221022293, -0.3328936398, -0.1587910354, 0.0103745395, 0.0131876329, -0.0436179899, 0.2026299983, 0.0993676856, -0.1678388119, -0.2867918909, -0.3931019604, 0.0494828448, -0.059844099, 0.2332053334, 0.0822550058, 0.1473239809, 0.5253173113, -0.2927761972, -0.2554986179, -0.177690357, 0.3423021436, -0.1086063087, -0.081868045, 0.123623386, 0.1187664419, -0.275470823, -0.3161422312, -0.0015436411, -0.3686634302, -0.3794449866, 0.0258730557, 0.0202567708, 0.286070317, -0.0100809755, 0.0859160051, 0.1481716931, -0.1539181918, -0.0308849066, -0.6326345801, 0.0793285519, -0.1875317991, 0.3171585798, 0.0826699287, 0.0632378832, -0.1279541105, 0.4226350784, -0.5515289903, -0.3977765143, 0.0291253291, 0.1112820432, -0.1331367344, 0.1548172086, 0.1501194984, 0.2122796327, 0.0203980245, 0.1442107111, 0.0092959199, -0.0687797889, -0.2692624331, -0.1742177755, 0.0721313804, -0.0414409004, -0.1086429581, 0.275123924, -0.4210032523, -0.0978210792, 0.1876570284, 0.17270872, 0.2825715542, -0.0950304568, 0.1360922009, 0.1394856572, 0.0868963525, -0.1750506014, 0.1824970245, -0.4027463198, 0.442858845, -0.0126204034, 0.1944123656, 0.1665093303, 0.0109840715, -0.0307105407, -0.2862520814, -0.0017864812, 0.2384109199, 0.3138039112, -0.1555044502, 0.2605932653, -0.0349944904, 0.3879834116, 0.4773438573, -0.3409121931, -0.1270853281, 0.1898004264, 0.3115430474, -0.3598316312, -0.1136988103, -0.0361874923, 0.1267793924, 0.0516493917, 0.1107208356, 0.0998693407, -0.2879479527, -0.0161045827, -0.0412315056, 0.4778434932, 0.3516988456, -0.2632001042, 0.5142486095, -0.0232837703, 0.1377200931, 0.0572274812, 0.0515077263, -0.0481213368, 0.4958332777, 0.0732803345, 0.0498245247, -0.0417858437, -0.0422224067, -0.0472286642, -0.1962688118, 0.098315455, -0.1797437668, 0.075355649, 0.1101114526, 0.1492832899, 0.0244431049, -0.221565485, 0.1172366291, -0.3538033366, -0.0532904789, -0.0065229121, 0.0325645544, -0.2743485868, -0.0475490838, -0.0886465758, 0.1344543397, 0.0166579895, 0.0213944465, 0.2973858118, 0.1095635965, -0.2179983556, -0.3157918155, 0.0369854607, -0.1580412835, 0.0982746109, -0.2871119678, 0.040060088, 0.3295312226, 0.0932035521, 0.1183491424, 0.134796381, 0.5907421708, 0.4009403586, -0.1221763343, -0.0771894902, 0.0635202974, -0.0590710416, -0.2384877056, 0.4153927267, 0.039325472, 0.1890621036, 0.3091205657, 0.2307442129, -0.2469318658, 0.1552436352, 0.080356203, -0.1620993912, 0.020642532, 0.1388530433, -0.2244401574, 0.0271097682, -0.3510095477, -0.1198782027, -0.3236604631, -0.2240209132, 0.1686892658, -0.0143957799, 0.1356601864, -0.3788411021, 0.1349952817, 0.002670008, 0.2053229809, 0.3138542473, 0.272441268, -0.1191345304, -0.0695681348, -0.5928861499, 0.3832478225, -0.1678831279, -0.4602458775, -0.0931928083, 0.0156863183, -0.4653169513, -0.0051278067, 0.3414212167, 0.2859823406, -0.0933431908, 0.2965569794, -0.2014313191, -0.192971006, 0.0049811103, 0.0661877319, 0.1054957882, -0.5753059983, 0.318833977, -0.3736201823, 0.1851435602, -0.3877812922, -0.09884388, 0.0152286161, -0.0082453201, 0.5097563863, 0.0851208419, 0.50721246, -0.254583776, -0.1529332697, -0.3806297183, 0.0885771438, -0.1390194148, 0.2699479163, 0.1687265784, -0.13552773, 0.075280495, -0.2353149801, -0.0574993305, 0.2708546817, -0.0405838639, 0.1234099939, -0.1145117506, 0.1258966476, -0.1428504884, 0.0675647482, 0.0728959367, 0.1774835438, -0.3727541566, -0.1398797184, -0.0954014957, -0.5806180835, 0.2051665485, -0.2872015834, -0.2997911274, -0.1383069307, 0.1946542859, -0.3773559034, 0.0320957825, -0.111780636, 0.1643281281, 0.1397599727, -0.1000155509, -0.0343191288, 0.2832554877, -0.3728188276, -0.0389520638, 0.262173295, 0.4476927817, 0.0322523899, -0.2558436394, 0.2842577696, -0.2356747538 ]
https://github.com/huggingface/datasets/issues/2914
Having a dependency defining fsspec entrypoint raises an AttributeError when importing datasets
Closed by #2915.
## Describe the bug In one of my project, I defined a custom fsspec filesystem with an entrypoint. My guess is that by doing so, a variable named `spec` is created in the module `fsspec` (created by entering a for loop as there are entrypoints defined, see the loop in question [here](https://github.com/intake/filesystem_spec/blob/0589358d8a029ed6b60d031018f52be2eb721291/fsspec/__init__.py#L55)). So that `fsspec.spec`, that was previously referring to the `spec` submodule, is now referring to that `spec` variable. This make the import of datasets failing as it is using that `fsspec.spec`. ## Steps to reproduce the bug I could reproduce the bug with a dummy poetry project. Here is the pyproject.toml: ```toml [tool.poetry] name = "debug-datasets" version = "0.1.0" description = "" authors = ["Pierre Godard"] [tool.poetry.dependencies] python = "^3.8" datasets = "^1.11.0" [tool.poetry.dev-dependencies] [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" [tool.poetry.plugins."fsspec.specs"] "file2" = "fsspec.implementations.local.LocalFileSystem" ``` The only other file being a `debug_datasets/__init__.py` empty file. The overall structure of the project is as follows: ``` . β”œβ”€β”€ pyproject.toml └── debug_datasets └── __init__.py ``` Then, within the project folder run: ``` poetry install poetry run python ``` And in the python interpreter, try to import `datasets`: ``` import datasets ``` ## Expected results The import should run successfully. ## Actual results Here is the trace of the error I get: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/godarpi/.cache/pypoetry/virtualenvs/debug-datasets-JuFzTKL--py3.8/lib/python3.8/site-packages/datasets/__init__.py", line 33, in <module> from .arrow_dataset import Dataset, concatenate_datasets File "/home/godarpi/.cache/pypoetry/virtualenvs/debug-datasets-JuFzTKL--py3.8/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 48, in <module> from .filesystems import extract_path_from_uri, is_remote_filesystem File "/home/godarpi/.cache/pypoetry/virtualenvs/debug-datasets-JuFzTKL--py3.8/lib/python3.8/site-packages/datasets/filesystems/__init__.py", line 30, in <module> def is_remote_filesystem(fs: fsspec.spec.AbstractFileSystem) -> bool: AttributeError: 'EntryPoint' object has no attribute 'AbstractFileSystem' ``` ## Suggested fix `datasets/filesystems/__init__.py`, line 30, replace: ``` def is_remote_filesystem(fs: fsspec.spec.AbstractFileSystem) -> bool: ``` by: ``` def is_remote_filesystem(fs: fsspec.AbstractFileSystem) -> bool: ``` I will come up with a PR soon if this effectively solves the issue. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: WSL2 (Ubuntu 20.04.1 LTS) - Python version: 3.8.5 - PyArrow version: 5.0.0 - `fsspec` version: 2021.8.1
3
Having a dependency defining fsspec entrypoint raises an AttributeError when importing datasets ## Describe the bug In one of my project, I defined a custom fsspec filesystem with an entrypoint. My guess is that by doing so, a variable named `spec` is created in the module `fsspec` (created by entering a for loop as there are entrypoints defined, see the loop in question [here](https://github.com/intake/filesystem_spec/blob/0589358d8a029ed6b60d031018f52be2eb721291/fsspec/__init__.py#L55)). So that `fsspec.spec`, that was previously referring to the `spec` submodule, is now referring to that `spec` variable. This make the import of datasets failing as it is using that `fsspec.spec`. ## Steps to reproduce the bug I could reproduce the bug with a dummy poetry project. Here is the pyproject.toml: ```toml [tool.poetry] name = "debug-datasets" version = "0.1.0" description = "" authors = ["Pierre Godard"] [tool.poetry.dependencies] python = "^3.8" datasets = "^1.11.0" [tool.poetry.dev-dependencies] [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" [tool.poetry.plugins."fsspec.specs"] "file2" = "fsspec.implementations.local.LocalFileSystem" ``` The only other file being a `debug_datasets/__init__.py` empty file. The overall structure of the project is as follows: ``` . β”œβ”€β”€ pyproject.toml └── debug_datasets └── __init__.py ``` Then, within the project folder run: ``` poetry install poetry run python ``` And in the python interpreter, try to import `datasets`: ``` import datasets ``` ## Expected results The import should run successfully. ## Actual results Here is the trace of the error I get: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/godarpi/.cache/pypoetry/virtualenvs/debug-datasets-JuFzTKL--py3.8/lib/python3.8/site-packages/datasets/__init__.py", line 33, in <module> from .arrow_dataset import Dataset, concatenate_datasets File "/home/godarpi/.cache/pypoetry/virtualenvs/debug-datasets-JuFzTKL--py3.8/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 48, in <module> from .filesystems import extract_path_from_uri, is_remote_filesystem File "/home/godarpi/.cache/pypoetry/virtualenvs/debug-datasets-JuFzTKL--py3.8/lib/python3.8/site-packages/datasets/filesystems/__init__.py", line 30, in <module> def is_remote_filesystem(fs: fsspec.spec.AbstractFileSystem) -> bool: AttributeError: 'EntryPoint' object has no attribute 'AbstractFileSystem' ``` ## Suggested fix `datasets/filesystems/__init__.py`, line 30, replace: ``` def is_remote_filesystem(fs: fsspec.spec.AbstractFileSystem) -> bool: ``` by: ``` def is_remote_filesystem(fs: fsspec.AbstractFileSystem) -> bool: ``` I will come up with a PR soon if this effectively solves the issue. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: WSL2 (Ubuntu 20.04.1 LTS) - Python version: 3.8.5 - PyArrow version: 5.0.0 - `fsspec` version: 2021.8.1 Closed by #2915.
[ -0.0430343486, 0.1729615629, -0.0092811715, 0.3249996006, 0.3824198246, -0.027578136, 0.3696733415, -0.0281330235, 0.0717082471, 0.1155877039, 0.2619345784, 0.4130678475, -0.0622646138, 0.0250749756, -0.1028326377, 0.2277256399, 0.0461320765, 0.1964916587, -0.1118648723, 0.0814422593, -0.2052113712, 0.284779042, -0.20766671, 0.1609047055, -0.3610854745, 0.1328371316, 0.0609395057, 0.3386956155, -0.1826843172, -0.6150017977, 0.3787585497, -0.1575102955, -0.0890944004, 0.1836814284, -0.0001192106, 0.0413611904, 0.1138052121, -0.081654422, -0.2293013632, 0.0555289909, -0.5713313818, -0.1993799657, 0.1814039797, -0.2640390098, 0.4023723602, -0.2299601138, -0.0492568053, -0.720643878, -0.0350703783, 0.4295676649, 0.151214689, -0.0737293884, 0.1342175305, -0.078581512, 0.1368629038, 0.0073615429, -0.2163085043, 0.0665525422, -0.1590744555, -0.1137120426, -0.0247463994, 0.028592892, -0.073725529, 0.2388720959, 0.7355163693, -0.1537969112, 0.4934940934, -0.2031433433, -0.0418940075, 0.1256616861, 0.4556665123, -0.4343681931, -0.3134965301, -0.1376075, 0.0694526061, -0.099931106, 0.2053408474, -0.0052408343, 0.0365756415, 0.1147769988, 0.4034270048, -0.0220960025, -0.1103871539, 0.0099158697, -0.1579840034, -0.1949465275, -0.2566277087, 0.1149913594, -0.0176931862, -0.1435348243, -0.293458432, -0.1421632171, -0.1392901242, 0.0056826379, -0.3321452439, 0.0178288762, 0.2203202993, -0.1728139669, -0.2198076099, 0.2929090858, -0.0524715595, 0.0291536804, 0.1376225799, 0.3627481163, 0.1954966486, 0.1123554483, 0.3818732202, 0.0941143036, 0.2671805918, 0.0105761532, -0.1745803803, -0.0067355181, -0.0322308168, -0.4421686828, 0.196050778, -0.0149847884, 0.7509050965, -0.3278894126, -0.3549762964, 0.2934402525, -0.2196975499, 0.0935777649, -0.0379396789, 0.2039052695, 0.2131644487, 0.5074154139, 0.110865429, 0.1131861806, -0.2682110369, 0.0728461221, -0.0765823871, 0.0951074734, -0.1301978678, 0.1238338947, -0.0917826369, -0.0535966307, 0.3636643291, -0.0692519695, 0.087492682, -0.2760293186, 0.0895308852, -0.1705299467, -0.2756180465, 0.268853128, -0.4858374298, 0.0634655356, 0.0485958643, -0.1812145114, -0.1407059431, -0.0891787559, -0.223374173, -0.2241652012, -0.2036291659, 0.1713668406, -0.227433145, 0.0364288799, -0.2167210281, -0.2242526561, 0.2060965598, -0.0521678776, 0.1591060758, -0.2531750202, -0.255607456, -0.1615860462, -0.0356961787, 0.3934701979, -0.2941275835, -0.1991277188, -0.1428540945, -0.2064636052, -0.1786636561, -0.1581739336, -0.1267938614, 0.4374836683, -0.2819532752, 0.1414128244, 0.2326729596, -0.4089822769, -0.1433600485, 0.2878492177, 0.0954126939, -0.1979203522, 0.1566754282, -0.1284318268, 0.1135182604, -0.1574372202, 0.1001495048, 0.0776153803, 0.1633862257, 0.007081199, -0.0188464597, 0.036375124, -0.1544718444, -0.0118767954, -0.2443443686, 0.0282867458, 0.1455506384, 0.1295337081, -0.1325169504, -0.1437395513, 0.102992475, 0.446297735, 0.5053649545, 0.2926414013, 0.0018090364, -0.3757137656, -0.1410629153, 0.2792656124, 0.0050844387, -0.0705011711, -0.0173224658, -0.0369233266, -0.2272954136, 0.4188956916, -0.0087850615, -0.3483618796, -0.0021392696, 0.1587059945, -0.2076747417, -0.1167936027, -0.2682749331, 0.0590893626, -0.1198496372, 0.0904613882, -0.2748877108, 0.0908167139, -0.0701375529, -0.0042610434, -0.0235086512, 0.3459734023, 0.1507644355, 0.122721754, -0.1112476885, 0.3404074907, 0.5937909484, 0.2090201527, -0.0751314461, 0.3819218576, 0.1279350668, -0.2491389513, -0.0412581488, 0.1454391629, 0.2145802826, -0.0491112433, 0.4379881918, 0.2754839659, 0.2406787723, 0.3727573156, -0.0556240045, 0.1264895946, 0.242703557, -0.1039064452, -0.1578007489, -0.2713132203, 0.1646561325, -0.0192193184, 0.4520537555, 0.2100941837, 0.0325967483, -0.0543766543, -0.0089729214, 0.0672252774, 0.0164770391, -0.0364091173, -0.2857769132, 0.0901333243, 0.2991757691, 0.056403894, 0.7109383345, 0.0651810989, -0.3750181198, 0.1294146478, -0.020994015, -0.0924102291, 0.232258141, 0.1908759773, 0.1215177178, 0.1294934303, 0.2365701497, -0.1311048567, 0.0034811324, -0.2910775244, -0.0515734069, 0.1591396928, -0.7218433022, 0.3073238134, -0.4488064051, 0.0365511924, -0.3674746156, -0.1099792644, 0.039912153, -0.3449760377, -0.1204983741, 0.0795523301, -0.1346967071, 0.1161788553, -0.3224466741, 0.0531995259, -0.0138493739, -0.4038999677, 0.0998631865, -0.1038146392, -0.0749545097, -0.0629806891, 0.2017032653, 0.4358921051, 0.1518811285, 0.2062558383, -0.0725508034, -0.2794296741, -0.1373124123, 0.0227615349, -0.0418572798, 0.7079858184, 0.4984821379, -0.0236271117, 0.334713608, -0.052583456, -0.022778647, -0.0508446507, -0.1497538984, 0.1021313444, -0.0401481725, -0.159014374, -0.1050804704, -0.2614705265, 0.0915697217, -0.2867671847, -0.0876169056, -0.0462019704, 0.0119425636, 0.4248128235, 0.1451478451, 0.4045563936, 0.2662217617, -0.0025793067, -0.0106500452, 0.1442047656, 0.1359658688, -0.1538913995, -0.2444033176, 0.2343038619, -0.2083691955, -0.0294864997, -0.0952343643, -0.4535905719, -0.25282076, -0.1953865737, 0.3757030666, -0.0514751524, -0.1112330109, 0.4003503621, 0.165106073, -0.0839413479, -0.3391038477, -0.2688634694, 0.0547733977, 0.0875356421, -0.0184010845, 0.1420247257, -0.1215976626, -0.1658104211, 0.374792397, 0.2599062324, -0.1457856596, 0.2739960253, -0.1751101613, 0.2564560473, 0.1007364541, -0.3438697755, -0.0130711058, -0.085844934, -0.2883581519, 0.1482560337, 0.0481070541, 0.2359811664, -0.0565045625, 0.2738620937, 0.261869669, -0.2000104636, -0.2162149996, -0.2536721528, 0.3697989285, -0.0000891886, 0.1281913221, 0.1720805168, 0.223276034, 0.0398766212, 0.3417465091, -0.0693826824, -0.1782999188, -0.2556450963, 0.2239852697, -0.149227649, 0.1481966078, 0.118940182, 0.2389065027, 0.0841452926, 0.0368388407, 0.0327930972, -0.0729915872, 0.107063055, -0.0424628891, 0.0199763998, 0.2870316803, 0.0729298294, -0.6140675545, 0.013722131, -0.0617609844, 0.2754461467, 0.1362575889, 0.1719761193, -0.2309075296, -0.0642381907, 0.0313319452, 0.1695097834, -0.0079485681, 0.0463472158, -0.3716210723, -0.3436375558, -0.3559315503, -0.3648687899, -0.1220872253, 0.1460855603, 0.608284533, 0.4415367246, -0.2861590385, -0.1434668005, 0.1396352649, -0.0774980411, -0.0251135901, -0.3337855041, 0.2506456077, 0.0822203383, -0.2227955461, 0.438881278, 0.7413416505, -0.0107491156, -0.6289779544, 0.0093631083, 0.1382879615, 0.2119753063, 0.3244391382, -0.2618112862, 0.1188502163, -0.363063544, -0.1881043762, -0.3619200289, 0.1122573316, 0.260430187, 0.2203682214, 0.0700321048, -0.4762194157, 0.1530032158, -0.1998498738, -0.0410767794, 0.3159738183, 0.1726385653, -0.2884833515, 0.2569683492, 0.0741914511, 0.7808514237, 0.569355309, -0.1249206737, 0.3599708676, -0.2424308062, -0.0542152859, -0.1202839613, -0.1542701572, -0.2387532294, 0.1913201809, -0.0544839613, -0.18723239, 0.705799818, -0.1415283531, -0.1244052649, 0.1290933788, 0.1822909117, -0.1393857598, 0.1165291592, 0.1594590992, 0.0814604759, -0.4633861482, -0.370397687, 0.1029222086, -0.0320705138, 0.0683007315, -0.0650951117, -0.0247276314, -0.0777822435, -0.2294555604, -0.32167539, 0.0439463444, -0.4455278814, 0.3251912594, 0.1124332696, 0.1910561025, 0.2862206399, 0.3550289273, -0.0675555989, 0.1610818058, -0.1015330851, 0.2352689207, 0.1239409521, -0.0098448126, 0.0602400079, -0.227035746, 0.1665501446, -0.0625454262, -0.087164484, -0.1301974505, -0.1741476953, -0.1828138232, 0.1021620706, 0.0863435939, -0.1087821126, -0.3041732013, -0.1606344432, 0.0950354114, 0.1120003834, -0.221758917, 0.0907387882, 0.0084382929, -0.1957605779, 0.1542771906, -0.1038391814, -0.3994420469, 0.0711361542, 0.2759751081, -0.1620726883, 0.1611830741, 0.381315589, -0.1241321787, -0.1759859473, -0.1711550504, 0.4069006741, -0.2283793688, -0.2342585176, 0.094457373, 0.0810037404, -0.2219625711, -0.120175615, 0.5494086742, -0.0067346175, -0.0117426496, 0.0497230366, -0.4125763774, -0.0088035138, 0.0351061262, -0.2378330827, 0.0009349291, -0.0294312052, 0.0923814923, -0.3538710773, 0.3067423701, -0.2256021351, 0.2494763881, -0.0625165701, 0.1239562109, 0.4566327929, 0.0589139163, 0.1883669645, -0.272287935, 0.0895297304, 0.2248979509, -0.2632036507, -0.0840326101, -0.3775589168, 0.1614944786, 0.0968005434, -0.0412362032, 0.1767305434, -0.0410813652, -0.0104668569, -0.1951070875, -0.2089901417, 0.4560409784, -0.3352125585, 0.2502237558, -0.1950406581, 0.1619997472, -0.1527923942, 0.1199247018, 0.0177820474, 0.3442685306, -0.0704655424, 0.2242517322, -0.1402976066, 0.0524093583, -0.1809961349, 0.286863625, -0.2309779823, 0.001652966, 0.0643716156, -0.2714308202, 0.0075101843, 0.1741512418, 0.051411096, 0.3920331597, -0.3538575768, 0.2180334181, 0.1009309292, 0.0863336474, -0.2097055018, 0.0577151366, 0.2425736338, -0.2602337599, 0.0286733247, 0.32045421, 0.3694347143, -0.1328757405, -0.1426737905, 0.1771979332, -0.1642621458, 0.1670656502, 0.2125457823, 0.0809638053, -0.1030210778, -0.0222702622, 0.3884674013, 0.1377125829, 0.2725866735, 0.6721334457, -0.0822553411, 0.4087929726, 0.3187718987, 0.0578281432, -0.0882372782, -0.3026813567, 0.6395866871, 0.0971084386, 0.0903770179, 0.0212999135, 0.1801173836, 0.3370145261, -0.2536561191, -0.0584542826, 0.1592061371, -0.0090570366, -0.0695601627, -0.1169230044, 0.2838150859, 0.0470363572, 0.0753637478, -0.1204745993, 0.099752076, -0.2900804579, 0.4320870042, -0.0070109242, -0.2397236079, -0.4791888297, 0.2327571511, 0.0517540872, 0.2455652803, -0.3497766256, 0.0935187489, -0.2294338495, 0.009274709, 0.2234476656, 0.2447924465, 0.6747469306, 0.2802542746, 0.0613406897, -0.0361753739, -0.1880470365, -0.0251632184, 0.1080025136, 0.0423466004, -0.4021561146, 0.4986065328, 0.3744322956, 0.0134312417, -0.1475075185, -0.3044832051, 0.2202391624, 0.3330422342, -0.5749848485, 0.4656461477, -0.1772824079, 0.2455034703, -0.0323761702, 0.301497072, -0.2611684501, -0.3874022961, 0.4785009027, -0.0177927166, 0.0497761108, -0.1358003616, 0.0600086786, -0.1562406123, 0.4533146918, 0.2446237355, 0.0289993435, -0.0898260772, 0.0194680337, -0.7921037078, 0.09198457, -0.0585266203, -0.1397465765, 0.0542413443, 0.132478714, 0.0207924377, 0.3848239481, -0.055609718, 0.0733580142, 0.3911984265, 0.2168242484, -0.3189651668, -0.1849366575, 0.1098671705, -0.0723528266, 0.1301362216, -0.5238112211, -0.1766480356, 0.0221980996, 0.0278460272, 0.0507279634, -0.2994850278, 0.2058833688, -0.1167204082, 0.4986041486, -0.0291798674, 0.5323891044, -0.144431591, -0.0973311812, -0.1218846962, -0.4071162939, -0.2981791794, 0.0227600001, -0.027476877, 0.1542173773, -0.233344689, -0.0661291555, -0.3824612796, 0.4765124917, 0.0400805809, -0.0109937387, -0.3236443698, 0.3815689981, -0.4507586658, 0.1908286214, -0.4913522601, 0.1234193966, -0.0205241553, 0.3339468837, -0.2606340647, -0.5488712192, 0.4859133363, -0.534476161, -0.1120796576, 0.1190102845, 0.4382752478, 0.0190124456, -0.2618913352, -0.7699956894, 0.0116949342, 0.3630550206, -0.0525717586, -0.2893211842, 0.0585939176, -0.398167491, 0.0147053022, -0.050671231, 0.4721556902, -0.1411389709, 0.0548643433, 0.3597792387, -0.139134869 ]
https://github.com/huggingface/datasets/issues/2913
timit_asr dataset only includes one text phrase
Hi @margotwagner, This bug was fixed in #1995. Upgrading the datasets should work (min v1.8.0 ideally)
## Describe the bug The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases. ## Steps to reproduce the bug Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-english 1. Install the dataset and other packages ```python !pip install datasets>=1.5.0 !pip install transformers==4.4.0 !pip install soundfile !pip install jiwer ``` 2. Load the dataset ```python from datasets import load_dataset, load_metric timit = load_dataset("timit_asr") ``` 3. Remove columns that we don't want ```python timit = timit.remove_columns(["phonetic_detail", "word_detail", "dialect_region", "id", "sentence_type", "speaker_id"]) ``` 4. Write a short function to display some random samples of the dataset. ```python from datasets import ClassLabel import random import pandas as pd from IPython.display import display, HTML def show_random_elements(dataset, num_examples=10): assert num_examples <= len(dataset), "Can't pick more elements than there are in the dataset." picks = [] for _ in range(num_examples): pick = random.randint(0, len(dataset)-1) while pick in picks: pick = random.randint(0, len(dataset)-1) picks.append(pick) df = pd.DataFrame(dataset[picks]) display(HTML(df.to_html())) show_random_elements(timit["train"].remove_columns(["file"])) ``` ## Expected results 10 random different transcription phrases. ## Actual results 10 of the same transcription phrase "Would such an act of refusal be useful?" ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.4.1 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: not listed
16
timit_asr dataset only includes one text phrase ## Describe the bug The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases. ## Steps to reproduce the bug Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-english 1. Install the dataset and other packages ```python !pip install datasets>=1.5.0 !pip install transformers==4.4.0 !pip install soundfile !pip install jiwer ``` 2. Load the dataset ```python from datasets import load_dataset, load_metric timit = load_dataset("timit_asr") ``` 3. Remove columns that we don't want ```python timit = timit.remove_columns(["phonetic_detail", "word_detail", "dialect_region", "id", "sentence_type", "speaker_id"]) ``` 4. Write a short function to display some random samples of the dataset. ```python from datasets import ClassLabel import random import pandas as pd from IPython.display import display, HTML def show_random_elements(dataset, num_examples=10): assert num_examples <= len(dataset), "Can't pick more elements than there are in the dataset." picks = [] for _ in range(num_examples): pick = random.randint(0, len(dataset)-1) while pick in picks: pick = random.randint(0, len(dataset)-1) picks.append(pick) df = pd.DataFrame(dataset[picks]) display(HTML(df.to_html())) show_random_elements(timit["train"].remove_columns(["file"])) ``` ## Expected results 10 random different transcription phrases. ## Actual results 10 of the same transcription phrase "Would such an act of refusal be useful?" ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.4.1 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: not listed Hi @margotwagner, This bug was fixed in #1995. Upgrading the datasets should work (min v1.8.0 ideally)
[ 0.161290288, -0.138053894, -0.0205535926, 0.2273859978, 0.1176241562, -0.1575979143, 0.2670057416, 0.2965668142, -0.5154975653, 0.2804078162, 0.1454417259, 0.4508609474, -0.0935282409, -0.1810210198, 0.0642997622, -0.0575755686, 0.1221427992, 0.2484459728, -0.0715344921, -0.2342915833, 0.1333340406, 0.3007956445, -0.257455945, -0.064661555, -0.2737528682, 0.0847610086, -0.0766698644, -0.2693378031, -0.0532864109, -0.4953400791, 0.1539394706, 0.011122671, 0.1049450785, 0.3338848054, -0.0001155144, -0.0851756856, 0.0369373672, 0.0938122272, -0.2382418513, -0.157761991, -0.0969283953, 0.0886226818, -0.0698391646, -0.0270568896, -0.0834104121, 0.1937476546, 0.0529345647, -0.0981618613, 0.5147064328, 0.2915839553, 0.1400677115, -0.0102435909, -0.252120316, -0.0659528822, 0.3198694587, 0.0313076191, 0.0850752518, -0.1780210286, 0.2137241364, 0.0314790495, -0.0516679287, 0.6180685163, -0.2813329399, 0.3980180621, -0.2359145284, 0.1242306605, -0.3711774647, -0.5308332443, 0.266836673, 0.2161651254, 0.6465566754, -0.2296243757, -0.2044666409, -0.2378615439, 0.3199083507, -0.1560648084, -0.0421698391, -0.0161785055, -0.2728021145, 0.2350625694, -0.0094950655, 0.047647696, -0.2204018831, 0.1288805455, 0.055811543, -0.1074196771, -0.0731363669, 0.1385569125, -0.177100122, 0.0994098634, -0.085863933, 0.2703583241, -0.1442609429, 0.0341251902, -0.149762243, -0.0674901083, 0.1925161034, -0.3049418628, 0.2917183042, -0.0602199472, 0.3855580986, 0.0374377258, -0.1856715977, -0.0881002173, 0.3239292204, 0.019808244, -0.0233677495, 0.1496766508, 0.2298973352, -0.2340689301, -0.2531856596, 0.0737158284, -0.0144180572, 0.2162737995, 0.331879437, -0.265029937, 0.2829249203, -0.367644608, -0.5658828616, 0.0642497912, -0.4400376976, -0.1030385345, -0.2528013289, 0.1816738844, 0.1693309546, 0.3009272516, 0.1449253261, 0.2226763219, 0.0693393499, -0.5628325343, -0.1818621904, 0.0267980024, 0.2098604441, 0.0308408234, 0.211329326, -0.3237065375, 0.3398516774, 0.3417337835, 0.195452705, -0.4315991104, -0.2874112725, -0.1301766485, 0.0255610328, 0.0091858534, -0.0264903046, 0.3916681111, 0.0738202855, -0.0182900447, 0.0072356486, 0.0610072762, -0.106556423, 0.0068646008, 0.2134016603, 0.1364102364, -0.0805880576, -0.167114675, 0.1232486665, 0.3605877757, 0.0779450312, -0.3008698225, 0.0030109661, -0.1827422976, -0.3919641674, -0.0386591218, 0.0773314983, 0.3024609089, -0.3355484903, 0.0954273939, 0.178534463, 0.4213981032, 0.3944750428, 0.2484540939, -0.0465098992, 0.3734385073, -0.1168166548, 0.3001444042, 0.2041984349, -0.4621309042, -0.3920545578, 0.2112352401, -0.049603641, 0.2464142591, 0.1548911184, -0.1627833694, 0.3027338982, 0.1427075267, 0.3759355247, 0.153478384, 0.1457359195, 0.0334793814, -0.2446887195, -0.057892438, 0.0868306831, -0.0131406998, 0.0021537091, 0.0955836996, 0.0370380655, 0.232970655, 0.5271517038, 0.0745838359, 0.0924516246, 0.1029673368, 0.1659648567, -0.1012314931, 0.2239779383, -0.2631005943, 0.2564861178, -0.0488976687, 0.2068272382, 0.2837985456, 0.1540315896, 0.0793671757, -0.3015450537, -0.2188883722, -0.2991884053, -0.3250726461, 0.1145813912, 0.3257373571, -0.0144317094, 0.0420466512, -0.1898579001, 0.3409897685, -0.2203264982, -0.0741857439, 0.0233059432, 0.0991652608, 0.0638567135, -0.2447074801, 0.5248855948, 0.2528992593, 0.18514961, 0.2016844004, -0.1669406295, 0.22355178, -0.0147676235, 0.0219675135, -0.2637168467, -0.3288924992, 0.1099477187, -0.5017575622, -0.1113948897, 0.2344709635, 0.3181717396, -0.0044999369, -0.3036757708, -0.1834709942, 0.1390077174, 0.2569387853, -0.0554442666, -0.0651190057, 0.3011586368, 0.0662527978, -0.3537996113, -0.3246975541, 0.2526897192, -0.234980613, 0.2662216723, 0.0202848148, -0.3417770565, 0.1585986316, 0.3928949833, 0.2245113999, 0.085208714, 0.2943886817, -0.2468326539, -0.027017273, -0.1227289811, 0.0949118286, 0.2907651365, 0.2881050408, 0.0543022901, -0.3764547706, -0.1287488788, -0.1132321432, 0.1393357515, -0.1307561845, -0.3556297719, 0.4351170063, 0.3585450351, 0.0863876268, -0.4493839145, -0.1341284662, -0.1424040794, 0.4703677297, -0.3349600732, -0.2316320539, -0.4356057346, -0.1205524206, -0.109005712, 0.0662912875, 0.0797044486, 0.225550577, 0.2190566808, -0.0127121434, 0.0054567931, 0.1367991865, 0.1719908118, 0.2340619862, 0.0712051392, 0.1117983311, 0.086305052, 0.3191404045, -0.306956917, -0.0242702272, 0.0259727612, 0.271612525, 0.1074295118, -0.1422471404, -0.1639021039, -0.4067965448, 0.0590180866, 0.2675643563, -0.3301686049, 0.5113489628, 0.1133633777, 0.1602485478, -0.2251659632, -0.3130813539, 0.0026724054, -0.0268870983, -0.1686861217, 0.3555683196, 0.0829433203, -0.0056142341, -0.0482558794, -0.698974669, 0.099392809, -0.2500089407, 0.2359433323, -0.0328674652, 0.2103785425, 0.3641358316, 0.0606071204, 0.0812700838, -0.0587117635, 0.2053699046, -0.410209775, -0.2545935214, 0.3561107218, 0.2606044412, -0.3348694146, -0.3405695558, 0.0509579033, 0.2652952075, -0.0322290994, -0.4001087248, 0.1003541723, -0.2674658895, 0.1453480273, -0.2972603142, 0.2826198339, 0.3854675591, 0.0129939336, -0.1495047212, -0.1692215204, -0.1078334898, 0.2658356428, 0.3553734422, 0.0058843573, 0.1011472642, 0.0699137822, -0.0593266487, 0.3506978154, 0.6459594965, 0.2025162727, 0.2600066662, -0.1765539348, 0.0942354053, -0.0324934721, -0.3995798528, 0.0270797946, -0.1173247173, -0.062567167, 0.4981202781, -0.0899957195, 0.0536311306, -0.1695882976, -0.0572774038, -0.3290627599, -0.1686403602, 0.0674927011, -0.2359398454, 0.1839738041, 0.1747753173, 0.0528291985, 0.1619518846, 0.0347351544, -0.2861667871, -0.2988380492, 0.2851738334, -0.1499728858, -0.0820301399, -0.2836113274, -0.377288729, -0.1241017282, 0.1385834366, 0.5095545053, -0.2117005289, -0.037520647, 0.3600184023, 0.291478008, 0.3810289502, -0.3069941998, 0.0908769667, 0.0103903497, 0.2287908047, 0.0055077169, 0.0054613417, -0.5205008984, -0.1967586279, -0.0475005209, -0.043032378, -0.1668928564, -0.0080181081, 0.108959198, 0.3927445412, -0.0097480956, -0.2408112288, -0.2557696104, -0.0757930055, -0.3301421404, 0.1615659893, 0.3422310054, 0.0443936288, -0.1651335955, -0.1203253195, 0.1603984088, -0.0627515167, 0.5332366228, 0.0798594728, 0.375176698, 0.0739652514, 0.3011747897, 0.2748407722, -0.3577797413, -0.2591435611, 0.3608151674, 0.100969635, -0.1420252174, -0.00367438, -0.3468615413, 0.3289579153, 0.4931568503, -0.223191008, 0.2419292778, -0.2970614135, 0.2568941116, -0.1529492587, 0.0957464501, 0.3195284307, -0.0749837682, -0.0751821995, -0.410286963, 0.3822805583, -0.0364946276, -0.1979487538, 0.3445512056, 0.0909191668, -0.3103821576, 0.4712514579, -0.2578842938, 0.8118340373, 0.2264072746, 0.3666303754, 0.3155016303, 0.1381517202, 0.3261640966, -0.1960099638, 0.0902330428, -0.0220177118, -0.0018170826, -0.0215603653, 0.0583430231, -0.0778571218, -0.0417594425, -0.5769283772, 0.1775290817, 0.0647163838, 0.0288711693, 0.1868025362, -0.0118521098, -0.1294962317, -0.1064071804, 0.1252996773, 0.0325710885, -0.3839387298, 0.3074729145, 0.3099324405, -0.0242960695, 0.0314041749, -0.5837308764, -0.8224813938, -0.0301681384, -0.0825177506, -0.2259411067, -0.1996800154, -0.3336216509, 0.3681984842, 0.2585997581, 0.1915538907, 0.3256590664, -0.1379685849, -0.0852642953, 0.3682431877, 0.2776513696, -0.2679565549, -0.0255918875, 0.1445183456, -0.0860315636, -0.3883327842, 0.1766039878, 0.0551586859, 0.0989629775, -0.3880658448, 0.2538315058, -0.1146805435, -0.2331590801, 0.0857373253, 0.4289047122, 0.1415170133, -0.5119704008, 0.10320732, 0.1241723523, -0.4588638544, 0.3286851645, 0.1725837886, -0.4755195975, -0.0637625083, 0.259340167, 0.1283604354, 0.0002506027, 0.6646648645, -0.0414828882, 0.0483881421, -0.37047562, 0.0406970792, -0.0209288169, -0.2641952336, 0.1791121364, 0.0586630926, 0.1739625186, -0.2265277505, 0.2535494268, 0.0265137423, 0.204802826, -0.2814756632, -0.3617306948, -0.0619779229, -0.0314538814, 0.1234360188, 0.0552398637, -0.2911967039, 0.1181857958, 0.0688160807, 0.3186088502, -0.2981917858, 0.0059745917, -0.0517939329, 0.2173203677, -0.0840429664, 0.0813204795, -0.0378096215, 0.0851734653, 0.2000400573, 0.3185155094, 0.0672922209, -0.1598699093, -0.3062146604, 0.1838445365, 0.0417443737, 0.1562646031, -0.040768452, 0.100105688, 0.1492390484, -0.1337077022, -0.1010111123, 0.334582895, 0.1253624856, 0.2183783352, -0.0296323262, 0.0370717831, 0.1851567924, -0.1598648131, -0.1839772761, -0.172459051, 0.3399853706, 0.1806136072, 0.0487441346, -0.0481960177, 0.1186248809, 0.0399239436, -0.1340517849, 0.1186952814, -0.0778344646, -0.2655762732, 0.1333703995, 0.2876859903, -0.1194795594, 0.3786883652, -0.3459939361, -0.1118993759, 0.091195181, 0.235143885, -0.2654986084, -0.1237113848, -0.3232501447, -0.1065506563, -0.0583089553, 0.2784046829, -0.0598313436, -0.4723803997, 0.121467337, -0.0649383292, 0.336020112, -0.5360029936, -0.0734213144, 0.3985144794, 0.0149740381, -0.3611198664, -0.1933412552, -0.0151967062, 0.0208013449, 0.5450986028, -0.3675437868, 0.1373579353, -0.3386060596, 0.0263877269, 0.191548273, 0.0256050285, -0.0382200703, 0.4056419134, -0.3271881938, -0.0489630923, -0.0716247186, 0.3050477505, -0.1176727563, 0.0334460959, -0.1280483007, -0.0514146574, -0.1239193901, -0.1248619258, -0.3380397856, -0.2734287083, -0.2303761989, 0.0061822413, 0.0975418091, -0.0125555322, 0.1405136287, 0.1916218102, -0.2668848932, -0.5332419276, -0.1980937272, -0.0377839021, 0.1720763147, -0.3900322318, 0.3403875828, 0.3084276021, -0.221769765, 0.2584382296, 0.2433644086, 0.519982934, 0.0715812668, 0.0334475301, 0.1065192446, -0.5706885457, -0.0919026062, -0.0517226532, 0.3297682703, -0.1242420226, 0.0587560534, 0.0218634959, 0.0158726722, -0.095639661, 0.0293477289, 0.2285464853, -0.0756259263, -0.563256681, 0.2190777361, -0.1411624253, 0.1117327288, 0.0406589434, 0.0749845207, -0.4736695588, 0.4417389929, 0.3421675265, 0.0575963221, -0.0106266811, 0.0021905343, 0.0813886747, -0.1263748854, -0.1126130521, 0.2673044801, 0.1579869688, -0.2770343423, -0.1591356099, -0.6735790372, -0.071482718, -0.0488048792, -0.0049527902, 0.0006292545, 0.1189806312, 0.1586837918, 0.1362603009, 0.0692648441, -0.0260408036, -0.5322327018, 0.3291485906, -0.215462625, -0.0053817439, -0.0877875164, 0.4366607666, 0.0414892845, -0.1064981595, 0.0108353356, 0.094691515, 0.0340188518, 0.0655476525, 0.0059462963, 0.017562082, -0.1206619516, 0.1582386047, 0.1423452646, 0.1708153635, -0.234853968, 0.1895660013, -0.2832585871, 0.0292929802, -0.1982437521, 0.1561561525, 0.2698151469, 0.5158427358, -0.183451429, -0.0686847195, -0.0636009946, 0.165361613, 0.1112443656, -0.0649597496, -0.1914123297, 0.089769423, -0.0087000672, 0.2714968026, -0.2622262836, 0.1059425324, 0.0038290906, 0.0026387305, -0.4920392334, -0.7109149694, 0.4522462487, -0.4033147991, -0.5287759304, -0.0796565562, 0.590672791, 0.2403544337, -0.032153476, -0.7086960673, -0.0359898657, 0.3959985971, 0.2443489283, -0.3021709323, 0.2129863203, 0.1219399646, 0.0085307239, 0.0144249219, 0.6226139069, 0.3105249107, -0.2327545434, 0.2679713964, -0.4604581892 ]
https://github.com/huggingface/datasets/issues/2913
timit_asr dataset only includes one text phrase
Hi @margotwagner, Yes, as @bhavitvyamalik has commented, this bug was fixed in `datasets` version 1.5.0. You need to update it, as your current version is 1.4.1: > Environment info > - `datasets` version: 1.4.1
## Describe the bug The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases. ## Steps to reproduce the bug Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-english 1. Install the dataset and other packages ```python !pip install datasets>=1.5.0 !pip install transformers==4.4.0 !pip install soundfile !pip install jiwer ``` 2. Load the dataset ```python from datasets import load_dataset, load_metric timit = load_dataset("timit_asr") ``` 3. Remove columns that we don't want ```python timit = timit.remove_columns(["phonetic_detail", "word_detail", "dialect_region", "id", "sentence_type", "speaker_id"]) ``` 4. Write a short function to display some random samples of the dataset. ```python from datasets import ClassLabel import random import pandas as pd from IPython.display import display, HTML def show_random_elements(dataset, num_examples=10): assert num_examples <= len(dataset), "Can't pick more elements than there are in the dataset." picks = [] for _ in range(num_examples): pick = random.randint(0, len(dataset)-1) while pick in picks: pick = random.randint(0, len(dataset)-1) picks.append(pick) df = pd.DataFrame(dataset[picks]) display(HTML(df.to_html())) show_random_elements(timit["train"].remove_columns(["file"])) ``` ## Expected results 10 random different transcription phrases. ## Actual results 10 of the same transcription phrase "Would such an act of refusal be useful?" ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.4.1 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: not listed
34
timit_asr dataset only includes one text phrase ## Describe the bug The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases. ## Steps to reproduce the bug Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-english 1. Install the dataset and other packages ```python !pip install datasets>=1.5.0 !pip install transformers==4.4.0 !pip install soundfile !pip install jiwer ``` 2. Load the dataset ```python from datasets import load_dataset, load_metric timit = load_dataset("timit_asr") ``` 3. Remove columns that we don't want ```python timit = timit.remove_columns(["phonetic_detail", "word_detail", "dialect_region", "id", "sentence_type", "speaker_id"]) ``` 4. Write a short function to display some random samples of the dataset. ```python from datasets import ClassLabel import random import pandas as pd from IPython.display import display, HTML def show_random_elements(dataset, num_examples=10): assert num_examples <= len(dataset), "Can't pick more elements than there are in the dataset." picks = [] for _ in range(num_examples): pick = random.randint(0, len(dataset)-1) while pick in picks: pick = random.randint(0, len(dataset)-1) picks.append(pick) df = pd.DataFrame(dataset[picks]) display(HTML(df.to_html())) show_random_elements(timit["train"].remove_columns(["file"])) ``` ## Expected results 10 random different transcription phrases. ## Actual results 10 of the same transcription phrase "Would such an act of refusal be useful?" ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.4.1 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: not listed Hi @margotwagner, Yes, as @bhavitvyamalik has commented, this bug was fixed in `datasets` version 1.5.0. You need to update it, as your current version is 1.4.1: > Environment info > - `datasets` version: 1.4.1
[ 0.161290288, -0.138053894, -0.0205535926, 0.2273859978, 0.1176241562, -0.1575979143, 0.2670057416, 0.2965668142, -0.5154975653, 0.2804078162, 0.1454417259, 0.4508609474, -0.0935282409, -0.1810210198, 0.0642997622, -0.0575755686, 0.1221427992, 0.2484459728, -0.0715344921, -0.2342915833, 0.1333340406, 0.3007956445, -0.257455945, -0.064661555, -0.2737528682, 0.0847610086, -0.0766698644, -0.2693378031, -0.0532864109, -0.4953400791, 0.1539394706, 0.011122671, 0.1049450785, 0.3338848054, -0.0001155144, -0.0851756856, 0.0369373672, 0.0938122272, -0.2382418513, -0.157761991, -0.0969283953, 0.0886226818, -0.0698391646, -0.0270568896, -0.0834104121, 0.1937476546, 0.0529345647, -0.0981618613, 0.5147064328, 0.2915839553, 0.1400677115, -0.0102435909, -0.252120316, -0.0659528822, 0.3198694587, 0.0313076191, 0.0850752518, -0.1780210286, 0.2137241364, 0.0314790495, -0.0516679287, 0.6180685163, -0.2813329399, 0.3980180621, -0.2359145284, 0.1242306605, -0.3711774647, -0.5308332443, 0.266836673, 0.2161651254, 0.6465566754, -0.2296243757, -0.2044666409, -0.2378615439, 0.3199083507, -0.1560648084, -0.0421698391, -0.0161785055, -0.2728021145, 0.2350625694, -0.0094950655, 0.047647696, -0.2204018831, 0.1288805455, 0.055811543, -0.1074196771, -0.0731363669, 0.1385569125, -0.177100122, 0.0994098634, -0.085863933, 0.2703583241, -0.1442609429, 0.0341251902, -0.149762243, -0.0674901083, 0.1925161034, -0.3049418628, 0.2917183042, -0.0602199472, 0.3855580986, 0.0374377258, -0.1856715977, -0.0881002173, 0.3239292204, 0.019808244, -0.0233677495, 0.1496766508, 0.2298973352, -0.2340689301, -0.2531856596, 0.0737158284, -0.0144180572, 0.2162737995, 0.331879437, -0.265029937, 0.2829249203, -0.367644608, -0.5658828616, 0.0642497912, -0.4400376976, -0.1030385345, -0.2528013289, 0.1816738844, 0.1693309546, 0.3009272516, 0.1449253261, 0.2226763219, 0.0693393499, -0.5628325343, -0.1818621904, 0.0267980024, 0.2098604441, 0.0308408234, 0.211329326, -0.3237065375, 0.3398516774, 0.3417337835, 0.195452705, -0.4315991104, -0.2874112725, -0.1301766485, 0.0255610328, 0.0091858534, -0.0264903046, 0.3916681111, 0.0738202855, -0.0182900447, 0.0072356486, 0.0610072762, -0.106556423, 0.0068646008, 0.2134016603, 0.1364102364, -0.0805880576, -0.167114675, 0.1232486665, 0.3605877757, 0.0779450312, -0.3008698225, 0.0030109661, -0.1827422976, -0.3919641674, -0.0386591218, 0.0773314983, 0.3024609089, -0.3355484903, 0.0954273939, 0.178534463, 0.4213981032, 0.3944750428, 0.2484540939, -0.0465098992, 0.3734385073, -0.1168166548, 0.3001444042, 0.2041984349, -0.4621309042, -0.3920545578, 0.2112352401, -0.049603641, 0.2464142591, 0.1548911184, -0.1627833694, 0.3027338982, 0.1427075267, 0.3759355247, 0.153478384, 0.1457359195, 0.0334793814, -0.2446887195, -0.057892438, 0.0868306831, -0.0131406998, 0.0021537091, 0.0955836996, 0.0370380655, 0.232970655, 0.5271517038, 0.0745838359, 0.0924516246, 0.1029673368, 0.1659648567, -0.1012314931, 0.2239779383, -0.2631005943, 0.2564861178, -0.0488976687, 0.2068272382, 0.2837985456, 0.1540315896, 0.0793671757, -0.3015450537, -0.2188883722, -0.2991884053, -0.3250726461, 0.1145813912, 0.3257373571, -0.0144317094, 0.0420466512, -0.1898579001, 0.3409897685, -0.2203264982, -0.0741857439, 0.0233059432, 0.0991652608, 0.0638567135, -0.2447074801, 0.5248855948, 0.2528992593, 0.18514961, 0.2016844004, -0.1669406295, 0.22355178, -0.0147676235, 0.0219675135, -0.2637168467, -0.3288924992, 0.1099477187, -0.5017575622, -0.1113948897, 0.2344709635, 0.3181717396, -0.0044999369, -0.3036757708, -0.1834709942, 0.1390077174, 0.2569387853, -0.0554442666, -0.0651190057, 0.3011586368, 0.0662527978, -0.3537996113, -0.3246975541, 0.2526897192, -0.234980613, 0.2662216723, 0.0202848148, -0.3417770565, 0.1585986316, 0.3928949833, 0.2245113999, 0.085208714, 0.2943886817, -0.2468326539, -0.027017273, -0.1227289811, 0.0949118286, 0.2907651365, 0.2881050408, 0.0543022901, -0.3764547706, -0.1287488788, -0.1132321432, 0.1393357515, -0.1307561845, -0.3556297719, 0.4351170063, 0.3585450351, 0.0863876268, -0.4493839145, -0.1341284662, -0.1424040794, 0.4703677297, -0.3349600732, -0.2316320539, -0.4356057346, -0.1205524206, -0.109005712, 0.0662912875, 0.0797044486, 0.225550577, 0.2190566808, -0.0127121434, 0.0054567931, 0.1367991865, 0.1719908118, 0.2340619862, 0.0712051392, 0.1117983311, 0.086305052, 0.3191404045, -0.306956917, -0.0242702272, 0.0259727612, 0.271612525, 0.1074295118, -0.1422471404, -0.1639021039, -0.4067965448, 0.0590180866, 0.2675643563, -0.3301686049, 0.5113489628, 0.1133633777, 0.1602485478, -0.2251659632, -0.3130813539, 0.0026724054, -0.0268870983, -0.1686861217, 0.3555683196, 0.0829433203, -0.0056142341, -0.0482558794, -0.698974669, 0.099392809, -0.2500089407, 0.2359433323, -0.0328674652, 0.2103785425, 0.3641358316, 0.0606071204, 0.0812700838, -0.0587117635, 0.2053699046, -0.410209775, -0.2545935214, 0.3561107218, 0.2606044412, -0.3348694146, -0.3405695558, 0.0509579033, 0.2652952075, -0.0322290994, -0.4001087248, 0.1003541723, -0.2674658895, 0.1453480273, -0.2972603142, 0.2826198339, 0.3854675591, 0.0129939336, -0.1495047212, -0.1692215204, -0.1078334898, 0.2658356428, 0.3553734422, 0.0058843573, 0.1011472642, 0.0699137822, -0.0593266487, 0.3506978154, 0.6459594965, 0.2025162727, 0.2600066662, -0.1765539348, 0.0942354053, -0.0324934721, -0.3995798528, 0.0270797946, -0.1173247173, -0.062567167, 0.4981202781, -0.0899957195, 0.0536311306, -0.1695882976, -0.0572774038, -0.3290627599, -0.1686403602, 0.0674927011, -0.2359398454, 0.1839738041, 0.1747753173, 0.0528291985, 0.1619518846, 0.0347351544, -0.2861667871, -0.2988380492, 0.2851738334, -0.1499728858, -0.0820301399, -0.2836113274, -0.377288729, -0.1241017282, 0.1385834366, 0.5095545053, -0.2117005289, -0.037520647, 0.3600184023, 0.291478008, 0.3810289502, -0.3069941998, 0.0908769667, 0.0103903497, 0.2287908047, 0.0055077169, 0.0054613417, -0.5205008984, -0.1967586279, -0.0475005209, -0.043032378, -0.1668928564, -0.0080181081, 0.108959198, 0.3927445412, -0.0097480956, -0.2408112288, -0.2557696104, -0.0757930055, -0.3301421404, 0.1615659893, 0.3422310054, 0.0443936288, -0.1651335955, -0.1203253195, 0.1603984088, -0.0627515167, 0.5332366228, 0.0798594728, 0.375176698, 0.0739652514, 0.3011747897, 0.2748407722, -0.3577797413, -0.2591435611, 0.3608151674, 0.100969635, -0.1420252174, -0.00367438, -0.3468615413, 0.3289579153, 0.4931568503, -0.223191008, 0.2419292778, -0.2970614135, 0.2568941116, -0.1529492587, 0.0957464501, 0.3195284307, -0.0749837682, -0.0751821995, -0.410286963, 0.3822805583, -0.0364946276, -0.1979487538, 0.3445512056, 0.0909191668, -0.3103821576, 0.4712514579, -0.2578842938, 0.8118340373, 0.2264072746, 0.3666303754, 0.3155016303, 0.1381517202, 0.3261640966, -0.1960099638, 0.0902330428, -0.0220177118, -0.0018170826, -0.0215603653, 0.0583430231, -0.0778571218, -0.0417594425, -0.5769283772, 0.1775290817, 0.0647163838, 0.0288711693, 0.1868025362, -0.0118521098, -0.1294962317, -0.1064071804, 0.1252996773, 0.0325710885, -0.3839387298, 0.3074729145, 0.3099324405, -0.0242960695, 0.0314041749, -0.5837308764, -0.8224813938, -0.0301681384, -0.0825177506, -0.2259411067, -0.1996800154, -0.3336216509, 0.3681984842, 0.2585997581, 0.1915538907, 0.3256590664, -0.1379685849, -0.0852642953, 0.3682431877, 0.2776513696, -0.2679565549, -0.0255918875, 0.1445183456, -0.0860315636, -0.3883327842, 0.1766039878, 0.0551586859, 0.0989629775, -0.3880658448, 0.2538315058, -0.1146805435, -0.2331590801, 0.0857373253, 0.4289047122, 0.1415170133, -0.5119704008, 0.10320732, 0.1241723523, -0.4588638544, 0.3286851645, 0.1725837886, -0.4755195975, -0.0637625083, 0.259340167, 0.1283604354, 0.0002506027, 0.6646648645, -0.0414828882, 0.0483881421, -0.37047562, 0.0406970792, -0.0209288169, -0.2641952336, 0.1791121364, 0.0586630926, 0.1739625186, -0.2265277505, 0.2535494268, 0.0265137423, 0.204802826, -0.2814756632, -0.3617306948, -0.0619779229, -0.0314538814, 0.1234360188, 0.0552398637, -0.2911967039, 0.1181857958, 0.0688160807, 0.3186088502, -0.2981917858, 0.0059745917, -0.0517939329, 0.2173203677, -0.0840429664, 0.0813204795, -0.0378096215, 0.0851734653, 0.2000400573, 0.3185155094, 0.0672922209, -0.1598699093, -0.3062146604, 0.1838445365, 0.0417443737, 0.1562646031, -0.040768452, 0.100105688, 0.1492390484, -0.1337077022, -0.1010111123, 0.334582895, 0.1253624856, 0.2183783352, -0.0296323262, 0.0370717831, 0.1851567924, -0.1598648131, -0.1839772761, -0.172459051, 0.3399853706, 0.1806136072, 0.0487441346, -0.0481960177, 0.1186248809, 0.0399239436, -0.1340517849, 0.1186952814, -0.0778344646, -0.2655762732, 0.1333703995, 0.2876859903, -0.1194795594, 0.3786883652, -0.3459939361, -0.1118993759, 0.091195181, 0.235143885, -0.2654986084, -0.1237113848, -0.3232501447, -0.1065506563, -0.0583089553, 0.2784046829, -0.0598313436, -0.4723803997, 0.121467337, -0.0649383292, 0.336020112, -0.5360029936, -0.0734213144, 0.3985144794, 0.0149740381, -0.3611198664, -0.1933412552, -0.0151967062, 0.0208013449, 0.5450986028, -0.3675437868, 0.1373579353, -0.3386060596, 0.0263877269, 0.191548273, 0.0256050285, -0.0382200703, 0.4056419134, -0.3271881938, -0.0489630923, -0.0716247186, 0.3050477505, -0.1176727563, 0.0334460959, -0.1280483007, -0.0514146574, -0.1239193901, -0.1248619258, -0.3380397856, -0.2734287083, -0.2303761989, 0.0061822413, 0.0975418091, -0.0125555322, 0.1405136287, 0.1916218102, -0.2668848932, -0.5332419276, -0.1980937272, -0.0377839021, 0.1720763147, -0.3900322318, 0.3403875828, 0.3084276021, -0.221769765, 0.2584382296, 0.2433644086, 0.519982934, 0.0715812668, 0.0334475301, 0.1065192446, -0.5706885457, -0.0919026062, -0.0517226532, 0.3297682703, -0.1242420226, 0.0587560534, 0.0218634959, 0.0158726722, -0.095639661, 0.0293477289, 0.2285464853, -0.0756259263, -0.563256681, 0.2190777361, -0.1411624253, 0.1117327288, 0.0406589434, 0.0749845207, -0.4736695588, 0.4417389929, 0.3421675265, 0.0575963221, -0.0106266811, 0.0021905343, 0.0813886747, -0.1263748854, -0.1126130521, 0.2673044801, 0.1579869688, -0.2770343423, -0.1591356099, -0.6735790372, -0.071482718, -0.0488048792, -0.0049527902, 0.0006292545, 0.1189806312, 0.1586837918, 0.1362603009, 0.0692648441, -0.0260408036, -0.5322327018, 0.3291485906, -0.215462625, -0.0053817439, -0.0877875164, 0.4366607666, 0.0414892845, -0.1064981595, 0.0108353356, 0.094691515, 0.0340188518, 0.0655476525, 0.0059462963, 0.017562082, -0.1206619516, 0.1582386047, 0.1423452646, 0.1708153635, -0.234853968, 0.1895660013, -0.2832585871, 0.0292929802, -0.1982437521, 0.1561561525, 0.2698151469, 0.5158427358, -0.183451429, -0.0686847195, -0.0636009946, 0.165361613, 0.1112443656, -0.0649597496, -0.1914123297, 0.089769423, -0.0087000672, 0.2714968026, -0.2622262836, 0.1059425324, 0.0038290906, 0.0026387305, -0.4920392334, -0.7109149694, 0.4522462487, -0.4033147991, -0.5287759304, -0.0796565562, 0.590672791, 0.2403544337, -0.032153476, -0.7086960673, -0.0359898657, 0.3959985971, 0.2443489283, -0.3021709323, 0.2129863203, 0.1219399646, 0.0085307239, 0.0144249219, 0.6226139069, 0.3105249107, -0.2327545434, 0.2679713964, -0.4604581892 ]
https://github.com/huggingface/datasets/issues/2904
FORCE_REDOWNLOAD does not work
Hi ! Thanks for reporting. The error seems to happen only if you use compressed files. The second dataset is prepared in another dataset cache directory than the first - which is normal, since the source file is different. However, it doesn't uncompress the new data file because it finds the old uncompressed data in the extraction cache directory. If we fix the extraction cache mechanism to uncompress a local file if it changed then it should fix the issue. Currently the extraction cache mechanism only takes into account the path of the compressed file, which is an issue.
## Describe the bug With GenerateMode.FORCE_REDOWNLOAD, the documentation says +------------------------------------+-----------+---------+ | | Downloads | Dataset | +====================================+===========+=========+ | `REUSE_DATASET_IF_EXISTS` (default)| Reuse | Reuse | +------------------------------------+-----------+---------+ | `REUSE_CACHE_IF_EXISTS` | Reuse | Fresh | +------------------------------------+-----------+---------+ | `FORCE_REDOWNLOAD` | Fresh | Fresh | +------------------------------------+-----------+---------+ However, the old dataset is loaded even when FORCE_REDOWNLOAD is chosen. ## Steps to reproduce the bug ```python import pandas as pd from datasets import load_dataset, GenerateMode pd.DataFrame(range(5), columns=['numbers']).to_csv('/tmp/test.tsv.gz', index=False) ee = load_dataset('csv', data_files=['/tmp/test.tsv.gz'], delimiter='\t', split='train', download_mode=GenerateMode.FORCE_REDOWNLOAD) print(ee) pd.DataFrame(range(10), columns=['numerals']).to_csv('/tmp/test.tsv.gz', index=False) ee = load_dataset('csv', data_files=['/tmp/test.tsv.gz'], delimiter='\t', split='train', download_mode=GenerateMode.FORCE_REDOWNLOAD) print(ee) ``` ## Expected results Dataset({ features: ['numbers'], num_rows: 5 }) Dataset({ features: ['numerals'], num_rows: 10 }) ## Actual results Dataset({ features: ['numbers'], num_rows: 5 }) Dataset({ features: ['numbers'], num_rows: 5 }) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.0 - Platform: Linux-4.14.181-108.257.amzn1.x86_64-x86_64-with-glibc2.10 - Python version: 3.7.10 - PyArrow version: 3.0.0
99
FORCE_REDOWNLOAD does not work ## Describe the bug With GenerateMode.FORCE_REDOWNLOAD, the documentation says +------------------------------------+-----------+---------+ | | Downloads | Dataset | +====================================+===========+=========+ | `REUSE_DATASET_IF_EXISTS` (default)| Reuse | Reuse | +------------------------------------+-----------+---------+ | `REUSE_CACHE_IF_EXISTS` | Reuse | Fresh | +------------------------------------+-----------+---------+ | `FORCE_REDOWNLOAD` | Fresh | Fresh | +------------------------------------+-----------+---------+ However, the old dataset is loaded even when FORCE_REDOWNLOAD is chosen. ## Steps to reproduce the bug ```python import pandas as pd from datasets import load_dataset, GenerateMode pd.DataFrame(range(5), columns=['numbers']).to_csv('/tmp/test.tsv.gz', index=False) ee = load_dataset('csv', data_files=['/tmp/test.tsv.gz'], delimiter='\t', split='train', download_mode=GenerateMode.FORCE_REDOWNLOAD) print(ee) pd.DataFrame(range(10), columns=['numerals']).to_csv('/tmp/test.tsv.gz', index=False) ee = load_dataset('csv', data_files=['/tmp/test.tsv.gz'], delimiter='\t', split='train', download_mode=GenerateMode.FORCE_REDOWNLOAD) print(ee) ``` ## Expected results Dataset({ features: ['numbers'], num_rows: 5 }) Dataset({ features: ['numerals'], num_rows: 10 }) ## Actual results Dataset({ features: ['numbers'], num_rows: 5 }) Dataset({ features: ['numbers'], num_rows: 5 }) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.0 - Platform: Linux-4.14.181-108.257.amzn1.x86_64-x86_64-with-glibc2.10 - Python version: 3.7.10 - PyArrow version: 3.0.0 Hi ! Thanks for reporting. The error seems to happen only if you use compressed files. The second dataset is prepared in another dataset cache directory than the first - which is normal, since the source file is different. However, it doesn't uncompress the new data file because it finds the old uncompressed data in the extraction cache directory. If we fix the extraction cache mechanism to uncompress a local file if it changed then it should fix the issue. Currently the extraction cache mechanism only takes into account the path of the compressed file, which is an issue.
[ -0.1253399998, 0.0207806267, 0.0185128842, 0.0257142521, 0.1821040809, 0.0251934566, 0.4788660109, 0.2438331693, 0.145796001, -0.2338699996, -0.1162827983, 0.2687395215, 0.0850747079, 0.1121127084, -0.0132031068, 0.3137487769, 0.1101020277, 0.2144826502, -0.0722493976, -0.0051923986, -0.2910993099, 0.0634416714, -0.1833185554, -0.2195639163, -0.2065767497, 0.2937990129, -0.0426936708, 0.3026081324, 0.0084062209, -0.3731202781, 0.1836812794, 0.2550069988, 0.1820975393, 0.6611076593, -0.000109716, 0.0617883578, 0.1586239785, -0.1793150753, -0.1704429984, -0.1858083606, 0.0419964381, -0.0455286205, -0.3461463749, -0.0842089579, -0.0005326021, -0.2207529545, -0.1748757958, -0.346149832, 0.5304936767, 0.4028010368, 0.2320071906, -0.1104161516, 0.1202409416, -0.0721178129, 0.1787120998, 0.1414143443, -0.0699524358, 0.3557813466, 0.1045252755, -0.2072234303, -0.090631254, 0.071447365, -0.1301329136, 0.0515931137, -0.100776881, -0.0266386643, 0.3280929923, -0.1360899806, 0.0856568739, 0.1706219614, 0.60730654, -0.3377125561, -0.4172843397, 0.0072846375, 0.0183145087, -0.2442766875, 0.1650239527, 0.1792488247, -0.0074186656, 0.368666321, -0.0126197841, -0.0254521314, 0.0721380934, -0.1948064566, -0.0308580399, -0.117819868, -0.1004166082, -0.0362135768, 0.0516206622, 0.0602480508, 0.4213585556, -0.021616118, -0.0566806123, 0.0342854224, -0.029152602, -0.1342204958, 0.2153061479, -0.3018356264, 0.0747370049, -0.0281923842, -0.0764476284, -0.1077359319, -0.0592024475, 0.04897983, 0.0738615543, 0.2261448056, -0.1387252212, -0.090120174, 0.3910107613, 0.1767412573, -0.251378119, -0.0726185068, 0.0294129029, -0.2027270049, 0.5261009336, -0.0647600591, 0.2614033818, -0.1472218335, -0.4044618905, -0.0181814078, -0.1070784777, 0.0032655229, -0.2742642164, 0.1767624319, 0.0207748469, 0.3530659974, 0.1341454834, 0.1856252104, 0.0581398085, -0.206356883, -0.2226337641, -0.1226871684, -0.3091842234, 0.0251519568, 0.2947835922, -0.1708823442, 0.3440055251, 0.5470414758, -0.3297725916, -0.5027301908, -0.0621353462, -0.0314323269, 0.145252198, 0.2964736819, -0.0633033141, -0.0863981768, 0.2666994929, -0.0901367441, -0.0168399569, 0.3552974463, -0.0914471522, -0.3069287539, 0.1436540186, 0.1975634098, 0.0511063114, 0.1958488077, -0.127950877, 0.0155278603, 0.3042720556, -0.0705190748, -0.0457962081, -0.0500780307, -0.0136534544, -0.2484514862, 0.0476663969, 0.7337824702, -0.4681162834, 0.0081418594, -0.2922013104, -0.0890840143, 0.2404547036, 0.0785243809, 0.0047035967, 0.0423925631, -0.4686902165, -0.3603310585, 0.1667583287, -0.1669529229, -0.4369600415, 0.0058205375, -0.2142421305, 0.2575328946, 0.1665146351, -0.0449789762, -0.1501356214, -0.0172337554, 0.0970478505, 0.2490073442, 0.0923939124, 0.044823505, -0.3246170282, -0.288821131, 0.0455681123, -0.1329662651, 0.2855156362, 0.405680865, 0.3521436155, 0.166620627, 0.3699389398, 0.0625928491, 0.0155102359, 0.0143866315, 0.3367364407, -0.0180097409, 0.0330760218, 0.1765212268, -0.5221686959, 0.3075172901, -0.0336038433, -0.2515624166, 0.0728959292, -0.0701956674, -0.5719491243, -0.228338778, -0.0720977858, -0.3877546787, 0.1725475937, 0.4713421166, -0.033435449, 0.0184990596, -0.1434893459, 0.4725981653, -0.3845011294, -0.0480710976, -0.0413006209, 0.2855195999, -0.1932275444, -0.1814612597, -0.2195678353, -0.1187965199, 0.2447945774, -0.1625743508, -0.1215589717, 0.4299698472, 0.186048165, 0.2720868587, -0.3619140387, -0.1950368881, 0.1652197391, -0.016063001, -0.1465488821, 0.1185459942, 0.2459682077, -0.0776265264, -0.0173951481, 0.2789047956, -0.4031001925, -0.0885871574, 0.071374476, -0.0462191142, 0.2666130662, -0.2367841005, 0.2828178704, -0.340397954, -0.3403313756, 0.2947020233, 0.0018241567, 0.1279272139, 0.0989251807, 0.1121156812, 0.2867794335, 0.0066712452, 0.047518149, -0.0890123621, -0.1765656024, -0.2945634723, 0.0131209595, 0.3500014544, 0.5929611921, 0.1657259762, -0.0166612044, 0.1451728493, -0.0583074652, -0.253809005, 0.2043861002, -0.2613338828, -0.0064706737, 0.3311824501, 0.1878525168, 0.0763362646, -0.6370830536, 0.186015591, 0.5140926838, 0.2118025422, -0.2195149958, -0.1909853667, -0.1673647612, 0.4125154912, 0.0630170777, 0.1435509324, -0.0300561506, -0.1065669209, -0.138272956, 0.5955287814, -0.0589990281, 0.073292084, -0.1850811243, -0.0749260634, -0.0461661331, -0.1426966637, -0.1472802907, -0.1764150858, -0.1414824873, 0.0910957381, 0.2313582748, -0.3419226408, 0.1477311403, -0.1828764379, -0.1267566234, -0.3267619908, -0.0833430737, -0.1293941885, 0.0340040401, 0.2224018276, -0.2250489891, 0.1471374333, 0.169757694, 0.0325683653, -0.004715248, -0.3554546833, -0.3341683745, -0.1029282659, 0.1511999369, 0.2633759975, -0.2600107789, -0.4554549158, 0.1090232432, -0.3711392879, -0.0406573713, 0.1015611589, -0.0919760466, 0.3833361566, 0.2238112539, -0.0310825258, 0.4020083547, 0.2698833942, -0.4376188517, -0.2790603936, 0.0805035159, -0.1014774665, -0.2633699775, 0.0147913452, 0.0609156676, -0.0121200867, 0.2737061381, -0.4307680726, -0.0845259503, -0.2824058533, 0.0837785453, -0.0585749894, 0.2336959094, 0.2081224918, 0.1207609028, -0.2136411071, -0.1040799022, -0.0956789032, -0.041495204, 0.233491689, 0.126982823, 0.0212046467, 0.2292778045, 0.0935394913, 0.6404239535, 0.0503102541, -0.1254811585, 0.5086991787, 0.125423491, 0.7294853926, -0.074036397, -0.339060694, -0.0056349542, -0.1845843047, 0.319257617, 0.0420288928, -0.1061969697, 0.1309799999, -0.1564230025, 0.0242274236, -0.1678121686, -0.2236509025, -0.1179092973, -0.2493901998, -0.0220435485, 0.314229995, -0.1047639698, -0.1341655105, 0.0813808367, -0.0185252242, 0.0876276046, 0.3220412135, 0.0884925127, 0.0994393826, 0.5284665227, -0.1080815345, -0.0133388601, -0.0877977833, 0.3645614684, 0.2040727586, -0.202382952, 0.0585922338, -0.023118237, 0.7181988358, -0.2194465101, 0.313290745, 0.2286951095, 0.0114228521, -0.0870219991, -0.196765542, 0.1032617912, -0.1487740576, 0.1887097061, 0.3649292588, 0.0375474505, 0.0390015617, -0.1003576666, 0.2032171041, 0.0621288046, -0.1629727781, -0.2788121998, -0.1599720269, -0.4588589966, 0.3117338121, 0.1915880591, 0.0890043527, -0.320887208, 0.0846341178, -0.2478237301, -0.4116822779, -0.0395846739, 0.1951411813, 0.2008189261, 0.1139606908, 0.0489872061, -0.0161832664, -0.1171152368, 0.2674762607, 0.4194466472, -0.1649921089, 0.0667295754, -0.1280568391, 0.1093956754, -0.067581296, 0.319385618, -0.0657960176, -0.1120607778, -0.3978951871, -0.1618822664, 0.0620966889, 0.0673459694, 0.002971882, -0.3354582787, -0.0954507068, -0.4370097518, 0.2871852815, -0.0682167336, -0.0515976958, 0.4572842717, 0.2364326417, -0.2039115429, 0.1625162512, 0.0528943725, 0.8192458153, -0.1221480891, 0.165192157, 0.0327902324, -0.0593867525, 0.4034763277, -0.2886822224, 0.194058761, -0.1767736971, -0.3061233759, 0.1044934094, -0.0408082418, 0.2328797132, 0.2079223692, -0.1264044195, 0.1385401487, -0.0984730124, 0.4167669713, 0.2764787674, -0.0030264198, -0.2224701941, -0.1413925886, -0.2291935533, 0.1468190849, 0.2811729312, 0.1926800758, -0.1454819441, -0.0086173862, 0.1220361069, -0.0229478516, -0.2685617507, 0.2866361737, -0.1642533094, 0.3783459961, -0.4507656693, -0.1098404899, 0.0326456428, 0.2600927949, 0.2549611032, 0.2578200102, 0.0146770021, 0.0830926001, 0.4122848809, 0.1323083341, -0.1551139206, 0.0008572826, 0.4158841372, 0.1006288007, -0.3379714787, 0.1988293082, -0.0907847136, -0.1476554275, 0.0037588191, 0.2748386562, -0.0433281027, -0.1125033721, -0.092763938, 0.0935379267, -0.074974604, -0.4186442494, 0.1443356574, -0.0522535145, -0.1282395571, 0.121255748, -0.4481029809, -0.4539896846, -0.2699021995, 0.5651443005, 0.1653032899, 0.0896883756, 0.3432316482, -0.1958156079, 0.009230705, -0.1956038326, 0.0348324627, -0.1255518347, -0.3250435591, 0.5315566063, -0.2140324712, -0.1011318862, 0.1889260113, -0.173754245, 0.1105415151, 0.3808698356, 0.1637355983, -0.2844932377, -0.5291988254, -0.3904183209, -0.0524902157, 0.2282985598, 0.050847441, -0.0072952523, -0.0107132103, -0.0045601041, -0.3350776434, 0.2403877079, 0.0919069722, 0.0729334131, 0.1242790818, -0.1043476984, -0.2560699284, -0.2592730224, 0.1775953174, 0.3209490776, -0.0254106764, -0.2779419422, -0.3296145797, 0.0958329737, 0.3220802546, -0.1090267152, -0.1992628872, -0.0858467817, -0.2128356099, -0.1136852056, 0.2098957598, 0.4146845043, -0.0505065322, -0.0152493529, 0.3320708871, 0.0022462029, -0.1997736692, -0.095850639, -0.2755773664, -0.1480358839, 0.0696581528, 0.2725877762, -0.0361606181, 0.1273908317, -0.4385435283, -0.0649156943, 0.1195174456, 0.0885495842, 0.1913103312, -0.2284960747, -0.1663822532, -0.0860028714, 0.2218851149, 0.4013639688, 0.0489362255, -0.1580483168, 0.2325664312, 0.2389936596, -0.5628596544, -0.0106937625, 0.1943591684, -0.003649774, 0.098564215, 0.1986977458, 0.2104046792, -0.1681738794, -0.0613068901, 0.1347883046, 0.2547552884, -0.0625275373, 0.3317419291, 0.6826942563, 0.1762798131, 0.248175472, 0.2562503219, 0.1975747496, 0.164253071, 0.329222858, 0.0229687337, -0.0241935551, -0.2815636098, 0.0184473433, -0.379707098, -0.3709614277, 0.3160880208, 0.4231722653, -0.2143074274, 0.236592263, 0.0353621766, -0.3099908233, -0.0264861919, 0.0299492758, -0.2805517018, 0.2032455802, -0.1236360446, -0.3274005949, 0.3878690004, -0.2026110739, -0.1777496487, 0.1964985281, -0.0410761125, 0.0262600426, -0.1356980056, -0.0048754462, -0.2721968591, -0.4071184695, -0.0643913075, 0.1155254096, 0.1304227114, -0.2057668418, -0.0984744281, 0.3018858433, -0.1364281178, -0.0018364664, 0.2399721444, 0.3788969219, 0.2111078948, 0.1534903944, -0.0022816143, 0.1738818735, -0.0088148732, -0.3157631755, 0.4200020134, 0.0662739351, -0.0240946896, -0.1370903552, 0.203938961, -0.2506957352, -0.0812061727, 0.1522063017, 0.0141364988, -0.1547079533, 0.4992974699, 0.0719960332, -0.3092764318, -0.0027599297, 0.2752628028, 0.0251966976, -0.079818204, 0.3267326951, -0.1332303882, 0.2819019258, -0.2300074697, 0.1109809577, 0.1148270667, -0.034752652, 0.4555131197, -0.4898700416, -0.2097949684, 0.0988615081, -0.816400528, 0.0120940423, 0.0328483358, 0.2008297592, -0.1417099983, 0.0833700895, -0.0083174789, 0.0212943275, 0.1145128533, 0.3138949871, 0.0724570304, 0.3102653921, -0.0539459884, -0.1346898079, -0.0958660915, -0.1477009207, -0.1163652837, -0.5594716668, 0.0759588927, -0.1853275597, 0.2095306814, -0.037059404, 0.0065100822, 0.2180145383, 0.2444203049, 0.4945931435, 0.0287282132, -0.0332200117, -0.0520022735, -0.1335050911, -0.5665888786, -0.039800819, -0.2466407716, 0.0500838161, 0.1520656943, 0.1390793025, -0.3625163436, -0.3033446372, -0.2144049257, 0.3089033067, 0.2004514635, -0.0365050435, -0.3225580454, -0.0226420909, -0.0864753276, 0.0237421617, 0.2618903816, 0.2817649543, -0.3526063561, 0.3924575746, -0.3913657367, -0.3119346499, 0.2078100592, -0.3488782942, -0.3597286046, -0.1109973863, 0.2195085585, -0.059010148, -0.0838459656, 0.080401659, 0.3842255771, 0.2200256139, -0.1292812973, -0.2282675058, 0.1182789207, -0.403898716, 0.1522310525, -0.0926432759, 0.1583367139, 0.1514638215, -0.2153838128, 0.1477641314, -0.0796994865 ]
https://github.com/huggingface/datasets/issues/2902
Add WIT Dataset
@hassiahk is working on it #2810
## Adding a Dataset - **Name:** *WIT* - **Description:** *Wikipedia-based Image Text Dataset* - **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning ](https://arxiv.org/abs/2103.01913)* - **Data:** *https://github.com/google-research-datasets/wit* - **Motivation:** (excerpt from their Github README.md) > - The largest multimodal dataset (publicly available at the time of this writing) by the number of image-text examples. > - A massively multilingual dataset (first of its kind) with coverage for over 100+ languages. > - A collection of diverse set of concepts and real world entities. > - Brings forth challenging real-world test sets. Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
6
Add WIT Dataset ## Adding a Dataset - **Name:** *WIT* - **Description:** *Wikipedia-based Image Text Dataset* - **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning ](https://arxiv.org/abs/2103.01913)* - **Data:** *https://github.com/google-research-datasets/wit* - **Motivation:** (excerpt from their Github README.md) > - The largest multimodal dataset (publicly available at the time of this writing) by the number of image-text examples. > - A massively multilingual dataset (first of its kind) with coverage for over 100+ languages. > - A collection of diverse set of concepts and real world entities. > - Brings forth challenging real-world test sets. Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). @hassiahk is working on it #2810
[ -0.1296591461, -0.1891998202, -0.2115951777, -0.0000080944, 0.0460982546, 0.0357038304, 0.4529203176, 0.1215223595, 0.2780340016, 0.1513489336, -0.029059099, 0.1144830734, -0.1435055733, 0.2445029169, 0.1256047338, -0.1864110827, 0.0068955352, -0.0093742143, -0.0735348091, -0.1070073843, -0.0773350447, 0.1636914909, -0.1567373872, -0.2530801892, -0.4015705884, -0.1087995097, -0.146388337, -0.0190194007, -0.1731389165, 0.0142502328, -0.2311714441, 0.0920530111, -0.1416087747, 0.4282389283, -0.0000961792, -0.0348447226, 0.1924369335, -0.1517420858, -0.0877345204, -0.1121518463, 0.0036920926, -0.0255717319, -0.2709282935, -0.3336799145, -0.1762119234, -0.1874346882, 0.2792802751, -0.038891498, 0.2992183864, 0.1237806827, 0.3313299716, -0.1193304285, 0.167231366, -0.0636842549, 0.1344261765, 0.1325438321, -0.2437879592, -0.1032884791, 0.0572029762, -0.1843628138, -0.2473023236, 0.6803191304, 0.1149657592, 0.0394390561, -0.0199051965, 0.0259543676, -0.0537805147, -0.2517703772, 0.1902595907, 0.4509062171, 0.5951299071, -0.1380434632, -0.1741087288, 0.0608816259, -0.0706331432, 0.0042669997, 0.0225002747, 0.3247715533, -0.1227583364, 0.053050328, -0.1813238263, -0.1304020733, -0.1617643535, 0.2954109609, -0.1025401354, 0.3974758983, -0.0176089592, -0.0563631766, -0.0496043675, -0.1633326858, -0.2125443816, 0.02245792, 0.240905866, 0.0170114562, 0.0630257428, -0.129550159, 0.054668501, -0.1277145147, 0.3031286895, -0.2512640655, -0.039158728, 0.1198865026, -0.3077050745, 0.2759459615, 0.1043220907, -0.2439876199, -0.1338686198, -0.1969237626, 0.2190607339, 0.0052139987, -0.2566974163, 0.1069463864, 0.1158736348, -0.0193225145, -0.1939061284, -0.1762420088, 0.0073827389, 0.1123326346, 0.0784640163, -0.0886906609, -0.124503158, -0.055896312, -0.3169686496, 0.2779684961, 0.1109271422, 0.0749763697, 0.0985479653, 0.2271314412, -0.1937326193, -0.1465904415, -0.115335606, 0.1956622303, -0.1542165428, 0.1144959927, 0.1543435156, 0.5087482929, 0.2681051195, -0.0842734575, 0.0915060565, 0.0306925531, 0.1029897705, -0.0939951912, 0.1980237216, -0.0445276089, 0.1020599678, -0.1297828108, -0.0630924329, -0.288815707, -0.1791048646, 0.048106607, -0.0815851614, 0.0402405933, -0.4307381809, 0.2774644792, 0.1309566647, -0.1127759367, 0.1063605249, 0.7211184502, 0.0591425896, -0.0758869126, 0.1704614013, 0.2683287561, -0.3786454499, -0.0175030548, 0.1434833258, 0.3921846449, -0.1378667355, -0.0694735646, 0.1149419025, 0.2635501623, -0.0323280878, 0.2083413899, -0.0748511776, 0.0976687744, 0.0117110927, 0.2452786714, 0.1070185974, -0.1362077594, -0.0952911451, -0.1215822399, -0.0758547634, 0.0205433052, 0.1006369516, 0.3590261936, -0.0074512311, 0.0786975026, 0.0008037383, 0.6429982781, -0.101937674, 0.2204965353, -0.2547368109, -0.412805438, -0.031592954, 0.3136671782, 0.1404488534, -0.3794309199, 0.3183832169, 0.2673033774, 0.1137722209, -0.2929435074, 0.1085533649, 0.0377520844, -0.0135402372, 0.1493370086, 0.0558074787, -0.2918334305, -0.0843841732, -0.1060758308, 0.1630552709, 0.4458846748, -0.1963102072, -0.2546880245, 0.0034701391, -0.1770533621, -0.0542313494, -0.2643735409, 0.3854094744, 0.2371143699, -0.1219256148, 0.2192856669, 0.0515208244, -0.0828982666, -0.2751990557, -0.0682251155, -0.0554965064, 0.1411690116, -0.2138494253, -0.0074874591, 0.0453312024, 0.162361756, -0.2836136818, 0.0503010452, 0.1026869044, 0.2066954374, 0.0853403509, 0.3449212611, 0.3921612203, 0.1152452454, 0.2651148438, -0.5831927061, 0.0691323876, 0.0750517696, 0.0019045175, -0.0033749938, -0.3692139387, 0.0319884233, 0.2239721268, -0.0128715681, 0.1168907061, 0.0606278479, 0.2472451031, -0.0976875871, 0.001401014, -0.3726579845, -0.0102998558, 0.162639454, -0.1726347953, -0.1651332676, -0.2103906274, 0.0991069302, 0.5462095737, 0.2400736511, 0.5376595855, 0.0971913859, -0.1212614775, -0.2618568838, 0.073506847, -0.2561023533, -0.0930368453, 0.3516949713, 0.0182377622, -0.1866730601, -0.0738957152, -0.1027568281, 0.1412557811, -0.0225975774, 0.1650807112, 0.0877017826, 0.297613889, -0.1069796085, -0.5398007035, -0.0681409612, -0.0508023016, -0.2064673901, 0.0649895668, 0.0703736097, -0.0205571149, -0.2685602605, -0.0878075063, 0.1285372823, -0.2698201537, -0.0652996004, 0.3480983078, -0.058700081, -0.144668743, 0.2157517225, 0.2154152393, 0.2665415406, 0.1056036651, -0.0490454584, -0.0699434429, -0.4251724482, -0.0013740142, 0.2867534161, 0.2798976302, 0.0790984556, 0.468409121, -0.1529595554, 0.019352071, -0.2396499366, -0.6391475201, 0.1912251115, -0.1763069183, 0.2191690207, 0.0712262616, 0.0936918706, -0.1991403848, -0.2139495015, 0.1469445527, -0.1367393434, -0.1214991733, -0.0671442822, 0.0764834508, 0.0814846978, -0.1663844138, -0.2625015378, -0.1379565299, -0.3415474296, 0.2776284814, 0.2449719161, 0.1046371013, -0.0269246474, 0.3842811882, 0.0516841039, -0.0223082379, 0.2923726141, -0.3290747404, -0.029114319, 0.1770710647, -0.3507783413, -0.3409646749, -0.241635114, -0.2149017453, 0.2913351059, 0.0963894725, -0.452812463, -0.3489452302, 0.0134124234, 0.2051300406, 0.1298554689, 0.076393947, 0.282122463, 0.1753068119, -0.3087322414, -0.1432863772, -0.0113858152, 0.0432145521, -0.1399844736, 0.0589655936, 0.1224881411, -0.0000328349, 0.2479563504, 0.4598668814, -0.2399621606, 0.0897038355, 0.4043138623, -0.015272229, 0.2053738832, -0.2565110326, -0.1264286041, 0.4514034986, 0.0070677064, 0.0613207631, 0.30798769, 0.1180268228, -0.4592045248, -0.0890442282, 0.174862057, -0.5091278553, -0.1667373627, 0.1673555821, 0.1669268012, 0.1635840684, -0.1377123594, -0.2422106862, -0.1948408335, -0.1597946584, 0.1669388264, 0.2362881452, -0.0687819272, -0.1252325177, -0.2005453855, 0.0608569533, -0.1316801757, 0.0990372747, 0.2825544477, -0.123838447, -0.1642559022, -0.161138624, -0.0587822609, -0.1694849581, 0.2437805086, -0.3938077092, -0.1649195999, 0.1007589772, -0.0390315913, -0.1142330319, 0.2840626538, -0.3339577615, -0.2328336537, 0.0622188188, 0.2880499065, -0.3703322113, 0.0837903321, 0.4168727994, 0.1480499059, -0.0266231615, -0.0325266942, -0.1320562661, -0.2437737137, -0.4280227423, 0.0575218908, -0.0885785222, 0.1218918115, 0.3068802357, -0.0476196334, -0.0697411075, -0.0784421787, -0.0828517675, 0.2587498724, -0.0900649056, 0.3041183949, -0.1872166842, -0.138946712, -0.0720472485, -0.1653235257, 0.1967177689, -0.0868958831, -0.0660888404, -0.1588893533, -0.2913936675, 0.0738343373, 0.0961803868, 0.2457379699, 0.0848319456, -0.0663812011, -0.0204767045, -0.3289154172, 0.2266960442, 0.2494198382, 0.1433276385, -0.0007672762, -0.2630187869, 0.3372961879, -0.0651260763, 0.0367082134, 0.3666113317, -0.0947311148, -0.4259827435, 0.3040920198, 0.3670836389, 0.9130336642, -0.1412870288, 0.2655439973, 0.0825656652, 0.0368013196, 0.4112624526, -0.2702554166, 0.0926808119, 0.063380003, 0.0450684801, -0.042350892, 0.2032682449, -0.0341339484, 0.0403719842, -0.2530496418, -0.1733001024, 0.3581714332, 0.1081538126, 0.0419844128, 0.3453404605, -0.0444174036, -0.4325706661, -0.3199236393, 0.2508710325, 0.060147658, -0.1543311328, -0.0326714627, -0.0739602372, 0.0480866395, -0.0830819085, -0.3174287677, -0.0862657726, -0.2957362831, 0.1991055459, -0.3531002998, -0.3360367119, 0.1190520227, 0.1976566911, 0.1793552339, 0.1488007456, -0.2352505326, 0.1980030835, -0.1115192845, -0.136059463, -0.0225254111, -0.1173774973, 0.3119098544, -0.1344185174, -0.1809410751, 0.0406746306, 0.2653738558, -0.2495407313, -0.4706448913, -0.1169789657, 0.3314366341, 0.1948352754, 0.0485579409, 0.2501215041, -0.413610667, -0.2901029289, 0.2998668849, -0.1534142941, 0.1727076322, 0.0644296631, 0.234110564, -0.0873228759, -0.0742139593, 0.2355686873, 0.2749872208, 0.0819436833, 0.2199673355, 0.2496194392, -0.1277595311, -0.4075970948, -0.2303928286, 0.0248409584, -0.3103953898, -0.08661329, 0.0937269107, -0.3579361737, -0.1972269416, 0.2842388749, 0.0858474672, -0.0124888159, -0.0472396538, -0.0732503757, -0.0512179583, 0.4948905706, -0.1107646599, 0.2192007452, 0.0759131759, 0.1513412446, 0.1365086883, 0.2520558536, -0.5044214129, 0.0618388243, -0.1622692049, 0.1555999666, 0.1093536094, -0.1887407005, 0.0446312688, 0.1271794736, 0.297516793, -0.0032108144, -0.1694126576, -0.3926710784, -0.1479100138, 0.0459250957, 0.00995667, -0.0352526307, 0.1959041208, -0.0861305743, -0.0785156563, -0.2286321074, 0.1431579441, -0.0590985827, -0.221162349, 0.2085623145, -0.1347504705, 0.1107792184, 0.1136089787, -0.1726914197, -0.0558690876, 0.2453998476, 0.1603109837, -0.1366208494, 0.2261314541, -0.1058626622, 0.074613668, 0.22358042, -0.1432922632, 0.1838464141, 0.210678488, 0.1371192336, 0.0155197922, 0.1411829144, 0.2470877767, -0.1947020739, -0.338175416, -0.0111634769, 0.168082267, 0.4273661077, -0.3924217224, -0.0953474045, 0.2009430379, -0.4014649987, 0.4477969408, 0.2921489179, 0.1483340859, -0.002726747, -0.0974504873, 0.067161195, -0.1852512658, -0.3622380793, -0.0507756211, 0.0865137428, 0.0177711882, 0.0699414983, -0.1085267439, 0.0994353145, 0.2459332198, 0.3117552102, -0.0358871408, 0.4007888138, -0.0078987358, 0.0618646182, 0.3345318437, 0.2172142565, 0.4865316749, 0.1046640351, 0.0416013673, 0.3430802226, -0.0083274813, 0.2223719209, 0.0999372602, -0.0087033538, -0.1931295693, 0.1871576011, -0.0184282884, -0.1056677848, -0.275636971, -0.1552461386, -0.1231860667, 0.0284091607, -0.0035716088, -0.0306761824, 0.1527671069, 0.0474604145, -0.1027932689, -0.1923794597, 0.0851862952, -0.0813491642, 0.4018681645, -0.2289473712, 0.2052509189, 0.2295409143, -0.0062884679, 0.0375786684, 0.4565461576, 0.1032586545, -0.0071680066, -0.0938500986, 0.0924604014, -0.1135674641, -0.0638433546, -0.2580824494, 0.0472246632, 0.3923101425, -0.0717268735, 0.2726536989, 0.267921716, -0.3474231064, -0.1523036957, 0.4223014116, -0.2082197219, -0.0883307829, -0.5123988986, 0.0371011719, 0.0079047736, -0.2581389248, 0.0969417989, -0.5972567797, -0.0656792223, 0.0051606284, -0.0808611438, 0.0543405078, -0.102023758, 0.1447420567, 0.1186306775, 0.4803176522, 0.2922181487, 0.1430308968, 0.0741488263, -0.3569711447, -0.473400563, 0.1692283154, -0.1185174435, -0.0800530314, -0.1962443441, 0.3564409912, 0.296964705, 0.2779829502, -0.0123385582, -0.1476554275, -0.0388901271, 0.0978951603, -0.3775681555, 0.1366155446, 0.1053182557, 0.1353593618, -0.0266050361, -0.1613134742, 0.0928840712, -0.0417491868, 0.2913910151, -0.1669008136, 0.0616998039, -0.0978731364, -0.0602027848, 0.2010447979, -0.0838134512, 0.1094563082, -0.4794981182, -0.3175835311, -0.1471890509, -0.1113790944, -0.1586659849, 0.2541112304, 0.2663548291, 0.4172587097, -0.0143395821, -0.0704477504, 0.2176796794, 0.4207631946, 0.0117856711, 0.1037914306, 0.0464718007, -0.0413710028, 0.2674077749, -0.1472931802, -0.1270537078, 0.4860852957, -0.1144139916, -0.1948803961, -0.0594344959, -0.5313600898, 0.0803394318, -0.3131714165, -0.2420081943, -0.0785194188, -0.0384221189, 0.0641538873, 0.2597292364, -0.3967080116, 0.1920229495, 0.2368176877, 0.2900294065, -0.0751894638, 0.3233103752, 0.1524246633, -0.1856960952, -0.1501988024, -0.0521546677, 0.0246847868, -0.1107614785, -0.2156294882, -0.4013026655 ]
https://github.com/huggingface/datasets/issues/2902
Add WIT Dataset
WikiMedia is now hosting the pixel values directly which should make it a lot easier! The files can be found here: https://techblog.wikimedia.org/2021/09/09/the-wikipedia-image-caption-matching-challenge-and-a-huge-release-of-image-data-for-research/ https://analytics.wikimedia.org/published/datasets/one-off/caption_competition/training/image_pixels/
## Adding a Dataset - **Name:** *WIT* - **Description:** *Wikipedia-based Image Text Dataset* - **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning ](https://arxiv.org/abs/2103.01913)* - **Data:** *https://github.com/google-research-datasets/wit* - **Motivation:** (excerpt from their Github README.md) > - The largest multimodal dataset (publicly available at the time of this writing) by the number of image-text examples. > - A massively multilingual dataset (first of its kind) with coverage for over 100+ languages. > - A collection of diverse set of concepts and real world entities. > - Brings forth challenging real-world test sets. Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
23
Add WIT Dataset ## Adding a Dataset - **Name:** *WIT* - **Description:** *Wikipedia-based Image Text Dataset* - **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning ](https://arxiv.org/abs/2103.01913)* - **Data:** *https://github.com/google-research-datasets/wit* - **Motivation:** (excerpt from their Github README.md) > - The largest multimodal dataset (publicly available at the time of this writing) by the number of image-text examples. > - A massively multilingual dataset (first of its kind) with coverage for over 100+ languages. > - A collection of diverse set of concepts and real world entities. > - Brings forth challenging real-world test sets. Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). WikiMedia is now hosting the pixel values directly which should make it a lot easier! The files can be found here: https://techblog.wikimedia.org/2021/09/09/the-wikipedia-image-caption-matching-challenge-and-a-huge-release-of-image-data-for-research/ https://analytics.wikimedia.org/published/datasets/one-off/caption_competition/training/image_pixels/
[ -0.0497860387, -0.0547444522, -0.1280666143, 0.0003004618, -0.039354112, -0.0071313963, 0.3546046019, 0.1659145951, 0.1936855763, 0.2055810541, 0.0639799759, 0.1460067928, -0.0242924541, 0.1997424215, -0.01487609, -0.2061530054, -0.0474179126, 0.007556899, -0.095439963, -0.0953547359, -0.1237470731, 0.1472279876, -0.1375917941, -0.2112537324, -0.4580724537, -0.0875768587, -0.1730553955, -0.0253455658, -0.1721293628, -0.0776184052, -0.1209003329, 0.1993556619, -0.1435845345, 0.3342963159, -0.0000973471, -0.1190001816, 0.2309069782, -0.1802841574, -0.0871033221, 0.0576613285, 0.1233595088, -0.0183559302, -0.3197696805, -0.4497412145, -0.1917415559, -0.0919262245, 0.250259757, 0.0872264057, 0.220723629, -0.0171945672, 0.3280394673, -0.1210444793, 0.10394793, 0.0242980495, 0.0408663712, 0.1121114418, -0.1330121011, -0.0007004917, 0.0150091052, -0.3246178627, -0.1604316086, 0.6847470999, 0.0171727017, 0.0272535756, 0.0614412166, 0.0563659444, -0.1721417308, -0.3297246695, 0.1790350825, 0.4349500835, 0.5310005546, 0.0022286586, -0.1660662293, -0.0531980433, -0.0875593573, -0.0650093853, 0.1432961375, 0.2999428809, -0.1368227452, 0.0239426252, -0.2666973472, 0.0028924709, -0.2545390427, 0.1593592912, -0.1959471852, 0.4131114483, 0.021566527, 0.0326524712, -0.000182682, -0.2101522833, -0.4369372725, -0.0127320085, 0.2125476599, 0.0099950507, 0.0381090157, -0.2509273589, -0.0503862202, -0.1546090245, 0.3692227602, -0.197378248, -0.0403584838, 0.0733242184, -0.1825137436, 0.3001660109, 0.1151571646, -0.273580879, -0.1728782058, 0.0215191487, 0.1827842295, 0.0874059945, -0.2466638684, 0.1344642043, 0.2253025919, -0.1029728055, -0.1772990078, -0.087800771, 0.1070196927, -0.0466616042, -0.1075610965, -0.008583298, -0.146704793, -0.0710129738, -0.4360583127, 0.2165165991, -0.0335759073, 0.1098506823, 0.1278970838, 0.1473859996, -0.2188078016, -0.1533710063, -0.1057867333, 0.1009146869, 0.0557398014, 0.2790454626, 0.1211024597, 0.3311381638, 0.256734401, -0.0824029595, 0.1746457219, 0.0947210044, 0.0416478626, -0.0953107029, 0.2555246055, -0.008912893, 0.0164618678, -0.1227277219, -0.051241383, -0.2793621719, -0.19902426, 0.0270652734, -0.1084727868, 0.2036321461, -0.3212899566, 0.2668367922, 0.1446974277, -0.0583522059, -0.0045630517, 0.6982100606, 0.0959759504, 0.0308421906, 0.1365310401, 0.1445246041, -0.3958842158, -0.0636466146, 0.2453516275, 0.4490688741, -0.0886282399, 0.0255282167, 0.3061005771, 0.3564617038, 0.0193696469, 0.1932205856, 0.0245506912, -0.0181516893, 0.0488758124, 0.2630175054, -0.1056210548, -0.2358684838, -0.1195387468, -0.1759907305, -0.0965119898, 0.1020767167, 0.0326437689, 0.2860510647, 0.270050317, -0.102775909, 0.093534559, 0.6013006568, -0.1892949641, 0.2137656063, -0.2130067647, -0.3863318861, -0.0069002835, 0.3273807466, 0.1285638511, -0.4685770869, 0.2250231653, 0.1909397244, 0.0319985636, -0.3845872879, 0.0987228006, 0.0075334026, -0.0310356412, 0.0995845795, 0.091828078, -0.2398949265, -0.0079521695, 0.0546789393, 0.2049163729, 0.4832212925, -0.1773444712, -0.2481343299, -0.038995903, -0.1513748169, -0.1065134704, -0.3698706031, 0.3537430465, 0.1205859855, -0.0045493012, 0.2210574299, 0.0784497336, -0.0594155379, -0.3163442016, -0.0456017256, 0.1199062467, 0.1867598891, -0.2623721361, -0.0185750853, 0.1218658164, 0.0860536918, -0.0835613608, 0.1807654053, 0.0911751837, 0.1913248599, 0.0461769477, 0.3455418348, 0.2677955925, 0.0530583225, 0.3559015393, -0.6900479198, -0.0690085068, 0.19123438, 0.0030610359, 0.0122600449, -0.2659728527, 0.1819274873, 0.2717046738, 0.0452171303, -0.0804450437, -0.0083080204, 0.1473466903, -0.0244393963, 0.0583699085, -0.3646619022, -0.0810375884, 0.2129996717, -0.2515609264, -0.2326057106, -0.1890244186, 0.1808756441, 0.5132712126, 0.2433172613, 0.3687907755, 0.1684178561, -0.1199678779, -0.1401048452, -0.0068703438, -0.0960154831, -0.1688125134, 0.3742109239, -0.053772375, -0.1260635257, -0.2724704742, -0.0922951698, 0.1780956537, -0.0158920027, 0.2231312841, 0.0486644618, 0.2492239773, -0.0249909423, -0.4577436149, -0.1271143258, -0.1574495137, -0.1973033249, 0.056282267, 0.0784645602, -0.071331881, -0.1991609186, -0.066964902, 0.2833610475, -0.3087125421, -0.1143085882, 0.3522223532, 0.0152183259, -0.1103117839, 0.183313325, 0.0873240456, 0.1733572483, 0.1862344891, 0.0245582648, -0.1337936968, -0.5455780029, -0.0611162968, 0.2686133087, 0.1743589044, -0.0161512867, 0.5377413034, -0.1781012118, 0.0367738679, -0.2884244919, -0.705337286, 0.1020467132, -0.1840780228, 0.1969555616, 0.0155186988, 0.2760653794, -0.2234164178, -0.1541128606, 0.1546294391, -0.1017461941, -0.1935486495, -0.2209588885, 0.0480773337, 0.0420998633, -0.2291868478, -0.2148961276, -0.1442073584, -0.2447485179, 0.1066020951, 0.3489588201, 0.1721870601, 0.0647365227, 0.3838174343, 0.0280661602, -0.0238699075, 0.2764138281, -0.3571163714, -0.032202661, 0.3682462573, -0.3039095998, -0.403814584, -0.1645279825, -0.182767272, 0.1699132323, 0.0591959544, -0.3852038085, -0.3932056427, 0.0160926636, 0.1964574009, 0.2606021762, 0.0776553899, 0.1688962281, 0.1696974039, -0.2888213396, -0.120130457, -0.0905002728, 0.1087626144, 0.0804397017, 0.0327175856, 0.2156327516, 0.0916362107, 0.2265037298, 0.6132438183, -0.1613393426, -0.0281569362, 0.4119825959, -0.0383804776, 0.224104315, -0.0002331532, -0.0705114752, 0.497284919, 0.0091163954, 0.1581450105, 0.2489970326, 0.1093951836, -0.4575267434, -0.1425068378, 0.0741071776, -0.4309840202, -0.1831286401, 0.1126235873, 0.282223165, 0.1359028369, -0.1255722344, -0.1118768379, -0.1950071603, -0.2140990347, 0.1501378864, 0.1365459114, -0.033066839, -0.0854402483, -0.1478022784, 0.0440795906, -0.2099582404, 0.1326003671, 0.3808392882, -0.1713135391, -0.1235297993, -0.064189747, -0.1482826024, -0.2265735269, 0.2456169724, -0.3066806197, -0.0396218561, -0.0001861092, -0.0057738582, 0.0171943922, 0.2211831212, -0.2088258266, -0.3443025649, -0.0452317037, 0.247772336, -0.4293949008, 0.0881709754, 0.3906086981, 0.1875751317, -0.0982594416, 0.0725138634, -0.1535127908, -0.4466047287, -0.4639799893, 0.0759280697, -0.0179230105, 0.234052375, 0.1692747027, -0.0461039618, -0.0495606475, -0.0345803201, -0.0313565917, 0.3599346876, 0.0232606847, 0.2451539487, -0.1866826117, 0.0159258991, -0.0362759829, -0.0392687432, 0.2646231949, 0.0655591339, 0.0620991588, -0.1904884726, -0.1798860431, -0.0081319464, 0.1325878799, 0.2491253167, -0.0325292051, 0.0099018356, 0.0323803313, -0.3869562447, 0.2138520479, 0.1015860438, 0.1107611284, -0.0148324464, -0.2682086527, 0.3575321436, 0.0139691914, 0.0896827802, 0.389649421, 0.0827483088, -0.4077329636, 0.13139759, 0.606361568, 0.8766955137, -0.1784271747, 0.1968854815, 0.1156533733, -0.122769326, 0.490136683, -0.0125109544, 0.0893897936, -0.0903045982, 0.0462060049, -0.0482571162, 0.1810766608, 0.0233861692, -0.0071799215, -0.2383960932, -0.0591488257, 0.4950783849, 0.0509889983, 0.0223183818, 0.2454401106, -0.0180004686, -0.3712224662, -0.1638911664, 0.2396210581, -0.1347939372, -0.0386185609, 0.0205545817, -0.1282645911, -0.0563069582, -0.2408725768, -0.2661218941, -0.0375264436, -0.3923751414, 0.2052637786, -0.2520484924, -0.232131511, 0.0540006123, 0.1925714016, 0.1538775563, -0.0118546505, -0.1931021065, 0.2699621618, -0.2166959643, -0.1297280639, 0.0994486734, -0.0778556168, 0.3134611547, -0.1621257216, -0.2310339063, 0.0682638064, 0.3530699909, -0.2003534883, -0.3784057498, -0.1596205533, 0.2148566991, 0.3098063767, -0.0714116693, 0.0368100926, -0.4080921412, -0.2550562024, 0.2662607431, -0.1720845252, 0.1280960441, 0.0953225568, 0.338157177, -0.0661718771, 0.0120415185, 0.279966861, 0.1513243467, 0.0692156926, 0.252928853, 0.1970508397, -0.1593777239, -0.262548238, -0.1428267211, -0.2143792063, -0.3051334023, -0.1352979839, 0.0671666935, -0.2043531686, -0.1338025331, 0.3641974926, 0.1625054628, -0.0255595706, 0.0916185379, -0.0791770592, -0.0435318984, 0.3351586759, -0.2645081282, 0.2620086372, 0.1362607479, 0.0919233859, 0.0621007904, 0.2466659248, -0.4697705805, 0.0008081495, -0.276823312, 0.220438391, 0.2841959, -0.1862068176, -0.0280307755, 0.125368759, 0.3021201789, 0.0017990991, -0.1685612202, -0.3627264202, -0.2431438267, 0.0422772169, 0.0334107876, -0.1346720457, 0.0254573394, -0.0790322646, -0.0836148933, -0.1622535139, 0.0931934118, -0.2240975499, -0.2472412735, 0.2228255719, -0.1823137701, 0.0700710714, 0.094846718, -0.1861076504, -0.0950848833, 0.4156052172, 0.0535985343, -0.1083418354, 0.2208644897, -0.1395664066, -0.0260134172, 0.2909347117, -0.2630017996, 0.0133082671, 0.2766338587, 0.1419247389, -0.0343248211, 0.2441204339, 0.2616045177, -0.21285294, -0.2781764269, -0.070929803, 0.2034056783, 0.3885403872, -0.3480496109, -0.0002685353, 0.3647504449, -0.4026501775, 0.4058004618, 0.3052506745, 0.1680756807, -0.0470950566, -0.258131206, 0.0765385777, -0.0169942752, -0.4340025783, -0.020303281, 0.1415560097, 0.1105765998, 0.0487362295, -0.0601711161, 0.159247458, 0.2790450156, 0.2702627778, -0.0576715805, 0.4003246725, 0.0700719953, 0.0536593162, 0.2820592821, 0.2163243592, 0.5008888245, 0.1520393342, 0.0615330748, 0.3375333846, 0.0667119846, -0.0489498749, 0.0231666267, -0.1415083408, -0.1176150665, 0.3134403527, -0.0147500196, -0.0715856478, -0.3975217044, -0.2155854702, -0.0502537452, 0.0992040187, 0.0855665654, -0.1450577676, 0.2354638726, 0.0524963774, -0.1196645424, -0.2443861812, -0.0430718996, -0.0664650947, 0.5451594591, -0.1991377473, 0.0696593449, 0.2658621371, -0.0356095135, 0.0963545516, 0.402122885, 0.1985036433, 0.0789157301, -0.2381747067, 0.1088349149, -0.0445786901, -0.1440981328, -0.1425260752, -0.0305382255, 0.147759378, -0.2748593986, 0.349375397, 0.2631461918, -0.3019365072, -0.3211148977, 0.3872309923, -0.1345878541, -0.0100665605, -0.6193216443, -0.002628427, 0.0443207249, -0.1521770805, 0.1048784405, -0.5363394022, -0.0952254608, -0.0885432363, -0.0321343392, 0.0277196635, -0.1648291796, 0.1338630617, 0.0752426833, 0.4413732886, 0.2891284525, 0.0606763028, 0.0619646944, -0.2279345095, -0.5278967023, 0.116753839, -0.0799406394, -0.4166087508, -0.1129243895, 0.3505662084, 0.2454901189, 0.2385322601, 0.1003209874, -0.1506654024, 0.2423653901, 0.0709742904, -0.2875417769, 0.0808582902, 0.0561882034, 0.0541797392, -0.0941887349, -0.1719164848, 0.1251953542, -0.2471843213, 0.3233294487, -0.241175577, 0.1120429486, -0.1701765209, 0.0729581118, 0.0646916777, -0.0272890981, 0.1814373881, -0.4356124699, -0.3198751509, -0.0362593234, 0.0115888026, -0.1519787014, 0.1135638803, 0.156106621, 0.5797201991, 0.0692493692, -0.0713019744, 0.1066633314, 0.4916709661, 0.0201849677, 0.0295590572, 0.0948422104, 0.031026803, 0.2517523468, -0.1997822076, -0.078859888, 0.396351546, -0.0907165185, -0.1283352971, -0.055131916, -0.620397687, 0.1190891713, -0.439666748, -0.1874820441, -0.0373212919, -0.1397859603, 0.1088624224, 0.3996539116, -0.3055769801, 0.2087804824, 0.2238700241, 0.1930085868, -0.2440024018, 0.3604778051, 0.1155558676, -0.1429820657, -0.0835569948, -0.1805303544, -0.0429826528, -0.0756496042, -0.2174596637, -0.3298113346 ]
https://github.com/huggingface/datasets/issues/2902
Add WIT Dataset
> @hassiahk is working on it #2810 Thank you @bhavitvyamalik! Added this issue so we could track progress πŸ˜„ . Just linked the PR as well for visibility.
## Adding a Dataset - **Name:** *WIT* - **Description:** *Wikipedia-based Image Text Dataset* - **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning ](https://arxiv.org/abs/2103.01913)* - **Data:** *https://github.com/google-research-datasets/wit* - **Motivation:** (excerpt from their Github README.md) > - The largest multimodal dataset (publicly available at the time of this writing) by the number of image-text examples. > - A massively multilingual dataset (first of its kind) with coverage for over 100+ languages. > - A collection of diverse set of concepts and real world entities. > - Brings forth challenging real-world test sets. Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
28
Add WIT Dataset ## Adding a Dataset - **Name:** *WIT* - **Description:** *Wikipedia-based Image Text Dataset* - **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning ](https://arxiv.org/abs/2103.01913)* - **Data:** *https://github.com/google-research-datasets/wit* - **Motivation:** (excerpt from their Github README.md) > - The largest multimodal dataset (publicly available at the time of this writing) by the number of image-text examples. > - A massively multilingual dataset (first of its kind) with coverage for over 100+ languages. > - A collection of diverse set of concepts and real world entities. > - Brings forth challenging real-world test sets. Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). > @hassiahk is working on it #2810 Thank you @bhavitvyamalik! Added this issue so we could track progress πŸ˜„ . Just linked the PR as well for visibility.
[ -0.0809517056, -0.2214551866, -0.1989731491, 0.0133092012, 0.0548566766, 0.0012881586, 0.4317961633, 0.0905278698, 0.2972510159, 0.1470830888, -0.0140026174, 0.117820628, -0.1801292151, 0.2750623822, 0.1759230644, -0.2347300649, 0.0528856255, -0.0525587946, -0.111166127, -0.0794195235, -0.0522569418, 0.1980129927, -0.193837896, -0.2477924973, -0.398671031, -0.1057200357, -0.1739888638, -0.0169518292, -0.1846639961, 0.0327739008, -0.2608135045, 0.0733176619, -0.1156978458, 0.4770053923, -0.0000964032, -0.064579986, 0.2143842131, -0.1423904598, -0.0545602031, -0.1777072847, 0.041535154, -0.0049116011, -0.2549009025, -0.2813225985, -0.1839788407, -0.1538777053, 0.2700455189, -0.0029812963, 0.3053423464, 0.1210975945, 0.3088106811, -0.1474685222, 0.2071530968, -0.0514375716, 0.1326429099, 0.1544086039, -0.248274833, -0.0964364931, 0.0966394767, -0.2267570943, -0.2421554029, 0.6854541302, 0.1160565093, 0.0250154659, -0.0252820924, 0.0070958599, -0.0926502421, -0.2954958975, 0.188639313, 0.4700401127, 0.5937217474, -0.1630618572, -0.1721827239, 0.0919661224, -0.0487032495, 0.0397691727, 0.0408558957, 0.3571046293, -0.1618400067, 0.0649592951, -0.1783177257, -0.15133214, -0.1726877838, 0.2914958894, -0.0949109718, 0.4078658223, -0.0315455608, -0.0555812605, -0.0373772085, -0.1777147949, -0.2164238542, 0.0523082763, 0.2419596165, 0.0662366971, 0.0335867517, -0.1256911457, 0.0385495387, -0.1135115251, 0.3417511284, -0.2774721086, -0.0565746911, 0.132901594, -0.323112458, 0.3092396557, 0.1385564804, -0.2174253464, -0.1450333446, -0.1854815036, 0.1951016188, 0.0325002782, -0.2619886994, 0.1505577266, 0.099721089, -0.0214241892, -0.2273956388, -0.160768792, -0.0516468845, 0.0911392644, 0.1193964332, -0.0707594156, -0.1421585381, -0.0661800429, -0.3177126944, 0.2407010645, 0.1010043994, 0.0815588385, 0.0965300798, 0.2475896478, -0.1470988691, -0.1765169948, -0.0881534964, 0.2248412669, -0.1903703958, 0.1265021414, 0.1592800766, 0.5113365054, 0.2537501454, -0.0733771846, 0.1129089221, 0.0018325694, 0.0856605247, -0.1001399159, 0.2069840133, -0.0557915792, 0.0809679776, -0.1524138749, -0.073373422, -0.3102889955, -0.1555388868, 0.0773518682, -0.0889911428, 0.049377501, -0.4161147475, 0.2530652583, 0.1284849197, -0.0809181705, 0.0908475667, 0.7699179053, 0.0582486838, -0.0342353247, 0.1798475385, 0.2833342552, -0.3797134161, -0.0025154876, 0.1757738888, 0.3905650079, -0.092420809, -0.0642552599, 0.1328477561, 0.2665217221, -0.0583941862, 0.2173905224, -0.0567309335, 0.087856859, 0.0246495996, 0.2322876602, 0.0694603547, -0.1395289451, -0.0435003601, -0.1011100262, -0.0813610405, 0.0106059145, 0.0836546645, 0.298145026, -0.0127935633, 0.096528627, 0.0080791311, 0.6753434539, -0.1098164916, 0.2286004871, -0.2737777531, -0.4278278649, -0.0113982931, 0.328744024, 0.145377025, -0.4055054188, 0.3278430998, 0.2322438657, 0.0949867368, -0.3136895597, 0.1085856259, 0.0223203544, -0.0005051232, 0.1467118561, 0.1092848554, -0.2964729071, -0.0836762711, -0.130402267, 0.1318242103, 0.483746618, -0.248289302, -0.2480282038, 0.0042855954, -0.2053590268, -0.0621923134, -0.2704664171, 0.3617103696, 0.17163001, -0.1306215972, 0.2724723816, 0.0430581756, -0.0919279084, -0.2533151209, -0.0622685514, -0.0406291224, 0.1581876874, -0.2046279311, -0.0177770704, 0.0472491309, 0.1987008452, -0.2961709499, 0.0533348955, 0.1038889065, 0.1865651459, 0.0792258084, 0.3698846102, 0.3873916864, 0.1120804548, 0.2921239138, -0.6291121244, 0.1154151708, 0.0760285705, -0.006126096, -0.0176064018, -0.3841995299, 0.0472670086, 0.19283472, -0.0016580714, 0.1144336909, 0.073393099, 0.2081537247, -0.0956783444, -0.0049937302, -0.366854459, 0.0016061328, 0.1734439284, -0.1884854436, -0.1824615896, -0.2030260712, 0.0807694122, 0.5237088799, 0.2258421183, 0.5505995154, 0.1254282445, -0.1420795768, -0.28885746, 0.0549856015, -0.2941262424, -0.1655779034, 0.3116272688, -0.0251247585, -0.1782427877, -0.0482349657, -0.085527949, 0.1338160634, -0.0276928395, 0.1904964596, 0.0914436951, 0.2914770544, -0.1149811968, -0.5630301237, -0.0705270022, -0.0223842766, -0.2100635022, 0.0955632254, 0.0532289781, 0.0085637094, -0.2813546956, -0.0914483368, 0.1090581045, -0.2741340697, -0.0460894257, 0.3448168337, -0.0612961911, -0.1088433415, 0.2226289511, 0.2646664679, 0.2659244537, 0.0535228476, -0.0327079035, -0.0569329187, -0.4480122924, -0.0012578141, 0.2744467258, 0.3094526529, 0.0774371698, 0.4492533505, -0.1706188321, -0.0032700298, -0.1970399022, -0.6828343272, 0.1931857914, -0.1799332798, 0.222297132, 0.0465350263, 0.0598002523, -0.2162089497, -0.1784383208, 0.1267048568, -0.1550560743, -0.1278322637, -0.0514384434, 0.0643266812, 0.0791968629, -0.171182245, -0.2651809454, -0.1608145237, -0.3226848841, 0.3241012394, 0.2365675569, 0.11344897, -0.0567815825, 0.3845591247, 0.0518014841, -0.0231321547, 0.2783186138, -0.3127382994, -0.0589283146, 0.1515590996, -0.3646040261, -0.3476807475, -0.2444108576, -0.1988812536, 0.2525679469, 0.0808433667, -0.4292116463, -0.3522478342, 0.0311818309, 0.2061463892, 0.1419826597, 0.0842591301, 0.2448365092, 0.190408811, -0.2793112099, -0.1548068672, -0.0041617351, 0.0255124755, -0.1157210916, 0.0760340467, 0.1783276647, 0.0139507679, 0.2965382338, 0.4465199113, -0.2176057845, 0.1476778239, 0.3842280805, 0.0036174529, 0.1714651883, -0.2575018108, -0.1082883179, 0.5114590526, -0.0155883245, 0.0532231331, 0.3055923581, 0.1387230456, -0.493773073, -0.1047745943, 0.1593842357, -0.5112806559, -0.1331510544, 0.1892561316, 0.1403896511, 0.1600528061, -0.1513719559, -0.3017922044, -0.175591737, -0.1879560053, 0.1834862083, 0.255494982, -0.0663223863, -0.0857872739, -0.1768642962, 0.0369856954, -0.121113494, 0.0471084453, 0.3025898635, -0.1103605628, -0.1657053381, -0.1256040633, -0.0691812932, -0.1423523277, 0.2711536586, -0.3945429325, -0.1802496612, 0.1024449319, -0.0627269968, -0.0776354223, 0.2761702836, -0.330293119, -0.2617784739, 0.0633344948, 0.3113533854, -0.3719662428, 0.0762865916, 0.4057539105, 0.1531731486, 0.0045682145, -0.0382465012, -0.0839486346, -0.2303083241, -0.4416763484, 0.0756094828, -0.0475242175, 0.1286154091, 0.2946779728, -0.0733427703, -0.0314382799, -0.0484548584, -0.0901324525, 0.2570098937, -0.0899744332, 0.2848593593, -0.1690306813, -0.1259722412, -0.1103044376, -0.1840956509, 0.1707034856, -0.0802198648, -0.0567748919, -0.2014106512, -0.2966367304, 0.0954907387, 0.0731393769, 0.2481430173, 0.0807809383, -0.0638768226, -0.0167128611, -0.3351784945, 0.1609588414, 0.2288006246, 0.2169885933, 0.0056775264, -0.2819871008, 0.3445268273, -0.073021248, 0.039783787, 0.3688854277, -0.1323992908, -0.4168664217, 0.3294692636, 0.3667802513, 0.9066294432, -0.1412285864, 0.2516909838, 0.0521108657, 0.0443725064, 0.379629761, -0.2828923464, 0.0604830906, 0.0479294434, 0.0563858896, -0.0548547022, 0.1923683733, -0.0117860539, 0.0325935893, -0.275164932, -0.1745013148, 0.3504127562, 0.1096888706, 0.0581242368, 0.3463208973, -0.0501323305, -0.4585259557, -0.2810158432, 0.2333678752, 0.0736545548, -0.1327342242, -0.0186843965, -0.0988537818, 0.0398562253, -0.0720824152, -0.3393507898, -0.0706250221, -0.3228843808, 0.2183895111, -0.308116734, -0.3472005725, 0.1668397635, 0.2316637933, 0.2130430043, 0.1262043267, -0.2604316473, 0.2059072405, -0.0819388479, -0.1436516792, 0.0000350554, -0.0936641917, 0.364066422, -0.1577276438, -0.1965638399, 0.0312893242, 0.2719175816, -0.1914389282, -0.4962573647, -0.1763629317, 0.3231757283, 0.2469760776, 0.0594019704, 0.2734151781, -0.420081526, -0.279900074, 0.2923044562, -0.1240278035, 0.139734447, 0.090626359, 0.2457036376, -0.0870910808, -0.0481114164, 0.2409695685, 0.2811488807, 0.0817728937, 0.2042908669, 0.3132542372, -0.1231459677, -0.4118822515, -0.2268985659, 0.0112832189, -0.3043795824, -0.0997028574, 0.075029701, -0.3576362729, -0.1853453815, 0.2977905869, 0.0945064574, -0.0108859651, -0.0280812215, -0.104707174, -0.0504857972, 0.4871656299, -0.1233899519, 0.1704572886, 0.0498322472, 0.1368637681, 0.1661450267, 0.2778989673, -0.4913753569, 0.0999070555, -0.1608650386, 0.1617065072, 0.1140983626, -0.2118062377, 0.0391213, 0.1311940104, 0.2852498591, -0.0028897552, -0.1713041216, -0.3745980859, -0.1606842279, 0.0489701405, 0.0406194441, -0.0218042042, 0.2007368803, -0.1021691784, -0.075192146, -0.2093645781, 0.170140624, -0.0332107544, -0.235269323, 0.1865300387, -0.1608070433, 0.1187050864, 0.1141011491, -0.1843488514, -0.0202733669, 0.2034232765, 0.1748362631, -0.1693175435, 0.2350271195, -0.090575017, 0.0716959387, 0.2352731675, -0.1609387249, 0.1508632898, 0.22368294, 0.1156171039, 0.046740178, 0.0889115855, 0.2442272305, -0.2031773925, -0.3575416207, 0.0098930569, 0.2128424644, 0.3950456977, -0.3788528442, -0.1032667682, 0.1637059599, -0.3952121437, 0.4144688547, 0.2580401301, 0.1857469529, -0.0102851801, -0.1041494682, 0.0706411228, -0.1911442429, -0.3604948521, -0.0429542065, 0.0436507836, 0.0383596979, 0.0862421021, -0.1259579062, 0.1100242585, 0.2090563923, 0.2760358453, -0.0548093542, 0.3306506574, -0.0164462365, 0.0951900482, 0.3387245536, 0.2413451821, 0.4937801957, 0.0987096876, 0.0264338162, 0.3570222855, -0.0418578535, 0.2647001147, 0.1094167084, -0.034785334, -0.1574991196, 0.187232703, 0.0186632369, -0.1193159148, -0.2749849856, -0.1580919325, -0.1344575584, 0.0357709043, -0.0121378247, -0.0608970672, 0.1425048411, 0.0659468845, -0.1128230691, -0.201325193, 0.0615972467, -0.0594317168, 0.4502527118, -0.2346452177, 0.2587008178, 0.1951896548, -0.0046939291, 0.0203922391, 0.4529597461, 0.112104319, 0.019977089, -0.1175721884, 0.0875313953, -0.114308767, -0.061771743, -0.1920992732, 0.0724602044, 0.3947676718, -0.0750949383, 0.2475585938, 0.236138463, -0.3471648097, -0.1523065567, 0.4345367253, -0.1978103966, -0.0468036309, -0.5462716818, 0.0078052361, 0.0408355705, -0.2892584205, 0.0690495074, -0.637196064, -0.0430860594, -0.0008575172, -0.0671569929, 0.0473668277, -0.0951450542, 0.1405508965, 0.1236739159, 0.4421503842, 0.3087599874, 0.1302765012, 0.0961523876, -0.3838952184, -0.446438849, 0.165471822, -0.1000231653, -0.0665667132, -0.1452491432, 0.321154058, 0.2846552432, 0.2771971524, -0.0085254181, -0.1527163386, -0.0146443518, 0.1127069667, -0.3975604475, 0.1767693162, 0.0961188823, 0.1993730366, -0.0299789477, -0.1019918174, 0.1034432575, -0.056199532, 0.2615951002, -0.2036397755, 0.102962628, -0.1265001148, -0.0658517629, 0.1697728336, -0.1092779413, 0.0920383409, -0.4555152953, -0.3111367822, -0.1391869038, -0.1233393773, -0.1475510448, 0.2659368515, 0.2873288691, 0.4175904393, -0.0261233281, -0.1063955426, 0.2146098614, 0.4109917879, -0.0069877491, 0.081328705, 0.0300202575, -0.0731000528, 0.3030554354, -0.1591516882, -0.098505877, 0.4811171591, -0.1448982358, -0.2175184041, -0.0372310281, -0.5459349155, 0.0817107856, -0.3308123648, -0.2261419147, -0.0765321776, -0.0824959278, 0.0465272143, 0.2357187569, -0.4232021868, 0.1949178725, 0.2078907192, 0.3215321004, -0.0627836511, 0.3240291178, 0.1668283939, -0.1704506576, -0.1509878784, -0.0996923894, 0.043273434, -0.0744077042, -0.1939665377, -0.382758081 ]
https://github.com/huggingface/datasets/issues/2901
Incompatibility with pytest
Sorry, my bad... When implementing `xpathopen`, I just considered the use case in the COUNTER dataset... I'm fixing it!
## Describe the bug pytest complains about xpathopen / path.open("w") ## Steps to reproduce the bug Create a test file, `test.py`: ```python import datasets as ds def load_dataset(): ds.load_dataset("counter", split="train", streaming=True) ``` And launch it with pytest: ```bash python -m pytest test.py ``` ## Expected results It should give something like: ``` collected 1 item test.py . [100%] ======= 1 passed in 3.15s ======= ``` ## Actual results ``` ============================================================================================================================= test session starts ============================================================================================================================== platform linux -- Python 3.8.11, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 rootdir: /home/slesage/hf/datasets-preview-backend, configfile: pyproject.toml plugins: anyio-3.3.1 collected 1 item tests/queries/test_rows.py . [100%]Traceback (most recent call last): File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pytest/__main__.py", line 5, in <module> raise SystemExit(pytest.console_main()) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/config/__init__.py", line 185, in console_main code = main() File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/config/__init__.py", line 162, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 60, in _multicall return outcome.get_result() File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result raise ex[1].with_traceback(ex[2]) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall res = hook_impl.function(*args) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/main.py", line 316, in pytest_cmdline_main return wrap_session(config, _main) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/main.py", line 304, in wrap_session config.hook.pytest_sessionfinish( File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 55, in _multicall gen.send(outcome) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/terminal.py", line 803, in pytest_sessionfinish outcome.get_result() File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result raise ex[1].with_traceback(ex[2]) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall res = hook_impl.function(*args) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/cacheprovider.py", line 428, in pytest_sessionfinish config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/cacheprovider.py", line 188, in set f = path.open("w") TypeError: xpathopen() takes 1 positional argument but 2 were given ``` ## Environment info - `datasets` version: 1.12.0 - Platform: Linux-5.11.0-1017-aws-x86_64-with-glibc2.29 - Python version: 3.8.11 - PyArrow version: 4.0.1
19
Incompatibility with pytest ## Describe the bug pytest complains about xpathopen / path.open("w") ## Steps to reproduce the bug Create a test file, `test.py`: ```python import datasets as ds def load_dataset(): ds.load_dataset("counter", split="train", streaming=True) ``` And launch it with pytest: ```bash python -m pytest test.py ``` ## Expected results It should give something like: ``` collected 1 item test.py . [100%] ======= 1 passed in 3.15s ======= ``` ## Actual results ``` ============================================================================================================================= test session starts ============================================================================================================================== platform linux -- Python 3.8.11, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 rootdir: /home/slesage/hf/datasets-preview-backend, configfile: pyproject.toml plugins: anyio-3.3.1 collected 1 item tests/queries/test_rows.py . [100%]Traceback (most recent call last): File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pytest/__main__.py", line 5, in <module> raise SystemExit(pytest.console_main()) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/config/__init__.py", line 185, in console_main code = main() File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/config/__init__.py", line 162, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 60, in _multicall return outcome.get_result() File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result raise ex[1].with_traceback(ex[2]) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall res = hook_impl.function(*args) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/main.py", line 316, in pytest_cmdline_main return wrap_session(config, _main) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/main.py", line 304, in wrap_session config.hook.pytest_sessionfinish( File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 55, in _multicall gen.send(outcome) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/terminal.py", line 803, in pytest_sessionfinish outcome.get_result() File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result raise ex[1].with_traceback(ex[2]) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall res = hook_impl.function(*args) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/cacheprovider.py", line 428, in pytest_sessionfinish config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/cacheprovider.py", line 188, in set f = path.open("w") TypeError: xpathopen() takes 1 positional argument but 2 were given ``` ## Environment info - `datasets` version: 1.12.0 - Platform: Linux-5.11.0-1017-aws-x86_64-with-glibc2.29 - Python version: 3.8.11 - PyArrow version: 4.0.1 Sorry, my bad... When implementing `xpathopen`, I just considered the use case in the COUNTER dataset... I'm fixing it!
[ -0.3016421199, -0.1903872788, -0.0241492949, 0.0990293771, 0.3130396903, -0.1301406622, 0.3114988804, 0.2646481693, -0.1026777923, 0.2515563369, -0.0329412185, 0.3579744101, -0.0499672778, 0.0878717452, -0.1619878709, 0.1268500686, -0.0505254902, 0.0685187206, 0.0408935249, 0.1136002094, -0.5712682605, -0.1570851803, -0.2168759555, 0.0572490133, 0.0126794586, 0.0686679184, 0.0916296914, 0.2422822416, -0.0774931237, -0.469889611, 0.1960368752, -0.0263328627, -0.0422579646, 0.4722329378, -0.0001045304, -0.0628838241, 0.4584931433, 0.2026191652, -0.4859764278, -0.2095862329, -0.1490363926, 0.2063343376, 0.2531500459, -0.254386425, -0.1224498227, -0.2215161026, 0.0800599158, -0.5224384069, 0.0328101404, 0.2298583686, 0.2646005154, 0.5858446956, 0.1764907539, -0.1220323741, 0.3920012712, -0.1865620166, -0.0988033265, 0.1512855589, 0.2791418135, 0.0342658088, -0.1552184969, 0.2738155425, -0.251668334, 0.2581939995, 0.0830629617, 0.0403149687, 0.1071799397, 0.1236744151, 0.0054618004, 0.1477268934, -0.0244684517, -0.2447356284, -0.187163204, 0.0132809207, -0.1560323685, -0.4709234536, 0.0660294145, 0.2990931869, -0.1927743256, 0.0707391798, -0.1533978879, 0.285312593, -0.2178352475, 0.2086598277, -0.0414643139, 0.474942416, 0.0106467595, 0.0582296215, 0.0282520335, 0.0535728522, 0.3718392253, -0.029089909, 0.0258877985, -0.2166382521, -0.0353300683, 0.0447735675, 0.3098430037, 0.1299089044, 0.1545516998, 0.1684173644, -0.0050124396, -0.0647071525, 0.1099802256, 0.1257055998, -0.0156705379, -0.0932240486, -0.0586434491, 0.1788802147, 0.1195266545, 0.1648669541, -0.1360280216, 0.0084639816, -0.0668128058, -0.3070941567, 0.0900237709, 0.1294367164, 0.5126132965, -0.0637784451, -0.3585409522, -0.1637833863, -0.3168658912, 0.1315581501, -0.0887979344, 0.1646843106, -0.3344549835, 0.0525158457, 0.2567434609, 0.1665857583, -0.3985979259, 0.1734841466, -0.1729390174, -0.0025560693, -0.2071772516, -0.1981868595, 0.0244949311, -0.0061054123, 0.0369944014, 0.0258494634, -0.0169168096, -0.0553664789, 0.1729714125, -0.0304495171, 0.0978282169, 0.0834876001, 0.1038077101, 0.0230855085, 0.0646957457, 0.2365556359, 0.0004667089, 0.4194874167, -0.1334887296, -0.2440327555, 0.1164916679, 0.35601753, 0.0041353889, -0.1565836817, 0.1820517033, -0.3767896891, -0.1220365986, -0.0800681487, 0.0026528577, -0.2985853255, -0.1478585154, -0.2639125884, 0.2254217416, 0.2425370067, 0.2605780959, 0.0505344905, -0.0282764584, 0.1627342254, 0.3797311783, 0.1669939458, -0.1939092427, -0.0896540061, -0.1379573345, 0.1596079618, -0.0486291014, -0.4239594936, -0.3278156817, -0.1607752889, -0.1731502265, -0.07503663, 0.049631156, 0.0323371701, 0.3179516196, 0.0479337424, -0.0318585075, 0.412953496, -0.0740917623, 0.0748518556, -0.4666415751, -0.3798174262, 0.5641200542, 0.151705578, 0.0570301823, -0.3497416377, 0.2054489851, 0.0608398058, 0.5148956776, -0.1897210926, -0.1518411934, -0.2993411422, 0.752466023, -0.0474503674, 0.0110379141, -0.0960698351, 0.0665274039, 0.0204419531, 0.2316295356, -0.2802456915, -0.1499119997, -0.0891542956, -0.1524517834, 0.1319255084, -0.3466832638, -0.382157594, 0.2474724054, 0.2782579362, -0.1456098258, -0.1309039593, -0.0118953492, -0.0933069214, -0.3045151532, 0.100494273, 0.0386145003, 0.1053284183, -0.0396609642, -0.094124943, -0.1193556041, 0.298748225, 0.162939176, -0.0600543693, -0.1179709211, 0.3312662542, 0.2449479997, 0.1955460757, -0.0468190089, 0.0072500408, 0.0820179358, -0.3156889975, -0.2024822384, 0.3221007586, 0.0975408554, -0.002581625, 0.0227513239, 0.1893991232, -0.2354014963, 0.1002926081, 0.2986403406, 0.0012304113, -0.0390900932, -0.1708397567, 0.0159268808, 0.3352193236, 0.253539145, 0.4091952145, 0.4384313226, 0.0471034944, -0.1185913086, -0.0291307271, 0.1720729768, 0.0163347404, 0.2327632755, 0.1700844765, -0.400013119, -0.0777249038, -0.0843988508, 0.3033127487, 0.3952056468, 0.275578618, 0.0969723538, 0.0887242258, -0.1324126124, -0.2870429754, 0.2992976308, 0.1152055711, 0.0208725408, 0.2415834963, 0.2297437042, 0.1021427438, -0.2554797828, -0.0732267201, -0.1389924884, 0.0566167571, -0.1460091919, -0.0478304811, -0.1640127003, 0.2011270672, -0.1140680909, -0.5005605817, 0.1816411167, -0.2008605003, 0.0143492073, 0.3810865879, -0.2022752911, 0.1200969592, -0.2770578265, 0.0942122191, 0.0885685533, -0.0884958655, 0.1415922791, -0.2295171022, -0.1760160774, 0.1794952601, 0.0489556827, -0.1769523323, 0.3923769593, -0.0935229883, -0.0265750755, -0.1780978739, -0.1293669194, 0.0228035133, 0.2426382601, 0.0753103569, 0.111499086, 0.05481565, 0.108430557, -0.2810976505, 0.3347675204, -0.2257572263, -0.0527905673, 0.1222594678, 0.0974359363, -0.0859619454, -0.1513888091, -0.6303583384, -0.1750367284, -0.3355152905, 0.0044383388, -0.107812658, 0.1289740354, 0.4354717731, 0.0387976281, 0.1618680805, -0.1536655724, 0.121643737, -0.0872593373, -0.0211115107, 0.2169368863, -0.1349027008, -0.4010963142, -0.198347047, -0.1213339865, -0.1045445204, 0.433926791, -0.2609218061, -0.2592196167, -0.2313274145, 0.0872525126, -0.1294534057, -0.0232153423, 0.3986389339, 0.2484317124, -0.2569616735, -0.2864581048, 0.0643375963, -0.0433718897, -0.0686287582, 0.0381864421, -0.087544404, 0.1517151892, 0.1127801165, 0.2772788107, -0.0392005183, -0.0387176163, 0.1129376143, -0.2495963275, 0.1978779882, -0.0433227047, -0.256916225, 0.1621052921, -0.2219971567, -0.3214866221, 0.0484665148, 0.2195314169, 0.1148819104, 0.0141728139, 0.0208034664, -0.3543073237, -0.2621160448, -0.2463587523, 0.3780513704, 0.0837339088, -0.0672197193, 0.1626053154, -0.1316152364, -0.1256516725, 0.1881820112, 0.3759931922, 0.1093446314, -0.0119339237, 0.2482949048, 0.0123445923, -0.0862110257, 0.0998784602, 0.0090176854, 0.1281881332, 0.0566877872, -0.1912219673, 0.0785223171, -0.0200078636, 0.164327085, 0.3458769023, 0.387481302, 0.3010594249, -0.1472473443, -0.2551456392, 0.0189636461, -0.5182095766, -0.3018001318, 0.0700561032, 0.1623141319, -0.2750703692, 0.0511011817, 0.3745272458, 0.1937805861, 0.0627759919, 0.0518822372, 0.0086369924, -0.4112387002, -0.0766517594, 0.0733634308, -0.0133935297, 0.4511975646, -0.036897406, -0.2186553776, -0.3560897112, -0.333645165, -0.0098668383, -0.0695359781, 0.410104692, -0.161490202, 0.1817578077, 0.0064769732, 0.3672036827, 0.3949998319, 0.21570158, 0.1406856179, 0.1515156925, -0.007653513, -0.1830333024, 0.0305453707, 0.1035782769, -0.352021575, 0.2259793282, -0.3184482455, 0.2777011096, -0.2909503579, 0.1956375539, 0.3502264917, 0.1843060404, 0.2732339501, 0.0076183779, 0.1056670472, -0.1933567673, -0.0941651911, 0.5531533957, -0.1504649967, -0.2331054062, -0.1227031499, 0.1427025497, 0.798979938, 0.2282719463, 0.1575280577, 0.8578522205, -0.379422754, -0.1998089552, 0.3360408843, 0.1782059669, -0.3571628928, 0.0383414142, 0.0812166259, -0.228775233, 0.0273007564, -0.2691111565, -0.0185519699, -0.1856172085, -0.0207111835, 0.0446326248, 0.1084755659, 0.0523586944, 0.040253371, 0.0424530245, -0.2928382456, 0.1929394305, -0.0179150142, 0.1270106137, -0.0508781746, -0.0839509666, 0.2480623722, -0.1010967717, -0.2043585628, 0.3419599831, -0.5799904466, 0.1721819341, -0.2692230642, -0.4562358558, -0.1075189933, -0.0367897227, -0.2285494804, 0.1678056121, -0.034031637, 0.1088864431, -0.025018584, 0.1675112695, 0.2350722551, 0.0307645444, 0.2065542489, -0.2243107855, 0.0097956462, -0.1305310428, 0.0516777299, -0.4160594046, -0.0600328259, 0.0467677265, 0.494930625, -0.2594941854, -0.2402201593, -0.2332240641, -0.1814632267, -0.3135359883, 0.2200746089, -0.0131482948, 0.1351002008, 0.1709565818, 0.0870712101, -0.3995954692, -0.1094917506, -0.0123062516, 0.0119483415, 0.1383818239, 0.4005638361, 0.1243489757, -0.3258515, -0.2226490825, 0.1260189861, 0.1640535593, -0.0271104369, 0.0868695006, -0.0412157513, 0.1951783746, -0.1118135676, 0.0058581447, 0.2094234228, 0.0991211757, -0.1979446858, -0.4055492878, -0.1660560668, 0.1417739689, 0.2028817385, 0.1181820855, -0.0264829546, 0.2930473983, -0.0213118494, -0.250485301, -0.3906231225, 0.1107914075, 0.2336137593, 0.1192180067, -0.1454875469, -0.2076455355, 0.3068408668, -0.0104081798, 0.2542708516, -0.051687777, -0.1347726136, -0.3061599433, -0.3753732443, 0.0859213248, 0.0782093406, -0.3529872596, 0.1614413857, -0.1700136662, 0.0037516817, -0.1876564473, 0.1137397587, 0.3402270079, -0.2084238827, -0.0727987811, 0.3792553246, 0.1400492191, -0.2362306863, 0.0073809871, -0.2387416065, 0.2812373936, -0.1352637857, -0.0331278555, 0.1245579347, -0.0565308221, -0.1441801339, -0.2388965189, 0.2134499103, 0.1605943888, 0.2762319148, -0.1227833033, -0.11529129, -0.1517725885, 0.5579532981, 0.198146686, -0.1018952206, -0.0254687592, 0.0657821447, 0.377563864, -0.2160446793, -0.0246563014, -0.1456676871, -0.1745386422, 0.1609793305, -0.06970983, -0.4467020631, 0.0724190399, -0.1336331218, 0.0843940005, -0.0011720849, -0.1661704034, -0.0122293616, 0.1776824147, -0.1440191418, -0.0499875061, 0.0935866535, -0.0745285526, 0.1813107729, 0.2331058681, -0.0133844428, 0.6520751119, 0.5496276617, -0.2443293333, 0.0571718849, -0.0549315177, 0.0069860495, -0.1236407459, -0.0362573415, 0.0326864682, 0.0409415178, 0.2288151681, -0.2829382718, 0.1047509387, -0.0511482842, -0.0435396358, -0.0990097001, -0.2635801733, 0.0496004447, -0.0047050342, -0.0728645399, -0.0293682516, -0.1020355001, 0.0224539246, 0.0303376559, 0.0476331823, -0.1048749685, -0.3494413197, 0.0213044882, 0.2079137266, 0.1573521048, -0.3372322619, 0.0876498446, 0.218774423, 0.143193692, -0.1703726351, 0.4733753502, 0.330448091, 0.4719161391, -0.2293340415, -0.1304816902, -0.1675468981, -0.0063679451, -0.0394412205, -0.0647637993, 0.013415969, 0.1269380897, 0.2298047692, 0.3690746725, -0.3679998517, 0.2118322849, -0.0242782552, -0.2714368403, -0.1849635541, 0.2795254588, 0.1443216503, -0.2951877415, 0.0125996275, -0.0279961135, -0.2422025651, -0.0668567345, 0.2900865078, 0.2645173967, 0.0876090899, -0.0397080444, 0.1404092163, 0.1440564841, 0.1232805997, 0.1019615456, -0.007067997, -0.4234194756, 0.0328579731, -0.4711897075, 0.4904586673, -0.1441804022, -0.446585238, 0.0725421757, -0.0549177974, -0.2503592968, 0.2345560342, 0.3334582746, 0.3571134806, 0.1524520814, -0.0025301664, -0.255433023, 0.1322989017, 0.2028841376, -0.1032729968, -0.1260176003, -0.3461897969, 0.2244306803, -0.2395664901, 0.2582560182, 0.0934694856, 0.0410272479, 0.2902907431, 0.0138179325, 0.017829489, -0.0170892756, 0.395065397, -0.320538342, 0.0409307852, -0.1458014548, -0.2275678366, 0.0252156015, 0.0532084107, 0.0172631126, 0.0858793035, 0.1734698564, -0.5986049175, -0.434243381, 0.4738562405, -0.3005673587, -0.1423755139, 0.1085444987, 0.3310374022, 0.0011340193, 0.1555804163, -0.037431892, 0.1749423742, -0.1264825761, 0.0589323528, -0.2458039671, -0.7254006267, 0.2943550944, -0.7327613235, -0.2969195843, -0.2304133028, 0.460382551, 0.0212493073, 0.238044709, -0.2867960334, 0.1030114964, 0.2128991187, 0.0478451774, -0.1016833112, 0.1259424686, 0.017026538, -0.023835374, 0.1139790639, 0.6136496067, 0.1038713083, -0.0976273566, -0.0312423818, -0.282785058 ]
https://github.com/huggingface/datasets/issues/2892
Error when encoding a dataset with None objects with a Sequence feature
This has been fixed by https://github.com/huggingface/datasets/pull/2900 We're doing a new release 1.12 today to make the fix available :)
There is an error when encoding a dataset with None objects with a Sequence feature To reproduce: ```python from datasets import Dataset, Features, Value, Sequence data = {"a": [[0], None]} features = Features({"a": Sequence(Value("int32"))}) dataset = Dataset.from_dict(data, features=features) ``` raises ```python --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-24-40add67f8751> in <module> 2 data = {"a": [[0], None]} 3 features = Features({"a": Sequence(Value("int32"))}) ----> 4 dataset = Dataset.from_dict(data, features=features) [...] ~/datasets/features.py in encode_nested_example(schema, obj) 888 if isinstance(obj, str): # don't interpret a string as a list 889 raise ValueError("Got a string but expected a list instead: '{}'".format(obj)) --> 890 return [encode_nested_example(schema.feature, o) for o in obj] 891 # Object with special encoding: 892 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks TypeError: 'NoneType' object is not iterable ``` Instead, if should run without error, as if the `features` were not passed
19
Error when encoding a dataset with None objects with a Sequence feature There is an error when encoding a dataset with None objects with a Sequence feature To reproduce: ```python from datasets import Dataset, Features, Value, Sequence data = {"a": [[0], None]} features = Features({"a": Sequence(Value("int32"))}) dataset = Dataset.from_dict(data, features=features) ``` raises ```python --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-24-40add67f8751> in <module> 2 data = {"a": [[0], None]} 3 features = Features({"a": Sequence(Value("int32"))}) ----> 4 dataset = Dataset.from_dict(data, features=features) [...] ~/datasets/features.py in encode_nested_example(schema, obj) 888 if isinstance(obj, str): # don't interpret a string as a list 889 raise ValueError("Got a string but expected a list instead: '{}'".format(obj)) --> 890 return [encode_nested_example(schema.feature, o) for o in obj] 891 # Object with special encoding: 892 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks TypeError: 'NoneType' object is not iterable ``` Instead, if should run without error, as if the `features` were not passed This has been fixed by https://github.com/huggingface/datasets/pull/2900 We're doing a new release 1.12 today to make the fix available :)
[ -0.0830345005, -0.2502439916, -0.0386255719, 0.3015390933, 0.2076890171, 0.0788367391, 0.5001555681, 0.1494158357, 0.1255292594, 0.1421060264, 0.3285635114, 0.0508400798, -0.2967574298, 0.3420606554, -0.2623355389, -0.2604982257, 0.034535449, 0.2224871665, 0.0154916933, -0.0224474147, -0.3130667508, 0.1709361374, -0.364877075, -0.2221626192, -0.1550774723, -0.2108083814, -0.2160241902, -0.2960246801, 0.0542513058, -0.5987132192, 0.2819482088, -0.0695153251, 0.0921094567, 0.2383219302, -0.0001144155, 0.105492115, 0.6381921768, -0.1453159899, -0.2628047466, -0.3394742906, -0.5618312359, -0.4227804542, 0.1241655424, -0.3578473926, -0.0965121984, -0.0749715865, 0.094718039, -0.3724971116, 0.2042126656, 0.2839667201, 0.2130593061, 0.3830007613, -0.0845509171, -0.0744024739, 0.206820786, 0.4162615538, -0.2607547045, -0.1798537225, 0.035758879, 0.2699487805, 0.0946282744, 0.3492396772, -0.111404337, -0.1305068284, 0.2094347328, 0.0849353001, 0.0885619074, -0.4521939754, -0.2671251595, 0.2014953941, 0.2924095094, 0.0013618435, -0.4084641933, -0.2180884778, 0.0188714378, -0.6638943553, 0.2666681111, 0.055101525, -0.0386278071, -0.0269636735, -0.168392688, 0.145001635, -0.2138954103, 0.1660171747, -0.1209752634, 0.0807909966, -0.1394540668, 0.0341406651, -0.2402791679, -0.2700186968, 0.0587494336, -0.3706248403, -0.0257517211, 0.2111456394, -0.2515126467, -0.1936304271, 0.167350471, 0.0101849167, 0.1697200388, 0.1379934251, -0.0658706501, -0.1037984863, -0.0693587288, -0.0169596635, 0.2529113591, 0.2136024684, 0.4112964869, -0.0680698305, -0.0581751354, 0.1961243749, 0.0996622145, -0.017598724, 0.11928422, 0.0517393723, 0.0169261098, 0.4072842002, 0.6467193961, -0.0525628068, -0.393481791, 0.2361950129, -0.3853594661, -0.0304983035, -0.0211958643, 0.0061908085, 0.0841203332, 0.2916485071, -0.1465796083, 0.2161677331, -0.2736037076, -0.250882864, -0.2348464429, 0.0721954107, 0.1018402427, 0.0885985568, -0.0547403768, -0.0332995802, 0.0658167601, 0.1560105532, 0.0796802491, 0.1009850726, -0.0555230267, -0.365808934, 0.0925061703, 0.1523720324, -0.0070467223, 0.2921590805, 0.3762358427, -0.2581280768, -0.1091617644, 0.1182429716, -0.2788110375, -0.217513755, -0.005827894, 0.1725294441, -0.3795679808, 0.0441264361, -0.0734036565, 0.2263460904, 0.2108575404, -0.0775901377, -0.0965437591, -0.0869289562, -0.2196164131, -0.1535144448, -0.0919654146, 0.6465163827, -0.1091333926, -0.012587267, 0.1191491932, -0.0898958445, 0.3521232605, 0.2327210456, 0.0481479168, -0.057248231, -0.3404105306, 0.1900297105, 0.0831347257, -0.1115483418, -0.208607167, 0.5657577515, 0.0239907876, 0.3598697484, 0.1134639457, 0.0959460512, 0.1585700363, -0.3072297871, 0.0130883651, 0.1975988597, -0.1874651164, -0.2206795961, -0.2418985963, -0.1231627762, 0.5206927657, -0.0743467882, -0.0640905127, 0.2067834437, -0.3010617197, -0.0231112521, -0.1406468004, -0.3186881542, 0.1288141012, 0.5053259134, 0.21923922, 0.0375964157, -0.0967492238, -0.4028446674, -0.362685889, 0.1312113106, -0.179603979, 0.2839995623, -0.4932679534, -0.1799385846, 0.0735202953, 0.019041175, -0.3947464824, 0.0015028021, 0.1547810137, 0.1214925349, -0.1535111219, 0.1999227107, -0.0773415267, 0.2772004306, 0.1561118215, -0.1248554364, -0.567322731, 0.3699874282, 0.0695009977, -0.2262255251, 0.0071669328, 0.3033728004, 0.3317838013, -0.0899984464, 0.018318845, 0.1505862623, 0.0259702709, -0.3309904039, -0.3067805767, -0.1571382731, 0.3190588653, -0.4185928106, -0.2214330137, 0.3747457862, 0.1825433373, -0.1073410809, -0.1209880039, 0.6575422287, 0.0157377589, 0.4647912979, 0.0042069959, 0.1760141253, 0.0537278354, -0.0018615762, -0.327142626, -0.2869090438, 0.1755582988, 0.2026411891, -0.1650790572, -0.0399117619, -0.3015944362, 0.0058686477, 0.4108926356, 0.088436991, 0.0354627408, 0.0570802502, -0.0770579055, -0.0368382186, 0.1092406586, -0.159593001, 0.299883306, 0.0505586714, -0.0732196867, 0.0735782608, 0.0075443899, 0.0745387301, 0.1758682579, -0.0350369215, 0.2430823594, 0.0285679307, 0.1076480895, 0.1176982298, -0.1779721677, -0.5438489318, -0.0398581289, 0.1430890262, -0.2491215467, 0.2492818087, -0.4795846939, -0.2056158483, 0.130416885, -0.2173653096, -0.386295557, -0.4440228939, -0.1639413238, 0.0275585894, -0.14083983, 0.2236978859, 0.0148140779, -0.26245597, 0.2985749543, -0.0243482068, -0.0831376389, -0.1392291635, -0.0242327861, 0.0463199466, 0.1656642258, -0.0481024235, 0.2467772514, 0.0332959294, -0.3499837816, -0.2126868665, -0.2085345984, 0.0565498397, -0.3503640592, 0.0777079239, 0.3079494238, 0.1277272999, -0.04940686, -0.1998873949, 0.4227285385, 0.4243725836, -0.2120994478, 0.3217695653, -0.102062583, -0.0354735814, -0.2110650837, -0.0959021896, -0.1572214514, -0.2278930247, 0.1076047793, 0.2109689265, 0.2101610452, 0.4471023381, 0.0470193811, 0.120879285, 0.1355805248, -0.175628379, 0.0008855638, -0.0150361629, 0.4824748039, -0.1827880889, -0.2712480724, 0.1487995982, -0.2987255454, 0.0875612497, 0.2041173279, -0.3575526774, -0.1763042659, -0.1413789541, 0.1611307114, 0.0745360553, -0.1046581939, 0.3775742948, 0.2816057205, -0.1083455756, -0.0367697217, -0.0508110113, 0.2569004595, -0.0705505088, 0.0287486054, 0.229687199, 0.5177567601, 0.0398100056, 0.0972354859, 0.4376426637, 0.1970631927, 0.4261662662, -0.0823322833, 0.0689360127, -0.1690145433, 0.0005423338, -0.1711448282, 0.107939221, -0.0178557411, 0.0836275071, -0.2327573746, -0.1191914901, -0.0793068409, -0.0630706996, 0.1038516238, -0.2357092947, 0.129370749, -0.4676784277, 0.442966491, -0.0864085481, 0.0182908159, -0.3036096394, -0.0047005508, -0.1684736162, -0.0083024697, 0.322756052, -0.1478672475, -0.64961797, -0.172231406, -0.2026044726, 0.1215542853, 0.3011380136, 0.5467792153, -0.0337624177, -0.0624163561, -0.1075646654, -0.0191717129, 0.4020332694, -0.1643890142, -0.1837625653, 0.2454210073, -0.2638014555, -0.2387931347, -0.0567740202, -0.3692710102, 0.3344596624, -0.2252197117, 0.3618203402, -0.3405365348, -0.2225623876, 0.2660458982, 0.0742505565, -0.0913682804, -0.1132186204, -0.0910779387, -0.223561734, -0.1456012279, 0.0129503747, 0.2087670118, 0.262157619, -0.1340866685, -0.0023913924, -0.5279824138, 0.0307506509, 0.3058232069, -0.2428039312, 0.3555576503, -0.0859422684, 0.1051599681, -0.1363119334, 0.1940722018, 0.2076593935, 0.3552796543, 0.377152741, -0.648413837, 0.0111574912, -0.2274465859, 0.1626977772, 0.2772224844, -0.0934667066, 0.0936513171, 0.0833641216, 0.1915255636, -0.2102062851, -0.3317123055, 0.4189606011, -0.0805432349, -0.6726543307, -0.2872206569, 0.2649118006, 0.0967709273, 0.2421812862, -0.1336611062, 0.2232288569, -0.2113029659, 0.3653744459, -0.0063009313, 0.6850805283, 0.4925385714, 0.0419002809, 0.5505322814, 0.447142154, 0.6043536663, 0.4047942162, 0.2582224309, -0.1625066251, -0.6721657515, -0.1485058814, -0.0585912243, 0.4232234955, 0.1191022769, -0.4531514645, 0.489102751, -0.1281993687, -0.0638250262, -0.0981585309, -0.2965756059, -0.1317236423, -0.0439694487, -0.2515955269, 0.1245702505, 0.0693780556, 0.1620190293, 0.0573866554, -0.3246811926, 0.0522958711, -0.1667520255, -0.1947969943, 0.169654116, -0.1433667392, 0.0941162854, 0.0364244618, -0.3463888764, 0.2818099856, 0.2232395709, 0.1879022419, -0.1312100291, -0.1560928375, -0.1969094723, 0.0400298387, 0.1034141481, -0.0801590979, -0.0777151361, 0.3071270287, -0.0268944614, -0.1485314518, 0.1475492716, -0.2142958194, 0.1054213047, 0.3429113925, 0.0590512119, -0.1748204976, -0.1611669809, -0.453250885, 0.0302399192, 0.1710843444, -0.0500850677, 0.1164650768, 0.0069036391, -0.2920267582, -0.0495645739, -0.1978931725, -0.0086773541, -0.0171592813, 0.3072853088, 0.5229854584, 0.0768130943, 0.6932663918, 0.191862449, -0.2426931262, -0.1660664529, 0.1627267897, 0.1830895394, -0.5128666759, 0.3100555539, -0.1137086079, 0.1459202468, -0.2419808209, 0.4570830464, -0.2819413543, 0.2090833783, -0.0393038131, -0.1175033078, -0.1571840644, 0.2325696945, -0.1332800984, 0.1057097316, -0.2226439267, 0.1152285784, -0.0790469125, -0.2166758925, -0.2946244478, -0.0973041132, -0.4076433778, 0.3669984043, 0.1148904189, 0.0858326256, 0.2190838307, 0.1607996225, 0.1681335419, 0.0856592953, -0.1367595494, -0.196850881, -0.0751663223, 0.1268492639, 0.1073024794, -0.1864513606, 0.1410098374, 0.0269025378, -0.0628488362, -0.1389683783, 0.0139900362, 0.1784923375, -0.0842979401, 0.4305182099, 0.3046940267, 0.3934035599, -0.1181101874, 0.160622254, -0.0320248976, 0.2289986759, -0.0731261298, 0.0898118019, -0.0715093166, 0.0787385702, -0.4437326789, 0.1356508732, -0.129166916, 0.1195798442, 0.2263306379, -0.3602280319, 0.0355114751, 0.3236742318, -0.0311139822, 0.0755379125, -0.198323831, -0.0149546945, 0.090865083, 0.1674839258, -0.161023438, 0.0044072028, 0.1927999556, 0.098377116, 0.055364117, 0.2497331053, 0.0238154791, 0.2197780013, 0.1523765475, 0.0410668887, 0.0576352365, -0.1304038465, 0.4767722189, 0.2502485216, 0.106006749, -0.005961901, -0.0451643243, -0.1361158639, 0.2374778241, 0.4095085859, -0.0225137156, 0.1133541986, 0.4354737401, -0.0183572639, -0.0299489778, -0.2667696178, -0.183229357, 0.0874819532, 0.3381926715, 0.2028533518, 0.1870117784, -0.3521421552, -0.3258129656, -0.2701639831, -0.069582805, 0.3099346757, -0.0583300889, -0.0029459991, 0.0356674194, 0.0114391381, -0.3740221262, -0.2415987253, -0.0964923352, -0.1092930734, 0.2701234221, 0.2186554223, 0.1762788445, -0.3771931529, 0.27475968, 0.2808687687, 0.2680353522, -0.1144816577, 0.2841907442, 0.3918447495, 0.0941931978, 0.1932379305, 0.5161973834, 0.3695507646, 0.2945841849, -0.020104045, 0.1129500493, -0.0390780009, -0.3450121284, 0.0877992213, -0.059845686, -0.2485655695, 0.2879635692, 0.1558267176, 0.1228244901, -0.1254130453, 0.3168381751, 0.0544719622, -0.1103277802, -0.2857102156, 0.7373996973, -0.2703433633, 0.0276814178, -0.0651036352, -0.2521202862, -0.4581924081, -0.0652412251, 0.381400764, 0.1698071212, 0.149515003, 0.2177317739, 0.0697703585, -0.4082437456, 0.330963999, 0.3403661847, 0.0769058913, -0.2651322186, 0.0617089309, -0.2750614285, 0.1116446406, -0.1015280634, -0.0691227019, 0.2495637238, 0.1278142929, -0.1932554841, 0.1148602813, -0.2204782218, -0.1393817365, -0.104323633, 0.25245592, -0.3717963696, -0.1946512759, 0.2883968651, -0.0892380476, -0.1251148432, -0.2652546763, 0.0353319235, 0.0039455947, 0.0739230812, 0.0550829805, -0.0448910445, -0.3227532506, -0.0278719831, 0.057251703, 0.6041781306, 0.1074118167, -0.0593114123, -0.3922547102, -0.2225103676, -0.272254765, -0.1133324504, 0.5871050954, 0.2825134397, 0.6090587378, -0.1371040046, 0.2531865239, -0.0552069545, 0.3776589036, -0.0609906539, 0.0438415594, -0.4244903922, 0.5184668899, -0.3719528913, 0.1762697846, 0.0068774358, 0.1811163276, 0.1390513331, 0.1774709225, -0.0504962131, -0.2920152545, 0.3989830613, -0.3084869087, -0.3456190228, 0.2019387633, -0.0813750997, 0.1927640736, -0.0473877303, -0.3078513145, -0.1343808621, 0.4044968188, -0.1600380987, -0.2725828886, 0.0046120416, 0.1497466266, -0.0676551685, -0.120562166, 0.1607695073, -0.0707525089, -0.2598537803, 0.3602844477, -0.3102980554 ]
https://github.com/huggingface/datasets/issues/2888
v1.11.1 release date
Hi ! Probably 1.12 on monday :)
Hello, i need to use latest features in one of my packages but there have been no new datasets release since 2 months ago. When do you plan to publush v1.11.1 release?
7
v1.11.1 release date Hello, i need to use latest features in one of my packages but there have been no new datasets release since 2 months ago. When do you plan to publush v1.11.1 release? Hi ! Probably 1.12 on monday :)
[ -0.3028725386, -0.1802771538, -0.2127547413, -0.0963228866, 0.0652879179, -0.1868623346, 0.0738429576, 0.3128882051, -0.2114172131, 0.4218455255, 0.2351345271, 0.0822070688, -0.0895844847, 0.4837630689, -0.1932857186, -0.2654596269, 0.0769366696, 0.0144002829, -0.1551253647, 0.0024792501, -0.1483270228, 0.119360745, -0.3253111243, 0.0831760392, 0.0989715233, -0.064572975, -0.3526091278, -0.1743175536, -0.5363405347, -0.3933886588, 0.461257726, 0.1939074099, 0.2547554672, 0.2986641824, -0.000103304, -0.4014018774, 0.5556403995, 0.2845861912, -0.2422691882, -0.2193116248, -0.3339813054, -0.5906572938, -0.1154627725, 0.0800851658, -0.2921097875, -0.1461395621, 0.082330212, -0.0849997699, -0.13677302, -0.1171071827, 0.2824233174, 0.0947450623, 0.1915313601, -0.3989170194, 0.284394294, -0.0203845855, -0.2789727747, -0.3155975044, 0.5697530508, 0.1857773513, 0.1898058355, 0.326002121, 0.2075845897, -0.1623990536, 0.1387228072, 0.1931113005, 0.1122244373, -0.32729882, -0.0393120684, 0.1010244489, 0.9985591769, -0.0018671668, -0.2434326708, 0.2223907411, -0.0925616995, -0.3847976029, 0.1220049784, -0.0718759969, 0.1220379025, 0.1305280179, 0.0270749014, -0.3837861121, -0.1746051461, 0.2439880967, 0.0338811204, 0.3361899853, -0.1041846797, -0.0660860538, 0.1154744327, -0.2463802546, 0.0967559218, -0.0215033758, -0.1613555253, 0.2227307111, 0.0464089848, -0.4094306231, 0.1858401746, -0.0288592987, 0.1305842102, 0.3231448531, -0.1524199545, -0.1115325615, -0.1302562058, -0.0906753838, 0.5744841099, 0.0935288742, 0.377846837, 0.2240085304, 0.3023318052, 0.1646759659, 0.210433796, -0.0148354508, 0.131557256, 0.2080590278, -0.1345603913, 0.092921719, 0.2413697988, -0.5841081142, 0.3566501141, 0.0036136017, 0.0791958421, -0.3253816366, -0.3280638158, -0.1975245178, -0.0646178052, 0.1883967668, -0.1564619541, -0.1827139109, 0.1210180596, -0.2046548128, -0.3577520847, 0.0363553949, -0.2325457633, -0.0549016744, 0.1167488173, -0.2526122332, -0.1254964024, 0.0305748545, -0.04656725, 0.0622468628, 0.0610297844, 0.1928608567, -0.2869565487, 0.2402708977, -0.1486318558, 0.2325121164, -0.3784801364, 0.3326986134, -0.1420154572, 0.2017378062, -0.0192655772, -0.2063460052, -0.235487327, 0.3137744367, -0.1372713745, -0.3029890358, 0.19962731, 0.3279361129, -0.3900982738, -0.1182468757, -0.1860611141, 0.2779344022, -0.1112236157, -0.2089126557, 0.0612550527, -0.0017352636, -0.2293154597, 0.0255627967, -0.3211435378, -0.2947054803, 0.1805807501, -0.0630620569, 0.0061964095, -0.2280418724, 0.1311280131, -0.185826987, 0.4691230059, -0.3665311038, -0.5793189406, 0.4294295013, -0.1866938472, -0.4467723966, 0.4338716865, 0.2241641581, 0.3097352386, -0.1575234383, -0.2617045343, 0.2637113929, -0.1526574194, -0.320348084, -0.2554035187, -0.3677665293, -0.0720299929, 0.1507190168, 0.1602411419, 0.2366000116, 0.2579503655, 0.2858259678, 0.1898807436, 0.1925684959, 0.1466663629, 0.0294717029, 0.5004534125, -0.10350997, 0.2177486867, -0.249899298, -0.2581174374, -0.0229802001, -0.0547287352, 0.2486825585, 0.5317671299, -0.2098047286, -0.168516919, -0.1740678996, 0.2359928489, -0.0324108824, 0.1631854326, 0.1089351401, -0.0164421871, 0.1266786158, -0.3025694489, 0.0803501308, 0.1472560316, 0.0244728141, -0.075657174, 0.1248692945, -0.2761505842, 0.0051354663, 0.2405391037, -0.0050578136, 0.0540098287, -0.2141433656, 0.1412835717, 0.0534515046, -0.0641530901, 0.3371422291, 0.6113381386, 0.1324200183, 0.3750956953, 0.1302689165, 0.219974041, 0.0903351158, -0.0883826166, 0.2412555814, -0.269962877, 0.312500447, 0.238511622, -0.2063528448, -0.1451906115, 0.118214719, 0.1887120157, -0.0891980454, -0.0327405259, -0.3398402631, 0.2254811525, -0.1658332348, -0.2750526965, -0.0365721621, -0.2551523447, 0.3512178659, 0.3392684758, -0.1608422101, -0.1638178527, 0.0186253563, 0.0652871504, -0.0031810594, 0.2478724569, 0.0328481123, -0.1552314162, 0.3118087649, 0.1120094359, -0.0968455672, 0.0139505379, 0.0497668646, 0.0382369012, 0.0392541103, -0.3878073692, -0.221236378, 0.0975770727, 0.1155316979, 0.0994631052, 0.1521302015, 0.1214670911, 0.2327489555, 0.2580001354, -0.344601959, -0.3168298304, -0.2266455889, 0.1146346107, -0.1705584228, 0.1445552707, -0.1704138368, 0.0943085477, 0.0777231157, 0.2056838423, 0.1746924818, -0.0169805512, 0.7022944689, -0.2754337788, 0.4286308587, -0.22941567, -0.0400346629, -0.287625581, 0.3418615162, -0.1031061858, -0.2282226235, 0.195717901, 0.0163822714, 0.3134722412, -0.4504329264, -0.4006796479, 0.0965960771, -0.190621376, -0.0871734247, 0.1440135986, -0.3507573307, -0.0002354266, 0.2681168616, 0.020206226, -0.1884005666, -0.1797890365, -0.1004347429, -0.1091894209, 0.0140760578, -0.2644398212, -0.5476667881, -0.23607862, -0.032877408, 0.0195357129, 0.1396642774, 0.0098538799, -0.2097719312, -0.0314573459, -0.0043667466, -0.025507886, -0.3325499892, -0.13492091, -0.1378961504, 0.1646966338, -0.1210952327, -0.3690144718, 0.0233245771, 0.2133821547, -0.1906823069, 0.0343830734, -0.608182013, -0.2255241424, -0.07357122, 0.0902312696, 0.271065414, 0.0482119732, 0.3331973553, 0.0043859896, -0.2407487333, -0.0966798887, -0.289496839, -0.0617358088, 0.2790717185, 0.3425323367, 0.1480440795, 0.2153837532, 0.0382699557, 0.4080422521, 0.0405399092, -0.0831079558, 0.1420852691, 0.0724038258, 0.1340251565, -0.0351542011, -0.1449554712, 0.1592445076, 0.0636743233, 0.2118257731, 0.0847029686, 0.2609232962, -0.1647253633, -0.4551307261, -0.0843807682, 0.0422558002, 0.1397813708, -0.2756437659, 0.2367210686, 0.3786954284, 0.094233036, 0.0404279269, -0.1744975001, -0.2230151296, 0.1618852317, 0.0282293838, 0.155143857, -0.037190333, -0.0875179842, 0.2474852353, -0.4120295048, 0.3248883486, -0.1162716597, -0.0254962426, -0.1575712413, 0.1632208079, 0.0907445326, -0.0197371934, -0.1022816896, -0.4347622991, 0.1979690641, 0.3334328234, -0.3282330632, 0.209832564, 0.0612220913, -0.5530356169, -0.0694036111, -0.1418507844, 0.490211755, 0.0862114429, -0.2527614832, 0.5576377511, 0.0898270458, -0.2430394441, 0.089087598, -0.0483200476, -0.0593439825, 0.0106714554, -0.0859256014, -0.3630439341, 0.028471671, -0.0130609032, -0.2682625651, 0.0257274024, -0.0579449162, 0.0380475894, -0.0671024472, 0.098899141, -0.0086529767, 0.1888565868, 0.2343615294, -0.0548734739, 0.2192328572, 0.2210982591, 0.1266529709, -0.219884634, 0.0629318357, -0.3096889853, 0.2338983119, 0.2519245148, -0.0197273009, 0.0526784435, -0.174160555, 0.0401716121, -0.1222358719, -0.1953085959, 0.4756614864, -0.0125389127, -0.1958249062, -0.2044544071, 0.2814204693, 0.2040803432, -0.323269546, 0.6049668789, 0.2233847231, 0.0581449308, 0.0844930708, -0.0875702798, 0.8768109083, 0.0091802431, -0.0530386232, -0.103736043, -0.258508563, 0.3260923326, 0.1500751227, 0.1819668561, -0.2611414194, -0.1667617857, -0.1415490061, 0.1881760061, 0.2261874974, 0.0333929323, -0.4414962232, 0.281454742, 0.0162123907, 0.318469286, 0.0218495298, 0.4039916396, 0.2129945159, 0.1521504074, 0.0103357509, 0.2614460289, 0.007627523, 0.2971936762, -0.027748853, -0.0637189299, 0.0742425397, 0.0526656769, -0.2426996827, -0.083447732, 0.2240836024, 0.1241263077, 0.0071352581, -0.4132660627, -0.1007736176, -0.1466791779, 0.2693107724, 0.1400369257, -0.2019508928, 0.0580885448, -0.0842173621, -0.1220868751, 0.0292737298, 0.2089927346, 0.2616169453, -0.3624403477, -0.2537929416, 0.1820687056, 0.0940711349, -0.1514322162, -0.3724226952, -0.1742647737, 0.0492790043, -0.117994085, 0.2095771134, 0.3122289181, -0.1254249513, -0.2380960584, 0.2550587356, 0.233158201, 0.0837606713, 0.0246355869, 0.2637301683, 0.0132632833, -0.2026557177, 0.2164986283, 0.2368977517, -0.2317263782, -0.1114870906, 0.032164149, -0.0729064792, -0.3280212283, 0.149072662, 0.2185632586, -0.032606367, 0.0898795649, -0.0617410839, -0.0693863109, 0.1985311955, 0.7674746513, 0.1134763584, -0.1324970871, -0.3815554082, -0.1036905646, -0.1598554105, 0.4016879797, -0.3281000853, 0.0328431837, -0.3015990853, -0.1019492298, 0.1833198965, -0.1321831942, -0.4311744273, 0.0374722108, 0.2304802239, -0.1759789288, 0.3346586227, 0.0276554301, -0.0175769292, -0.0240464881, 0.1310301274, -0.3019618094, -0.3366426528, -0.2488733232, 0.0150217954, 0.0964988172, -0.100690268, 0.0258981884, -0.2341493517, -0.1691185385, -0.2735385597, 0.3086502552, 0.06740731, 0.0497181714, 0.2783055902, 0.1942646354, -0.0693481043, -0.1438840032, 0.0461286157, 0.1568335444, 0.3562457561, -0.0707835779, 0.1494660378, 0.2881281674, 0.3032661378, -0.0937201083, -0.1116363481, -0.0131287752, -0.0468256325, 0.2652699351, 0.1904975176, 0.0371222459, 0.1332924515, 0.2392027676, 0.299526006, 0.122852698, 0.0362787955, -0.1393833905, 0.0654303581, 0.3110370636, -0.2561894059, -0.3114360273, 0.0423956625, 0.2429854125, -0.2813114524, -0.0419045128, 0.2741584182, 0.3505083323, 0.22629264, 0.1385433227, 0.2401577383, -0.3199465871, 0.1219916716, 0.2591587603, 0.2279812098, -0.0197042357, 0.2900158763, 0.1830374002, -0.0682588518, 0.093497701, 0.0996332839, 0.2804675102, 0.5949040055, 0.3702272177, 0.2393652797, -0.1198549196, 0.0408343188, 0.0919148624, -0.0366935171, -0.0142002311, 0.0637082756, 0.2750998139, -0.29993397, 0.0468942784, -0.3736778796, -0.2152929455, 0.0454041921, -0.1816400886, -0.0064777839, -0.1451922357, -0.1916889995, -0.053099826, 0.0388124809, 0.3415044248, 0.4628058672, -0.2635577023, 0.0336105339, -0.1391046792, -0.0992713794, 0.0667115003, 0.2791768909, -0.0249665789, 0.2348811775, -0.396173954, 0.1176120788, 0.1963460892, 0.3659482896, 0.0244652964, -0.109329991, -0.2823936045, -0.0752786174, -0.1506735981, -0.2029793561, 0.1160526648, 0.3965930045, 0.1634795666, 0.0897685811, 0.1343604624, 0.145347029, -0.1465705633, 0.4180464149, 0.0394908339, -0.1240979508, -0.451328218, 0.2151078582, 0.1355981827, -0.1942361742, -0.0209452938, 0.0969316363, -0.1266513616, -0.3759785891, 0.180424124, 0.1019164398, -0.1711923629, -0.1600877494, 0.1484104097, -0.0683724433, 0.124356918, 0.1947842687, 0.1296981573, 0.0286450516, -0.3705144227, -0.3561777174, 0.3234818578, 0.2191070914, -0.2648040056, -0.1161450446, 0.246768415, 0.1100329086, 0.3032544553, 0.1898021251, -0.1368157864, -0.244817704, -0.1841135025, -0.4536907673, 0.1890252829, 0.2329204381, 0.2602323592, -0.12943694, 0.0105283875, 0.1758193523, -0.3087698519, 0.061227791, 0.0883698463, -0.2749614716, 0.2900063097, 0.1081978455, 0.4732691348, -0.0953155756, 0.1714043915, -0.0163458809, -0.175800845, -0.3269743919, -0.1704187542, -0.0873152837, -0.1886828095, -0.0751526654, 0.0581922047, -0.237008065, 0.1586024314, -0.1818601787, 0.1955085397, -0.0558605976, 0.3494592011, 0.0367623195, 0.0512245521, 0.0115491403, -0.4316511452, 0.1641193479, 0.0917870998, -0.1045387313, -0.1162620783, -0.3184365332, -0.2898872793, 0.266521275, 0.1041490585, -0.119506143, -0.3795951605, -0.1625541449, 0.3523990214, -0.1871525049, -0.4342991412, 0.0063330201, 0.1459901631, 0.1065577641, -0.1277641356, 0.1525983065, 0.193662852, -0.0439628996, -0.0201323126, 0.1976662725, 0.0432184488, -0.044095356, -0.2465994656, 0.1530583352 ]
https://github.com/huggingface/datasets/issues/2888
v1.11.1 release date
@albertvillanova i think this issue is still valid and should not be closed till `>1.11.0` is published :)
Hello, i need to use latest features in one of my packages but there have been no new datasets release since 2 months ago. When do you plan to publush v1.11.1 release?
18
v1.11.1 release date Hello, i need to use latest features in one of my packages but there have been no new datasets release since 2 months ago. When do you plan to publush v1.11.1 release? @albertvillanova i think this issue is still valid and should not be closed till `>1.11.0` is published :)
[ -0.2534325421, -0.1435918212, -0.1170087606, 0.1250979602, -0.0803622156, -0.2069433331, 0.3182261586, 0.2595030665, -0.2662116587, 0.2432924211, 0.4498234391, -0.0775993839, -0.0092685595, 0.3775973022, -0.3972175717, -0.0890159234, 0.0787209198, 0.1089016348, -0.0526827313, 0.0449188799, -0.2720680833, 0.068657726, -0.3964475691, 0.1608792841, 0.0663995072, -0.0716037601, -0.1215934381, -0.254347086, -0.6671610475, -0.5313281417, 0.3133550286, 0.2034503967, 0.0760271847, 0.271275878, -0.0001110468, -0.423866421, 0.5205672979, 0.1486699134, -0.2614662647, -0.1513033807, -0.416443944, -0.5353802443, -0.1008592322, -0.0137669845, -0.3072520196, -0.1077144369, 0.0117483158, -0.1943197548, -0.0628163069, -0.0156020885, 0.2480115443, 0.1673386395, 0.4019794762, -0.3542853892, 0.1863051802, -0.1159243658, -0.3703640699, -0.2499655932, 0.5717850924, 0.2568038106, 0.2268878967, 0.384983182, 0.1912631989, -0.1922257096, 0.1507626772, -0.0097723147, 0.2396764457, -0.266032964, 0.0415400378, 0.0777787417, 0.9955607653, 0.0203635413, -0.3793464899, 0.2034740597, -0.0927332118, -0.2712348402, 0.2412474453, 0.027283011, -0.0292447396, 0.149242878, 0.0873354375, -0.4584193528, -0.1516828388, 0.1602145284, -0.0272049885, 0.459104538, -0.0887170136, 0.1067651212, -0.0215255283, -0.3015371263, 0.2346984148, 0.0200975835, 0.0850308686, 0.156445384, 0.0514521152, -0.4402125776, 0.1060789451, -0.0172465947, 0.1498136967, 0.1924144477, -0.2606184483, -0.249166131, -0.0464439057, 0.0133378366, 0.6594331861, 0.0745627508, 0.3405662179, 0.188009277, 0.4329450428, 0.2551412284, 0.0644607022, 0.0997430384, 0.0618424639, -0.0808662996, -0.1455136389, 0.2052437365, 0.4584421515, -0.5718432069, 0.3661362231, 0.1454990655, 0.0115315011, -0.073997356, -0.3209313154, -0.1508467942, -0.0373871252, 0.3257052004, 0.0893606171, -0.1983124912, 0.1348611414, -0.1805576384, -0.1951919943, -0.1088341549, -0.200981006, -0.0183628146, -0.031561859, -0.3116750121, -0.2775349915, 0.1134495363, -0.1254057586, -0.0434127748, 0.0564601496, 0.1302085966, -0.2246665657, 0.4118489623, -0.2466320097, 0.082844384, -0.3096274436, 0.2402789593, -0.0819456652, 0.3500746489, -0.0424564332, -0.1780534983, -0.3391320705, 0.2919041216, -0.1666521877, -0.0776967406, 0.2701286674, 0.1953231692, -0.2030190676, -0.2382987589, -0.0494303294, 0.1722414643, -0.2394903451, -0.256931901, -0.0695379525, 0.0432331599, -0.1193417981, 0.1540283114, -0.2632963657, -0.2000599653, 0.1197276041, 0.0051401095, -0.1842305511, -0.3186813593, 0.1262588203, -0.2455536276, 0.3016958833, -0.3433002532, -0.639559865, 0.3815340102, -0.284142822, -0.3894364536, 0.4114672244, 0.1741337925, 0.2954373658, -0.3212958872, -0.1409738809, -0.0816188827, -0.1616334766, -0.3559683263, -0.4418994188, -0.4019602537, 0.0429010168, 0.0181122757, 0.2204887122, 0.1503366083, 0.0952749476, 0.4235877395, 0.0749824941, 0.2797828615, 0.2078803927, 0.0765660107, 0.482803762, -0.1286068708, 0.0529898442, -0.1006552279, -0.2767008245, 0.0938937142, -0.1435723305, 0.1591186672, 0.4384330511, -0.3189628124, -0.2085864544, -0.0561050922, 0.3260715008, -0.0709523261, 0.0817816257, 0.0915738642, -0.2478206754, 0.1673493236, -0.4060981572, 0.1368636489, -0.0098665319, -0.07066378, -0.088441737, 0.0452465005, -0.2908729911, 0.0994255021, 0.1788440347, 0.0838302895, 0.1694515795, -0.2390569299, 0.1745637655, -0.0815123394, -0.0723995641, 0.3089856207, 0.3561557233, 0.1862898916, 0.2350969911, 0.2040317804, 0.0746104494, 0.1710554659, -0.0586112514, 0.2303554267, -0.2253153324, 0.3460877836, 0.3549923301, -0.2632007301, -0.0564746819, 0.144726038, 0.1307961047, -0.2599101663, -0.0981654152, -0.2556478679, 0.0817662179, -0.221117571, -0.2914198935, 0.2252827138, -0.2763938606, 0.2965317667, 0.5968988538, 0.0184195228, -0.047829736, 0.0809677541, 0.2573701739, -0.0809906572, 0.1679659784, -0.0462063886, 0.0884929076, 0.2539899945, -0.021018533, 0.0049677342, 0.1221921593, 0.0425285064, 0.1027600989, 0.0455321558, -0.4042115211, -0.0299377795, 0.0530678742, 0.0633863062, 0.115278326, 0.1767398119, 0.1918154806, 0.2266006619, 0.0650810748, -0.3978857994, -0.2835028172, -0.0675668642, 0.0291238204, -0.0194902401, 0.0619625486, 0.0534454733, 0.1382157803, 0.1468727291, 0.0316265896, 0.1826277375, -0.1548491269, 0.7969358563, -0.3889087141, 0.4114349484, -0.156639576, -0.1199053377, -0.3110970855, 0.2345053405, -0.0124809062, -0.2776047289, 0.2567169964, 0.0537328571, 0.2090214789, -0.6258595586, -0.4577414989, 0.0528508835, -0.144126296, 0.0452978648, 0.0343037061, -0.2054453045, -0.107023187, 0.2207032591, 0.0384894237, -0.0587673448, -0.2087223232, -0.1666585952, -0.0068196445, 0.0721502379, -0.2570260763, -0.6848427057, -0.1318627, -0.3363646269, -0.0185509361, -0.1078772321, 0.1569403857, -0.1232450008, -0.051425416, -0.1049095914, 0.0217202213, -0.3342834115, -0.0948758051, -0.048731003, 0.0945054814, -0.0082828654, -0.4569739103, 0.1993883997, 0.1774878055, -0.2025116682, 0.1531127393, -0.5314667225, -0.2725237608, 0.206520468, -0.043862544, 0.1573558748, -0.1776329577, 0.5536837578, -0.1086382791, -0.2538419664, -0.1345501691, -0.2866043448, 0.0720614642, 0.1712462157, 0.3246344626, 0.409180969, 0.2624562085, 0.0242744964, 0.3892090321, 0.1903090924, 0.0267370865, 0.2341599315, 0.1795129925, 0.1924058646, -0.0937660858, -0.2098539323, 0.0676550344, 0.1260128468, 0.1618110985, 0.1551786363, 0.212505579, -0.0854245946, -0.3764601052, -0.0002547773, -0.0050693392, 0.1066496, -0.2045838088, 0.19392021, 0.6248509884, 0.1559808254, -0.0690406263, -0.1899852306, -0.050280299, -0.1242645904, 0.2394972146, 0.218652606, -0.0803116336, 0.0049764337, 0.3057085574, -0.2312407643, 0.3685397804, -0.0162633043, 0.3051949441, -0.1745799035, 0.183699578, 0.167574808, -0.0165351611, -0.002247988, -0.4258732796, 0.2501198947, 0.5538979769, -0.2576999366, 0.1758041531, 0.0319327712, -0.1597495675, -0.1175884306, -0.1852885038, 0.5539381504, -0.0616523623, -0.3503075838, 0.5332707167, 0.0958007053, -0.1159934327, 0.0116964756, -0.148977384, -0.0391741842, 0.0361851342, -0.0692064166, -0.1455716044, 0.0450960174, 0.0707545504, -0.2735245228, -0.2130563408, -0.2302908301, -0.0789414719, -0.1162233725, 0.2302821875, -0.0054950924, 0.2637892067, 0.1018653214, -0.006938694, 0.2944147289, 0.310501188, 0.110301502, -0.2645044625, 0.1126402467, -0.0766577423, 0.1321163625, 0.3621128798, -0.1440612823, 0.1353558898, -0.0324910507, 0.0674986169, -0.0920338705, -0.2673429549, 0.4327611923, -0.1655806452, -0.2975933552, -0.0365021341, 0.2060316652, 0.1686381698, -0.3554573059, 0.5559965968, 0.2967342436, 0.0080543449, -0.0236563794, -0.2770451903, 1.0293949842, -0.0287329629, -0.0709773898, -0.2229948789, -0.2106604427, 0.3116071224, 0.1518327743, 0.1275588423, -0.1479117125, -0.1200410053, -0.156358555, 0.025576435, 0.3566545844, 0.0137892039, -0.4522585273, 0.1800192744, -0.1066877097, 0.3458714783, 0.1815039814, 0.4181370139, 0.2039348483, 0.2149993479, -0.1357867271, 0.1812182963, 0.0415112488, 0.3444061577, -0.1115806252, -0.1123415828, 0.0506095029, -0.1684783846, -0.3772748411, -0.162755996, 0.0946233049, 0.1284955442, -0.0418820232, -0.3295052052, 0.1501638293, -0.2067037821, 0.2394614667, 0.0587115698, -0.1543533653, 0.1066337228, -0.1002984643, -0.2956922352, 0.0422360674, 0.2025135756, 0.2493470311, -0.365799576, -0.1296645254, 0.207518965, -0.0665956438, -0.1957606375, -0.3805607557, 0.0144149913, 0.1905001253, -0.0858497769, 0.0902350396, 0.0793108046, 0.0000393472, -0.2687571943, 0.2166418582, 0.2363907099, 0.173072502, -0.070472464, 0.0909126326, -0.0943970904, -0.0462283231, 0.331574887, 0.4488438964, -0.0869515613, -0.0577264875, -0.104647994, -0.0253153257, -0.2967375219, 0.1651073247, 0.1483710557, -0.1926550269, 0.3166780174, 0.0451815948, -0.177145049, 0.0966312066, 0.8037606478, 0.1132905334, -0.0867026523, -0.3089384437, -0.2269143313, -0.201273486, 0.4007463753, -0.3507455587, -0.0632593036, -0.1728218198, 0.003514756, 0.1783655137, -0.2588581443, -0.3582352698, 0.1094941497, -0.0229328293, -0.1558413357, 0.3805615604, -0.1397653073, -0.1268882602, -0.1695237756, 0.0683612898, -0.1914259791, -0.4219688773, -0.1825899184, -0.0068806806, 0.1795591116, -0.099498719, 0.1105903983, -0.2188424021, -0.3331711888, -0.3294802904, 0.5655476451, -0.0574626066, 0.2105582207, 0.265817821, -0.0013697128, -0.1911033839, 0.083206743, -0.0473593064, 0.1444205344, 0.2916863263, 0.0616737306, 0.0525817275, 0.2192509323, 0.3352403939, -0.051245898, -0.3188316226, -0.0857311264, 0.028379539, 0.1082434431, 0.2533852756, 0.0845074058, 0.0778547525, 0.3177062273, 0.261341095, 0.1477471739, 0.0235879123, -0.10451556, 0.1499727219, 0.2290463895, -0.4348066449, -0.2144445181, -0.1024437621, 0.1954161376, -0.3519690037, -0.0586642176, 0.4161963165, 0.3745106161, 0.3306231499, 0.2353342474, 0.3252157569, -0.2875549793, 0.1753366739, 0.298651427, 0.2821616828, 0.0819243565, 0.2702084482, 0.3563085496, 0.1198417321, -0.1174164787, 0.1162222177, 0.2579935193, 0.6770775318, 0.4611133635, 0.2945824265, -0.1674147099, 0.1528614014, 0.145076111, 0.0248568561, -0.0097037228, -0.028063925, 0.2341251522, -0.2223802507, 0.000882468, -0.252620697, -0.1989824623, -0.1395764947, -0.2066176832, 0.0804793462, -0.2013021708, -0.1639318615, -0.0490338057, -0.0818435028, 0.3881368041, 0.4651462138, -0.172336027, 0.0645914972, -0.1019973978, -0.126423344, 0.1757827997, 0.2655941546, -0.1845968068, 0.3018839657, -0.4171665907, 0.1055940539, 0.2046003491, 0.5415052176, 0.0668870881, -0.0055139861, -0.0966519117, -0.0346165001, -0.2049902081, -0.0964519158, 0.119966276, 0.4839955568, 0.2810302973, 0.3264023364, 0.0233848933, 0.0755379423, -0.1421592236, 0.4168718159, -0.1079073548, -0.1283363253, -0.6276838779, 0.2174899578, -0.1051726788, -0.1579537541, -0.0612815022, 0.1260119081, -0.0126639176, -0.3415772617, 0.2715965509, 0.2166879475, -0.0643055439, -0.248646915, 0.1112187207, -0.2308488041, 0.0420173332, 0.0135724219, -0.0086574517, -0.0197401382, -0.3096870184, -0.4489578605, 0.3907983005, 0.1115981862, -0.2408151627, 0.1052808017, 0.2133009285, 0.0889786929, 0.3081979156, 0.0924179628, -0.1790391803, -0.3171945512, -0.1446876526, -0.402273953, 0.1941866428, 0.3912087083, 0.0847943872, -0.0422423035, -0.2774840295, 0.2742191255, -0.2932401896, 0.0322426744, 0.1044757292, -0.3337162137, 0.386005193, 0.1406664401, 0.5287458301, 0.032131739, 0.1304536164, 0.2330349982, -0.1344192475, -0.4677241743, -0.1328878999, -0.0336711966, -0.1085676104, 0.0418233424, 0.0438944586, -0.2677304447, 0.1162145585, -0.1990454048, 0.0510428324, -0.3705941141, 0.4114429653, 0.0662547424, 0.109508045, 0.0662498847, -0.2569505572, 0.2648650408, 0.0552677512, -0.1163000241, -0.2598813772, -0.4447279274, -0.319673717, 0.2948858142, 0.0099982917, -0.1469426304, -0.1186853945, 0.075142175, 0.2601584792, -0.263087213, -0.4047777951, -0.1358789206, 0.3026438653, 0.2290502042, -0.1205541492, 0.0037204858, 0.0116371764, -0.1853573173, 0.0748225152, 0.3017756641, -0.147349447, -0.1105487272, -0.1910789162, 0.0743446872 ]
https://github.com/huggingface/datasets/issues/2885
Adding an Elastic Search index to a Dataset
Hi, is this bug deterministic in your poetry env ? I mean, does it always stop at 90% or is it random ? Also, can you try using another version of Elasticsearch ? Maybe there's an issue with the one of you poetry env
## Describe the bug When trying to index documents from the squad dataset, the connection to ElasticSearch seems to break: Reusing dataset squad (/Users/andreasmotz/.cache/huggingface/datasets/squad/plain_text/1.0.0/d6ec3ceb99ca480ce37cdd35555d6cb2511d223b9150cce08a837ef62ffea453) 90%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‰ | 9501/10570 [00:01<00:00, 6335.61docs/s] No error is thrown, but the indexing breaks ~90%. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset from elasticsearch import Elasticsearch es = Elasticsearch() squad = load_dataset('squad', split='validation') index_name = "corpus" es_config = { "settings": { "number_of_shards": 1, "analysis": {"analyzer": {"stop_standard": {"type": "standard", " stopwords": "_english_"}}}, }, "mappings": { "properties": { "idx" : {"type" : "keyword"}, "title" : {"type" : "keyword"}, "text": { "type": "text", "analyzer": "standard", "similarity": "BM25" }, } }, } class IndexBuilder: """ Elastic search indexing of a corpus """ def __init__( self, *args, #corpus : None, dataset : squad, index_name = str, query = str, config = dict, **kwargs, ): #instantiate HuggingFace dataset self.dataset = dataset #instantiate ElasticSearch config self.config = config self.es = Elasticsearch() self.index_name = index_name self.query = query def elastic_index(self): print(self.es.info) self.es.indices.delete(index=self.index_name, ignore=[400, 404]) search_index = self.dataset.add_elasticsearch_index(column='context', host='localhost', port='9200', es_index_name=self.index_name, es_index_config=self.config) return search_index def exact_match_method(self, index): scores, retrieved_examples = index.get_nearest_examples('context', query=self.query, k=1) return scores, retrieved_examples if __name__ == "__main__": print(type(squad)) Index = IndexBuilder(dataset=squad, index_name='corpus_index', query='Where was Chopin born?', config=es_config) search_index = Index.elastic_index() scores, examples = Index.exact_match_method(search_index) print(scores, examples) for name in squad.column_names: print(type(squad[name])) ``` ## Environment info We run the code in Poetry. This might be the issue, since the script runs successfully in our local environment. Poetry: - Python version: 3.8 - PyArrow: 4.0.1 - Elasticsearch: 7.13.4 - datasets: 1.10.2 Local: - Python version: 3.8 - PyArrow: 3.0.0 - Elasticsearch: 7.7.1 - datasets: 1.7.0
44
Adding an Elastic Search index to a Dataset ## Describe the bug When trying to index documents from the squad dataset, the connection to ElasticSearch seems to break: Reusing dataset squad (/Users/andreasmotz/.cache/huggingface/datasets/squad/plain_text/1.0.0/d6ec3ceb99ca480ce37cdd35555d6cb2511d223b9150cce08a837ef62ffea453) 90%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‰ | 9501/10570 [00:01<00:00, 6335.61docs/s] No error is thrown, but the indexing breaks ~90%. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset from elasticsearch import Elasticsearch es = Elasticsearch() squad = load_dataset('squad', split='validation') index_name = "corpus" es_config = { "settings": { "number_of_shards": 1, "analysis": {"analyzer": {"stop_standard": {"type": "standard", " stopwords": "_english_"}}}, }, "mappings": { "properties": { "idx" : {"type" : "keyword"}, "title" : {"type" : "keyword"}, "text": { "type": "text", "analyzer": "standard", "similarity": "BM25" }, } }, } class IndexBuilder: """ Elastic search indexing of a corpus """ def __init__( self, *args, #corpus : None, dataset : squad, index_name = str, query = str, config = dict, **kwargs, ): #instantiate HuggingFace dataset self.dataset = dataset #instantiate ElasticSearch config self.config = config self.es = Elasticsearch() self.index_name = index_name self.query = query def elastic_index(self): print(self.es.info) self.es.indices.delete(index=self.index_name, ignore=[400, 404]) search_index = self.dataset.add_elasticsearch_index(column='context', host='localhost', port='9200', es_index_name=self.index_name, es_index_config=self.config) return search_index def exact_match_method(self, index): scores, retrieved_examples = index.get_nearest_examples('context', query=self.query, k=1) return scores, retrieved_examples if __name__ == "__main__": print(type(squad)) Index = IndexBuilder(dataset=squad, index_name='corpus_index', query='Where was Chopin born?', config=es_config) search_index = Index.elastic_index() scores, examples = Index.exact_match_method(search_index) print(scores, examples) for name in squad.column_names: print(type(squad[name])) ``` ## Environment info We run the code in Poetry. This might be the issue, since the script runs successfully in our local environment. Poetry: - Python version: 3.8 - PyArrow: 4.0.1 - Elasticsearch: 7.13.4 - datasets: 1.10.2 Local: - Python version: 3.8 - PyArrow: 3.0.0 - Elasticsearch: 7.7.1 - datasets: 1.7.0 Hi, is this bug deterministic in your poetry env ? I mean, does it always stop at 90% or is it random ? Also, can you try using another version of Elasticsearch ? Maybe there's an issue with the one of you poetry env
[ -0.1423357278, 0.172727868, -0.0044709793, 0.0400959924, 0.0997370332, 0.0273672696, -0.013204325, 0.0684226677, 0.0138257872, 0.0531148016, -0.0395590216, 0.3000072539, 0.3499440253, -0.3781624734, -0.1049256846, 0.1306153685, 0.0909727961, 0.0941495076, 0.2756751478, 0.1979281008, -0.0359147601, 0.095908314, -0.1247543246, -0.0892915428, -0.3346315026, 0.0212135501, -0.0316708237, -0.1235372126, -0.0287176576, -0.4167428911, 0.3019476235, -0.1501852423, -0.1225858629, 0.3576337695, -0.0001185079, 0.0780737773, 0.4348543286, -0.0329714008, -0.0183227472, -0.2907201052, -0.0723804981, -0.1354442686, 0.279198885, -0.1591316015, -0.0953472778, 0.1617633402, 0.0987489, -0.6114605665, 0.4415228069, 0.3961337507, 0.221011281, 0.3180061877, 0.3437509239, -0.1243836433, 0.4198286533, -0.1281127334, -0.0489515252, -0.2564239502, 0.2530343533, -0.0389002413, -0.0290674474, 0.1452289224, -0.0944889709, -0.2707443833, 0.108504355, 0.1481345296, -0.4625434577, -0.2957313359, 0.3149895072, 0.1134225652, 0.1910260916, -0.0712343082, -0.2519367039, 0.0451840535, -0.0008995398, 0.1622108668, 0.1994201243, 0.1894568503, 0.0606099963, 0.1190423146, 0.0653904825, -0.1248976737, -0.2391608059, 0.4135331213, -0.0537097417, 0.1734440774, -0.097541891, 0.1064755395, 0.1365941018, -0.146080032, 0.0782291442, 0.2522954047, -0.2729330957, -0.0555161387, -0.3764431775, 0.1024475098, -0.1168943718, -0.2002719194, 0.4185051024, -0.0634525344, -0.0926844999, 0.1597323418, 0.6514115334, 0.082370162, 0.2860307097, -0.0631037876, 0.0613816716, 0.3085791171, 0.0735873207, -0.3172648847, -0.3174724579, -0.2593558729, 0.285479039, -0.2149694413, 0.4180778563, -0.4818145633, 0.2134571224, -0.0300275907, -0.159065932, 0.2193003744, -0.5879529715, -0.0061579379, -0.0753503293, 0.1353493631, 0.1364613473, -0.4953055084, 0.0383693911, 0.2725166976, -0.2289299369, 0.1452205926, -0.2356664091, -0.2659835815, 0.0408693254, 0.0179617349, 0.1160360128, -0.6583971977, 0.2295712978, 0.0021879284, 0.0842600539, -0.3945707381, 0.2630119622, -0.0829003006, 0.1773642153, 0.218855992, 0.0615348555, 0.023488922, 0.0232272167, -0.4385558963, -0.0351555534, -0.1221938878, -0.3814532757, -0.2521406412, -0.2764842808, 0.2102274299, -0.1385770142, 0.0171780493, 0.1357520074, 0.2181541324, 0.1103124693, -0.0082744509, 0.0775755048, -0.0403560661, -0.2897684872, 0.0814163461, 0.2997894585, 0.2074805498, 0.1160847694, -0.1290065497, 0.034548115, 0.4276873767, -0.2609300017, 0.2141182125, -0.2313275784, 0.0364292637, -0.1731410325, 0.4179225564, 0.3350299299, -0.4630022347, -0.613461256, 0.1387205869, -0.2306159735, -0.0950086787, -0.272356391, 0.0607838072, 0.6483929753, 0.0107715735, 0.1798678637, 0.2476815581, -0.1762580425, -0.1678980738, -0.1523010135, -0.0007278286, -0.1430873871, -0.177202031, 0.0628991276, 0.0903355628, 0.2576126158, 0.2004109323, -0.0055740727, 0.1895459443, 0.0115436343, 0.3066953421, 0.3564867079, 0.1077488884, 0.2526801229, -0.1288016289, -0.2565320432, 0.2232705653, 0.0895305648, 0.0836865902, -0.1827768236, -0.1198632121, -0.1379051954, 0.0071618739, -0.1569918245, 0.0309961122, 0.107497111, -0.2377432734, -0.2198884338, 0.1922539026, 0.0002298418, -0.1667473465, 0.0728107169, 0.2382162064, -0.2376390845, 0.3120537996, -0.0830118656, -0.0867530704, -0.1883609593, -0.0127894552, 0.2368167192, -0.2060383856, -0.1446202993, 0.332541883, -0.0994061977, 0.3171947896, 0.1542841047, 0.025194684, 0.1261184365, -0.6889179945, -0.1038779616, 0.1420570463, 0.0571958348, -0.2761912048, -0.0003128937, 0.0152491853, 0.0072259768, 0.3724019229, -0.2171028852, 0.0868740231, -0.0073972992, -0.1734815091, -0.4597905576, -0.0337329842, -0.0198460873, -0.3641361892, -0.0424907617, -0.1129411384, -0.118290931, 0.0319062024, 0.0161155853, 0.1542524546, 0.104662396, 0.3709858358, 0.0202301163, -0.10019207, -0.3800418377, -0.0208591763, 0.2398631126, 0.1784040332, 0.1413077563, -0.0003945187, 0.016000025, -0.0571260825, 0.3174203336, 0.3449330926, 0.0851912573, 0.3284900784, 0.4267836213, 0.080735378, -0.2349987477, -0.0556238145, -0.2187708616, -0.0349604785, -0.2483057678, 0.4837775528, -0.0381795317, 0.1216896772, -0.142181322, 0.036698062, -0.2608760893, -0.440820545, -0.1000710577, 0.1918876469, -0.0298058689, 0.010196479, -0.389636904, -0.0280155968, 0.2536537051, -0.2719688416, 0.1400227845, -0.13825804, -0.1423628628, -0.0342508368, 0.1852953732, 0.0559359342, 0.239090845, 0.2277609557, -0.1308041066, -0.3857408166, -0.4401707351, 0.1353846639, 0.0270662643, 0.3381630778, 0.1061841398, -0.2070374787, -0.4189092517, -0.139235571, 0.2391747087, -0.1569141895, 0.0960531235, 0.0989907682, 0.0812273249, 0.165456146, 0.252183646, -0.2988062501, -0.1856297553, -0.1773062944, 0.0319295116, -0.1300621033, -0.0701901093, 0.3265482187, -0.0100668529, 0.1334317029, -0.117993705, -0.0943661481, -0.1205612123, -0.1552785039, 0.0512902848, -0.1617365777, -0.3146482408, 0.1664025784, -0.0358661972, -0.2476519793, 0.2399175614, -0.3951127529, 0.2129151374, 0.1262060553, -0.2579472363, -0.3092864454, 0.0559353307, 0.0856449679, -0.2632970214, -0.0152955577, -0.0331743136, 0.0292060673, 0.1754637212, 0.2231558114, 0.0925877765, -0.0978393182, 0.2361078113, -0.0709363371, 0.6817715764, 0.1603981704, -0.0134615982, 0.1587851346, -0.1708619744, 0.3219510317, -0.2369931191, -0.5023804903, -0.1412394941, -0.1059440747, -0.1054208204, -0.0283705853, 0.109574452, -0.2827525437, -0.115599893, -0.2426892221, -0.0605009161, -0.54604882, 0.1893932819, 0.1710993499, 0.0693428218, 0.0568653457, 0.1564288139, 0.1233408228, -0.4360743463, -0.4252508581, -0.1272193491, -0.1278421879, 0.0157799479, -0.2675440609, 0.1987197399, -0.6068624258, 0.1646698713, -0.0542106107, 0.5287730098, 0.0551700518, 0.0009338917, 0.1420914084, 0.1686774641, 0.7477430105, -0.2251750976, -0.1185975447, -0.0158345401, 0.0547930151, -0.5928254128, 0.0987460539, -0.1476437747, 0.6286976933, 0.2092178911, 0.3737720251, 0.0288933534, 0.1745180041, 0.0755364895, -0.1005474627, 0.079070352, -0.077841498, -0.2256833166, -0.2200263143, 0.3044427037, 0.2742739916, 0.3445194364, 0.0810018852, 0.3223793507, -0.2284775674, -0.2969676554, -0.0309453886, 0.0437185802, -0.2290928662, 0.2575103939, -0.0781481341, 0.2960500419, 0.4340247512, 0.2177850455, 0.2762292624, 0.408185482, -0.2440405637, 0.0885933414, -0.0196736883, -0.0375479199, 0.1764096618, 0.3452102542, 0.2333936393, 0.1530003399, 0.1788771152, 0.0665417537, -0.2147426754, -0.1878597289, 0.5031189919, 0.1382859349, -0.4760869145, 0.0670427978, 0.3620651662, -0.0627520233, -0.0308657922, 0.0745157823, 0.5442926288, -0.3988694847, 0.6471534371, 0.1135982275, 0.6712856889, 0.089194715, -0.0725566596, -0.2630755305, 0.1109268218, 0.7352765799, -0.3347020149, 0.25493747, -0.2097499371, -0.5855283737, -0.0690590367, -0.2858499587, 0.0086796787, -0.2234174311, -0.3603481948, 0.0166503042, -0.3822994828, 0.2821260095, -0.0841552094, 0.3374670744, -0.1510460228, -0.1274801344, 0.0352684073, 0.1547400504, 0.2227140963, 0.2692329884, 0.1916231364, 0.0424441211, -0.0174229462, -0.2775602937, -0.494461298, -0.0191288274, -0.1274602115, 0.1551729739, 0.1827656329, -0.0453223921, 0.3815469444, 0.0988958329, 0.0481477119, 0.107557185, -0.1812240034, 0.2406510413, -0.0080882208, -0.0569829531, 0.4446687996, -0.220583424, 0.0711796582, 0.1791232228, -0.4024159312, -0.0184437446, 0.2618075609, -0.1858665645, -0.0822697282, 0.3471039236, -0.2522739768, -0.3732704222, -0.2347560972, -0.1285910159, -0.067549251, -0.1432647109, 0.0892322212, 0.0084903808, -0.1242847145, 0.2830715179, 0.3689793646, -0.2495323718, 0.0721010566, 0.8503792286, -0.2160516232, -0.1386739761, 0.2074775249, 0.060395591, -0.1718024909, -0.1100918576, 0.3264315724, 0.285936892, -0.1506772935, -0.2592438161, -0.4627506733, 0.2283157706, 0.0369627327, 0.037715055, 0.2122460753, -0.0092372168, -0.184262231, -0.1904779226, 0.1433349401, 0.1566762626, 0.4442587197, 0.1021856293, -0.3198876679, -0.405808568, -0.0958278179, 0.1375002265, -0.243810907, 0.3268664777, -0.2520278394, 0.0064505953, -0.129592225, -0.0516157895, 0.5856395364, -0.3752815127, 0.0591960773, 0.1744844466, -0.0512193516, -0.1685403883, -0.0637019202, 0.1191376373, -0.0450762287, -0.1070081294, -0.1666346788, -0.2316609472, -0.0473485813, -0.2600593269, 0.0268881936, 0.4245568514, 0.129269436, -0.1663024724, -0.1522525251, -0.1260861605, 0.3549259007, -0.0860512331, 0.2210680395, 0.2574340999, 0.0169345103, 0.2850543857, 0.1095146686, -0.0313541964, -0.1166432649, 0.2705664635, -0.0437093563, 0.0783668011, 0.2038312554, -0.2371039093, -0.0961813927, 0.5086316466, 0.4194711745, 0.394295156, -0.3104347289, -0.1650985628, -0.0005253511, 0.2413312495, 0.0492484048, -0.2417104393, 0.6126328111, 0.090026781, 0.1283886582, 0.2012028694, 0.0890386701, -0.3130941987, -0.3525202274, 0.0291854721, 0.7695252299, 0.1349657774, 0.106252335, -0.1847231537, -0.0298995078, -0.0307875723, 0.0969654322, 0.1540451199, 0.3628753126, 0.2108799964, 0.0093515022, 0.4457625151, 0.0946389288, 0.2002345026, 0.195820272, 0.1463286877, 0.2819838822, 0.2778770626, 0.1983456612, 0.0648833215, -0.0310216248, 0.815058291, -0.0081768036, -0.3089000583, -0.1074742749, 0.0123540768, -0.0718853697, -0.1381998509, 0.2133601159, -0.1653792709, -0.0008473348, -0.2416391075, 0.0849005878, -0.0269591268, -0.3901277184, 0.1575505435, 0.1124823689, -0.043095123, 0.0508896858, -0.141497016, 0.0767197385, -0.1664367169, 0.0036225964, -0.1519070715, 0.1252125502, 0.2351682633, 0.3312087953, 0.4035592377, -0.074723579, -0.1400466859, 0.4058650434, -0.0350114331, -0.1445527524, 0.1079212949, 0.0318367966, -0.0002727603, -0.5440949202, 0.147816807, 0.0487125851, -0.0635885522, 0.0140420524, 0.2640837133, 0.4321984351, -0.1540914923, -0.3470183909, -0.2106317282, 0.0744327679, -0.1783645749, -0.1506300569, -0.1600381285, 0.0988606885, 0.2971235514, -0.2123093009, 0.1440627426, 0.1429017782, 0.0628881827, -0.086921744, 0.1966791004, 0.1160484254, -0.0550464578, -0.033396706, 0.074752003, -0.2059546411, 0.3186418712, -0.4508095384, 0.169267714, 0.5591514707, 0.2960522175, -0.2047137916, 0.1067671329, 0.1807710826, -0.2350661755, -0.2993133366, -0.0772450045, -0.0160411503, -0.2238667756, -0.1015606448, 0.0261780359, -0.0101414658, -0.0251561124, 0.1090446934, -0.5017803311, 0.0234621968, -0.2353968024, -0.1540967077, -0.1983961016, -0.1749744862, 0.1152511016, 0.0764285624, 0.2546803653, -0.0108258994, 0.0705437288, -0.1942732483, -0.4698742628, -0.2817729712, 0.2653594911, 0.0957904756, 0.0309691727, -0.2558007538, -0.4981395304, -0.2089369297, 0.1482592225, 0.0951690748, -0.1051607206, -0.4935901165, 0.0211842135, -0.0664745718, 0.1254032254, -0.2824284732, 0.3217877746, -0.0584607683, 0.4555459917, 0.0576231778, -0.4273312688, 0.472407788, -0.3319600224, 0.005578591, -0.0409944504, 0.2926785946, 0.6038848758, 0.1409938782, -0.2386948913, -0.1673590839, 0.2756532133, -0.1943458468, -0.2440593839, -0.098173894, -0.0150665436, 0.1926191449, -0.0259733181, -0.1619805992, 0.2742896378, -0.0292484723, 0.0151276793, -0.0911699384 ]
https://github.com/huggingface/datasets/issues/2882
`load_dataset('docred')` results in a `NonMatchingChecksumError`
Hi @tmpr, thanks for reporting. Two weeks ago (23th Aug), the host of the source `docred` dataset updated one of the files (`dev.json`): you can see it [here](https://drive.google.com/drive/folders/1c5-0YwnoJx8NS6CV2f-NoTHR__BdkNqw). Therefore, the checksum needs to be updated. Normally, in the meantime, you could avoid the error by passing `ignore_verifications=True` to `load_dataset`. However, as the old link points to a non-existing file, the link must be updated too. I'm fixing all this.
## Describe the bug I get consistent `NonMatchingChecksumError: Checksums didn't match for dataset source files` errors when trying to execute `datasets.load_dataset('docred')`. ## Steps to reproduce the bug It is quasi only this code: ```python import datasets data = datasets.load_dataset('docred') ``` ## Expected results The DocRED dataset should be loaded without any problems. ## Actual results ``` NonMatchingChecksumError Traceback (most recent call last) <ipython-input-4-b1b83f25a16c> in <module> ----> 1 d = datasets.load_dataset('docred') ~/anaconda3/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, script_version, use_auth_token, task, streaming, **config_kwargs) 845 846 # Download and prepare data --> 847 builder_instance.download_and_prepare( 848 download_config=download_config, 849 download_mode=download_mode, ~/anaconda3/lib/python3.8/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 613 logger.warning("HF google storage unreachable. Downloading and preparing it from source") 614 if not downloaded_from_gcs: --> 615 self._download_and_prepare( 616 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 617 ) ~/anaconda3/lib/python3.8/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 673 # Checksums verification 674 if verify_infos: --> 675 verify_checksums( 676 self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" 677 ) ~/anaconda3/lib/python3.8/site-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 38 if len(bad_urls) > 0: 39 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 41 logger.info("All the checksums matched successfully" + for_verification_name) 42 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1fDmfUUo5G7gfaoqWWvK81u08m71TK2g7'] ``` ## Environment info - `datasets` version: 1.11.0 - Platform: Linux-5.11.0-7633-generic-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 5.0.0 This error also happened on my Windows-partition, after freshly installing python 3.9 and `datasets`. ## Remarks - I have already called `rm -rf /home/<user>/.cache/huggingface`, i.e., I have tried clearing the cache. - The problem does not exist for other datasets, i.e., it seems to be DocRED-specific.
69
`load_dataset('docred')` results in a `NonMatchingChecksumError` ## Describe the bug I get consistent `NonMatchingChecksumError: Checksums didn't match for dataset source files` errors when trying to execute `datasets.load_dataset('docred')`. ## Steps to reproduce the bug It is quasi only this code: ```python import datasets data = datasets.load_dataset('docred') ``` ## Expected results The DocRED dataset should be loaded without any problems. ## Actual results ``` NonMatchingChecksumError Traceback (most recent call last) <ipython-input-4-b1b83f25a16c> in <module> ----> 1 d = datasets.load_dataset('docred') ~/anaconda3/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, script_version, use_auth_token, task, streaming, **config_kwargs) 845 846 # Download and prepare data --> 847 builder_instance.download_and_prepare( 848 download_config=download_config, 849 download_mode=download_mode, ~/anaconda3/lib/python3.8/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 613 logger.warning("HF google storage unreachable. Downloading and preparing it from source") 614 if not downloaded_from_gcs: --> 615 self._download_and_prepare( 616 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 617 ) ~/anaconda3/lib/python3.8/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 673 # Checksums verification 674 if verify_infos: --> 675 verify_checksums( 676 self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" 677 ) ~/anaconda3/lib/python3.8/site-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 38 if len(bad_urls) > 0: 39 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 41 logger.info("All the checksums matched successfully" + for_verification_name) 42 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1fDmfUUo5G7gfaoqWWvK81u08m71TK2g7'] ``` ## Environment info - `datasets` version: 1.11.0 - Platform: Linux-5.11.0-7633-generic-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 5.0.0 This error also happened on my Windows-partition, after freshly installing python 3.9 and `datasets`. ## Remarks - I have already called `rm -rf /home/<user>/.cache/huggingface`, i.e., I have tried clearing the cache. - The problem does not exist for other datasets, i.e., it seems to be DocRED-specific. Hi @tmpr, thanks for reporting. Two weeks ago (23th Aug), the host of the source `docred` dataset updated one of the files (`dev.json`): you can see it [here](https://drive.google.com/drive/folders/1c5-0YwnoJx8NS6CV2f-NoTHR__BdkNqw). Therefore, the checksum needs to be updated. Normally, in the meantime, you could avoid the error by passing `ignore_verifications=True` to `load_dataset`. However, as the old link points to a non-existing file, the link must be updated too. I'm fixing all this.
[ -0.2659113109, 0.3422692716, 0.0355651341, 0.3098572195, 0.214197889, 0.0404327884, 0.3646671176, 0.4201550186, 0.3040324748, 0.0715031847, -0.2768665254, 0.190118432, 0.1306955665, -0.1951108724, -0.1612918228, 0.3339123726, 0.1246936545, 0.1053829789, -0.2242237628, -0.1252798289, -0.3106808662, 0.1985796541, -0.2184446454, -0.2843059599, -0.0529530197, 0.1835617423, 0.1532600224, 0.2324340791, -0.120700039, -0.3587095439, 0.2788212895, 0.2785292566, 0.173633635, 0.4296127558, -0.0001249282, 0.1207987443, 0.2817707658, -0.0242785923, -0.501280129, -0.2013867348, -0.563354671, -0.3742280006, -0.0070420792, -0.1583375037, -0.0344875716, 0.2363334298, -0.0177811794, -0.2750721872, 0.0001792605, 0.3736942112, 0.1168587953, 0.3918669224, 0.1610017419, 0.0871690363, 0.3812574446, 0.0504982956, -0.0901036188, 0.4119758606, 0.219390288, -0.0385965593, -0.2582117915, 0.1683268249, -0.4234545529, 0.3069981039, 0.232055366, 0.0618822426, 0.0648707673, -0.1373666972, 0.253241241, 0.2994743288, 0.4981358647, -0.4146616459, -0.3278160989, -0.2285789698, -0.298303932, -0.3188637793, 0.3791346848, 0.1398549974, -0.1967773736, 0.0336276442, -0.3680784702, 0.1499671191, 0.0037718869, 0.1940130293, 0.2422606051, 0.0545322224, 0.0316536799, -0.0187701844, 0.0221102182, 0.0298728757, 0.3937070668, -0.5399644375, -0.2046732903, 0.2048074454, -0.5590269566, 0.0730827823, 0.0080572087, 0.2777058184, 0.352638036, 0.4925115705, 0.08901117, 0.2042775005, -0.0375440791, 0.188513726, 0.1643131375, 0.2119750381, -0.0647413805, 0.4100411534, 0.2708570957, 0.3656848669, -0.1347787827, 0.0432133712, -0.0054317582, -0.1764253378, 0.6712611914, -0.1259947717, 0.3084286749, -0.4890398979, -0.4388926029, 0.271324724, 0.0082045635, -0.0947970897, 0.0869470164, 0.322021246, -0.226584658, 0.1516590118, 0.1470181793, 0.1476904005, -0.2125054002, -0.0541327372, -0.187337622, -0.0764364675, -0.0596771426, 0.1976072788, 0.2942281067, -0.1821978688, 0.2553656697, 0.1083121598, 0.2190237492, -0.1960808337, 0.2999760807, -0.1955657154, -0.0533633046, 0.3180696368, -0.0322253928, 0.0961275995, 0.2476602346, -0.1812210828, -0.1439391971, 0.1828757226, -0.2557730675, -0.2137421519, -0.1269117147, 0.1511545181, -0.3514274061, 0.0082077142, -0.2378200293, -0.400021553, 0.4063311517, -0.3223438859, -0.0154792899, -0.3542110622, -0.2637994885, -0.353944093, 0.2389694899, 0.4025940299, 0.0419260897, 0.0426536016, -0.0905655473, -0.0114815729, 0.294190079, 0.183512345, 0.0093251551, 0.1056279317, -0.4124949574, -0.0635623261, 0.2606512606, -0.3542023897, -0.6170941591, 0.1036195084, 0.1277518421, 0.6295824647, 0.0476492308, 0.0750021562, 0.1831660569, -0.0502420217, 0.2216965407, 0.1532353014, -0.038785696, 0.1244795322, -0.252807796, -0.0325587615, -0.0434744433, 0.1044865996, 0.0201719031, 0.2498004735, 0.2889224589, -0.1661153138, 0.2637803555, -0.0953656435, -0.1257363111, 0.2321082801, 0.2991938293, 0.046871759, 0.0639734343, -0.0167484935, -0.7693794966, 0.3423186839, -0.1505941451, -0.0280080661, -0.0733518675, -0.0444171354, -0.1803081781, -0.1141534746, -0.3073681295, -0.0912047699, -0.0125983637, 0.3906361461, 0.2074201256, 0.0201071296, 0.0379508324, 0.4137744009, -0.3047952354, 0.1248284727, -0.3346244991, 0.4118489027, 0.0743400902, -0.1029386371, 0.1318240315, -0.0030252386, 0.1328218132, -0.0562920161, -0.2745426893, 0.4387036562, 0.3811519444, 0.1363846362, -0.1962373555, 0.3414201438, -0.0699199662, -0.1395473629, -0.012621915, 0.4393106699, 0.1203998923, -0.1690554321, -0.1533752978, 0.3473964334, -0.0006330401, 0.1946744621, 0.0062628747, 0.0575816073, 0.2450569719, -0.1167023629, -0.1461344063, -0.261870563, 0.3650653958, 0.1296010762, 0.2266256809, 0.196940884, -0.1572066098, -0.0258856118, 0.4515280128, -0.0735068321, -0.0205244031, 0.1288514733, 0.0474654101, -0.0436953641, 0.0753767639, 0.2370779216, 0.5027197599, 0.0668875426, -0.04627854, 0.1425257325, -0.1718104333, -0.0678285286, 0.0968001559, -0.0407392457, 0.1989537925, 0.6168555617, 0.1380470097, -0.1526708454, -0.2818833888, -0.0774433017, -0.1217622161, 0.3029148579, -0.4903008938, 0.0769678801, -0.1072904691, 0.0858299136, -0.3731725514, -0.1268986762, -0.1855977178, -0.2465110421, -0.2533238232, 0.6255096793, 0.0291794557, 0.1770886779, -0.543838203, 0.0261698551, -0.0482735336, -0.3658800423, 0.0178647786, 0.2034313083, -0.2111107856, -0.154736951, 0.5788052082, -0.0910895392, 0.3742569685, -0.4110652506, -0.0268509947, -0.5500833392, -0.2233636677, 0.0945177004, 0.0162294693, 0.2236746848, 0.171183303, 0.0406548828, -0.0192004945, -0.2501042485, 0.2409217954, -0.0442294776, -0.2682688534, 0.3236261308, -0.1510273069, -0.0955459252, 0.1709357947, -0.1985139698, -0.0594486669, -0.3050559163, -0.1297381818, 0.2319205552, 0.2133797705, 0.1936335266, -0.0064717545, 0.0152918147, 0.1389674693, 0.337371707, -0.1682054251, -0.6134564281, 0.4448585808, -0.0378274098, -0.220205918, -0.1443342119, -0.1069903895, 0.1174569875, 0.3974053264, -0.5095450878, 0.0167492125, -0.288091749, 0.0945630446, 0.0950631127, -0.0240606703, 0.2160272449, 0.145353362, 0.0829630345, -0.2499599308, -0.2719066143, 0.1908720434, -0.1372274011, 0.1996578574, 0.0226447172, 0.3025070429, -0.2673497498, 0.5462415814, 0.4274444282, 0.0061363615, 0.2280853242, 0.0467436984, 0.526879847, -0.1603343338, -0.3179928064, -0.0785081387, -0.2098642141, -0.1336312145, 0.1367129833, -0.025604425, -0.1290741563, -0.1602381468, 0.0565649085, -0.2643253803, -0.2664655745, 0.0557018742, -0.2999257445, 0.341845274, 0.1807065904, 0.1787686795, -0.1449635029, -0.3675031662, -0.0111274412, 0.2551630437, -0.0621705726, -0.064657025, -0.2754209936, 0.0361303054, -0.0963153616, 0.3009771109, 0.2166886777, 0.4385888875, 0.1286434382, -0.0846547931, -0.0186727438, 0.023536874, 0.2270695567, -0.2749712467, 0.2956960201, 0.1485588551, -0.0079607638, -0.1783613861, -0.2544582188, -0.0432508513, 0.0618162937, 0.0433870666, 0.55647856, -0.3165850043, -0.0163535215, 0.2413590103, 0.4100426435, -0.1461860985, -0.2883686125, -0.440358609, -0.1881668419, -0.2969538569, -0.1807302386, -0.1434826255, 0.1207043454, -0.2336365879, -0.1006112695, -0.017981587, 0.0570383631, 0.297167033, -0.0569480471, 0.4486523867, -0.062713787, 0.4389171004, 0.0435416959, 0.0607733615, 0.4035254121, 0.8385460377, -0.3677003384, -0.4420888424, -0.0795324668, -0.1300328821, -0.1770050377, 0.0727124736, -0.0297103859, -0.1339790672, 0.2369088978, -0.1334208101, -0.0876609385, -0.0725696161, 0.2104186416, 0.1998604238, -0.4859289825, -0.4705499709, 0.1424980611, 0.0854976997, -0.0564965196, 0.579628408, -0.0678586066, -0.17265971, 0.0975924656, 0.1562774181, 0.7910794616, -0.0374635085, 0.2097775638, 0.2671902478, -0.321650207, -0.0153308865, -0.2884845138, 0.1176057309, -0.5410556197, -0.4565611482, 0.0023745324, -0.410885036, 0.0694896355, 0.0244534891, -0.0058735418, 0.3644321561, -0.1365393251, 0.3639833331, 0.1626484692, 0.150323987, -0.1333116144, -0.019252805, -0.0246920493, 0.0563706756, -0.1063247249, 0.2817863524, -0.1043262407, 0.0744758397, -0.0837384537, -0.2491396219, -0.3359660208, 0.26861462, -0.0484248325, 0.3063894212, 0.3144675493, -0.1562400758, -0.1932050735, 0.3079376817, 0.1931915879, 0.1256464273, -0.202425912, -0.096611917, 0.4446141422, 0.1859632283, 0.1080899015, -0.1174749732, 0.4294384122, -0.0164770056, -0.1706129313, -0.0195093155, -0.1567083597, -0.5109879971, -0.0638424307, -0.1865808964, -0.0139560504, -0.3327461779, -0.1821816862, -0.1491386443, -0.0026479869, -0.179938361, 0.1034976915, 0.1509203017, -0.1339936107, 0.3799248934, -0.0015962229, -0.460085392, -0.1274677515, 0.5131280422, 0.1256911457, -0.0666733161, 0.52543962, -0.0354989879, -0.2741117477, -0.1303777695, -0.0239341632, 0.0429769866, -0.2795833051, 0.1564933807, -0.2923184931, 0.3266904354, -0.1656529903, 0.230919674, 0.1746156663, -0.02821506, 0.0803735107, -0.5436577201, -0.1149597615, -0.0545217469, 0.0714057386, 0.2256109267, -0.096170336, -0.1318736374, -0.1686248928, -0.1643115431, -0.219647333, -0.0509599522, -0.2850660086, -0.0503922813, 0.0666950047, 0.1091088355, 0.095470123, -0.0847984403, 0.1070708409, -0.1395269483, -0.1586124599, -0.0982483998, -0.2473136783, 0.1913026422, 0.007808188, -0.2195226997, 0.1011908725, -0.2507101297, -0.1231054664, -0.2926606834, 0.041283261, 0.333221972, -0.1663248092, 0.0240588076, 0.0479134135, -0.0059108702, -0.0702901557, 0.059866488, -0.3567721844, -0.0949055552, 0.0353378989, 0.0851883814, 0.0412023254, -0.0427586734, 0.0382646769, 0.2007402033, 0.0974865928, -0.0341187306, 0.4755352736, -0.4363497496, 0.0402533934, 0.1563017517, 0.2356877029, 0.4222279489, -0.3856227994, -0.1175228581, 0.13966766, 0.1710722893, -0.2858359516, -0.1420300454, 0.1406693459, -0.2054573745, 0.0249944143, 0.2416557819, 0.1442941874, -0.5312721729, 0.3154070675, 0.0365457907, 0.1829687357, -0.1733940989, 0.0952961743, 0.4206505418, 0.1013368517, 0.1403630525, 0.1325903833, -0.0310446788, -0.0105605861, 0.0478046462, -0.0750081539, 0.3036599159, -0.3571105599, 0.0880224854, -0.2201276869, -0.5279682279, 0.3481909633, 0.2502381504, -0.0698255226, 0.1256925017, 0.0152221387, 0.0834440887, -0.0615339875, 0.2207084745, -0.3515161574, -0.11219991, -0.1160394847, 0.0300300941, 0.0056752041, -0.3382467031, 0.0237839688, 0.2282619774, -0.0487359576, 0.1440568417, 0.1589454263, 0.1219190583, -0.1803323925, -0.2696266174, 0.2587604523, 0.0842613652, -0.0409872234, -0.1821427047, 0.2920826972, 0.0527241006, 0.0603767931, 0.0833991989, 0.2604502141, 0.4520942867, 0.5969523787, 0.1655570716, -0.2217404097, -0.0189450718, -0.0231258385, -0.0942030549, 0.7059627175, -0.1801467538, -0.2599339485, 0.3139159977, 0.0530928262, -0.1471292824, 0.0253863428, -0.0972277522, -0.2940345109, -0.0907661393, 0.5079358816, -0.0236264933, 0.0174965095, -0.0995528772, 0.2220041156, -0.2275825441, -0.249173522, 0.4326468706, 0.2270053178, 0.1376857758, 0.0776116177, 0.0341995284, -0.0186288971, 0.1766093224, 0.2722485065, 0.0902166814, -0.378665477, -0.342133522, -0.7264214158, 0.3454352617, -0.1576506495, -0.0619914234, 0.1172379106, 0.1326255202, 0.0116173243, 0.1041900218, 0.314648211, -0.0641261786, -0.2050143182, -0.0098502068, -0.1759048551, -0.3004679978, -0.1592682153, -0.1377318949, -0.1920399964, -0.5703731179, 0.2017878592, 0.1151962057, 0.0482627079, -0.1229476482, 0.2097163796, 0.0996090695, 0.2080218643, 0.1852984279, 0.1540618092, 0.6352700591, -0.0647114143, -0.2254853845, -0.0971970707, -0.1141671911, -0.1586394906, 0.3163270652, -0.1148585752, 0.3463056982, -0.1001497358, -0.3019786775, -0.3574885726, 0.3911955953, 0.2497394234, -0.3221425116, -0.0838530287, 0.0728310719, -0.2557837963, 0.2184863389, 0.0259722173, 0.1138151437, 0.1335904598, 0.4593373537, -0.1675980389, -0.2450248748, 0.464666605, -0.2160876095, -0.159683153, -0.1233223602, 0.257687211, -0.2743937969, -0.2150910795, -0.6132447124, 0.1759458482, 0.4812847674, -0.1356473714, -0.1669290215, 0.2582945228, -0.2036875784, 0.3876015544, 0.016391566, 0.3485515118, 0.0122529911, -0.222143665, -0.0536836199, -0.1185232848 ]
https://github.com/huggingface/datasets/issues/2879
In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?"
Hi @rcgale, thanks for reporting. Please note that this bug was fixed on `datasets` version 1.5.0: https://github.com/huggingface/datasets/commit/a23c73e526e1c30263834164f16f1fdf76722c8c#diff-f12a7a42d4673bb6c2ca5a40c92c29eb4fe3475908c84fd4ce4fad5dc2514878 If you update `datasets` version, that should work. On the other hand, would it be possible for @patrickvonplaten to update the [blog post](https://huggingface.co/blog/fine-tune-wav2vec2-english) with the correct version of `datasets`?
## Describe the bug Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same. ## Steps to reproduce the bug I was following this tutorial - https://huggingface.co/blog/fine-tune-wav2vec2-english But here's a distilled repro: ```python !pip install datasets==1.4.1 from datasets import load_dataset timit = load_dataset("timit_asr", cache_dir="./temp") unique_transcripts = set(timit["train"]["text"]) print(unique_transcripts) assert len(unique_transcripts) > 1 ``` ## Expected results Expected the correct TIMIT data. Or an error saying that this version of `datasets` can't produce it. ## Actual results Every train transcript was "Would such an act of refusal be useful?" Every test transcript was "The bungalow was pleasantly situated near the shore." ## Environment info - `datasets` version: 1.4.1 - Platform: Darwin-18.7.0-x86_64-i386-64bit - Python version: 3.7.9 - PyTorch version (GPU?): 1.9.0 (False) - Tensorflow version (GPU?): not installed (NA) - Using GPU in script?: tried both - Using distributed or parallel set-up in script?: no -
46
In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?" ## Describe the bug Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same. ## Steps to reproduce the bug I was following this tutorial - https://huggingface.co/blog/fine-tune-wav2vec2-english But here's a distilled repro: ```python !pip install datasets==1.4.1 from datasets import load_dataset timit = load_dataset("timit_asr", cache_dir="./temp") unique_transcripts = set(timit["train"]["text"]) print(unique_transcripts) assert len(unique_transcripts) > 1 ``` ## Expected results Expected the correct TIMIT data. Or an error saying that this version of `datasets` can't produce it. ## Actual results Every train transcript was "Would such an act of refusal be useful?" Every test transcript was "The bungalow was pleasantly situated near the shore." ## Environment info - `datasets` version: 1.4.1 - Platform: Darwin-18.7.0-x86_64-i386-64bit - Python version: 3.7.9 - PyTorch version (GPU?): 1.9.0 (False) - Tensorflow version (GPU?): not installed (NA) - Using GPU in script?: tried both - Using distributed or parallel set-up in script?: no - Hi @rcgale, thanks for reporting. Please note that this bug was fixed on `datasets` version 1.5.0: https://github.com/huggingface/datasets/commit/a23c73e526e1c30263834164f16f1fdf76722c8c#diff-f12a7a42d4673bb6c2ca5a40c92c29eb4fe3475908c84fd4ce4fad5dc2514878 If you update `datasets` version, that should work. On the other hand, would it be possible for @patrickvonplaten to update the [blog post](https://huggingface.co/blog/fine-tune-wav2vec2-english) with the correct version of `datasets`?
[ 0.124852851, -0.0535938032, 0.0293307602, 0.0739796385, 0.2047281116, -0.0245766733, 0.2489377707, 0.4213005006, -0.4746908545, 0.1751622707, 0.1361838877, 0.5513864756, -0.3347690701, -0.0850955397, 0.0344839208, 0.1865644157, -0.0921123177, 0.1384560466, -0.2678906322, -0.2130741179, 0.0398925841, 0.3963992298, -0.1676281989, -0.0685962737, -0.3741768599, 0.244877398, 0.2273771465, -0.2314912826, 0.1054832488, -0.4600336254, 0.2924744487, 0.1486980319, 0.0194595307, 0.3702304661, -0.0001191299, 0.0063226023, 0.2757813334, 0.0352541432, -0.2775231004, -0.4479430318, -0.0650265291, 0.1085864976, 0.0530338921, 0.1475536525, -0.4656309485, -0.1793126911, 0.2337317616, -0.3409471512, 0.0292004794, 0.4485591054, 0.0685843602, -0.0634173304, -0.2496642619, -0.0824669749, 0.3689354062, 0.0125433672, -0.0625187159, 0.0592703931, -0.0683355555, 0.2411289513, 0.2196747363, 0.3755480051, -0.0313242152, 0.0129956314, -0.1954175979, -0.0935640186, -0.2540271878, -0.3487864733, 0.0747668445, 0.2519178092, 0.7106900215, -0.2958623171, -0.3215118349, -0.2683330774, 0.3369950652, -0.0542203225, 0.2911206484, 0.0254176874, -0.2944933772, 0.1627251506, -0.5629917383, 0.0742394626, -0.3041745424, 0.1429014206, -0.0974289998, -0.359634608, -0.143771261, 0.1845409572, -0.1975932419, 0.1163858026, 0.114155367, 0.1884384304, -0.0396124236, -0.0923857763, -0.3206233084, -0.0985560194, 0.0559260733, -0.0815377459, 0.0717144236, 0.3172878623, 0.2842969596, 0.0675945058, -0.4174665213, -0.135505408, 0.0322321728, 0.1481688768, 0.1823079735, -0.1778396666, 0.101101391, -0.0720301494, -0.1533745825, 0.0139923282, 0.0189836212, -0.0720990822, -0.1062536985, -0.0153032569, 0.3571920395, -0.1175772175, -0.5631766319, 0.1525668353, -0.5025030375, 0.2135901749, -0.0520560816, 0.1947724819, -0.2154174149, 0.1350183487, 0.2971945703, 0.0870628357, 0.02487945, -0.3115249574, -0.0998023972, -0.1971572787, 0.1828780323, 0.0968628898, 0.2440094203, -0.2103739977, 0.2123047858, 0.257135421, 0.2615037858, -0.1538840383, -0.0926653668, -0.0326226279, 0.2529811561, 0.2668441832, -0.1248196512, 0.3939130902, -0.0565123409, 0.1157927513, 0.106670782, 0.2571235001, -0.0651218817, -0.0061710193, 0.5623431206, 0.060588941, -0.1836533099, -0.3006524444, -0.1071216986, 0.3333047032, 0.0442795344, -0.0668319687, 0.2504209578, -0.2751781344, -0.2271512002, 0.0158824958, 0.1358926445, 0.1566538513, -0.5853290558, 0.0243286006, 0.1945606619, 0.0684714913, 0.3222911954, 0.3032742143, 0.1651955247, 0.1811709255, -0.0816664621, 0.1170219034, -0.219933033, -0.3883649707, -0.2060429454, 0.2092838287, -0.2708128095, 0.264259249, -0.0832697079, -0.2192167342, 0.0802669078, 0.0991331413, 0.3640693426, -0.1891600937, 0.24668172, -0.1056700721, -0.3831144273, -0.1445571929, 0.1893382818, 0.1755265892, -0.0177115817, 0.0532647818, -0.2982362509, -0.0164561383, 0.4027053714, 0.0394103304, -0.0291296821, -0.025731707, 0.3644500375, -0.1775300503, 0.263861388, -0.1554233581, 0.2872300744, 0.0272912737, 0.1604733467, 0.2198717296, 0.5499910116, -0.1693307608, -0.1779452264, -0.0762331262, -0.0728189349, -0.0683157369, 0.0582602769, 0.1486589164, -0.1489184052, 0.3247836828, -0.0285170637, 0.4712553024, -0.4881338477, -0.0153098824, -0.0879812539, -0.1088415384, 0.3033908308, -0.0987990201, 0.1165293604, 0.2411418706, 0.0172993075, 0.0872968137, -0.110142529, 0.3636822999, 0.2269500643, 0.1219172627, -0.3682011068, -0.4027226269, 0.2316687405, -0.5078880787, -0.4552857876, 0.5677568913, -0.0276648402, 0.2008169293, -0.1534452736, 0.060441643, 0.0807491466, 0.0479999073, 0.0348503962, 0.0360783227, -0.019409189, -0.1079213247, -0.470849663, -0.1607666463, 0.2607947588, -0.2098269463, 0.1590214819, -0.1161290258, -0.320378989, 0.1368902475, 0.315872401, -0.0502400734, 0.0395470038, 0.2744301558, -0.1326723844, 0.209983319, 0.0375697017, 0.1719760001, 0.2373924702, 0.2009201497, 0.0807271153, -0.0535479188, -0.0781926885, -0.2605938315, 0.2923918068, 0.1945406348, -0.3651409447, 0.3840377629, 0.2203695476, 0.0489813201, -0.4372256994, -0.0049824319, -0.1904428899, 0.2824560404, -0.449403286, -0.1749291867, -0.3977611363, 0.1078346595, -0.1361607611, -0.0218015406, 0.0710958019, 0.0436779261, 0.3717918992, -0.0027077466, -0.0859973133, 0.2743452489, 0.1501078755, 0.1915652007, -0.110422954, 0.1713414043, -0.0096689994, 0.1939062178, -0.4710183442, 0.0452458076, -0.1606466472, -0.2644656301, 0.1504383832, -0.1925743371, -0.1099141166, -0.4143466055, -0.071546413, 0.1478731036, -0.1916618943, 0.4232137799, 0.2326952517, -0.0426136926, -0.1860425919, -0.194430843, -0.1887598336, -0.0310719088, -0.0671303943, 0.0714476034, -0.1346394867, 0.0415853858, -0.256131798, -0.8888216615, 0.1003023162, -0.2204675525, 0.7185165882, 0.0599351153, -0.0460496917, 0.5412366986, 0.2822042704, 0.2012919486, 0.0792539567, 0.1863065064, -0.3713881075, -0.1230798736, 0.0792584717, 0.0293458365, -0.4573093057, -0.298314631, 0.1936385185, 0.1548020095, 0.2074109167, -0.4953384995, 0.3497347236, -0.1089945436, -0.1306295842, 0.0102862855, -0.1989106387, 0.2906790078, -0.2038048357, -0.1159159765, -0.2554523647, 0.1175914109, 0.3896949589, 0.1017955169, 0.112711817, 0.3398635685, 0.2160488367, 0.2003065348, 0.3506759107, 0.7158643007, 0.0828187764, 0.039017871, -0.1280344874, 0.4244537055, -0.0728549138, -0.052832868, 0.1600767821, 0.0590854175, -0.1087116003, 0.4583721757, -0.0842429325, -0.0255117994, -0.0293365568, -0.0642682612, -0.0904889032, -0.3277724385, -0.022520544, -0.4580339193, 0.0512960665, 0.1535509676, 0.2963804603, 0.1280051917, -0.1144675538, -0.0452858321, 0.1441749334, 0.3194569945, -0.1257756054, -0.3150956631, -0.3613077104, -0.415389359, 0.0612773709, 0.1869184822, 0.5611051917, -0.2880935073, -0.201971963, 0.2231436074, 0.1043023616, 0.4215117395, -0.3380554318, -0.042292852, 0.1251643896, 0.2728692293, -0.2976222634, -0.0735439733, -0.3262295723, -0.289985925, 0.279160589, 0.0972543359, -0.1177073866, -0.1351196617, 0.0686608776, 0.058421474, 0.0167316217, -0.099004969, -0.0332190059, 0.0306317639, -0.0272785462, 0.1637768447, 0.1725981981, -0.1248045266, -0.491910845, -0.3849042654, -0.0554664992, 0.1896433085, 0.5516821146, 0.0221093055, 0.2840608358, -0.1308684945, 0.2439791858, 0.235736981, -0.2960318625, 0.2580799758, 0.1936600059, 0.1173487008, -0.0414018072, 0.1370378286, -0.1260076612, 0.3830217123, 0.3855090439, -0.4349811971, -0.0189787298, -0.3385869563, 0.1840335429, -0.2829484046, 0.3459416926, 0.4015236199, -0.1441545635, -0.1260796487, -0.4360538721, 0.418184042, 0.0229241867, -0.1640126258, 0.4557494521, 0.161981672, -0.2460984588, 0.1927152127, -0.1567512751, 0.8095886111, 0.1871284097, 0.2667512596, 0.3340376318, 0.1109344587, 0.1609196216, -0.4287750423, 0.0356836617, -0.0055845086, 0.0698633865, -0.1306088716, 0.089701362, -0.1681430936, 0.3797655702, -0.2919414937, -0.0783907324, 0.2101620287, 0.197283715, 0.2774983346, -0.0788463205, -0.2581412792, 0.0186328627, 0.0897454992, 0.0458310619, 0.058744546, 0.3057942092, 0.2888186574, -0.1282046884, 0.0097754784, -0.265276581, -0.6595223546, 0.0203248579, -0.599691987, -0.09471035, 0.1489200592, -0.3863419294, 0.183830902, 0.3397494555, 0.1764554679, 0.4337405264, -0.4633069336, -0.0267995987, 0.2511091232, 0.1131987423, -0.0246270187, -0.0830141678, 0.3481529355, -0.0840320587, -0.1434060186, -0.0710047334, 0.0281203054, 0.16605708, -0.1545241773, -0.0496859439, -0.1185674593, -0.3426322937, 0.0497712791, 0.0989603326, 0.1527892351, -0.2369833142, 0.0680043399, -0.1038809866, -0.0651224554, 0.2742635012, 0.2779468596, -0.5032378435, -0.1089579538, 0.5379329324, -0.0835737288, 0.1077651456, 0.6408995986, -0.1893859357, -0.0512990244, -0.2775192261, 0.0168702956, 0.2590861022, -0.3368996084, 0.1719175428, 0.0321254991, 0.30066517, 0.0966014713, -0.0444742106, 0.0463051498, -0.0589915104, -0.2513128221, -0.2389338315, -0.081248261, 0.1200233996, 0.0252261981, 0.2911800742, 0.0278385542, 0.3665986061, 0.0767617822, -0.347037375, -0.2017673552, -0.0237252936, 0.0557583757, 0.0804858208, -0.0478359275, 0.0278626494, 0.1107278466, 0.0545184948, 0.0149586732, 0.1027084291, -0.1335515976, -0.0833661035, -0.2990173697, 0.1511185914, 0.2011461705, 0.1130731627, -0.0153080691, 0.0650832951, -0.0542607009, -0.0600513965, 0.0761152506, 0.3808921576, 0.0174185708, 0.3620303869, 0.1188446134, 0.3976139128, -0.0936357677, -0.2623862922, -0.0354406275, -0.0775718689, 0.1644935161, -0.0624371767, -0.1850817502, -0.0580990687, -0.1324884593, 0.0220973957, 0.0893222392, 0.1518605053, -0.0546601489, -0.2896298468, 0.2135311365, 0.1549112052, 0.0506647453, 0.3179009259, -0.1531378031, -0.2708627284, -0.1102764606, 0.0789906234, -0.0246088952, 0.0176900197, -0.3351352513, -0.0152753768, -0.0255123302, 0.0031253609, 0.0554810911, -0.3541377783, 0.3623180091, -0.0125009436, 0.1121347845, -0.5960302353, 0.1129645109, 0.3746998906, 0.0613390915, -0.0079180803, -0.2586423457, -0.2529646456, -0.0035204799, 0.4860927463, -0.2427177429, 0.2749043107, -0.1475844979, -0.0262315013, 0.2557944953, -0.2615301609, -0.2477716953, 0.2055236101, -0.4631261826, 0.160956189, 0.101355657, 0.4035341442, -0.0463260636, 0.1006667241, -0.2105019838, -0.0210334621, -0.1480747759, -0.1586381793, -0.3575797379, -0.0887535512, -0.1383645236, -0.1716290116, -0.0802430212, -0.0285868235, 0.1238230765, 0.2392329723, -0.2778191268, -0.5319434404, -0.2491969317, -0.1834071875, 0.251419425, -0.1140987724, 0.3520128727, 0.103128694, -0.0186601989, 0.1629291028, 0.3187715411, 0.5043587089, 0.1790820807, -0.1014207229, 0.1203379259, -0.299844265, -0.0056224484, 0.020882478, 0.62394315, 0.0326780751, 0.1173429191, 0.0509871952, 0.0518923216, 0.0013063183, 0.0413613394, -0.0084985485, 0.0400381945, -0.6968811154, 0.4176638126, 0.0176094957, 0.2393384725, -0.2014484107, -0.0412869416, -0.2195517421, 0.3418336213, 0.6031695008, 0.1864216924, 0.0186088011, -0.0934841856, 0.0555081293, -0.1810229719, 0.1212917343, 0.0766027942, -0.0048448374, -0.1068457067, -0.0195507258, -0.2139687836, 0.0899255127, 0.265216738, 0.2187431008, 0.0150080938, -0.1638361514, 0.0671154484, 0.0615044869, -0.0098666847, -0.1182038561, -0.2539238632, 0.2244302034, -0.1969873458, 0.0151608726, -0.0069401781, 0.1406158358, 0.1495863199, -0.0737226456, -0.1326639354, 0.1910309643, -0.1454409212, -0.057077501, -0.0759500638, 0.1773371249, 0.3487201631, 0.0686021373, 0.0964073241, 0.3599496484, -0.0915555507, 0.07731089, -0.4108827412, -0.1420516521, -0.2299602181, 0.2994242013, 0.049812071, 0.3389099836, 0.0066421395, -0.3442056477, 0.1354150027, 0.2597314715, 0.3330140114, -0.162827, -0.1400983036, 0.0477316156, -0.323091656, 0.2139669657, 0.0000565254, 0.2621964514, 0.0430665314, 0.1607147604, -0.5121689439, -0.9930148125, 0.6250440478, -0.7181706429, -0.2236547172, -0.1427765787, 0.2892617285, 0.3226871789, -0.1015825123, -0.5634548068, -0.0728689656, 0.4693164527, -0.0401696749, -0.0920308381, 0.112321049, 0.1479113549, 0.3100144565, -0.164433822, 0.9622838497, 0.3237745166, -0.1628977358, 0.1872403026, -0.4706269205 ]
https://github.com/huggingface/datasets/issues/2879
In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?"
I just proposed a change in the blog post. I had assumed there was a data format change that broke a previous version of the code, since presumably @patrickvonplaten tested the tutorial with the version they explicitly referenced. But that fix you linked suggests a problem in the code, which surprised me. I still wonder, though, is there a way for downloads to be invalidated server-side? If the client can announce its version during a download request, perhaps the server could reject known incompatibilities? It would save much valuable time if `datasets` raised an informative error on a known problem ("Error: the requested data set requires `datasets>=1.5.0`."). This kind of API versioning is a prudent move anyhow, as there will surely come a time when you'll need to make a breaking change to data.
## Describe the bug Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same. ## Steps to reproduce the bug I was following this tutorial - https://huggingface.co/blog/fine-tune-wav2vec2-english But here's a distilled repro: ```python !pip install datasets==1.4.1 from datasets import load_dataset timit = load_dataset("timit_asr", cache_dir="./temp") unique_transcripts = set(timit["train"]["text"]) print(unique_transcripts) assert len(unique_transcripts) > 1 ``` ## Expected results Expected the correct TIMIT data. Or an error saying that this version of `datasets` can't produce it. ## Actual results Every train transcript was "Would such an act of refusal be useful?" Every test transcript was "The bungalow was pleasantly situated near the shore." ## Environment info - `datasets` version: 1.4.1 - Platform: Darwin-18.7.0-x86_64-i386-64bit - Python version: 3.7.9 - PyTorch version (GPU?): 1.9.0 (False) - Tensorflow version (GPU?): not installed (NA) - Using GPU in script?: tried both - Using distributed or parallel set-up in script?: no -
134
In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?" ## Describe the bug Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same. ## Steps to reproduce the bug I was following this tutorial - https://huggingface.co/blog/fine-tune-wav2vec2-english But here's a distilled repro: ```python !pip install datasets==1.4.1 from datasets import load_dataset timit = load_dataset("timit_asr", cache_dir="./temp") unique_transcripts = set(timit["train"]["text"]) print(unique_transcripts) assert len(unique_transcripts) > 1 ``` ## Expected results Expected the correct TIMIT data. Or an error saying that this version of `datasets` can't produce it. ## Actual results Every train transcript was "Would such an act of refusal be useful?" Every test transcript was "The bungalow was pleasantly situated near the shore." ## Environment info - `datasets` version: 1.4.1 - Platform: Darwin-18.7.0-x86_64-i386-64bit - Python version: 3.7.9 - PyTorch version (GPU?): 1.9.0 (False) - Tensorflow version (GPU?): not installed (NA) - Using GPU in script?: tried both - Using distributed or parallel set-up in script?: no - I just proposed a change in the blog post. I had assumed there was a data format change that broke a previous version of the code, since presumably @patrickvonplaten tested the tutorial with the version they explicitly referenced. But that fix you linked suggests a problem in the code, which surprised me. I still wonder, though, is there a way for downloads to be invalidated server-side? If the client can announce its version during a download request, perhaps the server could reject known incompatibilities? It would save much valuable time if `datasets` raised an informative error on a known problem ("Error: the requested data set requires `datasets>=1.5.0`."). This kind of API versioning is a prudent move anyhow, as there will surely come a time when you'll need to make a breaking change to data.
[ -0.088485904, 0.037396457, -0.0213857722, 0.1496120393, -0.0189264342, -0.0777354389, 0.2245492935, 0.3621777296, -0.429489553, 0.1633367538, 0.1525295675, 0.2624569833, -0.432490617, -0.0201306585, -0.071119301, 0.2396375537, -0.1268624365, 0.25981462, -0.3329852521, -0.0231152549, 0.0825956166, 0.2425760627, -0.0296556633, 0.0283614192, -0.0865963995, -0.0143052982, 0.2008777112, -0.093485117, -0.3122866154, -0.6014047265, 0.2304865569, 0.2764073014, 0.0768745914, 0.1653757393, -0.0001274555, 0.1065067053, 0.1652288288, -0.0230602305, -0.4907235503, -0.1459860653, -0.180824548, 0.1132927239, 0.011158362, -0.0032401655, 0.1294730902, -0.2341334075, 0.2061720639, -0.1966678202, 0.3206728995, 0.5292428732, 0.0049742479, 0.2393674999, -0.1227483228, 0.1194096953, 0.3548440039, -0.1067724153, -0.0561466739, 0.0766564906, 0.0378676206, 0.2733804584, 0.2134608924, 0.3169699907, 0.086405769, -0.1138325781, -0.290795207, -0.193882212, -0.1545206457, -0.2383064628, -0.2170854211, 0.3288349211, 0.753831327, -0.3150245845, -0.6087892652, -0.3401043713, 0.1912582219, -0.1430546939, 0.3923214972, -0.1902457625, -0.2573828101, 0.3908389211, -0.6390121579, -0.2049098164, -0.3079322577, 0.1295725256, 0.015353418, -0.1147583276, 0.0225799382, 0.1235876381, -0.1734608263, 0.0642666593, 0.1816413701, 0.1108352542, 0.038729921, -0.0109756803, -0.1475488394, -0.3412714601, 0.0423946492, -0.1861126125, 0.0421029404, 0.4260554612, 0.5204828382, 0.0642907992, -0.5445080996, -0.0775154456, 0.1737653315, 0.2407868356, -0.0252583344, -0.2616614103, 0.15692994, 0.0426035337, 0.1903326213, 0.1748280823, 0.0237038396, -0.3405395448, -0.1293011457, 0.1194925904, 0.3347736299, -0.1888237745, -0.5020070672, 0.0776049346, -0.454580307, 0.1854378134, -0.0716408938, 0.120723933, -0.2241946012, 0.419606179, 0.1554582864, 0.0640978739, -0.1348512471, -0.4040712416, 0.1883217096, -0.1559716016, 0.1908436567, -0.0499088056, 0.2960176468, -0.3722983003, 0.0881588981, 0.1427764744, 0.1810636073, -0.1214631051, -0.1279874742, 0.1010570377, 0.1780343056, 0.2132166326, -0.1896715909, 0.1723005623, -0.0805888027, 0.0884558037, -0.0172109585, -0.0199682843, -0.1741253138, -0.1103576198, 0.3484823704, -0.0193801634, -0.2260963023, -0.2067113668, -0.0028787269, 0.1341750324, -0.0354007855, -0.2685537934, 0.1478761584, -0.115805082, -0.3188738525, -0.0152796609, 0.0157302301, 0.2144396305, -0.6616707444, -0.1349116415, 0.1824918687, -0.0098238224, -0.0802729949, 0.2591881156, -0.018249182, 0.1335975379, -0.0214253534, 0.061384391, -0.0431077182, -0.4288671315, -0.3187329769, 0.1890932769, -0.2718712687, 0.2365475744, 0.1732592136, -0.2317657024, 0.3257893324, -0.1745207906, 0.1762593389, -0.2554750144, 0.1786212027, -0.1710287333, -0.4389976859, -0.4511151314, 0.031018842, -0.0533370189, 0.068120487, 0.0648189187, 0.0564532466, 0.0423984602, 0.3488164246, 0.0829287097, 0.0118160006, -0.0338022485, 0.200045526, -0.0843634456, 0.0186142046, -0.224367395, 0.0837669671, 0.2081040293, 0.0765817836, 0.1705437154, 0.424785018, -0.1788806766, -0.2476136684, 0.0383234285, 0.1872706562, 0.126285255, -0.0395877548, 0.2273307592, -0.0825186446, 0.3504412174, -0.2704238892, 0.4691356719, -0.4019192457, 0.0372846611, -0.0536281206, -0.1635846496, 0.2474771291, 0.0825913176, 0.1019182429, -0.0394122601, -0.1032757536, -0.0926558524, -0.024524264, 0.518794775, 0.1530638039, 0.2767786682, -0.1384766251, -0.2536575794, 0.2143708169, -0.2618277371, -0.3397199214, 0.5486403704, -0.0972192958, 0.4484133124, -0.0255129375, 0.1951500177, 0.1404719353, -0.040309187, 0.0705885664, -0.0731970817, -0.0213092566, -0.0093516512, -0.5304045081, -0.1736079603, 0.1465597302, -0.2134280056, 0.1417781264, -0.1460386813, -0.2046640664, -0.0846562311, 0.2301444709, -0.0212985929, 0.0592088923, 0.1565668881, 0.0832527056, 0.211786449, 0.0553550608, 0.3183932006, 0.3474945128, 0.0831101686, 0.0246619973, 0.0214087591, -0.2565384805, -0.1302022934, 0.2768206596, 0.2188893259, -0.3133857846, 0.3226563931, 0.2063322961, 0.0317539014, -0.4395200908, 0.0319717452, -0.0409543738, 0.0367235951, -0.6262536049, -0.0090599591, -0.5513135791, 0.1690156907, -0.3306770027, -0.08182659, -0.1623638719, 0.0047671883, 0.5723306537, 0.1694382876, -0.0812915936, 0.2194667459, -0.087634325, 0.3680031896, -0.1986395717, -0.0618027821, 0.0382376686, 0.235950008, -0.4149255753, 0.0028021303, 0.0273967143, -0.3462299407, 0.2414893061, -0.4148816168, -0.3009605408, -0.2322787941, -0.0679201856, 0.1891996413, 0.0653937161, 0.2402111292, 0.3457305431, 0.1270100325, -0.0146292243, -0.0418712981, -0.2779378891, 0.0484673493, -0.1159968078, -0.1051494107, 0.1344976276, 0.0982847586, -0.2827249169, -0.8775423765, 0.0841022357, -0.1689092368, 0.4604318142, 0.0795201138, 0.1856422573, 0.3558037281, 0.346203953, 0.1059153229, -0.0441331379, 0.1544438154, -0.0882074237, -0.2302579731, 0.0935372785, 0.0836211443, -0.2186214924, -0.0057524103, 0.2806986868, 0.0527223162, 0.3915783763, -0.4168854058, 0.2677829564, 0.2194800079, -0.1391707957, 0.001931228, -0.368018806, 0.5466492772, -0.0834411085, 0.0156952888, -0.2377285361, 0.205624491, 0.1374920607, 0.122576125, 0.2549115419, 0.3231088817, 0.2804227471, 0.2665038407, 0.5263994336, 0.3263044357, -0.2103032321, 0.2247066796, -0.1228169724, 0.4726446271, 0.0411540791, 0.0922420695, -0.0651079491, -0.0960020721, -0.1824163198, 0.3834352195, -0.0364108309, -0.0770952627, -0.1888981909, 0.2259602696, -0.2749902606, -0.272918582, 0.0425743796, -0.3952446878, 0.1360569596, 0.2876459062, 0.3582558036, 0.10156288, 0.0322360359, -0.0319893025, 0.2270751446, 0.3397321999, -0.0098600397, -0.205221802, -0.0876502991, -0.2094879746, 0.2032209635, 0.4069237113, 0.6541618705, -0.1864350736, -0.0886587799, 0.1288477182, -0.0191108957, 0.2862899005, -0.4888174534, -0.0456894152, -0.0792832151, 0.3533954322, -0.1327290684, -0.1294834763, -0.1357855201, -0.3984862864, 0.1170825735, 0.0794346184, -0.1247220188, -0.0330578312, -0.0315417647, 0.1264813244, -0.1087495461, 0.1763421148, -0.1473098397, -0.0187249426, -0.1351140738, -0.008912567, 0.0840163231, -0.278080076, -0.4168049693, -0.0725171417, -0.0888437629, 0.2681666613, 0.3895969093, 0.1621502638, 0.2874218822, -0.1167992502, 0.0239205156, 0.0930395275, 0.0980092809, 0.3213100731, 0.2371076494, 0.1738164723, -0.1843378693, 0.0630599037, 0.0820485875, 0.101782836, 0.5416073799, -0.336302489, -0.1183999628, -0.1456222981, 0.0961889178, -0.2815686762, 0.3941451907, 0.539711833, -0.2854302824, -0.3250682056, -0.4289255738, 0.4246477187, -0.0904475898, -0.2281326652, 0.3700994253, 0.1016527489, -0.3230112493, 0.1511365473, 0.0276337042, 0.9220039845, 0.2088724077, 0.2067637593, 0.1859174073, -0.1246660948, 0.4331418574, -0.5090640783, 0.1522121876, 0.1198083013, 0.0101093641, -0.3668872118, 0.1092012301, 0.0915936753, 0.439971447, -0.1749594063, 0.0485190079, 0.1938182414, 0.3199470937, 0.243715927, -0.0224065706, -0.4007433057, 0.095558621, -0.1448121965, -0.0000623971, 0.1024669558, 0.2897033691, 0.0265425239, -0.0909916908, -0.0498299003, -0.4163598716, -0.7078104615, -0.2266657054, -0.4140581489, -0.1478801817, -0.0445111394, -0.119061254, 0.1190106422, 0.2762684822, 0.2014925331, 0.2418511808, -0.3773293197, 0.0200512931, 0.0144654009, 0.0742946267, 0.1023879573, -0.0653457791, 0.3629058599, -0.0745208785, 0.0413267799, 0.0539514199, -0.0798187256, -0.0671611503, -0.102445133, -0.0455864854, -0.0551971756, -0.3396161795, 0.1325672865, -0.1026446521, 0.0545611791, -0.1985493749, -0.0092557035, -0.2127401829, 0.1121369526, 0.1885818541, 0.0892388821, -0.4363735914, -0.0978496596, 0.6311433911, -0.2886928022, 0.1289472431, 0.4841496348, -0.3160094321, -0.0333173946, -0.1941363215, -0.0213660095, -0.1992967427, -0.5194515586, 0.0147852106, -0.0446038842, 0.0800760463, -0.127022177, 0.073364988, 0.1802175939, 0.1770586073, -0.1799434125, -0.3772439957, 0.0420021489, 0.2579897642, 0.2447490245, 0.3469192088, 0.0996372178, 0.2187812775, -0.0042199041, -0.5193978548, -0.1086388677, -0.1001783013, 0.1144042015, 0.0074447608, 0.0580743849, 0.3495641649, 0.0714690611, -0.2546701133, -0.1440987289, 0.1539246291, -0.1497370154, 0.0224602874, -0.2373713255, 0.2285162508, 0.0468573086, 0.1454444677, -0.0425269417, -0.0164453555, -0.0305593424, 0.0448148474, -0.0886746049, 0.3584471941, 0.1018417403, 0.191381067, 0.1421771497, 0.4053522646, -0.2433033288, -0.0650703013, 0.068246454, 0.1981734782, 0.1225374714, 0.2254868448, -0.2010090202, -0.0713312626, -0.1664502025, 0.2583247721, 0.2247251868, 0.0503340773, 0.0594959557, -0.1397160292, 0.2466144562, 0.0786284432, 0.3503730297, 0.6881967783, -0.1185354069, -0.4578858316, 0.1832003444, -0.0270989817, -0.1317240745, -0.025419686, -0.3005431294, 0.0465860665, -0.1627551615, 0.1273007691, 0.0149540277, -0.3517835438, 0.460877955, 0.1213573515, 0.1400361806, -0.4294632971, 0.1858078986, 0.6682862639, 0.0034412649, 0.2189691067, -0.4196910262, -0.3038707972, 0.1169409975, 0.3169998527, -0.3769645095, 0.2690323591, -0.1761023998, -0.0776479989, 0.0045769424, -0.1181805208, -0.3301261067, 0.2845059335, -0.0586046278, 0.4738274813, 0.5105355978, 0.5142284632, -0.0172043759, -0.0909561291, -0.4596327543, 0.0934664384, 0.0878878832, -0.1986487806, -0.5646128058, -0.2639584839, -0.1481105834, -0.0202088729, -0.1672478616, 0.1114047915, 0.2192398906, 0.28841874, -0.2779063284, -0.5320429802, -0.2158830315, -0.2374021709, 0.3170849979, -0.2049438506, 0.2701926231, 0.2036055326, 0.077412039, 0.2706266344, 0.3161221743, 0.405833602, 0.091557838, 0.0079941442, 0.0263181683, -0.2494978458, 0.2277772725, 0.0264974926, 0.4185414016, -0.0022926908, 0.1665539294, 0.3360890448, -0.0296551175, 0.0563846491, 0.1897279322, -0.3109255135, 0.0160298627, -0.8132576346, 0.3678290546, -0.0193114169, 0.2532857358, -0.205313772, 0.0359720923, -0.0377472825, 0.3639247119, 0.374653399, 0.2076763511, 0.0715543926, -0.001427614, -0.0013188893, 0.042796094, 0.1832635552, 0.3172470033, -0.0597401001, 0.0115216132, -0.0177085325, -0.5737120509, 0.0423169583, 0.0510372594, 0.0625441298, -0.0109656798, -0.2795841694, 0.2245611697, 0.3119564056, 0.1439362615, -0.0390034355, -0.2761303186, 0.3555093706, -0.1490615904, 0.0674827844, -0.0336016417, 0.2049396783, 0.0936795622, -0.4758703113, 0.1259448081, 0.0696859658, -0.2321201712, -0.0411871411, -0.023927616, 0.1523931175, 0.1186016798, 0.2039049417, 0.0417625122, 0.3559782207, -0.0677288547, -0.1148146093, -0.5655712485, -0.0974949151, -0.245974496, 0.312805146, -0.1374589652, 0.3027483225, -0.1450625956, 0.0440846756, -0.0077923709, 0.3880821764, 0.3565621674, 0.0990418866, -0.1623943746, -0.2619998753, -0.3227412105, 0.1392250359, 0.265111953, 0.2450653315, -0.0310609378, 0.1129158437, -0.4395873845, -0.7549797893, 0.4463395476, -0.5544971228, -0.0952443779, 0.0162800103, 0.3003892601, 0.3546909094, -0.0889625624, -0.5038310885, -0.1051778495, 0.3698131144, 0.0651458949, -0.0476119258, 0.0583503135, 0.1136684343, 0.0546242669, -0.02786153, 1.0447940826, 0.216182217, -0.1762980819, 0.1037134603, -0.4345042109 ]
https://github.com/huggingface/datasets/issues/2879
In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?"
Also, thank you for a quick and helpful reply!
## Describe the bug Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same. ## Steps to reproduce the bug I was following this tutorial - https://huggingface.co/blog/fine-tune-wav2vec2-english But here's a distilled repro: ```python !pip install datasets==1.4.1 from datasets import load_dataset timit = load_dataset("timit_asr", cache_dir="./temp") unique_transcripts = set(timit["train"]["text"]) print(unique_transcripts) assert len(unique_transcripts) > 1 ``` ## Expected results Expected the correct TIMIT data. Or an error saying that this version of `datasets` can't produce it. ## Actual results Every train transcript was "Would such an act of refusal be useful?" Every test transcript was "The bungalow was pleasantly situated near the shore." ## Environment info - `datasets` version: 1.4.1 - Platform: Darwin-18.7.0-x86_64-i386-64bit - Python version: 3.7.9 - PyTorch version (GPU?): 1.9.0 (False) - Tensorflow version (GPU?): not installed (NA) - Using GPU in script?: tried both - Using distributed or parallel set-up in script?: no -
9
In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?" ## Describe the bug Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same. ## Steps to reproduce the bug I was following this tutorial - https://huggingface.co/blog/fine-tune-wav2vec2-english But here's a distilled repro: ```python !pip install datasets==1.4.1 from datasets import load_dataset timit = load_dataset("timit_asr", cache_dir="./temp") unique_transcripts = set(timit["train"]["text"]) print(unique_transcripts) assert len(unique_transcripts) > 1 ``` ## Expected results Expected the correct TIMIT data. Or an error saying that this version of `datasets` can't produce it. ## Actual results Every train transcript was "Would such an act of refusal be useful?" Every test transcript was "The bungalow was pleasantly situated near the shore." ## Environment info - `datasets` version: 1.4.1 - Platform: Darwin-18.7.0-x86_64-i386-64bit - Python version: 3.7.9 - PyTorch version (GPU?): 1.9.0 (False) - Tensorflow version (GPU?): not installed (NA) - Using GPU in script?: tried both - Using distributed or parallel set-up in script?: no - Also, thank you for a quick and helpful reply!
[ 0.1843589097, -0.0476369262, 0.0212153625, 0.1307302862, 0.1825789064, -0.0150703816, 0.222696349, 0.4102399647, -0.4767715335, 0.1482010931, 0.202155903, 0.528619945, -0.3603378236, -0.1392592937, 0.0697514489, 0.1514802277, -0.0296482705, 0.1163090765, -0.2856072187, -0.2430297881, 0.0460388102, 0.3836102486, -0.181789279, -0.0110180005, -0.3692496121, 0.2394319922, 0.2274626493, -0.1810913682, 0.1650811285, -0.439029336, 0.2945018709, 0.0983762294, 0.0515014045, 0.3712564111, -0.0001205389, -0.0167328734, 0.2610318065, 0.0087951152, -0.2081606984, -0.3689297736, -0.1382844448, 0.1195933074, 0.0133538358, 0.12241216, -0.4130392373, -0.2065744102, 0.229093805, -0.3684004843, 0.0639212877, 0.4605449438, 0.0608402193, -0.139359951, -0.2579361498, -0.0793896466, 0.3681408465, -0.0151606631, -0.0316133946, 0.0299798381, -0.0864327401, 0.2322303355, 0.2330624908, 0.3767850101, -0.0501611307, 0.0072294213, -0.2207338065, -0.0934685469, -0.2900455594, -0.3867571652, 0.0662252977, 0.191508621, 0.7059831023, -0.3136530221, -0.2619046569, -0.2177537978, 0.3014097512, -0.0254760459, 0.2628924251, 0.0440048538, -0.2687057555, 0.1821450889, -0.5459147692, 0.1098416448, -0.3146458268, 0.1415527016, -0.0640842691, -0.3725824058, -0.0981010497, 0.2094152719, -0.2525474727, 0.1218328848, 0.1371880621, 0.2098523825, -0.0407567285, -0.088758558, -0.3333061934, -0.0827903822, 0.0905025452, -0.055269625, 0.0512395315, 0.2592660189, 0.323356241, 0.0425352305, -0.3752723634, -0.1163501963, 0.0656884834, 0.1570367366, 0.0961320028, -0.1948441863, 0.118978247, -0.1403936744, -0.1913475394, 0.040307723, -0.0055863252, -0.091643773, -0.0389522314, -0.0102081764, 0.3480204046, -0.1361118853, -0.5908363461, 0.1955148876, -0.5599816442, 0.2329349965, -0.0647064596, 0.2073190659, -0.187874347, 0.1397468895, 0.3171749115, 0.0926715434, -0.0059219012, -0.3403543532, -0.0963281542, -0.1902716309, 0.1971511841, 0.0616736077, 0.2055280805, -0.1423812211, 0.2137727439, 0.2923474014, 0.2695505917, -0.1473722309, -0.0583484769, -0.0180806592, 0.219842881, 0.2483473718, -0.1362519711, 0.4016667604, -0.0248719845, 0.1940863729, 0.1011622474, 0.2526570261, -0.1005024016, -0.0175146516, 0.5515517592, 0.0515450686, -0.179110989, -0.2624935806, -0.0348146893, 0.3113076985, 0.0846941844, -0.1433292776, 0.2118196636, -0.2840275764, -0.1747703999, -0.003525354, 0.0937831625, 0.1310754865, -0.5885374546, 0.0558972545, 0.228044942, 0.1303474754, 0.3747636676, 0.2952876389, 0.1747010648, 0.2124052495, -0.0759727508, 0.1145521328, -0.1961544603, -0.4299621284, -0.214312613, 0.1697297394, -0.2615546882, 0.2817715108, -0.0361457802, -0.2367807031, 0.0825164616, 0.075459443, 0.409607172, -0.2213379294, 0.1860471368, -0.0808987841, -0.3983337283, -0.1363315433, 0.2186726034, 0.1355755478, -0.0341216251, 0.0313469507, -0.2578755319, -0.0243165027, 0.3640209436, 0.0280066933, -0.004362273, -0.0479702353, 0.3482239544, -0.2454301864, 0.3254101574, -0.0976360664, 0.3093805313, 0.0151669383, 0.1946799606, 0.1750653833, 0.6044173241, -0.1565310061, -0.170942992, -0.0799789056, -0.0831656903, -0.0937429518, 0.0424369089, 0.1493053585, -0.1577068269, 0.3208678961, -0.0529016294, 0.496171236, -0.4533744752, -0.0638343394, -0.0522209033, -0.1226176918, 0.2798168063, -0.0861343965, 0.0933275223, 0.2543967366, 0.0215519834, 0.0870476365, -0.0931508169, 0.3177514076, 0.2538267672, 0.1660675555, -0.3391086459, -0.3895223737, 0.2347876579, -0.5418210626, -0.418391794, 0.6494663954, 0.0136631234, 0.2044710368, -0.1246106178, 0.0206717309, 0.0992714986, 0.0414252579, 0.0030764376, 0.0376889668, -0.0036091113, -0.0781878829, -0.4513742328, -0.0986297056, 0.2685841024, -0.2420790792, 0.1837171465, -0.1044279113, -0.3128755689, 0.1960173547, 0.3068779707, -0.0273673404, 0.0484327525, 0.2494100779, -0.1171611398, 0.1943250597, 0.0596161298, 0.2010252476, 0.235914126, 0.1829334795, 0.0925755948, -0.0770207793, -0.0987522975, -0.221516192, 0.2697022557, 0.1580257267, -0.3681939244, 0.4219260216, 0.2311407924, 0.0666007549, -0.3795827329, 0.0026456879, -0.2107334882, 0.3031838238, -0.4800261259, -0.1368284374, -0.3495121598, 0.1713373214, -0.1380009055, -0.0323438756, 0.1311494857, 0.0800623074, 0.370326221, -0.0135218948, -0.1168963611, 0.2293738723, 0.1091258749, 0.2434615046, -0.0670005679, 0.2318317592, 0.0222459622, 0.2099670172, -0.4693998694, 0.015322485, -0.1299001575, -0.2572244108, 0.1167961061, -0.1661652029, -0.0994341001, -0.3659780025, -0.0571099631, 0.151061967, -0.1844133586, 0.4728702605, 0.2280860841, -0.0554880984, -0.1941481084, -0.2376766503, -0.2153888792, 0.0371617377, -0.0857695267, 0.097694777, -0.1236358881, -0.0152868517, -0.2216340005, -0.9135431647, 0.0924015716, -0.2011582255, 0.6722809076, 0.0548606068, -0.0086461287, 0.4621789753, 0.2635646164, 0.1870574206, 0.138909936, 0.2119944692, -0.3575545549, -0.106063135, 0.0823722705, 0.0353392884, -0.4551185369, -0.3046335578, 0.1577614248, 0.1924328506, 0.2105116844, -0.4597027302, 0.4100583196, -0.0954082683, -0.1507000029, -0.0038921644, -0.2178034633, 0.3120282888, -0.1800539792, -0.0859067366, -0.2840114534, 0.1318731755, 0.3946647942, 0.1762969643, 0.1079193801, 0.3068368733, 0.1843467206, 0.1532683223, 0.3919531703, 0.7317343354, 0.1164943278, 0.0385542214, -0.1042457595, 0.3726763427, -0.0699758604, -0.0704685152, 0.1748739481, 0.0528061725, -0.2046083659, 0.4510253072, -0.0907783583, -0.1019510776, -0.0252721105, -0.0426658839, -0.1361756176, -0.2871514559, -0.0318492763, -0.4308846891, 0.0729355887, 0.1623313129, 0.2992659807, 0.1566134095, -0.0742487907, -0.0494469069, 0.1143832132, 0.3183398247, -0.1257064044, -0.3194031715, -0.405916661, -0.4125874341, 0.0458473675, 0.1671956629, 0.555062592, -0.2708597481, -0.2594034672, 0.2183424979, 0.0556486286, 0.4326915443, -0.3497639894, -0.0037947437, 0.1397782266, 0.3352205157, -0.2780133188, -0.0910181105, -0.3201158047, -0.2889475822, 0.2534392178, -0.0221099649, -0.0810841843, -0.0848103017, 0.0755050629, 0.0781073496, -0.0023477995, -0.0481448509, -0.0511059426, 0.0388418064, 0.0123623246, 0.1542546749, 0.1453919858, -0.1345046908, -0.5091332197, -0.3764441311, -0.0203373488, 0.197188735, 0.5483554006, 0.0524414107, 0.3182862401, -0.1757279932, 0.25930655, 0.2130944431, -0.3146297634, 0.2446758151, 0.1653646082, 0.1780990511, -0.0280466471, 0.1700089127, -0.1276296973, 0.4133140445, 0.3716487288, -0.4411073625, -0.0122789433, -0.3978454173, 0.1657234579, -0.2691042423, 0.3032995164, 0.4508009553, -0.1429353505, -0.1288248301, -0.4156200588, 0.3972937763, 0.0255686529, -0.2025948465, 0.4813393652, 0.1077151895, -0.2843468487, 0.2128332257, -0.1285715252, 0.8244360089, 0.2676287889, 0.3113027811, 0.3640472591, 0.1112722233, 0.1022783965, -0.4576124549, 0.0514674373, -0.0159365274, 0.1021314114, -0.1459210366, 0.0862596482, -0.1860912293, 0.3048148155, -0.3261877596, -0.073388651, 0.1394101828, 0.2140429318, 0.2349338233, -0.2076794058, -0.219132632, 0.0628909096, 0.1287455559, 0.0310560446, 0.0454352461, 0.2764178514, 0.2411041856, -0.141391173, -0.0235028788, -0.3043451309, -0.660400033, 0.0256115347, -0.5773504972, -0.0898341462, 0.1136530787, -0.3812579215, 0.1459791064, 0.3813396096, 0.1606675088, 0.3877428174, -0.4796431065, -0.0438009612, 0.3158276379, 0.1177165657, -0.0222175177, -0.1181874424, 0.3234867454, -0.074841246, -0.1256530583, -0.0707839131, 0.0170849375, 0.1853922606, -0.1924300343, 0.010592225, -0.1102366969, -0.325163871, -0.0179609898, 0.1750960201, 0.1333635449, -0.2425092608, 0.0644174665, -0.1092584059, -0.1126320586, 0.3161510825, 0.2585337162, -0.5235105157, -0.0768600926, 0.5095415115, -0.05945234, 0.1247373223, 0.6273759007, -0.2404686511, -0.0542512424, -0.275106281, 0.0932660177, 0.2636379004, -0.3139445484, 0.1428882778, -0.0181948114, 0.2839416862, 0.0443141162, -0.0612466894, 0.0597400367, -0.033192832, -0.2500084341, -0.2497020364, -0.0879926533, 0.1590440422, 0.0418185443, 0.2457344234, -0.0120161958, 0.283083111, 0.0409386642, -0.3694509268, -0.1864431202, -0.0472353101, 0.0774314255, 0.0784023553, -0.0327920094, 0.0524554141, 0.0643761083, 0.0200634375, 0.0109805102, 0.0574669391, -0.1392928064, -0.0746839494, -0.3100247085, 0.1609307975, 0.1798962355, 0.1112993583, -0.0083414037, 0.0556965023, -0.0509433709, -0.0491366871, 0.0704786181, 0.3807947636, 0.0208634771, 0.3144367337, 0.0940055251, 0.3792684674, -0.0854802057, -0.2379428893, -0.0430187918, -0.1058757231, 0.1939326227, -0.0524486452, -0.188233614, -0.0853269547, -0.0319134593, 0.0517282598, 0.0332106687, 0.1841089427, -0.0188174192, -0.2987866402, 0.2861653864, 0.1175718531, 0.0132432804, 0.3378902376, -0.2234210521, -0.248046279, -0.0910891816, 0.0822845176, -0.0294995066, 0.0094374726, -0.3606777191, -0.0174245946, -0.0946175754, -0.0077177826, 0.0422165394, -0.4409456551, 0.3382523358, 0.0060723345, 0.1259869188, -0.617092371, 0.1211182028, 0.4069335461, 0.0471916907, 0.0044105747, -0.3285924792, -0.2809558213, -0.0062797265, 0.5289809704, -0.2464639395, 0.2679083049, -0.0634808689, -0.0275064819, 0.2425554693, -0.2426433712, -0.2594917715, 0.2379479855, -0.4665975571, 0.1766881943, 0.1410185397, 0.3673169315, -0.0485259555, 0.0456962809, -0.240078032, -0.0296354685, -0.1623637378, -0.1589698941, -0.3425230086, -0.1122073233, -0.1174796894, -0.1609565914, -0.0854225755, 0.0221237019, 0.0852115899, 0.2617628276, -0.2954109311, -0.5197121501, -0.2400555909, -0.1835346073, 0.2313261777, -0.1279245317, 0.3786039948, 0.10281308, -0.0337539278, 0.1412706077, 0.3286019266, 0.5195795298, 0.2080286592, -0.1701619327, 0.1073838472, -0.2793742716, -0.0176598448, 0.015043973, 0.6274505258, 0.0008645584, 0.1270019561, 0.0226037018, 0.0276397411, 0.0152008086, 0.0441954024, 0.0171362832, -0.0371454172, -0.7086550593, 0.4125433564, -0.0367944427, 0.2317141145, -0.1660160571, -0.0049939775, -0.2587536573, 0.3277559578, 0.621121943, 0.1853351891, 0.0533866957, -0.0270174704, 0.0449458137, -0.1548006386, 0.1108004078, 0.0185913462, 0.049389597, -0.1143924668, -0.0499974191, -0.1892929673, 0.0780865923, 0.2131735981, 0.2548357248, -0.026068788, -0.1599316001, 0.0669078305, 0.0486767702, 0.002179692, -0.0890494362, -0.2402725965, 0.2845950425, -0.227225706, 0.0184556376, 0.014658561, 0.145174697, 0.1081263795, -0.154785648, -0.1130904257, 0.2015322894, -0.1334021538, -0.0073894253, -0.1033231467, 0.1589587033, 0.3646920919, 0.1079781055, 0.0701356903, 0.4246194661, -0.0901377499, 0.1119568273, -0.4082079232, -0.1465588659, -0.196915254, 0.2526400387, 0.0476315953, 0.3335848749, -0.022573825, -0.3501974046, 0.1585386097, 0.2298382223, 0.3724767268, -0.0926154405, -0.1263129711, 0.0814921409, -0.3730500937, 0.2268996835, -0.0261833817, 0.2177128643, 0.0186660364, 0.1487790346, -0.4728176296, -0.960010469, 0.6462187767, -0.7156583071, -0.2400015891, -0.1577966362, 0.3278788328, 0.2929249704, -0.1062858477, -0.5133001208, -0.118125312, 0.4647008777, -0.0780134201, -0.1065440103, 0.1552323401, 0.1537450105, 0.2477950007, -0.1198170334, 1.0183166265, 0.3149241507, -0.161011979, 0.2086753994, -0.4965496659 ]
https://github.com/huggingface/datasets/issues/2871
datasets.config.PYARROW_VERSION has no attribute 'major'
I have changed line 288 to `if int(datasets.config.PYARROW_VERSION.split(".")[0]) < 3:` just to get around it.
In the test_dataset_common.py script, line 288-289 ``` if datasets.config.PYARROW_VERSION.major < 3: packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"] ``` which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS. ``` import datasets datasets.config.PYARROW_VERSION.major --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module> 1 import datasets ----> 2 datasets.config.PYARROW_VERSION.major AttributeError: 'str' object has no attribute 'major' ``` ## Environment info - `datasets` version: 1.11.0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.11 - PyArrow version: 4.0.1
15
datasets.config.PYARROW_VERSION has no attribute 'major' In the test_dataset_common.py script, line 288-289 ``` if datasets.config.PYARROW_VERSION.major < 3: packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"] ``` which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS. ``` import datasets datasets.config.PYARROW_VERSION.major --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module> 1 import datasets ----> 2 datasets.config.PYARROW_VERSION.major AttributeError: 'str' object has no attribute 'major' ``` ## Environment info - `datasets` version: 1.11.0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.11 - PyArrow version: 4.0.1 I have changed line 288 to `if int(datasets.config.PYARROW_VERSION.split(".")[0]) < 3:` just to get around it.
[ -0.4137373269, 0.0904145688, 0.0879315063, 0.069035016, 0.284868449, 0.1465740502, 0.1234253496, 0.3872671723, -0.1835217625, 0.1793182641, 0.3690841198, 0.3502765, -0.2362233698, 0.1078671366, -0.2026903927, 0.0031209812, 0.0010433139, 0.2549073994, 0.1760860234, -0.0239745975, -0.1098649725, 0.1690122485, -0.2097337544, 0.2731696069, -0.2981304824, 0.0923148543, 0.0032627089, -0.0122110816, -0.1285185814, -0.5752780437, 0.2998543382, -0.1617958844, 0.2332223952, 0.391263485, -0.000127086, 0.0779013038, 0.3378002942, -0.0440747142, -0.2238939106, -0.4914156199, -0.085651435, 0.0122515438, 0.3829289079, -0.0937147513, 0.0937459767, -0.6206139922, 0.0335906781, 0.0384339988, -0.1429862529, 0.3645019233, 0.127537936, 0.0344468243, 0.1980867237, -0.0754810423, 0.2223289162, 0.083245784, -0.0282249879, 0.5229272842, 0.1158733368, -0.1320393234, 0.233240068, -0.102022633, 0.0575134605, -0.0043903464, 0.0711091682, 0.1914277673, 0.2576049566, -0.1857423782, 0.2388329953, 0.0887792706, 0.5562196374, -0.6069078445, -0.4294553101, 0.0136653185, 0.174752906, -0.2191064954, 0.2185028791, 0.2610872686, -0.1244944483, 0.1687700599, -0.0923660845, -0.1329844445, -0.0807051584, -0.0779537112, -0.433144331, 0.3678042889, 0.1932168156, 0.1645069569, -0.0400829166, -0.04866606, -0.0215911791, -0.0890382826, 0.1259018928, -0.0294876229, -0.2407489419, -0.0118983239, -0.0643955991, 0.1943915635, 0.2201173902, 0.1590977758, 0.0649064705, -0.234773919, 0.2536158264, 0.0735231191, 0.0475472286, 0.0977316201, -0.0197430961, 0.146631524, 0.0936663523, -0.0873535872, 0.0256926231, -0.0208997894, -0.0806714743, -0.0734729469, 0.3739596009, 0.0080980845, 0.7578920722, -0.3194511235, -0.2312780768, 0.1659606099, -0.3343805671, -0.184103936, -0.2247074097, 0.2836925983, 0.0676930696, 0.3056817055, -0.1982494593, 0.3802600801, -0.1360655129, -0.1857322007, -0.0950188115, 0.1552126408, 0.0275490843, -0.1461474597, 0.0764700472, -0.2719792128, -0.0986580551, 0.3349583149, 0.0094830692, 0.1213422492, -0.0362757482, -0.0120166596, -0.1315119714, 0.4732261598, -0.2890482843, 0.2727305889, 0.2008104473, -0.4936734736, -0.3582565486, 0.2217560709, -0.1869192868, -0.431489408, -0.2999134958, 0.1262726486, -0.1483470798, -0.2103191763, -0.0671084151, -0.0523799025, 0.1624187529, -0.1384892911, 0.0297997743, -0.651668191, 0.1586196274, -0.3059960306, 0.2577728629, 0.161972031, -0.6419220567, 0.0579073988, 0.1789008826, -0.1889813095, 0.1506783217, -0.1405111104, 0.0306624472, -0.1734109372, 0.074796848, 0.0583436862, 0.3201945126, -0.2379271239, -0.3039623797, 0.1230635121, 0.0718067214, 0.0206128471, 0.2803038359, -0.3171919584, -0.0282199513, 0.1652483642, -0.1928093135, 0.1018786877, 0.0079200668, 0.0062634307, -0.1814045608, -0.0036330107, 0.4458725452, 0.2917095721, 0.1499163508, -0.2299220115, -0.0262244828, -0.1855148673, 0.1473240703, -0.0819691345, 0.0311352387, -0.0489151254, 0.3686681986, -0.2390524894, -0.0064461622, -0.2394002527, -0.2902263105, 0.2341018915, 0.0907700509, 0.0002655792, -0.3193365932, -0.219354555, -0.2210743129, 0.0846685618, -0.128561303, -0.011503078, -0.0059905695, 0.3605172932, 0.0959836021, 0.0846642852, -0.3152723312, 0.1812611818, 0.0422432944, 0.1910732836, -0.0209711008, 0.4087104499, -0.4075936377, -0.3384674788, 0.0850214958, 0.0640254617, 0.1028376147, 0.002861667, 0.0299142897, 0.3328282237, 0.0242639706, 0.0389278978, 0.0299662594, 0.2096638978, -0.0284052063, -0.2111189663, -0.1741658747, 0.3066881597, -0.0031621177, 0.3704423904, 0.0565479696, 0.4024959803, 0.5626875758, 0.3306960762, -0.0120106991, 0.0881720185, -0.1884381175, -0.0055437423, 0.1211171523, -0.1257602423, 0.0624467172, -0.1393158436, 0.1693660468, -0.0199615061, -0.5397575498, 0.0718814433, 0.3745397031, -0.0722794607, 0.1365482211, 0.1192966476, -0.22845155, 0.0563648492, 0.0482595488, 0.0757280812, 0.249298811, 0.1221992299, -0.1398308128, 0.1419418901, -0.3319807649, 0.1508725435, 0.1715394557, 0.053618446, 0.1923853457, 0.1373240501, 0.2172163874, 0.0542263351, -0.0518643856, -0.4222477078, 0.1137933508, 0.4095291495, -0.4994865358, 0.2577461302, -0.2975929677, 0.2889801562, -0.0827534124, -0.1969304681, -0.4268323183, -0.2678608894, 0.0104828775, 0.0935454518, 0.1283202618, 0.1767116934, -0.3569593728, -0.1166164875, 0.0463055074, -0.5190931559, -0.252766639, -0.2070385814, -0.4546803832, 0.0009253586, 0.2450136989, -0.2954372466, 0.0536534749, -0.2570302188, -0.2196664661, -0.2246728688, -0.1574143022, 0.0125030046, -0.269426465, 0.3128561378, 0.2743914127, 0.0396343656, -0.0582421124, -0.0491061211, 0.3296924531, -0.3633875251, -0.2326972187, 0.1670558602, -0.0441559106, -0.018140588, -0.0896702781, -0.5271107554, -0.2856226861, -0.174629271, -0.0225634612, 0.0724860951, 0.1668928266, -0.0621382482, 0.2801332772, -0.0787437782, -0.1362159103, 0.0422251076, 0.0579393916, 0.0014274698, 0.2768362463, 0.0047421837, -0.2914088666, 0.010116118, -0.0066247168, 0.1385644227, 0.0028628155, -0.2945348024, -0.1095552146, 0.0360653736, 0.5227450132, -0.2845128775, 0.0628193095, 0.3160390556, 0.2878689766, -0.0280942582, 0.0421851873, -0.1316174716, -0.1662545651, 0.1143491268, 0.1350112706, 0.1534068286, 0.1728003323, -0.0685666278, 0.6282868385, -0.0858015046, -0.2661091983, 0.19313097, -0.3469312489, 0.3226404786, 0.0537074953, -0.1815225929, -0.0795435756, 0.02120829, 0.000880775, 0.265568316, -0.202450186, -0.1276522726, -0.1136756316, -0.21760571, -0.2410297394, -0.0568175204, 0.0081763715, 0.0084404759, 0.1998902708, -0.1092223823, 0.0509707965, -0.0197257306, -0.0720054805, 0.1099524423, 0.3429470062, -0.2275398523, 0.0822050944, -0.1880298704, -0.2194179147, -0.1872704327, 0.4171535075, 0.0073181456, 0.4000034034, 0.0758238211, -0.203572914, 0.0676551983, -0.2018064111, 0.5138761997, -0.1867123246, 0.1210603341, 0.2132676095, -0.1637834311, -0.4432633817, -0.4106668234, -0.5143594146, 0.1034789085, -0.0334381461, 0.163722381, -0.2714032829, -0.1977230757, 0.2114056796, 0.195720017, 0.081494987, -0.0392780565, -0.461995393, -0.0728343725, -0.2166758329, 0.2309352309, -0.1200748757, 0.3576822281, -0.2043959945, 0.5000504851, -0.1328083277, -0.1695317477, 0.2581602931, 0.2766701877, 0.3142804205, -0.3184945583, 0.0112793241, -0.2040047497, 0.1823281199, 0.537861824, 0.5164781213, 0.3591929376, -0.2701449394, 0.1650438756, 0.2548321784, 0.5881131291, 0.0124148075, -0.4793679416, -0.1435153484, -0.2246030867, 0.0869210511, -0.055749163, 0.0208998341, 0.5394140482, -0.1436982155, -0.5579455495, -0.0006600026, 0.583478868, 0.1682926714, -0.0880463868, 0.0389920734, 0.4312092662, -0.1566647142, 0.3882396221, -0.1652097702, 0.7541747689, -0.0415149927, 0.2032355219, 0.1119088903, -0.3435962796, 0.1856690794, 0.0110415602, 0.0853404105, -0.5221113563, -0.3559496403, -0.1561163366, -0.2469584793, 0.1788385957, 0.0282494351, -0.239993453, 0.3036089838, 0.0095087113, 0.3756101727, 0.3913848698, 0.3188383281, -0.1210615188, 0.3092973828, -0.2204645425, -0.0153665738, -0.0465542451, 0.0767170414, 0.1382596344, 0.0722189397, -0.2499359548, -0.4431240261, -0.3027442992, 0.0162141509, -0.2184962183, -0.1166363657, 0.4740677774, -0.5513356328, 0.1450444162, 0.0259818938, -0.1213886365, 0.0205297451, -0.1986920089, -0.0232671183, -0.132011652, 0.1351816356, 0.1822996736, 0.0830752775, 0.4477312863, 0.0146222953, -0.3590239882, 0.276563555, -0.0613866225, 0.0766119584, 0.0154431676, -0.0289588962, 0.2499645054, -0.3149304092, 0.1435465068, -0.5809526443, 0.1648852527, -0.1438597441, 0.0154867964, -0.1039261594, 0.0030873038, 0.0458917692, 0.1371153742, -0.3003840148, -0.2312101871, 0.2688654065, -0.011931234, 0.2826273143, 0.4671837091, -0.0964071751, -0.0290105585, -0.082691431, 0.0665704608, 0.3482677639, -0.3652615249, -0.0533109345, -0.0104720378, -0.0259197932, 0.1340213865, 0.2309290469, 0.2441840917, 0.2051969171, 0.0225443952, -0.5867090225, -0.0156736895, 0.1940641701, -0.1296601743, 0.1184900925, 0.1128129438, 0.2511689067, 0.2188224196, -0.1819416583, -0.1868157536, 0.0008195406, -0.0286003239, 0.1301870495, -0.2333950996, 0.183599174, 0.1691423208, -0.0048594819, 0.1116361246, -0.2133685946, -0.1062259227, -0.0898168311, -0.1932307929, 0.2013582289, 0.0601094924, 0.2008146048, 0.1493998915, 0.0889126062, 0.0152651286, -0.0439368822, 0.0690269545, 0.1395592093, -0.2084579766, 0.3365767598, 0.4670518041, -0.1786255389, -0.3895530701, -0.0425577238, -0.2097871155, -0.0377730764, 0.1553899646, 0.3876922727, -0.1798083931, 0.1443675905, -0.3008017838, 0.0501429252, -0.2175431103, -0.0649992079, 0.1967027634, -0.382879734, -0.2250436544, -0.0442183875, 0.4638454616, 0.2430250347, -0.2055921704, -0.0171396378, 0.1072365046, 0.0048530609, -0.4478969276, 0.1075395718, 0.2346013784, 0.1743809432, 0.0245360527, 0.5318636894, 0.4067471027, -0.3246034682, -0.0742826611, 0.164279595, 0.4959196746, 0.2708314657, 0.1485649049, 0.4434695542, -0.0889714733, 0.1561041474, 0.4896700978, 0.1625347584, -0.0874976143, 0.3993495703, -0.1631687433, 0.1351977885, 0.106490612, -0.1803329736, -0.0160063393, -0.1632703543, 0.2863210738, 0.017498076, 0.3956526518, -0.2600688338, 0.2041577548, 0.3499060869, 0.1165681928, -0.1896251142, -0.092125386, 0.0162337255, -0.0093539674, -0.0449644402, 0.135077551, -0.2281519026, -0.2638019025, -0.0954566151, -0.1304732263, -0.2548211217, 0.7299135923, 0.2903822362, -0.1669585854, -0.2881604731, 0.1720102429, 0.1545021385, 0.0507362522, -0.2968220413, 0.3778815866, 0.1143395901, -0.074858211, 0.2609856129, 0.3107405007, 0.8127143383, 0.2363016456, -0.1687476635, -0.2336084694, -0.2092974782, 0.0317804553, 0.291803956, -0.0576246791, -0.028149046, 0.0891762078, 0.2830816209, 0.0896404311, 0.0992728993, -0.0181849543, 0.0861287341, -0.0633634105, -0.3945927024, 0.320821017, 0.1960968226, -0.1580650061, -0.0013216215, 0.2794041336, -0.2914029956, -0.0390996598, 0.1896317601, 0.5572887659, -0.1122135371, -0.1232099086, -0.0135795595, 0.2728503048, 0.3097299635, 0.5396063328, 0.2115000337, -0.2938640416, -0.156917423, -0.4964832366, 0.3750751913, -0.197897613, -0.1750097573, 0.2619361579, 0.1028776541, 0.0685790107, 0.170511499, 0.3704152703, 0.3715750575, -0.3486966193, 0.1317123473, -0.3753184974, -0.2713752091, -0.0102243423, -0.1323414594, -0.0787532032, -0.0523299165, 0.1964601576, -0.6846225858, 0.0174367577, -0.1400099099, -0.2763794065, 0.1993915886, -0.0236322135, 0.4791323841, -0.0159135181, 0.6772804856, 0.0820816085, -0.15606305, -0.21632348, -0.0316805914, -0.4409960806, 0.5421468019, -0.2116658688, 0.2731279433, -0.1207861826, -0.3032947481, -0.2011571079, 0.2629315555, 0.0276308414, 0.0753050745, 0.06213497, 0.1530801654, 0.0903730989, -0.0284187868, -0.0078368885, -0.0506124459, -0.032961823, 0.2801569998, -0.5794116259, -0.7179991007, 0.5333272219, -0.2753734291, -0.3065237999, -0.3928979933, 0.2762829959, -0.0685962513, -0.0433019735, -0.5575699806, 0.0828975588, 0.4288054407, 0.0711633116, -0.2072430998, -0.138777554, -0.0423490182, 0.3275108933, -0.1119783968, 0.5136018395, -0.3148345053, -0.1485731006, -0.225925386, -0.2605141401 ]
https://github.com/huggingface/datasets/issues/2871
datasets.config.PYARROW_VERSION has no attribute 'major'
Hi @bwang482, I'm sorry but I'm not able to reproduce your bug. Please note that in our current master branch, we made a commit (d03223d4d64b89e76b48b00602aba5aa2f817f1e) that simultaneously modified: - test_dataset_common.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1e#diff-a1bc225bd9a5bade373d1f140e24d09cbbdc97971c2f73bb627daaa803ada002L289 that introduces the usage of `datasets.config.PYARROW_VERSION.major` - but also changed config.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1e#diff-e021fcfc41811fb970fab889b8d245e68382bca8208e63eaafc9a396a336f8f2L40, so that `datasets.config.PYARROW_VERSION.major` exists
In the test_dataset_common.py script, line 288-289 ``` if datasets.config.PYARROW_VERSION.major < 3: packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"] ``` which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS. ``` import datasets datasets.config.PYARROW_VERSION.major --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module> 1 import datasets ----> 2 datasets.config.PYARROW_VERSION.major AttributeError: 'str' object has no attribute 'major' ``` ## Environment info - `datasets` version: 1.11.0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.11 - PyArrow version: 4.0.1
47
datasets.config.PYARROW_VERSION has no attribute 'major' In the test_dataset_common.py script, line 288-289 ``` if datasets.config.PYARROW_VERSION.major < 3: packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"] ``` which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS. ``` import datasets datasets.config.PYARROW_VERSION.major --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module> 1 import datasets ----> 2 datasets.config.PYARROW_VERSION.major AttributeError: 'str' object has no attribute 'major' ``` ## Environment info - `datasets` version: 1.11.0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.11 - PyArrow version: 4.0.1 Hi @bwang482, I'm sorry but I'm not able to reproduce your bug. Please note that in our current master branch, we made a commit (d03223d4d64b89e76b48b00602aba5aa2f817f1e) that simultaneously modified: - test_dataset_common.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1e#diff-a1bc225bd9a5bade373d1f140e24d09cbbdc97971c2f73bb627daaa803ada002L289 that introduces the usage of `datasets.config.PYARROW_VERSION.major` - but also changed config.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1e#diff-e021fcfc41811fb970fab889b8d245e68382bca8208e63eaafc9a396a336f8f2L40, so that `datasets.config.PYARROW_VERSION.major` exists
[ -0.3742081225, 0.1478579193, 0.0884070471, 0.0458860211, 0.2804539502, 0.1281492561, 0.1531104892, 0.3776514232, -0.2427559048, 0.2011216879, 0.3052013814, 0.4177031815, -0.1865011901, 0.1149607599, -0.1479020417, 0.0099561084, 0.0530921482, 0.2520797253, 0.1291816086, 0.0060467068, -0.1062645391, 0.1722441018, -0.1942494661, 0.2815794349, -0.2942166626, 0.1177279726, -0.0419812873, -0.0479392149, -0.1290827245, -0.5930629969, 0.3376209438, -0.1589786112, 0.2437154949, 0.3399909437, -0.0001267467, 0.1114126891, 0.4063085616, -0.0081883511, -0.2549678385, -0.5021974444, -0.1217937693, -0.0536484718, 0.3664952815, -0.0817655995, 0.102711834, -0.7000570297, 0.013414585, 0.049935773, -0.1659477353, 0.329718858, 0.1360016465, 0.0637335405, 0.2616915703, -0.097520113, 0.2251864374, 0.0621270798, -0.0079679107, 0.4649414122, 0.0723097548, -0.1101893187, 0.2356003225, -0.0848251805, 0.0687128976, -0.0513685308, 0.0992346108, 0.1825542748, 0.2629990876, -0.1627095938, 0.1989027411, 0.0318586826, 0.5882601738, -0.626342833, -0.4298146665, -0.0176614802, 0.220206961, -0.2607834935, 0.2262852788, 0.2429365963, -0.10094136, 0.1628725231, -0.0570024997, -0.1206212416, -0.063535206, -0.0164811891, -0.4222541451, 0.3365793526, 0.1881286055, 0.140308246, -0.1132394746, -0.009329834, 0.0025072652, -0.1097331718, 0.10199292, -0.078015849, -0.2746736109, -0.0144315083, -0.0775343105, 0.1633089334, 0.1757595986, 0.208408609, 0.0030351472, -0.2792110145, 0.2704052031, 0.0860595629, 0.1035962552, 0.1269080788, -0.0204388909, 0.1562927812, 0.1005842909, -0.1070765704, 0.0690039098, -0.0031423518, -0.0581314154, -0.0568243526, 0.3815536797, 0.0283413101, 0.742669642, -0.2355119437, -0.2066710442, 0.1739302725, -0.3724194169, -0.179325074, -0.2660050988, 0.2187235057, 0.0305577051, 0.3607175052, -0.1849215776, 0.3320734203, -0.0956049785, -0.2356070876, -0.113595061, 0.1457725167, 0.0022741908, -0.1549615115, 0.0268715788, -0.3101926744, -0.0878965631, 0.3905238211, 0.0014736976, 0.1260318905, -0.1415989846, -0.0541735664, -0.1536239386, 0.4754760563, -0.2805734873, 0.2540762722, 0.1305656582, -0.4681425095, -0.3429700136, 0.2116095126, -0.2033770382, -0.4039486051, -0.4072811902, 0.1281087101, -0.1272283196, -0.1809758395, -0.1497177035, -0.0052619977, 0.2306341529, -0.1509694159, -0.0146371135, -0.6668522954, 0.1032236964, -0.319904536, 0.2467015982, 0.1543766707, -0.6335021853, 0.0087504741, 0.1704790741, -0.1900213808, 0.165815562, -0.1197979152, 0.005515072, -0.1398759037, 0.0290386174, 0.0476634167, 0.3468930423, -0.1955857724, -0.3685946465, 0.0728684291, 0.058083415, -0.0002380217, 0.2594134212, -0.3139027059, 0.0474226773, 0.1808189899, -0.1679071486, 0.0811104253, 0.001909597, 0.0160693731, -0.1740115881, -0.0421568789, 0.3828534484, 0.2783960104, 0.1499212235, -0.1601757854, 0.0293607879, -0.2005846798, 0.1286726147, -0.0868610367, 0.0851052552, 0.0264915284, 0.4046365619, -0.1430395395, 0.033946842, -0.2175856382, -0.3197008371, 0.1867123246, 0.0698746145, 0.0265328661, -0.3560784161, -0.1848592609, -0.1795900613, 0.1088649258, -0.1084898785, -0.0283278916, 0.0058021918, 0.3832255006, 0.0711459517, 0.1115474254, -0.2974824309, 0.2475375384, 0.0242408346, 0.1781353056, -0.0212112162, 0.4727578163, -0.4082576334, -0.3153122663, 0.0902254656, 0.0457065813, 0.102861464, 0.0391666442, -0.0002053427, 0.2879419625, -0.0028909601, 0.0584653802, -0.0276767816, 0.2250142992, 0.0138650322, -0.1725012511, -0.192661047, 0.2565892935, 0.0011452289, 0.4009828568, 0.1184246242, 0.3715967536, 0.5518648624, 0.3002988398, -0.0234602094, 0.09365049, -0.1508531719, -0.0168528631, 0.1085570678, -0.0839205682, 0.0393525958, -0.1069295108, 0.2100666016, -0.0077000619, -0.5035149455, 0.0840201378, 0.3833167255, -0.0595607199, 0.1452025324, 0.1436303854, -0.2609054446, 0.0484301373, 0.0339332297, 0.1345786303, 0.2741984427, 0.1518546194, -0.1246563643, 0.1309271455, -0.3188162744, 0.164799884, 0.1828395575, 0.1089477018, 0.1759979427, 0.1831200421, 0.2829288542, 0.086618349, -0.0567072183, -0.3240150213, 0.1387683749, 0.3523797393, -0.4344475269, 0.2530074716, -0.3444136083, 0.250282228, -0.1669087112, -0.1862104386, -0.4147616029, -0.2429396659, -0.0304380916, 0.0963686109, 0.1005030423, 0.2397005558, -0.3122081459, -0.1296312362, 0.0462817326, -0.3988128304, -0.2186687887, -0.1758570671, -0.4486293495, -0.019090917, 0.2013365775, -0.3951259255, 0.039651487, -0.2199624628, -0.2137857676, -0.3060598373, -0.1851968169, 0.0833885372, -0.2393283546, 0.2992102802, 0.2597303987, -0.038242083, -0.0473477803, -0.0988906175, 0.3235451281, -0.3321583569, -0.2847580612, 0.1006459966, -0.0942858085, 0.0356610715, -0.0603935421, -0.4970048368, -0.3575113714, -0.1462482959, 0.0124236261, 0.041099906, 0.1555687338, -0.0624720603, 0.2309518009, -0.1249248758, -0.1489116102, -0.0105736004, -0.0276867412, 0.0039672754, 0.2373251915, 0.0062804506, -0.2969486415, -0.0511556789, 0.0064248098, 0.0896267369, 0.0367034785, -0.3144406974, -0.1439506412, 0.0547291487, 0.5389251113, -0.3207369447, 0.0192000363, 0.2970771492, 0.2694778144, -0.0367961302, 0.0630886257, -0.1787241399, -0.1892798841, 0.1446789801, 0.1415685862, 0.1744132191, 0.2410916984, -0.0849480182, 0.5790010095, -0.0703439489, -0.298630327, 0.2510004938, -0.29209131, 0.3411943913, 0.0630541816, -0.1798293442, -0.0886980519, -0.0483298227, 0.0156402048, 0.2517925501, -0.2184791267, -0.1496745795, -0.1239425465, -0.2539528012, -0.221225664, -0.042609781, -0.0612108223, 0.0359983332, 0.2440867573, -0.0551080666, 0.0298614856, -0.0403753035, -0.054597225, 0.1456445307, 0.3016491532, -0.2157077044, 0.1017485484, -0.1830856204, -0.152707696, -0.1803331375, 0.3837957382, 0.0439700186, 0.4377391338, 0.1552539915, -0.1999727935, 0.0833069757, -0.1641715169, 0.5928218365, -0.1187062114, 0.1239395142, 0.1585399061, -0.1371153593, -0.3955423534, -0.4143469036, -0.4618233144, 0.083942309, 0.00496139, 0.1973275989, -0.2952902317, -0.1378474683, 0.2305309922, 0.1844815016, 0.0506920479, -0.0268239118, -0.4164669812, -0.0658165142, -0.16919218, 0.2111219019, -0.126962468, 0.3692860305, -0.1657081842, 0.4781220555, -0.1405241489, -0.1776957959, 0.1654678583, 0.2207294255, 0.338403821, -0.3253705204, -0.0032508457, -0.1957048923, 0.2242892385, 0.6268402338, 0.5107086897, 0.3266793787, -0.3425282538, 0.2157906592, 0.2769287527, 0.5334735513, -0.019866595, -0.482755363, -0.0958601087, -0.2471357435, 0.0602886491, -0.0659033507, -0.032102935, 0.5593261719, -0.1096102819, -0.5021070242, -0.0202025585, 0.5698218346, 0.1894673705, -0.0793709159, 0.0957337916, 0.3778422773, -0.1557371318, 0.3602989912, -0.1334694028, 0.7824115753, 0.0175452381, 0.2209131867, 0.1155825779, -0.4412602186, 0.2862614989, -0.0613791905, 0.0911196545, -0.5176571608, -0.3366225064, -0.1464529783, -0.2395018488, 0.1303436756, 0.0145639181, -0.206828028, 0.2747061551, 0.047589004, 0.4116238654, 0.3609587848, 0.3171049058, -0.0719520301, 0.2720511854, -0.252182126, -0.0217562318, -0.0593513064, 0.0917054042, 0.1281195432, 0.0586952567, -0.2239385247, -0.4248760045, -0.3383872807, 0.0584696122, -0.2342780083, -0.0421386547, 0.4508948922, -0.5700247288, 0.118259497, 0.0426155031, -0.1173641682, -0.0329631642, -0.1581275463, -0.0164402071, -0.0627333745, 0.1840555221, 0.1415057629, 0.0766142309, 0.4222027957, -0.011285712, -0.3214787543, 0.2916197777, -0.0392378792, 0.0190975238, -0.0512054153, -0.0198285989, 0.1973825842, -0.2740911245, 0.1948555112, -0.5745176673, 0.2753389776, -0.2236594856, 0.018647559, -0.1024588272, 0.0007495828, -0.0163126327, 0.1178036332, -0.2898898125, -0.2125737667, 0.3666992486, 0.0528494865, 0.282312274, 0.5269957185, -0.0676542446, -0.0817728192, -0.0454060286, 0.0528813414, 0.2541744709, -0.3957654536, -0.0471700318, -0.0543740988, 0.03274839, 0.0790852234, 0.1984802634, 0.2237325758, 0.2555364966, 0.0201187208, -0.5458897352, -0.0552603416, 0.174301967, -0.1844223738, 0.0464428887, 0.202157706, 0.2829450071, 0.1664931476, -0.200484857, -0.1850072443, -0.0044213291, -0.0431108475, 0.139864549, -0.1864715964, 0.1530421674, 0.1342078894, -0.0325627141, 0.1182299331, -0.21702604, -0.0706173331, -0.074098587, -0.2204393148, 0.1982030272, 0.0624699034, 0.239382863, 0.1128435358, 0.0884267464, -0.0120732607, -0.0264758989, 0.1066364795, 0.1785605848, -0.2272362262, 0.3060315549, 0.4929539561, -0.2622906864, -0.3427831531, -0.0386489853, -0.1529734135, -0.1157705635, 0.1555685252, 0.4499003589, -0.1631075442, 0.1811010689, -0.2985671461, 0.0400748439, -0.238818258, -0.0395774134, 0.180485189, -0.4256383181, -0.2396808267, -0.0433830358, 0.4485315979, 0.2221607566, -0.2303750366, -0.098058641, 0.1173264757, 0.0090721501, -0.449053973, 0.0356157497, 0.264077127, 0.1550159156, -0.0410299823, 0.4426931143, 0.4489092529, -0.2873223126, -0.0974351838, 0.1774400622, 0.4901801348, 0.2559277713, 0.1621134728, 0.5159202218, -0.0438941792, 0.1582222879, 0.4991028309, 0.2005461901, -0.0998899266, 0.4372412562, -0.112453796, 0.1261387914, 0.1164664105, -0.2075036913, 0.0423413739, -0.1860411316, 0.2623975575, 0.0324441902, 0.3752452433, -0.2654273808, 0.1894052476, 0.3312999606, 0.205977574, -0.2006644458, -0.1015894637, 0.0663827136, -0.0794084296, -0.0449131653, 0.1113160029, -0.2534873486, -0.229363516, -0.0513659008, -0.1425132304, -0.2100434154, 0.6946986914, 0.2750623524, -0.1903173476, -0.3078861237, 0.1221392453, 0.1174288988, 0.0489128195, -0.2738500237, 0.3728533387, 0.080597274, -0.0812714919, 0.2231171429, 0.3539702296, 0.8215025067, 0.2467615157, -0.0757995397, -0.3166638911, -0.1711066663, 0.0428912602, 0.2550635338, -0.01291807, 0.0328659192, 0.0312773809, 0.2523137927, 0.0757340938, 0.0942193642, -0.0254333951, 0.1040955782, -0.0186157599, -0.4002721012, 0.3342917562, 0.1377340406, -0.232922852, 0.0334776565, 0.3048773706, -0.2463754267, -0.0460598394, 0.2661556005, 0.5599740148, -0.1200682446, -0.1416714638, -0.0092102, 0.2585321069, 0.3113091886, 0.5630508661, 0.1585423648, -0.2242979407, -0.1859928071, -0.4756968617, 0.4308848083, -0.2150819898, -0.1064559594, 0.2760234177, 0.0639475137, 0.0704118907, 0.1569856107, 0.3471615314, 0.4209796786, -0.3910065293, 0.1344710886, -0.3857069016, -0.2570206225, 0.0194006171, -0.1237015724, -0.0705663562, -0.0510134622, 0.1715069413, -0.5911445022, 0.0238804184, -0.145424813, -0.2321884781, 0.172145009, -0.0550273545, 0.5031514764, 0.007037668, 0.6460561752, 0.0470305867, -0.1947334409, -0.2284395993, -0.1045869589, -0.4692241848, 0.6017167568, -0.2683476508, 0.2230907828, -0.1235534325, -0.3353490829, -0.2232298255, 0.2529105246, 0.0031415622, 0.0884141028, 0.0043125926, 0.1209901646, 0.0713862255, -0.0406132862, -0.0173885003, -0.0586990155, 0.015012959, 0.3013275564, -0.5924042463, -0.6977592707, 0.4954080284, -0.3196092844, -0.300034225, -0.4309999943, 0.2480504811, 0.0159253236, -0.0336424895, -0.5722135901, 0.1170051396, 0.4677253067, 0.0741850808, -0.2211979777, -0.1495643854, -0.077095449, 0.3797605634, -0.1158954501, 0.4920510352, -0.2867052257, -0.1916608512, -0.2343590558, -0.2670706809 ]
https://github.com/huggingface/datasets/issues/2871
datasets.config.PYARROW_VERSION has no attribute 'major'
Sorted. Thanks!
In the test_dataset_common.py script, line 288-289 ``` if datasets.config.PYARROW_VERSION.major < 3: packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"] ``` which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS. ``` import datasets datasets.config.PYARROW_VERSION.major --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module> 1 import datasets ----> 2 datasets.config.PYARROW_VERSION.major AttributeError: 'str' object has no attribute 'major' ``` ## Environment info - `datasets` version: 1.11.0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.11 - PyArrow version: 4.0.1
2
datasets.config.PYARROW_VERSION has no attribute 'major' In the test_dataset_common.py script, line 288-289 ``` if datasets.config.PYARROW_VERSION.major < 3: packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"] ``` which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS. ``` import datasets datasets.config.PYARROW_VERSION.major --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module> 1 import datasets ----> 2 datasets.config.PYARROW_VERSION.major AttributeError: 'str' object has no attribute 'major' ``` ## Environment info - `datasets` version: 1.11.0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.11 - PyArrow version: 4.0.1 Sorted. Thanks!
[ -0.3823499978, 0.0788534731, 0.0835613832, 0.0859657899, 0.254578352, 0.1588205546, 0.1258136332, 0.378461957, -0.1942313612, 0.1517066956, 0.3442723751, 0.3460409343, -0.2396473587, 0.1160570979, -0.1717098057, -0.0130585758, 0.0182114933, 0.2685298622, 0.1562249959, -0.0352682173, -0.0831688866, 0.1723991781, -0.221207574, 0.2769206166, -0.290784806, 0.1055777818, -0.034875419, -0.0441389605, -0.1249132976, -0.5678355694, 0.3373684287, -0.1683481783, 0.259375453, 0.3960514963, -0.0001278901, 0.0832418501, 0.355887711, -0.0235939845, -0.2130245715, -0.4989036024, -0.1226171777, -0.0021165852, 0.3659736514, -0.0908794627, 0.0975263193, -0.645819068, 0.0478101447, 0.0595673434, -0.1573934406, 0.3680754006, 0.1251091063, 0.040394716, 0.2063285261, -0.0739030614, 0.2163523734, 0.092064105, -0.0217345729, 0.534501493, 0.1071522757, -0.1533436328, 0.2649391592, -0.1108957157, 0.0430092327, -0.0005163433, 0.0668540001, 0.1680730581, 0.2481788546, -0.173890233, 0.2404453605, 0.0941150188, 0.6074262857, -0.5957273245, -0.4052781761, 0.0457946397, 0.190304175, -0.2164417058, 0.2071692944, 0.2712188065, -0.1031831801, 0.1470091492, -0.0970233083, -0.1404293329, -0.0962809622, -0.0484454148, -0.4191841185, 0.3295250833, 0.1847844124, 0.1627088934, -0.0797763839, -0.0509254895, 0.0048299716, -0.1046580449, 0.1460140944, -0.0359727815, -0.2669477761, -0.0234076288, -0.0792864859, 0.217488572, 0.217696771, 0.1644843668, 0.0548282899, -0.2486527711, 0.2624913454, 0.0772697702, 0.0593933463, 0.1027095169, 0.0099531254, 0.1515246481, 0.0868951976, -0.0923113823, 0.0064102691, 0.0057760188, -0.0834435672, -0.0731900558, 0.4025044441, -0.0256594121, 0.7480243444, -0.2999703586, -0.2222675681, 0.1814114749, -0.3430295587, -0.2135788947, -0.2431992441, 0.2692058682, 0.0672401413, 0.310472101, -0.2242441922, 0.3650549948, -0.1089137867, -0.199377805, -0.0976025686, 0.1639591455, 0.0397986546, -0.1415777802, 0.0776998177, -0.2863925397, -0.0622021332, 0.3482494056, -0.0095234104, 0.1233666539, -0.0444290265, -0.0483978391, -0.1564430743, 0.4665051401, -0.2961569726, 0.2662153244, 0.1866068244, -0.4694723487, -0.3469584286, 0.228558898, -0.2082118392, -0.4199297726, -0.3010490537, 0.1158056408, -0.1309493929, -0.2246068269, -0.1018703878, -0.0314013213, 0.1599574685, -0.1390951127, 0.0193729699, -0.6764339805, 0.1813001037, -0.3093072474, 0.2377792299, 0.1493155062, -0.64209795, 0.0522496849, 0.1860803813, -0.1793422401, 0.1692923605, -0.1044029519, 0.0251485948, -0.1446892172, 0.074836567, 0.0642969012, 0.3613587618, -0.2439746708, -0.3121292293, 0.0909591764, 0.1042780653, 0.0162541959, 0.2491032332, -0.3086020947, -0.0181004889, 0.1892558783, -0.1845408976, 0.0676994994, 0.013640088, 0.0026977183, -0.1708292961, 0.0054476419, 0.438311249, 0.2977380157, 0.1350409687, -0.2180688083, -0.0289862547, -0.2037833929, 0.1285439283, -0.0818165392, 0.0136220716, -0.0355041698, 0.407566458, -0.211303249, -0.0053179162, -0.21974428, -0.2898447216, 0.2070418745, 0.0864594579, 0.017564917, -0.310914129, -0.1828339547, -0.2235690951, 0.092757836, -0.1389970034, -0.0187330078, -0.008984318, 0.3708506823, 0.0991881639, 0.0983951762, -0.3148404062, 0.1957128495, 0.0238641016, 0.1941994578, 0.0052944184, 0.4397611022, -0.4184099436, -0.3409918547, 0.0828048363, 0.0324428193, 0.1147675738, -0.0007691359, 0.0294004232, 0.3283750117, 0.0075974376, 0.0259973463, 0.0376454331, 0.2178497612, -0.0152834198, -0.2490369678, -0.1754437536, 0.2634848952, -0.0124529032, 0.3771674037, 0.0714703649, 0.367174536, 0.5579252839, 0.311139673, -0.0011530713, 0.081929028, -0.1928504854, 0.0089487033, 0.1333372742, -0.0902685896, 0.0926108137, -0.1520457119, 0.1808014959, -0.0404996648, -0.5255686641, 0.0326813981, 0.378573209, -0.0664351285, 0.1505247355, 0.1364178061, -0.2508790195, 0.0396844186, 0.0591744334, 0.0680330917, 0.2792570293, 0.1244287118, -0.1432555616, 0.1382844001, -0.3376169503, 0.1645191908, 0.1703767031, 0.0325545408, 0.1882993728, 0.1368130594, 0.2204149663, 0.053874325, -0.0650231689, -0.3855646849, 0.1114446223, 0.4056575298, -0.4613749981, 0.2288228422, -0.2899155617, 0.3022912443, -0.0999656469, -0.1894143373, -0.4212338924, -0.2496228665, -0.0001924169, 0.090336822, 0.1711301655, 0.1835670471, -0.3250343204, -0.1124665737, 0.0609607361, -0.4758637249, -0.2720769644, -0.1949386746, -0.4537057579, -0.0113761248, 0.2226081789, -0.3075243831, 0.0475775488, -0.2794205546, -0.222134456, -0.2541949451, -0.156630829, 0.0200997163, -0.2725733817, 0.3184693456, 0.2527645528, 0.0669448599, -0.0692736134, -0.0613622926, 0.3347893357, -0.3718841076, -0.2399427444, 0.1490340978, -0.0621652342, -0.0054474128, -0.0345259421, -0.5232025981, -0.3153493404, -0.1216146052, 0.0009835535, 0.0737264007, 0.1543922126, -0.0844632015, 0.2646680176, -0.0991962701, -0.1470929235, 0.0729259551, 0.0268436, -0.0291636419, 0.2536785007, 0.0024928947, -0.2990637422, -0.015819408, 0.006221428, 0.1566198468, 0.0125369066, -0.2939115465, -0.1314835399, 0.0421486981, 0.5094447136, -0.2864129841, 0.0493873321, 0.3148921132, 0.2830879986, -0.0151688168, 0.0654160902, -0.1438310146, -0.1625919193, 0.1416301429, 0.1366788298, 0.1592234224, 0.1884554476, -0.0858525932, 0.6183635592, -0.066043742, -0.27083534, 0.2227285802, -0.349478066, 0.3271769881, 0.0535552427, -0.1810140163, -0.0944271237, -0.0012391821, 0.0283627696, 0.2522964776, -0.2121816278, -0.1313127875, -0.1222149208, -0.2319981158, -0.2465988696, -0.0176805239, -0.0523007289, 0.0142141161, 0.2401451319, -0.0935465693, 0.034567073, -0.0206153709, -0.0605601259, 0.1290478557, 0.3503609002, -0.2477122843, 0.0702728033, -0.2205438316, -0.2247415632, -0.173276186, 0.3985607326, -0.0039343834, 0.4307931662, 0.0841581747, -0.1833612025, 0.0811553076, -0.1943857968, 0.5388733149, -0.1934172809, 0.1095087007, 0.1825060248, -0.1371613145, -0.4131250083, -0.4019485116, -0.5120395422, 0.0875898749, -0.0420206934, 0.1591536552, -0.2654743791, -0.1794775724, 0.2284601927, 0.1847786903, 0.0931383222, -0.0519520231, -0.4445238411, -0.057030078, -0.1848578751, 0.2046760619, -0.1663069725, 0.3586477637, -0.1895323992, 0.4917454422, -0.1368259937, -0.1512624323, 0.2483527064, 0.287710011, 0.3000683784, -0.3307991326, -0.0130946636, -0.1949541271, 0.1695131212, 0.5847437978, 0.4820328057, 0.3315340579, -0.294988364, 0.1528007686, 0.2649532855, 0.5828864574, -0.0272528008, -0.483433634, -0.1476513296, -0.2480645627, 0.0608517006, -0.0455113314, 0.0324646272, 0.5878044367, -0.1079147011, -0.5646884441, -0.0115431584, 0.5832077861, 0.2118635923, -0.0714421794, 0.0664260015, 0.4306585193, -0.1481029093, 0.3573056757, -0.1868436038, 0.7492056489, -0.0570857488, 0.2151276916, 0.1019691601, -0.3711522222, 0.1966659725, -0.0153630348, 0.0793213546, -0.5118100643, -0.3569800556, -0.1609403491, -0.2538842559, 0.1990831494, 0.0451388434, -0.221278891, 0.3177910745, 0.0354344957, 0.3949761987, 0.3592294157, 0.3050839007, -0.0906670541, 0.3530260026, -0.2177924514, -0.0141585823, -0.0614609346, 0.0901510194, 0.1194941476, 0.0920847505, -0.2436117381, -0.4295100272, -0.305162847, 0.0007013087, -0.2089609057, -0.0932991058, 0.4825862348, -0.564635396, 0.1532411426, 0.0374579653, -0.1119042113, 0.0024960313, -0.2098170668, -0.0293328371, -0.1158581823, 0.1289699525, 0.1722138822, 0.0898154378, 0.4245472848, -0.0003973609, -0.362603873, 0.304105103, -0.0489400961, 0.0594808012, -0.003578915, -0.0241917279, 0.2139300406, -0.3155358732, 0.132243067, -0.5739024878, 0.1775269806, -0.1474528909, 0.0127399089, -0.1176820323, -0.0013163961, 0.0483027846, 0.1547810137, -0.283978492, -0.2273022979, 0.2939545214, -0.0005660221, 0.2803093195, 0.4978891015, -0.115971446, -0.0311297104, -0.0739877224, 0.0684594959, 0.3330630958, -0.3416400552, -0.0628984123, -0.0199738983, 0.0104450407, 0.1303909272, 0.2286181152, 0.2601722181, 0.2260191292, 0.0391300023, -0.5462092161, -0.0374827012, 0.1696475744, -0.1299935579, 0.1054470316, 0.1329135299, 0.2669435143, 0.2379645258, -0.1843246967, -0.1761202514, 0.0102633117, -0.0304712392, 0.1358926743, -0.2163457274, 0.158505246, 0.138336271, 0.0027873158, 0.1136001423, -0.2447290123, -0.1037489846, -0.0822046772, -0.1622231752, 0.2020552754, 0.0761264116, 0.1932974756, 0.1445910037, 0.0521461889, 0.0121984174, -0.031037217, 0.0573093072, 0.117708832, -0.2250270993, 0.3234240115, 0.4698260427, -0.2181081176, -0.3864577413, -0.048631914, -0.2083722055, -0.0919483081, 0.1622691602, 0.3923228979, -0.1639600098, 0.1349995434, -0.3085337281, 0.0645157397, -0.2191734761, -0.084187828, 0.1953693926, -0.4075606465, -0.2250798941, -0.05221726, 0.4547858238, 0.2435606569, -0.2076168656, -0.0345069468, 0.1239121035, -0.0041082399, -0.4457924366, 0.080068253, 0.2681975961, 0.166590631, 0.0092392126, 0.4907566011, 0.4225642681, -0.3052988052, -0.0838325247, 0.1534824818, 0.5127706528, 0.2449548542, 0.1527925283, 0.4591118395, -0.0687162206, 0.1594157666, 0.5113036633, 0.1964520961, -0.1306294948, 0.3847328126, -0.1721257567, 0.1426737756, 0.0957871377, -0.1894542873, 0.0161806419, -0.1555673629, 0.2666930258, 0.0196503624, 0.3913426101, -0.2815415561, 0.1803604662, 0.3507416546, 0.1539365053, -0.2007782906, -0.1109496057, 0.0122991148, -0.0259589273, -0.0553431511, 0.127328977, -0.2358577847, -0.2330396473, -0.0735607669, -0.1582722217, -0.2579681575, 0.7183961868, 0.2728726566, -0.1813760847, -0.3079471588, 0.1664167345, 0.1576441526, 0.0288805664, -0.2608737051, 0.3783064485, 0.0894762874, -0.0856343582, 0.232608512, 0.3378421664, 0.8134999275, 0.2410013527, -0.1378462315, -0.2350551188, -0.1959068179, 0.036293149, 0.3027204871, -0.0511013158, -0.0022525107, 0.0649085566, 0.2457795441, 0.0829157159, 0.1131313965, -0.0042747431, 0.080337815, -0.0697649494, -0.4125570953, 0.2890695632, 0.1622858495, -0.1878182888, 0.0006666749, 0.294282347, -0.2899018824, -0.0241305344, 0.2330348194, 0.567232132, -0.1211466789, -0.1184538007, -0.0200917888, 0.2552170753, 0.2999455333, 0.5425080657, 0.2283957005, -0.2810824215, -0.1846067607, -0.491732955, 0.3696128726, -0.188915655, -0.1681735516, 0.2723663449, 0.0870510712, 0.0668255761, 0.1543128341, 0.358499825, 0.3908868134, -0.3710202575, 0.133395642, -0.3752774596, -0.2423381209, -0.0293359756, -0.1051227599, -0.0941129327, -0.0155493794, 0.2134482265, -0.6555412412, -0.0000092105, -0.1405493617, -0.242702499, 0.1772046834, -0.0279113445, 0.4945253432, -0.039074365, 0.6881918907, 0.0928875506, -0.1293089986, -0.1993017346, -0.0419701189, -0.4117202461, 0.5732808709, -0.2209887207, 0.2203930467, -0.1318157911, -0.3068338335, -0.1680376679, 0.2684181929, 0.0365713872, 0.0693127438, 0.074137643, 0.1095281318, 0.1249653995, -0.0653188229, -0.0048772795, -0.0606577806, -0.0253131129, 0.2815610468, -0.5856456757, -0.6785210967, 0.5218515396, -0.2936740816, -0.2915141881, -0.4276632667, 0.2554471791, -0.0313607417, -0.0421098396, -0.5466675758, 0.0804826915, 0.4648813307, 0.0448707342, -0.2022099197, -0.1116632447, -0.022803925, 0.3597259521, -0.1047497168, 0.4848444164, -0.3160455525, -0.1668283343, -0.2473701835, -0.2702198327 ]
https://github.com/huggingface/datasets/issues/2871
datasets.config.PYARROW_VERSION has no attribute 'major'
Reopening this. Although the `test_dataset_common.py` script works fine now. Has this got something to do with my pull request not passing `ci/circleci: run_dataset_script_tests_pyarrow` tests? https://github.com/huggingface/datasets/pull/2873
In the test_dataset_common.py script, line 288-289 ``` if datasets.config.PYARROW_VERSION.major < 3: packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"] ``` which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS. ``` import datasets datasets.config.PYARROW_VERSION.major --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module> 1 import datasets ----> 2 datasets.config.PYARROW_VERSION.major AttributeError: 'str' object has no attribute 'major' ``` ## Environment info - `datasets` version: 1.11.0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.11 - PyArrow version: 4.0.1
25
datasets.config.PYARROW_VERSION has no attribute 'major' In the test_dataset_common.py script, line 288-289 ``` if datasets.config.PYARROW_VERSION.major < 3: packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"] ``` which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS. ``` import datasets datasets.config.PYARROW_VERSION.major --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module> 1 import datasets ----> 2 datasets.config.PYARROW_VERSION.major AttributeError: 'str' object has no attribute 'major' ``` ## Environment info - `datasets` version: 1.11.0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.11 - PyArrow version: 4.0.1 Reopening this. Although the `test_dataset_common.py` script works fine now. Has this got something to do with my pull request not passing `ci/circleci: run_dataset_script_tests_pyarrow` tests? https://github.com/huggingface/datasets/pull/2873
[ -0.3413378894, 0.2006237954, 0.049372945, 0.0571891814, 0.1107941419, 0.0854446366, 0.2353403866, 0.2816726863, -0.1760852039, 0.1386214346, 0.438138634, 0.3304321766, -0.1294845939, 0.297735095, -0.1947026998, 0.0704638883, 0.0133854281, 0.1427540034, 0.3433145285, 0.0562438518, -0.1254506111, 0.239258036, -0.1946723908, 0.1283952147, -0.1329981238, 0.0372122005, -0.1708889008, 0.0408576243, -0.1387818605, -0.4680930376, 0.4385558963, 0.0902260914, 0.1819554418, 0.6217026114, -0.0001299516, 0.1380508989, 0.4102708101, -0.0885429606, -0.2731285393, -0.5470474362, 0.0774918571, -0.0126978597, 0.3988084793, -0.1040790603, 0.0965566337, -0.3847824633, -0.0448813178, 0.1092322022, -0.067902863, 0.3774314225, 0.0892633647, 0.2561304271, 0.0892846957, 0.0130179506, 0.2664367259, 0.3202229738, -0.1790551394, 0.4346646965, 0.163472265, -0.1368527114, 0.18223162, -0.0818933249, -0.0010008782, 0.0381129086, 0.058766406, 0.0650137067, -0.0054221773, -0.2756882608, 0.2095608413, -0.0046765376, 0.4738269448, -0.5655617118, -0.4999672771, 0.0325702988, 0.1310693324, -0.2759967446, 0.1989559233, 0.1092876121, -0.2475142032, 0.1120673195, -0.1768936068, -0.1210495085, -0.0797204599, -0.0597053356, -0.452073127, 0.1955433339, 0.1415925175, 0.1933697611, 0.0005672796, -0.0080453893, 0.0825758576, -0.1077340245, 0.1832358539, -0.0202006698, -0.2383793592, -0.0761251375, 0.0723483413, 0.3277744949, 0.2713033557, 0.4195830226, 0.0403551459, -0.1306673586, 0.174266085, 0.0946188346, 0.0676531792, 0.2015321553, -0.0325329341, 0.1100755706, 0.26883623, 0.0022651241, 0.0251369309, -0.0340531245, -0.0820883214, -0.118339479, 0.2201674134, 0.0307946801, 0.8329048157, -0.3100616932, -0.264413327, 0.0647196248, -0.4131411612, -0.1456345022, -0.1949632913, 0.2120336592, 0.1063020974, 0.3991495371, -0.054112941, 0.3935264349, -0.0928063095, -0.0335153863, -0.1254985034, 0.0960216671, 0.0741094276, -0.0745831132, 0.2243506163, -0.3418166041, -0.0214521512, 0.2785852551, 0.2317495495, 0.1688358784, 0.0847869664, 0.1707445085, -0.0158238746, 0.5882755518, -0.1170846, 0.3030574322, 0.1808865517, -0.4662673175, -0.3240087628, 0.2942477167, -0.3417190313, -0.3119837642, -0.1544470787, 0.0395626612, -0.3309824169, -0.2279408276, -0.2230107188, -0.199565202, 0.230595544, -0.09554369, 0.0377825759, -0.6431552768, 0.1101010367, -0.2451968342, 0.2660878897, 0.2522025704, -0.4532644153, 0.0551288687, -0.0058161258, 0.0077627655, 0.1686531156, 0.108184278, -0.0699362084, -0.1368115842, -0.0259974599, 0.0800719559, 0.4520925283, -0.4171760976, -0.3087326586, 0.2504969537, -0.0502103381, 0.0525274239, 0.2544584572, -0.4099239409, 0.0670625865, 0.1091564149, -0.1023410782, -0.0559723116, -0.013213655, 0.1008469164, -0.1170869917, -0.0518476814, 0.4205104113, 0.2592461705, 0.0945970491, -0.1817267984, -0.0615676045, -0.3520296216, 0.2080374062, -0.058173541, -0.00003425, -0.0472278409, 0.4154104888, -0.3017407358, 0.0376632102, -0.0054553566, -0.2810015082, 0.2353983223, 0.1397245526, 0.1832517534, -0.4007819295, -0.2460963428, -0.2957423627, 0.1120926812, -0.1815855503, -0.0250835977, -0.0734229907, 0.3676602542, 0.0943571031, 0.0908512399, -0.2459866107, 0.1231615022, -0.0549701601, 0.121638678, -0.0157055464, 0.36100775, -0.39767465, -0.3114204407, 0.1486184299, 0.0152983777, 0.1552105695, -0.0953354239, 0.0492075197, 0.1977923065, 0.018292509, -0.0615071394, 0.0249138251, 0.2371177673, 0.0974489674, -0.1439389586, -0.1320542544, 0.2738496065, -0.0527514368, 0.2288922668, 0.0089537343, 0.4483506978, 0.433740288, 0.4135373831, -0.0052913735, 0.133137241, -0.0789800286, 0.0464649163, -0.1026584506, 0.0235418081, 0.0623203032, -0.1579686403, 0.2385576516, -0.0083107622, -0.4083735943, 0.1789080948, 0.4755972028, 0.0045280191, 0.0512079373, 0.1263181567, -0.0464047939, 0.0135155227, 0.1427060068, 0.1196604073, 0.3690716922, 0.1315706223, -0.1269986928, 0.1280188709, -0.3089667261, -0.000240603, 0.0881366134, 0.0855403543, -0.0177239105, 0.1066989228, 0.2934764922, 0.0094751427, -0.1714618802, -0.5069288611, 0.1386284977, 0.3523923159, -0.5544535518, 0.2957420945, -0.2599960566, 0.2412185669, -0.0563951358, -0.099517554, -0.3512249887, -0.3400330842, -0.0426338091, 0.1322477013, 0.1855418086, 0.1987326741, -0.3156895339, 0.085814856, 0.0278856121, -0.5474075079, -0.3988513947, -0.2250475734, -0.3432812393, -0.0082413657, 0.335031271, -0.3440192044, 0.1043744832, -0.3536006212, -0.0615599714, -0.3151578307, -0.3276818395, 0.0971032903, -0.3790067136, 0.3400279582, 0.264110893, 0.1390078962, -0.0936909392, -0.0775850788, 0.2825623751, -0.3451506793, -0.3498209715, 0.0558034815, -0.0393706858, -0.081658788, -0.2297518551, -0.4395770431, -0.1756117046, -0.1256152838, 0.1797543317, 0.1345760971, 0.0894499645, 0.1602129638, 0.2617307603, -0.1119602174, 0.0015942445, -0.080045335, 0.0416262671, -0.1853195578, 0.311385572, -0.1229889318, -0.2905154526, 0.0768143982, 0.0901876315, 0.2567841113, 0.0905639157, -0.3195661008, -0.2088564485, 0.0071465177, 0.5721033216, -0.1528172642, 0.0589576438, 0.3950414658, 0.1801723242, 0.033580374, 0.0303174295, -0.2007779479, -0.0994261503, 0.1576837599, 0.0561942831, 0.1956194937, 0.2270442694, -0.0645815507, 0.7777855992, -0.0912658498, -0.247752741, 0.3013986051, -0.3482937813, 0.4125493765, 0.0924599543, -0.3143632114, -0.1148337424, -0.0043492815, -0.0983640924, 0.1719359308, -0.1672710329, -0.196849227, -0.131608218, -0.2043840885, -0.1171986982, -0.0901859552, -0.0458139852, -0.0148275411, 0.2799755633, -0.0396879055, 0.1678755432, -0.1324225217, -0.0496874787, 0.1742268801, 0.442769289, -0.0196975451, 0.0237190947, -0.2624483407, -0.2940678298, -0.2959463596, 0.3724193871, 0.061157085, 0.4008819461, -0.026681086, -0.1610317528, 0.1031048149, -0.3025604188, 0.6163403392, -0.2401427329, 0.0806937441, 0.3421912193, -0.2250520885, -0.4068379104, -0.320012629, -0.4515895844, 0.1839895546, -0.0279769711, 0.2594494224, -0.2801221311, -0.3214555085, 0.2671273351, 0.1050608456, 0.0664297938, 0.0288712382, -0.5246195793, -0.4429920614, -0.2986671627, 0.2140108347, 0.0544981584, 0.2545920312, -0.3563589156, 0.4444724619, -0.0712299645, -0.2317398638, 0.2484552115, 0.2951732576, 0.2508275807, -0.1330598593, -0.0640557408, -0.1815859675, 0.0097758155, 0.477694422, 0.5681917667, 0.3777179122, -0.2568677068, 0.3769102693, 0.2031817287, 0.5758686662, 0.2257894129, -0.4059256017, -0.0527210794, -0.1149656773, -0.0379138701, -0.080989413, 0.1220759079, 0.5143463016, -0.2152787, -0.3515267074, -0.0673798025, 0.3762578964, 0.290491879, -0.0491693653, 0.1210093647, 0.4069837034, -0.1331271678, 0.3132099211, -0.1312802881, 0.8649080396, 0.057380721, 0.256983012, 0.1712691486, -0.322670877, 0.0820893273, -0.003961972, 0.0175484009, -0.4571155906, -0.1686368138, -0.1796827912, -0.2954652309, 0.2304840833, -0.0226178914, -0.1865593791, 0.229722783, 0.0601244867, 0.4995066226, 0.4300904572, 0.3966604471, -0.2316233218, 0.3145558834, -0.2194425762, -0.0172984209, 0.0293021239, 0.2286307663, 0.124477379, -0.002792815, -0.2746600807, -0.4961460829, -0.37046206, -0.0256939139, -0.2890318036, -0.1104236618, 0.3295895755, -0.7482529283, 0.2486482412, 0.0339220054, 0.1098260209, 0.0075352951, -0.3014063835, 0.0366480127, -0.1004758477, 0.1164056063, 0.2305586487, -0.0126885399, 0.3798055649, 0.0022485489, -0.369571954, 0.248747468, -0.077589035, -0.1284065992, -0.10458038, 0.0652091727, -0.0416565202, -0.3378791511, 0.1743742973, -0.5917771459, 0.1822234839, -0.0884274393, -0.0206442904, -0.1191925257, 0.0958006158, 0.0254339762, 0.2053674906, -0.2256229073, -0.1250716597, 0.2743127644, -0.0698661953, 0.1688301414, 0.5413680077, -0.0138974981, 0.0417850837, -0.0379354209, 0.033793889, 0.2881394327, -0.4225570858, 0.0193725899, -0.0664407313, 0.0207807571, -0.0079836641, 0.509545207, 0.0708176792, 0.2001803219, -0.0391862728, -0.4795256853, -0.0093072541, 0.2478470504, -0.0300485119, 0.1569505185, 0.1399680674, 0.2862483859, 0.2056425959, -0.405495137, -0.1714913249, -0.0400294513, -0.000537709, 0.0970597789, -0.1244992316, 0.0023443503, 0.171981141, -0.0211473666, 0.024566818, -0.1681083292, -0.0766649842, -0.0485599563, -0.1229086444, 0.2095736861, 0.0366380587, 0.1580324769, 0.1997240484, 0.0126829194, 0.0098167099, -0.0131300623, 0.1601453722, 0.0829429477, -0.1392778456, 0.093243286, 0.1914658844, -0.1461140364, -0.3684512675, 0.0260951091, -0.1601081192, 0.0838330016, 0.1734333187, 0.3831002414, -0.1243301556, 0.1700462848, -0.1644287854, 0.136464268, -0.1596181542, 0.013914519, 0.2238865793, -0.3504797816, -0.2246349007, -0.0711626559, 0.5016793013, 0.2746834755, -0.1880669147, 0.0494724512, 0.0735972151, -0.0657561943, -0.3324206769, 0.0811484829, 0.3131485581, 0.1644701362, -0.0142199947, 0.5696216226, 0.3624671996, -0.2893332541, 0.1590238959, 0.1196841523, 0.7548341155, 0.2659273148, 0.0646335185, 0.1735058725, -0.1727526039, 0.1701314747, 0.4858205616, 0.0595215857, -0.0590773523, 0.1139845327, -0.1660731435, 0.1806773692, 0.0633857921, -0.1396620274, 0.001239076, -0.1661031544, 0.3387806416, -0.264516741, 0.3434379101, -0.2066052258, 0.1852727979, 0.4347059727, 0.0754559636, -0.1739108562, -0.2398148179, 0.1066153198, -0.0229048841, -0.0884501562, -0.1149521023, -0.2485224754, -0.1854368746, -0.0515635498, -0.1260222495, -0.1242799088, 0.6650737524, 0.1825416833, -0.1802328378, -0.2559813559, -0.0092405602, 0.0285580959, 0.0777159259, -0.263761878, 0.4144214392, 0.0703170374, -0.1295516491, 0.0619428381, 0.3388366401, 0.9245889783, 0.1384816468, -0.119341433, -0.3575937152, -0.2355310768, 0.0099260984, 0.138694793, 0.0076980577, -0.0125988983, 0.1495130807, 0.1344967633, 0.0862469524, 0.071466282, -0.0586302131, 0.1186977923, -0.1172768399, -0.4760383666, 0.3648820519, -0.0168354753, -0.1769959629, -0.0490625612, 0.1928962469, -0.2198527902, 0.0186762493, 0.1510175467, 0.4744874835, -0.1413980275, -0.2653834522, -0.0160904955, 0.1495954692, 0.3990335464, 0.4798596203, 0.2936071754, -0.2884002924, -0.1620029062, -0.630964756, 0.2499451637, -0.1089177728, -0.0733902678, 0.1761762798, 0.1923172176, 0.1261360198, 0.1565837115, 0.2528316379, 0.1572821587, -0.2526715398, 0.0740477443, -0.2817492485, -0.1842305511, -0.1125999242, -0.1680740267, -0.0837305263, -0.0515798405, 0.1233399138, -0.6046460867, -0.0450350232, -0.2213482559, -0.3686109781, 0.1300189048, -0.2846067846, 0.4359494448, -0.0453370288, 0.7685061693, 0.1256030947, -0.1501159221, -0.3288882077, -0.1370660514, -0.285241276, 0.5235645771, -0.3340819478, 0.2942072451, -0.0719057769, -0.380186826, -0.2367647588, 0.2125569731, 0.1473571807, 0.015084289, 0.139054656, 0.18910411, -0.0995963514, -0.0554136485, -0.0435973816, -0.030801123, -0.0259375852, 0.2249903977, -0.5183079839, -0.6421110034, 0.5877329111, -0.3876187503, -0.2811570168, -0.3539839387, 0.2209096998, -0.1894461215, -0.1547939181, -0.4908481538, 0.021292137, 0.3034403026, 0.1360800862, -0.2562732697, 0.0768880621, 0.0237822514, 0.290207088, -0.0882469937, 0.499348551, -0.3625539243, -0.0745926052, -0.1757297665, -0.1907047182 ]
https://github.com/huggingface/datasets/issues/2871
datasets.config.PYARROW_VERSION has no attribute 'major'
Hi @bwang482, If you click on `Details` (on the right of your non passing CI test names: `ci/circleci: run_dataset_script_tests_pyarrow`), you can have more information about the non-passing tests. For example, for ["ci/circleci: run_dataset_script_tests_pyarrow_1" details](https://circleci.com/gh/huggingface/datasets/46324?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link), you can see that the only non-passing test has to do with the dataset card (missing information in the `README.md` file): `test_changed_dataset_card` ``` =========================== short test summary info ============================ FAILED tests/test_dataset_cards.py::test_changed_dataset_card[swedish_medical_ner] = 1 failed, 3214 passed, 2874 skipped, 2 xfailed, 1 xpassed, 15 warnings in 175.59s (0:02:55) = ``` Therefore, your PR non-passing test has nothing to do with this issue.
In the test_dataset_common.py script, line 288-289 ``` if datasets.config.PYARROW_VERSION.major < 3: packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"] ``` which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS. ``` import datasets datasets.config.PYARROW_VERSION.major --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module> 1 import datasets ----> 2 datasets.config.PYARROW_VERSION.major AttributeError: 'str' object has no attribute 'major' ``` ## Environment info - `datasets` version: 1.11.0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.11 - PyArrow version: 4.0.1
95
datasets.config.PYARROW_VERSION has no attribute 'major' In the test_dataset_common.py script, line 288-289 ``` if datasets.config.PYARROW_VERSION.major < 3: packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"] ``` which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS. ``` import datasets datasets.config.PYARROW_VERSION.major --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module> 1 import datasets ----> 2 datasets.config.PYARROW_VERSION.major AttributeError: 'str' object has no attribute 'major' ``` ## Environment info - `datasets` version: 1.11.0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.11 - PyArrow version: 4.0.1 Hi @bwang482, If you click on `Details` (on the right of your non passing CI test names: `ci/circleci: run_dataset_script_tests_pyarrow`), you can have more information about the non-passing tests. For example, for ["ci/circleci: run_dataset_script_tests_pyarrow_1" details](https://circleci.com/gh/huggingface/datasets/46324?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link), you can see that the only non-passing test has to do with the dataset card (missing information in the `README.md` file): `test_changed_dataset_card` ``` =========================== short test summary info ============================ FAILED tests/test_dataset_cards.py::test_changed_dataset_card[swedish_medical_ner] = 1 failed, 3214 passed, 2874 skipped, 2 xfailed, 1 xpassed, 15 warnings in 175.59s (0:02:55) = ``` Therefore, your PR non-passing test has nothing to do with this issue.
[ -0.4502635896, 0.1362894326, 0.0727608278, -0.0077378419, 0.210440293, 0.1455685943, 0.1347785145, 0.3891866505, -0.2612731457, 0.1966487318, 0.2423591018, 0.4409922659, -0.174534291, 0.1955467612, -0.2465572804, 0.0201375429, -0.0359608233, 0.1991022974, 0.1349838227, 0.0418360345, -0.1486246139, 0.1625906974, -0.2162213922, 0.2647956908, -0.1537034959, -0.0562001877, -0.0889388993, -0.0443796068, -0.1304095089, -0.543780148, 0.374103874, -0.0596004017, 0.1746742874, 0.5324847698, -0.0001234938, 0.1340290904, 0.3579029739, -0.099743627, -0.3201577663, -0.4985058904, 0.0303555876, 0.0250716098, 0.3309290409, -0.1497163624, 0.0457028411, -0.5905317068, -0.0560617782, 0.011204035, -0.0264583249, 0.4921305478, 0.1557275653, 0.1648605168, 0.0755554661, -0.137879923, 0.210254997, 0.089855887, -0.0760812536, 0.4706763327, 0.1216390133, -0.0717137381, 0.1600072682, -0.1023208573, -0.0217084177, -0.0166188478, -0.0197366606, 0.0890951231, 0.2701399326, -0.2540642619, 0.2758241594, 0.0213556439, 0.6139847636, -0.6099302769, -0.402813077, 0.0584969297, 0.1510484666, -0.1977946013, 0.2043727338, 0.1740199775, -0.2345986068, 0.1370747983, -0.1940619051, -0.0381158032, -0.0790201724, -0.1012421995, -0.3796566129, 0.2510077655, 0.1984764487, 0.1712024063, -0.0156713389, -0.1160794795, 0.0763115138, -0.1649231166, 0.170402199, 0.0014240057, -0.2107874453, -0.129683286, -0.0683172196, 0.3605410159, 0.2446825057, 0.2437425703, 0.0395206213, -0.2193709165, 0.2899466455, 0.1493432522, -0.0002065366, 0.060830459, 0.0282580554, 0.1525740027, 0.1156841591, -0.0743039697, 0.0116414698, 0.0125757102, -0.0356712267, -0.1347546428, 0.2806890607, -0.0175586436, 0.747718215, -0.386092782, -0.3294264078, 0.1127082333, -0.3191033304, -0.1121121868, -0.1496730894, 0.3698425591, 0.0801952556, 0.3064732254, -0.2025549859, 0.3027328849, -0.148769632, -0.1783850491, -0.0953058898, 0.0878898203, -0.0219249018, -0.1331822574, 0.1687428951, -0.2979690433, -0.0465056896, 0.3469100296, 0.1025219187, 0.1879935563, 0.0652616769, -0.0026953628, -0.0544139817, 0.4611659646, -0.2218509614, 0.2516638935, 0.1780836433, -0.5087434649, -0.3634715378, 0.2743989229, -0.2164251655, -0.3534741104, -0.2432028204, 0.151281327, -0.0920187533, -0.2586004138, -0.0489280932, -0.0613507144, 0.1802086085, -0.1575635076, -0.0042943428, -0.6692387462, 0.1291497648, -0.3172443509, 0.2979747355, 0.2355631441, -0.5403274298, 0.0511988066, 0.1171005592, -0.1538690478, 0.2208563685, -0.0480547622, 0.0285186488, -0.1684476435, 0.008382176, 0.0004034062, 0.3619309366, -0.3157839477, -0.2808323205, 0.2037823498, 0.1373576522, -0.0054161474, 0.258110404, -0.3559542, 0.0676776916, 0.1332530528, -0.2449017912, 0.0707520768, -0.0634788871, 0.0394995026, -0.1724347621, 0.0111094378, 0.4310903251, 0.2942523658, 0.0776945651, -0.1869189143, 0.0541623756, -0.2536583543, 0.1724235415, -0.153491497, 0.0145558426, -0.095210731, 0.4228506982, -0.3071483076, 0.0091015995, -0.0820851251, -0.3720258772, 0.214207381, 0.1426869631, 0.0427836291, -0.3331008852, -0.2545279264, -0.3418053687, 0.0929807276, -0.1178567037, -0.0309027005, 0.0290229879, 0.3834606111, 0.0836455449, 0.0666082948, -0.1785346568, 0.1259467155, 0.0109810112, 0.1843898743, -0.021914199, 0.4052859545, -0.3848957419, -0.3287788928, 0.1164525375, 0.0147691462, 0.2110700905, -0.0747004673, -0.0244301055, 0.3569452167, 0.0668140128, 0.0324969031, 0.0375453681, 0.2812748551, 0.0095077008, -0.2744845748, -0.2255578786, 0.2845185697, -0.0563144833, 0.335890919, -0.0477804728, 0.4245945215, 0.4690216482, 0.2440936267, 0.0434890911, 0.1207157895, -0.0876624584, 0.0307110269, 0.0175956078, -0.1027696207, 0.1239546984, -0.0975145176, 0.2429556996, 0.0073814266, -0.4534864426, 0.0181120038, 0.3326230049, -0.1036967561, 0.079722181, 0.1088910624, -0.1348168701, 0.0713322908, 0.1310128421, 0.1286019683, 0.2671003044, 0.1545218527, -0.0664283633, 0.1459353566, -0.3957768083, 0.0493688993, 0.1474568546, 0.046951104, 0.0843830109, 0.1178493723, 0.2030754983, 0.0692258701, -0.1964526772, -0.4386540353, 0.1690077484, 0.3975126445, -0.4556099176, 0.2525030673, -0.2593023777, 0.2879627645, -0.1762989759, -0.1013129577, -0.2812756002, -0.2871729434, 0.0298087746, 0.1613865793, 0.1280528903, 0.2844814956, -0.3949874341, 0.1308537275, 0.0604371689, -0.5389617682, -0.3587738574, -0.1788505465, -0.4358465075, 0.0564847142, 0.2930062115, -0.2936736047, 0.1870015562, -0.3385720551, -0.1041571423, -0.2780030966, -0.2546269596, 0.1000234187, -0.2732539177, 0.4224722683, 0.2331346571, 0.0653007999, -0.0509411618, -0.1394465566, 0.2985119224, -0.5006918907, -0.2382101864, 0.1075783893, -0.0609142967, -0.0281601492, -0.0992578343, -0.6026321054, -0.2700941563, -0.1767314076, -0.0738294199, 0.1012948826, 0.1171792299, 0.0153186703, 0.1794993281, -0.0414384827, -0.1064003855, 0.040731471, 0.0227799695, -0.0935673937, 0.2638745904, -0.1412262917, -0.247062102, 0.0030329677, 0.0593990013, 0.3075082004, 0.0263136849, -0.3157670796, -0.1785085499, 0.0870808735, 0.5713326931, -0.213754639, -0.0088340752, 0.2017015219, 0.3253875971, -0.0461313352, 0.0438692309, -0.1561382264, -0.2257906049, 0.0831051841, 0.1174168065, 0.1173686087, 0.2478049397, -0.0001471604, 0.7000100017, 0.0901702568, -0.2647122443, 0.2456341684, -0.290442735, 0.3646113276, 0.0215920843, -0.2104302496, -0.0293033496, -0.0032851116, -0.0899685696, 0.2567013502, -0.1834515184, -0.2540484667, -0.0747877732, -0.1884061694, -0.2296490818, -0.0697398409, -0.0385251641, -0.0507598296, 0.2692644894, -0.0709148198, 0.1493453532, -0.0700604767, -0.1060432568, 0.2032533139, 0.3706054389, -0.2543409765, 0.0308764242, -0.2697114348, -0.200737372, -0.2348984778, 0.4246786833, -0.0129908873, 0.4772621691, -0.016963236, -0.1294088811, 0.0974079669, -0.2080836296, 0.4789678752, -0.2268110663, 0.0811510012, 0.2893922925, -0.170969218, -0.44634372, -0.3620918989, -0.4987749159, 0.0781412125, -0.0376700051, 0.2260660231, -0.2343872935, -0.2319649607, 0.2269615382, 0.1185379326, 0.0725107491, 0.0037124723, -0.4310705662, -0.2614602745, -0.2430775613, 0.3034367263, -0.1024958342, 0.3525213897, -0.3325912952, 0.4075814784, -0.0961001888, -0.1727211326, 0.2449412048, 0.3544303477, 0.2249419391, -0.2119112909, 0.0260769092, -0.1250227988, 0.2323424816, 0.5753104091, 0.5339670777, 0.2321098298, -0.2221550047, 0.1890183538, 0.2378938645, 0.6089592576, 0.0379683226, -0.4350992441, -0.1311749667, -0.2159736902, 0.0436225496, -0.0090597766, 0.1054687575, 0.5369826555, -0.1258685887, -0.5352920294, 0.0339511372, 0.47798118, 0.2792463005, -0.136687398, 0.0759350955, 0.3156251609, -0.1674428582, 0.4376081526, -0.1025658101, 0.8173331022, -0.0009261135, 0.1719650477, 0.138971284, -0.3020308912, 0.1291724443, 0.0200279076, 0.0107886679, -0.4951123297, -0.3523802161, -0.1284809411, -0.2606924474, 0.2495348901, 0.0580628514, -0.343375206, 0.3005758524, 0.0194640867, 0.4572975338, 0.4209087789, 0.2916842699, -0.1678933203, 0.2989626825, -0.2507620752, 0.0380312651, 0.0244168658, 0.0722335279, 0.1154952571, 0.0764666349, -0.141377911, -0.4948067069, -0.2790382206, 0.0151465517, -0.2930012643, -0.1004594862, 0.3964217007, -0.5733570457, 0.2118080556, 0.0720924959, 0.04818381, 0.0640392303, -0.2333733588, 0.0129593583, -0.1457787901, 0.1276945472, 0.183948487, 0.0475329347, 0.4533499479, -0.0087215574, -0.3378638029, 0.3581652641, -0.0813947842, -0.0119384425, 0.0148284594, -0.1256122291, 0.1773061901, -0.3368036747, 0.2464153767, -0.628660202, 0.1099734455, -0.1781975776, 0.045037251, -0.1984385252, 0.0036137204, 0.1091617271, 0.2272614092, -0.3318321109, -0.2118319571, 0.2083907127, 0.0059665497, 0.2285706252, 0.5235672593, -0.0887126327, -0.04807809, -0.1036171764, 0.0581538342, 0.3272997141, -0.3375204802, -0.0491202101, -0.0297179222, 0.065609552, 0.1523433775, 0.3768545389, 0.2776260078, 0.2131869495, -0.0744468719, -0.5255508423, -0.0729655996, 0.2375106514, -0.0712140799, 0.1975880712, 0.1174603403, 0.3237075806, 0.2238592505, -0.1134935394, -0.2397029251, -0.03295701, -0.1323354989, 0.1919335723, -0.0868279263, 0.0964449942, 0.051700104, 0.0634484664, 0.0887569487, -0.192830056, -0.1422792673, -0.1109476462, -0.1475551575, 0.1835369468, 0.1018511131, 0.1381859332, 0.1264923364, 0.0560475253, 0.0490148067, -0.0467185937, 0.1385231018, 0.0393861048, -0.1792175919, 0.2147742212, 0.34734115, -0.1672769934, -0.3585488498, -0.0370983481, -0.2041278034, -0.0396423712, 0.1470280886, 0.3860643506, -0.2622255683, 0.0606436282, -0.183980599, 0.0891807824, -0.0386753567, -0.058118239, 0.1145231798, -0.3145363331, -0.2465545535, 0.0138950851, 0.4490870833, 0.2860864401, -0.2015555203, -0.030049989, 0.235149473, 0.0334136561, -0.4120021164, 0.0085355006, 0.2943555713, 0.1643490195, 0.0969960317, 0.4992057681, 0.3679380715, -0.337335825, 0.0763207898, 0.054108277, 0.4890707135, 0.2271460444, 0.1624105126, 0.4281882644, -0.120604977, 0.148973614, 0.500107348, 0.0717378333, -0.068675071, 0.3365833759, -0.226596266, 0.2901752591, 0.0518489964, -0.0947274566, 0.0120786726, -0.1402914524, 0.33037889, -0.0836483538, 0.3031802773, -0.1854189783, 0.2107686251, 0.3404168189, 0.0991525203, -0.3103975058, -0.264610827, 0.0073891794, -0.0769663379, -0.1239804476, -0.0777561739, -0.248784706, -0.3113349378, -0.0424013659, -0.1833255887, -0.2136457413, 0.6925194263, 0.2094757855, -0.1458517164, -0.2887672782, 0.099605754, 0.1255612969, 0.0661409795, -0.2412374616, 0.4364032447, -0.0067151501, -0.0461819135, 0.1553471386, 0.2981884778, 0.8132764697, 0.2181598842, -0.1735399514, -0.3258236647, -0.2322149277, 0.0645576119, 0.2646583021, 0.0630190447, -0.0373362675, 0.0212638974, 0.2920491993, 0.1168117151, 0.0277587902, -0.0784622729, 0.0650030896, -0.1590969265, -0.4842327237, 0.2990456522, 0.1847798973, -0.1018589437, 0.0164223909, 0.1767463088, -0.2542063892, 0.0268722139, 0.2197711021, 0.4025389552, -0.0997011513, -0.1280664951, 0.0130578224, 0.2641711831, 0.3753708899, 0.4660414457, 0.3042026758, -0.3263893723, -0.2322641909, -0.5930103064, 0.3081550002, -0.1118557751, -0.0641729385, 0.2311535031, 0.0703425854, 0.1258249283, 0.2151816934, 0.30558604, 0.3428937793, -0.2636965513, 0.1026008427, -0.4001891017, -0.1769956946, -0.0904512405, -0.1819176972, -0.0943459645, -0.1717551947, 0.1907263249, -0.5734676123, 0.0147785563, -0.1284413487, -0.3459657729, 0.200353846, -0.19253923, 0.4588808715, -0.0203613099, 0.7599465251, 0.057064373, -0.1314642429, -0.1995707601, -0.15740785, -0.3382564485, 0.508472383, -0.2153967023, 0.2439021915, -0.0355879702, -0.2223462462, -0.1448097527, 0.2334987372, 0.1409814954, 0.0157278813, 0.0833625644, 0.0926648304, 0.0641425624, -0.0942074135, -0.0230031405, -0.0197342616, -0.0309021324, 0.2972713113, -0.4680343568, -0.672316432, 0.540030539, -0.338793844, -0.235279426, -0.4275918007, 0.2575130761, -0.0969465226, -0.0870121717, -0.4807568491, 0.1060673445, 0.3818357885, 0.0325497799, -0.2270982862, -0.0324551389, 0.0326505639, 0.3201504648, -0.1376316845, 0.5239678621, -0.2877165973, -0.1514039785, -0.1682212055, -0.2710402012 ]
https://github.com/huggingface/datasets/issues/2869
TypeError: 'NoneType' object is not callable
Hi, @Chenfei-Kang. I'm sorry, but I'm not able to reproduce your bug: ```python from datasets import load_dataset ds = load_dataset("glue", 'cola') ds ``` ``` DatasetDict({ train: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 8551 }) validation: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 1043 }) test: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 1063 }) }) ``` Could you please give more details and environment info (platform, PyArrow version)?
## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: - Python version: 3.7 - PyArrow version:
66
TypeError: 'NoneType' object is not callable ## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: - Python version: 3.7 - PyArrow version: Hi, @Chenfei-Kang. I'm sorry, but I'm not able to reproduce your bug: ```python from datasets import load_dataset ds = load_dataset("glue", 'cola') ds ``` ``` DatasetDict({ train: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 8551 }) validation: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 1043 }) test: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 1063 }) }) ``` Could you please give more details and environment info (platform, PyArrow version)?
[ -0.0594903305, -0.1199711189, 0.0148641206, 0.2438831329, 0.4732634127, -0.0013416682, 0.4414617419, 0.1253976971, -0.0142953452, 0.2675631642, -0.1799774915, 0.4658890367, -0.1191558838, 0.1054266095, 0.0933514312, -0.1634460539, -0.1493485421, 0.1789052486, -0.0950517431, 0.0041558379, -0.2951413095, -0.1227453202, -0.2647020519, 0.1601062417, -0.4545831382, -0.2473363578, -0.1237274557, -0.0289071202, -0.2947974801, -0.3072052002, 0.3905930817, 0.045531936, 0.0802016407, 0.573389709, -0.0001046333, 0.085742943, 0.5220624804, 0.0795245767, -0.1019385606, -0.4897305667, -0.1364545226, -0.1668332815, 0.2139172852, -0.393879205, -0.174881503, -0.0434178077, 0.0156303495, 0.1047198623, 0.3135638833, 0.4849516451, 0.3089385629, 0.4509330392, 0.0464522541, -0.2673178315, 0.2966395915, 0.1515992731, -0.0532518923, 0.3601016104, -0.0297630094, -0.1026376411, 0.1846834719, 0.1567065567, -0.2669480145, -0.0967591628, 0.1903866827, 0.0687865466, -0.0415391438, -0.290898174, -0.0751495287, 0.4143870771, 0.3387809098, -0.4593112171, -0.2788108885, 0.1180645153, 0.2122831494, -0.2495187223, 0.2602464557, 0.0856177285, -0.0128446911, 0.1975728273, -0.0867947638, 0.2796069086, -0.2793028951, 0.3049078584, -0.164794296, 0.1444952488, -0.0630867183, 0.0345241651, 0.2060508877, -0.1919636279, 0.059791442, -0.1310273856, 0.0356741138, 0.1007023752, -0.243607074, -0.1369945854, 0.1091515124, -0.0550249554, 0.1305607557, -0.2993285656, 0.1565279961, -0.0825746059, -0.0047007087, 0.4082542658, 0.183615461, 0.3742778003, 0.2353915423, 0.146733135, 0.2031041682, 0.1250560284, -0.2914271057, 0.0851671919, -0.1916304976, -0.0795564353, 0.3350311518, 0.141778037, 0.4543803036, 0.004213843, -0.4538616538, -0.0484698229, -0.4231696129, 0.0795800835, 0.2269208282, 0.4578568935, -0.1490905881, 0.111972034, 0.0448685922, 0.1539013535, -0.1707451195, -0.2831352949, -0.2869074643, 0.4119275212, -0.3327414989, -0.2005894333, 0.1725695282, 0.0631759688, -0.0440938734, -0.0142761068, -0.124532178, 0.0147927273, 0.0312171597, -0.4864667356, -0.1069177911, 0.1802367717, 0.0366909429, -0.1434192806, 0.2177432328, -0.4385626912, 0.0038601621, 0.2104463279, -0.1390264481, -0.2205248028, -0.0644018948, 0.2921482325, -0.3297555149, -0.1617497504, -0.1220805645, 0.1581521481, 0.158894524, 0.0152816763, 0.0386043973, -0.0845265612, -0.0218608137, -0.3067058027, 0.0268780459, 0.3902682364, -0.3743338883, -0.2277735025, -0.1163482741, -0.0573342443, 0.3309760094, -0.0552941114, -0.0139303515, 0.2842520177, -0.0162361618, 0.1270191222, 0.6166725755, -0.3811469376, -0.3189837933, -0.0871518478, -0.0525565632, -0.0323508754, -0.0000088416, -0.1415092349, 0.0952094793, 0.1851929128, 0.4305967093, 0.1825711876, 0.0108494731, -0.0068763741, -0.2708131671, -0.2111279964, 0.1911941022, 0.0895309374, 0.1389753819, -0.0566433519, -0.0780088603, -0.24225308, 0.0179314129, -0.1191949025, -0.1323612928, -0.0616726913, 0.5806082487, -0.0895553157, -0.1220896021, -0.5331310034, -0.2384607494, 0.1451272964, -0.0384060368, 0.4400658906, -0.1647625715, -0.2132972479, -0.4087546468, 0.0467493199, -0.0534322485, -0.0422442332, 0.2887170017, 0.0327202827, -0.162372008, 0.1476718634, -0.093931675, 0.0690900609, -0.1891066879, 0.1402491182, 0.1150690317, 0.3248268962, -0.052656617, -0.4338489175, 0.0160555448, 0.2450485379, 0.4278887212, 0.0615985915, -0.0518304221, 0.3103211224, 0.0966809914, -0.2166442722, -0.332929194, -0.0375642255, 0.1061588004, -0.3284879327, -0.1916384846, -0.02861006, 0.1814015508, -0.0039089932, 0.0155871715, 0.5066564679, 0.073046267, 0.0751549006, -0.0834585428, 0.1962543428, -0.0521300845, -0.1202241629, -0.1189233959, -0.0935665593, 0.0853727981, -0.0516477935, 0.1604620069, 0.0839664191, -0.1486921012, -0.0939611942, 0.6276284456, 0.066133365, 0.4066179395, -0.1278576404, -0.253084898, 0.1469340771, 0.0753541663, 0.0935161412, 0.3560036421, 0.309184581, -0.1741830856, -0.012002632, -0.1699138284, 0.0200339202, 0.0936975554, -0.0300577246, 0.3375006616, -0.0191667695, 0.326565057, 0.0025228276, -0.3129945993, 0.1154984683, 0.0383162536, 0.1894647479, -0.3931485116, 0.1806956828, -0.3155397177, -0.1539050788, 0.0592735447, -0.1398235261, -0.0421994813, -0.2707495987, -0.085526906, 0.1815255284, 0.0589705072, 0.264362663, 0.1597475857, -0.0327072591, 0.0847381577, -0.0655731633, -0.102235347, -0.2201068252, -0.1743910462, 0.1428499222, 0.1274092495, 0.2078600228, 0.2995347381, -0.1425538957, 0.0480940603, 0.0138055841, -0.3602250516, 0.0857338384, -0.1215342283, 0.4401930273, 0.3425597847, 0.0728836656, -0.2368693203, 0.0173933227, 0.3619660437, -0.3473314047, -0.108051084, 0.3983776271, -0.1979978234, 0.0502504855, -0.2161714584, -0.3248876333, -0.510535121, -0.318955183, 0.1311067194, -0.0294710808, 0.0872791484, 0.3062438071, 0.2281634808, 0.450894624, -0.052571062, 0.0395837203, -0.1739951223, -0.0077805598, 0.3531797528, -0.0148417056, -0.3720351756, 0.0079913763, -0.1651002616, 0.1313911527, -0.0117581366, -0.1790904701, -0.5396494269, -0.1400610059, 0.288399756, 0.0229437444, -0.0957489237, 0.3742546439, 0.0539732315, -0.1510512084, -0.1974764913, -0.082263872, 0.0317742862, 0.3172571063, 0.0219645612, -0.069488965, 0.2908799648, 0.0552209876, 0.2811395824, -0.113323316, -0.2513748407, 0.4198065102, -0.2915056348, 0.2461425811, -0.0716580451, -0.4766027927, -0.0776230395, -0.0555009358, -0.0022872451, -0.0360607766, -0.2989491224, -0.2200709581, -0.297008574, -0.1219761595, -0.3595552146, -0.1541765779, 0.0609147735, 0.089118734, 0.0558054894, 0.1404543817, 0.155065909, -0.3061159551, 0.0088768518, 0.0000187792, 0.1075965613, 0.0372078121, -0.2144530863, -0.2214943469, -0.2509330511, -0.2910080254, 0.3232398033, 0.0477950834, -0.0251004752, -0.1071845666, -0.1048598811, 0.084771201, -0.054349944, 0.6767696738, -0.1964523345, 0.0710406229, 0.4911931157, 0.2105484456, -0.432089746, 0.02492279, -0.4132964909, 0.1125910804, 0.1601796597, 0.3240831196, -0.3951091766, -0.0542449914, 0.2625240684, -0.0359851383, -0.0594216958, -0.269669354, -0.2357648313, -0.2557882369, -0.1077657789, 0.1962948442, 0.0353272893, 0.4339828193, -0.2649331689, -0.1105708033, -0.2390617579, 0.0428951569, 0.1868531257, 0.2545810938, 0.2625078559, -0.1614429355, -0.1597974896, -0.1762635708, 0.058802031, 0.2780003548, 0.2882107198, 0.0445406772, -0.4137676656, 0.0157187078, 0.0581392795, 0.2611902654, 0.0464258008, -0.1333332211, -0.0307984203, -0.0403293222, 0.0974305719, 0.1435642242, 0.2177045345, 0.386084348, 0.059595976, -0.3346404433, -0.2437654287, 0.3455174267, 0.1484420449, 0.0505361073, 0.0170092452, 0.2781257927, -0.2117078453, 0.2881139517, -0.0201545823, 1.0111832619, 0.0690524206, -0.0597921535, 0.5816109776, -0.0952846482, 0.5560985208, -0.0648017898, 0.1861322969, -0.2962427735, -0.3566812873, -0.0365724601, -0.1678650081, 0.2394370884, 0.0646672547, -0.6077862382, 0.2306772918, -0.2865700722, 0.1413257867, 0.037199948, -0.0313408002, -0.0069267428, -0.0241819527, -0.3856900334, 0.2118214965, -0.1228692979, 0.1014267579, -0.0845644027, -0.10637898, -0.1233802363, -0.1591433734, -0.1048097834, 0.0431123562, -0.5134391785, -0.1531040519, 0.0520422086, -0.1772312224, -0.0729138181, 0.1872905791, 0.0402178206, 0.0775228292, -0.1871171445, 0.1700199097, 0.1999508739, 0.0999664664, -0.0692627802, -0.0332883447, 0.4308818877, -0.0916927382, -0.3986715674, 0.1275028139, -0.0470685437, 0.1355867386, 0.3548524976, 0.0182911213, -0.0207855981, -0.4515144229, -0.0984330326, -0.1435841471, 0.2059473395, -0.3068613708, 0.2612115443, -0.0072328709, -0.1372915208, 0.0108396858, -0.0357730947, -0.018511625, -0.0398774929, 0.3423734009, 0.3180928528, 0.4484286904, 0.2465310693, 0.2419533879, -0.1212224513, -0.3200915158, 0.1532203853, 0.230802089, -0.4224052429, 0.2418849766, 0.2260043472, -0.1214663088, -0.053419821, 0.4723202586, 0.0875411034, 0.1689212471, -0.1257396638, -0.148903504, -0.2344330549, 0.3241607547, 0.1022827998, 0.0040802173, 0.1147460192, 0.4286702871, 0.2379003763, 0.017730521, -0.4440496266, -0.0286853164, -0.4677805901, 0.070526503, -0.0260700732, -0.2602921128, 0.2004087865, -0.0038485706, 0.2606965303, 0.1246233732, -0.0757152289, -0.3621689975, -0.1629702449, 0.0902142152, -0.002169311, 0.1705976725, 0.1876295209, 0.0336485803, -0.230336979, -0.1281399429, 0.0921760574, -0.055329401, -0.1467017829, 0.21817936, 0.2054448128, 0.3228447139, 0.0179912299, -0.0136706028, 0.0152384248, -0.0924621522, -0.0348306708, -0.0050635072, 0.1245716438, -0.0292172786, -0.0914055929, -0.0829483122, 0.1921166331, 0.1356510073, 0.0203486923, -0.2578234971, -0.2741311491, -0.1145555899, 0.2158735543, 0.1211166307, -0.1575217694, 0.1765080243, -0.0109323282, 0.3513850868, -0.3763158917, -0.0102533428, 0.2301227152, -0.0349603593, 0.2269831598, 0.0463015363, -0.2856045365, 0.3148671389, -0.2031256407, 0.090680182, 0.2280460447, -0.0443477929, 0.1081102192, 0.2768344283, -0.1694982648, -0.0334678218, 0.4123375118, 0.070386678, 0.1482765526, 0.02117116, 0.0128191616, 0.1463374197, -0.0221673734, 0.0858672485, 0.3090984523, -0.3254109621, 0.0323023833, 0.2096980363, 0.0278553236, -0.0797003284, -0.2609014511, 0.516067028, -0.2635023892, -0.1445791423, -0.3344384432, 0.1385084242, -0.200316295, 0.0369850062, -0.2015442103, -0.1111779511, -0.1869933307, -0.3066197634, 0.0259554833, -0.0909686759, 0.2416601479, -0.0493581742, -0.0289359875, -0.2844852209, -0.0523675457, 0.3596524894, 0.2271602452, -0.20385921, 0.1030545309, 0.0247038733, 0.1235098615, -0.1864320636, 0.5136396885, 0.4270206392, 0.2857337296, -0.1543841809, -0.0936766863, 0.0345495343, -0.3090969026, 0.0706597194, 0.0969653726, 0.2919444442, 0.2387932241, 0.0644041747, 0.2788921297, -0.283341378, 0.1762279719, -0.0601931773, 0.0752444565, -0.3707785904, 0.3305317461, -0.1943280846, -0.1633215249, -0.1663211137, -0.0086910268, -0.4805711806, 0.1700413376, 0.3345673084, 0.1505533755, 0.18274571, -0.1898440421, 0.1426260471, -0.2063407302, 0.2242961377, -0.0433819778, 0.3339892626, -0.279900521, 0.1178943589, -0.4362550676, 0.3936928809, -0.0448485799, -0.0489642657, 0.0756321251, -0.0840160921, -0.1616720408, 0.0349483863, -0.0744248405, 0.2408670038, 0.1278519928, 0.0993816927, -0.6071122885, -0.199648127, -0.1119104177, -0.2307693958, 0.1361706406, -0.2414505482, -0.047243461, -0.1864420474, 0.1147017404, 0.0427970104, -0.3028406501, 0.1948673278, 0.2954314947, 0.6067336798, 0.1576177031, 0.4007611871, -0.013851488, 0.0997695774, 0.0633205548, -0.2700609863, -0.1527519971, 0.1926423162, 0.1350933015, 0.3505522013, 0.0757688209, 0.232017532, -0.0688422769, 0.0777027383, 0.0588588454, -0.124382481, -0.1221504211, 0.163699314, -0.1173157468, -0.2261742949, -0.255618602, 0.0282795932, 0.0752818286, 0.0470450297, -0.0877219141, -0.2791985869, 0.670065105, -0.3341488242, -0.2696869671, -0.0509191118, 0.2001962513, 0.2284435928, -0.2409944087, -0.6293930411, -0.0089962306, 0.4204948246, 0.0220112894, -0.2528333664, 0.2136524618, -0.0641363934, 0.1553049386, -0.0634708256, 0.0211865623, -0.1120157316, -0.0563756153, 0.047504697, -0.2333326787 ]
https://github.com/huggingface/datasets/issues/2869
TypeError: 'NoneType' object is not callable
> Hi, @Chenfei-Kang. > > I'm sorry, but I'm not able to reproduce your bug: > > ```python > from datasets import load_dataset > > ds = load_dataset("glue", 'cola') > ds > ``` > > ``` > DatasetDict({ > train: Dataset({ > features: ['sentence', 'label', 'idx'], > num_rows: 8551 > }) > validation: Dataset({ > features: ['sentence', 'label', 'idx'], > num_rows: 1043 > }) > test: Dataset({ > features: ['sentence', 'label', 'idx'], > num_rows: 1063 > }) > }) > ``` > > Could you please give more details and environment info (platform, PyArrow version)? Sorry to reply you so late. platform: pycharm 2021 + anaconda with python 3.7 PyArrow version: 5.0.0 huggingface-hub: 0.0.16 datasets: 1.9.0
## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: - Python version: 3.7 - PyArrow version:
116
TypeError: 'NoneType' object is not callable ## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: - Python version: 3.7 - PyArrow version: > Hi, @Chenfei-Kang. > > I'm sorry, but I'm not able to reproduce your bug: > > ```python > from datasets import load_dataset > > ds = load_dataset("glue", 'cola') > ds > ``` > > ``` > DatasetDict({ > train: Dataset({ > features: ['sentence', 'label', 'idx'], > num_rows: 8551 > }) > validation: Dataset({ > features: ['sentence', 'label', 'idx'], > num_rows: 1043 > }) > test: Dataset({ > features: ['sentence', 'label', 'idx'], > num_rows: 1063 > }) > }) > ``` > > Could you please give more details and environment info (platform, PyArrow version)? Sorry to reply you so late. platform: pycharm 2021 + anaconda with python 3.7 PyArrow version: 5.0.0 huggingface-hub: 0.0.16 datasets: 1.9.0
[ -0.0170860495, -0.3240526319, 0.062121436, 0.2103672326, 0.3840116858, -0.0155181745, 0.415794313, 0.1785911471, 0.1879396886, 0.3116176724, -0.2562711835, 0.2617366314, -0.0900785625, 0.1555979401, 0.134646982, -0.1783233583, -0.1780708879, 0.2362426817, -0.1429384202, -0.0610416606, -0.307266444, 0.016021125, -0.2765933871, 0.1563270539, -0.3710355163, -0.2232295871, -0.0727495775, -0.0337860063, -0.3516702652, -0.3736093938, 0.3502697647, -0.0149404071, 0.1077515855, 0.3936695755, -0.000109273, 0.039748542, 0.5531897545, 0.0916725695, -0.1215192825, -0.486445725, 0.0033005883, -0.153592959, 0.2640893161, -0.2971876264, -0.2491431981, -0.1678692102, -0.0046053282, 0.1546724737, 0.3977606893, 0.5068286061, 0.2735918462, 0.5179857016, 0.1557451636, -0.3057215512, 0.2476199716, 0.1295629144, -0.0830335468, 0.3645498157, 0.0868025422, 0.0324823782, 0.2476591766, 0.22567074, -0.2615945935, -0.1020329148, 0.2481998503, 0.0714492425, 0.0565817356, -0.3359338641, -0.0874417275, 0.3458363712, 0.2176503092, -0.4307984114, -0.2740110457, -0.0156725049, 0.1589335203, -0.2778740823, 0.2152642608, 0.1117749512, -0.0614302717, 0.2610106766, -0.0477596298, 0.2916436493, -0.2724869251, 0.2264740765, 0.0332289934, 0.0998286605, -0.0974352807, 0.0864828005, 0.3184731901, -0.1978602111, -0.0712477863, -0.0744847059, 0.0765407234, 0.1997876465, -0.2625720799, -0.1569988281, 0.0412150547, -0.0527565517, 0.2478982806, -0.0623121895, 0.010698121, -0.0784372389, 0.0866332129, 0.3945228755, 0.1457946301, 0.3695580363, 0.2746926844, 0.0596430153, 0.147126019, 0.2683903873, -0.1179920584, 0.0550732911, -0.1812906712, -0.0505757257, 0.2737024724, 0.1010781154, 0.4157111049, -0.0123857539, -0.3835292757, -0.0340619497, -0.249388665, 0.2141660452, 0.2170223594, 0.4983271658, -0.1098527387, -0.006581971, 0.1920767128, 0.1782709658, -0.1211596727, -0.1304862946, -0.2357181609, 0.34223032, -0.3215116858, -0.0617322512, 0.2265961319, 0.0308971405, 0.0039272024, -0.0047287471, 0.0682608932, -0.0418036729, -0.0186945554, -0.3479027152, -0.0821475908, 0.2535481453, 0.032342352, -0.0685248151, 0.2264001071, -0.410043478, -0.0981175676, 0.1309780478, -0.0746355355, -0.1795981675, -0.2304216176, 0.2343917638, -0.2560875714, -0.0213031564, -0.0934348702, 0.0212540068, 0.1447509378, 0.1013658345, 0.1272418797, -0.0190788247, 0.0178890768, -0.2180711776, 0.1380720735, 0.3654916883, -0.100190863, -0.3205661774, 0.0321522094, -0.0025296691, 0.1171867996, -0.0173707716, 0.0019335701, 0.2421703041, -0.0305478908, 0.1668857634, 0.4985628724, -0.62414819, -0.3442799449, -0.2747382522, -0.0806370825, -0.0161460973, 0.0393288732, -0.2286882102, 0.1914647818, 0.2106938213, 0.4453007579, 0.1527808011, 0.1522087157, 0.0167638846, -0.2598265111, -0.2841210067, -0.1492304802, 0.1216640398, 0.0572228469, -0.0611823201, -0.1246782616, -0.3315826058, 0.0439961776, -0.1464243233, -0.0947787762, -0.0285352468, 0.4802513719, -0.0267939679, -0.0334615521, -0.5103312731, -0.3110117316, 0.1444107145, -0.0827431381, 0.4963111877, -0.2935872972, -0.2401018441, -0.3797984123, 0.0216788147, -0.0260307416, -0.1073646471, 0.2608529925, -0.0292999409, -0.0793902054, 0.2039854974, -0.148156628, 0.3061811626, -0.0629678369, 0.3361934423, -0.0899120644, 0.2520775199, -0.0519085974, -0.4535894096, 0.0178125389, 0.3152451813, 0.407485038, 0.0184305087, 0.0400744975, 0.2059644312, 0.120073542, -0.2516606152, -0.3879702389, -0.2059795707, 0.0908953026, -0.2052687109, -0.1253317297, -0.1193971634, 0.1875582188, 0.043237146, 0.0816024616, 0.4845341146, 0.0002889726, 0.1447360814, -0.0010887757, 0.2192268968, 0.0464254729, -0.2223508209, -0.1943704933, -0.1116545573, 0.1098374575, 0.0302241202, 0.2480703294, 0.0179758705, -0.1454162598, 0.0168016292, 0.6618235111, 0.0420250148, 0.258257091, -0.1182069257, -0.3660911322, 0.2513479888, 0.1739427298, 0.087606214, 0.3652841747, 0.2524144948, -0.2956422269, 0.0845419914, -0.1635932028, 0.0505567454, 0.0976488069, -0.0679601654, 0.3684989512, -0.0912532359, 0.3075386584, 0.0185329355, -0.3090053499, 0.0744575188, -0.0793073252, 0.1062876061, -0.3757323921, 0.1150494143, -0.2569516301, -0.1478515416, -0.0088819563, -0.133373037, 0.0266572647, -0.1974048913, -0.0598685481, 0.3584897518, 0.0893847048, 0.282640487, 0.2069196403, 0.0192367453, -0.0590613931, -0.1030487418, -0.1551313996, -0.108617492, -0.11700131, 0.0823388919, 0.0588655174, 0.1915499568, 0.3331587911, -0.3143273294, 0.0909607261, 0.1370236278, -0.3026359379, 0.0858223662, -0.1740436107, 0.2888210118, 0.2684489191, 0.1589440256, -0.1759042591, -0.0624604672, 0.4340486825, -0.3824962378, -0.192428574, 0.2827731073, -0.1414361447, -0.0550831221, -0.2623379529, -0.2640984952, -0.5197219253, -0.2946316004, 0.2550328076, 0.0227000788, 0.0717564151, 0.3472696841, 0.234048292, 0.452318579, -0.3834219277, -0.0229388513, -0.1441199481, 0.0412894003, 0.2728778422, -0.0820257813, -0.4259680212, -0.0077680945, -0.0855097622, 0.2539603114, -0.1286979169, -0.0568948649, -0.4479478002, -0.1266304255, 0.3238252997, 0.0086144321, -0.1531503648, 0.6029988527, 0.0156400762, -0.1078105569, -0.1583341658, -0.1767390072, 0.1045932546, 0.1382757425, 0.0056557627, -0.0700706616, 0.2453286648, -0.0265153348, 0.351564467, -0.0049929833, -0.2051898241, 0.3471206427, -0.304443121, 0.3146957457, -0.1218410507, -0.5708717108, -0.0727783665, -0.0265240464, 0.0520668849, -0.1330883354, -0.2462659478, -0.0897768289, -0.3285742104, -0.1738543063, -0.4415084422, -0.2324540317, 0.0581631921, 0.1306092143, -0.0827693418, 0.0958863199, 0.0774856657, -0.3568073511, 0.0563106313, -0.0132170403, 0.212240696, 0.0356143676, -0.1878067106, -0.4234542251, -0.2692607045, -0.3553898036, 0.3830406666, 0.0468409471, 0.0110894823, -0.0506009758, -0.1024787277, 0.1410767138, 0.0076352716, 0.6806127429, -0.0301307887, -0.0055903825, 0.416000694, 0.1417528987, -0.6230165362, 0.0706069246, -0.3021711707, 0.0531921424, 0.1227650046, 0.3985318244, -0.4662339985, -0.1559689939, 0.3363058567, -0.0372493379, -0.0328230187, -0.2179400921, -0.2882821262, -0.3978614211, -0.213686794, 0.1251843274, 0.1448903382, 0.3859930634, -0.225021705, -0.1091162786, -0.124067463, 0.0948003605, 0.0340228826, 0.2724271715, 0.2362679839, -0.228084147, -0.095412448, 0.0113189863, 0.0838170201, 0.2514652312, 0.2685821652, -0.0433206074, -0.5514891148, -0.1514342278, 0.1056525484, 0.2161636204, 0.0786006078, -0.1357617527, 0.0079719489, -0.0911873356, 0.1339932978, 0.2157751322, 0.1181629151, 0.4902128577, 0.169891879, -0.2991678119, -0.191720441, 0.452149719, 0.1290634274, 0.0447196178, 0.1472747773, 0.4835731387, -0.169077903, 0.2779710591, -0.1196076274, 1.0848121643, -0.0030835283, -0.005263906, 0.5609253645, -0.1063345298, 0.6737447977, 0.0900183097, 0.2337673157, -0.36399436, -0.1940107197, -0.0178164672, -0.1334923059, 0.2924979925, -0.0650964603, -0.5087834001, 0.1753665209, -0.2362163216, 0.1639979631, 0.0437814966, 0.0470250808, -0.1116012633, -0.1634422541, -0.319111824, 0.1553267986, -0.0189958215, 0.2381698191, -0.0293426774, -0.1032173112, -0.2884888649, -0.2500365078, -0.1799219549, 0.0486413091, -0.4893500209, -0.2644637525, 0.2028944343, -0.1735015661, -0.2620542645, 0.035055887, 0.1736058295, 0.0271786191, -0.2295172513, 0.085042268, -0.0116313575, -0.0057277782, -0.0612283163, -0.1201168895, 0.4516772926, -0.1806232482, -0.5559980273, -0.0021970393, 0.0283423346, 0.1189502105, 0.3397734463, 0.0533939674, -0.0720781907, -0.3765566647, -0.1956294924, -0.0863566697, 0.2171403468, -0.2849394381, 0.215872243, -0.0756182298, -0.1748709828, -0.0020164615, -0.0216978751, -0.0546836369, 0.0181161389, 0.3995351791, 0.2500368953, 0.3563725352, 0.2536879778, 0.1453519017, -0.1277043223, -0.2788094282, 0.0454512127, 0.2644447982, -0.5634872317, 0.1480279118, 0.2177876085, -0.1283232868, -0.0758905932, 0.4255404174, 0.0340973884, 0.0199873578, -0.1081608087, -0.1711105853, -0.2474561185, 0.4519791007, -0.0532878414, -0.053389363, 0.2934162915, 0.5443694592, 0.2228721976, 0.0077437623, -0.4028413296, 0.025847666, -0.3943938017, 0.0516046882, 0.0506236702, -0.2735677063, 0.2741547823, -0.0607873648, 0.2235942632, 0.2008981258, -0.0648372918, -0.3292416632, -0.1574597955, 0.1020702645, 0.0132466042, 0.1558352858, 0.1404897571, 0.0429231934, -0.1865489632, -0.1436392814, 0.1646613628, -0.0484871604, -0.0519672707, 0.2371664941, 0.1691443026, 0.3118648231, 0.0495464392, 0.0909304991, -0.0028736435, -0.1294036061, -0.0817828923, 0.0178820342, 0.0095177591, 0.0264174677, -0.0565491654, -0.1073949337, 0.1240915209, 0.1748039126, 0.0907406211, -0.2451831847, -0.3529208899, -0.2803744972, 0.1817104667, 0.1533816606, -0.1543813348, 0.1704663485, -0.0670958683, 0.2948552966, -0.4210546017, 0.0239637289, 0.2194127142, -0.0067794458, 0.179174453, 0.1512840837, -0.2732408047, 0.2063111812, -0.0471630208, 0.0283583831, 0.4666559994, 0.0181072932, 0.0889500454, 0.2631120682, -0.1317112595, -0.0344259217, 0.4894234538, 0.1561266631, 0.2242719233, -0.0069709676, -0.0884023011, 0.2236964554, -0.1240096763, 0.074921973, 0.2926060557, -0.216833517, -0.0012596183, 0.1987000406, 0.0942938253, -0.127527684, -0.3349516094, 0.5498442054, -0.2395892292, -0.2107713521, -0.1777208298, 0.1950450093, -0.2097447366, -0.0012295916, -0.1400179267, -0.0810490996, -0.1268614382, -0.4116225243, 0.0561529286, -0.1514625102, 0.4862962961, -0.1211124882, -0.0871192738, -0.2842113078, -0.2175373286, 0.408749193, 0.3050468564, -0.154292956, 0.1880830228, 0.0706383362, 0.1759784222, -0.2439061552, 0.5857952833, 0.4205303788, 0.2032050192, -0.0877042264, -0.0394125432, -0.0987181142, -0.3073500991, 0.0758499652, 0.1601038575, 0.3437224329, 0.2210115194, 0.0020970211, 0.2533309758, -0.2443259656, 0.2270522863, -0.1037411615, 0.0440704562, -0.4042601585, 0.3363026083, -0.3260605931, -0.2499150783, -0.3251251876, 0.0070015988, -0.4086143374, 0.1709913462, 0.3403113782, 0.0040550446, 0.1531253904, -0.3124785423, 0.1025997922, -0.1237484664, 0.287279129, -0.0421427861, 0.2992600203, -0.1812504232, 0.0731786937, -0.4249604642, 0.395984292, -0.1252929121, -0.112262547, 0.0873513669, -0.1618833095, -0.1488880217, 0.0399846993, 0.0557344407, 0.4386814237, 0.056703303, -0.059051577, -0.5389719605, -0.1532924324, -0.1344299763, -0.2273552269, 0.2009892464, -0.2520205975, 0.0800778195, -0.1442407817, 0.0637667999, 0.0295061786, -0.0963596702, 0.1442123055, 0.0670828372, 0.6210793257, 0.1881039739, 0.3392416537, -0.0430545397, -0.0689965189, 0.0249925554, -0.174067378, -0.2406356484, 0.2803048193, 0.2160280198, 0.2756659687, 0.0625708327, 0.0870543271, -0.0475448668, 0.1085865125, 0.0825032964, -0.2264692187, -0.0616678037, 0.119794324, -0.0202589016, -0.2373049855, -0.1996346414, 0.0610714257, 0.005293489, 0.0769687742, -0.2243449986, -0.2481006831, 0.7152537704, -0.2563150823, -0.2637996078, 0.055393666, 0.2930933833, 0.1165040582, -0.4328460097, -0.7834493518, 0.0166447517, 0.2939421535, 0.083926104, -0.2240283042, 0.2948251665, 0.0100844931, 0.0482179038, -0.0746177435, 0.1352374554, 0.0407708175, -0.0168586764, 0.0712476522, -0.2007396221 ]
https://github.com/huggingface/datasets/issues/2869
TypeError: 'NoneType' object is not callable
- For the platform, we need to know the operating system of your machine. Could you please run the command `datasets-cli env` and copy-and-paste its output below? - In relation with the error, you just gave us the error type and message (`TypeError: 'NoneType' object is not callable`). Could you please copy-paste the complete stack trace, so that we know exactly which part of the code threw the error?
## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: - Python version: 3.7 - PyArrow version:
69
TypeError: 'NoneType' object is not callable ## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: - Python version: 3.7 - PyArrow version: - For the platform, we need to know the operating system of your machine. Could you please run the command `datasets-cli env` and copy-and-paste its output below? - In relation with the error, you just gave us the error type and message (`TypeError: 'NoneType' object is not callable`). Could you please copy-paste the complete stack trace, so that we know exactly which part of the code threw the error?
[ -0.2277715802, -0.3193501234, 0.0008596373, 0.3918522596, 0.3677237034, 0.0557456017, 0.3176339269, 0.1545283645, 0.1733444631, 0.2960280478, -0.1426855326, 0.4552958608, -0.0776570067, 0.2298437357, 0.0493332893, -0.1651720107, -0.2105034888, 0.2611335516, -0.1191705689, 0.0262278002, -0.5092200041, -0.0741478875, -0.1640852094, 0.1349925548, -0.237754494, -0.2719812989, -0.1240942478, 0.0408258066, -0.1921427697, -0.2838498354, 0.3645710647, -0.0801881999, 0.2122620046, 0.5988925099, -0.0001008489, -0.1514540613, 0.435205698, 0.0475999489, -0.1254921108, -0.3523042202, -0.2946639061, -0.3847207725, 0.18985717, -0.3827019334, -0.0743031427, -0.0082017854, 0.0286093634, -0.2426373065, 0.3481251895, 0.3484524488, 0.3506994545, 0.415902108, 0.0833576843, -0.2823812366, 0.1884763539, 0.0775724575, -0.1048533171, 0.2966803014, 0.0623726882, -0.0164799206, 0.3145338893, 0.1602044255, -0.2830132842, -0.0542992242, 0.2551215291, 0.0645872205, -0.0053246845, -0.3559243679, 0.0310364459, 0.3066703379, 0.4195721149, -0.3946249187, -0.1872214228, 0.0607764684, 0.1299087554, -0.2234973758, 0.1539727449, -0.0115599288, -0.0064773369, 0.0658862591, -0.0040367073, 0.1557925344, -0.236804232, 0.2183835655, -0.1664240062, 0.0901961327, -0.2121003419, 0.107063584, 0.0670970306, -0.1992394775, 0.0452290624, -0.1839859337, 0.0351355337, 0.1096044704, -0.221126616, -0.1452792883, 0.1299011409, 0.1111679673, 0.1270107031, -0.2455778271, 0.1168725938, -0.0483121127, -0.0236970503, 0.4071713388, 0.239894405, 0.2160654962, 0.197072491, 0.1496332735, 0.2160288244, 0.0441346094, -0.1853791922, -0.0519746169, -0.1255763024, -0.1014563665, 0.2814617455, 0.1962061971, 0.5696896911, -0.0633770376, -0.4451116025, -0.0369891338, -0.207089901, 0.0923674777, 0.2541407347, 0.3783914447, -0.1840863526, 0.1531827301, 0.2149179727, 0.0695832223, -0.1426405609, -0.2327828705, -0.2402686328, 0.3336758912, -0.2726967335, -0.232448265, 0.0732233152, 0.0800087824, -0.1016519293, 0.0515346751, -0.0466053039, 0.0736266375, 0.1052564383, -0.382973969, -0.1715993732, 0.1613502353, 0.1342369616, -0.0109220734, 0.3575491905, -0.413230598, -0.1455421895, 0.1080859974, -0.3179209232, -0.0927535221, -0.0903914943, 0.3212557733, -0.2362898439, -0.079209581, -0.1951911002, -0.0047342735, 0.0772167519, -0.2021209151, 0.0243879221, -0.1612926275, 0.0099704852, -0.4124752581, 0.0396714061, 0.5434519649, -0.3702253997, -0.131931603, -0.3560011387, -0.0526704639, 0.3650825024, -0.1617242545, 0.0869184732, 0.2049263865, -0.1619556099, -0.0783798695, 0.5953560472, -0.3626013696, -0.1942619234, 0.0556299053, -0.079251498, -0.0580402203, -0.067448847, -0.0140706375, 0.0950176865, 0.1139309034, 0.4095413983, 0.2211544514, -0.0633310452, -0.027870506, -0.1950395554, -0.1733900309, 0.1649025828, 0.0918372497, 0.1436722875, 0.1626258194, 0.0630830303, -0.2037843466, 0.0184938218, -0.0397915058, -0.09291742, -0.0652414113, 0.6565243602, -0.0872236714, -0.0788739324, -0.5945641994, -0.3253455162, 0.1684785038, -0.0677354112, 0.2807234824, -0.1447329372, -0.1707682014, -0.3664011657, 0.0677765012, -0.0498286709, 0.0480884425, 0.34265396, 0.1271567047, -0.1998722106, 0.0451182313, -0.1443472803, 0.1779200137, -0.1498600394, 0.1019958928, -0.0057357312, 0.3032817245, -0.0105569726, -0.3550938368, 0.0437213145, 0.2375442684, 0.5392077565, 0.0301111341, -0.0714498162, 0.2961714268, 0.0839738399, -0.1378158778, -0.1490661353, -0.0828541517, 0.1191909611, -0.2615092099, 0.0761332735, 0.113510862, 0.341347903, -0.0806762725, 0.1379154474, 0.550291419, 0.070542492, 0.218250677, -0.0425794087, 0.2359925807, -0.0458750986, -0.0404749922, -0.09132009, -0.1391232908, 0.1310136467, 0.0969333351, 0.1783950478, -0.0640903935, -0.1166954562, 0.0628789961, 0.5675632358, 0.0985855833, 0.3846487105, -0.0710379705, -0.3002262712, 0.1548450738, 0.0890177488, 0.2822793424, 0.4458229542, 0.3082370758, -0.1348168105, 0.0028449628, -0.105473116, 0.0909257606, 0.069577001, -0.008273948, 0.2112074643, -0.0183985941, 0.1782516539, 0.0799446777, -0.1778929234, -0.0452206172, -0.2235442847, 0.2644327581, -0.3588179946, 0.1916420162, -0.2675382495, -0.1693612486, 0.0416815057, -0.0662412271, -0.1583892852, -0.343996793, -0.2322412729, 0.0256404057, 0.1133051515, 0.1315740049, 0.114424713, 0.1559722424, 0.0080657853, 0.0855939835, -0.1656484157, -0.1026751921, -0.1289932728, 0.1639403254, 0.1211261749, 0.2124070823, 0.4851669073, -0.2281131297, 0.2450820208, -0.0264441986, -0.227994293, 0.0638851374, -0.0960038304, 0.4924280643, 0.4533854723, 0.170710057, -0.0828904957, -0.0167101845, 0.3197818995, -0.3656996191, 0.0297314506, 0.2110722065, -0.2212308943, 0.1077203006, -0.1586056501, -0.1741414219, -0.5684420466, -0.4111053944, 0.1035611331, 0.1680119336, 0.1657065153, 0.1624201983, 0.1247417033, 0.5334134102, 0.1375749111, 0.1933974028, -0.195846498, -0.0487356074, 0.2836108506, -0.122860238, -0.2586844563, 0.1470841169, -0.1050434485, 0.2065625638, 0.0155344047, -0.1752419621, -0.5393431783, -0.1731456071, 0.1546034515, -0.0829334036, 0.0919005796, 0.2602021098, 0.1155401021, -0.1390545517, -0.2339776456, -0.1428654939, -0.1661490351, 0.2557976246, 0.0672933385, 0.0401755236, 0.3397756815, -0.178367734, 0.1294477135, 0.0065674935, -0.2346490473, 0.3460306227, -0.2629454136, 0.3489436209, -0.1248321906, -0.5024338961, -0.1444402039, 0.0058216783, -0.0900051892, -0.0492299162, -0.1613157392, -0.1666391939, -0.3757922053, -0.12356738, -0.4473450482, -0.173208639, -0.02683492, 0.213281557, 0.0196586438, -0.0107808877, 0.1226413622, -0.4682358205, 0.0489344634, -0.0516467467, 0.2382136434, 0.0197485723, -0.2432868481, -0.2479406893, -0.3090171814, -0.1854937226, 0.4490612149, -0.1629894227, 0.0337656327, -0.1722394228, -0.0209151395, 0.0463810414, -0.0175552871, 0.5029234886, -0.3419142962, 0.0797719881, 0.4985005856, 0.1387616396, -0.3840284348, 0.1739851683, -0.4070257545, 0.3183746338, 0.1517318189, 0.2837773263, -0.3160907328, -0.0206106473, 0.2402315289, 0.1300393194, -0.1309812963, -0.2083940059, -0.1448206306, -0.2342955619, -0.1278313398, 0.0245009754, -0.0037171121, 0.3006121814, -0.1316144913, -0.1478490233, -0.3589732349, 0.0226067789, 0.2575157881, 0.2095248997, 0.2955670655, -0.0968761295, -0.0735841319, -0.068001546, 0.0821264386, 0.1955122501, 0.274494797, 0.0189455654, -0.391548723, 0.0630288497, 0.0565042421, 0.2511690259, 0.0781225115, -0.1441668868, -0.0535798632, -0.0800635144, 0.1943779588, -0.0523580499, 0.1001058295, 0.2666032314, 0.0928936079, -0.4500440657, -0.3444149792, 0.388646096, 0.191103518, -0.0468111858, 0.2515259981, 0.2554996312, -0.2587035596, 0.2411348969, 0.0585117638, 1.0566794872, 0.0451303609, -0.1790634096, 0.4914720356, -0.1253181845, 0.5688884258, 0.0427971072, 0.0154062081, -0.3378975689, -0.2656220496, -0.0510648116, -0.1546158791, 0.3252924979, -0.0990185961, -0.6059663892, 0.2722361684, -0.4187105596, -0.0113039594, -0.0516176261, -0.1450726092, -0.1615752131, -0.130570069, -0.4006145895, 0.2759853601, -0.1767890304, 0.1705224812, -0.1539548337, -0.0489460118, 0.0174538828, -0.1243231222, -0.1045431644, -0.00681563, -0.4354237616, -0.2015477568, -0.1179327592, -0.1617850065, 0.017373981, 0.1457440257, 0.1715212911, 0.1336825788, -0.2375279218, 0.0901856199, 0.0600658134, 0.0691440105, -0.0843933225, 0.0353280008, 0.2427478284, -0.0197919644, -0.3155231774, 0.1725399643, 0.0347914137, 0.1483977884, 0.3645579815, 0.0996133909, -0.0831791535, -0.3884962499, -0.1447437406, -0.0601997264, 0.2035056949, -0.2569366693, 0.2733273804, 0.1267134398, -0.075365968, 0.1074780077, -0.0244918708, -0.0938684121, -0.0563318618, 0.2750467658, 0.3504133224, 0.2657757103, 0.0927115083, 0.201552093, -0.2149729133, -0.3738940656, 0.2654359341, 0.0770252869, -0.22658512, 0.2399508804, 0.1424390525, -0.0477566309, -0.0740084425, 0.328137219, 0.1060338765, 0.0496939942, -0.1529465616, -0.2888395488, -0.2707046568, 0.2582178116, 0.1262251735, 0.0776324049, -0.0284722429, 0.2088868767, 0.1913177222, -0.0492134839, -0.4822713137, 0.0605647266, -0.3836083114, -0.0870803818, 0.0551759526, -0.0908131376, 0.1894112378, -0.0005163328, 0.2610564232, 0.0888261497, -0.0810422897, -0.3424244523, -0.1005696654, 0.0964426696, 0.0030663002, 0.0352182798, 0.1485673785, -0.1207061037, -0.1707189232, -0.1411678195, 0.0266073775, 0.0593882687, -0.1587965488, 0.1150495261, 0.1243259236, 0.2831470072, 0.0353000462, 0.2056675106, 0.0769665316, -0.0229453649, -0.0435421765, 0.0187972002, 0.0036229359, -0.0640793815, -0.0301972888, 0.0279702153, 0.1451300681, 0.1402733177, 0.1255751401, -0.1008501798, -0.2102200091, 0.0878476053, 0.1658077836, 0.1559677124, -0.141983971, 0.2770460844, -0.0868307948, 0.3664443195, -0.274410367, 0.0608054735, 0.1910197437, -0.1125192195, 0.2319393456, 0.1514575779, -0.3416772187, 0.2574727237, -0.160598442, -0.024174612, 0.3763528764, -0.1595057696, 0.154295519, 0.2322441638, -0.1036700085, -0.0269345958, 0.3910489976, 0.2250012904, 0.089335233, 0.0697669387, -0.1052329168, 0.1659094244, -0.0354886912, 0.0229820106, 0.23917602, -0.4080982804, 0.2459843904, 0.2516362369, -0.0291607659, -0.0656304657, -0.1686448157, 0.2762493193, -0.5681785941, -0.1020831168, -0.3088049889, 0.0113962851, -0.1732568741, 0.1290312707, -0.128262803, -0.1437105089, -0.2699719965, -0.3319649398, 0.0556728579, -0.1790091693, 0.195461601, -0.1371625513, 0.1048784405, -0.1952640265, -0.0611734428, 0.2457263917, 0.1937719285, -0.2082418054, -0.0402503274, -0.0125757577, 0.2360838503, -0.1725241244, 0.5394890308, 0.3954853415, 0.3322067857, -0.1617974192, -0.0274389703, 0.0731182173, -0.2820368111, -0.0603159703, 0.0485493392, 0.0340395607, 0.2409244031, 0.0659549609, 0.3405122161, -0.3197934926, 0.0967679396, -0.0659998953, 0.0167914163, -0.3043793738, 0.4304428101, -0.3063565493, -0.1328262538, -0.1199343801, -0.1177720949, -0.5592741966, 0.0602604449, 0.4006091654, 0.0640409663, 0.1086076871, -0.1182630286, 0.1509963721, -0.1716412604, 0.1180160418, -0.0006215716, 0.3370815516, -0.2615213096, 0.0773840994, -0.4892735481, 0.3647934198, 0.0276360251, -0.1982382685, 0.0315376259, -0.119094789, -0.1470418572, 0.009699991, 0.0401231274, 0.238081336, 0.2386036366, 0.0062592286, -0.5759982467, -0.3410032392, -0.1011373773, -0.2159598768, 0.1086912006, -0.2300252169, -0.0447582565, -0.1500625759, 0.1826710105, -0.0428104773, -0.257914722, 0.0840296447, 0.1191138402, 0.6550236344, 0.1934750229, 0.3989144266, -0.12089663, -0.0226046145, 0.1570947468, -0.3202399313, -0.0817679614, 0.2735521197, 0.1210139245, 0.2002992332, 0.0415458567, 0.1631483734, -0.2030333132, 0.0024250993, 0.0274581667, 0.0585398674, -0.1464440376, 0.3077630401, -0.1645611525, -0.2361537367, -0.2291445434, 0.1095362157, 0.0604569279, 0.1458997875, -0.0198298264, -0.1106984243, 0.624981761, -0.1692866236, -0.2598852217, -0.0570382588, 0.3724466562, 0.0044079828, -0.1203285828, -0.4922212958, 0.003138799, 0.4646417499, -0.0488136932, -0.1663854867, 0.2039655447, -0.1955647022, -0.0195632055, -0.0393957794, 0.1110214889, -0.0188861452, 0.0038260752, 0.2579205334, -0.1187548116 ]
https://github.com/huggingface/datasets/issues/2869
TypeError: 'NoneType' object is not callable
> * For the platform, we need to know the operating system of your machine. Could you please run the command `datasets-cli env` and copy-and-paste its output below? > * In relation with the error, you just gave us the error type and message (`TypeError: 'NoneType' object is not callable`). Could you please copy-paste the complete stack trace, so that we know exactly which part of the code threw the error? 1. For the platform, here are the output: - datasets` version: 1.11.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.7.10 - PyArrow version: 5.0.0 2. For the code and error: ```python from datasets import load_dataset, load_metric dataset = load_dataset("glue", "cola") ``` ```python Traceback (most recent call last): .... .... File "my_file.py", line 2, in <module> dataset = load_dataset("glue", "cola") File "My environments\lib\site-packages\datasets\load.py", line 830, in load_dataset **config_kwargs, File "My environments\lib\site-packages\datasets\load.py", line 710, in load_dataset_builder **config_kwargs, TypeError: 'NoneType' object is not callable ``` Thank you!
## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: - Python version: 3.7 - PyArrow version:
154
TypeError: 'NoneType' object is not callable ## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: - Python version: 3.7 - PyArrow version: > * For the platform, we need to know the operating system of your machine. Could you please run the command `datasets-cli env` and copy-and-paste its output below? > * In relation with the error, you just gave us the error type and message (`TypeError: 'NoneType' object is not callable`). Could you please copy-paste the complete stack trace, so that we know exactly which part of the code threw the error? 1. For the platform, here are the output: - datasets` version: 1.11.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.7.10 - PyArrow version: 5.0.0 2. For the code and error: ```python from datasets import load_dataset, load_metric dataset = load_dataset("glue", "cola") ``` ```python Traceback (most recent call last): .... .... File "my_file.py", line 2, in <module> dataset = load_dataset("glue", "cola") File "My environments\lib\site-packages\datasets\load.py", line 830, in load_dataset **config_kwargs, File "My environments\lib\site-packages\datasets\load.py", line 710, in load_dataset_builder **config_kwargs, TypeError: 'NoneType' object is not callable ``` Thank you!
[ -0.2333926857, -0.2121910155, 0.0151841119, 0.3540363908, 0.431312561, 0.0565467253, 0.4275258183, 0.1668837517, 0.1619586647, 0.2543876767, -0.1491201818, 0.4838864207, -0.032627441, 0.2008449435, 0.1351143867, -0.1875769347, -0.1780486703, 0.1836340725, -0.2075739056, 0.0554907173, -0.530339241, -0.0694576576, -0.131100297, 0.1142207906, -0.165304631, -0.2441832423, -0.1580201536, 0.0987920165, -0.1795856655, -0.3501777351, 0.4064702392, -0.1164285839, 0.2196373641, 0.562065959, -0.0001015193, -0.0459203348, 0.4622377753, 0.0741885006, -0.1826767772, -0.3177576065, -0.2952965498, -0.3818572462, 0.1700716317, -0.3912402391, -0.0481698103, -0.0371986367, -0.0039750608, -0.2519207001, 0.2980602384, 0.3795799315, 0.328802675, 0.4538740516, 0.0911629125, -0.2488764822, 0.1904570758, 0.0910028517, -0.0621268973, 0.3023785055, 0.0538949445, -0.0567670763, 0.2113882601, 0.1328090131, -0.3628790081, -0.0556369275, 0.2719312906, 0.0631388128, 0.0336346067, -0.3873294294, 0.0748671964, 0.3000453711, 0.4482415617, -0.3896304667, -0.2469754517, 0.0235931426, 0.1223488674, -0.1994509548, 0.2123644501, 0.0509505086, 0.0008063291, 0.0616286434, 0.0196442436, 0.1935778111, -0.1930177808, 0.2497536093, -0.1554912627, 0.1598448157, -0.1672741175, 0.1182282194, 0.0708542541, -0.2033922374, 0.049795296, -0.2369977683, 0.007765641, 0.1136214361, -0.2622630298, -0.0578037463, 0.1595869213, 0.1328142434, 0.0924718305, -0.2031244338, 0.0840387568, -0.0385783762, 0.0005321783, 0.3734622598, 0.2657110691, 0.2719011307, 0.2630656064, 0.1053493395, 0.3113079071, 0.0968508199, -0.1035405621, 0.0171599817, -0.1741403788, -0.1962881684, 0.2919623256, 0.27147156, 0.5614536405, -0.0071394164, -0.4003361762, -0.112911351, -0.1762718856, 0.0414780118, 0.1914937347, 0.3488394022, -0.1659963131, 0.1930406094, 0.2003636211, 0.1248331815, -0.2139800191, -0.2602629662, -0.2342291027, 0.277436316, -0.2562621832, -0.1992109269, 0.1157746315, -0.0126312999, -0.0741725713, 0.0112992479, -0.1771455258, 0.1546337306, 0.1403729916, -0.3297455609, -0.1945308298, 0.1805401146, 0.0513517223, 0.0468542874, 0.3396641314, -0.3767827153, -0.1449093074, 0.0857277736, -0.2972788513, -0.1406729817, -0.1555437893, 0.3137725294, -0.203810975, -0.0596022606, -0.2211033255, -0.0271769408, 0.1290350109, -0.1592079401, 0.0224947892, -0.1568120122, -0.0343936272, -0.4068643153, 0.0919899419, 0.6147862673, -0.4071787894, -0.1555482447, -0.3654867709, -0.1499285698, 0.3206854463, -0.2192046493, 0.0420476161, 0.205342114, -0.1884394288, -0.0670418441, 0.5587269068, -0.4109594524, -0.2658071816, 0.071330905, -0.1287924349, -0.0868593082, 0.0406506956, -0.0299981683, 0.0722305849, 0.1137080416, 0.4100970328, 0.275131911, 0.0011142003, 0.0079012448, -0.1864448488, -0.2357116938, 0.1991765499, 0.0649753883, 0.1384467632, 0.1023558527, 0.1406214237, -0.1971790642, 0.0246631335, -0.0487639643, -0.0327245519, -0.057789661, 0.5558087826, -0.0468545221, -0.044843737, -0.5518350005, -0.4227520227, 0.1897544414, -0.0799524039, 0.3541664779, -0.1335036159, -0.1872806996, -0.3264653981, 0.0583028831, -0.1389628798, -0.0200660415, 0.3176531494, 0.1545748264, -0.1688733399, 0.0288684927, -0.0564694032, 0.2119377255, -0.0756313056, 0.0736123845, -0.14293015, 0.3080175817, -0.057636708, -0.3339879513, 0.0377683677, 0.2538016438, 0.5117610097, -0.0004488377, -0.0633197874, 0.3244804144, 0.0866748691, -0.0496543907, -0.1650345176, -0.0999800116, 0.1509415507, -0.2289367616, 0.0971660241, 0.0872650221, 0.3168590069, -0.0662048236, 0.0954951942, 0.4775231183, 0.0889250115, 0.2869647741, -0.0390479192, 0.2417568564, -0.0411586203, -0.0287830383, -0.0849919841, -0.1743532121, 0.0761678517, 0.1894836426, 0.2709217072, -0.0320920832, -0.0377041772, 0.0921959504, 0.5580118299, 0.0443215631, 0.3538882732, -0.0804426596, -0.3818507195, 0.0884140804, 0.1868627965, 0.2703929543, 0.4774660766, 0.3163056076, -0.1177275926, -0.0135746626, -0.0687375143, 0.068971917, 0.0899053961, 0.0000686368, 0.2182746232, 0.0326346494, 0.2071536779, 0.0608280376, -0.2113714963, -0.0529055037, -0.1733764559, 0.2231471837, -0.4077748656, 0.1184415296, -0.3216187358, -0.1545066088, -0.0203860439, 0.0009128465, -0.1665667146, -0.3700627089, -0.2923040688, 0.0090758018, 0.0586140528, 0.1355309337, 0.0729432553, 0.0848084092, 0.0303801391, 0.0038109233, -0.1432915479, -0.1506637037, -0.197236672, 0.1309271753, 0.1724003851, 0.2035219669, 0.4579099715, -0.1723938286, 0.1496831626, -0.0668234155, -0.2592738867, 0.0691069737, -0.0358921215, 0.5192118287, 0.4751577079, 0.1759489179, 0.0373363346, -0.0723712072, 0.3917131424, -0.337565273, -0.0363603607, 0.2813171744, -0.2262491435, 0.1912381798, -0.1627744734, -0.2709549367, -0.5850613117, -0.4314647317, 0.0900498033, 0.1581933945, 0.1574169397, 0.2290733755, 0.1376304924, 0.4989827573, 0.0554460995, 0.173627466, -0.1574210674, -0.0517017953, 0.2869262695, -0.128268525, -0.3188622594, 0.0627037063, -0.1610585004, 0.2123719454, 0.0095064696, -0.2091803849, -0.5421624184, -0.1937738359, 0.248898387, -0.0088543072, 0.1406644732, 0.2820861042, 0.1652371287, -0.171896413, -0.2008978277, -0.1451961696, -0.0958748311, 0.2647386193, 0.003278581, 0.1268489063, 0.3415829241, -0.1613709927, 0.1591750383, 0.0212520342, -0.1993087977, 0.414999783, -0.2640288472, 0.3553538322, -0.1553532481, -0.501110673, -0.1315999925, -0.034155868, 0.0119620711, -0.0257774498, -0.1498845816, -0.1616336107, -0.3645355999, -0.1962905228, -0.4402103126, -0.1943258345, -0.0451902971, 0.199670434, 0.0204199702, -0.0293068476, 0.1270928979, -0.4808782339, 0.0326096974, 0.0426807031, 0.2218273133, -0.0436264426, -0.1767756939, -0.2460242808, -0.2401109934, -0.2647053599, 0.4546621442, -0.158620581, 0.0367192812, -0.1481581628, -0.0604273044, 0.0030126467, -0.0713322535, 0.5519664884, -0.3454786837, 0.167946592, 0.5127314329, 0.1982301772, -0.3972994685, 0.1448308527, -0.3467212319, 0.197871536, 0.0658447966, 0.3129544258, -0.3585754633, -0.0375085883, 0.2515778542, 0.2019121051, -0.129298076, -0.1740512401, -0.1447782964, -0.2503760755, -0.1316992491, -0.058486212, -0.1246138215, 0.3594864011, -0.1265377104, -0.1583637297, -0.3093515933, -0.0301203411, 0.1789499223, 0.1840766668, 0.2802935541, -0.0759279355, -0.0367612876, -0.0464058407, 0.071699515, 0.2319861799, 0.3442593217, -0.0239473321, -0.360599637, 0.0667763501, 0.0140341548, 0.2356529385, 0.0585258938, -0.1843719929, -0.1035960093, -0.0533856153, 0.200205341, -0.1060454622, 0.0749847591, 0.3068714738, 0.0640616715, -0.3982105851, -0.3787680268, 0.4075770378, 0.1482772082, -0.055876337, 0.2646415234, 0.2493728548, -0.3079307079, 0.2636658549, 0.0765032694, 0.9972296357, 0.0634360686, -0.1427229047, 0.5291199684, -0.0992499292, 0.5708351135, 0.0216645449, 0.0737809911, -0.3225640059, -0.2403181046, -0.0621667355, -0.1458812952, 0.3637820482, 0.0177567303, -0.554625988, 0.2570112944, -0.4040381014, 0.0338811316, -0.0993947461, -0.0540791601, -0.168008253, -0.1555937231, -0.4221657813, 0.2615644336, -0.1391600221, 0.1646663249, -0.0964661688, -0.0559898913, 0.0007044189, -0.1505103707, -0.0544889867, 0.0260486845, -0.470529139, -0.092832163, -0.1959897131, -0.1402023137, -0.0150172981, 0.2117722034, 0.1081975773, 0.0798802003, -0.2208486944, 0.074763, 0.1003000066, 0.1113611236, -0.0745936707, 0.0186240617, 0.2860429585, -0.0365927033, -0.3421170413, 0.145158276, -0.0346250087, 0.1750632823, 0.3781581819, 0.0789964721, -0.0583959855, -0.3603264987, -0.1006426886, -0.0581629425, 0.2370610982, -0.2568027377, 0.2513565421, 0.0545558929, -0.0355337635, 0.0711976513, -0.1054593101, -0.0828102529, -0.0973028988, 0.3941631317, 0.2912923396, 0.2772480845, 0.2169934809, 0.2351005822, -0.2244954705, -0.3636664152, 0.2889499366, 0.0990770832, -0.3086126447, 0.198417455, 0.2202891111, -0.0483231917, -0.0357774086, 0.3472393751, 0.0114345681, 0.049836304, -0.1350132227, -0.2807761729, -0.22253865, 0.2674214244, 0.0906429961, 0.0844058841, 0.028326951, 0.1621989608, 0.1774459928, -0.0547243915, -0.451469332, -0.011736189, -0.3375882506, -0.0379747562, 0.1141254455, -0.0688912645, 0.2117233276, 0.0469736308, 0.266826123, -0.027095424, -0.095401898, -0.3234717548, -0.1007948369, 0.1007452458, -0.0319782905, -0.0041054767, 0.2243584841, -0.1309217066, -0.1626257896, -0.1651719809, 0.1755297929, 0.0577325188, -0.1902176887, 0.1038779467, 0.1569740027, 0.2834070921, 0.0430249199, 0.2171774507, -0.0266571995, -0.0581222437, -0.0226649251, 0.0391197726, 0.0156680252, -0.0498561636, -0.0160412788, 0.0438439623, 0.0941356197, 0.1154540554, 0.1023316532, -0.1328705847, -0.2397717088, 0.1010522768, 0.1707957089, 0.1672703177, -0.1169895381, 0.2498272508, -0.0852398649, 0.343233645, -0.3024182916, 0.0496240407, 0.1867102683, -0.1545248628, 0.2260235697, 0.1156060994, -0.3048253357, 0.2245938927, -0.14696531, -0.0125416005, 0.4131203294, -0.1344489008, 0.2140961289, 0.3211934268, -0.0835602805, -0.0166897029, 0.3776884973, 0.1835822165, 0.1086514145, 0.0316770524, -0.0579561144, 0.1470866799, -0.0196429528, 0.0855417624, 0.2414101213, -0.5050227046, 0.2710326314, 0.2405994534, -0.0243101902, -0.1121373996, -0.163989529, 0.3712483943, -0.5745438933, -0.0636712015, -0.3064317703, 0.0594137311, -0.1685567945, 0.1159525663, -0.1114942878, -0.1400388479, -0.256551981, -0.2784867585, 0.06332881, -0.2414887398, 0.2439766079, -0.1118730009, 0.0211273301, -0.2714125514, -0.0401527472, 0.2217802703, 0.1276277751, -0.1941972971, 0.0097096395, 0.0506009683, 0.2041798085, -0.1806842834, 0.552272737, 0.3988933563, 0.3800224066, -0.1354636401, -0.0664787814, 0.1149364188, -0.2638256848, -0.0904527828, 0.0105616841, -0.0362640731, 0.2590774, 0.1043943912, 0.3203140199, -0.3022005558, -0.0068912487, -0.0190034341, 0.0057310155, -0.2694809437, 0.3833438158, -0.2941297293, -0.1339461505, -0.1130259633, -0.0764845833, -0.5723281503, 0.0453014746, 0.4337003529, 0.0553493984, 0.1160499007, -0.1790060252, 0.1447362602, -0.1381019503, 0.1920721382, -0.0137894452, 0.2897506058, -0.266952455, 0.0805813819, -0.5247184038, 0.3150629103, 0.0391136967, -0.1924300641, -0.0284713041, -0.1205905452, -0.1418034434, 0.0033041995, 0.0252633821, 0.2740843296, 0.2506788373, 0.0156387016, -0.544901669, -0.293649137, -0.0416166857, -0.1840641648, 0.0557728298, -0.3411940038, -0.002358932, -0.1740486026, 0.1497212201, 0.0006315968, -0.249928534, 0.1440658867, 0.0977682769, 0.6802558899, 0.1865135878, 0.4030945301, -0.0869980007, -0.0436691344, 0.0363891684, -0.2932219505, -0.1100367904, 0.2340059429, 0.0753232017, 0.2027742267, 0.0346169695, 0.1456870288, -0.2451830357, 0.0854274631, 0.0174441207, 0.1328043193, -0.1475849748, 0.3109081388, -0.1509093344, -0.2978287041, -0.1912623942, 0.0007492236, 0.1050974503, 0.1029956341, -0.069436349, -0.2385252118, 0.5177173018, -0.2855589986, -0.1767610461, -0.0903273001, 0.3520115018, -0.0403811969, -0.1172361895, -0.5067312717, 0.054644987, 0.4887304604, -0.002228745, -0.1500933021, 0.1638828069, -0.2067309022, 0.0215018056, -0.0706165358, 0.0114977323, -0.0409061126, 0.000829379, 0.1980810612, -0.1320041418 ]
https://github.com/huggingface/datasets/issues/2869
TypeError: 'NoneType' object is not callable
For that environment, I am sorry but I can't reproduce the bug: I can load the dataset without any problem.
## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: - Python version: 3.7 - PyArrow version:
20
TypeError: 'NoneType' object is not callable ## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: - Python version: 3.7 - PyArrow version: For that environment, I am sorry but I can't reproduce the bug: I can load the dataset without any problem.
[ -0.2608940005, -0.2007066011, 0.0660000592, 0.400195688, 0.4645994604, 0.0115246382, 0.3240968585, 0.0941318348, 0.1896000355, 0.3001818657, -0.2849094868, 0.4667589068, -0.0366437919, 0.1668581367, 0.0777649358, -0.1253727525, -0.2606472373, 0.2636680901, -0.1777470112, 0.0613667145, -0.5233634114, 0.0231986102, -0.2373635471, 0.0858903304, -0.2768001556, -0.1533993483, -0.0281501114, 0.079713583, -0.2462176234, -0.2805505991, 0.4611611068, -0.0159628261, 0.1640476584, 0.5104134083, -0.0001023479, -0.0184572823, 0.5836995244, 0.0530032516, -0.0761517882, -0.4211900532, -0.2255626768, -0.3977999389, 0.2870038748, -0.3548148572, -0.1275422126, 0.0055780676, 0.0405133776, -0.1819047779, 0.262139827, 0.3204336464, 0.3242153823, 0.5296897888, 0.0114422301, -0.3599714339, 0.1965120882, 0.0808303058, -0.0636900738, 0.3710546196, 0.0265845973, -0.0474929884, 0.2439645529, 0.0870305225, -0.3353538513, 0.0527608916, 0.2847363651, 0.0382548533, 0.0095302081, -0.270170182, 0.0964757726, 0.3694062233, 0.3855828047, -0.382620275, -0.1514433473, 0.1750092059, 0.2239649594, -0.2032708824, 0.211649254, 0.0468775555, 0.0163049828, 0.0907445624, -0.0130718844, 0.1712200791, -0.2445577234, 0.2749375999, -0.2020063251, 0.1065498963, -0.1935495585, 0.1447966695, 0.0849972516, -0.1188601851, 0.0763338953, -0.1345976889, -0.0619969517, 0.0890901908, -0.2083802223, 0.0349296518, 0.1152055487, 0.1535798907, 0.1636114269, -0.2843680978, 0.1018852517, -0.0238335412, 0.0397984199, 0.4501174688, 0.2414609641, 0.1897560805, 0.2724782526, 0.088692598, 0.2660125494, 0.066787757, -0.2417135537, -0.0120890485, -0.1543584764, -0.0610723533, 0.2427943051, 0.1411847323, 0.5124645233, 0.0189152192, -0.4501633942, -0.1742377281, -0.172133401, 0.0913005546, 0.2716411948, 0.4277633727, -0.1526402384, 0.0820783153, 0.1332417876, 0.1743281931, -0.1884514242, -0.2918041646, -0.3183253706, 0.3539678454, -0.2528480887, -0.2349549532, 0.1911386847, 0.0579657778, -0.0449788868, 0.0134671535, -0.0958473086, 0.1027007028, 0.0886686146, -0.2908604145, -0.2310647517, 0.3132710755, 0.2443055063, -0.0628327206, 0.2800607383, -0.4668283463, -0.091596745, 0.2292028666, -0.2898909748, -0.1671735048, -0.0732437372, 0.2667024732, -0.3390546739, -0.0697349459, -0.2441662848, 0.0466724299, 0.0489577651, -0.1566343755, -0.1024087444, -0.0962615982, -0.112656869, -0.4234251976, 0.0446183719, 0.5165780783, -0.3751866817, -0.1992407143, -0.3078093231, -0.1091819853, 0.352284044, -0.147301212, 0.0145670017, 0.0629001632, -0.1706566364, -0.0006857364, 0.6008648276, -0.3847208321, -0.2815137208, 0.0563009419, -0.0371869579, -0.1165539101, -0.0517222472, -0.0470438264, 0.0718874335, 0.135642916, 0.4128215313, 0.2446535677, 0.0493588299, -0.0324675739, -0.2109587342, -0.2381093949, 0.1280453652, 0.151658386, 0.1272704005, 0.1630408317, 0.0712505579, -0.2506299913, -0.0557164401, -0.0061886362, -0.1022448465, -0.0301638599, 0.5365030169, -0.1599618644, -0.0399641804, -0.532881856, -0.3950176537, 0.2330813259, -0.0779283196, 0.2541694939, -0.105489023, -0.1700357646, -0.352982074, 0.1019510254, -0.0170240067, 0.0607618615, 0.2853280008, 0.0909614265, -0.2011494935, 0.1454881579, -0.0809026584, 0.1637727916, -0.0873494446, 0.0512318462, 0.0335052349, 0.291667223, 0.0747782141, -0.3356175423, 0.0352951288, 0.1897852123, 0.4574481249, -0.0104598496, -0.0672703311, 0.2640901804, 0.070892185, -0.0788056329, -0.2070860565, -0.05381817, 0.0879925042, -0.313064307, -0.0303661674, 0.0379851758, 0.3187099099, -0.0943738967, 0.0625385866, 0.6038931608, 0.0668431222, 0.1744620055, -0.0730603263, 0.2714183331, 0.0653238744, -0.0385558642, -0.149077177, -0.1286280155, 0.0459849499, 0.1176183671, 0.2486371994, 0.0061038891, -0.0880215764, -0.0231885035, 0.5769147873, 0.0913832113, 0.3607913256, -0.1375178844, -0.4204133153, 0.1137951836, 0.0370061696, 0.2525543571, 0.5032669902, 0.332315892, -0.1068636402, 0.023629915, -0.0571720079, 0.0404726267, 0.1032921076, 0.0494471341, 0.2328974009, -0.0000240203, 0.3057212234, -0.0209420472, -0.3462260365, 0.1613915414, -0.053847719, 0.1842062026, -0.3760870993, 0.1845387518, -0.2747030258, -0.076757893, 0.1425513774, -0.1027247906, -0.125005424, -0.3286290169, -0.2664072216, 0.1081375405, 0.1210905612, 0.1938206255, 0.1422476321, 0.0763199255, 0.0087453714, -0.0255289134, -0.1826611906, -0.1326549202, -0.1483921856, 0.0880739987, 0.1653355807, 0.181941092, 0.4119828641, -0.1496375948, 0.2284882814, -0.0511268564, -0.245598793, 0.100177817, -0.0573291741, 0.5299291015, 0.4086084068, 0.0602920428, -0.1410644501, 0.1004512459, 0.4188910425, -0.4658019245, 0.0264790654, 0.363583684, -0.3070645034, 0.0837264657, -0.2518776655, -0.1060993373, -0.5478299856, -0.4280380607, 0.0683310926, 0.0958201066, 0.0449768677, 0.172417596, 0.1191176772, 0.444096446, 0.112392433, 0.0157600436, -0.2330423892, -0.0854077637, 0.3311132789, -0.1693256646, -0.3608907759, 0.2042488754, -0.1323478222, 0.2548744977, 0.0285864808, -0.1609783471, -0.5243912339, -0.1556174606, 0.2053533643, -0.005188724, -0.0110916914, 0.2912253737, 0.0402853899, -0.1367866844, -0.2726752162, -0.1413018703, -0.0488153882, 0.2352696806, -0.0683882236, 0.0471838973, 0.2825388908, -0.1223018318, 0.1436379254, -0.1094394699, -0.1853011698, 0.4059675932, -0.3138792515, 0.3742715716, -0.1514657587, -0.4665456712, -0.2108906806, 0.0278709959, 0.0422425531, 0.0484344922, -0.1828998625, -0.2429656833, -0.3873915374, -0.184057802, -0.3091237545, -0.1176473424, -0.0448231548, 0.1869143099, -0.0344660766, 0.1282412708, 0.1506693661, -0.4099556506, -0.0440214574, -0.0145162204, 0.1907593459, 0.0003334501, -0.1874935776, -0.1343231499, -0.2394137084, -0.3349730968, 0.466514647, -0.130417794, -0.0214519892, -0.1048111022, -0.0228138175, 0.1187153012, -0.0458018035, 0.5801782012, -0.2944788039, 0.1719288677, 0.5542984009, 0.0904794037, -0.5516597629, 0.1077317894, -0.331844449, 0.3005692363, 0.1331286132, 0.2810209692, -0.3470429182, -0.0193871576, 0.2158617675, 0.0685858876, -0.1151087955, -0.2407927513, -0.2334081084, -0.2933899462, -0.0492701679, -0.0665732101, -0.0586115457, 0.4225768149, -0.1354665607, -0.1273059845, -0.4123404026, -0.0367351063, 0.1656020731, 0.1939739734, 0.3422520459, -0.1359105408, -0.0259811543, -0.0587919764, 0.0830501467, 0.1330539882, 0.3568017781, 0.0888106078, -0.4469739497, 0.1390765905, 0.0736007243, 0.2392614037, 0.0024299552, -0.2127716392, -0.1564223021, -0.0973184034, 0.1256743819, 0.0694909394, 0.1411263794, 0.2321473658, 0.0137663297, -0.3646833301, -0.23113361, 0.4325918257, 0.1745893359, 0.0250268523, 0.2719003558, 0.2346458733, -0.2254342437, 0.2237933278, -0.0649300292, 0.9164009094, -0.0016310633, -0.1102356687, 0.6165456772, -0.0979906321, 0.5674658418, 0.0650797188, 0.0679337382, -0.3704264462, -0.2879863977, -0.0052313902, -0.1453758329, 0.2548450828, -0.0493531264, -0.5216739774, 0.2098066807, -0.3250356913, 0.0563870929, -0.0338756666, -0.0862727463, -0.0688716248, -0.1625674218, -0.3169096708, 0.2203887552, -0.1160019636, 0.1652479023, -0.0905514881, -0.0729376525, 0.0201872438, -0.0793530717, -0.0859890431, 0.0518678725, -0.4105747044, -0.1025814638, 0.0088864788, -0.1489424556, -0.049235668, 0.1097768545, 0.0439088494, 0.0238108411, -0.3483451903, 0.2360750288, 0.0525084697, 0.0174742565, -0.0742553324, 0.0752038509, 0.2092088163, -0.0593716875, -0.2678528428, 0.1072407961, -0.0471316501, 0.167549476, 0.3512031436, 0.1351451129, -0.1057788879, -0.3018784225, -0.2150235772, -0.1387380958, 0.2945331931, -0.2950992286, 0.2529356182, 0.0883854032, -0.1128398553, 0.0237117633, 0.0370561406, -0.1807857901, -0.0391988792, 0.4054492116, 0.3315434754, 0.3266708255, 0.1742117852, 0.2139461488, -0.1330504417, -0.3562078476, 0.2356424928, 0.07449314, -0.3519974351, 0.3284549117, 0.2739292681, -0.0456543639, 0.0271229651, 0.4190958738, 0.0177649334, -0.0406256802, -0.1278355718, -0.2977449894, -0.2052850723, 0.2201710194, 0.0076375799, -0.0133153005, 0.1036312953, 0.2353747338, 0.1969152242, -0.0753166899, -0.4256239235, 0.1184609309, -0.3420971334, -0.1064495519, 0.0358140729, -0.0839432031, 0.1991972327, 0.094303377, 0.2200210541, 0.04124403, -0.1173671484, -0.3198773861, -0.1708855778, 0.11573001, -0.0603523888, 0.0984599441, 0.1912232041, -0.0978017226, -0.3399778008, -0.1138171703, 0.0863472894, 0.0186832566, -0.2485669553, 0.0389387496, 0.1841407865, 0.2960723639, 0.0243147407, 0.2214778364, 0.0648288131, -0.0516980924, -0.1667803824, 0.0070171691, 0.0738608539, -0.0377257206, 0.0453988388, -0.0242696367, 0.146423474, 0.1258281916, 0.1472238451, -0.1821626425, -0.1376380622, -0.0106543619, 0.1622682214, 0.1054019704, -0.1678972542, 0.3169001639, -0.151139766, 0.3191595078, -0.3713175952, -0.0181264002, 0.2591815293, -0.0037934883, 0.2337247133, 0.0487347431, -0.2177034914, 0.2784507871, -0.100174889, -0.0086973989, 0.4537391067, -0.1244415864, 0.0648771003, 0.238508001, -0.1500530988, 0.0674678758, 0.4041028619, 0.2606096864, 0.0971257016, 0.1352504194, -0.0299772583, 0.1296595037, -0.0773413926, 0.0511166528, 0.1697779894, -0.5580494404, 0.186106354, 0.1685796976, 0.0023652951, -0.0791588277, -0.2323796898, 0.4102463126, -0.4937512875, -0.0605658107, -0.3794310689, 0.0643697307, -0.163028717, -0.0013760449, -0.1433874965, -0.1149196997, -0.1717617661, -0.2528249323, 0.0416352265, -0.0990594178, 0.2412425876, -0.1137952805, 0.1046868265, -0.1930136085, -0.0399430357, 0.278688699, 0.0477989689, -0.1555451304, 0.0398130342, -0.0601673685, 0.25269261, -0.1166727543, 0.4984675646, 0.4282827377, 0.265019238, -0.2017355114, -0.1184142306, 0.0438968129, -0.294929415, -0.1482043564, 0.1448875815, 0.1621525288, 0.1861361414, 0.0748439059, 0.2893256247, -0.284999311, 0.1308235079, -0.0036748131, -0.0078192856, -0.2805196047, 0.3590799868, -0.3625504673, -0.1178260595, -0.1554860473, -0.1072709784, -0.4793089926, 0.098795183, 0.3647942543, 0.1218607798, 0.1348394006, -0.1550246477, 0.1431170255, -0.2600436211, 0.2424018681, -0.0232327823, 0.3653592467, -0.2398388982, 0.0257782973, -0.5430261493, 0.4481772184, 0.0129255764, -0.0782645717, 0.0848244727, -0.121702157, -0.1154602692, -0.0344456807, -0.0048418576, 0.3630883992, 0.2708312571, -0.0477743857, -0.5591887236, -0.3568104208, -0.0946177766, -0.2772197127, 0.0461378619, -0.2907800674, -0.0501833335, -0.1604976356, 0.1326508671, -0.0683541149, -0.2736573815, 0.1152127311, 0.2708913684, 0.6669099331, 0.2045687437, 0.407979399, -0.0874733254, 0.0932615772, 0.07337749, -0.2984471619, -0.0754200667, 0.1905672997, 0.1010607332, 0.136260882, 0.0150285382, 0.1734221131, -0.1472680867, -0.0376885645, -0.0404813625, 0.0578768551, -0.2393028438, 0.313811034, -0.2897048891, -0.1945980787, -0.2668882906, 0.0952340364, 0.084310323, 0.1096617356, 0.0218840633, -0.0939410552, 0.6466474533, -0.2551367581, -0.3148619533, 0.002964878, 0.2552378476, 0.0340935066, -0.1752844602, -0.4145071208, 0.0628261641, 0.443211019, -0.0549863242, -0.218359828, 0.2427147627, -0.1774560511, 0.0503365546, -0.1022099629, 0.0111536505, 0.0516408011, -0.0675834417, 0.1296829134, -0.0830133334 ]
https://github.com/huggingface/datasets/issues/2869
TypeError: 'NoneType' object is not callable
One naive question: do you have internet access from the machine where you execute the code?
## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: - Python version: 3.7 - PyArrow version:
16
TypeError: 'NoneType' object is not callable ## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: - Python version: 3.7 - PyArrow version: One naive question: do you have internet access from the machine where you execute the code?
[ -0.2466751933, -0.2166070193, -0.0038837458, 0.3586860299, 0.4009475708, 0.035536956, 0.302520901, 0.1521895081, 0.1650357544, 0.3566101193, -0.1779196858, 0.4452134073, -0.0382566825, 0.1990447938, 0.0816193596, -0.0899617374, -0.2033715993, 0.2447062582, -0.1842225194, 0.010521763, -0.472876668, -0.0185202286, -0.1821441352, 0.0199327096, -0.2480738759, -0.2002862543, -0.1163984835, 0.0645010024, -0.2148991227, -0.2530295849, 0.3632104993, 0.0450640544, 0.112367928, 0.5467213392, -0.0001019842, -0.0862105861, 0.4975403249, 0.0762401372, -0.1133384928, -0.2227149755, -0.2704135478, -0.3431518078, 0.1823247373, -0.4260804653, -0.0916544795, 0.028890904, 0.0123812426, -0.2481914461, 0.3053150177, 0.3072139323, 0.339708358, 0.4426216781, -0.0190175083, -0.3322893977, 0.2162288725, 0.0421040244, -0.0323108882, 0.362215519, 0.0633602291, -0.0537314415, 0.1767412126, 0.1824111044, -0.2867747545, -0.0029550304, 0.2504888773, 0.0876018703, -0.0245356578, -0.2595610619, 0.1022056341, 0.2668823004, 0.2856886089, -0.4520843923, -0.1245521009, 0.1114801839, 0.1043578833, -0.2367105186, 0.1430763751, -0.0036112065, -0.0197007451, 0.1060361415, -0.0351593755, 0.133691445, -0.231664747, 0.2396647781, -0.209117204, 0.1492936164, -0.1894275993, 0.0967105776, 0.0752299801, -0.0852814317, 0.0532211438, -0.1713415682, 0.021075597, 0.0105691114, -0.1507948637, -0.0472187474, 0.1830180287, 0.1402942985, 0.1534052491, -0.254579097, 0.1078871489, -0.0058753905, 0.1186242029, 0.4159373343, 0.154383108, 0.2415641695, 0.2150634825, 0.0880800635, 0.2187133878, 0.1302518398, -0.2568061352, -0.0115337186, -0.0923354477, -0.0363530554, 0.3084871173, 0.1605716944, 0.4978731573, 0.0148101076, -0.43729496, -0.0482422002, -0.2314789593, 0.1063998938, 0.2851623595, 0.3828612864, -0.2197893709, 0.0280763004, 0.1954128742, 0.1463474184, -0.167907998, -0.2896850407, -0.3228367269, 0.3451814651, -0.3253240883, -0.1996293813, 0.1255358905, 0.0956025869, -0.078586556, 0.0480372384, -0.035712216, 0.0553010367, 0.0763480887, -0.2473653257, -0.1706801951, 0.1856051236, 0.2096802443, -0.1042110175, 0.3234429955, -0.4836687446, -0.1027234495, 0.1058211848, -0.2070778757, -0.0896052122, -0.0359199308, 0.3180175722, -0.3513986468, -0.1008676514, -0.151536569, 0.1008075848, 0.0612458289, -0.1549359858, 0.0268286895, -0.0838796198, -0.0460206904, -0.443877846, 0.0987593383, 0.5773766041, -0.3923660815, -0.1583535075, -0.3149743676, -0.0410091579, 0.3569568694, -0.2316169292, 0.1328972578, 0.1612990648, -0.1505951583, 0.0307376627, 0.5494579673, -0.3594247699, -0.298289597, -0.0194503367, -0.1195071116, -0.0845604688, -0.0080690281, -0.1045471951, 0.0758646503, 0.1502961367, 0.4117963314, 0.2450776398, -0.0244919565, -0.0403468348, -0.2356397361, -0.2162138522, 0.0301526804, 0.107242316, 0.1855029613, 0.160957098, 0.1086669937, -0.2254877985, 0.0150828492, -0.0165604558, -0.0678272471, -0.0664632171, 0.5562682748, -0.1198019162, -0.1030108109, -0.548601687, -0.3364979625, 0.2137777209, -0.0644096881, 0.2583818138, -0.1622745097, -0.1771243662, -0.4169964492, 0.1173746884, -0.0591691211, 0.0415956117, 0.3479426801, 0.1584892571, -0.1316381693, 0.1201645657, -0.038923569, 0.1554773301, -0.0975586995, 0.0615419187, 0.002867274, 0.3624258637, 0.0288160499, -0.3402500749, 0.0125437025, 0.2390864491, 0.492028594, 0.0251288041, -0.0366603509, 0.3425714076, 0.0153975571, -0.0589240976, -0.0713611618, 0.0129818767, 0.0355378203, -0.3102554679, 0.0903075784, 0.0740944669, 0.274332881, -0.0501489863, 0.0455586836, 0.5526733398, 0.0639084801, 0.1631180197, -0.0774783418, 0.2747522891, -0.1043333039, -0.0652063265, -0.1591193974, -0.1482455432, 0.1165027544, 0.0529977977, 0.1941261292, -0.0445721783, -0.102411747, 0.0711867437, 0.6148303747, 0.07447882, 0.410061866, -0.1350679696, -0.3626484573, 0.1363148987, 0.0632819161, 0.2627360523, 0.4373947978, 0.3606951535, -0.0552522913, 0.0725060552, -0.0956002772, 0.0463584624, 0.0818468109, 0.0780013651, 0.1710066646, -0.0235593766, 0.2648818195, 0.0000485086, -0.302197367, 0.0393880606, -0.2115725577, 0.1999685317, -0.3442276716, 0.2703234255, -0.2761572301, -0.1083705425, 0.0665704906, -0.1341651529, -0.1119984984, -0.3972260058, -0.189691484, 0.0495734848, 0.0846979097, 0.1596637964, 0.1331482828, 0.1780963689, 0.0435850658, -0.0506396033, -0.2169364691, -0.0929441899, -0.1491832733, 0.124519974, 0.1127889976, 0.2195498496, 0.4563970566, -0.2264528573, 0.2653894424, 0.0405263342, -0.2521411479, 0.1091040745, -0.1113009229, 0.5382031798, 0.4217015207, 0.0849712491, -0.1375489533, 0.0479233935, 0.4025655687, -0.3987693489, 0.0345607921, 0.2760668993, -0.1733168364, 0.0993671566, -0.2214981169, -0.1091302112, -0.4937289059, -0.430516243, 0.0535355024, 0.0940166637, 0.0907848328, 0.1661356688, 0.1647697985, 0.5161489248, 0.0903599858, 0.0853421465, -0.2309448719, -0.0928328782, 0.2652721107, -0.1356292665, -0.3170882165, 0.1164372712, -0.1327296942, 0.1882433891, 0.0346632898, -0.2173748314, -0.5696399808, -0.1761069298, 0.2179042101, -0.0343912281, 0.0933210403, 0.26999861, 0.0949118435, -0.1569222659, -0.2845886648, -0.1625180691, -0.09149611, 0.1541405916, -0.0318299644, -0.0249708015, 0.2786458135, -0.1161085069, 0.1320557296, -0.0665605962, -0.2075443119, 0.3825691044, -0.3480911255, 0.3984667063, -0.0996405408, -0.5200996399, -0.1736067683, 0.0353287831, -0.0609325208, 0.0489658341, -0.1714958549, -0.216622591, -0.3766874969, -0.0562461317, -0.3627006412, -0.1873274595, -0.0391595475, 0.1560379118, -0.0368834846, 0.0749153569, 0.1888145953, -0.4491058588, 0.0570053346, -0.0169513598, 0.1537907422, -0.0894060507, -0.1648553312, -0.1185744405, -0.2468067259, -0.2861296535, 0.4680056274, -0.1499364823, -0.056393221, -0.2046160102, -0.0660794526, 0.0905419141, -0.0358795337, 0.5689522028, -0.3503737152, 0.1897085607, 0.4768269658, 0.1251972616, -0.4568893611, 0.1350766271, -0.4355596006, 0.2517589331, 0.2185436338, 0.2802282274, -0.3060492873, 0.0191356, 0.2399570048, 0.1026442349, -0.1106582806, -0.2221298069, -0.221788317, -0.3183932304, -0.0803543776, 0.0420141369, -0.0252923761, 0.4193621278, -0.0983455256, -0.1282833368, -0.3264181316, -0.0256801695, 0.2025925368, 0.2596056759, 0.2894299626, -0.1231492087, -0.1225850731, -0.0823648274, 0.0792324618, 0.1359493136, 0.3235682249, 0.0793575421, -0.3446296751, 0.0907276347, 0.0888884291, 0.2781876624, 0.0573618561, -0.1762590408, -0.1440508962, -0.0869545788, 0.2175625265, 0.0061369422, 0.1769185215, 0.2548579276, 0.0897866562, -0.3811888397, -0.2307589352, 0.4337727427, 0.1766114533, -0.0381243378, 0.2948857546, 0.2082063407, -0.2366477698, 0.226096943, -0.0221611597, 1.0133308172, 0.0526240282, -0.1635152251, 0.5793563128, -0.1488889903, 0.5672776699, -0.0199497938, 0.0393971093, -0.3318083882, -0.2921088338, -0.0050110044, -0.1491662711, 0.2573121488, -0.0939406306, -0.6075484157, 0.1944481134, -0.3985604346, 0.0609820001, 0.0078523858, -0.1274123043, -0.1191684529, -0.1094275266, -0.3458572328, 0.2644385099, -0.1378703862, 0.1916236281, -0.1486469507, -0.0662537143, -0.081767492, -0.109817706, -0.1274234951, 0.0437017307, -0.3669551611, -0.1849412918, -0.0509839356, -0.1615005583, -0.1080818698, 0.0942901149, 0.0813174099, 0.1470959932, -0.2779953182, 0.0880830884, 0.0845176354, 0.024237819, -0.0069385697, 0.0085471412, 0.1958828121, -0.0370822027, -0.2943578064, 0.1068727002, 0.0457872525, 0.11517708, 0.3087917566, 0.1035760045, -0.0675774515, -0.3244170845, -0.1034835204, -0.0974463224, 0.2481093854, -0.3131102622, 0.2714842558, 0.0891997069, -0.1201467961, 0.0999452099, -0.0129307564, -0.1413194686, -0.0845809951, 0.3065213561, 0.2475549877, 0.3110371828, 0.0651139915, 0.2337538004, -0.1451797485, -0.3778772056, 0.1946107447, 0.1266462058, -0.3094281554, 0.2451846749, 0.1132033244, -0.1002142429, -0.018966902, 0.3583429158, 0.0872674361, 0.0121289548, -0.1319913417, -0.3177200258, -0.2275741249, 0.1974657923, 0.1262835264, 0.0467932597, 0.0409467742, 0.2409867495, 0.2160649598, -0.0149477664, -0.4777274728, 0.0233572591, -0.35480088, -0.1210959181, 0.0553099439, -0.131202504, 0.2106182128, 0.0307738371, 0.2626608312, 0.0611371771, -0.1230163798, -0.3603873551, -0.1196228266, 0.0878794044, -0.0960554257, 0.1212469712, 0.1928565055, -0.0655948073, -0.2737081051, -0.1821471155, 0.0655785874, -0.004897011, -0.1561484635, 0.0742097273, 0.1955157518, 0.3057770133, 0.0542224348, 0.0768087059, 0.1181700379, -0.0472166464, -0.0940910056, 0.0504168384, 0.0114915501, -0.091620788, 0.0615547486, 0.0473166667, 0.1579477042, 0.120423086, 0.1462675333, -0.1426482201, -0.1761249602, 0.0342858694, 0.2458388805, 0.1684488058, -0.1826538593, 0.2451196015, -0.2031995654, 0.368602097, -0.3018474579, 0.0448667556, 0.233446002, -0.0057722093, 0.2976733148, 0.1492141932, -0.2892270386, 0.2251113206, -0.1543214321, 0.0022290335, 0.4208866656, -0.0848289132, 0.0941332951, 0.255379945, -0.1617472917, 0.0726773366, 0.4207955301, 0.215765819, 0.0808967128, 0.1147266775, -0.0120389042, 0.2092016637, -0.0595478676, -0.0088517275, 0.1725978404, -0.4266685545, 0.1862843037, 0.1980996728, 0.0223718807, -0.0381644145, -0.2197990566, 0.415300101, -0.508476913, -0.0565226451, -0.3237141967, 0.0487760864, -0.1741153598, 0.0605982803, -0.1682130247, -0.1289482117, -0.2265689969, -0.2804172635, 0.1312571615, -0.1609176397, 0.2799320817, -0.1695612073, 0.1022945419, -0.1938088834, -0.0666625947, 0.2105489671, 0.1612253487, -0.2031766772, 0.0029694394, -0.0198347457, 0.2243938595, -0.1444881409, 0.4721126258, 0.4282221496, 0.2557366192, -0.1851379275, -0.0929748416, -0.0065720282, -0.2934385538, -0.1710650176, 0.0933051482, 0.175207302, 0.1753773838, 0.107457526, 0.3313249648, -0.3341614604, 0.0941621438, -0.023793228, -0.0138929961, -0.2267360091, 0.3832151592, -0.2947542667, -0.0855249688, -0.1702571511, -0.1365145743, -0.5748503804, 0.0405889116, 0.3419461846, 0.0930171311, 0.1262921244, -0.1605507731, 0.1524770707, -0.1748819649, 0.1722018272, 0.0148292333, 0.4054068625, -0.258834511, -0.0027993866, -0.5410189033, 0.4275760949, 0.0155638382, -0.1588082761, 0.0315136537, -0.0331475437, -0.1146663353, -0.017911721, 0.022063138, 0.3360385299, 0.2262089252, -0.0256580152, -0.5814420581, -0.2901699543, -0.1248456612, -0.2796956301, 0.1322259605, -0.2572001219, -0.0358443893, -0.2061264217, 0.2160844207, -0.037930768, -0.2939603329, 0.0869979188, 0.1420842558, 0.6847292781, 0.177642867, 0.4054076374, -0.1641926318, 0.0316925645, 0.0117772399, -0.2423882335, -0.1033019796, 0.2090906501, 0.0755653828, 0.1736918837, 0.0127599053, 0.1335804164, -0.1275078207, 0.0320263021, 0.1104811877, 0.0701001137, -0.1159140542, 0.2584398985, -0.2325378805, -0.1188334078, -0.1874582469, 0.0807324499, 0.088373743, 0.2076720297, -0.0338687859, -0.1781326681, 0.6508178115, -0.1992694587, -0.3754538, -0.0056762015, 0.3330244422, 0.0251546893, -0.1825997382, -0.4330867231, 0.0186706223, 0.4222237468, -0.0488338508, -0.2132585198, 0.2750219703, -0.2542455494, 0.0392030962, -0.023348771, 0.0766803846, 0.0071151704, -0.0488673002, 0.162078931