html_url
stringlengths 48
51
| title
stringlengths 5
268
| comments
stringlengths 63
51.8k
| body
stringlengths 0
36.2k
β | comment_length
int64 16
1.52k
| text
stringlengths 164
54.1k
| embeddings
sequence |
---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/4237 | Common Voice 8 doesn't show datasets viewer | Hmmm, does this mean that any person who downloads the common voice dataset will be logged as "[email protected]"? If so, it would defeat the purpose of sending the user's email to the commonvoice API, right? | https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 | 35 | Common Voice 8 doesn't show datasets viewer
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
Hmmm, does this mean that any person who downloads the common voice dataset will be logged as "[email protected]"? If so, it would defeat the purpose of sending the user's email to the commonvoice API, right? | [
-0.1696701944,
0.1444740295,
0.0457174219,
0.2471178919,
-0.0200229455,
0.3168714345,
0.5003870726,
0.0581495129,
0.3065966666,
-0.0658347681,
-0.356238693,
-0.1942665726,
-0.0795760378,
-0.109813571,
0.2577853203,
0.2352219075,
-0.012772751,
0.1207207665,
0.3894254565,
-0.3368721008,
-0.0650327727,
0.1487873644,
-0.2567525208,
0.1685274839,
-0.2674521506,
-0.1680471152,
-0.1476168782,
0.2181976736,
-0.1104325056,
-0.1833328903,
-0.0009877784,
0.2116365284,
0.0305200294,
0.1964889467,
-0.0001236418,
-0.0162212588,
0.3389793038,
0.1268910766,
-0.2304998189,
-0.0123234112,
-0.335355103,
0.309384197,
0.1744683087,
0.0599450655,
0.0319626629,
-0.0401544496,
0.2058165669,
-0.6824607253,
0.3626073897,
0.1300735027,
0.0545773432,
-0.0684350133,
0.0169806946,
0.210094437,
-0.2084031254,
0.2326566577,
-0.035437122,
0.0556128994,
-0.0643152446,
0.3026400506,
0.1036577374,
0.0721576735,
0.1103362441,
-0.1902239919,
-0.0676961467,
0.2021877766,
-0.2696988285,
-0.3381328285,
0.1577853709,
0.1526190639,
0.8610349298,
-0.1647202075,
-0.1900161207,
0.1047774777,
0.1616856903,
-0.3221175373,
0.2960388362,
0.2580267191,
-0.2492801398,
0.2499502003,
-0.1393003315,
-0.3364042938,
-0.0594484247,
0.2499721795,
-0.3393324018,
0.0757905692,
-0.3214439452,
-0.0342257991,
0.0460306779,
0.1009971797,
-0.281698823,
-0.0451772362,
0.2109937668,
0.4559106827,
-0.0543451682,
-0.2718265057,
0.0776029602,
0.0951762646,
0.1192869693,
0.099509947,
0.2468059063,
0.1325251609,
-0.3170123994,
-0.1053051874,
0.4842472374,
-0.1205603331,
0.2196616828,
0.2385187298,
0.3433713615,
-0.0138265267,
0.3857790828,
-0.1957535148,
-0.4318098426,
0.2282677591,
0.0458996743,
-0.2252506018,
0.3169440925,
-0.4371704459,
-0.3447434604,
0.3499059975,
-0.3051380217,
-0.0308306087,
0.1068888158,
0.2988147736,
-0.0765873194,
-0.0229475517,
0.130383566,
-0.0307151601,
-0.1231063679,
0.0679290742,
-0.0925531238,
-0.2819475532,
-0.2818252444,
0.1599203199,
0.2646994889,
-0.4973932803,
0.1898802966,
-0.1416032314,
0.4540891945,
0.0005071914,
-0.090173088,
0.2217243016,
-0.1220074221,
0.0197439101,
-0.0224144664,
0.4050757587,
-0.0885162354,
-0.0618042126,
-0.2272736877,
0.1600982845,
-0.2758057415,
-0.2538973093,
-0.1483842134,
0.094077751,
-0.0825481191,
-0.113669306,
0.3562026024,
-0.0711484998,
-0.0581928119,
-0.3040513396,
0.0958767682,
0.1957277805,
0.1960664839,
0.0875728279,
0.0798808634,
0.3878017366,
-0.188424319,
-0.2445067167,
-0.4541064501,
-0.298599124,
-0.2266094536,
0.2439158708,
-0.0529104322,
-0.4559850991,
-0.4551980793,
0.4076016247,
0.6409577131,
-0.4132588804,
-0.338406384,
0.1637256294,
-0.1738060266,
-0.0387180448,
0.1210491806,
-0.2175824046,
0.1071084961,
-0.1599974632,
0.0697437078,
0.0176164396,
0.1510195136,
0.03866487,
0.0139952721,
-0.188108474,
-0.2884821892,
0.0357962735,
-0.1108744368,
0.1505910158,
0.2777791619,
-0.0714904815,
0.6741788983,
0.3343598545,
0.1501781195,
0.0412363969,
0.2069399953,
-0.0530258082,
0.0496172085,
0.066922918,
0.0850054622,
-0.1758357286,
0.1082062796,
-0.0409724973,
0.2679082155,
-0.4834800959,
-0.1992108673,
-0.0803582296,
-0.4225882292,
0.0229784492,
-0.0168658122,
0.2607882321,
0.0078893648,
0.0412809849,
-0.0880349651,
-0.1143284813,
0.3743391931,
0.1253147423,
0.0121711334,
0.0927695259,
-0.0335813127,
0.3420111239,
-0.0384987108,
0.2520917058,
0.0286425818,
0.0435684659,
0.2320808321,
-0.0024900211,
-0.209682107,
0.3660030365,
0.0231393799,
0.4541222453,
0.1657929271,
-0.2564871609,
0.4509606361,
0.2574105561,
0.0028811872,
0.0554642417,
-0.1575803608,
0.2628371418,
0.454385221,
-0.0420336016,
-0.0699222162,
0.2409908473,
-0.0625731423,
0.0877448767,
-0.1208256483,
-0.1548853368,
-0.0709540322,
-0.0993074998,
0.6734238863,
-0.2212026864,
-0.8112596273,
0.0803634673,
0.488104403,
-0.030320473,
-0.0566304475,
-0.2049521357,
-0.5639746189,
0.0199624859,
0.2867696881,
-0.4129716754,
0.3034546375,
0.2747434676,
0.245868504,
0.3579985499,
0.237358436,
-0.0346649326,
0.1554118693,
0.0421147831,
-0.0143844197,
0.124476403,
-0.3729010224,
0.1081438735,
-0.4272907078,
-0.2201068252,
-0.1030598506,
-0.307959348,
-0.4074806869,
-0.1675641686,
-0.0290357191,
-0.0825605243,
-0.3484896421,
0.0293312985,
-0.3411601782,
-0.2437998056,
0.1314688474,
0.1328960657,
-0.0378039926,
0.0026376704,
-0.5623478889,
0.4611237347,
-0.014244426,
0.3259682953,
-0.4227150083,
0.3088787198,
-0.0612501688,
0.1020610109,
0.0593384951,
-0.1633824706,
0.0296540484,
-0.225304693,
0.3501110077,
-0.2425990552,
-0.2133827358,
0.367495656,
0.176434055,
-0.1835153997,
0.0064224941,
-0.1760602444,
-0.0809290707,
0.2578850091,
-0.1529333144,
-0.2120832205,
-0.1933772415,
-0.1656864434,
0.1357015818,
0.0994972587,
0.0060645714,
-0.1755816191,
-0.254316628,
-0.1946293563,
0.1715612561,
0.0452267081,
0.1502887905,
0.3515640497,
-0.2582078874,
0.144451797,
-0.3581276834,
0.1099763438,
-0.3767466545,
-0.3674285114,
0.2225749791,
-0.3451326787,
-0.1631499082,
0.2091717124,
-0.0440861396,
0.2366660535,
-0.130973801,
-0.3712940216,
0.1536388993,
0.0418379083,
0.0010018669,
0.3139320314,
0.1025788635,
0.3630253375,
0.0245274622,
-0.0269325394,
-0.0192775782,
-0.1382132471,
-0.3376460373,
0.2436941564,
0.2831068337,
-0.1332166046,
-0.0579571165,
-0.2136445642,
1.0313493013,
0.1707180142,
0.1636918783,
0.079076238,
-0.2325245589,
0.5246005058,
0.289886564,
-0.2140197009,
0.1494823992,
0.1925262362,
0.0261753835,
0.4168418646,
0.2424059659,
-0.120853357,
-0.2261600792,
-0.0255802553,
-0.2780741155,
-0.1878535897,
-0.2435633391,
-0.2339773029,
0.0777997822,
0.2714919746,
0.2770878673,
0.0075111361,
-0.1502283216,
0.0141436988,
0.4010440707,
0.0788140446,
0.0467873886,
0.1853801459,
0.0939804465,
-0.4050250351,
0.2889372706,
-0.2256556451,
0.0643513352,
-0.1546642929,
-0.1612035632,
0.2622926235,
0.2236131579,
0.2050602585,
0.1564370692,
-0.2518943846,
-0.1398605853,
0.2495859861,
0.1031240821,
0.0618939698,
-0.2974472642,
0.2160103321,
-0.2947586775,
-0.1148797646,
-0.0086854286,
-0.1900369078,
0.1565850377,
-0.1495435536,
-0.1798561066,
-0.081946142,
-0.1848638058,
-0.0172169115,
-0.1909374446,
0.0942305475,
-0.1061020643,
0.0689658076,
-0.4018400609,
-0.0472355187,
0.2679963708,
-0.0941659734,
0.3747861385,
-0.1803909391,
-0.0549386479,
0.1000182554,
-0.0020646586,
0.681851089,
0.7534114122,
-0.0448250249,
0.6597626805,
0.468111068,
-0.1624673307,
0.0935251191,
-0.1233666986,
0.3823853135,
0.5502835512,
-0.0284952112,
-0.3092667162,
0.3763149977,
0.0714760423,
-0.0046057133,
-0.0165463164,
0.3226153553,
0.3450996876,
-0.4722557366,
-0.1815768629,
0.1832287461,
0.0911101028,
-0.1643540859,
0.1839881837,
0.359141767,
-0.1333365887,
-0.3831192553,
-0.2948350012,
1.061260581,
0.443405807,
0.3256056905,
0.212280795,
-0.1171050966,
0.0559112802,
-0.0817842558,
0.1271838844,
-0.2129460275,
-0.0169162657,
-0.3463374674,
-0.2764980793,
0.3067031503,
0.2357301563,
-0.0671512857,
0.0218272787,
0.0271439701,
-0.1420681924,
0.1004625484,
0.3504035175,
-0.4646154642,
0.0528854094,
0.1814011633,
0.0115536721,
0.085560143,
0.7272953987,
-0.0197339747,
-0.3054167926,
-0.1394594908,
-0.4661754072,
-0.1218066663,
0.1691824347,
-0.1209012866,
-0.1415253431,
0.1337842196,
0.0655984581,
0.4710144103,
-0.1092676967,
0.0903947651,
-0.0064288597,
-0.3890672922,
0.0825356618,
-0.0248863567,
-0.0899294391,
0.135282129,
-0.0448255576,
0.2320851535,
-0.1155578047,
-0.2600906193,
0.2621026337,
-0.0755471438,
-0.0468604267,
-0.6584346294,
0.0165131055,
0.362390399,
-0.3600278199,
0.3468282819,
0.1836951971,
-0.2226085067,
0.0957685187,
0.0242843851,
0.3936712742,
0.0204804242,
0.0295179337,
0.2447349727,
0.2622901499,
-0.1936992556,
0.4656292498,
0.1144175231,
-0.3043749332,
0.4316125214,
-0.333013624,
-0.2156259716,
-0.1727729887,
-0.0627981126,
0.3993193209,
-0.3298276663,
-0.297717005,
0.0036279496,
-0.0334565863,
-0.2047291398,
0.0930194631,
-0.1382554322,
0.1815635413,
-0.2465508729,
-0.316414237,
-0.084593989,
0.1421070546,
-0.277626574,
0.2140541077,
-0.0754460543,
0.0689401925,
0.309604764,
-0.38231197,
-0.2209232152,
-0.0530133173,
0.25551036,
-0.0853174925,
0.2595820725,
0.14974159,
0.2144826353,
-0.0308059305,
0.1198338494,
-0.1619575173,
-0.1552873552,
-0.0354066752,
0.2153917998,
0.2107299417,
0.2181782424,
-0.2515171468,
0.253477633,
0.3380877376,
-0.32715258,
0.224470064,
0.0497279949,
0.0929281265,
0.1105610132,
-0.1865144521,
0.0434785672,
-0.0881126896,
-0.1584995091,
0.0353671275,
0.1467005014,
0.2991470397,
-0.2679618895,
0.162563622,
-0.2486735582,
-0.1680642962,
0.1494575441,
0.2001084536,
0.2659802139,
0.0437083393,
0.3886324167,
-0.2544764876,
0.166125536,
0.2919082046,
0.3593803346,
0.1633331329,
-0.2174840271,
0.0129332161,
0.3041700125,
0.1191104278,
-0.2185760587,
0.2278191,
-0.0630227849,
-0.1253259629,
-0.2575056553,
-0.0159756485,
-0.0794776976,
-0.055073522,
0.2817620933,
-0.0524243563,
0.0630593374,
0.1607624739,
0.3559252024,
0.0979918838,
-0.5946172476,
0.2355617136,
0.4926632643,
0.1556917876,
-0.1248161718,
0.1892463416,
-0.5210446715,
-0.1031526849,
0.1120970026,
-0.0146834832,
0.1764165163,
-0.3252497315,
0.2248850167,
0.0955699235,
-0.1634462029,
0.1058460176,
0.0610016063,
0.2231768221,
-0.2994135022,
0.3595791161,
-0.3632430136,
0.0830076411,
-0.2589507103,
0.3180634379,
0.1505308449,
-0.2628370821,
-0.0593946725,
-0.0073378454,
0.0729294792,
-0.3242998719,
0.0072016083,
-0.3212519288,
-0.2939056456,
-0.3795804381,
-0.1596900672,
0.1736576706,
0.2037114203,
-0.0627181977,
0.0677345246,
-0.3853457868,
-0.070675537,
0.4412961006,
0.6821466088,
0.198080793,
-0.0927077457,
0.5865591168,
-0.0288245548,
0.2578452229,
-0.2034781873,
0.1142013222,
-0.0075094062,
0.5035375357,
0.0897695124,
-0.0353355445,
0.0209506508,
-0.0063299746,
-0.1661971211,
-0.0656683519,
0.1862397492,
-0.3750017583,
0.1226083189,
-0.574804306,
-0.1445548236,
-0.2461121827,
-0.1607310027,
-0.5120924711,
-0.1927832663,
0.2264638692,
0.0759178624,
-0.0348888189,
-0.7131965756,
-0.0052743703,
0.1244780794,
-0.0468392819,
0.3638569117,
0.0517259091,
0.1959846169,
-0.0557932444,
-0.3849832416,
0.5141718388,
0.4168033004,
-0.1281901896,
-0.2952347994,
-0.2468748093,
0.2042051107,
0.2009267956,
0.2521946132,
0.0500115454,
-0.0677770749,
-0.1655803919,
0.0758968145,
-0.0766457096,
0.1531038284,
0.3875078559,
-0.0890343413,
-0.243638441,
0.4567966461,
-0.2174960971,
-0.021990357,
-0.1759423912,
0.3859414458,
-0.5130813122,
-0.0837253109,
0.1408529431,
0.0499361381,
0.3681749403,
-0.1302506924,
0.0724287778,
-0.0271650311,
0.1113677174,
-0.2442064285,
0.1987878829,
0.0007776838,
-0.0247107651,
0.0664481446,
-0.2557949126,
-0.0428926647,
-0.3094672263,
-0.0658814311,
-0.0220317561,
0.0663705468,
-0.000742294,
-0.4832879901,
0.1068853065,
0.3410538137,
0.1193088517,
-0.037115626,
-0.5185197592,
-0.106232278,
-0.2123138458,
0.3664746284,
-0.3294660151,
0.1021235958,
-0.3057563007,
0.3916806579,
-0.0854663625,
-0.1927403808,
-0.2151103318,
0.1601141691,
0.2761678994,
-0.2436316311,
0.128591314,
-0.0141567374,
-0.1556381285,
0.0253587738,
-0.1517102122,
0.4865681827,
0.2543554008,
-0.1187879518,
0.1776041538,
-0.1557795405
] |
https://github.com/huggingface/datasets/issues/4237 | Common Voice 8 doesn't show datasets viewer | I agree with @severo: we cannot set our system email as default, allowing anybody not authenticated to by-pass the Common Voice usage policy.
Additionally, looking at the code, I think we should implement a more robust way to send user email to Common Voice: currently anybody can tweak the script and send somebody else email instead.
CC: @patrickvonplaten @lhoestq @SBrandeis @julien-c | https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 | 61 | Common Voice 8 doesn't show datasets viewer
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
I agree with @severo: we cannot set our system email as default, allowing anybody not authenticated to by-pass the Common Voice usage policy.
Additionally, looking at the code, I think we should implement a more robust way to send user email to Common Voice: currently anybody can tweak the script and send somebody else email instead.
CC: @patrickvonplaten @lhoestq @SBrandeis @julien-c | [
-0.4233382344,
0.2953563631,
0.0905707181,
-0.0621563978,
0.099763453,
0.1812495142,
0.7674459815,
0.2327231616,
0.2935930789,
0.1703319103,
-0.0979548171,
0.0021814017,
-0.0064492924,
-0.1200801954,
-0.0111923395,
0.2903728783,
-0.2454335988,
0.1893628985,
0.1547878832,
-0.1879290789,
-0.0789521784,
-0.0115279388,
-0.2579064667,
-0.0652331635,
-0.0671938211,
-0.1484672427,
0.0066122976,
0.3384521008,
-0.1235312894,
-0.4067033827,
0.0623403415,
0.2879841924,
0.0023793089,
-0.0792360604,
-0.0001072439,
-0.0505110472,
0.4962916672,
0.1392319649,
-0.0588048622,
0.1276811808,
-0.1150733605,
0.3824068308,
0.0218191165,
-0.1040944532,
-0.1248958185,
0.0892861187,
0.0936565623,
-0.6929329038,
0.477137208,
0.4681118429,
0.2153662592,
-0.0973077714,
-0.0490248017,
0.130845353,
-0.2248116136,
0.1094797328,
-0.0700435936,
-0.0117718773,
0.0268960148,
0.1375594884,
0.0240661688,
-0.0304673836,
-0.0308691971,
-0.2740543187,
-0.1377140582,
0.0744155198,
-0.0494580828,
-0.3751392663,
0.1602351367,
0.2922244072,
0.8587343693,
-0.1033569649,
0.1947626024,
0.1928828955,
0.0756107941,
-0.2657173872,
0.3846790493,
0.0557274185,
-0.1543738097,
0.3975122571,
-0.16738379,
-0.1042611599,
-0.0760854408,
0.088912867,
-0.2036587745,
0.1370081753,
-0.1558481753,
0.0302180033,
0.0139320046,
0.0267023034,
0.2951020598,
-0.0405587144,
0.0152014699,
0.2233926356,
0.0609805249,
-0.2454096526,
0.0865677819,
-0.189503938,
0.2344322801,
0.1626685858,
0.24605003,
0.216324091,
-0.1419855505,
-0.028805431,
0.2349186838,
-0.0953587145,
0.2938950062,
0.1804084778,
0.3747442365,
0.1495586187,
0.375587225,
-0.0536020212,
-0.249377504,
0.0463545732,
0.1719510555,
0.0529559366,
0.3513126373,
-0.3440456688,
-0.2341462821,
0.3392626941,
-0.0487364344,
-0.1340741664,
0.1440400034,
0.3235267997,
0.0348541178,
0.1980133206,
0.1002553701,
0.0047978209,
0.0032520492,
-0.06112995,
-0.0570287779,
-0.1612992585,
-0.2262619585,
0.0917355716,
0.3863495886,
-0.4406767786,
0.0632355809,
0.1013922542,
0.4308885932,
0.0099550085,
-0.034830045,
0.1312271059,
-0.1330004483,
-0.0738457069,
0.0081334477,
0.3835434914,
0.0547221117,
0.0198993329,
-0.0461441316,
0.1897916645,
-0.1143639162,
-0.3485927582,
-0.0502647273,
0.2026529014,
0.052884791,
-0.1077941433,
0.504994452,
0.0224378351,
-0.0911326706,
-0.2298962772,
-0.0060828319,
0.1839574426,
0.0489556156,
0.1447309256,
0.0320826769,
0.5131030083,
-0.2844920158,
0.0297547746,
-0.5368573666,
-0.2461690903,
0.0268636961,
-0.0001900899,
-0.2115801573,
-0.3371140957,
-0.2643442452,
0.1638465971,
0.3534050286,
-0.1879041195,
-0.4833619595,
0.046855323,
-0.0874166563,
-0.1514127403,
0.171229139,
-0.1242989674,
0.2027646452,
0.000691382,
-0.0048336573,
0.2312173992,
0.1259565651,
0.1607141346,
-0.1273127794,
-0.254453361,
-0.1040290967,
0.0030419945,
0.1447849423,
0.2336650044,
0.3167700768,
-0.025162695,
0.4435283244,
0.2056816518,
0.0735749751,
-0.0454731807,
0.2438955754,
-0.2379408479,
-0.0638542771,
0.0894966573,
0.1214461699,
0.005335696,
0.245220542,
0.133460924,
0.2630959153,
-0.2477944791,
-0.4098446369,
-0.1104800254,
-0.1813814938,
0.0714981556,
0.163215369,
0.4153912961,
-0.1573421657,
-0.1341294795,
-0.1106767356,
-0.1191177964,
0.2009207755,
-0.0077161063,
0.1998433322,
0.1554054916,
-0.173335135,
0.1787125915,
0.0438802652,
0.0112901898,
0.1032241285,
0.1237004027,
-0.0375597924,
0.1477492303,
-0.0433165655,
0.1545857787,
-0.0999792963,
0.1785350442,
-0.0875926912,
-0.4526892304,
0.4138153791,
0.3827386498,
-0.0266212355,
0.1058202162,
-0.2339655757,
0.3104703426,
0.2550871372,
-0.2947615981,
-0.1782937944,
0.3584683537,
-0.0415203907,
-0.0988579988,
-0.1104621068,
-0.1902689189,
-0.3526342511,
0.0415523052,
0.5808966756,
0.0181525219,
-0.6463232636,
-0.0504579507,
0.6911429167,
0.0716450736,
-0.0790994391,
-0.2304682434,
-0.2376014441,
-0.1882018298,
0.2219525874,
-0.3901032805,
0.1025998816,
0.1839968562,
0.0159036499,
0.4362363815,
0.0664579943,
-0.0452066846,
0.0647497401,
-0.2109288722,
0.1651023626,
-0.0178062581,
-0.0800650641,
0.140448153,
-0.488152951,
-0.283895731,
-0.015496999,
-0.1431572884,
-0.4723086953,
-0.2470200658,
-0.0299514309,
0.2013856769,
-0.0568846762,
0.1949265599,
-0.0691342652,
-0.1815335602,
0.1805744618,
0.062756367,
-0.1225767359,
0.1363533437,
-0.5826311707,
0.5189606547,
0.150726527,
0.203096509,
-0.3624378145,
0.4717496037,
-0.1901072562,
0.2215452343,
0.0814210251,
-0.2532559931,
-0.109418489,
-0.0691049695,
0.0449927077,
-0.2173288316,
-0.1432058811,
0.3307323456,
0.2695283592,
0.1518424749,
-0.1835335344,
-0.0836501569,
-0.1190443709,
0.1190684736,
-0.119622685,
-0.319668591,
-0.1245087385,
0.1658354104,
0.0447659343,
0.0423923507,
-0.1343927234,
-0.4771488905,
-0.2296965271,
-0.3083020747,
-0.1367562115,
0.0894119218,
0.1741540283,
0.1653181165,
-0.0928020924,
-0.0933736414,
-0.3339851797,
0.1478591263,
-0.2596540749,
-0.4808800817,
0.3693075478,
-0.3001879156,
-0.3149932623,
0.0790086091,
-0.0660960823,
0.2026498169,
-0.0640627891,
-0.2952249646,
0.1513976753,
-0.1647232324,
0.1602760106,
0.0851733759,
-0.02640686,
0.480080992,
0.1835549176,
-0.1326602697,
-0.0363405533,
-0.1029766947,
-0.1345874518,
0.1125913709,
0.0171987638,
0.0312227327,
0.2379861772,
-0.0109199546,
0.9867921472,
0.0920448005,
0.2423955202,
0.0589023195,
-0.1878373474,
0.356312722,
0.1051841006,
-0.1297277808,
0.416549325,
0.4354683757,
-0.0314903148,
0.4762471318,
-0.0795646831,
-0.2962886095,
-0.1591999531,
0.0747452974,
-0.2771711349,
-0.2261833996,
-0.0687997788,
-0.4573895931,
0.1483924538,
0.1666370183,
0.3152106106,
0.0492092334,
-0.2321839035,
-0.0133033972,
0.2708741724,
-0.1249885261,
0.1020663753,
0.001662285,
0.2747074664,
-0.3011900187,
0.2450286597,
-0.2987639606,
0.2863311172,
-0.0931225121,
-0.0015324713,
0.1386023611,
0.0068383543,
0.0023856347,
-0.0160124619,
-0.0996870175,
0.0671950951,
0.392468363,
0.0869550556,
-0.0461545363,
-0.3306409121,
-0.1068796664,
-0.2172299773,
-0.4455519617,
-0.027638495,
-0.070542492,
0.1129112244,
-0.3112815619,
-0.2097303569,
-0.2127838433,
0.0435242727,
-0.0214870535,
-0.2725388408,
0.1340152621,
-0.0124133155,
-0.0484885536,
-0.5640235543,
0.0142393531,
0.0727023184,
-0.0548582971,
0.319417417,
0.0537345074,
-0.1744510382,
0.011353109,
-0.0105912779,
0.4018306732,
0.3535455763,
0.0234765317,
0.5588415265,
0.5205464959,
-0.0533130728,
0.0255893227,
-0.1337621361,
0.2866280377,
0.375282675,
-0.2262628525,
-0.3488540649,
0.2709590793,
0.0391138345,
0.1532701105,
-0.1237324774,
0.1684012264,
0.0339177847,
-0.1439648122,
-0.328677386,
-0.1606735885,
0.0627962053,
-0.2103135139,
-0.0554222241,
-0.0068812217,
-0.0408551507,
-0.0852080211,
-0.2108567357,
0.7987172008,
0.1939627677,
-0.0345410705,
0.1161918491,
0.1656710207,
-0.1419900805,
-0.006100025,
0.039000161,
-0.1862030029,
-0.1315886676,
-0.1560118198,
-0.1835594922,
0.2687510848,
0.464514643,
-0.2409114987,
0.1227359325,
-0.1952974349,
-0.2867821157,
0.1488940418,
0.5003966689,
-0.5818321109,
-0.0209934395,
0.1362273991,
0.1842083782,
-0.0200784225,
0.2755757868,
0.1120856702,
-0.139001891,
0.0753408819,
-0.5390203595,
-0.140449509,
0.3940685093,
-0.1650962383,
-0.2463556528,
0.0907897428,
0.3148208559,
0.6176199913,
0.0388697535,
0.097060591,
0.4697798789,
-0.3391227722,
0.047856681,
0.1017512679,
0.036192704,
0.1385269612,
0.0468875356,
0.4620196223,
-0.0550484508,
-0.349699527,
0.2050093412,
-0.0674626231,
-0.1188037172,
-0.3580515087,
-0.0873781964,
0.463506192,
-0.2163930535,
0.3616442978,
0.1161035299,
-0.1350613534,
-0.0238857828,
0.2137402445,
0.1702047884,
0.1249832213,
0.149988085,
0.083285287,
0.1907114387,
-0.1920045614,
0.2049274445,
0.0468003452,
-0.0485449731,
0.2565455437,
-0.2116746306,
-0.0358354002,
-0.304173708,
-0.1153002083,
0.2631458938,
0.0087456582,
-0.2317482233,
-0.0673126876,
-0.09518677,
-0.0183349419,
-0.0769407824,
-0.204841122,
0.2064528018,
-0.2539486885,
-0.2893543839,
-0.3083866239,
-0.0351563245,
-0.0440477505,
0.1396373212,
0.0063191438,
0.0842946395,
0.0570663176,
-0.2130803764,
-0.4096172154,
-0.1444961578,
0.1244267523,
-0.041147463,
0.1841213256,
0.0236695632,
-0.0163294673,
-0.0692925975,
0.2019651532,
-0.2154465765,
-0.0960699022,
-0.2230936587,
0.1088771299,
0.1453714073,
0.2695964873,
-0.3573486209,
0.1471279413,
-0.0239340551,
-0.4704838693,
-0.0189273842,
0.101826556,
0.128721118,
0.0648408234,
-0.0305273961,
-0.0261381827,
-0.0289742853,
-0.0995090678,
-0.1466342658,
-0.3288842738,
0.1178985834,
-0.3762036562,
0.2833465338,
-0.1212087721,
-0.1864460856,
0.0820095986,
0.1243472174,
0.3888797164,
0.3514215648,
0.1641041487,
-0.1797552258,
0.0725544989,
0.1115967631,
0.19772093,
0.0605263524,
-0.3152236938,
0.0285292584,
0.2787552774,
0.3131703734,
-0.2977467179,
0.1576529294,
-0.395924747,
-0.0140957003,
0.0457306504,
0.0366521403,
0.0987916589,
-0.2485184819,
0.1762195081,
-0.1107792854,
0.0423082672,
-0.0693951324,
0.2097511739,
0.2158718854,
-0.6476302147,
0.1390953362,
0.6094949245,
-0.0200820453,
0.0102381334,
0.3133255839,
-0.1316855848,
-0.0623949468,
0.1659495234,
0.1258406937,
0.10198199,
-0.3031921685,
0.5214725733,
-0.056340795,
-0.1539968252,
0.0335346721,
0.1229765266,
-0.0300615914,
-0.0985945091,
0.4093815982,
-0.3508386314,
-0.0064744917,
-0.15602988,
0.1577564627,
-0.0289152246,
-0.1074124873,
-0.0906127393,
0.0003918601,
0.0390443988,
-0.1169895902,
-0.020035075,
-0.2061811984,
-0.4323667586,
-0.1191876382,
0.1242223233,
0.1979509741,
0.0950885639,
-0.1895404011,
0.1541464329,
-0.440092057,
-0.0866636559,
0.4207965434,
0.6267766356,
0.1000679433,
0.0784964263,
0.4536392689,
-0.0822198465,
0.3367314339,
-0.3272368908,
-0.0784650743,
-0.0127876746,
0.4818312824,
0.2107851356,
0.0172637925,
0.1748882383,
-0.1951279938,
-0.2963456511,
-0.1789943129,
0.2265108079,
-0.1877579391,
-0.0983817205,
-0.0274672024,
-0.1656865031,
-0.2109520137,
-0.0325274616,
-0.4190890491,
-0.2398744226,
0.3022334576,
0.0861163363,
0.232329458,
-0.7237006426,
0.0841962099,
0.284095794,
-0.1897737533,
0.1497576684,
-0.0748028457,
0.2687678933,
0.0357658155,
-0.5046497583,
0.4647850096,
0.3067144454,
-0.0472293757,
-0.1762204468,
-0.2841438949,
0.2265124321,
0.06812796,
0.2726211846,
0.1171233356,
-0.2338103354,
-0.0706878081,
-0.0159109067,
0.0208533797,
0.3161941171,
0.370672822,
-0.1120122001,
-0.3789967895,
0.3205159009,
-0.1109371781,
0.1224813163,
-0.1456010342,
0.1814865619,
-0.3380587995,
-0.0141823348,
0.1719993055,
0.2463552952,
0.3573560119,
-0.3184328079,
0.238273561,
-0.2494674623,
0.1350481957,
-0.3486397862,
-0.1219945848,
0.013366865,
0.1415394843,
0.2505427003,
-0.4073713124,
-0.0643719807,
-0.270169735,
-0.2158277333,
0.0415486693,
-0.1826001704,
0.1398119032,
-0.5174732804,
0.2348937243,
0.0312755369,
-0.0863825232,
0.0256703179,
-0.4430855513,
-0.0745718554,
-0.3091339171,
0.3459122181,
-0.0607087985,
-0.0929403231,
-0.5184538364,
0.3153918684,
-0.2680924535,
-0.0875949264,
0.1353672445,
0.1911246479,
0.1414789259,
-0.2699175179,
0.0906121284,
-0.1020966768,
-0.1820642352,
0.0550099611,
-0.162664026,
0.4691651464,
0.2229687124,
0.0681517273,
-0.287202239,
-0.1066097692
] |
https://github.com/huggingface/datasets/issues/4237 | Common Voice 8 doesn't show datasets viewer | Hmm I don't agree here.
Anybody can always just bypass the system by setting whatever email. As soon as someone has access to the downloading script it's trivial to tweak the code to not send the "correct" email but to just whatever and it would work.
Note that someone only has visibility on the code after having "signed" the access-mechanism so I think we can expect the users to have agreed to not do anything malicious.
I'm fine with both @lhoestq's solution or we find a way that forces the user to be logged in + being able to load the data for the datasets viewer. Wdyt @lhoestq @severo @albertvillanova ? | https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 | 111 | Common Voice 8 doesn't show datasets viewer
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
Hmm I don't agree here.
Anybody can always just bypass the system by setting whatever email. As soon as someone has access to the downloading script it's trivial to tweak the code to not send the "correct" email but to just whatever and it would work.
Note that someone only has visibility on the code after having "signed" the access-mechanism so I think we can expect the users to have agreed to not do anything malicious.
I'm fine with both @lhoestq's solution or we find a way that forces the user to be logged in + being able to load the data for the datasets viewer. Wdyt @lhoestq @severo @albertvillanova ? | [
-0.3276700377,
0.2826412618,
0.0286960993,
0.1016934812,
-0.0353756994,
0.0222149193,
0.6439489722,
0.076558128,
0.3533987701,
0.2049578875,
-0.250772357,
-0.1054484919,
-0.0896840245,
-0.0457500294,
0.1518868357,
0.3686565459,
-0.2056715786,
0.1514365524,
0.1459309459,
-0.1047728434,
-0.1652454734,
-0.1499930173,
-0.2767066061,
0.0489405394,
0.0311271213,
-0.1686149091,
-0.0786575004,
0.1734268069,
-0.3048938811,
-0.373246938,
0.0169319957,
0.4430586696,
0.0846099928,
0.2786065936,
-0.0001101863,
0.0020836387,
0.3867455423,
0.1154224724,
-0.2246278524,
0.2738187313,
-0.2780144513,
0.272955507,
-0.045243524,
-0.064888373,
0.0155638037,
0.192740202,
0.0766616836,
-0.6144830585,
0.6153852344,
0.2515274286,
0.157490626,
0.0604634173,
0.0325441919,
0.247049123,
0.0165666845,
0.1056070998,
0.0101477057,
0.1015093103,
0.2679613531,
0.1695254743,
0.0651576743,
0.1509379447,
-0.198302567,
-0.3722334206,
0.0286957733,
-0.0491290316,
-0.1526445448,
-0.3067625463,
-0.030229833,
0.2337405235,
0.7952952981,
0.0403946489,
-0.1743229032,
-0.1209971234,
0.099732399,
-0.174264878,
0.4788475335,
0.1303299665,
-0.1893553585,
0.4509945512,
-0.3562009633,
-0.1134469509,
0.01468731,
0.1987814307,
-0.1077818945,
-0.0208213143,
-0.0825012326,
0.028178487,
-0.2325535268,
0.0212286115,
0.3214941919,
-0.137949422,
0.0755108148,
0.4411667883,
0.1120350063,
-0.2328362614,
0.0233733151,
-0.0075600338,
0.3046206236,
0.1871423721,
0.185081616,
0.212086916,
-0.2100501359,
-0.0860341713,
0.3480094075,
-0.1372658461,
0.1855038255,
0.1732928902,
0.4434837699,
0.3620170057,
0.3060187399,
-0.0311507341,
-0.3310576975,
-0.0225489046,
0.1029111296,
0.1033842266,
0.2201027125,
-0.4060968459,
-0.2318404019,
0.3197879493,
-0.1423318088,
-0.0837767497,
0.1071364954,
0.3517378271,
-0.1030231267,
0.1175407767,
0.2433309704,
0.0560433082,
-0.1270939261,
-0.1124463528,
-0.0116386777,
-0.1853644699,
-0.3062338829,
0.1754396111,
0.4211941361,
-0.3270873725,
-0.0256035738,
0.0084978575,
0.308809042,
-0.1298590899,
-0.2582892179,
0.0654632747,
-0.2351370454,
-0.0435484834,
-0.1323395222,
0.2510224581,
-0.1481939107,
-0.0675700605,
0.038297873,
0.1886507422,
-0.0482765511,
-0.2733906507,
0.1574224383,
0.1724794209,
-0.2329681814,
-0.1402556151,
0.2675945163,
0.0583331324,
-0.1306373626,
-0.2882422805,
0.0159261636,
0.3018210828,
0.0111362133,
0.0858497545,
0.0646114647,
0.7405055165,
-0.1340877563,
-0.1165993363,
-0.4273559451,
-0.4409671724,
-0.1657409221,
-0.0707081705,
-0.275726378,
-0.0865926743,
-0.3792938888,
0.2002461702,
0.4311110973,
-0.3874661624,
-0.5614827275,
0.057643313,
-0.1322823465,
0.1518225074,
0.2351849079,
-0.0369249694,
0.1958876252,
-0.2636848986,
0.0133704413,
0.0647508129,
0.3427251875,
0.0527572893,
-0.2221804112,
-0.3021659255,
0.0042275833,
0.0621295646,
0.1635087729,
0.3537618518,
0.3498996794,
-0.2145074755,
0.6156651974,
0.2389987558,
0.0696517006,
-0.1639549881,
0.0499770306,
-0.1192433462,
-0.2758899927,
-0.0023620189,
-0.0477118008,
0.0686796531,
0.114377737,
-0.0326656587,
-0.128225401,
-0.4096731842,
-0.2174282074,
-0.026792774,
-0.157651633,
-0.0965409055,
0.0887698382,
0.1591859758,
-0.277806133,
-0.2728050351,
-0.1990334988,
-0.0126978559,
0.2399721742,
0.1990319788,
0.2141069025,
0.074670814,
-0.0516187586,
0.3567938507,
0.0369052216,
0.0559174791,
0.15576078,
0.1052333489,
0.0548657216,
0.1121384576,
-0.1367646903,
0.1686002314,
-0.045300588,
0.2480810881,
-0.018317489,
-0.2441820502,
0.3981560767,
0.2577301562,
0.1965713501,
0.0505691357,
-0.0925562829,
0.3460522592,
0.3215010166,
-0.2197321653,
-0.1700085402,
0.1773960888,
-0.1001263708,
-0.0544954464,
-0.1277044564,
-0.089332372,
-0.2047124505,
0.1881977767,
0.5323771834,
-0.010955343,
-0.5594024658,
0.0370206125,
0.6364459991,
0.0602371283,
-0.1026984453,
-0.2559868693,
-0.3240697384,
0.0096076019,
0.1049171314,
-0.2023670226,
0.1061855182,
0.2006997019,
0.1164325103,
0.4563674033,
0.2866413295,
-0.0882529989,
0.150319472,
-0.0261905938,
-0.0915113613,
0.0099485554,
-0.3949522376,
0.1293364614,
-0.3887825012,
-0.3810589612,
-0.0515882894,
-0.3282397389,
-0.4805990756,
-0.1494935155,
0.1087376475,
-0.0932932347,
-0.1724150479,
0.2204059362,
-0.1758578867,
-0.1669756025,
0.2362264395,
0.1621549278,
-0.2174995989,
-0.0254498031,
-0.5943486691,
0.4948780835,
-0.1481134146,
0.0239748862,
-0.1699603945,
0.4189013839,
-0.1562355906,
0.182774961,
0.2289908379,
-0.3450708687,
-0.0292816833,
-0.0893429741,
0.2291578352,
-0.1628542244,
-0.0365286246,
0.1793974042,
0.2172913104,
-0.0981510133,
-0.2283276021,
-0.0937239379,
0.0621785149,
0.1023363397,
-0.1582453698,
-0.2216598541,
-0.0827557072,
-0.1386968642,
0.4223152697,
-0.0040514274,
-0.0731584951,
-0.3582820296,
-0.2605392039,
-0.2251220345,
-0.0614521429,
0.137838155,
0.2332566977,
0.1145311892,
-0.1101691499,
0.0284170341,
-0.3850930035,
0.3127946854,
-0.1628730446,
-0.3492161036,
0.3064099252,
-0.1805765331,
-0.1599092633,
0.167973876,
-0.0218559541,
0.1374245584,
0.1824197769,
-0.3488959372,
0.0762279108,
-0.1741262525,
0.0896030888,
0.0480061769,
-0.1169983819,
0.394972831,
0.1491868645,
-0.1252644658,
-0.0088297054,
-0.0566826873,
-0.2623578906,
-0.197998181,
0.0625333339,
-0.0283759199,
0.0839400142,
0.0343875363,
0.7649751902,
0.2582694888,
0.363948822,
0.0602464862,
0.0765728951,
0.4536771774,
0.2313636541,
0.0496078841,
0.2278817147,
0.3595601916,
-0.1124970913,
0.3295023441,
0.0386222117,
-0.2434891909,
-0.4084302485,
-0.16712147,
-0.3000362813,
-0.3741429448,
-0.0983219966,
-0.3628505766,
-0.0319454409,
0.3828232884,
0.5475947261,
0.1453044415,
-0.217797175,
-0.0292436928,
0.4357060194,
0.2405562699,
0.1340445727,
0.0757784545,
0.263281256,
-0.2997917831,
0.2887085974,
-0.2176149935,
0.363996923,
0.0621984638,
-0.0837514848,
0.2632400095,
0.0481136777,
0.0369484313,
-0.0659090504,
0.0058036903,
-0.0601508319,
0.4205357134,
0.0698306188,
-0.1430023909,
-0.2119997889,
-0.0458234958,
-0.2739168704,
-0.3011757433,
-0.1525957137,
-0.0265051015,
0.0807428584,
-0.206273526,
-0.1505018175,
-0.3557728827,
0.060636159,
0.108966507,
-0.4051537514,
0.099989146,
0.2454653829,
-0.0627741814,
-0.413911581,
-0.1620908231,
-0.0480817072,
0.152008906,
0.3572084904,
-0.0306509845,
-0.2141933739,
0.0092299096,
-0.0363231041,
0.4259912074,
0.3916563392,
-0.0801962838,
0.7334531546,
0.3771037161,
-0.2049555779,
-0.1043338701,
-0.2800857127,
0.2213748544,
0.6570667028,
-0.1028251946,
-0.1959437877,
0.2588116825,
0.0013682951,
0.1107605845,
-0.2254087478,
0.0982328132,
0.1507893056,
-0.2545194924,
-0.5483997464,
-0.1071484312,
0.0047552558,
-0.2643622756,
-0.0266550593,
0.1940442026,
-0.0550500192,
-0.1954222918,
-0.3550063372,
1.1086332798,
0.2428841293,
0.2375324667,
0.0513414629,
0.0400444046,
-0.0502690747,
0.0287833419,
-0.0120436298,
-0.0069705416,
-0.2007214278,
-0.3155316412,
-0.3052561283,
0.0818033069,
0.443595171,
0.0243245326,
0.3045069277,
-0.3398273885,
0.0335957967,
0.2350007445,
0.3208365738,
-0.5075562596,
0.0030359945,
0.0409645699,
0.1348180175,
0.0060911174,
0.469843328,
-0.1511018127,
-0.2046301216,
-0.0168262552,
-0.4383658171,
-0.0756570473,
0.3357024193,
-0.2338881493,
-0.2259612828,
-0.0591951236,
0.2965034544,
0.6343994141,
0.1124159247,
0.0271640737,
0.397437036,
-0.3178528845,
0.1032689735,
-0.0437259525,
0.1632948965,
0.2015817612,
0.0789418668,
0.4177619815,
-0.0494967997,
-0.3098778427,
0.1979457587,
-0.0578185581,
-0.2809755504,
-0.1921567023,
0.0059944512,
0.3601536453,
-0.289849788,
0.4361819029,
0.2148678452,
-0.0425331481,
-0.0659371093,
0.1362301409,
0.1995058656,
0.1303808093,
0.1439657062,
-0.0005725159,
0.0574539267,
-0.150116533,
0.4502736628,
-0.030748941,
-0.2189728469,
0.3831341863,
-0.3785704374,
-0.3276692331,
-0.3190602064,
-0.2106259018,
0.1625000834,
-0.1875215918,
-0.2510299683,
-0.1983596534,
0.053657867,
-0.2519692481,
-0.1628649235,
-0.1361028552,
0.0611058474,
0.0716728494,
-0.3963908851,
-0.1702025086,
0.1102675349,
0.0270633604,
0.0286958367,
-0.0603223592,
0.2416182607,
0.0776694641,
-0.307734102,
-0.3521879315,
-0.1650327593,
0.1579976082,
-0.2590930164,
0.2934370935,
0.2601593435,
0.1839325875,
-0.021487141,
0.1124983579,
-0.1461204141,
-0.136868611,
-0.1534967273,
0.1151537225,
0.1875801384,
0.2674622238,
-0.3046253324,
0.1522645205,
-0.0027938883,
-0.2991346121,
0.0570485778,
0.1414521188,
0.2766940594,
0.2330700159,
-0.1178332716,
0.0268038753,
0.1790768206,
-0.3592765331,
0.0599176846,
-0.2138448954,
0.2162325829,
-0.3685111701,
0.122369878,
-0.1684273481,
-0.1422311962,
0.1695932597,
0.0515890121,
0.3202329576,
0.4488327205,
0.2769753337,
-0.0587528273,
0.138407439,
0.1870999038,
0.1340330988,
0.402894944,
-0.3156763911,
-0.1319885701,
0.2874776125,
0.2732684612,
-0.1418455392,
0.2686749399,
-0.3746756017,
-0.053613998,
-0.1319928467,
0.026987182,
-0.0519344136,
-0.1490721554,
0.0349297412,
-0.0822774097,
0.0463955291,
0.092781201,
0.3205246925,
0.2014715523,
-0.4596728086,
0.0430091433,
0.5024505258,
0.1095085591,
-0.0777637213,
0.3541826308,
-0.5122406483,
-0.2230547816,
0.1907809079,
0.0942293778,
0.0358178094,
-0.217152521,
0.2744324505,
0.1891600639,
-0.0555180088,
-0.0178553294,
0.2226846516,
0.0116670933,
-0.057510782,
0.381812185,
-0.2118830681,
-0.0509191342,
-0.139243871,
0.2652008533,
-0.1680482477,
-0.3114286065,
-0.2237645537,
-0.0501853935,
-0.0288052373,
-0.3546024859,
-0.0485792123,
-0.0379480831,
-0.3389200866,
-0.3206719756,
0.0936725214,
0.1955042034,
0.2876196504,
-0.3061201572,
0.0357008688,
-0.1329613328,
0.1185398698,
0.6756336093,
0.5947238803,
0.0032150475,
-0.06461256,
0.4602085054,
-0.0665726885,
0.2504345775,
-0.1165326983,
-0.0796228796,
0.0735260248,
0.320459038,
0.2550057769,
0.1905149966,
0.0970509797,
-0.1393773556,
-0.1152176782,
-0.1681370139,
0.1976025254,
-0.3370178044,
0.1649288088,
-0.1106844246,
-0.1374848932,
-0.2403934896,
-0.0807981119,
-0.3016121387,
-0.2100150883,
0.3125522435,
0.0059025688,
0.3084833324,
-0.705873251,
0.0538722724,
0.4428210855,
-0.185427025,
0.373369962,
0.0217995346,
0.1456709951,
0.2219669968,
-0.6306035519,
0.4190967381,
0.3184235096,
-0.1088696718,
-0.3468848169,
-0.4513708055,
0.1797079295,
0.1764487326,
0.2289700806,
0.1766713858,
-0.0733470544,
-0.0891218707,
-0.0337785669,
-0.071555756,
0.3725889623,
0.3799373209,
-0.0154867712,
-0.495149076,
0.4104396999,
-0.3749746978,
0.0479422025,
0.0606215708,
0.2728119791,
-0.4337407947,
-0.1638642401,
0.3009795547,
0.1892212629,
0.4562891126,
-0.2207221538,
0.1628946513,
-0.3791191876,
0.1269714236,
-0.4525518119,
-0.001886348,
-0.0808835775,
-0.0232560877,
0.2230319679,
0.026623033,
0.0200313069,
-0.2519927621,
-0.2644968331,
0.163092494,
-0.1883878112,
-0.0301987343,
-0.3224487603,
0.2353093177,
0.0811746195,
0.0863258541,
-0.1935866773,
-0.3666914701,
-0.1599436104,
-0.3213146627,
0.4038055241,
-0.0931526572,
-0.0471521057,
-0.3243626356,
0.459564209,
-0.0027386569,
-0.0164627321,
-0.091644235,
0.2739154696,
0.1083285362,
-0.3476336002,
0.0925036222,
0.0281483866,
-0.3304082155,
-0.0470056012,
-0.1797047108,
0.4291796982,
0.0453012101,
-0.0104241874,
-0.2301497906,
-0.1982878298
] |
https://github.com/huggingface/datasets/issues/4237 | Common Voice 8 doesn't show datasets viewer | > Additionally, looking at the code, I think we should implement a more robust way to send user email to Common Voice: currently anybody can tweak the script and send somebody else email instead.
Yes, I agree we can forget about this @patrickvonplaten. After having had a look at Common Voice website, I've seen they only require sending an email (no auth is inplace on their side, contrary to what I had previously thought). Therefore, currently we impose stronger requirements than them: we require the user having logged in and accepted the access mechanism.
Currently the script as it is already requires the user being logged in:
```python
HfApi().whoami(auth_token)
```
throws an exception if None/invalid auth_token is passed.
On the other hand, we should agree on the way to allow the viewer to stream the data. | https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 | 136 | Common Voice 8 doesn't show datasets viewer
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
> Additionally, looking at the code, I think we should implement a more robust way to send user email to Common Voice: currently anybody can tweak the script and send somebody else email instead.
Yes, I agree we can forget about this @patrickvonplaten. After having had a look at Common Voice website, I've seen they only require sending an email (no auth is inplace on their side, contrary to what I had previously thought). Therefore, currently we impose stronger requirements than them: we require the user having logged in and accepted the access mechanism.
Currently the script as it is already requires the user being logged in:
```python
HfApi().whoami(auth_token)
```
throws an exception if None/invalid auth_token is passed.
On the other hand, we should agree on the way to allow the viewer to stream the data. | [
-0.4378187358,
0.2820081115,
-0.0171392243,
-0.0312947929,
0.0072664716,
0.0896093771,
0.5135827661,
0.3128056526,
0.1830434948,
0.1410139501,
-0.3661122322,
-0.1130832881,
-0.072842598,
-0.0658885613,
0.1129050553,
0.0829916894,
-0.1138803065,
0.2530531585,
0.3841428459,
-0.2583289146,
-0.0791174471,
-0.1674629599,
-0.4483187497,
0.023632871,
-0.0763110071,
-0.2118772119,
-0.1876411587,
0.3403355479,
-0.158589378,
-0.384516567,
-0.1121576801,
0.4093942046,
0.0101891439,
0.3094683588,
-0.0001077692,
-0.0149445627,
0.3373355269,
0.0883588269,
-0.041684065,
0.1104558632,
0.009011968,
0.2699041367,
0.1225728616,
-0.0488004722,
-0.0891804546,
-0.0223985855,
0.0074787117,
-0.5823135376,
0.4901538789,
0.3339170814,
0.2214778513,
0.0326720849,
0.0318681933,
0.4227985442,
-0.0045543239,
0.1820220798,
-0.0754803792,
-0.0260126591,
0.2463403195,
0.1726447493,
0.0227912106,
0.1811050177,
-0.1813785136,
-0.3121991158,
-0.2122677714,
-0.0444446951,
-0.2794733346,
-0.5161710382,
0.0540435649,
0.3330700397,
0.8484166861,
-0.251586318,
-0.1580506712,
0.1345838904,
-0.0014434329,
-0.2565355003,
0.1438647509,
0.1707631201,
-0.1909480393,
0.2970326841,
-0.1836190522,
-0.1208739728,
-0.2403204739,
0.0699702799,
-0.0030459578,
0.1860273182,
-0.0270885117,
0.0225611012,
-0.0965537354,
0.0594185591,
0.1694824249,
0.0711410418,
0.146489352,
0.4783707559,
-0.0356702209,
-0.3128488958,
0.0547955073,
-0.190998584,
0.2179585993,
0.0233527161,
0.3745632172,
0.2575894594,
-0.248840794,
0.0977257416,
0.3538190424,
-0.1773355603,
0.2361760139,
0.1880999058,
0.4013479054,
0.0216196943,
0.2800180614,
-0.1277000308,
-0.2750679255,
-0.0922388211,
0.2952773571,
-0.0666856617,
0.4009967744,
-0.3695462346,
-0.2854981422,
0.3671599925,
-0.200430274,
-0.174792856,
0.1230400726,
0.3566014469,
-0.0436035506,
0.2741397321,
0.1490336061,
0.0477824733,
-0.1219475269,
-0.1166549101,
-0.0333225951,
-0.0280186683,
-0.0517759807,
0.0385282263,
0.3771167994,
-0.3871000707,
0.0209963229,
-0.0329457596,
0.399276644,
-0.0399107821,
0.0324232057,
0.123873353,
-0.0562508479,
0.0316603072,
0.0594700761,
0.1112100407,
0.0324161984,
-0.1340069771,
-0.1322433352,
0.0777995661,
-0.0902207047,
-0.3013809621,
-0.0184531994,
0.2469601184,
0.0303682387,
-0.09388832,
0.4326627851,
0.0144855613,
-0.0882030427,
-0.4669658244,
0.0675727352,
0.1197752506,
0.043050468,
-0.0529467314,
0.299058646,
0.5209901929,
-0.2387748808,
0.1124047562,
-0.4149893224,
-0.1364418268,
-0.0869059935,
0.1301273555,
-0.1372086704,
-0.312654376,
-0.1789645851,
0.208130762,
0.6094938517,
-0.5083187222,
-0.3220131397,
0.2890003324,
-0.0045619472,
-0.0068997503,
0.0876128152,
-0.2011607736,
0.2201859951,
-0.1728172004,
0.0673639923,
0.1654643714,
0.0841132924,
0.0409184732,
-0.1739962548,
-0.1423352361,
-0.0960957259,
0.1687211245,
-0.0137762902,
0.0554724522,
0.3415168822,
-0.1178494766,
0.7056341171,
0.2358170152,
0.0855700076,
-0.1290055811,
0.416864574,
-0.2907498777,
-0.0611960106,
-0.0396629535,
0.1600836068,
0.0137016689,
0.1655735373,
-0.0612233914,
0.1793861091,
-0.3366988301,
-0.2180537134,
-0.0035623575,
-0.2933734357,
-0.0047867508,
0.2074425817,
0.0980049595,
-0.0602348782,
-0.0674977824,
-0.2349786758,
-0.036727719,
0.2792467177,
0.0134373968,
0.333422184,
0.3582626283,
-0.2611910999,
0.1870387197,
0.1941960156,
0.1303374767,
0.148327902,
0.1082988381,
0.0239813104,
0.1698196232,
-0.084872894,
0.2542249262,
-0.0730858371,
0.2263497412,
0.0810755193,
-0.4664202332,
0.6547856331,
0.2611540258,
0.1863562763,
-0.0332693681,
0.0242348667,
0.2530588806,
0.2375543118,
-0.0784082711,
0.1365589947,
0.2165653855,
-0.0478940308,
0.0159582384,
-0.117417939,
-0.0480528362,
-0.144503817,
-0.0088556344,
0.5395217538,
-0.1683498323,
-0.7596915364,
0.2067908794,
0.6599916816,
-0.088898927,
-0.0121482871,
-0.1223648638,
-0.3406326473,
-0.1706068963,
0.2870765626,
-0.3351684213,
0.1625520587,
0.2117143571,
0.0594195388,
0.430947125,
0.114234589,
-0.0444215313,
0.1606912464,
0.0746477246,
0.0122969067,
0.0376452468,
-0.1806058884,
0.1886728853,
-0.448546648,
-0.4069184959,
-0.0656716973,
-0.130353421,
-0.3973677158,
-0.0351914093,
0.0507740937,
0.1511020362,
0.0086281896,
-0.0314445868,
-0.1213747486,
-0.3216537833,
0.2290769666,
0.2462404072,
-0.1058726832,
0.0501149371,
-0.4813446999,
0.2258370221,
0.1582837552,
0.1349747479,
-0.3481027186,
0.3441741467,
-0.1229182407,
0.2195465863,
0.1047323644,
-0.1308389604,
0.0267214347,
-0.0874281451,
0.2374313176,
-0.1829233766,
-0.2527351975,
0.2110278159,
0.0596733578,
-0.0775977969,
-0.131649226,
-0.0248511415,
-0.0449595712,
-0.1225796789,
-0.0819550827,
-0.2781437337,
-0.1165944859,
0.1051631346,
0.0899020135,
-0.1584603041,
-0.0585967526,
-0.3697602749,
-0.3849270344,
-0.4459852278,
0.0305498652,
0.157679379,
0.2975449264,
0.0816138908,
-0.0980508253,
0.0294010062,
-0.2079728991,
0.2234869152,
-0.1998808682,
-0.3534651995,
0.4113299847,
-0.3731789887,
-0.4160788655,
0.2614044249,
0.0220914073,
0.3737316132,
-0.1012514085,
-0.3167950511,
0.2390439957,
0.0147838239,
0.0711359829,
0.0481068939,
0.0243746173,
0.3656806946,
0.2991913855,
-0.083576493,
-0.0022196213,
-0.0605153367,
-0.3272258341,
0.1648554653,
-0.0256713871,
-0.122940056,
0.1986220479,
-0.062950477,
0.9406852126,
0.1412901729,
0.2413070798,
0.1661653966,
-0.1129447222,
0.4408842921,
0.0252804719,
-0.1987773925,
0.4699341953,
0.1865473688,
-0.128824085,
0.4405254722,
0.0247004777,
-0.2633965313,
-0.3409617841,
-0.1362016499,
-0.2966170013,
-0.2659694552,
-0.0619153604,
-0.4346674085,
0.0295462385,
0.0995634943,
0.3591419458,
0.0119844479,
-0.2020257562,
-0.1283441484,
0.3541398346,
0.1609115601,
0.0810034946,
0.111156337,
0.027749721,
-0.3556640446,
0.2081726193,
-0.2297303677,
0.303014338,
-0.1096977741,
-0.0594627447,
0.1203695312,
0.0601956733,
-0.1285885423,
-0.1176890731,
-0.1657669097,
0.1802537739,
0.28660357,
-0.1399412453,
0.0579734631,
-0.2653037906,
0.0712223798,
-0.2397463471,
-0.3857487738,
-0.1288449466,
-0.0507722832,
0.1438617408,
-0.113882564,
-0.1488455683,
-0.1895852536,
-0.0086153569,
0.0426819436,
-0.4773967266,
0.0198343098,
0.0522460602,
-0.1922252029,
-0.5973083377,
-0.0919972658,
0.2543790638,
-0.0455902331,
0.4504948258,
0.1568407565,
-0.1105064154,
-0.084879458,
0.1198980436,
0.3877032995,
0.2372402549,
0.0012187969,
0.5603175759,
0.5252384543,
-0.0555039719,
0.0081940014,
-0.0696163327,
0.4374219179,
0.3630533516,
-0.0863809064,
-0.1898743659,
0.3563160598,
0.1148393229,
0.0354541168,
-0.0571850128,
0.205383122,
0.133277297,
-0.5102413297,
-0.4719624817,
0.1300561577,
-0.1468309611,
-0.1405249834,
0.0950471461,
0.0532120578,
-0.0068681473,
0.1086904407,
-0.2462566644,
0.913118422,
0.2651671171,
0.067239739,
0.216005668,
-0.0824182928,
-0.2941996455,
-0.1858721673,
-0.0723552331,
-0.1252141595,
-0.0863428265,
-0.1663707942,
-0.077513203,
0.2581120431,
0.3468589485,
-0.4222998321,
0.2174169868,
-0.1670358628,
-0.3780088723,
0.0818853155,
0.5075446963,
-0.3774168789,
-0.0532722063,
0.037654303,
0.1773652434,
-0.010240661,
0.3465308845,
0.0604440011,
-0.2979423702,
0.043152716,
-0.4988955557,
-0.1124478281,
0.3461303115,
-0.226158306,
-0.2349532098,
-0.0716045871,
0.0089761931,
0.7227212191,
-0.1210241467,
-0.0347098224,
0.4353791177,
-0.2751654685,
0.138790369,
0.2009329051,
-0.0065447711,
0.1138906628,
0.068981111,
0.4310766459,
-0.158267349,
-0.4918519855,
0.4087383747,
-0.1148375571,
-0.2145386636,
-0.1990923434,
-0.0599257685,
0.4934109151,
-0.2784362137,
0.2889768779,
0.1207232699,
-0.3178956211,
-0.0564985201,
0.1999730468,
0.3405175209,
-0.0475882366,
0.0747291222,
0.1748934686,
0.3464392424,
-0.1109565049,
0.1539157331,
0.0442742705,
-0.135470897,
0.3264219463,
0.0028589887,
-0.1548710614,
-0.3755821884,
-0.2463162094,
0.262142539,
-0.0810602605,
-0.3931864202,
-0.0523034036,
0.0377226993,
-0.0406173989,
-0.0396577567,
-0.2326103598,
0.0688157007,
-0.2240626812,
-0.3288523853,
-0.5001001954,
0.1014626697,
0.0288227927,
0.0450441577,
-0.1280137897,
0.1894278824,
0.1584779918,
-0.0129205771,
-0.4216402769,
-0.1971442699,
0.1710055172,
-0.122327961,
0.0681807995,
-0.0690472201,
0.0416022539,
-0.1131322533,
0.2737939358,
-0.2037182301,
-0.2238382548,
-0.1887044609,
0.1229993477,
0.1728944033,
0.3137179017,
-0.345744282,
0.1229861528,
0.0745066628,
-0.4937860072,
-0.0301404204,
0.0085522309,
0.0417434759,
0.0282937679,
0.0160855092,
-0.0088199116,
-0.1768780202,
-0.1435328275,
-0.0389599986,
-0.1442471892,
0.3116347194,
-0.1714343578,
0.2380313128,
-0.119472146,
-0.2540302873,
0.1834474653,
0.2053032815,
0.1931218356,
0.1906971484,
0.4732626081,
-0.1793283373,
0.1348806769,
-0.0472662374,
0.3454933167,
0.1774002016,
-0.1461557299,
0.0656652972,
0.2575713396,
0.2544702888,
-0.3554127514,
0.1240426004,
-0.3695872128,
-0.0313233882,
0.1363680959,
0.014082497,
-0.000170195,
-0.2253753841,
0.0472289026,
0.0483548902,
0.1229792014,
-0.0277757701,
0.1786258221,
0.0958763212,
-0.4754770994,
0.1279132664,
0.3168299496,
0.1108750105,
-0.0419593342,
0.2275875658,
-0.4889585376,
-0.0647492558,
0.2910696566,
-0.0063101607,
0.1538233012,
-0.0786974877,
0.2011053711,
0.0520533323,
-0.2148550451,
0.1460285485,
0.0649781153,
0.0085323434,
-0.0712780878,
0.2324315161,
-0.2585433125,
0.1003745645,
-0.0899642706,
0.2958646119,
0.1186013073,
-0.1608634293,
-0.078730166,
-0.1719962209,
0.1713983268,
-0.2217851877,
0.0742166042,
-0.0794570222,
-0.2607751787,
-0.0953275263,
0.1157416031,
0.2103073895,
0.2560728788,
-0.1826035976,
0.10211505,
-0.0719265416,
-0.0958987772,
0.3926455975,
0.4677743912,
0.2533332407,
0.0129712811,
0.1613485515,
0.1980664879,
0.2357166559,
-0.323245436,
0.1533449441,
-0.0012718783,
0.3853881061,
0.1441129893,
0.0537368953,
0.1577498168,
-0.1565941572,
-0.2507534027,
-0.0310460795,
0.175542146,
-0.2418478727,
0.1174170822,
-0.2104203105,
-0.3866785467,
-0.2679504752,
-0.1925606728,
-0.4220294058,
-0.1732831895,
0.3453668654,
0.0377859399,
0.0997592732,
-0.6880345345,
0.0824026316,
0.2342957556,
-0.0987365767,
0.3338076174,
0.1336069852,
0.1149058491,
0.002549554,
-0.5739606023,
0.2366114408,
0.2947492898,
-0.1403719634,
-0.1261076927,
-0.1331419647,
0.2390980273,
0.1229029521,
0.3456884921,
0.0561828986,
-0.2179189771,
-0.1025901139,
-0.1292083412,
-0.0943297446,
0.1906166524,
0.3594829142,
-0.1089586392,
-0.3539526761,
0.3779467046,
-0.3124950826,
0.1404391825,
-0.1304068118,
0.2882282734,
-0.2608386576,
-0.1769796759,
0.3078220487,
0.1332695782,
0.2744282484,
-0.2819114327,
0.0350837186,
-0.1281608343,
0.0838154107,
-0.2582378685,
-0.0946980268,
-0.0909352675,
0.2766830921,
0.2571798563,
-0.3040964007,
-0.0440098047,
-0.1775186956,
-0.1752289236,
-0.1350397617,
-0.1536156833,
0.2034770846,
-0.2534885108,
0.3398330808,
0.0868172348,
-0.0185931232,
-0.0685780942,
-0.4231358171,
-0.2025675625,
-0.3627282977,
0.4484578073,
-0.1584553123,
-0.0992309898,
-0.2916770279,
0.4169131815,
-0.2073757499,
-0.0528290682,
-0.1476710141,
0.1765175164,
0.1777086705,
-0.2636719942,
0.0283918343,
0.0106496401,
-0.2521773279,
-0.1253086776,
-0.0986906365,
0.4692528844,
0.0778864771,
-0.0260195825,
-0.0983491018,
-0.1788565814
] |
https://github.com/huggingface/datasets/issues/4230 | Why the `conll2003` dataset on huggingface only contains the `en` subset? Where is the German data? | Thanks for reporting @beyondguo.
Indeed, we generate this dataset from this raw data file URL: https://data.deepai.org/conll2003.zip
And that URL only contains the English version. | ![image](https://user-images.githubusercontent.com/37113676/165416606-96b5db18-b16c-4b6b-928c-de8620fd943e.png)
But on huggingface datasets:
![image](https://user-images.githubusercontent.com/37113676/165416649-8fd77980-ca0d-43f0-935e-f398ba8323a4.png)
Where is the German data? | 24 | Why the `conll2003` dataset on huggingface only contains the `en` subset? Where is the German data?
![image](https://user-images.githubusercontent.com/37113676/165416606-96b5db18-b16c-4b6b-928c-de8620fd943e.png)
But on huggingface datasets:
![image](https://user-images.githubusercontent.com/37113676/165416649-8fd77980-ca0d-43f0-935e-f398ba8323a4.png)
Where is the German data?
Thanks for reporting @beyondguo.
Indeed, we generate this dataset from this raw data file URL: https://data.deepai.org/conll2003.zip
And that URL only contains the English version. | [
0.241450116,
-0.2146852612,
-0.0759354979,
0.435505718,
-0.1448031962,
0.100564003,
0.2667833269,
-0.0426930152,
-0.4305933714,
0.2462078035,
-0.2756232321,
-0.1968287975,
0.3500419855,
0.3912379742,
0.1714205891,
0.0027181183,
0.2324377,
0.1060012281,
-0.3268754184,
-0.5004321337,
-0.294485569,
0.4673647881,
-0.1981758773,
-0.2001627684,
-0.3680095971,
0.418741405,
-0.1216318458,
0.2347957492,
-0.2254829258,
-0.1704820842,
0.6192387938,
-0.2008143067,
0.1827615201,
0.1320382953,
-0.0001244298,
-0.0431917123,
0.1887490153,
-0.4027318656,
-0.1004267856,
-0.09657038,
-0.2857123017,
-0.0386661477,
-0.0124435006,
-0.1294165552,
-0.1734560132,
0.1417911649,
-0.0848948061,
-0.0094163017,
0.1509375274,
0.1154625714,
0.0912277102,
0.2489277571,
-0.1798378974,
-0.115667358,
0.1629758179,
0.1455686241,
-0.2277545631,
0.0652017742,
0.138630867,
0.1728144288,
-0.0405530892,
0.3391871452,
0.3055771291,
-0.1106169894,
-0.0323887728,
0.1889073551,
-0.2219304889,
-0.3989972472,
0.3587523997,
0.4485549927,
0.3263055682,
0.0809172466,
-0.2781607509,
-0.047169365,
-0.2675578594,
-0.2628042698,
0.1630478203,
0.3029273748,
-0.2529267371,
0.3830700219,
-0.2287585884,
-0.4061354399,
-0.2173459381,
0.291734606,
-0.4048158228,
0.6394379139,
-0.2202782035,
0.0552225672,
0.1475010514,
0.283043474,
-0.0050744442,
-0.0378385931,
-0.0192378443,
0.049320329,
-0.0131020313,
-0.1948647946,
-0.1080489457,
0.1818686277,
0.3763928413,
0.0252927765,
-0.3777885735,
-0.029959118,
-0.2106720954,
-0.0167744104,
0.303953439,
0.136942327,
0.480815202,
-0.1313369423,
0.3081773818,
-0.3337629437,
0.2103630155,
0.0111808497,
-0.0598483123,
0.1449840516,
-0.4466406107,
-0.1607736051,
-0.2004078031,
-0.4483769536,
-0.2066464573,
-0.0131754102,
-0.0885589421,
-0.3481422365,
0.0282464661,
0.3956649005,
0.057638973,
0.1388214231,
-0.205416441,
0.3412880599,
-0.0947227553,
-0.4829421639,
-0.1524228752,
-0.0539158136,
-0.2620356679,
-0.1558696777,
0.1016839743,
-0.4924447834,
0.535872817,
0.0161687061,
-0.0139917629,
0.1501948684,
-0.0557732396,
-0.0378064178,
0.3949028254,
0.097661607,
0.0438312329,
0.149589628,
0.1998841166,
-0.1644874662,
-0.3313599527,
-0.0897752792,
-0.2716166675,
0.0892075822,
-0.3054083586,
-0.0444893651,
-0.3921565711,
-0.2207234055,
0.2979900241,
0.3136798441,
-0.1190697253,
0.0286505185,
0.1769037843,
0.2189458609,
-0.5851140618,
-0.0563242137,
0.3412004709,
0.3562873304,
-0.3330410719,
-0.32049191,
0.1452874094,
-0.2688241005,
0.1852371544,
0.3300923407,
-0.1810132116,
-0.3347397745,
-0.3937499225,
-0.0142823402,
0.0364133753,
-0.1700618863,
-0.3615095913,
0.0882201195,
0.1385421157,
0.0092349686,
0.1726930737,
-0.0764353201,
0.0038476554,
0.0264997706,
0.0349422693,
0.1008360982,
0.2696006894,
-0.3294909894,
0.1592723429,
-0.072884813,
0.3741582334,
0.0070484788,
-0.053970743,
0.2061125636,
0.2269206643,
-0.1518750489,
0.3241988719,
-0.0447576717,
0.2142712921,
0.6843752265,
0.0637446195,
0.1345206201,
0.1597545147,
0.197545886,
-0.3915112615,
0.1062674746,
0.0179867633,
0.3555735648,
0.1796656102,
0.0597109459,
-0.1915981621,
-0.0301965754,
-0.0857395902,
-0.4768825769,
-0.0216098297,
0.3559823036,
0.2571648061,
0.2365935147,
-0.0826641917,
0.4155926406,
0.1874200851,
-0.073993139,
-0.3110263646,
0.3460059166,
0.0712712854,
-0.0237145759,
-0.0052920724,
0.3740167916,
-0.0791976601,
-0.208618924,
0.0319697037,
-0.0220065713,
0.2725886405,
0.0590709783,
0.4058435261,
0.1663077325,
0.2162217349,
-0.2350915223,
0.027741015,
-0.0781358853,
-0.0397743359,
0.1057222337,
-0.1712536961,
0.3825592697,
0.4478970766,
0.1401925832,
0.0028891133,
0.1896737069,
0.1301361322,
-0.2168892175,
-0.225119099,
-0.5397644043,
0.2774809599,
0.0363329165,
0.5227508545,
0.4301806688,
-0.5926784277,
0.0296794455,
0.5521556139,
-0.0435841009,
0.0754491538,
0.2470488101,
-0.346529007,
-0.0566163324,
0.3428995907,
0.4278430939,
0.2136477977,
0.2416412234,
0.3874382675,
-0.0013891887,
0.1816480905,
-0.1051593497,
0.223339349,
-0.059166383,
0.2179113477,
-0.2714240551,
-0.0284152385,
-0.1556792408,
-0.4585414827,
0.2880946696,
-0.1353268027,
-0.1421411783,
0.0179752745,
0.045936659,
-0.5468419194,
-0.3406944871,
-0.1912167221,
-0.1707809865,
-0.5103985667,
-0.1060408279,
-0.0960397348,
-0.3603363335,
0.0781117603,
-0.1528121233,
-0.2191196233,
0.1364136189,
-0.24273628,
0.075834915,
-0.3484950364,
-0.2389979362,
-0.3735851347,
0.0047471174,
-0.144412145,
-0.179723829,
0.0867685303,
-0.5850490332,
0.0987159237,
0.0221725386,
-0.5976377726,
0.4357544184,
-0.2153151482,
-0.0210971255,
0.0515746512,
0.1985606551,
-0.4772593975,
0.1271844804,
0.2525012195,
0.1198258474,
-0.2962413728,
0.1782447547,
-0.0916713923,
0.0500914603,
-0.0938339084,
-0.3113160729,
-0.3167790174,
0.035741508,
0.2175224572,
-0.1953670382,
0.0304952599,
0.2861248553,
-0.1172478199,
-0.0807482451,
-0.5388548374,
0.2168184072,
-0.3914983273,
-0.5263745189,
0.3922739625,
-0.1693049371,
-0.41666466,
0.0495052189,
0.0081249457,
0.1895561069,
-0.2073766291,
-0.5317873955,
-0.1306527257,
-0.2865446806,
0.2782571912,
0.0193191189,
0.176945433,
0.3017416894,
-0.2188378125,
0.1226856187,
-0.3519257307,
-0.3075497746,
0.1683271527,
0.0296899099,
0.2888786495,
-0.1713962555,
-0.0649804696,
0.2120883912,
0.1687805653,
0.3122321367,
0.1655689627,
0.5164268613,
0.0861368328,
0.5721985698,
-0.0561016276,
-0.1675638855,
0.2328578681,
0.0454483405,
0.2759846747,
0.360548079,
0.3260761499,
-0.1798980087,
-0.3666693866,
-0.0948024318,
-0.1211625487,
-0.0502930097,
-0.1290370375,
0.3211709261,
0.3042151928,
0.0489107482,
0.1256856322,
0.0418458767,
-0.0298414622,
-0.0918899402,
0.1083768979,
0.1425516158,
0.2232379168,
-0.3778630793,
-0.1585346609,
-0.5128077269,
0.0650814846,
-0.0712115243,
0.4186734557,
-0.3154893219,
0.040489357,
0.1599268168,
0.2081939131,
0.7154914737,
-0.0286068097,
-0.0840276703,
-0.3526957631,
-0.394484669,
-0.532948792,
0.2726691961,
-0.0934096277,
-0.3343231976,
0.6760185361,
0.3919980824,
-0.1717745811,
-0.3923866451,
0.0752059147,
0.3290878534,
-0.1175858006,
0.0052281036,
-0.1830445528,
-0.1807863861,
-0.0784941763,
-0.1790237874,
0.0734451488,
-0.1145289764,
0.1895412505,
0.0790652931,
0.3095628321,
0.1264365613,
-0.0292517263,
0.2259477079,
0.1681942344,
0.1591178328,
-0.1838291138,
0.3532272279,
0.4081449509,
-0.0046289111,
0.642786324,
-0.0657467097,
-0.5646921992,
0.2813382745,
0.0488022827,
0.5235332847,
0.2629858255,
0.1786854565,
-0.0755351782,
0.1692403555,
-0.1527860612,
-0.3237448037,
0.0166072454,
0.2501061559,
0.2289896756,
-0.2124094069,
-0.2795919478,
0.3437131345,
-0.1101654246,
0.0411422811,
-0.2311635166,
0.2702565491,
-0.1089287773,
0.1704101562,
0.07178507,
0.9822686911,
0.3592432141,
0.4137246609,
0.1676220745,
-0.3200663924,
0.2768558562,
0.2287277132,
-0.2399184257,
-0.0405678563,
-0.1467864811,
-0.1945355535,
-0.132653743,
-0.1493050158,
0.0294283237,
-0.060396459,
0.1703501642,
0.1004958227,
-0.2708424926,
0.2231855094,
0.136183247,
-0.1784616411,
-0.1027763039,
0.0651149079,
-0.0046201935,
0.2262525707,
0.601514101,
0.0935295895,
-0.1490119845,
-0.4403187335,
-0.2400258034,
-0.3139371276,
0.1232367232,
-0.3020658195,
0.0548107065,
0.303014338,
-0.5119557381,
0.0364220254,
0.5810344815,
0.5008723736,
0.0379964188,
-0.2448272109,
0.1614508927,
0.1622713506,
0.1003391966,
0.2892275751,
-0.0499802008,
-0.0831980929,
-0.1167856976,
-0.358969152,
-0.0840543658,
-0.0509001724,
-0.0527094305,
-0.1938779205,
0.2568383813,
-0.4836370647,
0.0409452766,
-0.1473498791,
0.2239140421,
0.1339265108,
-0.2281848341,
0.0050350823,
0.3077243268,
0.0201568156,
-0.1958798319,
0.0251009632,
-0.4604476988,
-0.251575619,
0.2894109488,
0.0602926798,
0.1359951347,
0.2995513082,
0.1914111227,
-0.1438350081,
-0.1092882529,
0.2157126069,
0.1082746461,
-0.3828817308,
-0.2181408554,
0.0865055993,
0.009259671,
-0.412127763,
0.1652800441,
-0.0205040555,
-0.2953587174,
-0.1880334914,
-0.2906228304,
-0.0350588411,
0.2623248994,
-0.1963947862,
0.1415908337,
0.1420525312,
0.0746644661,
-0.0480769314,
-0.0737812668,
-0.1887141317,
-0.0419486649,
-0.0203903839,
-0.097703509,
0.1611531675,
-0.0470973328,
0.1831697226,
-0.1151476726,
-0.0154930279,
-0.1983475238,
-0.1261879653,
-0.088649191,
-0.1823122203,
0.1036704853,
0.0917644575,
-0.1507455409,
0.0077105942,
0.1161019728,
-0.0512115657,
-0.1277989298,
0.1301221997,
0.298252821,
0.1745993048,
0.4742082357,
-0.3560159504,
-0.0829471722,
0.1817032993,
0.170888111,
0.1855214387,
0.2539547682,
0.0983643532,
0.3434684873,
-0.0352840871,
0.0668346882,
0.1994776875,
0.0863015354,
-0.2979836166,
-0.126468733,
-0.0290958919,
-0.0182731748,
0.2794276178,
0.1638100445,
0.0191643964,
-0.014203541,
-0.1234566271,
0.1148333102,
0.3537417352,
0.0988295153,
-0.2069836259,
-0.1539523154,
0.0988705978,
0.2208559811,
0.0764923245,
0.1785641611,
0.2705297172,
0.1345767826,
0.4922556579,
-0.3178775012,
0.1459871829,
0.3445349038,
0.2976651788,
0.208529532,
0.0903944001,
0.2939818203,
0.0949467644,
0.2443409562,
0.0601105876,
-0.0033160225,
0.5129237771,
0.0124651687,
-0.073704429,
0.2005209923,
0.2055825293,
-0.1890848577,
0.0955424234,
0.1106863767,
-0.050806798,
0.0949550495,
-0.0492537245,
0.571252346,
-0.1177465171,
-0.0155851739,
-0.3336335123,
0.2994700372,
-0.0854363292,
-0.1807909459,
-0.0197139811,
-0.1353515387,
0.039609585,
0.2801901698,
-0.0514774062,
-0.3864881396,
-0.0389174744,
0.1617704481,
-0.1272819936,
-0.1779737324,
-0.1812586039,
0.1209260672,
-0.3105266094,
0.0161531903,
0.4337157011,
0.1446595788,
-0.1302079409,
0.0295595285,
0.3841898441,
0.1690031141,
-0.1724965274,
0.4721443951,
-0.1771738827,
0.1301402897,
-0.1403750926,
-0.2451565415,
0.1328189522,
0.318983078,
-0.0060125547,
0.3414826095,
0.0616377965,
0.0389680378,
-0.1622571498,
0.159457162,
0.0792268366,
-0.1013211086,
-0.1802797765,
-0.4150589406,
0.1580225974,
-0.0880276784,
-0.0455347635,
-0.5016361475,
0.2470210344,
0.1496071517,
-0.1496336758,
0.0189149342,
-0.1384736449,
-0.0093344729,
-0.1743347198,
0.1371356696,
0.3459754586,
0.2639029622,
-0.0024857458,
-0.6588703394,
-0.2146394104,
0.2106986493,
-0.0277709346,
-0.075119704,
-0.0722851828,
-0.0252763256,
0.3127169311,
0.1298638135,
0.0509145744,
0.210309267,
-0.1530829817,
0.1640060097,
-0.1794629097,
0.0618771017,
0.251328826,
0.4620853961,
-0.1744550467,
0.087618351,
0.3323718905,
0.1601622105,
-0.0661770105,
-0.1825340539,
0.2284642905,
-0.2074322701,
-0.1659841239,
0.2688733935,
0.3205892742,
0.3998617232,
-0.3611189425,
-0.130055666,
0.0989038646,
-0.2429351658,
-0.073777698,
0.0674371123,
-0.2290088385,
-0.0123302992,
-0.3308668435,
-0.3584827781,
0.1160638928,
0.5048750043,
0.117959328,
-0.0516013578,
0.1366364211,
0.1049753651,
-0.1102042273,
-0.2749273479,
0.3539326787,
0.3603772223,
0.0140960002,
-0.3449823558,
0.079215996,
0.0914564505,
0.195619151,
-0.2156492621,
-0.0720054582,
-0.1183875054,
-0.1322483271,
0.1934744269,
-0.1283583045,
-0.2040828764,
0.1030834839,
0.1147672161,
0.2430069298,
-0.183942765,
0.2309462726,
0.0588914305,
-0.2623920739,
-0.0619241036,
0.7732937336,
0.3933511078,
-0.5757271051,
0.136857599,
-0.169705376
] |
https://github.com/huggingface/datasets/issues/4221 | Dictionary Feature | Hi @jordiae,
Instead of the `Sequence` feature, you can use just a regular list: put the dict between `[` and `]`:
```python
"list_of_dict_feature": [
{
"key1_in_dict": datasets.Value("string"),
"key2_in_dict": datasets.Value("int32"),
...
}
],
```
Feel free to re-open this issue if that does not work for your use case. | Hi, I'm trying to create the loading script for a dataset in which one feature is a list of dictionaries, which afaik doesn't fit very well the values and structures supported by Value and Sequence. Is there any suggested workaround, am I missing something?
Thank you in advance. | 48 | Dictionary Feature
Hi, I'm trying to create the loading script for a dataset in which one feature is a list of dictionaries, which afaik doesn't fit very well the values and structures supported by Value and Sequence. Is there any suggested workaround, am I missing something?
Thank you in advance.
Hi @jordiae,
Instead of the `Sequence` feature, you can use just a regular list: put the dict between `[` and `]`:
```python
"list_of_dict_feature": [
{
"key1_in_dict": datasets.Value("string"),
"key2_in_dict": datasets.Value("int32"),
...
}
],
```
Feel free to re-open this issue if that does not work for your use case. | [
-0.046249602,
-0.4512825608,
-0.170710057,
0.1658608615,
0.093263872,
-0.0161834396,
0.1318405122,
0.1520017833,
0.4049992263,
0.1299023777,
0.1432440877,
0.223382771,
-0.070746623,
0.7212549448,
-0.1806515455,
-0.2812748551,
-0.0481466874,
0.1059780419,
0.0737303942,
0.073952347,
-0.1253979951,
0.1502588838,
-0.2813602984,
-0.1048052609,
-0.0397459157,
0.0884202421,
-0.2027263641,
-0.0714694262,
0.347345233,
-0.6424142122,
0.123168923,
0.4423502982,
0.0396260917,
-0.0616152324,
-0.0001189928,
-0.2761025131,
0.4679419994,
-0.2269837856,
-0.3569720089,
-0.2296674848,
-0.199814707,
-0.3822999299,
0.5282430053,
-0.2746614218,
-0.3254593611,
0.0205431636,
-0.0372579657,
-0.4556129277,
0.367881,
0.2061426342,
0.1467750669,
-0.2795571387,
0.0973109528,
-0.0669891611,
0.3817410171,
0.1910148114,
-0.0934451297,
0.1437963545,
0.6928072572,
-0.0551415794,
0.1309111714,
-0.2285545766,
-0.1546840072,
-0.3476566672,
0.5730137229,
0.090143837,
0.267570436,
-0.3771878779,
-0.359654814,
0.2192951441,
0.8294892907,
-0.1067890301,
-0.2861171663,
-0.3250894845,
-0.1882962286,
-0.4314510822,
0.1597897261,
-0.3037927449,
-0.0459428281,
0.1378307194,
0.1568042487,
-0.0713413358,
-0.088976562,
0.2812311351,
-0.0404208377,
0.1910972744,
0.0266956054,
-0.0235367902,
-0.1586868465,
-0.2278683335,
-0.0469960272,
-0.0702571124,
0.2840810716,
0.1217123717,
-0.223154068,
-0.1099509448,
-0.0205840599,
-0.0605249405,
0.1812093109,
0.248586759,
0.0800034702,
0.0705952719,
-0.3803007305,
-0.0179965552,
0.359307915,
0.2372664213,
0.4035008848,
-0.3601958156,
-0.0724302009,
0.276925236,
0.0469811857,
0.0886486173,
-0.0106550651,
-0.0637016222,
0.0556451492,
0.0773449466,
0.1296598464,
-0.1306475848,
-0.2417448461,
0.2022348195,
0.2086495012,
0.0122063989,
0.1516166776,
0.4181008041,
-0.2922096848,
0.2368131131,
0.0213952996,
0.2213555574,
0.1174701303,
0.059038166,
-0.0382067636,
0.0097807376,
-0.0412078872,
0.0462836586,
0.2541353106,
-0.0828811601,
0.2696802914,
0.0417940021,
0.2771687806,
-0.2652035356,
-0.0759028792,
-0.198762238,
-0.1253006458,
0.1631772369,
-0.1962165833,
0.009763794,
-0.0135485698,
-0.1114702895,
-0.2688688934,
0.2258906811,
-0.1395948082,
-0.0416631252,
-0.0601224415,
0.1419021487,
-0.1973285377,
-0.0230838694,
-0.0382767282,
0.2280866206,
0.1223533079,
-0.0543711856,
-0.2220020741,
0.0071188151,
-0.7168328762,
-0.3807497025,
-0.0536603071,
0.3040605485,
-0.5698955059,
-0.1325670481,
-0.0875264555,
0.0177258328,
-0.0082814638,
-0.0525143966,
0.0172168706,
0.2265293896,
-0.2068644166,
-0.0014503073,
0.2323720604,
-0.4347223043,
-0.1605602503,
0.3504544497,
0.0586431362,
0.1688178927,
0.2535909414,
0.3871676326,
0.5119778514,
-0.3412386179,
0.2434355468,
0.4065400064,
0.0434695035,
-0.1471085101,
0.1205266565,
-0.1337740123,
0.445345819,
0.1502158046,
-0.3017046154,
0.0290647373,
-0.2211325616,
-0.2671983838,
0.1764097214,
0.0397761762,
0.0167352688,
0.2715829015,
0.094026044,
0.566649735,
0.1651080996,
-0.2676758468,
-0.6147459149,
0.3075072765,
0.0063524581,
-0.2677968144,
0.0350964181,
-0.2073162049,
-0.4082702994,
0.2199755311,
-0.2012044936,
0.2515418828,
0.0364015736,
-0.1001542062,
-0.1090351343,
-0.0940639377,
-0.0963774398,
0.2330831885,
0.1894198209,
-0.1068899632,
-0.2856429815,
0.3583069444,
0.0179247763,
-0.0724951997,
0.2625323832,
0.3109193742,
0.2497436553,
-0.0529364683,
0.0386242904,
0.1483461261,
0.8869811296,
-0.3456225395,
-0.3866567314,
0.2108546644,
0.2854633927,
-0.0646300912,
0.2216624767,
0.2667868137,
0.191100806,
-0.3415016532,
-0.2751635611,
0.5970080495,
-0.2402753234,
0.2891125679,
-0.0674559921,
0.2141904533,
0.4508869946,
-0.0050322074,
-0.1291974634,
-0.3869549334,
0.1643774509,
-0.0465266854,
0.0836555213,
0.0411108211,
-0.2710931599,
0.1041809842,
0.0665127784,
-0.0794601068,
0.1976571232,
0.2773538828,
0.2292713374,
-0.1658056974,
-0.1020847932,
-0.3614659011,
0.1437122226,
0.1009107754,
-0.3632026017,
0.0466103107,
-0.0443613864,
-0.0748455226,
0.2180693597,
-0.2062769979,
0.1867044717,
0.2407663763,
0.1595994085,
-0.0981995389,
0.1215297207,
-0.3787432611,
-0.0019334218,
-0.1225768179,
-0.2961784899,
-0.2119769454,
-0.2687250078,
-0.1018810347,
0.310333699,
-0.2189504355,
0.0780742764,
-0.4335143566,
0.068624787,
0.1052973494,
-0.0226644054,
0.0829315633,
0.2285619974,
0.0658746064,
0.1621020138,
-0.1830590665,
-0.05840417,
-0.3823064864,
0.0641353801,
0.0023696311,
-0.0706431791,
0.369263649,
0.2841461003,
0.076757893,
-0.2435485274,
-0.2377451807,
-0.2604746222,
0.123521708,
0.0342575498,
0.1829411536,
0.3446880877,
0.197281763,
0.2992582023,
-0.0786399469,
0.0321304686,
0.394110173,
-0.3095476627,
0.1741800308,
0.1418125033,
-0.013493414,
0.0765871033,
-0.235574469,
-0.2443116903,
-0.308629483,
0.1322305799,
0.4134590626,
0.3325935304,
0.1554553062,
-0.008885975,
-0.0580807887,
0.1491835564,
0.3193129897,
-0.19596605,
0.5716267824,
0.1805756092,
-0.1946721971,
-0.3475163579,
0.0544553399,
-0.1825038642,
-0.075774312,
0.0263150968,
-0.2433121204,
-0.0414513573,
-0.3765144348,
0.3023117483,
0.0288425088,
0.0225378685,
0.2367355078,
0.2202737182,
0.1453631222,
-0.0642955527,
-0.1982217729,
0.1408779919,
0.0279875062,
-0.1301562041,
0.2775525153,
0.6170358658,
-0.5521563292,
0.2099923044,
0.2318207473,
-0.0563628636,
0.3486996889,
-0.1254516393,
-0.0999831185,
-0.4785789549,
0.0601745583,
-0.3370320797,
0.0017571339,
-0.2479835898,
0.2360033542,
-0.1649487317,
-0.1049449071,
-0.0973476022,
0.1036630422,
0.0159037691,
-0.0219855551,
0.0564398095,
-0.3701232374,
0.0828335434,
-0.1814056039,
0.0417651162,
-0.1170881018,
-0.1189045385,
0.0065741874,
0.0233389642,
0.2329667807,
-0.361261934,
-0.2807167172,
-0.0092913788,
-0.2129001617,
-0.0269943643,
0.2166492492,
0.0991116613,
-0.1988561302,
-0.0101523725,
-0.1292426884,
0.1360038221,
0.5552917123,
-0.1898207217,
0.1380555481,
0.1372266263,
-0.3800950348,
0.0906356797,
-0.0934029967,
-0.0580578595,
0.0888218731,
-0.1633864045,
0.3065549731,
-0.2904231846,
-0.2331285626,
-0.085464552,
0.4232659638,
-0.2745884955,
-0.4344219267,
-0.0608064234,
-0.0088130301,
-0.5277043581,
-0.5270119309,
0.2141359448,
0.0707802773,
-0.0751605853,
-0.4207072556,
-0.3179587126,
-0.2028736621,
0.09019012,
-0.1041796505,
0.3009878695,
-0.1051973552,
0.4469848275,
-0.1123402119,
0.1081910282,
-0.2539649606,
0.2400655299,
0.2642770708,
-0.3275774419,
-0.0068667405,
-0.1803945601,
0.1138453037,
0.1183241233,
-0.0263846796,
0.0791918486,
-0.4110857546,
-0.0470126607,
-0.3480218649,
-0.2842424512,
0.1197118089,
-0.0326705165,
-0.29630813,
-0.610684514,
0.322420001,
0.0783013031,
-0.3097091317,
-0.0204187315,
-0.1818652004,
-0.2126481831,
0.6980809569,
0.1697246432,
0.8080041409,
-0.2367161363,
0.0776059255,
0.4769248366,
0.2930557728,
0.2038347423,
0.2007444203,
-0.1710087508,
-0.4697274864,
-0.3482843935,
-0.0869784281,
-0.0327761546,
-0.1852401793,
0.2536846697,
-0.6104797721,
0.4843079746,
-0.5161294341,
-0.0840078667,
-0.0767057315,
0.1106656194,
0.3188463449,
-0.1316720694,
-0.1207899153,
0.0396294892,
0.2779881954,
-0.0630106628,
-0.2735729218,
-0.0199320428,
0.043572437,
0.1498797536,
-0.3977626264,
0.0254093185,
-0.0686855465,
0.2291389406,
-0.0014269103,
0.2433772236,
0.315652281,
0.6047175527,
0.1533823162,
0.1292870045,
-0.0736995414,
-0.0722482204,
-0.0769077316,
-0.0988730416,
-0.1194651276,
-0.0779108852,
0.3019707203,
-0.0052477536,
-0.1236798242,
0.0745419189,
-0.0523337647,
-0.0308601297,
-0.1108576655,
0.0798376128,
-0.1757641733,
-0.3581697941,
-0.6699895263,
-0.1816569567,
-0.1016958654,
0.0113749541,
0.0872465298,
0.3589833379,
0.0681452975,
0.0849186257,
0.065292418,
-0.0260209385,
-0.0554005578,
0.0036093132,
0.4552602768,
-0.1340445727,
0.4324486554,
0.5098875165,
-0.1528184563,
-0.1936437637,
-0.1354251504,
-0.0559156649,
-0.1335020363,
0.2796684802,
0.0328171514,
-0.352399677,
-0.1818494946,
0.6086480021,
0.0362791121,
0.2895681858,
-0.0096878661,
-0.3957570195,
-0.1968741715,
0.2034674287,
0.0940129012,
0.1949352324,
-0.3233680427,
-0.4421373308,
-0.1871782392,
0.0454199053,
-0.2079062462,
-0.2800553143,
-0.0322727598,
0.0591144748,
0.1435358077,
0.1205629036,
-0.137443617,
0.155335933,
0.1495114863,
-0.2017550319,
-0.0029916796,
-0.1529201865,
-0.0722791478,
0.1622056216,
0.017655801,
0.1654712111,
-0.2568818331,
-0.228907451,
-0.2302145213,
-0.3397035599,
-0.0486137941,
0.2048762888,
0.0616265647,
0.26638183,
0.327175498,
0.136503458,
-0.0062808986,
0.2683414519,
-0.0726013258,
0.2836204469,
-0.082041271,
-0.0585239343,
-0.180259943,
-0.1736923307,
-0.3478017449,
0.3070158958,
-0.135208264,
-0.1376637667,
0.3375943899,
0.2210403979,
0.0213251617,
0.3914761543,
0.1796311587,
0.4296334684,
-0.2072210163,
0.0782145411,
-0.0033391749,
0.1626951545,
-0.3803815842,
-0.3470334113,
0.1119398624,
0.1125970408,
0.0008323257,
0.3110020757,
0.114552252,
0.0013223067,
-0.119559966,
-0.0701922029,
-0.2128001153,
-0.1996897161,
0.0274999496,
0.2465978563,
0.4094802141,
-0.0927412212,
0.0496499725,
0.2706280351,
0.2925355434,
0.3338958025,
0.2348723561,
0.0749742091,
0.3227992952,
0.2361791283,
0.2447648346,
-0.2504471838,
0.1683991551,
0.5184009671,
-0.1367760599,
-0.1352581233,
0.2897870243,
-0.3292039037,
0.3011075258,
0.1267334819,
-0.2407540381,
0.1030997336,
0.012111621,
-0.3021205664,
0.241448611,
-0.0622077845,
-0.452041775,
-0.2457783967,
-0.1348153949,
-0.0812570676,
0.1806098521,
0.0033869355,
0.2856386602,
-0.2753641605,
0.7117035985,
0.0874574408,
0.2593799829,
-0.0586070493,
0.0904021338,
-0.0664175525,
0.1319217086,
0.1970617324,
-0.1178637445,
0.3038159609,
0.6028250456,
-0.3147420287,
0.1393565983,
-0.1232540384,
-0.3411880434,
-0.2419892401,
0.1734832674,
-0.1671851128,
0.3465702534,
0.3755081892,
0.0717974156,
-0.0350475423,
0.2135507017,
0.3740823865,
-0.1818882525,
-0.1626143754,
0.4997572601,
0.1622719318,
-0.0732484534,
0.0113806874,
0.1967005134,
-0.3975435197,
-0.3917452395,
0.2553153634,
0.3052212,
0.2863810062,
0.2976034284,
0.0709224567,
-0.2334834784,
0.2176710218,
0.2070723176,
0.446824342,
-0.1469655633,
0.0396976322,
-0.2028340846,
-0.1229193881,
0.0337556526,
-0.4310970902,
0.6553041935,
0.1517422199,
-0.0292394497,
0.226212576,
-0.1670312583,
-0.0187964588,
0.1214609817,
0.0447571948,
-0.2793579698,
-0.3097159266,
0.1199988052,
0.3209986985,
-0.1627558917,
-0.1228851676,
0.0758859515,
-0.0529287197,
0.051758457,
-0.2413004637,
0.097465001,
-0.1734104902,
0.1402684599,
0.0326282009,
-0.0842858404,
0.3476970196,
-0.133126393,
0.1864527315,
0.0530169122,
-0.1469322145,
0.0605896004,
0.240455389,
0.0700022131,
-0.0152175371,
-0.0855726972,
0.454236716,
0.0759774074,
0.0882800668,
0.0638260692,
-0.0800344646,
-0.5597096682,
0.2261675447,
-0.1811411381,
0.2190135121,
-0.047349114,
0.2678973079,
-0.1862896532,
0.2738000751,
0.2603799701,
-0.2737369835,
0.4179801643,
0.2398237735,
-0.1766735762,
0.0834861994,
-0.0135332597,
0.0595293641,
0.0868278444,
-0.0384227373,
0.0033102809,
0.3459967375,
0.0006057512,
-0.2081973255,
0.1088868454,
0.1227030233,
-0.0586316548,
-0.1708818376,
0.2910699248,
0.0994609743,
0.1702309698,
-0.3400926888,
-0.2648630142
] |
https://github.com/huggingface/datasets/issues/4221 | Dictionary Feature | > Hi @jordiae,
>
> Instead of the `Sequence` feature, you can use just a regular list: put the dict between `[` and `]`:
>
> ```python
> "list_of_dict_feature": [
> {
> "key1_in_dict": datasets.Value("string"),
> "key2_in_dict": datasets.Value("int32"),
> ...
> }
> ],
> ```
>
> Feel free to re-open this issue if that does not work for your use case.
Thank you | Hi, I'm trying to create the loading script for a dataset in which one feature is a list of dictionaries, which afaik doesn't fit very well the values and structures supported by Value and Sequence. Is there any suggested workaround, am I missing something?
Thank you in advance. | 65 | Dictionary Feature
Hi, I'm trying to create the loading script for a dataset in which one feature is a list of dictionaries, which afaik doesn't fit very well the values and structures supported by Value and Sequence. Is there any suggested workaround, am I missing something?
Thank you in advance.
> Hi @jordiae,
>
> Instead of the `Sequence` feature, you can use just a regular list: put the dict between `[` and `]`:
>
> ```python
> "list_of_dict_feature": [
> {
> "key1_in_dict": datasets.Value("string"),
> "key2_in_dict": datasets.Value("int32"),
> ...
> }
> ],
> ```
>
> Feel free to re-open this issue if that does not work for your use case.
Thank you | [
-0.0429693162,
-0.4704377353,
-0.1678056717,
0.1911447197,
0.0661601573,
-0.0045956159,
0.1355632991,
0.1641891599,
0.4212374985,
0.1347170472,
0.1320910752,
0.2042677552,
-0.085127905,
0.7377755642,
-0.1715188473,
-0.2838612199,
-0.0400621369,
0.0985410661,
0.0720809624,
0.0651337579,
-0.1098736003,
0.14833951,
-0.282238692,
-0.1230486557,
-0.014830038,
0.099099651,
-0.205032602,
-0.0863568187,
0.3466072083,
-0.6270552874,
0.1145044491,
0.4499593973,
0.0319555886,
-0.0642889962,
-0.0001205197,
-0.2599371672,
0.4574344158,
-0.2159334719,
-0.3611801863,
-0.2052757591,
-0.2063648701,
-0.3948021829,
0.5203175545,
-0.2871206403,
-0.3088027835,
0.0289495774,
-0.0467761569,
-0.4709153771,
0.3677733243,
0.1937672347,
0.1332467645,
-0.2727402449,
0.0808882341,
-0.054357633,
0.3946862817,
0.2014055699,
-0.1048343033,
0.163730219,
0.6974082589,
-0.0477019474,
0.1189360842,
-0.2285163999,
-0.1444529742,
-0.3574689627,
0.5789632201,
0.0692760721,
0.2422296256,
-0.3922006488,
-0.3392057717,
0.2242277712,
0.8672297001,
-0.0969508737,
-0.2697050273,
-0.3286168873,
-0.1966628879,
-0.4196618795,
0.159391731,
-0.3182512224,
-0.0530898906,
0.1402119547,
0.1450407058,
-0.0773038417,
-0.0909149125,
0.2604517043,
-0.0153467823,
0.1399206668,
0.0272492245,
-0.0401429757,
-0.1684522033,
-0.2289493978,
-0.042241171,
-0.0906159654,
0.2799790502,
0.1111545861,
-0.2226955444,
-0.1144511625,
-0.0271639284,
-0.0577414855,
0.1897265166,
0.2494761944,
0.0854887962,
0.0723983645,
-0.3772484362,
-0.0194644518,
0.3499037623,
0.2269113362,
0.4114252031,
-0.3595533371,
-0.0770329684,
0.2774990499,
0.0485524498,
0.0913434178,
-0.0176004879,
-0.0537259467,
0.0721302852,
0.0529685169,
0.1191203967,
-0.1450019777,
-0.2331784517,
0.195211187,
0.1863651276,
0.0126625849,
0.1621602774,
0.4231903851,
-0.3112890124,
0.2096297741,
0.0083998078,
0.2196212113,
0.1054713205,
0.0557128042,
-0.0278225075,
-0.0087261917,
-0.0539107546,
0.0443682298,
0.2593614459,
-0.0772727877,
0.2498550266,
0.0374190249,
0.266669631,
-0.27869609,
-0.086949721,
-0.1984587312,
-0.1286565214,
0.1398650408,
-0.1796713918,
0.0089692157,
-0.0239500944,
-0.0952753052,
-0.2570260763,
0.2263918519,
-0.1408737898,
-0.0557924807,
-0.0520811193,
0.1282781363,
-0.2017674148,
-0.0196912363,
-0.0326273888,
0.2371160239,
0.1242026612,
-0.0629752427,
-0.2309453785,
0.018482605,
-0.7297495008,
-0.3843669891,
-0.0553274266,
0.3350841701,
-0.5704236031,
-0.1310541779,
-0.1069889516,
0.0160687435,
0.0025796946,
-0.0488681756,
0.0251935069,
0.2374302298,
-0.2200978845,
-0.0120996283,
0.2434198409,
-0.4194359779,
-0.1888312548,
0.35346663,
0.067217201,
0.166905567,
0.2616818547,
0.3913342655,
0.5214036703,
-0.3344428539,
0.2122385204,
0.3922583163,
0.0438463911,
-0.1396683306,
0.1137662008,
-0.1230740026,
0.445822984,
0.1585558057,
-0.285372436,
0.0438471474,
-0.1920589507,
-0.2551847696,
0.177962333,
0.0452680402,
0.0313417315,
0.2592541277,
0.079187341,
0.5799187422,
0.1676922143,
-0.2711467445,
-0.6223829389,
0.3054470122,
-0.0072562671,
-0.2700938582,
0.067025274,
-0.2005797923,
-0.4199748337,
0.2083074898,
-0.1984320581,
0.254029572,
0.0246264283,
-0.0941756517,
-0.1109542847,
-0.1122768447,
-0.0881684273,
0.2438614964,
0.1757523865,
-0.101097025,
-0.2963375449,
0.3637978435,
0.0259921625,
-0.068206355,
0.2738375664,
0.3246902227,
0.2452081293,
-0.0482983515,
0.0361878872,
0.1210450009,
0.8892270327,
-0.3547438085,
-0.3784582913,
0.2209714949,
0.2830378711,
-0.0812357813,
0.2489000708,
0.255584687,
0.1916795373,
-0.3430196345,
-0.281594485,
0.5699647069,
-0.2481467724,
0.2800792158,
-0.0612875,
0.2197804302,
0.4321178496,
0.0043352991,
-0.1176931262,
-0.3936081827,
0.166650638,
-0.0400210507,
0.1149888486,
0.0238712467,
-0.2801136672,
0.1003493667,
0.0587949269,
-0.0666385517,
0.2112705559,
0.2897412181,
0.2427733243,
-0.1752025783,
-0.0914025009,
-0.3679579198,
0.1232929155,
0.0929025337,
-0.3488699794,
0.0599633902,
-0.0096654687,
-0.0665984228,
0.2231805772,
-0.2091850787,
0.1879824996,
0.2351406068,
0.1475766748,
-0.0922566503,
0.1208053455,
-0.3754296899,
-0.0018180892,
-0.1313171685,
-0.3162955642,
-0.2077574879,
-0.2735092938,
-0.1022862494,
0.3218830526,
-0.2074784636,
0.0832346454,
-0.419565022,
0.0638234839,
0.1159948185,
0.001697248,
0.0827226341,
0.2544096708,
0.0791424513,
0.1558482796,
-0.1901484579,
-0.0551463962,
-0.3643717766,
0.0685328543,
-0.0034508843,
-0.0498566516,
0.3821994364,
0.2964525521,
0.047797706,
-0.2427614033,
-0.2546735704,
-0.24202241,
0.1246832982,
0.0408010967,
0.1624813229,
0.3353115618,
0.1955304891,
0.265466392,
-0.0406072028,
0.019098958,
0.3972305059,
-0.3206771016,
0.1734580696,
0.1411875784,
-0.0110763386,
0.0845558196,
-0.2365294099,
-0.2602050006,
-0.2982485592,
0.134083584,
0.41278705,
0.3460389376,
0.1547751427,
0.0017386165,
-0.0531757027,
0.1577520519,
0.321107775,
-0.1935502589,
0.5660732388,
0.1810953021,
-0.1946115345,
-0.355003804,
0.0547766201,
-0.1852881312,
-0.0671508834,
0.0294196084,
-0.2463186085,
-0.0169738643,
-0.3761957288,
0.3262610137,
0.0463195071,
0.0425536409,
0.2474853843,
0.2113266289,
0.1662921607,
-0.0506154783,
-0.2153066397,
0.1385057718,
0.004147463,
-0.1210742742,
0.291195333,
0.6103336215,
-0.5833672881,
0.2267512232,
0.2389131337,
-0.0426310077,
0.3606213331,
-0.1387867033,
-0.0864120498,
-0.4743101001,
0.0341002494,
-0.3199351728,
-0.0203121398,
-0.2453767508,
0.2285148054,
-0.1666202992,
-0.1125181913,
-0.102076754,
0.0803801417,
-0.0007060174,
-0.0201340765,
0.0514707714,
-0.3898414373,
0.085102953,
-0.1789825708,
0.0467087254,
-0.1243071705,
-0.1323924363,
0.0191932879,
0.0394525528,
0.2429213077,
-0.3751875162,
-0.2918420136,
-0.0182459131,
-0.214156419,
-0.0418161936,
0.2122230083,
0.0973126814,
-0.2043107748,
0.0029875857,
-0.1245554164,
0.1548598558,
0.5807391405,
-0.1817255318,
0.1533964872,
0.1293037087,
-0.3806326091,
0.1014721394,
-0.0802016631,
-0.0602418743,
0.0958787799,
-0.1827404201,
0.2715817988,
-0.2892586589,
-0.2269496322,
-0.080737561,
0.4406329095,
-0.281098783,
-0.4758982658,
-0.0430322997,
0.0064667142,
-0.5391343236,
-0.5501671433,
0.2090351135,
0.0628307834,
-0.0736262053,
-0.4290340841,
-0.3143327236,
-0.1959165335,
0.0944627523,
-0.0859580263,
0.3035990894,
-0.1159366518,
0.4498221278,
-0.1186467931,
0.1047309861,
-0.2449400127,
0.2528445125,
0.2503005266,
-0.3492394388,
0.0142307216,
-0.1640627831,
0.1036115661,
0.1042684391,
-0.0222357363,
0.0605120845,
-0.4116000831,
-0.0493698008,
-0.3372838795,
-0.3075934947,
0.1161182374,
-0.0203890875,
-0.3011692166,
-0.6115106344,
0.3305914402,
0.083571516,
-0.3141230643,
-0.0186631847,
-0.1770674586,
-0.2061609924,
0.6861749887,
0.1632322073,
0.8188748956,
-0.2292823493,
0.0707064271,
0.497694999,
0.2781093121,
0.1991240978,
0.1973952055,
-0.1829585582,
-0.4760642946,
-0.3526699543,
-0.0892866105,
-0.0298436861,
-0.1913864166,
0.2760171592,
-0.5978083611,
0.4828034043,
-0.5174862742,
-0.0739725679,
-0.0933250114,
0.1208466515,
0.3119495511,
-0.1419981122,
-0.1297999024,
0.0318295285,
0.2947933972,
-0.0398293063,
-0.284090817,
-0.0142595237,
0.0356299914,
0.1582651287,
-0.4008289874,
0.0229376741,
-0.0450617261,
0.2125977576,
0.0167667139,
0.2452765554,
0.3642135859,
0.6223149896,
0.1572020799,
0.1498790383,
-0.0699650571,
-0.0991208106,
-0.0779758543,
-0.0947041512,
-0.1163724065,
-0.0818020478,
0.308874011,
-0.0150868176,
-0.1406020224,
0.0657022744,
-0.0426007137,
-0.0082472106,
-0.1095165983,
0.0788418949,
-0.1496267766,
-0.3746887445,
-0.665328145,
-0.1830615848,
-0.1210893318,
0.0170095414,
0.0711621046,
0.3624943495,
0.0752565041,
0.0914715901,
0.0638987571,
-0.0192763284,
-0.0489628874,
-0.0036644873,
0.4602409303,
-0.1371629536,
0.4401563108,
0.5107125044,
-0.165912956,
-0.1863009185,
-0.1349731982,
-0.0410600975,
-0.1367075592,
0.2683491409,
0.0251770187,
-0.3519144654,
-0.1999738514,
0.5697356462,
0.0464973301,
0.306134969,
-0.0001405651,
-0.4036199749,
-0.205512777,
0.1974143982,
0.0831392035,
0.1834571213,
-0.314326942,
-0.451020509,
-0.1626746505,
0.051553838,
-0.1887728572,
-0.2827401161,
0.0023420879,
0.0462836139,
0.1531008333,
0.1226855144,
-0.1561570466,
0.1408736706,
0.1288059056,
-0.1951477379,
-0.0035246448,
-0.1366000772,
-0.055245474,
0.1697296649,
0.016152842,
0.157784164,
-0.2510715425,
-0.2348280102,
-0.2367633581,
-0.3364038467,
-0.0490173176,
0.2011006027,
0.0731550679,
0.2551914155,
0.3351807892,
0.1288359463,
-0.0412229188,
0.2880110443,
-0.0712855905,
0.2845419943,
-0.093154192,
-0.0672062561,
-0.1526633799,
-0.1836322099,
-0.3548780084,
0.3009615839,
-0.1260094196,
-0.1479239762,
0.3634278178,
0.2186013162,
0.0364158787,
0.4026186764,
0.1486368775,
0.421310544,
-0.1970244944,
0.0718922541,
0.0113184974,
0.1442397684,
-0.3829606175,
-0.3480307162,
0.1227787733,
0.0877041221,
0.0048151356,
0.3098231852,
0.1085901856,
0.0080871191,
-0.1521996707,
-0.0717810392,
-0.2265311629,
-0.1791190356,
0.0134650189,
0.261420697,
0.3985028565,
-0.0835063159,
0.0699044168,
0.2843662202,
0.2599130571,
0.3345193565,
0.2469491512,
0.0898122713,
0.3154042661,
0.2591165304,
0.2474360913,
-0.2557630539,
0.1724549234,
0.5423032045,
-0.1452328861,
-0.1430142671,
0.281711787,
-0.3441195488,
0.3144917488,
0.1295330971,
-0.2424104512,
0.0991834849,
0.0048479089,
-0.2736860216,
0.2328706533,
-0.0671973303,
-0.4668712318,
-0.2387633026,
-0.1584493667,
-0.0998481661,
0.1744957715,
-0.0086621875,
0.2787289023,
-0.2625398636,
0.7088649869,
0.0955229849,
0.2622169554,
-0.0597564429,
0.0878467783,
-0.0929391533,
0.1453580409,
0.1862290502,
-0.0960745513,
0.3025284111,
0.5908000469,
-0.2902056277,
0.1319196969,
-0.100158833,
-0.3410929441,
-0.2412003875,
0.1894101053,
-0.1599883139,
0.336594373,
0.3536621034,
0.0453871228,
-0.025854744,
0.2148823142,
0.3865303695,
-0.1933884174,
-0.1711888015,
0.4797002971,
0.1650584787,
-0.0757745877,
0.0054365559,
0.1947041303,
-0.3924930394,
-0.3973152936,
0.2840461731,
0.296838522,
0.278528899,
0.2901187837,
0.0613256693,
-0.2259616554,
0.2346456051,
0.2222993076,
0.4461551607,
-0.1472891569,
0.0404047929,
-0.2170990407,
-0.1223871931,
0.0451604575,
-0.4246482849,
0.639621973,
0.1408871412,
-0.0289244819,
0.241789028,
-0.1564906687,
-0.019676201,
0.1426759958,
0.0390944965,
-0.2670777142,
-0.3043850362,
0.1025548726,
0.3364965916,
-0.1724909097,
-0.1253270805,
0.0973287672,
-0.0450756364,
0.0338112451,
-0.240072906,
0.1011572406,
-0.1871419698,
0.1365273744,
0.0252124388,
-0.0769859254,
0.3498878181,
-0.1255148202,
0.1681679785,
0.0680363253,
-0.1301601678,
0.058276251,
0.2709526122,
0.0866084471,
-0.0389070958,
-0.0793597475,
0.470202595,
0.0806052312,
0.0965636224,
0.0784904733,
-0.0691356063,
-0.5627831221,
0.2318922877,
-0.1754672229,
0.2357454151,
-0.0212429576,
0.2685269117,
-0.1862750053,
0.2735128999,
0.2534200549,
-0.2558312416,
0.4067483842,
0.2428268343,
-0.1636211723,
0.0646039844,
-0.0011137909,
0.0490295738,
0.0759347528,
-0.0323284566,
0.0059210695,
0.3539570272,
-0.0231914762,
-0.1575756371,
0.1152448654,
0.1198122427,
-0.0406788848,
-0.1745766699,
0.2960937321,
0.0955929086,
0.1829747409,
-0.3290899992,
-0.2660080492
] |
https://github.com/huggingface/datasets/issues/4217 | Big_Patent dataset broken | Thanks for reporting. The issue seems not to be directly related to the dataset viewer or the `datasets` library, but instead to it being hosted on Google Drive.
See related issues: https://github.com/huggingface/datasets/issues?q=is%3Aissue+is%3Aopen+drive.google.com
To quote [@lhoestq](https://github.com/huggingface/datasets/issues/4075#issuecomment-1087362551):
> PS: if possible, please try to not use Google Drive links in your dataset script, since Google Drive has download quotas and is not always reliable.
| ## Dataset viewer issue for '*big_patent*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/big_patent/viewer/all/train)*
*Unable to view because it says FileNotFound, also cannot download it through the python API*
Am I the one who added this dataset ? No
| 62 | Big_Patent dataset broken
## Dataset viewer issue for '*big_patent*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/big_patent/viewer/all/train)*
*Unable to view because it says FileNotFound, also cannot download it through the python API*
Am I the one who added this dataset ? No
Thanks for reporting. The issue seems not to be directly related to the dataset viewer or the `datasets` library, but instead to it being hosted on Google Drive.
See related issues: https://github.com/huggingface/datasets/issues?q=is%3Aissue+is%3Aopen+drive.google.com
To quote [@lhoestq](https://github.com/huggingface/datasets/issues/4075#issuecomment-1087362551):
> PS: if possible, please try to not use Google Drive links in your dataset script, since Google Drive has download quotas and is not always reliable.
| [
-0.4834668934,
0.104641214,
-0.0131414868,
0.3420283496,
0.1577983648,
0.0383427329,
0.1688533425,
0.2354457974,
0.2180176079,
-0.1323463321,
-0.0315063484,
-0.1041555107,
-0.2722391188,
0.4202748537,
0.2981956005,
0.1469314247,
0.1277819872,
0.017385602,
-0.0924532115,
0.1407030672,
-0.2119998634,
0.1171338931,
-0.2322455496,
-0.0436610803,
-0.1308280677,
0.0196890943,
0.0119585041,
0.0278633293,
-0.3111699522,
-0.6212768555,
-0.0232015122,
0.1120186523,
0.0132585028,
0.6372535229,
-0.0001170137,
0.0121227661,
0.2835841179,
0.064378351,
-0.1954828799,
0.0015054281,
-0.0466969498,
-0.0728158802,
-0.0995360836,
0.1178779304,
0.1243011132,
-0.4080304801,
0.154465422,
-0.1061596945,
0.060277421,
0.4338541329,
0.167744875,
0.0627540648,
0.4727403224,
-0.1179163307,
0.0676365942,
0.0373683237,
-0.130707711,
0.4472510219,
0.0969698727,
-0.1949571222,
-0.1155871004,
0.1067605168,
-0.2359167039,
-0.1136828512,
0.4440070391,
-0.1806278229,
-0.3739488423,
-0.3391382396,
0.2871483564,
0.4707916081,
0.5489801764,
-0.0697182119,
-0.3047060072,
-0.2458086759,
0.1427858919,
-0.3285986483,
0.3200212419,
0.3449636698,
0.2516527772,
0.2392545044,
-0.1941295266,
-0.4256746471,
-0.281226635,
0.2228533775,
-0.3112690747,
-0.0448148474,
-0.1355428249,
0.1208092719,
0.1246525347,
-0.1099864766,
-0.0208945256,
-0.0179947503,
-0.1427782923,
-0.0087158186,
-0.0284021925,
0.0541404858,
0.1514885128,
0.4299626946,
0.3273875415,
0.2345272005,
-0.0417352654,
0.0483418852,
-0.2623109818,
0.0019875411,
0.1422084123,
-0.0464161187,
-0.3171282113,
0.0674460009,
0.5703381896,
0.2360274047,
0.0633824691,
0.0202226825,
-0.1078175679,
-0.2126618028,
-0.328851223,
-0.3850155473,
0.4459056854,
-0.096846059,
-0.3567793071,
0.3077969253,
-0.210879311,
0.0921239704,
0.1061948165,
0.4070597887,
-0.1150916964,
-0.0919281468,
-0.0998926088,
0.0923706219,
-0.0739888474,
-0.2387170047,
-0.0675114542,
0.0683787614,
0.1380838007,
0.2179440856,
0.2942175269,
-0.3350930512,
0.1900715083,
-0.0774957761,
0.0619994365,
-0.1587910652,
-0.0365025587,
-0.1786335558,
-0.0251798518,
0.2634174228,
0.0522186272,
0.0441799909,
0.0507899895,
-0.369767487,
-0.0171329323,
0.1293041408,
-0.1222511977,
-0.1764279902,
-0.3367674947,
0.0981006995,
-0.6621643901,
-0.0627780333,
-0.2774625421,
0.163133651,
-0.3145906329,
-0.2534874082,
-0.0720968023,
-0.1887163371,
-0.041999016,
-0.1665057242,
0.2707700133,
0.6222119331,
-0.3741081357,
0.2027052492,
-0.1822732687,
-0.0308156386,
-0.380377382,
0.0824990347,
-0.1081205159,
0.248025164,
-0.4550224245,
-0.0559908859,
0.2173081934,
-0.1521511227,
-0.7441470623,
0.1073062345,
-0.1967584342,
-0.0136881871,
-0.0595600866,
0.031337183,
-0.0963134766,
-0.0397465229,
-0.1357091218,
-0.0279630125,
0.1396220326,
-0.0738886818,
-0.033408843,
-0.2202014923,
0.1026968509,
0.1573109627,
0.2711616158,
0.0508419648,
0.3370506465,
-0.0132203558,
0.2416160256,
0.0916701704,
-0.1631088853,
0.3274052739,
0.4361107647,
0.065160431,
0.086570181,
-0.2544757426,
-0.3845497668,
0.0487020686,
0.2722359598,
-0.1172706112,
-0.2122718841,
-0.0978149399,
-0.240878135,
-0.0119602736,
-0.1683567464,
-0.2509044707,
0.0537067205,
0.0604938529,
-0.1710150391,
0.327670902,
-0.1624094248,
-0.031262435,
0.2256584466,
0.1548061073,
-0.2649157345,
0.199509427,
0.0126749752,
0.064487271,
0.1379518509,
0.1568756849,
0.1922037303,
-0.1875431091,
0.0185276065,
0.3546532989,
-0.0801460296,
0.2512708008,
0.2626543641,
0.3722667396,
0.256601125,
-0.4789578319,
0.1062568948,
0.1078174561,
0.0455489606,
-0.0009179965,
-0.2910856009,
0.1551474333,
-0.1732620448,
-0.1389258951,
-0.0033259722,
0.2878322899,
0.0637937784,
-0.1004120111,
-0.0817972869,
-0.0186483208,
0.3991737068,
0.0939920396,
0.342725575,
-0.0055894335,
-0.4507690072,
0.1525511146,
0.4077531993,
-0.1745219529,
0.0406543314,
-0.0375531353,
-0.5376440883,
0.0970128626,
0.0993905291,
0.2559476793,
0.3754189312,
0.1470335424,
-0.0811396763,
0.170299232,
0.2087472826,
-0.2294714302,
0.1932689101,
0.1707135886,
-0.1833783835,
0.1545486748,
0.1193713322,
-0.0485762693,
-0.3455551863,
-0.2430789322,
0.00136938,
0.2484546304,
-0.3865132034,
0.1570989937,
-0.1725228429,
-0.1772734821,
-0.3872642517,
0.180961892,
-0.3480316997,
-0.2757409513,
-0.1457262486,
0.509931922,
0.0480949543,
-0.0684590563,
-0.5031000972,
0.2434807122,
0.0407406725,
-0.0111797601,
-0.1029591858,
0.0544737466,
-0.1583460271,
0.0528521463,
0.590890646,
-0.130534336,
0.3239356577,
0.0250550844,
-0.0641185194,
-0.6373456717,
-0.3246233761,
0.0032320637,
-0.3119246364,
0.2445955276,
0.0426084511,
0.1060778052,
0.0848139375,
0.1702257693,
0.0304516628,
-0.026078444,
0.2242319137,
0.0407425202,
0.0685784593,
-0.1566527039,
0.0013223458,
-0.2466512918,
0.0421057604,
-0.2341266125,
0.5732227564,
0.0585585535,
-0.0594615825,
0.0034694469,
-0.0562291257,
0.1547800899,
-0.0079332404,
-0.1853843182,
-0.1120804176,
-0.0741629004,
0.4787083864,
-0.3367298543,
-0.5930367708,
0.2408270538,
0.1910097003,
-0.0420696065,
-0.051192902,
-0.7720369101,
0.0885320976,
-0.1274522543,
-0.0219337288,
-0.0873812586,
-0.2929592729,
-0.1395179182,
0.0118208043,
0.0829376429,
-0.1171415597,
-0.0578293279,
-0.1196127385,
-0.215667069,
0.2699639797,
-0.0273542218,
0.2253768146,
-0.0762490109,
0.4235895276,
0.2192079574,
0.1188555285,
0.1639762372,
-0.3868443668,
0.636063993,
0.0967203751,
-0.4060645103,
0.2969851792,
0.0332811251,
0.0420440324,
0.1717955917,
-0.0203680899,
0.261202693,
-0.0966943353,
0.1884563267,
-0.1655806154,
-0.0924913213,
-0.0849727914,
-0.281737864,
-0.0917994455,
-0.0600764006,
0.1169151366,
0.0143045923,
-0.4276901186,
0.1040152982,
0.1662343144,
0.2004127353,
0.0695389137,
-0.1612099856,
-0.1465853602,
-0.5163622499,
0.3064154387,
-0.3047389388,
0.0837648883,
-0.1079490408,
0.0268930402,
0.0704617351,
0.042718485,
0.7142883539,
0.120274812,
-0.0541002378,
-0.0170377679,
0.0550578758,
-0.2129592001,
-0.1079062149,
-0.194523856,
0.2367740422,
0.0835182741,
0.2426855564,
-0.1276816428,
0.1253717244,
0.409054935,
0.3092296422,
-0.0432486124,
-0.0346555114,
-0.1219080314,
-0.316933006,
0.0997608975,
-0.2215729952,
0.088850677,
0.0402653925,
-0.2550776005,
0.0386438258,
-0.0506559014,
-0.175068453,
0.2592525184,
-0.0328692608,
0.2525988817,
-0.0021981793,
0.2010691315,
0.362297833,
0.170626983,
0.485601753,
0.6616960764,
0.2322962731,
-0.2818120122,
0.2305131853,
-0.0898878425,
-0.0367485918,
0.3589297533,
-0.1842263043,
0.041472964,
0.22468023,
0.3097265661,
-0.3407503963,
0.2789116204,
0.5714207292,
-0.0161713157,
-0.6062675714,
-0.2759951651,
0.5942257643,
0.0274136625,
-0.0142769311,
0.3786876798,
0.3547910452,
-0.1950612962,
-0.0678363815,
-0.2967737019,
0.7859034538,
-0.0310267843,
0.0748065189,
0.2268758416,
0.107053116,
0.5253902078,
-0.0774399117,
0.1068514585,
-0.3104043305,
-0.3130707741,
-0.2286906987,
-0.2815406919,
0.1021408662,
-0.2597772181,
-0.0585572384,
0.3564156294,
0.2896516025,
0.3280566633,
-0.1162440404,
0.5361650586,
-0.221588105,
0.2861787379,
0.142016843,
0.0745483786,
-0.0406998023,
0.4102210999,
-0.0736210793,
-0.1872398555,
-0.1799069941,
-0.1252834201,
-0.7686299682,
0.0220143832,
-0.2400035858,
0.1698114127,
0.0116212443,
-0.4734474421,
0.3663181961,
0.3047528267,
0.0470800847,
0.2690874934,
-0.5442120433,
0.3333304524,
-0.3025118113,
-0.2705168128,
0.216399774,
-0.0197794475,
0.2110149413,
-0.0161527172,
-0.1110485494,
0.1670351624,
0.1880714446,
0.0295757204,
-0.360984385,
0.0118096657,
0.0420522057,
-0.2454117388,
-0.0944831818,
-0.2382049114,
0.085604243,
-0.232491672,
0.0863000154,
0.1679842323,
0.2848787606,
-0.0991400555,
0.1459345967,
-0.1238734052,
-0.1598664224,
0.3275280297,
-0.2471944541,
-0.3408381343,
0.5827611089,
0.1804595888,
-0.1205324009,
-0.1340751201,
0.2452621609,
0.1986672282,
-0.2455825359,
0.0007136851,
-0.1633893549,
0.3555781841,
0.0684813708,
-0.1240973398,
0.003590971,
-0.1922119558,
-0.0390189253,
-0.2285548896,
-0.1298700124,
0.2293182015,
-0.097735934,
0.1256439239,
-0.0139698191,
0.0215524603,
-0.0196095612,
-0.1950750947,
-0.2318452895,
0.3071411848,
-0.0194730032,
-0.3883128762,
0.16964674,
0.2286741883,
0.1052196249,
-0.1942709684,
0.0513923578,
0.0256159399,
-0.1203395054,
-0.0899622366,
-0.1103071719,
0.1339464337,
0.0791915581,
-0.2982006073,
-0.1583513319,
-0.2414677441,
-0.0409737863,
0.0313648693,
0.1707320362,
0.1144980788,
0.1357930452,
-0.3143178523,
-0.0504093617,
-0.0526756793,
0.0428524539,
0.1013266593,
-0.0251501948,
0.2195001096,
0.2939210534,
0.262389034,
0.1284033805,
0.0327592567,
-0.2986309826,
0.0452460349,
-0.1488689482,
0.0685074553,
0.6593413949,
-0.3328305185,
0.0081554446,
0.1155507937,
0.4499816895,
0.4276749194,
-0.3966611028,
0.0858725384,
0.4411731064,
0.1054217741,
-0.2876016498,
0.0416747183,
0.3493263125,
0.1687146872,
0.0324202739,
0.031293273,
0.0156014916,
0.0623459369,
-0.3410559595,
0.1732254624,
0.6106492281,
0.1481025517,
0.3028061092,
0.2116984725,
-0.1748097837,
0.0609276108,
0.1973262727,
0.348023355,
0.2874392867,
0.8067832589,
-0.1153221726,
0.0635170341,
-0.1220650747,
-0.0327360332,
0.2073837966,
-0.2828801274,
-0.144658491,
0.0050908113,
-0.3425267041,
0.0146583179,
0.0386363305,
0.3712451458,
-0.4374453425,
-0.0191434454,
-0.3164049983,
0.2571122646,
0.0631371066,
0.2192356139,
0.111789763,
-0.1744877398,
0.126033172,
0.2345230728,
0.0496636294,
-0.3084154427,
0.038681943,
0.2464849651,
-0.3052717447,
-0.1798279732,
-0.1217487529,
-0.0540621802,
0.2989201844,
-0.1008404866,
-0.1645671427,
0.0597510636,
0.0798740312,
0.0809579194,
0.4073710144,
0.3968700469,
-0.0199128296,
0.1134416759,
-0.1578975767,
-0.0259149726,
-0.0965761542,
0.016270753,
0.1905148029,
0.1887370497,
0.1237536222,
0.1590515226,
0.0780743882,
-0.013524103,
0.2643616199,
-0.0833667442,
0.2441904843,
-0.375071615,
-0.0893192217,
-0.4447624981,
-0.2666526437,
-0.4011320472,
-0.3624508679,
-0.2045969367,
-0.0350443572,
0.3737795949,
0.0974156708,
0.0689879209,
-0.1988351643,
0.0250020716,
0.2186068147,
0.3465714157,
0.5203744769,
0.3331850171,
-0.123436138,
-0.1845083386,
-0.6219480634,
0.3399971426,
-0.1020593792,
0.1385107338,
-0.039807599,
-0.2373984605,
-0.1253935248,
-0.049115859,
0.0703279525,
0.2666772306,
0.0220810603,
0.0251515675,
-0.1486091465,
-0.105743885,
-0.0323579684,
0.178051129,
-0.2497233003,
0.1159466952,
0.4286106229,
-0.1934848279,
-0.0381561704,
-0.1056140959,
0.2288677245,
-0.4455747008,
-0.1517824531,
0.3439434767,
0.0708275512,
0.4219904244,
0.0315927453,
-0.1686105132,
-0.6223100424,
-0.3139055371,
-0.2148304284,
0.3909344673,
-0.0092968969,
0.1623060107,
-0.0171290375,
-0.3494926989,
-0.157494992,
0.4187229872,
-0.1996922791,
0.2029750198,
-0.1779979169,
-0.067307964,
-0.1988095492,
0.1647149771,
0.3000586629,
-0.0501488857,
-0.1654206514,
0.0425619297,
-0.1289103925,
-0.1696801037,
0.4922366142,
-0.480147928,
-0.0086188857,
0.1053380743,
0.2893526256,
0.2830290496,
-0.1280293912,
-0.4260095954,
0.0369837768,
0.2612662315,
0.0534195565,
-0.2077559084,
0.1833905727,
-0.2805331051,
0.1202219054,
0.1108858734,
0.7238495946,
-0.0014009282,
-0.4778092802,
0.2813482583,
0.0364133082
] |
https://github.com/huggingface/datasets/issues/4217 | Big_Patent dataset broken | We should find out if the dataset license allows redistribution and contact the data owners to propose them to host their data on our Hub. | ## Dataset viewer issue for '*big_patent*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/big_patent/viewer/all/train)*
*Unable to view because it says FileNotFound, also cannot download it through the python API*
Am I the one who added this dataset ? No
| 25 | Big_Patent dataset broken
## Dataset viewer issue for '*big_patent*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/big_patent/viewer/all/train)*
*Unable to view because it says FileNotFound, also cannot download it through the python API*
Am I the one who added this dataset ? No
We should find out if the dataset license allows redistribution and contact the data owners to propose them to host their data on our Hub. | [
-0.2477789819,
0.0562162139,
-0.0191622525,
0.4259560406,
0.0408797935,
-0.0157361049,
0.1593547463,
0.2846546471,
0.2502851188,
-0.0345466584,
-0.1826789826,
0.0505646504,
-0.3296605051,
0.306931138,
0.270731926,
0.2027589083,
0.1753144562,
-0.0609313212,
-0.0583923906,
-0.0332858898,
0.1193860099,
-0.0375475846,
-0.1214298978,
0.0343063027,
-0.3216637075,
0.1108129472,
0.0040012714,
-0.0195554737,
-0.4277798831,
-0.5958427191,
0.0431157388,
0.1574825644,
0.0637516677,
0.6245172024,
-0.0001135277,
0.0324739479,
0.0918037668,
0.0076800226,
0.1037893221,
0.2231527567,
-0.0752141625,
-0.0984354764,
-0.3211757839,
0.1018794775,
-0.0669308603,
-0.2654211223,
0.0340345539,
0.095283173,
0.1603114009,
0.4760963321,
0.1728434414,
0.1097186953,
0.4331765175,
-0.2518748045,
0.1098324656,
0.0231166966,
-0.1637527794,
0.4410643578,
0.2549797893,
-0.1071377322,
-0.2142675519,
0.2191622406,
-0.2229279131,
-0.0734716877,
0.3285545111,
-0.2155787945,
-0.0713763237,
-0.3233066797,
0.0722046196,
0.4039890766,
0.5055611134,
0.0211691856,
-0.2014103085,
-0.0640617013,
0.2700837851,
-0.3299200833,
0.0773497373,
0.2904391885,
0.1693695486,
0.3677118421,
-0.107565634,
-0.5588872433,
-0.3503519297,
0.1444010437,
-0.4597339034,
0.1770741791,
-0.1108837053,
0.1069492921,
-0.1619342268,
-0.0779800266,
0.3568909466,
0.0237400532,
-0.1019833609,
-0.0921626538,
0.0102104861,
-0.0327418782,
-0.0083991811,
0.4019443691,
0.2268912792,
0.165736407,
0.0032815374,
-0.0329900049,
-0.3733277023,
-0.054013215,
0.0029530202,
-0.0952603295,
-0.4759806693,
0.2293429077,
0.4313376844,
-0.0084120184,
0.0248155724,
0.0772271678,
-0.3248448074,
0.0589619242,
-0.4488993585,
-0.3561588824,
0.3443091512,
-0.1766787022,
-0.3023038208,
0.16459243,
-0.0744395256,
0.2488563806,
0.2920158207,
0.2617837787,
-0.1667208672,
-0.0031151923,
-0.2969335914,
0.0028285075,
-0.0549820252,
-0.2957243323,
-0.20066984,
0.1562405974,
0.2203496099,
0.0987421721,
0.252496779,
-0.2840020955,
0.1938241124,
-0.1268089414,
0.2541540265,
-0.0936054364,
-0.0281075016,
-0.0139492322,
-0.0048534288,
0.2512732148,
-0.1470047235,
0.0276058596,
-0.072496295,
-0.2649424672,
-0.0963484347,
0.1644976139,
-0.2940461934,
-0.4530950785,
-0.3750929534,
0.1315336078,
-0.5852465034,
-0.2609283626,
-0.2311489731,
0.0342382602,
-0.2674628496,
-0.2677254379,
-0.0196546838,
0.0002833214,
0.1117434427,
-0.1783110946,
0.1738471389,
0.3983829916,
-0.2524577975,
0.2174806446,
-0.1196762025,
0.1736465245,
-0.265391469,
0.1749518961,
-0.2341584414,
0.3533547223,
-0.3386547267,
-0.0106325876,
0.3233026266,
-0.4396128953,
-0.8709554076,
-0.2259235829,
-0.2741075456,
-0.2810182869,
0.149926737,
0.088252157,
0.0760725364,
-0.1494508088,
-0.0692076087,
0.0933588445,
0.2005817443,
-0.0507624596,
-0.089803867,
-0.1589644104,
0.1229165047,
0.2841273248,
0.4071845114,
0.0657666773,
0.1622777581,
0.2830612361,
0.2915273309,
0.1370211691,
-0.0607761443,
0.1063784882,
0.5180166364,
-0.0442385413,
0.0308513436,
-0.2150007486,
0.0411926359,
0.0508294366,
0.1926495284,
-0.0149826147,
0.0132468641,
-0.1840862781,
-0.4935233593,
-0.0885170475,
-0.2331612408,
-0.1838645488,
0.1350663751,
-0.1156956926,
-0.080494225,
0.1761967689,
-0.1997579038,
0.149124369,
0.0848651901,
0.0859771445,
-0.2589829266,
0.2853738964,
-0.0213509798,
0.1732619107,
-0.0178721324,
0.2827548385,
0.1061805636,
-0.1257333755,
0.1347451955,
0.14821738,
-0.200848192,
0.2596471906,
0.3046859503,
0.2495486438,
0.414992094,
-0.5091162324,
0.1889826506,
0.029107539,
0.0391988233,
0.0753052607,
-0.1106036082,
0.0642097369,
-0.1751029044,
-0.2741690278,
-0.1958424598,
0.3262774348,
0.1478824615,
0.0139509328,
-0.0847115144,
0.0390165485,
0.1925184429,
0.2225350142,
0.0656939223,
0.0064037032,
-0.1911017299,
0.2269553691,
0.4016898572,
-0.1566621065,
0.0744488835,
-0.0951697379,
-0.4489755929,
0.1590783298,
0.2787641287,
0.0408388302,
0.3788046241,
0.1357001215,
0.0766400695,
0.1239101589,
0.2858330309,
-0.22737813,
0.1964515597,
0.0283146668,
-0.1896989346,
0.1434176266,
0.1467466652,
-0.1330521107,
-0.4281603098,
-0.3014097512,
0.2235092223,
0.2983627319,
-0.2560966909,
-0.1182346568,
-0.1380306184,
0.0139808329,
-0.3417087793,
-0.1776933521,
-0.3156516254,
-0.2239896208,
0.1227998361,
0.5403930545,
0.1340972036,
-0.1617952585,
-0.5449892879,
0.3747397959,
-0.0524257757,
0.2101702243,
-0.1062800139,
-0.0033264193,
-0.1010918915,
0.1224830896,
0.425806433,
-0.0992939249,
0.26385957,
0.0561173074,
0.0868383124,
-0.5259376764,
-0.3375796378,
0.0412320755,
-0.2400784194,
0.1404086351,
-0.0343149826,
0.1057696119,
0.0297932439,
0.2019049376,
-0.0703269243,
-0.0859305412,
0.1189468578,
0.0557095744,
-0.0311126765,
-0.1108182222,
0.091160439,
-0.2029426843,
-0.3679437935,
-0.3289233446,
0.508105576,
0.0625530854,
-0.0662869737,
-0.1394302696,
-0.1177102327,
0.1370381564,
-0.0276447441,
-0.2235766649,
-0.2555424273,
-0.343819648,
0.4419540167,
-0.4067170322,
-0.4065268934,
0.2091522366,
0.2394952327,
0.0408753753,
-0.1835995466,
-0.7073447108,
-0.0193407219,
0.0277063176,
0.1718493998,
0.0062957173,
-0.1744506061,
-0.006077928,
-0.1211084649,
0.0454081744,
0.0000053668,
0.1856639981,
-0.1915773153,
0.0951847434,
0.2314626127,
-0.069115065,
-0.1306796819,
-0.0501873121,
0.4450891018,
0.2918937206,
0.2304238677,
0.2915856242,
-0.1806762516,
0.4566562474,
0.0771472678,
-0.4133323729,
0.3081809878,
0.1524159163,
0.0144301904,
0.1100958884,
0.0711130351,
0.427718401,
-0.0310381763,
-0.0281248596,
-0.1394833922,
-0.1836082786,
-0.154203862,
-0.2057660967,
-0.1504761875,
-0.1040817499,
0.0074845604,
-0.1839083284,
-0.5227752924,
0.1787064373,
0.1081821546,
0.1445904374,
0.0835024565,
-0.2610067725,
-0.137997672,
-0.5245214701,
0.19158189,
-0.3934320211,
0.065089114,
-0.0338759758,
0.1180024073,
0.1965138763,
0.0372109339,
0.6946869493,
0.0926468074,
-0.0833975077,
-0.1389404684,
0.2159809619,
-0.2033985704,
-0.1885856241,
-0.109925136,
0.3034231663,
-0.159358725,
0.2352577299,
-0.1405467093,
0.1076619029,
0.3717751801,
0.1116707101,
-0.155341059,
0.0698062778,
-0.0362683348,
-0.4179829061,
0.0380742699,
-0.1552533209,
0.2311676443,
0.1752945036,
-0.2855861187,
-0.0082203262,
-0.1409815848,
0.0408649966,
0.4008918703,
0.0759291574,
0.1886671931,
0.1137442291,
0.1237307638,
0.2203357816,
0.0209548343,
0.3087659478,
0.6771796942,
0.2705574036,
-0.283782959,
0.0764166191,
-0.1121035963,
0.0543527529,
0.4434892833,
-0.0846703276,
0.0817518905,
0.1641468704,
0.1616080403,
-0.3852699101,
0.369409591,
0.3742758632,
-0.1107651293,
-0.5664904118,
-0.1586859375,
0.5217396021,
0.1074040011,
-0.1175425574,
0.3023865223,
0.2747305036,
-0.1892457157,
0.0257659666,
-0.3203625381,
0.9440203309,
0.0757860541,
0.2275138646,
0.1448459178,
0.2845266759,
0.5382251143,
-0.3203983307,
0.2025224715,
-0.3197068572,
-0.3832743764,
-0.3004180491,
-0.1135954857,
0.0257486887,
-0.1769771427,
-0.0142665338,
0.2467109859,
0.305935055,
0.5079946518,
-0.2064080536,
0.4838531613,
-0.2654925883,
0.1206610724,
-0.0931662843,
0.1110868752,
-0.1408587843,
0.4732196033,
-0.1081176996,
-0.2435221374,
-0.3040399849,
-0.0477388948,
-0.6280497909,
-0.1441809237,
-0.0903810114,
0.2701698244,
-0.10589239,
-0.2813769877,
0.134306252,
0.1373605281,
0.1168903336,
0.2293868065,
-0.5614845753,
0.1912494302,
-0.1051764414,
-0.3858596385,
0.1604482979,
-0.0606348589,
0.0676716417,
-0.0982445106,
-0.2300371379,
0.3150574863,
0.2796334326,
-0.0201316848,
-0.5052195191,
0.1169161052,
0.3749631643,
-0.1832414865,
0.0022369251,
-0.0127961803,
-0.0144287637,
-0.1849115789,
0.1235423759,
0.2762911618,
-0.1312784404,
-0.0023373102,
0.1975136548,
-0.0685144961,
-0.0822557434,
0.3016733229,
0.0864417627,
-0.2121959925,
0.568205297,
-0.1187742054,
0.0813827664,
-0.1148044318,
0.3393159509,
0.2724938989,
-0.4732506871,
-0.069224,
-0.1165299639,
0.0316164047,
0.1844620258,
-0.0585177131,
0.2658241391,
-0.2343405634,
-0.2252908647,
-0.1504285336,
-0.2886781991,
0.1347648799,
0.0292647779,
0.2472795397,
-0.0616562702,
0.0453503989,
-0.241778776,
-0.1898724735,
-0.2655977607,
0.3695758283,
-0.0740878284,
-0.252859056,
-0.1531429589,
0.0950074866,
-0.1531444937,
-0.1488317698,
0.0392671302,
0.1147622839,
-0.1449795514,
-0.1582923681,
-0.081838727,
0.1551218927,
0.1311379373,
-0.1622062176,
-0.2285992652,
-0.1969518661,
-0.022074867,
0.2020899653,
0.2784758806,
0.1991008073,
0.2410459071,
-0.239451021,
0.2128702104,
-0.1141575649,
0.1076466814,
0.2947225869,
0.1930790991,
0.1676901132,
0.2429881543,
0.2899016738,
0.1943370849,
-0.0021604944,
-0.1992357373,
0.0714085028,
-0.0919777974,
0.1107418463,
0.7033231854,
-0.1341295242,
0.1845642775,
0.2143474519,
0.2560860217,
0.5507300496,
-0.3225910068,
0.1212770119,
0.3957205713,
0.1579990536,
-0.4248174131,
-0.2177961916,
0.3747658432,
0.0957059562,
-0.006308889,
0.0613412857,
0.1391431242,
0.209892571,
-0.4991375804,
0.2571229935,
0.440600425,
0.1244686916,
0.2998449802,
0.1904140711,
-0.2722383738,
-0.0503692366,
0.2111252844,
0.150349915,
0.114300102,
0.7677796483,
-0.0552303381,
0.4288974702,
-0.0023525117,
-0.194229424,
0.490149498,
-0.1778773814,
-0.1021429971,
-0.1287436932,
-0.1576109827,
0.1260508299,
0.0254982077,
0.2680869102,
-0.4460827708,
-0.1044064537,
-0.5055452585,
0.2033032775,
-0.0900790319,
0.1646182686,
0.1229059398,
-0.2078922093,
0.1729579568,
0.0299891531,
-0.0175694712,
-0.2800758481,
0.1128555238,
0.1987902969,
-0.4142377079,
-0.1172989011,
-0.2407944202,
0.0662295073,
0.4120368659,
-0.0727257952,
-0.1340332478,
0.0044774557,
-0.052378919,
0.0987109244,
0.4083206058,
0.3864868581,
-0.0723154917,
0.0481308177,
-0.0031779695,
0.1132521033,
-0.0977769643,
-0.094833456,
0.2412935942,
0.1809628308,
0.0663818344,
0.0870542675,
0.1250804514,
-0.0207022447,
0.1187053844,
-0.0446305834,
0.1107152626,
-0.2734479308,
0.0065742633,
-0.3220731914,
-0.3563789129,
-0.2506949902,
-0.3050197363,
-0.3007872701,
-0.049609486,
0.4362025857,
0.012427032,
0.1904512644,
-0.2891162038,
0.0471473858,
-0.0609383397,
0.4355835319,
0.3634759188,
0.1925595254,
-0.1477067918,
-0.0289142672,
-0.577750504,
0.4510143399,
-0.1175086498,
0.1545934081,
-0.0137808518,
-0.2638591528,
0.0123152649,
-0.0092491992,
-0.1724375039,
0.0001218154,
-0.0148380632,
0.197715804,
-0.2023783028,
-0.0364050567,
0.2707078159,
0.2182058394,
-0.1027024388,
-0.0274832863,
0.5621615648,
0.0387722366,
0.0010913513,
-0.060582839,
0.1414515078,
-0.1759781241,
-0.0362608656,
0.2705140114,
0.0084707718,
0.2449366301,
0.1112760305,
-0.0522340462,
-0.6938106418,
-0.3624879122,
-0.2600009739,
0.2961319983,
0.029263543,
0.1377324462,
0.0193654243,
-0.3553062975,
-0.066959098,
0.2212535739,
-0.1390904486,
0.1616661549,
-0.1621933132,
-0.138033241,
-0.3129091859,
0.0938575044,
0.2605369389,
-0.0816110075,
-0.1365680397,
-0.1015143171,
-0.0088427439,
-0.280721277,
0.6210668683,
-0.4469187558,
-0.0003240691,
-0.0946558714,
0.2639458477,
0.3438008726,
-0.1066352054,
-0.5415674448,
0.0920390561,
0.2989144325,
-0.1535086632,
0.0389719941,
0.3321882486,
-0.111957334,
0.1225309819,
0.0585813969,
0.786319077,
-0.1593443453,
-0.4898270965,
0.2189731747,
0.0522914194
] |
https://github.com/huggingface/datasets/issues/4211 | DatasetDict containing Datasets with different features when pushed to hub gets remapped features | Hi @pietrolesci, thanks for reporting.
Please note that this is a design purpose: a `DatasetDict` has the same features for all its datasets. Normally, a `DatasetDict` is composed of several sub-datasets each corresponding to a different **split**.
To handle sub-datasets with different features, we use another approach: use different **configurations** instead of **splits**.
However, for the moment `push_to_hub` does not support specifying different configurations. IMHO, we should implement this. | Hi there,
I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same.
Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli).
In short:
I have 3 feature mapping
```python
Tri_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]),
}
)
Ent_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]),
}
)
Con_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]),
}
)
```
Then I create different datasets
```python
dataset_splits = {}
for split in df["split"].unique():
print(split)
df_split = df.loc[df["split"] == split].copy()
if split in Tri_dataset:
df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2})
ds = Dataset.from_pandas(df_split, features=Tri_features)
elif split in Ent_bin_dataset:
df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1})
ds = Dataset.from_pandas(df_split, features=Ent_features)
elif split in Con_bin_dataset:
df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1})
ds = Dataset.from_pandas(df_split, features=Con_features)
else:
print("ERROR:", split)
dataset_splits[split] = ds
datasets = DatasetDict(dataset_splits)
```
I then push to hub
```python
datasets.push_to_hub("pietrolesci/robust_nli", token="<token>")
```
Finally, I load it from the hub
```python
datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli")
```
And I get that
```python
datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features
```
since
```python
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"])
```
gets remapped to
```python
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"])
``` | 69 | DatasetDict containing Datasets with different features when pushed to hub gets remapped features
Hi there,
I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same.
Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli).
In short:
I have 3 feature mapping
```python
Tri_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]),
}
)
Ent_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]),
}
)
Con_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]),
}
)
```
Then I create different datasets
```python
dataset_splits = {}
for split in df["split"].unique():
print(split)
df_split = df.loc[df["split"] == split].copy()
if split in Tri_dataset:
df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2})
ds = Dataset.from_pandas(df_split, features=Tri_features)
elif split in Ent_bin_dataset:
df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1})
ds = Dataset.from_pandas(df_split, features=Ent_features)
elif split in Con_bin_dataset:
df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1})
ds = Dataset.from_pandas(df_split, features=Con_features)
else:
print("ERROR:", split)
dataset_splits[split] = ds
datasets = DatasetDict(dataset_splits)
```
I then push to hub
```python
datasets.push_to_hub("pietrolesci/robust_nli", token="<token>")
```
Finally, I load it from the hub
```python
datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli")
```
And I get that
```python
datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features
```
since
```python
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"])
```
gets remapped to
```python
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"])
```
Hi @pietrolesci, thanks for reporting.
Please note that this is a design purpose: a `DatasetDict` has the same features for all its datasets. Normally, a `DatasetDict` is composed of several sub-datasets each corresponding to a different **split**.
To handle sub-datasets with different features, we use another approach: use different **configurations** instead of **splits**.
However, for the moment `push_to_hub` does not support specifying different configurations. IMHO, we should implement this. | [
0.0950680673,
-0.5818799138,
-0.0149743548,
0.3464848101,
-0.0062353625,
-0.086014092,
0.3061930239,
0.1616925895,
0.3734932244,
-0.0174942464,
-0.2923354506,
0.6108020544,
0.1393585652,
0.3625233173,
0.0080397101,
0.1103166118,
0.2680215836,
0.1151718944,
-0.0468163006,
-0.3221379519,
-0.0480113216,
0.1760944128,
-0.0420507118,
0.0004377237,
-0.4595313966,
0.1891001463,
-0.1053518578,
0.2211643904,
0.1709446162,
-0.2980315089,
0.3451831639,
0.4599791467,
-0.0677099228,
0.1324415505,
-0.0001177119,
0.0637088865,
-0.1418782622,
-0.17928271,
-0.0350894071,
-0.098700963,
-0.1220571846,
-0.2516451776,
0.1771093458,
-0.4556095004,
-0.1078763083,
0.1786478162,
-0.3233380914,
-0.2246275693,
0.1941286325,
-0.2187995613,
0.1648913473,
0.2112070769,
-0.3408596814,
0.0299005155,
0.0158918984,
0.3173235953,
-0.2182468921,
0.0699780285,
0.1846176684,
0.0805530995,
-0.1592502296,
0.3277526498,
-0.1843241602,
0.1742788106,
0.2100188583,
-0.1052963883,
0.0728197247,
-0.1169546992,
0.0000658964,
0.0569470264,
-0.0150522878,
-0.2364818454,
-0.1893728375,
-0.4711377621,
-0.2746147513,
-0.0072100726,
0.0249510091,
0.001896312,
0.0337058157,
0.0492812805,
-0.1459965557,
-0.3572990596,
0.0608174279,
-0.0616162196,
-0.3145311773,
0.3043145835,
-0.0682179034,
0.284463048,
-0.0968516767,
0.0193360727,
0.2213823199,
-0.3127903938,
0.0582898743,
-0.0319215506,
-0.1847194284,
-0.0307731591,
0.1059764847,
-0.0143929822,
0.0682804957,
0.0231969245,
0.0228289999,
0.2286942005,
-0.6147760153,
-0.0110499561,
0.2737037539,
0.0995998457,
0.2922463715,
0.3191692233,
0.0180620383,
0.1209517568,
-0.5683785677,
0.1273586154,
0.165853858,
-0.0405728668,
0.2833562195,
0.0503730625,
0.4986459017,
-0.1646451801,
-0.2798305154,
0.0045297635,
-0.106113866,
0.0543719269,
0.0605051853,
0.0420502275,
0.0791091472,
0.313285768,
-0.2984767854,
0.1700925529,
-0.3618090153,
0.1041353643,
-0.3241876066,
-0.1115144193,
-0.1847055703,
0.0400842354,
0.3358695209,
-0.2438240349,
0.0909150615,
0.1688987315,
-0.4187852442,
-0.3341597617,
-0.3554285169,
-0.0004218915,
0.279772073,
-0.101744175,
-0.0449194014,
0.2712637186,
0.2442947626,
-0.0542509444,
-0.2768010199,
0.0164182857,
-0.32790941,
-0.0528313406,
0.3681181669,
0.140391618,
-0.2818254828,
0.0734374598,
-0.1426200122,
0.2256438434,
-0.1008983105,
0.0867141113,
0.0625260547,
-0.070114769,
-0.3941499293,
-0.2160442173,
-0.0182466824,
0.5277423859,
-0.2456432283,
-0.1373989731,
0.3270342648,
-0.0284314584,
-0.0648525804,
0.2615801394,
-0.2176378518,
0.0899461508,
-0.1311514825,
0.0036384638,
0.2944133282,
-0.241308108,
-0.6630863547,
0.0600778274,
-0.1653927863,
0.3494148254,
-0.2106210291,
0.3240299225,
0.2456364632,
0.0529129915,
0.1745781749,
0.3335517943,
0.1567418426,
0.1538953632,
-0.214538008,
-0.1934229434,
0.2332875878,
-0.1404781193,
-0.0063986024,
0.0842074752,
0.2654313445,
0.1956251711,
0.3405702114,
0.0706074312,
0.1452520937,
0.0385922454,
0.1122401878,
0.1709397137,
0.195453912,
0.0001046561,
-0.5417534113,
0.3672065735,
-0.0743361041,
-0.2584416568,
-0.1426011771,
-0.145914048,
-0.4099495709,
-0.1425902098,
-0.4940243661,
-0.0195198432,
0.0976450518,
0.0289591141,
-0.1018150821,
0.1075169668,
-0.0401516445,
0.4363601208,
0.044343546,
0.0243969038,
-0.3871605694,
0.7273919582,
0.1485185325,
-0.0561602451,
-0.0032061373,
0.3952327669,
0.2842456996,
-0.2556376159,
-0.1869362742,
-0.0746177658,
0.2594532073,
0.436411798,
0.0387044884,
-0.0066559203,
0.3411523104,
-0.0777531713,
0.2727324963,
0.0895600393,
0.1012846008,
-0.2605465353,
-0.3118344843,
0.424239397,
-0.1822202802,
0.1066817418,
-0.1213161349,
0.0294644628,
0.1713083535,
-0.1744870394,
0.0045007914,
-0.4727229178,
-0.2754196525,
0.0009053302,
0.120318234,
0.2523768842,
-0.0175921153,
0.1796109229,
0.5032579899,
0.2048027068,
-0.0290681329,
-0.1707737595,
-0.3502542078,
0.0041146316,
0.0609176271,
0.0923898742,
0.2067260444,
-0.0037564642,
-0.0772854388,
0.109972246,
-0.126711756,
-0.0717703849,
-0.0433661044,
-0.1432836503,
0.0966183692,
0.2602481842,
0.2619547248,
-0.0543881021,
-0.6132264733,
0.0556912571,
0.3455605805,
-0.0133637646,
-0.1395483911,
-0.0653960556,
-0.3397597373,
-0.0768868402,
-0.3288057745,
-0.4561465681,
-0.3137588799,
-0.2691441178,
-0.0024614062,
0.7002812624,
0.0106757339,
0.1589221209,
-0.0272341613,
0.1213158965,
-0.0088989688,
-0.2427311838,
0.1327541173,
-0.2306853384,
-0.0557280444,
-0.0423321836,
0.0837648511,
0.3336846232,
0.2694580853,
-0.0274256896,
0.1206452996,
-0.5092960596,
-0.1267872751,
-0.0119933877,
-0.1189781129,
-0.042528972,
-0.1129029095,
-0.0285165403,
-0.0612883978,
-0.0756630674,
0.2696448267,
-0.2165142298,
-0.1420682818,
-0.0472924225,
0.0666102245,
-0.171409294,
0.1955788881,
-0.4494319558,
-0.1357229203,
-0.2247967124,
0.157640934,
-0.0643364117,
0.1829789132,
0.2231731266,
-0.0807811469,
-0.2393407375,
0.2258687913,
-0.2346581966,
-0.3821237981,
0.1290913671,
-0.0027851686,
-0.0394539908,
-0.1888731271,
-0.1593683511,
-0.1744647771,
0.1327531934,
0.1103978083,
-0.4787458181,
-0.0742736608,
-0.269811213,
0.4028092623,
0.2504801154,
-0.0335566327,
0.3964939415,
0.128146559,
0.132608369,
-0.0827337056,
-0.3323234916,
0.247906372,
0.6320418119,
-0.1735194325,
-0.2274897546,
-0.0190889351,
-0.0867573172,
0.1867485642,
0.1488427967,
-0.0488717668,
0.6051712036,
0.1536334008,
0.1625968367,
-0.2353595495,
-0.4306308329,
-0.0722524375,
-0.0748171359,
-0.0577004254,
0.2817772627,
-0.0258868765,
-0.2112589031,
0.0631102845,
-0.4360710382,
0.1506540179,
-0.4569500685,
-0.241010502,
-0.3659280241,
-0.1050887704,
0.1823562235,
-0.0309350472,
-0.4290912151,
-0.1407387406,
0.0913144723,
-0.0356455445,
0.1540055871,
-0.0203001238,
-0.6295239925,
-0.1279316247,
-0.2321617901,
-0.0756418183,
0.1301861405,
0.2260336876,
0.0749454349,
0.055699449,
0.1388947368,
0.1397431791,
0.5114750266,
0.0095163723,
0.2708129287,
0.2364860624,
-0.1837983727,
-0.4808137119,
-0.3540259898,
0.0465467535,
0.426779896,
-0.2061131895,
0.8991658688,
0.0754342675,
-0.2108563632,
-0.1317287385,
0.2415241897,
-0.2803535163,
-0.1920575052,
-0.0048729316,
0.0084248492,
-0.3699399531,
0.0039063669,
-0.1487847865,
0.0002170467,
-0.1327578872,
-0.4204083383,
-0.1178868636,
-0.1760736108,
0.2212652117,
0.3561234474,
0.1965063512,
0.2987137437,
0.1476947367,
0.1919699609,
0.3841755092,
-0.2629866004,
0.7729689479,
0.030510826,
-0.1625703573,
-0.1959635466,
-0.0434821472,
-0.0393873639,
0.2961922884,
0.230470866,
0.1890601218,
-0.4041310549,
-0.1302331537,
-0.465665102,
0.1208395809,
0.1342728138,
-0.0487541519,
-0.3957085311,
-0.2122682184,
0.4780399501,
-0.1038723215,
-0.3312242329,
0.381852895,
-0.1824617833,
-0.2837473452,
0.5927190781,
-0.0784303546,
0.6941951513,
0.0010306868,
0.1020135581,
0.1637286991,
0.1072200388,
0.44573614,
0.1008984372,
-0.0567962639,
-0.4702634215,
-0.2401084006,
0.0488232635,
0.0626446232,
-0.1695892066,
0.0754004717,
-0.092257224,
0.2251339704,
0.0196797568,
0.2016504705,
-0.2018356472,
0.2156424373,
0.2561692894,
-0.1932555139,
-0.1841440797,
0.0997431278,
-0.0433477238,
0.3396388292,
-0.0310237817,
0.0495003536,
-0.1077930704,
-0.0043093911,
0.0875190496,
0.1346730441,
0.1301913708,
0.5092907548,
-0.0232419465,
0.0971642435,
-0.0816844702,
-0.128474474,
0.4338392317,
-0.091515325,
-0.0530229323,
-0.0495639406,
0.325825572,
-0.017803058,
-0.1086539328,
-0.1786848903,
0.1821916997,
0.218156755,
-0.4741460979,
-0.1673745811,
0.1764344126,
-0.3593784273,
-0.471195966,
0.053361766,
0.2224900573,
-0.4097928107,
-0.214590162,
0.0914777443,
-0.00265142,
-0.1512017101,
0.0785871968,
-0.2645253539,
-0.0162501726,
0.3844267428,
0.1286748648,
-0.4448886514,
0.0007177928,
0.3555176854,
0.3043012619,
0.0412248224,
0.3218723536,
-0.1850755215,
-0.0009803806,
-0.2141494155,
-0.0387387574,
0.0941980034,
-0.354552567,
0.0414595939,
-0.2801586688,
-0.1494091153,
0.2199317664,
0.4438208938,
0.0683293864,
0.2996069789,
0.0009846493,
-0.2165677249,
-0.1593233645,
-0.0043840613,
-0.0992505103,
0.345805645,
0.0916415453,
0.2404039204,
-0.1173042208,
0.5203128457,
-0.278762877,
0.2504071295,
0.0985094383,
0.3198120296,
-0.3182887733,
-0.1598252207,
-0.3909680843,
-0.1849664301,
0.0718372166,
-0.0288428441,
-0.1678706557,
-0.1904031038,
-0.2083636075,
0.1694651693,
0.1674512178,
0.0778068453,
-0.451510191,
-0.2735164165,
0.2452872097,
-0.3316919804,
0.3248008192,
0.651494205,
0.0232570972,
0.0562227815,
0.5371012092,
0.0632502437,
-0.021966299,
0.2612647414,
0.0536827669,
-0.0348969288,
0.0988742411,
0.0081218304,
-0.1294040233,
0.1176223084,
-0.3393938541,
0.0807081014,
0.1070588678,
0.1887220442,
0.1703011394,
-0.059922725,
0.0245599169,
0.2687556744,
0.1129041836,
0.1646705419,
-0.1153706014,
-0.3085023463,
0.0302263722,
0.2325204015,
-0.1687071174,
-0.4104084969,
0.7566382885,
0.0425591581,
0.1900649816,
0.2848900259,
0.5772430897,
-0.1406686008,
0.147886768,
0.0382318757,
0.5323241353,
-0.107888028,
0.4047444463,
0.2697120011,
0.0973068401,
-0.2189976126,
0.2478335947,
0.1455096006,
0.1816106737,
0.4400270581,
0.1939713806,
0.0244485084,
0.2845587432,
0.0720896795,
0.4172620475,
-0.0252616201,
-0.0628897399,
0.10486646,
-0.2750365734,
0.2027586997,
0.0119879153,
0.0079981731,
-0.3424533606,
-0.260531038,
-0.1544210911,
0.3084395826,
-0.2916769981,
-0.3251644373,
-0.1306426972,
-0.1686307788,
-0.2631806731,
0.0961992368,
-0.3659481704,
-0.0601078458,
0.4323916137,
-0.0038084958,
-0.2182587385,
0.0064996644,
0.0438869558,
0.2540252507,
0.4062713981,
-0.0232231002,
0.1179828346,
0.090263404,
-0.1274580657,
0.0154436417,
0.0913979411,
-0.0424864292,
0.3038787842,
-0.1400053799,
0.174065575,
0.270785898,
-0.0435310602,
-0.0327791646,
-0.0330935381,
-0.3947609067,
0.1191236675,
0.3757126033,
0.1388426572,
-0.0323626995,
-0.0293573216,
0.1743884832,
0.0458536334,
-0.1648015231,
0.4661773741,
0.0174197014,
-0.027507538,
0.0427779816,
-0.0030654659,
-0.2116800398,
-0.2779238224,
0.3712880313,
-0.2373943925,
0.4460168183,
-0.0956873149,
0.0796118602,
-0.2366585433,
0.371234566,
0.1805429608,
-0.2608047426,
-0.1586355716,
-0.0620333105,
-0.6452695727,
0.4140649736,
-0.1503862143,
-0.0916956142,
0.1873381585,
0.2454541177,
-0.0564330816,
-0.0166700408,
-0.3788853884,
0.1242234409,
-0.0591601953,
0.0098094493,
-0.2401360869,
-0.1214964688,
-0.0327074304,
-0.0333137289,
-0.0650218651,
-0.3487631083,
0.380092144,
0.0261319187,
0.0050030225,
0.0767499208,
0.0858563185,
0.1308989674,
0.0685434416,
0.0784846246,
0.1007965431,
0.2431459278,
-0.0259827171,
0.1433885694,
-0.3068067431,
-0.1598621458,
-0.2467747927,
-0.1682424694,
-0.0546641015,
0.4657409191,
0.0534423292,
0.139074564,
-0.0167437997,
0.1486172229,
0.262637496,
0.032216467,
0.0468716361,
0.1092389524,
-0.0895621255,
0.0967363343,
0.0090569789,
0.7228108644,
0.0388307422,
0.3496813178,
0.1571125984,
-0.4307048619,
0.3277838528,
-0.0389971323,
-0.5135701895,
0.0212820563,
0.3173384368,
0.1861610264,
-0.0772569105,
-0.1945966482,
-0.0576128066,
0.4295454323,
-0.2442879379,
-0.0474640951,
0.2996927798,
0.1470688432,
-0.1005225852,
-0.1213693097,
0.074974753,
0.2229496092,
-0.173902303,
0.3349334896,
-0.1689752936
] |
https://github.com/huggingface/datasets/issues/4211 | DatasetDict containing Datasets with different features when pushed to hub gets remapped features | Hi @albertvillanova,
Thanks a lot for your reply! I got it now. The strange thing for me was to have it correctly working (i.e., DatasetDict with different features in some datasets) locally and not on the Hub. It would be great to have configuration supported by `push_to_hub`. Personally, this latter functionality allowed me to iterate rather quickly on dataset curation.
Again, thanks for your time @albertvillanova!
Best,
Pietro | Hi there,
I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same.
Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli).
In short:
I have 3 feature mapping
```python
Tri_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]),
}
)
Ent_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]),
}
)
Con_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]),
}
)
```
Then I create different datasets
```python
dataset_splits = {}
for split in df["split"].unique():
print(split)
df_split = df.loc[df["split"] == split].copy()
if split in Tri_dataset:
df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2})
ds = Dataset.from_pandas(df_split, features=Tri_features)
elif split in Ent_bin_dataset:
df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1})
ds = Dataset.from_pandas(df_split, features=Ent_features)
elif split in Con_bin_dataset:
df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1})
ds = Dataset.from_pandas(df_split, features=Con_features)
else:
print("ERROR:", split)
dataset_splits[split] = ds
datasets = DatasetDict(dataset_splits)
```
I then push to hub
```python
datasets.push_to_hub("pietrolesci/robust_nli", token="<token>")
```
Finally, I load it from the hub
```python
datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli")
```
And I get that
```python
datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features
```
since
```python
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"])
```
gets remapped to
```python
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"])
``` | 68 | DatasetDict containing Datasets with different features when pushed to hub gets remapped features
Hi there,
I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same.
Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli).
In short:
I have 3 feature mapping
```python
Tri_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]),
}
)
Ent_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]),
}
)
Con_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]),
}
)
```
Then I create different datasets
```python
dataset_splits = {}
for split in df["split"].unique():
print(split)
df_split = df.loc[df["split"] == split].copy()
if split in Tri_dataset:
df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2})
ds = Dataset.from_pandas(df_split, features=Tri_features)
elif split in Ent_bin_dataset:
df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1})
ds = Dataset.from_pandas(df_split, features=Ent_features)
elif split in Con_bin_dataset:
df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1})
ds = Dataset.from_pandas(df_split, features=Con_features)
else:
print("ERROR:", split)
dataset_splits[split] = ds
datasets = DatasetDict(dataset_splits)
```
I then push to hub
```python
datasets.push_to_hub("pietrolesci/robust_nli", token="<token>")
```
Finally, I load it from the hub
```python
datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli")
```
And I get that
```python
datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features
```
since
```python
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"])
```
gets remapped to
```python
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"])
```
Hi @albertvillanova,
Thanks a lot for your reply! I got it now. The strange thing for me was to have it correctly working (i.e., DatasetDict with different features in some datasets) locally and not on the Hub. It would be great to have configuration supported by `push_to_hub`. Personally, this latter functionality allowed me to iterate rather quickly on dataset curation.
Again, thanks for your time @albertvillanova!
Best,
Pietro | [
0.0950680673,
-0.5818799138,
-0.0149743548,
0.3464848101,
-0.0062353625,
-0.086014092,
0.3061930239,
0.1616925895,
0.3734932244,
-0.0174942464,
-0.2923354506,
0.6108020544,
0.1393585652,
0.3625233173,
0.0080397101,
0.1103166118,
0.2680215836,
0.1151718944,
-0.0468163006,
-0.3221379519,
-0.0480113216,
0.1760944128,
-0.0420507118,
0.0004377237,
-0.4595313966,
0.1891001463,
-0.1053518578,
0.2211643904,
0.1709446162,
-0.2980315089,
0.3451831639,
0.4599791467,
-0.0677099228,
0.1324415505,
-0.0001177119,
0.0637088865,
-0.1418782622,
-0.17928271,
-0.0350894071,
-0.098700963,
-0.1220571846,
-0.2516451776,
0.1771093458,
-0.4556095004,
-0.1078763083,
0.1786478162,
-0.3233380914,
-0.2246275693,
0.1941286325,
-0.2187995613,
0.1648913473,
0.2112070769,
-0.3408596814,
0.0299005155,
0.0158918984,
0.3173235953,
-0.2182468921,
0.0699780285,
0.1846176684,
0.0805530995,
-0.1592502296,
0.3277526498,
-0.1843241602,
0.1742788106,
0.2100188583,
-0.1052963883,
0.0728197247,
-0.1169546992,
0.0000658964,
0.0569470264,
-0.0150522878,
-0.2364818454,
-0.1893728375,
-0.4711377621,
-0.2746147513,
-0.0072100726,
0.0249510091,
0.001896312,
0.0337058157,
0.0492812805,
-0.1459965557,
-0.3572990596,
0.0608174279,
-0.0616162196,
-0.3145311773,
0.3043145835,
-0.0682179034,
0.284463048,
-0.0968516767,
0.0193360727,
0.2213823199,
-0.3127903938,
0.0582898743,
-0.0319215506,
-0.1847194284,
-0.0307731591,
0.1059764847,
-0.0143929822,
0.0682804957,
0.0231969245,
0.0228289999,
0.2286942005,
-0.6147760153,
-0.0110499561,
0.2737037539,
0.0995998457,
0.2922463715,
0.3191692233,
0.0180620383,
0.1209517568,
-0.5683785677,
0.1273586154,
0.165853858,
-0.0405728668,
0.2833562195,
0.0503730625,
0.4986459017,
-0.1646451801,
-0.2798305154,
0.0045297635,
-0.106113866,
0.0543719269,
0.0605051853,
0.0420502275,
0.0791091472,
0.313285768,
-0.2984767854,
0.1700925529,
-0.3618090153,
0.1041353643,
-0.3241876066,
-0.1115144193,
-0.1847055703,
0.0400842354,
0.3358695209,
-0.2438240349,
0.0909150615,
0.1688987315,
-0.4187852442,
-0.3341597617,
-0.3554285169,
-0.0004218915,
0.279772073,
-0.101744175,
-0.0449194014,
0.2712637186,
0.2442947626,
-0.0542509444,
-0.2768010199,
0.0164182857,
-0.32790941,
-0.0528313406,
0.3681181669,
0.140391618,
-0.2818254828,
0.0734374598,
-0.1426200122,
0.2256438434,
-0.1008983105,
0.0867141113,
0.0625260547,
-0.070114769,
-0.3941499293,
-0.2160442173,
-0.0182466824,
0.5277423859,
-0.2456432283,
-0.1373989731,
0.3270342648,
-0.0284314584,
-0.0648525804,
0.2615801394,
-0.2176378518,
0.0899461508,
-0.1311514825,
0.0036384638,
0.2944133282,
-0.241308108,
-0.6630863547,
0.0600778274,
-0.1653927863,
0.3494148254,
-0.2106210291,
0.3240299225,
0.2456364632,
0.0529129915,
0.1745781749,
0.3335517943,
0.1567418426,
0.1538953632,
-0.214538008,
-0.1934229434,
0.2332875878,
-0.1404781193,
-0.0063986024,
0.0842074752,
0.2654313445,
0.1956251711,
0.3405702114,
0.0706074312,
0.1452520937,
0.0385922454,
0.1122401878,
0.1709397137,
0.195453912,
0.0001046561,
-0.5417534113,
0.3672065735,
-0.0743361041,
-0.2584416568,
-0.1426011771,
-0.145914048,
-0.4099495709,
-0.1425902098,
-0.4940243661,
-0.0195198432,
0.0976450518,
0.0289591141,
-0.1018150821,
0.1075169668,
-0.0401516445,
0.4363601208,
0.044343546,
0.0243969038,
-0.3871605694,
0.7273919582,
0.1485185325,
-0.0561602451,
-0.0032061373,
0.3952327669,
0.2842456996,
-0.2556376159,
-0.1869362742,
-0.0746177658,
0.2594532073,
0.436411798,
0.0387044884,
-0.0066559203,
0.3411523104,
-0.0777531713,
0.2727324963,
0.0895600393,
0.1012846008,
-0.2605465353,
-0.3118344843,
0.424239397,
-0.1822202802,
0.1066817418,
-0.1213161349,
0.0294644628,
0.1713083535,
-0.1744870394,
0.0045007914,
-0.4727229178,
-0.2754196525,
0.0009053302,
0.120318234,
0.2523768842,
-0.0175921153,
0.1796109229,
0.5032579899,
0.2048027068,
-0.0290681329,
-0.1707737595,
-0.3502542078,
0.0041146316,
0.0609176271,
0.0923898742,
0.2067260444,
-0.0037564642,
-0.0772854388,
0.109972246,
-0.126711756,
-0.0717703849,
-0.0433661044,
-0.1432836503,
0.0966183692,
0.2602481842,
0.2619547248,
-0.0543881021,
-0.6132264733,
0.0556912571,
0.3455605805,
-0.0133637646,
-0.1395483911,
-0.0653960556,
-0.3397597373,
-0.0768868402,
-0.3288057745,
-0.4561465681,
-0.3137588799,
-0.2691441178,
-0.0024614062,
0.7002812624,
0.0106757339,
0.1589221209,
-0.0272341613,
0.1213158965,
-0.0088989688,
-0.2427311838,
0.1327541173,
-0.2306853384,
-0.0557280444,
-0.0423321836,
0.0837648511,
0.3336846232,
0.2694580853,
-0.0274256896,
0.1206452996,
-0.5092960596,
-0.1267872751,
-0.0119933877,
-0.1189781129,
-0.042528972,
-0.1129029095,
-0.0285165403,
-0.0612883978,
-0.0756630674,
0.2696448267,
-0.2165142298,
-0.1420682818,
-0.0472924225,
0.0666102245,
-0.171409294,
0.1955788881,
-0.4494319558,
-0.1357229203,
-0.2247967124,
0.157640934,
-0.0643364117,
0.1829789132,
0.2231731266,
-0.0807811469,
-0.2393407375,
0.2258687913,
-0.2346581966,
-0.3821237981,
0.1290913671,
-0.0027851686,
-0.0394539908,
-0.1888731271,
-0.1593683511,
-0.1744647771,
0.1327531934,
0.1103978083,
-0.4787458181,
-0.0742736608,
-0.269811213,
0.4028092623,
0.2504801154,
-0.0335566327,
0.3964939415,
0.128146559,
0.132608369,
-0.0827337056,
-0.3323234916,
0.247906372,
0.6320418119,
-0.1735194325,
-0.2274897546,
-0.0190889351,
-0.0867573172,
0.1867485642,
0.1488427967,
-0.0488717668,
0.6051712036,
0.1536334008,
0.1625968367,
-0.2353595495,
-0.4306308329,
-0.0722524375,
-0.0748171359,
-0.0577004254,
0.2817772627,
-0.0258868765,
-0.2112589031,
0.0631102845,
-0.4360710382,
0.1506540179,
-0.4569500685,
-0.241010502,
-0.3659280241,
-0.1050887704,
0.1823562235,
-0.0309350472,
-0.4290912151,
-0.1407387406,
0.0913144723,
-0.0356455445,
0.1540055871,
-0.0203001238,
-0.6295239925,
-0.1279316247,
-0.2321617901,
-0.0756418183,
0.1301861405,
0.2260336876,
0.0749454349,
0.055699449,
0.1388947368,
0.1397431791,
0.5114750266,
0.0095163723,
0.2708129287,
0.2364860624,
-0.1837983727,
-0.4808137119,
-0.3540259898,
0.0465467535,
0.426779896,
-0.2061131895,
0.8991658688,
0.0754342675,
-0.2108563632,
-0.1317287385,
0.2415241897,
-0.2803535163,
-0.1920575052,
-0.0048729316,
0.0084248492,
-0.3699399531,
0.0039063669,
-0.1487847865,
0.0002170467,
-0.1327578872,
-0.4204083383,
-0.1178868636,
-0.1760736108,
0.2212652117,
0.3561234474,
0.1965063512,
0.2987137437,
0.1476947367,
0.1919699609,
0.3841755092,
-0.2629866004,
0.7729689479,
0.030510826,
-0.1625703573,
-0.1959635466,
-0.0434821472,
-0.0393873639,
0.2961922884,
0.230470866,
0.1890601218,
-0.4041310549,
-0.1302331537,
-0.465665102,
0.1208395809,
0.1342728138,
-0.0487541519,
-0.3957085311,
-0.2122682184,
0.4780399501,
-0.1038723215,
-0.3312242329,
0.381852895,
-0.1824617833,
-0.2837473452,
0.5927190781,
-0.0784303546,
0.6941951513,
0.0010306868,
0.1020135581,
0.1637286991,
0.1072200388,
0.44573614,
0.1008984372,
-0.0567962639,
-0.4702634215,
-0.2401084006,
0.0488232635,
0.0626446232,
-0.1695892066,
0.0754004717,
-0.092257224,
0.2251339704,
0.0196797568,
0.2016504705,
-0.2018356472,
0.2156424373,
0.2561692894,
-0.1932555139,
-0.1841440797,
0.0997431278,
-0.0433477238,
0.3396388292,
-0.0310237817,
0.0495003536,
-0.1077930704,
-0.0043093911,
0.0875190496,
0.1346730441,
0.1301913708,
0.5092907548,
-0.0232419465,
0.0971642435,
-0.0816844702,
-0.128474474,
0.4338392317,
-0.091515325,
-0.0530229323,
-0.0495639406,
0.325825572,
-0.017803058,
-0.1086539328,
-0.1786848903,
0.1821916997,
0.218156755,
-0.4741460979,
-0.1673745811,
0.1764344126,
-0.3593784273,
-0.471195966,
0.053361766,
0.2224900573,
-0.4097928107,
-0.214590162,
0.0914777443,
-0.00265142,
-0.1512017101,
0.0785871968,
-0.2645253539,
-0.0162501726,
0.3844267428,
0.1286748648,
-0.4448886514,
0.0007177928,
0.3555176854,
0.3043012619,
0.0412248224,
0.3218723536,
-0.1850755215,
-0.0009803806,
-0.2141494155,
-0.0387387574,
0.0941980034,
-0.354552567,
0.0414595939,
-0.2801586688,
-0.1494091153,
0.2199317664,
0.4438208938,
0.0683293864,
0.2996069789,
0.0009846493,
-0.2165677249,
-0.1593233645,
-0.0043840613,
-0.0992505103,
0.345805645,
0.0916415453,
0.2404039204,
-0.1173042208,
0.5203128457,
-0.278762877,
0.2504071295,
0.0985094383,
0.3198120296,
-0.3182887733,
-0.1598252207,
-0.3909680843,
-0.1849664301,
0.0718372166,
-0.0288428441,
-0.1678706557,
-0.1904031038,
-0.2083636075,
0.1694651693,
0.1674512178,
0.0778068453,
-0.451510191,
-0.2735164165,
0.2452872097,
-0.3316919804,
0.3248008192,
0.651494205,
0.0232570972,
0.0562227815,
0.5371012092,
0.0632502437,
-0.021966299,
0.2612647414,
0.0536827669,
-0.0348969288,
0.0988742411,
0.0081218304,
-0.1294040233,
0.1176223084,
-0.3393938541,
0.0807081014,
0.1070588678,
0.1887220442,
0.1703011394,
-0.059922725,
0.0245599169,
0.2687556744,
0.1129041836,
0.1646705419,
-0.1153706014,
-0.3085023463,
0.0302263722,
0.2325204015,
-0.1687071174,
-0.4104084969,
0.7566382885,
0.0425591581,
0.1900649816,
0.2848900259,
0.5772430897,
-0.1406686008,
0.147886768,
0.0382318757,
0.5323241353,
-0.107888028,
0.4047444463,
0.2697120011,
0.0973068401,
-0.2189976126,
0.2478335947,
0.1455096006,
0.1816106737,
0.4400270581,
0.1939713806,
0.0244485084,
0.2845587432,
0.0720896795,
0.4172620475,
-0.0252616201,
-0.0628897399,
0.10486646,
-0.2750365734,
0.2027586997,
0.0119879153,
0.0079981731,
-0.3424533606,
-0.260531038,
-0.1544210911,
0.3084395826,
-0.2916769981,
-0.3251644373,
-0.1306426972,
-0.1686307788,
-0.2631806731,
0.0961992368,
-0.3659481704,
-0.0601078458,
0.4323916137,
-0.0038084958,
-0.2182587385,
0.0064996644,
0.0438869558,
0.2540252507,
0.4062713981,
-0.0232231002,
0.1179828346,
0.090263404,
-0.1274580657,
0.0154436417,
0.0913979411,
-0.0424864292,
0.3038787842,
-0.1400053799,
0.174065575,
0.270785898,
-0.0435310602,
-0.0327791646,
-0.0330935381,
-0.3947609067,
0.1191236675,
0.3757126033,
0.1388426572,
-0.0323626995,
-0.0293573216,
0.1743884832,
0.0458536334,
-0.1648015231,
0.4661773741,
0.0174197014,
-0.027507538,
0.0427779816,
-0.0030654659,
-0.2116800398,
-0.2779238224,
0.3712880313,
-0.2373943925,
0.4460168183,
-0.0956873149,
0.0796118602,
-0.2366585433,
0.371234566,
0.1805429608,
-0.2608047426,
-0.1586355716,
-0.0620333105,
-0.6452695727,
0.4140649736,
-0.1503862143,
-0.0916956142,
0.1873381585,
0.2454541177,
-0.0564330816,
-0.0166700408,
-0.3788853884,
0.1242234409,
-0.0591601953,
0.0098094493,
-0.2401360869,
-0.1214964688,
-0.0327074304,
-0.0333137289,
-0.0650218651,
-0.3487631083,
0.380092144,
0.0261319187,
0.0050030225,
0.0767499208,
0.0858563185,
0.1308989674,
0.0685434416,
0.0784846246,
0.1007965431,
0.2431459278,
-0.0259827171,
0.1433885694,
-0.3068067431,
-0.1598621458,
-0.2467747927,
-0.1682424694,
-0.0546641015,
0.4657409191,
0.0534423292,
0.139074564,
-0.0167437997,
0.1486172229,
0.262637496,
0.032216467,
0.0468716361,
0.1092389524,
-0.0895621255,
0.0967363343,
0.0090569789,
0.7228108644,
0.0388307422,
0.3496813178,
0.1571125984,
-0.4307048619,
0.3277838528,
-0.0389971323,
-0.5135701895,
0.0212820563,
0.3173384368,
0.1861610264,
-0.0772569105,
-0.1945966482,
-0.0576128066,
0.4295454323,
-0.2442879379,
-0.0474640951,
0.2996927798,
0.1470688432,
-0.1005225852,
-0.1213693097,
0.074974753,
0.2229496092,
-0.173902303,
0.3349334896,
-0.1689752936
] |
https://github.com/huggingface/datasets/issues/4211 | DatasetDict containing Datasets with different features when pushed to hub gets remapped features | Hi! Yes, we should override `DatasetDict.__setitem__` and throw an error if features dictionaries are different. `DatasetDict` is a subclass of `dict`, so `DatasetDict.{update/setdefault}` need to be overridden as well. We could avoid this by subclassing `UserDict`, but then we would get the name collision - `DatasetDict.data` vs. `UserDict.data`. This makes me think we should rename the `data` attribute of `DatasetDict`/`Dataset` for easier dict subclassing (would also simplify https://github.com/huggingface/datasets/pull/3997) and to follow good Python practices. Another option is to have a custom `UserDict` class in `py_utils`, but it can be hard to keep this class consistent with the built-in `UserDict`.
@albertvillanova @lhoestq wdyt? | Hi there,
I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same.
Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli).
In short:
I have 3 feature mapping
```python
Tri_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]),
}
)
Ent_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]),
}
)
Con_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]),
}
)
```
Then I create different datasets
```python
dataset_splits = {}
for split in df["split"].unique():
print(split)
df_split = df.loc[df["split"] == split].copy()
if split in Tri_dataset:
df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2})
ds = Dataset.from_pandas(df_split, features=Tri_features)
elif split in Ent_bin_dataset:
df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1})
ds = Dataset.from_pandas(df_split, features=Ent_features)
elif split in Con_bin_dataset:
df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1})
ds = Dataset.from_pandas(df_split, features=Con_features)
else:
print("ERROR:", split)
dataset_splits[split] = ds
datasets = DatasetDict(dataset_splits)
```
I then push to hub
```python
datasets.push_to_hub("pietrolesci/robust_nli", token="<token>")
```
Finally, I load it from the hub
```python
datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli")
```
And I get that
```python
datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features
```
since
```python
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"])
```
gets remapped to
```python
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"])
``` | 102 | DatasetDict containing Datasets with different features when pushed to hub gets remapped features
Hi there,
I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same.
Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli).
In short:
I have 3 feature mapping
```python
Tri_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]),
}
)
Ent_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]),
}
)
Con_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]),
}
)
```
Then I create different datasets
```python
dataset_splits = {}
for split in df["split"].unique():
print(split)
df_split = df.loc[df["split"] == split].copy()
if split in Tri_dataset:
df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2})
ds = Dataset.from_pandas(df_split, features=Tri_features)
elif split in Ent_bin_dataset:
df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1})
ds = Dataset.from_pandas(df_split, features=Ent_features)
elif split in Con_bin_dataset:
df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1})
ds = Dataset.from_pandas(df_split, features=Con_features)
else:
print("ERROR:", split)
dataset_splits[split] = ds
datasets = DatasetDict(dataset_splits)
```
I then push to hub
```python
datasets.push_to_hub("pietrolesci/robust_nli", token="<token>")
```
Finally, I load it from the hub
```python
datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli")
```
And I get that
```python
datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features
```
since
```python
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"])
```
gets remapped to
```python
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"])
```
Hi! Yes, we should override `DatasetDict.__setitem__` and throw an error if features dictionaries are different. `DatasetDict` is a subclass of `dict`, so `DatasetDict.{update/setdefault}` need to be overridden as well. We could avoid this by subclassing `UserDict`, but then we would get the name collision - `DatasetDict.data` vs. `UserDict.data`. This makes me think we should rename the `data` attribute of `DatasetDict`/`Dataset` for easier dict subclassing (would also simplify https://github.com/huggingface/datasets/pull/3997) and to follow good Python practices. Another option is to have a custom `UserDict` class in `py_utils`, but it can be hard to keep this class consistent with the built-in `UserDict`.
@albertvillanova @lhoestq wdyt? | [
0.0950680673,
-0.5818799138,
-0.0149743548,
0.3464848101,
-0.0062353625,
-0.086014092,
0.3061930239,
0.1616925895,
0.3734932244,
-0.0174942464,
-0.2923354506,
0.6108020544,
0.1393585652,
0.3625233173,
0.0080397101,
0.1103166118,
0.2680215836,
0.1151718944,
-0.0468163006,
-0.3221379519,
-0.0480113216,
0.1760944128,
-0.0420507118,
0.0004377237,
-0.4595313966,
0.1891001463,
-0.1053518578,
0.2211643904,
0.1709446162,
-0.2980315089,
0.3451831639,
0.4599791467,
-0.0677099228,
0.1324415505,
-0.0001177119,
0.0637088865,
-0.1418782622,
-0.17928271,
-0.0350894071,
-0.098700963,
-0.1220571846,
-0.2516451776,
0.1771093458,
-0.4556095004,
-0.1078763083,
0.1786478162,
-0.3233380914,
-0.2246275693,
0.1941286325,
-0.2187995613,
0.1648913473,
0.2112070769,
-0.3408596814,
0.0299005155,
0.0158918984,
0.3173235953,
-0.2182468921,
0.0699780285,
0.1846176684,
0.0805530995,
-0.1592502296,
0.3277526498,
-0.1843241602,
0.1742788106,
0.2100188583,
-0.1052963883,
0.0728197247,
-0.1169546992,
0.0000658964,
0.0569470264,
-0.0150522878,
-0.2364818454,
-0.1893728375,
-0.4711377621,
-0.2746147513,
-0.0072100726,
0.0249510091,
0.001896312,
0.0337058157,
0.0492812805,
-0.1459965557,
-0.3572990596,
0.0608174279,
-0.0616162196,
-0.3145311773,
0.3043145835,
-0.0682179034,
0.284463048,
-0.0968516767,
0.0193360727,
0.2213823199,
-0.3127903938,
0.0582898743,
-0.0319215506,
-0.1847194284,
-0.0307731591,
0.1059764847,
-0.0143929822,
0.0682804957,
0.0231969245,
0.0228289999,
0.2286942005,
-0.6147760153,
-0.0110499561,
0.2737037539,
0.0995998457,
0.2922463715,
0.3191692233,
0.0180620383,
0.1209517568,
-0.5683785677,
0.1273586154,
0.165853858,
-0.0405728668,
0.2833562195,
0.0503730625,
0.4986459017,
-0.1646451801,
-0.2798305154,
0.0045297635,
-0.106113866,
0.0543719269,
0.0605051853,
0.0420502275,
0.0791091472,
0.313285768,
-0.2984767854,
0.1700925529,
-0.3618090153,
0.1041353643,
-0.3241876066,
-0.1115144193,
-0.1847055703,
0.0400842354,
0.3358695209,
-0.2438240349,
0.0909150615,
0.1688987315,
-0.4187852442,
-0.3341597617,
-0.3554285169,
-0.0004218915,
0.279772073,
-0.101744175,
-0.0449194014,
0.2712637186,
0.2442947626,
-0.0542509444,
-0.2768010199,
0.0164182857,
-0.32790941,
-0.0528313406,
0.3681181669,
0.140391618,
-0.2818254828,
0.0734374598,
-0.1426200122,
0.2256438434,
-0.1008983105,
0.0867141113,
0.0625260547,
-0.070114769,
-0.3941499293,
-0.2160442173,
-0.0182466824,
0.5277423859,
-0.2456432283,
-0.1373989731,
0.3270342648,
-0.0284314584,
-0.0648525804,
0.2615801394,
-0.2176378518,
0.0899461508,
-0.1311514825,
0.0036384638,
0.2944133282,
-0.241308108,
-0.6630863547,
0.0600778274,
-0.1653927863,
0.3494148254,
-0.2106210291,
0.3240299225,
0.2456364632,
0.0529129915,
0.1745781749,
0.3335517943,
0.1567418426,
0.1538953632,
-0.214538008,
-0.1934229434,
0.2332875878,
-0.1404781193,
-0.0063986024,
0.0842074752,
0.2654313445,
0.1956251711,
0.3405702114,
0.0706074312,
0.1452520937,
0.0385922454,
0.1122401878,
0.1709397137,
0.195453912,
0.0001046561,
-0.5417534113,
0.3672065735,
-0.0743361041,
-0.2584416568,
-0.1426011771,
-0.145914048,
-0.4099495709,
-0.1425902098,
-0.4940243661,
-0.0195198432,
0.0976450518,
0.0289591141,
-0.1018150821,
0.1075169668,
-0.0401516445,
0.4363601208,
0.044343546,
0.0243969038,
-0.3871605694,
0.7273919582,
0.1485185325,
-0.0561602451,
-0.0032061373,
0.3952327669,
0.2842456996,
-0.2556376159,
-0.1869362742,
-0.0746177658,
0.2594532073,
0.436411798,
0.0387044884,
-0.0066559203,
0.3411523104,
-0.0777531713,
0.2727324963,
0.0895600393,
0.1012846008,
-0.2605465353,
-0.3118344843,
0.424239397,
-0.1822202802,
0.1066817418,
-0.1213161349,
0.0294644628,
0.1713083535,
-0.1744870394,
0.0045007914,
-0.4727229178,
-0.2754196525,
0.0009053302,
0.120318234,
0.2523768842,
-0.0175921153,
0.1796109229,
0.5032579899,
0.2048027068,
-0.0290681329,
-0.1707737595,
-0.3502542078,
0.0041146316,
0.0609176271,
0.0923898742,
0.2067260444,
-0.0037564642,
-0.0772854388,
0.109972246,
-0.126711756,
-0.0717703849,
-0.0433661044,
-0.1432836503,
0.0966183692,
0.2602481842,
0.2619547248,
-0.0543881021,
-0.6132264733,
0.0556912571,
0.3455605805,
-0.0133637646,
-0.1395483911,
-0.0653960556,
-0.3397597373,
-0.0768868402,
-0.3288057745,
-0.4561465681,
-0.3137588799,
-0.2691441178,
-0.0024614062,
0.7002812624,
0.0106757339,
0.1589221209,
-0.0272341613,
0.1213158965,
-0.0088989688,
-0.2427311838,
0.1327541173,
-0.2306853384,
-0.0557280444,
-0.0423321836,
0.0837648511,
0.3336846232,
0.2694580853,
-0.0274256896,
0.1206452996,
-0.5092960596,
-0.1267872751,
-0.0119933877,
-0.1189781129,
-0.042528972,
-0.1129029095,
-0.0285165403,
-0.0612883978,
-0.0756630674,
0.2696448267,
-0.2165142298,
-0.1420682818,
-0.0472924225,
0.0666102245,
-0.171409294,
0.1955788881,
-0.4494319558,
-0.1357229203,
-0.2247967124,
0.157640934,
-0.0643364117,
0.1829789132,
0.2231731266,
-0.0807811469,
-0.2393407375,
0.2258687913,
-0.2346581966,
-0.3821237981,
0.1290913671,
-0.0027851686,
-0.0394539908,
-0.1888731271,
-0.1593683511,
-0.1744647771,
0.1327531934,
0.1103978083,
-0.4787458181,
-0.0742736608,
-0.269811213,
0.4028092623,
0.2504801154,
-0.0335566327,
0.3964939415,
0.128146559,
0.132608369,
-0.0827337056,
-0.3323234916,
0.247906372,
0.6320418119,
-0.1735194325,
-0.2274897546,
-0.0190889351,
-0.0867573172,
0.1867485642,
0.1488427967,
-0.0488717668,
0.6051712036,
0.1536334008,
0.1625968367,
-0.2353595495,
-0.4306308329,
-0.0722524375,
-0.0748171359,
-0.0577004254,
0.2817772627,
-0.0258868765,
-0.2112589031,
0.0631102845,
-0.4360710382,
0.1506540179,
-0.4569500685,
-0.241010502,
-0.3659280241,
-0.1050887704,
0.1823562235,
-0.0309350472,
-0.4290912151,
-0.1407387406,
0.0913144723,
-0.0356455445,
0.1540055871,
-0.0203001238,
-0.6295239925,
-0.1279316247,
-0.2321617901,
-0.0756418183,
0.1301861405,
0.2260336876,
0.0749454349,
0.055699449,
0.1388947368,
0.1397431791,
0.5114750266,
0.0095163723,
0.2708129287,
0.2364860624,
-0.1837983727,
-0.4808137119,
-0.3540259898,
0.0465467535,
0.426779896,
-0.2061131895,
0.8991658688,
0.0754342675,
-0.2108563632,
-0.1317287385,
0.2415241897,
-0.2803535163,
-0.1920575052,
-0.0048729316,
0.0084248492,
-0.3699399531,
0.0039063669,
-0.1487847865,
0.0002170467,
-0.1327578872,
-0.4204083383,
-0.1178868636,
-0.1760736108,
0.2212652117,
0.3561234474,
0.1965063512,
0.2987137437,
0.1476947367,
0.1919699609,
0.3841755092,
-0.2629866004,
0.7729689479,
0.030510826,
-0.1625703573,
-0.1959635466,
-0.0434821472,
-0.0393873639,
0.2961922884,
0.230470866,
0.1890601218,
-0.4041310549,
-0.1302331537,
-0.465665102,
0.1208395809,
0.1342728138,
-0.0487541519,
-0.3957085311,
-0.2122682184,
0.4780399501,
-0.1038723215,
-0.3312242329,
0.381852895,
-0.1824617833,
-0.2837473452,
0.5927190781,
-0.0784303546,
0.6941951513,
0.0010306868,
0.1020135581,
0.1637286991,
0.1072200388,
0.44573614,
0.1008984372,
-0.0567962639,
-0.4702634215,
-0.2401084006,
0.0488232635,
0.0626446232,
-0.1695892066,
0.0754004717,
-0.092257224,
0.2251339704,
0.0196797568,
0.2016504705,
-0.2018356472,
0.2156424373,
0.2561692894,
-0.1932555139,
-0.1841440797,
0.0997431278,
-0.0433477238,
0.3396388292,
-0.0310237817,
0.0495003536,
-0.1077930704,
-0.0043093911,
0.0875190496,
0.1346730441,
0.1301913708,
0.5092907548,
-0.0232419465,
0.0971642435,
-0.0816844702,
-0.128474474,
0.4338392317,
-0.091515325,
-0.0530229323,
-0.0495639406,
0.325825572,
-0.017803058,
-0.1086539328,
-0.1786848903,
0.1821916997,
0.218156755,
-0.4741460979,
-0.1673745811,
0.1764344126,
-0.3593784273,
-0.471195966,
0.053361766,
0.2224900573,
-0.4097928107,
-0.214590162,
0.0914777443,
-0.00265142,
-0.1512017101,
0.0785871968,
-0.2645253539,
-0.0162501726,
0.3844267428,
0.1286748648,
-0.4448886514,
0.0007177928,
0.3555176854,
0.3043012619,
0.0412248224,
0.3218723536,
-0.1850755215,
-0.0009803806,
-0.2141494155,
-0.0387387574,
0.0941980034,
-0.354552567,
0.0414595939,
-0.2801586688,
-0.1494091153,
0.2199317664,
0.4438208938,
0.0683293864,
0.2996069789,
0.0009846493,
-0.2165677249,
-0.1593233645,
-0.0043840613,
-0.0992505103,
0.345805645,
0.0916415453,
0.2404039204,
-0.1173042208,
0.5203128457,
-0.278762877,
0.2504071295,
0.0985094383,
0.3198120296,
-0.3182887733,
-0.1598252207,
-0.3909680843,
-0.1849664301,
0.0718372166,
-0.0288428441,
-0.1678706557,
-0.1904031038,
-0.2083636075,
0.1694651693,
0.1674512178,
0.0778068453,
-0.451510191,
-0.2735164165,
0.2452872097,
-0.3316919804,
0.3248008192,
0.651494205,
0.0232570972,
0.0562227815,
0.5371012092,
0.0632502437,
-0.021966299,
0.2612647414,
0.0536827669,
-0.0348969288,
0.0988742411,
0.0081218304,
-0.1294040233,
0.1176223084,
-0.3393938541,
0.0807081014,
0.1070588678,
0.1887220442,
0.1703011394,
-0.059922725,
0.0245599169,
0.2687556744,
0.1129041836,
0.1646705419,
-0.1153706014,
-0.3085023463,
0.0302263722,
0.2325204015,
-0.1687071174,
-0.4104084969,
0.7566382885,
0.0425591581,
0.1900649816,
0.2848900259,
0.5772430897,
-0.1406686008,
0.147886768,
0.0382318757,
0.5323241353,
-0.107888028,
0.4047444463,
0.2697120011,
0.0973068401,
-0.2189976126,
0.2478335947,
0.1455096006,
0.1816106737,
0.4400270581,
0.1939713806,
0.0244485084,
0.2845587432,
0.0720896795,
0.4172620475,
-0.0252616201,
-0.0628897399,
0.10486646,
-0.2750365734,
0.2027586997,
0.0119879153,
0.0079981731,
-0.3424533606,
-0.260531038,
-0.1544210911,
0.3084395826,
-0.2916769981,
-0.3251644373,
-0.1306426972,
-0.1686307788,
-0.2631806731,
0.0961992368,
-0.3659481704,
-0.0601078458,
0.4323916137,
-0.0038084958,
-0.2182587385,
0.0064996644,
0.0438869558,
0.2540252507,
0.4062713981,
-0.0232231002,
0.1179828346,
0.090263404,
-0.1274580657,
0.0154436417,
0.0913979411,
-0.0424864292,
0.3038787842,
-0.1400053799,
0.174065575,
0.270785898,
-0.0435310602,
-0.0327791646,
-0.0330935381,
-0.3947609067,
0.1191236675,
0.3757126033,
0.1388426572,
-0.0323626995,
-0.0293573216,
0.1743884832,
0.0458536334,
-0.1648015231,
0.4661773741,
0.0174197014,
-0.027507538,
0.0427779816,
-0.0030654659,
-0.2116800398,
-0.2779238224,
0.3712880313,
-0.2373943925,
0.4460168183,
-0.0956873149,
0.0796118602,
-0.2366585433,
0.371234566,
0.1805429608,
-0.2608047426,
-0.1586355716,
-0.0620333105,
-0.6452695727,
0.4140649736,
-0.1503862143,
-0.0916956142,
0.1873381585,
0.2454541177,
-0.0564330816,
-0.0166700408,
-0.3788853884,
0.1242234409,
-0.0591601953,
0.0098094493,
-0.2401360869,
-0.1214964688,
-0.0327074304,
-0.0333137289,
-0.0650218651,
-0.3487631083,
0.380092144,
0.0261319187,
0.0050030225,
0.0767499208,
0.0858563185,
0.1308989674,
0.0685434416,
0.0784846246,
0.1007965431,
0.2431459278,
-0.0259827171,
0.1433885694,
-0.3068067431,
-0.1598621458,
-0.2467747927,
-0.1682424694,
-0.0546641015,
0.4657409191,
0.0534423292,
0.139074564,
-0.0167437997,
0.1486172229,
0.262637496,
0.032216467,
0.0468716361,
0.1092389524,
-0.0895621255,
0.0967363343,
0.0090569789,
0.7228108644,
0.0388307422,
0.3496813178,
0.1571125984,
-0.4307048619,
0.3277838528,
-0.0389971323,
-0.5135701895,
0.0212820563,
0.3173384368,
0.1861610264,
-0.0772569105,
-0.1945966482,
-0.0576128066,
0.4295454323,
-0.2442879379,
-0.0474640951,
0.2996927798,
0.1470688432,
-0.1005225852,
-0.1213693097,
0.074974753,
0.2229496092,
-0.173902303,
0.3349334896,
-0.1689752936
] |
https://github.com/huggingface/datasets/issues/4211 | DatasetDict containing Datasets with different features when pushed to hub gets remapped features | I would keep things simple and keep subclassing dict. Regarding the features check, I guess this can be done only for `push_to_hub` right ? It is the only function right now that requires the underlying datasets to be splits (e.g. train/test) and have the same features.
Note that later you will be able to push datasets with different features as different dataset **configurations** (similarly to the [GLUE subsets](https://huggingface.co/datasets/glue) for example). We will work on this soon | Hi there,
I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same.
Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli).
In short:
I have 3 feature mapping
```python
Tri_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]),
}
)
Ent_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]),
}
)
Con_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]),
}
)
```
Then I create different datasets
```python
dataset_splits = {}
for split in df["split"].unique():
print(split)
df_split = df.loc[df["split"] == split].copy()
if split in Tri_dataset:
df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2})
ds = Dataset.from_pandas(df_split, features=Tri_features)
elif split in Ent_bin_dataset:
df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1})
ds = Dataset.from_pandas(df_split, features=Ent_features)
elif split in Con_bin_dataset:
df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1})
ds = Dataset.from_pandas(df_split, features=Con_features)
else:
print("ERROR:", split)
dataset_splits[split] = ds
datasets = DatasetDict(dataset_splits)
```
I then push to hub
```python
datasets.push_to_hub("pietrolesci/robust_nli", token="<token>")
```
Finally, I load it from the hub
```python
datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli")
```
And I get that
```python
datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features
```
since
```python
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"])
```
gets remapped to
```python
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"])
``` | 76 | DatasetDict containing Datasets with different features when pushed to hub gets remapped features
Hi there,
I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same.
Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli).
In short:
I have 3 feature mapping
```python
Tri_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]),
}
)
Ent_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]),
}
)
Con_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]),
}
)
```
Then I create different datasets
```python
dataset_splits = {}
for split in df["split"].unique():
print(split)
df_split = df.loc[df["split"] == split].copy()
if split in Tri_dataset:
df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2})
ds = Dataset.from_pandas(df_split, features=Tri_features)
elif split in Ent_bin_dataset:
df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1})
ds = Dataset.from_pandas(df_split, features=Ent_features)
elif split in Con_bin_dataset:
df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1})
ds = Dataset.from_pandas(df_split, features=Con_features)
else:
print("ERROR:", split)
dataset_splits[split] = ds
datasets = DatasetDict(dataset_splits)
```
I then push to hub
```python
datasets.push_to_hub("pietrolesci/robust_nli", token="<token>")
```
Finally, I load it from the hub
```python
datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli")
```
And I get that
```python
datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features
```
since
```python
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"])
```
gets remapped to
```python
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"])
```
I would keep things simple and keep subclassing dict. Regarding the features check, I guess this can be done only for `push_to_hub` right ? It is the only function right now that requires the underlying datasets to be splits (e.g. train/test) and have the same features.
Note that later you will be able to push datasets with different features as different dataset **configurations** (similarly to the [GLUE subsets](https://huggingface.co/datasets/glue) for example). We will work on this soon | [
0.0950680673,
-0.5818799138,
-0.0149743548,
0.3464848101,
-0.0062353625,
-0.086014092,
0.3061930239,
0.1616925895,
0.3734932244,
-0.0174942464,
-0.2923354506,
0.6108020544,
0.1393585652,
0.3625233173,
0.0080397101,
0.1103166118,
0.2680215836,
0.1151718944,
-0.0468163006,
-0.3221379519,
-0.0480113216,
0.1760944128,
-0.0420507118,
0.0004377237,
-0.4595313966,
0.1891001463,
-0.1053518578,
0.2211643904,
0.1709446162,
-0.2980315089,
0.3451831639,
0.4599791467,
-0.0677099228,
0.1324415505,
-0.0001177119,
0.0637088865,
-0.1418782622,
-0.17928271,
-0.0350894071,
-0.098700963,
-0.1220571846,
-0.2516451776,
0.1771093458,
-0.4556095004,
-0.1078763083,
0.1786478162,
-0.3233380914,
-0.2246275693,
0.1941286325,
-0.2187995613,
0.1648913473,
0.2112070769,
-0.3408596814,
0.0299005155,
0.0158918984,
0.3173235953,
-0.2182468921,
0.0699780285,
0.1846176684,
0.0805530995,
-0.1592502296,
0.3277526498,
-0.1843241602,
0.1742788106,
0.2100188583,
-0.1052963883,
0.0728197247,
-0.1169546992,
0.0000658964,
0.0569470264,
-0.0150522878,
-0.2364818454,
-0.1893728375,
-0.4711377621,
-0.2746147513,
-0.0072100726,
0.0249510091,
0.001896312,
0.0337058157,
0.0492812805,
-0.1459965557,
-0.3572990596,
0.0608174279,
-0.0616162196,
-0.3145311773,
0.3043145835,
-0.0682179034,
0.284463048,
-0.0968516767,
0.0193360727,
0.2213823199,
-0.3127903938,
0.0582898743,
-0.0319215506,
-0.1847194284,
-0.0307731591,
0.1059764847,
-0.0143929822,
0.0682804957,
0.0231969245,
0.0228289999,
0.2286942005,
-0.6147760153,
-0.0110499561,
0.2737037539,
0.0995998457,
0.2922463715,
0.3191692233,
0.0180620383,
0.1209517568,
-0.5683785677,
0.1273586154,
0.165853858,
-0.0405728668,
0.2833562195,
0.0503730625,
0.4986459017,
-0.1646451801,
-0.2798305154,
0.0045297635,
-0.106113866,
0.0543719269,
0.0605051853,
0.0420502275,
0.0791091472,
0.313285768,
-0.2984767854,
0.1700925529,
-0.3618090153,
0.1041353643,
-0.3241876066,
-0.1115144193,
-0.1847055703,
0.0400842354,
0.3358695209,
-0.2438240349,
0.0909150615,
0.1688987315,
-0.4187852442,
-0.3341597617,
-0.3554285169,
-0.0004218915,
0.279772073,
-0.101744175,
-0.0449194014,
0.2712637186,
0.2442947626,
-0.0542509444,
-0.2768010199,
0.0164182857,
-0.32790941,
-0.0528313406,
0.3681181669,
0.140391618,
-0.2818254828,
0.0734374598,
-0.1426200122,
0.2256438434,
-0.1008983105,
0.0867141113,
0.0625260547,
-0.070114769,
-0.3941499293,
-0.2160442173,
-0.0182466824,
0.5277423859,
-0.2456432283,
-0.1373989731,
0.3270342648,
-0.0284314584,
-0.0648525804,
0.2615801394,
-0.2176378518,
0.0899461508,
-0.1311514825,
0.0036384638,
0.2944133282,
-0.241308108,
-0.6630863547,
0.0600778274,
-0.1653927863,
0.3494148254,
-0.2106210291,
0.3240299225,
0.2456364632,
0.0529129915,
0.1745781749,
0.3335517943,
0.1567418426,
0.1538953632,
-0.214538008,
-0.1934229434,
0.2332875878,
-0.1404781193,
-0.0063986024,
0.0842074752,
0.2654313445,
0.1956251711,
0.3405702114,
0.0706074312,
0.1452520937,
0.0385922454,
0.1122401878,
0.1709397137,
0.195453912,
0.0001046561,
-0.5417534113,
0.3672065735,
-0.0743361041,
-0.2584416568,
-0.1426011771,
-0.145914048,
-0.4099495709,
-0.1425902098,
-0.4940243661,
-0.0195198432,
0.0976450518,
0.0289591141,
-0.1018150821,
0.1075169668,
-0.0401516445,
0.4363601208,
0.044343546,
0.0243969038,
-0.3871605694,
0.7273919582,
0.1485185325,
-0.0561602451,
-0.0032061373,
0.3952327669,
0.2842456996,
-0.2556376159,
-0.1869362742,
-0.0746177658,
0.2594532073,
0.436411798,
0.0387044884,
-0.0066559203,
0.3411523104,
-0.0777531713,
0.2727324963,
0.0895600393,
0.1012846008,
-0.2605465353,
-0.3118344843,
0.424239397,
-0.1822202802,
0.1066817418,
-0.1213161349,
0.0294644628,
0.1713083535,
-0.1744870394,
0.0045007914,
-0.4727229178,
-0.2754196525,
0.0009053302,
0.120318234,
0.2523768842,
-0.0175921153,
0.1796109229,
0.5032579899,
0.2048027068,
-0.0290681329,
-0.1707737595,
-0.3502542078,
0.0041146316,
0.0609176271,
0.0923898742,
0.2067260444,
-0.0037564642,
-0.0772854388,
0.109972246,
-0.126711756,
-0.0717703849,
-0.0433661044,
-0.1432836503,
0.0966183692,
0.2602481842,
0.2619547248,
-0.0543881021,
-0.6132264733,
0.0556912571,
0.3455605805,
-0.0133637646,
-0.1395483911,
-0.0653960556,
-0.3397597373,
-0.0768868402,
-0.3288057745,
-0.4561465681,
-0.3137588799,
-0.2691441178,
-0.0024614062,
0.7002812624,
0.0106757339,
0.1589221209,
-0.0272341613,
0.1213158965,
-0.0088989688,
-0.2427311838,
0.1327541173,
-0.2306853384,
-0.0557280444,
-0.0423321836,
0.0837648511,
0.3336846232,
0.2694580853,
-0.0274256896,
0.1206452996,
-0.5092960596,
-0.1267872751,
-0.0119933877,
-0.1189781129,
-0.042528972,
-0.1129029095,
-0.0285165403,
-0.0612883978,
-0.0756630674,
0.2696448267,
-0.2165142298,
-0.1420682818,
-0.0472924225,
0.0666102245,
-0.171409294,
0.1955788881,
-0.4494319558,
-0.1357229203,
-0.2247967124,
0.157640934,
-0.0643364117,
0.1829789132,
0.2231731266,
-0.0807811469,
-0.2393407375,
0.2258687913,
-0.2346581966,
-0.3821237981,
0.1290913671,
-0.0027851686,
-0.0394539908,
-0.1888731271,
-0.1593683511,
-0.1744647771,
0.1327531934,
0.1103978083,
-0.4787458181,
-0.0742736608,
-0.269811213,
0.4028092623,
0.2504801154,
-0.0335566327,
0.3964939415,
0.128146559,
0.132608369,
-0.0827337056,
-0.3323234916,
0.247906372,
0.6320418119,
-0.1735194325,
-0.2274897546,
-0.0190889351,
-0.0867573172,
0.1867485642,
0.1488427967,
-0.0488717668,
0.6051712036,
0.1536334008,
0.1625968367,
-0.2353595495,
-0.4306308329,
-0.0722524375,
-0.0748171359,
-0.0577004254,
0.2817772627,
-0.0258868765,
-0.2112589031,
0.0631102845,
-0.4360710382,
0.1506540179,
-0.4569500685,
-0.241010502,
-0.3659280241,
-0.1050887704,
0.1823562235,
-0.0309350472,
-0.4290912151,
-0.1407387406,
0.0913144723,
-0.0356455445,
0.1540055871,
-0.0203001238,
-0.6295239925,
-0.1279316247,
-0.2321617901,
-0.0756418183,
0.1301861405,
0.2260336876,
0.0749454349,
0.055699449,
0.1388947368,
0.1397431791,
0.5114750266,
0.0095163723,
0.2708129287,
0.2364860624,
-0.1837983727,
-0.4808137119,
-0.3540259898,
0.0465467535,
0.426779896,
-0.2061131895,
0.8991658688,
0.0754342675,
-0.2108563632,
-0.1317287385,
0.2415241897,
-0.2803535163,
-0.1920575052,
-0.0048729316,
0.0084248492,
-0.3699399531,
0.0039063669,
-0.1487847865,
0.0002170467,
-0.1327578872,
-0.4204083383,
-0.1178868636,
-0.1760736108,
0.2212652117,
0.3561234474,
0.1965063512,
0.2987137437,
0.1476947367,
0.1919699609,
0.3841755092,
-0.2629866004,
0.7729689479,
0.030510826,
-0.1625703573,
-0.1959635466,
-0.0434821472,
-0.0393873639,
0.2961922884,
0.230470866,
0.1890601218,
-0.4041310549,
-0.1302331537,
-0.465665102,
0.1208395809,
0.1342728138,
-0.0487541519,
-0.3957085311,
-0.2122682184,
0.4780399501,
-0.1038723215,
-0.3312242329,
0.381852895,
-0.1824617833,
-0.2837473452,
0.5927190781,
-0.0784303546,
0.6941951513,
0.0010306868,
0.1020135581,
0.1637286991,
0.1072200388,
0.44573614,
0.1008984372,
-0.0567962639,
-0.4702634215,
-0.2401084006,
0.0488232635,
0.0626446232,
-0.1695892066,
0.0754004717,
-0.092257224,
0.2251339704,
0.0196797568,
0.2016504705,
-0.2018356472,
0.2156424373,
0.2561692894,
-0.1932555139,
-0.1841440797,
0.0997431278,
-0.0433477238,
0.3396388292,
-0.0310237817,
0.0495003536,
-0.1077930704,
-0.0043093911,
0.0875190496,
0.1346730441,
0.1301913708,
0.5092907548,
-0.0232419465,
0.0971642435,
-0.0816844702,
-0.128474474,
0.4338392317,
-0.091515325,
-0.0530229323,
-0.0495639406,
0.325825572,
-0.017803058,
-0.1086539328,
-0.1786848903,
0.1821916997,
0.218156755,
-0.4741460979,
-0.1673745811,
0.1764344126,
-0.3593784273,
-0.471195966,
0.053361766,
0.2224900573,
-0.4097928107,
-0.214590162,
0.0914777443,
-0.00265142,
-0.1512017101,
0.0785871968,
-0.2645253539,
-0.0162501726,
0.3844267428,
0.1286748648,
-0.4448886514,
0.0007177928,
0.3555176854,
0.3043012619,
0.0412248224,
0.3218723536,
-0.1850755215,
-0.0009803806,
-0.2141494155,
-0.0387387574,
0.0941980034,
-0.354552567,
0.0414595939,
-0.2801586688,
-0.1494091153,
0.2199317664,
0.4438208938,
0.0683293864,
0.2996069789,
0.0009846493,
-0.2165677249,
-0.1593233645,
-0.0043840613,
-0.0992505103,
0.345805645,
0.0916415453,
0.2404039204,
-0.1173042208,
0.5203128457,
-0.278762877,
0.2504071295,
0.0985094383,
0.3198120296,
-0.3182887733,
-0.1598252207,
-0.3909680843,
-0.1849664301,
0.0718372166,
-0.0288428441,
-0.1678706557,
-0.1904031038,
-0.2083636075,
0.1694651693,
0.1674512178,
0.0778068453,
-0.451510191,
-0.2735164165,
0.2452872097,
-0.3316919804,
0.3248008192,
0.651494205,
0.0232570972,
0.0562227815,
0.5371012092,
0.0632502437,
-0.021966299,
0.2612647414,
0.0536827669,
-0.0348969288,
0.0988742411,
0.0081218304,
-0.1294040233,
0.1176223084,
-0.3393938541,
0.0807081014,
0.1070588678,
0.1887220442,
0.1703011394,
-0.059922725,
0.0245599169,
0.2687556744,
0.1129041836,
0.1646705419,
-0.1153706014,
-0.3085023463,
0.0302263722,
0.2325204015,
-0.1687071174,
-0.4104084969,
0.7566382885,
0.0425591581,
0.1900649816,
0.2848900259,
0.5772430897,
-0.1406686008,
0.147886768,
0.0382318757,
0.5323241353,
-0.107888028,
0.4047444463,
0.2697120011,
0.0973068401,
-0.2189976126,
0.2478335947,
0.1455096006,
0.1816106737,
0.4400270581,
0.1939713806,
0.0244485084,
0.2845587432,
0.0720896795,
0.4172620475,
-0.0252616201,
-0.0628897399,
0.10486646,
-0.2750365734,
0.2027586997,
0.0119879153,
0.0079981731,
-0.3424533606,
-0.260531038,
-0.1544210911,
0.3084395826,
-0.2916769981,
-0.3251644373,
-0.1306426972,
-0.1686307788,
-0.2631806731,
0.0961992368,
-0.3659481704,
-0.0601078458,
0.4323916137,
-0.0038084958,
-0.2182587385,
0.0064996644,
0.0438869558,
0.2540252507,
0.4062713981,
-0.0232231002,
0.1179828346,
0.090263404,
-0.1274580657,
0.0154436417,
0.0913979411,
-0.0424864292,
0.3038787842,
-0.1400053799,
0.174065575,
0.270785898,
-0.0435310602,
-0.0327791646,
-0.0330935381,
-0.3947609067,
0.1191236675,
0.3757126033,
0.1388426572,
-0.0323626995,
-0.0293573216,
0.1743884832,
0.0458536334,
-0.1648015231,
0.4661773741,
0.0174197014,
-0.027507538,
0.0427779816,
-0.0030654659,
-0.2116800398,
-0.2779238224,
0.3712880313,
-0.2373943925,
0.4460168183,
-0.0956873149,
0.0796118602,
-0.2366585433,
0.371234566,
0.1805429608,
-0.2608047426,
-0.1586355716,
-0.0620333105,
-0.6452695727,
0.4140649736,
-0.1503862143,
-0.0916956142,
0.1873381585,
0.2454541177,
-0.0564330816,
-0.0166700408,
-0.3788853884,
0.1242234409,
-0.0591601953,
0.0098094493,
-0.2401360869,
-0.1214964688,
-0.0327074304,
-0.0333137289,
-0.0650218651,
-0.3487631083,
0.380092144,
0.0261319187,
0.0050030225,
0.0767499208,
0.0858563185,
0.1308989674,
0.0685434416,
0.0784846246,
0.1007965431,
0.2431459278,
-0.0259827171,
0.1433885694,
-0.3068067431,
-0.1598621458,
-0.2467747927,
-0.1682424694,
-0.0546641015,
0.4657409191,
0.0534423292,
0.139074564,
-0.0167437997,
0.1486172229,
0.262637496,
0.032216467,
0.0468716361,
0.1092389524,
-0.0895621255,
0.0967363343,
0.0090569789,
0.7228108644,
0.0388307422,
0.3496813178,
0.1571125984,
-0.4307048619,
0.3277838528,
-0.0389971323,
-0.5135701895,
0.0212820563,
0.3173384368,
0.1861610264,
-0.0772569105,
-0.1945966482,
-0.0576128066,
0.4295454323,
-0.2442879379,
-0.0474640951,
0.2996927798,
0.1470688432,
-0.1005225852,
-0.1213693097,
0.074974753,
0.2229496092,
-0.173902303,
0.3349334896,
-0.1689752936
] |
https://github.com/huggingface/datasets/issues/4210 | TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe' | Hi! Casting class labels from strings is currently not supported in the CSV loader, but you can get the same result with an additional map as follows:
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset(
"loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
)
# You can make this part faster with num_proc=<some int>
sentences = sentences.map(lambda ex: features["label"].str2int(ex["label"]) if ex["label"] is not None else None, features=features)
```
@lhoestq IIRC, I suggested adding `cast_to_storage` to `ClassLabel` + `table_cast` to the packaged loaders if the `ClassLabel`/`Image`/`Audio` type is present in `features` to avoid this kind of error, but your concern was speed. IMO shouldn't be a problem if we do `table_cast` only when these features are present. | ### System Info
```shell
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.10.0+cu111 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
```
### Who can help?
@LysandreJik
### Information
- [ ] The official example scripts
- [X] My own modified scripts
### Tasks
- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)
### Reproduction
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
features = features
```
ERROR:
```
ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None)
Value(dtype='string', id=None)
Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39
Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519...
Downloading data files: 100%
2/2 [00:18<00:00, 8.06s/it]
Downloading data: 100%
391M/391M [00:13<00:00, 35.3MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 36.5MB/s]
Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn'
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
15 frames
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
ValueError: invalid literal for int() with base 10: 'cmn'
```
while loading without `features` it loads without errors
```
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text']
)
```
but the `label` col seems to be wrong (without the `ClassLabel` object):
```
sentences['train'].features
{'label': Value(dtype='string', id=None),
'text': Value(dtype='string', id=None)}
```
The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences
Dataset format is:
```
ces Nechci vΔdΔt, co je tam uvnitΕ.
ces Kdo o tom chce slyΕ‘et?
deu Tom sagte, er fΓΌhle sich nicht wohl.
ber Mel-iyi-d anida-t tura ?
hun Gondom lesz rΓ‘ rΓΆgtΓΆn.
ber Mel-iyi-d anida-tt tura ?
deu Ich will dich nicht reden hΓΆren.
```
### Expected behavior
```shell
correctly load train and test files.
``` | 134 | TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
### System Info
```shell
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.10.0+cu111 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
```
### Who can help?
@LysandreJik
### Information
- [ ] The official example scripts
- [X] My own modified scripts
### Tasks
- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)
### Reproduction
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
features = features
```
ERROR:
```
ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None)
Value(dtype='string', id=None)
Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39
Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519...
Downloading data files: 100%
2/2 [00:18<00:00, 8.06s/it]
Downloading data: 100%
391M/391M [00:13<00:00, 35.3MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 36.5MB/s]
Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn'
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
15 frames
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
ValueError: invalid literal for int() with base 10: 'cmn'
```
while loading without `features` it loads without errors
```
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text']
)
```
but the `label` col seems to be wrong (without the `ClassLabel` object):
```
sentences['train'].features
{'label': Value(dtype='string', id=None),
'text': Value(dtype='string', id=None)}
```
The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences
Dataset format is:
```
ces Nechci vΔdΔt, co je tam uvnitΕ.
ces Kdo o tom chce slyΕ‘et?
deu Tom sagte, er fΓΌhle sich nicht wohl.
ber Mel-iyi-d anida-t tura ?
hun Gondom lesz rΓ‘ rΓΆgtΓΆn.
ber Mel-iyi-d anida-tt tura ?
deu Ich will dich nicht reden hΓΆren.
```
### Expected behavior
```shell
correctly load train and test files.
```
Hi! Casting class labels from strings is currently not supported in the CSV loader, but you can get the same result with an additional map as follows:
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset(
"loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
)
# You can make this part faster with num_proc=<some int>
sentences = sentences.map(lambda ex: features["label"].str2int(ex["label"]) if ex["label"] is not None else None, features=features)
```
@lhoestq IIRC, I suggested adding `cast_to_storage` to `ClassLabel` + `table_cast` to the packaged loaders if the `ClassLabel`/`Image`/`Audio` type is present in `features` to avoid this kind of error, but your concern was speed. IMO shouldn't be a problem if we do `table_cast` only when these features are present. | [
-0.2058740258,
-0.5463367105,
-0.1671127826,
0.1710505188,
0.5628308058,
-0.0438255742,
0.3648130894,
0.4633278251,
0.3307608366,
0.1103612408,
-0.0379637405,
0.1857534945,
-0.1733210981,
0.0352142192,
-0.091168195,
-0.2792181075,
-0.0311877429,
0.0663471445,
-0.4036820829,
-0.126438126,
-0.1411067843,
0.0901830345,
-0.1253166944,
-0.083917968,
0.0333534107,
-0.0372173861,
0.3594253957,
-0.090459004,
-0.2028202862,
-0.0035617342,
0.1837964803,
-0.1603972316,
0.0774048492,
0.5127800703,
-0.0001060324,
0.2324672043,
0.0686569065,
-0.1796947569,
0.0101911742,
-0.0085518556,
0.1950659454,
-0.0376990773,
-0.090623863,
-0.4102005363,
-0.2619461119,
-0.2810545862,
-0.0734773278,
-0.3756055236,
0.5350925922,
0.4882688224,
0.2923410535,
0.5072133541,
0.3127987981,
-0.1825513244,
-0.0697038025,
0.237701416,
-0.2120956928,
0.0588576198,
0.1173160076,
0.4100356102,
0.0944552422,
0.1900083423,
-0.2708679438,
-0.0196632762,
0.1261900961,
-0.1607710719,
0.3450274169,
-0.2435237318,
0.0032066973,
0.0924772322,
0.1669000089,
-0.1516173333,
-0.2259166092,
0.0961832628,
-0.1749451309,
-0.0028387771,
-0.1610799432,
0.0710613355,
-0.0282997526,
0.1106591821,
-0.314753145,
0.1835265756,
-0.2631472647,
0.1348431557,
0.088858299,
0.3703709543,
-0.1138310134,
0.1015015915,
0.0988846868,
-0.2782007158,
0.35239923,
0.0122115407,
0.1391105354,
0.0014937433,
-0.068682842,
-0.215441972,
-0.0284981187,
-0.7406471968,
-0.0410460532,
-0.3243362904,
0.0097991917,
0.098226741,
0.0923341289,
0.0346296765,
0.0292108767,
0.2549786866,
-0.3426688612,
0.2487802356,
-0.0297389403,
0.0766860396,
-0.0403293446,
0.0114990463,
0.0699252635,
-0.0296102986,
-0.0832985938,
0.3470889628,
0.3344523311,
-0.0023752635,
-0.3205922842,
0.10790167,
-0.074732922,
0.1737370342,
0.3531581461,
0.3686737418,
-0.0349187218,
0.1612579376,
0.2112628818,
0.1711637229,
-0.1733183563,
-0.0921902359,
-0.2852333486,
0.302256465,
-0.1260493547,
-0.3701906502,
0.080184184,
0.5224432945,
0.1388194263,
-0.0118567925,
0.2376153916,
-0.2264205813,
0.0054611112,
-0.1919454485,
0.3753762841,
0.3932103813,
-0.0750773624,
-0.0608287081,
0.3566327393,
-0.177888155,
-0.1148369163,
0.2737701237,
-0.0771973878,
-0.0566444471,
-0.2002668828,
0.3057541549,
-0.1165436581,
-0.1646443456,
-0.0140976142,
-0.0840704739,
0.3025589883,
-0.1818978935,
0.1146316677,
-0.2176366001,
0.0889429078,
-0.2066797912,
0.1817540824,
-0.0528604835,
-0.1606626213,
0.0131154712,
-0.033482682,
0.0558959655,
0.2024392933,
0.3690714836,
-0.1266654134,
0.2325121909,
-0.088824071,
-0.0224506278,
0.2029462755,
-0.2884684801,
-0.1297895908,
0.0074136183,
0.0590894818,
-0.2027356774,
0.2180359811,
0.1754236072,
0.2898340225,
-0.0512968525,
-0.1339320242,
0.4632379413,
-0.0551117361,
0.3448135555,
-0.2171591073,
-0.2941993475,
0.1106601208,
0.2664009333,
0.3228002787,
0.1017186344,
-0.1292035133,
0.2581640482,
0.1922537684,
-0.2555150986,
0.0323601551,
0.1285437942,
0.4403906465,
-0.1441498101,
-0.0167190842,
-0.078996785,
-0.4179879129,
-0.0809908584,
-0.0656596422,
0.0389800183,
-0.1527919173,
-0.003254893,
-0.2663970292,
-0.036185801,
-0.1198848188,
0.0820543468,
0.2481205612,
-0.0461977609,
0.1409968138,
-0.2241833806,
-0.0774630904,
-0.1413867325,
0.0189327076,
-0.0118386941,
-0.2402744889,
0.334959358,
-0.3069896996,
-0.3138903081,
-0.0889958739,
0.1293852478,
0.3108738065,
-0.324960053,
-0.1669058204,
0.104465954,
0.0288777221,
-0.0095983734,
-0.2458525747,
0.3111941814,
0.1576760113,
-0.2568743229,
0.0848634392,
0.5069621205,
0.0768141001,
0.057877481,
-0.0941442996,
0.3892390728,
-0.0653590336,
-0.0606070273,
-0.0440323837,
0.0423681475,
0.3492108881,
-0.2085426003,
0.143456921,
-0.1895839423,
0.0092000989,
0.0836743042,
0.0372310765,
-0.1846771538,
-0.1697526574,
0.0207851101,
0.3995735049,
0.0888883919,
0.1618841439,
-0.1021926105,
0.1605548859,
0.0437750556,
-0.1253235042,
0.0097974399,
0.2098453343,
0.1149164438,
-0.110515222,
0.0311289635,
0.1041246578,
-0.0804076344,
0.184988752,
0.0848180279,
0.3341631889,
0.2294551581,
-0.1645934731,
0.0132807698,
-0.2779313028,
-0.2119697481,
0.2338669896,
0.3161315024,
-0.12941432,
0.1874316037,
-0.1395235509,
-0.2374024391,
-0.2972432673,
-0.0747515485,
0.0831683427,
-0.2865043581,
-0.1216835454,
0.2766495347,
-0.5804017782,
0.2881935835,
0.3099964857,
-0.0144273182,
0.3036273122,
-0.1909683645,
-0.2822850943,
0.0614971034,
0.2488302737,
0.1270565391,
0.2032082379,
-0.0801722482,
0.2827915549,
-0.0116741583,
0.1376187801,
-0.0808064789,
-0.5144478679,
0.0369382054,
-0.1006680503,
-0.0550441705,
-0.0398277864,
0.32627967,
-0.022390401,
-0.5168437958,
0.1564423442,
-0.6201517582,
-0.0861280113,
0.2405914813,
0.001410278,
-0.2774058282,
-0.2709531486,
-0.3688299358,
-0.2794176936,
-0.4907096028,
-0.0452877507,
0.0243276246,
0.0782518163,
0.2918908894,
0.3806444407,
0.2323734909,
0.3078478873,
0.1499225944,
-0.1940439641,
0.1753279418,
0.228244096,
-0.1901041865,
-0.3289215863,
-0.2492036223,
-0.1566482335,
0.2027225047,
-0.0955780372,
-0.1877944767,
-0.1908487082,
-0.3487737179,
-0.0973877534,
-0.1117501482,
-0.0723515525,
0.3219906092,
-0.0171686336,
-0.1570612937,
-0.0663261712,
0.0067101759,
0.0078939386,
0.1808440983,
-0.033370778,
-0.152741611,
0.3413669467,
0.1094756797,
0.2472997457,
0.1122871935,
-0.3196173608,
0.2660658658,
-0.0209107231,
0.2227959186,
-0.1998184621,
-0.2721836269,
0.0285926852,
0.0224591214,
-0.2521358728,
-0.0704896748,
-0.4447209835,
-0.1918935776,
-0.0409663171,
0.173457548,
-0.3277068436,
-0.2449155748,
0.1469759792,
0.2143327296,
-0.0807265341,
-0.0536791906,
0.1177532896,
-0.0976106003,
0.033866886,
0.1228638962,
0.1903547794,
-0.1218344495,
-0.0363598615,
-0.1323759258,
-0.2206008583,
-0.0121812411,
0.267601788,
-0.067018114,
0.4828374684,
-0.1378531754,
-0.1913564652,
-0.040117193,
-0.0191539321,
0.4925307035,
0.0867030099,
0.2432990372,
0.03757089,
0.0139984991,
-0.2272453457,
-0.184033528,
-0.3596010506,
-0.0230107233,
0.377917856,
0.4538722336,
-0.3448338509,
-0.1600858718,
0.3421184421,
0.087624982,
-0.0907659978,
0.0042549288,
-0.1941213608,
-0.4743171632,
-0.4139519036,
0.1027451828,
0.530356884,
0.4118692577,
-0.0809417441,
0.0520244762,
-0.1923602819,
-0.119872734,
0.117798306,
-0.0909959078,
0.2251261175,
0.0504561104,
0.1399694234,
-0.1704459786,
-0.2764976621,
0.0247395914,
0.3095152378,
0.1366020143,
-0.2345755398,
0.0617250614,
0.1292724609,
0.0209705103,
0.1469891071,
-0.0102297487,
-0.0659178495,
0.0627230704,
0.3820601702,
-0.0446833372,
0.053443417,
0.0492304564,
0.070873864,
-0.167738691,
-0.1651280671,
0.171654731,
-0.1138118356,
0.0840364769,
-0.0983551443,
0.0371635556,
-0.2842999995,
0.6224851012,
0.3881370127,
0.8093032837,
-0.1434506923,
0.1810502857,
0.3547424078,
0.0528006777,
0.1755897403,
0.0147700999,
0.1016152054,
-0.560192287,
-0.239176318,
0.0366726331,
-0.1643534303,
0.0718622729,
-0.0193401966,
-0.5239448547,
-0.0641000718,
-0.0553190634,
0.3788299263,
-0.1080497727,
0.2163046151,
0.2167898118,
-0.2219136804,
-0.1918763369,
0.1788294017,
-0.1209589466,
0.0707912222,
0.0371640585,
-0.3602228761,
-0.1189605221,
-0.1180747449,
-0.1570664495,
0.2145125121,
-0.0110536395,
0.4648868144,
0.1464470625,
-0.1612527966,
-0.0420816317,
0.1511614174,
0.229069829,
0.2789492011,
-0.1077248231,
0.1022463217,
-0.0665744022,
-0.0329595879,
-0.076056242,
0.0664733797,
0.3403444886,
-0.0204758886,
0.0232919566,
-0.0385857746,
0.0551054552,
-0.1936300248,
0.0520869717,
-0.2053769678,
-0.2473534942,
-0.5217531919,
-0.2035416067,
0.0629846603,
-0.4981679916,
-0.1804882139,
0.2138574421,
-0.003250439,
-0.3750745058,
0.2486923486,
0.2344364822,
-0.2373042852,
-0.0071182069,
0.2403000295,
0.2968222201,
-0.0187273435,
0.2680461109,
0.1754330099,
-0.2211254686,
-0.3220890462,
0.095101431,
0.0428276099,
-0.5210026503,
0.2870933712,
-0.3250692189,
-0.3471292555,
0.0914245173,
-0.00250286,
0.1125354543,
0.2926103771,
-0.1842609495,
-0.2441552579,
-0.4892579615,
0.242391482,
0.0116832629,
0.2358907461,
0.020579787,
0.2817345262,
-0.0710664392,
0.0332429335,
-0.46019274,
0.0460908599,
-0.3358787,
0.0881787464,
-0.16891177,
-0.5571727157,
0.107046023,
-0.0081409048,
0.2089713961,
0.0426950827,
-0.3289520442,
-0.2711529434,
-0.1295115203,
0.028536886,
0.1459765285,
-0.149195686,
-0.1012970805,
-0.2788999677,
-0.2622576356,
-0.0833622515,
0.0447545424,
0.2318487167,
0.0904178694,
0.2256846875,
0.1388594657,
0.1114350259,
-0.0181014054,
-0.077036649,
-0.0208173022,
0.1388026774,
0.0713966191,
0.1527343988,
0.0052246107,
-0.0488015302,
-0.2612768114,
0.0678185895,
0.3937556148,
-0.0843461305,
0.3125640452,
-0.2165520042,
-0.0310471803,
0.0657629445,
0.3974628448,
0.0406413786,
-0.4246017337,
0.0264307559,
-0.0753722191,
0.2946710289,
-0.2296070009,
-0.0882767737,
0.0620962158,
0.0463475063,
0.2015509158,
0.2553773224,
-0.1046290025,
0.1652102321,
0.4309176207,
0.2992331386,
0.4173389673,
-0.0818921626,
0.1347174197,
0.1861938536,
-0.2718972564,
-0.1418111324,
0.2442781776,
0.1014344692,
0.2186398953,
0.3944149613,
-0.2051373273,
0.0947931334,
-0.2111215293,
-0.1357300431,
0.2142552882,
0.0796013325,
-0.091796957,
0.1080016941,
-0.2276802808,
0.164167136,
-0.0471278019,
-0.0558544621,
-0.2296596617,
-0.000068264,
-0.2843836248,
0.1208273768,
-0.4259039164,
0.2273452282,
0.1863930523,
0.105484508,
-0.3405477405,
-0.2014196664,
0.0592442229,
0.0019962532,
-0.043080423,
0.164234221,
-0.0863453448,
0.4284532666,
0.0224234816,
0.1440993547,
-0.0185547303,
-0.3307959139,
0.165139541,
0.4618390799,
-0.0608106144,
-0.2200914621,
0.2863713503,
0.4150553346,
0.2264840752,
-0.2363422513,
0.2629530728,
0.0683605075,
-0.3372965157,
-0.0744847059,
0.2843070328,
0.3062033057,
0.3336184919,
0.2868262231,
0.2640824318,
-0.2991374135,
-0.1666556299,
0.1528553963,
0.008310861,
0.2482055426,
0.5052460432,
-0.0418701544,
-0.4077041745,
-0.0686031654,
-0.1974014342,
-0.5350337029,
-0.2064782679,
0.1075426489,
-0.2314076871,
0.26383394,
0.1656094193,
0.1325246692,
-0.0257342663,
0.5575472116,
-0.0234561283,
0.1785559803,
-0.4049807787,
0.1025912613,
-0.222391516,
0.2665467858,
0.3310826719,
0.0687109306,
0.1985699683,
0.2189537585,
0.1238905936,
0.1835174263,
-0.0276710317,
-0.2438267767,
0.156933099,
0.2294225693,
-0.0579549484,
0.0035186182,
0.0164830405,
0.0092698243,
0.2666772008,
-0.4339877069,
0.2716411352,
0.0088166054,
0.2757121325,
-0.3280782998,
0.0776313022,
-0.0038259185,
-0.142139852,
0.0882014707,
-0.0796647295,
0.5117201805,
-0.1819565594,
-0.1123145819,
0.2242079377,
-0.2020687312,
-0.1495587975,
0.1795028448,
0.2430046499,
0.3789004087,
0.1096352041,
0.0341851003,
-0.2756944001,
0.1485710442,
-0.0860385075,
-0.1794837266,
-0.1554077715,
0.3504404426,
-0.2647797763,
0.104934141,
-0.0201003645,
0.1318541467,
0.1608710289,
0.2491208166,
-0.3544086218,
-0.4123487175,
0.6665608287,
0.058869198,
-0.3451695144,
-0.0857329741,
0.0318886675,
-0.1323498487,
0.0408525951,
-0.7296362519,
0.2549422681,
-0.0165216532,
-0.2539709806,
-0.1664779186,
0.2007682025,
-0.0108907139,
-0.0075598387,
-0.0239946414,
0.4769183695,
0.2388567179,
-0.1805017889,
-0.183375001,
-0.1403684765
] |
https://github.com/huggingface/datasets/issues/4210 | TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe' | @albertvillanova @mariosasko thank you, with that change now I get
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
[<ipython-input-9-eeb68eeb9bec>](https://localhost:8080/#) in <module>()
11 )
12 # You can make this part faster with num_proc=<some int>
---> 13 sentences = sentences.map(lambda ex: features["label"].str2int(ex["label"]) if ex["label"] is not None else None, features=features)
14 sentences = sentences.shuffle()
8 frames
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in validate_function_output(processed_inputs, indices)
2193 if processed_inputs is not None and not isinstance(processed_inputs, (Mapping, pa.Table)):
2194 raise TypeError(
-> 2195 f"Provided `function` which is applied to all elements of table returns a variable of type {type(processed_inputs)}. Make sure provided `function` returns a variable of type `dict` (or a pyarrow table) to update the dataset or `None` if you are only interested in side effects."
2196 )
2197 elif isinstance(indices, list) and isinstance(processed_inputs, Mapping):
TypeError: Provided `function` which is applied to all elements of table returns a variable of type <class 'int'>. Make sure provided `function` returns a variable of type `dict` (or a pyarrow table) to update the dataset or `None` if you are only interested in side effects.
```
the error is raised by [this](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_dataset.py#L2221)
```
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in validate_function_output(processed_inputs, indices)
``` | ### System Info
```shell
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.10.0+cu111 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
```
### Who can help?
@LysandreJik
### Information
- [ ] The official example scripts
- [X] My own modified scripts
### Tasks
- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)
### Reproduction
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
features = features
```
ERROR:
```
ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None)
Value(dtype='string', id=None)
Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39
Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519...
Downloading data files: 100%
2/2 [00:18<00:00, 8.06s/it]
Downloading data: 100%
391M/391M [00:13<00:00, 35.3MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 36.5MB/s]
Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn'
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
15 frames
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
ValueError: invalid literal for int() with base 10: 'cmn'
```
while loading without `features` it loads without errors
```
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text']
)
```
but the `label` col seems to be wrong (without the `ClassLabel` object):
```
sentences['train'].features
{'label': Value(dtype='string', id=None),
'text': Value(dtype='string', id=None)}
```
The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences
Dataset format is:
```
ces Nechci vΔdΔt, co je tam uvnitΕ.
ces Kdo o tom chce slyΕ‘et?
deu Tom sagte, er fΓΌhle sich nicht wohl.
ber Mel-iyi-d anida-t tura ?
hun Gondom lesz rΓ‘ rΓΆgtΓΆn.
ber Mel-iyi-d anida-tt tura ?
deu Ich will dich nicht reden hΓΆren.
```
### Expected behavior
```shell
correctly load train and test files.
``` | 187 | TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
### System Info
```shell
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.10.0+cu111 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
```
### Who can help?
@LysandreJik
### Information
- [ ] The official example scripts
- [X] My own modified scripts
### Tasks
- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)
### Reproduction
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
features = features
```
ERROR:
```
ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None)
Value(dtype='string', id=None)
Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39
Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519...
Downloading data files: 100%
2/2 [00:18<00:00, 8.06s/it]
Downloading data: 100%
391M/391M [00:13<00:00, 35.3MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 36.5MB/s]
Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn'
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
15 frames
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
ValueError: invalid literal for int() with base 10: 'cmn'
```
while loading without `features` it loads without errors
```
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text']
)
```
but the `label` col seems to be wrong (without the `ClassLabel` object):
```
sentences['train'].features
{'label': Value(dtype='string', id=None),
'text': Value(dtype='string', id=None)}
```
The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences
Dataset format is:
```
ces Nechci vΔdΔt, co je tam uvnitΕ.
ces Kdo o tom chce slyΕ‘et?
deu Tom sagte, er fΓΌhle sich nicht wohl.
ber Mel-iyi-d anida-t tura ?
hun Gondom lesz rΓ‘ rΓΆgtΓΆn.
ber Mel-iyi-d anida-tt tura ?
deu Ich will dich nicht reden hΓΆren.
```
### Expected behavior
```shell
correctly load train and test files.
```
@albertvillanova @mariosasko thank you, with that change now I get
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
[<ipython-input-9-eeb68eeb9bec>](https://localhost:8080/#) in <module>()
11 )
12 # You can make this part faster with num_proc=<some int>
---> 13 sentences = sentences.map(lambda ex: features["label"].str2int(ex["label"]) if ex["label"] is not None else None, features=features)
14 sentences = sentences.shuffle()
8 frames
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in validate_function_output(processed_inputs, indices)
2193 if processed_inputs is not None and not isinstance(processed_inputs, (Mapping, pa.Table)):
2194 raise TypeError(
-> 2195 f"Provided `function` which is applied to all elements of table returns a variable of type {type(processed_inputs)}. Make sure provided `function` returns a variable of type `dict` (or a pyarrow table) to update the dataset or `None` if you are only interested in side effects."
2196 )
2197 elif isinstance(indices, list) and isinstance(processed_inputs, Mapping):
TypeError: Provided `function` which is applied to all elements of table returns a variable of type <class 'int'>. Make sure provided `function` returns a variable of type `dict` (or a pyarrow table) to update the dataset or `None` if you are only interested in side effects.
```
the error is raised by [this](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_dataset.py#L2221)
```
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in validate_function_output(processed_inputs, indices)
``` | [
-0.2058740258,
-0.5463367105,
-0.1671127826,
0.1710505188,
0.5628308058,
-0.0438255742,
0.3648130894,
0.4633278251,
0.3307608366,
0.1103612408,
-0.0379637405,
0.1857534945,
-0.1733210981,
0.0352142192,
-0.091168195,
-0.2792181075,
-0.0311877429,
0.0663471445,
-0.4036820829,
-0.126438126,
-0.1411067843,
0.0901830345,
-0.1253166944,
-0.083917968,
0.0333534107,
-0.0372173861,
0.3594253957,
-0.090459004,
-0.2028202862,
-0.0035617342,
0.1837964803,
-0.1603972316,
0.0774048492,
0.5127800703,
-0.0001060324,
0.2324672043,
0.0686569065,
-0.1796947569,
0.0101911742,
-0.0085518556,
0.1950659454,
-0.0376990773,
-0.090623863,
-0.4102005363,
-0.2619461119,
-0.2810545862,
-0.0734773278,
-0.3756055236,
0.5350925922,
0.4882688224,
0.2923410535,
0.5072133541,
0.3127987981,
-0.1825513244,
-0.0697038025,
0.237701416,
-0.2120956928,
0.0588576198,
0.1173160076,
0.4100356102,
0.0944552422,
0.1900083423,
-0.2708679438,
-0.0196632762,
0.1261900961,
-0.1607710719,
0.3450274169,
-0.2435237318,
0.0032066973,
0.0924772322,
0.1669000089,
-0.1516173333,
-0.2259166092,
0.0961832628,
-0.1749451309,
-0.0028387771,
-0.1610799432,
0.0710613355,
-0.0282997526,
0.1106591821,
-0.314753145,
0.1835265756,
-0.2631472647,
0.1348431557,
0.088858299,
0.3703709543,
-0.1138310134,
0.1015015915,
0.0988846868,
-0.2782007158,
0.35239923,
0.0122115407,
0.1391105354,
0.0014937433,
-0.068682842,
-0.215441972,
-0.0284981187,
-0.7406471968,
-0.0410460532,
-0.3243362904,
0.0097991917,
0.098226741,
0.0923341289,
0.0346296765,
0.0292108767,
0.2549786866,
-0.3426688612,
0.2487802356,
-0.0297389403,
0.0766860396,
-0.0403293446,
0.0114990463,
0.0699252635,
-0.0296102986,
-0.0832985938,
0.3470889628,
0.3344523311,
-0.0023752635,
-0.3205922842,
0.10790167,
-0.074732922,
0.1737370342,
0.3531581461,
0.3686737418,
-0.0349187218,
0.1612579376,
0.2112628818,
0.1711637229,
-0.1733183563,
-0.0921902359,
-0.2852333486,
0.302256465,
-0.1260493547,
-0.3701906502,
0.080184184,
0.5224432945,
0.1388194263,
-0.0118567925,
0.2376153916,
-0.2264205813,
0.0054611112,
-0.1919454485,
0.3753762841,
0.3932103813,
-0.0750773624,
-0.0608287081,
0.3566327393,
-0.177888155,
-0.1148369163,
0.2737701237,
-0.0771973878,
-0.0566444471,
-0.2002668828,
0.3057541549,
-0.1165436581,
-0.1646443456,
-0.0140976142,
-0.0840704739,
0.3025589883,
-0.1818978935,
0.1146316677,
-0.2176366001,
0.0889429078,
-0.2066797912,
0.1817540824,
-0.0528604835,
-0.1606626213,
0.0131154712,
-0.033482682,
0.0558959655,
0.2024392933,
0.3690714836,
-0.1266654134,
0.2325121909,
-0.088824071,
-0.0224506278,
0.2029462755,
-0.2884684801,
-0.1297895908,
0.0074136183,
0.0590894818,
-0.2027356774,
0.2180359811,
0.1754236072,
0.2898340225,
-0.0512968525,
-0.1339320242,
0.4632379413,
-0.0551117361,
0.3448135555,
-0.2171591073,
-0.2941993475,
0.1106601208,
0.2664009333,
0.3228002787,
0.1017186344,
-0.1292035133,
0.2581640482,
0.1922537684,
-0.2555150986,
0.0323601551,
0.1285437942,
0.4403906465,
-0.1441498101,
-0.0167190842,
-0.078996785,
-0.4179879129,
-0.0809908584,
-0.0656596422,
0.0389800183,
-0.1527919173,
-0.003254893,
-0.2663970292,
-0.036185801,
-0.1198848188,
0.0820543468,
0.2481205612,
-0.0461977609,
0.1409968138,
-0.2241833806,
-0.0774630904,
-0.1413867325,
0.0189327076,
-0.0118386941,
-0.2402744889,
0.334959358,
-0.3069896996,
-0.3138903081,
-0.0889958739,
0.1293852478,
0.3108738065,
-0.324960053,
-0.1669058204,
0.104465954,
0.0288777221,
-0.0095983734,
-0.2458525747,
0.3111941814,
0.1576760113,
-0.2568743229,
0.0848634392,
0.5069621205,
0.0768141001,
0.057877481,
-0.0941442996,
0.3892390728,
-0.0653590336,
-0.0606070273,
-0.0440323837,
0.0423681475,
0.3492108881,
-0.2085426003,
0.143456921,
-0.1895839423,
0.0092000989,
0.0836743042,
0.0372310765,
-0.1846771538,
-0.1697526574,
0.0207851101,
0.3995735049,
0.0888883919,
0.1618841439,
-0.1021926105,
0.1605548859,
0.0437750556,
-0.1253235042,
0.0097974399,
0.2098453343,
0.1149164438,
-0.110515222,
0.0311289635,
0.1041246578,
-0.0804076344,
0.184988752,
0.0848180279,
0.3341631889,
0.2294551581,
-0.1645934731,
0.0132807698,
-0.2779313028,
-0.2119697481,
0.2338669896,
0.3161315024,
-0.12941432,
0.1874316037,
-0.1395235509,
-0.2374024391,
-0.2972432673,
-0.0747515485,
0.0831683427,
-0.2865043581,
-0.1216835454,
0.2766495347,
-0.5804017782,
0.2881935835,
0.3099964857,
-0.0144273182,
0.3036273122,
-0.1909683645,
-0.2822850943,
0.0614971034,
0.2488302737,
0.1270565391,
0.2032082379,
-0.0801722482,
0.2827915549,
-0.0116741583,
0.1376187801,
-0.0808064789,
-0.5144478679,
0.0369382054,
-0.1006680503,
-0.0550441705,
-0.0398277864,
0.32627967,
-0.022390401,
-0.5168437958,
0.1564423442,
-0.6201517582,
-0.0861280113,
0.2405914813,
0.001410278,
-0.2774058282,
-0.2709531486,
-0.3688299358,
-0.2794176936,
-0.4907096028,
-0.0452877507,
0.0243276246,
0.0782518163,
0.2918908894,
0.3806444407,
0.2323734909,
0.3078478873,
0.1499225944,
-0.1940439641,
0.1753279418,
0.228244096,
-0.1901041865,
-0.3289215863,
-0.2492036223,
-0.1566482335,
0.2027225047,
-0.0955780372,
-0.1877944767,
-0.1908487082,
-0.3487737179,
-0.0973877534,
-0.1117501482,
-0.0723515525,
0.3219906092,
-0.0171686336,
-0.1570612937,
-0.0663261712,
0.0067101759,
0.0078939386,
0.1808440983,
-0.033370778,
-0.152741611,
0.3413669467,
0.1094756797,
0.2472997457,
0.1122871935,
-0.3196173608,
0.2660658658,
-0.0209107231,
0.2227959186,
-0.1998184621,
-0.2721836269,
0.0285926852,
0.0224591214,
-0.2521358728,
-0.0704896748,
-0.4447209835,
-0.1918935776,
-0.0409663171,
0.173457548,
-0.3277068436,
-0.2449155748,
0.1469759792,
0.2143327296,
-0.0807265341,
-0.0536791906,
0.1177532896,
-0.0976106003,
0.033866886,
0.1228638962,
0.1903547794,
-0.1218344495,
-0.0363598615,
-0.1323759258,
-0.2206008583,
-0.0121812411,
0.267601788,
-0.067018114,
0.4828374684,
-0.1378531754,
-0.1913564652,
-0.040117193,
-0.0191539321,
0.4925307035,
0.0867030099,
0.2432990372,
0.03757089,
0.0139984991,
-0.2272453457,
-0.184033528,
-0.3596010506,
-0.0230107233,
0.377917856,
0.4538722336,
-0.3448338509,
-0.1600858718,
0.3421184421,
0.087624982,
-0.0907659978,
0.0042549288,
-0.1941213608,
-0.4743171632,
-0.4139519036,
0.1027451828,
0.530356884,
0.4118692577,
-0.0809417441,
0.0520244762,
-0.1923602819,
-0.119872734,
0.117798306,
-0.0909959078,
0.2251261175,
0.0504561104,
0.1399694234,
-0.1704459786,
-0.2764976621,
0.0247395914,
0.3095152378,
0.1366020143,
-0.2345755398,
0.0617250614,
0.1292724609,
0.0209705103,
0.1469891071,
-0.0102297487,
-0.0659178495,
0.0627230704,
0.3820601702,
-0.0446833372,
0.053443417,
0.0492304564,
0.070873864,
-0.167738691,
-0.1651280671,
0.171654731,
-0.1138118356,
0.0840364769,
-0.0983551443,
0.0371635556,
-0.2842999995,
0.6224851012,
0.3881370127,
0.8093032837,
-0.1434506923,
0.1810502857,
0.3547424078,
0.0528006777,
0.1755897403,
0.0147700999,
0.1016152054,
-0.560192287,
-0.239176318,
0.0366726331,
-0.1643534303,
0.0718622729,
-0.0193401966,
-0.5239448547,
-0.0641000718,
-0.0553190634,
0.3788299263,
-0.1080497727,
0.2163046151,
0.2167898118,
-0.2219136804,
-0.1918763369,
0.1788294017,
-0.1209589466,
0.0707912222,
0.0371640585,
-0.3602228761,
-0.1189605221,
-0.1180747449,
-0.1570664495,
0.2145125121,
-0.0110536395,
0.4648868144,
0.1464470625,
-0.1612527966,
-0.0420816317,
0.1511614174,
0.229069829,
0.2789492011,
-0.1077248231,
0.1022463217,
-0.0665744022,
-0.0329595879,
-0.076056242,
0.0664733797,
0.3403444886,
-0.0204758886,
0.0232919566,
-0.0385857746,
0.0551054552,
-0.1936300248,
0.0520869717,
-0.2053769678,
-0.2473534942,
-0.5217531919,
-0.2035416067,
0.0629846603,
-0.4981679916,
-0.1804882139,
0.2138574421,
-0.003250439,
-0.3750745058,
0.2486923486,
0.2344364822,
-0.2373042852,
-0.0071182069,
0.2403000295,
0.2968222201,
-0.0187273435,
0.2680461109,
0.1754330099,
-0.2211254686,
-0.3220890462,
0.095101431,
0.0428276099,
-0.5210026503,
0.2870933712,
-0.3250692189,
-0.3471292555,
0.0914245173,
-0.00250286,
0.1125354543,
0.2926103771,
-0.1842609495,
-0.2441552579,
-0.4892579615,
0.242391482,
0.0116832629,
0.2358907461,
0.020579787,
0.2817345262,
-0.0710664392,
0.0332429335,
-0.46019274,
0.0460908599,
-0.3358787,
0.0881787464,
-0.16891177,
-0.5571727157,
0.107046023,
-0.0081409048,
0.2089713961,
0.0426950827,
-0.3289520442,
-0.2711529434,
-0.1295115203,
0.028536886,
0.1459765285,
-0.149195686,
-0.1012970805,
-0.2788999677,
-0.2622576356,
-0.0833622515,
0.0447545424,
0.2318487167,
0.0904178694,
0.2256846875,
0.1388594657,
0.1114350259,
-0.0181014054,
-0.077036649,
-0.0208173022,
0.1388026774,
0.0713966191,
0.1527343988,
0.0052246107,
-0.0488015302,
-0.2612768114,
0.0678185895,
0.3937556148,
-0.0843461305,
0.3125640452,
-0.2165520042,
-0.0310471803,
0.0657629445,
0.3974628448,
0.0406413786,
-0.4246017337,
0.0264307559,
-0.0753722191,
0.2946710289,
-0.2296070009,
-0.0882767737,
0.0620962158,
0.0463475063,
0.2015509158,
0.2553773224,
-0.1046290025,
0.1652102321,
0.4309176207,
0.2992331386,
0.4173389673,
-0.0818921626,
0.1347174197,
0.1861938536,
-0.2718972564,
-0.1418111324,
0.2442781776,
0.1014344692,
0.2186398953,
0.3944149613,
-0.2051373273,
0.0947931334,
-0.2111215293,
-0.1357300431,
0.2142552882,
0.0796013325,
-0.091796957,
0.1080016941,
-0.2276802808,
0.164167136,
-0.0471278019,
-0.0558544621,
-0.2296596617,
-0.000068264,
-0.2843836248,
0.1208273768,
-0.4259039164,
0.2273452282,
0.1863930523,
0.105484508,
-0.3405477405,
-0.2014196664,
0.0592442229,
0.0019962532,
-0.043080423,
0.164234221,
-0.0863453448,
0.4284532666,
0.0224234816,
0.1440993547,
-0.0185547303,
-0.3307959139,
0.165139541,
0.4618390799,
-0.0608106144,
-0.2200914621,
0.2863713503,
0.4150553346,
0.2264840752,
-0.2363422513,
0.2629530728,
0.0683605075,
-0.3372965157,
-0.0744847059,
0.2843070328,
0.3062033057,
0.3336184919,
0.2868262231,
0.2640824318,
-0.2991374135,
-0.1666556299,
0.1528553963,
0.008310861,
0.2482055426,
0.5052460432,
-0.0418701544,
-0.4077041745,
-0.0686031654,
-0.1974014342,
-0.5350337029,
-0.2064782679,
0.1075426489,
-0.2314076871,
0.26383394,
0.1656094193,
0.1325246692,
-0.0257342663,
0.5575472116,
-0.0234561283,
0.1785559803,
-0.4049807787,
0.1025912613,
-0.222391516,
0.2665467858,
0.3310826719,
0.0687109306,
0.1985699683,
0.2189537585,
0.1238905936,
0.1835174263,
-0.0276710317,
-0.2438267767,
0.156933099,
0.2294225693,
-0.0579549484,
0.0035186182,
0.0164830405,
0.0092698243,
0.2666772008,
-0.4339877069,
0.2716411352,
0.0088166054,
0.2757121325,
-0.3280782998,
0.0776313022,
-0.0038259185,
-0.142139852,
0.0882014707,
-0.0796647295,
0.5117201805,
-0.1819565594,
-0.1123145819,
0.2242079377,
-0.2020687312,
-0.1495587975,
0.1795028448,
0.2430046499,
0.3789004087,
0.1096352041,
0.0341851003,
-0.2756944001,
0.1485710442,
-0.0860385075,
-0.1794837266,
-0.1554077715,
0.3504404426,
-0.2647797763,
0.104934141,
-0.0201003645,
0.1318541467,
0.1608710289,
0.2491208166,
-0.3544086218,
-0.4123487175,
0.6665608287,
0.058869198,
-0.3451695144,
-0.0857329741,
0.0318886675,
-0.1323498487,
0.0408525951,
-0.7296362519,
0.2549422681,
-0.0165216532,
-0.2539709806,
-0.1664779186,
0.2007682025,
-0.0108907139,
-0.0075598387,
-0.0239946414,
0.4769183695,
0.2388567179,
-0.1805017889,
-0.183375001,
-0.1403684765
] |
https://github.com/huggingface/datasets/issues/4210 | TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe' | @mariosasko changed it like
```python
sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
```
to avoid the above errorr. | ### System Info
```shell
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.10.0+cu111 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
```
### Who can help?
@LysandreJik
### Information
- [ ] The official example scripts
- [X] My own modified scripts
### Tasks
- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)
### Reproduction
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
features = features
```
ERROR:
```
ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None)
Value(dtype='string', id=None)
Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39
Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519...
Downloading data files: 100%
2/2 [00:18<00:00, 8.06s/it]
Downloading data: 100%
391M/391M [00:13<00:00, 35.3MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 36.5MB/s]
Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn'
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
15 frames
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
ValueError: invalid literal for int() with base 10: 'cmn'
```
while loading without `features` it loads without errors
```
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text']
)
```
but the `label` col seems to be wrong (without the `ClassLabel` object):
```
sentences['train'].features
{'label': Value(dtype='string', id=None),
'text': Value(dtype='string', id=None)}
```
The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences
Dataset format is:
```
ces Nechci vΔdΔt, co je tam uvnitΕ.
ces Kdo o tom chce slyΕ‘et?
deu Tom sagte, er fΓΌhle sich nicht wohl.
ber Mel-iyi-d anida-t tura ?
hun Gondom lesz rΓ‘ rΓΆgtΓΆn.
ber Mel-iyi-d anida-tt tura ?
deu Ich will dich nicht reden hΓΆren.
```
### Expected behavior
```shell
correctly load train and test files.
``` | 26 | TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
### System Info
```shell
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.10.0+cu111 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
```
### Who can help?
@LysandreJik
### Information
- [ ] The official example scripts
- [X] My own modified scripts
### Tasks
- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)
### Reproduction
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
features = features
```
ERROR:
```
ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None)
Value(dtype='string', id=None)
Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39
Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519...
Downloading data files: 100%
2/2 [00:18<00:00, 8.06s/it]
Downloading data: 100%
391M/391M [00:13<00:00, 35.3MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 36.5MB/s]
Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn'
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
15 frames
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
ValueError: invalid literal for int() with base 10: 'cmn'
```
while loading without `features` it loads without errors
```
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text']
)
```
but the `label` col seems to be wrong (without the `ClassLabel` object):
```
sentences['train'].features
{'label': Value(dtype='string', id=None),
'text': Value(dtype='string', id=None)}
```
The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences
Dataset format is:
```
ces Nechci vΔdΔt, co je tam uvnitΕ.
ces Kdo o tom chce slyΕ‘et?
deu Tom sagte, er fΓΌhle sich nicht wohl.
ber Mel-iyi-d anida-t tura ?
hun Gondom lesz rΓ‘ rΓΆgtΓΆn.
ber Mel-iyi-d anida-tt tura ?
deu Ich will dich nicht reden hΓΆren.
```
### Expected behavior
```shell
correctly load train and test files.
```
@mariosasko changed it like
```python
sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
```
to avoid the above errorr. | [
-0.2058740258,
-0.5463367105,
-0.1671127826,
0.1710505188,
0.5628308058,
-0.0438255742,
0.3648130894,
0.4633278251,
0.3307608366,
0.1103612408,
-0.0379637405,
0.1857534945,
-0.1733210981,
0.0352142192,
-0.091168195,
-0.2792181075,
-0.0311877429,
0.0663471445,
-0.4036820829,
-0.126438126,
-0.1411067843,
0.0901830345,
-0.1253166944,
-0.083917968,
0.0333534107,
-0.0372173861,
0.3594253957,
-0.090459004,
-0.2028202862,
-0.0035617342,
0.1837964803,
-0.1603972316,
0.0774048492,
0.5127800703,
-0.0001060324,
0.2324672043,
0.0686569065,
-0.1796947569,
0.0101911742,
-0.0085518556,
0.1950659454,
-0.0376990773,
-0.090623863,
-0.4102005363,
-0.2619461119,
-0.2810545862,
-0.0734773278,
-0.3756055236,
0.5350925922,
0.4882688224,
0.2923410535,
0.5072133541,
0.3127987981,
-0.1825513244,
-0.0697038025,
0.237701416,
-0.2120956928,
0.0588576198,
0.1173160076,
0.4100356102,
0.0944552422,
0.1900083423,
-0.2708679438,
-0.0196632762,
0.1261900961,
-0.1607710719,
0.3450274169,
-0.2435237318,
0.0032066973,
0.0924772322,
0.1669000089,
-0.1516173333,
-0.2259166092,
0.0961832628,
-0.1749451309,
-0.0028387771,
-0.1610799432,
0.0710613355,
-0.0282997526,
0.1106591821,
-0.314753145,
0.1835265756,
-0.2631472647,
0.1348431557,
0.088858299,
0.3703709543,
-0.1138310134,
0.1015015915,
0.0988846868,
-0.2782007158,
0.35239923,
0.0122115407,
0.1391105354,
0.0014937433,
-0.068682842,
-0.215441972,
-0.0284981187,
-0.7406471968,
-0.0410460532,
-0.3243362904,
0.0097991917,
0.098226741,
0.0923341289,
0.0346296765,
0.0292108767,
0.2549786866,
-0.3426688612,
0.2487802356,
-0.0297389403,
0.0766860396,
-0.0403293446,
0.0114990463,
0.0699252635,
-0.0296102986,
-0.0832985938,
0.3470889628,
0.3344523311,
-0.0023752635,
-0.3205922842,
0.10790167,
-0.074732922,
0.1737370342,
0.3531581461,
0.3686737418,
-0.0349187218,
0.1612579376,
0.2112628818,
0.1711637229,
-0.1733183563,
-0.0921902359,
-0.2852333486,
0.302256465,
-0.1260493547,
-0.3701906502,
0.080184184,
0.5224432945,
0.1388194263,
-0.0118567925,
0.2376153916,
-0.2264205813,
0.0054611112,
-0.1919454485,
0.3753762841,
0.3932103813,
-0.0750773624,
-0.0608287081,
0.3566327393,
-0.177888155,
-0.1148369163,
0.2737701237,
-0.0771973878,
-0.0566444471,
-0.2002668828,
0.3057541549,
-0.1165436581,
-0.1646443456,
-0.0140976142,
-0.0840704739,
0.3025589883,
-0.1818978935,
0.1146316677,
-0.2176366001,
0.0889429078,
-0.2066797912,
0.1817540824,
-0.0528604835,
-0.1606626213,
0.0131154712,
-0.033482682,
0.0558959655,
0.2024392933,
0.3690714836,
-0.1266654134,
0.2325121909,
-0.088824071,
-0.0224506278,
0.2029462755,
-0.2884684801,
-0.1297895908,
0.0074136183,
0.0590894818,
-0.2027356774,
0.2180359811,
0.1754236072,
0.2898340225,
-0.0512968525,
-0.1339320242,
0.4632379413,
-0.0551117361,
0.3448135555,
-0.2171591073,
-0.2941993475,
0.1106601208,
0.2664009333,
0.3228002787,
0.1017186344,
-0.1292035133,
0.2581640482,
0.1922537684,
-0.2555150986,
0.0323601551,
0.1285437942,
0.4403906465,
-0.1441498101,
-0.0167190842,
-0.078996785,
-0.4179879129,
-0.0809908584,
-0.0656596422,
0.0389800183,
-0.1527919173,
-0.003254893,
-0.2663970292,
-0.036185801,
-0.1198848188,
0.0820543468,
0.2481205612,
-0.0461977609,
0.1409968138,
-0.2241833806,
-0.0774630904,
-0.1413867325,
0.0189327076,
-0.0118386941,
-0.2402744889,
0.334959358,
-0.3069896996,
-0.3138903081,
-0.0889958739,
0.1293852478,
0.3108738065,
-0.324960053,
-0.1669058204,
0.104465954,
0.0288777221,
-0.0095983734,
-0.2458525747,
0.3111941814,
0.1576760113,
-0.2568743229,
0.0848634392,
0.5069621205,
0.0768141001,
0.057877481,
-0.0941442996,
0.3892390728,
-0.0653590336,
-0.0606070273,
-0.0440323837,
0.0423681475,
0.3492108881,
-0.2085426003,
0.143456921,
-0.1895839423,
0.0092000989,
0.0836743042,
0.0372310765,
-0.1846771538,
-0.1697526574,
0.0207851101,
0.3995735049,
0.0888883919,
0.1618841439,
-0.1021926105,
0.1605548859,
0.0437750556,
-0.1253235042,
0.0097974399,
0.2098453343,
0.1149164438,
-0.110515222,
0.0311289635,
0.1041246578,
-0.0804076344,
0.184988752,
0.0848180279,
0.3341631889,
0.2294551581,
-0.1645934731,
0.0132807698,
-0.2779313028,
-0.2119697481,
0.2338669896,
0.3161315024,
-0.12941432,
0.1874316037,
-0.1395235509,
-0.2374024391,
-0.2972432673,
-0.0747515485,
0.0831683427,
-0.2865043581,
-0.1216835454,
0.2766495347,
-0.5804017782,
0.2881935835,
0.3099964857,
-0.0144273182,
0.3036273122,
-0.1909683645,
-0.2822850943,
0.0614971034,
0.2488302737,
0.1270565391,
0.2032082379,
-0.0801722482,
0.2827915549,
-0.0116741583,
0.1376187801,
-0.0808064789,
-0.5144478679,
0.0369382054,
-0.1006680503,
-0.0550441705,
-0.0398277864,
0.32627967,
-0.022390401,
-0.5168437958,
0.1564423442,
-0.6201517582,
-0.0861280113,
0.2405914813,
0.001410278,
-0.2774058282,
-0.2709531486,
-0.3688299358,
-0.2794176936,
-0.4907096028,
-0.0452877507,
0.0243276246,
0.0782518163,
0.2918908894,
0.3806444407,
0.2323734909,
0.3078478873,
0.1499225944,
-0.1940439641,
0.1753279418,
0.228244096,
-0.1901041865,
-0.3289215863,
-0.2492036223,
-0.1566482335,
0.2027225047,
-0.0955780372,
-0.1877944767,
-0.1908487082,
-0.3487737179,
-0.0973877534,
-0.1117501482,
-0.0723515525,
0.3219906092,
-0.0171686336,
-0.1570612937,
-0.0663261712,
0.0067101759,
0.0078939386,
0.1808440983,
-0.033370778,
-0.152741611,
0.3413669467,
0.1094756797,
0.2472997457,
0.1122871935,
-0.3196173608,
0.2660658658,
-0.0209107231,
0.2227959186,
-0.1998184621,
-0.2721836269,
0.0285926852,
0.0224591214,
-0.2521358728,
-0.0704896748,
-0.4447209835,
-0.1918935776,
-0.0409663171,
0.173457548,
-0.3277068436,
-0.2449155748,
0.1469759792,
0.2143327296,
-0.0807265341,
-0.0536791906,
0.1177532896,
-0.0976106003,
0.033866886,
0.1228638962,
0.1903547794,
-0.1218344495,
-0.0363598615,
-0.1323759258,
-0.2206008583,
-0.0121812411,
0.267601788,
-0.067018114,
0.4828374684,
-0.1378531754,
-0.1913564652,
-0.040117193,
-0.0191539321,
0.4925307035,
0.0867030099,
0.2432990372,
0.03757089,
0.0139984991,
-0.2272453457,
-0.184033528,
-0.3596010506,
-0.0230107233,
0.377917856,
0.4538722336,
-0.3448338509,
-0.1600858718,
0.3421184421,
0.087624982,
-0.0907659978,
0.0042549288,
-0.1941213608,
-0.4743171632,
-0.4139519036,
0.1027451828,
0.530356884,
0.4118692577,
-0.0809417441,
0.0520244762,
-0.1923602819,
-0.119872734,
0.117798306,
-0.0909959078,
0.2251261175,
0.0504561104,
0.1399694234,
-0.1704459786,
-0.2764976621,
0.0247395914,
0.3095152378,
0.1366020143,
-0.2345755398,
0.0617250614,
0.1292724609,
0.0209705103,
0.1469891071,
-0.0102297487,
-0.0659178495,
0.0627230704,
0.3820601702,
-0.0446833372,
0.053443417,
0.0492304564,
0.070873864,
-0.167738691,
-0.1651280671,
0.171654731,
-0.1138118356,
0.0840364769,
-0.0983551443,
0.0371635556,
-0.2842999995,
0.6224851012,
0.3881370127,
0.8093032837,
-0.1434506923,
0.1810502857,
0.3547424078,
0.0528006777,
0.1755897403,
0.0147700999,
0.1016152054,
-0.560192287,
-0.239176318,
0.0366726331,
-0.1643534303,
0.0718622729,
-0.0193401966,
-0.5239448547,
-0.0641000718,
-0.0553190634,
0.3788299263,
-0.1080497727,
0.2163046151,
0.2167898118,
-0.2219136804,
-0.1918763369,
0.1788294017,
-0.1209589466,
0.0707912222,
0.0371640585,
-0.3602228761,
-0.1189605221,
-0.1180747449,
-0.1570664495,
0.2145125121,
-0.0110536395,
0.4648868144,
0.1464470625,
-0.1612527966,
-0.0420816317,
0.1511614174,
0.229069829,
0.2789492011,
-0.1077248231,
0.1022463217,
-0.0665744022,
-0.0329595879,
-0.076056242,
0.0664733797,
0.3403444886,
-0.0204758886,
0.0232919566,
-0.0385857746,
0.0551054552,
-0.1936300248,
0.0520869717,
-0.2053769678,
-0.2473534942,
-0.5217531919,
-0.2035416067,
0.0629846603,
-0.4981679916,
-0.1804882139,
0.2138574421,
-0.003250439,
-0.3750745058,
0.2486923486,
0.2344364822,
-0.2373042852,
-0.0071182069,
0.2403000295,
0.2968222201,
-0.0187273435,
0.2680461109,
0.1754330099,
-0.2211254686,
-0.3220890462,
0.095101431,
0.0428276099,
-0.5210026503,
0.2870933712,
-0.3250692189,
-0.3471292555,
0.0914245173,
-0.00250286,
0.1125354543,
0.2926103771,
-0.1842609495,
-0.2441552579,
-0.4892579615,
0.242391482,
0.0116832629,
0.2358907461,
0.020579787,
0.2817345262,
-0.0710664392,
0.0332429335,
-0.46019274,
0.0460908599,
-0.3358787,
0.0881787464,
-0.16891177,
-0.5571727157,
0.107046023,
-0.0081409048,
0.2089713961,
0.0426950827,
-0.3289520442,
-0.2711529434,
-0.1295115203,
0.028536886,
0.1459765285,
-0.149195686,
-0.1012970805,
-0.2788999677,
-0.2622576356,
-0.0833622515,
0.0447545424,
0.2318487167,
0.0904178694,
0.2256846875,
0.1388594657,
0.1114350259,
-0.0181014054,
-0.077036649,
-0.0208173022,
0.1388026774,
0.0713966191,
0.1527343988,
0.0052246107,
-0.0488015302,
-0.2612768114,
0.0678185895,
0.3937556148,
-0.0843461305,
0.3125640452,
-0.2165520042,
-0.0310471803,
0.0657629445,
0.3974628448,
0.0406413786,
-0.4246017337,
0.0264307559,
-0.0753722191,
0.2946710289,
-0.2296070009,
-0.0882767737,
0.0620962158,
0.0463475063,
0.2015509158,
0.2553773224,
-0.1046290025,
0.1652102321,
0.4309176207,
0.2992331386,
0.4173389673,
-0.0818921626,
0.1347174197,
0.1861938536,
-0.2718972564,
-0.1418111324,
0.2442781776,
0.1014344692,
0.2186398953,
0.3944149613,
-0.2051373273,
0.0947931334,
-0.2111215293,
-0.1357300431,
0.2142552882,
0.0796013325,
-0.091796957,
0.1080016941,
-0.2276802808,
0.164167136,
-0.0471278019,
-0.0558544621,
-0.2296596617,
-0.000068264,
-0.2843836248,
0.1208273768,
-0.4259039164,
0.2273452282,
0.1863930523,
0.105484508,
-0.3405477405,
-0.2014196664,
0.0592442229,
0.0019962532,
-0.043080423,
0.164234221,
-0.0863453448,
0.4284532666,
0.0224234816,
0.1440993547,
-0.0185547303,
-0.3307959139,
0.165139541,
0.4618390799,
-0.0608106144,
-0.2200914621,
0.2863713503,
0.4150553346,
0.2264840752,
-0.2363422513,
0.2629530728,
0.0683605075,
-0.3372965157,
-0.0744847059,
0.2843070328,
0.3062033057,
0.3336184919,
0.2868262231,
0.2640824318,
-0.2991374135,
-0.1666556299,
0.1528553963,
0.008310861,
0.2482055426,
0.5052460432,
-0.0418701544,
-0.4077041745,
-0.0686031654,
-0.1974014342,
-0.5350337029,
-0.2064782679,
0.1075426489,
-0.2314076871,
0.26383394,
0.1656094193,
0.1325246692,
-0.0257342663,
0.5575472116,
-0.0234561283,
0.1785559803,
-0.4049807787,
0.1025912613,
-0.222391516,
0.2665467858,
0.3310826719,
0.0687109306,
0.1985699683,
0.2189537585,
0.1238905936,
0.1835174263,
-0.0276710317,
-0.2438267767,
0.156933099,
0.2294225693,
-0.0579549484,
0.0035186182,
0.0164830405,
0.0092698243,
0.2666772008,
-0.4339877069,
0.2716411352,
0.0088166054,
0.2757121325,
-0.3280782998,
0.0776313022,
-0.0038259185,
-0.142139852,
0.0882014707,
-0.0796647295,
0.5117201805,
-0.1819565594,
-0.1123145819,
0.2242079377,
-0.2020687312,
-0.1495587975,
0.1795028448,
0.2430046499,
0.3789004087,
0.1096352041,
0.0341851003,
-0.2756944001,
0.1485710442,
-0.0860385075,
-0.1794837266,
-0.1554077715,
0.3504404426,
-0.2647797763,
0.104934141,
-0.0201003645,
0.1318541467,
0.1608710289,
0.2491208166,
-0.3544086218,
-0.4123487175,
0.6665608287,
0.058869198,
-0.3451695144,
-0.0857329741,
0.0318886675,
-0.1323498487,
0.0408525951,
-0.7296362519,
0.2549422681,
-0.0165216532,
-0.2539709806,
-0.1664779186,
0.2007682025,
-0.0108907139,
-0.0075598387,
-0.0239946414,
0.4769183695,
0.2388567179,
-0.1805017889,
-0.183375001,
-0.1403684765
] |
https://github.com/huggingface/datasets/issues/4210 | TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe' | Any update on this? Is this correct ?
> @mariosasko changed it like
>
> ```python
> sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
> ```
>
> to avoid the above errorr.
| ### System Info
```shell
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.10.0+cu111 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
```
### Who can help?
@LysandreJik
### Information
- [ ] The official example scripts
- [X] My own modified scripts
### Tasks
- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)
### Reproduction
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
features = features
```
ERROR:
```
ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None)
Value(dtype='string', id=None)
Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39
Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519...
Downloading data files: 100%
2/2 [00:18<00:00, 8.06s/it]
Downloading data: 100%
391M/391M [00:13<00:00, 35.3MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 36.5MB/s]
Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn'
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
15 frames
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
ValueError: invalid literal for int() with base 10: 'cmn'
```
while loading without `features` it loads without errors
```
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text']
)
```
but the `label` col seems to be wrong (without the `ClassLabel` object):
```
sentences['train'].features
{'label': Value(dtype='string', id=None),
'text': Value(dtype='string', id=None)}
```
The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences
Dataset format is:
```
ces Nechci vΔdΔt, co je tam uvnitΕ.
ces Kdo o tom chce slyΕ‘et?
deu Tom sagte, er fΓΌhle sich nicht wohl.
ber Mel-iyi-d anida-t tura ?
hun Gondom lesz rΓ‘ rΓΆgtΓΆn.
ber Mel-iyi-d anida-tt tura ?
deu Ich will dich nicht reden hΓΆren.
```
### Expected behavior
```shell
correctly load train and test files.
``` | 41 | TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
### System Info
```shell
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.10.0+cu111 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
```
### Who can help?
@LysandreJik
### Information
- [ ] The official example scripts
- [X] My own modified scripts
### Tasks
- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)
### Reproduction
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
features = features
```
ERROR:
```
ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None)
Value(dtype='string', id=None)
Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39
Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519...
Downloading data files: 100%
2/2 [00:18<00:00, 8.06s/it]
Downloading data: 100%
391M/391M [00:13<00:00, 35.3MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 36.5MB/s]
Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn'
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
15 frames
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
ValueError: invalid literal for int() with base 10: 'cmn'
```
while loading without `features` it loads without errors
```
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text']
)
```
but the `label` col seems to be wrong (without the `ClassLabel` object):
```
sentences['train'].features
{'label': Value(dtype='string', id=None),
'text': Value(dtype='string', id=None)}
```
The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences
Dataset format is:
```
ces Nechci vΔdΔt, co je tam uvnitΕ.
ces Kdo o tom chce slyΕ‘et?
deu Tom sagte, er fΓΌhle sich nicht wohl.
ber Mel-iyi-d anida-t tura ?
hun Gondom lesz rΓ‘ rΓΆgtΓΆn.
ber Mel-iyi-d anida-tt tura ?
deu Ich will dich nicht reden hΓΆren.
```
### Expected behavior
```shell
correctly load train and test files.
```
Any update on this? Is this correct ?
> @mariosasko changed it like
>
> ```python
> sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
> ```
>
> to avoid the above errorr.
| [
-0.2058740258,
-0.5463367105,
-0.1671127826,
0.1710505188,
0.5628308058,
-0.0438255742,
0.3648130894,
0.4633278251,
0.3307608366,
0.1103612408,
-0.0379637405,
0.1857534945,
-0.1733210981,
0.0352142192,
-0.091168195,
-0.2792181075,
-0.0311877429,
0.0663471445,
-0.4036820829,
-0.126438126,
-0.1411067843,
0.0901830345,
-0.1253166944,
-0.083917968,
0.0333534107,
-0.0372173861,
0.3594253957,
-0.090459004,
-0.2028202862,
-0.0035617342,
0.1837964803,
-0.1603972316,
0.0774048492,
0.5127800703,
-0.0001060324,
0.2324672043,
0.0686569065,
-0.1796947569,
0.0101911742,
-0.0085518556,
0.1950659454,
-0.0376990773,
-0.090623863,
-0.4102005363,
-0.2619461119,
-0.2810545862,
-0.0734773278,
-0.3756055236,
0.5350925922,
0.4882688224,
0.2923410535,
0.5072133541,
0.3127987981,
-0.1825513244,
-0.0697038025,
0.237701416,
-0.2120956928,
0.0588576198,
0.1173160076,
0.4100356102,
0.0944552422,
0.1900083423,
-0.2708679438,
-0.0196632762,
0.1261900961,
-0.1607710719,
0.3450274169,
-0.2435237318,
0.0032066973,
0.0924772322,
0.1669000089,
-0.1516173333,
-0.2259166092,
0.0961832628,
-0.1749451309,
-0.0028387771,
-0.1610799432,
0.0710613355,
-0.0282997526,
0.1106591821,
-0.314753145,
0.1835265756,
-0.2631472647,
0.1348431557,
0.088858299,
0.3703709543,
-0.1138310134,
0.1015015915,
0.0988846868,
-0.2782007158,
0.35239923,
0.0122115407,
0.1391105354,
0.0014937433,
-0.068682842,
-0.215441972,
-0.0284981187,
-0.7406471968,
-0.0410460532,
-0.3243362904,
0.0097991917,
0.098226741,
0.0923341289,
0.0346296765,
0.0292108767,
0.2549786866,
-0.3426688612,
0.2487802356,
-0.0297389403,
0.0766860396,
-0.0403293446,
0.0114990463,
0.0699252635,
-0.0296102986,
-0.0832985938,
0.3470889628,
0.3344523311,
-0.0023752635,
-0.3205922842,
0.10790167,
-0.074732922,
0.1737370342,
0.3531581461,
0.3686737418,
-0.0349187218,
0.1612579376,
0.2112628818,
0.1711637229,
-0.1733183563,
-0.0921902359,
-0.2852333486,
0.302256465,
-0.1260493547,
-0.3701906502,
0.080184184,
0.5224432945,
0.1388194263,
-0.0118567925,
0.2376153916,
-0.2264205813,
0.0054611112,
-0.1919454485,
0.3753762841,
0.3932103813,
-0.0750773624,
-0.0608287081,
0.3566327393,
-0.177888155,
-0.1148369163,
0.2737701237,
-0.0771973878,
-0.0566444471,
-0.2002668828,
0.3057541549,
-0.1165436581,
-0.1646443456,
-0.0140976142,
-0.0840704739,
0.3025589883,
-0.1818978935,
0.1146316677,
-0.2176366001,
0.0889429078,
-0.2066797912,
0.1817540824,
-0.0528604835,
-0.1606626213,
0.0131154712,
-0.033482682,
0.0558959655,
0.2024392933,
0.3690714836,
-0.1266654134,
0.2325121909,
-0.088824071,
-0.0224506278,
0.2029462755,
-0.2884684801,
-0.1297895908,
0.0074136183,
0.0590894818,
-0.2027356774,
0.2180359811,
0.1754236072,
0.2898340225,
-0.0512968525,
-0.1339320242,
0.4632379413,
-0.0551117361,
0.3448135555,
-0.2171591073,
-0.2941993475,
0.1106601208,
0.2664009333,
0.3228002787,
0.1017186344,
-0.1292035133,
0.2581640482,
0.1922537684,
-0.2555150986,
0.0323601551,
0.1285437942,
0.4403906465,
-0.1441498101,
-0.0167190842,
-0.078996785,
-0.4179879129,
-0.0809908584,
-0.0656596422,
0.0389800183,
-0.1527919173,
-0.003254893,
-0.2663970292,
-0.036185801,
-0.1198848188,
0.0820543468,
0.2481205612,
-0.0461977609,
0.1409968138,
-0.2241833806,
-0.0774630904,
-0.1413867325,
0.0189327076,
-0.0118386941,
-0.2402744889,
0.334959358,
-0.3069896996,
-0.3138903081,
-0.0889958739,
0.1293852478,
0.3108738065,
-0.324960053,
-0.1669058204,
0.104465954,
0.0288777221,
-0.0095983734,
-0.2458525747,
0.3111941814,
0.1576760113,
-0.2568743229,
0.0848634392,
0.5069621205,
0.0768141001,
0.057877481,
-0.0941442996,
0.3892390728,
-0.0653590336,
-0.0606070273,
-0.0440323837,
0.0423681475,
0.3492108881,
-0.2085426003,
0.143456921,
-0.1895839423,
0.0092000989,
0.0836743042,
0.0372310765,
-0.1846771538,
-0.1697526574,
0.0207851101,
0.3995735049,
0.0888883919,
0.1618841439,
-0.1021926105,
0.1605548859,
0.0437750556,
-0.1253235042,
0.0097974399,
0.2098453343,
0.1149164438,
-0.110515222,
0.0311289635,
0.1041246578,
-0.0804076344,
0.184988752,
0.0848180279,
0.3341631889,
0.2294551581,
-0.1645934731,
0.0132807698,
-0.2779313028,
-0.2119697481,
0.2338669896,
0.3161315024,
-0.12941432,
0.1874316037,
-0.1395235509,
-0.2374024391,
-0.2972432673,
-0.0747515485,
0.0831683427,
-0.2865043581,
-0.1216835454,
0.2766495347,
-0.5804017782,
0.2881935835,
0.3099964857,
-0.0144273182,
0.3036273122,
-0.1909683645,
-0.2822850943,
0.0614971034,
0.2488302737,
0.1270565391,
0.2032082379,
-0.0801722482,
0.2827915549,
-0.0116741583,
0.1376187801,
-0.0808064789,
-0.5144478679,
0.0369382054,
-0.1006680503,
-0.0550441705,
-0.0398277864,
0.32627967,
-0.022390401,
-0.5168437958,
0.1564423442,
-0.6201517582,
-0.0861280113,
0.2405914813,
0.001410278,
-0.2774058282,
-0.2709531486,
-0.3688299358,
-0.2794176936,
-0.4907096028,
-0.0452877507,
0.0243276246,
0.0782518163,
0.2918908894,
0.3806444407,
0.2323734909,
0.3078478873,
0.1499225944,
-0.1940439641,
0.1753279418,
0.228244096,
-0.1901041865,
-0.3289215863,
-0.2492036223,
-0.1566482335,
0.2027225047,
-0.0955780372,
-0.1877944767,
-0.1908487082,
-0.3487737179,
-0.0973877534,
-0.1117501482,
-0.0723515525,
0.3219906092,
-0.0171686336,
-0.1570612937,
-0.0663261712,
0.0067101759,
0.0078939386,
0.1808440983,
-0.033370778,
-0.152741611,
0.3413669467,
0.1094756797,
0.2472997457,
0.1122871935,
-0.3196173608,
0.2660658658,
-0.0209107231,
0.2227959186,
-0.1998184621,
-0.2721836269,
0.0285926852,
0.0224591214,
-0.2521358728,
-0.0704896748,
-0.4447209835,
-0.1918935776,
-0.0409663171,
0.173457548,
-0.3277068436,
-0.2449155748,
0.1469759792,
0.2143327296,
-0.0807265341,
-0.0536791906,
0.1177532896,
-0.0976106003,
0.033866886,
0.1228638962,
0.1903547794,
-0.1218344495,
-0.0363598615,
-0.1323759258,
-0.2206008583,
-0.0121812411,
0.267601788,
-0.067018114,
0.4828374684,
-0.1378531754,
-0.1913564652,
-0.040117193,
-0.0191539321,
0.4925307035,
0.0867030099,
0.2432990372,
0.03757089,
0.0139984991,
-0.2272453457,
-0.184033528,
-0.3596010506,
-0.0230107233,
0.377917856,
0.4538722336,
-0.3448338509,
-0.1600858718,
0.3421184421,
0.087624982,
-0.0907659978,
0.0042549288,
-0.1941213608,
-0.4743171632,
-0.4139519036,
0.1027451828,
0.530356884,
0.4118692577,
-0.0809417441,
0.0520244762,
-0.1923602819,
-0.119872734,
0.117798306,
-0.0909959078,
0.2251261175,
0.0504561104,
0.1399694234,
-0.1704459786,
-0.2764976621,
0.0247395914,
0.3095152378,
0.1366020143,
-0.2345755398,
0.0617250614,
0.1292724609,
0.0209705103,
0.1469891071,
-0.0102297487,
-0.0659178495,
0.0627230704,
0.3820601702,
-0.0446833372,
0.053443417,
0.0492304564,
0.070873864,
-0.167738691,
-0.1651280671,
0.171654731,
-0.1138118356,
0.0840364769,
-0.0983551443,
0.0371635556,
-0.2842999995,
0.6224851012,
0.3881370127,
0.8093032837,
-0.1434506923,
0.1810502857,
0.3547424078,
0.0528006777,
0.1755897403,
0.0147700999,
0.1016152054,
-0.560192287,
-0.239176318,
0.0366726331,
-0.1643534303,
0.0718622729,
-0.0193401966,
-0.5239448547,
-0.0641000718,
-0.0553190634,
0.3788299263,
-0.1080497727,
0.2163046151,
0.2167898118,
-0.2219136804,
-0.1918763369,
0.1788294017,
-0.1209589466,
0.0707912222,
0.0371640585,
-0.3602228761,
-0.1189605221,
-0.1180747449,
-0.1570664495,
0.2145125121,
-0.0110536395,
0.4648868144,
0.1464470625,
-0.1612527966,
-0.0420816317,
0.1511614174,
0.229069829,
0.2789492011,
-0.1077248231,
0.1022463217,
-0.0665744022,
-0.0329595879,
-0.076056242,
0.0664733797,
0.3403444886,
-0.0204758886,
0.0232919566,
-0.0385857746,
0.0551054552,
-0.1936300248,
0.0520869717,
-0.2053769678,
-0.2473534942,
-0.5217531919,
-0.2035416067,
0.0629846603,
-0.4981679916,
-0.1804882139,
0.2138574421,
-0.003250439,
-0.3750745058,
0.2486923486,
0.2344364822,
-0.2373042852,
-0.0071182069,
0.2403000295,
0.2968222201,
-0.0187273435,
0.2680461109,
0.1754330099,
-0.2211254686,
-0.3220890462,
0.095101431,
0.0428276099,
-0.5210026503,
0.2870933712,
-0.3250692189,
-0.3471292555,
0.0914245173,
-0.00250286,
0.1125354543,
0.2926103771,
-0.1842609495,
-0.2441552579,
-0.4892579615,
0.242391482,
0.0116832629,
0.2358907461,
0.020579787,
0.2817345262,
-0.0710664392,
0.0332429335,
-0.46019274,
0.0460908599,
-0.3358787,
0.0881787464,
-0.16891177,
-0.5571727157,
0.107046023,
-0.0081409048,
0.2089713961,
0.0426950827,
-0.3289520442,
-0.2711529434,
-0.1295115203,
0.028536886,
0.1459765285,
-0.149195686,
-0.1012970805,
-0.2788999677,
-0.2622576356,
-0.0833622515,
0.0447545424,
0.2318487167,
0.0904178694,
0.2256846875,
0.1388594657,
0.1114350259,
-0.0181014054,
-0.077036649,
-0.0208173022,
0.1388026774,
0.0713966191,
0.1527343988,
0.0052246107,
-0.0488015302,
-0.2612768114,
0.0678185895,
0.3937556148,
-0.0843461305,
0.3125640452,
-0.2165520042,
-0.0310471803,
0.0657629445,
0.3974628448,
0.0406413786,
-0.4246017337,
0.0264307559,
-0.0753722191,
0.2946710289,
-0.2296070009,
-0.0882767737,
0.0620962158,
0.0463475063,
0.2015509158,
0.2553773224,
-0.1046290025,
0.1652102321,
0.4309176207,
0.2992331386,
0.4173389673,
-0.0818921626,
0.1347174197,
0.1861938536,
-0.2718972564,
-0.1418111324,
0.2442781776,
0.1014344692,
0.2186398953,
0.3944149613,
-0.2051373273,
0.0947931334,
-0.2111215293,
-0.1357300431,
0.2142552882,
0.0796013325,
-0.091796957,
0.1080016941,
-0.2276802808,
0.164167136,
-0.0471278019,
-0.0558544621,
-0.2296596617,
-0.000068264,
-0.2843836248,
0.1208273768,
-0.4259039164,
0.2273452282,
0.1863930523,
0.105484508,
-0.3405477405,
-0.2014196664,
0.0592442229,
0.0019962532,
-0.043080423,
0.164234221,
-0.0863453448,
0.4284532666,
0.0224234816,
0.1440993547,
-0.0185547303,
-0.3307959139,
0.165139541,
0.4618390799,
-0.0608106144,
-0.2200914621,
0.2863713503,
0.4150553346,
0.2264840752,
-0.2363422513,
0.2629530728,
0.0683605075,
-0.3372965157,
-0.0744847059,
0.2843070328,
0.3062033057,
0.3336184919,
0.2868262231,
0.2640824318,
-0.2991374135,
-0.1666556299,
0.1528553963,
0.008310861,
0.2482055426,
0.5052460432,
-0.0418701544,
-0.4077041745,
-0.0686031654,
-0.1974014342,
-0.5350337029,
-0.2064782679,
0.1075426489,
-0.2314076871,
0.26383394,
0.1656094193,
0.1325246692,
-0.0257342663,
0.5575472116,
-0.0234561283,
0.1785559803,
-0.4049807787,
0.1025912613,
-0.222391516,
0.2665467858,
0.3310826719,
0.0687109306,
0.1985699683,
0.2189537585,
0.1238905936,
0.1835174263,
-0.0276710317,
-0.2438267767,
0.156933099,
0.2294225693,
-0.0579549484,
0.0035186182,
0.0164830405,
0.0092698243,
0.2666772008,
-0.4339877069,
0.2716411352,
0.0088166054,
0.2757121325,
-0.3280782998,
0.0776313022,
-0.0038259185,
-0.142139852,
0.0882014707,
-0.0796647295,
0.5117201805,
-0.1819565594,
-0.1123145819,
0.2242079377,
-0.2020687312,
-0.1495587975,
0.1795028448,
0.2430046499,
0.3789004087,
0.1096352041,
0.0341851003,
-0.2756944001,
0.1485710442,
-0.0860385075,
-0.1794837266,
-0.1554077715,
0.3504404426,
-0.2647797763,
0.104934141,
-0.0201003645,
0.1318541467,
0.1608710289,
0.2491208166,
-0.3544086218,
-0.4123487175,
0.6665608287,
0.058869198,
-0.3451695144,
-0.0857329741,
0.0318886675,
-0.1323498487,
0.0408525951,
-0.7296362519,
0.2549422681,
-0.0165216532,
-0.2539709806,
-0.1664779186,
0.2007682025,
-0.0108907139,
-0.0075598387,
-0.0239946414,
0.4769183695,
0.2388567179,
-0.1805017889,
-0.183375001,
-0.1403684765
] |
https://github.com/huggingface/datasets/issues/4199 | Cache miss during reload for datasets using image fetch utilities through map | Hi ! Maybe one of the objects in the function is not deterministic across sessions ? You can read more about it and how to investigate here: https://huggingface.co/docs/datasets/about_cache | ## Describe the bug
It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch.
## Steps to reproduce the bug
Using the example provided in `red_caps` dataset.
```python
from concurrent.futures import ThreadPoolExecutor
from functools import partial
import io
import urllib
import PIL.Image
import datasets
from datasets import load_dataset
from datasets.utils.file_utils import get_datasets_user_agent
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
def fetch_images(batch, num_threads, timeout=None, retries=0):
fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries)
with ThreadPoolExecutor(max_workers=num_threads) as executor:
batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"]))
return batch
def process_image_urls(batch):
processed_batch_image_urls = []
for image_url in batch["image_url"]:
processed_example_image_urls = []
image_url_splits = re.findall(r"http\S+", image_url)
for image_url_split in image_url_splits:
if "imgur" in image_url_split and "," in image_url_split:
for image_url_part in image_url_split.split(","):
if not image_url_part:
continue
image_url_part = image_url_part.strip()
root, ext = os.path.splitext(image_url_part)
if not root.startswith("http"):
root = "http://i.imgur.com/" + root
root = root.split("#")[0]
if not ext:
ext = ".jpg"
ext = re.split(r"[?%]", ext)[0]
image_url_part = root + ext
processed_example_image_urls.append(image_url_part)
else:
processed_example_image_urls.append(image_url_split)
processed_batch_image_urls.append(processed_example_image_urls)
batch["image_url"] = processed_batch_image_urls
return batch
dset = load_dataset("red_caps", "jellyfish")
dset = dset.map(process_image_urls, batched=True, num_proc=4)
features = dset["train"].features.copy()
features["image"] = datasets.Sequence(datasets.Image())
num_threads = 5
dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads})
```
Run this in an interpretor or as a script twice and see that the cache is missed the second time.
## Expected results
At reload there should not be any cache miss
## Actual results
Every time script is run, cache is missed and dataset is built from scratch.
## Environment info
- `datasets` version: 2.1.1.dev0
- Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 28 | Cache miss during reload for datasets using image fetch utilities through map
## Describe the bug
It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch.
## Steps to reproduce the bug
Using the example provided in `red_caps` dataset.
```python
from concurrent.futures import ThreadPoolExecutor
from functools import partial
import io
import urllib
import PIL.Image
import datasets
from datasets import load_dataset
from datasets.utils.file_utils import get_datasets_user_agent
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
def fetch_images(batch, num_threads, timeout=None, retries=0):
fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries)
with ThreadPoolExecutor(max_workers=num_threads) as executor:
batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"]))
return batch
def process_image_urls(batch):
processed_batch_image_urls = []
for image_url in batch["image_url"]:
processed_example_image_urls = []
image_url_splits = re.findall(r"http\S+", image_url)
for image_url_split in image_url_splits:
if "imgur" in image_url_split and "," in image_url_split:
for image_url_part in image_url_split.split(","):
if not image_url_part:
continue
image_url_part = image_url_part.strip()
root, ext = os.path.splitext(image_url_part)
if not root.startswith("http"):
root = "http://i.imgur.com/" + root
root = root.split("#")[0]
if not ext:
ext = ".jpg"
ext = re.split(r"[?%]", ext)[0]
image_url_part = root + ext
processed_example_image_urls.append(image_url_part)
else:
processed_example_image_urls.append(image_url_split)
processed_batch_image_urls.append(processed_example_image_urls)
batch["image_url"] = processed_batch_image_urls
return batch
dset = load_dataset("red_caps", "jellyfish")
dset = dset.map(process_image_urls, batched=True, num_proc=4)
features = dset["train"].features.copy()
features["image"] = datasets.Sequence(datasets.Image())
num_threads = 5
dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads})
```
Run this in an interpretor or as a script twice and see that the cache is missed the second time.
## Expected results
At reload there should not be any cache miss
## Actual results
Every time script is run, cache is missed and dataset is built from scratch.
## Environment info
- `datasets` version: 2.1.1.dev0
- Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
Hi ! Maybe one of the objects in the function is not deterministic across sessions ? You can read more about it and how to investigate here: https://huggingface.co/docs/datasets/about_cache | [
-0.5388091803,
-0.1422931403,
-0.0625115633,
0.2576912344,
0.0660191029,
0.0496222414,
0.1246499345,
-0.0102835521,
0.485123843,
0.1197426617,
-0.0498226732,
0.4438686967,
0.3680506647,
-0.1765505075,
-0.1030043662,
0.1202055439,
-0.026852401,
0.1637635529,
-0.182844162,
-0.1608161926,
-0.3092357814,
0.2084266245,
-0.3623568118,
-0.2980819046,
-0.1996029466,
-0.002970034,
-0.1684425622,
0.1212333366,
0.0278945509,
-0.4024114907,
0.3238579333,
0.2566543818,
0.1043135598,
0.4048788249,
-0.0001153614,
-0.1344270706,
0.2720872462,
-0.1250962764,
-0.0104723759,
-0.1111982837,
-0.3086093068,
-0.2532835901,
0.0939372182,
-0.41549474,
0.183552295,
0.2916425169,
0.2345446497,
-0.3937248588,
0.3496821225,
-0.0460568331,
0.2011282444,
0.2351736724,
-0.2515093684,
0.0579689778,
0.0873999521,
-0.0321977735,
0.0910172537,
0.1644153446,
0.2773283422,
-0.1365718991,
-0.3102950156,
0.5134250522,
-0.2853367627,
0.1822087467,
-0.1019851416,
0.0265386999,
0.1252616644,
-0.284686029,
0.1300564855,
-0.1656835675,
0.4854113162,
-0.0093907062,
-0.3884161711,
-0.1936206818,
-0.4249210358,
-0.0665058196,
0.2354646772,
0.1045282781,
0.0796734691,
0.0526351556,
-0.5150630474,
-0.0848908126,
0.2990432978,
0.124495551,
0.0300329495,
0.0745155066,
-0.0674472898,
0.2134025097,
-0.1621467024,
0.3482897282,
0.2535981238,
-0.2572987676,
-0.1036177799,
0.2846553922,
-0.3261966705,
0.1461802423,
0.1050088331,
0.044101648,
-0.0688124076,
-0.0260064378,
0.2277157307,
0.2027707994,
-0.0483475663,
0.3575034142,
0.1354943961,
0.0130448146,
0.000536635,
0.3917050362,
0.1755884439,
0.1935785562,
-0.3123553991,
-0.1041727588,
0.1865369081,
-0.0884165615,
0.437083751,
0.1764671952,
0.1004640236,
-0.0423454531,
0.0854886994,
-0.0690078661,
-0.2282300591,
-0.1856983751,
-0.1153735444,
0.1347233951,
-0.208197087,
0.3548333645,
0.2388383597,
-0.1030220017,
-0.3011070192,
-0.0902156755,
-0.2704845071,
-0.2335180491,
-0.1836479455,
0.2267375588,
0.0495838039,
-0.1077264026,
0.4084827602,
0.0599790439,
-0.1803714633,
-0.3364020884,
0.3869014084,
-0.2137597352,
0.1654432565,
0.149417311,
0.0661338121,
0.1256655008,
0.1458885074,
0.0677927732,
0.0067073395,
0.257625401,
-0.4860207438,
-0.0417557396,
0.2522518039,
0.1979472339,
-0.1309498549,
0.0947628319,
-0.4320312738,
-0.0127232252,
0.4820628166,
0.0493946522,
0.1812435538,
-0.096342206,
-0.4463657439,
-0.3406182528,
0.0138426377,
0.6789832115,
-0.1456809342,
-0.2210318595,
-0.1514838487,
0.0053251013,
0.2093817294,
0.0245165527,
-0.1725440323,
0.2053842843,
-0.531262219,
0.0888827145,
0.1487523615,
-0.4117074013,
-0.6002056003,
0.2565573454,
-0.0377983786,
0.1759770066,
-0.014795078,
0.3248441815,
0.5295739174,
-0.1184804067,
-0.1029442996,
0.3025984466,
-0.1564244777,
0.3233766556,
-0.2764518857,
-0.0618634447,
-0.0152892731,
0.0315515399,
0.2279400527,
0.2726482749,
0.2719177604,
-0.3450585902,
0.2618890405,
0.0761191472,
0.2465054095,
0.161281839,
-0.1975605041,
0.0788265318,
0.1901315898,
0.1125501245,
-0.4655463994,
0.3248233497,
-0.1516055763,
-0.2360995561,
0.0042195371,
-0.0556685664,
-0.1670176834,
-0.1653723568,
-0.2964023054,
-0.2672642767,
0.0817730278,
0.2501354516,
0.0097638294,
0.1664817631,
0.0945904106,
0.5646682978,
0.042722825,
0.1042374894,
-0.0657067597,
0.2966791689,
0.0525671579,
0.0823343024,
-0.2240431458,
-0.307980895,
0.3217377067,
-0.1376318187,
-0.2331338674,
0.4564603269,
0.2607676685,
0.434278667,
-0.0156821776,
-0.1712564677,
0.1057755277,
-0.1061887369,
0.1070088521,
-0.0188050549,
0.2216449976,
-0.1693441421,
0.2526167035,
0.0920696706,
0.1393102556,
-0.0563991554,
-0.1667529494,
0.0912119523,
0.1280708611,
-0.2222955227,
0.1571408063,
-0.2190762907,
0.0728902221,
-0.0228249505,
0.2142825127,
0.0412870832,
0.1429038942,
0.0527337231,
0.4853819609,
0.1600433588,
0.0842917413,
0.0593692437,
-0.0827849507,
-0.0675246418,
0.1141426936,
0.2985502779,
0.3663423955,
0.0538765416,
0.0419447459,
0.0094403252,
0.2007361501,
-0.0321514122,
0.0962180346,
0.1585372835,
0.2225070596,
-0.011047096,
0.1856264323,
0.0784408301,
-0.3671365082,
-0.1038582996,
0.3462377489,
0.0160885062,
0.0394550301,
-0.0185712632,
-0.0950139314,
-0.0509846993,
0.1159840599,
0.305686146,
0.0210302547,
-0.4192983508,
-0.1622755975,
0.4059544504,
0.0834540799,
0.3150652945,
-0.1469217241,
-0.1069435626,
0.1184314787,
-0.1953202337,
-0.3516010642,
-0.3146096468,
-0.1680051237,
-0.0494519807,
0.0460559949,
-0.3830378056,
0.4569521546,
-0.272195071,
-0.0630904585,
-0.3262608945,
-0.2513567805,
0.1131652221,
0.1139891446,
-0.1059659123,
-0.0303756967,
0.1228048578,
-0.3447494209,
0.3104196787,
0.1006174311,
-0.2456196249,
-0.393854022,
-0.1283269078,
0.0296658594,
0.0064874482,
-0.1237213388,
-0.4142180383,
-0.1321744174,
-0.2968364656,
-0.1388780773,
-0.160074681,
0.082571812,
-0.0098762056,
0.0524274819,
-0.2149509937,
-0.0770476609,
-0.2246501744,
-0.4897662401,
-0.2640126944,
0.1400340497,
-0.1651923507,
-0.204718411,
0.0574869178,
-0.261810869,
0.3163836896,
0.5731630325,
-0.6966409087,
-0.2867434323,
-0.2065727264,
0.0124836862,
-0.112608254,
0.0962691009,
0.2511671185,
0.1443571001,
-0.0673493147,
-0.2551213801,
-0.2258040458,
0.0104147354,
0.0837559998,
-0.0674224645,
-0.02257354,
0.27725631,
0.1668531001,
0.3151034713,
0.0968262628,
-0.036492683,
0.4151695669,
0.1892160177,
0.2373826951,
-0.1164035127,
-0.1288239211,
-0.0117460825,
-0.2716666162,
-0.0015882597,
-0.1896205246,
-0.0007311165,
-0.4575285912,
-0.2012013495,
-0.0363283083,
-0.4277953804,
-0.2997666299,
-0.0247070976,
-0.2209668159,
0.4131220877,
0.2821499109,
0.1058767885,
-0.3912023604,
-0.1796614975,
0.0432210863,
-0.0462905541,
0.6341548562,
0.0466210507,
-0.2643529475,
0.2647792101,
-0.1362600327,
0.3150092065,
0.2374100834,
0.2857639194,
0.2279465348,
0.1149718463,
0.1107122153,
0.1053241417,
0.6578534245,
-0.3484830558,
0.1891744733,
0.0074449107,
-0.3276085258,
-0.1667203754,
-0.0195338409,
0.1432492137,
0.4767276347,
-0.0092611052,
0.2149568051,
-0.0917414576,
0.0661905333,
-0.1424326003,
0.0277394336,
-0.1420565695,
-0.2631871402,
-0.0799010396,
-0.2206416279,
-0.3387677968,
0.0193607137,
-0.1306836009,
-0.2819462717,
0.0949814022,
-0.1546617299,
-0.0695067123,
0.2158500403,
-0.4394509792,
0.0077937189,
0.283836931,
-0.1617752314,
0.2971737385,
0.2559217215,
-0.2889594734,
0.0530633107,
0.5479388833,
-0.1014570296,
-0.116166234,
0.0836282447,
-0.0507328846,
-0.1113159582,
0.1236488223,
-0.0869657472,
0.0023952613,
0.1612758934,
0.070987463,
-0.3147363365,
0.0742731467,
0.1261950731,
0.1790335923,
-0.1964243352,
-0.6380593181,
0.1307888925,
0.0899862647,
-0.1003186554,
0.4859215617,
-0.4771525264,
-0.1532415897,
0.4665314853,
0.0845877975,
0.6797029376,
-0.3502425849,
0.0672098771,
0.0148413088,
-0.1361782551,
0.359856993,
0.0305554438,
0.2707557678,
-0.3870010674,
0.0569255836,
-0.0775779039,
-0.2284029424,
-0.050329186,
0.2015576363,
-0.1420084089,
0.3741326928,
0.2480002046,
0.2316887677,
0.1324166805,
-0.0494320877,
-0.2070031613,
-0.2468094379,
0.1877889037,
0.1067590788,
-0.0889651552,
0.2767064273,
-0.150550127,
0.0439402275,
0.0059184302,
-0.2285580188,
-0.0903603882,
0.0716737062,
-0.5004435778,
0.4374222755,
-0.2599570155,
-0.0208628178,
-0.1622359604,
0.3512479961,
-0.1853672713,
-0.0212582331,
0.0726990998,
0.2844637632,
0.1805647016,
0.2291978151,
0.23948358,
-0.0786806047,
0.2588625252,
0.1685050875,
-0.1607977897,
-0.1767392904,
-0.1192167848,
-0.2401973903,
-0.0571181588,
0.4174095392,
0.3503101468,
-0.0488440096,
-0.0948682576,
-0.1246383265,
-0.2349690944,
-0.1722321659,
0.0663244724,
0.270301193,
0.1054407433,
0.3770662546,
-0.1186317727,
-0.2462321371,
-0.0688209757,
0.5489092469,
0.2104665041,
-0.3482519686,
0.3372831643,
-0.0509499907,
-0.2350309491,
-0.1438682228,
-0.3529117703,
-0.3611236215,
-0.6210967302,
0.1753809005,
-0.2309589833,
0.1110181361,
0.0235602576,
-0.2193684429,
-0.1090781763,
-0.0461436808,
-0.0715853274,
-0.5186216235,
-0.2823275328,
-0.1100598127,
-0.3005130887,
-0.0183311962,
0.1857329011,
-0.0769488439,
0.0264810938,
0.1901181936,
-0.2648633718,
0.2768932283,
-0.1553762704,
0.2661966383,
0.159917146,
0.1028938815,
0.206473425,
-0.167306453,
0.0289105233,
0.3245439827,
-0.3369905353,
-0.146547839,
-0.0276215747,
0.143626079,
-0.0051826145,
-0.1927832812,
0.0239662826,
-0.106362395,
0.147849381,
-0.3252394497,
0.07902693,
0.2136470675,
-0.1414022893,
0.0804111063,
0.0243630055,
0.0363760442,
-0.057833679,
0.1580345929,
-0.4155874252,
0.1187523752,
-0.0620007627,
0.2741931975,
0.0628045946,
-0.0002785298,
0.051025521,
-0.1632766575,
0.0927711502,
0.0713367015,
0.6600543261,
-0.347987026,
0.0027486221,
0.0112348003,
0.278452009,
-0.1077802926,
-0.1231283769,
-0.2470199615,
0.1261348873,
0.2323844135,
-0.1874023676,
-0.0191925932,
0.7703559399,
0.2057472914,
0.0693611205,
0.199567765,
0.2047460079,
-0.1248484179,
-0.0572978221,
0.2450294793,
0.60144943,
-0.2946958244,
0.1795215309,
-0.0075890557,
0.1442109942,
0.2574104369,
0.0834329799,
0.2852137983,
0.0244955178,
0.1977985054,
0.3353343904,
0.3759309947,
0.1017617136,
0.241771698,
-0.2541458607,
-0.8483524919,
0.2164356261,
0.3106331527,
-0.1778481901,
0.4403851628,
-0.0676979199,
0.0749841258,
0.2499135435,
0.0449571349,
-0.1353445351,
0.242729485,
-0.2596841156,
0.0428155586,
0.2712404132,
0.0356542282,
-0.0783858374,
0.1409746408,
0.2365379483,
0.082175687,
0.6426134109,
0.0948067829,
-0.1667307764,
-0.1545536071,
-0.4155267179,
0.1070074737,
0.2578572631,
-0.2934649289,
0.1062314063,
0.1161265075,
-0.0054523055,
-0.1437711567,
0.3571884334,
0.2887170911,
0.271777302,
-0.0625136793,
0.1972270608,
0.2948037684,
0.0311456565,
-0.3145175874,
0.2707582116,
-0.15952079,
-0.1426607966,
0.0210763384,
0.1060887501,
-0.1494475454,
0.0748377666,
0.0864399374,
0.0049862894,
0.1242635027,
-0.1414439678,
0.0684139207,
-0.0673801154,
-0.0910431594,
0.0917214975,
-0.1926459521,
-0.258702755,
0.3583815396,
-0.2122402191,
0.2089779526,
-0.1731163114,
0.0572088063,
-0.0682728887,
0.101255402,
0.709826529,
0.2089060545,
-0.4419158399,
-0.1438095123,
-0.5076892376,
0.173256591,
-0.1433376074,
-0.0774962902,
-0.0194902048,
0.2461490333,
0.0585136525,
0.0115943933,
0.3134946227,
-0.1543738693,
0.3851774633,
0.3418079019,
-0.1670239568,
-0.5232175589,
0.0274095144,
-0.1497652233,
0.0336037278,
-0.582088232,
0.1985745877,
-0.1861384362,
0.199498415,
-0.2060323358,
-0.1180067286,
0.2805027366,
-0.0356002562,
0.6197189689,
0.3314342499,
0.0975739881,
-0.1519415975,
-0.1209619641,
-0.1317192912,
-0.1717382073,
0.0067226458,
-0.1713290513,
0.1314556003,
0.4526280463,
-0.4137362242,
-0.1275530607,
-0.3686807454,
0.1819134206,
0.0390190706,
-0.0563945211,
-0.2189394832,
0.0700622723,
-0.1064072177,
0.092699945,
-0.0827449113,
0.4726964533,
-0.0456637964,
0.3628140986,
-0.3272989392,
-0.359916985,
0.3638532758,
-0.4733114243,
-0.1474683583,
0.0376652963,
0.2643287182,
-0.0564982034,
-0.0417726859,
-0.3175781965,
0.0808687136,
0.3987441063,
-0.0212089494,
-0.2077235729,
0.121618174,
0.1442992389,
0.2304625064,
0.0622662418,
0.2198325545,
0.0009786998,
-0.2669609189,
0.2790629864,
-0.107957311
] |
https://github.com/huggingface/datasets/issues/4199 | Cache miss during reload for datasets using image fetch utilities through map | Hi @apsdehal! Can you verify that replacing
```python
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
```
with
```python
USER_AGENT = get_datasets_user_agent()
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": USER_AGENT},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
```
fixes the issue? | ## Describe the bug
It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch.
## Steps to reproduce the bug
Using the example provided in `red_caps` dataset.
```python
from concurrent.futures import ThreadPoolExecutor
from functools import partial
import io
import urllib
import PIL.Image
import datasets
from datasets import load_dataset
from datasets.utils.file_utils import get_datasets_user_agent
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
def fetch_images(batch, num_threads, timeout=None, retries=0):
fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries)
with ThreadPoolExecutor(max_workers=num_threads) as executor:
batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"]))
return batch
def process_image_urls(batch):
processed_batch_image_urls = []
for image_url in batch["image_url"]:
processed_example_image_urls = []
image_url_splits = re.findall(r"http\S+", image_url)
for image_url_split in image_url_splits:
if "imgur" in image_url_split and "," in image_url_split:
for image_url_part in image_url_split.split(","):
if not image_url_part:
continue
image_url_part = image_url_part.strip()
root, ext = os.path.splitext(image_url_part)
if not root.startswith("http"):
root = "http://i.imgur.com/" + root
root = root.split("#")[0]
if not ext:
ext = ".jpg"
ext = re.split(r"[?%]", ext)[0]
image_url_part = root + ext
processed_example_image_urls.append(image_url_part)
else:
processed_example_image_urls.append(image_url_split)
processed_batch_image_urls.append(processed_example_image_urls)
batch["image_url"] = processed_batch_image_urls
return batch
dset = load_dataset("red_caps", "jellyfish")
dset = dset.map(process_image_urls, batched=True, num_proc=4)
features = dset["train"].features.copy()
features["image"] = datasets.Sequence(datasets.Image())
num_threads = 5
dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads})
```
Run this in an interpretor or as a script twice and see that the cache is missed the second time.
## Expected results
At reload there should not be any cache miss
## Actual results
Every time script is run, cache is missed and dataset is built from scratch.
## Environment info
- `datasets` version: 2.1.1.dev0
- Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 88 | Cache miss during reload for datasets using image fetch utilities through map
## Describe the bug
It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch.
## Steps to reproduce the bug
Using the example provided in `red_caps` dataset.
```python
from concurrent.futures import ThreadPoolExecutor
from functools import partial
import io
import urllib
import PIL.Image
import datasets
from datasets import load_dataset
from datasets.utils.file_utils import get_datasets_user_agent
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
def fetch_images(batch, num_threads, timeout=None, retries=0):
fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries)
with ThreadPoolExecutor(max_workers=num_threads) as executor:
batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"]))
return batch
def process_image_urls(batch):
processed_batch_image_urls = []
for image_url in batch["image_url"]:
processed_example_image_urls = []
image_url_splits = re.findall(r"http\S+", image_url)
for image_url_split in image_url_splits:
if "imgur" in image_url_split and "," in image_url_split:
for image_url_part in image_url_split.split(","):
if not image_url_part:
continue
image_url_part = image_url_part.strip()
root, ext = os.path.splitext(image_url_part)
if not root.startswith("http"):
root = "http://i.imgur.com/" + root
root = root.split("#")[0]
if not ext:
ext = ".jpg"
ext = re.split(r"[?%]", ext)[0]
image_url_part = root + ext
processed_example_image_urls.append(image_url_part)
else:
processed_example_image_urls.append(image_url_split)
processed_batch_image_urls.append(processed_example_image_urls)
batch["image_url"] = processed_batch_image_urls
return batch
dset = load_dataset("red_caps", "jellyfish")
dset = dset.map(process_image_urls, batched=True, num_proc=4)
features = dset["train"].features.copy()
features["image"] = datasets.Sequence(datasets.Image())
num_threads = 5
dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads})
```
Run this in an interpretor or as a script twice and see that the cache is missed the second time.
## Expected results
At reload there should not be any cache miss
## Actual results
Every time script is run, cache is missed and dataset is built from scratch.
## Environment info
- `datasets` version: 2.1.1.dev0
- Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
Hi @apsdehal! Can you verify that replacing
```python
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
```
with
```python
USER_AGENT = get_datasets_user_agent()
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": USER_AGENT},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
```
fixes the issue? | [
-0.5388091803,
-0.1422931403,
-0.0625115633,
0.2576912344,
0.0660191029,
0.0496222414,
0.1246499345,
-0.0102835521,
0.485123843,
0.1197426617,
-0.0498226732,
0.4438686967,
0.3680506647,
-0.1765505075,
-0.1030043662,
0.1202055439,
-0.026852401,
0.1637635529,
-0.182844162,
-0.1608161926,
-0.3092357814,
0.2084266245,
-0.3623568118,
-0.2980819046,
-0.1996029466,
-0.002970034,
-0.1684425622,
0.1212333366,
0.0278945509,
-0.4024114907,
0.3238579333,
0.2566543818,
0.1043135598,
0.4048788249,
-0.0001153614,
-0.1344270706,
0.2720872462,
-0.1250962764,
-0.0104723759,
-0.1111982837,
-0.3086093068,
-0.2532835901,
0.0939372182,
-0.41549474,
0.183552295,
0.2916425169,
0.2345446497,
-0.3937248588,
0.3496821225,
-0.0460568331,
0.2011282444,
0.2351736724,
-0.2515093684,
0.0579689778,
0.0873999521,
-0.0321977735,
0.0910172537,
0.1644153446,
0.2773283422,
-0.1365718991,
-0.3102950156,
0.5134250522,
-0.2853367627,
0.1822087467,
-0.1019851416,
0.0265386999,
0.1252616644,
-0.284686029,
0.1300564855,
-0.1656835675,
0.4854113162,
-0.0093907062,
-0.3884161711,
-0.1936206818,
-0.4249210358,
-0.0665058196,
0.2354646772,
0.1045282781,
0.0796734691,
0.0526351556,
-0.5150630474,
-0.0848908126,
0.2990432978,
0.124495551,
0.0300329495,
0.0745155066,
-0.0674472898,
0.2134025097,
-0.1621467024,
0.3482897282,
0.2535981238,
-0.2572987676,
-0.1036177799,
0.2846553922,
-0.3261966705,
0.1461802423,
0.1050088331,
0.044101648,
-0.0688124076,
-0.0260064378,
0.2277157307,
0.2027707994,
-0.0483475663,
0.3575034142,
0.1354943961,
0.0130448146,
0.000536635,
0.3917050362,
0.1755884439,
0.1935785562,
-0.3123553991,
-0.1041727588,
0.1865369081,
-0.0884165615,
0.437083751,
0.1764671952,
0.1004640236,
-0.0423454531,
0.0854886994,
-0.0690078661,
-0.2282300591,
-0.1856983751,
-0.1153735444,
0.1347233951,
-0.208197087,
0.3548333645,
0.2388383597,
-0.1030220017,
-0.3011070192,
-0.0902156755,
-0.2704845071,
-0.2335180491,
-0.1836479455,
0.2267375588,
0.0495838039,
-0.1077264026,
0.4084827602,
0.0599790439,
-0.1803714633,
-0.3364020884,
0.3869014084,
-0.2137597352,
0.1654432565,
0.149417311,
0.0661338121,
0.1256655008,
0.1458885074,
0.0677927732,
0.0067073395,
0.257625401,
-0.4860207438,
-0.0417557396,
0.2522518039,
0.1979472339,
-0.1309498549,
0.0947628319,
-0.4320312738,
-0.0127232252,
0.4820628166,
0.0493946522,
0.1812435538,
-0.096342206,
-0.4463657439,
-0.3406182528,
0.0138426377,
0.6789832115,
-0.1456809342,
-0.2210318595,
-0.1514838487,
0.0053251013,
0.2093817294,
0.0245165527,
-0.1725440323,
0.2053842843,
-0.531262219,
0.0888827145,
0.1487523615,
-0.4117074013,
-0.6002056003,
0.2565573454,
-0.0377983786,
0.1759770066,
-0.014795078,
0.3248441815,
0.5295739174,
-0.1184804067,
-0.1029442996,
0.3025984466,
-0.1564244777,
0.3233766556,
-0.2764518857,
-0.0618634447,
-0.0152892731,
0.0315515399,
0.2279400527,
0.2726482749,
0.2719177604,
-0.3450585902,
0.2618890405,
0.0761191472,
0.2465054095,
0.161281839,
-0.1975605041,
0.0788265318,
0.1901315898,
0.1125501245,
-0.4655463994,
0.3248233497,
-0.1516055763,
-0.2360995561,
0.0042195371,
-0.0556685664,
-0.1670176834,
-0.1653723568,
-0.2964023054,
-0.2672642767,
0.0817730278,
0.2501354516,
0.0097638294,
0.1664817631,
0.0945904106,
0.5646682978,
0.042722825,
0.1042374894,
-0.0657067597,
0.2966791689,
0.0525671579,
0.0823343024,
-0.2240431458,
-0.307980895,
0.3217377067,
-0.1376318187,
-0.2331338674,
0.4564603269,
0.2607676685,
0.434278667,
-0.0156821776,
-0.1712564677,
0.1057755277,
-0.1061887369,
0.1070088521,
-0.0188050549,
0.2216449976,
-0.1693441421,
0.2526167035,
0.0920696706,
0.1393102556,
-0.0563991554,
-0.1667529494,
0.0912119523,
0.1280708611,
-0.2222955227,
0.1571408063,
-0.2190762907,
0.0728902221,
-0.0228249505,
0.2142825127,
0.0412870832,
0.1429038942,
0.0527337231,
0.4853819609,
0.1600433588,
0.0842917413,
0.0593692437,
-0.0827849507,
-0.0675246418,
0.1141426936,
0.2985502779,
0.3663423955,
0.0538765416,
0.0419447459,
0.0094403252,
0.2007361501,
-0.0321514122,
0.0962180346,
0.1585372835,
0.2225070596,
-0.011047096,
0.1856264323,
0.0784408301,
-0.3671365082,
-0.1038582996,
0.3462377489,
0.0160885062,
0.0394550301,
-0.0185712632,
-0.0950139314,
-0.0509846993,
0.1159840599,
0.305686146,
0.0210302547,
-0.4192983508,
-0.1622755975,
0.4059544504,
0.0834540799,
0.3150652945,
-0.1469217241,
-0.1069435626,
0.1184314787,
-0.1953202337,
-0.3516010642,
-0.3146096468,
-0.1680051237,
-0.0494519807,
0.0460559949,
-0.3830378056,
0.4569521546,
-0.272195071,
-0.0630904585,
-0.3262608945,
-0.2513567805,
0.1131652221,
0.1139891446,
-0.1059659123,
-0.0303756967,
0.1228048578,
-0.3447494209,
0.3104196787,
0.1006174311,
-0.2456196249,
-0.393854022,
-0.1283269078,
0.0296658594,
0.0064874482,
-0.1237213388,
-0.4142180383,
-0.1321744174,
-0.2968364656,
-0.1388780773,
-0.160074681,
0.082571812,
-0.0098762056,
0.0524274819,
-0.2149509937,
-0.0770476609,
-0.2246501744,
-0.4897662401,
-0.2640126944,
0.1400340497,
-0.1651923507,
-0.204718411,
0.0574869178,
-0.261810869,
0.3163836896,
0.5731630325,
-0.6966409087,
-0.2867434323,
-0.2065727264,
0.0124836862,
-0.112608254,
0.0962691009,
0.2511671185,
0.1443571001,
-0.0673493147,
-0.2551213801,
-0.2258040458,
0.0104147354,
0.0837559998,
-0.0674224645,
-0.02257354,
0.27725631,
0.1668531001,
0.3151034713,
0.0968262628,
-0.036492683,
0.4151695669,
0.1892160177,
0.2373826951,
-0.1164035127,
-0.1288239211,
-0.0117460825,
-0.2716666162,
-0.0015882597,
-0.1896205246,
-0.0007311165,
-0.4575285912,
-0.2012013495,
-0.0363283083,
-0.4277953804,
-0.2997666299,
-0.0247070976,
-0.2209668159,
0.4131220877,
0.2821499109,
0.1058767885,
-0.3912023604,
-0.1796614975,
0.0432210863,
-0.0462905541,
0.6341548562,
0.0466210507,
-0.2643529475,
0.2647792101,
-0.1362600327,
0.3150092065,
0.2374100834,
0.2857639194,
0.2279465348,
0.1149718463,
0.1107122153,
0.1053241417,
0.6578534245,
-0.3484830558,
0.1891744733,
0.0074449107,
-0.3276085258,
-0.1667203754,
-0.0195338409,
0.1432492137,
0.4767276347,
-0.0092611052,
0.2149568051,
-0.0917414576,
0.0661905333,
-0.1424326003,
0.0277394336,
-0.1420565695,
-0.2631871402,
-0.0799010396,
-0.2206416279,
-0.3387677968,
0.0193607137,
-0.1306836009,
-0.2819462717,
0.0949814022,
-0.1546617299,
-0.0695067123,
0.2158500403,
-0.4394509792,
0.0077937189,
0.283836931,
-0.1617752314,
0.2971737385,
0.2559217215,
-0.2889594734,
0.0530633107,
0.5479388833,
-0.1014570296,
-0.116166234,
0.0836282447,
-0.0507328846,
-0.1113159582,
0.1236488223,
-0.0869657472,
0.0023952613,
0.1612758934,
0.070987463,
-0.3147363365,
0.0742731467,
0.1261950731,
0.1790335923,
-0.1964243352,
-0.6380593181,
0.1307888925,
0.0899862647,
-0.1003186554,
0.4859215617,
-0.4771525264,
-0.1532415897,
0.4665314853,
0.0845877975,
0.6797029376,
-0.3502425849,
0.0672098771,
0.0148413088,
-0.1361782551,
0.359856993,
0.0305554438,
0.2707557678,
-0.3870010674,
0.0569255836,
-0.0775779039,
-0.2284029424,
-0.050329186,
0.2015576363,
-0.1420084089,
0.3741326928,
0.2480002046,
0.2316887677,
0.1324166805,
-0.0494320877,
-0.2070031613,
-0.2468094379,
0.1877889037,
0.1067590788,
-0.0889651552,
0.2767064273,
-0.150550127,
0.0439402275,
0.0059184302,
-0.2285580188,
-0.0903603882,
0.0716737062,
-0.5004435778,
0.4374222755,
-0.2599570155,
-0.0208628178,
-0.1622359604,
0.3512479961,
-0.1853672713,
-0.0212582331,
0.0726990998,
0.2844637632,
0.1805647016,
0.2291978151,
0.23948358,
-0.0786806047,
0.2588625252,
0.1685050875,
-0.1607977897,
-0.1767392904,
-0.1192167848,
-0.2401973903,
-0.0571181588,
0.4174095392,
0.3503101468,
-0.0488440096,
-0.0948682576,
-0.1246383265,
-0.2349690944,
-0.1722321659,
0.0663244724,
0.270301193,
0.1054407433,
0.3770662546,
-0.1186317727,
-0.2462321371,
-0.0688209757,
0.5489092469,
0.2104665041,
-0.3482519686,
0.3372831643,
-0.0509499907,
-0.2350309491,
-0.1438682228,
-0.3529117703,
-0.3611236215,
-0.6210967302,
0.1753809005,
-0.2309589833,
0.1110181361,
0.0235602576,
-0.2193684429,
-0.1090781763,
-0.0461436808,
-0.0715853274,
-0.5186216235,
-0.2823275328,
-0.1100598127,
-0.3005130887,
-0.0183311962,
0.1857329011,
-0.0769488439,
0.0264810938,
0.1901181936,
-0.2648633718,
0.2768932283,
-0.1553762704,
0.2661966383,
0.159917146,
0.1028938815,
0.206473425,
-0.167306453,
0.0289105233,
0.3245439827,
-0.3369905353,
-0.146547839,
-0.0276215747,
0.143626079,
-0.0051826145,
-0.1927832812,
0.0239662826,
-0.106362395,
0.147849381,
-0.3252394497,
0.07902693,
0.2136470675,
-0.1414022893,
0.0804111063,
0.0243630055,
0.0363760442,
-0.057833679,
0.1580345929,
-0.4155874252,
0.1187523752,
-0.0620007627,
0.2741931975,
0.0628045946,
-0.0002785298,
0.051025521,
-0.1632766575,
0.0927711502,
0.0713367015,
0.6600543261,
-0.347987026,
0.0027486221,
0.0112348003,
0.278452009,
-0.1077802926,
-0.1231283769,
-0.2470199615,
0.1261348873,
0.2323844135,
-0.1874023676,
-0.0191925932,
0.7703559399,
0.2057472914,
0.0693611205,
0.199567765,
0.2047460079,
-0.1248484179,
-0.0572978221,
0.2450294793,
0.60144943,
-0.2946958244,
0.1795215309,
-0.0075890557,
0.1442109942,
0.2574104369,
0.0834329799,
0.2852137983,
0.0244955178,
0.1977985054,
0.3353343904,
0.3759309947,
0.1017617136,
0.241771698,
-0.2541458607,
-0.8483524919,
0.2164356261,
0.3106331527,
-0.1778481901,
0.4403851628,
-0.0676979199,
0.0749841258,
0.2499135435,
0.0449571349,
-0.1353445351,
0.242729485,
-0.2596841156,
0.0428155586,
0.2712404132,
0.0356542282,
-0.0783858374,
0.1409746408,
0.2365379483,
0.082175687,
0.6426134109,
0.0948067829,
-0.1667307764,
-0.1545536071,
-0.4155267179,
0.1070074737,
0.2578572631,
-0.2934649289,
0.1062314063,
0.1161265075,
-0.0054523055,
-0.1437711567,
0.3571884334,
0.2887170911,
0.271777302,
-0.0625136793,
0.1972270608,
0.2948037684,
0.0311456565,
-0.3145175874,
0.2707582116,
-0.15952079,
-0.1426607966,
0.0210763384,
0.1060887501,
-0.1494475454,
0.0748377666,
0.0864399374,
0.0049862894,
0.1242635027,
-0.1414439678,
0.0684139207,
-0.0673801154,
-0.0910431594,
0.0917214975,
-0.1926459521,
-0.258702755,
0.3583815396,
-0.2122402191,
0.2089779526,
-0.1731163114,
0.0572088063,
-0.0682728887,
0.101255402,
0.709826529,
0.2089060545,
-0.4419158399,
-0.1438095123,
-0.5076892376,
0.173256591,
-0.1433376074,
-0.0774962902,
-0.0194902048,
0.2461490333,
0.0585136525,
0.0115943933,
0.3134946227,
-0.1543738693,
0.3851774633,
0.3418079019,
-0.1670239568,
-0.5232175589,
0.0274095144,
-0.1497652233,
0.0336037278,
-0.582088232,
0.1985745877,
-0.1861384362,
0.199498415,
-0.2060323358,
-0.1180067286,
0.2805027366,
-0.0356002562,
0.6197189689,
0.3314342499,
0.0975739881,
-0.1519415975,
-0.1209619641,
-0.1317192912,
-0.1717382073,
0.0067226458,
-0.1713290513,
0.1314556003,
0.4526280463,
-0.4137362242,
-0.1275530607,
-0.3686807454,
0.1819134206,
0.0390190706,
-0.0563945211,
-0.2189394832,
0.0700622723,
-0.1064072177,
0.092699945,
-0.0827449113,
0.4726964533,
-0.0456637964,
0.3628140986,
-0.3272989392,
-0.359916985,
0.3638532758,
-0.4733114243,
-0.1474683583,
0.0376652963,
0.2643287182,
-0.0564982034,
-0.0417726859,
-0.3175781965,
0.0808687136,
0.3987441063,
-0.0212089494,
-0.2077235729,
0.121618174,
0.1442992389,
0.2304625064,
0.0622662418,
0.2198325545,
0.0009786998,
-0.2669609189,
0.2790629864,
-0.107957311
] |
https://github.com/huggingface/datasets/issues/4199 | Cache miss during reload for datasets using image fetch utilities through map | Thanks @mariosasko. That does fix the issue. In general, I think these image downloading utilities since they are being used by a lot of image dataset should be provided as a part of `datasets` library right to keep the logic consistent and READMEs smaller? If they already exists, that is also great, please point me to those. I saw that `http_get` does exist. | ## Describe the bug
It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch.
## Steps to reproduce the bug
Using the example provided in `red_caps` dataset.
```python
from concurrent.futures import ThreadPoolExecutor
from functools import partial
import io
import urllib
import PIL.Image
import datasets
from datasets import load_dataset
from datasets.utils.file_utils import get_datasets_user_agent
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
def fetch_images(batch, num_threads, timeout=None, retries=0):
fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries)
with ThreadPoolExecutor(max_workers=num_threads) as executor:
batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"]))
return batch
def process_image_urls(batch):
processed_batch_image_urls = []
for image_url in batch["image_url"]:
processed_example_image_urls = []
image_url_splits = re.findall(r"http\S+", image_url)
for image_url_split in image_url_splits:
if "imgur" in image_url_split and "," in image_url_split:
for image_url_part in image_url_split.split(","):
if not image_url_part:
continue
image_url_part = image_url_part.strip()
root, ext = os.path.splitext(image_url_part)
if not root.startswith("http"):
root = "http://i.imgur.com/" + root
root = root.split("#")[0]
if not ext:
ext = ".jpg"
ext = re.split(r"[?%]", ext)[0]
image_url_part = root + ext
processed_example_image_urls.append(image_url_part)
else:
processed_example_image_urls.append(image_url_split)
processed_batch_image_urls.append(processed_example_image_urls)
batch["image_url"] = processed_batch_image_urls
return batch
dset = load_dataset("red_caps", "jellyfish")
dset = dset.map(process_image_urls, batched=True, num_proc=4)
features = dset["train"].features.copy()
features["image"] = datasets.Sequence(datasets.Image())
num_threads = 5
dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads})
```
Run this in an interpretor or as a script twice and see that the cache is missed the second time.
## Expected results
At reload there should not be any cache miss
## Actual results
Every time script is run, cache is missed and dataset is built from scratch.
## Environment info
- `datasets` version: 2.1.1.dev0
- Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 63 | Cache miss during reload for datasets using image fetch utilities through map
## Describe the bug
It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch.
## Steps to reproduce the bug
Using the example provided in `red_caps` dataset.
```python
from concurrent.futures import ThreadPoolExecutor
from functools import partial
import io
import urllib
import PIL.Image
import datasets
from datasets import load_dataset
from datasets.utils.file_utils import get_datasets_user_agent
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
def fetch_images(batch, num_threads, timeout=None, retries=0):
fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries)
with ThreadPoolExecutor(max_workers=num_threads) as executor:
batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"]))
return batch
def process_image_urls(batch):
processed_batch_image_urls = []
for image_url in batch["image_url"]:
processed_example_image_urls = []
image_url_splits = re.findall(r"http\S+", image_url)
for image_url_split in image_url_splits:
if "imgur" in image_url_split and "," in image_url_split:
for image_url_part in image_url_split.split(","):
if not image_url_part:
continue
image_url_part = image_url_part.strip()
root, ext = os.path.splitext(image_url_part)
if not root.startswith("http"):
root = "http://i.imgur.com/" + root
root = root.split("#")[0]
if not ext:
ext = ".jpg"
ext = re.split(r"[?%]", ext)[0]
image_url_part = root + ext
processed_example_image_urls.append(image_url_part)
else:
processed_example_image_urls.append(image_url_split)
processed_batch_image_urls.append(processed_example_image_urls)
batch["image_url"] = processed_batch_image_urls
return batch
dset = load_dataset("red_caps", "jellyfish")
dset = dset.map(process_image_urls, batched=True, num_proc=4)
features = dset["train"].features.copy()
features["image"] = datasets.Sequence(datasets.Image())
num_threads = 5
dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads})
```
Run this in an interpretor or as a script twice and see that the cache is missed the second time.
## Expected results
At reload there should not be any cache miss
## Actual results
Every time script is run, cache is missed and dataset is built from scratch.
## Environment info
- `datasets` version: 2.1.1.dev0
- Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
Thanks @mariosasko. That does fix the issue. In general, I think these image downloading utilities since they are being used by a lot of image dataset should be provided as a part of `datasets` library right to keep the logic consistent and READMEs smaller? If they already exists, that is also great, please point me to those. I saw that `http_get` does exist. | [
-0.5388091803,
-0.1422931403,
-0.0625115633,
0.2576912344,
0.0660191029,
0.0496222414,
0.1246499345,
-0.0102835521,
0.485123843,
0.1197426617,
-0.0498226732,
0.4438686967,
0.3680506647,
-0.1765505075,
-0.1030043662,
0.1202055439,
-0.026852401,
0.1637635529,
-0.182844162,
-0.1608161926,
-0.3092357814,
0.2084266245,
-0.3623568118,
-0.2980819046,
-0.1996029466,
-0.002970034,
-0.1684425622,
0.1212333366,
0.0278945509,
-0.4024114907,
0.3238579333,
0.2566543818,
0.1043135598,
0.4048788249,
-0.0001153614,
-0.1344270706,
0.2720872462,
-0.1250962764,
-0.0104723759,
-0.1111982837,
-0.3086093068,
-0.2532835901,
0.0939372182,
-0.41549474,
0.183552295,
0.2916425169,
0.2345446497,
-0.3937248588,
0.3496821225,
-0.0460568331,
0.2011282444,
0.2351736724,
-0.2515093684,
0.0579689778,
0.0873999521,
-0.0321977735,
0.0910172537,
0.1644153446,
0.2773283422,
-0.1365718991,
-0.3102950156,
0.5134250522,
-0.2853367627,
0.1822087467,
-0.1019851416,
0.0265386999,
0.1252616644,
-0.284686029,
0.1300564855,
-0.1656835675,
0.4854113162,
-0.0093907062,
-0.3884161711,
-0.1936206818,
-0.4249210358,
-0.0665058196,
0.2354646772,
0.1045282781,
0.0796734691,
0.0526351556,
-0.5150630474,
-0.0848908126,
0.2990432978,
0.124495551,
0.0300329495,
0.0745155066,
-0.0674472898,
0.2134025097,
-0.1621467024,
0.3482897282,
0.2535981238,
-0.2572987676,
-0.1036177799,
0.2846553922,
-0.3261966705,
0.1461802423,
0.1050088331,
0.044101648,
-0.0688124076,
-0.0260064378,
0.2277157307,
0.2027707994,
-0.0483475663,
0.3575034142,
0.1354943961,
0.0130448146,
0.000536635,
0.3917050362,
0.1755884439,
0.1935785562,
-0.3123553991,
-0.1041727588,
0.1865369081,
-0.0884165615,
0.437083751,
0.1764671952,
0.1004640236,
-0.0423454531,
0.0854886994,
-0.0690078661,
-0.2282300591,
-0.1856983751,
-0.1153735444,
0.1347233951,
-0.208197087,
0.3548333645,
0.2388383597,
-0.1030220017,
-0.3011070192,
-0.0902156755,
-0.2704845071,
-0.2335180491,
-0.1836479455,
0.2267375588,
0.0495838039,
-0.1077264026,
0.4084827602,
0.0599790439,
-0.1803714633,
-0.3364020884,
0.3869014084,
-0.2137597352,
0.1654432565,
0.149417311,
0.0661338121,
0.1256655008,
0.1458885074,
0.0677927732,
0.0067073395,
0.257625401,
-0.4860207438,
-0.0417557396,
0.2522518039,
0.1979472339,
-0.1309498549,
0.0947628319,
-0.4320312738,
-0.0127232252,
0.4820628166,
0.0493946522,
0.1812435538,
-0.096342206,
-0.4463657439,
-0.3406182528,
0.0138426377,
0.6789832115,
-0.1456809342,
-0.2210318595,
-0.1514838487,
0.0053251013,
0.2093817294,
0.0245165527,
-0.1725440323,
0.2053842843,
-0.531262219,
0.0888827145,
0.1487523615,
-0.4117074013,
-0.6002056003,
0.2565573454,
-0.0377983786,
0.1759770066,
-0.014795078,
0.3248441815,
0.5295739174,
-0.1184804067,
-0.1029442996,
0.3025984466,
-0.1564244777,
0.3233766556,
-0.2764518857,
-0.0618634447,
-0.0152892731,
0.0315515399,
0.2279400527,
0.2726482749,
0.2719177604,
-0.3450585902,
0.2618890405,
0.0761191472,
0.2465054095,
0.161281839,
-0.1975605041,
0.0788265318,
0.1901315898,
0.1125501245,
-0.4655463994,
0.3248233497,
-0.1516055763,
-0.2360995561,
0.0042195371,
-0.0556685664,
-0.1670176834,
-0.1653723568,
-0.2964023054,
-0.2672642767,
0.0817730278,
0.2501354516,
0.0097638294,
0.1664817631,
0.0945904106,
0.5646682978,
0.042722825,
0.1042374894,
-0.0657067597,
0.2966791689,
0.0525671579,
0.0823343024,
-0.2240431458,
-0.307980895,
0.3217377067,
-0.1376318187,
-0.2331338674,
0.4564603269,
0.2607676685,
0.434278667,
-0.0156821776,
-0.1712564677,
0.1057755277,
-0.1061887369,
0.1070088521,
-0.0188050549,
0.2216449976,
-0.1693441421,
0.2526167035,
0.0920696706,
0.1393102556,
-0.0563991554,
-0.1667529494,
0.0912119523,
0.1280708611,
-0.2222955227,
0.1571408063,
-0.2190762907,
0.0728902221,
-0.0228249505,
0.2142825127,
0.0412870832,
0.1429038942,
0.0527337231,
0.4853819609,
0.1600433588,
0.0842917413,
0.0593692437,
-0.0827849507,
-0.0675246418,
0.1141426936,
0.2985502779,
0.3663423955,
0.0538765416,
0.0419447459,
0.0094403252,
0.2007361501,
-0.0321514122,
0.0962180346,
0.1585372835,
0.2225070596,
-0.011047096,
0.1856264323,
0.0784408301,
-0.3671365082,
-0.1038582996,
0.3462377489,
0.0160885062,
0.0394550301,
-0.0185712632,
-0.0950139314,
-0.0509846993,
0.1159840599,
0.305686146,
0.0210302547,
-0.4192983508,
-0.1622755975,
0.4059544504,
0.0834540799,
0.3150652945,
-0.1469217241,
-0.1069435626,
0.1184314787,
-0.1953202337,
-0.3516010642,
-0.3146096468,
-0.1680051237,
-0.0494519807,
0.0460559949,
-0.3830378056,
0.4569521546,
-0.272195071,
-0.0630904585,
-0.3262608945,
-0.2513567805,
0.1131652221,
0.1139891446,
-0.1059659123,
-0.0303756967,
0.1228048578,
-0.3447494209,
0.3104196787,
0.1006174311,
-0.2456196249,
-0.393854022,
-0.1283269078,
0.0296658594,
0.0064874482,
-0.1237213388,
-0.4142180383,
-0.1321744174,
-0.2968364656,
-0.1388780773,
-0.160074681,
0.082571812,
-0.0098762056,
0.0524274819,
-0.2149509937,
-0.0770476609,
-0.2246501744,
-0.4897662401,
-0.2640126944,
0.1400340497,
-0.1651923507,
-0.204718411,
0.0574869178,
-0.261810869,
0.3163836896,
0.5731630325,
-0.6966409087,
-0.2867434323,
-0.2065727264,
0.0124836862,
-0.112608254,
0.0962691009,
0.2511671185,
0.1443571001,
-0.0673493147,
-0.2551213801,
-0.2258040458,
0.0104147354,
0.0837559998,
-0.0674224645,
-0.02257354,
0.27725631,
0.1668531001,
0.3151034713,
0.0968262628,
-0.036492683,
0.4151695669,
0.1892160177,
0.2373826951,
-0.1164035127,
-0.1288239211,
-0.0117460825,
-0.2716666162,
-0.0015882597,
-0.1896205246,
-0.0007311165,
-0.4575285912,
-0.2012013495,
-0.0363283083,
-0.4277953804,
-0.2997666299,
-0.0247070976,
-0.2209668159,
0.4131220877,
0.2821499109,
0.1058767885,
-0.3912023604,
-0.1796614975,
0.0432210863,
-0.0462905541,
0.6341548562,
0.0466210507,
-0.2643529475,
0.2647792101,
-0.1362600327,
0.3150092065,
0.2374100834,
0.2857639194,
0.2279465348,
0.1149718463,
0.1107122153,
0.1053241417,
0.6578534245,
-0.3484830558,
0.1891744733,
0.0074449107,
-0.3276085258,
-0.1667203754,
-0.0195338409,
0.1432492137,
0.4767276347,
-0.0092611052,
0.2149568051,
-0.0917414576,
0.0661905333,
-0.1424326003,
0.0277394336,
-0.1420565695,
-0.2631871402,
-0.0799010396,
-0.2206416279,
-0.3387677968,
0.0193607137,
-0.1306836009,
-0.2819462717,
0.0949814022,
-0.1546617299,
-0.0695067123,
0.2158500403,
-0.4394509792,
0.0077937189,
0.283836931,
-0.1617752314,
0.2971737385,
0.2559217215,
-0.2889594734,
0.0530633107,
0.5479388833,
-0.1014570296,
-0.116166234,
0.0836282447,
-0.0507328846,
-0.1113159582,
0.1236488223,
-0.0869657472,
0.0023952613,
0.1612758934,
0.070987463,
-0.3147363365,
0.0742731467,
0.1261950731,
0.1790335923,
-0.1964243352,
-0.6380593181,
0.1307888925,
0.0899862647,
-0.1003186554,
0.4859215617,
-0.4771525264,
-0.1532415897,
0.4665314853,
0.0845877975,
0.6797029376,
-0.3502425849,
0.0672098771,
0.0148413088,
-0.1361782551,
0.359856993,
0.0305554438,
0.2707557678,
-0.3870010674,
0.0569255836,
-0.0775779039,
-0.2284029424,
-0.050329186,
0.2015576363,
-0.1420084089,
0.3741326928,
0.2480002046,
0.2316887677,
0.1324166805,
-0.0494320877,
-0.2070031613,
-0.2468094379,
0.1877889037,
0.1067590788,
-0.0889651552,
0.2767064273,
-0.150550127,
0.0439402275,
0.0059184302,
-0.2285580188,
-0.0903603882,
0.0716737062,
-0.5004435778,
0.4374222755,
-0.2599570155,
-0.0208628178,
-0.1622359604,
0.3512479961,
-0.1853672713,
-0.0212582331,
0.0726990998,
0.2844637632,
0.1805647016,
0.2291978151,
0.23948358,
-0.0786806047,
0.2588625252,
0.1685050875,
-0.1607977897,
-0.1767392904,
-0.1192167848,
-0.2401973903,
-0.0571181588,
0.4174095392,
0.3503101468,
-0.0488440096,
-0.0948682576,
-0.1246383265,
-0.2349690944,
-0.1722321659,
0.0663244724,
0.270301193,
0.1054407433,
0.3770662546,
-0.1186317727,
-0.2462321371,
-0.0688209757,
0.5489092469,
0.2104665041,
-0.3482519686,
0.3372831643,
-0.0509499907,
-0.2350309491,
-0.1438682228,
-0.3529117703,
-0.3611236215,
-0.6210967302,
0.1753809005,
-0.2309589833,
0.1110181361,
0.0235602576,
-0.2193684429,
-0.1090781763,
-0.0461436808,
-0.0715853274,
-0.5186216235,
-0.2823275328,
-0.1100598127,
-0.3005130887,
-0.0183311962,
0.1857329011,
-0.0769488439,
0.0264810938,
0.1901181936,
-0.2648633718,
0.2768932283,
-0.1553762704,
0.2661966383,
0.159917146,
0.1028938815,
0.206473425,
-0.167306453,
0.0289105233,
0.3245439827,
-0.3369905353,
-0.146547839,
-0.0276215747,
0.143626079,
-0.0051826145,
-0.1927832812,
0.0239662826,
-0.106362395,
0.147849381,
-0.3252394497,
0.07902693,
0.2136470675,
-0.1414022893,
0.0804111063,
0.0243630055,
0.0363760442,
-0.057833679,
0.1580345929,
-0.4155874252,
0.1187523752,
-0.0620007627,
0.2741931975,
0.0628045946,
-0.0002785298,
0.051025521,
-0.1632766575,
0.0927711502,
0.0713367015,
0.6600543261,
-0.347987026,
0.0027486221,
0.0112348003,
0.278452009,
-0.1077802926,
-0.1231283769,
-0.2470199615,
0.1261348873,
0.2323844135,
-0.1874023676,
-0.0191925932,
0.7703559399,
0.2057472914,
0.0693611205,
0.199567765,
0.2047460079,
-0.1248484179,
-0.0572978221,
0.2450294793,
0.60144943,
-0.2946958244,
0.1795215309,
-0.0075890557,
0.1442109942,
0.2574104369,
0.0834329799,
0.2852137983,
0.0244955178,
0.1977985054,
0.3353343904,
0.3759309947,
0.1017617136,
0.241771698,
-0.2541458607,
-0.8483524919,
0.2164356261,
0.3106331527,
-0.1778481901,
0.4403851628,
-0.0676979199,
0.0749841258,
0.2499135435,
0.0449571349,
-0.1353445351,
0.242729485,
-0.2596841156,
0.0428155586,
0.2712404132,
0.0356542282,
-0.0783858374,
0.1409746408,
0.2365379483,
0.082175687,
0.6426134109,
0.0948067829,
-0.1667307764,
-0.1545536071,
-0.4155267179,
0.1070074737,
0.2578572631,
-0.2934649289,
0.1062314063,
0.1161265075,
-0.0054523055,
-0.1437711567,
0.3571884334,
0.2887170911,
0.271777302,
-0.0625136793,
0.1972270608,
0.2948037684,
0.0311456565,
-0.3145175874,
0.2707582116,
-0.15952079,
-0.1426607966,
0.0210763384,
0.1060887501,
-0.1494475454,
0.0748377666,
0.0864399374,
0.0049862894,
0.1242635027,
-0.1414439678,
0.0684139207,
-0.0673801154,
-0.0910431594,
0.0917214975,
-0.1926459521,
-0.258702755,
0.3583815396,
-0.2122402191,
0.2089779526,
-0.1731163114,
0.0572088063,
-0.0682728887,
0.101255402,
0.709826529,
0.2089060545,
-0.4419158399,
-0.1438095123,
-0.5076892376,
0.173256591,
-0.1433376074,
-0.0774962902,
-0.0194902048,
0.2461490333,
0.0585136525,
0.0115943933,
0.3134946227,
-0.1543738693,
0.3851774633,
0.3418079019,
-0.1670239568,
-0.5232175589,
0.0274095144,
-0.1497652233,
0.0336037278,
-0.582088232,
0.1985745877,
-0.1861384362,
0.199498415,
-0.2060323358,
-0.1180067286,
0.2805027366,
-0.0356002562,
0.6197189689,
0.3314342499,
0.0975739881,
-0.1519415975,
-0.1209619641,
-0.1317192912,
-0.1717382073,
0.0067226458,
-0.1713290513,
0.1314556003,
0.4526280463,
-0.4137362242,
-0.1275530607,
-0.3686807454,
0.1819134206,
0.0390190706,
-0.0563945211,
-0.2189394832,
0.0700622723,
-0.1064072177,
0.092699945,
-0.0827449113,
0.4726964533,
-0.0456637964,
0.3628140986,
-0.3272989392,
-0.359916985,
0.3638532758,
-0.4733114243,
-0.1474683583,
0.0376652963,
0.2643287182,
-0.0564982034,
-0.0417726859,
-0.3175781965,
0.0808687136,
0.3987441063,
-0.0212089494,
-0.2077235729,
0.121618174,
0.1442992389,
0.2304625064,
0.0622662418,
0.2198325545,
0.0009786998,
-0.2669609189,
0.2790629864,
-0.107957311
] |
https://github.com/huggingface/datasets/issues/4199 | Cache miss during reload for datasets using image fetch utilities through map | You can find my rationale (and a proposed solution) for why these utilities are not a part of `datasets` here: https://github.com/huggingface/datasets/pull/4100#issuecomment-1097994003. | ## Describe the bug
It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch.
## Steps to reproduce the bug
Using the example provided in `red_caps` dataset.
```python
from concurrent.futures import ThreadPoolExecutor
from functools import partial
import io
import urllib
import PIL.Image
import datasets
from datasets import load_dataset
from datasets.utils.file_utils import get_datasets_user_agent
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
def fetch_images(batch, num_threads, timeout=None, retries=0):
fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries)
with ThreadPoolExecutor(max_workers=num_threads) as executor:
batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"]))
return batch
def process_image_urls(batch):
processed_batch_image_urls = []
for image_url in batch["image_url"]:
processed_example_image_urls = []
image_url_splits = re.findall(r"http\S+", image_url)
for image_url_split in image_url_splits:
if "imgur" in image_url_split and "," in image_url_split:
for image_url_part in image_url_split.split(","):
if not image_url_part:
continue
image_url_part = image_url_part.strip()
root, ext = os.path.splitext(image_url_part)
if not root.startswith("http"):
root = "http://i.imgur.com/" + root
root = root.split("#")[0]
if not ext:
ext = ".jpg"
ext = re.split(r"[?%]", ext)[0]
image_url_part = root + ext
processed_example_image_urls.append(image_url_part)
else:
processed_example_image_urls.append(image_url_split)
processed_batch_image_urls.append(processed_example_image_urls)
batch["image_url"] = processed_batch_image_urls
return batch
dset = load_dataset("red_caps", "jellyfish")
dset = dset.map(process_image_urls, batched=True, num_proc=4)
features = dset["train"].features.copy()
features["image"] = datasets.Sequence(datasets.Image())
num_threads = 5
dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads})
```
Run this in an interpretor or as a script twice and see that the cache is missed the second time.
## Expected results
At reload there should not be any cache miss
## Actual results
Every time script is run, cache is missed and dataset is built from scratch.
## Environment info
- `datasets` version: 2.1.1.dev0
- Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 21 | Cache miss during reload for datasets using image fetch utilities through map
## Describe the bug
It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch.
## Steps to reproduce the bug
Using the example provided in `red_caps` dataset.
```python
from concurrent.futures import ThreadPoolExecutor
from functools import partial
import io
import urllib
import PIL.Image
import datasets
from datasets import load_dataset
from datasets.utils.file_utils import get_datasets_user_agent
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
def fetch_images(batch, num_threads, timeout=None, retries=0):
fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries)
with ThreadPoolExecutor(max_workers=num_threads) as executor:
batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"]))
return batch
def process_image_urls(batch):
processed_batch_image_urls = []
for image_url in batch["image_url"]:
processed_example_image_urls = []
image_url_splits = re.findall(r"http\S+", image_url)
for image_url_split in image_url_splits:
if "imgur" in image_url_split and "," in image_url_split:
for image_url_part in image_url_split.split(","):
if not image_url_part:
continue
image_url_part = image_url_part.strip()
root, ext = os.path.splitext(image_url_part)
if not root.startswith("http"):
root = "http://i.imgur.com/" + root
root = root.split("#")[0]
if not ext:
ext = ".jpg"
ext = re.split(r"[?%]", ext)[0]
image_url_part = root + ext
processed_example_image_urls.append(image_url_part)
else:
processed_example_image_urls.append(image_url_split)
processed_batch_image_urls.append(processed_example_image_urls)
batch["image_url"] = processed_batch_image_urls
return batch
dset = load_dataset("red_caps", "jellyfish")
dset = dset.map(process_image_urls, batched=True, num_proc=4)
features = dset["train"].features.copy()
features["image"] = datasets.Sequence(datasets.Image())
num_threads = 5
dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads})
```
Run this in an interpretor or as a script twice and see that the cache is missed the second time.
## Expected results
At reload there should not be any cache miss
## Actual results
Every time script is run, cache is missed and dataset is built from scratch.
## Environment info
- `datasets` version: 2.1.1.dev0
- Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
You can find my rationale (and a proposed solution) for why these utilities are not a part of `datasets` here: https://github.com/huggingface/datasets/pull/4100#issuecomment-1097994003. | [
-0.5388091803,
-0.1422931403,
-0.0625115633,
0.2576912344,
0.0660191029,
0.0496222414,
0.1246499345,
-0.0102835521,
0.485123843,
0.1197426617,
-0.0498226732,
0.4438686967,
0.3680506647,
-0.1765505075,
-0.1030043662,
0.1202055439,
-0.026852401,
0.1637635529,
-0.182844162,
-0.1608161926,
-0.3092357814,
0.2084266245,
-0.3623568118,
-0.2980819046,
-0.1996029466,
-0.002970034,
-0.1684425622,
0.1212333366,
0.0278945509,
-0.4024114907,
0.3238579333,
0.2566543818,
0.1043135598,
0.4048788249,
-0.0001153614,
-0.1344270706,
0.2720872462,
-0.1250962764,
-0.0104723759,
-0.1111982837,
-0.3086093068,
-0.2532835901,
0.0939372182,
-0.41549474,
0.183552295,
0.2916425169,
0.2345446497,
-0.3937248588,
0.3496821225,
-0.0460568331,
0.2011282444,
0.2351736724,
-0.2515093684,
0.0579689778,
0.0873999521,
-0.0321977735,
0.0910172537,
0.1644153446,
0.2773283422,
-0.1365718991,
-0.3102950156,
0.5134250522,
-0.2853367627,
0.1822087467,
-0.1019851416,
0.0265386999,
0.1252616644,
-0.284686029,
0.1300564855,
-0.1656835675,
0.4854113162,
-0.0093907062,
-0.3884161711,
-0.1936206818,
-0.4249210358,
-0.0665058196,
0.2354646772,
0.1045282781,
0.0796734691,
0.0526351556,
-0.5150630474,
-0.0848908126,
0.2990432978,
0.124495551,
0.0300329495,
0.0745155066,
-0.0674472898,
0.2134025097,
-0.1621467024,
0.3482897282,
0.2535981238,
-0.2572987676,
-0.1036177799,
0.2846553922,
-0.3261966705,
0.1461802423,
0.1050088331,
0.044101648,
-0.0688124076,
-0.0260064378,
0.2277157307,
0.2027707994,
-0.0483475663,
0.3575034142,
0.1354943961,
0.0130448146,
0.000536635,
0.3917050362,
0.1755884439,
0.1935785562,
-0.3123553991,
-0.1041727588,
0.1865369081,
-0.0884165615,
0.437083751,
0.1764671952,
0.1004640236,
-0.0423454531,
0.0854886994,
-0.0690078661,
-0.2282300591,
-0.1856983751,
-0.1153735444,
0.1347233951,
-0.208197087,
0.3548333645,
0.2388383597,
-0.1030220017,
-0.3011070192,
-0.0902156755,
-0.2704845071,
-0.2335180491,
-0.1836479455,
0.2267375588,
0.0495838039,
-0.1077264026,
0.4084827602,
0.0599790439,
-0.1803714633,
-0.3364020884,
0.3869014084,
-0.2137597352,
0.1654432565,
0.149417311,
0.0661338121,
0.1256655008,
0.1458885074,
0.0677927732,
0.0067073395,
0.257625401,
-0.4860207438,
-0.0417557396,
0.2522518039,
0.1979472339,
-0.1309498549,
0.0947628319,
-0.4320312738,
-0.0127232252,
0.4820628166,
0.0493946522,
0.1812435538,
-0.096342206,
-0.4463657439,
-0.3406182528,
0.0138426377,
0.6789832115,
-0.1456809342,
-0.2210318595,
-0.1514838487,
0.0053251013,
0.2093817294,
0.0245165527,
-0.1725440323,
0.2053842843,
-0.531262219,
0.0888827145,
0.1487523615,
-0.4117074013,
-0.6002056003,
0.2565573454,
-0.0377983786,
0.1759770066,
-0.014795078,
0.3248441815,
0.5295739174,
-0.1184804067,
-0.1029442996,
0.3025984466,
-0.1564244777,
0.3233766556,
-0.2764518857,
-0.0618634447,
-0.0152892731,
0.0315515399,
0.2279400527,
0.2726482749,
0.2719177604,
-0.3450585902,
0.2618890405,
0.0761191472,
0.2465054095,
0.161281839,
-0.1975605041,
0.0788265318,
0.1901315898,
0.1125501245,
-0.4655463994,
0.3248233497,
-0.1516055763,
-0.2360995561,
0.0042195371,
-0.0556685664,
-0.1670176834,
-0.1653723568,
-0.2964023054,
-0.2672642767,
0.0817730278,
0.2501354516,
0.0097638294,
0.1664817631,
0.0945904106,
0.5646682978,
0.042722825,
0.1042374894,
-0.0657067597,
0.2966791689,
0.0525671579,
0.0823343024,
-0.2240431458,
-0.307980895,
0.3217377067,
-0.1376318187,
-0.2331338674,
0.4564603269,
0.2607676685,
0.434278667,
-0.0156821776,
-0.1712564677,
0.1057755277,
-0.1061887369,
0.1070088521,
-0.0188050549,
0.2216449976,
-0.1693441421,
0.2526167035,
0.0920696706,
0.1393102556,
-0.0563991554,
-0.1667529494,
0.0912119523,
0.1280708611,
-0.2222955227,
0.1571408063,
-0.2190762907,
0.0728902221,
-0.0228249505,
0.2142825127,
0.0412870832,
0.1429038942,
0.0527337231,
0.4853819609,
0.1600433588,
0.0842917413,
0.0593692437,
-0.0827849507,
-0.0675246418,
0.1141426936,
0.2985502779,
0.3663423955,
0.0538765416,
0.0419447459,
0.0094403252,
0.2007361501,
-0.0321514122,
0.0962180346,
0.1585372835,
0.2225070596,
-0.011047096,
0.1856264323,
0.0784408301,
-0.3671365082,
-0.1038582996,
0.3462377489,
0.0160885062,
0.0394550301,
-0.0185712632,
-0.0950139314,
-0.0509846993,
0.1159840599,
0.305686146,
0.0210302547,
-0.4192983508,
-0.1622755975,
0.4059544504,
0.0834540799,
0.3150652945,
-0.1469217241,
-0.1069435626,
0.1184314787,
-0.1953202337,
-0.3516010642,
-0.3146096468,
-0.1680051237,
-0.0494519807,
0.0460559949,
-0.3830378056,
0.4569521546,
-0.272195071,
-0.0630904585,
-0.3262608945,
-0.2513567805,
0.1131652221,
0.1139891446,
-0.1059659123,
-0.0303756967,
0.1228048578,
-0.3447494209,
0.3104196787,
0.1006174311,
-0.2456196249,
-0.393854022,
-0.1283269078,
0.0296658594,
0.0064874482,
-0.1237213388,
-0.4142180383,
-0.1321744174,
-0.2968364656,
-0.1388780773,
-0.160074681,
0.082571812,
-0.0098762056,
0.0524274819,
-0.2149509937,
-0.0770476609,
-0.2246501744,
-0.4897662401,
-0.2640126944,
0.1400340497,
-0.1651923507,
-0.204718411,
0.0574869178,
-0.261810869,
0.3163836896,
0.5731630325,
-0.6966409087,
-0.2867434323,
-0.2065727264,
0.0124836862,
-0.112608254,
0.0962691009,
0.2511671185,
0.1443571001,
-0.0673493147,
-0.2551213801,
-0.2258040458,
0.0104147354,
0.0837559998,
-0.0674224645,
-0.02257354,
0.27725631,
0.1668531001,
0.3151034713,
0.0968262628,
-0.036492683,
0.4151695669,
0.1892160177,
0.2373826951,
-0.1164035127,
-0.1288239211,
-0.0117460825,
-0.2716666162,
-0.0015882597,
-0.1896205246,
-0.0007311165,
-0.4575285912,
-0.2012013495,
-0.0363283083,
-0.4277953804,
-0.2997666299,
-0.0247070976,
-0.2209668159,
0.4131220877,
0.2821499109,
0.1058767885,
-0.3912023604,
-0.1796614975,
0.0432210863,
-0.0462905541,
0.6341548562,
0.0466210507,
-0.2643529475,
0.2647792101,
-0.1362600327,
0.3150092065,
0.2374100834,
0.2857639194,
0.2279465348,
0.1149718463,
0.1107122153,
0.1053241417,
0.6578534245,
-0.3484830558,
0.1891744733,
0.0074449107,
-0.3276085258,
-0.1667203754,
-0.0195338409,
0.1432492137,
0.4767276347,
-0.0092611052,
0.2149568051,
-0.0917414576,
0.0661905333,
-0.1424326003,
0.0277394336,
-0.1420565695,
-0.2631871402,
-0.0799010396,
-0.2206416279,
-0.3387677968,
0.0193607137,
-0.1306836009,
-0.2819462717,
0.0949814022,
-0.1546617299,
-0.0695067123,
0.2158500403,
-0.4394509792,
0.0077937189,
0.283836931,
-0.1617752314,
0.2971737385,
0.2559217215,
-0.2889594734,
0.0530633107,
0.5479388833,
-0.1014570296,
-0.116166234,
0.0836282447,
-0.0507328846,
-0.1113159582,
0.1236488223,
-0.0869657472,
0.0023952613,
0.1612758934,
0.070987463,
-0.3147363365,
0.0742731467,
0.1261950731,
0.1790335923,
-0.1964243352,
-0.6380593181,
0.1307888925,
0.0899862647,
-0.1003186554,
0.4859215617,
-0.4771525264,
-0.1532415897,
0.4665314853,
0.0845877975,
0.6797029376,
-0.3502425849,
0.0672098771,
0.0148413088,
-0.1361782551,
0.359856993,
0.0305554438,
0.2707557678,
-0.3870010674,
0.0569255836,
-0.0775779039,
-0.2284029424,
-0.050329186,
0.2015576363,
-0.1420084089,
0.3741326928,
0.2480002046,
0.2316887677,
0.1324166805,
-0.0494320877,
-0.2070031613,
-0.2468094379,
0.1877889037,
0.1067590788,
-0.0889651552,
0.2767064273,
-0.150550127,
0.0439402275,
0.0059184302,
-0.2285580188,
-0.0903603882,
0.0716737062,
-0.5004435778,
0.4374222755,
-0.2599570155,
-0.0208628178,
-0.1622359604,
0.3512479961,
-0.1853672713,
-0.0212582331,
0.0726990998,
0.2844637632,
0.1805647016,
0.2291978151,
0.23948358,
-0.0786806047,
0.2588625252,
0.1685050875,
-0.1607977897,
-0.1767392904,
-0.1192167848,
-0.2401973903,
-0.0571181588,
0.4174095392,
0.3503101468,
-0.0488440096,
-0.0948682576,
-0.1246383265,
-0.2349690944,
-0.1722321659,
0.0663244724,
0.270301193,
0.1054407433,
0.3770662546,
-0.1186317727,
-0.2462321371,
-0.0688209757,
0.5489092469,
0.2104665041,
-0.3482519686,
0.3372831643,
-0.0509499907,
-0.2350309491,
-0.1438682228,
-0.3529117703,
-0.3611236215,
-0.6210967302,
0.1753809005,
-0.2309589833,
0.1110181361,
0.0235602576,
-0.2193684429,
-0.1090781763,
-0.0461436808,
-0.0715853274,
-0.5186216235,
-0.2823275328,
-0.1100598127,
-0.3005130887,
-0.0183311962,
0.1857329011,
-0.0769488439,
0.0264810938,
0.1901181936,
-0.2648633718,
0.2768932283,
-0.1553762704,
0.2661966383,
0.159917146,
0.1028938815,
0.206473425,
-0.167306453,
0.0289105233,
0.3245439827,
-0.3369905353,
-0.146547839,
-0.0276215747,
0.143626079,
-0.0051826145,
-0.1927832812,
0.0239662826,
-0.106362395,
0.147849381,
-0.3252394497,
0.07902693,
0.2136470675,
-0.1414022893,
0.0804111063,
0.0243630055,
0.0363760442,
-0.057833679,
0.1580345929,
-0.4155874252,
0.1187523752,
-0.0620007627,
0.2741931975,
0.0628045946,
-0.0002785298,
0.051025521,
-0.1632766575,
0.0927711502,
0.0713367015,
0.6600543261,
-0.347987026,
0.0027486221,
0.0112348003,
0.278452009,
-0.1077802926,
-0.1231283769,
-0.2470199615,
0.1261348873,
0.2323844135,
-0.1874023676,
-0.0191925932,
0.7703559399,
0.2057472914,
0.0693611205,
0.199567765,
0.2047460079,
-0.1248484179,
-0.0572978221,
0.2450294793,
0.60144943,
-0.2946958244,
0.1795215309,
-0.0075890557,
0.1442109942,
0.2574104369,
0.0834329799,
0.2852137983,
0.0244955178,
0.1977985054,
0.3353343904,
0.3759309947,
0.1017617136,
0.241771698,
-0.2541458607,
-0.8483524919,
0.2164356261,
0.3106331527,
-0.1778481901,
0.4403851628,
-0.0676979199,
0.0749841258,
0.2499135435,
0.0449571349,
-0.1353445351,
0.242729485,
-0.2596841156,
0.0428155586,
0.2712404132,
0.0356542282,
-0.0783858374,
0.1409746408,
0.2365379483,
0.082175687,
0.6426134109,
0.0948067829,
-0.1667307764,
-0.1545536071,
-0.4155267179,
0.1070074737,
0.2578572631,
-0.2934649289,
0.1062314063,
0.1161265075,
-0.0054523055,
-0.1437711567,
0.3571884334,
0.2887170911,
0.271777302,
-0.0625136793,
0.1972270608,
0.2948037684,
0.0311456565,
-0.3145175874,
0.2707582116,
-0.15952079,
-0.1426607966,
0.0210763384,
0.1060887501,
-0.1494475454,
0.0748377666,
0.0864399374,
0.0049862894,
0.1242635027,
-0.1414439678,
0.0684139207,
-0.0673801154,
-0.0910431594,
0.0917214975,
-0.1926459521,
-0.258702755,
0.3583815396,
-0.2122402191,
0.2089779526,
-0.1731163114,
0.0572088063,
-0.0682728887,
0.101255402,
0.709826529,
0.2089060545,
-0.4419158399,
-0.1438095123,
-0.5076892376,
0.173256591,
-0.1433376074,
-0.0774962902,
-0.0194902048,
0.2461490333,
0.0585136525,
0.0115943933,
0.3134946227,
-0.1543738693,
0.3851774633,
0.3418079019,
-0.1670239568,
-0.5232175589,
0.0274095144,
-0.1497652233,
0.0336037278,
-0.582088232,
0.1985745877,
-0.1861384362,
0.199498415,
-0.2060323358,
-0.1180067286,
0.2805027366,
-0.0356002562,
0.6197189689,
0.3314342499,
0.0975739881,
-0.1519415975,
-0.1209619641,
-0.1317192912,
-0.1717382073,
0.0067226458,
-0.1713290513,
0.1314556003,
0.4526280463,
-0.4137362242,
-0.1275530607,
-0.3686807454,
0.1819134206,
0.0390190706,
-0.0563945211,
-0.2189394832,
0.0700622723,
-0.1064072177,
0.092699945,
-0.0827449113,
0.4726964533,
-0.0456637964,
0.3628140986,
-0.3272989392,
-0.359916985,
0.3638532758,
-0.4733114243,
-0.1474683583,
0.0376652963,
0.2643287182,
-0.0564982034,
-0.0417726859,
-0.3175781965,
0.0808687136,
0.3987441063,
-0.0212089494,
-0.2077235729,
0.121618174,
0.1442992389,
0.2304625064,
0.0622662418,
0.2198325545,
0.0009786998,
-0.2669609189,
0.2790629864,
-0.107957311
] |
https://github.com/huggingface/datasets/issues/4199 | Cache miss during reload for datasets using image fetch utilities through map | Makes sense. But, I think as the number of image datasets as grow, more people are copying pasting original code from docs to work as it is while we make fixes to them later. I think we do need a central place for these to avoid that confusion as well as more easier access to image datasets. Should we restart that discussion, possible on slack? | ## Describe the bug
It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch.
## Steps to reproduce the bug
Using the example provided in `red_caps` dataset.
```python
from concurrent.futures import ThreadPoolExecutor
from functools import partial
import io
import urllib
import PIL.Image
import datasets
from datasets import load_dataset
from datasets.utils.file_utils import get_datasets_user_agent
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
def fetch_images(batch, num_threads, timeout=None, retries=0):
fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries)
with ThreadPoolExecutor(max_workers=num_threads) as executor:
batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"]))
return batch
def process_image_urls(batch):
processed_batch_image_urls = []
for image_url in batch["image_url"]:
processed_example_image_urls = []
image_url_splits = re.findall(r"http\S+", image_url)
for image_url_split in image_url_splits:
if "imgur" in image_url_split and "," in image_url_split:
for image_url_part in image_url_split.split(","):
if not image_url_part:
continue
image_url_part = image_url_part.strip()
root, ext = os.path.splitext(image_url_part)
if not root.startswith("http"):
root = "http://i.imgur.com/" + root
root = root.split("#")[0]
if not ext:
ext = ".jpg"
ext = re.split(r"[?%]", ext)[0]
image_url_part = root + ext
processed_example_image_urls.append(image_url_part)
else:
processed_example_image_urls.append(image_url_split)
processed_batch_image_urls.append(processed_example_image_urls)
batch["image_url"] = processed_batch_image_urls
return batch
dset = load_dataset("red_caps", "jellyfish")
dset = dset.map(process_image_urls, batched=True, num_proc=4)
features = dset["train"].features.copy()
features["image"] = datasets.Sequence(datasets.Image())
num_threads = 5
dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads})
```
Run this in an interpretor or as a script twice and see that the cache is missed the second time.
## Expected results
At reload there should not be any cache miss
## Actual results
Every time script is run, cache is missed and dataset is built from scratch.
## Environment info
- `datasets` version: 2.1.1.dev0
- Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 65 | Cache miss during reload for datasets using image fetch utilities through map
## Describe the bug
It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch.
## Steps to reproduce the bug
Using the example provided in `red_caps` dataset.
```python
from concurrent.futures import ThreadPoolExecutor
from functools import partial
import io
import urllib
import PIL.Image
import datasets
from datasets import load_dataset
from datasets.utils.file_utils import get_datasets_user_agent
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
def fetch_images(batch, num_threads, timeout=None, retries=0):
fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries)
with ThreadPoolExecutor(max_workers=num_threads) as executor:
batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"]))
return batch
def process_image_urls(batch):
processed_batch_image_urls = []
for image_url in batch["image_url"]:
processed_example_image_urls = []
image_url_splits = re.findall(r"http\S+", image_url)
for image_url_split in image_url_splits:
if "imgur" in image_url_split and "," in image_url_split:
for image_url_part in image_url_split.split(","):
if not image_url_part:
continue
image_url_part = image_url_part.strip()
root, ext = os.path.splitext(image_url_part)
if not root.startswith("http"):
root = "http://i.imgur.com/" + root
root = root.split("#")[0]
if not ext:
ext = ".jpg"
ext = re.split(r"[?%]", ext)[0]
image_url_part = root + ext
processed_example_image_urls.append(image_url_part)
else:
processed_example_image_urls.append(image_url_split)
processed_batch_image_urls.append(processed_example_image_urls)
batch["image_url"] = processed_batch_image_urls
return batch
dset = load_dataset("red_caps", "jellyfish")
dset = dset.map(process_image_urls, batched=True, num_proc=4)
features = dset["train"].features.copy()
features["image"] = datasets.Sequence(datasets.Image())
num_threads = 5
dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads})
```
Run this in an interpretor or as a script twice and see that the cache is missed the second time.
## Expected results
At reload there should not be any cache miss
## Actual results
Every time script is run, cache is missed and dataset is built from scratch.
## Environment info
- `datasets` version: 2.1.1.dev0
- Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
Makes sense. But, I think as the number of image datasets as grow, more people are copying pasting original code from docs to work as it is while we make fixes to them later. I think we do need a central place for these to avoid that confusion as well as more easier access to image datasets. Should we restart that discussion, possible on slack? | [
-0.5388091803,
-0.1422931403,
-0.0625115633,
0.2576912344,
0.0660191029,
0.0496222414,
0.1246499345,
-0.0102835521,
0.485123843,
0.1197426617,
-0.0498226732,
0.4438686967,
0.3680506647,
-0.1765505075,
-0.1030043662,
0.1202055439,
-0.026852401,
0.1637635529,
-0.182844162,
-0.1608161926,
-0.3092357814,
0.2084266245,
-0.3623568118,
-0.2980819046,
-0.1996029466,
-0.002970034,
-0.1684425622,
0.1212333366,
0.0278945509,
-0.4024114907,
0.3238579333,
0.2566543818,
0.1043135598,
0.4048788249,
-0.0001153614,
-0.1344270706,
0.2720872462,
-0.1250962764,
-0.0104723759,
-0.1111982837,
-0.3086093068,
-0.2532835901,
0.0939372182,
-0.41549474,
0.183552295,
0.2916425169,
0.2345446497,
-0.3937248588,
0.3496821225,
-0.0460568331,
0.2011282444,
0.2351736724,
-0.2515093684,
0.0579689778,
0.0873999521,
-0.0321977735,
0.0910172537,
0.1644153446,
0.2773283422,
-0.1365718991,
-0.3102950156,
0.5134250522,
-0.2853367627,
0.1822087467,
-0.1019851416,
0.0265386999,
0.1252616644,
-0.284686029,
0.1300564855,
-0.1656835675,
0.4854113162,
-0.0093907062,
-0.3884161711,
-0.1936206818,
-0.4249210358,
-0.0665058196,
0.2354646772,
0.1045282781,
0.0796734691,
0.0526351556,
-0.5150630474,
-0.0848908126,
0.2990432978,
0.124495551,
0.0300329495,
0.0745155066,
-0.0674472898,
0.2134025097,
-0.1621467024,
0.3482897282,
0.2535981238,
-0.2572987676,
-0.1036177799,
0.2846553922,
-0.3261966705,
0.1461802423,
0.1050088331,
0.044101648,
-0.0688124076,
-0.0260064378,
0.2277157307,
0.2027707994,
-0.0483475663,
0.3575034142,
0.1354943961,
0.0130448146,
0.000536635,
0.3917050362,
0.1755884439,
0.1935785562,
-0.3123553991,
-0.1041727588,
0.1865369081,
-0.0884165615,
0.437083751,
0.1764671952,
0.1004640236,
-0.0423454531,
0.0854886994,
-0.0690078661,
-0.2282300591,
-0.1856983751,
-0.1153735444,
0.1347233951,
-0.208197087,
0.3548333645,
0.2388383597,
-0.1030220017,
-0.3011070192,
-0.0902156755,
-0.2704845071,
-0.2335180491,
-0.1836479455,
0.2267375588,
0.0495838039,
-0.1077264026,
0.4084827602,
0.0599790439,
-0.1803714633,
-0.3364020884,
0.3869014084,
-0.2137597352,
0.1654432565,
0.149417311,
0.0661338121,
0.1256655008,
0.1458885074,
0.0677927732,
0.0067073395,
0.257625401,
-0.4860207438,
-0.0417557396,
0.2522518039,
0.1979472339,
-0.1309498549,
0.0947628319,
-0.4320312738,
-0.0127232252,
0.4820628166,
0.0493946522,
0.1812435538,
-0.096342206,
-0.4463657439,
-0.3406182528,
0.0138426377,
0.6789832115,
-0.1456809342,
-0.2210318595,
-0.1514838487,
0.0053251013,
0.2093817294,
0.0245165527,
-0.1725440323,
0.2053842843,
-0.531262219,
0.0888827145,
0.1487523615,
-0.4117074013,
-0.6002056003,
0.2565573454,
-0.0377983786,
0.1759770066,
-0.014795078,
0.3248441815,
0.5295739174,
-0.1184804067,
-0.1029442996,
0.3025984466,
-0.1564244777,
0.3233766556,
-0.2764518857,
-0.0618634447,
-0.0152892731,
0.0315515399,
0.2279400527,
0.2726482749,
0.2719177604,
-0.3450585902,
0.2618890405,
0.0761191472,
0.2465054095,
0.161281839,
-0.1975605041,
0.0788265318,
0.1901315898,
0.1125501245,
-0.4655463994,
0.3248233497,
-0.1516055763,
-0.2360995561,
0.0042195371,
-0.0556685664,
-0.1670176834,
-0.1653723568,
-0.2964023054,
-0.2672642767,
0.0817730278,
0.2501354516,
0.0097638294,
0.1664817631,
0.0945904106,
0.5646682978,
0.042722825,
0.1042374894,
-0.0657067597,
0.2966791689,
0.0525671579,
0.0823343024,
-0.2240431458,
-0.307980895,
0.3217377067,
-0.1376318187,
-0.2331338674,
0.4564603269,
0.2607676685,
0.434278667,
-0.0156821776,
-0.1712564677,
0.1057755277,
-0.1061887369,
0.1070088521,
-0.0188050549,
0.2216449976,
-0.1693441421,
0.2526167035,
0.0920696706,
0.1393102556,
-0.0563991554,
-0.1667529494,
0.0912119523,
0.1280708611,
-0.2222955227,
0.1571408063,
-0.2190762907,
0.0728902221,
-0.0228249505,
0.2142825127,
0.0412870832,
0.1429038942,
0.0527337231,
0.4853819609,
0.1600433588,
0.0842917413,
0.0593692437,
-0.0827849507,
-0.0675246418,
0.1141426936,
0.2985502779,
0.3663423955,
0.0538765416,
0.0419447459,
0.0094403252,
0.2007361501,
-0.0321514122,
0.0962180346,
0.1585372835,
0.2225070596,
-0.011047096,
0.1856264323,
0.0784408301,
-0.3671365082,
-0.1038582996,
0.3462377489,
0.0160885062,
0.0394550301,
-0.0185712632,
-0.0950139314,
-0.0509846993,
0.1159840599,
0.305686146,
0.0210302547,
-0.4192983508,
-0.1622755975,
0.4059544504,
0.0834540799,
0.3150652945,
-0.1469217241,
-0.1069435626,
0.1184314787,
-0.1953202337,
-0.3516010642,
-0.3146096468,
-0.1680051237,
-0.0494519807,
0.0460559949,
-0.3830378056,
0.4569521546,
-0.272195071,
-0.0630904585,
-0.3262608945,
-0.2513567805,
0.1131652221,
0.1139891446,
-0.1059659123,
-0.0303756967,
0.1228048578,
-0.3447494209,
0.3104196787,
0.1006174311,
-0.2456196249,
-0.393854022,
-0.1283269078,
0.0296658594,
0.0064874482,
-0.1237213388,
-0.4142180383,
-0.1321744174,
-0.2968364656,
-0.1388780773,
-0.160074681,
0.082571812,
-0.0098762056,
0.0524274819,
-0.2149509937,
-0.0770476609,
-0.2246501744,
-0.4897662401,
-0.2640126944,
0.1400340497,
-0.1651923507,
-0.204718411,
0.0574869178,
-0.261810869,
0.3163836896,
0.5731630325,
-0.6966409087,
-0.2867434323,
-0.2065727264,
0.0124836862,
-0.112608254,
0.0962691009,
0.2511671185,
0.1443571001,
-0.0673493147,
-0.2551213801,
-0.2258040458,
0.0104147354,
0.0837559998,
-0.0674224645,
-0.02257354,
0.27725631,
0.1668531001,
0.3151034713,
0.0968262628,
-0.036492683,
0.4151695669,
0.1892160177,
0.2373826951,
-0.1164035127,
-0.1288239211,
-0.0117460825,
-0.2716666162,
-0.0015882597,
-0.1896205246,
-0.0007311165,
-0.4575285912,
-0.2012013495,
-0.0363283083,
-0.4277953804,
-0.2997666299,
-0.0247070976,
-0.2209668159,
0.4131220877,
0.2821499109,
0.1058767885,
-0.3912023604,
-0.1796614975,
0.0432210863,
-0.0462905541,
0.6341548562,
0.0466210507,
-0.2643529475,
0.2647792101,
-0.1362600327,
0.3150092065,
0.2374100834,
0.2857639194,
0.2279465348,
0.1149718463,
0.1107122153,
0.1053241417,
0.6578534245,
-0.3484830558,
0.1891744733,
0.0074449107,
-0.3276085258,
-0.1667203754,
-0.0195338409,
0.1432492137,
0.4767276347,
-0.0092611052,
0.2149568051,
-0.0917414576,
0.0661905333,
-0.1424326003,
0.0277394336,
-0.1420565695,
-0.2631871402,
-0.0799010396,
-0.2206416279,
-0.3387677968,
0.0193607137,
-0.1306836009,
-0.2819462717,
0.0949814022,
-0.1546617299,
-0.0695067123,
0.2158500403,
-0.4394509792,
0.0077937189,
0.283836931,
-0.1617752314,
0.2971737385,
0.2559217215,
-0.2889594734,
0.0530633107,
0.5479388833,
-0.1014570296,
-0.116166234,
0.0836282447,
-0.0507328846,
-0.1113159582,
0.1236488223,
-0.0869657472,
0.0023952613,
0.1612758934,
0.070987463,
-0.3147363365,
0.0742731467,
0.1261950731,
0.1790335923,
-0.1964243352,
-0.6380593181,
0.1307888925,
0.0899862647,
-0.1003186554,
0.4859215617,
-0.4771525264,
-0.1532415897,
0.4665314853,
0.0845877975,
0.6797029376,
-0.3502425849,
0.0672098771,
0.0148413088,
-0.1361782551,
0.359856993,
0.0305554438,
0.2707557678,
-0.3870010674,
0.0569255836,
-0.0775779039,
-0.2284029424,
-0.050329186,
0.2015576363,
-0.1420084089,
0.3741326928,
0.2480002046,
0.2316887677,
0.1324166805,
-0.0494320877,
-0.2070031613,
-0.2468094379,
0.1877889037,
0.1067590788,
-0.0889651552,
0.2767064273,
-0.150550127,
0.0439402275,
0.0059184302,
-0.2285580188,
-0.0903603882,
0.0716737062,
-0.5004435778,
0.4374222755,
-0.2599570155,
-0.0208628178,
-0.1622359604,
0.3512479961,
-0.1853672713,
-0.0212582331,
0.0726990998,
0.2844637632,
0.1805647016,
0.2291978151,
0.23948358,
-0.0786806047,
0.2588625252,
0.1685050875,
-0.1607977897,
-0.1767392904,
-0.1192167848,
-0.2401973903,
-0.0571181588,
0.4174095392,
0.3503101468,
-0.0488440096,
-0.0948682576,
-0.1246383265,
-0.2349690944,
-0.1722321659,
0.0663244724,
0.270301193,
0.1054407433,
0.3770662546,
-0.1186317727,
-0.2462321371,
-0.0688209757,
0.5489092469,
0.2104665041,
-0.3482519686,
0.3372831643,
-0.0509499907,
-0.2350309491,
-0.1438682228,
-0.3529117703,
-0.3611236215,
-0.6210967302,
0.1753809005,
-0.2309589833,
0.1110181361,
0.0235602576,
-0.2193684429,
-0.1090781763,
-0.0461436808,
-0.0715853274,
-0.5186216235,
-0.2823275328,
-0.1100598127,
-0.3005130887,
-0.0183311962,
0.1857329011,
-0.0769488439,
0.0264810938,
0.1901181936,
-0.2648633718,
0.2768932283,
-0.1553762704,
0.2661966383,
0.159917146,
0.1028938815,
0.206473425,
-0.167306453,
0.0289105233,
0.3245439827,
-0.3369905353,
-0.146547839,
-0.0276215747,
0.143626079,
-0.0051826145,
-0.1927832812,
0.0239662826,
-0.106362395,
0.147849381,
-0.3252394497,
0.07902693,
0.2136470675,
-0.1414022893,
0.0804111063,
0.0243630055,
0.0363760442,
-0.057833679,
0.1580345929,
-0.4155874252,
0.1187523752,
-0.0620007627,
0.2741931975,
0.0628045946,
-0.0002785298,
0.051025521,
-0.1632766575,
0.0927711502,
0.0713367015,
0.6600543261,
-0.347987026,
0.0027486221,
0.0112348003,
0.278452009,
-0.1077802926,
-0.1231283769,
-0.2470199615,
0.1261348873,
0.2323844135,
-0.1874023676,
-0.0191925932,
0.7703559399,
0.2057472914,
0.0693611205,
0.199567765,
0.2047460079,
-0.1248484179,
-0.0572978221,
0.2450294793,
0.60144943,
-0.2946958244,
0.1795215309,
-0.0075890557,
0.1442109942,
0.2574104369,
0.0834329799,
0.2852137983,
0.0244955178,
0.1977985054,
0.3353343904,
0.3759309947,
0.1017617136,
0.241771698,
-0.2541458607,
-0.8483524919,
0.2164356261,
0.3106331527,
-0.1778481901,
0.4403851628,
-0.0676979199,
0.0749841258,
0.2499135435,
0.0449571349,
-0.1353445351,
0.242729485,
-0.2596841156,
0.0428155586,
0.2712404132,
0.0356542282,
-0.0783858374,
0.1409746408,
0.2365379483,
0.082175687,
0.6426134109,
0.0948067829,
-0.1667307764,
-0.1545536071,
-0.4155267179,
0.1070074737,
0.2578572631,
-0.2934649289,
0.1062314063,
0.1161265075,
-0.0054523055,
-0.1437711567,
0.3571884334,
0.2887170911,
0.271777302,
-0.0625136793,
0.1972270608,
0.2948037684,
0.0311456565,
-0.3145175874,
0.2707582116,
-0.15952079,
-0.1426607966,
0.0210763384,
0.1060887501,
-0.1494475454,
0.0748377666,
0.0864399374,
0.0049862894,
0.1242635027,
-0.1414439678,
0.0684139207,
-0.0673801154,
-0.0910431594,
0.0917214975,
-0.1926459521,
-0.258702755,
0.3583815396,
-0.2122402191,
0.2089779526,
-0.1731163114,
0.0572088063,
-0.0682728887,
0.101255402,
0.709826529,
0.2089060545,
-0.4419158399,
-0.1438095123,
-0.5076892376,
0.173256591,
-0.1433376074,
-0.0774962902,
-0.0194902048,
0.2461490333,
0.0585136525,
0.0115943933,
0.3134946227,
-0.1543738693,
0.3851774633,
0.3418079019,
-0.1670239568,
-0.5232175589,
0.0274095144,
-0.1497652233,
0.0336037278,
-0.582088232,
0.1985745877,
-0.1861384362,
0.199498415,
-0.2060323358,
-0.1180067286,
0.2805027366,
-0.0356002562,
0.6197189689,
0.3314342499,
0.0975739881,
-0.1519415975,
-0.1209619641,
-0.1317192912,
-0.1717382073,
0.0067226458,
-0.1713290513,
0.1314556003,
0.4526280463,
-0.4137362242,
-0.1275530607,
-0.3686807454,
0.1819134206,
0.0390190706,
-0.0563945211,
-0.2189394832,
0.0700622723,
-0.1064072177,
0.092699945,
-0.0827449113,
0.4726964533,
-0.0456637964,
0.3628140986,
-0.3272989392,
-0.359916985,
0.3638532758,
-0.4733114243,
-0.1474683583,
0.0376652963,
0.2643287182,
-0.0564982034,
-0.0417726859,
-0.3175781965,
0.0808687136,
0.3987441063,
-0.0212089494,
-0.2077235729,
0.121618174,
0.1442992389,
0.2304625064,
0.0622662418,
0.2198325545,
0.0009786998,
-0.2669609189,
0.2790629864,
-0.107957311
] |
https://github.com/huggingface/datasets/issues/4192 | load_dataset can't load local dataset,Unable to find ... | Hi! :)
I believe that should work unless `dataset_infos.json` isn't actually a dataset. For Hugging Face datasets, there is usually a file named `dataset_infos.json` which contains metadata about the dataset (eg. the dataset citation, license, description, etc). Can you double-check that `dataset_infos.json` isn't just metadata please? |
Traceback (most recent call last):
File "/home/gs603/ahf/pretrained/model.py", line 48, in <module>
dataset = load_dataset("json",data_files="dataset/dataset_infos.json")
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset
**config_kwargs,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder
data_files=data_files,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory
download_mode=download_mode,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module
data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote
if not isinstance(patterns_for_key, DataFilesList)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote
data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls
for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions):
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally
raise FileNotFoundError(error_msg)
FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained
![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png)
![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png)
the code is in the model.py,why I can't use the load_dataset function to load my local dataset? | 46 | load_dataset can't load local dataset,Unable to find ...
Traceback (most recent call last):
File "/home/gs603/ahf/pretrained/model.py", line 48, in <module>
dataset = load_dataset("json",data_files="dataset/dataset_infos.json")
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset
**config_kwargs,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder
data_files=data_files,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory
download_mode=download_mode,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module
data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote
if not isinstance(patterns_for_key, DataFilesList)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote
data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls
for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions):
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally
raise FileNotFoundError(error_msg)
FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained
![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png)
![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png)
the code is in the model.py,why I can't use the load_dataset function to load my local dataset?
Hi! :)
I believe that should work unless `dataset_infos.json` isn't actually a dataset. For Hugging Face datasets, there is usually a file named `dataset_infos.json` which contains metadata about the dataset (eg. the dataset citation, license, description, etc). Can you double-check that `dataset_infos.json` isn't just metadata please? | [
-0.1754118204,
0.0892572477,
-0.1238672063,
0.1317975819,
0.3044528067,
0.059617009,
0.4345732033,
0.4015061557,
0.2219167948,
0.1424890012,
0.0361839049,
0.2007317394,
-0.0687808245,
0.2588721216,
0.009246666,
0.0185479969,
-0.1723025739,
0.2523019314,
0.073971346,
-0.174201563,
-0.2112789005,
0.2418318838,
0.027848335,
0.1173942015,
-0.1005750522,
0.1655556113,
0.1800219864,
0.34490484,
-0.4049100578,
-0.6614171863,
0.3138435185,
0.031158343,
0.1568319798,
0.320530951,
-0.000102549,
0.3772659004,
0.4112351239,
-0.0276079569,
-0.3889510036,
-0.2801309228,
-0.2690984309,
0.0282838475,
0.3179875314,
0.0204779971,
-0.3608302176,
-0.200593695,
-0.2220412344,
-0.4490517974,
0.2750030756,
0.4882833958,
0.3081128895,
0.231098175,
-0.0721584931,
-0.3881165981,
0.0198184066,
0.1770248264,
-0.0292751789,
0.52886343,
0.0377270728,
-0.2341789007,
0.1035137251,
0.1581628323,
0.0793953538,
0.0284675527,
0.0882125422,
-0.2072859257,
0.2171772122,
-0.219175607,
0.3798283935,
0.0547224432,
0.6315194368,
-0.1158464029,
-0.3141863644,
-0.0123116495,
0.1138486266,
-0.10287451,
0.2046783864,
0.045829732,
-0.1688976884,
0.20919168,
-0.1342585236,
-0.0759269372,
0.0124438927,
0.0808492154,
-0.3217006922,
0.1773283929,
-0.0329154991,
-0.0146151148,
-0.0769229606,
-0.011735403,
0.1764854342,
0.0757224038,
-0.1125755385,
0.2010473609,
-0.2126441151,
0.1046849042,
0.3609265983,
-0.0973182619,
-0.0318349637,
0.1725890934,
0.0162646063,
0.1104866564,
0.1687097102,
0.0838386789,
0.0914805755,
-0.0313818268,
0.1883701831,
0.0356862992,
0.0580233075,
0.0661233515,
-0.1720782965,
-0.0205512177,
-0.3940504193,
-0.344581604,
-0.0585467927,
-0.045496542,
0.2909518778,
-0.2911599874,
-0.2396679521,
0.0144002661,
-0.1853239685,
-0.0991476402,
0.1993577629,
0.497577101,
0.2355811894,
0.2227940261,
0.015198024,
0.2722530365,
-0.1118466258,
0.0649854615,
-0.3315716088,
-0.0373593159,
-0.2781309485,
0.0203541741,
0.1411546022,
-0.274751842,
0.4822354615,
-0.0563929863,
-0.3924454749,
0.0767449513,
0.1544392109,
-0.0835209638,
-0.1411973089,
0.4017682076,
-0.1220227107,
0.0572021827,
0.2312975228,
0.0705862641,
-0.109166272,
-0.1873900443,
-0.0098338872,
-0.4743787944,
-0.1384027451,
0.3405170143,
0.0255440958,
-0.1104249731,
0.0181351136,
0.0177696701,
0.0170054603,
-0.0979416594,
-0.2767786682,
-0.1495965272,
-0.2446840256,
-0.1369096786,
0.3972700834,
0.5598174334,
-0.3857534528,
-0.0520898215,
-0.1845663041,
-0.3364591897,
0.0810396969,
0.0316804722,
-0.4409795702,
0.4958360195,
-0.2494395971,
0.0287686419,
0.2702871263,
-0.3281018138,
-0.3054532111,
0.3795754611,
-0.1337427795,
-0.1947809011,
0.0663449764,
-0.3099856675,
-0.2311969995,
0.1847683638,
0.2118827403,
0.3373568058,
0.0375584662,
0.0252314974,
-0.2175353169,
-0.1350450367,
-0.0474074781,
0.4344930053,
0.2072371542,
0.1415724456,
0.3283971548,
-0.1808503568,
0.1772648096,
-0.0405489057,
-0.1632169187,
0.2780995667,
0.1951759756,
0.026435731,
-0.0409876853,
0.0993244424,
-0.2837718129,
0.2191359103,
-0.3463275433,
0.1268694997,
-0.315925926,
0.1371752769,
-0.4949304461,
0.0684916303,
-0.3787873089,
-0.0567807667,
0.2569245398,
0.3768236935,
0.1142341569,
0.1722537875,
-0.2782524526,
0.267976135,
0.1009132937,
-0.0514630154,
-0.1752588004,
0.3477750123,
-0.0727635771,
-0.1697760373,
0.1653921753,
0.0954305902,
0.1646150649,
-0.2072203755,
-0.1451621801,
0.3047004044,
0.1720846444,
0.1749238074,
0.2278972864,
-0.2666501701,
0.044275105,
-0.0181579348,
0.128488332,
-0.0186412856,
0.1925160736,
0.0529001169,
-0.1220208481,
0.22219491,
0.2891239226,
0.205655545,
0.1633911133,
0.0383985005,
0.3942523599,
-0.1134486049,
0.0190575365,
-0.1661203951,
0.0748773962,
0.3530032933,
0.3803364933,
0.230071798,
-0.2208120525,
0.1057660878,
0.4657373428,
-0.0516405776,
-0.1458438635,
-0.0250084512,
-0.2307233512,
-0.1291081607,
-0.0637749285,
0.3337620199,
0.4226687551,
0.1845540702,
-0.0389018394,
0.0031108847,
0.075289771,
-0.1089815721,
0.1407284439,
-0.1365965754,
0.3417122662,
0.3945151269,
0.0551677011,
-0.176708594,
-0.370087415,
-0.3006949425,
0.1664148867,
0.2772981822,
-0.1808462441,
0.0052814982,
-0.4011819363,
0.2139443755,
-0.0098292325,
-0.1010100618,
-0.079506427,
-0.3404192626,
-0.0157354791,
-0.0830063075,
-0.0670677871,
0.1065875143,
-0.3637861311,
0.0818713009,
0.1189363599,
-0.2313342541,
-0.0624644905,
-0.3092601597,
-0.1397186965,
0.0810677633,
0.2886584103,
0.0258772336,
0.2121613324,
-0.2166904509,
-0.1624976695,
-0.0462851487,
-0.0685267672,
0.1727992594,
0.1040331945,
0.079676263,
0.1615345925,
0.170505479,
0.0443752371,
-0.1217466816,
0.3942083716,
-0.1475079656,
-0.2194528133,
0.1478904039,
-0.0416107029,
-0.0628744364,
-0.0292963497,
-0.5031520128,
-0.5888147354,
-0.3946751356,
0.1067828238,
0.1754974276,
0.074661836,
0.1882751733,
0.2860588431,
0.2770675719,
-0.20365569,
-0.0760412812,
-0.1809357703,
-0.5880247951,
0.226789251,
-0.3660040796,
-0.2582665086,
-0.0187814292,
-0.0282587148,
0.4030710459,
-0.0448789559,
-0.2482688725,
-0.0264925528,
-0.1904010922,
0.1472155303,
-0.1371643394,
-0.1233015209,
0.2826705277,
0.1041350067,
-0.2540555596,
-0.085649237,
-0.0479377918,
0.1534429193,
0.0565056913,
-0.0014596215,
-0.0498308279,
0.4023944139,
-0.3189497292,
0.5021756291,
-0.1321512908,
-0.1537529379,
0.4545554221,
-0.0178778097,
0.2160854787,
-0.2835463881,
-0.3218407333,
-0.0065038488,
0.1784427315,
-0.0272994377,
0.120624572,
-0.0941152126,
-0.3274230063,
-0.2668359578,
-0.1913951337,
-0.2621435225,
-0.081510745,
0.0073712389,
-0.0715428218,
0.2882126272,
-0.0596990921,
0.1273894012,
-0.1062454209,
0.2316362411,
0.1236681491,
0.0970615372,
0.1014317423,
0.0560988337,
-0.4610570371,
0.0240166895,
-0.1644708961,
0.0491904132,
-0.1086943299,
0.310403496,
-0.2080439627,
-0.1626786292,
0.0483287387,
-0.0831756666,
0.2916000485,
-0.2622019649,
0.1852903366,
0.26506567,
-0.1606594622,
-0.3580448925,
-0.1581517011,
0.1581846476,
0.1291677207,
-0.1570274979,
0.3487570584,
0.0030353183,
-0.3250371516,
0.2051526457,
0.0160632674,
-0.2149486244,
-0.1627966911,
-0.2047469765,
-0.3406685591,
-0.271545738,
-0.2199999541,
-0.2075163573,
0.2224271894,
0.171810165,
-0.0770095363,
-0.1204376146,
0.006406521,
0.0069851168,
0.2544153035,
0.2376249731,
0.0223213173,
0.0758742616,
0.3095454276,
0.2924074531,
0.4549856484,
0.7814916968,
0.1486890614,
-0.2821571827,
0.1833965331,
-0.0462161973,
0.3119095564,
0.2156031281,
-0.1176732481,
-0.1417480856,
0.0239701755,
0.173891142,
-0.1707321554,
0.2706416845,
0.2103015035,
-0.3386396468,
-0.1765427887,
-0.5080039501,
0.325766027,
-0.2544552982,
0.0527136587,
-0.0178895388,
-0.0865162164,
-0.1654796004,
0.4113067091,
-0.073603943,
0.6224441528,
-0.1802383959,
-0.0845591202,
0.2444292903,
-0.1123828813,
0.0374790877,
-0.3633497953,
0.1496447325,
-0.2811683118,
0.0170419514,
-0.0047171982,
-0.1754679084,
0.1758488566,
0.1946679801,
0.07547196,
0.1809636056,
-0.1503387541,
0.0399281457,
-0.0293471664,
0.3210047781,
-0.0496207923,
-0.0716092363,
-0.2431740612,
0.2837352455,
0.025612412,
0.420132935,
-0.0506689399,
-0.2989140451,
-0.0848352388,
-0.1900107414,
-0.0289132223,
0.2473720163,
-0.3701399863,
0.2054001689,
-0.0513812974,
-0.1240992621,
-0.0059903855,
0.0868683234,
0.039465826,
0.0752517805,
-0.1895525306,
0.2213424146,
-0.1113250703,
-0.2088158876,
-0.2969558835,
0.1599836797,
0.2044896483,
-0.0950381383,
-0.4180892408,
0.0573610812,
-0.1447229534,
-0.2738863826,
-0.0220094267,
-0.0824222267,
-0.0230395421,
-0.115504615,
-0.2276082933,
-0.0359663107,
0.029947171,
-0.0961934328,
0.2217772603,
0.0404937379,
-0.1558905542,
-0.1381238252,
-0.0994066969,
-0.4210209846,
-0.1752854586,
0.573622942,
-0.0625800714,
0.0799083859,
0.6132894158,
0.1499447078,
-0.0374914035,
-0.4075959325,
-0.1245208755,
0.6449127197,
-0.2190644294,
-0.0026801566,
0.0879214406,
-0.0645787045,
0.173365429,
-0.0269282926,
0.1172017008,
-0.3126033247,
0.0572402067,
-0.4941405356,
-0.3921113014,
-0.0044977055,
-0.1438091993,
0.1750949025,
-0.0738080218,
0.2413703501,
0.1824522913,
-0.1250859946,
-0.4251793325,
0.0585387647,
-0.284137547,
0.0513308384,
0.197682634,
-0.1557044089,
0.2013684511,
-0.0879171342,
0.3622089028,
-0.197972104,
-0.2108758539,
-0.3679227829,
0.0640986338,
0.0692550912,
0.0035534301,
-0.0591170974,
0.0849361122,
-0.1391629279,
-0.0679967105,
0.0938133895,
0.0897610188,
0.1430657208,
0.0247105919,
0.1060190573,
-0.0195104666,
-0.1732519865,
0.0611342303,
-0.0031715457,
0.0006255233,
-0.0034726204,
-0.0239870753,
0.0630805343,
-0.0374078378,
-0.0510758981,
0.0685965866,
0.0205919426,
-0.101201795,
0.198286891,
0.2743832767,
-0.3543452621,
0.0418480001,
0.1751633584,
0.1706119925,
0.3076133728,
-0.2584965229,
0.1272262782,
0.2316078693,
0.3678612411,
-0.3404372036,
-0.1512429565,
-0.0328585729,
0.0197856426,
0.1607164741,
0.0491878502,
0.2741451859,
-0.0868610963,
0.0250927042,
0.0960968882,
0.3766967058,
0.0909121111,
0.0134067638,
0.4564003646,
0.0320855677,
-0.075690642,
0.0947888643,
0.3297460973,
0.221638009,
0.6467006803,
-0.107825771,
0.1845678389,
-0.2802915871,
0.1782789528,
-0.0749673396,
-0.5045813322,
0.1100018099,
0.284881115,
-0.1122776046,
-0.1272213459,
-0.0532599799,
0.1731542349,
0.0128855538,
-0.2953319252,
-0.1839646846,
0.1809837967,
-0.1377176642,
-0.1285751313,
-0.2776621878,
-0.3045413494,
-0.2806885242,
0.1713316888,
0.049760256,
0.0526851043,
0.1532447338,
0.1241677701,
-0.1252143681,
-0.1483237147,
0.061304599,
0.1337928176,
-0.1122198403,
-0.2258983105,
0.3206228614,
0.1044418737,
-0.0261640642,
-0.0014424877,
0.1664979607,
0.2778249085,
0.3523560166,
-0.1520183533,
0.10302414,
-0.0097890766,
-0.14413248,
-0.189183712,
0.0786161423,
-0.0711725503,
0.2066165656,
0.2363342196,
0.3146886826,
-0.2235383093,
0.1097252145,
-0.0013922497,
0.1672287136,
-0.0229536593,
0.3412015438,
0.1083901227,
-0.0085668555,
-0.1298818141,
0.0651229247,
-0.4786283672,
0.0415802002,
0.3302783072,
0.2957894802,
0.230159387,
-0.1829671413,
0.1435518861,
-0.0001556727,
0.4455426633,
0.1900868565,
0.1014230773,
-0.3366394043,
-0.210491091,
-0.4156793356,
-0.0496985018,
-0.1088321954,
0.0879734084,
0.1137142628,
0.0904482976,
0.2712876797,
0.0532687642,
0.1732734591,
0.201864779,
-0.035691902,
-0.0401173197,
-0.1642188281,
0.01932339,
-0.1404908299,
0.1033990756,
0.0358043164,
-0.4230645895,
0.1186300516,
-0.5297962427,
0.2520973086,
-0.1825565249,
-0.2041237801,
0.0554897226,
-0.1873265058,
0.4470168352,
-0.0805202499,
0.2546406388,
-0.0530694015,
-0.1315813363,
-0.2592814565,
-0.2901479304,
-0.0856732875,
0.2357432246,
0.0100025358,
0.3478620946,
-0.1417644769,
0.014740455,
-0.4055244923,
0.1120019555,
0.0181558188,
0.1820991188,
-0.1311501265,
0.0255847834,
0.0283785518,
0.0018717245,
0.3008186221,
0.0260019097,
-0.0225499962,
0.0366195031,
-0.2774406672,
-0.1356861442,
0.425649941,
-0.1225800291,
-0.2328281999,
0.1680173725,
0.1141591296,
0.0196197256,
0.1186424568,
-0.3386642039,
0.4681667984,
0.309430778,
-0.0921447054,
-0.1219352782,
0.2885731459,
0.2110388279,
-0.0062930272,
-0.0348697305,
-0.0948192328,
0.0155706694,
-0.06850826,
-0.3372615874,
-0.079856284
] |
https://github.com/huggingface/datasets/issues/4192 | load_dataset can't load local dataset,Unable to find ... | Hi @ahf876828330,
As @stevhliu pointed out, the proper way to load a dataset is not trying to load its metadata file.
In your case, as the dataset script is local, you should better point to your local loading script:
```python
dataset = load_dataset("dataset/opus_books.py")
```
Please, feel free to re-open this issue if the previous code snippet does not work for you. |
Traceback (most recent call last):
File "/home/gs603/ahf/pretrained/model.py", line 48, in <module>
dataset = load_dataset("json",data_files="dataset/dataset_infos.json")
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset
**config_kwargs,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder
data_files=data_files,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory
download_mode=download_mode,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module
data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote
if not isinstance(patterns_for_key, DataFilesList)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote
data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls
for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions):
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally
raise FileNotFoundError(error_msg)
FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained
![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png)
![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png)
the code is in the model.py,why I can't use the load_dataset function to load my local dataset? | 61 | load_dataset can't load local dataset,Unable to find ...
Traceback (most recent call last):
File "/home/gs603/ahf/pretrained/model.py", line 48, in <module>
dataset = load_dataset("json",data_files="dataset/dataset_infos.json")
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset
**config_kwargs,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder
data_files=data_files,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory
download_mode=download_mode,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module
data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote
if not isinstance(patterns_for_key, DataFilesList)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote
data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls
for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions):
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally
raise FileNotFoundError(error_msg)
FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained
![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png)
![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png)
the code is in the model.py,why I can't use the load_dataset function to load my local dataset?
Hi @ahf876828330,
As @stevhliu pointed out, the proper way to load a dataset is not trying to load its metadata file.
In your case, as the dataset script is local, you should better point to your local loading script:
```python
dataset = load_dataset("dataset/opus_books.py")
```
Please, feel free to re-open this issue if the previous code snippet does not work for you. | [
-0.1754118204,
0.0892572477,
-0.1238672063,
0.1317975819,
0.3044528067,
0.059617009,
0.4345732033,
0.4015061557,
0.2219167948,
0.1424890012,
0.0361839049,
0.2007317394,
-0.0687808245,
0.2588721216,
0.009246666,
0.0185479969,
-0.1723025739,
0.2523019314,
0.073971346,
-0.174201563,
-0.2112789005,
0.2418318838,
0.027848335,
0.1173942015,
-0.1005750522,
0.1655556113,
0.1800219864,
0.34490484,
-0.4049100578,
-0.6614171863,
0.3138435185,
0.031158343,
0.1568319798,
0.320530951,
-0.000102549,
0.3772659004,
0.4112351239,
-0.0276079569,
-0.3889510036,
-0.2801309228,
-0.2690984309,
0.0282838475,
0.3179875314,
0.0204779971,
-0.3608302176,
-0.200593695,
-0.2220412344,
-0.4490517974,
0.2750030756,
0.4882833958,
0.3081128895,
0.231098175,
-0.0721584931,
-0.3881165981,
0.0198184066,
0.1770248264,
-0.0292751789,
0.52886343,
0.0377270728,
-0.2341789007,
0.1035137251,
0.1581628323,
0.0793953538,
0.0284675527,
0.0882125422,
-0.2072859257,
0.2171772122,
-0.219175607,
0.3798283935,
0.0547224432,
0.6315194368,
-0.1158464029,
-0.3141863644,
-0.0123116495,
0.1138486266,
-0.10287451,
0.2046783864,
0.045829732,
-0.1688976884,
0.20919168,
-0.1342585236,
-0.0759269372,
0.0124438927,
0.0808492154,
-0.3217006922,
0.1773283929,
-0.0329154991,
-0.0146151148,
-0.0769229606,
-0.011735403,
0.1764854342,
0.0757224038,
-0.1125755385,
0.2010473609,
-0.2126441151,
0.1046849042,
0.3609265983,
-0.0973182619,
-0.0318349637,
0.1725890934,
0.0162646063,
0.1104866564,
0.1687097102,
0.0838386789,
0.0914805755,
-0.0313818268,
0.1883701831,
0.0356862992,
0.0580233075,
0.0661233515,
-0.1720782965,
-0.0205512177,
-0.3940504193,
-0.344581604,
-0.0585467927,
-0.045496542,
0.2909518778,
-0.2911599874,
-0.2396679521,
0.0144002661,
-0.1853239685,
-0.0991476402,
0.1993577629,
0.497577101,
0.2355811894,
0.2227940261,
0.015198024,
0.2722530365,
-0.1118466258,
0.0649854615,
-0.3315716088,
-0.0373593159,
-0.2781309485,
0.0203541741,
0.1411546022,
-0.274751842,
0.4822354615,
-0.0563929863,
-0.3924454749,
0.0767449513,
0.1544392109,
-0.0835209638,
-0.1411973089,
0.4017682076,
-0.1220227107,
0.0572021827,
0.2312975228,
0.0705862641,
-0.109166272,
-0.1873900443,
-0.0098338872,
-0.4743787944,
-0.1384027451,
0.3405170143,
0.0255440958,
-0.1104249731,
0.0181351136,
0.0177696701,
0.0170054603,
-0.0979416594,
-0.2767786682,
-0.1495965272,
-0.2446840256,
-0.1369096786,
0.3972700834,
0.5598174334,
-0.3857534528,
-0.0520898215,
-0.1845663041,
-0.3364591897,
0.0810396969,
0.0316804722,
-0.4409795702,
0.4958360195,
-0.2494395971,
0.0287686419,
0.2702871263,
-0.3281018138,
-0.3054532111,
0.3795754611,
-0.1337427795,
-0.1947809011,
0.0663449764,
-0.3099856675,
-0.2311969995,
0.1847683638,
0.2118827403,
0.3373568058,
0.0375584662,
0.0252314974,
-0.2175353169,
-0.1350450367,
-0.0474074781,
0.4344930053,
0.2072371542,
0.1415724456,
0.3283971548,
-0.1808503568,
0.1772648096,
-0.0405489057,
-0.1632169187,
0.2780995667,
0.1951759756,
0.026435731,
-0.0409876853,
0.0993244424,
-0.2837718129,
0.2191359103,
-0.3463275433,
0.1268694997,
-0.315925926,
0.1371752769,
-0.4949304461,
0.0684916303,
-0.3787873089,
-0.0567807667,
0.2569245398,
0.3768236935,
0.1142341569,
0.1722537875,
-0.2782524526,
0.267976135,
0.1009132937,
-0.0514630154,
-0.1752588004,
0.3477750123,
-0.0727635771,
-0.1697760373,
0.1653921753,
0.0954305902,
0.1646150649,
-0.2072203755,
-0.1451621801,
0.3047004044,
0.1720846444,
0.1749238074,
0.2278972864,
-0.2666501701,
0.044275105,
-0.0181579348,
0.128488332,
-0.0186412856,
0.1925160736,
0.0529001169,
-0.1220208481,
0.22219491,
0.2891239226,
0.205655545,
0.1633911133,
0.0383985005,
0.3942523599,
-0.1134486049,
0.0190575365,
-0.1661203951,
0.0748773962,
0.3530032933,
0.3803364933,
0.230071798,
-0.2208120525,
0.1057660878,
0.4657373428,
-0.0516405776,
-0.1458438635,
-0.0250084512,
-0.2307233512,
-0.1291081607,
-0.0637749285,
0.3337620199,
0.4226687551,
0.1845540702,
-0.0389018394,
0.0031108847,
0.075289771,
-0.1089815721,
0.1407284439,
-0.1365965754,
0.3417122662,
0.3945151269,
0.0551677011,
-0.176708594,
-0.370087415,
-0.3006949425,
0.1664148867,
0.2772981822,
-0.1808462441,
0.0052814982,
-0.4011819363,
0.2139443755,
-0.0098292325,
-0.1010100618,
-0.079506427,
-0.3404192626,
-0.0157354791,
-0.0830063075,
-0.0670677871,
0.1065875143,
-0.3637861311,
0.0818713009,
0.1189363599,
-0.2313342541,
-0.0624644905,
-0.3092601597,
-0.1397186965,
0.0810677633,
0.2886584103,
0.0258772336,
0.2121613324,
-0.2166904509,
-0.1624976695,
-0.0462851487,
-0.0685267672,
0.1727992594,
0.1040331945,
0.079676263,
0.1615345925,
0.170505479,
0.0443752371,
-0.1217466816,
0.3942083716,
-0.1475079656,
-0.2194528133,
0.1478904039,
-0.0416107029,
-0.0628744364,
-0.0292963497,
-0.5031520128,
-0.5888147354,
-0.3946751356,
0.1067828238,
0.1754974276,
0.074661836,
0.1882751733,
0.2860588431,
0.2770675719,
-0.20365569,
-0.0760412812,
-0.1809357703,
-0.5880247951,
0.226789251,
-0.3660040796,
-0.2582665086,
-0.0187814292,
-0.0282587148,
0.4030710459,
-0.0448789559,
-0.2482688725,
-0.0264925528,
-0.1904010922,
0.1472155303,
-0.1371643394,
-0.1233015209,
0.2826705277,
0.1041350067,
-0.2540555596,
-0.085649237,
-0.0479377918,
0.1534429193,
0.0565056913,
-0.0014596215,
-0.0498308279,
0.4023944139,
-0.3189497292,
0.5021756291,
-0.1321512908,
-0.1537529379,
0.4545554221,
-0.0178778097,
0.2160854787,
-0.2835463881,
-0.3218407333,
-0.0065038488,
0.1784427315,
-0.0272994377,
0.120624572,
-0.0941152126,
-0.3274230063,
-0.2668359578,
-0.1913951337,
-0.2621435225,
-0.081510745,
0.0073712389,
-0.0715428218,
0.2882126272,
-0.0596990921,
0.1273894012,
-0.1062454209,
0.2316362411,
0.1236681491,
0.0970615372,
0.1014317423,
0.0560988337,
-0.4610570371,
0.0240166895,
-0.1644708961,
0.0491904132,
-0.1086943299,
0.310403496,
-0.2080439627,
-0.1626786292,
0.0483287387,
-0.0831756666,
0.2916000485,
-0.2622019649,
0.1852903366,
0.26506567,
-0.1606594622,
-0.3580448925,
-0.1581517011,
0.1581846476,
0.1291677207,
-0.1570274979,
0.3487570584,
0.0030353183,
-0.3250371516,
0.2051526457,
0.0160632674,
-0.2149486244,
-0.1627966911,
-0.2047469765,
-0.3406685591,
-0.271545738,
-0.2199999541,
-0.2075163573,
0.2224271894,
0.171810165,
-0.0770095363,
-0.1204376146,
0.006406521,
0.0069851168,
0.2544153035,
0.2376249731,
0.0223213173,
0.0758742616,
0.3095454276,
0.2924074531,
0.4549856484,
0.7814916968,
0.1486890614,
-0.2821571827,
0.1833965331,
-0.0462161973,
0.3119095564,
0.2156031281,
-0.1176732481,
-0.1417480856,
0.0239701755,
0.173891142,
-0.1707321554,
0.2706416845,
0.2103015035,
-0.3386396468,
-0.1765427887,
-0.5080039501,
0.325766027,
-0.2544552982,
0.0527136587,
-0.0178895388,
-0.0865162164,
-0.1654796004,
0.4113067091,
-0.073603943,
0.6224441528,
-0.1802383959,
-0.0845591202,
0.2444292903,
-0.1123828813,
0.0374790877,
-0.3633497953,
0.1496447325,
-0.2811683118,
0.0170419514,
-0.0047171982,
-0.1754679084,
0.1758488566,
0.1946679801,
0.07547196,
0.1809636056,
-0.1503387541,
0.0399281457,
-0.0293471664,
0.3210047781,
-0.0496207923,
-0.0716092363,
-0.2431740612,
0.2837352455,
0.025612412,
0.420132935,
-0.0506689399,
-0.2989140451,
-0.0848352388,
-0.1900107414,
-0.0289132223,
0.2473720163,
-0.3701399863,
0.2054001689,
-0.0513812974,
-0.1240992621,
-0.0059903855,
0.0868683234,
0.039465826,
0.0752517805,
-0.1895525306,
0.2213424146,
-0.1113250703,
-0.2088158876,
-0.2969558835,
0.1599836797,
0.2044896483,
-0.0950381383,
-0.4180892408,
0.0573610812,
-0.1447229534,
-0.2738863826,
-0.0220094267,
-0.0824222267,
-0.0230395421,
-0.115504615,
-0.2276082933,
-0.0359663107,
0.029947171,
-0.0961934328,
0.2217772603,
0.0404937379,
-0.1558905542,
-0.1381238252,
-0.0994066969,
-0.4210209846,
-0.1752854586,
0.573622942,
-0.0625800714,
0.0799083859,
0.6132894158,
0.1499447078,
-0.0374914035,
-0.4075959325,
-0.1245208755,
0.6449127197,
-0.2190644294,
-0.0026801566,
0.0879214406,
-0.0645787045,
0.173365429,
-0.0269282926,
0.1172017008,
-0.3126033247,
0.0572402067,
-0.4941405356,
-0.3921113014,
-0.0044977055,
-0.1438091993,
0.1750949025,
-0.0738080218,
0.2413703501,
0.1824522913,
-0.1250859946,
-0.4251793325,
0.0585387647,
-0.284137547,
0.0513308384,
0.197682634,
-0.1557044089,
0.2013684511,
-0.0879171342,
0.3622089028,
-0.197972104,
-0.2108758539,
-0.3679227829,
0.0640986338,
0.0692550912,
0.0035534301,
-0.0591170974,
0.0849361122,
-0.1391629279,
-0.0679967105,
0.0938133895,
0.0897610188,
0.1430657208,
0.0247105919,
0.1060190573,
-0.0195104666,
-0.1732519865,
0.0611342303,
-0.0031715457,
0.0006255233,
-0.0034726204,
-0.0239870753,
0.0630805343,
-0.0374078378,
-0.0510758981,
0.0685965866,
0.0205919426,
-0.101201795,
0.198286891,
0.2743832767,
-0.3543452621,
0.0418480001,
0.1751633584,
0.1706119925,
0.3076133728,
-0.2584965229,
0.1272262782,
0.2316078693,
0.3678612411,
-0.3404372036,
-0.1512429565,
-0.0328585729,
0.0197856426,
0.1607164741,
0.0491878502,
0.2741451859,
-0.0868610963,
0.0250927042,
0.0960968882,
0.3766967058,
0.0909121111,
0.0134067638,
0.4564003646,
0.0320855677,
-0.075690642,
0.0947888643,
0.3297460973,
0.221638009,
0.6467006803,
-0.107825771,
0.1845678389,
-0.2802915871,
0.1782789528,
-0.0749673396,
-0.5045813322,
0.1100018099,
0.284881115,
-0.1122776046,
-0.1272213459,
-0.0532599799,
0.1731542349,
0.0128855538,
-0.2953319252,
-0.1839646846,
0.1809837967,
-0.1377176642,
-0.1285751313,
-0.2776621878,
-0.3045413494,
-0.2806885242,
0.1713316888,
0.049760256,
0.0526851043,
0.1532447338,
0.1241677701,
-0.1252143681,
-0.1483237147,
0.061304599,
0.1337928176,
-0.1122198403,
-0.2258983105,
0.3206228614,
0.1044418737,
-0.0261640642,
-0.0014424877,
0.1664979607,
0.2778249085,
0.3523560166,
-0.1520183533,
0.10302414,
-0.0097890766,
-0.14413248,
-0.189183712,
0.0786161423,
-0.0711725503,
0.2066165656,
0.2363342196,
0.3146886826,
-0.2235383093,
0.1097252145,
-0.0013922497,
0.1672287136,
-0.0229536593,
0.3412015438,
0.1083901227,
-0.0085668555,
-0.1298818141,
0.0651229247,
-0.4786283672,
0.0415802002,
0.3302783072,
0.2957894802,
0.230159387,
-0.1829671413,
0.1435518861,
-0.0001556727,
0.4455426633,
0.1900868565,
0.1014230773,
-0.3366394043,
-0.210491091,
-0.4156793356,
-0.0496985018,
-0.1088321954,
0.0879734084,
0.1137142628,
0.0904482976,
0.2712876797,
0.0532687642,
0.1732734591,
0.201864779,
-0.035691902,
-0.0401173197,
-0.1642188281,
0.01932339,
-0.1404908299,
0.1033990756,
0.0358043164,
-0.4230645895,
0.1186300516,
-0.5297962427,
0.2520973086,
-0.1825565249,
-0.2041237801,
0.0554897226,
-0.1873265058,
0.4470168352,
-0.0805202499,
0.2546406388,
-0.0530694015,
-0.1315813363,
-0.2592814565,
-0.2901479304,
-0.0856732875,
0.2357432246,
0.0100025358,
0.3478620946,
-0.1417644769,
0.014740455,
-0.4055244923,
0.1120019555,
0.0181558188,
0.1820991188,
-0.1311501265,
0.0255847834,
0.0283785518,
0.0018717245,
0.3008186221,
0.0260019097,
-0.0225499962,
0.0366195031,
-0.2774406672,
-0.1356861442,
0.425649941,
-0.1225800291,
-0.2328281999,
0.1680173725,
0.1141591296,
0.0196197256,
0.1186424568,
-0.3386642039,
0.4681667984,
0.309430778,
-0.0921447054,
-0.1219352782,
0.2885731459,
0.2110388279,
-0.0062930272,
-0.0348697305,
-0.0948192328,
0.0155706694,
-0.06850826,
-0.3372615874,
-0.079856284
] |
https://github.com/huggingface/datasets/issues/4192 | load_dataset can't load local dataset,Unable to find ... | > Hi! :)
>
> I believe that should work unless `dataset_infos.json` isn't actually a dataset. For Hugging Face datasets, there is usually a file named `dataset_infos.json` which contains metadata about the dataset (eg. the dataset citation, license, description, etc). Can you double-check that `dataset_infos.json` isn't just metadata please?
YesοΌyou are right!So if I have a metadata dataset local,How can I turn it to a dataset that can be used by the load_dataset() functionοΌAre there some examples? |
Traceback (most recent call last):
File "/home/gs603/ahf/pretrained/model.py", line 48, in <module>
dataset = load_dataset("json",data_files="dataset/dataset_infos.json")
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset
**config_kwargs,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder
data_files=data_files,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory
download_mode=download_mode,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module
data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote
if not isinstance(patterns_for_key, DataFilesList)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote
data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls
for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions):
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally
raise FileNotFoundError(error_msg)
FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained
![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png)
![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png)
the code is in the model.py,why I can't use the load_dataset function to load my local dataset? | 77 | load_dataset can't load local dataset,Unable to find ...
Traceback (most recent call last):
File "/home/gs603/ahf/pretrained/model.py", line 48, in <module>
dataset = load_dataset("json",data_files="dataset/dataset_infos.json")
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset
**config_kwargs,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder
data_files=data_files,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory
download_mode=download_mode,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module
data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote
if not isinstance(patterns_for_key, DataFilesList)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote
data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls
for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions):
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally
raise FileNotFoundError(error_msg)
FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained
![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png)
![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png)
the code is in the model.py,why I can't use the load_dataset function to load my local dataset?
> Hi! :)
>
> I believe that should work unless `dataset_infos.json` isn't actually a dataset. For Hugging Face datasets, there is usually a file named `dataset_infos.json` which contains metadata about the dataset (eg. the dataset citation, license, description, etc). Can you double-check that `dataset_infos.json` isn't just metadata please?
YesοΌyou are right!So if I have a metadata dataset local,How can I turn it to a dataset that can be used by the load_dataset() functionοΌAre there some examples? | [
-0.1754118204,
0.0892572477,
-0.1238672063,
0.1317975819,
0.3044528067,
0.059617009,
0.4345732033,
0.4015061557,
0.2219167948,
0.1424890012,
0.0361839049,
0.2007317394,
-0.0687808245,
0.2588721216,
0.009246666,
0.0185479969,
-0.1723025739,
0.2523019314,
0.073971346,
-0.174201563,
-0.2112789005,
0.2418318838,
0.027848335,
0.1173942015,
-0.1005750522,
0.1655556113,
0.1800219864,
0.34490484,
-0.4049100578,
-0.6614171863,
0.3138435185,
0.031158343,
0.1568319798,
0.320530951,
-0.000102549,
0.3772659004,
0.4112351239,
-0.0276079569,
-0.3889510036,
-0.2801309228,
-0.2690984309,
0.0282838475,
0.3179875314,
0.0204779971,
-0.3608302176,
-0.200593695,
-0.2220412344,
-0.4490517974,
0.2750030756,
0.4882833958,
0.3081128895,
0.231098175,
-0.0721584931,
-0.3881165981,
0.0198184066,
0.1770248264,
-0.0292751789,
0.52886343,
0.0377270728,
-0.2341789007,
0.1035137251,
0.1581628323,
0.0793953538,
0.0284675527,
0.0882125422,
-0.2072859257,
0.2171772122,
-0.219175607,
0.3798283935,
0.0547224432,
0.6315194368,
-0.1158464029,
-0.3141863644,
-0.0123116495,
0.1138486266,
-0.10287451,
0.2046783864,
0.045829732,
-0.1688976884,
0.20919168,
-0.1342585236,
-0.0759269372,
0.0124438927,
0.0808492154,
-0.3217006922,
0.1773283929,
-0.0329154991,
-0.0146151148,
-0.0769229606,
-0.011735403,
0.1764854342,
0.0757224038,
-0.1125755385,
0.2010473609,
-0.2126441151,
0.1046849042,
0.3609265983,
-0.0973182619,
-0.0318349637,
0.1725890934,
0.0162646063,
0.1104866564,
0.1687097102,
0.0838386789,
0.0914805755,
-0.0313818268,
0.1883701831,
0.0356862992,
0.0580233075,
0.0661233515,
-0.1720782965,
-0.0205512177,
-0.3940504193,
-0.344581604,
-0.0585467927,
-0.045496542,
0.2909518778,
-0.2911599874,
-0.2396679521,
0.0144002661,
-0.1853239685,
-0.0991476402,
0.1993577629,
0.497577101,
0.2355811894,
0.2227940261,
0.015198024,
0.2722530365,
-0.1118466258,
0.0649854615,
-0.3315716088,
-0.0373593159,
-0.2781309485,
0.0203541741,
0.1411546022,
-0.274751842,
0.4822354615,
-0.0563929863,
-0.3924454749,
0.0767449513,
0.1544392109,
-0.0835209638,
-0.1411973089,
0.4017682076,
-0.1220227107,
0.0572021827,
0.2312975228,
0.0705862641,
-0.109166272,
-0.1873900443,
-0.0098338872,
-0.4743787944,
-0.1384027451,
0.3405170143,
0.0255440958,
-0.1104249731,
0.0181351136,
0.0177696701,
0.0170054603,
-0.0979416594,
-0.2767786682,
-0.1495965272,
-0.2446840256,
-0.1369096786,
0.3972700834,
0.5598174334,
-0.3857534528,
-0.0520898215,
-0.1845663041,
-0.3364591897,
0.0810396969,
0.0316804722,
-0.4409795702,
0.4958360195,
-0.2494395971,
0.0287686419,
0.2702871263,
-0.3281018138,
-0.3054532111,
0.3795754611,
-0.1337427795,
-0.1947809011,
0.0663449764,
-0.3099856675,
-0.2311969995,
0.1847683638,
0.2118827403,
0.3373568058,
0.0375584662,
0.0252314974,
-0.2175353169,
-0.1350450367,
-0.0474074781,
0.4344930053,
0.2072371542,
0.1415724456,
0.3283971548,
-0.1808503568,
0.1772648096,
-0.0405489057,
-0.1632169187,
0.2780995667,
0.1951759756,
0.026435731,
-0.0409876853,
0.0993244424,
-0.2837718129,
0.2191359103,
-0.3463275433,
0.1268694997,
-0.315925926,
0.1371752769,
-0.4949304461,
0.0684916303,
-0.3787873089,
-0.0567807667,
0.2569245398,
0.3768236935,
0.1142341569,
0.1722537875,
-0.2782524526,
0.267976135,
0.1009132937,
-0.0514630154,
-0.1752588004,
0.3477750123,
-0.0727635771,
-0.1697760373,
0.1653921753,
0.0954305902,
0.1646150649,
-0.2072203755,
-0.1451621801,
0.3047004044,
0.1720846444,
0.1749238074,
0.2278972864,
-0.2666501701,
0.044275105,
-0.0181579348,
0.128488332,
-0.0186412856,
0.1925160736,
0.0529001169,
-0.1220208481,
0.22219491,
0.2891239226,
0.205655545,
0.1633911133,
0.0383985005,
0.3942523599,
-0.1134486049,
0.0190575365,
-0.1661203951,
0.0748773962,
0.3530032933,
0.3803364933,
0.230071798,
-0.2208120525,
0.1057660878,
0.4657373428,
-0.0516405776,
-0.1458438635,
-0.0250084512,
-0.2307233512,
-0.1291081607,
-0.0637749285,
0.3337620199,
0.4226687551,
0.1845540702,
-0.0389018394,
0.0031108847,
0.075289771,
-0.1089815721,
0.1407284439,
-0.1365965754,
0.3417122662,
0.3945151269,
0.0551677011,
-0.176708594,
-0.370087415,
-0.3006949425,
0.1664148867,
0.2772981822,
-0.1808462441,
0.0052814982,
-0.4011819363,
0.2139443755,
-0.0098292325,
-0.1010100618,
-0.079506427,
-0.3404192626,
-0.0157354791,
-0.0830063075,
-0.0670677871,
0.1065875143,
-0.3637861311,
0.0818713009,
0.1189363599,
-0.2313342541,
-0.0624644905,
-0.3092601597,
-0.1397186965,
0.0810677633,
0.2886584103,
0.0258772336,
0.2121613324,
-0.2166904509,
-0.1624976695,
-0.0462851487,
-0.0685267672,
0.1727992594,
0.1040331945,
0.079676263,
0.1615345925,
0.170505479,
0.0443752371,
-0.1217466816,
0.3942083716,
-0.1475079656,
-0.2194528133,
0.1478904039,
-0.0416107029,
-0.0628744364,
-0.0292963497,
-0.5031520128,
-0.5888147354,
-0.3946751356,
0.1067828238,
0.1754974276,
0.074661836,
0.1882751733,
0.2860588431,
0.2770675719,
-0.20365569,
-0.0760412812,
-0.1809357703,
-0.5880247951,
0.226789251,
-0.3660040796,
-0.2582665086,
-0.0187814292,
-0.0282587148,
0.4030710459,
-0.0448789559,
-0.2482688725,
-0.0264925528,
-0.1904010922,
0.1472155303,
-0.1371643394,
-0.1233015209,
0.2826705277,
0.1041350067,
-0.2540555596,
-0.085649237,
-0.0479377918,
0.1534429193,
0.0565056913,
-0.0014596215,
-0.0498308279,
0.4023944139,
-0.3189497292,
0.5021756291,
-0.1321512908,
-0.1537529379,
0.4545554221,
-0.0178778097,
0.2160854787,
-0.2835463881,
-0.3218407333,
-0.0065038488,
0.1784427315,
-0.0272994377,
0.120624572,
-0.0941152126,
-0.3274230063,
-0.2668359578,
-0.1913951337,
-0.2621435225,
-0.081510745,
0.0073712389,
-0.0715428218,
0.2882126272,
-0.0596990921,
0.1273894012,
-0.1062454209,
0.2316362411,
0.1236681491,
0.0970615372,
0.1014317423,
0.0560988337,
-0.4610570371,
0.0240166895,
-0.1644708961,
0.0491904132,
-0.1086943299,
0.310403496,
-0.2080439627,
-0.1626786292,
0.0483287387,
-0.0831756666,
0.2916000485,
-0.2622019649,
0.1852903366,
0.26506567,
-0.1606594622,
-0.3580448925,
-0.1581517011,
0.1581846476,
0.1291677207,
-0.1570274979,
0.3487570584,
0.0030353183,
-0.3250371516,
0.2051526457,
0.0160632674,
-0.2149486244,
-0.1627966911,
-0.2047469765,
-0.3406685591,
-0.271545738,
-0.2199999541,
-0.2075163573,
0.2224271894,
0.171810165,
-0.0770095363,
-0.1204376146,
0.006406521,
0.0069851168,
0.2544153035,
0.2376249731,
0.0223213173,
0.0758742616,
0.3095454276,
0.2924074531,
0.4549856484,
0.7814916968,
0.1486890614,
-0.2821571827,
0.1833965331,
-0.0462161973,
0.3119095564,
0.2156031281,
-0.1176732481,
-0.1417480856,
0.0239701755,
0.173891142,
-0.1707321554,
0.2706416845,
0.2103015035,
-0.3386396468,
-0.1765427887,
-0.5080039501,
0.325766027,
-0.2544552982,
0.0527136587,
-0.0178895388,
-0.0865162164,
-0.1654796004,
0.4113067091,
-0.073603943,
0.6224441528,
-0.1802383959,
-0.0845591202,
0.2444292903,
-0.1123828813,
0.0374790877,
-0.3633497953,
0.1496447325,
-0.2811683118,
0.0170419514,
-0.0047171982,
-0.1754679084,
0.1758488566,
0.1946679801,
0.07547196,
0.1809636056,
-0.1503387541,
0.0399281457,
-0.0293471664,
0.3210047781,
-0.0496207923,
-0.0716092363,
-0.2431740612,
0.2837352455,
0.025612412,
0.420132935,
-0.0506689399,
-0.2989140451,
-0.0848352388,
-0.1900107414,
-0.0289132223,
0.2473720163,
-0.3701399863,
0.2054001689,
-0.0513812974,
-0.1240992621,
-0.0059903855,
0.0868683234,
0.039465826,
0.0752517805,
-0.1895525306,
0.2213424146,
-0.1113250703,
-0.2088158876,
-0.2969558835,
0.1599836797,
0.2044896483,
-0.0950381383,
-0.4180892408,
0.0573610812,
-0.1447229534,
-0.2738863826,
-0.0220094267,
-0.0824222267,
-0.0230395421,
-0.115504615,
-0.2276082933,
-0.0359663107,
0.029947171,
-0.0961934328,
0.2217772603,
0.0404937379,
-0.1558905542,
-0.1381238252,
-0.0994066969,
-0.4210209846,
-0.1752854586,
0.573622942,
-0.0625800714,
0.0799083859,
0.6132894158,
0.1499447078,
-0.0374914035,
-0.4075959325,
-0.1245208755,
0.6449127197,
-0.2190644294,
-0.0026801566,
0.0879214406,
-0.0645787045,
0.173365429,
-0.0269282926,
0.1172017008,
-0.3126033247,
0.0572402067,
-0.4941405356,
-0.3921113014,
-0.0044977055,
-0.1438091993,
0.1750949025,
-0.0738080218,
0.2413703501,
0.1824522913,
-0.1250859946,
-0.4251793325,
0.0585387647,
-0.284137547,
0.0513308384,
0.197682634,
-0.1557044089,
0.2013684511,
-0.0879171342,
0.3622089028,
-0.197972104,
-0.2108758539,
-0.3679227829,
0.0640986338,
0.0692550912,
0.0035534301,
-0.0591170974,
0.0849361122,
-0.1391629279,
-0.0679967105,
0.0938133895,
0.0897610188,
0.1430657208,
0.0247105919,
0.1060190573,
-0.0195104666,
-0.1732519865,
0.0611342303,
-0.0031715457,
0.0006255233,
-0.0034726204,
-0.0239870753,
0.0630805343,
-0.0374078378,
-0.0510758981,
0.0685965866,
0.0205919426,
-0.101201795,
0.198286891,
0.2743832767,
-0.3543452621,
0.0418480001,
0.1751633584,
0.1706119925,
0.3076133728,
-0.2584965229,
0.1272262782,
0.2316078693,
0.3678612411,
-0.3404372036,
-0.1512429565,
-0.0328585729,
0.0197856426,
0.1607164741,
0.0491878502,
0.2741451859,
-0.0868610963,
0.0250927042,
0.0960968882,
0.3766967058,
0.0909121111,
0.0134067638,
0.4564003646,
0.0320855677,
-0.075690642,
0.0947888643,
0.3297460973,
0.221638009,
0.6467006803,
-0.107825771,
0.1845678389,
-0.2802915871,
0.1782789528,
-0.0749673396,
-0.5045813322,
0.1100018099,
0.284881115,
-0.1122776046,
-0.1272213459,
-0.0532599799,
0.1731542349,
0.0128855538,
-0.2953319252,
-0.1839646846,
0.1809837967,
-0.1377176642,
-0.1285751313,
-0.2776621878,
-0.3045413494,
-0.2806885242,
0.1713316888,
0.049760256,
0.0526851043,
0.1532447338,
0.1241677701,
-0.1252143681,
-0.1483237147,
0.061304599,
0.1337928176,
-0.1122198403,
-0.2258983105,
0.3206228614,
0.1044418737,
-0.0261640642,
-0.0014424877,
0.1664979607,
0.2778249085,
0.3523560166,
-0.1520183533,
0.10302414,
-0.0097890766,
-0.14413248,
-0.189183712,
0.0786161423,
-0.0711725503,
0.2066165656,
0.2363342196,
0.3146886826,
-0.2235383093,
0.1097252145,
-0.0013922497,
0.1672287136,
-0.0229536593,
0.3412015438,
0.1083901227,
-0.0085668555,
-0.1298818141,
0.0651229247,
-0.4786283672,
0.0415802002,
0.3302783072,
0.2957894802,
0.230159387,
-0.1829671413,
0.1435518861,
-0.0001556727,
0.4455426633,
0.1900868565,
0.1014230773,
-0.3366394043,
-0.210491091,
-0.4156793356,
-0.0496985018,
-0.1088321954,
0.0879734084,
0.1137142628,
0.0904482976,
0.2712876797,
0.0532687642,
0.1732734591,
0.201864779,
-0.035691902,
-0.0401173197,
-0.1642188281,
0.01932339,
-0.1404908299,
0.1033990756,
0.0358043164,
-0.4230645895,
0.1186300516,
-0.5297962427,
0.2520973086,
-0.1825565249,
-0.2041237801,
0.0554897226,
-0.1873265058,
0.4470168352,
-0.0805202499,
0.2546406388,
-0.0530694015,
-0.1315813363,
-0.2592814565,
-0.2901479304,
-0.0856732875,
0.2357432246,
0.0100025358,
0.3478620946,
-0.1417644769,
0.014740455,
-0.4055244923,
0.1120019555,
0.0181558188,
0.1820991188,
-0.1311501265,
0.0255847834,
0.0283785518,
0.0018717245,
0.3008186221,
0.0260019097,
-0.0225499962,
0.0366195031,
-0.2774406672,
-0.1356861442,
0.425649941,
-0.1225800291,
-0.2328281999,
0.1680173725,
0.1141591296,
0.0196197256,
0.1186424568,
-0.3386642039,
0.4681667984,
0.309430778,
-0.0921447054,
-0.1219352782,
0.2885731459,
0.2110388279,
-0.0062930272,
-0.0348697305,
-0.0948192328,
0.0155706694,
-0.06850826,
-0.3372615874,
-0.079856284
] |
https://github.com/huggingface/datasets/issues/4192 | load_dataset can't load local dataset,Unable to find ... | The metadata file isn't a dataset so you can't turn it into one. You should try @albertvillanova's code snippet above (now merged in the docs [here](https://huggingface.co/docs/datasets/master/en/loading#local-loading-script)), which uses your local loading script `opus_books.py` to:
1. Download the actual dataset.
2. Once the dataset is downloaded, `load_dataset` will load it for you. |
Traceback (most recent call last):
File "/home/gs603/ahf/pretrained/model.py", line 48, in <module>
dataset = load_dataset("json",data_files="dataset/dataset_infos.json")
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset
**config_kwargs,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder
data_files=data_files,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory
download_mode=download_mode,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module
data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote
if not isinstance(patterns_for_key, DataFilesList)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote
data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls
for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions):
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally
raise FileNotFoundError(error_msg)
FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained
![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png)
![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png)
the code is in the model.py,why I can't use the load_dataset function to load my local dataset? | 51 | load_dataset can't load local dataset,Unable to find ...
Traceback (most recent call last):
File "/home/gs603/ahf/pretrained/model.py", line 48, in <module>
dataset = load_dataset("json",data_files="dataset/dataset_infos.json")
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset
**config_kwargs,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder
data_files=data_files,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory
download_mode=download_mode,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module
data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote
if not isinstance(patterns_for_key, DataFilesList)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote
data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls
for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions):
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally
raise FileNotFoundError(error_msg)
FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained
![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png)
![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png)
the code is in the model.py,why I can't use the load_dataset function to load my local dataset?
The metadata file isn't a dataset so you can't turn it into one. You should try @albertvillanova's code snippet above (now merged in the docs [here](https://huggingface.co/docs/datasets/master/en/loading#local-loading-script)), which uses your local loading script `opus_books.py` to:
1. Download the actual dataset.
2. Once the dataset is downloaded, `load_dataset` will load it for you. | [
-0.1754118204,
0.0892572477,
-0.1238672063,
0.1317975819,
0.3044528067,
0.059617009,
0.4345732033,
0.4015061557,
0.2219167948,
0.1424890012,
0.0361839049,
0.2007317394,
-0.0687808245,
0.2588721216,
0.009246666,
0.0185479969,
-0.1723025739,
0.2523019314,
0.073971346,
-0.174201563,
-0.2112789005,
0.2418318838,
0.027848335,
0.1173942015,
-0.1005750522,
0.1655556113,
0.1800219864,
0.34490484,
-0.4049100578,
-0.6614171863,
0.3138435185,
0.031158343,
0.1568319798,
0.320530951,
-0.000102549,
0.3772659004,
0.4112351239,
-0.0276079569,
-0.3889510036,
-0.2801309228,
-0.2690984309,
0.0282838475,
0.3179875314,
0.0204779971,
-0.3608302176,
-0.200593695,
-0.2220412344,
-0.4490517974,
0.2750030756,
0.4882833958,
0.3081128895,
0.231098175,
-0.0721584931,
-0.3881165981,
0.0198184066,
0.1770248264,
-0.0292751789,
0.52886343,
0.0377270728,
-0.2341789007,
0.1035137251,
0.1581628323,
0.0793953538,
0.0284675527,
0.0882125422,
-0.2072859257,
0.2171772122,
-0.219175607,
0.3798283935,
0.0547224432,
0.6315194368,
-0.1158464029,
-0.3141863644,
-0.0123116495,
0.1138486266,
-0.10287451,
0.2046783864,
0.045829732,
-0.1688976884,
0.20919168,
-0.1342585236,
-0.0759269372,
0.0124438927,
0.0808492154,
-0.3217006922,
0.1773283929,
-0.0329154991,
-0.0146151148,
-0.0769229606,
-0.011735403,
0.1764854342,
0.0757224038,
-0.1125755385,
0.2010473609,
-0.2126441151,
0.1046849042,
0.3609265983,
-0.0973182619,
-0.0318349637,
0.1725890934,
0.0162646063,
0.1104866564,
0.1687097102,
0.0838386789,
0.0914805755,
-0.0313818268,
0.1883701831,
0.0356862992,
0.0580233075,
0.0661233515,
-0.1720782965,
-0.0205512177,
-0.3940504193,
-0.344581604,
-0.0585467927,
-0.045496542,
0.2909518778,
-0.2911599874,
-0.2396679521,
0.0144002661,
-0.1853239685,
-0.0991476402,
0.1993577629,
0.497577101,
0.2355811894,
0.2227940261,
0.015198024,
0.2722530365,
-0.1118466258,
0.0649854615,
-0.3315716088,
-0.0373593159,
-0.2781309485,
0.0203541741,
0.1411546022,
-0.274751842,
0.4822354615,
-0.0563929863,
-0.3924454749,
0.0767449513,
0.1544392109,
-0.0835209638,
-0.1411973089,
0.4017682076,
-0.1220227107,
0.0572021827,
0.2312975228,
0.0705862641,
-0.109166272,
-0.1873900443,
-0.0098338872,
-0.4743787944,
-0.1384027451,
0.3405170143,
0.0255440958,
-0.1104249731,
0.0181351136,
0.0177696701,
0.0170054603,
-0.0979416594,
-0.2767786682,
-0.1495965272,
-0.2446840256,
-0.1369096786,
0.3972700834,
0.5598174334,
-0.3857534528,
-0.0520898215,
-0.1845663041,
-0.3364591897,
0.0810396969,
0.0316804722,
-0.4409795702,
0.4958360195,
-0.2494395971,
0.0287686419,
0.2702871263,
-0.3281018138,
-0.3054532111,
0.3795754611,
-0.1337427795,
-0.1947809011,
0.0663449764,
-0.3099856675,
-0.2311969995,
0.1847683638,
0.2118827403,
0.3373568058,
0.0375584662,
0.0252314974,
-0.2175353169,
-0.1350450367,
-0.0474074781,
0.4344930053,
0.2072371542,
0.1415724456,
0.3283971548,
-0.1808503568,
0.1772648096,
-0.0405489057,
-0.1632169187,
0.2780995667,
0.1951759756,
0.026435731,
-0.0409876853,
0.0993244424,
-0.2837718129,
0.2191359103,
-0.3463275433,
0.1268694997,
-0.315925926,
0.1371752769,
-0.4949304461,
0.0684916303,
-0.3787873089,
-0.0567807667,
0.2569245398,
0.3768236935,
0.1142341569,
0.1722537875,
-0.2782524526,
0.267976135,
0.1009132937,
-0.0514630154,
-0.1752588004,
0.3477750123,
-0.0727635771,
-0.1697760373,
0.1653921753,
0.0954305902,
0.1646150649,
-0.2072203755,
-0.1451621801,
0.3047004044,
0.1720846444,
0.1749238074,
0.2278972864,
-0.2666501701,
0.044275105,
-0.0181579348,
0.128488332,
-0.0186412856,
0.1925160736,
0.0529001169,
-0.1220208481,
0.22219491,
0.2891239226,
0.205655545,
0.1633911133,
0.0383985005,
0.3942523599,
-0.1134486049,
0.0190575365,
-0.1661203951,
0.0748773962,
0.3530032933,
0.3803364933,
0.230071798,
-0.2208120525,
0.1057660878,
0.4657373428,
-0.0516405776,
-0.1458438635,
-0.0250084512,
-0.2307233512,
-0.1291081607,
-0.0637749285,
0.3337620199,
0.4226687551,
0.1845540702,
-0.0389018394,
0.0031108847,
0.075289771,
-0.1089815721,
0.1407284439,
-0.1365965754,
0.3417122662,
0.3945151269,
0.0551677011,
-0.176708594,
-0.370087415,
-0.3006949425,
0.1664148867,
0.2772981822,
-0.1808462441,
0.0052814982,
-0.4011819363,
0.2139443755,
-0.0098292325,
-0.1010100618,
-0.079506427,
-0.3404192626,
-0.0157354791,
-0.0830063075,
-0.0670677871,
0.1065875143,
-0.3637861311,
0.0818713009,
0.1189363599,
-0.2313342541,
-0.0624644905,
-0.3092601597,
-0.1397186965,
0.0810677633,
0.2886584103,
0.0258772336,
0.2121613324,
-0.2166904509,
-0.1624976695,
-0.0462851487,
-0.0685267672,
0.1727992594,
0.1040331945,
0.079676263,
0.1615345925,
0.170505479,
0.0443752371,
-0.1217466816,
0.3942083716,
-0.1475079656,
-0.2194528133,
0.1478904039,
-0.0416107029,
-0.0628744364,
-0.0292963497,
-0.5031520128,
-0.5888147354,
-0.3946751356,
0.1067828238,
0.1754974276,
0.074661836,
0.1882751733,
0.2860588431,
0.2770675719,
-0.20365569,
-0.0760412812,
-0.1809357703,
-0.5880247951,
0.226789251,
-0.3660040796,
-0.2582665086,
-0.0187814292,
-0.0282587148,
0.4030710459,
-0.0448789559,
-0.2482688725,
-0.0264925528,
-0.1904010922,
0.1472155303,
-0.1371643394,
-0.1233015209,
0.2826705277,
0.1041350067,
-0.2540555596,
-0.085649237,
-0.0479377918,
0.1534429193,
0.0565056913,
-0.0014596215,
-0.0498308279,
0.4023944139,
-0.3189497292,
0.5021756291,
-0.1321512908,
-0.1537529379,
0.4545554221,
-0.0178778097,
0.2160854787,
-0.2835463881,
-0.3218407333,
-0.0065038488,
0.1784427315,
-0.0272994377,
0.120624572,
-0.0941152126,
-0.3274230063,
-0.2668359578,
-0.1913951337,
-0.2621435225,
-0.081510745,
0.0073712389,
-0.0715428218,
0.2882126272,
-0.0596990921,
0.1273894012,
-0.1062454209,
0.2316362411,
0.1236681491,
0.0970615372,
0.1014317423,
0.0560988337,
-0.4610570371,
0.0240166895,
-0.1644708961,
0.0491904132,
-0.1086943299,
0.310403496,
-0.2080439627,
-0.1626786292,
0.0483287387,
-0.0831756666,
0.2916000485,
-0.2622019649,
0.1852903366,
0.26506567,
-0.1606594622,
-0.3580448925,
-0.1581517011,
0.1581846476,
0.1291677207,
-0.1570274979,
0.3487570584,
0.0030353183,
-0.3250371516,
0.2051526457,
0.0160632674,
-0.2149486244,
-0.1627966911,
-0.2047469765,
-0.3406685591,
-0.271545738,
-0.2199999541,
-0.2075163573,
0.2224271894,
0.171810165,
-0.0770095363,
-0.1204376146,
0.006406521,
0.0069851168,
0.2544153035,
0.2376249731,
0.0223213173,
0.0758742616,
0.3095454276,
0.2924074531,
0.4549856484,
0.7814916968,
0.1486890614,
-0.2821571827,
0.1833965331,
-0.0462161973,
0.3119095564,
0.2156031281,
-0.1176732481,
-0.1417480856,
0.0239701755,
0.173891142,
-0.1707321554,
0.2706416845,
0.2103015035,
-0.3386396468,
-0.1765427887,
-0.5080039501,
0.325766027,
-0.2544552982,
0.0527136587,
-0.0178895388,
-0.0865162164,
-0.1654796004,
0.4113067091,
-0.073603943,
0.6224441528,
-0.1802383959,
-0.0845591202,
0.2444292903,
-0.1123828813,
0.0374790877,
-0.3633497953,
0.1496447325,
-0.2811683118,
0.0170419514,
-0.0047171982,
-0.1754679084,
0.1758488566,
0.1946679801,
0.07547196,
0.1809636056,
-0.1503387541,
0.0399281457,
-0.0293471664,
0.3210047781,
-0.0496207923,
-0.0716092363,
-0.2431740612,
0.2837352455,
0.025612412,
0.420132935,
-0.0506689399,
-0.2989140451,
-0.0848352388,
-0.1900107414,
-0.0289132223,
0.2473720163,
-0.3701399863,
0.2054001689,
-0.0513812974,
-0.1240992621,
-0.0059903855,
0.0868683234,
0.039465826,
0.0752517805,
-0.1895525306,
0.2213424146,
-0.1113250703,
-0.2088158876,
-0.2969558835,
0.1599836797,
0.2044896483,
-0.0950381383,
-0.4180892408,
0.0573610812,
-0.1447229534,
-0.2738863826,
-0.0220094267,
-0.0824222267,
-0.0230395421,
-0.115504615,
-0.2276082933,
-0.0359663107,
0.029947171,
-0.0961934328,
0.2217772603,
0.0404937379,
-0.1558905542,
-0.1381238252,
-0.0994066969,
-0.4210209846,
-0.1752854586,
0.573622942,
-0.0625800714,
0.0799083859,
0.6132894158,
0.1499447078,
-0.0374914035,
-0.4075959325,
-0.1245208755,
0.6449127197,
-0.2190644294,
-0.0026801566,
0.0879214406,
-0.0645787045,
0.173365429,
-0.0269282926,
0.1172017008,
-0.3126033247,
0.0572402067,
-0.4941405356,
-0.3921113014,
-0.0044977055,
-0.1438091993,
0.1750949025,
-0.0738080218,
0.2413703501,
0.1824522913,
-0.1250859946,
-0.4251793325,
0.0585387647,
-0.284137547,
0.0513308384,
0.197682634,
-0.1557044089,
0.2013684511,
-0.0879171342,
0.3622089028,
-0.197972104,
-0.2108758539,
-0.3679227829,
0.0640986338,
0.0692550912,
0.0035534301,
-0.0591170974,
0.0849361122,
-0.1391629279,
-0.0679967105,
0.0938133895,
0.0897610188,
0.1430657208,
0.0247105919,
0.1060190573,
-0.0195104666,
-0.1732519865,
0.0611342303,
-0.0031715457,
0.0006255233,
-0.0034726204,
-0.0239870753,
0.0630805343,
-0.0374078378,
-0.0510758981,
0.0685965866,
0.0205919426,
-0.101201795,
0.198286891,
0.2743832767,
-0.3543452621,
0.0418480001,
0.1751633584,
0.1706119925,
0.3076133728,
-0.2584965229,
0.1272262782,
0.2316078693,
0.3678612411,
-0.3404372036,
-0.1512429565,
-0.0328585729,
0.0197856426,
0.1607164741,
0.0491878502,
0.2741451859,
-0.0868610963,
0.0250927042,
0.0960968882,
0.3766967058,
0.0909121111,
0.0134067638,
0.4564003646,
0.0320855677,
-0.075690642,
0.0947888643,
0.3297460973,
0.221638009,
0.6467006803,
-0.107825771,
0.1845678389,
-0.2802915871,
0.1782789528,
-0.0749673396,
-0.5045813322,
0.1100018099,
0.284881115,
-0.1122776046,
-0.1272213459,
-0.0532599799,
0.1731542349,
0.0128855538,
-0.2953319252,
-0.1839646846,
0.1809837967,
-0.1377176642,
-0.1285751313,
-0.2776621878,
-0.3045413494,
-0.2806885242,
0.1713316888,
0.049760256,
0.0526851043,
0.1532447338,
0.1241677701,
-0.1252143681,
-0.1483237147,
0.061304599,
0.1337928176,
-0.1122198403,
-0.2258983105,
0.3206228614,
0.1044418737,
-0.0261640642,
-0.0014424877,
0.1664979607,
0.2778249085,
0.3523560166,
-0.1520183533,
0.10302414,
-0.0097890766,
-0.14413248,
-0.189183712,
0.0786161423,
-0.0711725503,
0.2066165656,
0.2363342196,
0.3146886826,
-0.2235383093,
0.1097252145,
-0.0013922497,
0.1672287136,
-0.0229536593,
0.3412015438,
0.1083901227,
-0.0085668555,
-0.1298818141,
0.0651229247,
-0.4786283672,
0.0415802002,
0.3302783072,
0.2957894802,
0.230159387,
-0.1829671413,
0.1435518861,
-0.0001556727,
0.4455426633,
0.1900868565,
0.1014230773,
-0.3366394043,
-0.210491091,
-0.4156793356,
-0.0496985018,
-0.1088321954,
0.0879734084,
0.1137142628,
0.0904482976,
0.2712876797,
0.0532687642,
0.1732734591,
0.201864779,
-0.035691902,
-0.0401173197,
-0.1642188281,
0.01932339,
-0.1404908299,
0.1033990756,
0.0358043164,
-0.4230645895,
0.1186300516,
-0.5297962427,
0.2520973086,
-0.1825565249,
-0.2041237801,
0.0554897226,
-0.1873265058,
0.4470168352,
-0.0805202499,
0.2546406388,
-0.0530694015,
-0.1315813363,
-0.2592814565,
-0.2901479304,
-0.0856732875,
0.2357432246,
0.0100025358,
0.3478620946,
-0.1417644769,
0.014740455,
-0.4055244923,
0.1120019555,
0.0181558188,
0.1820991188,
-0.1311501265,
0.0255847834,
0.0283785518,
0.0018717245,
0.3008186221,
0.0260019097,
-0.0225499962,
0.0366195031,
-0.2774406672,
-0.1356861442,
0.425649941,
-0.1225800291,
-0.2328281999,
0.1680173725,
0.1141591296,
0.0196197256,
0.1186424568,
-0.3386642039,
0.4681667984,
0.309430778,
-0.0921447054,
-0.1219352782,
0.2885731459,
0.2110388279,
-0.0062930272,
-0.0348697305,
-0.0948192328,
0.0155706694,
-0.06850826,
-0.3372615874,
-0.079856284
] |
https://github.com/huggingface/datasets/issues/4191 | feat: create an `Array3D` column from a list of arrays of dimension 2 | Hi @SaulLu, thanks for your proposal.
Just I got a bit confused about the dimensions...
- For the 2D case, you mention it is possible to create an `Array2D` from a list of arrays of dimension 1
- However, you give an example of creating an `Array2D` from arrays of dimension 2:
- the values of `data_map` are arrays of dimension 2
- the outer list in `prepare_dataset_2D` should not be taken into account in the dimension counting, as it is used because in `map` you pass `batched=True`
Note that for the 3D alternatives you mention:
- In `prepare_dataset_3D_ter`, you create an `Array3D` from arrays of dimension 3:
- the array `data_map[index][np.newaxis, :, :]` has dimension 3
- the outer list in `prepare_dataset_3D_ter` is the one used by `batched=True`
- In `prepare_dataset_3D_bis`, you create an `Array3D` from a list of list of lists:
- the value of `data_map[index].tolist()` is a list of lists
- it is enclosed by another list `[data_map[index].tolist()]`, thus giving a list of list of lists
- the outer list is the one used by `batched=True`
Therefore, if I understand correctly, your request would be to be able to create an `Array3D` from a list of an array of dimension 2:
- In `prepare_dataset_3D`, `data_map[index]` is an array of dimension 2
- it is enclosed by a list `[data_map[index]]`, thus giving a list of an array of dimension 2
- the outer list is the one used by `batched=True`
Please, feel free to tell me if I did not understand you correctly. | **Is your feature request related to a problem? Please describe.**
It is possible to create an `Array2D` column from a list of arrays of dimension 1. Similarly, I think it might be nice to be able to create a `Array3D` column from a list of lists of arrays of dimension 1.
To illustrate my proposal, let's take the following toy dataset t:
```python
import numpy as np
from datasets import Dataset, features
data_map = {
1: np.array([[0.2, 0,4],[0.19, 0,3]]),
2: np.array([[0.1, 0,4],[0.19, 0,3]]),
}
def create_toy_ds():
my_dict = {"id":[1, 2]}
return Dataset.from_dict(my_dict)
ds = create_toy_ds()
```
The following 2D processing works without any errors raised:
```python
def prepare_dataset_2D(batch):
batch["pixel_values"] = [data_map[index] for index in batch["id"]]
return batch
ds_2D = ds.map(
prepare_dataset_2D,
batched=True,
remove_columns=ds.column_names,
features=features.Features({"pixel_values": features.Array2D(shape=(2, 3), dtype="float32")})
)
```
The following 3D processing doesn't work:
```python
def prepare_dataset_3D(batch):
batch["pixel_values"] = [[data_map[index]] for index in batch["id"]]
return batch
ds_3D = ds.map(
prepare_dataset_3D,
batched=True,
remove_columns=ds.column_names,
features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3, dtype="float32")})
)
```
The error raised is:
```
---------------------------------------------------------------------------
ArrowInvalid Traceback (most recent call last)
[<ipython-input-6-676547e4cd41>](https://localhost:8080/#) in <module>()
3 batched=True,
4 remove_columns=ds.column_names,
----> 5 features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")})
6 )
12 frames
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc)
1971 new_fingerprint=new_fingerprint,
1972 disable_tqdm=disable_tqdm,
-> 1973 desc=desc,
1974 )
1975 else:
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in wrapper(*args, **kwargs)
518 self: "Dataset" = kwargs.pop("self")
519 # apply actual function
--> 520 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
521 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out]
522 for dataset in datasets:
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in wrapper(*args, **kwargs)
485 }
486 # apply actual function
--> 487 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
488 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out]
489 # re-apply format to the output
[/usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py](https://localhost:8080/#) in wrapper(*args, **kwargs)
456 # Call actual function
457
--> 458 out = func(self, *args, **kwargs)
459
460 # Update fingerprint of in-place transforms + update in-place history of transforms
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only)
2354 writer.write_table(batch)
2355 else:
-> 2356 writer.write_batch(batch)
2357 if update_data and writer is not None:
2358 writer.finalize() # close_stream=bool(buf_writer is None)) # We only close if we are writing in a file
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py](https://localhost:8080/#) in write_batch(self, batch_examples, writer_batch_size)
505 col_try_type = try_features[col] if try_features is not None and col in try_features else None
506 typed_sequence = OptimizedTypedSequence(batch_examples[col], type=col_type, try_type=col_try_type, col=col)
--> 507 arrays.append(pa.array(typed_sequence))
508 inferred_features[col] = typed_sequence.get_inferred_type()
509 schema = inferred_features.arrow_schema if self.pa_writer is None else self.schema
/usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array()
/usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._handle_arrow_array_protocol()
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py](https://localhost:8080/#) in __arrow_array__(self, type)
175 storage = list_of_np_array_to_pyarrow_listarray(data, type=pa_type.value_type)
176 else:
--> 177 storage = pa.array(data, pa_type.storage_dtype)
178 return pa.ExtensionArray.from_storage(pa_type, storage)
179
/usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array()
/usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array()
/usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
/usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowInvalid: Can only convert 1-dimensional array values
```
**Describe the solution you'd like**
No error in the second scenario and an identical result to the following snippets.
**Describe alternatives you've considered**
There are other alternatives that work such as:
```python
def prepare_dataset_3D_bis(batch):
batch["pixel_values"] = [[data_map[index].tolist()] for index in batch["id"]]
return batch
ds_3D_bis = ds.map(
prepare_dataset_3D_bis,
batched=True,
remove_columns=ds.column_names,
features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")})
)
```
or
```python
def prepare_dataset_3D_ter(batch):
batch["pixel_values"] = [data_map[index][np.newaxis, :, :] for index in batch["id"]]
return batch
ds_3D_ter = ds.map(
prepare_dataset_3D_ter,
batched=True,
remove_columns=ds.column_names,
features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")})
)
```
But both solutions require the user to be aware that `data_map[index]` is an `np.array` type.
cc @lhoestq as we discuss this offline :smile: | 255 | feat: create an `Array3D` column from a list of arrays of dimension 2
**Is your feature request related to a problem? Please describe.**
It is possible to create an `Array2D` column from a list of arrays of dimension 1. Similarly, I think it might be nice to be able to create a `Array3D` column from a list of lists of arrays of dimension 1.
To illustrate my proposal, let's take the following toy dataset t:
```python
import numpy as np
from datasets import Dataset, features
data_map = {
1: np.array([[0.2, 0,4],[0.19, 0,3]]),
2: np.array([[0.1, 0,4],[0.19, 0,3]]),
}
def create_toy_ds():
my_dict = {"id":[1, 2]}
return Dataset.from_dict(my_dict)
ds = create_toy_ds()
```
The following 2D processing works without any errors raised:
```python
def prepare_dataset_2D(batch):
batch["pixel_values"] = [data_map[index] for index in batch["id"]]
return batch
ds_2D = ds.map(
prepare_dataset_2D,
batched=True,
remove_columns=ds.column_names,
features=features.Features({"pixel_values": features.Array2D(shape=(2, 3), dtype="float32")})
)
```
The following 3D processing doesn't work:
```python
def prepare_dataset_3D(batch):
batch["pixel_values"] = [[data_map[index]] for index in batch["id"]]
return batch
ds_3D = ds.map(
prepare_dataset_3D,
batched=True,
remove_columns=ds.column_names,
features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3, dtype="float32")})
)
```
The error raised is:
```
---------------------------------------------------------------------------
ArrowInvalid Traceback (most recent call last)
[<ipython-input-6-676547e4cd41>](https://localhost:8080/#) in <module>()
3 batched=True,
4 remove_columns=ds.column_names,
----> 5 features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")})
6 )
12 frames
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc)
1971 new_fingerprint=new_fingerprint,
1972 disable_tqdm=disable_tqdm,
-> 1973 desc=desc,
1974 )
1975 else:
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in wrapper(*args, **kwargs)
518 self: "Dataset" = kwargs.pop("self")
519 # apply actual function
--> 520 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
521 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out]
522 for dataset in datasets:
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in wrapper(*args, **kwargs)
485 }
486 # apply actual function
--> 487 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
488 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out]
489 # re-apply format to the output
[/usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py](https://localhost:8080/#) in wrapper(*args, **kwargs)
456 # Call actual function
457
--> 458 out = func(self, *args, **kwargs)
459
460 # Update fingerprint of in-place transforms + update in-place history of transforms
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only)
2354 writer.write_table(batch)
2355 else:
-> 2356 writer.write_batch(batch)
2357 if update_data and writer is not None:
2358 writer.finalize() # close_stream=bool(buf_writer is None)) # We only close if we are writing in a file
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py](https://localhost:8080/#) in write_batch(self, batch_examples, writer_batch_size)
505 col_try_type = try_features[col] if try_features is not None and col in try_features else None
506 typed_sequence = OptimizedTypedSequence(batch_examples[col], type=col_type, try_type=col_try_type, col=col)
--> 507 arrays.append(pa.array(typed_sequence))
508 inferred_features[col] = typed_sequence.get_inferred_type()
509 schema = inferred_features.arrow_schema if self.pa_writer is None else self.schema
/usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array()
/usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._handle_arrow_array_protocol()
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py](https://localhost:8080/#) in __arrow_array__(self, type)
175 storage = list_of_np_array_to_pyarrow_listarray(data, type=pa_type.value_type)
176 else:
--> 177 storage = pa.array(data, pa_type.storage_dtype)
178 return pa.ExtensionArray.from_storage(pa_type, storage)
179
/usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array()
/usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array()
/usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
/usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowInvalid: Can only convert 1-dimensional array values
```
**Describe the solution you'd like**
No error in the second scenario and an identical result to the following snippets.
**Describe alternatives you've considered**
There are other alternatives that work such as:
```python
def prepare_dataset_3D_bis(batch):
batch["pixel_values"] = [[data_map[index].tolist()] for index in batch["id"]]
return batch
ds_3D_bis = ds.map(
prepare_dataset_3D_bis,
batched=True,
remove_columns=ds.column_names,
features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")})
)
```
or
```python
def prepare_dataset_3D_ter(batch):
batch["pixel_values"] = [data_map[index][np.newaxis, :, :] for index in batch["id"]]
return batch
ds_3D_ter = ds.map(
prepare_dataset_3D_ter,
batched=True,
remove_columns=ds.column_names,
features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")})
)
```
But both solutions require the user to be aware that `data_map[index]` is an `np.array` type.
cc @lhoestq as we discuss this offline :smile:
Hi @SaulLu, thanks for your proposal.
Just I got a bit confused about the dimensions...
- For the 2D case, you mention it is possible to create an `Array2D` from a list of arrays of dimension 1
- However, you give an example of creating an `Array2D` from arrays of dimension 2:
- the values of `data_map` are arrays of dimension 2
- the outer list in `prepare_dataset_2D` should not be taken into account in the dimension counting, as it is used because in `map` you pass `batched=True`
Note that for the 3D alternatives you mention:
- In `prepare_dataset_3D_ter`, you create an `Array3D` from arrays of dimension 3:
- the array `data_map[index][np.newaxis, :, :]` has dimension 3
- the outer list in `prepare_dataset_3D_ter` is the one used by `batched=True`
- In `prepare_dataset_3D_bis`, you create an `Array3D` from a list of list of lists:
- the value of `data_map[index].tolist()` is a list of lists
- it is enclosed by another list `[data_map[index].tolist()]`, thus giving a list of list of lists
- the outer list is the one used by `batched=True`
Therefore, if I understand correctly, your request would be to be able to create an `Array3D` from a list of an array of dimension 2:
- In `prepare_dataset_3D`, `data_map[index]` is an array of dimension 2
- it is enclosed by a list `[data_map[index]]`, thus giving a list of an array of dimension 2
- the outer list is the one used by `batched=True`
Please, feel free to tell me if I did not understand you correctly. | [
0.3124177456,
-0.2744894028,
-0.1943417341,
0.1792210191,
0.1064045355,
0.2191018909,
0.752160728,
0.3646605909,
0.3426304162,
0.0763215721,
0.2014093101,
0.0522667319,
-0.2193995863,
0.5241888165,
0.1322811246,
-0.5646165013,
0.2458340824,
0.2844041884,
-0.1231604069,
0.1496687382,
-0.2233373821,
-0.1280684918,
-0.0006182427,
-0.0929520056,
0.0519311391,
0.0310987383,
-0.0843713507,
-0.1852821112,
0.0174002759,
-0.176535055,
0.4381723106,
-0.1732208282,
0.2898284197,
0.0561635196,
-0.0001115813,
-0.1254150867,
-0.0242708717,
-0.0681997687,
0.3044510782,
0.0578655265,
0.2135266066,
-0.7209256887,
-0.0195668116,
-0.4159522951,
-0.0557675771,
-0.2264046073,
-0.3896493018,
-0.343503058,
0.1084232032,
-0.0389245749,
0.1528468579,
0.2144787759,
0.3267787695,
0.0226098262,
0.1581034809,
0.4540355206,
-0.4738719165,
-0.3463342786,
0.1678275168,
-0.1274490356,
0.823898375,
0.1623221487,
-0.4525137544,
0.1733205467,
0.3873009086,
0.0890694037,
0.395896703,
-0.4234045744,
-0.2201867998,
0.4709154069,
0.3154150248,
-0.300287962,
-0.2820756137,
-0.1446681619,
0.0259963442,
-0.159270972,
-0.2274957746,
0.2449515462,
-0.1849410683,
-0.0536961108,
-0.1857223809,
0.0334289186,
-0.223356396,
0.029785106,
0.012824445,
-0.1202101782,
0.0651324764,
0.0916426182,
-0.0077884258,
-0.2107614726,
0.3491175771,
-0.0345323868,
0.3067869842,
0.1271313727,
-0.2541283965,
-0.3199540079,
0.1266256273,
-0.5901061296,
-0.2056434602,
-0.3136786819,
0.1856262833,
-0.1893845648,
0.1056164652,
0.0681280419,
-0.0665332153,
0.3419539034,
-0.0975657329,
-0.1610066891,
-0.2705243528,
0.1035632864,
0.2720777392,
0.0987167358,
0.0035998556,
0.2550298274,
0.1200269535,
0.0899311975,
0.3233868182,
0.2999128401,
-0.101532571,
0.0636482164,
-0.4410651028,
-0.0098076798,
-0.139407292,
-0.01301488,
0.1571848094,
0.3901597261,
-0.0574064404,
0.2613072395,
0.1089736074,
-0.1115300432,
-0.0123019079,
0.1054494828,
-0.0018100473,
-0.0841864422,
0.1417907178,
0.848623693,
-0.0772399828,
-0.0077900905,
0.3473010063,
0.115439713,
0.1034721136,
-0.0755428672,
0.2509482801,
0.2246708125,
0.0172112118,
-0.1028927565,
0.3072968721,
0.1333876699,
-0.189822033,
0.1736739129,
0.1409506053,
-0.0890349895,
-0.377491802,
0.0915887281,
0.0269953702,
0.1973095536,
-0.187879771,
0.2137767971,
0.2295258343,
-0.0785274878,
0.0852032602,
-0.2228926718,
-0.009187148,
-0.5023841262,
-0.0975409746,
-0.0843452141,
-0.4470399618,
0.2102561891,
-0.1139267311,
0.0905598626,
-0.0249424055,
0.1701758951,
-0.0735694841,
-0.1770007908,
-0.0721019581,
0.1924171448,
-0.0213459879,
0.0828658864,
0.0760694146,
0.2004969865,
0.0474743731,
0.3127055168,
0.3834455311,
0.2685553133,
0.1199753135,
-0.2980225682,
-0.0730020255,
0.3768974841,
-0.0982674286,
0.0550941043,
0.069138743,
-0.3063420951,
0.5648630857,
-0.2242385894,
0.0921959803,
0.0760301426,
-0.0709155202,
-0.2135319263,
0.17463395,
-0.43579036,
0.1401178986,
-0.0596957952,
0.3034640849,
-0.0834738016,
-0.0947704613,
-0.1819915175,
-0.574126184,
0.2246315479,
-0.121705547,
-0.2091362625,
0.2487173378,
-0.2457594872,
-0.0315531567,
-0.0558885038,
0.0349779204,
0.0225919373,
0.1267314404,
-0.0994130448,
0.1903843582,
-0.3366726935,
-0.1625891477,
-0.3366004229,
0.2600000203,
-0.2182480246,
-0.3193677664,
0.3769772053,
0.150346756,
-0.0593870655,
-0.2687223256,
0.2968423069,
0.1753017753,
-0.0658299103,
0.1418449134,
-0.0290864389,
0.2907424271,
-0.1493253857,
-0.2163274139,
0.5118682981,
0.0051071518,
0.0669284761,
0.2699764073,
0.0783186108,
0.1848628074,
-0.1079730764,
0.1147539392,
0.5115676522,
-0.2315617949,
0.3922676742,
-0.2081471682,
0.2191676348,
-0.044920586,
0.0485050753,
-0.0041318573,
-0.2440000772,
-0.2206347436,
-0.032489147,
-0.4004831016,
-0.1765015125,
-0.2239359766,
0.5375979543,
-0.0094335638,
0.00370257,
0.1542966515,
-0.0022963653,
0.3466111422,
0.0706664026,
-0.1828385592,
0.0849491507,
0.1820129752,
0.0771262795,
-0.1033680663,
0.0580597483,
-0.0499954335,
0.1115057841,
0.2751440108,
0.0893490016,
0.3047620356,
-0.0821768641,
0.206174776,
-0.0813013762,
0.2577295899,
-0.1169709563,
0.2058738768,
0.0026891688,
-0.1019284949,
0.031839896,
0.0406983942,
-0.2199055403,
-0.0712371543,
-0.5358254313,
-0.2424115837,
0.1454070807,
-0.2854688466,
0.1082453132,
-0.1073299721,
-0.2181986272,
-0.0537109822,
0.0037847743,
0.1172509938,
0.0355718397,
0.1898234338,
0.1049690172,
0.2224021405,
0.1042744368,
-0.0991678387,
0.094681859,
0.1994485855,
0.2648816109,
-0.0260824934,
-0.2296663076,
-0.0601846948,
-0.0126653351,
-0.2320839763,
0.2373226881,
0.4512215555,
0.091514729,
-0.2103971392,
-0.22797364,
0.2054010183,
0.2228319794,
-0.0765555054,
-0.0720406175,
0.374343574,
-0.1009850949,
-0.0299458932,
-0.0711297393,
-0.0524743088,
-0.2332421094,
0.1640170962,
-0.252525866,
0.439278096,
-0.3091938496,
0.1464746296,
0.18888852,
0.5131560564,
-0.0676701218,
-0.1850387454,
0.2667839229,
-0.0352528021,
-0.1525305212,
0.0143391779,
-0.2574075758,
-0.2434896082,
-0.0362229384,
0.2483485341,
-0.0849957839,
-0.4739371538,
-0.259033531,
-0.0007405819,
-0.1258585751,
-0.0722767115,
0.4797109365,
-0.0259075146,
-0.0541067235,
-0.051678326,
-0.3136697114,
0.1288146973,
0.4482624531,
0.1658514589,
0.1578283012,
0.567719698,
-0.0331305712,
0.370233357,
0.1183789149,
0.0423044674,
0.4647996724,
0.2375515401,
0.1512742788,
-0.0668162555,
-0.3670324385,
0.0215742271,
-0.1473674327,
-0.5025125146,
-0.2335488796,
-0.2004036903,
-0.4074823856,
-0.0325053968,
0.3739865124,
-0.2443947941,
0.0179813206,
-0.014622516,
-0.0308717247,
0.5235707164,
-0.0457587577,
0.1908077896,
-0.3085766435,
0.235493958,
-0.1314494014,
-0.0401589386,
0.5050789118,
-0.0536329746,
-0.3370073736,
-0.6042525768,
-0.3516182601,
0.2652111053,
0.4675009847,
0.579695642,
0.0134757757,
-0.2656960487,
-0.090165697,
0.06724713,
1.0600341558,
-0.2187056094,
-0.1572336704,
0.5560860038,
-0.3393897414,
-0.182795167,
-0.336584568,
-0.031153243,
-0.2849351764,
0.0061649773,
0.2795759737,
-0.2632161975,
0.0476715378,
0.0508885793,
0.2690363824,
-0.1087892354,
-0.097157456,
-0.1696133614,
-0.0929584876,
0.0353678949,
-0.4320441186,
0.0342327207,
0.3350324929,
0.278287828,
0.0282067806,
-0.3400398195,
-0.2894937694,
0.075747408,
-0.1041052416,
0.2674206197,
0.2972295582,
0.202731505,
-0.2470409423,
0.0629701167,
-0.0951679274,
-0.1159203053,
0.1084993333,
0.0975865722,
-0.0718720928,
-0.0288740452,
0.3854815364,
0.3710023165,
0.1266799718,
0.1228176057,
-0.4576078057,
0.1194950119,
-0.2124637514,
-0.3716834188,
0.4616397619,
-0.3928762376,
-0.0086246962,
-0.3551380634,
0.2630036771,
0.0015915898,
-0.0011138747,
0.0557963736,
0.1404023021,
-0.1304250956,
0.4157848656,
0.4143253863,
0.7595921755,
-0.2128377557,
0.1123894751,
0.3683363199,
-0.0944097713,
0.2643943727,
0.2875387073,
0.2281468064,
-0.2870107889,
-0.3333234489,
-0.2878739238,
-0.0535354912,
0.2615709007,
0.012582738,
0.0202873256,
0.0323724449,
-0.1084191129,
-0.0505130515,
-0.0538840592,
-0.4404482245,
0.3133432269,
-0.1963678598,
-0.3274005353,
0.0234753937,
-0.0868154392,
-0.3508991897,
-0.0419108048,
-0.2867663801,
-0.0503557064,
0.0058530136,
-0.3428893983,
-0.0293346513,
-0.0023933167,
0.2972881496,
0.1917486042,
-0.3733298182,
0.0209809318,
0.0578783117,
0.1648880243,
-0.1240037754,
-0.074497208,
-0.2936055958,
0.4263133109,
-0.1242476255,
-0.2075144649,
-0.5141613483,
0.1546477675,
-0.0066616861,
-0.0154792285,
0.0790028349,
0.108168751,
-0.0299563557,
-0.5156161189,
0.0074888188,
0.3237681985,
-0.2554020882,
-0.3743026555,
0.0339903943,
-0.024666002,
-0.1371625066,
0.0978834331,
-0.0607924983,
-0.3219869435,
0.2794780135,
0.0888122022,
-0.0253101531,
-0.0264267437,
0.1011686623,
0.3083019555,
0.0250739511,
0.0352232233,
0.2524092197,
-0.0325580649,
-0.2144924551,
0.2503018081,
-0.0352554917,
0.1974606067,
0.3408673406,
-0.0180096887,
-0.2638122141,
-0.0466699302,
0.0744079947,
0.0610394925,
0.338478297,
-0.1693830341,
-0.2426055074,
0.1574261189,
0.1041359231,
0.1837924719,
0.1005578861,
-0.2981009781,
0.0238202885,
-0.3176158667,
-0.0122629898,
-0.2571694553,
-0.0822417215,
0.0674094334,
0.1148903444,
-0.2206146568,
-0.0568224527,
-0.1999993026,
0.0080371285,
0.1322999597,
-0.0527540855,
-0.1728146672,
-0.1781515926,
-0.15616633,
0.1397589892,
-0.1570747346,
-0.1569673866,
0.1646053493,
-0.1481693089,
-0.4999346733,
-0.2463186085,
0.0184797384,
0.1635095775,
-0.0956286266,
-0.0697461218,
-0.1540635526,
0.0154860839,
-0.033670187,
-0.0875192583,
-0.1821513623,
0.0367492288,
0.1791572422,
0.0428517275,
-0.0303109512,
0.0507964119,
-0.1982009709,
-0.0746297017,
-0.3574145138,
-0.2848268449,
0.4346754253,
-0.1379890293,
-0.2774619162,
0.0440321155,
0.647241652,
-0.1247972921,
-0.2015319467,
0.018779669,
0.0447814055,
0.2386489511,
-0.2666421831,
0.0077996221,
0.1368422508,
0.1663792878,
0.0171421207,
0.6715105772,
0.2453952432,
0.3097452819,
-0.1954043061,
-0.0869682431,
0.1040312871,
0.1663051993,
0.1647600532,
0.5389294624,
0.1174014434,
-0.0406252109,
-0.0192834903,
-0.0266459268,
0.4101108015,
0.4731989205,
0.1564185619,
0.2391047627,
0.2660687268,
0.2545760572,
0.0957230404,
0.001729151,
0.1739556044,
-0.0491026901,
0.1391341239,
0.1366775483,
0.0188366175,
-0.1974687874,
-0.3538183272,
-0.1515227705,
-0.5707223415,
0.194103241,
-0.0850047991,
0.0649521202,
0.336250037,
-0.189684689,
-0.0909251198,
-0.1835408062,
0.1232942268,
-0.1363345087,
0.115291521,
-0.0673495308,
0.1400034726,
-0.0137706865,
0.236350581,
0.1262309402,
0.2812206745,
-0.1441220194,
-0.1651581675,
0.3830849826,
-0.1759784967,
-0.1975240856,
0.2055545747,
0.1929784119,
0.417965889,
-0.3377991319,
-0.0279652458,
-0.3026460111,
-0.1234636158,
-0.0293081012,
0.029067846,
-0.0484631918,
0.4264663458,
0.1823224872,
0.0433000438,
-0.0516596027,
0.0079172105,
-0.1642913967,
0.1355652213,
-0.413313061,
0.6912875175,
-0.4423784316,
0.1608065069,
-0.2183371931,
0.0040039816,
-0.44915694,
-0.2926701307,
0.20122087,
0.0026565199,
0.0144531904,
0.2090705484,
0.0379519835,
-0.462777853,
0.419326961,
-0.2128076106,
-0.0103244381,
-0.25867185,
0.133379072,
-0.1290572435,
-0.1089438871,
-0.1061664671,
-0.2059446275,
0.4520977437,
0.223706767,
0.1531107724,
0.1857323498,
-0.0401958488,
0.2429719716,
0.0663528368,
0.5038549304,
-0.2275369763,
0.0324724354,
0.0764233172,
-0.0396278575,
0.0825679526,
-0.3567523062,
0.2407557815,
0.0778573677,
0.0350184031,
-0.1963869929,
0.1010744348,
-0.1310003698,
0.3892249465,
0.3037387431,
0.2470408976,
0.2196873873,
0.0314900093,
-0.1244022623,
-0.0703692436,
0.1216096729,
-0.0185866375,
0.3590503633,
-0.0429044813,
0.4617584944,
-0.3072629869,
0.0990043506,
-0.1220074743,
0.5585774779,
0.1097502112,
0.1181679219,
-0.0705272779,
0.1681296378,
-0.5176775455,
0.0004731043,
0.0289716795,
-0.0279268529,
-0.0361016691,
0.4113180935,
0.0596214496,
-0.3046106398,
0.6858299971,
0.01462912,
-0.5025325418,
-0.0664749667,
0.0834352672,
-0.0601897351,
-0.08710704,
-0.2883540094,
-0.2299316078,
0.1168380827,
0.0166774038,
0.1255584806,
0.1766580045,
-0.4892167449,
-0.0599484257,
0.0620073341,
0.1934978664,
-0.3126057982,
-0.2701071799,
-0.220019564,
-0.0223968569
] |
https://github.com/huggingface/datasets/issues/4191 | feat: create an `Array3D` column from a list of arrays of dimension 2 | Hi @albertvillanova ,
Indeed my message was confusing and you guessed right :smile: : I think would be interesting to be able to create an Array3D from a list of an array of dimension 2.
For the 2D case I should have given as a "similar" example:
```python
data_map_1D = {
1: np.array([0.2, 0.4]),
2: np.array([0.1, 0.4]),
}
def prepare_dataset_2D(batch):
batch["pixel_values"] = [[data_map_1D[index]] for index in batch["id"]]
return batch
ds_2D = ds.map(
prepare_dataset_2D,
batched=True,
remove_columns=ds.column_names,
features=features.Features({"pixel_values": features.Array2D(shape=(1, 2), dtype="float32")})
)
``` | **Is your feature request related to a problem? Please describe.**
It is possible to create an `Array2D` column from a list of arrays of dimension 1. Similarly, I think it might be nice to be able to create a `Array3D` column from a list of lists of arrays of dimension 1.
To illustrate my proposal, let's take the following toy dataset t:
```python
import numpy as np
from datasets import Dataset, features
data_map = {
1: np.array([[0.2, 0,4],[0.19, 0,3]]),
2: np.array([[0.1, 0,4],[0.19, 0,3]]),
}
def create_toy_ds():
my_dict = {"id":[1, 2]}
return Dataset.from_dict(my_dict)
ds = create_toy_ds()
```
The following 2D processing works without any errors raised:
```python
def prepare_dataset_2D(batch):
batch["pixel_values"] = [data_map[index] for index in batch["id"]]
return batch
ds_2D = ds.map(
prepare_dataset_2D,
batched=True,
remove_columns=ds.column_names,
features=features.Features({"pixel_values": features.Array2D(shape=(2, 3), dtype="float32")})
)
```
The following 3D processing doesn't work:
```python
def prepare_dataset_3D(batch):
batch["pixel_values"] = [[data_map[index]] for index in batch["id"]]
return batch
ds_3D = ds.map(
prepare_dataset_3D,
batched=True,
remove_columns=ds.column_names,
features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3, dtype="float32")})
)
```
The error raised is:
```
---------------------------------------------------------------------------
ArrowInvalid Traceback (most recent call last)
[<ipython-input-6-676547e4cd41>](https://localhost:8080/#) in <module>()
3 batched=True,
4 remove_columns=ds.column_names,
----> 5 features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")})
6 )
12 frames
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc)
1971 new_fingerprint=new_fingerprint,
1972 disable_tqdm=disable_tqdm,
-> 1973 desc=desc,
1974 )
1975 else:
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in wrapper(*args, **kwargs)
518 self: "Dataset" = kwargs.pop("self")
519 # apply actual function
--> 520 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
521 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out]
522 for dataset in datasets:
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in wrapper(*args, **kwargs)
485 }
486 # apply actual function
--> 487 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
488 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out]
489 # re-apply format to the output
[/usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py](https://localhost:8080/#) in wrapper(*args, **kwargs)
456 # Call actual function
457
--> 458 out = func(self, *args, **kwargs)
459
460 # Update fingerprint of in-place transforms + update in-place history of transforms
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only)
2354 writer.write_table(batch)
2355 else:
-> 2356 writer.write_batch(batch)
2357 if update_data and writer is not None:
2358 writer.finalize() # close_stream=bool(buf_writer is None)) # We only close if we are writing in a file
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py](https://localhost:8080/#) in write_batch(self, batch_examples, writer_batch_size)
505 col_try_type = try_features[col] if try_features is not None and col in try_features else None
506 typed_sequence = OptimizedTypedSequence(batch_examples[col], type=col_type, try_type=col_try_type, col=col)
--> 507 arrays.append(pa.array(typed_sequence))
508 inferred_features[col] = typed_sequence.get_inferred_type()
509 schema = inferred_features.arrow_schema if self.pa_writer is None else self.schema
/usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array()
/usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._handle_arrow_array_protocol()
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py](https://localhost:8080/#) in __arrow_array__(self, type)
175 storage = list_of_np_array_to_pyarrow_listarray(data, type=pa_type.value_type)
176 else:
--> 177 storage = pa.array(data, pa_type.storage_dtype)
178 return pa.ExtensionArray.from_storage(pa_type, storage)
179
/usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array()
/usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array()
/usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
/usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowInvalid: Can only convert 1-dimensional array values
```
**Describe the solution you'd like**
No error in the second scenario and an identical result to the following snippets.
**Describe alternatives you've considered**
There are other alternatives that work such as:
```python
def prepare_dataset_3D_bis(batch):
batch["pixel_values"] = [[data_map[index].tolist()] for index in batch["id"]]
return batch
ds_3D_bis = ds.map(
prepare_dataset_3D_bis,
batched=True,
remove_columns=ds.column_names,
features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")})
)
```
or
```python
def prepare_dataset_3D_ter(batch):
batch["pixel_values"] = [data_map[index][np.newaxis, :, :] for index in batch["id"]]
return batch
ds_3D_ter = ds.map(
prepare_dataset_3D_ter,
batched=True,
remove_columns=ds.column_names,
features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")})
)
```
But both solutions require the user to be aware that `data_map[index]` is an `np.array` type.
cc @lhoestq as we discuss this offline :smile: | 81 | feat: create an `Array3D` column from a list of arrays of dimension 2
**Is your feature request related to a problem? Please describe.**
It is possible to create an `Array2D` column from a list of arrays of dimension 1. Similarly, I think it might be nice to be able to create a `Array3D` column from a list of lists of arrays of dimension 1.
To illustrate my proposal, let's take the following toy dataset t:
```python
import numpy as np
from datasets import Dataset, features
data_map = {
1: np.array([[0.2, 0,4],[0.19, 0,3]]),
2: np.array([[0.1, 0,4],[0.19, 0,3]]),
}
def create_toy_ds():
my_dict = {"id":[1, 2]}
return Dataset.from_dict(my_dict)
ds = create_toy_ds()
```
The following 2D processing works without any errors raised:
```python
def prepare_dataset_2D(batch):
batch["pixel_values"] = [data_map[index] for index in batch["id"]]
return batch
ds_2D = ds.map(
prepare_dataset_2D,
batched=True,
remove_columns=ds.column_names,
features=features.Features({"pixel_values": features.Array2D(shape=(2, 3), dtype="float32")})
)
```
The following 3D processing doesn't work:
```python
def prepare_dataset_3D(batch):
batch["pixel_values"] = [[data_map[index]] for index in batch["id"]]
return batch
ds_3D = ds.map(
prepare_dataset_3D,
batched=True,
remove_columns=ds.column_names,
features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3, dtype="float32")})
)
```
The error raised is:
```
---------------------------------------------------------------------------
ArrowInvalid Traceback (most recent call last)
[<ipython-input-6-676547e4cd41>](https://localhost:8080/#) in <module>()
3 batched=True,
4 remove_columns=ds.column_names,
----> 5 features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")})
6 )
12 frames
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc)
1971 new_fingerprint=new_fingerprint,
1972 disable_tqdm=disable_tqdm,
-> 1973 desc=desc,
1974 )
1975 else:
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in wrapper(*args, **kwargs)
518 self: "Dataset" = kwargs.pop("self")
519 # apply actual function
--> 520 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
521 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out]
522 for dataset in datasets:
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in wrapper(*args, **kwargs)
485 }
486 # apply actual function
--> 487 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
488 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out]
489 # re-apply format to the output
[/usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py](https://localhost:8080/#) in wrapper(*args, **kwargs)
456 # Call actual function
457
--> 458 out = func(self, *args, **kwargs)
459
460 # Update fingerprint of in-place transforms + update in-place history of transforms
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only)
2354 writer.write_table(batch)
2355 else:
-> 2356 writer.write_batch(batch)
2357 if update_data and writer is not None:
2358 writer.finalize() # close_stream=bool(buf_writer is None)) # We only close if we are writing in a file
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py](https://localhost:8080/#) in write_batch(self, batch_examples, writer_batch_size)
505 col_try_type = try_features[col] if try_features is not None and col in try_features else None
506 typed_sequence = OptimizedTypedSequence(batch_examples[col], type=col_type, try_type=col_try_type, col=col)
--> 507 arrays.append(pa.array(typed_sequence))
508 inferred_features[col] = typed_sequence.get_inferred_type()
509 schema = inferred_features.arrow_schema if self.pa_writer is None else self.schema
/usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array()
/usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._handle_arrow_array_protocol()
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py](https://localhost:8080/#) in __arrow_array__(self, type)
175 storage = list_of_np_array_to_pyarrow_listarray(data, type=pa_type.value_type)
176 else:
--> 177 storage = pa.array(data, pa_type.storage_dtype)
178 return pa.ExtensionArray.from_storage(pa_type, storage)
179
/usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array()
/usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array()
/usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
/usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowInvalid: Can only convert 1-dimensional array values
```
**Describe the solution you'd like**
No error in the second scenario and an identical result to the following snippets.
**Describe alternatives you've considered**
There are other alternatives that work such as:
```python
def prepare_dataset_3D_bis(batch):
batch["pixel_values"] = [[data_map[index].tolist()] for index in batch["id"]]
return batch
ds_3D_bis = ds.map(
prepare_dataset_3D_bis,
batched=True,
remove_columns=ds.column_names,
features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")})
)
```
or
```python
def prepare_dataset_3D_ter(batch):
batch["pixel_values"] = [data_map[index][np.newaxis, :, :] for index in batch["id"]]
return batch
ds_3D_ter = ds.map(
prepare_dataset_3D_ter,
batched=True,
remove_columns=ds.column_names,
features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")})
)
```
But both solutions require the user to be aware that `data_map[index]` is an `np.array` type.
cc @lhoestq as we discuss this offline :smile:
Hi @albertvillanova ,
Indeed my message was confusing and you guessed right :smile: : I think would be interesting to be able to create an Array3D from a list of an array of dimension 2.
For the 2D case I should have given as a "similar" example:
```python
data_map_1D = {
1: np.array([0.2, 0.4]),
2: np.array([0.1, 0.4]),
}
def prepare_dataset_2D(batch):
batch["pixel_values"] = [[data_map_1D[index]] for index in batch["id"]]
return batch
ds_2D = ds.map(
prepare_dataset_2D,
batched=True,
remove_columns=ds.column_names,
features=features.Features({"pixel_values": features.Array2D(shape=(1, 2), dtype="float32")})
)
``` | [
0.3124177456,
-0.2744894028,
-0.1943417341,
0.1792210191,
0.1064045355,
0.2191018909,
0.752160728,
0.3646605909,
0.3426304162,
0.0763215721,
0.2014093101,
0.0522667319,
-0.2193995863,
0.5241888165,
0.1322811246,
-0.5646165013,
0.2458340824,
0.2844041884,
-0.1231604069,
0.1496687382,
-0.2233373821,
-0.1280684918,
-0.0006182427,
-0.0929520056,
0.0519311391,
0.0310987383,
-0.0843713507,
-0.1852821112,
0.0174002759,
-0.176535055,
0.4381723106,
-0.1732208282,
0.2898284197,
0.0561635196,
-0.0001115813,
-0.1254150867,
-0.0242708717,
-0.0681997687,
0.3044510782,
0.0578655265,
0.2135266066,
-0.7209256887,
-0.0195668116,
-0.4159522951,
-0.0557675771,
-0.2264046073,
-0.3896493018,
-0.343503058,
0.1084232032,
-0.0389245749,
0.1528468579,
0.2144787759,
0.3267787695,
0.0226098262,
0.1581034809,
0.4540355206,
-0.4738719165,
-0.3463342786,
0.1678275168,
-0.1274490356,
0.823898375,
0.1623221487,
-0.4525137544,
0.1733205467,
0.3873009086,
0.0890694037,
0.395896703,
-0.4234045744,
-0.2201867998,
0.4709154069,
0.3154150248,
-0.300287962,
-0.2820756137,
-0.1446681619,
0.0259963442,
-0.159270972,
-0.2274957746,
0.2449515462,
-0.1849410683,
-0.0536961108,
-0.1857223809,
0.0334289186,
-0.223356396,
0.029785106,
0.012824445,
-0.1202101782,
0.0651324764,
0.0916426182,
-0.0077884258,
-0.2107614726,
0.3491175771,
-0.0345323868,
0.3067869842,
0.1271313727,
-0.2541283965,
-0.3199540079,
0.1266256273,
-0.5901061296,
-0.2056434602,
-0.3136786819,
0.1856262833,
-0.1893845648,
0.1056164652,
0.0681280419,
-0.0665332153,
0.3419539034,
-0.0975657329,
-0.1610066891,
-0.2705243528,
0.1035632864,
0.2720777392,
0.0987167358,
0.0035998556,
0.2550298274,
0.1200269535,
0.0899311975,
0.3233868182,
0.2999128401,
-0.101532571,
0.0636482164,
-0.4410651028,
-0.0098076798,
-0.139407292,
-0.01301488,
0.1571848094,
0.3901597261,
-0.0574064404,
0.2613072395,
0.1089736074,
-0.1115300432,
-0.0123019079,
0.1054494828,
-0.0018100473,
-0.0841864422,
0.1417907178,
0.848623693,
-0.0772399828,
-0.0077900905,
0.3473010063,
0.115439713,
0.1034721136,
-0.0755428672,
0.2509482801,
0.2246708125,
0.0172112118,
-0.1028927565,
0.3072968721,
0.1333876699,
-0.189822033,
0.1736739129,
0.1409506053,
-0.0890349895,
-0.377491802,
0.0915887281,
0.0269953702,
0.1973095536,
-0.187879771,
0.2137767971,
0.2295258343,
-0.0785274878,
0.0852032602,
-0.2228926718,
-0.009187148,
-0.5023841262,
-0.0975409746,
-0.0843452141,
-0.4470399618,
0.2102561891,
-0.1139267311,
0.0905598626,
-0.0249424055,
0.1701758951,
-0.0735694841,
-0.1770007908,
-0.0721019581,
0.1924171448,
-0.0213459879,
0.0828658864,
0.0760694146,
0.2004969865,
0.0474743731,
0.3127055168,
0.3834455311,
0.2685553133,
0.1199753135,
-0.2980225682,
-0.0730020255,
0.3768974841,
-0.0982674286,
0.0550941043,
0.069138743,
-0.3063420951,
0.5648630857,
-0.2242385894,
0.0921959803,
0.0760301426,
-0.0709155202,
-0.2135319263,
0.17463395,
-0.43579036,
0.1401178986,
-0.0596957952,
0.3034640849,
-0.0834738016,
-0.0947704613,
-0.1819915175,
-0.574126184,
0.2246315479,
-0.121705547,
-0.2091362625,
0.2487173378,
-0.2457594872,
-0.0315531567,
-0.0558885038,
0.0349779204,
0.0225919373,
0.1267314404,
-0.0994130448,
0.1903843582,
-0.3366726935,
-0.1625891477,
-0.3366004229,
0.2600000203,
-0.2182480246,
-0.3193677664,
0.3769772053,
0.150346756,
-0.0593870655,
-0.2687223256,
0.2968423069,
0.1753017753,
-0.0658299103,
0.1418449134,
-0.0290864389,
0.2907424271,
-0.1493253857,
-0.2163274139,
0.5118682981,
0.0051071518,
0.0669284761,
0.2699764073,
0.0783186108,
0.1848628074,
-0.1079730764,
0.1147539392,
0.5115676522,
-0.2315617949,
0.3922676742,
-0.2081471682,
0.2191676348,
-0.044920586,
0.0485050753,
-0.0041318573,
-0.2440000772,
-0.2206347436,
-0.032489147,
-0.4004831016,
-0.1765015125,
-0.2239359766,
0.5375979543,
-0.0094335638,
0.00370257,
0.1542966515,
-0.0022963653,
0.3466111422,
0.0706664026,
-0.1828385592,
0.0849491507,
0.1820129752,
0.0771262795,
-0.1033680663,
0.0580597483,
-0.0499954335,
0.1115057841,
0.2751440108,
0.0893490016,
0.3047620356,
-0.0821768641,
0.206174776,
-0.0813013762,
0.2577295899,
-0.1169709563,
0.2058738768,
0.0026891688,
-0.1019284949,
0.031839896,
0.0406983942,
-0.2199055403,
-0.0712371543,
-0.5358254313,
-0.2424115837,
0.1454070807,
-0.2854688466,
0.1082453132,
-0.1073299721,
-0.2181986272,
-0.0537109822,
0.0037847743,
0.1172509938,
0.0355718397,
0.1898234338,
0.1049690172,
0.2224021405,
0.1042744368,
-0.0991678387,
0.094681859,
0.1994485855,
0.2648816109,
-0.0260824934,
-0.2296663076,
-0.0601846948,
-0.0126653351,
-0.2320839763,
0.2373226881,
0.4512215555,
0.091514729,
-0.2103971392,
-0.22797364,
0.2054010183,
0.2228319794,
-0.0765555054,
-0.0720406175,
0.374343574,
-0.1009850949,
-0.0299458932,
-0.0711297393,
-0.0524743088,
-0.2332421094,
0.1640170962,
-0.252525866,
0.439278096,
-0.3091938496,
0.1464746296,
0.18888852,
0.5131560564,
-0.0676701218,
-0.1850387454,
0.2667839229,
-0.0352528021,
-0.1525305212,
0.0143391779,
-0.2574075758,
-0.2434896082,
-0.0362229384,
0.2483485341,
-0.0849957839,
-0.4739371538,
-0.259033531,
-0.0007405819,
-0.1258585751,
-0.0722767115,
0.4797109365,
-0.0259075146,
-0.0541067235,
-0.051678326,
-0.3136697114,
0.1288146973,
0.4482624531,
0.1658514589,
0.1578283012,
0.567719698,
-0.0331305712,
0.370233357,
0.1183789149,
0.0423044674,
0.4647996724,
0.2375515401,
0.1512742788,
-0.0668162555,
-0.3670324385,
0.0215742271,
-0.1473674327,
-0.5025125146,
-0.2335488796,
-0.2004036903,
-0.4074823856,
-0.0325053968,
0.3739865124,
-0.2443947941,
0.0179813206,
-0.014622516,
-0.0308717247,
0.5235707164,
-0.0457587577,
0.1908077896,
-0.3085766435,
0.235493958,
-0.1314494014,
-0.0401589386,
0.5050789118,
-0.0536329746,
-0.3370073736,
-0.6042525768,
-0.3516182601,
0.2652111053,
0.4675009847,
0.579695642,
0.0134757757,
-0.2656960487,
-0.090165697,
0.06724713,
1.0600341558,
-0.2187056094,
-0.1572336704,
0.5560860038,
-0.3393897414,
-0.182795167,
-0.336584568,
-0.031153243,
-0.2849351764,
0.0061649773,
0.2795759737,
-0.2632161975,
0.0476715378,
0.0508885793,
0.2690363824,
-0.1087892354,
-0.097157456,
-0.1696133614,
-0.0929584876,
0.0353678949,
-0.4320441186,
0.0342327207,
0.3350324929,
0.278287828,
0.0282067806,
-0.3400398195,
-0.2894937694,
0.075747408,
-0.1041052416,
0.2674206197,
0.2972295582,
0.202731505,
-0.2470409423,
0.0629701167,
-0.0951679274,
-0.1159203053,
0.1084993333,
0.0975865722,
-0.0718720928,
-0.0288740452,
0.3854815364,
0.3710023165,
0.1266799718,
0.1228176057,
-0.4576078057,
0.1194950119,
-0.2124637514,
-0.3716834188,
0.4616397619,
-0.3928762376,
-0.0086246962,
-0.3551380634,
0.2630036771,
0.0015915898,
-0.0011138747,
0.0557963736,
0.1404023021,
-0.1304250956,
0.4157848656,
0.4143253863,
0.7595921755,
-0.2128377557,
0.1123894751,
0.3683363199,
-0.0944097713,
0.2643943727,
0.2875387073,
0.2281468064,
-0.2870107889,
-0.3333234489,
-0.2878739238,
-0.0535354912,
0.2615709007,
0.012582738,
0.0202873256,
0.0323724449,
-0.1084191129,
-0.0505130515,
-0.0538840592,
-0.4404482245,
0.3133432269,
-0.1963678598,
-0.3274005353,
0.0234753937,
-0.0868154392,
-0.3508991897,
-0.0419108048,
-0.2867663801,
-0.0503557064,
0.0058530136,
-0.3428893983,
-0.0293346513,
-0.0023933167,
0.2972881496,
0.1917486042,
-0.3733298182,
0.0209809318,
0.0578783117,
0.1648880243,
-0.1240037754,
-0.074497208,
-0.2936055958,
0.4263133109,
-0.1242476255,
-0.2075144649,
-0.5141613483,
0.1546477675,
-0.0066616861,
-0.0154792285,
0.0790028349,
0.108168751,
-0.0299563557,
-0.5156161189,
0.0074888188,
0.3237681985,
-0.2554020882,
-0.3743026555,
0.0339903943,
-0.024666002,
-0.1371625066,
0.0978834331,
-0.0607924983,
-0.3219869435,
0.2794780135,
0.0888122022,
-0.0253101531,
-0.0264267437,
0.1011686623,
0.3083019555,
0.0250739511,
0.0352232233,
0.2524092197,
-0.0325580649,
-0.2144924551,
0.2503018081,
-0.0352554917,
0.1974606067,
0.3408673406,
-0.0180096887,
-0.2638122141,
-0.0466699302,
0.0744079947,
0.0610394925,
0.338478297,
-0.1693830341,
-0.2426055074,
0.1574261189,
0.1041359231,
0.1837924719,
0.1005578861,
-0.2981009781,
0.0238202885,
-0.3176158667,
-0.0122629898,
-0.2571694553,
-0.0822417215,
0.0674094334,
0.1148903444,
-0.2206146568,
-0.0568224527,
-0.1999993026,
0.0080371285,
0.1322999597,
-0.0527540855,
-0.1728146672,
-0.1781515926,
-0.15616633,
0.1397589892,
-0.1570747346,
-0.1569673866,
0.1646053493,
-0.1481693089,
-0.4999346733,
-0.2463186085,
0.0184797384,
0.1635095775,
-0.0956286266,
-0.0697461218,
-0.1540635526,
0.0154860839,
-0.033670187,
-0.0875192583,
-0.1821513623,
0.0367492288,
0.1791572422,
0.0428517275,
-0.0303109512,
0.0507964119,
-0.1982009709,
-0.0746297017,
-0.3574145138,
-0.2848268449,
0.4346754253,
-0.1379890293,
-0.2774619162,
0.0440321155,
0.647241652,
-0.1247972921,
-0.2015319467,
0.018779669,
0.0447814055,
0.2386489511,
-0.2666421831,
0.0077996221,
0.1368422508,
0.1663792878,
0.0171421207,
0.6715105772,
0.2453952432,
0.3097452819,
-0.1954043061,
-0.0869682431,
0.1040312871,
0.1663051993,
0.1647600532,
0.5389294624,
0.1174014434,
-0.0406252109,
-0.0192834903,
-0.0266459268,
0.4101108015,
0.4731989205,
0.1564185619,
0.2391047627,
0.2660687268,
0.2545760572,
0.0957230404,
0.001729151,
0.1739556044,
-0.0491026901,
0.1391341239,
0.1366775483,
0.0188366175,
-0.1974687874,
-0.3538183272,
-0.1515227705,
-0.5707223415,
0.194103241,
-0.0850047991,
0.0649521202,
0.336250037,
-0.189684689,
-0.0909251198,
-0.1835408062,
0.1232942268,
-0.1363345087,
0.115291521,
-0.0673495308,
0.1400034726,
-0.0137706865,
0.236350581,
0.1262309402,
0.2812206745,
-0.1441220194,
-0.1651581675,
0.3830849826,
-0.1759784967,
-0.1975240856,
0.2055545747,
0.1929784119,
0.417965889,
-0.3377991319,
-0.0279652458,
-0.3026460111,
-0.1234636158,
-0.0293081012,
0.029067846,
-0.0484631918,
0.4264663458,
0.1823224872,
0.0433000438,
-0.0516596027,
0.0079172105,
-0.1642913967,
0.1355652213,
-0.413313061,
0.6912875175,
-0.4423784316,
0.1608065069,
-0.2183371931,
0.0040039816,
-0.44915694,
-0.2926701307,
0.20122087,
0.0026565199,
0.0144531904,
0.2090705484,
0.0379519835,
-0.462777853,
0.419326961,
-0.2128076106,
-0.0103244381,
-0.25867185,
0.133379072,
-0.1290572435,
-0.1089438871,
-0.1061664671,
-0.2059446275,
0.4520977437,
0.223706767,
0.1531107724,
0.1857323498,
-0.0401958488,
0.2429719716,
0.0663528368,
0.5038549304,
-0.2275369763,
0.0324724354,
0.0764233172,
-0.0396278575,
0.0825679526,
-0.3567523062,
0.2407557815,
0.0778573677,
0.0350184031,
-0.1963869929,
0.1010744348,
-0.1310003698,
0.3892249465,
0.3037387431,
0.2470408976,
0.2196873873,
0.0314900093,
-0.1244022623,
-0.0703692436,
0.1216096729,
-0.0185866375,
0.3590503633,
-0.0429044813,
0.4617584944,
-0.3072629869,
0.0990043506,
-0.1220074743,
0.5585774779,
0.1097502112,
0.1181679219,
-0.0705272779,
0.1681296378,
-0.5176775455,
0.0004731043,
0.0289716795,
-0.0279268529,
-0.0361016691,
0.4113180935,
0.0596214496,
-0.3046106398,
0.6858299971,
0.01462912,
-0.5025325418,
-0.0664749667,
0.0834352672,
-0.0601897351,
-0.08710704,
-0.2883540094,
-0.2299316078,
0.1168380827,
0.0166774038,
0.1255584806,
0.1766580045,
-0.4892167449,
-0.0599484257,
0.0620073341,
0.1934978664,
-0.3126057982,
-0.2701071799,
-0.220019564,
-0.0223968569
] |
https://github.com/huggingface/datasets/issues/4185 | Librispeech documentation, clarification on format | The documentation in the code is definitely outdated - thanks for letting me know, I'll remove it in https://github.com/huggingface/datasets/pull/4184 .
You're exactly right `audio` `array` already decodes the audio file to the correct waveform. This is done on the fly, which is also why one should **not** do `ds["audio"]["array"][0]` as this will decode all dataset samples, but instead `ds[0]["audio"]["array"]` see: https://huggingface.co/docs/datasets/audio_process#audio-datasets
| https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53
> Note that in order to limit the required storage for preparing this dataset, the audio
> is stored in the .flac format and is not converted to a float32 array. To convert, the audio
> file to a float32 array, please make use of the `.map()` function as follows:
>
> ```python
> import soundfile as sf
> def map_to_array(batch):
> speech_array, _ = sf.read(batch["file"])
> batch["speech"] = speech_array
> return batch
> dataset = dataset.map(map_to_array, remove_columns=["file"])
> ```
Is this still true?
In my case, `ds["train.100"]` returns:
```
Dataset({
features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'],
num_rows: 28539
})
```
and taking the first instance yields:
```
{'file': '374-180298-0000.flac',
'audio': {'path': '374-180298-0000.flac',
'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ...,
-2.74658203e-04, -1.83105469e-04, -3.05175781e-05]),
'sampling_rate': 16000},
'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED',
'speaker_id': 374,
'chapter_id': 180298,
'id': '374-180298-0000'}
```
The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong?
But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk?
Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk?
A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert? | 61 | Librispeech documentation, clarification on format
https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53
> Note that in order to limit the required storage for preparing this dataset, the audio
> is stored in the .flac format and is not converted to a float32 array. To convert, the audio
> file to a float32 array, please make use of the `.map()` function as follows:
>
> ```python
> import soundfile as sf
> def map_to_array(batch):
> speech_array, _ = sf.read(batch["file"])
> batch["speech"] = speech_array
> return batch
> dataset = dataset.map(map_to_array, remove_columns=["file"])
> ```
Is this still true?
In my case, `ds["train.100"]` returns:
```
Dataset({
features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'],
num_rows: 28539
})
```
and taking the first instance yields:
```
{'file': '374-180298-0000.flac',
'audio': {'path': '374-180298-0000.flac',
'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ...,
-2.74658203e-04, -1.83105469e-04, -3.05175781e-05]),
'sampling_rate': 16000},
'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED',
'speaker_id': 374,
'chapter_id': 180298,
'id': '374-180298-0000'}
```
The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong?
But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk?
Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk?
A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert?
The documentation in the code is definitely outdated - thanks for letting me know, I'll remove it in https://github.com/huggingface/datasets/pull/4184 .
You're exactly right `audio` `array` already decodes the audio file to the correct waveform. This is done on the fly, which is also why one should **not** do `ds["audio"]["array"][0]` as this will decode all dataset samples, but instead `ds[0]["audio"]["array"]` see: https://huggingface.co/docs/datasets/audio_process#audio-datasets
| [
-0.1542334408,
-0.3340955675,
-0.1759803146,
0.2739016414,
0.216354534,
-0.2398924828,
0.4355738759,
0.1572939605,
0.2130361646,
0.0300804526,
-0.556984067,
0.2139859498,
-0.2302835286,
0.085956037,
0.0961477235,
0.0931838453,
0.0818833336,
0.2941011786,
-0.4400452077,
-0.1747707874,
-0.2997764647,
0.2271281332,
-0.4004110694,
0.0567237586,
0.0951733068,
0.063606061,
-0.0397924818,
0.048771169,
-0.2569730878,
-0.1601586789,
0.1267195344,
-0.0528800525,
0.101457648,
0.2192428857,
-0.0001162108,
-0.2093728185,
0.0235549137,
-0.3061894476,
-0.1699980795,
0.1575677693,
-0.219753772,
0.0494352616,
-0.1951781213,
-0.1933789402,
-0.1271953434,
-0.203825593,
-0.2340203524,
-0.397125721,
0.1354792118,
0.4306400716,
0.1723317802,
-0.0784719065,
0.1788722426,
0.2868997157,
0.3484281003,
0.1090351045,
-0.1158385202,
0.0088983709,
0.1201142594,
-0.0607514158,
-0.1416554749,
0.3081616759,
-0.094103612,
0.0886037871,
0.1880664229,
0.1195582971,
0.0023605304,
-0.3854247034,
0.1012000665,
0.3287840486,
0.4399695694,
-0.06328547,
-0.4344281256,
0.0978508145,
-0.2079864442,
-0.0963774845,
-0.1600911319,
0.3404839933,
-0.1445982456,
0.129069984,
-0.2053451985,
-0.1506488174,
0.0341525786,
0.0832133815,
-0.08166866,
0.4410449862,
-0.40770486,
0.125197947,
0.2639523745,
-0.2442327887,
-0.1180932224,
-0.2946671844,
0.0482623428,
0.4136299789,
-0.0440326743,
-0.2447734773,
-0.1160901859,
-0.2239229381,
0.1551561654,
-0.4143984318,
0.3555930555,
-0.0270975623,
-0.3395843506,
0.1265248954,
0.2590247691,
0.3176574111,
0.0398984067,
-0.0687341467,
-0.0912579596,
0.2094143629,
0.0860810056,
0.0015092114,
0.002561782,
0.0442683622,
-0.2246017307,
0.0335891657,
0.0526750498,
-0.3481333554,
-0.264808625,
0.2723895907,
-0.6330308914,
-0.152561754,
0.0433832482,
0.1958048642,
-0.0334265344,
0.3636598587,
0.1086401269,
0.1735654324,
-0.0709836781,
0.433909893,
-0.1139724851,
0.1506480128,
-0.150755018,
-0.3666742444,
-0.0146502312,
-0.0477064028,
0.263486743,
0.1609742343,
-0.0598364174,
-0.1164130792,
-0.1345726997,
-0.0548428707,
0.8213589787,
0.2543647885,
-0.1598034054,
0.1559332013,
-0.0733607858,
-0.1676259339,
-0.2778808773,
0.4688283503,
-0.0525489971,
-0.0472389311,
-0.0369325131,
0.1636847258,
-0.0253802761,
0.1466593891,
-0.0407066047,
0.1523048133,
0.2607587874,
-0.3075159192,
0.3103862107,
-0.4980787039,
-0.3085978627,
-0.0031169474,
0.3174081445,
-0.1067103818,
-0.5454713106,
0.120909363,
0.2184112072,
-0.1296784878,
0.3179889619,
0.0624060631,
-0.1621998399,
-0.0811600089,
-0.403165251,
0.4490048885,
0.2591965795,
-0.0694254711,
-0.342114985,
0.1260675639,
0.1205659285,
0.1066326201,
0.030791495,
-0.0028174471,
0.40490219,
-0.1222340688,
0.2539356053,
0.1455523372,
0.3142382801,
0.1199977621,
-0.2166929096,
-0.273460269,
-0.0259249229,
-0.2393843383,
-0.4691470861,
-0.0802056193,
0.1083943173,
0.3235988319,
0.6428525448,
-0.2258229107,
0.1842897981,
-0.0204048418,
0.2308961898,
-0.0051635629,
-0.0841447264,
0.0325472169,
0.0299621094,
-0.1565894037,
0.2681492567,
-0.0104632555,
0.2493054718,
-0.1713258922,
0.0345189646,
-0.1256053746,
-0.1596103013,
-0.1805340946,
0.1418706179,
0.173257485,
-0.0029296239,
-0.3430259228,
-0.148338452,
-0.0648331419,
0.0567096882,
-0.1427606791,
-0.1699568331,
-0.0963075683,
-0.0247960687,
-0.0001661705,
0.179958865,
0.4795665145,
0.0097888531,
-0.0701157898,
-0.086644657,
0.3329331279,
0.3283602297,
-0.1670718044,
-0.3215807974,
0.2661701441,
0.1024131104,
0.0559849329,
0.3347049356,
0.0803663358,
0.1446886212,
0.0089917947,
-0.1023184732,
0.2809543312,
0.260209024,
0.4150138199,
0.3072758913,
0.0314083733,
0.1404747963,
0.2721953094,
-0.3666298687,
-0.174918294,
-0.3439562917,
-0.4124442935,
0.3329039812,
0.226143077,
-0.4646034241,
0.0917790905,
0.5448029637,
-0.0507612079,
-0.0450650565,
0.0591037571,
-0.321688056,
-0.2651135027,
0.2766357064,
-0.002975465,
0.2848726511,
0.1120959967,
0.2859367728,
-0.3420162201,
-0.0119027486,
-0.0141625777,
0.1763189733,
0.0698467568,
0.0053146933,
0.1744191796,
0.0393442437,
-0.1721081138,
-0.351467967,
-0.1222566739,
-0.2051748186,
-0.0216149837,
-0.1914530247,
-0.3006511331,
-0.0302169099,
-0.208710596,
-0.3192376792,
-0.1450596154,
0.0418107919,
-0.1104480475,
-0.1066034809,
0.1256700903,
-0.2035191804,
0.2269646227,
0.0746763796,
-0.0939041823,
-0.0203768741,
-0.0200449824,
0.1276885122,
0.272542417,
-0.2145110965,
0.1064156592,
0.0266421176,
0.137240693,
-0.0261569116,
0.2865569592,
-0.1178199947,
-0.4260058403,
-0.1333986819,
0.2693803906,
-0.1715441197,
0.0810995921,
0.2522566915,
0.2880108058,
-0.2064267695,
-0.3488792777,
0.1251537949,
-0.2400137484,
-0.2562884688,
-0.0190972034,
0.1952041239,
0.0960771963,
-0.3290714025,
-0.3493410647,
-0.0571331158,
-0.2351340204,
0.2053946704,
-0.0473212451,
0.3321630657,
0.0987269059,
0.1397119462,
0.1539788097,
0.0617708936,
-0.0087685343,
-0.3864862025,
0.0909208879,
0.2472738326,
-0.0513623357,
-0.1097156033,
-0.0254575443,
-0.0418610275,
0.1501147896,
0.0261176489,
-0.0670484677,
-0.2500670254,
-0.1688151956,
-0.2010641843,
-0.1022504419,
0.2995706797,
0.3238886595,
0.0633798316,
-0.0275953002,
-0.2345477492,
-0.1550437808,
0.0694917068,
0.3716648221,
0.2720550299,
0.109052062,
0.1303129792,
-0.0297388397,
0.540964067,
0.143972978,
-0.0783791542,
-0.1147629768,
-0.1328783482,
0.2275290936,
-0.1955568492,
0.0009198843,
0.2654893398,
-0.0471735224,
-0.2422697544,
0.2803627551,
0.1963617802,
-0.3379117548,
0.1211371198,
0.535000205,
-0.3518290222,
-0.1311654896,
0.2039003521,
-0.1092369854,
0.0565243252,
0.012097545,
0.1385527551,
0.3264888525,
-0.1831556261,
-0.1429656446,
-0.060818918,
0.3778915107,
-0.122935757,
-0.30530563,
-0.2059397697,
-0.8430305123,
0.3108459711,
0.129648,
0.5271250606,
0.0921635851,
-0.3337353766,
0.0367000774,
0.019211933,
0.2136795074,
-0.18546924,
-0.0598036684,
0.122101292,
0.5030912161,
-0.2352097481,
-0.1037610397,
-0.5014454126,
0.2313168496,
0.1940735728,
0.1540445089,
-0.285131067,
-0.1498831511,
0.2790752351,
0.3738973141,
0.1395092309,
0.4294824302,
-0.2213943005,
-0.4914535582,
0.0095419521,
0.042051807,
0.1823994815,
0.1690862477,
-0.0988629088,
-0.1069667339,
0.3594484031,
-0.1121455356,
0.2949053943,
-0.194573909,
0.5291567445,
0.4128486216,
-0.0546378866,
0.0929394811,
0.0280621555,
-0.0646089986,
0.207987681,
-0.3096725643,
0.5029839873,
0.4131551087,
-0.2394007891,
0.5206175447,
0.3403364122,
-0.1514891684,
-0.2023033649,
-0.04820963,
0.103427127,
-0.1453454345,
0.1274657995,
0.4268480837,
0.0737002268,
-0.1747568697,
-0.8883272409,
0.2098966986,
0.0379481874,
-0.1413361728,
0.1901784539,
-0.0669078976,
-0.3320237696,
0.4743844271,
0.0144873252,
1.0012592077,
-0.1401284337,
0.4054600894,
0.0801505223,
-0.0582277738,
-0.0018809536,
-0.1165610179,
0.2925010324,
-0.28549698,
0.1104974821,
-0.0729654431,
-0.1219115332,
0.0572722666,
0.2722385228,
-0.2216804028,
0.1426368803,
0.0047351685,
0.3801979423,
-0.1113715917,
0.2031701207,
-0.1888059676,
-0.2107470483,
-0.0501627624,
0.0712731034,
0.0959316269,
-0.0033201782,
0.1908802092,
-0.0662831813,
-0.2829703093,
-0.2782079577,
-0.2115707248,
0.0215351209,
-0.4260972738,
0.012034866,
-0.2798011005,
-0.4624312818,
-0.2454769909,
0.5334239602,
-0.4848813713,
0.3236002624,
0.2138374299,
-0.1354727298,
0.5590694547,
0.5515831709,
0.3116379082,
-0.0188210905,
-0.1117081791,
0.1837442368,
0.0380085669,
0.1661434174,
-0.0806640983,
-0.1902579814,
-0.0676689222,
0.1861064732,
0.2634870112,
-0.6092756391,
-0.4351527095,
0.2663458288,
-0.3400942981,
0.0811558589,
0.0875763819,
-0.0391181149,
-0.4593065083,
0.3327950239,
0.0742259845,
-0.2625933886,
0.0222769789,
0.3910148144,
0.1485091597,
0.0697130784,
0.4022965133,
-0.2254986167,
-0.0725291222,
-0.2175980806,
0.0831712261,
-0.0486745574,
-0.1868116558,
-0.068024464,
-0.1908236742,
-0.1473808289,
-0.059708368,
0.3709476888,
-0.1025209427,
0.4480679333,
-0.426931411,
-0.253295362,
-0.2550073862,
0.3010822237,
0.1377952248,
0.5629333854,
-0.2891402543,
-0.0836097002,
-0.0765116885,
-0.3991388679,
-0.2999734879,
0.0514088571,
0.0682659596,
0.3073440492,
0.1358734816,
0.226438567,
0.0149233425,
-0.193038404,
0.1997731924,
0.1608984619,
-0.159669742,
-0.1601823419,
0.049237527,
0.1256925613,
0.0974413231,
-0.4378764331,
-0.2101549655,
-0.097368069,
-0.3540396988,
-0.3380198479,
-0.0204579495,
0.2995051742,
-0.004900421,
-0.0517644137,
-0.039735131,
-0.0697472394,
0.2459424287,
0.0054688668,
-0.0198471975,
0.217976138,
0.1964981854,
0.2183790952,
0.1218398437,
-0.027543053,
0.5331261158,
0.2635759115,
-0.3267184198,
0.2047886103,
0.1816225499,
0.0593192577,
0.0389779285,
0.2862649262,
0.8134655952,
0.3783124983,
-0.1685485542,
-0.2733550072,
-0.0193377361,
0.2432171106,
-0.0890635848,
-0.0564588532,
0.2598478794,
-0.0612012707,
0.1170209795,
0.3430144191,
0.1226427704,
0.1133152097,
0.2428923547,
-0.0860350505,
-0.0216482095,
0.0547000952,
0.1951369047,
0.6959058046,
-0.1750027388,
0.1592744887,
0.154631868,
-0.3309014738,
0.1373237669,
0.4470795393,
0.0474792868,
0.0484334379,
0.5154218078,
0.2285025567,
0.1598499268,
-0.2348828912,
0.1329499483,
0.2044767141,
-0.0224498715,
0.414832294,
0.1210788041,
0.458729893,
-0.6043593287,
-0.1094679609,
0.0790624321,
0.0009081517,
-0.3967516124,
-0.1118186563,
0.2753410935,
-0.2673284411,
0.0516191684,
0.0174635667,
-0.2136456817,
0.0170028489,
0.2557516694,
-0.2441973239,
0.0896501839,
0.18769674,
-0.2054343373,
0.0021423444,
0.0930925757,
-0.0899714231,
0.270172298,
0.1652518809,
0.2525832951,
0.1785665154,
0.3292481303,
0.1305996925,
0.2140734345,
-0.0106340945,
0.0581513643,
-0.0524095483,
-0.1389569938,
-0.1043990701,
0.1386579424,
0.4489630759,
-0.1333084404,
0.2493186444,
0.1345666051,
-0.0617204532,
0.2072568238,
0.1711739749,
0.2795516551,
-0.0548238382,
-0.0193272829,
-0.0677706078,
-0.2908450365,
-0.0470619574,
-0.2652166486,
-0.337143451,
-0.1657004952,
0.2048022747,
-0.1028209627,
0.3487432897,
0.0653218478,
0.0525011942,
-0.068493031,
0.1418969631,
0.1893988699,
-0.1349394321,
-0.1232890785,
-0.2310763299,
-0.6346389651,
-0.3504953086,
0.0057024364,
-0.0724049509,
-0.3318589032,
0.3261370957,
0.2120034099,
0.2738455534,
0.2057515979,
-0.3142895103,
-0.0783467889,
0.0952591822,
0.0880952552,
-0.1488062143,
0.0608999915,
0.3614414036,
-0.131264165,
-0.6409597397,
0.0747112781,
0.0636974573,
0.0587464795,
-0.1293384433,
-0.0127097508,
-0.1543393582,
-0.0463848598,
0.1369002163,
0.1584454626,
0.3014501631,
-0.3522277474,
-0.104684554,
0.0305410326,
-0.0342388786,
-0.0911096856,
0.0221611112,
-0.3623102307,
0.7060503364,
0.0290058199,
0.072082229,
-0.2977441847,
0.0603045113,
0.1311794668,
-0.0275177322,
-0.3507946134,
0.0567641445,
-0.2715274096,
-0.3359443843,
0.086025767,
0.3804195523,
-0.0168815088,
-0.1331714243,
-0.282340914,
-0.2604236603,
0.3593374491,
-0.1025601849,
-0.2023165226,
-0.0687240362,
0.1935931593,
-0.0305340197,
0.0937946066,
-0.6026326418,
-0.1122704223,
0.3406172991,
-0.0750615373,
-0.0955480635,
0.0484363548,
-0.2759493887,
0.0046741855,
-0.2389898449,
0.3581074774,
0.2401623279,
-0.3639527261,
-0.1480272412,
-0.5026931763
] |
https://github.com/huggingface/datasets/issues/4185 | Librispeech documentation, clarification on format | So, again to clarify: On disk, only the raw flac file content is stored? Is this also the case after `save_to_disk`?
And is it simple to also store it re-encoded as ogg or mp3 instead?
| https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53
> Note that in order to limit the required storage for preparing this dataset, the audio
> is stored in the .flac format and is not converted to a float32 array. To convert, the audio
> file to a float32 array, please make use of the `.map()` function as follows:
>
> ```python
> import soundfile as sf
> def map_to_array(batch):
> speech_array, _ = sf.read(batch["file"])
> batch["speech"] = speech_array
> return batch
> dataset = dataset.map(map_to_array, remove_columns=["file"])
> ```
Is this still true?
In my case, `ds["train.100"]` returns:
```
Dataset({
features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'],
num_rows: 28539
})
```
and taking the first instance yields:
```
{'file': '374-180298-0000.flac',
'audio': {'path': '374-180298-0000.flac',
'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ...,
-2.74658203e-04, -1.83105469e-04, -3.05175781e-05]),
'sampling_rate': 16000},
'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED',
'speaker_id': 374,
'chapter_id': 180298,
'id': '374-180298-0000'}
```
The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong?
But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk?
Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk?
A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert? | 35 | Librispeech documentation, clarification on format
https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53
> Note that in order to limit the required storage for preparing this dataset, the audio
> is stored in the .flac format and is not converted to a float32 array. To convert, the audio
> file to a float32 array, please make use of the `.map()` function as follows:
>
> ```python
> import soundfile as sf
> def map_to_array(batch):
> speech_array, _ = sf.read(batch["file"])
> batch["speech"] = speech_array
> return batch
> dataset = dataset.map(map_to_array, remove_columns=["file"])
> ```
Is this still true?
In my case, `ds["train.100"]` returns:
```
Dataset({
features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'],
num_rows: 28539
})
```
and taking the first instance yields:
```
{'file': '374-180298-0000.flac',
'audio': {'path': '374-180298-0000.flac',
'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ...,
-2.74658203e-04, -1.83105469e-04, -3.05175781e-05]),
'sampling_rate': 16000},
'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED',
'speaker_id': 374,
'chapter_id': 180298,
'id': '374-180298-0000'}
```
The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong?
But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk?
Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk?
A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert?
So, again to clarify: On disk, only the raw flac file content is stored? Is this also the case after `save_to_disk`?
And is it simple to also store it re-encoded as ogg or mp3 instead?
| [
-0.1542334408,
-0.3340955675,
-0.1759803146,
0.2739016414,
0.216354534,
-0.2398924828,
0.4355738759,
0.1572939605,
0.2130361646,
0.0300804526,
-0.556984067,
0.2139859498,
-0.2302835286,
0.085956037,
0.0961477235,
0.0931838453,
0.0818833336,
0.2941011786,
-0.4400452077,
-0.1747707874,
-0.2997764647,
0.2271281332,
-0.4004110694,
0.0567237586,
0.0951733068,
0.063606061,
-0.0397924818,
0.048771169,
-0.2569730878,
-0.1601586789,
0.1267195344,
-0.0528800525,
0.101457648,
0.2192428857,
-0.0001162108,
-0.2093728185,
0.0235549137,
-0.3061894476,
-0.1699980795,
0.1575677693,
-0.219753772,
0.0494352616,
-0.1951781213,
-0.1933789402,
-0.1271953434,
-0.203825593,
-0.2340203524,
-0.397125721,
0.1354792118,
0.4306400716,
0.1723317802,
-0.0784719065,
0.1788722426,
0.2868997157,
0.3484281003,
0.1090351045,
-0.1158385202,
0.0088983709,
0.1201142594,
-0.0607514158,
-0.1416554749,
0.3081616759,
-0.094103612,
0.0886037871,
0.1880664229,
0.1195582971,
0.0023605304,
-0.3854247034,
0.1012000665,
0.3287840486,
0.4399695694,
-0.06328547,
-0.4344281256,
0.0978508145,
-0.2079864442,
-0.0963774845,
-0.1600911319,
0.3404839933,
-0.1445982456,
0.129069984,
-0.2053451985,
-0.1506488174,
0.0341525786,
0.0832133815,
-0.08166866,
0.4410449862,
-0.40770486,
0.125197947,
0.2639523745,
-0.2442327887,
-0.1180932224,
-0.2946671844,
0.0482623428,
0.4136299789,
-0.0440326743,
-0.2447734773,
-0.1160901859,
-0.2239229381,
0.1551561654,
-0.4143984318,
0.3555930555,
-0.0270975623,
-0.3395843506,
0.1265248954,
0.2590247691,
0.3176574111,
0.0398984067,
-0.0687341467,
-0.0912579596,
0.2094143629,
0.0860810056,
0.0015092114,
0.002561782,
0.0442683622,
-0.2246017307,
0.0335891657,
0.0526750498,
-0.3481333554,
-0.264808625,
0.2723895907,
-0.6330308914,
-0.152561754,
0.0433832482,
0.1958048642,
-0.0334265344,
0.3636598587,
0.1086401269,
0.1735654324,
-0.0709836781,
0.433909893,
-0.1139724851,
0.1506480128,
-0.150755018,
-0.3666742444,
-0.0146502312,
-0.0477064028,
0.263486743,
0.1609742343,
-0.0598364174,
-0.1164130792,
-0.1345726997,
-0.0548428707,
0.8213589787,
0.2543647885,
-0.1598034054,
0.1559332013,
-0.0733607858,
-0.1676259339,
-0.2778808773,
0.4688283503,
-0.0525489971,
-0.0472389311,
-0.0369325131,
0.1636847258,
-0.0253802761,
0.1466593891,
-0.0407066047,
0.1523048133,
0.2607587874,
-0.3075159192,
0.3103862107,
-0.4980787039,
-0.3085978627,
-0.0031169474,
0.3174081445,
-0.1067103818,
-0.5454713106,
0.120909363,
0.2184112072,
-0.1296784878,
0.3179889619,
0.0624060631,
-0.1621998399,
-0.0811600089,
-0.403165251,
0.4490048885,
0.2591965795,
-0.0694254711,
-0.342114985,
0.1260675639,
0.1205659285,
0.1066326201,
0.030791495,
-0.0028174471,
0.40490219,
-0.1222340688,
0.2539356053,
0.1455523372,
0.3142382801,
0.1199977621,
-0.2166929096,
-0.273460269,
-0.0259249229,
-0.2393843383,
-0.4691470861,
-0.0802056193,
0.1083943173,
0.3235988319,
0.6428525448,
-0.2258229107,
0.1842897981,
-0.0204048418,
0.2308961898,
-0.0051635629,
-0.0841447264,
0.0325472169,
0.0299621094,
-0.1565894037,
0.2681492567,
-0.0104632555,
0.2493054718,
-0.1713258922,
0.0345189646,
-0.1256053746,
-0.1596103013,
-0.1805340946,
0.1418706179,
0.173257485,
-0.0029296239,
-0.3430259228,
-0.148338452,
-0.0648331419,
0.0567096882,
-0.1427606791,
-0.1699568331,
-0.0963075683,
-0.0247960687,
-0.0001661705,
0.179958865,
0.4795665145,
0.0097888531,
-0.0701157898,
-0.086644657,
0.3329331279,
0.3283602297,
-0.1670718044,
-0.3215807974,
0.2661701441,
0.1024131104,
0.0559849329,
0.3347049356,
0.0803663358,
0.1446886212,
0.0089917947,
-0.1023184732,
0.2809543312,
0.260209024,
0.4150138199,
0.3072758913,
0.0314083733,
0.1404747963,
0.2721953094,
-0.3666298687,
-0.174918294,
-0.3439562917,
-0.4124442935,
0.3329039812,
0.226143077,
-0.4646034241,
0.0917790905,
0.5448029637,
-0.0507612079,
-0.0450650565,
0.0591037571,
-0.321688056,
-0.2651135027,
0.2766357064,
-0.002975465,
0.2848726511,
0.1120959967,
0.2859367728,
-0.3420162201,
-0.0119027486,
-0.0141625777,
0.1763189733,
0.0698467568,
0.0053146933,
0.1744191796,
0.0393442437,
-0.1721081138,
-0.351467967,
-0.1222566739,
-0.2051748186,
-0.0216149837,
-0.1914530247,
-0.3006511331,
-0.0302169099,
-0.208710596,
-0.3192376792,
-0.1450596154,
0.0418107919,
-0.1104480475,
-0.1066034809,
0.1256700903,
-0.2035191804,
0.2269646227,
0.0746763796,
-0.0939041823,
-0.0203768741,
-0.0200449824,
0.1276885122,
0.272542417,
-0.2145110965,
0.1064156592,
0.0266421176,
0.137240693,
-0.0261569116,
0.2865569592,
-0.1178199947,
-0.4260058403,
-0.1333986819,
0.2693803906,
-0.1715441197,
0.0810995921,
0.2522566915,
0.2880108058,
-0.2064267695,
-0.3488792777,
0.1251537949,
-0.2400137484,
-0.2562884688,
-0.0190972034,
0.1952041239,
0.0960771963,
-0.3290714025,
-0.3493410647,
-0.0571331158,
-0.2351340204,
0.2053946704,
-0.0473212451,
0.3321630657,
0.0987269059,
0.1397119462,
0.1539788097,
0.0617708936,
-0.0087685343,
-0.3864862025,
0.0909208879,
0.2472738326,
-0.0513623357,
-0.1097156033,
-0.0254575443,
-0.0418610275,
0.1501147896,
0.0261176489,
-0.0670484677,
-0.2500670254,
-0.1688151956,
-0.2010641843,
-0.1022504419,
0.2995706797,
0.3238886595,
0.0633798316,
-0.0275953002,
-0.2345477492,
-0.1550437808,
0.0694917068,
0.3716648221,
0.2720550299,
0.109052062,
0.1303129792,
-0.0297388397,
0.540964067,
0.143972978,
-0.0783791542,
-0.1147629768,
-0.1328783482,
0.2275290936,
-0.1955568492,
0.0009198843,
0.2654893398,
-0.0471735224,
-0.2422697544,
0.2803627551,
0.1963617802,
-0.3379117548,
0.1211371198,
0.535000205,
-0.3518290222,
-0.1311654896,
0.2039003521,
-0.1092369854,
0.0565243252,
0.012097545,
0.1385527551,
0.3264888525,
-0.1831556261,
-0.1429656446,
-0.060818918,
0.3778915107,
-0.122935757,
-0.30530563,
-0.2059397697,
-0.8430305123,
0.3108459711,
0.129648,
0.5271250606,
0.0921635851,
-0.3337353766,
0.0367000774,
0.019211933,
0.2136795074,
-0.18546924,
-0.0598036684,
0.122101292,
0.5030912161,
-0.2352097481,
-0.1037610397,
-0.5014454126,
0.2313168496,
0.1940735728,
0.1540445089,
-0.285131067,
-0.1498831511,
0.2790752351,
0.3738973141,
0.1395092309,
0.4294824302,
-0.2213943005,
-0.4914535582,
0.0095419521,
0.042051807,
0.1823994815,
0.1690862477,
-0.0988629088,
-0.1069667339,
0.3594484031,
-0.1121455356,
0.2949053943,
-0.194573909,
0.5291567445,
0.4128486216,
-0.0546378866,
0.0929394811,
0.0280621555,
-0.0646089986,
0.207987681,
-0.3096725643,
0.5029839873,
0.4131551087,
-0.2394007891,
0.5206175447,
0.3403364122,
-0.1514891684,
-0.2023033649,
-0.04820963,
0.103427127,
-0.1453454345,
0.1274657995,
0.4268480837,
0.0737002268,
-0.1747568697,
-0.8883272409,
0.2098966986,
0.0379481874,
-0.1413361728,
0.1901784539,
-0.0669078976,
-0.3320237696,
0.4743844271,
0.0144873252,
1.0012592077,
-0.1401284337,
0.4054600894,
0.0801505223,
-0.0582277738,
-0.0018809536,
-0.1165610179,
0.2925010324,
-0.28549698,
0.1104974821,
-0.0729654431,
-0.1219115332,
0.0572722666,
0.2722385228,
-0.2216804028,
0.1426368803,
0.0047351685,
0.3801979423,
-0.1113715917,
0.2031701207,
-0.1888059676,
-0.2107470483,
-0.0501627624,
0.0712731034,
0.0959316269,
-0.0033201782,
0.1908802092,
-0.0662831813,
-0.2829703093,
-0.2782079577,
-0.2115707248,
0.0215351209,
-0.4260972738,
0.012034866,
-0.2798011005,
-0.4624312818,
-0.2454769909,
0.5334239602,
-0.4848813713,
0.3236002624,
0.2138374299,
-0.1354727298,
0.5590694547,
0.5515831709,
0.3116379082,
-0.0188210905,
-0.1117081791,
0.1837442368,
0.0380085669,
0.1661434174,
-0.0806640983,
-0.1902579814,
-0.0676689222,
0.1861064732,
0.2634870112,
-0.6092756391,
-0.4351527095,
0.2663458288,
-0.3400942981,
0.0811558589,
0.0875763819,
-0.0391181149,
-0.4593065083,
0.3327950239,
0.0742259845,
-0.2625933886,
0.0222769789,
0.3910148144,
0.1485091597,
0.0697130784,
0.4022965133,
-0.2254986167,
-0.0725291222,
-0.2175980806,
0.0831712261,
-0.0486745574,
-0.1868116558,
-0.068024464,
-0.1908236742,
-0.1473808289,
-0.059708368,
0.3709476888,
-0.1025209427,
0.4480679333,
-0.426931411,
-0.253295362,
-0.2550073862,
0.3010822237,
0.1377952248,
0.5629333854,
-0.2891402543,
-0.0836097002,
-0.0765116885,
-0.3991388679,
-0.2999734879,
0.0514088571,
0.0682659596,
0.3073440492,
0.1358734816,
0.226438567,
0.0149233425,
-0.193038404,
0.1997731924,
0.1608984619,
-0.159669742,
-0.1601823419,
0.049237527,
0.1256925613,
0.0974413231,
-0.4378764331,
-0.2101549655,
-0.097368069,
-0.3540396988,
-0.3380198479,
-0.0204579495,
0.2995051742,
-0.004900421,
-0.0517644137,
-0.039735131,
-0.0697472394,
0.2459424287,
0.0054688668,
-0.0198471975,
0.217976138,
0.1964981854,
0.2183790952,
0.1218398437,
-0.027543053,
0.5331261158,
0.2635759115,
-0.3267184198,
0.2047886103,
0.1816225499,
0.0593192577,
0.0389779285,
0.2862649262,
0.8134655952,
0.3783124983,
-0.1685485542,
-0.2733550072,
-0.0193377361,
0.2432171106,
-0.0890635848,
-0.0564588532,
0.2598478794,
-0.0612012707,
0.1170209795,
0.3430144191,
0.1226427704,
0.1133152097,
0.2428923547,
-0.0860350505,
-0.0216482095,
0.0547000952,
0.1951369047,
0.6959058046,
-0.1750027388,
0.1592744887,
0.154631868,
-0.3309014738,
0.1373237669,
0.4470795393,
0.0474792868,
0.0484334379,
0.5154218078,
0.2285025567,
0.1598499268,
-0.2348828912,
0.1329499483,
0.2044767141,
-0.0224498715,
0.414832294,
0.1210788041,
0.458729893,
-0.6043593287,
-0.1094679609,
0.0790624321,
0.0009081517,
-0.3967516124,
-0.1118186563,
0.2753410935,
-0.2673284411,
0.0516191684,
0.0174635667,
-0.2136456817,
0.0170028489,
0.2557516694,
-0.2441973239,
0.0896501839,
0.18769674,
-0.2054343373,
0.0021423444,
0.0930925757,
-0.0899714231,
0.270172298,
0.1652518809,
0.2525832951,
0.1785665154,
0.3292481303,
0.1305996925,
0.2140734345,
-0.0106340945,
0.0581513643,
-0.0524095483,
-0.1389569938,
-0.1043990701,
0.1386579424,
0.4489630759,
-0.1333084404,
0.2493186444,
0.1345666051,
-0.0617204532,
0.2072568238,
0.1711739749,
0.2795516551,
-0.0548238382,
-0.0193272829,
-0.0677706078,
-0.2908450365,
-0.0470619574,
-0.2652166486,
-0.337143451,
-0.1657004952,
0.2048022747,
-0.1028209627,
0.3487432897,
0.0653218478,
0.0525011942,
-0.068493031,
0.1418969631,
0.1893988699,
-0.1349394321,
-0.1232890785,
-0.2310763299,
-0.6346389651,
-0.3504953086,
0.0057024364,
-0.0724049509,
-0.3318589032,
0.3261370957,
0.2120034099,
0.2738455534,
0.2057515979,
-0.3142895103,
-0.0783467889,
0.0952591822,
0.0880952552,
-0.1488062143,
0.0608999915,
0.3614414036,
-0.131264165,
-0.6409597397,
0.0747112781,
0.0636974573,
0.0587464795,
-0.1293384433,
-0.0127097508,
-0.1543393582,
-0.0463848598,
0.1369002163,
0.1584454626,
0.3014501631,
-0.3522277474,
-0.104684554,
0.0305410326,
-0.0342388786,
-0.0911096856,
0.0221611112,
-0.3623102307,
0.7060503364,
0.0290058199,
0.072082229,
-0.2977441847,
0.0603045113,
0.1311794668,
-0.0275177322,
-0.3507946134,
0.0567641445,
-0.2715274096,
-0.3359443843,
0.086025767,
0.3804195523,
-0.0168815088,
-0.1331714243,
-0.282340914,
-0.2604236603,
0.3593374491,
-0.1025601849,
-0.2023165226,
-0.0687240362,
0.1935931593,
-0.0305340197,
0.0937946066,
-0.6026326418,
-0.1122704223,
0.3406172991,
-0.0750615373,
-0.0955480635,
0.0484363548,
-0.2759493887,
0.0046741855,
-0.2389898449,
0.3581074774,
0.2401623279,
-0.3639527261,
-0.1480272412,
-0.5026931763
] |
https://github.com/huggingface/datasets/issues/4185 | Librispeech documentation, clarification on format | Hey,
Sorry yeah I was just about to look into this! We actually had an outdated version of Librispeech ASR that didn't save any files, but instead converted the audio files to a byte string, then was then decoded on-the-fly. This however is not very user-friendly so we recently decided to instead show the full path of the audio files with the `path` parameter.
I'm currently changing this for Librispeech here: https://github.com/huggingface/datasets/pull/4184 .
You should be able to see the audio file in the original `flac` format under `path` then. I don't think it's a good idea to convert to MP3 out-of-the-box, but we could maybe think about some kind of convert function for audio datasets cc @lhoestq ? | https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53
> Note that in order to limit the required storage for preparing this dataset, the audio
> is stored in the .flac format and is not converted to a float32 array. To convert, the audio
> file to a float32 array, please make use of the `.map()` function as follows:
>
> ```python
> import soundfile as sf
> def map_to_array(batch):
> speech_array, _ = sf.read(batch["file"])
> batch["speech"] = speech_array
> return batch
> dataset = dataset.map(map_to_array, remove_columns=["file"])
> ```
Is this still true?
In my case, `ds["train.100"]` returns:
```
Dataset({
features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'],
num_rows: 28539
})
```
and taking the first instance yields:
```
{'file': '374-180298-0000.flac',
'audio': {'path': '374-180298-0000.flac',
'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ...,
-2.74658203e-04, -1.83105469e-04, -3.05175781e-05]),
'sampling_rate': 16000},
'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED',
'speaker_id': 374,
'chapter_id': 180298,
'id': '374-180298-0000'}
```
The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong?
But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk?
Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk?
A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert? | 119 | Librispeech documentation, clarification on format
https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53
> Note that in order to limit the required storage for preparing this dataset, the audio
> is stored in the .flac format and is not converted to a float32 array. To convert, the audio
> file to a float32 array, please make use of the `.map()` function as follows:
>
> ```python
> import soundfile as sf
> def map_to_array(batch):
> speech_array, _ = sf.read(batch["file"])
> batch["speech"] = speech_array
> return batch
> dataset = dataset.map(map_to_array, remove_columns=["file"])
> ```
Is this still true?
In my case, `ds["train.100"]` returns:
```
Dataset({
features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'],
num_rows: 28539
})
```
and taking the first instance yields:
```
{'file': '374-180298-0000.flac',
'audio': {'path': '374-180298-0000.flac',
'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ...,
-2.74658203e-04, -1.83105469e-04, -3.05175781e-05]),
'sampling_rate': 16000},
'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED',
'speaker_id': 374,
'chapter_id': 180298,
'id': '374-180298-0000'}
```
The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong?
But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk?
Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk?
A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert?
Hey,
Sorry yeah I was just about to look into this! We actually had an outdated version of Librispeech ASR that didn't save any files, but instead converted the audio files to a byte string, then was then decoded on-the-fly. This however is not very user-friendly so we recently decided to instead show the full path of the audio files with the `path` parameter.
I'm currently changing this for Librispeech here: https://github.com/huggingface/datasets/pull/4184 .
You should be able to see the audio file in the original `flac` format under `path` then. I don't think it's a good idea to convert to MP3 out-of-the-box, but we could maybe think about some kind of convert function for audio datasets cc @lhoestq ? | [
-0.1542334408,
-0.3340955675,
-0.1759803146,
0.2739016414,
0.216354534,
-0.2398924828,
0.4355738759,
0.1572939605,
0.2130361646,
0.0300804526,
-0.556984067,
0.2139859498,
-0.2302835286,
0.085956037,
0.0961477235,
0.0931838453,
0.0818833336,
0.2941011786,
-0.4400452077,
-0.1747707874,
-0.2997764647,
0.2271281332,
-0.4004110694,
0.0567237586,
0.0951733068,
0.063606061,
-0.0397924818,
0.048771169,
-0.2569730878,
-0.1601586789,
0.1267195344,
-0.0528800525,
0.101457648,
0.2192428857,
-0.0001162108,
-0.2093728185,
0.0235549137,
-0.3061894476,
-0.1699980795,
0.1575677693,
-0.219753772,
0.0494352616,
-0.1951781213,
-0.1933789402,
-0.1271953434,
-0.203825593,
-0.2340203524,
-0.397125721,
0.1354792118,
0.4306400716,
0.1723317802,
-0.0784719065,
0.1788722426,
0.2868997157,
0.3484281003,
0.1090351045,
-0.1158385202,
0.0088983709,
0.1201142594,
-0.0607514158,
-0.1416554749,
0.3081616759,
-0.094103612,
0.0886037871,
0.1880664229,
0.1195582971,
0.0023605304,
-0.3854247034,
0.1012000665,
0.3287840486,
0.4399695694,
-0.06328547,
-0.4344281256,
0.0978508145,
-0.2079864442,
-0.0963774845,
-0.1600911319,
0.3404839933,
-0.1445982456,
0.129069984,
-0.2053451985,
-0.1506488174,
0.0341525786,
0.0832133815,
-0.08166866,
0.4410449862,
-0.40770486,
0.125197947,
0.2639523745,
-0.2442327887,
-0.1180932224,
-0.2946671844,
0.0482623428,
0.4136299789,
-0.0440326743,
-0.2447734773,
-0.1160901859,
-0.2239229381,
0.1551561654,
-0.4143984318,
0.3555930555,
-0.0270975623,
-0.3395843506,
0.1265248954,
0.2590247691,
0.3176574111,
0.0398984067,
-0.0687341467,
-0.0912579596,
0.2094143629,
0.0860810056,
0.0015092114,
0.002561782,
0.0442683622,
-0.2246017307,
0.0335891657,
0.0526750498,
-0.3481333554,
-0.264808625,
0.2723895907,
-0.6330308914,
-0.152561754,
0.0433832482,
0.1958048642,
-0.0334265344,
0.3636598587,
0.1086401269,
0.1735654324,
-0.0709836781,
0.433909893,
-0.1139724851,
0.1506480128,
-0.150755018,
-0.3666742444,
-0.0146502312,
-0.0477064028,
0.263486743,
0.1609742343,
-0.0598364174,
-0.1164130792,
-0.1345726997,
-0.0548428707,
0.8213589787,
0.2543647885,
-0.1598034054,
0.1559332013,
-0.0733607858,
-0.1676259339,
-0.2778808773,
0.4688283503,
-0.0525489971,
-0.0472389311,
-0.0369325131,
0.1636847258,
-0.0253802761,
0.1466593891,
-0.0407066047,
0.1523048133,
0.2607587874,
-0.3075159192,
0.3103862107,
-0.4980787039,
-0.3085978627,
-0.0031169474,
0.3174081445,
-0.1067103818,
-0.5454713106,
0.120909363,
0.2184112072,
-0.1296784878,
0.3179889619,
0.0624060631,
-0.1621998399,
-0.0811600089,
-0.403165251,
0.4490048885,
0.2591965795,
-0.0694254711,
-0.342114985,
0.1260675639,
0.1205659285,
0.1066326201,
0.030791495,
-0.0028174471,
0.40490219,
-0.1222340688,
0.2539356053,
0.1455523372,
0.3142382801,
0.1199977621,
-0.2166929096,
-0.273460269,
-0.0259249229,
-0.2393843383,
-0.4691470861,
-0.0802056193,
0.1083943173,
0.3235988319,
0.6428525448,
-0.2258229107,
0.1842897981,
-0.0204048418,
0.2308961898,
-0.0051635629,
-0.0841447264,
0.0325472169,
0.0299621094,
-0.1565894037,
0.2681492567,
-0.0104632555,
0.2493054718,
-0.1713258922,
0.0345189646,
-0.1256053746,
-0.1596103013,
-0.1805340946,
0.1418706179,
0.173257485,
-0.0029296239,
-0.3430259228,
-0.148338452,
-0.0648331419,
0.0567096882,
-0.1427606791,
-0.1699568331,
-0.0963075683,
-0.0247960687,
-0.0001661705,
0.179958865,
0.4795665145,
0.0097888531,
-0.0701157898,
-0.086644657,
0.3329331279,
0.3283602297,
-0.1670718044,
-0.3215807974,
0.2661701441,
0.1024131104,
0.0559849329,
0.3347049356,
0.0803663358,
0.1446886212,
0.0089917947,
-0.1023184732,
0.2809543312,
0.260209024,
0.4150138199,
0.3072758913,
0.0314083733,
0.1404747963,
0.2721953094,
-0.3666298687,
-0.174918294,
-0.3439562917,
-0.4124442935,
0.3329039812,
0.226143077,
-0.4646034241,
0.0917790905,
0.5448029637,
-0.0507612079,
-0.0450650565,
0.0591037571,
-0.321688056,
-0.2651135027,
0.2766357064,
-0.002975465,
0.2848726511,
0.1120959967,
0.2859367728,
-0.3420162201,
-0.0119027486,
-0.0141625777,
0.1763189733,
0.0698467568,
0.0053146933,
0.1744191796,
0.0393442437,
-0.1721081138,
-0.351467967,
-0.1222566739,
-0.2051748186,
-0.0216149837,
-0.1914530247,
-0.3006511331,
-0.0302169099,
-0.208710596,
-0.3192376792,
-0.1450596154,
0.0418107919,
-0.1104480475,
-0.1066034809,
0.1256700903,
-0.2035191804,
0.2269646227,
0.0746763796,
-0.0939041823,
-0.0203768741,
-0.0200449824,
0.1276885122,
0.272542417,
-0.2145110965,
0.1064156592,
0.0266421176,
0.137240693,
-0.0261569116,
0.2865569592,
-0.1178199947,
-0.4260058403,
-0.1333986819,
0.2693803906,
-0.1715441197,
0.0810995921,
0.2522566915,
0.2880108058,
-0.2064267695,
-0.3488792777,
0.1251537949,
-0.2400137484,
-0.2562884688,
-0.0190972034,
0.1952041239,
0.0960771963,
-0.3290714025,
-0.3493410647,
-0.0571331158,
-0.2351340204,
0.2053946704,
-0.0473212451,
0.3321630657,
0.0987269059,
0.1397119462,
0.1539788097,
0.0617708936,
-0.0087685343,
-0.3864862025,
0.0909208879,
0.2472738326,
-0.0513623357,
-0.1097156033,
-0.0254575443,
-0.0418610275,
0.1501147896,
0.0261176489,
-0.0670484677,
-0.2500670254,
-0.1688151956,
-0.2010641843,
-0.1022504419,
0.2995706797,
0.3238886595,
0.0633798316,
-0.0275953002,
-0.2345477492,
-0.1550437808,
0.0694917068,
0.3716648221,
0.2720550299,
0.109052062,
0.1303129792,
-0.0297388397,
0.540964067,
0.143972978,
-0.0783791542,
-0.1147629768,
-0.1328783482,
0.2275290936,
-0.1955568492,
0.0009198843,
0.2654893398,
-0.0471735224,
-0.2422697544,
0.2803627551,
0.1963617802,
-0.3379117548,
0.1211371198,
0.535000205,
-0.3518290222,
-0.1311654896,
0.2039003521,
-0.1092369854,
0.0565243252,
0.012097545,
0.1385527551,
0.3264888525,
-0.1831556261,
-0.1429656446,
-0.060818918,
0.3778915107,
-0.122935757,
-0.30530563,
-0.2059397697,
-0.8430305123,
0.3108459711,
0.129648,
0.5271250606,
0.0921635851,
-0.3337353766,
0.0367000774,
0.019211933,
0.2136795074,
-0.18546924,
-0.0598036684,
0.122101292,
0.5030912161,
-0.2352097481,
-0.1037610397,
-0.5014454126,
0.2313168496,
0.1940735728,
0.1540445089,
-0.285131067,
-0.1498831511,
0.2790752351,
0.3738973141,
0.1395092309,
0.4294824302,
-0.2213943005,
-0.4914535582,
0.0095419521,
0.042051807,
0.1823994815,
0.1690862477,
-0.0988629088,
-0.1069667339,
0.3594484031,
-0.1121455356,
0.2949053943,
-0.194573909,
0.5291567445,
0.4128486216,
-0.0546378866,
0.0929394811,
0.0280621555,
-0.0646089986,
0.207987681,
-0.3096725643,
0.5029839873,
0.4131551087,
-0.2394007891,
0.5206175447,
0.3403364122,
-0.1514891684,
-0.2023033649,
-0.04820963,
0.103427127,
-0.1453454345,
0.1274657995,
0.4268480837,
0.0737002268,
-0.1747568697,
-0.8883272409,
0.2098966986,
0.0379481874,
-0.1413361728,
0.1901784539,
-0.0669078976,
-0.3320237696,
0.4743844271,
0.0144873252,
1.0012592077,
-0.1401284337,
0.4054600894,
0.0801505223,
-0.0582277738,
-0.0018809536,
-0.1165610179,
0.2925010324,
-0.28549698,
0.1104974821,
-0.0729654431,
-0.1219115332,
0.0572722666,
0.2722385228,
-0.2216804028,
0.1426368803,
0.0047351685,
0.3801979423,
-0.1113715917,
0.2031701207,
-0.1888059676,
-0.2107470483,
-0.0501627624,
0.0712731034,
0.0959316269,
-0.0033201782,
0.1908802092,
-0.0662831813,
-0.2829703093,
-0.2782079577,
-0.2115707248,
0.0215351209,
-0.4260972738,
0.012034866,
-0.2798011005,
-0.4624312818,
-0.2454769909,
0.5334239602,
-0.4848813713,
0.3236002624,
0.2138374299,
-0.1354727298,
0.5590694547,
0.5515831709,
0.3116379082,
-0.0188210905,
-0.1117081791,
0.1837442368,
0.0380085669,
0.1661434174,
-0.0806640983,
-0.1902579814,
-0.0676689222,
0.1861064732,
0.2634870112,
-0.6092756391,
-0.4351527095,
0.2663458288,
-0.3400942981,
0.0811558589,
0.0875763819,
-0.0391181149,
-0.4593065083,
0.3327950239,
0.0742259845,
-0.2625933886,
0.0222769789,
0.3910148144,
0.1485091597,
0.0697130784,
0.4022965133,
-0.2254986167,
-0.0725291222,
-0.2175980806,
0.0831712261,
-0.0486745574,
-0.1868116558,
-0.068024464,
-0.1908236742,
-0.1473808289,
-0.059708368,
0.3709476888,
-0.1025209427,
0.4480679333,
-0.426931411,
-0.253295362,
-0.2550073862,
0.3010822237,
0.1377952248,
0.5629333854,
-0.2891402543,
-0.0836097002,
-0.0765116885,
-0.3991388679,
-0.2999734879,
0.0514088571,
0.0682659596,
0.3073440492,
0.1358734816,
0.226438567,
0.0149233425,
-0.193038404,
0.1997731924,
0.1608984619,
-0.159669742,
-0.1601823419,
0.049237527,
0.1256925613,
0.0974413231,
-0.4378764331,
-0.2101549655,
-0.097368069,
-0.3540396988,
-0.3380198479,
-0.0204579495,
0.2995051742,
-0.004900421,
-0.0517644137,
-0.039735131,
-0.0697472394,
0.2459424287,
0.0054688668,
-0.0198471975,
0.217976138,
0.1964981854,
0.2183790952,
0.1218398437,
-0.027543053,
0.5331261158,
0.2635759115,
-0.3267184198,
0.2047886103,
0.1816225499,
0.0593192577,
0.0389779285,
0.2862649262,
0.8134655952,
0.3783124983,
-0.1685485542,
-0.2733550072,
-0.0193377361,
0.2432171106,
-0.0890635848,
-0.0564588532,
0.2598478794,
-0.0612012707,
0.1170209795,
0.3430144191,
0.1226427704,
0.1133152097,
0.2428923547,
-0.0860350505,
-0.0216482095,
0.0547000952,
0.1951369047,
0.6959058046,
-0.1750027388,
0.1592744887,
0.154631868,
-0.3309014738,
0.1373237669,
0.4470795393,
0.0474792868,
0.0484334379,
0.5154218078,
0.2285025567,
0.1598499268,
-0.2348828912,
0.1329499483,
0.2044767141,
-0.0224498715,
0.414832294,
0.1210788041,
0.458729893,
-0.6043593287,
-0.1094679609,
0.0790624321,
0.0009081517,
-0.3967516124,
-0.1118186563,
0.2753410935,
-0.2673284411,
0.0516191684,
0.0174635667,
-0.2136456817,
0.0170028489,
0.2557516694,
-0.2441973239,
0.0896501839,
0.18769674,
-0.2054343373,
0.0021423444,
0.0930925757,
-0.0899714231,
0.270172298,
0.1652518809,
0.2525832951,
0.1785665154,
0.3292481303,
0.1305996925,
0.2140734345,
-0.0106340945,
0.0581513643,
-0.0524095483,
-0.1389569938,
-0.1043990701,
0.1386579424,
0.4489630759,
-0.1333084404,
0.2493186444,
0.1345666051,
-0.0617204532,
0.2072568238,
0.1711739749,
0.2795516551,
-0.0548238382,
-0.0193272829,
-0.0677706078,
-0.2908450365,
-0.0470619574,
-0.2652166486,
-0.337143451,
-0.1657004952,
0.2048022747,
-0.1028209627,
0.3487432897,
0.0653218478,
0.0525011942,
-0.068493031,
0.1418969631,
0.1893988699,
-0.1349394321,
-0.1232890785,
-0.2310763299,
-0.6346389651,
-0.3504953086,
0.0057024364,
-0.0724049509,
-0.3318589032,
0.3261370957,
0.2120034099,
0.2738455534,
0.2057515979,
-0.3142895103,
-0.0783467889,
0.0952591822,
0.0880952552,
-0.1488062143,
0.0608999915,
0.3614414036,
-0.131264165,
-0.6409597397,
0.0747112781,
0.0636974573,
0.0587464795,
-0.1293384433,
-0.0127097508,
-0.1543393582,
-0.0463848598,
0.1369002163,
0.1584454626,
0.3014501631,
-0.3522277474,
-0.104684554,
0.0305410326,
-0.0342388786,
-0.0911096856,
0.0221611112,
-0.3623102307,
0.7060503364,
0.0290058199,
0.072082229,
-0.2977441847,
0.0603045113,
0.1311794668,
-0.0275177322,
-0.3507946134,
0.0567641445,
-0.2715274096,
-0.3359443843,
0.086025767,
0.3804195523,
-0.0168815088,
-0.1331714243,
-0.282340914,
-0.2604236603,
0.3593374491,
-0.1025601849,
-0.2023165226,
-0.0687240362,
0.1935931593,
-0.0305340197,
0.0937946066,
-0.6026326418,
-0.1122704223,
0.3406172991,
-0.0750615373,
-0.0955480635,
0.0484363548,
-0.2759493887,
0.0046741855,
-0.2389898449,
0.3581074774,
0.2401623279,
-0.3639527261,
-0.1480272412,
-0.5026931763
] |
https://github.com/huggingface/datasets/issues/4185 | Librispeech documentation, clarification on format | > I don't think it's a good idea to convert to MP3 out-of-the-box, but we could maybe think about some kind of convert function for audio datasets cc @lhoestq ?
Sure, I would expect that `load_dataset("librispeech_asr")` would give you the original (not re-encoded) data (flac or already decoded). So such re-encoding logic would be some separate generic function. So I could do sth like `dataset.reencode_as_ogg(**ogg_encode_opts).save_to_disk(...)` or so.
| https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53
> Note that in order to limit the required storage for preparing this dataset, the audio
> is stored in the .flac format and is not converted to a float32 array. To convert, the audio
> file to a float32 array, please make use of the `.map()` function as follows:
>
> ```python
> import soundfile as sf
> def map_to_array(batch):
> speech_array, _ = sf.read(batch["file"])
> batch["speech"] = speech_array
> return batch
> dataset = dataset.map(map_to_array, remove_columns=["file"])
> ```
Is this still true?
In my case, `ds["train.100"]` returns:
```
Dataset({
features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'],
num_rows: 28539
})
```
and taking the first instance yields:
```
{'file': '374-180298-0000.flac',
'audio': {'path': '374-180298-0000.flac',
'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ...,
-2.74658203e-04, -1.83105469e-04, -3.05175781e-05]),
'sampling_rate': 16000},
'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED',
'speaker_id': 374,
'chapter_id': 180298,
'id': '374-180298-0000'}
```
The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong?
But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk?
Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk?
A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert? | 67 | Librispeech documentation, clarification on format
https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53
> Note that in order to limit the required storage for preparing this dataset, the audio
> is stored in the .flac format and is not converted to a float32 array. To convert, the audio
> file to a float32 array, please make use of the `.map()` function as follows:
>
> ```python
> import soundfile as sf
> def map_to_array(batch):
> speech_array, _ = sf.read(batch["file"])
> batch["speech"] = speech_array
> return batch
> dataset = dataset.map(map_to_array, remove_columns=["file"])
> ```
Is this still true?
In my case, `ds["train.100"]` returns:
```
Dataset({
features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'],
num_rows: 28539
})
```
and taking the first instance yields:
```
{'file': '374-180298-0000.flac',
'audio': {'path': '374-180298-0000.flac',
'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ...,
-2.74658203e-04, -1.83105469e-04, -3.05175781e-05]),
'sampling_rate': 16000},
'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED',
'speaker_id': 374,
'chapter_id': 180298,
'id': '374-180298-0000'}
```
The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong?
But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk?
Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk?
A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert?
> I don't think it's a good idea to convert to MP3 out-of-the-box, but we could maybe think about some kind of convert function for audio datasets cc @lhoestq ?
Sure, I would expect that `load_dataset("librispeech_asr")` would give you the original (not re-encoded) data (flac or already decoded). So such re-encoding logic would be some separate generic function. So I could do sth like `dataset.reencode_as_ogg(**ogg_encode_opts).save_to_disk(...)` or so.
| [
-0.1542334408,
-0.3340955675,
-0.1759803146,
0.2739016414,
0.216354534,
-0.2398924828,
0.4355738759,
0.1572939605,
0.2130361646,
0.0300804526,
-0.556984067,
0.2139859498,
-0.2302835286,
0.085956037,
0.0961477235,
0.0931838453,
0.0818833336,
0.2941011786,
-0.4400452077,
-0.1747707874,
-0.2997764647,
0.2271281332,
-0.4004110694,
0.0567237586,
0.0951733068,
0.063606061,
-0.0397924818,
0.048771169,
-0.2569730878,
-0.1601586789,
0.1267195344,
-0.0528800525,
0.101457648,
0.2192428857,
-0.0001162108,
-0.2093728185,
0.0235549137,
-0.3061894476,
-0.1699980795,
0.1575677693,
-0.219753772,
0.0494352616,
-0.1951781213,
-0.1933789402,
-0.1271953434,
-0.203825593,
-0.2340203524,
-0.397125721,
0.1354792118,
0.4306400716,
0.1723317802,
-0.0784719065,
0.1788722426,
0.2868997157,
0.3484281003,
0.1090351045,
-0.1158385202,
0.0088983709,
0.1201142594,
-0.0607514158,
-0.1416554749,
0.3081616759,
-0.094103612,
0.0886037871,
0.1880664229,
0.1195582971,
0.0023605304,
-0.3854247034,
0.1012000665,
0.3287840486,
0.4399695694,
-0.06328547,
-0.4344281256,
0.0978508145,
-0.2079864442,
-0.0963774845,
-0.1600911319,
0.3404839933,
-0.1445982456,
0.129069984,
-0.2053451985,
-0.1506488174,
0.0341525786,
0.0832133815,
-0.08166866,
0.4410449862,
-0.40770486,
0.125197947,
0.2639523745,
-0.2442327887,
-0.1180932224,
-0.2946671844,
0.0482623428,
0.4136299789,
-0.0440326743,
-0.2447734773,
-0.1160901859,
-0.2239229381,
0.1551561654,
-0.4143984318,
0.3555930555,
-0.0270975623,
-0.3395843506,
0.1265248954,
0.2590247691,
0.3176574111,
0.0398984067,
-0.0687341467,
-0.0912579596,
0.2094143629,
0.0860810056,
0.0015092114,
0.002561782,
0.0442683622,
-0.2246017307,
0.0335891657,
0.0526750498,
-0.3481333554,
-0.264808625,
0.2723895907,
-0.6330308914,
-0.152561754,
0.0433832482,
0.1958048642,
-0.0334265344,
0.3636598587,
0.1086401269,
0.1735654324,
-0.0709836781,
0.433909893,
-0.1139724851,
0.1506480128,
-0.150755018,
-0.3666742444,
-0.0146502312,
-0.0477064028,
0.263486743,
0.1609742343,
-0.0598364174,
-0.1164130792,
-0.1345726997,
-0.0548428707,
0.8213589787,
0.2543647885,
-0.1598034054,
0.1559332013,
-0.0733607858,
-0.1676259339,
-0.2778808773,
0.4688283503,
-0.0525489971,
-0.0472389311,
-0.0369325131,
0.1636847258,
-0.0253802761,
0.1466593891,
-0.0407066047,
0.1523048133,
0.2607587874,
-0.3075159192,
0.3103862107,
-0.4980787039,
-0.3085978627,
-0.0031169474,
0.3174081445,
-0.1067103818,
-0.5454713106,
0.120909363,
0.2184112072,
-0.1296784878,
0.3179889619,
0.0624060631,
-0.1621998399,
-0.0811600089,
-0.403165251,
0.4490048885,
0.2591965795,
-0.0694254711,
-0.342114985,
0.1260675639,
0.1205659285,
0.1066326201,
0.030791495,
-0.0028174471,
0.40490219,
-0.1222340688,
0.2539356053,
0.1455523372,
0.3142382801,
0.1199977621,
-0.2166929096,
-0.273460269,
-0.0259249229,
-0.2393843383,
-0.4691470861,
-0.0802056193,
0.1083943173,
0.3235988319,
0.6428525448,
-0.2258229107,
0.1842897981,
-0.0204048418,
0.2308961898,
-0.0051635629,
-0.0841447264,
0.0325472169,
0.0299621094,
-0.1565894037,
0.2681492567,
-0.0104632555,
0.2493054718,
-0.1713258922,
0.0345189646,
-0.1256053746,
-0.1596103013,
-0.1805340946,
0.1418706179,
0.173257485,
-0.0029296239,
-0.3430259228,
-0.148338452,
-0.0648331419,
0.0567096882,
-0.1427606791,
-0.1699568331,
-0.0963075683,
-0.0247960687,
-0.0001661705,
0.179958865,
0.4795665145,
0.0097888531,
-0.0701157898,
-0.086644657,
0.3329331279,
0.3283602297,
-0.1670718044,
-0.3215807974,
0.2661701441,
0.1024131104,
0.0559849329,
0.3347049356,
0.0803663358,
0.1446886212,
0.0089917947,
-0.1023184732,
0.2809543312,
0.260209024,
0.4150138199,
0.3072758913,
0.0314083733,
0.1404747963,
0.2721953094,
-0.3666298687,
-0.174918294,
-0.3439562917,
-0.4124442935,
0.3329039812,
0.226143077,
-0.4646034241,
0.0917790905,
0.5448029637,
-0.0507612079,
-0.0450650565,
0.0591037571,
-0.321688056,
-0.2651135027,
0.2766357064,
-0.002975465,
0.2848726511,
0.1120959967,
0.2859367728,
-0.3420162201,
-0.0119027486,
-0.0141625777,
0.1763189733,
0.0698467568,
0.0053146933,
0.1744191796,
0.0393442437,
-0.1721081138,
-0.351467967,
-0.1222566739,
-0.2051748186,
-0.0216149837,
-0.1914530247,
-0.3006511331,
-0.0302169099,
-0.208710596,
-0.3192376792,
-0.1450596154,
0.0418107919,
-0.1104480475,
-0.1066034809,
0.1256700903,
-0.2035191804,
0.2269646227,
0.0746763796,
-0.0939041823,
-0.0203768741,
-0.0200449824,
0.1276885122,
0.272542417,
-0.2145110965,
0.1064156592,
0.0266421176,
0.137240693,
-0.0261569116,
0.2865569592,
-0.1178199947,
-0.4260058403,
-0.1333986819,
0.2693803906,
-0.1715441197,
0.0810995921,
0.2522566915,
0.2880108058,
-0.2064267695,
-0.3488792777,
0.1251537949,
-0.2400137484,
-0.2562884688,
-0.0190972034,
0.1952041239,
0.0960771963,
-0.3290714025,
-0.3493410647,
-0.0571331158,
-0.2351340204,
0.2053946704,
-0.0473212451,
0.3321630657,
0.0987269059,
0.1397119462,
0.1539788097,
0.0617708936,
-0.0087685343,
-0.3864862025,
0.0909208879,
0.2472738326,
-0.0513623357,
-0.1097156033,
-0.0254575443,
-0.0418610275,
0.1501147896,
0.0261176489,
-0.0670484677,
-0.2500670254,
-0.1688151956,
-0.2010641843,
-0.1022504419,
0.2995706797,
0.3238886595,
0.0633798316,
-0.0275953002,
-0.2345477492,
-0.1550437808,
0.0694917068,
0.3716648221,
0.2720550299,
0.109052062,
0.1303129792,
-0.0297388397,
0.540964067,
0.143972978,
-0.0783791542,
-0.1147629768,
-0.1328783482,
0.2275290936,
-0.1955568492,
0.0009198843,
0.2654893398,
-0.0471735224,
-0.2422697544,
0.2803627551,
0.1963617802,
-0.3379117548,
0.1211371198,
0.535000205,
-0.3518290222,
-0.1311654896,
0.2039003521,
-0.1092369854,
0.0565243252,
0.012097545,
0.1385527551,
0.3264888525,
-0.1831556261,
-0.1429656446,
-0.060818918,
0.3778915107,
-0.122935757,
-0.30530563,
-0.2059397697,
-0.8430305123,
0.3108459711,
0.129648,
0.5271250606,
0.0921635851,
-0.3337353766,
0.0367000774,
0.019211933,
0.2136795074,
-0.18546924,
-0.0598036684,
0.122101292,
0.5030912161,
-0.2352097481,
-0.1037610397,
-0.5014454126,
0.2313168496,
0.1940735728,
0.1540445089,
-0.285131067,
-0.1498831511,
0.2790752351,
0.3738973141,
0.1395092309,
0.4294824302,
-0.2213943005,
-0.4914535582,
0.0095419521,
0.042051807,
0.1823994815,
0.1690862477,
-0.0988629088,
-0.1069667339,
0.3594484031,
-0.1121455356,
0.2949053943,
-0.194573909,
0.5291567445,
0.4128486216,
-0.0546378866,
0.0929394811,
0.0280621555,
-0.0646089986,
0.207987681,
-0.3096725643,
0.5029839873,
0.4131551087,
-0.2394007891,
0.5206175447,
0.3403364122,
-0.1514891684,
-0.2023033649,
-0.04820963,
0.103427127,
-0.1453454345,
0.1274657995,
0.4268480837,
0.0737002268,
-0.1747568697,
-0.8883272409,
0.2098966986,
0.0379481874,
-0.1413361728,
0.1901784539,
-0.0669078976,
-0.3320237696,
0.4743844271,
0.0144873252,
1.0012592077,
-0.1401284337,
0.4054600894,
0.0801505223,
-0.0582277738,
-0.0018809536,
-0.1165610179,
0.2925010324,
-0.28549698,
0.1104974821,
-0.0729654431,
-0.1219115332,
0.0572722666,
0.2722385228,
-0.2216804028,
0.1426368803,
0.0047351685,
0.3801979423,
-0.1113715917,
0.2031701207,
-0.1888059676,
-0.2107470483,
-0.0501627624,
0.0712731034,
0.0959316269,
-0.0033201782,
0.1908802092,
-0.0662831813,
-0.2829703093,
-0.2782079577,
-0.2115707248,
0.0215351209,
-0.4260972738,
0.012034866,
-0.2798011005,
-0.4624312818,
-0.2454769909,
0.5334239602,
-0.4848813713,
0.3236002624,
0.2138374299,
-0.1354727298,
0.5590694547,
0.5515831709,
0.3116379082,
-0.0188210905,
-0.1117081791,
0.1837442368,
0.0380085669,
0.1661434174,
-0.0806640983,
-0.1902579814,
-0.0676689222,
0.1861064732,
0.2634870112,
-0.6092756391,
-0.4351527095,
0.2663458288,
-0.3400942981,
0.0811558589,
0.0875763819,
-0.0391181149,
-0.4593065083,
0.3327950239,
0.0742259845,
-0.2625933886,
0.0222769789,
0.3910148144,
0.1485091597,
0.0697130784,
0.4022965133,
-0.2254986167,
-0.0725291222,
-0.2175980806,
0.0831712261,
-0.0486745574,
-0.1868116558,
-0.068024464,
-0.1908236742,
-0.1473808289,
-0.059708368,
0.3709476888,
-0.1025209427,
0.4480679333,
-0.426931411,
-0.253295362,
-0.2550073862,
0.3010822237,
0.1377952248,
0.5629333854,
-0.2891402543,
-0.0836097002,
-0.0765116885,
-0.3991388679,
-0.2999734879,
0.0514088571,
0.0682659596,
0.3073440492,
0.1358734816,
0.226438567,
0.0149233425,
-0.193038404,
0.1997731924,
0.1608984619,
-0.159669742,
-0.1601823419,
0.049237527,
0.1256925613,
0.0974413231,
-0.4378764331,
-0.2101549655,
-0.097368069,
-0.3540396988,
-0.3380198479,
-0.0204579495,
0.2995051742,
-0.004900421,
-0.0517644137,
-0.039735131,
-0.0697472394,
0.2459424287,
0.0054688668,
-0.0198471975,
0.217976138,
0.1964981854,
0.2183790952,
0.1218398437,
-0.027543053,
0.5331261158,
0.2635759115,
-0.3267184198,
0.2047886103,
0.1816225499,
0.0593192577,
0.0389779285,
0.2862649262,
0.8134655952,
0.3783124983,
-0.1685485542,
-0.2733550072,
-0.0193377361,
0.2432171106,
-0.0890635848,
-0.0564588532,
0.2598478794,
-0.0612012707,
0.1170209795,
0.3430144191,
0.1226427704,
0.1133152097,
0.2428923547,
-0.0860350505,
-0.0216482095,
0.0547000952,
0.1951369047,
0.6959058046,
-0.1750027388,
0.1592744887,
0.154631868,
-0.3309014738,
0.1373237669,
0.4470795393,
0.0474792868,
0.0484334379,
0.5154218078,
0.2285025567,
0.1598499268,
-0.2348828912,
0.1329499483,
0.2044767141,
-0.0224498715,
0.414832294,
0.1210788041,
0.458729893,
-0.6043593287,
-0.1094679609,
0.0790624321,
0.0009081517,
-0.3967516124,
-0.1118186563,
0.2753410935,
-0.2673284411,
0.0516191684,
0.0174635667,
-0.2136456817,
0.0170028489,
0.2557516694,
-0.2441973239,
0.0896501839,
0.18769674,
-0.2054343373,
0.0021423444,
0.0930925757,
-0.0899714231,
0.270172298,
0.1652518809,
0.2525832951,
0.1785665154,
0.3292481303,
0.1305996925,
0.2140734345,
-0.0106340945,
0.0581513643,
-0.0524095483,
-0.1389569938,
-0.1043990701,
0.1386579424,
0.4489630759,
-0.1333084404,
0.2493186444,
0.1345666051,
-0.0617204532,
0.2072568238,
0.1711739749,
0.2795516551,
-0.0548238382,
-0.0193272829,
-0.0677706078,
-0.2908450365,
-0.0470619574,
-0.2652166486,
-0.337143451,
-0.1657004952,
0.2048022747,
-0.1028209627,
0.3487432897,
0.0653218478,
0.0525011942,
-0.068493031,
0.1418969631,
0.1893988699,
-0.1349394321,
-0.1232890785,
-0.2310763299,
-0.6346389651,
-0.3504953086,
0.0057024364,
-0.0724049509,
-0.3318589032,
0.3261370957,
0.2120034099,
0.2738455534,
0.2057515979,
-0.3142895103,
-0.0783467889,
0.0952591822,
0.0880952552,
-0.1488062143,
0.0608999915,
0.3614414036,
-0.131264165,
-0.6409597397,
0.0747112781,
0.0636974573,
0.0587464795,
-0.1293384433,
-0.0127097508,
-0.1543393582,
-0.0463848598,
0.1369002163,
0.1584454626,
0.3014501631,
-0.3522277474,
-0.104684554,
0.0305410326,
-0.0342388786,
-0.0911096856,
0.0221611112,
-0.3623102307,
0.7060503364,
0.0290058199,
0.072082229,
-0.2977441847,
0.0603045113,
0.1311794668,
-0.0275177322,
-0.3507946134,
0.0567641445,
-0.2715274096,
-0.3359443843,
0.086025767,
0.3804195523,
-0.0168815088,
-0.1331714243,
-0.282340914,
-0.2604236603,
0.3593374491,
-0.1025601849,
-0.2023165226,
-0.0687240362,
0.1935931593,
-0.0305340197,
0.0937946066,
-0.6026326418,
-0.1122704223,
0.3406172991,
-0.0750615373,
-0.0955480635,
0.0484363548,
-0.2759493887,
0.0046741855,
-0.2389898449,
0.3581074774,
0.2401623279,
-0.3639527261,
-0.1480272412,
-0.5026931763
] |
https://github.com/huggingface/datasets/issues/4185 | Librispeech documentation, clarification on format | A follow-up question: I wonder whether a Parquet dataset is maybe more what we actually want to have? (Following also my comment here: https://github.com/huggingface/datasets/pull/4184#issuecomment-1105045491.) Because I think we actually would prefer to embed the data content in the dataset.
So, instead of `save_to_disk`/`load_from_disk`, we would use `to_parquet`,`from_parquet`? Is there any downside? Are arrow files more efficient?
Related is also the doc update in #4193.
| https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53
> Note that in order to limit the required storage for preparing this dataset, the audio
> is stored in the .flac format and is not converted to a float32 array. To convert, the audio
> file to a float32 array, please make use of the `.map()` function as follows:
>
> ```python
> import soundfile as sf
> def map_to_array(batch):
> speech_array, _ = sf.read(batch["file"])
> batch["speech"] = speech_array
> return batch
> dataset = dataset.map(map_to_array, remove_columns=["file"])
> ```
Is this still true?
In my case, `ds["train.100"]` returns:
```
Dataset({
features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'],
num_rows: 28539
})
```
and taking the first instance yields:
```
{'file': '374-180298-0000.flac',
'audio': {'path': '374-180298-0000.flac',
'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ...,
-2.74658203e-04, -1.83105469e-04, -3.05175781e-05]),
'sampling_rate': 16000},
'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED',
'speaker_id': 374,
'chapter_id': 180298,
'id': '374-180298-0000'}
```
The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong?
But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk?
Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk?
A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert? | 64 | Librispeech documentation, clarification on format
https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53
> Note that in order to limit the required storage for preparing this dataset, the audio
> is stored in the .flac format and is not converted to a float32 array. To convert, the audio
> file to a float32 array, please make use of the `.map()` function as follows:
>
> ```python
> import soundfile as sf
> def map_to_array(batch):
> speech_array, _ = sf.read(batch["file"])
> batch["speech"] = speech_array
> return batch
> dataset = dataset.map(map_to_array, remove_columns=["file"])
> ```
Is this still true?
In my case, `ds["train.100"]` returns:
```
Dataset({
features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'],
num_rows: 28539
})
```
and taking the first instance yields:
```
{'file': '374-180298-0000.flac',
'audio': {'path': '374-180298-0000.flac',
'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ...,
-2.74658203e-04, -1.83105469e-04, -3.05175781e-05]),
'sampling_rate': 16000},
'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED',
'speaker_id': 374,
'chapter_id': 180298,
'id': '374-180298-0000'}
```
The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong?
But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk?
Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk?
A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert?
A follow-up question: I wonder whether a Parquet dataset is maybe more what we actually want to have? (Following also my comment here: https://github.com/huggingface/datasets/pull/4184#issuecomment-1105045491.) Because I think we actually would prefer to embed the data content in the dataset.
So, instead of `save_to_disk`/`load_from_disk`, we would use `to_parquet`,`from_parquet`? Is there any downside? Are arrow files more efficient?
Related is also the doc update in #4193.
| [
-0.1542334408,
-0.3340955675,
-0.1759803146,
0.2739016414,
0.216354534,
-0.2398924828,
0.4355738759,
0.1572939605,
0.2130361646,
0.0300804526,
-0.556984067,
0.2139859498,
-0.2302835286,
0.085956037,
0.0961477235,
0.0931838453,
0.0818833336,
0.2941011786,
-0.4400452077,
-0.1747707874,
-0.2997764647,
0.2271281332,
-0.4004110694,
0.0567237586,
0.0951733068,
0.063606061,
-0.0397924818,
0.048771169,
-0.2569730878,
-0.1601586789,
0.1267195344,
-0.0528800525,
0.101457648,
0.2192428857,
-0.0001162108,
-0.2093728185,
0.0235549137,
-0.3061894476,
-0.1699980795,
0.1575677693,
-0.219753772,
0.0494352616,
-0.1951781213,
-0.1933789402,
-0.1271953434,
-0.203825593,
-0.2340203524,
-0.397125721,
0.1354792118,
0.4306400716,
0.1723317802,
-0.0784719065,
0.1788722426,
0.2868997157,
0.3484281003,
0.1090351045,
-0.1158385202,
0.0088983709,
0.1201142594,
-0.0607514158,
-0.1416554749,
0.3081616759,
-0.094103612,
0.0886037871,
0.1880664229,
0.1195582971,
0.0023605304,
-0.3854247034,
0.1012000665,
0.3287840486,
0.4399695694,
-0.06328547,
-0.4344281256,
0.0978508145,
-0.2079864442,
-0.0963774845,
-0.1600911319,
0.3404839933,
-0.1445982456,
0.129069984,
-0.2053451985,
-0.1506488174,
0.0341525786,
0.0832133815,
-0.08166866,
0.4410449862,
-0.40770486,
0.125197947,
0.2639523745,
-0.2442327887,
-0.1180932224,
-0.2946671844,
0.0482623428,
0.4136299789,
-0.0440326743,
-0.2447734773,
-0.1160901859,
-0.2239229381,
0.1551561654,
-0.4143984318,
0.3555930555,
-0.0270975623,
-0.3395843506,
0.1265248954,
0.2590247691,
0.3176574111,
0.0398984067,
-0.0687341467,
-0.0912579596,
0.2094143629,
0.0860810056,
0.0015092114,
0.002561782,
0.0442683622,
-0.2246017307,
0.0335891657,
0.0526750498,
-0.3481333554,
-0.264808625,
0.2723895907,
-0.6330308914,
-0.152561754,
0.0433832482,
0.1958048642,
-0.0334265344,
0.3636598587,
0.1086401269,
0.1735654324,
-0.0709836781,
0.433909893,
-0.1139724851,
0.1506480128,
-0.150755018,
-0.3666742444,
-0.0146502312,
-0.0477064028,
0.263486743,
0.1609742343,
-0.0598364174,
-0.1164130792,
-0.1345726997,
-0.0548428707,
0.8213589787,
0.2543647885,
-0.1598034054,
0.1559332013,
-0.0733607858,
-0.1676259339,
-0.2778808773,
0.4688283503,
-0.0525489971,
-0.0472389311,
-0.0369325131,
0.1636847258,
-0.0253802761,
0.1466593891,
-0.0407066047,
0.1523048133,
0.2607587874,
-0.3075159192,
0.3103862107,
-0.4980787039,
-0.3085978627,
-0.0031169474,
0.3174081445,
-0.1067103818,
-0.5454713106,
0.120909363,
0.2184112072,
-0.1296784878,
0.3179889619,
0.0624060631,
-0.1621998399,
-0.0811600089,
-0.403165251,
0.4490048885,
0.2591965795,
-0.0694254711,
-0.342114985,
0.1260675639,
0.1205659285,
0.1066326201,
0.030791495,
-0.0028174471,
0.40490219,
-0.1222340688,
0.2539356053,
0.1455523372,
0.3142382801,
0.1199977621,
-0.2166929096,
-0.273460269,
-0.0259249229,
-0.2393843383,
-0.4691470861,
-0.0802056193,
0.1083943173,
0.3235988319,
0.6428525448,
-0.2258229107,
0.1842897981,
-0.0204048418,
0.2308961898,
-0.0051635629,
-0.0841447264,
0.0325472169,
0.0299621094,
-0.1565894037,
0.2681492567,
-0.0104632555,
0.2493054718,
-0.1713258922,
0.0345189646,
-0.1256053746,
-0.1596103013,
-0.1805340946,
0.1418706179,
0.173257485,
-0.0029296239,
-0.3430259228,
-0.148338452,
-0.0648331419,
0.0567096882,
-0.1427606791,
-0.1699568331,
-0.0963075683,
-0.0247960687,
-0.0001661705,
0.179958865,
0.4795665145,
0.0097888531,
-0.0701157898,
-0.086644657,
0.3329331279,
0.3283602297,
-0.1670718044,
-0.3215807974,
0.2661701441,
0.1024131104,
0.0559849329,
0.3347049356,
0.0803663358,
0.1446886212,
0.0089917947,
-0.1023184732,
0.2809543312,
0.260209024,
0.4150138199,
0.3072758913,
0.0314083733,
0.1404747963,
0.2721953094,
-0.3666298687,
-0.174918294,
-0.3439562917,
-0.4124442935,
0.3329039812,
0.226143077,
-0.4646034241,
0.0917790905,
0.5448029637,
-0.0507612079,
-0.0450650565,
0.0591037571,
-0.321688056,
-0.2651135027,
0.2766357064,
-0.002975465,
0.2848726511,
0.1120959967,
0.2859367728,
-0.3420162201,
-0.0119027486,
-0.0141625777,
0.1763189733,
0.0698467568,
0.0053146933,
0.1744191796,
0.0393442437,
-0.1721081138,
-0.351467967,
-0.1222566739,
-0.2051748186,
-0.0216149837,
-0.1914530247,
-0.3006511331,
-0.0302169099,
-0.208710596,
-0.3192376792,
-0.1450596154,
0.0418107919,
-0.1104480475,
-0.1066034809,
0.1256700903,
-0.2035191804,
0.2269646227,
0.0746763796,
-0.0939041823,
-0.0203768741,
-0.0200449824,
0.1276885122,
0.272542417,
-0.2145110965,
0.1064156592,
0.0266421176,
0.137240693,
-0.0261569116,
0.2865569592,
-0.1178199947,
-0.4260058403,
-0.1333986819,
0.2693803906,
-0.1715441197,
0.0810995921,
0.2522566915,
0.2880108058,
-0.2064267695,
-0.3488792777,
0.1251537949,
-0.2400137484,
-0.2562884688,
-0.0190972034,
0.1952041239,
0.0960771963,
-0.3290714025,
-0.3493410647,
-0.0571331158,
-0.2351340204,
0.2053946704,
-0.0473212451,
0.3321630657,
0.0987269059,
0.1397119462,
0.1539788097,
0.0617708936,
-0.0087685343,
-0.3864862025,
0.0909208879,
0.2472738326,
-0.0513623357,
-0.1097156033,
-0.0254575443,
-0.0418610275,
0.1501147896,
0.0261176489,
-0.0670484677,
-0.2500670254,
-0.1688151956,
-0.2010641843,
-0.1022504419,
0.2995706797,
0.3238886595,
0.0633798316,
-0.0275953002,
-0.2345477492,
-0.1550437808,
0.0694917068,
0.3716648221,
0.2720550299,
0.109052062,
0.1303129792,
-0.0297388397,
0.540964067,
0.143972978,
-0.0783791542,
-0.1147629768,
-0.1328783482,
0.2275290936,
-0.1955568492,
0.0009198843,
0.2654893398,
-0.0471735224,
-0.2422697544,
0.2803627551,
0.1963617802,
-0.3379117548,
0.1211371198,
0.535000205,
-0.3518290222,
-0.1311654896,
0.2039003521,
-0.1092369854,
0.0565243252,
0.012097545,
0.1385527551,
0.3264888525,
-0.1831556261,
-0.1429656446,
-0.060818918,
0.3778915107,
-0.122935757,
-0.30530563,
-0.2059397697,
-0.8430305123,
0.3108459711,
0.129648,
0.5271250606,
0.0921635851,
-0.3337353766,
0.0367000774,
0.019211933,
0.2136795074,
-0.18546924,
-0.0598036684,
0.122101292,
0.5030912161,
-0.2352097481,
-0.1037610397,
-0.5014454126,
0.2313168496,
0.1940735728,
0.1540445089,
-0.285131067,
-0.1498831511,
0.2790752351,
0.3738973141,
0.1395092309,
0.4294824302,
-0.2213943005,
-0.4914535582,
0.0095419521,
0.042051807,
0.1823994815,
0.1690862477,
-0.0988629088,
-0.1069667339,
0.3594484031,
-0.1121455356,
0.2949053943,
-0.194573909,
0.5291567445,
0.4128486216,
-0.0546378866,
0.0929394811,
0.0280621555,
-0.0646089986,
0.207987681,
-0.3096725643,
0.5029839873,
0.4131551087,
-0.2394007891,
0.5206175447,
0.3403364122,
-0.1514891684,
-0.2023033649,
-0.04820963,
0.103427127,
-0.1453454345,
0.1274657995,
0.4268480837,
0.0737002268,
-0.1747568697,
-0.8883272409,
0.2098966986,
0.0379481874,
-0.1413361728,
0.1901784539,
-0.0669078976,
-0.3320237696,
0.4743844271,
0.0144873252,
1.0012592077,
-0.1401284337,
0.4054600894,
0.0801505223,
-0.0582277738,
-0.0018809536,
-0.1165610179,
0.2925010324,
-0.28549698,
0.1104974821,
-0.0729654431,
-0.1219115332,
0.0572722666,
0.2722385228,
-0.2216804028,
0.1426368803,
0.0047351685,
0.3801979423,
-0.1113715917,
0.2031701207,
-0.1888059676,
-0.2107470483,
-0.0501627624,
0.0712731034,
0.0959316269,
-0.0033201782,
0.1908802092,
-0.0662831813,
-0.2829703093,
-0.2782079577,
-0.2115707248,
0.0215351209,
-0.4260972738,
0.012034866,
-0.2798011005,
-0.4624312818,
-0.2454769909,
0.5334239602,
-0.4848813713,
0.3236002624,
0.2138374299,
-0.1354727298,
0.5590694547,
0.5515831709,
0.3116379082,
-0.0188210905,
-0.1117081791,
0.1837442368,
0.0380085669,
0.1661434174,
-0.0806640983,
-0.1902579814,
-0.0676689222,
0.1861064732,
0.2634870112,
-0.6092756391,
-0.4351527095,
0.2663458288,
-0.3400942981,
0.0811558589,
0.0875763819,
-0.0391181149,
-0.4593065083,
0.3327950239,
0.0742259845,
-0.2625933886,
0.0222769789,
0.3910148144,
0.1485091597,
0.0697130784,
0.4022965133,
-0.2254986167,
-0.0725291222,
-0.2175980806,
0.0831712261,
-0.0486745574,
-0.1868116558,
-0.068024464,
-0.1908236742,
-0.1473808289,
-0.059708368,
0.3709476888,
-0.1025209427,
0.4480679333,
-0.426931411,
-0.253295362,
-0.2550073862,
0.3010822237,
0.1377952248,
0.5629333854,
-0.2891402543,
-0.0836097002,
-0.0765116885,
-0.3991388679,
-0.2999734879,
0.0514088571,
0.0682659596,
0.3073440492,
0.1358734816,
0.226438567,
0.0149233425,
-0.193038404,
0.1997731924,
0.1608984619,
-0.159669742,
-0.1601823419,
0.049237527,
0.1256925613,
0.0974413231,
-0.4378764331,
-0.2101549655,
-0.097368069,
-0.3540396988,
-0.3380198479,
-0.0204579495,
0.2995051742,
-0.004900421,
-0.0517644137,
-0.039735131,
-0.0697472394,
0.2459424287,
0.0054688668,
-0.0198471975,
0.217976138,
0.1964981854,
0.2183790952,
0.1218398437,
-0.027543053,
0.5331261158,
0.2635759115,
-0.3267184198,
0.2047886103,
0.1816225499,
0.0593192577,
0.0389779285,
0.2862649262,
0.8134655952,
0.3783124983,
-0.1685485542,
-0.2733550072,
-0.0193377361,
0.2432171106,
-0.0890635848,
-0.0564588532,
0.2598478794,
-0.0612012707,
0.1170209795,
0.3430144191,
0.1226427704,
0.1133152097,
0.2428923547,
-0.0860350505,
-0.0216482095,
0.0547000952,
0.1951369047,
0.6959058046,
-0.1750027388,
0.1592744887,
0.154631868,
-0.3309014738,
0.1373237669,
0.4470795393,
0.0474792868,
0.0484334379,
0.5154218078,
0.2285025567,
0.1598499268,
-0.2348828912,
0.1329499483,
0.2044767141,
-0.0224498715,
0.414832294,
0.1210788041,
0.458729893,
-0.6043593287,
-0.1094679609,
0.0790624321,
0.0009081517,
-0.3967516124,
-0.1118186563,
0.2753410935,
-0.2673284411,
0.0516191684,
0.0174635667,
-0.2136456817,
0.0170028489,
0.2557516694,
-0.2441973239,
0.0896501839,
0.18769674,
-0.2054343373,
0.0021423444,
0.0930925757,
-0.0899714231,
0.270172298,
0.1652518809,
0.2525832951,
0.1785665154,
0.3292481303,
0.1305996925,
0.2140734345,
-0.0106340945,
0.0581513643,
-0.0524095483,
-0.1389569938,
-0.1043990701,
0.1386579424,
0.4489630759,
-0.1333084404,
0.2493186444,
0.1345666051,
-0.0617204532,
0.2072568238,
0.1711739749,
0.2795516551,
-0.0548238382,
-0.0193272829,
-0.0677706078,
-0.2908450365,
-0.0470619574,
-0.2652166486,
-0.337143451,
-0.1657004952,
0.2048022747,
-0.1028209627,
0.3487432897,
0.0653218478,
0.0525011942,
-0.068493031,
0.1418969631,
0.1893988699,
-0.1349394321,
-0.1232890785,
-0.2310763299,
-0.6346389651,
-0.3504953086,
0.0057024364,
-0.0724049509,
-0.3318589032,
0.3261370957,
0.2120034099,
0.2738455534,
0.2057515979,
-0.3142895103,
-0.0783467889,
0.0952591822,
0.0880952552,
-0.1488062143,
0.0608999915,
0.3614414036,
-0.131264165,
-0.6409597397,
0.0747112781,
0.0636974573,
0.0587464795,
-0.1293384433,
-0.0127097508,
-0.1543393582,
-0.0463848598,
0.1369002163,
0.1584454626,
0.3014501631,
-0.3522277474,
-0.104684554,
0.0305410326,
-0.0342388786,
-0.0911096856,
0.0221611112,
-0.3623102307,
0.7060503364,
0.0290058199,
0.072082229,
-0.2977441847,
0.0603045113,
0.1311794668,
-0.0275177322,
-0.3507946134,
0.0567641445,
-0.2715274096,
-0.3359443843,
0.086025767,
0.3804195523,
-0.0168815088,
-0.1331714243,
-0.282340914,
-0.2604236603,
0.3593374491,
-0.1025601849,
-0.2023165226,
-0.0687240362,
0.1935931593,
-0.0305340197,
0.0937946066,
-0.6026326418,
-0.1122704223,
0.3406172991,
-0.0750615373,
-0.0955480635,
0.0484363548,
-0.2759493887,
0.0046741855,
-0.2389898449,
0.3581074774,
0.2401623279,
-0.3639527261,
-0.1480272412,
-0.5026931763
] |
https://github.com/huggingface/datasets/issues/4185 | Librispeech documentation, clarification on format | `save_to_disk` saves the dataset as an Arrow file, which is the format we use to load a dataset using memory mapping. This way the dataset does not fill your RAM, but is read from your disk instead.
Therefore you can directly reload a dataset saved with `save_to_disk` using `load_from_disk`.
Parquet files are used for cold storage: to use memory mapping on a Parquet dataset, you first have to convert it to Arrow. We use Parquet to reduce the I/O when pushing/downloading data from the Hugging face Hub. When you load a Parquet file from the Hub, it is converted to Arrow on the fly during the download. | https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53
> Note that in order to limit the required storage for preparing this dataset, the audio
> is stored in the .flac format and is not converted to a float32 array. To convert, the audio
> file to a float32 array, please make use of the `.map()` function as follows:
>
> ```python
> import soundfile as sf
> def map_to_array(batch):
> speech_array, _ = sf.read(batch["file"])
> batch["speech"] = speech_array
> return batch
> dataset = dataset.map(map_to_array, remove_columns=["file"])
> ```
Is this still true?
In my case, `ds["train.100"]` returns:
```
Dataset({
features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'],
num_rows: 28539
})
```
and taking the first instance yields:
```
{'file': '374-180298-0000.flac',
'audio': {'path': '374-180298-0000.flac',
'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ...,
-2.74658203e-04, -1.83105469e-04, -3.05175781e-05]),
'sampling_rate': 16000},
'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED',
'speaker_id': 374,
'chapter_id': 180298,
'id': '374-180298-0000'}
```
The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong?
But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk?
Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk?
A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert? | 107 | Librispeech documentation, clarification on format
https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53
> Note that in order to limit the required storage for preparing this dataset, the audio
> is stored in the .flac format and is not converted to a float32 array. To convert, the audio
> file to a float32 array, please make use of the `.map()` function as follows:
>
> ```python
> import soundfile as sf
> def map_to_array(batch):
> speech_array, _ = sf.read(batch["file"])
> batch["speech"] = speech_array
> return batch
> dataset = dataset.map(map_to_array, remove_columns=["file"])
> ```
Is this still true?
In my case, `ds["train.100"]` returns:
```
Dataset({
features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'],
num_rows: 28539
})
```
and taking the first instance yields:
```
{'file': '374-180298-0000.flac',
'audio': {'path': '374-180298-0000.flac',
'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ...,
-2.74658203e-04, -1.83105469e-04, -3.05175781e-05]),
'sampling_rate': 16000},
'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED',
'speaker_id': 374,
'chapter_id': 180298,
'id': '374-180298-0000'}
```
The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong?
But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk?
Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk?
A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert?
`save_to_disk` saves the dataset as an Arrow file, which is the format we use to load a dataset using memory mapping. This way the dataset does not fill your RAM, but is read from your disk instead.
Therefore you can directly reload a dataset saved with `save_to_disk` using `load_from_disk`.
Parquet files are used for cold storage: to use memory mapping on a Parquet dataset, you first have to convert it to Arrow. We use Parquet to reduce the I/O when pushing/downloading data from the Hugging face Hub. When you load a Parquet file from the Hub, it is converted to Arrow on the fly during the download. | [
-0.1542334408,
-0.3340955675,
-0.1759803146,
0.2739016414,
0.216354534,
-0.2398924828,
0.4355738759,
0.1572939605,
0.2130361646,
0.0300804526,
-0.556984067,
0.2139859498,
-0.2302835286,
0.085956037,
0.0961477235,
0.0931838453,
0.0818833336,
0.2941011786,
-0.4400452077,
-0.1747707874,
-0.2997764647,
0.2271281332,
-0.4004110694,
0.0567237586,
0.0951733068,
0.063606061,
-0.0397924818,
0.048771169,
-0.2569730878,
-0.1601586789,
0.1267195344,
-0.0528800525,
0.101457648,
0.2192428857,
-0.0001162108,
-0.2093728185,
0.0235549137,
-0.3061894476,
-0.1699980795,
0.1575677693,
-0.219753772,
0.0494352616,
-0.1951781213,
-0.1933789402,
-0.1271953434,
-0.203825593,
-0.2340203524,
-0.397125721,
0.1354792118,
0.4306400716,
0.1723317802,
-0.0784719065,
0.1788722426,
0.2868997157,
0.3484281003,
0.1090351045,
-0.1158385202,
0.0088983709,
0.1201142594,
-0.0607514158,
-0.1416554749,
0.3081616759,
-0.094103612,
0.0886037871,
0.1880664229,
0.1195582971,
0.0023605304,
-0.3854247034,
0.1012000665,
0.3287840486,
0.4399695694,
-0.06328547,
-0.4344281256,
0.0978508145,
-0.2079864442,
-0.0963774845,
-0.1600911319,
0.3404839933,
-0.1445982456,
0.129069984,
-0.2053451985,
-0.1506488174,
0.0341525786,
0.0832133815,
-0.08166866,
0.4410449862,
-0.40770486,
0.125197947,
0.2639523745,
-0.2442327887,
-0.1180932224,
-0.2946671844,
0.0482623428,
0.4136299789,
-0.0440326743,
-0.2447734773,
-0.1160901859,
-0.2239229381,
0.1551561654,
-0.4143984318,
0.3555930555,
-0.0270975623,
-0.3395843506,
0.1265248954,
0.2590247691,
0.3176574111,
0.0398984067,
-0.0687341467,
-0.0912579596,
0.2094143629,
0.0860810056,
0.0015092114,
0.002561782,
0.0442683622,
-0.2246017307,
0.0335891657,
0.0526750498,
-0.3481333554,
-0.264808625,
0.2723895907,
-0.6330308914,
-0.152561754,
0.0433832482,
0.1958048642,
-0.0334265344,
0.3636598587,
0.1086401269,
0.1735654324,
-0.0709836781,
0.433909893,
-0.1139724851,
0.1506480128,
-0.150755018,
-0.3666742444,
-0.0146502312,
-0.0477064028,
0.263486743,
0.1609742343,
-0.0598364174,
-0.1164130792,
-0.1345726997,
-0.0548428707,
0.8213589787,
0.2543647885,
-0.1598034054,
0.1559332013,
-0.0733607858,
-0.1676259339,
-0.2778808773,
0.4688283503,
-0.0525489971,
-0.0472389311,
-0.0369325131,
0.1636847258,
-0.0253802761,
0.1466593891,
-0.0407066047,
0.1523048133,
0.2607587874,
-0.3075159192,
0.3103862107,
-0.4980787039,
-0.3085978627,
-0.0031169474,
0.3174081445,
-0.1067103818,
-0.5454713106,
0.120909363,
0.2184112072,
-0.1296784878,
0.3179889619,
0.0624060631,
-0.1621998399,
-0.0811600089,
-0.403165251,
0.4490048885,
0.2591965795,
-0.0694254711,
-0.342114985,
0.1260675639,
0.1205659285,
0.1066326201,
0.030791495,
-0.0028174471,
0.40490219,
-0.1222340688,
0.2539356053,
0.1455523372,
0.3142382801,
0.1199977621,
-0.2166929096,
-0.273460269,
-0.0259249229,
-0.2393843383,
-0.4691470861,
-0.0802056193,
0.1083943173,
0.3235988319,
0.6428525448,
-0.2258229107,
0.1842897981,
-0.0204048418,
0.2308961898,
-0.0051635629,
-0.0841447264,
0.0325472169,
0.0299621094,
-0.1565894037,
0.2681492567,
-0.0104632555,
0.2493054718,
-0.1713258922,
0.0345189646,
-0.1256053746,
-0.1596103013,
-0.1805340946,
0.1418706179,
0.173257485,
-0.0029296239,
-0.3430259228,
-0.148338452,
-0.0648331419,
0.0567096882,
-0.1427606791,
-0.1699568331,
-0.0963075683,
-0.0247960687,
-0.0001661705,
0.179958865,
0.4795665145,
0.0097888531,
-0.0701157898,
-0.086644657,
0.3329331279,
0.3283602297,
-0.1670718044,
-0.3215807974,
0.2661701441,
0.1024131104,
0.0559849329,
0.3347049356,
0.0803663358,
0.1446886212,
0.0089917947,
-0.1023184732,
0.2809543312,
0.260209024,
0.4150138199,
0.3072758913,
0.0314083733,
0.1404747963,
0.2721953094,
-0.3666298687,
-0.174918294,
-0.3439562917,
-0.4124442935,
0.3329039812,
0.226143077,
-0.4646034241,
0.0917790905,
0.5448029637,
-0.0507612079,
-0.0450650565,
0.0591037571,
-0.321688056,
-0.2651135027,
0.2766357064,
-0.002975465,
0.2848726511,
0.1120959967,
0.2859367728,
-0.3420162201,
-0.0119027486,
-0.0141625777,
0.1763189733,
0.0698467568,
0.0053146933,
0.1744191796,
0.0393442437,
-0.1721081138,
-0.351467967,
-0.1222566739,
-0.2051748186,
-0.0216149837,
-0.1914530247,
-0.3006511331,
-0.0302169099,
-0.208710596,
-0.3192376792,
-0.1450596154,
0.0418107919,
-0.1104480475,
-0.1066034809,
0.1256700903,
-0.2035191804,
0.2269646227,
0.0746763796,
-0.0939041823,
-0.0203768741,
-0.0200449824,
0.1276885122,
0.272542417,
-0.2145110965,
0.1064156592,
0.0266421176,
0.137240693,
-0.0261569116,
0.2865569592,
-0.1178199947,
-0.4260058403,
-0.1333986819,
0.2693803906,
-0.1715441197,
0.0810995921,
0.2522566915,
0.2880108058,
-0.2064267695,
-0.3488792777,
0.1251537949,
-0.2400137484,
-0.2562884688,
-0.0190972034,
0.1952041239,
0.0960771963,
-0.3290714025,
-0.3493410647,
-0.0571331158,
-0.2351340204,
0.2053946704,
-0.0473212451,
0.3321630657,
0.0987269059,
0.1397119462,
0.1539788097,
0.0617708936,
-0.0087685343,
-0.3864862025,
0.0909208879,
0.2472738326,
-0.0513623357,
-0.1097156033,
-0.0254575443,
-0.0418610275,
0.1501147896,
0.0261176489,
-0.0670484677,
-0.2500670254,
-0.1688151956,
-0.2010641843,
-0.1022504419,
0.2995706797,
0.3238886595,
0.0633798316,
-0.0275953002,
-0.2345477492,
-0.1550437808,
0.0694917068,
0.3716648221,
0.2720550299,
0.109052062,
0.1303129792,
-0.0297388397,
0.540964067,
0.143972978,
-0.0783791542,
-0.1147629768,
-0.1328783482,
0.2275290936,
-0.1955568492,
0.0009198843,
0.2654893398,
-0.0471735224,
-0.2422697544,
0.2803627551,
0.1963617802,
-0.3379117548,
0.1211371198,
0.535000205,
-0.3518290222,
-0.1311654896,
0.2039003521,
-0.1092369854,
0.0565243252,
0.012097545,
0.1385527551,
0.3264888525,
-0.1831556261,
-0.1429656446,
-0.060818918,
0.3778915107,
-0.122935757,
-0.30530563,
-0.2059397697,
-0.8430305123,
0.3108459711,
0.129648,
0.5271250606,
0.0921635851,
-0.3337353766,
0.0367000774,
0.019211933,
0.2136795074,
-0.18546924,
-0.0598036684,
0.122101292,
0.5030912161,
-0.2352097481,
-0.1037610397,
-0.5014454126,
0.2313168496,
0.1940735728,
0.1540445089,
-0.285131067,
-0.1498831511,
0.2790752351,
0.3738973141,
0.1395092309,
0.4294824302,
-0.2213943005,
-0.4914535582,
0.0095419521,
0.042051807,
0.1823994815,
0.1690862477,
-0.0988629088,
-0.1069667339,
0.3594484031,
-0.1121455356,
0.2949053943,
-0.194573909,
0.5291567445,
0.4128486216,
-0.0546378866,
0.0929394811,
0.0280621555,
-0.0646089986,
0.207987681,
-0.3096725643,
0.5029839873,
0.4131551087,
-0.2394007891,
0.5206175447,
0.3403364122,
-0.1514891684,
-0.2023033649,
-0.04820963,
0.103427127,
-0.1453454345,
0.1274657995,
0.4268480837,
0.0737002268,
-0.1747568697,
-0.8883272409,
0.2098966986,
0.0379481874,
-0.1413361728,
0.1901784539,
-0.0669078976,
-0.3320237696,
0.4743844271,
0.0144873252,
1.0012592077,
-0.1401284337,
0.4054600894,
0.0801505223,
-0.0582277738,
-0.0018809536,
-0.1165610179,
0.2925010324,
-0.28549698,
0.1104974821,
-0.0729654431,
-0.1219115332,
0.0572722666,
0.2722385228,
-0.2216804028,
0.1426368803,
0.0047351685,
0.3801979423,
-0.1113715917,
0.2031701207,
-0.1888059676,
-0.2107470483,
-0.0501627624,
0.0712731034,
0.0959316269,
-0.0033201782,
0.1908802092,
-0.0662831813,
-0.2829703093,
-0.2782079577,
-0.2115707248,
0.0215351209,
-0.4260972738,
0.012034866,
-0.2798011005,
-0.4624312818,
-0.2454769909,
0.5334239602,
-0.4848813713,
0.3236002624,
0.2138374299,
-0.1354727298,
0.5590694547,
0.5515831709,
0.3116379082,
-0.0188210905,
-0.1117081791,
0.1837442368,
0.0380085669,
0.1661434174,
-0.0806640983,
-0.1902579814,
-0.0676689222,
0.1861064732,
0.2634870112,
-0.6092756391,
-0.4351527095,
0.2663458288,
-0.3400942981,
0.0811558589,
0.0875763819,
-0.0391181149,
-0.4593065083,
0.3327950239,
0.0742259845,
-0.2625933886,
0.0222769789,
0.3910148144,
0.1485091597,
0.0697130784,
0.4022965133,
-0.2254986167,
-0.0725291222,
-0.2175980806,
0.0831712261,
-0.0486745574,
-0.1868116558,
-0.068024464,
-0.1908236742,
-0.1473808289,
-0.059708368,
0.3709476888,
-0.1025209427,
0.4480679333,
-0.426931411,
-0.253295362,
-0.2550073862,
0.3010822237,
0.1377952248,
0.5629333854,
-0.2891402543,
-0.0836097002,
-0.0765116885,
-0.3991388679,
-0.2999734879,
0.0514088571,
0.0682659596,
0.3073440492,
0.1358734816,
0.226438567,
0.0149233425,
-0.193038404,
0.1997731924,
0.1608984619,
-0.159669742,
-0.1601823419,
0.049237527,
0.1256925613,
0.0974413231,
-0.4378764331,
-0.2101549655,
-0.097368069,
-0.3540396988,
-0.3380198479,
-0.0204579495,
0.2995051742,
-0.004900421,
-0.0517644137,
-0.039735131,
-0.0697472394,
0.2459424287,
0.0054688668,
-0.0198471975,
0.217976138,
0.1964981854,
0.2183790952,
0.1218398437,
-0.027543053,
0.5331261158,
0.2635759115,
-0.3267184198,
0.2047886103,
0.1816225499,
0.0593192577,
0.0389779285,
0.2862649262,
0.8134655952,
0.3783124983,
-0.1685485542,
-0.2733550072,
-0.0193377361,
0.2432171106,
-0.0890635848,
-0.0564588532,
0.2598478794,
-0.0612012707,
0.1170209795,
0.3430144191,
0.1226427704,
0.1133152097,
0.2428923547,
-0.0860350505,
-0.0216482095,
0.0547000952,
0.1951369047,
0.6959058046,
-0.1750027388,
0.1592744887,
0.154631868,
-0.3309014738,
0.1373237669,
0.4470795393,
0.0474792868,
0.0484334379,
0.5154218078,
0.2285025567,
0.1598499268,
-0.2348828912,
0.1329499483,
0.2044767141,
-0.0224498715,
0.414832294,
0.1210788041,
0.458729893,
-0.6043593287,
-0.1094679609,
0.0790624321,
0.0009081517,
-0.3967516124,
-0.1118186563,
0.2753410935,
-0.2673284411,
0.0516191684,
0.0174635667,
-0.2136456817,
0.0170028489,
0.2557516694,
-0.2441973239,
0.0896501839,
0.18769674,
-0.2054343373,
0.0021423444,
0.0930925757,
-0.0899714231,
0.270172298,
0.1652518809,
0.2525832951,
0.1785665154,
0.3292481303,
0.1305996925,
0.2140734345,
-0.0106340945,
0.0581513643,
-0.0524095483,
-0.1389569938,
-0.1043990701,
0.1386579424,
0.4489630759,
-0.1333084404,
0.2493186444,
0.1345666051,
-0.0617204532,
0.2072568238,
0.1711739749,
0.2795516551,
-0.0548238382,
-0.0193272829,
-0.0677706078,
-0.2908450365,
-0.0470619574,
-0.2652166486,
-0.337143451,
-0.1657004952,
0.2048022747,
-0.1028209627,
0.3487432897,
0.0653218478,
0.0525011942,
-0.068493031,
0.1418969631,
0.1893988699,
-0.1349394321,
-0.1232890785,
-0.2310763299,
-0.6346389651,
-0.3504953086,
0.0057024364,
-0.0724049509,
-0.3318589032,
0.3261370957,
0.2120034099,
0.2738455534,
0.2057515979,
-0.3142895103,
-0.0783467889,
0.0952591822,
0.0880952552,
-0.1488062143,
0.0608999915,
0.3614414036,
-0.131264165,
-0.6409597397,
0.0747112781,
0.0636974573,
0.0587464795,
-0.1293384433,
-0.0127097508,
-0.1543393582,
-0.0463848598,
0.1369002163,
0.1584454626,
0.3014501631,
-0.3522277474,
-0.104684554,
0.0305410326,
-0.0342388786,
-0.0911096856,
0.0221611112,
-0.3623102307,
0.7060503364,
0.0290058199,
0.072082229,
-0.2977441847,
0.0603045113,
0.1311794668,
-0.0275177322,
-0.3507946134,
0.0567641445,
-0.2715274096,
-0.3359443843,
0.086025767,
0.3804195523,
-0.0168815088,
-0.1331714243,
-0.282340914,
-0.2604236603,
0.3593374491,
-0.1025601849,
-0.2023165226,
-0.0687240362,
0.1935931593,
-0.0305340197,
0.0937946066,
-0.6026326418,
-0.1122704223,
0.3406172991,
-0.0750615373,
-0.0955480635,
0.0484363548,
-0.2759493887,
0.0046741855,
-0.2389898449,
0.3581074774,
0.2401623279,
-0.3639527261,
-0.1480272412,
-0.5026931763
] |
https://github.com/huggingface/datasets/issues/4182 | Zenodo.org download is not responding | Hi @dkajtoch, please note that at HuggingFace we are not hosting this dataset: we are just using a script to download their data file and create a dataset from it.
It was the dataset owners decision to host their data at Zenodo. You can see this on their website: https://marcobaroni.org/composes/sick.html
And yes, you are right: Zenodo is currently having some incidents and people are reporting problems from it.
On the other hand, we could contact the data owners and propose them to host their data at our Hugging Face Hub.
@julien-c I guess so.
| ## Describe the bug
Source download_url from zenodo.org does not respond.
`_DOWNLOAD_URL = "https://zenodo.org/record/2787612/files/SICK.zip?download=1"`
Other datasets also use zenodo.org to store data and they cannot be downloaded as well.
It would be better to actually use more reliable way to store original data like s3 bucket.
## Steps to reproduce the bug
```python
load_dataset("sick")
```
## Expected results
Dataset should be downloaded.
## Actual results
ConnectionError: Couldn't reach https://zenodo.org/record/2787612/files/SICK.zip?download=1 (ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out. (read timeout=100)")))
## Environment info
- `datasets` version: 2.1.0
- Platform: Darwin-21.4.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
| 94 | Zenodo.org download is not responding
## Describe the bug
Source download_url from zenodo.org does not respond.
`_DOWNLOAD_URL = "https://zenodo.org/record/2787612/files/SICK.zip?download=1"`
Other datasets also use zenodo.org to store data and they cannot be downloaded as well.
It would be better to actually use more reliable way to store original data like s3 bucket.
## Steps to reproduce the bug
```python
load_dataset("sick")
```
## Expected results
Dataset should be downloaded.
## Actual results
ConnectionError: Couldn't reach https://zenodo.org/record/2787612/files/SICK.zip?download=1 (ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out. (read timeout=100)")))
## Environment info
- `datasets` version: 2.1.0
- Platform: Darwin-21.4.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
Hi @dkajtoch, please note that at HuggingFace we are not hosting this dataset: we are just using a script to download their data file and create a dataset from it.
It was the dataset owners decision to host their data at Zenodo. You can see this on their website: https://marcobaroni.org/composes/sick.html
And yes, you are right: Zenodo is currently having some incidents and people are reporting problems from it.
On the other hand, we could contact the data owners and propose them to host their data at our Hugging Face Hub.
@julien-c I guess so.
| [
-0.0107859969,
-0.1561817527,
-0.1249701902,
0.3887094557,
0.4191482961,
-0.1206511408,
0.2301652282,
0.2020222545,
-0.0820400119,
0.0954474658,
-0.6322540045,
-0.1440723985,
0.2485608906,
0.0900175571,
0.030166056,
-0.0484910905,
-0.0453971438,
0.0510842651,
-0.2552132607,
-0.1411944032,
-0.1187958568,
0.1724762172,
-0.17650038,
0.1671873182,
0.2260657102,
0.1441581994,
-0.2793300748,
0.1474705637,
-0.2528530955,
-0.337670356,
0.4802133441,
0.100127399,
0.1004396453,
0.4036625028,
-0.0001100372,
-0.0820990875,
0.2704245448,
-0.0273077823,
-0.1413076371,
-0.2390258461,
-0.4468912184,
-0.4307166338,
-0.2389546186,
-0.0572035871,
0.0352374129,
-0.1123873442,
0.1536872387,
0.0683476776,
0.333532989,
0.3270463645,
0.2024742812,
0.5704357624,
0.4255388379,
-0.1298608929,
0.293676734,
-0.0739390329,
-0.3079017401,
0.6192806959,
0.2204638571,
0.1338264793,
0.0470939465,
0.195374161,
-0.2217798084,
0.0259319004,
0.0097179059,
0.0078713018,
0.0310895015,
-0.2468628883,
-0.0914414749,
0.3457939923,
0.537717402,
0.0513802953,
-0.4824998975,
-0.1947270483,
0.1232344881,
-0.1748851687,
0.1022363231,
0.0630544797,
-0.0519494638,
0.2461095154,
-0.129905507,
-0.050403215,
-0.2291797996,
0.3878927231,
0.0174177177,
0.1665914357,
-0.3728857338,
0.0951624364,
-0.0692859888,
-0.1491233706,
0.2509036958,
-0.3326357007,
-0.0404106155,
0.0547825731,
-0.2756777704,
-0.1610853076,
-0.1419896483,
0.2350521684,
0.5485135913,
0.100952521,
0.2193299085,
-0.0837182179,
0.0489739291,
-0.1817372292,
0.3521760702,
-0.0738833919,
-0.1327977479,
-0.1767013222,
0.2551271915,
0.4096196592,
0.1092289016,
-0.0854922757,
-0.1248008981,
-0.04169292,
0.1503746659,
-0.2332354784,
0.6371116638,
-0.263058275,
-0.1586793661,
0.1699238271,
-0.1122769341,
0.004482781,
-0.0223169979,
0.3514019549,
-0.4906257987,
0.2486532629,
-0.1483948827,
0.0346093699,
-0.1912295818,
-0.1581749469,
-0.0893185884,
-0.0757477582,
-0.0026564556,
0.1809895784,
0.0901383087,
-0.4963249564,
0.2344796211,
0.0736654922,
0.1263860315,
-0.2247350663,
-0.0918001011,
-0.1309063435,
0.0845677629,
0.1711283922,
0.2795995176,
0.2148043215,
-0.0600060932,
0.3254592121,
0.0014015549,
-0.0817122385,
-0.2959809899,
-0.398229748,
-0.394620657,
0.1718312651,
-0.4180061519,
-0.186238274,
0.0432448313,
-0.3431588709,
0.0638303831,
-0.2452910691,
0.0919790342,
0.0314979665,
-0.0745464042,
-0.1131819934,
0.3619406223,
0.40863657,
0.3861091733,
0.1613914222,
-0.3655734658,
0.0192283783,
0.0754097775,
0.1050401852,
-0.0933416188,
0.0845821202,
-0.2252478302,
-0.1839736551,
0.1097908616,
-0.566575706,
-0.7386366725,
0.1282543987,
-0.1398256421,
0.1787798554,
-0.1129389927,
0.1038205773,
0.3449572027,
0.1606275737,
-0.0067541245,
0.2540186346,
0.0024165376,
0.0554882362,
-0.2717638612,
-0.1903603375,
-0.4538634717,
0.1485827565,
0.0614649132,
-0.0527719706,
0.0603798293,
0.1568022966,
0.2248089612,
0.1720007211,
0.1353455186,
0.1960032731,
0.4203774929,
0.1862858385,
-0.1472969353,
-0.1540502608,
-0.3749930263,
0.1750913858,
0.2390915602,
0.0484758057,
0.0864286423,
0.0136270737,
-0.3143300712,
0.0181140397,
-0.1894520223,
-0.088749364,
0.1130200177,
0.0784914345,
0.445119381,
0.3008718491,
-0.0704845339,
0.1973530054,
0.2174174935,
0.3787079751,
-0.2304655612,
0.4127415121,
0.0037623914,
-0.1034294218,
-0.0320447572,
-0.0798510164,
0.1344317794,
-0.0157590173,
-0.0652446747,
0.2039145827,
-0.2491835952,
0.3212115169,
0.08406993,
-0.0053701047,
0.184365958,
-0.2147168666,
0.0342623815,
0.1755911112,
0.2440006882,
0.2939932644,
0.1124546826,
0.4872032404,
-0.1764052659,
0.0215247478,
-0.1022978052,
0.1378031373,
0.4120094776,
-0.0651856288,
-0.1533470154,
0.1524961591,
0.1453632712,
-0.0292783249,
0.3445042074,
0.0169435125,
-0.187522471,
-0.039550893,
0.2424782068,
-0.1779967248,
0.0528796613,
0.0320646204,
-0.0687864944,
-0.1280789822,
0.2506063581,
0.2190926373,
0.5523885489,
0.0887243897,
-0.0249975845,
0.0589487851,
0.0320599265,
-0.1698069274,
0.1649403423,
0.2481284738,
0.307077527,
0.3869227171,
0.1015962586,
0.0806950107,
-0.3301483989,
-0.24364537,
-0.079640694,
0.0940127149,
-0.2958885729,
-0.1869401038,
-0.0815989301,
-0.2520661652,
0.0861744061,
-0.1143151894,
-0.3822510242,
-0.428265661,
-0.1232249811,
0.6596513391,
0.0033360417,
-0.0786573514,
-0.4382528663,
0.1253224611,
-0.0491737202,
0.0526403338,
-0.3399322033,
0.1082352251,
-0.0899556503,
0.0850511491,
0.1102037504,
-0.2337299585,
0.2248170674,
-0.3637155592,
0.0303700585,
-0.5946551561,
0.0185770337,
0.1140351146,
-0.0416569598,
0.2229319513,
0.0258577615,
0.4227109253,
0.0549457036,
0.1351452023,
0.2518075705,
-0.3002296686,
-0.010096252,
0.0671393722,
-0.0832283869,
0.0845683217,
0.2089746743,
-0.0494193919,
-0.3299073875,
-0.3280713856,
0.1919577271,
-0.1686383039,
0.1667469293,
0.2005627006,
-0.0490649715,
0.2659887671,
-0.2750727534,
-0.0217783544,
-0.2133308202,
-0.8671714664,
0.5242549181,
-0.1995660365,
-0.3119103909,
0.104548499,
0.1393951029,
0.2136478871,
-0.1300911009,
-0.3117650449,
-0.1950183064,
-0.2480191141,
0.34192729,
0.0475719757,
-0.0452621542,
0.3137534261,
-0.3296897113,
-0.0455478579,
-0.036823865,
0.069223091,
-0.2740133703,
0.2630852461,
0.3838394582,
-0.0510627553,
0.2727842629,
0.0877343044,
0.5051253438,
0.1373186558,
0.0758233517,
0.5451291203,
-0.1881329119,
0.3799859583,
-0.0001365516,
-0.3940145969,
-0.2046117038,
-0.1702797562,
-0.0615608431,
0.0744538531,
0.2500586808,
0.4561148882,
-0.3713162243,
-0.405667603,
-0.3974097073,
-0.3283106685,
-0.1839224249,
0.080892317,
-0.0637822673,
0.1915971935,
0.0551094078,
0.0489618666,
-0.2812024355,
0.0162361525,
0.3926424086,
0.2540993094,
-0.0513494462,
-0.0668687522,
0.2714040279,
-0.5844946504,
0.2389408499,
-0.083131209,
0.1239003912,
-0.0875977948,
0.1302642077,
0.2167792171,
-0.1770924479,
0.5764161944,
-0.1115116552,
0.2666193843,
-0.2505235672,
-0.0307123642,
-0.2129506022,
-0.0296726972,
-0.0359544121,
-0.1065555066,
0.0569276027,
0.5176218152,
-0.2568181157,
-0.1347776651,
0.2113579959,
-0.0661246032,
-0.059409298,
-0.1685518175,
-0.0215559769,
-0.582516551,
-0.2213293016,
0.0162098706,
0.082544446,
0.0652313381,
0.0141375232,
-0.2494212091,
0.1716938019,
0.2465432286,
-0.0186833888,
0.0597902499,
-0.061106801,
0.1181789041,
0.5757113695,
0.1114289537,
-0.2437601984,
0.4122515619,
0.7268355489,
0.2005312145,
-0.6620009542,
-0.0491372459,
0.0311454795,
-0.0936868936,
0.2610203624,
0.1151541024,
-0.1491298974,
-0.0390720405,
0.1250294149,
-0.1805342138,
-0.0482633635,
0.4818184376,
0.1754745245,
-0.1140018255,
-0.0942592174,
0.2772672772,
-0.0690142065,
0.001256145,
0.3080972135,
0.2871536613,
-0.0751930922,
-0.0340574756,
0.1297518015,
1.0124074221,
-0.367369324,
0.4317397475,
0.40740785,
-0.2732540965,
0.5415463448,
0.1060673296,
-0.0119539835,
-0.2073805481,
-0.3728499711,
-0.1140106767,
-0.0372766033,
0.2915017009,
-0.1608183533,
0.029001737,
0.1925419867,
-0.0455327779,
0.3893371522,
0.0994230136,
0.1702530086,
-0.4933346212,
-0.2088817954,
-0.5196616054,
0.1712108552,
-0.0558625609,
0.5318416357,
-0.0428728983,
-0.2208939791,
-0.3133784831,
0.036599841,
-0.1867685616,
0.3620375991,
0.1702364087,
-0.1264503747,
-0.2125335187,
0.0160482582,
-0.2954514325,
0.2670174241,
-0.1641239822,
0.0351835862,
-0.3065971434,
0.2488918006,
-0.019218158,
0.1202499345,
0.1923404634,
-0.2018766105,
-0.0841150656,
-0.1544727385,
-0.2457366735,
0.0629673526,
0.1448897421,
-0.1914067715,
-0.2841607034,
-0.1476985216,
-0.1888834387,
-0.4072922468,
-0.0844522715,
-0.2417089641,
-0.0597355925,
-0.1633970439,
0.1437173039,
0.2001057267,
0.0116892504,
-0.0607907623,
-0.0153217167,
-0.2261298746,
-0.1210486144,
0.5547102094,
-0.2067515254,
0.2208737135,
0.1121150628,
-0.0603497587,
-0.0839516371,
-0.0582864247,
0.4117496014,
-0.1736172289,
-0.3254595101,
-0.0459659211,
-0.3126007915,
0.2849806249,
-0.3454763889,
-0.0601382926,
0.3317246437,
-0.357512176,
0.1026580632,
-0.441200465,
-0.0363971218,
0.1709696501,
0.2458072007,
-0.0548965186,
0.1540352404,
-0.0514991768,
0.2308887839,
-0.2946318686,
-0.2895343304,
-0.0647235364,
-0.1509282589,
-0.2069730312,
0.0145889446,
-0.1687690616,
0.2669665217,
-0.2176735103,
0.1173014119,
0.1273188442,
-0.1778480709,
-0.1527433246,
-0.1983952671,
0.1823886186,
0.2611321807,
-0.2176135629,
0.1057352871,
-0.3117938936,
-0.1298792958,
-0.0460163392,
-0.1202287525,
0.4867032766,
0.0433107652,
-0.1058262065,
0.0715357736,
0.1805587262,
-0.3095878661,
0.2855686545,
-0.1289287657,
0.1111857444,
-0.0763489008,
0.2991605997,
0.1305293143,
-0.0914847329,
-0.4099199474,
-0.1136929542,
0.0046490752,
-0.1649782956,
0.7942663431,
0.0265660565,
-0.0054909769,
0.2196051031,
0.431868881,
0.4399131835,
-0.0954504684,
0.0952660367,
-0.0150097962,
0.2000894099,
-0.1513338387,
-0.0876260996,
-0.242915988,
-0.0576442108,
-0.0968292505,
0.0079049263,
-0.3093378544,
-0.031126041,
-0.0536154844,
0.0038879423,
0.561866045,
0.2501210868,
0.0696854442,
0.4210109413,
-0.0988687277,
0.1378265023,
0.3727901876,
-0.0446117967,
0.025147723,
0.0198894124,
-0.1094286218,
0.1243358627,
-0.181217432,
0.4934327304,
0.0476109609,
-0.2802632451,
0.0906578675,
0.0274293199,
-0.21821329,
0.0228972882,
0.0869237036,
0.1709442288,
-0.1624214351,
-0.045544073,
-0.4198606014,
0.3585759103,
0.073038362,
-0.0904780999,
-0.2183208019,
-0.0450732484,
-0.0067838589,
0.1616282761,
-0.0452041663,
-0.4898402691,
0.322031796,
0.1559621841,
-0.0964879021,
-0.4847473502,
-0.2790603936,
0.2792066038,
0.1652348787,
-0.3486142755,
0.3175120652,
0.0213520806,
-0.0918385983,
-0.2168095857,
0.346396476,
0.3799291849,
0.050360743,
0.2533091903,
0.2687746286,
0.0855841562,
0.0618648566,
0.1031784788,
0.287781924,
0.1300769746,
0.377702415,
0.1095752791,
0.2182731926,
-0.1657759994,
0.0653612241,
0.0126259271,
0.1307937354,
-0.3206537664,
0.1788747162,
-0.1856186092,
-0.0243814494,
0.0667023957,
0.0347519144,
-0.2864712179,
-0.0069857449,
0.1571334898,
-0.2285030931,
0.1078533456,
-0.2867073715,
0.0648454875,
-0.034664128,
0.1881301254,
0.3429538012,
0.0263961628,
-0.1429491788,
0.1250121593,
-0.4930271804,
0.3346955776,
-0.2400572598,
-0.2996948361,
-0.0368383452,
-0.0588021837,
-0.0521828532,
0.2981151938,
0.0204253029,
-0.1390965432,
0.0225379672,
0.3000890911,
-0.2065163702,
-0.1775059253,
-0.2326943427,
0.2226738036,
0.0108710127,
-0.2906756401,
0.5091779232,
0.0266237892,
0.0284109768,
0.06670288,
0.0011165396,
0.1702369153,
-0.4008185863,
0.2501212955,
-0.0001546708,
0.1733982712,
-0.1559608728,
-0.0336547494,
-0.2704783678,
-0.1966891587,
-0.0235566925,
0.1760305166,
0.0210907515,
-0.217077598,
0.1219720244,
-0.1824524105,
-0.1934611499,
0.2816246152,
-0.2307584882,
0.2060606331,
0.0282580685,
-0.0858409032,
0.0534240305,
-0.1345037967,
-0.0538120866,
0.0600445978,
-0.1785007417,
-0.1041460708,
-0.196881026,
-0.1691933125,
0.3762235343,
-0.4322986901,
0.0302070547,
0.0042524594,
0.3586140871,
-0.0267216656,
-0.3035338521,
-0.2059762925,
0.1973142624,
0.3772948384,
0.0058714105,
-0.0760551393,
0.1310420185,
0.0113110272,
-0.1175936684,
-0.0053390432,
0.2784772515,
0.0470636934,
-0.2923578322,
0.3643166721,
-0.0604865216
] |
https://github.com/huggingface/datasets/issues/4182 | Zenodo.org download is not responding | Thanks @albertvillanova. I know that the problem lies in the source data. I just wanted to point out that these kind of problems are unavoidable without having one place where data sources are cached. Websites may go down or data sources may move. Having a copy in Hugging Face Hub would be a great solution. | ## Describe the bug
Source download_url from zenodo.org does not respond.
`_DOWNLOAD_URL = "https://zenodo.org/record/2787612/files/SICK.zip?download=1"`
Other datasets also use zenodo.org to store data and they cannot be downloaded as well.
It would be better to actually use more reliable way to store original data like s3 bucket.
## Steps to reproduce the bug
```python
load_dataset("sick")
```
## Expected results
Dataset should be downloaded.
## Actual results
ConnectionError: Couldn't reach https://zenodo.org/record/2787612/files/SICK.zip?download=1 (ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out. (read timeout=100)")))
## Environment info
- `datasets` version: 2.1.0
- Platform: Darwin-21.4.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
| 55 | Zenodo.org download is not responding
## Describe the bug
Source download_url from zenodo.org does not respond.
`_DOWNLOAD_URL = "https://zenodo.org/record/2787612/files/SICK.zip?download=1"`
Other datasets also use zenodo.org to store data and they cannot be downloaded as well.
It would be better to actually use more reliable way to store original data like s3 bucket.
## Steps to reproduce the bug
```python
load_dataset("sick")
```
## Expected results
Dataset should be downloaded.
## Actual results
ConnectionError: Couldn't reach https://zenodo.org/record/2787612/files/SICK.zip?download=1 (ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out. (read timeout=100)")))
## Environment info
- `datasets` version: 2.1.0
- Platform: Darwin-21.4.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
Thanks @albertvillanova. I know that the problem lies in the source data. I just wanted to point out that these kind of problems are unavoidable without having one place where data sources are cached. Websites may go down or data sources may move. Having a copy in Hugging Face Hub would be a great solution. | [
-0.080918774,
0.0952439606,
-0.1096673757,
0.2967681587,
0.4041541815,
-0.1066377908,
0.1737032235,
0.2406035513,
-0.2892254293,
0.0863700435,
-0.5147069097,
-0.1286249906,
0.4303603768,
-0.1244517639,
-0.0094488226,
0.0154587887,
-0.0607607476,
0.1537501961,
-0.1967417449,
-0.1472724825,
-0.0992017612,
0.1208527908,
-0.1277352273,
0.0448575355,
0.1572193801,
0.2332116067,
-0.2643036246,
0.0343943648,
-0.20677948,
-0.290178597,
0.4431488514,
0.1716244519,
0.1056406796,
0.3285516202,
-0.0001153231,
-0.1073041782,
0.3108844161,
-0.1096520945,
-0.2814409137,
-0.2097900957,
-0.6278691292,
-0.4041439593,
-0.1765797436,
-0.0060761864,
0.0385258719,
-0.0516757853,
0.1534858793,
-0.0766388625,
0.2833442986,
0.4098047614,
0.1660082042,
0.3434537053,
0.3697380722,
-0.0772030577,
0.3209780157,
-0.303383559,
-0.2697010934,
0.632386148,
0.2803551257,
0.1825552583,
0.0573207624,
0.1795492172,
-0.2367603034,
0.053293176,
0.0299482942,
-0.0258711725,
0.0207217243,
-0.2049887627,
0.0058605187,
0.2837569714,
0.7337822914,
-0.0081421975,
-0.5505900383,
-0.1663133353,
-0.0279706791,
-0.1140549704,
0.1471864581,
0.0893606916,
-0.0293022264,
0.2489703447,
-0.1515398771,
-0.0833771676,
-0.2175967395,
0.5560330749,
0.0004053186,
0.2321096808,
-0.2054115683,
0.1249160394,
-0.1273904741,
-0.0113583244,
0.5908729434,
-0.4215893447,
-0.0308007617,
0.0236978065,
-0.2710370719,
-0.161768809,
-0.1580082774,
0.1786226928,
0.4140805602,
0.167356059,
0.1856190562,
-0.0652205423,
0.0773008168,
-0.1664638519,
0.2943954468,
0.0365830287,
-0.1954568326,
-0.1312216222,
0.320405364,
0.2882879078,
0.0123297861,
-0.104778707,
-0.1418664306,
-0.066211313,
0.2945841849,
-0.1396683753,
0.4830766916,
-0.2982107401,
-0.0021371548,
0.1279098094,
-0.2566863298,
0.030592721,
-0.0464868993,
0.3266505897,
-0.4617667794,
0.4310390353,
-0.1134154946,
0.0842669606,
-0.2207289785,
-0.2811790705,
-0.0920278355,
-0.0727537349,
-0.079504326,
0.1532942355,
0.1641932875,
-0.4070962369,
0.3042227328,
0.0211295485,
-0.0960190147,
-0.1984417588,
0.0515604094,
-0.214057982,
0.1121403277,
0.1874170154,
0.2698697448,
0.2495553344,
-0.0890448168,
0.365996778,
-0.0369069166,
-0.0138992416,
-0.3379867077,
-0.3829646111,
-0.2239385992,
0.1446706206,
-0.4573240876,
-0.1919184774,
0.1465185136,
-0.3760495484,
0.1790785342,
-0.3349627852,
0.0359224677,
0.0063473508,
-0.0947782472,
-0.1442589611,
0.3071523309,
0.3120948374,
0.2577439845,
0.2873654664,
-0.4198870957,
0.1080585644,
0.1074008942,
0.0734117702,
-0.1233813837,
0.0533319898,
-0.1752981544,
-0.2302485853,
0.2203664184,
-0.5548894405,
-0.904107213,
0.1567327827,
-0.1360914558,
0.089051418,
-0.1212764457,
0.263895452,
0.4540860951,
0.0931464583,
-0.0335873067,
0.3939798474,
-0.1362755895,
0.0862969607,
-0.2755468488,
-0.221730724,
-0.4602501988,
0.0755556598,
0.1599288732,
0.024705505,
0.087913841,
0.1537177563,
0.0755935833,
0.248921752,
0.225095287,
0.378739506,
0.3507486284,
0.1256909668,
-0.1462530941,
-0.1090643033,
-0.3049643338,
0.1729082465,
0.242612958,
-0.0781925842,
-0.030312052,
0.0512848049,
-0.2479666322,
-0.062885575,
-0.127797544,
-0.0510809049,
0.0799199119,
0.1332168877,
0.537011683,
0.3032725751,
0.0446497686,
0.2880703211,
0.2570791543,
0.2997531593,
-0.1082806736,
0.3958576322,
-0.0060040411,
-0.2038624585,
-0.0603676774,
-0.1223909408,
0.2462542504,
0.0439619422,
-0.205976218,
0.255749166,
-0.3243946731,
0.3396834731,
0.1249232292,
0.1466999948,
0.1930239201,
-0.2386952043,
0.0980186686,
0.2471933067,
0.1769266129,
0.2174700201,
0.0937032774,
0.3022573888,
-0.1355282813,
0.0778632089,
0.007606457,
0.1235293075,
0.4102466702,
-0.0695527866,
-0.0699839443,
0.1411410272,
0.1332972497,
-0.0465412363,
0.3727965951,
0.1050913036,
-0.1085763425,
0.1416061074,
0.2556855381,
-0.1331386417,
0.0799228698,
0.002364038,
-0.1356779933,
-0.2046688795,
0.2522440255,
0.4164208472,
0.5909419656,
0.0870252252,
0.1000607535,
-0.0079606157,
0.0211000666,
-0.2372835129,
0.1027510911,
0.2508161068,
0.2787417173,
0.3714523613,
0.1470473707,
0.09012831,
-0.1597832888,
-0.1952316463,
-0.000678911,
0.1132925525,
-0.1517807394,
-0.0285072755,
-0.205913499,
-0.1609155387,
-0.0186025575,
-0.1639387459,
-0.3395486176,
-0.5411416292,
-0.0907770768,
0.8279138803,
0.0263353921,
0.0027441178,
-0.4467374384,
0.0471698269,
-0.0158592034,
-0.0968738422,
-0.3102299571,
-0.0161238499,
-0.1448909342,
0.0464789011,
0.1506550014,
-0.2620870769,
0.2277897596,
-0.3751148283,
-0.0147633636,
-0.6530418992,
0.1155457199,
0.0793363377,
0.113681227,
0.222105056,
-0.1068040356,
0.3905944824,
0.0859350041,
0.0775511265,
0.2131684422,
-0.2786895931,
0.0545956083,
0.1387732029,
-0.1073617563,
0.0865051821,
0.2567138374,
-0.0216074102,
-0.3114525676,
-0.3139214218,
-0.0558798164,
-0.3196291029,
0.0737160519,
0.0635568798,
0.0787599906,
0.0731603801,
-0.0967245325,
0.0944366604,
-0.1233931258,
-0.8098714948,
0.6504311562,
-0.1945783198,
-0.2775988877,
0.1142058298,
0.0147717679,
0.1861341,
0.1030725613,
-0.3186938465,
-0.0916669369,
-0.31088534,
0.2538896501,
0.0796256214,
-0.0665034801,
0.4938754737,
-0.3028874099,
-0.007579349,
-0.1347987652,
0.0855836496,
-0.1985693872,
0.1590670943,
0.5342742801,
-0.0231782924,
0.2165462524,
0.1531521976,
0.6773417592,
0.0345212258,
-0.0368077159,
0.498221308,
-0.0037459426,
0.2954604924,
0.0157733653,
-0.3164024949,
-0.2506551743,
-0.2213696092,
-0.0431160741,
0.0108575644,
0.3183295131,
0.2797989547,
-0.3946998417,
-0.351211518,
-0.4436197877,
-0.3329281509,
-0.1417402029,
-0.078384012,
0.0711196214,
0.3243955672,
0.0894017816,
-0.0321744829,
-0.2826554477,
-0.0286157094,
0.3063842058,
0.2249822468,
-0.0248940904,
0.04119334,
0.163656801,
-0.5039025545,
0.1489384323,
-0.0222221874,
0.2189205736,
0.0120749772,
0.2116894275,
0.1793887764,
-0.2171383947,
0.4456121027,
-0.1983213872,
0.2985544801,
-0.2124051899,
-0.0315022133,
-0.1218186915,
-0.0732104257,
0.1607855707,
-0.136404112,
0.0441578701,
0.262072742,
-0.215569675,
-0.1396220177,
0.1971394122,
-0.0188754424,
-0.0683590397,
-0.1642057002,
0.000819199,
-0.4739912152,
-0.1643817425,
-0.1045514941,
0.0303377043,
-0.0166179668,
0.0236476101,
-0.244177103,
0.1212309003,
0.2113389969,
-0.1137388796,
0.0238730889,
-0.0285234079,
0.0240611918,
0.5966392159,
0.0862826034,
-0.2600016594,
0.3877390027,
0.6234218478,
0.24472332,
-0.6376915574,
0.0103262765,
0.0653239563,
-0.1770239621,
0.2251405716,
0.0901938826,
-0.2316708416,
-0.0036967567,
-0.0608869456,
-0.0896110162,
-0.0474560596,
0.3389217854,
0.1785012633,
-0.0780816972,
-0.1514811218,
0.2443708479,
-0.0504258499,
-0.0209490247,
0.4658898413,
0.0665007606,
-0.0231265891,
-0.091049999,
0.1524449438,
1.1107231379,
-0.3665464818,
0.4183961749,
0.2746345401,
-0.3541962206,
0.3772692978,
-0.099365063,
0.1168338284,
-0.1943228245,
-0.3659699559,
-0.1348541677,
-0.1307576001,
0.1469649523,
-0.1266963333,
0.0118738338,
0.1899513602,
-0.0293141939,
0.4584020078,
0.2517938912,
0.1249746084,
-0.3728825748,
-0.1883359998,
-0.3676521778,
0.1560205221,
-0.0856150091,
0.4520823061,
-0.0836878195,
-0.1727849543,
-0.3883087039,
0.1297917813,
-0.2387554199,
0.3929646611,
0.0870249197,
0.0128867393,
-0.3552932739,
-0.057600528,
-0.422101438,
0.2641977966,
-0.0904989168,
0.0333890319,
-0.2802700698,
0.2732566595,
0.1021593884,
0.0473787151,
0.3080089688,
-0.2384373695,
-0.10912247,
-0.179667756,
-0.2807787657,
0.1380378306,
0.0584568754,
-0.3890752196,
-0.1393205076,
-0.2637568414,
-0.1483331621,
-0.2607656717,
-0.076012969,
-0.1266729385,
-0.0260573048,
-0.208479166,
0.1202912405,
0.2870613933,
0.0398410074,
-0.0616028495,
-0.1739561558,
-0.1849498004,
-0.072396405,
0.6852257252,
-0.1489952505,
0.2686634362,
0.1059154198,
-0.1293597519,
-0.1436088979,
-0.016771879,
0.3500960767,
-0.4292447269,
-0.2866280079,
-0.0006990377,
-0.5437371135,
0.1160578653,
-0.4715064168,
-0.1295901239,
0.3202726841,
-0.2166294008,
0.0633419305,
-0.5338753462,
-0.0547279343,
0.1251545846,
0.1670337319,
-0.0794222951,
0.0927160159,
-0.143600598,
0.2361591011,
-0.2693920732,
-0.2518788278,
-0.0623548776,
-0.1744491011,
-0.1059495881,
-0.1031188145,
-0.1789269596,
0.1778927743,
-0.2526906133,
0.0581776388,
0.0360894725,
-0.2021926939,
-0.1224953458,
-0.171837762,
0.2101261914,
0.2235640287,
-0.1707864255,
0.1311284304,
-0.4904718399,
-0.0353513584,
0.0025087162,
-0.2427912503,
0.4196179807,
0.0269398149,
-0.0944633558,
0.0594377033,
0.1888475567,
-0.414198488,
0.3358595073,
-0.2350109667,
0.2232539505,
-0.0795306861,
0.4025770128,
0.2043907046,
-0.075371705,
-0.5386691689,
-0.1483301371,
-0.1556417793,
-0.1530338973,
0.8496937156,
-0.0656857714,
0.0786897317,
0.3652045727,
0.3040959239,
0.4356838167,
-0.0781965852,
0.1032983586,
0.0464495085,
0.1721557826,
-0.1164210513,
-0.0817990229,
-0.2300894856,
-0.0507185087,
-0.063533999,
-0.0458657816,
-0.2532049119,
-0.2309816927,
0.1771419346,
0.0707495436,
0.5687478781,
0.1444005668,
0.1158137172,
0.4421877265,
0.0766851529,
0.1921871454,
0.2737777829,
0.0150965564,
-0.0549499393,
-0.0520583391,
-0.0916795507,
0.053548038,
-0.1646516621,
0.4465338886,
-0.0408808999,
-0.1720132232,
0.0861773044,
-0.0276390221,
-0.2431727201,
-0.0611369163,
0.0711151883,
0.0516078733,
-0.089736633,
-0.0206099618,
-0.3580599427,
0.3463128507,
0.0378896408,
-0.058970388,
-0.2383338213,
-0.0085075265,
0.0804337859,
0.1373528093,
0.032661587,
-0.3375029564,
0.4046791196,
0.2469689846,
-0.0518078767,
-0.4757175744,
-0.0670886114,
0.235593453,
0.130454585,
-0.3160644174,
0.3274465799,
0.0248905551,
-0.1612481624,
-0.2012226731,
0.2629187405,
0.2957028747,
0.0928901061,
0.1543857455,
0.2654536664,
0.0969130397,
-0.0421970747,
0.0677422807,
0.246539101,
0.2195142806,
0.3245218396,
0.1681306213,
0.1948245168,
-0.1418313831,
0.1854953617,
0.0354444832,
0.0920670256,
-0.2158665359,
0.2267981768,
0.0516102016,
0.0097315637,
0.1236979514,
0.0890252665,
-0.1961453855,
0.0484711081,
0.1873894781,
-0.337977916,
0.0676232129,
-0.2220139802,
0.0465889685,
0.04633395,
0.1211480573,
0.394105196,
0.1196590662,
-0.2066530734,
0.060002543,
-0.4173917472,
0.3080025911,
-0.4322536886,
-0.3474390805,
-0.0836490318,
0.1032143161,
-0.1018403992,
0.3616506159,
0.0590568483,
-0.0642971173,
0.0359087363,
0.4281591177,
-0.2531150281,
-0.3033043444,
-0.2594968677,
0.258345753,
-0.0305182133,
-0.4339312315,
0.3855713606,
0.1124717891,
0.049587708,
0.1426546276,
-0.1212278232,
0.3025584817,
-0.3076668978,
0.2648271024,
0.0090575842,
0.2100979984,
-0.0711077228,
-0.0052726888,
-0.2894804478,
-0.1075053662,
-0.0211823359,
-0.0197637398,
0.0664902925,
-0.1996800154,
-0.1046243608,
-0.1213021204,
-0.2228748053,
0.211772278,
-0.2361111641,
0.1461253315,
0.0004983175,
-0.0844095349,
0.0441958569,
0.0540246554,
0.0086246375,
0.0007003723,
-0.2594415843,
-0.0406702235,
-0.1995169073,
-0.0924115255,
0.2372291386,
-0.3707858622,
0.0176271424,
-0.0068379813,
0.3287895024,
-0.1398357749,
-0.0935949087,
-0.0040248372,
0.1597833782,
0.4166240096,
0.0553866811,
-0.1058511212,
0.1231143549,
0.1905848533,
-0.0349944271,
0.0227688756,
0.2563371956,
0.0207749661,
-0.2869867682,
0.20128043,
-0.1695289612
] |
https://github.com/huggingface/datasets/issues/4182 | Zenodo.org download is not responding | Definitely, @dkajtoch! But we have to ask permission to the data owners. And many dataset licenses directly forbid data redistribution: in those cases we are not allowed to host their data on our Hub. | ## Describe the bug
Source download_url from zenodo.org does not respond.
`_DOWNLOAD_URL = "https://zenodo.org/record/2787612/files/SICK.zip?download=1"`
Other datasets also use zenodo.org to store data and they cannot be downloaded as well.
It would be better to actually use more reliable way to store original data like s3 bucket.
## Steps to reproduce the bug
```python
load_dataset("sick")
```
## Expected results
Dataset should be downloaded.
## Actual results
ConnectionError: Couldn't reach https://zenodo.org/record/2787612/files/SICK.zip?download=1 (ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out. (read timeout=100)")))
## Environment info
- `datasets` version: 2.1.0
- Platform: Darwin-21.4.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
| 34 | Zenodo.org download is not responding
## Describe the bug
Source download_url from zenodo.org does not respond.
`_DOWNLOAD_URL = "https://zenodo.org/record/2787612/files/SICK.zip?download=1"`
Other datasets also use zenodo.org to store data and they cannot be downloaded as well.
It would be better to actually use more reliable way to store original data like s3 bucket.
## Steps to reproduce the bug
```python
load_dataset("sick")
```
## Expected results
Dataset should be downloaded.
## Actual results
ConnectionError: Couldn't reach https://zenodo.org/record/2787612/files/SICK.zip?download=1 (ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out. (read timeout=100)")))
## Environment info
- `datasets` version: 2.1.0
- Platform: Darwin-21.4.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
Definitely, @dkajtoch! But we have to ask permission to the data owners. And many dataset licenses directly forbid data redistribution: in those cases we are not allowed to host their data on our Hub. | [
-0.1527274996,
0.0047500045,
-0.0980382189,
0.3225700557,
0.4120680392,
-0.0858239457,
0.1952845007,
0.3025969267,
-0.1455080807,
0.1067048386,
-0.6057358384,
0.118277587,
0.2712568343,
-0.0177002829,
-0.0803629681,
-0.0069501335,
-0.0406547561,
0.0712229013,
-0.2342373878,
-0.240113318,
-0.077770099,
0.0812288895,
-0.1694511473,
0.1334860474,
0.2178565264,
0.1539870203,
-0.224135682,
0.1329178065,
-0.3210761547,
-0.3001301289,
0.4510008693,
0.244557485,
0.1900503337,
0.3201565444,
-0.0001113166,
-0.1194774956,
0.3348628879,
0.0080052372,
-0.1789929271,
-0.2430584878,
-0.5358785391,
-0.404376775,
-0.2047574967,
-0.0759437233,
0.081285432,
-0.1197819337,
0.115242213,
0.0786862448,
0.2391835302,
0.383865118,
0.1968725473,
0.3999756575,
0.4043812752,
-0.1936036348,
0.3127315938,
-0.2345765084,
-0.3170195222,
0.5927185416,
0.3213314116,
0.1686582267,
0.019125307,
0.0844197273,
-0.2690880001,
0.1115663499,
-0.0103525752,
-0.1322092861,
0.0895237699,
-0.2009872049,
-0.0530739091,
0.360976845,
0.6741937995,
-0.0796937793,
-0.5182185769,
-0.0755717084,
0.0826298892,
-0.1028556228,
0.1126112342,
0.0600929633,
-0.0030101873,
0.2386411875,
-0.1270904988,
-0.0954548195,
-0.2699805796,
0.4605502188,
-0.0705841631,
0.3418573737,
-0.2061823457,
0.1011176556,
-0.1826005131,
-0.1128841937,
0.5455030799,
-0.4090554714,
-0.017962696,
0.0267670527,
-0.2341351062,
-0.169113934,
-0.126023829,
0.152983129,
0.4630871117,
0.1891913265,
0.1178403571,
-0.0499875918,
0.0826968402,
-0.140151009,
0.321562469,
-0.0885754526,
-0.1796405315,
0.01326962,
0.2918046117,
0.308390528,
-0.0146729629,
-0.0879507437,
-0.2165746093,
-0.00661535,
0.201303333,
-0.1370990872,
0.5634684563,
-0.2290010154,
-0.1508263946,
0.0925641507,
-0.184497565,
0.0688082799,
0.0059440937,
0.3134231567,
-0.5096905828,
0.2589853704,
-0.1801085621,
0.0511976779,
-0.1776461601,
-0.1313102394,
-0.1341949552,
-0.0234896224,
-0.0248618573,
0.0134752858,
0.1664471477,
-0.4211043417,
0.2113551497,
-0.009357661,
0.0818713233,
-0.1892989874,
0.0329065211,
-0.117662169,
0.0507472865,
0.182970345,
0.350746721,
0.2841450274,
-0.0991822109,
0.2998678982,
-0.0595416389,
0.0024116449,
-0.3355155289,
-0.3845449686,
-0.3564880192,
0.1871560961,
-0.4744324982,
-0.2458913177,
0.0683585256,
-0.3704712391,
0.0300304051,
-0.2755199075,
0.0618952103,
0.0160341281,
-0.0288079586,
-0.1936791539,
0.3384576142,
0.2558400333,
0.2649364173,
0.2476037145,
-0.4573188424,
0.0548206158,
0.125641793,
0.0445853062,
-0.0491425954,
0.1173239872,
-0.1813776642,
-0.1045578942,
0.2955904603,
-0.6592512727,
-0.8689280152,
0.1306148916,
-0.0690989271,
0.0604556873,
-0.1179155931,
0.1600097269,
0.4708454311,
0.0853224471,
-0.0515984893,
0.4628558457,
-0.014554359,
0.0753291473,
-0.1977275908,
-0.2687170506,
-0.426828593,
0.1826119721,
0.2148232311,
0.0472668447,
0.2057880461,
0.2522923648,
0.2301265299,
0.2388995439,
0.2018866539,
0.2350660712,
0.4679760635,
0.1289885044,
-0.125439167,
-0.2183736712,
-0.2527488172,
0.1883055121,
0.1978868246,
-0.0483242385,
0.0290110223,
0.0436225496,
-0.3913051784,
0.0014739006,
-0.204978615,
-0.0000595222,
0.1488716304,
0.0283881426,
0.4720569253,
0.2865289152,
0.099517256,
0.1679556072,
0.183499217,
0.3269799352,
-0.1169258505,
0.431196928,
-0.001308717,
-0.1448508501,
0.0498586744,
-0.1155689433,
0.1964461654,
0.0388057493,
-0.1296341121,
0.1986240149,
-0.3086754084,
0.3341689408,
0.0919141695,
0.0027489841,
0.1100813076,
-0.1912827045,
0.1404138952,
0.2162448168,
0.1819171757,
0.2367322296,
0.0341086164,
0.4180501997,
-0.1476690173,
-0.067843467,
-0.0340470821,
0.1737426966,
0.4318247437,
-0.0542163663,
-0.1301369667,
0.1766034514,
0.096254617,
-0.0075460407,
0.2718222141,
-0.0260964055,
-0.0661710873,
0.0200717803,
0.3530754745,
-0.1681202501,
0.1513263136,
-0.0220089369,
-0.0899142995,
-0.0726972073,
0.2999558747,
0.3717859983,
0.5710534453,
0.122849606,
0.1822131872,
0.0093729915,
-0.0318811983,
-0.1982531548,
0.130806312,
0.2327804863,
0.2756050229,
0.3471170366,
0.0962346345,
0.0629652292,
-0.2689065635,
-0.290343523,
0.0491347462,
0.1904179603,
-0.1641497612,
-0.2221149951,
-0.1963143498,
-0.1325245798,
0.1326074153,
-0.2022503167,
-0.2737526,
-0.4511947036,
-0.0637303889,
0.827002883,
0.0085597513,
0.015277016,
-0.5011129975,
-0.0285309106,
0.0317329317,
-0.0328489095,
-0.3001814187,
0.1079992056,
-0.1356108487,
0.097862415,
0.1447654963,
-0.2035586387,
0.2400999814,
-0.2276405692,
0.1548096538,
-0.609282732,
0.0825591087,
0.0744349808,
0.0159725808,
0.1752795726,
-0.0053600464,
0.3236095905,
0.0932441279,
0.1041567847,
0.2605223358,
-0.3027035594,
-0.0083321352,
0.1835249662,
-0.1414848417,
-0.0144462595,
0.1930516064,
-0.0682136118,
-0.3236128688,
-0.4134595394,
0.0434762053,
-0.1355644166,
0.1273963004,
0.1158066466,
0.1141130254,
0.1433684826,
-0.107563667,
0.0088610016,
-0.1124055237,
-0.7848801017,
0.599542141,
-0.1893861741,
-0.3026437461,
0.1338777244,
0.1024680585,
0.1951376796,
-0.0081136785,
-0.2362994552,
-0.0900514945,
-0.3038469851,
0.3472253978,
0.0349931717,
-0.0039039857,
0.3340475559,
-0.2409083396,
-0.0100828912,
-0.1231208965,
0.1516759694,
-0.3174775541,
0.2421788126,
0.3767229319,
-0.0979998633,
0.2377704978,
0.1661663651,
0.442843318,
0.1441372037,
0.106289424,
0.5215886831,
-0.0975586027,
0.2383250445,
0.0459664539,
-0.351316601,
-0.161121428,
-0.142988652,
-0.005640802,
0.1074432433,
0.2534402013,
0.2742539644,
-0.30335325,
-0.4159657657,
-0.345811516,
-0.3277813196,
-0.2030598819,
-0.1324479282,
-0.1153455526,
0.2236443609,
0.0616595894,
-0.1180091575,
-0.2682728469,
0.0056409012,
0.2960799634,
0.1246052235,
0.0168831721,
0.0343548506,
0.2408221066,
-0.5474941134,
0.1646573693,
-0.0802036524,
0.1411768198,
-0.0038848056,
0.1685482413,
0.2303581536,
-0.15466474,
0.5591955185,
-0.2911543846,
0.3764107823,
-0.1576425731,
0.0924030468,
-0.2509384453,
-0.129800126,
-0.1025744379,
-0.0643277988,
-0.014469889,
0.3942917883,
-0.1898118705,
-0.1170199588,
0.1371007711,
-0.1999961734,
-0.0326009132,
-0.1969707012,
0.0013194754,
-0.6073982716,
-0.3114617467,
-0.0278646406,
0.1080006957,
0.1226954162,
-0.1308622807,
-0.3534944355,
0.0387908816,
0.2327971905,
0.0081842085,
0.0441609137,
-0.0513955317,
0.1061588526,
0.536873281,
-0.0668009743,
-0.3140854239,
0.3971123397,
0.6038087606,
0.2596994638,
-0.6052101254,
-0.0687872991,
0.0041517769,
-0.1626278609,
0.1407500505,
0.0172090344,
-0.1394656003,
-0.0871612877,
-0.0080499901,
-0.142961517,
-0.0387747511,
0.3819593489,
0.0808281526,
-0.1435964853,
-0.1196578518,
0.2365369499,
0.0172756352,
-0.0477115586,
0.4241440892,
0.1073230356,
-0.0537585318,
-0.0548854358,
0.116915904,
0.9285915494,
-0.3468414545,
0.3036762178,
0.3495670557,
-0.2961573601,
0.4925654829,
0.0274709612,
0.0475854166,
-0.2321644127,
-0.3680820763,
-0.0971849635,
-0.0419873148,
0.2035287619,
-0.0776134506,
-0.0106281163,
0.1406103671,
-0.0004754647,
0.3954088986,
0.1452715397,
0.1881766915,
-0.56478405,
-0.1938776672,
-0.4492854774,
0.1983140558,
-0.0691270903,
0.4119122624,
-0.0374069847,
-0.2666783631,
-0.3660667837,
0.0407440923,
-0.1745162159,
0.4159376025,
0.2425719649,
0.0211797599,
-0.2960165143,
0.0583154187,
-0.2647384107,
0.1941187829,
-0.1139732525,
0.1149488613,
-0.3378234506,
0.2366306186,
-0.0062846458,
0.0560290478,
0.2367340773,
-0.1543582976,
-0.0914717391,
-0.1320084184,
-0.2958985567,
0.0854098722,
0.1652677804,
-0.2705476284,
-0.1464472562,
-0.1417570114,
-0.0591796972,
-0.3156532347,
-0.0681139529,
-0.263738215,
-0.1282988936,
-0.1867893636,
0.1574731171,
0.2406619787,
-0.0113360332,
0.1255205125,
-0.0850197151,
-0.2211177349,
-0.0640121624,
0.6492986083,
-0.1365067959,
0.2668363452,
0.1232217103,
-0.078742601,
-0.1080528349,
-0.0291769616,
0.4065274596,
-0.2658448219,
-0.2970983386,
0.0074591483,
-0.3976852,
0.1740202308,
-0.3109673262,
-0.098504588,
0.2664077878,
-0.241664499,
0.0639263913,
-0.4843532443,
-0.0351898372,
0.1528895646,
0.1696646214,
-0.0104320748,
0.0746100321,
-0.1093220711,
0.2002461851,
-0.3063254654,
-0.2919095755,
-0.0253845099,
-0.2220576555,
-0.1387212276,
-0.1723816991,
-0.1431843638,
0.1037285626,
-0.2161547989,
0.1008458957,
0.0525893606,
-0.1560090333,
-0.1559277326,
-0.2232239097,
0.1717827171,
0.2903575897,
-0.1440752596,
0.0816134363,
-0.4849247634,
-0.1634889692,
-0.0037316012,
-0.1803132892,
0.4513411224,
0.0292021707,
-0.0515630543,
0.2403809428,
0.1825900823,
-0.3109288514,
0.304641664,
-0.1102760807,
0.1010300964,
-0.1375911683,
0.4011887908,
0.2381533384,
-0.0599811412,
-0.4206787348,
-0.1629981399,
0.0483091213,
-0.1422660947,
0.8190513253,
0.0141793108,
0.0885923579,
0.2626147866,
0.4029638469,
0.3982422352,
-0.0420820974,
0.0624752864,
0.0028633252,
0.2093697935,
-0.1826613694,
-0.1672721654,
-0.2168488353,
-0.0965036154,
-0.0538949519,
-0.1169186458,
-0.3736669123,
-0.147926569,
-0.0294087343,
0.0584908314,
0.578856051,
0.2064888328,
0.0140862558,
0.4906123579,
-0.0858713835,
0.1066606194,
0.3379742205,
-0.0314282589,
-0.0486244597,
0.1839220077,
0.0414777547,
0.0922617391,
-0.1439887881,
0.3666745424,
0.0448564067,
-0.2226916552,
0.0384264775,
-0.0760608539,
-0.1808275282,
0.0112520829,
0.0413253866,
0.0101419454,
-0.1043991968,
0.0687254146,
-0.4227212071,
0.2147609442,
0.0268432796,
-0.093185924,
-0.3480762541,
-0.0298784859,
0.0392989814,
0.0802610368,
-0.005245259,
-0.385771364,
0.2836954296,
0.1493298858,
-0.0598444343,
-0.4792026579,
-0.1648536623,
0.2736107111,
0.0802662969,
-0.3568841219,
0.2442370802,
-0.0232802667,
-0.090501368,
-0.2308268696,
0.2364366055,
0.3543964624,
0.0758148357,
0.1932797879,
0.2643594444,
0.1434801072,
-0.0852500498,
0.0454355143,
0.3258578479,
0.2073701173,
0.3653381765,
0.1016094834,
0.2282810658,
-0.1699396223,
0.0648915097,
0.047966063,
0.0084183263,
-0.1869338602,
0.3132034242,
-0.0496852398,
-0.0830065534,
0.1302202195,
0.0157758966,
-0.3016296625,
-0.0111082438,
0.2144227028,
-0.2423762232,
0.1138839796,
-0.37255615,
0.0581110567,
-0.0903533101,
0.1387491524,
0.3081473708,
0.0693119615,
-0.1152750105,
0.119044207,
-0.4439625442,
0.3762698174,
-0.3204784095,
-0.3246545494,
-0.0276031867,
0.0547685958,
-0.0879072621,
0.2332235426,
-0.0076103308,
-0.0326718576,
0.0802672803,
0.442553103,
-0.1177013591,
-0.2759921551,
-0.1348986924,
0.1838156134,
-0.0059045176,
-0.4003640413,
0.4455189407,
0.0073841359,
0.0657260269,
0.0508367829,
-0.1028007045,
0.3163738549,
-0.3617688417,
0.2779155076,
0.0002887743,
0.269821465,
-0.1442624182,
0.0600156896,
-0.3494098485,
-0.1173468009,
-0.0599504337,
0.0287347361,
-0.0307640564,
-0.2274237424,
0.0653111637,
-0.1182646602,
-0.1209967881,
0.2295230478,
-0.2578265965,
0.2464770675,
0.0295404568,
-0.064235568,
-0.0506727397,
0.0155314254,
-0.0794836134,
-0.0896220207,
-0.1663959175,
-0.0291520525,
-0.2003834099,
-0.2427254021,
0.3279985487,
-0.4426907599,
-0.0841031149,
-0.0800979808,
0.2883406281,
-0.1566439122,
-0.181952104,
-0.0419885032,
0.2580794394,
0.3752144873,
-0.056535434,
-0.0245131552,
0.212917462,
0.1562976092,
0.0198203307,
0.0032946882,
0.3012267351,
0.0245709121,
-0.2403327376,
0.2889243364,
-0.108201094
] |
https://github.com/huggingface/datasets/issues/4181 | FLEURS | Yes, you just have to use `dl_manager.iter_archive` instead of `dl_manager.download_and_extract`.
That's because `download_and_extract` doesn't support TAR archives in streaming mode. | ## Dataset viewer issue for '*name of the dataset*'
https://huggingface.co/datasets/google/fleurs
```
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://storage.googleapis.com/xtreme_translations/FLEURS/af_za.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
```
Am I the one who added this dataset ? Yes
Can I fix this somehow in the script? @lhoestq @severo
| 20 | FLEURS
## Dataset viewer issue for '*name of the dataset*'
https://huggingface.co/datasets/google/fleurs
```
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://storage.googleapis.com/xtreme_translations/FLEURS/af_za.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
```
Am I the one who added this dataset ? Yes
Can I fix this somehow in the script? @lhoestq @severo
Yes, you just have to use `dl_manager.iter_archive` instead of `dl_manager.download_and_extract`.
That's because `download_and_extract` doesn't support TAR archives in streaming mode. | [
-0.4216788113,
-0.0958748609,
-0.0218318552,
0.4817814529,
0.0592254549,
-0.0917436033,
0.0025128934,
0.300100714,
0.2116694897,
0.3248205483,
0.0401249714,
0.2440659106,
-0.098210901,
0.1955389529,
0.1705656797,
-0.2471702546,
-0.1001694649,
0.233184129,
-0.1934710443,
0.0172521286,
-0.1866223067,
0.2958519459,
-0.0398183055,
-0.2726429403,
0.317125231,
0.0235940348,
0.1228628382,
-0.0596727692,
-0.2823195755,
-0.1778922826,
-0.0346130617,
0.2379465997,
0.5230240822,
0.5148686171,
-0.0001144395,
-0.0726068094,
0.2518997192,
-0.2027214468,
-0.1031206995,
-0.234788388,
-0.0974861532,
-0.1097023934,
0.024995584,
-0.134901464,
-0.2259488404,
-0.2599011362,
0.0622881241,
-0.4353079796,
0.2711143196,
0.4182054698,
0.1770345271,
0.1941517889,
-0.0388885364,
-0.0448560752,
0.4187082648,
-0.177783668,
-0.2740069032,
-0.0037125109,
0.2239447683,
0.2711449265,
0.0678118691,
0.5753376484,
-0.0719391927,
-0.1108137071,
0.1778264195,
-0.0034188868,
-0.2682819068,
-0.5190292597,
0.1267043501,
0.4566211998,
0.8236677051,
-0.0567092523,
-0.3114428818,
0.1746154279,
0.0798255131,
-0.2795694768,
0.1561617851,
0.1743255705,
0.0518188439,
0.2172387093,
0.0433603339,
-0.200868845,
-0.3920268416,
0.0413507894,
-0.0960632488,
0.068036072,
-0.2088207155,
0.0074272994,
0.4280312359,
0.0117765665,
0.4218844771,
0.1316342354,
-0.3130248785,
0.0282079596,
-0.2228115797,
-0.2239304632,
0.0830474347,
0.2036359459,
0.1778938174,
0.5285891294,
0.3014437258,
0.2561610639,
-0.1917435527,
0.2567432225,
0.1272534877,
0.324473381,
0.0886924416,
0.1522880793,
0.3069162369,
0.3640189171,
0.2535921037,
-0.1932336837,
-0.0764666051,
-0.2212435752,
-0.2250029445,
0.1374303102,
0.2901490629,
-0.2032315284,
-0.1426749974,
0.2194980085,
-0.1017146409,
-0.2403580993,
-0.052919358,
0.4899988472,
-0.1862868965,
0.2306110263,
0.0546102449,
0.465583384,
0.0043353434,
-0.4351774454,
-0.1333947331,
0.3521107137,
0.0328710414,
-0.113827616,
0.0014445301,
-0.2647841871,
0.0303838495,
-0.2205761671,
0.1019758135,
0.1221359298,
0.2040343136,
-0.3129070401,
0.1460691094,
0.261249423,
0.3692123592,
0.028009681,
0.0963096097,
-0.0210337564,
-0.1086769104,
0.0998196155,
-0.101549603,
-0.1058376953,
-0.3016310632,
0.1615858972,
-0.338029623,
-0.0635247603,
-0.3782795966,
0.2169450969,
-0.2119003236,
-0.2384022623,
-0.0333404429,
-0.0653972998,
-0.0219269451,
-0.1438177377,
0.1886504441,
0.5197046399,
-0.618545711,
0.132522136,
-0.502759397,
-0.2246494591,
0.4782707989,
0.0699023679,
0.1364278197,
-0.0989552438,
-0.2561683059,
0.1642107964,
0.5240195394,
-0.0480094627,
-0.3944470882,
0.464196384,
-0.1026152372,
0.2744839489,
0.5772650242,
0.0192743,
0.3288213611,
-0.077679418,
-0.2233415544,
0.2544276118,
0.0439538285,
-0.1135430709,
-0.1507611573,
-0.0914145708,
0.1134419665,
0.2523527443,
0.1448174119,
0.250293076,
0.1662517488,
-0.3631596267,
0.2204030454,
0.0014438932,
0.1530755609,
0.2345299572,
0.2709914446,
0.4441101253,
0.0337274782,
0.0467195027,
-0.1749967337,
0.0508835092,
-0.259416014,
0.0487744398,
-0.2937578857,
-0.1319138855,
-0.0810655951,
-0.1454154551,
-0.3587014675,
-0.1801221073,
0.1467404515,
0.2730748355,
-0.1018408537,
0.069236137,
-0.2101356834,
-0.0372244976,
0.1644853055,
0.0298981741,
-0.4754142165,
0.3810859323,
-0.2800810635,
-0.0588868596,
0.0499626659,
-0.1954852194,
0.1100671738,
-0.4592265785,
0.0065753991,
0.1767510921,
-0.0080995765,
0.2929715812,
0.420178473,
-0.0072769113,
-0.0057463581,
-0.3038495183,
0.2122293413,
0.4007092416,
0.0667218715,
0.0351723917,
-0.0202850439,
0.1410823911,
0.1845676452,
0.1496928334,
0.0564295091,
0.2305814773,
0.4685614705,
0.050341703,
0.0475539528,
-0.3254881203,
0.1796190143,
0.1162510142,
-0.0657154545,
-0.449916482,
-0.4570952654,
0.0846907422,
0.2852350771,
-0.1517783254,
0.0462382212,
0.2205900252,
-0.0610819831,
-0.0803105682,
0.0886660442,
0.2310508043,
0.3046490252,
0.1452466249,
0.0779153332,
0.1076418832,
0.5452873111,
-0.1126234233,
0.1494166553,
-0.0210857131,
-0.1085272059,
0.1499520093,
-0.1541955173,
-0.0373292789,
-0.3475117683,
-0.3419673741,
-0.0554191582,
0.4290561378,
-0.0769375265,
0.0668645874,
-0.3730836511,
-0.4418596327,
0.0051233647,
0.0142930085,
-0.1050633416,
-0.3709581196,
-0.01634565,
0.402497381,
-0.1688367426,
0.2023086101,
0.1348689049,
-0.0684240833,
0.0166125242,
0.1323513985,
-0.3634746969,
-0.0592306964,
-0.0850685984,
0.1066288501,
0.2645213008,
-0.2995946407,
0.2830733657,
-0.4151064157,
0.0996834859,
-0.7320994139,
-0.0367733352,
0.3040316403,
-0.184380576,
0.1927672476,
0.169281587,
0.4671138823,
0.0890090987,
0.1065138727,
0.0196750946,
-0.2104746848,
-0.0400349721,
0.1944160908,
-0.0410874486,
0.1210503429,
-0.1306293011,
-0.4464503527,
-0.3404512405,
-0.4487948418,
0.2370637208,
0.2998438776,
0.2545845509,
-0.0945013613,
0.0540907308,
-0.0111175999,
0.0218754578,
-0.0807514265,
-0.2978202999,
-0.3391779959,
0.4317232966,
-0.3419066072,
-0.4926287234,
0.3380744755,
0.159280926,
-0.1230837032,
0.0761734769,
-0.3759350479,
-0.2615429461,
-0.0622937791,
-0.2424954176,
-0.0921802297,
0.0569757149,
0.4339752197,
-0.1410269141,
0.083145231,
-0.0926712453,
0.0057526915,
-0.0597642064,
0.0147476783,
0.2210302055,
-0.0005507576,
0.4543636143,
-0.0576275475,
0.1576573402,
0.2441391796,
0.2895554006,
0.4384955764,
-0.1943882108,
0.4311718047,
-0.204362765,
-0.0761394426,
-0.0011192071,
-0.0691284537,
-0.1651876569,
0.2321829647,
-0.0743988082,
-0.0963944495,
-0.3773092628,
0.0594031438,
-0.2312417477,
-0.1659481078,
0.061589323,
-0.0998972207,
-0.0902553052,
-0.151650995,
0.2014050931,
-0.0022082077,
-0.0399632789,
-0.0185593497,
0.5083757639,
0.2881502211,
0.1377830803,
-0.3570154607,
-0.0449985489,
-0.5547693968,
0.6176594496,
-0.1962355226,
0.1232374161,
-0.103576161,
-0.0471058786,
0.1968443692,
0.0043724664,
0.4916684926,
-0.6700340509,
-0.0723504201,
0.1161618829,
-0.0840891004,
0.0972445458,
-0.1589118093,
-0.3878529072,
-0.1795322895,
-0.1954826564,
0.0832972303,
-0.4070394039,
-0.0095149316,
0.3919800818,
0.1300835609,
-0.0757768676,
-0.1559813619,
-0.2577991784,
-0.4242798388,
-0.1731345356,
-0.111706838,
-0.0259412304,
0.0751278475,
-0.0115740048,
0.0526092313,
0.238267377,
-0.0596293397,
0.2722821832,
0.1716900021,
0.3727306724,
-0.0189108774,
-0.0607322082,
0.1387208551,
-0.0774756148,
0.4217216074,
0.57615906,
-0.000174398,
-0.4187349379,
0.2820308208,
-0.234996751,
0.1831445098,
0.1245199665,
-0.1818890572,
0.2968481183,
-0.0294719711,
0.2860108018,
-0.0472649187,
-0.0623528548,
0.4098934233,
-0.2979360521,
-0.3530583382,
-0.784132421,
0.2034999579,
0.1461999267,
0.0602662563,
0.2185145915,
-0.1106489897,
-0.0377578437,
0.3114666045,
-0.320622623,
1.0847654343,
0.009238014,
-0.1031698883,
0.184370935,
-0.1181193739,
0.1228389218,
-0.4945127666,
0.0671725497,
-0.3339538276,
-0.5945577025,
-0.1833994985,
0.0656139925,
0.2973387241,
-0.1062982157,
-0.5531642437,
0.3736688793,
-0.2793377638,
0.2231962234,
0.0290868394,
0.1690926254,
-0.4481126368,
-0.1175010577,
-0.1775854528,
0.1320466846,
0.1428550035,
0.3258260787,
-0.1068338379,
-0.3096190393,
0.0495162345,
-0.2716156244,
-0.263471216,
0.2774433494,
-0.3764427602,
-0.0755236223,
-0.2925313413,
-0.5140464902,
0.1367555261,
0.3263431787,
-0.1048173383,
0.006247181,
-0.0671732128,
0.0485553704,
0.0309585351,
-0.1643680632,
0.0297742747,
0.0215701777,
0.0150522869,
-0.1547150165,
-0.1168213263,
0.2210673988,
-0.01096626,
-0.1467258632,
-0.021988228,
-0.0486039594,
-0.0786017329,
0.0024284483,
-0.3178220391,
-0.0516124256,
-0.3254925907,
-0.1186109185,
0.1188140288,
0.173414588,
-0.3577516973,
0.0380133614,
-0.1250746101,
0.0042950613,
-0.2389130741,
0.3518177271,
0.1766186655,
0.1355523169,
0.3221900761,
0.2992477715,
-0.1677559167,
-0.3001349866,
-0.1026415378,
0.3404709995,
-0.478259027,
-0.0257688463,
0.0380012691,
-0.0399546102,
0.0939720199,
0.1702719182,
-0.0534083955,
0.0440991633,
-0.1727273017,
-0.4574451149,
-0.0458010882,
0.0980735198,
-0.140414238,
0.1063781083,
0.0524593182,
0.0047780708,
0.0003715216,
-0.009700154,
-0.3230388463,
-0.0963389724,
-0.105930984,
-0.0729793683,
0.1267025322,
0.1310875416,
0.3874621987,
-0.0979678705,
0.0736692697,
0.1639297605,
-0.3680297136,
-0.0732156113,
0.0425608009,
0.1548143923,
-0.0449030101,
-0.0434934348,
-0.1582609117,
-0.1440778822,
-0.3574150503,
-0.0839956403,
0.1282262355,
0.1764389426,
0.031236805,
0.0425891541,
-0.000332985,
-0.096472837,
-0.3396967947,
-0.0371063687,
0.0472730212,
0.328786999,
-0.1444059014,
0.0565392748,
-0.0129299527,
-0.123478651,
0.0302609056,
0.1143283099,
0.1362134814,
0.2870778441,
0.5769357681,
-0.0115953302,
0.2672171891,
-0.0188526809,
0.573022902,
0.4434940517,
-0.171220541,
-0.0368818194,
0.2624014914,
0.1700726897,
-0.327660799,
-0.1012194008,
0.1985005289,
0.0213055704,
0.0247004945,
0.3285482228,
0.181103915,
0.2913455069,
0.2728363872,
0.010237922,
0.3006901443,
-0.0510252044,
0.4224168658,
0.2503650188,
-0.1725721508,
0.1584272385,
0.148486957,
0.2027454674,
0.0503373258,
0.1364613771,
-0.1905681342,
0.3394485414,
-0.0847863704,
-0.0653063506,
-0.0045887949,
-0.6670547724,
-0.0612395592,
0.1937980503,
0.1099496409,
0.270165205,
0.0337836333,
0.2616437376,
-0.1846678853,
0.2680167854,
-0.4086293578,
0.0894901156,
0.0947047323,
0.216147691,
0.1091955602,
-0.1628969759,
-0.2561014593,
-0.0934782177,
0.1467484981,
0.109760657,
-0.2781433463,
0.1750629842,
-0.067165494,
0.2314499617,
-0.2216106206,
-0.25718081,
0.0714839622,
-0.3312594593,
0.2029560804,
0.1518996507,
0.2146292031,
0.0391943157,
0.1574485898,
0.3348756731,
0.1753587723,
0.2497507334,
0.0573462211,
-0.1156949028,
-0.1420305073,
0.0080574118,
0.1001906991,
0.1959425062,
-0.0822533667,
0.3141261637,
0.1025913879,
-0.1819840819,
0.4678118527,
0.1028013825,
0.439489156,
0.0118014002,
-0.1372563988,
-0.2126414478,
0.0004771094,
-0.5227205753,
-0.358972013,
-0.5139613748,
0.0888685137,
0.0662717223,
-0.0329962447,
-0.0038226948,
-0.1806514114,
0.0665162876,
0.1350789815,
0.3072388172,
0.417306006,
-0.2209396958,
-0.2444893718,
-0.3452199101,
-0.5774456263,
0.2880738676,
-0.0408464149,
0.0461361893,
-0.1595305353,
0.2188159525,
0.1157691702,
0.2619788349,
0.2545322776,
0.0136980284,
0.1604172289,
0.379730612,
-0.1233679205,
-0.2657942176,
0.1867522746,
0.2680231631,
-0.0491923913,
-0.1148931608,
0.0701377019,
-0.1768535376,
0.1185603514,
-0.2453720868,
-0.0165956095,
-0.3162735105,
-0.2235490233,
0.5995355248,
0.0648083016,
0.4843063354,
-0.1559033394,
-0.0272372756,
-0.1171430647,
-0.1416976452,
-0.1669285893,
0.0761042088,
0.3645578921,
0.2837224305,
0.1195431724,
-0.1264007241,
-0.5666280389,
0.3871490061,
-0.2215855271,
0.2187430859,
-0.4328631163,
0.1871055812,
0.0340723991,
0.0130647123,
0.1101107225,
-0.0609746985,
0.0052233082,
-0.1183027104,
-0.3752422333,
-0.3409733474,
0.4403508902,
-0.0485017374,
-0.3049760461,
0.1150666401,
0.0040687704,
-0.0467296094,
-0.1614197493,
-0.4124788642,
0.3837564588,
-0.0037303683,
-0.0198985208,
0.1087850258,
0.1695099175,
-0.1084963009,
0.004955864,
0.0356516428,
0.2404353172,
0.3035715222,
-0.139796868,
0.0088550635,
-0.0852684677
] |
https://github.com/huggingface/datasets/issues/4181 | FLEURS | Tried to make it streamable, but I don't think it's really possible. @lhoestq @polinaeterna maybe you guys can check:
https://huggingface.co/datasets/google/fleurs/commit/dcf80160cd77977490a8d32b370c027107f2407b
real quick.
I think the problem is that we cannot ensure that the metadata file is found before the audio. Or is this possible somehow @lhoestq ? | ## Dataset viewer issue for '*name of the dataset*'
https://huggingface.co/datasets/google/fleurs
```
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://storage.googleapis.com/xtreme_translations/FLEURS/af_za.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
```
Am I the one who added this dataset ? Yes
Can I fix this somehow in the script? @lhoestq @severo
| 47 | FLEURS
## Dataset viewer issue for '*name of the dataset*'
https://huggingface.co/datasets/google/fleurs
```
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://storage.googleapis.com/xtreme_translations/FLEURS/af_za.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
```
Am I the one who added this dataset ? Yes
Can I fix this somehow in the script? @lhoestq @severo
Tried to make it streamable, but I don't think it's really possible. @lhoestq @polinaeterna maybe you guys can check:
https://huggingface.co/datasets/google/fleurs/commit/dcf80160cd77977490a8d32b370c027107f2407b
real quick.
I think the problem is that we cannot ensure that the metadata file is found before the audio. Or is this possible somehow @lhoestq ? | [
-0.4105003774,
-0.0333836749,
-0.0058600032,
0.3899718523,
0.0708154961,
-0.2282118499,
0.0011789129,
0.0690635741,
-0.1195237041,
0.3359758556,
-0.0833670497,
0.3761875629,
-0.2372799069,
-0.040668752,
0.1463757306,
-0.1828031987,
-0.1151861027,
0.2371740937,
-0.1535304189,
0.0062914491,
-0.1255185604,
0.1351658404,
-0.1333462149,
-0.2985030413,
0.2237123549,
0.0806059763,
0.1884667575,
-0.0407589041,
-0.3931962848,
-0.1455672085,
-0.1021461114,
0.332490623,
0.3479803503,
0.5386300683,
-0.0001202223,
-0.0450727679,
0.3862555921,
-0.2512934804,
-0.0947645605,
-0.2357115,
-0.3279122114,
0.0378601477,
-0.0718689337,
0.0684389099,
-0.1664271504,
-0.2224272043,
0.0235800128,
-0.5214341283,
0.2921557426,
0.41320768,
0.108013995,
0.1569685042,
-0.022421822,
0.1847037226,
0.4397550225,
-0.0536518507,
-0.2271057814,
0.0363999493,
0.306535542,
0.3137304485,
0.1209886372,
0.5444427133,
-0.0545727201,
-0.0969873071,
0.2597767711,
-0.138401255,
-0.347972244,
-0.521893084,
0.1623374075,
0.5327805281,
0.9910123944,
-0.0975093246,
-0.4662661254,
0.1974830031,
0.1445663869,
-0.3046735823,
0.229050532,
0.1047131941,
0.0023998336,
0.1974502355,
-0.0470387936,
-0.261518985,
-0.3836683631,
0.0278871469,
0.0304798838,
0.2538827956,
-0.1455496699,
-0.0476055853,
0.3699479699,
-0.0401989706,
0.3863206804,
0.167331323,
-0.2610549629,
0.2412921339,
-0.2708019614,
-0.2353717983,
-0.0301132519,
0.1371536404,
0.1016956791,
0.4781100154,
0.1775706559,
0.3111304343,
-0.3648354411,
0.3003810048,
0.2447476536,
0.0970294848,
0.0682601929,
0.0493800603,
0.3958616257,
0.2153440863,
0.2169071734,
-0.1859363765,
-0.1096536666,
-0.1878047436,
-0.1834379137,
0.1415945888,
0.2921832204,
-0.3415639699,
-0.2686437964,
0.1276844889,
-0.389757961,
-0.2774469554,
0.0717082322,
0.3475666046,
-0.1405674368,
0.206533283,
-0.0300928131,
0.513559401,
0.0118709384,
-0.3981060684,
-0.0395578332,
0.3206425905,
0.0775456205,
-0.0049910806,
0.023029251,
-0.3434141576,
0.0976726785,
-0.1786203831,
0.136644721,
-0.0035328902,
0.1857409477,
-0.1450948268,
0.0706476718,
0.2644178569,
0.2271853983,
0.0007928081,
-0.0940802172,
-0.0380920805,
-0.1621391177,
0.0573716722,
-0.0837224051,
-0.1443519592,
-0.2169315815,
0.0824506059,
-0.2917237282,
0.0550680608,
-0.3440829217,
0.2609713376,
-0.1331977844,
-0.4218190908,
-0.0700564682,
-0.0233566537,
-0.1657809615,
-0.0646970645,
0.1995359063,
0.4649126828,
-0.6048128009,
0.1505721211,
-0.4895993769,
-0.1004225314,
0.485563904,
0.0545272194,
0.0432047695,
-0.1174237132,
-0.2345474958,
0.2059647292,
0.4905793369,
-0.1944538951,
-0.491656065,
0.3753088713,
-0.1108528376,
0.3216305971,
0.5839883685,
-0.0273731388,
0.4001394808,
-0.2453672737,
-0.086454317,
0.2605126202,
0.0288537033,
-0.0871979445,
-0.1345201135,
-0.1484046727,
0.1274255812,
0.2723665237,
-0.0343055427,
0.2717417777,
0.2333983779,
-0.1780279577,
0.1849095225,
0.1076954007,
0.1755047739,
0.3560295999,
0.3758276701,
0.2988535464,
-0.1067714393,
-0.0503728054,
-0.0540226363,
-0.1622684747,
-0.182697013,
0.1763512492,
-0.342756331,
-0.2484772503,
0.0012494045,
-0.2052398622,
-0.4499614537,
-0.0689932555,
0.0848840773,
0.3860436678,
-0.1787286848,
0.0425146818,
-0.2402011156,
-0.071836032,
0.1919762641,
-0.1060342863,
-0.4354667962,
0.2916768491,
-0.1043737084,
-0.0363076627,
0.226056233,
-0.0567398295,
0.1924656928,
-0.3499759138,
-0.0396839231,
0.3423421681,
0.0723985434,
0.435135752,
0.2286168188,
0.2244642228,
0.1533678323,
-0.3978565633,
0.1809158623,
0.4411686957,
0.0670979917,
-0.1009430364,
-0.0148155354,
0.0950865373,
0.2908060253,
0.1942326128,
0.2382654399,
0.1409131885,
0.4144792557,
0.2528803051,
-0.3206349313,
-0.1901364625,
0.1150637567,
-0.0921945795,
0.0848043561,
-0.3619302213,
-0.4880493581,
0.0398112573,
0.3691861331,
-0.1310359836,
-0.0026240279,
0.1395212561,
-0.1196899414,
-0.1561326981,
0.1461923867,
0.1073956192,
0.3651874065,
0.104181163,
0.2516116798,
-0.0053124242,
0.3845585585,
-0.0917375609,
0.1042224765,
0.0321117342,
-0.1666959822,
0.2028452903,
-0.081934832,
-0.0895352289,
-0.3759453297,
-0.2803926766,
-0.0072703818,
0.3538414836,
-0.16954647,
-0.0149290804,
-0.4943673015,
-0.2992810607,
-0.0837256014,
-0.1607409716,
-0.2168103307,
-0.3242703676,
0.0181074347,
0.4889321923,
-0.1081640944,
0.2809449136,
0.1745007038,
-0.0645964518,
-0.094878085,
0.1276856512,
-0.2871422172,
0.0768215731,
0.0088638291,
0.0200299323,
0.3722225428,
-0.1981899887,
0.2687550485,
-0.1564139277,
0.0256220736,
-0.6372658014,
-0.0649694055,
0.2924351096,
0.0651660711,
0.0807885304,
0.0294606499,
0.3807636201,
0.1620391011,
-0.014517731,
-0.0868717209,
-0.0813148096,
-0.0104087256,
0.1188943237,
-0.0881036371,
0.2335217148,
-0.0971402302,
-0.4069850445,
-0.4457492232,
-0.457151264,
0.2137654275,
0.0921298042,
0.122393854,
0.0089226458,
-0.0713885874,
-0.0543849505,
-0.06948746,
0.0766464248,
-0.3051822186,
-0.3735380769,
0.4726116657,
-0.329000324,
-0.4096884727,
0.2468447089,
0.1884685159,
0.1149501577,
0.1329179406,
-0.2219940722,
-0.1428837925,
0.0371316001,
-0.3601977527,
-0.1050279588,
0.0899638757,
0.4774088562,
-0.0677855834,
0.1927698851,
-0.1239136606,
-0.0052342908,
-0.1396555156,
0.093145214,
0.3413820863,
0.0869436264,
0.485681653,
-0.1417552978,
0.3167474568,
0.2407835275,
0.2639563978,
0.3672996759,
-0.1957017332,
0.3990344107,
-0.2046800256,
0.0245972667,
0.0555180348,
-0.1024991199,
-0.2557214797,
0.2675822079,
0.0082710097,
-0.139238283,
-0.3245007992,
0.2150249034,
-0.2233113199,
-0.1346151829,
-0.0715124309,
-0.2282424271,
-0.0713534728,
-0.0483969934,
0.286272794,
0.13518852,
-0.0203775913,
0.071295768,
0.5377804041,
0.4369381666,
0.1178003773,
-0.3868829608,
-0.0812684819,
-0.4262916148,
0.2966416776,
-0.2313700467,
0.413420558,
-0.1676135063,
0.0411893055,
0.1981191039,
0.0138695193,
0.3704360425,
-0.7194674015,
-0.0535376333,
0.1626244634,
0.1467948854,
0.2249275446,
-0.0784530565,
-0.2929044068,
-0.143091917,
-0.0793364421,
0.2165041864,
-0.418838799,
0.1092114598,
0.217746973,
0.0971145555,
0.1000147089,
-0.1395124495,
-0.2376498729,
-0.3915349245,
-0.0609602667,
-0.1680558175,
0.0097970339,
0.0559273511,
-0.0096467333,
-0.0066784257,
0.3347007632,
-0.0306460075,
0.4139192998,
0.1525652409,
0.3458555341,
0.0269195214,
0.0832444653,
0.1963680089,
-0.0901527479,
0.4856541753,
0.5492021441,
0.1691755056,
-0.4433787167,
0.3541826308,
-0.2447021455,
0.3471719623,
0.1959617138,
-0.0748416856,
0.3240226805,
0.1917135864,
0.1574933082,
-0.1382676363,
-0.0401537195,
0.4357260168,
-0.2706990242,
-0.4504986703,
-0.853754878,
0.2646522224,
0.1326376349,
0.0287171882,
0.3333212137,
-0.0778448284,
-0.0178689025,
0.2660456598,
-0.3158387542,
1.25367558,
0.0495336689,
-0.1601357162,
0.0885021538,
-0.1905598044,
0.0543919243,
-0.7143372297,
0.06134554,
-0.1800664961,
-0.5316194892,
-0.237400651,
0.1132786497,
0.2065930218,
-0.0040606512,
-0.4665453136,
0.2849880755,
-0.1265021712,
0.3377740383,
0.0401615314,
0.3065389097,
-0.3628569245,
-0.268843174,
-0.2772190571,
0.0517559126,
0.0895717368,
0.3386218548,
0.0553353317,
-0.3660642207,
0.1061680615,
-0.2185239643,
-0.2682702541,
0.2338397652,
-0.3644911051,
-0.0995401815,
-0.3373865783,
-0.4395516813,
0.2539440989,
0.1455100775,
-0.2211120874,
0.1077331677,
-0.1054343134,
0.1174860746,
0.1226009354,
-0.0040941932,
0.0134692369,
0.0999259204,
-0.0433224365,
-0.1342874914,
-0.0817736089,
0.3178882003,
-0.0227089319,
-0.3491080105,
-0.0365918875,
-0.1285640597,
0.0613800138,
0.1914072931,
-0.2475519478,
0.0623384379,
-0.2360645235,
-0.1513064057,
0.0658337921,
0.2078376859,
-0.4904672801,
0.0552516542,
-0.1546524316,
0.0287952349,
-0.2362264991,
0.4848408997,
0.107545577,
0.0349366404,
0.3408568203,
0.197335124,
-0.162210077,
-0.2498522103,
0.0315966308,
0.1737688035,
-0.3515820503,
-0.2470392436,
0.0142015014,
-0.0749870613,
-0.0562280603,
-0.0091463253,
-0.2168319076,
0.0447099768,
-0.3974392116,
-0.4261235297,
-0.2483400702,
0.0842581242,
-0.0889478475,
0.1791656613,
-0.1526959687,
-0.0598523952,
-0.0734112039,
-0.060538467,
-0.2449501008,
-0.212033838,
0.0253594611,
-0.150952965,
0.1990640908,
0.2607725859,
0.2955906093,
-0.1117868945,
0.0293209516,
0.1424714178,
-0.2683439851,
0.0400176831,
0.087279059,
0.1927012205,
0.1340291202,
-0.1266063899,
-0.1353113353,
-0.2339720577,
-0.4515782595,
0.009737378,
0.1720906198,
0.2276324332,
0.0724286363,
-0.072916925,
-0.0517714992,
-0.1036776826,
-0.2256746292,
0.0043286667,
0.1517080665,
0.1950709224,
-0.1190374047,
0.1173549369,
0.07147903,
-0.1743323356,
-0.0588810891,
0.1747819334,
0.0443489365,
0.2363563776,
0.5288398862,
-0.0319246314,
0.3279356658,
0.0066074193,
0.5832704902,
0.5573221445,
-0.0747007057,
-0.0610264204,
0.3446421623,
0.1035060063,
-0.2138706893,
-0.2090786994,
0.0582148321,
-0.0219909325,
0.048570957,
0.2497274429,
0.0817334652,
0.3195099831,
0.2672941685,
0.0165077392,
0.1938671023,
-0.1352484524,
0.3953141272,
0.3468492627,
-0.214487195,
0.1475572437,
0.0685327202,
0.1123188287,
0.0111516388,
0.1953078806,
-0.1713669449,
0.3960524201,
-0.004801013,
-0.2029864192,
0.05166246,
-0.5372376442,
-0.2877904475,
0.2421450764,
0.1874137968,
0.2922578156,
0.1689286381,
0.2597700357,
-0.302174747,
0.1063480601,
-0.3295457661,
-0.0418411009,
0.141342774,
0.1097113714,
0.1085170433,
-0.1915691793,
-0.1921049803,
-0.0799303502,
0.1915812045,
0.2715431154,
-0.3523303568,
0.072808437,
0.0971474349,
0.3483981192,
-0.2897261679,
-0.1673246175,
0.135815993,
-0.2641151845,
0.2316348404,
0.0962328017,
0.3150746524,
0.2248795331,
0.0511748977,
0.3245301247,
0.217822656,
0.2088503689,
0.0519673526,
-0.1030479446,
-0.1875559837,
0.1337418556,
0.2690191865,
0.2604117095,
-0.1255176365,
0.3355016708,
0.0128537379,
-0.0914069265,
0.4752669632,
0.1660215706,
0.3805522025,
-0.0832619369,
-0.1010937542,
-0.4006462991,
-0.0370903052,
-0.3532961905,
-0.3538894951,
-0.4050886929,
0.0034838305,
0.1079078391,
0.0351133905,
-0.0327189602,
-0.1606802344,
-0.0008887196,
0.0461629815,
0.1536915153,
0.4532611668,
-0.2176153511,
-0.044712089,
-0.3390129507,
-0.7590444684,
0.1910515875,
0.0239206441,
-0.0142950248,
-0.1834047288,
0.1790283769,
0.2810500264,
0.3058256209,
0.2467394024,
-0.0321486145,
0.1487092674,
0.3030208945,
-0.0893286169,
-0.3100881279,
0.1629429907,
0.2925817668,
-0.1376067549,
-0.2058157027,
0.0434056036,
-0.0840947255,
0.029415438,
-0.155910328,
0.0445788577,
-0.4389175773,
-0.1220132485,
0.5348939896,
-0.0089016687,
0.5656006932,
-0.2101712078,
-0.1227377877,
-0.2373737395,
-0.0080009978,
-0.1707570851,
-0.0186478868,
0.1687958091,
0.5168353319,
0.1429233402,
-0.0905212164,
-0.6552098989,
0.3640491664,
-0.2847559154,
0.1559086144,
-0.5282570124,
0.2624580562,
-0.1105619222,
0.1295368075,
0.1095382199,
-0.2863337994,
-0.0111329136,
-0.112231411,
-0.2814582586,
-0.2223890275,
0.5206862092,
-0.0315509513,
-0.2078405172,
-0.0258205459,
0.121751219,
-0.0541359149,
-0.147700578,
-0.5724072456,
0.2405473292,
0.0140483323,
-0.0399508514,
0.1990642548,
0.1131997406,
-0.0821250752,
0.0593274049,
0.0281123128,
0.1682987511,
0.2719892859,
-0.0536750928,
0.1396377683,
-0.1304177642
] |
https://github.com/huggingface/datasets/issues/4181 | FLEURS | @patrickvonplaten I think the metadata file should be found first because the audio files are contained in a folder next to the metadata files (just as in common voice), so the metadata files should be "on top of the list" as they are closer to the root in the directories hierarchy | ## Dataset viewer issue for '*name of the dataset*'
https://huggingface.co/datasets/google/fleurs
```
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://storage.googleapis.com/xtreme_translations/FLEURS/af_za.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
```
Am I the one who added this dataset ? Yes
Can I fix this somehow in the script? @lhoestq @severo
| 51 | FLEURS
## Dataset viewer issue for '*name of the dataset*'
https://huggingface.co/datasets/google/fleurs
```
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://storage.googleapis.com/xtreme_translations/FLEURS/af_za.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
```
Am I the one who added this dataset ? Yes
Can I fix this somehow in the script? @lhoestq @severo
@patrickvonplaten I think the metadata file should be found first because the audio files are contained in a folder next to the metadata files (just as in common voice), so the metadata files should be "on top of the list" as they are closer to the root in the directories hierarchy | [
-0.2602010965,
-0.0378421322,
0.0043258998,
0.4519119561,
-0.022629505,
-0.183288902,
0.0751354322,
0.0605066046,
-0.0186401047,
0.282525599,
-0.1181558892,
0.3060654402,
-0.1763246953,
-0.1571860164,
0.1485980302,
-0.09471035,
-0.1085318923,
0.2934680283,
-0.1141458452,
-0.116612345,
-0.2384851426,
0.2623154223,
-0.142763555,
-0.2228943706,
0.1375709027,
0.0416274145,
0.1906373203,
0.0820330754,
-0.3099384904,
-0.169259876,
-0.0565752797,
0.278110683,
0.3287971914,
0.6546830535,
-0.0001204386,
-0.1032074466,
0.2818096876,
-0.2308055907,
-0.0229020491,
-0.1914562434,
-0.3581675589,
0.1129656509,
-0.1198291183,
0.0708694533,
-0.1147501692,
-0.2405674756,
0.0151987113,
-0.5768604875,
0.1300990134,
0.4363032877,
0.0926650912,
0.1627236903,
-0.1050128266,
0.0983770564,
0.5220027566,
-0.0739733949,
-0.152959466,
0.0286692232,
0.3686656058,
0.224016875,
0.0986487493,
0.5241943002,
-0.0294209216,
-0.1677386761,
0.3016471565,
-0.0382373743,
-0.3343584239,
-0.6000580788,
0.1539560109,
0.46877563,
1.0180184841,
-0.1311185211,
-0.3534547687,
0.163370043,
0.1179421544,
-0.2508937716,
0.2794174254,
-0.0040702638,
0.0318945199,
0.2019604146,
0.0350238532,
-0.2635020316,
-0.3140485883,
0.09751416,
-0.0081654405,
0.2150209993,
-0.154950276,
-0.109993726,
0.415612638,
-0.0283750724,
0.3861299157,
0.1169986278,
-0.2300768048,
0.2663523853,
-0.3252611458,
-0.215835616,
0.080730401,
0.0825651288,
0.0501491651,
0.4964277148,
0.2120893598,
0.2518612742,
-0.4074887037,
0.2914406061,
0.2537223995,
0.1876011938,
0.088860482,
0.0674135014,
0.4328045845,
0.2159663141,
0.3254763484,
-0.1887209862,
-0.154436186,
-0.2007231414,
-0.1442805678,
0.1470088512,
0.2904042602,
-0.3285515308,
-0.2306859344,
0.1649500132,
-0.3167548478,
-0.3615003526,
0.1458382159,
0.4246325195,
-0.0346632898,
0.2859817445,
-0.0490700938,
0.5283427238,
-0.0005137342,
-0.3322654665,
-0.0229464211,
0.2900842726,
0.1328222454,
0.001296316,
0.0412588008,
-0.2640176415,
0.1173195615,
-0.148579821,
0.1416475028,
-0.0551750734,
0.2168937325,
-0.1928334385,
0.0473502241,
0.2617741525,
0.1587830484,
0.0890303254,
-0.1118504629,
0.0230503846,
-0.1953353882,
0.1624398082,
-0.1738807112,
-0.2596197426,
-0.2270555645,
0.0872606859,
-0.2232521772,
0.0107565131,
-0.3368120193,
0.1899898797,
-0.0643890202,
-0.468378216,
0.0187867507,
-0.0969777703,
-0.1412437409,
-0.0559198037,
0.1756077856,
0.4364263713,
-0.6779914498,
0.1374570578,
-0.5181321502,
-0.0856273025,
0.3713829815,
0.0932355896,
0.0693778694,
-0.0760358348,
-0.328207016,
0.3048427999,
0.533754766,
-0.2356026471,
-0.5262056589,
0.2919034958,
-0.1449710429,
0.2958010137,
0.5588800311,
0.0357806422,
0.3214592338,
-0.2541726232,
-0.071789965,
0.2356579751,
0.0616816878,
-0.0872893333,
-0.1054632068,
-0.0459225103,
0.1316214204,
0.2565060556,
-0.0240031052,
0.1956230253,
0.1913902313,
-0.3012171388,
0.1434370577,
-0.01481569,
0.0914721936,
0.3826000392,
0.3908293247,
0.313054204,
0.0135276234,
-0.014011912,
-0.0270172376,
-0.0578736365,
-0.1977113932,
0.1398938745,
-0.3250916302,
-0.2183268219,
-0.0762396604,
-0.2707839608,
-0.5167202353,
-0.0416112728,
0.0336302444,
0.4391494393,
-0.2469331473,
-0.0161120761,
-0.3241846561,
-0.0839243978,
0.206208244,
-0.0575208589,
-0.4554591775,
0.3100773692,
-0.1681585163,
0.0387485437,
0.1280008107,
0.0248145126,
0.1739192158,
-0.3804384172,
-0.0593368337,
0.3202677369,
0.1042126268,
0.3134732246,
0.2707664669,
0.1571474522,
0.146098882,
-0.3781288266,
0.1899038851,
0.4932232201,
0.0788573772,
-0.1091494113,
-0.033726152,
0.0728935599,
0.3340810239,
0.186490193,
0.1846358031,
0.0894823372,
0.3437826335,
0.3228146732,
-0.1003793031,
-0.2261787802,
0.128136605,
0.0688418224,
0.1706696451,
-0.2432391942,
-0.5032555461,
0.0874296054,
0.4383480549,
-0.2238228917,
0.111109972,
0.1455180198,
-0.0927742347,
-0.0972468778,
0.1349885464,
0.1099736616,
0.405515939,
0.0764233619,
0.1670029014,
-0.0412968546,
0.4270354807,
-0.1416424066,
0.0446082801,
0.0447898954,
-0.0828433931,
0.2313577831,
-0.0161814466,
-0.0244029276,
-0.3830167949,
-0.4216076732,
-0.0226488337,
0.3932429254,
-0.2267476767,
-0.0470033139,
-0.3668758273,
-0.2789461017,
-0.0402061157,
-0.1830367744,
-0.3018555641,
-0.2866824269,
0.1318890303,
0.3548681438,
-0.0744490102,
0.2186646461,
0.1079651564,
-0.0017267907,
-0.0614749156,
0.1748801321,
-0.2410983294,
0.1777067184,
-0.0908388123,
-0.0009089602,
0.4174717665,
-0.2062283009,
0.137752682,
-0.2071217597,
0.0667285249,
-0.562346518,
-0.0279351566,
0.2887236774,
0.0270161871,
0.096062012,
0.028798582,
0.3184271455,
0.1426990032,
-0.0830005407,
-0.0926438645,
-0.0458057635,
-0.0718940571,
0.1362524927,
-0.0307884067,
0.1554259509,
-0.0908998549,
-0.5451655984,
-0.4411064684,
-0.4404222369,
0.1919843107,
0.1416716427,
0.1888188422,
-0.0591398217,
-0.206761688,
-0.0438270494,
-0.041128587,
0.1617142409,
-0.2568117678,
-0.3595848382,
0.4960885644,
-0.2769575119,
-0.3191047311,
0.20528467,
0.0992796794,
0.0837954655,
0.0586173348,
-0.2010037452,
-0.2696543336,
0.0032036426,
-0.2829015553,
-0.113474749,
0.0737401396,
0.527374804,
-0.0427547544,
0.2010606378,
-0.0969905257,
-0.0308737252,
-0.0980584621,
0.1285244524,
0.3095679581,
0.0397492498,
0.4359805584,
-0.1604355872,
0.3282439411,
0.2009861022,
0.4029406607,
0.2888468206,
-0.1338551044,
0.327226311,
-0.195172146,
-0.0045736227,
0.0958355367,
-0.0451969802,
-0.1564201117,
0.3317691088,
0.0904980525,
-0.1122671813,
-0.2598050237,
0.129699856,
-0.2911320925,
-0.0517803021,
-0.0076419702,
-0.2307517081,
-0.0202635191,
-0.103596136,
0.2966546714,
0.0918091834,
0.0034563681,
0.0069900649,
0.5458766222,
0.3342458904,
0.0736739337,
-0.3834910393,
-0.1340970695,
-0.3770186603,
0.3685381413,
-0.1453104913,
0.4143318534,
-0.1306446791,
0.0376231149,
0.1807793528,
0.0084006535,
0.3380652964,
-0.7207918763,
-0.1881541312,
0.1000368148,
0.1564116329,
0.2352697998,
-0.1168201789,
-0.308122009,
-0.1654173285,
-0.0641914159,
0.159153685,
-0.3488446176,
0.0358861201,
0.2942792475,
0.1327804178,
0.0715475753,
-0.1913122982,
-0.2184346467,
-0.4541096091,
-0.067195788,
-0.216947332,
-0.0128352903,
0.0674803033,
-0.0026910165,
0.0712843388,
0.453551054,
-0.0617653765,
0.4760465622,
0.1692865789,
0.3659194112,
0.0253602061,
0.0264648516,
0.244273141,
-0.0252977218,
0.4563404024,
0.5713465214,
0.138062194,
-0.4628012478,
0.3138695657,
-0.2674879432,
0.431533277,
0.2105668783,
-0.1331427246,
0.3509292006,
0.015045681,
0.1108497307,
-0.0244724378,
-0.109439224,
0.5708761811,
-0.2902701199,
-0.3996905982,
-0.8589796424,
0.2694148123,
0.1676583886,
-0.05265541,
0.256857127,
-0.0682597607,
-0.0531777069,
0.1922766715,
-0.4394152164,
1.2276076078,
0.0982893854,
-0.1139246002,
0.1142523065,
-0.2015226185,
-0.054806307,
-0.7581313848,
0.1261376143,
-0.2136766165,
-0.600199163,
-0.2851545215,
0.0628643185,
0.1290613413,
0.0393973924,
-0.4444839954,
0.4207382202,
-0.194492057,
0.2404539436,
0.0493236892,
0.2894618511,
-0.3681972027,
-0.2346802205,
-0.1554399133,
0.03681558,
0.1902990341,
0.3506458998,
-0.0208327547,
-0.2384134531,
-0.0063962,
-0.2655056715,
-0.1809444278,
0.210959956,
-0.4199323058,
-0.077531375,
-0.2331871092,
-0.4805659354,
0.2844718099,
0.210523054,
-0.1669246852,
0.092071116,
-0.0514669716,
0.112850219,
0.2338002622,
0.1081894636,
0.0855955258,
0.0041600368,
0.0117434813,
-0.0964546204,
-0.1132752001,
0.1972784549,
-0.0417198539,
-0.2540828884,
-0.2037516087,
-0.0496760942,
0.054304529,
0.1092474237,
-0.2612663507,
0.0966645181,
-0.2481652349,
-0.1193859205,
0.0598724186,
0.2467954904,
-0.5175840855,
0.0304713696,
-0.2935868502,
0.0910510495,
-0.2249558419,
0.3404910862,
0.1206174865,
0.0276510119,
0.4325818717,
0.1657462418,
-0.1765007973,
-0.228910163,
-0.0356805623,
0.3166155219,
-0.3903775215,
-0.2321746051,
0.0122231431,
-0.145266667,
0.0210784245,
0.0389556512,
-0.1324478835,
-0.0348328687,
-0.3647679389,
-0.4383783937,
-0.2134436965,
0.1383194774,
-0.023481492,
0.2102770358,
-0.197999835,
-0.0297052544,
-0.0083406102,
-0.0578971133,
-0.2354231179,
-0.1495864689,
-0.0191013273,
-0.1003661752,
0.2013381422,
0.2135125846,
0.2696481347,
-0.0963929221,
0.0119804107,
0.1048150584,
-0.1942402869,
0.0490563922,
0.209962979,
0.2040555477,
0.0243334584,
-0.1641488969,
-0.0848341435,
-0.1918678135,
-0.4376420379,
-0.0636906251,
0.0733598918,
0.1635601223,
0.0924688652,
-0.0325571969,
-0.1018218026,
-0.2867778838,
-0.2275164276,
0.0755212456,
0.1043607518,
0.124161914,
-0.0727853253,
0.1640875489,
-0.0251249447,
-0.153464824,
0.0409316309,
0.3099928796,
0.0066014491,
0.2371042818,
0.4841569066,
-0.1539925188,
0.3882711828,
0.0672082901,
0.5633129478,
0.5087838173,
-0.1218739823,
-0.0069261938,
0.2433031946,
0.0964593664,
-0.2761640549,
-0.26279217,
0.1722443253,
0.0328828283,
0.0308748968,
0.3253569901,
0.1565894037,
0.3115968108,
0.2592171729,
0.0077155535,
0.1417737752,
-0.1226744577,
0.4328399897,
0.2617012262,
-0.2251421213,
0.1270004958,
0.2041086555,
0.0633301511,
-0.0331277661,
0.3013458848,
-0.2319907397,
0.4020750225,
0.0308163669,
-0.2115970403,
0.1207394674,
-0.7115129232,
-0.1794532388,
0.24660106,
0.2510814667,
0.221080482,
0.1956241578,
0.3282263279,
-0.3494930863,
0.1258559525,
-0.3305702209,
-0.0506960936,
0.0000652369,
0.1690113842,
0.1541976035,
-0.2279458046,
-0.1617740244,
-0.1349844784,
0.1321499497,
0.2287366837,
-0.4303657711,
0.0501816384,
-0.0032542425,
0.2984125912,
-0.2460610121,
-0.1811911613,
0.1206872836,
-0.2343736738,
0.3593767583,
0.1363080293,
0.2467334419,
0.2389523387,
0.1228005886,
0.2568648756,
0.2122964263,
0.2054138631,
0.0963170007,
-0.094304122,
-0.1923829317,
0.1070443243,
0.1648549587,
0.1489479393,
-0.0145549262,
0.26455459,
0.0134134935,
-0.0922385231,
0.4630556107,
0.1652572453,
0.3940698802,
-0.0795565024,
-0.0578936674,
-0.4178464115,
-0.1648222804,
-0.3827128708,
-0.3885757327,
-0.4208135605,
0.0120560257,
0.2399716228,
0.082920298,
0.0370519534,
-0.1220871583,
0.0043021915,
0.1116548181,
-0.0371808745,
0.4747756422,
-0.2198656499,
-0.0834208876,
-0.4123094976,
-0.7940811515,
0.2038648725,
0.0356331728,
0.0029447107,
-0.1439723223,
0.1694880724,
0.2391464263,
0.1505954564,
0.4111444056,
-0.0509087518,
0.0925480574,
0.307341367,
-0.1589033902,
-0.313688159,
0.0844330564,
0.2910385728,
-0.1219786406,
-0.2261764258,
-0.0406089835,
-0.0517859608,
0.0270925276,
-0.1504095495,
0.116383478,
-0.4557860196,
-0.1128726676,
0.427454114,
-0.0021237924,
0.5931813717,
-0.1442348957,
-0.0360533893,
-0.1381993741,
-0.0705900863,
-0.2292660177,
0.0188556984,
0.2175383419,
0.5258502364,
0.0892701149,
-0.0146587277,
-0.6589737535,
0.2967657745,
-0.16554223,
0.2104132771,
-0.5977600813,
0.3273795545,
-0.1764066517,
0.0477118455,
0.1982367337,
-0.2097804695,
0.0185297802,
-0.120542191,
-0.3415549099,
-0.2670853138,
0.4749133885,
0.0538590439,
-0.2398514599,
-0.0984361619,
0.1997260004,
-0.1068309918,
-0.0873163119,
-0.4977736473,
0.2123394907,
0.0891493559,
-0.0490477383,
0.1105438173,
0.0971885473,
-0.0905841514,
-0.0627959669,
0.0396703854,
0.1800118834,
0.2997199893,
-0.1356634349,
0.1488837451,
-0.0879369304
] |
https://github.com/huggingface/datasets/issues/4181 | FLEURS | The order of the files is determined when the TAR archive is created, depending on the commands the creator ran.
If the metadata file is not at the beginning of the file, that makes streaming completely inefficient. In this case the TAR archive needs to be recreated in an appropriate order. | ## Dataset viewer issue for '*name of the dataset*'
https://huggingface.co/datasets/google/fleurs
```
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://storage.googleapis.com/xtreme_translations/FLEURS/af_za.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
```
Am I the one who added this dataset ? Yes
Can I fix this somehow in the script? @lhoestq @severo
| 51 | FLEURS
## Dataset viewer issue for '*name of the dataset*'
https://huggingface.co/datasets/google/fleurs
```
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://storage.googleapis.com/xtreme_translations/FLEURS/af_za.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
```
Am I the one who added this dataset ? Yes
Can I fix this somehow in the script? @lhoestq @severo
The order of the files is determined when the TAR archive is created, depending on the commands the creator ran.
If the metadata file is not at the beginning of the file, that makes streaming completely inefficient. In this case the TAR archive needs to be recreated in an appropriate order. | [
-0.2956910729,
-0.2175756842,
0.014172053,
0.533467114,
-0.0148763657,
-0.1429132521,
-0.0185219832,
0.0830985829,
0.0446124487,
0.2024894506,
0.0721557215,
0.2828602493,
-0.0487505905,
-0.0220458973,
0.1474587619,
-0.1707114577,
-0.1520995647,
0.2791154683,
-0.1519186348,
-0.0155390352,
-0.1420169175,
0.2196811289,
-0.0513571091,
-0.2801402211,
0.2455154359,
0.1190220267,
0.1555880308,
-0.0511741377,
-0.2626451254,
-0.1918212622,
0.007839866,
0.3154300749,
0.3521578908,
0.4980873466,
-0.0001193052,
-0.0995936766,
0.2391540706,
-0.1597937047,
-0.0560393222,
-0.1767357737,
-0.1918465644,
-0.06495516,
-0.0362634361,
-0.0650032088,
-0.1976522058,
-0.1834443212,
0.0683725327,
-0.5470936894,
0.2101126313,
0.3472157419,
0.1123993993,
0.2122181654,
-0.1640127748,
0.0601935685,
0.4874735177,
-0.1121727377,
-0.2489947081,
0.0314045586,
0.2394644916,
0.2922106385,
0.028386211,
0.5916662216,
-0.073165603,
-0.0717903376,
0.3453609645,
-0.0317838117,
-0.2715737522,
-0.4830626547,
0.0595211238,
0.4686639309,
0.966761291,
-0.0308244936,
-0.3709669113,
0.1296990663,
0.1347625256,
-0.2841235101,
0.2653083801,
0.1313120723,
0.1462324709,
0.1249078289,
0.0063882209,
-0.1086090207,
-0.3603130281,
0.0406791903,
-0.1283507496,
0.227924183,
-0.1406860501,
-0.0545258448,
0.3388124108,
0.0425515771,
0.4571433961,
0.0433636121,
-0.2339449823,
0.0786233619,
-0.2796326876,
-0.171104908,
0.0460676439,
0.1585176438,
0.050983984,
0.5629080534,
0.2589329183,
0.2410952002,
-0.1943770796,
0.1925693005,
0.1429010481,
0.2631367147,
-0.0321811959,
0.1343748868,
0.3176749647,
0.2744297385,
0.2378171533,
-0.2155848593,
-0.0388558507,
-0.1559820473,
-0.237078011,
0.1707014441,
0.2608462572,
-0.2390839905,
-0.2316380292,
0.1792152822,
-0.2360935807,
-0.2985709906,
0.0836059451,
0.4024216235,
-0.2291604578,
0.2642835677,
0.0104694897,
0.3443315327,
0.0014207381,
-0.3954409659,
-0.1116884053,
0.1939644068,
-0.0345312618,
-0.0321646109,
-0.0807928219,
-0.3823285401,
0.0033819641,
-0.1445214152,
0.1032368615,
0.12692599,
0.260659188,
-0.3144792616,
0.1633501053,
0.3401501179,
0.1864398569,
0.1838809401,
0.0032812094,
0.0569502041,
-0.1907770932,
0.0714952946,
-0.2727965117,
-0.307477951,
-0.2834481001,
0.1155925766,
-0.266356796,
0.0196883641,
-0.4231953323,
0.1258350015,
-0.1110830456,
-0.2919421196,
-0.1307683736,
-0.0505852662,
-0.0844173431,
-0.1261848807,
0.0855200961,
0.5652762651,
-0.7053681016,
0.1583501548,
-0.5417262316,
-0.0687093884,
0.5407446623,
0.082293123,
0.012577543,
-0.0673119053,
-0.2936021388,
0.1320002228,
0.5308793783,
-0.1370136142,
-0.4575760961,
0.4175781906,
-0.2042416334,
0.3433935344,
0.6629877687,
0.1408533454,
0.3606780469,
-0.2560039461,
-0.1563057601,
0.3145277202,
0.0712027475,
-0.0286791418,
-0.1630141586,
-0.0920096114,
0.0419455506,
0.2421479672,
-0.0165007208,
0.2824665308,
0.1581716835,
-0.2682805061,
0.1349424571,
-0.044839602,
0.1023793817,
0.3541379273,
0.2318373919,
0.4190368354,
0.005748115,
0.122243166,
-0.160406813,
0.0805372745,
-0.0785161704,
0.0294476394,
-0.2716188729,
-0.2141317725,
-0.0168343037,
-0.2543999851,
-0.381652087,
-0.0419310145,
0.0527538955,
0.467251271,
-0.2019530088,
-0.070584774,
-0.2443250716,
0.0335421972,
0.0971368626,
-0.0214608368,
-0.4680042565,
0.3107887208,
-0.170445174,
0.0273558777,
0.1055994257,
-0.2027536631,
0.1893813014,
-0.4025191069,
-0.0216753036,
0.2387824357,
0.007721954,
0.2997743785,
0.3280608356,
0.0805369765,
0.0588598736,
-0.292217344,
0.1804904789,
0.5281325579,
0.0058682365,
-0.0708571449,
-0.086917609,
0.2594801188,
0.2790074348,
0.2120335996,
0.1292860806,
0.1284499019,
0.3715173304,
0.1669696718,
-0.0426051617,
-0.3415150344,
0.3056782782,
0.1121235341,
0.046914991,
-0.302285403,
-0.4752954245,
0.1839460433,
0.3676992059,
-0.1113658324,
-0.0122866994,
0.2432333827,
-0.016309388,
-0.0260141212,
0.0079548657,
0.1907551587,
0.3524351716,
0.1125994772,
0.110050045,
0.0136752399,
0.4799706936,
-0.2076160312,
0.0708375275,
-0.0237753652,
-0.1477316916,
0.1882818937,
-0.018768359,
0.0354880244,
-0.289996475,
-0.3900096118,
0.0230620988,
0.3989336193,
-0.1640302986,
0.1483287066,
-0.4063203633,
-0.418407768,
-0.0661277771,
-0.0757662505,
-0.1918271184,
-0.3513289094,
0.0244760476,
0.3732734323,
-0.0827469304,
0.161514014,
0.1453799456,
-0.0560508817,
-0.0022359213,
0.1736776531,
-0.4246921241,
0.0761844143,
-0.0153009025,
0.0188680012,
0.3093390763,
-0.2778439224,
0.3045527041,
-0.2826609313,
0.0729197115,
-0.6701778173,
-0.1371224076,
0.24718602,
-0.0206748378,
0.1334185153,
0.1196690127,
0.4126248956,
0.1509552598,
0.0122643327,
-0.01095636,
-0.1038822979,
-0.0529511273,
0.2308695316,
-0.1544115394,
0.138443619,
-0.0939598903,
-0.4366597235,
-0.2722475231,
-0.3778557777,
0.1642930955,
0.3161742687,
0.236782521,
-0.1109515578,
-0.1887509972,
-0.1471398175,
-0.0530432649,
0.0259028673,
-0.2220938951,
-0.4757145047,
0.5171815157,
-0.2603317499,
-0.348344326,
0.2637322545,
0.1431092918,
-0.1096379831,
0.1988379806,
-0.3574484289,
-0.29092893,
-0.1172606722,
-0.2441607416,
-0.1991298795,
0.000592877,
0.4723243415,
-0.228273496,
0.1523520052,
-0.0945622846,
-0.000937404,
-0.1032917872,
0.0545367524,
0.2452952117,
-0.0580041222,
0.5009235144,
-0.0866122991,
0.2803378403,
0.2262252718,
0.2855296135,
0.3637094796,
-0.0378588215,
0.3208353221,
-0.1807093322,
0.0286995564,
0.0476281457,
-0.0162899457,
-0.0695099682,
0.2925329208,
-0.0079475017,
-0.070355013,
-0.2681692541,
0.1784707457,
-0.2657668591,
-0.0288119297,
0.0309823342,
-0.175768137,
-0.0416604578,
-0.1606363952,
0.2170816809,
0.0165344514,
-0.077752009,
-0.0273113865,
0.5794960856,
0.3722085357,
0.0736268908,
-0.3338780999,
-0.0117913177,
-0.4520684481,
0.4422922134,
-0.2142554671,
0.0937962458,
-0.0387656204,
0.074177146,
0.356157124,
-0.0641215667,
0.476075083,
-0.6881389618,
-0.0660691112,
0.1381708086,
0.0285185426,
0.1174492389,
-0.2213309109,
-0.350786984,
-0.1286683828,
-0.0806822851,
0.2586427331,
-0.4337537289,
-0.0462632924,
0.3913795054,
0.0322613232,
-0.0191798061,
-0.2429468334,
-0.315299958,
-0.4549876153,
-0.0300924089,
-0.1260783672,
-0.061737489,
0.0177960973,
0.0226142481,
0.0627811402,
0.2277327329,
0.0328472629,
0.3098380864,
0.1272037029,
0.3944474161,
0.0275099687,
0.0687625408,
0.1916382164,
0.0039035173,
0.4352678955,
0.5566852093,
0.1576104611,
-0.5272213221,
0.2387171984,
-0.2166084647,
0.166779995,
0.2546207011,
-0.1448787451,
0.4130035937,
0.0133896433,
0.2549673617,
-0.0649907663,
-0.1127916276,
0.5639804006,
-0.4467588663,
-0.4796268344,
-0.9167599082,
0.2478521466,
0.2003709823,
0.0092616761,
0.2442607731,
-0.0807907134,
-0.0625983253,
0.2396472842,
-0.1218524501,
1.2774951458,
-0.1112978011,
-0.0640354082,
0.1624733359,
-0.1482173055,
0.138248235,
-0.6334982514,
0.1354138851,
-0.405174315,
-0.7736658454,
-0.2645159662,
0.0368369967,
0.2448043674,
-0.0202143323,
-0.4855681956,
0.3621682227,
-0.2912141979,
0.3573646247,
-0.0345745645,
0.2363297045,
-0.3592046201,
-0.1673522741,
-0.2872625589,
0.0558809675,
0.0934959352,
0.3103931844,
-0.1369989216,
-0.2579565942,
0.0880999565,
-0.2167238444,
-0.1818780452,
0.2715264261,
-0.3656208813,
-0.0695319176,
-0.3648908734,
-0.4563080668,
0.1343635023,
0.2119551897,
-0.0920464918,
-0.0152780684,
-0.0054784594,
0.1398332715,
0.1567618847,
-0.0941242054,
0.0369662903,
-0.1030236855,
-0.0840412155,
-0.1247904673,
0.0399465412,
0.181763947,
0.0231966153,
-0.2536611557,
-0.1023880541,
0.004270935,
0.0544272177,
0.1383733004,
-0.256034255,
0.0998327211,
-0.2937242091,
-0.1159226,
0.0588937141,
0.2003985196,
-0.3490913808,
0.0664973781,
-0.3332382441,
0.0066529368,
-0.2762712538,
0.4738264978,
0.2595365345,
0.2052160054,
0.3458057642,
0.1728086621,
-0.2497412562,
-0.1980347931,
-0.0940822214,
0.2147049755,
-0.5276262164,
-0.1049596667,
0.0206114277,
-0.0242694952,
0.2082586735,
0.1179897264,
-0.1150911227,
-0.0001368532,
-0.3492452502,
-0.4184258878,
0.0110840779,
-0.0091694919,
-0.1240074113,
0.0620573722,
-0.123911567,
-0.032164827,
-0.1203339249,
0.0584989786,
-0.2634625435,
-0.1395599395,
0.0377403535,
-0.0403703265,
0.1509590298,
0.2201065868,
0.3372137547,
-0.072054483,
0.0293335244,
0.1408252865,
-0.2660471499,
-0.0127457725,
0.0881332159,
0.1954799145,
-0.0381101184,
-0.1125359684,
-0.1766241342,
-0.2867211103,
-0.4348404706,
-0.134961009,
0.1030990407,
0.1828316301,
0.0852114037,
-0.1267343163,
0.0160656124,
-0.1083458737,
-0.3491805196,
0.0625866055,
0.0361387618,
0.18668966,
-0.1801939905,
0.1068791598,
-0.0611054152,
-0.104267247,
0.0139440317,
0.1594775319,
0.1034387201,
0.3273749948,
0.5586058497,
-0.1138323173,
0.3207397461,
0.0157109704,
0.5508269668,
0.4942244589,
-0.0513239726,
-0.1865391582,
0.20115453,
0.1008263156,
-0.2844764888,
-0.2617875934,
0.1808411777,
0.1111749113,
-0.0421533585,
0.2672475874,
0.1595800519,
0.3644812703,
0.1648315936,
0.0432241634,
0.2567339242,
-0.088515006,
0.4489549398,
0.340554893,
-0.0210191514,
0.1468315721,
0.2123198062,
0.1428054571,
0.0063063712,
0.1875920743,
-0.0088055311,
0.4235400558,
-0.0005396283,
-0.1089413241,
-0.1046908423,
-0.7544493079,
-0.0730996057,
0.2912361622,
0.1731838584,
0.2755668759,
0.1903984696,
0.1439402848,
-0.1779693812,
0.1619682163,
-0.5124314427,
0.01499674,
0.0726215988,
0.2104159296,
0.0837083608,
-0.148526296,
-0.1517930627,
-0.0362258144,
0.036512576,
0.2716198564,
-0.3131016195,
0.1672973335,
0.0363459252,
0.2321920991,
-0.2341944575,
-0.2209749669,
0.2932040095,
-0.2609094679,
0.2555837333,
0.1651586741,
0.306907326,
0.1074218675,
0.106177114,
0.2529880106,
0.2698183656,
0.3204004169,
0.0828861967,
-0.0484751686,
-0.1809636801,
0.0169100855,
0.123001866,
0.1992371678,
-0.126301989,
0.2793198526,
0.0351679325,
-0.1788208038,
0.5552434921,
0.0824153498,
0.4591577351,
-0.0173166189,
-0.2033122778,
-0.3226393163,
-0.0768596902,
-0.3546936512,
-0.3249558508,
-0.4064067006,
0.0797545463,
0.1745742261,
0.0632970557,
-0.0480484441,
-0.1155040264,
0.0158041399,
0.137017712,
0.2057459652,
0.4349094033,
-0.2729304731,
-0.2387469262,
-0.3972077668,
-0.7069595456,
0.2496335506,
-0.1418049037,
0.0519729331,
-0.1183278114,
0.2570516169,
0.1216583997,
0.1420448422,
0.3278854191,
-0.1034903079,
0.1977088153,
0.4397346973,
-0.1480902731,
-0.3228847384,
0.1541309208,
0.1559554338,
-0.182087779,
-0.1504642367,
0.0351713561,
-0.0977415964,
0.0835260153,
-0.1777200997,
0.0481586605,
-0.2872257531,
-0.0717250928,
0.5202232003,
-0.0027119073,
0.5057859421,
-0.0869440362,
-0.1098877043,
-0.1892822087,
-0.0782331154,
-0.2210952938,
0.1333422214,
0.2905336916,
0.4357768297,
0.144309327,
-0.0181531273,
-0.6797909141,
0.3786117733,
-0.2036541402,
0.2284604907,
-0.5161471963,
0.2733088732,
-0.1098286808,
0.1228325516,
0.0754453987,
-0.0695160478,
0.1139152274,
-0.12924999,
-0.3094509244,
-0.3165627122,
0.4970432818,
-0.0306246169,
-0.1531117111,
0.0613725744,
0.1507437676,
-0.0271282904,
-0.0137899723,
-0.3908530772,
0.281049192,
0.111667566,
-0.1149640977,
0.1295249909,
0.2111373395,
-0.0307735149,
0.0573787093,
-0.0088153826,
0.1170547903,
0.3020585179,
-0.2786995173,
0.0686727762,
-0.0571957901
] |
https://github.com/huggingface/datasets/issues/4181 | FLEURS | Actually we could maybe just host the metadata file ourselves and then stream the audio data only. Don't think that this would be a problem for the FLEURS authors (I can ask them :-)) | ## Dataset viewer issue for '*name of the dataset*'
https://huggingface.co/datasets/google/fleurs
```
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://storage.googleapis.com/xtreme_translations/FLEURS/af_za.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
```
Am I the one who added this dataset ? Yes
Can I fix this somehow in the script? @lhoestq @severo
| 34 | FLEURS
## Dataset viewer issue for '*name of the dataset*'
https://huggingface.co/datasets/google/fleurs
```
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://storage.googleapis.com/xtreme_translations/FLEURS/af_za.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
```
Am I the one who added this dataset ? Yes
Can I fix this somehow in the script? @lhoestq @severo
Actually we could maybe just host the metadata file ourselves and then stream the audio data only. Don't think that this would be a problem for the FLEURS authors (I can ask them :-)) | [
-0.2880881429,
0.0965603814,
0.0083137583,
0.4689753354,
-0.0050418801,
-0.2420444489,
0.1928471178,
0.0732811168,
-0.093463026,
0.3695701063,
-0.129846409,
0.3443502188,
-0.2798325419,
-0.0799771622,
0.0928558931,
-0.0724117979,
-0.1600487083,
0.243618086,
-0.1604785919,
-0.0558264405,
-0.1586988121,
0.1407186091,
-0.0517062806,
-0.1946404427,
0.2305639684,
0.1058862656,
0.2921949923,
-0.0213940032,
-0.3744256198,
-0.1213178858,
0.023031259,
0.3125617802,
0.3459514976,
0.5025976896,
-0.0001191035,
-0.0608877912,
0.2916573286,
-0.2726625502,
0.0217269268,
-0.190572992,
-0.3209159076,
0.0299513321,
-0.1493287832,
0.027980838,
-0.1638711095,
-0.2485872954,
-0.0977293327,
-0.5063124299,
0.2272323072,
0.3954934478,
0.1147724986,
0.1471976489,
-0.1530483067,
0.2181382924,
0.5374869108,
-0.0902031511,
-0.1391587853,
0.0391726866,
0.4217974246,
0.2312462181,
0.0415860079,
0.6352924109,
-0.1890837848,
-0.0884986296,
0.265999645,
-0.1690253168,
-0.3299763799,
-0.5953251719,
0.2215943336,
0.5504086018,
1.0035873652,
-0.1245188192,
-0.3779649436,
0.2122924626,
0.1607866883,
-0.2551193237,
0.2127819508,
0.1781630963,
-0.002830083,
0.1868447214,
0.0114027923,
-0.2461134493,
-0.3647014499,
0.0320756659,
0.0683486015,
0.220235154,
-0.1831148863,
-0.0054616309,
0.3569806814,
-0.0702561513,
0.4493252337,
0.1164833382,
-0.2415867597,
0.2818189859,
-0.2159867734,
-0.2562118769,
-0.0324169844,
-0.0086062457,
0.1270455867,
0.427408576,
0.147133857,
0.3004561961,
-0.3854047656,
0.3166083097,
0.2913716733,
0.0192862842,
0.1168706715,
0.1017755419,
0.383448422,
0.2064135373,
0.3220970035,
-0.1854716241,
-0.0941236317,
-0.1512166113,
-0.183405757,
0.161525771,
0.377464056,
-0.3619118035,
-0.24029544,
0.2024243176,
-0.3464102447,
-0.2617910206,
0.064920038,
0.2961778939,
-0.0880790204,
0.2872079909,
-0.0595343038,
0.5256749988,
0.0292026605,
-0.4245184958,
0.0063598133,
0.3523791432,
0.156826809,
0.0010294939,
0.0397741348,
-0.2910553813,
0.0728302374,
-0.1115297601,
0.163822636,
-0.0788529292,
0.2251560688,
-0.227106899,
0.0450078398,
0.280749768,
0.210042417,
0.0375227742,
-0.121933423,
-0.0645615235,
-0.1980375051,
0.135919705,
-0.2117049396,
-0.1819367409,
-0.3085067272,
0.1057127938,
-0.3130887449,
0.1213836521,
-0.3781992793,
0.2221378684,
-0.1108431891,
-0.4579007924,
-0.0031040087,
0.004536544,
-0.1513656527,
-0.0251644757,
0.1964892745,
0.4611183703,
-0.6040027738,
0.199825868,
-0.4186372757,
-0.0990919024,
0.4450814426,
0.080755882,
-0.0031106295,
-0.0941844732,
-0.2073393464,
0.1982954293,
0.5010078549,
-0.167046994,
-0.4396182597,
0.1976182759,
-0.0888642445,
0.3157804608,
0.5599261522,
0.0853190571,
0.3804635406,
-0.252347976,
-0.0404167101,
0.2349558324,
0.1135085672,
-0.038742926,
-0.1240992025,
-0.196864292,
0.1093023419,
0.3373318017,
-0.0207710657,
0.3083696961,
0.2146496326,
-0.2765250206,
0.2136057615,
0.0490854941,
0.1851666272,
0.318960309,
0.3430716991,
0.3832732439,
-0.0725462958,
-0.1154830456,
0.0275841057,
-0.0925408006,
-0.1681093425,
0.1856175065,
-0.2699160874,
-0.2787403762,
-0.0830061734,
-0.1978006959,
-0.3874646425,
-0.1586429626,
0.0761755928,
0.2932186127,
-0.3269685507,
0.0352568626,
-0.2579008937,
-0.0886122361,
0.1709064692,
-0.1222624183,
-0.5088682771,
0.2715087533,
-0.0902509168,
0.0259910282,
0.1952174753,
0.0142255146,
0.1457009465,
-0.2966330945,
-0.0212947223,
0.2684268653,
0.15730533,
0.4087392688,
0.2859973907,
0.2361250371,
0.0739313513,
-0.3534356058,
0.1786813885,
0.4227890968,
0.1526091099,
-0.1011582986,
0.026155103,
0.130061537,
0.3463844657,
0.2214612663,
0.1079071835,
0.1882805675,
0.3561184406,
0.220799461,
-0.2310060859,
-0.1821365654,
0.1096816882,
-0.0397870019,
0.0628367588,
-0.295804888,
-0.4519350827,
-0.0136567671,
0.3308460712,
-0.1195418835,
0.0461108051,
0.1261085123,
-0.1714159846,
-0.0980990827,
0.1818008423,
0.1202273518,
0.2749400437,
0.0441295877,
0.1518938392,
0.0151755624,
0.5204473138,
-0.0536012836,
0.1116960868,
0.0437854975,
-0.1996413171,
0.0993703604,
-0.0464471243,
-0.0806909874,
-0.3722398877,
-0.3302872777,
-0.0435367264,
0.3958569169,
-0.2185721397,
-0.0390456133,
-0.391240865,
-0.2869836688,
-0.0219002739,
-0.2598369122,
-0.3067139983,
-0.2766884565,
0.046507746,
0.4763735533,
-0.2195294201,
0.1947193444,
0.123875536,
-0.0378109366,
-0.0773404986,
0.1924801618,
-0.2677319646,
0.0066985292,
0.0218274128,
0.0275316909,
0.39065817,
-0.1663212329,
0.2051109672,
-0.1772121191,
-0.0239479356,
-0.6125475168,
0.0789076611,
0.2477083206,
0.1334630251,
0.0713806078,
0.0369595662,
0.4043363631,
0.2263015956,
-0.0515529886,
-0.1047493219,
-0.0176973194,
0.045038987,
0.1838384718,
-0.0254372954,
0.2870273888,
-0.1023494378,
-0.4034631848,
-0.4517307281,
-0.4168262184,
0.1637894213,
0.0456360057,
0.2733948231,
0.0423470549,
-0.1358095556,
-0.0357540995,
-0.1004905403,
0.0327345915,
-0.3307028711,
-0.431723237,
0.469120115,
-0.2155704945,
-0.3817293644,
0.2425998449,
0.2366564572,
-0.0073210462,
0.1441051364,
-0.251598835,
-0.2972228527,
0.1361765563,
-0.3539040089,
-0.1333073527,
0.094129242,
0.435692817,
-0.0412835479,
0.1743640304,
-0.1078808308,
0.0036904288,
-0.1684681177,
0.0372179337,
0.2019021958,
0.0143462168,
0.3497440517,
-0.1576855779,
0.2991016507,
0.1773413569,
0.3314889669,
0.3243934512,
-0.1662037373,
0.4146719575,
-0.1566989869,
-0.0216456316,
0.0216988437,
-0.05207083,
-0.2906901836,
0.2674899995,
0.0534433201,
-0.1074918285,
-0.3281089962,
0.2565174401,
-0.1831564307,
-0.1928338706,
-0.0715310946,
-0.154461056,
-0.0006843184,
-0.011652736,
0.3077427745,
0.1173213497,
-0.0567751415,
0.0414081365,
0.5684330463,
0.3289989531,
0.0673394278,
-0.4062234163,
-0.051136706,
-0.374740839,
0.373960644,
-0.2083532661,
0.4256324768,
-0.1399102956,
0.0446290746,
0.2261540145,
0.0334033407,
0.3047340214,
-0.7384210825,
-0.050892327,
0.0818198994,
0.2750008404,
0.2489173114,
-0.1620019376,
-0.300570935,
-0.1083198786,
-0.0982054919,
0.2214388102,
-0.377191931,
0.018419005,
0.1809407324,
0.1133461595,
0.104267329,
-0.1098407581,
-0.1770149469,
-0.4736717641,
-0.0507224612,
-0.1513479352,
-0.0023863756,
0.093689777,
0.0673899651,
0.0239815675,
0.3760510981,
0.1157606766,
0.5151290298,
0.1452399194,
0.3009820282,
0.0484357774,
0.0064856862,
0.0685874596,
-0.110269092,
0.4899548292,
0.5806903839,
0.1749769747,
-0.4367558956,
0.3071888983,
-0.2744553387,
0.3277851343,
0.1923036128,
-0.0693351552,
0.3710345328,
0.1189040095,
0.1615769565,
-0.1539118141,
-0.0365086049,
0.408534497,
-0.3340811133,
-0.362716198,
-0.8797914386,
0.2391058803,
0.1183863059,
0.0005580757,
0.2824721038,
-0.1342027336,
-0.0324100628,
0.2380809635,
-0.3096939921,
1.2364960909,
0.0731911212,
-0.1046011746,
0.0826737508,
-0.2663312554,
0.0557532348,
-0.7316545844,
-0.0246242136,
-0.1864719689,
-0.4837263823,
-0.2514371276,
0.1298744082,
0.178003341,
0.0363181308,
-0.3337070048,
0.3223169148,
-0.1655671299,
0.2768339515,
0.0283529535,
0.2064529806,
-0.3567056656,
-0.2900800705,
-0.2399376184,
0.0545727611,
0.0418026932,
0.2279449105,
-0.0200175978,
-0.3112448454,
0.0716512501,
-0.2342157215,
-0.304934144,
0.2434774041,
-0.3396763206,
-0.1026679575,
-0.3878659308,
-0.4785503447,
0.2702707946,
0.0672447458,
-0.3091534674,
0.1418981254,
-0.0695933104,
0.0788877904,
0.1171070859,
0.1580660194,
0.0276904162,
0.0857691094,
-0.1011838019,
-0.0614293255,
-0.0497431979,
0.2884568274,
-0.0488836057,
-0.2551707327,
-0.0492912494,
-0.0338610858,
0.0853028223,
0.1224384159,
-0.2409094125,
0.0455898158,
-0.1657992154,
-0.0904814228,
0.0587390549,
0.2528209686,
-0.576901257,
0.0378064066,
-0.2477053851,
0.0272869822,
-0.1669398546,
0.4140893221,
0.207789287,
0.03794856,
0.313296169,
0.1726896763,
-0.0865427405,
-0.2621324658,
0.0589908324,
0.1981251538,
-0.3979269862,
-0.2490536571,
0.0817195699,
-0.1332496554,
-0.0695111156,
-0.022862969,
-0.2126718313,
0.0707512498,
-0.3458748758,
-0.5026690364,
-0.1934878677,
0.1001686081,
-0.0733854249,
0.1177057177,
-0.1305400729,
-0.0590684675,
-0.1216884628,
-0.0839664787,
-0.2484479845,
-0.1145320907,
-0.0435808189,
-0.0400298685,
0.1640201509,
0.2228177786,
0.2274215221,
-0.1605750322,
-0.0197639894,
0.0490925014,
-0.3265812695,
0.039562121,
0.0961495116,
0.21140939,
0.0923402309,
-0.1133613884,
-0.1768189073,
-0.2582162023,
-0.4376662374,
-0.0009119399,
0.1084415466,
0.3229615092,
0.1080073118,
-0.0584410615,
-0.1131738797,
-0.080897212,
-0.3951352835,
0.0296948124,
0.1053088531,
0.0684137344,
-0.1410105526,
0.0937696025,
-0.0015555042,
-0.146762237,
-0.0119501427,
0.2382315844,
0.0022954065,
0.1863356382,
0.5213498473,
0.0339089707,
0.4457568228,
0.1038549244,
0.5368395448,
0.6149240732,
-0.1771166176,
-0.1045566425,
0.3303084075,
0.1095548198,
-0.2203717232,
-0.2310836762,
0.0493920818,
-0.0628586709,
-0.0140459165,
0.2677738965,
0.109933354,
0.2981013358,
0.247404635,
0.0094843749,
0.1618982702,
-0.1472002268,
0.3886669278,
0.3243962228,
-0.3283421695,
0.0735981613,
0.042626597,
0.0811851323,
-0.0481467098,
0.2094353437,
-0.1644380391,
0.4604219794,
0.1522361785,
-0.2322430909,
0.0609599426,
-0.6165165901,
-0.2435222864,
0.2543107271,
0.3209326267,
0.3067390323,
0.1050632596,
0.2589153647,
-0.3245175481,
0.17758587,
-0.2253362983,
-0.0172840971,
0.1165275648,
0.1596317291,
0.1675218344,
-0.1465457082,
-0.1835073382,
-0.1382907629,
0.1318782121,
0.3125529885,
-0.4078293145,
0.025180297,
-0.0193605516,
0.3555343151,
-0.3627853394,
-0.0730291456,
0.0964511707,
-0.27724877,
0.2210967392,
0.1247343272,
0.3222594261,
0.2105867416,
0.1266114712,
0.2748748064,
0.1874007434,
0.2676638961,
0.0862524435,
-0.0514118411,
-0.1250502765,
0.117278561,
0.158471927,
0.2644246519,
-0.0819154158,
0.3625621498,
0.0027267477,
-0.0923862532,
0.4497105777,
0.1523947567,
0.3939006627,
-0.1072214842,
-0.0964322165,
-0.3076568544,
-0.114199549,
-0.3397129774,
-0.3187273741,
-0.3610344827,
-0.0016638946,
0.1770992428,
0.1047271937,
0.0350196101,
-0.1290207505,
0.0035203882,
0.0236678682,
0.1246917173,
0.4582426846,
-0.2913732231,
-0.0318832248,
-0.3414937556,
-0.8158482313,
0.2327342182,
-0.0546864942,
-0.0412071906,
-0.1278513372,
0.1011641026,
0.3792785108,
0.3412052393,
0.1967925578,
0.0396149457,
0.074297823,
0.2997872829,
-0.1542614698,
-0.2762679458,
0.1039369851,
0.3165765405,
-0.107250534,
-0.2330276221,
0.0076621813,
-0.0250338931,
0.0359829701,
-0.0848175436,
0.0144597711,
-0.4271966219,
-0.0412322804,
0.4768846631,
-0.0100951586,
0.4709773958,
-0.1731702834,
-0.0963102952,
-0.2536638081,
-0.0937545523,
-0.1429907233,
-0.0157084931,
0.1989709437,
0.4154947102,
0.1497439295,
-0.0733942613,
-0.5975030661,
0.3895175159,
-0.2692492008,
0.2566591501,
-0.552265048,
0.2284593433,
-0.0788427517,
0.1482336223,
0.0759197548,
-0.2802595496,
0.034839768,
-0.1389692873,
-0.3885579705,
-0.2881038785,
0.5784572959,
0.0355372243,
-0.3129201829,
-0.0149602778,
0.3013454676,
-0.1131217331,
-0.1325835884,
-0.5708785653,
0.2678594887,
0.0487718955,
-0.0414035283,
0.1408622265,
0.0360645577,
-0.2030771524,
-0.0061135259,
0.0271874759,
0.1196637526,
0.2841434181,
-0.116331242,
0.1412411332,
-0.1632872969
] |
https://github.com/huggingface/datasets/issues/4180 | Add some iteration method on a dataset column (specific for inference) | Thanks for the suggestion ! I agree it would be nice to have something directly in `datasets` to do something as simple as that
cc @albertvillanova @mariosasko @polinaeterna What do you think if we have something similar to pandas `Series` that wouldn't bring everything in memory when doing `dataset["audio"]` ? Currently it returns a list with all the decoded audio data in memory.
It would be a breaking change though, since `isinstance(dataset["audio"], list)` wouldn't work anymore, but we could implement a `Sequence` so that `dataset["audio"][0]` still works and only loads one item in memory.
Your alternative suggestion with `iterate` is also sensible, though maybe less satisfactory in terms of experience IMO | **Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.
Currently, `dataset["audio"]` will load EVERY element in the dataset in RAM, which can be quite big for an audio dataset.
Having an iterator (or sequence) type of object, would make inference with `transformers` 's `pipeline` easier to use and not so memory hungry.
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
For a non breaking change:
```python
for audio in dataset.iterate("audio"):
# {"array": np.array(...), "sampling_rate":...}
```
For a breaking change solution (not necessary), changing the type of `dataset["audio"]` to a sequence type so that
```python
pipe = pipeline(model="...")
for out in pipe(dataset["audio"]):
# {"text":....}
```
could work
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
```python
def iterate(dataset, key):
for item in dataset:
yield dataset[key]
for out in pipeline(iterate(dataset, "audio")):
# {"array": ...}
```
This works but requires the helper function which feels slightly clunky.
**Additional context**
Add any other context about the feature request here.
The context is actually to showcase better integration between `pipeline` and `datasets` in the Quicktour demo: https://github.com/huggingface/transformers/pull/16723/files
@lhoestq
| 111 | Add some iteration method on a dataset column (specific for inference)
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.
Currently, `dataset["audio"]` will load EVERY element in the dataset in RAM, which can be quite big for an audio dataset.
Having an iterator (or sequence) type of object, would make inference with `transformers` 's `pipeline` easier to use and not so memory hungry.
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
For a non breaking change:
```python
for audio in dataset.iterate("audio"):
# {"array": np.array(...), "sampling_rate":...}
```
For a breaking change solution (not necessary), changing the type of `dataset["audio"]` to a sequence type so that
```python
pipe = pipeline(model="...")
for out in pipe(dataset["audio"]):
# {"text":....}
```
could work
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
```python
def iterate(dataset, key):
for item in dataset:
yield dataset[key]
for out in pipeline(iterate(dataset, "audio")):
# {"array": ...}
```
This works but requires the helper function which feels slightly clunky.
**Additional context**
Add any other context about the feature request here.
The context is actually to showcase better integration between `pipeline` and `datasets` in the Quicktour demo: https://github.com/huggingface/transformers/pull/16723/files
@lhoestq
Thanks for the suggestion ! I agree it would be nice to have something directly in `datasets` to do something as simple as that
cc @albertvillanova @mariosasko @polinaeterna What do you think if we have something similar to pandas `Series` that wouldn't bring everything in memory when doing `dataset["audio"]` ? Currently it returns a list with all the decoded audio data in memory.
It would be a breaking change though, since `isinstance(dataset["audio"], list)` wouldn't work anymore, but we could implement a `Sequence` so that `dataset["audio"][0]` still works and only loads one item in memory.
Your alternative suggestion with `iterate` is also sensible, though maybe less satisfactory in terms of experience IMO | [
-0.3390596509,
-0.1144976988,
-0.1280233264,
0.0584006421,
0.2029085755,
-0.1514475197,
0.2577140331,
0.0180890877,
-0.0479570664,
0.3820746839,
-0.0605078973,
0.3480749428,
-0.2523988485,
0.0022309164,
0.1120157912,
-0.2644658983,
-0.0016953528,
0.2691255212,
-0.3120146692,
-0.0416513719,
-0.3345964849,
-0.1758761108,
-0.1102222949,
-0.226380378,
-0.0644244477,
-0.1214801446,
0.0020145499,
-0.2610603571,
-0.0103842914,
-0.4906817973,
-0.003868395,
0.4782453477,
0.3085935712,
0.3956212103,
-0.0001131342,
-0.2414789498,
0.3711282611,
-0.0198535677,
-0.2242666036,
-0.0155388545,
-0.4117678106,
-0.1688198596,
0.0684819594,
-0.3315963745,
0.0570798256,
-0.0748649165,
-0.0240744688,
-0.4507577121,
0.2422722578,
0.119540818,
0.1454604715,
0.1659613103,
-0.4092743099,
0.0088450266,
-0.0095903762,
0.2301694453,
-0.0667536706,
-0.3547062576,
0.4092803001,
-0.1022633687,
-0.1477689892,
0.4492574036,
0.0367987156,
0.1723285466,
0.1364211291,
0.0246913675,
-0.0368414037,
-0.3222109377,
-0.0018169915,
0.3410738707,
0.6236732006,
-0.1722974181,
-0.5368266106,
-0.3705505729,
-0.0642552078,
-0.2292980701,
-0.2263770252,
0.1746526659,
-0.3433800936,
0.1267607212,
-0.2537132204,
-0.0038789385,
-0.0569453873,
0.023829408,
0.0800317824,
0.1732365042,
0.0832690969,
0.0582326241,
0.1757552028,
-0.1752310693,
0.3076272011,
-0.1235298961,
0.0402011052,
0.3965964913,
-0.3817614913,
-0.4405406117,
0.2670993805,
-0.1926194578,
0.2634668946,
0.026894981,
-0.016674608,
0.0457262322,
-0.0105907675,
0.1324611753,
0.4811321199,
-0.2742970586,
-0.1623817831,
0.0094283195,
0.2900709212,
-0.0999376625,
0.2921896875,
-0.1749702245,
-0.0385978445,
0.1375531554,
0.3871160746,
-0.0181504209,
0.0518119447,
-0.0180835668,
0.1313890517,
-0.1828842908,
-0.0815199316,
-0.0692310631,
0.1716983318,
0.3872210085,
0.1183995008,
0.6708996892,
-0.1333233267,
0.0008913027,
0.115716815,
0.0732535049,
-0.052451998,
0.0357750133,
-0.0394147821,
0.2944668233,
0.0970665291,
0.4806837738,
0.0922232717,
-0.1702646911,
0.1900514066,
-0.0284812711,
0.1716222614,
-0.0631698221,
0.0845422223,
0.105808571,
-0.3132610917,
0.1576244831,
-0.2327564508,
0.1879137605,
-0.3647890091,
0.2273675799,
0.1564341635,
-0.3308054507,
0.0722739026,
0.0894846693,
-0.2772184312,
-0.0446125977,
-0.2398897707,
0.6547064185,
0.0113018416,
-0.1135699227,
0.0400624946,
0.0132730063,
-0.4495581388,
0.0281415731,
0.233038649,
0.3498313427,
-0.1387586892,
-0.332603097,
-0.3864555955,
0.0384177417,
-0.0286015775,
0.2427409291,
-0.2549130023,
0.301104933,
0.0076579489,
-0.0138850361,
0.4508484304,
-0.3331590593,
-0.2868222892,
0.0572103187,
0.0631868765,
0.2511323392,
0.2280466855,
0.3034186661,
0.1066066548,
-0.0992295817,
0.1472123712,
0.3897089362,
-0.218940556,
0.2570700943,
-0.0341624208,
-0.1764375716,
0.0801484659,
0.2189177722,
0.1544624269,
0.2656006217,
-0.2529813349,
0.1388958246,
0.2521291673,
-0.261007905,
0.0480160154,
0.092201747,
0.7260246277,
-0.2570961714,
-0.0282989144,
-0.7333392501,
-0.0708360374,
0.0886158124,
-0.0021892074,
0.2017979771,
-0.2342800647,
-0.1588570923,
0.0264648385,
0.2306062132,
0.1232594997,
-0.0139850015,
0.0951863229,
0.1851588935,
-0.0394471474,
-0.3192110062,
-0.1535910368,
0.2700565755,
0.0515209436,
-0.2207737416,
-0.2705669701,
0.2006325871,
0.2884028852,
0.0066513726,
0.0024237265,
0.159533307,
0.0124946302,
0.1225777343,
-0.0120262969,
0.1682534963,
0.2557172775,
0.1366001219,
0.04757623,
0.4964618981,
0.0526273474,
-0.1181493551,
0.0754115134,
-0.0466579795,
0.1898659021,
0.0496066324,
-0.1736810803,
0.4656039178,
0.032002788,
0.2809408903,
0.1244561225,
-0.0506808162,
0.4095709622,
0.036628779,
-0.447035253,
0.0604756288,
-0.0287068319,
0.1507403404,
0.1258542836,
0.1928442121,
-0.2570540607,
-0.1736706197,
0.4323655665,
-0.1738214195,
-0.0137177408,
0.1219026819,
-0.215708971,
-0.1490481198,
0.1968329698,
0.239124611,
0.3305314183,
0.2823485732,
0.0718057454,
-0.1015893444,
0.0980079845,
0.1454757005,
0.1874398738,
0.4286446273,
0.0577264316,
0.0270027779,
0.2774027288,
-0.1791076809,
-0.2738440931,
-0.4473190606,
0.0045825141,
0.2216076702,
0.0502701998,
0.0092657814,
0.0951153934,
-0.0329217948,
-0.1618287861,
-0.3017006814,
0.2193409801,
-0.0659392253,
0.1616448909,
0.2870337665,
-0.3329893649,
0.2938136458,
0.149120152,
0.6609231234,
0.2127607316,
-0.034498103,
-0.409717083,
-0.2508559227,
0.2282182872,
0.0496783443,
-0.0087085497,
0.00041828,
0.2061903328,
0.3434196115,
-0.0484506972,
-0.1221144721,
-0.1797278225,
-0.0274987463,
0.2392698824,
0.2345012128,
-0.0292120092,
0.1272593588,
0.3107128739,
-0.3780335188,
-0.0492210872,
-0.1639282554,
0.0866535529,
0.1243687868,
0.1875908077,
0.0221435707,
0.2378097028,
-0.1795296967,
-0.2937631905,
-0.5720624328,
0.3521679044,
-0.0426482819,
0.0490425937,
0.2707906365,
0.0844872519,
-0.1909045428,
0.1871233135,
0.1990258992,
-0.2067216486,
0.034982007,
0.3674417734,
-0.0107165808,
-0.0809972584,
-0.3821261823,
-0.4968473017,
-0.006263956,
0.3981200457,
-0.1702820659,
-0.1261216402,
-0.4054136574,
-0.0121532241,
0.0721006319,
0.0583208278,
0.2913908958,
0.1682533026,
-0.0388926044,
0.0788594037,
-0.1055478454,
-0.2337509394,
0.2526585162,
-0.0406828299,
0.0741219148,
0.5452192426,
0.0473874137,
0.3300744593,
0.2279716879,
-0.0332864411,
-0.0843474492,
0.0124567728,
-0.0429114923,
-0.0080069983,
-0.1826654375,
-0.2725408375,
-0.0877832845,
-0.4647707343,
0.2085485309,
-0.057976827,
-0.3656095266,
-0.109268263,
0.2370690256,
0.1898597926,
-0.3106140494,
0.2280298173,
-0.3797935545,
0.2091057897,
0.1025418863,
0.1136905402,
-0.4669243693,
0.0944941118,
-0.0404765531,
-0.2246766835,
0.1888280213,
-0.2637071311,
-0.5864586234,
0.0743834823,
-0.5048632026,
0.1200575754,
0.2634695768,
0.5512332916,
0.1662211269,
-0.1188534126,
-0.0725391954,
0.0744509399,
0.5397483706,
-0.2093842924,
-0.588062942,
-0.1642233878,
-0.3902619779,
-0.2538240254,
0.1190453097,
-0.4719868302,
-0.0681230277,
-0.0681989118,
0.1993151754,
-0.2591321766,
-0.2120578289,
0.2244044393,
0.1870064735,
-0.090641275,
-0.045887243,
0.0773409456,
-0.0400981456,
-0.2342962027,
0.1207027882,
0.2753639519,
0.0773318112,
0.0380651876,
-0.2471418679,
-0.0134608727,
0.0503623523,
0.3256225586,
0.1926655322,
0.0920494571,
0.1033612192,
0.2702220976,
-0.084998019,
-0.4662809074,
-0.0837722719,
-0.0102618178,
0.040342696,
-0.2832728922,
0.0238395464,
0.1490756273,
0.3028848171,
0.3303027451,
-0.0777783692,
0.3117808998,
0.1774186492,
0.2058465034,
-0.5833320022,
0.1568055153,
0.2393099219,
0.2718505561,
-0.2576013207,
-0.7175822258,
0.764092505,
0.0107010948,
-0.2721150815,
0.5923120975,
-0.127714619,
-0.2000086308,
0.495737195,
-0.0465569347,
0.8452891111,
-0.0315040573,
0.0079756929,
0.2256548107,
-0.1752052754,
0.3718660474,
-0.318508327,
0.2242990136,
0.0574778914,
-0.3484357297,
-0.022007985,
-0.0911614224,
-0.169049263,
0.3814906776,
-0.2008457631,
0.362359494,
0.3069829941,
0.0833941922,
0.2826399505,
0.1377472281,
-0.1436207294,
-0.4393772185,
-0.3225928247,
0.1106654778,
0.1127360761,
-0.115661554,
-0.0937459767,
-0.0010823371,
0.2098485529,
-0.0903715491,
-0.3936490715,
-0.1596294194,
-0.0196605362,
0.1951862425,
0.0487431102,
-0.1996595562,
0.1899899542,
0.1219278127,
-0.2027568221,
0.2668923438,
-0.1888320297,
0.2983443737,
-0.1118944809,
0.2388196737,
-0.1133937612,
0.2118709832,
0.2478106171,
0.1354635656,
-0.350034833,
0.0938562751,
0.0023530051,
-0.3467905521,
0.0097209224,
-0.0395782441,
0.3716440797,
-0.2111441493,
-0.308707267,
0.2792650461,
-0.388808012,
-0.2037078738,
0.1830631346,
0.1596890539,
-0.5223617554,
0.5580499172,
0.0570854992,
-0.100526318,
-0.0160414334,
0.1278982013,
0.1585980058,
0.0070501305,
0.3427701592,
-0.0989407226,
-0.2226407081,
-0.2198855132,
-0.0849599615,
0.0731331035,
-0.1480735391,
0.2484923452,
-0.092880778,
-0.3370957971,
-0.2666862309,
-0.1367557645,
0.0507187136,
0.0321116783,
-0.4012303352,
-0.0981311277,
-0.5013527274,
0.3235087097,
0.0854266211,
0.5921754241,
-0.0240145531,
-0.0036079362,
-0.4717042744,
0.2720594406,
-0.3449356556,
-0.354164958,
-0.4049751461,
0.2364751101,
0.0899083987,
-0.1281007528,
-0.0121078482,
-0.0321401209,
0.1054191813,
0.1367285699,
-0.2028485239,
-0.1800600439,
-0.0379607417,
0.1374999285,
0.0970757455,
-0.077579841,
0.109738037,
-0.1009666547,
-0.1372709423,
-0.4919316173,
0.0630054623,
0.1843580902,
-0.0648134276,
0.3748832941,
0.2845633924,
-0.2704682946,
-0.2650589645,
0.1929296702,
0.0894615129,
-0.2333239764,
0.0098895058,
0.4799516797,
0.0330752581,
-0.0772891194,
-0.3472979367,
0.3620972633,
0.2170358151,
-0.2543710172,
0.2253414989,
0.2324756235,
-0.0781837478,
0.1269075722,
0.3369843662,
0.3866875172,
0.0788715929,
0.1416016817,
0.0816579983,
0.2891381085,
-0.3132193983,
-0.0176738948,
-0.2679758072,
-0.1869659722,
0.4628661573,
0.2207983732,
-0.100889653,
0.0299423356,
0.4216602743,
-0.1313412935,
0.2882775664,
-0.276496768,
0.207706809,
0.3206091821,
0.2848245203,
-0.0821515471,
0.093280226,
0.2998172641,
0.2917724252,
0.3589929938,
-0.1513548493,
0.128162846,
-0.0479400307,
0.0137444809,
-0.03058194,
0.0328717865,
-0.0826918483,
0.2845663428,
0.1016520336,
0.1329359114,
0.235774219,
-0.0081819948,
0.0993390754,
0.1812099665,
-0.1637596339,
-0.0252797976,
0.1004235372,
-0.3280285299,
0.0687821656,
-0.0789479092,
-0.0929106995,
-0.1443407983,
0.2211410254,
-0.2101859003,
0.249404192,
0.0544063263,
0.3540586531,
-0.2154452503,
0.2854971886,
0.2183614224,
0.2262086421,
-0.426015228,
-0.091328986,
0.1638720334,
0.1456332803,
0.2054306865,
0.2544723451,
0.0965643972,
0.2507321239,
-0.0616613887,
0.4142817259,
-0.0864745304,
-0.2757769823,
-0.1073679179,
0.0920503587,
-0.0772200897,
0.3426998854,
0.0130161149,
0.1547438353,
-0.1355365217,
0.0069835819,
0.0666522309,
-0.1364341974,
-0.6438222528,
0.512245357,
0.1460494697,
-0.1700924039,
0.0557793491,
-0.1743097901,
-0.0916052833,
-0.0374883972,
0.1110529155,
-0.5791404843,
0.0386671983,
0.2715193927,
0.071239911,
-0.4069545269,
0.0660513118,
0.1478292197,
0.4200046062,
-0.1544578969,
-0.0690148026,
-0.2903457284,
-0.2959555089,
0.1362339556,
-0.053129781,
0.3118886054,
0.2121945024,
0.073909454,
0.3543092012,
-0.1937624663,
-0.2788048387,
-0.5271291733,
0.2997528911,
-0.3774671555,
-0.2259330451,
-0.047258921,
0.2707805336,
0.1212330163,
-0.3878915906,
-0.1672314703,
0.1567550451,
-0.0023296922,
-0.0585917532,
0.1140452623,
-0.0140967378,
0.1352113038,
0.0765942633,
0.0823560134,
0.3739210963,
-0.2153425813,
0.1742091775,
-0.1046314761,
-0.4923703372,
-0.3019275963,
-0.3698613942,
-0.0400152206,
0.39156124,
0.1124353781,
0.0340862572,
-0.1233167648,
0.0332405791,
-0.0152981589,
-0.1986250132,
-0.3166672289,
0.0789231211,
-0.2937158644,
0.2644634843,
-0.1871849447,
0.0994423553,
0.0269888882,
0.1497444808,
-0.1954187006,
-0.1340931952,
0.5051508546,
-0.1004683226,
-0.5012762547,
-0.189906016,
0.2047925293,
-0.0935971886,
-0.2221276462,
-0.5644005537,
-0.0703649074,
0.18461667,
-0.1463929713,
-0.1594742686,
0.291796118,
0.1567155868,
-0.0414113104,
-0.16065678,
0.4260799885,
0.0402210131,
-0.0108069982,
-0.2330661565,
-0.4965276122
] |
https://github.com/huggingface/datasets/issues/4180 | Add some iteration method on a dataset column (specific for inference) | I agree that current behavior (decoding all audio file sin the dataset when accessing `dataset["audio"]`) is not useful, IMHO. Indeed in our docs, we are constantly warning our collaborators not to do that.
Therefore I upvote for a "useful" behavior of `dataset["audio"]`. I don't think the breaking change is important in this case, as I guess no many people use it with its current behavior. Therefore, for me it seems reasonable to return a generator (instead of an in-memeory list) for "special" features, like Audio/Image.
@lhoestq on the other hand I don't understand your proposal about Pandas-like... | **Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.
Currently, `dataset["audio"]` will load EVERY element in the dataset in RAM, which can be quite big for an audio dataset.
Having an iterator (or sequence) type of object, would make inference with `transformers` 's `pipeline` easier to use and not so memory hungry.
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
For a non breaking change:
```python
for audio in dataset.iterate("audio"):
# {"array": np.array(...), "sampling_rate":...}
```
For a breaking change solution (not necessary), changing the type of `dataset["audio"]` to a sequence type so that
```python
pipe = pipeline(model="...")
for out in pipe(dataset["audio"]):
# {"text":....}
```
could work
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
```python
def iterate(dataset, key):
for item in dataset:
yield dataset[key]
for out in pipeline(iterate(dataset, "audio")):
# {"array": ...}
```
This works but requires the helper function which feels slightly clunky.
**Additional context**
Add any other context about the feature request here.
The context is actually to showcase better integration between `pipeline` and `datasets` in the Quicktour demo: https://github.com/huggingface/transformers/pull/16723/files
@lhoestq
| 97 | Add some iteration method on a dataset column (specific for inference)
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.
Currently, `dataset["audio"]` will load EVERY element in the dataset in RAM, which can be quite big for an audio dataset.
Having an iterator (or sequence) type of object, would make inference with `transformers` 's `pipeline` easier to use and not so memory hungry.
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
For a non breaking change:
```python
for audio in dataset.iterate("audio"):
# {"array": np.array(...), "sampling_rate":...}
```
For a breaking change solution (not necessary), changing the type of `dataset["audio"]` to a sequence type so that
```python
pipe = pipeline(model="...")
for out in pipe(dataset["audio"]):
# {"text":....}
```
could work
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
```python
def iterate(dataset, key):
for item in dataset:
yield dataset[key]
for out in pipeline(iterate(dataset, "audio")):
# {"array": ...}
```
This works but requires the helper function which feels slightly clunky.
**Additional context**
Add any other context about the feature request here.
The context is actually to showcase better integration between `pipeline` and `datasets` in the Quicktour demo: https://github.com/huggingface/transformers/pull/16723/files
@lhoestq
I agree that current behavior (decoding all audio file sin the dataset when accessing `dataset["audio"]`) is not useful, IMHO. Indeed in our docs, we are constantly warning our collaborators not to do that.
Therefore I upvote for a "useful" behavior of `dataset["audio"]`. I don't think the breaking change is important in this case, as I guess no many people use it with its current behavior. Therefore, for me it seems reasonable to return a generator (instead of an in-memeory list) for "special" features, like Audio/Image.
@lhoestq on the other hand I don't understand your proposal about Pandas-like... | [
-0.3283700943,
-0.1157748625,
-0.066133894,
0.0635911077,
0.1763314456,
-0.2033714354,
0.262514025,
-0.0213142615,
-0.0680218264,
0.4297318757,
-0.1349968314,
0.3932086825,
-0.2496891022,
0.0722303316,
0.0621931702,
-0.1902333796,
-0.0295237079,
0.3479429781,
-0.2762725949,
-0.0380197242,
-0.3512255549,
-0.0870272219,
-0.1976126134,
-0.162925303,
0.0677753091,
-0.0471077785,
0.0494960435,
-0.2480661124,
-0.0436917469,
-0.4995972514,
-0.0068887523,
0.493703723,
0.2363486141,
0.3197216392,
-0.0001144133,
-0.1308842301,
0.4510426819,
-0.08807607,
-0.2249670774,
-0.0574843101,
-0.3770772517,
-0.1385312229,
-0.0251059402,
-0.3377876878,
-0.0632251799,
-0.1025488675,
-0.0024486103,
-0.4165823162,
0.3021045923,
0.0959850997,
0.1315832585,
0.2564149797,
-0.3042984009,
0.1124101654,
0.0222905707,
0.1951911449,
-0.0952301547,
-0.3262318969,
0.3951757848,
0.0024390682,
-0.2243200094,
0.5238766074,
0.0545395426,
0.1935208738,
0.2101835757,
0.056022577,
-0.026684273,
-0.3684796095,
-0.0082216617,
0.35618788,
0.5565565228,
-0.1037579104,
-0.5703190565,
-0.3923051953,
-0.0852861702,
-0.3221710324,
-0.1488769352,
0.166924566,
-0.295345664,
0.2424831539,
-0.2382442802,
0.0149157112,
-0.163744837,
-0.0120165432,
0.0754417256,
0.1221163571,
-0.0704961792,
0.1210324913,
0.1869957447,
-0.1511503309,
0.1942496896,
-0.0583813228,
-0.0104561662,
0.3149231076,
-0.3510587811,
-0.5101612806,
0.2381152362,
-0.0412914529,
0.3254973888,
0.1332856566,
0.0129123311,
0.145375818,
0.029394621,
0.1570092142,
0.5040564537,
-0.3271257579,
-0.0969471559,
-0.0277032144,
0.3333684206,
-0.0437186658,
0.2889195383,
-0.1795058697,
-0.0232048482,
0.1056177244,
0.2909515202,
0.0547335185,
0.2008984238,
-0.0209462121,
0.2315288484,
-0.2451974899,
-0.0866440162,
-0.0602048561,
0.1913530082,
0.4449039996,
0.220521003,
0.6930986643,
-0.2808067799,
0.0716623738,
0.0056969281,
-0.1429763734,
-0.0146911722,
-0.0631441474,
-0.007319279,
0.2715240419,
0.0613856167,
0.4457434416,
0.0415785648,
-0.1466708183,
0.1092876121,
-0.1373491138,
0.1581570655,
-0.10503795,
0.1365803927,
0.091535151,
-0.2540829182,
0.1619348377,
-0.2531239092,
0.0839482397,
-0.3491514623,
0.1612033844,
0.0088653453,
-0.3415486515,
0.0610808954,
0.059536919,
-0.2715612352,
-0.0373345092,
-0.1891705841,
0.6494181156,
-0.0132481102,
-0.2054612637,
-0.0200593565,
-0.0003412309,
-0.4717012346,
-0.0043392903,
0.1966561377,
0.317578882,
-0.0156921558,
-0.2991785407,
-0.2535421848,
-0.0242610611,
0.0852251351,
0.2370954454,
-0.3338465095,
0.2297376841,
-0.0471134894,
0.055014044,
0.5335552096,
-0.3856252432,
-0.3488175869,
0.1352097094,
0.0562222265,
0.2882463038,
0.231005922,
0.1902050674,
0.1582320631,
-0.1950440258,
0.0782515854,
0.4651807547,
-0.2099652439,
0.2997127473,
-0.0362346694,
-0.1305215359,
0.0360521711,
0.1955833286,
0.0165052842,
0.2638228536,
-0.2735481262,
0.0755522847,
0.3387091458,
-0.3194026947,
0.0538795926,
0.0822610855,
0.7110109329,
-0.2831661999,
0.0587357879,
-0.6127216816,
-0.1324221343,
0.0855963528,
-0.039968621,
0.1148969606,
-0.337682873,
-0.2074203491,
0.0495865867,
0.2344289571,
-0.0556746274,
-0.0573429689,
0.0921444744,
0.3038827181,
-0.0602162369,
-0.3239993453,
-0.2146559358,
0.1733159274,
0.1013538241,
-0.1064543277,
-0.3398155868,
0.1484221816,
0.2690027654,
0.0993822515,
-0.0502022691,
0.0998887792,
0.053207241,
-0.078939572,
-0.021701837,
0.2643861175,
0.3128948808,
0.1969082952,
-0.0798943713,
0.4478596151,
0.0647812635,
-0.1938000768,
0.0522459932,
-0.077574499,
0.1871592849,
0.1241445094,
-0.1125260517,
0.5307098031,
-0.0450609326,
0.3076402843,
0.1234886199,
-0.0560423993,
0.4256024361,
-0.0599973015,
-0.5982390046,
0.0264876373,
-0.0326556787,
0.0102325203,
0.0610430129,
0.1366251856,
-0.170636937,
-0.1452960372,
0.5767083764,
-0.2073015124,
-0.1292380393,
0.1689098477,
-0.1933744252,
-0.1757427901,
0.1055697501,
0.340867877,
0.3037136197,
0.2309384793,
0.1704220921,
-0.1153543442,
0.1112812757,
0.1395537853,
0.1813712865,
0.397046268,
0.0458454899,
0.1947042644,
0.2987765968,
-0.1842666268,
-0.2718327641,
-0.5085833669,
0.0792801827,
0.1760646254,
0.0424522944,
0.0964017436,
0.0710100532,
-0.0491234437,
-0.2838378847,
-0.324924171,
0.331679076,
-0.090923503,
0.1011275202,
0.3201775849,
-0.3962029815,
0.2947903275,
0.2464876026,
0.5954880118,
0.1958298832,
0.0625443459,
-0.3850987554,
-0.166432336,
0.2367355675,
-0.0017719525,
0.0133618517,
-0.0855884105,
0.0935555026,
0.2374011129,
-0.0820073336,
-0.1067166775,
-0.2284880131,
0.1142549217,
0.2211876363,
0.2239207923,
-0.008183917,
0.1214058921,
0.4304506481,
-0.3942449093,
0.0874376595,
-0.1892298311,
0.1176707894,
0.2033644021,
0.1809387654,
0.009620226,
0.1323645562,
-0.1577744335,
-0.2535355091,
-0.574732244,
0.3724654913,
-0.0983049348,
0.072159633,
0.3502853215,
-0.0458394215,
-0.1494053304,
0.1642213911,
0.231672734,
-0.1926558614,
-0.0109329736,
0.3262144327,
-0.0964977294,
-0.1245074347,
-0.3757252693,
-0.479601562,
-0.0296825804,
0.394882381,
-0.1712654233,
-0.2141893059,
-0.3411490321,
-0.0289279521,
-0.0275489967,
-0.0287267659,
0.1773874611,
0.1785372943,
0.0007223463,
0.0142734414,
-0.0656148419,
-0.1539466083,
0.2514148653,
0.0199307147,
0.1092236042,
0.5140145421,
0.1176332608,
0.3462346494,
0.3257789612,
-0.0340069532,
-0.1289523691,
0.0111781079,
-0.0070068366,
-0.00178958,
-0.1487547904,
-0.2200095803,
-0.1251406521,
-0.4419404268,
0.261536777,
-0.0399878658,
-0.3685989082,
-0.1313493252,
0.182385847,
0.171197325,
-0.4426695704,
0.2470380664,
-0.1970146298,
0.1635976732,
0.0961546749,
0.2138698101,
-0.327716887,
0.1786863357,
-0.0412291735,
-0.0962385014,
0.2761828005,
-0.2513281107,
-0.5051481724,
0.004242877,
-0.5402149558,
0.1237179413,
0.2070704699,
0.5770025253,
0.2512406111,
-0.1719832718,
-0.0307474248,
-0.0611452349,
0.4662525058,
-0.2390054017,
-0.4255924523,
-0.2029683143,
-0.2519310713,
-0.1999260485,
0.1318002343,
-0.4492746592,
-0.0486785993,
0.0298425704,
0.2485931814,
-0.3577440977,
-0.2560144067,
0.2495300323,
0.1851391643,
-0.0286145639,
-0.0061778482,
0.0674801022,
-0.0984365195,
-0.2887627482,
0.0735250488,
0.2335083932,
0.0487678498,
0.0568060279,
-0.2467919588,
0.039844308,
0.0472046398,
0.2839594185,
0.233810395,
0.1050266102,
0.0719163567,
0.2160782963,
-0.0365861058,
-0.3813572228,
-0.1296849102,
0.1445548385,
0.1019445956,
-0.4094520211,
0.0371447019,
0.1268276274,
0.2811870873,
0.3792956769,
-0.1249342412,
0.357583046,
0.2093545943,
0.2145415694,
-0.6158233881,
0.2191987485,
0.2976964712,
0.2792854905,
-0.3299922943,
-0.6070320606,
0.7433087826,
-0.0749848858,
-0.2483029217,
0.5726333857,
-0.0586783849,
-0.1235635951,
0.6281514168,
-0.1955729127,
0.8510712385,
0.0924774557,
-0.0909190103,
0.2365982533,
-0.2633470595,
0.3728547692,
-0.445828259,
0.2091533542,
0.0786084384,
-0.341553092,
-0.048671063,
-0.0944638252,
-0.0936366022,
0.2995489836,
-0.2384402305,
0.3738093078,
0.3667948842,
0.0832969919,
0.178718105,
0.1727620363,
-0.1409785897,
-0.4862532616,
-0.2984977961,
0.0667637289,
0.0382932015,
0.0320939682,
0.0024517477,
-0.1380215734,
0.2848774493,
-0.1562992036,
-0.3749956787,
-0.1281134039,
-0.0360756852,
0.1216973439,
0.0815328136,
-0.2921002209,
0.241749689,
0.0787588358,
-0.2320596129,
0.2612196505,
-0.2199896276,
0.3054899573,
-0.0870947912,
0.2622900009,
-0.1536462307,
0.1984744519,
0.1696084738,
0.1225543618,
-0.2785393894,
0.019148862,
0.0312663354,
-0.2628192008,
0.099131681,
-0.0265399572,
0.4156544805,
-0.2511031926,
-0.2423021048,
0.2994139493,
-0.4288173318,
-0.2108273804,
0.1510793418,
0.0722817108,
-0.588660717,
0.4760023654,
0.0061970442,
-0.1285218596,
0.021916274,
0.0819322988,
0.1083448157,
0.0060206037,
0.3298739195,
-0.1695311368,
-0.183166042,
-0.167948544,
-0.0114888372,
-0.0001329449,
-0.2400175184,
0.1666615903,
-0.0333741084,
-0.2275711596,
-0.1866114736,
-0.1241137981,
-0.0039279787,
0.0257691685,
-0.4717863798,
-0.1507303864,
-0.4190967679,
0.2816140652,
0.06199947,
0.4813270271,
0.0153047163,
0.1555191278,
-0.5335675478,
0.3446386456,
-0.3272121847,
-0.2984316647,
-0.3473512232,
0.2458547205,
0.1470417678,
-0.1851260513,
-0.0009146744,
0.0306864288,
0.0920075178,
0.237098068,
-0.2597628832,
-0.1055206507,
-0.0803695098,
0.1403610706,
0.0570984408,
-0.042528417,
0.0600605682,
-0.0536023639,
-0.1676103175,
-0.4969275594,
0.1176027954,
0.0567714721,
-0.0245322268,
0.3621562421,
0.1599018127,
-0.2153572291,
-0.3025725782,
0.0931663737,
0.1422472745,
-0.1785813272,
-0.0555690676,
0.4453730881,
-0.141614154,
-0.0522364751,
-0.4371578693,
0.2973416746,
0.2793166637,
-0.2806377113,
0.3335638344,
0.1881117672,
0.0327514298,
0.084984608,
0.4096337557,
0.4366716146,
0.0388349034,
0.130169034,
0.0765522942,
0.2707206011,
-0.2803814113,
0.0294661112,
-0.2121762931,
-0.2298275381,
0.464815408,
0.22487396,
-0.1166006476,
0.0562837794,
0.4868406355,
-0.1579829901,
0.3283679783,
-0.268789202,
0.2082225233,
0.3645127118,
0.1823622584,
-0.0511481836,
0.1002176926,
0.2687956393,
0.3575029373,
0.3939862847,
-0.2501820326,
0.0688030645,
-0.072686322,
0.083672978,
-0.0419967771,
-0.0637130365,
-0.1011294276,
0.3263248503,
0.1448019296,
0.162442863,
0.2577087879,
0.0587029494,
0.0026341334,
0.1664165556,
-0.1941330284,
0.0843578801,
0.1526997387,
-0.3718658686,
0.1031382754,
-0.0440686792,
-0.0712645054,
-0.1415284872,
0.1882610768,
-0.0778157786,
0.0983175784,
0.1156575233,
0.4365068376,
-0.2301701158,
0.1817712784,
0.094853729,
0.342589736,
-0.444988519,
0.1106400788,
0.2514397502,
0.1804763228,
0.27748245,
0.1033947766,
0.1186436415,
0.1521984637,
-0.029497847,
0.3977912068,
-0.2014049888,
-0.2507982254,
-0.1160628498,
0.1112013757,
-0.0196667723,
0.261217773,
0.1838036925,
0.0973883495,
-0.1235173568,
0.003829875,
0.0031521337,
-0.1094832495,
-0.5918782949,
0.5352463722,
0.0926404148,
-0.0948635265,
-0.0318876132,
-0.321498543,
-0.1416036785,
-0.0943816826,
-0.0090057123,
-0.4637098908,
0.0790746137,
0.2472426146,
0.066634424,
-0.344299078,
0.0287704635,
0.1141483188,
0.3454395831,
-0.1285880208,
-0.0694499016,
-0.3331280053,
-0.2535042167,
0.1977410913,
-0.0888769403,
0.3516142964,
0.2812186778,
0.1650288552,
0.3706557453,
-0.2231814116,
-0.3201159835,
-0.3677184582,
0.3229976892,
-0.3759120405,
-0.2053359747,
-0.0295879897,
0.1965700537,
0.1197954044,
-0.4318404198,
-0.133154273,
0.2552647293,
-0.0411734246,
-0.0140102971,
0.1551231742,
-0.0141454553,
-0.015736293,
0.0123351095,
0.1108531132,
0.372838974,
-0.2449506521,
0.0999791399,
-0.126039952,
-0.4732056558,
-0.3955224454,
-0.3725549877,
-0.0013915299,
0.4320277572,
0.1652821898,
0.0481476188,
-0.1707492322,
-0.0312936567,
0.0039164037,
-0.1724456847,
-0.3452588618,
0.1644229293,
-0.260173887,
0.2083044648,
-0.1406569034,
0.1503220499,
0.0781410038,
0.1396494657,
-0.245381102,
-0.2112639695,
0.6495831013,
-0.0899973661,
-0.4957490265,
0.0191895496,
0.2924522161,
-0.1048926637,
-0.1739152521,
-0.641199708,
-0.0164795872,
0.1399115324,
-0.176513046,
-0.2129724771,
0.3572188318,
0.2074923664,
-0.0913876891,
-0.1469812393,
0.4982276857,
0.1879993528,
-0.1113180816,
-0.2218815833,
-0.4020947814
] |
https://github.com/huggingface/datasets/issues/4180 | Add some iteration method on a dataset column (specific for inference) | I recall I had the same idea while working on the `Image` feature, so I agree implementing something similar to `pd.Series` that lazily brings elements in memory would be beneficial. | **Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.
Currently, `dataset["audio"]` will load EVERY element in the dataset in RAM, which can be quite big for an audio dataset.
Having an iterator (or sequence) type of object, would make inference with `transformers` 's `pipeline` easier to use and not so memory hungry.
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
For a non breaking change:
```python
for audio in dataset.iterate("audio"):
# {"array": np.array(...), "sampling_rate":...}
```
For a breaking change solution (not necessary), changing the type of `dataset["audio"]` to a sequence type so that
```python
pipe = pipeline(model="...")
for out in pipe(dataset["audio"]):
# {"text":....}
```
could work
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
```python
def iterate(dataset, key):
for item in dataset:
yield dataset[key]
for out in pipeline(iterate(dataset, "audio")):
# {"array": ...}
```
This works but requires the helper function which feels slightly clunky.
**Additional context**
Add any other context about the feature request here.
The context is actually to showcase better integration between `pipeline` and `datasets` in the Quicktour demo: https://github.com/huggingface/transformers/pull/16723/files
@lhoestq
| 30 | Add some iteration method on a dataset column (specific for inference)
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.
Currently, `dataset["audio"]` will load EVERY element in the dataset in RAM, which can be quite big for an audio dataset.
Having an iterator (or sequence) type of object, would make inference with `transformers` 's `pipeline` easier to use and not so memory hungry.
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
For a non breaking change:
```python
for audio in dataset.iterate("audio"):
# {"array": np.array(...), "sampling_rate":...}
```
For a breaking change solution (not necessary), changing the type of `dataset["audio"]` to a sequence type so that
```python
pipe = pipeline(model="...")
for out in pipe(dataset["audio"]):
# {"text":....}
```
could work
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
```python
def iterate(dataset, key):
for item in dataset:
yield dataset[key]
for out in pipeline(iterate(dataset, "audio")):
# {"array": ...}
```
This works but requires the helper function which feels slightly clunky.
**Additional context**
Add any other context about the feature request here.
The context is actually to showcase better integration between `pipeline` and `datasets` in the Quicktour demo: https://github.com/huggingface/transformers/pull/16723/files
@lhoestq
I recall I had the same idea while working on the `Image` feature, so I agree implementing something similar to `pd.Series` that lazily brings elements in memory would be beneficial. | [
-0.3346259296,
-0.1992710233,
-0.1157855019,
0.0421663523,
0.1764318496,
-0.1835933924,
0.2358644754,
0.0146749625,
-0.0409148298,
0.4126093388,
-0.050591588,
0.3249539733,
-0.2580443621,
0.0624595471,
0.0825331062,
-0.2795501947,
-0.0373106264,
0.3498583138,
-0.2074298859,
-0.0643129349,
-0.3157365322,
-0.1665685922,
-0.1529429406,
-0.2492906451,
-0.0139519414,
-0.1249364093,
0.0016733744,
-0.1900031567,
-0.0494470298,
-0.4472887218,
-0.1190738752,
0.5251890421,
0.213302955,
0.2920207381,
-0.0001102498,
-0.2230625451,
0.3550608158,
-0.0756667033,
-0.1150641218,
0.026545871,
-0.2674681544,
-0.2494775057,
-0.0036529477,
-0.3981912732,
-0.0450465158,
-0.0753983036,
-0.0221945941,
-0.3230271339,
0.2788726091,
0.1052910089,
0.1740969867,
0.2836745381,
-0.3407359123,
-0.0042058895,
0.0075705121,
0.2514480948,
-0.0701653585,
-0.3905028403,
0.348105669,
-0.1365265697,
-0.1689211726,
0.519918263,
0.0440154038,
0.1986629367,
0.2538143396,
0.0636408478,
-0.0506078713,
-0.3182903528,
-0.0180720352,
0.327532649,
0.5454249382,
-0.089943938,
-0.4981807768,
-0.3838486671,
-0.0821962208,
-0.2203704864,
-0.2175782472,
0.1499611586,
-0.3775166273,
0.1080503911,
-0.2727751136,
0.0424474478,
-0.0574988723,
-0.0160446353,
0.0497681834,
0.1415867358,
0.1107518673,
0.0774556473,
0.2236508578,
-0.2173821777,
0.2366735935,
-0.0359742753,
0.0916893184,
0.4191618264,
-0.2279022634,
-0.4358989298,
0.2908621132,
-0.1826109588,
0.3361116946,
0.053481549,
0.0440247878,
0.0648003817,
-0.0096972054,
0.1494256258,
0.4352127612,
-0.2518917322,
-0.2119423896,
0.0034461215,
0.3012964427,
-0.0351191126,
0.2278972417,
-0.1620261371,
-0.0141183604,
0.0881099552,
0.4141578078,
-0.0615898557,
0.0750135854,
-0.0082727997,
0.2215221226,
-0.2670054138,
0.0224099532,
0.0502541512,
0.166470319,
0.4827970266,
0.1471408606,
0.6775833964,
-0.1023358554,
-0.0411203392,
0.0133888358,
0.020944681,
-0.0670763776,
-0.0295126699,
-0.0607681647,
0.2823957801,
0.0274524409,
0.5372593999,
0.1229815409,
-0.1968930662,
0.1606436521,
-0.0988316461,
0.1593012214,
-0.0658849701,
0.1441118121,
0.0838008076,
-0.3007495701,
0.1156156883,
-0.2311343402,
0.1541621983,
-0.3821615577,
0.207525745,
0.09230946,
-0.252612263,
0.0311704148,
0.1031523272,
-0.2070851177,
-0.0185394958,
-0.1507994682,
0.6554419994,
0.020126462,
-0.1868986934,
-0.0441214889,
-0.0045544459,
-0.4868122935,
-0.0197318718,
0.2618902922,
0.4375228584,
0.0105884233,
-0.3572842777,
-0.2702821195,
0.0544706881,
-0.0078555048,
0.2559513748,
-0.2612192631,
0.2391236871,
-0.0097458139,
0.0238198973,
0.4364874363,
-0.3506537974,
-0.2560603321,
-0.0136576416,
0.0863301232,
0.2137043327,
0.165327549,
0.2811076343,
0.0967749134,
-0.0486285798,
0.1446302086,
0.4392184913,
-0.2289377451,
0.3147449791,
-0.0681057051,
-0.1766603589,
0.0733539686,
0.2201517522,
0.1282998919,
0.2693291008,
-0.2688760459,
0.1051120833,
0.2663039565,
-0.2750327885,
0.0720101446,
0.1375427991,
0.7414752245,
-0.2864118814,
-0.0314135849,
-0.6547664404,
-0.0912038907,
0.1405681968,
-0.0530664548,
0.1910926551,
-0.2742345035,
-0.1356649697,
-0.0154640628,
0.2299826592,
0.1509105563,
-0.047489915,
0.1228132844,
0.2342610657,
-0.0360468253,
-0.3132930398,
-0.1075454578,
0.2322915047,
0.1060981154,
-0.1577747613,
-0.3499352038,
0.1754824221,
0.2594153881,
-0.0092190569,
-0.040945299,
0.0912038535,
0.0718213618,
0.0951123461,
0.0118972864,
0.201540783,
0.2960795164,
0.1293777972,
-0.0045102267,
0.4247671962,
0.067571573,
-0.135713011,
0.1159544215,
-0.0758335143,
0.2097938061,
0.0949382856,
-0.1809779555,
0.528113246,
-0.0186292976,
0.1833360642,
0.1280841082,
-0.036337465,
0.4658221304,
-0.0185096692,
-0.4297449589,
0.0329384543,
-0.0479540825,
0.1772798151,
0.1213890165,
0.1869717687,
-0.2162540406,
-0.1406778842,
0.4319916964,
-0.1602050066,
-0.056653142,
0.1477931887,
-0.1596124172,
-0.1664851457,
0.1434141845,
0.2051568031,
0.2851052284,
0.2858915627,
0.0989000797,
-0.1269769669,
0.0427224264,
0.1813602,
0.144058913,
0.3459903598,
0.0456041992,
0.0623717159,
0.352058202,
-0.2077786475,
-0.2632819414,
-0.4150790274,
0.0176317189,
0.1914270818,
0.0819348097,
0.0042579151,
0.1517338604,
0.0008242202,
-0.2154145092,
-0.2350222021,
0.1946096569,
-0.0007780137,
0.1619462669,
0.2937150896,
-0.404014051,
0.289927125,
0.1613240987,
0.6645101309,
0.2617794573,
-0.0307994653,
-0.4143390656,
-0.1750021875,
0.2711836994,
0.0442680046,
-0.0537374951,
0.0905103385,
0.1905547082,
0.2872865796,
-0.021186661,
-0.1106299907,
-0.2191035599,
0.0336587988,
0.2293479443,
0.2604917884,
0.0242564175,
0.0993438065,
0.3840410113,
-0.2914535999,
0.0560758226,
-0.2952910066,
0.0478787124,
0.1282919794,
0.2164666355,
-0.0144658303,
0.1927481294,
-0.1166690215,
-0.2966510952,
-0.5842859745,
0.322537452,
0.0338289626,
0.0540610403,
0.2988530099,
0.1241594255,
-0.1701336503,
0.2168260962,
0.1930814683,
-0.1658423096,
0.0704450235,
0.3046283424,
-0.0639123321,
-0.1033648774,
-0.4194156826,
-0.510668993,
-0.0838803425,
0.4046468735,
-0.1490709484,
-0.2620312274,
-0.3810947239,
0.0254039746,
-0.0135832066,
-0.018869916,
0.2563762367,
0.1679789424,
-0.081797801,
0.0374335423,
-0.1157115474,
-0.1257681102,
0.3184211552,
0.0024672574,
0.0319584273,
0.4250027537,
0.0280127618,
0.2975051105,
0.2025951594,
-0.0792527497,
-0.040524289,
0.0173799619,
-0.0405745693,
-0.0271892007,
-0.1317293197,
-0.308570981,
-0.0695632398,
-0.4534378648,
0.2135714889,
-0.0637990832,
-0.3961114287,
-0.121063605,
0.2091121823,
0.178854689,
-0.3341308534,
0.2553144991,
-0.2144756764,
0.2229365408,
0.055575233,
0.1321929395,
-0.5075244308,
0.1063543186,
-0.1106332988,
-0.2368401736,
0.2278476804,
-0.2639245987,
-0.5100923181,
0.1562198251,
-0.5494324565,
0.1193319336,
0.2734313905,
0.4742276669,
0.1754679978,
-0.2103713155,
-0.0822051242,
0.0001027221,
0.5120524764,
-0.1891225874,
-0.5004538894,
-0.1238662153,
-0.3423044682,
-0.2354603112,
0.1223796755,
-0.4366699755,
-0.1847443432,
-0.0681485459,
0.2728197873,
-0.3090016544,
-0.1985867769,
0.2064794898,
0.142693311,
-0.0974009931,
0.071226269,
0.0237413477,
-0.1618566364,
-0.2283237576,
0.1545688957,
0.291667819,
0.0784921497,
0.1012636721,
-0.2143832296,
-0.0113722337,
0.0616807565,
0.1906102449,
0.2540652156,
0.1910504997,
0.0417275652,
0.2605301142,
-0.0497466028,
-0.3730933964,
-0.1367510557,
0.0394129269,
-0.0015539528,
-0.3055732846,
-0.0018913478,
0.2067952305,
0.2477020323,
0.373477906,
-0.011257533,
0.330123812,
0.1588180661,
0.2527165115,
-0.5905290246,
0.2101476341,
0.2365325242,
0.2310273796,
-0.1944820285,
-0.6113839149,
0.7188274264,
-0.0917893946,
-0.2527453601,
0.48906973,
-0.1853948087,
-0.1935077161,
0.6062964201,
-0.0148680853,
0.8828633428,
-0.0867263973,
0.0058235032,
0.1711130142,
-0.2258944064,
0.3451281786,
-0.3428803086,
0.2080043107,
0.0200864933,
-0.3713205755,
0.0217157993,
-0.0566218309,
-0.1849727333,
0.309951216,
-0.2699898183,
0.3051996827,
0.3260367215,
0.0877560228,
0.1997626871,
0.1050029173,
-0.0869865641,
-0.500982821,
-0.3723564446,
0.1321064085,
0.0748437345,
-0.073927477,
-0.042770166,
-0.063285999,
0.2457330376,
-0.1423473209,
-0.2979190648,
-0.1628967822,
-0.089745678,
0.2022022158,
0.0855926424,
-0.1729651093,
0.0469467975,
0.132679522,
-0.2798116505,
0.2658363879,
-0.1912923455,
0.3382672071,
-0.0414142571,
0.1840182096,
-0.1621278077,
0.2049332708,
0.2719359696,
0.1404212564,
-0.2996372581,
0.0319885239,
-0.0254744012,
-0.3251000643,
0.0185029209,
-0.0261287931,
0.3369712234,
-0.211364001,
-0.2658414245,
0.266730845,
-0.3896093369,
-0.2045135647,
0.1947951168,
0.150662303,
-0.5146874189,
0.4929910004,
0.1292895526,
-0.1182305068,
0.0370402597,
0.1460368037,
0.1359473914,
-0.0020193604,
0.275610894,
-0.1545450538,
-0.1705494821,
-0.2164310664,
-0.0395347811,
0.026994722,
-0.1918174624,
0.2995747328,
-0.0672994852,
-0.3496973813,
-0.1762745231,
-0.0830228627,
0.0701134875,
-0.0485933311,
-0.4441616833,
-0.0248270687,
-0.5134680867,
0.3212361932,
0.1194727272,
0.6079105735,
-0.0099825813,
0.0447567366,
-0.451770097,
0.3310505152,
-0.3748892248,
-0.3452420235,
-0.4743940532,
0.2451749891,
0.0802787617,
-0.1957122386,
-0.058659099,
0.0084016286,
0.13370426,
0.2352936417,
-0.2486254275,
-0.1741089374,
-0.0651118383,
0.118287079,
0.0360093005,
-0.0717080683,
0.0628932789,
-0.0614916347,
-0.1440988481,
-0.4940544665,
0.1090641096,
0.1032992527,
-0.0760481283,
0.2900036573,
0.1542781591,
-0.2294989973,
-0.2461016029,
0.1747848243,
0.116895996,
-0.2818336487,
-0.0032256895,
0.4700897634,
-0.1030496806,
-0.0511660315,
-0.26122877,
0.3161714971,
0.2760931253,
-0.2906489074,
0.2122549713,
0.2728796005,
-0.0860844776,
0.0810730755,
0.4002797008,
0.3208417594,
0.0295979418,
0.189346239,
0.1021787897,
0.3311373591,
-0.3754897118,
-0.0040969821,
-0.2685694396,
-0.2228152305,
0.4926429093,
0.2583014071,
-0.1137907207,
0.0628234893,
0.3899331987,
-0.1374002695,
0.2662012577,
-0.2789162695,
0.0844843313,
0.3086535633,
0.2445920855,
-0.0784437209,
0.1250753701,
0.2886706591,
0.4079493582,
0.3796156943,
-0.1252787113,
0.13533324,
-0.1704226583,
0.0831250176,
-0.0687015578,
-0.0080839135,
-0.0924329683,
0.3001592755,
0.1573204994,
0.2583169639,
0.1835724562,
0.0259369556,
0.0148216281,
0.0841743946,
-0.2475878,
0.0853102133,
0.0925287306,
-0.3849629462,
0.1694301367,
-0.0941413715,
-0.1832534671,
-0.1233911142,
0.2439848185,
-0.1441460699,
0.184255749,
0.0614963099,
0.3540454507,
-0.1758976132,
0.2119362056,
0.1436466277,
0.3012712598,
-0.4824073911,
-0.0316855647,
0.1731374264,
0.1241590902,
0.1908147931,
0.1798109114,
0.081253618,
0.2457250506,
-0.0804824606,
0.384296149,
-0.1056435257,
-0.2157433033,
-0.1567650735,
0.0905437395,
0.0050648786,
0.342790097,
0.0723406374,
0.1471032649,
-0.1836152524,
-0.0282693487,
-0.0263078157,
-0.0909762233,
-0.6011706591,
0.4872507453,
0.1274106205,
-0.1365027279,
-0.0509868786,
-0.2421174198,
-0.0973523259,
-0.0377366096,
-0.0141902622,
-0.5556024909,
0.0798391327,
0.3295404017,
0.0852070674,
-0.3808897734,
0.1427079588,
0.0889875069,
0.3669524789,
-0.1486237645,
-0.082201615,
-0.3320164084,
-0.2580243945,
0.1450219452,
-0.1045860425,
0.3313680589,
0.260625422,
0.0940573812,
0.2813236415,
-0.1893422455,
-0.2597039342,
-0.4213194847,
0.2687312663,
-0.3729066551,
-0.2469671816,
-0.1234288588,
0.2092180997,
0.1929340959,
-0.4500698447,
-0.157044515,
0.1821366102,
0.0368632786,
-0.0068258918,
0.1087522358,
0.0060964557,
0.1359048337,
0.1027802229,
0.0446195863,
0.3537760675,
-0.2218356878,
0.1460577995,
-0.1288378388,
-0.5139631033,
-0.3453104794,
-0.4582434893,
0.0038513839,
0.3799412549,
0.1819121391,
0.0892639309,
-0.1571885943,
0.0483316891,
0.0788461119,
-0.1995647848,
-0.2806377709,
0.0779507607,
-0.2497571856,
0.1834812164,
-0.1603069901,
0.15281789,
0.0024546648,
0.0710856244,
-0.2306084186,
-0.182835713,
0.5970678329,
0.0047664093,
-0.4650294483,
-0.0903194472,
0.1998676807,
-0.1085996702,
-0.1990713626,
-0.679659903,
-0.0784535632,
0.0925651565,
-0.0910968632,
-0.2390569299,
0.3441617191,
0.1402650774,
-0.1234709397,
-0.1765097082,
0.4803543389,
0.0661330447,
0.0162148289,
-0.2468928546,
-0.3924193382
] |
https://github.com/huggingface/datasets/issues/4180 | Add some iteration method on a dataset column (specific for inference) | @lhoestq @mariosasko Could you please give a link to that new feature of `pandas.Series`? As far as I remember since I worked with pandas for more than 6 years, there was no lazy in-memory feature; it was everything in-memory; that was the reason why other frameworks were created, like Vaex or Dask, e.g. | **Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.
Currently, `dataset["audio"]` will load EVERY element in the dataset in RAM, which can be quite big for an audio dataset.
Having an iterator (or sequence) type of object, would make inference with `transformers` 's `pipeline` easier to use and not so memory hungry.
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
For a non breaking change:
```python
for audio in dataset.iterate("audio"):
# {"array": np.array(...), "sampling_rate":...}
```
For a breaking change solution (not necessary), changing the type of `dataset["audio"]` to a sequence type so that
```python
pipe = pipeline(model="...")
for out in pipe(dataset["audio"]):
# {"text":....}
```
could work
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
```python
def iterate(dataset, key):
for item in dataset:
yield dataset[key]
for out in pipeline(iterate(dataset, "audio")):
# {"array": ...}
```
This works but requires the helper function which feels slightly clunky.
**Additional context**
Add any other context about the feature request here.
The context is actually to showcase better integration between `pipeline` and `datasets` in the Quicktour demo: https://github.com/huggingface/transformers/pull/16723/files
@lhoestq
| 53 | Add some iteration method on a dataset column (specific for inference)
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.
Currently, `dataset["audio"]` will load EVERY element in the dataset in RAM, which can be quite big for an audio dataset.
Having an iterator (or sequence) type of object, would make inference with `transformers` 's `pipeline` easier to use and not so memory hungry.
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
For a non breaking change:
```python
for audio in dataset.iterate("audio"):
# {"array": np.array(...), "sampling_rate":...}
```
For a breaking change solution (not necessary), changing the type of `dataset["audio"]` to a sequence type so that
```python
pipe = pipeline(model="...")
for out in pipe(dataset["audio"]):
# {"text":....}
```
could work
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
```python
def iterate(dataset, key):
for item in dataset:
yield dataset[key]
for out in pipeline(iterate(dataset, "audio")):
# {"array": ...}
```
This works but requires the helper function which feels slightly clunky.
**Additional context**
Add any other context about the feature request here.
The context is actually to showcase better integration between `pipeline` and `datasets` in the Quicktour demo: https://github.com/huggingface/transformers/pull/16723/files
@lhoestq
@lhoestq @mariosasko Could you please give a link to that new feature of `pandas.Series`? As far as I remember since I worked with pandas for more than 6 years, there was no lazy in-memory feature; it was everything in-memory; that was the reason why other frameworks were created, like Vaex or Dask, e.g. | [
-0.3586827517,
-0.1708164811,
-0.1054126993,
0.0674949959,
0.1956336051,
-0.0567914844,
0.2455618232,
0.0106570693,
-0.0498886667,
0.4214864969,
-0.0571998842,
0.2929975688,
-0.1949506402,
0.0127486978,
-0.0027335205,
-0.2876277864,
0.0266217198,
0.2824605107,
-0.329136014,
-0.0009926296,
-0.3534656465,
-0.1648859829,
-0.1682328135,
-0.2817859948,
-0.1456691027,
-0.1795325726,
-0.098196499,
-0.3232880831,
-0.005398199,
-0.5234809518,
0.0716245994,
0.443372786,
0.2940409184,
0.4423184097,
-0.0001109809,
-0.2875825167,
0.3899108171,
-0.0230028741,
-0.1813717186,
0.1166150942,
-0.3615160584,
-0.1863489747,
0.1174822897,
-0.4069399834,
0.0848739743,
-0.079838261,
0.0574341118,
-0.4036441147,
0.3140896559,
0.1384187341,
0.1543505192,
0.1063341126,
-0.3437224925,
-0.0760497302,
-0.1214252934,
0.1961519867,
-0.0551977418,
-0.2625675201,
0.3066838384,
-0.1369045079,
-0.1651734114,
0.3768910766,
0.0125894304,
0.1844552308,
0.1620262861,
-0.0080359774,
0.1163708419,
-0.3147075176,
0.0190833434,
0.3290844858,
0.6239461303,
-0.1696986854,
-0.5417160988,
-0.35308671,
-0.0906354412,
-0.1542241275,
-0.2233887166,
0.0626904294,
-0.3076620102,
0.1614495218,
-0.135656327,
0.0391299762,
-0.0583182126,
0.0741455108,
0.0623320192,
0.1817810237,
0.1162252203,
0.0144612361,
0.1221488118,
-0.2025718093,
0.3085150123,
-0.0801641345,
0.0629674792,
0.3889390528,
-0.3603577018,
-0.3717760742,
0.2615562081,
-0.2382626981,
0.1821312606,
-0.025926305,
0.0305662155,
0.0202888511,
-0.0516093038,
0.1309525967,
0.4510252178,
-0.1719744802,
-0.2544569671,
-0.0576889664,
0.2753638029,
-0.0342661664,
0.2316418737,
-0.1818237454,
-0.0149238538,
0.1302001923,
0.4540775418,
-0.0669801161,
-0.0230448302,
0.0414902866,
0.1291750222,
-0.215822041,
-0.0897070393,
-0.0668549091,
0.103142038,
0.4172228277,
0.0107270889,
0.7173674703,
-0.1160047352,
-0.077191554,
0.0436533056,
0.1858932823,
-0.0795507431,
0.1074832901,
-0.0494653583,
0.2534823716,
0.0490016416,
0.4402677417,
0.0998021513,
-0.1279825568,
0.1475150287,
-0.0125831738,
0.1610790193,
-0.145115152,
0.0360060893,
0.0826165602,
-0.3213657439,
0.1506122798,
-0.2702519,
0.1461874247,
-0.3478475511,
0.1962203234,
0.1689460725,
-0.3187080622,
0.0400722139,
0.1051158607,
-0.2749474049,
-0.0210625529,
-0.0944530591,
0.6725258231,
-0.0458777249,
-0.1831387728,
0.06983798,
0.0094949501,
-0.328979969,
-0.022960674,
0.2189023346,
0.4401350915,
-0.1363026947,
-0.2457135171,
-0.3482326269,
0.0906425491,
0.0200595409,
0.2494935691,
-0.222343564,
0.2479168773,
-0.0147126317,
-0.0758450031,
0.4358482361,
-0.372603029,
-0.2863699794,
0.1074348092,
0.1010692492,
0.2396909148,
0.3202351928,
0.3029187918,
0.1072779223,
-0.0809034482,
0.1184231415,
0.3401812911,
-0.1878976226,
0.2117664069,
-0.0700476244,
-0.1739468873,
0.0303871743,
0.1724798232,
0.1475327015,
0.2745967805,
-0.1985670477,
0.1588380933,
0.2154827267,
-0.211392194,
0.0882613063,
0.09628205,
0.7214686275,
-0.1851274669,
0.0100917611,
-0.7405372262,
-0.1217611879,
0.1060195863,
0.0431148298,
0.2062392533,
-0.2600724399,
-0.1804794073,
-0.0090538589,
0.2098780423,
0.1468725502,
-0.0226534009,
0.0896829441,
0.2511670887,
0.0034434171,
-0.2338039279,
-0.138298884,
0.3338525295,
0.1337180883,
-0.2206484824,
-0.2523738742,
0.1382556707,
0.260294646,
-0.084570989,
0.0486654378,
0.088331908,
0.0534508787,
0.0685603023,
-0.0319841988,
0.1918072402,
0.2203946859,
0.1596637666,
-0.0085698655,
0.4478917718,
0.0527494662,
-0.1019557118,
0.0455183126,
-0.0854414403,
0.2180732787,
0.0446666516,
-0.1476542354,
0.395534128,
-0.082723707,
0.1684704721,
0.146583721,
-0.0295736901,
0.4786385,
-0.025957698,
-0.3929912448,
0.017434435,
-0.0605027787,
0.1997902691,
0.0839257538,
0.2200854272,
-0.3021517098,
-0.1810815483,
0.4066775441,
-0.1811351627,
-0.0093854833,
0.0554606281,
-0.1091147736,
-0.1331221759,
0.1976769567,
0.1707272828,
0.2994373441,
0.2176480442,
0.0711944327,
-0.1157319397,
0.0959526673,
0.0779346302,
0.1724648774,
0.4157844782,
0.0559665933,
0.062971063,
0.3342019916,
-0.1421710849,
-0.245943293,
-0.3997685611,
0.08626353,
0.2489096373,
0.1108381078,
0.0115454718,
0.0729962736,
0.0058015217,
-0.20456177,
-0.3509259522,
0.2413159609,
-0.1002206728,
0.1017400622,
0.3677794635,
-0.3087692559,
0.2842539847,
0.1397181451,
0.642967701,
0.2648364007,
-0.038986139,
-0.4860191345,
-0.1803137958,
0.2514104545,
0.0551196262,
-0.0120368171,
0.0950777009,
0.1704229712,
0.3720422387,
-0.0127382893,
-0.1696459055,
-0.1315630376,
-0.0979753956,
0.2337175459,
0.2733369172,
0.0372246169,
0.1116609871,
0.2687458992,
-0.3304574192,
-0.034988679,
-0.2008579522,
0.1409525871,
0.0720772445,
0.1613853276,
0.0627444685,
0.1792732775,
-0.1603210419,
-0.2600762248,
-0.605307579,
0.3689584136,
0.0542349145,
0.0322155245,
0.1692710668,
0.0605992191,
-0.1706041098,
0.2542468607,
0.2394328117,
-0.203839764,
0.0415216014,
0.4191526771,
-0.0465376861,
-0.0858220831,
-0.3147164881,
-0.5375620723,
-0.0082770009,
0.362413317,
-0.1835472584,
-0.2138925344,
-0.3770632148,
0.0561637506,
0.0612699613,
0.0603214912,
0.2930103838,
0.1859807968,
-0.0613398589,
0.1073146611,
-0.1172038168,
-0.1422041804,
0.2208234668,
-0.1161568314,
0.0909952447,
0.5565492511,
0.0291134473,
0.2764524519,
0.2179712057,
0.0238628685,
0.0019024513,
0.0164262205,
-0.0646531209,
-0.0133551825,
-0.158329457,
-0.3220416307,
-0.1160296798,
-0.4046839774,
0.1325564235,
-0.1441964507,
-0.310109973,
-0.1384930164,
0.1829787493,
0.1882505268,
-0.2353519946,
0.2198237926,
-0.4457888305,
0.2578731775,
0.1123422384,
0.1273833513,
-0.5248494744,
0.1033027768,
0.0032939741,
-0.2147438824,
0.1915870607,
-0.278401047,
-0.431330353,
0.1328109801,
-0.5606138706,
0.1602936089,
0.2800093889,
0.5469936728,
0.2355922163,
-0.1335926503,
-0.0386760533,
0.0319036208,
0.6130154133,
-0.1886426359,
-0.6312987208,
-0.1112868041,
-0.5148535967,
-0.2490360886,
0.1312443912,
-0.4423077106,
-0.162062481,
-0.1320867091,
0.1094811633,
-0.3002481461,
-0.2306602001,
0.3035325706,
0.1006193087,
-0.1378088742,
-0.085955143,
0.0435316116,
-0.131288752,
-0.164616853,
0.0560060553,
0.3032299578,
0.0865902603,
0.1558199376,
-0.1937793195,
-0.182431981,
0.0707250983,
0.2787311673,
0.134965688,
0.0527068302,
0.152020365,
0.2319942713,
-0.0966005921,
-0.4643038809,
-0.1180981696,
-0.0592982024,
0.0015838838,
-0.2826878726,
-0.0449075475,
0.2052007616,
0.2667081654,
0.3378680646,
-0.0814486146,
0.3058349192,
0.1326509714,
0.1781288385,
-0.5900758505,
0.1244883314,
0.251689285,
0.241988197,
-0.2226293236,
-0.7599798441,
0.7254576683,
0.0041475594,
-0.248967737,
0.4675507545,
-0.1210729107,
-0.2296246588,
0.5162128806,
-0.0297412183,
0.8367233872,
-0.0415809155,
0.0151289292,
0.3326169848,
-0.0461227968,
0.4079494476,
-0.2849476635,
0.2450462878,
0.0672892332,
-0.3808008432,
-0.0264841765,
-0.0566152856,
-0.1159519181,
0.2451175898,
-0.1986949444,
0.4064106643,
0.3086043894,
0.1067844257,
0.2401263863,
0.2210667729,
-0.1621309519,
-0.4307653308,
-0.3737443388,
0.118870683,
0.1926016062,
-0.1120866239,
-0.1069580913,
-0.0625439659,
0.2531571686,
-0.0290242005,
-0.2879312634,
-0.2064093202,
0.0559472516,
0.2651128173,
0.0709543303,
-0.0752182528,
0.1156284437,
0.1253314614,
-0.139528349,
0.2397311628,
-0.1927211136,
0.2994097173,
-0.1466996521,
0.1311545074,
-0.1308057308,
0.1842297912,
0.4208385646,
0.1217607185,
-0.2842589319,
0.2126286328,
-0.0131456675,
-0.2862924933,
0.017727768,
-0.0599768758,
0.2945924699,
-0.2552541494,
-0.3950386941,
0.2076652646,
-0.4692482948,
-0.2062258422,
0.1932871044,
0.2091012001,
-0.4869342148,
0.5562137365,
-0.0119149871,
-0.0746034086,
-0.0885944813,
0.1562370062,
0.1255973727,
0.0800058842,
0.3552175164,
-0.0782689676,
-0.2553061843,
-0.1697157174,
-0.1693188101,
0.0332143605,
-0.1423680931,
0.3093070984,
-0.0655402541,
-0.3101677597,
-0.230207637,
-0.0323175788,
0.1147410795,
0.0664196759,
-0.4579844475,
-0.06160127,
-0.5093144774,
0.3076595068,
0.1665662378,
0.5467932224,
-0.0431024469,
0.0405416526,
-0.4221556783,
0.3078848422,
-0.3591813147,
-0.3286210597,
-0.4550927579,
0.2279362679,
0.0125072645,
-0.1711464971,
-0.0666554719,
0.0586669743,
0.1384223402,
0.2786865234,
-0.206140101,
-0.1725588888,
-0.0380600169,
0.1245826334,
0.0732327625,
-0.0606919415,
0.0809169337,
-0.1179476604,
-0.1592535526,
-0.4887484908,
0.0740508065,
0.1514867991,
-0.1439383626,
0.4049984217,
0.3262139559,
-0.3051628172,
-0.2912795842,
0.2303907424,
0.1195496768,
-0.2381209433,
-0.1026590243,
0.4540557861,
-0.0602658167,
-0.0635376573,
-0.2491353601,
0.3366052806,
0.1151031926,
-0.2127767652,
0.2572543323,
0.2566645443,
-0.1279703379,
0.1282268912,
0.3670679033,
0.3787525892,
0.0693498775,
0.1483806968,
0.1264633983,
0.267775923,
-0.3546545506,
0.0126451747,
-0.271797806,
-0.1830256879,
0.5061084032,
0.2132534832,
-0.1491886973,
0.0047527696,
0.3491680026,
-0.0956360921,
0.2427029163,
-0.2840682864,
0.1290700734,
0.2916916311,
0.3135336041,
-0.0732500255,
0.2227401435,
0.3729329109,
0.2710206211,
0.36991781,
-0.1369566023,
0.0586326607,
-0.1293050349,
0.0767230913,
-0.1018116772,
0.078548938,
-0.0431302227,
0.3187405467,
0.0429763123,
0.1472270191,
0.2114262879,
-0.0434491672,
0.0687622055,
0.2322333157,
-0.1635124683,
0.0440929383,
0.0476568416,
-0.3000619113,
0.1331102103,
-0.0540498756,
-0.1207210794,
-0.093629688,
0.203482002,
-0.16795066,
0.3024561405,
0.0634296164,
0.3847072423,
-0.1417669803,
0.3183918297,
0.1435563266,
0.3139097691,
-0.4563678503,
-0.1594530493,
0.1437731236,
0.0511389636,
0.0586264469,
0.283639878,
0.0839828253,
0.2020503581,
-0.0797634721,
0.3794159293,
-0.1528418511,
-0.2747273743,
-0.0564644262,
0.1910531968,
-0.0130379805,
0.3827262223,
-0.0039208611,
0.1531083584,
-0.173310414,
0.0667422488,
0.0185478032,
-0.0698327199,
-0.7748567462,
0.478328079,
0.1762073487,
-0.1594687402,
0.0373464003,
-0.1019121036,
-0.1233661622,
-0.0347953998,
0.0128346086,
-0.6941592693,
0.034173537,
0.2453071922,
0.0797363147,
-0.4243278801,
0.1101500392,
0.1276015639,
0.433095634,
-0.1348141581,
-0.0656613484,
-0.336856097,
-0.2676252723,
0.1961900741,
-0.0669099167,
0.3564683795,
0.2342177629,
0.0070527224,
0.2707469761,
-0.2680199742,
-0.180757165,
-0.5681554675,
0.333601892,
-0.3661012053,
-0.2457048446,
-0.2002747804,
0.2133733332,
0.1129774973,
-0.3904240727,
-0.0483650975,
0.108989574,
0.0443116762,
0.0057707671,
0.0599345192,
0.0517825149,
0.1824421138,
0.0801398978,
0.1207541674,
0.2499209344,
-0.2139071971,
0.1875749081,
-0.0863777846,
-0.4399537146,
-0.2010621727,
-0.320337683,
-0.0290148128,
0.3762716949,
0.0863351449,
0.0913107172,
-0.1197867766,
0.0868224427,
-0.0297337249,
-0.2210442126,
-0.3423261046,
0.067297861,
-0.3293601573,
0.202959761,
-0.1181486249,
0.1552760601,
0.0135814371,
0.0929328278,
-0.194118917,
-0.0768838674,
0.4865629971,
-0.141197294,
-0.4736248255,
-0.2327537239,
0.1616244018,
0.011256963,
-0.1992339492,
-0.4941643178,
-0.0177602973,
0.1809046865,
-0.0324566774,
-0.2313029766,
0.2836442292,
0.1542573422,
-0.0161425062,
-0.1863505542,
0.3337237239,
0.0980814919,
0.0465593189,
-0.2205776125,
-0.4167146981
] |
https://github.com/huggingface/datasets/issues/4180 | Add some iteration method on a dataset column (specific for inference) | Yea pandas doesn't do lazy loading. I was referring to pandas.Series to say that they have a dedicated class to represent a column ;) | **Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.
Currently, `dataset["audio"]` will load EVERY element in the dataset in RAM, which can be quite big for an audio dataset.
Having an iterator (or sequence) type of object, would make inference with `transformers` 's `pipeline` easier to use and not so memory hungry.
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
For a non breaking change:
```python
for audio in dataset.iterate("audio"):
# {"array": np.array(...), "sampling_rate":...}
```
For a breaking change solution (not necessary), changing the type of `dataset["audio"]` to a sequence type so that
```python
pipe = pipeline(model="...")
for out in pipe(dataset["audio"]):
# {"text":....}
```
could work
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
```python
def iterate(dataset, key):
for item in dataset:
yield dataset[key]
for out in pipeline(iterate(dataset, "audio")):
# {"array": ...}
```
This works but requires the helper function which feels slightly clunky.
**Additional context**
Add any other context about the feature request here.
The context is actually to showcase better integration between `pipeline` and `datasets` in the Quicktour demo: https://github.com/huggingface/transformers/pull/16723/files
@lhoestq
| 24 | Add some iteration method on a dataset column (specific for inference)
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.
Currently, `dataset["audio"]` will load EVERY element in the dataset in RAM, which can be quite big for an audio dataset.
Having an iterator (or sequence) type of object, would make inference with `transformers` 's `pipeline` easier to use and not so memory hungry.
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
For a non breaking change:
```python
for audio in dataset.iterate("audio"):
# {"array": np.array(...), "sampling_rate":...}
```
For a breaking change solution (not necessary), changing the type of `dataset["audio"]` to a sequence type so that
```python
pipe = pipeline(model="...")
for out in pipe(dataset["audio"]):
# {"text":....}
```
could work
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
```python
def iterate(dataset, key):
for item in dataset:
yield dataset[key]
for out in pipeline(iterate(dataset, "audio")):
# {"array": ...}
```
This works but requires the helper function which feels slightly clunky.
**Additional context**
Add any other context about the feature request here.
The context is actually to showcase better integration between `pipeline` and `datasets` in the Quicktour demo: https://github.com/huggingface/transformers/pull/16723/files
@lhoestq
Yea pandas doesn't do lazy loading. I was referring to pandas.Series to say that they have a dedicated class to represent a column ;) | [
-0.3311902583,
-0.1377672255,
-0.0978266373,
0.0600640811,
0.195251286,
-0.1097995713,
0.3782247603,
-0.0013356889,
0.0039669308,
0.3533789814,
-0.1139354706,
0.3851184249,
-0.1974339932,
0.0876601338,
0.0624893047,
-0.2848600745,
-0.032793086,
0.3595253825,
-0.3034151196,
-0.0244806763,
-0.3410532475,
-0.1528686136,
-0.1322071701,
-0.2149344981,
-0.0552113242,
-0.0872002691,
-0.0606825761,
-0.2531473041,
0.0069989371,
-0.4443027973,
0.0478825383,
0.4961129129,
0.2889382541,
0.4016380012,
-0.0001093275,
-0.2291445434,
0.3587419391,
-0.0230500624,
-0.1876386553,
0.0409859903,
-0.2813186347,
-0.2438043207,
0.0647561401,
-0.4202440679,
-0.0463310629,
-0.0899745971,
-0.0358688869,
-0.2842626572,
0.2435525209,
0.0940421298,
0.1732846051,
0.2126455903,
-0.3788940609,
-0.03465138,
-0.0609035194,
0.1509991288,
-0.0288477838,
-0.2253711075,
0.3142020702,
-0.0883488506,
-0.2268066704,
0.4376091063,
0.0296653155,
0.1892318279,
0.1857283264,
0.0182855558,
0.0957410187,
-0.2919286191,
0.0480580404,
0.4015193582,
0.6242354512,
-0.0703380853,
-0.5349677205,
-0.4128743708,
-0.0381391197,
-0.1804981679,
-0.208050549,
0.0739917159,
-0.2225600481,
0.1567693055,
-0.1239555255,
0.0460238904,
-0.0629234612,
0.0243076868,
0.0108707221,
0.1825423539,
0.0650459453,
0.0316012241,
0.1242083013,
-0.2266937643,
0.3286001086,
-0.0969310403,
0.0705755875,
0.4406170249,
-0.3882796168,
-0.416747272,
0.2202991545,
-0.1764711142,
0.1583690345,
0.0578585155,
0.0641359463,
0.0655348524,
-0.0131543027,
0.133324042,
0.4548572302,
-0.2330147326,
-0.1917992383,
0.028556129,
0.2629252076,
-0.0153369913,
0.2204055488,
-0.153373763,
-0.0818574503,
0.1041660085,
0.4079713523,
-0.0344439521,
0.025739802,
0.0317602865,
0.1479380727,
-0.2120243609,
-0.0055647129,
-0.0105787506,
0.1358242184,
0.4715943635,
0.0436519198,
0.763856411,
-0.1578414142,
-0.0178387463,
0.0565467663,
0.0725055337,
-0.0637079477,
0.0767062381,
0.0417951718,
0.2618086338,
0.0531011,
0.4474974871,
0.0845451877,
-0.1598543376,
0.1599925458,
-0.1196126565,
0.0887819082,
-0.09719944,
0.0066734413,
0.1036147699,
-0.3050881624,
0.1507148296,
-0.2081988007,
0.0813997611,
-0.3247467875,
0.1632106304,
0.1037551984,
-0.2896133363,
0.0452688001,
0.1237380356,
-0.2540730238,
-0.0607234463,
-0.1732450575,
0.6413491964,
-0.0145233907,
-0.1436151415,
0.012061473,
0.0159453321,
-0.3732694983,
0.0045475941,
0.2106871903,
0.3720732331,
-0.0623177439,
-0.3322509229,
-0.3471452892,
0.0707921237,
0.0002550133,
0.2426948994,
-0.2316633761,
0.2749024034,
0.0172997899,
-0.0531629957,
0.4677301645,
-0.3045018315,
-0.308478117,
0.1501832604,
0.0446341559,
0.3173393309,
0.2287641019,
0.2772807181,
0.128344968,
-0.1375065893,
0.1498123109,
0.429622829,
-0.1472448856,
0.2665664852,
-0.0333371349,
-0.1894410998,
0.0730974078,
0.2405123264,
0.1516827494,
0.2926979661,
-0.2798526287,
0.1040545329,
0.2720191777,
-0.2780282199,
0.0022292815,
0.1140676886,
0.6467106342,
-0.1968864948,
-0.0047490313,
-0.6862488389,
-0.1458235234,
0.1375074089,
-0.0219781343,
0.1653812379,
-0.2076825798,
-0.2396253198,
-0.0628599003,
0.2260428518,
0.0923693404,
0.0041798907,
0.1184007451,
0.1989708394,
-0.0191526078,
-0.3275538087,
-0.1443029791,
0.2706468403,
0.012573028,
-0.164971903,
-0.2987041771,
0.1465384513,
0.2660288215,
0.0219768751,
0.0648696497,
0.1185261905,
0.0665836558,
0.0317190923,
-0.0014527751,
0.2268977761,
0.198429659,
0.1611499786,
-0.0406138524,
0.4192429185,
0.0203069169,
-0.0738451928,
0.0023508351,
-0.0169694647,
0.2265880704,
0.0753767863,
-0.2169012725,
0.5118580461,
-0.1126392856,
0.1921657771,
0.1162877604,
-0.0455452017,
0.5204424858,
-0.0181336831,
-0.4739353955,
0.0197412539,
-0.0555042326,
0.1450232416,
0.0704517961,
0.2324212641,
-0.2680710256,
-0.1617028117,
0.3997506797,
-0.2227413952,
-0.0158635471,
0.1220392659,
-0.1667079031,
-0.1063639745,
0.0838118419,
0.2622568309,
0.2584092021,
0.2570457757,
0.0872403085,
-0.1868567169,
0.0565956496,
0.1109548286,
0.2081972808,
0.3723338544,
0.0619863123,
0.0774475783,
0.3280305266,
-0.1971390843,
-0.2841744721,
-0.4489326775,
0.0728445873,
0.2430200279,
0.0316350572,
0.0182751678,
0.1290273666,
0.0053594965,
-0.1532329321,
-0.396053344,
0.2641651034,
-0.0617305152,
0.1115188077,
0.3102297485,
-0.3556966782,
0.2507600784,
0.0793797597,
0.6093608737,
0.2908796072,
-0.0350925177,
-0.3809039891,
-0.2493489683,
0.2980552614,
0.07170555,
-0.0286671147,
0.0619495995,
0.089381665,
0.2251934111,
-0.0089785066,
-0.061077334,
-0.1661541611,
-0.0498767309,
0.2143515646,
0.2052406371,
-0.0236881264,
0.1656332463,
0.3201001287,
-0.3047845364,
-0.0006955423,
-0.2393962443,
0.1560978293,
0.1037261188,
0.184765622,
0.0280200336,
0.1948079467,
-0.1608129144,
-0.2380375713,
-0.5630866885,
0.3504212499,
0.0304999072,
0.0800959095,
0.2146704346,
0.0895204991,
-0.1489997506,
0.2783801556,
0.2550435066,
-0.2284480929,
-0.0492318496,
0.4156346619,
-0.0371133275,
-0.176580742,
-0.3888887465,
-0.5211953521,
-0.0455846488,
0.2177233249,
-0.1350084245,
-0.178220287,
-0.4197207093,
0.0186330974,
0.0425967388,
-0.0273322966,
0.2210678607,
0.1800642312,
-0.0597801805,
0.0671094805,
-0.1008947492,
-0.1498700976,
0.2583948672,
-0.0978211015,
0.0390759856,
0.5020309091,
-0.0155428201,
0.2647168636,
0.1688156128,
-0.0685928836,
-0.0797550082,
-0.0013998774,
-0.0437620059,
0.0012610661,
-0.1821847856,
-0.3356632888,
-0.1312236786,
-0.3337457478,
0.245957762,
-0.1191992313,
-0.344425261,
-0.1298275143,
0.2014166415,
0.1480733156,
-0.3217040598,
0.2581487596,
-0.3906249404,
0.1420921981,
0.1218971387,
0.1938220263,
-0.4957590699,
0.142807886,
-0.0199547298,
-0.1897388846,
0.2219876796,
-0.3144469857,
-0.3845180571,
0.1142115742,
-0.5367230177,
0.1523561776,
0.2456482202,
0.547144115,
0.2506684959,
-0.1572235674,
-0.0275528636,
-0.0365023091,
0.5369517803,
-0.2140370309,
-0.4916956425,
-0.1078346446,
-0.3699947298,
-0.3064158559,
0.1091560423,
-0.4548414648,
-0.1656118333,
-0.039358601,
0.2457532436,
-0.3563082218,
-0.1799642891,
0.271492064,
0.1518376172,
-0.1501579434,
-0.0967014432,
-0.0196131598,
-0.1233069748,
-0.1997699291,
0.1183269098,
0.250310272,
0.1498443931,
0.0188538805,
-0.204225868,
-0.0994766802,
0.0119936392,
0.3019019067,
0.2481878996,
0.0806818828,
0.1504663378,
0.2597396076,
-0.073785007,
-0.4209617674,
-0.2481428981,
0.0738908798,
0.0323498696,
-0.3193840384,
-0.0140952934,
0.1570598334,
0.2518956661,
0.3402429819,
-0.0438819081,
0.3502079248,
0.1199168786,
0.1824798286,
-0.5397792459,
0.150026843,
0.252997607,
0.287964642,
-0.2380534708,
-0.7179018855,
0.7795930505,
-0.0165643841,
-0.2544931471,
0.4534558654,
-0.1486570835,
-0.1782132089,
0.5385097861,
-0.0678213164,
0.810015738,
-0.0961819738,
-0.084941186,
0.2065017223,
-0.1793651283,
0.4034745991,
-0.343180865,
0.1881349534,
0.0354729407,
-0.4630981684,
0.0033264093,
-0.0236894861,
-0.1230263337,
0.3121922314,
-0.2146262378,
0.3573190868,
0.2297128141,
0.1262337714,
0.24955374,
0.2115036696,
-0.1383264065,
-0.4956972003,
-0.4600313902,
0.1262900829,
0.117859982,
-0.078830339,
-0.0400548317,
-0.0593278036,
0.2143793255,
-0.1173527539,
-0.2692439854,
-0.1479993165,
0.1503513157,
0.1935399771,
0.0908990204,
-0.1737110615,
0.1163325906,
0.0739002451,
-0.2345384806,
0.2140167952,
-0.1804964542,
0.3186775148,
-0.1306456178,
0.2228583097,
-0.1666138768,
0.2238867581,
0.2969693244,
0.1569829583,
-0.2651341259,
0.1374557465,
-0.0411001407,
-0.2601596117,
0.0898894817,
-0.0567060187,
0.3216905296,
-0.2620547414,
-0.3407496512,
0.1986317635,
-0.4099806845,
-0.245750159,
0.2015965432,
0.1520755291,
-0.5462903976,
0.5060091615,
0.1303524971,
-0.1307929605,
-0.0119943852,
0.1917061359,
0.1418258995,
0.1126851514,
0.3663069606,
-0.0973294824,
-0.2057205737,
-0.1952586919,
-0.0935191512,
0.035896223,
-0.1949402094,
0.2661634684,
-0.0532933213,
-0.30817765,
-0.2084539533,
-0.0602550022,
0.1134530678,
0.0417548418,
-0.4728281498,
-0.1071997881,
-0.5006486177,
0.2575421035,
0.1549498737,
0.5483837724,
0.0024003396,
0.065403156,
-0.4352039993,
0.3975208402,
-0.3808720708,
-0.3184221387,
-0.4541766942,
0.2592461407,
0.0697061419,
-0.193038106,
-0.0223674513,
0.0389191508,
0.1683564633,
0.2216858715,
-0.1362615079,
-0.188666448,
-0.0882170051,
0.1110875234,
0.0483383872,
0.0095801242,
0.0506728999,
-0.0576145612,
-0.1675749272,
-0.4956329167,
0.076183252,
0.0670620278,
-0.1106201187,
0.3005706668,
0.1808487475,
-0.2543417811,
-0.3530471921,
0.1636894941,
0.0398526154,
-0.2712481618,
-0.0625245199,
0.3977069557,
-0.064254947,
-0.0365492366,
-0.2508583069,
0.314648211,
0.2056778073,
-0.3055019677,
0.3221375644,
0.1837806851,
-0.0146789374,
0.1011526808,
0.3669971228,
0.4179084301,
0.1106657907,
0.1413543671,
0.09734115,
0.3147465885,
-0.4299127758,
0.0280016363,
-0.2671779692,
-0.2239981294,
0.5194497705,
0.2304635197,
-0.1502809078,
0.0058925627,
0.398746103,
-0.1139718741,
0.2811248302,
-0.224063158,
0.1130640656,
0.4061191082,
0.2746442854,
-0.0655082539,
0.2480986714,
0.2771761417,
0.2835985422,
0.3211854994,
-0.1818357259,
0.0013907999,
-0.1492006183,
0.1096841916,
-0.1061089113,
-0.0066586118,
-0.03767718,
0.3138151467,
0.1160773486,
0.1951184869,
0.2322466224,
0.0313154832,
0.0180656593,
0.2384989262,
-0.2328456491,
0.0884736776,
0.0693919435,
-0.3975670338,
0.0643143505,
-0.0555023178,
-0.1080636382,
-0.1348710507,
0.2026020586,
-0.1837573946,
0.2217098475,
0.0559698902,
0.3970015049,
-0.2435957342,
0.2160024494,
0.1019670814,
0.3313620985,
-0.4522747099,
-0.0606164597,
0.1973628104,
0.111348182,
0.1980978101,
0.1533098817,
0.0697486922,
0.1775179207,
-0.0547514856,
0.390860796,
-0.1467601359,
-0.2579336166,
-0.0317158513,
0.1518528908,
-0.0355034061,
0.2749300897,
0.1479007602,
0.1728541702,
-0.2032895237,
0.0688645691,
0.0207344778,
-0.0625644848,
-0.6503013968,
0.5730151534,
0.155403614,
-0.1527342945,
-0.0864208937,
-0.2020643353,
-0.0864226222,
-0.0704416707,
-0.0291819088,
-0.5635620356,
0.0365419909,
0.2577241659,
0.0951354131,
-0.3374050856,
0.1401858628,
0.128518194,
0.3897616863,
-0.1157101393,
-0.0143012106,
-0.3870798051,
-0.2659903765,
0.1440441906,
-0.1094888523,
0.3801985681,
0.2258631885,
0.09455318,
0.2887193263,
-0.2147931159,
-0.1983862966,
-0.425532639,
0.3357471526,
-0.3282837272,
-0.197644785,
-0.1603916883,
0.2386967838,
0.0870679691,
-0.4094137847,
-0.139415741,
0.1201666594,
0.0694847032,
0.0206681844,
0.1085680425,
-0.0128635829,
0.0461936742,
0.0505178124,
0.0198362041,
0.3450923562,
-0.2225158364,
0.1909688264,
-0.0804516524,
-0.4137336016,
-0.291261673,
-0.3118552566,
0.0424105898,
0.3476919234,
0.2131273597,
0.1268540174,
-0.0893657953,
0.0487100966,
-0.000845413,
-0.197742641,
-0.3372798562,
0.1414469182,
-0.330108285,
0.2134054899,
-0.177085638,
0.1391344965,
0.0346133448,
0.0782827437,
-0.193392545,
-0.1699042618,
0.5651540756,
-0.1871370971,
-0.4923136234,
-0.1315224916,
0.2264975309,
-0.0666844547,
-0.1584625393,
-0.4859485328,
-0.0002743061,
0.1497796029,
-0.0858421996,
-0.188269183,
0.2781229019,
0.1486130655,
0.0006728506,
-0.2466112822,
0.3639040291,
0.0929926187,
0.0560989231,
-0.3287560046,
-0.4486370087
] |
https://github.com/huggingface/datasets/issues/4179 | Dataset librispeech_asr fails to load | Another thing, but maybe this should be a separate issue: As I see from the code, it would try to use up to 16 simultaneous downloads? This is problematic for Librispeech or anything on OpenSLR. On [the homepage](https://www.openslr.org/), it says:
> If you want to download things from this site, please download them one at a time, and please don't use any fancy software-- just download things from your browser or use 'wget'. We have a firewall rule to drop connections from hosts with more than 5 simultaneous connections, and certain types of download software may activate this rule.
Related: https://github.com/tensorflow/datasets/issues/3885 | ## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
| 101 | Dataset librispeech_asr fails to load
## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
Another thing, but maybe this should be a separate issue: As I see from the code, it would try to use up to 16 simultaneous downloads? This is problematic for Librispeech or anything on OpenSLR. On [the homepage](https://www.openslr.org/), it says:
> If you want to download things from this site, please download them one at a time, and please don't use any fancy software-- just download things from your browser or use 'wget'. We have a firewall rule to drop connections from hosts with more than 5 simultaneous connections, and certain types of download software may activate this rule.
Related: https://github.com/tensorflow/datasets/issues/3885 | [
-0.2864782512,
-0.4839607477,
0.0680988878,
0.6340244412,
0.1525813788,
0.2355626971,
0.1461004764,
0.2371000201,
0.2123608291,
-0.0533141494,
-0.1300386786,
0.0948216319,
-0.3211013675,
0.2411901802,
0.0585025474,
-0.0512975715,
-0.1185007244,
0.2319578677,
-0.1747397184,
-0.1202812865,
-0.2381756604,
0.3758117855,
-0.244647786,
-0.0021679148,
-0.1384708285,
0.1862492263,
-0.009389705,
0.3627567887,
-0.1291859597,
-0.1926396787,
0.4450719655,
-0.3261861205,
0.4011134505,
0.3390727341,
-0.0001146799,
0.0329964459,
0.1974485815,
-0.2052498162,
-0.2786283791,
-0.289806664,
-0.3660936654,
0.0728081614,
0.2244331539,
0.0616749004,
-0.1416078657,
0.0959065333,
-0.09597186,
-0.3692120016,
0.3581376076,
0.3308921158,
0.2421030998,
0.2675851285,
-0.1595792472,
-0.1363956332,
0.2256511748,
0.0244018435,
-0.2052274346,
0.0532813296,
-0.0231299177,
0.1362628043,
-0.1791895628,
0.0702883229,
0.0619723722,
0.1473606378,
0.2199425846,
0.0459809341,
-0.391977489,
-0.3175211847,
0.2746736705,
0.336995542,
0.2833821774,
-0.0511116125,
-0.1968611777,
-0.0976551324,
-0.1813508421,
-0.2642343044,
0.2228301167,
0.4577170014,
-0.1431986988,
0.3312956691,
-0.039521385,
-0.2251963019,
-0.0287971534,
0.1777931452,
-0.2345646769,
0.2480503768,
-0.3421917558,
0.1191175133,
0.2713807523,
0.2980136871,
0.0475213304,
0.0374464989,
-0.1076285616,
0.1053528786,
-0.4098748863,
0.1201617047,
-0.0230757874,
0.3578152955,
0.3183113039,
0.2543184161,
0.3351866007,
-0.0567912981,
-0.1030216143,
0.0418856554,
0.1714877933,
0.1504790336,
0.3353461921,
0.2444974631,
0.1273303479,
0.2969776988,
0.0733280331,
-0.0287234038,
-0.1453866363,
0.0265282802,
-0.3238972127,
-0.2516283393,
0.090579167,
-0.4356732965,
-0.429979831,
0.1428477764,
-0.2851963639,
-0.2564659715,
0.2311996818,
0.4139815867,
-0.2897873819,
0.0807069242,
0.0865162835,
0.097397849,
-0.0941822082,
-0.0544150732,
-0.3120336235,
0.0532195568,
-0.4024542272,
0.086422585,
0.2335283309,
-0.6066651344,
0.5037904382,
0.0898015276,
-0.220353961,
-0.1728706658,
-0.1083737612,
-0.0193388294,
0.0864286199,
0.2456523627,
0.0133950226,
0.1891669035,
0.1134424806,
0.1383717209,
-0.1508449167,
-0.0395278484,
-0.0180183481,
-0.3320434988,
-0.06371703,
0.1756086498,
-0.3146348,
0.0615856014,
-0.0899001285,
0.167609781,
0.0622148886,
-0.0055139759,
0.0318340547,
-0.085324131,
-0.2076771557,
-0.1902361959,
0.5690099597,
0.3730202615,
-0.1366893053,
-0.1686149389,
-0.0406845994,
-0.3216864467,
0.3857329488,
0.0762825087,
-0.150485456,
-0.0010953237,
-0.3405222595,
0.0099663176,
0.28325966,
-0.0148163773,
-0.4852282405,
0.2786302269,
-0.0556638651,
0.2238806784,
0.151764527,
-0.0978405252,
0.1624522209,
0.0491041243,
-0.0757374093,
0.5340372324,
-0.0731331185,
-0.1859060079,
-0.4255150259,
-0.3501221538,
-0.0283141062,
0.2779067755,
0.0395111553,
0.0713546127,
0.0686589479,
0.3833122253,
0.40475896,
0.0193243492,
0.1365199834,
0.0492991507,
-0.1654882729,
0.1880507469,
-0.0575998873,
-0.1197341084,
-0.6305850744,
0.1851828247,
0.1123741567,
0.0368365906,
0.0696971864,
-0.0298004225,
-0.3020533323,
-0.2867826819,
-0.3926281035,
-0.6270391941,
-0.031328395,
0.3522002995,
0.1813616306,
-0.1299888194,
-0.3942680955,
0.4097011387,
-0.066686675,
0.300308466,
-0.3543494642,
0.314995259,
-0.012172861,
-0.0458911248,
0.0336125381,
0.2207504362,
-0.0511104427,
-0.3450973332,
-0.1065296605,
0.4643592238,
-0.0471546277,
-0.2043189257,
-0.0967621803,
-0.200274989,
0.1886776388,
-0.3146889508,
0.0309310164,
0.0267330129,
-0.0675479919,
-0.0429656915,
-0.281594187,
0.0404909886,
-0.0744118765,
0.2429829538,
0.1321257055,
0.2587024271,
0.0429504551,
-0.2466962039,
-0.1687053442,
-0.3001501262,
0.3115946949,
-0.4033464491,
0.3609392047,
0.1341481954,
-0.5161659718,
-0.2940068543,
0.3804988265,
0.0380514488,
-0.0731648505,
0.1933140904,
-0.2947484553,
0.1005820781,
0.1228783205,
0.1945212036,
0.3356691003,
0.1269971281,
0.1328823268,
-0.0474080704,
-0.0665145814,
-0.1764679849,
0.1167557314,
-0.046440389,
0.1044843122,
0.1768838316,
-0.1535588354,
-0.0009021947,
-0.4279775321,
-0.1238772124,
0.0457639582,
0.3132143319,
-0.2257510722,
-0.0834868997,
-0.2323193997,
-0.025745701,
-0.3625422418,
-0.2185832113,
-0.1767243147,
-0.1344051957,
-0.2404332459,
0.0231207497,
0.0658278391,
0.2553323507,
-0.2093301415,
0.0455154888,
-0.2299626619,
-0.0861133486,
-0.06768547,
0.1722486913,
-0.4905477762,
0.0619571134,
0.3033004999,
-0.0227272268,
0.2865028083,
-0.2348197103,
-0.2146132886,
-0.1950168461,
-0.1298451424,
0.3056706786,
-0.1167070717,
0.1826789379,
0.3629124165,
0.1371282786,
-0.0958332494,
-0.3102601469,
0.4518939257,
-0.1724716127,
-0.0325743519,
0.1589948982,
0.2692781985,
0.3357319236,
-0.1583157331,
-0.5478576422,
-0.1225892901,
-0.4533905387,
0.1328529567,
-0.0001494011,
0.10310857,
-0.0180252064,
0.0207392387,
0.0804323107,
-0.2305063605,
-0.0341859274,
-0.1984066516,
-0.1629059613,
0.188154906,
-0.2112244964,
-0.2533047795,
-0.1214947999,
0.024821762,
0.2858714759,
0.2720384002,
-0.5524842143,
0.1994642615,
-0.2049172968,
0.061557252,
-0.220301196,
0.2075450867,
0.1768573225,
0.0108304033,
0.1045470536,
-0.1976488829,
-0.134205848,
0.0978321061,
-0.3393347561,
0.4048061967,
0.026120251,
0.3284215033,
0.1798994988,
0.5082939863,
0.3439002931,
-0.1505869627,
0.2079484314,
-0.0767773688,
0.1270885766,
-0.1387688518,
-0.4614744782,
0.2145904452,
-0.0541922785,
0.0859872997,
0.3838814497,
0.1770409495,
0.0867263153,
-0.2817543149,
0.2110205591,
-0.2039252967,
-0.2502623498,
0.0856245384,
-0.0654936433,
0.2703848183,
-0.0466584489,
0.3427773416,
0.4439868927,
-0.1137430221,
0.1540441364,
0.2607249022,
0.1055797711,
0.1045862958,
-0.2147738934,
0.2323487401,
-0.5890905261,
0.2524782121,
-0.2033336163,
0.2313733399,
0.1067977101,
-0.234373644,
0.1468489617,
0.1748058945,
0.5568481684,
-0.1038096249,
0.0312593877,
-0.0269399602,
0.0363913551,
-0.3886358142,
0.0602948405,
-0.1235450432,
0.357295692,
0.2604560852,
0.1288841814,
-0.4553008378,
-0.3058998883,
0.462531656,
0.3624634147,
-0.078130275,
-0.1010163724,
-0.2698169649,
-0.3832364976,
-0.0713698193,
0.0094886664,
-0.1053613573,
0.2986246347,
0.0326921754,
-0.0290651266,
-0.0917467549,
-0.2317258716,
0.3436343372,
0.048843544,
0.4620386958,
-0.0244447012,
0.3545613587,
0.2090846896,
0.1529756933,
0.1588899493,
0.7753596902,
-0.530997932,
-0.3234416842,
0.3394289613,
-0.0593774207,
0.359152019,
0.2475199252,
-0.1589202434,
-0.1059668139,
0.079180479,
0.1149097979,
-0.1743154377,
0.2773796022,
0.215794012,
-0.1469060332,
-0.3367116153,
-0.6409859061,
0.5244445801,
0.2109769136,
-0.0379017629,
0.4387472272,
0.0556856394,
-0.222479403,
0.2947354019,
-0.0873420835,
0.7359089851,
-0.1430234015,
0.1394726187,
0.0099006612,
-0.065290831,
0.4976043701,
0.0095972521,
0.1763355583,
-0.3800457418,
-0.0951292291,
0.0100980941,
-0.1598964781,
0.0856667161,
0.1184604764,
-0.2141382694,
0.2453871667,
-0.1360047907,
0.1520732492,
0.1655341089,
0.4593964815,
-0.2705325484,
-0.2743240893,
-0.1331557781,
0.0567969084,
-0.001141069,
0.5052098036,
0.1192897335,
0.022621816,
-0.0190523881,
-0.2101815492,
-0.2829745412,
0.1276530623,
-0.386944443,
-0.0722983181,
-0.1275293678,
-0.4924767613,
0.1943809539,
0.293585211,
-0.0273949187,
0.1404881179,
-0.0803032294,
0.06772542,
0.0655287504,
0.0284467544,
0.0526911244,
0.0677063912,
0.1891305894,
0.117857635,
0.1071198732,
0.1639722586,
-0.0698303655,
-0.1400986463,
0.1390099078,
0.1591519266,
0.1499558836,
-0.6286535263,
-0.1661227942,
0.1514683962,
0.1900820285,
-0.2809163332,
0.0861292407,
0.2486937493,
-0.1896348447,
0.0260318611,
0.0090269782,
-0.3273123503,
-0.2984621823,
0.1726154685,
-0.0341892317,
-0.0999758542,
0.3035963178,
0.212803632,
0.0676846728,
-0.1772778034,
-0.0159317721,
0.3153965473,
-0.642352283,
0.0941705629,
-0.2409416884,
0.0220355149,
0.1095628738,
0.3932799697,
0.2531152666,
0.0152953612,
-0.0760226473,
-0.3590138257,
-0.0682951137,
0.2626478076,
-0.0593022071,
0.2759030461,
-0.2043926865,
0.3208460212,
0.0046859817,
-0.0540748537,
-0.2642842531,
0.1618343443,
-0.1454033703,
0.0519586131,
0.191051811,
0.0785940513,
0.4121577442,
0.021690743,
0.1333602816,
0.1554798782,
-0.1834117472,
-0.1200242117,
-0.2534926832,
0.1741416156,
0.0770612136,
-0.0195555501,
-0.2574189007,
-0.031388741,
-0.0771992728,
-0.1802418083,
0.2131407261,
0.1678884923,
0.0091988593,
0.0298049524,
0.1381466091,
0.0481963865,
-0.2464935482,
0.0261424556,
-0.1572972238,
0.1787124127,
0.2133847177,
0.2083948702,
0.0917931944,
0.0091936449,
0.1396328211,
-0.0103379181,
0.0379468836,
-0.0624681748,
0.1630109549,
-0.1767688692,
-0.0162948761,
0.35221982,
0.3606503606,
0.6477940679,
0.0245407932,
0.03398012,
0.0495627522,
0.1878281832,
-0.0321508162,
0.0980357751,
-0.1004558653,
0.0919480249,
0.0560002662,
0.4105974734,
-0.0531525575,
-0.0132504739,
-0.1128897294,
0.0749023035,
0.2782758474,
0.147705853,
0.3298525512,
0.5117224455,
-0.1850787997,
0.1615472585,
0.2609502375,
-0.2239239067,
0.1490018368,
0.1710413992,
-0.1418040544,
0.1291326731,
-0.3158312142,
0.2990640402,
0.0547156334,
-0.4963174164,
-0.0185962636,
0.216869235,
0.0663458034,
0.056246426,
-0.3770386279,
0.7253003716,
-0.4944148362,
-0.0363312326,
-0.1224296093,
0.0670954138,
-0.1599614918,
-0.1032060683,
0.0488659851,
-0.3158009052,
-0.2405025065,
0.1546079367,
-0.1400933862,
-0.1664374173,
0.3451707959,
-0.0109833926,
-0.2324232012,
-0.1736872345,
-0.2747785151,
0.2652488947,
-0.0639500394,
-0.2120301127,
0.4075476229,
0.0200092215,
-0.0737337843,
0.0842469707,
0.2317490131,
0.0704865605,
0.1353722066,
0.1280502677,
-0.1436004788,
-0.0078353062,
0.1166250408,
-0.2023311853,
0.3975357711,
0.1891568899,
0.0882424861,
0.4073221982,
0.1042698547,
-0.1981185377,
-0.0012606864,
-0.1564842314,
0.127236709,
-0.4012547135,
0.3482406437,
-0.0875969231,
-0.0524771586,
0.0356824249,
-0.0328328647,
-0.3564702868,
0.0889320225,
0.0010806683,
-0.0370233245,
-0.0447664894,
-0.1471876651,
0.0532829538,
0.2223320603,
0.2792684138,
0.298550725,
0.198695913,
-0.3808215261,
-0.5446336269,
-0.6770581007,
0.1334835142,
-0.0690003857,
-0.1824921817,
-0.050510142,
0.268997997,
0.0630564615,
0.2376863062,
0.0260300189,
0.1445351094,
0.1766326278,
0.0907215253,
0.0740232915,
-0.1434726864,
-0.0002061721,
0.0970932022,
-0.0242455136,
-0.3749291003,
0.0644176379,
-0.1649257392,
-0.052681379,
-0.235813126,
-0.1780257076,
0.2120485902,
-0.2146486342,
0.2914566696,
0.1977299154,
0.2918566763,
-0.0089650229,
-0.2792397141,
-0.3359559476,
-0.253347069,
-0.1910103112,
0.1218583211,
0.0248805825,
0.4896282852,
-0.1717040092,
-0.2483383268,
-0.5496247411,
0.3322091699,
0.3946073949,
0.1816078871,
-0.2106709331,
0.0724768117,
-0.0693016052,
-0.0852324963,
0.5066688657,
0.7129359245,
-0.2175035626,
-0.1399034709,
-0.2383049428,
-0.4474014342,
0.3651693761,
-0.2178668082,
-0.0264252201,
0.0368811451,
0.2639951706,
0.3638981581,
-0.2047504932,
-0.7203478813,
-0.2053184658,
0.3049063385,
0.0050100288,
-0.2338485271,
0.0728422329,
0.017467754,
-0.055201102,
-0.0483602397,
0.2159955204,
0.2498844713,
-0.6144574881,
0.4230563343,
-0.2094127685
] |
https://github.com/huggingface/datasets/issues/4179 | Dataset librispeech_asr fails to load | Sorry maybe the docs haven't been super clear here. By `split` we mean one of `train.500`, `train.360`, `train.100`, `validation`, `test`. For Librispeech, you'll have to specific a config (either `other` or `clean`) though:
```py
datasets.load_dataset("librispeech_asr", "clean")
```
should work and give you all splits (being "train", "test", ...) for the clean config of the dataset.
| ## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
| 55 | Dataset librispeech_asr fails to load
## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
Sorry maybe the docs haven't been super clear here. By `split` we mean one of `train.500`, `train.360`, `train.100`, `validation`, `test`. For Librispeech, you'll have to specific a config (either `other` or `clean`) though:
```py
datasets.load_dataset("librispeech_asr", "clean")
```
should work and give you all splits (being "train", "test", ...) for the clean config of the dataset.
| [
-0.2864782512,
-0.4839607477,
0.0680988878,
0.6340244412,
0.1525813788,
0.2355626971,
0.1461004764,
0.2371000201,
0.2123608291,
-0.0533141494,
-0.1300386786,
0.0948216319,
-0.3211013675,
0.2411901802,
0.0585025474,
-0.0512975715,
-0.1185007244,
0.2319578677,
-0.1747397184,
-0.1202812865,
-0.2381756604,
0.3758117855,
-0.244647786,
-0.0021679148,
-0.1384708285,
0.1862492263,
-0.009389705,
0.3627567887,
-0.1291859597,
-0.1926396787,
0.4450719655,
-0.3261861205,
0.4011134505,
0.3390727341,
-0.0001146799,
0.0329964459,
0.1974485815,
-0.2052498162,
-0.2786283791,
-0.289806664,
-0.3660936654,
0.0728081614,
0.2244331539,
0.0616749004,
-0.1416078657,
0.0959065333,
-0.09597186,
-0.3692120016,
0.3581376076,
0.3308921158,
0.2421030998,
0.2675851285,
-0.1595792472,
-0.1363956332,
0.2256511748,
0.0244018435,
-0.2052274346,
0.0532813296,
-0.0231299177,
0.1362628043,
-0.1791895628,
0.0702883229,
0.0619723722,
0.1473606378,
0.2199425846,
0.0459809341,
-0.391977489,
-0.3175211847,
0.2746736705,
0.336995542,
0.2833821774,
-0.0511116125,
-0.1968611777,
-0.0976551324,
-0.1813508421,
-0.2642343044,
0.2228301167,
0.4577170014,
-0.1431986988,
0.3312956691,
-0.039521385,
-0.2251963019,
-0.0287971534,
0.1777931452,
-0.2345646769,
0.2480503768,
-0.3421917558,
0.1191175133,
0.2713807523,
0.2980136871,
0.0475213304,
0.0374464989,
-0.1076285616,
0.1053528786,
-0.4098748863,
0.1201617047,
-0.0230757874,
0.3578152955,
0.3183113039,
0.2543184161,
0.3351866007,
-0.0567912981,
-0.1030216143,
0.0418856554,
0.1714877933,
0.1504790336,
0.3353461921,
0.2444974631,
0.1273303479,
0.2969776988,
0.0733280331,
-0.0287234038,
-0.1453866363,
0.0265282802,
-0.3238972127,
-0.2516283393,
0.090579167,
-0.4356732965,
-0.429979831,
0.1428477764,
-0.2851963639,
-0.2564659715,
0.2311996818,
0.4139815867,
-0.2897873819,
0.0807069242,
0.0865162835,
0.097397849,
-0.0941822082,
-0.0544150732,
-0.3120336235,
0.0532195568,
-0.4024542272,
0.086422585,
0.2335283309,
-0.6066651344,
0.5037904382,
0.0898015276,
-0.220353961,
-0.1728706658,
-0.1083737612,
-0.0193388294,
0.0864286199,
0.2456523627,
0.0133950226,
0.1891669035,
0.1134424806,
0.1383717209,
-0.1508449167,
-0.0395278484,
-0.0180183481,
-0.3320434988,
-0.06371703,
0.1756086498,
-0.3146348,
0.0615856014,
-0.0899001285,
0.167609781,
0.0622148886,
-0.0055139759,
0.0318340547,
-0.085324131,
-0.2076771557,
-0.1902361959,
0.5690099597,
0.3730202615,
-0.1366893053,
-0.1686149389,
-0.0406845994,
-0.3216864467,
0.3857329488,
0.0762825087,
-0.150485456,
-0.0010953237,
-0.3405222595,
0.0099663176,
0.28325966,
-0.0148163773,
-0.4852282405,
0.2786302269,
-0.0556638651,
0.2238806784,
0.151764527,
-0.0978405252,
0.1624522209,
0.0491041243,
-0.0757374093,
0.5340372324,
-0.0731331185,
-0.1859060079,
-0.4255150259,
-0.3501221538,
-0.0283141062,
0.2779067755,
0.0395111553,
0.0713546127,
0.0686589479,
0.3833122253,
0.40475896,
0.0193243492,
0.1365199834,
0.0492991507,
-0.1654882729,
0.1880507469,
-0.0575998873,
-0.1197341084,
-0.6305850744,
0.1851828247,
0.1123741567,
0.0368365906,
0.0696971864,
-0.0298004225,
-0.3020533323,
-0.2867826819,
-0.3926281035,
-0.6270391941,
-0.031328395,
0.3522002995,
0.1813616306,
-0.1299888194,
-0.3942680955,
0.4097011387,
-0.066686675,
0.300308466,
-0.3543494642,
0.314995259,
-0.012172861,
-0.0458911248,
0.0336125381,
0.2207504362,
-0.0511104427,
-0.3450973332,
-0.1065296605,
0.4643592238,
-0.0471546277,
-0.2043189257,
-0.0967621803,
-0.200274989,
0.1886776388,
-0.3146889508,
0.0309310164,
0.0267330129,
-0.0675479919,
-0.0429656915,
-0.281594187,
0.0404909886,
-0.0744118765,
0.2429829538,
0.1321257055,
0.2587024271,
0.0429504551,
-0.2466962039,
-0.1687053442,
-0.3001501262,
0.3115946949,
-0.4033464491,
0.3609392047,
0.1341481954,
-0.5161659718,
-0.2940068543,
0.3804988265,
0.0380514488,
-0.0731648505,
0.1933140904,
-0.2947484553,
0.1005820781,
0.1228783205,
0.1945212036,
0.3356691003,
0.1269971281,
0.1328823268,
-0.0474080704,
-0.0665145814,
-0.1764679849,
0.1167557314,
-0.046440389,
0.1044843122,
0.1768838316,
-0.1535588354,
-0.0009021947,
-0.4279775321,
-0.1238772124,
0.0457639582,
0.3132143319,
-0.2257510722,
-0.0834868997,
-0.2323193997,
-0.025745701,
-0.3625422418,
-0.2185832113,
-0.1767243147,
-0.1344051957,
-0.2404332459,
0.0231207497,
0.0658278391,
0.2553323507,
-0.2093301415,
0.0455154888,
-0.2299626619,
-0.0861133486,
-0.06768547,
0.1722486913,
-0.4905477762,
0.0619571134,
0.3033004999,
-0.0227272268,
0.2865028083,
-0.2348197103,
-0.2146132886,
-0.1950168461,
-0.1298451424,
0.3056706786,
-0.1167070717,
0.1826789379,
0.3629124165,
0.1371282786,
-0.0958332494,
-0.3102601469,
0.4518939257,
-0.1724716127,
-0.0325743519,
0.1589948982,
0.2692781985,
0.3357319236,
-0.1583157331,
-0.5478576422,
-0.1225892901,
-0.4533905387,
0.1328529567,
-0.0001494011,
0.10310857,
-0.0180252064,
0.0207392387,
0.0804323107,
-0.2305063605,
-0.0341859274,
-0.1984066516,
-0.1629059613,
0.188154906,
-0.2112244964,
-0.2533047795,
-0.1214947999,
0.024821762,
0.2858714759,
0.2720384002,
-0.5524842143,
0.1994642615,
-0.2049172968,
0.061557252,
-0.220301196,
0.2075450867,
0.1768573225,
0.0108304033,
0.1045470536,
-0.1976488829,
-0.134205848,
0.0978321061,
-0.3393347561,
0.4048061967,
0.026120251,
0.3284215033,
0.1798994988,
0.5082939863,
0.3439002931,
-0.1505869627,
0.2079484314,
-0.0767773688,
0.1270885766,
-0.1387688518,
-0.4614744782,
0.2145904452,
-0.0541922785,
0.0859872997,
0.3838814497,
0.1770409495,
0.0867263153,
-0.2817543149,
0.2110205591,
-0.2039252967,
-0.2502623498,
0.0856245384,
-0.0654936433,
0.2703848183,
-0.0466584489,
0.3427773416,
0.4439868927,
-0.1137430221,
0.1540441364,
0.2607249022,
0.1055797711,
0.1045862958,
-0.2147738934,
0.2323487401,
-0.5890905261,
0.2524782121,
-0.2033336163,
0.2313733399,
0.1067977101,
-0.234373644,
0.1468489617,
0.1748058945,
0.5568481684,
-0.1038096249,
0.0312593877,
-0.0269399602,
0.0363913551,
-0.3886358142,
0.0602948405,
-0.1235450432,
0.357295692,
0.2604560852,
0.1288841814,
-0.4553008378,
-0.3058998883,
0.462531656,
0.3624634147,
-0.078130275,
-0.1010163724,
-0.2698169649,
-0.3832364976,
-0.0713698193,
0.0094886664,
-0.1053613573,
0.2986246347,
0.0326921754,
-0.0290651266,
-0.0917467549,
-0.2317258716,
0.3436343372,
0.048843544,
0.4620386958,
-0.0244447012,
0.3545613587,
0.2090846896,
0.1529756933,
0.1588899493,
0.7753596902,
-0.530997932,
-0.3234416842,
0.3394289613,
-0.0593774207,
0.359152019,
0.2475199252,
-0.1589202434,
-0.1059668139,
0.079180479,
0.1149097979,
-0.1743154377,
0.2773796022,
0.215794012,
-0.1469060332,
-0.3367116153,
-0.6409859061,
0.5244445801,
0.2109769136,
-0.0379017629,
0.4387472272,
0.0556856394,
-0.222479403,
0.2947354019,
-0.0873420835,
0.7359089851,
-0.1430234015,
0.1394726187,
0.0099006612,
-0.065290831,
0.4976043701,
0.0095972521,
0.1763355583,
-0.3800457418,
-0.0951292291,
0.0100980941,
-0.1598964781,
0.0856667161,
0.1184604764,
-0.2141382694,
0.2453871667,
-0.1360047907,
0.1520732492,
0.1655341089,
0.4593964815,
-0.2705325484,
-0.2743240893,
-0.1331557781,
0.0567969084,
-0.001141069,
0.5052098036,
0.1192897335,
0.022621816,
-0.0190523881,
-0.2101815492,
-0.2829745412,
0.1276530623,
-0.386944443,
-0.0722983181,
-0.1275293678,
-0.4924767613,
0.1943809539,
0.293585211,
-0.0273949187,
0.1404881179,
-0.0803032294,
0.06772542,
0.0655287504,
0.0284467544,
0.0526911244,
0.0677063912,
0.1891305894,
0.117857635,
0.1071198732,
0.1639722586,
-0.0698303655,
-0.1400986463,
0.1390099078,
0.1591519266,
0.1499558836,
-0.6286535263,
-0.1661227942,
0.1514683962,
0.1900820285,
-0.2809163332,
0.0861292407,
0.2486937493,
-0.1896348447,
0.0260318611,
0.0090269782,
-0.3273123503,
-0.2984621823,
0.1726154685,
-0.0341892317,
-0.0999758542,
0.3035963178,
0.212803632,
0.0676846728,
-0.1772778034,
-0.0159317721,
0.3153965473,
-0.642352283,
0.0941705629,
-0.2409416884,
0.0220355149,
0.1095628738,
0.3932799697,
0.2531152666,
0.0152953612,
-0.0760226473,
-0.3590138257,
-0.0682951137,
0.2626478076,
-0.0593022071,
0.2759030461,
-0.2043926865,
0.3208460212,
0.0046859817,
-0.0540748537,
-0.2642842531,
0.1618343443,
-0.1454033703,
0.0519586131,
0.191051811,
0.0785940513,
0.4121577442,
0.021690743,
0.1333602816,
0.1554798782,
-0.1834117472,
-0.1200242117,
-0.2534926832,
0.1741416156,
0.0770612136,
-0.0195555501,
-0.2574189007,
-0.031388741,
-0.0771992728,
-0.1802418083,
0.2131407261,
0.1678884923,
0.0091988593,
0.0298049524,
0.1381466091,
0.0481963865,
-0.2464935482,
0.0261424556,
-0.1572972238,
0.1787124127,
0.2133847177,
0.2083948702,
0.0917931944,
0.0091936449,
0.1396328211,
-0.0103379181,
0.0379468836,
-0.0624681748,
0.1630109549,
-0.1767688692,
-0.0162948761,
0.35221982,
0.3606503606,
0.6477940679,
0.0245407932,
0.03398012,
0.0495627522,
0.1878281832,
-0.0321508162,
0.0980357751,
-0.1004558653,
0.0919480249,
0.0560002662,
0.4105974734,
-0.0531525575,
-0.0132504739,
-0.1128897294,
0.0749023035,
0.2782758474,
0.147705853,
0.3298525512,
0.5117224455,
-0.1850787997,
0.1615472585,
0.2609502375,
-0.2239239067,
0.1490018368,
0.1710413992,
-0.1418040544,
0.1291326731,
-0.3158312142,
0.2990640402,
0.0547156334,
-0.4963174164,
-0.0185962636,
0.216869235,
0.0663458034,
0.056246426,
-0.3770386279,
0.7253003716,
-0.4944148362,
-0.0363312326,
-0.1224296093,
0.0670954138,
-0.1599614918,
-0.1032060683,
0.0488659851,
-0.3158009052,
-0.2405025065,
0.1546079367,
-0.1400933862,
-0.1664374173,
0.3451707959,
-0.0109833926,
-0.2324232012,
-0.1736872345,
-0.2747785151,
0.2652488947,
-0.0639500394,
-0.2120301127,
0.4075476229,
0.0200092215,
-0.0737337843,
0.0842469707,
0.2317490131,
0.0704865605,
0.1353722066,
0.1280502677,
-0.1436004788,
-0.0078353062,
0.1166250408,
-0.2023311853,
0.3975357711,
0.1891568899,
0.0882424861,
0.4073221982,
0.1042698547,
-0.1981185377,
-0.0012606864,
-0.1564842314,
0.127236709,
-0.4012547135,
0.3482406437,
-0.0875969231,
-0.0524771586,
0.0356824249,
-0.0328328647,
-0.3564702868,
0.0889320225,
0.0010806683,
-0.0370233245,
-0.0447664894,
-0.1471876651,
0.0532829538,
0.2223320603,
0.2792684138,
0.298550725,
0.198695913,
-0.3808215261,
-0.5446336269,
-0.6770581007,
0.1334835142,
-0.0690003857,
-0.1824921817,
-0.050510142,
0.268997997,
0.0630564615,
0.2376863062,
0.0260300189,
0.1445351094,
0.1766326278,
0.0907215253,
0.0740232915,
-0.1434726864,
-0.0002061721,
0.0970932022,
-0.0242455136,
-0.3749291003,
0.0644176379,
-0.1649257392,
-0.052681379,
-0.235813126,
-0.1780257076,
0.2120485902,
-0.2146486342,
0.2914566696,
0.1977299154,
0.2918566763,
-0.0089650229,
-0.2792397141,
-0.3359559476,
-0.253347069,
-0.1910103112,
0.1218583211,
0.0248805825,
0.4896282852,
-0.1717040092,
-0.2483383268,
-0.5496247411,
0.3322091699,
0.3946073949,
0.1816078871,
-0.2106709331,
0.0724768117,
-0.0693016052,
-0.0852324963,
0.5066688657,
0.7129359245,
-0.2175035626,
-0.1399034709,
-0.2383049428,
-0.4474014342,
0.3651693761,
-0.2178668082,
-0.0264252201,
0.0368811451,
0.2639951706,
0.3638981581,
-0.2047504932,
-0.7203478813,
-0.2053184658,
0.3049063385,
0.0050100288,
-0.2338485271,
0.0728422329,
0.017467754,
-0.055201102,
-0.0483602397,
0.2159955204,
0.2498844713,
-0.6144574881,
0.4230563343,
-0.2094127685
] |
https://github.com/huggingface/datasets/issues/4179 | Dataset librispeech_asr fails to load | If you need both `"clean"` and `"other"` I think you'll have to do concatenate them as follows:
```py
from datasets import concatenate_datasets, load_dataset
other = load_dataset("librispeech_asr", "other")
clean = load_dataset("librispeech_asr", "clean")
librispeech = concatenate_datasets([other, clean])
```
See https://huggingface.co/docs/datasets/v2.1.0/en/process#concatenate | ## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
| 38 | Dataset librispeech_asr fails to load
## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
If you need both `"clean"` and `"other"` I think you'll have to do concatenate them as follows:
```py
from datasets import concatenate_datasets, load_dataset
other = load_dataset("librispeech_asr", "other")
clean = load_dataset("librispeech_asr", "clean")
librispeech = concatenate_datasets([other, clean])
```
See https://huggingface.co/docs/datasets/v2.1.0/en/process#concatenate | [
-0.2864782512,
-0.4839607477,
0.0680988878,
0.6340244412,
0.1525813788,
0.2355626971,
0.1461004764,
0.2371000201,
0.2123608291,
-0.0533141494,
-0.1300386786,
0.0948216319,
-0.3211013675,
0.2411901802,
0.0585025474,
-0.0512975715,
-0.1185007244,
0.2319578677,
-0.1747397184,
-0.1202812865,
-0.2381756604,
0.3758117855,
-0.244647786,
-0.0021679148,
-0.1384708285,
0.1862492263,
-0.009389705,
0.3627567887,
-0.1291859597,
-0.1926396787,
0.4450719655,
-0.3261861205,
0.4011134505,
0.3390727341,
-0.0001146799,
0.0329964459,
0.1974485815,
-0.2052498162,
-0.2786283791,
-0.289806664,
-0.3660936654,
0.0728081614,
0.2244331539,
0.0616749004,
-0.1416078657,
0.0959065333,
-0.09597186,
-0.3692120016,
0.3581376076,
0.3308921158,
0.2421030998,
0.2675851285,
-0.1595792472,
-0.1363956332,
0.2256511748,
0.0244018435,
-0.2052274346,
0.0532813296,
-0.0231299177,
0.1362628043,
-0.1791895628,
0.0702883229,
0.0619723722,
0.1473606378,
0.2199425846,
0.0459809341,
-0.391977489,
-0.3175211847,
0.2746736705,
0.336995542,
0.2833821774,
-0.0511116125,
-0.1968611777,
-0.0976551324,
-0.1813508421,
-0.2642343044,
0.2228301167,
0.4577170014,
-0.1431986988,
0.3312956691,
-0.039521385,
-0.2251963019,
-0.0287971534,
0.1777931452,
-0.2345646769,
0.2480503768,
-0.3421917558,
0.1191175133,
0.2713807523,
0.2980136871,
0.0475213304,
0.0374464989,
-0.1076285616,
0.1053528786,
-0.4098748863,
0.1201617047,
-0.0230757874,
0.3578152955,
0.3183113039,
0.2543184161,
0.3351866007,
-0.0567912981,
-0.1030216143,
0.0418856554,
0.1714877933,
0.1504790336,
0.3353461921,
0.2444974631,
0.1273303479,
0.2969776988,
0.0733280331,
-0.0287234038,
-0.1453866363,
0.0265282802,
-0.3238972127,
-0.2516283393,
0.090579167,
-0.4356732965,
-0.429979831,
0.1428477764,
-0.2851963639,
-0.2564659715,
0.2311996818,
0.4139815867,
-0.2897873819,
0.0807069242,
0.0865162835,
0.097397849,
-0.0941822082,
-0.0544150732,
-0.3120336235,
0.0532195568,
-0.4024542272,
0.086422585,
0.2335283309,
-0.6066651344,
0.5037904382,
0.0898015276,
-0.220353961,
-0.1728706658,
-0.1083737612,
-0.0193388294,
0.0864286199,
0.2456523627,
0.0133950226,
0.1891669035,
0.1134424806,
0.1383717209,
-0.1508449167,
-0.0395278484,
-0.0180183481,
-0.3320434988,
-0.06371703,
0.1756086498,
-0.3146348,
0.0615856014,
-0.0899001285,
0.167609781,
0.0622148886,
-0.0055139759,
0.0318340547,
-0.085324131,
-0.2076771557,
-0.1902361959,
0.5690099597,
0.3730202615,
-0.1366893053,
-0.1686149389,
-0.0406845994,
-0.3216864467,
0.3857329488,
0.0762825087,
-0.150485456,
-0.0010953237,
-0.3405222595,
0.0099663176,
0.28325966,
-0.0148163773,
-0.4852282405,
0.2786302269,
-0.0556638651,
0.2238806784,
0.151764527,
-0.0978405252,
0.1624522209,
0.0491041243,
-0.0757374093,
0.5340372324,
-0.0731331185,
-0.1859060079,
-0.4255150259,
-0.3501221538,
-0.0283141062,
0.2779067755,
0.0395111553,
0.0713546127,
0.0686589479,
0.3833122253,
0.40475896,
0.0193243492,
0.1365199834,
0.0492991507,
-0.1654882729,
0.1880507469,
-0.0575998873,
-0.1197341084,
-0.6305850744,
0.1851828247,
0.1123741567,
0.0368365906,
0.0696971864,
-0.0298004225,
-0.3020533323,
-0.2867826819,
-0.3926281035,
-0.6270391941,
-0.031328395,
0.3522002995,
0.1813616306,
-0.1299888194,
-0.3942680955,
0.4097011387,
-0.066686675,
0.300308466,
-0.3543494642,
0.314995259,
-0.012172861,
-0.0458911248,
0.0336125381,
0.2207504362,
-0.0511104427,
-0.3450973332,
-0.1065296605,
0.4643592238,
-0.0471546277,
-0.2043189257,
-0.0967621803,
-0.200274989,
0.1886776388,
-0.3146889508,
0.0309310164,
0.0267330129,
-0.0675479919,
-0.0429656915,
-0.281594187,
0.0404909886,
-0.0744118765,
0.2429829538,
0.1321257055,
0.2587024271,
0.0429504551,
-0.2466962039,
-0.1687053442,
-0.3001501262,
0.3115946949,
-0.4033464491,
0.3609392047,
0.1341481954,
-0.5161659718,
-0.2940068543,
0.3804988265,
0.0380514488,
-0.0731648505,
0.1933140904,
-0.2947484553,
0.1005820781,
0.1228783205,
0.1945212036,
0.3356691003,
0.1269971281,
0.1328823268,
-0.0474080704,
-0.0665145814,
-0.1764679849,
0.1167557314,
-0.046440389,
0.1044843122,
0.1768838316,
-0.1535588354,
-0.0009021947,
-0.4279775321,
-0.1238772124,
0.0457639582,
0.3132143319,
-0.2257510722,
-0.0834868997,
-0.2323193997,
-0.025745701,
-0.3625422418,
-0.2185832113,
-0.1767243147,
-0.1344051957,
-0.2404332459,
0.0231207497,
0.0658278391,
0.2553323507,
-0.2093301415,
0.0455154888,
-0.2299626619,
-0.0861133486,
-0.06768547,
0.1722486913,
-0.4905477762,
0.0619571134,
0.3033004999,
-0.0227272268,
0.2865028083,
-0.2348197103,
-0.2146132886,
-0.1950168461,
-0.1298451424,
0.3056706786,
-0.1167070717,
0.1826789379,
0.3629124165,
0.1371282786,
-0.0958332494,
-0.3102601469,
0.4518939257,
-0.1724716127,
-0.0325743519,
0.1589948982,
0.2692781985,
0.3357319236,
-0.1583157331,
-0.5478576422,
-0.1225892901,
-0.4533905387,
0.1328529567,
-0.0001494011,
0.10310857,
-0.0180252064,
0.0207392387,
0.0804323107,
-0.2305063605,
-0.0341859274,
-0.1984066516,
-0.1629059613,
0.188154906,
-0.2112244964,
-0.2533047795,
-0.1214947999,
0.024821762,
0.2858714759,
0.2720384002,
-0.5524842143,
0.1994642615,
-0.2049172968,
0.061557252,
-0.220301196,
0.2075450867,
0.1768573225,
0.0108304033,
0.1045470536,
-0.1976488829,
-0.134205848,
0.0978321061,
-0.3393347561,
0.4048061967,
0.026120251,
0.3284215033,
0.1798994988,
0.5082939863,
0.3439002931,
-0.1505869627,
0.2079484314,
-0.0767773688,
0.1270885766,
-0.1387688518,
-0.4614744782,
0.2145904452,
-0.0541922785,
0.0859872997,
0.3838814497,
0.1770409495,
0.0867263153,
-0.2817543149,
0.2110205591,
-0.2039252967,
-0.2502623498,
0.0856245384,
-0.0654936433,
0.2703848183,
-0.0466584489,
0.3427773416,
0.4439868927,
-0.1137430221,
0.1540441364,
0.2607249022,
0.1055797711,
0.1045862958,
-0.2147738934,
0.2323487401,
-0.5890905261,
0.2524782121,
-0.2033336163,
0.2313733399,
0.1067977101,
-0.234373644,
0.1468489617,
0.1748058945,
0.5568481684,
-0.1038096249,
0.0312593877,
-0.0269399602,
0.0363913551,
-0.3886358142,
0.0602948405,
-0.1235450432,
0.357295692,
0.2604560852,
0.1288841814,
-0.4553008378,
-0.3058998883,
0.462531656,
0.3624634147,
-0.078130275,
-0.1010163724,
-0.2698169649,
-0.3832364976,
-0.0713698193,
0.0094886664,
-0.1053613573,
0.2986246347,
0.0326921754,
-0.0290651266,
-0.0917467549,
-0.2317258716,
0.3436343372,
0.048843544,
0.4620386958,
-0.0244447012,
0.3545613587,
0.2090846896,
0.1529756933,
0.1588899493,
0.7753596902,
-0.530997932,
-0.3234416842,
0.3394289613,
-0.0593774207,
0.359152019,
0.2475199252,
-0.1589202434,
-0.1059668139,
0.079180479,
0.1149097979,
-0.1743154377,
0.2773796022,
0.215794012,
-0.1469060332,
-0.3367116153,
-0.6409859061,
0.5244445801,
0.2109769136,
-0.0379017629,
0.4387472272,
0.0556856394,
-0.222479403,
0.2947354019,
-0.0873420835,
0.7359089851,
-0.1430234015,
0.1394726187,
0.0099006612,
-0.065290831,
0.4976043701,
0.0095972521,
0.1763355583,
-0.3800457418,
-0.0951292291,
0.0100980941,
-0.1598964781,
0.0856667161,
0.1184604764,
-0.2141382694,
0.2453871667,
-0.1360047907,
0.1520732492,
0.1655341089,
0.4593964815,
-0.2705325484,
-0.2743240893,
-0.1331557781,
0.0567969084,
-0.001141069,
0.5052098036,
0.1192897335,
0.022621816,
-0.0190523881,
-0.2101815492,
-0.2829745412,
0.1276530623,
-0.386944443,
-0.0722983181,
-0.1275293678,
-0.4924767613,
0.1943809539,
0.293585211,
-0.0273949187,
0.1404881179,
-0.0803032294,
0.06772542,
0.0655287504,
0.0284467544,
0.0526911244,
0.0677063912,
0.1891305894,
0.117857635,
0.1071198732,
0.1639722586,
-0.0698303655,
-0.1400986463,
0.1390099078,
0.1591519266,
0.1499558836,
-0.6286535263,
-0.1661227942,
0.1514683962,
0.1900820285,
-0.2809163332,
0.0861292407,
0.2486937493,
-0.1896348447,
0.0260318611,
0.0090269782,
-0.3273123503,
-0.2984621823,
0.1726154685,
-0.0341892317,
-0.0999758542,
0.3035963178,
0.212803632,
0.0676846728,
-0.1772778034,
-0.0159317721,
0.3153965473,
-0.642352283,
0.0941705629,
-0.2409416884,
0.0220355149,
0.1095628738,
0.3932799697,
0.2531152666,
0.0152953612,
-0.0760226473,
-0.3590138257,
-0.0682951137,
0.2626478076,
-0.0593022071,
0.2759030461,
-0.2043926865,
0.3208460212,
0.0046859817,
-0.0540748537,
-0.2642842531,
0.1618343443,
-0.1454033703,
0.0519586131,
0.191051811,
0.0785940513,
0.4121577442,
0.021690743,
0.1333602816,
0.1554798782,
-0.1834117472,
-0.1200242117,
-0.2534926832,
0.1741416156,
0.0770612136,
-0.0195555501,
-0.2574189007,
-0.031388741,
-0.0771992728,
-0.1802418083,
0.2131407261,
0.1678884923,
0.0091988593,
0.0298049524,
0.1381466091,
0.0481963865,
-0.2464935482,
0.0261424556,
-0.1572972238,
0.1787124127,
0.2133847177,
0.2083948702,
0.0917931944,
0.0091936449,
0.1396328211,
-0.0103379181,
0.0379468836,
-0.0624681748,
0.1630109549,
-0.1767688692,
-0.0162948761,
0.35221982,
0.3606503606,
0.6477940679,
0.0245407932,
0.03398012,
0.0495627522,
0.1878281832,
-0.0321508162,
0.0980357751,
-0.1004558653,
0.0919480249,
0.0560002662,
0.4105974734,
-0.0531525575,
-0.0132504739,
-0.1128897294,
0.0749023035,
0.2782758474,
0.147705853,
0.3298525512,
0.5117224455,
-0.1850787997,
0.1615472585,
0.2609502375,
-0.2239239067,
0.1490018368,
0.1710413992,
-0.1418040544,
0.1291326731,
-0.3158312142,
0.2990640402,
0.0547156334,
-0.4963174164,
-0.0185962636,
0.216869235,
0.0663458034,
0.056246426,
-0.3770386279,
0.7253003716,
-0.4944148362,
-0.0363312326,
-0.1224296093,
0.0670954138,
-0.1599614918,
-0.1032060683,
0.0488659851,
-0.3158009052,
-0.2405025065,
0.1546079367,
-0.1400933862,
-0.1664374173,
0.3451707959,
-0.0109833926,
-0.2324232012,
-0.1736872345,
-0.2747785151,
0.2652488947,
-0.0639500394,
-0.2120301127,
0.4075476229,
0.0200092215,
-0.0737337843,
0.0842469707,
0.2317490131,
0.0704865605,
0.1353722066,
0.1280502677,
-0.1436004788,
-0.0078353062,
0.1166250408,
-0.2023311853,
0.3975357711,
0.1891568899,
0.0882424861,
0.4073221982,
0.1042698547,
-0.1981185377,
-0.0012606864,
-0.1564842314,
0.127236709,
-0.4012547135,
0.3482406437,
-0.0875969231,
-0.0524771586,
0.0356824249,
-0.0328328647,
-0.3564702868,
0.0889320225,
0.0010806683,
-0.0370233245,
-0.0447664894,
-0.1471876651,
0.0532829538,
0.2223320603,
0.2792684138,
0.298550725,
0.198695913,
-0.3808215261,
-0.5446336269,
-0.6770581007,
0.1334835142,
-0.0690003857,
-0.1824921817,
-0.050510142,
0.268997997,
0.0630564615,
0.2376863062,
0.0260300189,
0.1445351094,
0.1766326278,
0.0907215253,
0.0740232915,
-0.1434726864,
-0.0002061721,
0.0970932022,
-0.0242455136,
-0.3749291003,
0.0644176379,
-0.1649257392,
-0.052681379,
-0.235813126,
-0.1780257076,
0.2120485902,
-0.2146486342,
0.2914566696,
0.1977299154,
0.2918566763,
-0.0089650229,
-0.2792397141,
-0.3359559476,
-0.253347069,
-0.1910103112,
0.1218583211,
0.0248805825,
0.4896282852,
-0.1717040092,
-0.2483383268,
-0.5496247411,
0.3322091699,
0.3946073949,
0.1816078871,
-0.2106709331,
0.0724768117,
-0.0693016052,
-0.0852324963,
0.5066688657,
0.7129359245,
-0.2175035626,
-0.1399034709,
-0.2383049428,
-0.4474014342,
0.3651693761,
-0.2178668082,
-0.0264252201,
0.0368811451,
0.2639951706,
0.3638981581,
-0.2047504932,
-0.7203478813,
-0.2053184658,
0.3049063385,
0.0050100288,
-0.2338485271,
0.0728422329,
0.017467754,
-0.055201102,
-0.0483602397,
0.2159955204,
0.2498844713,
-0.6144574881,
0.4230563343,
-0.2094127685
] |
https://github.com/huggingface/datasets/issues/4179 | Dataset librispeech_asr fails to load | Downloading one split would be:
```py
from datasets import load_dataset
other = load_dataset("librispeech_asr", "other", split="train.500")
```
| ## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
| 16 | Dataset librispeech_asr fails to load
## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
Downloading one split would be:
```py
from datasets import load_dataset
other = load_dataset("librispeech_asr", "other", split="train.500")
```
| [
-0.2864782512,
-0.4839607477,
0.0680988878,
0.6340244412,
0.1525813788,
0.2355626971,
0.1461004764,
0.2371000201,
0.2123608291,
-0.0533141494,
-0.1300386786,
0.0948216319,
-0.3211013675,
0.2411901802,
0.0585025474,
-0.0512975715,
-0.1185007244,
0.2319578677,
-0.1747397184,
-0.1202812865,
-0.2381756604,
0.3758117855,
-0.244647786,
-0.0021679148,
-0.1384708285,
0.1862492263,
-0.009389705,
0.3627567887,
-0.1291859597,
-0.1926396787,
0.4450719655,
-0.3261861205,
0.4011134505,
0.3390727341,
-0.0001146799,
0.0329964459,
0.1974485815,
-0.2052498162,
-0.2786283791,
-0.289806664,
-0.3660936654,
0.0728081614,
0.2244331539,
0.0616749004,
-0.1416078657,
0.0959065333,
-0.09597186,
-0.3692120016,
0.3581376076,
0.3308921158,
0.2421030998,
0.2675851285,
-0.1595792472,
-0.1363956332,
0.2256511748,
0.0244018435,
-0.2052274346,
0.0532813296,
-0.0231299177,
0.1362628043,
-0.1791895628,
0.0702883229,
0.0619723722,
0.1473606378,
0.2199425846,
0.0459809341,
-0.391977489,
-0.3175211847,
0.2746736705,
0.336995542,
0.2833821774,
-0.0511116125,
-0.1968611777,
-0.0976551324,
-0.1813508421,
-0.2642343044,
0.2228301167,
0.4577170014,
-0.1431986988,
0.3312956691,
-0.039521385,
-0.2251963019,
-0.0287971534,
0.1777931452,
-0.2345646769,
0.2480503768,
-0.3421917558,
0.1191175133,
0.2713807523,
0.2980136871,
0.0475213304,
0.0374464989,
-0.1076285616,
0.1053528786,
-0.4098748863,
0.1201617047,
-0.0230757874,
0.3578152955,
0.3183113039,
0.2543184161,
0.3351866007,
-0.0567912981,
-0.1030216143,
0.0418856554,
0.1714877933,
0.1504790336,
0.3353461921,
0.2444974631,
0.1273303479,
0.2969776988,
0.0733280331,
-0.0287234038,
-0.1453866363,
0.0265282802,
-0.3238972127,
-0.2516283393,
0.090579167,
-0.4356732965,
-0.429979831,
0.1428477764,
-0.2851963639,
-0.2564659715,
0.2311996818,
0.4139815867,
-0.2897873819,
0.0807069242,
0.0865162835,
0.097397849,
-0.0941822082,
-0.0544150732,
-0.3120336235,
0.0532195568,
-0.4024542272,
0.086422585,
0.2335283309,
-0.6066651344,
0.5037904382,
0.0898015276,
-0.220353961,
-0.1728706658,
-0.1083737612,
-0.0193388294,
0.0864286199,
0.2456523627,
0.0133950226,
0.1891669035,
0.1134424806,
0.1383717209,
-0.1508449167,
-0.0395278484,
-0.0180183481,
-0.3320434988,
-0.06371703,
0.1756086498,
-0.3146348,
0.0615856014,
-0.0899001285,
0.167609781,
0.0622148886,
-0.0055139759,
0.0318340547,
-0.085324131,
-0.2076771557,
-0.1902361959,
0.5690099597,
0.3730202615,
-0.1366893053,
-0.1686149389,
-0.0406845994,
-0.3216864467,
0.3857329488,
0.0762825087,
-0.150485456,
-0.0010953237,
-0.3405222595,
0.0099663176,
0.28325966,
-0.0148163773,
-0.4852282405,
0.2786302269,
-0.0556638651,
0.2238806784,
0.151764527,
-0.0978405252,
0.1624522209,
0.0491041243,
-0.0757374093,
0.5340372324,
-0.0731331185,
-0.1859060079,
-0.4255150259,
-0.3501221538,
-0.0283141062,
0.2779067755,
0.0395111553,
0.0713546127,
0.0686589479,
0.3833122253,
0.40475896,
0.0193243492,
0.1365199834,
0.0492991507,
-0.1654882729,
0.1880507469,
-0.0575998873,
-0.1197341084,
-0.6305850744,
0.1851828247,
0.1123741567,
0.0368365906,
0.0696971864,
-0.0298004225,
-0.3020533323,
-0.2867826819,
-0.3926281035,
-0.6270391941,
-0.031328395,
0.3522002995,
0.1813616306,
-0.1299888194,
-0.3942680955,
0.4097011387,
-0.066686675,
0.300308466,
-0.3543494642,
0.314995259,
-0.012172861,
-0.0458911248,
0.0336125381,
0.2207504362,
-0.0511104427,
-0.3450973332,
-0.1065296605,
0.4643592238,
-0.0471546277,
-0.2043189257,
-0.0967621803,
-0.200274989,
0.1886776388,
-0.3146889508,
0.0309310164,
0.0267330129,
-0.0675479919,
-0.0429656915,
-0.281594187,
0.0404909886,
-0.0744118765,
0.2429829538,
0.1321257055,
0.2587024271,
0.0429504551,
-0.2466962039,
-0.1687053442,
-0.3001501262,
0.3115946949,
-0.4033464491,
0.3609392047,
0.1341481954,
-0.5161659718,
-0.2940068543,
0.3804988265,
0.0380514488,
-0.0731648505,
0.1933140904,
-0.2947484553,
0.1005820781,
0.1228783205,
0.1945212036,
0.3356691003,
0.1269971281,
0.1328823268,
-0.0474080704,
-0.0665145814,
-0.1764679849,
0.1167557314,
-0.046440389,
0.1044843122,
0.1768838316,
-0.1535588354,
-0.0009021947,
-0.4279775321,
-0.1238772124,
0.0457639582,
0.3132143319,
-0.2257510722,
-0.0834868997,
-0.2323193997,
-0.025745701,
-0.3625422418,
-0.2185832113,
-0.1767243147,
-0.1344051957,
-0.2404332459,
0.0231207497,
0.0658278391,
0.2553323507,
-0.2093301415,
0.0455154888,
-0.2299626619,
-0.0861133486,
-0.06768547,
0.1722486913,
-0.4905477762,
0.0619571134,
0.3033004999,
-0.0227272268,
0.2865028083,
-0.2348197103,
-0.2146132886,
-0.1950168461,
-0.1298451424,
0.3056706786,
-0.1167070717,
0.1826789379,
0.3629124165,
0.1371282786,
-0.0958332494,
-0.3102601469,
0.4518939257,
-0.1724716127,
-0.0325743519,
0.1589948982,
0.2692781985,
0.3357319236,
-0.1583157331,
-0.5478576422,
-0.1225892901,
-0.4533905387,
0.1328529567,
-0.0001494011,
0.10310857,
-0.0180252064,
0.0207392387,
0.0804323107,
-0.2305063605,
-0.0341859274,
-0.1984066516,
-0.1629059613,
0.188154906,
-0.2112244964,
-0.2533047795,
-0.1214947999,
0.024821762,
0.2858714759,
0.2720384002,
-0.5524842143,
0.1994642615,
-0.2049172968,
0.061557252,
-0.220301196,
0.2075450867,
0.1768573225,
0.0108304033,
0.1045470536,
-0.1976488829,
-0.134205848,
0.0978321061,
-0.3393347561,
0.4048061967,
0.026120251,
0.3284215033,
0.1798994988,
0.5082939863,
0.3439002931,
-0.1505869627,
0.2079484314,
-0.0767773688,
0.1270885766,
-0.1387688518,
-0.4614744782,
0.2145904452,
-0.0541922785,
0.0859872997,
0.3838814497,
0.1770409495,
0.0867263153,
-0.2817543149,
0.2110205591,
-0.2039252967,
-0.2502623498,
0.0856245384,
-0.0654936433,
0.2703848183,
-0.0466584489,
0.3427773416,
0.4439868927,
-0.1137430221,
0.1540441364,
0.2607249022,
0.1055797711,
0.1045862958,
-0.2147738934,
0.2323487401,
-0.5890905261,
0.2524782121,
-0.2033336163,
0.2313733399,
0.1067977101,
-0.234373644,
0.1468489617,
0.1748058945,
0.5568481684,
-0.1038096249,
0.0312593877,
-0.0269399602,
0.0363913551,
-0.3886358142,
0.0602948405,
-0.1235450432,
0.357295692,
0.2604560852,
0.1288841814,
-0.4553008378,
-0.3058998883,
0.462531656,
0.3624634147,
-0.078130275,
-0.1010163724,
-0.2698169649,
-0.3832364976,
-0.0713698193,
0.0094886664,
-0.1053613573,
0.2986246347,
0.0326921754,
-0.0290651266,
-0.0917467549,
-0.2317258716,
0.3436343372,
0.048843544,
0.4620386958,
-0.0244447012,
0.3545613587,
0.2090846896,
0.1529756933,
0.1588899493,
0.7753596902,
-0.530997932,
-0.3234416842,
0.3394289613,
-0.0593774207,
0.359152019,
0.2475199252,
-0.1589202434,
-0.1059668139,
0.079180479,
0.1149097979,
-0.1743154377,
0.2773796022,
0.215794012,
-0.1469060332,
-0.3367116153,
-0.6409859061,
0.5244445801,
0.2109769136,
-0.0379017629,
0.4387472272,
0.0556856394,
-0.222479403,
0.2947354019,
-0.0873420835,
0.7359089851,
-0.1430234015,
0.1394726187,
0.0099006612,
-0.065290831,
0.4976043701,
0.0095972521,
0.1763355583,
-0.3800457418,
-0.0951292291,
0.0100980941,
-0.1598964781,
0.0856667161,
0.1184604764,
-0.2141382694,
0.2453871667,
-0.1360047907,
0.1520732492,
0.1655341089,
0.4593964815,
-0.2705325484,
-0.2743240893,
-0.1331557781,
0.0567969084,
-0.001141069,
0.5052098036,
0.1192897335,
0.022621816,
-0.0190523881,
-0.2101815492,
-0.2829745412,
0.1276530623,
-0.386944443,
-0.0722983181,
-0.1275293678,
-0.4924767613,
0.1943809539,
0.293585211,
-0.0273949187,
0.1404881179,
-0.0803032294,
0.06772542,
0.0655287504,
0.0284467544,
0.0526911244,
0.0677063912,
0.1891305894,
0.117857635,
0.1071198732,
0.1639722586,
-0.0698303655,
-0.1400986463,
0.1390099078,
0.1591519266,
0.1499558836,
-0.6286535263,
-0.1661227942,
0.1514683962,
0.1900820285,
-0.2809163332,
0.0861292407,
0.2486937493,
-0.1896348447,
0.0260318611,
0.0090269782,
-0.3273123503,
-0.2984621823,
0.1726154685,
-0.0341892317,
-0.0999758542,
0.3035963178,
0.212803632,
0.0676846728,
-0.1772778034,
-0.0159317721,
0.3153965473,
-0.642352283,
0.0941705629,
-0.2409416884,
0.0220355149,
0.1095628738,
0.3932799697,
0.2531152666,
0.0152953612,
-0.0760226473,
-0.3590138257,
-0.0682951137,
0.2626478076,
-0.0593022071,
0.2759030461,
-0.2043926865,
0.3208460212,
0.0046859817,
-0.0540748537,
-0.2642842531,
0.1618343443,
-0.1454033703,
0.0519586131,
0.191051811,
0.0785940513,
0.4121577442,
0.021690743,
0.1333602816,
0.1554798782,
-0.1834117472,
-0.1200242117,
-0.2534926832,
0.1741416156,
0.0770612136,
-0.0195555501,
-0.2574189007,
-0.031388741,
-0.0771992728,
-0.1802418083,
0.2131407261,
0.1678884923,
0.0091988593,
0.0298049524,
0.1381466091,
0.0481963865,
-0.2464935482,
0.0261424556,
-0.1572972238,
0.1787124127,
0.2133847177,
0.2083948702,
0.0917931944,
0.0091936449,
0.1396328211,
-0.0103379181,
0.0379468836,
-0.0624681748,
0.1630109549,
-0.1767688692,
-0.0162948761,
0.35221982,
0.3606503606,
0.6477940679,
0.0245407932,
0.03398012,
0.0495627522,
0.1878281832,
-0.0321508162,
0.0980357751,
-0.1004558653,
0.0919480249,
0.0560002662,
0.4105974734,
-0.0531525575,
-0.0132504739,
-0.1128897294,
0.0749023035,
0.2782758474,
0.147705853,
0.3298525512,
0.5117224455,
-0.1850787997,
0.1615472585,
0.2609502375,
-0.2239239067,
0.1490018368,
0.1710413992,
-0.1418040544,
0.1291326731,
-0.3158312142,
0.2990640402,
0.0547156334,
-0.4963174164,
-0.0185962636,
0.216869235,
0.0663458034,
0.056246426,
-0.3770386279,
0.7253003716,
-0.4944148362,
-0.0363312326,
-0.1224296093,
0.0670954138,
-0.1599614918,
-0.1032060683,
0.0488659851,
-0.3158009052,
-0.2405025065,
0.1546079367,
-0.1400933862,
-0.1664374173,
0.3451707959,
-0.0109833926,
-0.2324232012,
-0.1736872345,
-0.2747785151,
0.2652488947,
-0.0639500394,
-0.2120301127,
0.4075476229,
0.0200092215,
-0.0737337843,
0.0842469707,
0.2317490131,
0.0704865605,
0.1353722066,
0.1280502677,
-0.1436004788,
-0.0078353062,
0.1166250408,
-0.2023311853,
0.3975357711,
0.1891568899,
0.0882424861,
0.4073221982,
0.1042698547,
-0.1981185377,
-0.0012606864,
-0.1564842314,
0.127236709,
-0.4012547135,
0.3482406437,
-0.0875969231,
-0.0524771586,
0.0356824249,
-0.0328328647,
-0.3564702868,
0.0889320225,
0.0010806683,
-0.0370233245,
-0.0447664894,
-0.1471876651,
0.0532829538,
0.2223320603,
0.2792684138,
0.298550725,
0.198695913,
-0.3808215261,
-0.5446336269,
-0.6770581007,
0.1334835142,
-0.0690003857,
-0.1824921817,
-0.050510142,
0.268997997,
0.0630564615,
0.2376863062,
0.0260300189,
0.1445351094,
0.1766326278,
0.0907215253,
0.0740232915,
-0.1434726864,
-0.0002061721,
0.0970932022,
-0.0242455136,
-0.3749291003,
0.0644176379,
-0.1649257392,
-0.052681379,
-0.235813126,
-0.1780257076,
0.2120485902,
-0.2146486342,
0.2914566696,
0.1977299154,
0.2918566763,
-0.0089650229,
-0.2792397141,
-0.3359559476,
-0.253347069,
-0.1910103112,
0.1218583211,
0.0248805825,
0.4896282852,
-0.1717040092,
-0.2483383268,
-0.5496247411,
0.3322091699,
0.3946073949,
0.1816078871,
-0.2106709331,
0.0724768117,
-0.0693016052,
-0.0852324963,
0.5066688657,
0.7129359245,
-0.2175035626,
-0.1399034709,
-0.2383049428,
-0.4474014342,
0.3651693761,
-0.2178668082,
-0.0264252201,
0.0368811451,
0.2639951706,
0.3638981581,
-0.2047504932,
-0.7203478813,
-0.2053184658,
0.3049063385,
0.0050100288,
-0.2338485271,
0.0728422329,
0.017467754,
-0.055201102,
-0.0483602397,
0.2159955204,
0.2498844713,
-0.6144574881,
0.4230563343,
-0.2094127685
] |
https://github.com/huggingface/datasets/issues/4179 | Dataset librispeech_asr fails to load | Ah thanks. But wouldn't it be easier/nicer (and more canonical) to just make it in a way that simply `load_dataset("librispeech_asr")` works? | ## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
| 21 | Dataset librispeech_asr fails to load
## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
Ah thanks. But wouldn't it be easier/nicer (and more canonical) to just make it in a way that simply `load_dataset("librispeech_asr")` works? | [
-0.2864782512,
-0.4839607477,
0.0680988878,
0.6340244412,
0.1525813788,
0.2355626971,
0.1461004764,
0.2371000201,
0.2123608291,
-0.0533141494,
-0.1300386786,
0.0948216319,
-0.3211013675,
0.2411901802,
0.0585025474,
-0.0512975715,
-0.1185007244,
0.2319578677,
-0.1747397184,
-0.1202812865,
-0.2381756604,
0.3758117855,
-0.244647786,
-0.0021679148,
-0.1384708285,
0.1862492263,
-0.009389705,
0.3627567887,
-0.1291859597,
-0.1926396787,
0.4450719655,
-0.3261861205,
0.4011134505,
0.3390727341,
-0.0001146799,
0.0329964459,
0.1974485815,
-0.2052498162,
-0.2786283791,
-0.289806664,
-0.3660936654,
0.0728081614,
0.2244331539,
0.0616749004,
-0.1416078657,
0.0959065333,
-0.09597186,
-0.3692120016,
0.3581376076,
0.3308921158,
0.2421030998,
0.2675851285,
-0.1595792472,
-0.1363956332,
0.2256511748,
0.0244018435,
-0.2052274346,
0.0532813296,
-0.0231299177,
0.1362628043,
-0.1791895628,
0.0702883229,
0.0619723722,
0.1473606378,
0.2199425846,
0.0459809341,
-0.391977489,
-0.3175211847,
0.2746736705,
0.336995542,
0.2833821774,
-0.0511116125,
-0.1968611777,
-0.0976551324,
-0.1813508421,
-0.2642343044,
0.2228301167,
0.4577170014,
-0.1431986988,
0.3312956691,
-0.039521385,
-0.2251963019,
-0.0287971534,
0.1777931452,
-0.2345646769,
0.2480503768,
-0.3421917558,
0.1191175133,
0.2713807523,
0.2980136871,
0.0475213304,
0.0374464989,
-0.1076285616,
0.1053528786,
-0.4098748863,
0.1201617047,
-0.0230757874,
0.3578152955,
0.3183113039,
0.2543184161,
0.3351866007,
-0.0567912981,
-0.1030216143,
0.0418856554,
0.1714877933,
0.1504790336,
0.3353461921,
0.2444974631,
0.1273303479,
0.2969776988,
0.0733280331,
-0.0287234038,
-0.1453866363,
0.0265282802,
-0.3238972127,
-0.2516283393,
0.090579167,
-0.4356732965,
-0.429979831,
0.1428477764,
-0.2851963639,
-0.2564659715,
0.2311996818,
0.4139815867,
-0.2897873819,
0.0807069242,
0.0865162835,
0.097397849,
-0.0941822082,
-0.0544150732,
-0.3120336235,
0.0532195568,
-0.4024542272,
0.086422585,
0.2335283309,
-0.6066651344,
0.5037904382,
0.0898015276,
-0.220353961,
-0.1728706658,
-0.1083737612,
-0.0193388294,
0.0864286199,
0.2456523627,
0.0133950226,
0.1891669035,
0.1134424806,
0.1383717209,
-0.1508449167,
-0.0395278484,
-0.0180183481,
-0.3320434988,
-0.06371703,
0.1756086498,
-0.3146348,
0.0615856014,
-0.0899001285,
0.167609781,
0.0622148886,
-0.0055139759,
0.0318340547,
-0.085324131,
-0.2076771557,
-0.1902361959,
0.5690099597,
0.3730202615,
-0.1366893053,
-0.1686149389,
-0.0406845994,
-0.3216864467,
0.3857329488,
0.0762825087,
-0.150485456,
-0.0010953237,
-0.3405222595,
0.0099663176,
0.28325966,
-0.0148163773,
-0.4852282405,
0.2786302269,
-0.0556638651,
0.2238806784,
0.151764527,
-0.0978405252,
0.1624522209,
0.0491041243,
-0.0757374093,
0.5340372324,
-0.0731331185,
-0.1859060079,
-0.4255150259,
-0.3501221538,
-0.0283141062,
0.2779067755,
0.0395111553,
0.0713546127,
0.0686589479,
0.3833122253,
0.40475896,
0.0193243492,
0.1365199834,
0.0492991507,
-0.1654882729,
0.1880507469,
-0.0575998873,
-0.1197341084,
-0.6305850744,
0.1851828247,
0.1123741567,
0.0368365906,
0.0696971864,
-0.0298004225,
-0.3020533323,
-0.2867826819,
-0.3926281035,
-0.6270391941,
-0.031328395,
0.3522002995,
0.1813616306,
-0.1299888194,
-0.3942680955,
0.4097011387,
-0.066686675,
0.300308466,
-0.3543494642,
0.314995259,
-0.012172861,
-0.0458911248,
0.0336125381,
0.2207504362,
-0.0511104427,
-0.3450973332,
-0.1065296605,
0.4643592238,
-0.0471546277,
-0.2043189257,
-0.0967621803,
-0.200274989,
0.1886776388,
-0.3146889508,
0.0309310164,
0.0267330129,
-0.0675479919,
-0.0429656915,
-0.281594187,
0.0404909886,
-0.0744118765,
0.2429829538,
0.1321257055,
0.2587024271,
0.0429504551,
-0.2466962039,
-0.1687053442,
-0.3001501262,
0.3115946949,
-0.4033464491,
0.3609392047,
0.1341481954,
-0.5161659718,
-0.2940068543,
0.3804988265,
0.0380514488,
-0.0731648505,
0.1933140904,
-0.2947484553,
0.1005820781,
0.1228783205,
0.1945212036,
0.3356691003,
0.1269971281,
0.1328823268,
-0.0474080704,
-0.0665145814,
-0.1764679849,
0.1167557314,
-0.046440389,
0.1044843122,
0.1768838316,
-0.1535588354,
-0.0009021947,
-0.4279775321,
-0.1238772124,
0.0457639582,
0.3132143319,
-0.2257510722,
-0.0834868997,
-0.2323193997,
-0.025745701,
-0.3625422418,
-0.2185832113,
-0.1767243147,
-0.1344051957,
-0.2404332459,
0.0231207497,
0.0658278391,
0.2553323507,
-0.2093301415,
0.0455154888,
-0.2299626619,
-0.0861133486,
-0.06768547,
0.1722486913,
-0.4905477762,
0.0619571134,
0.3033004999,
-0.0227272268,
0.2865028083,
-0.2348197103,
-0.2146132886,
-0.1950168461,
-0.1298451424,
0.3056706786,
-0.1167070717,
0.1826789379,
0.3629124165,
0.1371282786,
-0.0958332494,
-0.3102601469,
0.4518939257,
-0.1724716127,
-0.0325743519,
0.1589948982,
0.2692781985,
0.3357319236,
-0.1583157331,
-0.5478576422,
-0.1225892901,
-0.4533905387,
0.1328529567,
-0.0001494011,
0.10310857,
-0.0180252064,
0.0207392387,
0.0804323107,
-0.2305063605,
-0.0341859274,
-0.1984066516,
-0.1629059613,
0.188154906,
-0.2112244964,
-0.2533047795,
-0.1214947999,
0.024821762,
0.2858714759,
0.2720384002,
-0.5524842143,
0.1994642615,
-0.2049172968,
0.061557252,
-0.220301196,
0.2075450867,
0.1768573225,
0.0108304033,
0.1045470536,
-0.1976488829,
-0.134205848,
0.0978321061,
-0.3393347561,
0.4048061967,
0.026120251,
0.3284215033,
0.1798994988,
0.5082939863,
0.3439002931,
-0.1505869627,
0.2079484314,
-0.0767773688,
0.1270885766,
-0.1387688518,
-0.4614744782,
0.2145904452,
-0.0541922785,
0.0859872997,
0.3838814497,
0.1770409495,
0.0867263153,
-0.2817543149,
0.2110205591,
-0.2039252967,
-0.2502623498,
0.0856245384,
-0.0654936433,
0.2703848183,
-0.0466584489,
0.3427773416,
0.4439868927,
-0.1137430221,
0.1540441364,
0.2607249022,
0.1055797711,
0.1045862958,
-0.2147738934,
0.2323487401,
-0.5890905261,
0.2524782121,
-0.2033336163,
0.2313733399,
0.1067977101,
-0.234373644,
0.1468489617,
0.1748058945,
0.5568481684,
-0.1038096249,
0.0312593877,
-0.0269399602,
0.0363913551,
-0.3886358142,
0.0602948405,
-0.1235450432,
0.357295692,
0.2604560852,
0.1288841814,
-0.4553008378,
-0.3058998883,
0.462531656,
0.3624634147,
-0.078130275,
-0.1010163724,
-0.2698169649,
-0.3832364976,
-0.0713698193,
0.0094886664,
-0.1053613573,
0.2986246347,
0.0326921754,
-0.0290651266,
-0.0917467549,
-0.2317258716,
0.3436343372,
0.048843544,
0.4620386958,
-0.0244447012,
0.3545613587,
0.2090846896,
0.1529756933,
0.1588899493,
0.7753596902,
-0.530997932,
-0.3234416842,
0.3394289613,
-0.0593774207,
0.359152019,
0.2475199252,
-0.1589202434,
-0.1059668139,
0.079180479,
0.1149097979,
-0.1743154377,
0.2773796022,
0.215794012,
-0.1469060332,
-0.3367116153,
-0.6409859061,
0.5244445801,
0.2109769136,
-0.0379017629,
0.4387472272,
0.0556856394,
-0.222479403,
0.2947354019,
-0.0873420835,
0.7359089851,
-0.1430234015,
0.1394726187,
0.0099006612,
-0.065290831,
0.4976043701,
0.0095972521,
0.1763355583,
-0.3800457418,
-0.0951292291,
0.0100980941,
-0.1598964781,
0.0856667161,
0.1184604764,
-0.2141382694,
0.2453871667,
-0.1360047907,
0.1520732492,
0.1655341089,
0.4593964815,
-0.2705325484,
-0.2743240893,
-0.1331557781,
0.0567969084,
-0.001141069,
0.5052098036,
0.1192897335,
0.022621816,
-0.0190523881,
-0.2101815492,
-0.2829745412,
0.1276530623,
-0.386944443,
-0.0722983181,
-0.1275293678,
-0.4924767613,
0.1943809539,
0.293585211,
-0.0273949187,
0.1404881179,
-0.0803032294,
0.06772542,
0.0655287504,
0.0284467544,
0.0526911244,
0.0677063912,
0.1891305894,
0.117857635,
0.1071198732,
0.1639722586,
-0.0698303655,
-0.1400986463,
0.1390099078,
0.1591519266,
0.1499558836,
-0.6286535263,
-0.1661227942,
0.1514683962,
0.1900820285,
-0.2809163332,
0.0861292407,
0.2486937493,
-0.1896348447,
0.0260318611,
0.0090269782,
-0.3273123503,
-0.2984621823,
0.1726154685,
-0.0341892317,
-0.0999758542,
0.3035963178,
0.212803632,
0.0676846728,
-0.1772778034,
-0.0159317721,
0.3153965473,
-0.642352283,
0.0941705629,
-0.2409416884,
0.0220355149,
0.1095628738,
0.3932799697,
0.2531152666,
0.0152953612,
-0.0760226473,
-0.3590138257,
-0.0682951137,
0.2626478076,
-0.0593022071,
0.2759030461,
-0.2043926865,
0.3208460212,
0.0046859817,
-0.0540748537,
-0.2642842531,
0.1618343443,
-0.1454033703,
0.0519586131,
0.191051811,
0.0785940513,
0.4121577442,
0.021690743,
0.1333602816,
0.1554798782,
-0.1834117472,
-0.1200242117,
-0.2534926832,
0.1741416156,
0.0770612136,
-0.0195555501,
-0.2574189007,
-0.031388741,
-0.0771992728,
-0.1802418083,
0.2131407261,
0.1678884923,
0.0091988593,
0.0298049524,
0.1381466091,
0.0481963865,
-0.2464935482,
0.0261424556,
-0.1572972238,
0.1787124127,
0.2133847177,
0.2083948702,
0.0917931944,
0.0091936449,
0.1396328211,
-0.0103379181,
0.0379468836,
-0.0624681748,
0.1630109549,
-0.1767688692,
-0.0162948761,
0.35221982,
0.3606503606,
0.6477940679,
0.0245407932,
0.03398012,
0.0495627522,
0.1878281832,
-0.0321508162,
0.0980357751,
-0.1004558653,
0.0919480249,
0.0560002662,
0.4105974734,
-0.0531525575,
-0.0132504739,
-0.1128897294,
0.0749023035,
0.2782758474,
0.147705853,
0.3298525512,
0.5117224455,
-0.1850787997,
0.1615472585,
0.2609502375,
-0.2239239067,
0.1490018368,
0.1710413992,
-0.1418040544,
0.1291326731,
-0.3158312142,
0.2990640402,
0.0547156334,
-0.4963174164,
-0.0185962636,
0.216869235,
0.0663458034,
0.056246426,
-0.3770386279,
0.7253003716,
-0.4944148362,
-0.0363312326,
-0.1224296093,
0.0670954138,
-0.1599614918,
-0.1032060683,
0.0488659851,
-0.3158009052,
-0.2405025065,
0.1546079367,
-0.1400933862,
-0.1664374173,
0.3451707959,
-0.0109833926,
-0.2324232012,
-0.1736872345,
-0.2747785151,
0.2652488947,
-0.0639500394,
-0.2120301127,
0.4075476229,
0.0200092215,
-0.0737337843,
0.0842469707,
0.2317490131,
0.0704865605,
0.1353722066,
0.1280502677,
-0.1436004788,
-0.0078353062,
0.1166250408,
-0.2023311853,
0.3975357711,
0.1891568899,
0.0882424861,
0.4073221982,
0.1042698547,
-0.1981185377,
-0.0012606864,
-0.1564842314,
0.127236709,
-0.4012547135,
0.3482406437,
-0.0875969231,
-0.0524771586,
0.0356824249,
-0.0328328647,
-0.3564702868,
0.0889320225,
0.0010806683,
-0.0370233245,
-0.0447664894,
-0.1471876651,
0.0532829538,
0.2223320603,
0.2792684138,
0.298550725,
0.198695913,
-0.3808215261,
-0.5446336269,
-0.6770581007,
0.1334835142,
-0.0690003857,
-0.1824921817,
-0.050510142,
0.268997997,
0.0630564615,
0.2376863062,
0.0260300189,
0.1445351094,
0.1766326278,
0.0907215253,
0.0740232915,
-0.1434726864,
-0.0002061721,
0.0970932022,
-0.0242455136,
-0.3749291003,
0.0644176379,
-0.1649257392,
-0.052681379,
-0.235813126,
-0.1780257076,
0.2120485902,
-0.2146486342,
0.2914566696,
0.1977299154,
0.2918566763,
-0.0089650229,
-0.2792397141,
-0.3359559476,
-0.253347069,
-0.1910103112,
0.1218583211,
0.0248805825,
0.4896282852,
-0.1717040092,
-0.2483383268,
-0.5496247411,
0.3322091699,
0.3946073949,
0.1816078871,
-0.2106709331,
0.0724768117,
-0.0693016052,
-0.0852324963,
0.5066688657,
0.7129359245,
-0.2175035626,
-0.1399034709,
-0.2383049428,
-0.4474014342,
0.3651693761,
-0.2178668082,
-0.0264252201,
0.0368811451,
0.2639951706,
0.3638981581,
-0.2047504932,
-0.7203478813,
-0.2053184658,
0.3049063385,
0.0050100288,
-0.2338485271,
0.0728422329,
0.017467754,
-0.055201102,
-0.0483602397,
0.2159955204,
0.2498844713,
-0.6144574881,
0.4230563343,
-0.2094127685
] |
https://github.com/huggingface/datasets/issues/4179 | Dataset librispeech_asr fails to load | Pinging @lhoestq here, think this could make sense! Not sure however how the dictionary would then look like | ## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
| 18 | Dataset librispeech_asr fails to load
## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
Pinging @lhoestq here, think this could make sense! Not sure however how the dictionary would then look like | [
-0.2864782512,
-0.4839607477,
0.0680988878,
0.6340244412,
0.1525813788,
0.2355626971,
0.1461004764,
0.2371000201,
0.2123608291,
-0.0533141494,
-0.1300386786,
0.0948216319,
-0.3211013675,
0.2411901802,
0.0585025474,
-0.0512975715,
-0.1185007244,
0.2319578677,
-0.1747397184,
-0.1202812865,
-0.2381756604,
0.3758117855,
-0.244647786,
-0.0021679148,
-0.1384708285,
0.1862492263,
-0.009389705,
0.3627567887,
-0.1291859597,
-0.1926396787,
0.4450719655,
-0.3261861205,
0.4011134505,
0.3390727341,
-0.0001146799,
0.0329964459,
0.1974485815,
-0.2052498162,
-0.2786283791,
-0.289806664,
-0.3660936654,
0.0728081614,
0.2244331539,
0.0616749004,
-0.1416078657,
0.0959065333,
-0.09597186,
-0.3692120016,
0.3581376076,
0.3308921158,
0.2421030998,
0.2675851285,
-0.1595792472,
-0.1363956332,
0.2256511748,
0.0244018435,
-0.2052274346,
0.0532813296,
-0.0231299177,
0.1362628043,
-0.1791895628,
0.0702883229,
0.0619723722,
0.1473606378,
0.2199425846,
0.0459809341,
-0.391977489,
-0.3175211847,
0.2746736705,
0.336995542,
0.2833821774,
-0.0511116125,
-0.1968611777,
-0.0976551324,
-0.1813508421,
-0.2642343044,
0.2228301167,
0.4577170014,
-0.1431986988,
0.3312956691,
-0.039521385,
-0.2251963019,
-0.0287971534,
0.1777931452,
-0.2345646769,
0.2480503768,
-0.3421917558,
0.1191175133,
0.2713807523,
0.2980136871,
0.0475213304,
0.0374464989,
-0.1076285616,
0.1053528786,
-0.4098748863,
0.1201617047,
-0.0230757874,
0.3578152955,
0.3183113039,
0.2543184161,
0.3351866007,
-0.0567912981,
-0.1030216143,
0.0418856554,
0.1714877933,
0.1504790336,
0.3353461921,
0.2444974631,
0.1273303479,
0.2969776988,
0.0733280331,
-0.0287234038,
-0.1453866363,
0.0265282802,
-0.3238972127,
-0.2516283393,
0.090579167,
-0.4356732965,
-0.429979831,
0.1428477764,
-0.2851963639,
-0.2564659715,
0.2311996818,
0.4139815867,
-0.2897873819,
0.0807069242,
0.0865162835,
0.097397849,
-0.0941822082,
-0.0544150732,
-0.3120336235,
0.0532195568,
-0.4024542272,
0.086422585,
0.2335283309,
-0.6066651344,
0.5037904382,
0.0898015276,
-0.220353961,
-0.1728706658,
-0.1083737612,
-0.0193388294,
0.0864286199,
0.2456523627,
0.0133950226,
0.1891669035,
0.1134424806,
0.1383717209,
-0.1508449167,
-0.0395278484,
-0.0180183481,
-0.3320434988,
-0.06371703,
0.1756086498,
-0.3146348,
0.0615856014,
-0.0899001285,
0.167609781,
0.0622148886,
-0.0055139759,
0.0318340547,
-0.085324131,
-0.2076771557,
-0.1902361959,
0.5690099597,
0.3730202615,
-0.1366893053,
-0.1686149389,
-0.0406845994,
-0.3216864467,
0.3857329488,
0.0762825087,
-0.150485456,
-0.0010953237,
-0.3405222595,
0.0099663176,
0.28325966,
-0.0148163773,
-0.4852282405,
0.2786302269,
-0.0556638651,
0.2238806784,
0.151764527,
-0.0978405252,
0.1624522209,
0.0491041243,
-0.0757374093,
0.5340372324,
-0.0731331185,
-0.1859060079,
-0.4255150259,
-0.3501221538,
-0.0283141062,
0.2779067755,
0.0395111553,
0.0713546127,
0.0686589479,
0.3833122253,
0.40475896,
0.0193243492,
0.1365199834,
0.0492991507,
-0.1654882729,
0.1880507469,
-0.0575998873,
-0.1197341084,
-0.6305850744,
0.1851828247,
0.1123741567,
0.0368365906,
0.0696971864,
-0.0298004225,
-0.3020533323,
-0.2867826819,
-0.3926281035,
-0.6270391941,
-0.031328395,
0.3522002995,
0.1813616306,
-0.1299888194,
-0.3942680955,
0.4097011387,
-0.066686675,
0.300308466,
-0.3543494642,
0.314995259,
-0.012172861,
-0.0458911248,
0.0336125381,
0.2207504362,
-0.0511104427,
-0.3450973332,
-0.1065296605,
0.4643592238,
-0.0471546277,
-0.2043189257,
-0.0967621803,
-0.200274989,
0.1886776388,
-0.3146889508,
0.0309310164,
0.0267330129,
-0.0675479919,
-0.0429656915,
-0.281594187,
0.0404909886,
-0.0744118765,
0.2429829538,
0.1321257055,
0.2587024271,
0.0429504551,
-0.2466962039,
-0.1687053442,
-0.3001501262,
0.3115946949,
-0.4033464491,
0.3609392047,
0.1341481954,
-0.5161659718,
-0.2940068543,
0.3804988265,
0.0380514488,
-0.0731648505,
0.1933140904,
-0.2947484553,
0.1005820781,
0.1228783205,
0.1945212036,
0.3356691003,
0.1269971281,
0.1328823268,
-0.0474080704,
-0.0665145814,
-0.1764679849,
0.1167557314,
-0.046440389,
0.1044843122,
0.1768838316,
-0.1535588354,
-0.0009021947,
-0.4279775321,
-0.1238772124,
0.0457639582,
0.3132143319,
-0.2257510722,
-0.0834868997,
-0.2323193997,
-0.025745701,
-0.3625422418,
-0.2185832113,
-0.1767243147,
-0.1344051957,
-0.2404332459,
0.0231207497,
0.0658278391,
0.2553323507,
-0.2093301415,
0.0455154888,
-0.2299626619,
-0.0861133486,
-0.06768547,
0.1722486913,
-0.4905477762,
0.0619571134,
0.3033004999,
-0.0227272268,
0.2865028083,
-0.2348197103,
-0.2146132886,
-0.1950168461,
-0.1298451424,
0.3056706786,
-0.1167070717,
0.1826789379,
0.3629124165,
0.1371282786,
-0.0958332494,
-0.3102601469,
0.4518939257,
-0.1724716127,
-0.0325743519,
0.1589948982,
0.2692781985,
0.3357319236,
-0.1583157331,
-0.5478576422,
-0.1225892901,
-0.4533905387,
0.1328529567,
-0.0001494011,
0.10310857,
-0.0180252064,
0.0207392387,
0.0804323107,
-0.2305063605,
-0.0341859274,
-0.1984066516,
-0.1629059613,
0.188154906,
-0.2112244964,
-0.2533047795,
-0.1214947999,
0.024821762,
0.2858714759,
0.2720384002,
-0.5524842143,
0.1994642615,
-0.2049172968,
0.061557252,
-0.220301196,
0.2075450867,
0.1768573225,
0.0108304033,
0.1045470536,
-0.1976488829,
-0.134205848,
0.0978321061,
-0.3393347561,
0.4048061967,
0.026120251,
0.3284215033,
0.1798994988,
0.5082939863,
0.3439002931,
-0.1505869627,
0.2079484314,
-0.0767773688,
0.1270885766,
-0.1387688518,
-0.4614744782,
0.2145904452,
-0.0541922785,
0.0859872997,
0.3838814497,
0.1770409495,
0.0867263153,
-0.2817543149,
0.2110205591,
-0.2039252967,
-0.2502623498,
0.0856245384,
-0.0654936433,
0.2703848183,
-0.0466584489,
0.3427773416,
0.4439868927,
-0.1137430221,
0.1540441364,
0.2607249022,
0.1055797711,
0.1045862958,
-0.2147738934,
0.2323487401,
-0.5890905261,
0.2524782121,
-0.2033336163,
0.2313733399,
0.1067977101,
-0.234373644,
0.1468489617,
0.1748058945,
0.5568481684,
-0.1038096249,
0.0312593877,
-0.0269399602,
0.0363913551,
-0.3886358142,
0.0602948405,
-0.1235450432,
0.357295692,
0.2604560852,
0.1288841814,
-0.4553008378,
-0.3058998883,
0.462531656,
0.3624634147,
-0.078130275,
-0.1010163724,
-0.2698169649,
-0.3832364976,
-0.0713698193,
0.0094886664,
-0.1053613573,
0.2986246347,
0.0326921754,
-0.0290651266,
-0.0917467549,
-0.2317258716,
0.3436343372,
0.048843544,
0.4620386958,
-0.0244447012,
0.3545613587,
0.2090846896,
0.1529756933,
0.1588899493,
0.7753596902,
-0.530997932,
-0.3234416842,
0.3394289613,
-0.0593774207,
0.359152019,
0.2475199252,
-0.1589202434,
-0.1059668139,
0.079180479,
0.1149097979,
-0.1743154377,
0.2773796022,
0.215794012,
-0.1469060332,
-0.3367116153,
-0.6409859061,
0.5244445801,
0.2109769136,
-0.0379017629,
0.4387472272,
0.0556856394,
-0.222479403,
0.2947354019,
-0.0873420835,
0.7359089851,
-0.1430234015,
0.1394726187,
0.0099006612,
-0.065290831,
0.4976043701,
0.0095972521,
0.1763355583,
-0.3800457418,
-0.0951292291,
0.0100980941,
-0.1598964781,
0.0856667161,
0.1184604764,
-0.2141382694,
0.2453871667,
-0.1360047907,
0.1520732492,
0.1655341089,
0.4593964815,
-0.2705325484,
-0.2743240893,
-0.1331557781,
0.0567969084,
-0.001141069,
0.5052098036,
0.1192897335,
0.022621816,
-0.0190523881,
-0.2101815492,
-0.2829745412,
0.1276530623,
-0.386944443,
-0.0722983181,
-0.1275293678,
-0.4924767613,
0.1943809539,
0.293585211,
-0.0273949187,
0.1404881179,
-0.0803032294,
0.06772542,
0.0655287504,
0.0284467544,
0.0526911244,
0.0677063912,
0.1891305894,
0.117857635,
0.1071198732,
0.1639722586,
-0.0698303655,
-0.1400986463,
0.1390099078,
0.1591519266,
0.1499558836,
-0.6286535263,
-0.1661227942,
0.1514683962,
0.1900820285,
-0.2809163332,
0.0861292407,
0.2486937493,
-0.1896348447,
0.0260318611,
0.0090269782,
-0.3273123503,
-0.2984621823,
0.1726154685,
-0.0341892317,
-0.0999758542,
0.3035963178,
0.212803632,
0.0676846728,
-0.1772778034,
-0.0159317721,
0.3153965473,
-0.642352283,
0.0941705629,
-0.2409416884,
0.0220355149,
0.1095628738,
0.3932799697,
0.2531152666,
0.0152953612,
-0.0760226473,
-0.3590138257,
-0.0682951137,
0.2626478076,
-0.0593022071,
0.2759030461,
-0.2043926865,
0.3208460212,
0.0046859817,
-0.0540748537,
-0.2642842531,
0.1618343443,
-0.1454033703,
0.0519586131,
0.191051811,
0.0785940513,
0.4121577442,
0.021690743,
0.1333602816,
0.1554798782,
-0.1834117472,
-0.1200242117,
-0.2534926832,
0.1741416156,
0.0770612136,
-0.0195555501,
-0.2574189007,
-0.031388741,
-0.0771992728,
-0.1802418083,
0.2131407261,
0.1678884923,
0.0091988593,
0.0298049524,
0.1381466091,
0.0481963865,
-0.2464935482,
0.0261424556,
-0.1572972238,
0.1787124127,
0.2133847177,
0.2083948702,
0.0917931944,
0.0091936449,
0.1396328211,
-0.0103379181,
0.0379468836,
-0.0624681748,
0.1630109549,
-0.1767688692,
-0.0162948761,
0.35221982,
0.3606503606,
0.6477940679,
0.0245407932,
0.03398012,
0.0495627522,
0.1878281832,
-0.0321508162,
0.0980357751,
-0.1004558653,
0.0919480249,
0.0560002662,
0.4105974734,
-0.0531525575,
-0.0132504739,
-0.1128897294,
0.0749023035,
0.2782758474,
0.147705853,
0.3298525512,
0.5117224455,
-0.1850787997,
0.1615472585,
0.2609502375,
-0.2239239067,
0.1490018368,
0.1710413992,
-0.1418040544,
0.1291326731,
-0.3158312142,
0.2990640402,
0.0547156334,
-0.4963174164,
-0.0185962636,
0.216869235,
0.0663458034,
0.056246426,
-0.3770386279,
0.7253003716,
-0.4944148362,
-0.0363312326,
-0.1224296093,
0.0670954138,
-0.1599614918,
-0.1032060683,
0.0488659851,
-0.3158009052,
-0.2405025065,
0.1546079367,
-0.1400933862,
-0.1664374173,
0.3451707959,
-0.0109833926,
-0.2324232012,
-0.1736872345,
-0.2747785151,
0.2652488947,
-0.0639500394,
-0.2120301127,
0.4075476229,
0.0200092215,
-0.0737337843,
0.0842469707,
0.2317490131,
0.0704865605,
0.1353722066,
0.1280502677,
-0.1436004788,
-0.0078353062,
0.1166250408,
-0.2023311853,
0.3975357711,
0.1891568899,
0.0882424861,
0.4073221982,
0.1042698547,
-0.1981185377,
-0.0012606864,
-0.1564842314,
0.127236709,
-0.4012547135,
0.3482406437,
-0.0875969231,
-0.0524771586,
0.0356824249,
-0.0328328647,
-0.3564702868,
0.0889320225,
0.0010806683,
-0.0370233245,
-0.0447664894,
-0.1471876651,
0.0532829538,
0.2223320603,
0.2792684138,
0.298550725,
0.198695913,
-0.3808215261,
-0.5446336269,
-0.6770581007,
0.1334835142,
-0.0690003857,
-0.1824921817,
-0.050510142,
0.268997997,
0.0630564615,
0.2376863062,
0.0260300189,
0.1445351094,
0.1766326278,
0.0907215253,
0.0740232915,
-0.1434726864,
-0.0002061721,
0.0970932022,
-0.0242455136,
-0.3749291003,
0.0644176379,
-0.1649257392,
-0.052681379,
-0.235813126,
-0.1780257076,
0.2120485902,
-0.2146486342,
0.2914566696,
0.1977299154,
0.2918566763,
-0.0089650229,
-0.2792397141,
-0.3359559476,
-0.253347069,
-0.1910103112,
0.1218583211,
0.0248805825,
0.4896282852,
-0.1717040092,
-0.2483383268,
-0.5496247411,
0.3322091699,
0.3946073949,
0.1816078871,
-0.2106709331,
0.0724768117,
-0.0693016052,
-0.0852324963,
0.5066688657,
0.7129359245,
-0.2175035626,
-0.1399034709,
-0.2383049428,
-0.4474014342,
0.3651693761,
-0.2178668082,
-0.0264252201,
0.0368811451,
0.2639951706,
0.3638981581,
-0.2047504932,
-0.7203478813,
-0.2053184658,
0.3049063385,
0.0050100288,
-0.2338485271,
0.0728422329,
0.017467754,
-0.055201102,
-0.0483602397,
0.2159955204,
0.2498844713,
-0.6144574881,
0.4230563343,
-0.2094127685
] |
https://github.com/huggingface/datasets/issues/4179 | Dataset librispeech_asr fails to load | Would it make sense to have `clean` as the default config ?
Also I think `load_dataset("librispeech_asr")` should have raised you an error that says that you need to specify a config
I also opened a PR to improve the doc: https://github.com/huggingface/datasets/pull/4183 | ## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
| 41 | Dataset librispeech_asr fails to load
## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
Would it make sense to have `clean` as the default config ?
Also I think `load_dataset("librispeech_asr")` should have raised you an error that says that you need to specify a config
I also opened a PR to improve the doc: https://github.com/huggingface/datasets/pull/4183 | [
-0.2864782512,
-0.4839607477,
0.0680988878,
0.6340244412,
0.1525813788,
0.2355626971,
0.1461004764,
0.2371000201,
0.2123608291,
-0.0533141494,
-0.1300386786,
0.0948216319,
-0.3211013675,
0.2411901802,
0.0585025474,
-0.0512975715,
-0.1185007244,
0.2319578677,
-0.1747397184,
-0.1202812865,
-0.2381756604,
0.3758117855,
-0.244647786,
-0.0021679148,
-0.1384708285,
0.1862492263,
-0.009389705,
0.3627567887,
-0.1291859597,
-0.1926396787,
0.4450719655,
-0.3261861205,
0.4011134505,
0.3390727341,
-0.0001146799,
0.0329964459,
0.1974485815,
-0.2052498162,
-0.2786283791,
-0.289806664,
-0.3660936654,
0.0728081614,
0.2244331539,
0.0616749004,
-0.1416078657,
0.0959065333,
-0.09597186,
-0.3692120016,
0.3581376076,
0.3308921158,
0.2421030998,
0.2675851285,
-0.1595792472,
-0.1363956332,
0.2256511748,
0.0244018435,
-0.2052274346,
0.0532813296,
-0.0231299177,
0.1362628043,
-0.1791895628,
0.0702883229,
0.0619723722,
0.1473606378,
0.2199425846,
0.0459809341,
-0.391977489,
-0.3175211847,
0.2746736705,
0.336995542,
0.2833821774,
-0.0511116125,
-0.1968611777,
-0.0976551324,
-0.1813508421,
-0.2642343044,
0.2228301167,
0.4577170014,
-0.1431986988,
0.3312956691,
-0.039521385,
-0.2251963019,
-0.0287971534,
0.1777931452,
-0.2345646769,
0.2480503768,
-0.3421917558,
0.1191175133,
0.2713807523,
0.2980136871,
0.0475213304,
0.0374464989,
-0.1076285616,
0.1053528786,
-0.4098748863,
0.1201617047,
-0.0230757874,
0.3578152955,
0.3183113039,
0.2543184161,
0.3351866007,
-0.0567912981,
-0.1030216143,
0.0418856554,
0.1714877933,
0.1504790336,
0.3353461921,
0.2444974631,
0.1273303479,
0.2969776988,
0.0733280331,
-0.0287234038,
-0.1453866363,
0.0265282802,
-0.3238972127,
-0.2516283393,
0.090579167,
-0.4356732965,
-0.429979831,
0.1428477764,
-0.2851963639,
-0.2564659715,
0.2311996818,
0.4139815867,
-0.2897873819,
0.0807069242,
0.0865162835,
0.097397849,
-0.0941822082,
-0.0544150732,
-0.3120336235,
0.0532195568,
-0.4024542272,
0.086422585,
0.2335283309,
-0.6066651344,
0.5037904382,
0.0898015276,
-0.220353961,
-0.1728706658,
-0.1083737612,
-0.0193388294,
0.0864286199,
0.2456523627,
0.0133950226,
0.1891669035,
0.1134424806,
0.1383717209,
-0.1508449167,
-0.0395278484,
-0.0180183481,
-0.3320434988,
-0.06371703,
0.1756086498,
-0.3146348,
0.0615856014,
-0.0899001285,
0.167609781,
0.0622148886,
-0.0055139759,
0.0318340547,
-0.085324131,
-0.2076771557,
-0.1902361959,
0.5690099597,
0.3730202615,
-0.1366893053,
-0.1686149389,
-0.0406845994,
-0.3216864467,
0.3857329488,
0.0762825087,
-0.150485456,
-0.0010953237,
-0.3405222595,
0.0099663176,
0.28325966,
-0.0148163773,
-0.4852282405,
0.2786302269,
-0.0556638651,
0.2238806784,
0.151764527,
-0.0978405252,
0.1624522209,
0.0491041243,
-0.0757374093,
0.5340372324,
-0.0731331185,
-0.1859060079,
-0.4255150259,
-0.3501221538,
-0.0283141062,
0.2779067755,
0.0395111553,
0.0713546127,
0.0686589479,
0.3833122253,
0.40475896,
0.0193243492,
0.1365199834,
0.0492991507,
-0.1654882729,
0.1880507469,
-0.0575998873,
-0.1197341084,
-0.6305850744,
0.1851828247,
0.1123741567,
0.0368365906,
0.0696971864,
-0.0298004225,
-0.3020533323,
-0.2867826819,
-0.3926281035,
-0.6270391941,
-0.031328395,
0.3522002995,
0.1813616306,
-0.1299888194,
-0.3942680955,
0.4097011387,
-0.066686675,
0.300308466,
-0.3543494642,
0.314995259,
-0.012172861,
-0.0458911248,
0.0336125381,
0.2207504362,
-0.0511104427,
-0.3450973332,
-0.1065296605,
0.4643592238,
-0.0471546277,
-0.2043189257,
-0.0967621803,
-0.200274989,
0.1886776388,
-0.3146889508,
0.0309310164,
0.0267330129,
-0.0675479919,
-0.0429656915,
-0.281594187,
0.0404909886,
-0.0744118765,
0.2429829538,
0.1321257055,
0.2587024271,
0.0429504551,
-0.2466962039,
-0.1687053442,
-0.3001501262,
0.3115946949,
-0.4033464491,
0.3609392047,
0.1341481954,
-0.5161659718,
-0.2940068543,
0.3804988265,
0.0380514488,
-0.0731648505,
0.1933140904,
-0.2947484553,
0.1005820781,
0.1228783205,
0.1945212036,
0.3356691003,
0.1269971281,
0.1328823268,
-0.0474080704,
-0.0665145814,
-0.1764679849,
0.1167557314,
-0.046440389,
0.1044843122,
0.1768838316,
-0.1535588354,
-0.0009021947,
-0.4279775321,
-0.1238772124,
0.0457639582,
0.3132143319,
-0.2257510722,
-0.0834868997,
-0.2323193997,
-0.025745701,
-0.3625422418,
-0.2185832113,
-0.1767243147,
-0.1344051957,
-0.2404332459,
0.0231207497,
0.0658278391,
0.2553323507,
-0.2093301415,
0.0455154888,
-0.2299626619,
-0.0861133486,
-0.06768547,
0.1722486913,
-0.4905477762,
0.0619571134,
0.3033004999,
-0.0227272268,
0.2865028083,
-0.2348197103,
-0.2146132886,
-0.1950168461,
-0.1298451424,
0.3056706786,
-0.1167070717,
0.1826789379,
0.3629124165,
0.1371282786,
-0.0958332494,
-0.3102601469,
0.4518939257,
-0.1724716127,
-0.0325743519,
0.1589948982,
0.2692781985,
0.3357319236,
-0.1583157331,
-0.5478576422,
-0.1225892901,
-0.4533905387,
0.1328529567,
-0.0001494011,
0.10310857,
-0.0180252064,
0.0207392387,
0.0804323107,
-0.2305063605,
-0.0341859274,
-0.1984066516,
-0.1629059613,
0.188154906,
-0.2112244964,
-0.2533047795,
-0.1214947999,
0.024821762,
0.2858714759,
0.2720384002,
-0.5524842143,
0.1994642615,
-0.2049172968,
0.061557252,
-0.220301196,
0.2075450867,
0.1768573225,
0.0108304033,
0.1045470536,
-0.1976488829,
-0.134205848,
0.0978321061,
-0.3393347561,
0.4048061967,
0.026120251,
0.3284215033,
0.1798994988,
0.5082939863,
0.3439002931,
-0.1505869627,
0.2079484314,
-0.0767773688,
0.1270885766,
-0.1387688518,
-0.4614744782,
0.2145904452,
-0.0541922785,
0.0859872997,
0.3838814497,
0.1770409495,
0.0867263153,
-0.2817543149,
0.2110205591,
-0.2039252967,
-0.2502623498,
0.0856245384,
-0.0654936433,
0.2703848183,
-0.0466584489,
0.3427773416,
0.4439868927,
-0.1137430221,
0.1540441364,
0.2607249022,
0.1055797711,
0.1045862958,
-0.2147738934,
0.2323487401,
-0.5890905261,
0.2524782121,
-0.2033336163,
0.2313733399,
0.1067977101,
-0.234373644,
0.1468489617,
0.1748058945,
0.5568481684,
-0.1038096249,
0.0312593877,
-0.0269399602,
0.0363913551,
-0.3886358142,
0.0602948405,
-0.1235450432,
0.357295692,
0.2604560852,
0.1288841814,
-0.4553008378,
-0.3058998883,
0.462531656,
0.3624634147,
-0.078130275,
-0.1010163724,
-0.2698169649,
-0.3832364976,
-0.0713698193,
0.0094886664,
-0.1053613573,
0.2986246347,
0.0326921754,
-0.0290651266,
-0.0917467549,
-0.2317258716,
0.3436343372,
0.048843544,
0.4620386958,
-0.0244447012,
0.3545613587,
0.2090846896,
0.1529756933,
0.1588899493,
0.7753596902,
-0.530997932,
-0.3234416842,
0.3394289613,
-0.0593774207,
0.359152019,
0.2475199252,
-0.1589202434,
-0.1059668139,
0.079180479,
0.1149097979,
-0.1743154377,
0.2773796022,
0.215794012,
-0.1469060332,
-0.3367116153,
-0.6409859061,
0.5244445801,
0.2109769136,
-0.0379017629,
0.4387472272,
0.0556856394,
-0.222479403,
0.2947354019,
-0.0873420835,
0.7359089851,
-0.1430234015,
0.1394726187,
0.0099006612,
-0.065290831,
0.4976043701,
0.0095972521,
0.1763355583,
-0.3800457418,
-0.0951292291,
0.0100980941,
-0.1598964781,
0.0856667161,
0.1184604764,
-0.2141382694,
0.2453871667,
-0.1360047907,
0.1520732492,
0.1655341089,
0.4593964815,
-0.2705325484,
-0.2743240893,
-0.1331557781,
0.0567969084,
-0.001141069,
0.5052098036,
0.1192897335,
0.022621816,
-0.0190523881,
-0.2101815492,
-0.2829745412,
0.1276530623,
-0.386944443,
-0.0722983181,
-0.1275293678,
-0.4924767613,
0.1943809539,
0.293585211,
-0.0273949187,
0.1404881179,
-0.0803032294,
0.06772542,
0.0655287504,
0.0284467544,
0.0526911244,
0.0677063912,
0.1891305894,
0.117857635,
0.1071198732,
0.1639722586,
-0.0698303655,
-0.1400986463,
0.1390099078,
0.1591519266,
0.1499558836,
-0.6286535263,
-0.1661227942,
0.1514683962,
0.1900820285,
-0.2809163332,
0.0861292407,
0.2486937493,
-0.1896348447,
0.0260318611,
0.0090269782,
-0.3273123503,
-0.2984621823,
0.1726154685,
-0.0341892317,
-0.0999758542,
0.3035963178,
0.212803632,
0.0676846728,
-0.1772778034,
-0.0159317721,
0.3153965473,
-0.642352283,
0.0941705629,
-0.2409416884,
0.0220355149,
0.1095628738,
0.3932799697,
0.2531152666,
0.0152953612,
-0.0760226473,
-0.3590138257,
-0.0682951137,
0.2626478076,
-0.0593022071,
0.2759030461,
-0.2043926865,
0.3208460212,
0.0046859817,
-0.0540748537,
-0.2642842531,
0.1618343443,
-0.1454033703,
0.0519586131,
0.191051811,
0.0785940513,
0.4121577442,
0.021690743,
0.1333602816,
0.1554798782,
-0.1834117472,
-0.1200242117,
-0.2534926832,
0.1741416156,
0.0770612136,
-0.0195555501,
-0.2574189007,
-0.031388741,
-0.0771992728,
-0.1802418083,
0.2131407261,
0.1678884923,
0.0091988593,
0.0298049524,
0.1381466091,
0.0481963865,
-0.2464935482,
0.0261424556,
-0.1572972238,
0.1787124127,
0.2133847177,
0.2083948702,
0.0917931944,
0.0091936449,
0.1396328211,
-0.0103379181,
0.0379468836,
-0.0624681748,
0.1630109549,
-0.1767688692,
-0.0162948761,
0.35221982,
0.3606503606,
0.6477940679,
0.0245407932,
0.03398012,
0.0495627522,
0.1878281832,
-0.0321508162,
0.0980357751,
-0.1004558653,
0.0919480249,
0.0560002662,
0.4105974734,
-0.0531525575,
-0.0132504739,
-0.1128897294,
0.0749023035,
0.2782758474,
0.147705853,
0.3298525512,
0.5117224455,
-0.1850787997,
0.1615472585,
0.2609502375,
-0.2239239067,
0.1490018368,
0.1710413992,
-0.1418040544,
0.1291326731,
-0.3158312142,
0.2990640402,
0.0547156334,
-0.4963174164,
-0.0185962636,
0.216869235,
0.0663458034,
0.056246426,
-0.3770386279,
0.7253003716,
-0.4944148362,
-0.0363312326,
-0.1224296093,
0.0670954138,
-0.1599614918,
-0.1032060683,
0.0488659851,
-0.3158009052,
-0.2405025065,
0.1546079367,
-0.1400933862,
-0.1664374173,
0.3451707959,
-0.0109833926,
-0.2324232012,
-0.1736872345,
-0.2747785151,
0.2652488947,
-0.0639500394,
-0.2120301127,
0.4075476229,
0.0200092215,
-0.0737337843,
0.0842469707,
0.2317490131,
0.0704865605,
0.1353722066,
0.1280502677,
-0.1436004788,
-0.0078353062,
0.1166250408,
-0.2023311853,
0.3975357711,
0.1891568899,
0.0882424861,
0.4073221982,
0.1042698547,
-0.1981185377,
-0.0012606864,
-0.1564842314,
0.127236709,
-0.4012547135,
0.3482406437,
-0.0875969231,
-0.0524771586,
0.0356824249,
-0.0328328647,
-0.3564702868,
0.0889320225,
0.0010806683,
-0.0370233245,
-0.0447664894,
-0.1471876651,
0.0532829538,
0.2223320603,
0.2792684138,
0.298550725,
0.198695913,
-0.3808215261,
-0.5446336269,
-0.6770581007,
0.1334835142,
-0.0690003857,
-0.1824921817,
-0.050510142,
0.268997997,
0.0630564615,
0.2376863062,
0.0260300189,
0.1445351094,
0.1766326278,
0.0907215253,
0.0740232915,
-0.1434726864,
-0.0002061721,
0.0970932022,
-0.0242455136,
-0.3749291003,
0.0644176379,
-0.1649257392,
-0.052681379,
-0.235813126,
-0.1780257076,
0.2120485902,
-0.2146486342,
0.2914566696,
0.1977299154,
0.2918566763,
-0.0089650229,
-0.2792397141,
-0.3359559476,
-0.253347069,
-0.1910103112,
0.1218583211,
0.0248805825,
0.4896282852,
-0.1717040092,
-0.2483383268,
-0.5496247411,
0.3322091699,
0.3946073949,
0.1816078871,
-0.2106709331,
0.0724768117,
-0.0693016052,
-0.0852324963,
0.5066688657,
0.7129359245,
-0.2175035626,
-0.1399034709,
-0.2383049428,
-0.4474014342,
0.3651693761,
-0.2178668082,
-0.0264252201,
0.0368811451,
0.2639951706,
0.3638981581,
-0.2047504932,
-0.7203478813,
-0.2053184658,
0.3049063385,
0.0050100288,
-0.2338485271,
0.0728422329,
0.017467754,
-0.055201102,
-0.0483602397,
0.2159955204,
0.2498844713,
-0.6144574881,
0.4230563343,
-0.2094127685
] |
https://github.com/huggingface/datasets/issues/4179 | Dataset librispeech_asr fails to load | > Would it make sense to have `clean` as the default config ?
I think a user would expect that the default would give you the full dataset.
> Also I think `load_dataset("librispeech_asr")` should have raised you an error that says that you need to specify a config
It does raise an error, but this error confused me because I did not understand why I needed a config, or why I could not simply download the whole dataset, which is what people usually do with Librispeech.
| ## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
| 86 | Dataset librispeech_asr fails to load
## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
> Would it make sense to have `clean` as the default config ?
I think a user would expect that the default would give you the full dataset.
> Also I think `load_dataset("librispeech_asr")` should have raised you an error that says that you need to specify a config
It does raise an error, but this error confused me because I did not understand why I needed a config, or why I could not simply download the whole dataset, which is what people usually do with Librispeech.
| [
-0.2864782512,
-0.4839607477,
0.0680988878,
0.6340244412,
0.1525813788,
0.2355626971,
0.1461004764,
0.2371000201,
0.2123608291,
-0.0533141494,
-0.1300386786,
0.0948216319,
-0.3211013675,
0.2411901802,
0.0585025474,
-0.0512975715,
-0.1185007244,
0.2319578677,
-0.1747397184,
-0.1202812865,
-0.2381756604,
0.3758117855,
-0.244647786,
-0.0021679148,
-0.1384708285,
0.1862492263,
-0.009389705,
0.3627567887,
-0.1291859597,
-0.1926396787,
0.4450719655,
-0.3261861205,
0.4011134505,
0.3390727341,
-0.0001146799,
0.0329964459,
0.1974485815,
-0.2052498162,
-0.2786283791,
-0.289806664,
-0.3660936654,
0.0728081614,
0.2244331539,
0.0616749004,
-0.1416078657,
0.0959065333,
-0.09597186,
-0.3692120016,
0.3581376076,
0.3308921158,
0.2421030998,
0.2675851285,
-0.1595792472,
-0.1363956332,
0.2256511748,
0.0244018435,
-0.2052274346,
0.0532813296,
-0.0231299177,
0.1362628043,
-0.1791895628,
0.0702883229,
0.0619723722,
0.1473606378,
0.2199425846,
0.0459809341,
-0.391977489,
-0.3175211847,
0.2746736705,
0.336995542,
0.2833821774,
-0.0511116125,
-0.1968611777,
-0.0976551324,
-0.1813508421,
-0.2642343044,
0.2228301167,
0.4577170014,
-0.1431986988,
0.3312956691,
-0.039521385,
-0.2251963019,
-0.0287971534,
0.1777931452,
-0.2345646769,
0.2480503768,
-0.3421917558,
0.1191175133,
0.2713807523,
0.2980136871,
0.0475213304,
0.0374464989,
-0.1076285616,
0.1053528786,
-0.4098748863,
0.1201617047,
-0.0230757874,
0.3578152955,
0.3183113039,
0.2543184161,
0.3351866007,
-0.0567912981,
-0.1030216143,
0.0418856554,
0.1714877933,
0.1504790336,
0.3353461921,
0.2444974631,
0.1273303479,
0.2969776988,
0.0733280331,
-0.0287234038,
-0.1453866363,
0.0265282802,
-0.3238972127,
-0.2516283393,
0.090579167,
-0.4356732965,
-0.429979831,
0.1428477764,
-0.2851963639,
-0.2564659715,
0.2311996818,
0.4139815867,
-0.2897873819,
0.0807069242,
0.0865162835,
0.097397849,
-0.0941822082,
-0.0544150732,
-0.3120336235,
0.0532195568,
-0.4024542272,
0.086422585,
0.2335283309,
-0.6066651344,
0.5037904382,
0.0898015276,
-0.220353961,
-0.1728706658,
-0.1083737612,
-0.0193388294,
0.0864286199,
0.2456523627,
0.0133950226,
0.1891669035,
0.1134424806,
0.1383717209,
-0.1508449167,
-0.0395278484,
-0.0180183481,
-0.3320434988,
-0.06371703,
0.1756086498,
-0.3146348,
0.0615856014,
-0.0899001285,
0.167609781,
0.0622148886,
-0.0055139759,
0.0318340547,
-0.085324131,
-0.2076771557,
-0.1902361959,
0.5690099597,
0.3730202615,
-0.1366893053,
-0.1686149389,
-0.0406845994,
-0.3216864467,
0.3857329488,
0.0762825087,
-0.150485456,
-0.0010953237,
-0.3405222595,
0.0099663176,
0.28325966,
-0.0148163773,
-0.4852282405,
0.2786302269,
-0.0556638651,
0.2238806784,
0.151764527,
-0.0978405252,
0.1624522209,
0.0491041243,
-0.0757374093,
0.5340372324,
-0.0731331185,
-0.1859060079,
-0.4255150259,
-0.3501221538,
-0.0283141062,
0.2779067755,
0.0395111553,
0.0713546127,
0.0686589479,
0.3833122253,
0.40475896,
0.0193243492,
0.1365199834,
0.0492991507,
-0.1654882729,
0.1880507469,
-0.0575998873,
-0.1197341084,
-0.6305850744,
0.1851828247,
0.1123741567,
0.0368365906,
0.0696971864,
-0.0298004225,
-0.3020533323,
-0.2867826819,
-0.3926281035,
-0.6270391941,
-0.031328395,
0.3522002995,
0.1813616306,
-0.1299888194,
-0.3942680955,
0.4097011387,
-0.066686675,
0.300308466,
-0.3543494642,
0.314995259,
-0.012172861,
-0.0458911248,
0.0336125381,
0.2207504362,
-0.0511104427,
-0.3450973332,
-0.1065296605,
0.4643592238,
-0.0471546277,
-0.2043189257,
-0.0967621803,
-0.200274989,
0.1886776388,
-0.3146889508,
0.0309310164,
0.0267330129,
-0.0675479919,
-0.0429656915,
-0.281594187,
0.0404909886,
-0.0744118765,
0.2429829538,
0.1321257055,
0.2587024271,
0.0429504551,
-0.2466962039,
-0.1687053442,
-0.3001501262,
0.3115946949,
-0.4033464491,
0.3609392047,
0.1341481954,
-0.5161659718,
-0.2940068543,
0.3804988265,
0.0380514488,
-0.0731648505,
0.1933140904,
-0.2947484553,
0.1005820781,
0.1228783205,
0.1945212036,
0.3356691003,
0.1269971281,
0.1328823268,
-0.0474080704,
-0.0665145814,
-0.1764679849,
0.1167557314,
-0.046440389,
0.1044843122,
0.1768838316,
-0.1535588354,
-0.0009021947,
-0.4279775321,
-0.1238772124,
0.0457639582,
0.3132143319,
-0.2257510722,
-0.0834868997,
-0.2323193997,
-0.025745701,
-0.3625422418,
-0.2185832113,
-0.1767243147,
-0.1344051957,
-0.2404332459,
0.0231207497,
0.0658278391,
0.2553323507,
-0.2093301415,
0.0455154888,
-0.2299626619,
-0.0861133486,
-0.06768547,
0.1722486913,
-0.4905477762,
0.0619571134,
0.3033004999,
-0.0227272268,
0.2865028083,
-0.2348197103,
-0.2146132886,
-0.1950168461,
-0.1298451424,
0.3056706786,
-0.1167070717,
0.1826789379,
0.3629124165,
0.1371282786,
-0.0958332494,
-0.3102601469,
0.4518939257,
-0.1724716127,
-0.0325743519,
0.1589948982,
0.2692781985,
0.3357319236,
-0.1583157331,
-0.5478576422,
-0.1225892901,
-0.4533905387,
0.1328529567,
-0.0001494011,
0.10310857,
-0.0180252064,
0.0207392387,
0.0804323107,
-0.2305063605,
-0.0341859274,
-0.1984066516,
-0.1629059613,
0.188154906,
-0.2112244964,
-0.2533047795,
-0.1214947999,
0.024821762,
0.2858714759,
0.2720384002,
-0.5524842143,
0.1994642615,
-0.2049172968,
0.061557252,
-0.220301196,
0.2075450867,
0.1768573225,
0.0108304033,
0.1045470536,
-0.1976488829,
-0.134205848,
0.0978321061,
-0.3393347561,
0.4048061967,
0.026120251,
0.3284215033,
0.1798994988,
0.5082939863,
0.3439002931,
-0.1505869627,
0.2079484314,
-0.0767773688,
0.1270885766,
-0.1387688518,
-0.4614744782,
0.2145904452,
-0.0541922785,
0.0859872997,
0.3838814497,
0.1770409495,
0.0867263153,
-0.2817543149,
0.2110205591,
-0.2039252967,
-0.2502623498,
0.0856245384,
-0.0654936433,
0.2703848183,
-0.0466584489,
0.3427773416,
0.4439868927,
-0.1137430221,
0.1540441364,
0.2607249022,
0.1055797711,
0.1045862958,
-0.2147738934,
0.2323487401,
-0.5890905261,
0.2524782121,
-0.2033336163,
0.2313733399,
0.1067977101,
-0.234373644,
0.1468489617,
0.1748058945,
0.5568481684,
-0.1038096249,
0.0312593877,
-0.0269399602,
0.0363913551,
-0.3886358142,
0.0602948405,
-0.1235450432,
0.357295692,
0.2604560852,
0.1288841814,
-0.4553008378,
-0.3058998883,
0.462531656,
0.3624634147,
-0.078130275,
-0.1010163724,
-0.2698169649,
-0.3832364976,
-0.0713698193,
0.0094886664,
-0.1053613573,
0.2986246347,
0.0326921754,
-0.0290651266,
-0.0917467549,
-0.2317258716,
0.3436343372,
0.048843544,
0.4620386958,
-0.0244447012,
0.3545613587,
0.2090846896,
0.1529756933,
0.1588899493,
0.7753596902,
-0.530997932,
-0.3234416842,
0.3394289613,
-0.0593774207,
0.359152019,
0.2475199252,
-0.1589202434,
-0.1059668139,
0.079180479,
0.1149097979,
-0.1743154377,
0.2773796022,
0.215794012,
-0.1469060332,
-0.3367116153,
-0.6409859061,
0.5244445801,
0.2109769136,
-0.0379017629,
0.4387472272,
0.0556856394,
-0.222479403,
0.2947354019,
-0.0873420835,
0.7359089851,
-0.1430234015,
0.1394726187,
0.0099006612,
-0.065290831,
0.4976043701,
0.0095972521,
0.1763355583,
-0.3800457418,
-0.0951292291,
0.0100980941,
-0.1598964781,
0.0856667161,
0.1184604764,
-0.2141382694,
0.2453871667,
-0.1360047907,
0.1520732492,
0.1655341089,
0.4593964815,
-0.2705325484,
-0.2743240893,
-0.1331557781,
0.0567969084,
-0.001141069,
0.5052098036,
0.1192897335,
0.022621816,
-0.0190523881,
-0.2101815492,
-0.2829745412,
0.1276530623,
-0.386944443,
-0.0722983181,
-0.1275293678,
-0.4924767613,
0.1943809539,
0.293585211,
-0.0273949187,
0.1404881179,
-0.0803032294,
0.06772542,
0.0655287504,
0.0284467544,
0.0526911244,
0.0677063912,
0.1891305894,
0.117857635,
0.1071198732,
0.1639722586,
-0.0698303655,
-0.1400986463,
0.1390099078,
0.1591519266,
0.1499558836,
-0.6286535263,
-0.1661227942,
0.1514683962,
0.1900820285,
-0.2809163332,
0.0861292407,
0.2486937493,
-0.1896348447,
0.0260318611,
0.0090269782,
-0.3273123503,
-0.2984621823,
0.1726154685,
-0.0341892317,
-0.0999758542,
0.3035963178,
0.212803632,
0.0676846728,
-0.1772778034,
-0.0159317721,
0.3153965473,
-0.642352283,
0.0941705629,
-0.2409416884,
0.0220355149,
0.1095628738,
0.3932799697,
0.2531152666,
0.0152953612,
-0.0760226473,
-0.3590138257,
-0.0682951137,
0.2626478076,
-0.0593022071,
0.2759030461,
-0.2043926865,
0.3208460212,
0.0046859817,
-0.0540748537,
-0.2642842531,
0.1618343443,
-0.1454033703,
0.0519586131,
0.191051811,
0.0785940513,
0.4121577442,
0.021690743,
0.1333602816,
0.1554798782,
-0.1834117472,
-0.1200242117,
-0.2534926832,
0.1741416156,
0.0770612136,
-0.0195555501,
-0.2574189007,
-0.031388741,
-0.0771992728,
-0.1802418083,
0.2131407261,
0.1678884923,
0.0091988593,
0.0298049524,
0.1381466091,
0.0481963865,
-0.2464935482,
0.0261424556,
-0.1572972238,
0.1787124127,
0.2133847177,
0.2083948702,
0.0917931944,
0.0091936449,
0.1396328211,
-0.0103379181,
0.0379468836,
-0.0624681748,
0.1630109549,
-0.1767688692,
-0.0162948761,
0.35221982,
0.3606503606,
0.6477940679,
0.0245407932,
0.03398012,
0.0495627522,
0.1878281832,
-0.0321508162,
0.0980357751,
-0.1004558653,
0.0919480249,
0.0560002662,
0.4105974734,
-0.0531525575,
-0.0132504739,
-0.1128897294,
0.0749023035,
0.2782758474,
0.147705853,
0.3298525512,
0.5117224455,
-0.1850787997,
0.1615472585,
0.2609502375,
-0.2239239067,
0.1490018368,
0.1710413992,
-0.1418040544,
0.1291326731,
-0.3158312142,
0.2990640402,
0.0547156334,
-0.4963174164,
-0.0185962636,
0.216869235,
0.0663458034,
0.056246426,
-0.3770386279,
0.7253003716,
-0.4944148362,
-0.0363312326,
-0.1224296093,
0.0670954138,
-0.1599614918,
-0.1032060683,
0.0488659851,
-0.3158009052,
-0.2405025065,
0.1546079367,
-0.1400933862,
-0.1664374173,
0.3451707959,
-0.0109833926,
-0.2324232012,
-0.1736872345,
-0.2747785151,
0.2652488947,
-0.0639500394,
-0.2120301127,
0.4075476229,
0.0200092215,
-0.0737337843,
0.0842469707,
0.2317490131,
0.0704865605,
0.1353722066,
0.1280502677,
-0.1436004788,
-0.0078353062,
0.1166250408,
-0.2023311853,
0.3975357711,
0.1891568899,
0.0882424861,
0.4073221982,
0.1042698547,
-0.1981185377,
-0.0012606864,
-0.1564842314,
0.127236709,
-0.4012547135,
0.3482406437,
-0.0875969231,
-0.0524771586,
0.0356824249,
-0.0328328647,
-0.3564702868,
0.0889320225,
0.0010806683,
-0.0370233245,
-0.0447664894,
-0.1471876651,
0.0532829538,
0.2223320603,
0.2792684138,
0.298550725,
0.198695913,
-0.3808215261,
-0.5446336269,
-0.6770581007,
0.1334835142,
-0.0690003857,
-0.1824921817,
-0.050510142,
0.268997997,
0.0630564615,
0.2376863062,
0.0260300189,
0.1445351094,
0.1766326278,
0.0907215253,
0.0740232915,
-0.1434726864,
-0.0002061721,
0.0970932022,
-0.0242455136,
-0.3749291003,
0.0644176379,
-0.1649257392,
-0.052681379,
-0.235813126,
-0.1780257076,
0.2120485902,
-0.2146486342,
0.2914566696,
0.1977299154,
0.2918566763,
-0.0089650229,
-0.2792397141,
-0.3359559476,
-0.253347069,
-0.1910103112,
0.1218583211,
0.0248805825,
0.4896282852,
-0.1717040092,
-0.2483383268,
-0.5496247411,
0.3322091699,
0.3946073949,
0.1816078871,
-0.2106709331,
0.0724768117,
-0.0693016052,
-0.0852324963,
0.5066688657,
0.7129359245,
-0.2175035626,
-0.1399034709,
-0.2383049428,
-0.4474014342,
0.3651693761,
-0.2178668082,
-0.0264252201,
0.0368811451,
0.2639951706,
0.3638981581,
-0.2047504932,
-0.7203478813,
-0.2053184658,
0.3049063385,
0.0050100288,
-0.2338485271,
0.0728422329,
0.017467754,
-0.055201102,
-0.0483602397,
0.2159955204,
0.2498844713,
-0.6144574881,
0.4230563343,
-0.2094127685
] |
https://github.com/huggingface/datasets/issues/4179 | Dataset librispeech_asr fails to load | +1 for @albertz. Also think lots of people download the whole dataset (`"clean"` + `"other"`) for Librispeech.
Think there are also some people though who:
- a) Don't have the memory to store the whole dataset
- b) Just want to evaluate on one of the two configs | ## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
| 48 | Dataset librispeech_asr fails to load
## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
+1 for @albertz. Also think lots of people download the whole dataset (`"clean"` + `"other"`) for Librispeech.
Think there are also some people though who:
- a) Don't have the memory to store the whole dataset
- b) Just want to evaluate on one of the two configs | [
-0.2864782512,
-0.4839607477,
0.0680988878,
0.6340244412,
0.1525813788,
0.2355626971,
0.1461004764,
0.2371000201,
0.2123608291,
-0.0533141494,
-0.1300386786,
0.0948216319,
-0.3211013675,
0.2411901802,
0.0585025474,
-0.0512975715,
-0.1185007244,
0.2319578677,
-0.1747397184,
-0.1202812865,
-0.2381756604,
0.3758117855,
-0.244647786,
-0.0021679148,
-0.1384708285,
0.1862492263,
-0.009389705,
0.3627567887,
-0.1291859597,
-0.1926396787,
0.4450719655,
-0.3261861205,
0.4011134505,
0.3390727341,
-0.0001146799,
0.0329964459,
0.1974485815,
-0.2052498162,
-0.2786283791,
-0.289806664,
-0.3660936654,
0.0728081614,
0.2244331539,
0.0616749004,
-0.1416078657,
0.0959065333,
-0.09597186,
-0.3692120016,
0.3581376076,
0.3308921158,
0.2421030998,
0.2675851285,
-0.1595792472,
-0.1363956332,
0.2256511748,
0.0244018435,
-0.2052274346,
0.0532813296,
-0.0231299177,
0.1362628043,
-0.1791895628,
0.0702883229,
0.0619723722,
0.1473606378,
0.2199425846,
0.0459809341,
-0.391977489,
-0.3175211847,
0.2746736705,
0.336995542,
0.2833821774,
-0.0511116125,
-0.1968611777,
-0.0976551324,
-0.1813508421,
-0.2642343044,
0.2228301167,
0.4577170014,
-0.1431986988,
0.3312956691,
-0.039521385,
-0.2251963019,
-0.0287971534,
0.1777931452,
-0.2345646769,
0.2480503768,
-0.3421917558,
0.1191175133,
0.2713807523,
0.2980136871,
0.0475213304,
0.0374464989,
-0.1076285616,
0.1053528786,
-0.4098748863,
0.1201617047,
-0.0230757874,
0.3578152955,
0.3183113039,
0.2543184161,
0.3351866007,
-0.0567912981,
-0.1030216143,
0.0418856554,
0.1714877933,
0.1504790336,
0.3353461921,
0.2444974631,
0.1273303479,
0.2969776988,
0.0733280331,
-0.0287234038,
-0.1453866363,
0.0265282802,
-0.3238972127,
-0.2516283393,
0.090579167,
-0.4356732965,
-0.429979831,
0.1428477764,
-0.2851963639,
-0.2564659715,
0.2311996818,
0.4139815867,
-0.2897873819,
0.0807069242,
0.0865162835,
0.097397849,
-0.0941822082,
-0.0544150732,
-0.3120336235,
0.0532195568,
-0.4024542272,
0.086422585,
0.2335283309,
-0.6066651344,
0.5037904382,
0.0898015276,
-0.220353961,
-0.1728706658,
-0.1083737612,
-0.0193388294,
0.0864286199,
0.2456523627,
0.0133950226,
0.1891669035,
0.1134424806,
0.1383717209,
-0.1508449167,
-0.0395278484,
-0.0180183481,
-0.3320434988,
-0.06371703,
0.1756086498,
-0.3146348,
0.0615856014,
-0.0899001285,
0.167609781,
0.0622148886,
-0.0055139759,
0.0318340547,
-0.085324131,
-0.2076771557,
-0.1902361959,
0.5690099597,
0.3730202615,
-0.1366893053,
-0.1686149389,
-0.0406845994,
-0.3216864467,
0.3857329488,
0.0762825087,
-0.150485456,
-0.0010953237,
-0.3405222595,
0.0099663176,
0.28325966,
-0.0148163773,
-0.4852282405,
0.2786302269,
-0.0556638651,
0.2238806784,
0.151764527,
-0.0978405252,
0.1624522209,
0.0491041243,
-0.0757374093,
0.5340372324,
-0.0731331185,
-0.1859060079,
-0.4255150259,
-0.3501221538,
-0.0283141062,
0.2779067755,
0.0395111553,
0.0713546127,
0.0686589479,
0.3833122253,
0.40475896,
0.0193243492,
0.1365199834,
0.0492991507,
-0.1654882729,
0.1880507469,
-0.0575998873,
-0.1197341084,
-0.6305850744,
0.1851828247,
0.1123741567,
0.0368365906,
0.0696971864,
-0.0298004225,
-0.3020533323,
-0.2867826819,
-0.3926281035,
-0.6270391941,
-0.031328395,
0.3522002995,
0.1813616306,
-0.1299888194,
-0.3942680955,
0.4097011387,
-0.066686675,
0.300308466,
-0.3543494642,
0.314995259,
-0.012172861,
-0.0458911248,
0.0336125381,
0.2207504362,
-0.0511104427,
-0.3450973332,
-0.1065296605,
0.4643592238,
-0.0471546277,
-0.2043189257,
-0.0967621803,
-0.200274989,
0.1886776388,
-0.3146889508,
0.0309310164,
0.0267330129,
-0.0675479919,
-0.0429656915,
-0.281594187,
0.0404909886,
-0.0744118765,
0.2429829538,
0.1321257055,
0.2587024271,
0.0429504551,
-0.2466962039,
-0.1687053442,
-0.3001501262,
0.3115946949,
-0.4033464491,
0.3609392047,
0.1341481954,
-0.5161659718,
-0.2940068543,
0.3804988265,
0.0380514488,
-0.0731648505,
0.1933140904,
-0.2947484553,
0.1005820781,
0.1228783205,
0.1945212036,
0.3356691003,
0.1269971281,
0.1328823268,
-0.0474080704,
-0.0665145814,
-0.1764679849,
0.1167557314,
-0.046440389,
0.1044843122,
0.1768838316,
-0.1535588354,
-0.0009021947,
-0.4279775321,
-0.1238772124,
0.0457639582,
0.3132143319,
-0.2257510722,
-0.0834868997,
-0.2323193997,
-0.025745701,
-0.3625422418,
-0.2185832113,
-0.1767243147,
-0.1344051957,
-0.2404332459,
0.0231207497,
0.0658278391,
0.2553323507,
-0.2093301415,
0.0455154888,
-0.2299626619,
-0.0861133486,
-0.06768547,
0.1722486913,
-0.4905477762,
0.0619571134,
0.3033004999,
-0.0227272268,
0.2865028083,
-0.2348197103,
-0.2146132886,
-0.1950168461,
-0.1298451424,
0.3056706786,
-0.1167070717,
0.1826789379,
0.3629124165,
0.1371282786,
-0.0958332494,
-0.3102601469,
0.4518939257,
-0.1724716127,
-0.0325743519,
0.1589948982,
0.2692781985,
0.3357319236,
-0.1583157331,
-0.5478576422,
-0.1225892901,
-0.4533905387,
0.1328529567,
-0.0001494011,
0.10310857,
-0.0180252064,
0.0207392387,
0.0804323107,
-0.2305063605,
-0.0341859274,
-0.1984066516,
-0.1629059613,
0.188154906,
-0.2112244964,
-0.2533047795,
-0.1214947999,
0.024821762,
0.2858714759,
0.2720384002,
-0.5524842143,
0.1994642615,
-0.2049172968,
0.061557252,
-0.220301196,
0.2075450867,
0.1768573225,
0.0108304033,
0.1045470536,
-0.1976488829,
-0.134205848,
0.0978321061,
-0.3393347561,
0.4048061967,
0.026120251,
0.3284215033,
0.1798994988,
0.5082939863,
0.3439002931,
-0.1505869627,
0.2079484314,
-0.0767773688,
0.1270885766,
-0.1387688518,
-0.4614744782,
0.2145904452,
-0.0541922785,
0.0859872997,
0.3838814497,
0.1770409495,
0.0867263153,
-0.2817543149,
0.2110205591,
-0.2039252967,
-0.2502623498,
0.0856245384,
-0.0654936433,
0.2703848183,
-0.0466584489,
0.3427773416,
0.4439868927,
-0.1137430221,
0.1540441364,
0.2607249022,
0.1055797711,
0.1045862958,
-0.2147738934,
0.2323487401,
-0.5890905261,
0.2524782121,
-0.2033336163,
0.2313733399,
0.1067977101,
-0.234373644,
0.1468489617,
0.1748058945,
0.5568481684,
-0.1038096249,
0.0312593877,
-0.0269399602,
0.0363913551,
-0.3886358142,
0.0602948405,
-0.1235450432,
0.357295692,
0.2604560852,
0.1288841814,
-0.4553008378,
-0.3058998883,
0.462531656,
0.3624634147,
-0.078130275,
-0.1010163724,
-0.2698169649,
-0.3832364976,
-0.0713698193,
0.0094886664,
-0.1053613573,
0.2986246347,
0.0326921754,
-0.0290651266,
-0.0917467549,
-0.2317258716,
0.3436343372,
0.048843544,
0.4620386958,
-0.0244447012,
0.3545613587,
0.2090846896,
0.1529756933,
0.1588899493,
0.7753596902,
-0.530997932,
-0.3234416842,
0.3394289613,
-0.0593774207,
0.359152019,
0.2475199252,
-0.1589202434,
-0.1059668139,
0.079180479,
0.1149097979,
-0.1743154377,
0.2773796022,
0.215794012,
-0.1469060332,
-0.3367116153,
-0.6409859061,
0.5244445801,
0.2109769136,
-0.0379017629,
0.4387472272,
0.0556856394,
-0.222479403,
0.2947354019,
-0.0873420835,
0.7359089851,
-0.1430234015,
0.1394726187,
0.0099006612,
-0.065290831,
0.4976043701,
0.0095972521,
0.1763355583,
-0.3800457418,
-0.0951292291,
0.0100980941,
-0.1598964781,
0.0856667161,
0.1184604764,
-0.2141382694,
0.2453871667,
-0.1360047907,
0.1520732492,
0.1655341089,
0.4593964815,
-0.2705325484,
-0.2743240893,
-0.1331557781,
0.0567969084,
-0.001141069,
0.5052098036,
0.1192897335,
0.022621816,
-0.0190523881,
-0.2101815492,
-0.2829745412,
0.1276530623,
-0.386944443,
-0.0722983181,
-0.1275293678,
-0.4924767613,
0.1943809539,
0.293585211,
-0.0273949187,
0.1404881179,
-0.0803032294,
0.06772542,
0.0655287504,
0.0284467544,
0.0526911244,
0.0677063912,
0.1891305894,
0.117857635,
0.1071198732,
0.1639722586,
-0.0698303655,
-0.1400986463,
0.1390099078,
0.1591519266,
0.1499558836,
-0.6286535263,
-0.1661227942,
0.1514683962,
0.1900820285,
-0.2809163332,
0.0861292407,
0.2486937493,
-0.1896348447,
0.0260318611,
0.0090269782,
-0.3273123503,
-0.2984621823,
0.1726154685,
-0.0341892317,
-0.0999758542,
0.3035963178,
0.212803632,
0.0676846728,
-0.1772778034,
-0.0159317721,
0.3153965473,
-0.642352283,
0.0941705629,
-0.2409416884,
0.0220355149,
0.1095628738,
0.3932799697,
0.2531152666,
0.0152953612,
-0.0760226473,
-0.3590138257,
-0.0682951137,
0.2626478076,
-0.0593022071,
0.2759030461,
-0.2043926865,
0.3208460212,
0.0046859817,
-0.0540748537,
-0.2642842531,
0.1618343443,
-0.1454033703,
0.0519586131,
0.191051811,
0.0785940513,
0.4121577442,
0.021690743,
0.1333602816,
0.1554798782,
-0.1834117472,
-0.1200242117,
-0.2534926832,
0.1741416156,
0.0770612136,
-0.0195555501,
-0.2574189007,
-0.031388741,
-0.0771992728,
-0.1802418083,
0.2131407261,
0.1678884923,
0.0091988593,
0.0298049524,
0.1381466091,
0.0481963865,
-0.2464935482,
0.0261424556,
-0.1572972238,
0.1787124127,
0.2133847177,
0.2083948702,
0.0917931944,
0.0091936449,
0.1396328211,
-0.0103379181,
0.0379468836,
-0.0624681748,
0.1630109549,
-0.1767688692,
-0.0162948761,
0.35221982,
0.3606503606,
0.6477940679,
0.0245407932,
0.03398012,
0.0495627522,
0.1878281832,
-0.0321508162,
0.0980357751,
-0.1004558653,
0.0919480249,
0.0560002662,
0.4105974734,
-0.0531525575,
-0.0132504739,
-0.1128897294,
0.0749023035,
0.2782758474,
0.147705853,
0.3298525512,
0.5117224455,
-0.1850787997,
0.1615472585,
0.2609502375,
-0.2239239067,
0.1490018368,
0.1710413992,
-0.1418040544,
0.1291326731,
-0.3158312142,
0.2990640402,
0.0547156334,
-0.4963174164,
-0.0185962636,
0.216869235,
0.0663458034,
0.056246426,
-0.3770386279,
0.7253003716,
-0.4944148362,
-0.0363312326,
-0.1224296093,
0.0670954138,
-0.1599614918,
-0.1032060683,
0.0488659851,
-0.3158009052,
-0.2405025065,
0.1546079367,
-0.1400933862,
-0.1664374173,
0.3451707959,
-0.0109833926,
-0.2324232012,
-0.1736872345,
-0.2747785151,
0.2652488947,
-0.0639500394,
-0.2120301127,
0.4075476229,
0.0200092215,
-0.0737337843,
0.0842469707,
0.2317490131,
0.0704865605,
0.1353722066,
0.1280502677,
-0.1436004788,
-0.0078353062,
0.1166250408,
-0.2023311853,
0.3975357711,
0.1891568899,
0.0882424861,
0.4073221982,
0.1042698547,
-0.1981185377,
-0.0012606864,
-0.1564842314,
0.127236709,
-0.4012547135,
0.3482406437,
-0.0875969231,
-0.0524771586,
0.0356824249,
-0.0328328647,
-0.3564702868,
0.0889320225,
0.0010806683,
-0.0370233245,
-0.0447664894,
-0.1471876651,
0.0532829538,
0.2223320603,
0.2792684138,
0.298550725,
0.198695913,
-0.3808215261,
-0.5446336269,
-0.6770581007,
0.1334835142,
-0.0690003857,
-0.1824921817,
-0.050510142,
0.268997997,
0.0630564615,
0.2376863062,
0.0260300189,
0.1445351094,
0.1766326278,
0.0907215253,
0.0740232915,
-0.1434726864,
-0.0002061721,
0.0970932022,
-0.0242455136,
-0.3749291003,
0.0644176379,
-0.1649257392,
-0.052681379,
-0.235813126,
-0.1780257076,
0.2120485902,
-0.2146486342,
0.2914566696,
0.1977299154,
0.2918566763,
-0.0089650229,
-0.2792397141,
-0.3359559476,
-0.253347069,
-0.1910103112,
0.1218583211,
0.0248805825,
0.4896282852,
-0.1717040092,
-0.2483383268,
-0.5496247411,
0.3322091699,
0.3946073949,
0.1816078871,
-0.2106709331,
0.0724768117,
-0.0693016052,
-0.0852324963,
0.5066688657,
0.7129359245,
-0.2175035626,
-0.1399034709,
-0.2383049428,
-0.4474014342,
0.3651693761,
-0.2178668082,
-0.0264252201,
0.0368811451,
0.2639951706,
0.3638981581,
-0.2047504932,
-0.7203478813,
-0.2053184658,
0.3049063385,
0.0050100288,
-0.2338485271,
0.0728422329,
0.017467754,
-0.055201102,
-0.0483602397,
0.2159955204,
0.2498844713,
-0.6144574881,
0.4230563343,
-0.2094127685
] |
https://github.com/huggingface/datasets/issues/4179 | Dataset librispeech_asr fails to load | Ok ! Adding the "all" configuration would do the job then, thanks ! In the "all" configuration we can merge all the train.xxx splits into one "train" split, or keep them separate depending on what's the most practical to use (probably put everything in "train" no ?) | ## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
| 47 | Dataset librispeech_asr fails to load
## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
Ok ! Adding the "all" configuration would do the job then, thanks ! In the "all" configuration we can merge all the train.xxx splits into one "train" split, or keep them separate depending on what's the most practical to use (probably put everything in "train" no ?) | [
-0.2864782512,
-0.4839607477,
0.0680988878,
0.6340244412,
0.1525813788,
0.2355626971,
0.1461004764,
0.2371000201,
0.2123608291,
-0.0533141494,
-0.1300386786,
0.0948216319,
-0.3211013675,
0.2411901802,
0.0585025474,
-0.0512975715,
-0.1185007244,
0.2319578677,
-0.1747397184,
-0.1202812865,
-0.2381756604,
0.3758117855,
-0.244647786,
-0.0021679148,
-0.1384708285,
0.1862492263,
-0.009389705,
0.3627567887,
-0.1291859597,
-0.1926396787,
0.4450719655,
-0.3261861205,
0.4011134505,
0.3390727341,
-0.0001146799,
0.0329964459,
0.1974485815,
-0.2052498162,
-0.2786283791,
-0.289806664,
-0.3660936654,
0.0728081614,
0.2244331539,
0.0616749004,
-0.1416078657,
0.0959065333,
-0.09597186,
-0.3692120016,
0.3581376076,
0.3308921158,
0.2421030998,
0.2675851285,
-0.1595792472,
-0.1363956332,
0.2256511748,
0.0244018435,
-0.2052274346,
0.0532813296,
-0.0231299177,
0.1362628043,
-0.1791895628,
0.0702883229,
0.0619723722,
0.1473606378,
0.2199425846,
0.0459809341,
-0.391977489,
-0.3175211847,
0.2746736705,
0.336995542,
0.2833821774,
-0.0511116125,
-0.1968611777,
-0.0976551324,
-0.1813508421,
-0.2642343044,
0.2228301167,
0.4577170014,
-0.1431986988,
0.3312956691,
-0.039521385,
-0.2251963019,
-0.0287971534,
0.1777931452,
-0.2345646769,
0.2480503768,
-0.3421917558,
0.1191175133,
0.2713807523,
0.2980136871,
0.0475213304,
0.0374464989,
-0.1076285616,
0.1053528786,
-0.4098748863,
0.1201617047,
-0.0230757874,
0.3578152955,
0.3183113039,
0.2543184161,
0.3351866007,
-0.0567912981,
-0.1030216143,
0.0418856554,
0.1714877933,
0.1504790336,
0.3353461921,
0.2444974631,
0.1273303479,
0.2969776988,
0.0733280331,
-0.0287234038,
-0.1453866363,
0.0265282802,
-0.3238972127,
-0.2516283393,
0.090579167,
-0.4356732965,
-0.429979831,
0.1428477764,
-0.2851963639,
-0.2564659715,
0.2311996818,
0.4139815867,
-0.2897873819,
0.0807069242,
0.0865162835,
0.097397849,
-0.0941822082,
-0.0544150732,
-0.3120336235,
0.0532195568,
-0.4024542272,
0.086422585,
0.2335283309,
-0.6066651344,
0.5037904382,
0.0898015276,
-0.220353961,
-0.1728706658,
-0.1083737612,
-0.0193388294,
0.0864286199,
0.2456523627,
0.0133950226,
0.1891669035,
0.1134424806,
0.1383717209,
-0.1508449167,
-0.0395278484,
-0.0180183481,
-0.3320434988,
-0.06371703,
0.1756086498,
-0.3146348,
0.0615856014,
-0.0899001285,
0.167609781,
0.0622148886,
-0.0055139759,
0.0318340547,
-0.085324131,
-0.2076771557,
-0.1902361959,
0.5690099597,
0.3730202615,
-0.1366893053,
-0.1686149389,
-0.0406845994,
-0.3216864467,
0.3857329488,
0.0762825087,
-0.150485456,
-0.0010953237,
-0.3405222595,
0.0099663176,
0.28325966,
-0.0148163773,
-0.4852282405,
0.2786302269,
-0.0556638651,
0.2238806784,
0.151764527,
-0.0978405252,
0.1624522209,
0.0491041243,
-0.0757374093,
0.5340372324,
-0.0731331185,
-0.1859060079,
-0.4255150259,
-0.3501221538,
-0.0283141062,
0.2779067755,
0.0395111553,
0.0713546127,
0.0686589479,
0.3833122253,
0.40475896,
0.0193243492,
0.1365199834,
0.0492991507,
-0.1654882729,
0.1880507469,
-0.0575998873,
-0.1197341084,
-0.6305850744,
0.1851828247,
0.1123741567,
0.0368365906,
0.0696971864,
-0.0298004225,
-0.3020533323,
-0.2867826819,
-0.3926281035,
-0.6270391941,
-0.031328395,
0.3522002995,
0.1813616306,
-0.1299888194,
-0.3942680955,
0.4097011387,
-0.066686675,
0.300308466,
-0.3543494642,
0.314995259,
-0.012172861,
-0.0458911248,
0.0336125381,
0.2207504362,
-0.0511104427,
-0.3450973332,
-0.1065296605,
0.4643592238,
-0.0471546277,
-0.2043189257,
-0.0967621803,
-0.200274989,
0.1886776388,
-0.3146889508,
0.0309310164,
0.0267330129,
-0.0675479919,
-0.0429656915,
-0.281594187,
0.0404909886,
-0.0744118765,
0.2429829538,
0.1321257055,
0.2587024271,
0.0429504551,
-0.2466962039,
-0.1687053442,
-0.3001501262,
0.3115946949,
-0.4033464491,
0.3609392047,
0.1341481954,
-0.5161659718,
-0.2940068543,
0.3804988265,
0.0380514488,
-0.0731648505,
0.1933140904,
-0.2947484553,
0.1005820781,
0.1228783205,
0.1945212036,
0.3356691003,
0.1269971281,
0.1328823268,
-0.0474080704,
-0.0665145814,
-0.1764679849,
0.1167557314,
-0.046440389,
0.1044843122,
0.1768838316,
-0.1535588354,
-0.0009021947,
-0.4279775321,
-0.1238772124,
0.0457639582,
0.3132143319,
-0.2257510722,
-0.0834868997,
-0.2323193997,
-0.025745701,
-0.3625422418,
-0.2185832113,
-0.1767243147,
-0.1344051957,
-0.2404332459,
0.0231207497,
0.0658278391,
0.2553323507,
-0.2093301415,
0.0455154888,
-0.2299626619,
-0.0861133486,
-0.06768547,
0.1722486913,
-0.4905477762,
0.0619571134,
0.3033004999,
-0.0227272268,
0.2865028083,
-0.2348197103,
-0.2146132886,
-0.1950168461,
-0.1298451424,
0.3056706786,
-0.1167070717,
0.1826789379,
0.3629124165,
0.1371282786,
-0.0958332494,
-0.3102601469,
0.4518939257,
-0.1724716127,
-0.0325743519,
0.1589948982,
0.2692781985,
0.3357319236,
-0.1583157331,
-0.5478576422,
-0.1225892901,
-0.4533905387,
0.1328529567,
-0.0001494011,
0.10310857,
-0.0180252064,
0.0207392387,
0.0804323107,
-0.2305063605,
-0.0341859274,
-0.1984066516,
-0.1629059613,
0.188154906,
-0.2112244964,
-0.2533047795,
-0.1214947999,
0.024821762,
0.2858714759,
0.2720384002,
-0.5524842143,
0.1994642615,
-0.2049172968,
0.061557252,
-0.220301196,
0.2075450867,
0.1768573225,
0.0108304033,
0.1045470536,
-0.1976488829,
-0.134205848,
0.0978321061,
-0.3393347561,
0.4048061967,
0.026120251,
0.3284215033,
0.1798994988,
0.5082939863,
0.3439002931,
-0.1505869627,
0.2079484314,
-0.0767773688,
0.1270885766,
-0.1387688518,
-0.4614744782,
0.2145904452,
-0.0541922785,
0.0859872997,
0.3838814497,
0.1770409495,
0.0867263153,
-0.2817543149,
0.2110205591,
-0.2039252967,
-0.2502623498,
0.0856245384,
-0.0654936433,
0.2703848183,
-0.0466584489,
0.3427773416,
0.4439868927,
-0.1137430221,
0.1540441364,
0.2607249022,
0.1055797711,
0.1045862958,
-0.2147738934,
0.2323487401,
-0.5890905261,
0.2524782121,
-0.2033336163,
0.2313733399,
0.1067977101,
-0.234373644,
0.1468489617,
0.1748058945,
0.5568481684,
-0.1038096249,
0.0312593877,
-0.0269399602,
0.0363913551,
-0.3886358142,
0.0602948405,
-0.1235450432,
0.357295692,
0.2604560852,
0.1288841814,
-0.4553008378,
-0.3058998883,
0.462531656,
0.3624634147,
-0.078130275,
-0.1010163724,
-0.2698169649,
-0.3832364976,
-0.0713698193,
0.0094886664,
-0.1053613573,
0.2986246347,
0.0326921754,
-0.0290651266,
-0.0917467549,
-0.2317258716,
0.3436343372,
0.048843544,
0.4620386958,
-0.0244447012,
0.3545613587,
0.2090846896,
0.1529756933,
0.1588899493,
0.7753596902,
-0.530997932,
-0.3234416842,
0.3394289613,
-0.0593774207,
0.359152019,
0.2475199252,
-0.1589202434,
-0.1059668139,
0.079180479,
0.1149097979,
-0.1743154377,
0.2773796022,
0.215794012,
-0.1469060332,
-0.3367116153,
-0.6409859061,
0.5244445801,
0.2109769136,
-0.0379017629,
0.4387472272,
0.0556856394,
-0.222479403,
0.2947354019,
-0.0873420835,
0.7359089851,
-0.1430234015,
0.1394726187,
0.0099006612,
-0.065290831,
0.4976043701,
0.0095972521,
0.1763355583,
-0.3800457418,
-0.0951292291,
0.0100980941,
-0.1598964781,
0.0856667161,
0.1184604764,
-0.2141382694,
0.2453871667,
-0.1360047907,
0.1520732492,
0.1655341089,
0.4593964815,
-0.2705325484,
-0.2743240893,
-0.1331557781,
0.0567969084,
-0.001141069,
0.5052098036,
0.1192897335,
0.022621816,
-0.0190523881,
-0.2101815492,
-0.2829745412,
0.1276530623,
-0.386944443,
-0.0722983181,
-0.1275293678,
-0.4924767613,
0.1943809539,
0.293585211,
-0.0273949187,
0.1404881179,
-0.0803032294,
0.06772542,
0.0655287504,
0.0284467544,
0.0526911244,
0.0677063912,
0.1891305894,
0.117857635,
0.1071198732,
0.1639722586,
-0.0698303655,
-0.1400986463,
0.1390099078,
0.1591519266,
0.1499558836,
-0.6286535263,
-0.1661227942,
0.1514683962,
0.1900820285,
-0.2809163332,
0.0861292407,
0.2486937493,
-0.1896348447,
0.0260318611,
0.0090269782,
-0.3273123503,
-0.2984621823,
0.1726154685,
-0.0341892317,
-0.0999758542,
0.3035963178,
0.212803632,
0.0676846728,
-0.1772778034,
-0.0159317721,
0.3153965473,
-0.642352283,
0.0941705629,
-0.2409416884,
0.0220355149,
0.1095628738,
0.3932799697,
0.2531152666,
0.0152953612,
-0.0760226473,
-0.3590138257,
-0.0682951137,
0.2626478076,
-0.0593022071,
0.2759030461,
-0.2043926865,
0.3208460212,
0.0046859817,
-0.0540748537,
-0.2642842531,
0.1618343443,
-0.1454033703,
0.0519586131,
0.191051811,
0.0785940513,
0.4121577442,
0.021690743,
0.1333602816,
0.1554798782,
-0.1834117472,
-0.1200242117,
-0.2534926832,
0.1741416156,
0.0770612136,
-0.0195555501,
-0.2574189007,
-0.031388741,
-0.0771992728,
-0.1802418083,
0.2131407261,
0.1678884923,
0.0091988593,
0.0298049524,
0.1381466091,
0.0481963865,
-0.2464935482,
0.0261424556,
-0.1572972238,
0.1787124127,
0.2133847177,
0.2083948702,
0.0917931944,
0.0091936449,
0.1396328211,
-0.0103379181,
0.0379468836,
-0.0624681748,
0.1630109549,
-0.1767688692,
-0.0162948761,
0.35221982,
0.3606503606,
0.6477940679,
0.0245407932,
0.03398012,
0.0495627522,
0.1878281832,
-0.0321508162,
0.0980357751,
-0.1004558653,
0.0919480249,
0.0560002662,
0.4105974734,
-0.0531525575,
-0.0132504739,
-0.1128897294,
0.0749023035,
0.2782758474,
0.147705853,
0.3298525512,
0.5117224455,
-0.1850787997,
0.1615472585,
0.2609502375,
-0.2239239067,
0.1490018368,
0.1710413992,
-0.1418040544,
0.1291326731,
-0.3158312142,
0.2990640402,
0.0547156334,
-0.4963174164,
-0.0185962636,
0.216869235,
0.0663458034,
0.056246426,
-0.3770386279,
0.7253003716,
-0.4944148362,
-0.0363312326,
-0.1224296093,
0.0670954138,
-0.1599614918,
-0.1032060683,
0.0488659851,
-0.3158009052,
-0.2405025065,
0.1546079367,
-0.1400933862,
-0.1664374173,
0.3451707959,
-0.0109833926,
-0.2324232012,
-0.1736872345,
-0.2747785151,
0.2652488947,
-0.0639500394,
-0.2120301127,
0.4075476229,
0.0200092215,
-0.0737337843,
0.0842469707,
0.2317490131,
0.0704865605,
0.1353722066,
0.1280502677,
-0.1436004788,
-0.0078353062,
0.1166250408,
-0.2023311853,
0.3975357711,
0.1891568899,
0.0882424861,
0.4073221982,
0.1042698547,
-0.1981185377,
-0.0012606864,
-0.1564842314,
0.127236709,
-0.4012547135,
0.3482406437,
-0.0875969231,
-0.0524771586,
0.0356824249,
-0.0328328647,
-0.3564702868,
0.0889320225,
0.0010806683,
-0.0370233245,
-0.0447664894,
-0.1471876651,
0.0532829538,
0.2223320603,
0.2792684138,
0.298550725,
0.198695913,
-0.3808215261,
-0.5446336269,
-0.6770581007,
0.1334835142,
-0.0690003857,
-0.1824921817,
-0.050510142,
0.268997997,
0.0630564615,
0.2376863062,
0.0260300189,
0.1445351094,
0.1766326278,
0.0907215253,
0.0740232915,
-0.1434726864,
-0.0002061721,
0.0970932022,
-0.0242455136,
-0.3749291003,
0.0644176379,
-0.1649257392,
-0.052681379,
-0.235813126,
-0.1780257076,
0.2120485902,
-0.2146486342,
0.2914566696,
0.1977299154,
0.2918566763,
-0.0089650229,
-0.2792397141,
-0.3359559476,
-0.253347069,
-0.1910103112,
0.1218583211,
0.0248805825,
0.4896282852,
-0.1717040092,
-0.2483383268,
-0.5496247411,
0.3322091699,
0.3946073949,
0.1816078871,
-0.2106709331,
0.0724768117,
-0.0693016052,
-0.0852324963,
0.5066688657,
0.7129359245,
-0.2175035626,
-0.1399034709,
-0.2383049428,
-0.4474014342,
0.3651693761,
-0.2178668082,
-0.0264252201,
0.0368811451,
0.2639951706,
0.3638981581,
-0.2047504932,
-0.7203478813,
-0.2053184658,
0.3049063385,
0.0050100288,
-0.2338485271,
0.0728422329,
0.017467754,
-0.055201102,
-0.0483602397,
0.2159955204,
0.2498844713,
-0.6144574881,
0.4230563343,
-0.2094127685
] |
https://github.com/huggingface/datasets/issues/4179 | Dataset librispeech_asr fails to load | I'm not too familiar with how to work with HuggingFace datasets, but people often do some curriculum learning scheme, where they start with train.100, later go over to train.100 + train.360, and then later use the whole train (960h). It would be good if this is easily possible.
| ## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
| 48 | Dataset librispeech_asr fails to load
## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
I'm not too familiar with how to work with HuggingFace datasets, but people often do some curriculum learning scheme, where they start with train.100, later go over to train.100 + train.360, and then later use the whole train (960h). It would be good if this is easily possible.
| [
-0.2864782512,
-0.4839607477,
0.0680988878,
0.6340244412,
0.1525813788,
0.2355626971,
0.1461004764,
0.2371000201,
0.2123608291,
-0.0533141494,
-0.1300386786,
0.0948216319,
-0.3211013675,
0.2411901802,
0.0585025474,
-0.0512975715,
-0.1185007244,
0.2319578677,
-0.1747397184,
-0.1202812865,
-0.2381756604,
0.3758117855,
-0.244647786,
-0.0021679148,
-0.1384708285,
0.1862492263,
-0.009389705,
0.3627567887,
-0.1291859597,
-0.1926396787,
0.4450719655,
-0.3261861205,
0.4011134505,
0.3390727341,
-0.0001146799,
0.0329964459,
0.1974485815,
-0.2052498162,
-0.2786283791,
-0.289806664,
-0.3660936654,
0.0728081614,
0.2244331539,
0.0616749004,
-0.1416078657,
0.0959065333,
-0.09597186,
-0.3692120016,
0.3581376076,
0.3308921158,
0.2421030998,
0.2675851285,
-0.1595792472,
-0.1363956332,
0.2256511748,
0.0244018435,
-0.2052274346,
0.0532813296,
-0.0231299177,
0.1362628043,
-0.1791895628,
0.0702883229,
0.0619723722,
0.1473606378,
0.2199425846,
0.0459809341,
-0.391977489,
-0.3175211847,
0.2746736705,
0.336995542,
0.2833821774,
-0.0511116125,
-0.1968611777,
-0.0976551324,
-0.1813508421,
-0.2642343044,
0.2228301167,
0.4577170014,
-0.1431986988,
0.3312956691,
-0.039521385,
-0.2251963019,
-0.0287971534,
0.1777931452,
-0.2345646769,
0.2480503768,
-0.3421917558,
0.1191175133,
0.2713807523,
0.2980136871,
0.0475213304,
0.0374464989,
-0.1076285616,
0.1053528786,
-0.4098748863,
0.1201617047,
-0.0230757874,
0.3578152955,
0.3183113039,
0.2543184161,
0.3351866007,
-0.0567912981,
-0.1030216143,
0.0418856554,
0.1714877933,
0.1504790336,
0.3353461921,
0.2444974631,
0.1273303479,
0.2969776988,
0.0733280331,
-0.0287234038,
-0.1453866363,
0.0265282802,
-0.3238972127,
-0.2516283393,
0.090579167,
-0.4356732965,
-0.429979831,
0.1428477764,
-0.2851963639,
-0.2564659715,
0.2311996818,
0.4139815867,
-0.2897873819,
0.0807069242,
0.0865162835,
0.097397849,
-0.0941822082,
-0.0544150732,
-0.3120336235,
0.0532195568,
-0.4024542272,
0.086422585,
0.2335283309,
-0.6066651344,
0.5037904382,
0.0898015276,
-0.220353961,
-0.1728706658,
-0.1083737612,
-0.0193388294,
0.0864286199,
0.2456523627,
0.0133950226,
0.1891669035,
0.1134424806,
0.1383717209,
-0.1508449167,
-0.0395278484,
-0.0180183481,
-0.3320434988,
-0.06371703,
0.1756086498,
-0.3146348,
0.0615856014,
-0.0899001285,
0.167609781,
0.0622148886,
-0.0055139759,
0.0318340547,
-0.085324131,
-0.2076771557,
-0.1902361959,
0.5690099597,
0.3730202615,
-0.1366893053,
-0.1686149389,
-0.0406845994,
-0.3216864467,
0.3857329488,
0.0762825087,
-0.150485456,
-0.0010953237,
-0.3405222595,
0.0099663176,
0.28325966,
-0.0148163773,
-0.4852282405,
0.2786302269,
-0.0556638651,
0.2238806784,
0.151764527,
-0.0978405252,
0.1624522209,
0.0491041243,
-0.0757374093,
0.5340372324,
-0.0731331185,
-0.1859060079,
-0.4255150259,
-0.3501221538,
-0.0283141062,
0.2779067755,
0.0395111553,
0.0713546127,
0.0686589479,
0.3833122253,
0.40475896,
0.0193243492,
0.1365199834,
0.0492991507,
-0.1654882729,
0.1880507469,
-0.0575998873,
-0.1197341084,
-0.6305850744,
0.1851828247,
0.1123741567,
0.0368365906,
0.0696971864,
-0.0298004225,
-0.3020533323,
-0.2867826819,
-0.3926281035,
-0.6270391941,
-0.031328395,
0.3522002995,
0.1813616306,
-0.1299888194,
-0.3942680955,
0.4097011387,
-0.066686675,
0.300308466,
-0.3543494642,
0.314995259,
-0.012172861,
-0.0458911248,
0.0336125381,
0.2207504362,
-0.0511104427,
-0.3450973332,
-0.1065296605,
0.4643592238,
-0.0471546277,
-0.2043189257,
-0.0967621803,
-0.200274989,
0.1886776388,
-0.3146889508,
0.0309310164,
0.0267330129,
-0.0675479919,
-0.0429656915,
-0.281594187,
0.0404909886,
-0.0744118765,
0.2429829538,
0.1321257055,
0.2587024271,
0.0429504551,
-0.2466962039,
-0.1687053442,
-0.3001501262,
0.3115946949,
-0.4033464491,
0.3609392047,
0.1341481954,
-0.5161659718,
-0.2940068543,
0.3804988265,
0.0380514488,
-0.0731648505,
0.1933140904,
-0.2947484553,
0.1005820781,
0.1228783205,
0.1945212036,
0.3356691003,
0.1269971281,
0.1328823268,
-0.0474080704,
-0.0665145814,
-0.1764679849,
0.1167557314,
-0.046440389,
0.1044843122,
0.1768838316,
-0.1535588354,
-0.0009021947,
-0.4279775321,
-0.1238772124,
0.0457639582,
0.3132143319,
-0.2257510722,
-0.0834868997,
-0.2323193997,
-0.025745701,
-0.3625422418,
-0.2185832113,
-0.1767243147,
-0.1344051957,
-0.2404332459,
0.0231207497,
0.0658278391,
0.2553323507,
-0.2093301415,
0.0455154888,
-0.2299626619,
-0.0861133486,
-0.06768547,
0.1722486913,
-0.4905477762,
0.0619571134,
0.3033004999,
-0.0227272268,
0.2865028083,
-0.2348197103,
-0.2146132886,
-0.1950168461,
-0.1298451424,
0.3056706786,
-0.1167070717,
0.1826789379,
0.3629124165,
0.1371282786,
-0.0958332494,
-0.3102601469,
0.4518939257,
-0.1724716127,
-0.0325743519,
0.1589948982,
0.2692781985,
0.3357319236,
-0.1583157331,
-0.5478576422,
-0.1225892901,
-0.4533905387,
0.1328529567,
-0.0001494011,
0.10310857,
-0.0180252064,
0.0207392387,
0.0804323107,
-0.2305063605,
-0.0341859274,
-0.1984066516,
-0.1629059613,
0.188154906,
-0.2112244964,
-0.2533047795,
-0.1214947999,
0.024821762,
0.2858714759,
0.2720384002,
-0.5524842143,
0.1994642615,
-0.2049172968,
0.061557252,
-0.220301196,
0.2075450867,
0.1768573225,
0.0108304033,
0.1045470536,
-0.1976488829,
-0.134205848,
0.0978321061,
-0.3393347561,
0.4048061967,
0.026120251,
0.3284215033,
0.1798994988,
0.5082939863,
0.3439002931,
-0.1505869627,
0.2079484314,
-0.0767773688,
0.1270885766,
-0.1387688518,
-0.4614744782,
0.2145904452,
-0.0541922785,
0.0859872997,
0.3838814497,
0.1770409495,
0.0867263153,
-0.2817543149,
0.2110205591,
-0.2039252967,
-0.2502623498,
0.0856245384,
-0.0654936433,
0.2703848183,
-0.0466584489,
0.3427773416,
0.4439868927,
-0.1137430221,
0.1540441364,
0.2607249022,
0.1055797711,
0.1045862958,
-0.2147738934,
0.2323487401,
-0.5890905261,
0.2524782121,
-0.2033336163,
0.2313733399,
0.1067977101,
-0.234373644,
0.1468489617,
0.1748058945,
0.5568481684,
-0.1038096249,
0.0312593877,
-0.0269399602,
0.0363913551,
-0.3886358142,
0.0602948405,
-0.1235450432,
0.357295692,
0.2604560852,
0.1288841814,
-0.4553008378,
-0.3058998883,
0.462531656,
0.3624634147,
-0.078130275,
-0.1010163724,
-0.2698169649,
-0.3832364976,
-0.0713698193,
0.0094886664,
-0.1053613573,
0.2986246347,
0.0326921754,
-0.0290651266,
-0.0917467549,
-0.2317258716,
0.3436343372,
0.048843544,
0.4620386958,
-0.0244447012,
0.3545613587,
0.2090846896,
0.1529756933,
0.1588899493,
0.7753596902,
-0.530997932,
-0.3234416842,
0.3394289613,
-0.0593774207,
0.359152019,
0.2475199252,
-0.1589202434,
-0.1059668139,
0.079180479,
0.1149097979,
-0.1743154377,
0.2773796022,
0.215794012,
-0.1469060332,
-0.3367116153,
-0.6409859061,
0.5244445801,
0.2109769136,
-0.0379017629,
0.4387472272,
0.0556856394,
-0.222479403,
0.2947354019,
-0.0873420835,
0.7359089851,
-0.1430234015,
0.1394726187,
0.0099006612,
-0.065290831,
0.4976043701,
0.0095972521,
0.1763355583,
-0.3800457418,
-0.0951292291,
0.0100980941,
-0.1598964781,
0.0856667161,
0.1184604764,
-0.2141382694,
0.2453871667,
-0.1360047907,
0.1520732492,
0.1655341089,
0.4593964815,
-0.2705325484,
-0.2743240893,
-0.1331557781,
0.0567969084,
-0.001141069,
0.5052098036,
0.1192897335,
0.022621816,
-0.0190523881,
-0.2101815492,
-0.2829745412,
0.1276530623,
-0.386944443,
-0.0722983181,
-0.1275293678,
-0.4924767613,
0.1943809539,
0.293585211,
-0.0273949187,
0.1404881179,
-0.0803032294,
0.06772542,
0.0655287504,
0.0284467544,
0.0526911244,
0.0677063912,
0.1891305894,
0.117857635,
0.1071198732,
0.1639722586,
-0.0698303655,
-0.1400986463,
0.1390099078,
0.1591519266,
0.1499558836,
-0.6286535263,
-0.1661227942,
0.1514683962,
0.1900820285,
-0.2809163332,
0.0861292407,
0.2486937493,
-0.1896348447,
0.0260318611,
0.0090269782,
-0.3273123503,
-0.2984621823,
0.1726154685,
-0.0341892317,
-0.0999758542,
0.3035963178,
0.212803632,
0.0676846728,
-0.1772778034,
-0.0159317721,
0.3153965473,
-0.642352283,
0.0941705629,
-0.2409416884,
0.0220355149,
0.1095628738,
0.3932799697,
0.2531152666,
0.0152953612,
-0.0760226473,
-0.3590138257,
-0.0682951137,
0.2626478076,
-0.0593022071,
0.2759030461,
-0.2043926865,
0.3208460212,
0.0046859817,
-0.0540748537,
-0.2642842531,
0.1618343443,
-0.1454033703,
0.0519586131,
0.191051811,
0.0785940513,
0.4121577442,
0.021690743,
0.1333602816,
0.1554798782,
-0.1834117472,
-0.1200242117,
-0.2534926832,
0.1741416156,
0.0770612136,
-0.0195555501,
-0.2574189007,
-0.031388741,
-0.0771992728,
-0.1802418083,
0.2131407261,
0.1678884923,
0.0091988593,
0.0298049524,
0.1381466091,
0.0481963865,
-0.2464935482,
0.0261424556,
-0.1572972238,
0.1787124127,
0.2133847177,
0.2083948702,
0.0917931944,
0.0091936449,
0.1396328211,
-0.0103379181,
0.0379468836,
-0.0624681748,
0.1630109549,
-0.1767688692,
-0.0162948761,
0.35221982,
0.3606503606,
0.6477940679,
0.0245407932,
0.03398012,
0.0495627522,
0.1878281832,
-0.0321508162,
0.0980357751,
-0.1004558653,
0.0919480249,
0.0560002662,
0.4105974734,
-0.0531525575,
-0.0132504739,
-0.1128897294,
0.0749023035,
0.2782758474,
0.147705853,
0.3298525512,
0.5117224455,
-0.1850787997,
0.1615472585,
0.2609502375,
-0.2239239067,
0.1490018368,
0.1710413992,
-0.1418040544,
0.1291326731,
-0.3158312142,
0.2990640402,
0.0547156334,
-0.4963174164,
-0.0185962636,
0.216869235,
0.0663458034,
0.056246426,
-0.3770386279,
0.7253003716,
-0.4944148362,
-0.0363312326,
-0.1224296093,
0.0670954138,
-0.1599614918,
-0.1032060683,
0.0488659851,
-0.3158009052,
-0.2405025065,
0.1546079367,
-0.1400933862,
-0.1664374173,
0.3451707959,
-0.0109833926,
-0.2324232012,
-0.1736872345,
-0.2747785151,
0.2652488947,
-0.0639500394,
-0.2120301127,
0.4075476229,
0.0200092215,
-0.0737337843,
0.0842469707,
0.2317490131,
0.0704865605,
0.1353722066,
0.1280502677,
-0.1436004788,
-0.0078353062,
0.1166250408,
-0.2023311853,
0.3975357711,
0.1891568899,
0.0882424861,
0.4073221982,
0.1042698547,
-0.1981185377,
-0.0012606864,
-0.1564842314,
0.127236709,
-0.4012547135,
0.3482406437,
-0.0875969231,
-0.0524771586,
0.0356824249,
-0.0328328647,
-0.3564702868,
0.0889320225,
0.0010806683,
-0.0370233245,
-0.0447664894,
-0.1471876651,
0.0532829538,
0.2223320603,
0.2792684138,
0.298550725,
0.198695913,
-0.3808215261,
-0.5446336269,
-0.6770581007,
0.1334835142,
-0.0690003857,
-0.1824921817,
-0.050510142,
0.268997997,
0.0630564615,
0.2376863062,
0.0260300189,
0.1445351094,
0.1766326278,
0.0907215253,
0.0740232915,
-0.1434726864,
-0.0002061721,
0.0970932022,
-0.0242455136,
-0.3749291003,
0.0644176379,
-0.1649257392,
-0.052681379,
-0.235813126,
-0.1780257076,
0.2120485902,
-0.2146486342,
0.2914566696,
0.1977299154,
0.2918566763,
-0.0089650229,
-0.2792397141,
-0.3359559476,
-0.253347069,
-0.1910103112,
0.1218583211,
0.0248805825,
0.4896282852,
-0.1717040092,
-0.2483383268,
-0.5496247411,
0.3322091699,
0.3946073949,
0.1816078871,
-0.2106709331,
0.0724768117,
-0.0693016052,
-0.0852324963,
0.5066688657,
0.7129359245,
-0.2175035626,
-0.1399034709,
-0.2383049428,
-0.4474014342,
0.3651693761,
-0.2178668082,
-0.0264252201,
0.0368811451,
0.2639951706,
0.3638981581,
-0.2047504932,
-0.7203478813,
-0.2053184658,
0.3049063385,
0.0050100288,
-0.2338485271,
0.0728422329,
0.017467754,
-0.055201102,
-0.0483602397,
0.2159955204,
0.2498844713,
-0.6144574881,
0.4230563343,
-0.2094127685
] |
https://github.com/huggingface/datasets/issues/4179 | Dataset librispeech_asr fails to load | Hey @albertz,
opened a PR here. Think by adding the "subdataset" class to each split "train", "dev", "other" as shown here: https://github.com/huggingface/datasets/pull/4184/files#r853272727 it should be easily possible (e.g. with the filter function https://huggingface.co/docs/datasets/v2.1.0/en/package_reference/main_classes#datasets.Dataset.filter ) | ## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
| 34 | Dataset librispeech_asr fails to load
## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
Hey @albertz,
opened a PR here. Think by adding the "subdataset" class to each split "train", "dev", "other" as shown here: https://github.com/huggingface/datasets/pull/4184/files#r853272727 it should be easily possible (e.g. with the filter function https://huggingface.co/docs/datasets/v2.1.0/en/package_reference/main_classes#datasets.Dataset.filter ) | [
-0.2864782512,
-0.4839607477,
0.0680988878,
0.6340244412,
0.1525813788,
0.2355626971,
0.1461004764,
0.2371000201,
0.2123608291,
-0.0533141494,
-0.1300386786,
0.0948216319,
-0.3211013675,
0.2411901802,
0.0585025474,
-0.0512975715,
-0.1185007244,
0.2319578677,
-0.1747397184,
-0.1202812865,
-0.2381756604,
0.3758117855,
-0.244647786,
-0.0021679148,
-0.1384708285,
0.1862492263,
-0.009389705,
0.3627567887,
-0.1291859597,
-0.1926396787,
0.4450719655,
-0.3261861205,
0.4011134505,
0.3390727341,
-0.0001146799,
0.0329964459,
0.1974485815,
-0.2052498162,
-0.2786283791,
-0.289806664,
-0.3660936654,
0.0728081614,
0.2244331539,
0.0616749004,
-0.1416078657,
0.0959065333,
-0.09597186,
-0.3692120016,
0.3581376076,
0.3308921158,
0.2421030998,
0.2675851285,
-0.1595792472,
-0.1363956332,
0.2256511748,
0.0244018435,
-0.2052274346,
0.0532813296,
-0.0231299177,
0.1362628043,
-0.1791895628,
0.0702883229,
0.0619723722,
0.1473606378,
0.2199425846,
0.0459809341,
-0.391977489,
-0.3175211847,
0.2746736705,
0.336995542,
0.2833821774,
-0.0511116125,
-0.1968611777,
-0.0976551324,
-0.1813508421,
-0.2642343044,
0.2228301167,
0.4577170014,
-0.1431986988,
0.3312956691,
-0.039521385,
-0.2251963019,
-0.0287971534,
0.1777931452,
-0.2345646769,
0.2480503768,
-0.3421917558,
0.1191175133,
0.2713807523,
0.2980136871,
0.0475213304,
0.0374464989,
-0.1076285616,
0.1053528786,
-0.4098748863,
0.1201617047,
-0.0230757874,
0.3578152955,
0.3183113039,
0.2543184161,
0.3351866007,
-0.0567912981,
-0.1030216143,
0.0418856554,
0.1714877933,
0.1504790336,
0.3353461921,
0.2444974631,
0.1273303479,
0.2969776988,
0.0733280331,
-0.0287234038,
-0.1453866363,
0.0265282802,
-0.3238972127,
-0.2516283393,
0.090579167,
-0.4356732965,
-0.429979831,
0.1428477764,
-0.2851963639,
-0.2564659715,
0.2311996818,
0.4139815867,
-0.2897873819,
0.0807069242,
0.0865162835,
0.097397849,
-0.0941822082,
-0.0544150732,
-0.3120336235,
0.0532195568,
-0.4024542272,
0.086422585,
0.2335283309,
-0.6066651344,
0.5037904382,
0.0898015276,
-0.220353961,
-0.1728706658,
-0.1083737612,
-0.0193388294,
0.0864286199,
0.2456523627,
0.0133950226,
0.1891669035,
0.1134424806,
0.1383717209,
-0.1508449167,
-0.0395278484,
-0.0180183481,
-0.3320434988,
-0.06371703,
0.1756086498,
-0.3146348,
0.0615856014,
-0.0899001285,
0.167609781,
0.0622148886,
-0.0055139759,
0.0318340547,
-0.085324131,
-0.2076771557,
-0.1902361959,
0.5690099597,
0.3730202615,
-0.1366893053,
-0.1686149389,
-0.0406845994,
-0.3216864467,
0.3857329488,
0.0762825087,
-0.150485456,
-0.0010953237,
-0.3405222595,
0.0099663176,
0.28325966,
-0.0148163773,
-0.4852282405,
0.2786302269,
-0.0556638651,
0.2238806784,
0.151764527,
-0.0978405252,
0.1624522209,
0.0491041243,
-0.0757374093,
0.5340372324,
-0.0731331185,
-0.1859060079,
-0.4255150259,
-0.3501221538,
-0.0283141062,
0.2779067755,
0.0395111553,
0.0713546127,
0.0686589479,
0.3833122253,
0.40475896,
0.0193243492,
0.1365199834,
0.0492991507,
-0.1654882729,
0.1880507469,
-0.0575998873,
-0.1197341084,
-0.6305850744,
0.1851828247,
0.1123741567,
0.0368365906,
0.0696971864,
-0.0298004225,
-0.3020533323,
-0.2867826819,
-0.3926281035,
-0.6270391941,
-0.031328395,
0.3522002995,
0.1813616306,
-0.1299888194,
-0.3942680955,
0.4097011387,
-0.066686675,
0.300308466,
-0.3543494642,
0.314995259,
-0.012172861,
-0.0458911248,
0.0336125381,
0.2207504362,
-0.0511104427,
-0.3450973332,
-0.1065296605,
0.4643592238,
-0.0471546277,
-0.2043189257,
-0.0967621803,
-0.200274989,
0.1886776388,
-0.3146889508,
0.0309310164,
0.0267330129,
-0.0675479919,
-0.0429656915,
-0.281594187,
0.0404909886,
-0.0744118765,
0.2429829538,
0.1321257055,
0.2587024271,
0.0429504551,
-0.2466962039,
-0.1687053442,
-0.3001501262,
0.3115946949,
-0.4033464491,
0.3609392047,
0.1341481954,
-0.5161659718,
-0.2940068543,
0.3804988265,
0.0380514488,
-0.0731648505,
0.1933140904,
-0.2947484553,
0.1005820781,
0.1228783205,
0.1945212036,
0.3356691003,
0.1269971281,
0.1328823268,
-0.0474080704,
-0.0665145814,
-0.1764679849,
0.1167557314,
-0.046440389,
0.1044843122,
0.1768838316,
-0.1535588354,
-0.0009021947,
-0.4279775321,
-0.1238772124,
0.0457639582,
0.3132143319,
-0.2257510722,
-0.0834868997,
-0.2323193997,
-0.025745701,
-0.3625422418,
-0.2185832113,
-0.1767243147,
-0.1344051957,
-0.2404332459,
0.0231207497,
0.0658278391,
0.2553323507,
-0.2093301415,
0.0455154888,
-0.2299626619,
-0.0861133486,
-0.06768547,
0.1722486913,
-0.4905477762,
0.0619571134,
0.3033004999,
-0.0227272268,
0.2865028083,
-0.2348197103,
-0.2146132886,
-0.1950168461,
-0.1298451424,
0.3056706786,
-0.1167070717,
0.1826789379,
0.3629124165,
0.1371282786,
-0.0958332494,
-0.3102601469,
0.4518939257,
-0.1724716127,
-0.0325743519,
0.1589948982,
0.2692781985,
0.3357319236,
-0.1583157331,
-0.5478576422,
-0.1225892901,
-0.4533905387,
0.1328529567,
-0.0001494011,
0.10310857,
-0.0180252064,
0.0207392387,
0.0804323107,
-0.2305063605,
-0.0341859274,
-0.1984066516,
-0.1629059613,
0.188154906,
-0.2112244964,
-0.2533047795,
-0.1214947999,
0.024821762,
0.2858714759,
0.2720384002,
-0.5524842143,
0.1994642615,
-0.2049172968,
0.061557252,
-0.220301196,
0.2075450867,
0.1768573225,
0.0108304033,
0.1045470536,
-0.1976488829,
-0.134205848,
0.0978321061,
-0.3393347561,
0.4048061967,
0.026120251,
0.3284215033,
0.1798994988,
0.5082939863,
0.3439002931,
-0.1505869627,
0.2079484314,
-0.0767773688,
0.1270885766,
-0.1387688518,
-0.4614744782,
0.2145904452,
-0.0541922785,
0.0859872997,
0.3838814497,
0.1770409495,
0.0867263153,
-0.2817543149,
0.2110205591,
-0.2039252967,
-0.2502623498,
0.0856245384,
-0.0654936433,
0.2703848183,
-0.0466584489,
0.3427773416,
0.4439868927,
-0.1137430221,
0.1540441364,
0.2607249022,
0.1055797711,
0.1045862958,
-0.2147738934,
0.2323487401,
-0.5890905261,
0.2524782121,
-0.2033336163,
0.2313733399,
0.1067977101,
-0.234373644,
0.1468489617,
0.1748058945,
0.5568481684,
-0.1038096249,
0.0312593877,
-0.0269399602,
0.0363913551,
-0.3886358142,
0.0602948405,
-0.1235450432,
0.357295692,
0.2604560852,
0.1288841814,
-0.4553008378,
-0.3058998883,
0.462531656,
0.3624634147,
-0.078130275,
-0.1010163724,
-0.2698169649,
-0.3832364976,
-0.0713698193,
0.0094886664,
-0.1053613573,
0.2986246347,
0.0326921754,
-0.0290651266,
-0.0917467549,
-0.2317258716,
0.3436343372,
0.048843544,
0.4620386958,
-0.0244447012,
0.3545613587,
0.2090846896,
0.1529756933,
0.1588899493,
0.7753596902,
-0.530997932,
-0.3234416842,
0.3394289613,
-0.0593774207,
0.359152019,
0.2475199252,
-0.1589202434,
-0.1059668139,
0.079180479,
0.1149097979,
-0.1743154377,
0.2773796022,
0.215794012,
-0.1469060332,
-0.3367116153,
-0.6409859061,
0.5244445801,
0.2109769136,
-0.0379017629,
0.4387472272,
0.0556856394,
-0.222479403,
0.2947354019,
-0.0873420835,
0.7359089851,
-0.1430234015,
0.1394726187,
0.0099006612,
-0.065290831,
0.4976043701,
0.0095972521,
0.1763355583,
-0.3800457418,
-0.0951292291,
0.0100980941,
-0.1598964781,
0.0856667161,
0.1184604764,
-0.2141382694,
0.2453871667,
-0.1360047907,
0.1520732492,
0.1655341089,
0.4593964815,
-0.2705325484,
-0.2743240893,
-0.1331557781,
0.0567969084,
-0.001141069,
0.5052098036,
0.1192897335,
0.022621816,
-0.0190523881,
-0.2101815492,
-0.2829745412,
0.1276530623,
-0.386944443,
-0.0722983181,
-0.1275293678,
-0.4924767613,
0.1943809539,
0.293585211,
-0.0273949187,
0.1404881179,
-0.0803032294,
0.06772542,
0.0655287504,
0.0284467544,
0.0526911244,
0.0677063912,
0.1891305894,
0.117857635,
0.1071198732,
0.1639722586,
-0.0698303655,
-0.1400986463,
0.1390099078,
0.1591519266,
0.1499558836,
-0.6286535263,
-0.1661227942,
0.1514683962,
0.1900820285,
-0.2809163332,
0.0861292407,
0.2486937493,
-0.1896348447,
0.0260318611,
0.0090269782,
-0.3273123503,
-0.2984621823,
0.1726154685,
-0.0341892317,
-0.0999758542,
0.3035963178,
0.212803632,
0.0676846728,
-0.1772778034,
-0.0159317721,
0.3153965473,
-0.642352283,
0.0941705629,
-0.2409416884,
0.0220355149,
0.1095628738,
0.3932799697,
0.2531152666,
0.0152953612,
-0.0760226473,
-0.3590138257,
-0.0682951137,
0.2626478076,
-0.0593022071,
0.2759030461,
-0.2043926865,
0.3208460212,
0.0046859817,
-0.0540748537,
-0.2642842531,
0.1618343443,
-0.1454033703,
0.0519586131,
0.191051811,
0.0785940513,
0.4121577442,
0.021690743,
0.1333602816,
0.1554798782,
-0.1834117472,
-0.1200242117,
-0.2534926832,
0.1741416156,
0.0770612136,
-0.0195555501,
-0.2574189007,
-0.031388741,
-0.0771992728,
-0.1802418083,
0.2131407261,
0.1678884923,
0.0091988593,
0.0298049524,
0.1381466091,
0.0481963865,
-0.2464935482,
0.0261424556,
-0.1572972238,
0.1787124127,
0.2133847177,
0.2083948702,
0.0917931944,
0.0091936449,
0.1396328211,
-0.0103379181,
0.0379468836,
-0.0624681748,
0.1630109549,
-0.1767688692,
-0.0162948761,
0.35221982,
0.3606503606,
0.6477940679,
0.0245407932,
0.03398012,
0.0495627522,
0.1878281832,
-0.0321508162,
0.0980357751,
-0.1004558653,
0.0919480249,
0.0560002662,
0.4105974734,
-0.0531525575,
-0.0132504739,
-0.1128897294,
0.0749023035,
0.2782758474,
0.147705853,
0.3298525512,
0.5117224455,
-0.1850787997,
0.1615472585,
0.2609502375,
-0.2239239067,
0.1490018368,
0.1710413992,
-0.1418040544,
0.1291326731,
-0.3158312142,
0.2990640402,
0.0547156334,
-0.4963174164,
-0.0185962636,
0.216869235,
0.0663458034,
0.056246426,
-0.3770386279,
0.7253003716,
-0.4944148362,
-0.0363312326,
-0.1224296093,
0.0670954138,
-0.1599614918,
-0.1032060683,
0.0488659851,
-0.3158009052,
-0.2405025065,
0.1546079367,
-0.1400933862,
-0.1664374173,
0.3451707959,
-0.0109833926,
-0.2324232012,
-0.1736872345,
-0.2747785151,
0.2652488947,
-0.0639500394,
-0.2120301127,
0.4075476229,
0.0200092215,
-0.0737337843,
0.0842469707,
0.2317490131,
0.0704865605,
0.1353722066,
0.1280502677,
-0.1436004788,
-0.0078353062,
0.1166250408,
-0.2023311853,
0.3975357711,
0.1891568899,
0.0882424861,
0.4073221982,
0.1042698547,
-0.1981185377,
-0.0012606864,
-0.1564842314,
0.127236709,
-0.4012547135,
0.3482406437,
-0.0875969231,
-0.0524771586,
0.0356824249,
-0.0328328647,
-0.3564702868,
0.0889320225,
0.0010806683,
-0.0370233245,
-0.0447664894,
-0.1471876651,
0.0532829538,
0.2223320603,
0.2792684138,
0.298550725,
0.198695913,
-0.3808215261,
-0.5446336269,
-0.6770581007,
0.1334835142,
-0.0690003857,
-0.1824921817,
-0.050510142,
0.268997997,
0.0630564615,
0.2376863062,
0.0260300189,
0.1445351094,
0.1766326278,
0.0907215253,
0.0740232915,
-0.1434726864,
-0.0002061721,
0.0970932022,
-0.0242455136,
-0.3749291003,
0.0644176379,
-0.1649257392,
-0.052681379,
-0.235813126,
-0.1780257076,
0.2120485902,
-0.2146486342,
0.2914566696,
0.1977299154,
0.2918566763,
-0.0089650229,
-0.2792397141,
-0.3359559476,
-0.253347069,
-0.1910103112,
0.1218583211,
0.0248805825,
0.4896282852,
-0.1717040092,
-0.2483383268,
-0.5496247411,
0.3322091699,
0.3946073949,
0.1816078871,
-0.2106709331,
0.0724768117,
-0.0693016052,
-0.0852324963,
0.5066688657,
0.7129359245,
-0.2175035626,
-0.1399034709,
-0.2383049428,
-0.4474014342,
0.3651693761,
-0.2178668082,
-0.0264252201,
0.0368811451,
0.2639951706,
0.3638981581,
-0.2047504932,
-0.7203478813,
-0.2053184658,
0.3049063385,
0.0050100288,
-0.2338485271,
0.0728422329,
0.017467754,
-0.055201102,
-0.0483602397,
0.2159955204,
0.2498844713,
-0.6144574881,
0.4230563343,
-0.2094127685
] |
https://github.com/huggingface/datasets/issues/4179 | Dataset librispeech_asr fails to load | But also since everything is cached one could also just do:
```python
load_dataset("librispeech", "clean", "train.100")
load_dataset("librispeech", "clean", "train.100+train.360")
load_dataset("librispeech" "all", "train")
``` | ## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
| 22 | Dataset librispeech_asr fails to load
## Describe the bug
The dataset librispeech_asr (standard Librispeech) fails to load.
## Steps to reproduce the bug
```python
datasets.load_dataset("librispeech_asr")
```
## Expected results
It should download and prepare the whole dataset (all subsets).
In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other).
However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want.
Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training.
## Actual results
```
...
File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators
line: archive_path = dl_manager.download(_DL_URLS[self.config.name])
locals:
archive_path = <not found>
dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>
dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>>
_DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'...
self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310>
self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None)
self.config.name = <local> 'default', len = 7
KeyError: 'default'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.1.0
- Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31
- Python version: 3.9.9
- PyArrow version: 6.0.1
- Pandas version: 1.4.2
But also since everything is cached one could also just do:
```python
load_dataset("librispeech", "clean", "train.100")
load_dataset("librispeech", "clean", "train.100+train.360")
load_dataset("librispeech" "all", "train")
``` | [
-0.2864782512,
-0.4839607477,
0.0680988878,
0.6340244412,
0.1525813788,
0.2355626971,
0.1461004764,
0.2371000201,
0.2123608291,
-0.0533141494,
-0.1300386786,
0.0948216319,
-0.3211013675,
0.2411901802,
0.0585025474,
-0.0512975715,
-0.1185007244,
0.2319578677,
-0.1747397184,
-0.1202812865,
-0.2381756604,
0.3758117855,
-0.244647786,
-0.0021679148,
-0.1384708285,
0.1862492263,
-0.009389705,
0.3627567887,
-0.1291859597,
-0.1926396787,
0.4450719655,
-0.3261861205,
0.4011134505,
0.3390727341,
-0.0001146799,
0.0329964459,
0.1974485815,
-0.2052498162,
-0.2786283791,
-0.289806664,
-0.3660936654,
0.0728081614,
0.2244331539,
0.0616749004,
-0.1416078657,
0.0959065333,
-0.09597186,
-0.3692120016,
0.3581376076,
0.3308921158,
0.2421030998,
0.2675851285,
-0.1595792472,
-0.1363956332,
0.2256511748,
0.0244018435,
-0.2052274346,
0.0532813296,
-0.0231299177,
0.1362628043,
-0.1791895628,
0.0702883229,
0.0619723722,
0.1473606378,
0.2199425846,
0.0459809341,
-0.391977489,
-0.3175211847,
0.2746736705,
0.336995542,
0.2833821774,
-0.0511116125,
-0.1968611777,
-0.0976551324,
-0.1813508421,
-0.2642343044,
0.2228301167,
0.4577170014,
-0.1431986988,
0.3312956691,
-0.039521385,
-0.2251963019,
-0.0287971534,
0.1777931452,
-0.2345646769,
0.2480503768,
-0.3421917558,
0.1191175133,
0.2713807523,
0.2980136871,
0.0475213304,
0.0374464989,
-0.1076285616,
0.1053528786,
-0.4098748863,
0.1201617047,
-0.0230757874,
0.3578152955,
0.3183113039,
0.2543184161,
0.3351866007,
-0.0567912981,
-0.1030216143,
0.0418856554,
0.1714877933,
0.1504790336,
0.3353461921,
0.2444974631,
0.1273303479,
0.2969776988,
0.0733280331,
-0.0287234038,
-0.1453866363,
0.0265282802,
-0.3238972127,
-0.2516283393,
0.090579167,
-0.4356732965,
-0.429979831,
0.1428477764,
-0.2851963639,
-0.2564659715,
0.2311996818,
0.4139815867,
-0.2897873819,
0.0807069242,
0.0865162835,
0.097397849,
-0.0941822082,
-0.0544150732,
-0.3120336235,
0.0532195568,
-0.4024542272,
0.086422585,
0.2335283309,
-0.6066651344,
0.5037904382,
0.0898015276,
-0.220353961,
-0.1728706658,
-0.1083737612,
-0.0193388294,
0.0864286199,
0.2456523627,
0.0133950226,
0.1891669035,
0.1134424806,
0.1383717209,
-0.1508449167,
-0.0395278484,
-0.0180183481,
-0.3320434988,
-0.06371703,
0.1756086498,
-0.3146348,
0.0615856014,
-0.0899001285,
0.167609781,
0.0622148886,
-0.0055139759,
0.0318340547,
-0.085324131,
-0.2076771557,
-0.1902361959,
0.5690099597,
0.3730202615,
-0.1366893053,
-0.1686149389,
-0.0406845994,
-0.3216864467,
0.3857329488,
0.0762825087,
-0.150485456,
-0.0010953237,
-0.3405222595,
0.0099663176,
0.28325966,
-0.0148163773,
-0.4852282405,
0.2786302269,
-0.0556638651,
0.2238806784,
0.151764527,
-0.0978405252,
0.1624522209,
0.0491041243,
-0.0757374093,
0.5340372324,
-0.0731331185,
-0.1859060079,
-0.4255150259,
-0.3501221538,
-0.0283141062,
0.2779067755,
0.0395111553,
0.0713546127,
0.0686589479,
0.3833122253,
0.40475896,
0.0193243492,
0.1365199834,
0.0492991507,
-0.1654882729,
0.1880507469,
-0.0575998873,
-0.1197341084,
-0.6305850744,
0.1851828247,
0.1123741567,
0.0368365906,
0.0696971864,
-0.0298004225,
-0.3020533323,
-0.2867826819,
-0.3926281035,
-0.6270391941,
-0.031328395,
0.3522002995,
0.1813616306,
-0.1299888194,
-0.3942680955,
0.4097011387,
-0.066686675,
0.300308466,
-0.3543494642,
0.314995259,
-0.012172861,
-0.0458911248,
0.0336125381,
0.2207504362,
-0.0511104427,
-0.3450973332,
-0.1065296605,
0.4643592238,
-0.0471546277,
-0.2043189257,
-0.0967621803,
-0.200274989,
0.1886776388,
-0.3146889508,
0.0309310164,
0.0267330129,
-0.0675479919,
-0.0429656915,
-0.281594187,
0.0404909886,
-0.0744118765,
0.2429829538,
0.1321257055,
0.2587024271,
0.0429504551,
-0.2466962039,
-0.1687053442,
-0.3001501262,
0.3115946949,
-0.4033464491,
0.3609392047,
0.1341481954,
-0.5161659718,
-0.2940068543,
0.3804988265,
0.0380514488,
-0.0731648505,
0.1933140904,
-0.2947484553,
0.1005820781,
0.1228783205,
0.1945212036,
0.3356691003,
0.1269971281,
0.1328823268,
-0.0474080704,
-0.0665145814,
-0.1764679849,
0.1167557314,
-0.046440389,
0.1044843122,
0.1768838316,
-0.1535588354,
-0.0009021947,
-0.4279775321,
-0.1238772124,
0.0457639582,
0.3132143319,
-0.2257510722,
-0.0834868997,
-0.2323193997,
-0.025745701,
-0.3625422418,
-0.2185832113,
-0.1767243147,
-0.1344051957,
-0.2404332459,
0.0231207497,
0.0658278391,
0.2553323507,
-0.2093301415,
0.0455154888,
-0.2299626619,
-0.0861133486,
-0.06768547,
0.1722486913,
-0.4905477762,
0.0619571134,
0.3033004999,
-0.0227272268,
0.2865028083,
-0.2348197103,
-0.2146132886,
-0.1950168461,
-0.1298451424,
0.3056706786,
-0.1167070717,
0.1826789379,
0.3629124165,
0.1371282786,
-0.0958332494,
-0.3102601469,
0.4518939257,
-0.1724716127,
-0.0325743519,
0.1589948982,
0.2692781985,
0.3357319236,
-0.1583157331,
-0.5478576422,
-0.1225892901,
-0.4533905387,
0.1328529567,
-0.0001494011,
0.10310857,
-0.0180252064,
0.0207392387,
0.0804323107,
-0.2305063605,
-0.0341859274,
-0.1984066516,
-0.1629059613,
0.188154906,
-0.2112244964,
-0.2533047795,
-0.1214947999,
0.024821762,
0.2858714759,
0.2720384002,
-0.5524842143,
0.1994642615,
-0.2049172968,
0.061557252,
-0.220301196,
0.2075450867,
0.1768573225,
0.0108304033,
0.1045470536,
-0.1976488829,
-0.134205848,
0.0978321061,
-0.3393347561,
0.4048061967,
0.026120251,
0.3284215033,
0.1798994988,
0.5082939863,
0.3439002931,
-0.1505869627,
0.2079484314,
-0.0767773688,
0.1270885766,
-0.1387688518,
-0.4614744782,
0.2145904452,
-0.0541922785,
0.0859872997,
0.3838814497,
0.1770409495,
0.0867263153,
-0.2817543149,
0.2110205591,
-0.2039252967,
-0.2502623498,
0.0856245384,
-0.0654936433,
0.2703848183,
-0.0466584489,
0.3427773416,
0.4439868927,
-0.1137430221,
0.1540441364,
0.2607249022,
0.1055797711,
0.1045862958,
-0.2147738934,
0.2323487401,
-0.5890905261,
0.2524782121,
-0.2033336163,
0.2313733399,
0.1067977101,
-0.234373644,
0.1468489617,
0.1748058945,
0.5568481684,
-0.1038096249,
0.0312593877,
-0.0269399602,
0.0363913551,
-0.3886358142,
0.0602948405,
-0.1235450432,
0.357295692,
0.2604560852,
0.1288841814,
-0.4553008378,
-0.3058998883,
0.462531656,
0.3624634147,
-0.078130275,
-0.1010163724,
-0.2698169649,
-0.3832364976,
-0.0713698193,
0.0094886664,
-0.1053613573,
0.2986246347,
0.0326921754,
-0.0290651266,
-0.0917467549,
-0.2317258716,
0.3436343372,
0.048843544,
0.4620386958,
-0.0244447012,
0.3545613587,
0.2090846896,
0.1529756933,
0.1588899493,
0.7753596902,
-0.530997932,
-0.3234416842,
0.3394289613,
-0.0593774207,
0.359152019,
0.2475199252,
-0.1589202434,
-0.1059668139,
0.079180479,
0.1149097979,
-0.1743154377,
0.2773796022,
0.215794012,
-0.1469060332,
-0.3367116153,
-0.6409859061,
0.5244445801,
0.2109769136,
-0.0379017629,
0.4387472272,
0.0556856394,
-0.222479403,
0.2947354019,
-0.0873420835,
0.7359089851,
-0.1430234015,
0.1394726187,
0.0099006612,
-0.065290831,
0.4976043701,
0.0095972521,
0.1763355583,
-0.3800457418,
-0.0951292291,
0.0100980941,
-0.1598964781,
0.0856667161,
0.1184604764,
-0.2141382694,
0.2453871667,
-0.1360047907,
0.1520732492,
0.1655341089,
0.4593964815,
-0.2705325484,
-0.2743240893,
-0.1331557781,
0.0567969084,
-0.001141069,
0.5052098036,
0.1192897335,
0.022621816,
-0.0190523881,
-0.2101815492,
-0.2829745412,
0.1276530623,
-0.386944443,
-0.0722983181,
-0.1275293678,
-0.4924767613,
0.1943809539,
0.293585211,
-0.0273949187,
0.1404881179,
-0.0803032294,
0.06772542,
0.0655287504,
0.0284467544,
0.0526911244,
0.0677063912,
0.1891305894,
0.117857635,
0.1071198732,
0.1639722586,
-0.0698303655,
-0.1400986463,
0.1390099078,
0.1591519266,
0.1499558836,
-0.6286535263,
-0.1661227942,
0.1514683962,
0.1900820285,
-0.2809163332,
0.0861292407,
0.2486937493,
-0.1896348447,
0.0260318611,
0.0090269782,
-0.3273123503,
-0.2984621823,
0.1726154685,
-0.0341892317,
-0.0999758542,
0.3035963178,
0.212803632,
0.0676846728,
-0.1772778034,
-0.0159317721,
0.3153965473,
-0.642352283,
0.0941705629,
-0.2409416884,
0.0220355149,
0.1095628738,
0.3932799697,
0.2531152666,
0.0152953612,
-0.0760226473,
-0.3590138257,
-0.0682951137,
0.2626478076,
-0.0593022071,
0.2759030461,
-0.2043926865,
0.3208460212,
0.0046859817,
-0.0540748537,
-0.2642842531,
0.1618343443,
-0.1454033703,
0.0519586131,
0.191051811,
0.0785940513,
0.4121577442,
0.021690743,
0.1333602816,
0.1554798782,
-0.1834117472,
-0.1200242117,
-0.2534926832,
0.1741416156,
0.0770612136,
-0.0195555501,
-0.2574189007,
-0.031388741,
-0.0771992728,
-0.1802418083,
0.2131407261,
0.1678884923,
0.0091988593,
0.0298049524,
0.1381466091,
0.0481963865,
-0.2464935482,
0.0261424556,
-0.1572972238,
0.1787124127,
0.2133847177,
0.2083948702,
0.0917931944,
0.0091936449,
0.1396328211,
-0.0103379181,
0.0379468836,
-0.0624681748,
0.1630109549,
-0.1767688692,
-0.0162948761,
0.35221982,
0.3606503606,
0.6477940679,
0.0245407932,
0.03398012,
0.0495627522,
0.1878281832,
-0.0321508162,
0.0980357751,
-0.1004558653,
0.0919480249,
0.0560002662,
0.4105974734,
-0.0531525575,
-0.0132504739,
-0.1128897294,
0.0749023035,
0.2782758474,
0.147705853,
0.3298525512,
0.5117224455,
-0.1850787997,
0.1615472585,
0.2609502375,
-0.2239239067,
0.1490018368,
0.1710413992,
-0.1418040544,
0.1291326731,
-0.3158312142,
0.2990640402,
0.0547156334,
-0.4963174164,
-0.0185962636,
0.216869235,
0.0663458034,
0.056246426,
-0.3770386279,
0.7253003716,
-0.4944148362,
-0.0363312326,
-0.1224296093,
0.0670954138,
-0.1599614918,
-0.1032060683,
0.0488659851,
-0.3158009052,
-0.2405025065,
0.1546079367,
-0.1400933862,
-0.1664374173,
0.3451707959,
-0.0109833926,
-0.2324232012,
-0.1736872345,
-0.2747785151,
0.2652488947,
-0.0639500394,
-0.2120301127,
0.4075476229,
0.0200092215,
-0.0737337843,
0.0842469707,
0.2317490131,
0.0704865605,
0.1353722066,
0.1280502677,
-0.1436004788,
-0.0078353062,
0.1166250408,
-0.2023311853,
0.3975357711,
0.1891568899,
0.0882424861,
0.4073221982,
0.1042698547,
-0.1981185377,
-0.0012606864,
-0.1564842314,
0.127236709,
-0.4012547135,
0.3482406437,
-0.0875969231,
-0.0524771586,
0.0356824249,
-0.0328328647,
-0.3564702868,
0.0889320225,
0.0010806683,
-0.0370233245,
-0.0447664894,
-0.1471876651,
0.0532829538,
0.2223320603,
0.2792684138,
0.298550725,
0.198695913,
-0.3808215261,
-0.5446336269,
-0.6770581007,
0.1334835142,
-0.0690003857,
-0.1824921817,
-0.050510142,
0.268997997,
0.0630564615,
0.2376863062,
0.0260300189,
0.1445351094,
0.1766326278,
0.0907215253,
0.0740232915,
-0.1434726864,
-0.0002061721,
0.0970932022,
-0.0242455136,
-0.3749291003,
0.0644176379,
-0.1649257392,
-0.052681379,
-0.235813126,
-0.1780257076,
0.2120485902,
-0.2146486342,
0.2914566696,
0.1977299154,
0.2918566763,
-0.0089650229,
-0.2792397141,
-0.3359559476,
-0.253347069,
-0.1910103112,
0.1218583211,
0.0248805825,
0.4896282852,
-0.1717040092,
-0.2483383268,
-0.5496247411,
0.3322091699,
0.3946073949,
0.1816078871,
-0.2106709331,
0.0724768117,
-0.0693016052,
-0.0852324963,
0.5066688657,
0.7129359245,
-0.2175035626,
-0.1399034709,
-0.2383049428,
-0.4474014342,
0.3651693761,
-0.2178668082,
-0.0264252201,
0.0368811451,
0.2639951706,
0.3638981581,
-0.2047504932,
-0.7203478813,
-0.2053184658,
0.3049063385,
0.0050100288,
-0.2338485271,
0.0728422329,
0.017467754,
-0.055201102,
-0.0483602397,
0.2159955204,
0.2498844713,
-0.6144574881,
0.4230563343,
-0.2094127685
] |
https://github.com/huggingface/datasets/issues/4169 | Timit_asr dataset cannot be previewed recently | Thanks for reporting. The bug has already been detected, and we hope to fix it soon. | ## Dataset viewer issue for '*timit_asr*'
**Link:** *https://huggingface.co/datasets/timit_asr*
Issue: The timit-asr dataset cannot be previewed recently.
Am I the one who added this dataset ? Yes-No
No | 16 | Timit_asr dataset cannot be previewed recently
## Dataset viewer issue for '*timit_asr*'
**Link:** *https://huggingface.co/datasets/timit_asr*
Issue: The timit-asr dataset cannot be previewed recently.
Am I the one who added this dataset ? Yes-No
No
Thanks for reporting. The bug has already been detected, and we hope to fix it soon. | [
-0.4550265968,
-0.3681927919,
-0.062022347,
0.1747279167,
0.0391848311,
0.0492948182,
0.1823962927,
0.2734493017,
-0.3722573519,
0.2060218006,
-0.3304496109,
0.1851599962,
-0.1779927015,
0.1633446366,
0.0846916661,
-0.1212468445,
0.1103404984,
0.0023505038,
-0.4338065684,
0.1001381725,
-0.1540518701,
0.057852637,
-0.0142418267,
0.075376071,
0.095617868,
0.0010235563,
-0.0205796342,
-0.2110406607,
-0.2252257019,
-0.4096702039,
0.2578171194,
0.1008923799,
0.1316054165,
0.3143867254,
-0.0001089139,
0.2189352959,
0.3245875537,
0.1276590526,
-0.1899044365,
-0.0445491076,
0.0388177894,
-0.1135893911,
0.088627927,
0.1346772611,
-0.3892160952,
-0.1644101143,
0.2150234431,
-0.1789778322,
0.116663754,
0.1506920457,
0.3068260252,
0.5181674957,
0.0305097755,
-0.3369989991,
0.3064829707,
0.170520857,
-0.4367249608,
-0.0572976209,
0.1747958809,
0.1669059247,
0.0679834485,
0.2155827582,
0.220341444,
-0.0361121409,
0.1813238859,
-0.0360683538,
-0.0411603339,
-0.3475614488,
-0.101927571,
0.1014842615,
0.7567373514,
0.0066239284,
-0.2466929704,
0.122748889,
-0.0809248239,
-0.0295646973,
0.1242523119,
-0.0377030969,
0.0692089349,
0.2542588115,
-0.1939339191,
-0.0281647462,
-0.1810973287,
0.4019295275,
0.2342950404,
-0.0446955264,
-0.2257629484,
0.1131072938,
-0.0988890752,
-0.0091476552,
-0.0262552295,
0.1676832885,
-0.2179242224,
0.2785759568,
0.0854393542,
-0.1142036542,
0.132546261,
0.0323543586,
0.1972996145,
0.3028908372,
0.2222723067,
0.0166966133,
-0.3522554636,
-0.066115573,
0.0350769274,
0.025935946,
0.1749907583,
-0.0125866905,
0.4858647585,
0.1548477113,
0.3704197407,
-0.0432236753,
0.0193296541,
0.0404983163,
-0.2444385141,
-0.4164159596,
0.3738076687,
-0.3186883926,
-0.4556985497,
-0.0977172777,
-0.0287179314,
-0.0499457903,
-0.1387920976,
0.2305442244,
-0.0708684996,
-0.1570490599,
0.0042464375,
0.2453691363,
-0.0643419251,
-0.1250502169,
-0.2357447743,
-0.039339859,
0.066259034,
-0.0507574417,
0.1760264039,
-0.4323248565,
0.0485771373,
0.0712269098,
-0.015130952,
0.0663819835,
-0.2447633147,
0.1094613373,
-0.2875942588,
0.3189533353,
-0.1704908609,
0.3896030486,
-0.0980147421,
0.0087772543,
0.0132315429,
0.1245075688,
-0.0892601758,
-0.1057825908,
-0.2574523985,
0.2126369923,
-0.372420609,
-0.0039798161,
-0.1618489474,
0.1941426098,
-0.0002384841,
-0.0533085428,
-0.0864958242,
0.3051426709,
-0.4423581064,
-0.1322994381,
0.0468763374,
0.2895674407,
-0.4030144811,
-0.2810790241,
-0.3032083809,
-0.4932411015,
0.0826801583,
0.19499062,
-0.1288351566,
0.0600647107,
-0.2623732388,
-0.1832228452,
0.2358372957,
-0.0270012785,
-0.4946191311,
0.0655293912,
-0.307231456,
0.0174908638,
0.1194428876,
0.1684272438,
0.2063706964,
-0.1620918363,
-0.2382501662,
-0.054563649,
0.2906081378,
-0.1056860834,
-0.3100876808,
-0.1816587746,
0.2548922002,
0.2989320755,
0.1751157194,
0.1582061201,
0.2904321253,
0.0573505349,
0.2798701823,
0.2818367183,
0.1661114544,
0.1867844462,
0.230423227,
-0.0578475632,
0.0974880233,
-0.3001331985,
-0.0863398537,
0.0121498555,
0.1065049842,
0.163094759,
0.2925882936,
-0.0537465736,
-0.4375285804,
0.0148681765,
-0.1407076269,
-0.2757736146,
0.1276471466,
0.3229633868,
-0.0709906071,
0.2897247076,
0.0239395797,
0.2967343628,
-0.0943981782,
-0.1067707911,
-0.1089708805,
0.1131288931,
-0.0163673218,
0.0496461727,
0.2036590278,
-0.0060904962,
0.1376613528,
-0.2524613142,
-0.0781531408,
0.2728667259,
-0.1388015002,
0.0967671499,
0.0353621095,
-0.1261319369,
0.144007206,
-0.4998449385,
0.0221386719,
0.1675391346,
-0.048598256,
0.0108699426,
-0.1550125778,
0.2333852649,
0.0042545088,
-0.0502199903,
-0.0863232315,
0.2588597238,
0.2552282214,
0.0297934525,
-0.00026474,
-0.2022704631,
0.536734283,
-0.2109495848,
0.0599150509,
-0.2060453147,
-0.3161517978,
0.3181207478,
-0.0801224262,
0.0336080566,
-0.1623493731,
0.4991077483,
-0.1583532691,
0.2851918936,
-0.0763637722,
-0.1432221383,
0.1333499402,
0.1965906024,
-0.1141595244,
-0.1148989126,
0.0634788796,
-0.0976705998,
0.1179022342,
0.1836165041,
-0.1680849791,
0.0158320721,
0.3389334381,
-0.0759560168,
-0.3929276466,
0.2108357847,
0.1037086844,
0.2832469344,
-0.3349107206,
0.0128391385,
-0.0369737148,
-0.3653851748,
0.1364079714,
-0.1165138185,
-0.1672900319,
-0.3023854792,
0.2355359048,
0.2607147992,
0.1047111452,
0.3400228322,
-0.1050528586,
0.3720737994,
-0.0022412241,
0.4227385223,
-0.1917335689,
0.4031893015,
-0.0606703721,
0.2480155379,
0.1528497487,
-0.2124922872,
0.4807223976,
-0.1329262406,
0.3634366095,
-0.5030329823,
-0.3553778827,
0.0324702226,
-0.1405717582,
0.7062945366,
-0.0424199216,
0.1441271007,
-0.0129933292,
-0.0773043782,
0.0913061798,
-0.1588023007,
-0.4064100087,
-0.0475031771,
-0.2189505994,
-0.073860243,
-0.1441750675,
-0.2145194262,
-0.3153380156,
-0.3005126417,
0.3844373822,
0.2204513103,
0.0811322704,
0.1162613034,
-0.1680491567,
-0.047190357,
-0.0747389644,
-0.0316899195,
-0.3430827558,
-0.3475364149,
0.4385595918,
-0.4707171619,
-0.573204577,
0.0722697526,
0.2233745456,
-0.0320276506,
-0.2185900509,
-0.5044662952,
0.1611108333,
-0.257042855,
0.1585429311,
-0.0073917615,
-0.3173673749,
0.2398862243,
-0.2363308072,
-0.1263784915,
-0.1473346353,
-0.0243958179,
0.0165990908,
-0.2951331139,
0.3056358397,
-0.1023165137,
0.4024201632,
-0.0558681861,
0.5778734088,
0.2730044127,
-0.0383516438,
0.3353111446,
-0.2778186798,
0.495030731,
-0.0888548866,
-0.4199209213,
-0.0664967299,
0.0052585271,
0.1960878521,
0.1827519983,
0.0845618322,
-0.2318062931,
-0.1601268351,
-0.1264403462,
0.0528890118,
-0.042161949,
-0.1397237778,
-0.1069096178,
0.2330944091,
0.1581831574,
0.1110275611,
0.0516676679,
-0.6337602139,
0.0239742808,
0.4898260832,
0.1014863476,
-0.0081170434,
-0.2803017497,
0.1742395759,
-0.5153297782,
0.274122715,
0.0404343158,
0.4387426972,
-0.3010570407,
-0.2042201906,
0.2828991711,
0.2386532128,
0.5800690651,
-0.2143829614,
0.0563492328,
0.2822506726,
0.0760207772,
-0.3611017764,
-0.0663957968,
-0.2239536345,
0.3864254355,
0.053320162,
0.5625382662,
0.1253851503,
-0.0951684341,
0.4417338371,
-0.146137163,
-0.2665166855,
-0.1637387425,
-0.3022525311,
-0.180638358,
0.0382202193,
-0.0354191214,
-0.0460734218,
0.0500579774,
-0.2613504827,
0.0300628189,
-0.276368767,
0.0359926187,
0.1606293321,
-0.033224795,
0.3000600338,
0.1842924803,
0.7465463281,
0.4475162029,
-0.0081010964,
0.1248626709,
0.3378977478,
0.0210953858,
-0.2827883959,
0.2329461724,
-0.1505763829,
0.2807891667,
0.3654622138,
-0.2619770765,
0.3550148308,
-0.0786771625,
0.2441064119,
-0.3216005862,
0.2995122373,
0.2158754766,
-0.2688792944,
-0.4327925146,
-0.2349192351,
0.4219712913,
-0.0334063098,
-0.1263651848,
0.349539578,
0.0286223125,
-0.0213260762,
-0.0057920218,
-0.0942696333,
0.9036146998,
-0.1191523373,
-0.011592105,
0.1096215695,
0.0214590412,
0.1771570742,
-0.1960674822,
0.0549782999,
-0.2660294473,
-0.3767186701,
-0.0962895304,
-0.1457255036,
0.1393972635,
-0.18816863,
-0.0298986472,
-0.1597464383,
0.0938628986,
0.3436504602,
-0.0059017483,
0.117223382,
0.0824283212,
-0.0373526923,
0.1214616001,
0.2327783108,
-0.1418266743,
0.3898269236,
0.1065901667,
-0.0103566693,
-0.102465719,
-0.1813275218,
-0.5141808987,
-0.0366326757,
0.0347052701,
0.0517239533,
0.0568342395,
-0.5157632828,
0.4537771046,
0.0170329437,
0.0849437341,
0.1490336061,
-0.2321896851,
0.1576345712,
-0.1998631656,
-0.1072307453,
-0.1960573494,
0.167907536,
0.0382400975,
-0.1573107094,
-0.1068191081,
0.1605196744,
0.0409546755,
-0.1069770977,
-0.3735100925,
0.1113714203,
-0.0765135288,
-0.4211955369,
0.1969958544,
-0.207487613,
0.1114483476,
-0.4033262134,
0.1776067466,
0.1929848939,
-0.0207952578,
-0.1032732502,
0.2282316685,
-0.2501480281,
-0.0939135551,
0.7179888487,
0.046710439,
-0.0110193444,
0.4517032206,
0.1385982186,
-0.287550956,
-0.2079685926,
0.3082529902,
0.0701381862,
-0.5159486532,
0.0316408649,
-0.06461633,
0.4541909397,
0.019169908,
0.4929461479,
0.0708561018,
-0.33421278,
-0.2156833708,
-0.4430096149,
-0.2124890834,
0.2017521709,
-0.1467366368,
0.2023158073,
-0.1772255003,
0.1654122323,
0.1217281818,
0.0344071984,
-0.3525818884,
0.0195193272,
0.0345625766,
0.0039822464,
0.1645533741,
0.0566283092,
0.3055975437,
-0.0615640655,
0.0813237354,
0.2105775028,
-0.3221606314,
-0.2173679918,
-0.1791527271,
0.1282081157,
-0.1005160064,
-0.3124412,
-0.0160112847,
0.0616392158,
-0.0581697486,
0.2564764321,
0.021075353,
-0.1000708863,
0.0612837709,
-0.1924419701,
0.0431859009,
-0.2938877046,
0.2657253444,
0.0534727573,
0.1221570447,
0.4430924952,
0.0822522864,
0.1320686191,
-0.1601890177,
-0.1112212241,
0.0728181005,
-0.0062126508,
0.1566687524,
0.0115678553,
0.0203182194,
-0.3671428263,
0.1218133718,
0.1867088974,
0.2478096634,
0.2378359288,
-0.2503199577,
0.0799292624,
0.2148609012,
0.1465708911,
-0.2684454918,
-0.1551330984,
-0.0221713074,
0.1517635584,
-0.0984723642,
0.1020529941,
0.2240387201,
0.1467812657,
0.2758322656,
0.1852552593,
0.2941784561,
-0.1169338152,
0.1310339719,
0.3856472075,
-0.1252462566,
0.0371106416,
0.3241740167,
0.1663479358,
-0.1070854887,
0.7215308547,
0.1171835139,
0.1828901172,
-0.1698069274,
0.1751395613,
0.1937785596,
-0.4296807051,
-0.0504971892,
-0.0116652278,
-0.084353812,
0.1067757234,
0.1670299917,
0.67742908,
0.0165556204,
0.0746585652,
-0.5262162685,
0.1387370974,
-0.1007474139,
-0.0265321825,
-0.10076233,
-0.3902896345,
-0.2209944278,
0.1105916351,
-0.0983655453,
-0.0783876404,
0.3480099142,
0.0647507533,
-0.1265014559,
-0.2935061753,
-0.0340518169,
0.1782660037,
0.1892681122,
-0.2116167694,
0.188876763,
0.0863104612,
0.1754110307,
0.0468859412,
0.277823925,
0.3026513159,
-0.1349196285,
0.1254450232,
0.1805656552,
-0.2125454843,
-0.2312312275,
0.1098690853,
0.5577790141,
0.2557038963,
-0.2187847644,
0.1804611683,
0.0934553146,
-0.1758562624,
0.3297444284,
0.2141443491,
0.3858863115,
-0.3399899304,
0.0506660789,
-0.6282080412,
-0.0741492584,
-0.2311768234,
-0.4050235748,
0.0287058689,
0.3196140826,
0.311496675,
0.0184490066,
0.0688721761,
-0.3888687491,
0.1085156128,
0.0004309606,
0.4634875655,
0.1541218013,
0.1444723159,
-0.1474547237,
-0.6278424859,
-0.5726701021,
0.0686154962,
-0.1103390232,
0.2264588326,
-0.0126319053,
0.0362462141,
0.0519005917,
0.255941987,
0.5198644996,
0.02346435,
-0.1255272776,
0.2404046804,
-0.1969921738,
-0.036875464,
0.1265435368,
0.1902368218,
-0.0187312216,
-0.1656882018,
0.1745549291,
-0.2542982697,
0.0465236343,
-0.2541767359,
-0.0558727644,
-0.092559956,
0.1337548941,
0.3219422698,
0.0273911189,
0.20631437,
0.0115433605,
-0.1663672477,
-0.4258327484,
-0.6691667438,
-0.1033200175,
0.2843972743,
0.039517343,
0.3573922515,
-0.1105972752,
-0.3868920505,
-0.0788576305,
0.0504410602,
0.02402482,
0.2126840055,
-0.3393747509,
0.0113459509,
-0.3256096244,
-0.0731420666,
0.2244990468,
0.1415489614,
0.1309644282,
-0.0301158521,
-0.3324823081,
-0.5092864633,
0.3821658492,
-0.3244538903,
-0.1690454185,
0.0962434709,
-0.001459423,
0.0845605731,
-0.4442307055,
-0.4346552789,
0.0842052475,
0.4750428498,
-0.0437415317,
0.2842289507,
0.3657217324,
0.0057565868,
0.0302353445,
-0.0741598308,
0.7967597842,
0.1398935318,
-0.061540544,
0.2689972222,
-0.2348905355
] |
https://github.com/huggingface/datasets/issues/4169 | Timit_asr dataset cannot be previewed recently | TIMIT is now a dataset that requires manual download, see #4145
Therefore it might take a bit more time to fix it | ## Dataset viewer issue for '*timit_asr*'
**Link:** *https://huggingface.co/datasets/timit_asr*
Issue: The timit-asr dataset cannot be previewed recently.
Am I the one who added this dataset ? Yes-No
No | 22 | Timit_asr dataset cannot be previewed recently
## Dataset viewer issue for '*timit_asr*'
**Link:** *https://huggingface.co/datasets/timit_asr*
Issue: The timit-asr dataset cannot be previewed recently.
Am I the one who added this dataset ? Yes-No
No
TIMIT is now a dataset that requires manual download, see #4145
Therefore it might take a bit more time to fix it | [
-0.4907503128,
-0.3528876305,
-0.0921196267,
0.1158469245,
0.0223264229,
0.0131127303,
0.1624344736,
0.2413311154,
-0.4454859793,
0.1590494961,
-0.2978596687,
0.1918077618,
-0.1897066534,
0.2122343779,
0.0270437244,
-0.1452159584,
0.0503632352,
0.0330564231,
-0.5349831581,
0.1421809345,
-0.1174203083,
0.0566641651,
0.0147579908,
0.0934261605,
0.1466599256,
-0.0237978715,
-0.0025231014,
-0.2403130531,
-0.2559134066,
-0.4056581855,
0.1778246015,
0.1564522237,
0.1963444352,
0.2847176492,
-0.0001074734,
0.2040955871,
0.2563832104,
0.125695765,
-0.2147534192,
-0.0412410162,
0.0282720122,
-0.077736631,
0.1347402781,
0.0907535031,
-0.3086462319,
-0.0746875405,
0.2408290207,
-0.1767389476,
0.132301271,
0.1793226451,
0.3198475838,
0.4647772908,
-0.0080113923,
-0.3597377241,
0.2846746147,
0.0842708871,
-0.3551377356,
-0.0275570005,
0.1602844447,
0.1939632595,
0.0882870182,
0.1949413419,
0.2031956166,
0.0147881294,
0.1793690324,
-0.0577305295,
0.0066166106,
-0.3978601992,
-0.1150183752,
-0.0021504601,
0.9146885872,
-0.064296633,
-0.2304325104,
0.2065845877,
-0.0746494159,
0.0074061593,
0.1594970524,
-0.099247776,
0.0393150002,
0.2327139527,
-0.1661625206,
-0.0587159954,
-0.1731990129,
0.3737844229,
0.1721867621,
-0.0991479307,
-0.213197574,
0.0954083279,
-0.1144182235,
-0.0526614264,
0.0184935201,
0.1588892341,
-0.2234193236,
0.2758503854,
0.1582655907,
-0.06817431,
0.1165998355,
-0.0199160986,
0.0941193625,
0.362023443,
0.2734749913,
0.0371400081,
-0.322273314,
-0.0763452128,
0.0391553976,
0.0263221823,
0.1116357222,
-0.0315440036,
0.4545252919,
0.141965121,
0.3376837969,
-0.0604721271,
-0.0765920803,
-0.0424794853,
-0.238883391,
-0.3465628326,
0.3518023789,
-0.3019920588,
-0.5410758257,
-0.0938104466,
-0.0466514155,
-0.0461445339,
-0.1285995692,
0.1780642867,
-0.1050480083,
-0.1070316955,
0.0453752093,
0.2133909315,
-0.0722821802,
-0.135151431,
-0.1930241138,
-0.0976952463,
0.0901644155,
-0.0835693926,
0.2255397588,
-0.4286992252,
0.0204886999,
0.0514005423,
-0.05569911,
0.1326458305,
-0.1782767624,
0.0503785573,
-0.294665575,
0.284440577,
-0.0785000846,
0.4233790934,
-0.1240910813,
-0.0211728383,
0.0297310129,
0.1009712666,
-0.0834383816,
-0.1048766673,
-0.1549383849,
0.2528139651,
-0.3284751177,
-0.0615921728,
-0.0989216194,
0.1509413123,
-0.0530052036,
-0.0851245373,
-0.1480893046,
0.2996427119,
-0.3470175266,
-0.17067343,
0.0570014603,
0.2414705902,
-0.5114650726,
-0.1589101851,
-0.3029691577,
-0.5188815594,
0.0833862871,
0.1490620375,
-0.1084980965,
0.1900177598,
-0.2104072124,
-0.1655231267,
0.2375381738,
-0.0790813118,
-0.4887853265,
0.1089843363,
-0.3202173412,
-0.0043616593,
0.1080205739,
0.1838138402,
0.1905791759,
-0.1456230134,
-0.1935274601,
-0.023620287,
0.2858891487,
-0.1219263971,
-0.3000463247,
-0.1768669039,
0.2134311348,
0.289632827,
0.2571427822,
0.1023599952,
0.2578655779,
0.1360337883,
0.2591482401,
0.2758629322,
0.1546829045,
0.1657965481,
0.1885860562,
-0.0810348615,
0.0372924358,
-0.2713906467,
-0.0085023753,
-0.0362657569,
0.1182278097,
0.170772925,
0.2484521121,
-0.0449384265,
-0.4318864644,
-0.0451184213,
-0.0939667597,
-0.1837274283,
0.1725046784,
0.3833110034,
-0.1379743367,
0.2687974274,
0.0054513505,
0.3045817316,
-0.075339146,
-0.1277362406,
-0.0562167503,
0.1093795151,
-0.0628651008,
0.0380526409,
0.1436615139,
-0.0399142168,
0.0539999306,
-0.2407529652,
-0.0697309747,
0.3056177795,
-0.1907122135,
0.0824910179,
0.0722381622,
-0.1403411627,
0.1038900763,
-0.4980703294,
-0.0054902053,
0.1819056571,
-0.0555322543,
-0.0079018315,
-0.1736438423,
0.15126881,
-0.0475395247,
-0.0273434296,
-0.0615435913,
0.2559391856,
0.150252521,
0.0189847816,
-0.0117111038,
-0.1770157963,
0.5276643038,
-0.1506048739,
-0.0004337658,
-0.2812616825,
-0.2317066938,
0.2655068934,
-0.1282665581,
0.0652689934,
-0.1164703369,
0.3995654583,
-0.1049704552,
0.3169049621,
-0.1265041679,
-0.1157560199,
0.1911888421,
0.2201437503,
-0.0677121431,
-0.1220002398,
0.0172026996,
-0.0845391974,
0.1143388301,
0.1880821884,
-0.1727318317,
0.0302919019,
0.188242197,
-0.0606212579,
-0.3407763243,
0.1125699505,
0.168547973,
0.3388543427,
-0.3298157752,
-0.0657556728,
-0.0116834631,
-0.3460262716,
0.2048935741,
-0.1164945737,
-0.1193764135,
-0.3270079792,
0.1616434306,
0.2367552668,
0.0997141674,
0.2972580791,
-0.1205237731,
0.3087579906,
0.0035547765,
0.4161711037,
-0.0920050293,
0.364439249,
-0.0800003856,
0.2842416465,
0.2018612027,
-0.1955928355,
0.5340924263,
-0.2305808961,
0.4122098088,
-0.4742003977,
-0.2952644229,
-0.0023049167,
-0.1437254548,
0.6619400382,
-0.0141845234,
0.1629806161,
-0.0875631943,
-0.1233546063,
0.1178727746,
-0.0860373601,
-0.3253585696,
-0.0989401191,
-0.2053520232,
-0.1261697859,
-0.1283631027,
-0.2413996607,
-0.2879823446,
-0.3187235892,
0.372208178,
0.2646113932,
0.1199833527,
0.162611708,
-0.1051103994,
0.0339583382,
0.0292714611,
0.0370326303,
-0.2869648039,
-0.3234186769,
0.3939823806,
-0.4130394757,
-0.5819919705,
0.0790324882,
0.3099082708,
0.043503426,
-0.0697170123,
-0.5258338451,
0.2117453516,
-0.193054989,
0.1999531686,
-0.0461018384,
-0.269718498,
0.2062251121,
-0.1301401407,
-0.1689808518,
-0.1232543886,
0.0578899421,
-0.0171349011,
-0.3142185807,
0.3372851312,
-0.1188154742,
0.4162261188,
-0.0123123629,
0.5272238255,
0.2355018705,
-0.0643530786,
0.2956063151,
-0.2364156246,
0.4483219087,
-0.0212139878,
-0.4152604938,
-0.0768704787,
-0.0185377784,
0.1864228547,
0.1985573173,
0.0821635425,
-0.2008100748,
-0.2317914814,
-0.0885072798,
0.0063683689,
-0.0679084212,
-0.1277485639,
-0.1896803677,
0.2870243192,
0.1772543937,
0.0999271944,
-0.0121564595,
-0.6010999084,
0.0303960219,
0.4948551953,
0.0549948215,
-0.0229411162,
-0.3403567672,
0.0949896425,
-0.4874190092,
0.2683607638,
0.0646192431,
0.4441039264,
-0.2990888953,
-0.1945803761,
0.2950720191,
0.1864704639,
0.5068645477,
-0.2892615199,
0.0171825215,
0.2867316604,
0.1826078296,
-0.3742390871,
-0.0646835715,
-0.2552843988,
0.381950289,
0.0512913652,
0.4522095323,
0.1529491544,
-0.1421331614,
0.3962413371,
-0.0956448317,
-0.2644375265,
-0.092497319,
-0.1936387271,
-0.2271821499,
0.0576373339,
-0.1004330665,
-0.1521080285,
0.0136605194,
-0.2487167418,
0.1110266447,
-0.3005909324,
0.0876253396,
0.212416783,
-0.0546471812,
0.307959497,
0.2141593099,
0.6978848577,
0.4484844804,
0.0347715952,
0.104009226,
0.3133859932,
0.022392435,
-0.1864864826,
0.2562478185,
-0.1792545915,
0.2676776946,
0.3624532521,
-0.218166396,
0.2767130136,
-0.1444982588,
0.2647692263,
-0.3021703064,
0.4010528624,
0.2953837216,
-0.3216348886,
-0.4957143366,
-0.2194219381,
0.4170579314,
-0.0031493418,
-0.1172676012,
0.3959720135,
-0.0753311142,
-0.0778166652,
-0.0043675932,
-0.0637091175,
0.8644256592,
-0.1151622161,
0.0339443609,
0.0772950724,
0.0924247652,
0.1095301062,
-0.2814568877,
0.0236260239,
-0.1992602348,
-0.334553957,
-0.1169278994,
-0.1064748392,
0.1308006644,
-0.1209921464,
-0.1468597054,
-0.2093613446,
0.1707810163,
0.4186507165,
0.0734983608,
0.124031119,
0.0395120196,
-0.0140362307,
0.2388173193,
0.2542761266,
-0.1250157356,
0.3700104952,
0.0537203401,
-0.0123966848,
-0.0954439491,
-0.1468346268,
-0.4619573355,
-0.0744654089,
-0.0042686891,
0.1465880722,
-0.1164408997,
-0.4493999183,
0.3946033418,
0.0287646465,
0.0867816135,
0.1997236311,
-0.2363794595,
0.1407018453,
-0.1813582927,
-0.1544941664,
-0.1682578027,
0.2188083082,
-0.0219658334,
-0.1812501401,
-0.111247018,
0.1983478963,
0.0546441562,
-0.0650572479,
-0.3996148407,
0.0473578572,
-0.0108861085,
-0.4459977746,
0.2738008797,
-0.1277086735,
0.0164820515,
-0.314076066,
0.1986581087,
0.1282718778,
0.0406063162,
0.0327534005,
0.2413348407,
-0.291849345,
-0.0939789861,
0.7297285199,
0.0028172925,
-0.0145196561,
0.4982558489,
0.0724298581,
-0.2818734348,
-0.2407664657,
0.315353781,
-0.0108698327,
-0.4546485543,
-0.0623627864,
-0.0759289265,
0.4678833485,
0.0584864803,
0.4424580336,
0.1359109432,
-0.3825371861,
-0.1969030946,
-0.3906021118,
-0.2344969064,
0.2117200047,
-0.0320974253,
0.2409943342,
-0.2261136025,
0.1560929716,
0.2084598839,
-0.0603139065,
-0.3751843274,
0.0248290505,
0.0576542951,
0.0502353646,
0.1484327763,
0.0401727781,
0.3046305478,
-0.0282367244,
0.1285549998,
0.1695974916,
-0.317230165,
-0.2429719716,
-0.1390347183,
0.1079197377,
-0.0952083394,
-0.3649406731,
-0.0083643682,
-0.0019747657,
-0.0255425647,
0.2892118692,
-0.0573283732,
-0.0823912323,
0.0571197197,
-0.1389184296,
0.0938760415,
-0.1988927126,
0.2268066257,
0.0945731476,
0.1307674646,
0.4292482138,
0.0377061293,
0.186003089,
-0.1433075964,
-0.0963225961,
0.0032993765,
0.0175194964,
0.1893690974,
-0.0361225195,
0.016845949,
-0.422324568,
0.2119605392,
0.1553281248,
0.2427701205,
0.3916662931,
-0.2206812203,
0.0208214521,
0.2063503712,
0.1963839531,
-0.2162718475,
-0.0805547684,
-0.1796011776,
0.1318084747,
-0.1276785731,
0.0263159592,
0.1835324764,
0.1082983315,
0.3236539066,
0.1841493547,
0.2848801017,
-0.0798206553,
0.1187617704,
0.5239649415,
-0.0851482973,
-0.009830026,
0.2336727679,
0.1196664423,
-0.1756545007,
0.6696918607,
0.0014088338,
0.1397496909,
-0.2304046303,
0.1937206835,
0.1723876148,
-0.4297654033,
-0.1118672416,
0.0003748451,
-0.0503900833,
0.0783494115,
0.2145199627,
0.6561743021,
0.00470006,
0.0611450747,
-0.4971368909,
0.1187222078,
-0.0699548572,
-0.049778007,
-0.2595691085,
-0.3968562782,
-0.2514717579,
0.0987720042,
-0.1306219399,
-0.0735983104,
0.2863107622,
0.1169157326,
-0.1018743142,
-0.3246285021,
-0.0799587071,
0.1348031312,
0.1563529223,
-0.2247664332,
0.1629047692,
0.1317347586,
0.2091031075,
0.0794729292,
0.2775663435,
0.314047724,
-0.064752914,
-0.0029908339,
0.2413532436,
-0.2357550859,
-0.2016000748,
0.0610206388,
0.5169787407,
0.2554089129,
-0.2091944665,
0.2138840258,
0.1341097057,
-0.1877992451,
0.3012872636,
0.1432200074,
0.2654121816,
-0.2594237626,
0.0577130429,
-0.5034255385,
-0.0636860803,
-0.1203756705,
-0.4756186008,
-0.0419950299,
0.3067063093,
0.3522766829,
0.0264212918,
0.0879725367,
-0.3786645234,
0.1150305793,
0.0069877687,
0.4720056653,
0.2203138322,
0.1713452935,
-0.1971016526,
-0.6522882581,
-0.5589722991,
0.0281078033,
-0.1098965481,
0.1665266454,
-0.040389467,
0.0224074721,
0.0253817663,
0.3152981699,
0.5377382636,
0.0412739702,
-0.197495237,
0.3067820072,
-0.230218187,
-0.0224523619,
0.1298639476,
0.2197634727,
-0.0436206348,
-0.2045173645,
0.1538519114,
-0.2158058137,
0.0937434956,
-0.3498946428,
-0.0848421305,
0.002966244,
0.1921174526,
0.3527896702,
-0.0544121005,
0.24830392,
0.0278623924,
-0.148004964,
-0.4626170695,
-0.6537511349,
-0.0551335663,
0.2991994023,
0.0732488483,
0.2741881013,
-0.1379106194,
-0.3022681773,
-0.0685368702,
0.0097045414,
-0.0583235621,
0.3060672879,
-0.2912459671,
-0.0527629517,
-0.2265740186,
-0.0329454988,
0.1860580593,
0.1746799946,
0.1554444283,
0.0102707474,
-0.4648483098,
-0.5072286725,
0.3635601997,
-0.2902205586,
-0.1281955987,
0.1580079794,
-0.0294867493,
0.0534512661,
-0.3410630524,
-0.4034970403,
0.0559496395,
0.5058312416,
-0.1059695929,
0.2238792181,
0.3504636586,
0.0515883081,
0.0095651466,
-0.0755124241,
0.8052228689,
0.0771599561,
-0.084841691,
0.1408083141,
-0.2019716799
] |
https://github.com/huggingface/datasets/issues/4169 | Timit_asr dataset cannot be previewed recently | > TIMIT is now a dataset that requires manual download, see #4145
>
> Therefore it might take a bit more time to fix it
Thank you for your quickly response. Exactly, I also found the manual download issue in the morning. But when I used *list_datasets()* to check the available datasets, *'timit_asr'* is still in the list. So I am a little bit confused. If *'timit_asr'* need to be manually downloaded, does that mean we can **not** automatically download it **any more** in the future? | ## Dataset viewer issue for '*timit_asr*'
**Link:** *https://huggingface.co/datasets/timit_asr*
Issue: The timit-asr dataset cannot be previewed recently.
Am I the one who added this dataset ? Yes-No
No | 86 | Timit_asr dataset cannot be previewed recently
## Dataset viewer issue for '*timit_asr*'
**Link:** *https://huggingface.co/datasets/timit_asr*
Issue: The timit-asr dataset cannot be previewed recently.
Am I the one who added this dataset ? Yes-No
No
> TIMIT is now a dataset that requires manual download, see #4145
>
> Therefore it might take a bit more time to fix it
Thank you for your quickly response. Exactly, I also found the manual download issue in the morning. But when I used *list_datasets()* to check the available datasets, *'timit_asr'* is still in the list. So I am a little bit confused. If *'timit_asr'* need to be manually downloaded, does that mean we can **not** automatically download it **any more** in the future? | [
-0.2399716973,
-0.3775832951,
-0.1303032339,
0.189071089,
0.0118970713,
0.1102470085,
0.1603164226,
0.0570888817,
-0.3138604462,
0.0344567224,
-0.1932356656,
0.1399660408,
-0.2343464792,
0.0799185261,
0.1763837188,
0.0130789317,
0.1113243029,
-0.051803112,
-0.3212527931,
-0.0342862383,
-0.2176145762,
0.1072528064,
-0.0158523116,
0.0649186298,
0.1888400465,
-0.0509278327,
-0.01076061,
-0.301137805,
-0.2553222477,
-0.4395106137,
0.1064686924,
0.2593841851,
0.236814782,
0.1280771792,
-0.000116824,
0.1441554725,
0.2435872406,
0.0093853837,
-0.4047394395,
-0.155820325,
-0.2166925073,
-0.0931120664,
0.1803951114,
0.053907685,
-0.0619257763,
0.1011886522,
0.3119643629,
-0.2129088938,
0.1177968979,
0.225868836,
0.2161502242,
0.5151721239,
0.0544293448,
-0.3440173268,
0.3755964339,
0.1916704178,
-0.2058104575,
0.0399915352,
-0.0082568396,
0.3306942284,
0.2827629149,
0.1641704291,
0.1594712734,
0.1141276136,
0.299282521,
0.0343702696,
-0.1569599658,
-0.6738826632,
-0.1230239049,
0.0843922198,
0.9695641994,
-0.0627486408,
-0.2685092688,
0.0196099542,
-0.0964945406,
0.016744893,
0.0828708559,
0.0419780537,
-0.0644032061,
0.1640613228,
-0.1162808612,
-0.2705309391,
-0.1133588478,
0.4239925742,
-0.0161310453,
0.0418914631,
-0.2752270103,
0.2598690391,
-0.0854750127,
0.1110629737,
-0.137145862,
-0.0245029759,
-0.1259150654,
0.2750724852,
0.1701831073,
-0.1214653403,
0.0786880329,
0.030168796,
0.1814975739,
0.3934549689,
0.3609172106,
-0.0306110997,
-0.427131176,
-0.1065134481,
0.141550377,
-0.032153286,
0.0816488937,
-0.0030121517,
0.4597922862,
0.0930971354,
0.3851515353,
-0.0862193257,
-0.0685281456,
0.0816160962,
-0.0590764172,
-0.3074651062,
0.5078725815,
-0.2305771261,
-0.5386066437,
0.0117900409,
-0.123981677,
-0.142810747,
-0.2212979496,
0.1509575993,
-0.1781298816,
-0.0468045808,
-0.0154160159,
0.185600549,
0.1092940047,
-0.0797371194,
-0.0835047215,
-0.1284505278,
0.1007679552,
0.0003819944,
0.0954739079,
-0.3785626292,
0.0792490467,
-0.0065886606,
0.0033545231,
0.0846409351,
-0.2562672496,
-0.1212609112,
-0.1861678064,
0.3770217299,
-0.1667327583,
0.5522068143,
-0.172669366,
-0.0390469022,
-0.0703829154,
0.2666212916,
-0.0506811365,
-0.2080339044,
0.0247340333,
0.1709589213,
-0.3062427044,
-0.1021351591,
-0.2269985229,
0.103725262,
0.0262705535,
-0.1236106604,
-0.0712223724,
0.2026486695,
-0.2064740062,
-0.2408679128,
-0.0731121972,
0.3088050485,
-0.6323817372,
-0.0702205449,
-0.2979367971,
-0.451032728,
0.0237198006,
0.1826557517,
-0.2061094046,
0.2782536745,
-0.2774224877,
-0.1992445439,
0.2656172216,
-0.0243783593,
-0.4277255535,
0.0156369526,
-0.2179145068,
0.1155883223,
0.1078278869,
0.2936320007,
0.1182564124,
-0.2186986506,
-0.2474915683,
-0.1123388857,
0.1870344579,
-0.3772673011,
-0.3066256046,
-0.1653708518,
0.2338331938,
0.1507318318,
0.3408753276,
0.2225057632,
0.190895617,
0.258746773,
0.3134058714,
0.3088250756,
0.1011944413,
0.2171098292,
0.2013265938,
0.0122061335,
0.0685632601,
-0.2155126333,
-0.2465894073,
0.0004467076,
0.0727855116,
0.1548069417,
0.0423786677,
-0.0595073253,
-0.4242191017,
-0.0860612541,
-0.0794783309,
-0.0315038078,
0.0326998532,
0.6120993495,
-0.1031870246,
0.2052624673,
-0.1987860799,
0.4546174109,
-0.2505021095,
-0.0640600994,
-0.2461873442,
0.0921150148,
0.0699144229,
0.1637358814,
-0.0090553425,
-0.1093711182,
0.0487161726,
-0.2801687419,
0.0550365448,
0.2799370885,
-0.0991391614,
-0.0629942566,
-0.0515782125,
-0.1247583255,
0.1144629791,
-0.3708851635,
-0.0745105371,
0.3222477734,
0.1198254228,
-0.0526470393,
-0.0799777657,
0.151413992,
-0.0386160687,
0.0511619262,
-0.0350494199,
0.1033939868,
0.149481371,
0.1168052107,
-0.177854389,
-0.1954831332,
0.3444619477,
0.0856720731,
0.1205589697,
-0.1647535563,
-0.482319206,
0.2119298279,
0.008350132,
-0.0696840808,
-0.1445810944,
0.4707120657,
-0.0983742177,
0.3781373501,
-0.1837777942,
-0.0567794852,
0.3405885398,
0.1880490482,
-0.0480076894,
-0.2174021602,
0.1041820794,
-0.116576612,
0.1664560586,
0.4055825472,
-0.1538773924,
0.1001006588,
0.0896913856,
0.0169849303,
-0.3971235454,
0.0944660753,
0.1747082025,
0.2899911404,
-0.3451411724,
-0.0692770779,
-0.0120282294,
-0.3504707813,
0.1155673489,
-0.0910241902,
-0.2666521966,
-0.3611243963,
0.0565304123,
0.2140950859,
0.1111393496,
0.2104002386,
-0.1732757539,
0.3451315761,
-0.213324219,
0.2661639154,
-0.0415912978,
0.3888539076,
-0.2094672918,
0.173271209,
0.1771367043,
-0.3384334445,
0.6309753656,
-0.3092481792,
0.3468268812,
-0.4111453593,
-0.2041436285,
0.1276658177,
-0.1089166999,
0.6119735241,
-0.0083409231,
0.2837731838,
0.016817499,
-0.1223298833,
-0.016678771,
-0.0320400037,
-0.2830342948,
-0.2153405398,
-0.1550462991,
-0.0427052788,
-0.01134298,
-0.3252347112,
-0.4287202358,
-0.2941317558,
0.3761744201,
0.3905737996,
0.1777625978,
0.2348195463,
-0.3252827823,
0.0407857075,
0.0351651907,
0.1359615028,
-0.362742722,
-0.3029214442,
0.4572518766,
-0.1712408364,
-0.424593538,
0.1495268643,
0.1059347838,
-0.0385666341,
0.0014751751,
-0.5330911279,
0.1244456917,
-0.1617808491,
0.2934516966,
-0.0747524872,
-0.220296815,
0.3575419784,
-0.1891529709,
-0.0702376366,
-0.1310713291,
-0.0201138575,
0.0015951826,
-0.1233099848,
0.4423236549,
0.0839371234,
0.3743855655,
-0.0688290372,
0.6690331697,
0.2216536105,
0.0355924554,
0.3629831672,
-0.1521460265,
0.5660228133,
-0.0660265982,
-0.386613816,
-0.3016517758,
-0.1031987593,
0.0771757811,
0.1844393164,
0.0249260813,
-0.2144927382,
-0.188197583,
0.0783929229,
-0.1204291135,
-0.106311053,
-0.0245236419,
-0.1301618218,
0.2504546046,
0.2946401834,
0.0385479257,
-0.0029371635,
-0.4738074243,
-0.0365601555,
0.5637924671,
0.3225395977,
-0.0576598532,
-0.3207799196,
0.119973883,
-0.46902439,
0.3611729741,
0.0494303592,
0.476976037,
-0.1997916698,
-0.170018971,
0.3602710962,
0.1634861529,
0.4325476289,
-0.3249017596,
-0.1715883315,
0.2648316622,
0.2620182931,
-0.2400123477,
-0.1279661208,
-0.2584344149,
0.3274300694,
0.1667251289,
0.2816590965,
-0.0972129628,
-0.1199437827,
0.3312937915,
0.0921453908,
-0.3054969609,
-0.119679682,
-0.232942611,
-0.245245114,
-0.0025844243,
-0.1119923443,
-0.0730977282,
-0.0780116692,
-0.1652351618,
0.2044887096,
-0.286760956,
0.0135706738,
0.2728326917,
-0.2294897139,
0.3428384662,
0.400534451,
0.5099683404,
0.390040189,
0.0868833885,
0.0563626997,
0.3949730396,
0.0206877887,
-0.2259735465,
0.1676921546,
-0.1082586572,
0.2414269298,
0.4605700076,
-0.1731204987,
0.3592008054,
-0.0959213078,
0.1772532016,
-0.29785496,
0.3063687086,
0.3327549696,
-0.4893592596,
-0.6220934987,
-0.4983881116,
0.4479421675,
-0.0784648508,
-0.2576445043,
0.3783331811,
-0.0899980739,
-0.1308194846,
-0.0742588192,
-0.0194353741,
1.0600816011,
-0.0765846819,
0.0834842175,
0.0005467804,
0.1283663362,
0.2570150197,
-0.3681382239,
0.0365867689,
-0.1528906822,
-0.1648449451,
-0.2255238742,
-0.1230844334,
0.1536969543,
-0.0950422585,
-0.0473339669,
-0.0441962257,
0.0665038154,
0.597091198,
0.1717564762,
0.1288400888,
-0.1182320565,
0.003472422,
0.2631243467,
0.1038179845,
-0.1295797825,
0.5004430413,
-0.0150684034,
-0.1252208799,
0.0150641073,
-0.3002610505,
-0.4477617741,
-0.2915948629,
-0.1513112783,
0.0258401148,
-0.2075274438,
-0.4417203963,
0.2020825446,
0.0881738141,
0.1477253586,
0.0997806191,
-0.1310393065,
0.0846261308,
-0.1200838536,
-0.0139008863,
-0.1277998239,
0.0956894308,
0.0306708328,
-0.1217060685,
-0.0245813113,
0.1869503707,
-0.1337019354,
-0.1366574913,
-0.6552411318,
0.2004384845,
0.1444651932,
-0.3947259188,
0.1290863901,
0.0677237734,
-0.0608135611,
-0.2405292094,
0.1088930443,
0.2186609656,
0.0429518819,
0.1679273546,
-0.0110660987,
-0.3308799565,
-0.2136253417,
0.7067386508,
0.1795122921,
0.0751986578,
0.4883559942,
-0.2370901555,
-0.2770875394,
-0.1829408109,
0.4123021364,
-0.0836350247,
-0.5610705614,
0.0324132405,
-0.0284989104,
0.5606647134,
-0.105049178,
0.4472660422,
0.1698298156,
-0.3257216513,
-0.251943022,
-0.4686819017,
-0.1953559667,
0.244686842,
0.1073769405,
0.2426518798,
-0.2422517836,
0.1080592051,
0.3119392395,
-0.1333278567,
-0.2848341167,
-0.0209402815,
0.0191038772,
0.1528939456,
0.1553485841,
0.2132759988,
0.2353105843,
-0.0271048583,
0.0524642579,
0.1881639957,
-0.3006607294,
-0.1338647455,
-0.0552225262,
0.1813814342,
-0.0528096855,
-0.1891842633,
-0.0085162977,
-0.1020101458,
0.0656990632,
0.2963154018,
-0.0929657519,
0.0006359259,
0.0798076093,
-0.1729904413,
0.1779957116,
-0.0529424548,
0.1420552284,
0.1662058532,
0.0431944244,
0.4847092628,
0.1699474305,
0.2383298129,
-0.102902703,
0.0253487192,
0.0064294478,
-0.0616349094,
0.2283910811,
-0.1535389572,
-0.0294759963,
-0.5416852832,
0.1164904982,
0.0298006721,
0.2837376297,
0.6063395739,
-0.2172527462,
-0.0338561349,
0.265322566,
0.0991727486,
-0.2747246623,
-0.0435546748,
-0.1938969642,
0.2409565151,
-0.1699578762,
0.2231745124,
0.2972968817,
0.0395017564,
0.4887241423,
0.1209518835,
0.2419685721,
-0.077528365,
0.2247100025,
0.5041934252,
0.0669259131,
0.1741266102,
0.2403058261,
0.1834598035,
-0.2043645829,
0.5537779331,
-0.1173024774,
0.2034913599,
-0.2074772716,
0.1565353721,
0.3426717222,
-0.6165927649,
-0.0164953377,
0.1573806703,
-0.0577094406,
0.1316148788,
0.2495847642,
0.4535639584,
0.0693980753,
0.0590763353,
-0.5210747719,
0.0515607335,
-0.1175767779,
-0.0192860719,
-0.253685385,
-0.5466460586,
-0.1168201119,
0.162201196,
-0.0589275137,
-0.263353914,
0.1491272002,
0.0470278189,
-0.1485317498,
-0.4223784804,
-0.1336803287,
-0.0804857239,
0.1521886587,
-0.2465119362,
0.2535101771,
0.1315813959,
0.1465552002,
0.134600684,
0.2682482898,
0.2083691359,
0.1243411303,
0.1111637652,
0.2803528309,
-0.1363888383,
-0.1629680246,
0.0352465324,
0.4848560989,
0.2493363321,
-0.1739010811,
0.2460759878,
0.0812677667,
-0.1415129751,
0.4951142967,
0.1064870358,
0.1236258447,
-0.4457789958,
0.2616382539,
-0.4482775629,
-0.0578579977,
-0.0680611804,
-0.3653736115,
-0.1024027392,
0.2841105461,
0.3923919499,
0.0115605528,
0.0648200288,
-0.3382370472,
0.0559475385,
-0.0905127078,
0.3662516773,
0.1746859848,
0.1099519208,
-0.3229322433,
-0.4916150272,
-0.6331313252,
0.0210562348,
-0.1522278041,
0.1776272804,
0.0862386376,
0.0626097172,
0.0230434705,
0.3798984587,
0.4623573422,
0.0067027858,
-0.2151636928,
0.4541161358,
-0.1826991737,
-0.0650577247,
0.0479967967,
0.249006018,
-0.1055542156,
-0.216049999,
0.1937515587,
-0.3036148846,
-0.0337685309,
-0.3930511475,
-0.0150101474,
0.0847993642,
0.4370283484,
0.4851172566,
-0.0255571213,
0.2291173786,
0.0035041547,
-0.1468105018,
-0.3208842576,
-0.5082890987,
-0.0810392424,
0.3870263398,
0.074934192,
0.2322065979,
-0.1853412688,
-0.1655623317,
-0.0780596361,
-0.0973445401,
0.0182496253,
0.3206950426,
-0.3410609663,
-0.2085428089,
-0.2974252701,
0.0457170196,
0.2175280452,
0.2940820158,
0.1874186695,
-0.052402027,
-0.4725166559,
-0.4151338339,
0.4728749692,
-0.3378879726,
-0.1820412874,
0.1574743837,
0.0212057084,
0.0994277969,
-0.4308850169,
-0.396641016,
-0.055054415,
0.6749293208,
-0.1647741348,
0.2322736681,
0.2516654134,
0.0926517919,
-0.0554112718,
-0.1100413203,
0.735499382,
0.0900867134,
-0.1757432371,
0.1186301708,
-0.2992320359
] |
https://github.com/huggingface/datasets/issues/4169 | Timit_asr dataset cannot be previewed recently | Yes exactly. If you try to load the dataset it will ask you to download it manually first, and to pass the downloaded and extracted data like `load_dataset("timir_asr", data_dir="path/to/extracted/data")`
The URL we were using was coming from a host that doesn't have the permission to redistribute the data, and the dataset owners (LDC) notified us about it. | ## Dataset viewer issue for '*timit_asr*'
**Link:** *https://huggingface.co/datasets/timit_asr*
Issue: The timit-asr dataset cannot be previewed recently.
Am I the one who added this dataset ? Yes-No
No | 57 | Timit_asr dataset cannot be previewed recently
## Dataset viewer issue for '*timit_asr*'
**Link:** *https://huggingface.co/datasets/timit_asr*
Issue: The timit-asr dataset cannot be previewed recently.
Am I the one who added this dataset ? Yes-No
No
Yes exactly. If you try to load the dataset it will ask you to download it manually first, and to pass the downloaded and extracted data like `load_dataset("timir_asr", data_dir="path/to/extracted/data")`
The URL we were using was coming from a host that doesn't have the permission to redistribute the data, and the dataset owners (LDC) notified us about it. | [
-0.314630121,
-0.2493136823,
-0.0443634577,
0.3087725937,
-0.0127360113,
-0.0093995668,
0.1674087048,
0.1074033454,
-0.3580369651,
0.2038322091,
-0.3066549003,
0.1690923274,
-0.2346718609,
0.0140983555,
0.1313336492,
-0.070213072,
-0.0464562625,
-0.0359865911,
-0.4427014291,
0.1257080734,
-0.143092379,
0.0684732646,
0.0093384329,
0.1092333421,
0.0914714485,
0.0630272627,
-0.0340975709,
-0.0612956062,
-0.2478080541,
-0.4730606675,
0.3486563861,
0.2284390628,
0.2068725377,
0.3254181445,
-0.0001093485,
0.2222614288,
0.3557872176,
0.075744696,
-0.3910843134,
-0.0874716192,
-0.0486401916,
-0.0904358104,
0.1099262387,
0.0490845926,
-0.3061536849,
-0.1360290796,
0.1814475805,
-0.2544889748,
0.2578718662,
0.255646646,
0.2838909328,
0.4448299408,
-0.1126413494,
-0.3362720013,
0.2815318108,
0.1527009308,
-0.281637311,
0.1690959781,
0.1113382131,
0.2586812675,
0.1057600304,
0.0712698549,
0.0826477185,
0.0298686642,
0.2724872231,
-0.1113347784,
-0.1161391661,
-0.4032756388,
-0.0170217976,
0.1224958673,
0.9915796518,
0.0109512545,
-0.2029116601,
0.1314994842,
-0.0114895981,
0.0464646406,
0.145833537,
-0.006429404,
0.0462476686,
0.2966368496,
-0.2327806205,
-0.0909070075,
-0.2174338102,
0.3837856352,
0.0777947456,
-0.0275483839,
-0.2842847109,
0.1781307459,
-0.1281080991,
0.0388912447,
0.0729129612,
0.057121709,
-0.2133575976,
0.3092569709,
0.2001953572,
0.0528018773,
0.0401961282,
0.0119385459,
0.1730291247,
0.3974940777,
0.2573252916,
0.0110245636,
-0.3745329976,
-0.0534789376,
0.0248464774,
0.0800584182,
0.0911978632,
0.0017486678,
0.4037052393,
0.0885532498,
0.3675004244,
-0.0522571802,
-0.1276854128,
0.0642020106,
-0.4269939661,
-0.4014139175,
0.4474540055,
-0.2782624662,
-0.5395561457,
-0.1095906124,
-0.0537229665,
-0.0456639603,
-0.1054407284,
0.3161090016,
-0.1270023882,
-0.0671590194,
-0.0404152274,
0.1758373678,
0.0272798277,
-0.0930764154,
-0.218595922,
-0.0246422086,
-0.0027684779,
-0.023485925,
0.1709284782,
-0.3301099539,
0.0010242516,
-0.0041622333,
-0.0024013389,
-0.0072797458,
-0.2086753845,
0.1056245714,
-0.2188645899,
0.3417302072,
-0.1308294237,
0.4352428615,
-0.0858121514,
-0.187527597,
0.0072196084,
0.1294285357,
-0.1714228839,
-0.2471761405,
-0.2031288147,
0.1986996233,
-0.4058790505,
-0.0553535186,
-0.2514760196,
0.1387290955,
-0.076726824,
-0.1023211032,
-0.1145048067,
0.3282672763,
-0.3271754384,
-0.2048244476,
0.1918783039,
0.4849617183,
-0.5022084117,
-0.1952246875,
-0.3104598224,
-0.4377157986,
0.0937592089,
0.1482688636,
-0.2158336937,
0.1797329932,
-0.2410698384,
-0.2247603685,
0.2776343226,
-0.0682128668,
-0.5234842896,
0.1715423018,
-0.2935335934,
0.0899261236,
0.1255509257,
0.1699784398,
0.1738585532,
-0.1619286388,
-0.2880686522,
0.128077358,
0.3618298769,
-0.1410352588,
-0.2900648415,
-0.2287950069,
0.2693454325,
0.2484697104,
0.1584825069,
0.2472704053,
0.3417849541,
0.1601653248,
0.3095699251,
0.1469801962,
0.1454360634,
0.1800464243,
0.1512132585,
-0.0006898268,
0.0037602449,
-0.2277993411,
-0.0966141224,
0.0656097978,
0.2140537053,
0.2170653641,
0.1290468723,
-0.0738475099,
-0.5136532187,
0.0058556753,
-0.2542909384,
-0.3100380003,
0.1070844978,
0.5479083061,
-0.0944506377,
0.2505334616,
-0.0566960685,
0.2966147959,
-0.0818938166,
-0.1130283475,
-0.1991718411,
0.1242780313,
0.0350111537,
0.2074802816,
0.1262452006,
0.0005857603,
0.1172568798,
-0.2519231737,
-0.0469318964,
0.3266915679,
-0.1742749959,
0.1360364705,
0.1587628275,
-0.20425497,
0.1294400841,
-0.5647800565,
0.2099107653,
0.1686059237,
-0.0104196975,
0.0082952958,
-0.0510572158,
0.2477218211,
-0.0378808789,
-0.0156905372,
-0.0142347524,
0.1808022261,
0.2053420395,
-0.0211088937,
-0.0102054197,
-0.1342326105,
0.4144795835,
0.0229266454,
0.1067625508,
-0.1928408891,
-0.2811065316,
0.2382450253,
-0.1891337335,
-0.0493658893,
-0.2036802173,
0.416169405,
-0.1075625867,
0.1810970157,
-0.1297943294,
0.0422766693,
0.1628409922,
0.2083099782,
-0.032149069,
-0.1268275827,
0.0830514729,
-0.101453647,
0.1535773128,
0.107397534,
-0.126122117,
0.0237626191,
0.1298265159,
0.0185309313,
-0.384560883,
0.1053343043,
0.1583200246,
0.3831781447,
-0.3493468463,
0.093969509,
-0.0628722683,
-0.3149417341,
0.1138116568,
-0.2129867524,
-0.2702746093,
-0.2806102931,
0.1549183726,
0.1985821277,
0.1323965639,
0.209507376,
-0.1951616704,
0.4521293044,
-0.0902602449,
0.3600696921,
-0.1591119021,
0.2728375196,
-0.1578422189,
0.2362870425,
0.3122415245,
-0.0731814504,
0.5148595572,
-0.1094570756,
0.4107040167,
-0.3972680867,
-0.1971678436,
0.0461044014,
-0.137914598,
0.6420608759,
-0.0646105409,
0.1711338609,
-0.0385635085,
-0.1356722564,
0.0100313658,
-0.0637088716,
-0.2597758472,
-0.0539633334,
-0.1783316582,
-0.0434667245,
-0.0948222652,
-0.2897799909,
-0.3923243284,
-0.3043223619,
0.3233787417,
0.2564550936,
0.1416936517,
0.191397056,
-0.1166282222,
0.0827264786,
0.1621047556,
-0.0114511373,
-0.3617656529,
-0.37883389,
0.4004767537,
-0.4668674171,
-0.5289373398,
0.0071495515,
0.3122503161,
-0.0133912703,
-0.0701105818,
-0.6565837264,
0.1583972275,
-0.1458057016,
0.1757626384,
-0.0351300649,
-0.315887332,
0.1448162794,
-0.210240975,
-0.1099199802,
-0.111915879,
-0.0033440792,
-0.1156306341,
-0.3503459692,
0.3811784685,
-0.0506116748,
0.3576745391,
-0.0197855383,
0.6679782867,
0.1882032305,
-0.0212369133,
0.3734461069,
-0.271230489,
0.568762362,
0.0134395724,
-0.3838376403,
-0.0670574307,
0.0026193871,
0.0639921427,
0.1993298978,
0.0934988037,
-0.1255185604,
-0.2163416296,
-0.0695676506,
-0.0519301221,
-0.0473895781,
-0.1767607331,
-0.2376467139,
0.182597518,
0.1081775278,
0.0805257037,
-0.0079776775,
-0.57647717,
0.0231824499,
0.469478935,
0.1141441986,
0.0448675491,
-0.3267258108,
0.2017887086,
-0.5352237225,
0.3209284842,
0.0086410465,
0.4065983295,
-0.253952682,
-0.174736768,
0.4079115391,
0.1138342395,
0.5461350679,
-0.248165831,
0.1081637964,
0.2341168076,
0.2569586933,
-0.3616007864,
0.0085567534,
-0.1366091073,
0.4227812588,
0.0294147506,
0.3949836195,
0.0298647899,
-0.1675395966,
0.366465956,
-0.0011204181,
-0.3843619227,
-0.0931876525,
-0.2755542397,
-0.4446405172,
-0.0104233958,
-0.1554828435,
-0.1125689894,
0.0569646396,
-0.1994900852,
0.1039573997,
-0.2840364575,
0.1365621239,
0.2457978278,
-0.0744421333,
0.2706798911,
0.3709980249,
0.4472582936,
0.4669974148,
0.1571773738,
0.0970103517,
0.4851593673,
0.0088485163,
-0.0929512084,
0.1906722337,
-0.0633626282,
0.1512852609,
0.402747333,
-0.1498261988,
0.20338732,
-0.0468256958,
0.1656956524,
-0.311062932,
0.3731921017,
0.1859911978,
-0.4001280963,
-0.6158134937,
-0.408207953,
0.5245471597,
-0.1246454716,
-0.1639270037,
0.3720956743,
0.0765526742,
-0.1150149107,
-0.0581785776,
-0.0092678387,
1.0376573801,
-0.1613306552,
0.0607318208,
0.2017008215,
0.1156516299,
0.2183261961,
-0.2426704764,
-0.0637973845,
-0.1666351706,
-0.2214189619,
-0.1665426493,
-0.1023101583,
0.0627060235,
-0.1551853269,
0.0316391885,
-0.1529874802,
0.0796558633,
0.3728398085,
0.1376398504,
0.3203746378,
0.0295197107,
0.0976895168,
0.1183539852,
0.2333784848,
-0.1425076127,
0.2949352562,
0.0278450046,
-0.0986233801,
-0.1196867749,
-0.1933162808,
-0.404122889,
0.023685405,
-0.0296161491,
0.2301427871,
-0.1094210818,
-0.5559051037,
0.3006655276,
0.087100938,
0.0143469814,
0.1016166732,
-0.2921422422,
0.21686773,
-0.2815511823,
-0.1248844489,
-0.2259972692,
0.1380905509,
0.032843437,
-0.1392490268,
-0.1008032113,
0.2246016413,
0.0566871129,
-0.2378056645,
-0.2560091317,
0.1063796803,
-0.051564645,
-0.3096605539,
0.1589999646,
-0.0571474992,
-0.0048301201,
-0.2967188358,
0.156428948,
0.0896783248,
-0.0530758388,
-0.123391591,
0.1501648128,
-0.3492959738,
-0.1113677919,
0.6899862289,
0.0702517107,
-0.0085049123,
0.5251853466,
0.0274117421,
-0.2523854673,
-0.1612268686,
0.2822345793,
0.0560858212,
-0.5830132961,
-0.053640604,
-0.152853176,
0.4878813922,
0.0105022173,
0.391017586,
0.1254483759,
-0.2796834707,
-0.2314005643,
-0.5020455718,
-0.1792236269,
0.174166441,
-0.0646319762,
0.2524842024,
-0.1739127934,
0.1321713924,
0.1225028262,
-0.0410428345,
-0.3436425328,
0.0477416366,
0.0801293626,
-0.0233850703,
0.1795431972,
0.1288448125,
0.3584022522,
-0.0444257483,
0.0849707946,
0.1562340558,
-0.2947193682,
-0.188023299,
-0.1357791126,
0.1637471616,
-0.0237136837,
-0.3557665348,
-0.2354566157,
-0.1124021113,
0.0542041697,
0.2330664396,
0.0310516246,
0.0383086465,
-0.0011753967,
-0.2453692704,
0.0401519872,
-0.0905793309,
0.1572467834,
0.1874139458,
0.1169068888,
0.4535782337,
0.1504896134,
0.218723014,
-0.1286237389,
-0.1080865711,
-0.0676216856,
0.0343347266,
0.1791149527,
-0.053105548,
0.0338997245,
-0.3245014548,
0.1852948517,
0.1033143401,
0.187098816,
0.4285719097,
-0.2606792748,
-0.0235442482,
0.1723516881,
0.1254706383,
-0.1574417204,
-0.1088900566,
-0.283002466,
0.0294501968,
-0.24550502,
0.0677225143,
0.1577824056,
0.0819318667,
0.105903253,
0.115103811,
0.3533408046,
-0.0233313013,
0.1172766238,
0.4039214253,
-0.1847109944,
0.0508890077,
0.2482611537,
0.1493545175,
-0.1198450029,
0.6506923437,
-0.049071189,
0.2790914774,
-0.1105974987,
0.1523853242,
0.1162873879,
-0.4757000804,
0.0422684923,
-0.0209051352,
-0.0968414992,
0.1814890057,
0.1667813361,
0.6056175232,
-0.0587664358,
0.1157729924,
-0.5252877474,
0.1623059511,
0.0261779018,
-0.049234841,
-0.2900223732,
-0.4988728762,
-0.2793197632,
0.1687982827,
-0.1537626833,
-0.2747932076,
0.1565928608,
0.0932339579,
-0.2199304998,
-0.3568671048,
0.0079172524,
0.1039410383,
0.1413638294,
-0.2551163435,
0.200140506,
0.1433990449,
0.2167818844,
0.1441040486,
0.1925256103,
0.3480901122,
0.0120795118,
0.0600486696,
0.2458224446,
-0.1410941333,
-0.2372833788,
0.0478294492,
0.4970907271,
0.2353706658,
-0.200747788,
0.2477997243,
0.1302681863,
-0.1554721892,
0.2762628496,
0.1891046315,
0.3711230755,
-0.3377879262,
0.1194370389,
-0.5085252523,
-0.044457905,
-0.1225852221,
-0.3333342969,
-0.132811442,
0.3388801813,
0.3549290299,
-0.0229728054,
0.1294993907,
-0.381377399,
0.0846369714,
-0.0549412854,
0.5738145709,
0.3026981354,
0.2075705826,
-0.0920063853,
-0.5992965698,
-0.7278361917,
0.1029805094,
-0.0660032555,
0.1081340462,
-0.0344969258,
-0.0367613249,
0.0445704535,
0.2752048373,
0.2899949551,
0.1614329219,
-0.0324935131,
0.2258639187,
-0.1228362545,
-0.0516190715,
0.0740666687,
0.3302400708,
-0.1425417513,
-0.246771127,
0.1308095306,
-0.2110565901,
0.0215997826,
-0.286023438,
-0.1079512909,
-0.0482107289,
0.2161703259,
0.3647074103,
0.0323711932,
0.2810084224,
-0.0011628026,
-0.1622498035,
-0.5342824459,
-0.6012514234,
-0.0302042644,
0.2476874888,
0.0714769587,
0.2098512352,
-0.0197513979,
-0.1795251817,
-0.1152125746,
0.0770521834,
-0.0200031996,
0.3904894888,
-0.3436948955,
-0.1958751827,
-0.3024230599,
-0.0176218357,
0.2178982198,
0.2387243956,
0.1451728791,
0.0260221977,
-0.2944293618,
-0.4155166745,
0.4305199087,
-0.4174536467,
-0.131919995,
0.1912464052,
0.0575617813,
0.1234380081,
-0.4056865573,
-0.4261306226,
0.1773027182,
0.5533143878,
-0.1015307754,
0.1603462547,
0.3204087019,
-0.0704117417,
0.0121252621,
-0.0694700852,
0.704194963,
0.0915744901,
-0.1790325195,
0.2250405997,
-0.2226212323
] |
https://github.com/huggingface/datasets/issues/4163 | Optional Content Warning for Datasets | Hi! You can use the `extra_gated_prompt` YAML field in a dataset card for displaying custom messages/warnings that the user must accept before gaining access to the actual dataset. This option also keeps the viewer hidden until the user agrees to terms. | **Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.
We now have hate speech datasets on the hub, like this one: https://huggingface.co/datasets/HannahRoseKirk/HatemojiBuild
I'm wondering if there is an option to select a content warning message that appears before the dataset preview? Otherwise, people immediately see hate speech when clicking on this dataset.
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
Implementation of a content warning message that separates users from the dataset preview until they click out of the warning.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
Possibly just a way to remove the dataset preview completely? I think I like the content warning option better, though.
**Additional context**
Add any other context about the feature request here.
| 41 | Optional Content Warning for Datasets
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.
We now have hate speech datasets on the hub, like this one: https://huggingface.co/datasets/HannahRoseKirk/HatemojiBuild
I'm wondering if there is an option to select a content warning message that appears before the dataset preview? Otherwise, people immediately see hate speech when clicking on this dataset.
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
Implementation of a content warning message that separates users from the dataset preview until they click out of the warning.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
Possibly just a way to remove the dataset preview completely? I think I like the content warning option better, though.
**Additional context**
Add any other context about the feature request here.
Hi! You can use the `extra_gated_prompt` YAML field in a dataset card for displaying custom messages/warnings that the user must accept before gaining access to the actual dataset. This option also keeps the viewer hidden until the user agrees to terms. | [
-0.2600831389,
-0.3120526373,
-0.0563245714,
-0.108602494,
0.0186993983,
0.3666293025,
0.352557838,
0.238814801,
0.3074608147,
0.2498291284,
0.1395488232,
0.3237808645,
-0.2098608315,
0.0323201641,
-0.4014856517,
0.0375654511,
-0.1355635077,
0.0450617895,
0.1742631644,
0.018343864,
-0.0660156086,
-0.1675011665,
-0.1520345956,
0.0997364223,
-0.5523024201,
-0.0737857595,
0.0507675223,
-0.1065958217,
-0.1140452698,
-0.6684672236,
0.4734385014,
0.398524642,
-0.0124485269,
0.0000478111,
-0.0001185765,
-0.2198038548,
0.4861976504,
0.1373051256,
-0.3184047341,
-0.3367218077,
-0.4671014845,
-0.2632938027,
0.0552180745,
0.0257772505,
-0.3868546486,
0.0831892043,
0.1177973896,
-0.0423723347,
0.2869325578,
-0.0051119514,
0.0507654846,
0.2904305756,
-0.3477863371,
-0.0363506936,
-0.195371002,
0.7292249203,
-0.1954235733,
0.0122203408,
0.184846729,
0.2646846771,
-0.2798995674,
0.3929873109,
0.0150442179,
-0.0788659006,
0.2147566825,
-0.10534361,
0.0832927302,
-0.2727112472,
-0.3039788902,
0.4805746377,
0.8407342434,
-0.0975123048,
-0.2196983844,
-0.4503370225,
0.2987208366,
-0.0674251989,
0.2097371966,
0.13241449,
-0.4388150871,
0.1977686882,
-0.2001974881,
-0.3247444928,
-0.2011881471,
0.106553942,
0.1606952548,
0.2748227715,
0.0557083674,
0.019259071,
0.012519192,
-0.2795596123,
0.4264500141,
-0.2378845215,
-0.2978340685,
0.1872371137,
-0.0621498302,
-0.6047000289,
-0.040929202,
-0.1070728824,
-0.0550247021,
-0.1583925337,
-0.1741618812,
0.0746044591,
-0.4253589213,
0.0627776906,
0.4473702312,
-0.2514369488,
0.2403548509,
0.5698630214,
0.1372999549,
0.1255584657,
0.6701500416,
0.0287056826,
0.0374434777,
0.1112450138,
-0.2503021359,
0.2841647863,
0.2387412935,
-0.141831547,
-0.3577823043,
-0.0231127851,
-0.0253852885,
0.1621813923,
0.1905033886,
0.1401527822,
0.0186717119,
-0.0929897353,
-0.1325025409,
0.079437837,
0.1024780273,
-0.3871197104,
0.0094136242,
0.0020526575,
-0.2150391042,
0.4478187859,
0.3190630078,
0.3461646736,
-0.0038848647,
0.2987582982,
0.2770131826,
0.3223112226,
-0.2911676764,
-0.0332543999,
0.1361749917,
0.1608203053,
-0.1870060116,
0.2810692489,
-0.0641967952,
0.1965797842,
-0.2384968847,
0.3624796271,
-0.117058374,
-0.4177776277,
-0.2330287695,
0.0399980694,
-0.5103548169,
0.0214829072,
-0.164231807,
0.3691017926,
-0.2200777829,
0.0230627712,
0.357262224,
0.2626134455,
-0.6673062444,
-0.101425834,
-0.1017102599,
0.7487764359,
-0.3353497684,
-0.200538829,
-0.2593581975,
-0.3628337383,
-0.293943882,
-0.1606830657,
-0.4000928998,
-0.0446878038,
-0.2200535387,
0.241225034,
-0.0583739653,
-0.5334256887,
-0.2188349217,
0.4968605936,
-0.2872151434,
0.230478555,
0.0054037548,
0.3634933829,
-0.0286350548,
-0.3078194857,
-0.0653523728,
0.1135657877,
0.1703718901,
-0.0936416164,
-0.2264360338,
-0.3378778696,
0.2855858207,
0.2089785635,
-0.1487590969,
0.0090302359,
-0.092033267,
0.2363871783,
0.4526764452,
0.0727303177,
0.1014149264,
0.0465190709,
0.5217707157,
-0.1167166308,
-0.3212661445,
-0.1530158371,
-0.4139885604,
0.0602486879,
0.1138767898,
0.2131586969,
-0.0746836811,
-0.2953970432,
-0.0760475919,
-0.1515883058,
-0.1510577202,
0.0258062985,
0.0102980826,
-0.2817923129,
-0.0735175908,
-0.1736836433,
-0.0335581265,
0.7577884197,
-0.5005908012,
0.2176930606,
0.1980872154,
-0.0843670592,
0.2094492018,
-0.0260997768,
0.2126586437,
-0.0035562958,
0.310208261,
0.2577694952,
-0.1052347943,
0.4256014228,
-0.0098918956,
0.2654037774,
-0.0118341055,
-0.1131190285,
0.409587115,
-0.5264105797,
0.2539432645,
-0.0027021687,
-0.2552106977,
0.2582781613,
-0.4260344803,
0.2765372396,
-0.102649115,
-0.0472126678,
-0.4010377228,
-0.0715617016,
-0.0933862105,
0.092342183,
-0.2298021615,
-0.4965447485,
-0.0492060408,
0.3779731393,
-0.0371094607,
0.1508155614,
0.098525323,
-0.0423205867,
0.0191182178,
0.0538021661,
0.1020765975,
0.008283006,
0.0774847493,
-0.0942643806,
0.5324184895,
-0.0317258611,
0.4989306927,
0.1051904038,
-0.3059274852,
0.0039288849,
-0.3084847927,
-0.0436810553,
-0.0358408764,
0.0396701545,
-0.3369888961,
0.0580784269,
0.1600634456,
-0.0643298775,
-0.1711494029,
-0.0006710334,
0.1233365908,
-0.1238823235,
-0.2527580559,
-0.2853421271,
-0.1390331089,
-0.3434432447,
0.3146905303,
-0.1623313874,
-0.0985483825,
-0.1001661569,
0.4874393046,
0.0775626749,
-0.1611599922,
0.226857245,
-0.1844348907,
0.4042411149,
-0.1338163018,
0.1428103149,
0.0646104291,
0.1107257754,
0.168861866,
0.0778580755,
-0.2160466611,
0.2901852727,
0.2680784166,
0.0988562033,
0.2639582753,
-0.4771116376,
0.0314319246,
0.2412707359,
0.0031988467,
0.3212565184,
0.0508578233,
0.1463681608,
0.1513521075,
-0.4017408192,
-0.0367754735,
0.1248694286,
0.0146379601,
-0.2519004941,
0.1021788344,
0.0837579519,
0.061393287,
-0.0864932016,
-0.2816233039,
-0.2860403657,
-0.1299169213,
-0.1523908228,
-0.0348094068,
0.0682043582,
0.210142836,
-0.2899156511,
-0.2126495689,
-0.2705337703,
-0.1304606199,
-0.4669395387,
0.1537870169,
-0.2489979565,
0.2028080523,
0.0848354176,
0.000174159,
-0.0348268412,
0.0395026319,
-0.4774459302,
0.1269040406,
-0.0735653937,
0.401212424,
-0.0360997319,
-0.5866671801,
0.2345749736,
-0.0068907049,
0.0680714548,
-0.0392147116,
0.0493404381,
-0.0610653572,
0.0282628518,
0.3752943277,
0.0120162833,
-0.1555279791,
0.3233233392,
0.2695509493,
0.2861343622,
-0.0599759817,
0.1474722028,
0.2406264544,
0.5404546857,
0.2936146259,
0.0591028333,
-0.1551130563,
0.4446413517,
0.2020332217,
0.2044601589,
-0.0502484366,
-0.0938653201,
0.0245911907,
-0.3579581082,
-0.0156761035,
-0.3263667524,
-0.1199212149,
-0.2614263296,
0.2298853099,
-0.0123817334,
-0.0349224359,
-0.2405872792,
-0.3971804976,
0.1434963644,
0.5373783112,
0.5064862967,
-0.0943621993,
-0.2636024356,
0.002189233,
-0.0822963119,
-0.1640896052,
0.1856344044,
0.1469790637,
-0.2574266791,
0.0531414188,
-0.0395453833,
0.511741221,
0.114062354,
-0.3860026598,
-0.0512101427,
-0.0989695564,
0.1503528506,
-0.1264967918,
-0.1274987459,
0.0162354,
0.3743540347,
-0.2534726858,
0.2515921295,
-0.0434202515,
-0.3592808843,
0.3649936914,
-0.0102293054,
-0.1585161537,
-0.549818337,
0.1487498581,
0.557364881,
-0.2787582576,
0.2659011185,
0.1826886088,
-0.0433342569,
-0.3116694093,
-0.3194654286,
0.2591844797,
0.0984778404,
0.1701999456,
0.0982598215,
0.0108678965,
0.1366356611,
0.3230675161,
0.0242823232,
-0.0885735005,
0.4320760071,
0.1300501078,
0.2882342637,
-0.3583097756,
-0.3075414002,
-0.2683933079,
0.0360850655,
0.418192327,
0.0075306222,
0.2335212827,
-0.1212435886,
-0.062077947,
-0.4206826389,
0.2251336426,
0.1913035512,
-0.3055592775,
-0.3385891914,
-0.1129363999,
0.3723553717,
0.0382210016,
-0.32991907,
0.2645435035,
0.1747403443,
-0.2779103816,
-0.0856932327,
0.3607001901,
0.7800463438,
0.3114871979,
-0.0536139533,
-0.0852145776,
0.3540953398,
0.5727860332,
-0.1903058141,
-0.0048204362,
0.0916455835,
-0.3857427835,
-0.1425882578,
-0.2016141117,
0.1708085388,
0.5043878555,
0.0319442078,
-0.1022152379,
-0.2260809541,
0.2174128145,
-0.1336761564,
0.1472872347,
-0.4646109343,
-0.2537987232,
0.0715043098,
0.033987347,
0.103548713,
0.3709999025,
-0.0999551713,
0.0012193731,
0.0978237242,
-0.199424997,
-0.7309507728,
-0.0336865857,
0.1311608106,
-0.1770753562,
-0.2282358557,
0.0289188381,
0.6755711436,
0.2743168771,
0.3941693008,
0.5468803048,
-0.2758304775,
0.2445146441,
-0.0495564006,
-0.1259029359,
-0.5752063394,
-0.0772616938,
0.2919157147,
0.0619699806,
-0.5500340462,
0.3033027351,
0.2401364595,
-0.1476060599,
-0.2531467974,
-0.3590160608,
0.035803996,
-0.4956902564,
-0.1706200689,
0.0824183449,
0.1283587515,
-0.0253532715,
0.1101877466,
0.0403991602,
0.0083643068,
-0.0736820325,
0.1245458275,
-0.2606926262,
-0.1580768228,
0.1210250631,
-0.0709389299,
-0.4163961709,
0.1744293123,
0.0067968192,
-0.2408477217,
-0.2469979227,
-0.0658639446,
-0.0814224258,
-0.194688797,
-0.1288398504,
0.3056973219,
0.1667989939,
-0.1253216416,
0.1631342918,
-0.0655614734,
0.185281992,
-0.097569935,
-0.2032753527,
-0.2564775646,
0.2433894873,
-0.4480473101,
0.3374955952,
-0.3315629661,
0.0672818422,
0.1204929426,
0.1601230502,
-0.222775653,
-0.2334371805,
-0.1498505473,
0.0304119438,
-0.054259941,
0.4625251591,
0.0619202182,
-0.2340806872,
-0.0803446248,
0.0313207209,
-0.0026877688,
-0.0754725412,
-0.1312732548,
0.2145962864,
0.3041367233,
-0.0466911942,
-0.1017991304,
-0.2184093744,
0.2249574065,
0.0887398422,
0.3448932469,
0.4393673241,
-0.0439207442,
0.2540985644,
0.1737539768,
0.1702495068,
-0.2692675292,
0.2205603272,
-0.0443583839,
0.3255074322,
0.0689144433,
-0.036204692,
0.1012872308,
0.0032107129,
0.1242133602,
0.2636480331,
0.1460167915,
0.2634886801,
-0.2215206623,
0.293942064,
0.083833456,
0.0680436119,
0.0872268751,
-0.0137737738,
-0.0133225871,
-0.3288152516,
0.1141078398,
0.0944756493,
-0.1186499149,
-0.2773225009,
-0.1666531116,
-0.1841714382,
0.1558929086,
0.064541772,
0.2634229362,
0.223611623,
0.2828615606,
0.0860179365,
0.2196586281,
-0.1708060205,
0.3408659399,
0.7056550384,
-0.1767246127,
-0.0085486025,
0.216672495,
0.2393730134,
0.222701177,
0.2352843881,
0.0777170733,
0.2547162175,
0.2898293734,
0.0692424104,
0.0869327486,
-0.269600451,
0.0505256541,
0.155812934,
-0.2057372332,
0.0324010588,
0.1836630106,
-0.2155245841,
-0.0585876554,
0.1971387863,
-0.393244952,
-0.0776667669,
-0.1007563993,
0.0448632352,
-0.2302394658,
-0.0903475881,
-0.2397137284,
0.0975106359,
0.1163546368,
-0.3411453366,
-0.0379170403,
-0.0877389237,
-0.0467554294,
0.0526953675,
0.5497195125,
0.2398194373,
0.2627427578,
-0.0939629972,
-0.1967870444,
-0.0516381972,
0.034013059,
0.5551487207,
0.1029770151,
-0.0144893276,
0.1861171722,
0.1050264388,
0.1441421956,
-0.251131475,
0.0625084192,
0.2563883364,
0.3329636455,
-0.0438072868,
0.0753904879,
-0.0089344308,
0.1403728276,
-0.0966967642,
0.2299273908,
-0.0117746303,
0.1855898052,
-0.3305181265,
0.2265292257,
0.179079324,
-0.0494686812,
0.0257135425,
-0.0212380905,
0.2095238864,
-0.1855938286,
0.4789262712,
-0.2557558119,
-0.0244118012,
-0.1942390949,
0.0241797082,
-0.134508729,
0.0745262653,
0.3687154949,
-0.1930822432,
-0.3459177017,
0.0125764096,
-0.1339412928,
0.2322132438,
-0.1828205287,
-0.0083857514,
0.0458319895,
-0.3449841738,
-0.0913212523,
0.4794864655,
-0.0359655581,
0.1156603992,
-0.1338965297,
0.0770063922,
-0.2488185614,
0.1482211351,
0.0920391902,
0.2038221359,
-0.0482342467,
-0.0966264233,
0.0348189399,
0.5004886985,
-0.1549180299,
-0.1198314354,
0.0695776045,
0.184337914,
0.072543703,
0.1830228716,
0.0256071799,
0.3620271087,
-0.0029461395,
0.021381937,
-0.1348054409,
-0.0818510279,
-0.0609555095,
0.0543808192,
0.2176948637,
0.3153086305,
-0.1743925214,
0.1998317391,
-0.1184981093,
0.0288705677,
-0.0355709381,
-0.0636633262,
-0.354470253,
-0.0615558363,
-0.2642408311,
0.0307318028,
-0.0462164879,
0.0011829004,
0.0553349815,
0.0262395181,
0.2322614193,
-0.165285334,
0.2369994223,
-0.041524101,
0.1212670505,
-0.1446357369,
0.0417702422,
0.0859866515,
-0.0632450357,
-0.5350524187,
0.222837612,
0.3174122274,
0.0115040634,
0.1688069999,
0.084316358,
0.1840307266,
-0.0725294501,
-0.0707027242,
0.5672530532,
-0.028858142,
0.0744912699,
0.0006956618,
-0.1817512661
] |
https://github.com/huggingface/datasets/issues/4152 | ArrayND error in pyarrow 5 | Where do we bump the required pyarrow version? Any inputs on how I fix this issue? | As found in https://github.com/huggingface/datasets/pull/3903, The ArrayND features fail on pyarrow 5:
```python
import pyarrow as pa
from datasets import Array2D
from datasets.table import cast_array_to_feature
arr = pa.array([[[0]]])
feature_type = Array2D(shape=(1, 1), dtype="int64")
cast_array_to_feature(arr, feature_type)
```
raises
```python
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-8-04610f9fa78c> in <module>
----> 1 cast_array_to_feature(pa.array([[[0]]]), Array2D(shape=(1, 1), dtype="int32"))
~/Desktop/hf/datasets/src/datasets/table.py in wrapper(array, *args, **kwargs)
1672 return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
1673 else:
-> 1674 return func(array, *args, **kwargs)
1675
1676 return wrapper
~/Desktop/hf/datasets/src/datasets/table.py in cast_array_to_feature(array, feature, allow_number_to_str)
1806 return array_cast(array, get_nested_type(feature), allow_number_to_str=allow_number_to_str)
1807 elif not isinstance(feature, (Sequence, dict, list, tuple)):
-> 1808 return array_cast(array, feature(), allow_number_to_str=allow_number_to_str)
1809 raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{feature}")
1810
~/Desktop/hf/datasets/src/datasets/table.py in wrapper(array, *args, **kwargs)
1672 return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
1673 else:
-> 1674 return func(array, *args, **kwargs)
1675
1676 return wrapper
~/Desktop/hf/datasets/src/datasets/table.py in array_cast(array, pa_type, allow_number_to_str)
1705 array = array.storage
1706 if isinstance(pa_type, pa.ExtensionType):
-> 1707 return pa_type.wrap_array(array)
1708 elif pa.types.is_struct(array.type):
1709 if pa.types.is_struct(pa_type) and (
AttributeError: 'Array2DExtensionType' object has no attribute 'wrap_array'
```
The thing is that `cast_array_to_feature` is called when writing an Arrow file, so creating an Arrow dataset using any ArrayND type currently fails.
`wrap_array` has been added in pyarrow 6, so we can either bump the required pyarrow version or fix this for pyarrow 5 | 16 | ArrayND error in pyarrow 5
As found in https://github.com/huggingface/datasets/pull/3903, The ArrayND features fail on pyarrow 5:
```python
import pyarrow as pa
from datasets import Array2D
from datasets.table import cast_array_to_feature
arr = pa.array([[[0]]])
feature_type = Array2D(shape=(1, 1), dtype="int64")
cast_array_to_feature(arr, feature_type)
```
raises
```python
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-8-04610f9fa78c> in <module>
----> 1 cast_array_to_feature(pa.array([[[0]]]), Array2D(shape=(1, 1), dtype="int32"))
~/Desktop/hf/datasets/src/datasets/table.py in wrapper(array, *args, **kwargs)
1672 return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
1673 else:
-> 1674 return func(array, *args, **kwargs)
1675
1676 return wrapper
~/Desktop/hf/datasets/src/datasets/table.py in cast_array_to_feature(array, feature, allow_number_to_str)
1806 return array_cast(array, get_nested_type(feature), allow_number_to_str=allow_number_to_str)
1807 elif not isinstance(feature, (Sequence, dict, list, tuple)):
-> 1808 return array_cast(array, feature(), allow_number_to_str=allow_number_to_str)
1809 raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{feature}")
1810
~/Desktop/hf/datasets/src/datasets/table.py in wrapper(array, *args, **kwargs)
1672 return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
1673 else:
-> 1674 return func(array, *args, **kwargs)
1675
1676 return wrapper
~/Desktop/hf/datasets/src/datasets/table.py in array_cast(array, pa_type, allow_number_to_str)
1705 array = array.storage
1706 if isinstance(pa_type, pa.ExtensionType):
-> 1707 return pa_type.wrap_array(array)
1708 elif pa.types.is_struct(array.type):
1709 if pa.types.is_struct(pa_type) and (
AttributeError: 'Array2DExtensionType' object has no attribute 'wrap_array'
```
The thing is that `cast_array_to_feature` is called when writing an Arrow file, so creating an Arrow dataset using any ArrayND type currently fails.
`wrap_array` has been added in pyarrow 6, so we can either bump the required pyarrow version or fix this for pyarrow 5
Where do we bump the required pyarrow version? Any inputs on how I fix this issue? | [
-0.2717887461,
0.0057994733,
-0.0946770236,
0.076236479,
0.1772200316,
-0.1354119927,
0.5197154284,
0.285346359,
-0.1506761312,
-0.1537640542,
-0.3803839087,
0.1065837815,
0.0012881052,
0.1034748331,
0.0800986141,
-0.1847531497,
-0.0333412327,
0.215312764,
-0.08204671,
0.1636620611,
-0.2497325838,
0.1367579997,
-0.3653621972,
0.3566609919,
-0.017395772,
0.1811756939,
0.1212958023,
-0.0364004858,
-0.0784664154,
-0.4917581975,
0.5164659023,
-0.2408556044,
0.021569876,
-0.0941426009,
-0.0001147525,
0.0457253568,
0.2521470189,
0.0827405751,
0.0017751605,
0.1841500401,
0.4386567175,
-0.0372871384,
0.177953124,
-0.3302882612,
0.0721013546,
-0.4665046036,
-0.0915136933,
0.6173187494,
0.3307853341,
0.101836741,
0.2171434909,
0.3780943751,
0.6151907444,
-0.0194194093,
0.3706323504,
0.4130524695,
-0.2798074782,
0.2551670372,
0.1670932621,
-0.2208791375,
0.2104579955,
-0.042786926,
-0.2557904422,
0.145392254,
0.2362824976,
0.1489411145,
0.2767728269,
-0.1570571214,
-0.0264836475,
-0.0221150946,
0.2115543485,
-0.2876383066,
-0.1934363097,
-0.090837568,
-0.0596275032,
-0.3843434751,
-0.0353487805,
0.1044261456,
-0.2276762426,
0.2333742827,
-0.0556492172,
0.2152263969,
-0.1535305232,
0.272859633,
-0.1901582181,
-0.0732872188,
0.0406608693,
0.0351042971,
-0.0374694541,
-0.3355244994,
0.0104171569,
0.109352231,
0.1252885014,
-0.0223307014,
-0.065936327,
-0.105397813,
-0.0044944817,
-0.5112823844,
0.2702336311,
-0.1116265729,
-0.1669169813,
-0.0591529012,
0.0126385875,
0.2440607846,
-0.1470865011,
-0.0967258364,
0.011402227,
-0.0181561243,
0.0947728381,
0.0066015976,
0.1575381756,
0.0785909817,
0.2705770433,
-0.1741548181,
0.2402765453,
-0.168132484,
0.6953446865,
-0.2625773549,
-0.3337614834,
-0.0657658875,
-0.1223010644,
-0.0992468894,
0.0665143356,
0.3537714183,
0.2728584111,
-0.0913421065,
-0.1202220917,
0.1806825101,
-0.2250391096,
-0.1263050139,
-0.0869961604,
0.1795650125,
-0.0195494257,
-0.0157771464,
0.2165933251,
0.2129367143,
0.2388064116,
0.0388251692,
0.002058696,
0.4412969351,
-0.2637690008,
-0.0711408108,
0.0957809389,
0.2807442248,
-0.1506768614,
0.0050216708,
0.0442491919,
0.1723088473,
-0.0880753919,
0.0858362988,
-0.1421572566,
-0.0997290239,
-0.2135459185,
0.1917854398,
-0.0330526866,
-0.0037231045,
-0.0720125437,
-0.109025456,
0.3362956941,
-0.5219536424,
0.1083509848,
-0.4567975998,
-0.1994602084,
-0.3214561641,
0.2787398994,
-0.0186792426,
-0.1094637364,
-0.0675942153,
0.2290104479,
-0.1169007197,
0.1602252573,
0.2420733869,
-0.1380012333,
-0.0738914162,
-0.1789235622,
0.3544146121,
0.3437272608,
0.1171525419,
-0.3391928077,
-0.0750424415,
0.1979973167,
-0.0337192118,
-0.0441422537,
0.1083943099,
0.0880745426,
-0.1343827844,
0.0921336114,
0.3776659667,
-0.0120015554,
-0.108315438,
-0.3249003291,
-0.1741480827,
0.377746135,
0.2052503377,
0.0064119548,
-0.0449240543,
0.2224486917,
0.0720417798,
-0.0232353825,
-0.3667888641,
0.1093389392,
-0.021257313,
0.3742628992,
-0.2663788497,
0.148768872,
-0.4628759325,
-0.4200430512,
0.1641432494,
-0.275996685,
-0.1430666596,
-0.3225880563,
0.045922108,
-0.1851161569,
0.1829953343,
-0.1332805008,
-0.1322417408,
0.1095230132,
-0.0981109515,
0.0091363629,
-0.0386704095,
-0.0963962153,
-0.0754866451,
-0.0634568632,
0.1706129611,
-0.3039974272,
0.6566851735,
-0.2551052272,
-0.6518369317,
-0.1243507415,
0.1718805283,
0.1140064225,
0.0559089929,
0.0075126281,
0.2563116252,
-0.0301630925,
-0.3432930112,
-0.5049981475,
0.1940206438,
0.0912523121,
-0.4416205585,
-0.0680422187,
0.1615923494,
0.0406903587,
-0.1457009315,
0.3625915945,
0.2576726377,
-0.1797470301,
0.1253577471,
0.1068137437,
0.1645486653,
0.0898301452,
0.1974120736,
0.3377683461,
0.0049739936,
0.1279383749,
-0.1978715062,
0.1731541157,
-0.0521865748,
-0.1700513512,
0.3713656962,
0.2392761111,
0.04783215,
0.1617303789,
0.1344881207,
0.0296217073,
-0.0314585455,
0.0409011021,
-0.4544716179,
0.308507055,
0.2466224581,
-0.112185739,
0.1939485222,
-0.2892342508,
-0.0518219918,
0.0334125236,
-0.0053183064,
0.1679913253,
0.1751550883,
0.2459362,
0.0674173385,
-0.2429204732,
-0.3855274916,
0.0990908071,
0.3407403231,
-0.3888358474,
-0.1104674861,
-0.1255930513,
-0.3685084283,
-0.0941414759,
-0.252060622,
-0.1995277554,
-0.1095074862,
-0.0279116817,
0.5324671865,
-0.12539424,
0.2560384572,
-0.1849799752,
-0.4749096632,
0.2023318112,
0.0109953992,
-0.0461333133,
0.0140109155,
0.0592379868,
0.0807208046,
0.2120074928,
0.2020459324,
0.0910530686,
0.0051978878,
-0.1661649048,
-0.2637523115,
-0.3594252765,
0.0705849081,
-0.0904180929,
0.0878942534,
0.2975557446,
0.190761134,
-0.4172439277,
-0.3369338512,
0.4029256105,
-0.0839425325,
-0.3999933302,
0.4370789826,
-0.0301860999,
-0.212950021,
-0.2333163619,
-0.2582144141,
-0.2015583515,
-0.2928407192,
0.1957238317,
-0.0790845305,
0.0810882226,
0.1198144183,
0.0491127484,
0.0788375139,
-0.0558186732,
-0.011556631,
0.0408845544,
0.5339930654,
0.3027316034,
-0.208339408,
-0.2443570942,
-0.271986872,
-0.1209445968,
0.011971374,
0.2026368678,
-0.0141310263,
-0.4818277657,
-0.3377820551,
0.6134945154,
-0.1829900295,
-0.1472907364,
0.335698992,
0.0206709187,
-0.0554590151,
0.0958968922,
-0.0049163639,
0.1266743094,
0.2165798992,
-0.0614048764,
0.0078052348,
0.1685136855,
-0.1275594831,
0.4383893907,
-0.1703718156,
-0.020686429,
0.4818211198,
-0.180161193,
0.0478314273,
-0.1554725766,
-0.3173235357,
-0.0519077443,
0.0198556464,
-0.0323158242,
-0.0665494204,
-0.197093159,
-0.2736836076,
-0.0232888199,
-0.3783119619,
-0.2130372673,
-0.0828129947,
-0.0388292894,
0.1966028959,
0.3160063922,
0.0117835971,
-0.0354381949,
0.1906215996,
-0.1473037452,
-0.0917142183,
-0.122438021,
0.1225687414,
-0.1241623387,
-0.5762776732,
-0.4867057502,
-0.1274279505,
0.3331121504,
0.3155410886,
0.3246952891,
-0.1591990888,
-0.041128315,
-0.0630407631,
-0.0263580699,
0.4614033699,
0.1515040845,
0.1436036676,
0.215007484,
0.063104026,
-0.5561504364,
-0.4562471509,
-0.1227976382,
-0.2171369046,
0.0733418018,
-0.0955422595,
-0.3264753222,
0.0543711185,
0.5049547553,
0.1481269002,
-0.0071470533,
-0.0074948939,
-0.2030958086,
-0.422526449,
-0.1657755673,
-0.0869644657,
0.2192377299,
0.2336184382,
0.0548507832,
0.102771841,
-0.1042403132,
0.0434531979,
-0.1677719504,
0.2373846322,
0.1143856719,
-0.2315847427,
0.2744170129,
-0.3416725695,
0.1588726491,
0.1925713122,
0.1988173425,
0.3738135695,
-0.2458138317,
-0.0572219454,
-0.0310931001,
0.1900525093,
-0.0989796519,
-0.2556058168,
0.0698071122,
-0.3041891754,
0.0340688974,
0.4200907946,
-0.1545390785,
0.4300568402,
-0.2690984607,
0.0663627163,
-0.0469566695,
0.4011411667,
-0.0956474617,
0.1474831998,
-0.1665927619,
0.2590810359,
0.0039370805,
0.198609516,
0.0381230079,
0.4934007823,
0.2660191357,
-0.0344509259,
0.777641952,
-0.4247775376,
0.1135608628,
0.3423930705,
0.0779046789,
-0.3839231133,
-0.2817509174,
-0.0441925712,
-0.1226972193,
-0.0848176777,
-0.1791659445,
-0.218070969,
0.2563406527,
0.2368147373,
0.2044909447,
0.0922656283,
-0.1490717381,
0.2708689868,
0.0031321924,
-0.3886563778,
0.0579757728,
-0.2212210149,
-0.0118840607,
-0.0537036397,
-0.2585356236,
0.097727336,
-0.2184647024,
-0.1399462223,
0.1776108891,
-0.1215130314,
0.4267792702,
0.3741715848,
-0.1935766637,
-0.0903020054,
0.0826222897,
0.0616720244,
-0.3340367973,
-0.1578106135,
-0.0494891815,
-0.0777643025,
0.0946920291,
0.044673644,
0.01246606,
0.4280086458,
-0.2440129071,
-0.2269655764,
0.0521221608,
0.0415803641,
0.0145144518,
-0.3158927858,
-0.1245135888,
-0.0170979928,
-0.4774370193,
-0.1473780423,
-0.2501299679,
-0.2097336352,
-0.2710487843,
0.0890581533,
-0.1102440134,
-0.0183557235,
0.1949643344,
-0.1701569557,
-0.1988347918,
-0.1481630206,
0.262370199,
0.0225490704,
0.065782249,
0.3584879935,
0.1551890224,
-0.1844778508,
-0.050864175,
-0.2028380185,
0.2677138746,
-0.7148475647,
-0.0182467978,
-0.0487284102,
0.3915019333,
0.0379258618,
0.1458503753,
0.0219049044,
0.061311312,
0.0346300229,
-0.1396507323,
-0.1802348793,
0.5466530919,
0.121721603,
0.0340172276,
0.2133862376,
0.2817499638,
0.0019707263,
-0.1729350537,
-0.276465565,
-0.0229307823,
0.0224911831,
0.2347930521,
-0.1319434941,
-0.1152291,
-0.1055536866,
0.0474413261,
0.1422710568,
0.1121633723,
-0.1685360074,
-0.1686881185,
0.1477324963,
0.1239163876,
-0.0797940046,
-0.209969148,
-0.2722865641,
0.0893239826,
-0.2098876834,
-0.0296440087,
0.0013571122,
0.1019868329,
-0.0807029828,
0.3909904957,
-0.0595238693,
0.154041186,
-0.0902808309,
0.206674993,
-0.2251120955,
-0.0735709965,
0.0194573086,
0.34486112,
-0.1089281589,
0.0014797869,
-0.470687896,
-0.0829740241,
-0.3386873603,
-0.1703828871,
0.2182347327,
-0.5811411142,
-0.3696430027,
-0.3731189072,
0.5394616127,
0.1633259952,
-0.1512720585,
0.0245335009,
0.1984898001,
0.1882714629,
-0.4216909409,
0.1682841629,
0.7164903283,
0.1814793795,
0.0476361625,
0.2280264348,
0.2170416415,
-0.2522491813,
0.0879420415,
0.3402585685,
0.1864989549,
-0.0145355547,
-0.2208542079,
0.7124547362,
0.1133423522,
0.0807120353,
0.3296816647,
0.1996255368,
0.3048658669,
0.428345114,
-0.358487606,
0.2729471922,
-0.0169424228,
0.0418727212,
0.3258670866,
0.1625333279,
-0.3650048971,
0.1024675295,
0.2793711722,
-0.0865777805,
0.0268081035,
0.2924811542,
0.1974696368,
-0.511480689,
-0.0588972978,
0.360525161,
-0.2115050256,
0.2953898013,
0.1333399564,
-0.1180144846,
-0.0177431274,
-0.1102624983,
-0.0951376334,
-0.015212955,
0.4596326351,
0.0484334417,
-0.1472239345,
-0.264824748,
0.6610988379,
0.351235956,
0.1475152522,
-0.0963633284,
0.0272198971,
0.4599165916,
-0.2927053571,
-0.0208555479,
0.5216975808,
0.5801737309,
0.2747909725,
-0.0065378081,
-0.2131661475,
-0.1625051498,
-0.1972869188,
0.1137370914,
0.0258190613,
-0.0778327286,
0.460067302,
0.2007566839,
0.120653674,
-0.1013595834,
0.1464933455,
0.0211714655,
0.0428215452,
-0.2806961536,
0.2508467138,
-0.1998258531,
-0.5479173064,
0.1478638202,
-0.0201579519,
-0.3164597154,
0.0273444951,
0.049356807,
0.2129115611,
0.067472741,
0.0866944119,
0.0720584914,
-0.0373494774,
0.3402502835,
0.3578195572,
0.1693226248,
-0.0318644345,
0.0858272985,
-0.4542056322,
0.1940766424,
-0.1598654091,
-0.1302824318,
0.4195323288,
0.1303030699,
-0.0601397604,
0.2200556844,
0.11441838,
0.0619329661,
-0.2224250138,
0.6082857847,
-0.3561330736,
0.1085867956,
0.2139243633,
0.0018689493,
-0.1952568293,
-0.1396270096,
0.3736509681,
-0.4588959813,
0.0634334683,
0.020489594,
-0.0250239763,
0.1106814966,
0.2262791097,
0.0990684405,
0.2121725678,
0.3203154802,
0.0721596256,
0.131781742,
-0.1162635311,
-0.4948109984,
0.0930110514,
0.3774951994,
0.0311114509,
0.5099112988,
0.1838465035,
0.1002006829,
-0.1863141656,
0.6576113701,
-0.2285728455,
-0.0499931648,
0.180944398,
0.2050630599,
-0.0087767858,
0.1007468253,
-0.2703790665,
-0.2359959036,
0.1015474945,
0.0480531529,
-0.3878353834,
-0.746871829,
0.4138067663,
0.0313715041,
-0.2252132744,
-0.138877809,
0.1884146482,
0.4680205584,
0.0675127059,
-0.5640655756,
-0.1153333858,
0.3598389328,
0.0043207523,
-0.1399704367,
0.2686576843,
0.1525655687,
0.018704908,
-0.0952705294,
0.1861491203,
-0.0905802995,
-0.3376171589,
0.0085410411,
-0.1026227325
] |
https://github.com/huggingface/datasets/issues/4152 | ArrayND error in pyarrow 5 | We need to bump it in `setup.py` as well as update some CI job to use pyarrow 6 instead of 5 in `.circleci/config.yaml` and `.github/workflows/benchmarks.yaml` | As found in https://github.com/huggingface/datasets/pull/3903, The ArrayND features fail on pyarrow 5:
```python
import pyarrow as pa
from datasets import Array2D
from datasets.table import cast_array_to_feature
arr = pa.array([[[0]]])
feature_type = Array2D(shape=(1, 1), dtype="int64")
cast_array_to_feature(arr, feature_type)
```
raises
```python
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-8-04610f9fa78c> in <module>
----> 1 cast_array_to_feature(pa.array([[[0]]]), Array2D(shape=(1, 1), dtype="int32"))
~/Desktop/hf/datasets/src/datasets/table.py in wrapper(array, *args, **kwargs)
1672 return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
1673 else:
-> 1674 return func(array, *args, **kwargs)
1675
1676 return wrapper
~/Desktop/hf/datasets/src/datasets/table.py in cast_array_to_feature(array, feature, allow_number_to_str)
1806 return array_cast(array, get_nested_type(feature), allow_number_to_str=allow_number_to_str)
1807 elif not isinstance(feature, (Sequence, dict, list, tuple)):
-> 1808 return array_cast(array, feature(), allow_number_to_str=allow_number_to_str)
1809 raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{feature}")
1810
~/Desktop/hf/datasets/src/datasets/table.py in wrapper(array, *args, **kwargs)
1672 return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
1673 else:
-> 1674 return func(array, *args, **kwargs)
1675
1676 return wrapper
~/Desktop/hf/datasets/src/datasets/table.py in array_cast(array, pa_type, allow_number_to_str)
1705 array = array.storage
1706 if isinstance(pa_type, pa.ExtensionType):
-> 1707 return pa_type.wrap_array(array)
1708 elif pa.types.is_struct(array.type):
1709 if pa.types.is_struct(pa_type) and (
AttributeError: 'Array2DExtensionType' object has no attribute 'wrap_array'
```
The thing is that `cast_array_to_feature` is called when writing an Arrow file, so creating an Arrow dataset using any ArrayND type currently fails.
`wrap_array` has been added in pyarrow 6, so we can either bump the required pyarrow version or fix this for pyarrow 5 | 25 | ArrayND error in pyarrow 5
As found in https://github.com/huggingface/datasets/pull/3903, The ArrayND features fail on pyarrow 5:
```python
import pyarrow as pa
from datasets import Array2D
from datasets.table import cast_array_to_feature
arr = pa.array([[[0]]])
feature_type = Array2D(shape=(1, 1), dtype="int64")
cast_array_to_feature(arr, feature_type)
```
raises
```python
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-8-04610f9fa78c> in <module>
----> 1 cast_array_to_feature(pa.array([[[0]]]), Array2D(shape=(1, 1), dtype="int32"))
~/Desktop/hf/datasets/src/datasets/table.py in wrapper(array, *args, **kwargs)
1672 return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
1673 else:
-> 1674 return func(array, *args, **kwargs)
1675
1676 return wrapper
~/Desktop/hf/datasets/src/datasets/table.py in cast_array_to_feature(array, feature, allow_number_to_str)
1806 return array_cast(array, get_nested_type(feature), allow_number_to_str=allow_number_to_str)
1807 elif not isinstance(feature, (Sequence, dict, list, tuple)):
-> 1808 return array_cast(array, feature(), allow_number_to_str=allow_number_to_str)
1809 raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{feature}")
1810
~/Desktop/hf/datasets/src/datasets/table.py in wrapper(array, *args, **kwargs)
1672 return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
1673 else:
-> 1674 return func(array, *args, **kwargs)
1675
1676 return wrapper
~/Desktop/hf/datasets/src/datasets/table.py in array_cast(array, pa_type, allow_number_to_str)
1705 array = array.storage
1706 if isinstance(pa_type, pa.ExtensionType):
-> 1707 return pa_type.wrap_array(array)
1708 elif pa.types.is_struct(array.type):
1709 if pa.types.is_struct(pa_type) and (
AttributeError: 'Array2DExtensionType' object has no attribute 'wrap_array'
```
The thing is that `cast_array_to_feature` is called when writing an Arrow file, so creating an Arrow dataset using any ArrayND type currently fails.
`wrap_array` has been added in pyarrow 6, so we can either bump the required pyarrow version or fix this for pyarrow 5
We need to bump it in `setup.py` as well as update some CI job to use pyarrow 6 instead of 5 in `.circleci/config.yaml` and `.github/workflows/benchmarks.yaml` | [
-0.2717887461,
0.0057994733,
-0.0946770236,
0.076236479,
0.1772200316,
-0.1354119927,
0.5197154284,
0.285346359,
-0.1506761312,
-0.1537640542,
-0.3803839087,
0.1065837815,
0.0012881052,
0.1034748331,
0.0800986141,
-0.1847531497,
-0.0333412327,
0.215312764,
-0.08204671,
0.1636620611,
-0.2497325838,
0.1367579997,
-0.3653621972,
0.3566609919,
-0.017395772,
0.1811756939,
0.1212958023,
-0.0364004858,
-0.0784664154,
-0.4917581975,
0.5164659023,
-0.2408556044,
0.021569876,
-0.0941426009,
-0.0001147525,
0.0457253568,
0.2521470189,
0.0827405751,
0.0017751605,
0.1841500401,
0.4386567175,
-0.0372871384,
0.177953124,
-0.3302882612,
0.0721013546,
-0.4665046036,
-0.0915136933,
0.6173187494,
0.3307853341,
0.101836741,
0.2171434909,
0.3780943751,
0.6151907444,
-0.0194194093,
0.3706323504,
0.4130524695,
-0.2798074782,
0.2551670372,
0.1670932621,
-0.2208791375,
0.2104579955,
-0.042786926,
-0.2557904422,
0.145392254,
0.2362824976,
0.1489411145,
0.2767728269,
-0.1570571214,
-0.0264836475,
-0.0221150946,
0.2115543485,
-0.2876383066,
-0.1934363097,
-0.090837568,
-0.0596275032,
-0.3843434751,
-0.0353487805,
0.1044261456,
-0.2276762426,
0.2333742827,
-0.0556492172,
0.2152263969,
-0.1535305232,
0.272859633,
-0.1901582181,
-0.0732872188,
0.0406608693,
0.0351042971,
-0.0374694541,
-0.3355244994,
0.0104171569,
0.109352231,
0.1252885014,
-0.0223307014,
-0.065936327,
-0.105397813,
-0.0044944817,
-0.5112823844,
0.2702336311,
-0.1116265729,
-0.1669169813,
-0.0591529012,
0.0126385875,
0.2440607846,
-0.1470865011,
-0.0967258364,
0.011402227,
-0.0181561243,
0.0947728381,
0.0066015976,
0.1575381756,
0.0785909817,
0.2705770433,
-0.1741548181,
0.2402765453,
-0.168132484,
0.6953446865,
-0.2625773549,
-0.3337614834,
-0.0657658875,
-0.1223010644,
-0.0992468894,
0.0665143356,
0.3537714183,
0.2728584111,
-0.0913421065,
-0.1202220917,
0.1806825101,
-0.2250391096,
-0.1263050139,
-0.0869961604,
0.1795650125,
-0.0195494257,
-0.0157771464,
0.2165933251,
0.2129367143,
0.2388064116,
0.0388251692,
0.002058696,
0.4412969351,
-0.2637690008,
-0.0711408108,
0.0957809389,
0.2807442248,
-0.1506768614,
0.0050216708,
0.0442491919,
0.1723088473,
-0.0880753919,
0.0858362988,
-0.1421572566,
-0.0997290239,
-0.2135459185,
0.1917854398,
-0.0330526866,
-0.0037231045,
-0.0720125437,
-0.109025456,
0.3362956941,
-0.5219536424,
0.1083509848,
-0.4567975998,
-0.1994602084,
-0.3214561641,
0.2787398994,
-0.0186792426,
-0.1094637364,
-0.0675942153,
0.2290104479,
-0.1169007197,
0.1602252573,
0.2420733869,
-0.1380012333,
-0.0738914162,
-0.1789235622,
0.3544146121,
0.3437272608,
0.1171525419,
-0.3391928077,
-0.0750424415,
0.1979973167,
-0.0337192118,
-0.0441422537,
0.1083943099,
0.0880745426,
-0.1343827844,
0.0921336114,
0.3776659667,
-0.0120015554,
-0.108315438,
-0.3249003291,
-0.1741480827,
0.377746135,
0.2052503377,
0.0064119548,
-0.0449240543,
0.2224486917,
0.0720417798,
-0.0232353825,
-0.3667888641,
0.1093389392,
-0.021257313,
0.3742628992,
-0.2663788497,
0.148768872,
-0.4628759325,
-0.4200430512,
0.1641432494,
-0.275996685,
-0.1430666596,
-0.3225880563,
0.045922108,
-0.1851161569,
0.1829953343,
-0.1332805008,
-0.1322417408,
0.1095230132,
-0.0981109515,
0.0091363629,
-0.0386704095,
-0.0963962153,
-0.0754866451,
-0.0634568632,
0.1706129611,
-0.3039974272,
0.6566851735,
-0.2551052272,
-0.6518369317,
-0.1243507415,
0.1718805283,
0.1140064225,
0.0559089929,
0.0075126281,
0.2563116252,
-0.0301630925,
-0.3432930112,
-0.5049981475,
0.1940206438,
0.0912523121,
-0.4416205585,
-0.0680422187,
0.1615923494,
0.0406903587,
-0.1457009315,
0.3625915945,
0.2576726377,
-0.1797470301,
0.1253577471,
0.1068137437,
0.1645486653,
0.0898301452,
0.1974120736,
0.3377683461,
0.0049739936,
0.1279383749,
-0.1978715062,
0.1731541157,
-0.0521865748,
-0.1700513512,
0.3713656962,
0.2392761111,
0.04783215,
0.1617303789,
0.1344881207,
0.0296217073,
-0.0314585455,
0.0409011021,
-0.4544716179,
0.308507055,
0.2466224581,
-0.112185739,
0.1939485222,
-0.2892342508,
-0.0518219918,
0.0334125236,
-0.0053183064,
0.1679913253,
0.1751550883,
0.2459362,
0.0674173385,
-0.2429204732,
-0.3855274916,
0.0990908071,
0.3407403231,
-0.3888358474,
-0.1104674861,
-0.1255930513,
-0.3685084283,
-0.0941414759,
-0.252060622,
-0.1995277554,
-0.1095074862,
-0.0279116817,
0.5324671865,
-0.12539424,
0.2560384572,
-0.1849799752,
-0.4749096632,
0.2023318112,
0.0109953992,
-0.0461333133,
0.0140109155,
0.0592379868,
0.0807208046,
0.2120074928,
0.2020459324,
0.0910530686,
0.0051978878,
-0.1661649048,
-0.2637523115,
-0.3594252765,
0.0705849081,
-0.0904180929,
0.0878942534,
0.2975557446,
0.190761134,
-0.4172439277,
-0.3369338512,
0.4029256105,
-0.0839425325,
-0.3999933302,
0.4370789826,
-0.0301860999,
-0.212950021,
-0.2333163619,
-0.2582144141,
-0.2015583515,
-0.2928407192,
0.1957238317,
-0.0790845305,
0.0810882226,
0.1198144183,
0.0491127484,
0.0788375139,
-0.0558186732,
-0.011556631,
0.0408845544,
0.5339930654,
0.3027316034,
-0.208339408,
-0.2443570942,
-0.271986872,
-0.1209445968,
0.011971374,
0.2026368678,
-0.0141310263,
-0.4818277657,
-0.3377820551,
0.6134945154,
-0.1829900295,
-0.1472907364,
0.335698992,
0.0206709187,
-0.0554590151,
0.0958968922,
-0.0049163639,
0.1266743094,
0.2165798992,
-0.0614048764,
0.0078052348,
0.1685136855,
-0.1275594831,
0.4383893907,
-0.1703718156,
-0.020686429,
0.4818211198,
-0.180161193,
0.0478314273,
-0.1554725766,
-0.3173235357,
-0.0519077443,
0.0198556464,
-0.0323158242,
-0.0665494204,
-0.197093159,
-0.2736836076,
-0.0232888199,
-0.3783119619,
-0.2130372673,
-0.0828129947,
-0.0388292894,
0.1966028959,
0.3160063922,
0.0117835971,
-0.0354381949,
0.1906215996,
-0.1473037452,
-0.0917142183,
-0.122438021,
0.1225687414,
-0.1241623387,
-0.5762776732,
-0.4867057502,
-0.1274279505,
0.3331121504,
0.3155410886,
0.3246952891,
-0.1591990888,
-0.041128315,
-0.0630407631,
-0.0263580699,
0.4614033699,
0.1515040845,
0.1436036676,
0.215007484,
0.063104026,
-0.5561504364,
-0.4562471509,
-0.1227976382,
-0.2171369046,
0.0733418018,
-0.0955422595,
-0.3264753222,
0.0543711185,
0.5049547553,
0.1481269002,
-0.0071470533,
-0.0074948939,
-0.2030958086,
-0.422526449,
-0.1657755673,
-0.0869644657,
0.2192377299,
0.2336184382,
0.0548507832,
0.102771841,
-0.1042403132,
0.0434531979,
-0.1677719504,
0.2373846322,
0.1143856719,
-0.2315847427,
0.2744170129,
-0.3416725695,
0.1588726491,
0.1925713122,
0.1988173425,
0.3738135695,
-0.2458138317,
-0.0572219454,
-0.0310931001,
0.1900525093,
-0.0989796519,
-0.2556058168,
0.0698071122,
-0.3041891754,
0.0340688974,
0.4200907946,
-0.1545390785,
0.4300568402,
-0.2690984607,
0.0663627163,
-0.0469566695,
0.4011411667,
-0.0956474617,
0.1474831998,
-0.1665927619,
0.2590810359,
0.0039370805,
0.198609516,
0.0381230079,
0.4934007823,
0.2660191357,
-0.0344509259,
0.777641952,
-0.4247775376,
0.1135608628,
0.3423930705,
0.0779046789,
-0.3839231133,
-0.2817509174,
-0.0441925712,
-0.1226972193,
-0.0848176777,
-0.1791659445,
-0.218070969,
0.2563406527,
0.2368147373,
0.2044909447,
0.0922656283,
-0.1490717381,
0.2708689868,
0.0031321924,
-0.3886563778,
0.0579757728,
-0.2212210149,
-0.0118840607,
-0.0537036397,
-0.2585356236,
0.097727336,
-0.2184647024,
-0.1399462223,
0.1776108891,
-0.1215130314,
0.4267792702,
0.3741715848,
-0.1935766637,
-0.0903020054,
0.0826222897,
0.0616720244,
-0.3340367973,
-0.1578106135,
-0.0494891815,
-0.0777643025,
0.0946920291,
0.044673644,
0.01246606,
0.4280086458,
-0.2440129071,
-0.2269655764,
0.0521221608,
0.0415803641,
0.0145144518,
-0.3158927858,
-0.1245135888,
-0.0170979928,
-0.4774370193,
-0.1473780423,
-0.2501299679,
-0.2097336352,
-0.2710487843,
0.0890581533,
-0.1102440134,
-0.0183557235,
0.1949643344,
-0.1701569557,
-0.1988347918,
-0.1481630206,
0.262370199,
0.0225490704,
0.065782249,
0.3584879935,
0.1551890224,
-0.1844778508,
-0.050864175,
-0.2028380185,
0.2677138746,
-0.7148475647,
-0.0182467978,
-0.0487284102,
0.3915019333,
0.0379258618,
0.1458503753,
0.0219049044,
0.061311312,
0.0346300229,
-0.1396507323,
-0.1802348793,
0.5466530919,
0.121721603,
0.0340172276,
0.2133862376,
0.2817499638,
0.0019707263,
-0.1729350537,
-0.276465565,
-0.0229307823,
0.0224911831,
0.2347930521,
-0.1319434941,
-0.1152291,
-0.1055536866,
0.0474413261,
0.1422710568,
0.1121633723,
-0.1685360074,
-0.1686881185,
0.1477324963,
0.1239163876,
-0.0797940046,
-0.209969148,
-0.2722865641,
0.0893239826,
-0.2098876834,
-0.0296440087,
0.0013571122,
0.1019868329,
-0.0807029828,
0.3909904957,
-0.0595238693,
0.154041186,
-0.0902808309,
0.206674993,
-0.2251120955,
-0.0735709965,
0.0194573086,
0.34486112,
-0.1089281589,
0.0014797869,
-0.470687896,
-0.0829740241,
-0.3386873603,
-0.1703828871,
0.2182347327,
-0.5811411142,
-0.3696430027,
-0.3731189072,
0.5394616127,
0.1633259952,
-0.1512720585,
0.0245335009,
0.1984898001,
0.1882714629,
-0.4216909409,
0.1682841629,
0.7164903283,
0.1814793795,
0.0476361625,
0.2280264348,
0.2170416415,
-0.2522491813,
0.0879420415,
0.3402585685,
0.1864989549,
-0.0145355547,
-0.2208542079,
0.7124547362,
0.1133423522,
0.0807120353,
0.3296816647,
0.1996255368,
0.3048658669,
0.428345114,
-0.358487606,
0.2729471922,
-0.0169424228,
0.0418727212,
0.3258670866,
0.1625333279,
-0.3650048971,
0.1024675295,
0.2793711722,
-0.0865777805,
0.0268081035,
0.2924811542,
0.1974696368,
-0.511480689,
-0.0588972978,
0.360525161,
-0.2115050256,
0.2953898013,
0.1333399564,
-0.1180144846,
-0.0177431274,
-0.1102624983,
-0.0951376334,
-0.015212955,
0.4596326351,
0.0484334417,
-0.1472239345,
-0.264824748,
0.6610988379,
0.351235956,
0.1475152522,
-0.0963633284,
0.0272198971,
0.4599165916,
-0.2927053571,
-0.0208555479,
0.5216975808,
0.5801737309,
0.2747909725,
-0.0065378081,
-0.2131661475,
-0.1625051498,
-0.1972869188,
0.1137370914,
0.0258190613,
-0.0778327286,
0.460067302,
0.2007566839,
0.120653674,
-0.1013595834,
0.1464933455,
0.0211714655,
0.0428215452,
-0.2806961536,
0.2508467138,
-0.1998258531,
-0.5479173064,
0.1478638202,
-0.0201579519,
-0.3164597154,
0.0273444951,
0.049356807,
0.2129115611,
0.067472741,
0.0866944119,
0.0720584914,
-0.0373494774,
0.3402502835,
0.3578195572,
0.1693226248,
-0.0318644345,
0.0858272985,
-0.4542056322,
0.1940766424,
-0.1598654091,
-0.1302824318,
0.4195323288,
0.1303030699,
-0.0601397604,
0.2200556844,
0.11441838,
0.0619329661,
-0.2224250138,
0.6082857847,
-0.3561330736,
0.1085867956,
0.2139243633,
0.0018689493,
-0.1952568293,
-0.1396270096,
0.3736509681,
-0.4588959813,
0.0634334683,
0.020489594,
-0.0250239763,
0.1106814966,
0.2262791097,
0.0990684405,
0.2121725678,
0.3203154802,
0.0721596256,
0.131781742,
-0.1162635311,
-0.4948109984,
0.0930110514,
0.3774951994,
0.0311114509,
0.5099112988,
0.1838465035,
0.1002006829,
-0.1863141656,
0.6576113701,
-0.2285728455,
-0.0499931648,
0.180944398,
0.2050630599,
-0.0087767858,
0.1007468253,
-0.2703790665,
-0.2359959036,
0.1015474945,
0.0480531529,
-0.3878353834,
-0.746871829,
0.4138067663,
0.0313715041,
-0.2252132744,
-0.138877809,
0.1884146482,
0.4680205584,
0.0675127059,
-0.5640655756,
-0.1153333858,
0.3598389328,
0.0043207523,
-0.1399704367,
0.2686576843,
0.1525655687,
0.018704908,
-0.0952705294,
0.1861491203,
-0.0905802995,
-0.3376171589,
0.0085410411,
-0.1026227325
] |
https://github.com/huggingface/datasets/issues/4149 | load_dataset for winoground returning decoding error | I thought I had fixed it with this after some helpful hints from @severo
```python
import datasets
token = 'hf_XXXXX'
dataset = datasets.load_dataset(
'facebook/winoground',
name='facebook--winoground',
split='train',
streaming=True,
use_auth_token=token,
)
```
but I found out that wasn't the case
```python
[x for x in dataset]
...
ClientResponseError: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/facebook/winoground/resolve/a86a60456fbbd242e9a744199071a6bd3e7fd9de/examples.jsonl')
``` | ## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
| 50 | load_dataset for winoground returning decoding error
## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
I thought I had fixed it with this after some helpful hints from @severo
```python
import datasets
token = 'hf_XXXXX'
dataset = datasets.load_dataset(
'facebook/winoground',
name='facebook--winoground',
split='train',
streaming=True,
use_auth_token=token,
)
```
but I found out that wasn't the case
```python
[x for x in dataset]
...
ClientResponseError: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/facebook/winoground/resolve/a86a60456fbbd242e9a744199071a6bd3e7fd9de/examples.jsonl')
``` | [
-0.1866350323,
0.3816437423,
-0.0002151771,
0.4397816956,
0.2120900154,
0.1175744459,
0.0252054855,
0.1846736521,
0.0800222754,
-0.1368634403,
-0.1777786762,
0.0833095759,
0.0109347403,
0.0449507199,
-0.2806118429,
-0.2287354767,
-0.0568579063,
-0.0361913219,
0.0943902135,
-0.0962768197,
-0.6502005458,
0.4393961728,
-0.2659928203,
0.3251313567,
0.0718700513,
-0.1280073375,
-0.2038558424,
0.4244276881,
-0.2437401712,
-0.4551992416,
0.081403017,
-0.1902178824,
0.1692913771,
0.2197065502,
-0.0001198312,
0.1218881682,
0.4944891632,
0.0348096527,
-0.3272898793,
-0.2021761239,
-0.4330078363,
-0.0092645288,
0.0870781839,
-0.1436471939,
0.0807449147,
-0.6088299155,
-0.1147286668,
-0.0512156673,
0.655724287,
0.4015835822,
0.1428909153,
-0.0290070325,
0.0268664435,
0.1402500421,
0.1853507608,
0.0857897922,
-0.0909137204,
0.2903932035,
0.1863135397,
-0.371334374,
-0.1648489386,
0.248995021,
-0.008229983,
0.2453747392,
0.0232779179,
0.2014267147,
0.0501030609,
-0.0893855244,
0.0305846203,
0.2426168323,
0.2190140784,
0.0032317028,
-0.3280739784,
-0.288374424,
-0.0788065121,
-0.138647899,
0.3352195919,
0.2933968902,
-0.2523528636,
0.2960198224,
-0.2132369876,
-0.0541490875,
-0.1078112796,
0.304715395,
-0.0155781722,
0.0601173379,
-0.0999124572,
0.242251128,
0.1177485064,
-0.0016651354,
-0.0192423929,
-0.3969207704,
-0.1754958332,
-0.0836559832,
-0.1642664969,
0.0518702269,
0.1015058607,
0.2113348544,
0.0896992385,
0.1292407215,
-0.1634976417,
0.1579477787,
-0.0633963048,
0.1237574145,
0.4871356487,
-0.0672670826,
-0.0353507735,
0.3062380254,
0.0462120362,
-0.0696401,
0.0905089155,
0.0601204745,
-0.2188421935,
-0.2658319175,
-0.1459763795,
0.0245482046,
0.2922028899,
-0.0578252375,
-0.4480500519,
0.194895044,
-0.1858043969,
-0.1787950248,
-0.0729414672,
0.2858642042,
-0.0852143466,
-0.0187171884,
0.3159789741,
0.3502246141,
-0.2379291356,
-0.1582434177,
-0.0179345962,
-0.0238097571,
-0.1579126716,
-0.0423047394,
0.1803118587,
0.1152965203,
0.1498202533,
-0.0118053844,
0.0130214449,
-0.2015031576,
0.3386761844,
-0.2770757377,
0.040041808,
0.0228159223,
0.1537956148,
0.2217425108,
0.293345511,
-0.3227155805,
-0.1121332794,
0.1919394881,
-0.4252031744,
-0.1673396826,
-0.1239400357,
0.1085193232,
-0.191002503,
-0.0395028293,
-0.418420881,
0.2583845258,
-0.1628275663,
0.1221970171,
0.0899063647,
-0.2024017423,
-0.2053606659,
-0.1559070051,
-0.0184547994,
0.4925528765,
-0.293797195,
-0.1551627517,
0.0094838329,
-0.4077320397,
0.2635619044,
0.3806162477,
-0.162386179,
0.3524317741,
-0.2984900475,
0.2143801153,
0.3317295611,
-0.5110266209,
-0.2720244527,
0.6287518144,
0.0108364476,
0.3247801661,
-0.2500393093,
-0.330304116,
0.2926410139,
-0.0095388517,
0.4710422456,
0.5840806365,
-0.0610024557,
0.0973239467,
-0.077334173,
-0.4807218313,
0.3019636869,
0.4109523892,
-0.0022044072,
0.0334702954,
0.1762740314,
-0.0188531671,
0.2200164497,
-0.0466201901,
0.1678164005,
0.3642239571,
-0.1274958998,
0.0723098218,
0.2101636231,
0.1216134727,
-0.2524523139,
0.0845073685,
-0.0305780079,
-0.1661647558,
-0.1017013341,
-0.0336790308,
-0.2528522313,
-0.0447927751,
-0.46900177,
0.0247386601,
0.1108229905,
0.0283777993,
-0.1594007313,
-0.1201711446,
0.0516031533,
0.27830863,
0.03589499,
0.1106713042,
-0.0583324358,
0.3709382713,
-0.0510651544,
-0.1081675217,
0.257784605,
0.1967159957,
0.0565164387,
-0.1951216608,
-0.1285849512,
0.3041705787,
0.2497038394,
0.2616102695,
-0.1456338167,
-0.1403813064,
0.1297693849,
-0.4586940408,
-0.0896444395,
0.4309305549,
0.1927977055,
-0.1908615977,
-0.068991825,
0.2968378663,
-0.1646571755,
0.3404626846,
0.0581003614,
0.1622577161,
0.2490879446,
-0.1457846165,
-0.2090301663,
-0.2719111443,
0.4444168508,
0.0185567159,
-0.0338355452,
-0.0778679699,
-0.0652619451,
0.0059608356,
0.9233273864,
-0.1860152185,
0.1550828218,
0.3125481308,
-0.1018834114,
-0.0300554689,
0.0338882506,
0.0091056963,
0.524723947,
0.0189479571,
0.0802056268,
0.4139404595,
0.0560121909,
0.0461981483,
0.1814299375,
0.2345638722,
0.2024870068,
0.2256599814,
-0.1341653913,
-0.040765442,
-0.3075932264,
-0.3679964244,
0.1346424222,
0.1387951374,
-0.4937200844,
0.2256506532,
-0.461150974,
-0.022028219,
-0.1406606436,
-0.4042495787,
-0.0584545434,
-0.3211015761,
0.0403069854,
0.0469965115,
-0.1497903615,
0.0916268378,
-0.3398471475,
0.082281962,
-0.0216801167,
-0.1857351065,
-0.108455725,
-0.1310913116,
-0.2666296959,
0.0070297909,
0.3140654862,
-0.0728212968,
0.2149759084,
-0.2981951237,
0.0279759467,
0.0392101705,
-0.0616474003,
0.3070314229,
-0.1579625458,
0.208439067,
0.161265403,
0.0507117324,
-0.2296816409,
-0.3069752455,
0.2184950113,
0.1699924618,
-0.2268129289,
0.2500760853,
0.0500065647,
-0.1125413775,
-0.102417849,
-0.1422100067,
-0.2597033083,
-0.2490176708,
0.3231697381,
0.0817606524,
0.0994245932,
0.1296583116,
-0.1135120392,
0.3421397507,
0.0973074809,
-0.1145236418,
-0.4607699513,
-0.0153145213,
0.2574807405,
-0.3794060051,
-0.2506862879,
0.1186396405,
-0.0462022237,
-0.1134563461,
-0.0258647036,
-0.5742095113,
-0.0142516224,
-0.1132351756,
0.1553026438,
-0.3547058105,
-0.0501350835,
0.1064793766,
0.0460093915,
0.0937209353,
-0.2193855494,
-0.1211289689,
0.0325309262,
-0.0728739426,
0.4134821892,
-0.0251230802,
0.6095141768,
-0.1929671317,
0.2468160093,
0.5080026388,
0.3667128384,
0.2762945592,
-0.1935124695,
0.1775277108,
-0.0378326289,
-0.0923716128,
0.2582373321,
-0.187841028,
0.2089768797,
0.2728345394,
0.1192179024,
-0.2497426271,
-0.0172737557,
-0.0374045931,
-0.5823125839,
-0.4338467121,
0.1530111581,
-0.0863603204,
-0.0778122023,
0.0507846922,
0.2859056592,
-0.0416478962,
-0.0772460476,
-0.1338884085,
0.3123598099,
0.0025693465,
0.1401858777,
-0.1990314573,
-0.1729299426,
-0.3171238601,
0.1245038658,
-0.0864001587,
0.4834387004,
-0.1708198786,
0.3166979849,
0.1015280038,
-0.2330021411,
0.7412669063,
-0.2756133974,
0.1618671864,
0.0790739805,
0.3046824038,
-0.4524528682,
-0.0378888063,
-0.2837693095,
0.3549791574,
0.1275291145,
0.2411563993,
-0.2644320726,
-0.1182980761,
0.1919902712,
0.1910147667,
-0.2315646261,
-0.1551598608,
-0.325976491,
-0.8166644573,
-0.3782943487,
-0.1946810931,
0.3285314739,
0.1574901193,
-0.0080652628,
-0.0822429955,
0.0185045153,
0.0927917808,
0.1833205223,
-0.0020389741,
0.1575545222,
0.1465193182,
0.0572725274,
0.1297603548,
0.1868716627,
0.0262075681,
0.8269633055,
0.3106043637,
-0.5212931633,
0.2427426875,
-0.1760543436,
-0.022744406,
0.2260769755,
-0.1299825907,
-0.079911761,
0.0911532491,
0.2818122804,
-0.4481184185,
0.0332680531,
0.4080580771,
-0.0066945087,
-0.3659456968,
-0.1824551374,
0.4902800918,
-0.1122830883,
-0.0542546958,
0.3957289457,
0.5383885503,
-0.3827526867,
0.3704436421,
-0.0472683944,
0.8026754856,
0.2136369497,
0.0076136542,
0.5026301742,
-0.5735384822,
0.2489011437,
-0.0673595592,
-0.0734870732,
-0.0983864516,
0.0865763053,
-0.1573195159,
-0.0334815867,
0.2059183121,
0.358895123,
-0.2488151938,
0.0226923712,
0.2268870026,
-0.2379538864,
0.1762864739,
0.2385283262,
-0.3231636882,
-0.1989764869,
-0.266872555,
0.079397209,
-0.1811458021,
0.1929061711,
-0.087774314,
-0.0886615515,
0.030982852,
-0.2872934639,
-0.4625533819,
0.3222780526,
-0.2287329882,
0.2370306104,
0.0856112987,
0.0705682635,
0.2744886875,
-0.1262204349,
0.2743162513,
-0.2135298997,
-0.1729749888,
0.2569274604,
-0.2432442755,
0.1208408177,
0.0753554925,
-0.162928611,
0.1816312969,
-0.2073288411,
-0.5375798345,
-0.0501902625,
-0.1583831459,
-0.4597317278,
-0.1058520824,
0.1566949785,
-0.3507362902,
-0.1423188299,
-0.1870340258,
-0.0200041737,
0.0551587455,
0.0641499013,
0.0325317495,
0.0676743612,
0.0367955789,
0.4690811038,
-0.0752126798,
-0.3788243234,
-0.0318953805,
0.1820544004,
-0.229892388,
-0.036376819,
0.6238436699,
0.2674331069,
-0.1762402207,
-0.1396307349,
0.2404734641,
0.3817258775,
-0.0798503011,
-0.2453042269,
-0.1275421679,
0.2880230546,
-0.0614801198,
0.027527282,
0.1150131226,
-0.0543770492,
0.1168115437,
-0.6627496481,
-0.1394592673,
0.346442908,
0.0221115816,
-0.2416149378,
0.0259364583,
0.0971985161,
0.0347383171,
-0.2118203789,
-0.18992652,
0.1925812662,
-0.0452363938,
0.1018749997,
-0.0879559815,
-0.0888424888,
0.3293844759,
-0.0378108434,
0.0144337807,
0.0613638014,
0.1151461005,
-0.114062421,
-0.316432178,
0.1970477104,
0.0725117922,
-0.4723587334,
-0.0078824926,
-0.1541277766,
-0.0637460053,
-0.0189466607,
0.1375550181,
0.2217822224,
-0.0430438146,
0.2481678128,
-0.4047923088,
0.0613262244,
0.0285780989,
-0.1320007741,
0.0297458544,
0.832873404,
-0.0440971591,
0.2187922001,
0.2867732346,
0.0409653075,
-0.223556757,
0.0302187447,
-0.0717666745,
0.1702478081,
0.397374481,
-0.2796153128,
0.4103116393,
-0.0677054375,
0.167172879,
0.5154780149,
-0.3857298195,
0.0094349645,
0.2452152818,
0.0928043798,
-0.0724211782,
-0.0476936027,
0.4049891233,
-0.1020432636,
-0.0842301995,
0.1916326731,
-0.3814827502,
0.0759212971,
-0.2584766746,
-0.1525020748,
0.3138320148,
0.2935934961,
0.1102359518,
0.365067184,
-0.2722982764,
0.1871520877,
-0.0303880218,
0.1145798713,
0.3168928623,
0.450931251,
-0.1138791591,
0.0784605369,
-0.3261548281,
0.3612879813,
-0.0509545617,
-0.4903669059,
-0.0606086068,
0.2124315947,
-0.0717370957,
0.4705011547,
0.0511784032,
-0.0627942681,
-0.4431337714,
0.043376334,
-0.3669300079,
0.0539995171,
0.1315045953,
-0.2230794728,
-0.2180446684,
-0.0242041815,
-0.3730876148,
0.1064561903,
-0.0490605794,
-0.382003516,
-0.0379238054,
0.2490318716,
-0.1305324584,
-0.3429677784,
0.1603454798,
0.1043208018,
0.1030728966,
-0.392741859,
0.1975452155,
0.2589795589,
0.2422739565,
0.1948425919,
0.0926817432,
0.3498042226,
0.2201948762,
-0.4257212579,
-0.0500687659,
-0.105309628,
-0.064621985,
-0.1460928768,
0.4472827911,
0.1749531627,
-0.081881173,
0.4011391699,
0.1168095395,
-0.1012336463,
0.0976401791,
0.2883227766,
-0.1410844773,
-0.1788493693,
0.2855690122,
-0.3534194231,
0.2045450509,
-0.1655643284,
-0.220312953,
-0.2555755079,
-0.2192953825,
0.2338056862,
-0.031259153,
0.1294746101,
-0.1532984376,
0.0140225124,
0.0119492766,
0.3824175,
0.3050079942,
0.2788800895,
-0.1241928488,
-0.1840639114,
-0.3153487146,
0.0253982302,
-0.2847113907,
-0.2506228685,
0.1554742903,
0.0708771572,
-0.1746007204,
0.3591209054,
0.0498731583,
0.4428434372,
0.1114143282,
0.1863829345,
-0.1461455077,
-0.3172510564,
0.4438598454,
0.414404273,
-0.1750415713,
-0.4612671435,
0.225105837,
0.2361631542,
-0.1488851458,
-0.2414572835,
-0.1568927765,
-0.1976628006,
-0.2074342817,
0.2476858497,
0.4718891382,
0.2960594296,
-0.1901386082,
-0.0413574502,
-0.2893474996,
-0.3693339825,
-0.0213392302,
0.5253269672,
-0.1727517992,
0.2607081831,
-0.0730917901,
0.0636251196,
-0.2339999974,
-0.0550145954,
-0.2188571393,
-0.0434653088,
-0.2975839078,
0.3721769154,
-0.1881470084,
0.2759253383,
-0.0539895333,
0.4072673023,
0.004049683,
0.4098053873,
-0.079503268,
-0.2372464836,
0.2398970127,
-0.3824099004,
-0.2967884243,
0.3267814517,
0.2042010427,
0.0205795784,
-0.2468756884,
-0.3127251267,
0.0408110246,
0.3302119076,
-0.0210479498,
-0.2623265684,
0.0157846119,
0.0136477696,
-0.0454829298,
0.0051556979,
0.5762954354,
0.0852109641,
-0.3399920166,
0.4717288613,
-0.0604917631
] |
https://github.com/huggingface/datasets/issues/4149 | load_dataset for winoground returning decoding error | Hi ! This dataset structure (image + labels in a JSON file) is not supported yet, though we're adding support for this in in #4069
The following structure will be supported soon:
```
metadata.json
images/
image0.png
image1.png
...
```
Where `metadata.json` is a JSON Lines file with labels or other metadata, and each line must have a "file_name" field with the name of the image file.
For the moment are only supported:
- JSON files only
- image files only
Since this dataset is a mix of the two, at the moment it fails trying to read the images as JSON.
Therefore to be able to load this dataset we need to wait for the new structure to be supported (very soon ^^), or add a dataset script in the repository that reads both the JSON and the images cc @TristanThrush
| ## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
| 141 | load_dataset for winoground returning decoding error
## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
Hi ! This dataset structure (image + labels in a JSON file) is not supported yet, though we're adding support for this in in #4069
The following structure will be supported soon:
```
metadata.json
images/
image0.png
image1.png
...
```
Where `metadata.json` is a JSON Lines file with labels or other metadata, and each line must have a "file_name" field with the name of the image file.
For the moment are only supported:
- JSON files only
- image files only
Since this dataset is a mix of the two, at the moment it fails trying to read the images as JSON.
Therefore to be able to load this dataset we need to wait for the new structure to be supported (very soon ^^), or add a dataset script in the repository that reads both the JSON and the images cc @TristanThrush
| [
-0.1866350323,
0.3816437423,
-0.0002151771,
0.4397816956,
0.2120900154,
0.1175744459,
0.0252054855,
0.1846736521,
0.0800222754,
-0.1368634403,
-0.1777786762,
0.0833095759,
0.0109347403,
0.0449507199,
-0.2806118429,
-0.2287354767,
-0.0568579063,
-0.0361913219,
0.0943902135,
-0.0962768197,
-0.6502005458,
0.4393961728,
-0.2659928203,
0.3251313567,
0.0718700513,
-0.1280073375,
-0.2038558424,
0.4244276881,
-0.2437401712,
-0.4551992416,
0.081403017,
-0.1902178824,
0.1692913771,
0.2197065502,
-0.0001198312,
0.1218881682,
0.4944891632,
0.0348096527,
-0.3272898793,
-0.2021761239,
-0.4330078363,
-0.0092645288,
0.0870781839,
-0.1436471939,
0.0807449147,
-0.6088299155,
-0.1147286668,
-0.0512156673,
0.655724287,
0.4015835822,
0.1428909153,
-0.0290070325,
0.0268664435,
0.1402500421,
0.1853507608,
0.0857897922,
-0.0909137204,
0.2903932035,
0.1863135397,
-0.371334374,
-0.1648489386,
0.248995021,
-0.008229983,
0.2453747392,
0.0232779179,
0.2014267147,
0.0501030609,
-0.0893855244,
0.0305846203,
0.2426168323,
0.2190140784,
0.0032317028,
-0.3280739784,
-0.288374424,
-0.0788065121,
-0.138647899,
0.3352195919,
0.2933968902,
-0.2523528636,
0.2960198224,
-0.2132369876,
-0.0541490875,
-0.1078112796,
0.304715395,
-0.0155781722,
0.0601173379,
-0.0999124572,
0.242251128,
0.1177485064,
-0.0016651354,
-0.0192423929,
-0.3969207704,
-0.1754958332,
-0.0836559832,
-0.1642664969,
0.0518702269,
0.1015058607,
0.2113348544,
0.0896992385,
0.1292407215,
-0.1634976417,
0.1579477787,
-0.0633963048,
0.1237574145,
0.4871356487,
-0.0672670826,
-0.0353507735,
0.3062380254,
0.0462120362,
-0.0696401,
0.0905089155,
0.0601204745,
-0.2188421935,
-0.2658319175,
-0.1459763795,
0.0245482046,
0.2922028899,
-0.0578252375,
-0.4480500519,
0.194895044,
-0.1858043969,
-0.1787950248,
-0.0729414672,
0.2858642042,
-0.0852143466,
-0.0187171884,
0.3159789741,
0.3502246141,
-0.2379291356,
-0.1582434177,
-0.0179345962,
-0.0238097571,
-0.1579126716,
-0.0423047394,
0.1803118587,
0.1152965203,
0.1498202533,
-0.0118053844,
0.0130214449,
-0.2015031576,
0.3386761844,
-0.2770757377,
0.040041808,
0.0228159223,
0.1537956148,
0.2217425108,
0.293345511,
-0.3227155805,
-0.1121332794,
0.1919394881,
-0.4252031744,
-0.1673396826,
-0.1239400357,
0.1085193232,
-0.191002503,
-0.0395028293,
-0.418420881,
0.2583845258,
-0.1628275663,
0.1221970171,
0.0899063647,
-0.2024017423,
-0.2053606659,
-0.1559070051,
-0.0184547994,
0.4925528765,
-0.293797195,
-0.1551627517,
0.0094838329,
-0.4077320397,
0.2635619044,
0.3806162477,
-0.162386179,
0.3524317741,
-0.2984900475,
0.2143801153,
0.3317295611,
-0.5110266209,
-0.2720244527,
0.6287518144,
0.0108364476,
0.3247801661,
-0.2500393093,
-0.330304116,
0.2926410139,
-0.0095388517,
0.4710422456,
0.5840806365,
-0.0610024557,
0.0973239467,
-0.077334173,
-0.4807218313,
0.3019636869,
0.4109523892,
-0.0022044072,
0.0334702954,
0.1762740314,
-0.0188531671,
0.2200164497,
-0.0466201901,
0.1678164005,
0.3642239571,
-0.1274958998,
0.0723098218,
0.2101636231,
0.1216134727,
-0.2524523139,
0.0845073685,
-0.0305780079,
-0.1661647558,
-0.1017013341,
-0.0336790308,
-0.2528522313,
-0.0447927751,
-0.46900177,
0.0247386601,
0.1108229905,
0.0283777993,
-0.1594007313,
-0.1201711446,
0.0516031533,
0.27830863,
0.03589499,
0.1106713042,
-0.0583324358,
0.3709382713,
-0.0510651544,
-0.1081675217,
0.257784605,
0.1967159957,
0.0565164387,
-0.1951216608,
-0.1285849512,
0.3041705787,
0.2497038394,
0.2616102695,
-0.1456338167,
-0.1403813064,
0.1297693849,
-0.4586940408,
-0.0896444395,
0.4309305549,
0.1927977055,
-0.1908615977,
-0.068991825,
0.2968378663,
-0.1646571755,
0.3404626846,
0.0581003614,
0.1622577161,
0.2490879446,
-0.1457846165,
-0.2090301663,
-0.2719111443,
0.4444168508,
0.0185567159,
-0.0338355452,
-0.0778679699,
-0.0652619451,
0.0059608356,
0.9233273864,
-0.1860152185,
0.1550828218,
0.3125481308,
-0.1018834114,
-0.0300554689,
0.0338882506,
0.0091056963,
0.524723947,
0.0189479571,
0.0802056268,
0.4139404595,
0.0560121909,
0.0461981483,
0.1814299375,
0.2345638722,
0.2024870068,
0.2256599814,
-0.1341653913,
-0.040765442,
-0.3075932264,
-0.3679964244,
0.1346424222,
0.1387951374,
-0.4937200844,
0.2256506532,
-0.461150974,
-0.022028219,
-0.1406606436,
-0.4042495787,
-0.0584545434,
-0.3211015761,
0.0403069854,
0.0469965115,
-0.1497903615,
0.0916268378,
-0.3398471475,
0.082281962,
-0.0216801167,
-0.1857351065,
-0.108455725,
-0.1310913116,
-0.2666296959,
0.0070297909,
0.3140654862,
-0.0728212968,
0.2149759084,
-0.2981951237,
0.0279759467,
0.0392101705,
-0.0616474003,
0.3070314229,
-0.1579625458,
0.208439067,
0.161265403,
0.0507117324,
-0.2296816409,
-0.3069752455,
0.2184950113,
0.1699924618,
-0.2268129289,
0.2500760853,
0.0500065647,
-0.1125413775,
-0.102417849,
-0.1422100067,
-0.2597033083,
-0.2490176708,
0.3231697381,
0.0817606524,
0.0994245932,
0.1296583116,
-0.1135120392,
0.3421397507,
0.0973074809,
-0.1145236418,
-0.4607699513,
-0.0153145213,
0.2574807405,
-0.3794060051,
-0.2506862879,
0.1186396405,
-0.0462022237,
-0.1134563461,
-0.0258647036,
-0.5742095113,
-0.0142516224,
-0.1132351756,
0.1553026438,
-0.3547058105,
-0.0501350835,
0.1064793766,
0.0460093915,
0.0937209353,
-0.2193855494,
-0.1211289689,
0.0325309262,
-0.0728739426,
0.4134821892,
-0.0251230802,
0.6095141768,
-0.1929671317,
0.2468160093,
0.5080026388,
0.3667128384,
0.2762945592,
-0.1935124695,
0.1775277108,
-0.0378326289,
-0.0923716128,
0.2582373321,
-0.187841028,
0.2089768797,
0.2728345394,
0.1192179024,
-0.2497426271,
-0.0172737557,
-0.0374045931,
-0.5823125839,
-0.4338467121,
0.1530111581,
-0.0863603204,
-0.0778122023,
0.0507846922,
0.2859056592,
-0.0416478962,
-0.0772460476,
-0.1338884085,
0.3123598099,
0.0025693465,
0.1401858777,
-0.1990314573,
-0.1729299426,
-0.3171238601,
0.1245038658,
-0.0864001587,
0.4834387004,
-0.1708198786,
0.3166979849,
0.1015280038,
-0.2330021411,
0.7412669063,
-0.2756133974,
0.1618671864,
0.0790739805,
0.3046824038,
-0.4524528682,
-0.0378888063,
-0.2837693095,
0.3549791574,
0.1275291145,
0.2411563993,
-0.2644320726,
-0.1182980761,
0.1919902712,
0.1910147667,
-0.2315646261,
-0.1551598608,
-0.325976491,
-0.8166644573,
-0.3782943487,
-0.1946810931,
0.3285314739,
0.1574901193,
-0.0080652628,
-0.0822429955,
0.0185045153,
0.0927917808,
0.1833205223,
-0.0020389741,
0.1575545222,
0.1465193182,
0.0572725274,
0.1297603548,
0.1868716627,
0.0262075681,
0.8269633055,
0.3106043637,
-0.5212931633,
0.2427426875,
-0.1760543436,
-0.022744406,
0.2260769755,
-0.1299825907,
-0.079911761,
0.0911532491,
0.2818122804,
-0.4481184185,
0.0332680531,
0.4080580771,
-0.0066945087,
-0.3659456968,
-0.1824551374,
0.4902800918,
-0.1122830883,
-0.0542546958,
0.3957289457,
0.5383885503,
-0.3827526867,
0.3704436421,
-0.0472683944,
0.8026754856,
0.2136369497,
0.0076136542,
0.5026301742,
-0.5735384822,
0.2489011437,
-0.0673595592,
-0.0734870732,
-0.0983864516,
0.0865763053,
-0.1573195159,
-0.0334815867,
0.2059183121,
0.358895123,
-0.2488151938,
0.0226923712,
0.2268870026,
-0.2379538864,
0.1762864739,
0.2385283262,
-0.3231636882,
-0.1989764869,
-0.266872555,
0.079397209,
-0.1811458021,
0.1929061711,
-0.087774314,
-0.0886615515,
0.030982852,
-0.2872934639,
-0.4625533819,
0.3222780526,
-0.2287329882,
0.2370306104,
0.0856112987,
0.0705682635,
0.2744886875,
-0.1262204349,
0.2743162513,
-0.2135298997,
-0.1729749888,
0.2569274604,
-0.2432442755,
0.1208408177,
0.0753554925,
-0.162928611,
0.1816312969,
-0.2073288411,
-0.5375798345,
-0.0501902625,
-0.1583831459,
-0.4597317278,
-0.1058520824,
0.1566949785,
-0.3507362902,
-0.1423188299,
-0.1870340258,
-0.0200041737,
0.0551587455,
0.0641499013,
0.0325317495,
0.0676743612,
0.0367955789,
0.4690811038,
-0.0752126798,
-0.3788243234,
-0.0318953805,
0.1820544004,
-0.229892388,
-0.036376819,
0.6238436699,
0.2674331069,
-0.1762402207,
-0.1396307349,
0.2404734641,
0.3817258775,
-0.0798503011,
-0.2453042269,
-0.1275421679,
0.2880230546,
-0.0614801198,
0.027527282,
0.1150131226,
-0.0543770492,
0.1168115437,
-0.6627496481,
-0.1394592673,
0.346442908,
0.0221115816,
-0.2416149378,
0.0259364583,
0.0971985161,
0.0347383171,
-0.2118203789,
-0.18992652,
0.1925812662,
-0.0452363938,
0.1018749997,
-0.0879559815,
-0.0888424888,
0.3293844759,
-0.0378108434,
0.0144337807,
0.0613638014,
0.1151461005,
-0.114062421,
-0.316432178,
0.1970477104,
0.0725117922,
-0.4723587334,
-0.0078824926,
-0.1541277766,
-0.0637460053,
-0.0189466607,
0.1375550181,
0.2217822224,
-0.0430438146,
0.2481678128,
-0.4047923088,
0.0613262244,
0.0285780989,
-0.1320007741,
0.0297458544,
0.832873404,
-0.0440971591,
0.2187922001,
0.2867732346,
0.0409653075,
-0.223556757,
0.0302187447,
-0.0717666745,
0.1702478081,
0.397374481,
-0.2796153128,
0.4103116393,
-0.0677054375,
0.167172879,
0.5154780149,
-0.3857298195,
0.0094349645,
0.2452152818,
0.0928043798,
-0.0724211782,
-0.0476936027,
0.4049891233,
-0.1020432636,
-0.0842301995,
0.1916326731,
-0.3814827502,
0.0759212971,
-0.2584766746,
-0.1525020748,
0.3138320148,
0.2935934961,
0.1102359518,
0.365067184,
-0.2722982764,
0.1871520877,
-0.0303880218,
0.1145798713,
0.3168928623,
0.450931251,
-0.1138791591,
0.0784605369,
-0.3261548281,
0.3612879813,
-0.0509545617,
-0.4903669059,
-0.0606086068,
0.2124315947,
-0.0717370957,
0.4705011547,
0.0511784032,
-0.0627942681,
-0.4431337714,
0.043376334,
-0.3669300079,
0.0539995171,
0.1315045953,
-0.2230794728,
-0.2180446684,
-0.0242041815,
-0.3730876148,
0.1064561903,
-0.0490605794,
-0.382003516,
-0.0379238054,
0.2490318716,
-0.1305324584,
-0.3429677784,
0.1603454798,
0.1043208018,
0.1030728966,
-0.392741859,
0.1975452155,
0.2589795589,
0.2422739565,
0.1948425919,
0.0926817432,
0.3498042226,
0.2201948762,
-0.4257212579,
-0.0500687659,
-0.105309628,
-0.064621985,
-0.1460928768,
0.4472827911,
0.1749531627,
-0.081881173,
0.4011391699,
0.1168095395,
-0.1012336463,
0.0976401791,
0.2883227766,
-0.1410844773,
-0.1788493693,
0.2855690122,
-0.3534194231,
0.2045450509,
-0.1655643284,
-0.220312953,
-0.2555755079,
-0.2192953825,
0.2338056862,
-0.031259153,
0.1294746101,
-0.1532984376,
0.0140225124,
0.0119492766,
0.3824175,
0.3050079942,
0.2788800895,
-0.1241928488,
-0.1840639114,
-0.3153487146,
0.0253982302,
-0.2847113907,
-0.2506228685,
0.1554742903,
0.0708771572,
-0.1746007204,
0.3591209054,
0.0498731583,
0.4428434372,
0.1114143282,
0.1863829345,
-0.1461455077,
-0.3172510564,
0.4438598454,
0.414404273,
-0.1750415713,
-0.4612671435,
0.225105837,
0.2361631542,
-0.1488851458,
-0.2414572835,
-0.1568927765,
-0.1976628006,
-0.2074342817,
0.2476858497,
0.4718891382,
0.2960594296,
-0.1901386082,
-0.0413574502,
-0.2893474996,
-0.3693339825,
-0.0213392302,
0.5253269672,
-0.1727517992,
0.2607081831,
-0.0730917901,
0.0636251196,
-0.2339999974,
-0.0550145954,
-0.2188571393,
-0.0434653088,
-0.2975839078,
0.3721769154,
-0.1881470084,
0.2759253383,
-0.0539895333,
0.4072673023,
0.004049683,
0.4098053873,
-0.079503268,
-0.2372464836,
0.2398970127,
-0.3824099004,
-0.2967884243,
0.3267814517,
0.2042010427,
0.0205795784,
-0.2468756884,
-0.3127251267,
0.0408110246,
0.3302119076,
-0.0210479498,
-0.2623265684,
0.0157846119,
0.0136477696,
-0.0454829298,
0.0051556979,
0.5762954354,
0.0852109641,
-0.3399920166,
0.4717288613,
-0.0604917631
] |
https://github.com/huggingface/datasets/issues/4149 | load_dataset for winoground returning decoding error | We'll also investigate the issue with the streaming download manager in https://github.com/huggingface/datasets/issues/4139 ;) thanks for reporting | ## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
| 16 | load_dataset for winoground returning decoding error
## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
We'll also investigate the issue with the streaming download manager in https://github.com/huggingface/datasets/issues/4139 ;) thanks for reporting | [
-0.1866350323,
0.3816437423,
-0.0002151771,
0.4397816956,
0.2120900154,
0.1175744459,
0.0252054855,
0.1846736521,
0.0800222754,
-0.1368634403,
-0.1777786762,
0.0833095759,
0.0109347403,
0.0449507199,
-0.2806118429,
-0.2287354767,
-0.0568579063,
-0.0361913219,
0.0943902135,
-0.0962768197,
-0.6502005458,
0.4393961728,
-0.2659928203,
0.3251313567,
0.0718700513,
-0.1280073375,
-0.2038558424,
0.4244276881,
-0.2437401712,
-0.4551992416,
0.081403017,
-0.1902178824,
0.1692913771,
0.2197065502,
-0.0001198312,
0.1218881682,
0.4944891632,
0.0348096527,
-0.3272898793,
-0.2021761239,
-0.4330078363,
-0.0092645288,
0.0870781839,
-0.1436471939,
0.0807449147,
-0.6088299155,
-0.1147286668,
-0.0512156673,
0.655724287,
0.4015835822,
0.1428909153,
-0.0290070325,
0.0268664435,
0.1402500421,
0.1853507608,
0.0857897922,
-0.0909137204,
0.2903932035,
0.1863135397,
-0.371334374,
-0.1648489386,
0.248995021,
-0.008229983,
0.2453747392,
0.0232779179,
0.2014267147,
0.0501030609,
-0.0893855244,
0.0305846203,
0.2426168323,
0.2190140784,
0.0032317028,
-0.3280739784,
-0.288374424,
-0.0788065121,
-0.138647899,
0.3352195919,
0.2933968902,
-0.2523528636,
0.2960198224,
-0.2132369876,
-0.0541490875,
-0.1078112796,
0.304715395,
-0.0155781722,
0.0601173379,
-0.0999124572,
0.242251128,
0.1177485064,
-0.0016651354,
-0.0192423929,
-0.3969207704,
-0.1754958332,
-0.0836559832,
-0.1642664969,
0.0518702269,
0.1015058607,
0.2113348544,
0.0896992385,
0.1292407215,
-0.1634976417,
0.1579477787,
-0.0633963048,
0.1237574145,
0.4871356487,
-0.0672670826,
-0.0353507735,
0.3062380254,
0.0462120362,
-0.0696401,
0.0905089155,
0.0601204745,
-0.2188421935,
-0.2658319175,
-0.1459763795,
0.0245482046,
0.2922028899,
-0.0578252375,
-0.4480500519,
0.194895044,
-0.1858043969,
-0.1787950248,
-0.0729414672,
0.2858642042,
-0.0852143466,
-0.0187171884,
0.3159789741,
0.3502246141,
-0.2379291356,
-0.1582434177,
-0.0179345962,
-0.0238097571,
-0.1579126716,
-0.0423047394,
0.1803118587,
0.1152965203,
0.1498202533,
-0.0118053844,
0.0130214449,
-0.2015031576,
0.3386761844,
-0.2770757377,
0.040041808,
0.0228159223,
0.1537956148,
0.2217425108,
0.293345511,
-0.3227155805,
-0.1121332794,
0.1919394881,
-0.4252031744,
-0.1673396826,
-0.1239400357,
0.1085193232,
-0.191002503,
-0.0395028293,
-0.418420881,
0.2583845258,
-0.1628275663,
0.1221970171,
0.0899063647,
-0.2024017423,
-0.2053606659,
-0.1559070051,
-0.0184547994,
0.4925528765,
-0.293797195,
-0.1551627517,
0.0094838329,
-0.4077320397,
0.2635619044,
0.3806162477,
-0.162386179,
0.3524317741,
-0.2984900475,
0.2143801153,
0.3317295611,
-0.5110266209,
-0.2720244527,
0.6287518144,
0.0108364476,
0.3247801661,
-0.2500393093,
-0.330304116,
0.2926410139,
-0.0095388517,
0.4710422456,
0.5840806365,
-0.0610024557,
0.0973239467,
-0.077334173,
-0.4807218313,
0.3019636869,
0.4109523892,
-0.0022044072,
0.0334702954,
0.1762740314,
-0.0188531671,
0.2200164497,
-0.0466201901,
0.1678164005,
0.3642239571,
-0.1274958998,
0.0723098218,
0.2101636231,
0.1216134727,
-0.2524523139,
0.0845073685,
-0.0305780079,
-0.1661647558,
-0.1017013341,
-0.0336790308,
-0.2528522313,
-0.0447927751,
-0.46900177,
0.0247386601,
0.1108229905,
0.0283777993,
-0.1594007313,
-0.1201711446,
0.0516031533,
0.27830863,
0.03589499,
0.1106713042,
-0.0583324358,
0.3709382713,
-0.0510651544,
-0.1081675217,
0.257784605,
0.1967159957,
0.0565164387,
-0.1951216608,
-0.1285849512,
0.3041705787,
0.2497038394,
0.2616102695,
-0.1456338167,
-0.1403813064,
0.1297693849,
-0.4586940408,
-0.0896444395,
0.4309305549,
0.1927977055,
-0.1908615977,
-0.068991825,
0.2968378663,
-0.1646571755,
0.3404626846,
0.0581003614,
0.1622577161,
0.2490879446,
-0.1457846165,
-0.2090301663,
-0.2719111443,
0.4444168508,
0.0185567159,
-0.0338355452,
-0.0778679699,
-0.0652619451,
0.0059608356,
0.9233273864,
-0.1860152185,
0.1550828218,
0.3125481308,
-0.1018834114,
-0.0300554689,
0.0338882506,
0.0091056963,
0.524723947,
0.0189479571,
0.0802056268,
0.4139404595,
0.0560121909,
0.0461981483,
0.1814299375,
0.2345638722,
0.2024870068,
0.2256599814,
-0.1341653913,
-0.040765442,
-0.3075932264,
-0.3679964244,
0.1346424222,
0.1387951374,
-0.4937200844,
0.2256506532,
-0.461150974,
-0.022028219,
-0.1406606436,
-0.4042495787,
-0.0584545434,
-0.3211015761,
0.0403069854,
0.0469965115,
-0.1497903615,
0.0916268378,
-0.3398471475,
0.082281962,
-0.0216801167,
-0.1857351065,
-0.108455725,
-0.1310913116,
-0.2666296959,
0.0070297909,
0.3140654862,
-0.0728212968,
0.2149759084,
-0.2981951237,
0.0279759467,
0.0392101705,
-0.0616474003,
0.3070314229,
-0.1579625458,
0.208439067,
0.161265403,
0.0507117324,
-0.2296816409,
-0.3069752455,
0.2184950113,
0.1699924618,
-0.2268129289,
0.2500760853,
0.0500065647,
-0.1125413775,
-0.102417849,
-0.1422100067,
-0.2597033083,
-0.2490176708,
0.3231697381,
0.0817606524,
0.0994245932,
0.1296583116,
-0.1135120392,
0.3421397507,
0.0973074809,
-0.1145236418,
-0.4607699513,
-0.0153145213,
0.2574807405,
-0.3794060051,
-0.2506862879,
0.1186396405,
-0.0462022237,
-0.1134563461,
-0.0258647036,
-0.5742095113,
-0.0142516224,
-0.1132351756,
0.1553026438,
-0.3547058105,
-0.0501350835,
0.1064793766,
0.0460093915,
0.0937209353,
-0.2193855494,
-0.1211289689,
0.0325309262,
-0.0728739426,
0.4134821892,
-0.0251230802,
0.6095141768,
-0.1929671317,
0.2468160093,
0.5080026388,
0.3667128384,
0.2762945592,
-0.1935124695,
0.1775277108,
-0.0378326289,
-0.0923716128,
0.2582373321,
-0.187841028,
0.2089768797,
0.2728345394,
0.1192179024,
-0.2497426271,
-0.0172737557,
-0.0374045931,
-0.5823125839,
-0.4338467121,
0.1530111581,
-0.0863603204,
-0.0778122023,
0.0507846922,
0.2859056592,
-0.0416478962,
-0.0772460476,
-0.1338884085,
0.3123598099,
0.0025693465,
0.1401858777,
-0.1990314573,
-0.1729299426,
-0.3171238601,
0.1245038658,
-0.0864001587,
0.4834387004,
-0.1708198786,
0.3166979849,
0.1015280038,
-0.2330021411,
0.7412669063,
-0.2756133974,
0.1618671864,
0.0790739805,
0.3046824038,
-0.4524528682,
-0.0378888063,
-0.2837693095,
0.3549791574,
0.1275291145,
0.2411563993,
-0.2644320726,
-0.1182980761,
0.1919902712,
0.1910147667,
-0.2315646261,
-0.1551598608,
-0.325976491,
-0.8166644573,
-0.3782943487,
-0.1946810931,
0.3285314739,
0.1574901193,
-0.0080652628,
-0.0822429955,
0.0185045153,
0.0927917808,
0.1833205223,
-0.0020389741,
0.1575545222,
0.1465193182,
0.0572725274,
0.1297603548,
0.1868716627,
0.0262075681,
0.8269633055,
0.3106043637,
-0.5212931633,
0.2427426875,
-0.1760543436,
-0.022744406,
0.2260769755,
-0.1299825907,
-0.079911761,
0.0911532491,
0.2818122804,
-0.4481184185,
0.0332680531,
0.4080580771,
-0.0066945087,
-0.3659456968,
-0.1824551374,
0.4902800918,
-0.1122830883,
-0.0542546958,
0.3957289457,
0.5383885503,
-0.3827526867,
0.3704436421,
-0.0472683944,
0.8026754856,
0.2136369497,
0.0076136542,
0.5026301742,
-0.5735384822,
0.2489011437,
-0.0673595592,
-0.0734870732,
-0.0983864516,
0.0865763053,
-0.1573195159,
-0.0334815867,
0.2059183121,
0.358895123,
-0.2488151938,
0.0226923712,
0.2268870026,
-0.2379538864,
0.1762864739,
0.2385283262,
-0.3231636882,
-0.1989764869,
-0.266872555,
0.079397209,
-0.1811458021,
0.1929061711,
-0.087774314,
-0.0886615515,
0.030982852,
-0.2872934639,
-0.4625533819,
0.3222780526,
-0.2287329882,
0.2370306104,
0.0856112987,
0.0705682635,
0.2744886875,
-0.1262204349,
0.2743162513,
-0.2135298997,
-0.1729749888,
0.2569274604,
-0.2432442755,
0.1208408177,
0.0753554925,
-0.162928611,
0.1816312969,
-0.2073288411,
-0.5375798345,
-0.0501902625,
-0.1583831459,
-0.4597317278,
-0.1058520824,
0.1566949785,
-0.3507362902,
-0.1423188299,
-0.1870340258,
-0.0200041737,
0.0551587455,
0.0641499013,
0.0325317495,
0.0676743612,
0.0367955789,
0.4690811038,
-0.0752126798,
-0.3788243234,
-0.0318953805,
0.1820544004,
-0.229892388,
-0.036376819,
0.6238436699,
0.2674331069,
-0.1762402207,
-0.1396307349,
0.2404734641,
0.3817258775,
-0.0798503011,
-0.2453042269,
-0.1275421679,
0.2880230546,
-0.0614801198,
0.027527282,
0.1150131226,
-0.0543770492,
0.1168115437,
-0.6627496481,
-0.1394592673,
0.346442908,
0.0221115816,
-0.2416149378,
0.0259364583,
0.0971985161,
0.0347383171,
-0.2118203789,
-0.18992652,
0.1925812662,
-0.0452363938,
0.1018749997,
-0.0879559815,
-0.0888424888,
0.3293844759,
-0.0378108434,
0.0144337807,
0.0613638014,
0.1151461005,
-0.114062421,
-0.316432178,
0.1970477104,
0.0725117922,
-0.4723587334,
-0.0078824926,
-0.1541277766,
-0.0637460053,
-0.0189466607,
0.1375550181,
0.2217822224,
-0.0430438146,
0.2481678128,
-0.4047923088,
0.0613262244,
0.0285780989,
-0.1320007741,
0.0297458544,
0.832873404,
-0.0440971591,
0.2187922001,
0.2867732346,
0.0409653075,
-0.223556757,
0.0302187447,
-0.0717666745,
0.1702478081,
0.397374481,
-0.2796153128,
0.4103116393,
-0.0677054375,
0.167172879,
0.5154780149,
-0.3857298195,
0.0094349645,
0.2452152818,
0.0928043798,
-0.0724211782,
-0.0476936027,
0.4049891233,
-0.1020432636,
-0.0842301995,
0.1916326731,
-0.3814827502,
0.0759212971,
-0.2584766746,
-0.1525020748,
0.3138320148,
0.2935934961,
0.1102359518,
0.365067184,
-0.2722982764,
0.1871520877,
-0.0303880218,
0.1145798713,
0.3168928623,
0.450931251,
-0.1138791591,
0.0784605369,
-0.3261548281,
0.3612879813,
-0.0509545617,
-0.4903669059,
-0.0606086068,
0.2124315947,
-0.0717370957,
0.4705011547,
0.0511784032,
-0.0627942681,
-0.4431337714,
0.043376334,
-0.3669300079,
0.0539995171,
0.1315045953,
-0.2230794728,
-0.2180446684,
-0.0242041815,
-0.3730876148,
0.1064561903,
-0.0490605794,
-0.382003516,
-0.0379238054,
0.2490318716,
-0.1305324584,
-0.3429677784,
0.1603454798,
0.1043208018,
0.1030728966,
-0.392741859,
0.1975452155,
0.2589795589,
0.2422739565,
0.1948425919,
0.0926817432,
0.3498042226,
0.2201948762,
-0.4257212579,
-0.0500687659,
-0.105309628,
-0.064621985,
-0.1460928768,
0.4472827911,
0.1749531627,
-0.081881173,
0.4011391699,
0.1168095395,
-0.1012336463,
0.0976401791,
0.2883227766,
-0.1410844773,
-0.1788493693,
0.2855690122,
-0.3534194231,
0.2045450509,
-0.1655643284,
-0.220312953,
-0.2555755079,
-0.2192953825,
0.2338056862,
-0.031259153,
0.1294746101,
-0.1532984376,
0.0140225124,
0.0119492766,
0.3824175,
0.3050079942,
0.2788800895,
-0.1241928488,
-0.1840639114,
-0.3153487146,
0.0253982302,
-0.2847113907,
-0.2506228685,
0.1554742903,
0.0708771572,
-0.1746007204,
0.3591209054,
0.0498731583,
0.4428434372,
0.1114143282,
0.1863829345,
-0.1461455077,
-0.3172510564,
0.4438598454,
0.414404273,
-0.1750415713,
-0.4612671435,
0.225105837,
0.2361631542,
-0.1488851458,
-0.2414572835,
-0.1568927765,
-0.1976628006,
-0.2074342817,
0.2476858497,
0.4718891382,
0.2960594296,
-0.1901386082,
-0.0413574502,
-0.2893474996,
-0.3693339825,
-0.0213392302,
0.5253269672,
-0.1727517992,
0.2607081831,
-0.0730917901,
0.0636251196,
-0.2339999974,
-0.0550145954,
-0.2188571393,
-0.0434653088,
-0.2975839078,
0.3721769154,
-0.1881470084,
0.2759253383,
-0.0539895333,
0.4072673023,
0.004049683,
0.4098053873,
-0.079503268,
-0.2372464836,
0.2398970127,
-0.3824099004,
-0.2967884243,
0.3267814517,
0.2042010427,
0.0205795784,
-0.2468756884,
-0.3127251267,
0.0408110246,
0.3302119076,
-0.0210479498,
-0.2623265684,
0.0157846119,
0.0136477696,
-0.0454829298,
0.0051556979,
0.5762954354,
0.0852109641,
-0.3399920166,
0.4717288613,
-0.0604917631
] |
https://github.com/huggingface/datasets/issues/4149 | load_dataset for winoground returning decoding error | In the meantime, anyone can always download the images.zip and examples.jsonl files directly from huggingface.co - let me know if anyone has issues with that. | ## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
| 25 | load_dataset for winoground returning decoding error
## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
In the meantime, anyone can always download the images.zip and examples.jsonl files directly from huggingface.co - let me know if anyone has issues with that. | [
-0.1866350323,
0.3816437423,
-0.0002151771,
0.4397816956,
0.2120900154,
0.1175744459,
0.0252054855,
0.1846736521,
0.0800222754,
-0.1368634403,
-0.1777786762,
0.0833095759,
0.0109347403,
0.0449507199,
-0.2806118429,
-0.2287354767,
-0.0568579063,
-0.0361913219,
0.0943902135,
-0.0962768197,
-0.6502005458,
0.4393961728,
-0.2659928203,
0.3251313567,
0.0718700513,
-0.1280073375,
-0.2038558424,
0.4244276881,
-0.2437401712,
-0.4551992416,
0.081403017,
-0.1902178824,
0.1692913771,
0.2197065502,
-0.0001198312,
0.1218881682,
0.4944891632,
0.0348096527,
-0.3272898793,
-0.2021761239,
-0.4330078363,
-0.0092645288,
0.0870781839,
-0.1436471939,
0.0807449147,
-0.6088299155,
-0.1147286668,
-0.0512156673,
0.655724287,
0.4015835822,
0.1428909153,
-0.0290070325,
0.0268664435,
0.1402500421,
0.1853507608,
0.0857897922,
-0.0909137204,
0.2903932035,
0.1863135397,
-0.371334374,
-0.1648489386,
0.248995021,
-0.008229983,
0.2453747392,
0.0232779179,
0.2014267147,
0.0501030609,
-0.0893855244,
0.0305846203,
0.2426168323,
0.2190140784,
0.0032317028,
-0.3280739784,
-0.288374424,
-0.0788065121,
-0.138647899,
0.3352195919,
0.2933968902,
-0.2523528636,
0.2960198224,
-0.2132369876,
-0.0541490875,
-0.1078112796,
0.304715395,
-0.0155781722,
0.0601173379,
-0.0999124572,
0.242251128,
0.1177485064,
-0.0016651354,
-0.0192423929,
-0.3969207704,
-0.1754958332,
-0.0836559832,
-0.1642664969,
0.0518702269,
0.1015058607,
0.2113348544,
0.0896992385,
0.1292407215,
-0.1634976417,
0.1579477787,
-0.0633963048,
0.1237574145,
0.4871356487,
-0.0672670826,
-0.0353507735,
0.3062380254,
0.0462120362,
-0.0696401,
0.0905089155,
0.0601204745,
-0.2188421935,
-0.2658319175,
-0.1459763795,
0.0245482046,
0.2922028899,
-0.0578252375,
-0.4480500519,
0.194895044,
-0.1858043969,
-0.1787950248,
-0.0729414672,
0.2858642042,
-0.0852143466,
-0.0187171884,
0.3159789741,
0.3502246141,
-0.2379291356,
-0.1582434177,
-0.0179345962,
-0.0238097571,
-0.1579126716,
-0.0423047394,
0.1803118587,
0.1152965203,
0.1498202533,
-0.0118053844,
0.0130214449,
-0.2015031576,
0.3386761844,
-0.2770757377,
0.040041808,
0.0228159223,
0.1537956148,
0.2217425108,
0.293345511,
-0.3227155805,
-0.1121332794,
0.1919394881,
-0.4252031744,
-0.1673396826,
-0.1239400357,
0.1085193232,
-0.191002503,
-0.0395028293,
-0.418420881,
0.2583845258,
-0.1628275663,
0.1221970171,
0.0899063647,
-0.2024017423,
-0.2053606659,
-0.1559070051,
-0.0184547994,
0.4925528765,
-0.293797195,
-0.1551627517,
0.0094838329,
-0.4077320397,
0.2635619044,
0.3806162477,
-0.162386179,
0.3524317741,
-0.2984900475,
0.2143801153,
0.3317295611,
-0.5110266209,
-0.2720244527,
0.6287518144,
0.0108364476,
0.3247801661,
-0.2500393093,
-0.330304116,
0.2926410139,
-0.0095388517,
0.4710422456,
0.5840806365,
-0.0610024557,
0.0973239467,
-0.077334173,
-0.4807218313,
0.3019636869,
0.4109523892,
-0.0022044072,
0.0334702954,
0.1762740314,
-0.0188531671,
0.2200164497,
-0.0466201901,
0.1678164005,
0.3642239571,
-0.1274958998,
0.0723098218,
0.2101636231,
0.1216134727,
-0.2524523139,
0.0845073685,
-0.0305780079,
-0.1661647558,
-0.1017013341,
-0.0336790308,
-0.2528522313,
-0.0447927751,
-0.46900177,
0.0247386601,
0.1108229905,
0.0283777993,
-0.1594007313,
-0.1201711446,
0.0516031533,
0.27830863,
0.03589499,
0.1106713042,
-0.0583324358,
0.3709382713,
-0.0510651544,
-0.1081675217,
0.257784605,
0.1967159957,
0.0565164387,
-0.1951216608,
-0.1285849512,
0.3041705787,
0.2497038394,
0.2616102695,
-0.1456338167,
-0.1403813064,
0.1297693849,
-0.4586940408,
-0.0896444395,
0.4309305549,
0.1927977055,
-0.1908615977,
-0.068991825,
0.2968378663,
-0.1646571755,
0.3404626846,
0.0581003614,
0.1622577161,
0.2490879446,
-0.1457846165,
-0.2090301663,
-0.2719111443,
0.4444168508,
0.0185567159,
-0.0338355452,
-0.0778679699,
-0.0652619451,
0.0059608356,
0.9233273864,
-0.1860152185,
0.1550828218,
0.3125481308,
-0.1018834114,
-0.0300554689,
0.0338882506,
0.0091056963,
0.524723947,
0.0189479571,
0.0802056268,
0.4139404595,
0.0560121909,
0.0461981483,
0.1814299375,
0.2345638722,
0.2024870068,
0.2256599814,
-0.1341653913,
-0.040765442,
-0.3075932264,
-0.3679964244,
0.1346424222,
0.1387951374,
-0.4937200844,
0.2256506532,
-0.461150974,
-0.022028219,
-0.1406606436,
-0.4042495787,
-0.0584545434,
-0.3211015761,
0.0403069854,
0.0469965115,
-0.1497903615,
0.0916268378,
-0.3398471475,
0.082281962,
-0.0216801167,
-0.1857351065,
-0.108455725,
-0.1310913116,
-0.2666296959,
0.0070297909,
0.3140654862,
-0.0728212968,
0.2149759084,
-0.2981951237,
0.0279759467,
0.0392101705,
-0.0616474003,
0.3070314229,
-0.1579625458,
0.208439067,
0.161265403,
0.0507117324,
-0.2296816409,
-0.3069752455,
0.2184950113,
0.1699924618,
-0.2268129289,
0.2500760853,
0.0500065647,
-0.1125413775,
-0.102417849,
-0.1422100067,
-0.2597033083,
-0.2490176708,
0.3231697381,
0.0817606524,
0.0994245932,
0.1296583116,
-0.1135120392,
0.3421397507,
0.0973074809,
-0.1145236418,
-0.4607699513,
-0.0153145213,
0.2574807405,
-0.3794060051,
-0.2506862879,
0.1186396405,
-0.0462022237,
-0.1134563461,
-0.0258647036,
-0.5742095113,
-0.0142516224,
-0.1132351756,
0.1553026438,
-0.3547058105,
-0.0501350835,
0.1064793766,
0.0460093915,
0.0937209353,
-0.2193855494,
-0.1211289689,
0.0325309262,
-0.0728739426,
0.4134821892,
-0.0251230802,
0.6095141768,
-0.1929671317,
0.2468160093,
0.5080026388,
0.3667128384,
0.2762945592,
-0.1935124695,
0.1775277108,
-0.0378326289,
-0.0923716128,
0.2582373321,
-0.187841028,
0.2089768797,
0.2728345394,
0.1192179024,
-0.2497426271,
-0.0172737557,
-0.0374045931,
-0.5823125839,
-0.4338467121,
0.1530111581,
-0.0863603204,
-0.0778122023,
0.0507846922,
0.2859056592,
-0.0416478962,
-0.0772460476,
-0.1338884085,
0.3123598099,
0.0025693465,
0.1401858777,
-0.1990314573,
-0.1729299426,
-0.3171238601,
0.1245038658,
-0.0864001587,
0.4834387004,
-0.1708198786,
0.3166979849,
0.1015280038,
-0.2330021411,
0.7412669063,
-0.2756133974,
0.1618671864,
0.0790739805,
0.3046824038,
-0.4524528682,
-0.0378888063,
-0.2837693095,
0.3549791574,
0.1275291145,
0.2411563993,
-0.2644320726,
-0.1182980761,
0.1919902712,
0.1910147667,
-0.2315646261,
-0.1551598608,
-0.325976491,
-0.8166644573,
-0.3782943487,
-0.1946810931,
0.3285314739,
0.1574901193,
-0.0080652628,
-0.0822429955,
0.0185045153,
0.0927917808,
0.1833205223,
-0.0020389741,
0.1575545222,
0.1465193182,
0.0572725274,
0.1297603548,
0.1868716627,
0.0262075681,
0.8269633055,
0.3106043637,
-0.5212931633,
0.2427426875,
-0.1760543436,
-0.022744406,
0.2260769755,
-0.1299825907,
-0.079911761,
0.0911532491,
0.2818122804,
-0.4481184185,
0.0332680531,
0.4080580771,
-0.0066945087,
-0.3659456968,
-0.1824551374,
0.4902800918,
-0.1122830883,
-0.0542546958,
0.3957289457,
0.5383885503,
-0.3827526867,
0.3704436421,
-0.0472683944,
0.8026754856,
0.2136369497,
0.0076136542,
0.5026301742,
-0.5735384822,
0.2489011437,
-0.0673595592,
-0.0734870732,
-0.0983864516,
0.0865763053,
-0.1573195159,
-0.0334815867,
0.2059183121,
0.358895123,
-0.2488151938,
0.0226923712,
0.2268870026,
-0.2379538864,
0.1762864739,
0.2385283262,
-0.3231636882,
-0.1989764869,
-0.266872555,
0.079397209,
-0.1811458021,
0.1929061711,
-0.087774314,
-0.0886615515,
0.030982852,
-0.2872934639,
-0.4625533819,
0.3222780526,
-0.2287329882,
0.2370306104,
0.0856112987,
0.0705682635,
0.2744886875,
-0.1262204349,
0.2743162513,
-0.2135298997,
-0.1729749888,
0.2569274604,
-0.2432442755,
0.1208408177,
0.0753554925,
-0.162928611,
0.1816312969,
-0.2073288411,
-0.5375798345,
-0.0501902625,
-0.1583831459,
-0.4597317278,
-0.1058520824,
0.1566949785,
-0.3507362902,
-0.1423188299,
-0.1870340258,
-0.0200041737,
0.0551587455,
0.0641499013,
0.0325317495,
0.0676743612,
0.0367955789,
0.4690811038,
-0.0752126798,
-0.3788243234,
-0.0318953805,
0.1820544004,
-0.229892388,
-0.036376819,
0.6238436699,
0.2674331069,
-0.1762402207,
-0.1396307349,
0.2404734641,
0.3817258775,
-0.0798503011,
-0.2453042269,
-0.1275421679,
0.2880230546,
-0.0614801198,
0.027527282,
0.1150131226,
-0.0543770492,
0.1168115437,
-0.6627496481,
-0.1394592673,
0.346442908,
0.0221115816,
-0.2416149378,
0.0259364583,
0.0971985161,
0.0347383171,
-0.2118203789,
-0.18992652,
0.1925812662,
-0.0452363938,
0.1018749997,
-0.0879559815,
-0.0888424888,
0.3293844759,
-0.0378108434,
0.0144337807,
0.0613638014,
0.1151461005,
-0.114062421,
-0.316432178,
0.1970477104,
0.0725117922,
-0.4723587334,
-0.0078824926,
-0.1541277766,
-0.0637460053,
-0.0189466607,
0.1375550181,
0.2217822224,
-0.0430438146,
0.2481678128,
-0.4047923088,
0.0613262244,
0.0285780989,
-0.1320007741,
0.0297458544,
0.832873404,
-0.0440971591,
0.2187922001,
0.2867732346,
0.0409653075,
-0.223556757,
0.0302187447,
-0.0717666745,
0.1702478081,
0.397374481,
-0.2796153128,
0.4103116393,
-0.0677054375,
0.167172879,
0.5154780149,
-0.3857298195,
0.0094349645,
0.2452152818,
0.0928043798,
-0.0724211782,
-0.0476936027,
0.4049891233,
-0.1020432636,
-0.0842301995,
0.1916326731,
-0.3814827502,
0.0759212971,
-0.2584766746,
-0.1525020748,
0.3138320148,
0.2935934961,
0.1102359518,
0.365067184,
-0.2722982764,
0.1871520877,
-0.0303880218,
0.1145798713,
0.3168928623,
0.450931251,
-0.1138791591,
0.0784605369,
-0.3261548281,
0.3612879813,
-0.0509545617,
-0.4903669059,
-0.0606086068,
0.2124315947,
-0.0717370957,
0.4705011547,
0.0511784032,
-0.0627942681,
-0.4431337714,
0.043376334,
-0.3669300079,
0.0539995171,
0.1315045953,
-0.2230794728,
-0.2180446684,
-0.0242041815,
-0.3730876148,
0.1064561903,
-0.0490605794,
-0.382003516,
-0.0379238054,
0.2490318716,
-0.1305324584,
-0.3429677784,
0.1603454798,
0.1043208018,
0.1030728966,
-0.392741859,
0.1975452155,
0.2589795589,
0.2422739565,
0.1948425919,
0.0926817432,
0.3498042226,
0.2201948762,
-0.4257212579,
-0.0500687659,
-0.105309628,
-0.064621985,
-0.1460928768,
0.4472827911,
0.1749531627,
-0.081881173,
0.4011391699,
0.1168095395,
-0.1012336463,
0.0976401791,
0.2883227766,
-0.1410844773,
-0.1788493693,
0.2855690122,
-0.3534194231,
0.2045450509,
-0.1655643284,
-0.220312953,
-0.2555755079,
-0.2192953825,
0.2338056862,
-0.031259153,
0.1294746101,
-0.1532984376,
0.0140225124,
0.0119492766,
0.3824175,
0.3050079942,
0.2788800895,
-0.1241928488,
-0.1840639114,
-0.3153487146,
0.0253982302,
-0.2847113907,
-0.2506228685,
0.1554742903,
0.0708771572,
-0.1746007204,
0.3591209054,
0.0498731583,
0.4428434372,
0.1114143282,
0.1863829345,
-0.1461455077,
-0.3172510564,
0.4438598454,
0.414404273,
-0.1750415713,
-0.4612671435,
0.225105837,
0.2361631542,
-0.1488851458,
-0.2414572835,
-0.1568927765,
-0.1976628006,
-0.2074342817,
0.2476858497,
0.4718891382,
0.2960594296,
-0.1901386082,
-0.0413574502,
-0.2893474996,
-0.3693339825,
-0.0213392302,
0.5253269672,
-0.1727517992,
0.2607081831,
-0.0730917901,
0.0636251196,
-0.2339999974,
-0.0550145954,
-0.2188571393,
-0.0434653088,
-0.2975839078,
0.3721769154,
-0.1881470084,
0.2759253383,
-0.0539895333,
0.4072673023,
0.004049683,
0.4098053873,
-0.079503268,
-0.2372464836,
0.2398970127,
-0.3824099004,
-0.2967884243,
0.3267814517,
0.2042010427,
0.0205795784,
-0.2468756884,
-0.3127251267,
0.0408110246,
0.3302119076,
-0.0210479498,
-0.2623265684,
0.0157846119,
0.0136477696,
-0.0454829298,
0.0051556979,
0.5762954354,
0.0852109641,
-0.3399920166,
0.4717288613,
-0.0604917631
] |
https://github.com/huggingface/datasets/issues/4149 | load_dataset for winoground returning decoding error | I mirrored the files at https://huggingface.co/datasets/facebook/winoground in a folder on my local machine `winground`
and when I tried
```python
import datasets
ds = datasets.load_from_disk('./winoground')
```
I get the following error
```python
--------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
Input In [2], in <cell line: 1>()
----> 1 ds = datasets.load_from_disk('./winoground')
File ~/.local/lib/python3.8/site-packages/datasets/load.py:1759, in load_from_disk(dataset_path, fs, keep_in_memory)
1757 return DatasetDict.load_from_disk(dataset_path, fs, keep_in_memory=keep_in_memory)
1758 else:
-> 1759 raise FileNotFoundError(
1760 f"Directory {dataset_path} is neither a dataset directory nor a dataset dict directory."
1761 )
FileNotFoundError: Directory ./winoground is neither a dataset directory nor a dataset dict directory.
```
so still some work to be done on the backend imo. | ## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
| 107 | load_dataset for winoground returning decoding error
## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
I mirrored the files at https://huggingface.co/datasets/facebook/winoground in a folder on my local machine `winground`
and when I tried
```python
import datasets
ds = datasets.load_from_disk('./winoground')
```
I get the following error
```python
--------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
Input In [2], in <cell line: 1>()
----> 1 ds = datasets.load_from_disk('./winoground')
File ~/.local/lib/python3.8/site-packages/datasets/load.py:1759, in load_from_disk(dataset_path, fs, keep_in_memory)
1757 return DatasetDict.load_from_disk(dataset_path, fs, keep_in_memory=keep_in_memory)
1758 else:
-> 1759 raise FileNotFoundError(
1760 f"Directory {dataset_path} is neither a dataset directory nor a dataset dict directory."
1761 )
FileNotFoundError: Directory ./winoground is neither a dataset directory nor a dataset dict directory.
```
so still some work to be done on the backend imo. | [
-0.1866350323,
0.3816437423,
-0.0002151771,
0.4397816956,
0.2120900154,
0.1175744459,
0.0252054855,
0.1846736521,
0.0800222754,
-0.1368634403,
-0.1777786762,
0.0833095759,
0.0109347403,
0.0449507199,
-0.2806118429,
-0.2287354767,
-0.0568579063,
-0.0361913219,
0.0943902135,
-0.0962768197,
-0.6502005458,
0.4393961728,
-0.2659928203,
0.3251313567,
0.0718700513,
-0.1280073375,
-0.2038558424,
0.4244276881,
-0.2437401712,
-0.4551992416,
0.081403017,
-0.1902178824,
0.1692913771,
0.2197065502,
-0.0001198312,
0.1218881682,
0.4944891632,
0.0348096527,
-0.3272898793,
-0.2021761239,
-0.4330078363,
-0.0092645288,
0.0870781839,
-0.1436471939,
0.0807449147,
-0.6088299155,
-0.1147286668,
-0.0512156673,
0.655724287,
0.4015835822,
0.1428909153,
-0.0290070325,
0.0268664435,
0.1402500421,
0.1853507608,
0.0857897922,
-0.0909137204,
0.2903932035,
0.1863135397,
-0.371334374,
-0.1648489386,
0.248995021,
-0.008229983,
0.2453747392,
0.0232779179,
0.2014267147,
0.0501030609,
-0.0893855244,
0.0305846203,
0.2426168323,
0.2190140784,
0.0032317028,
-0.3280739784,
-0.288374424,
-0.0788065121,
-0.138647899,
0.3352195919,
0.2933968902,
-0.2523528636,
0.2960198224,
-0.2132369876,
-0.0541490875,
-0.1078112796,
0.304715395,
-0.0155781722,
0.0601173379,
-0.0999124572,
0.242251128,
0.1177485064,
-0.0016651354,
-0.0192423929,
-0.3969207704,
-0.1754958332,
-0.0836559832,
-0.1642664969,
0.0518702269,
0.1015058607,
0.2113348544,
0.0896992385,
0.1292407215,
-0.1634976417,
0.1579477787,
-0.0633963048,
0.1237574145,
0.4871356487,
-0.0672670826,
-0.0353507735,
0.3062380254,
0.0462120362,
-0.0696401,
0.0905089155,
0.0601204745,
-0.2188421935,
-0.2658319175,
-0.1459763795,
0.0245482046,
0.2922028899,
-0.0578252375,
-0.4480500519,
0.194895044,
-0.1858043969,
-0.1787950248,
-0.0729414672,
0.2858642042,
-0.0852143466,
-0.0187171884,
0.3159789741,
0.3502246141,
-0.2379291356,
-0.1582434177,
-0.0179345962,
-0.0238097571,
-0.1579126716,
-0.0423047394,
0.1803118587,
0.1152965203,
0.1498202533,
-0.0118053844,
0.0130214449,
-0.2015031576,
0.3386761844,
-0.2770757377,
0.040041808,
0.0228159223,
0.1537956148,
0.2217425108,
0.293345511,
-0.3227155805,
-0.1121332794,
0.1919394881,
-0.4252031744,
-0.1673396826,
-0.1239400357,
0.1085193232,
-0.191002503,
-0.0395028293,
-0.418420881,
0.2583845258,
-0.1628275663,
0.1221970171,
0.0899063647,
-0.2024017423,
-0.2053606659,
-0.1559070051,
-0.0184547994,
0.4925528765,
-0.293797195,
-0.1551627517,
0.0094838329,
-0.4077320397,
0.2635619044,
0.3806162477,
-0.162386179,
0.3524317741,
-0.2984900475,
0.2143801153,
0.3317295611,
-0.5110266209,
-0.2720244527,
0.6287518144,
0.0108364476,
0.3247801661,
-0.2500393093,
-0.330304116,
0.2926410139,
-0.0095388517,
0.4710422456,
0.5840806365,
-0.0610024557,
0.0973239467,
-0.077334173,
-0.4807218313,
0.3019636869,
0.4109523892,
-0.0022044072,
0.0334702954,
0.1762740314,
-0.0188531671,
0.2200164497,
-0.0466201901,
0.1678164005,
0.3642239571,
-0.1274958998,
0.0723098218,
0.2101636231,
0.1216134727,
-0.2524523139,
0.0845073685,
-0.0305780079,
-0.1661647558,
-0.1017013341,
-0.0336790308,
-0.2528522313,
-0.0447927751,
-0.46900177,
0.0247386601,
0.1108229905,
0.0283777993,
-0.1594007313,
-0.1201711446,
0.0516031533,
0.27830863,
0.03589499,
0.1106713042,
-0.0583324358,
0.3709382713,
-0.0510651544,
-0.1081675217,
0.257784605,
0.1967159957,
0.0565164387,
-0.1951216608,
-0.1285849512,
0.3041705787,
0.2497038394,
0.2616102695,
-0.1456338167,
-0.1403813064,
0.1297693849,
-0.4586940408,
-0.0896444395,
0.4309305549,
0.1927977055,
-0.1908615977,
-0.068991825,
0.2968378663,
-0.1646571755,
0.3404626846,
0.0581003614,
0.1622577161,
0.2490879446,
-0.1457846165,
-0.2090301663,
-0.2719111443,
0.4444168508,
0.0185567159,
-0.0338355452,
-0.0778679699,
-0.0652619451,
0.0059608356,
0.9233273864,
-0.1860152185,
0.1550828218,
0.3125481308,
-0.1018834114,
-0.0300554689,
0.0338882506,
0.0091056963,
0.524723947,
0.0189479571,
0.0802056268,
0.4139404595,
0.0560121909,
0.0461981483,
0.1814299375,
0.2345638722,
0.2024870068,
0.2256599814,
-0.1341653913,
-0.040765442,
-0.3075932264,
-0.3679964244,
0.1346424222,
0.1387951374,
-0.4937200844,
0.2256506532,
-0.461150974,
-0.022028219,
-0.1406606436,
-0.4042495787,
-0.0584545434,
-0.3211015761,
0.0403069854,
0.0469965115,
-0.1497903615,
0.0916268378,
-0.3398471475,
0.082281962,
-0.0216801167,
-0.1857351065,
-0.108455725,
-0.1310913116,
-0.2666296959,
0.0070297909,
0.3140654862,
-0.0728212968,
0.2149759084,
-0.2981951237,
0.0279759467,
0.0392101705,
-0.0616474003,
0.3070314229,
-0.1579625458,
0.208439067,
0.161265403,
0.0507117324,
-0.2296816409,
-0.3069752455,
0.2184950113,
0.1699924618,
-0.2268129289,
0.2500760853,
0.0500065647,
-0.1125413775,
-0.102417849,
-0.1422100067,
-0.2597033083,
-0.2490176708,
0.3231697381,
0.0817606524,
0.0994245932,
0.1296583116,
-0.1135120392,
0.3421397507,
0.0973074809,
-0.1145236418,
-0.4607699513,
-0.0153145213,
0.2574807405,
-0.3794060051,
-0.2506862879,
0.1186396405,
-0.0462022237,
-0.1134563461,
-0.0258647036,
-0.5742095113,
-0.0142516224,
-0.1132351756,
0.1553026438,
-0.3547058105,
-0.0501350835,
0.1064793766,
0.0460093915,
0.0937209353,
-0.2193855494,
-0.1211289689,
0.0325309262,
-0.0728739426,
0.4134821892,
-0.0251230802,
0.6095141768,
-0.1929671317,
0.2468160093,
0.5080026388,
0.3667128384,
0.2762945592,
-0.1935124695,
0.1775277108,
-0.0378326289,
-0.0923716128,
0.2582373321,
-0.187841028,
0.2089768797,
0.2728345394,
0.1192179024,
-0.2497426271,
-0.0172737557,
-0.0374045931,
-0.5823125839,
-0.4338467121,
0.1530111581,
-0.0863603204,
-0.0778122023,
0.0507846922,
0.2859056592,
-0.0416478962,
-0.0772460476,
-0.1338884085,
0.3123598099,
0.0025693465,
0.1401858777,
-0.1990314573,
-0.1729299426,
-0.3171238601,
0.1245038658,
-0.0864001587,
0.4834387004,
-0.1708198786,
0.3166979849,
0.1015280038,
-0.2330021411,
0.7412669063,
-0.2756133974,
0.1618671864,
0.0790739805,
0.3046824038,
-0.4524528682,
-0.0378888063,
-0.2837693095,
0.3549791574,
0.1275291145,
0.2411563993,
-0.2644320726,
-0.1182980761,
0.1919902712,
0.1910147667,
-0.2315646261,
-0.1551598608,
-0.325976491,
-0.8166644573,
-0.3782943487,
-0.1946810931,
0.3285314739,
0.1574901193,
-0.0080652628,
-0.0822429955,
0.0185045153,
0.0927917808,
0.1833205223,
-0.0020389741,
0.1575545222,
0.1465193182,
0.0572725274,
0.1297603548,
0.1868716627,
0.0262075681,
0.8269633055,
0.3106043637,
-0.5212931633,
0.2427426875,
-0.1760543436,
-0.022744406,
0.2260769755,
-0.1299825907,
-0.079911761,
0.0911532491,
0.2818122804,
-0.4481184185,
0.0332680531,
0.4080580771,
-0.0066945087,
-0.3659456968,
-0.1824551374,
0.4902800918,
-0.1122830883,
-0.0542546958,
0.3957289457,
0.5383885503,
-0.3827526867,
0.3704436421,
-0.0472683944,
0.8026754856,
0.2136369497,
0.0076136542,
0.5026301742,
-0.5735384822,
0.2489011437,
-0.0673595592,
-0.0734870732,
-0.0983864516,
0.0865763053,
-0.1573195159,
-0.0334815867,
0.2059183121,
0.358895123,
-0.2488151938,
0.0226923712,
0.2268870026,
-0.2379538864,
0.1762864739,
0.2385283262,
-0.3231636882,
-0.1989764869,
-0.266872555,
0.079397209,
-0.1811458021,
0.1929061711,
-0.087774314,
-0.0886615515,
0.030982852,
-0.2872934639,
-0.4625533819,
0.3222780526,
-0.2287329882,
0.2370306104,
0.0856112987,
0.0705682635,
0.2744886875,
-0.1262204349,
0.2743162513,
-0.2135298997,
-0.1729749888,
0.2569274604,
-0.2432442755,
0.1208408177,
0.0753554925,
-0.162928611,
0.1816312969,
-0.2073288411,
-0.5375798345,
-0.0501902625,
-0.1583831459,
-0.4597317278,
-0.1058520824,
0.1566949785,
-0.3507362902,
-0.1423188299,
-0.1870340258,
-0.0200041737,
0.0551587455,
0.0641499013,
0.0325317495,
0.0676743612,
0.0367955789,
0.4690811038,
-0.0752126798,
-0.3788243234,
-0.0318953805,
0.1820544004,
-0.229892388,
-0.036376819,
0.6238436699,
0.2674331069,
-0.1762402207,
-0.1396307349,
0.2404734641,
0.3817258775,
-0.0798503011,
-0.2453042269,
-0.1275421679,
0.2880230546,
-0.0614801198,
0.027527282,
0.1150131226,
-0.0543770492,
0.1168115437,
-0.6627496481,
-0.1394592673,
0.346442908,
0.0221115816,
-0.2416149378,
0.0259364583,
0.0971985161,
0.0347383171,
-0.2118203789,
-0.18992652,
0.1925812662,
-0.0452363938,
0.1018749997,
-0.0879559815,
-0.0888424888,
0.3293844759,
-0.0378108434,
0.0144337807,
0.0613638014,
0.1151461005,
-0.114062421,
-0.316432178,
0.1970477104,
0.0725117922,
-0.4723587334,
-0.0078824926,
-0.1541277766,
-0.0637460053,
-0.0189466607,
0.1375550181,
0.2217822224,
-0.0430438146,
0.2481678128,
-0.4047923088,
0.0613262244,
0.0285780989,
-0.1320007741,
0.0297458544,
0.832873404,
-0.0440971591,
0.2187922001,
0.2867732346,
0.0409653075,
-0.223556757,
0.0302187447,
-0.0717666745,
0.1702478081,
0.397374481,
-0.2796153128,
0.4103116393,
-0.0677054375,
0.167172879,
0.5154780149,
-0.3857298195,
0.0094349645,
0.2452152818,
0.0928043798,
-0.0724211782,
-0.0476936027,
0.4049891233,
-0.1020432636,
-0.0842301995,
0.1916326731,
-0.3814827502,
0.0759212971,
-0.2584766746,
-0.1525020748,
0.3138320148,
0.2935934961,
0.1102359518,
0.365067184,
-0.2722982764,
0.1871520877,
-0.0303880218,
0.1145798713,
0.3168928623,
0.450931251,
-0.1138791591,
0.0784605369,
-0.3261548281,
0.3612879813,
-0.0509545617,
-0.4903669059,
-0.0606086068,
0.2124315947,
-0.0717370957,
0.4705011547,
0.0511784032,
-0.0627942681,
-0.4431337714,
0.043376334,
-0.3669300079,
0.0539995171,
0.1315045953,
-0.2230794728,
-0.2180446684,
-0.0242041815,
-0.3730876148,
0.1064561903,
-0.0490605794,
-0.382003516,
-0.0379238054,
0.2490318716,
-0.1305324584,
-0.3429677784,
0.1603454798,
0.1043208018,
0.1030728966,
-0.392741859,
0.1975452155,
0.2589795589,
0.2422739565,
0.1948425919,
0.0926817432,
0.3498042226,
0.2201948762,
-0.4257212579,
-0.0500687659,
-0.105309628,
-0.064621985,
-0.1460928768,
0.4472827911,
0.1749531627,
-0.081881173,
0.4011391699,
0.1168095395,
-0.1012336463,
0.0976401791,
0.2883227766,
-0.1410844773,
-0.1788493693,
0.2855690122,
-0.3534194231,
0.2045450509,
-0.1655643284,
-0.220312953,
-0.2555755079,
-0.2192953825,
0.2338056862,
-0.031259153,
0.1294746101,
-0.1532984376,
0.0140225124,
0.0119492766,
0.3824175,
0.3050079942,
0.2788800895,
-0.1241928488,
-0.1840639114,
-0.3153487146,
0.0253982302,
-0.2847113907,
-0.2506228685,
0.1554742903,
0.0708771572,
-0.1746007204,
0.3591209054,
0.0498731583,
0.4428434372,
0.1114143282,
0.1863829345,
-0.1461455077,
-0.3172510564,
0.4438598454,
0.414404273,
-0.1750415713,
-0.4612671435,
0.225105837,
0.2361631542,
-0.1488851458,
-0.2414572835,
-0.1568927765,
-0.1976628006,
-0.2074342817,
0.2476858497,
0.4718891382,
0.2960594296,
-0.1901386082,
-0.0413574502,
-0.2893474996,
-0.3693339825,
-0.0213392302,
0.5253269672,
-0.1727517992,
0.2607081831,
-0.0730917901,
0.0636251196,
-0.2339999974,
-0.0550145954,
-0.2188571393,
-0.0434653088,
-0.2975839078,
0.3721769154,
-0.1881470084,
0.2759253383,
-0.0539895333,
0.4072673023,
0.004049683,
0.4098053873,
-0.079503268,
-0.2372464836,
0.2398970127,
-0.3824099004,
-0.2967884243,
0.3267814517,
0.2042010427,
0.0205795784,
-0.2468756884,
-0.3127251267,
0.0408110246,
0.3302119076,
-0.0210479498,
-0.2623265684,
0.0157846119,
0.0136477696,
-0.0454829298,
0.0051556979,
0.5762954354,
0.0852109641,
-0.3399920166,
0.4717288613,
-0.0604917631
] |
https://github.com/huggingface/datasets/issues/4149 | load_dataset for winoground returning decoding error | Note that `load_from_disk` is the function that reloads an Arrow dataset saved with `my_dataset.save_to_disk`.
Once we do support images with metadata you'll be able to use `load_dataset("facebook/winoground")` directly (or `load_dataset("./winoground")` of you've cloned the winoground repository locally). | ## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
| 37 | load_dataset for winoground returning decoding error
## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
Note that `load_from_disk` is the function that reloads an Arrow dataset saved with `my_dataset.save_to_disk`.
Once we do support images with metadata you'll be able to use `load_dataset("facebook/winoground")` directly (or `load_dataset("./winoground")` of you've cloned the winoground repository locally). | [
-0.1866350323,
0.3816437423,
-0.0002151771,
0.4397816956,
0.2120900154,
0.1175744459,
0.0252054855,
0.1846736521,
0.0800222754,
-0.1368634403,
-0.1777786762,
0.0833095759,
0.0109347403,
0.0449507199,
-0.2806118429,
-0.2287354767,
-0.0568579063,
-0.0361913219,
0.0943902135,
-0.0962768197,
-0.6502005458,
0.4393961728,
-0.2659928203,
0.3251313567,
0.0718700513,
-0.1280073375,
-0.2038558424,
0.4244276881,
-0.2437401712,
-0.4551992416,
0.081403017,
-0.1902178824,
0.1692913771,
0.2197065502,
-0.0001198312,
0.1218881682,
0.4944891632,
0.0348096527,
-0.3272898793,
-0.2021761239,
-0.4330078363,
-0.0092645288,
0.0870781839,
-0.1436471939,
0.0807449147,
-0.6088299155,
-0.1147286668,
-0.0512156673,
0.655724287,
0.4015835822,
0.1428909153,
-0.0290070325,
0.0268664435,
0.1402500421,
0.1853507608,
0.0857897922,
-0.0909137204,
0.2903932035,
0.1863135397,
-0.371334374,
-0.1648489386,
0.248995021,
-0.008229983,
0.2453747392,
0.0232779179,
0.2014267147,
0.0501030609,
-0.0893855244,
0.0305846203,
0.2426168323,
0.2190140784,
0.0032317028,
-0.3280739784,
-0.288374424,
-0.0788065121,
-0.138647899,
0.3352195919,
0.2933968902,
-0.2523528636,
0.2960198224,
-0.2132369876,
-0.0541490875,
-0.1078112796,
0.304715395,
-0.0155781722,
0.0601173379,
-0.0999124572,
0.242251128,
0.1177485064,
-0.0016651354,
-0.0192423929,
-0.3969207704,
-0.1754958332,
-0.0836559832,
-0.1642664969,
0.0518702269,
0.1015058607,
0.2113348544,
0.0896992385,
0.1292407215,
-0.1634976417,
0.1579477787,
-0.0633963048,
0.1237574145,
0.4871356487,
-0.0672670826,
-0.0353507735,
0.3062380254,
0.0462120362,
-0.0696401,
0.0905089155,
0.0601204745,
-0.2188421935,
-0.2658319175,
-0.1459763795,
0.0245482046,
0.2922028899,
-0.0578252375,
-0.4480500519,
0.194895044,
-0.1858043969,
-0.1787950248,
-0.0729414672,
0.2858642042,
-0.0852143466,
-0.0187171884,
0.3159789741,
0.3502246141,
-0.2379291356,
-0.1582434177,
-0.0179345962,
-0.0238097571,
-0.1579126716,
-0.0423047394,
0.1803118587,
0.1152965203,
0.1498202533,
-0.0118053844,
0.0130214449,
-0.2015031576,
0.3386761844,
-0.2770757377,
0.040041808,
0.0228159223,
0.1537956148,
0.2217425108,
0.293345511,
-0.3227155805,
-0.1121332794,
0.1919394881,
-0.4252031744,
-0.1673396826,
-0.1239400357,
0.1085193232,
-0.191002503,
-0.0395028293,
-0.418420881,
0.2583845258,
-0.1628275663,
0.1221970171,
0.0899063647,
-0.2024017423,
-0.2053606659,
-0.1559070051,
-0.0184547994,
0.4925528765,
-0.293797195,
-0.1551627517,
0.0094838329,
-0.4077320397,
0.2635619044,
0.3806162477,
-0.162386179,
0.3524317741,
-0.2984900475,
0.2143801153,
0.3317295611,
-0.5110266209,
-0.2720244527,
0.6287518144,
0.0108364476,
0.3247801661,
-0.2500393093,
-0.330304116,
0.2926410139,
-0.0095388517,
0.4710422456,
0.5840806365,
-0.0610024557,
0.0973239467,
-0.077334173,
-0.4807218313,
0.3019636869,
0.4109523892,
-0.0022044072,
0.0334702954,
0.1762740314,
-0.0188531671,
0.2200164497,
-0.0466201901,
0.1678164005,
0.3642239571,
-0.1274958998,
0.0723098218,
0.2101636231,
0.1216134727,
-0.2524523139,
0.0845073685,
-0.0305780079,
-0.1661647558,
-0.1017013341,
-0.0336790308,
-0.2528522313,
-0.0447927751,
-0.46900177,
0.0247386601,
0.1108229905,
0.0283777993,
-0.1594007313,
-0.1201711446,
0.0516031533,
0.27830863,
0.03589499,
0.1106713042,
-0.0583324358,
0.3709382713,
-0.0510651544,
-0.1081675217,
0.257784605,
0.1967159957,
0.0565164387,
-0.1951216608,
-0.1285849512,
0.3041705787,
0.2497038394,
0.2616102695,
-0.1456338167,
-0.1403813064,
0.1297693849,
-0.4586940408,
-0.0896444395,
0.4309305549,
0.1927977055,
-0.1908615977,
-0.068991825,
0.2968378663,
-0.1646571755,
0.3404626846,
0.0581003614,
0.1622577161,
0.2490879446,
-0.1457846165,
-0.2090301663,
-0.2719111443,
0.4444168508,
0.0185567159,
-0.0338355452,
-0.0778679699,
-0.0652619451,
0.0059608356,
0.9233273864,
-0.1860152185,
0.1550828218,
0.3125481308,
-0.1018834114,
-0.0300554689,
0.0338882506,
0.0091056963,
0.524723947,
0.0189479571,
0.0802056268,
0.4139404595,
0.0560121909,
0.0461981483,
0.1814299375,
0.2345638722,
0.2024870068,
0.2256599814,
-0.1341653913,
-0.040765442,
-0.3075932264,
-0.3679964244,
0.1346424222,
0.1387951374,
-0.4937200844,
0.2256506532,
-0.461150974,
-0.022028219,
-0.1406606436,
-0.4042495787,
-0.0584545434,
-0.3211015761,
0.0403069854,
0.0469965115,
-0.1497903615,
0.0916268378,
-0.3398471475,
0.082281962,
-0.0216801167,
-0.1857351065,
-0.108455725,
-0.1310913116,
-0.2666296959,
0.0070297909,
0.3140654862,
-0.0728212968,
0.2149759084,
-0.2981951237,
0.0279759467,
0.0392101705,
-0.0616474003,
0.3070314229,
-0.1579625458,
0.208439067,
0.161265403,
0.0507117324,
-0.2296816409,
-0.3069752455,
0.2184950113,
0.1699924618,
-0.2268129289,
0.2500760853,
0.0500065647,
-0.1125413775,
-0.102417849,
-0.1422100067,
-0.2597033083,
-0.2490176708,
0.3231697381,
0.0817606524,
0.0994245932,
0.1296583116,
-0.1135120392,
0.3421397507,
0.0973074809,
-0.1145236418,
-0.4607699513,
-0.0153145213,
0.2574807405,
-0.3794060051,
-0.2506862879,
0.1186396405,
-0.0462022237,
-0.1134563461,
-0.0258647036,
-0.5742095113,
-0.0142516224,
-0.1132351756,
0.1553026438,
-0.3547058105,
-0.0501350835,
0.1064793766,
0.0460093915,
0.0937209353,
-0.2193855494,
-0.1211289689,
0.0325309262,
-0.0728739426,
0.4134821892,
-0.0251230802,
0.6095141768,
-0.1929671317,
0.2468160093,
0.5080026388,
0.3667128384,
0.2762945592,
-0.1935124695,
0.1775277108,
-0.0378326289,
-0.0923716128,
0.2582373321,
-0.187841028,
0.2089768797,
0.2728345394,
0.1192179024,
-0.2497426271,
-0.0172737557,
-0.0374045931,
-0.5823125839,
-0.4338467121,
0.1530111581,
-0.0863603204,
-0.0778122023,
0.0507846922,
0.2859056592,
-0.0416478962,
-0.0772460476,
-0.1338884085,
0.3123598099,
0.0025693465,
0.1401858777,
-0.1990314573,
-0.1729299426,
-0.3171238601,
0.1245038658,
-0.0864001587,
0.4834387004,
-0.1708198786,
0.3166979849,
0.1015280038,
-0.2330021411,
0.7412669063,
-0.2756133974,
0.1618671864,
0.0790739805,
0.3046824038,
-0.4524528682,
-0.0378888063,
-0.2837693095,
0.3549791574,
0.1275291145,
0.2411563993,
-0.2644320726,
-0.1182980761,
0.1919902712,
0.1910147667,
-0.2315646261,
-0.1551598608,
-0.325976491,
-0.8166644573,
-0.3782943487,
-0.1946810931,
0.3285314739,
0.1574901193,
-0.0080652628,
-0.0822429955,
0.0185045153,
0.0927917808,
0.1833205223,
-0.0020389741,
0.1575545222,
0.1465193182,
0.0572725274,
0.1297603548,
0.1868716627,
0.0262075681,
0.8269633055,
0.3106043637,
-0.5212931633,
0.2427426875,
-0.1760543436,
-0.022744406,
0.2260769755,
-0.1299825907,
-0.079911761,
0.0911532491,
0.2818122804,
-0.4481184185,
0.0332680531,
0.4080580771,
-0.0066945087,
-0.3659456968,
-0.1824551374,
0.4902800918,
-0.1122830883,
-0.0542546958,
0.3957289457,
0.5383885503,
-0.3827526867,
0.3704436421,
-0.0472683944,
0.8026754856,
0.2136369497,
0.0076136542,
0.5026301742,
-0.5735384822,
0.2489011437,
-0.0673595592,
-0.0734870732,
-0.0983864516,
0.0865763053,
-0.1573195159,
-0.0334815867,
0.2059183121,
0.358895123,
-0.2488151938,
0.0226923712,
0.2268870026,
-0.2379538864,
0.1762864739,
0.2385283262,
-0.3231636882,
-0.1989764869,
-0.266872555,
0.079397209,
-0.1811458021,
0.1929061711,
-0.087774314,
-0.0886615515,
0.030982852,
-0.2872934639,
-0.4625533819,
0.3222780526,
-0.2287329882,
0.2370306104,
0.0856112987,
0.0705682635,
0.2744886875,
-0.1262204349,
0.2743162513,
-0.2135298997,
-0.1729749888,
0.2569274604,
-0.2432442755,
0.1208408177,
0.0753554925,
-0.162928611,
0.1816312969,
-0.2073288411,
-0.5375798345,
-0.0501902625,
-0.1583831459,
-0.4597317278,
-0.1058520824,
0.1566949785,
-0.3507362902,
-0.1423188299,
-0.1870340258,
-0.0200041737,
0.0551587455,
0.0641499013,
0.0325317495,
0.0676743612,
0.0367955789,
0.4690811038,
-0.0752126798,
-0.3788243234,
-0.0318953805,
0.1820544004,
-0.229892388,
-0.036376819,
0.6238436699,
0.2674331069,
-0.1762402207,
-0.1396307349,
0.2404734641,
0.3817258775,
-0.0798503011,
-0.2453042269,
-0.1275421679,
0.2880230546,
-0.0614801198,
0.027527282,
0.1150131226,
-0.0543770492,
0.1168115437,
-0.6627496481,
-0.1394592673,
0.346442908,
0.0221115816,
-0.2416149378,
0.0259364583,
0.0971985161,
0.0347383171,
-0.2118203789,
-0.18992652,
0.1925812662,
-0.0452363938,
0.1018749997,
-0.0879559815,
-0.0888424888,
0.3293844759,
-0.0378108434,
0.0144337807,
0.0613638014,
0.1151461005,
-0.114062421,
-0.316432178,
0.1970477104,
0.0725117922,
-0.4723587334,
-0.0078824926,
-0.1541277766,
-0.0637460053,
-0.0189466607,
0.1375550181,
0.2217822224,
-0.0430438146,
0.2481678128,
-0.4047923088,
0.0613262244,
0.0285780989,
-0.1320007741,
0.0297458544,
0.832873404,
-0.0440971591,
0.2187922001,
0.2867732346,
0.0409653075,
-0.223556757,
0.0302187447,
-0.0717666745,
0.1702478081,
0.397374481,
-0.2796153128,
0.4103116393,
-0.0677054375,
0.167172879,
0.5154780149,
-0.3857298195,
0.0094349645,
0.2452152818,
0.0928043798,
-0.0724211782,
-0.0476936027,
0.4049891233,
-0.1020432636,
-0.0842301995,
0.1916326731,
-0.3814827502,
0.0759212971,
-0.2584766746,
-0.1525020748,
0.3138320148,
0.2935934961,
0.1102359518,
0.365067184,
-0.2722982764,
0.1871520877,
-0.0303880218,
0.1145798713,
0.3168928623,
0.450931251,
-0.1138791591,
0.0784605369,
-0.3261548281,
0.3612879813,
-0.0509545617,
-0.4903669059,
-0.0606086068,
0.2124315947,
-0.0717370957,
0.4705011547,
0.0511784032,
-0.0627942681,
-0.4431337714,
0.043376334,
-0.3669300079,
0.0539995171,
0.1315045953,
-0.2230794728,
-0.2180446684,
-0.0242041815,
-0.3730876148,
0.1064561903,
-0.0490605794,
-0.382003516,
-0.0379238054,
0.2490318716,
-0.1305324584,
-0.3429677784,
0.1603454798,
0.1043208018,
0.1030728966,
-0.392741859,
0.1975452155,
0.2589795589,
0.2422739565,
0.1948425919,
0.0926817432,
0.3498042226,
0.2201948762,
-0.4257212579,
-0.0500687659,
-0.105309628,
-0.064621985,
-0.1460928768,
0.4472827911,
0.1749531627,
-0.081881173,
0.4011391699,
0.1168095395,
-0.1012336463,
0.0976401791,
0.2883227766,
-0.1410844773,
-0.1788493693,
0.2855690122,
-0.3534194231,
0.2045450509,
-0.1655643284,
-0.220312953,
-0.2555755079,
-0.2192953825,
0.2338056862,
-0.031259153,
0.1294746101,
-0.1532984376,
0.0140225124,
0.0119492766,
0.3824175,
0.3050079942,
0.2788800895,
-0.1241928488,
-0.1840639114,
-0.3153487146,
0.0253982302,
-0.2847113907,
-0.2506228685,
0.1554742903,
0.0708771572,
-0.1746007204,
0.3591209054,
0.0498731583,
0.4428434372,
0.1114143282,
0.1863829345,
-0.1461455077,
-0.3172510564,
0.4438598454,
0.414404273,
-0.1750415713,
-0.4612671435,
0.225105837,
0.2361631542,
-0.1488851458,
-0.2414572835,
-0.1568927765,
-0.1976628006,
-0.2074342817,
0.2476858497,
0.4718891382,
0.2960594296,
-0.1901386082,
-0.0413574502,
-0.2893474996,
-0.3693339825,
-0.0213392302,
0.5253269672,
-0.1727517992,
0.2607081831,
-0.0730917901,
0.0636251196,
-0.2339999974,
-0.0550145954,
-0.2188571393,
-0.0434653088,
-0.2975839078,
0.3721769154,
-0.1881470084,
0.2759253383,
-0.0539895333,
0.4072673023,
0.004049683,
0.4098053873,
-0.079503268,
-0.2372464836,
0.2398970127,
-0.3824099004,
-0.2967884243,
0.3267814517,
0.2042010427,
0.0205795784,
-0.2468756884,
-0.3127251267,
0.0408110246,
0.3302119076,
-0.0210479498,
-0.2623265684,
0.0157846119,
0.0136477696,
-0.0454829298,
0.0051556979,
0.5762954354,
0.0852109641,
-0.3399920166,
0.4717288613,
-0.0604917631
] |
https://github.com/huggingface/datasets/issues/4149 | load_dataset for winoground returning decoding error | Apologies for the delay. I added a custom dataset loading script for winoground. It should work now, with an auth token:
`examples = load_dataset('facebook/winoground', use_auth_token=<your auth token>)`
Let me know if there are any issues | ## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
| 35 | load_dataset for winoground returning decoding error
## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
Apologies for the delay. I added a custom dataset loading script for winoground. It should work now, with an auth token:
`examples = load_dataset('facebook/winoground', use_auth_token=<your auth token>)`
Let me know if there are any issues | [
-0.1866350323,
0.3816437423,
-0.0002151771,
0.4397816956,
0.2120900154,
0.1175744459,
0.0252054855,
0.1846736521,
0.0800222754,
-0.1368634403,
-0.1777786762,
0.0833095759,
0.0109347403,
0.0449507199,
-0.2806118429,
-0.2287354767,
-0.0568579063,
-0.0361913219,
0.0943902135,
-0.0962768197,
-0.6502005458,
0.4393961728,
-0.2659928203,
0.3251313567,
0.0718700513,
-0.1280073375,
-0.2038558424,
0.4244276881,
-0.2437401712,
-0.4551992416,
0.081403017,
-0.1902178824,
0.1692913771,
0.2197065502,
-0.0001198312,
0.1218881682,
0.4944891632,
0.0348096527,
-0.3272898793,
-0.2021761239,
-0.4330078363,
-0.0092645288,
0.0870781839,
-0.1436471939,
0.0807449147,
-0.6088299155,
-0.1147286668,
-0.0512156673,
0.655724287,
0.4015835822,
0.1428909153,
-0.0290070325,
0.0268664435,
0.1402500421,
0.1853507608,
0.0857897922,
-0.0909137204,
0.2903932035,
0.1863135397,
-0.371334374,
-0.1648489386,
0.248995021,
-0.008229983,
0.2453747392,
0.0232779179,
0.2014267147,
0.0501030609,
-0.0893855244,
0.0305846203,
0.2426168323,
0.2190140784,
0.0032317028,
-0.3280739784,
-0.288374424,
-0.0788065121,
-0.138647899,
0.3352195919,
0.2933968902,
-0.2523528636,
0.2960198224,
-0.2132369876,
-0.0541490875,
-0.1078112796,
0.304715395,
-0.0155781722,
0.0601173379,
-0.0999124572,
0.242251128,
0.1177485064,
-0.0016651354,
-0.0192423929,
-0.3969207704,
-0.1754958332,
-0.0836559832,
-0.1642664969,
0.0518702269,
0.1015058607,
0.2113348544,
0.0896992385,
0.1292407215,
-0.1634976417,
0.1579477787,
-0.0633963048,
0.1237574145,
0.4871356487,
-0.0672670826,
-0.0353507735,
0.3062380254,
0.0462120362,
-0.0696401,
0.0905089155,
0.0601204745,
-0.2188421935,
-0.2658319175,
-0.1459763795,
0.0245482046,
0.2922028899,
-0.0578252375,
-0.4480500519,
0.194895044,
-0.1858043969,
-0.1787950248,
-0.0729414672,
0.2858642042,
-0.0852143466,
-0.0187171884,
0.3159789741,
0.3502246141,
-0.2379291356,
-0.1582434177,
-0.0179345962,
-0.0238097571,
-0.1579126716,
-0.0423047394,
0.1803118587,
0.1152965203,
0.1498202533,
-0.0118053844,
0.0130214449,
-0.2015031576,
0.3386761844,
-0.2770757377,
0.040041808,
0.0228159223,
0.1537956148,
0.2217425108,
0.293345511,
-0.3227155805,
-0.1121332794,
0.1919394881,
-0.4252031744,
-0.1673396826,
-0.1239400357,
0.1085193232,
-0.191002503,
-0.0395028293,
-0.418420881,
0.2583845258,
-0.1628275663,
0.1221970171,
0.0899063647,
-0.2024017423,
-0.2053606659,
-0.1559070051,
-0.0184547994,
0.4925528765,
-0.293797195,
-0.1551627517,
0.0094838329,
-0.4077320397,
0.2635619044,
0.3806162477,
-0.162386179,
0.3524317741,
-0.2984900475,
0.2143801153,
0.3317295611,
-0.5110266209,
-0.2720244527,
0.6287518144,
0.0108364476,
0.3247801661,
-0.2500393093,
-0.330304116,
0.2926410139,
-0.0095388517,
0.4710422456,
0.5840806365,
-0.0610024557,
0.0973239467,
-0.077334173,
-0.4807218313,
0.3019636869,
0.4109523892,
-0.0022044072,
0.0334702954,
0.1762740314,
-0.0188531671,
0.2200164497,
-0.0466201901,
0.1678164005,
0.3642239571,
-0.1274958998,
0.0723098218,
0.2101636231,
0.1216134727,
-0.2524523139,
0.0845073685,
-0.0305780079,
-0.1661647558,
-0.1017013341,
-0.0336790308,
-0.2528522313,
-0.0447927751,
-0.46900177,
0.0247386601,
0.1108229905,
0.0283777993,
-0.1594007313,
-0.1201711446,
0.0516031533,
0.27830863,
0.03589499,
0.1106713042,
-0.0583324358,
0.3709382713,
-0.0510651544,
-0.1081675217,
0.257784605,
0.1967159957,
0.0565164387,
-0.1951216608,
-0.1285849512,
0.3041705787,
0.2497038394,
0.2616102695,
-0.1456338167,
-0.1403813064,
0.1297693849,
-0.4586940408,
-0.0896444395,
0.4309305549,
0.1927977055,
-0.1908615977,
-0.068991825,
0.2968378663,
-0.1646571755,
0.3404626846,
0.0581003614,
0.1622577161,
0.2490879446,
-0.1457846165,
-0.2090301663,
-0.2719111443,
0.4444168508,
0.0185567159,
-0.0338355452,
-0.0778679699,
-0.0652619451,
0.0059608356,
0.9233273864,
-0.1860152185,
0.1550828218,
0.3125481308,
-0.1018834114,
-0.0300554689,
0.0338882506,
0.0091056963,
0.524723947,
0.0189479571,
0.0802056268,
0.4139404595,
0.0560121909,
0.0461981483,
0.1814299375,
0.2345638722,
0.2024870068,
0.2256599814,
-0.1341653913,
-0.040765442,
-0.3075932264,
-0.3679964244,
0.1346424222,
0.1387951374,
-0.4937200844,
0.2256506532,
-0.461150974,
-0.022028219,
-0.1406606436,
-0.4042495787,
-0.0584545434,
-0.3211015761,
0.0403069854,
0.0469965115,
-0.1497903615,
0.0916268378,
-0.3398471475,
0.082281962,
-0.0216801167,
-0.1857351065,
-0.108455725,
-0.1310913116,
-0.2666296959,
0.0070297909,
0.3140654862,
-0.0728212968,
0.2149759084,
-0.2981951237,
0.0279759467,
0.0392101705,
-0.0616474003,
0.3070314229,
-0.1579625458,
0.208439067,
0.161265403,
0.0507117324,
-0.2296816409,
-0.3069752455,
0.2184950113,
0.1699924618,
-0.2268129289,
0.2500760853,
0.0500065647,
-0.1125413775,
-0.102417849,
-0.1422100067,
-0.2597033083,
-0.2490176708,
0.3231697381,
0.0817606524,
0.0994245932,
0.1296583116,
-0.1135120392,
0.3421397507,
0.0973074809,
-0.1145236418,
-0.4607699513,
-0.0153145213,
0.2574807405,
-0.3794060051,
-0.2506862879,
0.1186396405,
-0.0462022237,
-0.1134563461,
-0.0258647036,
-0.5742095113,
-0.0142516224,
-0.1132351756,
0.1553026438,
-0.3547058105,
-0.0501350835,
0.1064793766,
0.0460093915,
0.0937209353,
-0.2193855494,
-0.1211289689,
0.0325309262,
-0.0728739426,
0.4134821892,
-0.0251230802,
0.6095141768,
-0.1929671317,
0.2468160093,
0.5080026388,
0.3667128384,
0.2762945592,
-0.1935124695,
0.1775277108,
-0.0378326289,
-0.0923716128,
0.2582373321,
-0.187841028,
0.2089768797,
0.2728345394,
0.1192179024,
-0.2497426271,
-0.0172737557,
-0.0374045931,
-0.5823125839,
-0.4338467121,
0.1530111581,
-0.0863603204,
-0.0778122023,
0.0507846922,
0.2859056592,
-0.0416478962,
-0.0772460476,
-0.1338884085,
0.3123598099,
0.0025693465,
0.1401858777,
-0.1990314573,
-0.1729299426,
-0.3171238601,
0.1245038658,
-0.0864001587,
0.4834387004,
-0.1708198786,
0.3166979849,
0.1015280038,
-0.2330021411,
0.7412669063,
-0.2756133974,
0.1618671864,
0.0790739805,
0.3046824038,
-0.4524528682,
-0.0378888063,
-0.2837693095,
0.3549791574,
0.1275291145,
0.2411563993,
-0.2644320726,
-0.1182980761,
0.1919902712,
0.1910147667,
-0.2315646261,
-0.1551598608,
-0.325976491,
-0.8166644573,
-0.3782943487,
-0.1946810931,
0.3285314739,
0.1574901193,
-0.0080652628,
-0.0822429955,
0.0185045153,
0.0927917808,
0.1833205223,
-0.0020389741,
0.1575545222,
0.1465193182,
0.0572725274,
0.1297603548,
0.1868716627,
0.0262075681,
0.8269633055,
0.3106043637,
-0.5212931633,
0.2427426875,
-0.1760543436,
-0.022744406,
0.2260769755,
-0.1299825907,
-0.079911761,
0.0911532491,
0.2818122804,
-0.4481184185,
0.0332680531,
0.4080580771,
-0.0066945087,
-0.3659456968,
-0.1824551374,
0.4902800918,
-0.1122830883,
-0.0542546958,
0.3957289457,
0.5383885503,
-0.3827526867,
0.3704436421,
-0.0472683944,
0.8026754856,
0.2136369497,
0.0076136542,
0.5026301742,
-0.5735384822,
0.2489011437,
-0.0673595592,
-0.0734870732,
-0.0983864516,
0.0865763053,
-0.1573195159,
-0.0334815867,
0.2059183121,
0.358895123,
-0.2488151938,
0.0226923712,
0.2268870026,
-0.2379538864,
0.1762864739,
0.2385283262,
-0.3231636882,
-0.1989764869,
-0.266872555,
0.079397209,
-0.1811458021,
0.1929061711,
-0.087774314,
-0.0886615515,
0.030982852,
-0.2872934639,
-0.4625533819,
0.3222780526,
-0.2287329882,
0.2370306104,
0.0856112987,
0.0705682635,
0.2744886875,
-0.1262204349,
0.2743162513,
-0.2135298997,
-0.1729749888,
0.2569274604,
-0.2432442755,
0.1208408177,
0.0753554925,
-0.162928611,
0.1816312969,
-0.2073288411,
-0.5375798345,
-0.0501902625,
-0.1583831459,
-0.4597317278,
-0.1058520824,
0.1566949785,
-0.3507362902,
-0.1423188299,
-0.1870340258,
-0.0200041737,
0.0551587455,
0.0641499013,
0.0325317495,
0.0676743612,
0.0367955789,
0.4690811038,
-0.0752126798,
-0.3788243234,
-0.0318953805,
0.1820544004,
-0.229892388,
-0.036376819,
0.6238436699,
0.2674331069,
-0.1762402207,
-0.1396307349,
0.2404734641,
0.3817258775,
-0.0798503011,
-0.2453042269,
-0.1275421679,
0.2880230546,
-0.0614801198,
0.027527282,
0.1150131226,
-0.0543770492,
0.1168115437,
-0.6627496481,
-0.1394592673,
0.346442908,
0.0221115816,
-0.2416149378,
0.0259364583,
0.0971985161,
0.0347383171,
-0.2118203789,
-0.18992652,
0.1925812662,
-0.0452363938,
0.1018749997,
-0.0879559815,
-0.0888424888,
0.3293844759,
-0.0378108434,
0.0144337807,
0.0613638014,
0.1151461005,
-0.114062421,
-0.316432178,
0.1970477104,
0.0725117922,
-0.4723587334,
-0.0078824926,
-0.1541277766,
-0.0637460053,
-0.0189466607,
0.1375550181,
0.2217822224,
-0.0430438146,
0.2481678128,
-0.4047923088,
0.0613262244,
0.0285780989,
-0.1320007741,
0.0297458544,
0.832873404,
-0.0440971591,
0.2187922001,
0.2867732346,
0.0409653075,
-0.223556757,
0.0302187447,
-0.0717666745,
0.1702478081,
0.397374481,
-0.2796153128,
0.4103116393,
-0.0677054375,
0.167172879,
0.5154780149,
-0.3857298195,
0.0094349645,
0.2452152818,
0.0928043798,
-0.0724211782,
-0.0476936027,
0.4049891233,
-0.1020432636,
-0.0842301995,
0.1916326731,
-0.3814827502,
0.0759212971,
-0.2584766746,
-0.1525020748,
0.3138320148,
0.2935934961,
0.1102359518,
0.365067184,
-0.2722982764,
0.1871520877,
-0.0303880218,
0.1145798713,
0.3168928623,
0.450931251,
-0.1138791591,
0.0784605369,
-0.3261548281,
0.3612879813,
-0.0509545617,
-0.4903669059,
-0.0606086068,
0.2124315947,
-0.0717370957,
0.4705011547,
0.0511784032,
-0.0627942681,
-0.4431337714,
0.043376334,
-0.3669300079,
0.0539995171,
0.1315045953,
-0.2230794728,
-0.2180446684,
-0.0242041815,
-0.3730876148,
0.1064561903,
-0.0490605794,
-0.382003516,
-0.0379238054,
0.2490318716,
-0.1305324584,
-0.3429677784,
0.1603454798,
0.1043208018,
0.1030728966,
-0.392741859,
0.1975452155,
0.2589795589,
0.2422739565,
0.1948425919,
0.0926817432,
0.3498042226,
0.2201948762,
-0.4257212579,
-0.0500687659,
-0.105309628,
-0.064621985,
-0.1460928768,
0.4472827911,
0.1749531627,
-0.081881173,
0.4011391699,
0.1168095395,
-0.1012336463,
0.0976401791,
0.2883227766,
-0.1410844773,
-0.1788493693,
0.2855690122,
-0.3534194231,
0.2045450509,
-0.1655643284,
-0.220312953,
-0.2555755079,
-0.2192953825,
0.2338056862,
-0.031259153,
0.1294746101,
-0.1532984376,
0.0140225124,
0.0119492766,
0.3824175,
0.3050079942,
0.2788800895,
-0.1241928488,
-0.1840639114,
-0.3153487146,
0.0253982302,
-0.2847113907,
-0.2506228685,
0.1554742903,
0.0708771572,
-0.1746007204,
0.3591209054,
0.0498731583,
0.4428434372,
0.1114143282,
0.1863829345,
-0.1461455077,
-0.3172510564,
0.4438598454,
0.414404273,
-0.1750415713,
-0.4612671435,
0.225105837,
0.2361631542,
-0.1488851458,
-0.2414572835,
-0.1568927765,
-0.1976628006,
-0.2074342817,
0.2476858497,
0.4718891382,
0.2960594296,
-0.1901386082,
-0.0413574502,
-0.2893474996,
-0.3693339825,
-0.0213392302,
0.5253269672,
-0.1727517992,
0.2607081831,
-0.0730917901,
0.0636251196,
-0.2339999974,
-0.0550145954,
-0.2188571393,
-0.0434653088,
-0.2975839078,
0.3721769154,
-0.1881470084,
0.2759253383,
-0.0539895333,
0.4072673023,
0.004049683,
0.4098053873,
-0.079503268,
-0.2372464836,
0.2398970127,
-0.3824099004,
-0.2967884243,
0.3267814517,
0.2042010427,
0.0205795784,
-0.2468756884,
-0.3127251267,
0.0408110246,
0.3302119076,
-0.0210479498,
-0.2623265684,
0.0157846119,
0.0136477696,
-0.0454829298,
0.0051556979,
0.5762954354,
0.0852109641,
-0.3399920166,
0.4717288613,
-0.0604917631
] |
https://github.com/huggingface/datasets/issues/4149 | load_dataset for winoground returning decoding error | Adding the dataset loading script definitely didn't take as long as I thought it would π
| ## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
| 16 | load_dataset for winoground returning decoding error
## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
Adding the dataset loading script definitely didn't take as long as I thought it would π
| [
-0.1866350323,
0.3816437423,
-0.0002151771,
0.4397816956,
0.2120900154,
0.1175744459,
0.0252054855,
0.1846736521,
0.0800222754,
-0.1368634403,
-0.1777786762,
0.0833095759,
0.0109347403,
0.0449507199,
-0.2806118429,
-0.2287354767,
-0.0568579063,
-0.0361913219,
0.0943902135,
-0.0962768197,
-0.6502005458,
0.4393961728,
-0.2659928203,
0.3251313567,
0.0718700513,
-0.1280073375,
-0.2038558424,
0.4244276881,
-0.2437401712,
-0.4551992416,
0.081403017,
-0.1902178824,
0.1692913771,
0.2197065502,
-0.0001198312,
0.1218881682,
0.4944891632,
0.0348096527,
-0.3272898793,
-0.2021761239,
-0.4330078363,
-0.0092645288,
0.0870781839,
-0.1436471939,
0.0807449147,
-0.6088299155,
-0.1147286668,
-0.0512156673,
0.655724287,
0.4015835822,
0.1428909153,
-0.0290070325,
0.0268664435,
0.1402500421,
0.1853507608,
0.0857897922,
-0.0909137204,
0.2903932035,
0.1863135397,
-0.371334374,
-0.1648489386,
0.248995021,
-0.008229983,
0.2453747392,
0.0232779179,
0.2014267147,
0.0501030609,
-0.0893855244,
0.0305846203,
0.2426168323,
0.2190140784,
0.0032317028,
-0.3280739784,
-0.288374424,
-0.0788065121,
-0.138647899,
0.3352195919,
0.2933968902,
-0.2523528636,
0.2960198224,
-0.2132369876,
-0.0541490875,
-0.1078112796,
0.304715395,
-0.0155781722,
0.0601173379,
-0.0999124572,
0.242251128,
0.1177485064,
-0.0016651354,
-0.0192423929,
-0.3969207704,
-0.1754958332,
-0.0836559832,
-0.1642664969,
0.0518702269,
0.1015058607,
0.2113348544,
0.0896992385,
0.1292407215,
-0.1634976417,
0.1579477787,
-0.0633963048,
0.1237574145,
0.4871356487,
-0.0672670826,
-0.0353507735,
0.3062380254,
0.0462120362,
-0.0696401,
0.0905089155,
0.0601204745,
-0.2188421935,
-0.2658319175,
-0.1459763795,
0.0245482046,
0.2922028899,
-0.0578252375,
-0.4480500519,
0.194895044,
-0.1858043969,
-0.1787950248,
-0.0729414672,
0.2858642042,
-0.0852143466,
-0.0187171884,
0.3159789741,
0.3502246141,
-0.2379291356,
-0.1582434177,
-0.0179345962,
-0.0238097571,
-0.1579126716,
-0.0423047394,
0.1803118587,
0.1152965203,
0.1498202533,
-0.0118053844,
0.0130214449,
-0.2015031576,
0.3386761844,
-0.2770757377,
0.040041808,
0.0228159223,
0.1537956148,
0.2217425108,
0.293345511,
-0.3227155805,
-0.1121332794,
0.1919394881,
-0.4252031744,
-0.1673396826,
-0.1239400357,
0.1085193232,
-0.191002503,
-0.0395028293,
-0.418420881,
0.2583845258,
-0.1628275663,
0.1221970171,
0.0899063647,
-0.2024017423,
-0.2053606659,
-0.1559070051,
-0.0184547994,
0.4925528765,
-0.293797195,
-0.1551627517,
0.0094838329,
-0.4077320397,
0.2635619044,
0.3806162477,
-0.162386179,
0.3524317741,
-0.2984900475,
0.2143801153,
0.3317295611,
-0.5110266209,
-0.2720244527,
0.6287518144,
0.0108364476,
0.3247801661,
-0.2500393093,
-0.330304116,
0.2926410139,
-0.0095388517,
0.4710422456,
0.5840806365,
-0.0610024557,
0.0973239467,
-0.077334173,
-0.4807218313,
0.3019636869,
0.4109523892,
-0.0022044072,
0.0334702954,
0.1762740314,
-0.0188531671,
0.2200164497,
-0.0466201901,
0.1678164005,
0.3642239571,
-0.1274958998,
0.0723098218,
0.2101636231,
0.1216134727,
-0.2524523139,
0.0845073685,
-0.0305780079,
-0.1661647558,
-0.1017013341,
-0.0336790308,
-0.2528522313,
-0.0447927751,
-0.46900177,
0.0247386601,
0.1108229905,
0.0283777993,
-0.1594007313,
-0.1201711446,
0.0516031533,
0.27830863,
0.03589499,
0.1106713042,
-0.0583324358,
0.3709382713,
-0.0510651544,
-0.1081675217,
0.257784605,
0.1967159957,
0.0565164387,
-0.1951216608,
-0.1285849512,
0.3041705787,
0.2497038394,
0.2616102695,
-0.1456338167,
-0.1403813064,
0.1297693849,
-0.4586940408,
-0.0896444395,
0.4309305549,
0.1927977055,
-0.1908615977,
-0.068991825,
0.2968378663,
-0.1646571755,
0.3404626846,
0.0581003614,
0.1622577161,
0.2490879446,
-0.1457846165,
-0.2090301663,
-0.2719111443,
0.4444168508,
0.0185567159,
-0.0338355452,
-0.0778679699,
-0.0652619451,
0.0059608356,
0.9233273864,
-0.1860152185,
0.1550828218,
0.3125481308,
-0.1018834114,
-0.0300554689,
0.0338882506,
0.0091056963,
0.524723947,
0.0189479571,
0.0802056268,
0.4139404595,
0.0560121909,
0.0461981483,
0.1814299375,
0.2345638722,
0.2024870068,
0.2256599814,
-0.1341653913,
-0.040765442,
-0.3075932264,
-0.3679964244,
0.1346424222,
0.1387951374,
-0.4937200844,
0.2256506532,
-0.461150974,
-0.022028219,
-0.1406606436,
-0.4042495787,
-0.0584545434,
-0.3211015761,
0.0403069854,
0.0469965115,
-0.1497903615,
0.0916268378,
-0.3398471475,
0.082281962,
-0.0216801167,
-0.1857351065,
-0.108455725,
-0.1310913116,
-0.2666296959,
0.0070297909,
0.3140654862,
-0.0728212968,
0.2149759084,
-0.2981951237,
0.0279759467,
0.0392101705,
-0.0616474003,
0.3070314229,
-0.1579625458,
0.208439067,
0.161265403,
0.0507117324,
-0.2296816409,
-0.3069752455,
0.2184950113,
0.1699924618,
-0.2268129289,
0.2500760853,
0.0500065647,
-0.1125413775,
-0.102417849,
-0.1422100067,
-0.2597033083,
-0.2490176708,
0.3231697381,
0.0817606524,
0.0994245932,
0.1296583116,
-0.1135120392,
0.3421397507,
0.0973074809,
-0.1145236418,
-0.4607699513,
-0.0153145213,
0.2574807405,
-0.3794060051,
-0.2506862879,
0.1186396405,
-0.0462022237,
-0.1134563461,
-0.0258647036,
-0.5742095113,
-0.0142516224,
-0.1132351756,
0.1553026438,
-0.3547058105,
-0.0501350835,
0.1064793766,
0.0460093915,
0.0937209353,
-0.2193855494,
-0.1211289689,
0.0325309262,
-0.0728739426,
0.4134821892,
-0.0251230802,
0.6095141768,
-0.1929671317,
0.2468160093,
0.5080026388,
0.3667128384,
0.2762945592,
-0.1935124695,
0.1775277108,
-0.0378326289,
-0.0923716128,
0.2582373321,
-0.187841028,
0.2089768797,
0.2728345394,
0.1192179024,
-0.2497426271,
-0.0172737557,
-0.0374045931,
-0.5823125839,
-0.4338467121,
0.1530111581,
-0.0863603204,
-0.0778122023,
0.0507846922,
0.2859056592,
-0.0416478962,
-0.0772460476,
-0.1338884085,
0.3123598099,
0.0025693465,
0.1401858777,
-0.1990314573,
-0.1729299426,
-0.3171238601,
0.1245038658,
-0.0864001587,
0.4834387004,
-0.1708198786,
0.3166979849,
0.1015280038,
-0.2330021411,
0.7412669063,
-0.2756133974,
0.1618671864,
0.0790739805,
0.3046824038,
-0.4524528682,
-0.0378888063,
-0.2837693095,
0.3549791574,
0.1275291145,
0.2411563993,
-0.2644320726,
-0.1182980761,
0.1919902712,
0.1910147667,
-0.2315646261,
-0.1551598608,
-0.325976491,
-0.8166644573,
-0.3782943487,
-0.1946810931,
0.3285314739,
0.1574901193,
-0.0080652628,
-0.0822429955,
0.0185045153,
0.0927917808,
0.1833205223,
-0.0020389741,
0.1575545222,
0.1465193182,
0.0572725274,
0.1297603548,
0.1868716627,
0.0262075681,
0.8269633055,
0.3106043637,
-0.5212931633,
0.2427426875,
-0.1760543436,
-0.022744406,
0.2260769755,
-0.1299825907,
-0.079911761,
0.0911532491,
0.2818122804,
-0.4481184185,
0.0332680531,
0.4080580771,
-0.0066945087,
-0.3659456968,
-0.1824551374,
0.4902800918,
-0.1122830883,
-0.0542546958,
0.3957289457,
0.5383885503,
-0.3827526867,
0.3704436421,
-0.0472683944,
0.8026754856,
0.2136369497,
0.0076136542,
0.5026301742,
-0.5735384822,
0.2489011437,
-0.0673595592,
-0.0734870732,
-0.0983864516,
0.0865763053,
-0.1573195159,
-0.0334815867,
0.2059183121,
0.358895123,
-0.2488151938,
0.0226923712,
0.2268870026,
-0.2379538864,
0.1762864739,
0.2385283262,
-0.3231636882,
-0.1989764869,
-0.266872555,
0.079397209,
-0.1811458021,
0.1929061711,
-0.087774314,
-0.0886615515,
0.030982852,
-0.2872934639,
-0.4625533819,
0.3222780526,
-0.2287329882,
0.2370306104,
0.0856112987,
0.0705682635,
0.2744886875,
-0.1262204349,
0.2743162513,
-0.2135298997,
-0.1729749888,
0.2569274604,
-0.2432442755,
0.1208408177,
0.0753554925,
-0.162928611,
0.1816312969,
-0.2073288411,
-0.5375798345,
-0.0501902625,
-0.1583831459,
-0.4597317278,
-0.1058520824,
0.1566949785,
-0.3507362902,
-0.1423188299,
-0.1870340258,
-0.0200041737,
0.0551587455,
0.0641499013,
0.0325317495,
0.0676743612,
0.0367955789,
0.4690811038,
-0.0752126798,
-0.3788243234,
-0.0318953805,
0.1820544004,
-0.229892388,
-0.036376819,
0.6238436699,
0.2674331069,
-0.1762402207,
-0.1396307349,
0.2404734641,
0.3817258775,
-0.0798503011,
-0.2453042269,
-0.1275421679,
0.2880230546,
-0.0614801198,
0.027527282,
0.1150131226,
-0.0543770492,
0.1168115437,
-0.6627496481,
-0.1394592673,
0.346442908,
0.0221115816,
-0.2416149378,
0.0259364583,
0.0971985161,
0.0347383171,
-0.2118203789,
-0.18992652,
0.1925812662,
-0.0452363938,
0.1018749997,
-0.0879559815,
-0.0888424888,
0.3293844759,
-0.0378108434,
0.0144337807,
0.0613638014,
0.1151461005,
-0.114062421,
-0.316432178,
0.1970477104,
0.0725117922,
-0.4723587334,
-0.0078824926,
-0.1541277766,
-0.0637460053,
-0.0189466607,
0.1375550181,
0.2217822224,
-0.0430438146,
0.2481678128,
-0.4047923088,
0.0613262244,
0.0285780989,
-0.1320007741,
0.0297458544,
0.832873404,
-0.0440971591,
0.2187922001,
0.2867732346,
0.0409653075,
-0.223556757,
0.0302187447,
-0.0717666745,
0.1702478081,
0.397374481,
-0.2796153128,
0.4103116393,
-0.0677054375,
0.167172879,
0.5154780149,
-0.3857298195,
0.0094349645,
0.2452152818,
0.0928043798,
-0.0724211782,
-0.0476936027,
0.4049891233,
-0.1020432636,
-0.0842301995,
0.1916326731,
-0.3814827502,
0.0759212971,
-0.2584766746,
-0.1525020748,
0.3138320148,
0.2935934961,
0.1102359518,
0.365067184,
-0.2722982764,
0.1871520877,
-0.0303880218,
0.1145798713,
0.3168928623,
0.450931251,
-0.1138791591,
0.0784605369,
-0.3261548281,
0.3612879813,
-0.0509545617,
-0.4903669059,
-0.0606086068,
0.2124315947,
-0.0717370957,
0.4705011547,
0.0511784032,
-0.0627942681,
-0.4431337714,
0.043376334,
-0.3669300079,
0.0539995171,
0.1315045953,
-0.2230794728,
-0.2180446684,
-0.0242041815,
-0.3730876148,
0.1064561903,
-0.0490605794,
-0.382003516,
-0.0379238054,
0.2490318716,
-0.1305324584,
-0.3429677784,
0.1603454798,
0.1043208018,
0.1030728966,
-0.392741859,
0.1975452155,
0.2589795589,
0.2422739565,
0.1948425919,
0.0926817432,
0.3498042226,
0.2201948762,
-0.4257212579,
-0.0500687659,
-0.105309628,
-0.064621985,
-0.1460928768,
0.4472827911,
0.1749531627,
-0.081881173,
0.4011391699,
0.1168095395,
-0.1012336463,
0.0976401791,
0.2883227766,
-0.1410844773,
-0.1788493693,
0.2855690122,
-0.3534194231,
0.2045450509,
-0.1655643284,
-0.220312953,
-0.2555755079,
-0.2192953825,
0.2338056862,
-0.031259153,
0.1294746101,
-0.1532984376,
0.0140225124,
0.0119492766,
0.3824175,
0.3050079942,
0.2788800895,
-0.1241928488,
-0.1840639114,
-0.3153487146,
0.0253982302,
-0.2847113907,
-0.2506228685,
0.1554742903,
0.0708771572,
-0.1746007204,
0.3591209054,
0.0498731583,
0.4428434372,
0.1114143282,
0.1863829345,
-0.1461455077,
-0.3172510564,
0.4438598454,
0.414404273,
-0.1750415713,
-0.4612671435,
0.225105837,
0.2361631542,
-0.1488851458,
-0.2414572835,
-0.1568927765,
-0.1976628006,
-0.2074342817,
0.2476858497,
0.4718891382,
0.2960594296,
-0.1901386082,
-0.0413574502,
-0.2893474996,
-0.3693339825,
-0.0213392302,
0.5253269672,
-0.1727517992,
0.2607081831,
-0.0730917901,
0.0636251196,
-0.2339999974,
-0.0550145954,
-0.2188571393,
-0.0434653088,
-0.2975839078,
0.3721769154,
-0.1881470084,
0.2759253383,
-0.0539895333,
0.4072673023,
0.004049683,
0.4098053873,
-0.079503268,
-0.2372464836,
0.2398970127,
-0.3824099004,
-0.2967884243,
0.3267814517,
0.2042010427,
0.0205795784,
-0.2468756884,
-0.3127251267,
0.0408110246,
0.3302119076,
-0.0210479498,
-0.2623265684,
0.0157846119,
0.0136477696,
-0.0454829298,
0.0051556979,
0.5762954354,
0.0852109641,
-0.3399920166,
0.4717288613,
-0.0604917631
] |
https://github.com/huggingface/datasets/issues/4146 | SAMSum dataset viewer not working | Currently, only the datasets that can be streamed support the dataset viewer. Maybe @lhoestq @albertvillanova or @mariosasko could give more details about why the dataset cannot be streamed. | ## Dataset viewer issue for '*name of the dataset*'
**Link:** *link to the dataset viewer page*
*short description of the issue*
Am I the one who added this dataset ? Yes-No
| 28 | SAMSum dataset viewer not working
## Dataset viewer issue for '*name of the dataset*'
**Link:** *link to the dataset viewer page*
*short description of the issue*
Am I the one who added this dataset ? Yes-No
Currently, only the datasets that can be streamed support the dataset viewer. Maybe @lhoestq @albertvillanova or @mariosasko could give more details about why the dataset cannot be streamed. | [
-0.4890426099,
-0.1947719157,
0.019912146,
0.1662127227,
0.3226157129,
0.1772111207,
0.1533230394,
0.1406114697,
0.0136461481,
0.1777696908,
-0.1680707932,
0.3436411619,
0.014858745,
0.169584021,
-0.0610328689,
-0.1996840984,
0.1649658084,
0.0454549976,
-0.2660045624,
0.1820433289,
-0.1405003965,
-0.0177160222,
-0.1275225729,
-0.18514283,
0.0377768613,
0.2896531224,
-0.0578577518,
-0.1215395927,
-0.3606750071,
-0.320625782,
0.2168325484,
0.2287093103,
0.297952503,
0.4145202935,
-0.000108754,
0.1721328199,
0.620554626,
-0.0562353805,
-0.3307088912,
0.1440603733,
-0.3768075705,
0.0973203853,
0.1970322579,
0.0300345886,
-0.2327480018,
-0.0713485032,
0.3767951429,
-0.3314889669,
0.2758430243,
0.1487535387,
0.2665376663,
0.0225473363,
0.0987530723,
-0.3927179873,
-0.2638056576,
0.0790785328,
-0.2637977898,
0.0214738138,
-0.0547238961,
0.3403017521,
0.1406157911,
0.1595533937,
-0.140413627,
0.218682006,
0.2026235461,
-0.087707527,
-0.051605951,
-0.209428817,
0.2374249846,
0.3016133904,
1.2312387228,
-0.1256973296,
-0.1257401556,
0.1984958947,
-0.1036879271,
0.0335194692,
0.1540626734,
-0.0214088615,
0.0178266224,
0.1336963624,
-0.1921305507,
0.1879760772,
-0.3334003687,
-0.0312188882,
-0.1228392571,
0.0683748275,
-0.1628169268,
0.1376731247,
-0.0318333879,
-0.0308338962,
0.3166826963,
0.0096008759,
-0.3390067816,
-0.0688998997,
-0.2169246078,
0.085887365,
0.0058326488,
0.0320136733,
-0.0534206927,
0.0850499794,
0.1858123094,
0.3065575063,
0.1213629842,
0.0562431328,
0.1026797444,
-0.1918218881,
0.2170061022,
-0.0543278567,
0.1546481401,
0.1187301949,
0.1484823674,
-0.1259751618,
-0.2588266432,
0.0448638462,
-0.0539859012,
-0.3292878568,
0.0748133287,
-0.257891655,
-0.2767617404,
-0.0001730665,
0.1077670902,
-0.0135657378,
0.0319607817,
0.3125797808,
0.0083591156,
-0.1647389084,
-0.1077871546,
0.1889780462,
0.0065595126,
-0.1098828465,
-0.1565674692,
-0.1186851785,
-0.0371248014,
-0.0686076656,
0.3078086674,
-0.3560748994,
0.0700270012,
-0.2812995017,
-0.0652858391,
0.0307027604,
-0.0506830737,
-0.0170880314,
-0.1216612384,
0.3246656954,
0.461496979,
0.036654368,
0.0221571438,
-0.0122382427,
0.0738478974,
0.1221935451,
0.1751773059,
-0.1247114912,
-0.1942819953,
0.2189116776,
-0.3901669085,
-0.1660401225,
-0.4696522653,
0.2863533199,
-0.3413668275,
-0.1517065465,
-0.3207964301,
0.0681654066,
-0.1770657003,
-0.1091923565,
0.2377488613,
0.2721748948,
-0.6053768396,
-0.0664653853,
-0.1332339644,
-0.3461654484,
0.0292120203,
-0.2186848372,
-0.0770033672,
0.06156037,
-0.0846165866,
0.0733957067,
0.0864252895,
-0.3792643547,
-0.4290221632,
-0.0157770012,
0.0054824762,
-0.144282788,
0.3073612154,
0.1991862506,
0.0023376232,
-0.0053622108,
-0.3632749319,
0.0501244217,
0.0840038955,
-0.0750141069,
-0.07410115,
-0.2932726443,
-0.00837362,
0.5132545829,
0.3214479387,
0.0399745181,
0.3834958673,
0.2857816815,
0.2144633979,
0.143919006,
0.1076267138,
0.0179787446,
0.2923745513,
0.0088209687,
0.0689267963,
-0.3207392097,
0.1219383329,
0.1519579887,
0.4624662995,
0.0948027596,
0.2685495019,
-0.078363955,
-0.0936885402,
-0.2256342322,
-0.3609296679,
0.0713534504,
0.238485381,
0.2540720403,
0.1253799349,
0.0598683432,
-0.0248722881,
0.5125967264,
0.0594716147,
0.0032110331,
-0.2338413,
0.3258378804,
0.0237154122,
-0.131726563,
0.0533306636,
-0.1907716691,
0.2937735617,
-0.0108513869,
-0.1322354376,
0.1401237398,
-0.3064439595,
0.0230268873,
0.1569779962,
-0.2760242224,
-0.1009871885,
-0.5349661708,
0.2485042214,
0.1806728989,
0.0256317854,
-0.0578171387,
-0.3018946946,
-0.1704385728,
-0.106933184,
-0.1222923398,
0.0323883332,
0.2321396172,
0.3296952248,
-0.1597290039,
0.0304423198,
-0.0939183831,
0.203468293,
0.1848196536,
-0.4636243582,
-0.1973988712,
-0.1120673567,
0.1313516349,
0.0080581931,
-0.0005047868,
-0.0663893968,
-0.0536933318,
-0.3175380528,
0.2804074287,
0.0182080213,
0.227678284,
0.4619017243,
0.2784276009,
0.0749798492,
0.075413771,
0.0557111427,
-0.1032052189,
0.0317230672,
0.4255522788,
0.1936125308,
0.1691859066,
-0.031842947,
-0.189939484,
-0.3094462454,
0.1811604351,
0.2983569801,
0.1270058006,
-0.1741645336,
-0.1351877898,
-0.4035066664,
-0.54953897,
0.0159468688,
-0.2054560333,
0.096903421,
-0.417067945,
0.0617106035,
0.4080807269,
0.0211954303,
0.1293684542,
-0.6359615326,
0.1707953066,
-0.1271720976,
0.103735581,
-0.2736829817,
0.1693630964,
-0.120104894,
0.23445867,
0.228577584,
0.3192897141,
0.3191375136,
-0.2938001752,
0.3033306897,
-0.4119642675,
-0.2266647518,
0.0854834691,
-0.0588316172,
0.5571765304,
-0.1460421085,
0.0045731184,
-0.0891466588,
-0.1695521623,
0.0889822841,
-0.0588683151,
-0.0136549883,
0.0648698285,
-0.0444005467,
-0.2638760507,
-0.0012409085,
-0.0609902628,
-0.1937956214,
-0.3424176276,
0.0454369299,
0.1173044294,
0.1440840811,
-0.2308417708,
-0.0631613582,
0.146890685,
-0.0189394448,
0.0225528423,
-0.2350932807,
-0.3199688196,
0.33538872,
-0.3089018464,
-0.5572469831,
0.3903821111,
0.2949711978,
0.1518643647,
-0.2063313574,
-0.4520039856,
-0.134220168,
0.0581566542,
-0.003785752,
0.1917424649,
-0.2794435918,
0.253682375,
-0.0968462974,
-0.075799264,
-0.3089662194,
-0.2733918428,
-0.1375723928,
-0.1957326978,
0.330406338,
-0.1932206005,
0.4282366037,
-0.0423850678,
0.1588007808,
0.3033871651,
-0.0102570709,
0.2967716753,
-0.029228786,
0.1972603798,
0.0004429205,
-0.2948916256,
0.3226836622,
-0.2319227755,
0.210804075,
0.2282558084,
0.2274565697,
-0.1038327962,
-0.2148801088,
-0.1165430322,
-0.234030053,
-0.0399853401,
-0.3223642111,
0.0423400514,
-0.2149390876,
0.0585210398,
0.1607092619,
-0.0717407838,
-0.2598676682,
-0.103137143,
0.626116693,
0.1124447808,
0.1354398876,
-0.4046707153,
0.0869311094,
-0.1922739595,
0.1702419817,
-0.3239332438,
0.2153885365,
-0.3722770512,
-0.0084644854,
0.1263566315,
-0.0310688913,
0.3836576343,
-0.4389504194,
-0.0366175696,
0.2423705459,
0.3722449839,
-0.2100451887,
-0.1141482741,
-0.0458682589,
0.4215456545,
0.1870754957,
0.0115465559,
-0.0559117049,
0.050414212,
0.4770226479,
-0.0325864106,
-0.1155978963,
-0.3291277289,
-0.3739436567,
-0.4875902236,
0.0631881282,
-0.1819279045,
-0.0333993025,
0.1077159196,
-0.1566883922,
-0.0379464552,
-0.4249256253,
-0.1685547382,
0.1995816827,
0.1726352125,
0.3367881775,
0.2442685515,
0.5301589966,
0.2361345738,
0.3968723416,
0.3483823836,
0.5847646594,
0.2626382709,
-0.3966782391,
0.3827860951,
-0.2202040851,
-0.000408082,
0.0470767692,
-0.0164222624,
0.0105633121,
0.31164819,
0.0327505283,
-0.1181036383,
-0.0150037836,
0.1279610097,
0.0490994938,
-0.3643444777,
-0.1013525054,
0.4548189342,
0.024185732,
0.030704977,
0.2992596626,
0.2490302324,
-0.0820047632,
-0.1214544326,
0.100866802,
0.7813854218,
0.0412526466,
-0.3007721305,
-0.0421028733,
-0.2367472351,
0.0205674674,
-0.1508675218,
0.1562996209,
-0.0615997165,
-0.4460639656,
-0.1188915819,
-0.0376114175,
0.4105966985,
-0.2346213609,
-0.293918103,
0.0384749807,
0.2562038004,
0.2480495572,
0.0783283561,
0.1642841399,
-0.2755847573,
-0.0196855478,
0.1951771975,
0.1939134747,
0.0308716372,
0.0552842133,
-0.008032619,
-0.2005329132,
0.1587202251,
-0.0520095378,
-0.460976094,
0.1736414135,
-0.0035974015,
-0.2064647079,
-0.095006302,
-0.0224225521,
0.3445533514,
0.2395457029,
0.23176983,
0.1104460433,
-0.4125509262,
0.3559647202,
-0.1073559299,
0.0254723188,
-0.0904414207,
-0.1349508166,
0.2420659363,
-0.2081751227,
-0.2334768325,
0.2186642587,
0.1611924917,
-0.1968387812,
-0.3303393424,
-0.0477526076,
0.1508203894,
-0.3106707036,
0.1543810219,
-0.1267174929,
-0.0079542408,
-0.2502252758,
0.189069733,
0.1501742601,
0.0018555357,
0.232146576,
-0.1027315632,
-0.1191777289,
-0.1789400727,
0.4549494982,
0.1510521621,
-0.2800439298,
0.3328920901,
0.0700937882,
-0.2592464387,
-0.1690131575,
-0.0563440248,
0.1444804221,
0.0392518677,
-0.3744853139,
-0.0630224496,
0.0423406772,
0.2103598416,
-0.2894342244,
-0.0666853786,
-0.4051688612,
-0.2042122036,
-0.2434926182,
-0.1565449387,
0.0500322804,
-0.0994291157,
0.1742390394,
-0.1174022332,
-0.2985208035,
0.252073288,
0.0223714337,
-0.3178310096,
-0.0298061669,
0.070182398,
-0.0664547831,
-0.0444962606,
0.0961570889,
0.1971718967,
-0.1587905288,
0.1432108283,
0.1351244897,
-0.1920510381,
-0.1806947887,
0.0050812606,
0.1355000138,
0.2186954021,
-0.1860682666,
-0.328075856,
-0.2730980515,
-0.2581826448,
0.1438955665,
0.0207510833,
0.0626821518,
-0.0641454235,
-0.0018558998,
0.4295858443,
-0.0759533569,
0.1243494675,
-0.0047077844,
0.1844145954,
0.5946398377,
-0.1946293265,
0.0363569967,
0.1788004041,
-0.0211558491,
-0.1920171678,
0.0146033298,
0.1496192962,
-0.1154445335,
0.2628423274,
-0.3627348244,
0.2656095624,
-0.0035983191,
0.4431993961,
0.1344777942,
-0.0962934643,
0.0541132279,
0.4633015692,
0.244976446,
-0.2947744131,
-0.1989789754,
0.076422289,
0.073160015,
-0.012790422,
-0.1392709315,
-0.0460248217,
-0.0039877756,
0.2624974847,
0.1621553898,
0.5797743797,
-0.0574105382,
0.3026058078,
0.4725590348,
-0.1758779436,
0.100162372,
0.1946272552,
0.1685347855,
-0.2582227588,
0.8499851823,
-0.2107795328,
0.4420748651,
-0.3720592558,
0.0086917374,
-0.0587928183,
-0.0688209832,
-0.0164913163,
-0.0891112164,
-0.2892744839,
0.1073789746,
0.0466786437,
0.494768858,
-0.2208114862,
0.1553550959,
-0.6970640421,
-0.217680499,
-0.0325557888,
-0.0529731549,
-0.3371716738,
-0.1846168488,
0.0999363288,
0.1174038202,
0.1713948995,
-0.0505680628,
-0.153020218,
0.0586748607,
-0.2279081941,
-0.2460681498,
-0.0209108945,
0.2319116145,
0.0555990413,
-0.1000277996,
0.0248829816,
0.1535522044,
0.0677431449,
0.4385854304,
0.3785457313,
0.2175633907,
0.0990176946,
0.0396873802,
0.1063817292,
-0.0261791945,
-0.2248766273,
-0.1309577525,
0.4322013557,
0.2893722355,
0.0967777297,
0.2162051797,
0.2455510795,
-0.1466470808,
0.3318020701,
-0.2405792326,
0.4268451929,
-0.2279091477,
0.0975251868,
-0.305182606,
0.0458296128,
0.1159866229,
-0.2692861259,
-0.3858925402,
0.2286410034,
0.3690066636,
0.0837366953,
0.0784725398,
-0.3292294145,
0.0614392571,
0.0080960393,
0.4615992308,
0.0012168539,
0.1882265508,
0.0433486514,
-0.0323407426,
-0.4812090099,
0.1262147129,
-0.0533068962,
-0.230728969,
0.0857775807,
-0.0957194939,
0.1980766356,
0.1350709051,
0.1612715721,
-0.0676056147,
0.1647425294,
0.3668875694,
-0.2447444052,
-0.1886579245,
0.2592035532,
0.4370020926,
-0.1900490671,
-0.302444756,
0.488971293,
0.1469798535,
0.0820382833,
-0.1453576535,
0.0130602261,
0.0016721603,
0.0842750445,
0.2406003028,
0.0107845981,
0.5121333003,
-0.0888545737,
0.2612671256,
-0.470125556,
-0.156428948,
-0.3047010899,
-0.1425124109,
0.1063074768,
0.1934233904,
-0.0624325871,
-0.0330938287,
-0.0448417626,
-0.3174774349,
-0.2878640592,
0.322828263,
-0.3418278694,
-0.1408607811,
-0.0978708938,
0.1929865032,
0.2846089303,
0.0382669643,
0.0178016387,
-0.0895548835,
-0.4009871781,
-0.2153663188,
0.3005417287,
-0.6165142655,
-0.1740081608,
-0.1744820178,
-0.009101823,
0.1679413915,
-0.0125966305,
-0.4066552222,
0.1162769347,
0.2817706764,
-0.0360205173,
0.345418334,
0.4148239195,
0.1205829605,
-0.0322929174,
-0.0343411155,
-0.1599063873,
-0.0265652314,
-0.0386682153,
-0.0028718689,
0.0238901991
] |
https://github.com/huggingface/datasets/issues/4146 | SAMSum dataset viewer not working | It looks like the host (https://arxiv.org) doesn't allow HTTP Range requests, which is what we use to stream data.
This can be fix if we host the data ourselves, which is ok since the dataset is under CC BY-NC-ND 4.0 | ## Dataset viewer issue for '*name of the dataset*'
**Link:** *link to the dataset viewer page*
*short description of the issue*
Am I the one who added this dataset ? Yes-No
| 40 | SAMSum dataset viewer not working
## Dataset viewer issue for '*name of the dataset*'
**Link:** *link to the dataset viewer page*
*short description of the issue*
Am I the one who added this dataset ? Yes-No
It looks like the host (https://arxiv.org) doesn't allow HTTP Range requests, which is what we use to stream data.
This can be fix if we host the data ourselves, which is ok since the dataset is under CC BY-NC-ND 4.0 | [
-0.4041630626,
-0.2161870599,
0.0099699516,
0.0950218961,
0.381605804,
0.0499521047,
0.0980621651,
0.2619544566,
-0.0217940193,
0.1190104559,
-0.2075585127,
0.3886729479,
0.1510302722,
0.0338380709,
-0.0854026824,
-0.0889917836,
0.0554587245,
0.0523284972,
-0.3733109534,
0.1381428391,
-0.1542721242,
-0.164053902,
-0.2679988742,
-0.1270231754,
0.3345053494,
0.1803708225,
0.0745567605,
-0.0764039978,
-0.1677779555,
-0.4161534607,
0.2533430159,
0.2830786109,
0.3062731326,
0.3363955915,
-0.0001120951,
0.2992691696,
0.4797144234,
0.0070456443,
-0.2132301629,
-0.018074546,
-0.4234892726,
0.1146288142,
0.1855672896,
-0.0859091952,
-0.2465698719,
-0.347700268,
0.2647465169,
-0.1960063577,
0.2075659335,
0.251920253,
0.2269283533,
-0.0076685175,
0.068100594,
-0.2625321448,
-0.154209733,
-0.0761065632,
-0.2691151798,
0.0528004989,
0.1105882823,
0.5370705128,
0.0663443282,
0.2347727865,
-0.1366833597,
0.3822557926,
0.2672238648,
-0.0556115434,
-0.2718154192,
-0.1242422909,
0.2011882663,
0.285879463,
1.1281509399,
-0.1759215444,
-0.0405196548,
0.3149790168,
-0.0996820256,
-0.0992818177,
0.1680586338,
0.0313171558,
-0.038832359,
0.1787390411,
-0.1611952633,
0.1797721833,
-0.4664046466,
0.1413652003,
-0.0141957086,
-0.0270761494,
-0.187117815,
0.1523536146,
-0.0646841228,
-0.1394511759,
0.2126713395,
0.0174333043,
-0.1786056608,
0.006347267,
-0.2315520793,
0.2088039964,
0.0785378218,
0.0266380515,
0.122239314,
0.21205993,
0.1921793222,
0.3531269133,
-0.0903010294,
0.0134674534,
0.018166868,
-0.2912473977,
0.154165253,
-0.3027769923,
0.2913756669,
0.2691487372,
0.179434225,
-0.0244429298,
-0.1972791851,
-0.0067565851,
-0.0539902411,
-0.3772462606,
0.166505307,
-0.2846541107,
-0.0363504998,
0.1415232122,
0.1066159382,
0.1204571202,
-0.0316138007,
0.3508746028,
0.2005569935,
-0.1183376759,
0.001384242,
0.2574371994,
0.0233202409,
-0.1590807587,
-0.129885599,
-0.2066631764,
0.1506076902,
-0.1947213858,
0.3399656117,
-0.2556748986,
-0.0838932917,
-0.2120054066,
0.1384696215,
-0.1245926991,
0.0398682058,
0.0284255296,
0.1626083404,
0.4633160233,
0.481038332,
0.0284057967,
0.019161595,
-0.0586107485,
-0.006411138,
0.2506259084,
0.1490087509,
0.009078824,
-0.1008603573,
0.1795695871,
-0.2426553816,
-0.0198086165,
-0.4574764967,
0.165942505,
-0.4153776169,
-0.08753483,
-0.3148039877,
-0.0273154099,
-0.1496114284,
-0.1502355188,
0.3677664697,
0.2365208417,
-0.4226795435,
0.0185904186,
-0.0752790645,
-0.1079384685,
-0.0715257227,
-0.1101246476,
-0.1279901862,
0.037868049,
-0.042814862,
0.1523472071,
0.2159525007,
-0.3414794505,
-0.4835989773,
0.0258471873,
-0.0122237299,
-0.3496175408,
0.2025378346,
0.0473552756,
-0.0116153602,
-0.0028278392,
-0.2115491629,
-0.0178089272,
0.0674810782,
0.0677486807,
-0.0882641897,
-0.3443476558,
-0.013067903,
0.3732627928,
0.2590650618,
-0.0946603119,
0.3074682355,
0.0893628895,
0.3183910251,
0.0009117192,
0.173884064,
0.0221497882,
0.124704808,
-0.1577997059,
0.218307972,
-0.3658601046,
0.3132711649,
0.0677149296,
0.5848653913,
0.2061014473,
0.1663249135,
0.051470004,
-0.1903243214,
-0.1379223019,
-0.2385491282,
0.1486385465,
0.2264142036,
0.205038026,
-0.1035707518,
0.0679665953,
-0.0071162363,
0.4031614363,
0.0288216528,
0.0484945476,
-0.4162690341,
0.2737033963,
0.0179079343,
0.000873832,
0.0532548577,
-0.2353961021,
0.2409297824,
-0.1012596563,
-0.1922699213,
0.1358051151,
-0.1786303222,
0.0261135232,
0.3023136556,
-0.148746103,
0.0314671658,
-0.6147066951,
0.2409908026,
-0.028873615,
0.1385238171,
-0.0088569922,
-0.2243344784,
-0.1872461438,
-0.2157239616,
0.0501814559,
0.0580757521,
0.2955404818,
0.4504479766,
-0.1874729693,
0.018151233,
-0.0664133057,
0.2241003066,
0.3031150997,
-0.5392589569,
-0.3264313638,
0.0016272549,
0.192575708,
-0.2150945216,
-0.047492031,
0.0585139543,
0.034856379,
-0.3609103262,
0.31867522,
0.0029007602,
0.1377937794,
0.375546366,
0.2726731598,
0.0181544777,
0.0926471502,
-0.0201037005,
-0.1543478817,
-0.0039021389,
0.4907674789,
0.1430303156,
-0.0876809582,
-0.0309849326,
-0.1652763784,
-0.397773385,
-0.1000453308,
0.2117956132,
0.0636354983,
-0.1754222363,
-0.1520293802,
-0.4206947386,
-0.4782258272,
0.0071648937,
-0.3540039062,
0.0144779189,
-0.230447948,
-0.0011591726,
0.2855920196,
-0.1703754067,
0.120251067,
-0.7565698028,
0.1763515323,
-0.0062657301,
0.0693202093,
-0.1956517696,
0.0915927216,
-0.0657976717,
0.1750712097,
0.0787287727,
0.3971779346,
0.3359602094,
-0.2177561671,
0.2585380673,
-0.1531354189,
-0.1973315924,
0.118374072,
-0.1230688095,
0.5001554489,
-0.0640425161,
0.09556216,
0.0279384088,
0.2118309736,
0.1728672236,
0.0634744242,
0.1129864231,
0.0897710994,
-0.0052334438,
-0.2965808511,
-0.0669672117,
-0.2757686675,
-0.065132238,
-0.4313831925,
-0.1650822461,
0.120672971,
0.1838794053,
-0.2705425918,
0.1076054946,
0.1696159244,
0.0314413272,
0.0991732404,
-0.2987138927,
0.0418836288,
0.2925006151,
-0.2261419147,
-0.6170188785,
0.2781278789,
0.1923549324,
0.293336004,
-0.0489551723,
-0.491969794,
-0.2813114226,
-0.0717829913,
-0.0038749259,
0.210221678,
-0.2418224216,
0.2262598276,
-0.1785096228,
-0.143505007,
-0.3401739001,
-0.3447310925,
-0.0248274747,
-0.2344919741,
0.0233327691,
0.0608406141,
0.3869879842,
-0.0327524506,
0.1380878836,
0.2562061846,
-0.1159350276,
0.4181993604,
-0.1045826375,
0.2948219776,
0.1750849336,
-0.2484681606,
0.3185406625,
-0.0080941841,
0.1201549023,
0.2192729861,
0.2625495195,
-0.0556895882,
-0.2519689798,
-0.3750481904,
-0.2512951791,
-0.2179217041,
-0.1243464798,
0.1002215371,
-0.1957940906,
0.0668354332,
0.1821574718,
-0.1390952468,
-0.3046277165,
-0.174638927,
0.5088451505,
0.0243766624,
0.0189400651,
-0.2944219708,
0.0078083468,
-0.2237522602,
0.3351502717,
-0.0944726989,
0.322468698,
-0.2760055065,
-0.0728225261,
0.1092582196,
-0.0926985964,
0.3906443715,
-0.3882003427,
0.0783635378,
0.2149159312,
0.3981945813,
-0.2488975078,
0.0002395951,
-0.0797426477,
0.3416243792,
0.2356666028,
0.0171066765,
-0.0982325003,
-0.0149017815,
0.2875299752,
-0.0718338713,
-0.0579411276,
-0.1767535061,
-0.2604213059,
-0.6788825393,
-0.0494446456,
-0.1145680249,
0.040424753,
-0.0015006588,
-0.1405649781,
-0.1349064559,
-0.1896422654,
-0.1908958256,
0.0782282054,
0.2509821951,
0.312202692,
0.1875012219,
0.3397119343,
0.3020808995,
0.3926293552,
0.3714677393,
0.6528630853,
0.3144773543,
-0.3916531503,
0.3097906411,
-0.2765937448,
0.0567869172,
0.0396756679,
0.0075945738,
0.043590758,
0.4227775037,
0.2090379596,
-0.1794351041,
-0.0220392477,
0.2587191164,
-0.0685377494,
-0.2534881234,
-0.0563600957,
0.5145516992,
-0.1295839101,
-0.1101285666,
0.4888634086,
0.2488369793,
-0.0582924299,
0.0068817153,
0.1354692876,
0.8408794999,
0.0997536927,
-0.2323064208,
-0.0350790322,
-0.3367166519,
0.1428555399,
-0.0320986658,
0.2655942738,
-0.0800927505,
-0.4895972908,
-0.193451345,
-0.1529929042,
0.3175388873,
-0.0779766813,
-0.3000538051,
-0.0746675283,
0.3477471471,
0.1818773299,
0.169596076,
-0.0892507657,
-0.1865775734,
-0.0704809427,
-0.0154135795,
0.1544925869,
-0.0998143628,
-0.124363184,
0.1008908674,
-0.2023530602,
-0.0093359891,
-0.1859477907,
-0.4675397873,
0.3042960763,
0.1399541646,
-0.2513062954,
0.044113934,
0.1184833795,
0.3258783519,
0.0424428359,
0.2083372027,
0.0419405401,
-0.4958432615,
0.4199751318,
-0.1304826587,
0.0084834313,
-0.0135181667,
0.0000485987,
0.291554451,
-0.178489998,
-0.1947025359,
0.2835127711,
0.2660688162,
-0.180686295,
-0.2410551906,
0.1676772535,
0.0408440307,
-0.4019735456,
0.3423680663,
-0.0220191013,
-0.0199118499,
-0.1560837477,
0.1435460597,
0.1741736829,
-0.0214598551,
0.3339288533,
0.0659571216,
-0.2538543046,
-0.0581228919,
0.4085463583,
0.2234031558,
-0.0760337189,
0.3401557505,
0.1114003062,
-0.198675409,
-0.2012288719,
-0.226172179,
-0.1450731605,
-0.1269375533,
-0.2228643894,
-0.0220234171,
0.0236335211,
0.1960973144,
-0.4000639617,
-0.1828069091,
-0.496401459,
-0.3016361296,
-0.4278291166,
0.0210744701,
-0.0964928493,
-0.2119940668,
0.0883989483,
0.0354587547,
-0.3214979768,
0.2168060392,
-0.1326078475,
-0.2876726687,
-0.0124878492,
0.0300956089,
-0.0703396574,
-0.284227103,
0.0772307813,
0.2512665987,
-0.1464969069,
0.1006196886,
0.0751188025,
-0.2752315402,
-0.1581477225,
-0.0420706794,
0.1375529617,
0.0624728166,
-0.2885347009,
-0.5795923471,
-0.2283809483,
-0.2397894263,
0.1012613848,
0.0461273901,
-0.1344690025,
-0.101065293,
-0.0500627458,
0.2795990705,
-0.2516633272,
0.0894992277,
0.0793654099,
0.2217137665,
0.7074545622,
-0.0871108994,
0.0772918761,
0.0175989997,
-0.1558897793,
-0.3620496392,
0.1147203892,
0.0717903078,
-0.2657362223,
0.394703269,
-0.2957041264,
0.1775112003,
-0.0198592935,
0.5657255054,
0.191504851,
-0.1551019996,
0.0220521875,
0.149038136,
0.1697309166,
-0.3322087228,
-0.222698614,
0.145114556,
0.1064266786,
0.0889740735,
-0.0614475943,
-0.0736325979,
-0.0552830733,
0.1848721504,
0.074194476,
0.6312551498,
-0.0674804002,
-0.0020104018,
0.2836997509,
-0.1198984236,
0.0559820347,
0.1000192389,
0.1439055651,
0.0324127115,
0.69952178,
-0.0714254975,
0.4000452161,
-0.2439318895,
-0.1052118838,
-0.0705561042,
-0.2029416561,
-0.0231615081,
0.0492211245,
-0.127761215,
0.1668341607,
0.1695695817,
0.3282711506,
-0.0291882195,
0.0139014609,
-0.6852773428,
-0.2331793904,
0.0522796139,
0.1184844002,
-0.4816516936,
-0.1087286323,
-0.017198218,
-0.0203016158,
0.1344266236,
-0.0063583166,
-0.0145966271,
0.0530820414,
-0.2255855203,
-0.4587697089,
-0.013442927,
0.0601855516,
-0.0092716441,
-0.0616857484,
0.0889253169,
0.378230691,
-0.1042821556,
0.5128419995,
0.4045212865,
0.3711426258,
0.0711097792,
0.0482442044,
0.0850819573,
0.128686443,
-0.2126308531,
-0.2030890882,
0.4474747181,
0.2179023027,
0.3361869752,
0.3154783547,
0.2221782357,
-0.0393070877,
0.4258655906,
-0.1541146636,
0.3878675997,
-0.1224696934,
0.1551975906,
-0.2197616845,
0.0183305833,
-0.0172089264,
-0.5029164553,
-0.3765211701,
0.2564052939,
0.4817718863,
-0.2297708392,
0.0681275353,
-0.4328549504,
0.0362180956,
0.102543667,
0.6211682558,
0.1847788543,
0.363355428,
0.1161023006,
-0.056121029,
-0.4856554568,
0.2631540298,
-0.1828624159,
-0.3671936691,
0.2047612071,
-0.0849524066,
0.323551327,
0.1069225818,
0.3534552753,
-0.2318355441,
-0.0902927965,
0.3781938553,
-0.3444140255,
-0.2072203755,
0.2607370019,
0.4382579625,
-0.2359903008,
-0.3996583223,
0.558878541,
0.1122341305,
0.071088247,
-0.0177928712,
0.0831019059,
-0.0182152409,
0.0382958017,
0.1654648334,
0.1299218982,
0.3634461164,
-0.0405821726,
0.2801455557,
-0.4999903738,
0.0321957357,
-0.3367176056,
-0.0602051578,
0.159257099,
0.0812901407,
-0.0033774839,
-0.0647962987,
0.1177543253,
-0.2555106282,
-0.2106510252,
0.2690012455,
-0.1227329895,
-0.0938883498,
-0.1934698075,
0.0587836914,
0.1720676571,
-0.0906953886,
-0.0195482206,
0.0650865585,
-0.254069984,
-0.3703844249,
0.3477916121,
-0.6659417748,
-0.2691950798,
-0.0912127346,
0.0325783044,
0.0235596355,
0.0380057283,
-0.4017287493,
0.1806383133,
0.3013080359,
0.1220062152,
0.1163004041,
0.2964072824,
0.0544394143,
-0.1471922249,
-0.0937971771,
0.147735551,
0.0248296056,
-0.1252057552,
-0.0205112323,
0.0392185859
] |
https://github.com/huggingface/datasets/issues/4143 | Unable to download `Wikepedia` 20220301.en version | Hi! We've recently updated the Wikipedia script, so these changes are only available on master and can be fetched as follows:
```python
dataset_wikipedia = load_dataset("wikipedia", "20220301.en", revision="master")
``` | ## Describe the bug
Unable to download `Wikepedia` dataset, 20220301.en version
## Steps to reproduce the bug
```python
!pip install apache_beam mwparserfromhell
dataset_wikipedia = load_dataset("wikipedia", "20220301.en")
```
## Actual results
```
ValueError: BuilderConfig 20220301.en not found.
Available: ['20200501.aa', '20200501.ab', '20200501.ace', '20200501.ady', '20200501.af', '20200501.ak', '20200501.als', '20200501.am', '20200501.an', '20200501.ang', '20200501.ar', '20200501.arc', '20200501.arz', '20200501.as', '20200501.ast', '20200501.atj', '20200501.av', '20200501.ay', '20200501.az', '20200501.azb', '20200501.ba', '20200501.bar', '20200501.bat-smg', '20200501.bcl', '20200501.be', '20200501.be-x-old', '20200501.bg', '20200501.bh', '20200501.bi', '20200501.bjn', '20200501.bm', '20200501.bn', '20200501.bo', '20200501.bpy', '20200501.br', '20200501.bs', '20200501.bug', '20200501.bxr', '20200501.ca', '20200501.cbk-zam', '20200501.cdo', '20200501.ce', '20200501.ceb', '20200501.ch', '20200501.cho', '20200501.chr', '20200501.chy', '20200501.ckb', '20200501.co', '20200501.cr', '20200501.crh', '20200501.cs', '20200501.csb', '20200501.cu', '20200501.cv', '20200501.cy', '20200501.da', '20200501.de', '20200501.din', '20200501.diq', '20200501.dsb', '20200501.dty', '20200501.dv', '20200501.dz', '20200501.ee', '20200501.el', '20200501.eml', '20200501.en', '20200501.eo', '20200501.es', '20200501.et', '20200501.eu', '20200501.ext', '20200501.fa', '20200501.ff', '20200501.fi', '20200501.fiu-vro', '20200501.fj', '20200501.fo', '20200501.fr', '20200501.frp', '20200501.frr', '20200501.fur', '20200501.fy', '20200501.ga', '20200501.gag', '20200501.gan', '20200501.gd', '20200501.gl', '20200501.glk', '20200501.gn', '20200501.gom', '20200501.gor', '20200501.got', '20200501.gu', '20200501.gv', '20200501.ha', '20200501.hak', '20200501.haw', '20200501.he', '20200501.hi', '20200501.hif', '20200501.ho', '20200501.hr', '20200501.hsb', '20200501.ht', '20200501.hu', '20200501.hy', '20200501.ia', '20200501.id', '20200501.ie', '20200501.ig', '20200501.ii', '20200501.ik', '20200501.ilo', '20200501.inh', '20200501.io', '20200501.is', '20200501.it', '20200501.iu', '20200501.ja', '20200501.jam', '20200501.jbo', '20200501.jv', '20200501.ka', '20200501.kaa', '20200501.kab', '20200501.kbd', '20200501.kbp', '20200501.kg', '20200501.ki', '20200501.kj', '20200501.kk', '20200501.kl', '20200501.km', '20200501.kn', '20200501.ko', '20200501.koi', '20200501.krc', '20200501.ks', '20200501.ksh', '20200501.ku', '20200501.kv', '20200501.kw', '20200501.ky', '20200501.la', '20200501.lad', '20200501.lb', '20200501.lbe', '20200501.lez', '20200501.lfn', '20200501.lg', '20200501.li', '20200501.lij', '20200501.lmo', '20200501.ln', '20200501.lo', '20200501.lrc', '20200501.lt', '20200501.ltg', '20200501.lv', '20200501.mai', '20200501.map-bms', '20200501.mdf', '20200501.mg', '20200501.mh', '20200501.mhr', '20200501.mi', '20200501.min', '20200501.mk', '20200501.ml', '20200501.mn', '20200501.mr', '20200501.mrj', '20200501.ms', '20200501.mt', '20200501.mus', '20200501.mwl', '20200501.my', '20200501.myv', '20200501.mzn', '20200501.na', '20200501.nah', '20200501.nap', '20200501.nds', '20200501.nds-nl', '20200501.ne', '20200501.new', '20200501.ng', '20200501.nl', '20200501.nn', '20200501.no', '20200501.nov', '20200501.nrm', '20200501.nso', '20200501.nv', '20200501.ny', '20200501.oc', '20200501.olo', '20200501.om', '20200501.or', '20200501.os', '20200501.pa', '20200501.pag', '20200501.pam', '20200501.pap', '20200501.pcd', '20200501.pdc', '20200501.pfl', '20200501.pi', '20200501.pih', '20200501.pl', '20200501.pms', '20200501.pnb', '20200501.pnt', '20200501.ps', '20200501.pt', '20200501.qu', '20200501.rm', '20200501.rmy', '20200501.rn', '20200501.ro', '20200501.roa-rup', '20200501.roa-tara', '20200501.ru', '20200501.rue', '20200501.rw', '20200501.sa', '20200501.sah', '20200501.sat', '20200501.sc', '20200501.scn', '20200501.sco', '20200501.sd', '20200501.se', '20200501.sg', '20200501.sh', '20200501.si', '20200501.simple', '20200501.sk', '20200501.sl', '20200501.sm', '20200501.sn', '20200501.so', '20200501.sq', '20200501.sr', '20200501.srn', '20200501.ss', '20200501.st', '20200501.stq', '20200501.su', '20200501.sv', '20200501.sw', '20200501.szl', '20200501.ta', '20200501.tcy', '20200501.te', '20200501.tet', '20200501.tg', '20200501.th', '20200501.ti', '20200501.tk', '20200501.tl', '20200501.tn', '20200501.to', '20200501.tpi', '20200501.tr', '20200501.ts', '20200501.tt', '20200501.tum', '20200501.tw', '20200501.ty', '20200501.tyv', '20200501.udm', '20200501.ug', '20200501.uk', '20200501.ur', '20200501.uz', '20200501.ve', '20200501.vec', '20200501.vep', '20200501.vi', '20200501.vls', '20200501.vo', '20200501.wa', '20200501.war', '20200501.wo', '20200501.wuu', '20200501.xal', '20200501.xh', '20200501.xmf', '20200501.yi', '20200501.yo', '20200501.za', '20200501.zea', '20200501.zh', '20200501.zh-classical', '20200501.zh-min-nan', '20200501.zh-yue', '20200501.zu']
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Ubuntu
- Python version: 3.6
- PyArrow version: 6.0.1 | 28 | Unable to download `Wikepedia` 20220301.en version
## Describe the bug
Unable to download `Wikepedia` dataset, 20220301.en version
## Steps to reproduce the bug
```python
!pip install apache_beam mwparserfromhell
dataset_wikipedia = load_dataset("wikipedia", "20220301.en")
```
## Actual results
```
ValueError: BuilderConfig 20220301.en not found.
Available: ['20200501.aa', '20200501.ab', '20200501.ace', '20200501.ady', '20200501.af', '20200501.ak', '20200501.als', '20200501.am', '20200501.an', '20200501.ang', '20200501.ar', '20200501.arc', '20200501.arz', '20200501.as', '20200501.ast', '20200501.atj', '20200501.av', '20200501.ay', '20200501.az', '20200501.azb', '20200501.ba', '20200501.bar', '20200501.bat-smg', '20200501.bcl', '20200501.be', '20200501.be-x-old', '20200501.bg', '20200501.bh', '20200501.bi', '20200501.bjn', '20200501.bm', '20200501.bn', '20200501.bo', '20200501.bpy', '20200501.br', '20200501.bs', '20200501.bug', '20200501.bxr', '20200501.ca', '20200501.cbk-zam', '20200501.cdo', '20200501.ce', '20200501.ceb', '20200501.ch', '20200501.cho', '20200501.chr', '20200501.chy', '20200501.ckb', '20200501.co', '20200501.cr', '20200501.crh', '20200501.cs', '20200501.csb', '20200501.cu', '20200501.cv', '20200501.cy', '20200501.da', '20200501.de', '20200501.din', '20200501.diq', '20200501.dsb', '20200501.dty', '20200501.dv', '20200501.dz', '20200501.ee', '20200501.el', '20200501.eml', '20200501.en', '20200501.eo', '20200501.es', '20200501.et', '20200501.eu', '20200501.ext', '20200501.fa', '20200501.ff', '20200501.fi', '20200501.fiu-vro', '20200501.fj', '20200501.fo', '20200501.fr', '20200501.frp', '20200501.frr', '20200501.fur', '20200501.fy', '20200501.ga', '20200501.gag', '20200501.gan', '20200501.gd', '20200501.gl', '20200501.glk', '20200501.gn', '20200501.gom', '20200501.gor', '20200501.got', '20200501.gu', '20200501.gv', '20200501.ha', '20200501.hak', '20200501.haw', '20200501.he', '20200501.hi', '20200501.hif', '20200501.ho', '20200501.hr', '20200501.hsb', '20200501.ht', '20200501.hu', '20200501.hy', '20200501.ia', '20200501.id', '20200501.ie', '20200501.ig', '20200501.ii', '20200501.ik', '20200501.ilo', '20200501.inh', '20200501.io', '20200501.is', '20200501.it', '20200501.iu', '20200501.ja', '20200501.jam', '20200501.jbo', '20200501.jv', '20200501.ka', '20200501.kaa', '20200501.kab', '20200501.kbd', '20200501.kbp', '20200501.kg', '20200501.ki', '20200501.kj', '20200501.kk', '20200501.kl', '20200501.km', '20200501.kn', '20200501.ko', '20200501.koi', '20200501.krc', '20200501.ks', '20200501.ksh', '20200501.ku', '20200501.kv', '20200501.kw', '20200501.ky', '20200501.la', '20200501.lad', '20200501.lb', '20200501.lbe', '20200501.lez', '20200501.lfn', '20200501.lg', '20200501.li', '20200501.lij', '20200501.lmo', '20200501.ln', '20200501.lo', '20200501.lrc', '20200501.lt', '20200501.ltg', '20200501.lv', '20200501.mai', '20200501.map-bms', '20200501.mdf', '20200501.mg', '20200501.mh', '20200501.mhr', '20200501.mi', '20200501.min', '20200501.mk', '20200501.ml', '20200501.mn', '20200501.mr', '20200501.mrj', '20200501.ms', '20200501.mt', '20200501.mus', '20200501.mwl', '20200501.my', '20200501.myv', '20200501.mzn', '20200501.na', '20200501.nah', '20200501.nap', '20200501.nds', '20200501.nds-nl', '20200501.ne', '20200501.new', '20200501.ng', '20200501.nl', '20200501.nn', '20200501.no', '20200501.nov', '20200501.nrm', '20200501.nso', '20200501.nv', '20200501.ny', '20200501.oc', '20200501.olo', '20200501.om', '20200501.or', '20200501.os', '20200501.pa', '20200501.pag', '20200501.pam', '20200501.pap', '20200501.pcd', '20200501.pdc', '20200501.pfl', '20200501.pi', '20200501.pih', '20200501.pl', '20200501.pms', '20200501.pnb', '20200501.pnt', '20200501.ps', '20200501.pt', '20200501.qu', '20200501.rm', '20200501.rmy', '20200501.rn', '20200501.ro', '20200501.roa-rup', '20200501.roa-tara', '20200501.ru', '20200501.rue', '20200501.rw', '20200501.sa', '20200501.sah', '20200501.sat', '20200501.sc', '20200501.scn', '20200501.sco', '20200501.sd', '20200501.se', '20200501.sg', '20200501.sh', '20200501.si', '20200501.simple', '20200501.sk', '20200501.sl', '20200501.sm', '20200501.sn', '20200501.so', '20200501.sq', '20200501.sr', '20200501.srn', '20200501.ss', '20200501.st', '20200501.stq', '20200501.su', '20200501.sv', '20200501.sw', '20200501.szl', '20200501.ta', '20200501.tcy', '20200501.te', '20200501.tet', '20200501.tg', '20200501.th', '20200501.ti', '20200501.tk', '20200501.tl', '20200501.tn', '20200501.to', '20200501.tpi', '20200501.tr', '20200501.ts', '20200501.tt', '20200501.tum', '20200501.tw', '20200501.ty', '20200501.tyv', '20200501.udm', '20200501.ug', '20200501.uk', '20200501.ur', '20200501.uz', '20200501.ve', '20200501.vec', '20200501.vep', '20200501.vi', '20200501.vls', '20200501.vo', '20200501.wa', '20200501.war', '20200501.wo', '20200501.wuu', '20200501.xal', '20200501.xh', '20200501.xmf', '20200501.yi', '20200501.yo', '20200501.za', '20200501.zea', '20200501.zh', '20200501.zh-classical', '20200501.zh-min-nan', '20200501.zh-yue', '20200501.zu']
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Ubuntu
- Python version: 3.6
- PyArrow version: 6.0.1
Hi! We've recently updated the Wikipedia script, so these changes are only available on master and can be fetched as follows:
```python
dataset_wikipedia = load_dataset("wikipedia", "20220301.en", revision="master")
``` | [
-0.3187177479,
0.1336507201,
-0.1322391182,
0.2605266869,
-0.0983971879,
0.069312878,
0.3329180777,
0.4483046532,
0.2501382232,
0.3041918874,
0.2490293533,
0.1295749545,
0.0758542866,
0.327134639,
0.1037939712,
-0.4493441582,
0.2669945955,
0.1209755167,
-0.3334058225,
-0.087865226,
-0.2145046741,
0.1950385422,
-0.2846409678,
-0.0149610024,
0.0001319742,
0.0273088496,
0.0942658111,
-0.2403535694,
-0.3062953949,
-0.2891095877,
0.1956105679,
-0.0574038178,
0.2242722064,
0.1828519851,
-0.000110905,
0.0604681335,
0.4632192552,
-0.123596333,
-0.3431126475,
-0.1780217141,
-0.3477603495,
-0.3295606971,
-0.1810354143,
-0.3486424088,
-0.0258102957,
-0.151105687,
-0.012507339,
-0.044949878,
0.2222876698,
0.1844275594,
0.2374434769,
0.2104109228,
0.5298444629,
-0.2365537882,
0.3195529282,
-0.5026229024,
-0.2480250746,
-0.3113802969,
0.0499594472,
-0.0028412577,
0.0171501171,
0.4777200818,
0.0620702393,
0.0209752135,
0.0485634506,
-0.2826092541,
0.240829438,
-0.4312252402,
0.4976035357,
0.24488464,
0.6387534142,
0.0050620115,
-0.1769123673,
0.0594143309,
-0.0025997667,
0.2044704556,
0.3989378214,
0.2277588099,
-0.2052322626,
-0.0054383595,
-0.0095430277,
-0.1456789374,
-0.1406552941,
0.2331545353,
-0.1749785542,
0.9241115451,
-0.0046307696,
0.2274700552,
0.0259300284,
-0.2206694037,
0.1294308752,
-0.3484387398,
0.0732014328,
0.1815065891,
0.0211909991,
-0.0230020955,
-0.0087341433,
0.3671460748,
0.1109981313,
-0.1388396174,
-0.4025187194,
0.0706597194,
0.2011635154,
0.0575159155,
0.1480598599,
0.0544501022,
-0.0600575991,
-0.1137926653,
0.2069259137,
0.4950534999,
0.1058844402,
0.1824930906,
0.1054914072,
-0.3332950771,
-0.2521497607,
0.174788028,
0.1196229979,
-0.1072688997,
-0.1310708076,
0.0618311986,
-0.1326621324,
-0.1180409566,
-0.2372296154,
0.2258861363,
-0.2953328192,
0.3738018274,
0.0838763863,
-0.0578991845,
-0.1761547923,
-0.2986440957,
-0.1047040746,
0.196058169,
-0.0603747033,
-0.002353875,
0.1925482452,
-0.1269779652,
0.3903244138,
0.0975971222,
0.0483420566,
-0.1837179512,
-0.0334497429,
0.0771163926,
-0.1726226062,
0.3475731313,
0.2078541219,
0.3185744882,
-0.1887440085,
-0.3180845678,
0.0029937467,
0.1113502011,
-0.2286963463,
-0.2084013224,
-0.3206180632,
0.1903470904,
-0.1138690338,
0.0438984632,
-0.009508526,
-0.274148792,
0.1140170097,
-0.0973157436,
-0.1302751452,
-0.1224832982,
-0.2094013691,
-0.1705467552,
0.3936006129,
0.2712748945,
-0.2965458632,
-0.0242664963,
-0.1354973316,
-0.0372204967,
-0.0619073994,
-0.1118908376,
-0.1758281142,
0.283334136,
-0.2586906552,
-0.1462766826,
0.4512020648,
-0.4036870599,
-0.4922116399,
0.0080368416,
0.0719501674,
0.1358332187,
0.1949094832,
-0.1470433176,
0.2294362932,
-0.0612609014,
0.0501050279,
0.2053746879,
0.1215866506,
-0.0313083939,
-0.2064223737,
-0.4252710044,
-0.0134428488,
0.1041571498,
0.1852662116,
-0.1020300314,
0.0267129559,
0.3606639206,
0.3960698545,
-0.0875941515,
0.1778318435,
0.2077093422,
-0.0851231143,
-0.1776701361,
0.17650114,
-0.2002660036,
-0.3806578517,
0.3346128464,
-0.2122880369,
-0.0291553903,
0.0142345438,
-0.0597948246,
-0.5651836991,
0.1095886305,
-0.3570299745,
-0.1631073952,
0.2558438778,
0.1208626851,
0.2513593435,
0.1989627033,
0.0792865381,
-0.1314972639,
-0.0057931179,
-0.0902704224,
-0.0836816207,
0.2001150399,
-0.4286354184,
0.0767861605,
0.0816911831,
0.1435599476,
0.4123261273,
-0.1184856519,
-0.0962562934,
0.0692038983,
0.0998617411,
0.328744173,
-0.2487069666,
0.0058621662,
0.1733942628,
-0.2708815932,
0.2325088829,
0.2711999714,
0.0457012504,
0.025528824,
-0.0996001214,
0.1498392373,
0.2149907351,
0.2648134828,
-0.0051097563,
0.2650560141,
0.3658011854,
-0.0294587333,
0.0762043148,
-0.328882575,
0.2632723153,
0.0147596365,
-0.1137503907,
-0.0470959879,
0.0883489847,
0.1023613587,
0.4830577374,
-0.0544350445,
0.044453349,
-0.0451425873,
-0.2354451567,
0.0468419194,
0.2704585195,
0.3708181679,
0.0265656821,
0.1222203299,
0.0115882866,
0.0873497427,
0.0999779329,
-0.0574138239,
0.2357311845,
0.2512287796,
0.3571578264,
0.2897582352,
-0.0918103382,
0.1087459847,
0.1126629338,
0.0844716579,
-0.1685064286,
0.0936256796,
-0.1187693551,
-0.090816617,
-0.2318830341,
-0.0133630009,
-0.388573736,
0.1366241127,
-0.282320559,
-0.3058372438,
0.1408071071,
0.2700138986,
-0.2215798646,
0.2608425319,
0.0805863366,
-0.0597234592,
0.0372227319,
-0.0264065675,
-0.2995153666,
-0.049132742,
-0.3972214162,
0.0673140734,
0.2413884103,
0.0351102464,
0.3073672652,
-0.2740054429,
-0.071080327,
-0.6663246751,
-0.3798185885,
0.2830164433,
0.0110551557,
0.2713593543,
0.2400646061,
0.3739994764,
0.2229676396,
-0.2848647833,
0.1219580472,
0.0195090231,
0.0030152695,
-0.1201096699,
-0.211405322,
0.0452287458,
0.1005075723,
-0.470356077,
-0.4306610823,
-0.2938411832,
-0.1932702214,
0.4127391577,
0.1553024501,
-0.1410026848,
0.1676158756,
-0.1750600487,
0.188763395,
0.0339717679,
0.0006767891,
0.0307904277,
0.4017177224,
-0.361893177,
-0.5720647573,
0.2299479395,
-0.1406982839,
0.2701427042,
-0.0397476591,
-0.4857620001,
0.1504855901,
0.0886065736,
-0.0542360842,
0.0169108566,
0.0784140974,
0.3735063672,
0.1068836525,
0.0759204924,
-0.110802196,
-0.1370649636,
-0.0985379145,
-0.2560419142,
0.3876020312,
0.2078669518,
0.1955325752,
0.0839719474,
0.8127422333,
0.3120050728,
0.1435550749,
0.215783596,
0.0923846066,
-0.1664562225,
-0.1577798128,
-0.2224461436,
0.0801236555,
-0.0808709413,
0.0743942633,
0.2833176255,
-0.0782485455,
-0.3247644007,
-0.2985642254,
-0.1209682599,
-0.1220062077,
-0.3168403804,
-0.0432090871,
0.0795391351,
0.3541941345,
0.1830810905,
0.233496815,
-0.1411948353,
-0.3107970655,
0.3637539446,
0.0470557027,
-0.0613272637,
0.0311937593,
0.2921221852,
-0.1044987664,
-0.388752073,
0.1645168215,
0.2320527285,
0.2371868789,
0.0068225842,
0.0811433867,
0.1309660077,
-0.2345959693,
0.3693679571,
-0.398432374,
0.4803285897,
0.0645170361,
0.1160172373,
-0.2973490357,
-0.199762851,
-0.2091712654,
-0.1086670607,
0.3391199112,
0.37597543,
-0.2378427237,
-0.0262557305,
0.5812436342,
0.3529174328,
-0.2337842435,
-0.1132492647,
-0.134137705,
-0.2000948042,
-0.5458872318,
-0.1421815157,
-0.0682124272,
0.4137456119,
-0.0646238998,
-0.0299743731,
0.0793422163,
-0.0037684615,
-0.3314149678,
0.0791113302,
0.2198320478,
0.1114000306,
0.0628496781,
0.0427045263,
0.0896214172,
-0.1725588888,
0.0473795719,
0.1302671582,
0.0005067272,
-0.0182733592,
-0.0663431585,
-0.120833151,
0.1439345181,
-0.2688097954,
-0.3486826718,
0.1877877861,
0.0904083028,
-0.0834675431,
-0.072394982,
0.2902608812,
-0.0584542491,
-0.5071291924,
-0.2019379884,
0.5884355307,
0.1296379119,
-0.1354059428,
0.2793213129,
0.2435884774,
-0.1078382358,
0.3886093795,
0.2347152978,
0.8756207824,
0.1899432242,
0.0162874404,
0.1689993739,
-0.1363078803,
0.3587462604,
-0.5133188367,
-0.0205826573,
-0.183782652,
0.0183649529,
-0.1631537974,
0.0200201422,
0.1916388869,
-0.0723697841,
-0.378384918,
0.4259525239,
0.2290346026,
0.3270496726,
0.0438955426,
0.1421096027,
-0.1316531897,
-0.1294985861,
-0.0849347338,
0.0849514604,
0.027546607,
0.5214972496,
-0.2151179612,
-0.0103358543,
0.1388028115,
-0.3498483002,
-0.4225018024,
0.1666202098,
-0.273712635,
0.2503666878,
-0.2320204526,
-0.3226049244,
0.2073552758,
0.2239126563,
0.0808439851,
0.2427486479,
-0.28899014,
0.3472860754,
-0.2437723279,
-0.1762940586,
0.0278676469,
0.084146753,
0.028012326,
-0.4053779244,
-0.3335297108,
0.0591308549,
-0.1327652782,
-0.1745150089,
0.0655220151,
-0.0137992492,
0.4377971888,
0.0913153067,
-0.1063672304,
-0.0235419553,
0.1010056809,
-0.3265793324,
0.1874895841,
-0.3748524785,
-0.2145975679,
0.1304229945,
0.0776554868,
-0.1944273412,
-0.031920854,
0.5540798306,
0.0516230129,
-0.0522195734,
0.5714418292,
0.2539154291,
-0.2965147793,
-0.2665925026,
-0.1290144175,
-0.3687416017,
-0.3560063839,
-0.2279594541,
-0.0962378234,
-0.0355578735,
-0.3752155304,
0.534293592,
0.2251250446,
-0.0914248526,
0.0601783171,
-0.6035679579,
0.0486487411,
0.0480736829,
-0.0279107392,
0.0412604287,
0.0396887772,
0.0671950728,
0.1087705642,
-0.0309534371,
-0.3011843562,
-0.0268397555,
-0.1794810444,
0.0672118664,
0.282707721,
0.1255697161,
-0.1634455919,
0.2863721251,
0.1634331048,
0.0423722453,
-0.1598892808,
-0.2409301698,
-0.0908767879,
0.1162624657,
-0.0009531885,
-0.1499476284,
0.2054702193,
-0.1838304549,
-0.1517155319,
0.1415932924,
0.1234304979,
-0.275943011,
-0.0199760348,
0.1131077632,
0.1110574529,
0.2336789221,
-0.3225711882,
0.1743181944,
-0.0291770529,
0.4807443619,
0.0315847285,
0.3533664346,
0.277993232,
-0.1048517302,
-0.0501638725,
-0.0727644414,
-0.2023627907,
0.174595505,
0.3054286838,
-0.1538772285,
0.0255791042,
0.429118067,
0.0050463099,
0.0676175877,
-0.2831787467,
-0.0461909324,
0.2243262529,
0.2650600076,
-0.3999670744,
-0.0556363575,
0.6158809662,
0.0548542216,
0.01613345,
-0.024090508,
0.3086698651,
-0.3331358433,
0.4047152698,
0.2263374329,
0.107717298,
-0.4924108386,
0.3917368352,
0.3889967203,
0.1418110579,
0.2312334329,
-0.2415119261,
-0.0994179621,
0.014967205,
0.5796826482,
-0.1127519682,
0.186747402,
0.1313928813,
0.1034803241,
0.0685064644,
-0.1817015558,
0.4539697468,
0.1265458018,
-0.0367220528,
-0.0413845964,
0.1362118721,
-0.0866093636,
0.0966209024,
0.0518011265,
-0.5738658905,
0.3152934015,
-0.0962143615,
-0.0304490011,
-0.2610253394,
-0.3167894483,
-0.1059780493,
0.2709081173,
0.1260485202,
-0.1446887106,
0.1969193369,
0.2926768959,
-0.2410196066,
-0.3587684929,
-0.0338144489,
-0.0856001228,
0.1354915947,
-0.1489032656,
0.3206450343,
0.1651121676,
0.0808823183,
-0.2065196931,
0.2320100963,
0.3398459554,
0.1479955614,
-0.266587615,
-0.0846960768,
0.0007331581,
-0.0283038169,
-0.2076632828,
0.1644432396,
0.0361014977,
0.1346752793,
0.3734742999,
0.1885380596,
-0.2148763388,
-0.4117048085,
0.136680156,
-0.0567136779,
-0.2151162177,
-0.0591667853,
-0.1101949289,
0.0492667668,
-0.2056033462,
-0.0649092346,
-0.3658742607,
0.0535938889,
0.1587986946,
0.1587324739,
0.1997561008,
-0.2283582538,
0.0592397675,
-0.0461370945,
0.3400203288,
0.0060534244,
0.1773186028,
-0.2283470929,
-0.4398961365,
-0.4589533806,
0.0238940604,
-0.1024436057,
-0.0232256167,
0.0091057327,
0.0958054736,
-0.2259980589,
0.2819862962,
0.2899125814,
0.1505447924,
0.2547172308,
0.3836893141,
-0.2402129918,
-0.232545048,
0.2222519219,
0.1177113801,
-0.0836555138,
-0.3939574063,
0.1433153152,
-0.0783695504,
0.0662839636,
-0.1090550125,
-0.3615473807,
0.1444849372,
-0.3861316442,
0.4894537628,
0.1097400114,
0.3944057226,
-0.1514131427,
-0.1537229568,
-0.334126085,
0.0425146595,
-0.0624727421,
0.1106558442,
-0.0607086346,
0.0048040156,
0.0254465267,
0.0198516473,
-0.3020391762,
0.3662020266,
-0.0422276109,
0.2999353707,
-0.2639070749,
-0.021984214,
-0.1390637159,
0.1871522367,
0.0299679134,
0.0520338975,
-0.1993238479,
0.0776229277,
-0.286380887,
-0.3413074911,
0.3391492963,
-0.4722047746,
-0.4799916148,
-0.1206399128,
0.1403044313,
-0.2729484439,
-0.0020171939,
-0.3961180449,
0.190050751,
0.2175247073,
0.0040347409,
0.1847577393,
0.0150664896,
0.0210300274,
0.1091137901,
-0.0594215281,
0.3058613539,
0.1059353352,
-0.3119997084,
0.0241251774,
-0.4060072899
] |
https://github.com/huggingface/datasets/issues/4143 | Unable to download `Wikepedia` 20220301.en version | Hi, how can I load the previous "20200501.en" version of wikipedia which had been downloaded to the default path? Thanks! | ## Describe the bug
Unable to download `Wikepedia` dataset, 20220301.en version
## Steps to reproduce the bug
```python
!pip install apache_beam mwparserfromhell
dataset_wikipedia = load_dataset("wikipedia", "20220301.en")
```
## Actual results
```
ValueError: BuilderConfig 20220301.en not found.
Available: ['20200501.aa', '20200501.ab', '20200501.ace', '20200501.ady', '20200501.af', '20200501.ak', '20200501.als', '20200501.am', '20200501.an', '20200501.ang', '20200501.ar', '20200501.arc', '20200501.arz', '20200501.as', '20200501.ast', '20200501.atj', '20200501.av', '20200501.ay', '20200501.az', '20200501.azb', '20200501.ba', '20200501.bar', '20200501.bat-smg', '20200501.bcl', '20200501.be', '20200501.be-x-old', '20200501.bg', '20200501.bh', '20200501.bi', '20200501.bjn', '20200501.bm', '20200501.bn', '20200501.bo', '20200501.bpy', '20200501.br', '20200501.bs', '20200501.bug', '20200501.bxr', '20200501.ca', '20200501.cbk-zam', '20200501.cdo', '20200501.ce', '20200501.ceb', '20200501.ch', '20200501.cho', '20200501.chr', '20200501.chy', '20200501.ckb', '20200501.co', '20200501.cr', '20200501.crh', '20200501.cs', '20200501.csb', '20200501.cu', '20200501.cv', '20200501.cy', '20200501.da', '20200501.de', '20200501.din', '20200501.diq', '20200501.dsb', '20200501.dty', '20200501.dv', '20200501.dz', '20200501.ee', '20200501.el', '20200501.eml', '20200501.en', '20200501.eo', '20200501.es', '20200501.et', '20200501.eu', '20200501.ext', '20200501.fa', '20200501.ff', '20200501.fi', '20200501.fiu-vro', '20200501.fj', '20200501.fo', '20200501.fr', '20200501.frp', '20200501.frr', '20200501.fur', '20200501.fy', '20200501.ga', '20200501.gag', '20200501.gan', '20200501.gd', '20200501.gl', '20200501.glk', '20200501.gn', '20200501.gom', '20200501.gor', '20200501.got', '20200501.gu', '20200501.gv', '20200501.ha', '20200501.hak', '20200501.haw', '20200501.he', '20200501.hi', '20200501.hif', '20200501.ho', '20200501.hr', '20200501.hsb', '20200501.ht', '20200501.hu', '20200501.hy', '20200501.ia', '20200501.id', '20200501.ie', '20200501.ig', '20200501.ii', '20200501.ik', '20200501.ilo', '20200501.inh', '20200501.io', '20200501.is', '20200501.it', '20200501.iu', '20200501.ja', '20200501.jam', '20200501.jbo', '20200501.jv', '20200501.ka', '20200501.kaa', '20200501.kab', '20200501.kbd', '20200501.kbp', '20200501.kg', '20200501.ki', '20200501.kj', '20200501.kk', '20200501.kl', '20200501.km', '20200501.kn', '20200501.ko', '20200501.koi', '20200501.krc', '20200501.ks', '20200501.ksh', '20200501.ku', '20200501.kv', '20200501.kw', '20200501.ky', '20200501.la', '20200501.lad', '20200501.lb', '20200501.lbe', '20200501.lez', '20200501.lfn', '20200501.lg', '20200501.li', '20200501.lij', '20200501.lmo', '20200501.ln', '20200501.lo', '20200501.lrc', '20200501.lt', '20200501.ltg', '20200501.lv', '20200501.mai', '20200501.map-bms', '20200501.mdf', '20200501.mg', '20200501.mh', '20200501.mhr', '20200501.mi', '20200501.min', '20200501.mk', '20200501.ml', '20200501.mn', '20200501.mr', '20200501.mrj', '20200501.ms', '20200501.mt', '20200501.mus', '20200501.mwl', '20200501.my', '20200501.myv', '20200501.mzn', '20200501.na', '20200501.nah', '20200501.nap', '20200501.nds', '20200501.nds-nl', '20200501.ne', '20200501.new', '20200501.ng', '20200501.nl', '20200501.nn', '20200501.no', '20200501.nov', '20200501.nrm', '20200501.nso', '20200501.nv', '20200501.ny', '20200501.oc', '20200501.olo', '20200501.om', '20200501.or', '20200501.os', '20200501.pa', '20200501.pag', '20200501.pam', '20200501.pap', '20200501.pcd', '20200501.pdc', '20200501.pfl', '20200501.pi', '20200501.pih', '20200501.pl', '20200501.pms', '20200501.pnb', '20200501.pnt', '20200501.ps', '20200501.pt', '20200501.qu', '20200501.rm', '20200501.rmy', '20200501.rn', '20200501.ro', '20200501.roa-rup', '20200501.roa-tara', '20200501.ru', '20200501.rue', '20200501.rw', '20200501.sa', '20200501.sah', '20200501.sat', '20200501.sc', '20200501.scn', '20200501.sco', '20200501.sd', '20200501.se', '20200501.sg', '20200501.sh', '20200501.si', '20200501.simple', '20200501.sk', '20200501.sl', '20200501.sm', '20200501.sn', '20200501.so', '20200501.sq', '20200501.sr', '20200501.srn', '20200501.ss', '20200501.st', '20200501.stq', '20200501.su', '20200501.sv', '20200501.sw', '20200501.szl', '20200501.ta', '20200501.tcy', '20200501.te', '20200501.tet', '20200501.tg', '20200501.th', '20200501.ti', '20200501.tk', '20200501.tl', '20200501.tn', '20200501.to', '20200501.tpi', '20200501.tr', '20200501.ts', '20200501.tt', '20200501.tum', '20200501.tw', '20200501.ty', '20200501.tyv', '20200501.udm', '20200501.ug', '20200501.uk', '20200501.ur', '20200501.uz', '20200501.ve', '20200501.vec', '20200501.vep', '20200501.vi', '20200501.vls', '20200501.vo', '20200501.wa', '20200501.war', '20200501.wo', '20200501.wuu', '20200501.xal', '20200501.xh', '20200501.xmf', '20200501.yi', '20200501.yo', '20200501.za', '20200501.zea', '20200501.zh', '20200501.zh-classical', '20200501.zh-min-nan', '20200501.zh-yue', '20200501.zu']
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Ubuntu
- Python version: 3.6
- PyArrow version: 6.0.1 | 20 | Unable to download `Wikepedia` 20220301.en version
## Describe the bug
Unable to download `Wikepedia` dataset, 20220301.en version
## Steps to reproduce the bug
```python
!pip install apache_beam mwparserfromhell
dataset_wikipedia = load_dataset("wikipedia", "20220301.en")
```
## Actual results
```
ValueError: BuilderConfig 20220301.en not found.
Available: ['20200501.aa', '20200501.ab', '20200501.ace', '20200501.ady', '20200501.af', '20200501.ak', '20200501.als', '20200501.am', '20200501.an', '20200501.ang', '20200501.ar', '20200501.arc', '20200501.arz', '20200501.as', '20200501.ast', '20200501.atj', '20200501.av', '20200501.ay', '20200501.az', '20200501.azb', '20200501.ba', '20200501.bar', '20200501.bat-smg', '20200501.bcl', '20200501.be', '20200501.be-x-old', '20200501.bg', '20200501.bh', '20200501.bi', '20200501.bjn', '20200501.bm', '20200501.bn', '20200501.bo', '20200501.bpy', '20200501.br', '20200501.bs', '20200501.bug', '20200501.bxr', '20200501.ca', '20200501.cbk-zam', '20200501.cdo', '20200501.ce', '20200501.ceb', '20200501.ch', '20200501.cho', '20200501.chr', '20200501.chy', '20200501.ckb', '20200501.co', '20200501.cr', '20200501.crh', '20200501.cs', '20200501.csb', '20200501.cu', '20200501.cv', '20200501.cy', '20200501.da', '20200501.de', '20200501.din', '20200501.diq', '20200501.dsb', '20200501.dty', '20200501.dv', '20200501.dz', '20200501.ee', '20200501.el', '20200501.eml', '20200501.en', '20200501.eo', '20200501.es', '20200501.et', '20200501.eu', '20200501.ext', '20200501.fa', '20200501.ff', '20200501.fi', '20200501.fiu-vro', '20200501.fj', '20200501.fo', '20200501.fr', '20200501.frp', '20200501.frr', '20200501.fur', '20200501.fy', '20200501.ga', '20200501.gag', '20200501.gan', '20200501.gd', '20200501.gl', '20200501.glk', '20200501.gn', '20200501.gom', '20200501.gor', '20200501.got', '20200501.gu', '20200501.gv', '20200501.ha', '20200501.hak', '20200501.haw', '20200501.he', '20200501.hi', '20200501.hif', '20200501.ho', '20200501.hr', '20200501.hsb', '20200501.ht', '20200501.hu', '20200501.hy', '20200501.ia', '20200501.id', '20200501.ie', '20200501.ig', '20200501.ii', '20200501.ik', '20200501.ilo', '20200501.inh', '20200501.io', '20200501.is', '20200501.it', '20200501.iu', '20200501.ja', '20200501.jam', '20200501.jbo', '20200501.jv', '20200501.ka', '20200501.kaa', '20200501.kab', '20200501.kbd', '20200501.kbp', '20200501.kg', '20200501.ki', '20200501.kj', '20200501.kk', '20200501.kl', '20200501.km', '20200501.kn', '20200501.ko', '20200501.koi', '20200501.krc', '20200501.ks', '20200501.ksh', '20200501.ku', '20200501.kv', '20200501.kw', '20200501.ky', '20200501.la', '20200501.lad', '20200501.lb', '20200501.lbe', '20200501.lez', '20200501.lfn', '20200501.lg', '20200501.li', '20200501.lij', '20200501.lmo', '20200501.ln', '20200501.lo', '20200501.lrc', '20200501.lt', '20200501.ltg', '20200501.lv', '20200501.mai', '20200501.map-bms', '20200501.mdf', '20200501.mg', '20200501.mh', '20200501.mhr', '20200501.mi', '20200501.min', '20200501.mk', '20200501.ml', '20200501.mn', '20200501.mr', '20200501.mrj', '20200501.ms', '20200501.mt', '20200501.mus', '20200501.mwl', '20200501.my', '20200501.myv', '20200501.mzn', '20200501.na', '20200501.nah', '20200501.nap', '20200501.nds', '20200501.nds-nl', '20200501.ne', '20200501.new', '20200501.ng', '20200501.nl', '20200501.nn', '20200501.no', '20200501.nov', '20200501.nrm', '20200501.nso', '20200501.nv', '20200501.ny', '20200501.oc', '20200501.olo', '20200501.om', '20200501.or', '20200501.os', '20200501.pa', '20200501.pag', '20200501.pam', '20200501.pap', '20200501.pcd', '20200501.pdc', '20200501.pfl', '20200501.pi', '20200501.pih', '20200501.pl', '20200501.pms', '20200501.pnb', '20200501.pnt', '20200501.ps', '20200501.pt', '20200501.qu', '20200501.rm', '20200501.rmy', '20200501.rn', '20200501.ro', '20200501.roa-rup', '20200501.roa-tara', '20200501.ru', '20200501.rue', '20200501.rw', '20200501.sa', '20200501.sah', '20200501.sat', '20200501.sc', '20200501.scn', '20200501.sco', '20200501.sd', '20200501.se', '20200501.sg', '20200501.sh', '20200501.si', '20200501.simple', '20200501.sk', '20200501.sl', '20200501.sm', '20200501.sn', '20200501.so', '20200501.sq', '20200501.sr', '20200501.srn', '20200501.ss', '20200501.st', '20200501.stq', '20200501.su', '20200501.sv', '20200501.sw', '20200501.szl', '20200501.ta', '20200501.tcy', '20200501.te', '20200501.tet', '20200501.tg', '20200501.th', '20200501.ti', '20200501.tk', '20200501.tl', '20200501.tn', '20200501.to', '20200501.tpi', '20200501.tr', '20200501.ts', '20200501.tt', '20200501.tum', '20200501.tw', '20200501.ty', '20200501.tyv', '20200501.udm', '20200501.ug', '20200501.uk', '20200501.ur', '20200501.uz', '20200501.ve', '20200501.vec', '20200501.vep', '20200501.vi', '20200501.vls', '20200501.vo', '20200501.wa', '20200501.war', '20200501.wo', '20200501.wuu', '20200501.xal', '20200501.xh', '20200501.xmf', '20200501.yi', '20200501.yo', '20200501.za', '20200501.zea', '20200501.zh', '20200501.zh-classical', '20200501.zh-min-nan', '20200501.zh-yue', '20200501.zu']
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Ubuntu
- Python version: 3.6
- PyArrow version: 6.0.1
Hi, how can I load the previous "20200501.en" version of wikipedia which had been downloaded to the default path? Thanks! | [
-0.3187177479,
0.1336507201,
-0.1322391182,
0.2605266869,
-0.0983971879,
0.069312878,
0.3329180777,
0.4483046532,
0.2501382232,
0.3041918874,
0.2490293533,
0.1295749545,
0.0758542866,
0.327134639,
0.1037939712,
-0.4493441582,
0.2669945955,
0.1209755167,
-0.3334058225,
-0.087865226,
-0.2145046741,
0.1950385422,
-0.2846409678,
-0.0149610024,
0.0001319742,
0.0273088496,
0.0942658111,
-0.2403535694,
-0.3062953949,
-0.2891095877,
0.1956105679,
-0.0574038178,
0.2242722064,
0.1828519851,
-0.000110905,
0.0604681335,
0.4632192552,
-0.123596333,
-0.3431126475,
-0.1780217141,
-0.3477603495,
-0.3295606971,
-0.1810354143,
-0.3486424088,
-0.0258102957,
-0.151105687,
-0.012507339,
-0.044949878,
0.2222876698,
0.1844275594,
0.2374434769,
0.2104109228,
0.5298444629,
-0.2365537882,
0.3195529282,
-0.5026229024,
-0.2480250746,
-0.3113802969,
0.0499594472,
-0.0028412577,
0.0171501171,
0.4777200818,
0.0620702393,
0.0209752135,
0.0485634506,
-0.2826092541,
0.240829438,
-0.4312252402,
0.4976035357,
0.24488464,
0.6387534142,
0.0050620115,
-0.1769123673,
0.0594143309,
-0.0025997667,
0.2044704556,
0.3989378214,
0.2277588099,
-0.2052322626,
-0.0054383595,
-0.0095430277,
-0.1456789374,
-0.1406552941,
0.2331545353,
-0.1749785542,
0.9241115451,
-0.0046307696,
0.2274700552,
0.0259300284,
-0.2206694037,
0.1294308752,
-0.3484387398,
0.0732014328,
0.1815065891,
0.0211909991,
-0.0230020955,
-0.0087341433,
0.3671460748,
0.1109981313,
-0.1388396174,
-0.4025187194,
0.0706597194,
0.2011635154,
0.0575159155,
0.1480598599,
0.0544501022,
-0.0600575991,
-0.1137926653,
0.2069259137,
0.4950534999,
0.1058844402,
0.1824930906,
0.1054914072,
-0.3332950771,
-0.2521497607,
0.174788028,
0.1196229979,
-0.1072688997,
-0.1310708076,
0.0618311986,
-0.1326621324,
-0.1180409566,
-0.2372296154,
0.2258861363,
-0.2953328192,
0.3738018274,
0.0838763863,
-0.0578991845,
-0.1761547923,
-0.2986440957,
-0.1047040746,
0.196058169,
-0.0603747033,
-0.002353875,
0.1925482452,
-0.1269779652,
0.3903244138,
0.0975971222,
0.0483420566,
-0.1837179512,
-0.0334497429,
0.0771163926,
-0.1726226062,
0.3475731313,
0.2078541219,
0.3185744882,
-0.1887440085,
-0.3180845678,
0.0029937467,
0.1113502011,
-0.2286963463,
-0.2084013224,
-0.3206180632,
0.1903470904,
-0.1138690338,
0.0438984632,
-0.009508526,
-0.274148792,
0.1140170097,
-0.0973157436,
-0.1302751452,
-0.1224832982,
-0.2094013691,
-0.1705467552,
0.3936006129,
0.2712748945,
-0.2965458632,
-0.0242664963,
-0.1354973316,
-0.0372204967,
-0.0619073994,
-0.1118908376,
-0.1758281142,
0.283334136,
-0.2586906552,
-0.1462766826,
0.4512020648,
-0.4036870599,
-0.4922116399,
0.0080368416,
0.0719501674,
0.1358332187,
0.1949094832,
-0.1470433176,
0.2294362932,
-0.0612609014,
0.0501050279,
0.2053746879,
0.1215866506,
-0.0313083939,
-0.2064223737,
-0.4252710044,
-0.0134428488,
0.1041571498,
0.1852662116,
-0.1020300314,
0.0267129559,
0.3606639206,
0.3960698545,
-0.0875941515,
0.1778318435,
0.2077093422,
-0.0851231143,
-0.1776701361,
0.17650114,
-0.2002660036,
-0.3806578517,
0.3346128464,
-0.2122880369,
-0.0291553903,
0.0142345438,
-0.0597948246,
-0.5651836991,
0.1095886305,
-0.3570299745,
-0.1631073952,
0.2558438778,
0.1208626851,
0.2513593435,
0.1989627033,
0.0792865381,
-0.1314972639,
-0.0057931179,
-0.0902704224,
-0.0836816207,
0.2001150399,
-0.4286354184,
0.0767861605,
0.0816911831,
0.1435599476,
0.4123261273,
-0.1184856519,
-0.0962562934,
0.0692038983,
0.0998617411,
0.328744173,
-0.2487069666,
0.0058621662,
0.1733942628,
-0.2708815932,
0.2325088829,
0.2711999714,
0.0457012504,
0.025528824,
-0.0996001214,
0.1498392373,
0.2149907351,
0.2648134828,
-0.0051097563,
0.2650560141,
0.3658011854,
-0.0294587333,
0.0762043148,
-0.328882575,
0.2632723153,
0.0147596365,
-0.1137503907,
-0.0470959879,
0.0883489847,
0.1023613587,
0.4830577374,
-0.0544350445,
0.044453349,
-0.0451425873,
-0.2354451567,
0.0468419194,
0.2704585195,
0.3708181679,
0.0265656821,
0.1222203299,
0.0115882866,
0.0873497427,
0.0999779329,
-0.0574138239,
0.2357311845,
0.2512287796,
0.3571578264,
0.2897582352,
-0.0918103382,
0.1087459847,
0.1126629338,
0.0844716579,
-0.1685064286,
0.0936256796,
-0.1187693551,
-0.090816617,
-0.2318830341,
-0.0133630009,
-0.388573736,
0.1366241127,
-0.282320559,
-0.3058372438,
0.1408071071,
0.2700138986,
-0.2215798646,
0.2608425319,
0.0805863366,
-0.0597234592,
0.0372227319,
-0.0264065675,
-0.2995153666,
-0.049132742,
-0.3972214162,
0.0673140734,
0.2413884103,
0.0351102464,
0.3073672652,
-0.2740054429,
-0.071080327,
-0.6663246751,
-0.3798185885,
0.2830164433,
0.0110551557,
0.2713593543,
0.2400646061,
0.3739994764,
0.2229676396,
-0.2848647833,
0.1219580472,
0.0195090231,
0.0030152695,
-0.1201096699,
-0.211405322,
0.0452287458,
0.1005075723,
-0.470356077,
-0.4306610823,
-0.2938411832,
-0.1932702214,
0.4127391577,
0.1553024501,
-0.1410026848,
0.1676158756,
-0.1750600487,
0.188763395,
0.0339717679,
0.0006767891,
0.0307904277,
0.4017177224,
-0.361893177,
-0.5720647573,
0.2299479395,
-0.1406982839,
0.2701427042,
-0.0397476591,
-0.4857620001,
0.1504855901,
0.0886065736,
-0.0542360842,
0.0169108566,
0.0784140974,
0.3735063672,
0.1068836525,
0.0759204924,
-0.110802196,
-0.1370649636,
-0.0985379145,
-0.2560419142,
0.3876020312,
0.2078669518,
0.1955325752,
0.0839719474,
0.8127422333,
0.3120050728,
0.1435550749,
0.215783596,
0.0923846066,
-0.1664562225,
-0.1577798128,
-0.2224461436,
0.0801236555,
-0.0808709413,
0.0743942633,
0.2833176255,
-0.0782485455,
-0.3247644007,
-0.2985642254,
-0.1209682599,
-0.1220062077,
-0.3168403804,
-0.0432090871,
0.0795391351,
0.3541941345,
0.1830810905,
0.233496815,
-0.1411948353,
-0.3107970655,
0.3637539446,
0.0470557027,
-0.0613272637,
0.0311937593,
0.2921221852,
-0.1044987664,
-0.388752073,
0.1645168215,
0.2320527285,
0.2371868789,
0.0068225842,
0.0811433867,
0.1309660077,
-0.2345959693,
0.3693679571,
-0.398432374,
0.4803285897,
0.0645170361,
0.1160172373,
-0.2973490357,
-0.199762851,
-0.2091712654,
-0.1086670607,
0.3391199112,
0.37597543,
-0.2378427237,
-0.0262557305,
0.5812436342,
0.3529174328,
-0.2337842435,
-0.1132492647,
-0.134137705,
-0.2000948042,
-0.5458872318,
-0.1421815157,
-0.0682124272,
0.4137456119,
-0.0646238998,
-0.0299743731,
0.0793422163,
-0.0037684615,
-0.3314149678,
0.0791113302,
0.2198320478,
0.1114000306,
0.0628496781,
0.0427045263,
0.0896214172,
-0.1725588888,
0.0473795719,
0.1302671582,
0.0005067272,
-0.0182733592,
-0.0663431585,
-0.120833151,
0.1439345181,
-0.2688097954,
-0.3486826718,
0.1877877861,
0.0904083028,
-0.0834675431,
-0.072394982,
0.2902608812,
-0.0584542491,
-0.5071291924,
-0.2019379884,
0.5884355307,
0.1296379119,
-0.1354059428,
0.2793213129,
0.2435884774,
-0.1078382358,
0.3886093795,
0.2347152978,
0.8756207824,
0.1899432242,
0.0162874404,
0.1689993739,
-0.1363078803,
0.3587462604,
-0.5133188367,
-0.0205826573,
-0.183782652,
0.0183649529,
-0.1631537974,
0.0200201422,
0.1916388869,
-0.0723697841,
-0.378384918,
0.4259525239,
0.2290346026,
0.3270496726,
0.0438955426,
0.1421096027,
-0.1316531897,
-0.1294985861,
-0.0849347338,
0.0849514604,
0.027546607,
0.5214972496,
-0.2151179612,
-0.0103358543,
0.1388028115,
-0.3498483002,
-0.4225018024,
0.1666202098,
-0.273712635,
0.2503666878,
-0.2320204526,
-0.3226049244,
0.2073552758,
0.2239126563,
0.0808439851,
0.2427486479,
-0.28899014,
0.3472860754,
-0.2437723279,
-0.1762940586,
0.0278676469,
0.084146753,
0.028012326,
-0.4053779244,
-0.3335297108,
0.0591308549,
-0.1327652782,
-0.1745150089,
0.0655220151,
-0.0137992492,
0.4377971888,
0.0913153067,
-0.1063672304,
-0.0235419553,
0.1010056809,
-0.3265793324,
0.1874895841,
-0.3748524785,
-0.2145975679,
0.1304229945,
0.0776554868,
-0.1944273412,
-0.031920854,
0.5540798306,
0.0516230129,
-0.0522195734,
0.5714418292,
0.2539154291,
-0.2965147793,
-0.2665925026,
-0.1290144175,
-0.3687416017,
-0.3560063839,
-0.2279594541,
-0.0962378234,
-0.0355578735,
-0.3752155304,
0.534293592,
0.2251250446,
-0.0914248526,
0.0601783171,
-0.6035679579,
0.0486487411,
0.0480736829,
-0.0279107392,
0.0412604287,
0.0396887772,
0.0671950728,
0.1087705642,
-0.0309534371,
-0.3011843562,
-0.0268397555,
-0.1794810444,
0.0672118664,
0.282707721,
0.1255697161,
-0.1634455919,
0.2863721251,
0.1634331048,
0.0423722453,
-0.1598892808,
-0.2409301698,
-0.0908767879,
0.1162624657,
-0.0009531885,
-0.1499476284,
0.2054702193,
-0.1838304549,
-0.1517155319,
0.1415932924,
0.1234304979,
-0.275943011,
-0.0199760348,
0.1131077632,
0.1110574529,
0.2336789221,
-0.3225711882,
0.1743181944,
-0.0291770529,
0.4807443619,
0.0315847285,
0.3533664346,
0.277993232,
-0.1048517302,
-0.0501638725,
-0.0727644414,
-0.2023627907,
0.174595505,
0.3054286838,
-0.1538772285,
0.0255791042,
0.429118067,
0.0050463099,
0.0676175877,
-0.2831787467,
-0.0461909324,
0.2243262529,
0.2650600076,
-0.3999670744,
-0.0556363575,
0.6158809662,
0.0548542216,
0.01613345,
-0.024090508,
0.3086698651,
-0.3331358433,
0.4047152698,
0.2263374329,
0.107717298,
-0.4924108386,
0.3917368352,
0.3889967203,
0.1418110579,
0.2312334329,
-0.2415119261,
-0.0994179621,
0.014967205,
0.5796826482,
-0.1127519682,
0.186747402,
0.1313928813,
0.1034803241,
0.0685064644,
-0.1817015558,
0.4539697468,
0.1265458018,
-0.0367220528,
-0.0413845964,
0.1362118721,
-0.0866093636,
0.0966209024,
0.0518011265,
-0.5738658905,
0.3152934015,
-0.0962143615,
-0.0304490011,
-0.2610253394,
-0.3167894483,
-0.1059780493,
0.2709081173,
0.1260485202,
-0.1446887106,
0.1969193369,
0.2926768959,
-0.2410196066,
-0.3587684929,
-0.0338144489,
-0.0856001228,
0.1354915947,
-0.1489032656,
0.3206450343,
0.1651121676,
0.0808823183,
-0.2065196931,
0.2320100963,
0.3398459554,
0.1479955614,
-0.266587615,
-0.0846960768,
0.0007331581,
-0.0283038169,
-0.2076632828,
0.1644432396,
0.0361014977,
0.1346752793,
0.3734742999,
0.1885380596,
-0.2148763388,
-0.4117048085,
0.136680156,
-0.0567136779,
-0.2151162177,
-0.0591667853,
-0.1101949289,
0.0492667668,
-0.2056033462,
-0.0649092346,
-0.3658742607,
0.0535938889,
0.1587986946,
0.1587324739,
0.1997561008,
-0.2283582538,
0.0592397675,
-0.0461370945,
0.3400203288,
0.0060534244,
0.1773186028,
-0.2283470929,
-0.4398961365,
-0.4589533806,
0.0238940604,
-0.1024436057,
-0.0232256167,
0.0091057327,
0.0958054736,
-0.2259980589,
0.2819862962,
0.2899125814,
0.1505447924,
0.2547172308,
0.3836893141,
-0.2402129918,
-0.232545048,
0.2222519219,
0.1177113801,
-0.0836555138,
-0.3939574063,
0.1433153152,
-0.0783695504,
0.0662839636,
-0.1090550125,
-0.3615473807,
0.1444849372,
-0.3861316442,
0.4894537628,
0.1097400114,
0.3944057226,
-0.1514131427,
-0.1537229568,
-0.334126085,
0.0425146595,
-0.0624727421,
0.1106558442,
-0.0607086346,
0.0048040156,
0.0254465267,
0.0198516473,
-0.3020391762,
0.3662020266,
-0.0422276109,
0.2999353707,
-0.2639070749,
-0.021984214,
-0.1390637159,
0.1871522367,
0.0299679134,
0.0520338975,
-0.1993238479,
0.0776229277,
-0.286380887,
-0.3413074911,
0.3391492963,
-0.4722047746,
-0.4799916148,
-0.1206399128,
0.1403044313,
-0.2729484439,
-0.0020171939,
-0.3961180449,
0.190050751,
0.2175247073,
0.0040347409,
0.1847577393,
0.0150664896,
0.0210300274,
0.1091137901,
-0.0594215281,
0.3058613539,
0.1059353352,
-0.3119997084,
0.0241251774,
-0.4060072899
] |
https://github.com/huggingface/datasets/issues/4140 | Error loading arxiv data set | Hi! I think this error may be related to using an older version of the library. I was able to load the dataset without any issues using the latest version of `datasets`. Can you upgrade to the latest version of `datasets` and try again? :) | ## Describe the bug
A clear and concise description of what the bug is.
I met the error below when loading arxiv dataset via `nlp.load_dataset('scientific_papers', 'arxiv',)`.
```
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv')
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 522, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 38, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
nlp.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?id=1b3rmCSIoh6VhD4HKWjI4HOW-cSwcwbeC&export=download', 'https://drive.google.com/uc?id=1lvsqvsFi3W-pE1SqNZI0s8NR9rC1tsja&export=download']
```
I then tried to ignore verification steps by `ignore_verifications=True` and there is another error.
```
Traceback (most recent call last):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 537, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 810, in _prepare_split
for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/datasets/scientific_papers/9e4f2cfe3d8494e9f34a84ce49c3214605b4b52a3d8eb199104430d04c52cc12/scientific_papers.py", line 108, in _generate_examples
with open(path, encoding="utf-8") as f:
NotADirectoryError: [Errno 20] Not a directory: '/home/username/.cache/huggingface/datasets/downloads/c0deae7af7d9c87f25dfadf621f7126f708d7dcac6d353c7564883084a000076/arxiv-dataset/train.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv', ignore_verifications=True)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 539, in _download_and_prepare
raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
OSError: Cannot find data file.
```
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
```
## 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:
- Platform:
- Python version:
- PyArrow version:
| 45 | Error loading arxiv data set
## Describe the bug
A clear and concise description of what the bug is.
I met the error below when loading arxiv dataset via `nlp.load_dataset('scientific_papers', 'arxiv',)`.
```
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv')
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 522, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 38, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
nlp.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?id=1b3rmCSIoh6VhD4HKWjI4HOW-cSwcwbeC&export=download', 'https://drive.google.com/uc?id=1lvsqvsFi3W-pE1SqNZI0s8NR9rC1tsja&export=download']
```
I then tried to ignore verification steps by `ignore_verifications=True` and there is another error.
```
Traceback (most recent call last):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 537, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 810, in _prepare_split
for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/datasets/scientific_papers/9e4f2cfe3d8494e9f34a84ce49c3214605b4b52a3d8eb199104430d04c52cc12/scientific_papers.py", line 108, in _generate_examples
with open(path, encoding="utf-8") as f:
NotADirectoryError: [Errno 20] Not a directory: '/home/username/.cache/huggingface/datasets/downloads/c0deae7af7d9c87f25dfadf621f7126f708d7dcac6d353c7564883084a000076/arxiv-dataset/train.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv', ignore_verifications=True)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 539, in _download_and_prepare
raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
OSError: Cannot find data file.
```
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
```
## 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:
- Platform:
- Python version:
- PyArrow version:
Hi! I think this error may be related to using an older version of the library. I was able to load the dataset without any issues using the latest version of `datasets`. Can you upgrade to the latest version of `datasets` and try again? :) | [
-0.1380846947,
0.1616727114,
0.0079347193,
0.2819574773,
0.2916662395,
-0.047817491,
0.0685460269,
0.5627236962,
0.054112047,
-0.0670319647,
-0.063769348,
0.2794142067,
0.0753566325,
0.0028108654,
0.1414510608,
-0.1872990429,
-0.0851801038,
0.1162745208,
0.0183116663,
-0.0099482099,
-0.3018707931,
0.1323902905,
-0.1504234076,
-0.0400687009,
0.3463238776,
0.1119772866,
0.0611354373,
0.3315549195,
0.16651389,
-0.4878040254,
0.0750794113,
0.0188510232,
0.086743027,
0.3928323686,
-0.0001067398,
0.0563837774,
0.442511946,
-0.0795523077,
-0.1599881798,
-0.1493007988,
-0.4832999706,
-0.4201853573,
-0.0495628938,
-0.2434618324,
0.1072008461,
-0.3086589575,
-0.0063520353,
0.0495028868,
0.0055387826,
0.3646395802,
0.2819548249,
0.20995906,
0.2724841237,
-0.0134171657,
0.1779298633,
-0.4309033453,
0.0948579758,
0.2816668153,
0.0847399384,
-0.0758531541,
-0.27229774,
0.2593002319,
-0.1803468168,
0.0299339201,
0.1993479282,
-0.0613588952,
-0.1026267409,
-0.0764425471,
0.0674039721,
0.3237184882,
0.1476987302,
-0.0692450628,
-0.3203332722,
-0.1821666956,
0.073709324,
-0.3004982769,
0.1207816824,
0.2258660495,
-0.1186732948,
-0.1043760851,
-0.2303992808,
0.0358914994,
-0.1683056056,
0.2713920176,
0.1804851145,
-0.1199370995,
0.0969409794,
0.0905940607,
0.0599075034,
-0.1760349274,
-0.0380429924,
-0.0182085652,
-0.0425841175,
0.154875353,
-0.5752330422,
0.0271226894,
0.2557948232,
0.1489048302,
0.3020169735,
0.1013180912,
0.1813839376,
-0.006846712,
-0.165531829,
0.1342760473,
0.0710940734,
0.1213457584,
-0.2166015059,
-0.0214182269,
0.3532575965,
0.2751027942,
0.1227640882,
0.1270889044,
0.0084190648,
-0.3597219586,
0.0480728857,
0.0972013474,
0.1849510223,
-0.2403918207,
-0.1452702284,
0.2655131221,
0.1474443674,
0.1776274145,
0.1025105491,
0.3839559257,
-0.1356455833,
0.2424801439,
0.0362756923,
0.191125527,
-0.2607532442,
-0.0664932281,
-0.2269109488,
0.0700796694,
-0.1265904009,
-0.3273314834,
0.3066747189,
-0.081422843,
0.326754272,
-0.09487167,
0.1326060146,
-0.2234711349,
0.1274432242,
-0.1248866469,
0.064187251,
0.424381882,
0.1130819321,
0.0036206853,
0.1173831522,
-0.1321034729,
-0.0420383811,
0.0752362087,
-0.2100775987,
-0.3080368936,
-0.2199480981,
0.2995612323,
-0.2850598395,
0.0336745195,
-0.0753169432,
-0.2988899946,
0.1672143638,
-0.2120496184,
-0.2323486358,
-0.374722749,
-0.2237342745,
-0.2444603145,
0.3164907694,
0.3786624074,
-0.0552751347,
0.182117328,
-0.1189571992,
-0.1388157159,
0.0759576708,
0.2529437244,
-0.1716853678,
0.0111165671,
-0.2377071232,
0.0186393522,
0.2686392963,
-0.2588652074,
-0.518445313,
0.0791020468,
-0.1880943626,
0.12376111,
0.0129510639,
0.0699568689,
0.0572177321,
-0.1195295379,
0.4729813039,
0.191591233,
-0.0015795365,
0.2868922651,
-0.4289955497,
-0.187173605,
0.3823611438,
0.1206304133,
0.151043877,
0.011368949,
0.1709653735,
-0.0862876624,
0.2168108821,
-0.0237555318,
-0.1383649856,
0.0716902614,
0.0338663086,
-0.1673476994,
0.1879227757,
0.0457600318,
-0.2940440476,
0.3451754451,
-0.3001654148,
0.1203931719,
-0.0609737784,
0.101486437,
-0.4134756625,
0.0067461324,
-0.1108827144,
0.0572106726,
0.2256697267,
0.2120035887,
-0.0642256439,
0.1604308933,
0.0511445031,
0.0351899266,
-0.5864825845,
-0.1918687671,
-0.5533508658,
0.1203542277,
-0.0999548435,
0.0225937869,
0.3084287643,
0.2770110071,
0.0443802886,
-0.0089977207,
-0.1568635404,
0.399528861,
0.2011051923,
0.2969309092,
0.2235656977,
0.1304131746,
0.0241715014,
-0.3599824905,
0.1258415878,
0.1981140822,
0.3864070177,
-0.0666962713,
-0.0308258049,
0.3583999574,
-0.2964283228,
0.0223728828,
0.3021106124,
0.1325824708,
0.6256588697,
-0.255497098,
-0.17419599,
-0.2754426599,
0.4320757687,
0.2208411098,
-0.2247735858,
-0.0070997323,
-0.3402595222,
-0.0863345638,
0.152844727,
0.0892845541,
-0.0552549921,
0.2350136489,
-0.0416722745,
-0.1823014468,
0.0270281006,
0.4649966955,
0.3460558951,
0.1482575536,
-0.1568123847,
0.1531209499,
-0.1869183183,
-0.1427851468,
0.1405969858,
0.1848256886,
0.1480088979,
0.5639660954,
0.2418777645,
0.1361271739,
-0.3137306571,
-0.1077726409,
0.0944837853,
0.2333241403,
-0.63278234,
-0.1381765306,
-0.1401060373,
-0.2744781077,
-0.4248914123,
-0.1904182583,
-0.1537567377,
-0.3254473209,
0.026275374,
0.1444503516,
-0.2872746289,
0.1719336659,
-0.4461556673,
0.2278121114,
0.0610218644,
-0.0406152122,
0.2179017365,
-0.0534564443,
0.0707722306,
0.091744557,
0.3021270931,
0.1681956053,
0.4604322016,
-0.1090729013,
-0.1782106757,
-0.0428406745,
-0.3497315943,
-0.1152974442,
-0.1928634793,
0.2788572311,
0.2827104926,
0.1225317195,
0.3378616869,
-0.2205563635,
0.2592123449,
0.0699231178,
-0.094580397,
0.4519692361,
0.0196596403,
-0.2362945825,
-0.0731681213,
-0.3587943017,
-0.1211176813,
-0.4839923382,
-0.2813687325,
0.1088942215,
0.2631079555,
0.2318053842,
0.1786579043,
0.2770977318,
0.0500941128,
0.1359965503,
-0.1518490314,
0.1289953291,
0.2514483333,
-0.101151064,
-0.5094352961,
-0.0075675943,
-0.0446497612,
0.1824379414,
0.2108150274,
-0.5630871058,
-0.1612052768,
-0.1131365821,
-0.1830170006,
0.1134902388,
-0.1611026376,
0.1414193809,
-0.0695433319,
-0.1709905714,
-0.1912466884,
-0.2026792318,
0.0307793561,
0.0128292032,
0.2515996695,
-0.0895853564,
0.2906888723,
0.0120939603,
0.4966295958,
0.4086683989,
0.0023279197,
0.1850215346,
0.0229112133,
0.3040972054,
-0.1158751473,
-0.3167759478,
0.1102366224,
-0.064868331,
0.0413067192,
0.1175094843,
-0.1212091818,
-0.1699646711,
-0.0857716203,
-0.0476213694,
-0.1985042691,
-0.2714904845,
0.2970201373,
-0.44673419,
0.28007406,
0.0630253181,
-0.1122672856,
-0.118889235,
-0.2772782147,
-0.1365483403,
0.2460605353,
-0.0382654108,
-0.0809603781,
-0.3193211854,
0.0322746113,
-0.2358681113,
0.228740707,
0.1631252915,
0.6825211048,
0.0223689284,
-0.1891731471,
-0.0697117299,
-0.232991904,
0.4736991823,
-0.1108417362,
0.4977697432,
0.234127149,
-0.0402785987,
-0.3248382509,
0.0276667699,
0.0134503981,
0.0400113761,
0.2684799433,
0.3063306212,
-0.0734682009,
-0.0254132506,
0.1939437538,
0.286989212,
-0.2489503026,
-0.1036111116,
-0.2206126451,
-0.3280744255,
-0.2625698745,
-0.1226770356,
-0.13031964,
0.1722566187,
-0.2503312826,
-0.1055944487,
-0.0203156099,
-0.1701495051,
0.0313394591,
0.1587821841,
0.3170528412,
0.0771303251,
0.3457340896,
0.057849668,
-0.0019456805,
0.0518876463,
0.4541710317,
-0.1599073559,
-0.3018658161,
-0.0997301564,
-0.2435354888,
0.0368408971,
0.159072116,
-0.2049144059,
-0.1021340415,
0.2328007072,
-0.0193210766,
-0.1844513863,
-0.015837457,
0.2141365856,
-0.0577685013,
-0.2030660361,
-0.1973056495,
0.2855349779,
-0.2906995118,
-0.1697381884,
0.2059064955,
0.0761331841,
-0.263681829,
0.4430805445,
0.0613230653,
0.7012249231,
0.1676075459,
0.0694810152,
0.2637088299,
-0.0952045098,
0.2510326505,
0.4419493079,
0.1781503409,
-0.4686663747,
-0.4152953625,
-0.0275657587,
-0.2099711299,
-0.1560654938,
-0.0510788113,
0.0169813912,
0.1162631661,
0.0005130779,
-0.1866006851,
0.2235305458,
0.2882644534,
0.1784226149,
-0.1909328699,
-0.4895256758,
0.1901295483,
-0.1996009201,
-0.011242683,
-0.0206895173,
0.0088253831,
-0.1189521775,
-0.2187716663,
-0.3988013566,
0.4161478281,
0.1840081066,
0.1862518787,
0.0683021098,
-0.1093654335,
-0.0221398789,
0.3081147075,
0.0061497074,
0.2676450014,
-0.2710184753,
0.177281782,
0.2586540878,
-0.0055451426,
0.2584626377,
0.0844404325,
0.4589005709,
-0.2340717018,
-0.0163305141,
-0.0435497947,
-0.0863563791,
-0.3252591789,
0.1983221173,
0.0851548091,
-0.0346195996,
-0.1554205567,
-0.3542764187,
0.0370503813,
0.0078269476,
-0.2186564803,
0.2071669549,
0.2499221414,
-0.038599357,
0.2057612985,
0.0995145068,
-0.3675469756,
0.1922917813,
0.3745560944,
0.1331463754,
0.0233688559,
0.5706275702,
0.1337168366,
-0.1009176075,
-0.2350031585,
-0.3102117181,
-0.4881148636,
-0.5573884845,
0.135813877,
-0.0725365058,
0.1260849535,
0.0135866404,
0.1385952979,
0.1078191623,
-0.0750024915,
0.0354089439,
-0.941978097,
-0.021179039,
0.0567951463,
-0.1885620654,
0.200759396,
0.0444633998,
-0.1141220033,
-0.1414656341,
0.0141695719,
-0.3972071409,
0.1449181139,
-0.3778889179,
0.0654439703,
0.0249664243,
0.0364476293,
0.0215944853,
-0.1416487247,
0.1924182922,
-0.1704768389,
-0.1721215099,
-0.273946017,
-0.3075929284,
0.1098291203,
0.0310152806,
-0.2117558718,
0.0337239839,
-0.213285476,
-0.182272926,
0.0460887551,
0.0355141461,
0.016506806,
-0.2531122565,
0.0628690496,
-0.1329255849,
0.0575518124,
0.2258694023,
0.2520092726,
-0.2206056565,
0.0389818326,
0.1893076897,
0.2967820168,
-0.3092493713,
-0.0895596817,
-0.251067996,
0.1027782932,
-0.183542788,
0.0395453461,
0.4786131084,
-0.0414862782,
-0.0128304986,
0.1051579192,
0.2273356467,
0.2932955921,
-0.5117555857,
-0.0369335525,
0.0965092331,
0.2366617024,
-0.5061591268,
0.0053600594,
0.0747159794,
0.026428476,
-0.0616642199,
0.0273456387,
0.216203481,
-0.2512898445,
0.0717560276,
0.0230648201,
0.5541499853,
-0.3632875979,
0.1464885473,
0.1369137913,
-0.1658352911,
-0.0236323718,
-0.0995797515,
0.0065519055,
0.192970112,
0.1508163661,
0.1947124302,
0.2334688455,
-0.1692732275,
0.1517572999,
-0.2584522963,
-0.5342638493,
0.1396609843,
0.3165103495,
-0.0830311552,
0.3163416982,
0.1217182204,
0.2997448146,
0.0443595871,
0.2637061179,
-0.3386569321,
0.170132339,
0.0349833295,
-0.0841405764,
-0.3122369945,
-0.2218356133,
-0.1453267783,
0.0670003518,
-0.0546425506,
0.0679095984,
0.1596547812,
0.2178357095,
-0.3610663712,
-0.6163299084,
0.1426134259,
0.0789917037,
-0.0142533714,
-0.3372633159,
0.2102994919,
0.3250971138,
0.0795859098,
0.1393741518,
0.2594172657,
0.4625498354,
0.3912016451,
0.1348189861,
-0.1736183017,
0.1512745023,
0.2016994208,
-0.1345580816,
0.4393530488,
0.2319290936,
0.2892337441,
0.5008739829,
0.1759581566,
-0.1575848311,
0.2008131146,
0.1154408976,
0.0292587765,
0.1180556044,
0.4636279047,
0.0440866165,
0.1005719602,
-0.2872186303,
0.0945360065,
-0.2336841077,
-0.1526691318,
0.3891414404,
0.0329224803,
0.2404710948,
-0.1490660459,
0.1278857738,
-0.0315729156,
0.6297276616,
0.3740626872,
0.2058718055,
-0.2587976158,
-0.1581100523,
-0.8518228531,
0.362803489,
-0.0187215582,
0.0488113798,
0.1540861428,
0.1613025367,
0.0250425413,
0.0037433975,
0.0052704583,
-0.1833476573,
-0.3539617956,
-0.1151908487,
-0.102474153,
-0.1886533648,
-0.2556061447,
-0.0292286295,
-0.1612437963,
-0.2876082361,
0.0604785085,
-0.0342955329,
0.1732542068,
0.0664562657,
-0.0823831335,
0.0306808837,
0.1008598134,
0.2153288424,
0.0716406405,
0.5880294442,
-0.1544424146,
-0.1672201306,
-0.3870552182,
-0.2778378129,
-0.2592707574,
0.2334557325,
0.2554428279,
0.3388198316,
0.0802765191,
0.0715519264,
-0.0423933491,
0.1953283548,
-0.1437672228,
-0.2412026078,
-0.1839333475,
0.2715433836,
0.0091502545,
0.0220305361,
0.1505130231,
0.0849398673,
-0.0823082924,
0.2604586184,
-0.045559179,
-0.4038124681,
0.3354563713,
-0.1587653011,
-0.1084676012,
-0.0447993837,
0.251452446,
-0.585120976,
0.0990515724,
-0.6114304662,
0.0332180336,
0.3381531239,
0.0761682391,
-0.1991254687,
0.1156316847,
-0.1882431954,
-0.1275624633,
-0.09189789,
0.2269888818,
0.0881593451,
-0.1893884391,
0.0517897345,
-0.1575107276
] |
https://github.com/huggingface/datasets/issues/4140 | Error loading arxiv data set | Hi! As @stevhliu suggested, to fix the issue, update the lib to the newest version with:
```
pip install -U datasets
```
and download the dataset as follows:
```python
from datasets import load_dataset
dset = load_dataset('scientific_papers', 'arxiv', download_mode="force_redownload")
``` | ## Describe the bug
A clear and concise description of what the bug is.
I met the error below when loading arxiv dataset via `nlp.load_dataset('scientific_papers', 'arxiv',)`.
```
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv')
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 522, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 38, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
nlp.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?id=1b3rmCSIoh6VhD4HKWjI4HOW-cSwcwbeC&export=download', 'https://drive.google.com/uc?id=1lvsqvsFi3W-pE1SqNZI0s8NR9rC1tsja&export=download']
```
I then tried to ignore verification steps by `ignore_verifications=True` and there is another error.
```
Traceback (most recent call last):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 537, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 810, in _prepare_split
for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/datasets/scientific_papers/9e4f2cfe3d8494e9f34a84ce49c3214605b4b52a3d8eb199104430d04c52cc12/scientific_papers.py", line 108, in _generate_examples
with open(path, encoding="utf-8") as f:
NotADirectoryError: [Errno 20] Not a directory: '/home/username/.cache/huggingface/datasets/downloads/c0deae7af7d9c87f25dfadf621f7126f708d7dcac6d353c7564883084a000076/arxiv-dataset/train.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv', ignore_verifications=True)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 539, in _download_and_prepare
raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
OSError: Cannot find data file.
```
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
```
## 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:
- Platform:
- Python version:
- PyArrow version:
| 39 | Error loading arxiv data set
## Describe the bug
A clear and concise description of what the bug is.
I met the error below when loading arxiv dataset via `nlp.load_dataset('scientific_papers', 'arxiv',)`.
```
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv')
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 522, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 38, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
nlp.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?id=1b3rmCSIoh6VhD4HKWjI4HOW-cSwcwbeC&export=download', 'https://drive.google.com/uc?id=1lvsqvsFi3W-pE1SqNZI0s8NR9rC1tsja&export=download']
```
I then tried to ignore verification steps by `ignore_verifications=True` and there is another error.
```
Traceback (most recent call last):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 537, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 810, in _prepare_split
for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/datasets/scientific_papers/9e4f2cfe3d8494e9f34a84ce49c3214605b4b52a3d8eb199104430d04c52cc12/scientific_papers.py", line 108, in _generate_examples
with open(path, encoding="utf-8") as f:
NotADirectoryError: [Errno 20] Not a directory: '/home/username/.cache/huggingface/datasets/downloads/c0deae7af7d9c87f25dfadf621f7126f708d7dcac6d353c7564883084a000076/arxiv-dataset/train.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv', ignore_verifications=True)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 539, in _download_and_prepare
raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
OSError: Cannot find data file.
```
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
```
## 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:
- Platform:
- Python version:
- PyArrow version:
Hi! As @stevhliu suggested, to fix the issue, update the lib to the newest version with:
```
pip install -U datasets
```
and download the dataset as follows:
```python
from datasets import load_dataset
dset = load_dataset('scientific_papers', 'arxiv', download_mode="force_redownload")
``` | [
-0.1380846947,
0.1616727114,
0.0079347193,
0.2819574773,
0.2916662395,
-0.047817491,
0.0685460269,
0.5627236962,
0.054112047,
-0.0670319647,
-0.063769348,
0.2794142067,
0.0753566325,
0.0028108654,
0.1414510608,
-0.1872990429,
-0.0851801038,
0.1162745208,
0.0183116663,
-0.0099482099,
-0.3018707931,
0.1323902905,
-0.1504234076,
-0.0400687009,
0.3463238776,
0.1119772866,
0.0611354373,
0.3315549195,
0.16651389,
-0.4878040254,
0.0750794113,
0.0188510232,
0.086743027,
0.3928323686,
-0.0001067398,
0.0563837774,
0.442511946,
-0.0795523077,
-0.1599881798,
-0.1493007988,
-0.4832999706,
-0.4201853573,
-0.0495628938,
-0.2434618324,
0.1072008461,
-0.3086589575,
-0.0063520353,
0.0495028868,
0.0055387826,
0.3646395802,
0.2819548249,
0.20995906,
0.2724841237,
-0.0134171657,
0.1779298633,
-0.4309033453,
0.0948579758,
0.2816668153,
0.0847399384,
-0.0758531541,
-0.27229774,
0.2593002319,
-0.1803468168,
0.0299339201,
0.1993479282,
-0.0613588952,
-0.1026267409,
-0.0764425471,
0.0674039721,
0.3237184882,
0.1476987302,
-0.0692450628,
-0.3203332722,
-0.1821666956,
0.073709324,
-0.3004982769,
0.1207816824,
0.2258660495,
-0.1186732948,
-0.1043760851,
-0.2303992808,
0.0358914994,
-0.1683056056,
0.2713920176,
0.1804851145,
-0.1199370995,
0.0969409794,
0.0905940607,
0.0599075034,
-0.1760349274,
-0.0380429924,
-0.0182085652,
-0.0425841175,
0.154875353,
-0.5752330422,
0.0271226894,
0.2557948232,
0.1489048302,
0.3020169735,
0.1013180912,
0.1813839376,
-0.006846712,
-0.165531829,
0.1342760473,
0.0710940734,
0.1213457584,
-0.2166015059,
-0.0214182269,
0.3532575965,
0.2751027942,
0.1227640882,
0.1270889044,
0.0084190648,
-0.3597219586,
0.0480728857,
0.0972013474,
0.1849510223,
-0.2403918207,
-0.1452702284,
0.2655131221,
0.1474443674,
0.1776274145,
0.1025105491,
0.3839559257,
-0.1356455833,
0.2424801439,
0.0362756923,
0.191125527,
-0.2607532442,
-0.0664932281,
-0.2269109488,
0.0700796694,
-0.1265904009,
-0.3273314834,
0.3066747189,
-0.081422843,
0.326754272,
-0.09487167,
0.1326060146,
-0.2234711349,
0.1274432242,
-0.1248866469,
0.064187251,
0.424381882,
0.1130819321,
0.0036206853,
0.1173831522,
-0.1321034729,
-0.0420383811,
0.0752362087,
-0.2100775987,
-0.3080368936,
-0.2199480981,
0.2995612323,
-0.2850598395,
0.0336745195,
-0.0753169432,
-0.2988899946,
0.1672143638,
-0.2120496184,
-0.2323486358,
-0.374722749,
-0.2237342745,
-0.2444603145,
0.3164907694,
0.3786624074,
-0.0552751347,
0.182117328,
-0.1189571992,
-0.1388157159,
0.0759576708,
0.2529437244,
-0.1716853678,
0.0111165671,
-0.2377071232,
0.0186393522,
0.2686392963,
-0.2588652074,
-0.518445313,
0.0791020468,
-0.1880943626,
0.12376111,
0.0129510639,
0.0699568689,
0.0572177321,
-0.1195295379,
0.4729813039,
0.191591233,
-0.0015795365,
0.2868922651,
-0.4289955497,
-0.187173605,
0.3823611438,
0.1206304133,
0.151043877,
0.011368949,
0.1709653735,
-0.0862876624,
0.2168108821,
-0.0237555318,
-0.1383649856,
0.0716902614,
0.0338663086,
-0.1673476994,
0.1879227757,
0.0457600318,
-0.2940440476,
0.3451754451,
-0.3001654148,
0.1203931719,
-0.0609737784,
0.101486437,
-0.4134756625,
0.0067461324,
-0.1108827144,
0.0572106726,
0.2256697267,
0.2120035887,
-0.0642256439,
0.1604308933,
0.0511445031,
0.0351899266,
-0.5864825845,
-0.1918687671,
-0.5533508658,
0.1203542277,
-0.0999548435,
0.0225937869,
0.3084287643,
0.2770110071,
0.0443802886,
-0.0089977207,
-0.1568635404,
0.399528861,
0.2011051923,
0.2969309092,
0.2235656977,
0.1304131746,
0.0241715014,
-0.3599824905,
0.1258415878,
0.1981140822,
0.3864070177,
-0.0666962713,
-0.0308258049,
0.3583999574,
-0.2964283228,
0.0223728828,
0.3021106124,
0.1325824708,
0.6256588697,
-0.255497098,
-0.17419599,
-0.2754426599,
0.4320757687,
0.2208411098,
-0.2247735858,
-0.0070997323,
-0.3402595222,
-0.0863345638,
0.152844727,
0.0892845541,
-0.0552549921,
0.2350136489,
-0.0416722745,
-0.1823014468,
0.0270281006,
0.4649966955,
0.3460558951,
0.1482575536,
-0.1568123847,
0.1531209499,
-0.1869183183,
-0.1427851468,
0.1405969858,
0.1848256886,
0.1480088979,
0.5639660954,
0.2418777645,
0.1361271739,
-0.3137306571,
-0.1077726409,
0.0944837853,
0.2333241403,
-0.63278234,
-0.1381765306,
-0.1401060373,
-0.2744781077,
-0.4248914123,
-0.1904182583,
-0.1537567377,
-0.3254473209,
0.026275374,
0.1444503516,
-0.2872746289,
0.1719336659,
-0.4461556673,
0.2278121114,
0.0610218644,
-0.0406152122,
0.2179017365,
-0.0534564443,
0.0707722306,
0.091744557,
0.3021270931,
0.1681956053,
0.4604322016,
-0.1090729013,
-0.1782106757,
-0.0428406745,
-0.3497315943,
-0.1152974442,
-0.1928634793,
0.2788572311,
0.2827104926,
0.1225317195,
0.3378616869,
-0.2205563635,
0.2592123449,
0.0699231178,
-0.094580397,
0.4519692361,
0.0196596403,
-0.2362945825,
-0.0731681213,
-0.3587943017,
-0.1211176813,
-0.4839923382,
-0.2813687325,
0.1088942215,
0.2631079555,
0.2318053842,
0.1786579043,
0.2770977318,
0.0500941128,
0.1359965503,
-0.1518490314,
0.1289953291,
0.2514483333,
-0.101151064,
-0.5094352961,
-0.0075675943,
-0.0446497612,
0.1824379414,
0.2108150274,
-0.5630871058,
-0.1612052768,
-0.1131365821,
-0.1830170006,
0.1134902388,
-0.1611026376,
0.1414193809,
-0.0695433319,
-0.1709905714,
-0.1912466884,
-0.2026792318,
0.0307793561,
0.0128292032,
0.2515996695,
-0.0895853564,
0.2906888723,
0.0120939603,
0.4966295958,
0.4086683989,
0.0023279197,
0.1850215346,
0.0229112133,
0.3040972054,
-0.1158751473,
-0.3167759478,
0.1102366224,
-0.064868331,
0.0413067192,
0.1175094843,
-0.1212091818,
-0.1699646711,
-0.0857716203,
-0.0476213694,
-0.1985042691,
-0.2714904845,
0.2970201373,
-0.44673419,
0.28007406,
0.0630253181,
-0.1122672856,
-0.118889235,
-0.2772782147,
-0.1365483403,
0.2460605353,
-0.0382654108,
-0.0809603781,
-0.3193211854,
0.0322746113,
-0.2358681113,
0.228740707,
0.1631252915,
0.6825211048,
0.0223689284,
-0.1891731471,
-0.0697117299,
-0.232991904,
0.4736991823,
-0.1108417362,
0.4977697432,
0.234127149,
-0.0402785987,
-0.3248382509,
0.0276667699,
0.0134503981,
0.0400113761,
0.2684799433,
0.3063306212,
-0.0734682009,
-0.0254132506,
0.1939437538,
0.286989212,
-0.2489503026,
-0.1036111116,
-0.2206126451,
-0.3280744255,
-0.2625698745,
-0.1226770356,
-0.13031964,
0.1722566187,
-0.2503312826,
-0.1055944487,
-0.0203156099,
-0.1701495051,
0.0313394591,
0.1587821841,
0.3170528412,
0.0771303251,
0.3457340896,
0.057849668,
-0.0019456805,
0.0518876463,
0.4541710317,
-0.1599073559,
-0.3018658161,
-0.0997301564,
-0.2435354888,
0.0368408971,
0.159072116,
-0.2049144059,
-0.1021340415,
0.2328007072,
-0.0193210766,
-0.1844513863,
-0.015837457,
0.2141365856,
-0.0577685013,
-0.2030660361,
-0.1973056495,
0.2855349779,
-0.2906995118,
-0.1697381884,
0.2059064955,
0.0761331841,
-0.263681829,
0.4430805445,
0.0613230653,
0.7012249231,
0.1676075459,
0.0694810152,
0.2637088299,
-0.0952045098,
0.2510326505,
0.4419493079,
0.1781503409,
-0.4686663747,
-0.4152953625,
-0.0275657587,
-0.2099711299,
-0.1560654938,
-0.0510788113,
0.0169813912,
0.1162631661,
0.0005130779,
-0.1866006851,
0.2235305458,
0.2882644534,
0.1784226149,
-0.1909328699,
-0.4895256758,
0.1901295483,
-0.1996009201,
-0.011242683,
-0.0206895173,
0.0088253831,
-0.1189521775,
-0.2187716663,
-0.3988013566,
0.4161478281,
0.1840081066,
0.1862518787,
0.0683021098,
-0.1093654335,
-0.0221398789,
0.3081147075,
0.0061497074,
0.2676450014,
-0.2710184753,
0.177281782,
0.2586540878,
-0.0055451426,
0.2584626377,
0.0844404325,
0.4589005709,
-0.2340717018,
-0.0163305141,
-0.0435497947,
-0.0863563791,
-0.3252591789,
0.1983221173,
0.0851548091,
-0.0346195996,
-0.1554205567,
-0.3542764187,
0.0370503813,
0.0078269476,
-0.2186564803,
0.2071669549,
0.2499221414,
-0.038599357,
0.2057612985,
0.0995145068,
-0.3675469756,
0.1922917813,
0.3745560944,
0.1331463754,
0.0233688559,
0.5706275702,
0.1337168366,
-0.1009176075,
-0.2350031585,
-0.3102117181,
-0.4881148636,
-0.5573884845,
0.135813877,
-0.0725365058,
0.1260849535,
0.0135866404,
0.1385952979,
0.1078191623,
-0.0750024915,
0.0354089439,
-0.941978097,
-0.021179039,
0.0567951463,
-0.1885620654,
0.200759396,
0.0444633998,
-0.1141220033,
-0.1414656341,
0.0141695719,
-0.3972071409,
0.1449181139,
-0.3778889179,
0.0654439703,
0.0249664243,
0.0364476293,
0.0215944853,
-0.1416487247,
0.1924182922,
-0.1704768389,
-0.1721215099,
-0.273946017,
-0.3075929284,
0.1098291203,
0.0310152806,
-0.2117558718,
0.0337239839,
-0.213285476,
-0.182272926,
0.0460887551,
0.0355141461,
0.016506806,
-0.2531122565,
0.0628690496,
-0.1329255849,
0.0575518124,
0.2258694023,
0.2520092726,
-0.2206056565,
0.0389818326,
0.1893076897,
0.2967820168,
-0.3092493713,
-0.0895596817,
-0.251067996,
0.1027782932,
-0.183542788,
0.0395453461,
0.4786131084,
-0.0414862782,
-0.0128304986,
0.1051579192,
0.2273356467,
0.2932955921,
-0.5117555857,
-0.0369335525,
0.0965092331,
0.2366617024,
-0.5061591268,
0.0053600594,
0.0747159794,
0.026428476,
-0.0616642199,
0.0273456387,
0.216203481,
-0.2512898445,
0.0717560276,
0.0230648201,
0.5541499853,
-0.3632875979,
0.1464885473,
0.1369137913,
-0.1658352911,
-0.0236323718,
-0.0995797515,
0.0065519055,
0.192970112,
0.1508163661,
0.1947124302,
0.2334688455,
-0.1692732275,
0.1517572999,
-0.2584522963,
-0.5342638493,
0.1396609843,
0.3165103495,
-0.0830311552,
0.3163416982,
0.1217182204,
0.2997448146,
0.0443595871,
0.2637061179,
-0.3386569321,
0.170132339,
0.0349833295,
-0.0841405764,
-0.3122369945,
-0.2218356133,
-0.1453267783,
0.0670003518,
-0.0546425506,
0.0679095984,
0.1596547812,
0.2178357095,
-0.3610663712,
-0.6163299084,
0.1426134259,
0.0789917037,
-0.0142533714,
-0.3372633159,
0.2102994919,
0.3250971138,
0.0795859098,
0.1393741518,
0.2594172657,
0.4625498354,
0.3912016451,
0.1348189861,
-0.1736183017,
0.1512745023,
0.2016994208,
-0.1345580816,
0.4393530488,
0.2319290936,
0.2892337441,
0.5008739829,
0.1759581566,
-0.1575848311,
0.2008131146,
0.1154408976,
0.0292587765,
0.1180556044,
0.4636279047,
0.0440866165,
0.1005719602,
-0.2872186303,
0.0945360065,
-0.2336841077,
-0.1526691318,
0.3891414404,
0.0329224803,
0.2404710948,
-0.1490660459,
0.1278857738,
-0.0315729156,
0.6297276616,
0.3740626872,
0.2058718055,
-0.2587976158,
-0.1581100523,
-0.8518228531,
0.362803489,
-0.0187215582,
0.0488113798,
0.1540861428,
0.1613025367,
0.0250425413,
0.0037433975,
0.0052704583,
-0.1833476573,
-0.3539617956,
-0.1151908487,
-0.102474153,
-0.1886533648,
-0.2556061447,
-0.0292286295,
-0.1612437963,
-0.2876082361,
0.0604785085,
-0.0342955329,
0.1732542068,
0.0664562657,
-0.0823831335,
0.0306808837,
0.1008598134,
0.2153288424,
0.0716406405,
0.5880294442,
-0.1544424146,
-0.1672201306,
-0.3870552182,
-0.2778378129,
-0.2592707574,
0.2334557325,
0.2554428279,
0.3388198316,
0.0802765191,
0.0715519264,
-0.0423933491,
0.1953283548,
-0.1437672228,
-0.2412026078,
-0.1839333475,
0.2715433836,
0.0091502545,
0.0220305361,
0.1505130231,
0.0849398673,
-0.0823082924,
0.2604586184,
-0.045559179,
-0.4038124681,
0.3354563713,
-0.1587653011,
-0.1084676012,
-0.0447993837,
0.251452446,
-0.585120976,
0.0990515724,
-0.6114304662,
0.0332180336,
0.3381531239,
0.0761682391,
-0.1991254687,
0.1156316847,
-0.1882431954,
-0.1275624633,
-0.09189789,
0.2269888818,
0.0881593451,
-0.1893884391,
0.0517897345,
-0.1575107276
] |
https://github.com/huggingface/datasets/issues/4140 | Error loading arxiv data set | Thanks for the quick response! It works now. The problem is that I used nlp. load_dataset instead of datasets. load_dataset. | ## Describe the bug
A clear and concise description of what the bug is.
I met the error below when loading arxiv dataset via `nlp.load_dataset('scientific_papers', 'arxiv',)`.
```
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv')
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 522, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 38, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
nlp.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?id=1b3rmCSIoh6VhD4HKWjI4HOW-cSwcwbeC&export=download', 'https://drive.google.com/uc?id=1lvsqvsFi3W-pE1SqNZI0s8NR9rC1tsja&export=download']
```
I then tried to ignore verification steps by `ignore_verifications=True` and there is another error.
```
Traceback (most recent call last):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 537, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 810, in _prepare_split
for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/datasets/scientific_papers/9e4f2cfe3d8494e9f34a84ce49c3214605b4b52a3d8eb199104430d04c52cc12/scientific_papers.py", line 108, in _generate_examples
with open(path, encoding="utf-8") as f:
NotADirectoryError: [Errno 20] Not a directory: '/home/username/.cache/huggingface/datasets/downloads/c0deae7af7d9c87f25dfadf621f7126f708d7dcac6d353c7564883084a000076/arxiv-dataset/train.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv', ignore_verifications=True)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 539, in _download_and_prepare
raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
OSError: Cannot find data file.
```
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
```
## 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:
- Platform:
- Python version:
- PyArrow version:
| 20 | Error loading arxiv data set
## Describe the bug
A clear and concise description of what the bug is.
I met the error below when loading arxiv dataset via `nlp.load_dataset('scientific_papers', 'arxiv',)`.
```
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv')
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 522, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 38, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
nlp.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?id=1b3rmCSIoh6VhD4HKWjI4HOW-cSwcwbeC&export=download', 'https://drive.google.com/uc?id=1lvsqvsFi3W-pE1SqNZI0s8NR9rC1tsja&export=download']
```
I then tried to ignore verification steps by `ignore_verifications=True` and there is another error.
```
Traceback (most recent call last):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 537, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 810, in _prepare_split
for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/datasets/scientific_papers/9e4f2cfe3d8494e9f34a84ce49c3214605b4b52a3d8eb199104430d04c52cc12/scientific_papers.py", line 108, in _generate_examples
with open(path, encoding="utf-8") as f:
NotADirectoryError: [Errno 20] Not a directory: '/home/username/.cache/huggingface/datasets/downloads/c0deae7af7d9c87f25dfadf621f7126f708d7dcac6d353c7564883084a000076/arxiv-dataset/train.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv', ignore_verifications=True)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 539, in _download_and_prepare
raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
OSError: Cannot find data file.
```
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
```
## 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:
- Platform:
- Python version:
- PyArrow version:
Thanks for the quick response! It works now. The problem is that I used nlp. load_dataset instead of datasets. load_dataset. | [
-0.1380846947,
0.1616727114,
0.0079347193,
0.2819574773,
0.2916662395,
-0.047817491,
0.0685460269,
0.5627236962,
0.054112047,
-0.0670319647,
-0.063769348,
0.2794142067,
0.0753566325,
0.0028108654,
0.1414510608,
-0.1872990429,
-0.0851801038,
0.1162745208,
0.0183116663,
-0.0099482099,
-0.3018707931,
0.1323902905,
-0.1504234076,
-0.0400687009,
0.3463238776,
0.1119772866,
0.0611354373,
0.3315549195,
0.16651389,
-0.4878040254,
0.0750794113,
0.0188510232,
0.086743027,
0.3928323686,
-0.0001067398,
0.0563837774,
0.442511946,
-0.0795523077,
-0.1599881798,
-0.1493007988,
-0.4832999706,
-0.4201853573,
-0.0495628938,
-0.2434618324,
0.1072008461,
-0.3086589575,
-0.0063520353,
0.0495028868,
0.0055387826,
0.3646395802,
0.2819548249,
0.20995906,
0.2724841237,
-0.0134171657,
0.1779298633,
-0.4309033453,
0.0948579758,
0.2816668153,
0.0847399384,
-0.0758531541,
-0.27229774,
0.2593002319,
-0.1803468168,
0.0299339201,
0.1993479282,
-0.0613588952,
-0.1026267409,
-0.0764425471,
0.0674039721,
0.3237184882,
0.1476987302,
-0.0692450628,
-0.3203332722,
-0.1821666956,
0.073709324,
-0.3004982769,
0.1207816824,
0.2258660495,
-0.1186732948,
-0.1043760851,
-0.2303992808,
0.0358914994,
-0.1683056056,
0.2713920176,
0.1804851145,
-0.1199370995,
0.0969409794,
0.0905940607,
0.0599075034,
-0.1760349274,
-0.0380429924,
-0.0182085652,
-0.0425841175,
0.154875353,
-0.5752330422,
0.0271226894,
0.2557948232,
0.1489048302,
0.3020169735,
0.1013180912,
0.1813839376,
-0.006846712,
-0.165531829,
0.1342760473,
0.0710940734,
0.1213457584,
-0.2166015059,
-0.0214182269,
0.3532575965,
0.2751027942,
0.1227640882,
0.1270889044,
0.0084190648,
-0.3597219586,
0.0480728857,
0.0972013474,
0.1849510223,
-0.2403918207,
-0.1452702284,
0.2655131221,
0.1474443674,
0.1776274145,
0.1025105491,
0.3839559257,
-0.1356455833,
0.2424801439,
0.0362756923,
0.191125527,
-0.2607532442,
-0.0664932281,
-0.2269109488,
0.0700796694,
-0.1265904009,
-0.3273314834,
0.3066747189,
-0.081422843,
0.326754272,
-0.09487167,
0.1326060146,
-0.2234711349,
0.1274432242,
-0.1248866469,
0.064187251,
0.424381882,
0.1130819321,
0.0036206853,
0.1173831522,
-0.1321034729,
-0.0420383811,
0.0752362087,
-0.2100775987,
-0.3080368936,
-0.2199480981,
0.2995612323,
-0.2850598395,
0.0336745195,
-0.0753169432,
-0.2988899946,
0.1672143638,
-0.2120496184,
-0.2323486358,
-0.374722749,
-0.2237342745,
-0.2444603145,
0.3164907694,
0.3786624074,
-0.0552751347,
0.182117328,
-0.1189571992,
-0.1388157159,
0.0759576708,
0.2529437244,
-0.1716853678,
0.0111165671,
-0.2377071232,
0.0186393522,
0.2686392963,
-0.2588652074,
-0.518445313,
0.0791020468,
-0.1880943626,
0.12376111,
0.0129510639,
0.0699568689,
0.0572177321,
-0.1195295379,
0.4729813039,
0.191591233,
-0.0015795365,
0.2868922651,
-0.4289955497,
-0.187173605,
0.3823611438,
0.1206304133,
0.151043877,
0.011368949,
0.1709653735,
-0.0862876624,
0.2168108821,
-0.0237555318,
-0.1383649856,
0.0716902614,
0.0338663086,
-0.1673476994,
0.1879227757,
0.0457600318,
-0.2940440476,
0.3451754451,
-0.3001654148,
0.1203931719,
-0.0609737784,
0.101486437,
-0.4134756625,
0.0067461324,
-0.1108827144,
0.0572106726,
0.2256697267,
0.2120035887,
-0.0642256439,
0.1604308933,
0.0511445031,
0.0351899266,
-0.5864825845,
-0.1918687671,
-0.5533508658,
0.1203542277,
-0.0999548435,
0.0225937869,
0.3084287643,
0.2770110071,
0.0443802886,
-0.0089977207,
-0.1568635404,
0.399528861,
0.2011051923,
0.2969309092,
0.2235656977,
0.1304131746,
0.0241715014,
-0.3599824905,
0.1258415878,
0.1981140822,
0.3864070177,
-0.0666962713,
-0.0308258049,
0.3583999574,
-0.2964283228,
0.0223728828,
0.3021106124,
0.1325824708,
0.6256588697,
-0.255497098,
-0.17419599,
-0.2754426599,
0.4320757687,
0.2208411098,
-0.2247735858,
-0.0070997323,
-0.3402595222,
-0.0863345638,
0.152844727,
0.0892845541,
-0.0552549921,
0.2350136489,
-0.0416722745,
-0.1823014468,
0.0270281006,
0.4649966955,
0.3460558951,
0.1482575536,
-0.1568123847,
0.1531209499,
-0.1869183183,
-0.1427851468,
0.1405969858,
0.1848256886,
0.1480088979,
0.5639660954,
0.2418777645,
0.1361271739,
-0.3137306571,
-0.1077726409,
0.0944837853,
0.2333241403,
-0.63278234,
-0.1381765306,
-0.1401060373,
-0.2744781077,
-0.4248914123,
-0.1904182583,
-0.1537567377,
-0.3254473209,
0.026275374,
0.1444503516,
-0.2872746289,
0.1719336659,
-0.4461556673,
0.2278121114,
0.0610218644,
-0.0406152122,
0.2179017365,
-0.0534564443,
0.0707722306,
0.091744557,
0.3021270931,
0.1681956053,
0.4604322016,
-0.1090729013,
-0.1782106757,
-0.0428406745,
-0.3497315943,
-0.1152974442,
-0.1928634793,
0.2788572311,
0.2827104926,
0.1225317195,
0.3378616869,
-0.2205563635,
0.2592123449,
0.0699231178,
-0.094580397,
0.4519692361,
0.0196596403,
-0.2362945825,
-0.0731681213,
-0.3587943017,
-0.1211176813,
-0.4839923382,
-0.2813687325,
0.1088942215,
0.2631079555,
0.2318053842,
0.1786579043,
0.2770977318,
0.0500941128,
0.1359965503,
-0.1518490314,
0.1289953291,
0.2514483333,
-0.101151064,
-0.5094352961,
-0.0075675943,
-0.0446497612,
0.1824379414,
0.2108150274,
-0.5630871058,
-0.1612052768,
-0.1131365821,
-0.1830170006,
0.1134902388,
-0.1611026376,
0.1414193809,
-0.0695433319,
-0.1709905714,
-0.1912466884,
-0.2026792318,
0.0307793561,
0.0128292032,
0.2515996695,
-0.0895853564,
0.2906888723,
0.0120939603,
0.4966295958,
0.4086683989,
0.0023279197,
0.1850215346,
0.0229112133,
0.3040972054,
-0.1158751473,
-0.3167759478,
0.1102366224,
-0.064868331,
0.0413067192,
0.1175094843,
-0.1212091818,
-0.1699646711,
-0.0857716203,
-0.0476213694,
-0.1985042691,
-0.2714904845,
0.2970201373,
-0.44673419,
0.28007406,
0.0630253181,
-0.1122672856,
-0.118889235,
-0.2772782147,
-0.1365483403,
0.2460605353,
-0.0382654108,
-0.0809603781,
-0.3193211854,
0.0322746113,
-0.2358681113,
0.228740707,
0.1631252915,
0.6825211048,
0.0223689284,
-0.1891731471,
-0.0697117299,
-0.232991904,
0.4736991823,
-0.1108417362,
0.4977697432,
0.234127149,
-0.0402785987,
-0.3248382509,
0.0276667699,
0.0134503981,
0.0400113761,
0.2684799433,
0.3063306212,
-0.0734682009,
-0.0254132506,
0.1939437538,
0.286989212,
-0.2489503026,
-0.1036111116,
-0.2206126451,
-0.3280744255,
-0.2625698745,
-0.1226770356,
-0.13031964,
0.1722566187,
-0.2503312826,
-0.1055944487,
-0.0203156099,
-0.1701495051,
0.0313394591,
0.1587821841,
0.3170528412,
0.0771303251,
0.3457340896,
0.057849668,
-0.0019456805,
0.0518876463,
0.4541710317,
-0.1599073559,
-0.3018658161,
-0.0997301564,
-0.2435354888,
0.0368408971,
0.159072116,
-0.2049144059,
-0.1021340415,
0.2328007072,
-0.0193210766,
-0.1844513863,
-0.015837457,
0.2141365856,
-0.0577685013,
-0.2030660361,
-0.1973056495,
0.2855349779,
-0.2906995118,
-0.1697381884,
0.2059064955,
0.0761331841,
-0.263681829,
0.4430805445,
0.0613230653,
0.7012249231,
0.1676075459,
0.0694810152,
0.2637088299,
-0.0952045098,
0.2510326505,
0.4419493079,
0.1781503409,
-0.4686663747,
-0.4152953625,
-0.0275657587,
-0.2099711299,
-0.1560654938,
-0.0510788113,
0.0169813912,
0.1162631661,
0.0005130779,
-0.1866006851,
0.2235305458,
0.2882644534,
0.1784226149,
-0.1909328699,
-0.4895256758,
0.1901295483,
-0.1996009201,
-0.011242683,
-0.0206895173,
0.0088253831,
-0.1189521775,
-0.2187716663,
-0.3988013566,
0.4161478281,
0.1840081066,
0.1862518787,
0.0683021098,
-0.1093654335,
-0.0221398789,
0.3081147075,
0.0061497074,
0.2676450014,
-0.2710184753,
0.177281782,
0.2586540878,
-0.0055451426,
0.2584626377,
0.0844404325,
0.4589005709,
-0.2340717018,
-0.0163305141,
-0.0435497947,
-0.0863563791,
-0.3252591789,
0.1983221173,
0.0851548091,
-0.0346195996,
-0.1554205567,
-0.3542764187,
0.0370503813,
0.0078269476,
-0.2186564803,
0.2071669549,
0.2499221414,
-0.038599357,
0.2057612985,
0.0995145068,
-0.3675469756,
0.1922917813,
0.3745560944,
0.1331463754,
0.0233688559,
0.5706275702,
0.1337168366,
-0.1009176075,
-0.2350031585,
-0.3102117181,
-0.4881148636,
-0.5573884845,
0.135813877,
-0.0725365058,
0.1260849535,
0.0135866404,
0.1385952979,
0.1078191623,
-0.0750024915,
0.0354089439,
-0.941978097,
-0.021179039,
0.0567951463,
-0.1885620654,
0.200759396,
0.0444633998,
-0.1141220033,
-0.1414656341,
0.0141695719,
-0.3972071409,
0.1449181139,
-0.3778889179,
0.0654439703,
0.0249664243,
0.0364476293,
0.0215944853,
-0.1416487247,
0.1924182922,
-0.1704768389,
-0.1721215099,
-0.273946017,
-0.3075929284,
0.1098291203,
0.0310152806,
-0.2117558718,
0.0337239839,
-0.213285476,
-0.182272926,
0.0460887551,
0.0355141461,
0.016506806,
-0.2531122565,
0.0628690496,
-0.1329255849,
0.0575518124,
0.2258694023,
0.2520092726,
-0.2206056565,
0.0389818326,
0.1893076897,
0.2967820168,
-0.3092493713,
-0.0895596817,
-0.251067996,
0.1027782932,
-0.183542788,
0.0395453461,
0.4786131084,
-0.0414862782,
-0.0128304986,
0.1051579192,
0.2273356467,
0.2932955921,
-0.5117555857,
-0.0369335525,
0.0965092331,
0.2366617024,
-0.5061591268,
0.0053600594,
0.0747159794,
0.026428476,
-0.0616642199,
0.0273456387,
0.216203481,
-0.2512898445,
0.0717560276,
0.0230648201,
0.5541499853,
-0.3632875979,
0.1464885473,
0.1369137913,
-0.1658352911,
-0.0236323718,
-0.0995797515,
0.0065519055,
0.192970112,
0.1508163661,
0.1947124302,
0.2334688455,
-0.1692732275,
0.1517572999,
-0.2584522963,
-0.5342638493,
0.1396609843,
0.3165103495,
-0.0830311552,
0.3163416982,
0.1217182204,
0.2997448146,
0.0443595871,
0.2637061179,
-0.3386569321,
0.170132339,
0.0349833295,
-0.0841405764,
-0.3122369945,
-0.2218356133,
-0.1453267783,
0.0670003518,
-0.0546425506,
0.0679095984,
0.1596547812,
0.2178357095,
-0.3610663712,
-0.6163299084,
0.1426134259,
0.0789917037,
-0.0142533714,
-0.3372633159,
0.2102994919,
0.3250971138,
0.0795859098,
0.1393741518,
0.2594172657,
0.4625498354,
0.3912016451,
0.1348189861,
-0.1736183017,
0.1512745023,
0.2016994208,
-0.1345580816,
0.4393530488,
0.2319290936,
0.2892337441,
0.5008739829,
0.1759581566,
-0.1575848311,
0.2008131146,
0.1154408976,
0.0292587765,
0.1180556044,
0.4636279047,
0.0440866165,
0.1005719602,
-0.2872186303,
0.0945360065,
-0.2336841077,
-0.1526691318,
0.3891414404,
0.0329224803,
0.2404710948,
-0.1490660459,
0.1278857738,
-0.0315729156,
0.6297276616,
0.3740626872,
0.2058718055,
-0.2587976158,
-0.1581100523,
-0.8518228531,
0.362803489,
-0.0187215582,
0.0488113798,
0.1540861428,
0.1613025367,
0.0250425413,
0.0037433975,
0.0052704583,
-0.1833476573,
-0.3539617956,
-0.1151908487,
-0.102474153,
-0.1886533648,
-0.2556061447,
-0.0292286295,
-0.1612437963,
-0.2876082361,
0.0604785085,
-0.0342955329,
0.1732542068,
0.0664562657,
-0.0823831335,
0.0306808837,
0.1008598134,
0.2153288424,
0.0716406405,
0.5880294442,
-0.1544424146,
-0.1672201306,
-0.3870552182,
-0.2778378129,
-0.2592707574,
0.2334557325,
0.2554428279,
0.3388198316,
0.0802765191,
0.0715519264,
-0.0423933491,
0.1953283548,
-0.1437672228,
-0.2412026078,
-0.1839333475,
0.2715433836,
0.0091502545,
0.0220305361,
0.1505130231,
0.0849398673,
-0.0823082924,
0.2604586184,
-0.045559179,
-0.4038124681,
0.3354563713,
-0.1587653011,
-0.1084676012,
-0.0447993837,
0.251452446,
-0.585120976,
0.0990515724,
-0.6114304662,
0.0332180336,
0.3381531239,
0.0761682391,
-0.1991254687,
0.1156316847,
-0.1882431954,
-0.1275624633,
-0.09189789,
0.2269888818,
0.0881593451,
-0.1893884391,
0.0517897345,
-0.1575107276
] |
https://github.com/huggingface/datasets/issues/4139 | Dataset viewer issue for Winoground | I thought this issue was related to the error I was seeing, but upon consideration I'd think the dataset viewer would return a 500 (unable to create the split like me) or a 404 (unable to load split b/c it was never created) error if it was having the issue I was seeing in #4149. 401 message makes it look like dataset viewer isn't passing through the identity of the user who has signed the licensing agreement when making the request to GET [examples.jsonl](https://huggingface.co/datasets/facebook/winoground/resolve/a86a60456fbbd242e9a744199071a6bd3e7fd9de/examples.jsonl). | ## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
| 84 | Dataset viewer issue for Winoground
## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
I thought this issue was related to the error I was seeing, but upon consideration I'd think the dataset viewer would return a 500 (unable to create the split like me) or a 404 (unable to load split b/c it was never created) error if it was having the issue I was seeing in #4149. 401 message makes it look like dataset viewer isn't passing through the identity of the user who has signed the licensing agreement when making the request to GET [examples.jsonl](https://huggingface.co/datasets/facebook/winoground/resolve/a86a60456fbbd242e9a744199071a6bd3e7fd9de/examples.jsonl). | [
-0.2158226818,
0.3918247223,
0.0195265897,
0.2488378882,
-0.1773584932,
0.0117628695,
0.2099894434,
-0.0989727303,
-0.3108904958,
-0.1287291795,
-0.2136164159,
-0.0137757929,
-0.0942658782,
0.0527165309,
-0.1679512858,
0.0808953792,
-0.2165971696,
-0.1095398068,
-0.066265963,
-0.0394798517,
-0.2573494911,
0.2130357772,
-0.2501040697,
0.1510087401,
-0.3303321004,
-0.1617722362,
-0.0443219692,
0.2113209069,
-0.3819742203,
-0.2941406965,
0.1013173759,
0.2428643107,
0.1026976258,
0.316895932,
-0.0001159762,
0.0348723233,
0.2029382437,
0.1845131665,
-0.1929897815,
0.0335230194,
-0.348333627,
-0.1537718773,
0.138566345,
-0.0897177532,
-0.0504954979,
-0.3660409749,
0.0892656147,
0.2177532315,
0.5097117424,
0.2376418263,
0.1601201594,
-0.0712744296,
0.2268067896,
-0.0284927264,
0.0485929064,
0.3334079385,
-0.2122867256,
0.2039183825,
0.2278975695,
-0.2532769144,
-0.0698218644,
0.1364085078,
0.3926153481,
0.0353217945,
0.3150748909,
-0.1002895758,
0.1067287698,
-0.4604418576,
0.0838963389,
0.3566695452,
0.6228305101,
0.1882982105,
-0.3457596302,
-0.2209516913,
0.2226221114,
0.2777279615,
0.4024441242,
0.3999773562,
-0.1979864538,
0.224885717,
-0.3007076681,
-0.2199345976,
-0.2950999439,
0.1351483315,
-0.1775673926,
-0.171137467,
-0.1323824972,
0.1374779642,
-0.0744166896,
-0.2019982338,
0.1090544313,
-0.1887312829,
-0.1848501563,
0.0583413094,
0.0862486288,
0.0665919855,
0.1322641075,
0.4209925234,
-0.1985004395,
0.2291512489,
-0.3609274626,
0.039863959,
-0.336057663,
-0.0050313934,
0.4079062045,
-0.2171522379,
0.1265007854,
0.2900179029,
0.3978255987,
-0.0802368373,
-0.017134415,
0.0941644087,
-0.1041262001,
-0.2160314322,
-0.3106403947,
-0.2655775249,
0.459813267,
-0.0336577445,
-0.4238145053,
0.0955264419,
-0.2263928205,
-0.1235085875,
0.3471471071,
0.4205835164,
-0.0639080927,
-0.3152273297,
0.2093076557,
-0.0348994769,
-0.0679627433,
-0.1366304904,
-0.0496093184,
-0.1001811102,
-0.0504346564,
-0.0335871503,
0.2768768966,
0.0901146084,
0.0125014391,
-0.0953954458,
-0.0149086835,
-0.1006027684,
0.2803080678,
0.0399801955,
0.0629913136,
0.1254272014,
0.2689930201,
0.2245701253,
-0.0769097283,
-0.0551699139,
0.058361128,
0.1393904835,
-0.1014312282,
-0.2361932695,
-0.1378040016,
0.1215031743,
-0.2498176992,
0.1193543226,
0.1000201851,
0.2717288733,
-0.2540951073,
-0.2268605083,
0.0800388977,
-0.0208204575,
-0.2142957449,
-0.1265733838,
-0.1148393825,
0.5404681563,
-0.4773679078,
-0.081072107,
-0.2464535981,
-0.4994129837,
-0.1719980538,
0.0607760772,
-0.267426759,
0.2136016488,
-0.3024944961,
0.3615043461,
0.5865620971,
-0.3914803863,
-0.4572270513,
0.2338365167,
-0.2829778492,
0.1004605293,
-0.1384979784,
-0.0420281701,
0.2540514171,
-0.3305443227,
0.1837502569,
0.2825119793,
0.2345669419,
-0.1015747637,
0.0658411086,
-0.3231904209,
0.1283733696,
0.1596191525,
-0.0417570174,
0.1580478102,
0.4341463745,
-0.112832576,
0.1758171767,
0.0300870873,
0.2498116195,
0.3567559421,
0.2114786506,
0.3019787371,
0.0736085102,
-0.1179809198,
-0.311270386,
0.0817327425,
0.0443760119,
-0.1614900082,
0.2329804599,
-0.2436897904,
-0.061782863,
-0.0159308314,
-0.4756778777,
-0.0845416114,
0.1551822722,
0.2266055942,
-0.1085242555,
-0.145238921,
0.1094299033,
-0.0164107252,
0.0721009523,
0.0974003822,
-0.1247186661,
0.0420718864,
-0.0872290507,
0.0137653239,
0.1486369073,
0.2388306409,
0.2905252278,
0.0244904906,
-0.0484881587,
0.2425550222,
0.0394873582,
0.1927109212,
0.1422808766,
0.0434380658,
0.0474226363,
-0.4122332931,
0.0216820911,
-0.0193516463,
-0.0096559823,
-0.1768519282,
-0.3418371975,
0.0634940416,
-0.1654908508,
0.058569517,
-0.0145541485,
0.4292147458,
0.2308829576,
0.0485371053,
-0.1776712984,
-0.2060623318,
0.2447221726,
0.2245277613,
0.058007922,
0.0341684632,
-0.0745471343,
0.3493299186,
0.6570572257,
-0.1051743999,
-0.0612443835,
0.035610754,
-0.191301778,
0.0931941792,
0.2317758501,
0.358573705,
0.4231787622,
0.0745673776,
0.3396231234,
0.2514139116,
0.183011964,
-0.1625555009,
0.1959751695,
0.087340042,
-0.1738105863,
0.0285833478,
0.0111241164,
-0.0342673659,
-0.368213892,
-0.035736464,
0.3065398335,
0.1999426782,
-0.2952249646,
-0.1221744791,
-0.2284370661,
-0.19925946,
0.0137421712,
-0.3972718418,
-0.3874763548,
-0.2686212957,
0.1047777459,
0.3757008314,
-0.1705288738,
0.0237208083,
-0.2629013658,
0.284065336,
-0.1761119813,
0.2786122561,
-0.1282728761,
0.1137259901,
-0.338193506,
0.0341573879,
0.3938476443,
0.1103445739,
0.3350311816,
0.0390049033,
0.3047616184,
-0.3573441803,
-0.2005077749,
0.0704491809,
-0.0534989201,
0.3480419517,
0.0869946554,
0.0830497146,
-0.0462273918,
-0.1232642457,
0.0410931781,
0.1123772711,
-0.299161315,
-0.1523681283,
0.087580502,
-0.0439424142,
-0.0921506956,
0.0086542275,
-0.2884484529,
-0.2539488375,
0.6208660603,
0.0870257616,
0.0381941237,
-0.0242733322,
-0.2716705501,
0.2293411791,
0.0477714837,
0.0021231167,
-0.460993737,
-0.1519856602,
0.1771156341,
-0.4956432879,
-0.366065383,
0.3775595129,
0.0138922473,
-0.1173403263,
0.000047357,
-0.3579746187,
-0.2230058163,
-0.2027294487,
0.384306699,
-0.1789950281,
-0.2083802521,
0.3577466905,
-0.0309382137,
0.1540426314,
-0.1506857723,
-0.2143762559,
-0.0389904156,
-0.0075516165,
0.2293942124,
-0.1988320947,
0.3107749522,
-0.1239744574,
0.451679498,
0.4077269137,
0.4883934259,
0.1024999171,
-0.221814692,
0.4214836061,
0.2615606189,
-0.2860835195,
0.3214395642,
0.069712773,
0.2300426215,
0.2433641404,
0.1834475547,
-0.0120690195,
0.0706018731,
-0.162065655,
-0.5502297282,
-0.4570797682,
-0.1921693087,
-0.2381542623,
0.0106532201,
0.1700231433,
0.3518380225,
-0.1193949655,
-0.285780251,
-0.1748250723,
0.4094927013,
0.0891771317,
-0.0484764352,
-0.2248702645,
0.0473206304,
-0.5404868722,
0.1806900054,
-0.1246349365,
0.2828450799,
-0.4279124439,
0.2570214272,
0.4282845855,
-0.0586385019,
0.7751077414,
-0.3875236511,
0.2586102486,
-0.0258343425,
0.2281222939,
-0.2867931128,
-0.1233172044,
-0.0098555302,
0.5733606815,
0.3239533901,
0.0042994488,
-0.1365307122,
-0.0605640225,
0.4265564084,
-0.3621537983,
-0.1790952981,
-0.124126412,
-0.0265952814,
-0.4552889764,
-0.0720151588,
-0.1260412037,
0.2206489146,
0.028070733,
-0.069291912,
0.1041049138,
0.1169693843,
0.1872798502,
0.2176297903,
0.0530210361,
0.0081656883,
0.3262701035,
0.2044208199,
0.6320209503,
0.1854711026,
0.0975631252,
0.5074197054,
0.2305261344,
-0.553989172,
0.3276673257,
-0.1336149722,
0.0351923369,
0.4484893978,
-0.0268766787,
-0.0276684035,
0.1737378538,
0.0706907883,
-0.2563743591,
0.1515007019,
0.5179876089,
-0.1340365857,
-0.3250588477,
-0.2643654346,
0.1198625788,
-0.0110794902,
-0.152744621,
0.4081282318,
0.3978568912,
-0.2357674688,
-0.0530940518,
-0.2337494195,
0.7500241399,
0.1861118227,
-0.0439551547,
0.3712531328,
-0.3224286139,
0.372844398,
-0.2170011103,
0.1601601094,
-0.1217420548,
0.1158708632,
-0.2370897681,
-0.0991235524,
0.0327865519,
0.1595133692,
0.0988600329,
-0.174797371,
0.2682565153,
0.1099830642,
0.1010941416,
0.4296818078,
-0.4272740185,
-0.0417554937,
0.217187956,
0.128000021,
-0.1197418869,
0.287409693,
-0.1717123389,
-0.3375380039,
-0.055826392,
-0.1711102575,
-0.6473770738,
0.2451500148,
-0.2825877666,
0.1759189069,
-0.0256411936,
0.0502516963,
0.3595137,
0.1026042551,
0.0683135241,
0.0064793504,
-0.4235583544,
0.4741019011,
-0.1029782742,
0.0771968663,
-0.1254451424,
-0.0570791624,
0.2610186934,
-0.1247853562,
-0.2512819469,
-0.1034860983,
-0.1065707356,
-0.3547394574,
-0.5266789198,
0.4670964181,
-0.2046003044,
-0.1961036623,
0.1439465433,
0.0689776987,
-0.1978239119,
0.0126572102,
0.065697059,
0.101126045,
-0.1458747536,
0.3662141562,
-0.0107401451,
-0.2429380268,
0.0335095674,
0.3488782048,
-0.3344999552,
0.1085303798,
0.7911416888,
-0.0564799048,
-0.1296911836,
-0.1522102356,
0.1232102439,
0.2595207989,
-0.1028920859,
-0.2398474962,
0.0840516835,
0.32290411,
0.1764166802,
-0.1080404297,
-0.0825355351,
-0.0011451801,
-0.2069215477,
-0.4090844393,
-0.0192009564,
0.0014880198,
-0.0975723267,
0.0735151619,
0.0517804921,
0.3287394643,
0.0976992697,
-0.1290526837,
-0.2191333771,
0.1642756164,
0.0040344745,
-0.0329866298,
-0.1083717272,
-0.1891218126,
0.1180358008,
-0.0669546276,
-0.0534373261,
0.0963100865,
-0.0603080578,
-0.0639834851,
-0.0385730639,
0.1461832076,
0.1549348235,
-0.525826931,
-0.3137886524,
-0.2741903961,
-0.1794536263,
0.2521905005,
-0.0667775199,
0.1770959944,
0.0043694824,
-0.253557831,
-0.3041084111,
0.1736914515,
0.0851915181,
0.1428124756,
0.0981316268,
0.4482364953,
-0.1148899868,
0.3375031054,
-0.0407694988,
0.0359499902,
-0.077177681,
0.1202722341,
-0.0278112106,
0.136592716,
0.1372434944,
-0.2150090784,
0.2512278557,
-0.1646483839,
0.3228879571,
0.4587688744,
-0.1687766761,
0.0955273509,
0.2152816206,
0.1024257094,
0.0128627671,
0.0212121457,
0.7363051176,
-0.1246562079,
-0.0105999503,
-0.1111097187,
-0.2669509649,
0.1738044769,
-0.3289743662,
-0.0057055601,
0.0200180523,
0.2421625257,
0.3245270848,
0.2659529448,
-0.4836499989,
0.1237621307,
0.3056545556,
0.196614787,
0.0925757661,
0.545819521,
-0.1155731604,
0.01387046,
-0.5234115124,
-0.072600536,
0.4696948826,
-0.6004883647,
-0.0888158381,
-0.1222081184,
0.0476652235,
0.1506587416,
-0.0920978189,
0.0871522948,
-0.6024432778,
-0.073325634,
-0.6118960381,
0.144429639,
-0.1982587576,
0.1675787121,
-0.3734316826,
-0.1287889779,
0.1019210964,
0.0873950496,
-0.0226393007,
-0.2938119769,
-0.411259681,
-0.0352878198,
-0.3589817882,
-0.2389408797,
0.105580844,
-0.0869575888,
0.2046739757,
-0.2556527257,
-0.0158340111,
-0.1173278019,
0.1605307311,
0.3054374456,
0.0850246102,
0.1500114202,
0.2027744651,
0.0057936539,
-0.0207511745,
0.0213896036,
-0.1489789039,
-0.2791196704,
0.4043555558,
0.1103698239,
0.0974840373,
0.3543255329,
0.0919102132,
-0.074198693,
0.074633494,
0.1349535733,
0.0483652204,
-0.3746982515,
-0.1289102882,
-0.5515338778,
-0.1350337118,
-0.2413682938,
-0.2702718377,
-0.0203939527,
-0.1602801681,
0.2983318567,
-0.1136731282,
0.1617758125,
-0.6129446626,
0.0144486623,
0.0768946782,
0.3662545979,
0.4747690856,
0.0353951789,
0.0714905113,
-0.2559940219,
-0.6198696494,
0.0085541569,
-0.1732804477,
0.1436876655,
-0.0122924782,
0.1523864865,
-0.2757746875,
-0.0553714409,
0.3319697082,
0.2947517037,
0.0025760562,
0.3568273783,
0.0061083673,
-0.1100901738,
0.5211384296,
0.147678405,
-0.0930221751,
-0.1846292317,
0.2891710997,
0.1637491882,
-0.1541169584,
-0.0234125685,
-0.1140803024,
-0.2915985584,
-0.0102488557,
0.126740694,
0.3892506659,
0.2055181712,
0.1399801821,
0.2168626189,
-0.5654085875,
-0.1819150895,
-0.130614385,
0.3874706328,
-0.1354071349,
0.2372353077,
-0.0365986712,
0.1724926233,
-0.1631016731,
0.1045847088,
-0.2224584073,
0.2951648533,
-0.0721134543,
0.0385022275,
-0.4423721731,
0.4101878703,
0.229271099,
0.1977501214,
-0.0115036946,
0.1685257852,
-0.3425061107,
-0.138262108,
0.4369975626,
-0.6077601314,
-0.0867948309,
0.0295877401,
0.218196094,
0.4566310346,
-0.3519803286,
-0.008312962,
-0.0423246883,
0.3882504702,
-0.2203225493,
0.2699093819,
-0.0508486032,
-0.1862832159,
-0.0277615655,
-0.0527983978,
0.547698617,
0.1386018693,
-0.2121229321,
0.6307742596,
0.0499862544
] |
https://github.com/huggingface/datasets/issues/4139 | Dataset viewer issue for Winoground | To replicate:
```python
>>> import datasets
>>> dataset= datasets.load_dataset('facebook/winoground', name='facebook--winoground', split='train', use_auth_token="hf_app_...", streaming=True)
>>> next(iter(dataset))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 497, in __iter__
for key, example in self._iter():
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 494, in _iter
yield from ex_iterable
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 87, in __iter__
yield from self.generate_examples_fn(**self.kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 439, in wrapper
for key, table in generate_tables_fn(**kwargs):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 85, in _generate_tables
for file_idx, file in enumerate(files):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/utils/streaming_download_manager.py", line 679, in __iter__
yield from self.generator(*self.args, **self.kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/utils/streaming_download_manager.py", line 731, in _iter_from_urlpaths
for dirpath, _, filenames in xwalk(urlpath, use_auth_token=use_auth_token):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/utils/streaming_download_manager.py", line 623, in xwalk
for dirpath, dirnames, filenames in fs.walk(main_hop):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/spec.py", line 372, in walk
listing = self.ls(path, detail=True, **kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/asyn.py", line 85, in wrapper
return sync(self.loop, func, *args, **kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/asyn.py", line 65, in sync
raise return_result
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/asyn.py", line 25, in _runner
result[0] = await coro
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/implementations/http.py", line 196, in _ls
out = await self._ls_real(url, detail=detail, **kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/implementations/http.py", line 150, in _ls_real
self._raise_not_found_for_status(r, url)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/implementations/http.py", line 208, in _raise_not_found_for_status
response.raise_for_status()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1004, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/facebook/winoground/resolve/a86a60456fbbd242e9a744199071a6bd3e7fd9de/examples.jsonl')
```
*edited to fix `use_token` -> `use_auth_token`, thx @odellus* | ## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
| 200 | Dataset viewer issue for Winoground
## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
To replicate:
```python
>>> import datasets
>>> dataset= datasets.load_dataset('facebook/winoground', name='facebook--winoground', split='train', use_auth_token="hf_app_...", streaming=True)
>>> next(iter(dataset))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 497, in __iter__
for key, example in self._iter():
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 494, in _iter
yield from ex_iterable
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 87, in __iter__
yield from self.generate_examples_fn(**self.kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 439, in wrapper
for key, table in generate_tables_fn(**kwargs):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 85, in _generate_tables
for file_idx, file in enumerate(files):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/utils/streaming_download_manager.py", line 679, in __iter__
yield from self.generator(*self.args, **self.kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/utils/streaming_download_manager.py", line 731, in _iter_from_urlpaths
for dirpath, _, filenames in xwalk(urlpath, use_auth_token=use_auth_token):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/utils/streaming_download_manager.py", line 623, in xwalk
for dirpath, dirnames, filenames in fs.walk(main_hop):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/spec.py", line 372, in walk
listing = self.ls(path, detail=True, **kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/asyn.py", line 85, in wrapper
return sync(self.loop, func, *args, **kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/asyn.py", line 65, in sync
raise return_result
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/asyn.py", line 25, in _runner
result[0] = await coro
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/implementations/http.py", line 196, in _ls
out = await self._ls_real(url, detail=detail, **kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/implementations/http.py", line 150, in _ls_real
self._raise_not_found_for_status(r, url)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/implementations/http.py", line 208, in _raise_not_found_for_status
response.raise_for_status()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1004, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/facebook/winoground/resolve/a86a60456fbbd242e9a744199071a6bd3e7fd9de/examples.jsonl')
```
*edited to fix `use_token` -> `use_auth_token`, thx @odellus* | [
-0.2085140198,
0.3726015687,
0.0102579454,
0.1812564433,
0.035316363,
0.0951514691,
0.2718737125,
-0.0505480245,
-0.2809483707,
-0.0899924561,
-0.3027311862,
-0.105369404,
-0.1971441656,
-0.0161183253,
-0.0181891136,
0.2671881914,
-0.0818876177,
-0.1981697232,
-0.1157177165,
-0.088994205,
-0.1966107935,
0.034015391,
-0.3066469729,
0.194339633,
-0.1805412322,
-0.0451113246,
-0.0002895473,
0.0972934291,
-0.2692318857,
-0.4187665582,
0.3262513578,
0.3400069177,
0.2745615542,
0.39043203,
-0.0001152439,
0.2194069624,
0.1139801219,
0.2454597652,
-0.2396787554,
0.0375930555,
-0.1426866502,
-0.22220397,
0.1334573776,
-0.0836959779,
-0.0843994394,
-0.4026887715,
0.1368242055,
0.1211149469,
0.1900056452,
0.409090966,
0.1839083582,
0.1926242411,
0.0984012112,
0.0532155819,
0.0100964177,
0.1154691502,
-0.2071113586,
0.2245736718,
0.0615455285,
-0.3735897243,
-0.1418056488,
0.132113114,
0.1850564182,
-0.0106605114,
0.3973762691,
-0.0973799676,
0.2830097079,
-0.3932607472,
-0.0150327235,
0.2020181268,
0.5635891557,
-0.0893279836,
-0.4136060774,
-0.1361067742,
0.2095155865,
0.1809227467,
0.2778464258,
0.3774887323,
-0.1506727189,
0.2261229306,
-0.1714263409,
-0.1158692092,
-0.4442130029,
0.2311984152,
-0.0949951261,
-0.1331186742,
-0.0778918341,
0.1639321446,
-0.1458644569,
-0.1391068697,
0.3164431453,
-0.1896389127,
-0.009672258,
0.1449372023,
-0.063634634,
0.1966076344,
0.2323905379,
0.335123986,
-0.1522864848,
0.2329589725,
-0.251578927,
0.1177607626,
-0.2367552519,
0.009407117,
0.2392761409,
-0.1382191628,
0.0060783098,
0.4463447332,
0.39786008,
0.0709431395,
-0.1403848678,
0.0120805446,
-0.112091355,
-0.3183073997,
-0.037524268,
-0.2369871438,
0.5771338344,
-0.0129918065,
-0.3909651041,
0.1237778217,
-0.2070365697,
-0.0864879191,
0.3593561947,
0.5011611581,
-0.0600637048,
-0.2102209032,
0.1846271306,
0.0767309293,
-0.0833072215,
-0.0149155296,
-0.1342575401,
-0.1372434646,
-0.0724863186,
-0.0002163555,
0.1694060713,
-0.0590557642,
-0.0531514212,
-0.0815655366,
0.0364697315,
0.0026851466,
0.2638322115,
-0.0118418196,
0.2403694987,
0.0990295708,
0.2646731734,
0.23073107,
0.0270757023,
-0.1207161099,
0.0764903724,
0.0712611228,
0.0028930388,
-0.2537300587,
-0.1316851676,
0.1446772963,
-0.1741116792,
0.0380547345,
-0.0444863662,
0.215063259,
-0.172592178,
-0.2534471452,
0.1588504463,
-0.1601082087,
-0.1346612126,
-0.1798268259,
-0.0182225164,
0.6366177201,
-0.3335750699,
-0.0692033619,
-0.0996156111,
-0.456504792,
0.0041520814,
0.1023181453,
-0.3406023979,
0.256265074,
-0.3847803473,
0.1623346955,
0.6731495261,
-0.5265982747,
-0.5723416209,
0.1302936971,
-0.2095864117,
0.2947952449,
-0.0383819789,
0.0573883839,
0.0210005138,
-0.4252688885,
0.0911200196,
0.215174377,
0.3071699739,
-0.1150730029,
0.0925097838,
-0.1722027063,
0.2178274691,
0.0180089176,
0.260574311,
0.2370433956,
0.4004685879,
-0.2367656976,
0.3712608516,
-0.0109659266,
0.1218731776,
0.2882285416,
0.2818892002,
0.4628471136,
0.0125944829,
-0.094554238,
-0.0039515067,
0.1427240968,
0.0325477012,
-0.1153346151,
0.1369555295,
-0.2576141655,
-0.0669963583,
0.0989040509,
-0.6285973787,
-0.2252215743,
0.2064546943,
0.4713911712,
-0.2150969207,
-0.0965701118,
0.1210944653,
0.0672327876,
-0.1669997275,
0.0598173067,
-0.0760885403,
0.0801887736,
0.0002490802,
0.0793144628,
0.0880464688,
0.2300430536,
0.4066128433,
0.0868264735,
-0.0740790367,
0.2208325863,
-0.0258328393,
0.0758920759,
0.1425223947,
0.1479730755,
0.0240867306,
-0.3389983773,
0.0239093974,
-0.0883694887,
0.0107913781,
-0.0642809346,
0.0118043143,
0.0071955719,
0.0462396927,
0.1247378141,
0.0426115766,
0.3468647599,
0.2179810107,
0.184087351,
-0.2132297009,
-0.0625081509,
0.1403005868,
0.1585019529,
0.23068358,
-0.1037893593,
-0.0496821366,
0.2749858201,
0.4640743136,
-0.0770337805,
-0.138474077,
0.0255013593,
-0.2758277953,
0.1205850318,
0.212594822,
0.1807210445,
0.2823636234,
0.0280812904,
0.3015082479,
0.2220842838,
0.074076578,
-0.0504204407,
0.2450173199,
0.2600260973,
-0.1127715856,
-0.02031173,
0.0913259536,
0.0900741667,
-0.3580136299,
-0.0676110685,
0.0803056434,
0.262917012,
-0.3747040331,
0.0982542634,
-0.244013384,
-0.330706805,
0.1204787344,
-0.3689867854,
-0.2612659037,
-0.3096673787,
-0.0901181102,
0.2905026376,
-0.0209739432,
0.0864175335,
-0.3518816829,
0.1057394072,
0.0683259144,
0.0696241707,
-0.0566787161,
0.1773127466,
-0.3206695914,
-0.0138554331,
0.4098384082,
-0.1314069182,
0.4501813352,
0.0383008271,
0.1622637808,
-0.5537567139,
-0.2216229588,
0.0100689465,
-0.0221806057,
0.4270658195,
0.0580820404,
0.0659343302,
0.0286574233,
-0.1293798536,
0.0883452743,
0.0370228961,
-0.1894993037,
0.0276800096,
-0.0488836356,
-0.1723415703,
0.135370791,
0.2123879045,
-0.478762269,
-0.2869204581,
0.4226207137,
0.1873672754,
0.0555390045,
0.2615466714,
-0.18192029,
0.1847889274,
0.036066439,
0.1426357329,
-0.4267414212,
-0.1610735208,
0.2602475286,
-0.3956183195,
-0.4253905118,
0.1956757903,
-0.0110701853,
-0.0688070282,
0.0616733171,
-0.4776186049,
-0.4252755642,
-0.1689154804,
0.4505133033,
-0.0926449969,
-0.1211220697,
0.2486099154,
-0.0578384399,
0.1687064022,
-0.0744344741,
-0.2189033478,
-0.0973735005,
-0.1640824676,
0.0722688735,
-0.0905259848,
0.3886069059,
-0.0699757561,
0.4631863534,
0.4276298285,
0.468979001,
0.2787850499,
-0.3014259338,
0.5230548382,
0.1615846008,
-0.4410338402,
0.3320588171,
0.0779993534,
0.1393201798,
0.2273146808,
-0.0230212007,
-0.0392887965,
0.0864922181,
-0.2422055602,
-0.4432078004,
-0.5226739049,
-0.2735242546,
-0.3207761645,
0.1173009202,
0.1155078411,
0.3387801945,
-0.3678099215,
-0.3672745526,
-0.0182179436,
0.4401896,
0.0131405527,
-0.0211149547,
-0.0863556713,
0.126055494,
-0.6251249313,
0.1551217884,
-0.1927813441,
0.4737546742,
-0.2569247484,
0.1187589467,
0.3618472517,
0.0222329404,
0.7685933113,
-0.2196743488,
0.2492310256,
-0.0263008885,
0.0528969876,
-0.308996141,
-0.2789887488,
-0.0717047527,
0.5504181385,
0.1754759252,
0.0839088932,
-0.0276053362,
-0.1877430975,
0.3613381386,
-0.3071599305,
-0.1072780341,
-0.1152856424,
-0.0942996442,
-0.4151372612,
-0.1229768395,
-0.1220022067,
0.1150204688,
0.0563807376,
-0.0988358706,
0.101656802,
-0.082461141,
0.2114926577,
0.3125360608,
0.0271345042,
-0.0036223666,
0.3800342679,
0.1717272103,
0.5404753089,
0.0494351946,
0.072293587,
0.562908709,
0.2708824277,
-0.7646371126,
0.2478816658,
0.0427362174,
0.0104783382,
0.399083972,
-0.1986130774,
0.0398598723,
0.0036076049,
0.0324925706,
-0.2912119627,
0.31650877,
0.5649159551,
-0.0746260807,
-0.4296293557,
-0.4726932049,
0.125939101,
-0.0589906201,
-0.1601473987,
0.4226980209,
0.410208106,
-0.2165742666,
-0.0202668626,
-0.1718765646,
0.6540148258,
0.1252398491,
0.1307174116,
0.5283104777,
-0.0559424087,
0.2043384463,
-0.2074886262,
0.1355748475,
-0.1559266448,
-0.1639451534,
-0.2033783495,
-0.1264144778,
-0.0819064826,
-0.0164503511,
0.2459442168,
-0.015432531,
0.311280638,
0.0462419502,
0.1697214842,
0.2437171489,
-0.4116548896,
-0.0219263732,
0.0473264419,
0.1589756757,
-0.1216954738,
0.2382463664,
-0.1628828943,
-0.3134041727,
0.0497789681,
-0.0554140545,
-0.4860533774,
0.179791525,
-0.603513658,
0.1974099278,
-0.0026908256,
-0.1335739642,
0.2134560198,
0.2117775679,
0.1317650974,
0.0460915528,
-0.297062546,
0.3124399483,
0.0757377371,
0.0526957177,
-0.1504042149,
-0.0351362042,
0.421182394,
-0.0675807148,
-0.2645787895,
0.0122016836,
-0.0129275974,
-0.4717088044,
-0.2759043276,
0.2988961935,
0.1261861473,
-0.139441967,
0.0965279341,
-0.0645684674,
-0.2275881618,
0.056046851,
0.0715160444,
0.0792610869,
-0.166645363,
0.2587557733,
0.0415118486,
-0.2950007617,
0.074214533,
0.4487920702,
-0.4181366265,
0.1068249866,
0.9319934249,
-0.0453123823,
-0.2930935025,
-0.0669824779,
-0.0097542079,
0.2160114199,
-0.0543251932,
-0.329474777,
0.1834599227,
0.4047209024,
0.1965993494,
-0.0778237507,
-0.0068956255,
-0.1978945136,
-0.2389504164,
-0.4628128409,
-0.1214644685,
-0.1435970068,
-0.1365014017,
0.1269078702,
0.1539083719,
0.1522053629,
0.001867159,
-0.1498337984,
-0.2303617299,
-0.067001678,
-0.0553648695,
-0.031110378,
-0.0246960614,
-0.1405624747,
0.1925628185,
-0.0111714574,
0.0582413375,
0.025978636,
-0.0844623819,
-0.1329752356,
-0.0988987312,
0.1382160187,
0.2089021951,
-0.6280237436,
-0.1534812152,
-0.3583608866,
-0.1828436852,
0.0263244081,
0.0349657945,
0.3375470042,
0.0061179772,
-0.0264246725,
-0.2825870514,
0.1174785644,
0.1842036098,
0.092488952,
-0.0050713038,
0.275805831,
0.0424290597,
0.2549628317,
-0.1341172755,
0.0185512379,
-0.086321637,
0.1757486761,
0.0729162171,
0.1868239939,
0.2322854549,
-0.2827540636,
0.1610837132,
-0.0296049789,
0.1392133832,
0.444871515,
-0.2851583064,
0.0091532394,
0.203672722,
0.0941686779,
-0.1434641182,
-0.0283723865,
0.4346144795,
-0.1383096725,
0.0968323126,
-0.0838765055,
-0.2348340899,
-0.0140879834,
-0.1222511381,
0.0730454028,
-0.0743865818,
0.15281111,
0.2045426071,
0.1488431096,
-0.3283291161,
0.060824655,
0.2759265304,
0.3823884726,
-0.0241758749,
0.6083810925,
-0.1542412937,
0.0193241257,
-0.571618557,
-0.3066459,
0.2905723751,
-0.6468980312,
-0.0061200489,
-0.223893106,
-0.076256305,
0.1027264297,
-0.0914175883,
-0.0163617991,
-0.418748647,
0.0803258494,
-0.4475951195,
0.0946176499,
-0.1296575516,
0.1037571579,
-0.3227309585,
-0.0768820494,
0.0921489298,
-0.0569518171,
0.0125367958,
-0.4383288622,
-0.476662606,
0.0778967142,
-0.3703354597,
-0.2235974371,
0.1856424361,
-0.0371999703,
0.2021353096,
-0.237707451,
0.0430360474,
-0.0675524175,
0.2249419391,
0.2543599904,
0.1793260574,
0.2668149471,
0.2822270393,
0.0326182619,
0.1168218926,
0.1299500167,
-0.1672287732,
-0.2003742605,
0.1927725077,
-0.0172472578,
0.1673273295,
0.3196300864,
0.0755384117,
-0.0780782178,
0.1028397009,
0.126563251,
0.0607567057,
-0.4548521638,
0.0517482944,
-0.4400128722,
-0.1029459015,
-0.2870271802,
-0.2410711348,
-0.1402615309,
-0.106580399,
0.5716792345,
0.003057959,
0.292814672,
-0.530764997,
0.0190653652,
0.0843122005,
0.3145264089,
0.6599331498,
-0.0320522152,
-0.0417082384,
-0.0498788282,
-0.6694417596,
0.1136864275,
-0.01477098,
0.0129934121,
0.0906384662,
0.1036306471,
-0.1268426329,
-0.1554120928,
0.4248182476,
0.0268214028,
0.0406165868,
0.4070792794,
0.0048057255,
-0.2156740129,
0.3071270883,
0.2232809961,
-0.0314479433,
-0.2597330809,
0.1587077081,
-0.1712477654,
-0.0384644456,
0.0395490415,
-0.1768361479,
-0.1552522182,
-0.0453553796,
0.3721784353,
0.2205136269,
0.2048001736,
0.0494712293,
0.2012865096,
-0.6258914471,
-0.0643270463,
-0.1302883178,
0.3177741766,
-0.3615750968,
0.1402022243,
-0.0215700846,
-0.0444692783,
-0.1036614552,
0.1782834232,
-0.0891107768,
0.0256562997,
-0.0479009114,
0.1392340511,
-0.3853538632,
0.2690903246,
0.1861337721,
0.0744337365,
0.0091757905,
0.3055501878,
-0.3513843417,
-0.2746764123,
0.4907820821,
-0.7992662191,
-0.0930520445,
-0.0282251257,
0.2202312797,
0.2897979021,
-0.2507099211,
-0.1332339644,
0.1437794715,
0.4316153526,
-0.1678714603,
0.1422500163,
0.0862866342,
-0.3067409992,
0.2333234698,
-0.0776264444,
0.6181695461,
-0.0375788435,
-0.1718337089,
0.3971585929,
-0.0336669348
] |
https://github.com/huggingface/datasets/issues/4139 | Dataset viewer issue for Winoground | ~~Using your command to replicate and changing `use_token` to `use_auth_token` fixes the problem I was seeing in #4149.~~
Nevermind it gave me an iterator to a method returning the same 401s. Changing `use_token` to `use_auth_token` does not fix the issue. | ## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
| 40 | Dataset viewer issue for Winoground
## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
~~Using your command to replicate and changing `use_token` to `use_auth_token` fixes the problem I was seeing in #4149.~~
Nevermind it gave me an iterator to a method returning the same 401s. Changing `use_token` to `use_auth_token` does not fix the issue. | [
-0.3063986301,
0.3560656309,
0.0578553751,
0.0977232009,
0.0235412195,
-0.0176560562,
0.2522362769,
0.0431539416,
-0.2548046112,
-0.0015680429,
-0.272341311,
0.0449237265,
-0.1244985685,
0.1341281831,
-0.1148338914,
0.2799378633,
-0.0799767449,
-0.1969622523,
-0.2051309198,
-0.0328455754,
-0.1372611672,
0.1316542923,
-0.2250652909,
0.1577236652,
-0.3000459075,
-0.0076127709,
-0.0759513527,
0.1017441377,
-0.336491555,
-0.3412236571,
0.1779383421,
0.3287464082,
0.1997814178,
0.3236735761,
-0.00010542,
0.1463829279,
0.1816946864,
0.2586025,
-0.2135723084,
0.0134245846,
-0.1023136079,
-0.2026407421,
0.135003522,
-0.109826304,
-0.2017402798,
-0.443952322,
0.2824309766,
0.3381377161,
0.4766467214,
0.3726719618,
0.2369751334,
0.0620776415,
0.1386144459,
-0.0892811716,
0.0189688094,
0.2300466895,
-0.2206866145,
0.1550104767,
0.2587450147,
-0.2309586853,
-0.112030901,
0.1660000235,
0.2394526303,
0.0161513817,
0.349082768,
-0.0759235993,
0.2342902273,
-0.3612152338,
0.1135950461,
0.2157210112,
0.5431165099,
-0.0470606647,
-0.2187518477,
-0.017769007,
0.0438117646,
0.2177252024,
0.3030029237,
0.1479008943,
-0.1627852023,
0.2534485757,
-0.3981271386,
-0.0897211134,
-0.3921799064,
0.1173835248,
-0.094446525,
-0.3530511856,
-0.0878772289,
0.1928441226,
-0.1128739119,
-0.333209902,
0.0793566257,
-0.1980906278,
-0.1003704667,
0.1009812579,
-0.0418818444,
0.0635590181,
0.2340313792,
0.4548947811,
-0.0131650008,
0.3302837014,
-0.2457316369,
0.1499852687,
-0.3333691955,
0.1133804172,
0.1645293236,
-0.039113149,
0.1123740748,
0.337205559,
0.3572065532,
-0.0183224697,
-0.2958736718,
-0.0080593014,
-0.0088153947,
-0.2827009261,
-0.0703123361,
-0.1984930485,
0.4085099995,
-0.1321884692,
-0.2752261758,
0.1668422967,
-0.0470480695,
-0.0986635536,
0.2437437773,
0.5728769898,
-0.0242165234,
-0.4087880552,
0.233390063,
0.0032485202,
-0.1423342675,
-0.0446409881,
-0.1056552827,
-0.1366212815,
-0.0556009822,
0.1129817814,
0.3018700182,
0.1297457963,
0.0380322933,
-0.0209636949,
0.0212041698,
0.0886442214,
0.3690091074,
-0.0003342396,
0.2388330847,
0.0343829505,
0.265497148,
0.1575125158,
-0.0612190403,
-0.0697218552,
0.1128733978,
0.1051021516,
-0.0472493358,
-0.2611714005,
-0.1112620011,
0.1959768087,
-0.2167541981,
-0.0114919515,
0.1257136464,
0.2816176414,
-0.2943835855,
-0.2996920049,
0.0655030012,
-0.1216769293,
-0.1212825254,
-0.1628548205,
-0.0341312289,
0.5103681087,
-0.304035604,
0.0062261722,
-0.0180517193,
-0.4040496349,
-0.0231731478,
0.1213220134,
-0.2451006174,
0.0722142383,
-0.3180156946,
0.3809252977,
0.5442460179,
-0.4899426699,
-0.4562235773,
0.1064713597,
-0.198580578,
0.1007286012,
-0.13603127,
-0.0105273388,
0.2323503494,
-0.3824837804,
0.02119576,
0.1698321402,
0.3805509806,
-0.1018410102,
-0.0295518283,
-0.3380426764,
0.1330709755,
0.0688946545,
0.0639995709,
0.1609021127,
0.4448835552,
-0.3207185268,
0.2206573933,
-0.0774652138,
0.1196743324,
0.1199806556,
0.3143506348,
0.3575883806,
0.1091305688,
-0.006080274,
-0.1035272926,
0.1556815505,
0.0166185126,
-0.1031677276,
0.2740293741,
-0.2444208115,
0.0255797487,
-0.0916415751,
-0.5065626502,
-0.1633316576,
0.2594095767,
0.3286914229,
-0.1540499181,
-0.0536560826,
0.0912844092,
-0.0997931883,
-0.097244978,
0.113914609,
0.0683594868,
0.0775007233,
-0.1309801191,
0.0148960575,
0.1099041179,
0.2028184235,
0.405551672,
0.0898404419,
-0.0794474557,
0.1709657907,
-0.043603275,
0.141298756,
0.1667167097,
0.1423389763,
-0.0052691544,
-0.3680369556,
-0.0276702214,
0.0317974463,
-0.0462481454,
-0.0388569161,
-0.1524321288,
-0.018148141,
0.1269253045,
-0.0356107354,
0.0569341928,
0.3738151193,
0.3440669775,
-0.0132982619,
-0.1386653781,
-0.1229342595,
0.1767472476,
0.2981844842,
0.1577630043,
-0.0895012319,
-0.1093559265,
0.3387443721,
0.3361575007,
-0.0682330802,
-0.046334397,
0.00001081,
-0.1359996349,
0.0658704415,
0.2847599387,
0.2313864678,
0.2571067214,
0.1264240444,
0.3332300782,
0.2889086604,
0.0376191474,
-0.119864881,
0.2182467878,
-0.0065860273,
-0.2711319327,
0.0306223836,
0.155709222,
0.0177625343,
-0.4972218275,
-0.0057231942,
0.1408983916,
0.0811690465,
-0.3015408218,
-0.0504792035,
-0.3553243279,
-0.2929694951,
-0.0009631377,
-0.2845115662,
-0.2891286314,
-0.159001559,
0.2034811378,
0.2633932531,
-0.2091715932,
0.2156720906,
-0.186790958,
0.3111432493,
-0.0926410928,
0.3127692342,
-0.0795424283,
0.2562207878,
-0.3762048781,
0.0723408908,
0.4113883972,
-0.0073638442,
0.3798234463,
0.012786679,
0.2377513349,
-0.6590374112,
-0.2548482418,
0.08384455,
-0.0748826489,
0.4323351383,
0.0004104912,
0.0401660539,
-0.1178365797,
-0.1084277332,
0.04472984,
0.0207149982,
-0.1951310188,
-0.0548661686,
-0.0140296947,
-0.2101804316,
-0.1063862145,
0.0448594727,
-0.2940048277,
-0.2426335216,
0.4704871178,
0.2306101918,
0.1052228659,
0.1788283587,
-0.190253213,
0.2443237305,
0.0019069639,
0.0229289103,
-0.5794566274,
-0.329675734,
0.2499479949,
-0.5534026623,
-0.4792538881,
0.3518344462,
0.0617197677,
-0.1357770413,
0.0865479484,
-0.3864404261,
-0.5122925639,
-0.1650917679,
0.274643153,
-0.0856268108,
-0.0482460782,
0.3397962749,
-0.0323589109,
0.0470210686,
-0.0950406268,
-0.2105092108,
0.0698401779,
-0.0749320313,
0.2258782834,
-0.2119472474,
0.2983987331,
-0.0298295058,
0.4068426192,
0.4323104918,
0.4932343662,
0.2661054134,
-0.3567273617,
0.5681286454,
0.1086057499,
-0.2639306784,
0.3713189363,
-0.0848390609,
0.103991881,
0.3628046215,
0.0835120082,
-0.0553803481,
0.0952904001,
-0.2552834451,
-0.3727667332,
-0.5055590272,
-0.245854497,
-0.1418527812,
0.0755745694,
0.2102309912,
0.3615925014,
-0.2828173935,
-0.3075708449,
-0.0602081642,
0.3578318357,
-0.0243446399,
-0.0719085187,
-0.1926235557,
0.0937500373,
-0.7674806118,
0.2923657298,
-0.1884793192,
0.2803014219,
-0.35983482,
0.1412609965,
0.3683032691,
-0.0316665098,
0.672788322,
-0.3244012892,
0.276922673,
-0.0604529195,
0.0739653632,
-0.2406176627,
-0.2122585326,
0.0410878696,
0.3854523301,
0.2693381906,
0.0741622373,
0.0078785364,
-0.032316681,
0.2682860792,
-0.3211911917,
-0.1081529856,
-0.0637177154,
0.083958447,
-0.3814975917,
-0.1885381341,
-0.0913620517,
0.1272236407,
-0.0217872784,
-0.0564657338,
0.0454451554,
0.0420896299,
0.2250337899,
0.169987157,
0.1277293712,
0.1362445205,
0.3215428591,
0.16414617,
0.5875570178,
0.0104614189,
0.070409514,
0.4965114594,
0.1560754925,
-0.6063938737,
0.1294402927,
-0.1236598864,
-0.0738395825,
0.4373173714,
-0.0722056776,
0.0395208411,
0.0140164867,
0.0357038416,
-0.1618759483,
0.281678021,
0.4714494646,
-0.0696887895,
-0.2677876353,
-0.2126361132,
0.034561079,
0.007830916,
-0.1537822038,
0.3629824221,
0.3749019802,
-0.2057681233,
0.1095485389,
-0.154597491,
0.6374875903,
0.1173401251,
0.0878304467,
0.4121046364,
-0.0860499367,
0.2061954737,
-0.1644140631,
0.1283521056,
-0.1169968396,
-0.1515356004,
-0.1812960207,
-0.0801119506,
-0.0610513017,
0.0460653901,
-0.0696818605,
-0.0758900642,
0.3926900029,
0.213827759,
0.0902798995,
0.2375513613,
-0.4605432153,
0.0246160496,
0.2489542216,
0.2401775122,
-0.0118775191,
0.180428654,
-0.089641884,
-0.3272057772,
0.1482944638,
-0.2055152953,
-0.4760447443,
0.1272823811,
-0.5645021796,
0.2172544301,
0.0758712068,
0.0660047606,
0.2276582122,
0.1435995549,
0.1727520227,
0.149715662,
-0.4672361016,
0.3031053245,
0.0503160693,
0.1345056742,
-0.2396743894,
-0.2032032311,
0.384008497,
-0.1433038414,
-0.2013508081,
-0.0872181281,
0.1019232422,
-0.379270494,
-0.3702015579,
0.2355505079,
0.0488746911,
-0.1233295277,
0.1285125017,
0.0052019749,
-0.3483465016,
-0.0436056554,
0.1595597267,
-0.0053999932,
-0.182643339,
0.4104542136,
0.0421577804,
-0.1506651044,
0.1177770123,
0.2740750909,
-0.3802504241,
0.037438713,
0.8593562841,
-0.0236108191,
-0.1974293441,
-0.1470530927,
-0.0036135134,
0.2663541734,
0.0477198772,
-0.2286581993,
0.1029007509,
0.3347433209,
0.1919479668,
0.0905578211,
-0.0547956526,
-0.1020613536,
-0.2301823199,
-0.34605968,
-0.1611996591,
-0.1355340332,
-0.1628169566,
0.189567253,
0.1445542127,
0.3197622001,
0.1499724388,
-0.1215876415,
-0.3407930732,
0.2309974283,
-0.0713717416,
0.043300923,
-0.1290937811,
-0.1486375332,
0.1184538901,
-0.0762533396,
0.0275002066,
0.1517015547,
-0.1919954717,
-0.1831719428,
-0.0296697151,
0.0940431952,
0.2341236323,
-0.4970297217,
-0.1690055877,
-0.216986686,
-0.1512646526,
0.1681831032,
-0.1137384698,
0.3077784479,
-0.1107113734,
-0.1926423758,
-0.3090193868,
0.0479270928,
0.2153830975,
-0.0134621514,
0.1774118394,
0.2568703592,
-0.0709436163,
0.1343920827,
-0.1848407686,
0.0226974934,
0.1723640263,
0.1906832159,
0.0767385587,
0.292152971,
0.1785073131,
-0.0551940836,
0.0424979329,
-0.0310427155,
0.2867231667,
0.2932197452,
-0.2663122714,
0.048292812,
0.3494529724,
0.1670678705,
-0.0995259285,
-0.0390778482,
0.6124122143,
-0.1724902242,
0.0325563885,
-0.1320961714,
-0.1356243491,
-0.0655656904,
-0.1442311704,
0.0764933601,
-0.1000055447,
0.0734874383,
0.2410225719,
0.0792190433,
-0.4144183099,
0.026997719,
0.2842166722,
0.1716168672,
0.073705554,
0.560164392,
-0.2210596055,
0.0813531056,
-0.5783228874,
-0.2629582286,
0.3394494653,
-0.5411432981,
0.0883227065,
-0.3433495164,
-0.0842020959,
0.0966321453,
-0.1228572875,
-0.0369137041,
-0.3803183436,
-0.0071269777,
-0.49899593,
0.1833086312,
-0.14817141,
0.1677979827,
-0.2842960954,
-0.1536095142,
0.0974138677,
0.0560099222,
-0.0816443264,
-0.3156487048,
-0.4728451371,
-0.0218763072,
-0.2498530149,
-0.1325328052,
0.0727816373,
-0.0906932354,
0.1381830126,
-0.175406158,
0.0372787453,
-0.1688454151,
0.0928659439,
0.3240706921,
0.2699428797,
0.2712799311,
0.2375724912,
0.0613120832,
0.1478888839,
-0.0652424619,
-0.0995823815,
-0.2692886889,
0.2917025387,
0.0989400893,
-0.0662802756,
0.3413179815,
0.115716733,
-0.1556622386,
0.0263599101,
-0.0001407597,
-0.0784258693,
-0.4327877462,
-0.0929087549,
-0.2721954584,
-0.1146924943,
-0.3645962477,
-0.2936701775,
-0.2260650098,
-0.0338140801,
0.4087501168,
-0.1018730402,
0.2503420711,
-0.6357582808,
0.0862951279,
0.0336914621,
0.3744933605,
0.5055025816,
-0.035329245,
-0.1094189808,
-0.2032717168,
-0.6841458678,
0.0313568749,
-0.0531312227,
0.1616478711,
0.0188488252,
0.0754844695,
-0.2102834731,
-0.1287507117,
0.3526701629,
0.1973864585,
0.0086302133,
0.2671128809,
-0.0278180689,
-0.0313596576,
0.3422061503,
0.1249177232,
-0.0714421645,
-0.1892319173,
0.2926395535,
-0.0531537719,
-0.0159233734,
0.1669944823,
-0.1548213065,
-0.3128208816,
-0.1156796589,
0.3185234964,
0.2761197984,
0.1963776648,
0.0288978945,
0.2881584167,
-0.432543844,
-0.0896633863,
-0.1746110469,
0.1045859382,
-0.1812609136,
0.1628384441,
-0.070082441,
-0.0853071436,
-0.0985218361,
0.0663469881,
-0.1581536829,
0.1016988009,
-0.035270568,
0.1035447195,
-0.3484279513,
0.2663207948,
0.0351993181,
0.2279386967,
-0.0655619055,
0.2623467147,
-0.4080587626,
-0.308516562,
0.5140045285,
-0.806499064,
-0.1760417223,
-0.2168839425,
0.2190663218,
0.3531821072,
-0.3099556267,
-0.0627855584,
0.0449244715,
0.2424475849,
-0.0891303048,
0.1717092991,
0.0693259463,
-0.2912276685,
0.1429906934,
-0.0385748781,
0.6704721451,
0.2513337433,
-0.1129731387,
0.3622172475,
-0.0993279144
] |
https://github.com/huggingface/datasets/issues/4139 | Dataset viewer issue for Winoground | After investigation with @severo , we found a potential culprit: https://github.com/huggingface/datasets/blob/3cd0a009a43f9f174056d70bfa2ca32216181926/src/datasets/utils/streaming_download_manager.py#L610-L624
The streaming manager does not seem to pass `use_auth_token` to `fsspec` when streaming and not iterating content of a zip archive
cc @albertvillanova @lhoestq | ## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
| 35 | Dataset viewer issue for Winoground
## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
After investigation with @severo , we found a potential culprit: https://github.com/huggingface/datasets/blob/3cd0a009a43f9f174056d70bfa2ca32216181926/src/datasets/utils/streaming_download_manager.py#L610-L624
The streaming manager does not seem to pass `use_auth_token` to `fsspec` when streaming and not iterating content of a zip archive
cc @albertvillanova @lhoestq | [
-0.3267650604,
0.3238722086,
0.0456444472,
0.2188278735,
0.1186774671,
0.06968797,
0.046101857,
-0.2330045551,
-0.28247419,
-0.0623377971,
-0.289550066,
-0.0948182791,
-0.1721875966,
0.1533356756,
-0.0418442488,
0.2980025411,
-0.0844593048,
-0.2825906575,
-0.1895950288,
0.0665606484,
-0.1277095675,
0.1217301711,
-0.2223149389,
0.0874962211,
-0.2374598384,
-0.0859597251,
-0.0027032173,
0.0627112165,
-0.3836730123,
-0.4727363288,
0.2763791084,
0.2988176048,
0.2100103945,
0.2833364606,
-0.0001156043,
0.1001171619,
0.2268982977,
0.1960398555,
-0.2234187722,
0.003676248,
-0.1891002506,
-0.1734408587,
0.0893618166,
0.03089476,
-0.0682170242,
-0.2840748131,
0.2654199898,
0.0633624122,
0.3537087142,
0.491594404,
0.1556159109,
0.2117376179,
0.1471600682,
-0.0069906106,
0.08220011,
0.1239605621,
-0.2148184925,
0.1111434996,
0.1898290813,
-0.2344546914,
-0.1576536,
0.1424799263,
0.156857878,
-0.0029416576,
0.4580679834,
-0.175300613,
0.1054614335,
-0.4068680704,
0.0591220148,
0.2244036049,
0.5387548208,
-0.0174583457,
-0.3089376688,
-0.0941677094,
0.1773868203,
0.2132879496,
0.295023948,
0.376550436,
-0.2331380844,
0.2615694106,
-0.2809161246,
-0.0848799348,
-0.3487976193,
0.1744008064,
-0.1072904244,
-0.1856525987,
-0.1283471137,
0.1086749732,
-0.0166601278,
-0.1088357568,
0.2099854201,
-0.238961786,
-0.071538806,
0.0970761329,
-0.0867153779,
0.2170351446,
0.2744984031,
0.5502275825,
-0.1963431239,
0.2835088372,
-0.3289860785,
0.0393422991,
-0.2000255287,
0.0308278166,
0.1826774776,
-0.1165777966,
-0.0047965841,
0.2940868437,
0.2306089103,
0.0378200263,
-0.058629971,
-0.0548193678,
-0.0495540835,
-0.1744333208,
-0.2332139015,
-0.2664420605,
0.4128700197,
-0.0692079291,
-0.4382171929,
0.1628946811,
-0.0831413642,
-0.0998221487,
0.2946973443,
0.4872842431,
-0.0864675939,
-0.1874666512,
0.0566819683,
0.04967485,
-0.0049334695,
-0.0869531184,
-0.1455427855,
-0.2088623047,
-0.154524371,
0.0688659772,
0.2529725432,
-0.1804409325,
0.004909033,
-0.0398076512,
0.0347766504,
0.082532838,
0.1364640594,
-0.042387642,
0.1189574674,
0.140431881,
0.1712448895,
0.1901079565,
-0.059946619,
0.0722166523,
0.1070024371,
0.0801503658,
-0.0261730365,
-0.2701231837,
-0.0219703317,
0.0917981043,
-0.2445821762,
-0.064556621,
-0.0014249799,
0.2028398663,
-0.3063873649,
-0.3146547973,
0.1361010522,
0.012885659,
-0.1128586233,
-0.1248948723,
-0.1619053632,
0.5720773339,
-0.2402683645,
-0.1211237237,
-0.1416724622,
-0.4032008648,
0.1190033183,
0.1039434075,
-0.2113821208,
0.0423030891,
-0.3499303758,
0.2829810977,
0.5542936325,
-0.5058031082,
-0.635401845,
0.2459533215,
-0.1613435,
0.2327430099,
0.1289040744,
0.0212658141,
0.177546531,
-0.4402162135,
0.0203419942,
0.164580822,
0.2738831341,
-0.023746267,
0.1113998443,
-0.3405362368,
0.1720319688,
0.0859608799,
0.111237511,
0.2448136359,
0.4658357799,
-0.331605345,
0.2176928669,
0.0649681762,
0.1129410863,
0.2327436656,
0.2262167335,
0.3869641721,
-0.1369917095,
-0.0874316767,
-0.1497482508,
0.0822657347,
0.0434615128,
-0.1572350264,
0.0880809128,
-0.3066411018,
-0.0840191171,
-0.0154795125,
-0.4327237904,
-0.1974937469,
0.1216906384,
0.3523250818,
-0.1756511927,
-0.0907257646,
0.1470096111,
0.0850715488,
-0.0379205681,
0.1108161807,
-0.0416351296,
0.0015307738,
0.0071787518,
0.0317492373,
0.1355440915,
0.1807578355,
0.3930204809,
0.1090248749,
-0.037032757,
0.2641984522,
0.0218173563,
0.1991312355,
0.0527681112,
0.1120727509,
0.0644307956,
-0.4335881174,
-0.0127093326,
0.1475215107,
0.0482868105,
-0.1008632332,
-0.2052689344,
-0.0190218631,
0.0131444475,
0.0651316866,
0.0540858842,
0.3472883701,
0.2991179526,
0.1344001442,
-0.22296004,
0.0455262288,
0.2842781544,
0.2485916466,
0.278137058,
-0.0089772176,
-0.0962445512,
0.2587730587,
0.363527149,
-0.0536394492,
-0.2411319911,
0.0783486143,
-0.2764481604,
0.1204537526,
0.3580101132,
0.2853233814,
0.342905283,
0.1225337014,
0.3259853721,
0.283238858,
0.0763001665,
-0.1835716516,
0.2235025615,
0.113005206,
-0.2831620872,
0.0066181864,
0.1486628056,
0.112800397,
-0.4894490242,
0.0545706227,
0.1042251214,
0.204134658,
-0.3699558377,
0.0927634984,
-0.3082685173,
-0.4836232364,
0.0491588749,
-0.26065889,
-0.3034877777,
-0.2543318868,
-0.0482863635,
0.4492005706,
-0.0701708719,
0.0678224266,
-0.2516410351,
0.22875534,
-0.0924182385,
0.2042918652,
-0.1560558826,
0.2541157305,
-0.254172951,
-0.0031301838,
0.5134188533,
-0.094287172,
0.432025373,
0.0715525523,
0.3228150904,
-0.5414785147,
-0.1602058262,
0.025447065,
-0.030434303,
0.3327097893,
-0.064881146,
0.0309181809,
0.0171727147,
-0.068652682,
-0.0302836057,
0.0530107059,
-0.1586531997,
-0.0462426245,
-0.0352749527,
-0.1236545444,
-0.0139431646,
0.1747152805,
-0.3976204395,
-0.2431900799,
0.5241369605,
0.0033858658,
0.0371020027,
0.1448307037,
-0.2112215906,
0.1126614884,
-0.0824014619,
0.0044377092,
-0.5410987735,
-0.3925628662,
0.3323050141,
-0.3033613563,
-0.4418417811,
0.3117381036,
0.0301100239,
-0.0701146722,
0.1573744267,
-0.4300160706,
-0.211578846,
-0.2061528414,
0.2983266711,
-0.0588937737,
-0.0941091701,
0.4143107533,
-0.1088385731,
0.1378243268,
-0.0655850768,
-0.159542501,
-0.1339079589,
-0.0907310545,
0.2353165001,
-0.1543973684,
0.3341711164,
-0.0374309197,
0.4453987479,
0.4833422899,
0.485221684,
0.3086714447,
-0.3182345331,
0.5440737009,
0.2009680122,
-0.3051410913,
0.395861268,
-0.0381694324,
0.1349725127,
0.2257669121,
0.1440515518,
-0.0050895708,
0.0613020211,
-0.0197039749,
-0.4097960591,
-0.3554749787,
-0.2594949305,
-0.263202399,
0.078390561,
0.2429872751,
0.43063429,
-0.1495795399,
-0.4085835814,
-0.0864477754,
0.4605331719,
0.1087152883,
-0.0576265566,
-0.0778401718,
0.1435429156,
-0.8171333671,
0.1687693596,
-0.1498703659,
0.3207781613,
-0.3765932918,
0.2152203619,
0.4713712335,
0.0190886073,
0.702839613,
-0.2607113421,
0.2447497398,
-0.0750355572,
0.1976698935,
-0.3025336862,
-0.2415633053,
-0.0367790647,
0.2650387287,
0.1628537327,
-0.0387097485,
-0.1630981117,
-0.0615569241,
0.2203392684,
-0.504090488,
-0.0115363719,
-0.124916248,
-0.0543722063,
-0.388692379,
-0.0817373097,
-0.0744138435,
0.1977997124,
-0.0334054865,
-0.1383947134,
0.1440243423,
-0.0105836289,
0.3554993272,
0.2833743095,
-0.1463994384,
0.0030518519,
0.4407236874,
0.1234380603,
0.6450175643,
0.2146249712,
0.0983519107,
0.5985555053,
0.2896437049,
-0.7624284625,
0.1975780427,
0.09221524,
-0.0614046343,
0.4854416251,
-0.074228555,
0.0628109053,
0.0528280102,
-0.0235644281,
-0.2825051248,
0.2831182778,
0.5750515461,
-0.00139763,
-0.2805213332,
-0.3662875295,
0.1933407485,
0.0296995044,
-0.1531999558,
0.4174020886,
0.3273374736,
-0.2028221935,
-0.1645581275,
-0.3346914053,
0.7082956433,
0.1314280182,
0.1617137492,
0.5056421757,
-0.2246240377,
0.1675591916,
-0.2343084812,
0.1597689539,
0.0255181063,
-0.0668814033,
-0.2728943229,
-0.0481440052,
0.0804404542,
-0.0144331008,
0.1285515577,
0.0333406776,
0.3360061944,
0.2620877922,
0.2046473622,
0.2223977745,
-0.5753148794,
-0.0129459687,
0.0515946411,
0.1416799426,
-0.1051308438,
0.2897951603,
-0.1561203003,
-0.3577173352,
0.1286747307,
-0.0509268604,
-0.6026113033,
0.2159624696,
-0.5829442739,
0.1196217462,
0.0243578907,
0.0356468186,
0.2772345841,
0.256986171,
0.0111573515,
-0.0352047198,
-0.4757277369,
0.376971215,
0.0573785976,
0.1475382447,
-0.1191843301,
-0.1161538512,
0.225790754,
-0.1336468309,
-0.2128563225,
0.0569888353,
-0.0537072085,
-0.4524477422,
-0.2877366543,
0.3017004728,
0.1431463957,
-0.1262482554,
0.1328240931,
-0.0571609922,
-0.1659490764,
0.0528190807,
0.0650464743,
-0.0036315096,
-0.0874631107,
0.2723643184,
0.0018417834,
-0.1997644007,
-0.0292362664,
0.5338961482,
-0.4540894032,
0.0982616469,
0.7623212337,
-0.1571486443,
-0.3341931403,
-0.087918967,
0.0359447151,
0.0782917514,
0.0143805956,
-0.3692773879,
0.1672664732,
0.26613608,
0.0956240967,
0.0034734348,
0.0318847261,
-0.1110580042,
-0.1795258075,
-0.3490127325,
-0.150628522,
-0.2164387554,
-0.1547289044,
0.0584381111,
0.0412275195,
0.2798525691,
0.0925639123,
-0.1699079871,
-0.2252352387,
0.1169697195,
0.0957888886,
-0.0222959574,
0.0284363031,
-0.0785713121,
0.1977972537,
-0.1525020897,
-0.0296358466,
0.2012346685,
-0.2278479189,
-0.0977010801,
-0.0544453673,
0.1346144825,
0.1949508488,
-0.6383522153,
-0.1648719907,
-0.2728874981,
-0.1955222636,
0.1157743782,
-0.0593943372,
0.3787616193,
-0.0202439595,
-0.1411861032,
-0.150154829,
0.0868058279,
0.116501458,
0.0940378606,
0.0498457886,
0.3160766959,
-0.094422482,
0.1867168993,
-0.1110860705,
0.0064389035,
0.0275182016,
0.1978774816,
0.1270040721,
0.3207214177,
0.2435308695,
-0.1875023246,
0.1606697291,
-0.0419895165,
0.1621357352,
0.3551550806,
-0.1896634251,
-0.0449718684,
0.281232357,
0.1003502384,
-0.130301103,
-0.0501418412,
0.4176463485,
0.0240988676,
0.0136843165,
-0.260486573,
-0.1776179224,
-0.070601806,
-0.1293184012,
0.072016567,
-0.1002748683,
0.3428783417,
0.2669544816,
0.1678091586,
-0.2163394541,
0.1234759241,
0.3054250777,
0.2454170883,
-0.1420959085,
0.5465552807,
-0.2028954178,
0.0975862667,
-0.5620949864,
-0.1805936098,
0.1489956528,
-0.6579284668,
-0.129388392,
-0.2657826543,
-0.2588028312,
0.1336422861,
-0.0075020241,
0.2007299364,
-0.3691679239,
-0.1096623763,
-0.5425943732,
0.1239008158,
-0.0914777219,
0.009282398,
-0.168592602,
-0.0501911119,
0.2021976858,
0.0762301758,
0.0273912791,
-0.3587934375,
-0.192372784,
-0.0573330335,
-0.3542357385,
-0.2166412026,
0.0074732206,
-0.0244111363,
0.2161147892,
-0.2404048592,
0.074154377,
-0.1751311421,
0.1423248947,
0.4387170374,
0.1362076104,
0.2976442277,
0.1051592454,
0.1661160588,
0.1093533486,
0.0313192233,
-0.0937913656,
-0.1709245145,
0.345941484,
0.0951426923,
0.0935191587,
0.2630455494,
0.044253353,
-0.1038560346,
0.0876593888,
-0.007499808,
0.0122409649,
-0.459880352,
0.0766651332,
-0.5045902729,
-0.020116657,
-0.3425447941,
-0.2090164125,
-0.1973986179,
0.0520756617,
0.488619417,
-0.1106473058,
0.2864870429,
-0.5116045475,
0.0095294099,
0.0663953498,
0.4347028136,
0.6271026731,
-0.0547454916,
-0.0208643228,
-0.2708263397,
-0.7463305593,
0.0572725199,
0.0133740865,
0.1817975491,
-0.0367481932,
-0.007837397,
-0.1808756292,
-0.0524012856,
0.2576358616,
0.1819958389,
0.0548585057,
0.3561806679,
-0.0203860477,
-0.0654293671,
0.319804281,
0.2309208363,
-0.0902132168,
-0.157909885,
0.3665555418,
-0.0706743002,
-0.0406173877,
0.1278062612,
-0.0000802104,
-0.433657676,
-0.2155302316,
0.277941376,
0.1920568347,
0.2494317591,
0.0804488584,
0.2363231629,
-0.469270587,
-0.0694008842,
-0.0871147513,
0.1831183583,
-0.3049505651,
0.2270156592,
-0.0625149682,
0.07145565,
-0.1334654242,
0.25692904,
-0.0638854802,
0.0175106265,
-0.1635994166,
0.0829752609,
-0.5182811618,
0.3779897392,
0.0466971323,
0.1788161099,
-0.0213861298,
0.2412467003,
-0.244957149,
-0.2689086199,
0.5574156642,
-0.7852604985,
-0.0140187098,
-0.1538735479,
0.2364789844,
0.4029940963,
-0.3159100115,
-0.0818219185,
0.1116695255,
0.2450791299,
-0.2635611296,
0.1555129588,
0.0686454773,
-0.361374855,
0.1454096586,
-0.0629444122,
0.6519634128,
0.0925386623,
-0.1685544103,
0.4917086363,
-0.124070704
] |
https://github.com/huggingface/datasets/issues/4139 | Dataset viewer issue for Winoground | I was able to reproduce it on a private dataset, let me work on a fix | ## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
| 16 | Dataset viewer issue for Winoground
## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
I was able to reproduce it on a private dataset, let me work on a fix | [
-0.2385866791,
0.3803409636,
0.0198633112,
0.2570517957,
0.0456076525,
0.1084087119,
0.0905541405,
-0.128638804,
-0.3383243978,
-0.0183006171,
-0.3247798681,
-0.022291854,
-0.1956522763,
0.0001293665,
-0.0990194157,
0.1704097092,
-0.1324594617,
-0.213983506,
-0.1198510528,
-0.0327902846,
-0.1907198578,
0.0464474075,
-0.2678116858,
0.2326305807,
-0.2784928083,
-0.1267801821,
-0.0151744308,
-0.0046855188,
-0.3645946085,
-0.3742620051,
0.2465992272,
0.2990883887,
0.1593743414,
0.2946362495,
-0.0001115692,
0.131490618,
0.177003175,
0.2604201436,
-0.1503970921,
0.1287148297,
-0.2276605815,
-0.2146765292,
0.1259434968,
-0.0214133449,
-0.128765896,
-0.3942677379,
0.2428156585,
0.2431968153,
0.2605024874,
0.3582131267,
0.2197506428,
0.0595645048,
0.1723793149,
-0.0525257476,
0.106160678,
0.1411196589,
-0.2075850815,
0.2133243084,
0.2569551468,
-0.2062175423,
-0.0901764035,
0.1294861883,
0.2022244334,
0.0132615762,
0.3571039438,
-0.1372266263,
0.2656543553,
-0.3904769421,
0.1310046166,
0.2958705425,
0.6954848766,
-0.0080454033,
-0.2566083074,
-0.0287364088,
0.2366317511,
0.262050271,
0.3614374995,
0.335675925,
-0.1277588457,
0.2367787659,
-0.1759410352,
-0.1514133662,
-0.4354512095,
0.1714994013,
-0.1186270416,
-0.2963849008,
-0.1063836291,
0.1403108537,
-0.1269536614,
-0.1777443588,
0.2510640919,
-0.184513092,
-0.0730061084,
0.1068701595,
0.0220172759,
0.186116457,
0.1457473189,
0.6089349389,
-0.1604796052,
0.2022381127,
-0.3028105497,
0.1001602113,
-0.3497514725,
0.060787607,
0.2276484221,
-0.2235110402,
-0.0100117913,
0.3156564832,
0.3450541794,
-0.065252021,
-0.1655735672,
-0.0118355136,
-0.0820041969,
-0.3423554599,
-0.1296220869,
-0.249555707,
0.528298378,
-0.0753407925,
-0.3667238355,
0.1625786573,
-0.0131828729,
-0.0452511571,
0.3635530472,
0.4562840164,
-0.0652149096,
-0.4254044294,
0.2502401173,
-0.0133804362,
0.0217690114,
-0.1129082367,
-0.0898770541,
-0.1969686002,
-0.0647434667,
-0.019394353,
0.2437208146,
-0.0207268912,
-0.0680007264,
0.0153831318,
-0.0001468095,
0.0240842961,
0.2516601086,
-0.0103065223,
0.0998852327,
0.073024787,
0.2354698032,
0.1426389664,
-0.0526465364,
0.0250078011,
0.1650125086,
0.18571347,
-0.0675178692,
-0.2575488389,
-0.2170470208,
0.1422504038,
-0.1222058162,
0.0504888408,
0.0998330265,
0.2869586647,
-0.247891292,
-0.2811333835,
0.1205915809,
-0.053167969,
-0.1573057026,
-0.1225203425,
-0.1740075648,
0.48728019,
-0.3866423368,
0.0634831488,
-0.1449625343,
-0.5048318505,
-0.0165415686,
0.0509057604,
-0.3297186792,
0.1729060709,
-0.3904633224,
0.2208416611,
0.6120983958,
-0.4756602943,
-0.5687366128,
0.103465125,
-0.2582746446,
0.070726797,
-0.0941225067,
0.0742852837,
0.0969190001,
-0.3638141751,
0.1399818063,
0.1221715212,
0.3421572447,
-0.1401760578,
0.1030906066,
-0.2369929254,
0.1929494888,
0.0666705221,
0.1208851933,
0.1872769147,
0.440849632,
-0.2453216761,
0.1896345168,
0.0399483442,
0.1224476993,
0.266522944,
0.1864583939,
0.4356776476,
0.0137374112,
-0.0939244702,
-0.0757465065,
0.1144563109,
0.0232171305,
-0.178330034,
0.2240213752,
-0.289196074,
-0.0142442379,
-0.0119915772,
-0.534047544,
-0.0608036667,
0.2286164761,
0.3039868176,
-0.3103654385,
-0.0447828062,
0.1783104092,
-0.0671710372,
-0.1858602315,
0.0809540078,
0.0372329839,
0.0006062299,
-0.062374346,
0.1216592044,
0.0473704748,
0.1737846434,
0.3241880238,
0.1348126531,
-0.122972481,
0.1658282727,
-0.0189698581,
0.0813709348,
0.1046690866,
0.1068498716,
-0.0464290679,
-0.440125674,
-0.0235350728,
-0.0141344955,
-0.010389368,
-0.0744159222,
-0.1358816773,
-0.0663000941,
-0.039779488,
-0.0864009857,
-0.0470458716,
0.4241524041,
0.3294380307,
0.084412843,
-0.1454690248,
-0.0596683174,
0.2309591025,
0.255232811,
0.2000868767,
0.0008161908,
-0.1298009455,
0.2024249732,
0.3787806928,
-0.0799179003,
-0.0554290786,
0.0077389255,
-0.219247207,
0.184208855,
0.1734706014,
0.2983173728,
0.2492192388,
0.0795906633,
0.2899601161,
0.2605499029,
0.0816462561,
-0.0958865434,
0.1683378518,
0.1372924596,
-0.1673148125,
0.0246266518,
0.0901630595,
0.119654052,
-0.4794258475,
0.0425697081,
0.2139585912,
0.2441977412,
-0.3018370271,
-0.0666482672,
-0.2211081833,
-0.369773984,
0.0447606146,
-0.3099533319,
-0.3277513385,
-0.1469042599,
0.0391444676,
0.2690671086,
-0.069363974,
0.1008015424,
-0.2839457095,
0.2726802826,
-0.0427225344,
0.2673690021,
-0.0259278342,
0.292830348,
-0.3026753664,
0.0207983498,
0.436668694,
-0.0338817053,
0.3970038295,
0.0454279445,
0.3483920097,
-0.514729917,
-0.2255952805,
0.017021304,
0.0008644703,
0.4094175994,
-0.0329100192,
0.0989593863,
-0.0617518574,
-0.0802786648,
-0.0002551165,
0.1620948464,
-0.1616351753,
-0.0943510607,
-0.0195759684,
-0.1731893718,
0.018056063,
0.1762613207,
-0.3838123381,
-0.2273747325,
0.4109756052,
0.0824983642,
0.0312851071,
0.140845716,
-0.227623418,
0.2177996337,
0.0725132823,
0.0919079036,
-0.5065767169,
-0.271733582,
0.2343669981,
-0.4176627398,
-0.4981558323,
0.2855394185,
0.0268290099,
-0.0972661152,
0.0576619059,
-0.4415518641,
-0.3285378218,
-0.2036295086,
0.3565577269,
-0.0783094689,
-0.2311916351,
0.3292709291,
-0.0267626848,
0.1118483245,
-0.1271308362,
-0.2059367895,
-0.0681406111,
-0.1080694422,
0.1921935529,
-0.1725028604,
0.2834824622,
-0.0644376129,
0.2958794534,
0.3384159505,
0.4620847106,
0.2257720232,
-0.2951918244,
0.5674724579,
0.1976872236,
-0.3728225529,
0.3701438308,
0.0243285354,
0.1065546647,
0.2009570897,
0.0801601261,
-0.023155259,
0.1057682782,
-0.2421775609,
-0.3704511821,
-0.378665626,
-0.3111128807,
-0.311822474,
0.060842514,
0.2500920892,
0.3096030056,
-0.2637834847,
-0.4036203027,
-0.0330067948,
0.4428029358,
0.0322343707,
-0.0671010017,
-0.0483740121,
0.1075591594,
-0.6081447005,
0.1773870438,
-0.1761909872,
0.2415849864,
-0.4232228994,
0.3364188075,
0.5082699656,
0.0749297068,
0.7234805226,
-0.3103171885,
0.3444031179,
-0.0069226557,
0.2067654133,
-0.3142931759,
-0.215548262,
-0.006388945,
0.4366684854,
0.2385060191,
0.0513681062,
0.0404292867,
-0.0941701308,
0.3007225692,
-0.3759352863,
-0.1349483579,
-0.104583241,
-0.0312949009,
-0.3380325437,
-0.0570049062,
-0.0452126451,
0.1771288961,
0.0056535592,
-0.0449468307,
0.0621437207,
-0.0081270896,
0.3478350043,
0.1916528195,
-0.0306474529,
0.034091644,
0.442388922,
0.1075907648,
0.5630108118,
0.1371255815,
0.1013128832,
0.4992346466,
0.2128323466,
-0.7288063169,
0.2250399292,
-0.1144258156,
-0.0661271289,
0.3493761718,
-0.073644653,
0.022687491,
0.0120461928,
-0.0539722107,
-0.2383797765,
0.28441149,
0.5619003177,
-0.0677158609,
-0.3303124905,
-0.2736985683,
0.1205287278,
0.0266811121,
-0.2114253491,
0.4075483084,
0.3979603648,
-0.183154881,
-0.1009026468,
-0.1571459621,
0.6108297706,
0.0502627045,
0.0160408467,
0.4182187617,
-0.2138229907,
0.2105004191,
-0.1470011175,
0.1385710835,
-0.0539454557,
-0.1363488436,
-0.2194743156,
-0.0693949983,
-0.0376741216,
0.011639691,
0.1574308723,
-0.1651102304,
0.2682896554,
0.0879416242,
0.1348495036,
0.1652983874,
-0.3223979771,
0.0398918241,
0.1773620546,
0.1735207886,
-0.1044210643,
0.2840421498,
-0.2059091479,
-0.3030324876,
0.0699654296,
-0.0400995798,
-0.5506701469,
0.1839352697,
-0.4698252976,
0.2032458782,
-0.0130529581,
-0.0109992214,
0.3484818935,
0.3657749891,
0.1571362764,
0.0590047054,
-0.4493184984,
0.3896331191,
0.018221736,
0.0289917104,
-0.1810400039,
-0.0739097893,
0.3078557849,
-0.1198420897,
-0.2358607948,
-0.0626148507,
-0.013581343,
-0.4217299521,
-0.3469534814,
0.3485035002,
0.0591729805,
-0.136290133,
0.1433110982,
-0.1212043613,
-0.1344550848,
0.0407369174,
0.1263409406,
0.0455871895,
-0.1037283838,
0.2726750374,
0.1372690201,
-0.2699359059,
0.1415931135,
0.3472135067,
-0.3557750583,
0.1142026559,
0.8458794355,
-0.065442048,
-0.2298192978,
-0.1397851557,
0.0941311494,
0.2319272012,
-0.0013910227,
-0.3310608268,
0.2111582607,
0.4083408117,
0.1732763201,
-0.0698368326,
-0.0120578585,
-0.1667666435,
-0.1913393736,
-0.3918385506,
-0.1939425915,
-0.1667804122,
-0.2015092373,
0.144569248,
0.0778252333,
0.2023013234,
0.1848643422,
-0.1464920491,
-0.2478324324,
0.1486565769,
-0.0391052812,
-0.0127842817,
-0.0241116527,
-0.1415500045,
0.0145459296,
-0.0608886704,
0.0063412124,
0.045419313,
-0.1442157477,
-0.1165517867,
-0.0057501448,
0.1011259481,
0.1803420931,
-0.5480379462,
-0.2192481011,
-0.3896770477,
-0.2003923208,
0.1900588274,
-0.1098548174,
0.3161325455,
-0.0504989401,
-0.1258449852,
-0.3598252535,
0.1136434004,
0.1828693449,
0.0408354737,
0.1112757549,
0.253582716,
-0.0471770391,
0.1754344851,
-0.0902643204,
-0.0213887617,
-0.0151374908,
0.1356164813,
0.0280495174,
0.2440887988,
0.1341686249,
-0.2730230987,
0.237855643,
-0.0041027954,
0.1542680115,
0.2624793351,
-0.2693769634,
0.024813585,
0.2416293174,
0.1294593662,
-0.159398064,
-0.0844587907,
0.6439173818,
-0.1072291881,
-0.0577840209,
-0.2895031869,
-0.1677961648,
0.052847866,
-0.2431851923,
0.058826182,
-0.1363121122,
0.1538863778,
0.244801715,
0.2013435513,
-0.3203057945,
0.0356996581,
0.3232893944,
0.3608137369,
-0.0672066063,
0.7438288927,
-0.1505831331,
0.0120487371,
-0.5721402168,
-0.2403956205,
0.3103787601,
-0.6461285353,
0.0099373432,
-0.2111895829,
-0.1833283454,
0.0079592029,
-0.0655741692,
-0.0422064327,
-0.3778013885,
-0.0523161329,
-0.5793349147,
0.0856729522,
-0.2134067863,
0.1346887946,
-0.2962459028,
-0.0827075839,
0.2936370373,
0.0456762612,
0.0093538808,
-0.2370337248,
-0.3991608322,
-0.0534331948,
-0.3558366597,
-0.1685426831,
0.1902764738,
0.0634299144,
0.0882432833,
-0.2134318054,
0.0035048004,
-0.2547778189,
0.1500028372,
0.4179691374,
0.1562613547,
0.1888725907,
0.2077978402,
0.0809848011,
0.0536659472,
-0.0441367812,
-0.1492143273,
-0.2867925763,
0.299125731,
0.1112385839,
0.1183781177,
0.3449572623,
0.0700651556,
-0.0767247602,
0.1540497392,
0.0371965878,
0.067799367,
-0.4160107672,
-0.1538414359,
-0.4234573245,
-0.1195674166,
-0.3610081077,
-0.3148178458,
-0.0395145118,
-0.0415102169,
0.5144810081,
-0.0485080555,
0.2587239742,
-0.5286862254,
0.0260971449,
0.0883846134,
0.3463692367,
0.6540233493,
0.0483060963,
0.0019744905,
-0.2195243388,
-0.7184553742,
0.1669497788,
0.0061466694,
0.1828723401,
0.0604124591,
-0.035594549,
-0.1854643822,
-0.1556345671,
0.4154567122,
0.1350543946,
0.0623862445,
0.2804628313,
-0.0102267014,
-0.091185987,
0.4236585796,
0.2189591825,
-0.1233416349,
-0.1413308829,
0.3154470623,
-0.0146109182,
-0.0249080155,
0.0547303297,
-0.0773238838,
-0.3783940375,
-0.0149366455,
0.3226627707,
0.255715996,
0.2478910238,
0.1161465347,
0.3218456805,
-0.5264955759,
-0.04554943,
-0.0912446603,
0.2413978428,
-0.2299434394,
0.1364679486,
-0.0656548515,
0.055196248,
-0.0580011457,
0.122016713,
-0.1754621267,
0.2537852824,
-0.0943502039,
0.0859763622,
-0.3717765212,
0.2945020795,
0.1202930659,
0.0268970542,
0.0230400003,
0.2302756906,
-0.2937552929,
-0.17706725,
0.4573046267,
-0.7084267139,
-0.0630197674,
-0.0940726623,
0.2024718374,
0.4010690749,
-0.2895319462,
-0.0039507779,
0.0305948295,
0.3504251242,
-0.1679542363,
0.1250816435,
0.0206246078,
-0.2748301029,
0.1862814575,
-0.0364148356,
0.6966997385,
0.0185314585,
-0.1142755523,
0.4381633699,
-0.0428133421
] |
https://github.com/huggingface/datasets/issues/4139 | Dataset viewer issue for Winoground | Thanks for the heads up, I still need to fix some tests that are failing in the CI before merging ;) | ## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
| 21 | Dataset viewer issue for Winoground
## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
Thanks for the heads up, I still need to fix some tests that are failing in the CI before merging ;) | [
-0.2774170935,
0.3570375741,
0.0189055726,
0.2028404623,
-0.0644622073,
0.1670638472,
0.1320149451,
-0.1436326951,
-0.3657690883,
-0.0115631241,
-0.3856449425,
-0.1237949207,
-0.12703228,
0.1360718608,
-0.1109700277,
0.2757478058,
-0.0134431385,
-0.2193367779,
-0.1193013713,
-0.0183750223,
-0.1610102952,
0.1719796062,
-0.2488820702,
0.1540506482,
-0.2624358535,
-0.0768024325,
-0.0867597386,
0.0233956873,
-0.464940995,
-0.2832213044,
0.2908495069,
0.4337284863,
0.0560115576,
0.4570324719,
-0.0001150568,
0.0957384631,
0.1750974059,
0.1948720962,
-0.2041625381,
0.0871529058,
-0.1482093036,
-0.214113608,
0.050289534,
0.0093027968,
-0.148797065,
-0.3364033699,
0.1953075826,
0.196685642,
0.1879214495,
0.3720358014,
0.1762001812,
0.1385742575,
0.1025298387,
-0.1193846092,
0.0627824441,
0.256400466,
-0.2008434683,
0.199630931,
0.2773953676,
-0.1935530752,
0.0363630354,
0.0822273716,
0.2609261274,
-0.1087289527,
0.3833840489,
-0.1074864939,
0.1805503517,
-0.431592375,
0.1219511777,
0.2128367871,
0.6372993588,
0.0924681947,
-0.2294595689,
0.0631154031,
0.1791925877,
0.2618549168,
0.400233686,
0.2026009411,
-0.1587378383,
0.2156472504,
-0.3049082756,
-0.1342904419,
-0.3846129775,
0.1747591943,
-0.1242276579,
-0.2629939914,
-0.0775013193,
0.1423403323,
-0.0475316159,
-0.1322893947,
0.2261440158,
-0.2005637139,
-0.1870635301,
0.078022249,
0.0888558552,
0.0967041105,
0.1791412383,
0.6939172745,
-0.1827126741,
0.2592698634,
-0.3257489204,
-0.0166418701,
-0.2876544595,
0.0778239369,
0.2534569204,
-0.1564499587,
-0.0240947958,
0.2698995769,
0.3302534521,
-0.0869553462,
-0.1157695726,
0.0146734007,
-0.0002042211,
-0.3039806783,
-0.2834548354,
-0.3459298015,
0.5063771009,
-0.0712621063,
-0.3834102154,
0.1011437625,
0.0729037896,
-0.0462528728,
0.3764116764,
0.3952277303,
-0.1020241454,
-0.3634258211,
0.2579004467,
-0.024273308,
-0.0219600238,
-0.0796791837,
-0.0865484998,
-0.2142414153,
-0.0249178167,
-0.1110773832,
0.2057371289,
-0.0986889303,
-0.1032856777,
-0.0213124268,
0.198101759,
-0.0109897517,
0.2086938024,
0.0173512734,
0.2502534688,
0.1118498743,
0.2450447828,
0.1000498831,
0.0078554908,
-0.1154815331,
0.1323006749,
0.1110133082,
-0.0741834939,
-0.2325531691,
-0.3443570137,
0.1296386123,
-0.1184320524,
0.0127088567,
0.0580605865,
0.283681035,
-0.2343445569,
-0.3260557652,
0.05222518,
0.0515692607,
-0.1360477656,
-0.1810310483,
-0.1359558553,
0.4528723657,
-0.3866211176,
0.0199642479,
-0.1595431268,
-0.4413832724,
-0.1235203147,
0.1412538737,
-0.3086366951,
0.1322964281,
-0.3928295076,
0.117149204,
0.6483357549,
-0.5457732677,
-0.5287035704,
0.1225721464,
-0.2391695827,
0.046611961,
-0.0760639384,
0.0734122619,
0.1551117003,
-0.4440026283,
0.1766110361,
0.1561341286,
0.1770118028,
-0.157182321,
0.1144792661,
-0.2551742196,
0.1493950188,
-0.0227720942,
0.0880562738,
0.2082693875,
0.4543508291,
-0.3246116936,
0.2024928033,
-0.006259758,
0.1136477292,
0.3036821783,
0.1733235419,
0.3438734114,
0.0389307551,
-0.0174220838,
-0.1006042138,
0.0912571177,
0.1007034183,
-0.0988316759,
0.3123058081,
-0.3581571877,
-0.1076692268,
-0.0435581766,
-0.5143092871,
-0.0463351309,
0.1831670403,
0.3620249033,
-0.2549885511,
-0.1379184574,
0.1402022839,
-0.0171326604,
-0.1223322526,
0.0671665743,
-0.0186644215,
0.0515602045,
-0.1500864923,
0.0952504203,
-0.0046706269,
0.2430163175,
0.2019132078,
0.0786162689,
-0.1013637111,
0.1936337054,
-0.1865707785,
0.1290490478,
0.2080835104,
0.1140590087,
0.0313461795,
-0.4471309185,
-0.0154022397,
-0.0316581987,
-0.0479647592,
-0.140018031,
-0.1934846938,
-0.0567574576,
-0.1097340584,
-0.0998862833,
0.0157810003,
0.445163548,
0.3062888384,
0.1885147542,
-0.237202853,
-0.0818782151,
0.2393021286,
0.2456896156,
0.1555680484,
0.0579374768,
-0.0557354465,
0.244205907,
0.476164639,
-0.0058606304,
-0.1901081502,
-0.0574985407,
-0.2355222553,
0.1189746335,
0.1351694763,
0.2819935381,
0.3374448717,
0.1233626157,
0.3324226141,
0.2271683961,
0.1327979118,
-0.0461097583,
0.2138589472,
0.14349626,
-0.1838181615,
-0.0094766319,
0.0942747369,
0.122699447,
-0.4482890666,
0.0778273121,
0.2016682774,
0.1327213943,
-0.275380969,
0.0643152818,
-0.1438813806,
-0.4241180718,
0.0679775625,
-0.2948340178,
-0.4147965312,
-0.2404528111,
0.0234172177,
0.3412195444,
-0.0258937757,
0.1246048212,
-0.2792960107,
0.3615170717,
-0.1199811846,
0.2448356152,
-0.066071175,
0.2432552576,
-0.309935689,
0.0183396488,
0.4656611681,
-0.1306132525,
0.4251083434,
0.0360245369,
0.4573292434,
-0.4887437522,
-0.3581769168,
0.0389743298,
-0.0721196532,
0.4291646779,
-0.051235117,
0.0531109832,
-0.0642770231,
-0.1571974009,
-0.0132802557,
0.1389229,
-0.2781770527,
-0.1582818776,
-0.0433128402,
-0.2430685312,
0.0005528469,
0.1277150065,
-0.4020324945,
-0.2265462428,
0.4124207795,
0.053613998,
-0.0397662893,
0.1793724746,
-0.2921760678,
0.0887013152,
0.04865456,
0.0485156365,
-0.5629535913,
-0.3666910529,
0.1936809421,
-0.4662216306,
-0.4776956737,
0.3228246272,
0.0520814843,
0.0233538896,
0.0372249037,
-0.3312568069,
-0.2986834645,
-0.1476424336,
0.3423360884,
0.018926071,
-0.2445412725,
0.3575924337,
-0.0432646461,
0.1297962964,
-0.100245662,
-0.2559184432,
-0.1338360459,
-0.0158025082,
0.2877275646,
-0.1914667487,
0.2685965598,
-0.1318398267,
0.4599960744,
0.421482861,
0.4773673117,
0.1934711784,
-0.2778207958,
0.6998060346,
0.1948015839,
-0.5166402459,
0.3846765459,
-0.0059259599,
0.1068895757,
0.2887322307,
0.1239953637,
-0.0343110636,
0.0335276015,
-0.1508761793,
-0.4004083276,
-0.3470742702,
-0.2720194757,
-0.3340159059,
0.011505398,
0.1724499464,
0.1925552338,
-0.3054865599,
-0.3820778131,
-0.053127978,
0.5364440084,
-0.0873320252,
-0.0085571334,
-0.0473535061,
0.0739191175,
-0.6015512943,
0.2165769339,
-0.1718784571,
0.164637506,
-0.4394767284,
0.2127502859,
0.4123800397,
0.0824256912,
0.6544561386,
-0.3183324635,
0.1459023803,
0.0235717092,
0.2069720775,
-0.2844083309,
-0.2325891405,
0.1116926447,
0.4459796548,
0.3568943739,
0.083674185,
0.1020754725,
-0.0836981684,
0.4892150164,
-0.3472358584,
-0.1142987534,
-0.0124052605,
-0.1235286817,
-0.4203370214,
-0.1026270539,
-0.1237552837,
0.2015520036,
-0.0174220018,
-0.0849447846,
0.0670308098,
0.0017652106,
0.2267761379,
0.2493932545,
0.0020835032,
0.0102330334,
0.4815687239,
0.054168433,
0.5138797164,
0.2292804718,
0.0846103206,
0.5621209741,
0.2768341601,
-0.6962721348,
0.2596895397,
-0.1395376921,
0.086928837,
0.3791638017,
-0.0674275905,
0.0346122831,
0.0446338318,
-0.1264317185,
-0.2317213565,
0.2764105499,
0.5220255852,
-0.0519987233,
-0.4075934291,
-0.1076739877,
0.0619158559,
0.132458806,
-0.197413221,
0.4361759722,
0.3906672001,
-0.1423009783,
-0.1377097964,
-0.228220582,
0.780569911,
0.0591643266,
0.0821517482,
0.3680137396,
-0.1434359848,
0.2473802716,
-0.1355388165,
0.110030748,
-0.022039013,
-0.1729593277,
-0.2209068984,
-0.0967132375,
-0.0025044126,
-0.0635415092,
0.093838878,
-0.1570197046,
0.2656996548,
0.3015856445,
0.1083352268,
0.176504463,
-0.2759498358,
0.0387831703,
0.2539782524,
0.1504041255,
-0.0843276307,
0.3606819808,
-0.219104737,
-0.2698065639,
-0.057697054,
-0.0518324226,
-0.5506972075,
0.1470174491,
-0.4268646538,
0.1822557449,
-0.0501122326,
-0.0835506469,
0.249572441,
0.3479314446,
0.3192216754,
0.0427353494,
-0.4019295275,
0.3826194704,
0.0450763814,
0.0383758135,
-0.1935579926,
-0.2194931209,
0.333717525,
-0.1621344388,
-0.1298047602,
-0.0405655019,
0.0206050482,
-0.4855751693,
-0.39049986,
0.3779304624,
0.0364311673,
-0.1278784126,
0.1950442344,
-0.0517638102,
-0.1210103258,
0.0132742831,
0.078768611,
0.0304567367,
-0.0878392309,
0.2865638435,
0.1284952015,
-0.2856049538,
0.0979402736,
0.3123830855,
-0.2522131801,
-0.0492420383,
0.8356664777,
-0.1283948421,
-0.180638656,
-0.1215917617,
0.065919213,
0.2441559881,
-0.0370411761,
-0.2733568549,
0.1821665019,
0.3213933706,
0.2109232992,
0.0940926,
0.079100132,
-0.0389695577,
-0.2625895143,
-0.3364064991,
-0.2964095175,
-0.1204979047,
-0.1745968908,
0.2484507561,
0.0994482487,
0.206168443,
0.2268102169,
-0.1072038636,
-0.2252381742,
0.0495964065,
-0.0928974673,
-0.0137549238,
0.0813681483,
-0.1262525469,
0.0300832205,
-0.1332405061,
-0.0582827181,
-0.0632874221,
-0.1030511335,
-0.075233534,
0.0794125646,
0.1252899468,
0.1666771919,
-0.5298994184,
-0.1879021376,
-0.308711797,
-0.1564904004,
0.1950429082,
-0.0953542143,
0.2178130448,
-0.014661557,
-0.329011023,
-0.3920086622,
0.0826066136,
0.2233208269,
0.0650012121,
0.2080946565,
0.3438962698,
-0.0428608917,
0.2236947566,
-0.087999776,
-0.0689226463,
0.0602213442,
0.1924702674,
0.0425936952,
0.2721999288,
0.0971921682,
-0.2699889839,
0.1804938316,
0.0256238785,
0.1256335378,
0.2646450102,
-0.2225894034,
0.0810648873,
0.1547065526,
0.087073274,
-0.1344430745,
-0.0347752422,
0.6324023604,
-0.0772574693,
-0.0805765688,
-0.2193095684,
-0.1313729137,
0.117125921,
-0.1627202034,
0.0645927861,
-0.1691128314,
0.1269986928,
0.3955938816,
0.0595113747,
-0.2848208547,
0.1064971611,
0.3318049312,
0.2555455863,
-0.0765879303,
0.5876333714,
-0.1807844341,
0.0544603243,
-0.483959049,
-0.2587693334,
0.4442623258,
-0.6062912941,
0.1029743627,
-0.3128133118,
-0.1384651661,
0.0579637103,
0.0510351844,
-0.0279855356,
-0.4380009472,
-0.1471057981,
-0.6966455579,
0.1323664933,
-0.1718239337,
0.1340786666,
-0.3149113357,
-0.1096254662,
0.2894376814,
0.0632662326,
0.0498524196,
-0.2203620821,
-0.3710260093,
-0.0410386808,
-0.2995119989,
-0.1246178672,
0.1435491294,
0.0679468811,
0.0910069644,
-0.1529423743,
0.0525914691,
-0.2231516838,
0.1532644331,
0.4508410394,
0.2295679301,
0.2741642892,
0.1299137622,
0.1475718468,
0.0857722536,
-0.0636830106,
-0.1753958911,
-0.2848505676,
0.2924292386,
0.1398887485,
0.0330779366,
0.3154304326,
0.0874848738,
-0.0227406267,
0.1149114594,
-0.0787305757,
-0.0054173684,
-0.4321769476,
-0.1079304516,
-0.504945457,
-0.1612430364,
-0.3987358809,
-0.195605576,
-0.0387755409,
-0.0983790904,
0.532617867,
0.0125647178,
0.2404082119,
-0.4980268478,
0.015154236,
0.1880085915,
0.3307134509,
0.6783977151,
0.0586147048,
-0.002507475,
-0.2839271128,
-0.655290544,
0.1269420683,
0.0792400315,
0.318885088,
-0.0411338396,
0.073667869,
-0.0629330873,
-0.1352823228,
0.5253987908,
0.0202711485,
0.1413433105,
0.1187077761,
0.0129663646,
-0.1024767607,
0.434261024,
0.0961609408,
-0.1175503507,
-0.07541053,
0.305559963,
0.0479881018,
-0.0584800467,
0.0356322527,
-0.0954662934,
-0.3247135878,
-0.1283521354,
0.2179828882,
0.2723487616,
0.2816407382,
0.0978259146,
0.2972274125,
-0.4751046002,
-0.0617027208,
-0.1339106709,
0.3343888521,
-0.2168767601,
0.1454134136,
-0.1586387306,
0.0916292667,
-0.0229841098,
0.008753919,
-0.1262344271,
0.2190197706,
-0.0625476241,
-0.0245358441,
-0.388133198,
0.3509272039,
0.2160724103,
0.1223921031,
0.0365044326,
0.2929650843,
-0.2759698629,
-0.1785108596,
0.4719529748,
-0.5870183706,
-0.07848984,
-0.1511584371,
0.1870658696,
0.3768392503,
-0.2363854647,
-0.0023354928,
0.0107622268,
0.3191919625,
-0.2030000687,
0.1614619195,
0.0852460563,
-0.3057667613,
0.2378785014,
-0.0541698299,
0.6478403211,
0.0007832663,
-0.124970831,
0.4449991882,
0.0328675471
] |
https://github.com/huggingface/datasets/issues/4139 | Dataset viewer issue for Winoground | The fix has been merged, we'll do a new release soon, and update the dataset viewer | ## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
| 16 | Dataset viewer issue for Winoground
## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
The fix has been merged, we'll do a new release soon, and update the dataset viewer | [
-0.2664144635,
0.3596874177,
0.0041653877,
0.2217418849,
0.0226435754,
0.1016643941,
0.1090605333,
-0.1083729938,
-0.3371365368,
-0.017149156,
-0.3307524025,
-0.0515377708,
-0.2027523667,
0.0162699874,
-0.0730734169,
0.2063014954,
-0.1037210748,
-0.2384270281,
-0.1375193894,
-0.0251511093,
-0.1945882887,
0.1092773303,
-0.2534946203,
0.206695199,
-0.2782890797,
-0.0886300057,
-0.0334509201,
0.0007629002,
-0.4061385095,
-0.3721297383,
0.2512477934,
0.3269174695,
0.1175974682,
0.3238892257,
-0.0001097792,
0.1497278512,
0.1897411793,
0.2660871148,
-0.1882130206,
0.0902365297,
-0.1749449819,
-0.2214621603,
0.1067452431,
0.0067117135,
-0.1438867897,
-0.4014895856,
0.2993906438,
0.2565219402,
0.247712478,
0.3482436836,
0.2300377339,
0.1162811816,
0.170128122,
-0.0776478499,
0.1167532355,
0.168927595,
-0.2288412452,
0.1986906528,
0.2864851654,
-0.2346791327,
-0.082202591,
0.1301024705,
0.2381261289,
-0.0012976613,
0.3709185123,
-0.1096957475,
0.2459519506,
-0.3823316693,
0.1106892824,
0.3189875185,
0.597813189,
0.0400184542,
-0.2634974122,
-0.0238750391,
0.1759486496,
0.2658814788,
0.371091634,
0.2999076843,
-0.1572102755,
0.2662000954,
-0.2115627825,
-0.1469657123,
-0.3972301483,
0.1886436194,
-0.1144431606,
-0.2661620677,
-0.1109441146,
0.118210271,
-0.0950431749,
-0.1513880044,
0.2046088278,
-0.1634238064,
-0.0823662356,
0.0829754099,
0.0440074094,
0.1705615819,
0.1788706779,
0.6044977307,
-0.1199682876,
0.2078727633,
-0.2843045592,
0.0961072817,
-0.3407065272,
0.064750731,
0.2498923987,
-0.2077130824,
0.0076965205,
0.2763768733,
0.3714555204,
-0.0551417097,
-0.139090538,
-0.0092058238,
-0.0421287976,
-0.2998196483,
-0.174584195,
-0.2559515238,
0.5238062739,
-0.0440269634,
-0.377348125,
0.1005960777,
0.0311348829,
-0.0628459007,
0.3499306142,
0.4553210735,
-0.0981982648,
-0.3904131353,
0.2257898897,
-0.0277601648,
-0.0053604604,
-0.0848364606,
-0.1178625375,
-0.2336629927,
-0.0527183525,
-0.0148492781,
0.2398612201,
-0.0454822406,
-0.0352399983,
-0.0271890964,
0.0372872353,
0.0454014428,
0.2572449744,
-0.0045512696,
0.1425122321,
0.0805310681,
0.1964122802,
0.1286959648,
-0.047629457,
-0.0091611734,
0.1428001374,
0.1351591051,
-0.0724880621,
-0.2847978473,
-0.2421342432,
0.1657350659,
-0.0928632766,
0.0180495735,
0.0810178146,
0.3215452135,
-0.2698381245,
-0.2849145234,
0.1014091969,
-0.0217843484,
-0.184521541,
-0.1419256926,
-0.1700601876,
0.4370064735,
-0.3598142564,
0.0061801849,
-0.101098232,
-0.4928813279,
-0.0937683359,
0.0581227913,
-0.3251976371,
0.1296066046,
-0.3970662057,
0.2063101679,
0.5779301524,
-0.498610884,
-0.5717882514,
0.0588267781,
-0.2275684625,
0.0486611091,
-0.1059265137,
0.0587185137,
0.1048423424,
-0.4105553627,
0.1370605081,
0.1489066929,
0.3334044516,
-0.1013252363,
0.0951931551,
-0.2848815024,
0.2049621493,
0.0544577688,
0.0738777816,
0.182796225,
0.444391489,
-0.237466678,
0.2109738588,
0.0411155894,
0.1072767824,
0.2728904486,
0.1850094497,
0.4523001909,
0.0178434923,
-0.1005989164,
-0.1206320822,
0.1191900596,
0.0483653732,
-0.1800524741,
0.237750411,
-0.3432517946,
-0.0204444453,
-0.0123522701,
-0.4948337674,
-0.0602480732,
0.242461741,
0.3155791759,
-0.2282182723,
-0.0285221655,
0.1334265918,
-0.0722656399,
-0.1692619026,
0.0618204251,
0.0383095481,
0.0205616765,
-0.0707534105,
0.1289955974,
0.0435520448,
0.1888152659,
0.2715479732,
0.1026322618,
-0.0776712149,
0.2016267776,
-0.0453945324,
0.0688154101,
0.1314588785,
0.1410586089,
-0.0084523363,
-0.4181091487,
-0.030345194,
-0.0146572376,
-0.0179530121,
-0.0981624201,
-0.1890228242,
-0.0824542567,
-0.0200950932,
-0.0769879669,
0.0045573898,
0.3932568133,
0.3338472843,
0.1133024842,
-0.1583288312,
-0.0528610721,
0.1727981865,
0.245372206,
0.1772185713,
-0.0197258517,
-0.1464381516,
0.2220402956,
0.449041158,
-0.0317479856,
-0.081642732,
-0.0073686964,
-0.2493365109,
0.1510587931,
0.1792887449,
0.2346200794,
0.2579472661,
0.1064179763,
0.3467544019,
0.2461920232,
0.0832155719,
-0.0885302573,
0.1636380851,
0.1414903849,
-0.1787151545,
0.0028751991,
0.1078975052,
0.0805840567,
-0.5174298286,
0.0626737699,
0.2046639472,
0.1858788729,
-0.2715245187,
-0.0460789874,
-0.2429470271,
-0.3757261932,
0.0563295372,
-0.3124832213,
-0.3563371897,
-0.1815540642,
0.0777109638,
0.2927667499,
-0.0853614956,
0.1085148454,
-0.2799906433,
0.2957473993,
-0.075636059,
0.2948907316,
-0.0462909564,
0.2759553492,
-0.2964770198,
0.041366864,
0.4428159893,
-0.0526760966,
0.4233981967,
0.0276158601,
0.330656141,
-0.5431584716,
-0.2605734468,
0.0254255049,
-0.031069288,
0.3978513479,
0.0046902001,
0.1102830172,
-0.0900260061,
-0.0934638008,
0.0048038135,
0.0998567864,
-0.229990378,
-0.1070560515,
0.007708726,
-0.1485514194,
0.0183429737,
0.1444903761,
-0.4139119387,
-0.2356126159,
0.4395177066,
0.0977403373,
0.0289634615,
0.1853935122,
-0.2323203385,
0.2128110081,
0.0150323892,
0.0591324233,
-0.5216309428,
-0.2928702533,
0.1916878372,
-0.4475043714,
-0.5169976354,
0.2788031995,
0.0348365232,
-0.1363986135,
0.0104378257,
-0.4239480793,
-0.3862696886,
-0.1897605211,
0.3711256981,
-0.048709549,
-0.2114957273,
0.3306595385,
-0.0549252592,
0.0891299322,
-0.0956083983,
-0.2149536014,
-0.1063117385,
-0.0613409467,
0.209913522,
-0.1649633497,
0.2329731882,
-0.0529603101,
0.3206436932,
0.3709371686,
0.4832422137,
0.2386377752,
-0.3144769073,
0.6075936556,
0.161812529,
-0.3665892184,
0.3809706271,
-0.0069937794,
0.130216822,
0.2186789364,
0.1141631082,
-0.009470189,
0.0874440968,
-0.1621280611,
-0.3484040201,
-0.3685486317,
-0.2920506895,
-0.2656155229,
0.0157493409,
0.2477709949,
0.3010513484,
-0.2512728572,
-0.4145065546,
-0.0199929625,
0.455779016,
-0.0158691704,
-0.0624788292,
-0.079378657,
0.1257160604,
-0.6410272717,
0.1703529507,
-0.1448221356,
0.2037424445,
-0.402765274,
0.2807483077,
0.4837828577,
0.0856254026,
0.7098247409,
-0.3230350316,
0.2772717178,
-0.0061823037,
0.2120951563,
-0.3085649312,
-0.2038155943,
0.0235208888,
0.4194598198,
0.2800607681,
0.0670099854,
0.0303852577,
-0.1072767675,
0.3437408209,
-0.3501549065,
-0.1391906738,
-0.0664255098,
-0.0566346422,
-0.3622015119,
-0.0806773156,
-0.0906659141,
0.2194327116,
-0.0077697975,
-0.0255693775,
0.0379854254,
-0.005066664,
0.3037498593,
0.1643743217,
-0.0245000757,
0.0443280749,
0.4478304386,
0.1044278666,
0.5808098316,
0.1578916609,
0.091474928,
0.5255402327,
0.1840937287,
-0.6662874222,
0.2514166534,
-0.1038491949,
-0.045094166,
0.3594225049,
-0.0651003569,
0.0119799068,
0.0481662676,
-0.0616807975,
-0.2436586171,
0.2860114276,
0.5716741681,
-0.061788369,
-0.3151578903,
-0.2459969223,
0.1280050129,
0.0434016809,
-0.1983555704,
0.3887441456,
0.4289731085,
-0.1575846821,
-0.0835579038,
-0.2176870406,
0.6329895854,
0.0508376583,
0.0472719297,
0.3777495325,
-0.1927582026,
0.2574256361,
-0.1688656807,
0.1473162174,
-0.0314326994,
-0.171069026,
-0.2238080949,
-0.0573559515,
-0.0616720915,
0.0078315418,
0.1344090253,
-0.1670274884,
0.3068241179,
0.1487149745,
0.0851147771,
0.1953084469,
-0.3288832009,
0.0447147451,
0.2120690197,
0.1972398609,
-0.0838509127,
0.312633723,
-0.1992983967,
-0.2926447392,
0.0661323145,
-0.0395934656,
-0.5676592588,
0.1284302026,
-0.4732509553,
0.2316119075,
0.0031324981,
0.0117117921,
0.2286300808,
0.3182303011,
0.1709002256,
0.0449677072,
-0.4307906032,
0.371009618,
0.0148931257,
0.0530668572,
-0.1942248195,
-0.1119914278,
0.3321224451,
-0.1378246099,
-0.218580544,
-0.0522754453,
-0.0168492403,
-0.46124053,
-0.3563654125,
0.3514353335,
0.0251543447,
-0.1182298884,
0.1580409259,
-0.1027905047,
-0.1413803101,
0.0188669413,
0.1376425028,
0.0508109592,
-0.1071996465,
0.2849656641,
0.1691303849,
-0.2537674606,
0.1101800799,
0.3588524163,
-0.3419628441,
0.0441323221,
0.827452898,
-0.0595674887,
-0.2370842695,
-0.1301930696,
0.0988860428,
0.2571157813,
-0.0159008317,
-0.304218024,
0.171525389,
0.4042164981,
0.1885856241,
-0.0031137227,
0.0328487717,
-0.1652524769,
-0.219332397,
-0.3657388985,
-0.2196593583,
-0.1285393983,
-0.1860649884,
0.1737097651,
0.0916956812,
0.161342904,
0.1807773411,
-0.1320597082,
-0.2733038068,
0.1370422393,
-0.0518404916,
-0.0146406218,
-0.0118222944,
-0.1265663952,
0.0819929615,
-0.0829282254,
0.0091326088,
0.0366070643,
-0.1328435987,
-0.1382958144,
0.008095054,
0.0956645086,
0.1787364185,
-0.516019702,
-0.2178984731,
-0.3340577781,
-0.1816854179,
0.1966415644,
-0.0950143784,
0.3088701069,
-0.0477003902,
-0.1444863379,
-0.3370108306,
0.1118759066,
0.255438745,
0.0230498053,
0.1691015214,
0.2915341556,
-0.0407008156,
0.174381122,
-0.0724343285,
-0.0216008667,
0.0422072336,
0.1406395882,
0.021119874,
0.21982871,
0.1368656009,
-0.2460437566,
0.1962901652,
-0.0048315912,
0.1519469023,
0.2832815051,
-0.257868439,
0.0538119599,
0.2405323088,
0.1418063939,
-0.1517789662,
-0.0753451064,
0.6512244344,
-0.0807744414,
-0.0390315279,
-0.2664397657,
-0.1538857669,
0.0690307021,
-0.2100813091,
0.090183571,
-0.1726893187,
0.1421612799,
0.2503455281,
0.154388383,
-0.3219222128,
0.038925007,
0.3330011964,
0.3310177624,
-0.0215827059,
0.7008829117,
-0.1565973759,
0.0317215621,
-0.5634263754,
-0.243328616,
0.3528538942,
-0.5962445736,
0.0340298079,
-0.2433352917,
-0.1659492552,
0.0085145533,
-0.0229091141,
-0.0045504938,
-0.4172440171,
-0.0596821308,
-0.5880509615,
0.0931337848,
-0.2029329687,
0.1224362776,
-0.2750710845,
-0.0877195075,
0.2710947096,
0.0565548725,
0.007793624,
-0.2651077807,
-0.362113446,
-0.0676624551,
-0.3478283584,
-0.1707999557,
0.1603546292,
0.0196179021,
0.1104707196,
-0.1754191369,
0.0061976174,
-0.2561907172,
0.1680229753,
0.4094493389,
0.2167676538,
0.1704588383,
0.1844934374,
0.0958347395,
0.0684001148,
-0.0803200975,
-0.1481761634,
-0.3253757656,
0.3094995022,
0.0974649265,
0.0962146372,
0.354645133,
0.0986918136,
-0.0829466954,
0.1306232363,
0.004327103,
0.0645247772,
-0.4391704798,
-0.1323816478,
-0.4530438483,
-0.1279887259,
-0.3608496487,
-0.2802509367,
-0.0600105263,
-0.0500712134,
0.4735827446,
-0.0457215719,
0.2709919512,
-0.5534995198,
0.0386741236,
0.1301038265,
0.3456552327,
0.6624311209,
0.0216403678,
0.0269467179,
-0.228539601,
-0.7189890742,
0.1229365841,
-0.0085559972,
0.2744235098,
0.0258468967,
0.0079035368,
-0.1756520718,
-0.0961344168,
0.4277313948,
0.1186854616,
0.0658144951,
0.2415438741,
-0.0210928489,
-0.0980916992,
0.4459584653,
0.2097673714,
-0.0971164107,
-0.126354441,
0.304928571,
-0.0187537465,
-0.0301004425,
0.0369595103,
-0.0648167878,
-0.3844112456,
-0.049581971,
0.3069385588,
0.2616379261,
0.1960008889,
0.094143942,
0.2917970419,
-0.5422805548,
-0.0787532181,
-0.1253776997,
0.2324539125,
-0.2523838282,
0.1269134283,
-0.0767875388,
-0.0034462221,
-0.0406546667,
0.1200646386,
-0.1620328277,
0.2295484841,
-0.0621818937,
0.0440190881,
-0.3536243141,
0.290476203,
0.1362658292,
0.0269417875,
0.0158691127,
0.1969284564,
-0.2888216674,
-0.1986180693,
0.4443422556,
-0.6583417058,
-0.0587807447,
-0.1064302325,
0.1918131858,
0.4196823835,
-0.2924856544,
-0.0523412265,
0.0497057214,
0.3444753289,
-0.1625965685,
0.1496768743,
0.0242517292,
-0.2950314581,
0.1925426871,
-0.0555051193,
0.7004581094,
0.0162089057,
-0.1267356128,
0.4333296716,
-0.037007954
] |
https://github.com/huggingface/datasets/issues/4138 | Incorrect Russian filenames encoding after extraction by datasets.DownloadManager.download_and_extract() | To reproduce:
```python
>>> import datasets
>>> datasets.get_dataset_split_names('MalakhovIlya/RuREBus', config_name='raw_txt')
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 280, in get_dataset_config_info
for split_generator in builder._split_generators(
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/MalakhovIlya--RuREBus/21046f5f1a0cf91187d68c30918d78d934ec7113ec435e146776d4f28f12c4ed/RuREBus.py", line 101, in _split_generators
decode_file_names(folder)
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/MalakhovIlya--RuREBus/21046f5f1a0cf91187d68c30918d78d934ec7113ec435e146776d4f28f12c4ed/RuREBus.py", line 26, in decode_file_names
for root, dirs, files in os.walk(folder, topdown=False):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/streaming.py", line 66, in wrapper
return function(*args, use_auth_token=use_auth_token, **kwargs)
TypeError: xwalk() got an unexpected keyword argument 'topdown'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 323, in get_dataset_split_names
info = get_dataset_config_info(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 285, in get_dataset_config_info
raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.
```
It's not related to the dataset viewer. Maybe @albertvillanova or @lhoestq could help more on this issue. | ## Dataset viewer issue for 'MalakhovIlya/RuREBus'
**Link:** https://huggingface.co/datasets/MalakhovIlya/RuREBus
**Description**
Using os.walk(topdown=False) in DatasetBuilder causes following error:
Status code: 400
Exception: TypeError
Message: xwalk() got an unexpected keyword argument 'topdown'
Couldn't find where "xwalk" come from. How can I fix this?
Am I the one who added this dataset ? Yes
| 143 | Incorrect Russian filenames encoding after extraction by datasets.DownloadManager.download_and_extract()
## Dataset viewer issue for 'MalakhovIlya/RuREBus'
**Link:** https://huggingface.co/datasets/MalakhovIlya/RuREBus
**Description**
Using os.walk(topdown=False) in DatasetBuilder causes following error:
Status code: 400
Exception: TypeError
Message: xwalk() got an unexpected keyword argument 'topdown'
Couldn't find where "xwalk" come from. How can I fix this?
Am I the one who added this dataset ? Yes
To reproduce:
```python
>>> import datasets
>>> datasets.get_dataset_split_names('MalakhovIlya/RuREBus', config_name='raw_txt')
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 280, in get_dataset_config_info
for split_generator in builder._split_generators(
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/MalakhovIlya--RuREBus/21046f5f1a0cf91187d68c30918d78d934ec7113ec435e146776d4f28f12c4ed/RuREBus.py", line 101, in _split_generators
decode_file_names(folder)
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/MalakhovIlya--RuREBus/21046f5f1a0cf91187d68c30918d78d934ec7113ec435e146776d4f28f12c4ed/RuREBus.py", line 26, in decode_file_names
for root, dirs, files in os.walk(folder, topdown=False):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/streaming.py", line 66, in wrapper
return function(*args, use_auth_token=use_auth_token, **kwargs)
TypeError: xwalk() got an unexpected keyword argument 'topdown'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 323, in get_dataset_split_names
info = get_dataset_config_info(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 285, in get_dataset_config_info
raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.
```
It's not related to the dataset viewer. Maybe @albertvillanova or @lhoestq could help more on this issue. | [
-0.0074534067,
-0.0631545484,
-0.0180229768,
0.3883336186,
0.4040850997,
-0.0412305705,
-0.0985663086,
0.1355754584,
-0.1796884537,
0.2541795373,
-0.1795740128,
0.4243224263,
-0.0196610987,
0.1638035178,
0.0396400429,
-0.1715617478,
0.1249552965,
-0.0598616861,
-0.1608453095,
-0.2564063966,
-0.404909879,
0.3533498049,
-0.0531652495,
-0.104911074,
0.002232366,
0.0352518335,
0.0396306254,
-0.0197516419,
-0.3976679742,
-0.361289978,
-0.184127301,
0.0465484485,
0.1291850507,
0.5569767356,
-0.0001251501,
0.040374998,
0.1434874684,
-0.0985901654,
-0.1410575807,
-0.2179518938,
-0.2946045101,
-0.209340021,
-0.1841369271,
-0.2900276184,
0.1338646561,
-0.4186547399,
0.146185264,
-0.1289464086,
0.2242365032,
0.469181627,
0.0823054165,
0.3574599624,
0.0145020103,
-0.1101433933,
0.0375581086,
0.3265696168,
-0.089615427,
0.3910184205,
-0.0120674074,
0.282989502,
-0.2414866686,
0.1709889174,
0.0485459566,
-0.0899584889,
-0.0618930943,
0.1184492633,
-0.0120929116,
-0.3712860644,
0.1973995417,
0.3046824932,
0.2214069366,
0.010036597,
-0.2995868325,
-0.2932705283,
0.0482583009,
-0.1232993007,
0.4235672057,
0.2165475637,
-0.3297260702,
0.1650481075,
-0.2419479191,
-0.2027569115,
-0.1160315573,
0.2959263623,
-0.133464694,
0.2823498547,
-0.2346292287,
0.1240147129,
0.2553390861,
-0.0684173852,
0.3923946321,
-0.1952388287,
0.1985251307,
0.0149870031,
-0.2569737732,
0.1527899802,
-0.0204500053,
0.5037221909,
0.0997556672,
-0.0551892705,
-0.2589921653,
0.0139168622,
0.1010346487,
-0.0494777411,
-0.0883179232,
0.1770962179,
0.0712145641,
0.2031591386,
0.0479035154,
0.2258265465,
0.1487365663,
0.1105407625,
-0.1170046479,
-0.4150367379,
-0.4236993194,
-0.0340112261,
0.2498540282,
-0.0290409643,
-0.2868534327,
0.071092695,
-0.2714782655,
-0.316473484,
0.0496481359,
0.2669502497,
0.0916642547,
0.1919763535,
-0.1611692756,
0.4022574127,
-0.2599781454,
-0.5288561583,
-0.0652820617,
0.080185093,
-0.2914686799,
-0.1190250963,
-0.0610376075,
-0.4359428585,
0.0739527866,
0.132076174,
0.1562284529,
-0.0821894556,
-0.0672828108,
-0.1893058419,
0.0690479651,
-0.0551565103,
0.1057789251,
0.159274742,
0.0058845417,
-0.3905501366,
0.0160591938,
0.1113864407,
-0.491994828,
-0.0970041975,
-0.041325327,
0.0693701208,
-0.4209204018,
-0.1943182051,
-0.1768717915,
0.1516899318,
0.2178408802,
0.3599504828,
-0.0644024014,
0.0471824445,
-0.0703448281,
0.0033824393,
0.1528112143,
0.3547287881,
-0.4599859118,
-0.1449281722,
-0.0938523933,
-0.1133395806,
0.3691528738,
0.1769692451,
-0.0167930052,
0.4802086651,
-0.2169883251,
0.2096022815,
0.2731283903,
-0.0004835921,
-0.4017819166,
0.1310846657,
-0.2095708102,
0.1764633954,
0.407987684,
-0.2539151907,
0.3509210646,
-0.0859942809,
-0.1737811118,
0.1684158891,
0.0569045879,
-0.0587755404,
-0.1898441464,
-0.1779946238,
0.2707118392,
0.2243759632,
0.1758538336,
-0.1087467521,
0.2499293834,
-0.173364386,
0.4008798599,
-0.169921726,
0.1209917739,
0.3489754796,
-0.2783798277,
0.116237618,
0.2947796285,
0.154321894,
0.0453236401,
0.1053171903,
0.0507729389,
0.2458297014,
-0.6622387171,
-0.1763077527,
-0.4643504918,
-0.0260399282,
-0.4604900479,
-0.1348727643,
-0.015605757,
0.4269023836,
-0.2657299936,
0.2680262923,
0.1410670429,
-0.085966289,
-0.1166586876,
0.2203981578,
-0.4555380046,
0.2743125856,
-0.1170643345,
0.0649068579,
-0.1947359145,
0.094706744,
0.2291502506,
-0.2023901939,
-0.2634486556,
0.2752597332,
0.1033831984,
0.3293001056,
0.2152485251,
-0.183658272,
0.0749051198,
-0.2586365938,
0.1465503722,
0.2693484426,
-0.0138391647,
0.187508747,
0.0159573741,
0.1686754674,
-0.0512565337,
0.1450666189,
-0.1438633949,
0.1229138374,
0.4050034583,
-0.0598784499,
0.066228874,
-0.5740133524,
0.5132715702,
0.2528306544,
0.1933057159,
-0.0158690922,
-0.2233845443,
0.0557344332,
1.0187366009,
-0.1162822023,
-0.0642154291,
0.1275378913,
-0.0248355009,
0.0434236154,
0.1164292842,
0.8243841529,
0.206895873,
0.0522790141,
0.1872998923,
0.1884165406,
0.2398069054,
-0.0780586079,
0.257342577,
0.1630880833,
-0.0218761563,
0.2457298934,
-0.2404807955,
-0.0593786612,
-0.4424160719,
0.0595552959,
0.3663204908,
0.2632263005,
-0.2881560922,
0.0265902989,
-0.505888164,
-0.434584558,
-0.4352143407,
-0.0367130078,
-0.3243638277,
-0.3367523551,
-0.0606561489,
-0.2423204035,
-0.1796759516,
0.3539560735,
0.1200676858,
-0.1540523469,
-0.2608775795,
0.0991589949,
0.1187553555,
-0.1008810624,
-0.0026076015,
-0.0582857728,
0.281534791,
-0.1752212942,
0.3195199668,
-0.7208516002,
-0.0007147139,
-0.3476976156,
-0.2628041804,
0.4345027506,
-0.1652146429,
0.0805782676,
0.1803213954,
-0.0184991788,
0.2531403899,
-0.1677851826,
0.1720028967,
0.1826484948,
-0.1280778348,
0.2055977285,
-0.0035440638,
-0.2844378948,
-0.2585596442,
-0.1866945922,
-0.2572332621,
-0.1792753339,
-0.0105241183,
-0.020080734,
0.0882820711,
0.028554149,
-0.1807026565,
-0.0068891379,
-0.426715672,
0.0372379497,
-0.3295951188,
-0.3879039884,
0.4804735184,
-0.2340723127,
-0.2815577984,
0.1196276397,
-0.0273061078,
0.1255588531,
0.1445179582,
-0.235825181,
-0.1991268843,
-0.1190153733,
0.1580855548,
-0.0763814896,
0.126298964,
0.1306440979,
0.0471041575,
0.2071211487,
-0.2585466206,
0.0545677803,
0.3058600128,
-0.2103085816,
0.2952425182,
0.0883919373,
0.417814523,
0.207538873,
0.2708227634,
0.2573792934,
0.3503316045,
0.3154914081,
-0.1295168698,
0.3318970501,
0.1708334982,
-0.2714473009,
0.125613153,
0.0658904538,
-0.0459829718,
0.310503751,
0.0160722584,
0.2468003333,
-0.0051031015,
-0.053426303,
-0.3880048394,
-0.3993190527,
-0.0991786942,
0.1596873403,
0.1645861715,
0.0338483974,
0.5119445324,
-0.1600006819,
-0.1101243719,
0.0852029696,
0.2048635185,
-0.0501563847,
-0.0238965526,
-0.5339543223,
-0.0463875607,
-0.4996953905,
0.3678000271,
0.2482029349,
0.1063044369,
0.1136516258,
0.128351137,
0.2530938387,
0.0118496567,
0.7520025373,
-0.1236655861,
0.1539966315,
-0.0644841194,
-0.0063882363,
-0.2150811106,
0.0693900734,
-0.2980493903,
0.1033630446,
-0.1865849495,
0.0909626335,
-0.3085825145,
-0.3197610378,
0.1690008789,
0.2515769005,
-0.2000541091,
-0.1003726497,
0.0936386585,
-0.3426758945,
-0.1196785048,
-0.4359632134,
-0.0019249386,
0.1853590161,
0.0007877512,
0.2487989664,
0.2219860852,
0.1567502916,
0.1183862612,
0.2788853347,
0.5216239095,
0.1155452654,
0.0892872438,
0.171102047,
0.1507119834,
0.3229957223,
0.7300702929,
-0.3152476549,
-0.7872380614,
-0.2237093747,
-0.4660919309,
0.157505542,
0.2601539195,
-0.3339552879,
0.3007775843,
-0.0599757917,
0.2869304717,
-0.2943100035,
0.2421544194,
0.6856903434,
0.224227801,
-0.2552795708,
-0.4353034794,
0.1447713673,
-0.0008792091,
-0.0379889645,
0.1030948311,
0.5032874942,
-0.3728185594,
-0.2233670354,
-0.0738234445,
0.8633207083,
0.2391742319,
0.0723267868,
0.3554990292,
-0.0906948298,
0.1758351773,
0.1918859333,
-0.1204924062,
-0.117954649,
-0.1960786283,
-0.0982387066,
0.1849633008,
0.2905366421,
-0.0382139422,
-0.1623375863,
0.1424142122,
-0.0216920357,
0.2539754212,
0.0484007522,
0.2399159372,
-0.151110366,
-0.2599098086,
-0.1044936404,
-0.0268210713,
-0.272675693,
-0.028551314,
0.0367849395,
-0.2315974385,
0.1269262433,
-0.040109273,
-0.1036528423,
0.0741002932,
-0.2611690164,
-0.0562469214,
-0.1883189231,
-0.4686464369,
0.2820292115,
0.4082030058,
0.2965135276,
0.0438700952,
-0.0773831233,
0.1780391634,
-0.0872524083,
0.1124340147,
0.2436544448,
0.020438768,
0.0769626796,
-0.0901190192,
-0.1591291279,
-0.2163987011,
0.0733244792,
0.0529450029,
-0.0442504212,
-0.2287818193,
-0.0131631223,
-0.2525062561,
-0.0303950217,
-0.1708897799,
0.0256658457,
-0.0723833814,
-0.0084862048,
0.0140931802,
-0.0458579622,
0.0019211165,
-0.4096647203,
-0.2647765875,
-0.0837211385,
0.2041654438,
-0.1947973967,
-0.04329459,
0.6158021092,
0.0358832181,
-0.3418018222,
-0.0070807491,
0.2263627648,
-0.1817558706,
-0.7276684642,
0.0319857523,
-0.1452411711,
-0.0577759035,
-0.163792178,
-0.0730061531,
0.2197257876,
-0.1381221712,
-0.0684662387,
-0.2888410389,
-0.09388078,
0.2001038343,
0.1546159536,
-0.380217135,
-0.0598937124,
0.0057691978,
-0.0497512147,
-0.3742440343,
-0.1667336375,
0.135948211,
0.1986137331,
0.1696397811,
0.2761397064,
-0.0271801054,
0.3970224559,
-0.3500564992,
0.0392587073,
-0.0144121032,
-0.1501186341,
0.0178623423,
-0.3172534108,
0.1622543186,
-0.1543514282,
-0.2865035534,
0.4409191906,
-0.2483144253,
-0.0750935897,
-0.1849648207,
0.0622497834,
0.4091406167,
0.0668840408,
0.3536603451,
0.2403192669,
0.1218697876,
-0.1202015653,
-0.111160472,
0.0002741505,
0.4367092252,
-0.0194689427,
0.1923567504,
-0.1478188187,
0.0333156809,
-0.2416266352,
0.1888087988,
0.0187591985,
0.1795357019,
0.3451526463,
-0.1895103753,
0.4417081773,
0.2397913337,
0.499666661,
0.4692057669,
-0.2850435674,
-0.1294959038,
0.3720836937,
-0.0039020928,
-0.2665170729,
-0.2208834141,
0.2694251239,
-0.0140448138,
0.0346728526,
0.2385266423,
-0.1411330551,
0.1714008451,
0.0197244696,
-0.0653993338,
0.2839202881,
0.2836148143,
0.3623448014,
0.9362617731,
-0.0610352792,
0.3373612463,
0.2539074123,
0.3162398636,
-0.0880160779,
0.430293709,
-0.3869464397,
0.2911303341,
0.0780658051,
0.2811454833,
0.2979881167,
-0.2632981539,
0.1361485571,
-0.0317477882,
-0.2381961346,
0.2846834958,
0.1633055657,
0.3526895344,
0.0075556822,
-0.1311333776,
-0.2644043267,
0.1875981539,
-0.0555159375,
-0.0044775796,
-0.2925804257,
-0.1553373784,
-0.3311135173,
0.1625896543,
-0.227412194,
-0.2739734948,
-0.0578156747,
0.1199897528,
-0.1783992648,
-0.1796885729,
-0.0575374365,
-0.271006465,
0.2575365305,
-0.3645404279,
0.3446364403,
0.3755716085,
0.1043511406,
0.3449772894,
0.2004525065,
0.3356414437,
0.2073159069,
0.0033256081,
-0.1745301336,
-0.0450037643,
-0.0349611677,
0.0687716529,
0.0673695356,
0.041369766,
0.3234734535,
0.3550897539,
-0.0317020528,
-0.1748219877,
0.0811915472,
0.4059727788,
0.2462077439,
0.0184131153,
0.1579413861,
-0.1394608617,
0.1094113588,
-0.3611937165,
-0.2577831447,
-0.4282892644,
-0.0544136241,
0.3476298749,
0.1107413769,
0.0226546116,
-0.130251199,
0.01166391,
0.0238113701,
0.3285423517,
0.3177062869,
-0.1402036101,
-0.1184203178,
-0.2958976924,
-0.6666388512,
0.1037051529,
0.0870655403,
-0.4139419794,
0.072415024,
-0.3224723041,
0.1074460745,
0.2286649197,
0.3796389401,
0.4162157774,
0.0629882663,
0.2471908182,
-0.1852998883,
-0.3175891936,
0.286691606,
-0.0334349312,
0.0043519135,
-0.2673637867,
0.1999457031,
-0.1728659123,
-0.1152798682,
0.0203625131,
0.1943240762,
-0.1396447867,
-0.3430265188,
0.1183733791,
0.1159191951,
0.2873687446,
-0.2317628711,
-0.127665475,
-0.0677774474,
-0.2031845152,
-0.4353496432,
0.6377071738,
0.0312791802,
0.3199295402,
-0.1528606862,
-0.0718684644,
-0.1529939324,
0.0631459206,
-0.1780534983,
0.0638059452,
-0.3984052241,
0.4147607684,
0.0339059755,
-0.07231047,
0.3636868596,
0.3629525304,
0.0041175694,
0.170465067,
-0.2203405946,
-0.2566054165,
0.4166031778,
-0.3423580527,
-0.2188743055,
0.0891363546,
-0.1048866063,
-0.0216215178,
-0.2631653845,
-0.2695076764,
-0.0126085598,
0.2525049448,
-0.167640835,
-0.0657788664,
0.2689656019,
-0.1560015827,
-0.0444835648,
0.0966101363,
0.2640744448,
0.3390104771,
-0.400624156,
0.3040049672,
-0.1505188793
] |
https://github.com/huggingface/datasets/issues/4138 | Incorrect Russian filenames encoding after extraction by datasets.DownloadManager.download_and_extract() | Hi! This issue stems from the fact that `xwalk`, which is a streamable version of `os.walk`, doesn't support the `topdown` param due to `fsspec`'s `walk` also not supporting it, so fixing this issue could be tricky.
@MalakhovIlyaPavlovich You can avoid the error by tweaking your data processing and not using this param. (and `Path.rename`, which also cannot be streamed) | ## Dataset viewer issue for 'MalakhovIlya/RuREBus'
**Link:** https://huggingface.co/datasets/MalakhovIlya/RuREBus
**Description**
Using os.walk(topdown=False) in DatasetBuilder causes following error:
Status code: 400
Exception: TypeError
Message: xwalk() got an unexpected keyword argument 'topdown'
Couldn't find where "xwalk" come from. How can I fix this?
Am I the one who added this dataset ? Yes
| 59 | Incorrect Russian filenames encoding after extraction by datasets.DownloadManager.download_and_extract()
## Dataset viewer issue for 'MalakhovIlya/RuREBus'
**Link:** https://huggingface.co/datasets/MalakhovIlya/RuREBus
**Description**
Using os.walk(topdown=False) in DatasetBuilder causes following error:
Status code: 400
Exception: TypeError
Message: xwalk() got an unexpected keyword argument 'topdown'
Couldn't find where "xwalk" come from. How can I fix this?
Am I the one who added this dataset ? Yes
Hi! This issue stems from the fact that `xwalk`, which is a streamable version of `os.walk`, doesn't support the `topdown` param due to `fsspec`'s `walk` also not supporting it, so fixing this issue could be tricky.
@MalakhovIlyaPavlovich You can avoid the error by tweaking your data processing and not using this param. (and `Path.rename`, which also cannot be streamed) | [
-0.059939228,
0.0004643627,
0.0007156899,
0.2929068506,
0.4725809693,
-0.0914142802,
-0.2173765898,
0.0923400596,
-0.0890551955,
0.357228905,
-0.0973184556,
0.3023453951,
0.031104533,
0.2337282598,
-0.040130768,
-0.2049592584,
0.1728460789,
-0.1248709559,
-0.0916411132,
-0.2312846929,
-0.2878240049,
0.2802833915,
-0.0507000014,
-0.1036334038,
0.0056562019,
0.0631456673,
0.0363111421,
0.0152465841,
-0.5956211686,
-0.3673012257,
-0.1829650849,
0.0348310061,
0.3052579761,
0.6039688587,
-0.0001213755,
-0.1167426184,
0.128907755,
-0.1490894705,
-0.0623999797,
-0.1924664527,
-0.1916717887,
-0.1377780288,
-0.2841616571,
-0.2491628826,
0.1728720963,
-0.4411439598,
0.2359202951,
-0.0199492015,
0.2115024775,
0.6566945314,
0.1173668355,
0.1060891971,
-0.0325842015,
-0.1062764674,
0.126503706,
0.224346444,
-0.0691810101,
0.2950755358,
-0.0036416161,
0.2417855859,
-0.1895977557,
0.098878406,
-0.0356541388,
-0.1042977497,
-0.1013000607,
0.0766652822,
0.0183771607,
-0.3916144669,
0.1177789494,
0.3187630773,
0.3069967628,
0.1328064352,
-0.2380189598,
-0.1313970983,
0.133706674,
-0.1664319932,
0.4247944057,
0.1578179151,
-0.2990098298,
0.2173541784,
-0.2211033106,
-0.1694541425,
-0.1103226766,
0.3430177867,
-0.0358838923,
0.1507690996,
-0.2010377496,
0.1101654246,
0.3087070286,
-0.085167326,
0.3477559984,
-0.1861892045,
0.1891094595,
-0.0007315734,
-0.3044084609,
0.1381782591,
0.0202519819,
0.5254167318,
0.082007423,
-0.0902393088,
-0.1916523129,
0.0099013289,
0.1517146081,
0.0594927147,
-0.2303531915,
0.2396216691,
-0.0283075478,
0.0940994248,
0.1438011974,
0.1452071816,
0.1455516666,
0.0580155179,
-0.2106470168,
-0.4265532792,
-0.5453659892,
-0.0369658209,
0.1882164329,
-0.1745077819,
-0.2077752799,
0.1284050494,
-0.1685968041,
-0.2813193202,
-0.0222079251,
0.2555300593,
0.1385472119,
0.2341043949,
-0.128381893,
0.3651787937,
-0.1967404932,
-0.5338382721,
-0.0380760133,
0.0393817686,
-0.3654859066,
-0.1377878338,
-0.0052116988,
-0.4565219879,
0.0642571077,
0.0585885644,
0.1591563225,
0.0556256436,
-0.0915836468,
-0.2055366635,
0.0181459244,
-0.0073812809,
0.0036131449,
0.12522991,
0.0519879982,
-0.4262818098,
0.0494881198,
0.1706937999,
-0.5107906461,
-0.0818997249,
-0.017823901,
0.0887300894,
-0.3779492974,
-0.2798988819,
-0.3181055784,
0.2219212204,
0.1416940242,
0.1509886235,
-0.0485174619,
0.0448889732,
-0.1075911075,
0.0449151471,
0.1274051964,
0.2595304847,
-0.3468023241,
-0.079498969,
-0.1054802388,
-0.0766701102,
0.5139892697,
0.2354551256,
0.121349819,
0.3105490804,
-0.2164057046,
0.3358022571,
0.3007153273,
0.0205608234,
-0.3883970976,
0.1910782754,
-0.2411039621,
0.0772770941,
0.3650456071,
-0.2843016386,
0.4829403162,
-0.035849236,
-0.1560396999,
0.2545344234,
0.0046301018,
-0.0226885565,
-0.2236347944,
-0.1685235798,
0.3641960025,
0.1993859857,
0.1277902275,
0.0054900208,
0.3348487318,
-0.3071165681,
0.3672363758,
-0.1365086138,
0.1030383408,
0.3006715178,
-0.1451093107,
0.0295747928,
0.2513175607,
0.1409285963,
0.2360236496,
0.1419580579,
0.1440568715,
0.2139593214,
-0.4653061926,
-0.1104104072,
-0.3585267961,
-0.1740522236,
-0.3495259285,
-0.0902606919,
-0.0231098719,
0.4270879924,
-0.3405988812,
0.2314339429,
0.1281865686,
-0.0665097013,
-0.2527071536,
0.0614332296,
-0.3480145037,
0.3582432568,
-0.1745064706,
0.0466573648,
-0.1712277234,
-0.0298987608,
0.2736874223,
-0.1368183196,
-0.3252095878,
0.2541187108,
0.1355697662,
0.2174120843,
0.345972091,
-0.0577621236,
-0.0057082833,
-0.2988908887,
0.0323843323,
0.3465186059,
-0.0459231436,
0.2203247249,
-0.0769377798,
0.0112544755,
-0.0712679848,
0.1566632241,
-0.1656984091,
0.1430946589,
0.5874062777,
-0.0212721452,
0.0199374165,
-0.3726329207,
0.5973625779,
0.3497019112,
0.1132133529,
-0.0928682536,
-0.2530008852,
0.0461183973,
0.9561504126,
-0.0452710241,
-0.1468864083,
0.2767127156,
0.0162575636,
-0.0765331537,
0.2666480541,
0.7662418485,
0.2360617369,
0.1647931039,
0.1500757933,
0.0772497728,
0.2663727105,
-0.0980486646,
0.2284412384,
0.0029133186,
-0.0058327308,
0.3351014555,
-0.1243721992,
-0.0460127182,
-0.6082174182,
0.01569313,
0.3714880347,
0.2983056307,
-0.2663040757,
-0.0518127382,
-0.5283334851,
-0.4131314456,
-0.3592522144,
0.012745806,
-0.3521212637,
-0.2772070467,
0.0643406659,
-0.0309008546,
-0.2005708516,
0.365244925,
0.204564482,
0.0209314674,
-0.3021681309,
0.1610530764,
0.0185717139,
-0.0836660266,
-0.0704880804,
-0.0283155702,
0.3023319542,
-0.137808308,
0.268409878,
-0.6481301785,
0.0350477323,
-0.4258236885,
-0.2829464972,
0.3795334995,
-0.1796858013,
0.0620413274,
0.0270984787,
0.106448628,
0.2873880267,
-0.0877717435,
0.0637017787,
0.0883525461,
-0.1557671726,
0.2887521982,
0.0221566409,
-0.3286956251,
-0.2825621068,
-0.1941477507,
-0.3095425367,
-0.1920373291,
0.0484296381,
-0.0980329216,
0.0350339077,
-0.0359117463,
-0.1015739068,
-0.0364445485,
-0.427010864,
0.0262709185,
-0.387686789,
-0.430971086,
0.4944050908,
-0.2153900415,
-0.3840170205,
0.2532367408,
0.066827558,
-0.0412515253,
0.1919604838,
-0.2431667298,
-0.1660063714,
-0.0344782993,
0.0820003822,
-0.0642203987,
0.0148126613,
0.2772648633,
-0.0454556122,
0.1461464018,
-0.2675051689,
0.0225381851,
0.2105927318,
0.0529750809,
0.4725874662,
-0.0369322971,
0.3870816529,
0.1898406744,
0.2724837363,
0.1048538536,
0.3931892216,
0.4235422015,
-0.1070903763,
0.2925903797,
0.1048639417,
-0.136127755,
0.3163045049,
-0.0255726371,
-0.2019503713,
0.4505538046,
0.0258364659,
0.1853842139,
0.0110489288,
0.0714953095,
-0.2869701684,
-0.2290484458,
-0.1794338524,
0.2874705493,
0.1225359067,
0.0581270829,
0.4384046793,
-0.0437865816,
-0.1491702348,
0.0542164445,
0.2550430596,
-0.065135248,
-0.0009892954,
-0.5045739412,
-0.0058389907,
-0.5904977322,
0.3798986375,
0.170914501,
0.0999055728,
-0.0281880517,
0.1848989576,
0.2232450098,
0.0217654109,
0.7502169013,
-0.1809228957,
0.1286360621,
-0.133789897,
0.1602184772,
-0.164508462,
-0.0248491019,
-0.244148463,
0.0219089128,
-0.3128919899,
-0.0880107358,
-0.2852088511,
-0.2085841596,
0.0311350636,
0.1765250862,
-0.1356047392,
-0.134320721,
0.0363096297,
-0.2639184296,
-0.200664416,
-0.3505542576,
0.0150932437,
0.0854787827,
-0.1302829385,
0.2857771516,
0.2434326857,
0.3432404101,
0.1223980263,
0.1578166932,
0.5039721727,
0.2754758,
-0.0174204465,
0.1702924073,
0.2225800604,
0.274981916,
0.7140532732,
-0.3364832997,
-0.7883480787,
-0.1624106914,
-0.4690124094,
0.0785931274,
0.3004956543,
-0.2254830599,
0.2912297249,
-0.0185152795,
0.2862788439,
-0.3011509776,
0.305519402,
0.6851493716,
0.1836754233,
-0.1949514598,
-0.3944382071,
0.1353748292,
-0.0076383487,
-0.0269693192,
0.1859565377,
0.3971888125,
-0.3146186769,
-0.1103650257,
-0.1367503554,
0.9808927178,
0.2201437354,
0.1427053809,
0.2471568584,
-0.1245824248,
-0.0675743744,
0.1077812165,
-0.1488242745,
-0.0253471807,
-0.3386213481,
-0.1285312027,
0.2843453288,
0.2904389501,
-0.0207217596,
-0.1938619912,
0.219540298,
0.0694454312,
0.2076243311,
0.0890901908,
0.195600003,
-0.0071398919,
-0.3023872674,
-0.1036229879,
0.0685190111,
-0.2875315249,
-0.0845130309,
0.0446732156,
-0.1531122178,
0.2040049434,
-0.0540690571,
-0.0849007145,
0.0752284005,
-0.2278863788,
-0.1498848647,
-0.3054923415,
-0.3530421853,
0.1421012282,
0.4238584936,
0.1849913895,
0.0043616458,
-0.2109075636,
0.1875115037,
0.004836495,
0.1023101658,
0.134834379,
-0.0757042989,
-0.0187238399,
-0.1598059982,
-0.1291501671,
-0.245537281,
0.0508351326,
0.0189420264,
0.1024648547,
-0.3088475764,
0.128636539,
-0.0781448707,
-0.1355640143,
-0.1188352928,
-0.0772261545,
-0.1088894382,
0.0350431167,
0.0037499198,
-0.0899028555,
-0.008854785,
-0.2936949432,
-0.201099813,
-0.0939349532,
0.3099527359,
-0.3156084716,
-0.0051318668,
0.5502907038,
0.0313740522,
-0.3494444788,
-0.0138312401,
0.1340197027,
-0.2444955409,
-0.5720969439,
-0.0644273087,
-0.1157054752,
-0.1369186193,
-0.2080893219,
0.0580416434,
0.1740108728,
-0.2682193518,
-0.0775868669,
-0.2690689862,
-0.2043207884,
0.2310902923,
0.1234549657,
-0.3778543472,
-0.0818873793,
-0.1194855347,
-0.0627372116,
-0.4221182764,
-0.221543029,
0.1122293025,
0.2183667123,
0.1800393164,
0.2708877027,
0.0165852942,
0.3594249487,
-0.486133039,
0.0362669602,
0.0704068094,
-0.1407551914,
-0.029302232,
-0.2327090204,
0.1674936116,
0.0624882467,
-0.2091770768,
0.4300309122,
-0.3383211195,
-0.2033899426,
-0.2010323107,
-0.1176341176,
0.5537803173,
0.0365627743,
0.2451900244,
0.2696107626,
0.0341982432,
-0.0638835132,
-0.0969183892,
0.0815864503,
0.3419828117,
-0.118770659,
0.1162429899,
-0.1516598761,
0.0139256762,
-0.1792518944,
0.1329604834,
-0.0038229332,
0.2672221065,
0.3168160915,
-0.2184514552,
0.5164721012,
0.1976784766,
0.4690102041,
0.4342860878,
-0.2899673283,
-0.1710212231,
0.5425940156,
0.0585848354,
-0.3349928558,
-0.2097750753,
0.2001620531,
-0.0252925828,
-0.0421253815,
0.0408476628,
-0.1817985475,
0.1287737638,
-0.0041461317,
0.0068350015,
0.1099388972,
0.2801910937,
0.3432062268,
0.6304680109,
-0.0695751607,
0.3620636165,
0.1839768142,
0.2253447622,
-0.1741933078,
0.3262522221,
-0.4069945812,
0.2104804069,
0.1126887649,
0.2605622709,
0.1900374442,
-0.3126920462,
0.235722959,
-0.1790039539,
-0.1804182678,
0.3751756251,
0.3193388581,
0.2897899747,
0.0777186006,
-0.2134069204,
-0.3037088215,
0.1215609685,
0.0217910446,
0.0474239849,
-0.2875518203,
-0.0751969889,
-0.2868186831,
0.1929524094,
-0.2292628437,
-0.1796213239,
0.0092207333,
0.1615554988,
-0.201918602,
-0.2833050787,
-0.1400116533,
-0.2083919495,
0.2803213,
-0.2840455472,
0.3779791594,
0.2955919802,
0.0536684878,
0.5003989339,
0.1313855648,
0.3050935566,
0.1818415672,
-0.0170723386,
-0.096281141,
-0.1028971672,
-0.0410926603,
0.1493911594,
0.1450615376,
0.1188758016,
0.2967146337,
0.3281711936,
0.0100876447,
-0.2108980417,
0.2487490326,
0.2932529449,
0.207038343,
0.1326543093,
0.1323143095,
0.0599135049,
0.2510518432,
-0.4331419766,
-0.2668255866,
-0.4474592805,
-0.0187313687,
0.330175221,
0.0494957976,
0.0752598494,
-0.0868163183,
0.0293350723,
0.037107598,
0.3455934227,
0.3596114516,
-0.1204049438,
-0.0814495087,
-0.2353998721,
-0.7208127975,
0.1330099702,
0.0849952772,
-0.259064436,
0.0940705687,
-0.3164865673,
0.2262418866,
0.2213422805,
0.3745930493,
0.3928896785,
0.0947525129,
0.329126358,
-0.2479602695,
-0.2684482634,
0.2420859486,
0.1760492474,
0.0218907278,
-0.2965041101,
0.2346416861,
-0.1018535122,
-0.0579140149,
0.0581808537,
0.1682130694,
-0.3560228348,
-0.4618872404,
0.1792623103,
0.0691526309,
0.2839445472,
-0.3514736593,
-0.0250305869,
0.0474223159,
-0.1831278354,
-0.4522080719,
0.4816745222,
-0.0237811897,
0.3613873422,
-0.0989973322,
-0.01194272,
-0.2031053007,
0.0400161929,
-0.2478787303,
0.0262007974,
-0.5233533382,
0.352527529,
0.0924009904,
-0.024291832,
0.1286277026,
0.3078557849,
-0.0417299829,
0.1256513298,
-0.2484583259,
-0.217898041,
0.6053527594,
-0.329197973,
-0.1927513182,
0.0775822252,
-0.0651619732,
0.0458229557,
-0.2090916336,
-0.2691054642,
-0.0227696616,
0.1086314395,
-0.1322119832,
-0.1374462545,
0.248976633,
-0.3479024172,
0.0091656046,
0.1130686551,
0.3266821802,
0.3828020394,
-0.3884516656,
0.236032486,
-0.2721286118
] |
https://github.com/huggingface/datasets/issues/4138 | Incorrect Russian filenames encoding after extraction by datasets.DownloadManager.download_and_extract() | @mariosasko thank you for your reply. I couldn't reproduce error showed by @severo either on Ubuntu 20.04.3 LTS, Windows 10 and Google Colab environments. But trying to avoid using os.walk(topdown=False) and Path.rename(), In _split_generators I replaced
```
def decode_file_names(folder):
for root, dirs, files in os.walk(folder, topdown=False):
root = Path(root)
for file in files:
old_name = root / Path(file)
new_name = root / Path(
file.encode('cp437').decode('cp866'))
old_name.rename(new_name)
for dir in dirs:
old_name = root / Path(dir)
new_name = root / Path(dir.encode('cp437').decode('cp866'))
old_name.rename(new_name)
folder = dl_manager.download_and_extract(self._RAW_TXT_URLS)['raw_txt']
decode_file_names(folder)
```
by
```
def extract(zip_file_path):
p = Path(zip_file_path)
dest_dir = str(p.parent / 'extracted' / p.stem)
os.makedirs(dest_dir, exist_ok=True)
with zipfile.ZipFile(zip_file_path) as archive:
for file_info in tqdm(archive.infolist(), desc='Extracting'):
filename = file_info.filename.encode('cp437').decode('cp866')
target = os.path.join(dest_dir, *filename.split('/'))
os.makedirs(os.path.dirname(target), exist_ok=True)
if not file_info.is_dir():
with archive.open(file_info) as source, open(target, 'wb') as dest:
shutil.copyfileobj(source, dest)
return dest_dir
zip_file = dl_manager.download(self._RAW_TXT_URLS)['raw_txt']
if not is_url(zip_file):
folder = extract(zip_file)
else:
folder = None
```
and now everything works well except data viewer for "raw_txt" subset: dataset preview on hub shows "No data.". As far as I understand dl_manager.download returns original URL when we are calling datasets.get_dataset_split_names and my suspicions are that dataset viewer can do smth similar. I couldn't find information about how it works. I would be very grateful, if you could tell me how to fix this) | ## Dataset viewer issue for 'MalakhovIlya/RuREBus'
**Link:** https://huggingface.co/datasets/MalakhovIlya/RuREBus
**Description**
Using os.walk(topdown=False) in DatasetBuilder causes following error:
Status code: 400
Exception: TypeError
Message: xwalk() got an unexpected keyword argument 'topdown'
Couldn't find where "xwalk" come from. How can I fix this?
Am I the one who added this dataset ? Yes
| 213 | Incorrect Russian filenames encoding after extraction by datasets.DownloadManager.download_and_extract()
## Dataset viewer issue for 'MalakhovIlya/RuREBus'
**Link:** https://huggingface.co/datasets/MalakhovIlya/RuREBus
**Description**
Using os.walk(topdown=False) in DatasetBuilder causes following error:
Status code: 400
Exception: TypeError
Message: xwalk() got an unexpected keyword argument 'topdown'
Couldn't find where "xwalk" come from. How can I fix this?
Am I the one who added this dataset ? Yes
@mariosasko thank you for your reply. I couldn't reproduce error showed by @severo either on Ubuntu 20.04.3 LTS, Windows 10 and Google Colab environments. But trying to avoid using os.walk(topdown=False) and Path.rename(), In _split_generators I replaced
```
def decode_file_names(folder):
for root, dirs, files in os.walk(folder, topdown=False):
root = Path(root)
for file in files:
old_name = root / Path(file)
new_name = root / Path(
file.encode('cp437').decode('cp866'))
old_name.rename(new_name)
for dir in dirs:
old_name = root / Path(dir)
new_name = root / Path(dir.encode('cp437').decode('cp866'))
old_name.rename(new_name)
folder = dl_manager.download_and_extract(self._RAW_TXT_URLS)['raw_txt']
decode_file_names(folder)
```
by
```
def extract(zip_file_path):
p = Path(zip_file_path)
dest_dir = str(p.parent / 'extracted' / p.stem)
os.makedirs(dest_dir, exist_ok=True)
with zipfile.ZipFile(zip_file_path) as archive:
for file_info in tqdm(archive.infolist(), desc='Extracting'):
filename = file_info.filename.encode('cp437').decode('cp866')
target = os.path.join(dest_dir, *filename.split('/'))
os.makedirs(os.path.dirname(target), exist_ok=True)
if not file_info.is_dir():
with archive.open(file_info) as source, open(target, 'wb') as dest:
shutil.copyfileobj(source, dest)
return dest_dir
zip_file = dl_manager.download(self._RAW_TXT_URLS)['raw_txt']
if not is_url(zip_file):
folder = extract(zip_file)
else:
folder = None
```
and now everything works well except data viewer for "raw_txt" subset: dataset preview on hub shows "No data.". As far as I understand dl_manager.download returns original URL when we are calling datasets.get_dataset_split_names and my suspicions are that dataset viewer can do smth similar. I couldn't find information about how it works. I would be very grateful, if you could tell me how to fix this) | [
-0.0071319346,
0.0737962648,
0.0328600109,
0.3899852931,
0.4107298851,
-0.1913454682,
-0.0048413379,
0.2006876469,
-0.2905463874,
0.3830552399,
-0.2088659853,
0.4631153941,
0.0013721877,
0.1579345316,
-0.0157347899,
-0.2802539766,
0.1035854295,
-0.1077969447,
-0.0890320688,
-0.2340081483,
-0.3684619367,
0.4525669515,
-0.0914774537,
-0.088521719,
-0.1220299676,
0.0176630188,
0.0766780898,
-0.0309449211,
-0.4777851999,
-0.2944447994,
-0.307038337,
0.043056868,
0.2405337542,
0.554602623,
-0.0001271434,
-0.0667364374,
0.0514175035,
-0.1716901958,
-0.1157695279,
-0.2436828166,
-0.1771860123,
-0.2593233585,
-0.2116051167,
-0.3095647991,
0.186362192,
-0.3619922698,
0.101628758,
0.0233000275,
0.3119701743,
0.5725489259,
0.0441064797,
0.1680690199,
-0.0439240672,
-0.0192658063,
0.2510876954,
0.143319577,
-0.1330995113,
0.422516197,
0.0774062052,
0.3779218495,
-0.237344861,
0.2310562134,
-0.0442774296,
-0.0830740258,
-0.2311579287,
0.2510743439,
0.0127522079,
-0.5080263019,
0.1373120397,
0.2749411166,
0.2663676739,
-0.0251465216,
-0.2218254954,
-0.2281172276,
0.0468905307,
-0.3440745771,
0.4557869136,
0.1766938269,
-0.346799612,
0.2166863382,
-0.1781498641,
0.0038657926,
-0.0046623847,
0.2249747068,
-0.0688303337,
0.3034354448,
-0.1698506474,
0.1202648655,
0.2042810321,
-0.0000468827,
0.5831328034,
-0.1930086613,
0.2225507945,
-0.0633072108,
-0.1867758334,
0.1227509081,
-0.1423182636,
0.2795136571,
0.0529018268,
-0.0145896375,
-0.1050398052,
-0.0570916384,
0.2071221769,
0.0351798423,
-0.1603149921,
0.2092125863,
-0.0015935593,
0.1161406934,
0.0932554603,
0.0964720398,
0.0538203344,
0.0787950009,
-0.1141430289,
-0.4400964975,
-0.3377326429,
0.0886739418,
0.1933695674,
-0.0725807101,
-0.2282539904,
-0.0338971838,
-0.4255462289,
-0.3714917898,
0.0167151112,
0.2259729207,
0.2081354558,
0.2655960619,
-0.2021123618,
0.3242792785,
-0.1434660107,
-0.5529515743,
0.0321554281,
0.1161398366,
-0.3351186514,
-0.144422546,
0.0464733019,
-0.2680358291,
0.0406759679,
0.120551236,
0.1599819511,
-0.0035796661,
0.1202272549,
-0.2774602175,
0.1930244267,
-0.0333819725,
0.1423641145,
0.0955791324,
0.0092632174,
-0.4627194405,
0.0372307263,
0.1495283544,
-0.5419950485,
-0.0839520171,
0.0042880359,
0.0056173061,
-0.2539564669,
-0.1687719375,
-0.1143090129,
0.2233580202,
0.1935725659,
0.2381442785,
-0.0063801445,
0.0707433745,
-0.0478372984,
-0.0318067819,
0.084125869,
0.2439766526,
-0.4430974722,
-0.0950726271,
-0.1099993512,
0.0763122961,
0.5766652226,
0.1548237354,
0.0515314713,
0.4858481586,
-0.2145624608,
0.2558266819,
0.3731139898,
0.0605938286,
-0.4383613467,
0.1472292691,
-0.1738377362,
0.095998764,
0.4222486615,
-0.2871467471,
0.4285338223,
-0.0357956849,
-0.1141050979,
0.200415507,
0.0890964791,
-0.0321559794,
-0.3127566278,
-0.0544432737,
0.3444665372,
0.1059563011,
0.1876012534,
-0.070800148,
0.2703215182,
-0.3578226864,
0.3044786751,
-0.1986732334,
0.0848582834,
0.322735697,
-0.2169642448,
-0.0141617106,
0.322137773,
0.2958612442,
0.1321329027,
0.1520658135,
-0.1829149425,
0.2374210656,
-0.5487125516,
-0.1190312803,
-0.3657880723,
-0.1761113554,
-0.3454670012,
-0.1809919327,
-0.0345964134,
0.3858052194,
-0.2468510866,
0.294300884,
0.0970844179,
-0.0028949059,
-0.0675809979,
0.1817256212,
-0.2151920497,
0.3753546774,
-0.1383616328,
-0.0585479327,
-0.2309868187,
-0.0866450593,
0.2512918115,
-0.1906854212,
-0.3715276122,
0.1861401498,
0.088218905,
0.0974120796,
0.1631831378,
-0.1585370749,
0.0247328579,
-0.1704778373,
0.0545360781,
0.2540778518,
-0.0230931304,
0.2588754594,
-0.0147716515,
0.2075291276,
-0.0502541661,
0.0989287719,
-0.2176404148,
0.1460702866,
0.5255624056,
-0.156241864,
0.0537346266,
-0.3889755607,
0.4013713896,
0.2450553775,
0.2145595253,
-0.0309610236,
-0.0916181132,
0.1114557683,
1.0158662796,
0.007974945,
-0.068633683,
0.1342162937,
0.070510149,
-0.0456135124,
0.1594242752,
0.972430706,
0.2354038656,
0.0476989187,
0.1807035953,
0.1047330126,
0.2610911131,
-0.0363786109,
0.291498661,
0.0904576853,
-0.052517347,
0.3433876634,
-0.1831225306,
0.0057746861,
-0.5644639134,
-0.0125895599,
0.5315349102,
0.3596453071,
-0.2367847711,
0.0358366668,
-0.4455940425,
-0.4992760122,
-0.335180968,
0.0729312003,
-0.2546514869,
-0.3299366832,
0.0305150952,
-0.1521333605,
-0.1452809721,
0.4360336959,
0.2836253941,
-0.1104772389,
-0.267339766,
0.1046249196,
0.0131661557,
-0.0246758647,
0.0500218756,
-0.0900215805,
0.3189717233,
-0.1845404804,
0.2251176983,
-0.7016924024,
0.0405868739,
-0.4009292722,
-0.3416954577,
0.5162807107,
-0.2569713593,
-0.0200414229,
0.0981933698,
-0.0841105059,
0.097969085,
-0.1957693845,
0.0675540566,
0.1589611769,
-0.1362888515,
0.2307655811,
-0.0097778747,
-0.3251548409,
-0.280051738,
-0.213667348,
-0.2513369024,
-0.149028495,
-0.0350905396,
-0.0201873574,
0.0973572806,
0.0065384661,
-0.1814931929,
-0.0136223035,
-0.3626681566,
0.0047005396,
-0.2824691832,
-0.4794801474,
0.43523404,
-0.2047447413,
-0.1946104318,
0.1590553522,
-0.1268760264,
0.0921404883,
0.183090508,
-0.1336596608,
-0.1617340147,
-0.1973954439,
0.1871074438,
0.0332189873,
0.0937240869,
0.2515393198,
0.0841772631,
0.2107264549,
-0.1568949819,
0.0511547551,
0.3294114172,
0.0171503443,
0.4416457117,
0.1000612155,
0.2737337947,
0.2145383358,
0.2806253731,
0.0779222324,
0.4327836037,
0.4100596309,
-0.053264875,
0.2681541741,
0.1027507707,
-0.1375724673,
0.1708420664,
-0.0383391306,
-0.1436388195,
0.3353769779,
-0.0822750255,
0.1006331667,
-0.010214203,
0.0230444092,
-0.4209320545,
-0.3657584786,
-0.0333463624,
0.2077835351,
0.1002300754,
0.0341125727,
0.3890386224,
-0.1388179362,
-0.0572246425,
0.0109903049,
0.1803934872,
0.0107631395,
-0.0096002938,
-0.5362205505,
0.0218133759,
-0.6381354332,
0.3619734347,
0.3615215421,
0.0153845381,
0.064881295,
0.1375072449,
0.2176752239,
-0.0405591764,
0.6390544176,
-0.2451563478,
0.0106989555,
0.0488554388,
0.0144993775,
-0.0268032048,
-0.062220566,
-0.3456549346,
0.0206773542,
-0.1637318283,
-0.0599896125,
-0.3017044365,
-0.3119890392,
0.0945422053,
0.2214180529,
-0.1584596634,
-0.0284656528,
0.1325029135,
-0.3892766833,
-0.2027650028,
-0.3837600052,
0.1030153185,
0.1178208888,
-0.099983871,
0.2298168838,
0.1819901317,
0.1672659516,
0.1703492105,
0.2415170372,
0.5509213805,
0.1601202488,
0.027266236,
-0.0325227045,
0.249571085,
0.1373774111,
0.569681704,
-0.4899462759,
-0.7013697028,
-0.2285468131,
-0.5785278678,
0.2301673442,
0.305185616,
-0.3561252654,
0.2864943445,
-0.2777113914,
0.2895659804,
-0.1071934253,
0.2460148633,
0.6575933099,
0.1942520589,
-0.169580549,
-0.3574041724,
0.1180779785,
0.1046895832,
-0.0541042835,
0.1897828877,
0.263519913,
-0.2779556513,
-0.0862864107,
-0.0709239915,
0.9641137719,
0.2262699902,
0.073426038,
0.3269820511,
0.0445187688,
0.0805742145,
0.1190575808,
-0.0216753315,
-0.1520199031,
-0.3962269127,
-0.1219770461,
0.2009736896,
0.2018791735,
0.020475002,
-0.3008060455,
0.2077489644,
-0.0562513918,
0.1794321537,
-0.0105131082,
0.1787707657,
-0.1683659106,
-0.2788680792,
-0.0677693337,
-0.0647207871,
-0.2323918194,
-0.0654297993,
-0.0152380448,
-0.2907087207,
0.0425702073,
-0.1109114438,
0.0182055905,
0.0630893335,
-0.3323645592,
-0.0430885293,
-0.2418217957,
-0.4783513248,
0.0932184458,
0.4354797304,
0.3225813508,
0.060953375,
-0.0266119,
0.1015081555,
0.023840623,
0.0953921303,
0.2203110605,
-0.0323648229,
0.0314115137,
-0.1329000443,
-0.1497611552,
-0.2397059351,
-0.0103217689,
0.0028076074,
0.1216808781,
-0.2595714629,
0.1904929578,
-0.1763240397,
-0.0412850715,
-0.0225058496,
-0.2045077384,
-0.1277678013,
-0.0210653264,
-0.0353467055,
-0.0936535224,
0.1408321708,
-0.542478323,
-0.2803388536,
-0.0540261008,
0.1332496107,
-0.2134490758,
0.0955410823,
0.5592524409,
-0.0153549034,
-0.2568116784,
0.0199686754,
0.2559895217,
-0.3318977356,
-0.7810239792,
0.1768991947,
-0.1222589612,
-0.1204738989,
-0.2007748187,
0.0190149359,
0.1546112299,
-0.0838676021,
-0.138484329,
-0.2742232382,
-0.1566241682,
0.1824251711,
0.1155423895,
-0.3588835299,
-0.0483260117,
0.0049470253,
0.0059041982,
-0.4794571102,
-0.1664181352,
0.2433329523,
0.146699205,
0.1477586478,
0.3287667334,
-0.1392636746,
0.3418994844,
-0.3148876429,
-0.0324895158,
0.1872736216,
-0.0260080043,
-0.0041831159,
-0.3580281138,
0.1959382594,
-0.082167469,
-0.2530206144,
0.4598674476,
-0.1964427978,
-0.1990170628,
-0.2060053796,
0.0162961725,
0.4664244354,
0.1593140215,
0.4155746698,
0.1755690128,
0.0698795021,
-0.2089012712,
-0.092516996,
0.0278674141,
0.4064947367,
-0.0609962642,
0.226354301,
-0.1751921177,
0.0604009107,
-0.3350977004,
0.0871686786,
-0.1183771566,
0.1185404807,
0.3388996124,
-0.1883399189,
0.4382177889,
0.1218456551,
0.4144874811,
0.4540338218,
-0.279979229,
-0.191841796,
0.4977689683,
-0.0443606004,
-0.3431404233,
-0.2375105619,
0.0993695408,
0.0482177176,
0.0270446222,
0.2391169071,
-0.1274249852,
0.0391698703,
-0.0459468924,
-0.1111399606,
0.2204230428,
0.3660374284,
0.1717703193,
0.8632711768,
0.0265307333,
0.4422343075,
0.2233983874,
0.3073441684,
-0.1341792196,
0.2042239308,
-0.3505618274,
0.2182370722,
-0.0077338372,
0.2526880205,
0.2267547399,
-0.2485852689,
0.2080034018,
-0.0259395223,
-0.139933452,
0.3044344485,
0.228969872,
0.285517633,
0.1019002125,
-0.1708105654,
-0.2724120915,
0.2976666391,
-0.0104458248,
0.0550417118,
-0.2167978436,
-0.0756359622,
-0.4030995965,
0.1973035187,
-0.2477296591,
-0.1271250993,
-0.0130850784,
0.2093967795,
-0.0627848431,
-0.1058751121,
-0.0152330576,
-0.1968470663,
0.26837942,
-0.3490749598,
0.4187301099,
0.4114763737,
0.08204896,
0.2606477141,
0.2147753239,
0.3511908054,
0.219629094,
-0.0389584936,
-0.3233444095,
-0.1346647888,
0.0363074243,
0.0585721955,
-0.0363455266,
0.0973462686,
0.1413069665,
0.4406396747,
-0.0959228203,
-0.1618492305,
0.0494648404,
0.4249735773,
0.2492671013,
0.2021628767,
0.2198849618,
0.0512997955,
0.2142142504,
-0.3398068547,
-0.2545029521,
-0.3962348998,
-0.1718393266,
0.296410501,
0.0222295243,
0.1067376807,
-0.0840859711,
-0.0001244431,
-0.0043598223,
0.2528316379,
0.2722477019,
-0.2239096016,
-0.2038130909,
-0.1677078903,
-0.6553043127,
0.0475429036,
0.0784086511,
-0.253634274,
0.0401837789,
-0.293238461,
0.1617000699,
0.3573638797,
0.4066309333,
0.5689456463,
-0.0081964824,
0.2911944389,
-0.3364293575,
-0.2424792647,
0.3205986321,
0.0203557592,
-0.0207864139,
-0.2894807756,
0.2046503425,
-0.15011096,
-0.107175298,
0.0678358749,
-0.0093468679,
-0.1675352156,
-0.262816608,
0.0722026378,
0.1940910369,
0.2139020115,
-0.3438886106,
-0.0790597498,
0.2072903663,
-0.1456434429,
-0.3511001766,
0.4686771035,
0.1581728905,
0.3037508428,
-0.081568934,
0.1152547523,
-0.1682481021,
0.1013735831,
-0.1899398267,
0.056199912,
-0.4212378561,
0.334749788,
0.147863254,
0.0544700734,
0.2284615785,
0.3959394693,
-0.0300253388,
0.2120061517,
-0.3067817986,
-0.2340002954,
0.5120923519,
-0.2138779312,
-0.2332371324,
0.0932955295,
-0.1346800625,
0.0511599965,
-0.1531030983,
-0.0685874894,
-0.1303808987,
0.1380565763,
-0.181277886,
-0.1907590032,
0.2272836268,
-0.201347962,
-0.0177952703,
0.1092306376,
0.252654165,
0.3634467423,
-0.3643705845,
0.1303858161,
-0.1040251106
] |
https://github.com/huggingface/datasets/issues/4138 | Incorrect Russian filenames encoding after extraction by datasets.DownloadManager.download_and_extract() | This is what I get when I try to stream the `raw_txt` subset:
```python
>>> dset = load_dataset("MalakhovIlya/RuREBus", "raw_txt", split="raw_txt", streaming=True)
>>> next(iter(dset))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
StopIteration
```
So there is a bug in your script. | ## Dataset viewer issue for 'MalakhovIlya/RuREBus'
**Link:** https://huggingface.co/datasets/MalakhovIlya/RuREBus
**Description**
Using os.walk(topdown=False) in DatasetBuilder causes following error:
Status code: 400
Exception: TypeError
Message: xwalk() got an unexpected keyword argument 'topdown'
Couldn't find where "xwalk" come from. How can I fix this?
Am I the one who added this dataset ? Yes
| 44 | Incorrect Russian filenames encoding after extraction by datasets.DownloadManager.download_and_extract()
## Dataset viewer issue for 'MalakhovIlya/RuREBus'
**Link:** https://huggingface.co/datasets/MalakhovIlya/RuREBus
**Description**
Using os.walk(topdown=False) in DatasetBuilder causes following error:
Status code: 400
Exception: TypeError
Message: xwalk() got an unexpected keyword argument 'topdown'
Couldn't find where "xwalk" come from. How can I fix this?
Am I the one who added this dataset ? Yes
This is what I get when I try to stream the `raw_txt` subset:
```python
>>> dset = load_dataset("MalakhovIlya/RuREBus", "raw_txt", split="raw_txt", streaming=True)
>>> next(iter(dset))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
StopIteration
```
So there is a bug in your script. | [
-0.1574705839,
-0.1151819378,
0.0108459154,
0.3141182065,
0.3185798228,
0.0488690995,
-0.0708808005,
0.1852437556,
-0.0354310609,
0.2366666198,
-0.0272180364,
0.2307993174,
0.0007413884,
0.2097198665,
0.1422531903,
-0.1830073148,
0.1044389158,
-0.0119180959,
-0.128848955,
-0.192245096,
-0.3217929602,
0.1987963319,
-0.1570227295,
-0.1398412138,
0.0662663132,
0.0724746212,
0.1241117045,
-0.010276651,
-0.4684955776,
-0.3901348114,
-0.1630181819,
0.0636052489,
0.3245452046,
0.6354138255,
-0.0001213894,
-0.1193592399,
0.1950583905,
-0.1608211696,
-0.154672876,
-0.2887345552,
-0.2418429106,
-0.181297183,
-0.1396976262,
-0.2533704638,
0.1577788442,
-0.3997817934,
0.2230623811,
-0.1366874576,
0.218300283,
0.6312332749,
0.132760331,
0.2255030125,
-0.0906431451,
-0.0282053836,
0.1043796316,
0.2417904884,
-0.0790647194,
0.3803752959,
0.0608522817,
0.2073042691,
-0.1794423014,
0.1324168295,
-0.1277270764,
-0.0521335825,
0.0184876248,
0.1675464213,
-0.0985556543,
-0.4249241948,
0.1517683715,
0.3499745131,
0.3508815765,
-0.1179994643,
-0.2161329985,
-0.2011633515,
0.1280961633,
-0.3781499863,
0.3022499979,
0.2422737479,
-0.3619832397,
0.1814978421,
-0.2672697008,
-0.1986811161,
-0.1969617754,
0.3026141822,
0.0235741585,
0.2574819922,
-0.1742893457,
0.1142795533,
0.1519345045,
0.0781151205,
0.4321709275,
-0.2248970121,
0.2068772465,
0.0198952798,
-0.2891067564,
0.1932293177,
-0.0741590336,
0.2994585037,
0.0333102159,
-0.0896424651,
-0.0437022224,
0.0121060964,
0.2495813966,
0.059381295,
-0.0417355634,
0.2231738716,
0.0481289551,
0.1515872926,
0.067969434,
0.2192884088,
0.0937721357,
0.072620295,
-0.0969148725,
-0.2888430059,
-0.2764212489,
-0.1074111611,
0.3075223267,
-0.0966383219,
-0.2184123844,
0.14008075,
-0.2825950384,
-0.3430538476,
-0.0438669287,
0.201675117,
0.0948073193,
0.1607920527,
-0.1687949151,
0.3536414504,
-0.2196124643,
-0.4759626985,
-0.1030681357,
0.0708138198,
-0.2153237164,
-0.1112109423,
-0.0370215811,
-0.5113651752,
0.0338673331,
0.1453771293,
0.1851568967,
0.0481912196,
0.0877612904,
-0.2167561054,
0.0510792062,
-0.0256158691,
0.1947944611,
0.1866880506,
0.1097232252,
-0.4410484135,
0.045235049,
0.1874984354,
-0.4504340589,
-0.0784104615,
0.0375663191,
0.1361890137,
-0.3870019317,
-0.2393022478,
-0.2970780134,
0.1927143931,
0.1789910793,
0.1128396317,
-0.0495470949,
-0.0570436306,
-0.1650581807,
-0.0244228356,
0.1747018993,
0.4166387916,
-0.4270520508,
-0.053135097,
-0.1677883565,
-0.0928196236,
0.5093911886,
0.0876669437,
0.0294374283,
0.4469437301,
-0.2416284084,
0.3091879487,
0.3414732218,
-0.0280277599,
-0.3607130051,
0.195418179,
-0.2727204561,
0.2743765116,
0.3352673054,
-0.1732559651,
0.5041680932,
-0.0691350326,
-0.1294640452,
0.1883531809,
0.0642741397,
-0.076725103,
-0.2012396306,
-0.0161246452,
0.3589530587,
0.2398800552,
0.1173569858,
0.0131331347,
0.2514455616,
-0.334284246,
0.4122952223,
-0.0930510387,
0.2257242352,
0.2795898914,
-0.2614389062,
0.1043436453,
0.2910106778,
0.0783897266,
0.1141064838,
0.094735615,
0.1950407177,
0.2043700814,
-0.520318985,
-0.0920406878,
-0.3982516229,
-0.1273019314,
-0.4165615439,
-0.0930632353,
0.0220024679,
0.5045486689,
-0.3169494867,
0.2740052938,
-0.0213412642,
0.0129512008,
-0.2130408883,
0.1164508089,
-0.4363683462,
0.3048161566,
-0.019793326,
-0.0623416789,
-0.1398670375,
-0.0615507327,
0.1279432923,
-0.087361753,
-0.3724582493,
0.2796906829,
0.0649117604,
0.2496885955,
0.2045257837,
-0.1561760157,
-0.0439837947,
-0.2585625648,
0.0689420253,
0.423543185,
0.0186404847,
0.1451976597,
0.0204018429,
0.0522470847,
-0.1491046995,
0.0954732299,
-0.1753934324,
0.0942424908,
0.4620841444,
-0.0228833798,
-0.0708906427,
-0.4041163623,
0.6139834523,
0.1956302524,
0.1152401865,
-0.1160700545,
-0.2584568858,
0.0718476325,
0.8866944909,
-0.0726729855,
-0.0201146752,
0.2895673811,
-0.1033476889,
-0.0064117783,
0.1320258379,
0.8078452349,
0.3112743199,
0.0674543083,
0.1278636605,
0.1441958249,
0.3456610143,
-0.1238620579,
0.2318896651,
0.0490918569,
-0.0717888325,
0.275703758,
-0.2862924039,
-0.0951789618,
-0.4440139532,
0.1095058322,
0.2657429874,
0.3467795551,
-0.2494419366,
-0.044665385,
-0.4250015616,
-0.3654423356,
-0.4098840356,
-0.0446091965,
-0.1505109072,
-0.2786631882,
-0.0211991165,
0.0509975739,
-0.1798776984,
0.2739726007,
0.1190742627,
-0.0755652115,
-0.1828615665,
0.0186548866,
0.0065432396,
-0.1975441128,
-0.1174912751,
-0.001185813,
0.2694242597,
-0.0535457879,
0.3526786566,
-0.625647366,
-0.0028928618,
-0.3347195685,
-0.1340136379,
0.3113438189,
-0.2983701229,
0.0735104978,
0.0364840701,
0.2226388901,
0.1432172656,
-0.1398793161,
0.0510041639,
0.0468444638,
-0.0975080654,
0.3363003731,
0.0388662554,
-0.322570473,
-0.148655802,
-0.3570615351,
-0.3900034428,
-0.2706159949,
0.0290567502,
0.0144780064,
0.063851878,
-0.0375657044,
-0.0969888791,
-0.0370319448,
-0.369209826,
0.0821385235,
-0.1947933584,
-0.4086587727,
0.5175426602,
-0.2631825507,
-0.4141165614,
0.2495958954,
0.0851021186,
0.0345396549,
0.2299430221,
-0.3259932101,
0.0007621369,
-0.0297000222,
-0.0188793484,
-0.0946610793,
0.0214932133,
0.1843876541,
-0.0257990863,
0.2080260664,
-0.2545101941,
0.0754401758,
0.0833448172,
-0.1429217309,
0.3711532056,
0.1085636839,
0.453092128,
0.109739542,
0.2274850011,
0.2902885973,
0.3891973495,
0.4061225355,
-0.1499273926,
0.2446686476,
0.0482997186,
-0.3315615952,
0.2003093958,
-0.0324050114,
-0.2149510384,
0.4137993753,
-0.0692551807,
0.1201859415,
-0.1017644182,
-0.0290707462,
-0.3632328808,
-0.2848699689,
-0.0722468942,
0.2447992265,
0.1656676531,
-0.008091202,
0.4089616835,
-0.079325214,
-0.2766360939,
-0.047594972,
0.254024595,
-0.0360270441,
0.0414018519,
-0.5558082461,
0.0563513897,
-0.4782286584,
0.324960202,
0.1644702107,
0.1810872555,
0.0592861548,
0.072889775,
0.243787542,
0.1075436696,
0.6438666582,
-0.1857613772,
0.1251442432,
-0.0999344289,
0.1296377331,
-0.2471721768,
-0.0205917917,
-0.3347999454,
0.25306198,
-0.1672155708,
-0.074626103,
-0.2810370922,
-0.1386252344,
0.0955695584,
0.2175486088,
-0.0908458829,
-0.267039448,
-0.0432835221,
-0.237399891,
-0.2632320523,
-0.3526437879,
0.0013268742,
0.0958238244,
-0.1419122815,
0.2330224067,
0.28315413,
0.2137392163,
0.1772202104,
0.113403216,
0.4834199846,
0.2003811151,
0.078807056,
0.1466770321,
0.1466167271,
0.2588155866,
0.7168322802,
-0.2586170733,
-0.9094694853,
-0.1720765978,
-0.397371769,
0.1979818046,
0.2112183422,
-0.2630490959,
0.3425625563,
-0.0110718496,
0.244285509,
-0.2432644665,
0.2318441123,
0.6501179934,
0.1515797824,
-0.3341395855,
-0.5646204948,
0.1047256514,
-0.0779815987,
0.070598878,
0.2905620039,
0.1995948106,
-0.3287649751,
-0.1027573049,
-0.2377323657,
0.9650909901,
0.2592629194,
0.1258687079,
0.2661344409,
-0.0815560371,
0.0720168352,
0.1292148679,
-0.1240487248,
-0.1848441511,
-0.3638373017,
-0.1242028251,
0.1682347208,
0.2014472187,
-0.1044342741,
-0.3062565923,
0.176584065,
-0.0392937846,
0.3766003847,
0.0370684452,
0.2158245444,
-0.1715412885,
-0.2354256362,
-0.1363556683,
0.0448037088,
-0.3317666352,
-0.0241170991,
0.0258523189,
-0.17795524,
0.0792823732,
-0.0459303744,
-0.0911654606,
0.0010121474,
-0.1555533856,
-0.1729358286,
-0.3577904403,
-0.4790947437,
0.0945346132,
0.4680970609,
0.1489825547,
0.0675040334,
-0.1589139253,
0.097553663,
-0.0618974231,
0.0268178806,
0.2141447216,
-0.0685367361,
0.0255604032,
-0.1086520031,
-0.2070979476,
-0.038166739,
0.1143472567,
-0.0587018654,
0.0085750567,
-0.21142672,
0.1804288775,
-0.2480351329,
-0.2121988684,
-0.2057760954,
-0.0546635091,
-0.05918964,
0.0652159229,
0.0146485753,
-0.1045153439,
-0.0078743063,
-0.3838868737,
-0.2073330283,
-0.1106516719,
0.3435471356,
-0.1554416567,
-0.0558825135,
0.5957712531,
0.230646044,
-0.2493448406,
-0.0100252237,
0.2011944503,
-0.1279147714,
-0.6036612988,
0.0181396287,
-0.0365999639,
0.0520757921,
-0.1802655607,
0.0279112495,
0.1016599014,
-0.1989486217,
-0.0757666379,
-0.3465134501,
-0.2017002851,
0.1567007452,
0.2560151815,
-0.2111843824,
0.0090737995,
-0.2115397453,
-0.0592365153,
-0.3227754235,
-0.231099084,
-0.0142565398,
0.248874411,
0.1168697849,
0.353066206,
0.0959332213,
0.3090636134,
-0.3588492274,
0.0651230365,
0.0866906941,
-0.1626516283,
-0.0733075663,
-0.1601978242,
0.1305246204,
-0.0559853725,
-0.2981164455,
0.2744226754,
-0.3265161812,
-0.1703320891,
-0.2271490842,
0.0091642356,
0.4894520044,
0.0159304962,
0.3203762174,
0.3538043499,
0.0148964766,
-0.1645623296,
-0.1183927208,
-0.1221645325,
0.3552317917,
-0.1155657321,
0.0890748724,
-0.0191489495,
0.0138350213,
-0.2175657004,
0.0640880838,
0.1244943514,
0.2481481135,
0.3659791648,
-0.2986651957,
0.541467905,
0.1393687874,
0.4945719242,
0.5701560974,
-0.3829081655,
-0.1301382035,
0.3639752269,
0.0848904029,
-0.3070144355,
-0.2041345686,
0.209337011,
0.0448685624,
-0.0560369901,
0.1005474851,
-0.2046696097,
0.0697040781,
-0.0564997122,
0.0550082736,
0.2484773844,
0.1658903956,
0.3540945351,
0.6960197091,
-0.0447500832,
0.2574823797,
0.0080173565,
0.2862980068,
-0.1744382083,
0.390614599,
-0.3592524529,
0.2524423301,
0.1709775925,
0.2084391713,
0.0562019236,
-0.3613638878,
0.2548736632,
-0.0160931163,
-0.3691441119,
0.3978846967,
0.2680241168,
0.2939928174,
0.1848043054,
-0.0583240241,
-0.3168328702,
0.0988211855,
0.0071825669,
0.1447823793,
-0.4003688097,
-0.1263299733,
-0.2788460851,
0.0817440376,
-0.1741659194,
-0.1620949954,
-0.1247270405,
0.254142195,
-0.2517875135,
-0.1837675422,
-0.0113315498,
-0.300475955,
0.2376865,
-0.3022107482,
0.3181162179,
0.370781064,
0.1778438687,
0.3954793215,
0.1308612078,
0.3552415967,
0.2952360809,
0.0146128619,
-0.0116213243,
-0.0451347679,
-0.1059809849,
0.1613492221,
0.1966538429,
0.0739575326,
0.3549082279,
0.2707443535,
0.0515352786,
-0.218389377,
0.2912554741,
0.3175578713,
0.0946053267,
0.0099579468,
0.1131001487,
0.0230471361,
0.1379770935,
-0.4450924993,
-0.3313659728,
-0.5508671999,
-0.0725414231,
0.5059517622,
0.1153775901,
0.0934000984,
-0.1747712195,
0.0345319323,
0.0582059845,
0.3615585864,
0.3283496499,
-0.115429759,
-0.1905108243,
-0.2164324224,
-0.7171667814,
0.2376675159,
0.0125420149,
-0.337869674,
0.088950403,
-0.3261264265,
0.1094633266,
0.277528137,
0.2809398472,
0.378009975,
0.0742022321,
0.3933182061,
-0.2092508078,
-0.3243391514,
0.240714401,
0.2084688246,
-0.0205174908,
-0.1952461004,
0.2754685581,
-0.2894399762,
-0.0002123535,
-0.0050297733,
0.1044181213,
-0.1172849014,
-0.3741950691,
0.2204041481,
0.0580366775,
0.3723920286,
-0.3059624434,
-0.0458522402,
-0.106420137,
-0.1173646972,
-0.396371603,
0.5577193499,
0.0180073027,
0.3818776011,
-0.1205872968,
-0.1340179592,
-0.1839552671,
0.0652175695,
-0.2666855454,
0.0179470517,
-0.4120352566,
0.2740680873,
0.1636762917,
0.0291964319,
0.223886624,
0.3362616599,
-0.0642759204,
0.1806227118,
-0.2096560448,
-0.2830428779,
0.5373700261,
-0.3654477894,
-0.2158236504,
0.0826024711,
-0.0916922167,
0.0261616986,
-0.149243176,
-0.3535965979,
0.0597225837,
0.2058983445,
-0.1062289551,
-0.0426634885,
0.3426320851,
-0.203245759,
0.1132743731,
0.1674799323,
0.3675739765,
0.4339286685,
-0.3533537984,
0.3030548692,
-0.2408774495
] |
https://github.com/huggingface/datasets/issues/4138 | Incorrect Russian filenames encoding after extraction by datasets.DownloadManager.download_and_extract() | streaming=True helped me to find solution. I fixed
```
def extract(zip_file_path):
p = Path(zip_file_path)
dest_dir = str(p.parent / 'extracted' / p.stem)
os.makedirs(dest_dir, exist_ok=True)
with zipfile.ZipFile(zip_file_path) as archive:
for file_info in tqdm(archive.infolist(), desc='Extracting'):
filename = file_info.filename.encode('cp437').decode('cp866')
target = os.path.join(dest_dir, *filename.split('/'))
os.makedirs(os.path.dirname(target), exist_ok=True)
if not file_info.is_dir():
with archive.open(file_info) as source, open(target, 'wb') as dest:
shutil.copyfileobj(source, dest)
return dest_dir
zip_file = dl_manager.download(self._RAW_TXT_URLS)['raw_txt']
folder = extract(zip_file)
```
by
```
folder = dl_manager.download_and_extract(self._RAW_TXT_URLS)['raw_txt']
path = os.path.join(folder, 'MED_txt/unparsed_txt')
for root, dirs, files in os.walk(path):
decoded_root_name = Path(root).name.encode('cp437').decode('cp866')
```
@mariosasko thank you for your help :) | ## Dataset viewer issue for 'MalakhovIlya/RuREBus'
**Link:** https://huggingface.co/datasets/MalakhovIlya/RuREBus
**Description**
Using os.walk(topdown=False) in DatasetBuilder causes following error:
Status code: 400
Exception: TypeError
Message: xwalk() got an unexpected keyword argument 'topdown'
Couldn't find where "xwalk" come from. How can I fix this?
Am I the one who added this dataset ? Yes
| 89 | Incorrect Russian filenames encoding after extraction by datasets.DownloadManager.download_and_extract()
## Dataset viewer issue for 'MalakhovIlya/RuREBus'
**Link:** https://huggingface.co/datasets/MalakhovIlya/RuREBus
**Description**
Using os.walk(topdown=False) in DatasetBuilder causes following error:
Status code: 400
Exception: TypeError
Message: xwalk() got an unexpected keyword argument 'topdown'
Couldn't find where "xwalk" come from. How can I fix this?
Am I the one who added this dataset ? Yes
streaming=True helped me to find solution. I fixed
```
def extract(zip_file_path):
p = Path(zip_file_path)
dest_dir = str(p.parent / 'extracted' / p.stem)
os.makedirs(dest_dir, exist_ok=True)
with zipfile.ZipFile(zip_file_path) as archive:
for file_info in tqdm(archive.infolist(), desc='Extracting'):
filename = file_info.filename.encode('cp437').decode('cp866')
target = os.path.join(dest_dir, *filename.split('/'))
os.makedirs(os.path.dirname(target), exist_ok=True)
if not file_info.is_dir():
with archive.open(file_info) as source, open(target, 'wb') as dest:
shutil.copyfileobj(source, dest)
return dest_dir
zip_file = dl_manager.download(self._RAW_TXT_URLS)['raw_txt']
folder = extract(zip_file)
```
by
```
folder = dl_manager.download_and_extract(self._RAW_TXT_URLS)['raw_txt']
path = os.path.join(folder, 'MED_txt/unparsed_txt')
for root, dirs, files in os.walk(path):
decoded_root_name = Path(root).name.encode('cp437').decode('cp866')
```
@mariosasko thank you for your help :) | [
-0.0119793462,
-0.1327393204,
0.0184508692,
0.4076127708,
0.4494683743,
-0.187553212,
-0.1943377405,
0.1840333492,
-0.3235189617,
0.28901124,
-0.2319498509,
0.4692307711,
0.0145375272,
0.0691847429,
0.0689553469,
-0.2021198571,
0.0421915241,
-0.1188558117,
-0.2840292454,
-0.2756608129,
-0.3234434426,
0.4202281833,
-0.0857571661,
-0.1088799462,
-0.0071390802,
0.004272745,
0.1009360552,
0.0543568134,
-0.4823656976,
-0.3213064373,
-0.2552721798,
0.04397301,
0.3227492273,
0.6244785786,
-0.0001267304,
-0.0396370851,
0.0138582308,
-0.2085794657,
-0.0592683405,
-0.2500720322,
-0.0982091874,
-0.2692971528,
-0.2126719654,
-0.30659464,
0.0972613394,
-0.3018307984,
0.0615018494,
-0.0012019954,
0.2893787622,
0.5623328686,
0.0577124581,
0.3529016376,
-0.044469256,
-0.0070066345,
0.0756102726,
0.0726430342,
-0.0924145356,
0.4260866642,
0.1812190413,
0.2643601298,
-0.2158361226,
0.3133171797,
0.0034535241,
-0.0908964202,
-0.1550940126,
0.1945754588,
0.0637067109,
-0.5031862855,
0.0875592083,
0.3129720688,
0.252141118,
0.0020139238,
-0.3035180867,
-0.1838485301,
0.0098380959,
-0.3635254502,
0.4139576852,
0.1217317954,
-0.3664694428,
0.2097139806,
-0.1753050834,
-0.0261464529,
-0.0485172682,
0.2787978351,
-0.1121343672,
0.3209395111,
-0.19620803,
0.0795834959,
0.2970089316,
-0.0370531753,
0.5438113213,
-0.1645206362,
0.2255984247,
-0.0081204819,
-0.3005720377,
0.0643519238,
-0.0526493005,
0.331728965,
0.0547741354,
0.0081057381,
-0.0631064177,
-0.0279163867,
0.1729028523,
-0.0549018942,
-0.1075360849,
0.253700465,
-0.0283450373,
0.1600251347,
-0.0085284347,
0.1864982396,
0.0569410026,
0.0412861034,
-0.1044301465,
-0.424893707,
-0.249374792,
0.0639301166,
0.2494620979,
-0.0456868671,
-0.1227642596,
0.0273722224,
-0.2641758621,
-0.3585398197,
0.0213523172,
0.2522320151,
0.1373194456,
0.2824692726,
-0.2394145429,
0.4238802195,
-0.1475062817,
-0.607873559,
0.0015373561,
0.1176359802,
-0.2682973742,
-0.2911655009,
-0.0259539336,
-0.3578381538,
0.0823995247,
0.1034898981,
0.2972231209,
-0.0423940979,
0.1250983924,
-0.2664377391,
0.2344505787,
0.0357378386,
0.0741758496,
0.1178016812,
0.0663479045,
-0.5515991449,
0.0474966578,
0.188403219,
-0.4479552805,
-0.0910789892,
0.0465409122,
0.0591578707,
-0.3075341582,
-0.244676277,
-0.2794793546,
0.2319199145,
0.1280733496,
0.3063010275,
0.062525399,
0.0338752903,
0.0103121391,
-0.017211454,
0.1480495483,
0.206299141,
-0.4529850781,
-0.0223323908,
-0.1961476058,
0.0202710126,
0.4923062921,
0.1950938106,
-0.006762966,
0.4967125952,
-0.2155947834,
0.2924642861,
0.5003920197,
-0.1525313258,
-0.5225215554,
0.2657670081,
-0.1996059865,
0.2775235176,
0.3743710518,
-0.1822234392,
0.4363543093,
-0.0486082025,
-0.0977211148,
0.2033758014,
0.023367038,
-0.0334351249,
-0.2477772981,
-0.0515305474,
0.372076869,
0.1504826844,
0.1981061846,
-0.0543197989,
0.2195482105,
-0.3935887218,
0.4012794495,
-0.0842640027,
0.0875089094,
0.3422417343,
-0.2217945904,
-0.0306211524,
0.2455082238,
0.1860233694,
0.0712763891,
0.13904953,
-0.1078269184,
0.2858843207,
-0.5676737428,
-0.1108144447,
-0.4102360904,
-0.1213064268,
-0.4288128614,
-0.2418412119,
-0.0272361953,
0.3688049018,
-0.225339815,
0.170614019,
0.1006909311,
-0.0376049168,
-0.0547241084,
0.2143615037,
-0.2734812796,
0.3056675494,
-0.0928441957,
-0.058485996,
-0.1888649613,
-0.0796890855,
0.2837140858,
-0.1578056365,
-0.3695966005,
0.2184722275,
0.0495901331,
0.239140749,
0.2721714079,
-0.1720126867,
0.0049210307,
-0.2975035012,
0.0333887227,
0.4253369868,
0.0286636874,
0.291170001,
0.0102399895,
0.1853593588,
0.0066629811,
0.0181664079,
-0.1888883114,
0.1627683491,
0.5012879372,
-0.1159229055,
0.0076539954,
-0.3634334505,
0.4596067965,
0.3112081885,
0.2055704743,
-0.1106653586,
-0.2702438235,
0.1041580811,
0.8097207546,
-0.0248977374,
-0.0420882851,
0.1308578551,
0.0718654618,
0.0825856552,
0.1315396577,
0.8717809916,
0.2711853683,
0.0419494808,
0.2366069853,
0.1268779933,
0.298887074,
0.0160869136,
0.2931957543,
0.0682831183,
-0.1190332696,
0.3190135062,
-0.167247355,
0.0215391908,
-0.528270781,
0.051240176,
0.3883284032,
0.3563803136,
-0.2284003496,
0.0249576382,
-0.4442866743,
-0.5738494396,
-0.2960864305,
-0.0562271215,
-0.2857248187,
-0.2897609174,
-0.0285331998,
-0.1059449539,
-0.1361098886,
0.398657769,
0.2089007497,
-0.2044970095,
-0.2677608728,
0.1130679697,
0.0036781922,
-0.0374144837,
0.0793628171,
-0.0677038282,
0.2229767293,
-0.2162701935,
0.2690697312,
-0.6482884884,
0.0545138717,
-0.4231319129,
-0.406355381,
0.408662945,
-0.2430547774,
0.1328093112,
0.0768716708,
-0.011569743,
0.1558783203,
-0.0980868191,
0.0927806348,
0.1770406514,
-0.0961518958,
0.2013570219,
0.0153238662,
-0.2525753379,
-0.1978472173,
-0.2135844827,
-0.3527282178,
-0.2156813294,
-0.0512729548,
-0.0256579369,
0.0789087489,
-0.042929057,
-0.2303552628,
-0.1121939048,
-0.3603488505,
0.0317332186,
-0.3096544445,
-0.5383209586,
0.4665867984,
-0.2079284489,
-0.2988556921,
0.0991814658,
-0.1038507074,
0.1643919498,
0.1377895623,
-0.1712721586,
-0.1930758804,
-0.101212658,
0.1867290288,
-0.028913185,
0.1132876575,
0.1892661154,
0.0226340592,
0.2247786969,
-0.1924846172,
0.0626591593,
0.210876599,
0.0281806998,
0.4476496577,
-0.0345537476,
0.341359973,
0.1739113629,
0.2658790648,
0.1585359275,
0.525598526,
0.425978601,
-0.0504165813,
0.3312179148,
0.1559881419,
-0.1746822596,
0.0638969168,
0.0440296978,
-0.1177593023,
0.2505102456,
-0.0308974031,
0.2099034786,
-0.0091907224,
-0.0233407095,
-0.533059895,
-0.3489815593,
-0.0383556038,
0.1390593499,
0.0657783449,
0.0505978055,
0.3883389235,
-0.0948993936,
-0.0081879403,
0.0180988312,
0.3027868867,
-0.0604716763,
-0.005917951,
-0.6043301225,
-0.056872122,
-0.5564534664,
0.3362189829,
0.2796861231,
0.0966301262,
0.1318632513,
0.1373311728,
0.2104598284,
0.0213221926,
0.6494760513,
-0.275576055,
0.1097708568,
0.0137196658,
-0.1744085699,
-0.0631670356,
0.0015523854,
-0.3086140454,
-0.0308544785,
-0.1659041941,
0.0650589243,
-0.2975501716,
-0.2855217755,
-0.0400833413,
0.2295109332,
-0.1805112958,
-0.0883796737,
0.0659187958,
-0.3809347451,
-0.1563165635,
-0.320461303,
0.0823303759,
0.1110957637,
-0.0395331979,
0.2422002554,
0.1906731725,
0.201515615,
0.1798171401,
0.2613814175,
0.5777601004,
0.1174139455,
0.0748319179,
-0.0503089912,
0.1031401232,
0.0835024118,
0.6751050353,
-0.4000178277,
-0.7225722671,
-0.2530424297,
-0.4533645511,
0.2187272459,
0.3028257489,
-0.3320925832,
0.3771805763,
-0.0986978784,
0.2939526439,
-0.1937401444,
0.2496270984,
0.6774660945,
0.2722918689,
-0.159102425,
-0.3492661417,
0.1512117833,
-0.0034377824,
-0.0537082255,
0.1847935021,
0.2749773562,
-0.23794429,
-0.2934635282,
-0.1637672037,
1.0209174156,
0.2443389148,
0.1193182692,
0.3104282022,
-0.0527369194,
-0.0079818117,
0.196454376,
-0.0503150523,
-0.1193431243,
-0.4121007323,
-0.1336455494,
0.19815211,
0.1969335079,
-0.0328770615,
-0.2768175304,
0.2222276479,
-0.1008472815,
0.1751749068,
-0.0109474482,
0.2088487744,
-0.1936377883,
-0.2479318678,
-0.260561049,
-0.0473937653,
-0.2364013493,
0.0200661812,
-0.0363359563,
-0.3470352292,
0.0678387135,
-0.1240405217,
0.0769265518,
0.0379772633,
-0.3674460053,
-0.0932489336,
-0.1157980338,
-0.6117063761,
0.0553977899,
0.4280511141,
0.2853176892,
0.0391202047,
-0.06673114,
0.1677937806,
0.0877125636,
0.1801398546,
0.3091611266,
0.0243921764,
0.0402737856,
-0.1551379561,
-0.1314044893,
-0.0628170818,
0.0134135811,
0.0749034733,
0.1975023746,
-0.2475723773,
0.0515442602,
-0.1528297663,
-0.086231038,
-0.101782009,
-0.1632508337,
-0.1315651387,
-0.0022152246,
0.0402716994,
-0.1548285335,
0.0712423846,
-0.4125796854,
-0.2599348426,
-0.0608663,
0.1398813277,
-0.1671388,
0.0775204822,
0.52036798,
0.0167984962,
-0.2329990566,
-0.0333781838,
0.2329238802,
-0.2823855877,
-0.6647088528,
0.1817831546,
-0.1180995926,
-0.1483541578,
-0.1771388948,
0.1371326298,
0.2165924609,
-0.1859780997,
-0.1754052639,
-0.2251504809,
-0.2492233366,
0.2225069553,
0.1570362598,
-0.3977994621,
-0.0619744398,
0.0108599365,
0.0414513834,
-0.3696670532,
-0.1953310072,
0.1427906603,
0.1140150428,
0.1895520091,
0.3243406117,
-0.1180543602,
0.4277881682,
-0.2734619677,
-0.0148273995,
0.1221412942,
-0.1538804173,
-0.0051807016,
-0.3474239111,
0.1853572279,
-0.0777335614,
-0.3043109477,
0.4604099691,
-0.2637860775,
-0.1468286067,
-0.1697722673,
-0.0235546492,
0.387986958,
0.1793337762,
0.3861041069,
0.1867755502,
0.032047376,
-0.2036550641,
-0.0661373138,
0.0063429545,
0.3498301208,
-0.0509152412,
0.0604506582,
-0.1716841608,
-0.0210550427,
-0.3602746427,
0.0146431094,
-0.0233968776,
0.1873981059,
0.419886291,
-0.0934968889,
0.4642077684,
0.1567757726,
0.4490477741,
0.3830248713,
-0.2696902752,
-0.1549532413,
0.3944047987,
-0.0091525912,
-0.3589400053,
-0.2588216364,
-0.0106525971,
0.0224362556,
0.0694458187,
0.2596713305,
-0.2581137717,
0.1111754626,
0.0094980048,
-0.0638385415,
0.2293655127,
0.2435156554,
0.1993741393,
0.7609961033,
-0.0115726534,
0.3824520111,
0.2675470114,
0.347854048,
-0.1239883974,
0.1557785124,
-0.4380688369,
0.2052815259,
0.0087820869,
0.1540038884,
0.2151357234,
-0.2444858551,
0.1786558479,
-0.1012964323,
-0.1621712148,
0.3025262654,
0.2444564998,
0.2978168726,
0.091485016,
-0.0785001293,
-0.2571811676,
0.22932823,
0.0013350997,
0.0638725534,
-0.1532788724,
-0.0588319562,
-0.237537533,
0.1163201258,
-0.2331502736,
-0.1192532629,
0.0293959752,
0.2274260521,
-0.0522673503,
-0.1296635419,
-0.1485738605,
-0.1916070431,
0.1683888137,
-0.3553252816,
0.4113272429,
0.4808717668,
0.0607393943,
0.3053401411,
0.2628375888,
0.3539721966,
0.2184531093,
-0.0363199227,
-0.1749422401,
-0.0082323831,
-0.0014083107,
0.0553755127,
-0.0203867909,
0.111263141,
0.3276287317,
0.4126826525,
-0.038619414,
-0.2065722793,
0.1098174006,
0.3318123817,
0.1627946943,
0.1399686337,
0.2255233824,
0.0474150181,
0.1858668029,
-0.3866494,
-0.2307309955,
-0.4400255978,
-0.0328795537,
0.3114539087,
0.0642786771,
0.0607514493,
-0.1308389455,
0.0092827762,
0.0440631881,
0.2755727768,
0.3633694947,
-0.1716210693,
-0.2750068605,
-0.1976528913,
-0.7981637716,
0.1152368411,
0.1205910444,
-0.410174638,
0.1372202337,
-0.2541256249,
0.2117569596,
0.3293766081,
0.4516022503,
0.3922604322,
0.0213324856,
0.2575166821,
-0.3011135161,
-0.3178921938,
0.2820613682,
0.0814671516,
0.0032856991,
-0.3155743778,
0.1872751117,
-0.081229791,
-0.0601776764,
0.0751497597,
0.0988684073,
-0.269990176,
-0.184444204,
0.0882509872,
0.1237163469,
0.2076883167,
-0.3231985569,
-0.072651282,
0.2163028568,
-0.0832025036,
-0.3936391175,
0.3868004382,
0.1392160803,
0.3357675076,
-0.0714758486,
0.0825797766,
-0.2454700917,
0.0209750123,
-0.1943596303,
-0.0511615612,
-0.425394088,
0.3924120963,
0.1822446734,
0.0126881432,
0.2381560206,
0.4632458389,
0.009115411,
0.2254557908,
-0.2751695514,
-0.2864688337,
0.5551585555,
-0.2530867159,
-0.2212507129,
0.0339665189,
-0.1138578281,
0.0146745276,
-0.172427088,
-0.2080031186,
-0.0527805798,
0.174964577,
-0.1278257966,
-0.1413790584,
0.2535863221,
-0.220542714,
0.0241372753,
0.1338843405,
0.2645462453,
0.3875424266,
-0.3030797541,
0.1145399138,
-0.0837844834
] |
https://github.com/huggingface/datasets/issues/4134 | ELI5 supporting documents | Hi ! Please post your question on the [forum](https://discuss.huggingface.co/), more people will be able to help you there ;) | if i am using dense search to create supporting documents for eli5 how much time it will take bcz i read somewhere that it takes about 18 hrs?? | 19 | ELI5 supporting documents
if i am using dense search to create supporting documents for eli5 how much time it will take bcz i read somewhere that it takes about 18 hrs??
Hi ! Please post your question on the [forum](https://discuss.huggingface.co/), more people will be able to help you there ;) | [
0.2901054323,
-0.5284781456,
-0.2327079624,
0.2695806324,
0.0564925112,
-0.2928771675,
0.2667973936,
-0.1374765933,
-0.0974975601,
0.3248697817,
0.319763124,
-0.4961234629,
-0.1550011188,
0.3862406015,
-0.2598349452,
0.1698532701,
0.3164281845,
0.197365135,
0.2664730847,
0.1186811998,
0.0846746564,
0.0938686877,
-0.1045570448,
-0.3427329361,
-0.4364920259,
0.1355456114,
-0.3825929761,
0.1778986156,
-0.6399852037,
0.0297658108,
-0.1258407831,
0.2100115716,
-0.2390864193,
0.1065617055,
-0.0001189024,
-0.1250636131,
-0.0172764529,
0.0658844486,
-0.1131308004,
0.5498347282,
-0.1480487734,
0.2386481762,
-0.1042145267,
0.112557523,
-0.4437543452,
0.2224346697,
-0.1204248145,
-0.0140415421,
0.2291790694,
0.0807223618,
0.1294649243,
0.3477285504,
0.3240201473,
-0.0914917886,
0.0622729696,
0.2250486761,
-0.1202766374,
-0.2299009711,
0.459466666,
0.1897952259,
0.3488169014,
0.2970534265,
0.3208346665,
-0.2765383422,
0.4838223457,
0.0461507998,
0.339304775,
-0.677306056,
0.304014653,
0.3298331499,
0.430549562,
0.6038680077,
-0.0917889923,
-0.0135576753,
-0.2427250296,
-0.0945694372,
0.421538502,
0.0502810478,
0.1763928831,
-0.0479804613,
0.2319376767,
-0.2087897956,
-0.1188637093,
-0.1739213467,
0.0262753591,
0.1180600747,
-0.1539450884,
-0.3599896133,
0.4276559353,
-0.2539031506,
-0.4230328798,
-0.0427311398,
-0.153522402,
0.3117320538,
-0.0528443716,
-0.1689481139,
-0.274246186,
0.694267571,
0.1800282449,
0.0800773874,
-0.1415262818,
-0.028269615,
-0.3061821759,
-0.039158456,
-0.1208003983,
0.1181669831,
0.0274702441,
-0.1182715818,
-0.2083718777,
-0.2518430948,
-0.2484904677,
-0.037806157,
-0.1699781865,
-0.1007006168,
-0.5532298088,
-0.3603817225,
-0.1679861546,
-0.3955462277,
0.2627535462,
0.2446629554,
-0.1924496144,
0.1074990109,
-0.1802904606,
0.1003308222,
-0.2426362932,
-0.0050735795,
0.1358493268,
-0.1499458402,
-0.0519973524,
0.0715078413,
-0.0248009488,
0.1707969606,
-0.1362844408,
0.0947994739,
-0.0779179484,
-0.4055989981,
0.2708784938,
-0.1934068501,
0.2741427422,
-0.1986261457,
0.0235606134,
-0.1066287979,
0.2995786071,
0.0550924502,
-0.1879636496,
-0.1692093313,
-0.4467667341,
-0.3363292813,
-0.0769922733,
0.1082320884,
0.2368245572,
-0.3354938626,
-0.7879728079,
0.1735198647,
0.3008287847,
0.0978441611,
0.2648771405,
0.0713732019,
-0.3202424645,
0.0452353284,
0.1851549596,
0.2913301885,
-0.221250385,
0.1704867184,
0.3591249585,
0.0434869081,
0.1114538684,
0.1292873174,
-0.2207917571,
0.3403764963,
-0.1683597714,
0.5130726099,
-0.0232855063,
-0.0976368338,
-0.2966716886,
0.3864301145,
0.3172995448,
-0.117722325,
0.0467346609,
-0.0942577124,
-0.1847527176,
-0.1830370873,
0.2947654724,
0.1500859261,
-0.0173381697,
-0.1983394325,
-0.2195307314,
0.2241697609,
-0.1604027003,
-0.054301057,
-0.3808952272,
-0.0718390644,
-0.239895463,
-0.0345405713,
0.0101381997,
-0.1802440286,
-0.2393117845,
-0.172084108,
0.0676890165,
-0.1189140826,
-0.0695613623,
0.337433666,
0.5241234303,
0.3151097894,
0.3337967992,
0.2362249792,
-0.0321209393,
-0.0386259966,
0.2006658018,
0.434533,
0.2601846159,
-0.404230684,
0.066949591,
-0.1915685534,
-0.230016008,
-0.214453876,
0.009915242,
-0.2104083747,
0.3682047129,
-0.0465716086,
-0.0193286184,
-0.172640413,
0.0984913856,
0.2212856412,
-0.3537868261,
-0.1674027741,
-0.3022944629,
0.0739072114,
-0.0456276201,
-0.0564305037,
-0.1175611913,
-0.2445586771,
0.1286744922,
-0.0876305923,
-0.2589136064,
0.164478004,
0.5506497622,
0.6552242041,
0.1404590011,
-0.1859266609,
0.3946769834,
-0.3207912147,
0.0817175135,
-0.2952706218,
-0.3442122042,
0.1375762075,
0.0818273351,
0.3360684216,
0.0241829194,
-0.4229981005,
-0.0420337617,
0.0075090518,
-0.0055392468,
0.0067279106,
0.3888323903,
0.2268374562,
0.0737307444,
0.3025797904,
-0.3012883365,
0.3137798309,
-0.043355424,
-0.0010019069,
-0.4510236382,
0.3491174281,
0.1575219482,
-0.3001254201,
-0.24495399,
-0.5427931547,
0.2118386179,
0.0866104364,
0.216681689,
-0.0163469948,
0.2790875733,
-0.0355357118,
0.339202106,
-0.4203915298,
-0.0046220627,
-0.0013146086,
-0.0960889161,
0.0418508872,
-0.0865786374,
0.0320843607,
-0.3573478758,
-0.0735436156,
-0.0020479592,
-0.3084738255,
0.3839854002,
-0.0551557057,
-0.0079471655,
-0.2149378359,
-0.0945358053,
-0.0264882017,
0.1547581106,
-0.0335919335,
0.054917153,
0.107074894,
0.022974303,
0.3021831214,
0.0435353816,
0.4572040141,
-0.3889425695,
-0.0261207111,
0.1250374913,
0.1096950769,
0.083255887,
0.0847984329,
0.0763697922,
-0.3139491379,
-0.166187048,
-0.3260988891,
-0.4885168374,
0.1860583425,
0.0524969585,
-0.2280677706,
-0.0461244881,
0.1417858899,
-0.0575603433,
-0.1729346067,
0.1086283028,
0.0419058949,
-0.3547692895,
-0.3097098172,
-0.0449306332,
-0.0086038271,
0.1300760806,
-0.1441000998,
-0.2063574344,
0.2616430819,
0.2941811383,
0.0754217356,
-0.1787906885,
-0.153697297,
-0.0325234272,
0.0364190899,
0.0571373068,
0.1821006089,
-0.1385148615,
-0.4164530933,
0.1575000435,
-0.2113611549,
-0.0322917625,
0.1767852008,
-0.1121217981,
-0.0027924718,
-0.1853388995,
0.0228752717,
-0.1564483494,
-0.3551533818,
-0.031809222,
-0.0266268179,
0.1525728256,
0.4417873919,
0.0771227926,
-0.2710354626,
0.2610111833,
-0.0570926517,
0.1646378785,
-0.0353916585,
0.1312231869,
-0.225924015,
0.3792990744,
-0.0219027903,
0.3333385587,
0.1636391729,
-0.0386197008,
-0.0431748182,
-0.0926916748,
-0.0590257458,
-0.4499241114,
-0.0777339339,
0.3331726491,
0.3227483034,
-0.12912637,
0.244597584,
0.300876677,
-0.0040170909,
-0.1713467389,
-0.1460386217,
-0.5413642526,
-0.0362227075,
-0.0736163631,
-0.0217931066,
0.3162184358,
0.013639003,
-0.2484484762,
0.1084703058,
-0.3655309975,
0.0274045151,
0.1248222739,
0.1356421113,
-0.2074846178,
-0.0230917428,
0.17582874,
-0.3413153291,
0.4978820086,
0.0542199202,
-0.2074580193,
-0.1529851407,
0.0313405357,
0.2873605192,
-0.1547325552,
0.4454325736,
0.0895451903,
-0.1845917255,
-0.4012928605,
-0.0343832523,
0.388751924,
0.0356412753,
0.0611374117,
-0.0136981849,
0.2562070787,
0.0131507954,
-0.2491651922,
-0.1984518319,
0.4605800211,
0.1923794597,
-0.0853526667,
-0.0202171914,
-0.0760591552,
-0.376993984,
0.0534996167,
0.1601067334,
0.1447142363,
0.0380563848,
-0.0371398926,
-0.3145861924,
-0.0323493779,
-0.1572429389,
0.229800418,
-0.4224050045,
-0.2330942452,
-0.187610209,
0.3560557961,
0.2504927814,
0.315117538,
0.051048696,
0.2304902375,
-0.2629445493,
0.120802328,
-0.2854636312,
-0.3239410222,
0.2359476388,
0.5977921486,
0.2227971852,
0.0806231424,
0.1013083532,
0.3694257438,
-0.251827687,
0.013230091,
0.4982252717,
0.2645516694,
-0.334589988,
0.0047480543,
-0.1266067624,
0.2023339421,
-0.1073136106,
-0.0737200156,
0.8110781312,
-0.087134622,
0.237289682,
-0.1460287869,
1.3538731337,
-0.0636417344,
-0.03424564,
-0.1910421848,
0.0142623764,
-0.1021148488,
-0.3239430189,
-0.0075627747,
-0.3583009243,
-0.4497733116,
-0.0235797781,
-0.0916276947,
-0.0832655504,
0.23747015,
-0.0636435524,
0.1063412055,
-0.1719354689,
-0.1920715123,
-0.2940613329,
0.6041377783,
-0.0081241084,
-0.0294439439,
0.1618074924,
0.153448537,
0.32870242,
0.3519451022,
0.1517182291,
0.2124216706,
-0.0635662377,
-0.1070037112,
-0.319085598,
0.0842748359,
-0.0307219755,
-0.3030052483,
0.1590244472,
-0.2263172418,
0.2571722865,
0.2180123627,
0.4957207143,
0.0102483919,
-0.1706494242,
0.432348609,
-0.0664064959,
-0.0952760503,
0.2153870314,
-0.2715328038,
-0.0152871348,
-0.1906400472,
0.035577219,
0.1127188578,
-0.2087513208,
0.0378253311,
-0.5895503759,
-0.263241291,
-0.1847512424,
-0.1624152064,
-0.191274479,
0.2392526269,
-0.457531482,
0.1836731136,
0.1602186561,
0.3513438106,
-0.1897038519,
0.3489337862,
0.2654789984,
0.0438654162,
-0.0316340923,
0.3346117735,
0.0258439127,
-0.048601158,
0.1884907633,
-0.0353651121,
-0.3531840742,
-0.147151649,
0.2389251888,
-0.016886428,
-0.0665499419,
-0.0288382638,
0.5168627501,
-0.0242462568,
0.0038707636,
0.5916089416,
0.070203647,
0.0371901616,
0.0782635435,
0.0520194434,
0.1025048494,
-0.0382863879,
-0.0363707393,
0.1381091475,
-0.2876518667,
-0.0451178737,
-0.0191748831,
0.1691242605,
-0.3018763065,
0.4161156118,
-0.2635418773,
0.2460875809,
-0.1334243864,
-0.2696624994,
0.3154349327,
0.0375024639,
0.2164818645,
0.1750063598,
0.0063598733,
-0.1373644322,
0.12859115,
0.1155007258,
0.1119136587,
0.1057498083,
0.1423653662,
-0.0155755272,
-0.1617328227,
0.0060122362,
-0.093517907,
-0.1698872298,
0.1964726001,
-0.223162204,
-0.1277842373,
0.1006514728,
0.1412220448,
0.1950603724,
0.0808118135,
0.4629952908,
0.0514031388,
-0.095113866,
-0.0916311219,
-0.1859951019,
0.4539453089,
0.4068446755,
0.038100224,
-0.44996804,
0.3128715754,
0.0767831281,
-0.1874647588,
-0.2227592617,
0.3686871231,
0.1502764076,
0.0001621465,
0.1878558397,
0.1819466949,
0.2167049199,
-0.0082395757,
-0.1697287709,
0.0554659553,
-0.3773454726,
0.0257663596,
0.2530290186,
0.2955937982,
0.0462437719,
0.3454615474,
0.061027687,
-0.0574849397,
-0.1620326936,
-0.3746456206,
-0.6174541712,
0.0289374515,
-0.0668606237,
0.1272702664,
0.1336049289,
0.2453040183,
-0.0727242529,
-0.0526090935,
-0.0634941682,
-0.0807114169,
0.6701939106,
0.3312236965,
-0.0545368157,
0.1574076265,
0.3707534075,
0.0914683938,
-0.0886557847,
0.0673342124,
0.2283615768,
-0.0468120687,
-0.0515706725,
-0.1637834311,
0.3673228025,
0.113939248,
0.108757928,
0.2968144119,
-0.2543425262,
-0.3869635463,
0.1734782755,
0.07721477,
0.1697178483,
-0.2647343576,
0.2150620818,
0.2546690106,
0.4207049012,
0.1695016623,
-0.0767855048,
0.6068627834,
-0.2187973559,
0.2353238016,
-0.0379514508,
-0.1326032728,
0.2050228566,
0.2729413509,
0.1928751469,
0.0151554551,
-0.363822788,
0.3005207777,
-0.0756975412,
-0.2312449515,
0.0265971199,
0.2667489052,
0.1229494959,
-0.1006620452,
-0.2233314365,
0.046547357,
-0.2401487529,
-0.5026908517,
-0.2643249631,
0.3231200278,
0.0060693859,
-0.4231647551,
0.029389333,
-0.1977374107,
-0.4681098759,
0.0094321547,
-0.5031443238,
-0.0718491599,
-0.3119626641,
-0.0613533221,
-0.0351894274,
0.1400333643,
0.0224638414,
0.0710765421,
0.4457550049,
0.3052335083,
0.2241411507,
-0.0225532092,
-0.7128717899,
0.0239301492,
-0.0993340611,
0.0930286273,
-0.1241472811,
-0.0256723668,
0.1586097181,
0.2612168789,
-0.0175083429,
0.1185403466,
-0.2739961743,
-0.0313740484,
0.1938059479,
-0.0695955977,
0.4098658264,
0.0741882548,
0.1537051052,
0.0386333466,
0.0561147295,
0.1462509334,
-0.1201258525,
0.043098893,
-0.2003644407,
0.4470054209,
-0.191201061,
0.3615258634,
0.0081513366,
0.0903775543,
0.0620604157,
0.0747709051,
-0.2047580928,
0.4181312025,
0.364515543,
0.0776906163,
0.1017158255,
0.2770953178,
-0.2086728364,
0.0547990501,
-0.0675455257,
0.0020621249,
0.1603007466,
-0.0135512725,
-0.0858366936,
-0.2847908735,
-0.0592017062,
-0.0732918084,
0.1048701927,
0.2366289645,
0.13494201,
-0.0981676728,
-0.2818506658,
-0.4619793296,
-0.1632874012,
0.5795601606,
0.4821265638,
0.1990154982,
-0.1090902761,
0.1974838674,
0.5469688177,
-0.0066831815,
-0.1641324162,
-0.0158715621,
0.1196702197,
0.0956629068,
-0.0393581986,
0.0179470591,
0.6058092713,
-0.0083195278,
-0.3878248632,
-0.3379360139,
-0.0030358688,
0.1125980169,
-0.5808365345,
-0.0164526198
] |
https://github.com/huggingface/datasets/issues/4133 | HANS dataset preview broken | The dataset cannot be loaded, be it in normal or streaming mode.
```python
>>> import datasets
>>> dataset=datasets.load_dataset("hans", split="train", streaming=True)
>>> next(iter(dataset))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 497, in __iter__
for key, example in self._iter():
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 494, in _iter
yield from ex_iterable
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 87, in __iter__
yield from self.generate_examples_fn(**self.kwargs)
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/hans/1bbcb735c482acd54f2e118074b59cfd2bf5f7a5a285d4d540d1e632216672ac/hans.py", line 121, in _generate_examples
for idx, line in enumerate(open(filepath, "rb")):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/spec.py", line 1595, in __next__
out = self.readline()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/spec.py", line 1592, in readline
return self.readuntil(b"\n")
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/spec.py", line 1581, in readuntil
self.seek(start + found + len(char))
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/implementations/http.py", line 676, in seek
raise ValueError("Cannot seek streaming HTTP file")
ValueError: Cannot seek streaming HTTP file
>>> dataset=datasets.load_dataset("hans", split="train", streaming=False)
Downloading and preparing dataset hans/plain_text (download: 29.51 MiB, generated: 30.34 MiB, post-processed: Unknown size, total: 59.85 MiB) to /home/slesage/.cache/huggingface/datasets/hans/plain_text/1.0.0/1bbcb735c482acd54f2e118074b59cfd2bf5f7a5a285d4d540d1e632216672ac...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/load.py", line 1687, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 605, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1104, in _download_and_prepare
super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 694, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1087, in _prepare_split
for key, record in logging.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/tqdm/std.py", line 1180, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/hans/1bbcb735c482acd54f2e118074b59cfd2bf5f7a5a285d4d540d1e632216672ac/hans.py", line 121, in _generate_examples
for idx, line in enumerate(open(filepath, "rb")):
ValueError: readline of closed file
```
| ## Dataset viewer issue for '*hans*'
**Link:** [https://huggingface.co/datasets/hans](https://huggingface.co/datasets/hans)
HANS dataset preview is broken with error 400
Am I the one who added this dataset ? No
| 224 | HANS dataset preview broken
## Dataset viewer issue for '*hans*'
**Link:** [https://huggingface.co/datasets/hans](https://huggingface.co/datasets/hans)
HANS dataset preview is broken with error 400
Am I the one who added this dataset ? No
The dataset cannot be loaded, be it in normal or streaming mode.
```python
>>> import datasets
>>> dataset=datasets.load_dataset("hans", split="train", streaming=True)
>>> next(iter(dataset))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 497, in __iter__
for key, example in self._iter():
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 494, in _iter
yield from ex_iterable
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 87, in __iter__
yield from self.generate_examples_fn(**self.kwargs)
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/hans/1bbcb735c482acd54f2e118074b59cfd2bf5f7a5a285d4d540d1e632216672ac/hans.py", line 121, in _generate_examples
for idx, line in enumerate(open(filepath, "rb")):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/spec.py", line 1595, in __next__
out = self.readline()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/spec.py", line 1592, in readline
return self.readuntil(b"\n")
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/spec.py", line 1581, in readuntil
self.seek(start + found + len(char))
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/implementations/http.py", line 676, in seek
raise ValueError("Cannot seek streaming HTTP file")
ValueError: Cannot seek streaming HTTP file
>>> dataset=datasets.load_dataset("hans", split="train", streaming=False)
Downloading and preparing dataset hans/plain_text (download: 29.51 MiB, generated: 30.34 MiB, post-processed: Unknown size, total: 59.85 MiB) to /home/slesage/.cache/huggingface/datasets/hans/plain_text/1.0.0/1bbcb735c482acd54f2e118074b59cfd2bf5f7a5a285d4d540d1e632216672ac...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/load.py", line 1687, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 605, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1104, in _download_and_prepare
super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 694, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1087, in _prepare_split
for key, record in logging.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/tqdm/std.py", line 1180, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/hans/1bbcb735c482acd54f2e118074b59cfd2bf5f7a5a285d4d540d1e632216672ac/hans.py", line 121, in _generate_examples
for idx, line in enumerate(open(filepath, "rb")):
ValueError: readline of closed file
```
| [
-0.346259594,
-0.3120446801,
0.0280241612,
0.3308504522,
0.1779608727,
-0.0072313831,
0.201488018,
0.2768096924,
0.0376163647,
-0.036823485,
-0.3076952994,
0.1620683521,
-0.0498246849,
0.0480444469,
0.1839516014,
-0.2982971966,
0.0739781484,
0.2516166568,
-0.4996129572,
0.224156633,
-0.0399106778,
0.1456898153,
-0.0991097614,
-0.0649145767,
0.0479052663,
0.0230545569,
0.0709838644,
0.0172687583,
-0.2665056586,
-0.6187421679,
0.1212819442,
0.0780552104,
0.297857672,
0.6596605778,
-0.0001200227,
0.1963914782,
0.3520887792,
0.0712906942,
-0.4115853608,
-0.1047428921,
-0.0293488763,
-0.0589699298,
0.1386758685,
-0.1202103794,
-0.097314015,
-0.3181647956,
-0.1223053932,
-0.3808546662,
0.391203016,
0.3290100992,
0.1830463856,
0.3846890628,
0.1639099419,
-0.0528175719,
0.1328180581,
-0.0857981145,
-0.2362029701,
0.6326436996,
0.1204133853,
0.2220451683,
0.0978258923,
0.2935277224,
0.0706512034,
-0.1645113528,
0.3286890388,
-0.2784553766,
0.1058323681,
-0.4004333913,
0.1158383042,
0.2647137344,
0.6216451526,
-0.1565761566,
-0.4335286617,
-0.1845736206,
0.2708211243,
-0.3312539458,
0.139610067,
0.0946232304,
-0.0087839346,
0.0737255439,
-0.2307997197,
-0.1763112694,
-0.1190467328,
0.1092073619,
0.0911099389,
0.5131785274,
-0.163435936,
0.1609343737,
0.279769659,
-0.0115565946,
0.4017841816,
0.0332701541,
-0.4573647678,
0.0574145131,
-0.2492199242,
-0.1464368254,
-0.0200495571,
-0.1475821435,
-0.0619913377,
0.2065096051,
0.1578439623,
-0.0299974754,
0.1651090831,
-0.0983234495,
0.4012856781,
0.0438193865,
0.0882219747,
0.2026258409,
0.1780847609,
0.4304440022,
0.3775084317,
-0.1407994926,
-0.111722514,
-0.2394810319,
-0.1173611581,
-0.0914176852,
0.2642721534,
-0.0143699879,
-0.2743641734,
0.16191791,
-0.298040837,
-0.0950989947,
0.1851728559,
0.3511516154,
-0.2830325365,
0.1531446576,
-0.1618634462,
0.2234062254,
-0.1241608635,
-0.0923960209,
-0.0274984315,
0.0322875232,
-0.1146653444,
-0.0815369263,
0.0677538291,
-0.1575218141,
0.0882542357,
-0.099270761,
0.2397582233,
-0.3167875707,
0.1428304464,
-0.2066708058,
0.0110239834,
0.3145836294,
0.0934114829,
0.202492103,
0.032756269,
-0.2378509194,
0.0101899058,
-0.0330307297,
-0.2482246011,
-0.3556087315,
-0.1764977574,
0.162904039,
-0.3376628757,
-0.1991628855,
-0.2771175802,
-0.0621582381,
-0.3139615953,
-0.1244791821,
0.2328213155,
-0.0622061193,
0.0586293824,
0.0993240252,
0.2046873271,
0.6047250032,
-0.5409657359,
-0.2808967531,
-0.3309547901,
-0.3055823743,
0.0110855689,
0.0797636136,
-0.2021361738,
0.2218040824,
-0.2991608381,
-0.223554492,
0.3003294766,
-0.2997476161,
-0.4981093407,
0.4109448195,
-0.1007490233,
0.2321064919,
-0.022949094,
0.0504676364,
0.0873031542,
-0.172897473,
0.0955705047,
-0.0539030209,
0.1674348712,
-0.1253981888,
-0.0545670278,
-0.1493572444,
0.0102381473,
0.1243425682,
0.1880630553,
-0.0654220134,
0.0828749835,
-0.1577210873,
0.3791998029,
-0.0941906944,
0.0803648457,
0.368778646,
0.294054091,
0.2837879062,
0.0973820388,
-0.1344343871,
-0.2395765632,
0.104233712,
-0.3043522239,
-0.1497559845,
0.0992804468,
-0.0241113603,
-0.407343626,
0.0849678814,
-0.3652142584,
-0.3888704181,
0.137292847,
0.0519859567,
-0.2159911096,
-0.1692287475,
-0.2984240353,
0.0479619801,
0.167274937,
0.1722118109,
-0.2308877259,
0.3852299154,
0.0295680836,
0.0026709335,
0.0841621384,
0.3094876111,
0.2949050069,
-0.2995554209,
-0.2324151397,
0.5804004073,
-0.1699457765,
0.2553894818,
0.0952380076,
-0.2905744612,
0.350625962,
-0.5231717825,
-0.1371423155,
0.0802852437,
0.0022017045,
0.0735737309,
0.0137248589,
-0.0577405728,
-0.2274947613,
0.2271629721,
0.1036124229,
0.3113609254,
0.0596459173,
0.0974243134,
-0.2440261543,
-0.3096760809,
0.383820504,
-0.3972635865,
0.3441170454,
-0.1170510724,
-0.280895412,
-0.0486150123,
-0.0638825148,
-0.0404374152,
-0.0764183477,
0.1761948019,
-0.4355847239,
0.0868080184,
0.1422630548,
0.3221615851,
0.3226791918,
0.0071265986,
-0.0846808925,
0.0157528557,
0.3541176319,
-0.0282968357,
0.2236541808,
0.1315648705,
0.2677793205,
0.223352477,
-0.0704460442,
0.0404239334,
-0.283043474,
-0.3530385196,
-0.0052033444,
0.1575148404,
-0.2487486154,
0.1717699766,
-0.1198666617,
-0.4442698658,
-0.2047757953,
-0.3015801907,
-0.1958786249,
-0.2097905874,
-0.1933137327,
0.1669530571,
-0.0731420293,
0.1098176688,
-0.2700367272,
0.0932027176,
0.1173840538,
0.0158140231,
-0.1830460876,
0.172217533,
-0.1955655813,
0.0219590645,
0.0744740963,
-0.186128974,
0.3645031452,
-0.10573823,
-0.0017372178,
-0.5700997114,
-0.2210547477,
0.2787924111,
-0.0508663356,
0.4137682915,
0.2568270862,
0.2959460914,
0.0259693787,
-0.1308370382,
0.2130732089,
-0.1186871305,
0.2508676648,
0.1406068653,
-0.2037828267,
-0.0127431471,
0.0277372506,
-0.0425484851,
-0.240000993,
-0.3053475022,
0.3201070726,
0.1350359619,
-0.007620553,
0.1978611499,
0.0813269541,
0.0240619555,
-0.1171639487,
0.0095080463,
-0.0343690962,
-0.4965420365,
0.2852584124,
-0.4563151598,
-0.386046946,
0.0402770303,
0.1409375817,
0.1969896108,
-0.2702491581,
-0.5670872331,
-0.1565270275,
-0.2283101529,
-0.1683722287,
-0.0828093141,
-0.1322121471,
0.0200711899,
-0.0470310375,
0.0379010178,
-0.2060890049,
-0.0904955789,
-0.0211529601,
-0.2870212197,
0.3142880797,
-0.257864207,
0.3079534471,
0.0127602117,
0.5249296427,
0.6012281179,
0.2264720649,
0.2832594216,
-0.1104094684,
0.4730514586,
0.0133739039,
-0.3232927024,
0.0969006941,
-0.1657776088,
0.1164551526,
0.0728849247,
0.0615513995,
-0.2811056674,
-0.2456321567,
0.1125171706,
-0.1914473623,
-0.2451202273,
-0.1089600474,
-0.3530442119,
0.0276851766,
-0.0473026969,
0.2403722852,
-0.1677330732,
-0.2293407321,
0.1355514824,
0.2180440724,
0.1844767332,
0.0661142915,
-0.3231128752,
-0.2162019908,
-0.5297678709,
0.0544107333,
-0.0811677277,
0.5569455624,
-0.0650734305,
0.075101234,
0.1378921121,
-0.0787948444,
0.6147181392,
-0.1632849872,
0.1137445197,
0.1256182045,
-0.0213324204,
-0.3511778712,
-0.1196763217,
-0.1540246904,
0.0672780424,
0.3911965489,
0.4504500031,
-0.0907227024,
-0.0587563515,
0.6948474646,
-0.0830848366,
-0.1060538888,
-0.4683189094,
-0.1163578928,
-0.1064475477,
-0.0279040691,
-0.2082410753,
-0.1063566133,
0.0857900009,
-0.0276932549,
0.0721791983,
0.0556600913,
-0.126986295,
0.2266491205,
0.0961578712,
0.2519569397,
0.1096134335,
0.2568750381,
0.5736167431,
0.0050874101,
0.2508364618,
0.7199139595,
0.0665216967,
-0.3977077603,
0.2361959219,
0.1699452996,
0.0198601913,
0.2921400368,
-0.0869537815,
0.0553554147,
0.1490240246,
0.3838465214,
-0.2488196045,
0.2399275154,
0.5032994151,
-0.0414573662,
-0.7190003991,
-0.4212254286,
0.5114870667,
0.0780770332,
0.0732903183,
0.2080509961,
0.4101262391,
-0.1268326193,
0.0334730633,
0.0926104039,
0.7751469612,
0.1536842287,
0.0052857804,
0.3713528514,
-0.1569011956,
0.3156897128,
-0.3676039577,
-0.0570224896,
-0.2303848863,
-0.4813118279,
-0.142171517,
-0.1990219057,
0.2533833981,
-0.1703741699,
-0.1383036375,
0.114654839,
-0.0333053917,
0.1122888699,
-0.0681822971,
0.172852844,
-0.404709816,
-0.0477266349,
-0.0839623511,
0.1060767919,
-0.0805127993,
0.3258064389,
-0.2319965214,
-0.1722540259,
0.0053647673,
-0.0051291171,
-0.3640822768,
0.2048757672,
0.0080681583,
-0.1398777813,
0.0145813553,
-0.5642552376,
0.2853683829,
0.1639037132,
0.1065327227,
0.2706307173,
-0.2425018847,
0.4094442725,
-0.0544569418,
-0.158741042,
0.0359145738,
0.0792518035,
0.1718692034,
-0.1281162351,
-0.1722638309,
0.2024019361,
-0.0321532376,
-0.0465826653,
0.0489069633,
-0.0651992336,
-0.0808549076,
-0.2884303629,
-0.0013107442,
-0.0761832595,
0.1197003052,
-0.1898461431,
0.0595624819,
-0.0015428024,
-0.0402219631,
-0.266625911,
0.0477248579,
-0.2375962138,
-0.2197000235,
0.3722871244,
-0.2189657837,
-0.1188745946,
0.5923466682,
0.2701386213,
-0.2173651457,
-0.0946029574,
-0.1364684701,
0.2972210646,
-0.6248415112,
0.0434351452,
-0.1746916622,
0.2898885012,
-0.087546505,
-0.1548890769,
0.1280777156,
-0.295371145,
-0.039959237,
-0.4128547609,
-0.2663010359,
0.1394763738,
-0.0494381152,
0.3080224693,
-0.0005621062,
0.2245437205,
-0.0356650352,
0.0359622091,
-0.2154294699,
0.0428982265,
0.0443495847,
-0.1006517559,
0.1639384776,
-0.0978955179,
0.1424773782,
-0.1155964136,
0.0996212438,
0.1553154141,
-0.0540794171,
-0.1195809171,
-0.3133561611,
0.1610583812,
-0.0389006808,
-0.5537577271,
0.1027466208,
-0.1263573021,
-0.1358326226,
-0.0864944309,
0.1418920606,
0.1221895218,
0.1882359385,
0.0281709172,
0.1073046252,
-0.0470616184,
-0.2261602581,
0.229461953,
0.1950722039,
0.385704875,
-0.0238145385,
0.2497607023,
-0.1586949527,
-0.0809980556,
-0.364980191,
0.1460557431,
0.3477202356,
0.1400296092,
0.4258227646,
-0.5606870651,
0.4423204958,
0.2110702544,
0.5049422979,
0.4891232848,
-0.3339161277,
0.0443407707,
0.2399762422,
0.1208631545,
-0.0928771421,
-0.0945700929,
0.0292815287,
0.2702153921,
0.1625566036,
0.0580677763,
-0.0725447163,
0.154053241,
0.0193804707,
0.2011320889,
0.0641843081,
0.2746245861,
0.4237921834,
0.5029149652,
-0.071906507,
-0.0368511714,
0.1923885792,
0.1837586612,
0.1777168363,
0.5153829455,
-0.0809700713,
0.0304497257,
0.0450660847,
0.0878934935,
0.1595390886,
-0.4566736221,
0.0603044629,
-0.0842608437,
-0.0282404274,
0.1513303071,
0.2639044821,
0.4405710697,
-0.2836016119,
0.0206485651,
-0.3088930249,
0.0965950713,
0.0147982342,
0.0217872374,
-0.1188728884,
-0.189172864,
-0.0908644721,
0.1491346955,
-0.1597071737,
-0.1659718901,
-0.2450498939,
0.2326362282,
-0.2072742432,
-0.4395385683,
-0.1650283039,
0.2301403135,
0.2164859176,
-0.1756673455,
0.156666249,
0.3220581114,
-0.0228082072,
-0.0019795361,
0.2995554805,
0.3012048602,
0.1783978939,
0.18778117,
0.0750704706,
0.1355101615,
-0.1198782176,
0.1489073932,
0.0866385996,
0.3081041873,
0.0968576074,
0.3713425994,
0.1016193405,
-0.218400985,
0.2937809527,
-0.0951934829,
0.4651570916,
-0.4374667406,
0.1919170767,
-0.3575784266,
-0.0329149626,
-0.1902496815,
-0.3546233177,
-0.2357087731,
0.0538517423,
0.459073633,
-0.0182173159,
0.0339500159,
-0.3039865792,
0.0399007164,
0.1474971473,
0.3187486231,
0.2763414979,
0.0713793933,
-0.1100324392,
-0.099903129,
-0.4851973355,
0.0129145905,
0.0946990922,
0.3035765588,
0.1379692107,
-0.2069672197,
-0.257853508,
0.1283917576,
0.4269706607,
0.130625695,
0.1613813341,
0.4530739188,
0.0103632323,
-0.1329975426,
-0.1508592665,
0.3457824886,
-0.044626534,
-0.229893297,
0.1060558334,
-0.1340163201,
-0.0604759529,
-0.0468484983,
-0.3223476112,
-0.0344574973,
-0.4598968029,
0.3845743239,
0.1728697866,
0.5570703149,
0.0204749219,
-0.2409012467,
-0.4442610145,
-0.4005979002,
-0.10266231,
-0.022234356,
0.2301037312,
0.4178070724,
-0.0290798508,
-0.151513651,
-0.2996167541,
0.1289744079,
-0.0117525486,
0.1786168665,
-0.6296762228,
0.225022018,
-0.2177238762,
0.0981306285,
0.4108232558,
0.3666989505,
0.0519046709,
0.198482573,
-0.1846624166,
-0.3600585461,
0.6068568826,
-0.6287471056,
-0.0754240379,
0.0067819501,
0.0714685321,
0.1575329304,
-0.3767528236,
-0.3115733564,
0.2054013908,
0.3532024324,
-0.1681798995,
0.0430926681,
0.1624958962,
-0.1418067068,
0.0927579105,
-0.053873729,
1.0189207792,
0.2453799993,
-0.122384198,
0.3416141868,
-0.0271512493
] |
https://github.com/huggingface/datasets/issues/4133 | HANS dataset preview broken | Hi! I've opened a PR that should make this dataset stremable. You can test it as follows:
```python
from datasets import load_dataset
dset = load_dataset("hans", split="train", streaming=True, revision="49decd29839c792ecc24ac88f861cbdec30c1c40")
```
@severo The current script doesn't throw an error in normal mode (only in streaming mode) on my local machine or in Colab. Can you update your installation of `datasets` and see if that fixes the issue? | ## Dataset viewer issue for '*hans*'
**Link:** [https://huggingface.co/datasets/hans](https://huggingface.co/datasets/hans)
HANS dataset preview is broken with error 400
Am I the one who added this dataset ? No
| 65 | HANS dataset preview broken
## Dataset viewer issue for '*hans*'
**Link:** [https://huggingface.co/datasets/hans](https://huggingface.co/datasets/hans)
HANS dataset preview is broken with error 400
Am I the one who added this dataset ? No
Hi! I've opened a PR that should make this dataset stremable. You can test it as follows:
```python
from datasets import load_dataset
dset = load_dataset("hans", split="train", streaming=True, revision="49decd29839c792ecc24ac88f861cbdec30c1c40")
```
@severo The current script doesn't throw an error in normal mode (only in streaming mode) on my local machine or in Colab. Can you update your installation of `datasets` and see if that fixes the issue? | [
-0.4986243248,
-0.1840554327,
0.032281667,
0.2166861296,
0.2157129794,
0.0747323558,
0.1014707163,
0.2017798275,
-0.0046712356,
0.1359724402,
-0.2016773522,
0.1920164078,
-0.0896616727,
0.2093836367,
0.0798815563,
-0.3173092306,
0.1725661606,
0.1805787832,
-0.5114350915,
0.3107070625,
-0.0325816721,
0.0036508653,
-0.1924710274,
-0.3112256825,
-0.0108426502,
-0.00450115,
-0.0212986097,
-0.1948320121,
-0.3267859817,
-0.5259723067,
-0.0428301767,
0.1152091026,
0.4820347428,
0.5966663361,
-0.0001203778,
0.0708346963,
0.4161647558,
0.0138023738,
-0.3674425483,
-0.1970622241,
0.028279433,
-0.0709187239,
0.2249105573,
-0.0449695811,
-0.0976042971,
-0.1241460294,
0.038932588,
-0.2975169718,
0.4885000885,
0.33361426,
0.206651628,
0.2224799395,
0.1448803842,
-0.1328930408,
0.223347947,
-0.1247265041,
-0.3526691496,
0.56242311,
0.2073323727,
0.2802621126,
0.1881730855,
0.3266299069,
0.1235767379,
-0.2516745031,
0.244832471,
-0.2966710329,
0.0106455786,
-0.44708547,
0.3287943006,
0.2860450745,
0.6933211088,
-0.2253371328,
-0.3542621434,
-0.061474368,
0.3706542552,
-0.2375984788,
0.068939738,
0.0007783328,
0.1111506298,
0.1102304757,
-0.3569670618,
-0.2009234279,
-0.0544597097,
0.0979633778,
0.0912815481,
0.4484085143,
-0.1330056489,
0.1279902458,
0.2804666758,
-0.0212661345,
0.4488321245,
0.0859806538,
-0.3952940106,
0.063167356,
-0.1561072171,
-0.0556461103,
-0.13935709,
-0.0815824866,
-0.0303174444,
0.1595147997,
0.086334981,
-0.017481992,
0.1925316304,
-0.1016913727,
0.4459753036,
0.0653781369,
0.1404066831,
0.1395719945,
0.2074382156,
0.3183930516,
0.3001107275,
-0.1231217608,
-0.1596345454,
-0.2525959015,
-0.0877600312,
-0.0971575379,
0.1878542602,
-0.1251299828,
-0.3594770133,
0.1790180653,
-0.2733461857,
-0.0399702154,
0.1683876961,
0.2777121067,
-0.4110692739,
0.0412251018,
-0.2268895805,
0.2412590832,
-0.240509972,
0.024071984,
-0.0708961189,
-0.0433002487,
-0.1174538359,
-0.0036731076,
0.020089725,
-0.1518684924,
0.0915758386,
-0.1606310457,
0.3904303312,
-0.3018395305,
0.045724906,
-0.1529807895,
-0.1318819076,
0.2902252078,
0.1601334214,
0.1250401735,
-0.0685185716,
-0.2573831677,
0.0311145633,
0.1138993502,
-0.2101022601,
-0.4294474125,
-0.2216086686,
0.135904178,
-0.406129688,
-0.1391431838,
-0.3282915056,
0.0666981339,
-0.2752328515,
-0.0425143763,
0.1573244333,
-0.1126138493,
0.007362932,
0.142455861,
0.066577062,
0.4902495146,
-0.5886284113,
-0.264133513,
-0.411757946,
-0.2426382005,
0.1603251994,
0.0587862469,
-0.178474471,
-0.0696504638,
-0.1193025336,
-0.1928659081,
0.2448362112,
-0.1199533567,
-0.5992701054,
0.265278101,
-0.1341898441,
-0.0871128961,
-0.1887185872,
-0.0448199846,
0.2469441146,
-0.1178461462,
0.1342837065,
-0.191293329,
0.0945986137,
-0.1836206317,
-0.1338980347,
-0.2724322975,
0.1292378157,
0.0082534421,
0.2558578253,
-0.0606648363,
0.1254405975,
-0.034156125,
0.3202463984,
0.1032863557,
0.1510607898,
0.3343030512,
0.4257801771,
0.1645195484,
0.0139890062,
-0.159984678,
-0.1565784365,
0.03234623,
-0.2321029752,
-0.118434228,
0.1302780956,
-0.1370134056,
-0.3782783747,
0.0155355204,
-0.1276079118,
-0.1954948455,
0.091298528,
-0.0721776485,
-0.2779310644,
-0.1104313806,
-0.2988371849,
-0.1282003671,
0.0610164143,
0.1130288616,
-0.0049378299,
0.4454068542,
-0.0413707793,
-0.1960442364,
0.1547151655,
0.2232614756,
0.246314615,
-0.3575467765,
-0.3035814762,
0.533723712,
-0.1070427001,
0.030677449,
0.0774700865,
-0.2575583756,
0.3729669452,
-0.4438630044,
-0.1691914052,
-0.0442235433,
-0.1357411593,
0.0728201047,
-0.0667115599,
-0.0487078838,
-0.2996088862,
-0.0076923869,
-0.0306773484,
0.431496799,
0.1362597942,
0.1170324683,
-0.1613126695,
-0.4449877739,
0.2576130033,
-0.4053680897,
0.2004828751,
-0.0700092167,
-0.2743683755,
0.1081620604,
-0.1904805154,
0.0300849881,
-0.1062162444,
0.1679097712,
-0.3403767347,
0.0176329073,
0.2419808209,
0.3908300102,
0.1537173688,
0.1130547822,
0.008047861,
0.0119028436,
0.2690204382,
-0.0626378655,
0.0906205997,
0.0202149767,
0.2191171497,
0.2314469665,
-0.0511276908,
-0.000658358,
-0.3444563448,
-0.1453284025,
0.120920442,
0.2656461298,
-0.0703472421,
0.064312987,
-0.1896500587,
-0.4441567659,
-0.2801681459,
-0.2737618983,
-0.2629029453,
-0.1309660375,
0.0335190296,
0.196527034,
-0.1146989167,
0.1984140277,
-0.2850172222,
0.1274087429,
-0.0242364816,
0.0395344421,
0.0166455228,
0.206935212,
-0.2117244154,
0.0857215971,
0.0482512675,
-0.1263850629,
0.3203766644,
-0.1233807057,
0.0878041014,
-0.5288140178,
-0.2050964683,
0.3362737,
-0.0813189149,
0.4203436673,
0.1349625736,
0.1624440998,
-0.1772998422,
-0.0391132608,
0.0777999684,
-0.1461849809,
0.275259167,
0.0418330468,
-0.1627410501,
-0.1833604276,
0.0122269373,
-0.1326213777,
-0.2089364976,
-0.1943272799,
0.2162069082,
0.1734373868,
-0.0837780237,
0.1548628956,
0.1303459406,
0.0553455204,
-0.0066268235,
-0.0507331379,
-0.0505084954,
-0.4870691299,
0.2102666199,
-0.3906060457,
-0.4101242423,
0.1319230348,
0.113255702,
0.1533889621,
-0.1771623343,
-0.5836985111,
-0.121674709,
-0.2024499178,
-0.2167432904,
-0.0531070456,
-0.1927932203,
0.1805372387,
-0.1044493467,
0.0374149382,
-0.1513350159,
-0.1761573553,
-0.0960600451,
-0.0849084184,
0.4929616153,
-0.4233577549,
0.1832639277,
-0.0305779632,
0.4634494781,
0.5845210552,
0.2198488116,
0.1974803358,
-0.1729417294,
0.4524447918,
-0.1109594703,
-0.2158065289,
0.3145937324,
-0.2087037116,
-0.05767975,
0.2395704687,
0.1655070633,
-0.4119007587,
-0.1251017749,
0.1948111057,
-0.1607408077,
-0.1777283549,
-0.1619342864,
-0.2664277256,
-0.0071375351,
0.0991353765,
0.2721094489,
-0.1437658668,
-0.3613469303,
0.0492625982,
0.1324948221,
0.1514422446,
0.0791979432,
-0.2128468901,
-0.2062252909,
-0.6108881235,
0.1295150816,
-0.0066118762,
0.4356806278,
-0.1189539507,
0.0749126524,
0.1747560501,
0.0000166171,
0.4236186743,
-0.1497479528,
-0.0420056731,
0.2191760093,
0.0266162138,
-0.2584570646,
-0.1916407198,
-0.0700913444,
0.0236250423,
0.4138575196,
0.3577856123,
0.0231467895,
-0.05104433,
0.684838891,
-0.0864324421,
-0.1074329466,
-0.313914746,
-0.0362054855,
-0.0293499883,
0.0300726015,
-0.2118631303,
-0.0860981345,
0.0724542588,
-0.1022903919,
0.0407231152,
0.0362811647,
-0.1186247468,
0.1746318191,
0.0805658922,
0.2893147767,
0.1647787094,
0.2556964457,
0.5325610638,
0.0484211743,
0.3676472604,
0.738422811,
0.0367961265,
-0.3708409369,
0.2325448543,
0.0378212593,
-0.0738300383,
0.2467992455,
-0.0921635181,
0.0413634665,
0.1402699947,
0.3742885292,
-0.2445248365,
0.3402287066,
0.4091216624,
-0.0960690752,
-0.6708389521,
-0.3389421701,
0.3791933656,
0.1982849985,
0.0157447886,
0.1275088191,
0.3271530271,
-0.0807185546,
0.1801349372,
0.2805750668,
0.8482288718,
-0.0043295501,
-0.1048052013,
0.0296383984,
-0.2160152793,
0.2450304925,
-0.4024859965,
-0.1223547831,
-0.2574385107,
-0.493307054,
-0.1839299947,
-0.0726486221,
0.2635392547,
-0.1201905683,
-0.3292731345,
0.0173694156,
0.0015142942,
0.205210641,
-0.2141263038,
-0.0484432913,
-0.4122179151,
0.115973182,
-0.0232147723,
0.1309950352,
-0.0630490407,
0.345897913,
-0.2104881555,
-0.0230563451,
-0.0066214199,
0.0350487456,
-0.4925845563,
0.1161895394,
0.0441773385,
-0.1759944111,
0.0782626122,
-0.3967829049,
0.3045728207,
0.2114578485,
0.2073578537,
0.28836146,
-0.3592880368,
0.3183795512,
-0.016889181,
-0.2142866403,
-0.012921026,
-0.012057377,
0.1970719397,
-0.0592280515,
-0.2227855772,
0.0463518202,
0.0938285664,
0.036053326,
-0.0413055345,
-0.0347045809,
-0.0036578244,
-0.3649607003,
0.1352775395,
-0.0229334459,
0.1284228414,
-0.2666055858,
0.0712928623,
-0.0390488952,
0.0328768753,
-0.0974214301,
0.1134412587,
-0.1565897465,
-0.2389597446,
0.404491365,
-0.0896317512,
-0.0910235271,
0.350050658,
0.288600117,
-0.2256966829,
-0.1533649862,
-0.0912713334,
0.1911948025,
-0.5025094748,
0.2192627192,
-0.2592071593,
0.1746097803,
-0.0528256223,
0.0303918887,
0.1923184842,
-0.3751257956,
-0.1301354021,
-0.2592321932,
-0.3425506353,
0.071073167,
0.1355640143,
0.3987758458,
-0.0531550907,
0.3156132996,
0.0215185191,
0.0453688055,
-0.224064365,
0.0141646285,
0.0428577438,
0.0463987365,
-0.0283697955,
-0.1160861477,
0.0555210449,
-0.1847711354,
0.0384561121,
0.2405205369,
-0.0667556226,
-0.1368984878,
-0.2216788679,
0.1469730586,
0.0188331529,
-0.4843811393,
0.0282285996,
-0.1201669946,
-0.1628013104,
-0.1004188955,
0.1723693758,
0.3084448576,
0.2736511827,
0.0892960504,
0.2791240513,
-0.0737794861,
-0.1053606942,
0.1527203321,
0.3209036589,
0.5909778476,
0.0120933568,
0.2286171466,
0.0359262861,
-0.07268399,
-0.2993533611,
0.1205684692,
0.2309757769,
0.0754686818,
0.2316986769,
-0.5208880901,
0.4314473867,
0.2604064643,
0.6123344898,
0.5008186698,
-0.1773917675,
-0.0200463794,
0.4593571424,
0.1256092191,
-0.1648740619,
-0.1623636335,
0.1883428395,
0.4804039896,
0.1144839525,
0.0450255759,
-0.0176912621,
0.1526710093,
-0.0922854692,
0.1684417278,
-0.1173916981,
0.3157564104,
0.4822157025,
0.4910885692,
-0.0795489401,
0.0169226844,
0.108152546,
0.1458878368,
0.2083972991,
0.4948703051,
0.0140079167,
0.1568967402,
0.0613655411,
0.1882599592,
0.08976686,
-0.4002852142,
0.2407307774,
-0.0420299247,
-0.007473628,
0.0907127559,
0.3533232212,
0.6439341903,
-0.1992809027,
-0.027278848,
-0.4237719178,
0.011303328,
-0.0071829082,
-0.0943787247,
-0.0500685014,
-0.1143638417,
-0.117649965,
0.211078465,
-0.1322652847,
-0.0322795473,
-0.173593536,
0.1388009936,
-0.1785765588,
-0.4707701802,
-0.1609264761,
0.2642630935,
0.1096361801,
-0.0970278606,
0.1278944314,
0.1696066111,
0.0122419614,
0.0644976869,
0.3207981586,
0.2610588074,
0.0769257024,
0.0877828002,
-0.0707652792,
0.1921965331,
-0.0594832078,
0.0972675085,
0.1839412302,
0.2916862071,
0.1306804121,
0.3331252635,
0.0694788024,
-0.1934418529,
0.4816691279,
-0.1564773917,
0.3833009005,
-0.2941046059,
0.1384687573,
-0.2241214067,
0.0086432612,
-0.2577955425,
-0.4275209904,
-0.1349298656,
0.1464639455,
0.3786626756,
-0.1398373395,
0.0866989419,
-0.3214464486,
0.0442907587,
0.158777371,
0.2884736955,
0.2091204524,
0.0991589203,
-0.0202723667,
-0.1223864257,
-0.3235882521,
0.199394986,
-0.0250506904,
0.4733583331,
0.0379428901,
-0.2103533596,
-0.3483380973,
0.2534764111,
0.3983929455,
0.1539081782,
0.1366285384,
0.531575799,
-0.0277691428,
-0.1185933426,
-0.1089647934,
0.2581123114,
-0.0153595107,
-0.1303704232,
0.1388697028,
-0.0969191119,
-0.1271982938,
-0.1299008131,
-0.3310455978,
-0.1382464468,
-0.5111861825,
0.4518127441,
0.1967324615,
0.4909108281,
0.0510612465,
-0.0713199303,
-0.4022084475,
-0.4118121564,
-0.1482530832,
-0.1319260597,
0.3426071703,
0.4270170331,
-0.0769238621,
-0.0537095554,
-0.260055989,
0.0640953109,
0.102305159,
0.3119861782,
-0.5363817811,
0.0782388896,
-0.2487969697,
0.0905086696,
0.3041904271,
0.3871376812,
0.0607209429,
0.2055317312,
-0.0211500358,
-0.3873811364,
0.6960270405,
-0.5662755966,
-0.1207975075,
-0.1033454984,
-0.0649993941,
0.2593403459,
-0.644687295,
-0.3554540873,
0.2045564502,
0.1963205636,
-0.0805001259,
0.1063328236,
0.1297078431,
-0.1541735977,
0.0514708981,
-0.0852028802,
1.2164105177,
0.1505157799,
0.0217428431,
0.3096227646,
-0.1016947404
] |
https://github.com/huggingface/datasets/issues/4133 | HANS dataset preview broken | Thanks for this. It works well, thanks! The dataset viewer is using https://github.com/huggingface/datasets/releases/tag/2.0.0, I'm eager to upgrade to 2.0.1 π | ## Dataset viewer issue for '*hans*'
**Link:** [https://huggingface.co/datasets/hans](https://huggingface.co/datasets/hans)
HANS dataset preview is broken with error 400
Am I the one who added this dataset ? No
| 20 | HANS dataset preview broken
## Dataset viewer issue for '*hans*'
**Link:** [https://huggingface.co/datasets/hans](https://huggingface.co/datasets/hans)
HANS dataset preview is broken with error 400
Am I the one who added this dataset ? No
Thanks for this. It works well, thanks! The dataset viewer is using https://github.com/huggingface/datasets/releases/tag/2.0.0, I'm eager to upgrade to 2.0.1 π | [
-0.2305552959,
-0.2901004851,
0.0092154648,
0.262542516,
0.0672578663,
0.0622462146,
0.0577356815,
0.2000459135,
0.0401800871,
0.0267511886,
-0.3102258742,
0.0882028714,
-0.0385140143,
0.0455970019,
0.1961985677,
-0.283857584,
0.2299973369,
0.121255897,
-0.4576295018,
0.1841763556,
-0.1024007797,
0.2670365572,
-0.017935805,
0.0409979448,
-0.0849682614,
0.1267631203,
-0.0100938641,
0.0050510247,
-0.2594631612,
-0.5159593225,
0.2391724288,
0.0925824717,
0.1245200783,
0.5032384992,
-0.0001185369,
0.1066558883,
0.4390149117,
0.0984210074,
-0.2464835048,
-0.1026330814,
-0.0299439747,
-0.0896254182,
0.0669108927,
0.0722971559,
-0.1178692132,
-0.3412323296,
0.0200480819,
-0.2688625455,
0.2332602441,
0.1294218749,
0.207540825,
0.2673321068,
0.3218112588,
-0.2846017182,
0.2526839077,
0.0616932809,
-0.2297690362,
0.5214556456,
0.2590571344,
0.3518288434,
0.1519613564,
0.4366708994,
0.1396422088,
-0.2454502881,
0.3811122179,
-0.252571255,
-0.0455605201,
-0.3589410484,
0.2677765787,
0.3468906581,
0.5943100452,
-0.0392674208,
-0.385730654,
-0.0762695,
0.185842663,
-0.0824493468,
0.2378185987,
0.0085037984,
0.1512259096,
0.1857457608,
-0.2603651881,
-0.2909401059,
-0.0404131413,
0.0996551067,
0.1129675582,
0.3259965479,
-0.1761360168,
0.1766882092,
0.2094571739,
-0.0174274333,
0.1292646825,
-0.0105537586,
-0.5889888406,
0.0468719155,
-0.0057631303,
-0.1701424271,
-0.0639656112,
0.1271454245,
0.1242603362,
0.157791242,
-0.1751055121,
-0.0650003701,
0.0120266248,
-0.1909910738,
0.4029639959,
-0.1305411458,
0.1844249666,
0.0840024352,
0.2070069611,
0.2321847379,
0.5634202957,
-0.0657749549,
0.0469854027,
-0.167389825,
-0.2707236111,
-0.2517533004,
0.2397606522,
-0.1063516587,
-0.2725864947,
0.2134603411,
-0.1984654516,
-0.0682609752,
0.10501986,
0.3071267307,
-0.2980886996,
-0.1065076217,
-0.1329226196,
0.1669978797,
-0.0948422104,
-0.1056016386,
-0.1188966557,
0.0219176207,
-0.0300835799,
-0.1186747998,
0.0544094257,
-0.1097687259,
0.1018243209,
-0.11381495,
0.317402333,
-0.2557536364,
-0.0156537276,
-0.0383224636,
-0.1607765257,
0.3020761907,
0.0013120513,
0.2142289728,
-0.0417581983,
-0.1351673156,
0.0831925943,
0.0065863659,
-0.3358763456,
-0.3094363809,
-0.2855043709,
0.1080870181,
-0.3413946033,
-0.1806277633,
-0.3090407252,
0.0736130103,
-0.4555406272,
-0.1120397151,
0.1507954448,
0.2619940341,
0.0591574125,
0.1663275361,
0.0026087256,
0.5167093277,
-0.4223653674,
-0.3380403519,
-0.2033574879,
-0.3976334035,
-0.1035729423,
0.0560624488,
-0.1579963863,
0.0377412923,
-0.264403671,
-0.1930615157,
0.3319889009,
-0.2773651779,
-0.532723546,
0.244867295,
-0.1401908249,
-0.0785749927,
-0.0540567935,
0.0289210733,
0.0875600949,
-0.1730739772,
-0.0556846447,
-0.3317386508,
0.1532945037,
-0.1684792489,
-0.0663215891,
-0.2680349946,
-0.0795918033,
0.1113966182,
0.1449119896,
-0.085592404,
0.1316822916,
-0.1466115862,
0.250543505,
0.0025015825,
0.1554015428,
0.4490985274,
0.2767798901,
0.2385038137,
0.1643173099,
-0.1392211169,
-0.3286413252,
-0.0004094304,
-0.3766256273,
-0.1200534478,
0.1175618023,
-0.1764771044,
-0.4428246021,
-0.062596187,
-0.1720753312,
-0.3433610499,
0.0741108358,
-0.0093505839,
-0.208379671,
-0.0462319888,
-0.247220099,
0.0281466655,
0.2711286843,
0.2227354795,
-0.0770418271,
0.3795849979,
0.0044529298,
0.0599061772,
0.0324596055,
0.2790177166,
0.2126939744,
-0.359437108,
-0.1357279122,
0.4726158381,
-0.226212889,
0.2413010001,
0.2578905821,
-0.2935459316,
0.3529863358,
-0.5532681346,
-0.1434025168,
-0.0513286032,
-0.0427891798,
0.044699762,
-0.1540115327,
-0.0098819686,
-0.2016358823,
-0.0207676683,
-0.0710506216,
0.4516278505,
0.1049113274,
0.0769511238,
-0.1904101521,
-0.3654216528,
0.3403326273,
-0.3053386807,
0.4192606807,
-0.0805076137,
-0.2869162261,
-0.0409504548,
-0.01216067,
-0.0597588085,
-0.1402929276,
0.1937151551,
-0.3302044868,
0.1506933123,
0.2192485482,
0.2660316229,
0.1836619824,
0.1711019874,
-0.1631241143,
0.0417239368,
0.261251837,
0.001306337,
0.1466900557,
0.0247481111,
0.1074592918,
0.042884849,
-0.0990726799,
0.0530926064,
-0.4964491129,
-0.1056727245,
0.0481959432,
0.1955030411,
-0.2207946479,
0.0367778093,
-0.0550211705,
-0.5056468844,
-0.1985023916,
-0.211234495,
-0.3131166399,
-0.258299917,
-0.001912587,
0.1136212796,
-0.0248824116,
0.1438604444,
-0.1511784047,
0.2610448003,
-0.1387623847,
0.2335116267,
-0.1580157876,
0.2592836916,
-0.2643669248,
0.0668463185,
0.0980490744,
-0.1265267581,
0.4256419539,
-0.2165736407,
0.2318286151,
-0.5400986671,
-0.3876898885,
0.3271691501,
-0.1110414565,
0.2825071812,
0.2680981159,
0.1553119719,
-0.1013484895,
-0.002903163,
0.1553719491,
0.0231788177,
0.0656923205,
-0.0249087326,
-0.3039623499,
-0.0724691898,
-0.0156873539,
-0.0545177758,
-0.0912027434,
-0.1163962781,
0.3681127727,
0.0001984551,
-0.0756277591,
0.0504767373,
-0.0465944596,
0.0950244144,
-0.3380053639,
-0.0611625053,
-0.1521235704,
-0.5207366943,
0.1998667568,
-0.3816403449,
-0.3575957119,
0.1661134958,
0.2311091721,
0.1723018587,
-0.4758027792,
-0.5549622774,
-0.2482229173,
-0.17529957,
-0.1872322857,
0.0184119269,
-0.2139509171,
0.2559950948,
-0.0883410573,
0.0436697155,
-0.1407734156,
-0.2017657459,
0.0208534859,
-0.2996838093,
0.4365502,
-0.433034569,
0.1978579909,
-0.0091211414,
0.5097926855,
0.6226177812,
0.30060637,
0.2462250739,
-0.0670647174,
0.5842707157,
-0.0439393632,
-0.2764772773,
0.1703059673,
-0.0550635085,
0.3249587119,
0.0570512339,
0.2024538517,
-0.2211040407,
-0.1938653886,
0.006312571,
-0.1617993414,
-0.097538501,
-0.3628843427,
-0.2615689635,
-0.145603314,
0.075604558,
0.1639090478,
-0.1360728145,
-0.2816378474,
0.15238823,
0.3359510005,
0.2351343185,
0.0562884435,
-0.2727293372,
0.0306563135,
-0.6386495829,
0.2170487791,
-0.1021660045,
0.2435549945,
-0.1292326152,
0.1826879829,
0.2309125215,
-0.0778084025,
0.6566745639,
-0.0698251724,
0.0344907343,
0.0822187886,
0.0713083297,
-0.3023095131,
-0.0210264083,
-0.0662757233,
0.0979677886,
0.4664637148,
0.5590318441,
-0.1339343339,
-0.1585237533,
0.7444658875,
-0.2759510577,
-0.0810383931,
-0.337608248,
-0.045338314,
-0.0886185765,
0.1011049449,
-0.147438854,
-0.1201910824,
0.1023701131,
0.076413542,
-0.0532316267,
0.0865230113,
-0.1843497455,
0.2185935676,
-0.0595708527,
0.2231625468,
0.1312920302,
0.1916168332,
0.6568455696,
0.2401011288,
0.2826861739,
0.6209742427,
-0.0050041233,
-0.3870961964,
0.1934775412,
-0.0070038466,
0.071895726,
0.3643747866,
-0.014710431,
0.081951119,
0.1001790166,
0.2456672937,
-0.2428613901,
0.0714866146,
0.53241539,
0.0309044421,
-0.6593027711,
-0.1814042926,
0.4738279879,
0.1842188984,
-0.0179232657,
0.284722358,
0.6003449559,
-0.0610913262,
-0.0785260051,
0.1767953783,
0.8995447755,
0.1516848654,
-0.0188373998,
0.159842059,
-0.3500621617,
0.4973223805,
-0.3204419315,
-0.2095827162,
-0.1846978366,
-0.3375562131,
-0.2004434168,
-0.1372151226,
0.460968107,
-0.2159395367,
-0.1055276245,
0.1041691601,
0.0687657967,
0.1926906258,
-0.1457719654,
0.1140223816,
-0.2738122344,
-0.002655945,
0.1383554935,
0.1297592372,
0.0642247424,
0.4174809456,
-0.2450841963,
-0.1713435501,
-0.1085571274,
-0.1147998124,
-0.4367950261,
0.0214864779,
0.0535155907,
-0.2095586658,
0.3043464124,
-0.3544496,
0.3266727626,
0.149374783,
0.3139254451,
0.2152688801,
-0.3781352639,
0.4285017252,
-0.1191266775,
-0.1153701544,
0.0110988747,
-0.0456388257,
0.0128725674,
-0.1727727056,
-0.1780343056,
0.0787940994,
-0.015348509,
-0.101955466,
-0.1518650651,
-0.0826613232,
-0.3036314249,
-0.2233167142,
0.0824956447,
0.0285437629,
0.1952763796,
-0.2645464838,
0.0626671463,
0.0686990097,
0.0515983514,
-0.2420105487,
0.1521284729,
-0.2516236603,
-0.2768840492,
0.4589040875,
-0.2294300199,
-0.1824096441,
0.4307579398,
0.0208405722,
-0.178122893,
-0.1145963743,
0.0068232361,
0.4269768596,
-0.7219085097,
-0.0316941738,
-0.141550988,
0.2436193675,
0.0103652366,
-0.0058388668,
0.145449549,
-0.1761527658,
-0.0347270146,
-0.2329563797,
-0.2854887247,
0.2046542615,
-0.0409942977,
0.2579360008,
-0.0594388582,
0.3490734696,
0.0742603466,
0.0863128603,
-0.2293262929,
0.1157464311,
0.0845834091,
-0.1946686506,
0.2027774453,
0.0031965708,
0.1297875792,
-0.1918863058,
0.0378461592,
0.0982502848,
-0.2206253707,
-0.0700019449,
-0.2498835027,
0.1455016583,
-0.1045515984,
-0.4456870258,
0.079675816,
-0.0728665963,
-0.130852595,
0.0854609832,
0.1109424755,
0.1898630261,
0.2279205024,
-0.0626879781,
0.1664515138,
-0.1578283012,
-0.0925617591,
0.1311150789,
0.2680562735,
0.4656078517,
-0.1351621002,
0.1498295367,
-0.0186843313,
-0.1408226043,
-0.1509606093,
0.2183003873,
0.244628489,
0.0432921872,
0.2264236212,
-0.4349952638,
0.3961088061,
0.3588862717,
0.4433473349,
0.2368339002,
-0.284586519,
0.0965734795,
0.2996579111,
0.0990853161,
-0.1400958449,
-0.1987186819,
0.2088621557,
0.412991792,
-0.015866803,
-0.1154371276,
0.0941015929,
0.3199772835,
0.0533145256,
0.1813222915,
0.0166559871,
0.2647050619,
0.4847473502,
0.4702778757,
-0.0574237667,
0.0556194633,
0.3329115808,
0.1672563404,
0.1474066526,
0.5081036091,
-0.0626397803,
0.1175123379,
0.0454470403,
0.2830063105,
0.1723059118,
-0.4074424207,
0.1913883537,
-0.0787384361,
-0.0218216013,
0.0209385045,
0.2855914533,
0.6738011837,
-0.2729572952,
-0.0836767405,
-0.4902769327,
0.1967407614,
-0.0596117042,
-0.1711981595,
-0.0260721724,
-0.2414309382,
-0.0455897711,
0.1071964949,
-0.162285164,
-0.1213846877,
-0.1680785418,
0.0265283026,
-0.1780007333,
-0.432008177,
-0.3295931816,
0.1277968138,
0.1933583319,
-0.0903324932,
0.2124276906,
0.1459836364,
-0.1372337937,
0.2203883976,
0.5317816138,
0.1874999106,
0.0303403493,
0.2972180247,
-0.0562709048,
-0.0418168418,
-0.1290170699,
0.1174377427,
0.2330628037,
0.3350421488,
-0.0784004182,
0.3268926442,
0.0529453307,
-0.1556460857,
0.3973777592,
-0.1612417549,
0.5106580257,
-0.4072130024,
0.1951080114,
-0.6267011762,
0.0032665534,
-0.3178108633,
-0.2213938683,
-0.11624749,
-0.042081669,
0.3352265656,
-0.0909593254,
-0.0073867999,
-0.3313821852,
0.0291257408,
0.2223334312,
0.2887164354,
0.1907183826,
0.0660535768,
-0.0244331378,
-0.2695808411,
-0.4005649984,
0.1130614355,
0.1130800992,
0.5449165106,
-0.0233630594,
-0.3685858548,
-0.2065163702,
0.0251269173,
0.4911744893,
0.1010298654,
0.2513777614,
0.2183386087,
0.0170507617,
0.001882072,
-0.081681639,
0.2975914776,
-0.0512507893,
0.0037884051,
0.2584231496,
0.1242243722,
-0.1520876735,
-0.1354515851,
-0.0657995492,
-0.1976192445,
-0.4393993318,
0.3061847687,
0.1947846264,
0.4683524668,
0.0669633001,
-0.1792339832,
-0.3670438826,
-0.4261274934,
-0.1475458592,
0.018215403,
0.1939956099,
0.3650095463,
-0.1162382886,
-0.2827242017,
-0.0790191665,
0.0977530628,
0.0038031004,
0.3646554947,
-0.6364973783,
0.1630657464,
-0.288770467,
-0.0625862628,
0.4076825678,
0.3205426335,
0.0746002421,
0.1015874743,
-0.0739815012,
-0.1572185904,
0.5639815927,
-0.4112187326,
0.1028153673,
-0.0926517695,
0.0153257539,
0.270411402,
-0.6864085793,
-0.2733249962,
0.0380202197,
0.3042474687,
-0.0008218191,
0.1102742925,
0.2211524993,
-0.1232869476,
0.018564811,
-0.0541741624,
1.0277295113,
0.2297994196,
-0.0316589922,
0.445397675,
-0.0933698639
] |
https://github.com/huggingface/datasets/issues/4124 | Image decoding often fails when transforming Image datasets | A quick hack I have found is that we can call the image first before running the transforms and it makes sure the image is decoded before being passed on.
For this I just needed to add `example['img'] = example['img']` to the top of my `generate_flipped_data` function, defined above, so that image decode in invoked.
After this minor change this function works:
```python
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping functions that transforms some of the image up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
example['img'] = example['img'] # <<< This is the only change
if rng.random() > p: # the flip the image and set is_flipped column to 1
example['img'] = example['img'].transpose(
1) # ImageOps.flip(example['img']) #example['img'].transpose(Image.FLIP_TOP_BOTTOM)
example['is_flipped'] = 1
return example
``` | ## Describe the bug
When transforming/modifying images in an image dataset using the `map` function the PIL images often fail to decode in time for the image transforms, causing errors.
Using a debugger it is easy to see what the problem is, the Image decode invocation does not take place and the resulting image passed around is still raw bytes:
```
[{'bytes': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00 \x08\x02\x00\x00\x00\xfc\x18\xed\xa3\x00\x00\x08\x02IDATx\x9cEVIs[\xc7\x11\xeemf\xde\x82\x8d\x80\x08\x89"\xb5V\\\xb6\x94(\xe5\x9f\x90\xca5\x7f$\xa7T\xe5\x9f&9\xd9\x8a\\.\xdb\xa4$J\xa4\x00\x02x\xc0{\xb3t\xe7\x00\xca\x99\xd3\\f\xba\xba\xbf\xa5?|\xfa\xf4\xa2\xeb\xba\xedv\xa3f^\xf8\xd5\x0bY\xb6\x10\xb3\xaaDq\xcd\x83\x87\xdf5\xf3gZ\x1a\x04\x0f\xa0fp\xfa\xe0\xd4\x07?\x9dN\xc4\xb1\x99\xfd\xf2\xcb/\x97\x97\x97H\xa2\xaaf\x16\x82\xaf\xeb\xca{\xbf\xd9l.\xdf\x7f\xfa\xcb_\xff&\x88\x08\x00\x80H\xc0\x80@.;\x0f\x8c@#v\xe3\xe5\xfc\xd1\x9f\xee6q\xbf\xdf\xa6\x14\'\x93\xf1\xc3\xe5\xe3\xd1x\x14c\x8c1\xa5\x1c\x9dsM\xd3\xb4\xed\x08\x89SJ)\xa5\xedv\xbb^\xafNO\x97D\x84Hf ....
```
## Steps to reproduce the bug
```python
from datasets import load_dataset, Dataset
import numpy as np
# seeded NumPy random number generator for reprodducinble results.
rng = np.random.default_rng(seed=0)
test_dataset = load_dataset('cifar100', split="test")
def preprocess_data(dataset):
"""
Helper function to pre-process HuggingFace Cifar-100 Dataset to remove fine_label and coarse_label columns and
add is_flipped column
Args:
dataset: HuggingFace CIFAR-100 Dataset Object
Returns:
new_dataset: A Dataset object with "img" and "is_flipped" columns only
"""
# remove fine_label and coarse_label columns
new_dataset = dataset.remove_columns(['fine_label', 'coarse_label'])
# add the column for is_flipped
new_dataset = new_dataset.add_column(name="is_flipped", column=np.zeros((len(new_dataset)), dtype=np.uint8))
return new_dataset
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping function that transforms some of the images up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: the probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
# example['img'] = example['img']
if rng.random() > p: # the flip the image and set is_flipped column to 1
example['img'] = example['img'].transpose(
1) # ImageOps.flip(example['img']) #example['img'].transpose(Image.FLIP_TOP_BOTTOM)
example['is_flipped'] = 1
return example
my_test = preprocess_data(test_dataset)
my_test = my_test.map(generate_flipped_data)
```
## Expected results
The dataset should be transformed without problems.
## Actual results
```
/home/rafay/anaconda3/envs/pytorch_new/bin/python /home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
20%|ββ | 1999/10000 [00:00<00:01, 5560.44ex/s]
Traceback (most recent call last):
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2326, in _map_single
writer.write(example)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 441, in write
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py", line 55, in <module>
my_test = my_test.map(generate_flipped_data)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 1953, in map
return self._map_single(
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 519, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 486, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/fingerprint.py", line 458, in wrapper
out = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2360, in _map_single
writer.finalize()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 522, in finalize
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
Process finished with exit code 1
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux(Fedora 35)
- Python version: 3.10
- PyArrow version: 7.0.0
| 163 | Image decoding often fails when transforming Image datasets
## Describe the bug
When transforming/modifying images in an image dataset using the `map` function the PIL images often fail to decode in time for the image transforms, causing errors.
Using a debugger it is easy to see what the problem is, the Image decode invocation does not take place and the resulting image passed around is still raw bytes:
```
[{'bytes': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00 \x08\x02\x00\x00\x00\xfc\x18\xed\xa3\x00\x00\x08\x02IDATx\x9cEVIs[\xc7\x11\xeemf\xde\x82\x8d\x80\x08\x89"\xb5V\\\xb6\x94(\xe5\x9f\x90\xca5\x7f$\xa7T\xe5\x9f&9\xd9\x8a\\.\xdb\xa4$J\xa4\x00\x02x\xc0{\xb3t\xe7\x00\xca\x99\xd3\\f\xba\xba\xbf\xa5?|\xfa\xf4\xa2\xeb\xba\xedv\xa3f^\xf8\xd5\x0bY\xb6\x10\xb3\xaaDq\xcd\x83\x87\xdf5\xf3gZ\x1a\x04\x0f\xa0fp\xfa\xe0\xd4\x07?\x9dN\xc4\xb1\x99\xfd\xf2\xcb/\x97\x97\x97H\xa2\xaaf\x16\x82\xaf\xeb\xca{\xbf\xd9l.\xdf\x7f\xfa\xcb_\xff&\x88\x08\x00\x80H\xc0\x80@.;\x0f\x8c@#v\xe3\xe5\xfc\xd1\x9f\xee6q\xbf\xdf\xa6\x14\'\x93\xf1\xc3\xe5\xe3\xd1x\x14c\x8c1\xa5\x1c\x9dsM\xd3\xb4\xed\x08\x89SJ)\xa5\xedv\xbb^\xafNO\x97D\x84Hf ....
```
## Steps to reproduce the bug
```python
from datasets import load_dataset, Dataset
import numpy as np
# seeded NumPy random number generator for reprodducinble results.
rng = np.random.default_rng(seed=0)
test_dataset = load_dataset('cifar100', split="test")
def preprocess_data(dataset):
"""
Helper function to pre-process HuggingFace Cifar-100 Dataset to remove fine_label and coarse_label columns and
add is_flipped column
Args:
dataset: HuggingFace CIFAR-100 Dataset Object
Returns:
new_dataset: A Dataset object with "img" and "is_flipped" columns only
"""
# remove fine_label and coarse_label columns
new_dataset = dataset.remove_columns(['fine_label', 'coarse_label'])
# add the column for is_flipped
new_dataset = new_dataset.add_column(name="is_flipped", column=np.zeros((len(new_dataset)), dtype=np.uint8))
return new_dataset
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping function that transforms some of the images up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: the probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
# example['img'] = example['img']
if rng.random() > p: # the flip the image and set is_flipped column to 1
example['img'] = example['img'].transpose(
1) # ImageOps.flip(example['img']) #example['img'].transpose(Image.FLIP_TOP_BOTTOM)
example['is_flipped'] = 1
return example
my_test = preprocess_data(test_dataset)
my_test = my_test.map(generate_flipped_data)
```
## Expected results
The dataset should be transformed without problems.
## Actual results
```
/home/rafay/anaconda3/envs/pytorch_new/bin/python /home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
20%|ββ | 1999/10000 [00:00<00:01, 5560.44ex/s]
Traceback (most recent call last):
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2326, in _map_single
writer.write(example)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 441, in write
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py", line 55, in <module>
my_test = my_test.map(generate_flipped_data)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 1953, in map
return self._map_single(
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 519, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 486, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/fingerprint.py", line 458, in wrapper
out = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2360, in _map_single
writer.finalize()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 522, in finalize
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
Process finished with exit code 1
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux(Fedora 35)
- Python version: 3.10
- PyArrow version: 7.0.0
A quick hack I have found is that we can call the image first before running the transforms and it makes sure the image is decoded before being passed on.
For this I just needed to add `example['img'] = example['img']` to the top of my `generate_flipped_data` function, defined above, so that image decode in invoked.
After this minor change this function works:
```python
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping functions that transforms some of the image up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
example['img'] = example['img'] # <<< This is the only change
if rng.random() > p: # the flip the image and set is_flipped column to 1
example['img'] = example['img'].transpose(
1) # ImageOps.flip(example['img']) #example['img'].transpose(Image.FLIP_TOP_BOTTOM)
example['is_flipped'] = 1
return example
``` | [
-0.0782001764,
-0.0185160097,
-0.1789414287,
0.1256359518,
0.1442411542,
-0.1011210158,
0.061807964,
0.2104717195,
-0.1569966078,
0.1313689649,
0.1810033619,
0.5930034518,
0.199265331,
-0.1440647393,
-0.1841397285,
-0.1133295894,
0.1441317201,
0.3657739758,
-0.1194041669,
-0.1576051265,
-0.5352745056,
-0.0058016893,
-0.3142115772,
-0.0498115756,
0.065735586,
-0.1129853204,
-0.2347699106,
0.0720826313,
-0.1543050557,
0.0624454394,
-0.3068825305,
0.083227478,
-0.3537133932,
0.3459144831,
-0.0001071313,
0.0553660728,
0.4224436581,
-0.063161768,
-0.0315147676,
0.2252112329,
-0.6300364137,
-0.4457523823,
-0.4288947582,
-0.3134616315,
0.1642373949,
-0.4085661173,
0.1668142825,
-0.0885028467,
0.6687870026,
-0.0908485129,
0.2752085626,
0.0136760408,
0.152927801,
0.3442034125,
0.28106758,
0.4071404934,
-0.0406219289,
-0.1018599793,
0.0819702893,
-0.0080074836,
-0.1081826091,
0.4912085831,
-0.0355101377,
-0.2004841715,
-0.0367371254,
-0.1234328747,
0.0809971616,
-0.3957262039,
0.1409005821,
-0.1302900314,
-0.2851917744,
-0.0922358558,
-0.3847452104,
-0.2415292561,
-0.037279319,
-0.0449788719,
0.1452162862,
-0.1153291985,
-0.0904646963,
0.1434401274,
-0.2685393393,
-0.0512601137,
0.0736439005,
0.0661613047,
-0.2679609656,
-0.0386061519,
0.0484811924,
0.0774783865,
0.1353181005,
-0.11176759,
0.2455704659,
-0.009591707,
0.1134392917,
-0.0177221559,
-0.0177025776,
0.0329498611,
-0.127099961,
0.0893476084,
-0.0907780677,
-0.3664819002,
0.0334486179,
0.122856915,
-0.0579914078,
0.3785974979,
0.1180435792,
-0.0196175203,
-0.2483181208,
0.4357409179,
0.0063671758,
-0.2644572854,
-0.2243143916,
-0.0676711276,
0.1355740726,
-0.2211161852,
0.0178885162,
0.1175705865,
0.0551495142,
0.0648556799,
-0.1466043144,
-0.056213133,
-0.3176832795,
0.1789221466,
-0.0265471991,
0.0581976771,
0.2877370715,
0.5349922776,
0.5349512696,
-0.0418968052,
-0.1919421703,
0.0008375006,
-0.2414670438,
-0.0011815538,
-0.2980305851,
-0.0177190267,
-0.0911784619,
0.3379617929,
-0.1961079091,
0.0520534553,
0.0955894813,
-0.0412606001,
-0.0433903895,
-0.2342397273,
0.5421862602,
0.315893203,
-0.2065706551,
-0.0870651305,
-0.2345122397,
0.3308932185,
-0.0263410769,
0.3642312586,
-0.3273599446,
0.3937481344,
0.1380571574,
0.205269888,
0.0544154868,
0.0798467472,
-0.1088276207,
0.0571382828,
0.0486628301,
-0.3628373444,
0.1755817831,
-0.3917004764,
-0.0636118427,
-0.1333117932,
0.1388676763,
0.10727676,
-0.1126511246,
0.1766777188,
-0.1553341895,
-0.1869294047,
0.3283744156,
0.232782051,
0.111663118,
-0.1480347961,
-0.0496095754,
0.29334566,
0.0671888068,
-0.2048177123,
-0.6263278723,
0.5222505331,
0.0545868799,
0.0686715022,
-0.2323667407,
0.1041704044,
0.262042135,
-0.2200964391,
-0.3558206856,
0.51106745,
-0.0767878816,
0.265099436,
-0.2251552343,
-0.0316652507,
0.1071890071,
0.0612292737,
0.0732786283,
0.1076880321,
0.1203860417,
0.2355656177,
0.0605114661,
0.0712214112,
0.1732618362,
0.0234691594,
-0.0020106407,
-0.3004009128,
0.3143393993,
0.3589800894,
-0.008533081,
-0.0467957221,
-0.267287761,
-0.1722675711,
-0.4233689308,
0.0468322784,
-0.0033973979,
0.1593364924,
-0.1741845161,
0.0733197778,
0.2954805791,
0.0457293615,
-0.1059040874,
0.0136391148,
0.0526574589,
0.0739674047,
-0.0296706203,
-0.0424284041,
0.08658126,
0.1038712934,
-0.1019601524,
-0.0687758029,
-0.0981298834,
0.2007267773,
0.0029525354,
-0.0981745273,
-0.081646271,
0.3445185125,
0.0716795176,
0.414914608,
-0.133519873,
-0.3235158622,
0.4556369185,
-0.6278449297,
-0.0200663116,
0.3593318462,
0.2016427517,
0.0080212737,
0.0537549257,
-0.0852341279,
-0.0659775957,
0.214876011,
-0.0544505008,
0.0074811592,
0.0382222608,
-0.2845731378,
-0.2028415203,
-0.1960710734,
-0.087107107,
0.0397335552,
0.2701147497,
0.0596744642,
0.0092033083,
0.0019182486,
0.385137558,
-0.0924583822,
0.0218177773,
0.1286549121,
-0.0238913745,
0.0834388435,
0.2243013829,
0.3510557115,
0.0259991419,
0.0524754599,
0.0451867357,
0.1602248847,
-0.2537530065,
-0.0492814779,
0.1885454059,
-0.0075772498,
0.2494478226,
0.1965441555,
0.2444795817,
0.1798424721,
-0.1492816955,
-0.3297257721,
0.1248127967,
0.0307113435,
0.1356539726,
0.131198734,
-0.5447258949,
-0.4395456612,
0.008113849,
0.281134963,
0.1076046601,
-0.4283286333,
-0.0813691616,
-0.1670624316,
-0.3564525545,
0.2413051724,
0.080647774,
0.032252375,
0.1950263381,
-0.0702469125,
-0.5630292296,
-0.0111061297,
-0.0915672779,
0.1035945714,
0.2306190431,
-0.1928257495,
0.2148155719,
-0.3535459042,
0.0676528066,
-0.1659461707,
-0.3815089464,
0.4660774469,
-0.3076137602,
0.0117020225,
0.0229802579,
0.1077734381,
-0.0744458735,
-0.1293884367,
0.1670966744,
-0.3746874928,
-0.3758941293,
0.0869779363,
-0.0602593273,
-0.1406913251,
-0.5329574347,
0.0757438466,
0.0447792001,
-0.2564290464,
0.2469866872,
-0.2867725492,
0.0951133668,
0.1190226078,
0.4651115835,
0.0049183336,
0.0085270563,
-0.1061586887,
-0.192297563,
-0.0059204316,
0.2055486739,
-0.0203208439,
-0.2856326997,
-0.2658372521,
0.0633431002,
0.0639315844,
0.6518374681,
-0.4091788232,
-0.2022417635,
-0.132897228,
-0.1062530577,
-0.1386202574,
0.0909667239,
-0.1655339003,
0.2422062606,
-0.174551785,
-0.2575541139,
-0.0837859809,
-0.1210929006,
0.1977460533,
0.3818242848,
0.1674267352,
0.1023180708,
0.2557241023,
0.1290996969,
-0.0739330202,
-0.1644843072,
0.1886149943,
0.1250482649,
0.3493855,
0.0308439881,
-0.0346813947,
0.0993109345,
0.0340787992,
-0.1842056215,
-0.0901751518,
-0.2302039266,
-0.5728799105,
-0.1025698408,
0.1402107924,
-0.626527071,
-0.2831132412,
0.1749432087,
0.1100318208,
0.2281517386,
-0.129650265,
0.2306794673,
0.0703015924,
0.0365424938,
0.1989073902,
-0.1113676652,
0.4859673679,
-0.1275354028,
0.0056347926,
-0.4548994005,
-0.2586566806,
0.2308408469,
0.1536586136,
0.4835776985,
-0.1698762029,
-0.1267301887,
0.1987402737,
-0.1639110148,
0.4833833873,
-0.3290736973,
-0.0317032076,
0.1416109651,
-0.0923142731,
-0.2511822879,
0.2088304758,
-0.3408000469,
0.0642040893,
0.1355464458,
0.5006679893,
-0.189737156,
-0.0140366834,
-0.0255165696,
0.0964582041,
0.0300657544,
-0.274074614,
-0.0698020533,
-0.3768853843,
-0.2966530919,
-0.1006576717,
0.1769589782,
-0.141794607,
-0.012718305,
-0.0271716192,
-0.2040470243,
-0.0622232221,
-0.0254846681,
0.3774313927,
0.1878451556,
-0.1066145971,
0.0537815429,
0.1737462431,
0.0404454209,
0.1360654831,
0.3148154616,
-0.1111355945,
-0.1428831816,
0.2897507846,
-0.1751623899,
0.0540232696,
0.3930705786,
-0.0237927958,
-0.1836519241,
0.0726823211,
0.0747592896,
-0.3882193863,
0.0859479159,
0.1991827637,
-0.1229769289,
-0.1506945342,
-0.2011290789,
0.4144720137,
0.1196773946,
-0.0779653713,
0.1071932837,
-0.152426675,
-0.2274150252,
0.736356914,
0.5366311073,
1.0528658628,
-0.1453779191,
-0.1099964082,
0.0073960987,
-0.0255874358,
0.3007440567,
-0.0063245152,
0.263448149,
-0.0586614497,
-0.0663989112,
-0.0463160537,
0.0525105856,
-0.0332457982,
0.1611766964,
-0.3778302968,
-0.0480550118,
0.0713425875,
-0.2206772864,
0.1914254427,
0.0284836292,
-0.1293793768,
-0.2267698497,
0.0559275672,
0.2412129939,
0.1033586338,
0.0175824538,
-0.1306450963,
-0.2221549898,
-0.2788388729,
0.0363532379,
-0.1273580641,
0.2345178872,
-0.3925719857,
0.059194196,
-0.0279006716,
-0.2553299665,
-0.1900206357,
0.1665207297,
-0.0696088448,
0.1455922872,
0.0846431628,
0.1854283512,
0.2812944651,
0.2655282319,
0.0626533553,
-0.0459693372,
0.1361987591,
-0.0554027408,
0.1384361833,
-0.2733632922,
-0.1412914842,
-0.2364870906,
-0.2422071993,
0.2378613502,
-0.1757083386,
0.3053581715,
0.0855673328,
0.1533156931,
-0.1496032476,
0.0365384631,
0.198417455,
-0.0560448356,
0.1647151709,
0.5823465586,
0.0119354287,
-0.3631900847,
0.0232100878,
0.0109406114,
-0.1366986185,
0.0224389583,
0.2450359762,
-0.1991728246,
-0.1000415832,
-0.3014091253,
-0.0046426281,
-0.2188925445,
-0.2012273371,
0.0871684477,
-0.4122448266,
-0.1729282439,
0.0172505379,
-0.1694195569,
-0.0033735211,
-0.0341040082,
-0.1358063817,
-0.2910584509,
-0.0076326849,
0.2073460668,
-0.0106695071,
0.1430817693,
-0.18182908,
0.4052780271,
0.0043176413,
-0.0176420901,
-0.3583823442,
0.2725805938,
-0.1702919155,
0.2646886706,
-0.0653692409,
0.1132736355,
-0.0877963677,
-0.0242288206,
0.2361937463,
0.5670618415,
-0.0726746693,
-0.1345587224,
-0.2174927592,
0.0920188725,
0.1492688209,
-0.0458885282,
-0.0782727078,
-0.1263289005,
-0.0712243468,
-0.1058960259,
-0.1549824625,
-0.0785345584,
-0.2389826477,
-0.0226416271,
-0.1657697558,
0.1637071371,
0.2642869651,
0.0596725233,
0.0423639677,
0.3998483419,
-0.0099190362,
0.2750841677,
0.2505615056,
0.0297523662,
0.0890941322,
-0.0434575751,
-0.1142936349,
0.0128292143,
0.5798623562,
0.2448093295,
0.3421059251,
0.3669421673,
0.2643366754,
0.2625856698,
-0.328725189,
-0.1560590416,
0.0236173887,
0.3163709641,
0.0274197999,
-0.0120946029,
0.367531985,
0.117825374,
-0.0460801087,
0.2006301731,
0.1715619713,
0.001479764,
-0.0175053049,
-0.0142297521,
0.2289813906,
-0.2796445787,
-0.1302688718,
0.6692919731,
-0.287700057,
0.3973176777,
0.1295353323,
-0.0303518903,
0.1027033105,
0.4852224886,
0.0596471056,
0.4428483546,
0.0725522414,
0.4412586689,
0.1785106957,
-0.2371693254,
0.1832149476,
0.4275948405,
-0.003433126,
0.5709407926,
-0.0481739603,
0.1223127395,
-0.3008190095,
-0.0792188421,
0.1359874159,
0.3369153142,
-0.1572363824,
0.0576506294,
-0.1249397993,
-0.1429447532,
-0.3501829505,
-0.1521234363,
0.1313478202,
-0.05766128,
0.7209777832,
0.2279063761,
0.064402014,
0.1635609716,
-0.5615984797,
-0.1231908575,
0.3408599198,
-0.37642169,
0.0642226636,
0.0435508043,
-0.004665799,
0.373190701,
0.3299598396,
0.2410996556,
0.3669174612,
-0.339022845,
-0.0829015523,
-0.0907893777,
-0.0902069807,
-0.3115619421,
0.287149936,
0.0895880386,
0.1418343931,
0.1608126462,
0.1832749546,
-0.2469953597,
-0.4805017412,
0.1543199271,
0.3366680741,
0.1508741975,
0.2284462154,
-0.3070642054,
0.0695872307,
0.0820063204,
-0.1514057219,
-0.3221510947,
-0.1581796408,
0.0773071647,
-0.4117693901,
0.1510703713,
0.2371339202,
0.1025285199,
-0.0428697318,
0.3688181937,
0.5211761594,
0.0145776868,
-0.090930745,
-0.2637612224,
-0.4602003992,
0.250966996,
0.0318948217,
-0.0625934154,
-0.0789050385,
0.1187137663,
0.0024030709,
0.284912616,
0.3276282251,
-0.4223107994,
0.1146761179,
0.1220242903,
-0.2031398714,
-0.0343779735,
0.2879951,
-0.1509160995,
0.0052632685,
-0.3539521098,
0.3588154614,
0.0332423486,
0.2506863177,
-0.0864787996,
-0.1442928165,
-0.3931705356,
-0.2502857149,
0.6093147397,
0.5369588733,
0.060623657,
-0.3411695659,
-0.4398938417,
0.023015935,
-0.173502937,
-0.0980322808,
0.0238052569,
-0.0361952856,
0.3659874201,
0.0354101285,
-0.1101468205,
-0.0785887763,
-0.1552743912,
0.0084326267,
0.1806573272,
-0.5817324519,
0.2854843438,
-0.2028175443,
-0.1738011539,
-0.1237823069,
0.3137438595,
0.1720001996,
0.0370780975,
-0.289565146,
-0.57613796,
0.2102911174,
-0.3342150748,
-0.3296248913,
0.2095519453,
-0.2989692688,
-0.4517781734,
0.3524990082,
-0.4164696634,
-0.1358119994,
-0.0181027092,
-0.1902853698,
-0.2212471366,
0.0207303353,
0.0876868963,
-0.121997416,
0.023265332,
0.4771605432,
0.1239142567,
-0.2152631283,
0.2992173135,
0.0961944684
] |
https://github.com/huggingface/datasets/issues/4124 | Image decoding often fails when transforming Image datasets | Hi @RafayAK, thanks for reporting.
Current implementation of the Image feature performs the decoding only if the "img" field is accessed by the mapped function.
In your original `generate_flipped_data` function:
- it only accesses the "img" field (and thus performs decoding) if `rng.random() > p`;
- on the other hand, for the cases where `rng.random() <= p`, the "img" field is not accessed and thus no decoding is performed for those examples
By adding the code line `example['img'] = example['img']`, you make sure the "img" field is accessed in all cases, and the decoding is done for all examples.
Also note that there is a little bug in your implementation: `p` is not the probability of flipping, but the probability of not-flipping; the larger is `p`, the smaller is the probability of flipping.
Some refactoring (fixing also `p`):
```python
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping functions that transforms some of the image up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down.
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
do_flip = rng.random() < p # Note the "<" sign here instead of ">"
example['img'] = example['img'].transpose(1) if do_flip else example['img'] # Note "img" is always accessed
example['is_flipped'] = 1 if do_flip else 0
return example | ## Describe the bug
When transforming/modifying images in an image dataset using the `map` function the PIL images often fail to decode in time for the image transforms, causing errors.
Using a debugger it is easy to see what the problem is, the Image decode invocation does not take place and the resulting image passed around is still raw bytes:
```
[{'bytes': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00 \x08\x02\x00\x00\x00\xfc\x18\xed\xa3\x00\x00\x08\x02IDATx\x9cEVIs[\xc7\x11\xeemf\xde\x82\x8d\x80\x08\x89"\xb5V\\\xb6\x94(\xe5\x9f\x90\xca5\x7f$\xa7T\xe5\x9f&9\xd9\x8a\\.\xdb\xa4$J\xa4\x00\x02x\xc0{\xb3t\xe7\x00\xca\x99\xd3\\f\xba\xba\xbf\xa5?|\xfa\xf4\xa2\xeb\xba\xedv\xa3f^\xf8\xd5\x0bY\xb6\x10\xb3\xaaDq\xcd\x83\x87\xdf5\xf3gZ\x1a\x04\x0f\xa0fp\xfa\xe0\xd4\x07?\x9dN\xc4\xb1\x99\xfd\xf2\xcb/\x97\x97\x97H\xa2\xaaf\x16\x82\xaf\xeb\xca{\xbf\xd9l.\xdf\x7f\xfa\xcb_\xff&\x88\x08\x00\x80H\xc0\x80@.;\x0f\x8c@#v\xe3\xe5\xfc\xd1\x9f\xee6q\xbf\xdf\xa6\x14\'\x93\xf1\xc3\xe5\xe3\xd1x\x14c\x8c1\xa5\x1c\x9dsM\xd3\xb4\xed\x08\x89SJ)\xa5\xedv\xbb^\xafNO\x97D\x84Hf ....
```
## Steps to reproduce the bug
```python
from datasets import load_dataset, Dataset
import numpy as np
# seeded NumPy random number generator for reprodducinble results.
rng = np.random.default_rng(seed=0)
test_dataset = load_dataset('cifar100', split="test")
def preprocess_data(dataset):
"""
Helper function to pre-process HuggingFace Cifar-100 Dataset to remove fine_label and coarse_label columns and
add is_flipped column
Args:
dataset: HuggingFace CIFAR-100 Dataset Object
Returns:
new_dataset: A Dataset object with "img" and "is_flipped" columns only
"""
# remove fine_label and coarse_label columns
new_dataset = dataset.remove_columns(['fine_label', 'coarse_label'])
# add the column for is_flipped
new_dataset = new_dataset.add_column(name="is_flipped", column=np.zeros((len(new_dataset)), dtype=np.uint8))
return new_dataset
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping function that transforms some of the images up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: the probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
# example['img'] = example['img']
if rng.random() > p: # the flip the image and set is_flipped column to 1
example['img'] = example['img'].transpose(
1) # ImageOps.flip(example['img']) #example['img'].transpose(Image.FLIP_TOP_BOTTOM)
example['is_flipped'] = 1
return example
my_test = preprocess_data(test_dataset)
my_test = my_test.map(generate_flipped_data)
```
## Expected results
The dataset should be transformed without problems.
## Actual results
```
/home/rafay/anaconda3/envs/pytorch_new/bin/python /home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
20%|ββ | 1999/10000 [00:00<00:01, 5560.44ex/s]
Traceback (most recent call last):
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2326, in _map_single
writer.write(example)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 441, in write
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py", line 55, in <module>
my_test = my_test.map(generate_flipped_data)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 1953, in map
return self._map_single(
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 519, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 486, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/fingerprint.py", line 458, in wrapper
out = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2360, in _map_single
writer.finalize()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 522, in finalize
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
Process finished with exit code 1
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux(Fedora 35)
- Python version: 3.10
- PyArrow version: 7.0.0
| 237 | Image decoding often fails when transforming Image datasets
## Describe the bug
When transforming/modifying images in an image dataset using the `map` function the PIL images often fail to decode in time for the image transforms, causing errors.
Using a debugger it is easy to see what the problem is, the Image decode invocation does not take place and the resulting image passed around is still raw bytes:
```
[{'bytes': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00 \x08\x02\x00\x00\x00\xfc\x18\xed\xa3\x00\x00\x08\x02IDATx\x9cEVIs[\xc7\x11\xeemf\xde\x82\x8d\x80\x08\x89"\xb5V\\\xb6\x94(\xe5\x9f\x90\xca5\x7f$\xa7T\xe5\x9f&9\xd9\x8a\\.\xdb\xa4$J\xa4\x00\x02x\xc0{\xb3t\xe7\x00\xca\x99\xd3\\f\xba\xba\xbf\xa5?|\xfa\xf4\xa2\xeb\xba\xedv\xa3f^\xf8\xd5\x0bY\xb6\x10\xb3\xaaDq\xcd\x83\x87\xdf5\xf3gZ\x1a\x04\x0f\xa0fp\xfa\xe0\xd4\x07?\x9dN\xc4\xb1\x99\xfd\xf2\xcb/\x97\x97\x97H\xa2\xaaf\x16\x82\xaf\xeb\xca{\xbf\xd9l.\xdf\x7f\xfa\xcb_\xff&\x88\x08\x00\x80H\xc0\x80@.;\x0f\x8c@#v\xe3\xe5\xfc\xd1\x9f\xee6q\xbf\xdf\xa6\x14\'\x93\xf1\xc3\xe5\xe3\xd1x\x14c\x8c1\xa5\x1c\x9dsM\xd3\xb4\xed\x08\x89SJ)\xa5\xedv\xbb^\xafNO\x97D\x84Hf ....
```
## Steps to reproduce the bug
```python
from datasets import load_dataset, Dataset
import numpy as np
# seeded NumPy random number generator for reprodducinble results.
rng = np.random.default_rng(seed=0)
test_dataset = load_dataset('cifar100', split="test")
def preprocess_data(dataset):
"""
Helper function to pre-process HuggingFace Cifar-100 Dataset to remove fine_label and coarse_label columns and
add is_flipped column
Args:
dataset: HuggingFace CIFAR-100 Dataset Object
Returns:
new_dataset: A Dataset object with "img" and "is_flipped" columns only
"""
# remove fine_label and coarse_label columns
new_dataset = dataset.remove_columns(['fine_label', 'coarse_label'])
# add the column for is_flipped
new_dataset = new_dataset.add_column(name="is_flipped", column=np.zeros((len(new_dataset)), dtype=np.uint8))
return new_dataset
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping function that transforms some of the images up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: the probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
# example['img'] = example['img']
if rng.random() > p: # the flip the image and set is_flipped column to 1
example['img'] = example['img'].transpose(
1) # ImageOps.flip(example['img']) #example['img'].transpose(Image.FLIP_TOP_BOTTOM)
example['is_flipped'] = 1
return example
my_test = preprocess_data(test_dataset)
my_test = my_test.map(generate_flipped_data)
```
## Expected results
The dataset should be transformed without problems.
## Actual results
```
/home/rafay/anaconda3/envs/pytorch_new/bin/python /home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
20%|ββ | 1999/10000 [00:00<00:01, 5560.44ex/s]
Traceback (most recent call last):
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2326, in _map_single
writer.write(example)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 441, in write
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py", line 55, in <module>
my_test = my_test.map(generate_flipped_data)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 1953, in map
return self._map_single(
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 519, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 486, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/fingerprint.py", line 458, in wrapper
out = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2360, in _map_single
writer.finalize()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 522, in finalize
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
Process finished with exit code 1
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux(Fedora 35)
- Python version: 3.10
- PyArrow version: 7.0.0
Hi @RafayAK, thanks for reporting.
Current implementation of the Image feature performs the decoding only if the "img" field is accessed by the mapped function.
In your original `generate_flipped_data` function:
- it only accesses the "img" field (and thus performs decoding) if `rng.random() > p`;
- on the other hand, for the cases where `rng.random() <= p`, the "img" field is not accessed and thus no decoding is performed for those examples
By adding the code line `example['img'] = example['img']`, you make sure the "img" field is accessed in all cases, and the decoding is done for all examples.
Also note that there is a little bug in your implementation: `p` is not the probability of flipping, but the probability of not-flipping; the larger is `p`, the smaller is the probability of flipping.
Some refactoring (fixing also `p`):
```python
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping functions that transforms some of the image up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down.
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
do_flip = rng.random() < p # Note the "<" sign here instead of ">"
example['img'] = example['img'].transpose(1) if do_flip else example['img'] # Note "img" is always accessed
example['is_flipped'] = 1 if do_flip else 0
return example | [
-0.0782001764,
-0.0185160097,
-0.1789414287,
0.1256359518,
0.1442411542,
-0.1011210158,
0.061807964,
0.2104717195,
-0.1569966078,
0.1313689649,
0.1810033619,
0.5930034518,
0.199265331,
-0.1440647393,
-0.1841397285,
-0.1133295894,
0.1441317201,
0.3657739758,
-0.1194041669,
-0.1576051265,
-0.5352745056,
-0.0058016893,
-0.3142115772,
-0.0498115756,
0.065735586,
-0.1129853204,
-0.2347699106,
0.0720826313,
-0.1543050557,
0.0624454394,
-0.3068825305,
0.083227478,
-0.3537133932,
0.3459144831,
-0.0001071313,
0.0553660728,
0.4224436581,
-0.063161768,
-0.0315147676,
0.2252112329,
-0.6300364137,
-0.4457523823,
-0.4288947582,
-0.3134616315,
0.1642373949,
-0.4085661173,
0.1668142825,
-0.0885028467,
0.6687870026,
-0.0908485129,
0.2752085626,
0.0136760408,
0.152927801,
0.3442034125,
0.28106758,
0.4071404934,
-0.0406219289,
-0.1018599793,
0.0819702893,
-0.0080074836,
-0.1081826091,
0.4912085831,
-0.0355101377,
-0.2004841715,
-0.0367371254,
-0.1234328747,
0.0809971616,
-0.3957262039,
0.1409005821,
-0.1302900314,
-0.2851917744,
-0.0922358558,
-0.3847452104,
-0.2415292561,
-0.037279319,
-0.0449788719,
0.1452162862,
-0.1153291985,
-0.0904646963,
0.1434401274,
-0.2685393393,
-0.0512601137,
0.0736439005,
0.0661613047,
-0.2679609656,
-0.0386061519,
0.0484811924,
0.0774783865,
0.1353181005,
-0.11176759,
0.2455704659,
-0.009591707,
0.1134392917,
-0.0177221559,
-0.0177025776,
0.0329498611,
-0.127099961,
0.0893476084,
-0.0907780677,
-0.3664819002,
0.0334486179,
0.122856915,
-0.0579914078,
0.3785974979,
0.1180435792,
-0.0196175203,
-0.2483181208,
0.4357409179,
0.0063671758,
-0.2644572854,
-0.2243143916,
-0.0676711276,
0.1355740726,
-0.2211161852,
0.0178885162,
0.1175705865,
0.0551495142,
0.0648556799,
-0.1466043144,
-0.056213133,
-0.3176832795,
0.1789221466,
-0.0265471991,
0.0581976771,
0.2877370715,
0.5349922776,
0.5349512696,
-0.0418968052,
-0.1919421703,
0.0008375006,
-0.2414670438,
-0.0011815538,
-0.2980305851,
-0.0177190267,
-0.0911784619,
0.3379617929,
-0.1961079091,
0.0520534553,
0.0955894813,
-0.0412606001,
-0.0433903895,
-0.2342397273,
0.5421862602,
0.315893203,
-0.2065706551,
-0.0870651305,
-0.2345122397,
0.3308932185,
-0.0263410769,
0.3642312586,
-0.3273599446,
0.3937481344,
0.1380571574,
0.205269888,
0.0544154868,
0.0798467472,
-0.1088276207,
0.0571382828,
0.0486628301,
-0.3628373444,
0.1755817831,
-0.3917004764,
-0.0636118427,
-0.1333117932,
0.1388676763,
0.10727676,
-0.1126511246,
0.1766777188,
-0.1553341895,
-0.1869294047,
0.3283744156,
0.232782051,
0.111663118,
-0.1480347961,
-0.0496095754,
0.29334566,
0.0671888068,
-0.2048177123,
-0.6263278723,
0.5222505331,
0.0545868799,
0.0686715022,
-0.2323667407,
0.1041704044,
0.262042135,
-0.2200964391,
-0.3558206856,
0.51106745,
-0.0767878816,
0.265099436,
-0.2251552343,
-0.0316652507,
0.1071890071,
0.0612292737,
0.0732786283,
0.1076880321,
0.1203860417,
0.2355656177,
0.0605114661,
0.0712214112,
0.1732618362,
0.0234691594,
-0.0020106407,
-0.3004009128,
0.3143393993,
0.3589800894,
-0.008533081,
-0.0467957221,
-0.267287761,
-0.1722675711,
-0.4233689308,
0.0468322784,
-0.0033973979,
0.1593364924,
-0.1741845161,
0.0733197778,
0.2954805791,
0.0457293615,
-0.1059040874,
0.0136391148,
0.0526574589,
0.0739674047,
-0.0296706203,
-0.0424284041,
0.08658126,
0.1038712934,
-0.1019601524,
-0.0687758029,
-0.0981298834,
0.2007267773,
0.0029525354,
-0.0981745273,
-0.081646271,
0.3445185125,
0.0716795176,
0.414914608,
-0.133519873,
-0.3235158622,
0.4556369185,
-0.6278449297,
-0.0200663116,
0.3593318462,
0.2016427517,
0.0080212737,
0.0537549257,
-0.0852341279,
-0.0659775957,
0.214876011,
-0.0544505008,
0.0074811592,
0.0382222608,
-0.2845731378,
-0.2028415203,
-0.1960710734,
-0.087107107,
0.0397335552,
0.2701147497,
0.0596744642,
0.0092033083,
0.0019182486,
0.385137558,
-0.0924583822,
0.0218177773,
0.1286549121,
-0.0238913745,
0.0834388435,
0.2243013829,
0.3510557115,
0.0259991419,
0.0524754599,
0.0451867357,
0.1602248847,
-0.2537530065,
-0.0492814779,
0.1885454059,
-0.0075772498,
0.2494478226,
0.1965441555,
0.2444795817,
0.1798424721,
-0.1492816955,
-0.3297257721,
0.1248127967,
0.0307113435,
0.1356539726,
0.131198734,
-0.5447258949,
-0.4395456612,
0.008113849,
0.281134963,
0.1076046601,
-0.4283286333,
-0.0813691616,
-0.1670624316,
-0.3564525545,
0.2413051724,
0.080647774,
0.032252375,
0.1950263381,
-0.0702469125,
-0.5630292296,
-0.0111061297,
-0.0915672779,
0.1035945714,
0.2306190431,
-0.1928257495,
0.2148155719,
-0.3535459042,
0.0676528066,
-0.1659461707,
-0.3815089464,
0.4660774469,
-0.3076137602,
0.0117020225,
0.0229802579,
0.1077734381,
-0.0744458735,
-0.1293884367,
0.1670966744,
-0.3746874928,
-0.3758941293,
0.0869779363,
-0.0602593273,
-0.1406913251,
-0.5329574347,
0.0757438466,
0.0447792001,
-0.2564290464,
0.2469866872,
-0.2867725492,
0.0951133668,
0.1190226078,
0.4651115835,
0.0049183336,
0.0085270563,
-0.1061586887,
-0.192297563,
-0.0059204316,
0.2055486739,
-0.0203208439,
-0.2856326997,
-0.2658372521,
0.0633431002,
0.0639315844,
0.6518374681,
-0.4091788232,
-0.2022417635,
-0.132897228,
-0.1062530577,
-0.1386202574,
0.0909667239,
-0.1655339003,
0.2422062606,
-0.174551785,
-0.2575541139,
-0.0837859809,
-0.1210929006,
0.1977460533,
0.3818242848,
0.1674267352,
0.1023180708,
0.2557241023,
0.1290996969,
-0.0739330202,
-0.1644843072,
0.1886149943,
0.1250482649,
0.3493855,
0.0308439881,
-0.0346813947,
0.0993109345,
0.0340787992,
-0.1842056215,
-0.0901751518,
-0.2302039266,
-0.5728799105,
-0.1025698408,
0.1402107924,
-0.626527071,
-0.2831132412,
0.1749432087,
0.1100318208,
0.2281517386,
-0.129650265,
0.2306794673,
0.0703015924,
0.0365424938,
0.1989073902,
-0.1113676652,
0.4859673679,
-0.1275354028,
0.0056347926,
-0.4548994005,
-0.2586566806,
0.2308408469,
0.1536586136,
0.4835776985,
-0.1698762029,
-0.1267301887,
0.1987402737,
-0.1639110148,
0.4833833873,
-0.3290736973,
-0.0317032076,
0.1416109651,
-0.0923142731,
-0.2511822879,
0.2088304758,
-0.3408000469,
0.0642040893,
0.1355464458,
0.5006679893,
-0.189737156,
-0.0140366834,
-0.0255165696,
0.0964582041,
0.0300657544,
-0.274074614,
-0.0698020533,
-0.3768853843,
-0.2966530919,
-0.1006576717,
0.1769589782,
-0.141794607,
-0.012718305,
-0.0271716192,
-0.2040470243,
-0.0622232221,
-0.0254846681,
0.3774313927,
0.1878451556,
-0.1066145971,
0.0537815429,
0.1737462431,
0.0404454209,
0.1360654831,
0.3148154616,
-0.1111355945,
-0.1428831816,
0.2897507846,
-0.1751623899,
0.0540232696,
0.3930705786,
-0.0237927958,
-0.1836519241,
0.0726823211,
0.0747592896,
-0.3882193863,
0.0859479159,
0.1991827637,
-0.1229769289,
-0.1506945342,
-0.2011290789,
0.4144720137,
0.1196773946,
-0.0779653713,
0.1071932837,
-0.152426675,
-0.2274150252,
0.736356914,
0.5366311073,
1.0528658628,
-0.1453779191,
-0.1099964082,
0.0073960987,
-0.0255874358,
0.3007440567,
-0.0063245152,
0.263448149,
-0.0586614497,
-0.0663989112,
-0.0463160537,
0.0525105856,
-0.0332457982,
0.1611766964,
-0.3778302968,
-0.0480550118,
0.0713425875,
-0.2206772864,
0.1914254427,
0.0284836292,
-0.1293793768,
-0.2267698497,
0.0559275672,
0.2412129939,
0.1033586338,
0.0175824538,
-0.1306450963,
-0.2221549898,
-0.2788388729,
0.0363532379,
-0.1273580641,
0.2345178872,
-0.3925719857,
0.059194196,
-0.0279006716,
-0.2553299665,
-0.1900206357,
0.1665207297,
-0.0696088448,
0.1455922872,
0.0846431628,
0.1854283512,
0.2812944651,
0.2655282319,
0.0626533553,
-0.0459693372,
0.1361987591,
-0.0554027408,
0.1384361833,
-0.2733632922,
-0.1412914842,
-0.2364870906,
-0.2422071993,
0.2378613502,
-0.1757083386,
0.3053581715,
0.0855673328,
0.1533156931,
-0.1496032476,
0.0365384631,
0.198417455,
-0.0560448356,
0.1647151709,
0.5823465586,
0.0119354287,
-0.3631900847,
0.0232100878,
0.0109406114,
-0.1366986185,
0.0224389583,
0.2450359762,
-0.1991728246,
-0.1000415832,
-0.3014091253,
-0.0046426281,
-0.2188925445,
-0.2012273371,
0.0871684477,
-0.4122448266,
-0.1729282439,
0.0172505379,
-0.1694195569,
-0.0033735211,
-0.0341040082,
-0.1358063817,
-0.2910584509,
-0.0076326849,
0.2073460668,
-0.0106695071,
0.1430817693,
-0.18182908,
0.4052780271,
0.0043176413,
-0.0176420901,
-0.3583823442,
0.2725805938,
-0.1702919155,
0.2646886706,
-0.0653692409,
0.1132736355,
-0.0877963677,
-0.0242288206,
0.2361937463,
0.5670618415,
-0.0726746693,
-0.1345587224,
-0.2174927592,
0.0920188725,
0.1492688209,
-0.0458885282,
-0.0782727078,
-0.1263289005,
-0.0712243468,
-0.1058960259,
-0.1549824625,
-0.0785345584,
-0.2389826477,
-0.0226416271,
-0.1657697558,
0.1637071371,
0.2642869651,
0.0596725233,
0.0423639677,
0.3998483419,
-0.0099190362,
0.2750841677,
0.2505615056,
0.0297523662,
0.0890941322,
-0.0434575751,
-0.1142936349,
0.0128292143,
0.5798623562,
0.2448093295,
0.3421059251,
0.3669421673,
0.2643366754,
0.2625856698,
-0.328725189,
-0.1560590416,
0.0236173887,
0.3163709641,
0.0274197999,
-0.0120946029,
0.367531985,
0.117825374,
-0.0460801087,
0.2006301731,
0.1715619713,
0.001479764,
-0.0175053049,
-0.0142297521,
0.2289813906,
-0.2796445787,
-0.1302688718,
0.6692919731,
-0.287700057,
0.3973176777,
0.1295353323,
-0.0303518903,
0.1027033105,
0.4852224886,
0.0596471056,
0.4428483546,
0.0725522414,
0.4412586689,
0.1785106957,
-0.2371693254,
0.1832149476,
0.4275948405,
-0.003433126,
0.5709407926,
-0.0481739603,
0.1223127395,
-0.3008190095,
-0.0792188421,
0.1359874159,
0.3369153142,
-0.1572363824,
0.0576506294,
-0.1249397993,
-0.1429447532,
-0.3501829505,
-0.1521234363,
0.1313478202,
-0.05766128,
0.7209777832,
0.2279063761,
0.064402014,
0.1635609716,
-0.5615984797,
-0.1231908575,
0.3408599198,
-0.37642169,
0.0642226636,
0.0435508043,
-0.004665799,
0.373190701,
0.3299598396,
0.2410996556,
0.3669174612,
-0.339022845,
-0.0829015523,
-0.0907893777,
-0.0902069807,
-0.3115619421,
0.287149936,
0.0895880386,
0.1418343931,
0.1608126462,
0.1832749546,
-0.2469953597,
-0.4805017412,
0.1543199271,
0.3366680741,
0.1508741975,
0.2284462154,
-0.3070642054,
0.0695872307,
0.0820063204,
-0.1514057219,
-0.3221510947,
-0.1581796408,
0.0773071647,
-0.4117693901,
0.1510703713,
0.2371339202,
0.1025285199,
-0.0428697318,
0.3688181937,
0.5211761594,
0.0145776868,
-0.090930745,
-0.2637612224,
-0.4602003992,
0.250966996,
0.0318948217,
-0.0625934154,
-0.0789050385,
0.1187137663,
0.0024030709,
0.284912616,
0.3276282251,
-0.4223107994,
0.1146761179,
0.1220242903,
-0.2031398714,
-0.0343779735,
0.2879951,
-0.1509160995,
0.0052632685,
-0.3539521098,
0.3588154614,
0.0332423486,
0.2506863177,
-0.0864787996,
-0.1442928165,
-0.3931705356,
-0.2502857149,
0.6093147397,
0.5369588733,
0.060623657,
-0.3411695659,
-0.4398938417,
0.023015935,
-0.173502937,
-0.0980322808,
0.0238052569,
-0.0361952856,
0.3659874201,
0.0354101285,
-0.1101468205,
-0.0785887763,
-0.1552743912,
0.0084326267,
0.1806573272,
-0.5817324519,
0.2854843438,
-0.2028175443,
-0.1738011539,
-0.1237823069,
0.3137438595,
0.1720001996,
0.0370780975,
-0.289565146,
-0.57613796,
0.2102911174,
-0.3342150748,
-0.3296248913,
0.2095519453,
-0.2989692688,
-0.4517781734,
0.3524990082,
-0.4164696634,
-0.1358119994,
-0.0181027092,
-0.1902853698,
-0.2212471366,
0.0207303353,
0.0876868963,
-0.121997416,
0.023265332,
0.4771605432,
0.1239142567,
-0.2152631283,
0.2992173135,
0.0961944684
] |