html_url
stringlengths
48
51
title
stringlengths
5
268
comments
stringlengths
70
51.8k
body
stringlengths
0
29.8k
comment_length
int64
16
1.52k
text
stringlengths
164
54.1k
embeddings
sequence
https://github.com/huggingface/datasets/issues/2820
Downloading “reddit” dataset keeps timing out.
Oh, then could you try deleting the parent directory `1ec12301abba4daa60eb3a90e53529b5b173296b22dc3bef3186e205c75e594c` instead ? This way the download manager will know that it has to uncompress the data again
## Describe the bug A clear and concise description of what the bug is. Everytime I try and download the reddit dataset it times out before finishing and I have to try again. There is some timeout error that I will post once it happens again. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data") ``` ## Expected results A clear and concise description of the expected results. I would expect the download to finish, or at least provide a parameter to extend the read timeout window. ## Actual results Specify the actual results or traceback. Shown below in error message. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: macOS - Python version: 3.9.6 (conda env) - PyArrow version: N/A
27
Downloading “reddit” dataset keeps timing out. ## Describe the bug A clear and concise description of what the bug is. Everytime I try and download the reddit dataset it times out before finishing and I have to try again. There is some timeout error that I will post once it happens again. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data") ``` ## Expected results A clear and concise description of the expected results. I would expect the download to finish, or at least provide a parameter to extend the read timeout window. ## Actual results Specify the actual results or traceback. Shown below in error message. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: macOS - Python version: 3.9.6 (conda env) - PyArrow version: N/A Oh, then could you try deleting the parent directory `1ec12301abba4daa60eb3a90e53529b5b173296b22dc3bef3186e205c75e594c` instead ? This way the download manager will know that it has to uncompress the data again
[ -0.3229553699, -0.1548748016, -0.0958516523, 0.2122768909, 0.1727839112, 0.2089084983, 0.031165788, 0.2200944275, -0.0430058129, -0.0564695299, -0.0722840279, 0.1025689021, 0.2630367875, -0.0284358636, -0.1015664488, 0.2591444552, 0.075186044, -0.1532896757, -0.1340025365, 0.0937622488, -0.0453595035, 0.1273859739, -0.1522025615, -0.1518075764, -0.2515836954, -0.0813380256, -0.1123950556, -0.0133470297, -0.2417638153, -0.3136615753, 0.2217781544, 0.1977149397, -0.067033641, 0.6311798692, -0.0001082193, -0.1661071777, 0.2970056236, 0.0607004911, -0.4434763789, -0.5188803673, -0.215861842, -0.1876017004, 0.0243745521, 0.0184114873, 0.1335863322, 0.07640668, 0.0671557263, -0.3609517217, 0.3123519123, 0.3766123652, 0.2216304839, 0.2938491702, 0.1855627149, -0.1055656523, 0.1551819444, 0.0236800835, 0.0808867812, 0.4364544153, 0.1442380995, -0.134750247, 0.1696618646, 0.0660865307, -0.0995427743, 0.2206777334, -0.1114257276, -0.0089219864, 0.1844028533, -0.4553858042, -0.035913378, 0.129472971, 0.8906870484, -0.039768558, -0.3760145009, -0.2968245149, 0.1337404847, 0.027068764, 0.4262497425, 0.4283308983, -0.3859822154, 0.238926813, -0.2663232386, -0.0228599217, 0.0520493388, 0.3368496001, 0.0947218984, -0.0229386128, -0.0076307151, 0.1902260333, 0.1924698949, -0.0476931222, 0.3261295557, -0.3512673974, 0.0251161847, -0.0928472728, -0.3812164664, -0.0857717916, 0.0138087701, 0.1782032251, 0.1665260196, 0.0568922758, -0.0361492969, -0.2665973306, -0.1561311334, 0.1570049375, 0.428291291, 0.0166723169, -0.0358768776, 0.1470229477, 0.2235928476, -0.05978062, -0.045405589, 0.0735236108, 0.050184872, -0.0342416167, 0.1098432094, -0.0982878581, 0.2976775765, -0.1693591774, -0.2574080825, -0.0296505429, 0.1553853899, -0.1137759164, -0.2534312904, 0.1721238345, -0.4568338692, 0.3014909029, -0.0733495504, 0.1033494323, -0.3224067986, -0.3715546131, -0.077032432, 0.0178420842, -0.2535531521, -0.1149994433, -0.0478270985, -0.0865908265, 0.0556586385, 0.254918009, -0.0034715198, -0.3169315457, -0.0021104626, -0.2342969477, -0.0961764008, 0.2281833589, -0.0899430588, 0.4282740355, 0.0563642159, 0.1315538138, -0.0567200184, -0.0037882589, -0.3410362005, -0.2845478058, -0.1375983655, 0.2481367886, -0.2255692184, -0.2428178787, -0.1524555981, -0.0870864615, 0.129522711, 0.043893218, -0.0951596648, -0.0379464775, 0.1215739697, -0.1129857078, -0.0805243105, 0.3380516171, -0.4335293174, 0.2870416641, -0.2611808777, 0.0653508976, 0.2386942059, 0.295255959, -0.2074874938, 0.0207774043, -0.2533313632, -0.1445063353, 0.2831650972, -0.1660370231, -0.7092906237, 0.067032747, -0.3865571618, 0.0544935465, -0.0951563567, 0.2693454325, 0.2380082905, -0.1328061372, 0.0359673873, 0.4281698465, -0.240654394, 0.068811141, -0.3896731436, -0.2089088112, 0.0580078401, 0.1221135929, -0.0680813417, 0.0384232439, -0.147501573, -0.0306046773, 0.308216691, 0.3910115361, 0.0956728011, 0.3066320121, -0.0085600484, 0.267818898, 0.0175747648, -0.1669080853, -0.3697958589, 0.1816888601, 0.4722082317, 0.0637296587, -0.2675576806, -0.0389683023, -0.455892086, 0.0080368668, -0.0186160356, 0.045120243, 0.0606048554, 0.2065854967, 0.2361143976, 0.2035788, -0.0189473331, 0.5488877892, 0.0479957163, 0.2936903834, -0.1253660321, 0.1977761388, -0.1798652261, -0.1205083951, 0.1851100773, -0.3631322384, 0.1816339195, -0.2229929268, -0.1726033092, 0.3127636313, 0.0540520065, 0.1943843067, 0.0477309972, -0.2152787745, 0.261783123, -0.1447605789, -0.1480251104, 0.407790035, 0.1012228951, 0.0592158288, -0.2254852504, 0.0057251155, 0.2113425434, 0.1735050529, -0.2585218549, 0.1331923902, 0.1047111452, -0.0047231093, 0.2456095666, -0.0934916139, 0.3387975395, -0.2489475459, 0.1024933234, -0.1653572023, 0.0717942119, 0.3274766207, 0.3101589978, 0.0543168709, -0.2026435435, 0.2211812288, 0.0865455568, -0.1284261495, -0.0187281426, 0.43581599, 0.2632165253, 0.1839124411, 0.2763884366, -0.0652682334, -0.1404544413, -0.1486682296, 0.1811478734, 0.0201215521, -0.0072507188, -0.0460746922, 0.1301450133, -0.0028623361, -0.1005292386, -0.3409173489, 0.163184464, 0.3060810268, -0.0270073712, -0.014440041, -0.3174676299, -0.1755042076, 0.2243026197, -0.0507293753, -0.2910994887, -0.5441323519, -0.0666457564, 0.273247838, -0.0621725693, 0.0719594285, -0.1098333001, -0.1164225191, 0.375008285, -0.1574857682, -0.0236030892, -0.127732873, 0.0175014324, 0.1086304858, 0.2345090061, -0.2008152753, 0.3059836924, -0.2675750554, -0.2694883347, -0.4199394882, -0.0039956272, 0.0205786936, -0.1766994745, 0.2704047859, -0.1738453954, 0.4695635736, 0.1040984243, 0.1371682882, 0.1168254167, -0.1985444576, -0.0714371055, -0.0763071328, 0.0881827623, 0.1546368003, -0.0620138571, -0.3198410273, -0.252584517, -0.3489461839, 0.1429210901, -0.1798453629, -0.0103377011, 0.0810252875, 0.1957711875, -0.0042206869, -0.0697445571, 0.1001497433, -0.2080843896, -0.4533270895, 0.4969054163, -0.0752503201, -0.2108902037, 0.0671742409, 0.2153132856, -0.034747377, 0.2523423433, -0.6985371113, 0.1177351326, -0.3417282104, 0.2311582267, -0.0959617794, -0.0915398598, 0.1849167645, -0.4445742369, -0.1377575994, 0.0578003079, 0.0158677995, -0.1199643314, 0.1828929633, 0.4253917336, -0.1589240432, 0.2361419946, 0.0096746236, 0.1478537321, 0.1611283422, 0.0944743976, 0.1329365671, 0.098626174, 0.3116336465, 0.0382884406, -0.2367188334, -0.0082221478, -0.0521577001, -0.1688451469, 0.055683963, 0.0042462684, -0.1978375316, -0.1728803813, -0.0491406061, -0.3031013608, -0.2826763093, -0.078357175, -0.2005130947, -0.0245786011, 0.2768310308, 0.0961308926, 0.0270894505, -0.224498108, -0.068240732, 0.0223054029, -0.0316496231, -0.188051641, -0.4782491326, 0.1640075147, -0.3637947142, 0.2138876468, -0.0782149136, 0.2673687637, -0.0601463169, 0.0691483766, 0.1800275445, 0.0097439885, 0.5972950459, -0.1228707656, 0.0711158961, -0.0421209075, 0.2663243413, -0.3959361315, -0.0773222297, 0.1307679415, 0.2371252626, 0.4672698677, -0.077089414, -0.2989765108, 0.0393822826, 0.0109473057, 0.3277231455, 0.0852344036, -0.4379777312, 0.0409489274, -0.1564339995, -0.2209916413, 0.1038960069, 0.0966446102, 0.0743275508, -0.0187690649, -0.1925455928, 0.2158981413, 0.1383884549, 0.1051001549, -0.1186631396, 0.2249958217, -0.2883524001, 0.4566146731, 0.1170316339, -0.1751351953, 0.3143304884, 0.7368860841, 0.2488533407, -0.446980536, 0.0710992664, -0.0204799399, -0.1305084825, 0.3000687361, 0.0614250153, -0.0396418534, -0.2185840458, 0.4220641851, -0.0212409683, 0.1574663073, 0.291026026, 0.0361128785, -0.43999964, -0.4556047618, 0.1672200859, 0.0991090611, 0.0398138165, 0.7080281973, -0.1060628891, 0.1349107325, 0.2072747201, -0.0953417644, 1.0428035259, -0.2065405697, 0.1418237984, 0.0392075218, -0.094096899, 0.4687250257, -0.3534317613, 0.0853755027, -0.0433652028, 0.0304952413, 0.0344039425, -0.0845328122, -0.1817820519, 0.31682235, -0.2818129063, 0.1816871166, -0.2366980016, 0.1214530319, -0.1576096863, 0.192866385, -0.3748884201, -0.0243159477, -0.1379539073, 0.2495530397, 0.0385157503, 0.2364373505, 0.025989227, 0.1212938279, -0.1247035936, -0.0537201688, -0.6156315207, 0.051745601, -0.1698076576, -0.0385152251, -0.3800042272, -0.2348261774, -0.0605929345, 0.1536153108, 0.112854749, 0.2116148174, -0.0490338728, 0.2427801788, -0.1440327466, -0.0439156108, -0.0471793786, -0.1807093769, 0.127368018, 0.0231979936, -0.3375989199, 0.2221049815, -0.0565143563, -0.1635820419, 0.2309990674, 0.2578209639, 0.0968178958, -0.1043439656, 0.0605710745, -0.086950615, 0.15474464, -0.2690959573, 0.1742861271, 0.2979970574, 0.1570418924, 0.2275495231, -0.1475706995, -0.3382974267, -0.3909548521, 0.3864550292, 0.0356897935, -0.0869839936, 0.2533664405, 0.2230575383, -0.3960119486, -0.312507093, 0.1102763787, -0.5467652082, -0.3165749311, 0.2736474276, -0.4207130671, 0.2876581848, -0.0433816276, -0.1575330198, 0.2123345733, 0.0839532837, 0.1333033442, -0.5559970737, -0.1051084995, -0.115215309, -0.278616637, 0.0314197093, -0.1133976132, -0.1451276541, 0.2314847112, -0.0455206037, -0.3330335319, 0.1012118459, -0.2488737404, 0.1280424446, 0.262468189, -0.0927805901, 0.3442624211, -0.1348826885, 0.1149705052, 0.1428750902, -0.1397129297, -0.1804018617, -0.0137787536, 0.1184453964, -0.1072438806, -0.1202156916, 0.0965372622, -0.4541833997, -0.081967324, 0.0703595579, -0.0191846974, 0.0994390249, 0.0988776684, -0.2201793343, 0.1730373055, -0.0524031743, -0.0701599792, 0.165061295, -0.0772803873, 0.5235566497, 0.2017834187, 0.258553803, 0.1099745929, 0.0459434092, -0.5424667597, -0.016670242, -0.0623555481, 0.0409431159, 0.4354705513, -0.2562422752, 0.0311666727, 0.3048494756, 0.4342500269, 0.5167424679, -0.0207806714, -0.1835752577, 0.3832827508, 0.298550427, -0.0159601606, -0.1510686427, 0.2647125125, 0.1717211902, -0.0071417019, 0.1411260068, -0.0328540727, -0.0482021943, 0.1285703778, 0.2093427479, 0.6953505278, 0.0386536866, 0.2273382246, 0.1782871485, 0.1388127804, -0.0286279172, 0.4683577418, 0.2474286556, 0.0253019966, 0.1073258296, -0.1378977746, -0.036927022, 0.0003925273, 0.1407733709, -0.1127589494, -0.3116642833, 0.0422544517, 0.2148372531, -0.2325132489, -0.0299792737, 0.1322470605, 0.1798063815, -0.2827201188, -0.1676203161, -0.1644778848, 0.2919852138, 0.0641235411, 0.2669748664, 0.2639373243, -0.0923781618, -0.1687738001, 0.0813644528, 0.0371086448, -0.2284737527, 0.3985344768, 0.2368307114, 0.1304698288, -0.5860459805, -0.054081168, -0.0530212335, 0.1957153082, -0.4779833555, 0.026409531, 0.0305638332, -0.2674969733, -0.018598346, 0.2658748925, 0.5785298347, 0.1724966764, -0.0661333054, 0.0794490427, -0.0307383221, -0.0551208183, -0.0800938457, 0.4403761327, 0.0343763568, -0.093406871, 0.3708054423, 0.1527278423, -0.2607953548, 0.1164206043, 0.0944369435, 0.2666628063, -0.2454839796, -0.030715663, -0.0360299125, -0.1037126333, -0.3233613968, -0.2196986824, -0.207678318, 0.0101851262, 0.5007897615, -0.3325724006, -0.0063661002, -0.2588769794, 0.1201225072, -0.1117340177, 0.3275039792, 0.5890833735, 0.2320920825, -0.1620316505, -0.33756423, -0.511220336, 0.1102174222, -0.5844734907, -0.1985818148, -0.1481407732, 0.4136403799, 0.1261546165, 0.4157709181, 0.3685453832, 0.112601459, -0.3510939479, 0.4230378866, -0.3570306301, -0.3375178277, -0.0206218287, 0.0368579105, 0.0541545451, -0.3038409054, 0.1973660439, -0.2808118761, 0.0178735182, -0.109153688, -0.1492460072, 0.1750957668, -0.0382716842, 0.5005350113, 0.0738065317, 0.2318066508, 0.1809501201, -0.5287169218, -0.49061957, -0.2379536629, -0.0188400447, -0.0321707651, 0.1138349324, 0.3460378647, -0.3993891478, 0.0892241895, -0.1867887378, 0.2027194351, -0.0821188092, -0.2360035181, 0.194528237, -0.2277838737, 0.0029829368, 0.3618313074, 0.0315354988, 0.2227502018, -0.0178694725, 0.2073407024, -0.2477817833, -0.3570299745, 0.2816218436, 0.1005691811, -0.4137587845, 0.0535926782, 0.1700963676, 0.1150684208, -0.0047739651, -0.2395492792, 0.1650066674, 0.3653582931, -0.0137983756, -0.2470385134, 0.1575018764, 0.0031552985, 0.1486154795, -0.0199635401, 0.5151884556, 0.0958432406, -0.2933821678, 0.3243218064, -0.0978850797 ]
https://github.com/huggingface/datasets/issues/2820
Downloading “reddit” dataset keeps timing out.
It seems to have worked. It only took like 20min! I think the extra timeout length did the trick! One thing is that it downloaded a total of 41gb instead of 20gb but at least it finished.
## Describe the bug A clear and concise description of what the bug is. Everytime I try and download the reddit dataset it times out before finishing and I have to try again. There is some timeout error that I will post once it happens again. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data") ``` ## Expected results A clear and concise description of the expected results. I would expect the download to finish, or at least provide a parameter to extend the read timeout window. ## Actual results Specify the actual results or traceback. Shown below in error message. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: macOS - Python version: 3.9.6 (conda env) - PyArrow version: N/A
37
Downloading “reddit” dataset keeps timing out. ## Describe the bug A clear and concise description of what the bug is. Everytime I try and download the reddit dataset it times out before finishing and I have to try again. There is some timeout error that I will post once it happens again. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data") ``` ## Expected results A clear and concise description of the expected results. I would expect the download to finish, or at least provide a parameter to extend the read timeout window. ## Actual results Specify the actual results or traceback. Shown below in error message. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: macOS - Python version: 3.9.6 (conda env) - PyArrow version: N/A It seems to have worked. It only took like 20min! I think the extra timeout length did the trick! One thing is that it downloaded a total of 41gb instead of 20gb but at least it finished.
[ -0.3443332911, -0.1409981251, -0.0883191377, 0.1077194437, 0.1344687492, 0.141922012, 0.0290934015, 0.2305130363, -0.0500457995, -0.1488426179, -0.0651007369, 0.1319429129, 0.2865750492, 0.0448666215, -0.055188667, 0.2586466372, 0.0915641338, -0.2118441612, -0.0709678978, 0.0641468763, -0.0160001814, 0.1166802645, -0.1866285205, -0.1631231457, -0.2236130238, -0.0258424468, -0.110201776, -0.097168237, -0.2112137079, -0.2538015842, 0.2425091118, 0.1964348555, -0.105899021, 0.5974957943, -0.0001101712, -0.1901296973, 0.301458329, 0.0749202147, -0.3920449018, -0.5111637115, -0.1665065289, -0.149934873, 0.0677512214, 0.058953017, 0.1219026893, 0.1088143587, 0.0431348607, -0.3456904292, 0.2524759173, 0.4062386155, 0.1974427402, 0.3186732829, 0.2356889993, -0.0650090277, 0.18895033, 0.0090738609, 0.0612703785, 0.4360180497, 0.2413875759, -0.1482383907, 0.2863084674, 0.0281022452, -0.1203849316, 0.2467676699, -0.1053781062, 0.0088084526, 0.144311741, -0.4500546753, -0.0667436123, 0.1656841785, 0.8530226946, 0.0380398147, -0.4033251107, -0.2840457857, 0.1371209472, 0.0184612796, 0.3736428022, 0.4260639548, -0.411041826, 0.1774049848, -0.2858321965, -0.0086825341, 0.0160081685, 0.3706651032, 0.1045638621, -0.0335828885, 0.0563668236, 0.264219135, 0.1433645934, -0.044408191, 0.250808388, -0.3367406428, 0.0569297336, -0.0836201161, -0.4266660511, -0.0696589649, 0.0054503065, 0.2371152043, 0.1993168294, 0.0109835435, -0.0365408622, -0.206504032, -0.1257818043, 0.1487922966, 0.3903267682, -0.0173849426, -0.0382204726, 0.155954659, 0.2482757866, -0.1521490067, -0.0725685135, 0.0817229748, 0.0498879701, -0.0067598075, 0.0552342683, -0.1608839035, 0.2735025883, -0.2745935023, -0.1909502149, -0.0340158232, 0.1356942207, -0.0971092284, -0.2648788095, 0.1821261048, -0.4788562953, 0.2605338991, -0.0654443353, 0.1063377336, -0.3326457441, -0.3925063014, -0.0617963001, 0.0165216066, -0.2331839204, -0.0992080793, -0.0376826376, -0.0509475693, 0.0369335935, 0.1624528617, 0.0429836884, -0.292894721, 0.0006367117, -0.1750115156, -0.101782307, 0.1838419288, -0.1402424425, 0.4254395068, 0.0267335493, 0.1841027886, -0.0658648908, 0.0560505725, -0.282471031, -0.2472639531, -0.1145939454, 0.2255191356, -0.2630479932, -0.342759341, -0.1906622201, -0.0305897761, 0.1723276526, 0.0454449058, -0.1256668419, -0.0434739925, 0.1271686703, -0.070953995, -0.0858594403, 0.3016445041, -0.5062203407, 0.2912119627, -0.1940141022, 0.1040054113, 0.2185676694, 0.2560474277, -0.1935177445, -0.0209168904, -0.2023589909, -0.1125778854, 0.2611091435, -0.1710772514, -0.684820056, 0.051965531, -0.3113513589, 0.0178581774, -0.1778744161, 0.2989580035, 0.2475440353, -0.0631886944, 0.0114182811, 0.455970645, -0.205466792, 0.0613626242, -0.3999524713, -0.2040452957, 0.0406922475, 0.2002241611, 0.0118118934, -0.0178570896, -0.1679242849, -0.0560867786, 0.3344514668, 0.4108457863, 0.0995041803, 0.2582981586, 0.0189512856, 0.2807393372, -0.0070326589, -0.1741076857, -0.3393336236, 0.1816741377, 0.5479789376, 0.0701310635, -0.2165242732, -0.0037397742, -0.3784163892, 0.0311316624, 0.0122752618, 0.04929059, 0.0164883658, 0.1553182304, 0.2597072124, 0.2316700071, -0.0332967937, 0.5538896322, 0.0001851693, 0.3040786684, -0.0871677697, 0.2223827988, -0.1737217754, -0.1235966086, 0.1765869558, -0.3449999988, 0.1806221604, -0.2068100572, -0.1502499878, 0.299553901, 0.0429317541, 0.0923921913, 0.031935472, -0.1928214729, 0.2773079574, -0.1518629193, -0.1848555058, 0.3243634105, 0.1011919081, 0.029574655, -0.2526457608, -0.0034103394, 0.2128174752, 0.2231773734, -0.2287004888, 0.1309572458, 0.0696669221, 0.0324922949, 0.1943874359, 0.0144693777, 0.3520644307, -0.2859784663, 0.0815062821, -0.1778685153, -0.0075532496, 0.3557200432, 0.3431664705, 0.0843382552, -0.21393466, 0.2109946758, 0.1186635941, -0.1527644694, 0.0064594764, 0.3508175015, 0.2607825994, 0.1872297525, 0.2359100431, -0.1030005217, -0.1805158406, -0.15315485, 0.1440916359, 0.0476367585, -0.0420634374, -0.0848130435, 0.1274741888, -0.0298430156, -0.0700507537, -0.3875248432, 0.1550900638, 0.3091111183, 0.0100949407, -0.0407451168, -0.2386572957, -0.1384452432, 0.2339592129, -0.1119868904, -0.3209648132, -0.5685401559, -0.0882723778, 0.2417789996, -0.0517280102, 0.0745034963, -0.1412694156, -0.1699117422, 0.3960912526, -0.2323114574, 0.0296000093, -0.2021948397, -0.0129111493, 0.0996216387, 0.226380825, -0.143513009, 0.2954115272, -0.2167693824, -0.2845119238, -0.4060565829, -0.0627469122, 0.0189122967, -0.1931963414, 0.307266891, -0.2622003257, 0.4708536863, 0.0297148526, 0.191657424, 0.1111349836, -0.2169249058, -0.0593550429, -0.0859667063, 0.0615780428, 0.1041709036, -0.0240693577, -0.2971175313, -0.2785848081, -0.3193433881, 0.1920940876, -0.1284937561, -0.0572026782, 0.0882262886, 0.2302348763, 0.0005929619, -0.0859978497, 0.0964080021, -0.1858763397, -0.4200663567, 0.5475694537, -0.064603664, -0.2359232455, 0.0955689549, 0.238853246, -0.0694145411, 0.2651895881, -0.6985402703, 0.1034327671, -0.3445624113, 0.2580443025, -0.0691322088, -0.1756858081, 0.1853325516, -0.5137165189, -0.1090017706, 0.0757054538, 0.0311740264, -0.0786780864, 0.140820235, 0.3928356469, -0.1135044396, 0.2219334692, 0.0011651888, 0.1633587182, 0.1411469728, 0.0361655541, 0.0860657543, 0.1088596657, 0.26946944, 0.0133497231, -0.2448961586, 0.0432926528, -0.0245828182, -0.1301953793, 0.0362730548, -0.0228021201, -0.2440938503, -0.1782372445, -0.0317856707, -0.265655905, -0.2509201169, -0.0718888342, -0.1711304933, -0.0590673313, 0.3505455256, 0.1751370132, 0.0286384337, -0.2856179178, -0.075919278, -0.0141121484, -0.0857098699, -0.1887927651, -0.5308369398, 0.1519776136, -0.3958623409, 0.2477415502, -0.1128498763, 0.2813426256, -0.0573084205, 0.0412850901, 0.1840789765, -0.0091782287, 0.5779340267, -0.0978501141, 0.026522439, -0.0464659259, 0.2701936364, -0.4184788465, -0.1023059785, 0.1767011285, 0.2083651721, 0.5239044428, -0.0358798131, -0.3270117044, 0.1232305616, 0.0759910718, 0.333339572, 0.1616409719, -0.4344725609, 0.0406917483, -0.1140853167, -0.1964607835, 0.145003885, 0.0693396255, 0.0846046209, -0.0492776223, -0.1960895061, 0.2146617472, 0.1362990141, 0.0859566554, -0.1118159369, 0.1846217364, -0.3388819098, 0.4967480302, 0.0981100947, -0.1820321679, 0.296505481, 0.6978913546, 0.2273444533, -0.4742150009, 0.0299002603, -0.0565426648, -0.0924846008, 0.3000592887, 0.0675781816, -0.0263834409, -0.2150111198, 0.4110396206, 0.0790701658, 0.1983987391, 0.2396910489, 0.0864009857, -0.4709185362, -0.4800233245, 0.1404573321, 0.0652402937, 0.0255748183, 0.7254692912, -0.1011430249, 0.1864498854, 0.2429667413, -0.1138592958, 1.0272659063, -0.2083415836, 0.1298530102, 0.0084400959, -0.0949072987, 0.4633692503, -0.3317195475, 0.0691340119, -0.0628283322, 0.0812851936, 0.0680287033, -0.0684602261, -0.178236872, 0.3203915954, -0.2527096868, 0.1336240321, -0.1656550169, 0.1418562233, -0.1555574834, 0.2258992493, -0.2960715592, -0.0161667876, -0.0694222674, 0.2329601347, -0.0125220772, 0.2096318007, 0.0571890585, 0.1308654249, -0.2241943479, -0.0392896496, -0.6747106314, 0.053494297, -0.1191187352, -0.0541616008, -0.344176501, -0.2679921389, -0.0499541461, 0.1242871061, 0.1085306108, 0.294983536, -0.0722758546, 0.31721735, -0.1573854685, -0.0684299618, 0.0089841634, -0.2384509891, 0.1120081693, 0.0059922785, -0.3947495818, 0.2044000179, -0.0380244143, -0.2180022001, 0.147164017, 0.2849782109, 0.208292678, -0.0738232806, 0.0619351044, -0.0328314118, 0.1700588614, -0.2620548606, 0.1565244645, 0.3397985995, 0.1525165588, 0.2784982026, -0.127045691, -0.3394215107, -0.4096659422, 0.4108080566, 0.0111026671, -0.039970763, 0.2374467552, 0.2874158621, -0.4115639329, -0.2906267345, 0.0608270466, -0.5332084894, -0.3351151943, 0.2490384281, -0.4125133455, 0.3651673794, -0.0505499877, -0.1469937414, 0.146928519, 0.0774998963, 0.1968627572, -0.5906015635, -0.0626302212, -0.1093577594, -0.2917639613, 0.0255080108, -0.1097742096, -0.0930524468, 0.2142010331, -0.0552366599, -0.2938352227, 0.1041357443, -0.2343114465, 0.1285980493, 0.3187291622, -0.1083915085, 0.3753850758, -0.1432559788, 0.0887855366, 0.1932699382, -0.1047508568, -0.1710685492, 0.0111000463, 0.1229716241, -0.0484922566, -0.161756888, 0.1111610904, -0.4427931309, -0.090479821, 0.1024795622, -0.0471711233, 0.1314583868, 0.0653811991, -0.23334454, 0.2394037396, -0.007144697, 0.0015387014, 0.2036977708, -0.0533768721, 0.5051442385, 0.2251233757, 0.2564186454, 0.1778498292, 0.0664253458, -0.4852139354, -0.0160632432, -0.1081022993, 0.0566376746, 0.4679363072, -0.286265552, 0.0492569655, 0.3104962111, 0.4150469005, 0.5625926852, 0.0313830562, -0.184626013, 0.4165687859, 0.2802245915, -0.0111240558, -0.1266764253, 0.3446885645, 0.1587622464, 0.0120020136, 0.1286056042, -0.0494401492, -0.0430686474, 0.1444677711, 0.2352799475, 0.6867426038, 0.0569093302, 0.18368572, 0.100298658, 0.1104222238, -0.0405236632, 0.4586594403, 0.2718217969, -0.0080098175, 0.1491599083, -0.1766094714, -0.1374292523, -0.0225099698, 0.1113670915, -0.0861214846, -0.2771998048, 0.0229274295, 0.1849721521, -0.2480677664, -0.0364361256, 0.1623397022, 0.1757763475, -0.2252261937, -0.1415658593, -0.1562654376, 0.2823522389, 0.1131407246, 0.2638892233, 0.2492494285, -0.1177722588, -0.1352326274, 0.109432064, 0.0531334393, -0.2901606858, 0.3783889711, 0.2352382243, 0.1187348217, -0.6347621083, -0.013238946, -0.1434114873, 0.1692615449, -0.4513990879, 0.008547429, -0.0373289064, -0.2354824543, 0.0193487294, 0.181972906, 0.5284031034, 0.1656910479, -0.0857023597, 0.1386563778, -0.0580246188, -0.0462211929, -0.059084855, 0.4760381281, 0.0833449215, -0.0854204297, 0.4278469682, 0.1260392666, -0.2391670346, 0.1376173645, 0.0726827532, 0.2613369524, -0.2798641324, -0.0890470892, -0.0237901397, -0.1442391574, -0.4345557392, -0.1916846633, -0.1944945753, -0.0115776528, 0.4266690612, -0.325702101, -0.0417136326, -0.3187478781, 0.1037225872, -0.1676360518, 0.3223071694, 0.5741574168, 0.2755866945, -0.169983834, -0.298399806, -0.4349110126, 0.0711830184, -0.5885078311, -0.1753156483, -0.1917393357, 0.4649915099, 0.1373921335, 0.3879271746, 0.3642195463, 0.0924224555, -0.3997993469, 0.475535661, -0.3340259492, -0.2970176637, -0.0493946858, 0.0344097093, 0.0781395063, -0.2549126148, 0.1945784986, -0.2697484791, 0.003186129, -0.1564325988, -0.2445120811, 0.1896850169, -0.0470434055, 0.5041049719, 0.0649289414, 0.3030160069, 0.2709485292, -0.4769492149, -0.4949391186, -0.2478877455, -0.0227423683, 0.0370464101, 0.0322430469, 0.3441215158, -0.3469089568, 0.0326553062, -0.1335640699, 0.213710174, -0.1422482878, -0.3069438338, 0.2198386788, -0.2569903135, 0.0220550448, 0.4016231, -0.0177027881, 0.1567059308, -0.0345552638, 0.1839789301, -0.2789254189, -0.3133024871, 0.2667184472, 0.0398920402, -0.3934294283, 0.0392876975, 0.0985216647, 0.1716532856, -0.0038627367, -0.2305062711, 0.1069827229, 0.3953537941, -0.0248194113, -0.2134450227, 0.1907692999, 0.0378335081, 0.1685904264, -0.0826666951, 0.4905620813, 0.0174226854, -0.2901218235, 0.2927952111, -0.1183576137 ]
https://github.com/huggingface/datasets/issues/2818
cannot load data from my loacal path
Hi ! The `data_files` parameter must be a string, a list/tuple or a python dict. Can you check the type of your `config.train_path` please ? Or use `data_files=str(config.train_path)` ?
## Describe the bug I just want to directly load data from my local path,but find a bug.And I compare it with pandas to provide my local path is real. here is my code ```python3 # print my local path print(config.train_path) # read data and print data length tarin=pd.read_csv(config.train_path) print(len(tarin)) # loading data by load_dataset data = load_dataset('csv',data_files=config.train_path) print(len(data)) ``` ## Steps to reproduce the bug ```python C:\Users\wie\Documents\项目\文本分类\data\train.csv 7613 Traceback (most recent call last): File "c:/Users/wie/Documents/项目/文本分类/lib/DataPrecess.py", line 17, in <module> data = load_dataset('csv',data_files=config.train_path) File "C:\Users\wie\Miniconda3\lib\site-packages\datasets\load.py", line 830, in load_dataset **config_kwargs, File "C:\Users\wie\Miniconda3\lib\site-packages\datasets\load.py", line 710, in load_dataset_builder **config_kwargs, File "C:\Users\wie\Miniconda3\lib\site-packages\datasets\builder.py", line 271, in __init__ **config_kwargs, File "C:\Users\wie\Miniconda3\lib\site-packages\datasets\builder.py", line 386, in _create_builder_config config_kwargs, custom_features=custom_features, use_auth_token=self.use_auth_token File "C:\Users\wie\Miniconda3\lib\site-packages\datasets\builder.py", line 156, in create_config_id raise ValueError("Please provide a valid `data_files` in `DatasetBuilder`") ValueError: Please provide a valid `data_files` in `DatasetBuilder` ``` ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: win10 - Python version: 3.7.9 - PyArrow version: 5.0.0
29
cannot load data from my loacal path ## Describe the bug I just want to directly load data from my local path,but find a bug.And I compare it with pandas to provide my local path is real. here is my code ```python3 # print my local path print(config.train_path) # read data and print data length tarin=pd.read_csv(config.train_path) print(len(tarin)) # loading data by load_dataset data = load_dataset('csv',data_files=config.train_path) print(len(data)) ``` ## Steps to reproduce the bug ```python C:\Users\wie\Documents\项目\文本分类\data\train.csv 7613 Traceback (most recent call last): File "c:/Users/wie/Documents/项目/文本分类/lib/DataPrecess.py", line 17, in <module> data = load_dataset('csv',data_files=config.train_path) File "C:\Users\wie\Miniconda3\lib\site-packages\datasets\load.py", line 830, in load_dataset **config_kwargs, File "C:\Users\wie\Miniconda3\lib\site-packages\datasets\load.py", line 710, in load_dataset_builder **config_kwargs, File "C:\Users\wie\Miniconda3\lib\site-packages\datasets\builder.py", line 271, in __init__ **config_kwargs, File "C:\Users\wie\Miniconda3\lib\site-packages\datasets\builder.py", line 386, in _create_builder_config config_kwargs, custom_features=custom_features, use_auth_token=self.use_auth_token File "C:\Users\wie\Miniconda3\lib\site-packages\datasets\builder.py", line 156, in create_config_id raise ValueError("Please provide a valid `data_files` in `DatasetBuilder`") ValueError: Please provide a valid `data_files` in `DatasetBuilder` ``` ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: win10 - Python version: 3.7.9 - PyArrow version: 5.0.0 Hi ! The `data_files` parameter must be a string, a list/tuple or a python dict. Can you check the type of your `config.train_path` please ? Or use `data_files=str(config.train_path)` ?
[ -0.0574387684, -0.0158846527, 0.0742203966, 0.5506054163, 0.3027438521, -0.1935664415, 0.4147057533, 0.076913625, 0.0825466365, 0.0638931841, -0.0089266263, 0.5863606334, 0.0122842751, -0.0284531452, 0.1138427705, -0.0146792252, 0.1873941272, 0.0855282247, -0.1241159886, -0.2560266554, -0.3155732155, 0.1688575596, -0.146074608, 0.1901940703, -0.0699702352, 0.210943073, -0.282204479, 0.4675119221, 0.0227658823, -0.2501046062, 0.4729164243, -0.2809208035, 0.4408825934, 0.4645851851, -0.0001151561, -0.009731032, 0.475538075, 0.0375796333, -0.2390375435, -0.6072427034, -0.1662133038, -0.2815755904, 0.4258599281, -0.1936818063, -0.0665415972, -0.1174364537, -0.2235064507, -0.1684543192, 0.4106477499, 0.4155712426, 0.1782934815, 0.1498638988, -0.2141827345, -0.1690318733, 0.3525304496, 0.1742016077, 0.0461490229, 0.4088487327, 0.0037087239, -0.2516222596, 0.1068803594, -0.0742011517, -0.1378998756, 0.0324062966, 0.2563997209, 0.2106460482, -0.0583167411, 0.0022796579, 0.1797531545, 0.3070548475, 0.5116799474, -0.0626183152, -0.3027721941, -0.097556591, -0.0389357544, -0.1113290191, 0.2599176466, 0.0741577372, 0.0159022436, 0.1967172325, 0.1175488234, 0.2056598961, -0.0650327951, 0.4197382927, -0.1461283714, 0.1639845818, -0.1312114, 0.0889246464, 0.0116652828, 0.1690491289, 0.6599962115, -0.0752310008, 0.0472108573, 0.3930089772, -0.1994341165, 0.127946496, 0.3355513811, 0.185182333, -0.0519485399, -0.0531265289, 0.3470782042, -0.1044922322, -0.1862106174, 0.0079265609, 0.3611755967, 0.1985618025, -0.3046011925, 0.2134355009, 0.1899716556, 0.2259806693, -0.08591263, -0.1602510512, -0.2420355827, -0.2013467997, -0.1269380599, 0.1843209267, 0.3140105307, -0.3728866875, -0.2214430869, -0.0581826195, 0.0346100479, 0.1836177558, 0.2119460404, 0.5136287808, -0.2088429481, 0.5151563287, 0.0225076079, 0.2508970499, -0.0922640562, 0.1784023046, -0.261413604, 0.0694380179, -0.1460305452, -0.1126511544, -0.0430096351, 0.021556437, 0.2521871328, -0.0096215345, -0.1722254604, -0.3173286319, -0.3492339551, -0.4206419587, 0.0861277878, 0.0746733248, -0.0392397083, 0.0950154662, 0.2757533491, -0.0933148563, -0.2179809064, 0.172848925, -0.2247141898, -0.4391539693, -0.3228240609, 0.1312869638, -0.2310710251, 0.0401468016, 0.0886223167, -0.2725884318, 0.0588156506, 0.3045936525, -0.1377796084, 0.1218148768, -0.3652850986, -0.2556672692, 0.441943109, 0.6512081623, -0.4164176583, 0.221745491, -0.2636243701, 0.0769628733, 0.4102802277, 0.1699591279, -0.3566011786, 0.3813916445, -0.1161801964, -0.1510991007, 0.3857563734, -0.5012978315, -0.371463567, 0.5995168686, -0.0560743734, -0.2375230342, -0.0514171645, -0.0200657621, -0.1240405589, 0.0844894201, 0.3112480044, 0.4983116388, 0.1864833832, 0.1523343623, -0.4068828523, -0.4395459294, -0.1264506131, 0.2480690777, -0.1186075062, 0.0536351427, 0.2413352728, -0.3943929672, 0.3047114611, -0.0594211556, -0.2168199718, 0.4881590903, 0.3690138459, 0.0848212093, -0.0759776384, 0.1972518712, -0.2346252501, 0.2298526764, -0.0617962778, -0.1506751776, -0.1290709078, -0.0030858964, -0.446636945, 0.0966239795, -0.2612611651, -0.1387731731, 0.0527373552, 0.1784128249, -0.0079238266, 0.078359738, -0.1965731829, 0.1575739682, -0.1202830076, -0.175803721, -0.1213265657, 0.230427891, -0.0853112489, 0.0754689425, 0.069947958, 0.4098214209, 0.2167419344, -0.0333156735, -0.0657605082, 0.3856573999, 0.1693173051, 0.2863013148, -0.1166193336, -0.3804416656, 0.2069357187, -0.0697802976, 0.0948277712, 0.0371950045, 0.2641210556, 0.1456104219, -0.207853958, 0.1532485485, -0.1123901606, 0.0651693046, 0.0451801121, 0.0005378723, 0.5214233398, -0.2430495918, 0.0346963406, -0.3120869696, 0.2649820447, 0.4043836892, 0.512033999, 0.1754515171, -0.33314538, -0.080288969, 0.1967049092, 0.1612119228, 0.0592388026, 0.0705423206, -0.0783510506, -0.0168795101, -0.0027856845, 0.4694551229, 0.4198946953, 0.1177514941, 0.1466632336, 0.1681153774, 0.0641563684, -0.1689203829, 0.2062511295, -0.0474296436, 0.269213289, 0.0539129972, -0.0148294289, 0.3034391105, -0.1236818358, 0.0268179402, 0.0028710589, 0.2994594574, -0.3273459971, 0.0614311397, -0.3752578795, -0.1776742935, -0.145606041, -0.331271261, 0.2078629136, -0.1352640539, -0.3229801357, 0.0328264385, -0.1912086159, -0.0376696512, -0.1218343824, 0.0566690043, -0.0594362542, -0.2732098699, -0.2022082508, -0.1779986024, -0.5250951052, -0.0782820806, 0.355738163, 0.1570079029, -0.0873207301, -0.1772176921, -0.0133181289, -0.0997575298, 0.123821266, 0.0228489526, 0.1789851934, 0.6002933383, 0.1714733839, 0.0395604074, 0.1790848076, -0.1626319289, 0.2645677626, -0.2557522655, -0.1662981957, 0.0062350333, 0.0991330892, -0.1168445796, -0.1966541708, -0.1383365989, -0.3782121241, -0.2874902487, -0.0389490984, 0.0985017568, 0.1825941354, 0.1845140755, 0.2169058919, 0.2336976528, 0.1198512763, -0.0777944028, -0.1604257971, -0.4417058229, 0.2158459127, -0.0282560159, -0.5365148783, -0.3180684745, -0.1649756879, 0.3878697157, -0.1524087489, -0.517662704, -0.088860862, -0.231453687, 0.1201903075, -0.0813609287, -0.130413577, 0.3463377059, -0.1021286994, -0.029876858, -0.0978017375, -0.0786365569, 0.0038149133, 0.1830009073, 0.0856306851, 0.1478827447, 0.3921527863, -0.1356150806, 0.6314615607, 0.0274881199, -0.0541715138, 0.5767681599, -0.1661159992, 0.4468921721, -0.1700374782, -0.3950132132, -0.2945562303, 0.0130056441, -0.2421171963, 0.310937047, 0.0554622672, -0.3475331366, -0.3655237556, 0.0218565539, -0.4551152885, -0.1747784913, -0.158324495, -0.2738889754, 0.0217913836, -0.1425581723, 0.1417831033, -0.0741288364, -0.0378821231, 0.0210158974, 0.0313281529, 0.0329704918, -0.0628154054, 0.127860561, -0.0329129323, -0.4352099597, 0.1097879037, -0.0478189364, 0.4363663197, 0.0066191927, -0.2862240076, 0.0781517476, -0.0584605113, 0.675468564, 0.0223825481, 0.1359013021, 0.1814873517, -0.0211424604, -0.6554039717, -0.0295495056, 0.1211232767, 0.0229199454, 0.0767611042, 0.7966441512, 0.1024095565, -0.1237042248, 0.0252633691, 0.0859779641, 0.0182036459, -0.4049772024, -0.3497110009, -0.3659105599, 0.0984825194, -0.134013027, -0.0836038366, 0.3783415854, -0.0212983489, -0.1552286148, -0.086150296, -0.2001958191, -0.2223151624, 0.1005425751, 0.3425102532, -0.0169257522, 0.2756717205, -0.0321035832, 0.3114449382, -0.1748639792, 0.6477411985, -0.1171409637, -0.3216332495, 0.0788392872, -0.3234081268, 0.0986614227, 0.2470774949, -0.1465616971, 0.0478252731, 0.0174016505, -0.2901146114, -0.0325318836, 0.1599929035, -0.0270326138, 0.0252426639, 0.0956070572, -0.2298048735, 0.5176452398, 0.11836043, -0.1103812382, 0.3470835984, -0.5550873876, -0.2694753408, 0.2309322953, 0.2396323085, 0.8387873173, -0.1660599113, 0.1618095934, 0.3205998838, -0.2457156181, 0.2124178559, 0.17302154, -0.1323703527, -0.4516243041, -0.1949020177, 0.0692348555, -0.1457589567, 0.15589118, -0.0642122179, 0.0811754018, 0.0778914094, -0.1818903238, 0.3544174433, 0.3318729997, 0.083502613, 0.0546021163, -0.1341726184, -0.3800012171, 0.0537459143, 0.2156207263, 0.1067377627, -0.0813263059, 0.0350170322, -0.2643420994, -0.17049326, 0.0468560308, 0.3553573191, -0.3430228531, 0.0182532109, -0.1076734588, -0.471185565, -0.3164751232, 0.6356452703, 0.2303338945, 0.0492924936, -0.2496905327, 0.0883892477, 0.0357337408, 0.1797054112, -0.013868425, -0.1586063355, -0.0513029173, -0.1195732951, -0.125286296, -0.1987671852, -0.2385022193, -0.172329098, 0.1757487953, 0.363055408, 0.1982509643, -0.0026163757, -0.3738717139, 0.0690098256, 0.3177512884, -0.2005015761, 0.1159919798, -0.0185712241, -0.029124096, -0.136447534, -0.1668363661, -0.4678331316, 0.0192849301, 0.5623624325, 0.0061120503, 0.586550355, 0.4906966686, -0.058114551, 0.0934350416, -0.1508753896, 0.253824085, 0.0914071798, -0.1445090473, -0.1839632392, -0.1803083271, 0.0121866912, -0.1138372868, 0.0961937904, 0.345166713, -0.1079840884, -0.1119632721, -0.6838934422, -0.4484830499, 0.0404831618, -0.1864711791, 0.0638709366, 0.073702544, 0.1408945769, -0.0244400874, -0.2554089129, -0.2226367295, 0.257176578, -0.4180091918, 0.0198030956, -0.1412278265, -0.0413049348, 0.2445230782, -0.0154004954, 0.1508333087, -0.1639544964, 0.0708342865, -0.1837785542, -0.105620876, 0.1013328806, 0.0859038755, -0.1847525537, -0.1455664337, -0.2703590095, -0.0890597552, -0.0855412185, -0.2252633274, 0.2039055228, -0.0406453274, 0.0950412005, -0.130964309, 0.3166359365, -0.205428794, 0.3459954858, -0.3354071081, 0.0109142102, 0.149895072, 0.1973812431, 0.0708733723, -0.0026604161, 0.1882466376, -0.2834929228, -0.2006029785, 0.1394182593, 0.2105655968, -0.0921926424, 0.0599513426, 0.1898697317, 0.0745634735, 0.2924565673, -0.1836612523, 0.0992258787, 0.5471071005, 0.1454541683, -0.2937481403, -0.0604268536, -0.0628629625, -0.1081196815, -0.0155176818, 0.1801181436, 0.1219182462, -0.2686057389, 0.0843517855, -0.0607592128, 0.4588412046, 0.0993795544, 0.1458258033, 0.3395938277, -0.2543950677, 0.1626716405, -0.0428984314, 0.2295008898, 0.0336796045, 0.5187298656, 0.0486087762, -0.080671519, -0.2998910546, 0.4048229158, -0.0787529349, -0.6417545676, 0.337559104, 0.0485758111, -0.3438987136, -0.2575297952, -0.2667194903, 0.2372450978, -0.0933440626, 0.1150250882, -0.1276445091, 0.1020792574, -0.0705746859, -0.2714784145, -0.4754408002, -0.153480947, 0.1385402977, -0.0363486297, -0.0092519438, -0.1910670698, -0.0841541886, 0.1059211791, -0.2127450109, -0.2071153373, 0.1263238639, 0.3150516748, -0.1272411048, -0.3163986206, 0.4282379448, -0.2456129789, 0.2148878723, -0.0139594674, -0.0502042174, 0.202169627, 0.6500502229, -0.0500276685, -0.1874510795, 0.1273709089, -0.1951829791, -0.1654114425, 0.1244852096, 0.0986940414, 0.4059481025, 0.5674881935, 0.1458257288, -0.1257264614, 0.3826637864, 0.0502287224, 0.4492848516, -0.2906237245, 0.3194688559, -0.0897680297, -0.0078345016, -0.04424119, 0.2483793497, -0.4166392386, 0.0739876032, 0.2309316099, -0.0469473377, 0.3681476116, 0.0715055391, 0.0608653128, 0.0146222375, 0.4513393044, 0.4840813577, 0.3376537859, -0.2196336985, -0.2611141801, -0.6287829876, 0.1254167706, 0.0330733433, 0.100662306, -0.0362788066, 0.1746268868, -0.1181007326, 0.0348035321, -0.0451581031, 0.3480480015, 0.0746763796, -0.0032197749, -0.1826476157, -0.3485907316, -0.3953166008, 0.0473144278, -0.0942980349, -0.4356860816, -0.0121802595, 0.1142916605, 0.033644706, 0.1058671772, -0.2598724365, -0.1744866669, 0.1039743125, 0.318610847, 0.1113508642, 0.1091750115, 0.0312554091, 0.1002478972, -0.3792993128, -0.1152852625, -0.0737203956, 0.2165311575, 0.0278793797, -0.3506179452, -0.1900013089, 0.1097137257, -0.3974588811, 0.1685297489, 0.0821398124, 0.1195256338, 0.0046524853, -0.1697533876, -0.0053003654, -0.0939355865, -0.022213757, 0.0084345005, -0.2914647162, 0.0413471162, -0.0685114861, -0.0535091907, 0.3320349455, -0.4292974174, -0.0542801917, -0.0027849935, 0.1854249388, -0.0521517321, 0.111623846, -0.0562814623, -0.1143693253, 0.4793231785, -0.0975358933, -0.0052547827, -0.0017497167, -0.1760847121, 0.2696332335, -0.1027433798, 0.1722877175, 0.0208206251, 0.0066082031, 0.0037641153, -0.3554129004 ]
https://github.com/huggingface/datasets/issues/2813
Remove compression from xopen
After discussing with @lhoestq, a reasonable alternative: - `download_manager.extract(urlpath)` adds prefixes to `urlpath` in the same way as `fsspec` does for protocols, but we implement custom prefixes for all compression formats: `bz2::http://domain.org/filename.bz2` - `xopen` parses the `urlpath` and extracts the `compression` parameter and passes it to `fsspec.open`: `fsspec.open("http://domain.org/filename.bz2", compression="bz2")` Pros: - clean solution that continues giving support to all compression formats - no breaking change when opening non-decompressed files: if no compression-protocol-like is passed, fsspec.open does not uncompress (passes compression=None) Cons: - we create a "private" convention for the format of `urlpath`: although similar to `fsspec` protocols, we add custom prefixes for the `compression` argument
We implemented support for streaming with 2 requirements: - transparent use for the end user: just needs to pass the parameter `streaming=True` - no additional work for the contributors: previous loading scripts should also work in streaming mode with no (or minor) changes; and new loading scripts should not involve additional code to support streaming In order to fulfill these requirements, streaming implementation patched some Python functions: - the `open(urlpath)` function was patched with `fsspec.open(urlpath)` - the `os.path.join(urlpath, *others)` function was patched in order to add to `urlpath` hops (`::`) and extractor protocols (`zip://`), which are required by `fsspec.open` Recently, we implemented support for streaming all archive+compression formats: zip, tar, gz, bz2, lz4, xz, zst; tar.gz, tar.bz2,... Under the hood, the implementation: - passes an additional parameter `compression` to `fsspec.open`, so that it performs the decompression on the fly: `fsspec.open(urlpath, compression=...)` Some concerns have been raised about passing the parameter `compression` to `fsspec.open`: - https://github.com/huggingface/datasets/pull/2786#discussion_r689550254 - #2811 The main argument is that if `open` decompresses the file and afterwards we call `gzip.open` on it, that will raise an error in `oscar` dataset: ```python gzip.open(open(urlpath ``` While this is true: - it is not natural/usual to call `open` inside `gzip.open` (never seen this before) - indeed, this was recently (2 months ago) coded that way in `datasets` in order to allow streaming support (with previous implementation of streaming) In this particular case, there is a natural fix solution: #2811: - Revert the `open` inside the `gzip.open` (change done 2 months ago): `gzip.open(open(urlpath` => `gzip.open(urlpath` - Patch `gzip.open(urlpath` with `fsspec.open(urlpath, compression="gzip"` Are there other issues apart from this? Note that there is an issue just because the open inside of the gzip.open. There is no issue in the other cases where datasets loading scripts use just - `gzip.open` - `open` (after having called dl_manager.download_and_extract) TODO: - [ ] Is this really an issue? Please enumerate the `datasets` loading scripts where this is problematic. - For the moment, there are only 3 datasets where we have an `open` inside a `gzip.open`: - oscar (since 23 June), mc4 (since 2 July) and c4 (since 2 July) - In the 3 datasets, the only reason to put an open inside a gzip.open was indeed to force supporting streaming - [ ] If this is indeed an issue, which are the possible alternatives? Pros/cons?
105
Remove compression from xopen We implemented support for streaming with 2 requirements: - transparent use for the end user: just needs to pass the parameter `streaming=True` - no additional work for the contributors: previous loading scripts should also work in streaming mode with no (or minor) changes; and new loading scripts should not involve additional code to support streaming In order to fulfill these requirements, streaming implementation patched some Python functions: - the `open(urlpath)` function was patched with `fsspec.open(urlpath)` - the `os.path.join(urlpath, *others)` function was patched in order to add to `urlpath` hops (`::`) and extractor protocols (`zip://`), which are required by `fsspec.open` Recently, we implemented support for streaming all archive+compression formats: zip, tar, gz, bz2, lz4, xz, zst; tar.gz, tar.bz2,... Under the hood, the implementation: - passes an additional parameter `compression` to `fsspec.open`, so that it performs the decompression on the fly: `fsspec.open(urlpath, compression=...)` Some concerns have been raised about passing the parameter `compression` to `fsspec.open`: - https://github.com/huggingface/datasets/pull/2786#discussion_r689550254 - #2811 The main argument is that if `open` decompresses the file and afterwards we call `gzip.open` on it, that will raise an error in `oscar` dataset: ```python gzip.open(open(urlpath ``` While this is true: - it is not natural/usual to call `open` inside `gzip.open` (never seen this before) - indeed, this was recently (2 months ago) coded that way in `datasets` in order to allow streaming support (with previous implementation of streaming) In this particular case, there is a natural fix solution: #2811: - Revert the `open` inside the `gzip.open` (change done 2 months ago): `gzip.open(open(urlpath` => `gzip.open(urlpath` - Patch `gzip.open(urlpath` with `fsspec.open(urlpath, compression="gzip"` Are there other issues apart from this? Note that there is an issue just because the open inside of the gzip.open. There is no issue in the other cases where datasets loading scripts use just - `gzip.open` - `open` (after having called dl_manager.download_and_extract) TODO: - [ ] Is this really an issue? Please enumerate the `datasets` loading scripts where this is problematic. - For the moment, there are only 3 datasets where we have an `open` inside a `gzip.open`: - oscar (since 23 June), mc4 (since 2 July) and c4 (since 2 July) - In the 3 datasets, the only reason to put an open inside a gzip.open was indeed to force supporting streaming - [ ] If this is indeed an issue, which are the possible alternatives? Pros/cons? After discussing with @lhoestq, a reasonable alternative: - `download_manager.extract(urlpath)` adds prefixes to `urlpath` in the same way as `fsspec` does for protocols, but we implement custom prefixes for all compression formats: `bz2::http://domain.org/filename.bz2` - `xopen` parses the `urlpath` and extracts the `compression` parameter and passes it to `fsspec.open`: `fsspec.open("http://domain.org/filename.bz2", compression="bz2")` Pros: - clean solution that continues giving support to all compression formats - no breaking change when opening non-decompressed files: if no compression-protocol-like is passed, fsspec.open does not uncompress (passes compression=None) Cons: - we create a "private" convention for the format of `urlpath`: although similar to `fsspec` protocols, we add custom prefixes for the `compression` argument
[ -0.4191689491, -0.0069031268, 0.0059125833, 0.0238577276, 0.1248178184, -0.3256881535, -0.2292777896, 0.4713353515, 0.0886647403, 0.2409463227, -0.2471540272, 0.4001291692, 0.081967026, 0.137193352, -0.0226640757, -0.1370153874, -0.0278308615, 0.1331308782, 0.0882369801, -0.0054114386, -0.479054153, 0.1909055561, -0.1340041757, -0.0106724314, 0.2445951402, 0.0356198773, 0.2556266785, 0.2188405395, -0.3985930085, -0.14976421, -0.1308258623, 0.1495487988, 0.0225965455, 0.0869437158, -0.0001130888, 0.0266869813, 0.2988413274, -0.1954084039, -0.2381750047, -0.2629079819, -0.1178574637, -0.0889436081, 0.0825308189, -0.0007838905, 0.1002836525, -0.7044278979, 0.0207540821, -0.8813657761, 0.5043362379, 0.2567865252, 0.1220123619, 0.1561297476, 0.059626326, 0.0020174012, 0.2750474811, -0.0995140523, -0.1907603443, -0.104415834, 0.2203274071, 0.3321311176, -0.1137185991, 0.4235131741, -0.1898328066, -0.1889517158, 0.3292147815, -0.2509938776, 0.0750831142, -0.2273343056, -0.1807319522, 0.1074700132, 0.1452677697, -0.1285868138, -0.5220018625, -0.1854569763, 0.0688585117, -0.5120435953, 0.1385538429, 0.3591735959, 0.0478259623, 0.1616457701, -0.0850936174, -0.243139267, 0.0070688799, 0.0468947291, 0.1972728074, 0.2863024175, -0.0803830177, 0.0017110985, 0.3852159679, 0.1243217885, 0.1140478253, -0.2616316676, -0.0275920052, -0.0973564833, -0.2123510987, 0.0272929966, 0.1381480545, 0.0571020134, 0.0816577524, 0.4363043606, 0.2570691109, 0.299575299, -0.1212357581, 0.025667971, 0.0512158796, 0.1565017998, -0.0218391567, -0.1820706427, 0.037638858, 0.1823163629, 0.2186767161, -0.2348978072, 0.2453594357, -0.1651807427, -0.364723593, 0.322506547, 0.6144117117, 0.007971175, -0.1655451655, -0.099792257, -0.1505319625, -0.210909456, 0.0533474274, 0.0897923559, -0.0646991506, 0.3352442682, 0.0172746629, 0.3113517463, -0.2142479122, -0.0174159668, -0.1873304844, -0.0547251627, -0.1313957274, 0.2216722071, 0.0550619215, -0.7223921418, 0.0392943174, 0.2271918058, 0.5497035384, -0.0975677669, 0.1636150777, -0.0467939936, 0.202297166, 0.2446859032, -0.0780419037, -0.0580975935, 0.2379579544, 0.0552624017, -0.2282735407, 0.1757035851, -0.5017319918, -0.2378915846, -0.1061718464, 0.1584891975, -0.0207169205, 0.1946987212, 0.0252140369, 0.0411648713, -0.4355073571, -0.4308710992, 0.0343737416, -0.0243318994, -0.2750073075, -0.1244571209, 0.3272199035, 0.0292743891, 0.0415949672, -0.2197493613, -0.1632014364, 0.1786552221, 0.5669157505, 0.2861437201, -0.3046620488, -0.3236421347, -0.2175179124, 0.0354338288, 0.5478262901, -0.2286630273, -0.414960593, 0.373490423, 0.0073396564, 0.3961351514, 0.2859600484, -0.3961558938, 0.4834241867, -0.1646112502, 0.1445794553, 0.2205336839, 0.1359208673, 0.1277268082, -0.2463244647, -0.0944503397, 0.0922185183, -0.0883123428, -0.104942739, 0.1127613857, -0.0099597871, -0.0584182963, 0.1922485381, -0.0892309695, 0.042289041, -0.2404192835, 0.1896106899, -0.0265083984, -0.0270192213, 0.0127173066, 0.1164056882, -0.0961750075, -0.1598374844, -0.1996869594, -0.1320574582, -0.2483503371, -0.0809585154, 0.023857519, 0.0341970026, -0.22375606, 0.0648613572, 0.1565390527, -0.2515935302, 0.039118506, -0.2730354965, 0.2372069061, 0.0206575766, 0.0226003751, -0.2585276067, -0.0280286111, 0.1524491161, -0.0354440995, 0.0742463619, -0.0298156179, 0.205152154, -0.1311268955, -0.3151761293, 0.4424106777, -0.0684274063, 0.3711235225, -0.2005500644, 0.0440546498, 0.2904272377, -0.3242275715, 0.1412659734, 0.5436939597, 0.1446819454, 0.1829970628, -0.1114253998, 0.3421912789, 0.0299907476, -0.0450017266, 0.1369954944, -0.0521546118, -0.0120333657, 0.0070304275, -0.5576580763, 0.0399450511, -0.1061248556, 0.1598305404, 0.3208059669, 0.1401842386, -0.1437507719, -0.0827012286, 0.50546664, -0.1650295109, -0.1705071628, 0.452129513, 0.0248490404, -0.2451158762, 0.1435942203, 0.1345317662, 0.6052961349, 0.2483298331, 0.1698980778, 0.1075601801, 0.1086894423, -0.2464024872, 0.5393252969, 0.157345891, 0.1208359972, 0.2046388388, 0.0883008167, 0.3496351242, -0.4763225615, -0.1577933729, -0.0188912973, -0.3481450677, -0.2709907889, 0.1504787803, -0.5044305921, -0.1620632559, 0.1140393317, 0.1126583517, 0.080483824, -0.1830217838, 0.157453388, 0.2160221487, -0.2817359567, 0.3589549363, -0.2321259379, 0.3441585302, -0.0611000359, -0.2766936719, -0.1615314931, 0.109108761, 0.1053585038, 0.0525800847, -0.0900604725, -0.4445863962, 0.1202621907, 0.2227397561, 0.0490903854, -0.2063011527, -0.1972837746, 0.0614703447, -0.0634210259, -0.1260741651, -0.0545569435, -0.1704534441, -0.061969839, -0.4755944312, 0.0886210054, -0.2605992556, 0.0925253034, -0.226999104, -0.0709556639, 0.2812232673, -0.4269395173, -0.1482832432, 0.0539467335, -0.5750746131, 0.3633083999, -0.333011955, 0.103228569, 0.3552735448, -0.1464027315, -0.264279753, 0.1123072654, 0.1083965302, -0.3649928272, -0.6582283378, 0.3468934298, -0.120355621, -0.3256309032, -0.1368482113, 0.0312414467, -0.027497407, 0.597618103, -0.0717613846, 0.0724810064, -0.1209232882, -0.146429956, -0.1731399745, -0.061298795, 0.3393908739, 0.176947251, -0.2226416469, -0.3091020286, -0.1057062373, -0.112142235, 0.1643158495, 0.2035523951, 0.0604087375, 0.2159340978, -0.0364292152, 0.2296814173, 0.1189591289, 0.379858315, 0.6151400805, 0.2907940745, 0.4680995941, -0.1208087429, -0.0692043304, 0.2056081742, -0.1757378876, -0.023804903, 0.1030078679, 0.1163585857, -0.1173088104, -0.1242896318, 0.138908267, -0.341925025, -0.3283257186, 0.0274637621, -0.086646542, 0.1399338841, 0.0537558347, 0.25111866, -0.1893439889, 0.1527812481, 0.0916984081, 0.2383137643, 0.6755877137, -0.1524116695, 0.1070141718, 0.331944257, -0.404894352, 0.3504061103, -0.1224254668, 0.018326018, -0.0397144854, -0.2039783597, 0.0501860939, 0.1413898766, 0.3463094831, -0.0763350129, -0.2647820115, 0.2832125425, -0.0406187847, -0.5618640184, 0.0392828584, -0.0522553176, -0.1368767917, -0.0117746769, 0.3609423637, -0.281193912, -0.3290457428, -0.0402588882, -0.2512138784, 0.1511802375, -0.064491652, -0.2048474401, -0.3617081642, -0.1570327878, -0.2812047899, 0.1525588334, 0.2550781369, -0.2527913153, -0.0108838826, -0.1123666987, -0.0053262934, 0.3447749913, -0.291686058, 0.4291552901, 0.2251058072, -0.1502023786, -0.0146227786, 0.4382830262, -0.1271051615, 0.3987607658, 0.1898755431, -0.6032572389, 0.1646266878, 0.310447365, 0.1171529889, 0.3649801612, -0.3255358636, -0.0494211316, -0.2289678305, 0.3229513764, -0.3455229998, 0.3161295354, 0.3063801229, -0.2636553645, -0.0443641953, -0.4398934841, 0.2175515592, 0.1642794311, -0.1890223175, 0.8254840374, 0.0352724418, -0.1773245931, 0.1225794256, 0.1263156384, 1.0271832943, 0.0779226348, -0.0172916483, 0.5256338716, -0.1789598465, 0.2232168168, -0.2524971664, 0.1508212686, 0.4147318602, -0.6663119793, 0.0116243362, 0.0635503829, 0.2472856939, -0.2237027735, -0.313139081, 0.1947863996, 0.1261039376, -0.3749635518, 0.2340986729, 0.1640256494, -0.498255372, -0.5518417358, -0.6275802851, 0.1332900524, -0.125104025, 0.1028623134, 0.1514480114, -0.4420362115, 0.3490968645, -0.2442371249, 0.0693467706, 0.3628326356, -0.2472994179, -0.0080771521, -0.3074159026, -0.2275934219, 0.1119301021, 0.1407985836, -0.1950425953, -0.1791716367, -0.0038058739, 0.2187351882, -0.2408129275, 0.2785663605, -0.0977740735, -0.0204978138, 0.0606459379, -0.0285226852, -0.0298126489, 0.1814385951, -0.1000712365, -0.2371849567, 0.2475833595, -0.063625291, 0.1865829676, -0.0623586439, -0.0895970017, -0.2573814988, -0.108218506, -0.0805354863, 0.0791486874, -0.1657526195, 0.0583989248, 0.0762595534, -0.1058044657, -0.4336339235, -0.1376476735, 0.2425942421, -0.0383619741, 0.0819688961, 0.2414812148, -0.426110357, -0.2348874062, -0.0101460181, -0.0361522958, -0.3330216408, -0.1468378305, 0.0455888882, -0.0184948761, -0.1030838713, -0.163829729, 0.1580750346, -0.0849083737, 0.3173321486, 0.021517545, -0.2094066888, -0.0381979309, 0.1747954935, -0.3201455176, 0.0618150719, 0.2344073355, 0.1284127533, -0.0325047411, -0.0868129954, -0.2891891897, 0.1344662756, 0.417424649, -0.0773125291, -0.1533913314, -0.0050639031, 0.4084660411, -0.1125338674, 0.0429867804, 0.2514642179, -0.2160809934, -0.1384044588, -0.2821721137, 0.2124687731, -0.0094441818, -0.3162382841, -0.1214062721, -0.0168030448, -0.0527552366, -0.3152305484, 0.3412931263, 0.0054231063, 0.0268559046, -0.0939992368, 0.2126725018, -0.0124063864, 0.0356116816, 0.0362169296, 0.0572797321, 0.6462958455, -0.0696860924, -0.0376833826, -0.1834292114, -0.172370255, -0.3989316523, -0.1285021901, 0.3483401239, 0.3660284579, 0.5126972795, 0.1758347005, -0.1910288036, -0.1242364794, 0.3427619338, 0.1125374585, -0.0456459746, -0.1857051551, -0.0685043707, 0.1523403078, -0.1664695293, 0.0045211948, -0.0280669145, 0.4545369744, 0.0036066845, -0.0321891159, -0.0679436326, 0.0796377361, 0.0212426409, -0.0878721625, 0.1140840724, 0.3200615346, 0.5746154785, 0.2170222849, 0.1167598367, 0.230407089, -0.0640208572, -0.0265947208, 0.0575587489, -0.1954067945, -0.1165587008, 0.4438082874, 0.2932680845, 0.2682131529, -0.1862260401, -0.4940247536, -0.0866637677, 0.1054818183, -0.1801438779, 0.4586997032, 0.2597763836, 0.13445732, -0.205948323, -0.1786030233, 0.0593891516, 0.4335684776, 0.2376705259, -0.2742593288, 0.0818651766, 0.0873521864, 0.0576238185, 0.1591818035, 0.0930175781, 0.3212281764, 0.2338698655, 0.1201746091, 0.0564842075, 0.1418881416, -0.3399500549, 0.034546569, 0.5236923099, -0.1745196581, 0.1115562543, 0.3071356714, 0.0080916779, 0.2147067189, 0.451500982, 0.2882676423, -0.039287053, -0.0057264771, 0.146867469, 0.1493418664, 0.09000393, 0.0258032903, 0.096976243, 0.503249228, 0.1215638593, 0.2795298696, 0.1764884591, -0.0703049153, 0.2152404785, -0.1154239625, 0.3489603102, -0.2589487135, 0.2532713413, 0.1675396711, 0.1809654832, 0.067169711, -0.2221704423, -0.245407477, 0.1245909631, 0.1826527119, 0.1845456958, 0.0149035603, -0.1429313123, 0.0868986249, 0.2495234013, 0.1764582545, -0.1061427146, -0.141261518, -0.2266938388, -0.3937927186, -0.3562112451, 0.2376066595, 0.1957728267, -0.0760526881, 0.2027977407, -0.015142601, 0.319568783, 0.2645489275, -0.2284379303, -0.0823643655, 0.2203806639, -0.0818228573, -0.161898464, 0.1388604045, 0.374425292, 0.1084783599, -0.0013722107, -0.1735456586, 0.2423677146, -0.1927786022, 0.0812594146, 0.0070030522, 0.0112383664, -0.3363493085, -0.1374453306, 0.3763562143, 0.2580063641, -0.0482208654, -0.4752647281, -0.1529144347, 0.0744276792, 0.054308679, -0.0074469298, -0.1139919311, -0.0779762566, 0.2417219281, -0.082646437, -0.0084010027, -0.4220408797, 0.6201145053, -0.1255544573, -0.4073031843, -0.4189611673, 0.0136867538, -0.0503153652, -0.1109457463, -0.1100523993, 0.3306160569, -0.120139122, 0.201082617, -0.108493641, -0.4842887521, 0.7212756276, -0.3065902889, -0.0180209391, 0.0600796938, 0.3401732445, 0.093405664, 0.0044339281, -0.3561252952, 0.1665589511, 0.1113158911, -0.0360380411, -0.079771325, 0.1227181256, -0.1704527885, -0.1375095397, -0.0629706755, 0.2342983484, 0.1840940118, -0.2812795043, 0.0636584982, -0.1641808003 ]
https://github.com/huggingface/datasets/issues/2799
Loading JSON throws ArrowNotImplementedError
Hi @lewtun, thanks for reporting. Apparently, `pyarrow.json` tries to cast timestamp-like fields in your JSON file to pyarrow timestamp type, and it fails with `ArrowNotImplementedError`. I will investigate if there is a way to tell pyarrow not to try that timestamp casting.
## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0
42
Loading JSON throws ArrowNotImplementedError ## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0 Hi @lewtun, thanks for reporting. Apparently, `pyarrow.json` tries to cast timestamp-like fields in your JSON file to pyarrow timestamp type, and it fails with `ArrowNotImplementedError`. I will investigate if there is a way to tell pyarrow not to try that timestamp casting.
[ -0.0681869462, 0.1841620952, 0.0364153907, 0.378070116, 0.2355375141, -0.0062702075, 0.4846678972, 0.3670630455, 0.4180774391, -0.0028389022, 0.0605549589, 0.5898873806, 0.0276202224, -0.1488581598, -0.2172113806, -0.1838726699, 0.0313559324, 0.1905161291, 0.1274460107, 0.0285850018, -0.3122326732, 0.2942060828, -0.2148164511, 0.1017743126, -0.0391267315, -0.0952268168, 0.104162544, 0.3933391869, -0.126418978, -0.3826469481, 0.4134063721, -0.0130351661, 0.2161164582, 0.530852139, -0.0001203599, 0.1964655817, 0.4152530432, -0.0924443901, -0.2868117094, -0.4780588746, -0.2790297568, -0.3253917396, 0.5374763608, -0.120037891, 0.105205223, -0.2437471151, -0.0497695282, -0.2207822204, 0.6015408635, 0.2307225913, 0.1048026383, 0.4299392998, 0.0260290504, 0.0192194097, 0.0637280121, 0.2108370662, -0.1217752695, 0.4542038441, 0.0082485415, 0.1270528734, -0.1715971977, -0.0036360212, -0.1026411951, 0.1538670957, 0.2191225588, 0.0476008356, -0.1704019904, 0.0818342343, 0.0492498837, 0.294632107, 0.2845768034, -0.050880786, -0.4122374356, -0.3489955068, -0.1207851544, 0.1302726567, 0.23882173, 0.2473598123, -0.1509172618, 0.1259341836, 0.0328825302, -0.0184712969, -0.2741967738, 0.2383802682, 0.0036438257, 0.011187071, -0.1582194865, 0.1072920561, -0.1295856982, -0.0208247453, -0.1499341279, -0.2244827151, -0.3057586849, 0.1283778995, 0.0374985859, 0.1160040647, -0.0355978198, -0.4100777209, 0.2355834246, 0.3558479249, 0.3206706643, 0.2080191374, -0.267365694, 0.2078460455, 0.5903256536, 0.2016134709, -0.0549013838, 0.0114985034, 0.2564999163, 0.3305143714, 0.0607300624, -0.0435530096, -0.2637993991, -0.1108330041, 0.0103775933, -0.1974504888, 0.308680743, -0.1726258993, -0.2238532305, 0.0755630434, -0.6134251356, -0.0573210381, -0.0002183542, 0.3672916591, -0.1971877068, 0.4987775683, 0.2744282484, 0.4868385196, 0.0442171097, 0.0317274667, -0.1022378579, -0.035348624, -0.1634833515, -0.2962282896, 0.2371661365, 0.0525443889, 0.0861051604, 0.1265181303, -0.0630014315, -0.4126391411, -0.07425984, 0.0477155112, -0.0974053741, 0.1669667661, 0.1920513511, 0.1328713149, 0.1559263766, -0.4045028687, -0.137646392, 0.0323025845, -0.3769193888, 0.0055574179, -0.3176852465, 0.0546303056, -0.2702908516, -0.0120817665, -0.7623511553, -0.0521198027, -0.1122778952, 0.0660266727, 0.063875325, -0.0244175047, 0.2227594256, -0.247084707, 0.0749817714, 0.2833136916, -0.300557971, -0.2378237098, -0.0629287809, -0.0374921709, 0.1896334887, 0.2650880814, -0.2005773187, 0.2845456004, -0.163735345, 0.2106696069, 0.3121514618, -0.3327306509, -0.2219263315, 0.6055201888, 0.0193045735, 0.5248500109, 0.0198843498, -0.2308954, -0.009200871, 0.1884041429, 0.3035950065, 0.4013708532, 0.1422876269, 0.0679153055, -0.2457048744, -0.2022634447, -0.134642005, 0.3127692938, 0.0487664752, 0.1889400929, 0.0995357484, 0.0244782232, 0.2506873012, -0.1951393634, -0.0266672913, 0.1624231935, 0.091133073, 0.0282148067, -0.0057260953, -0.0044111982, -0.6142936945, 0.1499559432, -0.0511222631, 0.1092022955, -0.4080860913, 0.0093211234, -0.2547826469, 0.1260678172, -0.1280751824, 0.1847679466, 0.0374526605, 0.1086533442, -0.1821872741, 0.2108013481, -0.1838933825, 0.3152325749, 0.1626444757, 0.2816523612, -0.4834643304, 0.4377060533, 0.210255757, -0.1212381124, 0.0271179378, 0.1853710413, -0.0978175402, -0.1626706272, -0.2391356826, 0.1727546901, 0.1394180059, 0.1797139198, -0.0562772006, -0.2375709116, -0.0822838396, 0.0838591307, -0.1951906234, 0.3068775237, 0.2217238694, -0.0245844796, -0.0280963928, 0.8052088022, -0.0741070881, 0.4431971908, -0.0157234967, -0.0205506198, 0.4561715424, 0.0615658015, -0.3641530871, -0.3053401709, 0.238835305, 0.3186243176, 0.0603677779, 0.0040047746, -0.3794294894, -0.1885214597, 0.3982866406, 0.005179815, 0.2424625158, 0.153235063, -0.0953564718, -0.0996728688, 0.0158597622, 0.1401788145, 0.2382987738, 0.0758771151, -0.2070477307, -0.0434464738, -0.0409476422, -0.0247450657, 0.155598864, 0.3065350652, 0.2641776502, 0.0933472365, 0.1558889151, -0.0209618844, -0.2815460861, -0.2380039543, -0.286360085, 0.1189385876, -0.6182568073, 0.2991379201, -0.4743472338, 0.1188916266, 0.0353332609, -0.3410822153, -0.126299873, -0.3229712546, -0.3007417321, 0.2734273672, -0.1147492081, -0.1341668963, -0.266723603, 0.3151707053, -0.0232129246, -0.346346885, -0.2113420069, -0.0117184855, -0.1846483797, -0.0234057978, 0.387586683, 0.1092967391, 0.1544725895, -0.1289405376, 0.0473136902, 0.1418190449, -0.0863970518, 0.1482001096, -0.1994989514, 0.2889932394, 0.2154710591, 0.1969100535, -0.0978526026, -0.1516464502, 0.2886654437, 0.0957518443, -0.3427709043, 0.3241926134, -0.1354985088, 0.0278996974, -0.1492168307, -0.0291685648, 0.121954903, -0.4392543137, 0.5247157216, 0.2458686382, 0.0581383929, -0.0170071665, 0.0242614932, 0.1799213737, 0.1687068045, 0.0159116127, -0.110746339, -0.15468584, 0.2326568812, -0.1608324498, -0.2501764894, 0.0764543191, -0.196551621, 0.1685904264, -0.0865129828, -0.3909763098, 0.0259429365, 0.0707199052, 0.1136566997, -0.0444041491, -0.2952395678, 0.0588247776, -0.0127502903, 0.0851904005, -0.1855716556, -0.2022254318, 0.1206319779, -0.0438128933, 0.0216034465, 0.0565147735, 0.7252904177, -0.0942961052, 0.180775404, 0.3117998242, -0.0382719375, 0.3949744701, -0.0264436193, 0.10300906, -0.4057939649, -0.1191257089, -0.3808177412, -0.0971131623, 0.07863684, 0.2193031013, 0.1096422523, -0.2879480124, -0.2405597568, -0.062283501, -0.4587050676, -0.3489449024, 0.133379519, -0.3543263674, -0.3382494152, 0.0320333317, 0.220564276, -0.0587302148, -0.0581018478, -0.0303625353, 0.4014142752, 0.2062798738, -0.0455005467, -0.2057113945, 0.0343680494, -0.3544530272, 0.3606955409, 0.0746532604, 0.36575073, 0.1974584162, -0.0280978084, 0.24474895, -0.2093996555, 0.4490721226, -0.1200108901, 0.0227277894, 0.0280959383, -0.1236657128, -0.6418691278, 0.1011511907, -0.1271311045, 0.2907666862, 0.2359819859, 0.2095476389, -0.4572592378, -0.2961421609, 0.1018687263, -0.1504392326, -0.1058705002, -0.106476225, -0.364038527, -0.2923772633, -0.2448295057, -0.1525725126, 0.0274701267, 0.2387111634, 0.087436825, -0.0987063795, -0.2664908469, -0.0690850616, 0.1225850955, 0.2164162099, 0.188087821, -0.2173923403, 0.0409797728, 0.0061118063, 0.3643344045, 0.395925492, 0.8496598601, 0.2561549842, -0.5346412063, 0.2092525661, -0.0245478228, 0.0420458764, 0.1865960658, 0.0230351649, 0.0835100114, 0.2850646377, 0.1448801458, -0.2175284624, -0.1765888184, 0.4804260731, -0.1738850474, -0.4621182978, -0.346393019, 0.4906899929, -0.1168820709, 0.0213297009, 0.2263395935, 0.2678976655, -0.1467051208, 0.7589287758, 0.0028833896, 0.7930403948, 0.1487364471, 0.1980529577, 0.7221455574, -0.5317469835, 0.4004823565, -0.0322305188, -0.0708862692, -0.2383534312, 0.5987789035, -0.1820172966, -0.151582852, -0.0095944107, 0.1925091147, -0.1030687466, 0.022575099, -0.3046782017, -0.016252121, 0.0787489042, 0.1285974383, -0.1141057462, -0.2810204625, -0.7139284611, -0.0139219128, -0.1206339598, 0.0340204909, -0.0035200007, -0.3064058125, -0.2558884323, -0.1888528317, -0.3464410901, 0.2579854727, 0.1630949676, -0.0184748769, 0.2230376005, -0.0496140867, 0.0946821421, -0.0524792336, 0.2925048172, -0.0933385789, -0.175445959, 0.1870105714, -0.1364037097, -0.0991373733, -0.0924461409, -0.0160646476, 0.5005757213, -0.0768828839, -0.1589545012, -0.2050988227, -0.2627160549, -0.5380350351, 0.2646919489, 0.4163653851, -0.3466081321, -0.240975976, -0.3931143582, -0.0475280583, 0.2723070979, -0.157066986, 0.0498476923, 0.2624672949, 0.1839359254, -0.0674589872, 0.2908508182, -0.3609032929, -0.1087288186, 0.3222657442, -0.0353099406, 0.0564954802, 0.5033450723, 0.2862296104, -0.217995435, -0.190461576, 0.2036406696, 0.8105611801, -0.626924634, 0.3065254688, -0.1730779856, -0.0535797477, -0.0472417325, 0.3028692007, 0.0699546486, -0.0232217349, 0.0566214174, -0.6213236451, -0.106200859, 0.4122470915, -0.1543132663, -0.021445347, 0.1351436973, -0.0169346649, -0.2405517399, -0.1720613986, -0.1729354411, 0.2192623615, -0.1576297581, -0.2045776397, -0.3086435497, 0.0632046759, 0.5788149834, 0.0068064481, 0.0865862295, 0.0817478448, -0.1436325908, -0.0885986164, -0.3009875119, 0.2072960585, 0.1043564677, -0.092710495, -0.078460291, 0.0101222843, -0.179023698, -0.135748595, 0.2507113218, 0.2667546272, -0.0477174707, -0.1331558526, 0.0813499242, 0.1524970829, -0.2447348982, 0.1382136047, -0.1590838432, 0.5401739478, 0.0858469307, -0.0476724245, -0.229151994, 0.1443035603, -0.2354619354, 0.2881272435, 0.2030766606, 0.2164714336, 0.4846534133, -0.4272494316, 0.0382832065, -0.2070931345, 0.0976075903, 0.3163168728, -0.2574582696, 0.0504575297, -0.1622020751, 0.0547885001, 0.0131523088, 0.0525108464, 0.1396278739, -0.0389825925, 0.0427070111, 0.3336886466, -0.138818875, 0.0428314209, -0.2334403098, 0.0458438545, 0.4255112112, 0.1589772254, 0.0510137565, 0.2905638516, -0.2684135437, 0.0809299126, 0.0158536676, 0.140757814, 0.2980790138, -0.0071150232, 0.0680875033, 0.0217252504, 0.1491240412, 0.2423136532, 0.0005274862, -0.4159059525, -0.0420817062, 0.3158296943, -0.0500426628, 0.3092296124, 0.1688644588, 0.333373189, -0.1892768741, 0.096985653, -0.4036625028, -0.1670228541, -0.0538140796, -0.2211986482, -0.5511415005, -0.2069524229, -0.371526897, -0.1109172106, -0.1350992173, -0.0615068413, -0.2741712332, 0.1886226386, 0.0503453612, -0.3303633928, 0.0814074799, -0.1955389977, 0.2041692287, -0.1523470879, 0.2263704985, -0.0093276575, 0.0362450145, 0.3188802898, 0.0760151669, 0.5093175173, 0.2283808589, -0.0963352621, -0.2487949431, -0.0241236761, -0.1421785057, 0.0403780043, 0.3468790948, 0.1857324839, 0.0395644531, 0.2420820743, 0.1516417265, -0.1133230925, 0.3565615714, 0.0022538076, 0.2634563744, -0.09924867, 0.5178785324, -0.4676589966, 0.1000933647, -0.1672314554, -0.3525447249, -0.1460464746, -0.3188263774, -0.1780049205, -0.1945901662, -0.0235637687, -0.0586972758, 0.0232758783, -0.0869167894, 0.4179296494, 0.3949700296, 0.1819571406, 0.153183952, -0.033079505, -0.2972991467, 0.2351237833, -0.131894961, 0.0307581648, 0.2157546431, 0.2165424526, 0.0767686144, 0.1726403832, 0.0412502028, 0.0387749895, 0.0111104548, 0.2165729254, -0.2433101982, -0.0609746836, 0.2753144801, 0.0173525382, -0.1357741803, -0.2809371352, -0.0888740718, -0.0585751832, -0.0598330349, 0.1518502682, -0.0595388487, -0.0654161796, -0.1698690057, 0.4425503612, 0.1324362904, 0.2011089176, -0.0575091057, -0.4760099947, -0.268943727, -0.4144521952, -0.1308503598, 0.3707852364, -0.1804432422, 0.6111345887, 0.0342232883, 0.1484047174, -0.0185196493, -0.0448634587, -0.1875070781, -0.098218292, -0.5277870893, 0.2939002514, -0.3957846463, 0.1447349191, -0.1315568388, 0.1057320237, 0.1239856631, 0.1936318278, -0.0772356018, -0.2317141593, 0.4982316196, -0.2602387369, -0.3133599758, 0.272792846, 0.088914454, -0.1325901002, -0.2973820269, -0.6104024649, 0.0109965205, 0.2189057022, 0.0305513516, -0.2178262472, -0.1124499813, -0.1242607832, -0.0546768978, -0.1363346577, 0.2223986089, 0.0136692971, -0.1138070002, 0.1441098899, -0.1869694889 ]
https://github.com/huggingface/datasets/issues/2799
Loading JSON throws ArrowNotImplementedError
I think the issue is more complex than that... I just took one of your JSON lines and pyarrow.json read it without problem.
## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0
23
Loading JSON throws ArrowNotImplementedError ## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0 I think the issue is more complex than that... I just took one of your JSON lines and pyarrow.json read it without problem.
[ -0.0681869462, 0.1841620952, 0.0364153907, 0.378070116, 0.2355375141, -0.0062702075, 0.4846678972, 0.3670630455, 0.4180774391, -0.0028389022, 0.0605549589, 0.5898873806, 0.0276202224, -0.1488581598, -0.2172113806, -0.1838726699, 0.0313559324, 0.1905161291, 0.1274460107, 0.0285850018, -0.3122326732, 0.2942060828, -0.2148164511, 0.1017743126, -0.0391267315, -0.0952268168, 0.104162544, 0.3933391869, -0.126418978, -0.3826469481, 0.4134063721, -0.0130351661, 0.2161164582, 0.530852139, -0.0001203599, 0.1964655817, 0.4152530432, -0.0924443901, -0.2868117094, -0.4780588746, -0.2790297568, -0.3253917396, 0.5374763608, -0.120037891, 0.105205223, -0.2437471151, -0.0497695282, -0.2207822204, 0.6015408635, 0.2307225913, 0.1048026383, 0.4299392998, 0.0260290504, 0.0192194097, 0.0637280121, 0.2108370662, -0.1217752695, 0.4542038441, 0.0082485415, 0.1270528734, -0.1715971977, -0.0036360212, -0.1026411951, 0.1538670957, 0.2191225588, 0.0476008356, -0.1704019904, 0.0818342343, 0.0492498837, 0.294632107, 0.2845768034, -0.050880786, -0.4122374356, -0.3489955068, -0.1207851544, 0.1302726567, 0.23882173, 0.2473598123, -0.1509172618, 0.1259341836, 0.0328825302, -0.0184712969, -0.2741967738, 0.2383802682, 0.0036438257, 0.011187071, -0.1582194865, 0.1072920561, -0.1295856982, -0.0208247453, -0.1499341279, -0.2244827151, -0.3057586849, 0.1283778995, 0.0374985859, 0.1160040647, -0.0355978198, -0.4100777209, 0.2355834246, 0.3558479249, 0.3206706643, 0.2080191374, -0.267365694, 0.2078460455, 0.5903256536, 0.2016134709, -0.0549013838, 0.0114985034, 0.2564999163, 0.3305143714, 0.0607300624, -0.0435530096, -0.2637993991, -0.1108330041, 0.0103775933, -0.1974504888, 0.308680743, -0.1726258993, -0.2238532305, 0.0755630434, -0.6134251356, -0.0573210381, -0.0002183542, 0.3672916591, -0.1971877068, 0.4987775683, 0.2744282484, 0.4868385196, 0.0442171097, 0.0317274667, -0.1022378579, -0.035348624, -0.1634833515, -0.2962282896, 0.2371661365, 0.0525443889, 0.0861051604, 0.1265181303, -0.0630014315, -0.4126391411, -0.07425984, 0.0477155112, -0.0974053741, 0.1669667661, 0.1920513511, 0.1328713149, 0.1559263766, -0.4045028687, -0.137646392, 0.0323025845, -0.3769193888, 0.0055574179, -0.3176852465, 0.0546303056, -0.2702908516, -0.0120817665, -0.7623511553, -0.0521198027, -0.1122778952, 0.0660266727, 0.063875325, -0.0244175047, 0.2227594256, -0.247084707, 0.0749817714, 0.2833136916, -0.300557971, -0.2378237098, -0.0629287809, -0.0374921709, 0.1896334887, 0.2650880814, -0.2005773187, 0.2845456004, -0.163735345, 0.2106696069, 0.3121514618, -0.3327306509, -0.2219263315, 0.6055201888, 0.0193045735, 0.5248500109, 0.0198843498, -0.2308954, -0.009200871, 0.1884041429, 0.3035950065, 0.4013708532, 0.1422876269, 0.0679153055, -0.2457048744, -0.2022634447, -0.134642005, 0.3127692938, 0.0487664752, 0.1889400929, 0.0995357484, 0.0244782232, 0.2506873012, -0.1951393634, -0.0266672913, 0.1624231935, 0.091133073, 0.0282148067, -0.0057260953, -0.0044111982, -0.6142936945, 0.1499559432, -0.0511222631, 0.1092022955, -0.4080860913, 0.0093211234, -0.2547826469, 0.1260678172, -0.1280751824, 0.1847679466, 0.0374526605, 0.1086533442, -0.1821872741, 0.2108013481, -0.1838933825, 0.3152325749, 0.1626444757, 0.2816523612, -0.4834643304, 0.4377060533, 0.210255757, -0.1212381124, 0.0271179378, 0.1853710413, -0.0978175402, -0.1626706272, -0.2391356826, 0.1727546901, 0.1394180059, 0.1797139198, -0.0562772006, -0.2375709116, -0.0822838396, 0.0838591307, -0.1951906234, 0.3068775237, 0.2217238694, -0.0245844796, -0.0280963928, 0.8052088022, -0.0741070881, 0.4431971908, -0.0157234967, -0.0205506198, 0.4561715424, 0.0615658015, -0.3641530871, -0.3053401709, 0.238835305, 0.3186243176, 0.0603677779, 0.0040047746, -0.3794294894, -0.1885214597, 0.3982866406, 0.005179815, 0.2424625158, 0.153235063, -0.0953564718, -0.0996728688, 0.0158597622, 0.1401788145, 0.2382987738, 0.0758771151, -0.2070477307, -0.0434464738, -0.0409476422, -0.0247450657, 0.155598864, 0.3065350652, 0.2641776502, 0.0933472365, 0.1558889151, -0.0209618844, -0.2815460861, -0.2380039543, -0.286360085, 0.1189385876, -0.6182568073, 0.2991379201, -0.4743472338, 0.1188916266, 0.0353332609, -0.3410822153, -0.126299873, -0.3229712546, -0.3007417321, 0.2734273672, -0.1147492081, -0.1341668963, -0.266723603, 0.3151707053, -0.0232129246, -0.346346885, -0.2113420069, -0.0117184855, -0.1846483797, -0.0234057978, 0.387586683, 0.1092967391, 0.1544725895, -0.1289405376, 0.0473136902, 0.1418190449, -0.0863970518, 0.1482001096, -0.1994989514, 0.2889932394, 0.2154710591, 0.1969100535, -0.0978526026, -0.1516464502, 0.2886654437, 0.0957518443, -0.3427709043, 0.3241926134, -0.1354985088, 0.0278996974, -0.1492168307, -0.0291685648, 0.121954903, -0.4392543137, 0.5247157216, 0.2458686382, 0.0581383929, -0.0170071665, 0.0242614932, 0.1799213737, 0.1687068045, 0.0159116127, -0.110746339, -0.15468584, 0.2326568812, -0.1608324498, -0.2501764894, 0.0764543191, -0.196551621, 0.1685904264, -0.0865129828, -0.3909763098, 0.0259429365, 0.0707199052, 0.1136566997, -0.0444041491, -0.2952395678, 0.0588247776, -0.0127502903, 0.0851904005, -0.1855716556, -0.2022254318, 0.1206319779, -0.0438128933, 0.0216034465, 0.0565147735, 0.7252904177, -0.0942961052, 0.180775404, 0.3117998242, -0.0382719375, 0.3949744701, -0.0264436193, 0.10300906, -0.4057939649, -0.1191257089, -0.3808177412, -0.0971131623, 0.07863684, 0.2193031013, 0.1096422523, -0.2879480124, -0.2405597568, -0.062283501, -0.4587050676, -0.3489449024, 0.133379519, -0.3543263674, -0.3382494152, 0.0320333317, 0.220564276, -0.0587302148, -0.0581018478, -0.0303625353, 0.4014142752, 0.2062798738, -0.0455005467, -0.2057113945, 0.0343680494, -0.3544530272, 0.3606955409, 0.0746532604, 0.36575073, 0.1974584162, -0.0280978084, 0.24474895, -0.2093996555, 0.4490721226, -0.1200108901, 0.0227277894, 0.0280959383, -0.1236657128, -0.6418691278, 0.1011511907, -0.1271311045, 0.2907666862, 0.2359819859, 0.2095476389, -0.4572592378, -0.2961421609, 0.1018687263, -0.1504392326, -0.1058705002, -0.106476225, -0.364038527, -0.2923772633, -0.2448295057, -0.1525725126, 0.0274701267, 0.2387111634, 0.087436825, -0.0987063795, -0.2664908469, -0.0690850616, 0.1225850955, 0.2164162099, 0.188087821, -0.2173923403, 0.0409797728, 0.0061118063, 0.3643344045, 0.395925492, 0.8496598601, 0.2561549842, -0.5346412063, 0.2092525661, -0.0245478228, 0.0420458764, 0.1865960658, 0.0230351649, 0.0835100114, 0.2850646377, 0.1448801458, -0.2175284624, -0.1765888184, 0.4804260731, -0.1738850474, -0.4621182978, -0.346393019, 0.4906899929, -0.1168820709, 0.0213297009, 0.2263395935, 0.2678976655, -0.1467051208, 0.7589287758, 0.0028833896, 0.7930403948, 0.1487364471, 0.1980529577, 0.7221455574, -0.5317469835, 0.4004823565, -0.0322305188, -0.0708862692, -0.2383534312, 0.5987789035, -0.1820172966, -0.151582852, -0.0095944107, 0.1925091147, -0.1030687466, 0.022575099, -0.3046782017, -0.016252121, 0.0787489042, 0.1285974383, -0.1141057462, -0.2810204625, -0.7139284611, -0.0139219128, -0.1206339598, 0.0340204909, -0.0035200007, -0.3064058125, -0.2558884323, -0.1888528317, -0.3464410901, 0.2579854727, 0.1630949676, -0.0184748769, 0.2230376005, -0.0496140867, 0.0946821421, -0.0524792336, 0.2925048172, -0.0933385789, -0.175445959, 0.1870105714, -0.1364037097, -0.0991373733, -0.0924461409, -0.0160646476, 0.5005757213, -0.0768828839, -0.1589545012, -0.2050988227, -0.2627160549, -0.5380350351, 0.2646919489, 0.4163653851, -0.3466081321, -0.240975976, -0.3931143582, -0.0475280583, 0.2723070979, -0.157066986, 0.0498476923, 0.2624672949, 0.1839359254, -0.0674589872, 0.2908508182, -0.3609032929, -0.1087288186, 0.3222657442, -0.0353099406, 0.0564954802, 0.5033450723, 0.2862296104, -0.217995435, -0.190461576, 0.2036406696, 0.8105611801, -0.626924634, 0.3065254688, -0.1730779856, -0.0535797477, -0.0472417325, 0.3028692007, 0.0699546486, -0.0232217349, 0.0566214174, -0.6213236451, -0.106200859, 0.4122470915, -0.1543132663, -0.021445347, 0.1351436973, -0.0169346649, -0.2405517399, -0.1720613986, -0.1729354411, 0.2192623615, -0.1576297581, -0.2045776397, -0.3086435497, 0.0632046759, 0.5788149834, 0.0068064481, 0.0865862295, 0.0817478448, -0.1436325908, -0.0885986164, -0.3009875119, 0.2072960585, 0.1043564677, -0.092710495, -0.078460291, 0.0101222843, -0.179023698, -0.135748595, 0.2507113218, 0.2667546272, -0.0477174707, -0.1331558526, 0.0813499242, 0.1524970829, -0.2447348982, 0.1382136047, -0.1590838432, 0.5401739478, 0.0858469307, -0.0476724245, -0.229151994, 0.1443035603, -0.2354619354, 0.2881272435, 0.2030766606, 0.2164714336, 0.4846534133, -0.4272494316, 0.0382832065, -0.2070931345, 0.0976075903, 0.3163168728, -0.2574582696, 0.0504575297, -0.1622020751, 0.0547885001, 0.0131523088, 0.0525108464, 0.1396278739, -0.0389825925, 0.0427070111, 0.3336886466, -0.138818875, 0.0428314209, -0.2334403098, 0.0458438545, 0.4255112112, 0.1589772254, 0.0510137565, 0.2905638516, -0.2684135437, 0.0809299126, 0.0158536676, 0.140757814, 0.2980790138, -0.0071150232, 0.0680875033, 0.0217252504, 0.1491240412, 0.2423136532, 0.0005274862, -0.4159059525, -0.0420817062, 0.3158296943, -0.0500426628, 0.3092296124, 0.1688644588, 0.333373189, -0.1892768741, 0.096985653, -0.4036625028, -0.1670228541, -0.0538140796, -0.2211986482, -0.5511415005, -0.2069524229, -0.371526897, -0.1109172106, -0.1350992173, -0.0615068413, -0.2741712332, 0.1886226386, 0.0503453612, -0.3303633928, 0.0814074799, -0.1955389977, 0.2041692287, -0.1523470879, 0.2263704985, -0.0093276575, 0.0362450145, 0.3188802898, 0.0760151669, 0.5093175173, 0.2283808589, -0.0963352621, -0.2487949431, -0.0241236761, -0.1421785057, 0.0403780043, 0.3468790948, 0.1857324839, 0.0395644531, 0.2420820743, 0.1516417265, -0.1133230925, 0.3565615714, 0.0022538076, 0.2634563744, -0.09924867, 0.5178785324, -0.4676589966, 0.1000933647, -0.1672314554, -0.3525447249, -0.1460464746, -0.3188263774, -0.1780049205, -0.1945901662, -0.0235637687, -0.0586972758, 0.0232758783, -0.0869167894, 0.4179296494, 0.3949700296, 0.1819571406, 0.153183952, -0.033079505, -0.2972991467, 0.2351237833, -0.131894961, 0.0307581648, 0.2157546431, 0.2165424526, 0.0767686144, 0.1726403832, 0.0412502028, 0.0387749895, 0.0111104548, 0.2165729254, -0.2433101982, -0.0609746836, 0.2753144801, 0.0173525382, -0.1357741803, -0.2809371352, -0.0888740718, -0.0585751832, -0.0598330349, 0.1518502682, -0.0595388487, -0.0654161796, -0.1698690057, 0.4425503612, 0.1324362904, 0.2011089176, -0.0575091057, -0.4760099947, -0.268943727, -0.4144521952, -0.1308503598, 0.3707852364, -0.1804432422, 0.6111345887, 0.0342232883, 0.1484047174, -0.0185196493, -0.0448634587, -0.1875070781, -0.098218292, -0.5277870893, 0.2939002514, -0.3957846463, 0.1447349191, -0.1315568388, 0.1057320237, 0.1239856631, 0.1936318278, -0.0772356018, -0.2317141593, 0.4982316196, -0.2602387369, -0.3133599758, 0.272792846, 0.088914454, -0.1325901002, -0.2973820269, -0.6104024649, 0.0109965205, 0.2189057022, 0.0305513516, -0.2178262472, -0.1124499813, -0.1242607832, -0.0546768978, -0.1363346577, 0.2223986089, 0.0136692971, -0.1138070002, 0.1441098899, -0.1869694889 ]
https://github.com/huggingface/datasets/issues/2799
Loading JSON throws ArrowNotImplementedError
> I just took one of your JSON lines an pyarrow.json read it without problem. yes, and for some peculiar reason the error is non-deterministic (i was eventually able to load the whole dataset by just re-running the `load_dataset` cell multiple times 🤔) thanks for looking into this 🙏 !
## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0
50
Loading JSON throws ArrowNotImplementedError ## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0 > I just took one of your JSON lines an pyarrow.json read it without problem. yes, and for some peculiar reason the error is non-deterministic (i was eventually able to load the whole dataset by just re-running the `load_dataset` cell multiple times 🤔) thanks for looking into this 🙏 !
[ -0.0681869462, 0.1841620952, 0.0364153907, 0.378070116, 0.2355375141, -0.0062702075, 0.4846678972, 0.3670630455, 0.4180774391, -0.0028389022, 0.0605549589, 0.5898873806, 0.0276202224, -0.1488581598, -0.2172113806, -0.1838726699, 0.0313559324, 0.1905161291, 0.1274460107, 0.0285850018, -0.3122326732, 0.2942060828, -0.2148164511, 0.1017743126, -0.0391267315, -0.0952268168, 0.104162544, 0.3933391869, -0.126418978, -0.3826469481, 0.4134063721, -0.0130351661, 0.2161164582, 0.530852139, -0.0001203599, 0.1964655817, 0.4152530432, -0.0924443901, -0.2868117094, -0.4780588746, -0.2790297568, -0.3253917396, 0.5374763608, -0.120037891, 0.105205223, -0.2437471151, -0.0497695282, -0.2207822204, 0.6015408635, 0.2307225913, 0.1048026383, 0.4299392998, 0.0260290504, 0.0192194097, 0.0637280121, 0.2108370662, -0.1217752695, 0.4542038441, 0.0082485415, 0.1270528734, -0.1715971977, -0.0036360212, -0.1026411951, 0.1538670957, 0.2191225588, 0.0476008356, -0.1704019904, 0.0818342343, 0.0492498837, 0.294632107, 0.2845768034, -0.050880786, -0.4122374356, -0.3489955068, -0.1207851544, 0.1302726567, 0.23882173, 0.2473598123, -0.1509172618, 0.1259341836, 0.0328825302, -0.0184712969, -0.2741967738, 0.2383802682, 0.0036438257, 0.011187071, -0.1582194865, 0.1072920561, -0.1295856982, -0.0208247453, -0.1499341279, -0.2244827151, -0.3057586849, 0.1283778995, 0.0374985859, 0.1160040647, -0.0355978198, -0.4100777209, 0.2355834246, 0.3558479249, 0.3206706643, 0.2080191374, -0.267365694, 0.2078460455, 0.5903256536, 0.2016134709, -0.0549013838, 0.0114985034, 0.2564999163, 0.3305143714, 0.0607300624, -0.0435530096, -0.2637993991, -0.1108330041, 0.0103775933, -0.1974504888, 0.308680743, -0.1726258993, -0.2238532305, 0.0755630434, -0.6134251356, -0.0573210381, -0.0002183542, 0.3672916591, -0.1971877068, 0.4987775683, 0.2744282484, 0.4868385196, 0.0442171097, 0.0317274667, -0.1022378579, -0.035348624, -0.1634833515, -0.2962282896, 0.2371661365, 0.0525443889, 0.0861051604, 0.1265181303, -0.0630014315, -0.4126391411, -0.07425984, 0.0477155112, -0.0974053741, 0.1669667661, 0.1920513511, 0.1328713149, 0.1559263766, -0.4045028687, -0.137646392, 0.0323025845, -0.3769193888, 0.0055574179, -0.3176852465, 0.0546303056, -0.2702908516, -0.0120817665, -0.7623511553, -0.0521198027, -0.1122778952, 0.0660266727, 0.063875325, -0.0244175047, 0.2227594256, -0.247084707, 0.0749817714, 0.2833136916, -0.300557971, -0.2378237098, -0.0629287809, -0.0374921709, 0.1896334887, 0.2650880814, -0.2005773187, 0.2845456004, -0.163735345, 0.2106696069, 0.3121514618, -0.3327306509, -0.2219263315, 0.6055201888, 0.0193045735, 0.5248500109, 0.0198843498, -0.2308954, -0.009200871, 0.1884041429, 0.3035950065, 0.4013708532, 0.1422876269, 0.0679153055, -0.2457048744, -0.2022634447, -0.134642005, 0.3127692938, 0.0487664752, 0.1889400929, 0.0995357484, 0.0244782232, 0.2506873012, -0.1951393634, -0.0266672913, 0.1624231935, 0.091133073, 0.0282148067, -0.0057260953, -0.0044111982, -0.6142936945, 0.1499559432, -0.0511222631, 0.1092022955, -0.4080860913, 0.0093211234, -0.2547826469, 0.1260678172, -0.1280751824, 0.1847679466, 0.0374526605, 0.1086533442, -0.1821872741, 0.2108013481, -0.1838933825, 0.3152325749, 0.1626444757, 0.2816523612, -0.4834643304, 0.4377060533, 0.210255757, -0.1212381124, 0.0271179378, 0.1853710413, -0.0978175402, -0.1626706272, -0.2391356826, 0.1727546901, 0.1394180059, 0.1797139198, -0.0562772006, -0.2375709116, -0.0822838396, 0.0838591307, -0.1951906234, 0.3068775237, 0.2217238694, -0.0245844796, -0.0280963928, 0.8052088022, -0.0741070881, 0.4431971908, -0.0157234967, -0.0205506198, 0.4561715424, 0.0615658015, -0.3641530871, -0.3053401709, 0.238835305, 0.3186243176, 0.0603677779, 0.0040047746, -0.3794294894, -0.1885214597, 0.3982866406, 0.005179815, 0.2424625158, 0.153235063, -0.0953564718, -0.0996728688, 0.0158597622, 0.1401788145, 0.2382987738, 0.0758771151, -0.2070477307, -0.0434464738, -0.0409476422, -0.0247450657, 0.155598864, 0.3065350652, 0.2641776502, 0.0933472365, 0.1558889151, -0.0209618844, -0.2815460861, -0.2380039543, -0.286360085, 0.1189385876, -0.6182568073, 0.2991379201, -0.4743472338, 0.1188916266, 0.0353332609, -0.3410822153, -0.126299873, -0.3229712546, -0.3007417321, 0.2734273672, -0.1147492081, -0.1341668963, -0.266723603, 0.3151707053, -0.0232129246, -0.346346885, -0.2113420069, -0.0117184855, -0.1846483797, -0.0234057978, 0.387586683, 0.1092967391, 0.1544725895, -0.1289405376, 0.0473136902, 0.1418190449, -0.0863970518, 0.1482001096, -0.1994989514, 0.2889932394, 0.2154710591, 0.1969100535, -0.0978526026, -0.1516464502, 0.2886654437, 0.0957518443, -0.3427709043, 0.3241926134, -0.1354985088, 0.0278996974, -0.1492168307, -0.0291685648, 0.121954903, -0.4392543137, 0.5247157216, 0.2458686382, 0.0581383929, -0.0170071665, 0.0242614932, 0.1799213737, 0.1687068045, 0.0159116127, -0.110746339, -0.15468584, 0.2326568812, -0.1608324498, -0.2501764894, 0.0764543191, -0.196551621, 0.1685904264, -0.0865129828, -0.3909763098, 0.0259429365, 0.0707199052, 0.1136566997, -0.0444041491, -0.2952395678, 0.0588247776, -0.0127502903, 0.0851904005, -0.1855716556, -0.2022254318, 0.1206319779, -0.0438128933, 0.0216034465, 0.0565147735, 0.7252904177, -0.0942961052, 0.180775404, 0.3117998242, -0.0382719375, 0.3949744701, -0.0264436193, 0.10300906, -0.4057939649, -0.1191257089, -0.3808177412, -0.0971131623, 0.07863684, 0.2193031013, 0.1096422523, -0.2879480124, -0.2405597568, -0.062283501, -0.4587050676, -0.3489449024, 0.133379519, -0.3543263674, -0.3382494152, 0.0320333317, 0.220564276, -0.0587302148, -0.0581018478, -0.0303625353, 0.4014142752, 0.2062798738, -0.0455005467, -0.2057113945, 0.0343680494, -0.3544530272, 0.3606955409, 0.0746532604, 0.36575073, 0.1974584162, -0.0280978084, 0.24474895, -0.2093996555, 0.4490721226, -0.1200108901, 0.0227277894, 0.0280959383, -0.1236657128, -0.6418691278, 0.1011511907, -0.1271311045, 0.2907666862, 0.2359819859, 0.2095476389, -0.4572592378, -0.2961421609, 0.1018687263, -0.1504392326, -0.1058705002, -0.106476225, -0.364038527, -0.2923772633, -0.2448295057, -0.1525725126, 0.0274701267, 0.2387111634, 0.087436825, -0.0987063795, -0.2664908469, -0.0690850616, 0.1225850955, 0.2164162099, 0.188087821, -0.2173923403, 0.0409797728, 0.0061118063, 0.3643344045, 0.395925492, 0.8496598601, 0.2561549842, -0.5346412063, 0.2092525661, -0.0245478228, 0.0420458764, 0.1865960658, 0.0230351649, 0.0835100114, 0.2850646377, 0.1448801458, -0.2175284624, -0.1765888184, 0.4804260731, -0.1738850474, -0.4621182978, -0.346393019, 0.4906899929, -0.1168820709, 0.0213297009, 0.2263395935, 0.2678976655, -0.1467051208, 0.7589287758, 0.0028833896, 0.7930403948, 0.1487364471, 0.1980529577, 0.7221455574, -0.5317469835, 0.4004823565, -0.0322305188, -0.0708862692, -0.2383534312, 0.5987789035, -0.1820172966, -0.151582852, -0.0095944107, 0.1925091147, -0.1030687466, 0.022575099, -0.3046782017, -0.016252121, 0.0787489042, 0.1285974383, -0.1141057462, -0.2810204625, -0.7139284611, -0.0139219128, -0.1206339598, 0.0340204909, -0.0035200007, -0.3064058125, -0.2558884323, -0.1888528317, -0.3464410901, 0.2579854727, 0.1630949676, -0.0184748769, 0.2230376005, -0.0496140867, 0.0946821421, -0.0524792336, 0.2925048172, -0.0933385789, -0.175445959, 0.1870105714, -0.1364037097, -0.0991373733, -0.0924461409, -0.0160646476, 0.5005757213, -0.0768828839, -0.1589545012, -0.2050988227, -0.2627160549, -0.5380350351, 0.2646919489, 0.4163653851, -0.3466081321, -0.240975976, -0.3931143582, -0.0475280583, 0.2723070979, -0.157066986, 0.0498476923, 0.2624672949, 0.1839359254, -0.0674589872, 0.2908508182, -0.3609032929, -0.1087288186, 0.3222657442, -0.0353099406, 0.0564954802, 0.5033450723, 0.2862296104, -0.217995435, -0.190461576, 0.2036406696, 0.8105611801, -0.626924634, 0.3065254688, -0.1730779856, -0.0535797477, -0.0472417325, 0.3028692007, 0.0699546486, -0.0232217349, 0.0566214174, -0.6213236451, -0.106200859, 0.4122470915, -0.1543132663, -0.021445347, 0.1351436973, -0.0169346649, -0.2405517399, -0.1720613986, -0.1729354411, 0.2192623615, -0.1576297581, -0.2045776397, -0.3086435497, 0.0632046759, 0.5788149834, 0.0068064481, 0.0865862295, 0.0817478448, -0.1436325908, -0.0885986164, -0.3009875119, 0.2072960585, 0.1043564677, -0.092710495, -0.078460291, 0.0101222843, -0.179023698, -0.135748595, 0.2507113218, 0.2667546272, -0.0477174707, -0.1331558526, 0.0813499242, 0.1524970829, -0.2447348982, 0.1382136047, -0.1590838432, 0.5401739478, 0.0858469307, -0.0476724245, -0.229151994, 0.1443035603, -0.2354619354, 0.2881272435, 0.2030766606, 0.2164714336, 0.4846534133, -0.4272494316, 0.0382832065, -0.2070931345, 0.0976075903, 0.3163168728, -0.2574582696, 0.0504575297, -0.1622020751, 0.0547885001, 0.0131523088, 0.0525108464, 0.1396278739, -0.0389825925, 0.0427070111, 0.3336886466, -0.138818875, 0.0428314209, -0.2334403098, 0.0458438545, 0.4255112112, 0.1589772254, 0.0510137565, 0.2905638516, -0.2684135437, 0.0809299126, 0.0158536676, 0.140757814, 0.2980790138, -0.0071150232, 0.0680875033, 0.0217252504, 0.1491240412, 0.2423136532, 0.0005274862, -0.4159059525, -0.0420817062, 0.3158296943, -0.0500426628, 0.3092296124, 0.1688644588, 0.333373189, -0.1892768741, 0.096985653, -0.4036625028, -0.1670228541, -0.0538140796, -0.2211986482, -0.5511415005, -0.2069524229, -0.371526897, -0.1109172106, -0.1350992173, -0.0615068413, -0.2741712332, 0.1886226386, 0.0503453612, -0.3303633928, 0.0814074799, -0.1955389977, 0.2041692287, -0.1523470879, 0.2263704985, -0.0093276575, 0.0362450145, 0.3188802898, 0.0760151669, 0.5093175173, 0.2283808589, -0.0963352621, -0.2487949431, -0.0241236761, -0.1421785057, 0.0403780043, 0.3468790948, 0.1857324839, 0.0395644531, 0.2420820743, 0.1516417265, -0.1133230925, 0.3565615714, 0.0022538076, 0.2634563744, -0.09924867, 0.5178785324, -0.4676589966, 0.1000933647, -0.1672314554, -0.3525447249, -0.1460464746, -0.3188263774, -0.1780049205, -0.1945901662, -0.0235637687, -0.0586972758, 0.0232758783, -0.0869167894, 0.4179296494, 0.3949700296, 0.1819571406, 0.153183952, -0.033079505, -0.2972991467, 0.2351237833, -0.131894961, 0.0307581648, 0.2157546431, 0.2165424526, 0.0767686144, 0.1726403832, 0.0412502028, 0.0387749895, 0.0111104548, 0.2165729254, -0.2433101982, -0.0609746836, 0.2753144801, 0.0173525382, -0.1357741803, -0.2809371352, -0.0888740718, -0.0585751832, -0.0598330349, 0.1518502682, -0.0595388487, -0.0654161796, -0.1698690057, 0.4425503612, 0.1324362904, 0.2011089176, -0.0575091057, -0.4760099947, -0.268943727, -0.4144521952, -0.1308503598, 0.3707852364, -0.1804432422, 0.6111345887, 0.0342232883, 0.1484047174, -0.0185196493, -0.0448634587, -0.1875070781, -0.098218292, -0.5277870893, 0.2939002514, -0.3957846463, 0.1447349191, -0.1315568388, 0.1057320237, 0.1239856631, 0.1936318278, -0.0772356018, -0.2317141593, 0.4982316196, -0.2602387369, -0.3133599758, 0.272792846, 0.088914454, -0.1325901002, -0.2973820269, -0.6104024649, 0.0109965205, 0.2189057022, 0.0305513516, -0.2178262472, -0.1124499813, -0.1242607832, -0.0546768978, -0.1363346577, 0.2223986089, 0.0136692971, -0.1138070002, 0.1441098899, -0.1869694889 ]
https://github.com/huggingface/datasets/issues/2799
Loading JSON throws ArrowNotImplementedError
The code works fine on my side. Not sure what's going on here :/ I remember we did a few changes in the JSON loader in #2638 , did you do an update `datasets` when debugging this ?
## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0
38
Loading JSON throws ArrowNotImplementedError ## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0 The code works fine on my side. Not sure what's going on here :/ I remember we did a few changes in the JSON loader in #2638 , did you do an update `datasets` when debugging this ?
[ -0.0681869462, 0.1841620952, 0.0364153907, 0.378070116, 0.2355375141, -0.0062702075, 0.4846678972, 0.3670630455, 0.4180774391, -0.0028389022, 0.0605549589, 0.5898873806, 0.0276202224, -0.1488581598, -0.2172113806, -0.1838726699, 0.0313559324, 0.1905161291, 0.1274460107, 0.0285850018, -0.3122326732, 0.2942060828, -0.2148164511, 0.1017743126, -0.0391267315, -0.0952268168, 0.104162544, 0.3933391869, -0.126418978, -0.3826469481, 0.4134063721, -0.0130351661, 0.2161164582, 0.530852139, -0.0001203599, 0.1964655817, 0.4152530432, -0.0924443901, -0.2868117094, -0.4780588746, -0.2790297568, -0.3253917396, 0.5374763608, -0.120037891, 0.105205223, -0.2437471151, -0.0497695282, -0.2207822204, 0.6015408635, 0.2307225913, 0.1048026383, 0.4299392998, 0.0260290504, 0.0192194097, 0.0637280121, 0.2108370662, -0.1217752695, 0.4542038441, 0.0082485415, 0.1270528734, -0.1715971977, -0.0036360212, -0.1026411951, 0.1538670957, 0.2191225588, 0.0476008356, -0.1704019904, 0.0818342343, 0.0492498837, 0.294632107, 0.2845768034, -0.050880786, -0.4122374356, -0.3489955068, -0.1207851544, 0.1302726567, 0.23882173, 0.2473598123, -0.1509172618, 0.1259341836, 0.0328825302, -0.0184712969, -0.2741967738, 0.2383802682, 0.0036438257, 0.011187071, -0.1582194865, 0.1072920561, -0.1295856982, -0.0208247453, -0.1499341279, -0.2244827151, -0.3057586849, 0.1283778995, 0.0374985859, 0.1160040647, -0.0355978198, -0.4100777209, 0.2355834246, 0.3558479249, 0.3206706643, 0.2080191374, -0.267365694, 0.2078460455, 0.5903256536, 0.2016134709, -0.0549013838, 0.0114985034, 0.2564999163, 0.3305143714, 0.0607300624, -0.0435530096, -0.2637993991, -0.1108330041, 0.0103775933, -0.1974504888, 0.308680743, -0.1726258993, -0.2238532305, 0.0755630434, -0.6134251356, -0.0573210381, -0.0002183542, 0.3672916591, -0.1971877068, 0.4987775683, 0.2744282484, 0.4868385196, 0.0442171097, 0.0317274667, -0.1022378579, -0.035348624, -0.1634833515, -0.2962282896, 0.2371661365, 0.0525443889, 0.0861051604, 0.1265181303, -0.0630014315, -0.4126391411, -0.07425984, 0.0477155112, -0.0974053741, 0.1669667661, 0.1920513511, 0.1328713149, 0.1559263766, -0.4045028687, -0.137646392, 0.0323025845, -0.3769193888, 0.0055574179, -0.3176852465, 0.0546303056, -0.2702908516, -0.0120817665, -0.7623511553, -0.0521198027, -0.1122778952, 0.0660266727, 0.063875325, -0.0244175047, 0.2227594256, -0.247084707, 0.0749817714, 0.2833136916, -0.300557971, -0.2378237098, -0.0629287809, -0.0374921709, 0.1896334887, 0.2650880814, -0.2005773187, 0.2845456004, -0.163735345, 0.2106696069, 0.3121514618, -0.3327306509, -0.2219263315, 0.6055201888, 0.0193045735, 0.5248500109, 0.0198843498, -0.2308954, -0.009200871, 0.1884041429, 0.3035950065, 0.4013708532, 0.1422876269, 0.0679153055, -0.2457048744, -0.2022634447, -0.134642005, 0.3127692938, 0.0487664752, 0.1889400929, 0.0995357484, 0.0244782232, 0.2506873012, -0.1951393634, -0.0266672913, 0.1624231935, 0.091133073, 0.0282148067, -0.0057260953, -0.0044111982, -0.6142936945, 0.1499559432, -0.0511222631, 0.1092022955, -0.4080860913, 0.0093211234, -0.2547826469, 0.1260678172, -0.1280751824, 0.1847679466, 0.0374526605, 0.1086533442, -0.1821872741, 0.2108013481, -0.1838933825, 0.3152325749, 0.1626444757, 0.2816523612, -0.4834643304, 0.4377060533, 0.210255757, -0.1212381124, 0.0271179378, 0.1853710413, -0.0978175402, -0.1626706272, -0.2391356826, 0.1727546901, 0.1394180059, 0.1797139198, -0.0562772006, -0.2375709116, -0.0822838396, 0.0838591307, -0.1951906234, 0.3068775237, 0.2217238694, -0.0245844796, -0.0280963928, 0.8052088022, -0.0741070881, 0.4431971908, -0.0157234967, -0.0205506198, 0.4561715424, 0.0615658015, -0.3641530871, -0.3053401709, 0.238835305, 0.3186243176, 0.0603677779, 0.0040047746, -0.3794294894, -0.1885214597, 0.3982866406, 0.005179815, 0.2424625158, 0.153235063, -0.0953564718, -0.0996728688, 0.0158597622, 0.1401788145, 0.2382987738, 0.0758771151, -0.2070477307, -0.0434464738, -0.0409476422, -0.0247450657, 0.155598864, 0.3065350652, 0.2641776502, 0.0933472365, 0.1558889151, -0.0209618844, -0.2815460861, -0.2380039543, -0.286360085, 0.1189385876, -0.6182568073, 0.2991379201, -0.4743472338, 0.1188916266, 0.0353332609, -0.3410822153, -0.126299873, -0.3229712546, -0.3007417321, 0.2734273672, -0.1147492081, -0.1341668963, -0.266723603, 0.3151707053, -0.0232129246, -0.346346885, -0.2113420069, -0.0117184855, -0.1846483797, -0.0234057978, 0.387586683, 0.1092967391, 0.1544725895, -0.1289405376, 0.0473136902, 0.1418190449, -0.0863970518, 0.1482001096, -0.1994989514, 0.2889932394, 0.2154710591, 0.1969100535, -0.0978526026, -0.1516464502, 0.2886654437, 0.0957518443, -0.3427709043, 0.3241926134, -0.1354985088, 0.0278996974, -0.1492168307, -0.0291685648, 0.121954903, -0.4392543137, 0.5247157216, 0.2458686382, 0.0581383929, -0.0170071665, 0.0242614932, 0.1799213737, 0.1687068045, 0.0159116127, -0.110746339, -0.15468584, 0.2326568812, -0.1608324498, -0.2501764894, 0.0764543191, -0.196551621, 0.1685904264, -0.0865129828, -0.3909763098, 0.0259429365, 0.0707199052, 0.1136566997, -0.0444041491, -0.2952395678, 0.0588247776, -0.0127502903, 0.0851904005, -0.1855716556, -0.2022254318, 0.1206319779, -0.0438128933, 0.0216034465, 0.0565147735, 0.7252904177, -0.0942961052, 0.180775404, 0.3117998242, -0.0382719375, 0.3949744701, -0.0264436193, 0.10300906, -0.4057939649, -0.1191257089, -0.3808177412, -0.0971131623, 0.07863684, 0.2193031013, 0.1096422523, -0.2879480124, -0.2405597568, -0.062283501, -0.4587050676, -0.3489449024, 0.133379519, -0.3543263674, -0.3382494152, 0.0320333317, 0.220564276, -0.0587302148, -0.0581018478, -0.0303625353, 0.4014142752, 0.2062798738, -0.0455005467, -0.2057113945, 0.0343680494, -0.3544530272, 0.3606955409, 0.0746532604, 0.36575073, 0.1974584162, -0.0280978084, 0.24474895, -0.2093996555, 0.4490721226, -0.1200108901, 0.0227277894, 0.0280959383, -0.1236657128, -0.6418691278, 0.1011511907, -0.1271311045, 0.2907666862, 0.2359819859, 0.2095476389, -0.4572592378, -0.2961421609, 0.1018687263, -0.1504392326, -0.1058705002, -0.106476225, -0.364038527, -0.2923772633, -0.2448295057, -0.1525725126, 0.0274701267, 0.2387111634, 0.087436825, -0.0987063795, -0.2664908469, -0.0690850616, 0.1225850955, 0.2164162099, 0.188087821, -0.2173923403, 0.0409797728, 0.0061118063, 0.3643344045, 0.395925492, 0.8496598601, 0.2561549842, -0.5346412063, 0.2092525661, -0.0245478228, 0.0420458764, 0.1865960658, 0.0230351649, 0.0835100114, 0.2850646377, 0.1448801458, -0.2175284624, -0.1765888184, 0.4804260731, -0.1738850474, -0.4621182978, -0.346393019, 0.4906899929, -0.1168820709, 0.0213297009, 0.2263395935, 0.2678976655, -0.1467051208, 0.7589287758, 0.0028833896, 0.7930403948, 0.1487364471, 0.1980529577, 0.7221455574, -0.5317469835, 0.4004823565, -0.0322305188, -0.0708862692, -0.2383534312, 0.5987789035, -0.1820172966, -0.151582852, -0.0095944107, 0.1925091147, -0.1030687466, 0.022575099, -0.3046782017, -0.016252121, 0.0787489042, 0.1285974383, -0.1141057462, -0.2810204625, -0.7139284611, -0.0139219128, -0.1206339598, 0.0340204909, -0.0035200007, -0.3064058125, -0.2558884323, -0.1888528317, -0.3464410901, 0.2579854727, 0.1630949676, -0.0184748769, 0.2230376005, -0.0496140867, 0.0946821421, -0.0524792336, 0.2925048172, -0.0933385789, -0.175445959, 0.1870105714, -0.1364037097, -0.0991373733, -0.0924461409, -0.0160646476, 0.5005757213, -0.0768828839, -0.1589545012, -0.2050988227, -0.2627160549, -0.5380350351, 0.2646919489, 0.4163653851, -0.3466081321, -0.240975976, -0.3931143582, -0.0475280583, 0.2723070979, -0.157066986, 0.0498476923, 0.2624672949, 0.1839359254, -0.0674589872, 0.2908508182, -0.3609032929, -0.1087288186, 0.3222657442, -0.0353099406, 0.0564954802, 0.5033450723, 0.2862296104, -0.217995435, -0.190461576, 0.2036406696, 0.8105611801, -0.626924634, 0.3065254688, -0.1730779856, -0.0535797477, -0.0472417325, 0.3028692007, 0.0699546486, -0.0232217349, 0.0566214174, -0.6213236451, -0.106200859, 0.4122470915, -0.1543132663, -0.021445347, 0.1351436973, -0.0169346649, -0.2405517399, -0.1720613986, -0.1729354411, 0.2192623615, -0.1576297581, -0.2045776397, -0.3086435497, 0.0632046759, 0.5788149834, 0.0068064481, 0.0865862295, 0.0817478448, -0.1436325908, -0.0885986164, -0.3009875119, 0.2072960585, 0.1043564677, -0.092710495, -0.078460291, 0.0101222843, -0.179023698, -0.135748595, 0.2507113218, 0.2667546272, -0.0477174707, -0.1331558526, 0.0813499242, 0.1524970829, -0.2447348982, 0.1382136047, -0.1590838432, 0.5401739478, 0.0858469307, -0.0476724245, -0.229151994, 0.1443035603, -0.2354619354, 0.2881272435, 0.2030766606, 0.2164714336, 0.4846534133, -0.4272494316, 0.0382832065, -0.2070931345, 0.0976075903, 0.3163168728, -0.2574582696, 0.0504575297, -0.1622020751, 0.0547885001, 0.0131523088, 0.0525108464, 0.1396278739, -0.0389825925, 0.0427070111, 0.3336886466, -0.138818875, 0.0428314209, -0.2334403098, 0.0458438545, 0.4255112112, 0.1589772254, 0.0510137565, 0.2905638516, -0.2684135437, 0.0809299126, 0.0158536676, 0.140757814, 0.2980790138, -0.0071150232, 0.0680875033, 0.0217252504, 0.1491240412, 0.2423136532, 0.0005274862, -0.4159059525, -0.0420817062, 0.3158296943, -0.0500426628, 0.3092296124, 0.1688644588, 0.333373189, -0.1892768741, 0.096985653, -0.4036625028, -0.1670228541, -0.0538140796, -0.2211986482, -0.5511415005, -0.2069524229, -0.371526897, -0.1109172106, -0.1350992173, -0.0615068413, -0.2741712332, 0.1886226386, 0.0503453612, -0.3303633928, 0.0814074799, -0.1955389977, 0.2041692287, -0.1523470879, 0.2263704985, -0.0093276575, 0.0362450145, 0.3188802898, 0.0760151669, 0.5093175173, 0.2283808589, -0.0963352621, -0.2487949431, -0.0241236761, -0.1421785057, 0.0403780043, 0.3468790948, 0.1857324839, 0.0395644531, 0.2420820743, 0.1516417265, -0.1133230925, 0.3565615714, 0.0022538076, 0.2634563744, -0.09924867, 0.5178785324, -0.4676589966, 0.1000933647, -0.1672314554, -0.3525447249, -0.1460464746, -0.3188263774, -0.1780049205, -0.1945901662, -0.0235637687, -0.0586972758, 0.0232758783, -0.0869167894, 0.4179296494, 0.3949700296, 0.1819571406, 0.153183952, -0.033079505, -0.2972991467, 0.2351237833, -0.131894961, 0.0307581648, 0.2157546431, 0.2165424526, 0.0767686144, 0.1726403832, 0.0412502028, 0.0387749895, 0.0111104548, 0.2165729254, -0.2433101982, -0.0609746836, 0.2753144801, 0.0173525382, -0.1357741803, -0.2809371352, -0.0888740718, -0.0585751832, -0.0598330349, 0.1518502682, -0.0595388487, -0.0654161796, -0.1698690057, 0.4425503612, 0.1324362904, 0.2011089176, -0.0575091057, -0.4760099947, -0.268943727, -0.4144521952, -0.1308503598, 0.3707852364, -0.1804432422, 0.6111345887, 0.0342232883, 0.1484047174, -0.0185196493, -0.0448634587, -0.1875070781, -0.098218292, -0.5277870893, 0.2939002514, -0.3957846463, 0.1447349191, -0.1315568388, 0.1057320237, 0.1239856631, 0.1936318278, -0.0772356018, -0.2317141593, 0.4982316196, -0.2602387369, -0.3133599758, 0.272792846, 0.088914454, -0.1325901002, -0.2973820269, -0.6104024649, 0.0109965205, 0.2189057022, 0.0305513516, -0.2178262472, -0.1124499813, -0.1242607832, -0.0546768978, -0.1363346577, 0.2223986089, 0.0136692971, -0.1138070002, 0.1441098899, -0.1869694889 ]
https://github.com/huggingface/datasets/issues/2799
Loading JSON throws ArrowNotImplementedError
OK after upgrading `datasets` to v1.12.1 the issue seems to have gone away. Closing this now :)
## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0
17
Loading JSON throws ArrowNotImplementedError ## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0 OK after upgrading `datasets` to v1.12.1 the issue seems to have gone away. Closing this now :)
[ -0.0681869462, 0.1841620952, 0.0364153907, 0.378070116, 0.2355375141, -0.0062702075, 0.4846678972, 0.3670630455, 0.4180774391, -0.0028389022, 0.0605549589, 0.5898873806, 0.0276202224, -0.1488581598, -0.2172113806, -0.1838726699, 0.0313559324, 0.1905161291, 0.1274460107, 0.0285850018, -0.3122326732, 0.2942060828, -0.2148164511, 0.1017743126, -0.0391267315, -0.0952268168, 0.104162544, 0.3933391869, -0.126418978, -0.3826469481, 0.4134063721, -0.0130351661, 0.2161164582, 0.530852139, -0.0001203599, 0.1964655817, 0.4152530432, -0.0924443901, -0.2868117094, -0.4780588746, -0.2790297568, -0.3253917396, 0.5374763608, -0.120037891, 0.105205223, -0.2437471151, -0.0497695282, -0.2207822204, 0.6015408635, 0.2307225913, 0.1048026383, 0.4299392998, 0.0260290504, 0.0192194097, 0.0637280121, 0.2108370662, -0.1217752695, 0.4542038441, 0.0082485415, 0.1270528734, -0.1715971977, -0.0036360212, -0.1026411951, 0.1538670957, 0.2191225588, 0.0476008356, -0.1704019904, 0.0818342343, 0.0492498837, 0.294632107, 0.2845768034, -0.050880786, -0.4122374356, -0.3489955068, -0.1207851544, 0.1302726567, 0.23882173, 0.2473598123, -0.1509172618, 0.1259341836, 0.0328825302, -0.0184712969, -0.2741967738, 0.2383802682, 0.0036438257, 0.011187071, -0.1582194865, 0.1072920561, -0.1295856982, -0.0208247453, -0.1499341279, -0.2244827151, -0.3057586849, 0.1283778995, 0.0374985859, 0.1160040647, -0.0355978198, -0.4100777209, 0.2355834246, 0.3558479249, 0.3206706643, 0.2080191374, -0.267365694, 0.2078460455, 0.5903256536, 0.2016134709, -0.0549013838, 0.0114985034, 0.2564999163, 0.3305143714, 0.0607300624, -0.0435530096, -0.2637993991, -0.1108330041, 0.0103775933, -0.1974504888, 0.308680743, -0.1726258993, -0.2238532305, 0.0755630434, -0.6134251356, -0.0573210381, -0.0002183542, 0.3672916591, -0.1971877068, 0.4987775683, 0.2744282484, 0.4868385196, 0.0442171097, 0.0317274667, -0.1022378579, -0.035348624, -0.1634833515, -0.2962282896, 0.2371661365, 0.0525443889, 0.0861051604, 0.1265181303, -0.0630014315, -0.4126391411, -0.07425984, 0.0477155112, -0.0974053741, 0.1669667661, 0.1920513511, 0.1328713149, 0.1559263766, -0.4045028687, -0.137646392, 0.0323025845, -0.3769193888, 0.0055574179, -0.3176852465, 0.0546303056, -0.2702908516, -0.0120817665, -0.7623511553, -0.0521198027, -0.1122778952, 0.0660266727, 0.063875325, -0.0244175047, 0.2227594256, -0.247084707, 0.0749817714, 0.2833136916, -0.300557971, -0.2378237098, -0.0629287809, -0.0374921709, 0.1896334887, 0.2650880814, -0.2005773187, 0.2845456004, -0.163735345, 0.2106696069, 0.3121514618, -0.3327306509, -0.2219263315, 0.6055201888, 0.0193045735, 0.5248500109, 0.0198843498, -0.2308954, -0.009200871, 0.1884041429, 0.3035950065, 0.4013708532, 0.1422876269, 0.0679153055, -0.2457048744, -0.2022634447, -0.134642005, 0.3127692938, 0.0487664752, 0.1889400929, 0.0995357484, 0.0244782232, 0.2506873012, -0.1951393634, -0.0266672913, 0.1624231935, 0.091133073, 0.0282148067, -0.0057260953, -0.0044111982, -0.6142936945, 0.1499559432, -0.0511222631, 0.1092022955, -0.4080860913, 0.0093211234, -0.2547826469, 0.1260678172, -0.1280751824, 0.1847679466, 0.0374526605, 0.1086533442, -0.1821872741, 0.2108013481, -0.1838933825, 0.3152325749, 0.1626444757, 0.2816523612, -0.4834643304, 0.4377060533, 0.210255757, -0.1212381124, 0.0271179378, 0.1853710413, -0.0978175402, -0.1626706272, -0.2391356826, 0.1727546901, 0.1394180059, 0.1797139198, -0.0562772006, -0.2375709116, -0.0822838396, 0.0838591307, -0.1951906234, 0.3068775237, 0.2217238694, -0.0245844796, -0.0280963928, 0.8052088022, -0.0741070881, 0.4431971908, -0.0157234967, -0.0205506198, 0.4561715424, 0.0615658015, -0.3641530871, -0.3053401709, 0.238835305, 0.3186243176, 0.0603677779, 0.0040047746, -0.3794294894, -0.1885214597, 0.3982866406, 0.005179815, 0.2424625158, 0.153235063, -0.0953564718, -0.0996728688, 0.0158597622, 0.1401788145, 0.2382987738, 0.0758771151, -0.2070477307, -0.0434464738, -0.0409476422, -0.0247450657, 0.155598864, 0.3065350652, 0.2641776502, 0.0933472365, 0.1558889151, -0.0209618844, -0.2815460861, -0.2380039543, -0.286360085, 0.1189385876, -0.6182568073, 0.2991379201, -0.4743472338, 0.1188916266, 0.0353332609, -0.3410822153, -0.126299873, -0.3229712546, -0.3007417321, 0.2734273672, -0.1147492081, -0.1341668963, -0.266723603, 0.3151707053, -0.0232129246, -0.346346885, -0.2113420069, -0.0117184855, -0.1846483797, -0.0234057978, 0.387586683, 0.1092967391, 0.1544725895, -0.1289405376, 0.0473136902, 0.1418190449, -0.0863970518, 0.1482001096, -0.1994989514, 0.2889932394, 0.2154710591, 0.1969100535, -0.0978526026, -0.1516464502, 0.2886654437, 0.0957518443, -0.3427709043, 0.3241926134, -0.1354985088, 0.0278996974, -0.1492168307, -0.0291685648, 0.121954903, -0.4392543137, 0.5247157216, 0.2458686382, 0.0581383929, -0.0170071665, 0.0242614932, 0.1799213737, 0.1687068045, 0.0159116127, -0.110746339, -0.15468584, 0.2326568812, -0.1608324498, -0.2501764894, 0.0764543191, -0.196551621, 0.1685904264, -0.0865129828, -0.3909763098, 0.0259429365, 0.0707199052, 0.1136566997, -0.0444041491, -0.2952395678, 0.0588247776, -0.0127502903, 0.0851904005, -0.1855716556, -0.2022254318, 0.1206319779, -0.0438128933, 0.0216034465, 0.0565147735, 0.7252904177, -0.0942961052, 0.180775404, 0.3117998242, -0.0382719375, 0.3949744701, -0.0264436193, 0.10300906, -0.4057939649, -0.1191257089, -0.3808177412, -0.0971131623, 0.07863684, 0.2193031013, 0.1096422523, -0.2879480124, -0.2405597568, -0.062283501, -0.4587050676, -0.3489449024, 0.133379519, -0.3543263674, -0.3382494152, 0.0320333317, 0.220564276, -0.0587302148, -0.0581018478, -0.0303625353, 0.4014142752, 0.2062798738, -0.0455005467, -0.2057113945, 0.0343680494, -0.3544530272, 0.3606955409, 0.0746532604, 0.36575073, 0.1974584162, -0.0280978084, 0.24474895, -0.2093996555, 0.4490721226, -0.1200108901, 0.0227277894, 0.0280959383, -0.1236657128, -0.6418691278, 0.1011511907, -0.1271311045, 0.2907666862, 0.2359819859, 0.2095476389, -0.4572592378, -0.2961421609, 0.1018687263, -0.1504392326, -0.1058705002, -0.106476225, -0.364038527, -0.2923772633, -0.2448295057, -0.1525725126, 0.0274701267, 0.2387111634, 0.087436825, -0.0987063795, -0.2664908469, -0.0690850616, 0.1225850955, 0.2164162099, 0.188087821, -0.2173923403, 0.0409797728, 0.0061118063, 0.3643344045, 0.395925492, 0.8496598601, 0.2561549842, -0.5346412063, 0.2092525661, -0.0245478228, 0.0420458764, 0.1865960658, 0.0230351649, 0.0835100114, 0.2850646377, 0.1448801458, -0.2175284624, -0.1765888184, 0.4804260731, -0.1738850474, -0.4621182978, -0.346393019, 0.4906899929, -0.1168820709, 0.0213297009, 0.2263395935, 0.2678976655, -0.1467051208, 0.7589287758, 0.0028833896, 0.7930403948, 0.1487364471, 0.1980529577, 0.7221455574, -0.5317469835, 0.4004823565, -0.0322305188, -0.0708862692, -0.2383534312, 0.5987789035, -0.1820172966, -0.151582852, -0.0095944107, 0.1925091147, -0.1030687466, 0.022575099, -0.3046782017, -0.016252121, 0.0787489042, 0.1285974383, -0.1141057462, -0.2810204625, -0.7139284611, -0.0139219128, -0.1206339598, 0.0340204909, -0.0035200007, -0.3064058125, -0.2558884323, -0.1888528317, -0.3464410901, 0.2579854727, 0.1630949676, -0.0184748769, 0.2230376005, -0.0496140867, 0.0946821421, -0.0524792336, 0.2925048172, -0.0933385789, -0.175445959, 0.1870105714, -0.1364037097, -0.0991373733, -0.0924461409, -0.0160646476, 0.5005757213, -0.0768828839, -0.1589545012, -0.2050988227, -0.2627160549, -0.5380350351, 0.2646919489, 0.4163653851, -0.3466081321, -0.240975976, -0.3931143582, -0.0475280583, 0.2723070979, -0.157066986, 0.0498476923, 0.2624672949, 0.1839359254, -0.0674589872, 0.2908508182, -0.3609032929, -0.1087288186, 0.3222657442, -0.0353099406, 0.0564954802, 0.5033450723, 0.2862296104, -0.217995435, -0.190461576, 0.2036406696, 0.8105611801, -0.626924634, 0.3065254688, -0.1730779856, -0.0535797477, -0.0472417325, 0.3028692007, 0.0699546486, -0.0232217349, 0.0566214174, -0.6213236451, -0.106200859, 0.4122470915, -0.1543132663, -0.021445347, 0.1351436973, -0.0169346649, -0.2405517399, -0.1720613986, -0.1729354411, 0.2192623615, -0.1576297581, -0.2045776397, -0.3086435497, 0.0632046759, 0.5788149834, 0.0068064481, 0.0865862295, 0.0817478448, -0.1436325908, -0.0885986164, -0.3009875119, 0.2072960585, 0.1043564677, -0.092710495, -0.078460291, 0.0101222843, -0.179023698, -0.135748595, 0.2507113218, 0.2667546272, -0.0477174707, -0.1331558526, 0.0813499242, 0.1524970829, -0.2447348982, 0.1382136047, -0.1590838432, 0.5401739478, 0.0858469307, -0.0476724245, -0.229151994, 0.1443035603, -0.2354619354, 0.2881272435, 0.2030766606, 0.2164714336, 0.4846534133, -0.4272494316, 0.0382832065, -0.2070931345, 0.0976075903, 0.3163168728, -0.2574582696, 0.0504575297, -0.1622020751, 0.0547885001, 0.0131523088, 0.0525108464, 0.1396278739, -0.0389825925, 0.0427070111, 0.3336886466, -0.138818875, 0.0428314209, -0.2334403098, 0.0458438545, 0.4255112112, 0.1589772254, 0.0510137565, 0.2905638516, -0.2684135437, 0.0809299126, 0.0158536676, 0.140757814, 0.2980790138, -0.0071150232, 0.0680875033, 0.0217252504, 0.1491240412, 0.2423136532, 0.0005274862, -0.4159059525, -0.0420817062, 0.3158296943, -0.0500426628, 0.3092296124, 0.1688644588, 0.333373189, -0.1892768741, 0.096985653, -0.4036625028, -0.1670228541, -0.0538140796, -0.2211986482, -0.5511415005, -0.2069524229, -0.371526897, -0.1109172106, -0.1350992173, -0.0615068413, -0.2741712332, 0.1886226386, 0.0503453612, -0.3303633928, 0.0814074799, -0.1955389977, 0.2041692287, -0.1523470879, 0.2263704985, -0.0093276575, 0.0362450145, 0.3188802898, 0.0760151669, 0.5093175173, 0.2283808589, -0.0963352621, -0.2487949431, -0.0241236761, -0.1421785057, 0.0403780043, 0.3468790948, 0.1857324839, 0.0395644531, 0.2420820743, 0.1516417265, -0.1133230925, 0.3565615714, 0.0022538076, 0.2634563744, -0.09924867, 0.5178785324, -0.4676589966, 0.1000933647, -0.1672314554, -0.3525447249, -0.1460464746, -0.3188263774, -0.1780049205, -0.1945901662, -0.0235637687, -0.0586972758, 0.0232758783, -0.0869167894, 0.4179296494, 0.3949700296, 0.1819571406, 0.153183952, -0.033079505, -0.2972991467, 0.2351237833, -0.131894961, 0.0307581648, 0.2157546431, 0.2165424526, 0.0767686144, 0.1726403832, 0.0412502028, 0.0387749895, 0.0111104548, 0.2165729254, -0.2433101982, -0.0609746836, 0.2753144801, 0.0173525382, -0.1357741803, -0.2809371352, -0.0888740718, -0.0585751832, -0.0598330349, 0.1518502682, -0.0595388487, -0.0654161796, -0.1698690057, 0.4425503612, 0.1324362904, 0.2011089176, -0.0575091057, -0.4760099947, -0.268943727, -0.4144521952, -0.1308503598, 0.3707852364, -0.1804432422, 0.6111345887, 0.0342232883, 0.1484047174, -0.0185196493, -0.0448634587, -0.1875070781, -0.098218292, -0.5277870893, 0.2939002514, -0.3957846463, 0.1447349191, -0.1315568388, 0.1057320237, 0.1239856631, 0.1936318278, -0.0772356018, -0.2317141593, 0.4982316196, -0.2602387369, -0.3133599758, 0.272792846, 0.088914454, -0.1325901002, -0.2973820269, -0.6104024649, 0.0109965205, 0.2189057022, 0.0305513516, -0.2178262472, -0.1124499813, -0.1242607832, -0.0546768978, -0.1363346577, 0.2223986089, 0.0136692971, -0.1138070002, 0.1441098899, -0.1869694889 ]
https://github.com/huggingface/datasets/issues/2799
Loading JSON throws ArrowNotImplementedError
Oops, I spoke too soon 😓 After deleting the cache and trying the above code snippet again I am hitting the same error. You can also reproduce it in the Colab notebook I linked to in the issue description.
## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0
39
Loading JSON throws ArrowNotImplementedError ## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0 Oops, I spoke too soon 😓 After deleting the cache and trying the above code snippet again I am hitting the same error. You can also reproduce it in the Colab notebook I linked to in the issue description.
[ -0.0681869462, 0.1841620952, 0.0364153907, 0.378070116, 0.2355375141, -0.0062702075, 0.4846678972, 0.3670630455, 0.4180774391, -0.0028389022, 0.0605549589, 0.5898873806, 0.0276202224, -0.1488581598, -0.2172113806, -0.1838726699, 0.0313559324, 0.1905161291, 0.1274460107, 0.0285850018, -0.3122326732, 0.2942060828, -0.2148164511, 0.1017743126, -0.0391267315, -0.0952268168, 0.104162544, 0.3933391869, -0.126418978, -0.3826469481, 0.4134063721, -0.0130351661, 0.2161164582, 0.530852139, -0.0001203599, 0.1964655817, 0.4152530432, -0.0924443901, -0.2868117094, -0.4780588746, -0.2790297568, -0.3253917396, 0.5374763608, -0.120037891, 0.105205223, -0.2437471151, -0.0497695282, -0.2207822204, 0.6015408635, 0.2307225913, 0.1048026383, 0.4299392998, 0.0260290504, 0.0192194097, 0.0637280121, 0.2108370662, -0.1217752695, 0.4542038441, 0.0082485415, 0.1270528734, -0.1715971977, -0.0036360212, -0.1026411951, 0.1538670957, 0.2191225588, 0.0476008356, -0.1704019904, 0.0818342343, 0.0492498837, 0.294632107, 0.2845768034, -0.050880786, -0.4122374356, -0.3489955068, -0.1207851544, 0.1302726567, 0.23882173, 0.2473598123, -0.1509172618, 0.1259341836, 0.0328825302, -0.0184712969, -0.2741967738, 0.2383802682, 0.0036438257, 0.011187071, -0.1582194865, 0.1072920561, -0.1295856982, -0.0208247453, -0.1499341279, -0.2244827151, -0.3057586849, 0.1283778995, 0.0374985859, 0.1160040647, -0.0355978198, -0.4100777209, 0.2355834246, 0.3558479249, 0.3206706643, 0.2080191374, -0.267365694, 0.2078460455, 0.5903256536, 0.2016134709, -0.0549013838, 0.0114985034, 0.2564999163, 0.3305143714, 0.0607300624, -0.0435530096, -0.2637993991, -0.1108330041, 0.0103775933, -0.1974504888, 0.308680743, -0.1726258993, -0.2238532305, 0.0755630434, -0.6134251356, -0.0573210381, -0.0002183542, 0.3672916591, -0.1971877068, 0.4987775683, 0.2744282484, 0.4868385196, 0.0442171097, 0.0317274667, -0.1022378579, -0.035348624, -0.1634833515, -0.2962282896, 0.2371661365, 0.0525443889, 0.0861051604, 0.1265181303, -0.0630014315, -0.4126391411, -0.07425984, 0.0477155112, -0.0974053741, 0.1669667661, 0.1920513511, 0.1328713149, 0.1559263766, -0.4045028687, -0.137646392, 0.0323025845, -0.3769193888, 0.0055574179, -0.3176852465, 0.0546303056, -0.2702908516, -0.0120817665, -0.7623511553, -0.0521198027, -0.1122778952, 0.0660266727, 0.063875325, -0.0244175047, 0.2227594256, -0.247084707, 0.0749817714, 0.2833136916, -0.300557971, -0.2378237098, -0.0629287809, -0.0374921709, 0.1896334887, 0.2650880814, -0.2005773187, 0.2845456004, -0.163735345, 0.2106696069, 0.3121514618, -0.3327306509, -0.2219263315, 0.6055201888, 0.0193045735, 0.5248500109, 0.0198843498, -0.2308954, -0.009200871, 0.1884041429, 0.3035950065, 0.4013708532, 0.1422876269, 0.0679153055, -0.2457048744, -0.2022634447, -0.134642005, 0.3127692938, 0.0487664752, 0.1889400929, 0.0995357484, 0.0244782232, 0.2506873012, -0.1951393634, -0.0266672913, 0.1624231935, 0.091133073, 0.0282148067, -0.0057260953, -0.0044111982, -0.6142936945, 0.1499559432, -0.0511222631, 0.1092022955, -0.4080860913, 0.0093211234, -0.2547826469, 0.1260678172, -0.1280751824, 0.1847679466, 0.0374526605, 0.1086533442, -0.1821872741, 0.2108013481, -0.1838933825, 0.3152325749, 0.1626444757, 0.2816523612, -0.4834643304, 0.4377060533, 0.210255757, -0.1212381124, 0.0271179378, 0.1853710413, -0.0978175402, -0.1626706272, -0.2391356826, 0.1727546901, 0.1394180059, 0.1797139198, -0.0562772006, -0.2375709116, -0.0822838396, 0.0838591307, -0.1951906234, 0.3068775237, 0.2217238694, -0.0245844796, -0.0280963928, 0.8052088022, -0.0741070881, 0.4431971908, -0.0157234967, -0.0205506198, 0.4561715424, 0.0615658015, -0.3641530871, -0.3053401709, 0.238835305, 0.3186243176, 0.0603677779, 0.0040047746, -0.3794294894, -0.1885214597, 0.3982866406, 0.005179815, 0.2424625158, 0.153235063, -0.0953564718, -0.0996728688, 0.0158597622, 0.1401788145, 0.2382987738, 0.0758771151, -0.2070477307, -0.0434464738, -0.0409476422, -0.0247450657, 0.155598864, 0.3065350652, 0.2641776502, 0.0933472365, 0.1558889151, -0.0209618844, -0.2815460861, -0.2380039543, -0.286360085, 0.1189385876, -0.6182568073, 0.2991379201, -0.4743472338, 0.1188916266, 0.0353332609, -0.3410822153, -0.126299873, -0.3229712546, -0.3007417321, 0.2734273672, -0.1147492081, -0.1341668963, -0.266723603, 0.3151707053, -0.0232129246, -0.346346885, -0.2113420069, -0.0117184855, -0.1846483797, -0.0234057978, 0.387586683, 0.1092967391, 0.1544725895, -0.1289405376, 0.0473136902, 0.1418190449, -0.0863970518, 0.1482001096, -0.1994989514, 0.2889932394, 0.2154710591, 0.1969100535, -0.0978526026, -0.1516464502, 0.2886654437, 0.0957518443, -0.3427709043, 0.3241926134, -0.1354985088, 0.0278996974, -0.1492168307, -0.0291685648, 0.121954903, -0.4392543137, 0.5247157216, 0.2458686382, 0.0581383929, -0.0170071665, 0.0242614932, 0.1799213737, 0.1687068045, 0.0159116127, -0.110746339, -0.15468584, 0.2326568812, -0.1608324498, -0.2501764894, 0.0764543191, -0.196551621, 0.1685904264, -0.0865129828, -0.3909763098, 0.0259429365, 0.0707199052, 0.1136566997, -0.0444041491, -0.2952395678, 0.0588247776, -0.0127502903, 0.0851904005, -0.1855716556, -0.2022254318, 0.1206319779, -0.0438128933, 0.0216034465, 0.0565147735, 0.7252904177, -0.0942961052, 0.180775404, 0.3117998242, -0.0382719375, 0.3949744701, -0.0264436193, 0.10300906, -0.4057939649, -0.1191257089, -0.3808177412, -0.0971131623, 0.07863684, 0.2193031013, 0.1096422523, -0.2879480124, -0.2405597568, -0.062283501, -0.4587050676, -0.3489449024, 0.133379519, -0.3543263674, -0.3382494152, 0.0320333317, 0.220564276, -0.0587302148, -0.0581018478, -0.0303625353, 0.4014142752, 0.2062798738, -0.0455005467, -0.2057113945, 0.0343680494, -0.3544530272, 0.3606955409, 0.0746532604, 0.36575073, 0.1974584162, -0.0280978084, 0.24474895, -0.2093996555, 0.4490721226, -0.1200108901, 0.0227277894, 0.0280959383, -0.1236657128, -0.6418691278, 0.1011511907, -0.1271311045, 0.2907666862, 0.2359819859, 0.2095476389, -0.4572592378, -0.2961421609, 0.1018687263, -0.1504392326, -0.1058705002, -0.106476225, -0.364038527, -0.2923772633, -0.2448295057, -0.1525725126, 0.0274701267, 0.2387111634, 0.087436825, -0.0987063795, -0.2664908469, -0.0690850616, 0.1225850955, 0.2164162099, 0.188087821, -0.2173923403, 0.0409797728, 0.0061118063, 0.3643344045, 0.395925492, 0.8496598601, 0.2561549842, -0.5346412063, 0.2092525661, -0.0245478228, 0.0420458764, 0.1865960658, 0.0230351649, 0.0835100114, 0.2850646377, 0.1448801458, -0.2175284624, -0.1765888184, 0.4804260731, -0.1738850474, -0.4621182978, -0.346393019, 0.4906899929, -0.1168820709, 0.0213297009, 0.2263395935, 0.2678976655, -0.1467051208, 0.7589287758, 0.0028833896, 0.7930403948, 0.1487364471, 0.1980529577, 0.7221455574, -0.5317469835, 0.4004823565, -0.0322305188, -0.0708862692, -0.2383534312, 0.5987789035, -0.1820172966, -0.151582852, -0.0095944107, 0.1925091147, -0.1030687466, 0.022575099, -0.3046782017, -0.016252121, 0.0787489042, 0.1285974383, -0.1141057462, -0.2810204625, -0.7139284611, -0.0139219128, -0.1206339598, 0.0340204909, -0.0035200007, -0.3064058125, -0.2558884323, -0.1888528317, -0.3464410901, 0.2579854727, 0.1630949676, -0.0184748769, 0.2230376005, -0.0496140867, 0.0946821421, -0.0524792336, 0.2925048172, -0.0933385789, -0.175445959, 0.1870105714, -0.1364037097, -0.0991373733, -0.0924461409, -0.0160646476, 0.5005757213, -0.0768828839, -0.1589545012, -0.2050988227, -0.2627160549, -0.5380350351, 0.2646919489, 0.4163653851, -0.3466081321, -0.240975976, -0.3931143582, -0.0475280583, 0.2723070979, -0.157066986, 0.0498476923, 0.2624672949, 0.1839359254, -0.0674589872, 0.2908508182, -0.3609032929, -0.1087288186, 0.3222657442, -0.0353099406, 0.0564954802, 0.5033450723, 0.2862296104, -0.217995435, -0.190461576, 0.2036406696, 0.8105611801, -0.626924634, 0.3065254688, -0.1730779856, -0.0535797477, -0.0472417325, 0.3028692007, 0.0699546486, -0.0232217349, 0.0566214174, -0.6213236451, -0.106200859, 0.4122470915, -0.1543132663, -0.021445347, 0.1351436973, -0.0169346649, -0.2405517399, -0.1720613986, -0.1729354411, 0.2192623615, -0.1576297581, -0.2045776397, -0.3086435497, 0.0632046759, 0.5788149834, 0.0068064481, 0.0865862295, 0.0817478448, -0.1436325908, -0.0885986164, -0.3009875119, 0.2072960585, 0.1043564677, -0.092710495, -0.078460291, 0.0101222843, -0.179023698, -0.135748595, 0.2507113218, 0.2667546272, -0.0477174707, -0.1331558526, 0.0813499242, 0.1524970829, -0.2447348982, 0.1382136047, -0.1590838432, 0.5401739478, 0.0858469307, -0.0476724245, -0.229151994, 0.1443035603, -0.2354619354, 0.2881272435, 0.2030766606, 0.2164714336, 0.4846534133, -0.4272494316, 0.0382832065, -0.2070931345, 0.0976075903, 0.3163168728, -0.2574582696, 0.0504575297, -0.1622020751, 0.0547885001, 0.0131523088, 0.0525108464, 0.1396278739, -0.0389825925, 0.0427070111, 0.3336886466, -0.138818875, 0.0428314209, -0.2334403098, 0.0458438545, 0.4255112112, 0.1589772254, 0.0510137565, 0.2905638516, -0.2684135437, 0.0809299126, 0.0158536676, 0.140757814, 0.2980790138, -0.0071150232, 0.0680875033, 0.0217252504, 0.1491240412, 0.2423136532, 0.0005274862, -0.4159059525, -0.0420817062, 0.3158296943, -0.0500426628, 0.3092296124, 0.1688644588, 0.333373189, -0.1892768741, 0.096985653, -0.4036625028, -0.1670228541, -0.0538140796, -0.2211986482, -0.5511415005, -0.2069524229, -0.371526897, -0.1109172106, -0.1350992173, -0.0615068413, -0.2741712332, 0.1886226386, 0.0503453612, -0.3303633928, 0.0814074799, -0.1955389977, 0.2041692287, -0.1523470879, 0.2263704985, -0.0093276575, 0.0362450145, 0.3188802898, 0.0760151669, 0.5093175173, 0.2283808589, -0.0963352621, -0.2487949431, -0.0241236761, -0.1421785057, 0.0403780043, 0.3468790948, 0.1857324839, 0.0395644531, 0.2420820743, 0.1516417265, -0.1133230925, 0.3565615714, 0.0022538076, 0.2634563744, -0.09924867, 0.5178785324, -0.4676589966, 0.1000933647, -0.1672314554, -0.3525447249, -0.1460464746, -0.3188263774, -0.1780049205, -0.1945901662, -0.0235637687, -0.0586972758, 0.0232758783, -0.0869167894, 0.4179296494, 0.3949700296, 0.1819571406, 0.153183952, -0.033079505, -0.2972991467, 0.2351237833, -0.131894961, 0.0307581648, 0.2157546431, 0.2165424526, 0.0767686144, 0.1726403832, 0.0412502028, 0.0387749895, 0.0111104548, 0.2165729254, -0.2433101982, -0.0609746836, 0.2753144801, 0.0173525382, -0.1357741803, -0.2809371352, -0.0888740718, -0.0585751832, -0.0598330349, 0.1518502682, -0.0595388487, -0.0654161796, -0.1698690057, 0.4425503612, 0.1324362904, 0.2011089176, -0.0575091057, -0.4760099947, -0.268943727, -0.4144521952, -0.1308503598, 0.3707852364, -0.1804432422, 0.6111345887, 0.0342232883, 0.1484047174, -0.0185196493, -0.0448634587, -0.1875070781, -0.098218292, -0.5277870893, 0.2939002514, -0.3957846463, 0.1447349191, -0.1315568388, 0.1057320237, 0.1239856631, 0.1936318278, -0.0772356018, -0.2317141593, 0.4982316196, -0.2602387369, -0.3133599758, 0.272792846, 0.088914454, -0.1325901002, -0.2973820269, -0.6104024649, 0.0109965205, 0.2189057022, 0.0305513516, -0.2178262472, -0.1124499813, -0.1242607832, -0.0546768978, -0.1363346577, 0.2223986089, 0.0136692971, -0.1138070002, 0.1441098899, -0.1869694889 ]
https://github.com/huggingface/datasets/issues/2788
How to sample every file in a list of files making up a split in a dataset when loading?
Hi ! This is not possible just with `load_dataset`. You can do something like this instead: ```python seed=42 data_files_dict = { "train": [train_file1, train_file2], "test": [test_file1, test_file2], "val": [val_file1, val_file2] } dataset = datasets.load_dataset( "csv", data_files=data_files_dict, ).shuffle(seed=seed) sample_dataset = {splitname: split.select(range(8)) for splitname, split in dataset.items()} ``` Another alternative is loading each file separately with `split="train[:8]"` and then use `concatenate_datasets` to merge the sample of each file.
I am loading a dataset with multiple train, test, and validation files like this: ``` data_files_dict = { "train": [train_file1, train_file2], "test": [test_file1, test_file2], "val": [val_file1, val_file2] } dataset = datasets.load_dataset( "csv", data_files=data_files_dict, split=['train[:8]', 'test[:8]', 'val[:8]'] ) ``` However, this only selects the first 8 rows from train_file1, test_file1, val_file1, since they are the first files in the lists. I'm trying to formulate a split argument that can sample from each file specified in my list of files that make up each split. Is this type of splitting supported? If so, how can I do it?
67
How to sample every file in a list of files making up a split in a dataset when loading? I am loading a dataset with multiple train, test, and validation files like this: ``` data_files_dict = { "train": [train_file1, train_file2], "test": [test_file1, test_file2], "val": [val_file1, val_file2] } dataset = datasets.load_dataset( "csv", data_files=data_files_dict, split=['train[:8]', 'test[:8]', 'val[:8]'] ) ``` However, this only selects the first 8 rows from train_file1, test_file1, val_file1, since they are the first files in the lists. I'm trying to formulate a split argument that can sample from each file specified in my list of files that make up each split. Is this type of splitting supported? If so, how can I do it? Hi ! This is not possible just with `load_dataset`. You can do something like this instead: ```python seed=42 data_files_dict = { "train": [train_file1, train_file2], "test": [test_file1, test_file2], "val": [val_file1, val_file2] } dataset = datasets.load_dataset( "csv", data_files=data_files_dict, ).shuffle(seed=seed) sample_dataset = {splitname: split.select(range(8)) for splitname, split in dataset.items()} ``` Another alternative is loading each file separately with `split="train[:8]"` and then use `concatenate_datasets` to merge the sample of each file.
[ -0.3138791621, -0.1796859056, -0.1142877936, 0.1454610974, -0.0157867279, 0.3574571609, 0.4449555874, 0.4948764741, 0.5567873716, 0.0195081681, -0.074514553, 0.198577404, 0.0281435736, 0.1434572339, 0.1276394427, -0.3237333, -0.0534548499, 0.1187503934, 0.2719000578, 0.010106951, -0.1883505583, 0.0918607041, -0.4363408685, -0.3013268709, -0.1955497414, 0.0335025713, -0.3832266331, 0.0586888194, 0.0298340581, -0.2322060466, 0.0476164445, 0.2474762946, 0.0852339938, 0.011206802, -0.0001181748, 0.0020298585, 0.1929556727, -0.3049510717, -0.2270888388, -0.3292898536, -0.0461666919, 0.0632800236, -0.0771350488, -0.3171571493, -0.1542428732, -0.1601597369, -0.0316537842, -0.1385714114, 0.4643653631, 0.1826565862, 0.0203301907, 0.1105128527, -0.3269142509, -0.1088883579, 0.3746607602, 0.3522200286, 0.2187460959, 0.0444286205, 0.4358346462, -0.0470805354, -0.1141450703, -0.1930228174, -0.0340736359, 0.2639245987, 0.1277290881, 0.1246674657, -0.3276379704, -0.3322710991, -0.1635399163, 0.4533858001, 0.2487739474, 0.0091193467, -0.4796766937, -0.6428299546, 0.0095055029, -0.3940190375, -0.1848473698, 0.4530909657, -0.3995966911, 0.095216766, 0.1818252653, -0.0572030023, 0.0219686255, 0.2663127482, 0.0569327921, 0.1254361868, -0.0676552653, 0.0810489953, 0.7294518352, 0.1416414678, -0.0421179384, -0.2076789737, -0.079792127, 0.1188276336, -0.4636724591, -0.1048143134, -0.2771568596, -0.0089043304, 0.189295426, 0.3294671476, 0.0680098534, -0.2414479703, 0.1494100243, 0.1700343341, 0.6460340023, -0.2381348461, -0.0347361751, 0.1712912321, -0.1695316136, 0.0176249146, 0.0331933573, -0.0454389229, -0.0381040797, -0.1814243793, -0.328294605, 0.1058129072, -0.1274300665, 0.0860393196, -0.1948266625, -0.4890435934, -0.2440892607, -0.5034526587, 0.0762868077, 0.3599083722, 0.2342461348, -0.0838763416, -0.1735523343, 0.4428139031, -0.0889259726, -0.2747074962, -0.1148846745, 0.2223399431, -0.1089815348, 0.0057191178, 0.1465918422, -0.1884320974, 0.2893140316, -0.0865546092, 0.2269656509, -0.23060745, 0.3035946488, -0.1387255043, 0.1588562876, 0.1340750456, 0.295013845, -0.0119693279, 0.2660683692, -0.0398498699, -0.1329246759, 0.2388461083, -0.2571506202, -0.1912857294, 0.2006837577, -0.022559125, 0.010537982, 0.1674258113, -0.3620513678, 0.2915108204, 0.1189146638, 0.135935843, -0.1135268509, -0.1590327322, 0.0445090383, -0.0197432097, 0.1557988524, 0.3986886144, -0.2346586585, -0.1234913245, -0.2077336013, -0.1717360318, 0.3626839221, 0.0350854397, -0.3634832501, 0.2414545417, -0.3660300374, 0.7993334532, 0.3345083296, 0.133874163, -0.0137387458, 0.4271205664, 0.0220966339, 0.0380517393, 0.273101151, 0.0632518679, 0.5865425467, -0.0518565066, 0.0598007031, 0.5053106546, -0.2618049383, 0.0240477622, 0.1377213448, -0.051343739, 0.1542180777, 0.3551738858, -0.084614262, 0.167806983, -0.0063038729, 0.2048269361, 0.5283380151, -0.2432682365, -0.0367063582, 0.0304862969, -0.0026642578, 0.2762806714, 0.0030847639, -0.2095146775, -0.1535416096, 0.1135423779, 0.2787371278, -0.5721081495, 0.324929893, -0.3869332075, -0.1224473268, -0.0005189404, -0.1241058111, 0.1367530078, 0.0101975948, 0.1256723106, -0.1288658381, -0.5308007598, -0.34295398, -0.0541973412, -0.2381862402, 0.1940636933, -0.2353836745, 0.3334450424, 0.2488536686, 0.0130883306, 0.183572486, -0.0925865918, -0.0169581659, -0.3653473556, 0.0474872068, 0.2036663443, 0.8958286643, -0.0555035174, 0.1376837492, -0.2449236214, 0.0282207485, 0.0709379762, -0.1368807852, -0.1341380328, -0.0789423808, -0.1361994892, -0.207425192, 0.5919695497, -0.5605757833, 0.4632731974, -0.1452793181, 0.254475385, 0.1349827945, -0.0727638751, -0.2149719298, -0.0677862614, 0.0911613107, -0.1049717814, 0.3877755404, 0.0620675981, -0.2700071931, -0.1236136854, 0.2264411002, -0.2351537645, -0.0215932205, 0.1420032084, 0.0250723399, 0.076935634, 0.1343012154, 0.2210198045, 0.2190333456, 0.1367043853, 0.2197373062, -0.237344563, 0.1761603802, -0.1678718179, 0.0904824138, 0.2804896832, -0.1848636419, 0.2034764886, -0.5162172318, -0.2349597067, -0.1231030971, 0.0242491886, 0.2009837478, -0.050039053, -0.1504888088, 0.0563307926, -0.1548141241, 0.0014889613, -0.1733239144, -0.2208729982, 0.1084053367, -0.0190756731, -0.2101278454, 0.1752094477, -0.0149668679, -0.0467513166, -0.0501353219, 0.3053676486, -0.04543823, -0.1721085012, 0.0894082487, -0.1400020719, 0.1235913709, 0.0462603085, 0.5049256086, 0.5502213836, 0.137411356, 0.0413787365, -0.2163084298, 0.2009606063, 0.365994513, 0.0553422756, -0.1022308618, 0.1487472653, 0.0951431245, 0.3933899105, -0.0603432618, -0.3966609836, -0.291503489, 0.4472601414, -0.0562158674, -0.1207681, 0.1564860046, 0.0250614583, -0.1724923402, -0.2683089674, -0.334333986, -0.170334965, 0.1064801514, 0.1056604609, 0.0908490866, -0.0613078177, 0.0446209125, -0.1298355162, -0.2531605959, -0.3052233458, -0.0670010224, -0.1719998717, 0.0288534909, -0.0586906374, -0.1425166875, 0.0911052302, -0.1706535816, -0.1698977053, 0.3151326478, 0.0565422028, -0.1190058589, 0.0536040068, -0.0231912062, -0.1919584423, -0.0447361469, 0.0237634797, -0.2283339351, 0.1782978177, -0.1228149533, 0.0768631846, 0.3081641793, -0.1329181194, 0.2364633828, 0.2309129834, 0.0722261071, 0.0287412927, 0.9346374869, 0.4259985387, 0.1337540448, 0.1054861099, -0.0050865132, -0.1113101393, 0.0277694725, -0.2091871053, 0.0696027875, -0.0040835664, -0.2223214805, 0.2278603464, -0.0533333421, -0.0510844961, -0.0543309562, 0.483043164, -0.3878195882, -0.4113048017, 0.251418829, -0.1339633614, 0.1430373639, -0.0634637475, 0.1352057159, 0.0034179464, 0.0518518798, -0.323864013, 0.3723504543, 0.6840327382, 0.0787974, -0.3335604668, -0.203433007, 0.1091623977, -0.1188940108, 0.2429914922, 0.2360233665, 0.0331167281, -0.1723503023, 0.1852571964, 0.2139883935, 1.0035452843, 0.0698847398, -0.0713154376, 0.175141722, -0.1078399047, 0.2238146663, -0.0718890503, -0.1749576628, 0.1892582327, 0.0739918202, 0.1319838464, -0.4061220288, -0.2338040471, -0.0051984023, 0.4461130202, -0.1055283323, -0.0611951463, 0.0108930171, 0.0180287883, -0.1926852465, 0.1312041581, 0.1845133454, 0.0162766352, -0.1188838854, -0.109298788, 0.0061729718, -0.2024416924, 0.1696754843, 0.1074822471, 0.4021859169, 0.1191804707, 0.2199016511, 0.2652860284, -0.2765387893, 0.2222141474, 0.3064244986, -0.3874234557, -0.3323570788, -0.1303473562, -0.502256453, 0.3288091719, 0.1313910931, -0.1304758489, 0.069561325, -0.1969646662, -0.1734100282, -0.1204662919, 0.1301077455, 0.28518188, -0.1736649871, -0.153052479, -0.6710410118, 0.3475162387, 0.0427143499, -0.0904699042, 0.5216257572, -0.3409268856, -0.1521461457, 0.4326776564, -0.0926360339, 0.599163413, -0.1708900928, 0.0016941205, 0.0064228866, 0.5374950767, 0.1572348177, -0.0105161816, 0.0857560784, -0.2693864107, -0.4592579901, -0.2316502631, -0.2514383793, 0.0591210723, 0.5377879143, -0.0869728848, 0.0531823114, -0.2273862362, -0.1006666124, -0.1539774984, -0.0106275305, -0.0455472581, -0.1159326285, -0.01642178, -0.0479989685, -0.1417924166, 0.1763979048, 0.1815108061, -0.1568816304, 0.0286268145, -0.0045377165, -0.3593708277, -0.0207994953, -0.0406894535, -0.1651331037, 0.017069893, -0.0868792757, 0.0052187145, 0.2841290236, -0.2209650129, -0.0513922982, 0.1355524212, 0.1300028563, -0.1193237603, -0.0126100779, -0.3487888873, -0.0778236613, 0.3172208369, 0.1575840116, -0.1301661283, 0.1060091704, -0.0572709031, -0.417553544, -0.1477215886, 0.2041468322, 0.2804665267, -0.2656110823, -0.537627995, 0.1008567512, -0.0632013828, 0.0431192815, 0.0061471234, 0.1896750629, -0.2225388139, 0.3468295932, -0.0925848782, -0.0056064129, 0.0320768356, -0.1889267117, 0.0692632645, -0.1685345769, 0.3529903293, 0.0854192525, -0.0536855161, -0.2866612077, 0.0814153403, -0.1341733336, -0.0582077429, 0.2703178525, -0.0604629703, 0.3530201912, 0.0367138498, 0.0682968646, 0.215334937, 0.1412825286, -0.1821474433, -0.6045979857, 0.2448759079, 0.1488198489, 0.090441376, 0.3770523667, -0.0822675899, 0.2668077946, -0.10993357, 0.2634678185, -0.1126063466, 0.0930372104, 0.2155742943, 0.1863117069, 0.1346306652, 0.1324450523, -0.0327640772, 0.074072212, -0.0101238377, 0.1042904854, 0.0286126733, -0.1058969051, -0.0680628121, 0.1173505634, 0.1163088679, 0.1006414741, 0.1008266658, 0.0226470158, -0.2740135789, -0.3027725518, 0.1793278158, -0.2539675832, 0.0554063991, 0.1510188282, 0.7681527138, 0.0637186319, -0.3797895312, 0.0452202186, -0.1893555671, 0.1555939913, 0.0956038535, 0.2181664258, 0.1093076766, -0.0047511235, -0.4768042266, -0.0098436922, 0.2439011037, -0.1089684814, -0.0905508697, 0.0835219026, 0.2070000917, 0.0270670392, 0.4364593923, 0.7404635549, 0.1301481873, 0.484880805, 0.2463206649, 0.1492878497, -0.1434833109, 0.0682021379, 0.1512392461, 0.1214119792, 0.002037473, 0.2861410081, -0.015208438, 0.0409549326, -0.2007863224, -0.2533939183, 0.2422307432, 0.2562246919, 0.4884397984, 0.9639603496, 0.0724737868, 0.0361188613, -0.1169641167, 0.132202968, 0.3788405359, 0.2384467721, -0.4292249084, 0.5384774804, -0.0042346348, -0.162854597, -0.0874175876, -0.734213233, 0.2144222558, 0.3714235425, 0.1754190475, 0.1611477733, -0.0401278064, 0.7600803971, -0.3678725064, -0.175085485, -0.2595912814, 0.1456202418, 0.1086180359, -0.1780227423, -0.2276839614, -0.0662629306, -0.3687976003, -0.0719541833, 0.2731824517, -0.3108788729, -0.0655132234, 0.0593589805, 0.1460464746, -0.1520743519, -0.0059196013, -0.0339517742, -0.2421079129, -0.4008650184, -0.2064203173, -0.1082673669, 0.2427562028, 0.6257147193, -0.3303343356, 0.008357306, 0.0491571575, 0.0817204714, -0.2312256247, -0.3645609915, 0.0110463947, 0.0062823221, -0.0571065061, -0.1167687923, 0.0956983715, 0.5006062388, 0.0493136197, -0.0362400301, 0.1601580977, 0.1043371558, -0.1322453916, -0.4573703408, 0.3525463343, 0.0718609467, 0.0162156746, -0.2391442508, -0.291762352, -0.1211859882, -0.0244759116, -0.0647129118, -0.1321183145, 0.0504422821, 0.4550064504, 0.0464036427, -0.1049972475, -0.0872123763, -0.1087282225, 0.0174958296, -0.1154666692, -0.1533859521, -0.4683509469, -0.4039635062, -0.218105942, -0.1178191826, 0.1383765042, 0.2690054178, 0.0030820295, 0.2361745238, -0.1081131324, -0.0170294605, 0.189727813, 0.4029571116, -0.1841488481, -0.3247696459, -0.1478236318, 0.3181470931, -0.1806171536, -0.2607774138, -0.0513549559, 0.0818232596, -0.1259541512, -0.0365121663, -0.1497747004, 0.3844504654, 0.0456247218, -0.1752359271, -0.2018456012, 0.4326040149, 0.0438906699, 0.2329790592, -0.108843632, -0.0967775136, -0.2256961018, -0.0982258171, -0.0252843723, 0.5491033196, -0.1545087695, 0.018927576, -0.2223614454, 0.0939045697, 0.0328006074, -0.2733962238, -0.3613686264, 0.0466825292, -0.3458649516, 0.1328790486, 0.3630689979, 0.1326950788, -0.1692212969, -0.0482824445, -0.0207226202, -0.0508955754, 0.2685925364, -0.5031933188, -0.0445317887, -0.1722714901, 0.090200305, -0.127191484, 0.0717599541, 0.0037250966, -0.034826152, 0.4160355031, -0.1965290606, 0.2212660909, 0.0803875029, 0.3423400521, -0.0423951894, -0.1226455569, 0.000727715, 0.2510320544, -0.3887093663, 0.016232118, -0.2482429445 ]
https://github.com/huggingface/datasets/issues/2787
ConnectionError: Couldn't reach https://raw.githubusercontent.com
the bug code locate in : if data_args.task_name is not None: # Downloading and loading a dataset from the hub. datasets = load_dataset("glue", data_args.task_name, cache_dir=model_args.cache_dir)
Hello, I am trying to run run_glue.py and it gives me this error - Traceback (most recent call last): File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 546, in <module> main() File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 250, in main datasets = load_dataset("glue", data_args.task_name, cache_dir=model_args.cache_dir) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 718, in load_dataset use_auth_token=use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 320, in prepare_module local_path = cached_path(file_path, download_config=download_config) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 291, in cached_path use_auth_token=download_config.use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 623, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.7.0/datasets/glue/glue.py Trying to do python run_glue.py --model_name_or_path bert-base-cased --task_name mrpc --do_train --do_eval --max_seq_length 128 --per_device_train_batch_size 32 --learning_rate 2e-5 --num_train_epochs 3 --output_dir ./tmp/mrpc/ Is this something on my end? From what I can tell, this was re-fixeded by @fullyz a few months ago. Thank you!
25
ConnectionError: Couldn't reach https://raw.githubusercontent.com Hello, I am trying to run run_glue.py and it gives me this error - Traceback (most recent call last): File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 546, in <module> main() File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 250, in main datasets = load_dataset("glue", data_args.task_name, cache_dir=model_args.cache_dir) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 718, in load_dataset use_auth_token=use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 320, in prepare_module local_path = cached_path(file_path, download_config=download_config) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 291, in cached_path use_auth_token=download_config.use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 623, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.7.0/datasets/glue/glue.py Trying to do python run_glue.py --model_name_or_path bert-base-cased --task_name mrpc --do_train --do_eval --max_seq_length 128 --per_device_train_batch_size 32 --learning_rate 2e-5 --num_train_epochs 3 --output_dir ./tmp/mrpc/ Is this something on my end? From what I can tell, this was re-fixeded by @fullyz a few months ago. Thank you! the bug code locate in : if data_args.task_name is not None: # Downloading and loading a dataset from the hub. datasets = load_dataset("glue", data_args.task_name, cache_dir=model_args.cache_dir)
[ -0.2038710564, -0.1601336449, -0.0819258094, 0.0469019413, 0.2665439546, -0.0723189861, 0.1546959728, 0.3012445569, 0.1090680212, -0.0955980122, -0.1769393086, -0.1569310278, 0.0424282476, 0.009808816, 0.0353741236, -0.1757959127, -0.0955914408, -0.0462968722, -0.2514626682, 0.1877852827, -0.137935549, 0.1785492599, -0.0379737765, 0.2863893509, -0.177760303, -0.204493627, -0.0835382268, 0.2092448771, -0.1527039111, -0.2665782571, 0.4261866212, -0.1104122251, 0.1023880467, 0.4276521504, -0.0001111302, 0.2171021402, 0.4489408135, 0.0764486566, -0.1543841511, -0.3074430823, -0.0379912592, 0.0689299256, 0.2134659886, -0.2233346999, -0.1960692406, 0.3461776972, 0.0491150022, -0.1808766276, 0.4765048623, 0.2705875337, 0.248842001, 0.3377009928, 0.4446747899, -0.2152074873, 0.033220388, -0.2912708223, 0.0024016201, 0.6216800213, 0.1213354617, -0.2661051154, 0.2426154017, 0.20626463, -0.1433542967, -0.0120361513, 0.0456216075, -0.1558194607, 0.0829064772, -0.2861303985, 0.1528282464, 0.0686281621, -0.1418163478, -0.2192167789, -0.2591914237, -0.0737400651, -0.0262958035, -0.1296843141, 0.3319053352, 0.16109249, -0.2213144451, 0.227765739, -0.0923091918, -0.1391126066, -0.2099063396, 0.2466945052, 0.045454666, 0.2128362954, -0.2856880724, 0.2644904852, 0.4337483943, -0.0378362872, -0.285262078, 0.0696710348, 0.1732455045, 0.1920876503, -0.2251847684, 0.0389768183, -0.3048001826, 0.0818182826, 0.0858520269, 0.0211907215, -0.2492952794, -0.1187238768, 0.2668734789, 0.1873601973, -0.0882740021, 0.3309408426, 0.0141428215, 0.1095977649, 0.3459483683, 0.3594096899, -0.1148072258, 0.0365824476, -0.2656761408, -0.4656219184, -0.3594941795, 0.0650141314, 0.2611833811, 0.0185203999, -0.1696611345, 0.0698687881, -0.1784017384, 0.0330274925, 0.10208413, 0.5010195971, -0.2648852468, -0.3661015332, 0.0398671776, 0.293580085, 0.01801759, 0.0218923278, -0.1782661974, 0.1572603732, -0.2640622854, 0.0905432776, 0.0618727952, -0.2543199956, 0.2353597283, -0.2026714087, 0.0230698362, -0.1711887717, 0.12058606, -0.2005210817, -0.1581441164, 0.3388409317, 0.0797367245, 0.1804758012, 0.4291987419, -0.3894392252, -0.0596616194, -0.0774276406, -0.2149033993, -0.4968352914, 0.0238061715, 0.1501095891, -0.0620120727, 0.160438478, -0.0989377648, -0.2489253879, 0.202131629, 0.1912702918, -0.0140950419, -0.0100919241, 0.1434962302, -0.2804526091, 0.5142765641, 0.4544947147, 0.170897752, -0.1090474129, -0.0004227012, 0.0640208274, -0.0517982654, 0.2329597771, -0.0699734315, 0.1279718429, -0.375605166, 0.1551725268, 0.3715334237, -0.6533892751, -0.2841063142, 0.3186045885, -0.2741402388, -0.0540167689, 0.1668804884, -0.2321899235, -0.0450622477, 0.0239410587, 0.3900935054, 0.0740384981, 0.0700900257, -0.2052422166, -0.0241821706, -0.3783531487, 0.1280157566, 0.0518318936, 0.1179565489, 0.094103694, 0.0289572887, -0.2993080616, 0.2291132808, 0.1804355234, 0.0232354552, 0.2225604206, 0.0875865445, 0.1844518781, -0.0589135811, -0.102236852, -0.0982039124, 0.156927973, -0.139331758, 0.3022058904, -0.4215770364, 0.0652291104, -0.3841103315, 0.0516629815, -0.2309434116, -0.3040854633, 0.1636355817, -0.0034319498, 0.4423213005, 0.1496356726, -0.0936235338, 0.4874027669, -0.1470745802, 0.2835758328, -0.3597305417, 0.2300838232, -0.305755049, -0.1062678471, -0.156371057, 0.1661881208, 0.3513621986, -0.2343129218, -0.0265928488, 0.4231659472, -0.2641439438, 0.0973606333, 0.2657678723, 0.0963222459, 0.0315230712, -0.2190819234, 0.025363775, -0.1022460312, -0.0166736916, 0.0638583153, 0.637924552, 0.0479975268, 0.1513414979, 0.7245128155, 0.1906801462, 0.2567311227, 0.1417644024, -0.01721742, -0.2446908057, 0.0072809309, 0.2052773237, 0.0509164929, 0.4524140954, -0.326538831, 0.1677903086, -0.2114031464, 0.1441139132, -0.0354801901, 0.2344904393, 0.1491602659, -0.3617245555, 0.2157289833, -0.1119083911, 0.3587545753, 0.3501404822, 0.0897395462, -0.0167159047, 0.2718504369, -0.1022962108, -0.0745456293, 0.3431276083, 0.0640020669, 0.0710159242, -0.1801295877, -0.0368258543, -0.1345123351, -0.1243023723, -0.2394788563, -0.197758019, 0.1469753534, -0.2880879343, 0.1693797708, -0.114418149, -0.3013061881, -0.1543431282, -0.346041441, -0.4186740518, -0.240993917, -0.3461465538, 0.0472727939, 0.0670876652, 0.275613904, 0.1089548692, 0.0105082393, -0.0052672252, -0.1842103302, -0.0347122848, -0.1745301485, -0.1391939521, 0.0206359103, -0.0188449584, -0.2574252784, 0.277122736, -0.1947548538, -0.1127355471, 0.047237061, -0.2349190414, 0.0479724444, -0.0904432535, 0.1711954772, 0.3285542727, 0.3805792332, 0.1841483563, -0.3997780979, 0.5727687478, 0.0603623316, 0.1144241542, -0.1596369743, 0.108357504, 0.0168827325, 0.1767284572, 0.0041358806, -0.6324495673, -0.3507916927, 0.3485684395, -0.0266017728, 0.1511570215, 0.1762983799, 0.0596726723, 0.2824336588, -0.3841683865, 0.0531044751, -0.2631132007, -0.4323771, 0.1425148547, -0.2498615086, -0.2201368809, -0.0182344094, 0.190505743, 0.2702785432, -0.2122466266, -0.323749423, -0.3732513785, -0.2246034592, -0.0373768099, 0.1037435457, 0.1593065411, 0.2925695181, -0.113249667, -0.0387335233, 0.1269528419, -0.218767494, 0.2200422138, -0.1979697496, 0.1281966567, 0.2286251783, 0.3870924115, 0.0413933545, 0.5444859862, 0.2436489463, -0.0796829164, 0.3192813694, -0.1745527089, 0.2922650576, -0.037890628, -0.5508061647, -0.1344225705, -0.1521711797, 0.0345691815, 0.0439349748, 0.1621204466, 0.1705302, -0.5553135276, -0.2198975086, -0.1913197041, -0.2798692882, -0.0953922123, 0.0088964496, 0.1750697792, 0.0263880864, -0.1763010472, -0.2223934978, 0.193703413, 0.2320328057, 0.5205128193, -0.0382332392, 0.0609750487, -0.1520735174, -0.3924020529, -0.4625764489, 0.4786425233, 0.0343589969, 0.1926785558, -0.2925170064, -0.0163768232, -0.0434861146, 0.106082879, 0.7086897492, -0.0712130815, 0.2219748944, 0.0485515594, -0.0863397643, -0.3645549417, -0.0629989207, 0.0806384161, 0.2895559669, 0.5008001328, 0.4849516749, -0.3278110027, 0.096823141, 0.2301487476, -0.0766400397, -0.0308217704, -0.0739792436, -0.2963501513, -0.3656423688, -0.2678076327, 0.0053083226, 0.2438390106, 0.2123909295, 0.3308705389, -0.1466612816, 0.162321493, -0.2427600175, -0.0595810078, -0.0181472749, 0.0382342972, -0.2016497701, -0.0326517671, 0.1781361401, 0.3460512459, -0.3148243725, 0.4281019866, -0.2402161807, -0.2235836387, 0.1684295833, 0.3209205568, 0.4058355093, 0.3009512126, -0.1991279572, 0.160124898, 0.2677815855, 0.3612560332, -0.126201123, 0.1613377035, 0.450132668, 0.3550081849, -0.1951702833, -0.2329109907, 0.2528256774, -0.072912626, 0.0030148178, 0.2449310422, 0.4155494571, -0.2275766283, 0.1655351371, -0.2975749969, 1.1979169846, 0.0573298037, -0.0391715467, 0.1336843669, -0.2379469126, 0.5808714032, -0.156599775, 0.1131994054, -0.1766393483, -0.0917731524, 0.1218969151, -0.2235733867, 0.3505121469, -0.1980927885, -0.0589326546, 0.2558604777, -0.114153482, 0.3006230891, 0.2014454454, 0.2694348097, -0.0904740542, 0.0046209358, -0.2570403814, 0.1390345395, -0.0044747982, 0.4249933362, -0.0580963492, -0.1384334862, 0.0146737695, -0.3370609283, -0.3443264663, 0.1544763297, -0.7144248486, 0.1664406955, 0.0121588632, -0.0822371617, -0.1178106815, -0.0211145338, 0.3912245631, 0.1099305227, -0.2193232775, 0.1842374951, -0.0037479326, -0.3129951656, 0.1039162427, 0.1227222681, -0.0625953972, -0.269305706, -0.2032668889, 0.1417415738, -0.1730961353, -0.4226959944, 0.2038718015, -0.1461983919, 0.1515295655, -0.1836432964, -0.0226266198, -0.1612542868, 0.0242264792, -0.1469756365, 0.1121705323, -0.0693805292, -0.2479230762, -0.108597666, 0.0223694798, -0.3606719971, 0.0174630955, 0.4281621277, -0.1445813775, 0.0723204464, 0.4555253386, 0.124740012, -0.1317320466, -0.1284465045, -0.2199525535, 0.0430561267, -0.4091937542, -0.0014768988, -0.0063630529, -0.1436575353, -0.2302158475, -0.0912812948, 0.3861814141, 0.2269378006, -0.0249442831, -0.5732637644, -0.1236653477, 0.1283734888, -0.1113198102, -0.0436676368, 0.1352206171, 0.292149961, 0.0813925639, 0.0772791058, -0.2949265242, -0.0582201369, -0.1980379224, -0.090982601, 0.4604613781, -0.4231758714, 0.5564395785, 0.2472602576, 0.1833635569, 0.0185602047, -0.176792711, -0.1913489699, -0.0861811489, 0.1239021122, -0.1045507118, -0.2903294265, 0.0198581852, -0.3376127481, 0.0041405205, -0.0067031793, 0.0077223927, 0.0418778658, 0.0665357262, -0.2817330956, -0.0320660509, -0.0895535275, -0.1053849682, 0.1841526031, -0.1359490752, 0.1784513146, 0.0287580267, -0.0061409585, -0.2754326761, -0.1757724583, -0.2360017747, -0.0797953978, 0.0297372248, 0.1081589907, 0.3297696114, -0.194286406, -0.2923170924, -0.1087820828, 0.4173105955, -0.0037686359, -0.1419618428, 0.0590192154, 0.169080779, 0.1616690159, -0.131153658, 0.0745704398, 0.1629067808, -0.1565767825, 0.1184272766, 0.2068682313, -0.023703143, 0.1638731509, 0.0392772257, 0.0193123966, 0.8280624747, 0.213753432, 0.0845068917, 0.1391801834, 0.0415812358, -0.0628209114, 0.1529559493, 0.0035152938, 0.2465288341, -0.0891741961, -0.3549361527, -0.061476782, -0.059323363, -0.0681365132, 0.2297048867, -0.0699740201, 0.0251146797, 0.1838396788, -0.0988478959, -0.131956473, -0.4080093205, 0.6134055853, -0.4409067631, -0.0357084684, -0.1996200085, 0.3630473614, 0.033147376, -0.1725617349, 0.1452640444, -0.1420483887, -0.2319661081, -0.3037568331, 0.0896622837, -0.3973188996, 0.3674947023, -0.0679670274, 0.0307095014, -0.0729466751, -0.3076353371, 0.1328383237, 0.2419954687, -0.2333101183, 0.3818814754, 0.2886332273, -0.0376284085, -0.1605474353, 0.4000949562, 0.6762163639, 0.2699616551, -0.2351972014, 0.2674935758, 0.0332835913, -0.0528571829, -0.0259345099, -0.005995376, 0.28129071, -0.0034649195, 0.2339332402, 0.2336764783, -0.2260976732, 0.05287477, -0.1916486919, 0.3153737485, -0.0148680136, 0.4126878083, -0.3227870166, -0.1426356137, -0.3223922849, 0.1364286244, -0.8104320765, 0.1720469296, 0.2672681808, -0.4068029523, 0.0215154476, -0.1731273085, 0.080315344, -0.0752658248, 0.7511890531, 0.2013045251, 0.3521664739, -0.4966929257, -0.3168991208, -0.2904432416, 0.2075127214, -0.1204556376, -0.1377063692, -0.0594684854, -0.0786987841, -0.1366241872, 0.1496260911, 0.1224858761, 0.1239469498, -0.2708907723, -0.1634464562, -0.016865842, 0.0420121886, -0.0634033382, 0.1023462489, 0.2733125687, -0.2260947824, 0.2341931015, -0.0447946563, 0.0383968949, 0.2165071666, -0.0195570812, 0.1787250489, -0.3686761558, 0.3712459803, 0.1257681996, 0.347453475, 0.1640769243, -0.057671994, -0.1508484781, -0.2002636194, -0.0525050908, 0.1181121916, -0.0094584171, 0.0054065362, -0.2345673442, -0.2379545271, -0.5355013609, 0.1884406954, 0.032456696, -0.0615439489, 0.0410017744, -0.1977433711, 0.1453064829, 0.1729566306, 0.2607688308, 0.043768879, -0.0029308088, 0.1317532361, -0.3068506718, -0.2666340172, 0.6317306757, -0.4022062421, -0.2421782762, 0.0718518645, 0.3609126806, 0.1383721381, 0.1080272496, -0.4578808248, 0.0367778391, 0.3818689883, 0.3051512241, -0.2807103395, 0.2636129856, -0.2206345648, 0.075097844, 0.1570174992, 0.1133458018, -0.1142306775, -0.3479039967, -0.0901178941, -0.1272866428 ]
https://github.com/huggingface/datasets/issues/2787
ConnectionError: Couldn't reach https://raw.githubusercontent.com
Hi @jinec, From time to time we get this kind of `ConnectionError` coming from the github.com website: https://raw.githubusercontent.com Normally, it should work if you wait a little and then retry. Could you please confirm if the problem persists?
Hello, I am trying to run run_glue.py and it gives me this error - Traceback (most recent call last): File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 546, in <module> main() File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 250, in main datasets = load_dataset("glue", data_args.task_name, cache_dir=model_args.cache_dir) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 718, in load_dataset use_auth_token=use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 320, in prepare_module local_path = cached_path(file_path, download_config=download_config) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 291, in cached_path use_auth_token=download_config.use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 623, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.7.0/datasets/glue/glue.py Trying to do python run_glue.py --model_name_or_path bert-base-cased --task_name mrpc --do_train --do_eval --max_seq_length 128 --per_device_train_batch_size 32 --learning_rate 2e-5 --num_train_epochs 3 --output_dir ./tmp/mrpc/ Is this something on my end? From what I can tell, this was re-fixeded by @fullyz a few months ago. Thank you!
38
ConnectionError: Couldn't reach https://raw.githubusercontent.com Hello, I am trying to run run_glue.py and it gives me this error - Traceback (most recent call last): File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 546, in <module> main() File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 250, in main datasets = load_dataset("glue", data_args.task_name, cache_dir=model_args.cache_dir) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 718, in load_dataset use_auth_token=use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 320, in prepare_module local_path = cached_path(file_path, download_config=download_config) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 291, in cached_path use_auth_token=download_config.use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 623, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.7.0/datasets/glue/glue.py Trying to do python run_glue.py --model_name_or_path bert-base-cased --task_name mrpc --do_train --do_eval --max_seq_length 128 --per_device_train_batch_size 32 --learning_rate 2e-5 --num_train_epochs 3 --output_dir ./tmp/mrpc/ Is this something on my end? From what I can tell, this was re-fixeded by @fullyz a few months ago. Thank you! Hi @jinec, From time to time we get this kind of `ConnectionError` coming from the github.com website: https://raw.githubusercontent.com Normally, it should work if you wait a little and then retry. Could you please confirm if the problem persists?
[ -0.2038710564, -0.1601336449, -0.0819258094, 0.0469019413, 0.2665439546, -0.0723189861, 0.1546959728, 0.3012445569, 0.1090680212, -0.0955980122, -0.1769393086, -0.1569310278, 0.0424282476, 0.009808816, 0.0353741236, -0.1757959127, -0.0955914408, -0.0462968722, -0.2514626682, 0.1877852827, -0.137935549, 0.1785492599, -0.0379737765, 0.2863893509, -0.177760303, -0.204493627, -0.0835382268, 0.2092448771, -0.1527039111, -0.2665782571, 0.4261866212, -0.1104122251, 0.1023880467, 0.4276521504, -0.0001111302, 0.2171021402, 0.4489408135, 0.0764486566, -0.1543841511, -0.3074430823, -0.0379912592, 0.0689299256, 0.2134659886, -0.2233346999, -0.1960692406, 0.3461776972, 0.0491150022, -0.1808766276, 0.4765048623, 0.2705875337, 0.248842001, 0.3377009928, 0.4446747899, -0.2152074873, 0.033220388, -0.2912708223, 0.0024016201, 0.6216800213, 0.1213354617, -0.2661051154, 0.2426154017, 0.20626463, -0.1433542967, -0.0120361513, 0.0456216075, -0.1558194607, 0.0829064772, -0.2861303985, 0.1528282464, 0.0686281621, -0.1418163478, -0.2192167789, -0.2591914237, -0.0737400651, -0.0262958035, -0.1296843141, 0.3319053352, 0.16109249, -0.2213144451, 0.227765739, -0.0923091918, -0.1391126066, -0.2099063396, 0.2466945052, 0.045454666, 0.2128362954, -0.2856880724, 0.2644904852, 0.4337483943, -0.0378362872, -0.285262078, 0.0696710348, 0.1732455045, 0.1920876503, -0.2251847684, 0.0389768183, -0.3048001826, 0.0818182826, 0.0858520269, 0.0211907215, -0.2492952794, -0.1187238768, 0.2668734789, 0.1873601973, -0.0882740021, 0.3309408426, 0.0141428215, 0.1095977649, 0.3459483683, 0.3594096899, -0.1148072258, 0.0365824476, -0.2656761408, -0.4656219184, -0.3594941795, 0.0650141314, 0.2611833811, 0.0185203999, -0.1696611345, 0.0698687881, -0.1784017384, 0.0330274925, 0.10208413, 0.5010195971, -0.2648852468, -0.3661015332, 0.0398671776, 0.293580085, 0.01801759, 0.0218923278, -0.1782661974, 0.1572603732, -0.2640622854, 0.0905432776, 0.0618727952, -0.2543199956, 0.2353597283, -0.2026714087, 0.0230698362, -0.1711887717, 0.12058606, -0.2005210817, -0.1581441164, 0.3388409317, 0.0797367245, 0.1804758012, 0.4291987419, -0.3894392252, -0.0596616194, -0.0774276406, -0.2149033993, -0.4968352914, 0.0238061715, 0.1501095891, -0.0620120727, 0.160438478, -0.0989377648, -0.2489253879, 0.202131629, 0.1912702918, -0.0140950419, -0.0100919241, 0.1434962302, -0.2804526091, 0.5142765641, 0.4544947147, 0.170897752, -0.1090474129, -0.0004227012, 0.0640208274, -0.0517982654, 0.2329597771, -0.0699734315, 0.1279718429, -0.375605166, 0.1551725268, 0.3715334237, -0.6533892751, -0.2841063142, 0.3186045885, -0.2741402388, -0.0540167689, 0.1668804884, -0.2321899235, -0.0450622477, 0.0239410587, 0.3900935054, 0.0740384981, 0.0700900257, -0.2052422166, -0.0241821706, -0.3783531487, 0.1280157566, 0.0518318936, 0.1179565489, 0.094103694, 0.0289572887, -0.2993080616, 0.2291132808, 0.1804355234, 0.0232354552, 0.2225604206, 0.0875865445, 0.1844518781, -0.0589135811, -0.102236852, -0.0982039124, 0.156927973, -0.139331758, 0.3022058904, -0.4215770364, 0.0652291104, -0.3841103315, 0.0516629815, -0.2309434116, -0.3040854633, 0.1636355817, -0.0034319498, 0.4423213005, 0.1496356726, -0.0936235338, 0.4874027669, -0.1470745802, 0.2835758328, -0.3597305417, 0.2300838232, -0.305755049, -0.1062678471, -0.156371057, 0.1661881208, 0.3513621986, -0.2343129218, -0.0265928488, 0.4231659472, -0.2641439438, 0.0973606333, 0.2657678723, 0.0963222459, 0.0315230712, -0.2190819234, 0.025363775, -0.1022460312, -0.0166736916, 0.0638583153, 0.637924552, 0.0479975268, 0.1513414979, 0.7245128155, 0.1906801462, 0.2567311227, 0.1417644024, -0.01721742, -0.2446908057, 0.0072809309, 0.2052773237, 0.0509164929, 0.4524140954, -0.326538831, 0.1677903086, -0.2114031464, 0.1441139132, -0.0354801901, 0.2344904393, 0.1491602659, -0.3617245555, 0.2157289833, -0.1119083911, 0.3587545753, 0.3501404822, 0.0897395462, -0.0167159047, 0.2718504369, -0.1022962108, -0.0745456293, 0.3431276083, 0.0640020669, 0.0710159242, -0.1801295877, -0.0368258543, -0.1345123351, -0.1243023723, -0.2394788563, -0.197758019, 0.1469753534, -0.2880879343, 0.1693797708, -0.114418149, -0.3013061881, -0.1543431282, -0.346041441, -0.4186740518, -0.240993917, -0.3461465538, 0.0472727939, 0.0670876652, 0.275613904, 0.1089548692, 0.0105082393, -0.0052672252, -0.1842103302, -0.0347122848, -0.1745301485, -0.1391939521, 0.0206359103, -0.0188449584, -0.2574252784, 0.277122736, -0.1947548538, -0.1127355471, 0.047237061, -0.2349190414, 0.0479724444, -0.0904432535, 0.1711954772, 0.3285542727, 0.3805792332, 0.1841483563, -0.3997780979, 0.5727687478, 0.0603623316, 0.1144241542, -0.1596369743, 0.108357504, 0.0168827325, 0.1767284572, 0.0041358806, -0.6324495673, -0.3507916927, 0.3485684395, -0.0266017728, 0.1511570215, 0.1762983799, 0.0596726723, 0.2824336588, -0.3841683865, 0.0531044751, -0.2631132007, -0.4323771, 0.1425148547, -0.2498615086, -0.2201368809, -0.0182344094, 0.190505743, 0.2702785432, -0.2122466266, -0.323749423, -0.3732513785, -0.2246034592, -0.0373768099, 0.1037435457, 0.1593065411, 0.2925695181, -0.113249667, -0.0387335233, 0.1269528419, -0.218767494, 0.2200422138, -0.1979697496, 0.1281966567, 0.2286251783, 0.3870924115, 0.0413933545, 0.5444859862, 0.2436489463, -0.0796829164, 0.3192813694, -0.1745527089, 0.2922650576, -0.037890628, -0.5508061647, -0.1344225705, -0.1521711797, 0.0345691815, 0.0439349748, 0.1621204466, 0.1705302, -0.5553135276, -0.2198975086, -0.1913197041, -0.2798692882, -0.0953922123, 0.0088964496, 0.1750697792, 0.0263880864, -0.1763010472, -0.2223934978, 0.193703413, 0.2320328057, 0.5205128193, -0.0382332392, 0.0609750487, -0.1520735174, -0.3924020529, -0.4625764489, 0.4786425233, 0.0343589969, 0.1926785558, -0.2925170064, -0.0163768232, -0.0434861146, 0.106082879, 0.7086897492, -0.0712130815, 0.2219748944, 0.0485515594, -0.0863397643, -0.3645549417, -0.0629989207, 0.0806384161, 0.2895559669, 0.5008001328, 0.4849516749, -0.3278110027, 0.096823141, 0.2301487476, -0.0766400397, -0.0308217704, -0.0739792436, -0.2963501513, -0.3656423688, -0.2678076327, 0.0053083226, 0.2438390106, 0.2123909295, 0.3308705389, -0.1466612816, 0.162321493, -0.2427600175, -0.0595810078, -0.0181472749, 0.0382342972, -0.2016497701, -0.0326517671, 0.1781361401, 0.3460512459, -0.3148243725, 0.4281019866, -0.2402161807, -0.2235836387, 0.1684295833, 0.3209205568, 0.4058355093, 0.3009512126, -0.1991279572, 0.160124898, 0.2677815855, 0.3612560332, -0.126201123, 0.1613377035, 0.450132668, 0.3550081849, -0.1951702833, -0.2329109907, 0.2528256774, -0.072912626, 0.0030148178, 0.2449310422, 0.4155494571, -0.2275766283, 0.1655351371, -0.2975749969, 1.1979169846, 0.0573298037, -0.0391715467, 0.1336843669, -0.2379469126, 0.5808714032, -0.156599775, 0.1131994054, -0.1766393483, -0.0917731524, 0.1218969151, -0.2235733867, 0.3505121469, -0.1980927885, -0.0589326546, 0.2558604777, -0.114153482, 0.3006230891, 0.2014454454, 0.2694348097, -0.0904740542, 0.0046209358, -0.2570403814, 0.1390345395, -0.0044747982, 0.4249933362, -0.0580963492, -0.1384334862, 0.0146737695, -0.3370609283, -0.3443264663, 0.1544763297, -0.7144248486, 0.1664406955, 0.0121588632, -0.0822371617, -0.1178106815, -0.0211145338, 0.3912245631, 0.1099305227, -0.2193232775, 0.1842374951, -0.0037479326, -0.3129951656, 0.1039162427, 0.1227222681, -0.0625953972, -0.269305706, -0.2032668889, 0.1417415738, -0.1730961353, -0.4226959944, 0.2038718015, -0.1461983919, 0.1515295655, -0.1836432964, -0.0226266198, -0.1612542868, 0.0242264792, -0.1469756365, 0.1121705323, -0.0693805292, -0.2479230762, -0.108597666, 0.0223694798, -0.3606719971, 0.0174630955, 0.4281621277, -0.1445813775, 0.0723204464, 0.4555253386, 0.124740012, -0.1317320466, -0.1284465045, -0.2199525535, 0.0430561267, -0.4091937542, -0.0014768988, -0.0063630529, -0.1436575353, -0.2302158475, -0.0912812948, 0.3861814141, 0.2269378006, -0.0249442831, -0.5732637644, -0.1236653477, 0.1283734888, -0.1113198102, -0.0436676368, 0.1352206171, 0.292149961, 0.0813925639, 0.0772791058, -0.2949265242, -0.0582201369, -0.1980379224, -0.090982601, 0.4604613781, -0.4231758714, 0.5564395785, 0.2472602576, 0.1833635569, 0.0185602047, -0.176792711, -0.1913489699, -0.0861811489, 0.1239021122, -0.1045507118, -0.2903294265, 0.0198581852, -0.3376127481, 0.0041405205, -0.0067031793, 0.0077223927, 0.0418778658, 0.0665357262, -0.2817330956, -0.0320660509, -0.0895535275, -0.1053849682, 0.1841526031, -0.1359490752, 0.1784513146, 0.0287580267, -0.0061409585, -0.2754326761, -0.1757724583, -0.2360017747, -0.0797953978, 0.0297372248, 0.1081589907, 0.3297696114, -0.194286406, -0.2923170924, -0.1087820828, 0.4173105955, -0.0037686359, -0.1419618428, 0.0590192154, 0.169080779, 0.1616690159, -0.131153658, 0.0745704398, 0.1629067808, -0.1565767825, 0.1184272766, 0.2068682313, -0.023703143, 0.1638731509, 0.0392772257, 0.0193123966, 0.8280624747, 0.213753432, 0.0845068917, 0.1391801834, 0.0415812358, -0.0628209114, 0.1529559493, 0.0035152938, 0.2465288341, -0.0891741961, -0.3549361527, -0.061476782, -0.059323363, -0.0681365132, 0.2297048867, -0.0699740201, 0.0251146797, 0.1838396788, -0.0988478959, -0.131956473, -0.4080093205, 0.6134055853, -0.4409067631, -0.0357084684, -0.1996200085, 0.3630473614, 0.033147376, -0.1725617349, 0.1452640444, -0.1420483887, -0.2319661081, -0.3037568331, 0.0896622837, -0.3973188996, 0.3674947023, -0.0679670274, 0.0307095014, -0.0729466751, -0.3076353371, 0.1328383237, 0.2419954687, -0.2333101183, 0.3818814754, 0.2886332273, -0.0376284085, -0.1605474353, 0.4000949562, 0.6762163639, 0.2699616551, -0.2351972014, 0.2674935758, 0.0332835913, -0.0528571829, -0.0259345099, -0.005995376, 0.28129071, -0.0034649195, 0.2339332402, 0.2336764783, -0.2260976732, 0.05287477, -0.1916486919, 0.3153737485, -0.0148680136, 0.4126878083, -0.3227870166, -0.1426356137, -0.3223922849, 0.1364286244, -0.8104320765, 0.1720469296, 0.2672681808, -0.4068029523, 0.0215154476, -0.1731273085, 0.080315344, -0.0752658248, 0.7511890531, 0.2013045251, 0.3521664739, -0.4966929257, -0.3168991208, -0.2904432416, 0.2075127214, -0.1204556376, -0.1377063692, -0.0594684854, -0.0786987841, -0.1366241872, 0.1496260911, 0.1224858761, 0.1239469498, -0.2708907723, -0.1634464562, -0.016865842, 0.0420121886, -0.0634033382, 0.1023462489, 0.2733125687, -0.2260947824, 0.2341931015, -0.0447946563, 0.0383968949, 0.2165071666, -0.0195570812, 0.1787250489, -0.3686761558, 0.3712459803, 0.1257681996, 0.347453475, 0.1640769243, -0.057671994, -0.1508484781, -0.2002636194, -0.0525050908, 0.1181121916, -0.0094584171, 0.0054065362, -0.2345673442, -0.2379545271, -0.5355013609, 0.1884406954, 0.032456696, -0.0615439489, 0.0410017744, -0.1977433711, 0.1453064829, 0.1729566306, 0.2607688308, 0.043768879, -0.0029308088, 0.1317532361, -0.3068506718, -0.2666340172, 0.6317306757, -0.4022062421, -0.2421782762, 0.0718518645, 0.3609126806, 0.1383721381, 0.1080272496, -0.4578808248, 0.0367778391, 0.3818689883, 0.3051512241, -0.2807103395, 0.2636129856, -0.2206345648, 0.075097844, 0.1570174992, 0.1133458018, -0.1142306775, -0.3479039967, -0.0901178941, -0.1272866428 ]
https://github.com/huggingface/datasets/issues/2787
ConnectionError: Couldn't reach https://raw.githubusercontent.com
> I can access https://raw.githubusercontent.com/huggingface/datasets/1.7.0/datasets/glue/glue.py without problem... I can not access https://raw.githubusercontent.com/huggingface/datasets either, I am in China
Hello, I am trying to run run_glue.py and it gives me this error - Traceback (most recent call last): File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 546, in <module> main() File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 250, in main datasets = load_dataset("glue", data_args.task_name, cache_dir=model_args.cache_dir) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 718, in load_dataset use_auth_token=use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 320, in prepare_module local_path = cached_path(file_path, download_config=download_config) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 291, in cached_path use_auth_token=download_config.use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 623, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.7.0/datasets/glue/glue.py Trying to do python run_glue.py --model_name_or_path bert-base-cased --task_name mrpc --do_train --do_eval --max_seq_length 128 --per_device_train_batch_size 32 --learning_rate 2e-5 --num_train_epochs 3 --output_dir ./tmp/mrpc/ Is this something on my end? From what I can tell, this was re-fixeded by @fullyz a few months ago. Thank you!
17
ConnectionError: Couldn't reach https://raw.githubusercontent.com Hello, I am trying to run run_glue.py and it gives me this error - Traceback (most recent call last): File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 546, in <module> main() File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 250, in main datasets = load_dataset("glue", data_args.task_name, cache_dir=model_args.cache_dir) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 718, in load_dataset use_auth_token=use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 320, in prepare_module local_path = cached_path(file_path, download_config=download_config) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 291, in cached_path use_auth_token=download_config.use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 623, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.7.0/datasets/glue/glue.py Trying to do python run_glue.py --model_name_or_path bert-base-cased --task_name mrpc --do_train --do_eval --max_seq_length 128 --per_device_train_batch_size 32 --learning_rate 2e-5 --num_train_epochs 3 --output_dir ./tmp/mrpc/ Is this something on my end? From what I can tell, this was re-fixeded by @fullyz a few months ago. Thank you! > I can access https://raw.githubusercontent.com/huggingface/datasets/1.7.0/datasets/glue/glue.py without problem... I can not access https://raw.githubusercontent.com/huggingface/datasets either, I am in China
[ -0.2038710564, -0.1601336449, -0.0819258094, 0.0469019413, 0.2665439546, -0.0723189861, 0.1546959728, 0.3012445569, 0.1090680212, -0.0955980122, -0.1769393086, -0.1569310278, 0.0424282476, 0.009808816, 0.0353741236, -0.1757959127, -0.0955914408, -0.0462968722, -0.2514626682, 0.1877852827, -0.137935549, 0.1785492599, -0.0379737765, 0.2863893509, -0.177760303, -0.204493627, -0.0835382268, 0.2092448771, -0.1527039111, -0.2665782571, 0.4261866212, -0.1104122251, 0.1023880467, 0.4276521504, -0.0001111302, 0.2171021402, 0.4489408135, 0.0764486566, -0.1543841511, -0.3074430823, -0.0379912592, 0.0689299256, 0.2134659886, -0.2233346999, -0.1960692406, 0.3461776972, 0.0491150022, -0.1808766276, 0.4765048623, 0.2705875337, 0.248842001, 0.3377009928, 0.4446747899, -0.2152074873, 0.033220388, -0.2912708223, 0.0024016201, 0.6216800213, 0.1213354617, -0.2661051154, 0.2426154017, 0.20626463, -0.1433542967, -0.0120361513, 0.0456216075, -0.1558194607, 0.0829064772, -0.2861303985, 0.1528282464, 0.0686281621, -0.1418163478, -0.2192167789, -0.2591914237, -0.0737400651, -0.0262958035, -0.1296843141, 0.3319053352, 0.16109249, -0.2213144451, 0.227765739, -0.0923091918, -0.1391126066, -0.2099063396, 0.2466945052, 0.045454666, 0.2128362954, -0.2856880724, 0.2644904852, 0.4337483943, -0.0378362872, -0.285262078, 0.0696710348, 0.1732455045, 0.1920876503, -0.2251847684, 0.0389768183, -0.3048001826, 0.0818182826, 0.0858520269, 0.0211907215, -0.2492952794, -0.1187238768, 0.2668734789, 0.1873601973, -0.0882740021, 0.3309408426, 0.0141428215, 0.1095977649, 0.3459483683, 0.3594096899, -0.1148072258, 0.0365824476, -0.2656761408, -0.4656219184, -0.3594941795, 0.0650141314, 0.2611833811, 0.0185203999, -0.1696611345, 0.0698687881, -0.1784017384, 0.0330274925, 0.10208413, 0.5010195971, -0.2648852468, -0.3661015332, 0.0398671776, 0.293580085, 0.01801759, 0.0218923278, -0.1782661974, 0.1572603732, -0.2640622854, 0.0905432776, 0.0618727952, -0.2543199956, 0.2353597283, -0.2026714087, 0.0230698362, -0.1711887717, 0.12058606, -0.2005210817, -0.1581441164, 0.3388409317, 0.0797367245, 0.1804758012, 0.4291987419, -0.3894392252, -0.0596616194, -0.0774276406, -0.2149033993, -0.4968352914, 0.0238061715, 0.1501095891, -0.0620120727, 0.160438478, -0.0989377648, -0.2489253879, 0.202131629, 0.1912702918, -0.0140950419, -0.0100919241, 0.1434962302, -0.2804526091, 0.5142765641, 0.4544947147, 0.170897752, -0.1090474129, -0.0004227012, 0.0640208274, -0.0517982654, 0.2329597771, -0.0699734315, 0.1279718429, -0.375605166, 0.1551725268, 0.3715334237, -0.6533892751, -0.2841063142, 0.3186045885, -0.2741402388, -0.0540167689, 0.1668804884, -0.2321899235, -0.0450622477, 0.0239410587, 0.3900935054, 0.0740384981, 0.0700900257, -0.2052422166, -0.0241821706, -0.3783531487, 0.1280157566, 0.0518318936, 0.1179565489, 0.094103694, 0.0289572887, -0.2993080616, 0.2291132808, 0.1804355234, 0.0232354552, 0.2225604206, 0.0875865445, 0.1844518781, -0.0589135811, -0.102236852, -0.0982039124, 0.156927973, -0.139331758, 0.3022058904, -0.4215770364, 0.0652291104, -0.3841103315, 0.0516629815, -0.2309434116, -0.3040854633, 0.1636355817, -0.0034319498, 0.4423213005, 0.1496356726, -0.0936235338, 0.4874027669, -0.1470745802, 0.2835758328, -0.3597305417, 0.2300838232, -0.305755049, -0.1062678471, -0.156371057, 0.1661881208, 0.3513621986, -0.2343129218, -0.0265928488, 0.4231659472, -0.2641439438, 0.0973606333, 0.2657678723, 0.0963222459, 0.0315230712, -0.2190819234, 0.025363775, -0.1022460312, -0.0166736916, 0.0638583153, 0.637924552, 0.0479975268, 0.1513414979, 0.7245128155, 0.1906801462, 0.2567311227, 0.1417644024, -0.01721742, -0.2446908057, 0.0072809309, 0.2052773237, 0.0509164929, 0.4524140954, -0.326538831, 0.1677903086, -0.2114031464, 0.1441139132, -0.0354801901, 0.2344904393, 0.1491602659, -0.3617245555, 0.2157289833, -0.1119083911, 0.3587545753, 0.3501404822, 0.0897395462, -0.0167159047, 0.2718504369, -0.1022962108, -0.0745456293, 0.3431276083, 0.0640020669, 0.0710159242, -0.1801295877, -0.0368258543, -0.1345123351, -0.1243023723, -0.2394788563, -0.197758019, 0.1469753534, -0.2880879343, 0.1693797708, -0.114418149, -0.3013061881, -0.1543431282, -0.346041441, -0.4186740518, -0.240993917, -0.3461465538, 0.0472727939, 0.0670876652, 0.275613904, 0.1089548692, 0.0105082393, -0.0052672252, -0.1842103302, -0.0347122848, -0.1745301485, -0.1391939521, 0.0206359103, -0.0188449584, -0.2574252784, 0.277122736, -0.1947548538, -0.1127355471, 0.047237061, -0.2349190414, 0.0479724444, -0.0904432535, 0.1711954772, 0.3285542727, 0.3805792332, 0.1841483563, -0.3997780979, 0.5727687478, 0.0603623316, 0.1144241542, -0.1596369743, 0.108357504, 0.0168827325, 0.1767284572, 0.0041358806, -0.6324495673, -0.3507916927, 0.3485684395, -0.0266017728, 0.1511570215, 0.1762983799, 0.0596726723, 0.2824336588, -0.3841683865, 0.0531044751, -0.2631132007, -0.4323771, 0.1425148547, -0.2498615086, -0.2201368809, -0.0182344094, 0.190505743, 0.2702785432, -0.2122466266, -0.323749423, -0.3732513785, -0.2246034592, -0.0373768099, 0.1037435457, 0.1593065411, 0.2925695181, -0.113249667, -0.0387335233, 0.1269528419, -0.218767494, 0.2200422138, -0.1979697496, 0.1281966567, 0.2286251783, 0.3870924115, 0.0413933545, 0.5444859862, 0.2436489463, -0.0796829164, 0.3192813694, -0.1745527089, 0.2922650576, -0.037890628, -0.5508061647, -0.1344225705, -0.1521711797, 0.0345691815, 0.0439349748, 0.1621204466, 0.1705302, -0.5553135276, -0.2198975086, -0.1913197041, -0.2798692882, -0.0953922123, 0.0088964496, 0.1750697792, 0.0263880864, -0.1763010472, -0.2223934978, 0.193703413, 0.2320328057, 0.5205128193, -0.0382332392, 0.0609750487, -0.1520735174, -0.3924020529, -0.4625764489, 0.4786425233, 0.0343589969, 0.1926785558, -0.2925170064, -0.0163768232, -0.0434861146, 0.106082879, 0.7086897492, -0.0712130815, 0.2219748944, 0.0485515594, -0.0863397643, -0.3645549417, -0.0629989207, 0.0806384161, 0.2895559669, 0.5008001328, 0.4849516749, -0.3278110027, 0.096823141, 0.2301487476, -0.0766400397, -0.0308217704, -0.0739792436, -0.2963501513, -0.3656423688, -0.2678076327, 0.0053083226, 0.2438390106, 0.2123909295, 0.3308705389, -0.1466612816, 0.162321493, -0.2427600175, -0.0595810078, -0.0181472749, 0.0382342972, -0.2016497701, -0.0326517671, 0.1781361401, 0.3460512459, -0.3148243725, 0.4281019866, -0.2402161807, -0.2235836387, 0.1684295833, 0.3209205568, 0.4058355093, 0.3009512126, -0.1991279572, 0.160124898, 0.2677815855, 0.3612560332, -0.126201123, 0.1613377035, 0.450132668, 0.3550081849, -0.1951702833, -0.2329109907, 0.2528256774, -0.072912626, 0.0030148178, 0.2449310422, 0.4155494571, -0.2275766283, 0.1655351371, -0.2975749969, 1.1979169846, 0.0573298037, -0.0391715467, 0.1336843669, -0.2379469126, 0.5808714032, -0.156599775, 0.1131994054, -0.1766393483, -0.0917731524, 0.1218969151, -0.2235733867, 0.3505121469, -0.1980927885, -0.0589326546, 0.2558604777, -0.114153482, 0.3006230891, 0.2014454454, 0.2694348097, -0.0904740542, 0.0046209358, -0.2570403814, 0.1390345395, -0.0044747982, 0.4249933362, -0.0580963492, -0.1384334862, 0.0146737695, -0.3370609283, -0.3443264663, 0.1544763297, -0.7144248486, 0.1664406955, 0.0121588632, -0.0822371617, -0.1178106815, -0.0211145338, 0.3912245631, 0.1099305227, -0.2193232775, 0.1842374951, -0.0037479326, -0.3129951656, 0.1039162427, 0.1227222681, -0.0625953972, -0.269305706, -0.2032668889, 0.1417415738, -0.1730961353, -0.4226959944, 0.2038718015, -0.1461983919, 0.1515295655, -0.1836432964, -0.0226266198, -0.1612542868, 0.0242264792, -0.1469756365, 0.1121705323, -0.0693805292, -0.2479230762, -0.108597666, 0.0223694798, -0.3606719971, 0.0174630955, 0.4281621277, -0.1445813775, 0.0723204464, 0.4555253386, 0.124740012, -0.1317320466, -0.1284465045, -0.2199525535, 0.0430561267, -0.4091937542, -0.0014768988, -0.0063630529, -0.1436575353, -0.2302158475, -0.0912812948, 0.3861814141, 0.2269378006, -0.0249442831, -0.5732637644, -0.1236653477, 0.1283734888, -0.1113198102, -0.0436676368, 0.1352206171, 0.292149961, 0.0813925639, 0.0772791058, -0.2949265242, -0.0582201369, -0.1980379224, -0.090982601, 0.4604613781, -0.4231758714, 0.5564395785, 0.2472602576, 0.1833635569, 0.0185602047, -0.176792711, -0.1913489699, -0.0861811489, 0.1239021122, -0.1045507118, -0.2903294265, 0.0198581852, -0.3376127481, 0.0041405205, -0.0067031793, 0.0077223927, 0.0418778658, 0.0665357262, -0.2817330956, -0.0320660509, -0.0895535275, -0.1053849682, 0.1841526031, -0.1359490752, 0.1784513146, 0.0287580267, -0.0061409585, -0.2754326761, -0.1757724583, -0.2360017747, -0.0797953978, 0.0297372248, 0.1081589907, 0.3297696114, -0.194286406, -0.2923170924, -0.1087820828, 0.4173105955, -0.0037686359, -0.1419618428, 0.0590192154, 0.169080779, 0.1616690159, -0.131153658, 0.0745704398, 0.1629067808, -0.1565767825, 0.1184272766, 0.2068682313, -0.023703143, 0.1638731509, 0.0392772257, 0.0193123966, 0.8280624747, 0.213753432, 0.0845068917, 0.1391801834, 0.0415812358, -0.0628209114, 0.1529559493, 0.0035152938, 0.2465288341, -0.0891741961, -0.3549361527, -0.061476782, -0.059323363, -0.0681365132, 0.2297048867, -0.0699740201, 0.0251146797, 0.1838396788, -0.0988478959, -0.131956473, -0.4080093205, 0.6134055853, -0.4409067631, -0.0357084684, -0.1996200085, 0.3630473614, 0.033147376, -0.1725617349, 0.1452640444, -0.1420483887, -0.2319661081, -0.3037568331, 0.0896622837, -0.3973188996, 0.3674947023, -0.0679670274, 0.0307095014, -0.0729466751, -0.3076353371, 0.1328383237, 0.2419954687, -0.2333101183, 0.3818814754, 0.2886332273, -0.0376284085, -0.1605474353, 0.4000949562, 0.6762163639, 0.2699616551, -0.2351972014, 0.2674935758, 0.0332835913, -0.0528571829, -0.0259345099, -0.005995376, 0.28129071, -0.0034649195, 0.2339332402, 0.2336764783, -0.2260976732, 0.05287477, -0.1916486919, 0.3153737485, -0.0148680136, 0.4126878083, -0.3227870166, -0.1426356137, -0.3223922849, 0.1364286244, -0.8104320765, 0.1720469296, 0.2672681808, -0.4068029523, 0.0215154476, -0.1731273085, 0.080315344, -0.0752658248, 0.7511890531, 0.2013045251, 0.3521664739, -0.4966929257, -0.3168991208, -0.2904432416, 0.2075127214, -0.1204556376, -0.1377063692, -0.0594684854, -0.0786987841, -0.1366241872, 0.1496260911, 0.1224858761, 0.1239469498, -0.2708907723, -0.1634464562, -0.016865842, 0.0420121886, -0.0634033382, 0.1023462489, 0.2733125687, -0.2260947824, 0.2341931015, -0.0447946563, 0.0383968949, 0.2165071666, -0.0195570812, 0.1787250489, -0.3686761558, 0.3712459803, 0.1257681996, 0.347453475, 0.1640769243, -0.057671994, -0.1508484781, -0.2002636194, -0.0525050908, 0.1181121916, -0.0094584171, 0.0054065362, -0.2345673442, -0.2379545271, -0.5355013609, 0.1884406954, 0.032456696, -0.0615439489, 0.0410017744, -0.1977433711, 0.1453064829, 0.1729566306, 0.2607688308, 0.043768879, -0.0029308088, 0.1317532361, -0.3068506718, -0.2666340172, 0.6317306757, -0.4022062421, -0.2421782762, 0.0718518645, 0.3609126806, 0.1383721381, 0.1080272496, -0.4578808248, 0.0367778391, 0.3818689883, 0.3051512241, -0.2807103395, 0.2636129856, -0.2206345648, 0.075097844, 0.1570174992, 0.1133458018, -0.1142306775, -0.3479039967, -0.0901178941, -0.1272866428 ]
https://github.com/huggingface/datasets/issues/2775
`generate_random_fingerprint()` deterministic with 🤗Transformers' `set_seed()`
I dug into what I believe is the root of this issue and added a repro in my comment. If this is better addressed as a cross-team issue, let me know and I can open an issue in the Transformers repo
## Describe the bug **Update:** I dug into this to try to reproduce the underlying issue, and I believe it's that `set_seed()` from the `transformers` library makes the "random" fingerprint identical each time. I believe this is still a bug, because `datasets` is used exactly this way in `transformers` after `set_seed()` has been called, and I think that using `set_seed()` is a standard procedure to aid reproducibility. I've added more details to reproduce this below. Hi there! I'm using my own local dataset and custom preprocessing function. My preprocessing function seems to be unpickle-able, perhaps because it is from a closure (will debug this separately). I get this warning, which is expected: https://github.com/huggingface/datasets/blob/450b9174765374111e5c6daab0ed294bc3d9b639/src/datasets/fingerprint.py#L260-L265 However, what's not expected is that the `datasets` actually _does_ seem to cache and reuse this dataset between runs! After that line, the next thing that's logged looks like: ```text Loading cached processed dataset at /home/xxx/.cache/huggingface/datasets/csv/default-xxx/0.0.0/xxx/cache-xxx.arrow ``` The path is exactly the same each run (e.g., last 26 runs). This becomes a problem because I'll pass in the `--max_eval_samples` flag to the HuggingFace example script I'm running off of ([run_swag.py](https://github.com/huggingface/transformers/blob/master/examples/pytorch/multiple-choice/run_swag.py)). The fact that the cached dataset is reused means this flag gets ignored. I'll try to load 100 examples, and it will load the full cached 1,000,000. I think that https://github.com/huggingface/datasets/blob/450b9174765374111e5c6daab0ed294bc3d9b639/src/datasets/fingerprint.py#L248 ... is actually consistent because randomness is being controlled in HuggingFace/Transformers for reproducibility. I've added a demo of this below. ## Steps to reproduce the bug ```python # Contents of print_fingerprint.py from transformers import set_seed from datasets.fingerprint import generate_random_fingerprint set_seed(42) print(generate_random_fingerprint()) ``` ```bash for i in {0..10}; do python print_fingerprint.py done 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d ``` ## Expected results After the "random hash" warning is emitted, a random hash is generated, and no outdated cached datasets are reused. ## Actual results After the "random hash" warning is emitted, an identical hash is generated each time, and an outdated cached dataset is reused each run. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.8.0-1038-gcp-x86_64-with-glibc2.31 - Python version: 3.9.6 - PyArrow version: 4.0.1
41
`generate_random_fingerprint()` deterministic with 🤗Transformers' `set_seed()` ## Describe the bug **Update:** I dug into this to try to reproduce the underlying issue, and I believe it's that `set_seed()` from the `transformers` library makes the "random" fingerprint identical each time. I believe this is still a bug, because `datasets` is used exactly this way in `transformers` after `set_seed()` has been called, and I think that using `set_seed()` is a standard procedure to aid reproducibility. I've added more details to reproduce this below. Hi there! I'm using my own local dataset and custom preprocessing function. My preprocessing function seems to be unpickle-able, perhaps because it is from a closure (will debug this separately). I get this warning, which is expected: https://github.com/huggingface/datasets/blob/450b9174765374111e5c6daab0ed294bc3d9b639/src/datasets/fingerprint.py#L260-L265 However, what's not expected is that the `datasets` actually _does_ seem to cache and reuse this dataset between runs! After that line, the next thing that's logged looks like: ```text Loading cached processed dataset at /home/xxx/.cache/huggingface/datasets/csv/default-xxx/0.0.0/xxx/cache-xxx.arrow ``` The path is exactly the same each run (e.g., last 26 runs). This becomes a problem because I'll pass in the `--max_eval_samples` flag to the HuggingFace example script I'm running off of ([run_swag.py](https://github.com/huggingface/transformers/blob/master/examples/pytorch/multiple-choice/run_swag.py)). The fact that the cached dataset is reused means this flag gets ignored. I'll try to load 100 examples, and it will load the full cached 1,000,000. I think that https://github.com/huggingface/datasets/blob/450b9174765374111e5c6daab0ed294bc3d9b639/src/datasets/fingerprint.py#L248 ... is actually consistent because randomness is being controlled in HuggingFace/Transformers for reproducibility. I've added a demo of this below. ## Steps to reproduce the bug ```python # Contents of print_fingerprint.py from transformers import set_seed from datasets.fingerprint import generate_random_fingerprint set_seed(42) print(generate_random_fingerprint()) ``` ```bash for i in {0..10}; do python print_fingerprint.py done 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d ``` ## Expected results After the "random hash" warning is emitted, a random hash is generated, and no outdated cached datasets are reused. ## Actual results After the "random hash" warning is emitted, an identical hash is generated each time, and an outdated cached dataset is reused each run. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.8.0-1038-gcp-x86_64-with-glibc2.31 - Python version: 3.9.6 - PyArrow version: 4.0.1 I dug into what I believe is the root of this issue and added a repro in my comment. If this is better addressed as a cross-team issue, let me know and I can open an issue in the Transformers repo
[ -0.1622434109, -0.0606819987, 0.0938824564, 0.0836029798, 0.3144049942, -0.1429730952, 0.6139578819, 0.01321337, -0.1196164787, 0.005816251, 0.1650344133, 0.201795429, -0.0787889659, 0.0945226178, -0.0190070346, 0.2130855918, 0.0278787725, -0.140286833, -0.2763956189, -0.1410639882, -0.2284769863, 0.1523454189, -0.0874380469, -0.161738798, -0.6726453304, -0.10210298, -0.1329014599, 0.1628412902, 0.1795904785, -0.4169396162, 0.1931263208, 0.2352146208, -0.1014346927, 0.387552917, -0.0001199422, -0.0937379003, 0.352293551, -0.0650266856, -0.2904088795, -0.1039034054, 0.0416675955, 0.18742764, -0.0534762256, -0.1191122085, -0.0600778125, 0.0070902333, 0.1324012578, -0.4158922434, 0.3937300146, -0.1208233088, 0.166947037, 0.2793325484, -0.117078498, 0.091768004, 0.1264912784, 0.7000269294, -0.2477301061, -0.0409518406, 0.0038183182, 0.0352796689, -0.2997263372, 0.2550402582, 0.1456887126, 0.1156735867, 0.5079761744, 0.1923027188, -0.1786667407, -0.1532369852, 0.1148631424, 0.2767553329, 0.2311254889, -0.3748753965, -0.3369913101, -0.6084534526, -0.2362681031, -0.2321819365, 0.1527198404, 0.0096535683, -0.1577539891, 0.0793166012, -0.3549200594, 0.1265326738, 0.0707443655, -0.1952131987, 0.2468885779, 0.221877858, 0.0072370395, 0.1679398865, 0.158734858, 0.0604983233, 0.1699356139, -0.1181590483, -0.093874149, 0.0394966863, 0.0180435963, 0.1057434529, 0.1586053818, 0.1534636319, 0.3189110756, 0.501427114, 0.0610095337, 0.1023850739, 0.1677440107, -0.073842749, 0.2467008978, 0.2197237909, -0.0580616593, 0.3566729724, 0.0670856163, 0.0370438807, -0.0029729307, 0.0142727569, 0.2652681768, -0.0426026657, 0.5014554262, -0.0270120725, 0.2397682667, -0.0510364585, 0.0650818869, 0.1498211175, 0.0121366233, -0.0750531629, -0.0779313594, 0.250138402, -0.198207885, -0.0242467597, -0.0956239328, -0.0449062735, -0.1348835826, -0.0826701969, -0.2837890983, -0.1389879882, -0.2515236139, 0.281372726, -0.0713062212, -0.0807783902, 0.3410976529, 0.251950264, 0.1854817271, -0.1556296647, 0.1785333008, -0.0622606017, 0.4497913718, 0.1312009245, -0.1929615736, 0.1577104777, 0.1532039642, 0.0786590949, -0.1610736996, 0.0881240815, 0.0865717679, -0.2364134938, 0.117369093, 0.052563455, -0.5501568317, 0.1222917736, -0.098398, -0.0366492271, 0.4920063615, 0.1749354303, 0.2651319504, -0.1899253726, -0.4315013289, -0.2918189168, 0.0729339048, 0.7805562615, 0.0292770341, -0.2914332151, 0.0271980949, 0.1518495828, 0.1788184047, 0.1570242196, -0.1241751313, 0.2212257087, -0.4607886076, 0.2205772847, -0.2322399616, -0.1423754245, -0.2322937846, 0.3027456999, -0.0936337411, 0.3831537366, 0.0383600779, 0.0561095625, -0.1114996448, -0.1254638433, -0.2388654947, 0.2245151997, -0.0068205856, 0.1098392233, -0.4005635977, -0.3897635639, 0.0655299425, -0.0483647212, 0.0519644059, 0.0094375573, 0.1318699121, -0.1288127601, 0.2877877355, -0.1068514138, 0.1581378132, 0.1528533399, 0.1587301493, 0.2246323973, 0.0351855904, 0.1689158976, -0.5419937372, 0.3820072711, -0.2410482466, -0.1893584132, -0.1494205445, -0.3210411668, -0.0753019527, 0.0960759744, -0.4060979187, -0.3152599335, -0.0154514462, 0.5506612659, 0.2708694339, -0.0051999018, 0.096824564, 0.2403063774, 0.1423282325, -0.0027177185, -0.9128639102, 0.056784831, 0.0906824097, -0.17256248, -0.2306704819, 0.0778863728, 0.0968684107, -0.2287880182, 0.0384364501, 0.3598068058, 0.1580558419, 0.2628179789, -0.0984209329, 0.1928108037, 0.0074187461, -0.1086180657, -0.0394936427, 0.1521766037, 0.0554049313, -0.1021169648, -0.0983804762, 0.4918053746, -0.2128900737, 0.115990743, -0.1526506245, -0.0862319916, -0.0628082901, -0.0525966957, -0.2161844224, -0.1971546113, 0.0899823159, -0.0390492603, 0.5391989946, 0.2282952517, -0.3941819072, 0.2312154472, -0.0016540559, -0.0491705723, 0.1437009871, 0.0852040052, 0.0712453276, -0.3131348491, 0.0560090542, 0.3389396071, 0.4275984168, 0.0159968883, 0.0583641417, 0.0512272194, -0.1064070165, -0.1665118039, -0.0071325228, 0.0005931538, -0.0298424885, 0.2195874751, 0.1412554979, 0.0112576187, -0.438752532, -0.0286884084, 0.1356961429, -0.0273102447, -0.3191820979, 0.2899664342, -0.1755525768, 0.4455588758, -0.3127734959, -0.1545067579, -0.2895250618, -0.2514543533, -0.1213658005, 0.4109183252, -0.116630353, 0.1950093061, -0.1968618035, 0.2971343398, -0.0853329003, -0.2759701014, -0.2541822791, -0.1093626991, -0.2183858603, -0.0602291152, 0.1203757077, -0.0034398846, 0.2321114391, -0.1100812033, -0.0712264925, -0.3098181784, -0.1055288091, 0.2229752541, -0.1086347699, 0.5486390591, 0.2477724105, -0.2188453972, -0.1793800145, -0.2130805552, 0.2121194601, -0.1938273311, -0.0862902179, -0.1702485979, -0.0922701955, -0.0537802726, 0.0295688435, 0.0690161437, -0.0948395729, 0.0121202767, 0.2557660043, -0.0645927191, 0.0405180603, 0.5897525549, 0.0284131095, -0.0574362986, -0.1054538041, -0.0440536328, -0.5146176815, -0.4949686527, 0.2611505389, -0.1634006947, -0.2163863778, -0.3258368373, -0.2972290516, 0.0188392438, 0.1888900399, -0.6068611145, -0.0516650528, -0.2685234845, 0.4238203764, -0.2032543123, 0.0177749898, 0.3344093561, 0.0985967517, 0.1076800898, -0.0211103931, -0.0474801734, 0.2567793429, -0.3898845315, 0.381711334, 0.1048752815, 0.0602536574, 0.0892470852, 1.0046876669, 0.2359310389, -0.3700000048, 0.1978333443, -0.0644090325, 0.4749628901, -0.297986269, -0.207937032, 0.1310503185, -0.0590399653, -0.2528948784, 0.1606170684, -0.0795169771, 0.2031420022, 0.1621232182, 0.2374074757, -0.1579893678, -0.3636940122, 0.1179597005, -0.0183764677, 0.029056197, 0.0220860988, 0.3120574355, -0.2099298388, -0.1583349407, 0.0411260463, 0.0356695428, 0.4221751094, 0.0522912852, -0.3100931644, 0.187613979, -0.6171492934, 0.0540942326, 0.2187432945, 0.2380436063, -0.109827891, -0.3385641277, 0.1094962656, -0.0808583051, 0.7635932565, -0.021159621, 0.272678256, 0.0645889118, -0.4564516842, -0.1778558493, -0.0194790661, 0.0387322009, -0.2118598968, 0.074364692, 0.1087064445, -0.1690749228, 0.1645167619, -0.1442144066, 0.1973525137, -0.1298979968, -0.1945913136, -0.2662622035, -0.3079316318, -0.1788807213, 0.1033715159, 0.0640035793, -0.0608191863, -0.082602948, 0.0196876973, -0.3017711937, -0.2599676251, 0.0435259752, 0.0706628561, 0.3443907499, 0.0018844903, 0.4046286047, 0.4547140598, -0.1982672215, 0.0894358307, 0.4374316037, -0.2148358673, 0.0085544176, 0.2202310264, -0.0396815017, -0.2334373444, 0.5466166735, -0.1877534986, -0.0894531608, 0.0587287471, 0.0108102672, -0.4439829588, 0.0664634705, 0.1466408372, 0.1137158126, -0.0281974468, -0.2624799609, 0.3312913179, 0.0272615775, -0.2758752704, 0.4392708838, -0.3099082112, -0.1239235699, 0.424711585, 0.2471441329, 0.880485177, -0.1272097528, 0.3180259168, 0.1907136738, 0.2768241763, 0.1486350745, 0.4829755723, 0.011516422, -0.4281357825, -0.36565727, 0.0060816333, -0.2024413496, 0.0555917732, 0.086995177, 0.0665675551, 0.1132726371, -0.0630426109, 0.1032281667, -0.1567854285, 0.1560461223, 0.0246321242, -0.2156864852, 0.1735640615, 0.0843450278, 0.1718551815, 0.5333350301, -0.0699901953, 0.0953961685, 0.06076397, -0.2466622889, -0.3635311425, 0.2086061835, -0.2790144682, 0.2022839189, 0.3691951334, -0.0258361548, -0.2583651841, 0.1351566464, 0.5098419189, 0.1552302539, -0.1020520777, 0.1477965713, 0.2578324378, 0.1927012354, -0.1315277219, -0.1301501989, 0.2111314684, 0.1236367673, -0.1206820011, -0.1519352496, -0.0478054993, -0.2716751099, -0.459890753, -0.0121335387, -0.0979534462, -0.3023136556, 0.0790292472, -0.1466926336, 0.0272654518, -0.1541841924, 0.0286998339, 0.2207657695, 0.0228122808, 0.1299969852, -0.1785636991, -0.4069521129, -0.2265017182, 0.4325012565, -0.0612100065, 0.0727250203, 0.2602238059, 0.0922238082, -0.0315435641, -0.108557485, 0.2351078689, 0.1377263963, -0.5122731924, 0.2434007376, -0.2169812173, -0.0195954591, -0.0813556015, 0.2316170335, 0.1115592569, 0.034822613, -0.0617023893, -0.1523829103, -0.3719457388, -0.1704630256, 0.0821972787, 0.3519158959, 0.2928990424, 0.0990410298, -0.1051280051, 0.3124899864, -0.2433378249, -0.0502343178, 0.0076264516, 0.0296816044, 0.0670685172, -0.3035528064, 0.286791265, -0.068144545, -0.0063581243, 0.2946642041, -0.3688631356, -0.1184285581, -0.4529237151, 0.1593661904, 0.0088852048, -0.0048952289, -0.1571956575, 0.1779758334, 0.0237190276, -0.3966796994, 0.3917923868, 0.5151256919, 0.0149961691, -0.0830859691, 0.4291325212, 0.0537457354, -0.0980245769, -0.1753565222, -0.1844472438, 0.0748553723, 0.2480771244, 0.107916832, -0.1506761909, 0.0071840808, -0.2314371318, 0.0288117882, 0.2302111983, -0.0676559359, 0.0180181805, -0.134332642, -0.2681115866, -0.0723341033, 0.1703022718, 0.1611694843, -0.1635132283, -0.3935706913, 0.1354325414, 0.1497948021, -0.0726000741, -0.2825773656, -0.3876024783, 0.2493042946, 0.0868988708, 0.5509284735, 0.3141430616, -0.1225684211, 0.0572355911, 0.0346189439, 0.5128440857, -0.398712188, 0.2396622747, 0.3090472817, -0.238540709, 0.0252347831, 0.4938824773, 0.2923140526, 0.206356883, 0.1732745469, -0.0384310745, 0.5072751045, -0.3027773499, 0.0972190797, -0.1392075121, -0.6456995606, 0.3082393706, 0.4405918717, -0.1516469121, 0.4086828828, 0.0774329603, 0.4832060337, -0.1660368145, -0.0858008936, -0.3003624678, 0.3024360538, 0.0143995117, -0.535314858, 0.0377790555, -0.0834390447, -0.3826369047, 0.0900418982, -0.0035490831, -0.2081625015, 0.6144250035, -0.0752097741, -0.2515945435, -0.3642041087, -0.0378356874, 0.0142610781, 0.1197625995, -0.3115848899, 0.2505503595, 0.1605971456, -0.2969711125, 0.1013812721, 0.1887000352, 0.5075890422, 0.3388088048, 0.1338165104, 0.1075942069, -0.2951604426, 0.1907001585, -0.248129189, 0.3066646457, -0.2367559969, -0.2121831626, 0.2729893625, 0.0783089325, -0.1230101883, 0.0755241811, 0.060490042, 0.4505950809, -0.1969416291, 0.6952244639, -0.1496912539, 0.1883817315, -0.0011687037, 0.3480207324, -0.36970222, 0.0585601926, 0.2623934448, -0.1507831961, 0.1990687102, -0.1322581768, 0.03402704, -0.0488978103, 0.3877415657, 0.2560423017, -0.3483614922, -0.1792102158, 0.1957638115, -0.5142298937, 0.3533166647, -0.1999634206, 0.1005283222, 0.0804015473, 0.145535484, -0.2276922762, -0.0096826386, -0.1714700013, 0.2559456229, 0.0081330612, 0.3090420067, -0.1568308473, 0.0880400762, -0.4392118156, -0.0144751798, 0.2130461931, -0.3841431141, 0.2073272765, 0.1999244094, -0.0297076628, 0.0550278537, -0.1730276644, -0.0277811289, -0.0068212487, 0.4017461836, 0.2652512789, 0.0799823776, -0.1851327419, -0.1826788336, -0.5771654844, -0.1551558673, -0.114645198, 0.1160614938, 0.1047956645, 0.2232982814, -0.2068717033, -0.2676875293, -0.4154664874, 0.2365449518, 0.2599455118, -0.1395100057, -0.1362611055, 0.2388965786, -0.3561551571, 0.3288772106, 0.091960445, 0.4796584249, -0.024372872, 0.2805634737, -0.1349281967, -0.4061139226, 0.721650064, -0.5009365082, -0.2477235496, -0.3238893747, 0.0440610722, 0.0715892091, -0.4523600042, -0.4823101461, 0.1665854752, 0.1452373862, 0.0978134349, -0.0011370257, -0.1485638916, -0.248302862, 0.0275906548, -0.0975217372, 0.5400007963, 0.1959820986, -0.1516943574, 0.3653633595, -0.1505267024 ]
https://github.com/huggingface/datasets/issues/2775
`generate_random_fingerprint()` deterministic with 🤗Transformers' `set_seed()`
Hi ! IMO we shouldn't try to modify `set_seed` from transformers but maybe make `datasets` have its own RNG just to generate random fingerprints. Any opinion on this @LysandreJik ?
## Describe the bug **Update:** I dug into this to try to reproduce the underlying issue, and I believe it's that `set_seed()` from the `transformers` library makes the "random" fingerprint identical each time. I believe this is still a bug, because `datasets` is used exactly this way in `transformers` after `set_seed()` has been called, and I think that using `set_seed()` is a standard procedure to aid reproducibility. I've added more details to reproduce this below. Hi there! I'm using my own local dataset and custom preprocessing function. My preprocessing function seems to be unpickle-able, perhaps because it is from a closure (will debug this separately). I get this warning, which is expected: https://github.com/huggingface/datasets/blob/450b9174765374111e5c6daab0ed294bc3d9b639/src/datasets/fingerprint.py#L260-L265 However, what's not expected is that the `datasets` actually _does_ seem to cache and reuse this dataset between runs! After that line, the next thing that's logged looks like: ```text Loading cached processed dataset at /home/xxx/.cache/huggingface/datasets/csv/default-xxx/0.0.0/xxx/cache-xxx.arrow ``` The path is exactly the same each run (e.g., last 26 runs). This becomes a problem because I'll pass in the `--max_eval_samples` flag to the HuggingFace example script I'm running off of ([run_swag.py](https://github.com/huggingface/transformers/blob/master/examples/pytorch/multiple-choice/run_swag.py)). The fact that the cached dataset is reused means this flag gets ignored. I'll try to load 100 examples, and it will load the full cached 1,000,000. I think that https://github.com/huggingface/datasets/blob/450b9174765374111e5c6daab0ed294bc3d9b639/src/datasets/fingerprint.py#L248 ... is actually consistent because randomness is being controlled in HuggingFace/Transformers for reproducibility. I've added a demo of this below. ## Steps to reproduce the bug ```python # Contents of print_fingerprint.py from transformers import set_seed from datasets.fingerprint import generate_random_fingerprint set_seed(42) print(generate_random_fingerprint()) ``` ```bash for i in {0..10}; do python print_fingerprint.py done 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d ``` ## Expected results After the "random hash" warning is emitted, a random hash is generated, and no outdated cached datasets are reused. ## Actual results After the "random hash" warning is emitted, an identical hash is generated each time, and an outdated cached dataset is reused each run. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.8.0-1038-gcp-x86_64-with-glibc2.31 - Python version: 3.9.6 - PyArrow version: 4.0.1
30
`generate_random_fingerprint()` deterministic with 🤗Transformers' `set_seed()` ## Describe the bug **Update:** I dug into this to try to reproduce the underlying issue, and I believe it's that `set_seed()` from the `transformers` library makes the "random" fingerprint identical each time. I believe this is still a bug, because `datasets` is used exactly this way in `transformers` after `set_seed()` has been called, and I think that using `set_seed()` is a standard procedure to aid reproducibility. I've added more details to reproduce this below. Hi there! I'm using my own local dataset and custom preprocessing function. My preprocessing function seems to be unpickle-able, perhaps because it is from a closure (will debug this separately). I get this warning, which is expected: https://github.com/huggingface/datasets/blob/450b9174765374111e5c6daab0ed294bc3d9b639/src/datasets/fingerprint.py#L260-L265 However, what's not expected is that the `datasets` actually _does_ seem to cache and reuse this dataset between runs! After that line, the next thing that's logged looks like: ```text Loading cached processed dataset at /home/xxx/.cache/huggingface/datasets/csv/default-xxx/0.0.0/xxx/cache-xxx.arrow ``` The path is exactly the same each run (e.g., last 26 runs). This becomes a problem because I'll pass in the `--max_eval_samples` flag to the HuggingFace example script I'm running off of ([run_swag.py](https://github.com/huggingface/transformers/blob/master/examples/pytorch/multiple-choice/run_swag.py)). The fact that the cached dataset is reused means this flag gets ignored. I'll try to load 100 examples, and it will load the full cached 1,000,000. I think that https://github.com/huggingface/datasets/blob/450b9174765374111e5c6daab0ed294bc3d9b639/src/datasets/fingerprint.py#L248 ... is actually consistent because randomness is being controlled in HuggingFace/Transformers for reproducibility. I've added a demo of this below. ## Steps to reproduce the bug ```python # Contents of print_fingerprint.py from transformers import set_seed from datasets.fingerprint import generate_random_fingerprint set_seed(42) print(generate_random_fingerprint()) ``` ```bash for i in {0..10}; do python print_fingerprint.py done 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d ``` ## Expected results After the "random hash" warning is emitted, a random hash is generated, and no outdated cached datasets are reused. ## Actual results After the "random hash" warning is emitted, an identical hash is generated each time, and an outdated cached dataset is reused each run. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.8.0-1038-gcp-x86_64-with-glibc2.31 - Python version: 3.9.6 - PyArrow version: 4.0.1 Hi ! IMO we shouldn't try to modify `set_seed` from transformers but maybe make `datasets` have its own RNG just to generate random fingerprints. Any opinion on this @LysandreJik ?
[ -0.1622434109, -0.0606819987, 0.0938824564, 0.0836029798, 0.3144049942, -0.1429730952, 0.6139578819, 0.01321337, -0.1196164787, 0.005816251, 0.1650344133, 0.201795429, -0.0787889659, 0.0945226178, -0.0190070346, 0.2130855918, 0.0278787725, -0.140286833, -0.2763956189, -0.1410639882, -0.2284769863, 0.1523454189, -0.0874380469, -0.161738798, -0.6726453304, -0.10210298, -0.1329014599, 0.1628412902, 0.1795904785, -0.4169396162, 0.1931263208, 0.2352146208, -0.1014346927, 0.387552917, -0.0001199422, -0.0937379003, 0.352293551, -0.0650266856, -0.2904088795, -0.1039034054, 0.0416675955, 0.18742764, -0.0534762256, -0.1191122085, -0.0600778125, 0.0070902333, 0.1324012578, -0.4158922434, 0.3937300146, -0.1208233088, 0.166947037, 0.2793325484, -0.117078498, 0.091768004, 0.1264912784, 0.7000269294, -0.2477301061, -0.0409518406, 0.0038183182, 0.0352796689, -0.2997263372, 0.2550402582, 0.1456887126, 0.1156735867, 0.5079761744, 0.1923027188, -0.1786667407, -0.1532369852, 0.1148631424, 0.2767553329, 0.2311254889, -0.3748753965, -0.3369913101, -0.6084534526, -0.2362681031, -0.2321819365, 0.1527198404, 0.0096535683, -0.1577539891, 0.0793166012, -0.3549200594, 0.1265326738, 0.0707443655, -0.1952131987, 0.2468885779, 0.221877858, 0.0072370395, 0.1679398865, 0.158734858, 0.0604983233, 0.1699356139, -0.1181590483, -0.093874149, 0.0394966863, 0.0180435963, 0.1057434529, 0.1586053818, 0.1534636319, 0.3189110756, 0.501427114, 0.0610095337, 0.1023850739, 0.1677440107, -0.073842749, 0.2467008978, 0.2197237909, -0.0580616593, 0.3566729724, 0.0670856163, 0.0370438807, -0.0029729307, 0.0142727569, 0.2652681768, -0.0426026657, 0.5014554262, -0.0270120725, 0.2397682667, -0.0510364585, 0.0650818869, 0.1498211175, 0.0121366233, -0.0750531629, -0.0779313594, 0.250138402, -0.198207885, -0.0242467597, -0.0956239328, -0.0449062735, -0.1348835826, -0.0826701969, -0.2837890983, -0.1389879882, -0.2515236139, 0.281372726, -0.0713062212, -0.0807783902, 0.3410976529, 0.251950264, 0.1854817271, -0.1556296647, 0.1785333008, -0.0622606017, 0.4497913718, 0.1312009245, -0.1929615736, 0.1577104777, 0.1532039642, 0.0786590949, -0.1610736996, 0.0881240815, 0.0865717679, -0.2364134938, 0.117369093, 0.052563455, -0.5501568317, 0.1222917736, -0.098398, -0.0366492271, 0.4920063615, 0.1749354303, 0.2651319504, -0.1899253726, -0.4315013289, -0.2918189168, 0.0729339048, 0.7805562615, 0.0292770341, -0.2914332151, 0.0271980949, 0.1518495828, 0.1788184047, 0.1570242196, -0.1241751313, 0.2212257087, -0.4607886076, 0.2205772847, -0.2322399616, -0.1423754245, -0.2322937846, 0.3027456999, -0.0936337411, 0.3831537366, 0.0383600779, 0.0561095625, -0.1114996448, -0.1254638433, -0.2388654947, 0.2245151997, -0.0068205856, 0.1098392233, -0.4005635977, -0.3897635639, 0.0655299425, -0.0483647212, 0.0519644059, 0.0094375573, 0.1318699121, -0.1288127601, 0.2877877355, -0.1068514138, 0.1581378132, 0.1528533399, 0.1587301493, 0.2246323973, 0.0351855904, 0.1689158976, -0.5419937372, 0.3820072711, -0.2410482466, -0.1893584132, -0.1494205445, -0.3210411668, -0.0753019527, 0.0960759744, -0.4060979187, -0.3152599335, -0.0154514462, 0.5506612659, 0.2708694339, -0.0051999018, 0.096824564, 0.2403063774, 0.1423282325, -0.0027177185, -0.9128639102, 0.056784831, 0.0906824097, -0.17256248, -0.2306704819, 0.0778863728, 0.0968684107, -0.2287880182, 0.0384364501, 0.3598068058, 0.1580558419, 0.2628179789, -0.0984209329, 0.1928108037, 0.0074187461, -0.1086180657, -0.0394936427, 0.1521766037, 0.0554049313, -0.1021169648, -0.0983804762, 0.4918053746, -0.2128900737, 0.115990743, -0.1526506245, -0.0862319916, -0.0628082901, -0.0525966957, -0.2161844224, -0.1971546113, 0.0899823159, -0.0390492603, 0.5391989946, 0.2282952517, -0.3941819072, 0.2312154472, -0.0016540559, -0.0491705723, 0.1437009871, 0.0852040052, 0.0712453276, -0.3131348491, 0.0560090542, 0.3389396071, 0.4275984168, 0.0159968883, 0.0583641417, 0.0512272194, -0.1064070165, -0.1665118039, -0.0071325228, 0.0005931538, -0.0298424885, 0.2195874751, 0.1412554979, 0.0112576187, -0.438752532, -0.0286884084, 0.1356961429, -0.0273102447, -0.3191820979, 0.2899664342, -0.1755525768, 0.4455588758, -0.3127734959, -0.1545067579, -0.2895250618, -0.2514543533, -0.1213658005, 0.4109183252, -0.116630353, 0.1950093061, -0.1968618035, 0.2971343398, -0.0853329003, -0.2759701014, -0.2541822791, -0.1093626991, -0.2183858603, -0.0602291152, 0.1203757077, -0.0034398846, 0.2321114391, -0.1100812033, -0.0712264925, -0.3098181784, -0.1055288091, 0.2229752541, -0.1086347699, 0.5486390591, 0.2477724105, -0.2188453972, -0.1793800145, -0.2130805552, 0.2121194601, -0.1938273311, -0.0862902179, -0.1702485979, -0.0922701955, -0.0537802726, 0.0295688435, 0.0690161437, -0.0948395729, 0.0121202767, 0.2557660043, -0.0645927191, 0.0405180603, 0.5897525549, 0.0284131095, -0.0574362986, -0.1054538041, -0.0440536328, -0.5146176815, -0.4949686527, 0.2611505389, -0.1634006947, -0.2163863778, -0.3258368373, -0.2972290516, 0.0188392438, 0.1888900399, -0.6068611145, -0.0516650528, -0.2685234845, 0.4238203764, -0.2032543123, 0.0177749898, 0.3344093561, 0.0985967517, 0.1076800898, -0.0211103931, -0.0474801734, 0.2567793429, -0.3898845315, 0.381711334, 0.1048752815, 0.0602536574, 0.0892470852, 1.0046876669, 0.2359310389, -0.3700000048, 0.1978333443, -0.0644090325, 0.4749628901, -0.297986269, -0.207937032, 0.1310503185, -0.0590399653, -0.2528948784, 0.1606170684, -0.0795169771, 0.2031420022, 0.1621232182, 0.2374074757, -0.1579893678, -0.3636940122, 0.1179597005, -0.0183764677, 0.029056197, 0.0220860988, 0.3120574355, -0.2099298388, -0.1583349407, 0.0411260463, 0.0356695428, 0.4221751094, 0.0522912852, -0.3100931644, 0.187613979, -0.6171492934, 0.0540942326, 0.2187432945, 0.2380436063, -0.109827891, -0.3385641277, 0.1094962656, -0.0808583051, 0.7635932565, -0.021159621, 0.272678256, 0.0645889118, -0.4564516842, -0.1778558493, -0.0194790661, 0.0387322009, -0.2118598968, 0.074364692, 0.1087064445, -0.1690749228, 0.1645167619, -0.1442144066, 0.1973525137, -0.1298979968, -0.1945913136, -0.2662622035, -0.3079316318, -0.1788807213, 0.1033715159, 0.0640035793, -0.0608191863, -0.082602948, 0.0196876973, -0.3017711937, -0.2599676251, 0.0435259752, 0.0706628561, 0.3443907499, 0.0018844903, 0.4046286047, 0.4547140598, -0.1982672215, 0.0894358307, 0.4374316037, -0.2148358673, 0.0085544176, 0.2202310264, -0.0396815017, -0.2334373444, 0.5466166735, -0.1877534986, -0.0894531608, 0.0587287471, 0.0108102672, -0.4439829588, 0.0664634705, 0.1466408372, 0.1137158126, -0.0281974468, -0.2624799609, 0.3312913179, 0.0272615775, -0.2758752704, 0.4392708838, -0.3099082112, -0.1239235699, 0.424711585, 0.2471441329, 0.880485177, -0.1272097528, 0.3180259168, 0.1907136738, 0.2768241763, 0.1486350745, 0.4829755723, 0.011516422, -0.4281357825, -0.36565727, 0.0060816333, -0.2024413496, 0.0555917732, 0.086995177, 0.0665675551, 0.1132726371, -0.0630426109, 0.1032281667, -0.1567854285, 0.1560461223, 0.0246321242, -0.2156864852, 0.1735640615, 0.0843450278, 0.1718551815, 0.5333350301, -0.0699901953, 0.0953961685, 0.06076397, -0.2466622889, -0.3635311425, 0.2086061835, -0.2790144682, 0.2022839189, 0.3691951334, -0.0258361548, -0.2583651841, 0.1351566464, 0.5098419189, 0.1552302539, -0.1020520777, 0.1477965713, 0.2578324378, 0.1927012354, -0.1315277219, -0.1301501989, 0.2111314684, 0.1236367673, -0.1206820011, -0.1519352496, -0.0478054993, -0.2716751099, -0.459890753, -0.0121335387, -0.0979534462, -0.3023136556, 0.0790292472, -0.1466926336, 0.0272654518, -0.1541841924, 0.0286998339, 0.2207657695, 0.0228122808, 0.1299969852, -0.1785636991, -0.4069521129, -0.2265017182, 0.4325012565, -0.0612100065, 0.0727250203, 0.2602238059, 0.0922238082, -0.0315435641, -0.108557485, 0.2351078689, 0.1377263963, -0.5122731924, 0.2434007376, -0.2169812173, -0.0195954591, -0.0813556015, 0.2316170335, 0.1115592569, 0.034822613, -0.0617023893, -0.1523829103, -0.3719457388, -0.1704630256, 0.0821972787, 0.3519158959, 0.2928990424, 0.0990410298, -0.1051280051, 0.3124899864, -0.2433378249, -0.0502343178, 0.0076264516, 0.0296816044, 0.0670685172, -0.3035528064, 0.286791265, -0.068144545, -0.0063581243, 0.2946642041, -0.3688631356, -0.1184285581, -0.4529237151, 0.1593661904, 0.0088852048, -0.0048952289, -0.1571956575, 0.1779758334, 0.0237190276, -0.3966796994, 0.3917923868, 0.5151256919, 0.0149961691, -0.0830859691, 0.4291325212, 0.0537457354, -0.0980245769, -0.1753565222, -0.1844472438, 0.0748553723, 0.2480771244, 0.107916832, -0.1506761909, 0.0071840808, -0.2314371318, 0.0288117882, 0.2302111983, -0.0676559359, 0.0180181805, -0.134332642, -0.2681115866, -0.0723341033, 0.1703022718, 0.1611694843, -0.1635132283, -0.3935706913, 0.1354325414, 0.1497948021, -0.0726000741, -0.2825773656, -0.3876024783, 0.2493042946, 0.0868988708, 0.5509284735, 0.3141430616, -0.1225684211, 0.0572355911, 0.0346189439, 0.5128440857, -0.398712188, 0.2396622747, 0.3090472817, -0.238540709, 0.0252347831, 0.4938824773, 0.2923140526, 0.206356883, 0.1732745469, -0.0384310745, 0.5072751045, -0.3027773499, 0.0972190797, -0.1392075121, -0.6456995606, 0.3082393706, 0.4405918717, -0.1516469121, 0.4086828828, 0.0774329603, 0.4832060337, -0.1660368145, -0.0858008936, -0.3003624678, 0.3024360538, 0.0143995117, -0.535314858, 0.0377790555, -0.0834390447, -0.3826369047, 0.0900418982, -0.0035490831, -0.2081625015, 0.6144250035, -0.0752097741, -0.2515945435, -0.3642041087, -0.0378356874, 0.0142610781, 0.1197625995, -0.3115848899, 0.2505503595, 0.1605971456, -0.2969711125, 0.1013812721, 0.1887000352, 0.5075890422, 0.3388088048, 0.1338165104, 0.1075942069, -0.2951604426, 0.1907001585, -0.248129189, 0.3066646457, -0.2367559969, -0.2121831626, 0.2729893625, 0.0783089325, -0.1230101883, 0.0755241811, 0.060490042, 0.4505950809, -0.1969416291, 0.6952244639, -0.1496912539, 0.1883817315, -0.0011687037, 0.3480207324, -0.36970222, 0.0585601926, 0.2623934448, -0.1507831961, 0.1990687102, -0.1322581768, 0.03402704, -0.0488978103, 0.3877415657, 0.2560423017, -0.3483614922, -0.1792102158, 0.1957638115, -0.5142298937, 0.3533166647, -0.1999634206, 0.1005283222, 0.0804015473, 0.145535484, -0.2276922762, -0.0096826386, -0.1714700013, 0.2559456229, 0.0081330612, 0.3090420067, -0.1568308473, 0.0880400762, -0.4392118156, -0.0144751798, 0.2130461931, -0.3841431141, 0.2073272765, 0.1999244094, -0.0297076628, 0.0550278537, -0.1730276644, -0.0277811289, -0.0068212487, 0.4017461836, 0.2652512789, 0.0799823776, -0.1851327419, -0.1826788336, -0.5771654844, -0.1551558673, -0.114645198, 0.1160614938, 0.1047956645, 0.2232982814, -0.2068717033, -0.2676875293, -0.4154664874, 0.2365449518, 0.2599455118, -0.1395100057, -0.1362611055, 0.2388965786, -0.3561551571, 0.3288772106, 0.091960445, 0.4796584249, -0.024372872, 0.2805634737, -0.1349281967, -0.4061139226, 0.721650064, -0.5009365082, -0.2477235496, -0.3238893747, 0.0440610722, 0.0715892091, -0.4523600042, -0.4823101461, 0.1665854752, 0.1452373862, 0.0978134349, -0.0011370257, -0.1485638916, -0.248302862, 0.0275906548, -0.0975217372, 0.5400007963, 0.1959820986, -0.1516943574, 0.3653633595, -0.1505267024 ]
https://github.com/huggingface/datasets/issues/2768
`ArrowInvalid: Added column's length must match table's length.` after using `select`
Hi, the `select` method creates an indices mapping and doesn't modify the underlying PyArrow table by default for better performance. To modify the underlying table after the `select` call, call `flatten_indices` on the dataset object as follows: ```python from datasets import load_dataset ds = load_dataset("tweets_hate_speech_detection")['train'].select(range(128)) ds = ds.flatten_indices() ds = ds.add_column('ones', [1]*128) ```
## Describe the bug I would like to add a column to a downsampled dataset. However I get an error message saying the length don't match with the length of the unsampled dataset indicated. I suspect that the dataset size is not updated when calling `select`. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset("tweets_hate_speech_detection")['train'].select(range(128)) ds = ds.add_column('ones', [1]*128) ``` ## Expected results I would expect a new column named `ones` filled with `1`. When I check the length of `ds` it says `128`. Interestingly, it works when calling `ds = ds.map(lambda x: x)` before adding the column. ## Actual results Specify the actual results or traceback. ```python --------------------------------------------------------------------------- ArrowInvalid Traceback (most recent call last) /var/folders/l4/2905jygx4tx5jv8_kn03vxsw0000gn/T/ipykernel_6301/868709636.py in <module> 1 from datasets import load_dataset 2 ds = load_dataset("tweets_hate_speech_detection")['train'].select(range(128)) ----> 3 ds = ds.add_column('ones', [0]*128) ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 183 } 184 # apply actual function --> 185 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 186 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 187 # re-apply format to the output ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 395 # Call actual function 396 --> 397 out = func(self, *args, **kwargs) 398 399 # Update fingerprint of in-place transforms + update in-place history of transforms ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_column(self, name, column, new_fingerprint) 2965 column_table = InMemoryTable.from_pydict({name: column}) 2966 # Concatenate tables horizontally -> 2967 table = ConcatenationTable.from_tables([self._data, column_table], axis=1) 2968 # Update features 2969 info = self.info.copy() ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/table.py in from_tables(cls, tables, axis) 715 table_blocks = to_blocks(table) 716 blocks = _extend_blocks(blocks, table_blocks, axis=axis) --> 717 return cls.from_blocks(blocks) 718 719 @property ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/table.py in from_blocks(cls, blocks) 663 return cls(table, blocks) 664 else: --> 665 table = cls._concat_blocks_horizontally_and_vertically(blocks) 666 return cls(table, blocks) 667 ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/table.py in _concat_blocks_horizontally_and_vertically(cls, blocks) 623 if not tables: 624 continue --> 625 pa_table_horizontally_concatenated = cls._concat_blocks(tables, axis=1) 626 pa_tables_to_concat_vertically.append(pa_table_horizontally_concatenated) 627 return cls._concat_blocks(pa_tables_to_concat_vertically, axis=0) ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/table.py in _concat_blocks(blocks, axis) 612 else: 613 for name, col in zip(table.column_names, table.columns): --> 614 pa_table = pa_table.append_column(name, col) 615 return pa_table 616 else: ~/git/semantic-clustering/env/lib/python3.8/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.append_column() ~/git/semantic-clustering/env/lib/python3.8/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.add_column() ~/git/semantic-clustering/env/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/git/semantic-clustering/env/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowInvalid: Added column's length must match table's length. Expected length 31962 but got length 128 ``` ## Environment info - `datasets` version: 1.11.0 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 5.0.0
53
`ArrowInvalid: Added column's length must match table's length.` after using `select` ## Describe the bug I would like to add a column to a downsampled dataset. However I get an error message saying the length don't match with the length of the unsampled dataset indicated. I suspect that the dataset size is not updated when calling `select`. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset("tweets_hate_speech_detection")['train'].select(range(128)) ds = ds.add_column('ones', [1]*128) ``` ## Expected results I would expect a new column named `ones` filled with `1`. When I check the length of `ds` it says `128`. Interestingly, it works when calling `ds = ds.map(lambda x: x)` before adding the column. ## Actual results Specify the actual results or traceback. ```python --------------------------------------------------------------------------- ArrowInvalid Traceback (most recent call last) /var/folders/l4/2905jygx4tx5jv8_kn03vxsw0000gn/T/ipykernel_6301/868709636.py in <module> 1 from datasets import load_dataset 2 ds = load_dataset("tweets_hate_speech_detection")['train'].select(range(128)) ----> 3 ds = ds.add_column('ones', [0]*128) ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 183 } 184 # apply actual function --> 185 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 186 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 187 # re-apply format to the output ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 395 # Call actual function 396 --> 397 out = func(self, *args, **kwargs) 398 399 # Update fingerprint of in-place transforms + update in-place history of transforms ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_column(self, name, column, new_fingerprint) 2965 column_table = InMemoryTable.from_pydict({name: column}) 2966 # Concatenate tables horizontally -> 2967 table = ConcatenationTable.from_tables([self._data, column_table], axis=1) 2968 # Update features 2969 info = self.info.copy() ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/table.py in from_tables(cls, tables, axis) 715 table_blocks = to_blocks(table) 716 blocks = _extend_blocks(blocks, table_blocks, axis=axis) --> 717 return cls.from_blocks(blocks) 718 719 @property ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/table.py in from_blocks(cls, blocks) 663 return cls(table, blocks) 664 else: --> 665 table = cls._concat_blocks_horizontally_and_vertically(blocks) 666 return cls(table, blocks) 667 ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/table.py in _concat_blocks_horizontally_and_vertically(cls, blocks) 623 if not tables: 624 continue --> 625 pa_table_horizontally_concatenated = cls._concat_blocks(tables, axis=1) 626 pa_tables_to_concat_vertically.append(pa_table_horizontally_concatenated) 627 return cls._concat_blocks(pa_tables_to_concat_vertically, axis=0) ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/table.py in _concat_blocks(blocks, axis) 612 else: 613 for name, col in zip(table.column_names, table.columns): --> 614 pa_table = pa_table.append_column(name, col) 615 return pa_table 616 else: ~/git/semantic-clustering/env/lib/python3.8/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.append_column() ~/git/semantic-clustering/env/lib/python3.8/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.add_column() ~/git/semantic-clustering/env/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/git/semantic-clustering/env/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowInvalid: Added column's length must match table's length. Expected length 31962 but got length 128 ``` ## Environment info - `datasets` version: 1.11.0 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 5.0.0 Hi, the `select` method creates an indices mapping and doesn't modify the underlying PyArrow table by default for better performance. To modify the underlying table after the `select` call, call `flatten_indices` on the dataset object as follows: ```python from datasets import load_dataset ds = load_dataset("tweets_hate_speech_detection")['train'].select(range(128)) ds = ds.flatten_indices() ds = ds.add_column('ones', [1]*128) ```
[ -0.2274190784, -0.1898314059, -0.008905299, 0.0325090215, 0.0982831195, 0.0415741503, 0.0728504211, 0.1837980747, 0.060487546, 0.1647535264, 0.2048402131, 0.6761353016, 0.0139966682, -0.3138835132, 0.0691088885, -0.2314470708, 0.0780237466, 0.1225908697, -0.3308290839, -0.0652324706, -0.3497134447, 0.0132753793, -0.3354176581, -0.3151188791, -0.3525306284, -0.1137232408, -0.1477193087, -0.0766474158, -0.3253405988, -0.3277155161, 0.0815928727, -0.3840056956, 0.0551321879, 0.2379103452, -0.0001264378, -0.1121125221, 0.2349813581, -0.1064972281, -0.2713171244, 0.0904979259, -0.1300848722, -0.375325501, 0.147368744, -0.1593485624, 0.1864857972, -0.1655193269, -0.6239042878, -0.3172655702, -0.0759104341, 0.1652895659, 0.1614539623, 0.2517941594, 0.0120389611, -0.2805072665, -0.0970274657, 0.1960536242, -0.2620949149, 0.3448800445, 0.0602685884, -0.0941635817, 0.3812074661, 0.3098255992, 0.2030230463, -0.0177221522, 0.1855840683, -0.0706436634, -0.0906358063, -0.0210475959, 0.4785787761, -0.0847309381, 0.714320004, -0.2248952687, -0.2491257787, -0.1734176725, 0.4096649289, -0.3938191831, -0.0271732807, -0.1862055659, 0.289766252, 0.0206640474, -0.1405393481, 0.0848095566, 0.1604089439, 0.1899271309, -0.0069549978, 0.5650565028, 0.2024694532, 0.3704702258, -0.1926405132, -0.1704320014, 0.008176133, 0.0942431688, -0.234547168, 0.3636321127, -0.3872013688, -0.2049814165, -0.2336308807, -0.2155936956, 0.1200500876, 0.3310538232, -0.1377871037, -0.2782111764, 0.3323388994, -0.2003704756, 0.2972339988, 0.3154055178, 0.0448103473, 0.6069281101, -0.3473197818, -0.2117923647, 0.3857119679, 0.0074287998, 0.1638016552, -0.2288595438, 0.3544316888, -0.2207026929, 0.1014278084, 0.0487021059, -0.2182030976, 0.2133062482, -0.1640474498, -0.0807816833, -0.1688757986, 0.1329697967, 0.1167243272, 0.0904152319, 0.1235693246, 0.3109089136, -0.1185304523, -0.0169276632, -0.2082298249, -0.0679130256, -0.0348822847, -0.0294252094, -0.0645576417, 0.3572278023, 0.2836534977, -0.0721226111, -0.2275485992, -0.2286400497, -0.1471446902, -0.0540056005, 0.1518873572, 0.2009019256, -0.2485598177, 0.0838381052, -0.0692494661, -0.3781671524, -0.1850914657, 0.3647523522, -0.2289005518, -0.2965631485, -0.609218061, 0.0443058684, 0.0293096006, -0.1413225532, 0.1089124456, 0.2688698173, 0.4819933474, -0.1184431612, 0.4236476719, -0.3621311784, -0.3157013953, -0.1269384474, 0.1514499485, 0.2686060071, -0.8413775563, -0.0652503073, 0.0082480609, 0.2485843599, 0.1492479593, 0.2491779923, -0.0317912996, -0.115683645, 0.1023322567, 0.27500844, 0.4440470934, 0.2298653722, -0.8025742769, -0.1254060268, -0.4141766429, 0.1022444665, -0.1190385595, 0.1956772208, 0.0839706063, 0.201296702, 0.3524822593, 0.0956384689, -0.0832369477, -0.1414693296, -0.3857778311, -0.1018518731, 0.2032630146, -0.1336514354, 0.0435378402, -0.0106333531, 0.3127953112, -0.0638053864, 0.3429012299, 0.3277736604, 0.203877151, 0.3033575416, 0.2194055468, -0.0338492729, 0.2668207586, -0.2382797748, -0.2710857987, 0.0977192819, 0.1223185956, -0.1519711167, -0.1563116461, -0.2403455824, -0.7025290132, 0.2183455527, 0.1364160329, 0.0053382739, -0.0692307055, -0.0590433478, 0.2180900574, -0.1341992319, -0.0326832384, -0.0548645109, -0.3558379412, 0.1471113116, -0.1049339548, 0.2896158695, 0.05344861, -0.3693040311, -0.2833219767, 0.1731370986, 0.1423821747, 0.1439751834, -0.3318285048, 0.5284384489, -0.0250576138, -0.1870956719, -0.0710225701, -0.3655415773, 0.1858621389, -0.0491629466, 0.2788017392, -0.0748980269, 0.178384155, 0.0045651197, 0.0118033001, -0.0678273588, -0.2379914522, 0.2784356773, -0.3470551372, -0.1087516993, 0.0590350255, 0.1315244436, -0.1129915044, -0.3320049047, -0.2876388729, 0.0122851916, -0.0364269577, -0.0151261818, -0.2295774519, 0.0601146817, 0.2146399021, -0.0264007822, 0.1114842296, 0.1653432995, -0.2672158778, 0.1005397141, 0.3662689328, 0.2415159792, 0.7434339523, 0.1991257519, 0.0939248055, -0.0243317969, -0.1202088147, -0.0079243965, 0.0465922207, -0.048389636, 0.0148668624, 0.2591740489, 0.2337098122, -0.1083143055, -0.0253788978, 0.3794060647, 0.1265304387, 0.1463616192, -0.3006023467, 0.0304231942, -0.3964523673, 0.1090058312, -0.1138177961, -0.1068867445, -0.0472331196, -0.1677694321, 0.0350237973, 0.0338078737, -0.2729738057, 0.2755670846, -0.4887413383, 0.1287100613, 0.2696686983, -0.1172124222, 0.1353976429, 0.1072929353, -0.1601349413, -0.0256596282, -0.3478005826, 0.0767981857, 0.1265492141, 0.3528584838, -0.0809805989, -0.1846956611, -0.6639261842, -0.0905881822, -0.1658450365, 0.1347124726, 0.1048664674, 0.1017711684, -0.1720081866, -0.1064295471, 0.1442971528, 0.2994417846, 0.0071021095, 0.055297859, 0.0515188202, -0.121150136, -0.1023783833, -0.4178761542, -0.2243614197, -0.2537751198, 0.254355371, 0.1677350998, -0.0982268378, -0.1927155703, 0.4928369522, -0.3301515281, 0.0152290873, -0.0172037948, -0.3184478879, 0.3683969975, 0.4220623076, -0.0695863366, -0.1449094564, 0.0337170511, -0.2432206422, -0.0239139739, 0.0918517709, -0.147207424, 0.093353048, -0.1383072734, 0.1208330691, -0.0324511752, 0.2197683156, 0.5915471315, -0.0773881599, 0.1023479179, -0.1245046854, -0.4013104439, 0.2273925543, 0.2349446714, 0.5312865973, -0.1336194128, 0.4529953301, -0.0000410005, 0.2885744274, 0.0917193815, -0.2183243781, -0.0316433012, -0.2098074406, 0.1782774925, -0.3310293555, 0.0301836506, -0.2201042771, -0.0530983061, -0.0377529562, -0.0310936533, 0.0038577504, -0.2196577638, 0.2738205492, 0.0069024935, 0.0954335853, 0.132064268, 0.0047289617, -0.1869535744, -0.0142249018, 0.2118298113, 0.2793754935, -0.2753640711, 0.033407703, -0.1057044491, -0.2404880226, -0.0680908486, -0.0263270251, -0.43331182, -0.0451962091, -0.2838223279, 0.3899295926, 0.1940865517, 0.5467463732, 0.1754099131, -0.5557870865, 0.1311585903, 0.2818829715, 0.2410376668, -0.3274645209, -0.4251193404, 0.0470248833, 0.1985603869, -0.4720600843, -0.1163347363, 0.0849930495, -0.0265571531, 0.0530413873, 0.1417139471, -0.1842364222, 0.3784876168, 0.5383035541, 0.2780978084, -0.1354471147, -0.1748767942, -0.2113418877, -0.1154456511, 0.0383575931, 0.2666165233, 0.0506882966, 0.119037576, 0.334777683, -0.0588507131, -0.2179224938, -0.4106578231, -0.2320041507, 0.1078913659, 0.5795091391, 0.1309522688, 0.3434165716, -0.1727490276, 0.1780848354, 0.1462426186, 0.6778903604, -0.3160173297, -0.1287685186, 0.1859259009, -0.2585471869, 0.2852410972, 0.3564648628, 0.1048219949, 0.4273754954, -0.0976125598, 0.1615413427, -0.1236962378, -0.3316588402, 0.3483014107, -0.0364915207, 0.1592891216, -0.1429036707, 0.5838421583, 0.0557398871, -0.064068608, 0.5355708599, 0.385529846, -0.0477326177, 0.1789872199, 0.2290593386, 1.011983037, 0.3987326324, -0.2096709013, 0.1493920386, -0.6083499193, 0.1385128945, 0.1710829437, 0.0415348671, -0.1949031055, -0.2967477441, 0.106292747, -0.0384659842, 0.0778826177, -0.038350042, -0.0741887093, -0.0225151088, -0.4111107588, -0.0608639047, -0.0994132534, 0.0356370062, -0.2062988132, -0.1018423736, 0.0768306404, 0.0144520402, 0.1541111469, 0.106199041, -0.0259001683, 0.283957541, -0.3806118965, -0.5120563507, -0.0994392782, 0.0156710595, 0.1089029536, 0.0575727262, 0.0102586541, -0.4089050889, 0.1461760104, -0.1549655497, -0.0874753594, 0.1336855292, 0.1438665837, 0.3423866928, 0.2724770904, 0.2239225209, 0.1456789672, 0.1136242449, 0.0948996842, 0.2152920663, -0.2369083762, 0.09165591, -0.0856528282, -0.1643974483, -0.2890010774, 0.1409196407, -0.0327979662, -0.5026829243, -0.3177193105, 0.107299149, 0.1824516505, -0.1735682786, 0.037003465, -0.2570528686, 0.01212525, 0.2574301958, 0.1259056479, -0.3205456734, -0.1250507385, 0.7137429118, 0.2430963814, 0.0370571166, 0.5456559658, -0.0620370433, -0.2005741596, 0.0578544438, -0.2416700423, 0.194167763, -0.4723769426, 0.038765844, -0.3199875951, 0.101913482, 0.0100214817, 0.0781955421, 0.2685828507, 0.2327013314, -0.3625872135, 0.1678192616, -0.3429450989, 0.3639062941, 0.1460614204, 0.3142026961, -0.1675260812, -0.2009891123, -0.0601717345, 0.3776643872, -0.1690474153, -0.285752207, 0.0747618526, 0.2211057842, 0.1200472042, 0.2612716556, -0.2349200547, -0.1687365919, 0.0742571652, 0.413266331, 0.1892870963, -0.0425817482, -0.0177382976, 0.1136992723, 0.1303788126, 0.1159598157, -0.1941689849, -0.3900862038, -0.0220029652, -0.0733952522, -0.0131698996, 0.0438191593, -0.1892608702, -0.1686126739, 0.1748156697, -0.2541182041, 0.0460728407, 0.3447582722, -0.109952718, 0.1676512063, -0.0650227368, 0.185934782, 0.2655058801, 0.1638244987, -0.3548032641, 0.0101155229, -0.2249087989, -0.0252966508, 0.2344941348, -0.219129771, 0.1044157594, -0.0908756256, 0.2551119924, 0.2529684901, -0.0010132566, -0.3300301135, 0.0061336234, 0.0920823738, -0.3814070225, -0.0281082895, -0.3035819232, 0.2432118356, 0.0974199921, 0.3086269796, 0.0931273997, 0.1900093704, -0.3261250854, 0.1838024557, 0.2700859904, -0.1610840112, -0.04979546, 0.8157373071, 0.0274308622, -0.0618521497, 0.3706047833, 0.2224712372, 0.2035603225, 0.0609658286, 0.0033501536, 0.479619652, 0.2929709256, 0.0817174315, -0.1237498522, 0.0599611029, 0.198315531, 0.0828077719, 0.0365381241, -0.0929826796, 0.4118366838, -0.0237147659, 0.0725681186, -0.3503088951, -0.0844897628, 0.0756561235, -0.185980469, 0.0007158332, -0.6281940937, -0.1837960482, -0.3110829592, -0.3594714999, -0.1047758609, -0.0567479357, 0.7304555774, -0.280841738, 0.0407900624, -0.258308202, -0.2098980695, 0.0031496221, 0.0761210248, -0.3128357232, 0.2475763261, 0.2272416651, -0.0591455474, 0.3323107362, 0.0456518307, 0.3254355788, 0.132834807, 0.2016150653, -0.0929412842, 0.2371741682, -0.2348896265, 0.2276572734, 0.3966604471, 0.1293009669, -0.1632918566, 0.1752873063, 0.0534346774, -0.0952452421, 0.2036038786, 0.1524477601, 0.4200278819, -0.3563270271, 0.1430584341, -0.1308433563, -0.3367047608, -0.0797394738, -0.0470324531, -0.0371608511, 0.0862185955, 0.0980570838, -0.0910401642, 0.0292177349, -0.1615634859, 0.0033695139, -0.1287704408, 0.1948774308, 0.2144073844, -0.2921977639, 0.0550785959, -0.1844687462, -0.2614015937, -0.0671690628, -0.5196353197, -0.5024824142, 0.0391685255, 0.2446736395, 0.2013410777, -0.0925041214, 0.4790176451, 0.2301712781, 0.0132906213, 0.4627123177, -0.0188113898, -0.2972559035, -0.1463596076, 0.0459297299, 0.0431481972, -0.184625566, 0.0413142666, 0.2230615318, -0.1242954358, -0.0850945488, -0.1141511574, 0.1872735322, 0.2204162478, 0.4074780643, 0.0221224111, 0.5489422083, 0.1126402393, 0.2246767879, -0.2629415691, -0.3424994946, -0.2419400662, 0.2906065583, 0.0979027972, 0.3872918189, 0.0580062419, 0.0127177909, 0.125077188, 0.1995157301, -0.3370286226, 0.1343456507, -0.2346697897, -0.0472323895, -0.193932429, 0.0765419453, 0.1249756142, 0.0501424186, 0.2796939015, 0.3591466844, 0.1647762507, -0.4475568533, 0.4196079373, 0.0277059637, -0.2497128695, -0.0874986351, 0.0219651051, 0.3229509294, -0.1594498008, -0.2185303569, -0.1609866321, 0.3049101532, -0.1044655666, 0.3495869935, 0.1398432851, -0.0841189176, 0.1383666992, -0.2282847166, 0.5186859369, -0.2141584754, 0.1019177288, -0.2032626569, -0.3424541652 ]
https://github.com/huggingface/datasets/issues/2767
equal operation to perform unbatch for huggingface datasets
Hi @lhoestq Maybe this is clearer to explain like this, currently map function, map one example to "one" modified one, lets assume we want to map one example to "multiple" examples, in which we do not know in advance how many examples they would be per each entry. I greatly appreciate telling me how I can handle this operation, thanks a lot
Hi I need to use "unbatch" operation in tensorflow on a huggingface dataset, I could not find this operation, could you kindly direct me how I can do it, here is the problem I am trying to solve: I am considering "record" dataset in SuperGlue and I need to replicate each entery of the dataset for each answer, to make it similar to what T5 originally did: https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L925 Here please find an example: For example, a typical example from ReCoRD might look like { 'passsage': 'This is the passage.', 'query': 'A @placeholder is a bird.', 'entities': ['penguin', 'potato', 'pigeon'], 'answers': ['penguin', 'pigeon'], } and I need a prosessor which would turn this example into the following two examples: { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'penguin', } and { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'pigeon', } For doing this, one need unbatch, as each entry can map to multiple samples depending on the number of answers, I am not sure how to perform this operation with huggingface datasets library and greatly appreciate your help @lhoestq Thank you very much.
62
equal operation to perform unbatch for huggingface datasets Hi I need to use "unbatch" operation in tensorflow on a huggingface dataset, I could not find this operation, could you kindly direct me how I can do it, here is the problem I am trying to solve: I am considering "record" dataset in SuperGlue and I need to replicate each entery of the dataset for each answer, to make it similar to what T5 originally did: https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L925 Here please find an example: For example, a typical example from ReCoRD might look like { 'passsage': 'This is the passage.', 'query': 'A @placeholder is a bird.', 'entities': ['penguin', 'potato', 'pigeon'], 'answers': ['penguin', 'pigeon'], } and I need a prosessor which would turn this example into the following two examples: { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'penguin', } and { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'pigeon', } For doing this, one need unbatch, as each entry can map to multiple samples depending on the number of answers, I am not sure how to perform this operation with huggingface datasets library and greatly appreciate your help @lhoestq Thank you very much. Hi @lhoestq Maybe this is clearer to explain like this, currently map function, map one example to "one" modified one, lets assume we want to map one example to "multiple" examples, in which we do not know in advance how many examples they would be per each entry. I greatly appreciate telling me how I can handle this operation, thanks a lot
[ -0.0286770985, -0.7930670977, 0.0335283875, -0.0818498656, -0.0049163997, -0.1033487245, 0.2304781675, -0.0015911907, 0.4284727871, 0.2395399511, -0.3240567446, -0.045957692, 0.0236225575, 0.4699031115, 0.1768154055, -0.2348046303, 0.0796520188, 0.1120869815, -0.2576455772, -0.0738277361, -0.1641777605, -0.0214593373, -0.5562419295, -0.1872488856, 0.3530069888, -0.325638622, -0.1314133704, -0.231797412, -0.1461293548, 0.3155249357, 0.3914791942, 0.3159995675, 0.1450020075, 0.4359942675, -0.0001249961, 0.2683010697, -0.2683855295, -0.1601194441, 0.1241354123, -0.1457854062, -0.1318628341, -0.0308621414, -0.086130172, -0.2909470797, -0.1553767473, 0.0247165784, 0.0838056952, -0.3370774388, 0.6689298749, 0.1163535565, 0.0033910573, 0.2023025453, -0.0828164369, 0.0687011927, -0.0968774408, 0.0643508732, 0.0033201426, 0.0944173187, 0.0819832757, -0.0196641721, 0.0691595301, 0.3062365651, -0.0207523182, -0.0487892441, 0.0508213192, 0.0709671825, 0.0294625927, -0.4244829714, 0.0995177925, 0.3601127863, 0.1911817491, -0.3335203528, -0.5461019874, -0.0424865186, 0.0593185797, -0.0293310918, -0.2361652553, 0.157397151, -0.1050996333, 0.2068410814, -0.4860779047, -0.1199069843, -0.0401412249, 0.0794256255, 0.1040409207, -0.088365823, -0.3136321902, 0.3048330843, 0.0857106, 0.0686642528, -0.1580192596, -0.1046710461, 0.1547604054, 0.2256593108, -0.614353776, -0.219861567, -0.2562039793, -0.0180305876, 0.3166290522, 0.3536274433, 0.5462896228, -0.054885827, -0.08120884, 0.1295621395, 0.0867580622, 0.5366974473, -0.081400767, -0.2418982238, -0.0120940357, 0.134887293, 0.0322755948, -0.0191910453, 0.3165331781, -0.0755865574, -0.3641899824, 0.153530702, 0.3737835288, -0.0768213868, -0.3276384473, -0.2054921389, -0.3553683162, -0.1100301147, 0.0133681037, 0.1497780532, -0.1751029938, 0.0324243568, 0.1829238385, 0.0582389422, -0.2670661509, -0.0648585409, -0.1565459967, 0.2346506864, -0.1623343229, 0.0303170085, -0.0835499018, -0.1439881325, 0.014388077, 0.4878042936, -0.0132800117, -0.049459517, 0.2268328965, -0.1175176054, 0.3311549723, -0.0129142422, 0.1702437997, -0.1079319865, 0.1320791543, 0.04810597, -0.0473229811, -0.0201095603, -0.1124599874, -0.2519688606, 0.07918147, -0.034201365, -0.2808184624, 0.0415977128, -0.2271562815, 0.3425576389, -0.31508407, 0.3320272863, 0.4480585456, 0.3958910406, -0.0926603079, -0.0812169611, 0.3662142456, 0.0135230869, -0.0299310014, -0.2975440323, 0.3306924701, -0.02061891, 0.2846173644, 0.2693358064, -0.0772318318, 0.2560566068, -0.2479435205, -0.1416990757, 0.2170894593, -0.1550876051, -0.4226649106, 0.2669496834, -0.1116819307, 0.3041910529, -0.0293436609, 0.0453689098, -0.0606512278, 0.1691663116, -0.021125149, 0.2345537245, -0.0976086333, -0.0916920304, -0.0077354759, -0.1554213315, 0.3678480983, -0.1237491593, -0.112393938, 0.3373726308, 0.1141549796, -0.0311685689, 0.2400602102, -0.4657919407, 0.2133106887, 0.2559936941, 0.2300514728, 0.1441582143, 0.2475071251, -0.1622307599, -0.396697998, 0.1127591282, -0.3874373138, 0.1097859964, 0.1357524246, -0.318718791, -0.1147376895, -0.2083288133, -0.115875423, -0.0275499895, -0.0913064405, -0.0769159645, 0.4252486825, 0.0141550079, -0.404058367, 0.2884081602, -0.1211189032, 0.1116676331, -0.4417365193, 0.0506431237, 0.2840942442, 0.0014733076, -0.0312429704, 0.1696155667, -0.0143170748, -0.3851286769, 0.0938998461, 0.3167589605, -0.2716915905, -0.0050709285, -0.0730886012, 0.0714597255, 0.0649731457, -0.107230261, -0.1467596143, 0.1161519438, 0.0738631338, -0.0635086298, -0.1146609634, 0.7550533414, -0.0631499141, 0.1573880613, 0.1018701941, -0.0422722176, -0.155363977, -0.255864203, -0.1365819871, 0.2526301146, 0.1801749319, -0.2043044567, 0.2563438714, -0.1358104348, -0.2275714129, -0.2907538712, 0.2738242745, 0.0077714324, 0.3027174473, 0.1412795782, 0.0636070222, 0.1619963646, 0.0168050844, -0.16538544, 0.3542359471, -0.0300221667, 0.2275404334, 0.3308394253, 0.2882862389, 0.1496153921, 0.0311068445, -0.2790498435, -0.0408796668, -0.028925743, 0.0171887949, 0.086566031, -0.3360082507, -0.011224702, 0.0899161026, 0.1401437372, -0.0238195062, -0.0793162659, -0.1206800044, -0.1589751095, -0.1988611519, 0.0308303908, -0.2242707312, -0.0280897059, -0.0675438792, 0.0957194567, 0.0862430185, 0.4852783084, 0.3077238798, 0.4453644753, -0.0495043397, 0.392165482, -0.0835310742, 0.0408276618, 0.0993404835, -0.0459783487, -0.1255239248, -0.2114328593, 0.2040087283, -0.0066473112, -0.0031043738, -0.5141177177, -0.2244872749, 0.2302787751, 0.0412571393, -0.2499294132, 0.376658529, 0.0238640569, -0.5575554371, -0.1051275507, -0.02976574, -0.0915048718, -0.5620679855, 0.2115027606, -0.1757508814, 0.1443347037, -0.2802773714, -0.339125514, -0.0725458339, -0.2252957523, 0.9792707562, -0.3612008095, 0.0411206782, 0.1631682366, -0.2286429256, 0.0631906092, -0.0209395755, 0.1144875214, -0.0962951332, -0.5435053706, -0.1717205495, 0.0018518083, -0.1162727624, -0.1359869242, -0.0556081608, 0.0778618008, 0.5772358179, 0.0053353831, -0.1905709654, -0.3950427175, -0.2697647214, -0.0862358063, 0.4126006961, 0.2028817236, -0.3294511437, 0.1059354022, -0.0606169142, -0.049836129, 0.2333621085, 0.0149460509, -0.0965531841, 0.2160253674, -0.0281821303, 0.3622386158, 0.3341760933, 0.3676952124, -0.1023177356, 0.0332148522, -0.2708882987, -0.0947810188, 0.1031511724, -0.3197563887, 0.0953791216, 0.124468796, 0.2571999431, 0.0873055682, -0.2040505111, 0.2834175825, -0.1026235893, -0.0883006603, -0.307508707, -0.3365743756, 0.0534681156, -0.2100791931, 0.2320922613, -0.1446569562, -0.2437558919, -0.0363591723, -0.1027689725, 0.2560219169, 0.2257692516, 0.1445207596, 0.1072365046, -0.4300119281, -0.2547136545, -0.4477871358, 0.6707229614, -0.0858912617, 0.234378159, 0.0605879575, -0.1017304808, 0.1097608134, 0.060818579, 1.0629655123, -0.1269097179, -0.115079388, -0.4581471086, -0.5178864002, -0.355479598, 0.2233660072, -0.2517983615, 0.5846655369, -0.2207660824, 0.4985589385, -0.3260099292, -0.2020830065, 0.3566174209, -0.0216870233, -0.111352317, -0.112688601, -0.051789768, -0.5832820535, -0.166962713, -0.009634655, 0.1398488879, 0.1057275757, 0.0736753494, 0.0825316682, -0.3450148702, 0.2281896472, 0.3295409679, -0.12239445, -0.0531045347, 0.2326720059, -0.1102340966, 0.1479383409, 0.302421689, -0.1586879194, 0.1321973056, -0.0909600183, -0.4877895117, -0.209470436, 0.1972487271, 0.4393365085, -0.0067395866, 0.154726997, 0.5029053092, 0.3022939861, 0.2137033343, -0.1864861846, 0.0794913918, 0.0667035505, 0.4177776575, -0.2173392326, -0.3686798811, 0.2620944679, 0.2697604895, -0.1836903989, 0.3210774958, 0.359731108, -0.1764505655, 0.0623175651, -0.0336878002, 0.9954263568, -0.2392772287, 0.0327423327, 0.0933546871, 0.099301815, 0.5693762302, -0.3401609361, 0.1846494675, -0.1260446161, -0.4899756014, -0.1357161701, -0.07991907, 0.0968288258, 0.1936997771, -0.3488970995, 0.3828971982, 0.2853859067, -0.0825760663, -0.06413728, -0.0280251056, -0.1656273156, -0.1071334779, -0.1467168182, -0.1079679951, 0.0220567696, 0.5606476068, 0.0056523457, -0.0185837094, 0.2328844965, -0.0159533396, -0.0225529447, -0.1988407671, -0.5518347025, 0.2577759922, 0.2468710542, -0.0929160118, -0.0591982268, 0.60659343, 0.5822289586, -0.1418755502, 0.0419403389, -0.1534199715, 0.0694888532, 0.0006191395, -0.2725732923, -0.0609655827, 0.1631484926, 0.0406529382, -0.2638305128, 0.0023189634, 0.0961164683, 0.1285232753, -0.0629006624, 0.0654474869, -0.0298109502, -0.3008281887, -0.0218403637, 0.1121988744, -0.1306967586, 0.1083187833, -0.087203227, -0.0722608268, -0.5252494812, 0.1937131435, -0.1698547602, -0.4661312699, 0.0094294548, 0.3949134052, 0.2523918152, -0.1013389975, 0.3541483283, 0.0105433986, 0.1293395013, -0.0748832449, -0.2623842359, 0.3379666507, -0.4243890047, 0.4755458236, -0.3102811575, 0.2922956049, 0.0742958188, 0.1960968822, 0.1080117673, 0.204384923, -0.2514824271, -0.2861174047, -0.1518701315, 0.0957857519, 0.2197881192, 0.1917153895, 0.0758665055, 0.2850637138, 0.1013220474, -0.1431697756, -0.1664752066, 0.2582516074, -0.2909669876, 0.2511137724, 0.1690470874, -0.0266358368, 0.1901880503, 0.2332656085, -0.0508921221, 0.2125862539, -0.1234487891, -0.0858648568, -0.0335240699, 0.1654634029, -0.0731751472, 0.0120546222, 0.2206752598, 0.2774681449, 0.001632005, -0.1156457141, 0.6620073318, 0.3135235906, 0.1242310852, 0.4530086815, -0.0392361544, -0.0300652459, -0.430275768, -0.2596963942, 0.2056226432, 0.0129285492, -0.0419481248, 0.0790590495, -0.0580805205, -0.0484756902, -0.0968899131, -0.0315731242, 0.5867379904, -0.2456668913, -0.0277612321, 0.1022152901, -0.0098980144, -0.3602334261, 0.3858981729, -0.1729993224, -0.2082861066, 0.0613639802, -0.0469940417, 0.014611573, -0.0997827798, 0.2281923592, 0.3033626378, -0.2837219834, 0.0247393921, 0.3674831688, -0.1126343757, 0.2506141663, -0.1545862854, -0.2312273979, -0.0144273844, -0.1954029351, 0.1038140208, 0.4507314563, -0.0486227721, 0.0728780702, -0.0790005997, 0.1152459085, 0.3343010247, -0.0837698281, -0.1827020794, 0.4700677693, -0.2861005664, 0.2373532355, 0.3596650958, -0.4437981248, 0.1341638118, 0.4912833571, 0.0105597675, 0.4207001925, -0.0713461265, 0.5603380799, -0.0149858389, -0.2897995114, 0.1662005782, 0.4697262943, -0.1804599315, -0.1805504262, -0.141983211, -0.1482178569, -0.1495567411, 0.0911208838, -0.0643828213, -0.0144679695, 0.3167574406, 0.0442408919, 0.1189552099, 0.0375942886, -0.145850271, 0.3263545334, 0.3060723245, -0.0280868188, -0.1908962876, 0.3235075772, -0.2239847481, 0.0667229146, 0.6331106424, -0.0457766838, -0.015191175, -0.3315425515, 0.6930211186, 0.235672161, -0.1277491301, 0.0481517017, -0.029336324, 0.0372451991, 0.0154021978, -0.0318468325, -0.0016326196, -0.0284104757, 0.1966879666, -0.1164306104, 0.1457047611, -0.4811051488, 0.0732529983, -0.0500029139, -0.0742098391, -0.2154110968, 0.2200536281, -0.2281733602, -0.3667743802, 0.1172429025, -0.1666599661, 0.0750225186, 0.119306013, -0.0270118639, -0.1834550947, 0.2962085307, 0.3321764469, 0.4024864733, -0.10929057, -0.1897550523, -0.0769579709, 0.0380616598, 0.2055290937, -0.2358454317, 0.3291261792, 0.0614928678, -0.0284658037, 0.0228518285, -0.0437224209, -0.1772938371, -0.2516961098, 0.115890041, -0.3434188068, -0.2081309408, -0.0887908563, 0.2309343964, 0.2883775234, -0.336561799, 0.0835810453, 0.3303907514, -0.2150848806, -0.0639268383, 0.4400002062, -0.0069968477, 0.0228787642, 0.0210185405, 0.1909421682, -0.1019743234, -0.1159370989, -0.0735418648, 0.4731509984, 0.1208461672, -0.3382174373, 0.3409435153, -0.0889389515, 0.1021975204, -0.2532980442, -0.3499636948, -0.0432650782, 0.197689414, 0.5831398964, -0.4377908111, -0.2445884347, 0.1392473876, 0.0341704041, -0.0471584834, 0.3726724386, 0.8478613496, -0.1141432226, -0.0920378417, -0.1728165448, -0.0630583838, 0.5526185036, -0.2391415089, -0.1933099478, 0.0768837631, 0.2288536131, -0.1346840858, -0.425227344, -0.6996856332, 0.1381091475, 0.2961442471, -0.0848563537, -0.1005775407, 0.3815334439, -0.0538220294, -0.1655150354, 0.091375649, 0.0765392929, 0.3595650196, -0.3701280355, 0.2556759119, -0.3200045526 ]
https://github.com/huggingface/datasets/issues/2767
equal operation to perform unbatch for huggingface datasets
Hi, this is also my question on how to perform similar operation as "unbatch" in tensorflow in great huggingface dataset library. thanks.
Hi I need to use "unbatch" operation in tensorflow on a huggingface dataset, I could not find this operation, could you kindly direct me how I can do it, here is the problem I am trying to solve: I am considering "record" dataset in SuperGlue and I need to replicate each entery of the dataset for each answer, to make it similar to what T5 originally did: https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L925 Here please find an example: For example, a typical example from ReCoRD might look like { 'passsage': 'This is the passage.', 'query': 'A @placeholder is a bird.', 'entities': ['penguin', 'potato', 'pigeon'], 'answers': ['penguin', 'pigeon'], } and I need a prosessor which would turn this example into the following two examples: { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'penguin', } and { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'pigeon', } For doing this, one need unbatch, as each entry can map to multiple samples depending on the number of answers, I am not sure how to perform this operation with huggingface datasets library and greatly appreciate your help @lhoestq Thank you very much.
22
equal operation to perform unbatch for huggingface datasets Hi I need to use "unbatch" operation in tensorflow on a huggingface dataset, I could not find this operation, could you kindly direct me how I can do it, here is the problem I am trying to solve: I am considering "record" dataset in SuperGlue and I need to replicate each entery of the dataset for each answer, to make it similar to what T5 originally did: https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L925 Here please find an example: For example, a typical example from ReCoRD might look like { 'passsage': 'This is the passage.', 'query': 'A @placeholder is a bird.', 'entities': ['penguin', 'potato', 'pigeon'], 'answers': ['penguin', 'pigeon'], } and I need a prosessor which would turn this example into the following two examples: { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'penguin', } and { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'pigeon', } For doing this, one need unbatch, as each entry can map to multiple samples depending on the number of answers, I am not sure how to perform this operation with huggingface datasets library and greatly appreciate your help @lhoestq Thank you very much. Hi, this is also my question on how to perform similar operation as "unbatch" in tensorflow in great huggingface dataset library. thanks.
[ -0.0424980409, -0.7478793859, 0.0441974252, -0.0638017505, 0.0602152459, -0.0741191059, 0.2164922804, 0.0234037451, 0.4041273594, 0.2328331769, -0.3757910132, -0.0309471469, 0.0087436475, 0.4603342414, 0.2217880189, -0.2381002009, 0.0493122041, 0.0999174416, -0.2166883498, -0.0692888945, -0.0773236305, -0.011773074, -0.5677037835, -0.1649728268, 0.3511194885, -0.2511515617, -0.1151800305, -0.2309314013, -0.1251271814, 0.2847948074, 0.4793151021, 0.2426974028, 0.1669387221, 0.4491542578, -0.0001256292, 0.2773345411, -0.2205357403, -0.1515979618, 0.1575897932, -0.1510487795, -0.1850502491, -0.0384177193, -0.0539827421, -0.306835264, -0.1764234602, -0.0184583645, 0.0631065592, -0.3345096111, 0.6362299919, 0.1719637364, 0.001331877, 0.2099072933, -0.0798648894, 0.0820845515, -0.1022054255, 0.0367431194, -0.0256353803, 0.1146046072, 0.0846524239, 0.0455242172, 0.0681280717, 0.2344956696, -0.056462273, -0.0299290866, 0.0353235267, 0.1095689014, -0.0328946412, -0.3611135185, 0.136439994, 0.393736124, 0.2183607817, -0.3737196326, -0.5333202481, -0.026811786, 0.0756630152, -0.0685919598, -0.2059100568, 0.2482979596, -0.0961422995, 0.2391860187, -0.4491076767, -0.1502821743, -0.0860688537, 0.013713005, 0.0574081838, -0.100485757, -0.3021976352, 0.2693090439, 0.0576841161, 0.0820066631, -0.0920689851, -0.077009432, 0.1063659787, 0.1584074795, -0.6728428006, -0.244076699, -0.2414089441, 0.0239155516, 0.2683834732, 0.3667654395, 0.5453342199, -0.0524719171, -0.0262595303, 0.0717243701, 0.0509237163, 0.5504606962, -0.0927492231, -0.2812032402, 0.037321806, 0.1110851318, -0.0138823986, -0.0510666929, 0.32212165, -0.0530241281, -0.344066143, 0.1472050846, 0.3968830109, -0.1028701812, -0.35560444, -0.1796553284, -0.3000110984, -0.1298759878, 0.0673619807, 0.1227711216, -0.1877587438, 0.0165361799, 0.1142915636, 0.0416770652, -0.2851557732, -0.0781526119, -0.1623558253, 0.2975335419, -0.1561618596, 0.025050018, -0.0284831561, -0.2422839105, 0.0106544569, 0.4878165722, -0.0249351896, -0.0006228089, 0.2213855386, -0.1916825026, 0.2998882234, -0.0221224613, 0.1274335384, -0.1672379673, 0.117588453, 0.0563347638, -0.0360733047, 0.011005694, -0.0750045627, -0.2657647133, 0.0381359905, -0.0416549072, -0.3246124685, 0.0032482492, -0.1793220043, 0.2697193623, -0.3805999756, 0.4313860834, 0.4621521831, 0.3615432978, -0.0420180708, -0.0687466487, 0.4144027829, -0.0749239922, -0.067947194, -0.305403024, 0.3379549682, -0.0421893261, 0.3259536922, 0.2724405825, -0.0680563971, 0.3023757041, -0.231103152, -0.1620999426, 0.2351863384, -0.1755770445, -0.4458522201, 0.1876094043, -0.09784545, 0.2507427335, -0.0481090844, 0.0729168653, -0.0773575157, 0.222172752, -0.0441654287, 0.2555156052, -0.0487267449, -0.1383283287, -0.0155063421, -0.1830751896, 0.3481128216, -0.082495153, -0.0941850543, 0.3812472522, 0.1271147728, -0.0217739679, 0.2218706161, -0.455326885, 0.1601548344, 0.2863126695, 0.2274768353, 0.1333513707, 0.23195678, -0.1823994815, -0.3266887367, 0.1416943371, -0.3598377407, 0.0889272839, 0.115725413, -0.3049004078, -0.1305135339, -0.2349701226, -0.1013236716, 0.0059278179, -0.1083108708, -0.0970228761, 0.468878746, 0.0513626114, -0.4691465199, 0.3537303507, -0.1237798184, 0.1276917756, -0.4118321836, 0.0413683802, 0.2954883575, -0.0169276726, -0.0135377347, 0.2284950316, -0.0155148227, -0.3583825827, 0.0819732696, 0.308603406, -0.3341929913, 0.0336169079, -0.056882523, 0.0462706834, 0.0354424268, -0.1527608186, -0.1786394417, 0.0535833761, 0.0892217308, -0.011261344, -0.0550484322, 0.747780323, -0.0993614942, 0.1371468157, 0.1400215626, -0.056911204, -0.1730739176, -0.3248524666, -0.1202721, 0.2766092718, 0.2228628397, -0.202798903, 0.2167764604, -0.1463132501, -0.256046176, -0.3367407918, 0.3105782866, 0.0451066792, 0.3367244601, 0.1336296797, 0.0417049527, 0.2017521411, 0.0126551855, -0.1468299031, 0.4227995276, -0.0309493616, 0.2567649186, 0.379553318, 0.3169095516, 0.1312442571, 0.0841789842, -0.249098748, -0.0797815099, -0.0145393964, 0.0557714254, 0.0699485987, -0.3710449338, -0.004146412, 0.0700622499, 0.1621103436, 0.0241397992, -0.1014374718, -0.1798608005, -0.2002349496, -0.2028768957, 0.0098967776, -0.1672878414, -0.0132865869, -0.0906694084, 0.0028249207, 0.1491719782, 0.4050225616, 0.2213250995, 0.4259084761, -0.0962605998, 0.381069988, -0.1173517331, 0.0341568924, 0.0919178277, -0.0392953567, -0.1389831901, -0.1874711066, 0.2197641879, 0.01473286, 0.0398427472, -0.5104528069, -0.1632606387, 0.2542127669, 0.0426329076, -0.2061794251, 0.3554164767, 0.0567915477, -0.5357361436, -0.0846048743, -0.0282523576, -0.0885254294, -0.5490328074, 0.1930111051, -0.1596267521, 0.1691582352, -0.3059813082, -0.340626955, -0.0838260949, -0.2163716257, 0.9462260008, -0.3164282441, 0.0208243579, 0.1576194614, -0.3140147328, 0.1281805336, -0.0236967988, 0.1545455158, -0.0536156334, -0.5723292828, -0.1633878946, 0.0267132893, -0.1361406446, -0.1201191768, -0.0198404714, 0.1375267059, 0.5128785968, -0.0431778356, -0.1274819523, -0.4869635105, -0.2536954284, -0.0911312848, 0.4112827182, 0.1251698583, -0.3662733138, 0.1088480055, -0.0184604451, -0.0162020363, 0.2133469582, 0.0040533878, -0.0966629684, 0.259473294, -0.0480677448, 0.3650169373, 0.3248703182, 0.3047574162, -0.1051920205, 0.0402547047, -0.297283113, -0.0865996182, 0.0679808781, -0.3497262299, 0.1237853691, 0.1597071886, 0.3275420368, 0.1114403456, -0.1926477998, 0.3412342966, -0.1267319769, -0.0945029631, -0.2697208524, -0.3193696737, -0.0557215661, -0.1540184915, 0.2477356195, -0.1236863434, -0.1904551089, 0.0278493911, -0.1654296368, 0.2789090276, 0.2406211942, 0.141054675, 0.0966713727, -0.3829199672, -0.3035742342, -0.4883565903, 0.6454593539, -0.1398073286, 0.2618301511, 0.0665869564, -0.1270619333, 0.1306857169, 0.0341159217, 1.037058115, -0.0324872099, -0.1396745294, -0.4750311673, -0.4710189104, -0.3139975667, 0.1841607839, -0.2221709788, 0.5769687891, -0.2369396538, 0.3767881691, -0.2941348255, -0.2223187983, 0.3668452799, -0.0364616811, -0.0791644007, -0.1018245369, -0.0539003573, -0.6249425411, -0.0915393233, -0.0180136673, 0.0656028092, 0.1549858153, 0.0411961079, 0.1325083375, -0.3746033907, 0.1941815913, 0.3676535785, -0.1300130635, -0.0035212077, 0.1491788477, -0.100151591, 0.103187643, 0.323851198, -0.2297272235, 0.1300438493, -0.0321598351, -0.4681830108, -0.2133582085, 0.1570044309, 0.4705609381, -0.0856452063, 0.1072186232, 0.6108517051, 0.2382155061, 0.1436377764, -0.1965651661, 0.0670799688, 0.0644113347, 0.4300855398, -0.1884413213, -0.3638094664, 0.2624980509, 0.3062618971, -0.1562133878, 0.2497632056, 0.3646600842, -0.2032858729, -0.0084187426, -0.0541929193, 0.9401319027, -0.2121049017, 0.0104363328, 0.0546103083, 0.0788147748, 0.6255300045, -0.2705162168, 0.2517607212, -0.1583644152, -0.5409908891, -0.1582001448, -0.1358967274, 0.1604437083, 0.1070920527, -0.3282732964, 0.3783896565, 0.2835075855, -0.0956674218, -0.0340370089, -0.0009841174, -0.1824062169, -0.0806927681, -0.156554997, -0.1136663035, -0.0327011347, 0.5507887602, 0.0213549621, 0.0167272687, 0.2169837803, 0.0469502807, -0.0409512669, -0.1543097794, -0.4644550383, 0.2687177062, 0.3073607981, -0.1465979815, 0.0131556392, 0.6149058342, 0.6690638661, -0.1112764999, -0.0006845072, -0.120511882, 0.0516005084, 0.0170155577, -0.2183577269, -0.0521084666, 0.1305119693, 0.0501955822, -0.265019238, 0.0233012009, 0.1552674472, 0.1165156513, -0.0890501812, 0.0902366862, 0.0055770087, -0.2745074034, -0.0404990017, 0.1044758707, -0.1179059446, 0.1013722718, -0.0872136429, -0.0688395947, -0.4957571328, 0.1789331883, -0.1613688767, -0.4757240415, -0.0061027198, 0.3508871794, 0.2941738367, -0.0643246546, 0.4002087712, 0.0366971344, 0.1323278248, -0.0667802244, -0.266204834, 0.2626366615, -0.3881519437, 0.4740819037, -0.2939941883, 0.3173545897, 0.1067780703, 0.1131157726, 0.0162120666, 0.1288260072, -0.2889349461, -0.2663583159, -0.1245182455, 0.0764649212, 0.1795401126, 0.1779040694, 0.0750114471, 0.2766520381, 0.0476270914, -0.2402662486, -0.1558552533, 0.2842417657, -0.2833643258, 0.2184415162, 0.1326663345, -0.0157710519, 0.1630743891, 0.2165211588, -0.0567007959, 0.2261710614, -0.0547173098, -0.0868412405, -0.0172899067, 0.1616121829, -0.1124468446, 0.0084793195, 0.1674679816, 0.2956520319, -0.0330700055, -0.0734097958, 0.6825498343, 0.2951777577, 0.1258977354, 0.4761398733, -0.036272034, -0.0462831333, -0.458237052, -0.3013267517, 0.1785139441, 0.0314399749, -0.007261727, 0.1081376523, -0.0615027919, -0.0164689571, -0.1421905607, -0.0376239084, 0.5748140216, -0.2740879059, -0.0295526534, 0.0608417429, -0.0396307372, -0.3905900419, 0.4094206393, -0.1740115881, -0.2018861026, 0.0201809928, -0.0206284095, -0.0053495038, -0.1028337777, 0.2194721401, 0.292722553, -0.2715494931, 0.0251176208, 0.3670116663, -0.1269933581, 0.2906770706, -0.2144141644, -0.2452571392, 0.0469378494, -0.1940746009, 0.1204537526, 0.4268244803, 0.0451314598, 0.025243897, -0.0401615277, 0.0988047644, 0.2951336205, -0.0160155613, -0.1837644577, 0.4372754991, -0.2256073058, 0.2472947985, 0.3573015928, -0.4244353771, 0.1144537181, 0.4516220987, -0.0041885972, 0.4051043987, -0.0818890035, 0.545558095, -0.0006797314, -0.250179261, 0.1463157535, 0.4758294821, -0.1705469191, -0.1944054514, -0.0980265811, -0.1143439785, -0.0935431123, 0.1151863188, -0.0533113405, 0.0250718985, 0.1784051061, 0.0636574179, 0.1081233621, 0.0506287143, -0.0329841636, 0.3312443793, 0.2496908158, 0.0193050802, -0.1996645331, 0.3107479811, -0.1767772585, 0.0455963835, 0.6782321334, -0.0700291842, -0.005177795, -0.3357174993, 0.672694087, 0.228770256, -0.1550967991, 0.0435777009, 0.0125397518, 0.0421919264, 0.0660523474, -0.030256018, -0.0014335662, 0.0101447627, 0.1819344312, -0.0780004561, 0.1584958732, -0.538995266, 0.1471689343, 0.0061971061, -0.0930635482, -0.2471256107, 0.2212385833, -0.2751745582, -0.4047087431, 0.1331681311, -0.1408242136, 0.0647849888, 0.1152140349, -0.0306608994, -0.204754889, 0.2973882556, 0.3563153148, 0.4698460698, -0.0787712485, -0.1468903273, -0.0865186229, -0.0149449743, 0.2726431489, -0.2390536219, 0.3346012235, 0.0375353694, -0.0850002319, -0.0304189399, -0.0827730298, -0.1391348392, -0.2084834576, 0.0215341039, -0.3523408771, -0.2075143158, -0.0560424142, 0.2039816529, 0.1930282116, -0.2936786711, 0.1306678504, 0.304651767, -0.2205506265, -0.0346959643, 0.4123049974, 0.0229637846, 0.020555947, -0.0387001298, 0.1113635525, -0.0904420018, -0.0774445608, -0.0414639711, 0.4800554514, 0.0969666541, -0.3031174839, 0.3314425349, -0.1199896634, 0.1094989777, -0.2138831615, -0.3864009082, -0.0466759317, 0.227021575, 0.5675143003, -0.447263062, -0.2105764151, 0.1187098175, 0.0214074105, -0.0336178876, 0.3569824696, 0.8135994673, -0.1269945204, -0.1103093475, -0.2217964828, -0.0645324662, 0.5682216287, -0.2965450883, -0.1726730168, 0.049536176, 0.2286394089, -0.1154562533, -0.3957335055, -0.6892157793, 0.1222515255, 0.3059705496, -0.1044687778, -0.1229856461, 0.4051796794, -0.0281282235, -0.0896988288, 0.1116385683, 0.0332251489, 0.3858935833, -0.3727832437, 0.25028193, -0.2413189709 ]
https://github.com/huggingface/datasets/issues/2767
equal operation to perform unbatch for huggingface datasets
Hi, `Dataset.map` in the batched mode allows you to map a single row to multiple rows. So to perform "unbatch", you can do the following: ```python import collections def unbatch(batch): new_batch = collections.defaultdict(list) keys = batch.keys() for values in zip(*batch.values()): ex = {k: v for k, v in zip(keys, values)} inputs = f"record query: {ex['query']} entities: {', '.join(ex['entities'])} passage: {ex['passage']}" new_batch["inputs"].extend([inputs] * len(ex["answers"])) new_batch["targets"].extend(ex["answers"]) return new_batch dset = dset.map(unbatch, batched=True, remove_columns=dset.column_names) ```
Hi I need to use "unbatch" operation in tensorflow on a huggingface dataset, I could not find this operation, could you kindly direct me how I can do it, here is the problem I am trying to solve: I am considering "record" dataset in SuperGlue and I need to replicate each entery of the dataset for each answer, to make it similar to what T5 originally did: https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L925 Here please find an example: For example, a typical example from ReCoRD might look like { 'passsage': 'This is the passage.', 'query': 'A @placeholder is a bird.', 'entities': ['penguin', 'potato', 'pigeon'], 'answers': ['penguin', 'pigeon'], } and I need a prosessor which would turn this example into the following two examples: { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'penguin', } and { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'pigeon', } For doing this, one need unbatch, as each entry can map to multiple samples depending on the number of answers, I am not sure how to perform this operation with huggingface datasets library and greatly appreciate your help @lhoestq Thank you very much.
72
equal operation to perform unbatch for huggingface datasets Hi I need to use "unbatch" operation in tensorflow on a huggingface dataset, I could not find this operation, could you kindly direct me how I can do it, here is the problem I am trying to solve: I am considering "record" dataset in SuperGlue and I need to replicate each entery of the dataset for each answer, to make it similar to what T5 originally did: https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L925 Here please find an example: For example, a typical example from ReCoRD might look like { 'passsage': 'This is the passage.', 'query': 'A @placeholder is a bird.', 'entities': ['penguin', 'potato', 'pigeon'], 'answers': ['penguin', 'pigeon'], } and I need a prosessor which would turn this example into the following two examples: { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'penguin', } and { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'pigeon', } For doing this, one need unbatch, as each entry can map to multiple samples depending on the number of answers, I am not sure how to perform this operation with huggingface datasets library and greatly appreciate your help @lhoestq Thank you very much. Hi, `Dataset.map` in the batched mode allows you to map a single row to multiple rows. So to perform "unbatch", you can do the following: ```python import collections def unbatch(batch): new_batch = collections.defaultdict(list) keys = batch.keys() for values in zip(*batch.values()): ex = {k: v for k, v in zip(keys, values)} inputs = f"record query: {ex['query']} entities: {', '.join(ex['entities'])} passage: {ex['passage']}" new_batch["inputs"].extend([inputs] * len(ex["answers"])) new_batch["targets"].extend(ex["answers"]) return new_batch dset = dset.map(unbatch, batched=True, remove_columns=dset.column_names) ```
[ -0.0753812045, -0.7735244632, 0.0261515044, -0.0693189129, 0.022894334, -0.0482676178, 0.3034125566, 0.0408934243, 0.3975751698, 0.2398027182, -0.3650855124, -0.0645895749, 0.0264361836, 0.4119095802, 0.1797593236, -0.2043051273, 0.063304171, 0.09900897, -0.2375570387, -0.0585380942, -0.1362459213, 0.0407439694, -0.5339217186, -0.1767411977, 0.335388869, -0.2973916829, -0.1161579117, -0.2635373771, -0.1034481153, 0.3052071333, 0.4921703935, 0.3093298078, 0.2077563107, 0.4856836796, -0.0001246522, 0.3010813594, -0.2492471784, -0.1526911855, 0.1145772487, -0.0873675197, -0.1308565587, -0.088282533, -0.0693368465, -0.3121806681, -0.1677762121, -0.0135151334, 0.0861693248, -0.333878696, 0.6199629903, 0.1076616943, 0.0035845116, 0.3279937208, -0.0736488029, 0.0471059792, -0.1618748903, 0.0315581523, -0.01629816, 0.1471143067, 0.1239846498, 0.0130385011, 0.0811595768, 0.3311885595, -0.1018412858, -0.0348069482, 0.0685208142, 0.1417722255, 0.073715046, -0.4227612317, 0.1653948277, 0.343445003, 0.1286979467, -0.3457923234, -0.552256763, -0.1110517606, 0.0664462447, -0.0784131661, -0.2424915731, 0.1549116969, -0.1231814772, 0.1915922165, -0.4587094784, -0.0850625709, -0.0642047077, 0.0513772443, 0.0663286448, -0.0215883665, -0.2763305008, 0.270816952, 0.0563461222, 0.0941272676, -0.1524152607, -0.1206801236, 0.16492033, 0.2293736935, -0.6707262993, -0.2004777491, -0.2176059186, -0.0827741697, 0.248654604, 0.3064739704, 0.5127055049, -0.0695316568, -0.0014587343, 0.091263935, 0.0690613315, 0.5457302928, -0.1010439843, -0.2234716117, 0.0107076373, 0.1190955192, -0.0006035641, -0.0132913766, 0.3079894483, -0.0960772485, -0.2861172557, 0.1868261099, 0.3991139233, -0.0048521161, -0.3670805097, -0.1827211082, -0.3305942416, -0.150413096, 0.0168249197, 0.1619482338, -0.1955450326, 0.0388266817, 0.1834592372, 0.0962480977, -0.2616739273, -0.0341713987, -0.1754765213, 0.2005474865, -0.1355688274, -0.0149282664, 0.0025350899, -0.1964238286, 0.0182540342, 0.4052439332, 0.0459590033, -0.0078743622, 0.1850577593, -0.1379250735, 0.3300073445, 0.0267927479, 0.2054772228, -0.1043840647, 0.1196802557, 0.1109361723, -0.0676130801, 0.0062329443, -0.0762387216, -0.2370307446, 0.1029391736, -0.0261910148, -0.290127486, -0.0064335214, -0.2655012906, 0.2805638313, -0.313919872, 0.4107524157, 0.4642278552, 0.3083903193, -0.0579390302, -0.0884877592, 0.3909344375, -0.0335799083, -0.1268099397, -0.2703217566, 0.3334638178, -0.0070433803, 0.3165132701, 0.3111929893, -0.0583804883, 0.3475651741, -0.2451773882, -0.0472132713, 0.2052664459, -0.1820420623, -0.4236243367, 0.2309687287, -0.0761009306, 0.2990362942, -0.0356755815, 0.0611706115, -0.0361168347, 0.172947824, 0.0400795415, 0.2885243893, -0.0879407451, -0.0819168463, 0.0025713891, -0.1750307381, 0.2911466658, -0.093755357, -0.0195053183, 0.2881814837, 0.0503393002, -0.1503596604, 0.2743273973, -0.5115568042, 0.2057097852, 0.2351749539, 0.2331879437, 0.1862760186, 0.2376930267, -0.1802089959, -0.4620919824, 0.1702179164, -0.3757823706, 0.1592282206, 0.0510785691, -0.3364462256, -0.1325397044, -0.1899864525, -0.1449078619, 0.0438794158, -0.0932904109, -0.1333110034, 0.462905705, 0.025024578, -0.4002580345, 0.2373045683, -0.0836173519, 0.1097683832, -0.4155574739, 0.0613827631, 0.2461879849, -0.0186503138, -0.0090567991, 0.211761862, 0.0163055994, -0.3814626038, 0.108098805, 0.2936591208, -0.348490119, 0.0192190968, -0.0798180401, 0.0817220956, 0.0673078448, -0.0596715398, -0.1295427978, 0.0506830886, 0.0736499801, -0.0641612858, -0.0339301415, 0.8116829991, -0.0951393694, 0.1268708855, 0.0670187101, -0.0672767758, -0.1310649812, -0.2365904748, -0.1849683821, 0.2044689357, 0.1865121424, -0.2316199094, 0.2167524695, -0.1897061914, -0.2400353253, -0.2519876063, 0.2917010188, 0.0077060163, 0.3112776279, 0.1127476245, 0.0425790697, 0.2121854126, -0.0388300046, -0.1469402164, 0.3771911263, 0.001111038, 0.2564547956, 0.3336132169, 0.278411597, 0.1565333605, 0.0501440354, -0.2609421909, -0.0400377139, 0.0102965543, 0.0104521066, 0.1022086367, -0.3529455066, -0.002358675, 0.0579041615, 0.1635893285, 0.009168759, -0.0685233697, -0.0933296457, -0.1590342522, -0.2032994032, -0.0484064333, -0.1999807209, -0.063653335, -0.0596888922, 0.0650865436, 0.0827660114, 0.4527522624, 0.2323803902, 0.424700737, -0.004651159, 0.3034426868, -0.14032951, 0.0124630705, 0.075805895, -0.0436793528, -0.1188978255, -0.2360731959, 0.2823859751, -0.0057214946, 0.0372351855, -0.5395433903, -0.1603363007, 0.2113296092, -0.0652049705, -0.2380533814, 0.3718396723, 0.1210863441, -0.5385231972, -0.130163148, 0.0426791273, -0.1647607386, -0.5449094176, 0.1823603362, -0.1517246664, 0.1190218776, -0.2554598451, -0.3128784597, -0.1122348681, -0.1933880746, 0.907143116, -0.3603636026, 0.0387685746, 0.1697900742, -0.2453992963, 0.0909722745, 0.0120812543, 0.043833971, -0.1046576351, -0.5249738693, -0.1223864779, 0.0322275683, -0.1373960376, -0.1270466596, -0.0300672352, 0.1196213663, 0.5564445853, -0.0042876825, -0.146527499, -0.4110372961, -0.14847821, -0.0592327751, 0.4029559195, 0.1972223669, -0.3497498631, 0.1031160727, -0.0321000181, -0.057219021, 0.177719906, -0.0003170129, -0.1117024794, 0.2010333985, 0.0147897974, 0.3613644242, 0.4233081937, 0.2689899802, -0.1124322414, 0.0211759433, -0.2406368256, -0.0781433731, 0.0687933266, -0.4165219963, 0.0867045224, 0.0967588797, 0.2121860832, 0.0890758783, -0.2410808504, 0.2765484452, -0.0950955302, -0.0303136557, -0.3282958865, -0.3560399413, 0.0593812093, -0.243275106, 0.2499992251, -0.1077306271, -0.150472939, -0.0759819821, -0.1181446314, 0.2302043438, 0.1959136128, 0.1247708425, 0.0806266591, -0.3856320381, -0.2992055714, -0.5825085044, 0.6898987889, -0.0906805322, 0.2828057408, 0.1038241684, -0.0963243097, 0.0918033347, 0.0738142431, 1.1266227961, -0.0902918354, -0.0679849759, -0.4532367587, -0.4792624712, -0.3658047915, 0.174748227, -0.246201843, 0.4959309995, -0.1369212717, 0.4861790538, -0.3012237549, -0.2158022374, 0.3842228353, -0.0708494037, -0.1029943675, -0.1085480079, -0.1039467677, -0.6143306494, -0.1452138424, 0.0402125567, 0.1736764908, 0.1835607737, 0.0963889137, 0.1442805827, -0.3470228016, 0.2196641713, 0.3789545894, -0.0680102482, -0.041956652, 0.2102968544, -0.1067139357, 0.1141848341, 0.2900210917, -0.1538270861, 0.0499993227, -0.1119310409, -0.5091653466, -0.2036353499, 0.1387950033, 0.4453862607, 0.0021079369, 0.0893900543, 0.4498019516, 0.3313260674, 0.1878382266, -0.2095419168, 0.0752897859, 0.1229474172, 0.4767898023, -0.2456016988, -0.3756899238, 0.1890125871, 0.2901028693, -0.1251987517, 0.2583325505, 0.3687485158, -0.2165211439, 0.0750942975, -0.0771685615, 0.9015495777, -0.2241622806, 0.0572487228, 0.1993953735, 0.1786246598, 0.5808348656, -0.285525322, 0.2576755285, -0.1110956594, -0.5086902976, -0.1233619004, -0.1007769182, 0.1435221881, 0.1798943281, -0.2801914215, 0.3612532616, 0.3504683375, -0.0795020908, -0.0773691237, -0.0594199412, -0.134111926, -0.1367687583, -0.1793335825, -0.1062965244, -0.0217224937, 0.5700867772, -0.0459105708, -0.0014356188, 0.1819750965, -0.0043446124, -0.07260447, -0.2204622179, -0.5403105021, 0.2581214607, 0.2453535795, -0.146651879, -0.1070105359, 0.5531073809, 0.6465964913, -0.1431564093, 0.0185718667, -0.136011377, 0.0638048649, 0.0116700046, -0.2535892427, -0.1350874007, 0.1461563706, 0.0387849584, -0.2595754266, 0.0008656261, 0.1302722991, 0.04201594, -0.0150951296, 0.0775446147, -0.1029819995, -0.3029365242, -0.0792438537, 0.0985208452, -0.0989728943, 0.0807273909, -0.0858888179, -0.0727715045, -0.5481368303, 0.2476283014, -0.1678897291, -0.4914946854, -0.010616228, 0.4057465494, 0.2606991231, -0.174227953, 0.4102478921, 0.0836177468, 0.0936147869, -0.0570737645, -0.2861719429, 0.2830051482, -0.4344591498, 0.5060544014, -0.3074498773, 0.2821794748, 0.0642790645, 0.1685796231, 0.1294115484, 0.129587844, -0.2556282878, -0.2817220986, -0.1472708881, 0.0785298049, 0.2440842241, 0.2441806048, 0.125840798, 0.3767596483, 0.0902136788, -0.170521155, -0.1665884852, 0.2332267463, -0.2345493436, 0.1979040205, 0.1407251805, -0.0713167489, 0.2908714414, 0.2017941028, -0.0633119643, 0.1915006638, -0.0993864238, -0.110125415, -0.0246675573, 0.1482062936, -0.0789694786, 0.0089470297, 0.2233036608, 0.279808104, -0.0272522401, -0.1051923782, 0.6996043921, 0.3694268763, 0.1226843894, 0.4460559785, 0.0006682076, 0.0151981488, -0.3611881733, -0.2898231149, 0.2136501968, 0.0124400593, 0.0064395964, 0.1228920519, -0.0764206275, -0.0361733958, -0.1091241166, -0.0680709481, 0.5871477723, -0.2230692208, 0.0146056842, 0.052835308, -0.1149176732, -0.3639832735, 0.4361192584, -0.167049855, -0.1969697475, -0.0572259575, -0.0879220963, 0.0174716376, -0.1485782266, 0.2439452559, 0.37670964, -0.2628639638, 0.055938527, 0.3968823254, -0.1516260952, 0.3247961998, -0.1985860169, -0.2218668163, 0.0902814716, -0.1761723459, 0.1324374378, 0.4299079776, 0.0577507913, 0.109840557, -0.0126126911, 0.1312818974, 0.3224181235, -0.0335142538, -0.1583712399, 0.4137467444, -0.2783847451, 0.2369361371, 0.297863692, -0.4279222786, 0.0664772838, 0.4004285932, -0.028738156, 0.4075154066, -0.0916057825, 0.5527042747, -0.0889409184, -0.3047351241, 0.1227996871, 0.4881362617, -0.2441276759, -0.1703256965, -0.1985959709, -0.1303698719, -0.0382661596, 0.0753607303, -0.0483205281, 0.0260790475, 0.1791815907, 0.035792619, 0.1077527627, 0.0507121608, -0.1503037214, 0.24821648, 0.2431672513, 0.0162213594, -0.2239839584, 0.2543326616, -0.2170745581, 0.0394466296, 0.7196281552, 0.0188228413, -0.0095196106, -0.2957317233, 0.6617156267, 0.178948164, -0.1640621424, -0.0295566767, -0.020962188, 0.0190345012, 0.018069502, -0.0139456503, 0.0262741111, -0.0292681344, 0.1912162751, -0.1057022512, 0.161188066, -0.4103520513, 0.0813197047, -0.0817073435, -0.1073370576, -0.2197114825, 0.1943631023, -0.2433098555, -0.3114367127, 0.120580107, -0.1593330652, 0.1079166532, 0.0862915218, -0.0176183078, -0.1551505029, 0.3381444216, 0.3547684252, 0.3820831776, -0.170334816, -0.0973502249, -0.1417098343, 0.0107847713, 0.1978828311, -0.2089080513, 0.3343544602, 0.1071271077, -0.0026873201, -0.0359328017, 0.0213872232, -0.1784843802, -0.2717833817, 0.1211230457, -0.3433918953, -0.2045816779, -0.1264021397, 0.1957330108, 0.2733253837, -0.3446793556, 0.0754914805, 0.3581223488, -0.2133899927, -0.0684988946, 0.3740195334, 0.0175865889, 0.099759832, -0.0087885, 0.1813976765, -0.0638094842, -0.067959629, -0.0506675616, 0.3892509341, 0.1280762553, -0.3385192752, 0.3446709216, -0.0772372037, 0.1299194396, -0.2593941689, -0.3769946694, -0.0743443519, 0.2412820011, 0.5907961726, -0.4905030429, -0.2275040448, 0.1521980166, -0.004522182, -0.0331159905, 0.3418530524, 0.8235200644, -0.1254415214, -0.022154782, -0.2195948213, -0.0871911645, 0.6015580893, -0.2815902531, -0.2263825089, -0.0047985651, 0.1956970096, -0.1035832018, -0.34971416, -0.6360817552, 0.1418418884, 0.2863032222, -0.0755301565, -0.1086890548, 0.4168682396, -0.0834910348, -0.1523139924, 0.0869468302, 0.0916838422, 0.3570877314, -0.4112421274, 0.1835700125, -0.3044157326 ]
https://github.com/huggingface/datasets/issues/2767
equal operation to perform unbatch for huggingface datasets
Dear @mariosasko First, thank you very much for coming back to me on this, I appreciate it a lot. I tried this solution, I am getting errors, do you mind giving me one test example to be able to run your code, to understand better the format of the inputs to your function? in this function https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L952 they copy each example to the number of "answers", do you mean one should not do the copying part and use directly your function? thank you very much for your help and time.
Hi I need to use "unbatch" operation in tensorflow on a huggingface dataset, I could not find this operation, could you kindly direct me how I can do it, here is the problem I am trying to solve: I am considering "record" dataset in SuperGlue and I need to replicate each entery of the dataset for each answer, to make it similar to what T5 originally did: https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L925 Here please find an example: For example, a typical example from ReCoRD might look like { 'passsage': 'This is the passage.', 'query': 'A @placeholder is a bird.', 'entities': ['penguin', 'potato', 'pigeon'], 'answers': ['penguin', 'pigeon'], } and I need a prosessor which would turn this example into the following two examples: { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'penguin', } and { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'pigeon', } For doing this, one need unbatch, as each entry can map to multiple samples depending on the number of answers, I am not sure how to perform this operation with huggingface datasets library and greatly appreciate your help @lhoestq Thank you very much.
90
equal operation to perform unbatch for huggingface datasets Hi I need to use "unbatch" operation in tensorflow on a huggingface dataset, I could not find this operation, could you kindly direct me how I can do it, here is the problem I am trying to solve: I am considering "record" dataset in SuperGlue and I need to replicate each entery of the dataset for each answer, to make it similar to what T5 originally did: https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L925 Here please find an example: For example, a typical example from ReCoRD might look like { 'passsage': 'This is the passage.', 'query': 'A @placeholder is a bird.', 'entities': ['penguin', 'potato', 'pigeon'], 'answers': ['penguin', 'pigeon'], } and I need a prosessor which would turn this example into the following two examples: { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'penguin', } and { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'pigeon', } For doing this, one need unbatch, as each entry can map to multiple samples depending on the number of answers, I am not sure how to perform this operation with huggingface datasets library and greatly appreciate your help @lhoestq Thank you very much. Dear @mariosasko First, thank you very much for coming back to me on this, I appreciate it a lot. I tried this solution, I am getting errors, do you mind giving me one test example to be able to run your code, to understand better the format of the inputs to your function? in this function https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L952 they copy each example to the number of "answers", do you mean one should not do the copying part and use directly your function? thank you very much for your help and time.
[ -0.010877654, -0.7745167017, 0.0500379279, -0.0438204668, 0.0585960671, -0.1315133721, 0.2449043989, 0.0355795063, 0.4034036398, 0.2071986198, -0.3647295833, -0.0576839745, 0.0258305669, 0.4528594017, 0.1368792206, -0.241541177, 0.0354216248, 0.1300747097, -0.3146574199, -0.0971324667, -0.1279554367, 0.0090234298, -0.5449328423, -0.1741689444, 0.3397315741, -0.2855746746, -0.1111919209, -0.2267972976, -0.2018397152, 0.3307214975, 0.4212070405, 0.2765448391, 0.1566701382, 0.5160191059, -0.0001262681, 0.2817389667, -0.223980993, -0.1529461741, 0.0926801786, -0.1573763937, -0.1417339295, -0.0440882966, -0.0630611926, -0.2752132416, -0.1816471368, -0.001765117, 0.0454082191, -0.3386259079, 0.6838324666, 0.1817789972, -0.0048463568, 0.206731081, -0.0597354099, 0.0920673162, -0.1350355744, 0.0671230331, -0.0204415731, 0.0735921264, 0.0742389485, 0.039184697, 0.082598418, 0.2869919538, -0.0342600048, -0.0616685264, 0.0821958631, 0.1065224856, 0.002430344, -0.3898434639, 0.1111201495, 0.3619070649, 0.2063343972, -0.3542043567, -0.5544353127, -0.052140817, 0.0253044739, -0.0470704883, -0.2078719288, 0.1657982171, -0.1159717888, 0.2144908309, -0.4811856449, -0.0987050757, -0.0723049194, 0.0731839538, 0.0504784733, -0.1077800766, -0.2960428894, 0.2540515065, 0.0699312612, 0.0905941501, -0.117480129, -0.1175418049, 0.1230347157, 0.2084045708, -0.6481519938, -0.2360535115, -0.2577500641, -0.0207786635, 0.2639653385, 0.3931051493, 0.5452444553, -0.1059971452, -0.0683631822, 0.0775519162, 0.0718005002, 0.5941021442, -0.0931246504, -0.2449742258, -0.021666728, 0.1149333417, 0.0338500217, -0.0456136093, 0.3210248947, -0.0735202804, -0.3377153575, 0.1442282945, 0.3928578198, -0.0981251076, -0.3077061176, -0.1714107394, -0.3482734561, -0.1062348932, 0.0052449517, 0.1235989332, -0.1738001406, 0.0956067443, 0.2250308692, 0.0844192058, -0.2863161266, -0.0946588069, -0.1676395237, 0.2888306975, -0.1838473827, 0.0078380965, -0.0555581748, -0.1803658009, -0.0213176161, 0.5038353801, 0.0103860311, -0.0349440873, 0.2061431259, -0.1644639969, 0.3446750343, -0.0276217312, 0.1581508368, -0.1279950887, 0.1393097639, -0.0182056725, -0.0253076032, 0.000472323, -0.0577378199, -0.2445577681, 0.0647586063, -0.0385767333, -0.3195188344, 0.0288104862, -0.1932253391, 0.3196074069, -0.3369592428, 0.3980180025, 0.4549923539, 0.3295463324, -0.0548326969, -0.0711228773, 0.4004130661, 0.032071095, -0.0892614499, -0.296041131, 0.3439545333, 0.0093566477, 0.3034725487, 0.2937403321, -0.0132581405, 0.2759525776, -0.2429619431, -0.0962144136, 0.2000617087, -0.1653335094, -0.397857964, 0.2438248694, -0.093697764, 0.2858180106, -0.0008196533, 0.0327159055, -0.0864739269, 0.1881910563, -0.0270798579, 0.2525264919, -0.0661389306, -0.1053135991, -0.0651599094, -0.1617505848, 0.3505885899, -0.0655954033, -0.0829996169, 0.3464678526, 0.0652354658, -0.06195103, 0.220634833, -0.506772995, 0.1742606461, 0.2860681415, 0.2737710774, 0.1422734261, 0.239780575, -0.1471375823, -0.3221262991, 0.104228653, -0.357268095, 0.1865509003, 0.1231015772, -0.2822450995, -0.1748360693, -0.2101638615, -0.1613719612, -0.0220704339, -0.0928284228, -0.0894162804, 0.4296048284, 0.0627400279, -0.3935891688, 0.3531243801, -0.1103323027, 0.1173738539, -0.4565911889, 0.0766894892, 0.2712411284, -0.0212030672, -0.0294921473, 0.2020918131, 0.0250195861, -0.3182092905, 0.0931533277, 0.2768290937, -0.3111831844, -0.0000499748, -0.0807033628, 0.1129692346, 0.0448836535, -0.0933874324, -0.135656938, 0.1158982068, 0.0989422202, -0.0575678572, -0.0803850964, 0.7735751867, -0.0630796701, 0.1183304638, 0.1151417345, -0.0541954599, -0.1563128531, -0.2935829759, -0.1384203136, 0.2834089994, 0.2511125803, -0.2120888829, 0.2328745425, -0.1283389181, -0.2621285319, -0.2862564921, 0.2700932622, 0.0284279883, 0.3281136751, 0.1195156574, 0.0314618796, 0.1946712136, -0.0153373666, -0.1554959565, 0.381560117, -0.0071744304, 0.2247861624, 0.3685886562, 0.3105096519, 0.143106848, 0.0553675741, -0.2981646657, -0.0729000121, 0.0393896475, 0.0086059161, 0.1030275747, -0.3797224164, 0.0236477181, 0.0302485675, 0.170251146, -0.0816221237, -0.0730783865, -0.1584307253, -0.183245033, -0.2011885941, 0.036376372, -0.1941182464, -0.0438359939, -0.0806335211, 0.0661065131, 0.126993984, 0.4456270635, 0.2406217456, 0.4628774226, -0.0280903652, 0.3665052652, -0.1363862902, 0.0575943924, 0.0705957115, -0.046173647, -0.119423449, -0.2033167779, 0.2038014382, -0.0031702518, 0.0439758673, -0.4660874605, -0.2374645919, 0.2677344084, 0.0232884288, -0.2113484442, 0.3508020043, 0.055705104, -0.5462495685, -0.0783205852, -0.0216931868, -0.0884829611, -0.5615618825, 0.2528974414, -0.1770299226, 0.1233157665, -0.3099215329, -0.3661051095, -0.0872958302, -0.2064205408, 0.9370268583, -0.3762079477, 0.0057922537, 0.1996504366, -0.2222318351, 0.0677220523, 0.0126039162, 0.1556548625, -0.0976718962, -0.5041770339, -0.0731259584, 0.0281707644, -0.1376679391, -0.1487033367, -0.0546871684, 0.080252938, 0.5497127175, -0.0282654837, -0.1994811296, -0.4520470202, -0.296163857, -0.072806105, 0.420900315, 0.1771833599, -0.3457147777, 0.1205206513, -0.0375313088, -0.0695853531, 0.2295767069, 0.0187301785, -0.1270516366, 0.2347081602, 0.0014079362, 0.3598975539, 0.3538530171, 0.3470194936, -0.0990254506, 0.0370057076, -0.2861385047, -0.0852764696, 0.0900597796, -0.3696490526, 0.1021968499, 0.1357012242, 0.2632870674, 0.0779103488, -0.1912821382, 0.2992960215, -0.1509897411, -0.056532301, -0.3372487724, -0.3283590078, 0.0419884324, -0.1391091347, 0.2262817621, -0.1436556578, -0.161468491, -0.0105282664, -0.1394324005, 0.2685930431, 0.2348730266, 0.1099196002, 0.1222358793, -0.3618441224, -0.2483719289, -0.4749387503, 0.6477649808, -0.1054958105, 0.25822559, 0.0596569628, -0.1224763542, 0.1019007713, 0.0552797914, 1.0442067385, -0.0928624198, -0.1418880373, -0.4542004466, -0.552326262, -0.3331589699, 0.2196701765, -0.233774513, 0.5441313982, -0.198051393, 0.4110106826, -0.3555338979, -0.1987076402, 0.3440607786, -0.0428050533, -0.1176279411, -0.1123755723, -0.0697598383, -0.6193224788, -0.1143808216, -0.0228121206, 0.150548175, 0.1685726345, 0.0634072497, 0.147455588, -0.3576943874, 0.2287348211, 0.3958049417, -0.1185993552, -0.0005940273, 0.1395818442, -0.1285168231, 0.1251048893, 0.3129322529, -0.2290611863, 0.1828495711, -0.0389181152, -0.5255217552, -0.2011204362, 0.1282044947, 0.4326055646, 0.0043066293, 0.1211859733, 0.4952027798, 0.2905820906, 0.1692709774, -0.1751950681, 0.0514555648, 0.0547315776, 0.4383248687, -0.2018348575, -0.3718875051, 0.2034461498, 0.2566276491, -0.1311087608, 0.2950932682, 0.4055139422, -0.1705875993, 0.0070125051, -0.0641236305, 1.0264139175, -0.1779048592, 0.0226664096, 0.1446867883, 0.0649366751, 0.5472709537, -0.3608381152, 0.2080310732, -0.1670424193, -0.507609725, -0.15289554, -0.1149315536, 0.1049187481, 0.1264866292, -0.350016892, 0.3597262502, 0.2949793637, -0.1077528894, -0.0378291383, 0.0068125278, -0.1752337962, -0.0723746717, -0.1563100666, -0.1104513705, -0.0091841687, 0.5706511736, 0.0093585961, -0.0183523726, 0.1865912378, -0.0138804913, -0.0601728335, -0.162511602, -0.5331326127, 0.2263108343, 0.306632638, -0.1381725967, 0.0140435994, 0.6243480444, 0.661180675, -0.1327868253, -0.0027745441, -0.1644932032, 0.0180116072, 0.046926707, -0.2306065559, -0.0574953854, 0.1657331139, 0.0481054038, -0.257641077, -0.0092642345, 0.1547841281, 0.0989364833, -0.0698963404, 0.0188648943, -0.0771571249, -0.3292374313, -0.029253779, 0.1232708395, -0.1089476272, 0.123299174, -0.0864139944, -0.0403815545, -0.5168852806, 0.1755293012, -0.128874734, -0.4917957783, 0.0165397134, 0.4037632942, 0.2822571993, -0.1160473004, 0.4003128111, 0.0940633938, 0.0872107446, -0.0527308583, -0.2767202854, 0.3507883549, -0.4622551799, 0.4693781435, -0.3270955682, 0.271769464, 0.0570279248, 0.1779135466, 0.1025842875, 0.1646065265, -0.2312487662, -0.2901342511, -0.1018914133, 0.0940674543, 0.2068043053, 0.1520271897, 0.098355636, 0.2725199759, 0.1068394408, -0.2188542932, -0.1683714837, 0.2467846423, -0.2557553053, 0.1999900341, 0.1347342134, -0.0919885561, 0.1986116022, 0.1977643073, -0.0685086772, 0.2219433188, -0.1261401772, -0.0883876234, -0.0391472429, 0.1671303511, -0.0806704611, 0.0134147964, 0.1874519289, 0.2687895894, -0.0019301921, -0.0806285888, 0.6413137913, 0.3312112987, 0.1150881201, 0.500133276, -0.0514399819, -0.0175249726, -0.4890021086, -0.2775420249, 0.2126241475, 0.0310201123, 0.0276467316, 0.0917785317, -0.0246268325, -0.0275032446, -0.1359472722, 0.002769988, 0.5822213888, -0.2275116146, -0.0127434023, 0.0468722582, -0.020213522, -0.3827412724, 0.3991596699, -0.1654494405, -0.249414295, 0.0360155627, -0.0512166172, 0.0068901568, -0.0835428983, 0.254373163, 0.3149312139, -0.277349174, 0.0299965963, 0.3806999028, -0.1358979195, 0.2611198723, -0.1441325098, -0.204488188, 0.0264257304, -0.204790175, 0.10578309, 0.4187948704, -0.0145581216, 0.0733326823, -0.0609220713, 0.1031606197, 0.2356022149, -0.06551525, -0.2108762115, 0.4138637185, -0.2922668457, 0.2327294797, 0.2990344167, -0.3924891651, 0.0951181427, 0.4452513754, 0.0023688301, 0.4268143773, -0.0494984575, 0.5840531588, 0.0175099857, -0.2804226875, 0.1194980741, 0.4449958503, -0.2014252096, -0.1196046621, -0.1712666154, -0.1596521735, -0.187738657, 0.0900194496, -0.0751737654, 0.0028117532, 0.2173168659, 0.0717944205, 0.0639647692, 0.0240849555, -0.0795661062, 0.2913347185, 0.2723923624, -0.0090198368, -0.1765927225, 0.3458016515, -0.1892181039, 0.0963714868, 0.6774993539, -0.0281565636, 0.01794843, -0.3747057915, 0.6705468297, 0.216933772, -0.1634798646, 0.0480992198, -0.0109069152, 0.0236369781, 0.0606252402, -0.012556091, 0.003327854, -0.0127489045, 0.1845299304, -0.1218113676, 0.1319627315, -0.4920053482, 0.1160302013, -0.0095947422, -0.0620360263, -0.2028695494, 0.1745491028, -0.2787026763, -0.3275154233, 0.1406188011, -0.1091238409, 0.0932398736, 0.0925559476, -0.032507766, -0.1501617879, 0.2595947385, 0.3713560104, 0.4355633855, -0.1231246144, -0.1570322663, -0.0916634575, 0.0360567719, 0.2634941339, -0.2674754858, 0.3377641737, 0.0507333279, 0.0305755213, 0.0323366299, -0.0640156567, -0.1622575074, -0.2586789131, 0.0873734355, -0.3793011904, -0.2062285542, -0.0468781553, 0.2062363476, 0.227014482, -0.3029269874, 0.0698186904, 0.3544507027, -0.1974744648, -0.0493626185, 0.4218861759, -0.0391921327, 0.0747131854, -0.0641385764, 0.1939849555, -0.0614004172, -0.092213206, -0.0477710664, 0.5073208213, 0.1155312806, -0.3652398586, 0.3364466727, -0.09411259, 0.1249053627, -0.2463932931, -0.3963313103, -0.0742865056, 0.2382934988, 0.5800235868, -0.4254645705, -0.2457296103, 0.1356075108, 0.0331822932, -0.0066492483, 0.326990664, 0.8123001456, -0.1088394374, -0.0509542301, -0.1931660473, -0.0889552683, 0.5671643019, -0.2700324655, -0.2003222108, 0.0761689395, 0.193024382, -0.0961935073, -0.3720491827, -0.7107869983, 0.1285334229, 0.2590751648, -0.1107790023, -0.0877091363, 0.4188709855, -0.0624391809, -0.1226639524, 0.1063420624, 0.0659083501, 0.3857210577, -0.3582315147, 0.2123966217, -0.2672464252 ]
https://github.com/huggingface/datasets/issues/2767
equal operation to perform unbatch for huggingface datasets
Hi @mariosasko I think finally I got this, I think you mean to do things in one step, here is the full example for completeness: ``` def unbatch(batch): new_batch = collections.defaultdict(list) keys = batch.keys() for values in zip(*batch.values()): ex = {k: v for k, v in zip(keys, values)} # updates the passage. passage = ex['passage'] passage = re.sub(r'(\.|\?|\!|\"|\')\n@highlight\n', r'\1 ', passage) passage = re.sub(r'\n@highlight\n', '. ', passage) inputs = f"record query: {ex['query']} entities: {', '.join(ex['entities'])} passage: {passage}" # duplicates the samples based on number of answers. num_answers = len(ex["answers"]) num_duplicates = np.maximum(1, num_answers) new_batch["inputs"].extend([inputs] * num_duplicates) #len(ex["answers"])) new_batch["targets"].extend(ex["answers"] if num_answers > 0 else ["<unk>"]) return new_batch data = datasets.load_dataset('super_glue', 'record', split="train", script_version="master") data = data.map(unbatch, batched=True, remove_columns=data.column_names) ``` Thanks a lot again, this was a super great way to do it.
Hi I need to use "unbatch" operation in tensorflow on a huggingface dataset, I could not find this operation, could you kindly direct me how I can do it, here is the problem I am trying to solve: I am considering "record" dataset in SuperGlue and I need to replicate each entery of the dataset for each answer, to make it similar to what T5 originally did: https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L925 Here please find an example: For example, a typical example from ReCoRD might look like { 'passsage': 'This is the passage.', 'query': 'A @placeholder is a bird.', 'entities': ['penguin', 'potato', 'pigeon'], 'answers': ['penguin', 'pigeon'], } and I need a prosessor which would turn this example into the following two examples: { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'penguin', } and { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'pigeon', } For doing this, one need unbatch, as each entry can map to multiple samples depending on the number of answers, I am not sure how to perform this operation with huggingface datasets library and greatly appreciate your help @lhoestq Thank you very much.
131
equal operation to perform unbatch for huggingface datasets Hi I need to use "unbatch" operation in tensorflow on a huggingface dataset, I could not find this operation, could you kindly direct me how I can do it, here is the problem I am trying to solve: I am considering "record" dataset in SuperGlue and I need to replicate each entery of the dataset for each answer, to make it similar to what T5 originally did: https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L925 Here please find an example: For example, a typical example from ReCoRD might look like { 'passsage': 'This is the passage.', 'query': 'A @placeholder is a bird.', 'entities': ['penguin', 'potato', 'pigeon'], 'answers': ['penguin', 'pigeon'], } and I need a prosessor which would turn this example into the following two examples: { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'penguin', } and { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'pigeon', } For doing this, one need unbatch, as each entry can map to multiple samples depending on the number of answers, I am not sure how to perform this operation with huggingface datasets library and greatly appreciate your help @lhoestq Thank you very much. Hi @mariosasko I think finally I got this, I think you mean to do things in one step, here is the full example for completeness: ``` def unbatch(batch): new_batch = collections.defaultdict(list) keys = batch.keys() for values in zip(*batch.values()): ex = {k: v for k, v in zip(keys, values)} # updates the passage. passage = ex['passage'] passage = re.sub(r'(\.|\?|\!|\"|\')\n@highlight\n', r'\1 ', passage) passage = re.sub(r'\n@highlight\n', '. ', passage) inputs = f"record query: {ex['query']} entities: {', '.join(ex['entities'])} passage: {passage}" # duplicates the samples based on number of answers. num_answers = len(ex["answers"]) num_duplicates = np.maximum(1, num_answers) new_batch["inputs"].extend([inputs] * num_duplicates) #len(ex["answers"])) new_batch["targets"].extend(ex["answers"] if num_answers > 0 else ["<unk>"]) return new_batch data = datasets.load_dataset('super_glue', 'record', split="train", script_version="master") data = data.map(unbatch, batched=True, remove_columns=data.column_names) ``` Thanks a lot again, this was a super great way to do it.
[ -0.0244648904, -0.8023656607, 0.0363252684, -0.0556129403, 0.0216098391, -0.0733307973, 0.2536011934, 0.0494492762, 0.3815232217, 0.2414879054, -0.3534255028, -0.065472275, 0.0393710509, 0.444589287, 0.1729433686, -0.2635640204, 0.0600869246, 0.1323879957, -0.2501766682, -0.0962023064, -0.112416558, 0.0328881219, -0.5142917037, -0.1790898889, 0.3367588818, -0.293805331, -0.150128603, -0.2500466704, -0.1282938123, 0.3018822074, 0.4609178603, 0.2909284234, 0.2123071849, 0.4509743452, -0.0001249902, 0.2926605344, -0.2429699302, -0.1337580681, 0.114501074, -0.0880550593, -0.0968521088, -0.0942033753, -0.0344840437, -0.3120003343, -0.1772888899, -0.0073469542, 0.0576628223, -0.3176602125, 0.6801812649, 0.123601675, 0.0111872535, 0.2365363091, -0.0750257373, 0.0690963268, -0.1374191046, 0.0161669664, -0.020939108, 0.0664191693, 0.0917301476, 0.0396541581, 0.1078623533, 0.3016743362, -0.0618217923, -0.0389601588, 0.0509130247, 0.1303554028, 0.0570808686, -0.4106468558, 0.1430851817, 0.3712306023, 0.1794084013, -0.3381176889, -0.5565252304, -0.0625606179, 0.0454883352, -0.1229718179, -0.235969618, 0.17068398, -0.1305096298, 0.2065275759, -0.4107289612, -0.0659746975, -0.0432806537, 0.042125836, 0.0760964304, -0.0634089261, -0.2866249382, 0.26419276, 0.0687269717, 0.1184970364, -0.1335151494, -0.1068737581, 0.1343880594, 0.2130963951, -0.6556068063, -0.2227413952, -0.2433804572, -0.0494683497, 0.2786217928, 0.3848896027, 0.5002587438, -0.084869422, -0.0207167789, 0.0651058927, 0.073971048, 0.563944459, -0.0917671844, -0.2520309687, -0.0166102704, 0.1402392983, 0.01756116, -0.0419360399, 0.3055622876, -0.0990367681, -0.2601805329, 0.2037353963, 0.4017169178, -0.0710722804, -0.323993504, -0.183499366, -0.3271967471, -0.1466223896, -0.0070033483, 0.1262950152, -0.198435232, 0.0695280358, 0.1843547225, 0.0698364899, -0.2867664397, -0.0619155094, -0.1795292199, 0.252433002, -0.1391306072, -0.0016129501, -0.0439370349, -0.2109629363, 0.0124206021, 0.4680204988, 0.0447811335, -0.049214378, 0.2229486108, -0.1477321386, 0.2782616317, -0.0027512861, 0.1948140562, -0.1123816967, 0.1089914814, 0.053472355, -0.0731871128, -0.0069984458, -0.0442643613, -0.2340403795, 0.1050293371, -0.0208552741, -0.2917474508, 0.025285285, -0.2057436556, 0.2881163657, -0.3421456218, 0.4115399718, 0.4393234253, 0.3590462506, -0.0536824949, -0.0564319864, 0.4131744206, -0.0192706063, -0.0965286344, -0.2679920197, 0.3482648432, 0.0231550522, 0.3075786829, 0.2882293165, -0.0513803586, 0.3208954036, -0.2531567216, -0.0951124281, 0.2231659442, -0.1747699082, -0.4179793, 0.2593776286, -0.0811825246, 0.2943812907, 0.012655627, 0.058135286, -0.1151295826, 0.179728508, -0.0140457004, 0.2801772356, -0.0816660225, -0.0973387361, -0.0200459659, -0.1788860857, 0.3267519772, -0.0937373266, -0.0511446185, 0.3327537477, 0.0415732749, -0.1167277545, 0.2596208751, -0.4877480865, 0.1816800237, 0.2622479796, 0.2451247126, 0.1432558447, 0.2428883016, -0.152628541, -0.3867456615, 0.1505293697, -0.3342051506, 0.1509619057, 0.0888973847, -0.3247159719, -0.1425440907, -0.2196984291, -0.1516410857, -0.0205251668, -0.0847823471, -0.1131097972, 0.4627569914, 0.0237459764, -0.396805346, 0.276607275, -0.0825323835, 0.0979909971, -0.4222602546, 0.048803255, 0.2384617776, 0.0088137127, -0.0059182346, 0.1739051342, 0.0389283709, -0.3525583148, 0.0861847699, 0.2756893635, -0.3201451302, 0.0070612021, -0.0751748383, 0.0669735819, 0.0377311632, -0.0897159129, -0.1346694678, 0.0368000418, 0.07518401, -0.0604836047, -0.0372871086, 0.7736293674, -0.0813847855, 0.1259884685, 0.106601879, -0.0489498973, -0.1498588175, -0.2755475938, -0.1673122942, 0.2761718929, 0.2356809676, -0.2201274037, 0.2520667315, -0.1806639135, -0.2266644835, -0.2730314732, 0.289575547, 0.0222220495, 0.3233870864, 0.1219824553, 0.0554220304, 0.2160240114, -0.040221151, -0.155997321, 0.3685368598, -0.0039904006, 0.2545128465, 0.3580179811, 0.2879855037, 0.1523479074, 0.0509684943, -0.2573584318, -0.0744413137, 0.0054115998, -0.0100240223, 0.1193401515, -0.3581905067, 0.0063080117, 0.0412620232, 0.1751887649, 0.0069138333, -0.0505400226, -0.1088421643, -0.1534911394, -0.1993158758, -0.0013040267, -0.202761218, -0.0477773994, -0.0915739238, 0.0144528747, 0.092179656, 0.4318853021, 0.2483211309, 0.4400368333, -0.0472346358, 0.3629510105, -0.1473098993, 0.0066066086, 0.0675350726, -0.0385228693, -0.1326175779, -0.2288420796, 0.2457873523, -0.0202646442, 0.0167319253, -0.5255944133, -0.1940318346, 0.2381521463, -0.0047633396, -0.237898156, 0.3722147942, 0.0893641412, -0.5399628282, -0.1112283096, 0.0183061995, -0.1314905882, -0.5532987714, 0.209068954, -0.1560291201, 0.131593883, -0.2751111984, -0.3274398148, -0.1012828201, -0.1940862238, 0.9283863306, -0.3411180973, 0.0465674736, 0.1961679459, -0.2678839862, 0.0738975406, 0.0258135088, 0.1224487349, -0.0997033566, -0.5181104541, -0.1364706159, 0.0263613164, -0.1522429883, -0.1412650496, -0.0631079376, 0.1339437813, 0.5387532711, -0.0023163483, -0.2072090209, -0.4411298037, -0.2278870642, -0.1010207683, 0.4474501908, 0.1770005673, -0.341129154, 0.1188595966, -0.0365312696, -0.0537654161, 0.2113048136, -0.0068765627, -0.1427293122, 0.1921976805, 0.0258023441, 0.3620701432, 0.3707359135, 0.3190150857, -0.0835309029, 0.0542937219, -0.2608819604, -0.1027698666, 0.0708573461, -0.3895360529, 0.0945675746, 0.1366186291, 0.213446334, 0.06444332, -0.2114583403, 0.3141697645, -0.1198174581, -0.0176078156, -0.3152265549, -0.3304153681, 0.0021315254, -0.1976334155, 0.2163099945, -0.131821692, -0.1573126167, -0.0392750725, -0.0884591192, 0.2690510452, 0.2098580599, 0.109834075, 0.1071185023, -0.4077516198, -0.3052118719, -0.5409755707, 0.6420142651, -0.0964474082, 0.2413143367, 0.0919439122, -0.086651884, 0.0848412067, 0.0661589503, 1.0803831816, -0.0872087032, -0.10288167, -0.4584880471, -0.5351157188, -0.3529354632, 0.1782926023, -0.2240312546, 0.5216464996, -0.2015162855, 0.4366723001, -0.3162999451, -0.2294137478, 0.3831053674, -0.0391891785, -0.0868258998, -0.1147061139, -0.1034918204, -0.6376014352, -0.1089684069, 0.0142840352, 0.1750245988, 0.1664240509, 0.0678803772, 0.1198184341, -0.3701829016, 0.2059965879, 0.3532643318, -0.1239747703, -0.0181021411, 0.1862313449, -0.0942444801, 0.093973428, 0.3174676299, -0.2403255105, 0.1054548547, -0.0841730088, -0.5110256672, -0.1814255565, 0.1448630542, 0.4306389987, -0.0065269545, 0.0908253193, 0.4707621038, 0.2709287405, 0.1709093451, -0.2007090151, 0.0886754841, 0.0992488042, 0.4699001014, -0.2132213861, -0.3708058298, 0.23329252, 0.2992040813, -0.1240188181, 0.300799191, 0.355235666, -0.1722936034, 0.0196966045, -0.0850262269, 0.9305514693, -0.2057653069, 0.0553849228, 0.1662405729, 0.1524590552, 0.5891500115, -0.3118375242, 0.242113173, -0.1372166872, -0.5443878174, -0.1400335431, -0.1119210497, 0.1085164025, 0.1334478259, -0.3048273623, 0.3906708956, 0.304250896, -0.0892806947, -0.0534523055, -0.033756569, -0.1932053864, -0.0882409662, -0.1691991687, -0.1124443561, -0.0340407565, 0.593966186, -0.0418732166, 0.0029523298, 0.1844168007, -0.0214711577, -0.0345331281, -0.1751811951, -0.5350191593, 0.2652755082, 0.2661238611, -0.1540382206, -0.0759147331, 0.5716869235, 0.6944459081, -0.1355419755, 0.0254095774, -0.1389089227, 0.0475385413, 0.0059843697, -0.2499774098, -0.0792947263, 0.1179982722, 0.0279095769, -0.2371245921, -0.0089596901, 0.1250241101, 0.09458974, -0.035965696, 0.0241512787, -0.0430500023, -0.2812276781, -0.0381643474, 0.1298309565, -0.1041667536, 0.0669882745, -0.0777907595, -0.0373957083, -0.5551762581, 0.1727189124, -0.1398661733, -0.4718234837, 0.0163038243, 0.3586140871, 0.2728102207, -0.1444613636, 0.410592854, 0.0793770105, 0.1235169172, -0.0582538471, -0.3121370673, 0.2812640965, -0.4466732442, 0.4826537073, -0.333263278, 0.2762411535, 0.0468732342, 0.1860533804, 0.0992356986, 0.1407224238, -0.2239494175, -0.2591155171, -0.1163418889, 0.0624317564, 0.2013018429, 0.2372538, 0.100003913, 0.3003733158, 0.0758328959, -0.146437794, -0.1659802943, 0.217605412, -0.2373044491, 0.1934838146, 0.143110469, -0.0761535466, 0.251360625, 0.2321755141, -0.0578263067, 0.2195385098, -0.0989714861, -0.1025245339, -0.0458367467, 0.1538627297, -0.0928683579, 0.0233611166, 0.2305047661, 0.3027411103, -0.0158404931, -0.0984350592, 0.6481759548, 0.2999524176, 0.1284633726, 0.5035309792, 0.0074530598, -0.002104545, -0.4534745514, -0.2945232689, 0.2117392719, 0.0077522136, 0.0200661384, 0.0980641097, -0.0531900302, -0.028461352, -0.1261401176, -0.0733386427, 0.5804974437, -0.2278454155, -0.0304169692, 0.0826795697, -0.0677462295, -0.3896816373, 0.4106402099, -0.1681348234, -0.206620723, -0.0145438537, -0.0696040541, 0.0262061711, -0.1212485582, 0.2267164439, 0.3431797624, -0.2564216256, 0.0245612264, 0.3773987293, -0.1493620574, 0.3176618814, -0.179325372, -0.2306488603, 0.0359413028, -0.1804053187, 0.1404882371, 0.4447539151, 0.0361010507, 0.096720174, -0.0780334994, 0.1191922128, 0.2925367951, -0.0684205294, -0.2099961191, 0.417432785, -0.3103860319, 0.2381177843, 0.2955995798, -0.4263085127, 0.0692508966, 0.3971650004, -0.0107811578, 0.3950863481, -0.0795764104, 0.5769345164, -0.0424114093, -0.2923171818, 0.1233979613, 0.4711918533, -0.2232030034, -0.1391160637, -0.1596056521, -0.1254364848, -0.0932338238, 0.0786692649, -0.0378241763, 0.0231224671, 0.1900475025, 0.0685061514, 0.1057493836, 0.0426237583, -0.0970223248, 0.2900156975, 0.2817675173, -0.0030866414, -0.2167582065, 0.30814448, -0.229358539, 0.0245837048, 0.6840305328, -0.0212528631, -0.001188783, -0.3366935253, 0.6613736153, 0.2384197563, -0.147041589, 0.0022660345, -0.0645728558, 0.0270700734, 0.0554499105, -0.0251227692, 0.0127935931, -0.0312581137, 0.1785210371, -0.1207618117, 0.1366899908, -0.487428844, 0.1445139199, -0.046225898, -0.0735689923, -0.2227116972, 0.2186489403, -0.2597887814, -0.3497094214, 0.119481571, -0.1082911938, 0.0792771652, 0.0722760633, -0.021879632, -0.1936156899, 0.2946296036, 0.3574354947, 0.4273121357, -0.1635019779, -0.116074957, -0.107279554, 0.0179325342, 0.2351539284, -0.2670188844, 0.3736533523, 0.0878039598, -0.0091185234, -0.019941872, -0.0227673575, -0.12918064, -0.2303568125, 0.073021844, -0.3877384365, -0.234264195, -0.0709630251, 0.186668992, 0.2684722245, -0.3214878738, 0.0706238747, 0.3622843623, -0.2053529471, -0.0401142091, 0.3881100416, 0.0078682974, 0.0918070301, -0.0195938796, 0.1772875786, -0.0671825111, -0.0797695071, -0.0543445721, 0.4619967341, 0.1400755942, -0.34932217, 0.3237389028, -0.1057210937, 0.1021879315, -0.257327646, -0.3548611104, -0.1049616933, 0.2201497853, 0.5885670781, -0.4777236581, -0.2191800773, 0.1400904059, 0.0247548372, 0.0037989505, 0.3690434694, 0.8464450836, -0.1257860959, -0.0567211397, -0.2206315398, -0.0846721604, 0.5872302651, -0.2355545014, -0.1941431761, 0.0436769575, 0.2272449881, -0.0792714506, -0.3721284568, -0.6097917557, 0.1408357471, 0.274710536, -0.0951801911, -0.1169871315, 0.4490292966, -0.0427570567, -0.133298263, 0.1149810702, 0.0669760853, 0.3785045445, -0.3847999871, 0.1986690164, -0.3128779531 ]
https://github.com/huggingface/datasets/issues/2765
BERTScore Error
Hi, The `use_fast_tokenizer` argument has been recently added to the bert-score lib. I've opened a PR with the fix. In the meantime, you can try to downgrade the version of bert-score with the following command to make the code work: ``` pip uninstall bert-score pip install "bert-score<0.3.10" ```
## Describe the bug A clear and concise description of what the bug is. ## Steps to reproduce the bug ```python predictions = ["hello there", "general kenobi"] references = ["hello there", "general kenobi"] bert = load_metric('bertscore') bert.compute(predictions=predictions, references=references,lang='en') ``` # Bug `TypeError: get_hash() missing 1 required positional argument: 'use_fast_tokenizer'` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: Colab - Python version: - PyArrow version:
48
BERTScore Error ## Describe the bug A clear and concise description of what the bug is. ## Steps to reproduce the bug ```python predictions = ["hello there", "general kenobi"] references = ["hello there", "general kenobi"] bert = load_metric('bertscore') bert.compute(predictions=predictions, references=references,lang='en') ``` # Bug `TypeError: get_hash() missing 1 required positional argument: 'use_fast_tokenizer'` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: Colab - Python version: - PyArrow version: Hi, The `use_fast_tokenizer` argument has been recently added to the bert-score lib. I've opened a PR with the fix. In the meantime, you can try to downgrade the version of bert-score with the following command to make the code work: ``` pip uninstall bert-score pip install "bert-score<0.3.10" ```
[ -0.135768339, 0.1683019102, 0.0354213491, 0.2092980444, 0.3473314643, 0.0116616935, 0.2289915085, 0.3530414104, -0.1199427098, 0.3440087438, 0.0769438297, 0.4752254784, -0.11414738, -0.1162744761, -0.0818047822, -0.3451918364, 0.0918749869, 0.3889159858, 0.0978737101, -0.1766298711, -0.2902543247, -0.0321727656, -0.1890517473, 0.1411736906, -0.2226970941, 0.0321638808, -0.2295635045, -0.1066836119, -0.2944517732, -0.4702115059, 0.2440166175, -0.0262593552, -0.0497716293, 0.4349938333, -0.00011068, -0.0363303944, 0.2661403418, -0.042828545, 0.0534035675, -0.3680904508, -0.5844060779, -0.259118706, 0.0363758132, -0.3373252749, 0.0205995217, 0.0272910148, -0.0091575319, -0.2054015994, 0.204761371, 0.3369055688, 0.2373392582, 0.1403487772, -0.1228036657, -0.3247486651, 0.3542505205, -0.2880485058, 0.035972394, 0.2395341992, -0.2517356575, -0.1955946684, -0.1582667679, 0.3248479366, -0.0513245612, 0.0017432813, 0.2958138883, 0.244579941, -0.0856365934, 0.0226623826, 0.0879989117, 0.1774831116, 0.0153082144, -0.2262355387, -0.3905270398, 0.2721059322, -0.05088076, -0.2326858044, 0.0085089635, -0.2376615107, 0.0329266787, -0.2067706734, -0.3441339135, -0.1278513372, -0.1945915818, 0.0551804937, -0.0131268054, 0.3923608363, 0.0053675734, 0.0391237922, 0.301794827, -0.1633258909, -0.0880641192, -0.0763619691, 0.1049911454, 0.2026167363, -0.0702823848, 0.0108943135, 0.2954880893, 0.090970844, 0.1854872108, -0.5502126217, 0.0220070258, 0.0181757752, 0.0533528365, 0.2064602971, 0.0191066228, 0.3505940437, -0.1541595757, 0.2164541185, 0.2325022966, -0.0649732202, -0.171160236, -0.0547925755, -0.0315942839, -0.0788681656, 0.4890431166, 0.1721761227, -0.2210564315, -0.2010470778, -0.2376408577, 0.1853826344, -0.4741439521, -0.0452964455, 0.2106425464, 0.4372998178, -0.1917462349, 0.1406192482, -0.1900236011, 0.0471834056, -0.1788126081, 0.1952168643, -0.2828830481, 0.2730629146, -0.3546586335, -0.0977149084, 0.1049498171, -0.1991659403, 0.3755951524, 0.0675266981, 0.4369865358, 0.1716330051, -0.1321007013, -0.2742587924, 0.1550830305, -0.0190754328, 0.0458558127, -0.0588259213, 0.1923585087, -0.1388753355, -0.2338356972, 0.1322215348, -0.2897826135, -0.3272274733, 0.0407599434, 0.2200026661, -0.1817954779, -0.0427131541, -0.214280352, 0.0517423637, 0.156598717, -0.2517822981, -0.1964697838, -0.2444113046, -0.3549408317, -0.228615582, 0.3791273236, 0.1625280678, -0.2698107958, -0.0479812101, -0.1046249717, 0.2611281276, 0.2512708902, 0.1937282979, -0.2317173779, 0.3143136799, -0.1103289947, 0.0838192999, 0.3269452751, -0.5421456099, -0.4934960902, -0.2773631513, 0.1178697497, -0.1706849337, 0.0330088511, 0.067205146, 0.0950098336, 0.0390795991, 0.2723297477, -0.1352107823, 0.0036768261, 0.1628977358, -0.2928624153, -0.1766246408, 0.1568982303, -0.0429336801, 0.4267222583, -0.2014783621, -0.1615751684, 0.2878135741, -0.0385638364, -0.1464605331, -0.0206570402, 0.0809884518, 0.5700141788, -0.2868602574, 0.2906681895, -0.2317185849, 0.0181318857, 0.1943655908, -0.0077651739, 0.2645764053, -0.212067306, -0.1155012771, -0.4618648291, 0.1162810028, -0.0927694142, 0.1053282097, 0.1548780203, -0.0557347462, 0.2700782716, 0.1727412641, -0.0629522502, -0.2985922992, 0.0740370005, -0.1582508087, 0.0757352114, 0.2299351245, -0.2951510251, -0.2042699605, 0.3250261545, 0.2769492865, 0.3096358776, 0.0713862702, -0.1819416285, 0.1881349832, -0.0460105948, -0.0693425089, 0.091724962, 0.2144991904, 0.0582687482, -0.4049303234, 0.0828751773, 0.130406782, 0.3137615621, 0.0475627333, -0.1744239926, 0.4764541388, 0.0648465604, 0.1258467436, -0.0076347664, -0.0176296607, 0.2678807378, 0.1416644305, 0.2068474889, -0.3284747005, 0.155770272, -0.0036575012, 0.1681105196, -0.0214753542, 0.1855958849, -0.1167836636, 0.580828011, 0.3723365664, 0.0887973309, 0.2555125356, -0.2277008295, -0.1590949297, -0.1334579736, -0.2853346467, 0.3417614102, 0.2336740494, -0.0786177516, -0.0336477198, -0.1537462771, -0.0775061846, 0.124939166, 0.154072091, -0.0738962665, -0.0380366258, 0.3315090537, -0.0597749129, -0.1904031783, -0.1201438308, -0.0203252509, 0.4591870308, -0.3168024421, 0.2947405279, -0.1316540539, 0.1890827268, -0.0493894666, -0.6532360911, -0.0591997951, -0.3793862164, 0.2373262346, -0.0883879662, -0.0403931364, 0.3508841395, 0.0579355955, 0.1776036024, 0.1711504459, -0.107441701, -0.2738973796, -0.5320507884, -0.2634781897, 0.0622549318, -0.1156595498, 0.0657805949, 0.251799196, -0.2744703591, 0.1120412946, -0.133320719, -0.5113036036, 0.0996797234, -0.3408313692, 0.4703123868, 0.332133472, -0.1779074967, -0.5641244054, -0.2329176813, 0.4654655159, -0.1895074248, -0.0704405755, 0.2736667991, -0.0602832511, -0.0971532166, 0.0020505637, -0.3575297892, 0.0341208205, 0.0028462261, 0.029158134, 0.079693526, 0.165220201, -0.170943439, 0.2613536716, 0.2987738252, -0.0680779666, -0.0711868852, -0.2196063697, -0.4031367898, 0.5500205755, -0.1909076422, -0.2825049758, -0.1657274961, -0.1692579389, 0.1987822056, 0.048779279, -0.1322615892, -0.5942786336, -0.0986291245, 0.1793271601, -0.0764524713, 0.2097878307, 0.1528715193, 0.3122164011, -0.1486097127, -0.245424509, -0.161969021, 0.1745100915, -0.171066463, 0.1097462922, -0.2303154469, 0.3325130045, 0.10211882, 0.9215057492, 0.1928441375, -0.2365645468, 0.2600074708, -0.1881906688, 0.1139807552, -0.1771750748, -0.4246748388, 0.0952085778, -0.0468005687, -0.1012853161, 0.3070327044, -0.0522173792, 0.1064388603, -0.2177165598, -0.0757569224, -0.2872138023, -0.3465433717, 0.1041221842, -0.0554187745, 0.2312718183, 0.2452375442, 0.2311151475, -0.450941503, -0.297668159, 0.1437608451, -0.3137771487, 0.0095746852, -0.1711257994, 0.0973922759, -0.3218020201, -0.3403779268, 0.427081883, 0.4881605208, 0.2987391651, 0.0457809269, 0.1343837082, -0.0436952151, -0.1290863752, 0.4031527936, -0.0241342448, 0.1742089689, 0.0091169998, 0.0497265458, -0.0384634547, 0.1221544594, -0.4014155269, 0.1189656705, 0.0262239315, 0.4224994779, -0.2948799431, 0.1139011383, 0.1677736044, 0.0341982767, -0.1736878604, -0.0720653608, -0.4913314283, -0.1067168489, -0.0734218359, 0.3320939243, 0.0136511922, 0.304274559, 0.0199643597, -0.069735527, 0.0623829067, -0.2804694176, 0.211020574, 0.3583397865, 0.1956294477, -0.0093366057, 0.2691901326, -0.0080661839, -0.2322555184, 0.5070554018, 0.1846841276, -0.247304678, -0.606549859, -0.1910000145, 0.0006402805, 0.5480853319, 0.0741694421, -0.1902202666, -0.0997795761, -0.073161751, 0.0602187365, -0.0679086372, 0.3978591263, 0.4066796601, 0.0434776992, -0.3172376752, -0.1784373224, 0.5495811105, 0.282720387, -0.1120698452, 0.0196733586, 0.5535880327, -0.2378886342, 0.4279628098, 0.3329146504, 0.9520223141, -0.1216432601, -0.0361437201, 0.2687771022, 0.0591818243, 0.5790298581, 0.1037807986, 0.2235224992, -0.4127733707, -0.2533382475, 0.0197410509, -0.1117405221, -0.0586743802, -0.104125306, -0.3604677916, 0.4359686673, -0.2815930247, 0.2554151118, 0.0881390795, -0.0858826116, 0.1566114724, -0.1937499493, -0.3508880734, 0.1715564132, -0.0647830814, 0.0104420055, -0.1781091094, -0.0838006288, -0.1293509305, -0.3548139334, -0.2460958809, 0.0518607944, -0.0493000746, 0.1146283001, -0.1172222942, -0.3084895611, 0.0602367967, 0.0566900149, 0.415530771, 0.4209898412, -0.2582206428, 0.2679955363, -0.0648818836, 0.181175828, 0.1085583717, 0.0717811212, 0.1041906402, -0.0552384518, -0.1578829885, 0.2358064055, -0.0819151103, -0.1071693599, -0.0834334344, 0.0156909116, 0.2633230388, -0.2350268364, 0.0473704971, -0.1392347217, 0.1451858878, -0.3295620978, 0.1802754849, 0.1452369541, -0.1570019275, 0.3131343722, 0.0018816083, -0.1545764804, 0.1093606353, 0.4137753546, 0.1025106385, -0.0221785232, 0.4374266267, -0.1429375261, -0.2596268058, -0.137530297, -0.1614584774, 0.1663229465, -0.1670374125, 0.1860702634, 0.0946156681, 0.2306500375, 0.0522695147, 0.5719164014, 0.1177776232, -0.1696174592, 0.13638708, -0.3092876077, -0.1082821637, 0.1192802414, -0.0864589661, -0.007682994, 0.0035060793, 0.1689174622, -0.1505277306, 0.3258634806, -0.3601907492, 0.012650881, -0.4700368643, 0.206126377, -0.2473837137, -0.0173081663, 0.2452017963, -0.023098547, 0.1007350683, 0.2630828023, -0.1777684391, -0.2205411643, -0.1287355721, 0.0916389525, 0.110448122, 0.0546093136, -0.0064815804, 0.1228995919, -0.1365967691, -0.2155856937, -0.1219802573, 0.2991617918, -0.0076047704, 0.2453025281, 0.1821094453, 0.1080808789, 0.1998058558, -0.214844346, 0.1180739552, 0.1997874528, -0.0293725468, 0.2218606174, -0.0079311542, -0.1382146776, 0.2635360956, 0.0294998027, 0.4643989205, -0.0224975832, 0.2424799651, -0.1946604848, -0.1003616303, 0.1491229385, 0.2866358757, 0.371991694, -0.1622952819, -0.1772248447, 0.3476006985, 0.1972045451, -0.4130782485, -0.1833365411, -0.015085387, 0.2177569121, 0.0468952507, 0.1587257981, -0.0353807509, -0.054502055, 0.0274946019, -0.0682397261, 0.1834890991, -0.2067254633, -0.0511263944, 0.0133197429, -0.0730466247, 0.1287649423, 0.3544396162, 0.0895641148, 0.3318193257, 0.5564888716, -0.2681511641, 0.4829030931, -0.2044487, 0.0878313333, -0.1325692683, 0.028528437, -0.107296899, 0.1365872324, 0.1400078982, 0.0589684956, 0.0158568285, 0.8266768456, -0.0803470612, 0.101460591, -0.3887360096, 0.1683848798, -0.0119948545, -0.1171091944, -0.0547748357, -0.2624057531, -0.2106731385, 0.0811168775, 0.0158913825, 0.124582164, 0.421536237, 0.2092751563, 0.144351989, -0.2554768026, -0.1748762876, 0.4411931038, 0.2574709654, -0.289591074, 0.1098921597, 0.159224093, -0.1117750555, -0.1280723214, 0.3511739075, 0.2745371163, 0.3522093892, -0.1776163578, -0.1480372548, -0.2610131502, -0.0431445837, -0.0026830956, 0.3742751777, 0.1880341619, 0.0464068428, 0.148973465, 0.1528084725, -0.1990122199, 0.2535201311, 0.0206503253, 0.4681147039, -0.0658483058, 0.3174073994, 0.0398344323, 0.0324197188, 0.0036228579, -0.2002907544, -0.2993040681, 0.1330289543, 0.051754877, 0.2607644796, -0.0237015635, -0.2117722034, 0.1049004495, 0.1395422518, 0.4409419298, 0.2791270912, 0.1469462514, -0.6404085159, -0.0449288264, -0.4518197179, 0.1629372388, -0.0208122153, 0.3008386493, -0.1564246118, -0.0414832458, -0.1359416693, 0.264983356, -0.0204071626, -0.1017611474, -0.2103612125, 0.0730616748, -0.4150722623, 0.0396688133, -0.3952051997, -0.4520669281, 0.1354968846, -0.1934475899, -0.0277334712, -0.3400936723, 0.1221163422, -0.2560791373, -0.296957016, 0.1214851141, 0.1431153119, 0.6734747291, 0.2715200186, 0.4250793159, -0.0546114668, 0.0503764376, 0.0825027078, -0.1654839516, -0.0256075077, -0.0099342391, 0.0087095052, 0.1472881436, -0.1428936571, 0.002856208, -0.3011901975, 0.176022023, 0.0736626536, -0.2087873667, -0.3524348438, 0.1006988138, -0.0179186091, -0.0920896009, -0.2663926184, 0.1667678952, -0.0187938027, 0.3740312457, -0.4058203995, -0.26538077, 0.5419952869, -0.5197665691, -0.3598223031, -0.0807503685, 0.2593531907, 0.0481356271, -0.3689706922, -0.7990342379, -0.0074764043, 0.3657462597, 0.2452619225, -0.2954540551, -0.0031837299, -0.0610720813, 0.1361376196, -0.1206355169, 0.2416772395, -0.0414120927, -0.112629272, 0.0680980533, -0.2633719444 ]
https://github.com/huggingface/datasets/issues/2763
English wikipedia datasets is not clean
Hi ! Certain users might need these data (for training or simply to explore/index the dataset). Feel free to implement a map function that gets rid of these paragraphs and process the wikipedia dataset with it before training
## Describe the bug Wikipedia english dumps contain many wikipedia paragraphs like "References", "Category:" and "See Also" that should not be used for training. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset w = load_dataset('wikipedia', '20200501.en') print(w['train'][0]['text']) ``` > 'Yangliuqing () is a market town in Xiqing District, in the western suburbs of Tianjin, People\'s Republic of China. Despite its relatively small size, it has been named since 2006 in the "famous historical and cultural market towns in China".\n\nIt is best known in China for creating nianhua or Yangliuqing nianhua. For more than 400 years, Yangliuqing has in effect specialised in the creation of these woodcuts for the New Year. wood block prints using vivid colourschemes to portray traditional scenes of children\'s games often interwoven with auspiciouse objects.\n\n, it had 27 residential communities () and 25 villages under its administration.\n\nShi Family Grand Courtyard\n\nShi Family Grand Courtyard (Tiānjīn Shí Jiā Dà Yuàn, 天津石家大院) is situated in Yangliuqing Town of Xiqing District, which is the former residence of wealthy merchant Shi Yuanshi - the 4th son of Shi Wancheng, one of the eight great masters in Tianjin. First built in 1875, it covers over 6,000 square meters, including large and small yards and over 200 folk houses, a theater and over 275 rooms that served as apartments and places of business and worship for this powerful family. Shifu Garden, which finished its expansion in October 2003, covers 1,200 square meters, incorporates the elegance of imperial garden and delicacy of south garden. Now the courtyard of Shi family covers about 10,000 square meters, which is called the first mansion in North China. Now it serves as the folk custom museum in Yangliuqing, which has a large collection of folk custom museum in Yanliuqing, which has a large collection of folk art pieces like Yanliuqing New Year pictures, brick sculpture.\n\nShi\'s ancestor came from Dong\'e County in Shandong Province, engaged in water transport of grain. As the wealth gradually accumulated, the Shi Family moved to Yangliuqing and bought large tracts of land and set up their residence. Shi Yuanshi came from the fourth generation of the family, who was a successful businessman and a good household manager, and the residence was thus enlarged for several times until it acquired the present scale. It is believed to be the first mansion in the west of Tianjin.\n\nThe residence is symmetric based on the axis formed by a passageway in the middle, on which there are four archways. On the east side of the courtyard, there are traditional single-story houses with rows of rooms around the four sides, which was once the living area for the Shi Family. The rooms on north side were the accountants\' office. On the west are the major constructions including the family hall for worshipping Buddha, theater and the south reception room. On both sides of the residence are side yard rooms for maids and servants.\n\nToday, the Shi mansion, located in the township of Yangliuqing to the west of central Tianjin, stands as a surprisingly well-preserved monument to China\'s pre-revolution mercantile spirit. It also serves as an on-location shoot for many of China\'s popular historical dramas. Many of the rooms feature period furniture, paintings and calligraphy, and the extensive Shifu Garden.\n\nPart of the complex has been turned into the Yangliuqing Museum, which includes displays focused on symbolic aspects of the courtyards\' construction, local folk art and customs, and traditional period furnishings and crafts.\n\n**See also \n\nList of township-level divisions of Tianjin\n\nReferences \n\n http://arts.cultural-china.com/en/65Arts4795.html\n\nCategory:Towns in Tianjin'** ## Expected results I expect no junk in the data. ## Actual results Specify the actual results or traceback. ## Environment info - `datasets` version: 1.10.2 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 3.0.0
38
English wikipedia datasets is not clean ## Describe the bug Wikipedia english dumps contain many wikipedia paragraphs like "References", "Category:" and "See Also" that should not be used for training. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset w = load_dataset('wikipedia', '20200501.en') print(w['train'][0]['text']) ``` > 'Yangliuqing () is a market town in Xiqing District, in the western suburbs of Tianjin, People\'s Republic of China. Despite its relatively small size, it has been named since 2006 in the "famous historical and cultural market towns in China".\n\nIt is best known in China for creating nianhua or Yangliuqing nianhua. For more than 400 years, Yangliuqing has in effect specialised in the creation of these woodcuts for the New Year. wood block prints using vivid colourschemes to portray traditional scenes of children\'s games often interwoven with auspiciouse objects.\n\n, it had 27 residential communities () and 25 villages under its administration.\n\nShi Family Grand Courtyard\n\nShi Family Grand Courtyard (Tiānjīn Shí Jiā Dà Yuàn, 天津石家大院) is situated in Yangliuqing Town of Xiqing District, which is the former residence of wealthy merchant Shi Yuanshi - the 4th son of Shi Wancheng, one of the eight great masters in Tianjin. First built in 1875, it covers over 6,000 square meters, including large and small yards and over 200 folk houses, a theater and over 275 rooms that served as apartments and places of business and worship for this powerful family. Shifu Garden, which finished its expansion in October 2003, covers 1,200 square meters, incorporates the elegance of imperial garden and delicacy of south garden. Now the courtyard of Shi family covers about 10,000 square meters, which is called the first mansion in North China. Now it serves as the folk custom museum in Yangliuqing, which has a large collection of folk custom museum in Yanliuqing, which has a large collection of folk art pieces like Yanliuqing New Year pictures, brick sculpture.\n\nShi\'s ancestor came from Dong\'e County in Shandong Province, engaged in water transport of grain. As the wealth gradually accumulated, the Shi Family moved to Yangliuqing and bought large tracts of land and set up their residence. Shi Yuanshi came from the fourth generation of the family, who was a successful businessman and a good household manager, and the residence was thus enlarged for several times until it acquired the present scale. It is believed to be the first mansion in the west of Tianjin.\n\nThe residence is symmetric based on the axis formed by a passageway in the middle, on which there are four archways. On the east side of the courtyard, there are traditional single-story houses with rows of rooms around the four sides, which was once the living area for the Shi Family. The rooms on north side were the accountants\' office. On the west are the major constructions including the family hall for worshipping Buddha, theater and the south reception room. On both sides of the residence are side yard rooms for maids and servants.\n\nToday, the Shi mansion, located in the township of Yangliuqing to the west of central Tianjin, stands as a surprisingly well-preserved monument to China\'s pre-revolution mercantile spirit. It also serves as an on-location shoot for many of China\'s popular historical dramas. Many of the rooms feature period furniture, paintings and calligraphy, and the extensive Shifu Garden.\n\nPart of the complex has been turned into the Yangliuqing Museum, which includes displays focused on symbolic aspects of the courtyards\' construction, local folk art and customs, and traditional period furnishings and crafts.\n\n**See also \n\nList of township-level divisions of Tianjin\n\nReferences \n\n http://arts.cultural-china.com/en/65Arts4795.html\n\nCategory:Towns in Tianjin'** ## Expected results I expect no junk in the data. ## Actual results Specify the actual results or traceback. ## Environment info - `datasets` version: 1.10.2 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 3.0.0 Hi ! Certain users might need these data (for training or simply to explore/index the dataset). Feel free to implement a map function that gets rid of these paragraphs and process the wikipedia dataset with it before training
[ -0.0217496157, 0.2180520594, -0.1063897014, 0.4800750911, 0.2548156977, 0.1268990189, 0.3188249469, 0.3147776723, 0.2105302513, 0.0805180445, -0.1847257465, 0.2396584302, 0.3409662247, -0.2226555198, 0.2059661299, -0.359701544, 0.2095891833, 0.0540648811, -0.3535145521, -0.2804772854, -0.2011401802, -0.044579953, -0.2302432805, 0.2511757314, -0.3913941085, -0.0602720007, -0.1513203979, 0.0464151539, -0.0278705824, -0.2779785991, 0.0563255027, -0.2114444375, -0.263355732, 0.3735166788, -0.000104858, -0.0351675153, 0.3287271559, 0.0319341347, -0.1813077033, 0.1614541858, -0.4102662802, -0.2440757304, -0.1773908138, -0.4298770726, 0.0149513781, -0.135649845, 0.0609836578, 0.1326295584, 0.2397328913, 0.2525061369, 0.2651383579, -0.1925647259, -0.0854851678, -0.1452976167, 0.2307806313, 0.2006865889, -0.1339762956, 0.1043764353, -0.1793819368, -0.0810343549, -0.3428087234, 0.4742646217, -0.1878856272, -0.0846632347, -0.0016512275, 0.0582643114, 0.0034019407, -0.1630996466, 0.3464974165, 0.4074314833, 0.3778396845, -0.2557982504, -0.2104948759, 0.0359945893, -0.193841815, -0.0199064948, 0.2206405103, 0.4031751454, -0.1245587766, 0.2314279824, -0.0001321808, -0.1658484191, -0.1803620458, 0.3355077207, -0.0778020024, 0.3513064981, 0.0784135461, -0.068271786, -0.1236615479, -0.2863452435, 0.1012385339, -0.1975317001, 0.0682565495, 0.3470066488, 0.0446783826, 0.0525923073, 0.113664642, 0.208091259, 0.2858698368, -0.1333635002, -0.2652033269, -0.0882650614, -0.1367066056, 0.0373127311, 0.1167580485, -0.2515016496, -0.0322287939, 0.1256176084, 0.2220253348, 0.1560225487, -0.1069583818, 0.2413078398, 0.198423326, -0.2149845809, -0.0874887779, -0.1044265926, 0.0813944563, -0.1835743487, -0.3046199977, 0.5948895216, -0.3711346984, -0.1318762004, -0.2979770899, 0.3457995057, -0.1281637251, -0.0458850041, 0.1415422857, 0.0513531789, -0.2917692661, -0.1837871522, -0.2216852009, 0.2715577781, -0.1283210963, 0.0329070538, -0.0046776161, -0.1679581255, 0.2080499679, 0.3736844361, -0.1623070836, -0.1798123568, -0.3341548145, -0.2787848711, 0.1935304701, 0.1823900491, -0.192486763, -0.0175304227, 0.1466525197, -0.4668096602, -0.0528690293, 0.2100446969, -0.1489782035, 0.0081561357, -0.3441652656, 0.2914661467, -0.0529969372, -0.0388296507, 0.2570790052, 0.1582390368, 0.3505282104, 0.1839473695, 0.3142881989, 0.3185163736, -0.116617769, -0.0557745546, 0.1568237245, 0.3804236054, -0.1299567819, -0.2104955018, -0.0621754751, -0.0130198291, 0.33330369, 0.3461739123, 0.0501940735, 0.6008312106, -0.0544616431, 0.1438073516, 0.206892252, -0.0154538453, -0.3052203953, 0.2074415237, 0.037653327, 0.0793067217, 0.0197679885, 0.0175003558, 0.1682178527, 0.2418493927, 0.3015217483, 0.2445598543, 0.3042182922, 0.1639275849, -0.3787769675, -0.3602712452, 0.3326549232, -0.0616247281, 0.1865496635, -0.03776142, 0.1737392396, 0.4814154208, 0.3857314885, -0.1446894556, 0.1019092202, 0.3164463043, -0.0144039746, 0.1753052175, 0.2112829983, -0.1105101183, 0.0269026607, -0.0118264556, 0.137276873, 0.2664978206, -0.2442846298, -0.3616577685, -0.2867642641, 0.0922365636, -0.3069058955, -0.3633960485, 0.2632480264, -0.0178857669, -0.1031324491, 0.2370320261, 0.1850254387, -0.0453622229, -0.4526404142, -0.0165403485, -0.2000681758, 0.2641222775, -0.3693933189, 0.1141752154, -0.2537212968, 0.2936863005, -0.0100538023, 0.2576894462, -0.158075884, 0.0685127825, 0.0015478916, 0.3471231163, 0.1509387195, -0.0268892944, 0.2413432896, -0.591763854, 0.1313878447, 0.3716411591, 0.1322369426, 0.0131711513, -0.2830153108, 0.122990191, 0.1055337787, -0.0603140146, -0.0661211908, -0.0409793444, 0.1868356168, -0.1494054794, 0.1104727015, -0.3986356556, 0.1634107828, 0.2136998922, 0.0442375094, 0.2923955619, -0.5543635488, -0.0755147487, 0.3965300918, -0.0039932504, 0.4506632984, -0.0317553207, -0.0955355465, -0.1722245216, 0.3157479465, -0.1668303609, -0.0061808079, 0.0669405758, 0.1214142218, 0.0968191922, -0.1436296552, -0.3810411692, 0.2992762327, 0.0703402013, 0.1209896281, 0.0078815538, 0.1264984608, 0.1745313406, -0.4669389129, 0.2897340059, -0.1302144229, 0.2766365111, -0.509198308, 0.0974703431, -0.1547909081, -0.4750179052, -0.2219111472, -0.0872932374, -0.1623681784, -0.171570152, 0.0400902145, -0.2734847367, -0.3408181071, 0.2923766375, 0.0714333504, 0.1096782908, 0.1521873176, -0.03118263, -0.1206416413, -0.3250730634, -0.1509712338, 0.1725412607, 0.1331775784, 0.1109378412, 0.2994437814, -0.2933175266, -0.1828280091, -0.5233900547, -0.4014010727, 0.2149630785, -0.0341929421, 0.1937802583, -0.0156560875, 0.3246046305, -0.1813622713, -0.2817066014, 0.1334263235, 0.1305943131, -0.0667662024, 0.0104153082, -0.2001213133, 0.1518588811, -0.1306821406, -0.4890945256, -0.0460662022, -0.2238665521, 0.0964819938, -0.0520533994, 0.3584498167, 0.4512477517, 0.1462247968, 0.1525149494, 0.1314288378, 0.2828704119, -0.3825257719, -0.0908684134, 0.2340753376, -0.1905325055, -0.3137814105, -0.1074099392, -0.1780992448, -0.0916710198, 0.0535357147, -0.5115402937, 0.0990554392, -0.066032894, 0.4441332519, 0.2005381435, 0.08491157, -0.0107276477, 0.0398275815, -0.0819235593, -0.1840940714, 0.209616676, -0.0431089401, -0.1930229515, 0.1679572165, -0.016227277, 0.5018723011, 0.2536742687, 0.5470895767, 0.2564649582, 0.2209026814, 0.1681792736, -0.1750083119, 0.2536385357, -0.0764030218, -0.217014268, 0.2947618961, -0.0201398954, -0.196178332, 0.3155837953, -0.1906969249, -0.2418267727, -0.064551115, 0.0898620486, -0.4327479005, -0.2150688022, 0.068822667, 0.0117365634, 0.2894495726, 0.0313612223, 0.201541245, 0.165695101, -0.2568352222, 0.0745144188, 0.015312396, -0.0868683234, 0.0118712187, 0.1580388248, -0.2125454247, -0.2947319448, -0.0258162841, 0.134664759, 0.092365995, -0.264864713, -0.1244311333, 0.1207081974, 0.0238637254, 0.2426905632, -0.2924233973, 0.1627910286, 0.1081887931, 0.2368685156, -0.2457909733, 0.0996568054, -0.2826501429, 0.3831587136, 0.4021659493, 0.1113401353, -0.2951384187, -0.0998467952, 0.5115591288, 0.2186970711, -0.176761657, 0.1225274354, -0.1420457065, -0.1168026701, -0.2688204646, 0.3743786514, 0.1339214444, 0.1794765741, -0.0843837634, 0.1417194456, 0.1423677653, 0.5251242518, 0.0477731787, 0.1895800829, 0.2533743382, 0.2911842465, -0.0996596962, -0.0260240193, -0.0781829953, 0.070548825, 0.4936421514, -0.1975692511, -0.2303664982, -0.2939319313, -0.2943984866, 0.0649927706, 0.3974118531, -0.0331266969, -0.0881759375, 0.1749218851, -0.1704998761, -0.1304393411, -0.0950153247, 0.1914543062, 0.048873689, -0.1440316141, -0.4761123657, 0.6198272705, -0.1264689416, 0.027377069, 0.0217140708, -0.0269502141, -0.4105685055, 0.1700829864, 0.254680723, 0.9464244246, 0.2910652161, 0.1372577697, 0.3389452696, 0.1367831826, 0.1745019555, 0.1369132549, -0.1498893201, -0.3785794377, 0.1422251463, 0.0048095286, 0.0986761749, 0.0799719915, 0.0561745279, -0.2926944494, 0.0920923427, -0.4051765501, 0.148754105, 0.2856563628, 0.0871684998, 0.1106024459, -0.2564540803, -0.2089184374, 0.1717504859, -0.0674589798, 0.0501564257, -0.2172480822, -0.0479167774, -0.2214342058, -0.059393283, -0.429839015, 0.1101738214, -0.0146067962, 0.4323615432, -0.0474374071, -0.3589805961, -0.1632198095, 0.3142881393, 0.0068217739, 0.2323221266, -0.2190513462, 0.1638808846, 0.05512321, 0.104590416, 0.1837891042, 0.2056869268, 0.4542145133, -0.0410170481, -0.3303293586, 0.0718729198, -0.150942564, -0.0843536407, -0.1562633514, -0.0905573517, -0.1486928463, -0.1267622113, -0.203093186, 0.0374683291, -0.1449430883, -0.3290221989, 0.2100214958, 0.0266083833, -0.0055106953, -0.0627180636, 0.1027226001, -0.4178876877, -0.0673538893, 0.120326072, 0.2012442797, 0.2464582026, 0.3070988655, 0.3385808468, -0.3948934674, -0.343470037, 0.0073804632, -0.2924910188, -0.2570524812, -0.1034267992, -0.2936595976, -0.015826717, -0.2636460066, 0.1282203794, 0.0152880019, 0.0136046167, -0.1466554105, -0.4271979332, -0.061013829, 0.3576848209, 0.155173406, 0.0271693878, 0.1670847088, 0.0822834969, 0.2062350363, -0.0465493128, -0.4155222178, 0.091983974, -0.3135485947, 0.1315244734, -0.0567874722, 0.0673397705, -0.2217292786, -0.2155220211, 0.1608973742, -0.2391644865, -0.0959362239, -0.312594831, -0.1546701193, 0.0946182907, 0.0696934015, -0.0980507433, 0.0308933221, -0.0046273172, 0.1005859822, -0.2756651342, 0.0421900004, 0.1222031713, -0.0092289932, 0.3724422753, -0.0267858468, 0.1925995946, 0.0317433774, -0.1391225308, -0.0515313633, 0.2592617273, -0.0716815814, 0.2771883011, 0.0490553975, -0.0567287579, 0.0147446953, 0.031686306, -0.0732395574, 0.0380924381, 0.2449266016, -0.237531513, -0.0414854698, 0.3766607642, 0.1083502471, 0.3124465346, -0.3910879195, -0.0867065936, -0.1380980313, 0.3295797706, -0.1939186156, 0.0695074052, 0.0026594307, -0.2876420915, 0.0547301173, 0.1131538153, 0.093988657, -0.2414281368, -0.0041062608, 0.1915746629, 0.0746796578, -0.2529518604, 0.2269822955, 0.3803839087, 0.0138362423, 0.1778621674, -0.0633261055, 0.0702819377, -0.0616162606, 0.3406337798, 0.3166196346, -0.0080494313, 0.2981329262, 0.2172825933, 0.0415305607, 0.003594026, 0.3930801749, 0.1677064002, -0.4627998173, 0.010361094, 0.1248838902, 0.0746581405, 0.3124026656, -0.1110321283, -0.0987585634, 0.1237553731, -0.3691426814, -0.1521781385, -0.1100704372, -0.155302003, 0.0493778288, 0.0431637615, -0.015778482, -0.2311107516, 0.0295918398, -0.0264925435, -0.3002964258, -0.4345846772, 0.5299291015, 0.1440942287, 0.1175736785, -0.4787163436, 0.1488223374, 0.0081932768, -0.0973190889, -0.3266994655, 0.6328184009, 0.3283831477, 0.200607866, -0.1508841813, 0.0393683389, -0.1578692347, -0.1300504208, 0.0183742829, -0.001169499, 0.1858094931, -0.1209187284, 0.4000382125, 0.1490638256, -0.2466210276, -0.1811037064, 0.5726726651, 0.2986350656, 0.0300127156, -0.3170936406, -0.0635955483, -0.1525591612, 0.0646836013, -0.1351117492, -0.4166483879, 0.0175685771, 0.5091847181, 0.0315329768, 0.2170376182, -0.1578037143, 0.1260560453, 0.1256028563, 0.5439804792, 0.4771566987, 0.3215118647, 0.0334345065, -0.2102818936, -0.5221922398, 0.1139219701, -0.3307038248, 0.0611846596, 0.1933302134, 0.2705696523, -0.0403803065, 0.2471337914, -0.1648398638, -0.0854509026, -0.0238449834, 0.1717417538, -0.282448113, -0.0814170688, 0.1719480008, 0.1485821307, -0.2805479169, -0.3322796226, 0.3170481622, -0.2754180133, 0.1466151923, -0.0726720691, -0.1809592247, 0.1821582764, 0.3728327155, 0.3264458776, 0.1073771715, 0.2122053951, -0.2185540795, -0.012222033, -0.0883899853, -0.2975089252, 0.0703274086, 0.6526839733, 0.064265728, 0.1192352846, 0.1520588994, -0.2892923951, 0.1741573513, 0.5524719954, 0.0602066368, -0.0746276975, -0.2985340059, -0.0249618404, 0.1073963568, -0.0485407598, -0.2636000812, 0.1822528541, -0.1529707909, 0.079188101, -0.1050485075, -0.692417264, 0.1791935116, -0.4743675292, -0.3494185209, -0.2618201375, 0.2053391635, 0.1779122204, -0.0478014052, -0.4104756117, -0.1351322234, 0.3146882653, -0.1238034591, -0.3916366398, -0.0282043405, -0.0388242267, 0.1189855859, -0.1689135432, 0.21359016, 0.056097798, -0.3986985385, 0.0426541269, -0.5303529501 ]
https://github.com/huggingface/datasets/issues/2761
Error loading C4 realnewslike dataset
Hi @danshirron, `c4` was updated few days back by @lhoestq. The new configs are `['en', 'en.noclean', 'en.realnewslike', 'en.webtextlike'].` You'll need to remove any older version of this dataset you previously downloaded and then run `load_dataset` again with new configuration.
## Describe the bug Error loading C4 realnewslike dataset. Validation part mismatch ## Steps to reproduce the bug ```python raw_datasets = load_dataset('c4', 'realnewslike', cache_dir=model_args.cache_dir) ## Expected results success on data loading ## Actual results Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 15.3M/15.3M [00:00<00:00, 28.1MB/s]Traceback (most recent call last): File "run_mlm_tf.py", line 794, in <module> main() File "run_mlm_tf.py", line 425, in main raw_datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name, cache_dir=model_args.cache_dir) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 843, in load_dataset builder_instance.download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 608, in download_and_prepare self._download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 698, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='validation', num_bytes=38165657946, num_examples=13799838, dataset_name='c4'), 'recorded': SplitInfo(name='validation', num_bytes=37875873, num_examples=13863, dataset_name='c4')}] ## Environment info - `datasets` version: 1.10.2 - Platform: Linux-5.4.0-58-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 4.0.1
39
Error loading C4 realnewslike dataset ## Describe the bug Error loading C4 realnewslike dataset. Validation part mismatch ## Steps to reproduce the bug ```python raw_datasets = load_dataset('c4', 'realnewslike', cache_dir=model_args.cache_dir) ## Expected results success on data loading ## Actual results Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 15.3M/15.3M [00:00<00:00, 28.1MB/s]Traceback (most recent call last): File "run_mlm_tf.py", line 794, in <module> main() File "run_mlm_tf.py", line 425, in main raw_datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name, cache_dir=model_args.cache_dir) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 843, in load_dataset builder_instance.download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 608, in download_and_prepare self._download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 698, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='validation', num_bytes=38165657946, num_examples=13799838, dataset_name='c4'), 'recorded': SplitInfo(name='validation', num_bytes=37875873, num_examples=13863, dataset_name='c4')}] ## Environment info - `datasets` version: 1.10.2 - Platform: Linux-5.4.0-58-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 4.0.1 Hi @danshirron, `c4` was updated few days back by @lhoestq. The new configs are `['en', 'en.noclean', 'en.realnewslike', 'en.webtextlike'].` You'll need to remove any older version of this dataset you previously downloaded and then run `load_dataset` again with new configuration.
[ -0.2315264046, 0.0246403217, -0.0223660525, 0.4574565291, 0.1744246185, 0.2295815647, -0.0073710401, 0.5081833601, -0.031652987, 0.0191250816, -0.1842969656, -0.0640127659, -0.0091638286, 0.3338085711, -0.0433652624, -0.2194699943, -0.1107671037, 0.1606065631, 0.1407684088, 0.0597508252, -0.1448135823, 0.2009049505, -0.215441376, -0.0725571141, -0.270711273, -0.01300749, 0.1758372337, 0.3205581009, 0.0850606337, -0.5288671255, 0.2025578022, -0.1739534289, 0.0258220136, 0.5030127168, -0.0001112284, 0.0486642569, 0.4246914685, -0.0443262011, -0.3031129539, 0.0802711546, -0.3098668754, -0.2428597212, 0.1443645954, -0.032009311, -0.331359446, -0.1901499033, -0.2336004525, -0.337559551, 0.2493240386, 0.6167077422, 0.2385805845, 0.3121446967, 0.060873583, 0.0165075436, -0.1109836549, -0.1475731283, -0.0226773992, 0.3512017727, -0.0215201154, 0.0317062438, 0.178488642, 0.2144182324, 0.0287547335, 0.1094983965, 0.1285811961, -0.1285624206, 0.2033364028, -0.1063503847, 0.1449160576, 0.3846839964, 0.3563731313, -0.2420738339, -0.151951015, -0.308082521, -0.1986612827, -0.277394563, 0.2565826178, 0.19997482, -0.1624884009, 0.1661830395, -0.3945816159, 0.2987679243, 0.0589542538, 0.0859670416, -0.193233341, 0.2412162721, 0.1517074257, -0.0265462808, 0.0266115051, 0.0962594151, 0.1632710695, -0.1978421211, -0.064860329, 0.2136573941, -0.6099297404, -0.2218069583, -0.3099172115, 0.4977057874, -0.0144231878, -0.0514828861, -0.1140120104, -0.0171041675, 0.1712173969, -0.1863039732, 0.1688324809, 0.2142095119, -0.1980088651, 0.1207097173, 0.1434051096, -0.1067880243, 0.0161336586, -0.0791776627, 0.1627921611, -0.1318753064, -0.0637645051, 0.2420959026, 0.0574146062, -0.317914933, -0.6927222013, 0.2458001673, -0.303799957, -0.0368812084, 0.0007450767, 0.3466165662, -0.3842544258, 0.2641149163, 0.1001106948, -0.1724212915, -0.2799531519, -0.2688709199, -0.2056978643, 0.0522302277, -0.368568033, 0.0012723841, 0.2524728775, -0.2094727159, 0.4003706574, -0.0511983037, 0.1751805395, -0.0478968732, 0.2091276795, -0.3762722909, -0.1081526428, 0.225599885, -0.3169129789, 0.0376331657, 0.2689842284, -0.0927060544, 0.0103947222, -0.0342600867, 0.1593454927, -0.3435824215, -0.1637989581, 0.2872267365, -0.0145504214, 0.028838668, 0.0684598833, -0.0540243313, 0.3395631313, -0.1157189831, -0.1957778484, -0.2394089401, 0.0330544263, -0.0582297519, 0.1889539063, 0.4896892011, -0.4754009843, 0.0806837976, -0.3405703604, 0.1221413314, 0.4467143714, 0.2935123146, -0.0330284461, 0.2765633464, -0.2077404857, 0.023706466, -0.0174367651, -0.3686726689, -0.3444619775, 0.5175631046, -0.082237497, 0.3453440666, -0.0547712632, 0.043167036, 0.1374017745, 0.0436607711, 0.1547781229, 0.2047380805, -0.1418512017, 0.1543141603, -0.5629569292, -0.1220000759, 0.3635739982, 0.0133565068, 0.1890147775, -0.2069267929, 0.1235910505, -0.0846619979, 0.4912209213, -0.0084105972, -0.1206195503, -0.0321739614, 0.2111113518, -0.0240929835, 0.1006423235, -0.2743468285, -0.5518816113, 0.2668114305, -0.0237274729, 0.1528526694, 0.1286136508, -0.0469232537, -0.5897586346, -0.1467692554, -0.1562292576, -0.2404750288, 0.1061193347, 0.1226576865, 0.2428139895, 0.0796360075, -0.0546255969, 0.5485522747, -0.0577965155, 0.1413288862, -0.0799552798, 0.3413335085, -0.1525629163, -0.030509524, -0.0302448273, 0.1346587092, 0.2463358641, -0.0983945206, -0.3567021787, 0.6420468688, 0.1248636693, 0.2066822052, -0.4426276684, 0.0053087175, 0.3827438056, -0.3125799596, 0.095701851, 0.5969315767, 0.2378961146, 0.0181499273, 0.0953134075, 0.4245106578, -0.0290686693, -0.0525033846, 0.1060229391, -0.1878118217, 0.1633398533, -0.1469225734, 0.2009780407, -0.3520146012, 0.4401287735, -0.0863155574, 0.3760466576, -0.0243644286, -0.1455282569, 0.0485071614, 0.4009242654, -0.0737882331, -0.0185003579, -0.1634851098, -0.181917578, -0.1184914038, 0.3020993471, 0.3241458237, 0.6374417543, 0.1745534837, -0.2192534357, 0.2381287962, -0.0004307479, -0.2599274218, 0.4831359982, -0.1653630584, 0.0127732158, 0.4583311677, 0.0089774057, 0.109181121, -0.448771894, 0.1450785846, 0.1234029755, 0.1818008721, -0.3607928157, 0.0788163915, -0.2152220011, 0.0968672559, -0.3518630862, -0.261957407, 0.0294024199, -0.3133798838, -0.0178717114, 0.1368235052, -0.050381694, 0.2308111191, -0.4672616422, 0.0846560821, 0.1124343425, -0.1230982095, -0.2004065514, 0.0737321526, -0.361259371, 0.0988924876, 0.2535134554, 0.0678495318, 0.2908097208, -0.195679456, -0.1511840224, 0.0241016764, -0.4036480784, 0.1278225929, 0.1180698201, 0.227542147, 0.0969560742, 0.0744809434, 0.3463862538, -0.4121951461, -0.0710677877, -0.1308417618, -0.2183186114, 0.170541361, 0.03321198, 0.0247356109, -0.1156042516, -0.598754704, -0.4374186695, -0.3892831504, -0.0498277731, -0.1645168811, -0.0728506446, 0.1988957226, -0.1343786567, 0.0514268279, 0.1836189926, -0.0720977485, -0.400952667, 0.2122819722, 0.1445585489, -0.0392757431, -0.2241799533, -0.1384651065, -0.0772773176, -0.0527736843, -0.0458169132, -0.3023412526, 0.2543264627, -0.4559998512, 0.2435567081, -0.1985963583, -0.2131236494, 0.2872216702, 0.0318472572, -0.0354612246, -0.1347288489, -0.0344381258, -0.072291635, -0.1071649045, 0.1636639535, -0.1976882219, 0.394243598, 0.136397928, 0.4813589156, 0.2416755259, -0.5439122319, 0.0680665225, 0.1705718935, 0.2048646957, -0.0990283638, -0.3353736699, 0.3906063437, -0.0682675689, 0.0239584595, 0.2752487063, -0.3505268693, -0.2781620026, -0.0356108919, 0.1964913011, -0.3761665821, -0.0256567709, -0.1338630021, -0.1636419296, 0.2058551013, 0.325478822, 0.2892019451, 0.0354888588, -0.1637173593, 0.2503463328, 0.2493045181, 0.0125090331, -0.1440641433, -0.1290752888, -0.1602592915, -0.2274690568, 0.3832500577, 0.3412745595, 0.2640643418, 0.0742879063, -0.1175952703, -0.0429793224, -0.0687441006, 0.6774855852, -0.160219714, 0.1394208968, -0.0770245641, 0.1332768798, -0.1524720192, -0.2240351737, -0.022929199, 0.0237797797, 0.2947802842, 0.5989148617, -0.3209038079, -0.1446433812, 0.3440995812, 0.3235154748, -0.1614697576, -0.3134261072, -0.0346946642, -0.0641082302, -0.0452168472, 0.1154502332, 0.0462890044, 0.2783489525, -0.1482951641, -0.1531401277, 0.0351073891, -0.0507188812, 0.2441392839, 0.3141935766, 0.3286375403, -0.0386054963, 0.3620901704, 0.1574010849, 0.3023652136, 0.3721850812, 0.211106658, -0.3454648256, -0.0583144575, -0.1266354024, 0.0932572931, -0.001311928, 0.2818885148, -0.049035497, -0.1346838474, 0.2506634295, 0.068418853, -0.1524627805, 0.3452246785, -0.0177861173, 0.099184081, -0.1798806787, -0.3432308137, 0.231690228, -0.1548494101, 0.0145707428, 0.1157022566, 0.067900829, -0.3640975058, -0.0880732387, 0.0034847483, 0.7999352217, 0.3829323351, -0.1509275436, 0.2441916913, -0.3533548117, 0.0227452591, -0.3782044351, 0.1704311669, -0.3321319222, -0.1670111269, -0.0512644276, -0.1950090975, -0.0709553584, 0.0745389834, -0.2098715305, 0.2186292708, -0.1244221777, 0.0774681494, 0.2048071027, 0.2370274812, 0.0730771571, 0.1332219839, -0.1807200313, 0.1464787573, -0.0612236969, 0.1584162414, -0.2090024054, -0.0780173466, 0.0462246686, -0.1878196895, -0.2343226671, 0.2004467845, -0.6715441942, 0.0274441801, 0.0306345038, -0.0971902087, -0.002901651, -0.0963324755, 0.2391866446, 0.271561265, -0.1229086518, 0.0358497053, 0.1376945823, 0.1534957141, 0.0529683493, -0.0387598202, 0.2003015876, -0.1359014064, -0.1790284663, 0.0824057609, -0.3000931442, -0.1808876246, 0.2318423241, -0.0816882327, -0.0288238414, -0.3130399585, -0.1693851054, -0.0866782367, 0.1064577252, -0.2034928203, 0.1535088569, -0.2164584845, -0.3282729089, 0.0480187424, 0.0514248908, -0.3208441734, -0.3036954701, 0.260075599, 0.1588464379, -0.0262649357, 0.3788427114, 0.0115336552, -0.326903671, -0.2525988221, -0.1472421139, 0.1546262503, -0.4197561443, 0.0971369892, -0.3318920135, -0.2562454045, 0.1576458216, 0.2788512111, 0.5067479014, 0.0376340449, 0.0551865771, -0.5445108414, -0.1050762311, 0.0463754274, -0.167886883, 0.2210353911, -0.0551570207, 0.6132636666, -0.314718008, 0.1814595461, -0.3386440873, 0.0392295271, -0.123316057, 0.189397186, 0.000827847, -0.2967330217, 0.2796497345, 0.0981789529, 0.2074519545, 0.3625249267, -0.1502890289, -0.1964603066, -0.1700348407, 0.1034774706, 0.0979658067, -0.2308011949, 0.062586382, 0.1589740515, -0.0434564315, -0.0086862557, 0.1131302491, -0.1068089083, -0.0433671661, 0.1655224711, 0.3677057624, -0.0724938959, -0.2427453548, 0.0912596658, -0.144397378, 0.0855921507, 0.0484118201, 0.1299039125, -0.1480563432, 0.0475810915, 0.1583014429, -0.0559335947, 0.2772263288, 0.2009174228, 0.2070956975, -0.2499205023, -0.2945115566, 0.2605380714, 0.1768850237, 0.4284102023, 0.0114918761, -0.1583105773, 0.0698025897, 0.2637248635, -0.3338598013, -0.0800067857, -0.0841673613, -0.2150549144, 0.1919247806, 0.0787676945, 0.099745594, -0.1859394461, -0.046900019, 0.2622556984, 0.4332889616, -0.0860133469, 0.1091235578, 0.398732096, -0.0716096833, 0.029581707, 0.149977833, -0.2502600551, 0.0625841767, 0.3447419405, -0.0479678437, 0.1358727813, 0.010184342, 0.1770619899, -0.0911619067, -0.1617773473, 0.2650983632, 0.4197484851, -0.4040272534, 0.2929241359, 0.2387185246, -0.102329351, -0.3085987568, -0.1845878959, -0.4084450305, -0.1939703524, -0.0719641745, 0.1064390317, 0.0173221678, -0.342833668, -0.2268976867, -0.0113695264, -0.0335706882, 0.0478486419, 0.5259113312, 0.0245205052, -0.2330118716, -0.1281088591, -0.2837901413, 0.2017405331, 0.2190139294, -0.3413546681, 0.3417460322, 0.2017512321, -0.1879086196, -0.2357746363, 0.1908756644, 0.1929076463, 0.4227324128, -0.2607411444, -0.1073191911, 0.144697383, 0.0094171986, 0.1235151738, 0.4184184074, 0.0590742826, -0.0722033978, 0.2262648642, 0.135563314, -0.2458423972, 0.1419693679, -0.0804044604, -0.1136845052, -0.630374372, 0.3398408294, -0.027032638, -0.0053560808, -0.1063557714, 0.2040737271, -0.3419698775, 0.0560276546, 0.3937085867, -0.1050300002, 0.2485334277, 0.1354949325, 0.0990921408, -0.1431968957, 0.3879005313, 0.1573151201, 0.069698602, -0.5092071295, -0.1368089318, -0.4429210722, 0.2315695435, -0.1639961302, 0.1835736036, -0.0463666506, 0.0475718826, 0.1086040735, 0.1867363006, 0.1462302506, 0.3793208897, 0.1809261292, -0.0441586748, -0.2704292536, -0.149505645, -0.1365630925, -0.2033465058, 0.0330279917, -0.5399725437, 0.0781179667, 0.1010801047, 0.1184636801, -0.0927305445, -0.2510060072, 0.3491326869, 0.2162149698, 0.3482255638, 0.3603940308, 0.5763018131, -0.1550002247, -0.1805733144, 0.0021043001, -0.0462205522, -0.185120061, 0.1420907378, 0.1194766015, 0.3269407451, 0.0800936073, -0.1135654449, -0.231236428, 0.4827979207, 0.3263705373, -0.24793607, -0.2551741898, -0.0562408529, -0.3647661805, -0.0320117027, 0.2655397654, 0.3975052834, -0.0032959059, 0.0520436317, 0.0077277422, -0.3785653412, 0.4797544479, -0.5694301128, -0.0697971582, -0.1935783923, 0.2503975034, -0.0434157178, -0.0811096653, -0.4199207723, 0.0652298778, 0.5131904483, -0.0961266905, -0.0506021976, 0.1511284858, 0.154512912, -0.1854589134, 0.0249980986, 0.3290068507, 0.363375932, -0.2964657247, 0.0584364384, -0.2315707207 ]
https://github.com/huggingface/datasets/issues/2761
Error loading C4 realnewslike dataset
@bhavitvyamalik @lhoestq , just tried the above and got: >>> a=datasets.load_dataset('c4','en.realnewslike') Downloading: 3.29kB [00:00, 1.66MB/s] Downloading: 2.40MB [00:00, 12.6MB/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 819, in load_dataset builder_instance = load_dataset_builder( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 701, in load_dataset_builder builder_instance: DatasetBuilder = builder_cls( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 1049, in __init__ super(GeneratorBasedBuilder, self).__init__(*args, **kwargs) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 268, in __init__ self.config, self.config_id = self._create_builder_config( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 360, in _create_builder_config raise ValueError( ValueError: BuilderConfig en.realnewslike not found. Available: ['en', 'realnewslike', 'en.noblocklist', 'en.noclean'] >>> datasets version is 1.11.0
## Describe the bug Error loading C4 realnewslike dataset. Validation part mismatch ## Steps to reproduce the bug ```python raw_datasets = load_dataset('c4', 'realnewslike', cache_dir=model_args.cache_dir) ## Expected results success on data loading ## Actual results Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 15.3M/15.3M [00:00<00:00, 28.1MB/s]Traceback (most recent call last): File "run_mlm_tf.py", line 794, in <module> main() File "run_mlm_tf.py", line 425, in main raw_datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name, cache_dir=model_args.cache_dir) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 843, in load_dataset builder_instance.download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 608, in download_and_prepare self._download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 698, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='validation', num_bytes=38165657946, num_examples=13799838, dataset_name='c4'), 'recorded': SplitInfo(name='validation', num_bytes=37875873, num_examples=13863, dataset_name='c4')}] ## Environment info - `datasets` version: 1.10.2 - Platform: Linux-5.4.0-58-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 4.0.1
91
Error loading C4 realnewslike dataset ## Describe the bug Error loading C4 realnewslike dataset. Validation part mismatch ## Steps to reproduce the bug ```python raw_datasets = load_dataset('c4', 'realnewslike', cache_dir=model_args.cache_dir) ## Expected results success on data loading ## Actual results Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 15.3M/15.3M [00:00<00:00, 28.1MB/s]Traceback (most recent call last): File "run_mlm_tf.py", line 794, in <module> main() File "run_mlm_tf.py", line 425, in main raw_datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name, cache_dir=model_args.cache_dir) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 843, in load_dataset builder_instance.download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 608, in download_and_prepare self._download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 698, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='validation', num_bytes=38165657946, num_examples=13799838, dataset_name='c4'), 'recorded': SplitInfo(name='validation', num_bytes=37875873, num_examples=13863, dataset_name='c4')}] ## Environment info - `datasets` version: 1.10.2 - Platform: Linux-5.4.0-58-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 4.0.1 @bhavitvyamalik @lhoestq , just tried the above and got: >>> a=datasets.load_dataset('c4','en.realnewslike') Downloading: 3.29kB [00:00, 1.66MB/s] Downloading: 2.40MB [00:00, 12.6MB/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 819, in load_dataset builder_instance = load_dataset_builder( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 701, in load_dataset_builder builder_instance: DatasetBuilder = builder_cls( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 1049, in __init__ super(GeneratorBasedBuilder, self).__init__(*args, **kwargs) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 268, in __init__ self.config, self.config_id = self._create_builder_config( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 360, in _create_builder_config raise ValueError( ValueError: BuilderConfig en.realnewslike not found. Available: ['en', 'realnewslike', 'en.noblocklist', 'en.noclean'] >>> datasets version is 1.11.0
[ -0.2315264046, 0.0246403217, -0.0223660525, 0.4574565291, 0.1744246185, 0.2295815647, -0.0073710401, 0.5081833601, -0.031652987, 0.0191250816, -0.1842969656, -0.0640127659, -0.0091638286, 0.3338085711, -0.0433652624, -0.2194699943, -0.1107671037, 0.1606065631, 0.1407684088, 0.0597508252, -0.1448135823, 0.2009049505, -0.215441376, -0.0725571141, -0.270711273, -0.01300749, 0.1758372337, 0.3205581009, 0.0850606337, -0.5288671255, 0.2025578022, -0.1739534289, 0.0258220136, 0.5030127168, -0.0001112284, 0.0486642569, 0.4246914685, -0.0443262011, -0.3031129539, 0.0802711546, -0.3098668754, -0.2428597212, 0.1443645954, -0.032009311, -0.331359446, -0.1901499033, -0.2336004525, -0.337559551, 0.2493240386, 0.6167077422, 0.2385805845, 0.3121446967, 0.060873583, 0.0165075436, -0.1109836549, -0.1475731283, -0.0226773992, 0.3512017727, -0.0215201154, 0.0317062438, 0.178488642, 0.2144182324, 0.0287547335, 0.1094983965, 0.1285811961, -0.1285624206, 0.2033364028, -0.1063503847, 0.1449160576, 0.3846839964, 0.3563731313, -0.2420738339, -0.151951015, -0.308082521, -0.1986612827, -0.277394563, 0.2565826178, 0.19997482, -0.1624884009, 0.1661830395, -0.3945816159, 0.2987679243, 0.0589542538, 0.0859670416, -0.193233341, 0.2412162721, 0.1517074257, -0.0265462808, 0.0266115051, 0.0962594151, 0.1632710695, -0.1978421211, -0.064860329, 0.2136573941, -0.6099297404, -0.2218069583, -0.3099172115, 0.4977057874, -0.0144231878, -0.0514828861, -0.1140120104, -0.0171041675, 0.1712173969, -0.1863039732, 0.1688324809, 0.2142095119, -0.1980088651, 0.1207097173, 0.1434051096, -0.1067880243, 0.0161336586, -0.0791776627, 0.1627921611, -0.1318753064, -0.0637645051, 0.2420959026, 0.0574146062, -0.317914933, -0.6927222013, 0.2458001673, -0.303799957, -0.0368812084, 0.0007450767, 0.3466165662, -0.3842544258, 0.2641149163, 0.1001106948, -0.1724212915, -0.2799531519, -0.2688709199, -0.2056978643, 0.0522302277, -0.368568033, 0.0012723841, 0.2524728775, -0.2094727159, 0.4003706574, -0.0511983037, 0.1751805395, -0.0478968732, 0.2091276795, -0.3762722909, -0.1081526428, 0.225599885, -0.3169129789, 0.0376331657, 0.2689842284, -0.0927060544, 0.0103947222, -0.0342600867, 0.1593454927, -0.3435824215, -0.1637989581, 0.2872267365, -0.0145504214, 0.028838668, 0.0684598833, -0.0540243313, 0.3395631313, -0.1157189831, -0.1957778484, -0.2394089401, 0.0330544263, -0.0582297519, 0.1889539063, 0.4896892011, -0.4754009843, 0.0806837976, -0.3405703604, 0.1221413314, 0.4467143714, 0.2935123146, -0.0330284461, 0.2765633464, -0.2077404857, 0.023706466, -0.0174367651, -0.3686726689, -0.3444619775, 0.5175631046, -0.082237497, 0.3453440666, -0.0547712632, 0.043167036, 0.1374017745, 0.0436607711, 0.1547781229, 0.2047380805, -0.1418512017, 0.1543141603, -0.5629569292, -0.1220000759, 0.3635739982, 0.0133565068, 0.1890147775, -0.2069267929, 0.1235910505, -0.0846619979, 0.4912209213, -0.0084105972, -0.1206195503, -0.0321739614, 0.2111113518, -0.0240929835, 0.1006423235, -0.2743468285, -0.5518816113, 0.2668114305, -0.0237274729, 0.1528526694, 0.1286136508, -0.0469232537, -0.5897586346, -0.1467692554, -0.1562292576, -0.2404750288, 0.1061193347, 0.1226576865, 0.2428139895, 0.0796360075, -0.0546255969, 0.5485522747, -0.0577965155, 0.1413288862, -0.0799552798, 0.3413335085, -0.1525629163, -0.030509524, -0.0302448273, 0.1346587092, 0.2463358641, -0.0983945206, -0.3567021787, 0.6420468688, 0.1248636693, 0.2066822052, -0.4426276684, 0.0053087175, 0.3827438056, -0.3125799596, 0.095701851, 0.5969315767, 0.2378961146, 0.0181499273, 0.0953134075, 0.4245106578, -0.0290686693, -0.0525033846, 0.1060229391, -0.1878118217, 0.1633398533, -0.1469225734, 0.2009780407, -0.3520146012, 0.4401287735, -0.0863155574, 0.3760466576, -0.0243644286, -0.1455282569, 0.0485071614, 0.4009242654, -0.0737882331, -0.0185003579, -0.1634851098, -0.181917578, -0.1184914038, 0.3020993471, 0.3241458237, 0.6374417543, 0.1745534837, -0.2192534357, 0.2381287962, -0.0004307479, -0.2599274218, 0.4831359982, -0.1653630584, 0.0127732158, 0.4583311677, 0.0089774057, 0.109181121, -0.448771894, 0.1450785846, 0.1234029755, 0.1818008721, -0.3607928157, 0.0788163915, -0.2152220011, 0.0968672559, -0.3518630862, -0.261957407, 0.0294024199, -0.3133798838, -0.0178717114, 0.1368235052, -0.050381694, 0.2308111191, -0.4672616422, 0.0846560821, 0.1124343425, -0.1230982095, -0.2004065514, 0.0737321526, -0.361259371, 0.0988924876, 0.2535134554, 0.0678495318, 0.2908097208, -0.195679456, -0.1511840224, 0.0241016764, -0.4036480784, 0.1278225929, 0.1180698201, 0.227542147, 0.0969560742, 0.0744809434, 0.3463862538, -0.4121951461, -0.0710677877, -0.1308417618, -0.2183186114, 0.170541361, 0.03321198, 0.0247356109, -0.1156042516, -0.598754704, -0.4374186695, -0.3892831504, -0.0498277731, -0.1645168811, -0.0728506446, 0.1988957226, -0.1343786567, 0.0514268279, 0.1836189926, -0.0720977485, -0.400952667, 0.2122819722, 0.1445585489, -0.0392757431, -0.2241799533, -0.1384651065, -0.0772773176, -0.0527736843, -0.0458169132, -0.3023412526, 0.2543264627, -0.4559998512, 0.2435567081, -0.1985963583, -0.2131236494, 0.2872216702, 0.0318472572, -0.0354612246, -0.1347288489, -0.0344381258, -0.072291635, -0.1071649045, 0.1636639535, -0.1976882219, 0.394243598, 0.136397928, 0.4813589156, 0.2416755259, -0.5439122319, 0.0680665225, 0.1705718935, 0.2048646957, -0.0990283638, -0.3353736699, 0.3906063437, -0.0682675689, 0.0239584595, 0.2752487063, -0.3505268693, -0.2781620026, -0.0356108919, 0.1964913011, -0.3761665821, -0.0256567709, -0.1338630021, -0.1636419296, 0.2058551013, 0.325478822, 0.2892019451, 0.0354888588, -0.1637173593, 0.2503463328, 0.2493045181, 0.0125090331, -0.1440641433, -0.1290752888, -0.1602592915, -0.2274690568, 0.3832500577, 0.3412745595, 0.2640643418, 0.0742879063, -0.1175952703, -0.0429793224, -0.0687441006, 0.6774855852, -0.160219714, 0.1394208968, -0.0770245641, 0.1332768798, -0.1524720192, -0.2240351737, -0.022929199, 0.0237797797, 0.2947802842, 0.5989148617, -0.3209038079, -0.1446433812, 0.3440995812, 0.3235154748, -0.1614697576, -0.3134261072, -0.0346946642, -0.0641082302, -0.0452168472, 0.1154502332, 0.0462890044, 0.2783489525, -0.1482951641, -0.1531401277, 0.0351073891, -0.0507188812, 0.2441392839, 0.3141935766, 0.3286375403, -0.0386054963, 0.3620901704, 0.1574010849, 0.3023652136, 0.3721850812, 0.211106658, -0.3454648256, -0.0583144575, -0.1266354024, 0.0932572931, -0.001311928, 0.2818885148, -0.049035497, -0.1346838474, 0.2506634295, 0.068418853, -0.1524627805, 0.3452246785, -0.0177861173, 0.099184081, -0.1798806787, -0.3432308137, 0.231690228, -0.1548494101, 0.0145707428, 0.1157022566, 0.067900829, -0.3640975058, -0.0880732387, 0.0034847483, 0.7999352217, 0.3829323351, -0.1509275436, 0.2441916913, -0.3533548117, 0.0227452591, -0.3782044351, 0.1704311669, -0.3321319222, -0.1670111269, -0.0512644276, -0.1950090975, -0.0709553584, 0.0745389834, -0.2098715305, 0.2186292708, -0.1244221777, 0.0774681494, 0.2048071027, 0.2370274812, 0.0730771571, 0.1332219839, -0.1807200313, 0.1464787573, -0.0612236969, 0.1584162414, -0.2090024054, -0.0780173466, 0.0462246686, -0.1878196895, -0.2343226671, 0.2004467845, -0.6715441942, 0.0274441801, 0.0306345038, -0.0971902087, -0.002901651, -0.0963324755, 0.2391866446, 0.271561265, -0.1229086518, 0.0358497053, 0.1376945823, 0.1534957141, 0.0529683493, -0.0387598202, 0.2003015876, -0.1359014064, -0.1790284663, 0.0824057609, -0.3000931442, -0.1808876246, 0.2318423241, -0.0816882327, -0.0288238414, -0.3130399585, -0.1693851054, -0.0866782367, 0.1064577252, -0.2034928203, 0.1535088569, -0.2164584845, -0.3282729089, 0.0480187424, 0.0514248908, -0.3208441734, -0.3036954701, 0.260075599, 0.1588464379, -0.0262649357, 0.3788427114, 0.0115336552, -0.326903671, -0.2525988221, -0.1472421139, 0.1546262503, -0.4197561443, 0.0971369892, -0.3318920135, -0.2562454045, 0.1576458216, 0.2788512111, 0.5067479014, 0.0376340449, 0.0551865771, -0.5445108414, -0.1050762311, 0.0463754274, -0.167886883, 0.2210353911, -0.0551570207, 0.6132636666, -0.314718008, 0.1814595461, -0.3386440873, 0.0392295271, -0.123316057, 0.189397186, 0.000827847, -0.2967330217, 0.2796497345, 0.0981789529, 0.2074519545, 0.3625249267, -0.1502890289, -0.1964603066, -0.1700348407, 0.1034774706, 0.0979658067, -0.2308011949, 0.062586382, 0.1589740515, -0.0434564315, -0.0086862557, 0.1131302491, -0.1068089083, -0.0433671661, 0.1655224711, 0.3677057624, -0.0724938959, -0.2427453548, 0.0912596658, -0.144397378, 0.0855921507, 0.0484118201, 0.1299039125, -0.1480563432, 0.0475810915, 0.1583014429, -0.0559335947, 0.2772263288, 0.2009174228, 0.2070956975, -0.2499205023, -0.2945115566, 0.2605380714, 0.1768850237, 0.4284102023, 0.0114918761, -0.1583105773, 0.0698025897, 0.2637248635, -0.3338598013, -0.0800067857, -0.0841673613, -0.2150549144, 0.1919247806, 0.0787676945, 0.099745594, -0.1859394461, -0.046900019, 0.2622556984, 0.4332889616, -0.0860133469, 0.1091235578, 0.398732096, -0.0716096833, 0.029581707, 0.149977833, -0.2502600551, 0.0625841767, 0.3447419405, -0.0479678437, 0.1358727813, 0.010184342, 0.1770619899, -0.0911619067, -0.1617773473, 0.2650983632, 0.4197484851, -0.4040272534, 0.2929241359, 0.2387185246, -0.102329351, -0.3085987568, -0.1845878959, -0.4084450305, -0.1939703524, -0.0719641745, 0.1064390317, 0.0173221678, -0.342833668, -0.2268976867, -0.0113695264, -0.0335706882, 0.0478486419, 0.5259113312, 0.0245205052, -0.2330118716, -0.1281088591, -0.2837901413, 0.2017405331, 0.2190139294, -0.3413546681, 0.3417460322, 0.2017512321, -0.1879086196, -0.2357746363, 0.1908756644, 0.1929076463, 0.4227324128, -0.2607411444, -0.1073191911, 0.144697383, 0.0094171986, 0.1235151738, 0.4184184074, 0.0590742826, -0.0722033978, 0.2262648642, 0.135563314, -0.2458423972, 0.1419693679, -0.0804044604, -0.1136845052, -0.630374372, 0.3398408294, -0.027032638, -0.0053560808, -0.1063557714, 0.2040737271, -0.3419698775, 0.0560276546, 0.3937085867, -0.1050300002, 0.2485334277, 0.1354949325, 0.0990921408, -0.1431968957, 0.3879005313, 0.1573151201, 0.069698602, -0.5092071295, -0.1368089318, -0.4429210722, 0.2315695435, -0.1639961302, 0.1835736036, -0.0463666506, 0.0475718826, 0.1086040735, 0.1867363006, 0.1462302506, 0.3793208897, 0.1809261292, -0.0441586748, -0.2704292536, -0.149505645, -0.1365630925, -0.2033465058, 0.0330279917, -0.5399725437, 0.0781179667, 0.1010801047, 0.1184636801, -0.0927305445, -0.2510060072, 0.3491326869, 0.2162149698, 0.3482255638, 0.3603940308, 0.5763018131, -0.1550002247, -0.1805733144, 0.0021043001, -0.0462205522, -0.185120061, 0.1420907378, 0.1194766015, 0.3269407451, 0.0800936073, -0.1135654449, -0.231236428, 0.4827979207, 0.3263705373, -0.24793607, -0.2551741898, -0.0562408529, -0.3647661805, -0.0320117027, 0.2655397654, 0.3975052834, -0.0032959059, 0.0520436317, 0.0077277422, -0.3785653412, 0.4797544479, -0.5694301128, -0.0697971582, -0.1935783923, 0.2503975034, -0.0434157178, -0.0811096653, -0.4199207723, 0.0652298778, 0.5131904483, -0.0961266905, -0.0506021976, 0.1511284858, 0.154512912, -0.1854589134, 0.0249980986, 0.3290068507, 0.363375932, -0.2964657247, 0.0584364384, -0.2315707207 ]
https://github.com/huggingface/datasets/issues/2761
Error loading C4 realnewslike dataset
I think I had an older version of datasets installed and that's why I commented the old configurations in my last comment, my bad! I re-checked and updated it to latest version (`datasets==1.11.0`) and it's showing `available configs: ['en', 'realnewslike', 'en.noblocklist', 'en.noclean']`. I tried `raw_datasets = load_dataset('c4', 'realnewslike')` and the download started. Make sure you don't have any old copy of this dataset and you download it fresh using the latest version of datasets. Sorry for the mix up!
## Describe the bug Error loading C4 realnewslike dataset. Validation part mismatch ## Steps to reproduce the bug ```python raw_datasets = load_dataset('c4', 'realnewslike', cache_dir=model_args.cache_dir) ## Expected results success on data loading ## Actual results Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 15.3M/15.3M [00:00<00:00, 28.1MB/s]Traceback (most recent call last): File "run_mlm_tf.py", line 794, in <module> main() File "run_mlm_tf.py", line 425, in main raw_datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name, cache_dir=model_args.cache_dir) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 843, in load_dataset builder_instance.download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 608, in download_and_prepare self._download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 698, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='validation', num_bytes=38165657946, num_examples=13799838, dataset_name='c4'), 'recorded': SplitInfo(name='validation', num_bytes=37875873, num_examples=13863, dataset_name='c4')}] ## Environment info - `datasets` version: 1.10.2 - Platform: Linux-5.4.0-58-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 4.0.1
79
Error loading C4 realnewslike dataset ## Describe the bug Error loading C4 realnewslike dataset. Validation part mismatch ## Steps to reproduce the bug ```python raw_datasets = load_dataset('c4', 'realnewslike', cache_dir=model_args.cache_dir) ## Expected results success on data loading ## Actual results Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 15.3M/15.3M [00:00<00:00, 28.1MB/s]Traceback (most recent call last): File "run_mlm_tf.py", line 794, in <module> main() File "run_mlm_tf.py", line 425, in main raw_datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name, cache_dir=model_args.cache_dir) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 843, in load_dataset builder_instance.download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 608, in download_and_prepare self._download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 698, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='validation', num_bytes=38165657946, num_examples=13799838, dataset_name='c4'), 'recorded': SplitInfo(name='validation', num_bytes=37875873, num_examples=13863, dataset_name='c4')}] ## Environment info - `datasets` version: 1.10.2 - Platform: Linux-5.4.0-58-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 4.0.1 I think I had an older version of datasets installed and that's why I commented the old configurations in my last comment, my bad! I re-checked and updated it to latest version (`datasets==1.11.0`) and it's showing `available configs: ['en', 'realnewslike', 'en.noblocklist', 'en.noclean']`. I tried `raw_datasets = load_dataset('c4', 'realnewslike')` and the download started. Make sure you don't have any old copy of this dataset and you download it fresh using the latest version of datasets. Sorry for the mix up!
[ -0.2315264046, 0.0246403217, -0.0223660525, 0.4574565291, 0.1744246185, 0.2295815647, -0.0073710401, 0.5081833601, -0.031652987, 0.0191250816, -0.1842969656, -0.0640127659, -0.0091638286, 0.3338085711, -0.0433652624, -0.2194699943, -0.1107671037, 0.1606065631, 0.1407684088, 0.0597508252, -0.1448135823, 0.2009049505, -0.215441376, -0.0725571141, -0.270711273, -0.01300749, 0.1758372337, 0.3205581009, 0.0850606337, -0.5288671255, 0.2025578022, -0.1739534289, 0.0258220136, 0.5030127168, -0.0001112284, 0.0486642569, 0.4246914685, -0.0443262011, -0.3031129539, 0.0802711546, -0.3098668754, -0.2428597212, 0.1443645954, -0.032009311, -0.331359446, -0.1901499033, -0.2336004525, -0.337559551, 0.2493240386, 0.6167077422, 0.2385805845, 0.3121446967, 0.060873583, 0.0165075436, -0.1109836549, -0.1475731283, -0.0226773992, 0.3512017727, -0.0215201154, 0.0317062438, 0.178488642, 0.2144182324, 0.0287547335, 0.1094983965, 0.1285811961, -0.1285624206, 0.2033364028, -0.1063503847, 0.1449160576, 0.3846839964, 0.3563731313, -0.2420738339, -0.151951015, -0.308082521, -0.1986612827, -0.277394563, 0.2565826178, 0.19997482, -0.1624884009, 0.1661830395, -0.3945816159, 0.2987679243, 0.0589542538, 0.0859670416, -0.193233341, 0.2412162721, 0.1517074257, -0.0265462808, 0.0266115051, 0.0962594151, 0.1632710695, -0.1978421211, -0.064860329, 0.2136573941, -0.6099297404, -0.2218069583, -0.3099172115, 0.4977057874, -0.0144231878, -0.0514828861, -0.1140120104, -0.0171041675, 0.1712173969, -0.1863039732, 0.1688324809, 0.2142095119, -0.1980088651, 0.1207097173, 0.1434051096, -0.1067880243, 0.0161336586, -0.0791776627, 0.1627921611, -0.1318753064, -0.0637645051, 0.2420959026, 0.0574146062, -0.317914933, -0.6927222013, 0.2458001673, -0.303799957, -0.0368812084, 0.0007450767, 0.3466165662, -0.3842544258, 0.2641149163, 0.1001106948, -0.1724212915, -0.2799531519, -0.2688709199, -0.2056978643, 0.0522302277, -0.368568033, 0.0012723841, 0.2524728775, -0.2094727159, 0.4003706574, -0.0511983037, 0.1751805395, -0.0478968732, 0.2091276795, -0.3762722909, -0.1081526428, 0.225599885, -0.3169129789, 0.0376331657, 0.2689842284, -0.0927060544, 0.0103947222, -0.0342600867, 0.1593454927, -0.3435824215, -0.1637989581, 0.2872267365, -0.0145504214, 0.028838668, 0.0684598833, -0.0540243313, 0.3395631313, -0.1157189831, -0.1957778484, -0.2394089401, 0.0330544263, -0.0582297519, 0.1889539063, 0.4896892011, -0.4754009843, 0.0806837976, -0.3405703604, 0.1221413314, 0.4467143714, 0.2935123146, -0.0330284461, 0.2765633464, -0.2077404857, 0.023706466, -0.0174367651, -0.3686726689, -0.3444619775, 0.5175631046, -0.082237497, 0.3453440666, -0.0547712632, 0.043167036, 0.1374017745, 0.0436607711, 0.1547781229, 0.2047380805, -0.1418512017, 0.1543141603, -0.5629569292, -0.1220000759, 0.3635739982, 0.0133565068, 0.1890147775, -0.2069267929, 0.1235910505, -0.0846619979, 0.4912209213, -0.0084105972, -0.1206195503, -0.0321739614, 0.2111113518, -0.0240929835, 0.1006423235, -0.2743468285, -0.5518816113, 0.2668114305, -0.0237274729, 0.1528526694, 0.1286136508, -0.0469232537, -0.5897586346, -0.1467692554, -0.1562292576, -0.2404750288, 0.1061193347, 0.1226576865, 0.2428139895, 0.0796360075, -0.0546255969, 0.5485522747, -0.0577965155, 0.1413288862, -0.0799552798, 0.3413335085, -0.1525629163, -0.030509524, -0.0302448273, 0.1346587092, 0.2463358641, -0.0983945206, -0.3567021787, 0.6420468688, 0.1248636693, 0.2066822052, -0.4426276684, 0.0053087175, 0.3827438056, -0.3125799596, 0.095701851, 0.5969315767, 0.2378961146, 0.0181499273, 0.0953134075, 0.4245106578, -0.0290686693, -0.0525033846, 0.1060229391, -0.1878118217, 0.1633398533, -0.1469225734, 0.2009780407, -0.3520146012, 0.4401287735, -0.0863155574, 0.3760466576, -0.0243644286, -0.1455282569, 0.0485071614, 0.4009242654, -0.0737882331, -0.0185003579, -0.1634851098, -0.181917578, -0.1184914038, 0.3020993471, 0.3241458237, 0.6374417543, 0.1745534837, -0.2192534357, 0.2381287962, -0.0004307479, -0.2599274218, 0.4831359982, -0.1653630584, 0.0127732158, 0.4583311677, 0.0089774057, 0.109181121, -0.448771894, 0.1450785846, 0.1234029755, 0.1818008721, -0.3607928157, 0.0788163915, -0.2152220011, 0.0968672559, -0.3518630862, -0.261957407, 0.0294024199, -0.3133798838, -0.0178717114, 0.1368235052, -0.050381694, 0.2308111191, -0.4672616422, 0.0846560821, 0.1124343425, -0.1230982095, -0.2004065514, 0.0737321526, -0.361259371, 0.0988924876, 0.2535134554, 0.0678495318, 0.2908097208, -0.195679456, -0.1511840224, 0.0241016764, -0.4036480784, 0.1278225929, 0.1180698201, 0.227542147, 0.0969560742, 0.0744809434, 0.3463862538, -0.4121951461, -0.0710677877, -0.1308417618, -0.2183186114, 0.170541361, 0.03321198, 0.0247356109, -0.1156042516, -0.598754704, -0.4374186695, -0.3892831504, -0.0498277731, -0.1645168811, -0.0728506446, 0.1988957226, -0.1343786567, 0.0514268279, 0.1836189926, -0.0720977485, -0.400952667, 0.2122819722, 0.1445585489, -0.0392757431, -0.2241799533, -0.1384651065, -0.0772773176, -0.0527736843, -0.0458169132, -0.3023412526, 0.2543264627, -0.4559998512, 0.2435567081, -0.1985963583, -0.2131236494, 0.2872216702, 0.0318472572, -0.0354612246, -0.1347288489, -0.0344381258, -0.072291635, -0.1071649045, 0.1636639535, -0.1976882219, 0.394243598, 0.136397928, 0.4813589156, 0.2416755259, -0.5439122319, 0.0680665225, 0.1705718935, 0.2048646957, -0.0990283638, -0.3353736699, 0.3906063437, -0.0682675689, 0.0239584595, 0.2752487063, -0.3505268693, -0.2781620026, -0.0356108919, 0.1964913011, -0.3761665821, -0.0256567709, -0.1338630021, -0.1636419296, 0.2058551013, 0.325478822, 0.2892019451, 0.0354888588, -0.1637173593, 0.2503463328, 0.2493045181, 0.0125090331, -0.1440641433, -0.1290752888, -0.1602592915, -0.2274690568, 0.3832500577, 0.3412745595, 0.2640643418, 0.0742879063, -0.1175952703, -0.0429793224, -0.0687441006, 0.6774855852, -0.160219714, 0.1394208968, -0.0770245641, 0.1332768798, -0.1524720192, -0.2240351737, -0.022929199, 0.0237797797, 0.2947802842, 0.5989148617, -0.3209038079, -0.1446433812, 0.3440995812, 0.3235154748, -0.1614697576, -0.3134261072, -0.0346946642, -0.0641082302, -0.0452168472, 0.1154502332, 0.0462890044, 0.2783489525, -0.1482951641, -0.1531401277, 0.0351073891, -0.0507188812, 0.2441392839, 0.3141935766, 0.3286375403, -0.0386054963, 0.3620901704, 0.1574010849, 0.3023652136, 0.3721850812, 0.211106658, -0.3454648256, -0.0583144575, -0.1266354024, 0.0932572931, -0.001311928, 0.2818885148, -0.049035497, -0.1346838474, 0.2506634295, 0.068418853, -0.1524627805, 0.3452246785, -0.0177861173, 0.099184081, -0.1798806787, -0.3432308137, 0.231690228, -0.1548494101, 0.0145707428, 0.1157022566, 0.067900829, -0.3640975058, -0.0880732387, 0.0034847483, 0.7999352217, 0.3829323351, -0.1509275436, 0.2441916913, -0.3533548117, 0.0227452591, -0.3782044351, 0.1704311669, -0.3321319222, -0.1670111269, -0.0512644276, -0.1950090975, -0.0709553584, 0.0745389834, -0.2098715305, 0.2186292708, -0.1244221777, 0.0774681494, 0.2048071027, 0.2370274812, 0.0730771571, 0.1332219839, -0.1807200313, 0.1464787573, -0.0612236969, 0.1584162414, -0.2090024054, -0.0780173466, 0.0462246686, -0.1878196895, -0.2343226671, 0.2004467845, -0.6715441942, 0.0274441801, 0.0306345038, -0.0971902087, -0.002901651, -0.0963324755, 0.2391866446, 0.271561265, -0.1229086518, 0.0358497053, 0.1376945823, 0.1534957141, 0.0529683493, -0.0387598202, 0.2003015876, -0.1359014064, -0.1790284663, 0.0824057609, -0.3000931442, -0.1808876246, 0.2318423241, -0.0816882327, -0.0288238414, -0.3130399585, -0.1693851054, -0.0866782367, 0.1064577252, -0.2034928203, 0.1535088569, -0.2164584845, -0.3282729089, 0.0480187424, 0.0514248908, -0.3208441734, -0.3036954701, 0.260075599, 0.1588464379, -0.0262649357, 0.3788427114, 0.0115336552, -0.326903671, -0.2525988221, -0.1472421139, 0.1546262503, -0.4197561443, 0.0971369892, -0.3318920135, -0.2562454045, 0.1576458216, 0.2788512111, 0.5067479014, 0.0376340449, 0.0551865771, -0.5445108414, -0.1050762311, 0.0463754274, -0.167886883, 0.2210353911, -0.0551570207, 0.6132636666, -0.314718008, 0.1814595461, -0.3386440873, 0.0392295271, -0.123316057, 0.189397186, 0.000827847, -0.2967330217, 0.2796497345, 0.0981789529, 0.2074519545, 0.3625249267, -0.1502890289, -0.1964603066, -0.1700348407, 0.1034774706, 0.0979658067, -0.2308011949, 0.062586382, 0.1589740515, -0.0434564315, -0.0086862557, 0.1131302491, -0.1068089083, -0.0433671661, 0.1655224711, 0.3677057624, -0.0724938959, -0.2427453548, 0.0912596658, -0.144397378, 0.0855921507, 0.0484118201, 0.1299039125, -0.1480563432, 0.0475810915, 0.1583014429, -0.0559335947, 0.2772263288, 0.2009174228, 0.2070956975, -0.2499205023, -0.2945115566, 0.2605380714, 0.1768850237, 0.4284102023, 0.0114918761, -0.1583105773, 0.0698025897, 0.2637248635, -0.3338598013, -0.0800067857, -0.0841673613, -0.2150549144, 0.1919247806, 0.0787676945, 0.099745594, -0.1859394461, -0.046900019, 0.2622556984, 0.4332889616, -0.0860133469, 0.1091235578, 0.398732096, -0.0716096833, 0.029581707, 0.149977833, -0.2502600551, 0.0625841767, 0.3447419405, -0.0479678437, 0.1358727813, 0.010184342, 0.1770619899, -0.0911619067, -0.1617773473, 0.2650983632, 0.4197484851, -0.4040272534, 0.2929241359, 0.2387185246, -0.102329351, -0.3085987568, -0.1845878959, -0.4084450305, -0.1939703524, -0.0719641745, 0.1064390317, 0.0173221678, -0.342833668, -0.2268976867, -0.0113695264, -0.0335706882, 0.0478486419, 0.5259113312, 0.0245205052, -0.2330118716, -0.1281088591, -0.2837901413, 0.2017405331, 0.2190139294, -0.3413546681, 0.3417460322, 0.2017512321, -0.1879086196, -0.2357746363, 0.1908756644, 0.1929076463, 0.4227324128, -0.2607411444, -0.1073191911, 0.144697383, 0.0094171986, 0.1235151738, 0.4184184074, 0.0590742826, -0.0722033978, 0.2262648642, 0.135563314, -0.2458423972, 0.1419693679, -0.0804044604, -0.1136845052, -0.630374372, 0.3398408294, -0.027032638, -0.0053560808, -0.1063557714, 0.2040737271, -0.3419698775, 0.0560276546, 0.3937085867, -0.1050300002, 0.2485334277, 0.1354949325, 0.0990921408, -0.1431968957, 0.3879005313, 0.1573151201, 0.069698602, -0.5092071295, -0.1368089318, -0.4429210722, 0.2315695435, -0.1639961302, 0.1835736036, -0.0463666506, 0.0475718826, 0.1086040735, 0.1867363006, 0.1462302506, 0.3793208897, 0.1809261292, -0.0441586748, -0.2704292536, -0.149505645, -0.1365630925, -0.2033465058, 0.0330279917, -0.5399725437, 0.0781179667, 0.1010801047, 0.1184636801, -0.0927305445, -0.2510060072, 0.3491326869, 0.2162149698, 0.3482255638, 0.3603940308, 0.5763018131, -0.1550002247, -0.1805733144, 0.0021043001, -0.0462205522, -0.185120061, 0.1420907378, 0.1194766015, 0.3269407451, 0.0800936073, -0.1135654449, -0.231236428, 0.4827979207, 0.3263705373, -0.24793607, -0.2551741898, -0.0562408529, -0.3647661805, -0.0320117027, 0.2655397654, 0.3975052834, -0.0032959059, 0.0520436317, 0.0077277422, -0.3785653412, 0.4797544479, -0.5694301128, -0.0697971582, -0.1935783923, 0.2503975034, -0.0434157178, -0.0811096653, -0.4199207723, 0.0652298778, 0.5131904483, -0.0961266905, -0.0506021976, 0.1511284858, 0.154512912, -0.1854589134, 0.0249980986, 0.3290068507, 0.363375932, -0.2964657247, 0.0584364384, -0.2315707207 ]
https://github.com/huggingface/datasets/issues/2761
Error loading C4 realnewslike dataset
It works. I probably had some issue with the cache. after cleaning it im able to download the dataset. Thanks
## Describe the bug Error loading C4 realnewslike dataset. Validation part mismatch ## Steps to reproduce the bug ```python raw_datasets = load_dataset('c4', 'realnewslike', cache_dir=model_args.cache_dir) ## Expected results success on data loading ## Actual results Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 15.3M/15.3M [00:00<00:00, 28.1MB/s]Traceback (most recent call last): File "run_mlm_tf.py", line 794, in <module> main() File "run_mlm_tf.py", line 425, in main raw_datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name, cache_dir=model_args.cache_dir) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 843, in load_dataset builder_instance.download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 608, in download_and_prepare self._download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 698, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='validation', num_bytes=38165657946, num_examples=13799838, dataset_name='c4'), 'recorded': SplitInfo(name='validation', num_bytes=37875873, num_examples=13863, dataset_name='c4')}] ## Environment info - `datasets` version: 1.10.2 - Platform: Linux-5.4.0-58-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 4.0.1
20
Error loading C4 realnewslike dataset ## Describe the bug Error loading C4 realnewslike dataset. Validation part mismatch ## Steps to reproduce the bug ```python raw_datasets = load_dataset('c4', 'realnewslike', cache_dir=model_args.cache_dir) ## Expected results success on data loading ## Actual results Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 15.3M/15.3M [00:00<00:00, 28.1MB/s]Traceback (most recent call last): File "run_mlm_tf.py", line 794, in <module> main() File "run_mlm_tf.py", line 425, in main raw_datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name, cache_dir=model_args.cache_dir) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 843, in load_dataset builder_instance.download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 608, in download_and_prepare self._download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 698, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='validation', num_bytes=38165657946, num_examples=13799838, dataset_name='c4'), 'recorded': SplitInfo(name='validation', num_bytes=37875873, num_examples=13863, dataset_name='c4')}] ## Environment info - `datasets` version: 1.10.2 - Platform: Linux-5.4.0-58-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 4.0.1 It works. I probably had some issue with the cache. after cleaning it im able to download the dataset. Thanks
[ -0.2315264046, 0.0246403217, -0.0223660525, 0.4574565291, 0.1744246185, 0.2295815647, -0.0073710401, 0.5081833601, -0.031652987, 0.0191250816, -0.1842969656, -0.0640127659, -0.0091638286, 0.3338085711, -0.0433652624, -0.2194699943, -0.1107671037, 0.1606065631, 0.1407684088, 0.0597508252, -0.1448135823, 0.2009049505, -0.215441376, -0.0725571141, -0.270711273, -0.01300749, 0.1758372337, 0.3205581009, 0.0850606337, -0.5288671255, 0.2025578022, -0.1739534289, 0.0258220136, 0.5030127168, -0.0001112284, 0.0486642569, 0.4246914685, -0.0443262011, -0.3031129539, 0.0802711546, -0.3098668754, -0.2428597212, 0.1443645954, -0.032009311, -0.331359446, -0.1901499033, -0.2336004525, -0.337559551, 0.2493240386, 0.6167077422, 0.2385805845, 0.3121446967, 0.060873583, 0.0165075436, -0.1109836549, -0.1475731283, -0.0226773992, 0.3512017727, -0.0215201154, 0.0317062438, 0.178488642, 0.2144182324, 0.0287547335, 0.1094983965, 0.1285811961, -0.1285624206, 0.2033364028, -0.1063503847, 0.1449160576, 0.3846839964, 0.3563731313, -0.2420738339, -0.151951015, -0.308082521, -0.1986612827, -0.277394563, 0.2565826178, 0.19997482, -0.1624884009, 0.1661830395, -0.3945816159, 0.2987679243, 0.0589542538, 0.0859670416, -0.193233341, 0.2412162721, 0.1517074257, -0.0265462808, 0.0266115051, 0.0962594151, 0.1632710695, -0.1978421211, -0.064860329, 0.2136573941, -0.6099297404, -0.2218069583, -0.3099172115, 0.4977057874, -0.0144231878, -0.0514828861, -0.1140120104, -0.0171041675, 0.1712173969, -0.1863039732, 0.1688324809, 0.2142095119, -0.1980088651, 0.1207097173, 0.1434051096, -0.1067880243, 0.0161336586, -0.0791776627, 0.1627921611, -0.1318753064, -0.0637645051, 0.2420959026, 0.0574146062, -0.317914933, -0.6927222013, 0.2458001673, -0.303799957, -0.0368812084, 0.0007450767, 0.3466165662, -0.3842544258, 0.2641149163, 0.1001106948, -0.1724212915, -0.2799531519, -0.2688709199, -0.2056978643, 0.0522302277, -0.368568033, 0.0012723841, 0.2524728775, -0.2094727159, 0.4003706574, -0.0511983037, 0.1751805395, -0.0478968732, 0.2091276795, -0.3762722909, -0.1081526428, 0.225599885, -0.3169129789, 0.0376331657, 0.2689842284, -0.0927060544, 0.0103947222, -0.0342600867, 0.1593454927, -0.3435824215, -0.1637989581, 0.2872267365, -0.0145504214, 0.028838668, 0.0684598833, -0.0540243313, 0.3395631313, -0.1157189831, -0.1957778484, -0.2394089401, 0.0330544263, -0.0582297519, 0.1889539063, 0.4896892011, -0.4754009843, 0.0806837976, -0.3405703604, 0.1221413314, 0.4467143714, 0.2935123146, -0.0330284461, 0.2765633464, -0.2077404857, 0.023706466, -0.0174367651, -0.3686726689, -0.3444619775, 0.5175631046, -0.082237497, 0.3453440666, -0.0547712632, 0.043167036, 0.1374017745, 0.0436607711, 0.1547781229, 0.2047380805, -0.1418512017, 0.1543141603, -0.5629569292, -0.1220000759, 0.3635739982, 0.0133565068, 0.1890147775, -0.2069267929, 0.1235910505, -0.0846619979, 0.4912209213, -0.0084105972, -0.1206195503, -0.0321739614, 0.2111113518, -0.0240929835, 0.1006423235, -0.2743468285, -0.5518816113, 0.2668114305, -0.0237274729, 0.1528526694, 0.1286136508, -0.0469232537, -0.5897586346, -0.1467692554, -0.1562292576, -0.2404750288, 0.1061193347, 0.1226576865, 0.2428139895, 0.0796360075, -0.0546255969, 0.5485522747, -0.0577965155, 0.1413288862, -0.0799552798, 0.3413335085, -0.1525629163, -0.030509524, -0.0302448273, 0.1346587092, 0.2463358641, -0.0983945206, -0.3567021787, 0.6420468688, 0.1248636693, 0.2066822052, -0.4426276684, 0.0053087175, 0.3827438056, -0.3125799596, 0.095701851, 0.5969315767, 0.2378961146, 0.0181499273, 0.0953134075, 0.4245106578, -0.0290686693, -0.0525033846, 0.1060229391, -0.1878118217, 0.1633398533, -0.1469225734, 0.2009780407, -0.3520146012, 0.4401287735, -0.0863155574, 0.3760466576, -0.0243644286, -0.1455282569, 0.0485071614, 0.4009242654, -0.0737882331, -0.0185003579, -0.1634851098, -0.181917578, -0.1184914038, 0.3020993471, 0.3241458237, 0.6374417543, 0.1745534837, -0.2192534357, 0.2381287962, -0.0004307479, -0.2599274218, 0.4831359982, -0.1653630584, 0.0127732158, 0.4583311677, 0.0089774057, 0.109181121, -0.448771894, 0.1450785846, 0.1234029755, 0.1818008721, -0.3607928157, 0.0788163915, -0.2152220011, 0.0968672559, -0.3518630862, -0.261957407, 0.0294024199, -0.3133798838, -0.0178717114, 0.1368235052, -0.050381694, 0.2308111191, -0.4672616422, 0.0846560821, 0.1124343425, -0.1230982095, -0.2004065514, 0.0737321526, -0.361259371, 0.0988924876, 0.2535134554, 0.0678495318, 0.2908097208, -0.195679456, -0.1511840224, 0.0241016764, -0.4036480784, 0.1278225929, 0.1180698201, 0.227542147, 0.0969560742, 0.0744809434, 0.3463862538, -0.4121951461, -0.0710677877, -0.1308417618, -0.2183186114, 0.170541361, 0.03321198, 0.0247356109, -0.1156042516, -0.598754704, -0.4374186695, -0.3892831504, -0.0498277731, -0.1645168811, -0.0728506446, 0.1988957226, -0.1343786567, 0.0514268279, 0.1836189926, -0.0720977485, -0.400952667, 0.2122819722, 0.1445585489, -0.0392757431, -0.2241799533, -0.1384651065, -0.0772773176, -0.0527736843, -0.0458169132, -0.3023412526, 0.2543264627, -0.4559998512, 0.2435567081, -0.1985963583, -0.2131236494, 0.2872216702, 0.0318472572, -0.0354612246, -0.1347288489, -0.0344381258, -0.072291635, -0.1071649045, 0.1636639535, -0.1976882219, 0.394243598, 0.136397928, 0.4813589156, 0.2416755259, -0.5439122319, 0.0680665225, 0.1705718935, 0.2048646957, -0.0990283638, -0.3353736699, 0.3906063437, -0.0682675689, 0.0239584595, 0.2752487063, -0.3505268693, -0.2781620026, -0.0356108919, 0.1964913011, -0.3761665821, -0.0256567709, -0.1338630021, -0.1636419296, 0.2058551013, 0.325478822, 0.2892019451, 0.0354888588, -0.1637173593, 0.2503463328, 0.2493045181, 0.0125090331, -0.1440641433, -0.1290752888, -0.1602592915, -0.2274690568, 0.3832500577, 0.3412745595, 0.2640643418, 0.0742879063, -0.1175952703, -0.0429793224, -0.0687441006, 0.6774855852, -0.160219714, 0.1394208968, -0.0770245641, 0.1332768798, -0.1524720192, -0.2240351737, -0.022929199, 0.0237797797, 0.2947802842, 0.5989148617, -0.3209038079, -0.1446433812, 0.3440995812, 0.3235154748, -0.1614697576, -0.3134261072, -0.0346946642, -0.0641082302, -0.0452168472, 0.1154502332, 0.0462890044, 0.2783489525, -0.1482951641, -0.1531401277, 0.0351073891, -0.0507188812, 0.2441392839, 0.3141935766, 0.3286375403, -0.0386054963, 0.3620901704, 0.1574010849, 0.3023652136, 0.3721850812, 0.211106658, -0.3454648256, -0.0583144575, -0.1266354024, 0.0932572931, -0.001311928, 0.2818885148, -0.049035497, -0.1346838474, 0.2506634295, 0.068418853, -0.1524627805, 0.3452246785, -0.0177861173, 0.099184081, -0.1798806787, -0.3432308137, 0.231690228, -0.1548494101, 0.0145707428, 0.1157022566, 0.067900829, -0.3640975058, -0.0880732387, 0.0034847483, 0.7999352217, 0.3829323351, -0.1509275436, 0.2441916913, -0.3533548117, 0.0227452591, -0.3782044351, 0.1704311669, -0.3321319222, -0.1670111269, -0.0512644276, -0.1950090975, -0.0709553584, 0.0745389834, -0.2098715305, 0.2186292708, -0.1244221777, 0.0774681494, 0.2048071027, 0.2370274812, 0.0730771571, 0.1332219839, -0.1807200313, 0.1464787573, -0.0612236969, 0.1584162414, -0.2090024054, -0.0780173466, 0.0462246686, -0.1878196895, -0.2343226671, 0.2004467845, -0.6715441942, 0.0274441801, 0.0306345038, -0.0971902087, -0.002901651, -0.0963324755, 0.2391866446, 0.271561265, -0.1229086518, 0.0358497053, 0.1376945823, 0.1534957141, 0.0529683493, -0.0387598202, 0.2003015876, -0.1359014064, -0.1790284663, 0.0824057609, -0.3000931442, -0.1808876246, 0.2318423241, -0.0816882327, -0.0288238414, -0.3130399585, -0.1693851054, -0.0866782367, 0.1064577252, -0.2034928203, 0.1535088569, -0.2164584845, -0.3282729089, 0.0480187424, 0.0514248908, -0.3208441734, -0.3036954701, 0.260075599, 0.1588464379, -0.0262649357, 0.3788427114, 0.0115336552, -0.326903671, -0.2525988221, -0.1472421139, 0.1546262503, -0.4197561443, 0.0971369892, -0.3318920135, -0.2562454045, 0.1576458216, 0.2788512111, 0.5067479014, 0.0376340449, 0.0551865771, -0.5445108414, -0.1050762311, 0.0463754274, -0.167886883, 0.2210353911, -0.0551570207, 0.6132636666, -0.314718008, 0.1814595461, -0.3386440873, 0.0392295271, -0.123316057, 0.189397186, 0.000827847, -0.2967330217, 0.2796497345, 0.0981789529, 0.2074519545, 0.3625249267, -0.1502890289, -0.1964603066, -0.1700348407, 0.1034774706, 0.0979658067, -0.2308011949, 0.062586382, 0.1589740515, -0.0434564315, -0.0086862557, 0.1131302491, -0.1068089083, -0.0433671661, 0.1655224711, 0.3677057624, -0.0724938959, -0.2427453548, 0.0912596658, -0.144397378, 0.0855921507, 0.0484118201, 0.1299039125, -0.1480563432, 0.0475810915, 0.1583014429, -0.0559335947, 0.2772263288, 0.2009174228, 0.2070956975, -0.2499205023, -0.2945115566, 0.2605380714, 0.1768850237, 0.4284102023, 0.0114918761, -0.1583105773, 0.0698025897, 0.2637248635, -0.3338598013, -0.0800067857, -0.0841673613, -0.2150549144, 0.1919247806, 0.0787676945, 0.099745594, -0.1859394461, -0.046900019, 0.2622556984, 0.4332889616, -0.0860133469, 0.1091235578, 0.398732096, -0.0716096833, 0.029581707, 0.149977833, -0.2502600551, 0.0625841767, 0.3447419405, -0.0479678437, 0.1358727813, 0.010184342, 0.1770619899, -0.0911619067, -0.1617773473, 0.2650983632, 0.4197484851, -0.4040272534, 0.2929241359, 0.2387185246, -0.102329351, -0.3085987568, -0.1845878959, -0.4084450305, -0.1939703524, -0.0719641745, 0.1064390317, 0.0173221678, -0.342833668, -0.2268976867, -0.0113695264, -0.0335706882, 0.0478486419, 0.5259113312, 0.0245205052, -0.2330118716, -0.1281088591, -0.2837901413, 0.2017405331, 0.2190139294, -0.3413546681, 0.3417460322, 0.2017512321, -0.1879086196, -0.2357746363, 0.1908756644, 0.1929076463, 0.4227324128, -0.2607411444, -0.1073191911, 0.144697383, 0.0094171986, 0.1235151738, 0.4184184074, 0.0590742826, -0.0722033978, 0.2262648642, 0.135563314, -0.2458423972, 0.1419693679, -0.0804044604, -0.1136845052, -0.630374372, 0.3398408294, -0.027032638, -0.0053560808, -0.1063557714, 0.2040737271, -0.3419698775, 0.0560276546, 0.3937085867, -0.1050300002, 0.2485334277, 0.1354949325, 0.0990921408, -0.1431968957, 0.3879005313, 0.1573151201, 0.069698602, -0.5092071295, -0.1368089318, -0.4429210722, 0.2315695435, -0.1639961302, 0.1835736036, -0.0463666506, 0.0475718826, 0.1086040735, 0.1867363006, 0.1462302506, 0.3793208897, 0.1809261292, -0.0441586748, -0.2704292536, -0.149505645, -0.1365630925, -0.2033465058, 0.0330279917, -0.5399725437, 0.0781179667, 0.1010801047, 0.1184636801, -0.0927305445, -0.2510060072, 0.3491326869, 0.2162149698, 0.3482255638, 0.3603940308, 0.5763018131, -0.1550002247, -0.1805733144, 0.0021043001, -0.0462205522, -0.185120061, 0.1420907378, 0.1194766015, 0.3269407451, 0.0800936073, -0.1135654449, -0.231236428, 0.4827979207, 0.3263705373, -0.24793607, -0.2551741898, -0.0562408529, -0.3647661805, -0.0320117027, 0.2655397654, 0.3975052834, -0.0032959059, 0.0520436317, 0.0077277422, -0.3785653412, 0.4797544479, -0.5694301128, -0.0697971582, -0.1935783923, 0.2503975034, -0.0434157178, -0.0811096653, -0.4199207723, 0.0652298778, 0.5131904483, -0.0961266905, -0.0506021976, 0.1511284858, 0.154512912, -0.1854589134, 0.0249980986, 0.3290068507, 0.363375932, -0.2964657247, 0.0584364384, -0.2315707207 ]
https://github.com/huggingface/datasets/issues/2759
the meteor metric seems not consist with the official version
the issue is caused by the differences between varied meteor versions: meteor1.0 is for https://aclanthology.org/W07-0734.pdf meteor1.5 is for https://aclanthology.org/W14-3348.pdf here is a very similar issue in NLTK https://github.com/nltk/nltk/issues/2655
## Describe the bug The computed meteor score seems strange because the value is very different from the scores computed by other tools. For example, I use the meteor score computed by [NLGeval](https://github.com/Maluuba/nlg-eval) as the reference (which reuses the official jar file for the computation) ## Steps to reproduce the bug ```python from datasets import load_metric from nlgeval import NLGEval, compute_individual_metrics meteor = load_metric('meteor') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = meteor.compute(predictions=predictions, references=references) # print the actual result print(round(results["meteor"], 4)) metrics_dict = compute_individual_metrics(references, predictions[0]) # print the expected result print(round(metrics_dict["METEOR"], 4)) ``` By the way, you need to install the `nlg-eval` library first. Please check the installation guide [here](https://github.com/Maluuba/nlg-eval#setup), thanks! ## Expected results `0.4474` ## Actual results `0.7398` ## Environment info - `datasets` version: 1.10.2 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 4.0.1
28
the meteor metric seems not consist with the official version ## Describe the bug The computed meteor score seems strange because the value is very different from the scores computed by other tools. For example, I use the meteor score computed by [NLGeval](https://github.com/Maluuba/nlg-eval) as the reference (which reuses the official jar file for the computation) ## Steps to reproduce the bug ```python from datasets import load_metric from nlgeval import NLGEval, compute_individual_metrics meteor = load_metric('meteor') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = meteor.compute(predictions=predictions, references=references) # print the actual result print(round(results["meteor"], 4)) metrics_dict = compute_individual_metrics(references, predictions[0]) # print the expected result print(round(metrics_dict["METEOR"], 4)) ``` By the way, you need to install the `nlg-eval` library first. Please check the installation guide [here](https://github.com/Maluuba/nlg-eval#setup), thanks! ## Expected results `0.4474` ## Actual results `0.7398` ## Environment info - `datasets` version: 1.10.2 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 4.0.1 the issue is caused by the differences between varied meteor versions: meteor1.0 is for https://aclanthology.org/W07-0734.pdf meteor1.5 is for https://aclanthology.org/W14-3348.pdf here is a very similar issue in NLTK https://github.com/nltk/nltk/issues/2655
[ -0.1358162165, -0.2349781841, -0.0059329979, 0.4061325192, 0.1851485223, -0.2260376215, -0.1716091335, 0.2357301563, -0.0438347608, 0.0740857571, 0.0668202415, 0.3859930634, -0.0958541185, -0.4473045766, -0.039201986, -0.0029860223, -0.0017699897, -0.2732463479, -0.1561686993, -0.1142285541, -0.0879567713, 0.2557635009, -0.0586425215, 0.0983390063, 0.1512341499, 0.2146468908, 0.2339309007, -0.0853132159, -0.0735771507, -0.2372512817, 0.4464176893, -0.2547121346, 0.1061589122, 0.5718843341, -0.0001092228, -0.1097546667, 0.5471616983, -0.0057448111, -0.1640700549, -0.3211087883, -0.2009698451, -0.3649700284, 0.3099011779, -0.2298341393, -0.1332614273, 0.0013612732, -0.2734859586, -0.097788237, 0.5416395068, 0.2425268441, 0.2468084544, -0.0707293674, -0.0329473615, -0.0735694021, 0.005616378, 0.0035613663, -0.1855246127, 0.4780149758, -0.2764459252, 0.0538794324, -0.0193890929, 0.1980321854, 0.192499876, 0.2882618308, 0.3047471642, -0.0374397598, 0.2056657225, 0.18653965, 0.1254912019, 0.2122560889, 0.275385946, -0.3759814799, -0.3653777242, 0.116742745, -0.0383627936, -0.4420903325, 0.1010575742, 0.0597523376, 0.0617231131, -0.2433204055, -0.4172968268, 0.1959595233, -0.1231977344, 0.1582985222, -0.0885478109, 0.411072731, -0.1813753843, 0.1683813483, -0.1701655835, 0.0795142204, 0.100618735, -0.1356268525, -0.0568457209, -0.0334442668, -0.1606686115, 0.0442764312, -0.1364961714, -0.1545805931, 0.0622731596, 0.0040410329, 0.2865044475, 0.0556125268, 0.4499134421, -0.0662462488, -0.08321888, 0.1952993572, 0.4034388959, -0.0914600939, 0.2229098082, 0.284140408, 0.0712103024, 0.0319353677, 0.1968731135, -0.2307173908, 0.5221298933, 0.1731863469, -0.0789210126, -0.2163649797, -0.3225903511, 0.0125969835, 0.0460244268, 0.0061026923, 0.065095529, -0.2966374457, -0.1263108999, -0.1950011104, 0.0078041404, 0.1437560171, -0.2404645681, -0.0113248006, -0.2011922151, 0.1084215418, -0.1019065604, 0.3199008107, -0.0643684044, 0.1869408488, 0.377910316, -0.0284284521, 0.2165044546, -0.2593048513, -0.149845928, -0.0044138283, -0.0484351963, 0.0778284669, -0.1474404782, 0.2168375999, 0.2294592857, -0.2374289483, -0.166411981, -0.078371264, -0.0966555551, -0.2084736824, 0.1554422081, 0.2021887898, -0.3552141488, 0.0330936499, -0.0279509835, 0.1025889218, 0.0691781715, -0.0243306085, 0.0344142765, -0.2691451609, -0.213548243, -0.0733915269, 0.3713423312, -0.0000828207, -0.2837856114, -0.0432696417, -0.3907487988, 0.3113587499, 0.1092253923, -0.1440794915, -0.007412035, 0.0101119373, -0.1593016088, -0.4902367592, 0.3831689954, -0.2884458601, -0.3212443292, -0.1635172367, 0.2733109593, 0.2212441564, -0.0917890742, 0.0542544648, -0.2431737632, -0.0811821967, 0.3172593713, -0.01660024, 0.348067075, -0.1355618536, -0.538556993, -0.0393852368, 0.1130522788, 0.0065350682, 0.3192087412, -0.4252246916, 0.1794969887, 0.2294233441, 0.0155099072, 0.1722093523, 0.0421787649, 0.0602997392, 0.0968738273, -0.4579896927, 0.0290461145, -0.2238138616, -0.0304726958, 0.2628814578, -0.2043277025, -0.0593313091, 0.1946986318, -0.001994133, -0.5488239527, -0.0581810102, -0.0294286311, -0.1989921629, 0.1879661679, 0.1149054095, -0.062642701, -0.0436303429, 0.0775679201, -0.1338416636, -0.3600866795, -0.0965372622, -0.0805344433, -0.0284558646, -0.1556737721, -0.1163062081, 0.3951698542, 0.2015007883, 0.2209813595, -0.0824578404, -0.254796654, 0.3142407537, 0.2135629207, 0.0754587725, 0.2158140391, 0.0859911144, -0.1157247797, -0.2263933569, -0.1310668588, 0.3775627613, 0.1458841711, 0.1624935269, -0.1309823096, 0.3952779174, 0.3242171407, 0.0939601883, -0.0954199508, -0.1156594604, -0.009239547, -0.014752619, -0.1969421506, -0.2568130493, 0.1512790918, -0.0860580951, -0.0216639936, -0.1682967097, 0.2429614514, -0.1447509825, 0.3565321863, 0.0545582771, 0.2296371758, 0.199004069, -0.2496372908, -0.235793829, -0.2128977478, -0.1627345234, 0.3426098824, 0.0317688547, 0.0964515135, 0.0694159642, -0.2506146729, -0.3128024042, 0.1340082884, 0.2909136713, -0.080669716, 0.3633871675, 0.3177279234, 0.0116890073, -0.1174106449, 0.2528043389, -0.0544436686, 0.0673095286, -0.0671745315, 0.2033386827, -0.2143354565, 0.2841468453, -0.420342356, -0.5077068806, -0.6033654809, -0.4780294299, 0.0246392265, -0.0339773521, 0.2161398232, 0.1809396148, 0.3163751662, 0.1196286753, 0.0307185948, 0.1664610058, -0.0013493747, -0.3262860477, -0.4050019979, 0.1059100181, -0.0300934259, -0.0299211107, 0.3423897028, -0.1375699937, 0.1093682349, -0.1515025645, -0.4955452383, 0.0252056457, -0.045746617, 0.7252534628, 0.1718583554, -0.4527873099, 0.0372484922, 0.3458482325, 0.160280928, -0.3668869734, 0.1735024452, 0.2218374908, -0.2250283659, -0.2084213942, -0.0190017745, -0.2203018218, 0.1442068219, -0.13514103, -0.2315957993, 0.348626852, 0.0707620531, 0.2468068451, -0.1577880532, 0.1344601363, 0.174823314, 0.3467095494, -0.2913879454, -0.1006376371, 0.2914347649, -0.1825648546, -0.3294289708, -0.0032995194, 0.1110963672, 0.4584415257, 0.0616889857, -0.2635658979, -0.6254203916, -0.0283250771, -0.0230479836, -0.0609052256, -0.1638609618, 0.081694454, -0.2560127676, -0.0483233556, -0.259866029, -0.2592063248, -0.0988842323, 0.1421606243, 0.3638281524, -0.1304811537, 0.0940263867, 0.1602395475, 0.6323769689, 0.2696517706, -0.1276914477, -0.1066973656, 0.1169156283, 0.1045963764, -0.2340126932, -0.0122039653, 0.1513130963, 0.0846144408, 0.3354142606, 0.3545050025, 0.1112588197, 0.300350219, -0.2106335163, -0.0865528807, -0.3757591248, -0.2479579747, -0.1629181653, 0.0215301011, 0.0458197109, 0.2445278168, 0.2455225587, -0.1743804365, -0.2071652561, 0.1453406215, 0.4250761867, -0.1590638459, 0.1113640517, 0.2787348032, 0.0978735983, -0.2737772167, 0.3948974311, 0.1274558008, 0.2267422229, 0.1160897017, 0.050030224, 0.0698363408, -0.1368583143, -0.0488485843, -0.2523268759, 0.3218268454, 0.1352013946, -0.1423926502, -0.6760872006, -0.2181341052, -0.2263400406, 0.0616553947, 0.2319731414, 0.4251724482, -0.1331087202, -0.1836067736, -0.1844701916, 0.1671070009, -0.1929729283, -0.1721213609, -0.3584486246, -0.0296941623, 0.1986018419, -0.1994785666, -0.2214981616, 0.1997009516, -0.2016654313, 0.0602734089, -0.1834780723, -0.2629286051, -0.0587266497, 0.0503733866, 0.253185004, -0.2955344915, 0.2033885717, -0.3119789958, -0.0680171475, -0.2577802539, 0.0658241361, 0.3018262386, -0.1768382192, -0.0956350118, -0.1792346537, 0.077072084, 0.1359241605, -0.151006639, -0.1022671312, -0.4794323742, 0.2801923454, 0.0283418, -0.0896990895, 0.1653414071, 0.0140914842, -0.1515242308, 0.053612195, 0.5751373172, 0.3157078326, -0.1766790152, 0.2900373936, -0.035790924, -0.3305507302, -0.136421442, 0.2808999419, 0.627266109, 0.4066711366, 0.0119327717, 0.0492444634, -0.2753587961, 0.3018886447, 0.3433154225, 0.1594587117, -0.4138984084, -0.2181346267, 0.0412715822, 0.1394532621, 0.0428550839, -0.3080528378, 0.113308847, 0.528490901, -0.0817254335, 0.1583692729, -0.007994581, 0.1465641856, 0.0654191226, 0.1467652619, -0.0621019825, 0.2710241973, -0.1619924009, 0.2423303723, -0.0018787012, 0.0690990463, -0.2022748888, -0.0296115838, -0.1416735202, -0.000968717, 0.5955715179, 0.0765040368, 0.2002228498, -0.4551090002, 0.0485999808, -0.1175038964, 0.5312613845, 0.3216867745, -0.2299818248, 0.2634175718, -0.5472121835, 0.2441687733, -0.1307072788, 0.1279841363, -0.069757469, -0.118500337, 0.0187033713, -0.1369006932, -0.0360006429, 0.0825164467, -0.0620997101, -0.1582505703, 0.3788277209, -0.0411833748, 0.4483366609, -0.3621810973, -0.0472269803, -0.2663273215, 0.2131648958, -0.2188327014, 0.0014460683, 0.2188293934, 0.0948925316, -0.3635930419, 0.0428370275, 0.4329023659, -0.0534552783, 0.4348672032, -0.009212357, -0.1788999885, 0.0522658825, -0.1079752296, -0.2123863399, -0.0846214145, -0.1047987491, 0.0343204066, -0.1124684364, 0.2750740349, 0.2135679573, 0.4239363372, 0.2719601095, -0.1836756915, -0.1555681527, -0.5252072811, 0.2682495713, -0.0328943916, -0.1070635021, 0.0073942319, -0.1867924631, -0.110393554, 0.1266532689, 0.2420268804, -0.3334040046, -0.0147571694, 0.0707563385, 0.0505087152, -0.0600868836, -0.252615869, -0.0834790394, 0.2036732733, 0.0670769885, 0.1873741299, -0.2901427746, -0.2291767448, -0.2893623114, 0.0908683017, 0.1242935658, 0.007795494, 0.0496297963, 0.2131773084, -0.1830178648, -0.2457820177, -0.1480923891, 0.1141905561, 0.1359607875, 0.3024584055, -0.060450051, 0.5086022019, 0.065321669, -0.0861150846, 0.0335971788, 0.2548256218, -0.0884660333, 0.1084714383, 0.1875204742, -0.029892832, -0.1848647296, -0.0308393687, -0.1448868811, 0.1882310808, 0.2696503401, 0.1290749013, 0.0684608668, 0.1303532869, 0.2986495495, 0.2236775756, -0.0637910143, -0.4442343414, -0.2394884527, 0.1733603925, -0.2343716621, -0.0406977646, -0.2714273334, 0.3211047947, -0.0014932156, 0.0613796674, 0.1544309258, -0.1894700527, -0.1897161454, -0.0988619551, 0.7578181624, -0.4481826425, 0.0421201363, -0.1400887668, 0.2631902099, 0.0463281423, 0.429222554, -0.2257144749, 0.2814007998, 0.2795659602, -0.2038102746, 0.3184908032, -0.1076939479, 0.0860005766, 0.0314965099, 0.1829087287, 0.1649772525, 0.3285510242, 0.2327072024, -0.0589883626, -0.0093524233, 0.3833882809, -0.2099050879, 0.0567067787, -0.4581981599, -0.1379719973, 0.2848414183, -0.0877969712, -0.462179482, -0.1289703101, -0.1818468273, -0.025813885, -0.0887718871, 0.0600940473, 0.0153894834, -0.0791162848, -0.1218388528, -0.305036962, -0.2565439939, 0.3641896248, 0.1647269726, -0.2404814512, 0.2906771004, 0.4325599074, 0.1009298041, -0.1496157944, 0.0716871768, 0.1619819701, 0.1205395535, -0.2520707846, -0.0765155554, 0.3310958743, -0.0832406729, 0.1071995944, 0.2756619155, -0.056979429, -0.1035444587, 0.3694300652, 0.2167434692, -0.2008022815, 0.2692738473, 0.0051079467, 0.0936136842, -0.3605009019, 0.5348917842, -0.143304944, 0.1428112239, 0.0146242771, 0.1432058513, -0.2738914788, -0.3752200007, -0.1137517691, 0.3000075519, 0.2451171428, -0.0801248997, 0.1131702513, -0.2373937517, 0.4121420681, -0.1286604255, -0.4160782099, -0.0516933091, -0.1181038767, -0.4005630016, 0.2340831757, 0.16833435, 0.2376132607, -0.1082195342, -0.0538192727, -0.3112967014, 0.1834894717, -0.0009354427, 0.3528427482, -0.0834817439, -0.1732327193, -0.5152150393, -0.0506464355, 0.0662174374, -0.5063580275, 0.0115723014, -0.0732126236, 0.0404266082, -0.5476977229, 0.1411287785, 0.1117798313, -0.3006659448, 0.5468629599, 0.3646293283, 0.4902893603, 0.210308224, 0.2337276936, -0.1005824879, -0.1806226969, -0.0830207616, 0.156640321, -0.0928490162, 0.5090839863, -0.4025942087, 0.2690128386, 0.0803937614, 0.0869721919, -0.0826479793, 0.4936471283, 0.0949812531, -0.2323930264, -0.068875663, -0.1761597991, -0.1346303523, -0.0426747538, -0.0072229467, 0.2450736761, -0.0961180255, 0.301433742, -0.1895333827, -0.3276011944, 0.3208591342, -0.1526229382, -0.2464814037, -0.131466195, 0.2957194448, 0.0376134552, -0.0539724752, -0.2076195478, 0.0782644302, 0.4740903378, -0.001141916, 0.2411161661, 0.2820765674, -0.1557207257, 0.028273046, -0.0181426778, 0.2410162389, 0.2511882484, -0.1877971292, -0.0099860653, -0.0490339249 ]
https://github.com/huggingface/datasets/issues/2759
the meteor metric seems not consist with the official version
Hi @jianguda, thanks for reporting. Currently, at 🤗 `datasets` we are using METEOR 1.0 (indeed using NLTK: `from nltk.translate import meteor_score`): See the [citation here](https://github.com/huggingface/datasets/blob/master/metrics/meteor/meteor.py#L23-L35). If there is some open source implementation of METEOR 1.5, that could be an interesting contribution! 😉
## Describe the bug The computed meteor score seems strange because the value is very different from the scores computed by other tools. For example, I use the meteor score computed by [NLGeval](https://github.com/Maluuba/nlg-eval) as the reference (which reuses the official jar file for the computation) ## Steps to reproduce the bug ```python from datasets import load_metric from nlgeval import NLGEval, compute_individual_metrics meteor = load_metric('meteor') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = meteor.compute(predictions=predictions, references=references) # print the actual result print(round(results["meteor"], 4)) metrics_dict = compute_individual_metrics(references, predictions[0]) # print the expected result print(round(metrics_dict["METEOR"], 4)) ``` By the way, you need to install the `nlg-eval` library first. Please check the installation guide [here](https://github.com/Maluuba/nlg-eval#setup), thanks! ## Expected results `0.4474` ## Actual results `0.7398` ## Environment info - `datasets` version: 1.10.2 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 4.0.1
42
the meteor metric seems not consist with the official version ## Describe the bug The computed meteor score seems strange because the value is very different from the scores computed by other tools. For example, I use the meteor score computed by [NLGeval](https://github.com/Maluuba/nlg-eval) as the reference (which reuses the official jar file for the computation) ## Steps to reproduce the bug ```python from datasets import load_metric from nlgeval import NLGEval, compute_individual_metrics meteor = load_metric('meteor') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = meteor.compute(predictions=predictions, references=references) # print the actual result print(round(results["meteor"], 4)) metrics_dict = compute_individual_metrics(references, predictions[0]) # print the expected result print(round(metrics_dict["METEOR"], 4)) ``` By the way, you need to install the `nlg-eval` library first. Please check the installation guide [here](https://github.com/Maluuba/nlg-eval#setup), thanks! ## Expected results `0.4474` ## Actual results `0.7398` ## Environment info - `datasets` version: 1.10.2 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 4.0.1 Hi @jianguda, thanks for reporting. Currently, at 🤗 `datasets` we are using METEOR 1.0 (indeed using NLTK: `from nltk.translate import meteor_score`): See the [citation here](https://github.com/huggingface/datasets/blob/master/metrics/meteor/meteor.py#L23-L35). If there is some open source implementation of METEOR 1.5, that could be an interesting contribution! 😉
[ -0.147818163, -0.2521870136, -0.0246564895, 0.3410741687, 0.2311811745, -0.2251471579, -0.1337346137, 0.2375298738, -0.1029681563, 0.1020670608, 0.0819614008, 0.3635592759, -0.1630418897, -0.3619389832, -0.0496547595, 0.0434393175, -0.0236536413, -0.3071350455, -0.153465271, -0.0484822839, -0.0770225599, 0.2145744264, -0.0249225348, 0.0925159827, 0.1617097855, 0.2413861752, 0.1707570851, -0.0400182083, -0.1442759633, -0.2580811083, 0.3748163283, -0.1964258105, 0.1010535508, 0.5309472084, -0.0001044121, -0.1293848753, 0.5862193704, 0.0081375837, -0.1793999672, -0.3455772996, -0.2490600646, -0.3852470815, 0.2880991697, -0.191913262, -0.0959118605, 0.0437682569, -0.2066352814, -0.1008438244, 0.5769685507, 0.2530087829, 0.2920750678, -0.1218492836, 0.0126703456, -0.0997715294, 0.0463839248, 0.0661913306, -0.1800986826, 0.4117851853, -0.2385421097, 0.0982187465, -0.0425278693, 0.2050887048, 0.1938479245, 0.2316542417, 0.26117149, -0.0546888933, 0.2156089097, 0.1711399555, 0.077958487, 0.1912003309, 0.3276811838, -0.3993017673, -0.3931281865, 0.135933131, -0.0082493685, -0.4920447171, 0.0499257036, 0.0782916024, 0.0225337856, -0.211994797, -0.4008945525, 0.1289478242, -0.1222579628, 0.1270890087, -0.058568731, 0.3907242715, -0.2248825878, 0.1203365251, -0.1347390413, 0.0584190972, 0.0831420273, -0.038394779, -0.0343863815, -0.0310809985, -0.134725228, 0.0342388377, -0.1566370428, -0.1525465697, 0.1690116823, -0.0029824395, 0.2433557808, 0.100802131, 0.4526495934, -0.0251308121, -0.0411134809, 0.193960771, 0.4406629503, -0.1113477945, 0.2504618168, 0.3186849356, 0.1044175625, 0.0632325858, 0.1617821008, -0.1916848272, 0.5070535541, 0.1325167716, -0.0137899667, -0.178893894, -0.34293589, 0.0918599963, 0.0669189095, 0.0081750713, 0.1029940844, -0.179963693, -0.1395753026, -0.146483168, -0.0156326145, 0.0464369245, -0.1846252233, -0.0662353709, -0.2085934579, 0.1549059898, -0.2039867193, 0.2892299294, -0.0416444242, 0.167728737, 0.3400670886, -0.0389066376, 0.2023889571, -0.2363194525, -0.1112823337, 0.0133612156, -0.0415271856, 0.0646543503, -0.1101488844, 0.1739302427, 0.1842859387, -0.2790246606, -0.1020317152, -0.0391606428, -0.1144149005, -0.1948993802, 0.0797414482, 0.2515943646, -0.3690241575, 0.0499071628, -0.0140076205, 0.1826044619, 0.0627034977, -0.0204934701, 0.0527196601, -0.1326204538, -0.157974422, -0.0940805674, 0.3570549786, 0.1114909872, -0.2813991904, -0.0093763471, -0.4308559597, 0.3145483732, 0.124743022, -0.2065575123, 0.0224438906, -0.0567486435, -0.16156286, -0.5349422693, 0.3647164702, -0.2356971353, -0.3380418122, -0.2351224571, 0.2033910602, 0.1315129399, -0.0577309728, 0.0421358719, -0.2469060719, -0.0696170479, 0.2785611153, -0.0286376718, 0.2881575525, -0.1320798099, -0.5351967216, -0.0517964438, 0.1169946939, 0.0778269172, 0.3018967509, -0.4567935765, 0.2465068698, 0.2115740627, -0.005407121, 0.2137970179, 0.048311919, 0.0966466293, 0.1147341579, -0.4557759464, 0.1202820316, -0.2431789041, -0.0412269048, 0.264069587, -0.1666317731, -0.1202255189, 0.2189393044, 0.0205227509, -0.5379589796, 0.0368408188, -0.0812160224, -0.1820636839, 0.2198257446, 0.0613493025, -0.1401594132, -0.0993560851, -0.0055020079, -0.131366834, -0.3810175359, -0.0816134363, -0.1145739928, -0.0536088459, -0.1969022304, -0.1277427524, 0.3600820303, 0.159516111, 0.1943793595, -0.0530177914, -0.2322897464, 0.3451606631, 0.2800035179, 0.0231147166, 0.2230314463, 0.1184835881, -0.0870797262, -0.2262257934, -0.1516230404, 0.2881505787, 0.175327912, 0.1734196097, -0.2755358517, 0.3950207233, 0.2253574133, 0.0255402196, -0.1097520441, -0.0231605209, 0.0361028239, 0.0109119192, -0.2923177481, -0.2639077306, 0.1407268643, -0.1132561862, 0.0147088096, -0.1323926449, 0.1913962215, -0.1522472203, 0.3871749341, 0.043143563, 0.3020340204, 0.2685677111, -0.2179816961, -0.2699265778, -0.2127492279, -0.1749303937, 0.2869415581, 0.1010900885, 0.1103067994, 0.0748123378, -0.1497457772, -0.2546246648, 0.1458888501, 0.2289117277, -0.1467744112, 0.2909066081, 0.3128201365, 0.0072741657, -0.1140574217, 0.2003951371, -0.0769301802, 0.0734622553, -0.091036953, 0.1209045127, -0.1940791905, 0.3012643456, -0.3821585476, -0.5017486811, -0.6062217355, -0.4944027364, 0.0655423105, -0.0839282721, 0.2129886746, 0.1757659912, 0.3269557357, 0.1595530957, 0.0667392686, 0.2071738541, -0.0170069709, -0.3314947784, -0.2945851088, 0.1425487995, -0.0802770928, -0.0440402813, 0.3598217964, -0.1186937094, 0.1431427598, -0.1241078749, -0.4709442854, 0.0456024632, 0.0082606757, 0.6918197274, 0.2361387014, -0.4747568071, -0.0206394717, 0.4039647877, 0.1259759516, -0.3874661624, 0.1384502649, 0.2865400016, -0.2143688351, -0.201436013, 0.0108437091, -0.1430823505, 0.1117507294, -0.1348058879, -0.2115038633, 0.3902829885, 0.0237562992, 0.2410503924, -0.128473565, 0.2649898827, 0.1560120136, 0.3295109868, -0.3026742637, -0.2036083788, 0.3007968366, -0.1732981503, -0.3139922917, 0.0291742235, 0.1207085401, 0.3786698282, -0.014959516, -0.1902527213, -0.6665782332, -0.0313941762, -0.0594150536, -0.0360876285, -0.1200877726, 0.1167297065, -0.2164954543, -0.0864942521, -0.221313253, -0.2261394262, -0.1013962403, 0.1149094254, 0.3508440852, -0.18253389, 0.0895558819, 0.2299663723, 0.7172635198, 0.2367884815, -0.1143337637, -0.1029946133, 0.069639273, 0.1311947852, -0.2151094824, -0.0539520197, 0.1754362285, 0.053729713, 0.2634049654, 0.365442276, 0.126943022, 0.3131899238, -0.2360468358, -0.1155112311, -0.3265323639, -0.1952674985, -0.2356279045, -0.0070688911, -0.0504800417, 0.2195650786, 0.2327741981, -0.0876671597, -0.2071624994, 0.1731903255, 0.4234604239, -0.158857584, 0.1027152538, 0.3724786341, 0.1140843928, -0.3238573372, 0.3314690292, 0.0909413546, 0.1864417791, 0.1126780137, 0.055008322, -0.0031147264, -0.1909396052, -0.0209785774, -0.2531189024, 0.3101333976, 0.0446418896, -0.1225214228, -0.5995669365, -0.1632294059, -0.2427882403, 0.0216916427, 0.1464217454, 0.3101506233, -0.0808232725, -0.132807523, -0.151345998, 0.1208472401, -0.1552978754, -0.1163098067, -0.3726924062, -0.0631831884, 0.1353503764, -0.1255545318, -0.1635238826, 0.1212917268, -0.1136775836, 0.0013406202, -0.1744624376, -0.2919601202, -0.035003338, 0.0306295268, 0.1390448809, -0.3460540771, 0.1883099228, -0.2414289117, -0.0478550941, -0.2576873302, 0.1025188938, 0.3154451847, -0.2469967902, -0.0589597784, -0.1768932492, 0.1138709784, 0.0974821448, -0.2113997936, -0.0929664075, -0.5180152655, 0.2825881243, 0.0095765553, -0.0902423635, 0.122373879, 0.0630611926, -0.1648562402, 0.0411988124, 0.5064484477, 0.258251369, -0.1460027099, 0.3888774812, -0.0166431256, -0.2525935471, -0.122988835, 0.3109763265, 0.6403046846, 0.3419138789, -0.0344646238, 0.0447288379, -0.2284911722, 0.2664890885, 0.2861852348, 0.1647363305, -0.414299041, -0.2808916867, 0.0430981517, 0.135381937, 0.0765111968, -0.3224918842, 0.0715381876, 0.4974334836, -0.1406414956, 0.0987116471, 0.0170095395, 0.1865605712, 0.0775744766, 0.0481403619, -0.0448858254, 0.2939743102, -0.1924892962, 0.1315663755, -0.0096640475, 0.1223281622, -0.0720282793, -0.0076265633, -0.1705514491, 0.0580736473, 0.5772730112, 0.0531665012, 0.1628951728, -0.3432332575, 0.0198386982, -0.0865586996, 0.4654542208, 0.3328099847, -0.2302963436, 0.2989504337, -0.5688623786, 0.2628831565, -0.1434998959, 0.1299236417, 0.0013417955, -0.0944516063, 0.0707465559, -0.0955878794, 0.0549442321, 0.1475525498, -0.0062727481, -0.1776952446, 0.3491710722, -0.017259147, 0.4607383609, -0.3853220344, -0.1181577891, -0.2469913363, 0.2481600493, -0.1255540252, -0.0896089002, 0.1540972292, 0.1558180451, -0.3281248808, 0.0292921998, 0.5054626465, -0.1028210521, 0.4280500412, -0.0792581886, -0.1355885118, 0.0373903289, -0.1363712251, -0.052877225, -0.001177717, -0.0515269674, 0.0471648015, -0.1478277445, 0.3012149632, 0.2551986873, 0.4241327047, 0.2505407035, -0.2228533626, -0.1328346133, -0.511420548, 0.2083126605, -0.0453683063, -0.0960854515, -0.0417178124, -0.1661296487, -0.172004059, 0.1735004783, 0.2580817938, -0.3859463036, -0.0752192587, 0.0398499295, 0.0059608687, -0.0258200001, -0.2938757539, -0.1433078498, 0.1278074384, 0.1192669347, 0.1593709737, -0.2800624967, -0.2723570466, -0.2823261023, 0.0656558275, 0.0733794123, 0.0689806193, 0.0012037344, 0.2080418915, -0.2676578164, -0.2233204246, -0.1572522521, 0.1703038961, 0.103484869, 0.2949129343, -0.0643938556, 0.4062261283, 0.0453619733, -0.1708669215, 0.058531031, 0.2147118002, -0.0531996898, 0.1193390265, 0.2025173157, -0.062989071, -0.1279333532, 0.0352381133, -0.0675161779, 0.1731334329, 0.3118723035, 0.0562355332, 0.0884852409, 0.1232143939, 0.353248328, 0.1246330291, -0.106048882, -0.4063400626, -0.217629388, 0.2336739153, -0.2540642321, -0.1200785935, -0.2477077544, 0.3661582768, 0.0031075105, 0.0788144022, 0.0793548971, -0.1804216057, -0.1613419354, -0.0794910192, 0.7314053774, -0.4885137677, 0.021629557, -0.1493761539, 0.22656551, 0.0350742638, 0.4405234754, -0.1372162849, 0.3410738111, 0.3740022779, -0.2450245917, 0.4250044823, -0.0429959074, 0.2151365578, 0.0139030814, 0.153750807, 0.2210006565, 0.3062159717, 0.2033817023, -0.0450343117, -0.0749171972, 0.318662852, -0.192545563, 0.1538997293, -0.4080441594, -0.1106439009, 0.2830378413, -0.104667075, -0.373560071, -0.1484470367, -0.2269961238, -0.0403975323, -0.0507253334, 0.0631418601, 0.0036716461, -0.0868485421, -0.0783486962, -0.2781258523, -0.1826882511, 0.3552908301, 0.2407272756, -0.3074507713, 0.2518778443, 0.3919894099, 0.1222323179, -0.2010668069, -0.0159651954, 0.1012651026, 0.1369145215, -0.3087234199, -0.0339083448, 0.2608786225, -0.1441624165, 0.0951401293, 0.2885706723, -0.0707430169, -0.0812908411, 0.3715007305, 0.2621389925, -0.2381005734, 0.2789753675, 0.0364156216, 0.0859419703, -0.3769668043, 0.4557331204, -0.1082669944, 0.0914919525, -0.0132457921, 0.1441666186, -0.2951060534, -0.445758909, -0.0430307463, 0.235313341, 0.1749768853, -0.1530624926, 0.1383684129, -0.1613852382, 0.3768998384, -0.176139161, -0.3782282472, -0.0125432685, -0.0520637855, -0.4072153866, 0.1669825017, 0.2578724027, 0.2493454814, -0.0116362981, -0.0554785542, -0.3329470754, 0.2094545811, -0.0443086773, 0.4313583374, -0.1041297689, -0.1514205486, -0.4020170271, -0.0338055417, -0.019172851, -0.433051765, -0.0151405185, -0.0386176147, 0.0190424919, -0.5741431713, 0.1770799756, 0.1041549295, -0.3532288373, 0.5408805013, 0.3004406393, 0.4227414131, 0.1769688129, 0.1479735821, -0.151425004, -0.0963380709, -0.1034423113, 0.1070192233, -0.1194013655, 0.4396037757, -0.3794591725, 0.1813826859, 0.1088852584, 0.0769577324, -0.1336252987, 0.4373620152, 0.0923435465, -0.1658056378, -0.0845744684, -0.1421271861, -0.0927536562, -0.0068178512, -0.0510412343, 0.1910171211, -0.0871869475, 0.2374992073, -0.1445524991, -0.2393933237, 0.3237603307, -0.1295939088, -0.233512193, -0.1668450087, 0.2707191706, 0.0491225682, -0.0625123456, -0.2227313071, 0.0414364338, 0.4593603015, 0.0213778876, 0.1399925053, 0.2271163166, -0.1391265541, 0.0567775741, -0.0739602447, 0.2057382464, 0.2255967855, -0.0973949805, 0.0037193596, -0.0437502898 ]
https://github.com/huggingface/datasets/issues/2757
Unexpected type after `concatenate_datasets`
Hi @JulesBelveze, thanks for your question. Note that 🤗 `datasets` internally store their data in Apache Arrow format. However, when accessing dataset columns, by default they are returned as native Python objects (lists in this case). If you would like their columns to be returned in a more suitable format for your use case (torch arrays), you can use the method `set_format()`: ```python concat_dataset.set_format(type="torch") ``` You have detailed information in our docs: - [Using a Dataset with PyTorch/Tensorflow](https://huggingface.co/docs/datasets/torch_tensorflow.html) - [Dataset.set_format()](https://huggingface.co/docs/datasets/package_reference/main_classes.html#datasets.Dataset.set_format)
## Describe the bug I am trying to concatenate two `Dataset` using `concatenate_datasets` but it turns out that after concatenation the features are casted from `torch.Tensor` to `list`. It then leads to a weird tensors when trying to convert it to a `DataLoader`. However, if I use each `Dataset` separately everything behave as expected. ## Steps to reproduce the bug ```python >>> featurized_teacher Dataset({ features: ['t_labels', 't_input_ids', 't_token_type_ids', 't_attention_mask'], num_rows: 502 }) >>> for f in featurized_teacher.features: print(featurized_teacher[f].shape) torch.Size([502]) torch.Size([502, 300]) torch.Size([502, 300]) torch.Size([502, 300]) >>> featurized_student Dataset({ features: ['s_features', 's_labels'], num_rows: 502 }) >>> for f in featurized_student.features: print(featurized_student[f].shape) torch.Size([502, 64]) torch.Size([502]) ``` The shapes seem alright to me. Then the results after concatenation are as follow: ```python >>> concat_dataset = datasets.concatenate_datasets([featurized_student, featurized_teacher], axis=1) >>> type(concat_dataset["t_labels"]) <class 'list'> ``` One would expect to obtain the same type as the one before concatenation. Am I doing something wrong here? Any idea on how to fix this unexpected behavior? ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-10.14.6-x86_64-i386-64bit - Python version: 3.9.5 - PyArrow version: 3.0.0
80
Unexpected type after `concatenate_datasets` ## Describe the bug I am trying to concatenate two `Dataset` using `concatenate_datasets` but it turns out that after concatenation the features are casted from `torch.Tensor` to `list`. It then leads to a weird tensors when trying to convert it to a `DataLoader`. However, if I use each `Dataset` separately everything behave as expected. ## Steps to reproduce the bug ```python >>> featurized_teacher Dataset({ features: ['t_labels', 't_input_ids', 't_token_type_ids', 't_attention_mask'], num_rows: 502 }) >>> for f in featurized_teacher.features: print(featurized_teacher[f].shape) torch.Size([502]) torch.Size([502, 300]) torch.Size([502, 300]) torch.Size([502, 300]) >>> featurized_student Dataset({ features: ['s_features', 's_labels'], num_rows: 502 }) >>> for f in featurized_student.features: print(featurized_student[f].shape) torch.Size([502, 64]) torch.Size([502]) ``` The shapes seem alright to me. Then the results after concatenation are as follow: ```python >>> concat_dataset = datasets.concatenate_datasets([featurized_student, featurized_teacher], axis=1) >>> type(concat_dataset["t_labels"]) <class 'list'> ``` One would expect to obtain the same type as the one before concatenation. Am I doing something wrong here? Any idea on how to fix this unexpected behavior? ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-10.14.6-x86_64-i386-64bit - Python version: 3.9.5 - PyArrow version: 3.0.0 Hi @JulesBelveze, thanks for your question. Note that 🤗 `datasets` internally store their data in Apache Arrow format. However, when accessing dataset columns, by default they are returned as native Python objects (lists in this case). If you would like their columns to be returned in a more suitable format for your use case (torch arrays), you can use the method `set_format()`: ```python concat_dataset.set_format(type="torch") ``` You have detailed information in our docs: - [Using a Dataset with PyTorch/Tensorflow](https://huggingface.co/docs/datasets/torch_tensorflow.html) - [Dataset.set_format()](https://huggingface.co/docs/datasets/package_reference/main_classes.html#datasets.Dataset.set_format)
[ 0.0659024864, -0.2509692013, 0.0296786502, 0.5075554848, 0.4053796828, 0.1719069183, 0.4817780852, 0.1346458197, -0.3654303551, -0.1315237582, -0.1543311328, 0.3956092298, -0.0383027643, -0.019348748, -0.0897326767, -0.291996628, 0.2896147966, -0.0016608424, -0.2081796378, -0.2273824811, -0.0381972454, 0.1582771987, -0.2841176987, 0.0357566625, -0.2161128372, 0.0315719098, -0.063305065, -0.1039581597, 0.0063896701, 0.039048329, 0.4256381392, 0.0004016049, 0.248007983, 0.57112813, -0.0001217747, 0.070005998, 0.1109222323, 0.0230531543, -0.0054580197, -0.0247394294, -0.2727142572, -0.3866926432, 0.1001271978, -0.221240595, 0.0955419093, -0.2762019038, -0.2802901268, -0.4563533366, -0.0949751288, 0.1694530398, 0.1514109075, 0.2291549295, 0.029835619, 0.1134990379, 0.1770875901, 0.169029668, -0.1362751871, -0.1136702299, -0.0572794341, 0.2449532598, 0.4470963776, -0.0400952771, -0.1846584082, -0.1947274059, 0.02278593, 0.2623610198, -0.3148838878, -0.3963645101, -0.1733085066, 0.1674889624, 0.5260426402, -0.1522035003, -0.1825706959, -0.1398913264, 0.01404972, 0.1007183939, 0.1467596292, 0.1790629327, 0.1674619168, -0.0629971474, 0.0019773804, 0.2578362226, -0.0612736903, 0.2807201743, -0.2607088685, -0.0113037266, -0.120529741, 0.2740451992, -0.0921652541, -0.1820497066, 0.1866727769, -0.2658765316, -0.0710547641, -0.0162650943, -0.5050219893, -0.0840446353, 0.0590061583, -0.509517014, -0.1505640447, -0.1426674128, 0.1211889982, 0.0527788326, -0.2076216936, 0.1359156072, 0.207155928, 0.3062790334, -0.0643243939, 0.3882653117, -0.090414837, -0.0109212101, -0.0627332479, 0.1054686755, -0.0303910989, -0.305283308, 0.0818850175, 0.0254361294, 0.3865279555, -0.0147892088, -0.3727710247, 0.0108857974, -0.3847962618, 0.2573922873, 0.0848566368, -0.153352201, -0.3881435394, 0.5925776958, 0.2986510396, 0.2811685205, 0.0565007031, -0.019884523, -0.0571242943, -0.2771323323, -0.0768729821, -0.2397636175, 0.0317757428, -0.1434993893, -0.2257493734, 0.4488454461, 0.1257311553, 0.0125260353, -0.0595630929, -0.0809917375, 0.2891121209, -0.0434471481, -0.0761660114, 0.2290888131, 0.181147784, -0.0985064134, -0.036264874, 0.2386941016, -0.4926405847, -0.0590334497, -0.381783098, 0.1135701686, -0.0164533071, 0.0104642268, -0.0731905997, 0.1836477518, 0.5666252971, 0.2480071485, 0.07040786, -0.2878102362, 0.0038008019, -0.2995422184, -0.0008177608, 0.02091337, -0.218506828, -0.0127196088, -0.1650029868, 0.0993296504, 0.4306172132, 0.3159379363, -0.1027804986, 0.3083856702, -0.3631753027, 0.0680125505, 0.5011173487, -0.082622759, -0.0558358505, -0.0620210618, -0.0076069832, 0.4844595194, -0.0192016363, 0.0540578105, -0.0028553009, 0.0904534459, 0.4210169315, 0.2623524964, 0.1196407974, -0.0385203771, -0.1726739109, 0.0994730443, 0.6978391409, -0.0961646363, -0.1197117716, 0.3987000287, -0.0288006477, 0.026765015, 0.1838663369, -0.2013192922, 0.0032165833, 0.0487344973, -0.1022673026, 0.1278574765, 0.143433556, 0.0885533541, -0.477280885, 0.0218083262, -0.1082344651, 0.1001594961, -0.201389432, -0.1823514551, 0.1723071933, -0.0312147737, -0.0837008879, 0.2704253793, 0.0632627681, 0.0763834938, -0.4588811696, -0.0922054797, 0.1424325109, 0.1000563502, 0.1427499801, 0.0255111903, -0.4670331478, 0.220772475, 0.0516194627, -0.0008800924, -0.3370991349, 0.1691163033, 0.1627227217, -0.0121849608, -0.1386407465, 0.2362543344, -0.2402528971, 0.0432874151, -0.1662948281, 0.0633412823, 0.0786365867, 0.0362606794, -0.11919301, 0.1988860071, 0.1499747038, -0.2119936943, 0.2961155474, 0.46910882, 0.2151080668, 0.1262292415, -0.3541631103, 0.1088890135, 0.0366480947, 0.046669513, -0.1513888091, 0.0986696035, 0.0332319327, 0.1303196996, -0.1636217833, 0.1962627172, -0.5942214131, 0.2050191909, 0.4457783103, -0.0293971188, 0.1831899881, -0.0318305045, -0.1152456254, 0.1445438862, 0.0400426164, -0.4003141522, 0.5986571312, -0.0762851685, 0.1600491107, -0.0623997971, 0.0319034159, -0.0884365812, 0.1578813791, 0.1634771675, -0.1648808122, 0.2422765046, 0.548805654, -0.0258922298, 0.0026322603, 0.2411987633, -0.0258664712, -0.0695293769, -0.4299578667, 0.408952862, -0.4493633807, -0.0130518004, -0.433783263, -0.4268894792, -0.2325566113, -0.1914568245, -0.3151691556, 0.0831535608, -0.0308009721, 0.1409170926, 0.2315024883, 0.2088592947, 0.4176332951, -0.33529073, -0.0116183013, 0.2565828264, -0.2936902344, -0.0194221716, 0.1011187136, -0.4746142626, -0.0927017108, -0.0140166208, 0.1141558886, -0.2371974587, -0.3689379096, -0.0497704111, -0.238390848, 0.0373719633, 0.2184631974, -0.0252510905, -0.0695569962, -0.3585178256, 0.0914956629, 0.3910310864, 0.0402585566, 0.5428990126, -0.1206102222, -0.145931527, -0.2737419009, -0.414254427, -0.1589874476, -0.1897293776, 0.3760147691, 0.0556127578, 0.0255452506, 0.2554226816, 0.1048956513, -0.1140450984, 0.3653514087, 0.1799468398, -0.2550263703, -0.3012899756, 0.546210587, -0.0352580547, -0.2991882265, -0.1919014156, -0.181500271, 0.086480312, 0.3125524819, -0.3383071423, 0.2758896947, -0.2269133478, 0.5231871605, -0.2641233206, 0.0371500626, 0.0337028764, 0.2198939919, 0.052567713, -0.1942944527, 0.2089819014, 0.261998117, 0.168386817, 0.4185816348, -0.0266031083, -0.0517272353, 0.0500227511, 0.2800496817, 0.0553950593, -0.5754986405, 0.0552764647, 0.036958769, 0.2148910165, -0.1227345392, -0.5823751092, -0.0003766678, -0.2560167313, 0.0677059218, -0.180763796, -0.2100425661, -0.2295660675, -0.0138647854, 0.4533785582, 0.0392070189, -0.2866449952, 0.1987094879, -0.2816283405, 0.1523374021, -0.0028857663, -0.0913681164, -0.2553853095, -0.2479197979, 0.1207728311, 0.2488179803, -0.1429391503, -0.0366870575, -0.3327062726, -0.384503454, -0.0645512938, 0.316665411, 0.2268410623, 0.3978819251, 0.2228399515, -0.1883239746, -0.1549575031, 0.4459355474, 0.8358089924, 0.139398694, -0.3315659761, 0.3097251952, 0.156332165, -0.3661010265, -0.4271094501, -0.2192661464, 0.2107050717, 0.2837592959, 0.2501067519, -0.2852649689, -0.0509403311, -0.0448642001, 0.3663125932, -0.1162714735, 0.0555989705, -0.1983707547, -0.0186837092, 0.062012881, -0.2956487536, 0.002154246, 0.3204757571, -0.5425037146, -0.4796467423, -0.2594845891, -0.1547107399, 0.1353884935, -0.142169416, 0.2919120789, -0.0179594513, 0.0859133005, -0.2203521281, 0.2265550792, 0.2167867869, 0.409976691, 0.2381252944, -0.6073960662, 0.0864775479, -0.0816749483, 0.1548352987, 0.1625733972, -0.3722440898, 0.1816202253, -0.2765265107, -0.0311318934, -0.0456786081, 0.4009890556, 0.5867688656, 0.280972749, -0.569427073, -0.407826066, 0.2210954726, 0.244700864, -0.0408974215, 0.3986698687, -0.5758919716, -0.4458217621, 0.0151690915, -0.1313025653, 0.9348551631, 0.2274413109, 0.3354799747, 0.3603386879, 0.2283130884, 0.2585175633, -0.0876080096, 0.2597101033, -0.2174419016, -0.2065100074, -0.1460084021, -0.3474817276, 0.0850357562, -0.0712473541, -0.4455398023, -0.0835426748, -0.6744431257, 0.263407439, 0.0200510137, -0.1967614889, 0.2113200277, -0.353821218, -0.0215710793, 0.0079715289, -0.1043985561, 0.1108677909, -0.138935715, -0.1853513867, -0.39071697, -0.0414992943, -0.1276091039, 0.2642030716, -0.1600132287, 0.4613226056, 0.2610340416, -0.3412076235, 0.1806777418, 0.3065122664, 0.2656793296, 0.174545154, -0.0411951244, -0.0961858779, 0.1947008073, 0.234638989, 0.2287787348, -0.3867945373, 0.3823732436, 0.3281330466, -0.1535709798, 0.0813623369, 0.1307565123, 0.0036409646, -0.2941784859, 0.1807540357, 0.0310394242, -0.6678335071, 0.0257422738, 0.1144257188, 0.2623031735, 0.0078850538, 0.0455634966, 0.0326083861, -0.1880734265, 0.1570518911, -0.0923692137, -0.1523029804, -0.0486063026, 0.2529428005, 0.6211354733, 0.1648052484, 0.2510535419, 0.1555797756, 0.0163082108, -0.0108200945, 0.3169969618, -0.2276741862, -0.3221342862, 0.2020929903, -0.3763023913, -0.1631621718, -0.3678599, 0.3481136262, -0.2231415212, 0.1864338964, -0.1074504331, -0.1279442459, -0.1636230201, -0.0874901563, 0.0984856933, 0.1391124725, -0.0229633898, 0.4937673807, 0.009623237, -0.2948609591, -0.1424332857, 0.0263492838, -0.0642632768, 0.2000520229, -0.1198727116, 0.036507424, 0.1525548398, -0.112938121, 0.0352507718, 0.0947505459, 0.1068755835, -0.1395224184, -0.2098551244, 0.1725347191, 0.1596061885, -0.0051736385, 0.0608732663, -0.0223291963, 0.028072685, -0.1015718579, 0.0722631067, 0.031042777, -0.0159950517, 0.1429524422, -0.1008779705, 0.1879901588, 0.1577151567, 0.0051409379, -0.0138956383, -0.0258004032, 0.0863285959, 0.2060129941, -0.2112697363, -0.0456977859, -0.4530457556, 0.1093634367, 0.0555424839, 0.2954216897, 0.2815392613, -0.4541044533, -0.1130686253, -0.2473671436, 0.1694394946, 0.3495013714, -0.3330465555, -0.1357992291, -0.1574988067, 0.0786973014, 0.0047280714, -0.2634817362, -0.1379796863, 0.1281902492, -0.1968498677, 0.1794261634, -0.0343557522, -0.0298036933, -0.0930814594, -0.0316712037, 0.1060752273, 0.0081218518, 0.4864068627, 0.2356228977, -0.0351787731, 0.1831523776, 0.2757526636, 0.0298428982, -0.0677542239, 0.2069123089, 0.3799348772, 0.0728013813, 0.4757644534, -0.177673623, 0.4583593607, -0.1887038797, -0.0897479802, 0.0986291915, -0.0208555236, 0.3439780176, 0.2496029735, 0.189398095, -0.3167265356, -0.4845968187, -0.0677670389, 0.074409239, -0.3010368049, 0.107643351, 0.1744671911, 0.0114026517, 0.0174718499, -0.2452274412, 0.0484877452, 0.0446033441, 0.3473398089, 0.0695023239, -0.1298011094, -0.3323864341, 0.2785466015, 0.2137667388, 0.1685862243, -0.0849741995, 0.0482948422, 0.2870334089, -0.2116380334, 0.0310055949, 0.3284197748, 0.4566879272, 0.3523458838, -0.0556691736, -0.0347884484, 0.0796084478, -0.090984419, 0.037979275, 0.2267527729, 0.0310629662, -0.2312519252, 0.1849551499, 0.0787103623, -0.0896127522, 0.224781394, 0.0495847911, 0.2855033875, -0.5732685924, 0.4974718094, -0.3825761974, -0.1653487533, -0.2320638448, -0.0655602217, -0.3300943375, -0.0028858744, 0.7613863349, 0.1631409824, 0.2303945422, -0.0456022806, 0.0524735153, 0.148567304, 0.381958425, -0.0265987888, 0.1260827929, -0.0758734345, 0.1160464585, 0.1345691383, 0.3428665102, 0.377558738, 0.2901945114, 0.0708573461, 0.3413298726, 0.0616460927, 0.1583911479, -0.026249595, -0.262029767, 0.030572854, 0.1289076954, -0.3855932951, -0.3565680385, -0.0862099379, -0.1032189131, 0.0023235306, -0.3629137874, 0.4041661024, -0.0406728312, 0.0443601012, -0.1156620607, -0.2173945606, 0.2016634792, 0.2793516815, 0.357732147, 0.3725616038, 0.2503007054, -0.1102254093, -0.1550385356, -0.0887540281, -0.5083962679, -0.2221995592, 0.450986743, -0.2360425293, 0.1048237756, -0.2071293592, 0.2530992627, -0.1397609264, 0.1418415606, 0.4245604873, -0.1707580835, -0.3980740905, 0.2990468144, -0.3292232156, -0.0033923611, -0.0399659798, 0.5031766295, -0.0017840303, 0.2349114716, -0.0036319196, -0.4555345476, 0.4450862706, -0.3086918294, -0.4081064761, 0.0040456057, -0.0593624413, -0.0185012966, 0.1491976976, -0.5609917641, -0.3100960553, 0.4338611364, -0.3143927455, -0.0531014204, 0.0299371071, -0.0753485933, 0.0506682247, -0.2577314377, 0.2257410288, -0.0080869505, -0.2879450917, 0.4016747475, -0.2544683218 ]
https://github.com/huggingface/datasets/issues/2750
Second concatenation of datasets produces errors
Hi @Aktsvigun! We are planning to address this issue before our next release, in a couple of weeks at most. 😅 In the meantime, if you would like to contribute, feel free to open a Pull Request. You are welcome. Here you can find more information: [How to contribute to Datasets?](CONTRIBUTING.md)
Hi, I am need to concatenate my dataset with others several times, and after I concatenate it for the second time, the features of features (e.g. tags names) are collapsed. This hinders, for instance, the usage of tokenize function with `data.map`. ``` from datasets import load_dataset, concatenate_datasets data = load_dataset('trec')['train'] concatenated = concatenate_datasets([data, data]) concatenated_2 = concatenate_datasets([concatenated, concatenated]) print('True features of features:', concatenated.features) print('\nProduced features of features:', concatenated_2.features) ``` outputs ``` True features of features: {'label-coarse': ClassLabel(num_classes=6, names=['DESC', 'ENTY', 'ABBR', 'HUM', 'NUM', 'LOC'], names_file=None, id=None), 'label-fine': ClassLabel(num_classes=47, names=['manner', 'cremat', 'animal', 'exp', 'ind', 'gr', 'title', 'def', 'date', 'reason', 'event', 'state', 'desc', 'count', 'other', 'letter', 'religion', 'food', 'country', 'color', 'termeq', 'city', 'body', 'dismed', 'mount', 'money', 'product', 'period', 'substance', 'sport', 'plant', 'techmeth', 'volsize', 'instru', 'abb', 'speed', 'word', 'lang', 'perc', 'code', 'dist', 'temp', 'symbol', 'ord', 'veh', 'weight', 'currency'], names_file=None, id=None), 'text': Value(dtype='string', id=None)} Produced features of features: {'label-coarse': Value(dtype='int64', id=None), 'label-fine': Value(dtype='int64', id=None), 'text': Value(dtype='string', id=None)} ``` I am using `datasets` v.1.11.0
51
Second concatenation of datasets produces errors Hi, I am need to concatenate my dataset with others several times, and after I concatenate it for the second time, the features of features (e.g. tags names) are collapsed. This hinders, for instance, the usage of tokenize function with `data.map`. ``` from datasets import load_dataset, concatenate_datasets data = load_dataset('trec')['train'] concatenated = concatenate_datasets([data, data]) concatenated_2 = concatenate_datasets([concatenated, concatenated]) print('True features of features:', concatenated.features) print('\nProduced features of features:', concatenated_2.features) ``` outputs ``` True features of features: {'label-coarse': ClassLabel(num_classes=6, names=['DESC', 'ENTY', 'ABBR', 'HUM', 'NUM', 'LOC'], names_file=None, id=None), 'label-fine': ClassLabel(num_classes=47, names=['manner', 'cremat', 'animal', 'exp', 'ind', 'gr', 'title', 'def', 'date', 'reason', 'event', 'state', 'desc', 'count', 'other', 'letter', 'religion', 'food', 'country', 'color', 'termeq', 'city', 'body', 'dismed', 'mount', 'money', 'product', 'period', 'substance', 'sport', 'plant', 'techmeth', 'volsize', 'instru', 'abb', 'speed', 'word', 'lang', 'perc', 'code', 'dist', 'temp', 'symbol', 'ord', 'veh', 'weight', 'currency'], names_file=None, id=None), 'text': Value(dtype='string', id=None)} Produced features of features: {'label-coarse': Value(dtype='int64', id=None), 'label-fine': Value(dtype='int64', id=None), 'text': Value(dtype='string', id=None)} ``` I am using `datasets` v.1.11.0 Hi @Aktsvigun! We are planning to address this issue before our next release, in a couple of weeks at most. 😅 In the meantime, if you would like to contribute, feel free to open a Pull Request. You are welcome. Here you can find more information: [How to contribute to Datasets?](CONTRIBUTING.md)
[ -0.1504654586, -0.059169814, -0.0577094853, 0.255951494, 0.1930537075, 0.0901743174, 0.0821338445, 0.2622762322, -0.2609197795, -0.0551396459, 0.0358311608, 0.1265256107, 0.2174617797, 0.0901992321, -0.2850415111, -0.1801926196, 0.1788394302, 0.0559674166, 0.0485578291, -0.1189003736, -0.1244954616, 0.1265650988, -0.3151788712, 0.0769736618, -0.4671196342, 0.162540853, -0.3227905631, 0.0076209488, -0.0032959636, -0.3098782003, -0.0556448922, 0.3040579259, -0.0451283678, 0.3253477216, -0.0001139846, -0.140404731, 0.020385785, -0.0589027256, -0.1106777787, -0.1804827601, -0.1020743251, -0.5905038118, -0.0913803726, -0.2002822161, 0.1462706923, -0.6070086956, -0.2705748677, -0.2687054574, 0.2620134056, -0.1385009885, 0.1597834378, -0.0676154569, 0.174784556, -0.1806190759, -0.1066621616, 0.096517995, 0.0347620994, -0.0004106686, -0.1437835544, -0.0325337276, 0.4414528608, 0.3706359863, -0.1782262921, -0.3017141521, -0.1555944979, 0.16177091, 0.0063125025, -0.3817130923, -0.0536330268, 0.1203864366, 0.32908988, -0.3443949819, -0.3714584708, -0.4346684217, 0.1693648845, -0.2393825352, 0.0312750973, -0.0691225231, 0.2867304385, 0.2179713994, -0.0308875013, -0.1890497208, 0.0395148098, 0.1386502385, -0.0608813018, 0.2488584667, 0.0057217851, 0.1144916415, 0.1244021282, -0.5368868709, 0.022335954, -0.4283559918, -0.0197522603, 0.0175417997, -0.5440706015, -0.0473731309, 0.059429843, -0.6148052812, 0.2270133495, 0.1771860272, -0.0383976325, 0.0237069614, -0.0668148845, -0.0024821209, 0.2470452785, 0.41886729, 0.2312257141, 0.2866077125, -0.047064174, -0.2252598703, -0.2453389764, -0.0734840631, -0.1264433414, -0.2911262214, 0.1000444815, 0.0113738328, 0.3961432576, -0.0294773877, -0.0793907717, 0.1111143455, -0.3544277847, -0.1133779585, 0.1028652638, 0.0086839013, -0.0921809077, 0.6188395619, -0.1172473133, 0.2566659451, 0.1120009348, -0.1708723605, -0.1573576927, -0.1931791902, 0.0105559677, 0.1908483803, -0.009235546, -0.2236085832, 0.0366119891, 0.2651329935, -0.0237972625, -0.1290381104, 0.0272336155, -0.310131669, 0.0045606121, 0.0218815431, 0.1250577867, 0.0520777628, 0.0854917765, -0.0011944249, 0.0240501016, 0.0454846546, -0.5595518947, -0.1502059847, -0.370113343, 0.2136220336, 0.0852636471, 0.2996404469, 0.080123283, 0.3027192652, 0.2509584427, 0.0506003946, -0.188568294, -0.087035872, 0.0076495335, -0.1807181835, 0.0821315199, 0.0898535028, 0.0677424073, 0.0127706677, 0.1103846431, 0.184304595, 0.2871362269, 0.4206842184, -0.1703024805, 0.334491998, -0.2040977031, 0.4971632957, 0.5261321664, -0.0743057802, -0.1810773611, 0.2042460591, -0.06612131, 0.355009824, 0.1406591833, -0.1781972647, 0.0503418036, 0.0754447877, 0.4194712341, 0.1238267869, 0.0369044617, -0.3195021451, -0.0728151947, 0.0247224867, 0.7286324501, -0.3416668177, -0.2831138372, 0.2036885619, -0.0616786629, -0.098144792, 0.1693044901, -0.3445923626, -0.0586955994, 0.1913800538, -0.1259771138, 0.183099404, 0.0787284672, 0.05525814, -0.3375197053, 0.0893758833, -0.0399325341, -0.2428484857, -0.1679299176, -0.2065500915, 0.0221015811, -0.0164530054, -0.1647251248, 0.2443643957, 0.1765641123, 0.3324427605, -0.1891667247, -0.0546174459, -0.0573653392, 0.4379688799, 0.0619031787, 0.0928417966, -0.1567478478, 0.3573677838, 0.0526527166, 0.0333255976, -0.0547467656, 0.1343884468, 0.5898087621, -0.1381361336, -0.0987757444, 0.4499066472, -0.1939735413, -0.1137823984, -0.0809099302, -0.0667268187, 0.1039295122, 0.0040461943, 0.0680110231, -0.1234539151, -0.0436427481, -0.168018356, 0.070593141, 0.2275557518, 0.2849641442, 0.1425679773, 0.0359219015, -0.0949877426, 0.1146102846, -0.1052118242, -0.1035783142, -0.4422336221, 0.2089211941, 0.0312786624, -0.2695365846, 0.0007309653, -0.4664672315, 0.2603231072, 0.3221495152, 0.1330780387, 0.0780861676, 0.0291611478, 0.0404993817, 0.0632193163, 0.0192058999, -0.2066780031, 0.4321274161, 0.1638635844, -0.003215991, 0.1260046661, -0.0943155289, 0.0408444032, 0.1824205071, -0.0683082789, 0.081081517, 0.4733740687, 0.2709380686, 0.0947593004, -0.0473090634, -0.1575172246, 0.060775198, -0.1024567857, -0.1658179164, 0.128069073, -0.6087812781, -0.1715297401, -0.2396760434, -0.5274431109, -0.2216401994, -0.4587309957, -0.1826674789, 0.0086169932, -0.1529061347, 0.1723492444, 0.1213837713, -0.1309143603, 0.1670151055, 0.0995271131, 0.1163859367, 0.1581570804, -0.0811956823, -0.0527281612, -0.1512534618, -0.0578471944, 0.0354971513, -0.088978745, -0.0157373101, -0.3222573996, -0.2392689884, 0.1334003955, -0.2884918153, -0.1630616635, -0.0221156292, -0.0977418572, 0.0435416996, -0.4574148059, 0.3913762271, 0.5567985773, 0.0928269103, 0.2175681293, 0.3165220022, -0.3759055436, -0.2535749078, -0.3681758046, -0.297467947, -0.017892573, 0.1713600308, -0.2565802634, 0.1625858545, 0.5247504711, 0.0695423037, -0.2070611566, 0.2132780552, 0.2021146417, -0.1964457184, -0.1422772259, 0.3517602682, -0.2002479732, 0.0002507125, -0.2620697021, -0.02768787, -0.117492646, 0.2562604845, -0.2546111941, -0.0034958608, 0.0298260916, 0.0769765675, -0.3703234494, 0.0944287479, 0.0625614896, 0.3755557239, -0.1497161686, 0.0357851088, -0.1428722143, 0.0463107154, 0.3056420088, 0.4419404566, -0.1824994385, -0.0159335658, -0.1022933275, -0.035760276, 0.2336682677, -0.0100664757, 0.2705740631, -0.0379702412, 0.2105389833, -0.0199502297, -0.606567204, -0.2009225041, -0.2038237303, 0.1288240701, -0.0388550051, -0.1556238979, 0.2491723746, 0.0688512698, 0.1483344138, 0.0078344569, -0.1901331395, -0.0095136436, -0.1038514078, 0.414233923, -0.0300217979, 0.0054811537, -0.2045529187, 0.2662070096, 0.0557392612, -0.0655133203, 0.1078742072, -0.2636256218, -0.5134298205, -0.2311087847, -0.3840079904, 0.3098147511, 0.1988604665, 0.3706657887, 0.1436105072, 0.0540110469, -0.2669858634, 0.1135596409, 0.7118360996, -0.1150129735, -0.3851937652, 0.4801958501, 0.0020541623, -0.0768465921, -0.3024658561, -0.0549159311, 0.2780226767, 0.1245324463, 0.5626256466, -0.1685637981, -0.1218298227, 0.1117849052, 0.6294493675, -0.1057713181, -0.1756474525, -0.1125020683, -0.0003589764, -0.3241673708, -0.5116012096, -0.210028857, 0.4020390511, -0.3005679548, -0.1428619474, -0.2321524769, -0.3157803416, 0.3009277582, 0.202645272, 0.4664098322, 0.1533277929, 0.2751985788, -0.0724409074, 0.2755638659, 0.301209867, 0.6378160715, 0.1912372112, -0.7376353741, -0.1446772069, -0.0231772698, 0.3582288325, 0.0496110991, -0.2540141344, 0.4031372964, -0.4295674264, 0.3281931281, -0.153159678, 0.1966496706, 0.5844240785, 0.1333207786, -0.5558379889, -0.1940571666, 0.1651819348, 0.1863948554, -0.0991585851, 0.2788521349, -0.4781166315, -0.3841874003, 0.0734135509, -0.1341848969, 0.8999792933, 0.2740627527, -0.1333555877, -0.0925269797, 0.0792018473, 0.2988037765, -0.2731707096, 0.1949476898, -0.0499312356, -0.2394648194, -0.0514804982, 0.0525457263, 0.1468617022, 0.0526655242, -0.7124879956, 0.3619898558, -0.4484539032, 0.0995699614, -0.2969273627, 0.2878986001, 0.3922804296, -0.3144975305, -0.2345914841, 0.0546487942, 0.0462341458, -0.1462474763, -0.0337212011, -0.0758752823, 0.245881021, -0.2128923982, -0.1421933621, 0.2426851392, -0.3409105539, 0.4390047193, -0.0448303521, -0.2151910067, 0.1573587358, 0.0909860134, 0.3253342509, 0.2573349774, 0.0987039059, -0.2113580853, 0.0851863921, 0.0636726841, -0.3257012069, -0.3507934213, 0.1022855416, 0.1928030998, -0.3504642844, 0.1404039562, 0.258725673, 0.0485342667, -0.2336755544, 0.042802088, 0.2895255089, -0.5032479167, 0.2250387818, 0.3453090787, 0.1117797643, -0.1729829311, 0.1053815708, 0.1110712662, -0.0358319059, 0.0005477536, -0.1623958945, -0.1433452964, -0.0809886456, 0.2497193813, 0.3761561513, -0.0039938688, 0.2022249252, -0.0740251094, -0.0276716612, -0.1196450889, -0.0607408583, -0.4044418335, 0.0639665425, 0.091110386, -0.0903158337, 0.0084967762, -0.2556839585, 0.2764190733, 0.0067526526, 0.224126488, -0.0271064118, -0.218006283, -0.1631315947, 0.0002040304, 0.1853839755, 0.1254901588, -0.1021483019, 0.4127795994, -0.170735985, 0.3381388485, -0.2539672256, -0.0881402194, -0.1201724932, 0.1959518194, -0.1684365273, -0.0022603837, -0.1586282849, -0.044955615, 0.196098268, 0.2196850479, 0.0685284287, -0.1981114745, -0.1344370246, 0.1306734234, 0.1136477292, -0.1090046763, -0.1214499474, -0.1655696481, 0.246725291, -0.3233594596, 0.1089996323, 0.1586365551, 0.1293051541, 0.2555962205, 0.0440427028, -0.0326792672, 0.0062530264, 0.073716566, 0.0863089338, 0.2640117705, 0.0799775869, 0.1482904106, -0.2073286921, -0.0573071837, -0.6292611361, -0.1103538126, 0.0366322696, -0.1719389111, 0.1182309538, -0.1929190457, -0.165809691, -0.0592620559, 0.2319020331, 0.6020115018, -0.3985376656, -0.0572808795, 0.1449163705, 0.189797774, -0.2437741458, -0.3710726798, 0.0801535398, 0.201595813, -0.1089890078, 0.2578123212, 0.2650195062, 0.0011207759, 0.0896897614, -0.0691617876, 0.0189591497, 0.2882747352, 0.4360204637, 0.2229436934, 0.0661665499, 0.0573678501, 0.0454016998, 0.1606489271, 0.1576925665, 0.1019939184, 0.0290543269, 0.1478937715, 0.3706716299, 0.0537910871, 0.0660662726, -0.1295982003, 0.094369173, 0.2220945805, -0.3501648903, 0.1290225238, -0.1412716359, 0.0181889404, -0.1675128639, -0.4559594393, -0.0761234015, 0.5514984131, -0.0913946256, -0.2190894037, 0.3085822165, -0.0410496145, -0.1610826254, -0.1548288167, 0.2097724676, -0.0945972502, 0.2522940636, -0.146456331, 0.0588624775, -0.2706634998, 0.0842848718, 0.3438920379, 0.3819181621, -0.3340293765, 0.2084650993, 0.5395168066, 0.0179145895, -0.0434295908, 0.3910599053, 0.6031449437, 0.2915300727, 0.0115459077, 0.048737023, -0.1092316359, -0.0658707991, 0.1837100983, -0.010524217, -0.1284658909, -0.3860162795, 0.3023033738, 0.1048436165, -0.1672862172, 0.1264675856, 0.2400975525, 0.0715403855, -0.4240855873, 0.2296590507, 0.245532766, -0.0862914026, -0.0205458961, -0.12322779, -0.3437091708, -0.3410778642, 0.7281009555, 0.1575154513, 0.1374145895, 0.086666733, 0.1286888123, -0.049246341, 0.5275995731, 0.2656448781, 0.0637388602, -0.2873804569, -0.2236573994, -0.1651125252, 0.0836653411, -0.1968184412, 0.0170672759, 0.2934058011, 0.1322613657, -0.0237308666, 0.203640461, 0.0310451314, -0.1009671241, -0.0647987649, -0.189610377, -0.5950565338, -0.1486582309, 0.0926942155, -0.0080745798, 0.0550474599, -0.0918953717, 0.446224004, -0.1644046605, 0.0500478521, -0.0800514966, 0.1472425163, 0.1145498008, 0.1729749292, 0.6292977929, 0.2540768087, 0.3092814088, -0.1138431802, 0.1047936454, 0.0906455219, -0.3408110738, 0.019552812, 0.2614530921, 0.3153954446, -0.0783051178, -0.2710303664, 0.2042889148, -0.104089573, 0.105680488, 0.4074397683, -0.0661338493, -0.1134402752, 0.1953424513, 0.2116317153, 0.0576639958, -0.0634950474, 0.3801527023, -0.0141824093, 0.5103456378, 0.1568276882, -0.5181287527, 0.4936010838, 0.0660218149, -0.4652314186, -0.1163863391, 0.134999454, 0.1205682158, 0.1267578602, -0.6108977795, -0.241751045, 0.5591219664, -0.0480040126, -0.3332656622, 0.1799203455, 0.0029893517, -0.1483449638, 0.0958364606, 0.2016952187, -0.0232245829, -0.3746018112, 0.1889451593, -0.0530789904 ]
https://github.com/huggingface/datasets/issues/2749
Raise a proper exception when trying to stream a dataset that requires to manually download files
Hi @severo, thanks for reporting. As discussed, datasets requiring manual download should be: - programmatically identifiable - properly handled with more clear error message when trying to load them with streaming In relation with programmatically identifiability, note that for datasets requiring manual download, their builder have a property `manual_download_instructions` which is not None: ```python # Dataset requiring manual download: builder.manual_download_instructions is not None ```
## Describe the bug At least for 'reclor', 'telugu_books', 'turkish_movie_sentiment', 'ubuntu_dialogs_corpus', 'wikihow', trying to `load_dataset` in streaming mode raises a `TypeError` without any detail about why it fails. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("reclor", streaming=True) ``` ## Expected results Ideally: raise a specific exception, something like `ManualDownloadError`. Or at least give the reason in the message, as when we load in normal mode: ```python from datasets import load_dataset dataset = load_dataset("reclor") ``` ``` AssertionError: The dataset reclor with config default requires manual data. Please follow the manual download instructions: to use ReClor you need to download it manually. Please go to its homepage (http://whyu.me/reclor/) fill the google form and you will receive a download link and a password to extract it.Please extract all files in one folder and use the path folder in datasets.load_dataset('reclor', data_dir='path/to/folder/folder_name') . Manual data can be loaded with `datasets.load_dataset(reclor, data_dir='<path/to/manual/data>') ``` ## Actual results ``` TypeError: expected str, bytes or os.PathLike object, not NoneType ``` ## Environment info - `datasets` version: 1.11.0 - Platform: macOS-11.5-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1
64
Raise a proper exception when trying to stream a dataset that requires to manually download files ## Describe the bug At least for 'reclor', 'telugu_books', 'turkish_movie_sentiment', 'ubuntu_dialogs_corpus', 'wikihow', trying to `load_dataset` in streaming mode raises a `TypeError` without any detail about why it fails. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("reclor", streaming=True) ``` ## Expected results Ideally: raise a specific exception, something like `ManualDownloadError`. Or at least give the reason in the message, as when we load in normal mode: ```python from datasets import load_dataset dataset = load_dataset("reclor") ``` ``` AssertionError: The dataset reclor with config default requires manual data. Please follow the manual download instructions: to use ReClor you need to download it manually. Please go to its homepage (http://whyu.me/reclor/) fill the google form and you will receive a download link and a password to extract it.Please extract all files in one folder and use the path folder in datasets.load_dataset('reclor', data_dir='path/to/folder/folder_name') . Manual data can be loaded with `datasets.load_dataset(reclor, data_dir='<path/to/manual/data>') ``` ## Actual results ``` TypeError: expected str, bytes or os.PathLike object, not NoneType ``` ## Environment info - `datasets` version: 1.11.0 - Platform: macOS-11.5-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1 Hi @severo, thanks for reporting. As discussed, datasets requiring manual download should be: - programmatically identifiable - properly handled with more clear error message when trying to load them with streaming In relation with programmatically identifiability, note that for datasets requiring manual download, their builder have a property `manual_download_instructions` which is not None: ```python # Dataset requiring manual download: builder.manual_download_instructions is not None ```
[ -0.2240490168, 0.0735054314, 0.0688554645, 0.14548783, 0.3467076719, 0.0917349011, 0.1795141548, 0.0385216773, 0.1048628092, 0.0732550919, 0.0714532286, 0.2278849632, -0.3061071038, 0.1689810157, -0.0743807703, -0.0853378624, -0.0969870314, 0.1296143234, 0.2995477319, 0.1218052059, -0.1967429817, 0.0373022407, -0.2146412879, 0.0178642906, -0.0018435493, -0.1568495482, 0.2580467463, 0.2388845682, -0.1288104653, -0.390295893, 0.3372134566, 0.0121843573, 0.4855323136, 0.5165207386, -0.0001199634, 0.0070319101, 0.3886608183, -0.1586248279, -0.5747519732, -0.1283355504, -0.4686382115, -0.0777675956, 0.0901655778, -0.069813557, 0.1049860939, -0.1720956266, 0.1623415649, -0.3645293713, 0.2047699392, 0.4541603327, 0.1066824496, 0.2829995155, 0.2462423444, 0.163706705, 0.1327375323, 0.3512682319, -0.0302184783, 0.3713258207, 0.0608688444, 0.1510272771, 0.16060251, 0.1628776491, -0.1228827238, 0.0393841006, 0.1880537868, -0.1661043018, -0.229585439, -0.4277885556, -0.1103252023, 0.4421195388, 0.5148938894, -0.3407016993, -0.460952878, -0.3798700869, 0.045885399, -0.1476801634, 0.1311263591, 0.4878357649, -0.4216932356, 0.3501260579, -0.0883332789, -0.3158323765, -0.3065254092, 0.2305599153, 0.0059051886, -0.1519113332, 0.0557584353, 0.0611202531, -0.0835497305, 0.1057097018, 0.2180746496, -0.3093450069, -0.0396561734, 0.0888881758, -0.2046969831, -0.0041705146, -0.0657841563, -0.041494526, 0.1965884417, 0.0238624401, 0.3733998537, 0.0567335933, -0.1529817283, 0.2431638986, 0.1901954412, 0.0264552981, 0.0991014689, 0.1258838773, 0.481172204, 0.395164609, 0.1332435608, -0.1177558154, -0.0253073275, 0.0886069238, 0.3152236342, 0.204871431, 0.4681083858, -0.1049638614, -0.4039192796, 0.0096666068, -0.6102746725, 0.1056832373, -0.0229068287, 0.164135918, -0.1616204828, 0.2007366717, 0.21628654, 0.3693434, -0.001165092, -0.2878365219, -0.0102986116, -0.0643672645, 0.1261959225, 0.0260481387, 0.1795367748, -0.5311356783, 0.0900710821, 0.0939425975, -0.3286800981, -0.0527601317, 0.3502981961, -0.0545801669, -0.1592953205, 0.3757533431, 0.1402717531, 0.0273193046, 0.1152361631, -0.1576332003, -0.0164345056, 0.2604483366, -0.0598956868, -0.531606555, 0.1063530147, 0.1647611707, -0.0167462528, -0.0777093023, -0.5121466517, 0.0411835909, 0.0013844669, -0.3260014653, -0.0188464373, -0.1534198672, 0.3346795738, -0.2917096615, 0.0453908965, 0.5106768608, -0.3724921346, 0.0134212002, -0.448105514, -0.2220883369, 0.7759041786, 0.1512129009, -0.2369720936, 0.2332102507, -0.3799981177, 0.0408189446, 0.4848951399, -0.0353457592, -0.3184098005, 0.4427754283, 0.0254460275, 0.4210852981, 0.1377783418, 0.2182540447, -0.0400384963, -0.1267599165, -0.026164595, 0.5302295089, -0.2185991853, 0.0431414098, -0.2089988142, -0.3620254695, 0.2253882289, 0.2703533173, 0.0270372238, 0.2280392349, 0.3364054859, 0.014122922, 0.2515026033, -0.1984636188, -0.1834652424, -0.0087441374, 0.4122571349, -0.0866533071, -0.2348508537, -0.1183792651, -0.3734785616, 0.2647877932, 0.0439620987, 0.0354766734, -0.2135417759, -0.326212585, -0.1027309671, 0.0139824077, -0.2305372804, 0.0171955451, 0.036064662, 0.3708554208, -0.3016512096, 0.1690957844, -0.1053365245, 0.4814932644, -0.5749639869, 0.2593651712, -0.1490310133, 0.1025912166, 0.0344824865, -0.1005370915, -0.1384557933, -0.3296217322, 0.0505898111, -0.0311502814, -0.2466444373, 0.4579783976, 0.249920547, 0.341388613, -0.2688513994, -0.0825613886, 0.0779670924, -0.197545141, -0.2278679609, 0.5077197552, 0.1895119101, -0.0363307148, -0.0994236469, 0.21321854, 0.2448492348, 0.1440677941, 0.0862255394, 0.2130609155, 0.1893787384, 0.2060937881, -0.1933788061, 0.0910155922, 0.1567733288, -0.123911269, -0.0441934094, -0.2678850889, -0.7136911154, -0.2057199031, 0.06487149, 0.0464330316, 0.482967943, 0.3096092343, -0.1382142603, 0.0907324851, 0.2525391877, 0.316916585, 0.4295145869, 0.0733745545, 0.1160975993, 0.0864406079, 0.1807475984, -0.2610622346, 0.2543885112, 0.2185360193, -0.2846083641, 0.1634677351, 0.1206294894, 0.1041525453, -0.2988964021, -0.1633277833, -0.051693473, 0.1894503683, -0.5312812328, 0.0377004072, 0.037642993, -0.1813217998, -0.3296356201, -0.3708742559, -0.1727309376, -0.1337380707, -0.1167205349, 0.38975811, -0.1965971291, 0.2070074975, -0.0349067487, 0.2335082293, -0.0607419163, -0.449978292, -0.0715342686, 0.2172196954, -0.2908614874, -0.0184100103, 0.3773888946, -0.1365686059, 0.4272457659, -0.2955586016, 0.0621295124, -0.3178843856, -0.1042979062, -0.0536003597, 0.2045687139, 0.2286832482, 0.304153651, 0.4670442939, 0.3198857605, -0.3050569594, 0.0509366766, -0.0395633802, -0.0034176521, 0.1977664977, -0.0418909863, 0.3320866227, -0.1186346412, -0.2866612971, -0.4388063848, -0.4254131913, -0.0446365476, -0.0688898638, 0.1023059562, 0.3437130153, 0.1085462943, 0.1080607995, 0.2089249939, 0.1163055152, 0.0747018009, -0.1723256707, 0.2136212289, 0.0754040778, -0.1863211989, 0.0957170576, -0.0790750682, -0.1870464236, 0.6288800836, -0.4854283333, -0.0773329586, -0.216000095, 0.0934362635, -0.131448701, -0.1630551815, 0.1723695248, 0.0485099144, 0.0638699532, 0.0521181971, -0.0092216507, -0.1064654514, 0.1419490129, 0.3870233893, 0.1204736084, 0.4440131485, -0.0056695193, 0.4280273914, 0.1485654712, 0.027910227, 0.555419445, 0.0379507691, 0.2381646037, 0.1094087362, -0.1581961513, -0.0390724614, -0.0468432009, -0.2562385499, 0.0713286996, -0.0349688306, -0.3694889843, -0.2737473547, -0.1336815804, -0.3286111057, -0.3432630897, 0.1962980181, -0.090945527, 0.330988735, 0.0070276633, 0.121930331, 0.0049295425, -0.1368204057, -0.089677535, 0.5962138176, 0.2017940879, 0.1043580323, 0.1359163523, -0.0845658556, -0.2823643684, 0.3272706866, 0.1492862105, 0.6370369196, -0.0328639522, -0.1540554464, -0.0561946109, 0.158977896, 0.133515507, -0.4564898908, 0.0867491812, -0.1212902963, 0.3060756326, -0.3691347241, -0.0652156472, -0.2730304599, 0.2272701263, 0.2525943816, 0.1201701015, -0.3754134178, 0.1627914011, -0.1078449264, 0.1752261668, 0.0209250972, -0.2673687339, -0.2003456652, -0.2474561334, -0.2632331252, 0.0795572922, 0.0657881498, 0.0128564388, -0.1496168822, -0.1036021337, -0.2790408432, 0.2156240344, 0.2718074322, -0.0223997496, 0.2523843348, -0.0458870642, -0.0103791058, 0.0428168438, 0.0614274964, 0.4101088047, 0.5562983751, -0.0217057206, -0.6266164184, -0.0508677214, 0.0560513996, 0.0753828436, 0.3416002393, -0.2250462621, -0.00108115, 0.2516183257, -0.0133129023, -0.0711944029, 0.4304779768, 0.2217741758, -0.1622160524, -0.5013068914, -0.7254968286, 0.1947617233, 0.0292815641, -0.0819611549, 0.384681195, -0.0087302849, -0.4788636267, 0.2372296751, -0.1070181727, 0.9966682196, 0.1952312291, 0.0946690142, 0.2934131026, -0.3080471754, 0.2921260595, -0.2087791562, 0.0780223608, -0.1851159334, -0.0435304008, -0.2048893869, -0.1267678738, 0.2761893272, -0.1122847572, -0.3511958718, 0.3305287361, -0.3107742071, 0.2130018324, 0.2617630959, 0.3083791137, -0.5707208514, -0.2149680853, -0.3299859464, 0.0228233375, -0.2422359586, 0.2241694778, -0.0468314625, -0.1632677317, 0.1981515437, -0.2673221231, -0.3233048618, 0.0179477409, -0.4678998888, -0.0139512056, -0.3990940452, -0.3702670932, 0.3562409282, 0.4006221294, 0.0616329238, 0.0464913622, -0.2373077124, 0.098461628, -0.0071980972, 0.1846892685, 0.217057392, -0.0641305894, 0.2954816818, 0.0699851513, -0.06357041, 0.1846471727, -0.2823320329, -0.1665862501, -0.0062388629, -0.1703843325, 0.1936400533, -0.1883357167, -0.1869478524, -0.3215478957, -0.1350561976, -0.0895297527, 0.079892084, -0.0824367255, -0.0284023397, 0.1765926182, -0.1195742637, -0.1898986101, -0.2120893151, 0.3894799352, -0.103336513, 0.2676965594, 0.4218553901, -0.0047930256, -0.0913326666, -0.1607123613, 0.2487595826, -0.0593639202, -0.2879115939, -0.0581787974, -0.1485290527, 0.1245778352, -0.0560326986, 0.1912636459, 0.2498514354, -0.1431521922, -0.1989723444, -0.53329283, -0.2473438084, -0.0458372645, 0.1644611508, 0.2406932116, -0.102132082, 0.0534519516, 0.0385987759, -0.3022890985, -0.2069283277, 0.0686586127, -0.0765220448, -0.0498196632, -0.0294954758, 0.3428830802, 0.4114544392, -0.1261541545, 0.0110749602, 0.0795663744, -0.0242401809, -0.0527443364, -0.0257126428, 0.2072198093, 0.0961389244, -0.0974364132, -0.0560554415, -0.406709522, -0.0844239742, -0.0434158444, 0.0589240044, -0.0078554302, -0.1694693714, 0.147772193, 0.16352579, 0.335544467, -0.404620856, 0.2251183242, -0.4388322234, 0.1751462668, 0.0661599338, 0.1257623732, 0.0047379956, -0.0282682925, 0.0239322819, 0.0112661626, 0.3392135799, 0.1978638917, 0.2448913455, -0.4220341742, 0.0937912613, 0.0007045865, 0.3157902956, 0.4360062778, -0.3139348328, -0.0677891374, 0.1305147409, 0.1659674942, -0.1721853316, 0.085087657, 0.0192722082, -0.0723216683, -0.0239332244, 0.2342981994, -0.010534212, -0.0923529118, -0.3512098491, 0.1030641496, 0.4362008274, 0.2195509076, 0.1078602299, 0.3562317193, -0.0963428915, 0.107260704, -0.1042820066, 0.1574420482, 0.1261450052, 0.0263395347, -0.2918270826, 0.0915237069, 0.0716545507, -0.0933474377, -0.0582972653, -0.5852044821, 0.0327854194, 0.4007573128, -0.1421840787, 0.0789684877, 0.2735989392, 0.3897938728, -0.3853031695, -0.0443265177, -0.313819468, -0.3281126618, -0.0007674415, 0.2605975568, -0.1108105779, -0.1875742227, 0.0702334642, -0.211680755, 0.0564197339, 0.0578411296, -0.2524813414, 0.0885445625, -0.0331497863, -0.544657588, -0.1316632926, 0.2515082359, 0.2410061359, -0.4297246337, -0.0410515964, 0.2998056114, -0.0518039465, 0.1709400117, 0.1605732888, 0.4806588292, 0.2976825535, -0.0374789983, 0.1335157305, -0.0354834311, 0.0498828441, 0.0439476073, 0.0491814762, 0.089128539, 0.1928109527, 0.2950774729, 0.1464642435, -0.1442900151, 0.1522219181, -0.091177687, 0.0842920095, -0.4881496429, 0.3297734559, -0.1628801823, 0.037109822, -0.2197922766, -0.2133106142, -0.109503068, 0.0350302123, 0.4889467657, 0.0746522248, 0.0925179571, 0.0753412694, 0.0058634691, -0.0019576512, 0.2779944539, 0.4232470095, 0.0432397239, -0.2326323539, -0.1502411216, -0.6847052574, 0.0838003084, -0.0381995961, -0.1071625352, 0.2841879129, 0.0338021964, -0.0358227082, 0.2476684451, -0.1277784258, 0.3261436522, -0.2290100455, 0.240330711, -0.1857779026, -0.5727882385, 0.0407369807, -0.1749350578, -0.2027565241, -0.4563084841, 0.2727908194, -0.2935861349, 0.0265792161, -0.0100463955, 0.0213191733, 0.2098410577, 0.2045657784, 0.5075956583, 0.103740178, 0.3434556723, -0.0579451583, -0.3387697339, 0.1108121276, -0.0523349643, -0.212210536, 0.0282862894, -0.1680828333, 0.5850577354, -0.1310550869, 0.107902728, -0.5024101138, 0.4316817224, 0.222895503, -0.1745651662, -0.4910794795, 0.1436589956, -0.2482077032, 0.1482340991, -0.0705924854, 0.0483024828, -0.016117001, 0.144530654, -0.2441428304, -0.4462406933, 0.5733366013, -0.1650535911, -0.0774964616, 0.062134143, 0.2239472419, 0.0654137433, 0.1732178926, -0.4505606592, 0.1712159961, 0.3813617229, -0.2176901102, -0.0624275878, -0.0639496595, -0.0404645167, 0.3741625845, 0.0852381065, 0.094498232, -0.0947523341, -0.1604731679, 0.1903833598, -0.1142487153 ]
https://github.com/huggingface/datasets/issues/2746
Cannot load `few-nerd` dataset
Hi @Mehrad0711, I'm afraid there is no "canonical" Hugging Face dataset named "few-nerd". There are 2 kinds of datasets hosted at the Hugging Face Hub: - canonical datasets (their identifier contains no slash "/"): we, the Hugging Face team, supervise their implementation and we make sure they work correctly by means of our test suite - community datasets (their identifier contains a slash "/", where before the slash it is the username or the organization name): those datasets are uploaded to the Hub by the community, and we, the Hugging Face team, do not supervise them; it is the responsibility of the user/organization implementing them properly if they want them to be used by other users. In this specific case, there is no "canonical" dataset named "few-nerd". On the other hand, there are two "community" datasets named "few-nerd": - ["nbroad/few-nerd"](https://huggingface.co/datasets/nbroad/few-nerd) - ["dfki-nlp/few-nerd"](https://huggingface.co/datasets/dfki-nlp/few-nerd) If they were properly implemented, you should be able to load them this way: ```python # "nbroad/few-nerd" community dataset ds = load_dataset("nbroad/few-nerd", "supervised") # "dfki-nlp/few-nerd" community dataset ds = load_dataset("dfki-nlp/few-nerd", "supervised") ``` However, they are not correctly implemented and both of them give errors: - "nbroad/few-nerd": ``` TypeError: expected str, bytes or os.PathLike object, not dict ``` - "dfki-nlp/few-nerd": ``` ConnectionError: Couldn't reach https://cloud.tsinghua.edu.cn/f/09265750ae6340429827/?dl=1 ``` You could try to contact their users/organizations to inform them about their bugs and ask them if they are planning to fix them. Alternatively you could try to implement your own script for this dataset.
## Describe the bug Cannot load `few-nerd` dataset. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset('few-nerd', 'supervised') ``` ## Actual results Executing above code will give the following error: ``` Using the latest cached version of the module from /Users/Mehrad/.cache/huggingface/modules/datasets_modules/datasets/few-nerd/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53 (last modified on Wed Jun 2 11:34:25 2021) since it couldn't be found locally at /Users/Mehrad/Documents/GitHub/genienlp/few-nerd/few-nerd.py, or remotely (FileNotFoundError). Downloading and preparing dataset few_nerd/supervised (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /Users/Mehrad/.cache/huggingface/datasets/few_nerd/supervised/0.0.0/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53... Traceback (most recent call last): File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/datasets/builder.py", line 693, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/datasets/builder.py", line 1107, in _prepare_split disable=bool(logging.get_verbosity() == logging.NOTSET), File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__ for obj in iterable: File "/Users/Mehrad/.cache/huggingface/modules/datasets_modules/datasets/few-nerd/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53/few-nerd.py", line 196, in _generate_examples with open(filepath, encoding="utf-8") as f: FileNotFoundError: [Errno 2] No such file or directory: '/Users/Mehrad/.cache/huggingface/datasets/downloads/supervised/train.json' ``` The bug is probably in identifying and downloading the dataset. If I download the json splits directly from [link](https://github.com/nbroad1881/few-nerd/tree/main/uncompressed) and put them under the downloads directory, they will be processed into arrow format correctly. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Python version: 3.8 - PyArrow version: 1.0.1
242
Cannot load `few-nerd` dataset ## Describe the bug Cannot load `few-nerd` dataset. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset('few-nerd', 'supervised') ``` ## Actual results Executing above code will give the following error: ``` Using the latest cached version of the module from /Users/Mehrad/.cache/huggingface/modules/datasets_modules/datasets/few-nerd/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53 (last modified on Wed Jun 2 11:34:25 2021) since it couldn't be found locally at /Users/Mehrad/Documents/GitHub/genienlp/few-nerd/few-nerd.py, or remotely (FileNotFoundError). Downloading and preparing dataset few_nerd/supervised (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /Users/Mehrad/.cache/huggingface/datasets/few_nerd/supervised/0.0.0/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53... Traceback (most recent call last): File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/datasets/builder.py", line 693, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/datasets/builder.py", line 1107, in _prepare_split disable=bool(logging.get_verbosity() == logging.NOTSET), File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__ for obj in iterable: File "/Users/Mehrad/.cache/huggingface/modules/datasets_modules/datasets/few-nerd/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53/few-nerd.py", line 196, in _generate_examples with open(filepath, encoding="utf-8") as f: FileNotFoundError: [Errno 2] No such file or directory: '/Users/Mehrad/.cache/huggingface/datasets/downloads/supervised/train.json' ``` The bug is probably in identifying and downloading the dataset. If I download the json splits directly from [link](https://github.com/nbroad1881/few-nerd/tree/main/uncompressed) and put them under the downloads directory, they will be processed into arrow format correctly. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Python version: 3.8 - PyArrow version: 1.0.1 Hi @Mehrad0711, I'm afraid there is no "canonical" Hugging Face dataset named "few-nerd". There are 2 kinds of datasets hosted at the Hugging Face Hub: - canonical datasets (their identifier contains no slash "/"): we, the Hugging Face team, supervise their implementation and we make sure they work correctly by means of our test suite - community datasets (their identifier contains a slash "/", where before the slash it is the username or the organization name): those datasets are uploaded to the Hub by the community, and we, the Hugging Face team, do not supervise them; it is the responsibility of the user/organization implementing them properly if they want them to be used by other users. In this specific case, there is no "canonical" dataset named "few-nerd". On the other hand, there are two "community" datasets named "few-nerd": - ["nbroad/few-nerd"](https://huggingface.co/datasets/nbroad/few-nerd) - ["dfki-nlp/few-nerd"](https://huggingface.co/datasets/dfki-nlp/few-nerd) If they were properly implemented, you should be able to load them this way: ```python # "nbroad/few-nerd" community dataset ds = load_dataset("nbroad/few-nerd", "supervised") # "dfki-nlp/few-nerd" community dataset ds = load_dataset("dfki-nlp/few-nerd", "supervised") ``` However, they are not correctly implemented and both of them give errors: - "nbroad/few-nerd": ``` TypeError: expected str, bytes or os.PathLike object, not dict ``` - "dfki-nlp/few-nerd": ``` ConnectionError: Couldn't reach https://cloud.tsinghua.edu.cn/f/09265750ae6340429827/?dl=1 ``` You could try to contact their users/organizations to inform them about their bugs and ask them if they are planning to fix them. Alternatively you could try to implement your own script for this dataset.
[ -0.3042268753, -0.0985628963, 0.0078414939, 0.5131357908, 0.3285458386, -0.0576421171, 0.520152092, 0.2553007603, 0.1991575062, 0.1681089699, -0.46047768, -0.0910486281, -0.2877757549, -0.297074616, 0.4347798228, 0.0320020542, -0.0251882374, -0.0349554755, 0.1119612157, 0.0084387138, -0.2257290632, 0.2362408489, -0.2453142554, 0.0727763772, -0.4190005958, -0.0549567491, 0.0889209509, 0.489274323, -0.0719760507, -0.6296029687, 0.4604728818, 0.0143894907, 0.2181515247, 0.4235019684, -0.0001091994, 0.1441852599, 0.4189928174, -0.0192658231, -0.2884246707, -0.3601107001, 0.0940837264, -0.5144338012, 0.1233333424, -0.2608025074, -0.4063476324, 0.0236186758, 0.1217369437, -0.2709338367, 0.4901700318, 0.4886859953, 0.2884907424, 0.1309140772, -0.0160082877, -0.3164570034, 0.4296731949, 0.0675482154, -0.1612948775, 0.2777445018, 0.3432970643, -0.004307013, -0.0363363028, 0.0306211896, -0.0457588658, -0.123116985, 0.3901320994, 0.0024615228, -0.1256728321, -0.2125999928, 0.1296325922, 0.4381467402, 0.206450969, -0.2134830207, -0.2328182757, -0.1929795444, 0.073877804, -0.1819788516, 0.1654340625, 0.0319194943, -0.1912623048, 0.0741785467, -0.0262066238, -0.0630680919, -0.172261849, 0.1423975527, -0.1104405448, 0.1547159255, -0.1506495774, 0.0314562991, -0.1483331025, -0.0989769846, -0.2203025818, 0.1539322585, -0.0331300087, 0.2842569053, -0.3529803455, 0.1692644209, 0.0968754962, 0.3016740978, 0.24641487, 0.3468010128, -0.0859936029, -0.0112308096, -0.0313663632, 0.1054863185, 0.0539566353, 0.1550132632, 0.3106102347, 0.1709686518, 0.2803746462, 0.4544361532, -0.0940066651, 0.024950359, -0.2067868859, -0.165355593, 0.04439722, 0.0359356701, 0.327930212, -0.2339401543, -0.4098483324, 0.1534148753, 0.2209212184, 0.0887861401, 0.2583985925, 0.4830324948, -0.2361513823, -0.0013513239, -0.0064407736, 0.0255306624, -0.1511354744, -0.1756568998, -0.3392073214, 0.1940044761, -0.080814302, 0.0127040893, 0.3254746795, -0.1232192218, 0.3092909455, -0.1528526247, -0.0015989523, -0.1232203096, -0.1105270982, -0.1869747788, -0.0999147147, 0.2051267922, -0.0700344369, 0.0878423378, 0.1172281504, -0.3199291229, -0.2411323786, -0.1124534905, -0.1270281971, -0.3474445939, -0.0937901586, 0.2281979173, -0.2979827523, 0.1321427822, -0.067105636, 0.0436786041, 0.0764679834, -0.2537538111, -0.1240771487, -0.1402085125, -0.4273740649, -0.3767175674, 0.6006535292, 0.6969178915, -0.2007525414, -0.1508892775, -0.5498255491, -0.3447907269, 0.1059872657, 0.3750486076, -0.2740003467, 0.1505952477, -0.2850110233, 0.3159661293, 0.3138707578, -0.4321830869, -0.4340071678, 0.2631570995, -0.2292087972, 0.4060312212, -0.0842327923, 0.0858280361, 0.1212188378, -0.109252654, 0.3998245299, 0.477701962, 0.0203810167, -0.1821044683, -0.258133769, -0.1423349977, 0.106236659, 0.1785901785, 0.2633875012, 0.0787665546, 0.1548193693, 0.0659917444, 0.2326671928, 0.2080253065, 0.0624010712, 0.1595211029, 0.2724163234, 0.2057397366, 0.0333993696, -0.4820544124, -0.6707292199, 0.4395002127, -0.1612327397, -0.0476554483, -0.1690657735, -0.1581424177, -0.4199803472, 0.0298834145, -0.0987406522, -0.2591834068, 0.1797643453, 0.2151271105, 0.2117390633, 0.0778774917, -0.2501817048, 0.514994204, 0.0565139577, 0.062997058, -0.3822928965, 0.1305711269, -0.1241281405, -0.1103750765, -0.1185650378, 0.3505544364, 0.2312972248, -0.1851249039, 0.067620039, 0.5000377893, 0.00443599, -0.1740284264, -0.0906504989, -0.4309686422, 0.0396165177, -0.1043562368, 0.1348260045, 0.2153393179, 0.1075614244, -0.0511243194, 0.1082193553, 0.3727985024, 0.0354977846, 0.2296621203, 0.0288257599, -0.0013955049, 0.1831604242, 0.0764852166, 0.1574745178, -0.2301816642, 0.489282608, 0.2627514303, 0.1726311445, 0.2077911198, -0.2014015913, -0.0117079392, 0.0858465284, -0.0487290546, 0.0544363149, 0.2945664823, -0.151048854, -0.0472729392, 0.0568788722, 0.3697469831, 0.3691948056, 0.1709935516, -0.0261737891, 0.0965144336, -0.0314380936, -0.0691686794, 0.1280417442, 0.0516598411, 0.0810707361, 0.2116552293, 0.0695572942, 0.1970311403, -0.2670098543, -0.2561359406, -0.0517688319, 0.3250853717, -0.3932223916, 0.1741221547, -0.2071428299, -0.1251390278, -0.0495264977, 0.0053797066, -0.4605349302, -0.076957427, 0.0503373519, 0.1106791794, 0.2267703414, 0.1833499074, -0.1267201304, 0.1852057874, -0.3189342618, 0.057020545, -0.2792576849, 0.000334058, -0.3292351961, 0.0763942227, 0.3980512023, -0.0389907211, 0.3228536248, -0.2194558978, -0.2569384873, -0.1921411604, -0.0463259891, -0.1839064062, 0.0817926228, 0.6579143405, 0.1881101876, 0.2480804622, -0.0574073717, -0.1280138791, 0.3673249781, -0.3022800386, -0.1845696867, 0.0297331661, -0.1068389267, 0.0871498436, -0.1282040477, -0.3432552814, -0.6057451367, -0.4530196786, 0.309641093, 0.148750037, 0.1859294623, 0.367600292, -0.116364345, 0.0920390785, -0.0485569015, 0.2006088346, -0.1484299153, -0.2746386528, 0.2829445302, -0.4200582504, -0.3737150431, -0.1102968976, 0.0587632805, 0.0354794748, 0.082550481, -0.4535487294, 0.3604625463, -0.1324112266, 0.0797713995, -0.1327620596, -0.0603403151, 0.068646729, -0.1221246421, -0.0532963388, 0.0417379513, -0.1169571131, 0.0133845471, -0.2853542566, 0.0561636984, -0.06364806, 0.3072239161, -0.0019497275, 0.4964495301, 0.0580832511, -0.1058208719, 0.2891735435, -0.0874313414, 0.4604645669, -0.1876945794, -0.4373459816, 0.225943476, 0.0792099237, 0.1021000743, 0.1729524136, 0.0360883586, -0.0474607535, -0.1986847073, -0.1381455362, -0.1718090773, -0.196109578, 0.1420131624, -0.1423953027, -0.0142822564, 0.0818399563, 0.0758621469, -0.1404201239, -0.2760425508, -0.137360543, 0.2724562287, 0.1131136119, 0.151174441, -0.3932619095, 0.1020022929, -0.3729320467, 0.3129014373, 0.0480134711, 0.2415391654, -0.1663655043, -0.0114004388, 0.1493563354, -0.0688034669, 0.5504936576, -0.1515314281, 0.25418064, 0.3367012739, 0.1286226362, -0.7504611611, -0.0662803054, 0.0233677626, 0.3294960558, 0.2464182526, 0.4543982744, -0.2505265772, -0.1369052529, 0.2337846756, 0.295922935, -0.1432937831, -0.2281202972, -0.2188385874, -0.1805832684, -0.2202905118, -0.1829200685, -0.018292807, 0.269656688, -0.0675441399, -0.0292056277, -0.1527410299, 0.1380228847, 0.1742382199, -0.1038870662, 0.3798682392, -0.0627668202, 0.3176010251, 0.164120093, 0.1555968821, 0.089645043, 0.3713909388, -0.1347896308, -0.1864740849, -0.0433625244, 0.3078993261, -0.0182065144, 0.2944723666, -0.1834385842, 0.055939436, 0.2339204699, 0.0878410637, -0.008850392, 0.1489186734, 0.1992048174, -0.1655573994, -0.1703935564, -0.3570539355, 0.4624354541, 0.1836013496, 0.1630530506, 0.0863772035, 0.146956563, -0.1434806287, 0.0609283261, -0.0672202855, 0.8010357022, -0.1922802776, 0.2192890793, 0.0859914124, -0.017742604, 0.7876715064, -0.2983108163, 0.0326749124, -0.4788469672, -0.1975045204, 0.0700773001, -0.0545482039, 0.0387885794, 0.144895941, -0.0947467759, 0.1931797117, -0.2254084647, -0.1533670872, -0.0042768791, 0.1144787893, 0.0007143188, -0.1973513216, -0.1570111364, 0.1364555955, -0.199041158, 0.2564727664, -0.0531493723, 0.1679497957, -0.1742462814, -0.1574967504, -0.3562296927, 0.099263072, -0.2688147128, 0.4265548587, 0.3584540784, -0.4234370589, 0.0714092553, 0.2643077075, 0.0898209065, 0.1571879983, -0.1224652454, 0.2339868397, -0.0381047279, -0.139868021, 0.1586800367, 0.0800118744, 0.4458075166, -0.048082035, -0.2589704692, -0.0948805511, -0.1892416179, -0.1625118852, 0.0411387682, 0.1250684112, -0.0068888757, -0.1418987066, -0.2220695913, -0.1977451444, 0.2485520542, -0.2718151808, 0.1637999415, 0.3282659352, -0.2938078642, -0.0524130873, -0.0341583565, -0.1917768568, 0.0028740102, 0.4908806384, 0.0114553366, -0.0632134527, 0.2723680735, 0.2820208967, -0.1826475561, -0.190658316, -0.0402477384, 0.3351082504, -0.4386783838, 0.0629254878, 0.0017516874, 0.1089850962, -0.0831964239, 0.0866383165, 0.1854894608, -0.3316168487, -0.0497147776, -0.5123912096, -0.4241814315, 0.0617068335, -0.1854267865, 0.0927665904, 0.1852403283, -0.0904906914, -0.0750619322, 0.1424361765, -0.3271410465, 0.1679147035, -0.4357073009, 0.0970705897, 0.086701408, -0.0913311169, 0.0261144452, 0.0056105107, 0.2133779228, 0.1586075276, -0.1716592312, -0.2343905717, -0.2015677989, 0.1274098307, -0.1638602018, 0.0023351535, 0.0150646679, 0.0391614288, -0.1514983177, -0.2010215968, 0.1095063388, 0.1515682936, 0.0297771245, -0.0893435925, -0.1283659339, 0.079405427, -0.2303032875, 0.280792594, -0.0297162347, 0.085075058, 0.0738383234, 0.180520609, -0.0865612775, -0.0737273991, -0.2952453792, -0.0313281827, -0.0808860809, 0.1275687963, 0.2736897469, -0.2907218933, -0.1748829186, 0.2719100714, 0.2462237179, 0.3950812221, -0.1202237383, 0.1272371113, 0.2753770649, 0.1972283721, -0.3205422163, -0.158511728, 0.2482055426, -0.1605395377, 0.0703759193, 0.2588651776, -0.0053537339, -0.1616196036, 0.041674953, 0.109561272, 0.3554962277, -0.1286273003, 0.1150353253, -0.1055822819, -0.0038981959, -0.1538096219, 0.0662343577, 0.0418539383, 0.2328315377, 0.7362142205, -0.1257959604, 0.1040985584, -0.4056335092, 0.1632436067, -0.0487118438, -0.6907131672, 0.1636542529, 0.3751073778, -0.2004183084, 0.0376646444, -0.2002520561, 0.4359373748, -0.4588371515, -0.0304426514, -0.1829073429, 0.1219528839, -0.2052730024, -0.0144396126, 0.1458819062, -0.1242275387, -0.2728485465, -0.0481208228, -0.0287609845, -0.1988633573, 0.3789032102, 0.10701105, -0.2630304396, -0.2015579641, 0.1357069016, 0.1699094474, 0.2180935442, -0.3574670553, 0.2478872389, -0.077987209, -0.08207836, 0.1299029887, 0.173570931, 0.5013979077, 0.2809214294, 0.0707980394, 0.2174232602, 0.0229813606, -0.1285044551, -0.2220833004, 0.250004977, 0.0155391656, 0.3395389318, 0.2071844935, 0.1622639745, -0.1437852085, -0.0835736096, 0.1611062139, 0.2301979065, -0.22403723, 0.502264142, -0.3898711801, -0.2849795818, -0.2181778848, 0.1364949346, -0.5349043608, 0.0649264082, 0.0866797268, 0.1992291808, 0.2909306884, -0.2516127825, 0.1108488739, -0.045929879, 0.3562534153, 0.1658024341, 0.0648052171, -0.2455942929, -0.247718215, -0.7577752471, 0.2465138584, -0.0787995607, -0.081640631, 0.187253952, 0.1978061199, -0.2379467487, -0.0519825779, -0.0008514002, 0.0256339163, 0.360219568, 0.1129861474, -0.3824448586, -0.1387332231, 0.0782745034, -0.0492960066, 0.0544913337, -0.3725678921, 0.1263584942, -0.507992208, 0.0351008624, 0.0988068879, -0.1641855538, 0.1969136298, 0.0705331862, 0.4982847869, -0.0376920365, 0.3045739532, 0.0173746496, -0.1567620635, -0.6732808352, -0.0673639774, -0.1394057125, 0.3545389771, 0.1344243586, 0.3404389024, -0.2917600572, -0.0594924502, -0.2812419236, 0.2554526031, 0.1445995867, 0.0735233724, -0.007847961, 0.0126822665, -0.1204615161, 0.1674371064, 0.2154096961, 0.083481878, -0.0127498358, -0.0437046364, -0.3620733619, -0.4809338748, 0.7215988636, -0.0405092016, -0.1685137451, -0.2162559628, 0.4100281596, 0.161339581, -0.2120656967, -0.3983772695, 0.1647352725, 0.5024667382, 0.1383818239, -0.2245299518, 0.0906322896, -0.2353203893, -0.0083675236, -0.0951790139, 0.0395049676, -0.0266620554, -0.1184294075, 0.3332895339, -0.1559797376 ]
https://github.com/huggingface/datasets/issues/2743
Dataset JSON is incorrect
As discussed, the metadata JSON files must be regenerated because the keys were nor properly generated and they will not be read by the builder: > Indeed there is some problem/bug while reading the datasets_info.json file: there is a mismatch with the config.name keys in the file... In the meanwhile, in order to be able to use the datasets_info.json file content, you can create the builder without passing the name : ``` In [25]: builder = datasets.load_dataset_builder("journalists_questions") In [26]: builder.info.splits Out[26]: {'train': SplitInfo(name='train', num_bytes=342296, num_examples=10077, dataset_name='journalists_questions')} ``` After regenerating the metadata JSON file for this dataset, I get the right key: ``` {"plain_text": {"description": "The journalists_questions corpus ( ```
## Describe the bug The JSON file generated for https://github.com/huggingface/datasets/blob/573f3d35081cee239d1b962878206e9abe6cde91/datasets/journalists_questions/journalists_questions.py is https://github.com/huggingface/datasets/blob/573f3d35081cee239d1b962878206e9abe6cde91/datasets/journalists_questions/dataset_infos.json. The only config should be `plain_text`, but the first key in the JSON is `journalists_questions` (the dataset id) instead. ```json { "journalists_questions": { "description": "The journalists_questions corpus (version 1.0) is a collection of 10K human-written Arabic\ntweets manually labeled for question identification over Arabic tweets posted by journalists.\n", ... ``` ## Steps to reproduce the bug Look at the files. ## Expected results The first key should be `plain_text`: ```json { "plain_text": { "description": "The journalists_questions corpus (version 1.0) is a collection of 10K human-written Arabic\ntweets manually labeled for question identification over Arabic tweets posted by journalists.\n", ... ``` ## Actual results ```json { "journalists_questions": { "description": "The journalists_questions corpus (version 1.0) is a collection of 10K human-written Arabic\ntweets manually labeled for question identification over Arabic tweets posted by journalists.\n", ... ```
109
Dataset JSON is incorrect ## Describe the bug The JSON file generated for https://github.com/huggingface/datasets/blob/573f3d35081cee239d1b962878206e9abe6cde91/datasets/journalists_questions/journalists_questions.py is https://github.com/huggingface/datasets/blob/573f3d35081cee239d1b962878206e9abe6cde91/datasets/journalists_questions/dataset_infos.json. The only config should be `plain_text`, but the first key in the JSON is `journalists_questions` (the dataset id) instead. ```json { "journalists_questions": { "description": "The journalists_questions corpus (version 1.0) is a collection of 10K human-written Arabic\ntweets manually labeled for question identification over Arabic tweets posted by journalists.\n", ... ``` ## Steps to reproduce the bug Look at the files. ## Expected results The first key should be `plain_text`: ```json { "plain_text": { "description": "The journalists_questions corpus (version 1.0) is a collection of 10K human-written Arabic\ntweets manually labeled for question identification over Arabic tweets posted by journalists.\n", ... ``` ## Actual results ```json { "journalists_questions": { "description": "The journalists_questions corpus (version 1.0) is a collection of 10K human-written Arabic\ntweets manually labeled for question identification over Arabic tweets posted by journalists.\n", ... ``` As discussed, the metadata JSON files must be regenerated because the keys were nor properly generated and they will not be read by the builder: > Indeed there is some problem/bug while reading the datasets_info.json file: there is a mismatch with the config.name keys in the file... In the meanwhile, in order to be able to use the datasets_info.json file content, you can create the builder without passing the name : ``` In [25]: builder = datasets.load_dataset_builder("journalists_questions") In [26]: builder.info.splits Out[26]: {'train': SplitInfo(name='train', num_bytes=342296, num_examples=10077, dataset_name='journalists_questions')} ``` After regenerating the metadata JSON file for this dataset, I get the right key: ``` {"plain_text": {"description": "The journalists_questions corpus ( ```
[ 0.1457876712, 0.0401425511, -0.0529891998, 0.4768225253, 0.1063417643, 0.2229724824, 0.1550249457, 0.3400089145, -0.2390943319, 0.0082265735, 0.0357938111, 0.4321311116, 0.0995689481, 0.1382744312, -0.0019156188, -0.190864265, 0.0582645312, -0.0400951095, 0.0514684618, 0.0135785192, -0.22605367, 0.4534673691, -0.0086117387, -0.003544692, -0.2412652373, -0.0820140466, -0.0630135089, 0.1975130439, -0.1947796643, -0.298623085, 0.2238186002, -0.0007780613, -0.299243629, 0.407923311, -0.000105777, 0.1115243435, 0.3177172542, -0.05469184, -0.2763530314, -0.3126667738, -0.1179975718, -0.1995796859, -0.1801231056, -0.3108088374, -0.224488914, -0.4072844088, -0.0359191485, -0.1976813078, 0.4339143038, 0.2254714221, 0.2889286876, 0.0939774066, 0.3655748069, 0.0138634183, 0.12348333, 0.3481937647, -0.0990859568, 0.1498705298, -0.0261067152, 0.242870599, 0.0618627593, 0.5340322852, 0.0121384412, -0.1359426975, 0.3161495924, -0.0881338716, -0.1343106627, -0.2345808148, 0.3665961325, 0.2039395273, 0.5051332116, -0.3382625878, -0.2950498164, -0.3582286537, -0.0540362969, 0.0441971943, 0.3174577355, 0.1573789716, -0.0850032866, 0.2246193886, -0.1565226465, -0.1283191592, -0.0585853793, 0.1186570525, 0.0848705471, 0.1772662997, -0.1670171171, 0.1165411994, -0.1810569465, -0.2725030184, -0.0729671419, -0.3031311631, -0.2434515953, 0.1057294756, -0.1498845816, -0.1740514636, 0.1840364337, -0.1226229817, 0.3561204672, 0.0199345648, -0.0834137946, 0.0302596316, -0.1282666624, 0.0784091204, 0.294154942, 0.0664669871, 0.2865287364, 0.1005913466, 0.0432851128, 0.3054367304, -0.095747076, -0.0153025389, 0.2361122817, -0.2029715627, -0.0158881322, -0.0455247946, 0.3907974064, -0.1099098101, -0.1303402781, 0.3161219358, -0.3122200668, -0.1377913505, -0.0887382925, 0.3365528584, -0.1041639149, -0.1737520546, 0.0579556823, 0.1500874162, -0.0759791657, -0.1040370017, -0.2383496761, -0.0655816793, -0.0106331185, 0.0740003213, 0.0487977192, -0.3156561852, 0.5672347546, 0.1093739867, -0.0547512583, -0.407150805, 0.0890465379, 0.0703376532, 0.0181152001, 0.2034140825, -0.1953356862, 0.2121663988, 0.0029759924, -0.2547076941, -0.1380572915, 0.0224881023, -0.3547000289, -0.2375631034, -0.1867228746, 0.2677463889, -0.0865123272, 0.1017250419, -0.1889077127, 0.2865264416, 0.2674297094, -0.026644133, 0.0112006329, 0.1325135976, 0.0306420475, -0.2472921908, 0.1174984425, 0.3622021675, -0.2075218856, -0.1408250332, 0.1055185944, 0.1386902034, -0.0218917392, 0.0166032501, -0.1378027499, 0.2620953619, -0.2063103914, 0.1565946788, -0.0173677281, -0.3505877852, -0.243255347, 0.239206925, 0.0047562569, 0.2748708725, 0.1912214458, -0.051798705, -0.0962358341, 0.1135011464, 0.3098189235, 0.0791996196, 0.1609461755, 0.2221570015, -0.2047824264, -0.4019452631, -0.088618733, 0.095118545, -0.1413317472, 0.0513565019, 0.1474853754, -0.0433721356, 0.3624108732, -0.0345608667, 0.0621009544, 0.370737344, -0.0492515191, -0.0897910744, 0.2745544314, -0.0244211294, -0.5704756975, 0.1188768744, 0.0124508813, 0.2495317012, -0.2598681152, -0.2070997655, -0.3331192136, -0.1166165695, -0.3170587122, -0.2710926533, 0.2438492328, 0.1982490122, 0.0582688972, -0.0029129386, -0.1119040772, -0.0682865679, 0.1345846057, 0.1485813558, -0.8418689966, 0.0498395413, -0.2129894495, 0.0804180503, 0.2350144982, 0.132093817, 0.1785341054, -0.1546061188, -0.0937623009, 0.3380415142, 0.04302283, 0.2134328336, -0.0276993047, 0.2834200263, 0.1190686673, -0.1272163689, 0.0026943814, 0.3282432258, 0.0061991885, -0.0770041347, -0.1966425031, 0.5660509467, 0.155625999, 0.1487798393, -0.111355111, -0.0827235654, 0.329103291, 0.0196898431, -0.1956841201, -0.3322224617, 0.1007925421, -0.0287544299, 0.0456186086, 0.0467656106, -0.3251130879, 0.1408965141, 0.6347138286, 0.0261398926, 0.0073847044, 0.0732501894, -0.2073470652, -0.0869322121, 0.0815155357, 0.2034510374, 0.3029955626, 0.2047734261, -0.2401100397, 0.1650705487, 0.1505336314, -0.2791339457, 0.2635057569, -0.0394192711, 0.1640025079, 0.26113832, 0.2849473357, -0.0638877153, -0.3041079044, 0.1152421683, -0.0372747704, 0.1826791912, -0.3774655163, 0.22385481, -0.1475858092, -0.122984685, -0.2147876918, -0.2431913018, -0.326970309, -0.23432827, 0.1149377972, -0.0334601626, -0.2041687965, 0.1390652061, 0.281051904, 0.0298617631, -0.0279995874, -0.019329844, -0.4172317982, -0.20086357, -0.1176668853, 0.050974112, 0.1550174952, -0.1096063629, 0.2130260617, -0.3792505264, -0.145881936, -0.3154362738, -0.4999271035, 0.2528181672, -0.1550461054, 0.5203309655, 0.208125785, 0.2512637973, -0.017576091, -0.2799649537, 0.3669069707, 0.2514348626, -0.3487674892, 0.1275804043, -0.1383170485, -0.0640733019, -0.0629764348, -0.4735094905, -0.1007249132, -0.2338859439, 0.3656719327, 0.1424446404, 0.2632218897, 0.6181699038, 0.0286194049, -0.1326429844, -0.3063795567, 0.4378254116, -0.3224538565, -0.6928201914, 0.145853132, -0.2717382312, -0.3099216819, -0.0869625062, 0.1160568744, 0.20112212, -0.3413429558, -0.5350948572, -0.220045656, -0.0060970578, 0.1768634915, 0.001152016, 0.2191348523, 0.110788554, 0.101479426, -0.0868369937, -0.25851053, -0.3038444817, 0.0307268035, -0.0461488739, 0.4130179286, -0.0031144395, 0.2360232472, -0.0675426275, 0.280798018, 0.4191532731, -0.1038318723, 0.1003280431, -0.1449594051, 0.1923128068, -0.2088392675, -0.309252739, 0.1237520799, 0.0046162978, 0.0678474605, 0.3873577714, 0.1494340897, 0.0962556079, -0.1694512665, -0.0993091613, -0.6170863509, -0.3313489556, -0.0105508221, 0.0282101035, 0.0156983826, 0.2296837717, 0.1860484928, -0.1981260031, -0.0875742286, 0.167774722, 0.35744977, 0.0115138553, 0.0506596193, -0.3571623862, -0.2085382342, -0.3496343195, 0.2500418425, -0.1260146946, 0.0738840103, -0.0058295131, 0.1490650624, 0.0586058311, -0.1595756114, 0.6097590327, -0.1528535336, 0.1568207443, 0.0101712346, 0.2056987286, -0.0279193819, -0.0460853651, 0.0388493165, 0.4127783477, 0.1679825485, 0.7363843322, -0.4434216022, -0.1499174386, 0.1074351072, 0.0399350189, -0.2290534675, -0.3228268623, -0.2562302351, -0.4385030568, -0.3784903884, -0.2462126762, -0.1504314989, 0.3239048123, 0.1287076175, -0.1380187869, 0.2028115094, 0.147905305, -0.0279020108, 0.325407505, 0.2495110929, 0.1507765651, 0.2005641013, 0.0883947387, 0.3398103416, 0.4530974925, 0.6804465652, 0.1602420062, -0.3058863878, -0.185425058, -0.1778450906, -0.0007923916, 0.1976076365, -0.1164814606, 0.1874600798, 0.2400572002, 0.1372126043, -0.1013554484, -0.2747014165, 0.3978067338, 0.0894652307, -0.303907454, -0.3379630744, 0.4962549806, -0.1628100872, -0.0984533429, -0.0544000491, 0.181011796, -0.3893882334, 0.4970279038, -0.0196784027, 0.9072644711, 0.1717192978, -0.0363114625, 0.1672074497, -0.2376788706, 0.6262364984, -0.2435286641, 0.0277066715, -0.4359316528, -0.0159374774, 0.0963887349, 0.00227689, 0.1277959049, 0.2750012279, -0.1994231343, 0.1043997183, -0.1537531763, 0.0744257718, -0.2134493887, 0.1527737826, -0.1339101195, -0.1001508534, -0.6485551, 0.2162668407, -0.1340775788, 0.2843233645, -0.0337458551, -0.1659708321, -0.1597032845, -0.356629312, -0.2164779007, 0.0275525376, -0.2082719505, -0.1144604683, 0.4093919396, -0.126309827, 0.0895674899, -0.002325437, 0.4025224149, 0.2011942714, -0.237610206, 0.1958992183, 0.026019156, -0.0614311509, 0.1079356074, 0.0391660742, 0.3096682727, -0.076910235, -0.1865866482, -0.0448817722, -0.1477649063, -0.1405670345, -0.1647745073, -0.1890878528, -0.3345378637, -0.2339898348, -0.137770623, -0.0966911763, 0.0218705162, -0.3250769377, 0.2027549893, 0.0051449835, -0.2541187704, 0.0921356529, -0.0458560586, -0.1987370253, -0.0721430182, 0.3532043397, 0.20084925, 0.021638751, 0.3913572431, 0.3041114807, -0.119347468, -0.2121893167, 0.1043157354, 0.30700472, -0.3281638026, 0.0105467699, 0.0983091369, 0.0214076191, -0.0797629729, 0.3965919018, 0.2284852266, 0.0951255709, 0.1138254255, -0.5196157098, -0.1872860491, 0.2986899614, 0.1129782498, -0.0171125885, 0.145682171, 0.0790130422, -0.1356931925, 0.2035490125, -0.4075134099, -0.0666662753, -0.1816498339, 0.1701081395, 0.1603740752, 0.0799803287, 0.1320691556, -0.0601365753, 0.1869912148, -0.0830252469, -0.2394558787, -0.2734747827, -0.1484695673, 0.1039514467, 0.0708251595, -0.0348593481, -0.0737835839, -0.20200032, -0.1209962964, -0.0504708588, 0.1953821629, 0.0575228482, 0.1782271564, 0.2218275368, -0.144247368, 0.041896984, 0.0315931961, -0.1338861287, 0.1066338196, 0.2410722077, -0.071584709, 0.1054516584, -0.4267307222, 0.0500708073, -0.0783989727, 0.2025317848, -0.1733059883, 0.4281406403, 0.3976962864, -0.3567115068, 0.0561245382, 0.3893373609, 0.3376658559, 0.3005211353, -0.2515504956, 0.1534407139, -0.023508586, 0.2705777287, -0.3498671651, -0.2758150697, 0.206414789, -0.1185996979, 0.0424190015, 0.023266878, 0.0984015465, 0.1095156074, -0.2196791917, 0.0223612674, 0.4810908437, -0.1223141402, 0.0450240746, 0.3552247286, -0.0936719328, 0.0441395938, 0.4439204335, 0.2615418434, 0.121950075, 0.3352991939, -0.030363515, 0.2382006645, 0.2425152957, 0.1473097056, -0.0039468482, -0.1024480313, 0.4072240889, 0.3074489832, 0.0694723576, 0.0872904137, 0.1084564626, 0.2912020683, -0.0150109474, -0.06786789, -0.2059285343, 0.1513764262, -0.0357833132, -0.2045347244, -0.453946352, -0.2694565952, -0.0761117041, -0.1581045538, -0.3115894496, -0.2052866071, 0.0853335261, -0.1223782748, -0.2242931873, -0.3759257197, -0.0284938067, -0.0337758288, 0.304554671, -0.2974301577, 0.4509520829, 0.2333950251, -0.1500899792, 0.1736547947, 0.4973620176, 0.4691582918, 0.1394219249, 0.1619140804, 0.0425575599, -0.1611882597, -0.177474007, -0.0831259713, 0.3151034713, 0.2066234797, -0.3417831957, 0.2389537096, 0.1919293404, -0.2252562046, -0.0630818009, 0.365188688, 0.212438792, -0.0102098212, -0.1332976669, -0.5007306933, -0.1973345876, -0.0978455842, -0.1543736756, -0.4194018841, -0.2621981204, 0.3703799248, 0.1630394608, 0.263790369, -0.1100212336, 0.1605486125, -0.0822906941, 0.4584311843, 0.2943879962, -0.1319662333, -0.1145553887, -0.1008971632, -0.3746996522, 0.1558762193, 0.1484062076, -0.0309013836, 0.0663363487, 0.1782248914, 0.198801145, 0.0045793587, -0.0795110911, 0.0059813261, 0.0064125881, 0.2736480832, -0.2959450483, -0.1168022603, 0.0176426619, 0.0351330265, 0.0999380797, -0.024299033, 0.2786881328, -0.0703230947, 0.0238397866, -0.2231593281, 0.169950828, 0.151352644, -0.1464560628, 0.1923554987, 0.0987249315, 0.1606474817, -0.2993289828, -0.3821371794, -0.177274555, -0.2946633399, -0.2435608953, 0.4900180399, 0.0125850532, 0.52374506, 0.1454434991, -0.0820451081, -0.1965848953, 0.0187696554, -0.0781193227, -0.3165511489, -0.4513061643, 0.217318207, -0.1105308682, 0.0250767544, 0.0282211043, 0.3956525326, -0.0075392742, 0.2020116299, -0.2545999587, -0.4512333274, 0.5660298467, -0.3079726994, -0.1830759197, 0.1965762675, 0.1448821723, -0.1755113751, -0.3089015186, -0.4869860113, 0.2062940449, 0.3145411611, -0.1656986177, -0.079758361, 0.0009096116, -0.2106133997, 0.0502117872, 0.0037507713, 0.0310064498, 0.2694348991, -0.2553670406, 0.0571247786, -0.097485669 ]
https://github.com/huggingface/datasets/issues/2742
Improve detection of streamable file types
maybe we should rather attempt to download a `Range` from the server and see if it works?
**Is your feature request related to a problem? Please describe.** ```python from datasets import load_dataset_builder from datasets.utils.streaming_download_manager import StreamingDownloadManager builder = load_dataset_builder("journalists_questions", name="plain_text") builder._split_generators(StreamingDownloadManager(base_path=builder.base_path)) ``` raises ``` NotImplementedError: Extraction protocol for file at https://drive.google.com/uc?export=download&id=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U is not implemented yet ``` But the file at https://drive.google.com/uc?export=download&id=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U is a text file and it can be streamed: ```bash curl --header "Range: bytes=0-100" -L https://drive.google.com/uc\?export\=download\&id\=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U 506938088174940160 yes 1 302221719412830209 yes 1 289761704907268096 yes 1 513820885032378369 yes % ``` Yet, it's wrongly categorized as a file type that cannot be streamed because the test is currently based on 1. the presence of a file extension at the end of the URL (here: no extension), and 2. the inclusion of this extension in a list of supported formats. **Describe the solution you'd like** In the case of an URL (instead of a local path), ask for the MIME type, and decide on that value? Note that it would not work in that case, because the value of `content_type` is `text/html; charset=UTF-8`. **Describe alternatives you've considered** Add a variable in the dataset script to set the data format by hand.
17
Improve detection of streamable file types **Is your feature request related to a problem? Please describe.** ```python from datasets import load_dataset_builder from datasets.utils.streaming_download_manager import StreamingDownloadManager builder = load_dataset_builder("journalists_questions", name="plain_text") builder._split_generators(StreamingDownloadManager(base_path=builder.base_path)) ``` raises ``` NotImplementedError: Extraction protocol for file at https://drive.google.com/uc?export=download&id=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U is not implemented yet ``` But the file at https://drive.google.com/uc?export=download&id=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U is a text file and it can be streamed: ```bash curl --header "Range: bytes=0-100" -L https://drive.google.com/uc\?export\=download\&id\=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U 506938088174940160 yes 1 302221719412830209 yes 1 289761704907268096 yes 1 513820885032378369 yes % ``` Yet, it's wrongly categorized as a file type that cannot be streamed because the test is currently based on 1. the presence of a file extension at the end of the URL (here: no extension), and 2. the inclusion of this extension in a list of supported formats. **Describe the solution you'd like** In the case of an URL (instead of a local path), ask for the MIME type, and decide on that value? Note that it would not work in that case, because the value of `content_type` is `text/html; charset=UTF-8`. **Describe alternatives you've considered** Add a variable in the dataset script to set the data format by hand. maybe we should rather attempt to download a `Range` from the server and see if it works?
[ -0.4683198631, -0.0467547476, -0.0979573205, 0.1375527829, 0.166396156, -0.2239751816, 0.1926614046, 0.4674959779, 0.0628534108, 0.2362468243, -0.0067694224, -0.0470783524, -0.4149927199, 0.2554932833, 0.0666616485, -0.1503153145, 0.0009771101, 0.0538057946, 0.2009107471, 0.054002516, -0.2041478753, -0.0604097024, -0.0322795138, -0.3867233098, 0.1372652948, 0.1212852299, 0.1237366423, -0.1005213857, -0.5439124703, -0.4741576612, -0.0997939557, 0.3655940592, 0.3324326575, 0.4450815916, -0.0001090667, -0.1867185682, 0.3261324167, -0.2225365639, -0.354129523, -0.3582728505, -0.3125937283, -0.0820247754, 0.1180795729, -0.0586487502, -0.0832975805, -0.0529168174, 0.0051999949, -0.432071358, 0.2591349781, 0.4835056365, 0.1480432302, 0.225872606, -0.0629006028, 0.3467931747, 0.3124317825, 0.3924539685, -0.1639556885, 0.0028929263, 0.2594113946, 0.1911758035, -0.0581253618, 0.1383453906, -0.16981861, 0.1033103168, -0.0566329099, 0.0279626772, -0.2206063718, -0.5073228478, -0.0161743704, 0.5063699484, 0.4199709892, 0.0651925206, -0.4760583043, -0.2841736674, 0.1523336917, 0.00030642, 0.2511096895, 0.1182076409, -0.3653723598, 0.1618281007, -0.3606190085, -0.0820074826, -0.2226944119, 0.1248637512, -0.1203311458, 0.2459638268, -0.0434022695, -0.0680062771, 0.0655301362, 0.1497654766, 0.4056752324, -0.24798657, 0.3087382913, 0.0348309129, -0.0393292047, -0.2037240267, -0.1606530398, 0.0232136752, 0.1399276555, 0.2566771507, 0.3086076677, 0.2102730572, -0.1491984427, 0.2135016024, 0.0305547789, -0.0383744016, -0.0746155083, -0.0697007179, 0.2174675167, 0.5407653451, -0.0032599643, -0.0687254816, -0.0720641762, -0.063111499, 0.1853893697, 0.122377336, 0.4066695571, -0.091587998, -0.34267506, -0.1505706608, -0.3363801539, -0.2536005676, 0.1648761928, 0.2561691701, -0.1719849408, 0.4266875386, -0.0319468491, 0.3137052655, 0.0381049961, -0.2230690122, 0.1180703491, 0.0657034814, 0.2028968632, -0.0114824343, 0.3926183581, -0.2817878127, -0.2386941016, -0.0895162672, -0.020391684, 0.0704175979, 0.1470766366, -0.0729338229, 0.4420577884, -0.0253236368, -0.135964036, -0.0063475668, 0.0284748599, -0.1936660707, -0.2635314167, 0.0223022681, -0.2017051578, -0.0364398584, 0.0798288137, 0.2122866213, -0.196270898, -0.1137212738, -0.2630352378, 0.3361703157, -0.3221485615, 0.0124915168, 0.0336134136, -0.0683284253, -0.041918017, -0.0847014934, 0.2602456808, 0.5462822318, -0.0980606079, -0.0433494821, -0.2405213118, -0.1707350165, 0.5798387527, -0.043797154, -0.0083250962, -0.0659562796, -0.1838844717, 0.1395739317, 0.4809132814, -0.1480773389, -0.1279192269, 0.429548353, -0.0217102021, 0.4528397322, 0.6081660986, -0.1676055938, 0.2023660243, -0.1279570162, -0.0170407519, 0.5179784894, -0.1611836106, -0.0107256249, -0.3075851798, -0.3225668967, 0.2332600355, 0.1089287549, 0.2063652277, 0.1164506674, 0.3067207932, -0.1911922842, 0.1745193303, -0.1807515174, 0.0947830752, -0.2880556285, 0.5135550499, -0.1454494596, -0.1516350955, -0.2969724238, -0.223525241, -0.034531191, -0.0053608194, 0.1067874879, -0.5588930845, -0.3448260427, -0.1206655204, -0.104622215, -0.1249414086, 0.0593875907, 0.1944293082, 0.2214224339, -0.2366073579, 0.0891406685, -0.2099662721, -0.000020612, -0.1156356633, 0.1792642921, 0.109158121, 0.2531506419, 0.1588609815, 0.0651157349, 0.4046082497, -0.0879114643, 0.2208454311, -0.0490315706, -0.2288406491, 0.1611862779, 0.1499029547, 0.4502604902, 0.1342958808, 0.1967621893, 0.3344067931, -0.2108053565, -0.199112609, 0.5702887774, 0.1838453412, 0.1385806948, -0.1338568777, 0.2535957694, 0.0726741403, 0.0099194348, 0.2294879407, -0.0721123964, 0.1688818038, 0.0099144131, -0.1288587749, -0.2819776237, 0.1058610082, -0.0125204595, -0.153863728, 0.0313939825, -0.1393786073, 0.0554553047, 0.3448433578, -0.1956208646, 0.0726768821, 0.3713408411, -0.0236743577, -0.2375595868, 0.059879303, 0.481107682, 0.2880631089, 0.0595037341, 0.3818357587, -0.1275042146, 0.1442789137, -0.2373070419, 0.2923408151, 0.0002401918, -0.2734445632, 0.1132256985, 0.0885428488, -0.0658792257, -0.3768078685, 0.0178050473, -0.0038294569, -0.036552377, -0.4186422229, 0.0290678665, -0.5251243711, -0.0360288881, -0.2480198443, -0.1389539242, -0.0589398667, -0.1279435456, 0.2919635475, 0.2840204239, -0.1698156893, -0.0176666491, -0.2772931457, 0.4388018548, 0.0414904356, -0.2065510005, -0.0967263132, 0.128821522, 0.0043226536, 0.1860980839, 0.6305445433, 0.1073828191, 0.4484097064, -0.3081638813, 0.0962824821, -0.6249536872, -0.2172111273, 0.0335562527, 0.0587059818, 0.4059967995, 0.0810815841, 0.2308992893, 0.1287959963, -0.3905827105, -0.0668748245, -0.154099822, -0.0005741641, 0.2530427575, -0.018212378, 0.0828402787, -0.1011622101, -0.6140941381, -0.193451941, -0.3065447807, 0.1677134335, 0.0852087364, 0.1408642828, 0.0646377504, -0.0652585104, -0.11104168, 0.0727032349, 0.2945082188, -0.012677379, -0.3376013637, 0.4186657965, -0.1411739886, -0.2259037495, 0.0813957304, -0.0794177949, -0.1551602185, 0.7107822299, -0.0593884662, -0.1276242733, -0.0179898012, -0.0429531336, 0.162835747, -0.2291650623, 0.1578845084, 0.0400512442, -0.0961629078, -0.1579541266, 0.4025488496, -0.1899677515, 0.154559657, 0.3249194622, 0.1847123802, 0.0663637593, 0.1059690267, 0.2219646126, -0.0338329412, -0.068734847, 0.6299161315, 0.103663519, -0.0545412935, 0.1048766971, 0.015189603, 0.3104052842, -0.2058424056, -0.1948581338, 0.3442343771, 0.1803891063, -0.1539153308, -0.3076989055, 0.2331072092, -0.4765741229, -0.1373844445, 0.3630082011, 0.1020592451, 0.372404933, 0.0023021698, 0.0761032775, 0.1107171625, -0.2261271775, 0.1746575087, 0.5635547638, 0.4419562817, -0.082979016, -0.1235204339, 0.0987973735, -0.3718416095, 0.3634102941, 0.3945049644, 0.1895542443, -0.1086298078, -0.1734787226, 0.1140321791, 0.0420813747, -0.0726903826, -0.6443427205, -0.2066243142, -0.1155283302, 0.2094793618, 0.1931020021, -0.0305149034, -0.3284292817, -0.1226561144, -0.0249668621, 0.1300155222, -0.2844114304, -0.0322235525, -0.0306346491, 0.2318107486, 0.1423318982, -0.050939139, -0.1179796308, -0.111474514, -0.2214978039, -0.0873977169, 0.1017468646, -0.0670055747, -0.5361406803, -0.2599618137, -0.0246622171, 0.2275419831, 0.4380740821, 0.2345820516, 0.1742514819, -0.100744158, 0.0362850204, -0.0122566307, 0.19753699, 0.4364739954, 0.3614238799, 0.0574342981, -0.4678519666, 0.0148502439, -0.0764243901, -0.0380593278, 0.2395372391, -0.2061873078, 0.348346591, 0.4832249582, 0.3337837756, -0.4939826429, 0.1397076994, 0.4016365409, -0.2434222102, -0.4077295661, -0.777046442, 0.3561585546, -0.0597180575, -0.0468619168, 0.256331414, -0.017339997, -0.2218230963, 0.0859865695, 0.1644853801, 0.9456916451, 0.0091848653, -0.2788422704, 0.1633626521, -0.4143885076, 0.0345200859, -0.3965309262, -0.0209678262, 0.0810821205, -0.122476235, -0.3990935683, -0.0608598739, 0.457885474, 0.066406928, -0.5342297554, 0.0528475866, -0.0131359845, 0.2774661779, 0.1687207669, 0.4378344417, -0.6074436903, -0.0628860593, -0.3596731424, 0.1476643085, -0.1431393474, 0.1227680743, 0.0936428159, -0.1085799038, 0.0897909254, -0.0838834494, -0.209004879, -0.1965208203, -0.4427069724, -0.0325448327, -0.2860934734, -0.5322916508, 0.2656704783, 0.0808724836, 0.0613879263, -0.1452042758, -0.2330869138, 0.2294156998, -0.0309785493, 0.2384590656, 0.0420841612, -0.3452259302, 0.4673248231, -0.1069623083, -0.023437798, 0.0204799306, 0.0964672118, -0.2299921811, 0.2641569972, -0.2156567127, 0.2669359446, -0.1431197375, -0.1373486221, -0.4070113003, -0.2420140356, -0.1871685684, 0.1247341186, -0.0711025447, -0.0758289248, -0.0959940255, 0.2370157242, -0.1377304196, -0.234247908, 0.1525320411, -0.0162387304, -0.0108402893, 0.1060642824, -0.101411663, -0.3778633475, -0.3085155189, 0.0213307589, -0.0295633823, -0.0453516096, -0.0875551403, 0.156172365, 0.0267273486, -0.1257250458, 0.2406297922, -0.1747753024, 0.100392133, -0.2013083994, -0.3780127764, 0.0562124997, 0.0438467115, -0.3011308312, 0.1458930075, -0.1954987645, -0.0969645828, 0.2290513217, -0.1336570978, -0.3066675961, -0.0459632762, 0.0295866951, -0.0294145979, -0.1491419673, 0.2581753731, 0.2873901427, -0.1312531531, 0.1169520393, 0.0374178402, -0.1622755527, -0.1400841177, -0.1339201927, 0.1999059021, 0.1338274777, -0.1215900257, -0.0150665417, 0.0449643731, -0.1110612899, -0.1542441249, -0.0489553548, 0.0220855922, -0.0585148968, -0.0492315181, -0.0165112969, -0.2595726252, -0.3069773614, -0.0104221124, -0.2838961184, 0.4272767603, 0.1495510787, 0.0115609253, -0.0213056244, 0.0180671662, -0.0427937023, 0.2023464739, 0.2898602486, 0.2096710801, 0.3697498441, 0.0967877358, -0.0352621712, 0.0552360266, 0.1889384538, 0.4606348872, -0.0955194905, -0.0238527209, 0.2567822337, 0.2021660209, -0.0994021297, 0.2095021158, -0.1095349044, -0.3000877798, 0.1835597605, 0.1834964454, 0.2072507441, -0.1195418313, -0.0104237683, 0.0224417597, 0.0373197757, -0.0289175138, 0.4075636566, 0.3415364027, 0.1775428951, 0.2778354287, -0.1512511522, -0.3581096232, -0.0371348523, -0.2271774411, -0.2344062626, 0.4020753801, -0.0602519736, 0.2089106739, 0.0475344472, -0.1020173505, -0.0308526065, 0.0145245418, -0.2661495507, 0.5484505296, 0.4545841515, 0.5620856881, -0.2000777423, 0.0056184642, -0.2480081022, -0.0244377013, 0.1375589371, 0.0045952015, -0.1206165105, -0.2380753756, -0.4402793944, 0.0100139156, 0.1284764409, 0.0774769187, -0.1824947447, 0.4470052421, 0.1195330918, -0.1271872073, -0.0981835574, -0.215685308, 0.5371822119, -0.4945755005, -0.0089923572, 0.2984815538, 0.151882112, 0.464001447, 0.0631291047, 0.2702628374, 0.2201010734, -0.1132468134, -0.0647802427, -0.0853087455, -0.1017663181, 0.0401635692, 0.1459960938, 0.153742969, 0.1427911222, 0.3194054663, 0.2111825645, -0.0777763352, 0.2214152813, -0.0933596715, -0.2038182169, -0.3882758319, 0.1006375253, 0.114758715, 0.2198565602, -0.3925487399, -0.4492162466, -0.2825177312, 0.1275817752, 0.0402087644, -0.0920497254, 0.1196237803, 0.0007096045, 0.0661055595, 0.2404974401, -0.0128432903, 0.0600629374, 0.068969205, -0.0999469161, -0.2770581841, -0.7179278731, -0.2123481035, 0.0953015685, -0.0521785766, -0.0723293796, -0.0959769338, -0.0011961907, 0.3992810845, -0.0945914388, -0.0438441634, 0.2593011856, 0.2674333453, -0.2682596743, -0.3017503023, 0.2872591317, 0.1833756417, -0.422642827, -0.3086619675, 0.2992699146, -0.1995315552, 0.0748501122, 0.0298301242, 0.0061795339, -0.0273453258, -0.0671393946, 0.4175611734, 0.2814015746, 0.526030302, -0.3578935564, -0.0784127191, -0.0858025998, 0.1832465678, -0.0490066148, 0.0498792306, -0.077749081, 0.6659361124, 0.2426900715, -0.0229001194, -0.2919481695, 0.5941692591, -0.0465596355, -0.1776711643, -0.4388506711, -0.0921092704, -0.1107232198, 0.0922901332, 0.1754115224, -0.0133874826, -0.0666916743, -0.2000310719, -0.1337880343, -0.450107187, 0.2498961091, -0.3008939326, -0.2121911943, -0.0282351337, 0.1491995752, 0.1342178136, 0.4660349786, -0.5997120142, 0.0461442471, 0.2094110101, -0.2047266066, 0.3059098721, 0.1697490811, 0.2519084215, 0.0730282962, -0.1379058063, 0.0984832495, 0.0926521868, 0.0084117055, -0.02979137, -0.2104874402 ]
https://github.com/huggingface/datasets/issues/2737
SacreBLEU update
Hi @devrimcavusoglu, I tried your code with latest version of `datasets`and `sacrebleu==1.5.1` and it's running fine after changing one small thing: ``` sacrebleu = datasets.load_metric('sacrebleu') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = [["It is a guide to action that ensures that the military will forever heed Party commands"]] # double brackets here should do the work results = sacrebleu.compute(predictions=predictions, references=references) print(results) output: {'score': 41.180376356915765, 'counts': [11, 8, 6, 4], 'totals': [18, 17, 16, 15], 'precisions': [61.111111111111114, 47.05882352941177, 37.5, 26.666666666666668], 'bp': 1.0, 'sys_len': 18, 'ref_len': 16} ```
With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error. AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER' this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0` ## Steps to reproduce the bug ```python sacrebleu= datasets.load_metric('sacrebleu') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = sacrebleu.compute(predictions=predictions, references=references) print(results) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: Python 3.8.0 - PyArrow version: 5.0.0
101
SacreBLEU update With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error. AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER' this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0` ## Steps to reproduce the bug ```python sacrebleu= datasets.load_metric('sacrebleu') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = sacrebleu.compute(predictions=predictions, references=references) print(results) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: Python 3.8.0 - PyArrow version: 5.0.0 Hi @devrimcavusoglu, I tried your code with latest version of `datasets`and `sacrebleu==1.5.1` and it's running fine after changing one small thing: ``` sacrebleu = datasets.load_metric('sacrebleu') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = [["It is a guide to action that ensures that the military will forever heed Party commands"]] # double brackets here should do the work results = sacrebleu.compute(predictions=predictions, references=references) print(results) output: {'score': 41.180376356915765, 'counts': [11, 8, 6, 4], 'totals': [18, 17, 16, 15], 'precisions': [61.111111111111114, 47.05882352941177, 37.5, 26.666666666666668], 'bp': 1.0, 'sys_len': 18, 'ref_len': 16} ```
[ -0.3851112723, 0.1802151352, -0.0012568831, -0.0679100454, 0.5497626662, -0.2189846635, 0.0627021343, 0.3480108082, -0.2101945877, 0.1243231371, 0.0086565763, 0.3338843882, -0.0440220162, -0.0246401131, -0.1152010858, -0.0089817932, 0.1046470255, 0.059853822, 0.34362638, 0.0075873956, -0.3184525669, 0.1174136847, -0.1806855798, -0.0027260333, -0.2734518051, 0.0927981958, -0.0575443134, -0.0664325356, -0.465316236, -0.7149302363, 0.1731106341, 0.0709629059, -0.0604934692, 0.443331331, -0.000109066, -0.1288365126, 0.2636284232, -0.2208129764, -0.4332729876, -0.4529218674, -0.1555380523, -0.2812545598, 0.0101912953, -0.1026846692, -0.0918702036, -0.3785420656, -0.0429839566, -0.002167426, 0.2421519011, 0.3916677535, 0.2563031316, 0.278876096, 0.0878586024, -0.3278108835, -0.0474797413, 0.0717539638, -0.0416629054, 0.2062651217, -0.1564477384, 0.0919187069, 0.0697540939, 0.1396525353, -0.2196808457, 0.1190991849, 0.025157053, -0.0775795206, -0.1114929467, -0.0601763502, 0.1122960374, -0.0477882959, 0.3497333527, -0.4587011635, -0.3827284575, 0.1970100701, 0.0173574388, -0.4542072117, -0.025498189, -0.1006396934, 0.0167840943, -0.1670009196, 0.0344174132, 0.0062942803, -0.0445959866, 0.1155723855, -0.1596204042, 0.348680079, -0.251673013, 0.0796112269, 0.0394850001, -0.054256808, -0.4969715476, 0.1073682532, -0.2383056134, 0.0230438858, -0.3772969842, -0.065016523, -0.0828535855, -0.3516816497, 0.0969962776, 0.3739198744, 0.0210683197, 0.2644360065, 0.1377244294, 0.1189343184, -0.0622321256, 0.5510033965, 0.3230521083, 0.1967888921, 0.0707690418, 0.2654047608, -0.0412967131, -0.0453924239, 0.0042823665, -0.2698687613, 0.246327579, 0.1067110375, 0.2557296157, -0.1353617609, -0.3971834779, 0.1474431455, 0.2378201634, -0.0447646491, -0.1319338083, 0.4307968915, -0.2377202362, 0.172567904, -0.0958555788, 0.2664754391, -0.2389552891, -0.3424352705, -0.2415788174, 0.0390881673, -0.3046324253, -0.1079163477, 0.1816324741, 0.2411851287, 0.1305249631, -0.0414061248, 0.466055125, -0.2226982713, 0.2804109454, -0.2302052975, 0.0603220984, -0.018826779, -0.1199184954, 0.0238393769, 0.5161587596, -0.6103891134, 0.0151250064, -0.1123183966, -0.2561794221, -0.2588272095, 0.3433962166, 0.2879835963, -0.2528567314, -0.3133336604, -0.4201459289, 0.2051164359, 0.0603081137, 0.0521518588, -0.0012074932, -0.0462266058, -0.1970331967, -0.2614490092, 0.3741242886, 0.3202641308, -0.1077723205, -0.1051595658, 0.1358282119, -0.1713023633, 0.0858754143, -0.2513415217, 0.080490537, 0.2804730237, 0.1020599604, -0.0613255203, 0.2927133739, -0.357961297, -0.5469436049, -0.0862499177, 0.0579454154, -0.2599138021, 0.0062024519, -0.110604763, 0.5220206976, 0.0158237591, -0.0154367797, -0.0312898532, 0.1183200628, -0.1374598593, -0.2333330512, -0.4542904198, -0.0332779363, 0.0685946494, 0.5740548968, -0.0187633038, 0.2364592254, 0.3137111962, 0.2896057963, 0.0075050946, 0.0306338519, 0.1310764253, 0.5953809023, -0.1788105965, 0.2888140678, -0.4382767677, 0.0940976366, 0.1595152617, 0.0832317621, 0.073605597, 0.0023776591, -0.2065864801, -0.5189368129, 0.01281064, -0.2269900888, 0.0240944214, 0.2367413044, 0.1432615072, -0.0748593435, 0.1702119261, -0.2773278952, -0.0676012188, -0.1973083764, 0.2919338942, 0.1174831316, 0.2413862944, -0.015709307, -0.3451884389, 0.2164438814, 0.3111026585, 0.294957757, -0.0879626274, -0.1517490596, 0.4523435235, 0.3043160141, 0.1105450392, -0.0066712638, 0.2907358408, 0.0779271573, -0.2848577499, -0.0822739974, 0.4827959538, 0.012369711, -0.0732994974, 0.0758530796, 0.3865855038, 0.0324067883, 0.1609557569, 0.0566228777, 0.2090731561, 0.0145336017, -0.0445343442, -0.1115885079, -0.2812254429, -0.1029723287, -0.2905323505, -0.1413835138, -0.2448554635, 0.0898522511, 0.070485428, 0.229676351, 0.1971507668, 0.1057663113, 0.0084908977, -0.1468925774, 0.04890991, -0.1874102056, 0.2557057142, 0.2897588611, 0.1384319067, 0.0444401205, 0.0740776509, 0.0620140657, 0.0123118311, 0.1836155653, 0.1469648778, -0.3406757116, 0.2635622025, 0.0756594464, 0.0884654373, -0.1997727007, 0.0275213122, -0.0363637432, 0.3163965642, -0.0755242109, 0.1237700954, -0.0936103612, 0.1945949197, -0.0755662918, -0.2289677262, -0.0397202671, -0.2019725591, -0.0094107054, -0.1007341221, 0.1501652896, 0.4106091559, 0.0232320204, 0.2186756879, 0.0232603922, -0.1518407762, 0.1562182456, -0.1369853914, 0.0295171812, 0.0613608211, -0.0998254269, -0.2353055626, 0.3304956257, -0.172077179, -0.0926689655, -0.1907325983, -0.3452546299, 0.0945272297, 0.0551951006, 0.3043854237, 0.1725961119, -0.193079412, -0.0501053967, -0.0340401009, 0.3287704289, -0.2375619859, 0.0633647293, 0.3274704218, -0.1111544445, -0.1580803692, -0.038377136, -0.5256823897, -0.0342422947, -0.3555929661, -0.040122807, 0.328445971, -0.0220829323, 0.1165079921, 0.336047262, 0.1921487302, 0.1437692642, 0.1019055173, -0.2156794369, -0.000494495, 0.4178358912, -0.2397290766, -0.4076488614, 0.2128311545, -0.0815081, 0.2679238915, -0.0091953278, -0.3185968995, -0.44069314, 0.0532263145, -0.0969675332, -0.0705451816, 0.142074734, 0.0384493396, 0.0709823668, -0.2444826066, -0.1577114612, -0.1952130795, 0.0239677466, -0.15255557, 0.2881752551, -0.2231129706, -0.0932206362, 0.5048213601, 0.8064696789, 0.3794753551, -0.1979301125, -0.0522215851, 0.060256809, 0.359092325, 0.1488367021, -0.3842598498, 0.1594086885, -0.3968274295, 0.1137548983, 0.3308050036, -0.0407755822, 0.0853851885, -0.0770147443, 0.0330930054, 0.0646858886, -0.2049106956, -0.1893302202, -0.0065216934, 0.1907669753, -0.0057826862, 0.1585078835, -0.2624436319, -0.0677734092, 0.2687340975, 0.3583219349, -0.3996654451, 0.0975513458, -0.3530913591, 0.2276317924, -0.2536461949, 0.3831911981, -0.3001422882, 0.2082961947, 0.1580155045, 0.0468257666, -0.0848773718, -0.2429383546, 0.162377879, -0.091528587, 0.0183959361, 0.1837431788, 0.0416088775, -0.169490397, -0.0087943673, -0.1914979517, 0.1758909225, 0.2852981389, 0.2649523318, -0.3108692169, 0.0797830522, 0.1394039989, 0.2556308508, -0.2582018673, 0.0831909776, -0.498947978, -0.0726924092, -0.2127499133, 0.1450127363, -0.1498373449, 0.0575314276, -0.0410669632, 0.1880610585, -0.4498625696, -0.223503232, 0.3454739749, -0.1285299957, 0.2572482228, -0.1535090208, 0.1203254312, -0.0082113212, -0.014812788, 0.4275590777, 0.281144619, -0.0410139784, -0.4183299839, -0.1800056249, -0.0602442957, 0.3975877762, 0.2043884099, -0.2897367477, 0.141393289, -0.0571305864, 0.2844455242, -0.3118418157, 0.235817045, 0.1697669029, 0.1153327152, -0.0460011698, -0.2965556979, 0.085074231, -0.1428479254, -0.0698102713, 0.1690168977, 0.1838863492, -0.024466414, 0.4124062359, 0.124962315, 1.0602537394, 0.2460412532, -0.1515906155, 0.3019744456, -0.1289836615, 0.1023873389, -0.3847406507, 0.1739913821, -0.2857697308, -0.2945433557, 0.0644804388, -0.0543524586, 0.1569504142, 0.0145124719, -0.4472410679, 0.1225605458, -0.1259527355, 0.080832094, 0.183090955, 0.2007605433, 0.097314328, -0.0557936206, 0.1291321069, 0.2571631074, -0.1327040792, -0.0920315087, -0.1239516735, 0.1330195665, 0.1029100493, -0.1203282923, -0.160449639, 0.0695376992, -0.2480962574, 0.1179204732, 0.1963859499, -0.1051385775, 0.0773170888, 0.3369873762, 0.6103703976, 0.2923319936, -0.1190740615, 0.1135115623, -0.066809535, -0.048663985, -0.0258176737, -0.0811445788, 0.3567360342, -0.0724525005, -0.1762510687, 0.1584069729, 0.1312168688, 0.0021973252, 0.0420187265, -0.0597676486, 0.3281684518, -0.2919072807, 0.1386496723, 0.0143050645, -0.1136602759, -0.3486382663, 0.1937876046, 0.0259785671, -0.303391844, 0.3734671772, 0.0082071237, -0.2121108472, -0.0440049991, 0.5273148417, 0.0481278151, -0.3048397303, 0.3915406466, -0.2656289339, -0.1693080068, -0.2985634804, -0.1753324866, -0.1514133662, -0.2239668071, 0.1547166258, -0.1720933467, 0.140696004, 0.283308506, 0.3459923863, 0.3237285018, -0.0617419183, -0.0836454853, -0.1993485391, -0.3199276328, 0.027767932, 0.1979091167, 0.0105662188, -0.2704560757, 0.0705581009, 0.0064485073, 0.3164364696, -0.3936088085, 0.2027152926, -0.2121351063, 0.0717593431, 0.0528457686, -0.2563832402, 0.0203100592, -0.0435717925, 0.0727554038, 0.0188469812, -0.376701951, -0.191293627, -0.3634167314, 0.1428383887, 0.1730634868, 0.1646030098, -0.0813720524, 0.1350974888, -0.167864114, -0.1653148532, 0.0640627891, 0.3893421888, -0.1728257388, 0.2832194865, -0.0623194687, 0.3497039676, 0.0564678609, -0.1807608604, 0.2696948349, 0.2693115771, 0.1463213414, 0.0900448188, -0.1290740818, -0.0316121206, -0.0615111776, 0.1419768929, 0.2718566954, 0.0525012128, 0.333037436, -0.3786539435, -0.0213358104, -0.0195415951, 0.3227128386, 0.2083992809, -0.1975058019, -0.1391373873, 0.0594747588, 0.2730633318, -0.3722350597, -0.0629855916, -0.1746574938, 0.1714309156, 0.1159253716, 0.2320190072, 0.3239718378, -0.3307377696, 0.2126150727, 0.1382058114, 0.289626509, -0.2799565494, 0.5085771084, -0.3556702137, 0.0754970908, 0.0331166983, 0.2941717505, 0.0956100374, 0.2405015528, 0.2398037016, -0.1697723567, 0.6393952966, 0.1815484166, 0.0310278069, -0.1532472819, 0.0329874232, 0.2180237174, 0.0131997019, -0.0650574863, -0.1188617498, -0.0887905359, 0.4944628477, -0.1701446325, -0.0250694714, -0.1897777915, -0.3370119333, 0.034633588, -0.0128551722, 0.0006826818, -0.2497463524, -0.2808274329, -0.2134661078, 0.227400288, -0.0283438973, 0.1051591784, -0.0421129279, -0.0221689567, -0.1650319099, -0.0216457453, 0.2968194783, 0.2125163972, -0.3541483879, -0.1242637858, 0.1371029019, 0.1513318121, -0.0172598846, 0.3668434918, 0.4245291352, 0.3550611138, -0.1583875418, 0.0007662587, -0.0975640789, -0.0061911866, 0.0173360482, 0.2649988532, 0.0491375625, -0.4225720167, 0.2388217002, 0.2324979305, -0.2302228808, -0.1320462525, 0.1067542136, -0.1956959367, -0.3676965535, 0.6305989027, 0.194239229, -0.0205058753, -0.1604814529, -0.0636259615, -0.5861016512, -0.0131742023, 0.3944790065, -0.0346702076, 0.1571438015, -0.2207564116, 0.1260534227, 0.0516832918, 0.1006789207, 0.121025078, -0.035339877, -0.3321739435, -0.0545524359, -0.614471674, 0.2779050469, 0.2257885337, 0.0675521046, 0.0397282317, 0.2072093487, -0.1789622456, 0.197886169, 0.0010370463, 0.0218478553, -0.0958748832, -0.2136632502, -0.6087861657, 0.0825027674, -0.2039693445, 0.117134355, 0.0295407176, -0.26814273, -0.2384241223, -0.3822875023, 0.1150827259, 0.0105734989, -0.3834081888, 0.2427310646, 0.0775853097, 0.4692180157, -0.0435162336, 0.184969157, 0.060619168, -0.1333984137, -0.1014841646, -0.0000465512, -0.2621170282, 0.3020837903, -0.0905429274, 0.4197927117, -0.2192393839, 0.049805738, -0.2876786292, 0.1709611416, 0.3208836317, -0.5431162119, -0.2115826309, 0.3529496193, -0.0135218352, 0.1922454536, 0.0165407136, 0.3320553601, -0.0361463241, 0.5384606719, -0.3094089031, -0.3373983204, 0.5012772083, -0.2783643305, -0.3294885159, -0.2559569478, 0.6030340195, 0.2151720822, -0.0788853616, -0.5270065069, 0.0631274283, 0.3534008265, 0.052417472, -0.2306411266, 0.1097529978, -0.3694945276, 0.1211507395, -0.0920550525, 0.3362959623, -0.0609119646, 0.0165719241, 0.0852708668, -0.1353365034 ]
https://github.com/huggingface/datasets/issues/2737
SacreBLEU update
@bhavitvyamalik hmm. I forgot double brackets, but still didn't work when used it with double brackets. It may be an isseu with platform (using win-10 currently), or versions. What is your platform and your version info for datasets, python, and sacrebleu ?
With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error. AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER' this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0` ## Steps to reproduce the bug ```python sacrebleu= datasets.load_metric('sacrebleu') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = sacrebleu.compute(predictions=predictions, references=references) print(results) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: Python 3.8.0 - PyArrow version: 5.0.0
42
SacreBLEU update With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error. AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER' this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0` ## Steps to reproduce the bug ```python sacrebleu= datasets.load_metric('sacrebleu') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = sacrebleu.compute(predictions=predictions, references=references) print(results) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: Python 3.8.0 - PyArrow version: 5.0.0 @bhavitvyamalik hmm. I forgot double brackets, but still didn't work when used it with double brackets. It may be an isseu with platform (using win-10 currently), or versions. What is your platform and your version info for datasets, python, and sacrebleu ?
[ -0.3610984087, 0.1312095225, -0.0056598745, -0.1026851684, 0.4761407971, -0.1557439864, 0.1335221827, 0.3350857496, -0.0614673495, 0.1180701107, 0.0635039881, 0.4146681726, -0.0860368758, -0.1110804081, -0.0810957253, -0.0622076653, 0.1325369775, 0.0672767907, 0.3208293915, -0.0251740292, -0.299712956, 0.1096770242, -0.2105326951, 0.0695406646, -0.246949017, 0.0275086593, -0.0339474417, -0.0466946438, -0.4527232051, -0.6465778351, 0.24054268, 0.1384065747, -0.0376656912, 0.4237562716, -0.0001106592, -0.1028933674, 0.303573072, -0.1960432827, -0.4353861213, -0.4215500951, -0.151994884, -0.3628088832, 0.0174230635, -0.1062813252, -0.036833901, -0.3589271307, -0.0217847098, -0.0480085351, 0.2329916805, 0.4084694982, 0.2475416958, 0.3381181955, 0.0511736721, -0.3478783369, -0.1333428323, 0.0854819044, -0.0458652079, 0.2032529712, -0.0625101626, 0.0833061859, 0.0917620361, 0.0576000996, -0.2753889561, 0.1187607348, 0.1333261132, -0.1312288344, -0.1327499151, -0.011835414, 0.0834129006, 0.015152961, 0.3650403023, -0.3823315799, -0.3735581338, 0.2127169222, 0.0366064161, -0.3824592829, 0.009145271, -0.1123226583, -0.0093320683, -0.1700329036, 0.0664358139, -0.120147258, -0.0205983743, 0.0703742355, -0.2472747266, 0.4081160724, -0.2506110966, 0.0469715409, 0.0798313394, -0.0848304331, -0.498185873, 0.0868941098, -0.1984249651, 0.0335593559, -0.3400894403, -0.0250235721, -0.0763024539, -0.3464218676, 0.0813368484, 0.3945919871, 0.0487437397, 0.2591861188, 0.1699689776, 0.208941862, -0.1301805377, 0.4959834218, 0.2420792878, 0.2200368941, 0.1657264233, 0.2019771188, -0.0661541373, -0.0687892959, -0.1287661642, -0.2297533453, 0.2602818012, 0.0804344863, 0.3282782435, -0.0755720437, -0.5133696795, 0.1752419174, 0.2400906533, -0.0607880764, -0.0440926813, 0.3927013874, -0.2399066985, 0.1500326097, -0.1535259932, 0.2635988593, -0.2359530032, -0.3667463362, -0.2468984276, 0.0178700984, -0.2878111303, -0.1278097332, 0.1567812562, 0.1984199435, 0.1318725646, -0.0593956038, 0.3452295959, -0.171781227, 0.2690585256, -0.2084931731, -0.0340363793, -0.0009568622, -0.1924003959, 0.074927479, 0.4489350319, -0.7316141129, -0.1049164683, -0.1289741844, -0.3792110384, -0.2902466953, 0.2612978816, 0.2740129232, -0.2312806696, -0.3622233272, -0.4179076254, 0.2116142958, -0.0123013407, 0.0543334335, -0.0246527903, -0.0373274125, -0.2178054303, -0.2653992772, 0.3607482016, 0.3120441735, -0.1571210176, -0.1470868737, 0.0469974503, -0.1452469081, 0.0465562791, -0.1418343037, 0.0897664428, 0.3025022149, 0.0039868876, -0.0378520861, 0.3772503436, -0.3398389816, -0.47975564, -0.0732094273, 0.0153636783, -0.2394685447, 0.0264778864, -0.0947665572, 0.5503355861, -0.0114409178, 0.0148314573, 0.0521670394, 0.1185403168, -0.2458544374, -0.1919905841, -0.387925446, 0.0008231755, 0.0664248094, 0.5991948247, 0.0690892562, 0.2336750627, 0.3648744822, 0.2155065089, 0.0335599184, -0.0352309719, 0.2000243515, 0.6257207394, -0.1667007208, 0.2624936104, -0.5427994728, 0.0894254595, 0.139965266, 0.1393516958, 0.001926851, 0.0035261028, -0.1469544619, -0.5078863502, 0.0668668598, -0.1458018124, 0.0626408607, 0.1951812208, 0.1813528836, -0.1051508859, 0.235135287, -0.2970179915, -0.0262004491, -0.1130385548, 0.2730755806, 0.1114345789, 0.2101028562, -0.0158112682, -0.285011977, 0.2238169461, 0.2779828012, 0.2404210418, -0.0966569334, -0.1334513128, 0.4079409242, 0.2851323485, 0.1962304264, 0.0060255807, 0.3215175867, 0.0572761893, -0.3230302334, -0.1335029006, 0.4925209284, 0.0297270566, -0.0744328201, 0.0689792484, 0.3435509801, 0.1100497991, 0.1087408438, 0.0434566289, 0.2713367343, 0.0451422036, -0.0510620996, -0.074241437, -0.2531876564, -0.0879330784, -0.2256303728, -0.0866143405, -0.1809444577, 0.0871172696, 0.0022354536, 0.3021745682, 0.1648403406, 0.1735637635, 0.0365758315, -0.2439988852, 0.0406362787, -0.2193616033, 0.2514436543, 0.3448076844, 0.1203915551, 0.0628772005, 0.0848327056, -0.040202897, -0.0243768021, 0.2261277735, 0.1047914773, -0.4793459773, 0.2292713523, 0.0351158194, 0.1252462417, -0.1896265447, 0.0216196105, 0.0023162514, 0.3032470047, -0.1119338721, 0.1487004161, -0.1841076612, 0.280572772, -0.0352867767, -0.168298468, -0.0367312506, -0.1768311858, 0.0316730738, 0.0094895894, 0.1756767333, 0.4028096199, -0.0151248127, 0.3465371728, 0.0519648939, -0.2131381184, 0.1350440383, -0.0875086859, -0.039114289, 0.0214334056, 0.0093572028, -0.2057680339, 0.2946455479, -0.181366086, 0.0153844804, -0.3245870173, -0.3740169406, 0.0728441179, 0.079759866, 0.436091125, 0.1809329689, -0.1662891954, -0.0249090195, -0.0552834012, 0.3301904202, -0.2599102855, 0.0595738962, 0.34262079, -0.0848996863, -0.208880946, 0.0111938119, -0.4363764226, -0.0135470899, -0.3943406343, -0.0577672832, 0.2302500606, -0.1176100224, 0.0639885068, 0.2232748866, 0.1488092542, 0.1653537154, 0.1498260498, -0.1831988692, -0.1005550772, 0.5080996752, -0.1929518878, -0.4019781053, 0.1647427529, -0.1132770777, 0.2334119827, 0.059760578, -0.286100924, -0.3820085526, 0.0010045357, -0.0054818019, -0.0573161952, 0.1456347406, 0.0758755207, 0.0291794091, -0.2026305944, -0.1702328473, -0.2736971676, -0.004637301, -0.1380312443, 0.2538140714, -0.1768519431, -0.1441241801, 0.4649413824, 0.8005055785, 0.3342853189, -0.2882509828, 0.0038185529, 0.0407602564, 0.3907133341, 0.2285877168, -0.4275699258, 0.0983098149, -0.3324215412, 0.1017846465, 0.3215211034, -0.0136996312, 0.0427916721, -0.1092610136, -0.0366052501, 0.0721487328, -0.1894226372, -0.1876775175, -0.0659535378, 0.19599621, 0.0204109028, 0.1392489076, -0.2542546988, -0.107783705, 0.3225865066, 0.439741075, -0.3692905605, 0.1287800968, -0.4256255031, 0.2170373201, -0.1380232722, 0.3367150128, -0.3182201684, 0.2477906942, 0.0971421078, 0.0606603473, -0.1070526168, -0.2416165322, 0.2020467371, -0.1269613504, -0.0091188336, 0.1536355913, 0.0883917361, -0.1997353435, 0.0142818987, -0.1839623153, 0.197175771, 0.2183212787, 0.2564293742, -0.209173888, 0.0493800193, 0.0505618937, 0.2396541387, -0.284326911, 0.1172311455, -0.4796842337, -0.0815597624, -0.0956763998, 0.1743690073, -0.2040811181, 0.0313083977, 0.0708274245, 0.1279577017, -0.5701901317, -0.2751620114, 0.3760762215, -0.1228815764, 0.2080380172, -0.2716874778, 0.1411864012, 0.0255749263, 0.0295208562, 0.4906158149, 0.2761418521, -0.0685032159, -0.4534591138, -0.1442543864, -0.0579505935, 0.3826780915, 0.1869019866, -0.3189707398, 0.1494178176, -0.0263446234, 0.2732054591, -0.4339581132, 0.2760275602, 0.2799222171, 0.153854996, -0.0894292593, -0.286308825, 0.040482603, -0.0427837148, -0.1177441105, 0.1330594718, 0.1954039484, -0.0473234504, 0.3297823966, 0.1252312362, 1.0295549631, 0.2497765273, -0.1450732797, 0.2048950791, -0.1225554943, 0.1770913154, -0.3889920413, 0.1491996348, -0.2145759165, -0.3497612774, -0.0027978197, -0.0786143392, 0.2461259663, -0.0812057704, -0.5005115867, 0.1482785344, -0.1056862399, 0.1229952276, 0.2017677724, 0.1952264905, -0.019381525, -0.0214127656, 0.1440598369, 0.2238284349, -0.0857427567, -0.0018105013, -0.1456820816, 0.1349672526, 0.1607820988, -0.1289910376, -0.2532967329, -0.0202071406, -0.2226051092, 0.1560371816, 0.1556520015, -0.0548113063, 0.053881757, 0.3182269633, 0.6783847213, 0.2679537833, -0.1529316157, 0.1743215024, -0.1608429402, -0.0177349672, -0.0590678751, -0.1327262521, 0.4723624885, -0.0432025082, -0.1407503784, 0.1197523698, 0.1525699049, 0.0058703721, -0.0600474775, -0.0463880636, 0.2235934734, -0.2058603764, 0.1211575642, -0.055893939, -0.0407835096, -0.3475444913, 0.1786041409, 0.0588854142, -0.2360817194, 0.4113482535, 0.0066556782, -0.2602077723, -0.0435957685, 0.51179111, -0.010094732, -0.3750859499, 0.3648048043, -0.3749403358, -0.1787810028, -0.3353441656, -0.1208831593, -0.1823652685, -0.1781059504, 0.2070338428, -0.2056367397, 0.1281832755, 0.2462084144, 0.3060658276, 0.356452167, -0.1828084886, -0.0865225494, -0.2616468668, -0.280515492, 0.0718396157, 0.0743190795, -0.0332875997, -0.3151583672, 0.0752734914, 0.0031478703, 0.3176879287, -0.3684151769, 0.30090186, -0.2032568753, -0.0049923947, 0.0438931398, -0.1541394591, 0.015481066, -0.0865895748, 0.049666442, -0.0569046102, -0.407410115, -0.1601002067, -0.3775686026, 0.1592617929, 0.1250626743, 0.1932136863, 0.0265914388, 0.0696499497, -0.1082244217, -0.1402437687, 0.0531242415, 0.4404626489, -0.1807343364, 0.263767153, -0.0732501224, 0.3241837025, 0.0072244182, -0.1600700766, 0.2754859328, 0.24475196, 0.138767451, 0.1572491378, -0.1430187821, -0.0202983618, -0.0802926943, 0.201024577, 0.3011236489, -0.0488016307, 0.382299304, -0.3700412512, -0.0139494315, -0.0711533353, 0.2680603266, 0.3289754689, -0.1407840103, -0.0768894702, 0.2062949985, 0.2511438727, -0.3484356403, -0.0836771429, -0.0977707505, 0.1452625394, 0.1164645851, 0.1948407888, 0.3775344789, -0.266585052, 0.1853559613, 0.0541434288, 0.3624930382, -0.2315695733, 0.5102030039, -0.2928178012, 0.1182634756, 0.0621240586, 0.297714293, 0.1461984366, 0.2570766509, 0.3735711575, -0.1151324511, 0.7012068033, 0.2368116379, 0.0497610383, -0.0939942375, -0.0247640498, 0.3053642213, -0.0334919021, -0.0513394438, -0.1046819091, -0.0802334398, 0.4766085446, -0.1945395917, -0.0436305553, -0.1961790174, -0.2771187127, 0.0100917518, -0.1029692516, -0.0323963016, -0.2655653954, -0.2995894551, -0.2010112107, 0.2587383389, -0.0067116451, 0.084540166, -0.0583210327, 0.0490164198, -0.1965825409, -0.016912194, 0.290333271, 0.1799899489, -0.3022834063, -0.1207776517, 0.0623318702, 0.0667872429, 0.0497854166, 0.4140067101, 0.4629575014, 0.3816129565, -0.2034565508, -0.0048309043, -0.1843127161, -0.034266986, -0.0191119574, 0.3144961894, -0.0050152913, -0.4414654076, 0.203640148, 0.2073158324, -0.1920165867, 0.0766585916, 0.01656547, -0.2133699059, -0.4664847255, 0.6189285517, 0.1990565211, -0.0059282929, -0.1693199426, -0.1364180744, -0.550583303, 0.0358370543, 0.4961481392, -0.0412421301, 0.1906967312, -0.2188338935, 0.112923637, 0.1664037108, 0.0737089366, 0.2321351767, -0.0000423202, -0.1801951528, -0.0235995054, -0.6460704803, 0.3164502382, 0.173372373, 0.0906197727, 0.0722571909, 0.107719712, -0.1306120604, 0.1696070284, 0.0667060614, 0.0626215935, -0.0957419574, -0.2245660871, -0.6295439601, 0.0424461439, -0.2246964723, 0.0860629156, -0.0100436956, -0.3156250715, -0.2248574346, -0.4736672044, 0.086795792, 0.0383332074, -0.2752348185, 0.1972085088, 0.0962521434, 0.562353909, -0.0131493201, 0.257779628, 0.1092426032, -0.1006503701, -0.1269233376, 0.0080613047, -0.2769254148, 0.2525501251, -0.0473712012, 0.3885967433, -0.3237916827, -0.0190348886, -0.2622706294, 0.2190768719, 0.3211137652, -0.5104786754, -0.2979595661, 0.3339656293, -0.0716051459, 0.1641744375, 0.0936263055, 0.4034532607, -0.083061859, 0.5707310438, -0.3010047674, -0.3583703637, 0.4811252952, -0.2347839922, -0.3535980582, -0.2643519938, 0.6121699214, 0.2160152048, -0.0946954265, -0.5384449959, 0.0012246668, 0.408533901, -0.0195131432, -0.2371706516, 0.16116108, -0.287820667, 0.1045453995, -0.1034157947, 0.3256403804, -0.048261553, -0.0670943782, 0.1501839757, -0.119578898 ]
https://github.com/huggingface/datasets/issues/2737
SacreBLEU update
You can check that here, I've reproduced your code in [Google colab](https://colab.research.google.com/drive/1X90fHRgMLKczOVgVk7NDEw_ciZFDjaCM?usp=sharing). Looks like there was some issue in `sacrebleu` which was fixed later from what I've found [here](https://github.com/pytorch/fairseq/issues/2049#issuecomment-622367967). Upgrading `sacrebleu` to latest version should work.
With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error. AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER' this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0` ## Steps to reproduce the bug ```python sacrebleu= datasets.load_metric('sacrebleu') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = sacrebleu.compute(predictions=predictions, references=references) print(results) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: Python 3.8.0 - PyArrow version: 5.0.0
36
SacreBLEU update With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error. AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER' this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0` ## Steps to reproduce the bug ```python sacrebleu= datasets.load_metric('sacrebleu') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = sacrebleu.compute(predictions=predictions, references=references) print(results) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: Python 3.8.0 - PyArrow version: 5.0.0 You can check that here, I've reproduced your code in [Google colab](https://colab.research.google.com/drive/1X90fHRgMLKczOVgVk7NDEw_ciZFDjaCM?usp=sharing). Looks like there was some issue in `sacrebleu` which was fixed later from what I've found [here](https://github.com/pytorch/fairseq/issues/2049#issuecomment-622367967). Upgrading `sacrebleu` to latest version should work.
[ -0.3578205109, 0.191182524, -0.0130563416, -0.1219669729, 0.4591222405, -0.2587323189, 0.1023558378, 0.3462675214, -0.1047269255, 0.1702915281, 0.0292683542, 0.3873142302, -0.028606886, -0.1296034753, -0.0896715969, -0.0818409622, 0.0223366208, 0.1103718504, 0.2108441442, -0.0650738329, -0.2887300253, 0.0873919129, -0.163198486, 0.0852669477, -0.2492380738, -0.0023167683, -0.0760262385, -0.0779753849, -0.4405123591, -0.6061068177, 0.1186022162, 0.1210270822, -0.0479871146, 0.3743448555, -0.0001058455, -0.1107487157, 0.3051440716, -0.1988533884, -0.402647227, -0.3009612858, -0.1276696175, -0.2364968956, 0.1063761413, -0.1455809176, -0.1818396598, -0.3046253026, 0.0252749529, 0.0940316468, 0.2512165904, 0.4529438019, 0.3059908748, 0.4062626362, 0.0230126381, -0.3524658978, -0.0199979991, -0.0242332481, -0.0131461509, 0.2505613565, -0.0646729171, -0.0202185921, -0.0520277508, 0.0627768934, -0.1706924438, 0.1623966694, -0.0237089731, -0.0873840228, -0.1177438349, -0.0695196614, 0.0494955145, -0.0812639296, 0.2804449499, -0.3829120994, -0.4305170178, 0.2086235434, 0.0718515441, -0.2917513847, -0.0081196949, -0.1182370856, -0.0117071569, -0.1671763957, 0.0797316581, -0.0309033878, -0.0469657034, 0.0218467433, -0.2776470184, 0.3991084695, -0.2167879045, 0.029543601, 0.101945281, -0.0798585862, -0.5395300388, 0.172598362, -0.1630486548, -0.0472775549, -0.3372487724, -0.0520966537, -0.0352207497, -0.3039963841, 0.0797249973, 0.2673196495, 0.0789336041, 0.3234216571, 0.1725977361, 0.2088113576, -0.1074544191, 0.5174103975, 0.1569871008, 0.2109559327, 0.1481880844, 0.2084748447, -0.1582449675, 0.013210576, -0.0868137777, -0.2773756981, 0.1811382324, 0.050410755, 0.298905313, -0.1296226531, -0.5161451101, 0.121226415, 0.3249454498, 0.0074682236, -0.0784414634, 0.4600085914, -0.2759070098, 0.0837623775, -0.1150484234, 0.2334919572, -0.3387950361, -0.3230008483, -0.2766522467, 0.0408227071, -0.374250859, -0.0881016552, 0.2087677121, 0.2642617822, 0.180196479, -0.0865476131, 0.3493547738, -0.1316839457, 0.2586613297, -0.2561267018, -0.0517255031, -0.0069769323, -0.1430688649, -0.0315163694, 0.4688057601, -0.6108641028, -0.0566983595, -0.1254151165, -0.3261384368, -0.2362999916, 0.2884626091, 0.3258453608, -0.2371550649, -0.2956567109, -0.3317903876, 0.2374336869, 0.0726340041, 0.0277647749, -0.0176038519, -0.1226366311, -0.2025409639, -0.2438830733, 0.3008952141, 0.3525293469, -0.1587592512, -0.1621090621, 0.1584932655, -0.1695162803, 0.0624836944, -0.0763147473, 0.0115524866, 0.314671576, 0.0382408053, -0.0237805247, 0.2955040038, -0.2857788205, -0.5236391425, -0.0819974542, -0.0154974535, -0.2500261664, -0.0530063733, -0.0627646372, 0.6092697382, 0.0600496307, -0.0038255714, -0.011536696, 0.1557664871, -0.0427969396, -0.2675358653, -0.3750510812, -0.0079511218, 0.0790768415, 0.5792467594, 0.0346505605, 0.2244629711, 0.1579548568, 0.185623914, 0.0233875718, 0.0189663582, 0.2308951765, 0.6588178277, -0.1663860977, 0.2470441312, -0.4124954343, 0.0987279341, 0.1414682865, -0.0113154501, 0.0937691256, 0.0519425049, -0.1947705597, -0.469192028, -0.0183419362, -0.2268977314, 0.0119523387, 0.2715170085, 0.1378232986, -0.0797376633, 0.2032041848, -0.2275078148, 0.0311876964, -0.107583046, 0.2439024001, 0.111413449, 0.2018918395, -0.1064895168, -0.300912708, 0.3025527, 0.2251974493, 0.2552263737, -0.0269719101, -0.1187356859, 0.4040309191, 0.2718548775, 0.1211069226, 0.1103963554, 0.2345685363, 0.0470453277, -0.3110349774, -0.1486894637, 0.4316516519, 0.0484485924, -0.0514892638, 0.039767012, 0.4062993824, 0.1410159916, 0.0460956246, 0.0679115877, 0.1683558673, 0.0360379145, -0.1195730269, -0.0889126882, -0.1963646412, -0.0799368769, -0.1591660231, -0.0623395368, -0.1417455673, 0.0780006871, 0.0879579112, 0.3270539641, 0.2486623973, 0.2066832483, 0.0769208968, -0.1798181832, -0.0212411769, -0.1770207137, 0.2161440551, 0.3647597432, 0.1700564325, 0.0438455567, 0.0763294771, -0.0463222936, -0.0378087796, 0.1791762114, 0.065313831, -0.4200986028, 0.1537052989, 0.1766038984, 0.0890042484, -0.1963601261, 0.0585504919, 0.0622052178, 0.2806884944, -0.0912155584, 0.1762317419, -0.1289595068, 0.3334779441, 0.0158994049, -0.2181562781, -0.0460449979, -0.1709312648, 0.1734343618, 0.002580998, 0.0736615732, 0.3721659184, 0.0109241307, 0.3784333766, 0.2001805305, -0.2112032026, 0.1066685468, -0.2119739354, -0.0180873126, 0.0760567635, -0.119740963, -0.0421263576, 0.3133831024, -0.1565409005, -0.0128215179, -0.3236809969, -0.3269428313, 0.1113746762, 0.014258828, 0.4556115568, 0.1397293955, -0.1708733439, -0.1437096596, -0.0577828623, 0.3358262777, -0.2341040969, -0.004756853, 0.3123633265, -0.1245188341, -0.1732454598, -0.1278388947, -0.4561174214, 0.0026662406, -0.3819519281, -0.0850621611, 0.1646663249, -0.0369071811, 0.0480371639, 0.2475903779, 0.1148174033, 0.0956452042, 0.0587986186, -0.2714681327, -0.1322004199, 0.5068072081, -0.3097521961, -0.4754903316, 0.1518467069, -0.1226329952, 0.2845421433, 0.0372844487, -0.2821933925, -0.5299499035, 0.0195125248, 0.0280248448, -0.0609568767, 0.0801196918, 0.1169325709, 0.0231863149, -0.2826243639, -0.1794141233, -0.2012345791, 0.1383205801, -0.0638355389, 0.2962292135, -0.2882065475, -0.1492158026, 0.342060864, 0.8126735091, 0.2221952677, -0.2842614055, 0.0287035797, -0.0046371585, 0.3649330735, 0.1545111984, -0.3445686996, 0.1804586649, -0.2892846763, 0.1449607611, 0.3699705899, -0.0995687395, 0.0257925484, -0.0707534105, 0.0904709697, 0.0109626055, -0.2755066156, -0.1829291582, 0.0704110786, 0.1736816764, 0.0268889517, 0.138192445, -0.2520947754, -0.0163279995, 0.2843597829, 0.3995742798, -0.2782476246, 0.0710219666, -0.2709499598, 0.1875789911, -0.1672022641, 0.2655045688, -0.3068067729, 0.2081258446, 0.1071386337, 0.0699553639, -0.064851895, -0.2380273193, 0.2308622897, 0.0154373776, 0.0458044633, 0.1292301714, 0.0159412697, -0.1366562247, 0.0047392026, -0.2175613046, 0.1586101204, 0.2181323469, 0.2016924173, -0.3195238709, 0.0964601189, 0.0617578179, 0.1553494036, -0.3420925736, 0.092314437, -0.5545901656, -0.1446538121, -0.1431480646, 0.2754794955, -0.2147545367, 0.0287508816, -0.0732059181, 0.1491056383, -0.4761302471, -0.2124085426, 0.2964619696, -0.0050976612, 0.2399256974, -0.2561050355, 0.1337243766, -0.034792386, 0.0315442048, 0.4541693926, 0.3160787821, 0.0361005552, -0.3791027665, -0.0587962568, -0.006606333, 0.29547593, 0.1132594123, -0.2193434983, 0.1262143552, -0.0973731577, 0.3588211238, -0.2885734737, 0.3199593127, 0.2117463946, 0.0973447859, -0.0223521404, -0.1476564854, 0.0594777763, -0.2094186246, -0.0982035398, 0.0274581593, 0.180522874, -0.0267301872, 0.3437111378, 0.1284796745, 0.9728666544, 0.1545346677, -0.1698003411, 0.3814638853, -0.0299463421, 0.1575748026, -0.3214428723, 0.1822108924, -0.2842509151, -0.2830297947, 0.0590341836, -0.0460113138, 0.1815721989, -0.0553114936, -0.579115808, 0.1761920601, -0.0546646491, 0.0002064349, 0.2185236216, 0.1534942985, 0.054331623, -0.0398477167, 0.0679123253, 0.2623177171, -0.1888808906, 0.0354269259, -0.1071687862, 0.0517590716, 0.0831901133, -0.129443869, -0.0745791346, 0.0736996531, -0.2968598008, 0.1341707706, 0.0989095867, -0.0511455834, 0.0143603683, 0.261282742, 0.549726367, 0.3040991426, -0.1275850534, 0.2080317885, -0.1019929945, -0.0971848816, -0.0760593861, -0.1031069309, 0.4004962444, -0.0556430742, -0.2246281803, 0.1341569126, 0.1070691943, -0.0316573232, -0.0437448323, -0.0109526552, 0.2206584513, -0.2373544723, 0.0671288371, -0.0911276937, -0.1662380397, -0.325587213, 0.2039810121, 0.0799048543, -0.2308879048, 0.4265978336, 0.1205414385, -0.282465905, -0.0549680777, 0.4708361626, -0.0222673081, -0.2782501578, 0.3541187346, -0.3069102168, -0.1881443858, -0.3704711497, -0.3024503291, -0.158444047, -0.2403990924, 0.1294461936, -0.1099830568, 0.0756380409, 0.3476687074, 0.2972692847, 0.2949798107, -0.2006953359, -0.0764425844, -0.1964139938, -0.3316260576, 0.0594496168, 0.1357140541, -0.0173004344, -0.1900379062, 0.1527746022, 0.0276923776, 0.3771693707, -0.4310584068, 0.2393397093, -0.3082427382, 0.1350147575, 0.0507782139, -0.2673181891, 0.0164038017, 0.0019294508, 0.0846145675, 0.0695560127, -0.3597664535, -0.2404732108, -0.3186883926, 0.1150119305, 0.1184395403, 0.2952621877, -0.0802580714, 0.1346751153, -0.1008251458, -0.1417817622, 0.0732926726, 0.3997762203, -0.1848658621, 0.2600121498, -0.0433525704, 0.2943042517, 0.1377819926, -0.0841609687, 0.2218560576, 0.1979983151, 0.1352068782, 0.1358501911, -0.2521337271, -0.0349322036, 0.008019153, 0.1639233381, 0.2954921126, 0.0450420715, 0.3262087703, -0.3317496181, -0.0472829975, -0.1157065034, 0.2377043962, 0.1594416201, -0.1561024487, -0.1854162067, 0.1604342014, 0.3080505133, -0.3771662414, -0.073260352, -0.1698323786, 0.1069692522, 0.2118207663, 0.2212180942, 0.249807179, -0.2954527736, 0.2389971912, 0.1047464311, 0.3551611602, -0.114733398, 0.3196255267, -0.4188711941, 0.0481443554, 0.0339867026, 0.3200390339, 0.1382947266, 0.2413091958, 0.2761480808, -0.1308554262, 0.7322461009, 0.2012880296, 0.0283843204, -0.1049316078, -0.0192278065, 0.1928394586, 0.0340167806, 0.0155687444, -0.1041191667, -0.1250299811, 0.438827157, -0.2056940198, -0.0482136346, -0.2144742757, -0.2102615386, 0.0167076699, -0.0024715476, -0.0432861373, -0.2329720557, -0.2016049027, -0.1873737574, 0.2655162811, -0.0032351781, 0.1305630207, -0.0682542175, 0.0290059317, -0.1451797187, -0.0951115489, 0.2740392685, 0.1035440117, -0.2165932804, -0.0157153029, 0.0546059124, 0.1020378321, 0.0257499143, 0.3504706621, 0.3399099112, 0.4087024033, -0.2074265629, 0.0316674933, -0.1750414968, 0.0038700849, -0.0499921478, 0.1995207518, 0.0798435807, -0.4812787175, 0.2994629443, 0.2601360977, -0.2384608984, -0.0848103315, 0.0219520293, -0.1837273687, -0.3299477398, 0.434350729, 0.2688828111, 0.0057520047, -0.1743474007, -0.1197387725, -0.6330943704, 0.011094369, 0.3685871661, -0.0753886178, 0.188440755, -0.2897848487, 0.1485455185, 0.0545621403, 0.1447160244, 0.1944025606, 0.059114892, -0.2636820078, -0.0269035995, -0.7193469405, 0.3840251565, 0.2125401944, 0.0873719603, 0.0387339033, 0.2004411221, -0.1806335151, 0.1441377103, 0.0589211136, 0.0260142274, -0.0570510887, -0.2295217961, -0.6657169461, 0.113670744, -0.3540846705, 0.096813485, 0.0587345436, -0.3082036376, -0.1885083914, -0.3494612277, 0.1655974239, 0.0418649055, -0.2623752952, 0.1670270264, 0.0514269955, 0.5181000233, -0.0106916893, 0.2291048169, 0.0399089605, -0.0865096152, -0.1330884397, -0.0327971578, -0.1995065808, 0.1676522046, -0.0212183185, 0.3710514605, -0.1306427121, 0.0637273267, -0.2664960027, 0.2270198762, 0.3711468577, -0.4613431394, -0.164853543, 0.3245262504, 0.0407228544, 0.1466798186, 0.0596734546, 0.3735423386, -0.0053756442, 0.5238207579, -0.3329615891, -0.3023940027, 0.5458356142, -0.3192135096, -0.3209404945, -0.2270155549, 0.6169537306, 0.2041413486, -0.1760113835, -0.5343705416, 0.0416537374, 0.3197527528, 0.000844311, -0.1647974849, 0.110219121, -0.3402338028, 0.0909267217, -0.178998217, 0.4063367546, -0.043883644, 0.031648241, 0.0902721137, -0.1580959707 ]
https://github.com/huggingface/datasets/issues/2737
SacreBLEU update
It seems that next release of `sacrebleu` (v2.0.0) will break our `datasets` implementation to compute it. See my Google Colab: https://colab.research.google.com/drive/1SKmvvjQi6k_3OHsX5NPkZdiaJIfXyv9X?usp=sharing I'm reopening this Issue and making a Pull Request to fix it.
With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error. AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER' this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0` ## Steps to reproduce the bug ```python sacrebleu= datasets.load_metric('sacrebleu') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = sacrebleu.compute(predictions=predictions, references=references) print(results) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: Python 3.8.0 - PyArrow version: 5.0.0
33
SacreBLEU update With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error. AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER' this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0` ## Steps to reproduce the bug ```python sacrebleu= datasets.load_metric('sacrebleu') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = sacrebleu.compute(predictions=predictions, references=references) print(results) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: Python 3.8.0 - PyArrow version: 5.0.0 It seems that next release of `sacrebleu` (v2.0.0) will break our `datasets` implementation to compute it. See my Google Colab: https://colab.research.google.com/drive/1SKmvvjQi6k_3OHsX5NPkZdiaJIfXyv9X?usp=sharing I'm reopening this Issue and making a Pull Request to fix it.
[ -0.3739028871, 0.2329157293, 0.0166787617, -0.1529369056, 0.3844795227, -0.2280019224, 0.141117245, 0.3971857727, -0.1434215456, 0.1172358543, 0.0634808913, 0.3675318062, -0.0747413188, -0.0431301333, -0.0400881357, 0.0182082355, 0.1286733896, 0.0568152443, 0.2899595201, 0.0479622632, -0.3001472354, 0.1294308305, -0.1781705171, -0.0137689151, -0.2298808545, 0.0428278297, -0.0431474112, -0.0255484618, -0.4351983368, -0.6946924329, 0.2592556775, 0.1504916847, -0.1331428885, 0.4043776691, -0.0001106694, -0.0649240538, 0.2988052964, -0.1715771258, -0.4254034758, -0.4097578824, -0.1907388866, -0.3609963059, 0.0138525739, -0.0621105805, 0.0258588716, -0.3896161318, -0.041379042, 0.0150134712, 0.2358204722, 0.3832378387, 0.239498511, 0.4302850068, -0.0015958473, -0.3362755477, -0.1122719049, 0.0617027022, -0.0473625734, 0.1549789608, -0.0962240696, 0.0600672066, -0.0194019079, 0.0392366834, -0.1868141294, 0.1169503182, 0.0850505233, -0.1944033355, -0.211424008, -0.023933243, 0.0887816995, 0.0142879207, 0.3667890728, -0.3311087489, -0.4713636339, 0.2233430743, 0.012487933, -0.3764416873, 0.0764675438, -0.1040389612, -0.0425250232, -0.1320862621, 0.0299376696, -0.097977832, -0.0454689935, 0.0143782059, -0.2644269466, 0.3045634925, -0.2460582107, 0.0318941064, 0.0465921797, -0.0460270718, -0.4297214746, 0.1479373425, -0.2655236721, -0.0081696846, -0.4187926054, -0.0802067518, -0.0276513584, -0.278529644, 0.1515283585, 0.4640417397, 0.0794283822, 0.2926971912, 0.1231561154, 0.1603954732, -0.0903691798, 0.537044704, 0.175942108, 0.1939259171, 0.2064477801, 0.2096592486, -0.0102406666, -0.021915976, 0.0056201145, -0.2501820028, 0.1966058016, 0.0381129943, 0.2866576314, -0.102828756, -0.4676418602, 0.1577841938, 0.2295631766, -0.0384413451, -0.0725243315, 0.3364726007, -0.2498461902, 0.2119581401, -0.1920413077, 0.2145523727, -0.2049995661, -0.3765913248, -0.2550671101, -0.0666445494, -0.3085424304, -0.0407442935, 0.1703776121, 0.1910996437, 0.172593981, -0.0540474169, 0.3929163516, -0.1610341072, 0.2505151629, -0.1740707755, 0.0372877717, 0.0719733685, -0.1483314037, -0.0247009695, 0.3736084998, -0.6256073117, -0.040464364, -0.2014553845, -0.3299646974, -0.2798797488, 0.2722164094, 0.2741962671, -0.27377671, -0.2794392705, -0.438419044, 0.2355145514, -0.0362769701, 0.0633843839, -0.0532343946, -0.0661686957, -0.2227804065, -0.2717622519, 0.3008932471, 0.3167228699, -0.1638357639, -0.1671286225, 0.1063640714, -0.1123761237, 0.0829695165, -0.1165448278, 0.0046932921, 0.2391457111, 0.0060906112, -0.0205583423, 0.2737219036, -0.2885117531, -0.5547579527, -0.0408845991, 0.0688700154, -0.2400223911, -0.0268477276, -0.1188978255, 0.6205391884, -0.0705593973, -0.0200985782, 0.0195238106, 0.0632054657, -0.2461588234, -0.1765813231, -0.4268581867, 0.0149050411, 0.0077158213, 0.6241722703, 0.0516896769, 0.2833352983, 0.3863051236, 0.1588707417, 0.0476233959, -0.005534064, 0.2308057249, 0.5782595873, -0.1743894815, 0.3671567738, -0.5228919983, 0.0775712878, 0.2116927654, 0.1229561046, 0.0056038494, 0.0311190914, -0.1564727277, -0.4288709164, 0.0594720468, -0.1472800821, 0.0422118157, 0.2035235912, 0.1826675534, -0.1190580353, 0.2278317809, -0.2830651402, -0.005943615, -0.1857160628, 0.2656481266, 0.1051391959, 0.2024465799, 0.0008288734, -0.2361795455, 0.221500814, 0.2695162892, 0.2052173316, -0.1491562277, -0.1476210058, 0.4282350242, 0.3534133732, 0.169341445, 0.0146573363, 0.3167549074, 0.0962425694, -0.3463174701, -0.1519583166, 0.4838854969, -0.0357928462, -0.0805385262, 0.0886523873, 0.307308197, 0.1158765554, 0.0653565079, 0.0912835002, 0.2688136995, 0.0663801059, -0.0455185473, -0.1914458573, -0.2590549886, -0.134431988, -0.2435739189, -0.0288170315, -0.2215946466, 0.0934261382, 0.0021052398, 0.2694289088, 0.1448979378, 0.126783818, 0.0566764586, -0.17790097, -0.0677238554, -0.2078702152, 0.341485858, 0.2781050801, 0.1037745848, 0.1054761261, 0.0240114573, -0.0426238999, -0.0134246722, 0.1805579364, 0.1803595275, -0.3909813464, 0.2518913448, 0.1336865723, 0.1309971809, -0.2239989042, 0.0206262022, 0.0429930761, 0.281304419, -0.0507083274, 0.1824107468, -0.2047245651, 0.2996823788, -0.0462536216, -0.1584310532, -0.043679975, -0.2114621699, 0.0092436802, -0.0766248405, 0.1495618522, 0.4088258147, -0.0732618049, 0.3769264221, 0.0553983971, -0.0642859116, 0.1847967505, -0.0677124783, 0.011781862, 0.0265191644, -0.0211126469, -0.2400422692, 0.2869226038, -0.1938942075, -0.098599948, -0.3416166902, -0.4383993745, 0.1606459767, 0.0614477843, 0.4100449979, 0.2410639822, -0.2603682876, -0.0223947614, 0.0411861427, 0.1884095669, -0.241229564, -0.0302341767, 0.3084079623, -0.1350416392, -0.1841015071, -0.0438070148, -0.4547436237, 0.0212290231, -0.3150005937, -0.0327494591, 0.2424470484, -0.0739829466, 0.0971798003, 0.1906075478, 0.1345988065, 0.1341574341, 0.0485782698, -0.2081838846, -0.1073849872, 0.4198902547, -0.1874566525, -0.4146063626, 0.1693685949, -0.0941703096, 0.3023671806, 0.1207817048, -0.2617173493, -0.3486175835, 0.0223568361, 0.0841834545, -0.1161619052, 0.0005431697, 0.0513888784, 0.0615984239, -0.198355183, -0.220217973, -0.1936365366, -0.0119823404, -0.1211419404, 0.1930121779, -0.1696726084, -0.1834975183, 0.5552967787, 0.8563187718, 0.3107657135, -0.2941718698, -0.0198015571, 0.0878221244, 0.3871377409, 0.2270508111, -0.3990763724, 0.1633844227, -0.41350317, 0.1365121752, 0.3416535258, -0.006613886, -0.0442048833, -0.0444786958, 0.051621601, 0.0912019908, -0.1697893143, -0.2644241154, -0.0283465479, 0.227847144, 0.0533501804, 0.2036976218, -0.2415155619, -0.0809588283, 0.3237986267, 0.3613367975, -0.3245863914, 0.1194322854, -0.3851375878, 0.2987189293, -0.272015214, 0.255225718, -0.315136373, 0.3091471791, 0.1574489921, 0.0931371003, -0.1766480058, -0.2636003494, 0.2334958017, -0.0927462131, 0.0469980352, 0.167651847, 0.0768598467, -0.1789134443, 0.029407911, -0.2039265037, 0.1848765165, 0.3138545454, 0.3291065395, -0.1619694531, 0.028454192, 0.0972552598, 0.2815680504, -0.2345639765, 0.1191424578, -0.4278557897, -0.0747592598, -0.0130677782, 0.0715849698, -0.204568997, -0.022799857, -0.0277722385, 0.1181156784, -0.5347540379, -0.2161837071, 0.3146810234, -0.1297747344, 0.1752552986, -0.2964361906, 0.1668875366, 0.0545074232, 0.0477735437, 0.5340451002, 0.261495769, -0.0147956898, -0.4740158319, -0.075168699, 0.0103576295, 0.2893354297, 0.181186825, -0.3556496501, 0.1588560939, -0.0256615393, 0.1911880672, -0.3821748197, 0.3040131032, 0.2679181695, 0.1259439588, -0.0786567852, -0.253020823, 0.0703310072, -0.0784630328, -0.1001707762, 0.1268386543, 0.1722684205, -0.0530274436, 0.3745054603, 0.1805084348, 0.9338232279, 0.3048351109, -0.1176401824, 0.3112783432, -0.0014499128, 0.1493897289, -0.3385820985, 0.16848059, -0.1839236617, -0.3425353765, -0.0159011558, -0.0749693364, 0.2120804042, -0.1406524181, -0.4320196509, 0.1974206567, -0.0337058976, 0.1461150497, 0.2102960348, 0.1458111852, -0.0190558955, -0.0646474808, 0.2706266344, 0.227931872, -0.0937652364, -0.0416852273, -0.1503836215, 0.1288319081, 0.1888367087, -0.0489155278, -0.3287362456, 0.0332733542, -0.2181818634, 0.1421866566, 0.1775966734, -0.0285910964, 0.0803400725, 0.2912408412, 0.6542515755, 0.2708211541, -0.200018242, 0.1803058982, -0.1543881297, -0.0423728414, 0.0070916936, -0.0903487206, 0.4447784126, -0.0496391952, -0.1026117057, 0.0386736766, 0.1057100669, 0.0518935472, -0.0228484124, -0.0338558406, 0.2343963981, -0.2121325135, 0.1545858234, -0.0428688154, -0.0333767273, -0.430932641, 0.169550091, 0.0172259938, -0.2008114159, 0.3604370654, -0.0283380598, -0.2871695161, -0.0228945799, 0.5290213823, 0.0331325047, -0.3315861821, 0.367095232, -0.3462989628, -0.1792693585, -0.3073852062, -0.1229001656, -0.1924331188, -0.2215661108, 0.1932686865, -0.3249642253, 0.160189867, 0.240854755, 0.3278455436, 0.3561697304, -0.2040896118, -0.1393813044, -0.2308541536, -0.2793034613, 0.0768877268, 0.0703210682, -0.0398704149, -0.3134396374, 0.0283526182, -0.0936170369, 0.3216764927, -0.3566921353, 0.2944234908, -0.2056773901, 0.005675815, -0.0150224939, -0.1854880303, 0.0732489973, -0.1046483144, 0.0243969597, -0.0404681824, -0.4105322659, -0.1462353617, -0.3995324373, 0.1405791342, 0.137889266, 0.1581654251, 0.0128125548, 0.1462969333, -0.1491275728, -0.1367697418, 0.1455404311, 0.4514709115, -0.1399775743, 0.2465093434, -0.0463886298, 0.3047940135, 0.1006541774, -0.1171557829, 0.3308511376, 0.2518533766, 0.1103930324, 0.2383767068, -0.1055428684, -0.0354178548, -0.1213152856, 0.2168017179, 0.2368118465, -0.0050425436, 0.3941177726, -0.4078184962, -0.0167480707, -0.1176987439, 0.276463449, 0.2374687344, -0.1001908705, -0.1347441077, 0.222813502, 0.2545299828, -0.350597918, -0.1477605999, -0.1271718144, 0.2385994494, 0.1553155631, 0.1561449766, 0.4248197079, -0.3391854167, 0.1903371662, 0.0715983808, 0.3079238832, -0.2116218954, 0.5018629432, -0.2749924064, 0.141473949, 0.0851251334, 0.3391651213, 0.102928184, 0.3265253007, 0.3486456275, -0.0819007829, 0.7880046964, 0.2494933605, 0.0495794304, -0.1053634733, -0.1126099974, 0.2925439179, -0.0345584601, -0.0738916099, -0.0221153535, -0.0717446581, 0.4817575812, -0.1989732683, -0.0967068076, -0.2307793498, -0.2808461785, -0.0241119899, -0.1283449829, -0.0772294253, -0.2852729559, -0.211991176, -0.1345701665, 0.2132541537, 0.0115759345, 0.0826340914, -0.0819599554, -0.0166169517, -0.1365756243, -0.0486811623, 0.2407118827, 0.1257004589, -0.2841628194, -0.135759607, 0.0312855951, 0.034406364, -0.0044520153, 0.4487254322, 0.4019373953, 0.377294302, -0.1418691278, -0.0686004758, -0.0889094323, -0.0059412122, -0.0337231755, 0.3227183223, -0.0299831405, -0.4964965284, 0.2722794116, 0.1768932939, -0.1794414222, -0.0078898976, 0.0196502414, -0.2082692087, -0.4713931382, 0.6122553945, 0.1800871193, -0.0107266307, -0.1204445213, -0.0348970555, -0.4972093105, 0.0367159806, 0.4607999027, 0.003861703, 0.177704215, -0.1913176179, 0.1193150803, 0.1058961153, 0.1353342533, 0.2601878345, -0.1021370739, -0.144309178, -0.0543945581, -0.5523700714, 0.3112110496, 0.1401669383, 0.1420586109, 0.1100059748, 0.2123398185, -0.1531262398, 0.1321938336, 0.0141487643, 0.0232291594, -0.038347479, -0.3030210733, -0.6422165036, 0.121192582, -0.242950201, 0.044162266, -0.050846003, -0.3419217169, -0.2108595669, -0.4180001616, 0.063045457, 0.0682832673, -0.2858638763, 0.2087311447, -0.0372838639, 0.5281235576, 0.0377628207, 0.1317008138, 0.0672624707, -0.1974611282, -0.2057646066, -0.0905560255, -0.256234169, 0.1957244873, -0.1716302931, 0.3562579751, -0.2618242204, 0.0302983522, -0.2557790577, 0.2457088381, 0.3573637009, -0.4469643235, -0.3357786536, 0.3720015883, -0.084739916, 0.139520824, 0.1167864203, 0.3923135996, -0.1237450615, 0.5088220239, -0.2650336623, -0.2870719731, 0.5064147115, -0.3036541641, -0.3115774989, -0.3253054619, 0.6123327613, 0.277746439, -0.1361266226, -0.5220626593, -0.0217417106, 0.38359797, -0.0126154274, -0.2013018727, 0.1189894527, -0.3484029174, 0.1207273006, -0.087178044, 0.3735612631, -0.0616127737, -0.1087297052, 0.1898054034, -0.0780483931 ]
https://github.com/huggingface/datasets/issues/2736
Add Microsoft Building Footprints dataset
Motivation: this can be a useful dataset for researchers working on climate change adaptation, urban studies, geography, etc. I'll see if I can figure out how to add it!
## Adding a Dataset - **Name:** Microsoft Building Footprints - **Description:** With the goal to increase the coverage of building footprint data available as open data for OpenStreetMap and humanitarian efforts, we have released millions of building footprints as open data available to download free of charge. - **Paper:** *link to the dataset paper if available* - **Data:** https://www.microsoft.com/en-us/maps/building-footprints - **Motivation:** this can be a useful dataset for researchers working on climate change adaptation, urban studies, geography, etc. Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Reported by: @sashavor
29
Add Microsoft Building Footprints dataset ## Adding a Dataset - **Name:** Microsoft Building Footprints - **Description:** With the goal to increase the coverage of building footprint data available as open data for OpenStreetMap and humanitarian efforts, we have released millions of building footprints as open data available to download free of charge. - **Paper:** *link to the dataset paper if available* - **Data:** https://www.microsoft.com/en-us/maps/building-footprints - **Motivation:** this can be a useful dataset for researchers working on climate change adaptation, urban studies, geography, etc. Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Reported by: @sashavor Motivation: this can be a useful dataset for researchers working on climate change adaptation, urban studies, geography, etc. I'll see if I can figure out how to add it!
[ -0.6230252385, 0.0684203506, -0.2241069973, -0.0011125691, -0.0653919727, -0.0625751391, 0.102517128, 0.2215957493, 0.1189826429, 0.323628962, 0.2269605994, 0.2179023921, -0.2382514775, 0.4009600878, 0.0867367536, -0.0855380371, -0.0039108694, 0.0257601775, -0.3132507205, -0.0593193918, -0.2509875298, -0.0065763742, 0.0509934574, -0.1066528335, -0.1733566523, -0.2124451101, -0.2157186866, 0.0495200939, -0.1937623024, -0.1133070737, -0.148474887, 0.0985475034, -0.031033447, 0.1762388945, -0.0000950589, 0.0303419009, 0.0873690322, -0.0173285678, -0.1495587379, 0.032293126, -0.1998690218, -0.2357269824, -0.1913838834, -0.0995224193, -0.2482877672, -0.3055035472, 0.1753943413, -0.1604301184, 0.1601268649, 0.1716116965, 0.4217909276, 0.0971787572, -0.0057385936, -0.0885418728, 0.1435341537, 0.3612350523, -0.1792610288, -0.1117323488, 0.2214248478, 0.0567653626, -0.1190082133, 0.3845183253, -0.1306178719, -0.0669640005, 0.1537838429, -0.0036899932, 0.4531490207, -0.0692375302, 0.0502349362, 0.2914082408, 0.3696750998, -0.0297207348, 0.0431034043, -0.2419793606, -0.0569373071, -0.1633581668, 0.0782718956, 0.3049123883, 0.0192149989, 0.0670702159, -0.3540784121, -0.2523003221, -0.1428036243, 0.2731842697, 0.0099574327, 0.1090831012, -0.2636860013, -0.1367985308, -0.0572413318, -0.011547639, -0.0016432218, -0.0419682711, -0.0403618887, -0.1071385294, 0.1589352787, -0.2846083045, 0.2675792575, 0.374053061, 0.2439795882, 0.0790722817, 0.2171359211, -0.0156319477, 0.1460668445, 0.0936228186, 0.0302221477, -0.0052096471, -0.2541324496, -0.0691237003, 0.0850651115, 0.0107921548, -0.0360971466, -0.0156646185, 0.0807581916, -0.0613358244, -0.3894500136, 0.0395662226, 0.1997944713, -0.1449992806, -0.2350882292, -0.165811643, -0.0954441056, 0.0673330128, 0.2127807736, 0.1905244887, 0.1502643228, -0.228573218, -0.062876597, 0.1328580678, 0.0877080336, 0.0078048818, -0.1772198677, -0.0224578269, -0.1922894418, 0.2782241702, 0.1723858714, 0.1065270156, 0.3462496698, -0.2274959236, 0.1222019196, 0.1039485559, 0.2224633098, 0.2691274285, 0.3936699331, 0.0028165895, -0.1251041144, -0.3085379004, -0.0050264494, 0.0725638568, -0.3081751466, -0.1603622139, -0.103409335, -0.1174107939, -0.6414911747, 0.3258069456, 0.0167042986, -0.1306330115, 0.3455613852, 0.419429481, -0.0807242543, 0.1015363932, 0.1099149287, 0.546833992, -0.2805463076, -0.1869442761, 0.0710543543, 0.3174803257, 0.2171296626, -0.1784775406, -0.0948304683, 0.0587574542, -0.1399820298, -0.2157734782, -0.0245056842, 0.3536582589, -0.2140519619, -0.1769832224, 0.0251721703, -0.099185437, -0.1977201849, 0.0249368921, -0.4823988676, -0.3185200691, 0.1451164335, 0.0448160954, 0.219604522, -0.023454953, -0.1469697207, 0.2988385558, -0.1710610241, 0.0904274285, -0.2635374665, -0.3852530718, -0.0747676268, 0.2344446629, -0.0112596601, 0.0674141347, 0.220769465, 0.1787234247, 0.023979947, -0.1878062487, 0.2258797288, 0.2710597813, 0.1962820888, -0.0687554032, -0.3588470221, -0.1836933494, -0.2154415697, -0.2696718872, -0.320730567, -0.1458588392, 0.0978270024, -0.1733013988, 0.0119501576, -0.1436830163, -0.1488268226, -0.0343432352, 0.4483798444, 0.1232347935, 0.1259394288, 0.0121795163, 0.1993553936, -0.147078678, -0.000267148, -0.0755678862, 0.1166489124, 0.2808681726, -0.1394070238, -0.0229547676, 0.1239662692, 0.3052732944, 0.0543754883, -0.0755761787, 0.2510988116, 0.2471221089, -0.4497466683, 0.1395654976, 0.2692777216, 0.6203434467, 0.0687893257, -0.2716166973, 0.2816954851, 0.0852929354, -0.1750497222, 0.0361089259, -0.3376237452, 0.1835888028, 0.2295090854, 0.0209701881, -0.1751338094, 0.3101275563, -0.0707542524, -0.2436031997, -0.1267686486, -0.3893863261, 0.0852044523, 0.1160212904, 0.0240438208, -0.0940997228, 0.061693728, 0.2042935044, 0.16076608, 0.0418612957, 0.3469269276, 0.078842707, -0.3081942797, 0.0382650718, 0.1487523168, -0.0959709585, 0.0808033049, 0.3439021409, 0.227925539, 0.0097229704, 0.0924158096, -0.0774167776, 0.1614506841, 0.1702508479, -0.0818790197, 0.1255160868, 0.0986687094, 0.07064794, -0.6637937427, 0.0366607308, 0.0985407457, -0.0511816069, 0.0899759531, -0.1714109182, -0.0347532704, -0.4059109688, -0.0967212394, -0.0804724842, -0.0178094953, -0.2373981178, 0.2716464102, 0.0216041654, -0.2388004661, 0.2244889438, 0.1554944366, 0.3148773313, -0.1643856019, 0.0231540706, -0.0639287755, -0.3015565276, 0.0390948914, 0.3722414374, 0.1592795849, 0.0796655118, 0.5405751467, -0.2245625854, 0.5198447108, -0.5102854967, -0.6112651229, 0.0957111567, 0.1514915079, -0.2901204526, 0.2286681086, 0.1449795216, 0.1110249311, -0.1933416724, 0.031603083, -0.0301306993, -0.0487856269, -0.2493217289, -0.2277148664, -0.1805244237, -0.2456380278, 0.1113200188, -0.0120782508, -0.5066966414, 0.2648172379, 0.2403164357, 0.0354921818, 0.1074683964, 0.115818128, 0.203811571, -0.6048651338, 0.223469913, -0.1103957891, -0.3730152845, 0.0482160151, -0.3968027532, -0.0938652605, -0.1508735865, -0.1597166508, -0.0215468388, -0.0643769279, -0.3661303818, -0.2579318285, -0.1849818379, 0.2595289946, 0.3191808164, 0.067148231, 0.451118499, 0.3124197423, -0.2581288815, -0.0313524902, -0.0152909905, -0.0152022019, 0.3127682209, 0.3218160868, -0.1103199795, -0.1075892821, -0.0312793888, 0.2447683215, 0.2708537579, -0.261562705, 0.3958712816, -0.0930595845, 0.5226427317, -0.0089007132, -0.1838509291, 0.3940803111, 0.0300673768, 0.09975674, 0.4693874419, 0.2889022231, -0.0597188026, -0.0623610467, 0.0250977948, -0.326058507, -0.203230679, -0.0565261096, 0.0013792209, 0.1906847656, -0.0734798089, -0.1845306903, -0.3187710345, -0.1213814467, 0.481363982, 0.1417663544, 0.1107131541, -0.1906782985, 0.0330683962, 0.2859847844, -0.4778060317, 0.1688167751, -0.0384081155, -0.6828502417, -0.5322359204, -0.0232676193, -0.1445317864, 0.0450762697, 0.1862589568, -0.1528745294, -0.0885685533, -0.1438150108, 0.163558796, 0.084368892, 0.1585358381, -0.0749697611, 0.0854643732, 0.2112660855, 0.4735497534, -0.2738243043, 0.0052975751, 0.2657744586, 0.2148845047, -0.0757661611, 0.2871131599, 0.1648853123, -0.3182854056, -0.2095270753, 0.2221398801, -0.0155636072, 0.122319147, 0.4529213905, -0.1820938885, 0.1176414043, 0.0006025285, -0.0711591691, -0.0766973644, 0.3309122324, 0.2759958804, 0.0682698712, 0.1407665312, 0.3495259285, 0.1246497706, 0.4100807607, -0.3319395483, 0.0867276788, 0.1538971812, -0.3069649339, 0.2242827713, 0.2957184911, 0.1607390344, 0.0075138249, -0.0488597453, 0.0738078952, -0.5192340612, 0.1320583671, 0.0601365492, 0.2293600291, 0.0801773667, 0.1553260684, 0.3070637882, 0.0583861917, -0.2221194506, 0.2683373094, -0.0275300816, -0.21475631, 0.2057553232, 0.2147282064, 0.7943812013, -0.0279023498, 0.0585987829, 0.3563000858, -0.1825183928, -0.1278188527, 0.0548618212, -0.1430567503, 0.0284268558, -0.2834558189, -0.0255117938, 0.0109051839, -0.0159111694, 0.2491571903, -0.3056860566, -0.1912504733, -0.0228171274, 0.1667384058, -0.082226038, 0.1199418157, 0.1780030876, -0.2580582798, 0.0419806726, 0.3108380139, 0.1387300342, 0.2688902318, -0.0310554747, -0.1904050112, 0.312684834, -0.141859442, -0.2654378414, -0.082591027, -0.0297538564, -0.2243077457, -0.1122975945, 0.0149106532, -0.0759321153, 0.088669911, 0.362470746, -0.0803183168, -0.3157358766, 0.2020474225, 0.1063031703, 0.0051078871, -0.1376445442, 0.0983408242, -0.1380514354, -0.1262559593, 0.1630841047, 0.0074682049, -0.0462047607, -0.1249520034, -0.4165939689, -0.1133064404, 0.2288374901, -0.0053540319, 0.5253329277, 0.0532201901, -0.0698421001, -0.2707271278, 0.2843100429, 0.1614393443, 0.1358451694, 0.0491370931, 0.2837805152, -0.122045137, -0.1672076583, 0.1038563177, 0.0259812027, 0.1419001222, -0.1899153888, -0.0006592125, -0.2138886154, -0.4174344242, 0.0332389623, -0.0608516112, -0.0457497686, 0.1162160188, 0.1164601967, -0.22965689, 0.1569875777, 0.3926699758, 0.1478807926, -0.0292280503, -0.0863291621, -0.1877084672, -0.3688638806, 0.2121438235, -0.1260418892, 0.405759722, 0.0060097203, 0.0187431499, 0.1353940666, 0.034127079, -0.5436128378, -0.025735084, -0.2212553024, 0.0951051638, 0.1314081103, -0.2149347216, 0.234157607, 0.0308505595, 0.2014451921, -0.2828035355, -0.2702723742, -0.3398700058, -0.1597587168, 0.0696218163, -0.1033728793, 0.1781077981, 0.3261271417, 0.0630130321, -0.1480593681, -0.1249706298, 0.0129692331, -0.1350702047, 0.0083860457, -0.1960858405, 0.0350236669, -0.0264253579, -0.0611907765, -0.0173749104, -0.0235321447, 0.0424218848, -0.1137640625, 0.1766497344, -0.13867791, -0.120761916, 0.1893794537, 0.2129257321, 0.3505797386, -0.2509462237, 0.2759136558, 0.2776058316, -0.1396074295, 0.365039587, 0.0073035434, -0.404553473, -0.0795771703, 0.1772401333, 0.0323736705, 0.4277228117, -0.4086654186, 0.011717733, 0.1282572895, -0.1319140494, 0.4178149402, 0.1623308659, 0.2632781863, -0.1911295801, 0.0869376585, -0.0108884908, -0.08888603, 0.0302267894, -0.0044231415, 0.2714772522, -0.0076162145, -0.1423959583, 0.377635628, 0.1821472943, 0.128664434, 0.0805470943, 0.0678061619, 0.370539099, -0.1380263865, 0.0275957044, 0.1527684182, 0.0977486894, 0.525134325, 0.0518852435, 0.2139783204, 0.0660583079, 0.0854438022, 0.208162412, -0.0804193169, -0.0528518446, -0.3378162086, 0.425286442, -0.0080624484, -0.1204300746, -0.1732716709, -0.1280678064, -0.0152622238, -0.1200762987, 0.2446439564, -0.2435303777, 0.1986075789, -0.237763688, 0.2374534905, -0.0236408673, -0.0473594144, 0.0158294253, 0.23979716, -0.1980521083, 0.2210667282, -0.2560223937, -0.1375745088, 0.0605703183, 0.4935970902, 0.1389360428, -0.1153160632, -0.1423376203, 0.0269994736, -0.1033097357, -0.125505656, -0.329720974, 0.0240420364, 0.0214968398, -0.1325968802, 0.427267015, 0.2687672973, -0.3066293001, -0.0320829377, -0.1506849825, -0.0244072638, 0.2835614681, -0.2537998557, -0.0056196395, -0.0525399782, -0.2152951956, -0.0921741948, -0.2154503465, -0.286265105, -0.0455487333, -0.2045320421, 0.0657587871, -0.0375813991, 0.1787769198, -0.009369568, 0.2979602218, 0.2489988804, -0.0259635113, 0.0779220611, -0.4312406778, -0.2481151223, 0.2071686238, -0.2502092123, 0.0365793183, 0.0501916781, -0.0540021956, 0.20509395, 0.1456218064, -0.0717368126, 0.0459603556, 0.0319516771, -0.1186893284, -0.405033052, 0.0898734033, 0.1561273336, 0.1325045079, 0.1925547123, -0.1578134596, 0.0151293967, 0.0497854166, 0.2883237898, -0.3631317616, 0.0406083092, -0.5141162872, -0.1600818932, 0.1661543846, -0.2204019427, -0.0455407649, -0.3230527043, -0.3244898617, -0.0422532745, -0.0764983445, -0.0923652127, -0.0277592465, 0.2801038623, -0.032969486, -0.118993327, 0.0649992973, 0.0712718368, 0.1353489906, 0.2421405911, 0.1140562743, -0.0565738678, 0.2857165933, -0.1097850949, 0.1879213005, 0.0829141587, 0.0898012519, -0.0343562402, -0.2090671957, 0.1867343038, -0.2917201519, 0.3974739611, -0.3262176812, 0.0062652975, 0.0756154954, 0.0850985199, -0.1385529339, -0.0676285326, -0.1220237538, 0.0227505267, 0.1825364232, -0.0107604219, 0.0817347616, 0.1383604407, -0.143631056, -0.1232244894, 0.007433109, 0.2546877861, 0.0474909805, -0.1564382911, -0.1412763, -0.300254941 ]
https://github.com/huggingface/datasets/issues/2730
Update CommonVoice with new release
Does anybody know if there is a bundled link, which would allow direct data download instead of manual? Something similar to: `https://voice-prod-bundler-ee1969a6ce8178826482b88e843c335139bd3fb4.s3.amazonaws.com/cv-corpus-6.1-2020-12-11/ab.tar.gz` ? cc @patil-suraj
## Adding a Dataset - **Name:** CommonVoice mid-2021 release - **Description:** more data in CommonVoice: Languages that have increased the most by percentage are Thai (almost 20x growth, from 12 hours to 250 hours), Luganda (almost 9x growth, from 8 to 80), Esperanto (7x growth, from 100 to 840), and Tamil (almost 8x, from 24 to 220). - **Paper:** https://discourse.mozilla.org/t/common-voice-2021-mid-year-dataset-release/83812 - **Data:** https://commonvoice.mozilla.org/en/datasets - **Motivation:** More data and more varied. I think we just need to add configs in the existing dataset script. Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
25
Update CommonVoice with new release ## Adding a Dataset - **Name:** CommonVoice mid-2021 release - **Description:** more data in CommonVoice: Languages that have increased the most by percentage are Thai (almost 20x growth, from 12 hours to 250 hours), Luganda (almost 9x growth, from 8 to 80), Esperanto (7x growth, from 100 to 840), and Tamil (almost 8x, from 24 to 220). - **Paper:** https://discourse.mozilla.org/t/common-voice-2021-mid-year-dataset-release/83812 - **Data:** https://commonvoice.mozilla.org/en/datasets - **Motivation:** More data and more varied. I think we just need to add configs in the existing dataset script. Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Does anybody know if there is a bundled link, which would allow direct data download instead of manual? Something similar to: `https://voice-prod-bundler-ee1969a6ce8178826482b88e843c335139bd3fb4.s3.amazonaws.com/cv-corpus-6.1-2020-12-11/ab.tar.gz` ? cc @patil-suraj
[ -0.3897119462, 0.0689001679, -0.0436254442, -0.1407741904, -0.0075453967, 0.23610425, -0.0866277367, 0.4099909365, -0.0332521051, 0.0552656539, -0.2268212289, 0.1267443597, -0.1374961436, 0.3757570982, 0.3153651059, -0.1025516763, -0.0221796222, 0.0116233528, 0.3541307449, -0.2009494603, -0.1525128484, 0.1563083231, 0.0348926336, -0.0708512515, -0.067563206, 0.0845844895, -0.1082300991, 0.0525996238, -0.1277038455, -0.3679586649, 0.1854727268, 0.3187079728, 0.2517136633, 0.2469443679, -0.0001240131, -0.4164185524, 0.1370145828, -0.1946640313, -0.5836829543, -0.1107829213, -0.2506591082, 0.0372980386, -0.1177454069, 0.1902167797, 0.1305421889, -0.0199203007, 0.0473643094, -0.3805802763, 0.0396900661, 0.1962826848, 0.0604044423, -0.1646222472, 0.1000420377, -0.2372970581, 0.0352663696, 0.163463518, -0.0934525728, 0.3102362156, 0.6635543704, 0.2257747054, 0.2486784905, 0.04454761, 0.1510127187, -0.307290107, -0.0004822602, 0.1340317577, -0.2501452267, -0.453081429, 0.1524718404, 0.552359283, 0.6914020777, -0.1817150414, -0.3851209581, -0.1164634004, 0.1334379613, -0.5129934549, -0.111949347, 0.0647772551, -0.0460772589, 0.1696079075, 0.2209829986, -0.456438005, -0.0083204731, 0.453556329, 0.2018191516, 0.1871569008, 0.0545916557, -0.137604326, 0.3618969917, -0.0942296907, -0.0713778883, 0.0558888093, 0.0256277826, 0.4348697066, 0.0762249827, -0.3975181282, -0.011453025, -0.5160591602, 0.4938570261, -0.2566072941, 0.0837343335, 0.151826486, -0.6276643872, -0.1240407676, 0.3796100914, -0.2602546215, -0.1462115049, 0.0701046437, 0.3797552884, 0.1778351516, 0.816459775, 0.1496023238, -0.2681256235, 0.0660155267, -0.2071324587, 0.1514521688, -0.0152980275, -0.3966100514, -0.117707409, -0.0770763904, 0.0033961087, 0.0795912147, -0.3144280016, 0.0444230698, 0.0949639678, 0.1216045469, -0.0240253508, 0.1572531909, 0.1144949496, -0.2641267776, 0.1021915227, 0.1461636573, 0.0444498211, 0.1630932987, 0.0774117112, -0.6380671859, 0.0543287247, 0.0733753815, 0.3085194528, -0.1125858501, -0.309758544, 0.299652189, -0.3038831651, -0.1478010416, 0.0384141132, 0.1520602107, -0.2544488311, 0.3241443634, -0.3895080984, 0.1245366633, -0.0625213087, -0.4871846735, -0.1174951419, 0.053168498, 0.1520287395, -0.3868252933, 0.3178739846, 0.2663355172, -0.2161913514, -0.3090519309, -0.0580611788, 0.2228973955, -0.3956087828, 0.0290813409, 0.06880375, 0.5167530775, -0.6113047004, -0.0970234647, -0.3922158182, 0.1342052519, -0.2091183364, 0.1252500117, -0.0284996405, 0.0580734126, -0.4365789294, 0.0588036478, 0.581656456, -0.5174857378, -0.2799948454, 0.2649071217, -0.2213200331, -0.2088127136, 0.1940359175, 0.1273486614, 0.4670023918, -0.012724217, 0.1767001152, 0.1752274036, -0.2556613982, 0.0175011232, -0.091315113, -0.4835680425, -0.265738368, 0.1638793647, 0.147958532, -0.1275346577, 0.1275567114, -0.0209600255, 0.4738977849, -0.0539264269, 0.2950319946, 0.205882892, 0.3243654072, 0.0320436098, -0.0217146557, 0.1040778905, -0.3587937355, 0.0817735195, 0.0326969847, 0.1676014662, 0.0703767687, -0.3706408143, -0.2648739219, -0.3648481071, -0.0455135368, -0.1106759608, -0.0740582496, 0.2317180634, 0.2323176116, -0.1991371065, -0.2143363655, 0.204493776, 0.2810823917, 0.1102149114, 0.0540388525, 0.0138708726, -0.0384277552, 0.1122700274, 0.2321036756, 0.1626627892, 0.223875016, -0.2100113928, -0.1075394005, 0.2778186798, -0.0040991642, 0.6636210084, 0.2237514555, 0.2109286785, 0.2058422267, 0.0763207823, 0.2137947977, 0.2449190021, -0.1573191881, 0.0034837797, -0.2436186075, 0.282846123, 0.3007521331, 0.0037646368, 0.1546224058, 0.2307997346, 0.1304880232, 0.0746317878, 0.0362135321, -0.1223573685, -0.1598811001, 0.0585063025, 0.3595191538, -0.1486737728, -0.5801507831, 0.3750168681, 0.4067928493, -0.1300884038, 0.1598213464, 0.2438951135, -0.3069542944, -0.1593470424, -0.0127572082, 0.1984667033, 0.1514738053, 0.2299784571, 0.0910492837, 0.1847024709, 0.291786015, -0.0427496545, 0.233338356, -0.0779763013, -0.0976061672, 0.4231738448, -0.1869978309, 0.1300890595, -0.3433694541, -0.1746971011, -0.0153606385, -0.0549227968, 0.0351476967, -0.460986495, 0.0200646669, 0.1403176785, -0.4364109933, -0.0405482948, -0.0631512105, -0.3243234754, 0.218603611, 0.302869916, -0.0349642783, 0.058798559, -0.3607232571, 0.2980544567, -0.3364135325, -0.4129268229, -0.0940513611, -0.0122431815, -0.2489034384, 0.0277525336, 0.0449791104, -0.2859223783, 0.235046804, -0.227262795, 0.1947665811, -0.4353834391, -0.4220510125, 0.160883069, 0.016744826, -0.4277881682, 0.1313136667, -0.2983763516, 0.2825029492, 0.0157576986, -0.307821095, -0.1229287386, -0.1884716153, -0.43406111, -0.1374359727, 0.2221313566, 0.1926535368, -0.7328444719, -0.3953498602, -0.4587978721, 0.1181817204, -0.2502522767, 0.0705012232, 0.0066024028, -0.0758033246, -0.1232872605, -0.2171438634, 0.2414302528, -0.2790501118, 0.2103628218, 0.2944697738, -0.1946481466, -0.3588210344, 0.0477150306, -0.2169560641, 0.2603700757, 0.0520535819, -0.321128726, 0.4290320277, 0.153717503, 0.2312137783, -0.0417889282, -0.0362405851, 0.5302615762, 0.2607547045, -0.1030116752, 0.0379975885, -0.050422594, -0.2390134633, 0.2745100856, 0.2551523745, 0.0466813594, 0.250911206, 0.1000867411, 0.7929121256, 0.0699421465, 0.091732353, 0.0113675678, -0.1323479116, 0.3699170351, 0.0880689472, -0.1667705774, -0.0713276416, -0.1005611792, 0.1786995679, 0.335919112, 0.2163040191, -0.0623995736, -0.1944149137, -0.1485819668, -0.1240452528, -0.0507993773, 0.0870497972, -0.1279829293, 0.3972433507, 0.2608755231, -0.026205577, -0.1185220778, -0.0044024065, 0.2155896425, 0.1549449116, 0.0986183062, -0.0102552027, 0.3189976513, 0.4521581829, -0.3467699885, 0.1879073083, 0.329207778, 0.1728173643, -0.3932291865, 0.0149851069, -0.0070267171, 0.1347651631, 0.2318742573, -0.2194044739, -0.1079749018, -0.0550619587, -0.0080592707, -0.071770981, 0.1767872572, -0.274818182, 0.0279458426, 0.4873167872, -0.1069932133, -0.3011750579, -0.0860538781, 0.5095319748, 0.184773013, -0.0767921209, 0.1322136372, 0.2080124021, -0.1358365417, -0.3548856378, 0.056572102, -0.1595714092, 0.0538224727, -0.1640257984, -0.101811707, 0.4033176601, -0.0367180482, 0.0523286983, -0.3107071221, 0.1715810001, 0.358283788, 0.255603075, 0.1865487248, 0.0445892327, 0.4322361946, 0.4311977327, 0.0220361277, -0.2229163349, 0.037235152, -0.5398785472, 0.3911567628, 0.4940473437, 0.1206308976, -0.1265558749, -0.0328854062, -0.2956703305, 0.1037109867, -0.0365499929, 0.3544362485, 0.219147563, -0.5651631951, -0.4353216588, 0.1628648341, 0.1665746272, -0.2549288571, 0.2579556108, -0.1141850799, -0.1582357287, -0.0315856636, -0.2802398205, 1.1013662815, 0.2786726952, 0.3372335434, -0.0093834782, -0.3418519795, 0.197294578, -0.2426373214, -0.0923857167, -0.1486101449, 0.2155488878, -0.2085613012, 0.0637802184, -0.2620514333, 0.0314015001, -0.2880211771, 0.4694894552, 0.0665203482, -0.0216716658, 0.2636144757, 0.4605935812, -0.2247127891, -0.3435025811, 0.2273363471, -0.0084925629, 0.1254480779, 0.6293459535, 0.0409243777, -0.3916579783, -0.2945459485, -0.3658156991, -0.4083193541, 0.2242783606, 0.0314943604, -0.0602371506, -0.133697018, -0.0498060212, 0.318279326, -0.1848172843, 0.3094366193, -0.0069449516, -0.2686256468, 0.0355223529, 0.1778985262, -0.1250359714, 0.3106164038, 0.0363711044, 0.086206466, -0.0954759121, -0.248439908, 0.1662698686, -0.054573182, -0.2792824209, -0.1199140474, -0.1825053841, 0.0352062061, -0.2328576893, -0.2651262283, 0.3359255195, -0.2981414497, -0.2906295657, 0.0317699425, 0.1675310433, -0.1748853326, -0.0792965591, 0.3043961525, 0.0575805455, -0.1693573892, 0.6294356585, 0.0792640299, -0.2609728873, 0.4255690277, 0.0130990073, -0.0996786952, -0.1657107174, 0.0735645294, 0.2148170024, -0.507422626, -0.0870022327, -0.2099501044, -0.0243631154, -0.2353969365, 0.3598625064, 0.005256284, 0.3169462681, -0.3262871504, -0.2382823378, -0.3997450769, 0.1371047348, 0.013098307, 0.3953423202, -0.0526323393, 0.0024274997, 0.2174755484, -0.1749490649, -0.199487716, 0.1233491823, 0.3694257736, -0.1273794025, 0.6541806459, 0.296156168, 0.2610888779, -0.0086466856, -0.0815129876, -0.1322220266, -0.2986318469, 0.0087530985, -0.0757562071, 0.1869588494, 0.0391259342, -0.097215727, -0.0929516703, -0.0846460685, -0.2465289384, 0.290964365, 0.0212854967, 0.0734147877, 0.1227351278, 0.0313342661, -0.0714008808, -0.0764034018, 0.0340362415, 0.286024183, 0.0586289912, 0.4684433937, 0.1377411187, 0.4391717017, -0.1340583712, -0.2675174475, 0.1980859339, 0.2103239298, 0.3753089309, -0.2128184587, 0.3068582118, -0.0254090205, -0.0645924211, 0.1863839179, 0.2407656312, 0.307282716, -0.2076262385, 0.0092560276, -0.0353046693, 0.069149971, -0.4054577649, -0.0847055316, -0.2982487082, -0.0039068051, 0.0256101489, 0.1183419079, 0.35224998, -0.035068661, 0.582360208, -0.0325139873, 0.0720369741, -0.0760499835, 0.3950066864, 0.4880949259, -0.0044317245, 0.2583202422, 0.083624281, 0.0684486628, -0.0589558296, -0.0442602746, -0.551355958, -0.1905621886, 0.1594310701, 0.0079045435, 0.4129479229, -0.3530225158, 0.2965222001, 0.4625872374, 0.1082486808, -0.1131669432, 0.3864280283, 0.5600412488, 0.1485452205, -0.0364753529, 0.1294240654, 0.1728713214, 0.1189909279, -0.1233241856, -0.0667545348, -0.2481356412, -0.5411579013, 0.2119110078, 0.0681433976, -0.1262340248, 0.1150531471, 0.0577239022, 0.1066492796, -0.2904768586, -0.2527494431, 0.0812531114, -0.0183550157, -0.1742882282, 0.0859903544, -0.113555789, -0.1134594381, 0.294274658, 0.5817174911, 0.1421031654, -0.1389168203, 0.2913802862, 0.3578941524, -0.0027548578, 0.1183114201, 0.178740859, -0.1841953844, 0.1834462881, 0.1833061874, 0.1276128292, 0.0095174648, 0.0336617716, 0.0910181105, 0.1196569353, -0.2098662704, -0.0627058223, 0.4658009708, 0.2066521198, -0.0252022892, -0.336609453, 0.0385633558, -0.2646129429, -0.1521444172, 0.4577649236, -0.021062009, 0.0115575939, -0.1262844652, 0.0023986138, 0.2506896555, 0.0299121588, 0.3688193858, -0.0540839136, -0.0706750602, -0.1639257073, -0.3195559382, 0.0779213458, 0.0733781904, -0.0143793076, -0.366042465, -0.0116930157, 0.2468601614, 0.2482656389, 0.404749155, 0.1105210558, -0.2760941088, -0.0818063468, 0.1156420559, -0.1208292842, 0.2238268256, 0.4752203226, -0.0172496811, -0.1476758271, 0.0066567212, -0.1145588756, -0.1547754705, -0.1602435708, -0.1522592902, -0.233266592, -0.2176438123, 0.3434555531, -0.2784246802, 0.3796600699, -0.2898497581, -0.2737596631, -0.1534914374, 0.0320379473, -0.1974920183, 0.26005584, 0.0700505376, -0.0445153154, -0.2142014205, -0.267490387, -0.2769861221, 0.105399102, -0.0668185055, -0.1746442467, -0.1279672086, 0.0851644948, -0.1741347909, -0.0723674372, 0.1871170551, 0.227742672, -0.2829014063, -0.1032683849, -0.4452148378, -0.2198549509, 0.266715616, 0.158392936, 0.1945145875, -0.2978352308, 0.2802812159, 0.2864381373, -0.1136660054, -0.1449758708, 0.2475972772, 0.1035009772, 0.1211750209, 0.066486612, 0.0072771125, -0.1020930409, 0.0491353944, -0.2674432397, 0.559820354, 0.3930935264, -0.1803132594, -0.2255280316, -0.406381309 ]
https://github.com/huggingface/datasets/issues/2728
Concurrent use of same dataset (already downloaded)
Launching simultaneous job relying on the same datasets try some writing issue. I guess it is unexpected since I only need to load some already downloaded file.
## Describe the bug When launching several jobs at the same time loading the same dataset trigger some errors see (last comments). ## Steps to reproduce the bug export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do export OUTPUT_DIR=${MODEL}_${TASK_NAME} sbatch --job-name=${OUTPUT_DIR} \ --gres=gpu:1 \ --no-requeue \ --cpus-per-task=10 \ --hint=nomultithread \ --time=1:00:00 \ --output=jobinfo/${OUTPUT_DIR}_%j.out \ --error=jobinfo/${OUTPUT_DIR}_%j.err \ --qos=qos_gpu-t4 \ --wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL" done done ```python # Sample code to reproduce the bug dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter))) dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter, args.filter + 5000))) dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists") dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True) ``` ## Expected results I believe I am doing something wrong with the objects. ## Actual results Traceback (most recent call last): File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split check_duplicates=True, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__ self.stream = pa.OSFile(self._path, "wb") File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__ File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "compute_measures.py", line 181, in <module> train_loader, val_loader, test_loader = get_dataloader(args) File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists") File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare + str(e) OSError: Cannot find data file. Original error: [Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets==1.8.0 - Platform: linux (jeanzay) - Python version: pyarrow==2.0.0 - PyArrow version: 3.7.8
27
Concurrent use of same dataset (already downloaded) ## Describe the bug When launching several jobs at the same time loading the same dataset trigger some errors see (last comments). ## Steps to reproduce the bug export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do export OUTPUT_DIR=${MODEL}_${TASK_NAME} sbatch --job-name=${OUTPUT_DIR} \ --gres=gpu:1 \ --no-requeue \ --cpus-per-task=10 \ --hint=nomultithread \ --time=1:00:00 \ --output=jobinfo/${OUTPUT_DIR}_%j.out \ --error=jobinfo/${OUTPUT_DIR}_%j.err \ --qos=qos_gpu-t4 \ --wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL" done done ```python # Sample code to reproduce the bug dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter))) dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter, args.filter + 5000))) dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists") dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True) ``` ## Expected results I believe I am doing something wrong with the objects. ## Actual results Traceback (most recent call last): File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split check_duplicates=True, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__ self.stream = pa.OSFile(self._path, "wb") File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__ File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "compute_measures.py", line 181, in <module> train_loader, val_loader, test_loader = get_dataloader(args) File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists") File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare + str(e) OSError: Cannot find data file. Original error: [Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets==1.8.0 - Platform: linux (jeanzay) - Python version: pyarrow==2.0.0 - PyArrow version: 3.7.8 Launching simultaneous job relying on the same datasets try some writing issue. I guess it is unexpected since I only need to load some already downloaded file.
[ -0.5779123306, -0.0809999704, -0.0453642756, 0.4501566291, 0.2459627241, 0.0139754117, 0.5565330386, 0.2723813951, 0.1843711585, 0.1907433271, -0.0311777517, 0.14643538, 0.0212426111, 0.1441881955, -0.0885508806, 0.0235603936, 0.1309164762, -0.2257413715, -0.3968794942, -0.0203632861, -0.2406820059, 0.1446245313, 0.0855502039, 0.1932707131, -0.5113248229, -0.3433860242, -0.0541758016, 0.0557931587, 0.259003967, -0.0671324283, 0.1664634645, 0.285938859, -0.0116239041, 0.8678804636, -0.0001090042, 0.1391354501, 0.1289677322, 0.1109725311, -0.0634468049, -0.2272718549, 0.0330817848, -0.1079749092, 0.1186954007, -0.313778013, 0.1189508662, 0.0584995784, -0.0300555695, -0.209353596, 0.5382679105, 0.0736097395, 0.2384029329, 0.3819693923, -0.306597054, -0.2297081947, 0.1842455417, 0.0569793731, 0.0860359743, 0.0703066885, 0.1006151736, -0.1604283452, -0.024353914, 0.429826498, -0.1288747787, 0.2059704512, -0.0231340267, 0.0869600326, 0.10513895, -0.5513932705, 0.0767244846, 0.0688891113, -0.011532601, -0.3123030066, -0.3542194963, -0.3473510146, -0.0639267713, -0.2551648915, 0.0928215459, 0.3452661037, -0.2033959329, -0.1923073977, -0.092051506, 0.1867491752, -0.0755040273, -0.1349956989, 0.2415364087, 0.3306526542, 0.0830518082, 0.2387527227, 0.0692323074, 0.0927333459, 0.3280492425, -0.1612951159, -0.101436004, -0.0775529742, -0.6200731993, 0.0457460731, -0.0160570331, -0.4652229249, 0.1843743324, -0.18587327, -0.1885086745, 0.0499864891, 0.1717090011, 0.1031512618, 0.2989793718, 0.0960015208, -0.3177453876, 0.2705483139, 0.3438622653, 0.1331976354, -0.5029963255, 0.065274179, -0.0156138875, -0.2567522526, 0.2176098228, 0.1873344481, 0.2414576113, -0.0829890966, -0.3572191894, -0.0523145422, -0.0511175245, -0.05585251, -0.1014151126, 0.4524842203, 0.1777903885, 0.1567743123, 0.0913129896, 0.1969438493, -0.1822921336, 0.062487375, -0.3012305498, -0.0290755145, -0.0146924928, 0.214333266, 0.1157392189, -0.0643142536, 0.224884972, 0.337944597, 0.0498888567, -0.4685382843, 0.2624686658, -0.3657256067, -0.2471659333, 0.1961348057, 0.1851790249, 0.1372067928, -0.1051606834, 0.384298861, 0.0134875029, 0.2587330341, -0.328804493, -0.1393949389, 0.0809680149, 0.2727389634, 0.0137449056, 0.1152770221, -0.3554981947, 0.1136914492, 0.3186284304, -0.0416695178, 0.1086384058, -0.3720645607, -0.3164125681, -0.1393731236, -0.0205442682, 0.5279047489, 0.0768125057, 0.0268206596, 0.177091524, -0.1090104654, 0.0915663838, 0.3510976732, -0.3423239291, 0.4966166914, -0.3493316174, 0.1288178265, 0.244049862, -0.3719635606, -0.1516718715, 0.3383847475, -0.1646664888, 0.1252206564, 0.2112876773, -0.0568552539, 0.2122340649, -0.1359217167, -0.0084832162, 0.1491883099, -0.1079863906, 0.4015441835, -0.191860646, -0.2839155197, 0.0489498153, 0.1688937247, 0.3223808408, -0.0939972326, 0.0269823484, -0.2874782085, 0.3875816464, -0.3304339945, -0.0731932521, 0.2158525139, -0.0103005245, 0.0795355141, 0.0810647905, -0.1096467376, -0.5169212818, 0.1978817284, -0.3624860644, 0.0432497784, 0.0342297852, -0.199161008, 0.1067377031, -0.0417709947, -0.248853147, -0.1888304949, 0.1706273258, 0.2317136079, -0.1502681971, -0.1181373745, -0.1473603696, 0.3599053323, -0.1582807302, 0.0234616473, -0.0023938436, 0.1705361307, -0.1951895803, -0.2185278982, 0.1162099689, -0.0603482425, 0.4591340423, -0.1816611439, -0.1646381319, 0.2344813347, 0.1979358345, 0.3151449263, -0.0608296916, 0.0168913454, 0.1874211878, 0.15569067, -0.001790653, 0.1425171494, 0.2640645802, -0.1452903152, 0.0974553376, 0.3178675175, 0.0033610398, 0.1383699775, 0.0590601191, -0.2233059406, 0.1934239566, -0.1233383492, 0.1891790926, 0.1224583983, 0.2253105342, 0.1255554557, 0.0167563781, -0.0816582143, -0.5741454363, 0.0836440697, 0.3775576651, 0.1669413745, 0.0734945536, 0.0733092278, -0.047490187, 0.022788696, -0.1682933271, 0.2998521626, 0.5353219509, 0.1349113286, 0.0457244962, 0.0882090256, -0.1451270282, -0.0892193019, 0.0666767806, 0.1546058208, 0.1948833019, 0.554833889, 0.1994926035, -0.0699803159, -0.2803618014, -0.1119267493, 0.2671931386, 0.0941752419, -0.3748235703, 0.1850153506, 0.1274147034, -0.1747793257, -0.4213628769, 0.0054041222, -0.0335235223, -0.1470947862, -0.0398530439, 0.4568405449, -0.1997360438, 0.3671450913, -0.0299290419, 0.157148242, -0.1867981851, 0.2361012846, -0.147116363, -0.071198985, -0.1141483337, -0.0113953277, 0.2849562168, 0.0669400692, 0.3187500238, 0.0719441921, -0.3169523776, -0.3599548936, -0.0033946335, 0.0783698186, 0.0017775213, 0.4231902063, -0.0844051987, -0.196593821, 0.0808484852, -0.4469996095, 0.2024542391, -0.3591765761, -0.0702028647, -0.1327766478, -0.2264377475, -0.0671750903, -0.1766145676, -0.3789283633, -0.251365453, -0.2676903605, -0.0906178951, -0.1727515459, 0.2116886824, 0.0763653964, -0.1411366761, -0.0400552973, 0.1537132859, -0.0046700109, -0.3079813123, -0.3230583668, 0.0693269819, -0.1893554032, -0.3206602037, -0.0872684121, -0.1478088647, 0.0682690516, 0.2267445475, -0.4916566312, -0.3557168543, -0.1071279347, 0.0577954203, -0.1461229324, -0.0371045694, 0.050697647, 0.0610221252, -0.1380061209, -0.1171885282, -0.1728391349, 0.2016058862, -0.0312829465, 0.0052553676, -0.1659805626, 0.2671521008, -0.1580263376, 0.6628257632, 0.2449261844, -0.0611025095, 0.3297882676, -0.1419706196, 0.0786559805, -0.0182802826, -0.4407643378, -0.0686315149, -0.4300893843, -0.2329537123, 0.1423813701, -0.3390011191, -0.1655289233, -0.0883632526, 0.0207861662, -0.3483385444, -0.3111567199, 0.1051786318, -0.1568962038, 0.3320012689, 0.0473194122, 0.160823673, 0.0032931045, 0.0731303543, 0.2852945328, 0.037218947, 0.2085288465, -0.1879966557, -0.0320745483, 0.0756295025, -0.1916022152, 0.3207659721, 0.0992454663, 0.1881768256, -0.0998484045, 0.2111584693, 0.0173970833, -0.1154944301, 0.8625524044, -0.1944368333, 0.3259494901, 0.1943777502, -0.352422595, -0.0848698989, -0.1915690303, -0.3549926877, -0.2112863958, 0.2583165765, 0.6643010974, -0.3218051195, -0.1237826943, 0.1433637589, -0.0208375454, -0.2824374139, -0.3151059449, -0.1605420709, -0.3001241684, -0.2805771828, 0.1758768708, -0.0904999822, 0.1202875227, -0.5292028785, -0.083871454, -0.1814913899, 0.2068258226, -0.0105720051, 0.0588435046, 0.2804205418, -0.060416542, 0.4039427638, 0.1262617409, -0.0301582143, 0.2747971117, 0.4463312924, 0.0201086309, -0.2770260572, 0.0019542333, 0.0463414267, 0.0897722319, 0.4556980729, 0.0272616036, 0.1352090091, 0.0671005771, 0.2680853307, -0.0672244728, 0.1780904084, 0.3836326599, 0.2199995667, -0.19891119, -0.3477316499, 0.0931110531, 0.2356356531, -0.1319558173, 0.2889435291, -0.5127385259, -0.2068071663, 0.3026007712, -0.0046678409, 0.6622439027, 0.0142626399, 0.0911541134, 0.3084228039, -0.30280599, 0.2865457535, -0.2150481194, 0.3221713603, -0.5821489096, -0.2683511376, 0.1158728823, -0.1270324588, -0.0752491951, 0.0526769087, -0.1140701026, 0.3120548427, -0.0008433908, 0.0324365646, -0.2479717433, 0.2446671575, 0.0065660868, -0.3198530972, 0.0531234331, 0.1187562421, -0.2992704213, 0.2569267154, -0.1400963217, -0.1082458124, 0.2545026839, -0.2358599156, -0.2938601375, 0.2325542569, -0.3484944701, 0.2806262672, -0.1433752477, -0.192730844, 0.0463992804, -0.0866828561, 0.1560349613, -0.2287230939, 0.0731345266, 0.0957631841, 0.0568757579, 0.1381038129, -0.2318832278, -0.1537002474, 0.4277766049, 0.0211632699, -0.3620678186, -0.0820331722, -0.0373366922, -0.0148328245, -0.1281269789, 0.0481151566, -0.1951637566, -0.1983327866, -0.1131097898, 0.2236154377, -0.0742341578, -0.3154716492, 0.1518263221, -0.2507010996, -0.2737051547, 0.3905716538, -0.123866044, -0.3739266992, -0.0774783865, 0.220425725, 0.1755113751, 0.0789951235, 0.4106521606, 0.3367051482, -0.0640728995, -0.3133040965, -0.2384478003, 0.1598050743, -0.4164749384, 0.1772857606, -0.1435782611, 0.1515220106, -0.0273458809, 0.3164764047, 0.0630014315, 0.1205943897, 0.020655632, -0.2940014601, -0.2153665423, -0.0177843235, -0.0637845695, 0.2160816938, 0.2012472451, 0.2618277371, 0.0282051042, 0.3244504929, -0.3282783628, 0.2335393727, -0.2057459354, 0.1308390647, 0.0513720363, -0.1313493848, 0.0827393383, 0.2397819161, 0.0975586176, 0.21972619, -0.1647179723, -0.2612221241, -0.2263839543, 0.0987548456, -0.0208422728, 0.0202254057, -0.14770329, -0.1334643513, 0.1280264407, -0.0183769353, 0.4289839566, 0.2284488082, -0.1643977016, 0.1061618328, 0.1367550939, 0.1648219526, -0.0818796754, 0.1702709794, 0.0002728738, -0.0996422917, 0.1888260841, 0.1828818917, -0.0026519187, 0.0396515206, -0.2979303598, -0.1828771681, 0.4134562016, 0.1560270786, 0.0929485112, -0.3851540983, -0.2239550948, 0.0314511843, 0.4500088692, 0.3133750558, -0.3114973903, -0.0574878082, -0.0370503515, 0.2802083492, -0.1861451268, -0.0252605565, -0.0004440919, -0.1982533783, 0.0170281604, 0.3708455265, 0.3222140968, 0.049197644, -0.0257172175, 0.157751888, 0.3708707988, -0.3861026168, 0.2404304147, -0.0043917187, -0.1260695755, 0.1273739338, 0.407805115, 0.2264871299, 0.0797452033, 0.178853184, 0.0911039263, 0.1854626834, -0.0301674362, -0.1411308944, 0.1116840243, -0.3086597919, -0.0381124094, 0.2016684115, -0.2263548821, -0.1244865209, -0.2119967788, -0.0688008219, -0.1871412694, -0.2287644446, -0.3681074083, 0.2676639259, -0.3974692523, -0.0481056646, 0.1096318513, -0.1442813426, 0.1278003901, 0.2010711282, 0.1140561998, 0.1347724497, 0.4494643509, 0.1331141889, -0.2817561924, -0.1104477569, -0.3163565397, 0.2716574371, 0.1550415158, -0.3163850605, 0.2832721174, 0.3418690562, -0.0504980572, -0.2370735109, 0.5526762009, 0.6522246599, 0.3537184298, -0.1452189982, 0.0072203167, 0.0328730755, 0.1318574548, -0.083329916, 0.0924025252, 0.1320803314, 0.2738416791, 0.3750736117, 0.1627763212, -0.1621030867, 0.1509011984, 0.2157596797, 0.1737513989, -0.2635536492, 0.2917875051, -0.0475654602, -0.0709340945, -0.0687780082, 0.0109696165, -0.3325085342, 0.1167243943, 0.4725084901, -0.0993127078, 0.2256480902, 0.0002576374, 0.1222922951, 0.0116999149, 0.3831609488, 0.1213125736, 0.1006879807, -0.6743169427, 0.061779514, -0.4572266638, 0.2957107127, -0.1418881863, 0.1963325888, -0.0430554859, 0.1047223508, -0.2969471514, -0.0652521104, 0.2955664098, -0.0407783613, 0.0765404552, 0.4635722935, -0.5969395638, 0.0495047271, -0.3352075815, -0.1262418181, 0.3455520272, -0.4687045217, 0.219433248, -0.1522491127, 0.0916101933, 0.1163390577, -0.0036385432, 0.3093612194, 0.1244530454, 0.5834570527, 0.1750372648, 0.6061422825, -0.1260510981, 0.131272316, -0.1131601557, -0.4133680463, -0.3300969005, -0.0069514103, 0.1493002772, 0.1066098809, -0.0756933689, -0.0927479565, -0.338512361, -0.1523739845, 0.0260592327, -0.1396059394, -0.0495963134, 0.0400647148, 0.0016710162, 0.0484991223, 0.1314327121, 0.2882747948, 0.2544395924, 0.2327958345, -0.4348085523, -0.3158878386, 0.5066922903, -0.2032599449, -0.5028806925, -0.3684077859, 0.3902990818, -0.0260886922, 0.0840150043, -0.625705719, 0.1361859143, 0.3196179569, -0.078065604, -0.194083944, 0.1666282117, 0.034007363, -0.1527424902, 0.1009974107, -0.0439530984, 0.0453943312, -0.363694489, 0.0277075171, -0.0606808662 ]
https://github.com/huggingface/datasets/issues/2728
Concurrent use of same dataset (already downloaded)
If i have two jobs that use the same dataset. I got : File "compute_measures.py", line 181, in <module> train_loader, val_loader, test_loader = get_dataloader(args) File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists") File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 582, in download_and_prepare self._save_info() File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 690, in _save_info self.info.write_to_directory(self._cache_dir) File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/info.py", line 195, in write_to_directory with open(os.path.join(dataset_info_dir, config.LICENSE_FILENAME), "wb") as f: FileNotFoundError: [Errno 2] No such file or directory: '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/LICENSE'
## Describe the bug When launching several jobs at the same time loading the same dataset trigger some errors see (last comments). ## Steps to reproduce the bug export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do export OUTPUT_DIR=${MODEL}_${TASK_NAME} sbatch --job-name=${OUTPUT_DIR} \ --gres=gpu:1 \ --no-requeue \ --cpus-per-task=10 \ --hint=nomultithread \ --time=1:00:00 \ --output=jobinfo/${OUTPUT_DIR}_%j.out \ --error=jobinfo/${OUTPUT_DIR}_%j.err \ --qos=qos_gpu-t4 \ --wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL" done done ```python # Sample code to reproduce the bug dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter))) dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter, args.filter + 5000))) dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists") dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True) ``` ## Expected results I believe I am doing something wrong with the objects. ## Actual results Traceback (most recent call last): File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split check_duplicates=True, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__ self.stream = pa.OSFile(self._path, "wb") File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__ File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "compute_measures.py", line 181, in <module> train_loader, val_loader, test_loader = get_dataloader(args) File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists") File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare + str(e) OSError: Cannot find data file. Original error: [Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets==1.8.0 - Platform: linux (jeanzay) - Python version: pyarrow==2.0.0 - PyArrow version: 3.7.8
78
Concurrent use of same dataset (already downloaded) ## Describe the bug When launching several jobs at the same time loading the same dataset trigger some errors see (last comments). ## Steps to reproduce the bug export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do export OUTPUT_DIR=${MODEL}_${TASK_NAME} sbatch --job-name=${OUTPUT_DIR} \ --gres=gpu:1 \ --no-requeue \ --cpus-per-task=10 \ --hint=nomultithread \ --time=1:00:00 \ --output=jobinfo/${OUTPUT_DIR}_%j.out \ --error=jobinfo/${OUTPUT_DIR}_%j.err \ --qos=qos_gpu-t4 \ --wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL" done done ```python # Sample code to reproduce the bug dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter))) dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter, args.filter + 5000))) dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists") dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True) ``` ## Expected results I believe I am doing something wrong with the objects. ## Actual results Traceback (most recent call last): File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split check_duplicates=True, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__ self.stream = pa.OSFile(self._path, "wb") File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__ File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "compute_measures.py", line 181, in <module> train_loader, val_loader, test_loader = get_dataloader(args) File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists") File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare + str(e) OSError: Cannot find data file. Original error: [Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets==1.8.0 - Platform: linux (jeanzay) - Python version: pyarrow==2.0.0 - PyArrow version: 3.7.8 If i have two jobs that use the same dataset. I got : File "compute_measures.py", line 181, in <module> train_loader, val_loader, test_loader = get_dataloader(args) File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists") File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 582, in download_and_prepare self._save_info() File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 690, in _save_info self.info.write_to_directory(self._cache_dir) File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/info.py", line 195, in write_to_directory with open(os.path.join(dataset_info_dir, config.LICENSE_FILENAME), "wb") as f: FileNotFoundError: [Errno 2] No such file or directory: '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/LICENSE'
[ -0.5779123306, -0.0809999704, -0.0453642756, 0.4501566291, 0.2459627241, 0.0139754117, 0.5565330386, 0.2723813951, 0.1843711585, 0.1907433271, -0.0311777517, 0.14643538, 0.0212426111, 0.1441881955, -0.0885508806, 0.0235603936, 0.1309164762, -0.2257413715, -0.3968794942, -0.0203632861, -0.2406820059, 0.1446245313, 0.0855502039, 0.1932707131, -0.5113248229, -0.3433860242, -0.0541758016, 0.0557931587, 0.259003967, -0.0671324283, 0.1664634645, 0.285938859, -0.0116239041, 0.8678804636, -0.0001090042, 0.1391354501, 0.1289677322, 0.1109725311, -0.0634468049, -0.2272718549, 0.0330817848, -0.1079749092, 0.1186954007, -0.313778013, 0.1189508662, 0.0584995784, -0.0300555695, -0.209353596, 0.5382679105, 0.0736097395, 0.2384029329, 0.3819693923, -0.306597054, -0.2297081947, 0.1842455417, 0.0569793731, 0.0860359743, 0.0703066885, 0.1006151736, -0.1604283452, -0.024353914, 0.429826498, -0.1288747787, 0.2059704512, -0.0231340267, 0.0869600326, 0.10513895, -0.5513932705, 0.0767244846, 0.0688891113, -0.011532601, -0.3123030066, -0.3542194963, -0.3473510146, -0.0639267713, -0.2551648915, 0.0928215459, 0.3452661037, -0.2033959329, -0.1923073977, -0.092051506, 0.1867491752, -0.0755040273, -0.1349956989, 0.2415364087, 0.3306526542, 0.0830518082, 0.2387527227, 0.0692323074, 0.0927333459, 0.3280492425, -0.1612951159, -0.101436004, -0.0775529742, -0.6200731993, 0.0457460731, -0.0160570331, -0.4652229249, 0.1843743324, -0.18587327, -0.1885086745, 0.0499864891, 0.1717090011, 0.1031512618, 0.2989793718, 0.0960015208, -0.3177453876, 0.2705483139, 0.3438622653, 0.1331976354, -0.5029963255, 0.065274179, -0.0156138875, -0.2567522526, 0.2176098228, 0.1873344481, 0.2414576113, -0.0829890966, -0.3572191894, -0.0523145422, -0.0511175245, -0.05585251, -0.1014151126, 0.4524842203, 0.1777903885, 0.1567743123, 0.0913129896, 0.1969438493, -0.1822921336, 0.062487375, -0.3012305498, -0.0290755145, -0.0146924928, 0.214333266, 0.1157392189, -0.0643142536, 0.224884972, 0.337944597, 0.0498888567, -0.4685382843, 0.2624686658, -0.3657256067, -0.2471659333, 0.1961348057, 0.1851790249, 0.1372067928, -0.1051606834, 0.384298861, 0.0134875029, 0.2587330341, -0.328804493, -0.1393949389, 0.0809680149, 0.2727389634, 0.0137449056, 0.1152770221, -0.3554981947, 0.1136914492, 0.3186284304, -0.0416695178, 0.1086384058, -0.3720645607, -0.3164125681, -0.1393731236, -0.0205442682, 0.5279047489, 0.0768125057, 0.0268206596, 0.177091524, -0.1090104654, 0.0915663838, 0.3510976732, -0.3423239291, 0.4966166914, -0.3493316174, 0.1288178265, 0.244049862, -0.3719635606, -0.1516718715, 0.3383847475, -0.1646664888, 0.1252206564, 0.2112876773, -0.0568552539, 0.2122340649, -0.1359217167, -0.0084832162, 0.1491883099, -0.1079863906, 0.4015441835, -0.191860646, -0.2839155197, 0.0489498153, 0.1688937247, 0.3223808408, -0.0939972326, 0.0269823484, -0.2874782085, 0.3875816464, -0.3304339945, -0.0731932521, 0.2158525139, -0.0103005245, 0.0795355141, 0.0810647905, -0.1096467376, -0.5169212818, 0.1978817284, -0.3624860644, 0.0432497784, 0.0342297852, -0.199161008, 0.1067377031, -0.0417709947, -0.248853147, -0.1888304949, 0.1706273258, 0.2317136079, -0.1502681971, -0.1181373745, -0.1473603696, 0.3599053323, -0.1582807302, 0.0234616473, -0.0023938436, 0.1705361307, -0.1951895803, -0.2185278982, 0.1162099689, -0.0603482425, 0.4591340423, -0.1816611439, -0.1646381319, 0.2344813347, 0.1979358345, 0.3151449263, -0.0608296916, 0.0168913454, 0.1874211878, 0.15569067, -0.001790653, 0.1425171494, 0.2640645802, -0.1452903152, 0.0974553376, 0.3178675175, 0.0033610398, 0.1383699775, 0.0590601191, -0.2233059406, 0.1934239566, -0.1233383492, 0.1891790926, 0.1224583983, 0.2253105342, 0.1255554557, 0.0167563781, -0.0816582143, -0.5741454363, 0.0836440697, 0.3775576651, 0.1669413745, 0.0734945536, 0.0733092278, -0.047490187, 0.022788696, -0.1682933271, 0.2998521626, 0.5353219509, 0.1349113286, 0.0457244962, 0.0882090256, -0.1451270282, -0.0892193019, 0.0666767806, 0.1546058208, 0.1948833019, 0.554833889, 0.1994926035, -0.0699803159, -0.2803618014, -0.1119267493, 0.2671931386, 0.0941752419, -0.3748235703, 0.1850153506, 0.1274147034, -0.1747793257, -0.4213628769, 0.0054041222, -0.0335235223, -0.1470947862, -0.0398530439, 0.4568405449, -0.1997360438, 0.3671450913, -0.0299290419, 0.157148242, -0.1867981851, 0.2361012846, -0.147116363, -0.071198985, -0.1141483337, -0.0113953277, 0.2849562168, 0.0669400692, 0.3187500238, 0.0719441921, -0.3169523776, -0.3599548936, -0.0033946335, 0.0783698186, 0.0017775213, 0.4231902063, -0.0844051987, -0.196593821, 0.0808484852, -0.4469996095, 0.2024542391, -0.3591765761, -0.0702028647, -0.1327766478, -0.2264377475, -0.0671750903, -0.1766145676, -0.3789283633, -0.251365453, -0.2676903605, -0.0906178951, -0.1727515459, 0.2116886824, 0.0763653964, -0.1411366761, -0.0400552973, 0.1537132859, -0.0046700109, -0.3079813123, -0.3230583668, 0.0693269819, -0.1893554032, -0.3206602037, -0.0872684121, -0.1478088647, 0.0682690516, 0.2267445475, -0.4916566312, -0.3557168543, -0.1071279347, 0.0577954203, -0.1461229324, -0.0371045694, 0.050697647, 0.0610221252, -0.1380061209, -0.1171885282, -0.1728391349, 0.2016058862, -0.0312829465, 0.0052553676, -0.1659805626, 0.2671521008, -0.1580263376, 0.6628257632, 0.2449261844, -0.0611025095, 0.3297882676, -0.1419706196, 0.0786559805, -0.0182802826, -0.4407643378, -0.0686315149, -0.4300893843, -0.2329537123, 0.1423813701, -0.3390011191, -0.1655289233, -0.0883632526, 0.0207861662, -0.3483385444, -0.3111567199, 0.1051786318, -0.1568962038, 0.3320012689, 0.0473194122, 0.160823673, 0.0032931045, 0.0731303543, 0.2852945328, 0.037218947, 0.2085288465, -0.1879966557, -0.0320745483, 0.0756295025, -0.1916022152, 0.3207659721, 0.0992454663, 0.1881768256, -0.0998484045, 0.2111584693, 0.0173970833, -0.1154944301, 0.8625524044, -0.1944368333, 0.3259494901, 0.1943777502, -0.352422595, -0.0848698989, -0.1915690303, -0.3549926877, -0.2112863958, 0.2583165765, 0.6643010974, -0.3218051195, -0.1237826943, 0.1433637589, -0.0208375454, -0.2824374139, -0.3151059449, -0.1605420709, -0.3001241684, -0.2805771828, 0.1758768708, -0.0904999822, 0.1202875227, -0.5292028785, -0.083871454, -0.1814913899, 0.2068258226, -0.0105720051, 0.0588435046, 0.2804205418, -0.060416542, 0.4039427638, 0.1262617409, -0.0301582143, 0.2747971117, 0.4463312924, 0.0201086309, -0.2770260572, 0.0019542333, 0.0463414267, 0.0897722319, 0.4556980729, 0.0272616036, 0.1352090091, 0.0671005771, 0.2680853307, -0.0672244728, 0.1780904084, 0.3836326599, 0.2199995667, -0.19891119, -0.3477316499, 0.0931110531, 0.2356356531, -0.1319558173, 0.2889435291, -0.5127385259, -0.2068071663, 0.3026007712, -0.0046678409, 0.6622439027, 0.0142626399, 0.0911541134, 0.3084228039, -0.30280599, 0.2865457535, -0.2150481194, 0.3221713603, -0.5821489096, -0.2683511376, 0.1158728823, -0.1270324588, -0.0752491951, 0.0526769087, -0.1140701026, 0.3120548427, -0.0008433908, 0.0324365646, -0.2479717433, 0.2446671575, 0.0065660868, -0.3198530972, 0.0531234331, 0.1187562421, -0.2992704213, 0.2569267154, -0.1400963217, -0.1082458124, 0.2545026839, -0.2358599156, -0.2938601375, 0.2325542569, -0.3484944701, 0.2806262672, -0.1433752477, -0.192730844, 0.0463992804, -0.0866828561, 0.1560349613, -0.2287230939, 0.0731345266, 0.0957631841, 0.0568757579, 0.1381038129, -0.2318832278, -0.1537002474, 0.4277766049, 0.0211632699, -0.3620678186, -0.0820331722, -0.0373366922, -0.0148328245, -0.1281269789, 0.0481151566, -0.1951637566, -0.1983327866, -0.1131097898, 0.2236154377, -0.0742341578, -0.3154716492, 0.1518263221, -0.2507010996, -0.2737051547, 0.3905716538, -0.123866044, -0.3739266992, -0.0774783865, 0.220425725, 0.1755113751, 0.0789951235, 0.4106521606, 0.3367051482, -0.0640728995, -0.3133040965, -0.2384478003, 0.1598050743, -0.4164749384, 0.1772857606, -0.1435782611, 0.1515220106, -0.0273458809, 0.3164764047, 0.0630014315, 0.1205943897, 0.020655632, -0.2940014601, -0.2153665423, -0.0177843235, -0.0637845695, 0.2160816938, 0.2012472451, 0.2618277371, 0.0282051042, 0.3244504929, -0.3282783628, 0.2335393727, -0.2057459354, 0.1308390647, 0.0513720363, -0.1313493848, 0.0827393383, 0.2397819161, 0.0975586176, 0.21972619, -0.1647179723, -0.2612221241, -0.2263839543, 0.0987548456, -0.0208422728, 0.0202254057, -0.14770329, -0.1334643513, 0.1280264407, -0.0183769353, 0.4289839566, 0.2284488082, -0.1643977016, 0.1061618328, 0.1367550939, 0.1648219526, -0.0818796754, 0.1702709794, 0.0002728738, -0.0996422917, 0.1888260841, 0.1828818917, -0.0026519187, 0.0396515206, -0.2979303598, -0.1828771681, 0.4134562016, 0.1560270786, 0.0929485112, -0.3851540983, -0.2239550948, 0.0314511843, 0.4500088692, 0.3133750558, -0.3114973903, -0.0574878082, -0.0370503515, 0.2802083492, -0.1861451268, -0.0252605565, -0.0004440919, -0.1982533783, 0.0170281604, 0.3708455265, 0.3222140968, 0.049197644, -0.0257172175, 0.157751888, 0.3708707988, -0.3861026168, 0.2404304147, -0.0043917187, -0.1260695755, 0.1273739338, 0.407805115, 0.2264871299, 0.0797452033, 0.178853184, 0.0911039263, 0.1854626834, -0.0301674362, -0.1411308944, 0.1116840243, -0.3086597919, -0.0381124094, 0.2016684115, -0.2263548821, -0.1244865209, -0.2119967788, -0.0688008219, -0.1871412694, -0.2287644446, -0.3681074083, 0.2676639259, -0.3974692523, -0.0481056646, 0.1096318513, -0.1442813426, 0.1278003901, 0.2010711282, 0.1140561998, 0.1347724497, 0.4494643509, 0.1331141889, -0.2817561924, -0.1104477569, -0.3163565397, 0.2716574371, 0.1550415158, -0.3163850605, 0.2832721174, 0.3418690562, -0.0504980572, -0.2370735109, 0.5526762009, 0.6522246599, 0.3537184298, -0.1452189982, 0.0072203167, 0.0328730755, 0.1318574548, -0.083329916, 0.0924025252, 0.1320803314, 0.2738416791, 0.3750736117, 0.1627763212, -0.1621030867, 0.1509011984, 0.2157596797, 0.1737513989, -0.2635536492, 0.2917875051, -0.0475654602, -0.0709340945, -0.0687780082, 0.0109696165, -0.3325085342, 0.1167243943, 0.4725084901, -0.0993127078, 0.2256480902, 0.0002576374, 0.1222922951, 0.0116999149, 0.3831609488, 0.1213125736, 0.1006879807, -0.6743169427, 0.061779514, -0.4572266638, 0.2957107127, -0.1418881863, 0.1963325888, -0.0430554859, 0.1047223508, -0.2969471514, -0.0652521104, 0.2955664098, -0.0407783613, 0.0765404552, 0.4635722935, -0.5969395638, 0.0495047271, -0.3352075815, -0.1262418181, 0.3455520272, -0.4687045217, 0.219433248, -0.1522491127, 0.0916101933, 0.1163390577, -0.0036385432, 0.3093612194, 0.1244530454, 0.5834570527, 0.1750372648, 0.6061422825, -0.1260510981, 0.131272316, -0.1131601557, -0.4133680463, -0.3300969005, -0.0069514103, 0.1493002772, 0.1066098809, -0.0756933689, -0.0927479565, -0.338512361, -0.1523739845, 0.0260592327, -0.1396059394, -0.0495963134, 0.0400647148, 0.0016710162, 0.0484991223, 0.1314327121, 0.2882747948, 0.2544395924, 0.2327958345, -0.4348085523, -0.3158878386, 0.5066922903, -0.2032599449, -0.5028806925, -0.3684077859, 0.3902990818, -0.0260886922, 0.0840150043, -0.625705719, 0.1361859143, 0.3196179569, -0.078065604, -0.194083944, 0.1666282117, 0.034007363, -0.1527424902, 0.1009974107, -0.0439530984, 0.0453943312, -0.363694489, 0.0277075171, -0.0606808662 ]
https://github.com/huggingface/datasets/issues/2728
Concurrent use of same dataset (already downloaded)
You can probably have a solution much faster than me (first time I use the library). But I suspect some write function are used when loading the dataset from cache.
## Describe the bug When launching several jobs at the same time loading the same dataset trigger some errors see (last comments). ## Steps to reproduce the bug export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do export OUTPUT_DIR=${MODEL}_${TASK_NAME} sbatch --job-name=${OUTPUT_DIR} \ --gres=gpu:1 \ --no-requeue \ --cpus-per-task=10 \ --hint=nomultithread \ --time=1:00:00 \ --output=jobinfo/${OUTPUT_DIR}_%j.out \ --error=jobinfo/${OUTPUT_DIR}_%j.err \ --qos=qos_gpu-t4 \ --wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL" done done ```python # Sample code to reproduce the bug dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter))) dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter, args.filter + 5000))) dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists") dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True) ``` ## Expected results I believe I am doing something wrong with the objects. ## Actual results Traceback (most recent call last): File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split check_duplicates=True, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__ self.stream = pa.OSFile(self._path, "wb") File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__ File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "compute_measures.py", line 181, in <module> train_loader, val_loader, test_loader = get_dataloader(args) File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists") File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare + str(e) OSError: Cannot find data file. Original error: [Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets==1.8.0 - Platform: linux (jeanzay) - Python version: pyarrow==2.0.0 - PyArrow version: 3.7.8
30
Concurrent use of same dataset (already downloaded) ## Describe the bug When launching several jobs at the same time loading the same dataset trigger some errors see (last comments). ## Steps to reproduce the bug export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do export OUTPUT_DIR=${MODEL}_${TASK_NAME} sbatch --job-name=${OUTPUT_DIR} \ --gres=gpu:1 \ --no-requeue \ --cpus-per-task=10 \ --hint=nomultithread \ --time=1:00:00 \ --output=jobinfo/${OUTPUT_DIR}_%j.out \ --error=jobinfo/${OUTPUT_DIR}_%j.err \ --qos=qos_gpu-t4 \ --wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL" done done ```python # Sample code to reproduce the bug dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter))) dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter, args.filter + 5000))) dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists") dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True) ``` ## Expected results I believe I am doing something wrong with the objects. ## Actual results Traceback (most recent call last): File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split check_duplicates=True, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__ self.stream = pa.OSFile(self._path, "wb") File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__ File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "compute_measures.py", line 181, in <module> train_loader, val_loader, test_loader = get_dataloader(args) File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists") File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare + str(e) OSError: Cannot find data file. Original error: [Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets==1.8.0 - Platform: linux (jeanzay) - Python version: pyarrow==2.0.0 - PyArrow version: 3.7.8 You can probably have a solution much faster than me (first time I use the library). But I suspect some write function are used when loading the dataset from cache.
[ -0.5779123306, -0.0809999704, -0.0453642756, 0.4501566291, 0.2459627241, 0.0139754117, 0.5565330386, 0.2723813951, 0.1843711585, 0.1907433271, -0.0311777517, 0.14643538, 0.0212426111, 0.1441881955, -0.0885508806, 0.0235603936, 0.1309164762, -0.2257413715, -0.3968794942, -0.0203632861, -0.2406820059, 0.1446245313, 0.0855502039, 0.1932707131, -0.5113248229, -0.3433860242, -0.0541758016, 0.0557931587, 0.259003967, -0.0671324283, 0.1664634645, 0.285938859, -0.0116239041, 0.8678804636, -0.0001090042, 0.1391354501, 0.1289677322, 0.1109725311, -0.0634468049, -0.2272718549, 0.0330817848, -0.1079749092, 0.1186954007, -0.313778013, 0.1189508662, 0.0584995784, -0.0300555695, -0.209353596, 0.5382679105, 0.0736097395, 0.2384029329, 0.3819693923, -0.306597054, -0.2297081947, 0.1842455417, 0.0569793731, 0.0860359743, 0.0703066885, 0.1006151736, -0.1604283452, -0.024353914, 0.429826498, -0.1288747787, 0.2059704512, -0.0231340267, 0.0869600326, 0.10513895, -0.5513932705, 0.0767244846, 0.0688891113, -0.011532601, -0.3123030066, -0.3542194963, -0.3473510146, -0.0639267713, -0.2551648915, 0.0928215459, 0.3452661037, -0.2033959329, -0.1923073977, -0.092051506, 0.1867491752, -0.0755040273, -0.1349956989, 0.2415364087, 0.3306526542, 0.0830518082, 0.2387527227, 0.0692323074, 0.0927333459, 0.3280492425, -0.1612951159, -0.101436004, -0.0775529742, -0.6200731993, 0.0457460731, -0.0160570331, -0.4652229249, 0.1843743324, -0.18587327, -0.1885086745, 0.0499864891, 0.1717090011, 0.1031512618, 0.2989793718, 0.0960015208, -0.3177453876, 0.2705483139, 0.3438622653, 0.1331976354, -0.5029963255, 0.065274179, -0.0156138875, -0.2567522526, 0.2176098228, 0.1873344481, 0.2414576113, -0.0829890966, -0.3572191894, -0.0523145422, -0.0511175245, -0.05585251, -0.1014151126, 0.4524842203, 0.1777903885, 0.1567743123, 0.0913129896, 0.1969438493, -0.1822921336, 0.062487375, -0.3012305498, -0.0290755145, -0.0146924928, 0.214333266, 0.1157392189, -0.0643142536, 0.224884972, 0.337944597, 0.0498888567, -0.4685382843, 0.2624686658, -0.3657256067, -0.2471659333, 0.1961348057, 0.1851790249, 0.1372067928, -0.1051606834, 0.384298861, 0.0134875029, 0.2587330341, -0.328804493, -0.1393949389, 0.0809680149, 0.2727389634, 0.0137449056, 0.1152770221, -0.3554981947, 0.1136914492, 0.3186284304, -0.0416695178, 0.1086384058, -0.3720645607, -0.3164125681, -0.1393731236, -0.0205442682, 0.5279047489, 0.0768125057, 0.0268206596, 0.177091524, -0.1090104654, 0.0915663838, 0.3510976732, -0.3423239291, 0.4966166914, -0.3493316174, 0.1288178265, 0.244049862, -0.3719635606, -0.1516718715, 0.3383847475, -0.1646664888, 0.1252206564, 0.2112876773, -0.0568552539, 0.2122340649, -0.1359217167, -0.0084832162, 0.1491883099, -0.1079863906, 0.4015441835, -0.191860646, -0.2839155197, 0.0489498153, 0.1688937247, 0.3223808408, -0.0939972326, 0.0269823484, -0.2874782085, 0.3875816464, -0.3304339945, -0.0731932521, 0.2158525139, -0.0103005245, 0.0795355141, 0.0810647905, -0.1096467376, -0.5169212818, 0.1978817284, -0.3624860644, 0.0432497784, 0.0342297852, -0.199161008, 0.1067377031, -0.0417709947, -0.248853147, -0.1888304949, 0.1706273258, 0.2317136079, -0.1502681971, -0.1181373745, -0.1473603696, 0.3599053323, -0.1582807302, 0.0234616473, -0.0023938436, 0.1705361307, -0.1951895803, -0.2185278982, 0.1162099689, -0.0603482425, 0.4591340423, -0.1816611439, -0.1646381319, 0.2344813347, 0.1979358345, 0.3151449263, -0.0608296916, 0.0168913454, 0.1874211878, 0.15569067, -0.001790653, 0.1425171494, 0.2640645802, -0.1452903152, 0.0974553376, 0.3178675175, 0.0033610398, 0.1383699775, 0.0590601191, -0.2233059406, 0.1934239566, -0.1233383492, 0.1891790926, 0.1224583983, 0.2253105342, 0.1255554557, 0.0167563781, -0.0816582143, -0.5741454363, 0.0836440697, 0.3775576651, 0.1669413745, 0.0734945536, 0.0733092278, -0.047490187, 0.022788696, -0.1682933271, 0.2998521626, 0.5353219509, 0.1349113286, 0.0457244962, 0.0882090256, -0.1451270282, -0.0892193019, 0.0666767806, 0.1546058208, 0.1948833019, 0.554833889, 0.1994926035, -0.0699803159, -0.2803618014, -0.1119267493, 0.2671931386, 0.0941752419, -0.3748235703, 0.1850153506, 0.1274147034, -0.1747793257, -0.4213628769, 0.0054041222, -0.0335235223, -0.1470947862, -0.0398530439, 0.4568405449, -0.1997360438, 0.3671450913, -0.0299290419, 0.157148242, -0.1867981851, 0.2361012846, -0.147116363, -0.071198985, -0.1141483337, -0.0113953277, 0.2849562168, 0.0669400692, 0.3187500238, 0.0719441921, -0.3169523776, -0.3599548936, -0.0033946335, 0.0783698186, 0.0017775213, 0.4231902063, -0.0844051987, -0.196593821, 0.0808484852, -0.4469996095, 0.2024542391, -0.3591765761, -0.0702028647, -0.1327766478, -0.2264377475, -0.0671750903, -0.1766145676, -0.3789283633, -0.251365453, -0.2676903605, -0.0906178951, -0.1727515459, 0.2116886824, 0.0763653964, -0.1411366761, -0.0400552973, 0.1537132859, -0.0046700109, -0.3079813123, -0.3230583668, 0.0693269819, -0.1893554032, -0.3206602037, -0.0872684121, -0.1478088647, 0.0682690516, 0.2267445475, -0.4916566312, -0.3557168543, -0.1071279347, 0.0577954203, -0.1461229324, -0.0371045694, 0.050697647, 0.0610221252, -0.1380061209, -0.1171885282, -0.1728391349, 0.2016058862, -0.0312829465, 0.0052553676, -0.1659805626, 0.2671521008, -0.1580263376, 0.6628257632, 0.2449261844, -0.0611025095, 0.3297882676, -0.1419706196, 0.0786559805, -0.0182802826, -0.4407643378, -0.0686315149, -0.4300893843, -0.2329537123, 0.1423813701, -0.3390011191, -0.1655289233, -0.0883632526, 0.0207861662, -0.3483385444, -0.3111567199, 0.1051786318, -0.1568962038, 0.3320012689, 0.0473194122, 0.160823673, 0.0032931045, 0.0731303543, 0.2852945328, 0.037218947, 0.2085288465, -0.1879966557, -0.0320745483, 0.0756295025, -0.1916022152, 0.3207659721, 0.0992454663, 0.1881768256, -0.0998484045, 0.2111584693, 0.0173970833, -0.1154944301, 0.8625524044, -0.1944368333, 0.3259494901, 0.1943777502, -0.352422595, -0.0848698989, -0.1915690303, -0.3549926877, -0.2112863958, 0.2583165765, 0.6643010974, -0.3218051195, -0.1237826943, 0.1433637589, -0.0208375454, -0.2824374139, -0.3151059449, -0.1605420709, -0.3001241684, -0.2805771828, 0.1758768708, -0.0904999822, 0.1202875227, -0.5292028785, -0.083871454, -0.1814913899, 0.2068258226, -0.0105720051, 0.0588435046, 0.2804205418, -0.060416542, 0.4039427638, 0.1262617409, -0.0301582143, 0.2747971117, 0.4463312924, 0.0201086309, -0.2770260572, 0.0019542333, 0.0463414267, 0.0897722319, 0.4556980729, 0.0272616036, 0.1352090091, 0.0671005771, 0.2680853307, -0.0672244728, 0.1780904084, 0.3836326599, 0.2199995667, -0.19891119, -0.3477316499, 0.0931110531, 0.2356356531, -0.1319558173, 0.2889435291, -0.5127385259, -0.2068071663, 0.3026007712, -0.0046678409, 0.6622439027, 0.0142626399, 0.0911541134, 0.3084228039, -0.30280599, 0.2865457535, -0.2150481194, 0.3221713603, -0.5821489096, -0.2683511376, 0.1158728823, -0.1270324588, -0.0752491951, 0.0526769087, -0.1140701026, 0.3120548427, -0.0008433908, 0.0324365646, -0.2479717433, 0.2446671575, 0.0065660868, -0.3198530972, 0.0531234331, 0.1187562421, -0.2992704213, 0.2569267154, -0.1400963217, -0.1082458124, 0.2545026839, -0.2358599156, -0.2938601375, 0.2325542569, -0.3484944701, 0.2806262672, -0.1433752477, -0.192730844, 0.0463992804, -0.0866828561, 0.1560349613, -0.2287230939, 0.0731345266, 0.0957631841, 0.0568757579, 0.1381038129, -0.2318832278, -0.1537002474, 0.4277766049, 0.0211632699, -0.3620678186, -0.0820331722, -0.0373366922, -0.0148328245, -0.1281269789, 0.0481151566, -0.1951637566, -0.1983327866, -0.1131097898, 0.2236154377, -0.0742341578, -0.3154716492, 0.1518263221, -0.2507010996, -0.2737051547, 0.3905716538, -0.123866044, -0.3739266992, -0.0774783865, 0.220425725, 0.1755113751, 0.0789951235, 0.4106521606, 0.3367051482, -0.0640728995, -0.3133040965, -0.2384478003, 0.1598050743, -0.4164749384, 0.1772857606, -0.1435782611, 0.1515220106, -0.0273458809, 0.3164764047, 0.0630014315, 0.1205943897, 0.020655632, -0.2940014601, -0.2153665423, -0.0177843235, -0.0637845695, 0.2160816938, 0.2012472451, 0.2618277371, 0.0282051042, 0.3244504929, -0.3282783628, 0.2335393727, -0.2057459354, 0.1308390647, 0.0513720363, -0.1313493848, 0.0827393383, 0.2397819161, 0.0975586176, 0.21972619, -0.1647179723, -0.2612221241, -0.2263839543, 0.0987548456, -0.0208422728, 0.0202254057, -0.14770329, -0.1334643513, 0.1280264407, -0.0183769353, 0.4289839566, 0.2284488082, -0.1643977016, 0.1061618328, 0.1367550939, 0.1648219526, -0.0818796754, 0.1702709794, 0.0002728738, -0.0996422917, 0.1888260841, 0.1828818917, -0.0026519187, 0.0396515206, -0.2979303598, -0.1828771681, 0.4134562016, 0.1560270786, 0.0929485112, -0.3851540983, -0.2239550948, 0.0314511843, 0.4500088692, 0.3133750558, -0.3114973903, -0.0574878082, -0.0370503515, 0.2802083492, -0.1861451268, -0.0252605565, -0.0004440919, -0.1982533783, 0.0170281604, 0.3708455265, 0.3222140968, 0.049197644, -0.0257172175, 0.157751888, 0.3708707988, -0.3861026168, 0.2404304147, -0.0043917187, -0.1260695755, 0.1273739338, 0.407805115, 0.2264871299, 0.0797452033, 0.178853184, 0.0911039263, 0.1854626834, -0.0301674362, -0.1411308944, 0.1116840243, -0.3086597919, -0.0381124094, 0.2016684115, -0.2263548821, -0.1244865209, -0.2119967788, -0.0688008219, -0.1871412694, -0.2287644446, -0.3681074083, 0.2676639259, -0.3974692523, -0.0481056646, 0.1096318513, -0.1442813426, 0.1278003901, 0.2010711282, 0.1140561998, 0.1347724497, 0.4494643509, 0.1331141889, -0.2817561924, -0.1104477569, -0.3163565397, 0.2716574371, 0.1550415158, -0.3163850605, 0.2832721174, 0.3418690562, -0.0504980572, -0.2370735109, 0.5526762009, 0.6522246599, 0.3537184298, -0.1452189982, 0.0072203167, 0.0328730755, 0.1318574548, -0.083329916, 0.0924025252, 0.1320803314, 0.2738416791, 0.3750736117, 0.1627763212, -0.1621030867, 0.1509011984, 0.2157596797, 0.1737513989, -0.2635536492, 0.2917875051, -0.0475654602, -0.0709340945, -0.0687780082, 0.0109696165, -0.3325085342, 0.1167243943, 0.4725084901, -0.0993127078, 0.2256480902, 0.0002576374, 0.1222922951, 0.0116999149, 0.3831609488, 0.1213125736, 0.1006879807, -0.6743169427, 0.061779514, -0.4572266638, 0.2957107127, -0.1418881863, 0.1963325888, -0.0430554859, 0.1047223508, -0.2969471514, -0.0652521104, 0.2955664098, -0.0407783613, 0.0765404552, 0.4635722935, -0.5969395638, 0.0495047271, -0.3352075815, -0.1262418181, 0.3455520272, -0.4687045217, 0.219433248, -0.1522491127, 0.0916101933, 0.1163390577, -0.0036385432, 0.3093612194, 0.1244530454, 0.5834570527, 0.1750372648, 0.6061422825, -0.1260510981, 0.131272316, -0.1131601557, -0.4133680463, -0.3300969005, -0.0069514103, 0.1493002772, 0.1066098809, -0.0756933689, -0.0927479565, -0.338512361, -0.1523739845, 0.0260592327, -0.1396059394, -0.0495963134, 0.0400647148, 0.0016710162, 0.0484991223, 0.1314327121, 0.2882747948, 0.2544395924, 0.2327958345, -0.4348085523, -0.3158878386, 0.5066922903, -0.2032599449, -0.5028806925, -0.3684077859, 0.3902990818, -0.0260886922, 0.0840150043, -0.625705719, 0.1361859143, 0.3196179569, -0.078065604, -0.194083944, 0.1666282117, 0.034007363, -0.1527424902, 0.1009974107, -0.0439530984, 0.0453943312, -0.363694489, 0.0277075171, -0.0606808662 ]
https://github.com/huggingface/datasets/issues/2728
Concurrent use of same dataset (already downloaded)
I have the same issue: ``` Traceback (most recent call last): File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 1040, in _prepare_split with ArrowWriter(features=self.info.features, path=fpath) as writer: File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/arrow_writer.py", line 192, in __init__ self.stream = pa.OSFile(self._path, "wb") File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__ File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/dccstor/tslm-gen/.cache/csv/default-387f1f95c084d4df/0.0.0/2dc6629a9ff6b5697d82c25b73731dd440507a69cbce8b425db50b751e8fcfd0.incomplete/csv-validation.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/dccstor/tslm/elron/tslm-gen/train.py", line 510, in <module> main() File "/dccstor/tslm/elron/tslm-gen/train.py", line 246, in main datasets = prepare_dataset(dataset_args, logger) File "/dccstor/tslm/elron/tslm-gen/data.py", line 157, in prepare_dataset datasets = load_dataset(extension, data_files=data_files, split=dataset_split, cache_dir=dataset_args.dataset_cache_dir, na_filter=False, download_mode=dataset_args.dataset_generate_mode) File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/load.py", line 742, in load_dataset builder_instance.download_and_prepare( File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 574, in download_and_prepare self._download_and_prepare( File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 654, in _download_and_prepare raise OSError( OSError: Cannot find data file. Original error: [Errno 2] Failed to open local file '/dccstor/tslm-gen/.cache/csv/default-387f1f95c084d4df/0.0.0/2dc6629a9ff6b5697d82c25b73731dd440507a69cbce8b425db50b751e8fcfd0.incomplete/csv-validation.arrow'. Detail: [errno 2] No such file or directory ```
## Describe the bug When launching several jobs at the same time loading the same dataset trigger some errors see (last comments). ## Steps to reproduce the bug export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do export OUTPUT_DIR=${MODEL}_${TASK_NAME} sbatch --job-name=${OUTPUT_DIR} \ --gres=gpu:1 \ --no-requeue \ --cpus-per-task=10 \ --hint=nomultithread \ --time=1:00:00 \ --output=jobinfo/${OUTPUT_DIR}_%j.out \ --error=jobinfo/${OUTPUT_DIR}_%j.err \ --qos=qos_gpu-t4 \ --wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL" done done ```python # Sample code to reproduce the bug dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter))) dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter, args.filter + 5000))) dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists") dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True) ``` ## Expected results I believe I am doing something wrong with the objects. ## Actual results Traceback (most recent call last): File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split check_duplicates=True, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__ self.stream = pa.OSFile(self._path, "wb") File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__ File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "compute_measures.py", line 181, in <module> train_loader, val_loader, test_loader = get_dataloader(args) File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists") File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare + str(e) OSError: Cannot find data file. Original error: [Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets==1.8.0 - Platform: linux (jeanzay) - Python version: pyarrow==2.0.0 - PyArrow version: 3.7.8
172
Concurrent use of same dataset (already downloaded) ## Describe the bug When launching several jobs at the same time loading the same dataset trigger some errors see (last comments). ## Steps to reproduce the bug export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do export OUTPUT_DIR=${MODEL}_${TASK_NAME} sbatch --job-name=${OUTPUT_DIR} \ --gres=gpu:1 \ --no-requeue \ --cpus-per-task=10 \ --hint=nomultithread \ --time=1:00:00 \ --output=jobinfo/${OUTPUT_DIR}_%j.out \ --error=jobinfo/${OUTPUT_DIR}_%j.err \ --qos=qos_gpu-t4 \ --wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL" done done ```python # Sample code to reproduce the bug dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter))) dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter, args.filter + 5000))) dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists") dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True) ``` ## Expected results I believe I am doing something wrong with the objects. ## Actual results Traceback (most recent call last): File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split check_duplicates=True, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__ self.stream = pa.OSFile(self._path, "wb") File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__ File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "compute_measures.py", line 181, in <module> train_loader, val_loader, test_loader = get_dataloader(args) File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists") File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare + str(e) OSError: Cannot find data file. Original error: [Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets==1.8.0 - Platform: linux (jeanzay) - Python version: pyarrow==2.0.0 - PyArrow version: 3.7.8 I have the same issue: ``` Traceback (most recent call last): File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 1040, in _prepare_split with ArrowWriter(features=self.info.features, path=fpath) as writer: File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/arrow_writer.py", line 192, in __init__ self.stream = pa.OSFile(self._path, "wb") File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__ File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/dccstor/tslm-gen/.cache/csv/default-387f1f95c084d4df/0.0.0/2dc6629a9ff6b5697d82c25b73731dd440507a69cbce8b425db50b751e8fcfd0.incomplete/csv-validation.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/dccstor/tslm/elron/tslm-gen/train.py", line 510, in <module> main() File "/dccstor/tslm/elron/tslm-gen/train.py", line 246, in main datasets = prepare_dataset(dataset_args, logger) File "/dccstor/tslm/elron/tslm-gen/data.py", line 157, in prepare_dataset datasets = load_dataset(extension, data_files=data_files, split=dataset_split, cache_dir=dataset_args.dataset_cache_dir, na_filter=False, download_mode=dataset_args.dataset_generate_mode) File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/load.py", line 742, in load_dataset builder_instance.download_and_prepare( File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 574, in download_and_prepare self._download_and_prepare( File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 654, in _download_and_prepare raise OSError( OSError: Cannot find data file. Original error: [Errno 2] Failed to open local file '/dccstor/tslm-gen/.cache/csv/default-387f1f95c084d4df/0.0.0/2dc6629a9ff6b5697d82c25b73731dd440507a69cbce8b425db50b751e8fcfd0.incomplete/csv-validation.arrow'. Detail: [errno 2] No such file or directory ```
[ -0.5779123306, -0.0809999704, -0.0453642756, 0.4501566291, 0.2459627241, 0.0139754117, 0.5565330386, 0.2723813951, 0.1843711585, 0.1907433271, -0.0311777517, 0.14643538, 0.0212426111, 0.1441881955, -0.0885508806, 0.0235603936, 0.1309164762, -0.2257413715, -0.3968794942, -0.0203632861, -0.2406820059, 0.1446245313, 0.0855502039, 0.1932707131, -0.5113248229, -0.3433860242, -0.0541758016, 0.0557931587, 0.259003967, -0.0671324283, 0.1664634645, 0.285938859, -0.0116239041, 0.8678804636, -0.0001090042, 0.1391354501, 0.1289677322, 0.1109725311, -0.0634468049, -0.2272718549, 0.0330817848, -0.1079749092, 0.1186954007, -0.313778013, 0.1189508662, 0.0584995784, -0.0300555695, -0.209353596, 0.5382679105, 0.0736097395, 0.2384029329, 0.3819693923, -0.306597054, -0.2297081947, 0.1842455417, 0.0569793731, 0.0860359743, 0.0703066885, 0.1006151736, -0.1604283452, -0.024353914, 0.429826498, -0.1288747787, 0.2059704512, -0.0231340267, 0.0869600326, 0.10513895, -0.5513932705, 0.0767244846, 0.0688891113, -0.011532601, -0.3123030066, -0.3542194963, -0.3473510146, -0.0639267713, -0.2551648915, 0.0928215459, 0.3452661037, -0.2033959329, -0.1923073977, -0.092051506, 0.1867491752, -0.0755040273, -0.1349956989, 0.2415364087, 0.3306526542, 0.0830518082, 0.2387527227, 0.0692323074, 0.0927333459, 0.3280492425, -0.1612951159, -0.101436004, -0.0775529742, -0.6200731993, 0.0457460731, -0.0160570331, -0.4652229249, 0.1843743324, -0.18587327, -0.1885086745, 0.0499864891, 0.1717090011, 0.1031512618, 0.2989793718, 0.0960015208, -0.3177453876, 0.2705483139, 0.3438622653, 0.1331976354, -0.5029963255, 0.065274179, -0.0156138875, -0.2567522526, 0.2176098228, 0.1873344481, 0.2414576113, -0.0829890966, -0.3572191894, -0.0523145422, -0.0511175245, -0.05585251, -0.1014151126, 0.4524842203, 0.1777903885, 0.1567743123, 0.0913129896, 0.1969438493, -0.1822921336, 0.062487375, -0.3012305498, -0.0290755145, -0.0146924928, 0.214333266, 0.1157392189, -0.0643142536, 0.224884972, 0.337944597, 0.0498888567, -0.4685382843, 0.2624686658, -0.3657256067, -0.2471659333, 0.1961348057, 0.1851790249, 0.1372067928, -0.1051606834, 0.384298861, 0.0134875029, 0.2587330341, -0.328804493, -0.1393949389, 0.0809680149, 0.2727389634, 0.0137449056, 0.1152770221, -0.3554981947, 0.1136914492, 0.3186284304, -0.0416695178, 0.1086384058, -0.3720645607, -0.3164125681, -0.1393731236, -0.0205442682, 0.5279047489, 0.0768125057, 0.0268206596, 0.177091524, -0.1090104654, 0.0915663838, 0.3510976732, -0.3423239291, 0.4966166914, -0.3493316174, 0.1288178265, 0.244049862, -0.3719635606, -0.1516718715, 0.3383847475, -0.1646664888, 0.1252206564, 0.2112876773, -0.0568552539, 0.2122340649, -0.1359217167, -0.0084832162, 0.1491883099, -0.1079863906, 0.4015441835, -0.191860646, -0.2839155197, 0.0489498153, 0.1688937247, 0.3223808408, -0.0939972326, 0.0269823484, -0.2874782085, 0.3875816464, -0.3304339945, -0.0731932521, 0.2158525139, -0.0103005245, 0.0795355141, 0.0810647905, -0.1096467376, -0.5169212818, 0.1978817284, -0.3624860644, 0.0432497784, 0.0342297852, -0.199161008, 0.1067377031, -0.0417709947, -0.248853147, -0.1888304949, 0.1706273258, 0.2317136079, -0.1502681971, -0.1181373745, -0.1473603696, 0.3599053323, -0.1582807302, 0.0234616473, -0.0023938436, 0.1705361307, -0.1951895803, -0.2185278982, 0.1162099689, -0.0603482425, 0.4591340423, -0.1816611439, -0.1646381319, 0.2344813347, 0.1979358345, 0.3151449263, -0.0608296916, 0.0168913454, 0.1874211878, 0.15569067, -0.001790653, 0.1425171494, 0.2640645802, -0.1452903152, 0.0974553376, 0.3178675175, 0.0033610398, 0.1383699775, 0.0590601191, -0.2233059406, 0.1934239566, -0.1233383492, 0.1891790926, 0.1224583983, 0.2253105342, 0.1255554557, 0.0167563781, -0.0816582143, -0.5741454363, 0.0836440697, 0.3775576651, 0.1669413745, 0.0734945536, 0.0733092278, -0.047490187, 0.022788696, -0.1682933271, 0.2998521626, 0.5353219509, 0.1349113286, 0.0457244962, 0.0882090256, -0.1451270282, -0.0892193019, 0.0666767806, 0.1546058208, 0.1948833019, 0.554833889, 0.1994926035, -0.0699803159, -0.2803618014, -0.1119267493, 0.2671931386, 0.0941752419, -0.3748235703, 0.1850153506, 0.1274147034, -0.1747793257, -0.4213628769, 0.0054041222, -0.0335235223, -0.1470947862, -0.0398530439, 0.4568405449, -0.1997360438, 0.3671450913, -0.0299290419, 0.157148242, -0.1867981851, 0.2361012846, -0.147116363, -0.071198985, -0.1141483337, -0.0113953277, 0.2849562168, 0.0669400692, 0.3187500238, 0.0719441921, -0.3169523776, -0.3599548936, -0.0033946335, 0.0783698186, 0.0017775213, 0.4231902063, -0.0844051987, -0.196593821, 0.0808484852, -0.4469996095, 0.2024542391, -0.3591765761, -0.0702028647, -0.1327766478, -0.2264377475, -0.0671750903, -0.1766145676, -0.3789283633, -0.251365453, -0.2676903605, -0.0906178951, -0.1727515459, 0.2116886824, 0.0763653964, -0.1411366761, -0.0400552973, 0.1537132859, -0.0046700109, -0.3079813123, -0.3230583668, 0.0693269819, -0.1893554032, -0.3206602037, -0.0872684121, -0.1478088647, 0.0682690516, 0.2267445475, -0.4916566312, -0.3557168543, -0.1071279347, 0.0577954203, -0.1461229324, -0.0371045694, 0.050697647, 0.0610221252, -0.1380061209, -0.1171885282, -0.1728391349, 0.2016058862, -0.0312829465, 0.0052553676, -0.1659805626, 0.2671521008, -0.1580263376, 0.6628257632, 0.2449261844, -0.0611025095, 0.3297882676, -0.1419706196, 0.0786559805, -0.0182802826, -0.4407643378, -0.0686315149, -0.4300893843, -0.2329537123, 0.1423813701, -0.3390011191, -0.1655289233, -0.0883632526, 0.0207861662, -0.3483385444, -0.3111567199, 0.1051786318, -0.1568962038, 0.3320012689, 0.0473194122, 0.160823673, 0.0032931045, 0.0731303543, 0.2852945328, 0.037218947, 0.2085288465, -0.1879966557, -0.0320745483, 0.0756295025, -0.1916022152, 0.3207659721, 0.0992454663, 0.1881768256, -0.0998484045, 0.2111584693, 0.0173970833, -0.1154944301, 0.8625524044, -0.1944368333, 0.3259494901, 0.1943777502, -0.352422595, -0.0848698989, -0.1915690303, -0.3549926877, -0.2112863958, 0.2583165765, 0.6643010974, -0.3218051195, -0.1237826943, 0.1433637589, -0.0208375454, -0.2824374139, -0.3151059449, -0.1605420709, -0.3001241684, -0.2805771828, 0.1758768708, -0.0904999822, 0.1202875227, -0.5292028785, -0.083871454, -0.1814913899, 0.2068258226, -0.0105720051, 0.0588435046, 0.2804205418, -0.060416542, 0.4039427638, 0.1262617409, -0.0301582143, 0.2747971117, 0.4463312924, 0.0201086309, -0.2770260572, 0.0019542333, 0.0463414267, 0.0897722319, 0.4556980729, 0.0272616036, 0.1352090091, 0.0671005771, 0.2680853307, -0.0672244728, 0.1780904084, 0.3836326599, 0.2199995667, -0.19891119, -0.3477316499, 0.0931110531, 0.2356356531, -0.1319558173, 0.2889435291, -0.5127385259, -0.2068071663, 0.3026007712, -0.0046678409, 0.6622439027, 0.0142626399, 0.0911541134, 0.3084228039, -0.30280599, 0.2865457535, -0.2150481194, 0.3221713603, -0.5821489096, -0.2683511376, 0.1158728823, -0.1270324588, -0.0752491951, 0.0526769087, -0.1140701026, 0.3120548427, -0.0008433908, 0.0324365646, -0.2479717433, 0.2446671575, 0.0065660868, -0.3198530972, 0.0531234331, 0.1187562421, -0.2992704213, 0.2569267154, -0.1400963217, -0.1082458124, 0.2545026839, -0.2358599156, -0.2938601375, 0.2325542569, -0.3484944701, 0.2806262672, -0.1433752477, -0.192730844, 0.0463992804, -0.0866828561, 0.1560349613, -0.2287230939, 0.0731345266, 0.0957631841, 0.0568757579, 0.1381038129, -0.2318832278, -0.1537002474, 0.4277766049, 0.0211632699, -0.3620678186, -0.0820331722, -0.0373366922, -0.0148328245, -0.1281269789, 0.0481151566, -0.1951637566, -0.1983327866, -0.1131097898, 0.2236154377, -0.0742341578, -0.3154716492, 0.1518263221, -0.2507010996, -0.2737051547, 0.3905716538, -0.123866044, -0.3739266992, -0.0774783865, 0.220425725, 0.1755113751, 0.0789951235, 0.4106521606, 0.3367051482, -0.0640728995, -0.3133040965, -0.2384478003, 0.1598050743, -0.4164749384, 0.1772857606, -0.1435782611, 0.1515220106, -0.0273458809, 0.3164764047, 0.0630014315, 0.1205943897, 0.020655632, -0.2940014601, -0.2153665423, -0.0177843235, -0.0637845695, 0.2160816938, 0.2012472451, 0.2618277371, 0.0282051042, 0.3244504929, -0.3282783628, 0.2335393727, -0.2057459354, 0.1308390647, 0.0513720363, -0.1313493848, 0.0827393383, 0.2397819161, 0.0975586176, 0.21972619, -0.1647179723, -0.2612221241, -0.2263839543, 0.0987548456, -0.0208422728, 0.0202254057, -0.14770329, -0.1334643513, 0.1280264407, -0.0183769353, 0.4289839566, 0.2284488082, -0.1643977016, 0.1061618328, 0.1367550939, 0.1648219526, -0.0818796754, 0.1702709794, 0.0002728738, -0.0996422917, 0.1888260841, 0.1828818917, -0.0026519187, 0.0396515206, -0.2979303598, -0.1828771681, 0.4134562016, 0.1560270786, 0.0929485112, -0.3851540983, -0.2239550948, 0.0314511843, 0.4500088692, 0.3133750558, -0.3114973903, -0.0574878082, -0.0370503515, 0.2802083492, -0.1861451268, -0.0252605565, -0.0004440919, -0.1982533783, 0.0170281604, 0.3708455265, 0.3222140968, 0.049197644, -0.0257172175, 0.157751888, 0.3708707988, -0.3861026168, 0.2404304147, -0.0043917187, -0.1260695755, 0.1273739338, 0.407805115, 0.2264871299, 0.0797452033, 0.178853184, 0.0911039263, 0.1854626834, -0.0301674362, -0.1411308944, 0.1116840243, -0.3086597919, -0.0381124094, 0.2016684115, -0.2263548821, -0.1244865209, -0.2119967788, -0.0688008219, -0.1871412694, -0.2287644446, -0.3681074083, 0.2676639259, -0.3974692523, -0.0481056646, 0.1096318513, -0.1442813426, 0.1278003901, 0.2010711282, 0.1140561998, 0.1347724497, 0.4494643509, 0.1331141889, -0.2817561924, -0.1104477569, -0.3163565397, 0.2716574371, 0.1550415158, -0.3163850605, 0.2832721174, 0.3418690562, -0.0504980572, -0.2370735109, 0.5526762009, 0.6522246599, 0.3537184298, -0.1452189982, 0.0072203167, 0.0328730755, 0.1318574548, -0.083329916, 0.0924025252, 0.1320803314, 0.2738416791, 0.3750736117, 0.1627763212, -0.1621030867, 0.1509011984, 0.2157596797, 0.1737513989, -0.2635536492, 0.2917875051, -0.0475654602, -0.0709340945, -0.0687780082, 0.0109696165, -0.3325085342, 0.1167243943, 0.4725084901, -0.0993127078, 0.2256480902, 0.0002576374, 0.1222922951, 0.0116999149, 0.3831609488, 0.1213125736, 0.1006879807, -0.6743169427, 0.061779514, -0.4572266638, 0.2957107127, -0.1418881863, 0.1963325888, -0.0430554859, 0.1047223508, -0.2969471514, -0.0652521104, 0.2955664098, -0.0407783613, 0.0765404552, 0.4635722935, -0.5969395638, 0.0495047271, -0.3352075815, -0.1262418181, 0.3455520272, -0.4687045217, 0.219433248, -0.1522491127, 0.0916101933, 0.1163390577, -0.0036385432, 0.3093612194, 0.1244530454, 0.5834570527, 0.1750372648, 0.6061422825, -0.1260510981, 0.131272316, -0.1131601557, -0.4133680463, -0.3300969005, -0.0069514103, 0.1493002772, 0.1066098809, -0.0756933689, -0.0927479565, -0.338512361, -0.1523739845, 0.0260592327, -0.1396059394, -0.0495963134, 0.0400647148, 0.0016710162, 0.0484991223, 0.1314327121, 0.2882747948, 0.2544395924, 0.2327958345, -0.4348085523, -0.3158878386, 0.5066922903, -0.2032599449, -0.5028806925, -0.3684077859, 0.3902990818, -0.0260886922, 0.0840150043, -0.625705719, 0.1361859143, 0.3196179569, -0.078065604, -0.194083944, 0.1666282117, 0.034007363, -0.1527424902, 0.1009974107, -0.0439530984, 0.0453943312, -0.363694489, 0.0277075171, -0.0606808662 ]
https://github.com/huggingface/datasets/issues/2727
Error in loading the Arabic Billion Words Corpus
I modified the dataset loading script to catch the `IndexError` and inspect the records at which the error is happening, and I found this: For the `Techreen` config, the error happens in 36 records when trying to find the `Text` or `Dateline` tags. All these 36 records look something like: ``` <Techreen> <ID>TRN_ARB_0248167</ID> <URL>http://tishreen.news.sy/tishreen/public/read/248240</URL> <Headline>Removed, because the original articles was in English</Headline> </Techreen> ``` and all the 288 faulty records in the `Almustaqbal` config look like: ``` <Almustaqbal> <ID>MTL_ARB_0028398</ID> <URL>http://www.almustaqbal.com/v4/article.aspx?type=NP&ArticleID=179015</URL> <Headline> Removed because it is not available in the original site</Headline> </Almustaqbal> ``` so the error is happening because the articles were removed and so the associated records lack the `Text` tag. In this case, I think we just need to catch the `IndexError` and ignore (pass) it.
## Describe the bug I get `IndexError: list index out of range` when trying to load the `Techreen` and `Almustaqbal` configs of the dataset. ## Steps to reproduce the bug ```python load_dataset("arabic_billion_words", "Techreen") load_dataset("arabic_billion_words", "Almustaqbal") ``` ## Expected results The datasets load succefully. ## Actual results ```python _extract_tags(self, sample, tag) 139 if len(out) > 0: 140 break --> 141 return out[0] 142 143 def _clean_text(self, text): IndexError: list index out of range ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.2 - Platform: Ubuntu 18.04.5 LTS - Python version: 3.7.11 - PyArrow version: 3.0.0
128
Error in loading the Arabic Billion Words Corpus ## Describe the bug I get `IndexError: list index out of range` when trying to load the `Techreen` and `Almustaqbal` configs of the dataset. ## Steps to reproduce the bug ```python load_dataset("arabic_billion_words", "Techreen") load_dataset("arabic_billion_words", "Almustaqbal") ``` ## Expected results The datasets load succefully. ## Actual results ```python _extract_tags(self, sample, tag) 139 if len(out) > 0: 140 break --> 141 return out[0] 142 143 def _clean_text(self, text): IndexError: list index out of range ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.2 - Platform: Ubuntu 18.04.5 LTS - Python version: 3.7.11 - PyArrow version: 3.0.0 I modified the dataset loading script to catch the `IndexError` and inspect the records at which the error is happening, and I found this: For the `Techreen` config, the error happens in 36 records when trying to find the `Text` or `Dateline` tags. All these 36 records look something like: ``` <Techreen> <ID>TRN_ARB_0248167</ID> <URL>http://tishreen.news.sy/tishreen/public/read/248240</URL> <Headline>Removed, because the original articles was in English</Headline> </Techreen> ``` and all the 288 faulty records in the `Almustaqbal` config look like: ``` <Almustaqbal> <ID>MTL_ARB_0028398</ID> <URL>http://www.almustaqbal.com/v4/article.aspx?type=NP&ArticleID=179015</URL> <Headline> Removed because it is not available in the original site</Headline> </Almustaqbal> ``` so the error is happening because the articles were removed and so the associated records lack the `Text` tag. In this case, I think we just need to catch the `IndexError` and ignore (pass) it.
[ -0.1755404472, 0.1067499518, -0.1183999032, 0.4231292903, -0.1488430202, 0.2618190944, 0.232335031, 0.3904678524, 0.3619006276, -0.0010759756, -0.2331464142, -0.0116893537, 0.0589740761, 0.011106275, -0.0046197567, -0.2025988996, -0.0308901034, -0.1021869183, 0.2275919616, 0.1421488076, -0.1725380123, 0.088297978, -0.2301311344, -0.089733392, 0.1276373863, -0.0596878231, 0.0723105744, 0.0443107486, 0.2043147981, -0.5446291566, -0.0048861429, -0.4125088155, 0.4355433881, 0.4883061349, -0.0001138217, 0.0546826273, 0.3437695503, -0.0272879153, -0.393096149, -0.4340235591, -0.3352655172, -0.2002719194, 0.0597980917, -0.2232350707, -0.0848991349, -0.2553301156, -0.1447218359, -0.3347810507, 0.1664271504, 0.5260609984, 0.15908584, 0.1715175807, 0.1333595663, 0.1060605273, 0.3838213682, -0.2292445004, -0.0983324647, 0.2020832151, 0.5291868448, 0.1876036525, -0.0844440013, 0.2945674062, -0.1038552597, -0.0169018432, 0.1182349622, -0.0495263487, 0.1696145236, -0.4821277857, 0.0659708008, 0.2115796804, 0.3448190093, -0.3105716407, -0.4523897171, -0.2377698869, -0.1179609075, -0.3698241711, 0.2565723956, 0.2197510302, -0.1959239244, 0.1295434684, 0.1145653576, -0.0898962915, -0.0348887146, 0.3676128089, -0.3026768267, 0.3926456273, -0.0772496387, -0.0298964828, 0.1111187786, -0.1466868222, 0.0816029012, 0.0027607232, 0.0597462915, 0.2146911323, -0.3444153666, 0.2084280401, 0.073680684, -0.1433286071, 0.0144618526, 0.0827069655, 0.2570382357, -0.0341070816, -0.0585579798, 0.0653539896, 0.3505277634, 0.1814716458, -0.109526746, 0.0925200284, -0.0106692836, 0.3030141294, 0.0932590812, 0.0778534561, 0.1683072448, -0.2432314157, 0.0530866683, -0.0370574743, 0.2929573357, -0.352353096, -0.2658050954, 0.2261012793, -0.3138167858, -0.183283776, 0.0655585378, 0.1817699224, -0.2392184734, -0.1005863249, 0.2253464162, 0.067983523, -0.2773725688, -0.0633980632, -0.1548107415, 0.0935428888, -0.0421133675, 0.1769759059, 0.4418581426, -0.5744711161, 0.1978180707, 0.0437814295, 0.2652724087, -0.036215242, 0.0188355967, -0.4248971939, 0.2650998831, 0.4377249479, 0.0096788108, 0.0718523487, 0.0458109491, 0.0313297585, -0.129972294, 0.3096792996, -0.2886224687, -0.1968883574, -0.0432503745, 0.1264825463, 0.0378433019, 0.1340030432, -0.1635892093, 0.376588136, 0.5087186694, -0.1100704819, 0.0502905399, -0.1411718577, -0.2798917592, -0.0035949126, 0.1736455113, 0.4015001059, -0.3967856169, -0.1055604666, 0.0184918605, 0.5653257966, -0.0560426675, 0.1985333264, -0.2315893918, 0.4627303481, -0.1715316623, 0.2583890557, 0.2030445784, -0.1243121624, -0.1949729919, 0.1152664945, 0.2389272749, -0.0143755972, -0.0578816459, -0.1760069877, 0.4688829482, -0.1368214041, 0.6135959625, 0.3449404836, -0.0424389616, -0.0966618806, -0.3477306366, -0.1141510606, 0.1973972023, 0.1627767384, 0.0313841254, -0.0484859869, -0.0097029768, -0.2665247917, 0.078868717, 0.1392222047, 0.0231258571, 0.3674277961, -0.6418526173, 0.0916572958, 0.2857528031, -0.2323862612, -0.1339326054, 0.1271804273, -0.1287387908, 0.2774349749, -0.3100441396, 0.1869030595, -0.4867816269, 0.0157059431, -0.1359553784, 0.1484375, 0.0637336224, 0.0105743185, -0.1396460384, 0.2280970514, -0.2554458976, -0.1438363791, 0.0683846846, -0.0334544256, -0.6968354583, 0.237387836, -0.2281327695, -0.1361775994, 0.1577715874, 0.102008298, 0.1404305696, -0.1101045236, -0.1807846725, -0.020391725, -0.1228404045, -0.1708034575, -0.3455619812, 0.3240133822, 0.3131723106, -0.3127223849, 0.2518371046, 0.4056277573, 0.270893693, -0.0836236998, 0.3261787891, 0.2131666988, -0.1609645784, 0.3445234597, -0.0217995569, -0.2369900048, 0.2463634014, 0.0210880488, -0.0098295324, -0.2796857953, 0.2190890461, -0.1045977771, 0.3646547198, 0.0616710931, -0.0477097631, -0.0581345744, 0.1234447509, -0.0161478445, 0.1691763252, 0.2042668611, -0.0738272369, -0.1680463552, -0.1717485785, -0.3292057514, 0.1732797921, 0.1077178121, -0.0089461282, -0.0834017396, 0.1157974824, -0.1058290601, 0.3423880339, 0.2552765906, 0.2736132145, 0.2762809694, 0.0783206895, 0.1315888762, -0.3082398772, -0.4225614071, 0.0142450035, 0.2152879238, -0.4495740533, 0.4153724909, 0.1764907241, -0.379693985, 0.0393817872, -0.672387898, -0.2069758326, -0.2337337434, 0.0206670985, -0.146847412, -0.2473728657, 0.0721464679, -0.1190407127, 0.0950720161, 0.2156869173, 0.0018516984, -0.0147828832, 0.0973435789, -0.3829988837, -0.0383322611, 0.2576625049, -0.0327399746, 0.0954392925, -0.0960052907, -0.1535273045, -0.1855540425, -0.0036088452, 0.1915377676, 0.0029508024, 0.4744871259, 0.0214511491, 0.3548188508, -0.0678443909, -0.3108949661, 0.142810002, 0.2841093838, -0.0027109385, 0.0835406929, 0.005192332, 0.3517224789, 0.0820930824, -0.631483674, -0.2765559852, -0.3663814962, -0.2867329121, -0.0545875356, 0.2838802636, 0.3187380731, -0.0734039322, -0.1046384126, 0.224722892, 0.3155888617, -0.2177783996, -0.0706696361, 0.244487375, -0.0777036846, -0.2715017796, -0.1034863517, -0.0088609532, 0.0229867119, 0.0225056931, -0.4185809195, 0.3741729259, -0.2116334885, -0.1099838167, -0.2799410522, 0.1427978277, 0.1195819825, -0.1057287753, -0.0864006877, 0.2175136805, -0.145734176, -0.0083486885, -0.0701678395, 0.1588687897, 0.2455358207, 0.3019488454, -0.150668174, 0.2919906676, -0.0586927161, -0.0400832631, 0.643981874, 0.2175880522, 0.1514041424, -0.2557824254, -0.3873143792, -0.1864756942, 0.0446602553, -0.3228285313, 0.3679371178, 0.0021883957, -0.4897554517, -0.2030828893, -0.3399728835, -0.4267125726, -0.191381827, 0.2030261308, -0.1593588591, 0.2108829767, 0.0237510279, 0.0421084911, -0.0633241534, -0.1329178959, 0.10052903, 0.0311090369, -0.0726396665, -0.0021497421, 0.2656378448, -0.2039827257, -0.3477559388, 0.1620821953, 0.2984673083, 0.4872820079, -0.0555182323, -0.0622756109, 0.004818365, 0.1248933226, 0.6233376265, 0.0114802774, 0.2188985944, 0.3644368649, 0.1261978, -0.1252693534, -0.246292457, -0.167723611, 0.295540303, 0.1296835393, 0.0469405577, -0.2580865026, 0.0334392264, 0.03490844, 0.5183109045, -0.1502606571, -0.1503086835, -0.2134930342, -0.2702845037, -0.1576330662, 0.0489907041, 0.2762342691, 0.2790073752, 0.1163907647, 0.0565572381, 0.1449833214, -0.0082675144, 0.1182349622, 0.0302529708, 0.2791368663, -0.0354131386, 0.2316613644, -0.050523974, 0.102232337, 0.169985801, 0.4633558393, -0.0541026331, -0.204969883, 0.0626578927, 0.0439117625, -0.0007969849, 0.2750036716, 0.0230815187, -0.0759897977, 0.104980953, 0.0703087449, 0.0560400374, -0.2724577188, -0.0922066122, -0.0225838423, -0.543132782, -0.4410667419, 0.4706728458, -0.0079252087, -0.101508528, 0.3908190727, -0.067043364, -0.3913847804, 0.8489490151, -0.0848354995, 0.9151951075, -0.1068364456, 0.0912296027, -0.0729306936, 0.3846327662, 0.20642142, 0.0115278587, 0.145675987, -0.2525368333, -0.2984531224, -0.1454468071, -0.0122562498, -0.0232701935, 0.032877028, -0.1993304789, 0.3208721578, -0.2007216215, -0.1426831186, 0.087376602, -0.0067099631, -0.1424008161, -0.325697422, -0.7548495531, 0.0061007217, -0.0925033838, 0.0177586228, -0.128366977, -0.0647784173, -0.0522781909, 0.0719935894, -0.3233531415, 0.0826198012, -0.2926446795, 0.1916068494, -0.0383141562, 0.0786376595, 0.192941159, -0.1405195147, 0.2449631393, 0.0390204638, -0.1484771818, -0.1100703329, 0.0302475281, -0.1444116384, 0.1483396292, -0.1872264296, 0.5013314486, -0.0442666709, -0.2843295038, 0.1605215371, -0.0077373572, -0.1709924638, -0.1163545474, 0.3395335376, 0.1112182289, -0.3739178777, -0.2430127114, -0.1658252627, 0.1200298741, -0.1154509485, 0.1192824915, 0.1934637576, -0.1843613982, 0.1124215871, 0.1926918924, -0.4189242423, -0.1223241165, 0.47174263, 0.2463547587, 0.1172109395, 0.3903489411, 0.6143895984, -0.1637526453, -0.0698996708, -0.1813164502, 0.1079718173, -0.4279263318, 0.1673281789, -0.0595008545, 0.0256694108, 0.0052669048, 0.5612251759, 0.2377907187, -0.0229390636, -0.1789639741, -0.6683346033, 0.1777798831, 0.3081204295, 0.0797467381, -0.0309093222, 0.1908642799, -0.1966799796, -0.059871465, -0.1727072448, -0.2727917731, 0.1352401078, -0.3521441221, 0.3807978034, -0.5048590899, -0.0210787095, 0.164259553, -0.0796082839, 0.0516792014, -0.0498385169, -0.1113033742, -0.2304137945, 0.0514917076, 0.1193003953, -0.1328908503, -0.2133140117, -0.3685186803, -0.247991696, 0.0559157617, -0.1663182378, 0.0965266973, 0.2537266016, 0.0825102404, -0.0666558072, 0.1753320992, -0.2093823999, -0.0640962496, 0.2392825484, -0.1072062701, 0.2693246305, 0.1828237325, 0.2660243809, -0.1483025551, -0.0021978095, -0.3165092468, 0.1672481596, -0.1971393228, 0.1155368835, 0.2080383897, -0.3303745389, -0.0588246956, 0.4746853709, 0.2639427483, 0.2856269181, -0.3358515799, -0.2472341508, -0.2202568799, 0.1564175636, -0.227623269, -0.2707375884, -0.0806937367, -0.2140188664, 0.0222400874, 0.3439476788, 0.3728129268, -0.3177204132, -0.2651559412, 0.0304209664, 0.3469939232, 0.0293372534, -0.0581983849, 0.3112131655, 0.1939303577, 0.0735184997, 0.0554656014, -0.0581339635, 0.2517089546, 0.3587358594, -0.0427227579, 0.4240318537, 0.5910563469, 0.2392538339, -0.2086256444, -0.5564649701, 0.4546754062, 0.3678335547, 0.143753916, 0.0243153386, 0.1914879382, -0.3231004477, 0.190757513, -0.0923769474, -0.0231579952, -0.0302628819, -0.0183196589, 0.0349917598, 0.0932231694, -0.2088590562, 0.1414797306, -0.2800650299, -0.0208467133, -0.0735579729, 0.0253786668, 0.1334733963, -0.2514319718, -0.0405888595, 0.0336348712, 0.0703933537, 0.1245526373, -0.1598725468, 0.3140042722, 0.2583770752, -0.1721873879, 0.03027758, 0.4492288232, 0.479888171, 0.4027009606, -0.0890970826, 0.1645621508, -0.0922216401, -0.1725894809, -0.1757374108, 0.0987888873, 0.0299801286, 0.1102685034, 0.2625528574, 0.0869522914, -0.0729661733, 0.152592063, 0.3058071434, 0.1193875, 0.0408312939, -0.0341428854, -0.1013067067, -0.0667460859, -0.2574474216, 0.0409119576, -0.4404964745, -0.061700888, 0.5526071787, -0.4645680785, 0.1704441458, 0.1823162436, 0.0622185692, -0.0459922552, 0.4709727168, 0.5967458487, 0.1878379583, -0.4081813991, 0.1641997695, -0.3384472132, 0.1257902235, -0.1452888697, 0.1523462832, 0.5619263053, 0.2891361713, 0.029884778, 0.2199966908, 0.1524373889, 0.3632758558, -0.0070692077, 0.0890550837, -0.5017117262, -0.3325835466, -0.0525972396, 0.3393878937, -0.3351188898, -0.1767840236, 0.1947644949, -0.5119804144, 0.027240552, -0.2343554646, -0.3554561436, 0.1396100074, 0.4828726947, 0.2694966197, 0.0999224856, -0.049824398, -0.128231883, -0.0530842468, -0.1693369299, -0.0467174649, 0.0469608456, 0.5258585215, 0.0927633196, 0.1517027617, -0.1340389252, -0.1395257264, -0.1057456583, 0.3818730712, -0.1435225606, -0.0104675181, -0.2730928361, 0.0261899605, -0.1786252707, 0.1172596365, -0.111997135, 0.2092103958, 0.1263939142, 0.3173691034, -0.0004324019, -0.4568521678, 0.5289965868, -0.4251686931, -0.230963856, -0.359975487, 0.2226496786, 0.3706859052, -0.0084144492, -0.5656884313, 0.0114937574, 0.3054686189, 0.0736180097, -0.5129503608, 0.0012237281, -0.1819705665, 0.2164081037, -0.0813526586, 0.2238121033, 0.1676718593, -0.296299845, -0.2643440068, -0.1033180058 ]
https://github.com/huggingface/datasets/issues/2727
Error in loading the Arabic Billion Words Corpus
Thanks @M-Salti for reporting this issue and for your investigation. Indeed, those `IndexError` should be catched and the corresponding record should be ignored. I'm opening a Pull Request to fix it.
## Describe the bug I get `IndexError: list index out of range` when trying to load the `Techreen` and `Almustaqbal` configs of the dataset. ## Steps to reproduce the bug ```python load_dataset("arabic_billion_words", "Techreen") load_dataset("arabic_billion_words", "Almustaqbal") ``` ## Expected results The datasets load succefully. ## Actual results ```python _extract_tags(self, sample, tag) 139 if len(out) > 0: 140 break --> 141 return out[0] 142 143 def _clean_text(self, text): IndexError: list index out of range ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.2 - Platform: Ubuntu 18.04.5 LTS - Python version: 3.7.11 - PyArrow version: 3.0.0
31
Error in loading the Arabic Billion Words Corpus ## Describe the bug I get `IndexError: list index out of range` when trying to load the `Techreen` and `Almustaqbal` configs of the dataset. ## Steps to reproduce the bug ```python load_dataset("arabic_billion_words", "Techreen") load_dataset("arabic_billion_words", "Almustaqbal") ``` ## Expected results The datasets load succefully. ## Actual results ```python _extract_tags(self, sample, tag) 139 if len(out) > 0: 140 break --> 141 return out[0] 142 143 def _clean_text(self, text): IndexError: list index out of range ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.2 - Platform: Ubuntu 18.04.5 LTS - Python version: 3.7.11 - PyArrow version: 3.0.0 Thanks @M-Salti for reporting this issue and for your investigation. Indeed, those `IndexError` should be catched and the corresponding record should be ignored. I'm opening a Pull Request to fix it.
[ -0.1877750605, -0.0464502722, -0.0886767581, 0.4570910037, -0.1361012161, 0.2721575797, 0.2241880447, 0.3228883743, 0.4278391302, -0.013256073, -0.2501671612, -0.0138163045, 0.1214889213, 0.0700828657, -0.0400826, -0.2980046272, 0.0483286679, -0.0983882919, 0.2569688559, 0.0944313109, -0.2235398144, 0.0493708402, -0.3123705983, -0.0771446228, 0.152614519, -0.0772052705, 0.015780054, -0.0589514561, 0.2090412378, -0.4896108806, 0.0861004367, -0.3483734727, 0.529779017, 0.5618441105, -0.0001174112, -0.0130775422, 0.4175139964, 0.001164332, -0.2492551208, -0.5517656207, -0.1917781234, -0.1388530135, 0.1426746249, -0.1907674521, -0.1093662977, -0.2686258256, -0.1455367506, -0.2430966794, 0.1646288782, 0.3619323969, 0.149828732, 0.1506914347, 0.1792136431, 0.0761945099, 0.2918265164, -0.2640069723, -0.0309771225, 0.1672477424, 0.5540947318, 0.0845653191, 0.020655131, 0.1773420125, -0.1420637667, 0.0195196532, 0.1509266645, -0.0254507177, 0.1860084385, -0.6007184386, 0.0481727794, 0.2375651449, 0.437904954, -0.2943654954, -0.4859937727, -0.2032390982, -0.0306404121, -0.3684282005, 0.2340957522, 0.3169798255, -0.1875098944, 0.1218396127, 0.1365368366, -0.1637620628, -0.1190506592, 0.3956001401, -0.2622690201, 0.325565964, -0.0335664712, 0.0091809891, 0.1443217695, -0.1356598735, 0.0591467395, -0.0627766103, 0.008982419, 0.2237097472, -0.3714156151, 0.2426294833, 0.0462795272, -0.1512625068, 0.0464232266, 0.1270493865, 0.1780864298, -0.0431698412, -0.0866994336, 0.187037617, 0.3773939312, 0.1415170729, -0.0474854745, 0.1577920616, 0.0590437204, 0.2584308386, -0.0364743583, 0.0688211322, 0.1227204055, -0.1632344127, 0.0382449776, -0.1630248576, 0.2272500992, -0.3855600357, -0.2166518867, 0.2503852248, -0.4001903534, -0.2164931595, 0.0175690874, 0.1911915839, -0.2175973058, -0.1130018905, 0.1756853163, 0.2376641333, -0.1939764172, -0.0253837705, -0.1380521655, 0.0888228416, -0.0909499153, 0.0913550407, 0.4032440782, -0.6046215296, 0.2357470393, -0.0026580952, 0.3509509265, -0.0137087628, 0.1142157167, -0.3825577199, 0.1943871081, 0.4071758091, 0.1387536973, 0.0799131319, 0.1162826717, 0.0233892724, -0.1573427469, 0.4012974203, -0.3911562562, -0.1710177958, -0.0674690083, 0.1026383638, 0.000966385, 0.0878519267, -0.2276012897, 0.3403203785, 0.5037469268, -0.0629233941, 0.0032119006, -0.1481616348, -0.3219295442, -0.0733050555, 0.1235523671, 0.3431198001, -0.3512626886, -0.0584015697, 0.0450981855, 0.4893798232, -0.0376650542, 0.2192805111, -0.2559596002, 0.4304127097, -0.1774687618, 0.3240619302, 0.2467714846, -0.127713725, -0.2421397865, 0.1979270279, 0.2657417059, -0.0758553594, -0.103073217, -0.2082654238, 0.4517377317, -0.0546390861, 0.6274050474, 0.493914187, -0.0511972085, -0.09005218, -0.3175869584, -0.1195221469, 0.349668026, 0.1258062869, 0.1293509901, -0.0166824125, 0.0039981641, -0.2633423805, 0.1419402659, 0.1173855513, -0.0173714012, 0.3858929276, -0.4759048223, 0.0965218022, 0.3008753359, -0.2243797034, 0.042848222, 0.1723197997, -0.1413497776, 0.2480077744, -0.2273524702, 0.2863011956, -0.4168076515, 0.0402078852, -0.2054208368, 0.0908535197, 0.014636483, -0.0775184557, -0.0872637182, 0.2759563923, -0.2865072787, -0.1691032052, 0.0641299039, 0.0150775537, -0.6049720645, 0.334218204, -0.1763081998, -0.2357381284, 0.0998827741, -0.012394961, 0.1410335004, -0.1680070013, -0.2132778764, 0.0060992036, -0.1226601899, -0.2166844904, -0.3014380336, 0.2852747738, 0.295688659, -0.3731184006, 0.3329123855, 0.4022061229, 0.1639840901, -0.0809130222, 0.3661572039, 0.2040120661, -0.1086352617, 0.3784813881, -0.1051318198, -0.2154237628, 0.2266109139, 0.0307549983, 0.0170903727, -0.1032830104, 0.284992218, -0.1050959304, 0.3402000666, -0.0231681801, -0.131332323, -0.1196969599, 0.0099503119, 0.0059379041, 0.2142352611, 0.2765230536, -0.0754357576, -0.1280436069, -0.1962986141, -0.457331568, 0.2315339893, 0.1442407668, -0.0854848325, -0.0895237252, 0.1244904324, -0.0630654171, 0.3120191991, 0.1077941954, 0.2943938375, 0.2502010465, 0.134786725, 0.101407975, -0.3171718717, -0.3249179721, 0.0405472443, 0.1729808748, -0.3517558873, 0.4300265908, 0.2592785656, -0.3555387259, 0.0915019959, -0.6388454437, -0.2775252461, -0.1306151152, -0.0360217616, 0.0063874815, -0.1150354892, 0.1680922508, -0.1682747006, -0.0864630491, 0.2360255718, -0.1264012009, 0.0223938972, 0.0920129567, -0.3701220155, -0.077002719, 0.2550441623, -0.0746803135, 0.1576037556, 0.0727807507, -0.1214021742, -0.1043149456, -0.0292143449, 0.1853602678, -0.0183182266, 0.4640196264, -0.1149676815, 0.3587628305, -0.1403546333, -0.2421624511, 0.227158308, 0.1857071817, -0.0218749605, 0.1637766957, 0.0100995675, 0.2391341627, 0.0944108963, -0.4681006074, -0.3149430752, -0.3170126677, -0.2879399955, -0.0266063549, 0.167860806, 0.3233621716, -0.0039898641, -0.2117659003, 0.2140716314, 0.2239968777, -0.1747624576, -0.1660603583, 0.2782449722, -0.0394990221, -0.3239012659, -0.082035251, 0.0130387619, -0.0526658818, 0.0465413816, -0.4170079529, 0.3313931227, -0.2046103626, -0.0389940701, -0.2311556935, 0.1742725372, 0.091413185, -0.1448887438, -0.0160808749, 0.1682030857, -0.0429362878, -0.0291247927, 0.0024894699, 0.1942387372, 0.32451424, 0.2126040459, -0.1889989525, 0.2093215734, -0.0382448956, 0.0387959741, 0.6535491347, 0.2737872005, 0.0766959041, -0.2376987785, -0.4639847875, -0.1501164138, 0.1125407517, -0.4123544693, 0.3311192393, -0.0498031154, -0.4764989614, -0.250131309, -0.3851378262, -0.3440401554, -0.1309672147, 0.1390450597, -0.1468761414, 0.2006629258, -0.0047836006, 0.0029351935, -0.0379977822, -0.1806617975, 0.0935201347, -0.0534735434, -0.0655056536, 0.0269599147, 0.3056280613, -0.2745110393, -0.3386609256, 0.1035832763, 0.2288866043, 0.4502702355, -0.0063824579, 0.0100233257, 0.0519627035, 0.152951926, 0.6871084571, 0.0248992797, 0.2073342055, 0.3312928081, 0.1308221966, -0.1347749531, -0.3419045508, -0.1734805554, 0.371322602, 0.0345738344, 0.1124421507, -0.2644978762, 0.0738710389, -0.0232194476, 0.5086476207, -0.1613167077, -0.2682158947, -0.3335085809, -0.2844648063, -0.2667703927, 0.089874357, 0.1821268201, 0.3325807452, 0.0521923974, 0.0686133355, 0.1627583802, -0.0147585645, 0.1783934385, 0.0448339731, 0.2641834617, -0.0901439562, 0.2104616761, -0.1074536368, 0.0633917227, 0.1904763579, 0.4232787192, -0.0521411784, -0.2642838061, 0.0136035681, -0.0258190446, 0.1289607733, 0.1327121854, 0.0336933061, 0.0372573882, -0.0419182852, 0.0932733715, 0.0550295115, -0.3299224675, -0.0015828498, 0.035029009, -0.5425879955, -0.4569782019, 0.5198668838, -0.0449457392, -0.0834907964, 0.4464787543, -0.1348858178, -0.3541565537, 0.8186007142, -0.1164207608, 0.9402421117, -0.1575016081, 0.0902892426, -0.0986622721, 0.4318519235, 0.2294866443, 0.0170625523, 0.1314001381, -0.3510848284, -0.3513860703, -0.1283221245, -0.0653105155, -0.017675383, -0.0540250503, -0.1974100769, 0.2823764086, -0.2762396634, -0.1637957245, 0.1032767743, 0.0036849007, -0.038396541, -0.3015964925, -0.7697242498, -0.0044941865, -0.1211739108, 0.06400197, -0.1528097391, -0.0446801707, -0.0569315776, 0.062365137, -0.3020886779, 0.1786655635, -0.1697910726, 0.2599479556, -0.0245675743, -0.0733062848, 0.2296822071, 0.0374513939, 0.1489693671, 0.0733142421, -0.1680748612, -0.1542635262, 0.0181148257, -0.2912921309, 0.0807129741, -0.1277767718, 0.4687170982, -0.0247426927, -0.4387732744, 0.2530714273, 0.0408912338, -0.0934379101, -0.1768902689, 0.3172104955, 0.1629776359, -0.3863541484, -0.3148024082, -0.2251951545, 0.1760266572, -0.0860231593, 0.1034945473, 0.2724950016, -0.2727382481, 0.1300432086, 0.2212481201, -0.3995959163, -0.0710093379, 0.4882134795, 0.2661291957, 0.1050897464, 0.4344876111, 0.690944314, -0.1168321073, -0.0621258207, -0.0925752372, -0.0260297693, -0.2954343855, 0.1991962641, 0.0361020416, 0.113955006, -0.0163016915, 0.5044163465, 0.2366805673, -0.0716008395, -0.101410687, -0.6054028273, 0.1177415699, 0.2298295796, -0.0089504318, -0.1208770797, 0.1899377257, -0.2474108934, -0.0090363584, -0.2172665745, -0.2536599934, 0.1492656022, -0.3593367338, 0.3357181251, -0.4784279466, 0.0297563337, 0.1237491816, -0.1205695271, 0.0153230205, -0.0598336942, -0.0652335286, -0.2206033617, -0.0253340304, 0.1380937099, -0.0656346828, -0.142389521, -0.2752310634, -0.3211160898, 0.0448403917, -0.1300243735, 0.0392532274, 0.2385994494, 0.0715837628, -0.0087846108, 0.2596638501, -0.1693473905, -0.1735751927, 0.3215182722, -0.1807610095, 0.2754141688, 0.108780995, 0.1767296642, -0.014015507, -0.0061274692, -0.4125484228, 0.0968423635, -0.1366613954, 0.0956595242, 0.2184814513, -0.4270797968, 0.0428609774, 0.3978967369, 0.3022238314, 0.2615048885, -0.3576151729, -0.1294257492, -0.1006744355, 0.1508113742, -0.2962695956, -0.2760989368, 0.0981948003, -0.1901114434, -0.1004611179, 0.3018142879, 0.3105674982, -0.2831617594, -0.391625315, 0.0541896075, 0.3112682104, 0.0897268504, -0.0206474513, 0.3724780381, 0.2655082941, 0.111991033, 0.1267889887, 0.0331317633, 0.2198857367, 0.3703354895, 0.0196165442, 0.3831455112, 0.5232912898, 0.1656561196, -0.2105607688, -0.5987145901, 0.4757800698, 0.3198191524, 0.2372420579, -0.0275614783, 0.0966652185, -0.1578446627, 0.1674954891, -0.1574900448, -0.0907717943, 0.0042774938, -0.0026951302, 0.0463200137, 0.1055217534, -0.2007156163, 0.1826440841, -0.215525955, -0.0251818448, -0.0862761438, -0.0452749655, 0.1951212436, -0.2231221497, -0.1429713368, 0.0516926274, 0.1707569063, 0.1168575436, -0.2242255658, 0.2616123259, 0.2061661929, -0.2228831947, 0.025996957, 0.4006110728, 0.5047864318, 0.4441467524, -0.180177182, 0.1704860032, -0.0707331896, -0.1570307612, -0.1112938821, 0.1080038324, 0.0683772489, 0.2420632839, 0.2476899177, 0.0788132325, -0.0633479729, 0.2042133808, 0.2919199169, 0.101816088, -0.0199519619, -0.0103588812, -0.086606741, -0.1367335767, -0.3233425617, -0.0731443763, -0.4708895385, 0.0395664982, 0.6526064873, -0.348919183, 0.0747138858, 0.1700440645, 0.0357095227, -0.0809754878, 0.4416023493, 0.6995096803, 0.2822190821, -0.4421758056, 0.2009069771, -0.3303514719, 0.2510180473, -0.1869002879, 0.203040719, 0.5098546147, 0.2263409197, 0.011725463, 0.2636483014, 0.132335484, 0.3015122116, -0.0514409058, 0.2220501304, -0.4766449034, -0.3353194594, -0.1140911132, 0.3805038333, -0.341232866, -0.1062499061, 0.1164387092, -0.5912810564, 0.0090653971, -0.3236002624, -0.2978069186, 0.1466221064, 0.3390181363, 0.3214840591, 0.1121078283, 0.0966382697, -0.045619376, 0.0239854231, -0.0831466541, -0.1393452287, 0.0083727203, 0.4147399068, 0.0642856061, 0.1914903522, -0.1946296692, -0.2010738403, -0.1859121174, 0.3737418056, -0.1076289862, -0.0778104812, -0.2968199849, -0.0362860598, -0.1400791407, 0.061499767, -0.1188207492, 0.179810524, 0.1099343523, 0.338496536, 0.0274359584, -0.3561401963, 0.5066059828, -0.5102149248, -0.3376928568, -0.3747170568, 0.1354248077, 0.281704396, -0.0234076474, -0.5694023371, 0.0318839997, 0.3264685273, 0.1137194335, -0.4719182253, 0.0395712703, -0.1244503036, 0.2546504736, -0.0420338139, 0.1964077055, 0.0950779319, -0.232477054, -0.2083831131, -0.0419431478 ]
https://github.com/huggingface/datasets/issues/2724
404 Error when loading remote data files from private repo
I guess the issue is when computing the ETags of the remote files. Indeed `use_auth_token` must be passed to `request_etags` here: https://github.com/huggingface/datasets/blob/35b5e4bc0cb2ed896e40f3eb2a4aa3de1cb1a6c5/src/datasets/builder.py#L160-L160
## Describe the bug When loading remote data files from a private repo, a 404 error is raised. ## Steps to reproduce the bug ```python url = hf_hub_url("lewtun/asr-preds-test", "preds.jsonl", repo_type="dataset") dset = load_dataset("json", data_files=url, use_auth_token=True) # HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/datasets/lewtun/asr-preds-test/resolve/main/preds.jsonl ``` ## Expected results Load dataset. ## Actual results 404 Error.
22
404 Error when loading remote data files from private repo ## Describe the bug When loading remote data files from a private repo, a 404 error is raised. ## Steps to reproduce the bug ```python url = hf_hub_url("lewtun/asr-preds-test", "preds.jsonl", repo_type="dataset") dset = load_dataset("json", data_files=url, use_auth_token=True) # HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/datasets/lewtun/asr-preds-test/resolve/main/preds.jsonl ``` ## Expected results Load dataset. ## Actual results 404 Error. I guess the issue is when computing the ETags of the remote files. Indeed `use_auth_token` must be passed to `request_etags` here: https://github.com/huggingface/datasets/blob/35b5e4bc0cb2ed896e40f3eb2a4aa3de1cb1a6c5/src/datasets/builder.py#L160-L160
[ 0.0871631354, 0.0258457065, 0.0274067335, 0.6045911312, -0.1784685701, -0.0898554772, 0.2882223129, 0.3268501163, 0.0184908807, 0.1675238013, -0.3694000244, -0.083986029, 0.2241544574, -0.0408567488, 0.0888222605, -0.0422794372, 0.0376423523, 0.1200494915, 0.3278563023, -0.240673244, -0.1716180742, 0.1605944484, -0.0282530934, 0.2701844871, 0.0697426945, 0.1259598732, 0.042158857, 0.5915511847, -0.1242949516, -0.1665707529, 0.2873153687, -0.0173066668, 0.57074368, 0.8942390084, -0.0001184026, 0.1681626588, 0.2595360279, 0.0103585944, -0.2348510474, -0.1142682359, -0.4038444161, 0.1302045882, 0.0836364254, -0.1607072949, -0.1807737648, -0.0938133001, -0.3060294092, 0.0864415243, 0.4408939481, 0.3926029205, 0.166180253, 0.4484368563, 0.0907082632, -0.165646106, 0.4235150814, 0.0348580591, 0.0053400323, 0.2900849581, -0.0708380491, 0.0867630765, 0.0132968649, -0.0068781637, 0.0141340941, 0.0842936635, 0.2092769444, 0.0134577192, -0.0423866548, -0.0992745757, -0.1002173051, 0.0658623353, 0.4129541516, 0.0002571924, -0.2669299245, 0.0266831741, -0.0367547274, -0.1364855319, 0.1582318544, 0.2569403946, -0.1341067255, 0.1208950579, -0.1735555232, -0.3134867847, -0.4048247933, 0.333838433, 0.1114474982, -0.0551390722, 0.0097000934, 0.0252806582, -0.252635926, -0.2069940865, -0.096489951, -0.1750049591, 0.0213219766, 0.1697474122, -0.0287925974, -0.0907955095, 0.0858660191, -0.031663157, 0.2942894697, 0.3939570189, -0.2702387571, -0.0663877279, -0.4752776921, 0.1954911053, -0.0173456278, 0.3439950645, 0.0193967968, 0.2792778611, 0.4515993297, 0.4925675988, 0.0249248743, 0.0916301012, -0.3378532529, -0.0051900037, -0.1679283679, -0.192733109, 0.464619875, -0.4979291558, -0.0039772019, 0.1847067028, -0.2357383817, 0.0277586654, -0.0260836743, 0.340642333, -0.0719408989, -0.1338149011, 0.0686860383, 0.0375015736, -0.2768377364, -0.0923995152, -0.1704371721, -0.1632040143, 0.0213638768, 0.2591724098, 0.1316789538, -0.0267503187, 0.2024152577, -0.0369495712, 0.3569189012, -0.2349616289, 0.000122577, 0.1925105751, -0.1851200014, 0.2597727478, 0.1659452319, -0.0253739506, 0.1190526783, -0.3925630748, -0.0547075197, -0.1396570653, -0.6864683628, -0.4307949841, -0.0843315795, 0.1072937995, -0.1942068487, 0.0400026739, -0.5282011628, -0.3732127845, -0.1112888381, -0.0995291695, 0.0376246274, 0.0282476991, -0.0483968332, -0.1158322841, 0.158527419, 0.5857001543, 0.3585838377, -0.0071594715, 0.3294959068, -0.1886000484, 0.201934427, 0.3431800306, -0.1851005703, 0.0839204043, -0.2878255844, 0.311000973, 0.1597584784, -0.481515348, -0.4112558961, 0.6456842422, -0.2698856592, 0.0339967832, 0.0982299969, -0.1084415689, 0.1172516048, -0.2085671723, 0.5326526761, 0.465727061, 0.2107894272, -0.1300879419, -0.288569659, -0.2136393785, -0.36294204, 0.3998592198, -0.0017963699, 0.2109305561, 0.3625541329, -0.2569054067, 0.2932193577, -0.0458183698, -0.1872207373, 0.3072161973, 0.3584534526, 0.0192742255, 0.2242030203, 0.0763050169, -0.2873439193, 0.1927689165, -0.358561337, 0.149160102, -0.0419795364, -0.0627900884, -0.3100633025, -0.0910807848, -0.4545486271, 0.1863723397, 0.0425488688, -0.0372703373, -0.1701894104, 0.1651744992, 0.0201008394, 0.2720377147, -0.1222627386, 0.2718657553, -0.2868470848, 0.6367554665, 0.026766384, 0.0750539228, 0.1860990822, 0.2177872807, 0.3806756139, -0.0630789548, -0.194244042, 0.3124832511, 0.1950443089, 0.1324027628, 0.7725486159, -0.0686833113, 0.220539242, -0.0882274359, 0.0287849177, 0.4030069709, 0.0595473833, 0.2150998861, 0.1824582219, 0.1951798797, 0.0441592932, 0.3703367412, 0.0991879553, -0.1081418768, 0.1792205572, -0.1274946481, -0.1071735695, -0.038346298, 0.3741494119, 0.0318130292, -0.2007786036, -0.0603224635, -0.1172192842, 0.0278731193, 0.2025965899, -0.3027197123, -0.0415041745, 0.3303076029, -0.1391052604, -0.016718816, 0.2410384268, 0.4205013216, 0.2979261577, -0.0170527063, -0.1817573607, 0.0656796098, -0.0896782279, -0.0831210017, -0.063889198, 0.0220544338, 0.0340765975, 0.1687857956, 0.1015621424, -0.0376969203, -0.0569459572, -0.4256902337, -0.0824863166, 0.2719034851, -0.4516472518, -0.0140937939, -0.3728098869, -0.1323237717, -0.0767274648, -0.261500597, -0.5702649355, -0.0763108432, 0.0289025046, -0.0809277743, -0.1059547961, -0.1590922177, 0.0347105339, 0.2810228467, 0.1168029606, -0.3547640443, -0.1858554929, -0.0121849142, -0.294016242, -0.0945230946, 0.2922327518, 0.0204858184, 0.3175251484, -0.4767364264, -0.0902841464, -0.4070096016, -0.1112843305, 0.0356450975, 0.1565066874, 0.348276943, -0.0398226529, 0.0723160431, 0.2941634953, 0.0916486159, 0.257035017, -0.1088714227, -0.2068012059, 0.2457992733, -0.1831882149, -0.0909195915, -0.1320869625, -0.0294611119, -0.2550736964, -0.1853721142, 0.2371392697, 0.3771700263, 0.0953640044, -0.2680516243, 0.0706057847, 0.2262732685, -0.153177008, -0.1468226761, -0.1719808728, -0.5023725033, 0.2743111849, -0.4032095969, -0.2306599319, 0.2652858794, 0.2256274223, 0.0434058495, -0.1237591952, -0.6602151394, -0.5772986412, -0.0836369395, 0.2649998069, -0.2728842199, 0.0472681597, 0.0438522734, -0.1540026367, 0.0778175965, 0.0458040312, -0.2724542022, 0.1395332068, 0.0477900505, 0.1411539018, 0.0129359476, 0.1984617263, -0.0642818809, 0.5992150903, 0.1762920171, 0.1972337812, 0.2701570094, 0.0350493342, 0.2159232199, -0.0271473452, 0.0416457728, -0.0525211655, -0.0180701315, -0.1607156843, 0.2109569907, 0.411785543, -0.0270068981, -0.2943617105, -0.7045915127, -0.1905463338, -0.2729954422, -0.4170337617, 0.3469994664, 0.0805546343, 0.177772373, -0.0354027525, -0.11524342, -0.1952484846, 0.2496603131, 0.4584130049, 0.2080113143, 0.2246272266, 0.0544975847, 0.0126661286, -0.4743278027, 0.3333804607, 0.0314414091, 0.2829280496, 0.0254776627, 0.2000865936, 0.138321355, -0.1713121831, 0.0101334974, 0.1000093222, 0.4979894459, -0.0185638033, -0.1639068127, -0.0858507976, -0.0535554625, 0.0078166276, 0.0035868362, -0.1175595373, 0.8319280744, -0.2911427021, -0.2107405961, 0.0021343119, -0.1326836497, -0.1245748103, -0.4110310078, -0.3006386459, -0.3991362751, -0.3001541495, -0.0360256322, -0.17558828, 0.1223567724, -0.1613680124, 0.1208266839, 0.3628306985, 0.2604141235, 0.0692805648, -0.0567808896, 0.307228744, -0.1998859495, -0.0738414451, 0.306889981, 0.2507614791, 0.4206137061, 0.6409817338, 0.0130592268, -0.4118205607, 0.0338697843, -0.1721883714, 0.0882983804, 0.4270457327, -0.0903202593, 0.0549751595, 0.2732685804, 0.402831465, -0.1074725091, 0.1076906919, 0.0753506422, -0.257652849, -0.1100753546, -0.1417014003, 0.4426446259, -0.2945498824, 0.0482028574, 0.0306484364, 0.5616432428, -0.1613176018, 0.4553394914, -0.2532243729, 0.8656353951, 0.0318802595, 0.31915766, 0.4125311673, -0.2175776362, 0.153434068, -0.6794499755, -0.0327023789, -0.1211870909, 0.2353565991, -0.1737675071, -0.062922895, -0.0326857381, -0.2224306166, 0.0697111636, 0.3440414667, -0.1073443219, 0.5143914819, 0.226674974, 0.04824619, 0.1429793835, -0.0709875003, -0.3608295619, 0.0868046582, -0.0884209722, 0.0974174067, -0.0813911036, -0.3059492409, -0.3581772745, -0.1596125066, 0.0168612003, 0.1965004802, 0.109087266, -0.0575449988, 0.0566230789, -0.2959419787, 0.0211627558, -0.0125350486, 0.1347130835, 0.0030475371, -0.520750463, 0.1371697038, -0.1726100743, -0.0293732379, -0.0564425886, -0.093309328, 0.1072476357, -0.2675110102, -0.1880778074, -0.0298242047, -0.1000050902, -0.4531241655, -0.2585157454, 0.1860949546, -0.0081695747, -0.1558702439, 0.0714387, -0.0161194354, -0.0341374688, -0.1082227007, 0.0867444202, 0.1800417304, -0.3045523167, -0.3173415363, 0.1646488309, -0.2764058411, -0.0275207069, 0.4022213817, -0.0957697034, -0.1138912141, 0.3496786356, 0.1088129207, -0.0804251507, -0.1351318061, -0.0554853827, 0.3459488451, -0.7139824629, -0.009598447, -0.0371179171, 0.2363056988, -0.0731429681, -0.0166618843, 0.1022855639, -0.4073721766, 0.2560973465, -0.5434622765, -0.0538388118, 0.0893289745, -0.3175046146, -0.1462233067, 0.1050829142, 0.1062570736, -0.1318742931, -0.3294652402, -0.2421680689, 0.3742590845, -0.3990374207, -0.0887279287, -0.0879356712, 0.0046873782, 0.2556557059, 0.1062889695, 0.0472145304, 0.0730125979, -0.2092870325, -0.098916702, -0.3098872304, 0.2121884674, 0.0714152902, -0.1748322248, 0.0320982598, -0.1938274503, -0.2138302177, 0.0898280293, 0.0093902573, 0.1445702165, 0.0404256061, -0.155569002, 0.2398983985, 0.0325247273, -0.3132784069, 0.4965497851, 0.1967857778, 0.520229578, -0.1744222939, 0.0494261347, -0.6694004536, 0.0276605189, 0.1231195405, 0.0687426776, 0.297737956, 0.3116059303, 0.611066103, -0.5101626515, 0.1276434958, -0.0901972651, 0.1447172761, 0.115329437, -0.2795445621, 0.0343912169, 0.1356977373, 0.0908341482, -0.0185945332, -0.2194553316, 0.5809531212, -0.0193752535, -0.2160775065, 0.1184571609, 0.2108077854, 0.0717756301, 0.0618608594, 0.1158039272, 0.374791801, 0.1398811191, -0.2101056874, 0.0496851355, -0.104873307, 0.2838540673, -0.0839258507, 0.0560896471, -0.031707067, 0.3715338409, -0.1107554883, 0.1075453684, 0.0834407732, 0.2526916862, 0.0696459562, -0.5230895877, -0.2532197237, -0.0236059204, 0.3299841285, 0.0113295317, -0.2905017436, 0.2662546039, -0.1612528265, 0.2738805115, -0.3528708816, -0.0437297411, 0.0542656593, 0.1502533257, -0.0497365631, -0.2233940065, -0.0962868035, -0.0370936356, -0.1077385545, -0.1320928931, -0.3277087808, 0.1041405946, -0.1485615522, -0.2872104049, -0.2418290973, 0.2078896016, 0.0006501041, -0.1109865904, 0.2159475982, 0.1630753279, -0.0378807075, 0.15163064, -0.2827293575, 0.3619366884, 0.1572067291, -0.0038282461, 0.0017602555, 0.159512952, 0.0488211438, 0.232417196, 0.2722711265, 0.1974620372, 0.0793105364, 0.2943634689, 0.0726413578, -0.1164297163, -0.0446592346, -0.2403573692, 0.2847382724, -0.1660986245, 0.5623669624, -0.5071781278, -0.0439349636, -0.3436987996, -0.1898684204, -0.3341604471, 0.1306707263, 0.2980681658, 0.2615305781, -0.0225226209, -0.1373251975, 0.0179900825, -0.3996052742, 0.4213403463, 0.4900419116, 0.4001396894, -0.3416487277, -0.1488671005, -0.4380816221, 0.4692400098, -0.0023397258, -0.1144670695, 0.1430307478, 0.2080904245, -0.1222664416, -0.0149511816, 0.2360367775, -0.2913752496, 0.2221710384, -0.0908003002, -0.0849623084, -0.08829166, -0.0792945474, 0.0259994697, -0.0253755376, -0.2910263538, 0.1560930312, -0.3079155982, -0.0215791315, 0.1668855101, -0.060808517, 0.1342536807, -0.2701951563, 0.4539768696, 0.1228081584, 0.1914723068, 0.1691092998, -0.3373650908, -0.1320327073, -0.1517774165, -0.2058750093, -0.4226779342, -0.3909516335, 0.1235793233, -0.1229857877, 0.0895026177, -0.3886906207, 0.283103168, -0.0362889171, 0.2037679702, -0.1012544408, 0.1550437808, -0.2333902419, -0.1216563359, 0.1989433169, 0.0616154894, 0.0581448711, 0.0967615694, -0.083642669, 0.040730603, 0.6753647327, -0.4463759959, -0.0966643393, 0.0911668688, 0.3124558628, 0.2603936493, -0.3580761254, -0.1640054137, 0.1470508575, 0.2772578895, 0.277412653, -0.2409747541, 0.1842028797, -0.2666306198, 0.1258785427, 0.047534287, 0.0952599719, 0.0432058312, -0.1891228259, 0.3335573673, -0.0526449382 ]
https://github.com/huggingface/datasets/issues/2724
404 Error when loading remote data files from private repo
Yes, I remember having properly implemented that: - https://github.com/huggingface/datasets/commit/7a9c62f7cef9ecc293f629f859d4375a6bd26dc8#diff-f933ce41f71c6c0d1ce658e27de62cbe0b45d777e9e68056dd012ac3eb9324f7R160 - https://github.com/huggingface/datasets/pull/2628/commits/6350a03b4b830339a745f7b1da46ece784ca734c But a subsequent refactoring accidentally removed it...
## Describe the bug When loading remote data files from a private repo, a 404 error is raised. ## Steps to reproduce the bug ```python url = hf_hub_url("lewtun/asr-preds-test", "preds.jsonl", repo_type="dataset") dset = load_dataset("json", data_files=url, use_auth_token=True) # HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/datasets/lewtun/asr-preds-test/resolve/main/preds.jsonl ``` ## Expected results Load dataset. ## Actual results 404 Error.
18
404 Error when loading remote data files from private repo ## Describe the bug When loading remote data files from a private repo, a 404 error is raised. ## Steps to reproduce the bug ```python url = hf_hub_url("lewtun/asr-preds-test", "preds.jsonl", repo_type="dataset") dset = load_dataset("json", data_files=url, use_auth_token=True) # HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/datasets/lewtun/asr-preds-test/resolve/main/preds.jsonl ``` ## Expected results Load dataset. ## Actual results 404 Error. Yes, I remember having properly implemented that: - https://github.com/huggingface/datasets/commit/7a9c62f7cef9ecc293f629f859d4375a6bd26dc8#diff-f933ce41f71c6c0d1ce658e27de62cbe0b45d777e9e68056dd012ac3eb9324f7R160 - https://github.com/huggingface/datasets/pull/2628/commits/6350a03b4b830339a745f7b1da46ece784ca734c But a subsequent refactoring accidentally removed it...
[ 0.1519908905, 0.0217427015, 0.0421524309, 0.4689883888, -0.1487778127, -0.0837456807, 0.1870218515, 0.3314776421, 0.0251009837, 0.1321311593, -0.414760679, -0.038175676, 0.1177171022, -0.0845711976, 0.227465719, -0.0939543471, 0.0643758774, 0.2031137645, 0.1788401604, -0.1964151561, -0.1416361034, 0.1891842037, -0.0267068595, 0.213580668, 0.0884628147, 0.1626263261, -0.0169535689, 0.5753358603, -0.1334586143, -0.2530796528, 0.4264836013, 0.0575151555, 0.4901397824, 0.8685284853, -0.0001199092, 0.2189436406, 0.2850864828, 0.0630402863, -0.2731933594, -0.1770012826, -0.4306524992, 0.1696655154, 0.1902306229, -0.0577684715, -0.1480033696, -0.0856631696, -0.2231211662, 0.1030692533, 0.3863913715, 0.284909457, 0.171298489, 0.3798897564, 0.0566888303, -0.1431237161, 0.2864227891, 0.0662519336, -0.0473325476, 0.4522375166, -0.0943670571, 0.1032378227, -0.0649587065, -0.0003478006, -0.0010124221, 0.0269996524, 0.2268556952, -0.0060468074, -0.1101494431, -0.0566700585, -0.1633122414, 0.1307190061, 0.3496461511, -0.1119889393, -0.2637358308, -0.0768797025, -0.0070290864, -0.2380512655, 0.2104154676, 0.1895544231, -0.1170154214, 0.2497236431, -0.2861326039, -0.4180767834, -0.2974919677, 0.3176785111, 0.0641101599, 0.0484508239, -0.0318716094, -0.0522888377, -0.3012051582, -0.0576604195, -0.1049259305, -0.1257027984, -0.035795182, 0.1374065131, 0.0101502379, -0.0649469346, 0.2622862756, -0.0737998784, 0.389185518, 0.2772266865, -0.0017995723, -0.0349765681, -0.4886955023, 0.1327638328, 0.0280533023, 0.3387026191, -0.0982745737, 0.2222915292, 0.5048390031, 0.5479639173, 0.0648637116, 0.1237415373, -0.1865211576, 0.1162769198, -0.1982969791, -0.2018737644, 0.5696321726, -0.4419043064, -0.0255235061, 0.3089797497, -0.3250643015, 0.0254517719, -0.054316625, 0.2940503657, -0.0640184805, -0.0053877793, 0.1105381399, 0.0006800648, -0.2913880944, 0.0378872417, -0.1808710098, -0.1263382733, -0.0610320158, 0.1719996333, 0.1499987692, -0.0761429816, 0.199351728, -0.0468539409, 0.3632750809, -0.2024487257, -0.1399953663, 0.2448555678, -0.166092515, 0.2702892125, 0.1124731526, -0.04821942, 0.0312762745, -0.3952694237, -0.0608171895, -0.1533693373, -0.6331654787, -0.4467023611, -0.1026824042, 0.0789963305, -0.2454280704, 0.048447568, -0.5156443119, -0.2482574135, -0.2269539535, -0.1161459535, 0.102504462, 0.0731712282, -0.215502888, -0.1725380272, 0.2357490957, 0.6003878713, 0.2160523981, -0.0169524178, 0.3043438494, -0.2247075886, 0.1536225528, 0.1647028625, -0.1423657984, 0.2290182561, -0.3856137097, 0.1902223825, 0.2130476683, -0.4618349671, -0.4828754961, 0.6060371995, -0.3202259541, 0.2463348508, 0.0187548921, -0.2113692164, -0.037457224, -0.1387765855, 0.5398172736, 0.4439110756, 0.2286478132, -0.1108340919, -0.3019841313, -0.2486560345, -0.4080140591, 0.3468932211, 0.0490519404, 0.2788874507, 0.3681972921, -0.1649485379, 0.4139639735, -0.0699724481, -0.1263870597, 0.3668570518, 0.4195959568, 0.0625417605, 0.1435609758, -0.0797369182, -0.3744695783, 0.2066184133, -0.3822332025, 0.1196453273, 0.0238655731, -0.0368937738, -0.3012800217, -0.1524410844, -0.5029711127, 0.1053230166, 0.0548013598, 0.056611307, -0.1741876006, 0.1656810939, -0.1146258861, 0.4241325557, -0.0097635686, 0.2932831347, -0.3459377885, 0.685985446, 0.05206687, 0.0212308206, 0.0752307326, 0.3377068341, 0.2700015008, -0.1151410639, -0.1538032591, 0.4489714205, 0.0573423989, 0.1254336536, 0.6857694983, -0.1921597719, 0.3496062756, -0.1284113824, 0.0318716988, 0.3469436467, -0.0006150045, 0.2657710016, 0.187874943, 0.1333737224, -0.0380100235, 0.250672847, 0.0925961584, -0.191172272, 0.2122316658, -0.1556423008, -0.1720913202, -0.1235762462, 0.4104904532, -0.0062140506, -0.1908020675, -0.0735205337, -0.198766917, -0.0376579203, 0.1191852391, -0.2879225016, 0.0572973527, 0.3348962069, -0.085945487, -0.0173968226, 0.1962100714, 0.4637836814, 0.3661141396, -0.0279391259, -0.1758415997, 0.2077220231, -0.03072487, -0.0478539988, -0.0640149117, 0.0621610768, 0.0942822397, 0.2740387321, 0.1305273175, 0.0253586099, -0.0931045786, -0.3885849416, -0.1760836691, 0.204664126, -0.4924302101, -0.0846223608, -0.4646686614, 0.0009307563, -0.0848416686, -0.2139743567, -0.4650985003, -0.0593362413, -0.0064655254, -0.0798763856, -0.1846033633, -0.1233487874, -0.1319296062, 0.2060314417, -0.0101575553, -0.3751418889, -0.2010853291, 0.0916015059, -0.2265716195, -0.100358054, 0.1256132126, -0.0187430866, 0.3192821741, -0.4008624554, -0.1340950131, -0.3375825882, -0.1568827182, 0.119698599, 0.1543840021, 0.2986592948, 0.1002826989, -0.0388111845, 0.2130704373, 0.0275549293, 0.2490251511, -0.1115019172, -0.2384190857, 0.2173651308, -0.1269460768, 0.0206025355, -0.1685040891, -0.0235137753, -0.2968159616, -0.3472930789, 0.1988022774, 0.284771204, 0.0736467093, -0.2436434925, 0.0452052541, 0.2794007361, -0.2056298107, -0.0306541156, -0.0997857526, -0.4469516575, 0.1976712942, -0.3998925984, -0.1846946478, 0.2627221942, 0.1623169184, 0.0497266538, -0.0955391452, -0.7413294911, -0.5427150726, 0.0072413664, 0.2825990319, -0.2767821848, 0.0239461046, 0.1121170595, -0.0721713826, 0.0861302763, -0.0010129735, -0.2558848262, -0.0224128328, 0.0404700674, 0.2527867854, 0.1034075022, 0.2775855958, -0.0809155777, 0.5106101036, 0.1753750592, 0.2900905311, 0.3952638209, 0.0623343587, 0.3486857414, -0.1234561428, 0.0279976428, -0.0588813946, -0.1017154306, -0.1672576517, 0.1642966866, 0.4003348053, 0.0011569709, -0.3944431841, -0.7023407817, -0.2399010062, -0.2511529922, -0.3958388567, 0.2358166426, 0.0389196947, 0.1524682939, -0.1011966616, 0.064801231, -0.0949854106, 0.2410160601, 0.3989116251, 0.2297191322, 0.1988520622, 0.086576283, 0.0221504346, -0.6100175381, 0.1995536387, 0.0308055133, 0.2061384618, 0.0316677541, 0.1479302347, 0.0330295451, -0.160743311, 0.1166278273, 0.1354090869, 0.5210428834, -0.0774558708, -0.2037372142, -0.0485216081, -0.056595698, 0.0715438724, 0.0715446472, -0.0739264339, 0.7497164607, -0.275731802, -0.1843093932, 0.1453225017, -0.2294539362, -0.0722526014, -0.4218313396, -0.3218512237, -0.4020776153, -0.2374114394, -0.0845634863, -0.163271293, 0.1329295039, -0.0823040307, 0.0034868345, 0.3989430368, 0.1448923647, 0.0388553813, -0.0921778902, 0.3415282667, -0.2010949552, -0.0201298296, 0.349042654, 0.3559370935, 0.372143805, 0.6303964257, -0.0740082115, -0.2629463971, 0.0912150145, -0.0916440636, 0.1938478649, 0.4522793889, -0.0198248047, 0.0325110778, 0.2730741501, 0.3494527936, -0.2121813148, 0.0197356269, 0.0629936904, -0.3600478172, -0.1444813609, -0.0917154998, 0.5425670147, -0.2423876822, 0.0203026086, 0.0324038416, 0.6648787856, -0.2799300551, 0.3975718021, -0.292276144, 0.8610053062, 0.1289738566, 0.3152338266, 0.4537087679, -0.3615629673, 0.2927814424, -0.6476734281, 0.0116483048, -0.0709131956, 0.2144027054, -0.1924670786, -0.0844999626, -0.0397075824, -0.304571569, 0.0499335974, 0.3462188244, -0.0580286011, 0.4351760745, 0.2092390805, -0.0474822894, 0.1175568029, -0.0445765369, -0.4515303373, 0.0559132993, -0.1300706267, 0.1149349362, -0.1449427009, -0.1952133924, -0.3324147165, -0.1463126391, 0.0214683712, 0.2302919626, 0.2007445991, -0.123535037, 0.1145112514, -0.4036965072, 0.0324659571, 0.0046582166, 0.015303609, 0.0796418712, -0.4880465865, 0.1559610367, -0.2170827389, 0.0957417488, -0.0138128959, -0.0523209423, 0.1070042402, -0.1990107447, -0.2001739442, -0.0736115426, -0.1767399609, -0.4683376849, -0.2065041065, 0.2000973076, 0.0447461419, -0.1383114755, 0.078603372, 0.0633989945, 0.1148076802, -0.1882499605, 0.0761444569, 0.2264970541, -0.366091758, -0.339553982, 0.1169343293, -0.2562222183, -0.0816712081, 0.4282542467, -0.0658492669, -0.1398656219, 0.2938950658, 0.0974349976, -0.0940847844, -0.1020467356, -0.0796987489, 0.4889605641, -0.5784717202, 0.0619343892, -0.0959529579, 0.0981809497, -0.0985920131, -0.0332175717, 0.1336442828, -0.3805677295, 0.1273418963, -0.5043212771, -0.1131133437, 0.1486769915, -0.3034215271, -0.0561270639, 0.1187532544, 0.1008635014, -0.0790762156, -0.3572711051, -0.2249250114, 0.2928541601, -0.3823471069, -0.1863853931, -0.1235094219, 0.0516401306, 0.2517188787, 0.0905522406, 0.0443122014, 0.1776967049, -0.1890119463, -0.0639831424, -0.3440080285, 0.2022430003, 0.0772349685, -0.1617627889, 0.1021398008, -0.1355782896, -0.15086326, 0.0877777711, 0.0712468475, 0.1543180496, 0.0947256088, -0.2369142175, 0.2930656672, -0.1163525656, -0.2011568099, 0.4889202118, 0.2483323365, 0.5059655309, -0.0493225567, 0.0667500421, -0.6707579494, 0.0313744992, 0.1665519774, 0.0557232425, 0.2788780928, 0.3210634291, 0.6118314862, -0.5756323338, 0.0329909027, 0.0060396716, 0.3109239638, 0.1347323656, -0.2945573926, 0.0191929191, 0.042914819, 0.075206995, -0.0013583079, -0.2630734742, 0.5856038332, 0.0490431674, -0.1889058352, 0.0820924863, 0.1229202971, 0.050971821, 0.0173321981, 0.1745791435, 0.4702453613, 0.1420274675, -0.1721403599, 0.1295569837, -0.1266869158, 0.2827393711, -0.0844972953, 0.0468948409, -0.0692187101, 0.4968425632, -0.0335242562, 0.1390376836, -0.0094804242, 0.3376963139, 0.1195747256, -0.5196658969, -0.1551900208, 0.036338184, 0.1979643106, 0.0586454794, -0.2508134246, 0.173814103, -0.1820991486, 0.2708269358, -0.3055839837, -0.0988205671, -0.0119950399, 0.1081991717, -0.09616822, -0.2348443419, -0.0237005129, 0.0187400952, -0.0866902471, -0.1623457074, -0.2282871902, 0.0780914128, -0.1180659831, -0.3563405275, -0.15246135, 0.1279533952, 0.0152660403, -0.065681681, 0.2394928485, 0.2469674349, -0.1023219228, 0.0706757829, -0.1640631109, 0.2949666381, 0.1147910804, 0.0527336299, -0.0553492233, 0.1584403068, 0.0689920038, 0.1454933286, 0.2391981184, 0.2414407134, 0.0733424127, 0.1912483424, 0.0854178444, -0.1016418189, 0.151027143, -0.1452055871, 0.3908148408, -0.2408694476, 0.5807545185, -0.4651973248, -0.0101849213, -0.217609778, -0.1564033031, -0.3127636611, 0.1948429793, 0.3365877271, 0.1935875118, -0.0448627509, -0.0810687169, 0.0199350789, -0.186843425, 0.3000535369, 0.5435926318, 0.3429713249, -0.287997216, -0.1429522485, -0.4444924295, 0.5230224133, 0.0285182521, -0.0338276401, 0.1645576507, 0.210405767, -0.2261790633, -0.0194595605, 0.2304649949, -0.2229706496, 0.2771520317, -0.1384963095, -0.0435583182, -0.1260957867, -0.0966970474, 0.0746503025, -0.0441108719, -0.2333347052, 0.1888860464, -0.1680625677, -0.0500560328, 0.1312605739, -0.0650355443, 0.0932963938, -0.2972728908, 0.4525432289, 0.1580044478, 0.0668034703, 0.0957954526, -0.4487331808, -0.2434640527, -0.1833722293, -0.1389511377, -0.4815650582, -0.3514609635, 0.1729979962, -0.1922957599, 0.0325005949, -0.3576341271, 0.2487708926, -0.0688279867, 0.1517861485, -0.1557129622, 0.1815234721, -0.2259207964, -0.1300968826, 0.2394526005, 0.1117598787, 0.0049150409, 0.1079536974, -0.1028833389, -0.0198181346, 0.6600607634, -0.4209566116, -0.0405636989, 0.0502654575, 0.3303500414, 0.1436000317, -0.4629879892, -0.2183719277, 0.0778386593, 0.2384811938, 0.2662729323, -0.20905222, 0.208662197, -0.3058159351, 0.0186633542, 0.0485651195, 0.1629762501, 0.1390302479, -0.2202222645, 0.4223589301, -0.0216656625 ]
https://github.com/huggingface/datasets/issues/2722
Missing cache file
This could be solved by going to the glue/ directory and delete sst2 directory, then load the dataset again will help you redownload the dataset.
Strangely missing cache file after I restart my program again. `glue_dataset = datasets.load_dataset('glue', 'sst2')` `FileNotFoundError: [Errno 2] No such file or directory: /Users/chris/.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96d6053ad/dataset_info.json'`
25
Missing cache file Strangely missing cache file after I restart my program again. `glue_dataset = datasets.load_dataset('glue', 'sst2')` `FileNotFoundError: [Errno 2] No such file or directory: /Users/chris/.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96d6053ad/dataset_info.json'` This could be solved by going to the glue/ directory and delete sst2 directory, then load the dataset again will help you redownload the dataset.
[ -0.1489497423, -0.2841113508, -0.0903950706, 0.1460706294, 0.2751775384, 0.0493273586, 0.0770322233, 0.2098801583, 0.2618973255, 0.0594648272, -0.0856971145, 0.0969994366, 0.0986218452, 0.2517308593, 0.1167899668, -0.1429447681, -0.1188407987, 0.2136433572, -0.3757640719, 0.1028596833, -0.0300948694, 0.4992605746, 0.0187852308, -0.0301718861, -0.3194896579, 0.015822703, -0.0725437999, 0.3714371324, -0.062567912, -0.250556916, 0.204268381, -0.0081872465, 0.1753683537, 0.2365754396, -0.0001000679, -0.0085889101, 0.1501081288, -0.0443094745, -0.1311840117, 0.1888659, -0.1232580543, -0.1802764237, -0.0042730235, -0.0790976882, -0.44315207, 0.1293305457, 0.1493919641, -0.2958285511, 0.5744664073, -0.0261675771, 0.3707996905, 0.2814989984, 0.1990785599, -0.2768565118, 0.120776318, -0.1539126039, -0.0656859279, 0.1609661579, 0.0918900594, -0.1530086994, 0.1342793703, 0.4699552357, 0.0848044381, 0.1188223138, 0.2851539552, -0.0147728603, -0.216484502, -0.1598257124, 0.3803757131, -0.0023825346, 0.3897220194, -0.2139131427, -0.1837678552, -0.102515474, -0.0050805882, -0.0097252131, 0.1055579931, -0.0117374416, 0.1646526605, 0.3102855384, 0.079710722, -0.3766745329, 0.1340938807, -0.1535581499, 0.1237721741, 0.0248710755, -0.2039151192, 0.025179904, 0.2108680308, -0.0817251876, -0.3896348178, 0.230162099, -0.4329812229, 0.1080717444, -0.2919596732, 0.0540038645, 0.2727687359, 0.059748318, -0.0113158971, 0.1861450672, 0.0120570324, 0.0881809369, 0.247048527, 0.0937484652, 0.1267061532, 0.2551040351, 0.277736038, -0.0926354676, 0.2941240966, -0.0005996414, -0.135092929, -0.144219473, 0.0105527677, -0.0579528287, 0.1486092657, -0.0236185137, 0.0687813908, -0.1440522522, -0.0859181955, -0.0094248522, 0.0210777819, 0.0438706391, -0.0676201731, 0.2988849878, -0.1251086742, -0.0440158248, 0.1222795174, -0.0032417355, -0.1049565077, -0.1209479645, -0.423003912, 0.0173479244, -0.1510063261, 0.1446429044, 0.269857347, -0.2826416194, 0.4717917442, -0.090855822, -0.1431017965, -0.0054612011, 0.1562081575, 0.1193652079, -0.1149756312, 0.3126597404, 0.0720784366, 0.2043958306, 0.1971700341, -0.2255740017, 0.0935302973, -0.0622500479, -0.3156171739, -0.3906929791, -0.247871235, 0.2746995687, -0.2598509192, 0.0476590395, -0.1760026515, -0.0673482865, 0.0220544003, -0.1317916811, -0.0509733818, -0.0088436389, -0.105749242, -0.3027728796, 0.3504108191, 0.456300348, -0.3841166496, -0.31240502, 0.0743112192, -0.3012654185, -0.2867961824, 0.2582087815, -0.0690881684, 0.0903624296, -0.3982505798, 0.3396100402, 0.0869008601, -0.2457405627, -0.441323787, 0.1408775151, -0.1561097503, -0.0168534219, 0.0004652441, 0.0846225023, 0.0410566404, 0.1609212756, -0.0110930018, 0.072705403, 0.1295698583, 0.119846046, -0.2933920026, -0.2234238237, -0.1068689227, 0.1781914979, -0.0184352435, 0.0480175056, 0.0894302428, -0.0532663129, -0.0724113733, -0.0346956588, 0.1421086937, 0.5428281426, 0.3240683079, 0.1759869456, 0.0710829049, -0.1112197861, -0.4236648083, 0.240598321, 0.0110831037, 0.1994275451, -0.0727408081, -0.1040807441, -0.1806593835, -0.1200451478, -0.1043450683, -0.3273670673, 0.2714444697, 0.2450682521, 0.2367120683, 0.1192795932, -0.1000407487, 0.5312883854, 0.2279619873, 0.1042724475, -0.5642827749, 0.2393194139, -0.1372599751, -0.3061443865, 0.0747151226, 0.039714843, 0.0365929753, -0.2077722102, -0.080937773, 0.5030691028, -0.250952363, 0.1525256485, 0.2653538883, 0.1040037349, -0.0787997693, -0.2012808323, 0.0443738103, -0.1353620887, 0.0737980008, 0.0207621306, 0.120782122, 0.0742134005, 0.040617682, -0.0525604635, 0.0079511926, 0.0271906331, 0.1815289855, -0.1884569228, -0.1001357362, -0.1488167793, 0.1305884421, -0.2202730924, 0.233764708, -0.0128626656, -0.1599573344, 0.4027631283, 0.5056480765, 0.1514838934, 0.1703585833, -0.0077867769, -0.3467355072, -0.0944551602, 0.042405881, 0.3587124944, 0.5050243735, 0.2802165747, -0.0021781586, -0.0187236089, 0.0887212381, -0.0561168641, 0.1006640792, -0.2698321939, -0.0591023639, 0.0573712215, 0.1500868797, -0.1143287867, -0.3618559539, 0.1692365259, -0.1863103807, 0.2012963891, -0.1493307948, -0.1143299937, -0.2247167975, -0.2197957933, 0.1550286561, 0.0793035775, -0.2900713384, -0.1471260488, 0.0979442224, 0.0780384988, 0.0648429692, 0.1727211475, 0.1401341558, 0.1194717214, 0.0232448131, 0.042077437, -0.2549951077, -0.194969207, -0.1610854864, 0.1396797746, -0.111457184, 0.0598111562, 0.3552452624, -0.2490372509, 0.2142373621, -0.4008231461, -0.3154817224, 0.0011929935, -0.1015660614, 0.2772091627, 0.343436569, 0.480493933, -0.1362864077, -0.2463296354, 0.4448930025, -0.3510626554, -0.1793385446, -0.0874465853, 0.0341213346, -0.1851830035, -0.3269743025, -0.1720095575, -0.1625946611, -0.3666307926, 0.4123753905, -0.0911131352, -0.0702770501, -0.000988543, -0.0258269701, 0.1959029287, -0.2662550211, 0.0188401528, -0.4876940846, -0.586396575, 0.2309206426, -0.3134087026, -0.3265425265, 0.1614697576, 0.1782242358, 0.232360974, -0.3869131804, -0.6166650653, -0.5167441368, -0.2617874444, 0.2029010653, -0.200473249, 0.1902625859, 0.3913961649, -0.0382907465, -0.1795982718, -0.1816892624, -0.471668601, 0.2314308435, 0.0114417579, 0.216835618, -0.2339810729, 0.39324826, 0.0465902463, 0.4432983994, 0.0131252259, -0.0416372605, 0.3219984472, -0.082458958, 0.4564375281, -0.2917788625, -0.3831222057, 0.1857818663, -0.0060612485, 0.2260973752, 0.268130213, 0.1443548203, 0.140582487, -0.2879009247, 0.1222027391, -0.237662062, -0.1655714661, -0.1087881178, 0.1454121023, -0.010436248, 0.1099620014, 0.0119750872, -0.2576725483, -0.0426461659, 0.3268521726, 0.2962162197, 0.1599027514, 0.1903887987, -0.4206804633, -0.1156718433, -0.4370612502, 0.2657993734, -0.1600761116, -0.0160809476, -0.3290895224, -0.0653526112, 0.0163333453, -0.0760554373, 0.7218395472, -0.2210389525, -0.0354335308, -0.0009089485, 0.0285821185, -0.3047820032, -0.1213603318, -0.0297413543, 0.0629957318, 0.4729380906, 0.3769616485, -0.3789209723, -0.153568536, 0.113447696, -0.0529305711, -0.164491415, -0.1424072832, -0.3487764001, -0.1971344054, -0.2680312991, -0.1303836256, -0.0994104072, 0.030168511, 0.2141273171, 0.0713192523, -0.0748289227, -0.2438512295, 0.0058632046, 0.2063798904, 0.4361848831, 0.0788857341, 0.206923306, 0.2102934718, 0.3399569392, -0.1238629669, 0.4497172832, -0.184823826, -0.0555165596, 0.2116198838, -0.0791403502, 0.0530189723, 0.104145363, -0.0876907557, 0.1449711025, -0.0304713082, 0.4150402844, -0.0847370923, 0.1173212156, 0.2567462325, 0.1363580525, 0.0978959501, -0.0575578548, 0.1750537753, 0.0013883114, 0.0433512479, 0.1693203002, 0.2645576, -0.1397046447, 0.0899083838, -0.3566859961, 0.7948881984, 0.0072721932, -0.0595916957, 0.168361932, -0.2669602036, 0.4844324589, 0.0303155109, 0.0382851139, -0.221804142, -0.3330694437, 0.1039323062, -0.0075713247, 0.0718077496, -0.0013676677, -0.2892474532, 0.1556920409, 0.0943649262, 0.1527906954, -0.2376540005, 0.2912341654, -0.0004336927, -0.068020612, -0.0517969318, 0.3398603797, -0.2662391663, 0.3884878755, -0.1627097726, -0.116181165, 0.132840395, -0.1030171514, -0.2831184864, -0.0023749322, -0.3912832737, 0.1674740911, 0.2133186758, 0.014537707, -0.1710276008, 0.0050385781, 0.3181123435, 0.1806617975, -0.357966274, 0.1715009511, 0.0942139477, -0.1630602777, -0.1737091541, 0.1159994528, 0.1963390708, -0.1118113548, -0.2726131678, 0.0378257409, -0.1886430979, -0.2516733408, -0.2021653056, -0.0079314671, -0.1417811811, -0.1820684969, -0.2065444738, 0.191825822, 0.0782819912, -0.1552026868, 0.2192504257, 0.273206532, -0.0200240165, -0.0007662736, 0.0992553383, -0.2341623306, -0.1573438942, 0.523573041, -0.2910883427, -0.0991077721, 0.3289560378, 0.0550472289, -0.1744871289, -0.2369524837, -0.1459589601, 0.0769423246, -0.3101460636, 0.0191044211, 0.0729068667, -0.2128572315, 0.2415010035, -0.064331077, 0.217203036, -0.1466230154, 0.0190264434, -0.2803139091, -0.2939016223, 0.1789794564, 0.018782353, 0.2110984027, -0.0115303993, 0.0773659647, 0.0362938493, 0.2026424259, -0.4853779078, 0.181774646, -0.148290813, 0.0133206565, 0.4220642149, -0.2894527614, 0.1827638596, -0.1572650969, 0.2635750473, 0.100976266, -0.5141134262, -0.3665656149, -0.0135368221, 0.066962786, -0.2105911523, 0.0188265443, -0.0643626675, -0.0037207231, -0.0521362945, -0.0427090935, 0.2446482778, 0.0344354063, 0.0141835567, 0.1515274644, 0.0893866718, -0.03110395, 0.2417570651, 0.0825500786, 0.0548414811, 0.0844559371, -0.0832609907, -0.0351249911, -0.229137361, 0.037864387, 0.049103111, 0.1135110855, 0.0299333949, 0.2438948005, 0.0428874865, -0.2724189162, -0.2917986512, -0.0545392744, 0.3474994302, 0.0014478061, -0.0882973075, 0.0474031791, 0.082399115, 0.3787726462, -0.2625283301, 0.0694124922, 0.2650744915, 0.0131720938, 0.1829776019, 0.1056489199, 0.0961886272, 0.0241869092, 0.153967455, 0.2842826247, 0.5918830037, -0.2418419719, -0.068513602, -0.0554465055, -0.1624848545, -0.2928980589, 0.2425118536, -0.0054921117, 0.0663070977, 0.1724505424, -0.0895999819, 0.1781722307, 0.1148407459, 0.2551927865, 0.0139946267, -0.219276756, -0.0379599631, 0.1845481992, -0.1068758219, 0.0447753891, -0.0614663288, 0.6470043659, -0.4179858863, -0.3641884327, -0.2113064826, 0.2803062797, -0.2529314756, -0.1189958081, 0.1990022957, -0.0641166642, -0.0293622017, 0.060433507, 0.1364050657, -0.0747182965, 0.3099993169, -0.0051319189, 0.0145466253, -0.1843186319, -0.2600732148, 0.1281092316, 0.0953449905, -0.0213205069, 0.3233247101, 0.056082692, -0.2279420644, -0.0128828101, 0.5119289756, 0.3439209163, 0.103191182, -0.0047945809, 0.2766620517, 0.0499538705, -0.135628134, -0.2410331219, 0.2170783579, 0.0172556471, -0.2678773403, 0.1144608408, 0.2914260626, -0.2709864676, -0.0314788669, -0.2785282135, 0.2457699329, -0.0369520485, 0.1055263281, -0.2938429415, -0.1737416685, -0.1535028666, 0.0162719376, -0.4971679449, -0.0921292901, 0.1305257678, -0.0643551946, 0.0872596651, -0.3384011984, 0.1706446111, -0.1249828041, 0.5146691799, 0.4026975632, 0.0658305734, -0.0437740758, -0.2727624476, -0.636018157, 0.1922900528, -0.0027037822, -0.0223700255, -0.25652349, 0.2879670262, 0.0265966505, -0.0453134701, 0.2262431532, 0.2340505123, 0.0507041328, -0.1486344039, -0.4697650075, 0.0955658257, 0.0967520177, 0.016914295, 0.3438378572, -0.2005910426, 0.0509594195, 0.0119030401, 0.2370919883, 0.0370291136, 0.0664548576, -0.1040433943, -0.1123716831, 0.5082688928, 0.1078959554, 0.0672490969, -0.0397851504, -0.1035021991, -0.1326908171, -0.3973798752, -0.0432123058, 0.0439188778, 0.1358221769, 0.4293409884, -0.0294462498, -0.1377390176, -0.246876508, 0.1571400315, 0.1699457467, 0.2434618175, -0.2193081677, 0.0672193393, 0.0822720155, 0.07176359, 0.1030416638, 0.2221028358, -0.0175562464, 0.1006818339, -0.2025218904, -0.1591157317, 0.6115164757, -0.1784409881, -0.055349946, 0.0610223375, 0.2773204744, 0.2382976562, -0.3452547789, -0.5500257611, 0.090809226, 0.1909852922, 0.1230885834, -0.199617222, 0.3635505736, -0.3064098656, 0.1511594802, 0.082954511, 0.0998394713, 0.2783591449, -0.1304610372, 0.1929549128, -0.0530244 ]
https://github.com/huggingface/datasets/issues/2722
Missing cache file
Hi ! Not sure why this file was missing, but yes the way to fix this is to delete the sst2 directory and to reload the dataset
Strangely missing cache file after I restart my program again. `glue_dataset = datasets.load_dataset('glue', 'sst2')` `FileNotFoundError: [Errno 2] No such file or directory: /Users/chris/.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96d6053ad/dataset_info.json'`
27
Missing cache file Strangely missing cache file after I restart my program again. `glue_dataset = datasets.load_dataset('glue', 'sst2')` `FileNotFoundError: [Errno 2] No such file or directory: /Users/chris/.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96d6053ad/dataset_info.json'` Hi ! Not sure why this file was missing, but yes the way to fix this is to delete the sst2 directory and to reload the dataset
[ -0.0967948511, -0.2115667611, -0.0807494894, 0.1962110698, 0.3262524009, 0.2369839847, 0.0145860845, 0.2186019123, 0.304212302, 0.0247303285, 0.0359604806, 0.032418102, 0.0695072636, 0.0254835859, 0.1852320731, -0.1839708835, -0.0519990958, 0.2447131574, -0.2526427209, 0.1134489551, 0.0262400955, 0.5897666812, -0.0162135661, -0.0534843579, -0.4070296884, 0.0637794733, -0.1067258194, 0.3864386976, 0.0837385729, -0.3092551231, 0.3094598651, -0.1223243475, 0.1665249765, 0.2378737032, -0.0001069555, -0.0172670111, 0.1097329855, -0.0738140047, -0.2003083825, 0.1936409175, -0.1755620241, -0.2121765316, -0.0431488082, -0.1683139801, -0.3127232194, 0.2077137232, 0.2080174834, -0.3602099717, 0.4669825435, -0.0779851675, 0.3034726083, 0.0734518468, 0.1870385259, -0.2253175825, 0.0996839628, -0.0647166222, 0.0179999396, 0.1627907157, 0.0280186906, -0.088133499, 0.2278117388, 0.513756752, 0.0191267878, 0.0668948218, 0.325275898, 0.0058023967, -0.214866668, -0.1175144315, 0.4294655025, 0.0252463296, 0.5012629628, -0.284591645, -0.2556748986, -0.1477603912, 0.0607873388, -0.0376205929, 0.1306268871, 0.0382048115, 0.2402044088, 0.3680467308, 0.157364741, -0.4963626862, 0.1782764792, -0.1671728045, 0.2400637269, -0.0252189338, -0.2089726478, 0.0257383808, -0.0523490459, 0.060218282, -0.4202082157, 0.0936180502, -0.4452363849, 0.2293762714, -0.3384399712, 0.0177129209, 0.1564030796, 0.0586694181, -0.0672711581, 0.1756928563, -0.0096157771, -0.0178149566, 0.1846620739, 0.0050519318, 0.1165799946, 0.3475584984, 0.3002183437, -0.0608561113, 0.2772579789, -0.0344321989, -0.1126051694, -0.2116930783, -0.026766846, -0.0445199013, 0.3394463062, 0.0709247738, 0.047146596, -0.1273617744, -0.0748824626, 0.0052468069, 0.0094821975, 0.0462571979, -0.0173613913, 0.2279712111, -0.1619674712, 0.066973418, 0.0752747208, -0.1120767146, -0.1022963226, -0.2396529764, -0.4385362267, 0.0857379064, -0.14162983, 0.2605872154, 0.2251194119, -0.3529347181, 0.5194399357, -0.1544638276, -0.1339456439, -0.0671916306, 0.1733883917, 0.0164420754, -0.1112946123, 0.3600178957, -0.0070322901, 0.291107893, 0.2413917929, -0.2093442082, 0.032928139, 0.0017527957, -0.4485353827, -0.4871954322, -0.271392107, 0.2058471888, -0.3041185737, 0.1193073243, -0.2237887979, -0.1324518323, 0.1100725085, -0.3623005748, 0.0665283427, -0.0316080712, -0.1814626306, -0.3980073333, 0.318770647, 0.5888072252, -0.4055527747, -0.3779487014, -0.0020712242, -0.212672025, -0.3125273883, 0.2282432318, -0.0836513191, 0.1937857121, -0.5655232072, 0.3282684684, 0.2421825528, -0.4067054391, -0.5046397448, 0.1763451099, -0.0761455297, 0.0242319629, 0.0388755575, 0.1862749457, -0.048539333, 0.0908514112, -0.0068639964, -0.0596246794, 0.0911439359, 0.0738898888, -0.2160989046, -0.1852942705, -0.0194681901, 0.1719609648, 0.1014139727, 0.0600857027, 0.1387094259, -0.0865885094, -0.1059986055, 0.0313374922, 0.1604246497, 0.6651593447, 0.2728140652, 0.194280684, 0.1240616441, -0.1508186609, -0.4816053212, 0.3217646182, 0.018610701, -0.05824266, -0.1431978494, -0.124710843, -0.021040488, -0.200550139, -0.1294279099, -0.4022965729, 0.1712467074, 0.145832777, 0.2671716809, 0.1689707786, -0.0652438253, 0.6422886252, 0.1865050197, 0.0755149573, -0.5425464511, 0.2478587329, -0.0030788714, -0.2368045151, -0.0396941118, 0.1197549254, 0.0918189138, -0.168397069, -0.1228632778, 0.4949468672, -0.2293965816, 0.0498528481, 0.3663037419, 0.1016435474, -0.10425964, -0.1374367774, 0.0360561758, -0.1573879421, 0.1217033118, -0.0146612749, 0.1188350394, -0.0206107572, 0.0581251346, -0.1098690331, -0.0893906653, 0.0144161209, 0.2158410251, -0.1967651397, -0.147470355, -0.1328489631, 0.2166169435, -0.2527225614, 0.2928243876, 0.0272485111, -0.064664185, 0.3660411835, 0.5254279375, 0.1012597978, 0.1509120464, -0.0414988175, -0.3780706227, -0.0576854125, 0.0197062176, 0.3717591166, 0.6975572109, 0.251444906, -0.0356980003, -0.1242026612, 0.1776922345, 0.0119531192, 0.0613097176, -0.2530560195, -0.0369476564, 0.1276063621, 0.1222909763, 0.0318815671, -0.2021450996, 0.0858176202, -0.1157989427, 0.1562951952, -0.086885348, -0.04789453, -0.2492737472, -0.2735441923, 0.1308374405, 0.1976595819, -0.2253238559, -0.1098196954, 0.034439262, -0.0506120585, 0.2351566255, 0.1227777675, 0.0337836295, 0.1383573711, 0.0554195046, -0.0962219164, -0.2523571253, -0.1669973284, -0.1882660389, 0.0350551754, -0.132061705, -0.0566255488, 0.3350163996, -0.3225829303, 0.2025209516, -0.5201033354, -0.2556636333, 0.0153615288, -0.0054267123, 0.199488923, 0.3850770891, 0.3450613916, -0.1408619583, -0.146884203, 0.4020047784, -0.3022862375, -0.1455643922, -0.0385313407, 0.0002111569, -0.2106553316, -0.2796364725, -0.1135791391, -0.2354616672, -0.2539643943, 0.2946379185, -0.1774366349, -0.13458018, -0.095702365, -0.1538656354, 0.1646319479, -0.2699984312, -0.0264160782, -0.4716525078, -0.6318147182, 0.2939579785, -0.2295247465, -0.2231515795, 0.2445828319, 0.0589951724, 0.3146015704, -0.3103455603, -0.678283453, -0.4436455369, -0.2228263319, 0.2856237292, -0.4130555689, 0.1635392457, 0.4808390439, -0.1488037407, -0.1070156395, -0.1414728463, -0.4869024158, 0.0894891471, 0.0037857983, 0.3139517903, -0.2787529826, 0.478612721, 0.0733759999, 0.5729891658, 0.0530606806, 0.0298598688, 0.2796929777, 0.0171320084, 0.5509272814, -0.2649049163, -0.3026599288, 0.2523861229, -0.062442705, 0.1633919626, 0.2103694975, 0.1810740381, 0.1441467702, -0.2752343118, 0.0400383621, -0.3271699548, -0.0845713094, -0.1091481522, 0.0389295891, 0.0367595777, 0.1565859616, -0.0447067022, -0.374578774, -0.1370154768, 0.3229600787, 0.4588404298, 0.2946391106, 0.2685700059, -0.4339433312, -0.2006478012, -0.3611647785, 0.2375063002, -0.0376681387, -0.0321628749, -0.2462550849, 0.046124205, -0.0542900786, 0.0707111061, 0.8077050447, -0.2146584839, -0.0551434793, 0.0144534409, 0.0718351826, -0.2178858072, -0.194707796, 0.1727676392, 0.2921321988, 0.460298717, 0.3915629983, -0.2678531408, -0.219364658, 0.1635446399, -0.0171570741, -0.2304360867, -0.2725433111, -0.3794245124, -0.0390467644, -0.0797812492, -0.2582910061, -0.0535677113, -0.0432488546, 0.2502157092, 0.0968958437, -0.0923524946, -0.2009294927, -0.1086864769, 0.0267122202, 0.4955199361, 0.0252677836, 0.1935301423, 0.1733486056, 0.3421195149, -0.1140534282, 0.3577989042, -0.258538872, -0.1132807583, 0.3245091736, -0.1598336101, 0.0741030574, 0.0861830562, -0.199303478, 0.1636454314, 0.0218280479, 0.3937486708, -0.0986721367, -0.0438543335, 0.1909766495, 0.1791540086, -0.029738633, -0.1486719251, 0.1355155557, 0.1121661812, 0.0918471515, 0.2919162512, 0.1278935075, -0.1780322641, -0.0020836592, -0.4114619792, 0.7303282022, 0.0602776147, 0.0234788265, 0.0471576639, -0.2416368127, 0.6816247106, -0.1125276834, 0.1529458761, -0.1582615674, -0.4088335037, 0.0609311312, -0.0639160722, 0.1055734456, 0.0336704999, -0.247538209, 0.3832395673, 0.1345038712, 0.143977046, -0.1651837081, 0.2133219242, 0.0426837057, -0.0096134059, 0.0558950678, 0.238258332, -0.3472246528, 0.4295880795, -0.2156784385, -0.0095854886, 0.1674836874, -0.0825667307, -0.359932363, -0.04651637, -0.4265126586, 0.2485102117, 0.2785868943, -0.0668644458, -0.1309326142, 0.0868381932, 0.355609268, 0.1657100767, -0.3290106356, 0.2240128219, 0.0849861801, -0.0657546222, -0.2196585238, 0.0317458399, 0.252068162, -0.0553095229, -0.1571589559, 0.098168835, -0.3675018549, -0.3502756953, -0.1498162448, -0.0038487017, -0.1148573607, -0.1644686013, -0.2608120441, 0.1685832143, 0.2005793154, -0.1329324096, 0.1327245981, 0.3589593768, -0.0083719827, -0.0744092464, -0.031070387, -0.2876269817, -0.1363265663, 0.5017425418, -0.2428725958, -0.2337964028, 0.3761484921, -0.0480006039, -0.200957492, -0.165563181, -0.0998669565, 0.0081307329, -0.3345193863, -0.050803028, 0.0333759971, -0.0201609731, 0.2324298024, -0.328828603, 0.2337897718, -0.1422810256, 0.040584825, -0.43159163, -0.2289019823, 0.1564458609, -0.0141135175, 0.1237566173, 0.0188665688, -0.0220027268, 0.0435597226, 0.1835616231, -0.3920586407, 0.2403352559, -0.1512726545, 0.0164130665, 0.3780590296, -0.1453932673, 0.1978181601, -0.2091200054, 0.1878335774, -0.0070136953, -0.4165575206, -0.2812809348, 0.0399881899, 0.1088973731, -0.30667907, 0.1190101951, -0.1023702472, -0.0167365372, 0.0488025248, -0.0414368473, 0.2671301961, 0.0853452235, 0.0666112304, 0.1731098294, 0.0559294932, -0.0533679277, 0.055409506, 0.1705227196, -0.0602929592, 0.0776350796, 0.0085269138, 0.0390933082, -0.1214925796, 0.134772554, -0.0502775237, -0.0136817992, -0.1389730275, 0.1148257703, 0.0675127655, -0.4156566858, -0.2959529161, 0.0221165605, 0.2257869691, -0.1327263713, -0.199920401, 0.1093709469, 0.1244585887, 0.2931167185, -0.2306099385, 0.0554579198, 0.4106410146, 0.1473625898, 0.0764011964, 0.0539948046, 0.0977279395, -0.0133674294, 0.3058975041, 0.2899709046, 0.6977532506, -0.3106096089, 0.0015330687, -0.0925407559, 0.0339301527, -0.207159102, 0.229063347, 0.0474295616, -0.0009528361, 0.2722169161, 0.0156158805, 0.1789286733, 0.2054870725, 0.373160392, -0.1100727618, -0.4000129998, -0.1372212172, 0.2010284066, -0.2470476925, -0.009014966, -0.0738272965, 0.6431602836, -0.3798416555, -0.2961477637, -0.1248710304, 0.1860908866, -0.2912668884, -0.0150755271, 0.3056093454, 0.0000540018, 0.1109790504, 0.0460694581, 0.182392627, 0.0323162377, 0.2538016438, 0.0520851091, -0.0765971392, -0.0945828333, -0.2046379, 0.2194267958, 0.1017230079, -0.0381378196, 0.2479141504, 0.0605679415, -0.3091121912, -0.0519677401, 0.5426905155, 0.2848140001, 0.0730680078, 0.0074853487, 0.1265549511, 0.1710323542, -0.1292843223, -0.1871747822, 0.2179503292, 0.0674465597, -0.3011260629, -0.0585717447, 0.2554776967, -0.161511898, 0.1505519152, -0.2555468082, 0.2517748177, -0.1435962468, 0.0600673035, -0.3752921224, -0.139256075, -0.1722237021, 0.2159518003, -0.4729168415, -0.0914300829, 0.2356642336, -0.0140757076, -0.0139211901, -0.2724199891, 0.1286889166, -0.1506765485, 0.3211680055, 0.5002920628, 0.0337830186, -0.1693234146, -0.2195382118, -0.5923277736, 0.2428311259, 0.0272282138, 0.0931197628, -0.1942411661, 0.2648685575, -0.0299213789, -0.0864043832, 0.2662325501, 0.1924628764, 0.0803684816, -0.0920398161, -0.4781437218, -0.0566297062, 0.1173732802, 0.0293790046, 0.2845118642, -0.2394271493, 0.0562577583, 0.132888332, 0.1510089636, 0.0085604135, 0.0202640072, -0.0801183358, 0.025763737, 0.5730304122, 0.1187079772, 0.0600105152, 0.0495254546, -0.123698093, -0.0332174711, -0.3297726512, 0.1130044982, 0.0761108696, 0.0947506949, 0.3451064229, -0.2446914017, -0.1119470596, -0.2737617493, 0.1665128171, 0.135467723, 0.284045428, -0.3247119486, 0.0768090412, -0.0207882449, 0.1927496493, 0.1993479431, 0.1823453605, -0.0981678963, 0.1080790013, -0.1385548264, 0.0620518401, 0.5860339999, -0.2508489192, 0.0463204384, -0.0526139997, 0.331908226, 0.2783114016, -0.2728857696, -0.3691659868, 0.010499984, 0.3397521079, 0.1677309722, -0.2306309938, 0.3144058585, -0.3140175045, 0.2389194518, 0.1413289309, 0.0455367267, 0.1619601548, -0.1154981256, 0.1430306733, -0.1168242097 ]
https://github.com/huggingface/datasets/issues/2716
Calling shuffle on IterableDataset will disable batching in case any functions were mapped
Hi :) Good catch ! Feel free to open a PR if you want to contribute, this would be very welcome ;)
When using dataset in streaming mode, if one applies `shuffle` method on the dataset and `map` method for which `batched=True` than the batching operation will not happen, instead `batched` will be set to `False` I did RCA on the dataset codebase, the problem is emerging from [this line of code](https://github.com/huggingface/datasets/blob/d25a0bf94d9f9a9aa6cabdf5b450b9c327d19729/src/datasets/iterable_dataset.py#L197) here as it is `self.ex_iterable.shuffle_data_sources(seed), function=self.function, batch_size=self.batch_size`, as one can see it is missing batched argument, which means that the iterator fallsback to default constructor value, which in this case is `False`. To remedy the problem we can change this line to `self.ex_iterable.shuffle_data_sources(seed), function=self.function, batched=self.batched, batch_size=self.batch_size`
22
Calling shuffle on IterableDataset will disable batching in case any functions were mapped When using dataset in streaming mode, if one applies `shuffle` method on the dataset and `map` method for which `batched=True` than the batching operation will not happen, instead `batched` will be set to `False` I did RCA on the dataset codebase, the problem is emerging from [this line of code](https://github.com/huggingface/datasets/blob/d25a0bf94d9f9a9aa6cabdf5b450b9c327d19729/src/datasets/iterable_dataset.py#L197) here as it is `self.ex_iterable.shuffle_data_sources(seed), function=self.function, batch_size=self.batch_size`, as one can see it is missing batched argument, which means that the iterator fallsback to default constructor value, which in this case is `False`. To remedy the problem we can change this line to `self.ex_iterable.shuffle_data_sources(seed), function=self.function, batched=self.batched, batch_size=self.batch_size` Hi :) Good catch ! Feel free to open a PR if you want to contribute, this would be very welcome ;)
[ -0.4098214507, -0.2538071871, 0.0164555945, -0.0311612934, 0.3398854136, -0.0579712801, 0.3023080826, 0.0674434528, -0.2175253928, 0.3773573935, -0.2310502827, 0.2912555337, -0.1922606826, 0.2657684088, -0.0942454338, 0.1088105589, 0.0774023533, 0.0824449956, -0.4071668684, -0.0259763002, -0.2257347405, -0.0934463516, -0.5538957715, -0.2494304776, -0.0387429036, -0.1291295141, 0.0840011463, 0.0690730959, -0.2499087304, -0.1048587412, 0.1157218367, 0.5466896892, -0.0666167364, 0.4911214113, -0.0001046606, -0.0466863587, 0.220941931, -0.1478952467, -0.1971087754, -0.0162350908, -0.2287009954, 0.3616316319, -0.172920078, -0.0470901877, -0.1105784625, -0.3326945007, 0.0179095734, -0.3529171646, 0.1090984643, -0.0607381314, 0.2504822016, 0.1520524472, -0.1833848953, -0.0110960491, 0.3300375342, 0.1602014601, -0.1887402534, 0.2795751095, 0.302120477, 0.1214005053, -0.021530956, 0.3396959007, -0.0457587391, 0.0973072499, 0.2876346707, -0.1221549809, -0.0756909698, -0.4055928588, 0.1629074961, 0.1327941716, 0.4041189253, -0.3270383775, -0.2338452488, -0.3728271723, 0.0683641881, -0.2494536638, 0.1298156977, -0.0826156959, -0.1251389235, -0.1127447411, -0.4295094013, 0.1275166422, -0.0135842264, -0.0339326337, 0.5006250739, 0.4225341678, -0.1381252557, 0.1263807416, 0.2588520348, -0.206631422, 0.465980351, -0.0802468956, -0.2135606855, 0.3368562162, -0.4075314403, -0.1301375329, 0.1735797077, 0.2387519032, 0.3460847139, 0.0446175411, 0.2171568722, 0.2294619828, 0.1571498811, 0.0546241738, 0.4331029654, 0.0627879053, -0.0688368082, 0.0454046987, 0.1574961096, 0.305814594, 0.0237278193, -0.0249247905, 0.2888553143, -0.0860856026, 0.0023559704, -0.0567302965, 0.1077045798, -0.1669801623, -0.0952626541, -0.3858787119, -0.1767878532, -0.1537870765, 0.2711009979, 0.3885040283, 0.0594844669, 0.0154894348, -0.3158890605, 0.2343375981, 0.0019729435, 0.1345426589, -0.2632301748, -0.2480549514, -0.2327019572, 0.0905818492, 0.236906752, -0.4453912377, 0.3494918942, 0.3258511424, 0.0771217942, 0.0918580145, 0.1089510396, -0.1570502222, 0.2872880995, 0.0994782001, 0.0974388719, 0.0569832996, 0.1212999895, 0.1756843477, 0.0762385726, 0.0880067572, -0.0508968197, -0.0789758042, 0.4025252461, 0.2578458786, -0.1870030314, -0.0908628553, -0.504883945, 0.1181115359, 0.0382430255, -0.3109929562, 0.1444634497, -0.271210283, 0.0033719465, -0.2548606992, 0.150763303, 0.1824271381, 0.0524111912, -0.0907987803, 0.0347348973, -0.2587925792, 0.6150115728, 0.4008066952, -0.2116878331, 0.0417139679, -0.2732912004, 0.0779406577, 0.1313034743, 0.1164887995, -0.3975087106, 0.1741444319, -0.1221157461, 0.4353640079, 0.059893325, 0.0428746901, 0.3480423093, -0.1915021539, 0.2754980922, 0.2648021579, -0.2541202605, 0.296487093, -0.1950291693, -0.0763327554, -0.0320451409, 0.0939139277, -0.2064952403, 0.3401974738, 0.1230375022, -0.1803272963, 0.31682688, -0.2674480975, 0.1347766817, -0.0228712782, 0.2825084329, 0.0961349458, -0.0171806701, -0.1778330654, -0.2438287288, 0.0989338756, 0.1635684967, -0.0619948246, -0.0031122938, -0.3148008287, 0.1615250111, -0.1159017533, -0.4890489578, -0.2133386731, 0.2111128569, 0.2268393338, 0.0447985157, -0.1561160684, -0.1767096221, 0.071860604, -0.2924748361, -0.1943625361, -0.3770166636, -0.0943283439, 0.1136748046, -0.2265724242, 0.1598413736, 0.1384000033, 0.1202636957, -0.1816588193, -0.0854527354, 0.4552497566, -0.0204100516, 0.0224802271, -0.047161445, 0.2453853786, -0.1095878854, 0.0012362078, -0.1277894974, -0.0703822449, 0.2200996876, -0.1837343872, -0.0583240427, 0.4448703527, -0.4544275999, 0.2487807125, 0.2326846421, -0.2751168609, 0.4183249772, 0.2991348803, -0.2019590437, -0.1013119072, 0.064318873, -0.1856445223, 0.1916487813, 0.0225363951, -0.3827548027, 0.075357385, 0.4850606322, 0.1322099119, -0.1092717499, -0.0830767453, -0.1139725745, -0.2782622576, -0.0191040244, 0.3351631165, 0.4067941308, 0.2389630824, 0.2084311843, 0.1073294282, 0.1976165026, -0.1879749298, 0.1229329929, 0.0111796185, 0.1723273098, 0.2312595248, 0.1828303635, -0.1218915209, -0.4867264628, -0.3557829857, 0.0885690376, 0.3144857287, -0.2118912637, -0.25295192, -0.166818589, -0.2122495919, -0.1276164949, -0.2103354335, -0.0831769109, -0.220365867, 0.1369229555, 0.7543541193, -0.1674438119, 0.2527230382, 0.3151093721, 0.141162321, -0.0560657196, -0.0997980833, -0.1466868222, -0.0236520264, -0.0085360939, 0.1970876753, 0.1575425267, -0.1427106559, 0.356376946, -0.0000347868, -0.3080060482, -0.3034623861, 0.1307914257, 0.0878003612, -0.1911064535, 0.0158846695, 0.046646487, 0.1843954772, -0.0100605041, -0.2569465637, 0.2034883052, -0.4171117842, -0.0513277575, 0.068513684, -0.1702584475, -0.0884040967, -0.2802340686, -0.0983249396, -0.1416514069, -0.3688465655, 0.2363350093, -0.1134563088, 0.0388993844, 0.258061707, -0.0042468682, -0.1164417118, -0.1947189271, -0.253293097, -0.3594526052, -0.6516540051, 0.0104263993, -0.2006952167, -0.2527259886, 0.0317441821, 0.1986941993, 0.1780176759, 0.6395937204, -0.0322560146, 0.1754574031, -0.1056496873, 0.0781791806, -0.004831166, 0.1112319678, 0.4022189081, 0.0161643587, -0.1008446515, -0.200563103, -0.0300821178, 0.1122006252, 0.0311469026, 0.2318634391, 0.1879939586, 0.456105262, -0.0550172292, 0.9363188744, 0.1427911967, 0.1208267957, 0.3089774549, -0.0406129658, 0.2949370742, -0.3398708701, -0.1727133691, 0.4189911485, 0.1589231938, -0.2530127466, 0.2699562013, -0.1785174459, -0.3480794728, -0.1428568065, 0.1436569691, -0.0000633001, -0.0704255551, 0.2039438188, 0.152527526, 0.2158194929, 0.0193441361, 0.1884665489, -0.1212709099, -0.0508084632, -0.2181770056, -0.0350104049, 0.3387906551, -0.0903512836, -0.4391954839, -0.3892982304, -0.4123506248, 0.066766493, 0.0623014942, 0.5975310206, -0.1478611976, -0.1179704741, 0.2101565897, 0.1820256561, 0.5711490512, -0.4470502436, -0.1075444296, 0.127478838, 0.0622724891, -0.0950155929, -0.1538403332, -0.2738078237, 0.2109862119, 0.09701702, 0.2901662588, -0.2299703956, 0.0009557605, -0.0570669509, -0.0818060637, 0.1513830125, -0.0959708169, -0.2688918114, -0.2532071471, -0.2367130518, 0.1879084706, 0.0725012869, 0.0114185102, -0.2773071229, -0.0387119576, 0.0183908474, 0.2690771818, -0.1216255426, 0.3407269716, 0.1726691723, 0.2733709812, 0.1691566557, 0.3852131069, -0.0037223194, 0.3598810732, 0.1930724382, 0.2869404852, -0.1482044756, 0.1700378954, -0.0655320883, 0.1006533429, 0.2456898093, -0.1561158895, 0.1534907818, 0.1478286088, 0.2866063118, -0.1028930247, -0.2666448355, 0.3975701928, -0.0696270987, -0.4378697872, -0.8425215483, 0.1484264135, 0.0468964502, -0.1386059076, 0.5356470346, -0.3040624261, -0.133148998, 0.3750422001, -0.1486596167, 0.6218428612, -0.014362298, -0.116252169, 0.3653721213, 0.2237393856, 0.1280853748, -0.0105894431, 0.3386749029, -0.096194759, -0.559651792, 0.1815625727, -0.1051488966, 0.0270033889, 0.0661647171, -0.229501009, 0.2785799503, -0.0691479519, 0.1658451557, -0.1683228016, -0.1908367574, -0.2544880509, -0.3233904839, -0.3023681641, 0.2215272039, -0.0260741413, 0.0651986599, 0.078565985, -0.0854966342, 0.0607560873, 0.0981947482, -0.165893212, 0.1918344796, -0.2944266796, -0.1783636212, -0.3193563819, 0.1619617492, 0.0704472139, 0.0123554328, 0.0561573952, 0.0476908274, -0.0944446474, 0.1550249457, 0.333630681, 0.2662807703, -0.1004924774, 0.0957870036, 0.1077769697, -0.0701817423, -0.057721436, 0.0543717965, 0.1306613237, -0.375749439, -0.3450509906, -0.1822018027, 0.206224829, -0.1429491341, -0.1285931617, 0.0668811649, -0.0323936492, -0.2168659866, 0.169060275, -0.0859126002, -0.193325758, 0.4004815817, -0.2756022513, -0.0968619883, -0.2272105664, 0.3841650784, 0.200045839, 0.1802432686, 0.3196736276, -0.0627438724, -0.1752789617, -0.2885641456, -0.1654692739, -0.1228660047, -0.1576548964, 0.1163403541, 0.1648498923, 0.0324888825, 0.0459670946, 0.2720926702, -0.2012594044, 0.1393443346, -0.3060131967, -0.1747598052, -0.3050633073, 0.0089876056, 0.0825859457, 0.1315064728, -0.0871796533, 0.2274682522, 0.0897244588, -0.1020630449, -0.4125232697, -0.3236412704, -0.0959171653, 0.1910411566, 0.0058485474, 0.029074626, 0.2106627673, -0.0281094052, 0.1836047173, 0.1174014062, -0.2297209352, -0.2758111954, 0.1535897553, 0.0850452334, 0.1756463498, -0.093522951, -0.0710832477, -0.2177159041, -0.5254061222, -0.264767468, 0.4250844121, 0.182208091, 0.0167898647, -0.1717599928, 0.465592891, 0.0090401191, 0.064055793, 0.0469968244, -0.167790249, -0.4819279313, -0.0941468626, -0.1503873765, -0.1886018068, -0.2323780358, -0.1075754911, -0.017950058, 0.2478489876, 0.3136831522, 0.1901550144, -0.260629952, 0.0899416208, 0.2874255776, 0.4517201781, 0.509765029, 0.0900292248, -0.4366595447, 0.2320917547, 0.2794463634, -0.1522329748, -0.1554152966, -0.0217237175, 0.0845895335, 0.2006819397, 0.095471181, -0.1406146437, -0.2623804808, 0.0018223599, 0.0667469054, 0.2619026899, -0.4957257509, 0.2348489463, 0.0708036274, 0.0209594667, -0.081022568, 0.2266285568, 0.0962515175, -0.0060234368, 0.3671914637, -0.0813911855, 0.2392348051, 0.2457406372, -0.0151902288, -0.051815927, -0.5209726095, -0.1195383221, 0.5239408016, -0.1321073323, 0.4228526652, 0.1253112853, 0.0202696975, -0.2050751746, 0.0062796548, -0.03978692, 0.0353533849, -0.1845468879, -0.0327136256, -0.0692919791, -0.2562201619, -0.0385800004, 0.019498162, -0.0797344446, 0.2470820844, 0.2956742048, -0.1761794984, -0.0751433596, -0.4886923134, -0.0132665718, 0.1551080346, 0.4034701884, -0.1090622544, 0.0698333308, -0.116967991, 0.0588616282, 0.2569009364, 0.3191133142, 0.1653285325, 0.3827477694, 0.1881953925, 0.1194788665, -0.1357768327, -0.1633858979, -0.1559184641, 0.2363310158, 0.1890116334, -0.0869611427, 0.2447090894, 0.2143071592, -0.1717332751, 0.04155818, 0.0931633338, 0.2078007311, 0.0550417714, -0.0129981115, -0.1015730947, 0.0064409971, 0.0086368639, -0.0451538116, -0.3146966994, -0.0214763079, -0.0340611078, -0.1987435669, 0.1235639751, -0.2202577293, 0.124572061, 0.0243968815, 0.4130279422, 0.1606730223, -0.314604938, -0.1001111418, -0.3307813704, -0.5856944919, -0.062080726, -0.03646769, 0.1141982675, 0.0643222928, 0.3521091342, 0.0763247833, -0.0407608114, -0.0060288981, -0.0073857196, -0.1809278578, 0.5266048908, -0.2156371772, -0.0458276346, -0.3805633485, 0.120419547, 0.1375429332, -0.2747383714, 0.2784750164, -0.098033905, 0.1694283783, 0.123432681, 0.2686363459, -0.0671862587, -0.3670600653, 0.0654964, 0.1954609752, 0.0584268235, -0.1546786129, 0.1712015867, -0.2905963063, -0.2137203515, -0.3174709678, -0.0259923376, 0.1941356808, 0.4024056196, 0.1754821539, -0.0857535154, -0.3212848008, 0.1749438196, 0.1112525761, 0.1403625757, -0.2917776406, 0.3752894402, 0.079908222, 0.2514566779, -0.146930024, 0.069048211, -0.0965512916, 0.0188274011, -0.361923933, -0.3267613649, 0.6507822275, -0.3065679967, -0.308731705, -0.1929966956, 0.3111169338, 0.1510481834, -0.1815506369, -0.1616999209, 0.3057671189, 0.1714145392, -0.0774442852, 0.0539454892, 0.2937751412, -0.2106447667, 0.087842539, -0.1030067727, 0.0475121439, 0.1259877384, -0.3081817925, 0.3053466976, -0.2104219198 ]
https://github.com/huggingface/datasets/issues/2714
add more precise information for size
We already have this information in the dataset_infos.json files of each dataset. Maybe we can parse these files in the backend to return their content with the endpoint at huggingface.co/api/datasets For now if you want to access this info you have to load the json for each dataset. For example: - for a dataset on github like `squad` - https://raw.githubusercontent.com/huggingface/datasets/master/datasets/squad/dataset_infos.json - for a community dataset on the hub like `lhoestq/squad`: https://huggingface.co/datasets/lhoestq/squad/resolve/main/dataset_infos.json
For the import into ELG, we would like a more precise description of the size of the dataset, instead of the current size categories. The size can be expressed in bytes, or any other preferred size unit. As suggested in the slack channel, perhaps this could be computed with a regex for existing datasets.
71
add more precise information for size For the import into ELG, we would like a more precise description of the size of the dataset, instead of the current size categories. The size can be expressed in bytes, or any other preferred size unit. As suggested in the slack channel, perhaps this could be computed with a regex for existing datasets. We already have this information in the dataset_infos.json files of each dataset. Maybe we can parse these files in the backend to return their content with the endpoint at huggingface.co/api/datasets For now if you want to access this info you have to load the json for each dataset. For example: - for a dataset on github like `squad` - https://raw.githubusercontent.com/huggingface/datasets/master/datasets/squad/dataset_infos.json - for a community dataset on the hub like `lhoestq/squad`: https://huggingface.co/datasets/lhoestq/squad/resolve/main/dataset_infos.json
[ -0.0413543992, -0.5577721596, -0.1589673012, 0.3919744194, 0.2053748965, -0.0639246106, -0.0737591684, 0.0503647476, 0.1064482331, 0.0798682496, -0.4394704103, 0.088177681, -0.0656969026, 0.4548653364, 0.0609380528, 0.0388583206, -0.2295207083, -0.1126662195, -0.1492431611, -0.2198024988, 0.0234504119, 0.279855758, 0.2534014881, -0.0295910127, -0.0154504143, 0.1214823276, -0.2544070184, 0.2946002781, -0.5448058844, -0.216855213, 0.1625062227, -0.0575586222, 0.159241125, -0.0210057199, -0.0001038513, -0.0647773892, 0.1080954671, -0.2295954823, -0.3205726743, -0.0383347869, 0.0025481135, -0.3959293365, 0.1042663753, -0.0850443542, -0.1412743777, -0.1166362464, 0.0335712209, -0.1261951178, 0.4541440308, 0.0918544382, 0.273373872, 0.4500877261, 0.1584032476, -0.1389547586, 0.0338327996, 0.4866325557, 0.0143970251, 0.2679381669, 0.3840728104, 0.3003027141, -0.092230618, 0.4050795734, 0.2523310184, -0.025929071, 0.260145396, 0.0314368978, -0.3214985728, -0.1370879859, 0.1025047004, 0.4285008311, 0.1674051881, -0.3730248809, -0.5177249908, -0.4534083605, 0.1588493735, -0.2547272444, 0.049299933, 0.231904, 0.0301978551, 0.1767474264, -0.2547947168, -0.1507336795, -0.2382445335, -0.0240067691, -0.177667588, 0.0789700821, -0.2915143371, -0.1185305268, 0.0026717931, -0.4049319029, -0.6295152307, 0.031704776, -0.1120769382, 0.2041808814, -0.1458260119, -0.3822921515, 0.3146905899, 0.2405809164, 0.5023841262, 0.1578408182, 0.0075038113, 0.1524948478, 0.001108516, 0.1947936565, 0.1977787614, 0.3022004366, 0.3661186397, -0.0779800862, 0.1031194478, 0.0316855796, 0.1499068588, -0.1356846988, -0.2137382329, 0.0816750675, -0.363617897, -0.2070542723, 0.0226012319, -0.1112503707, -0.0727840662, -0.0099662859, 0.1764283031, 0.0235271193, 0.0794332623, 0.439918071, 0.028525155, 0.0114364922, -0.0948269367, 0.227868408, 0.1659280211, -0.2580326498, -0.1681973338, 0.0100567006, -0.057712011, 0.1395849288, 0.0128063411, -0.3011853695, 0.3934866786, -0.1103336439, 0.1721936613, -0.0499963649, -0.0783385709, 0.0496040061, 0.1866593957, 0.0405117199, 0.0921571329, -0.216988951, 0.0278592836, -0.1454954594, -0.3767353296, -0.2053826302, -0.1997886002, -0.2601392865, -0.4404108226, 0.2663024366, -0.234716475, -0.0646484643, -0.443670392, 0.3297383785, -0.1481906772, 0.1381038129, 0.004347384, 0.0898578987, -0.0293878913, -0.1064033806, 0.0048887357, 0.2305947691, -0.0331629068, -0.2757418156, -0.0361057036, -0.2553449869, -0.2473157197, 0.4085281491, -0.0546536036, -0.2784493268, -0.1099670753, 0.284763813, 0.3449615836, -0.4075214267, -0.0638779849, 0.2323251367, 0.0420700163, 0.0920106024, 0.0441859066, 0.0051909201, 0.2295900583, 0.1645946354, 0.0175022893, 0.3218151927, -0.1843339354, 0.1228391826, -0.1066688299, -0.4086619616, -0.1758042276, 0.1705347896, 0.0425585136, -0.3353563547, 0.2083473206, 0.08446154, 0.2212420106, -0.1525698155, 0.0652611032, 0.2249132395, -0.0162416063, -0.0485725738, 0.0501228459, -0.1123514846, -0.6196360588, 0.1310896575, -0.0196532048, 0.2372087687, -0.0399619713, -0.4177992642, -0.3142914474, 0.1552387625, 0.0596921556, -0.0916102976, 0.2139569372, -0.0335059762, 0.2626999617, -0.0538793504, -0.1323898286, -0.0153963119, -0.1248894408, 0.2994821072, -0.6840795875, 0.0677036718, -0.01876349, 0.0317225643, 0.1639618725, 0.1434709728, -0.2023174167, -0.0474747382, 0.0281768031, 0.0756473392, -0.1749103963, 0.4565304816, 0.2603796721, 0.4778717756, 0.2401754707, -0.0033621863, 0.2902505398, -0.1425657719, 0.0222381763, 0.127293095, -0.5045999289, 0.5015560389, 0.3156273067, -0.0389139913, 0.0748624057, -0.0589889325, 0.0190477222, -0.0133135244, -0.2305650711, -0.3546411991, 0.0251252335, -0.0404180735, 0.299469322, 0.0617635697, -0.3438566923, 0.0625479594, 0.5101701617, 0.0132957622, -0.0046377052, 0.3452255726, -0.3160441518, -0.2252221853, 0.2095775753, 0.0556815267, 0.1830608845, 0.373601675, 0.1089994907, 0.1292486042, 0.2113349736, -0.0286116246, 0.1002285033, 0.1177814305, -0.0578757711, 0.0437695906, 0.3493603468, -0.064566493, -0.4000747204, -0.1172626168, -0.289973259, 0.0852837563, -0.2282987833, -0.0175705552, -0.1347498894, -0.3644795716, -0.1586057842, -0.0990818515, -0.5645574331, -0.2226263285, 0.1855559498, -0.247871846, -0.3137247562, -0.2181921601, 0.1011980325, 0.2453224063, -0.0683201179, 0.0089628343, -0.0908099264, -0.0856576264, -0.0101829302, 0.1782535464, 0.1776801795, 0.0589756295, 0.3929870427, -0.2609723806, 0.1044502482, 0.006272519, -0.5086253881, 0.2717724144, -0.1840400994, 0.1842018217, 0.0771673992, 0.1117584705, 0.0895382836, 0.0349556878, 0.1722738892, -0.0007506981, -0.3836697638, -0.0939418077, -0.0080974475, 0.1394445896, -0.1613654494, -0.1860439479, -0.3122629523, -0.3296836615, 0.3015925288, 0.0786693469, 0.2122532427, 0.2112790197, -0.0106813498, 0.1425528526, -0.142460376, 0.0097212531, -0.3036101162, -0.4350683689, 0.2735944986, -0.4120610654, -0.1951001883, -0.0573079214, 0.0915092379, 0.2012047768, -0.2210041285, -0.1597382873, -0.5394003391, -0.1228955612, -0.0279828124, 0.1173581406, 0.0357882008, 0.2557873428, -0.1290500015, -0.1456701458, 0.0228044689, -0.2735737562, -0.0556735322, 0.2504131794, 0.0304262266, -0.2115629464, 0.2764234543, 0.166529119, 0.2871811092, 0.2273594439, -0.212312609, 0.1203334853, -0.1358996779, 0.2125938684, 0.0071705449, -0.0339482203, 0.2497863919, 0.1192164198, 0.0755948871, 0.4831530154, 0.3956525624, 0.2829975784, 0.0230871439, -0.0926344022, -0.16538167, -0.198562324, 0.3444506228, 0.2088211328, -0.1278042495, -0.0347603001, -0.0861577243, -0.1628296375, -0.1396650225, -0.1885163337, 0.3137395084, 0.0045150071, 0.1377198845, -0.5218558908, -0.1015990451, -0.2448650599, 0.575068295, -0.0382529162, -0.3285719156, -0.0430593006, -0.2700401545, 0.1268567443, 0.0676164627, 0.0229027793, -0.0856688321, -0.3362785876, -0.1821860075, -0.259952426, -0.3137335479, 0.2416990697, 0.0095342249, -0.1177265197, 0.4289171994, 0.4547971189, -0.5648524761, -0.2424125522, 0.1274434328, 0.2162190527, -0.1528228819, -0.0360644832, -0.1462422758, -0.0884628668, -0.4926459193, 0.0405902453, 0.0551722124, 0.1614615172, 0.0294253677, 0.0009255111, 0.0585429743, 0.0606929809, 0.405000329, 0.6058875918, 0.1253754795, 0.1370280236, -0.1399496198, 0.14958781, 0.4613377452, 0.2738899291, 0.6469154358, 0.1012864709, -0.1358736157, 0.0203397013, 0.0402216464, 0.2384431511, 0.3605233431, 0.1815387607, -0.0088938251, 0.0315245837, 0.1655165404, -0.3032901883, 0.1003598124, -0.0485512577, 0.0017778352, -0.1444615424, 0.0508660078, 0.4109844565, -0.0491495058, 0.0982714891, 0.1295281798, 0.3705095053, -0.2069344223, 0.2141830921, 0.0672576129, 1.0640895367, -0.2176129073, 0.1019983068, 0.0588852875, -0.193771109, 0.4219005704, -0.0598729253, -0.0264879819, -0.2077642679, 0.256903708, 0.1574484706, 0.1491707563, 0.1458736211, 0.0992429629, -0.1668532193, 0.0574491471, 0.062366128, 0.1175973415, -0.3965122104, 0.5909297466, -0.4135977328, -0.5295298696, -0.5926877856, 0.2633857727, -0.0887999237, 0.3599307835, 0.0462487191, -0.2781266868, -0.1870384216, -0.2317662239, -0.3549022675, -0.1536559463, -0.0324334949, -0.2425078303, 0.1593877673, -0.3184924722, 0.0122613311, 0.3286587, 0.082026355, 0.1905646175, -0.228052184, 0.1592798233, -0.502618134, 0.1174359024, 0.1281570494, -0.0831606835, 0.0958845839, -0.1782919317, 0.0170135051, 0.0572189614, 0.3150842488, 0.0120746344, -0.0044423193, -0.0037434846, -0.2274232209, -0.2892987728, -0.0151893422, -0.007887058, 0.0582147837, -0.0911118239, 0.1713140309, 0.19772093, 0.0618446879, -0.0394438542, 0.3849595189, -0.0977170989, -0.2396054566, 0.2264367342, -0.094074294, -0.3045297563, 0.0304969549, 0.1447839141, -0.0074708909, -0.1658854634, 0.2489944547, 0.3029512763, -0.3718908429, -0.0993818939, 0.0348031819, -0.2284682244, -0.098403424, 0.1012171283, 0.2532756627, 0.0787533522, 0.2638927102, -0.1840362251, -0.3771271408, 0.4878148437, -0.0138028041, 0.1850366443, -0.2188993245, 0.0506911948, 0.0482551306, 0.4039395154, -0.4329449832, 0.0922192186, -0.2767193317, -0.0288182348, 0.3223302662, 0.0294945855, 0.3968380988, -0.1765379757, 0.090392381, 0.0157617982, -0.2969460785, -0.2389741838, -0.132991001, 0.0942662954, -0.0950659961, 0.2489351332, 0.0663095638, 0.1162621826, -0.0040642302, -0.2708453536, 0.3166064918, 0.1042489409, 0.1591235846, 0.0767232478, -0.069843322, 0.0723239779, 0.1301006973, -0.08578372, 0.3456185162, 0.3020139337, 0.0362833813, 0.0966208726, -0.2138932943, -0.1111757383, 0.1031239331, 0.2083467543, 0.2305243611, 0.0727460086, 0.0921947509, 0.2423121035, -0.2250279337, 0.2563062012, 0.3816105127, 0.0709072053, -0.121811226, 0.2718300819, -0.0183462426, 0.2761362195, -0.1224985123, 0.1581380069, 0.1833901852, -0.0879191309, 0.1031722724, 0.3402596712, 0.1969466358, 0.4780896604, 0.2556496561, 0.0159265734, 0.3624537885, 0.0430255793, -0.0120075531, -0.0018358845, -0.1979348063, -0.0642856508, 0.4485363662, 0.2068796009, 0.5565646887, -0.1806067228, -0.3229588866, 0.2026274055, -0.1447537392, 0.1746146381, 0.341748178, -0.2067811638, -0.2872588634, 0.187337786, 0.3389519155, 0.2000153363, 0.1048681661, 0.456877321, 0.1618058383, -0.3141473532, -0.29337883, 0.4585606456, -0.0922620595, -0.0835780352, 0.0667582303, -0.2180445492, -0.3744448423, 0.0384055004, -0.0629543215, -0.4746852517, 0.144356966, -0.0760227293, 0.1167379469, -0.2503050566, -0.0875760764, 0.0984767675, 0.0628844649, -0.2830200791, 0.1778153926, 0.2792690992, 0.0524336174, 0.1525215656, 0.2958320975, 0.3038710356, -0.1640508473, 0.1301808059, 0.3555206656, -0.037477646, -0.0991042405, -0.2428995073, -0.0109766321, 0.0800498724, -0.0562434345, 0.310629636, 0.2558508217, -0.2411568612, -0.1995714158, -0.3234938383, 0.0794742852, 0.0139726251, 0.32633847, -0.0467862934, -0.0423299372, -0.3483892679, -0.2470827997, -0.4944187403, 0.0992267281, -0.0236437432, 0.1314779222, 0.044209592, -0.2457539886, 0.1170219928, 0.1964772493, 0.243838802, 0.5422877073, 0.0034238044, -0.0112323891, -0.2232894301, -0.4496417642, 0.0686885417, 0.0492492728, -0.1442246586, 0.0065491796, 0.3821814358, 0.2754145265, 0.1455077827, -0.1040341556, -0.2930576205, -0.011830043, 0.0118320119, -0.317342937, 0.1339315772, -0.0657760873, -0.1426741183, 0.2859059572, 0.0234383866, 0.0873941034, -0.2667751908, 0.0612366498, -0.3607885838, 0.2922793925, -0.1789943725, -0.1232883483, 0.2861502171, 0.0752064362, 0.1630211323, -0.2596969306, -0.1424852312, -0.19440189, -0.2954749465, -0.2570568919, 0.4237029552, -0.0181254372, 0.3955463469, -0.0450451151, -0.2638508976, -0.1138283014, 0.0100524426, -0.0870556012, -0.213655293, 0.0140521675, 0.1094869077, -0.025668703, -0.1050349027, -0.0054024793, 0.2724955678, 0.035971038, -0.0680933446, -0.0653141961, -0.3072280884, 0.5054529905, -0.0257779583, -0.0580165908, 0.0878134966, 0.2606488466, 0.4709810615, -0.161562711, -0.6479045153, 0.4406296909, 0.2577059567, 0.159343034, 0.0267741978, 0.1952491403, 0.0265610889, -0.1362666339, -0.2946956754, -0.1092556491, 0.10154403, -0.2585724592, -0.0192036554, -0.1878202111 ]
https://github.com/huggingface/datasets/issues/2709
Missing documentation for wnut_17 (ner_tags)
Hi @maxpel, thanks for reporting this issue. Indeed, the documentation in the dataset card is not complete. I’m opening a Pull Request to fix it. As the paper explains, there are 6 entity types and we have ordered them alphabetically: `corporation`, `creative-work`, `group`, `location`, `person` and `product`. Each of these entity types has 2 possible IOB2 format tags: - `B-`: to indicate that the token is the beginning of an entity name, and the - `I-`: to indicate that the token is inside an entity name. Additionally, there is the standalone IOB2 tag - `O`: that indicates that the token belongs to no named entity. In total there are 13 possible tags, which correspond to the following integer numbers: 0. `O` 1. `B-corporation` 2. `I-corporation` 3. `B-creative-work` 4. `I-creative-work` 5. `B-group` 6. `I-group` 7. `B-location` 8. `I-location` 9. `B-person` 10. `I-person` 11. `B-product` 12. `I-product`
On the info page of the wnut_17 data set (https://huggingface.co/datasets/wnut_17), the model output of ner-tags is only documented for these 5 cases: `ner_tags: a list of classification labels, with possible values including O (0), B-corporation (1), I-corporation (2), B-creative-work (3), I-creative-work (4).` I trained a model with the data and it gives me 13 classes: ``` "id2label": { "0": 0, "1": 1, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8, "9": 9, "10": 10, "11": 11, "12": 12 } "label2id": { "0": 0, "1": 1, "10": 10, "11": 11, "12": 12, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8, "9": 9 } ``` The paper (https://www.aclweb.org/anthology/W17-4418.pdf) explains those 6 categories, but the ordering does not match: ``` 1. person 2. location (including GPE, facility) 3. corporation 4. product (tangible goods, or well-defined services) 5. creative-work (song, movie, book and so on) 6. group (subsuming music band, sports team, and non-corporate organisations) ``` I would be very helpful for me, if somebody could clarify the model ouputs and explain the "B-" and "I-" prefixes to me. Really great work with that and the other packages, I couldn't believe that training the model with that data was basically a one-liner!
145
Missing documentation for wnut_17 (ner_tags) On the info page of the wnut_17 data set (https://huggingface.co/datasets/wnut_17), the model output of ner-tags is only documented for these 5 cases: `ner_tags: a list of classification labels, with possible values including O (0), B-corporation (1), I-corporation (2), B-creative-work (3), I-creative-work (4).` I trained a model with the data and it gives me 13 classes: ``` "id2label": { "0": 0, "1": 1, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8, "9": 9, "10": 10, "11": 11, "12": 12 } "label2id": { "0": 0, "1": 1, "10": 10, "11": 11, "12": 12, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8, "9": 9 } ``` The paper (https://www.aclweb.org/anthology/W17-4418.pdf) explains those 6 categories, but the ordering does not match: ``` 1. person 2. location (including GPE, facility) 3. corporation 4. product (tangible goods, or well-defined services) 5. creative-work (song, movie, book and so on) 6. group (subsuming music band, sports team, and non-corporate organisations) ``` I would be very helpful for me, if somebody could clarify the model ouputs and explain the "B-" and "I-" prefixes to me. Really great work with that and the other packages, I couldn't believe that training the model with that data was basically a one-liner! Hi @maxpel, thanks for reporting this issue. Indeed, the documentation in the dataset card is not complete. I’m opening a Pull Request to fix it. As the paper explains, there are 6 entity types and we have ordered them alphabetically: `corporation`, `creative-work`, `group`, `location`, `person` and `product`. Each of these entity types has 2 possible IOB2 format tags: - `B-`: to indicate that the token is the beginning of an entity name, and the - `I-`: to indicate that the token is inside an entity name. Additionally, there is the standalone IOB2 tag - `O`: that indicates that the token belongs to no named entity. In total there are 13 possible tags, which correspond to the following integer numbers: 0. `O` 1. `B-corporation` 2. `I-corporation` 3. `B-creative-work` 4. `I-creative-work` 5. `B-group` 6. `I-group` 7. `B-location` 8. `I-location` 9. `B-person` 10. `I-person` 11. `B-product` 12. `I-product`
[ 0.2751238942, -0.297044456, 0.0208109058, 0.4673909843, -0.0559452139, 0.0520154238, -0.0117356014, -0.2991323173, -0.2569103837, -0.2186732292, 0.0983797833, 0.3813357651, -0.1071817279, 0.2050388753, 0.1961682737, -0.0721682757, 0.1684131324, -0.1887159348, 0.3061255813, -0.1100959629, -0.3069913685, 0.3437997103, -0.2482838631, 0.4954275787, -0.3762370646, -0.0859184414, -0.1869409829, -0.1539735198, -0.4046434164, -0.5950913429, 0.2896218598, 0.1556393504, 0.0723899603, -0.057909552, -0.0001202806, -0.2460778803, 0.0285194423, -0.1889368296, -0.1224049181, -0.1234150827, -0.0926303566, -0.206073612, 0.2835663259, -0.0094311833, -0.1429478526, -0.1868061423, 0.275115788, 0.517603755, -0.2508016229, 0.1197167933, 0.0497633889, -0.162163049, 0.2689089179, 0.028813269, 0.3519521654, 0.0908357948, -0.1232596338, 0.3104261756, 0.427680105, -0.0534059629, -0.2571893334, 0.4627599716, 0.096375823, -0.282025516, 0.2589055896, 0.2285992354, 0.335865885, -0.4192576706, -0.1301671416, 0.3817868531, 0.2516931295, 0.1147549823, -0.21541062, -0.0157396719, -0.0526016764, -0.6351476312, 0.0023943409, 0.4393245578, 0.0330129974, 0.0414248407, -0.0036090054, 0.1708148867, -0.2163024545, 0.0360444747, -0.0949904025, 0.6974464059, -0.1429923177, -0.1101660579, -0.0203674566, -0.0645244718, -0.3136535585, 0.0532631166, 0.0026731291, 0.0485410132, -0.3527154922, 0.0821142644, 0.1113011688, 0.6753003001, 0.1034722775, 0.1295493245, -0.1083088964, -0.1619322002, -0.1246844381, 0.0191324204, 0.0126679912, 0.067109704, 0.1944048852, 0.201112926, -0.0446369275, 0.3469557166, 0.0323717967, -0.0740821809, -0.1044219285, 0.04558127, -0.2820934057, 0.0927809328, 0.06808424, -0.0183760226, -0.29603073, 0.2254842371, -0.3230934143, -0.0889054984, 0.1440231502, -0.0752070546, -0.0731509626, 0.0357111432, 0.1876576841, -0.050487157, -0.0379350185, -0.4821267426, -0.1482042968, 0.0386482477, -0.4639267623, 0.2523362637, 0.1713846028, 0.0126349404, 0.206246227, -0.1111707166, -0.4054634273, 0.0354563519, -0.0658329055, -0.031302534, 0.088969484, 0.1795020103, -0.4525694847, 0.3838881254, 0.0929941833, -0.1642798036, -0.2671720982, 0.0119264023, -0.4921443462, -0.3080555201, 0.0690308809, 0.1287892759, -0.1365886778, 0.0609575771, 0.1897365749, 0.3318856955, -0.1153179705, 0.1990911365, -0.1007405445, -0.098311916, -0.4269197583, -0.2644011378, 0.0072038099, 0.0409698822, -0.3341089487, -0.162381351, 0.1373778433, 0.1871723831, 0.3112607598, -0.0227416325, -0.0241282638, 0.4247218668, -0.1090938002, 0.1467429698, 0.2499327064, -0.3465858102, -0.0087537076, -0.1740069091, -0.025898926, 0.1329859644, -0.089564383, 0.1664260179, -0.1744973063, -0.0926980376, 0.0160260163, -0.0840969086, -0.0957270786, -0.1990114748, 0.0502361953, -0.1406764239, 0.6332866549, 0.1118354201, -0.1572699398, -0.1110161245, -0.373549372, 0.1674019694, 0.3539594412, -0.0071342103, 0.0449137837, 0.3623044789, 0.0871981829, 0.3109553456, 0.3268584609, 0.0515774563, -0.1253263205, -0.0166782588, 0.1232139692, 0.7216902971, 0.1610005945, -0.1609764695, -0.0598946288, -0.0297036059, -0.0421019942, -0.5228352547, 0.1638392955, -0.0354802907, -0.0927692801, -0.0156909227, -0.2345707268, 0.3003309667, -0.7553534508, 0.1253661364, -0.5494092107, -0.2719166279, -0.3093497455, 0.172316581, 0.2604396045, 0.1606015265, 0.3212373257, 0.2714566886, 0.0924716219, -0.046157524, 0.1488594264, -0.664278388, 0.0911439583, 0.6776849627, 0.0883732736, -0.5249886513, -0.0968008339, 0.0926436707, -0.1376924962, -0.0823118463, -0.1829961687, 0.0447827056, -0.0842517465, 0.2933149636, 0.1141291782, 0.008959271, 0.062317647, 0.0631055683, -0.3090402484, 0.0669123158, 0.1034511104, -0.1360895038, 0.0211298987, 0.1199389175, -0.0387461483, 0.4414964914, 0.5638064146, -0.1863642931, -0.069208622, 0.2521674335, -0.1829852164, -0.057711713, -0.2707810104, 0.1821918488, 0.2422931045, 0.073147282, 0.2016144991, -0.142331928, -0.2664191723, -0.210128516, 0.1479952335, 0.0713571161, -0.3675379753, 0.1322910935, -0.0141253732, 0.028321337, -0.100117892, -0.23693645, -0.0526685417, 0.1579363197, -0.2895195782, -0.0486255996, -0.084769994, -0.0414972976, 0.0493922308, -0.1332644522, -0.3768905401, -0.4618846178, 0.0604119599, -0.2065775394, 0.1046142578, 0.0916568637, 0.0267903805, 0.2577778101, 0.0078203827, 0.4968670905, -0.0199227482, -0.3135147393, -0.4187057912, 0.0002778918, -0.1932315379, -0.0689468235, -0.2793945074, -0.4715572, -0.1962036937, 0.1891825348, -0.6522644758, 0.1992064416, -0.0307928529, 0.0423555523, 0.3619496226, 0.0384899601, -0.2372524887, 0.1165786088, 0.0128948428, -0.0482751653, -0.2377354205, -0.0630053505, -0.1078975797, 0.0475883111, -0.2777671814, -0.3997897804, -0.4137216508, -0.0360725299, 0.1471912116, -0.0564059168, 0.0793975443, 0.5000621676, -0.3187737465, 0.0542294383, -0.040277984, 0.4291720092, -0.0579385534, -0.0362953618, 0.3741431236, -0.12259949, -0.2875944078, 0.2860406637, -0.2776126266, -0.0642171651, -0.2167770565, -0.1659706682, 0.0128622875, 0.1247486994, -0.2548125982, 0.1925060302, 0.1471298933, 0.1604904532, -0.0510473065, 0.1826124787, -0.1810186803, -0.1359699965, 0.1485750079, -0.173865661, 0.1625645906, -0.1120585948, -0.2352695465, 0.1533915102, -0.0981060192, 0.0958107114, -0.156129986, -0.1958442181, 0.1817346811, 0.1204218492, 0.1285721809, 0.0914676189, -0.1207999587, 0.0656292439, 0.067137301, 0.1672760248, 0.1578973532, 0.4212939441, 0.2485266775, 0.4521138668, -0.2304106802, -0.1518732905, 0.0616699755, 0.5299972892, 0.3666866422, -0.1315766275, -0.1318484396, -0.0041677207, -0.2918212712, 0.0320728384, 0.398660183, 0.2485455275, 0.1270182729, -0.1801841855, -0.1087054014, -0.3199877739, -0.3875415325, -0.0180186033, -0.0942429304, -0.1032284945, 0.0734533817, -0.068167299, 0.0887592733, 0.2113140076, -0.4619135261, 0.303824544, 0.3779916763, 0.1060472578, 0.0458213016, -0.2179714888, -0.4066913128, -0.3208166063, 0.2544102073, 0.3007875681, -0.2096462697, -0.3157263696, 0.6650326848, -0.1623007655, -0.2146285176, 0.0231162719, -0.0798234865, -0.188656643, 0.2049298286, -0.3243947625, 0.27173087, 0.1194403023, -0.5196067691, 0.3327739239, 0.2235522866, 0.4568699002, 0.2948156297, -0.0084763579, 0.171310246, 0.0197427981, -0.1269919574, 0.0451138169, 0.3307833672, -0.000895692, 0.3283192515, 0.2983855605, -0.5064978004, 0.3612936139, -0.2267695963, 0.2376774698, 0.1006023139, -0.017506348, 0.3284788728, -0.2298385501, 0.0035500079, -0.3467365503, 0.147097379, 0.4200778008, -0.1543993056, -0.0777296126, -0.1305727363, 0.3563928604, 0.2603346109, -0.3048219681, 0.0040714443, 0.2573171556, -0.240152657, 0.0644239783, 0.4713020921, 1.0378024578, 0.30313164, 0.1885530651, 0.1219175085, -0.3590348363, 0.6271586418, -0.4413630068, 0.29392308, -0.4917210639, -0.259766221, -0.0798552781, -0.0532473885, -0.3230324984, 0.4851150513, -0.0133810714, 0.2799538076, 0.0795680583, 0.1533138603, 0.0762818828, 0.0381998196, 0.4392773509, -0.1355612874, 0.1449452788, 0.0158818774, -0.0943063647, 0.0506514981, -0.2155335844, -0.0309181809, -0.0585171282, 0.1497459114, -0.4512606263, -0.0009581298, 0.073938325, -0.198079139, 0.2527942061, 0.2564837933, 0.2726521194, 0.3124995232, 0.4582826793, -0.1184878722, -0.1011567935, -0.028845923, -0.3781506717, -0.0451949425, 0.0228756405, 0.0239694677, 0.1892851293, 0.1026285142, -0.0556613952, -0.2188270241, 0.1123503074, 0.2670863867, -0.3358883858, -0.0304057226, -0.0276491754, -0.1019464284, 0.357965976, 0.2216022313, -0.0156745091, -0.0714716166, 0.0677612573, 0.2044014782, -0.3964379728, -0.0368339308, -0.1398340464, 0.0013339072, 0.0931504816, -0.0539615676, 0.2500539422, -0.0573753342, -0.0314918086, 0.1672793031, -0.1308665127, -0.1319427043, 0.0078256056, 0.3666977584, -0.4888991714, 0.0116824992, 0.1734934002, 0.0562340468, 0.1463614553, 0.514527142, 0.1278764307, 0.206271708, 0.0274108052, -0.28074646, -0.1172428504, 0.3828389347, -0.1685973257, -0.0338451937, -0.4350361526, -0.449732691, 0.1195738912, 0.2847346067, -0.2097821385, -0.0833587646, -0.216124475, 0.2336944938, 0.1275092512, -0.036123462, 0.0623656213, 0.3726071119, -0.088638179, -0.0603288524, 0.0074934885, -0.0603776611, -0.2313486338, 0.1688094586, 0.264508158, 0.213552326, -0.0609403625, 0.0440985411, 0.0316557065, 0.0133299641, -0.0719899386, -0.099645555, 0.2574819624, 0.5117636919, -0.1896255463, 0.467759788, -0.0513463169, -0.0599410161, 0.27647686, 0.5056191683, 0.4498588443, -0.205045864, 0.1272493601, -0.042214565, -0.0180217288, 0.3335675299, -0.1050382406, -0.1160613447, 0.408115685, -0.2138753831, 0.0616921261, -0.2944961786, 0.2523393929, -0.0519593917, 0.0903061703, -0.1736739278, 0.0929379836, 0.1015453637, -0.2090335786, -0.1755045056, 0.7825027704, 0.06047922, -0.0400785096, 0.1015181094, 0.2406177521, 0.1557174325, 0.050711371, -0.1725818217, 0.3301270008, 0.1372451484, 0.1113738865, -0.105101198, -0.0463515408, 0.2719039023, 0.4097804725, 0.0255901404, 0.1206083298, 0.1058511958, 0.5922996402, 0.1977978051, 0.164887175, 0.0666494519, 0.2030248344, -0.0697353482, -0.3384665847, 0.2676409483, 0.2246960849, -0.045501709, -0.2587061524, -0.5041488409, 0.1658732146, -0.3136125207, -0.1184868366, -0.1274350137, -0.107016556, -0.0739992261, -0.6019306183, -0.1222601533, -0.2403326929, 0.0025611371, 0.0618585087, -0.3346045613, 0.2231557965, -0.0902731121, 0.1559702903, -0.132874921, -0.3667316437, 0.3920840621, 0.3054876029, -0.0074457526, 0.0691751167, 0.0800208524, 0.0280433819, 0.0133772697, 0.4532528222, 0.1409288347, 0.2674155831, -0.0482881293, -0.130404219, 0.0924440771, -0.063144967, 0.1392105967, 0.1444194913, 0.131193161, -0.2176303267, 0.1192921549, -0.0470575988, 0.0623307377, 0.1783412695, 0.1782838106, 0.1870181113, 0.219691962, -0.1662825793, 0.0244083554, -0.2889587879, 0.0589667186, 0.1931678355, -0.1010682657, 0.0312127843, 0.5167576671, 0.5962797999, 0.1636160314, -0.0893287286, 0.0574168898, 0.1213993579, 0.322563827, 0.5040453076, -0.0957844555, -0.5049682856, -0.4385408163, -0.2283801287, 0.1354013979, -0.1539179236, -0.1548359394, 0.0497738272, 0.0315384194, 0.1469537914, -0.0454764813, -0.2531864047, 0.1034182534, 0.1706102788, 0.4527876079, -0.2479967773, -0.2641302645, 0.1756777167, 0.1481624842, -0.3362433314, 0.2616693377, -0.2128400207, -0.3010277152, -0.0757121518, 0.1897960305, 0.0888678953, -0.0190401487, 0.6010873914, -0.0455839485, 0.3202251792, 0.2428415716, -0.0212923959, -0.2903787494, -0.2750292122, 0.2024096251, -0.0744131058, 0.4421257973, -0.3846030235, 0.2418860793, 0.0347099602, 0.062679559, -0.2775330245, -0.2786613405, 0.0277650654, -0.2143130153, -0.3709551394, 0.2795898616, -0.097946018, 0.0287372768, 0.4505161941, 0.1107023433, 0.0913536251, -0.1294457018, -0.1693639308, -0.2396492362, 0.2120367289, -0.3756002784, -0.0540665947, -0.0467671491, 0.1419931054, 0.5354360342, 0.4785679281, -0.3146362603, -0.2053066343, 0.3774160147, -0.114943698, -0.2709685862, 0.1097265556, 0.2885721624, -0.1728778332, -0.0676887706, -0.4764381051, 0.2064549476, -0.1344135851, -0.2389267683, -0.3001995087 ]
https://github.com/huggingface/datasets/issues/2708
QASC: incomplete training set
Hi @danyaljj, thanks for reporting. Unfortunately, I have not been able to reproduce your problem. My train split has 8134 examples: ```ipython In [10]: ds["train"] Out[10]: Dataset({ features: ['id', 'question', 'choices', 'answerKey', 'fact1', 'fact2', 'combinedfact', 'formatted_question'], num_rows: 8134 }) In [11]: ds["train"].shape Out[11]: (8134, 8) ``` and the content of the last 5 examples is: ```ipython In [12]: for i in range(8129, 8134): ...: print(json.dumps(ds["train"][i])) ...: {"id": "3KAKFY4PGU1LGXM77JAK2700NGCI3X", "question": "Chitin can be used for protection by whom?", "choices": {"text": ["Fungi", "People", "Man", "Fish", "trees", "Dogs", "animal", "Birds"], "label": ["A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "D", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish scales are also composed of chitin.", "combinedfact": "Chitin can be used for prote ction by fish.", "formatted_question": "Chitin can be used for protection by whom? (A) Fungi (B) People (C) Man (D) Fish (E) trees (F) Dogs (G) animal (H) Birds"} {"id": "336YQZE83VDAQVZ26HW59X51JZ9M5M", "question": "Which type of animal uses plates for protection?", "choices": {"text": ["squids", "reptiles", "sea urchins", "fish", "amphibians", "Frogs", "mammals", "salm on"], "label": ["A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "B", "fact1": "scales are used for protection by scaled animals", "fact2": "Reptiles have scales or plates.", "combinedfact": "Reptiles use their plates for protection.", "formatted_question": "Which type of animal uses plates for protection? (A) squids (B) reptiles (C) sea urchins (D) fish (E) amphibians (F) Frogs (G) mammals (H) salmon"} {"id": "3WZ36BJEV3FGS66VGOOUYX0LN8GTBU", "question": "What are used for protection by fish?", "choices": {"text": ["scales", "fins", "streams.", "coral", "gills", "Collagen", "mussels", "whiskers"], "label": [" A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "A", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish are backboned aquatic animals.", "combinedfact": "scales are used for prote ction by fish ", "formatted_question": "What are used for protection by fish? (A) scales (B) fins (C) streams. (D) coral (E) gills (F) Collagen (G) mussels (H) whiskers"} {"id": "3Z2R0DQ0JHDKFAO2706OYIXGNA4E28", "question": "What are pangolins covered in?", "choices": {"text": ["tunicates", "Echinoids", "shells", "exoskeleton", "blastoids", "barrel-shaped", "protection", "white" ], "label": ["A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "G", "fact1": "scales are used for protection by scaled animals", "fact2": "Pangolins have an elongate and tapering body covered above with ov erlapping scales.", "combinedfact": "Pangolins are covered in overlapping protection.", "formatted_question": "What are pangolins covered in? (A) tunicates (B) Echinoids (C) shells (D) exoskeleton (E) blastoids (F) barrel-shaped (G) protection (H) white"} {"id": "3PMBY0YE272GIWPNWIF8IH5RBHVC9S", "question": "What are covered with protection?", "choices": {"text": ["apples", "trees", "coral", "clams", "roses", "wings", "hats", "fish"], "label": ["A", "B", "C", "D ", "E", "F", "G", "H"]}, "answerKey": "H", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish are covered with scales.", "combinedfact": "Fish are covered with protection", "formatted_q uestion": "What are covered with protection? (A) apples (B) trees (C) coral (D) clams (E) roses (F) wings (G) hats (H) fish"} ``` Could you please load again your dataset and print its shape, like this: ```python ds = load_dataset("qasc", split="train) print(ds.shape) ``` and confirm which is your output?
## Describe the bug The training instances are not loaded properly. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("qasc", script_version='1.10.2') def load_instances(split): instances = dataset[split] print(f"split: {split} - size: {len(instances)}") for x in instances: print(json.dumps(x)) load_instances('test') load_instances('validation') load_instances('train') ``` ## results For test and validation, we can see the examples in the output (which is good!): ``` split: test - size: 920 {"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Anthax", "under water", "uterus", "wombs", "two", "moles", "live", "embryo"]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "What type of birth do therian mammals have? (A) Anthax (B) under water (C) uterus (D) wombs (E) two (F) moles (G) live (H) embryo", "id": "3C44YUNSI1OBFBB8D36GODNOZN9DPA", "question": "What type of birth do therian mammals have?"} {"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Corvidae", "arthropods", "birds", "backbones", "keratin", "Jurassic", "front paws", "Parakeets."]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "By what time had mouse-sized viviparous mammals evolved? (A) Corvidae (B) arthropods (C) birds (D) backbones (E) keratin (F) Jurassic (G) front paws (H) Parakeets.", "id": "3B1NLC6UGZVERVLZFT7OUYQLD1SGPZ", "question": "By what time had mouse-sized viviparous mammals evolved?"} {"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Reduced friction", "causes infection", "vital to a good life", "prevents water loss", "camouflage from consumers", "Protection against predators", "spur the growth of the plant", "a smooth surface"]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "What does a plant's skin do? (A) Reduced friction (B) causes infection (C) vital to a good life (D) prevents water loss (E) camouflage from consumers (F) Protection against predators (G) spur the growth of the plant (H) a smooth surface", "id": "3QRYMNZ7FYGITFVSJET3PS0F4S0NT9", "question": "What does a plant's skin do?"} ... ``` However, only a few instances are loaded for the training split, which is not correct. ## Environment info - `datasets` version: '1.10.2' - Platform: MaxOS - Python version:3.7 - PyArrow version: 3.0.0
496
QASC: incomplete training set ## Describe the bug The training instances are not loaded properly. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("qasc", script_version='1.10.2') def load_instances(split): instances = dataset[split] print(f"split: {split} - size: {len(instances)}") for x in instances: print(json.dumps(x)) load_instances('test') load_instances('validation') load_instances('train') ``` ## results For test and validation, we can see the examples in the output (which is good!): ``` split: test - size: 920 {"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Anthax", "under water", "uterus", "wombs", "two", "moles", "live", "embryo"]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "What type of birth do therian mammals have? (A) Anthax (B) under water (C) uterus (D) wombs (E) two (F) moles (G) live (H) embryo", "id": "3C44YUNSI1OBFBB8D36GODNOZN9DPA", "question": "What type of birth do therian mammals have?"} {"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Corvidae", "arthropods", "birds", "backbones", "keratin", "Jurassic", "front paws", "Parakeets."]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "By what time had mouse-sized viviparous mammals evolved? (A) Corvidae (B) arthropods (C) birds (D) backbones (E) keratin (F) Jurassic (G) front paws (H) Parakeets.", "id": "3B1NLC6UGZVERVLZFT7OUYQLD1SGPZ", "question": "By what time had mouse-sized viviparous mammals evolved?"} {"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Reduced friction", "causes infection", "vital to a good life", "prevents water loss", "camouflage from consumers", "Protection against predators", "spur the growth of the plant", "a smooth surface"]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "What does a plant's skin do? (A) Reduced friction (B) causes infection (C) vital to a good life (D) prevents water loss (E) camouflage from consumers (F) Protection against predators (G) spur the growth of the plant (H) a smooth surface", "id": "3QRYMNZ7FYGITFVSJET3PS0F4S0NT9", "question": "What does a plant's skin do?"} ... ``` However, only a few instances are loaded for the training split, which is not correct. ## Environment info - `datasets` version: '1.10.2' - Platform: MaxOS - Python version:3.7 - PyArrow version: 3.0.0 Hi @danyaljj, thanks for reporting. Unfortunately, I have not been able to reproduce your problem. My train split has 8134 examples: ```ipython In [10]: ds["train"] Out[10]: Dataset({ features: ['id', 'question', 'choices', 'answerKey', 'fact1', 'fact2', 'combinedfact', 'formatted_question'], num_rows: 8134 }) In [11]: ds["train"].shape Out[11]: (8134, 8) ``` and the content of the last 5 examples is: ```ipython In [12]: for i in range(8129, 8134): ...: print(json.dumps(ds["train"][i])) ...: {"id": "3KAKFY4PGU1LGXM77JAK2700NGCI3X", "question": "Chitin can be used for protection by whom?", "choices": {"text": ["Fungi", "People", "Man", "Fish", "trees", "Dogs", "animal", "Birds"], "label": ["A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "D", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish scales are also composed of chitin.", "combinedfact": "Chitin can be used for prote ction by fish.", "formatted_question": "Chitin can be used for protection by whom? (A) Fungi (B) People (C) Man (D) Fish (E) trees (F) Dogs (G) animal (H) Birds"} {"id": "336YQZE83VDAQVZ26HW59X51JZ9M5M", "question": "Which type of animal uses plates for protection?", "choices": {"text": ["squids", "reptiles", "sea urchins", "fish", "amphibians", "Frogs", "mammals", "salm on"], "label": ["A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "B", "fact1": "scales are used for protection by scaled animals", "fact2": "Reptiles have scales or plates.", "combinedfact": "Reptiles use their plates for protection.", "formatted_question": "Which type of animal uses plates for protection? (A) squids (B) reptiles (C) sea urchins (D) fish (E) amphibians (F) Frogs (G) mammals (H) salmon"} {"id": "3WZ36BJEV3FGS66VGOOUYX0LN8GTBU", "question": "What are used for protection by fish?", "choices": {"text": ["scales", "fins", "streams.", "coral", "gills", "Collagen", "mussels", "whiskers"], "label": [" A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "A", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish are backboned aquatic animals.", "combinedfact": "scales are used for prote ction by fish ", "formatted_question": "What are used for protection by fish? (A) scales (B) fins (C) streams. (D) coral (E) gills (F) Collagen (G) mussels (H) whiskers"} {"id": "3Z2R0DQ0JHDKFAO2706OYIXGNA4E28", "question": "What are pangolins covered in?", "choices": {"text": ["tunicates", "Echinoids", "shells", "exoskeleton", "blastoids", "barrel-shaped", "protection", "white" ], "label": ["A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "G", "fact1": "scales are used for protection by scaled animals", "fact2": "Pangolins have an elongate and tapering body covered above with ov erlapping scales.", "combinedfact": "Pangolins are covered in overlapping protection.", "formatted_question": "What are pangolins covered in? (A) tunicates (B) Echinoids (C) shells (D) exoskeleton (E) blastoids (F) barrel-shaped (G) protection (H) white"} {"id": "3PMBY0YE272GIWPNWIF8IH5RBHVC9S", "question": "What are covered with protection?", "choices": {"text": ["apples", "trees", "coral", "clams", "roses", "wings", "hats", "fish"], "label": ["A", "B", "C", "D ", "E", "F", "G", "H"]}, "answerKey": "H", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish are covered with scales.", "combinedfact": "Fish are covered with protection", "formatted_q uestion": "What are covered with protection? (A) apples (B) trees (C) coral (D) clams (E) roses (F) wings (G) hats (H) fish"} ``` Could you please load again your dataset and print its shape, like this: ```python ds = load_dataset("qasc", split="train) print(ds.shape) ``` and confirm which is your output?
[ -0.2450184077, -0.3615008295, -0.1671690941, 0.372361213, 0.1236954182, 0.1451466382, 0.016439151, 0.4380204082, -0.1213207021, 0.0934932008, 0.1632601768, 0.1249718964, 0.0430465713, 0.2471370548, -0.0943753719, -0.1647272557, -0.0069865733, 0.2966330945, -0.2305756658, -0.074491933, -0.2418488264, 0.3023810089, -0.2500707507, -0.0736246482, -0.1649780869, -0.2872939706, -0.0491759442, 0.013310791, 0.0458691269, -0.3200642765, -0.0480258986, -0.3247573078, -0.1014456078, 0.4697219133, -0.0001062213, 0.0782130957, 0.12709786, -0.1408857107, -0.3300848603, 0.1074303389, -0.2933755219, -0.1728280187, 0.0326807424, -0.0973909944, -0.2557200491, -0.2729077041, -0.0496535003, -0.0854509547, 0.5871789455, 0.2898499668, 0.2529068589, 0.3633325696, 0.0336481035, -0.0832498521, -0.2213348001, -0.5049694777, -0.040540643, 0.0328144431, 0.2264517248, 0.04571224, 0.246817857, 0.2307886332, 0.2760747075, -0.1007843167, 0.1479253024, -0.2171174288, 0.1146206409, -0.1962148547, 0.0263632759, 0.1972753704, 0.371968478, 0.1936607957, -0.3621880412, -0.1538573503, -0.0319556668, -0.4144758284, -0.037216045, 0.2690793574, -0.0616778694, 0.2073268294, -0.1861335635, 0.2345626652, -0.1997881979, 0.1442644298, -0.1462114006, 0.224408105, -0.0654701963, -0.0954148546, -0.249578923, 0.1812458038, -0.0705581009, 0.126092881, -0.0084409043, 0.1862767935, -0.5876224041, -0.1518307179, 0.17353037, -0.2187471837, 0.0536675155, -0.0276971906, 0.4717936814, -0.1412031353, 0.0702638924, 0.0977405906, 0.2745474875, 0.5109511018, 0.2012847066, 0.1008576527, -0.1483421326, 0.2257249206, -0.1809087694, 0.1172316074, -0.1104006246, -0.1220030487, 0.1084837019, 0.2392061055, -0.1832304001, -0.1661885083, -0.4356071353, 0.466989994, -0.4517903924, 0.1110787541, -0.2033955604, 0.3239643574, -0.2341742218, 0.2661922574, 0.0968194008, 0.2421138138, -0.4497465491, -0.1726888418, -0.3069636226, -0.005371727, -0.1520237625, -0.1448993236, 0.066796273, -0.0198878143, 0.686404705, -0.1905842572, 0.2406970412, -0.1494981945, 0.1166922525, -0.1677240133, -0.1573779881, 0.2168617398, 0.0933349654, -0.1515266597, 0.0986843407, 0.1273587048, 0.0735537857, -0.0123291612, -0.1933778971, -0.0778046697, 0.0731488988, 0.3307121396, 0.0673328787, 0.1481942087, -0.0800903216, 0.3283024132, 0.3131914139, 0.2075051963, -0.1654670835, -0.1291124374, -0.0672501177, -0.0664217472, 0.2284733951, 0.1068681329, -0.387963742, -0.2831281424, 0.2111898214, 0.1523139477, -0.1277308613, 0.1663792133, -0.0637845695, 0.4463842809, -0.0574763604, 0.1228242069, -0.1606710553, -0.027835954, -0.0758509487, -0.0808560997, -0.035956271, 0.0637389123, 0.0771537125, -0.3781816661, 0.3808515072, 0.1721237898, 0.2533083558, 0.2878331542, -0.0454362929, -0.0531012192, -0.3692813814, -0.3330495656, -0.1322297007, 0.0303952768, 0.1376108378, -0.0659365505, -0.0196516179, -0.2123090923, 0.4386964142, 0.0753439292, -0.1268947423, 0.2475073338, 0.2016561329, -0.1755530685, 0.1349405944, -0.0882638767, -0.4648682177, 0.3856159151, -0.2136989832, 0.1805250645, 0.1455845535, 0.0752156973, -0.5313091278, -0.0354603902, -0.0576037876, -0.3980098367, 0.2089183629, -0.0482742563, 0.1521581411, -0.0416217186, -0.1192984805, 0.0717150196, -0.2015972435, -0.005151093, -0.2455399185, 0.2948983908, -0.1022189036, -0.0338157974, 0.2529662251, 0.1713650674, 0.0838685557, -0.2252241522, -0.0535433218, 0.3246363997, 0.1384630054, -0.0993400365, -0.1715636253, -0.1226142347, 0.1180639863, -0.1319233924, -0.2020103186, 0.2057533711, 0.1158743575, -0.0233054087, -0.1940400451, 0.3919538856, 0.1703978628, 0.2448912412, 0.2319548279, 0.0529230088, 0.1448594183, -0.0916806906, 0.0975736827, -0.063884981, 0.1895998269, -0.0497285165, -0.0844066143, -0.0868862718, -0.276992768, 0.1296672821, 0.1336872876, 0.0348886847, -0.0792624354, -0.1626705378, -0.1537512094, 0.1644690931, 0.1590700299, 0.1174462363, 0.1510914862, 0.3079984188, -0.2536087632, -0.1998344213, 0.0356863551, 0.0004941784, 0.1626495719, 0.0426238179, 0.2464945912, 0.2847856283, 0.1936951578, -0.0943688527, -0.1065961719, 0.123105824, 0.1845837831, 0.2153209448, -0.373005271, 0.1432093382, -0.1024534255, 0.2950362563, -0.12795344, 0.2355161011, 0.1593341827, -0.2550417185, 0.2276655585, 0.0367489345, -0.0530087277, 0.2649750113, -0.2547740936, 0.2745155394, 0.1846227944, -0.1531975865, 0.1978167892, 0.1969082206, -0.3121939003, 0.2985315621, -0.0876588747, 0.1244522184, 0.2559635043, -0.0741106719, -0.2983539104, 0.1935953945, -0.2393570244, 0.1780947149, -0.1836472154, 0.4836145937, -0.1416652203, 0.1909185201, -0.3466755748, -0.3810741305, 0.1948749125, -0.0581269041, -0.2577682734, 0.1504853815, 0.0410655066, -0.2013732344, -0.1593972147, -0.7575311661, 0.035438478, -0.1635407507, 0.1972050816, 0.1563575864, 0.2769851089, 0.0308584981, 0.2668566108, -0.0354169905, -0.1260358393, -0.1651286781, -0.1709088534, -0.194642663, 0.3205130696, -0.1530381441, -0.3015635312, -0.1450711191, -0.1393865049, 0.5834773779, -0.0346678272, -0.3780317008, -0.2207749635, -0.0100001423, 0.1090355292, -0.0412044637, -0.1890208125, 0.3572490215, -0.0990521237, -0.2029394656, -0.0918203816, -0.0775545165, 0.3088786006, 0.1910594255, 0.2585726678, -0.4090475738, 0.2854521573, -0.0080060512, 1.0584620237, 0.3723422885, 0.0747847855, 0.0401259102, -0.0044040997, -0.1289394796, -0.1965900362, -0.1487229019, 0.1607519984, -0.0593112633, -0.2840839624, 0.2656474113, 0.1344437599, -0.0197184607, -0.1355738938, 0.2519262135, -0.6226940751, -0.1467550844, -0.0441394523, -0.0679620653, 0.5081374049, 0.0261444449, 0.2575259209, 0.1802202165, 0.0982106924, 0.0189101137, -0.0221584067, 0.1799108833, -0.0480814539, -0.3849965036, -0.0720151961, -0.0630732179, 0.1918582618, -0.1368911713, 0.2850541472, -0.0336411372, -0.031519413, -0.0155022182, 0.0193065815, 0.4916499853, 0.103035152, 0.075963378, 0.2137275785, 0.0983612388, -0.0878995582, -0.1557472944, -0.1249989122, -0.3020197153, -0.1005190909, 0.3204067349, -0.3774963617, 0.0301838741, -0.0500864312, 0.0213073529, -0.361713022, 0.0159994997, -0.3647142649, 0.023645103, -0.1130775809, 0.1736130416, 0.2534517646, 0.239273712, -0.0875734687, -0.0866843238, 0.0384341925, -0.3197669685, 0.2297401428, 0.3085208535, 0.3850123584, 0.0758535042, 0.5038484931, 0.1059482545, -0.2602709234, 0.2349554151, 0.5228103399, -0.1499752253, -0.3038347363, 0.1117304116, -0.1718558967, 0.4033386111, 0.2430360019, -0.1971921325, 0.0012436584, -0.0755830109, 0.2412465066, 0.2151296735, 0.0825201049, 0.0790467486, -0.0239109285, 0.2027700841, -0.358473599, 0.0560033023, -0.1665776968, -0.0322500616, -0.0816433281, 0.1298965663, -0.1747608483, 0.3338712156, 0.1127265692, 0.6330310106, 0.1305936724, -0.0383035131, 0.4832280278, 0.0490094796, 0.1228820682, -0.3597961664, 0.2030262202, -0.2173837423, -0.1108085886, 0.0887389481, -0.0648301244, 0.1883213073, 0.3287273943, -0.143950507, 0.4234226942, -0.4484818578, -0.0406928621, 0.0738431662, -0.0510888062, 0.0314647555, -0.0251645595, -0.2900231481, 0.2359440774, -0.0015878659, -0.0406086668, -0.1033926159, -0.0731636062, -0.1227565855, -0.1274034828, -0.0092288554, 0.2474855483, -0.3118836582, -0.1006117016, 0.3116772175, -0.1610025764, 0.0762253255, 0.3196713924, -0.1201978922, 0.2709674835, -0.0974702388, 0.2468038499, -0.0463558957, 0.0579719543, 0.0048048124, -0.091267392, 0.463134855, -0.1395930946, -0.0712308586, 0.4149793088, -0.2818177938, 0.017611593, 0.0510920882, 0.0648633391, 0.0080350377, -0.3585584462, -0.1104809418, 0.1376360804, 0.00293459, -0.3381871581, 0.2300058901, 0.0572284125, -0.1892749071, 0.1670875847, 0.0865441859, -0.1463122517, 0.0427082367, 0.1361494064, 0.357047081, -0.1305965334, 0.7882823348, 0.1528767049, -0.0398471281, -0.3938730955, -0.0726183653, 0.2945169806, -0.4357191324, 0.3019655943, -0.0136568006, -0.024652198, -0.0521611981, 0.4134021699, 0.1887343377, 0.0399366133, 0.2184930444, -0.4894670546, -0.1931097358, 0.2399050891, -0.0145097077, 0.030234443, -0.13226372, 0.2903125286, -0.1278673112, 0.2097469568, -0.421428889, -0.1433733404, -0.3985894322, 0.1878071129, -0.5181496143, -0.145737052, 0.2272177488, -0.109538734, 0.2473853379, 0.0375555754, -0.2567578554, -0.3200961053, -0.2861350775, 0.0617649183, 0.1927329004, 0.1127405018, 0.2889398336, 0.0416687578, -0.2834427357, 0.0178243518, 0.1013173759, -0.1948020458, 0.0467671603, 0.0871966779, 0.3864269853, 0.0219778977, -0.1919875741, -0.1358882189, -0.0882558376, 0.0904601067, 0.0601679422, -0.2023032159, 0.0523502342, -0.0128184184, -0.150711, 0.2215192169, -0.1231174171, 0.2737950385, 0.2905274332, -0.1926759779, -0.0184262767, -0.1168125272, 0.1618771702, 0.1685914695, -0.1445003897, 0.1315019578, 0.0135791972, 0.3528312445, -0.3844122291, 0.0049671307, -0.3526671231, -0.0184042007, 0.0893212408, 0.1673437953, 0.0437685251, -0.3547250926, -0.0860325694, 0.2811059952, -0.2622293234, -0.1081991196, 0.2802663445, 0.5731698275, 0.0275648832, -0.0002919976, 0.1819291264, -0.3897889555, -0.0526641831, -0.0991596282, 0.0734331906, 0.135288313, 0.2290860116, 0.020084437, -0.0661901385, -0.1742317677, 0.0116926702, 0.0469581001, -0.0897578746, 0.3786460757, -0.0138228163, 0.298789829, -0.0638647154, -0.1497028321, -0.3668245077, -0.1680527925, -0.0015942538, 0.0645885915, 0.0085987002, -0.1513914317, -0.1663931757, -0.0818334073, 0.0792210102, -0.3283425272, 0.1542557329, -0.1284559816, -0.441752255, -0.2323850393, -0.3880307972, 0.485745281, 0.25828439, -0.2795487642, 0.2843217552, 0.1506459117, -0.1825750172, -0.1176907495, 0.4338414669, 0.1280680597, 0.0845426768, -0.0463075042, -0.0871171951, 0.0822569877, -0.1040436476, 0.1117977351, 0.2822866738, 0.1642482579, -0.0767760128, 0.2574384511, 0.1752999425, -0.2762505412, 0.1733470112, 0.0810535252, 0.2326994538, -0.2533418536, 0.1304885745, -0.114449501, -0.0447532386, -0.0553238913, 0.1883160174, -0.401135385, 0.0053416416, 0.1108732074, 0.1102421284, 0.1241550148, -0.0843064934, 0.1275139153, -0.3049995601, 0.512452662, 0.0103121586, 0.0229154788, -0.4916671216, -0.0647165179, -0.2829300165, -0.050129205, -0.2130348831, 0.210437566, 0.0346970484, 0.2090833187, 0.1262040287, 0.1017700732, -0.0141172335, 0.0250883512, -0.257170409, 0.3189042807, -0.7061990499, -0.1350684464, -0.2019829154, 0.3497309685, 0.1605275422, -0.3106668591, 0.0155647937, -0.123976022, 0.1142854244, 0.1948513091, -0.1609453559, 0.3158735037, -0.0857968628, 0.2146509439, 0.1274190992, 0.143475458, -0.0719682425, -0.1633681506, -0.140119493, -0.3524003923, -0.2526797056, 0.2253604233, 0.2688834965, 0.4694866538, 0.102934733, -0.1061383337, 0.0337462798, 0.0445147529, 0.2115574181, -0.4895721972, -0.3758791089, 0.2332730889, 0.0127199143, 0.2232288569, 0.1194653958, 0.263630867, -0.1482477188, -0.247628808, -0.3535003364, -0.434756726, 0.4308348894, -0.0701337829, -0.0934194624, -0.1445527822, 0.2189144194, 0.0158599317, -0.063137345, -0.6744799018, -0.0659776777, 0.4094993472, -0.1132725775, -0.2585166097, 0.1806689948, 0.1244950667, -0.1271045655, -0.056431815, 0.2745740116, 0.0278273858, -0.2310826033, 0.0818093941, -0.0966652036 ]
https://github.com/huggingface/datasets/issues/2707
404 Not Found Error when loading LAMA dataset
Hi @dwil2444! I was able to reproduce your error when I downgraded to v1.1.2. Updating to the latest version of Datasets fixed the error for me :)
The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download: Steps to Reproduce: 1. `from datasets import load_dataset` 2. `dataset = load_dataset('lama', 'trex')`. Results: `FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py`
27
404 Not Found Error when loading LAMA dataset The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download: Steps to Reproduce: 1. `from datasets import load_dataset` 2. `dataset = load_dataset('lama', 'trex')`. Results: `FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py` Hi @dwil2444! I was able to reproduce your error when I downgraded to v1.1.2. Updating to the latest version of Datasets fixed the error for me :)
[ 0.0275758803, -0.1798950136, -0.0416178107, 0.5950451493, 0.4188718498, 0.1276884824, -0.1021334827, 0.4045757353, -0.4222147763, 0.2916163504, -0.3122205436, 0.164151594, -0.1594457626, -0.2467196882, 0.0084441118, -0.3867283463, -0.1002723873, -0.0234838724, -0.2141504437, 0.1703377515, -0.0552279502, 0.3564765453, -0.1458570361, 0.1938976943, 0.0413474962, 0.121829465, -0.1561385393, 0.3231819868, -0.2132586241, -0.3137519956, 0.3761616647, -0.1966381073, 0.26369524, 0.7458995581, -0.000113161, 0.1709336936, 0.2560485005, -0.1524576247, -0.2275673747, -0.3300158381, -0.2031927556, 0.0208374187, 0.0260603204, 0.062077418, -0.3279790878, -0.0541187003, 0.0296568368, -0.106871292, 0.0726991296, 0.2427027225, 0.222291857, 0.5647496581, 0.1862714142, -0.3274782002, 0.155466944, -0.1818129569, -0.140078634, 0.6799875498, 0.1498620659, 0.44472754, 0.117004104, 0.4727894664, 0.0081931204, -0.0207341593, 0.2193836272, -0.1606037021, 0.3265090287, -0.3726670146, 0.2364121974, 0.3105345964, 0.398440063, -0.1125399768, -0.3003064692, -0.1880158782, 0.0631655455, -0.1206553951, 0.2855997682, 0.1726786196, -0.2515364587, 0.2372480929, 0.0646845475, -0.3774135709, -0.0309248641, 0.2397214919, -0.0525434166, -0.3283073306, -0.1941553056, -0.0440331735, -0.0428911932, -0.117754899, -0.1223736405, -0.1022246256, -0.060499575, 0.407345593, -0.1801202893, -0.0222833976, 0.1310410202, 0.1632921845, 0.0916109532, 0.2455809712, -0.0600879043, 0.1073497832, -0.429356575, 0.1083615869, 0.230610162, 0.0193924978, 0.0387210026, 0.0064261593, 0.1022533774, 0.559654355, 0.1537623703, -0.0669865832, -0.3494538367, -0.3994410038, -0.4301464558, 0.0453645848, 0.3619146347, -0.2745938301, -0.1926771253, -0.2255995721, -0.1761294603, -0.1179649085, 0.3284714222, 0.4818296432, -0.0135617666, 0.1518222541, -0.2231663465, 0.1077086329, -0.0843077376, -0.1456599534, -0.2482447177, 0.079483524, -0.2387342751, 0.179016307, 0.1133855432, -0.6890282631, 0.3001254797, -0.3057085574, -0.1137939245, 0.0082932264, 0.0363539159, -0.073778376, -0.1109920293, 0.2830497622, 0.0126991719, -0.0248330012, -0.0502678603, -0.1237626001, -0.1351198703, 0.012353302, -0.2292304188, -0.2775948644, -0.0139287468, 0.1285253316, -0.0168107636, 0.2033051997, 0.1159622073, 0.1687006503, -0.2712264359, -0.1288263947, -0.0279892348, 0.1394172609, -0.0879689753, -0.1676280648, 0.4258753061, 0.5617593527, -0.1878836155, -0.0116632581, -0.0652731881, -0.4448722303, 0.0218881555, 0.2667712271, -0.1007738262, 0.2799504697, -0.5007407665, 0.0761445314, 0.3697868586, -0.3822959065, -0.2424638867, -0.0179704893, -0.1458067894, -0.0362403169, 0.0455984995, -0.1990575194, -0.0711609721, -0.1117388904, 0.4304509163, -0.0396550521, 0.1082404107, -0.2827383578, -0.1561474502, -0.1705928147, -0.0402732715, 0.0282073915, 0.0869351029, 0.0649739057, 0.1890321523, -0.164119482, 0.1505361348, 0.017725192, 0.004451029, 0.3384773731, 0.3335935771, 0.2531712949, 0.0434679352, -0.1701405644, -0.0906357244, 0.1604192704, -0.1763246953, 0.2604507208, -0.3216405511, -0.058682397, -0.3983003497, -0.0621898882, -0.243059665, -0.1129868925, 0.138648212, 0.0277109686, 0.1554590762, 0.3996637464, -0.1036322042, 0.086656265, 0.0413636491, 0.3868947029, -0.5217026472, 0.2882937789, -0.1621194184, -0.0569977388, 0.0447351933, 0.165054217, 0.0889763832, -0.2264203131, 0.0879148543, 0.3215092123, 0.1480685025, 0.0254216474, 0.6113660932, -0.2260293067, 0.121130228, -0.2721602023, 0.0900696814, -0.0116438773, 0.1313453466, 0.1288068295, 0.0631601885, 0.1652714759, 0.1123044193, 0.0762932375, 0.1483343691, 0.0277669877, 0.3416907787, -0.0324317738, -0.0726276934, -0.2988244891, 0.2953141332, 0.1561000198, 0.2211458236, -0.0873381719, -0.2797175646, -0.2418059111, -0.2270913273, -0.1054829955, -0.0097528528, 0.1181014031, -0.3057863116, 0.2041132748, 0.2184479237, 0.3560208678, 0.1993280053, 0.1325496733, 0.1636898369, 0.1632712781, 0.1215514243, -0.1284632832, 0.0921376646, 0.1699594408, 0.0739593059, 0.187148124, -0.1497148275, 0.0457582399, -0.3275999427, -0.0989336669, -0.1598586738, 0.21086362, -0.1368253082, -0.1308038831, -0.3650538027, -0.5920038223, -0.247882396, -0.0549494885, -0.4640182853, -0.2258245945, -0.1292406321, -0.0146920988, -0.0487075746, 0.0384628698, -0.3173119128, 0.1435842067, -0.0826628655, -0.0794706494, -0.2091593146, 0.0474946126, -0.0480667613, 0.0619081706, 0.3312285542, -0.0067729726, 0.3388997316, -0.3461809456, 0.1102549732, -0.2857081294, -0.3271126747, 0.1754179001, 0.1256678849, 0.2020725757, 0.1722787172, 0.1957675368, 0.0749964342, -0.1231167465, 0.3749616742, 0.0885661766, -0.104262799, 0.0144842491, -0.0229886584, 0.2079499811, 0.0007509217, -0.2067744881, -0.111795865, -0.2796297669, -0.0600173734, 0.0753037632, -0.0136355869, 0.0379959606, 0.2016091645, 0.3852595687, -0.5088940859, -0.0519050024, -0.0848610699, -0.3770297468, 0.3114743531, -0.2667349875, -0.2900532484, 0.3200343251, -0.2356292009, 0.5331382155, -0.165754348, -0.4765571952, 0.0859391987, 0.0523846895, 0.160513103, 0.2272051275, -0.1370081604, 0.0498036295, 0.0314957947, -0.1133916825, 0.0020011216, -0.0747730061, -0.3300973475, -0.0530959144, 0.495097518, -0.1138646826, 0.0503149815, 0.0733367577, 0.4199269712, 0.3726037741, 0.1534768492, 0.4652202427, 0.1167083234, 0.5983045697, -0.0907254592, -0.1926034391, -0.1169221923, 0.01171837, 0.1279620677, 0.0744703636, 0.5465224981, 0.1982721388, -0.5745586157, -0.391428709, -0.2849521637, -0.3250798583, -0.3052752316, -0.1911691278, 0.1338611692, 0.0820838064, 0.0130698159, 0.0836499035, -0.0033116937, 0.2214972228, 0.6827548742, 0.0313967951, 0.0096509531, 0.0218122974, 0.4009028077, -0.7738463283, 0.206787318, -0.2102186829, 0.0063065477, 0.0255130827, 0.0963210315, 0.2056541592, -0.0184105281, 0.6278697252, 0.0996662453, 0.0807926133, -0.0246404149, -0.0494303629, -0.2527085543, 0.0870688558, 0.0038769245, -0.0025459006, 0.1338182986, 0.6096515059, -0.2629619837, -0.1945954114, 0.1487479806, 0.0900398344, -0.1467811167, -0.2016199827, -0.2816527486, -0.283328414, -0.146364972, -0.3225825727, -0.194890812, 0.3163632452, 0.4110980332, -0.1206546575, 0.1204498932, 0.1290363222, 0.1325508058, 0.0731240958, 0.2535375953, 0.1423859149, 0.194726795, 0.4189756215, 0.2729949653, 0.205422774, 0.6228637695, -0.2285931259, -0.5557927489, -0.1378274262, -0.0102483854, 0.0661037937, 0.284222424, -0.1786152124, 0.1075812057, 0.209420532, 0.2447219342, -0.3189254701, 0.2377246022, 0.4166230559, -0.0420564115, -0.2295150906, -0.2105557024, 0.1751541793, -0.1090670526, 0.0142890066, 0.5919672847, 0.2655674517, -0.0308931395, -0.0533254929, -0.0762448013, 0.8943362236, -0.305203855, -0.1355115771, 0.4126399159, -0.1429202557, 0.3268465996, 0.1835482419, 0.1597988009, -0.0332715064, 0.1485078931, -0.03398294, 0.0062112361, 0.1509295404, -0.0666000769, -0.0723303109, 0.3700768948, 0.1185517758, -0.1996470243, -0.1146829501, 0.0298468247, -0.0864051431, 0.1577291787, -0.1449259222, 0.1460776776, 0.0016572578, 0.6845749617, -0.1613361388, -0.1802316457, -0.2283405811, -0.1184448004, -0.073276408, 0.0116943493, -0.1795809418, 0.0108823776, 0.0359084234, -0.469471693, 0.0718548447, 0.1127225906, -0.0739296302, -0.1057821512, -0.4312481582, 0.2365910411, -0.2660600543, -0.4037064016, -0.0257567316, 0.0901977867, 0.2451147735, -0.025860887, -0.1520772576, 0.0672032386, 0.0271404497, 0.0056668222, 0.2813138962, -0.0833319873, -0.154491961, -0.0350883566, -0.1870553344, 0.0724627823, 0.1514798105, -0.1914684772, 0.1532900482, 0.2633696795, -0.1594768018, -0.4186682701, 0.1783052534, -0.0989263654, 0.0503909141, 0.392462045, -0.2345745265, -0.3326855004, 0.1719312966, 0.3241139352, -0.1872753501, -0.120837599, 0.1790052503, 0.1110542119, -0.5132271051, 0.0620096996, 0.1603054553, 0.4298986197, -0.0017277822, 0.0022817235, 0.2556885481, -0.6776073575, -0.1010780036, -0.3675175607, -0.2923961878, 0.2684900165, -0.1659118682, 0.077357471, -0.192792803, 0.026706215, 0.2402823865, -0.1025595739, -0.2744694948, 0.1755049974, -0.224812001, 0.0137471389, 0.1955938786, 0.1704108566, 0.1359427571, 0.0623151362, 0.1203890294, -0.1133145913, -0.3900872767, -0.1529631913, 0.0052959397, 0.0870564431, -0.0175165683, -0.1752784997, 0.0797715113, -0.1581255794, -0.0152744576, -0.160356611, -0.1277956069, 0.2234124988, 0.1035032272, -0.1417802572, 0.1294026375, -0.0120224804, -0.2700366974, 0.3153382838, 0.1504022032, 0.2719044089, 0.2604064941, -0.1854819357, -0.2581333816, -0.0590674244, -0.0993149653, 0.0291404277, -0.0427694246, -0.1533051133, 0.2613149583, -0.0067476556, 0.037507534, -0.0210284181, 0.2382089347, 0.0559403859, -0.1683040857, 0.2652595043, 0.4411591291, 0.1108985245, -0.3262591362, 0.1049169451, 0.1623978913, 0.0359201133, -0.044006072, -0.1589196026, -0.2583510578, 0.2208856046, -0.0149286836, 0.0792650282, 0.1950488389, 0.1507976353, 0.3202227652, 0.4101896286, 0.2101361006, -0.0290632173, 0.3033572733, 0.1490905881, 0.0973711312, 0.4854161143, -0.1422755867, 0.3498795033, -0.6094711423, 0.2992955148, -0.0194630399, -0.4472796917, -0.0481806174, 0.1635995954, -0.0522707999, -0.1631706804, -0.1516119987, 0.3918915689, -0.1910347641, 0.1293943971, -0.1471154392, 0.0728556365, 0.0067058913, 0.0518137515, 0.1234888285, -0.3167689443, 0.0602366477, -0.0292314962, 0.2890925109, -0.3182104826, -0.1202590019, 0.0752686113, -0.0915649757, -0.1428071558, -0.2174870074, 0.0918717608, -0.0202288181, -0.0118625313, 0.1545283496, 0.2011742294, 0.0429387838, 0.0218257699, 0.1903555691, 0.4008924663, 0.0433459729, 0.0538097806, -0.1292656511, -0.1521479338, -0.052397538, 0.0550791174, 0.2060994804, 0.0399794728, 0.1083693355, 0.3821547925, 0.1420218349, -0.1837975532, -0.2758414447, 0.0675113946, 0.2499998212, -0.2783145905, 0.4672819674, -0.5629258156, 0.0096477196, -0.1725461781, -0.0641689301, -0.5021950603, 0.5542036295, 0.2244345248, -0.3633372784, -0.1388112605, -0.1607693434, 0.0650710315, 0.0170882493, 0.4634780288, 0.3883375227, 0.4095772207, -0.2445140779, -0.5597170591, -0.732465446, 0.2157926261, -0.1681683958, 0.0038511753, -0.0165791251, 0.0682504401, -0.1144284308, 0.3239793479, 0.2871299088, 0.0853668749, 0.3343957663, -0.1083976328, -0.0686183274, -0.1621776968, -0.2101034969, -0.0269090775, -0.1026000977, -0.1848224699, 0.0655365437, -0.4303752482, -0.0103823133, 0.1170583963, 0.1353749782, -0.1436258256, -0.0944067836, 0.4596576691, -0.0379386842, 0.22859478, 0.0479291454, -0.0674174502, -0.1437525749, -0.2410254776, 0.21547243, -0.0430862531, -0.0316431522, 0.0373083875, -0.2298001945, -0.2477362454, -0.2015141249, 0.5169577003, 0.1491544247, 0.3214687407, -0.0567179732, 0.1079271361, -0.0420843959, -0.1029457599, 0.2558765411, -0.0612674542, -0.1464359313, -0.0608655773, -0.1390435249, -0.1754337847, 0.6612130404, -0.3637343049, 0.1629914939, -0.1541463435, 0.034804482, 0.0658012033, -0.2408928424, -0.7541183829, 0.2883239388, 0.290397495, 0.3903473318, -0.1727048755, 0.1597916037, -0.261601299, -0.0970126167, 0.142427817, 0.04662361, -0.0516113192, -0.0518993139, 0.1443357319, -0.0248507448 ]
https://github.com/huggingface/datasets/issues/2707
404 Not Found Error when loading LAMA dataset
Hi @dwil2444, thanks for reporting. Could you please confirm which `datasets` version you were using and if the problem persists after you update it to the latest version: `pip install -U datasets`? Thanks @stevhliu for the hint to fix this! ;)
The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download: Steps to Reproduce: 1. `from datasets import load_dataset` 2. `dataset = load_dataset('lama', 'trex')`. Results: `FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py`
41
404 Not Found Error when loading LAMA dataset The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download: Steps to Reproduce: 1. `from datasets import load_dataset` 2. `dataset = load_dataset('lama', 'trex')`. Results: `FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py` Hi @dwil2444, thanks for reporting. Could you please confirm which `datasets` version you were using and if the problem persists after you update it to the latest version: `pip install -U datasets`? Thanks @stevhliu for the hint to fix this! ;)
[ 0.0376230478, -0.2442802936, -0.0386777967, 0.6305746436, 0.4072244167, 0.0883308351, -0.0716987699, 0.3489052057, -0.3947160244, 0.2646037936, -0.2870089412, 0.2205040008, -0.1573988348, -0.2962249219, 0.0108721294, -0.3568077385, -0.1149339825, -0.0169954747, -0.1815580726, 0.1489531249, -0.0625045523, 0.3521648347, -0.126523599, 0.1486694664, 0.0735034198, 0.1503956914, -0.1259554923, 0.2814263701, -0.1905415654, -0.3247136474, 0.4116794765, -0.1972881407, 0.2471829206, 0.7875104547, -0.0001171694, 0.1473742723, 0.2983238399, -0.1649733186, -0.2821419239, -0.3706026077, -0.2304015458, -0.0749064013, 0.0254260078, 0.0481943786, -0.3216996491, -0.0121684372, 0.0023314506, -0.0769953132, 0.1006456167, 0.2473405898, 0.1817989945, 0.5502541065, 0.1799940318, -0.2549858689, 0.1239052713, -0.1564268917, -0.1432596743, 0.6937094331, 0.2121170461, 0.4913324714, 0.1655280292, 0.4662212431, -0.0164649449, -0.0003989879, 0.1752236784, -0.1469995975, 0.30668962, -0.3588719964, 0.2023097724, 0.3324890137, 0.4127960503, -0.1082109213, -0.31761989, -0.2034640908, 0.0543418974, -0.1205693036, 0.2801489532, 0.2186775208, -0.2847768366, 0.2256471217, 0.0706215501, -0.4013848603, -0.0462254733, 0.2663987875, -0.0475648418, -0.3123939931, -0.2254798412, -0.0457047522, -0.056100864, -0.1228490397, -0.1137525216, -0.1313111633, -0.0502310656, 0.4134672284, -0.1436476707, -0.0026623681, 0.0764176473, 0.1962407678, 0.0534739196, 0.2188103199, -0.0718789846, 0.1110743582, -0.3836348653, 0.0944972634, 0.2684501112, -0.008999411, 0.011655122, 0.0559998378, 0.0936570615, 0.5667536259, 0.1805585176, -0.0413757488, -0.3334462643, -0.3940544128, -0.4419757128, 0.021696873, 0.3429947197, -0.2445636243, -0.1817907095, -0.2328265309, -0.1784703434, -0.1435520947, 0.3312102258, 0.4548915029, -0.0192041341, 0.1615785956, -0.1978381872, 0.0973858163, -0.0708597973, -0.1500713378, -0.2035822868, 0.051846467, -0.2274142951, 0.1836644262, 0.1518689692, -0.7167777419, 0.3160143197, -0.2461056411, -0.1420819908, 0.01632227, 0.0305064842, -0.0926795006, -0.0823924243, 0.283970356, 0.0460853875, 0.0165916607, -0.0983634889, -0.1527362764, -0.1185644865, 0.0476335362, -0.2459809929, -0.246796459, -0.0715640336, 0.083106555, -0.0353125744, 0.2100953311, 0.0569601059, 0.1596895903, -0.2359338701, -0.1610611975, 0.0122283474, 0.1079687402, -0.0236640573, -0.1690436602, 0.4432068169, 0.5722749829, -0.1904917657, -0.0203828141, -0.1001599133, -0.4123747647, 0.0347053111, 0.2353798449, -0.1050835401, 0.3270787597, -0.5126181245, 0.009488672, 0.4096077085, -0.4043956995, -0.2640867829, -0.014639657, -0.1036583111, 0.0169052556, 0.0618811511, -0.2221135646, -0.0735696405, -0.0733289942, 0.4005429447, -0.050477609, 0.1311738789, -0.2857052386, -0.1809941232, -0.1583043933, -0.0461679697, 0.0271684527, 0.0974407643, 0.0271268301, 0.1707301885, -0.1774170101, 0.1637758613, 0.0285243578, 0.0153923817, 0.3604576886, 0.3656588197, 0.3046256304, 0.0483876728, -0.1808128208, -0.0931407884, 0.1336424351, -0.1816184223, 0.213365823, -0.3849081993, -0.0144107938, -0.3852231801, -0.0799999759, -0.2602271736, -0.1229651272, 0.0932590812, 0.0460892059, 0.1697569489, 0.4013627172, -0.1205970347, 0.1332774311, 0.0645348504, 0.3940292597, -0.5741817355, 0.2775956988, -0.1454005539, -0.0851297677, -0.0152849406, 0.1977674812, 0.0863132179, -0.2329646349, 0.1167252138, 0.2829642892, 0.1624976993, -0.0122364908, 0.5958023071, -0.2751283944, 0.1441284418, -0.2933014929, 0.0742354617, -0.0074063092, 0.1238602549, 0.1390319169, 0.0064974301, 0.1745623052, 0.0916067511, 0.1102487445, 0.1289980859, 0.0054875389, 0.3452595472, -0.0348346457, -0.1165444329, -0.2764838338, 0.3460575938, 0.1868558377, 0.2750225961, -0.0800100565, -0.233537823, -0.247148633, -0.224796325, -0.0969629735, 0.0205951743, 0.1212186068, -0.3004143536, 0.2324628234, 0.1540484577, 0.363440454, 0.2016911507, 0.1185742468, 0.1071734279, 0.1104390621, 0.1724074632, -0.1105890274, 0.074938722, 0.1939232945, 0.0081142634, 0.2232377231, -0.1277024448, 0.0503920838, -0.2690104842, -0.0030082539, -0.1563002467, 0.1812728643, -0.1465037465, -0.0971217602, -0.3710287809, -0.5473516583, -0.2929011881, -0.0843415856, -0.4625464082, -0.1980142891, -0.1817053258, -0.0270368848, 0.0327185616, 0.0591556802, -0.292427659, 0.1223865449, -0.1217256635, -0.119923152, -0.2157155275, 0.0569691472, -0.0498640463, 0.0278451592, 0.3217613399, 0.0231649466, 0.3310333192, -0.3448909521, 0.1146359444, -0.2824025154, -0.3251257539, 0.1471241266, 0.1241640523, 0.2616080046, 0.1532167494, 0.2105141878, 0.0722507462, -0.1196705848, 0.3903248012, 0.1341012716, -0.0772342607, 0.0079322159, -0.0552427471, 0.2397369593, 0.0300043821, -0.1942545325, -0.1402245462, -0.2553322911, -0.067769751, 0.0564311594, -0.0548762418, -0.0302679706, 0.2058978528, 0.3537765443, -0.5599407554, -0.0433564708, -0.0665354803, -0.3719190955, 0.3360432088, -0.2776236534, -0.2710165977, 0.3012786508, -0.2774114013, 0.5949879885, -0.1596418321, -0.4551081657, 0.1483637542, 0.0645554215, 0.1678710133, 0.2163108587, -0.1184492558, 0.0491825044, 0.0213146918, -0.0523298346, 0.0135794282, -0.0814724192, -0.3569484055, -0.0511716641, 0.5589962602, -0.0684973374, 0.07862892, 0.0684090927, 0.4786711931, 0.4028771818, 0.1334715635, 0.4516438842, 0.0872953907, 0.6159577966, -0.0439010672, -0.2505472302, -0.1680509746, 0.0329114497, 0.1802299023, 0.0468056798, 0.5635349751, 0.1887269914, -0.5760724545, -0.3702651262, -0.3555661738, -0.3124452233, -0.2666374743, -0.1730481386, 0.1711354554, 0.1012066305, 0.0234096795, 0.0597661063, -0.0263876915, 0.2043718398, 0.689804256, 0.0907158479, 0.0081736706, 0.0336519182, 0.3789702952, -0.708001852, 0.1770665348, -0.1999403834, 0.0263013653, 0.0229962617, 0.1276688278, 0.2167024165, -0.0187883209, 0.6216830015, 0.095330216, 0.041965656, -0.0486093163, -0.0291157737, -0.3157759309, 0.0924275368, 0.027822338, -0.0208458528, 0.1545672864, 0.5928750634, -0.3154578805, -0.1971944571, 0.1752248406, 0.1359915733, -0.2190580964, -0.2317586839, -0.3073808253, -0.2623603344, -0.1213848591, -0.3269086182, -0.2211966813, 0.3113206029, 0.4118065834, -0.1419181675, 0.1385831684, 0.15231812, 0.0619499199, 0.0166476034, 0.272129178, 0.1267291754, 0.2077228427, 0.4207656682, 0.283677578, 0.2216935009, 0.6485926509, -0.2784498632, -0.5561392307, -0.1726402342, -0.0462087691, 0.0759329721, 0.2549338937, -0.1942780167, 0.0927218497, 0.2109365165, 0.2335278243, -0.3187154531, 0.1677997261, 0.4247698486, -0.0356994718, -0.2502808273, -0.2213528752, 0.1825155616, -0.0822797045, 0.0254881829, 0.6119912863, 0.2791707814, -0.0188059639, -0.0784473643, -0.1266103834, 0.9042647481, -0.2687932551, -0.1294873655, 0.4073124826, -0.1276656687, 0.2972316146, 0.154027164, 0.1268143654, -0.0180851743, 0.2190381438, -0.029741589, -0.0342444032, 0.1612791419, -0.0748636127, -0.0664102286, 0.3986873627, 0.1374393106, -0.199511528, -0.1338720918, 0.0169898123, -0.0966546983, 0.1677269787, -0.1297185719, 0.1063559875, -0.0125415605, 0.7009763718, -0.1536020041, -0.1957853287, -0.2491742224, -0.1173383817, -0.1056029424, 0.0045501068, -0.1956382245, 0.0213315003, 0.0547734275, -0.518883884, 0.0887024105, 0.1006742418, -0.0801488012, -0.1125143319, -0.4400894642, 0.2601294816, -0.2693246901, -0.3994055986, -0.0319329351, 0.0987918675, 0.2109644413, -0.000694409, -0.1603874117, 0.0480662733, 0.0254750885, 0.0005277619, 0.2996790409, -0.0604756288, -0.1382232606, -0.0428050421, -0.1881848276, 0.0786638856, 0.1960265189, -0.1662228405, 0.1293877214, 0.2950852513, -0.1340366155, -0.3536819816, 0.1474449188, -0.1143754348, 0.0568104424, 0.4100631475, -0.2306812108, -0.3865357041, 0.1940339059, 0.3112264872, -0.1955406368, -0.1101503521, 0.2158872634, 0.0721121058, -0.5249447227, 0.0313302204, 0.1951514333, 0.4888617992, -0.0043638162, -0.0386482589, 0.2547049522, -0.7374969721, -0.1480493844, -0.3607776165, -0.2593631744, 0.2665597796, -0.1515924335, 0.060785491, -0.1825423986, -0.0384751484, 0.2826071978, -0.0899169222, -0.235411182, 0.201967448, -0.1939249039, 0.0402216129, 0.2166127414, 0.1754214615, 0.1277012229, 0.0524839424, 0.0962223783, -0.1248776838, -0.3624167144, -0.1364047229, 0.033714816, 0.1087866426, -0.0152023844, -0.1299054921, 0.034942735, -0.1888577789, 0.0385433733, -0.1587519497, -0.1408677101, 0.2055957615, 0.1142647266, -0.1182226166, 0.1314355135, -0.0177491046, -0.3116678596, 0.3304664195, 0.1340046078, 0.2897087932, 0.2980368733, -0.1655777842, -0.1955423504, -0.0302409008, -0.1134230047, -0.0098797306, -0.0035834275, -0.1396650374, 0.3032435477, -0.0385257825, 0.0621066391, -0.0363337025, 0.1861914545, 0.085851334, -0.1964637339, 0.304249078, 0.4258559048, 0.0797968134, -0.3316408396, 0.1336798072, 0.1483485699, 0.0621007457, -0.0390260629, -0.1588809937, -0.2443134189, 0.1653005183, 0.0001058392, 0.0717248395, 0.2031350881, 0.1051308215, 0.3249287903, 0.4476819634, 0.2443680763, -0.0635731742, 0.2858735323, 0.1709221154, 0.0429592282, 0.4747557342, -0.1251418144, 0.373691082, -0.6186769605, 0.3184232414, -0.0067496412, -0.4154497385, -0.0951472148, 0.1269232333, -0.0572545789, -0.1609792113, -0.1594771594, 0.3915154934, -0.1774332821, 0.1014193892, -0.1726039946, 0.0407883488, 0.008249538, 0.0605957881, 0.1344086975, -0.3056889176, 0.0596010387, -0.0243144594, 0.2929194868, -0.324605912, -0.1594112515, 0.1317431033, -0.1052238494, -0.1515740156, -0.2282683551, 0.1309054494, -0.0233431347, 0.0086625963, 0.1606982648, 0.2212689966, 0.0177660584, -0.0087292604, 0.2035348713, 0.3928326964, 0.0582293458, 0.0500925332, -0.1159052551, -0.1569762081, -0.0361395441, 0.0364917144, 0.2557412386, 0.0382202677, 0.0677730516, 0.338904202, 0.1214956418, -0.1665449739, -0.2820748091, 0.0614656806, 0.2272480577, -0.2657391429, 0.5067767501, -0.5798207521, -0.0198485777, -0.21295017, -0.0859587267, -0.531712532, 0.5941919684, 0.2756082118, -0.3396126628, -0.1432624161, -0.1595932394, 0.0406142995, 0.0290217511, 0.4412977695, 0.381544441, 0.4354864657, -0.2590342462, -0.5794155598, -0.6965134144, 0.1823438108, -0.1787940264, 0.0366054922, -0.0486076511, 0.0823876932, -0.1335339397, 0.3341452777, 0.3072037101, 0.0891760811, 0.3979132771, -0.0584488064, -0.0807563663, -0.1679406166, -0.1781062186, -0.0150631024, -0.1068007797, -0.1711031049, 0.0387678407, -0.4375109673, -0.0356995948, 0.1228634715, 0.1446997672, -0.1124496162, -0.0667093694, 0.4605040848, -0.0549263135, 0.2260178179, 0.0524840429, -0.0462033674, -0.1338000596, -0.2298381031, 0.2762642503, 0.0127297156, -0.015146723, -0.020366542, -0.261490643, -0.2483703196, -0.2103631645, 0.4305932522, 0.123595953, 0.2976340652, 0.0021887347, 0.0183614418, -0.0310732946, -0.0940474123, 0.2442737222, -0.0527428165, -0.1662694812, -0.0464555621, -0.1476932317, -0.1338104159, 0.6335505843, -0.3730257452, 0.1740247309, -0.1673173457, 0.0666934922, 0.0493964106, -0.208042562, -0.7280302048, 0.2806949615, 0.3322631717, 0.3692110181, -0.1336748898, 0.1337774247, -0.231056273, -0.0583753102, 0.1305672526, 0.0492011383, -0.0403045192, -0.0162085481, 0.1304629147, 0.0073383376 ]
https://github.com/huggingface/datasets/issues/2707
404 Not Found Error when loading LAMA dataset
@stevhliu @albertvillanova updating to the latest version of datasets did in fact fix this issue. Thanks a lot for your help!
The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download: Steps to Reproduce: 1. `from datasets import load_dataset` 2. `dataset = load_dataset('lama', 'trex')`. Results: `FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py`
21
404 Not Found Error when loading LAMA dataset The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download: Steps to Reproduce: 1. `from datasets import load_dataset` 2. `dataset = load_dataset('lama', 'trex')`. Results: `FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py` @stevhliu @albertvillanova updating to the latest version of datasets did in fact fix this issue. Thanks a lot for your help!
[ 0.0579445064, -0.2256723195, -0.0337309241, 0.6018184423, 0.3969443142, 0.1228494644, -0.0771399885, 0.3927092552, -0.428257823, 0.2528082728, -0.3340739906, 0.1994090974, -0.1437427104, -0.263453275, 0.0329602435, -0.3631293178, -0.1055586338, -0.0356406756, -0.1782314479, 0.1402930021, -0.0773814172, 0.3491838872, -0.1713869274, 0.1461029798, 0.0305644646, 0.1640697867, -0.1523553729, 0.2818205059, -0.1676368117, -0.3405279815, 0.4034927487, -0.1659759581, 0.2667888999, 0.7545294762, -0.0001155138, 0.1582778096, 0.2871519625, -0.1801172048, -0.2258956283, -0.3208478689, -0.2181343287, -0.0076234378, 0.0299344063, 0.0575378388, -0.3109138608, -0.0250620823, 0.0147863496, -0.1243567169, 0.0784541965, 0.2548891604, 0.1996643245, 0.5669786334, 0.1579414457, -0.2838997543, 0.1210881025, -0.1600349545, -0.1550653875, 0.6935016513, 0.1979851723, 0.5019050837, 0.1076983586, 0.4367839396, 0.0512145534, -0.0000366159, 0.1703887582, -0.1627651304, 0.3027931452, -0.3620832264, 0.2260490805, 0.3412950635, 0.4112471938, -0.089561522, -0.3002088368, -0.2041230798, 0.0630144626, -0.104764089, 0.2831819355, 0.2124737203, -0.2709572017, 0.2240065932, 0.0596978478, -0.3989563882, -0.0375752747, 0.2220339477, -0.0665909797, -0.3245235384, -0.2249277532, -0.0477191545, -0.0698754489, -0.1235076487, -0.1092796698, -0.0962814018, -0.0449427515, 0.4012904465, -0.2000895143, 0.0081393719, 0.0980036706, 0.1805594712, 0.071898073, 0.2427892387, -0.0923173353, 0.1385721266, -0.4070574045, 0.0528270639, 0.2572008073, -0.0139706694, 0.0244920924, 0.012990389, 0.1060973778, 0.5729392767, 0.1416835338, -0.0277774259, -0.365508616, -0.4114146829, -0.4233095944, 0.0277434029, 0.3314835429, -0.2584204078, -0.1657229364, -0.2332687229, -0.1796721965, -0.1320351511, 0.3118084669, 0.4670642316, 0.0070981979, 0.1362684816, -0.1949961185, 0.114386633, -0.0724024028, -0.1776787639, -0.2421127856, 0.0321826637, -0.2401954532, 0.1697181016, 0.1667342782, -0.7531402111, 0.3183697462, -0.2839642763, -0.149849847, -0.0083346739, 0.0144484416, -0.0589310899, -0.0803301185, 0.2743907273, 0.0371799767, 0.0159661025, -0.1051174998, -0.1115519106, -0.1097051874, 0.0255913474, -0.2360405922, -0.2386389226, -0.0429683328, 0.0918831751, -0.0386211686, 0.2000918537, 0.0625080615, 0.1967735142, -0.2370225489, -0.1061926559, -0.0301954933, 0.1145454645, -0.0816157535, -0.1677070707, 0.4616362751, 0.5593078136, -0.2058154345, -0.024667494, -0.0757973865, -0.4332315028, 0.0128626451, 0.2552057505, -0.0984491259, 0.3181888759, -0.535184145, 0.0659501553, 0.3240578473, -0.3493839502, -0.2325603664, -0.0395771563, -0.0958141685, 0.0048001707, 0.0316048712, -0.2354945838, -0.0602967106, -0.093640089, 0.4298357964, -0.0275842976, 0.1246360913, -0.2872691453, -0.1498779207, -0.1584852338, -0.0458615124, 0.0432470962, 0.106976822, 0.048439499, 0.1735409349, -0.1535308957, 0.1848179847, 0.0487172753, 0.0185189843, 0.3353231251, 0.319955647, 0.2681530118, 0.0523092449, -0.1446801424, -0.1134745777, 0.164201051, -0.1607919931, 0.2338317037, -0.3601340055, -0.0121704116, -0.3953312039, -0.0618147217, -0.2387169451, -0.145947367, 0.1087272614, 0.0498260036, 0.1492775679, 0.4205014706, -0.1292726845, 0.1097557321, 0.0478615612, 0.382483691, -0.5560263395, 0.2685635686, -0.1329844743, -0.0726377815, 0.0431462824, 0.1757275015, 0.0637689531, -0.2454117239, 0.0792406797, 0.2824501395, 0.1595966816, 0.005704347, 0.5873304605, -0.2710195184, 0.1232920066, -0.3047973812, 0.0646834075, 0.0044438485, 0.1039257199, 0.1204294562, 0.0022748178, 0.2172101587, 0.1170867085, 0.0793342292, 0.1173365116, 0.0420593917, 0.359328717, -0.0393533744, -0.0884054378, -0.2660074532, 0.3219717741, 0.199539125, 0.2781039476, -0.0838951319, -0.260507226, -0.2462643385, -0.2269673795, -0.0955891386, 0.0221515484, 0.1218471602, -0.3248013556, 0.2021925449, 0.1915890574, 0.3560810685, 0.1836344451, 0.1089358777, 0.1458858848, 0.1345483512, 0.1329139471, -0.1289664805, 0.062039718, 0.1720374525, 0.0370385014, 0.1893454492, -0.1400745213, 0.0406123959, -0.3171598613, -0.0203470439, -0.1183289737, 0.1915404201, -0.1601588726, -0.1411345601, -0.3798511028, -0.5577108264, -0.2689436376, -0.0469793528, -0.451985985, -0.2289760709, -0.1617726684, -0.0296157431, -0.0148884356, 0.0779268518, -0.3301407099, 0.1626655757, -0.0876997933, -0.0723213553, -0.2258995771, 0.0785861462, -0.0488438606, 0.0400497019, 0.3276126683, -0.0029400513, 0.3127987087, -0.3487845957, 0.1278116256, -0.2811444998, -0.3291569948, 0.1592873335, 0.1283324212, 0.2206984311, 0.1335713118, 0.2108576, 0.0832080394, -0.1141857058, 0.3580520451, 0.0815689638, -0.0978446156, 0.0026842207, -0.0238125697, 0.2314572781, 0.0320732221, -0.2025595605, -0.1074044332, -0.2520038486, -0.068523936, 0.049398236, -0.0499443263, 0.0068831705, 0.1808726043, 0.3758723438, -0.5315434337, -0.0625069663, -0.0959484577, -0.4061951041, 0.3328713179, -0.294560045, -0.3111499846, 0.3056971431, -0.264101088, 0.5637585521, -0.1587352753, -0.465562731, 0.1995112896, 0.0502377525, 0.1819998622, 0.2339468151, -0.1430174708, 0.0354514606, -0.0009083822, -0.0746006966, -0.0022467524, -0.0792548805, -0.3318120241, -0.0562986471, 0.550948441, -0.0979866832, 0.0411273427, 0.1134247854, 0.4031956494, 0.3871583045, 0.1285029948, 0.4658760726, 0.106872268, 0.6118929982, -0.047218699, -0.2056024522, -0.1198547632, 0.0198167264, 0.1720660031, 0.0831650347, 0.5636383295, 0.1724128574, -0.5466659069, -0.3913593292, -0.303663671, -0.3372726738, -0.2823138833, -0.2080496401, 0.1505241692, 0.100394249, 0.0266426802, 0.0706412792, -0.0146529749, 0.2296505272, 0.6586834788, 0.0853423178, -0.0068984926, 0.0241846219, 0.4207143188, -0.7590504885, 0.1812452376, -0.2369687259, 0.0642023236, 0.0293872505, 0.1057671905, 0.2163590342, -0.0039228126, 0.6508569717, 0.1021029577, 0.100489974, -0.0330601074, -0.0383406989, -0.3130973577, 0.0892240703, 0.0177641809, -0.0205391757, 0.1522286236, 0.6132919788, -0.2646583319, -0.2038003802, 0.1580059528, 0.1116835177, -0.198992312, -0.2295608222, -0.2762852907, -0.2647716999, -0.12348333, -0.3163938522, -0.2108533978, 0.3021586835, 0.4022409022, -0.127083078, 0.1152560189, 0.1207248345, 0.0784331113, 0.0421375185, 0.2388519347, 0.1956625432, 0.2288535833, 0.4308678508, 0.2876802385, 0.2100603282, 0.6384991407, -0.2398590446, -0.5860434175, -0.1227776259, -0.0511287823, 0.0698188245, 0.2586885691, -0.21006836, 0.085863702, 0.1925001293, 0.2209433913, -0.3436311483, 0.225848943, 0.4244187474, -0.0344653167, -0.2482136637, -0.208871454, 0.1694018692, -0.1192338914, 0.0178051591, 0.5995392203, 0.2700916529, -0.0264408924, -0.0489985198, -0.1091580093, 0.8627341986, -0.3173602819, -0.143060863, 0.3974967003, -0.1369400173, 0.2823213339, 0.2000728846, 0.1165137142, -0.0252036005, 0.1742733717, -0.0170884691, -0.0182443708, 0.1442666054, -0.0740380883, -0.028407298, 0.3510404825, 0.129425779, -0.2327613831, -0.1022558361, 0.03417667, -0.0630758554, 0.145724684, -0.1192373857, 0.1204877794, 0.002340788, 0.6824352145, -0.1257651299, -0.1849945486, -0.2092806101, -0.0909754038, -0.1011132672, 0.0343019813, -0.1515927613, 0.0298924297, 0.0362039246, -0.4707593322, 0.1246275306, 0.1019477546, -0.0547828339, -0.1186410189, -0.4549557269, 0.2834396362, -0.2564651072, -0.3910733461, -0.0325380601, 0.1019546986, 0.2347438484, 0.0108646378, -0.1453995407, 0.0658001974, 0.0513235889, -0.0076989606, 0.2702141404, -0.0834150165, -0.1498306841, -0.0395019352, -0.1611670107, 0.0572363921, 0.1878028065, -0.194608748, 0.1414126456, 0.2921891212, -0.1358780563, -0.3849092424, 0.1558652669, -0.1216332391, 0.0463037826, 0.4255720973, -0.242482394, -0.3623391986, 0.1913565844, 0.3384471834, -0.1666398048, -0.1054475307, 0.2395016849, 0.1063623279, -0.5258744955, 0.0544810593, 0.1539384872, 0.4710282087, -0.0193927754, -0.0037686378, 0.2319386303, -0.7504907846, -0.109141998, -0.355294615, -0.2899659276, 0.2494614273, -0.213390857, 0.078501761, -0.1959083974, 0.0190291144, 0.2596182525, -0.0680847019, -0.2487383187, 0.214053914, -0.2045213729, 0.011654472, 0.162992388, 0.1818400174, 0.1322844774, 0.0485196672, 0.1022283435, -0.092801787, -0.3593688011, -0.1395339221, -0.0055818669, 0.0957578868, -0.0088077048, -0.1100880727, 0.0497742184, -0.1750459969, -0.0145620471, -0.1571631134, -0.1505519152, 0.2373259217, 0.1356774569, -0.1125288606, 0.1605957448, -0.0496462733, -0.2892831564, 0.3091968298, 0.1557468623, 0.2655004263, 0.2623183727, -0.1723347008, -0.2354275882, -0.0431110412, -0.1349601001, 0.018605534, -0.0405652262, -0.1381247938, 0.2875160277, -0.0203584842, 0.0428123474, -0.0327242985, 0.2053016722, 0.0751458555, -0.1998060942, 0.2819978595, 0.4231080711, 0.0853480771, -0.3414818943, 0.1376574785, 0.1228300184, 0.057786312, -0.0528534614, -0.1804599762, -0.247385174, 0.1940376312, -0.0186296329, 0.0420612022, 0.2001722604, 0.1539036483, 0.3345660269, 0.4152138233, 0.236295253, -0.0660928339, 0.3193455935, 0.1658211499, 0.0652546287, 0.4929677248, -0.1017903984, 0.3545521796, -0.6261973381, 0.3119463027, 0.0161278173, -0.4276146591, -0.0734483451, 0.1491998881, -0.0892677754, -0.1475450993, -0.1491673142, 0.407573849, -0.1782060117, 0.0909320414, -0.1822095811, 0.039820198, 0.0078869686, 0.0420842133, 0.1249309033, -0.3194995224, 0.0690995306, -0.0104815364, 0.2825874388, -0.3300528824, -0.1321211159, 0.1035323068, -0.1019437462, -0.154300198, -0.2264276743, 0.1020384133, -0.0165676065, 0.0065341443, 0.1416331977, 0.1948203892, 0.0223912187, 0.0422548726, 0.1814017147, 0.3701476157, 0.025251843, 0.0633056462, -0.1117470041, -0.1309586465, -0.0337582044, 0.041667223, 0.2496415377, 0.0743030235, 0.0741263032, 0.3713852167, 0.1213887855, -0.1566478312, -0.2803473473, 0.0927969366, 0.2560228109, -0.2445174903, 0.4824367762, -0.5761265159, 0.0055790395, -0.1850953102, -0.0921315551, -0.4762138724, 0.5811575651, 0.2458812296, -0.3841916025, -0.1372477561, -0.1609368771, 0.0534714386, 0.0109030567, 0.4640229344, 0.3801370859, 0.4002387822, -0.2473381311, -0.5967437625, -0.7138708234, 0.2029968947, -0.1287074834, 0.014065288, -0.0168938804, 0.0979117453, -0.1094400734, 0.321193397, 0.2787207067, 0.0909257457, 0.3800650835, -0.0781402215, -0.0895388871, -0.155994311, -0.20072788, -0.0063409582, -0.1218643636, -0.1536652744, 0.0666206926, -0.4474487901, -0.0313926972, 0.1314274669, 0.1380232573, -0.1137945801, -0.0584909506, 0.4580972195, -0.0454886109, 0.2134416103, 0.036204651, -0.0344389267, -0.1763319969, -0.2321973741, 0.2459511161, -0.0233409926, -0.0381549746, 0.0040173307, -0.2301500738, -0.2383050472, -0.2027831078, 0.4307764769, 0.1455104947, 0.29889974, -0.0486849174, 0.0791120082, -0.0278556272, -0.0889399573, 0.2718876302, -0.0235654376, -0.1776830554, -0.0572469085, -0.1270518899, -0.1526108682, 0.642346859, -0.3883255124, 0.1675480008, -0.1507977545, 0.0455479361, 0.0417215452, -0.2181848437, -0.7388225198, 0.2959374487, 0.3184673488, 0.3756459653, -0.1593203545, 0.1444538385, -0.2346395999, -0.0697993115, 0.137453109, 0.0760500133, -0.0325058997, -0.0383272059, 0.1242023408, -0.0154378861 ]
https://github.com/huggingface/datasets/issues/2705
404 not found error on loading WIKIANN dataset
Hi @ronbutan, thanks for reporting. You are right: we have recently found that the link to the original PAN-X dataset (also called WikiANN), hosted at Dropbox, is no longer working. We have opened an issue in the GitHub repository of the original dataset (afshinrahimi/mmner#4) and we have also contacted the author by email to ask if they are planning to fix this issue. See the details here: https://github.com/huggingface/datasets/issues/2691#issuecomment-885463027 I close this issue because it is the same as in #2691. Feel free to subscribe to that other issue to be informed about any updates.
## Describe the bug Unable to retreive wikiann English dataset ## Steps to reproduce the bug ```python from datasets import list_datasets, load_dataset, list_metrics, load_metric WIKIANN = load_dataset("wikiann","en") ``` ## Expected results Colab notebook should display successful download status ## Actual results FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.1 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0
94
404 not found error on loading WIKIANN dataset ## Describe the bug Unable to retreive wikiann English dataset ## Steps to reproduce the bug ```python from datasets import list_datasets, load_dataset, list_metrics, load_metric WIKIANN = load_dataset("wikiann","en") ``` ## Expected results Colab notebook should display successful download status ## Actual results FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.1 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0 Hi @ronbutan, thanks for reporting. You are right: we have recently found that the link to the original PAN-X dataset (also called WikiANN), hosted at Dropbox, is no longer working. We have opened an issue in the GitHub repository of the original dataset (afshinrahimi/mmner#4) and we have also contacted the author by email to ask if they are planning to fix this issue. See the details here: https://github.com/huggingface/datasets/issues/2691#issuecomment-885463027 I close this issue because it is the same as in #2691. Feel free to subscribe to that other issue to be informed about any updates.
[ -0.1983267367, 0.0143740028, 0.002106335, 0.2360560298, 0.0338600874, 0.0631660745, 0.0542529933, 0.1971949935, -0.0232600905, 0.1844016463, -0.1990167499, 0.348231703, 0.1889101416, -0.035204798, 0.1387398243, -0.251796484, 0.0296934247, 0.2635378242, 0.0581072457, -0.097588934, -0.2116294205, 0.1820753068, -0.403183639, 0.2455022037, -0.1433737576, -0.0048096413, 0.0279011428, 0.10996034, -0.3365814984, -0.2690232992, 0.3799153566, -0.2225336283, 0.3279035389, 0.6063833833, -0.0001109609, -0.0759147853, 0.4458806515, 0.100009568, -0.3918361664, -0.4055828452, -0.4237226844, -0.0974915624, -0.0088992417, -0.2199467719, -0.0336324088, -0.3518977463, -0.0263601132, 0.046449095, 0.1087758988, 0.4080131054, 0.2161210477, 0.3451710045, 0.1994795501, -0.0758987516, 0.1112230271, -0.204180181, -0.2938868999, 0.2485882342, 0.3716219664, 0.0193182006, 0.2147424221, 0.4076724946, -0.0129354075, -0.1191934496, 0.0002608197, 0.0962103754, -0.2352771163, -0.3271324337, 0.1940367967, 0.4193383455, 0.7381361127, -0.0773250908, -0.316558063, -0.1083423719, 0.1998565644, -0.1682267487, 0.2259472609, -0.0250786878, -0.1283593774, 0.2104653418, 0.1944335848, -0.369530201, -0.150336504, 0.2880274057, -0.0677541047, 0.6986855268, -0.0293511059, 0.01861866, -0.1005322635, -0.2014935017, 0.6673567891, -0.0795007348, 0.1071670577, 0.0952382982, -0.1010596305, -0.0074739009, 0.0782537162, 0.2704425454, 0.0974570364, -0.5342891812, 0.0890704691, 0.0713902041, -0.1726490855, 0.1293272972, 0.0966727361, 0.4672059119, 0.1136366427, 0.0596064925, 0.3231090009, 0.5634958148, -0.0561735816, -0.0862276107, -0.2202481776, 0.0366756991, 0.0765395314, -0.1212231889, 0.2347898781, -0.2797555327, -0.1778752506, 0.1110152155, 0.010496676, -0.1117839441, 0.1340747476, 0.3343396783, -0.0520977378, 0.4685734808, -0.1090252623, -0.0353922322, -0.2961292267, -0.0141347125, -0.1227808595, 0.2299462557, -0.2976324558, -0.0304368343, 0.0177038759, -0.0002730321, 0.374561131, -0.1093472093, 0.2685654461, -0.0799268782, 0.0472407416, -0.0589806512, -0.1680404991, 0.207296893, 0.185645923, 0.0938890874, -0.0393016972, -0.5908216834, -0.0037347674, 0.250028342, -0.5024210811, -0.1110801101, -0.3087926805, 0.2074564099, -0.0394151025, -0.0953390673, -0.2219096124, 0.0893995017, -0.125256449, -0.2733160853, -0.0483466201, -0.1564323008, -0.0715265423, -0.0714867562, 0.0706885904, 0.154029727, -0.3954987526, -0.0663117766, -0.0150680915, 0.0924510658, 0.0102315284, 0.2509194016, -0.2897427976, 0.1805296391, -0.4087098539, 0.299485743, 0.4748591781, -0.6277829409, -0.4702950716, -0.155185014, -0.2183939815, 0.1764795631, -0.1732214093, -0.139721334, 0.0623197258, -0.0246239714, 0.3741481304, 0.2529843748, 0.1814845353, -0.1765974462, -0.3372805715, -0.2627295256, -0.1873213947, 0.0544970632, 0.2701176703, -0.096578598, 0.2220109701, 0.0977880657, 0.2185597867, -0.3049598038, -0.0352812707, 0.3708951771, 0.2777453959, 0.00297511, 0.0427018628, -0.1631828249, -0.2401777506, 0.2356497645, -0.0651695579, 0.2263507694, -0.1303497851, -0.1732662022, -0.5030008554, 0.0282154754, -0.4124867022, 0.0118030868, 0.2027695328, 0.0639733002, -0.095189102, 0.3821223378, -0.1254786253, 0.0553834364, -0.0648607984, 0.0590662211, -0.1425854862, 0.3004009426, -0.2772374749, 0.052143652, 0.0099655017, 0.3502001166, 0.3246396184, 0.0650506616, -0.0587191619, 0.1411346048, -0.2738317251, -0.0084212646, 0.6433115005, -0.0843107849, 0.2559206784, -0.4660769105, 0.218695119, 0.0654228777, 0.1841394305, 0.0361101478, -0.0412483886, 0.2195617259, 0.2949725688, 0.1033337861, 0.1645793617, 0.0750197396, 0.392426908, -0.20228903, 0.047702983, -0.3806104064, 0.1593784541, -0.2764976025, 0.1574201584, -0.1935888529, -0.2063790262, 0.2418933362, 0.4138445258, -0.2443424612, 0.2266422808, 0.1589666009, -0.2687548995, -0.0573767275, 0.2165175378, 0.359372735, 0.3308874369, 0.1574572176, 0.3751511574, 0.0756047815, -0.0619224757, -0.0286792014, 0.2185886204, -0.0385723114, 0.1342402399, 0.2594103515, 0.2180501223, 0.0059734285, -0.3377843499, -0.2373339087, -0.149636507, 0.2096709311, -0.04744827, -0.0373309068, -0.2840379477, -0.239445895, -0.0997331887, -0.1130307913, -0.1936636567, -0.4324690998, 0.0376592875, 0.0136794215, 0.1823807359, 0.1621532738, -0.1680107862, -0.0975626707, -0.0643111393, -0.1069128737, -0.3256934285, -0.0213217642, -0.4002250731, 0.0550167561, 0.1399589628, 0.0118892938, 0.04373575, -0.4289548397, 0.044494316, -0.3928018808, -0.4904255867, 0.3152220845, -0.0062969555, 0.391544193, -0.074370116, 0.226778388, -0.0817345455, -0.1939723045, 0.2416510433, -0.3259669244, 0.0569710955, -0.0268683173, -0.0811775252, -0.0201233048, 0.1438263655, -0.2476805449, -0.3624426126, -0.0988983363, -0.3223588169, -0.113025561, -0.0283179134, 0.1663842201, 0.0870399028, 0.2570314407, -0.0655414164, -0.197817564, -0.2999258339, -0.2391168475, 0.4530377686, -0.2117199302, -0.2243974507, 0.2539778948, -0.1193231195, 0.2886127234, -0.2418438494, -0.5117619038, -0.4658147097, -0.0748426542, 0.4123665094, 0.0936155766, 0.0990670696, 0.2016836852, 0.0559697635, -0.0554730631, -0.0769424289, -0.1939580441, -0.3744461238, 0.0871131793, 0.4336406291, -0.0294840913, 0.0110899005, 0.0580507815, 0.4314293265, 0.1037611365, 0.3736897409, 0.4079245031, 0.0739921033, 0.4846550226, -0.1832889616, -0.179547146, -0.0045608468, -0.1673390567, -0.1842821538, 0.1388659477, 0.3608131707, -0.4884894192, -0.3888808787, -0.2070568949, -0.5439021587, -0.2546105385, -0.2533851564, 0.3486427367, -0.0121649224, 0.277934581, 0.0811955482, -0.1389021873, -0.1706610769, 0.0334693082, 0.4500011206, -0.1177516431, 0.0116630718, -0.3267324865, -0.0038246252, -0.5948860049, 0.1245975122, -0.0487173609, 0.4634474218, 0.0193506107, 0.164951548, 0.1243018061, -0.139349848, 0.1326628923, -0.5171252489, 0.0715033635, 0.0174522772, 0.29447487, -0.1008058339, -0.0299444385, -0.1241523772, -0.0218144655, 0.0883307159, 0.3394629359, -0.1961774826, -0.0545371585, 0.4282604456, 0.3095887899, -0.0725228414, -0.0278758463, -0.2378899157, -0.6871276498, -0.0488941297, -0.1485821903, -0.0068680719, 0.1395155638, 0.0660221353, 0.0056038424, 0.0002003461, 0.1595855653, -0.0128869079, 0.2413859963, 0.1181755513, 0.1687465012, -0.0836928859, 0.0870018601, -0.0382890105, 0.2488381714, 0.4720656872, -0.1361255795, -0.5144051313, -0.2439080477, -0.0887473673, 0.059064243, 0.2464937866, -0.1293630302, -0.2327952385, 0.0409936756, 0.1670072526, 0.1961421371, 0.2150183916, 0.3455320001, 0.2300858498, -0.5121198893, -0.0948594585, 0.3955668211, 0.0403896496, -0.0215681866, 0.4098519385, 0.1562864333, -0.2189685255, 0.1863829046, -0.0732671544, 1.0719256401, -0.0911127478, 0.2113977522, 0.3607044816, -0.169021219, 0.0808519572, 0.0697211996, 0.0989097059, -0.1443688869, -0.2136266232, -0.1377221942, 0.049316749, 0.013337303, -0.2496158779, -0.1779060662, 0.4681977928, 0.0500931591, 0.2999770641, 0.374335438, 0.2124055028, -0.1332146674, -0.0835405365, -0.1145631447, 0.1167286262, -0.1161135584, 0.1636294723, -0.27457726, -0.0361179225, -0.0691801012, -0.1278302073, -0.2191943079, 0.1846354902, -0.2150386125, 0.0012129843, -0.2951924503, -0.6971201897, -0.0881367773, 0.4381737411, -0.0814207345, 0.1437570155, -0.3321284056, 0.3885341585, -0.1205437034, 0.0194389671, 0.0433054157, -0.4239303768, 0.0485431328, -0.0740095526, -0.4560860991, 0.0465346724, -0.0023857318, 0.0868269354, -0.1821137965, 0.0933426246, 0.0025489973, -0.0098117366, -0.103537716, 0.1148667783, 0.1216752976, -0.4113836884, 0.1354813725, -0.1152538806, -0.0680665448, -0.0492677018, 0.2187407762, -0.2328512967, -0.0105874101, 0.2659333646, 0.0526384488, -0.170301199, 0.235635832, 0.0302282274, -0.2531353831, -0.1517297328, 0.0054126978, -0.1749427319, -0.3292524815, -0.1728735119, 0.0499939546, 0.070730567, -0.2453926355, 0.2282731682, 0.1984297931, -0.2476925999, -0.1196610034, -0.4557780027, -0.0702853724, 0.2636733651, 0.0156579558, 0.1252758801, 0.0351104885, -0.1545598954, 0.0171416104, -0.1899530292, -0.3249896765, 0.1302815527, -0.172617048, -0.1002454162, -0.0611153878, -0.0010172115, 0.2794391215, -0.0123638995, 0.1607062072, -0.0685745552, 0.0506452732, -0.1711771339, -0.04071825, 0.110102877, 0.139626205, -0.0997912586, -0.0133231021, -0.2990202606, 0.1617019922, -0.2171313763, -0.0183711648, 0.2007294744, 0.0666032135, -0.0076034851, 0.2076284289, 0.1514818221, -0.0018378124, 0.3704825938, 0.1704533249, 0.299570024, 0.0592879243, 0.0869315714, 0.147043556, 0.158534795, 0.2571716607, -0.1194193736, -0.1919035316, 0.4616598785, 0.3368366063, -0.3351194561, 0.1151585802, 0.1822769493, 0.1819806695, 0.2565378547, -0.2351098955, -0.1691007316, 0.3897416294, 0.2337059826, -0.4088405371, -0.270503819, 0.705108583, 0.1384464651, 0.0195325911, 0.1763791293, 0.1471142471, -0.1689490229, 0.0990508646, -0.0430022888, 0.4494204521, 0.1409200579, 0.2215244174, 0.2571348548, 0.0046804026, 0.1889475137, 0.2908561528, 0.0605816133, -0.0078085251, 0.5327871442, -0.0477702916, 0.3120152652, -0.0900692344, 0.5175080299, -0.3650616705, -0.1609177142, 0.1385194659, -0.2704820037, 0.0875791162, 0.0842292979, 0.0132958815, -0.1740366966, -0.0349227935, 0.1546516418, -0.170543775, 0.0971435308, -0.200571388, -0.0337069631, -0.1742655635, -0.3630827665, 0.3250047863, -0.0705804601, 0.0345460996, 0.0586422905, -0.2898459733, 0.1423873752, -0.0971455574, -0.0924589634, 0.0728589147, 0.3994549811, 0.1110662743, -0.0131528899, 0.3374660015, 0.3209855258, 0.2688961923, -0.3577323854, 0.3398108184, 0.3719189465, 0.1348429471, -0.2798981071, -0.0526650809, 0.024911128, -0.1245265752, -0.0772818699, 0.043801602, 0.1628824472, 0.0021942426, 0.2933053672, 0.1943156421, -0.2242335081, 0.3932962418, -0.0111731142, -0.0338104516, -0.0537444577, -0.4464102387, -0.0781538039, -0.0792447552, -0.3510480821, -0.0094353147, -0.2264388502, 0.6084111929, 0.4803209305, -0.1324384958, 0.0656327978, -0.147321105, 0.0700648129, 0.1007647216, 0.1866694987, 0.5567758083, 0.0488677286, -0.1949884742, -0.2805474997, -0.8394193649, 0.2146112025, -0.4184158146, -0.2192980051, 0.1283460706, -0.1578166485, -0.1890800148, 0.1042638868, 0.4804942608, 0.4738732874, 0.1469686925, 0.2053224295, -0.3954739869, -0.3286797702, 0.2986509502, 0.096193634, -0.0835273936, -0.2910257876, -0.0635524094, 0.0593115687, -0.0091488585, -0.0210535359, 0.0002323687, -0.2736735642, -0.4789515138, 0.6185746789, 0.2002343833, 0.1302378178, -0.2066408098, -0.2219354063, -0.0627421588, -0.2315330505, -0.0579641163, 0.2054091096, 0.127554968, 0.1005102023, -0.0311249215, 0.0066562444, -0.2374491841, 0.1402209699, 0.1548161209, 0.1914418489, -0.2015697658, 0.1249350086, 0.0730814487, 0.0456833132, 0.113853544, 0.3327821493, -0.1859225035, 0.2362199277, -0.0052301884, -0.4675924778, 0.4862318039, -0.0227632038, -0.3595175147, -0.0921955854, 0.1079109609, -0.0812977776, -0.1136265025, -0.1258212179, 0.150377959, 0.2672079504, 0.180695951, -0.2453929484, 0.1420569271, -0.0677607656, 0.1050695032, 0.0141629949, 0.4371633828, 0.1009188443, -0.2681318521, -0.0257534906, -0.0293719955 ]
https://github.com/huggingface/datasets/issues/2700
from datasets import Dataset is failing
Hi @kswamy15, thanks for reporting. We are fixing this critical issue and making an urgent patch release of the `datasets` library today. In the meantime, you can circumvent this issue by updating the `tqdm` library: `!pip install -U tqdm`
## Describe the bug A clear and concise description of what the bug is. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import Dataset ``` ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' --------------------------------------------------------------------------- NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt. To view examples of installing some common dependencies, click the "Open Examples" button below. --------------------------------------------------------------------------- ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: latest version as of 07/21/2021 - Platform: Google Colab - Python version: 3.7 - PyArrow version:
39
from datasets import Dataset is failing ## Describe the bug A clear and concise description of what the bug is. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import Dataset ``` ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' --------------------------------------------------------------------------- NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt. To view examples of installing some common dependencies, click the "Open Examples" button below. --------------------------------------------------------------------------- ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: latest version as of 07/21/2021 - Platform: Google Colab - Python version: 3.7 - PyArrow version: Hi @kswamy15, thanks for reporting. We are fixing this critical issue and making an urgent patch release of the `datasets` library today. In the meantime, you can circumvent this issue by updating the `tqdm` library: `!pip install -U tqdm`
[ -0.4085452557, -0.1528587192, -0.1239811629, 0.0641507953, 0.1121255979, 0.1035050005, 0.3430989087, 0.223898232, -0.1365937889, 0.0548988692, -0.0883902758, 0.2876404226, 0.0480185971, 0.0611999705, -0.1352101564, 0.0198291466, -0.055388391, -0.010933172, -0.333774209, 0.1266527921, -0.217322588, 0.3459282517, -0.3196711242, -0.0665073246, -0.2649057806, -0.2171354443, -0.0884473473, 0.2700228691, -0.0890710652, -0.3350606859, 0.0057385862, 0.140682146, -0.0379140601, 0.5401784182, -0.0001011049, -0.0078354552, 0.3128857017, 0.0935642272, -0.0844172388, -0.0710474178, -0.3134648204, -0.4694294035, 0.0806846991, -0.1916163117, -0.0022028685, 0.1091367081, -0.0123658367, -0.3157414794, 0.3191043139, 0.3372053206, 0.3364604115, 0.5836629272, 0.0019612312, -0.3067328036, 0.063069135, -0.3369418383, -0.1633456796, 0.286593318, 0.4009722769, -0.1956420243, -0.0135740712, 0.1969815791, -0.2139665931, 0.2128459811, 0.0626572222, 0.0328398421, -0.0416465923, -0.4304125905, 0.2624843419, 0.1870164722, 0.5149673223, -0.3271746039, -0.0373378471, -0.056867823, 0.0038167872, -0.2325151861, 0.2190863043, -0.0369224623, -0.1316184402, 0.2236548215, -0.0362172909, 0.0710482895, 0.052687481, 0.0384646915, -0.2217678577, -0.0460676216, -0.0829893947, -0.0408101529, -0.0412158258, -0.1363700777, 0.3713528514, -0.0078103673, 0.0284167286, -0.0238214061, -0.517770052, -0.0575566925, 0.3645916581, 0.0355683677, 0.0987450927, 0.0120878201, -0.0397549644, 0.1094592065, -0.0714506656, 0.310028702, 0.1683249772, -0.107332468, -0.0055002794, 0.0794887319, 0.2821150422, 0.1880703568, -0.216543898, 0.0819281787, 0.0630708337, -0.4723851085, 0.2384414971, 0.1042848378, 0.2806369066, 0.1072816774, -0.3729566634, 0.0452745967, -0.0440309532, 0.1376920342, -0.0906590819, 0.4109572172, -0.1091492474, 0.0150477998, -0.0427165255, 0.0600481331, -0.2108016908, -0.3220805526, -0.2802447379, 0.0243949927, 0.046337992, -0.1378920972, -0.0416074358, -0.1625706851, 0.2116594017, 0.0482911542, 0.1572290957, 0.0954247341, 0.1668868214, -0.2702957392, -0.057617493, 0.4077106416, 0.1926712692, 0.040989019, 0.2395564914, -0.0955690444, -0.0758201927, 0.0929861516, -0.2596943974, -0.1863330305, -0.0069955043, 0.3259137869, 0.1039610207, -0.2556676567, -0.0916619599, 0.1133574247, 0.0773156732, -0.1863558292, -0.0654878318, -0.2524959743, -0.0674691051, -0.3504024446, 0.0776728094, 0.5380798578, -0.4327086806, -0.0149557665, -0.1592623591, -0.107812725, 0.0124575421, 0.2770962715, -0.0810051858, 0.1695792079, -0.115996629, 0.0491241664, 0.2401680946, -0.3199148774, -0.3626368344, 0.0908698887, -0.3010792732, -0.0427358449, -0.1367132962, 0.0937211066, 0.295752883, -0.0094475597, 0.4482405484, 0.2462097555, -0.2692751586, 0.0903337672, -0.1365799755, -0.2909477651, -0.0536916479, 0.0469710827, 0.2362892926, -0.0899255276, 0.2524039745, -0.2295198441, 0.1484705806, 0.1339482367, -0.018707389, 0.3950464129, 0.3054834902, 0.036540132, -0.0323322192, -0.1834007204, -0.5057474971, 0.2498746514, 0.3089756966, 0.0818633586, -0.0234782472, -0.0089073256, -0.4486204982, 0.2037527412, -0.1624402851, 0.0956388712, 0.288228184, 0.0894584134, -0.2714309096, 0.0509769917, -0.247302264, 0.4360183477, 0.0321620628, 0.0869537294, -0.1087865382, 0.2889496684, -0.2754172683, -0.2581118941, 0.2147304863, -0.058009021, 0.2476531714, 0.0031079948, -0.0581928566, 0.3293103576, 0.0771940202, 0.2450994253, 0.1307125986, -0.0577198714, 0.1969686747, -0.2697574496, -0.0954551995, 0.0938058347, 0.1041570008, -0.0734271854, 0.0805767626, 0.1706541777, -0.21421507, 0.0104890168, 0.0348366201, 0.2288724035, 0.3592409492, -0.0549506508, -0.0541914105, -0.1366292536, 0.2221427709, 0.1184018403, 0.0125840828, -0.1474809647, -0.2470894754, 0.2493077666, 0.4901154339, 0.1015382707, 0.1599901766, -0.17559205, -0.2158997655, 0.0977210552, 0.1335700452, 0.3544577658, 0.4767529368, 0.2372667789, 0.1458981931, 0.1817167103, -0.0352559425, -0.2257146984, 0.0278197527, 0.2088332027, 0.0691447705, 0.1396366656, 0.2791811824, 0.057567779, -0.2701750398, -0.3984823227, 0.0493999124, 0.2347217351, -0.3226422668, 0.0203031674, -0.3022140861, -0.0669249147, -0.0339748934, -0.1841366291, -0.1792142987, -0.4988186061, 0.0177644175, 0.1733530164, -0.0362731628, 0.225477457, -0.0886928588, 0.0382604301, 0.158180058, -0.2342587411, -0.0838012844, -0.2235109061, -0.0858792365, 0.2016251683, 0.1225930601, 0.1275232583, 0.4814583659, -0.347361207, -0.0764091909, -0.3007541001, -0.2729535699, 0.1080876738, -0.1079415679, 0.5393429995, 0.1690940261, 0.1429462582, -0.1891464591, 0.0837830901, 0.2729691267, -0.2841292024, -0.0361447148, 0.1139920056, -0.0069275536, -0.1247010157, -0.0059447661, -0.2853996158, -0.2594162524, -0.5138936639, -0.1164918393, 0.0366632044, 0.0855602771, 0.2803021371, 0.1171811, 0.2591088414, 0.0950800329, 0.1597632766, -0.1573878229, -0.2747930586, 0.2889832556, -0.2669567466, -0.4839943349, 0.2523922622, -0.0436239094, 0.2488273978, 0.0183746517, -0.2916952968, -0.3475373089, -0.0735729411, 0.4598745108, -0.0146948993, 0.1394759119, 0.224224031, 0.1021412462, -0.248685956, -0.1503610909, -0.1936664879, -0.2438551337, 0.2690797448, 0.0429665111, -0.0695936605, 0.4731343985, 0.1293032765, 0.5410221815, 0.202891469, 0.1337266564, 0.3551775813, -0.313303709, 0.4701178968, -0.0137460567, -0.4632149041, -0.2093193978, -0.1566204727, -0.2196603566, 0.1839843392, -0.1219011694, 0.0083447937, -0.200832814, 0.0313073918, -0.3126891255, -0.2886298895, -0.1099267378, -0.0378075205, 0.2987926602, 0.1247180551, -0.0077967718, -0.1730636954, 0.0766291767, 0.0802609771, 0.3518161774, -0.3658191264, -0.2055611014, -0.0920200944, 0.039196942, -0.5612567067, 0.3142530918, -0.0376314446, 0.3010164499, -0.1695300788, 0.0466057509, -0.0210715532, -0.1367328167, 0.1865983605, -0.2707377076, -0.0610269271, 0.3763122857, -0.0375207141, -0.2834611833, 0.0316955745, -0.3035863936, -0.0872138813, 0.5882405639, 0.1496821195, -0.2319243252, 0.0843919814, 0.1798773259, 0.2301519215, -0.0485718735, -0.0306975506, -0.3578569889, -0.6081138849, -0.4169079661, -0.0317579322, 0.1946903914, 0.1478213668, 0.0366776958, -0.1218839511, -0.0814925879, -0.2642627358, 0.1014254615, 0.2987625599, 0.0152715296, 0.0514459684, 0.3791185319, -0.054598663, -0.3085268438, 0.455321908, 0.5644434094, 0.093586944, -0.3636812866, -0.0350370817, -0.0297743063, 0.1475266516, 0.1547470093, -0.1215576753, 0.0153697655, 0.0256636813, 0.1582841575, 0.3126121461, 0.0927453637, 0.3412408531, -0.02118841, -0.1041298807, -0.1698945761, 0.1131924167, 0.1280115396, 0.0611300617, 0.2848449349, -0.2390727252, 0.0123007484, 0.0189965814, 0.0477190465, 0.6743606329, -0.0058516208, -0.1335735321, 0.3497022092, -0.2442308664, 0.2312911451, -0.0070458949, 0.1458286792, -0.3999634981, -0.4180324376, -0.0113904029, -0.1408477724, 0.3766776919, 0.0181206279, -0.274949342, 0.2337260246, 0.0567080677, 0.1694546193, 0.0048252661, -0.0859136656, -0.1994824409, -0.2102618814, -0.3424761891, 0.2780532241, 0.0304984394, 0.1002309322, -0.2302434444, -0.0756509826, -0.0022720918, -0.1145535558, -0.2208562195, -0.0430642962, -0.3907534778, 0.1365593821, 0.1541352421, -0.1798409224, 0.0128814131, -0.0068836659, 0.1035199091, 0.0739508644, -0.1130788997, 0.1491713822, 0.1311757565, 0.0251973346, 0.145677492, -0.1355882287, 0.3613080382, -0.1701889932, -0.1081270874, 0.2956542969, -0.0282270275, -0.1445141435, 0.1549285501, 0.3218530118, 0.0484357886, -0.0987303704, -0.0249713659, 0.0726726502, 0.2177844495, -0.4324820638, 0.2274698317, 0.1098214537, 0.0280081891, 0.44828704, -0.2745158672, -0.07572864, -0.169284597, 0.2780623138, -0.0978039056, -0.0683534145, 0.2635720372, 0.3350370526, -0.2140743285, -0.2988039851, 0.3023135066, -0.2714874744, -0.1159426197, 0.2750823498, -0.1219208688, -0.0068427622, 0.1769759059, 0.5146284699, 0.0672652796, -0.1476501524, -0.11885418, -0.2926463485, -0.3343289793, 0.0866135061, 0.0571964122, 0.067561239, 0.1711490303, 0.2797254324, 0.0978309214, 0.0337816104, -0.4624916315, 0.0146882534, -0.4128825963, 0.0474852733, 0.2357288897, -0.0974386781, 0.1013841853, 0.0244065374, 0.1799716204, 0.1052240729, -0.1337601542, -0.3522089422, -0.033640407, 0.087804608, -0.0039438298, 0.0217028968, 0.0412187055, -0.1963620931, -0.2757995129, -0.12500453, 0.0960728526, 0.0712823719, -0.1034788787, -0.0618353188, 0.1638188064, 0.0417053252, -0.1251423359, 0.0965345651, 0.0480587967, 0.1241122335, -0.0932390988, 0.0561799742, 0.0966354012, -0.0530853197, -0.0538895391, 0.1123825461, 0.0803087652, -0.0846447125, 0.4036474228, -0.293402046, -0.0837887302, 0.2388862669, 0.4376216233, 0.2970945537, -0.1042979658, -0.132653743, 0.1317990124, 0.2998232841, -0.4269775748, -0.0797764733, 0.227655381, 0.0312156826, 0.2894969583, 0.1620601118, 0.0091711059, 0.0803849846, 0.1102855653, 0.2927853167, 0.3749348521, -0.268506825, 0.0089511015, 0.0542331636, 0.0661036968, 0.1620817333, 0.3600083292, 0.1112756208, 0.1788651347, 0.4138867855, -0.0186641701, 0.1593799889, 0.0633140802, -0.1102104187, 0.0784740597, -0.4868065715, 0.3760783374, -0.072392717, 0.1060391366, -0.1730608046, 0.0226884447, 0.0955679864, -0.2848632336, 0.1331895888, -0.217501834, 0.3178296089, -0.1695960164, 0.2080064416, 0.215829134, 0.0470758751, -0.0041889399, -0.0685389191, 0.1173427105, 0.0952017307, 0.3830108643, 0.1151953861, 0.0234844256, -0.5718718767, -0.1943044662, 0.1402421296, -0.0500199273, -0.3423668146, 0.0659660921, 0.0148210041, -0.0683905631, -0.2042541355, 0.4518047869, 0.4655426741, 0.1875552237, -0.0217464343, -0.0537226945, -0.0694721192, -0.1414835006, -0.154676199, 0.1211889088, -0.0825649947, 0.2094569802, 0.3394082189, 0.2514165044, -0.3259423375, -0.1645161062, 0.1148010641, -0.1634516269, -0.3844023645, 0.2955075502, -0.1409958303, -0.1607821435, -0.1595873833, -0.0308327004, -0.31143713, 0.0526953824, 0.439756602, -0.2856872976, 0.035357032, -0.2400782257, 0.165923357, -0.0764081404, 0.3434976935, 0.3479087949, 0.0946845114, -0.3236081898, -0.1609090269, -0.8212373853, 0.2509790659, -0.1219766811, -0.2337373942, 0.0354434885, 0.2488981932, 0.0543548018, 0.3188180327, 0.3575406671, 0.0408061519, -0.0032816939, 0.1275627762, -0.323161304, -0.213982895, -0.0753675178, -0.2632589936, -0.0036477409, -0.3058436811, 0.1710050553, -0.2677228749, 0.1970315278, -0.2112952471, -0.4058313966, 0.2146860063, -0.0597278625, 0.4275778234, 0.0655834228, 0.3013672233, -0.2161146104, -0.0543661192, -0.1791130453, -0.3456141353, -0.1444771737, 0.2212973684, 0.1074010432, 0.2834344506, -0.0556847192, -0.1634289473, -0.1055845767, 0.1816211492, 0.1836785078, 0.0489663705, -0.0327335969, 0.2775432765, -0.0131123811, 0.2347472608, -0.0551850684, 0.2331460267, 0.0064923856, 0.3684500456, -0.4001819491, -0.5349046588, 0.2997890711, -0.327000618, -0.4098890722, -0.3604010046, 0.2793195844, 0.0132642891, -0.1624010503, -0.1239519566, 0.0338409245, 0.287150383, 0.0694515854, -0.1881323904, 0.4414679408, -0.0199173354, 0.0468640327, 0.0082709193, 0.2054451555, 0.0405814499, -0.2055838108, 0.1134549901, 0.0200576559 ]
https://github.com/huggingface/datasets/issues/2699
cannot combine splits merging and streaming?
Hi ! That's missing indeed. We'll try to implement this for the next version :) I guess we just need to implement #2564 first, and then we should be able to add support for splits combinations
this does not work: `dataset = datasets.load_dataset('mc4','iw',split='train+validation',streaming=True)` with error: `ValueError: Bad split: train+validation. Available splits: ['train', 'validation']` these work: `dataset = datasets.load_dataset('mc4','iw',split='train+validation')` `dataset = datasets.load_dataset('mc4','iw',split='train',streaming=True)` `dataset = datasets.load_dataset('mc4','iw',split='validation',streaming=True)` i could not find a reference to this in the documentation and the error message is confusing. also would be nice to allow streaming for the merged splits
36
cannot combine splits merging and streaming? this does not work: `dataset = datasets.load_dataset('mc4','iw',split='train+validation',streaming=True)` with error: `ValueError: Bad split: train+validation. Available splits: ['train', 'validation']` these work: `dataset = datasets.load_dataset('mc4','iw',split='train+validation')` `dataset = datasets.load_dataset('mc4','iw',split='train',streaming=True)` `dataset = datasets.load_dataset('mc4','iw',split='validation',streaming=True)` i could not find a reference to this in the documentation and the error message is confusing. also would be nice to allow streaming for the merged splits Hi ! That's missing indeed. We'll try to implement this for the next version :) I guess we just need to implement #2564 first, and then we should be able to add support for splits combinations
[ -0.5081484318, -0.3373529315, -0.110279046, -0.0140301287, 0.033048708, 0.0741378367, 0.0743087083, 0.4854652286, -0.0663450211, 0.1295400113, -0.2676171958, 0.2315490842, -0.0514130816, 0.5110139251, 0.0302072465, -0.3258370459, 0.128616184, 0.0924143791, -0.3972887397, 0.2039904296, 0.0156948119, 0.131980136, -0.2798556685, -0.3620293438, -0.3513979316, 0.3136506975, -0.0559829995, 0.0434772596, -0.1932207942, -0.1684154272, -0.0865590125, 0.1241645962, -0.0005705953, 0.5355133414, -0.0001148048, -0.0435676426, 0.5377907157, 0.0555121079, -0.1230914891, 0.0520758666, -0.4317384958, -0.042040728, -0.0881984606, 0.1587153971, -0.2271656692, 0.1198300794, -0.1076328084, -0.1590537578, 0.3743041158, 0.0940161124, 0.0899583176, 0.1013056934, 0.0752252489, -0.2277188152, 0.0327016674, 0.0407926068, -0.0755752921, -0.0672889054, 0.1625947952, 0.0533760488, 0.170207724, 0.205091387, 0.3278670907, -0.2385345995, 0.0529791005, -0.0781994164, -0.2163972408, -0.3731330335, -0.0300138071, 0.2754046619, 0.41717273, 0.1806239188, -0.3277599216, 0.0924969614, -0.0132378265, -0.4786671698, 0.0948753655, 0.0755032748, -0.1146728918, 0.1316608787, -0.5122500658, -0.2017862648, -0.2065025568, 0.2524444163, -0.1153544188, 0.6995689869, 0.106438905, -0.0259962864, 0.5007661581, 0.0095833335, 0.159890458, -0.0029393397, -0.2509085536, 0.0968381017, -0.3748499751, -0.1022786722, -0.4304016829, -0.0613728464, 0.0011963174, 0.1479567885, -0.0523992516, 0.0594876483, 0.1386431158, 0.1004414707, 0.4026206732, -0.1157406792, -0.0750737786, 0.2515941262, 0.2232339382, 0.1167279482, 0.2711421847, -0.03399444, 0.0628526956, -0.2844311893, -0.4857782722, 0.0061911866, -0.0998201966, -0.1338429898, -0.159029752, -0.3384345174, -0.1455882639, -0.0286698844, 0.0967052281, 0.0855214894, -0.2533042729, 0.114083901, -0.1045274511, 0.2969152033, 0.0216696188, -0.3427952826, -0.1387794912, -0.0145829031, -0.2554705143, -0.0818122327, 0.2565937638, -0.2658788264, 0.1501655281, 0.3329010308, 0.2861678004, 0.2612110376, -0.2194491327, 0.0029605627, 0.0976143628, 0.3461607397, 0.2332955152, -0.2164621353, -0.1802342236, 0.2645345926, 0.311365515, -0.0113179386, 0.0223509483, -0.4372554123, -0.099916257, 0.192167908, 0.0101408064, -0.1386033148, -0.1920825988, 0.5086084604, 0.067713961, -0.151593551, -0.1903991997, -0.0040798979, 0.0967609733, -0.111622557, 0.3906466961, -0.028730467, -0.4876496196, -0.0572690964, -0.1783783734, -0.1254674047, 0.2866672575, 0.3830593824, -0.268416822, -0.3105136454, 0.0117010325, 0.2296999693, 0.2801138163, 0.0356156379, -0.1620115042, 0.2357979119, 0.1493205875, -0.0552926436, 0.2690360546, -0.1544442475, 0.1483693421, -0.0233158413, 0.1964316815, 0.5279390812, -0.1471905112, -0.3320832551, -0.2287956178, -0.0443877727, 0.2529413402, 0.2439571917, 0.3917975426, -0.2100872844, 0.1873400211, 0.1677798927, 0.1789100915, -0.1880307496, 0.1267258078, -0.0284451935, 0.1899457723, -0.0645636991, 0.0734616071, -0.2169763744, -0.2115376592, -0.0437551849, -0.0524959341, -0.0564153343, 0.5228718519, -0.1800922453, 0.0138317421, -0.3455845416, -0.1949626505, -0.0930151343, 0.1002580449, -0.1318469048, 0.0416368395, -0.3252920508, -0.3905953169, 0.0545197651, -0.0638395399, 0.0676631033, -0.0878764987, 0.4246722758, -0.199104622, -0.2303443849, -0.0079405457, 0.2666902244, 0.1580342352, -0.0920137018, -0.0449873582, 0.6052390337, 0.0240022466, 0.3310449123, -0.1366332471, 0.0064041167, 0.4401602149, -0.2197291255, -0.0747113824, 0.3792754412, -0.0911199823, -0.1778288931, -0.3126196265, 0.0908948258, -0.3767003119, 0.0743773729, 0.1943710595, 0.0916931704, 0.0833510086, 0.0190159976, -0.2692999542, -0.1221598983, 0.1034233421, -0.5749576092, 0.0316057131, -0.1716380119, -0.3143161833, 0.1330609322, 0.2696282864, 0.0853924006, -0.14476946, -0.2021972388, -0.1466707289, -0.067652002, 0.0505083799, 0.2840466499, 0.4919461608, 0.2036000043, 0.2562606335, 0.2814300358, -0.0278467052, -0.2152478695, 0.3708739877, 0.0582859069, 0.092487514, 0.332978785, -0.0673543364, -0.1376365572, -0.163920626, 0.1609382182, 0.2921338677, -0.10121198, -0.168091476, -0.1960754991, -0.4404216111, -0.340139091, -0.1436610073, -0.2690731883, -0.1394085288, -0.4952284694, 0.0970958769, 0.248837471, -0.168431133, 0.1095262319, 0.0756287873, 0.0112143457, -0.1120055318, 0.2869215012, -0.0890291557, 0.1482099891, -0.0353775136, 0.1844819486, 0.1746095419, 0.0170828551, 0.1113240942, 0.1222267151, -0.1454955935, -0.2003287524, -0.5325546265, 0.1181263328, -0.1742518544, -0.0486429036, 0.206866309, -0.1350508332, 0.2030081749, -0.5070750713, -0.0250824168, -0.1179825962, -0.0727683827, -0.0896509588, -0.0503467694, -0.1196971312, -0.4618372917, -0.6362451911, -0.249064669, -0.5404442549, 0.2634399235, -0.2554799318, -0.1121739298, 0.1065886691, 0.0326891355, -0.1179722846, -0.006571807, -0.4299373031, -0.2892367542, -0.058936432, 0.4022921324, -0.4461688995, -0.3850894272, 0.0921236873, 0.1072702259, 0.2493470907, 0.2030595541, 0.080883801, 0.3455433249, -0.0296856388, 0.0870420933, -0.0778544843, -0.00073402, 0.2698394358, -0.1681797504, 0.0442818254, -0.1913455427, 0.1416908354, 0.0298001394, 0.3293233216, 0.5940421224, -0.0922731906, 0.2602942288, 0.1720615327, 0.8503631353, 0.2213720679, 0.033861734, 0.0265258718, 0.1010481343, 0.2220976353, -0.1088565066, -0.2199732661, 0.2636601329, -0.1620943099, 0.0602044612, 0.0874211863, 0.0236197859, -0.4355466664, -0.2725832462, 0.2202932537, -0.0500401594, 0.0048695877, -0.026751969, -0.2231231034, 0.1030635536, 0.0437377095, 0.0180826783, 0.3688745499, -0.0164264739, 0.0451071896, 0.1667735279, 0.2742875814, 0.1019531339, -0.3018218279, -0.1953762025, -0.1486048549, 0.0285656117, 0.0079727508, 0.1342536211, -0.2335392088, -0.152353853, -0.0622504465, -0.033343643, 0.7309004068, -0.4700447321, -0.186226055, 0.0893395543, -0.0316738933, 0.0784580261, -0.3002661467, -0.1464821696, 0.0606120937, 0.5181647539, 0.3313447535, -0.2025873065, -0.0085708797, 0.4726243913, -0.1199385449, 0.0429335982, -0.2671263516, -0.1636562645, 0.2226849198, -0.2541057467, -0.1159055233, 0.3159096241, 0.0911069885, -0.5133219957, -0.1697616875, 0.1480542421, -0.3351941109, 0.1450446844, 0.1714394093, 0.3846229315, -0.0806666762, 0.1510409862, 0.2846968472, -0.0170551613, 0.3582703471, 0.3160245717, 0.4130519629, -0.3127907217, 0.2898932397, -0.2952026725, 0.6024832129, 0.1973265707, 0.0268833563, -0.006118048, 0.1774467975, -0.0012978241, 0.0833521783, 0.2481263727, 0.2944793999, -0.0753849894, -0.2934317887, -0.2479622662, 0.243704617, 0.0967630595, 0.1570512652, 0.3665709794, -0.0080958381, -0.220266968, -0.1802087426, -0.0931446999, 0.831153512, 0.3514553607, -0.0511213019, 0.0822236091, -0.3420527577, 0.1145345196, -0.2410758436, 0.3490497172, -0.049959626, -0.1900230497, -0.0996515602, -0.0661768019, 0.2365006655, -0.1206921339, -0.5448080897, 0.3441716135, -0.2958673239, 0.4792377651, -0.1160144284, 0.1826060414, -0.1522693336, -0.1442125291, -0.2476089001, 0.1151134223, 0.0034281877, -0.0758740455, -0.0651074126, -0.2912388444, 0.1567963362, 0.0651633292, -0.2207714319, 0.364364624, 0.0778070018, 0.1872263551, -0.0820420086, -0.1057079211, 0.0941799134, 0.1624278724, 0.1093291491, 0.1021916792, -0.2916804254, 0.2685702741, -0.1199019253, -0.0704734474, -0.35296911, -0.0182665586, 0.1041849628, -0.3264844418, -0.2080943286, 0.2107823193, 0.1126905233, -0.5092002749, -0.2521858215, -0.0672903508, 0.031798102, -0.0281097032, 0.0520915948, 0.2679306269, -0.1196017265, -0.3213806152, 0.1105264127, -0.1861270815, -0.4356995821, 0.139452517, 0.1880931109, 0.077935487, -0.2295375168, 0.3991300464, 0.0167136043, -0.177469939, 0.330319643, 0.1787613034, -0.0833467767, -0.1643692106, -0.2420060039, 0.2020902783, -0.0776382834, 0.1237075403, -0.282509625, -0.2111569792, 0.2983010411, 0.1103869975, 0.015401274, 0.1366526484, -0.1931947172, -0.1865276992, -0.165340811, 0.260104537, -0.2842328548, 0.3302908242, -0.1422862709, 0.4343193471, 0.0736772642, 0.2044563591, -0.2684250474, -0.0025948025, 0.1188777238, 0.1553228498, -0.226090163, -0.358109951, 0.0110793896, -0.0739914924, 0.04279764, 0.2439488322, -0.1716938466, -0.131297186, -0.0300477482, 0.0900147855, 0.3175622225, 0.0310147181, -0.1119520068, 0.0074076802, -0.4620467424, 0.1675177068, 0.2413915396, -0.1604738981, 0.0731809586, 0.0464835279, 0.7694672942, 0.0026706923, 0.0763220564, -0.0761990249, 0.1711458862, 0.148660928, -0.004456304, 0.085976392, 0.165708527, -0.1427561939, -0.0114719607, -0.0064308494, 0.3535856307, 0.089469254, 0.3557210565, -0.3032313287, -0.0499161407, -0.3494811356, 0.4437384009, 0.4431465864, 0.1119625419, 0.051402837, 0.0177689753, 0.172262907, -0.1517114043, -0.1266006678, -0.1626867354, 0.2234694958, -0.0318373144, -0.0154605731, 0.3882975578, 0.1365395188, -0.0452421792, 0.3940407336, -0.1873162985, -0.1082064062, 0.6243638396, 0.4589971304, -0.2730154991, 0.0798388124, -0.0518255308, -0.1712732464, -0.1128541976, 0.0483087637, -0.1877721548, 0.3462683558, 0.400002867, -0.0684835017, 0.5021163821, -0.0291221589, -0.4155101776, -0.1350042224, -0.1447891891, 0.31667009, 0.2044384331, 0.3156458735, -0.2462452948, -0.4899678826, -0.2448235005, -0.0230594128, -0.0245448072, -0.0202680007, -0.1529141366, -0.2530762255, -0.1895495504, 0.1706693918, 0.1991121024, 0.1580579281, 0.602937758, 0.0041987468, 0.0793790817, -0.2160999477, 0.236280933, 0.3822194934, 0.3558267355, -0.1452440917, 0.0076429173, 0.3794390261, -0.2650621235, 0.3523436785, 0.1705773324, 0.4073834717, 0.2343978882, -0.1795748919, 0.0125422552, 0.1997920424, -0.2044631839, 0.1789809763, 0.2393650264, 0.5440565944, -0.1517499089, 0.1934884936, 0.0924246982, -0.0880415291, 0.2542187572, -0.2827866077, 0.3401776552, -0.3977625668, 0.3002813458, 0.1573113352, 0.0152106285, 0.1106260419, -0.0687538534, -0.4797086418, -0.2704092264, 0.3754622042, 0.0008003451, -0.0935250074, -0.156047821, 0.0744086877, 0.2217360139, 0.6444827914, 0.0328453407, -0.1067726612, -0.0711751804, -0.2070061564, -0.3353721201, -0.220700264, 0.0591470227, 0.3860921562, -0.102665022, 0.2361465394, 0.0716349185, 0.2721897662, 0.3447859287, -0.175882563, 0.2958407998, -0.0070237815, -0.3321445584, 0.0365433432, 0.1879817396, 0.1128573939, 0.0031117573, -0.0522040091, 0.2949275374, 0.0324191749, -0.0187553242, 0.1324231625, -0.0701426119, 0.2797318399, 0.1121884063, -0.2236465514, 0.2178762704, 0.3656513095, -0.0962722301, -0.0768081099, -0.2699717879, -0.1720237881, -0.4505993426, -0.0722972155, 0.0526679195, 0.4325371385, -0.0800547972, -0.1802475899, -0.1298144311, 0.4174409509, 0.0131856501, -0.0718945861, -0.1770030856, -0.1322392225, -0.0359183848, 0.0519059338, 0.3032900095, 0.4208348393, -0.2203767449, -0.1917255074, -0.07384599, -0.3431107998, 0.4673774242, -0.2923312485, -0.2383930385, -0.4524562359, -0.1654770523, 0.6991720796, 0.2340476066, -0.6319126487, -0.2952764034, -0.0088740773, -0.3797498941, 0.2310720235, 0.5059239268, 0.2337808907, -0.1236177608, -0.1809198856, -0.0346404351, 0.4153897464, -0.188378334, 0.035306409, -0.2904880345 ]
https://github.com/huggingface/datasets/issues/2695
Cannot import load_dataset on Colab
I'm facing the same issue on Colab today too. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-4-5833ac0f5437> in <module>() 3 4 from ray import tune ----> 5 from datasets import DatasetDict, Dataset 6 from datasets import load_dataset, load_metric 7 from dataclasses import dataclass 7 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' --------------------------------------------------------------------------- NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt. To view examples of installing some common dependencies, click the "Open Examples" button below. --------------------------------------------------------------------------- ```
## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0
111
Cannot import load_dataset on Colab ## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0 I'm facing the same issue on Colab today too. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-4-5833ac0f5437> in <module>() 3 4 from ray import tune ----> 5 from datasets import DatasetDict, Dataset 6 from datasets import load_dataset, load_metric 7 from dataclasses import dataclass 7 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' --------------------------------------------------------------------------- NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt. To view examples of installing some common dependencies, click the "Open Examples" button below. --------------------------------------------------------------------------- ```
[ -0.4603259563, -0.2148274332, -0.0243752003, 0.2682135403, 0.1354126334, 0.0519945472, 0.4973767996, -0.1074849591, 0.1983706802, 0.0849532038, -0.3266305327, 0.4753238261, -0.1742699891, 0.148748368, -0.2584455013, 0.0984705389, -0.0661862344, 0.0582034886, -0.2907032967, 0.0956149846, 0.0202915296, 0.3308885098, -0.6335689425, -0.3468575478, -0.5786883831, -0.2100413293, -0.0277421549, 0.1687913835, -0.2702192664, -0.292011112, 0.3478227854, 0.1770585477, 0.0921898633, 0.5697173476, -0.0001172402, 0.0715135038, 0.3933096528, -0.0787534714, -0.2456896901, -0.3918710649, -0.3461531997, -0.3291956782, 0.3686218858, -0.1073925793, 0.1058269143, 0.4041658938, -0.1357309222, -0.1332752556, 0.2626952827, 0.1352799237, 0.1936344355, 0.549198091, 0.163060531, -0.1924920976, -0.1125868857, -0.1933780015, -0.2020826638, 0.746152997, 0.4174178243, 0.0168560594, -0.0510252491, 0.2604950666, -0.099267967, 0.2890874743, 0.1862410009, -0.0334219113, 0.1051013544, -0.4805828929, 0.1006374806, 0.1743777096, 0.480671823, -0.2334272861, 0.04439044, -0.1220246479, 0.2094738185, -0.2924675345, 0.2619006336, -0.0985703841, -0.2118595243, 0.0490083471, -0.0226966478, -0.08961723, -0.012307018, 0.0164375044, -0.0933861509, 0.3655070961, -0.1430073082, -0.1118268147, 0.0698660463, -0.1096414328, 0.5018093586, -0.0161827672, -0.0268675704, 0.2063283324, -0.468000412, -0.009329766, -0.0988704413, -0.1408490539, -0.0516989529, -0.1014948338, -0.0361870378, 0.0174666513, -0.1110087484, 0.303483516, 0.1848025918, 0.1422501206, 0.0347586609, 0.0182987787, 0.1226538271, 0.2864285111, -0.2007628381, 0.2273952365, -0.2592824101, -0.3118796945, 0.1845090538, -0.0292139463, 0.2715787292, -0.0037106648, -0.3190622926, -0.1818457097, 0.009568125, 0.105042167, 0.0446226522, 0.3990530968, 0.0557957664, 0.1057087034, -0.0346218869, 0.0016939882, -0.3566538692, -0.2394381016, -0.053845346, 0.193696633, -0.0642800629, -0.1152990609, 0.067803055, -0.1549989581, 0.2601867318, -0.0124206878, 0.309204936, -0.0599603467, 0.1036740988, -0.3025383949, -0.0606453419, 0.3319081068, 0.1287348866, 0.0872026384, -0.0623134449, -0.2055783868, -0.0778878257, 0.2355169654, -0.4770619273, -0.1442365348, -0.0243144315, 0.1429467648, -0.1339151561, -0.2244311124, -0.5850229859, 0.1648343056, 0.1447638273, -0.0812813714, -0.084962219, -0.306283325, -0.2330713272, -0.1535829455, 0.1236878857, 0.4482832849, -0.2309286147, -0.1423144341, -0.2176907957, 0.1205274761, 0.1272703707, 0.2348232567, -0.2021543831, 0.173609212, -0.0962642506, -0.1171422303, 0.4906477928, -0.432636261, -0.467125237, -0.0203477908, -0.2660760581, -0.0052544475, -0.0897066966, 0.0485794693, 0.3577233553, -0.0669408888, 0.5458387733, 0.2629371881, -0.1390328705, -0.0366041884, -0.1640907526, -0.4099055231, 0.1294254959, 0.0418197438, 0.1834631562, -0.2177713662, 0.2030323595, -0.0533744358, 0.1012381911, 0.1859945059, -0.1211299002, 0.3843334019, 0.2429010719, -0.2223787457, 0.0372734405, -0.1859576702, -0.4775209129, 0.2240481824, 0.4092943966, 0.0799715817, -0.0674989671, 0.0513248593, -0.4381962717, 0.0791065469, -0.2594444454, 0.0676422268, 0.0994127095, -0.0666695163, -0.1751303971, 0.0889265537, -0.2604831457, 0.7403808832, 0.0377079099, 0.2175932825, -0.3183420599, 0.2157882154, -0.1859038621, -0.3081801534, 0.1762925833, 0.1361712664, 0.0753256083, -0.092272833, -0.2389077395, 0.1421216428, 0.2554137111, 0.1713413596, 0.0618918873, -0.2776554823, 0.4123668075, -0.2740119994, 0.0123247653, -0.1066840664, 0.2085701227, 0.0058231726, 0.2551180422, 0.1565713584, -0.3707029223, -0.0410734639, -0.0305119678, 0.0905383453, 0.372643888, 0.1239962727, -0.0050923303, -0.1856489778, 0.3251838386, 0.2222951651, 0.1924738139, 0.0937424973, -0.1297319382, 0.2881349325, 0.30617553, 0.2452445179, 0.0387792364, -0.2685612738, -0.2554306686, 0.0633643866, 0.1922869384, 0.2518092692, 0.4446451962, 0.1803889573, 0.1049192324, 0.0316312686, 0.031847693, -0.1561173946, 0.1151200309, 0.2919994891, 0.2558411658, 0.131103307, 0.4120823443, 0.096743837, -0.0789982527, -0.3894119263, 0.1753252149, 0.1503110975, -0.3317721188, 0.0766261071, -0.2146017253, -0.1139467657, -0.1419461071, -0.4253392518, -0.1464537084, -0.1978350878, -0.1058005393, 0.2810257375, 0.2650624812, 0.1936623752, -0.0239941888, 0.0500164628, 0.0625041798, -0.142483741, -0.0558168441, -0.2506769896, -0.0925875232, 0.0015160255, 0.3277395666, 0.2468108237, 0.3685059547, -0.3038309813, -0.0695630237, 0.1437006891, -0.3320977092, 0.1763453931, -0.0056826142, 0.2919799089, -0.0134429336, -0.0779715031, -0.3206295371, -0.1939176321, 0.0215364322, -0.1346230507, -0.1827464998, 0.0472791493, -0.1800283492, -0.2297735512, -0.0019909069, -0.2926881909, -0.4344462454, -0.3998569846, -0.3682101965, 0.0472466275, -0.0089031905, 0.4603003263, -0.0427163094, 0.2933925986, 0.2250695825, 0.0508381277, 0.0179359838, -0.3330910802, 0.473382175, -0.2865110636, -0.2936576903, 0.2801202536, -0.2680463195, 0.3836089969, 0.0181831606, -0.1104434952, -0.2135312706, -0.0214796029, 0.3837368488, -0.1009401828, 0.0416827798, 0.084635973, 0.1136623472, 0.0782582611, -0.092406705, -0.1815527827, -0.2040502727, 0.2196321487, 0.1930784434, -0.1657153219, 0.2265982032, -0.0363360234, 0.8421135545, 0.0771994293, -0.0400504507, 0.3015676141, -0.0616557226, 0.306491971, -0.1064243615, -0.5121487379, -0.0696848258, -0.1073109284, -0.0392840207, 0.0819718167, -0.1839760989, -0.1112220287, -0.2847858667, -0.2727974355, -0.3160192966, -0.2918522358, -0.1147851199, -0.2003913522, 0.1308546364, 0.1986790895, -0.0612917282, -0.1620079875, -0.1124964654, 0.0489826202, 0.4355247021, -0.4208027422, -0.0186148286, 0.3795595169, -0.0728558153, -0.3464909792, 0.1986526847, 0.1317851692, 0.3303271532, 0.0766258389, 0.1182001382, 0.0601410978, -0.0493250415, 0.1122457981, 0.0591964722, -0.0800002143, 0.2366163731, -0.0146943107, -0.4012733698, -0.0577432923, -0.2255626768, 0.2240987569, 0.479319334, 0.0861524194, -0.2667841911, 0.2115175128, 0.2363316417, 0.1412731707, -0.1142227203, -0.1485226303, -0.4387517571, -0.3134375215, -0.3784105778, -0.060045056, 0.1850461066, 0.2391747683, 0.0416694209, -0.070869118, -0.0640275925, -0.2169732004, 0.061041642, 0.3596895039, 0.1482841223, 0.27044788, 0.5801549554, 0.1271516532, -0.2473593056, 0.4470185339, 0.5865608454, 0.0028331866, -0.5835168362, -0.0279991981, -0.1797395349, 0.2348886877, 0.131520167, -0.0706731975, 0.0163306538, 0.059565261, -0.1358521134, 0.3848748207, 0.3812656403, -0.063542679, 0.126247853, -0.4026651382, -0.1285913289, 0.0958477706, 0.0007422715, 0.1376990974, 0.460165292, -0.3796383739, -0.0598222017, 0.0470986143, -0.1843538284, 0.6863651276, -0.0381891392, -0.2390153855, 0.2732533514, -0.1615029871, 0.2652592659, 0.113190338, 0.1857607663, -0.2762226164, -0.3076209426, 0.0923931673, -0.2266219556, 0.190025866, -0.1945814192, -0.3511309624, 0.2596142292, 0.0564561039, -0.1498301625, -0.0185760595, 0.0406053364, 0.002412701, -0.2937502563, -0.3525198698, 0.0517694727, -0.1905298233, 0.206172049, -0.1972418278, -0.1833462715, -0.138948068, -0.1865322292, -0.0331041887, -0.1090356708, -0.6445792317, 0.2370987236, 0.3314476907, -0.3087445498, 0.2005166709, -0.1111383587, 0.0950988755, -0.0293305609, -0.1739501357, 0.1265126467, 0.1993345171, 0.016686663, -0.1108884513, -0.1729527265, 0.4197724164, -0.0839657113, 0.0050037205, 0.0576665625, 0.0366225876, -0.0225341544, 0.4702344835, 0.3512614667, 0.3681570888, 0.1506927907, -0.0755757838, 0.1810474545, 0.2616754174, -0.1958780885, 0.0780423135, 0.1019753963, -0.1530846357, 0.2558068037, -0.1075144485, -0.1003247127, -0.0019224812, 0.3397728205, 0.1296714842, -0.0161000639, 0.1832215488, 0.1551722884, -0.2558426261, -0.0844762996, 0.1688348949, -0.3087919354, -0.3004137874, 0.2412770689, -0.0199144315, 0.0491271764, 0.0744941309, 0.7340950966, 0.24561508, -0.3685690761, -0.1320784092, -0.3772929311, -0.5326014757, 0.1417691857, -0.1205238104, -0.0949430019, 0.2369499356, 0.383689642, 0.1208687499, 0.1284108013, -0.2208906114, 0.1052402034, -0.1584758013, 0.1540041119, 0.2756512463, -0.0960515812, 0.0372921787, 0.08598952, 0.0042421371, 0.1529782414, 0.0671000183, -0.2249542773, -0.1146583855, 0.1326804906, -0.1025537401, 0.0408709124, -0.1180262938, -0.1512854695, -0.2300350368, -0.1715024412, 0.1590516567, 0.0351239145, -0.0818419084, -0.1321558207, 0.2920050621, -0.0966294855, -0.2174014151, 0.4025671184, 0.1177948415, 0.0810076594, 0.0776670799, 0.1660298258, 0.1665422618, 0.1832788885, 0.0175299421, -0.2253395021, -0.0916717052, -0.1765126288, 0.0942777842, -0.3320891857, -0.0140229762, 0.0699954182, -0.027506955, 0.4203797281, -0.1289568245, -0.2099849582, 0.0472411402, 0.0857809708, -0.388807714, 0.0311132781, 0.304264158, 0.1548588127, 0.1754325479, 0.2722877264, 0.0817718208, 0.0818849355, 0.1544099301, 0.3952518702, 0.2447239757, -0.0228371527, 0.2661113739, -0.2058011889, 0.0857821628, 0.2306345701, 0.2361092716, 0.1184324101, 0.0381050706, 0.1526700407, -0.1501826346, 0.2959786355, 0.1446439773, -0.1672736853, 0.2365310937, -0.359602809, 0.2424565852, -0.0986768976, 0.0569082573, -0.1363284588, 0.1417863071, 0.3276463747, -0.0491864942, -0.0884466618, -0.1608528197, -0.00304074, -0.3001902699, 0.2709412277, 0.4638243616, -0.0976313055, -0.0931243002, -0.0431756154, 0.2145774961, 0.2175286859, 0.537478745, 0.3159117103, -0.1668996662, -0.4896297455, -0.1224406213, 0.5082057714, -0.1266732216, -0.1844531, 0.4623731971, -0.1348716021, 0.0100120371, -0.1652808934, 0.3222155571, 0.4884842932, 0.3006309271, -0.13834849, -0.2075258195, 0.2566274405, -0.180105269, -0.13837412, 0.2107214779, 0.0596841015, 0.2941677868, 0.298170805, 0.0842537507, -0.169087857, -0.0320376828, 0.2207306474, -0.3357620537, -0.4409198463, 0.2064284831, -0.1567063481, -0.0026588812, -0.1897848248, 0.0980004668, -0.4563891292, 0.2288244963, 0.3156722784, -0.2224389613, -0.0670022815, -0.1489629298, 0.0449594744, -0.0307992715, 0.3605276346, 0.2467248142, 0.3562101126, -0.20113042, -0.1037737876, -0.8396953344, 0.3146010339, 0.0336661823, -0.0117304623, -0.0385529473, 0.1393252015, -0.0011310764, 0.3212940693, 0.4201126099, 0.0454291739, 0.190120995, 0.0372287929, -0.4620156288, -0.2717561424, 0.0900404453, -0.4454765022, 0.0050570294, -0.3917895257, -0.0040985327, -0.2824521661, -0.0414678939, -0.0273977276, -0.4465277791, 0.2701759338, 0.3022375703, 0.2959741652, -0.0437555872, 0.6722489595, -0.0536569282, 0.0996356979, -0.0690651685, -0.3176439703, -0.026964277, 0.1578305513, 0.3953223825, 0.2114284039, -0.2491105199, 0.0748831481, -0.1284853518, 0.1337049007, 0.1330320835, 0.0128991976, -0.2782161832, 0.0685418323, -0.1654137671, 0.4030527472, -0.1301136017, 0.1823723018, 0.0637911931, 0.2705151141, -0.3036564291, -0.3571579158, 0.3911986947, -0.3434484899, -0.458597362, -0.427672565, 0.2904645205, 0.1598202735, -0.2049571276, -0.4742087126, 0.0093036443, 0.2549891472, -0.1533088088, -0.1555009484, 0.5398073196, 0.0699542463, 0.2142625153, -0.121996358, 0.2098632604, 0.0046634469, -0.1189016849, -0.1165047958, -0.0643655658 ]
https://github.com/huggingface/datasets/issues/2695
Cannot import load_dataset on Colab
@phosseini I think it is related to [1.10.0](https://github.com/huggingface/datasets/actions/runs/1052653701) release done 3 hours ago. (cc: @lhoestq ) For now I just downgraded to 1.9.0 and it is working fine.
## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0
28
Cannot import load_dataset on Colab ## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0 @phosseini I think it is related to [1.10.0](https://github.com/huggingface/datasets/actions/runs/1052653701) release done 3 hours ago. (cc: @lhoestq ) For now I just downgraded to 1.9.0 and it is working fine.
[ -0.4603259563, -0.2148274332, -0.0243752003, 0.2682135403, 0.1354126334, 0.0519945472, 0.4973767996, -0.1074849591, 0.1983706802, 0.0849532038, -0.3266305327, 0.4753238261, -0.1742699891, 0.148748368, -0.2584455013, 0.0984705389, -0.0661862344, 0.0582034886, -0.2907032967, 0.0956149846, 0.0202915296, 0.3308885098, -0.6335689425, -0.3468575478, -0.5786883831, -0.2100413293, -0.0277421549, 0.1687913835, -0.2702192664, -0.292011112, 0.3478227854, 0.1770585477, 0.0921898633, 0.5697173476, -0.0001172402, 0.0715135038, 0.3933096528, -0.0787534714, -0.2456896901, -0.3918710649, -0.3461531997, -0.3291956782, 0.3686218858, -0.1073925793, 0.1058269143, 0.4041658938, -0.1357309222, -0.1332752556, 0.2626952827, 0.1352799237, 0.1936344355, 0.549198091, 0.163060531, -0.1924920976, -0.1125868857, -0.1933780015, -0.2020826638, 0.746152997, 0.4174178243, 0.0168560594, -0.0510252491, 0.2604950666, -0.099267967, 0.2890874743, 0.1862410009, -0.0334219113, 0.1051013544, -0.4805828929, 0.1006374806, 0.1743777096, 0.480671823, -0.2334272861, 0.04439044, -0.1220246479, 0.2094738185, -0.2924675345, 0.2619006336, -0.0985703841, -0.2118595243, 0.0490083471, -0.0226966478, -0.08961723, -0.012307018, 0.0164375044, -0.0933861509, 0.3655070961, -0.1430073082, -0.1118268147, 0.0698660463, -0.1096414328, 0.5018093586, -0.0161827672, -0.0268675704, 0.2063283324, -0.468000412, -0.009329766, -0.0988704413, -0.1408490539, -0.0516989529, -0.1014948338, -0.0361870378, 0.0174666513, -0.1110087484, 0.303483516, 0.1848025918, 0.1422501206, 0.0347586609, 0.0182987787, 0.1226538271, 0.2864285111, -0.2007628381, 0.2273952365, -0.2592824101, -0.3118796945, 0.1845090538, -0.0292139463, 0.2715787292, -0.0037106648, -0.3190622926, -0.1818457097, 0.009568125, 0.105042167, 0.0446226522, 0.3990530968, 0.0557957664, 0.1057087034, -0.0346218869, 0.0016939882, -0.3566538692, -0.2394381016, -0.053845346, 0.193696633, -0.0642800629, -0.1152990609, 0.067803055, -0.1549989581, 0.2601867318, -0.0124206878, 0.309204936, -0.0599603467, 0.1036740988, -0.3025383949, -0.0606453419, 0.3319081068, 0.1287348866, 0.0872026384, -0.0623134449, -0.2055783868, -0.0778878257, 0.2355169654, -0.4770619273, -0.1442365348, -0.0243144315, 0.1429467648, -0.1339151561, -0.2244311124, -0.5850229859, 0.1648343056, 0.1447638273, -0.0812813714, -0.084962219, -0.306283325, -0.2330713272, -0.1535829455, 0.1236878857, 0.4482832849, -0.2309286147, -0.1423144341, -0.2176907957, 0.1205274761, 0.1272703707, 0.2348232567, -0.2021543831, 0.173609212, -0.0962642506, -0.1171422303, 0.4906477928, -0.432636261, -0.467125237, -0.0203477908, -0.2660760581, -0.0052544475, -0.0897066966, 0.0485794693, 0.3577233553, -0.0669408888, 0.5458387733, 0.2629371881, -0.1390328705, -0.0366041884, -0.1640907526, -0.4099055231, 0.1294254959, 0.0418197438, 0.1834631562, -0.2177713662, 0.2030323595, -0.0533744358, 0.1012381911, 0.1859945059, -0.1211299002, 0.3843334019, 0.2429010719, -0.2223787457, 0.0372734405, -0.1859576702, -0.4775209129, 0.2240481824, 0.4092943966, 0.0799715817, -0.0674989671, 0.0513248593, -0.4381962717, 0.0791065469, -0.2594444454, 0.0676422268, 0.0994127095, -0.0666695163, -0.1751303971, 0.0889265537, -0.2604831457, 0.7403808832, 0.0377079099, 0.2175932825, -0.3183420599, 0.2157882154, -0.1859038621, -0.3081801534, 0.1762925833, 0.1361712664, 0.0753256083, -0.092272833, -0.2389077395, 0.1421216428, 0.2554137111, 0.1713413596, 0.0618918873, -0.2776554823, 0.4123668075, -0.2740119994, 0.0123247653, -0.1066840664, 0.2085701227, 0.0058231726, 0.2551180422, 0.1565713584, -0.3707029223, -0.0410734639, -0.0305119678, 0.0905383453, 0.372643888, 0.1239962727, -0.0050923303, -0.1856489778, 0.3251838386, 0.2222951651, 0.1924738139, 0.0937424973, -0.1297319382, 0.2881349325, 0.30617553, 0.2452445179, 0.0387792364, -0.2685612738, -0.2554306686, 0.0633643866, 0.1922869384, 0.2518092692, 0.4446451962, 0.1803889573, 0.1049192324, 0.0316312686, 0.031847693, -0.1561173946, 0.1151200309, 0.2919994891, 0.2558411658, 0.131103307, 0.4120823443, 0.096743837, -0.0789982527, -0.3894119263, 0.1753252149, 0.1503110975, -0.3317721188, 0.0766261071, -0.2146017253, -0.1139467657, -0.1419461071, -0.4253392518, -0.1464537084, -0.1978350878, -0.1058005393, 0.2810257375, 0.2650624812, 0.1936623752, -0.0239941888, 0.0500164628, 0.0625041798, -0.142483741, -0.0558168441, -0.2506769896, -0.0925875232, 0.0015160255, 0.3277395666, 0.2468108237, 0.3685059547, -0.3038309813, -0.0695630237, 0.1437006891, -0.3320977092, 0.1763453931, -0.0056826142, 0.2919799089, -0.0134429336, -0.0779715031, -0.3206295371, -0.1939176321, 0.0215364322, -0.1346230507, -0.1827464998, 0.0472791493, -0.1800283492, -0.2297735512, -0.0019909069, -0.2926881909, -0.4344462454, -0.3998569846, -0.3682101965, 0.0472466275, -0.0089031905, 0.4603003263, -0.0427163094, 0.2933925986, 0.2250695825, 0.0508381277, 0.0179359838, -0.3330910802, 0.473382175, -0.2865110636, -0.2936576903, 0.2801202536, -0.2680463195, 0.3836089969, 0.0181831606, -0.1104434952, -0.2135312706, -0.0214796029, 0.3837368488, -0.1009401828, 0.0416827798, 0.084635973, 0.1136623472, 0.0782582611, -0.092406705, -0.1815527827, -0.2040502727, 0.2196321487, 0.1930784434, -0.1657153219, 0.2265982032, -0.0363360234, 0.8421135545, 0.0771994293, -0.0400504507, 0.3015676141, -0.0616557226, 0.306491971, -0.1064243615, -0.5121487379, -0.0696848258, -0.1073109284, -0.0392840207, 0.0819718167, -0.1839760989, -0.1112220287, -0.2847858667, -0.2727974355, -0.3160192966, -0.2918522358, -0.1147851199, -0.2003913522, 0.1308546364, 0.1986790895, -0.0612917282, -0.1620079875, -0.1124964654, 0.0489826202, 0.4355247021, -0.4208027422, -0.0186148286, 0.3795595169, -0.0728558153, -0.3464909792, 0.1986526847, 0.1317851692, 0.3303271532, 0.0766258389, 0.1182001382, 0.0601410978, -0.0493250415, 0.1122457981, 0.0591964722, -0.0800002143, 0.2366163731, -0.0146943107, -0.4012733698, -0.0577432923, -0.2255626768, 0.2240987569, 0.479319334, 0.0861524194, -0.2667841911, 0.2115175128, 0.2363316417, 0.1412731707, -0.1142227203, -0.1485226303, -0.4387517571, -0.3134375215, -0.3784105778, -0.060045056, 0.1850461066, 0.2391747683, 0.0416694209, -0.070869118, -0.0640275925, -0.2169732004, 0.061041642, 0.3596895039, 0.1482841223, 0.27044788, 0.5801549554, 0.1271516532, -0.2473593056, 0.4470185339, 0.5865608454, 0.0028331866, -0.5835168362, -0.0279991981, -0.1797395349, 0.2348886877, 0.131520167, -0.0706731975, 0.0163306538, 0.059565261, -0.1358521134, 0.3848748207, 0.3812656403, -0.063542679, 0.126247853, -0.4026651382, -0.1285913289, 0.0958477706, 0.0007422715, 0.1376990974, 0.460165292, -0.3796383739, -0.0598222017, 0.0470986143, -0.1843538284, 0.6863651276, -0.0381891392, -0.2390153855, 0.2732533514, -0.1615029871, 0.2652592659, 0.113190338, 0.1857607663, -0.2762226164, -0.3076209426, 0.0923931673, -0.2266219556, 0.190025866, -0.1945814192, -0.3511309624, 0.2596142292, 0.0564561039, -0.1498301625, -0.0185760595, 0.0406053364, 0.002412701, -0.2937502563, -0.3525198698, 0.0517694727, -0.1905298233, 0.206172049, -0.1972418278, -0.1833462715, -0.138948068, -0.1865322292, -0.0331041887, -0.1090356708, -0.6445792317, 0.2370987236, 0.3314476907, -0.3087445498, 0.2005166709, -0.1111383587, 0.0950988755, -0.0293305609, -0.1739501357, 0.1265126467, 0.1993345171, 0.016686663, -0.1108884513, -0.1729527265, 0.4197724164, -0.0839657113, 0.0050037205, 0.0576665625, 0.0366225876, -0.0225341544, 0.4702344835, 0.3512614667, 0.3681570888, 0.1506927907, -0.0755757838, 0.1810474545, 0.2616754174, -0.1958780885, 0.0780423135, 0.1019753963, -0.1530846357, 0.2558068037, -0.1075144485, -0.1003247127, -0.0019224812, 0.3397728205, 0.1296714842, -0.0161000639, 0.1832215488, 0.1551722884, -0.2558426261, -0.0844762996, 0.1688348949, -0.3087919354, -0.3004137874, 0.2412770689, -0.0199144315, 0.0491271764, 0.0744941309, 0.7340950966, 0.24561508, -0.3685690761, -0.1320784092, -0.3772929311, -0.5326014757, 0.1417691857, -0.1205238104, -0.0949430019, 0.2369499356, 0.383689642, 0.1208687499, 0.1284108013, -0.2208906114, 0.1052402034, -0.1584758013, 0.1540041119, 0.2756512463, -0.0960515812, 0.0372921787, 0.08598952, 0.0042421371, 0.1529782414, 0.0671000183, -0.2249542773, -0.1146583855, 0.1326804906, -0.1025537401, 0.0408709124, -0.1180262938, -0.1512854695, -0.2300350368, -0.1715024412, 0.1590516567, 0.0351239145, -0.0818419084, -0.1321558207, 0.2920050621, -0.0966294855, -0.2174014151, 0.4025671184, 0.1177948415, 0.0810076594, 0.0776670799, 0.1660298258, 0.1665422618, 0.1832788885, 0.0175299421, -0.2253395021, -0.0916717052, -0.1765126288, 0.0942777842, -0.3320891857, -0.0140229762, 0.0699954182, -0.027506955, 0.4203797281, -0.1289568245, -0.2099849582, 0.0472411402, 0.0857809708, -0.388807714, 0.0311132781, 0.304264158, 0.1548588127, 0.1754325479, 0.2722877264, 0.0817718208, 0.0818849355, 0.1544099301, 0.3952518702, 0.2447239757, -0.0228371527, 0.2661113739, -0.2058011889, 0.0857821628, 0.2306345701, 0.2361092716, 0.1184324101, 0.0381050706, 0.1526700407, -0.1501826346, 0.2959786355, 0.1446439773, -0.1672736853, 0.2365310937, -0.359602809, 0.2424565852, -0.0986768976, 0.0569082573, -0.1363284588, 0.1417863071, 0.3276463747, -0.0491864942, -0.0884466618, -0.1608528197, -0.00304074, -0.3001902699, 0.2709412277, 0.4638243616, -0.0976313055, -0.0931243002, -0.0431756154, 0.2145774961, 0.2175286859, 0.537478745, 0.3159117103, -0.1668996662, -0.4896297455, -0.1224406213, 0.5082057714, -0.1266732216, -0.1844531, 0.4623731971, -0.1348716021, 0.0100120371, -0.1652808934, 0.3222155571, 0.4884842932, 0.3006309271, -0.13834849, -0.2075258195, 0.2566274405, -0.180105269, -0.13837412, 0.2107214779, 0.0596841015, 0.2941677868, 0.298170805, 0.0842537507, -0.169087857, -0.0320376828, 0.2207306474, -0.3357620537, -0.4409198463, 0.2064284831, -0.1567063481, -0.0026588812, -0.1897848248, 0.0980004668, -0.4563891292, 0.2288244963, 0.3156722784, -0.2224389613, -0.0670022815, -0.1489629298, 0.0449594744, -0.0307992715, 0.3605276346, 0.2467248142, 0.3562101126, -0.20113042, -0.1037737876, -0.8396953344, 0.3146010339, 0.0336661823, -0.0117304623, -0.0385529473, 0.1393252015, -0.0011310764, 0.3212940693, 0.4201126099, 0.0454291739, 0.190120995, 0.0372287929, -0.4620156288, -0.2717561424, 0.0900404453, -0.4454765022, 0.0050570294, -0.3917895257, -0.0040985327, -0.2824521661, -0.0414678939, -0.0273977276, -0.4465277791, 0.2701759338, 0.3022375703, 0.2959741652, -0.0437555872, 0.6722489595, -0.0536569282, 0.0996356979, -0.0690651685, -0.3176439703, -0.026964277, 0.1578305513, 0.3953223825, 0.2114284039, -0.2491105199, 0.0748831481, -0.1284853518, 0.1337049007, 0.1330320835, 0.0128991976, -0.2782161832, 0.0685418323, -0.1654137671, 0.4030527472, -0.1301136017, 0.1823723018, 0.0637911931, 0.2705151141, -0.3036564291, -0.3571579158, 0.3911986947, -0.3434484899, -0.458597362, -0.427672565, 0.2904645205, 0.1598202735, -0.2049571276, -0.4742087126, 0.0093036443, 0.2549891472, -0.1533088088, -0.1555009484, 0.5398073196, 0.0699542463, 0.2142625153, -0.121996358, 0.2098632604, 0.0046634469, -0.1189016849, -0.1165047958, -0.0643655658 ]
https://github.com/huggingface/datasets/issues/2695
Cannot import load_dataset on Colab
> @phosseini > I think it is related to [1.10.0](https://github.com/huggingface/datasets/actions/runs/1052653701) release done 3 hours ago. (cc: @lhoestq ) > For now I just downgraded to 1.9.0 and it is working fine. Same here, downgraded to 1.9.0 for now and works fine.
## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0
41
Cannot import load_dataset on Colab ## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0 > @phosseini > I think it is related to [1.10.0](https://github.com/huggingface/datasets/actions/runs/1052653701) release done 3 hours ago. (cc: @lhoestq ) > For now I just downgraded to 1.9.0 and it is working fine. Same here, downgraded to 1.9.0 for now and works fine.
[ -0.4603259563, -0.2148274332, -0.0243752003, 0.2682135403, 0.1354126334, 0.0519945472, 0.4973767996, -0.1074849591, 0.1983706802, 0.0849532038, -0.3266305327, 0.4753238261, -0.1742699891, 0.148748368, -0.2584455013, 0.0984705389, -0.0661862344, 0.0582034886, -0.2907032967, 0.0956149846, 0.0202915296, 0.3308885098, -0.6335689425, -0.3468575478, -0.5786883831, -0.2100413293, -0.0277421549, 0.1687913835, -0.2702192664, -0.292011112, 0.3478227854, 0.1770585477, 0.0921898633, 0.5697173476, -0.0001172402, 0.0715135038, 0.3933096528, -0.0787534714, -0.2456896901, -0.3918710649, -0.3461531997, -0.3291956782, 0.3686218858, -0.1073925793, 0.1058269143, 0.4041658938, -0.1357309222, -0.1332752556, 0.2626952827, 0.1352799237, 0.1936344355, 0.549198091, 0.163060531, -0.1924920976, -0.1125868857, -0.1933780015, -0.2020826638, 0.746152997, 0.4174178243, 0.0168560594, -0.0510252491, 0.2604950666, -0.099267967, 0.2890874743, 0.1862410009, -0.0334219113, 0.1051013544, -0.4805828929, 0.1006374806, 0.1743777096, 0.480671823, -0.2334272861, 0.04439044, -0.1220246479, 0.2094738185, -0.2924675345, 0.2619006336, -0.0985703841, -0.2118595243, 0.0490083471, -0.0226966478, -0.08961723, -0.012307018, 0.0164375044, -0.0933861509, 0.3655070961, -0.1430073082, -0.1118268147, 0.0698660463, -0.1096414328, 0.5018093586, -0.0161827672, -0.0268675704, 0.2063283324, -0.468000412, -0.009329766, -0.0988704413, -0.1408490539, -0.0516989529, -0.1014948338, -0.0361870378, 0.0174666513, -0.1110087484, 0.303483516, 0.1848025918, 0.1422501206, 0.0347586609, 0.0182987787, 0.1226538271, 0.2864285111, -0.2007628381, 0.2273952365, -0.2592824101, -0.3118796945, 0.1845090538, -0.0292139463, 0.2715787292, -0.0037106648, -0.3190622926, -0.1818457097, 0.009568125, 0.105042167, 0.0446226522, 0.3990530968, 0.0557957664, 0.1057087034, -0.0346218869, 0.0016939882, -0.3566538692, -0.2394381016, -0.053845346, 0.193696633, -0.0642800629, -0.1152990609, 0.067803055, -0.1549989581, 0.2601867318, -0.0124206878, 0.309204936, -0.0599603467, 0.1036740988, -0.3025383949, -0.0606453419, 0.3319081068, 0.1287348866, 0.0872026384, -0.0623134449, -0.2055783868, -0.0778878257, 0.2355169654, -0.4770619273, -0.1442365348, -0.0243144315, 0.1429467648, -0.1339151561, -0.2244311124, -0.5850229859, 0.1648343056, 0.1447638273, -0.0812813714, -0.084962219, -0.306283325, -0.2330713272, -0.1535829455, 0.1236878857, 0.4482832849, -0.2309286147, -0.1423144341, -0.2176907957, 0.1205274761, 0.1272703707, 0.2348232567, -0.2021543831, 0.173609212, -0.0962642506, -0.1171422303, 0.4906477928, -0.432636261, -0.467125237, -0.0203477908, -0.2660760581, -0.0052544475, -0.0897066966, 0.0485794693, 0.3577233553, -0.0669408888, 0.5458387733, 0.2629371881, -0.1390328705, -0.0366041884, -0.1640907526, -0.4099055231, 0.1294254959, 0.0418197438, 0.1834631562, -0.2177713662, 0.2030323595, -0.0533744358, 0.1012381911, 0.1859945059, -0.1211299002, 0.3843334019, 0.2429010719, -0.2223787457, 0.0372734405, -0.1859576702, -0.4775209129, 0.2240481824, 0.4092943966, 0.0799715817, -0.0674989671, 0.0513248593, -0.4381962717, 0.0791065469, -0.2594444454, 0.0676422268, 0.0994127095, -0.0666695163, -0.1751303971, 0.0889265537, -0.2604831457, 0.7403808832, 0.0377079099, 0.2175932825, -0.3183420599, 0.2157882154, -0.1859038621, -0.3081801534, 0.1762925833, 0.1361712664, 0.0753256083, -0.092272833, -0.2389077395, 0.1421216428, 0.2554137111, 0.1713413596, 0.0618918873, -0.2776554823, 0.4123668075, -0.2740119994, 0.0123247653, -0.1066840664, 0.2085701227, 0.0058231726, 0.2551180422, 0.1565713584, -0.3707029223, -0.0410734639, -0.0305119678, 0.0905383453, 0.372643888, 0.1239962727, -0.0050923303, -0.1856489778, 0.3251838386, 0.2222951651, 0.1924738139, 0.0937424973, -0.1297319382, 0.2881349325, 0.30617553, 0.2452445179, 0.0387792364, -0.2685612738, -0.2554306686, 0.0633643866, 0.1922869384, 0.2518092692, 0.4446451962, 0.1803889573, 0.1049192324, 0.0316312686, 0.031847693, -0.1561173946, 0.1151200309, 0.2919994891, 0.2558411658, 0.131103307, 0.4120823443, 0.096743837, -0.0789982527, -0.3894119263, 0.1753252149, 0.1503110975, -0.3317721188, 0.0766261071, -0.2146017253, -0.1139467657, -0.1419461071, -0.4253392518, -0.1464537084, -0.1978350878, -0.1058005393, 0.2810257375, 0.2650624812, 0.1936623752, -0.0239941888, 0.0500164628, 0.0625041798, -0.142483741, -0.0558168441, -0.2506769896, -0.0925875232, 0.0015160255, 0.3277395666, 0.2468108237, 0.3685059547, -0.3038309813, -0.0695630237, 0.1437006891, -0.3320977092, 0.1763453931, -0.0056826142, 0.2919799089, -0.0134429336, -0.0779715031, -0.3206295371, -0.1939176321, 0.0215364322, -0.1346230507, -0.1827464998, 0.0472791493, -0.1800283492, -0.2297735512, -0.0019909069, -0.2926881909, -0.4344462454, -0.3998569846, -0.3682101965, 0.0472466275, -0.0089031905, 0.4603003263, -0.0427163094, 0.2933925986, 0.2250695825, 0.0508381277, 0.0179359838, -0.3330910802, 0.473382175, -0.2865110636, -0.2936576903, 0.2801202536, -0.2680463195, 0.3836089969, 0.0181831606, -0.1104434952, -0.2135312706, -0.0214796029, 0.3837368488, -0.1009401828, 0.0416827798, 0.084635973, 0.1136623472, 0.0782582611, -0.092406705, -0.1815527827, -0.2040502727, 0.2196321487, 0.1930784434, -0.1657153219, 0.2265982032, -0.0363360234, 0.8421135545, 0.0771994293, -0.0400504507, 0.3015676141, -0.0616557226, 0.306491971, -0.1064243615, -0.5121487379, -0.0696848258, -0.1073109284, -0.0392840207, 0.0819718167, -0.1839760989, -0.1112220287, -0.2847858667, -0.2727974355, -0.3160192966, -0.2918522358, -0.1147851199, -0.2003913522, 0.1308546364, 0.1986790895, -0.0612917282, -0.1620079875, -0.1124964654, 0.0489826202, 0.4355247021, -0.4208027422, -0.0186148286, 0.3795595169, -0.0728558153, -0.3464909792, 0.1986526847, 0.1317851692, 0.3303271532, 0.0766258389, 0.1182001382, 0.0601410978, -0.0493250415, 0.1122457981, 0.0591964722, -0.0800002143, 0.2366163731, -0.0146943107, -0.4012733698, -0.0577432923, -0.2255626768, 0.2240987569, 0.479319334, 0.0861524194, -0.2667841911, 0.2115175128, 0.2363316417, 0.1412731707, -0.1142227203, -0.1485226303, -0.4387517571, -0.3134375215, -0.3784105778, -0.060045056, 0.1850461066, 0.2391747683, 0.0416694209, -0.070869118, -0.0640275925, -0.2169732004, 0.061041642, 0.3596895039, 0.1482841223, 0.27044788, 0.5801549554, 0.1271516532, -0.2473593056, 0.4470185339, 0.5865608454, 0.0028331866, -0.5835168362, -0.0279991981, -0.1797395349, 0.2348886877, 0.131520167, -0.0706731975, 0.0163306538, 0.059565261, -0.1358521134, 0.3848748207, 0.3812656403, -0.063542679, 0.126247853, -0.4026651382, -0.1285913289, 0.0958477706, 0.0007422715, 0.1376990974, 0.460165292, -0.3796383739, -0.0598222017, 0.0470986143, -0.1843538284, 0.6863651276, -0.0381891392, -0.2390153855, 0.2732533514, -0.1615029871, 0.2652592659, 0.113190338, 0.1857607663, -0.2762226164, -0.3076209426, 0.0923931673, -0.2266219556, 0.190025866, -0.1945814192, -0.3511309624, 0.2596142292, 0.0564561039, -0.1498301625, -0.0185760595, 0.0406053364, 0.002412701, -0.2937502563, -0.3525198698, 0.0517694727, -0.1905298233, 0.206172049, -0.1972418278, -0.1833462715, -0.138948068, -0.1865322292, -0.0331041887, -0.1090356708, -0.6445792317, 0.2370987236, 0.3314476907, -0.3087445498, 0.2005166709, -0.1111383587, 0.0950988755, -0.0293305609, -0.1739501357, 0.1265126467, 0.1993345171, 0.016686663, -0.1108884513, -0.1729527265, 0.4197724164, -0.0839657113, 0.0050037205, 0.0576665625, 0.0366225876, -0.0225341544, 0.4702344835, 0.3512614667, 0.3681570888, 0.1506927907, -0.0755757838, 0.1810474545, 0.2616754174, -0.1958780885, 0.0780423135, 0.1019753963, -0.1530846357, 0.2558068037, -0.1075144485, -0.1003247127, -0.0019224812, 0.3397728205, 0.1296714842, -0.0161000639, 0.1832215488, 0.1551722884, -0.2558426261, -0.0844762996, 0.1688348949, -0.3087919354, -0.3004137874, 0.2412770689, -0.0199144315, 0.0491271764, 0.0744941309, 0.7340950966, 0.24561508, -0.3685690761, -0.1320784092, -0.3772929311, -0.5326014757, 0.1417691857, -0.1205238104, -0.0949430019, 0.2369499356, 0.383689642, 0.1208687499, 0.1284108013, -0.2208906114, 0.1052402034, -0.1584758013, 0.1540041119, 0.2756512463, -0.0960515812, 0.0372921787, 0.08598952, 0.0042421371, 0.1529782414, 0.0671000183, -0.2249542773, -0.1146583855, 0.1326804906, -0.1025537401, 0.0408709124, -0.1180262938, -0.1512854695, -0.2300350368, -0.1715024412, 0.1590516567, 0.0351239145, -0.0818419084, -0.1321558207, 0.2920050621, -0.0966294855, -0.2174014151, 0.4025671184, 0.1177948415, 0.0810076594, 0.0776670799, 0.1660298258, 0.1665422618, 0.1832788885, 0.0175299421, -0.2253395021, -0.0916717052, -0.1765126288, 0.0942777842, -0.3320891857, -0.0140229762, 0.0699954182, -0.027506955, 0.4203797281, -0.1289568245, -0.2099849582, 0.0472411402, 0.0857809708, -0.388807714, 0.0311132781, 0.304264158, 0.1548588127, 0.1754325479, 0.2722877264, 0.0817718208, 0.0818849355, 0.1544099301, 0.3952518702, 0.2447239757, -0.0228371527, 0.2661113739, -0.2058011889, 0.0857821628, 0.2306345701, 0.2361092716, 0.1184324101, 0.0381050706, 0.1526700407, -0.1501826346, 0.2959786355, 0.1446439773, -0.1672736853, 0.2365310937, -0.359602809, 0.2424565852, -0.0986768976, 0.0569082573, -0.1363284588, 0.1417863071, 0.3276463747, -0.0491864942, -0.0884466618, -0.1608528197, -0.00304074, -0.3001902699, 0.2709412277, 0.4638243616, -0.0976313055, -0.0931243002, -0.0431756154, 0.2145774961, 0.2175286859, 0.537478745, 0.3159117103, -0.1668996662, -0.4896297455, -0.1224406213, 0.5082057714, -0.1266732216, -0.1844531, 0.4623731971, -0.1348716021, 0.0100120371, -0.1652808934, 0.3222155571, 0.4884842932, 0.3006309271, -0.13834849, -0.2075258195, 0.2566274405, -0.180105269, -0.13837412, 0.2107214779, 0.0596841015, 0.2941677868, 0.298170805, 0.0842537507, -0.169087857, -0.0320376828, 0.2207306474, -0.3357620537, -0.4409198463, 0.2064284831, -0.1567063481, -0.0026588812, -0.1897848248, 0.0980004668, -0.4563891292, 0.2288244963, 0.3156722784, -0.2224389613, -0.0670022815, -0.1489629298, 0.0449594744, -0.0307992715, 0.3605276346, 0.2467248142, 0.3562101126, -0.20113042, -0.1037737876, -0.8396953344, 0.3146010339, 0.0336661823, -0.0117304623, -0.0385529473, 0.1393252015, -0.0011310764, 0.3212940693, 0.4201126099, 0.0454291739, 0.190120995, 0.0372287929, -0.4620156288, -0.2717561424, 0.0900404453, -0.4454765022, 0.0050570294, -0.3917895257, -0.0040985327, -0.2824521661, -0.0414678939, -0.0273977276, -0.4465277791, 0.2701759338, 0.3022375703, 0.2959741652, -0.0437555872, 0.6722489595, -0.0536569282, 0.0996356979, -0.0690651685, -0.3176439703, -0.026964277, 0.1578305513, 0.3953223825, 0.2114284039, -0.2491105199, 0.0748831481, -0.1284853518, 0.1337049007, 0.1330320835, 0.0128991976, -0.2782161832, 0.0685418323, -0.1654137671, 0.4030527472, -0.1301136017, 0.1823723018, 0.0637911931, 0.2705151141, -0.3036564291, -0.3571579158, 0.3911986947, -0.3434484899, -0.458597362, -0.427672565, 0.2904645205, 0.1598202735, -0.2049571276, -0.4742087126, 0.0093036443, 0.2549891472, -0.1533088088, -0.1555009484, 0.5398073196, 0.0699542463, 0.2142625153, -0.121996358, 0.2098632604, 0.0046634469, -0.1189016849, -0.1165047958, -0.0643655658 ]
https://github.com/huggingface/datasets/issues/2695
Cannot import load_dataset on Colab
Hi, updating tqdm to the newest version resolves the issue for me. You can do this as follows in Colab: ``` !pip install tqdm --upgrade ```
## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0
26
Cannot import load_dataset on Colab ## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0 Hi, updating tqdm to the newest version resolves the issue for me. You can do this as follows in Colab: ``` !pip install tqdm --upgrade ```
[ -0.4603259563, -0.2148274332, -0.0243752003, 0.2682135403, 0.1354126334, 0.0519945472, 0.4973767996, -0.1074849591, 0.1983706802, 0.0849532038, -0.3266305327, 0.4753238261, -0.1742699891, 0.148748368, -0.2584455013, 0.0984705389, -0.0661862344, 0.0582034886, -0.2907032967, 0.0956149846, 0.0202915296, 0.3308885098, -0.6335689425, -0.3468575478, -0.5786883831, -0.2100413293, -0.0277421549, 0.1687913835, -0.2702192664, -0.292011112, 0.3478227854, 0.1770585477, 0.0921898633, 0.5697173476, -0.0001172402, 0.0715135038, 0.3933096528, -0.0787534714, -0.2456896901, -0.3918710649, -0.3461531997, -0.3291956782, 0.3686218858, -0.1073925793, 0.1058269143, 0.4041658938, -0.1357309222, -0.1332752556, 0.2626952827, 0.1352799237, 0.1936344355, 0.549198091, 0.163060531, -0.1924920976, -0.1125868857, -0.1933780015, -0.2020826638, 0.746152997, 0.4174178243, 0.0168560594, -0.0510252491, 0.2604950666, -0.099267967, 0.2890874743, 0.1862410009, -0.0334219113, 0.1051013544, -0.4805828929, 0.1006374806, 0.1743777096, 0.480671823, -0.2334272861, 0.04439044, -0.1220246479, 0.2094738185, -0.2924675345, 0.2619006336, -0.0985703841, -0.2118595243, 0.0490083471, -0.0226966478, -0.08961723, -0.012307018, 0.0164375044, -0.0933861509, 0.3655070961, -0.1430073082, -0.1118268147, 0.0698660463, -0.1096414328, 0.5018093586, -0.0161827672, -0.0268675704, 0.2063283324, -0.468000412, -0.009329766, -0.0988704413, -0.1408490539, -0.0516989529, -0.1014948338, -0.0361870378, 0.0174666513, -0.1110087484, 0.303483516, 0.1848025918, 0.1422501206, 0.0347586609, 0.0182987787, 0.1226538271, 0.2864285111, -0.2007628381, 0.2273952365, -0.2592824101, -0.3118796945, 0.1845090538, -0.0292139463, 0.2715787292, -0.0037106648, -0.3190622926, -0.1818457097, 0.009568125, 0.105042167, 0.0446226522, 0.3990530968, 0.0557957664, 0.1057087034, -0.0346218869, 0.0016939882, -0.3566538692, -0.2394381016, -0.053845346, 0.193696633, -0.0642800629, -0.1152990609, 0.067803055, -0.1549989581, 0.2601867318, -0.0124206878, 0.309204936, -0.0599603467, 0.1036740988, -0.3025383949, -0.0606453419, 0.3319081068, 0.1287348866, 0.0872026384, -0.0623134449, -0.2055783868, -0.0778878257, 0.2355169654, -0.4770619273, -0.1442365348, -0.0243144315, 0.1429467648, -0.1339151561, -0.2244311124, -0.5850229859, 0.1648343056, 0.1447638273, -0.0812813714, -0.084962219, -0.306283325, -0.2330713272, -0.1535829455, 0.1236878857, 0.4482832849, -0.2309286147, -0.1423144341, -0.2176907957, 0.1205274761, 0.1272703707, 0.2348232567, -0.2021543831, 0.173609212, -0.0962642506, -0.1171422303, 0.4906477928, -0.432636261, -0.467125237, -0.0203477908, -0.2660760581, -0.0052544475, -0.0897066966, 0.0485794693, 0.3577233553, -0.0669408888, 0.5458387733, 0.2629371881, -0.1390328705, -0.0366041884, -0.1640907526, -0.4099055231, 0.1294254959, 0.0418197438, 0.1834631562, -0.2177713662, 0.2030323595, -0.0533744358, 0.1012381911, 0.1859945059, -0.1211299002, 0.3843334019, 0.2429010719, -0.2223787457, 0.0372734405, -0.1859576702, -0.4775209129, 0.2240481824, 0.4092943966, 0.0799715817, -0.0674989671, 0.0513248593, -0.4381962717, 0.0791065469, -0.2594444454, 0.0676422268, 0.0994127095, -0.0666695163, -0.1751303971, 0.0889265537, -0.2604831457, 0.7403808832, 0.0377079099, 0.2175932825, -0.3183420599, 0.2157882154, -0.1859038621, -0.3081801534, 0.1762925833, 0.1361712664, 0.0753256083, -0.092272833, -0.2389077395, 0.1421216428, 0.2554137111, 0.1713413596, 0.0618918873, -0.2776554823, 0.4123668075, -0.2740119994, 0.0123247653, -0.1066840664, 0.2085701227, 0.0058231726, 0.2551180422, 0.1565713584, -0.3707029223, -0.0410734639, -0.0305119678, 0.0905383453, 0.372643888, 0.1239962727, -0.0050923303, -0.1856489778, 0.3251838386, 0.2222951651, 0.1924738139, 0.0937424973, -0.1297319382, 0.2881349325, 0.30617553, 0.2452445179, 0.0387792364, -0.2685612738, -0.2554306686, 0.0633643866, 0.1922869384, 0.2518092692, 0.4446451962, 0.1803889573, 0.1049192324, 0.0316312686, 0.031847693, -0.1561173946, 0.1151200309, 0.2919994891, 0.2558411658, 0.131103307, 0.4120823443, 0.096743837, -0.0789982527, -0.3894119263, 0.1753252149, 0.1503110975, -0.3317721188, 0.0766261071, -0.2146017253, -0.1139467657, -0.1419461071, -0.4253392518, -0.1464537084, -0.1978350878, -0.1058005393, 0.2810257375, 0.2650624812, 0.1936623752, -0.0239941888, 0.0500164628, 0.0625041798, -0.142483741, -0.0558168441, -0.2506769896, -0.0925875232, 0.0015160255, 0.3277395666, 0.2468108237, 0.3685059547, -0.3038309813, -0.0695630237, 0.1437006891, -0.3320977092, 0.1763453931, -0.0056826142, 0.2919799089, -0.0134429336, -0.0779715031, -0.3206295371, -0.1939176321, 0.0215364322, -0.1346230507, -0.1827464998, 0.0472791493, -0.1800283492, -0.2297735512, -0.0019909069, -0.2926881909, -0.4344462454, -0.3998569846, -0.3682101965, 0.0472466275, -0.0089031905, 0.4603003263, -0.0427163094, 0.2933925986, 0.2250695825, 0.0508381277, 0.0179359838, -0.3330910802, 0.473382175, -0.2865110636, -0.2936576903, 0.2801202536, -0.2680463195, 0.3836089969, 0.0181831606, -0.1104434952, -0.2135312706, -0.0214796029, 0.3837368488, -0.1009401828, 0.0416827798, 0.084635973, 0.1136623472, 0.0782582611, -0.092406705, -0.1815527827, -0.2040502727, 0.2196321487, 0.1930784434, -0.1657153219, 0.2265982032, -0.0363360234, 0.8421135545, 0.0771994293, -0.0400504507, 0.3015676141, -0.0616557226, 0.306491971, -0.1064243615, -0.5121487379, -0.0696848258, -0.1073109284, -0.0392840207, 0.0819718167, -0.1839760989, -0.1112220287, -0.2847858667, -0.2727974355, -0.3160192966, -0.2918522358, -0.1147851199, -0.2003913522, 0.1308546364, 0.1986790895, -0.0612917282, -0.1620079875, -0.1124964654, 0.0489826202, 0.4355247021, -0.4208027422, -0.0186148286, 0.3795595169, -0.0728558153, -0.3464909792, 0.1986526847, 0.1317851692, 0.3303271532, 0.0766258389, 0.1182001382, 0.0601410978, -0.0493250415, 0.1122457981, 0.0591964722, -0.0800002143, 0.2366163731, -0.0146943107, -0.4012733698, -0.0577432923, -0.2255626768, 0.2240987569, 0.479319334, 0.0861524194, -0.2667841911, 0.2115175128, 0.2363316417, 0.1412731707, -0.1142227203, -0.1485226303, -0.4387517571, -0.3134375215, -0.3784105778, -0.060045056, 0.1850461066, 0.2391747683, 0.0416694209, -0.070869118, -0.0640275925, -0.2169732004, 0.061041642, 0.3596895039, 0.1482841223, 0.27044788, 0.5801549554, 0.1271516532, -0.2473593056, 0.4470185339, 0.5865608454, 0.0028331866, -0.5835168362, -0.0279991981, -0.1797395349, 0.2348886877, 0.131520167, -0.0706731975, 0.0163306538, 0.059565261, -0.1358521134, 0.3848748207, 0.3812656403, -0.063542679, 0.126247853, -0.4026651382, -0.1285913289, 0.0958477706, 0.0007422715, 0.1376990974, 0.460165292, -0.3796383739, -0.0598222017, 0.0470986143, -0.1843538284, 0.6863651276, -0.0381891392, -0.2390153855, 0.2732533514, -0.1615029871, 0.2652592659, 0.113190338, 0.1857607663, -0.2762226164, -0.3076209426, 0.0923931673, -0.2266219556, 0.190025866, -0.1945814192, -0.3511309624, 0.2596142292, 0.0564561039, -0.1498301625, -0.0185760595, 0.0406053364, 0.002412701, -0.2937502563, -0.3525198698, 0.0517694727, -0.1905298233, 0.206172049, -0.1972418278, -0.1833462715, -0.138948068, -0.1865322292, -0.0331041887, -0.1090356708, -0.6445792317, 0.2370987236, 0.3314476907, -0.3087445498, 0.2005166709, -0.1111383587, 0.0950988755, -0.0293305609, -0.1739501357, 0.1265126467, 0.1993345171, 0.016686663, -0.1108884513, -0.1729527265, 0.4197724164, -0.0839657113, 0.0050037205, 0.0576665625, 0.0366225876, -0.0225341544, 0.4702344835, 0.3512614667, 0.3681570888, 0.1506927907, -0.0755757838, 0.1810474545, 0.2616754174, -0.1958780885, 0.0780423135, 0.1019753963, -0.1530846357, 0.2558068037, -0.1075144485, -0.1003247127, -0.0019224812, 0.3397728205, 0.1296714842, -0.0161000639, 0.1832215488, 0.1551722884, -0.2558426261, -0.0844762996, 0.1688348949, -0.3087919354, -0.3004137874, 0.2412770689, -0.0199144315, 0.0491271764, 0.0744941309, 0.7340950966, 0.24561508, -0.3685690761, -0.1320784092, -0.3772929311, -0.5326014757, 0.1417691857, -0.1205238104, -0.0949430019, 0.2369499356, 0.383689642, 0.1208687499, 0.1284108013, -0.2208906114, 0.1052402034, -0.1584758013, 0.1540041119, 0.2756512463, -0.0960515812, 0.0372921787, 0.08598952, 0.0042421371, 0.1529782414, 0.0671000183, -0.2249542773, -0.1146583855, 0.1326804906, -0.1025537401, 0.0408709124, -0.1180262938, -0.1512854695, -0.2300350368, -0.1715024412, 0.1590516567, 0.0351239145, -0.0818419084, -0.1321558207, 0.2920050621, -0.0966294855, -0.2174014151, 0.4025671184, 0.1177948415, 0.0810076594, 0.0776670799, 0.1660298258, 0.1665422618, 0.1832788885, 0.0175299421, -0.2253395021, -0.0916717052, -0.1765126288, 0.0942777842, -0.3320891857, -0.0140229762, 0.0699954182, -0.027506955, 0.4203797281, -0.1289568245, -0.2099849582, 0.0472411402, 0.0857809708, -0.388807714, 0.0311132781, 0.304264158, 0.1548588127, 0.1754325479, 0.2722877264, 0.0817718208, 0.0818849355, 0.1544099301, 0.3952518702, 0.2447239757, -0.0228371527, 0.2661113739, -0.2058011889, 0.0857821628, 0.2306345701, 0.2361092716, 0.1184324101, 0.0381050706, 0.1526700407, -0.1501826346, 0.2959786355, 0.1446439773, -0.1672736853, 0.2365310937, -0.359602809, 0.2424565852, -0.0986768976, 0.0569082573, -0.1363284588, 0.1417863071, 0.3276463747, -0.0491864942, -0.0884466618, -0.1608528197, -0.00304074, -0.3001902699, 0.2709412277, 0.4638243616, -0.0976313055, -0.0931243002, -0.0431756154, 0.2145774961, 0.2175286859, 0.537478745, 0.3159117103, -0.1668996662, -0.4896297455, -0.1224406213, 0.5082057714, -0.1266732216, -0.1844531, 0.4623731971, -0.1348716021, 0.0100120371, -0.1652808934, 0.3222155571, 0.4884842932, 0.3006309271, -0.13834849, -0.2075258195, 0.2566274405, -0.180105269, -0.13837412, 0.2107214779, 0.0596841015, 0.2941677868, 0.298170805, 0.0842537507, -0.169087857, -0.0320376828, 0.2207306474, -0.3357620537, -0.4409198463, 0.2064284831, -0.1567063481, -0.0026588812, -0.1897848248, 0.0980004668, -0.4563891292, 0.2288244963, 0.3156722784, -0.2224389613, -0.0670022815, -0.1489629298, 0.0449594744, -0.0307992715, 0.3605276346, 0.2467248142, 0.3562101126, -0.20113042, -0.1037737876, -0.8396953344, 0.3146010339, 0.0336661823, -0.0117304623, -0.0385529473, 0.1393252015, -0.0011310764, 0.3212940693, 0.4201126099, 0.0454291739, 0.190120995, 0.0372287929, -0.4620156288, -0.2717561424, 0.0900404453, -0.4454765022, 0.0050570294, -0.3917895257, -0.0040985327, -0.2824521661, -0.0414678939, -0.0273977276, -0.4465277791, 0.2701759338, 0.3022375703, 0.2959741652, -0.0437555872, 0.6722489595, -0.0536569282, 0.0996356979, -0.0690651685, -0.3176439703, -0.026964277, 0.1578305513, 0.3953223825, 0.2114284039, -0.2491105199, 0.0748831481, -0.1284853518, 0.1337049007, 0.1330320835, 0.0128991976, -0.2782161832, 0.0685418323, -0.1654137671, 0.4030527472, -0.1301136017, 0.1823723018, 0.0637911931, 0.2705151141, -0.3036564291, -0.3571579158, 0.3911986947, -0.3434484899, -0.458597362, -0.427672565, 0.2904645205, 0.1598202735, -0.2049571276, -0.4742087126, 0.0093036443, 0.2549891472, -0.1533088088, -0.1555009484, 0.5398073196, 0.0699542463, 0.2142625153, -0.121996358, 0.2098632604, 0.0046634469, -0.1189016849, -0.1165047958, -0.0643655658 ]
https://github.com/huggingface/datasets/issues/2695
Cannot import load_dataset on Colab
Hi @bayartsogt-ya and @phosseini, thanks for reporting. We are fixing this critical issue and making an urgent patch release of the `datasets` library today. In the meantime, as pointed out by @mariosasko, you can circumvent this issue by updating the `tqdm` library: ``` !pip install -U tqdm ```
## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0
48
Cannot import load_dataset on Colab ## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0 Hi @bayartsogt-ya and @phosseini, thanks for reporting. We are fixing this critical issue and making an urgent patch release of the `datasets` library today. In the meantime, as pointed out by @mariosasko, you can circumvent this issue by updating the `tqdm` library: ``` !pip install -U tqdm ```
[ -0.4603259563, -0.2148274332, -0.0243752003, 0.2682135403, 0.1354126334, 0.0519945472, 0.4973767996, -0.1074849591, 0.1983706802, 0.0849532038, -0.3266305327, 0.4753238261, -0.1742699891, 0.148748368, -0.2584455013, 0.0984705389, -0.0661862344, 0.0582034886, -0.2907032967, 0.0956149846, 0.0202915296, 0.3308885098, -0.6335689425, -0.3468575478, -0.5786883831, -0.2100413293, -0.0277421549, 0.1687913835, -0.2702192664, -0.292011112, 0.3478227854, 0.1770585477, 0.0921898633, 0.5697173476, -0.0001172402, 0.0715135038, 0.3933096528, -0.0787534714, -0.2456896901, -0.3918710649, -0.3461531997, -0.3291956782, 0.3686218858, -0.1073925793, 0.1058269143, 0.4041658938, -0.1357309222, -0.1332752556, 0.2626952827, 0.1352799237, 0.1936344355, 0.549198091, 0.163060531, -0.1924920976, -0.1125868857, -0.1933780015, -0.2020826638, 0.746152997, 0.4174178243, 0.0168560594, -0.0510252491, 0.2604950666, -0.099267967, 0.2890874743, 0.1862410009, -0.0334219113, 0.1051013544, -0.4805828929, 0.1006374806, 0.1743777096, 0.480671823, -0.2334272861, 0.04439044, -0.1220246479, 0.2094738185, -0.2924675345, 0.2619006336, -0.0985703841, -0.2118595243, 0.0490083471, -0.0226966478, -0.08961723, -0.012307018, 0.0164375044, -0.0933861509, 0.3655070961, -0.1430073082, -0.1118268147, 0.0698660463, -0.1096414328, 0.5018093586, -0.0161827672, -0.0268675704, 0.2063283324, -0.468000412, -0.009329766, -0.0988704413, -0.1408490539, -0.0516989529, -0.1014948338, -0.0361870378, 0.0174666513, -0.1110087484, 0.303483516, 0.1848025918, 0.1422501206, 0.0347586609, 0.0182987787, 0.1226538271, 0.2864285111, -0.2007628381, 0.2273952365, -0.2592824101, -0.3118796945, 0.1845090538, -0.0292139463, 0.2715787292, -0.0037106648, -0.3190622926, -0.1818457097, 0.009568125, 0.105042167, 0.0446226522, 0.3990530968, 0.0557957664, 0.1057087034, -0.0346218869, 0.0016939882, -0.3566538692, -0.2394381016, -0.053845346, 0.193696633, -0.0642800629, -0.1152990609, 0.067803055, -0.1549989581, 0.2601867318, -0.0124206878, 0.309204936, -0.0599603467, 0.1036740988, -0.3025383949, -0.0606453419, 0.3319081068, 0.1287348866, 0.0872026384, -0.0623134449, -0.2055783868, -0.0778878257, 0.2355169654, -0.4770619273, -0.1442365348, -0.0243144315, 0.1429467648, -0.1339151561, -0.2244311124, -0.5850229859, 0.1648343056, 0.1447638273, -0.0812813714, -0.084962219, -0.306283325, -0.2330713272, -0.1535829455, 0.1236878857, 0.4482832849, -0.2309286147, -0.1423144341, -0.2176907957, 0.1205274761, 0.1272703707, 0.2348232567, -0.2021543831, 0.173609212, -0.0962642506, -0.1171422303, 0.4906477928, -0.432636261, -0.467125237, -0.0203477908, -0.2660760581, -0.0052544475, -0.0897066966, 0.0485794693, 0.3577233553, -0.0669408888, 0.5458387733, 0.2629371881, -0.1390328705, -0.0366041884, -0.1640907526, -0.4099055231, 0.1294254959, 0.0418197438, 0.1834631562, -0.2177713662, 0.2030323595, -0.0533744358, 0.1012381911, 0.1859945059, -0.1211299002, 0.3843334019, 0.2429010719, -0.2223787457, 0.0372734405, -0.1859576702, -0.4775209129, 0.2240481824, 0.4092943966, 0.0799715817, -0.0674989671, 0.0513248593, -0.4381962717, 0.0791065469, -0.2594444454, 0.0676422268, 0.0994127095, -0.0666695163, -0.1751303971, 0.0889265537, -0.2604831457, 0.7403808832, 0.0377079099, 0.2175932825, -0.3183420599, 0.2157882154, -0.1859038621, -0.3081801534, 0.1762925833, 0.1361712664, 0.0753256083, -0.092272833, -0.2389077395, 0.1421216428, 0.2554137111, 0.1713413596, 0.0618918873, -0.2776554823, 0.4123668075, -0.2740119994, 0.0123247653, -0.1066840664, 0.2085701227, 0.0058231726, 0.2551180422, 0.1565713584, -0.3707029223, -0.0410734639, -0.0305119678, 0.0905383453, 0.372643888, 0.1239962727, -0.0050923303, -0.1856489778, 0.3251838386, 0.2222951651, 0.1924738139, 0.0937424973, -0.1297319382, 0.2881349325, 0.30617553, 0.2452445179, 0.0387792364, -0.2685612738, -0.2554306686, 0.0633643866, 0.1922869384, 0.2518092692, 0.4446451962, 0.1803889573, 0.1049192324, 0.0316312686, 0.031847693, -0.1561173946, 0.1151200309, 0.2919994891, 0.2558411658, 0.131103307, 0.4120823443, 0.096743837, -0.0789982527, -0.3894119263, 0.1753252149, 0.1503110975, -0.3317721188, 0.0766261071, -0.2146017253, -0.1139467657, -0.1419461071, -0.4253392518, -0.1464537084, -0.1978350878, -0.1058005393, 0.2810257375, 0.2650624812, 0.1936623752, -0.0239941888, 0.0500164628, 0.0625041798, -0.142483741, -0.0558168441, -0.2506769896, -0.0925875232, 0.0015160255, 0.3277395666, 0.2468108237, 0.3685059547, -0.3038309813, -0.0695630237, 0.1437006891, -0.3320977092, 0.1763453931, -0.0056826142, 0.2919799089, -0.0134429336, -0.0779715031, -0.3206295371, -0.1939176321, 0.0215364322, -0.1346230507, -0.1827464998, 0.0472791493, -0.1800283492, -0.2297735512, -0.0019909069, -0.2926881909, -0.4344462454, -0.3998569846, -0.3682101965, 0.0472466275, -0.0089031905, 0.4603003263, -0.0427163094, 0.2933925986, 0.2250695825, 0.0508381277, 0.0179359838, -0.3330910802, 0.473382175, -0.2865110636, -0.2936576903, 0.2801202536, -0.2680463195, 0.3836089969, 0.0181831606, -0.1104434952, -0.2135312706, -0.0214796029, 0.3837368488, -0.1009401828, 0.0416827798, 0.084635973, 0.1136623472, 0.0782582611, -0.092406705, -0.1815527827, -0.2040502727, 0.2196321487, 0.1930784434, -0.1657153219, 0.2265982032, -0.0363360234, 0.8421135545, 0.0771994293, -0.0400504507, 0.3015676141, -0.0616557226, 0.306491971, -0.1064243615, -0.5121487379, -0.0696848258, -0.1073109284, -0.0392840207, 0.0819718167, -0.1839760989, -0.1112220287, -0.2847858667, -0.2727974355, -0.3160192966, -0.2918522358, -0.1147851199, -0.2003913522, 0.1308546364, 0.1986790895, -0.0612917282, -0.1620079875, -0.1124964654, 0.0489826202, 0.4355247021, -0.4208027422, -0.0186148286, 0.3795595169, -0.0728558153, -0.3464909792, 0.1986526847, 0.1317851692, 0.3303271532, 0.0766258389, 0.1182001382, 0.0601410978, -0.0493250415, 0.1122457981, 0.0591964722, -0.0800002143, 0.2366163731, -0.0146943107, -0.4012733698, -0.0577432923, -0.2255626768, 0.2240987569, 0.479319334, 0.0861524194, -0.2667841911, 0.2115175128, 0.2363316417, 0.1412731707, -0.1142227203, -0.1485226303, -0.4387517571, -0.3134375215, -0.3784105778, -0.060045056, 0.1850461066, 0.2391747683, 0.0416694209, -0.070869118, -0.0640275925, -0.2169732004, 0.061041642, 0.3596895039, 0.1482841223, 0.27044788, 0.5801549554, 0.1271516532, -0.2473593056, 0.4470185339, 0.5865608454, 0.0028331866, -0.5835168362, -0.0279991981, -0.1797395349, 0.2348886877, 0.131520167, -0.0706731975, 0.0163306538, 0.059565261, -0.1358521134, 0.3848748207, 0.3812656403, -0.063542679, 0.126247853, -0.4026651382, -0.1285913289, 0.0958477706, 0.0007422715, 0.1376990974, 0.460165292, -0.3796383739, -0.0598222017, 0.0470986143, -0.1843538284, 0.6863651276, -0.0381891392, -0.2390153855, 0.2732533514, -0.1615029871, 0.2652592659, 0.113190338, 0.1857607663, -0.2762226164, -0.3076209426, 0.0923931673, -0.2266219556, 0.190025866, -0.1945814192, -0.3511309624, 0.2596142292, 0.0564561039, -0.1498301625, -0.0185760595, 0.0406053364, 0.002412701, -0.2937502563, -0.3525198698, 0.0517694727, -0.1905298233, 0.206172049, -0.1972418278, -0.1833462715, -0.138948068, -0.1865322292, -0.0331041887, -0.1090356708, -0.6445792317, 0.2370987236, 0.3314476907, -0.3087445498, 0.2005166709, -0.1111383587, 0.0950988755, -0.0293305609, -0.1739501357, 0.1265126467, 0.1993345171, 0.016686663, -0.1108884513, -0.1729527265, 0.4197724164, -0.0839657113, 0.0050037205, 0.0576665625, 0.0366225876, -0.0225341544, 0.4702344835, 0.3512614667, 0.3681570888, 0.1506927907, -0.0755757838, 0.1810474545, 0.2616754174, -0.1958780885, 0.0780423135, 0.1019753963, -0.1530846357, 0.2558068037, -0.1075144485, -0.1003247127, -0.0019224812, 0.3397728205, 0.1296714842, -0.0161000639, 0.1832215488, 0.1551722884, -0.2558426261, -0.0844762996, 0.1688348949, -0.3087919354, -0.3004137874, 0.2412770689, -0.0199144315, 0.0491271764, 0.0744941309, 0.7340950966, 0.24561508, -0.3685690761, -0.1320784092, -0.3772929311, -0.5326014757, 0.1417691857, -0.1205238104, -0.0949430019, 0.2369499356, 0.383689642, 0.1208687499, 0.1284108013, -0.2208906114, 0.1052402034, -0.1584758013, 0.1540041119, 0.2756512463, -0.0960515812, 0.0372921787, 0.08598952, 0.0042421371, 0.1529782414, 0.0671000183, -0.2249542773, -0.1146583855, 0.1326804906, -0.1025537401, 0.0408709124, -0.1180262938, -0.1512854695, -0.2300350368, -0.1715024412, 0.1590516567, 0.0351239145, -0.0818419084, -0.1321558207, 0.2920050621, -0.0966294855, -0.2174014151, 0.4025671184, 0.1177948415, 0.0810076594, 0.0776670799, 0.1660298258, 0.1665422618, 0.1832788885, 0.0175299421, -0.2253395021, -0.0916717052, -0.1765126288, 0.0942777842, -0.3320891857, -0.0140229762, 0.0699954182, -0.027506955, 0.4203797281, -0.1289568245, -0.2099849582, 0.0472411402, 0.0857809708, -0.388807714, 0.0311132781, 0.304264158, 0.1548588127, 0.1754325479, 0.2722877264, 0.0817718208, 0.0818849355, 0.1544099301, 0.3952518702, 0.2447239757, -0.0228371527, 0.2661113739, -0.2058011889, 0.0857821628, 0.2306345701, 0.2361092716, 0.1184324101, 0.0381050706, 0.1526700407, -0.1501826346, 0.2959786355, 0.1446439773, -0.1672736853, 0.2365310937, -0.359602809, 0.2424565852, -0.0986768976, 0.0569082573, -0.1363284588, 0.1417863071, 0.3276463747, -0.0491864942, -0.0884466618, -0.1608528197, -0.00304074, -0.3001902699, 0.2709412277, 0.4638243616, -0.0976313055, -0.0931243002, -0.0431756154, 0.2145774961, 0.2175286859, 0.537478745, 0.3159117103, -0.1668996662, -0.4896297455, -0.1224406213, 0.5082057714, -0.1266732216, -0.1844531, 0.4623731971, -0.1348716021, 0.0100120371, -0.1652808934, 0.3222155571, 0.4884842932, 0.3006309271, -0.13834849, -0.2075258195, 0.2566274405, -0.180105269, -0.13837412, 0.2107214779, 0.0596841015, 0.2941677868, 0.298170805, 0.0842537507, -0.169087857, -0.0320376828, 0.2207306474, -0.3357620537, -0.4409198463, 0.2064284831, -0.1567063481, -0.0026588812, -0.1897848248, 0.0980004668, -0.4563891292, 0.2288244963, 0.3156722784, -0.2224389613, -0.0670022815, -0.1489629298, 0.0449594744, -0.0307992715, 0.3605276346, 0.2467248142, 0.3562101126, -0.20113042, -0.1037737876, -0.8396953344, 0.3146010339, 0.0336661823, -0.0117304623, -0.0385529473, 0.1393252015, -0.0011310764, 0.3212940693, 0.4201126099, 0.0454291739, 0.190120995, 0.0372287929, -0.4620156288, -0.2717561424, 0.0900404453, -0.4454765022, 0.0050570294, -0.3917895257, -0.0040985327, -0.2824521661, -0.0414678939, -0.0273977276, -0.4465277791, 0.2701759338, 0.3022375703, 0.2959741652, -0.0437555872, 0.6722489595, -0.0536569282, 0.0996356979, -0.0690651685, -0.3176439703, -0.026964277, 0.1578305513, 0.3953223825, 0.2114284039, -0.2491105199, 0.0748831481, -0.1284853518, 0.1337049007, 0.1330320835, 0.0128991976, -0.2782161832, 0.0685418323, -0.1654137671, 0.4030527472, -0.1301136017, 0.1823723018, 0.0637911931, 0.2705151141, -0.3036564291, -0.3571579158, 0.3911986947, -0.3434484899, -0.458597362, -0.427672565, 0.2904645205, 0.1598202735, -0.2049571276, -0.4742087126, 0.0093036443, 0.2549891472, -0.1533088088, -0.1555009484, 0.5398073196, 0.0699542463, 0.2142625153, -0.121996358, 0.2098632604, 0.0046634469, -0.1189016849, -0.1165047958, -0.0643655658 ]
https://github.com/huggingface/datasets/issues/2691
xtreme / pan-x cannot be downloaded
Hi @severo, thanks for reporting. However I have not been able to reproduce this issue. Could you please confirm if the problem persists for you? Maybe Dropbox (where the data source is hosted) was temporarily unavailable when you tried.
## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1
39
xtreme / pan-x cannot be downloaded ## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1 Hi @severo, thanks for reporting. However I have not been able to reproduce this issue. Could you please confirm if the problem persists for you? Maybe Dropbox (where the data source is hosted) was temporarily unavailable when you tried.
[ -0.3526866436, -0.3867759705, -0.0510648787, 0.291082859, 0.2072109878, 0.0486670285, -0.1169928387, 0.2295709252, 0.1450732052, 0.0749083161, -0.2071777135, 0.2856612802, 0.0034075044, 0.0860849619, 0.1964893937, -0.2445529103, 0.0702191144, 0.1196100861, 0.0714931637, -0.0395354778, -0.0941304117, 0.131549269, -0.2260097563, 0.0777679384, -0.2466473281, 0.126108706, 0.0916941985, 0.2066922933, -0.323671937, -0.4029152989, 0.6594855785, -0.0882714987, 0.2548995614, 0.6138736606, -0.000109545, 0.044441767, 0.2389015257, -0.0772669986, 0.0085789002, -0.5894989967, -0.3442205787, -0.4234595001, -0.0681282431, -0.1822477281, -0.031780526, -0.136058867, -0.1195599958, -0.1269761026, 0.3041211963, 0.2758344114, 0.2564079762, 0.4237163961, 0.2048833817, -0.1892293841, 0.4242539406, 0.0090919267, -0.3090729713, 0.2538464367, 0.4219306707, 0.1650079787, 0.4848668575, 0.2082424611, -0.0695543364, 0.0420790054, 0.1297953129, 0.0679556876, -0.1117193699, -0.4720571339, 0.0596619509, 0.3128012717, 0.4577901661, -0.2595131099, -0.3999507725, -0.1368684918, 0.1110479683, -0.2919366062, 0.3227855563, 0.2403818071, -0.0112176202, 0.0619952455, 0.0464065522, -0.0516870916, -0.0386231914, 0.1513980925, -0.0427211896, 0.2568823099, -0.2622478604, -0.0077699609, 0.1031030118, -0.0465257093, 0.3317068219, -0.0003913306, -0.0721537024, 0.1808128506, -0.2971531749, 0.033614926, -0.0812336206, -0.1032691598, 0.3259278536, -0.0659452528, -0.152496621, -0.055235289, -0.1848699301, 0.0646036267, 0.2071897835, 0.2051488012, 0.0498812832, 0.0647760034, 0.2026150078, 0.1957768798, 0.0656493977, -0.0646907836, -0.1810179055, -0.02795895, 0.0963960886, -0.094070822, 0.4540395737, -0.3807746768, -0.3451696336, -0.0102131795, -0.0039378181, 0.0608343184, 0.1219208837, 0.1474574655, -0.0968993604, 0.3871400356, -0.1044135243, 0.3990938067, -0.2333693802, -0.0421097688, -0.1832314134, 0.353790164, -0.2850385308, -0.2012856752, 0.2524961233, -0.2233879864, 0.3617866933, 0.1000485122, 0.3133207858, -0.20624955, 0.0428047329, -0.0248358622, -0.3529997766, 0.4104738832, 0.1801799834, 0.2340245396, -0.1464565992, 0.0782421082, -0.1296513379, 0.1654406935, -0.6251087785, -0.0875177011, -0.0984894782, 0.1942235678, -0.2082001567, -0.1046866328, -0.6656982899, -0.1676556468, -0.0900123939, 0.143158555, 0.0834209397, -0.205396235, 0.1542957723, -0.1790492833, 0.2005877942, 0.241144225, -0.2552344203, 0.0609918684, -0.1533213407, -0.2647586167, -0.0765783638, 0.1262757778, -0.2085570246, 0.0103684515, -0.3422113657, 0.3232128918, 0.4552650452, -0.6140804291, -0.5974395871, -0.1052318513, -0.2622517347, 0.089878507, -0.0617282763, 0.1077230126, -0.0357164703, -0.0788003206, 0.1014330685, 0.2451179028, 0.069281131, -0.0631376505, -0.1651224494, -0.2046422809, -0.3625923097, 0.3529898822, 0.2083221227, -0.05789648, 0.0786111355, 0.0761330277, 0.0877824724, -0.031848982, -0.030623477, 0.4155044854, 0.3037107587, -0.0001338609, -0.1492662728, -0.368231684, -0.3647809029, 0.315538913, -0.0051272139, -0.2266247123, -0.0161959119, -0.086217314, -0.4500852823, 0.1982222497, -0.2209274769, -0.0606528074, 0.0769481808, 0.0073391236, 0.2201865464, 0.0836802721, -0.2290253341, 0.1458617896, 0.0163225457, 0.1431555748, -0.4204461575, 0.315114975, -0.0489103645, -0.1553780138, 0.0702611655, 0.0526237376, 0.2588837743, -0.2040775716, -0.1541564465, 0.2960610092, -0.1171704829, 0.0546539016, 0.2451877296, 0.1121124029, 0.1407471746, -0.5683161616, 0.2428393662, 0.0568336733, 0.0048020817, 0.1328017861, -0.0801944137, 0.3285501599, 0.0742879137, -0.1284793466, -0.1443329453, 0.1246475801, 0.3701759875, -0.1742715836, 0.0623170733, -0.0386975333, 0.3798927665, -0.1570973098, 0.2001878619, -0.1817023307, -0.3316303194, 0.0980751738, 0.2502303123, -0.1069733948, 0.1860956997, 0.1444755197, -0.1026411653, 0.1593288183, -0.0966136977, 0.1676410735, 0.517962575, 0.1285327375, -0.0067951046, 0.0641475841, 0.0082894713, -0.1184642315, 0.0590545088, 0.1046779007, -0.3239882886, 0.0827620178, 0.1612745821, 0.1036030725, -0.2250234187, -0.1348778605, -0.1345203519, 0.0970061198, -0.147844851, -0.0257359408, -0.1935747564, -0.1062391251, -0.0235613193, -0.0627595633, -0.2630923986, -0.1395762563, -0.0624652021, 0.3216550648, 0.3296007514, 0.1525025368, -0.3904212713, -0.0954002887, 0.0352772549, -0.3149365783, -0.212721765, 0.3404072821, -0.0474720076, 0.0662845969, 0.0962964594, 0.0808146372, 0.235697642, -0.3708005548, 0.2722424865, -0.441966176, -0.202993989, 0.0966424271, -0.2410518527, 0.4696165621, 0.11202351, 0.1265442669, -0.0322051086, 0.2229405642, 0.3095307946, -0.4043674767, -0.003925126, 0.0307902619, 0.0260594115, -0.1758607924, 0.0369343013, -0.127014488, -0.3618339896, -0.3396022618, 0.02834934, 0.0801372826, -0.022155486, 0.0101634189, 0.0757043585, -0.0299585257, -0.1044038683, -0.153358683, -0.2170978636, -0.7377811074, 0.5196607113, -0.2019711435, -0.4470083117, 0.3016466498, 0.0556517094, 0.2421496809, 0.0431425683, -0.579579711, -0.3328720033, -0.2093740404, 0.3857637048, 0.0262415987, 0.1725893021, 0.1798845977, -0.3582764864, 0.0249790698, -0.2073286772, -0.2407357395, -0.327449441, 0.1376802623, 0.3069245219, 0.0616080873, 0.1685753614, -0.1148674488, 0.4480380118, 0.1403063834, 0.1453654021, 0.5500607491, -0.0225300416, 0.325284034, -0.154556945, -0.3528730869, -0.1701274216, 0.0941822976, 0.1193360537, -0.019556161, 0.2615585327, 0.0613196567, -0.3054990172, -0.1316114068, -0.0387072302, -0.0832651034, -0.0314534158, 0.119135879, 0.1137529165, 0.0811117142, 0.2296650559, -0.1488064826, -0.1825034171, 0.0221286975, 0.4156577587, 0.1601021588, 0.2835164666, -0.5198410749, 0.1627913117, -0.3463421762, 0.2180437297, -0.0051471777, 0.3751677871, 0.0005981922, 0.1822770387, 0.2526135445, 0.0190840811, 0.336548686, -0.1874769628, 0.2626711726, 0.1567423344, -0.1884524822, -0.2643436193, -0.1834800541, -0.0880472064, 0.1510480195, 0.221938923, 0.4319794774, -0.2872441411, -0.2112279832, 0.226848498, 0.2067936659, 0.0241376758, -0.1701162159, -0.2435175478, -0.5633919835, -0.1476869136, -0.1200379431, 0.2404227257, 0.0556024499, 0.1601885706, 0.0037765279, -0.2464237511, -0.0884153247, 0.1463685632, 0.1705908179, 0.3395799398, -0.1337961257, 0.3536368012, 0.143511191, -0.3297021091, 0.2670309246, 0.737487793, 0.005828876, -0.4494507611, 0.0718679056, -0.0187177956, -0.0781943575, 0.1143374667, -0.2037746459, -0.0973353535, -0.2186992317, 0.0812804624, 0.0257367268, 0.1539984643, 0.3771662116, 0.0625733882, -0.5213441849, -0.3220103085, 0.5426338911, 0.266631484, 0.1196524352, 0.2263087928, -0.0863895118, 0.0470354632, -0.2256037295, -0.0838140994, 0.9448820353, -0.011238724, 0.0339338109, 0.1245705336, 0.0145489946, 0.1615134776, -0.1924782693, 0.0699114129, -0.1522158384, -0.4263075888, -0.1463763714, -0.1881897449, 0.1286137998, -0.0577638224, 0.0621433258, 0.2255206406, -0.0725997686, 0.1192598566, 0.0648189187, 0.0723349527, -0.1526962817, -0.170778349, -0.5171350241, 0.1991242915, -0.0697474927, 0.4064853489, -0.1388293207, -0.1040903255, -0.1983233094, -0.0959433019, -0.121851027, 0.291682452, 0.0023222342, 0.0715598017, 0.0579021536, -0.6102399826, 0.0385801271, 0.0526865646, 0.0162254721, 0.1011558473, -0.265935123, 0.353317529, -0.0021154005, -0.2266724557, 0.1472968906, -0.1359360218, -0.1531228423, -0.0944721773, -0.1086311862, 0.1762413383, -0.0828934461, -0.1928372383, -0.2500216365, 0.0991540551, -0.1647952497, -0.0987408161, -0.1774943471, -0.1970981807, 0.3366285563, -0.2021455169, 0.1516022682, 0.2968963683, 0.0558718257, 0.0631213337, 0.0386188924, -0.2568095326, -0.1473997831, 0.4189608395, -0.0821869373, -0.0837997571, 0.1137786806, 0.1257395744, 0.0002199933, -0.1332898587, 0.139172256, 0.0586109683, -0.6309764385, 0.0441207588, -0.1751821339, 0.0880247653, -0.1130464971, 0.311216116, 0.2554551959, -0.3791318238, 0.2418457419, -0.6552191973, -0.0697520375, 0.0945660025, 0.0227353591, 0.202966243, 0.013426967, 0.0766263977, 0.1292036176, -0.2599188387, -0.3166565895, 0.1748609543, -0.0904704109, -0.1386952996, 0.2489342391, 0.1542685032, 0.2799365222, -0.0008410849, 0.1445418447, 0.0790598094, -0.3133639395, -0.1696365774, -0.0390881263, 0.0975603759, 0.0073129404, -0.1443006992, 0.0250957794, -0.1934475303, -0.2018467486, -0.0162707847, 0.0714773685, 0.2128663361, 0.0548099317, -0.1767894626, -0.120212689, 0.0523999073, -0.2712776959, 0.3782560825, 0.1526097357, 0.1362903714, -0.0707219094, 0.1698895842, -0.0045892075, 0.0377820581, -0.3507543206, -0.1537233889, -0.0099874027, 0.3234339356, 0.3173136413, -0.2338349372, 0.3399518132, 0.5180974007, 0.2589368522, 0.3506005704, -0.3326710761, 0.2288192809, 0.204467237, 0.2669626176, -0.342108041, -0.1972786188, 0.3491120636, 0.3381570876, -0.0222107768, 0.3334658146, 0.2860364318, 0.0999352634, 0.2936147749, 0.1892458647, 0.7017914057, 0.1483002752, 0.3616812527, 0.4879670441, 0.0453406423, 0.0547548234, 0.4047194123, 0.2209101468, 0.0589067712, 0.5563635826, -0.1501090974, 0.3705193698, 0.027699247, 0.1410741508, -0.1736344695, -0.2919470668, -0.2292747498, -0.0300018787, 0.0328444391, 0.0066143051, -0.1024398506, 0.0717504323, -0.3785608113, -0.0442167297, -0.3720662594, 0.2042673379, -0.1073923856, 0.1628196687, 0.1005005538, -0.2054410875, -0.0019085556, 0.0046281666, -0.0106320186, 0.0236765072, 0.2068846226, 0.0598008931, -0.2006710321, -0.2601110637, 0.0146143772, 0.3534217477, -0.0258858651, -0.1044210941, 0.4160713255, 0.0979031175, -0.1558293998, 0.011498319, 0.3531679511, 0.347186029, 0.1551688164, 0.1355299503, -0.0455288216, 0.0878981724, -0.0654707775, -0.0037285052, 0.2300325781, 0.0325544551, 0.3787963688, 0.2136467397, 0.2474653125, -0.2060373127, 0.2166292667, -0.1780155301, 0.1044222787, -0.3161133826, 0.0276568737, -0.3075528443, -0.1017171144, -0.2598290145, -0.211405158, -0.1291498095, 0.0809332505, 0.297731638, 0.0193510912, 0.0042311065, -0.3231407106, 0.0737729073, -0.1102204546, 0.1380378902, 0.4347142279, -0.0541046113, -0.1887927949, -0.1329208165, -0.8249320388, 0.2049009651, -0.3134781122, -0.3593271077, 0.2230778039, -0.196706146, -0.1337314993, 0.2950108647, 0.3823513091, 0.1986640245, 0.1417562664, 0.2696787119, -0.3786462843, -0.1755009592, 0.1164753735, 0.0805226341, 0.1550347805, -0.1966104507, 0.0020442102, -0.0605066791, 0.0296266302, -0.1787050515, -0.101479575, -0.1546011269, -0.2730811834, 0.7128175497, -0.0265818946, 0.1818777323, 0.00893455, -0.1415953636, -0.3479328454, -0.3359901309, -0.1717507988, 0.1654937714, 0.0380563475, 0.2271928638, -0.1851950884, 0.0454305485, -0.4097553492, 0.1165401712, 0.0190045908, -0.0313897729, -0.1484310031, 0.1617603004, -0.3718982041, 0.1241316497, 0.2702313364, 0.2067092359, -0.0751154274, 0.2049675286, -0.1371401846, -0.400746882, 0.3941509426, -0.063049376, -0.2641805112, -0.0338022374, 0.0910277218, -0.0175065547, -0.222885713, -0.2046370208, 0.3222982585, 0.3259678781, 0.0417651497, -0.07421083, 0.1801102608, -0.1593891531, -0.0055479556, 0.1667845249, 0.5679106712, -0.0529463254, -0.1662541926, 0.4779116511, 0.0644989535 ]
https://github.com/huggingface/datasets/issues/2691
xtreme / pan-x cannot be downloaded
Hmmm, the file (https://www.dropbox.com/s/dl/12h3qqog6q4bjve/panx_dataset.tar) really seems to be unavailable... I tried from various connexions and machines and got the same 404 error. Maybe the dataset has been loaded from the cache in your case?
## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1
34
xtreme / pan-x cannot be downloaded ## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1 Hmmm, the file (https://www.dropbox.com/s/dl/12h3qqog6q4bjve/panx_dataset.tar) really seems to be unavailable... I tried from various connexions and machines and got the same 404 error. Maybe the dataset has been loaded from the cache in your case?
[ -0.2679746151, -0.4418179989, -0.1176263914, 0.263651818, 0.2272869051, 0.1094407365, -0.1848930418, 0.2379710227, 0.1063499004, 0.1472175121, -0.1563760936, 0.2612071037, 0.0340305939, 0.0054813251, 0.1887654364, -0.2929283977, -0.0231134742, 0.1571929902, 0.0854804963, -0.0127718672, -0.0448258668, 0.1623118818, -0.1777585447, 0.1660573483, -0.2347052693, 0.0610584989, 0.0814341605, 0.1718646735, -0.3454200923, -0.4189865291, 0.566159308, -0.0949460864, 0.2182049006, 0.719514966, -0.0001037239, 0.0292130709, 0.2176598012, -0.0261947624, 0.0566020496, -0.4336355031, -0.3120512068, -0.2680828571, -0.05471728, -0.2174528837, -0.1400292367, -0.1007528976, -0.08805646, -0.1750139296, 0.2505111694, 0.3105106056, 0.3232138753, 0.3803198338, 0.1769936681, -0.206640631, 0.3996113837, -0.0941900611, -0.3172445893, 0.0890594572, 0.2912514508, 0.1761109233, 0.5273681283, 0.3237526715, -0.035990309, 0.0154758506, 0.1438703984, 0.0410695486, -0.0623051934, -0.4709228277, 0.0612653606, 0.3000107706, 0.4271563292, -0.2391208112, -0.3885633945, -0.105458051, 0.1049026102, -0.407812655, 0.2444296628, 0.1799359173, -0.0162782148, 0.105249688, 0.0096647032, -0.0978145152, -0.0419345796, 0.0619602986, -0.0776693225, 0.2221198976, -0.21848768, -0.0683026016, 0.0588099621, -0.0759773403, 0.2078842521, 0.0511518531, -0.0275817309, 0.1276532412, -0.2452938706, 0.0600650311, 0.06321913, -0.1291559488, 0.2096272707, -0.0791392624, -0.0892367736, 0.0114945695, -0.1473239511, 0.0619762838, 0.0659475178, 0.2439484894, 0.0383297876, 0.0237592794, 0.2091334164, 0.1862052679, 0.0814153105, -0.1025759205, -0.1737052351, 0.0113052651, 0.1954597831, -0.0294618271, 0.3959261775, -0.3529497981, -0.2808385491, 0.022182066, 0.0397598371, 0.0408065282, 0.0866131634, 0.2145691514, -0.0824295655, 0.4011313617, -0.1501497328, 0.3440097272, -0.2506441474, 0.0770461708, -0.216953516, 0.2924672365, -0.2931420505, -0.1526381969, 0.1920556724, -0.0812758356, 0.3481796682, -0.0350374505, 0.350266397, -0.1696178615, 0.159368366, 0.0612698011, -0.2728766799, 0.4204452932, 0.172654599, 0.1674808264, -0.0856521279, 0.0686988682, -0.1584209204, 0.0594494566, -0.5414465666, -0.2124142945, -0.0291900951, 0.2986302376, -0.1243534535, -0.0292219911, -0.5017436743, -0.2424408942, -0.0926838666, 0.2001237422, 0.0688055828, -0.2365992516, 0.1697009355, -0.2065941542, 0.1218233556, 0.1404033601, -0.1871484071, 0.0682934821, -0.076273188, -0.2601474226, -0.1281082928, 0.0846765935, -0.1892631799, 0.0538467988, -0.32122612, 0.2798065245, 0.5203258395, -0.6607076526, -0.5881972313, -0.1088323742, -0.3328568041, 0.0381413251, -0.0328999721, 0.1168184802, -0.0982020348, 0.0026607737, 0.2206362784, 0.2092216611, 0.0729322508, -0.0459178239, -0.1469893157, -0.1996120512, -0.3954461217, 0.2889850736, 0.2185928375, -0.115556851, 0.0630724728, 0.0086837076, 0.1266670376, -0.0867340714, -0.056984134, 0.4788989127, 0.3095557988, 0.0865388587, -0.0792886019, -0.3216754198, -0.2247875333, 0.2472713888, -0.0705728829, -0.0963473469, -0.0327418447, -0.1887046397, -0.4533225, 0.1431084573, -0.315852493, -0.1230284274, 0.175205946, 0.1260688305, 0.2419694364, 0.0138471201, -0.2411734313, 0.0591526851, 0.116923131, 0.1251553297, -0.4320317507, 0.2213034332, -0.1491876543, -0.105304189, 0.0922811776, 0.1673108339, 0.24369964, -0.2250935584, -0.0908469707, 0.3246712387, -0.0967023969, 0.035516791, 0.3533547521, 0.0978428796, 0.0845170841, -0.5908101797, 0.2334865779, 0.1035213023, -0.0187882036, 0.1300655007, -0.0431516282, 0.302426964, 0.1514286548, -0.1150518209, -0.0487056449, 0.0742622167, 0.4298826456, -0.1736485958, 0.0714132041, -0.1306801587, 0.2847746909, -0.1419812739, 0.1040663719, -0.2299806327, -0.2976063192, 0.2326199561, 0.3081134558, -0.1277647018, 0.182697922, 0.056287691, -0.0640333593, 0.1722058207, -0.0551214814, 0.1123165041, 0.3923809528, 0.1955980361, 0.0783933252, 0.0904873088, 0.0251343027, -0.0745071173, 0.0514599606, 0.0309500955, -0.2735631168, 0.007225404, 0.1577752382, 0.0551331006, -0.2244771123, -0.2198762149, -0.1738979369, 0.126578778, -0.0564302765, -0.0923087299, -0.2825472355, -0.158755511, -0.0015426446, -0.0670295805, -0.2526368201, -0.222697258, 0.0491072573, 0.2205241621, 0.2909303308, 0.1391827166, -0.4456436038, -0.1586824208, 0.1205255911, -0.30130741, -0.171058625, 0.2445185333, -0.0701965317, 0.1309379637, -0.0495748557, -0.0147702992, 0.2298843116, -0.4031030834, 0.2660708129, -0.4210807085, -0.2356017828, 0.1419921219, -0.2103905827, 0.2974481285, 0.1424487829, 0.0910661668, -0.0189681053, 0.1650270373, 0.3228319883, -0.4411514103, -0.0466856174, 0.0402265638, 0.0551934391, -0.2243187428, 0.0146067739, -0.1893945336, -0.3284137249, -0.3596835136, -0.0406741984, 0.1506467909, 0.0344254524, -0.0185067393, 0.0803381577, 0.0885246247, -0.0685614944, -0.0511877425, -0.2514697909, -0.7017879486, 0.4636756778, -0.2644919753, -0.4040013254, 0.4038110971, 0.0343756303, 0.2874765694, 0.0281607434, -0.6414677501, -0.4265069366, -0.2081431746, 0.4057193995, 0.0910302699, 0.1623051465, 0.2488887161, -0.1939972043, -0.0804986358, -0.1296487153, -0.2731976807, -0.3393236399, 0.1231077835, 0.3514183462, 0.0049006566, 0.1693898886, -0.0566532686, 0.4797626734, 0.1411703527, 0.2660488188, 0.4828196764, 0.007464176, 0.4104546607, -0.1721996367, -0.2594890296, -0.1180760711, 0.0553670712, 0.0891870111, -0.0057335198, 0.3468690515, 0.0325025022, -0.3200872838, -0.082382232, -0.126982227, -0.1169475913, -0.1346803904, 0.161988467, 0.0826361626, 0.103151001, 0.26717484, -0.2168578953, -0.0569070615, 0.10093081, 0.4193546176, 0.0583783463, 0.2410030961, -0.6325908303, 0.1531000286, -0.5051277876, 0.2458710074, -0.0115500055, 0.2705217898, 0.0215682983, 0.0908025801, 0.2392058074, -0.0294361003, 0.2986414433, -0.2792758942, 0.2141708136, 0.2215052843, -0.1775686741, -0.1594886631, -0.1793940365, -0.1052879915, 0.1101504788, 0.2103465497, 0.3577739596, -0.2909289002, -0.2092891932, 0.208102107, 0.112146914, -0.0364820734, -0.1105239317, -0.2614933252, -0.6037279963, -0.1307972074, -0.1397303641, 0.1818606853, 0.0638293326, 0.1908945292, 0.0098218024, -0.2043604702, -0.0811317414, 0.2022406757, 0.2132599354, 0.3442693949, -0.1325383484, 0.1247723922, 0.0889204293, -0.2817153335, 0.1870236844, 0.6367661953, -0.1025061011, -0.3539456129, 0.1042637676, -0.0760075673, -0.0201290026, 0.1653691828, -0.1158908904, -0.0652608201, -0.2003658265, 0.1965854764, 0.0341976769, 0.2208952308, 0.3908568621, 0.0154879838, -0.4292641282, -0.2944341302, 0.408550024, 0.2411630154, 0.0959234983, 0.2109409571, -0.0355044119, -0.0108921397, -0.1219792813, -0.0640268698, 0.9632136822, -0.0313609205, 0.0339881033, 0.1607779711, 0.0260238051, 0.1442556977, -0.1871310025, 0.2287032157, -0.1123204529, -0.4142075181, -0.1158688143, -0.1293538064, 0.018919792, -0.0664961487, 0.0476433039, 0.3310642242, -0.0027629286, 0.1432362646, 0.0629525036, 0.0580046549, -0.130623281, -0.1149521694, -0.5382685661, 0.2539912462, 0.0254721064, 0.3790527582, -0.1656428576, -0.1075837314, -0.1945649981, -0.1265370101, -0.039480947, 0.2701868415, 0.0465236455, 0.0725004598, -0.000151447, -0.5629293323, -0.178633675, 0.0207466241, 0.0313843973, 0.1240785271, -0.2292949259, 0.3383004665, 0.0363531113, -0.2561440766, 0.0899368972, -0.1675925255, -0.1227651387, -0.1348509789, -0.1696884632, 0.2684598863, -0.0428850278, -0.2032645941, -0.2238267809, 0.0783623084, -0.1164329797, -0.054387074, -0.0939943492, -0.126631096, 0.2196064293, -0.2141880244, 0.2009351254, 0.1866669506, -0.0729643852, 0.057585679, 0.0294682812, -0.2769973278, -0.1553141326, 0.3060646057, -0.0045217206, -0.1293381155, 0.0959781706, 0.1144564748, -0.0868709385, -0.184484452, -0.0474107489, 0.122723341, -0.4821639061, -0.0282457639, -0.1865505874, -0.0069325715, 0.0028718486, 0.1874541789, 0.2820073068, -0.3644229174, 0.1617376804, -0.5957938433, -0.1318208128, 0.1325118542, 0.0234616101, 0.2270474583, 0.0316792876, 0.0467219092, 0.119606398, -0.2379756421, -0.4012410045, 0.1236587763, -0.1498195082, -0.098262094, 0.1478439569, 0.0064230235, 0.2935068309, 0.0275847465, 0.2196459472, 0.0600195341, -0.3998736143, -0.2403433025, 0.0552067161, 0.0627825111, -0.0383056849, -0.1196441874, 0.0185993463, -0.1285141408, -0.1325448155, -0.0398798995, 0.0891967863, 0.1925430447, 0.0986528099, -0.1837010086, -0.0692942291, 0.0167422071, -0.1642521918, 0.3258415163, 0.1398627013, 0.2318575829, -0.0144979768, 0.1323745847, -0.0856102556, 0.0066347271, -0.1870059967, -0.1457727253, 0.0546048991, 0.33409217, 0.2917370796, -0.2557475269, 0.2778273225, 0.5029013753, 0.2845906317, 0.288272053, -0.2615939379, 0.2006413341, 0.187664777, 0.3432892561, -0.2725111842, -0.2151302248, 0.409114629, 0.3377299309, 0.0234307423, 0.3495349884, 0.2278743088, 0.0965240747, 0.3864113688, 0.2378533632, 0.7002606988, 0.0109211691, 0.3064973056, 0.3967802525, 0.0297809169, 0.027974423, 0.4111218452, 0.2453272641, 0.0571966097, 0.5404455066, -0.1116681769, 0.3812042773, 0.0508449599, 0.1516124606, -0.2021226138, -0.1842541099, -0.2625831068, -0.0538459718, 0.1176699698, 0.05690163, -0.0204861276, -0.0404537581, -0.3588006496, -0.0177036263, -0.381813705, 0.1952453703, -0.1012213081, 0.1443653554, 0.1184097677, -0.2016307712, 0.0395739973, -0.0301494524, 0.065693453, 0.0278112665, 0.1514741182, -0.0215784349, -0.1175264418, -0.2632603645, -0.0096974932, 0.2329888046, 0.0319781378, -0.0951241255, 0.3985485733, 0.1374700367, -0.0519789197, -0.0433442108, 0.3460862637, 0.3359360695, 0.159162581, 0.0225496069, -0.0402080752, 0.0929913521, -0.1229496226, -0.0861299112, 0.1511768997, -0.0349756591, 0.3215088844, 0.2348557562, 0.3064634204, -0.2580749691, 0.1845091432, -0.2394280732, 0.1145102829, -0.2463300228, 0.00317486, -0.2701852322, -0.09753187, -0.2701836824, -0.1282822788, -0.2590593994, 0.0486110486, 0.2965443134, -0.0721523538, 0.0045254454, -0.3530623913, 0.1089876741, -0.115389958, 0.1304297149, 0.4215747118, 0.0298536494, -0.1419175267, -0.0996892154, -0.8327543736, 0.2654559612, -0.3724473119, -0.3370612562, 0.1744968146, -0.1068007946, -0.1851875782, 0.2556073666, 0.4662514329, 0.1534207463, 0.1642299891, 0.2508542538, -0.3839326501, -0.0946436077, 0.2254659384, 0.0352407098, 0.1736333966, -0.2499011308, 0.0057580713, -0.072320208, 0.1074137241, -0.1509794444, -0.0982131809, -0.1745832115, -0.224609524, 0.70909518, 0.0415948853, 0.0496661291, -0.0144845285, -0.2729942799, -0.3072059751, -0.2880759239, -0.1513742059, 0.0844442993, 0.0616011173, 0.2224785984, -0.1881351173, 0.044569958, -0.4247747064, 0.2465495765, 0.1028694808, -0.0479449779, -0.0912305787, 0.2359806895, -0.3780376315, 0.1200847775, 0.2901974618, 0.1547182798, 0.0404203683, 0.1829793751, -0.0811453164, -0.4246266484, 0.5179023743, -0.0178212859, -0.2735971808, -0.038178388, 0.1045881361, 0.0730181634, -0.2387006432, -0.2471563667, 0.3185578883, 0.2581022382, 0.1204381585, -0.1316836327, 0.1669015586, -0.2302281559, -0.0435868204, 0.1229611561, 0.5427107215, -0.0923755914, -0.1214351729, 0.3414204717, 0.0096554235 ]
https://github.com/huggingface/datasets/issues/2691
xtreme / pan-x cannot be downloaded
Yes @severo, weird... I could access the file when I answered to you, but now I cannot longer access it either... Maybe it was from the cache as you point out. Anyway, I have opened an issue in the GitHub repository responsible for the original dataset: https://github.com/afshinrahimi/mmner/issues/4 I have also contacted the maintainer by email. I'll keep you informed with their answer.
## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1
62
xtreme / pan-x cannot be downloaded ## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1 Yes @severo, weird... I could access the file when I answered to you, but now I cannot longer access it either... Maybe it was from the cache as you point out. Anyway, I have opened an issue in the GitHub repository responsible for the original dataset: https://github.com/afshinrahimi/mmner/issues/4 I have also contacted the maintainer by email. I'll keep you informed with their answer.
[ -0.318205893, -0.3272899091, -0.1103757918, 0.2835793495, 0.2328959405, 0.0658762902, -0.0919085741, 0.1860668808, 0.046389997, 0.240070343, -0.2260717154, 0.2097328007, -0.0343381651, -0.1489106119, 0.1411538124, -0.2330801934, -0.0239752196, 0.0649311095, 0.0869291723, -0.0030196533, -0.043550577, 0.0999884978, -0.1346054822, 0.1627424657, -0.2816879153, 0.1641904563, 0.1339257658, 0.1528057605, -0.3610310256, -0.5697409511, 0.5499164462, -0.071899876, 0.2162336409, 0.6330676675, -0.0001045263, 0.0274299979, 0.2513789237, -0.0701240599, 0.0219658539, -0.3303208351, -0.170312956, -0.3326669633, -0.05591847, -0.232641995, -0.0492845997, -0.1610853821, -0.0430016965, -0.2736638188, 0.1877944916, 0.3142365515, 0.30284518, 0.3407100439, 0.1974213123, -0.1840538532, 0.4177655578, -0.1173000038, -0.2915067673, 0.0986318365, 0.2888226211, 0.2544909716, 0.3358389437, 0.3467045426, -0.0624666512, 0.1361754537, 0.1152226031, 0.1114341989, 0.0359214768, -0.4036877155, 0.1034547612, 0.3053644001, 0.3668733835, -0.2257567942, -0.3703780174, -0.1280192882, -0.0011335984, -0.4135957658, 0.2864314914, 0.1885603666, -0.0614450164, 0.0487341322, 0.0590130575, -0.0640950873, -0.009463042, 0.0822289437, -0.2367549539, 0.3045524061, -0.2398661673, -0.0810087323, 0.0611775741, -0.0976332575, 0.4266875386, 0.1055223048, -0.0498617701, 0.1894539744, -0.191071108, 0.0861553699, 0.0916261971, -0.0313162357, 0.1879510581, -0.0939674526, -0.0870377868, 0.0212329775, -0.1213040352, 0.0533425994, -0.0236650351, 0.2236052901, 0.0136997281, 0.0123608597, 0.3364659548, 0.1675426364, -0.0252036229, -0.1039089113, -0.061051704, 0.021020215, 0.347122252, 0.0151838064, 0.2679442763, -0.4040792584, -0.1462792158, 0.1088361144, 0.0811564624, 0.004061956, 0.0753681436, 0.2696224451, -0.131043613, 0.5004314184, -0.1439537257, 0.2774460912, -0.1786135435, -0.0545942262, -0.230513677, 0.2875284553, -0.3185658455, -0.1640535295, 0.268139869, -0.0885944292, 0.3424469233, 0.0193036906, 0.4485731721, -0.2276662588, 0.145559445, -0.0391325504, -0.1567940414, 0.3950020969, 0.2186509818, 0.2417787611, -0.0570857301, 0.1070095748, -0.1398314238, 0.0547438934, -0.5332154036, -0.1445195973, 0.0484366491, 0.2813416719, -0.1109331548, 0.0443464443, -0.4615255892, -0.2585164905, 0.0184417032, 0.0368484631, 0.0654707029, -0.2370755523, 0.1036686897, -0.2727522552, 0.1194801778, 0.1861191839, -0.149626866, 0.0811400265, -0.1508212835, -0.1840722561, -0.103688091, 0.0949766114, -0.2324250937, -0.0280530378, -0.3431360126, 0.1788949221, 0.4966638088, -0.5603688955, -0.6766209602, -0.1945021451, -0.2167248875, 0.1057191566, 0.0522404015, 0.1284447312, -0.1195854992, -0.0755696893, 0.1165134236, 0.231485188, 0.0689335167, -0.0431961566, -0.2029494941, -0.1580139101, -0.3941798806, 0.2986283004, 0.3304900229, -0.0866444558, 0.1213660091, -0.0463841222, 0.0500183627, -0.1777493656, 0.0538882464, 0.4001021981, 0.0876317471, 0.0499617979, -0.1079477668, -0.3960918486, -0.2692902982, 0.304980278, -0.2314907014, -0.0901011378, 0.0422870629, -0.1657967865, -0.3381282985, 0.1252346337, -0.254957974, -0.1380519867, 0.1980193555, 0.2179947346, 0.2107337266, 0.0432912707, -0.1856297553, 0.2093696147, 0.1347268522, 0.0454652533, -0.393473208, 0.0988776982, -0.1647421122, -0.0848027244, -0.0186088532, 0.0318332873, 0.2233185172, -0.1131895632, -0.1313251108, 0.2966014743, -0.1410743743, 0.1947292387, 0.1766806841, 0.1290345639, 0.0698762387, -0.5461266637, 0.3711177111, 0.0836981907, 0.0137756504, 0.1292071044, -0.1238272861, 0.3975929022, 0.2258642316, -0.1046827883, -0.0073531047, 0.0574757755, 0.4007212222, -0.1839655638, 0.1376818568, -0.2009602487, 0.3223162889, -0.0778860003, 0.0890902877, -0.1408874393, -0.3618687093, 0.2239440978, 0.299371779, -0.0730524883, 0.2745701969, 0.0513548478, -0.2327724099, 0.1006512269, -0.1656291336, 0.1345454454, 0.4002485275, 0.1655013412, 0.1585408896, 0.1127973869, 0.0303280205, -0.1219313443, 0.0640179962, 0.0798130482, -0.3082914054, 0.1386444271, 0.2200643122, 0.0478182398, -0.2584235966, -0.0435233302, -0.1759921759, 0.0869171917, -0.1290674061, -0.0549277551, -0.2891582847, -0.018709451, -0.0212730542, -0.1296855211, -0.3267956972, -0.2894042134, 0.0833149627, 0.3019233346, 0.3182375729, 0.0738875121, -0.4791665673, -0.1091631651, -0.0258460939, -0.1513307095, -0.2301009297, 0.1849564612, -0.087213479, 0.1294902861, -0.0128818825, -0.031949386, 0.2024100721, -0.3810041547, 0.2993232012, -0.3908236921, -0.2395475209, 0.1227842271, -0.0964191854, 0.3663291931, 0.1242182404, 0.0071556196, 0.049589932, 0.2909899354, 0.314443171, -0.5699628592, -0.0599180125, -0.0251488946, -0.0103816278, -0.1131443679, -0.0026947558, -0.2132195979, -0.4026868939, -0.358548075, -0.1287240088, 0.2220826149, 0.0845837444, -0.1363316178, -0.035330072, -0.0234600902, -0.0528174117, 0.0132874362, -0.3657122552, -0.7164651752, 0.5234926939, -0.3666718602, -0.3437446058, 0.3153213561, 0.0493957475, 0.3250022233, 0.0266776532, -0.5940794945, -0.4159547389, -0.1920966655, 0.249701798, 0.0749894902, 0.1958061308, 0.2518185079, -0.2047295272, -0.116937086, -0.1770111322, -0.1927515268, -0.329980433, -0.010413941, 0.2748675346, -0.0486647859, 0.2104870379, -0.020536378, 0.5043949485, -0.0040308237, 0.2921927869, 0.5138949752, -0.0157212857, 0.3878630102, -0.1739788502, -0.2270195782, -0.1005498618, 0.0359633937, 0.1180127561, -0.081406191, 0.3046618104, -0.029774338, -0.3115224838, 0.001865007, 0.0753884763, -0.1000460759, -0.0201784074, 0.223837629, 0.1390815973, 0.1191475913, 0.2177914679, -0.3337516785, -0.1647444069, 0.0646176487, 0.2860423923, 0.071997419, 0.2217722088, -0.6987010241, 0.2945089042, -0.3549472094, 0.2589452863, 0.133132264, 0.2972769141, 0.0891900808, -0.0356937647, 0.2496793121, -0.0314283818, 0.292850256, -0.2753568888, 0.1924652159, 0.2488079816, -0.189015165, -0.2577941418, -0.1476648897, -0.0607870556, 0.0950523242, 0.0741123706, 0.2206853032, -0.2511302829, -0.2098119259, 0.1976282001, 0.1668668985, -0.1227132306, -0.057569433, -0.2543335557, -0.3855947554, -0.2199776322, -0.1009288877, 0.1631483436, 0.0240850598, 0.1836428046, 0.1339164078, -0.2818679214, 0.0226787254, 0.2182983607, 0.2294732928, 0.4041041136, -0.1779536605, 0.0862171501, 0.1354383528, -0.2517175674, 0.2359964699, 0.6561264992, -0.0692819953, -0.1975249201, 0.2336287796, -0.0230966397, -0.1156215519, 0.1739473939, -0.1396584213, -0.0992721021, -0.2316389829, 0.1636507809, 0.0345826149, 0.2379448414, 0.2754205763, 0.0214607194, -0.442771405, -0.2652612627, 0.4133497477, 0.2995726466, 0.0854316056, 0.1106897146, -0.1749096215, -0.00961666, -0.2360398024, 0.0575968474, 1.0173095465, 0.0572347865, 0.2175717801, 0.0290111974, 0.0634132028, 0.0565520748, -0.2485342324, 0.204653129, -0.1223322749, -0.3878816962, -0.1455357522, -0.1915263236, 0.0145890256, -0.1603754014, 0.0710687861, 0.3486490548, -0.0586817935, 0.2197331488, 0.1215182245, 0.053066805, -0.2179560661, -0.1773559004, -0.4743060768, 0.2352401018, 0.0248241425, 0.3444923162, -0.1160427034, -0.0381642282, -0.1843737662, -0.0278279595, 0.0443981141, 0.2960232496, -0.0469831452, 0.1254892051, 0.0148101952, -0.5127181411, -0.1716358662, -0.0126483198, 0.085618563, 0.0979855359, -0.1677839309, 0.3572309017, 0.0622944981, -0.1430043727, 0.1259829998, -0.1241476983, -0.0142247267, -0.1708567291, -0.0881158113, 0.3363657892, -0.0510583594, -0.2698976099, -0.3379272819, 0.1086134315, -0.0641644895, -0.0367734432, -0.0996811241, -0.1845029593, 0.2647095025, -0.195566684, 0.1958833933, 0.2199278176, -0.0514436811, 0.0763027072, -0.023475796, -0.2715887427, -0.1240642518, 0.443482995, 0.1363621652, -0.1830368936, 0.1523010433, 0.1323876083, -0.07473436, -0.1610768586, -0.0792463273, 0.1676334739, -0.5585591197, 0.0591032542, -0.2398999333, -0.0812934712, 0.0603835247, 0.1577668637, 0.2505896389, -0.25831604, 0.0715050846, -0.578091979, -0.269754231, 0.0295941755, -0.0586961284, 0.1819916666, 0.0045937821, 0.0138157234, 0.0133007541, -0.1490948945, -0.3993141651, 0.2320011407, -0.1090365499, -0.1081174314, 0.0873612836, -0.007823593, 0.2728001177, 0.0636746287, 0.1723722517, 0.1119481325, -0.4826048613, -0.2258475423, -0.006813176, 0.0910322517, -0.0355653986, -0.1436188221, -0.0072474815, -0.0998622477, -0.1102185324, -0.0084546171, 0.1170770973, 0.2097507119, 0.0412969105, -0.2090099752, -0.1159459054, 0.0112969084, -0.1504195184, 0.3645819426, 0.1342125833, 0.049959898, -0.0004250444, 0.1925396919, -0.1359706819, -0.0129972175, -0.1121394485, -0.0891810656, 0.061237067, 0.2666774392, 0.3983947039, -0.2141107172, 0.214477554, 0.5816688538, 0.2518544197, 0.2296137512, -0.2959104478, 0.1607380211, 0.1413056552, 0.3287953734, -0.3148746789, -0.2781592906, 0.4195441902, 0.2699162364, 0.0607740358, 0.3457852602, 0.3644163609, 0.1267196983, 0.4909864664, 0.2410898507, 0.7073953152, -0.0904366523, 0.3090628088, 0.3332033157, -0.0311152115, 0.0885227919, 0.5610822439, 0.264636457, 0.1068782508, 0.5835361481, -0.0724654496, 0.4266378284, 0.0914977938, 0.0557044521, -0.1497880369, -0.1735353172, -0.2629808486, 0.0968463346, 0.1215831041, 0.1593316197, -0.1135705262, -0.1025876328, -0.2767373323, -0.0749080926, -0.4128288031, 0.2028880715, -0.1576402336, 0.009831395, 0.0702228844, -0.2928049266, -0.0622262172, 0.0822265148, 0.0259677414, 0.0887749046, 0.1094325334, 0.0419866666, -0.1684211344, -0.2736289203, -0.1572638154, 0.2412974536, 0.0817093998, -0.1552294195, 0.3693653643, 0.1513492465, -0.108591944, -0.0205728114, 0.3077448905, 0.3604048491, 0.1155741811, 0.0611662231, -0.0524355918, 0.0979602188, -0.0790833607, -0.1598641276, 0.1252259314, 0.0504925326, 0.3037778735, 0.1888388246, 0.2769695818, -0.297316879, 0.2524170876, -0.2654285729, 0.1609306335, -0.2756276727, -0.1300497949, -0.1435504258, -0.0833066255, -0.2492135018, -0.1099414229, -0.2449306995, -0.0160886906, 0.2885896862, -0.105600588, 0.0203260034, -0.4095276892, 0.1032079682, -0.0276097283, 0.210609138, 0.4602038264, -0.0942184478, -0.115658842, -0.1780622005, -0.9365279078, 0.3066979647, -0.2836106718, -0.208344534, 0.1622203588, -0.1118566915, -0.0682983994, 0.2574863434, 0.468986243, 0.1569055021, 0.2140837908, 0.2086202204, -0.3969551027, -0.093829751, 0.3109643757, 0.0110951904, 0.1661644876, -0.2809451818, -0.0325661637, -0.1328877807, 0.1413198411, -0.1511570066, -0.0938485637, -0.1022335812, -0.0718071461, 0.7232587934, 0.0636359006, 0.0494973548, 0.0063655898, -0.3130992949, -0.3735242188, -0.2301963866, -0.1844259202, -0.0065051205, 0.0904605389, 0.3327546716, -0.2201776505, -0.0283154882, -0.4172605872, 0.1894255728, 0.1188801527, -0.0296961404, -0.1313204765, 0.1838794053, -0.3572981954, 0.1247299463, 0.3231872916, 0.2014230788, 0.0441385284, 0.2464498281, -0.1630650163, -0.3918915689, 0.4560478926, 0.0383991823, -0.2726227045, -0.1572238058, 0.0500914864, 0.0204186868, -0.1961498708, -0.2693959475, 0.2729895711, 0.2459129393, 0.1181411967, -0.1239309758, 0.1538919657, -0.2061372697, -0.0190598965, 0.0374164507, 0.4905185103, 0.0262597017, -0.1366614699, 0.2494590431, 0.0027827695 ]
https://github.com/huggingface/datasets/issues/2691
xtreme / pan-x cannot be downloaded
Reply from the author/maintainer: > Will fix the issue and let you know during the weekend.
## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1
16
xtreme / pan-x cannot be downloaded ## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1 Reply from the author/maintainer: > Will fix the issue and let you know during the weekend.
[ -0.3508207798, -0.4881739318, -0.101257056, 0.267937392, 0.2424273491, 0.0743880644, -0.1332193017, 0.2452752888, 0.1442700624, 0.1187146083, -0.243665278, 0.2646328807, 0.0461624637, 0.0465014353, 0.1917270273, -0.3267599642, 0.0447653159, 0.1279419214, 0.0111562684, -0.0376446322, -0.1420017332, 0.16778256, -0.2066325843, 0.1202998459, -0.2243201435, 0.1020484194, 0.0773360953, 0.1569075435, -0.3100251257, -0.4581514001, 0.6455738544, -0.0633815527, 0.2681769133, 0.6048036814, -0.0001053799, 0.021037899, 0.2643090785, -0.0464518964, 0.1647492647, -0.4361988306, -0.2859499753, -0.3566256166, -0.0301671773, -0.2249146104, -0.040712215, -0.2227440029, -0.1089598313, -0.1149021685, 0.2539049387, 0.2242112756, 0.2944548726, 0.3886256218, 0.1530673057, -0.2150014043, 0.4348994195, -0.0721099079, -0.3141877055, 0.108487159, 0.3806251884, 0.1838411391, 0.46409899, 0.2748151422, -0.0413426943, 0.0587843135, 0.1589151919, 0.0977328718, -0.0495259725, -0.4637804925, 0.0388807803, 0.328119874, 0.38798666, -0.2812047899, -0.3449712992, -0.0700661093, 0.0634026676, -0.3715294302, 0.2863738537, 0.1802631915, -0.0139235035, 0.0406310931, 0.0181270912, -0.0481520295, -0.0553826019, 0.1107013822, -0.0341189355, 0.2764593661, -0.2252990752, -0.0331715792, 0.1091582477, -0.0374771282, 0.2385875881, 0.0867520124, -0.0555851161, 0.1689651757, -0.2702021301, 0.0684051663, 0.0074785315, -0.0838784575, 0.3481559157, -0.0777054727, -0.1982529014, 0.0007950123, -0.129214257, 0.0622541793, 0.094606787, 0.1408194155, 0.0807006061, 0.0324026383, 0.2074716091, 0.1673327684, 0.0849221498, -0.0790968239, -0.1301609874, -0.0352243669, 0.1570245028, -0.0415830463, 0.3730689883, -0.3932175636, -0.2654048204, 0.054811392, 0.083470583, 0.069112584, 0.0720816106, 0.2562322617, -0.1046688706, 0.3372241557, -0.1489221901, 0.4322538674, -0.2205555886, 0.0384462476, -0.2084828019, 0.3019188344, -0.295786351, -0.2560023665, 0.2096587569, -0.1504611075, 0.3913118839, 0.0729193762, 0.3850793839, -0.1997146904, 0.0614925474, 0.0084679313, -0.3092305958, 0.3815723658, 0.1917424351, 0.1878197789, -0.1223000437, 0.1563585252, -0.1546245664, 0.0993809849, -0.5259686112, -0.0668005347, -0.0467679016, 0.2607637048, -0.1234367043, -0.0680577159, -0.5894204378, -0.1413498819, -0.0553175099, 0.1839160472, 0.1050056964, -0.2398907542, 0.1146363318, -0.2036356032, 0.2371753454, 0.187357977, -0.213773787, -0.0268490762, -0.0182720795, -0.3518373072, -0.0915607363, 0.1520218849, -0.1924152672, -0.0190142319, -0.2748942077, 0.3359983265, 0.4756490886, -0.5591968298, -0.5651315451, -0.0963320583, -0.2180441767, 0.0007041469, -0.0200066268, 0.0962055922, -0.1117713302, -0.0004897565, 0.0994875878, 0.2488737106, 0.0631217137, -0.0226262026, -0.1768684834, -0.226600647, -0.3862450123, 0.3425418735, 0.2518788278, -0.0944092423, 0.0663156062, -0.0002346784, 0.1595529765, -0.0831318721, -0.0486579686, 0.3730814755, 0.2286724001, 0.0447256379, -0.1036695391, -0.3814466, -0.3556779921, 0.2895233333, -0.092832379, -0.1557421386, 0.0468274094, -0.154229641, -0.4698530436, 0.2062277347, -0.2509517372, -0.0803834647, 0.1326964349, 0.0898679495, 0.2055640221, 0.0326892808, -0.2376070321, 0.0768266171, 0.0526438802, 0.1150266528, -0.3940123916, 0.2354758233, -0.0872816369, -0.1635207534, 0.0684075356, 0.0649870336, 0.2122332156, -0.237891987, -0.1321240962, 0.3139256835, -0.0963533819, 0.1405933797, 0.2412086129, 0.0367049947, 0.0682004616, -0.6196576953, 0.2208237499, 0.0719356537, -0.0106893182, 0.1309361607, -0.0878991187, 0.3659492731, 0.0959122777, -0.1123287231, -0.0786754042, 0.0964421779, 0.3741548061, -0.1869223118, 0.125878945, -0.0770235062, 0.3527861536, -0.087723285, 0.1305989772, -0.2188172191, -0.3352222443, 0.0951021016, 0.2439252883, -0.0809093043, 0.2046397775, 0.0871255845, -0.108967647, 0.1696588695, -0.0836642757, 0.058660835, 0.4200648367, 0.1910060495, 0.0222821198, 0.1096698567, -0.0126074962, -0.1149557903, 0.0522857048, 0.0696803331, -0.2818588912, 0.0545436032, 0.11045973, 0.0407715999, -0.30767712, -0.1345251501, -0.1521244645, 0.1130895913, -0.1194996536, -0.1115962043, -0.1741675138, -0.0930005014, -0.0067219138, -0.0441841967, -0.2230140269, -0.1807044744, -0.0032336088, 0.2508815527, 0.3006362021, 0.1857054681, -0.4258004427, -0.1767804325, 0.0492325351, -0.3311215937, -0.2414439321, 0.273961693, -0.0648466051, 0.1281392425, 0.0012628213, 0.1026067287, 0.2570168674, -0.3908738196, 0.2834925354, -0.3780143261, -0.2129532993, 0.0874036849, -0.2608729601, 0.3951699734, 0.1670733094, 0.0618839562, -0.1002265215, 0.2385389805, 0.3719348311, -0.4895249009, -0.0249969549, 0.0311356783, 0.0116855651, -0.2028896809, 0.0012990907, -0.2291322052, -0.3406861424, -0.3332810998, 0.0251751114, 0.1601016521, 0.0542631187, -0.0320996568, 0.0846429616, 0.0127802156, -0.1503256559, -0.1215311885, -0.2492098659, -0.6595407724, 0.4708841741, -0.2177618146, -0.4426347315, 0.2858902216, 0.0693381429, 0.2742738724, 0.0797223151, -0.5939120054, -0.3438003063, -0.2070497274, 0.4223081768, 0.0485909432, 0.2106078565, 0.1916272193, -0.2807767391, -0.0558230467, -0.1982803494, -0.2254240364, -0.3088793159, 0.0396661423, 0.2459841669, -0.0177333131, 0.2006797493, -0.1411967725, 0.45592466, 0.1566531658, 0.2250501364, 0.5607681274, -0.0784544051, 0.2969375849, -0.1781839281, -0.3331463635, -0.0779971108, 0.1333858967, 0.1393453181, 0.0049038753, 0.2621773779, 0.0415846705, -0.2719682753, -0.0684312433, -0.0087967589, -0.0761468485, -0.0551775694, 0.1933753341, 0.0745695233, 0.0178929493, 0.2722106576, -0.1637098193, -0.1097762585, 0.0779529661, 0.3760088384, 0.0609089732, 0.2542282343, -0.6363354921, 0.1994327605, -0.4225555956, 0.2633746862, 0.0229358114, 0.3032849729, 0.0271449015, 0.127560854, 0.2268924415, 0.017395705, 0.3738662004, -0.2115798891, 0.2356042117, 0.1690298915, -0.1563700438, -0.3037771583, -0.1220085025, -0.1556057036, 0.0848981515, 0.1849732101, 0.426104188, -0.2923198938, -0.2029683739, 0.2418844998, 0.1523058116, 0.0301389843, -0.1369527131, -0.3014231622, -0.5566598773, -0.1976756454, -0.0641247928, 0.2056791931, 0.0641509742, 0.1885641217, -0.0287857614, -0.234207958, -0.0634589642, 0.1824843287, 0.2650258839, 0.3496649861, -0.1581736654, 0.206997022, 0.0887266845, -0.3461325765, 0.2118753046, 0.6712538004, -0.0343953297, -0.4521389604, 0.0967701226, -0.0372723266, -0.0049408376, 0.0629558638, -0.1753768325, -0.0580418333, -0.222293973, 0.1522692442, 0.0563975163, 0.2417757064, 0.3856703043, 0.0768091083, -0.4572798014, -0.293009758, 0.5171843767, 0.2759589553, 0.1106101125, 0.2264080346, -0.0755703822, 0.0059406906, -0.1686210781, -0.0367951654, 0.8605222702, -0.02009416, -0.0090476917, 0.2049699575, 0.0234195665, 0.1926707327, -0.1032150388, 0.0858312175, -0.1676979214, -0.4318580627, -0.1242150962, -0.18551974, 0.1440000981, -0.0584131703, -0.0112075284, 0.2490831017, -0.017395176, 0.1041811109, 0.0706712157, 0.0729287341, -0.1568383574, -0.1870139986, -0.5920324326, 0.2291753292, -0.0189188458, 0.3568812609, -0.1645395905, -0.0627130643, -0.1835576892, -0.1184019297, -0.0058980733, 0.3321673274, -0.0169967748, 0.0666973442, 0.0330717601, -0.5403258801, -0.0495047271, 0.0661533177, 0.0649537891, 0.124114126, -0.2367531359, 0.3196370006, 0.0056380574, -0.2470930219, 0.1195453554, -0.1384114772, -0.1862735897, -0.1169378236, -0.1802088469, 0.1975177824, -0.0473878533, -0.2174138427, -0.2288227677, 0.0365485288, -0.108630307, -0.1126612574, -0.1459474266, -0.2184646279, 0.2761244178, -0.2277488559, 0.1800664812, 0.2461974025, -0.0148838889, 0.112152867, 0.0897890776, -0.3175093532, -0.1800657809, 0.3480767012, -0.0394451544, -0.120591931, 0.1218542606, 0.1929723173, -0.0352569781, -0.1940978318, 0.0460472256, 0.2011943161, -0.6195083261, 0.020856116, -0.137399137, 0.0142478645, -0.0530654639, 0.2701611817, 0.2481818348, -0.3544402122, 0.2466700226, -0.5972571373, -0.2012001276, 0.1433127671, -0.0129746972, 0.213629961, 0.1011096388, 0.0865783989, 0.1163205057, -0.2084693909, -0.3718106151, 0.1484272331, -0.085133113, -0.0941162109, 0.1408210099, 0.0926846936, 0.2820593715, 0.0364788361, 0.1912921965, 0.0903545618, -0.373238802, -0.2340145409, -0.0399683937, 0.070935294, -0.026768893, -0.1522598714, 0.0009428039, -0.0621792562, -0.2029341757, -0.0487755351, 0.1483900547, 0.1990871429, 0.0471786782, -0.1144537479, 0.0083836187, 0.0303983465, -0.2331447601, 0.2854088843, 0.1517047882, 0.0903532356, -0.1003666073, 0.1442609429, -0.0590412952, -0.0432400405, -0.2194744945, -0.1026570648, 0.1456823647, 0.2854141891, 0.2501861453, -0.1964507848, 0.312825501, 0.5136575699, 0.2690921128, 0.3190077841, -0.2770459056, 0.2185477465, 0.1570940018, 0.3223166764, -0.3402839303, -0.1649014503, 0.3743474185, 0.3258281946, 0.0282960534, 0.3628847599, 0.2453306317, 0.160516575, 0.3300943375, 0.186207369, 0.6517943144, 0.0480825901, 0.3317585588, 0.4907914102, -0.0095803887, 0.0681623369, 0.4628818035, 0.2584777474, 0.0624929592, 0.5506417751, -0.1220128611, 0.3823798001, 0.0109420996, 0.1227215156, -0.1426024288, -0.238399744, -0.2924522758, -0.0140770972, 0.0763157159, 0.0464275479, -0.0517435372, 0.1019361988, -0.3627050519, -0.0767848939, -0.408557415, 0.1955699176, -0.1277136654, 0.0611224473, 0.0815944374, -0.1939545721, -0.0248514637, 0.0003705025, -0.0396143869, -0.0183502845, 0.2154424042, 0.0037962422, -0.1877611876, -0.2962321937, 0.0072554722, 0.3406333327, -0.0216181874, -0.1100147218, 0.3868376911, 0.0700778589, -0.0909490287, -0.0202033632, 0.384165585, 0.3209079802, 0.1881235987, 0.1001429409, -0.0689264908, 0.1008494049, -0.0525462814, -0.0626369119, 0.1833415627, 0.0194405876, 0.405985564, 0.2199338228, 0.2920581102, -0.2601918578, 0.1627619863, -0.1733613759, 0.1274043471, -0.2675946951, 0.0019139983, -0.3240398765, -0.1166406348, -0.2153552622, -0.1564311087, -0.1879630387, 0.0399808325, 0.2971609831, -0.008156307, 0.0440372042, -0.3504027426, 0.0983130485, -0.1131950021, 0.1918176413, 0.3956765532, 0.0221830644, -0.2351938188, -0.1102323011, -0.8148162365, 0.282946229, -0.2405507118, -0.3548555076, 0.2154842317, -0.1633157581, -0.1039041281, 0.3233466148, 0.4029321671, 0.1540606469, 0.2269130647, 0.2429273576, -0.364400357, -0.1051165685, 0.1346465051, 0.0678055361, 0.1877434552, -0.2748461366, 0.0216614455, -0.0715661645, 0.0703183785, -0.2177800536, -0.1180780828, -0.1292555034, -0.2397356331, 0.7350841165, 0.0209609773, 0.1643331051, -0.0689477846, -0.1507926881, -0.3329706788, -0.3756675422, -0.1921011955, 0.1744665504, 0.0068290774, 0.2460231632, -0.1461540759, 0.015409233, -0.3872995079, 0.1798045039, 0.0797631443, -0.0587992929, -0.1046175733, 0.1820993274, -0.3372631967, 0.0582621805, 0.2378582954, 0.1692323387, -0.0135630816, 0.2319487035, -0.1146038771, -0.4429405332, 0.4428629875, 0.0188659988, -0.2732521892, -0.0701515675, 0.0607484691, 0.0788186416, -0.2855610847, -0.3377628326, 0.339584589, 0.2811836898, 0.1168807149, -0.0960109383, 0.1693701595, -0.1990393102, -0.0334398448, 0.1144593805, 0.5657115579, -0.0420864299, -0.1423900425, 0.4052657485, -0.0098425448 ]
https://github.com/huggingface/datasets/issues/2691
xtreme / pan-x cannot be downloaded
The author told that apparently Dropbox has changed their policy and no longer allow downloading the file without having signed in first. The author asked Hugging Face to host their dataset.
## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1
31
xtreme / pan-x cannot be downloaded ## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1 The author told that apparently Dropbox has changed their policy and no longer allow downloading the file without having signed in first. The author asked Hugging Face to host their dataset.
[ -0.2759370208, -0.3480379581, -0.059366826, 0.3470795453, 0.1086417213, 0.0554848909, 0.0214383323, 0.2132671475, 0.3107885122, 0.0681138337, -0.2372270226, 0.2172873318, -0.0742673278, 0.1829396039, 0.2306468189, -0.1670993567, 0.0182072297, 0.0383959413, 0.1040742844, -0.1059665903, -0.0068048164, 0.0688060969, -0.235252738, 0.0341517292, -0.2067682892, -0.0287322402, 0.0926771164, 0.331882894, -0.3699328899, -0.375194937, 0.6139099598, -0.0842425376, 0.1851759851, 0.5841590762, -0.0001120174, 0.0652963221, 0.1374394, -0.1021745056, -0.0775006562, -0.5789531469, -0.3472652435, -0.4007539153, -0.0861783773, -0.1636054069, -0.0511672795, -0.1117287278, -0.0150204664, -0.1729520559, 0.5082506537, 0.3695928156, 0.2240835726, 0.546949923, 0.1720807254, -0.1378315389, 0.3611238301, 0.1562044322, -0.2377881706, 0.4367511868, 0.3216774464, 0.1157637909, 0.4112885296, 0.1775458455, -0.0996760502, -0.1689157486, 0.1308137923, 0.0133557245, -0.2266706228, -0.4470200539, 0.078402549, 0.2077760547, 0.3536137938, -0.1338853538, -0.4127600789, -0.3614982963, 0.1108664423, -0.1548255384, 0.2727959454, 0.1956165731, -0.035945639, 0.1448783278, 0.0599417761, -0.1014326811, -0.0129188672, 0.0593795031, 0.0173096061, 0.3373426795, -0.2577695847, 0.0144007113, 0.1092238128, -0.0751527399, 0.3978735209, 0.0532082729, -0.0479288921, 0.1232227087, -0.1411842853, 0.0053742751, -0.0540443584, 0.0137523897, 0.2482397258, 0.0194023065, -0.078555353, -0.0808855295, -0.2006910145, 0.0241394415, 0.1848614812, 0.3048702776, 0.1491408944, -0.103331551, 0.174578324, 0.3312748075, 0.1960030049, -0.0434591249, -0.2963787019, 0.0445669368, -0.0722325295, -0.1512656212, 0.5243730545, -0.2715310454, -0.3970924616, -0.0195272956, 0.0200424641, -0.0885453224, 0.134008199, 0.2182936966, -0.1068647876, 0.2549793124, -0.0760691017, 0.2554853559, -0.1630509794, -0.1515773535, -0.1914502382, 0.4051417708, -0.2343257964, -0.160365954, 0.1848151684, -0.2435049713, 0.4186849892, 0.1288651079, 0.394661516, -0.1500297189, 0.1027110741, 0.0922758803, -0.1681752503, 0.3451004922, 0.1561530977, 0.1269646287, -0.0141464751, -0.2348548323, -0.1157531068, 0.0571510717, -0.5933462977, -0.1403058022, -0.1993743926, 0.1679311097, -0.2249722481, -0.1307010502, -0.4889056981, -0.1503002346, -0.1152250469, 0.0413697809, 0.1745773107, -0.0939835757, 0.2278485447, -0.1294245571, 0.1880386025, 0.4361647069, -0.2327735573, 0.0334096998, -0.1792380512, -0.0993945748, -0.0730863586, 0.0946990103, -0.2904943824, -0.0520448945, -0.4483387172, 0.199785158, 0.2893692255, -0.7500990033, -0.5598579645, -0.0898610204, -0.4706424475, 0.2330068648, 0.0047260523, 0.0929390565, -0.0257567726, -0.1167185679, 0.1843947619, 0.0955513418, 0.1699334085, -0.1224312335, -0.204554379, -0.2444780469, -0.2624107003, 0.2842638493, 0.0622707903, 0.0681211054, 0.0910937339, 0.2827213109, 0.2098221779, -0.0228562504, -0.0933937877, 0.3326895535, 0.2923719585, 0.0233743005, -0.2868403196, -0.2477782071, -0.4232815206, 0.3309372663, 0.0280760452, -0.1051028073, -0.0007372014, -0.2265767157, -0.5678088069, 0.1613327861, -0.1888892502, -0.178544119, 0.0677735507, 0.1239688322, 0.151399374, 0.0496585444, -0.2474331856, 0.2233789563, 0.0188433677, 0.1543608308, -0.5641946793, 0.2311492115, -0.1155120358, -0.0604088902, 0.0352691561, 0.0466389619, 0.2501814365, -0.2004780322, -0.0556468517, 0.3803121448, -0.1920127869, 0.0159698613, 0.2529333234, 0.0522419214, 0.1939555854, -0.4988431036, 0.2435883135, 0.0546600968, 0.023515638, 0.1672840118, -0.2205287218, 0.4448284507, 0.0305797905, -0.2373155057, -0.1401199847, 0.1262516379, 0.2230829895, -0.130605787, -0.027224578, -0.1473648846, 0.2565686107, -0.2958557308, 0.4428704977, -0.1918586791, -0.3940772116, 0.0924433619, 0.2551041543, -0.0954710692, 0.1634526551, 0.1062979102, 0.0065807495, 0.0754792467, 0.0918332189, 0.1748157442, 0.4484559894, 0.128784433, 0.0455228873, 0.1220075116, 0.1126528382, -0.1875597239, 0.1822133511, -0.0599474013, -0.4153225124, 0.0525691435, 0.22997877, 0.0714467168, -0.3545281291, -0.2406419367, -0.1877214611, 0.0300266463, -0.2494356781, -0.0179141052, -0.128633365, -0.2612885833, -0.0283742249, -0.0056920089, -0.3994727433, -0.1412362456, -0.1487311423, 0.2708367109, 0.2493285537, 0.0064037554, -0.3584652245, 0.1185194105, -0.0075163245, -0.136756897, -0.3121979833, 0.3624309897, -0.0285943057, 0.0484774932, 0.1105540097, -0.0293609314, 0.2358981371, -0.4157186151, 0.1052327901, -0.3573946357, -0.3269350529, 0.045169998, -0.2162968218, 0.4289376736, 0.1453775913, 0.2217926979, -0.0008088797, 0.0529852211, 0.2060076296, -0.216747582, -0.0299979001, -0.2100403458, 0.0807594806, -0.1460520327, 0.0060585067, -0.0265286863, -0.4058991969, -0.3775564432, 0.2012753487, 0.1482295394, -0.0348028988, 0.2005347759, 0.0097332038, 0.1122851223, -0.1734445691, -0.1491318047, -0.1994178295, -0.8692606688, 0.409103483, -0.2042850107, -0.3979106843, 0.2263701558, 0.1963294297, 0.1721194088, -0.177660808, -0.5201550126, -0.419614315, -0.2218333483, 0.4353310466, -0.0021962137, 0.137933746, 0.2515822947, -0.2824036777, 0.0077369548, -0.1384649575, -0.2788475156, -0.2825561464, 0.2268456668, 0.1722357869, -0.0015177, 0.0224353746, -0.0498861037, 0.3794850409, 0.1308887899, 0.1611365378, 0.5610557795, -0.0744287074, 0.4397814572, -0.1766297519, -0.4628421664, -0.1886907518, 0.0963775292, 0.032303445, -0.0544360317, 0.2265843004, 0.27906093, -0.3562263846, -0.1995024979, -0.0767231584, -0.064536117, -0.110574007, 0.0093631344, -0.0044456683, 0.0796469897, 0.2570388913, -0.1833251715, -0.1509725153, -0.0236527212, 0.4484079182, 0.2238719463, 0.240595758, -0.509665966, 0.2740633488, -0.3780688643, 0.1887896657, -0.031872429, 0.3348706961, -0.1444581151, 0.084574841, 0.2295600623, 0.0133821815, 0.4435729682, -0.077571705, 0.3544702232, 0.0710436106, -0.1226011813, -0.2085144222, -0.105420582, -0.0435267128, 0.0770964622, 0.1953820288, 0.5760688186, -0.2934000492, -0.1664155722, 0.2404118776, 0.1298157275, 0.0364876539, 0.0377403386, -0.2254048586, -0.6075827479, -0.1573697329, -0.0444926918, 0.2579649687, -0.0299647339, 0.1044437811, 0.112733677, -0.1593714207, -0.0189800635, 0.1871158183, 0.1539865583, 0.2559455633, -0.024743611, 0.2165155113, 0.1908063591, -0.1383117139, 0.264972806, 0.8343400359, 0.0106113218, -0.3429009318, 0.0427500606, 0.0639127791, 0.0057259351, 0.387778908, -0.1211974621, -0.0853440017, 0.0048183128, 0.1961672604, -0.0233455971, 0.2301376909, 0.3775059581, -0.0149426833, -0.4949693084, -0.3380524516, 0.5363481641, 0.1302824616, 0.074252218, 0.1904313564, 0.1329297274, 0.0057336055, -0.1068959832, -0.0971720666, 1.1719789505, 0.0562252365, 0.249209106, 0.2455011159, -0.0852787644, 0.2562087774, -0.0884606913, -0.0167997479, -0.1013687551, -0.4164632559, -0.1429824084, -0.1163862124, 0.1411391497, -0.0901830941, 0.0010765716, 0.1374602914, -0.1716613024, 0.1739597023, 0.1153220087, 0.1687586904, -0.2411979139, -0.0612040013, -0.473358959, 0.1426100433, -0.006974848, 0.3821437061, -0.2010967433, -0.2299175858, -0.2083752453, -0.1166218668, -0.066012539, 0.2327335179, 0.1083543748, -0.0123810098, -0.0692907274, -0.5590740442, 0.0888751596, 0.0713527203, 0.006064428, 0.1797234863, -0.3232238591, 0.3109990656, -0.0692845732, -0.203599602, 0.1290310174, -0.1362449825, -0.1140314564, -0.0352117121, -0.1258569062, 0.0929850042, -0.1436608136, -0.1394316107, -0.385686785, 0.2510841191, -0.2772892714, -0.2268613279, -0.1644972861, -0.1835370362, 0.3595430553, -0.2530408502, 0.1040875688, 0.1485450864, 0.1078658924, -0.2641800344, 0.15316315, -0.2987471819, -0.1521571577, 0.5257738233, -0.1988989562, 0.0334546044, 0.1715101153, 0.013076283, 0.0204175711, -0.1379291713, 0.1412818283, 0.0616843663, -0.6248802543, 0.1188294142, -0.2430002242, 0.0227163434, -0.2295224518, 0.346809417, 0.3823339939, -0.2665138841, 0.286668092, -0.5378326178, -0.0770435259, 0.1276143491, 0.0879104808, 0.0976175815, 0.0959596485, 0.1219418794, 0.1061662212, -0.159808293, -0.3132173419, 0.1700584888, -0.1219954789, -0.1898823231, 0.345461905, 0.0432376005, 0.3752044737, -0.0161013752, 0.1467812061, 0.0533298925, -0.2933902144, -0.1397867203, -0.0504705608, 0.1410352886, 0.0521026552, -0.2471047938, 0.0549416244, -0.168438375, -0.1605032682, 0.0132017992, 0.036701791, 0.2360642701, 0.1174362078, -0.144990012, -0.1602436304, 0.1950679719, -0.2450077236, 0.341894269, 0.2247638851, 0.0340526327, -0.1005304456, 0.1787564009, -0.1220848486, 0.0183277726, -0.2611815929, -0.0856616348, 0.0776031837, 0.3909317851, 0.337634027, -0.1346833259, 0.2393319905, 0.3750910163, 0.2669951916, 0.3125608563, -0.2661046088, 0.17914702, 0.1509799212, 0.2022508383, -0.3251585662, -0.184399128, 0.2895819843, 0.2845374346, 0.0079278573, 0.2907943726, 0.2425778806, 0.1455314159, 0.0103200208, 0.1336500943, 0.8089540601, 0.2793609798, 0.36729756, 0.5459702015, -0.1114081964, -0.0239293985, 0.4142664373, 0.2047235668, 0.1880603433, 0.4659932256, -0.1904215813, 0.3810593486, 0.0038552051, 0.1714946926, -0.1326283962, -0.3277800083, 0.0001663615, 0.0214360282, 0.1399544775, 0.0384781547, -0.0150219761, 0.1334610283, -0.4537132382, -0.0577390902, -0.2650279403, 0.2728068233, -0.1544530541, 0.1055007726, 0.0780472606, -0.3082311451, -0.041671373, 0.0296848565, -0.0832871497, -0.1457926333, 0.2115958035, 0.038627848, -0.1341888309, -0.2017862648, -0.1125047207, 0.3462385535, 0.0870193541, -0.1962680817, 0.4236858785, 0.2718048394, -0.1568723172, 0.0498094894, 0.352347821, 0.4650505185, 0.0559387803, 0.2656494379, 0.064721249, 0.0683036223, -0.1031054258, -0.0804573447, 0.2312496603, 0.0351842381, 0.43707183, 0.2358406186, 0.2388892174, -0.2383614182, 0.240234971, -0.2012110651, 0.0160366111, -0.4459689856, -0.0041086562, -0.3592950404, -0.1920765042, -0.2463412732, -0.1867138296, -0.161537379, 0.1050264835, 0.1937413365, 0.0522895716, 0.0789947659, -0.3036749661, 0.0630608946, -0.0058308747, 0.2179624438, 0.4620445967, -0.0886169821, -0.0866260156, -0.175901264, -0.8899626732, 0.2022522092, -0.1749409437, -0.3776011467, 0.1036336124, -0.2651176751, -0.0521909557, 0.165572077, 0.2213155627, 0.2603113353, 0.1472956985, 0.1278585792, -0.2324409038, -0.083608374, 0.1863343716, 0.1379171461, 0.1272397339, -0.1580207646, 0.1513993591, 0.0785692036, 0.0199982524, -0.0584158972, -0.0605282933, -0.178876698, -0.332924366, 0.6669121981, 0.034896642, 0.1883096099, -0.1101696938, -0.2008661926, -0.3298518956, -0.1550641805, -0.1784971207, 0.2253369093, 0.1351693273, 0.3386968076, -0.0827751756, -0.0310576595, -0.3715770245, 0.3031165898, 0.0216149837, -0.0353380106, -0.2809810042, 0.0684916377, -0.3736379445, 0.0630948246, 0.2487871647, 0.2379323393, -0.0699617267, 0.058981508, -0.1878469884, -0.4683723748, 0.5749183893, -0.1280220449, -0.2461774945, 0.0778387934, 0.1704556793, -0.0042459797, -0.2991143763, -0.088773489, 0.2385408431, 0.3178569973, -0.0317887887, -0.0475272276, 0.1778371036, -0.2720619738, -0.0316480622, 0.1030773073, 0.7202533484, 0.0673561841, -0.2254706323, 0.5698350668, 0.023549363 ]
https://github.com/huggingface/datasets/issues/2689
cannot save the dataset to disk after rename_column
Hi ! That's because you are trying to overwrite a file that is already open and being used. Indeed `foo/dataset.arrow` is open and used by your `dataset` object. When you do `rename_column`, the resulting dataset reads the data from the same arrow file. In other cases like when using `map` on the other hand, the resulting dataset reads the data from another arrow file that is the result of the map transform. Therefore overwriting a dataset after `rename_column` is not possible, but it is possible after `map`, since `rename_column` doesn't switch to using another arrow file (the actual data stay the same).
## Describe the bug If you use `rename_column` and do no other modification, you will be unable to save the dataset using `save_to_disk` ## Steps to reproduce the bug ```python # Sample code to reproduce the bug In [1]: from datasets import Dataset, load_from_disk In [5]: dataset=Dataset.from_dict({'foo': [0]}) In [7]: dataset.save_to_disk('foo') In [8]: dataset=load_from_disk('foo') In [10]: dataset=dataset.rename_column('foo', 'bar') In [11]: dataset.save_to_disk('foo') --------------------------------------------------------------------------- PermissionError Traceback (most recent call last) <ipython-input-11-a3bc0d4fc339> in <module> ----> 1 dataset.save_to_disk('foo') /mnt/beegfs/projects/meerqat/anaconda3/envs/meerqat/lib/python3.7/site-packages/datasets/arrow_dataset.py in save_to_disk(self, dataset_path , fs) 597 if Path(dataset_path, config.DATASET_ARROW_FILENAME) in cache_files_paths: 598 raise PermissionError( --> 599 f"Tried to overwrite {Path(dataset_path, config.DATASET_ARROW_FILENAME)} but a dataset can't overwrite itself." 600 ) 601 if Path(dataset_path, config.DATASET_INDICES_FILENAME) in cache_files_paths: PermissionError: Tried to overwrite foo/dataset.arrow but a dataset can't overwrite itself. ``` N. B. I created the dataset from dict to enable easy reproduction but the same happens if you load an existing dataset (e.g. starting from `In [8]`) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.0 - Platform: Linux-3.10.0-1160.11.1.el7.x86_64-x86_64-with-centos-7.9.2009-Core - Python version: 3.7.10 - PyArrow version: 3.0.0
102
cannot save the dataset to disk after rename_column ## Describe the bug If you use `rename_column` and do no other modification, you will be unable to save the dataset using `save_to_disk` ## Steps to reproduce the bug ```python # Sample code to reproduce the bug In [1]: from datasets import Dataset, load_from_disk In [5]: dataset=Dataset.from_dict({'foo': [0]}) In [7]: dataset.save_to_disk('foo') In [8]: dataset=load_from_disk('foo') In [10]: dataset=dataset.rename_column('foo', 'bar') In [11]: dataset.save_to_disk('foo') --------------------------------------------------------------------------- PermissionError Traceback (most recent call last) <ipython-input-11-a3bc0d4fc339> in <module> ----> 1 dataset.save_to_disk('foo') /mnt/beegfs/projects/meerqat/anaconda3/envs/meerqat/lib/python3.7/site-packages/datasets/arrow_dataset.py in save_to_disk(self, dataset_path , fs) 597 if Path(dataset_path, config.DATASET_ARROW_FILENAME) in cache_files_paths: 598 raise PermissionError( --> 599 f"Tried to overwrite {Path(dataset_path, config.DATASET_ARROW_FILENAME)} but a dataset can't overwrite itself." 600 ) 601 if Path(dataset_path, config.DATASET_INDICES_FILENAME) in cache_files_paths: PermissionError: Tried to overwrite foo/dataset.arrow but a dataset can't overwrite itself. ``` N. B. I created the dataset from dict to enable easy reproduction but the same happens if you load an existing dataset (e.g. starting from `In [8]`) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.0 - Platform: Linux-3.10.0-1160.11.1.el7.x86_64-x86_64-with-centos-7.9.2009-Core - Python version: 3.7.10 - PyArrow version: 3.0.0 Hi ! That's because you are trying to overwrite a file that is already open and being used. Indeed `foo/dataset.arrow` is open and used by your `dataset` object. When you do `rename_column`, the resulting dataset reads the data from the same arrow file. In other cases like when using `map` on the other hand, the resulting dataset reads the data from another arrow file that is the result of the map transform. Therefore overwriting a dataset after `rename_column` is not possible, but it is possible after `map`, since `rename_column` doesn't switch to using another arrow file (the actual data stay the same).
[ -0.0523220971, 0.2342097461, -0.0231683105, -0.0133466832, 0.3893547952, 0.2707955241, 0.4929158092, 0.2463015914, 0.0219601467, 0.1201095432, -0.0814651996, 0.4607103467, -0.171995163, -0.1512237042, -0.013640916, -0.0714223981, 0.2988215685, -0.1098153889, -0.0071084835, 0.1580940485, -0.4297681451, -0.0167974345, -0.0632799342, 0.0525314584, -0.1448870003, -0.1060153469, -0.0191485211, 0.0699791312, -0.0107620228, -0.2462691814, 0.0901804045, -0.0555136167, 0.1750019789, 0.3935277462, -0.0001104695, -0.1174479797, 0.016952619, -0.0254377648, -0.3840669096, -0.1677260101, -0.2794015408, -0.2232081443, -0.15346542, -0.5357638597, 0.2765215933, -0.0022125728, -0.1228614226, -0.3125069439, 0.1796945035, 0.2632053792, 0.2940931916, 0.108357206, 0.2733334601, -0.1635737717, 0.0736202747, 0.0986323953, -0.3788084686, 0.2685392797, -0.2693729997, -0.0911086798, 0.1226995736, 0.2915161252, -0.1082792133, -0.0690103024, 0.1018076986, 0.0468241461, 0.1152403653, -0.2415998876, 0.2724039555, -0.1015002131, 0.4159984887, -0.545006752, -0.4493025839, -0.0069586486, 0.2386426777, -0.3515319526, 0.24363105, 0.1155511662, 0.0246032476, 0.133538425, 0.0393226668, -0.268162936, -0.1927659214, 0.0060163122, 0.030040659, -0.2012539953, -0.1730899662, 0.1861051172, 0.0252396259, -0.1277829707, 0.3110418022, -0.0618427843, -0.0558182485, 0.0676210001, -0.4282256365, -0.0441424735, -0.0765139461, -0.1082732454, -0.1432770044, 0.2341354042, -0.0629034117, -0.1409236491, 0.2153322846, 0.2729772329, -0.0386798419, 0.2238938957, -0.0026316196, 0.4684868753, 0.35185799, 0.1197340861, 0.0032545775, -0.1048211306, 0.0783375204, 0.0482480489, 0.6009220481, -0.047897771, 0.4625108838, -0.0603518486, -0.309115082, 0.3789647818, 0.1044593528, -0.0342989005, 0.0012848265, 0.244702816, 0.155156225, 0.0356651247, 0.0988408476, 0.3300383091, 0.1512357593, 0.1673562825, -0.1845289022, -0.0235996004, -0.0770772249, 0.1205220297, 0.1922731698, 0.2134324312, 0.0603945777, 0.1418900192, -0.1296940893, -0.0818708465, 0.0638222694, -0.1976366639, 0.0316388719, 0.323094368, 0.0812872648, 0.2417821884, 0.1332234293, -0.2870063782, 0.0473015308, 0.2195734084, -0.1257429868, -0.1329017729, -0.4467063844, 0.2365871668, 0.1273120344, 0.1414906383, -0.4421398044, -0.2893772721, 0.4343976378, -0.0966239944, 0.2320122421, -0.0182894263, 0.0811487734, -0.4090351462, 0.0521086827, 0.2215988636, -0.1067450792, 0.2233538032, -0.313685745, 0.1113032103, 0.1221689656, 0.1585765928, 0.0759356096, -0.0761190057, -0.1343704462, 0.0381270349, 0.4585374892, -0.3772490323, -0.4912681282, -0.1910639107, -0.1587195694, -0.0277114622, 0.0377317555, 0.0575777628, 0.2001121789, -0.1936410666, -0.0350446478, 0.1537038833, 0.1532450467, 0.0386598185, -0.2126652002, -0.0145916305, -0.0151802646, -0.102222383, -0.0853903517, 0.1332869232, 0.1747179478, -0.0071971044, 0.152600348, -0.0898959786, 0.2490470707, 0.2958875895, 0.4298880398, 0.0385022052, -0.0166203789, -0.276522845, -0.6019979715, 0.107255213, 0.2519675493, -0.2931178212, -0.3241819441, -0.0773592293, -0.2935066223, 0.0149026215, -0.220544219, 0.0091184303, 0.1636466086, 0.2512080669, 0.0141898394, -0.0200967267, -0.2452320009, 0.2676568627, -0.3195352256, 0.1948678046, -0.2083373964, 0.2012099922, -0.2217801064, -0.2969253659, -0.1804703325, 0.1420996338, 0.2723115981, 0.0925012529, -0.2997991741, 0.4652596116, 0.0059306324, 0.0698817223, -0.1298038363, -0.0326073617, -0.1389696896, -0.1473561525, 0.0775984824, -0.0047063529, 0.241963312, 0.0690332949, -0.3622956574, 0.0900745615, -0.0637700036, 0.2205824256, 0.0301660746, 0.1150782555, 0.170815587, -0.117094636, -0.006445244, -0.2951323986, 0.0090422127, 0.0664551929, 0.2198873907, -0.2932215035, -0.1216397807, 0.0560929179, 0.4650207162, 0.0648771226, 0.1760994196, 0.1861424893, -0.0901378691, 0.0198984966, -0.0121842381, 0.614377439, 0.3814358115, 0.0090053007, -0.0581261553, -0.0293168835, -0.1447795928, -0.0531235598, 0.1978242993, 0.0102279615, 0.1976764798, 0.1335364282, 0.3363484144, 0.0209110156, -0.1498913169, -0.1165847182, 0.1740597486, 0.3704488277, -0.3543181419, 0.0263494998, -0.1302933097, 0.1459715664, 0.0057371706, -0.2700258493, -0.1390591264, -0.3707581758, -0.3373609781, 0.6752123237, 0.0063462108, 0.0844877288, -0.1134624258, -0.1232806444, 0.0266845748, 0.122901395, -0.3791601658, -0.0438964516, 0.0552866645, 0.0447742417, 0.0763222277, -0.2286299765, 0.5205160379, -0.0397290364, 0.0512861013, -0.5295776129, -0.1521556824, -0.215319708, -0.1279695332, 0.3062784672, 0.1174207926, 0.3138973117, -0.1450228989, -0.2756848037, 0.2403122634, 0.1121566519, -0.1098958701, 0.1784870923, 0.1534112096, -0.0302772149, -0.0489840619, -0.1432930231, -0.2808938324, -0.3785194159, 0.3248312175, -0.0642382726, 0.1248254254, 0.0986437798, -0.1798855066, 0.1114000976, 0.0895831734, 0.0878934786, -0.2645495832, -0.194521293, 0.436596334, -0.2389997244, -0.220345825, 0.0330366194, 0.1541689783, 0.1376349479, -0.0165129863, -0.2484489083, -0.0653739348, -0.2481316328, 0.471909523, -0.3034967184, 0.1303994507, 0.2934890389, 0.3040729463, -0.0327985622, -0.075049296, -0.2942451239, -0.0698589981, 0.2907999456, 0.2731862962, -0.1038843989, 0.4481273293, -0.1090403125, 0.2552036345, 0.1094086915, 0.1702078581, 0.3902416229, 0.0170499962, 0.1714865416, -0.273575455, -0.5204054117, -0.0096630417, -0.2813248932, -0.0576930419, -0.2282736599, -0.1018166244, 0.001525443, 0.0120260641, 0.0294933096, -0.1431077123, -0.265701592, -0.09985926, -0.2131250948, 0.2652602792, 0.0499817282, 0.0722990781, -0.2405619621, -0.0992756262, 0.002742365, 0.3389505148, 0.1410221756, -0.0870124549, -0.3747828603, -0.0290643908, -0.4143301249, 0.216687575, -0.0847881213, 0.5215465426, 0.0512606651, -0.0871477351, 0.0938089192, -0.0112244468, 0.5587121248, -0.1291040182, -0.007969276, 0.2835009694, 0.3371247053, -0.4498386979, -0.0715077519, 0.0595111772, 0.2570032477, -0.0782482028, 0.5526584983, -0.0892554522, 0.0265101083, 0.1315533072, 0.273325026, -0.2038504183, -0.0962660536, -0.2484713197, -0.2362005264, -0.4278416634, 0.0162368082, -0.0969549641, 0.0553776659, -0.0205210932, 0.1808606237, -0.2027262598, -0.2500326633, -0.1371490359, 0.1048823521, 0.3459596336, -0.1031091362, 0.299120903, -0.0267973561, 0.0492438078, 0.1733400077, 0.2378226221, -0.3225925267, -0.3099868596, 0.1373325437, -0.097311981, 0.2458058745, -0.0312769562, -0.100032948, 0.1695277393, -0.144302696, 0.0795336813, -0.1888788939, -0.1126144901, 0.1532747149, -0.0480420813, -0.2947731018, -0.2696513534, 0.5598938465, 0.152138114, -0.0256517306, 0.3724629581, 0.3968023062, -0.2268082201, 0.299434185, -0.0249312408, 0.8441893458, 0.0668275431, 0.1303777546, 0.1475182772, -0.4604527354, 0.1810044199, 0.149248451, 0.1174046546, -0.4521842897, -0.1211727262, 0.0608229637, -0.0766047612, 0.2374438047, -0.0963648558, -0.2902871966, 0.1960966885, -0.4051043391, 0.1026285365, 0.0222632028, -0.0423744656, -0.4003829062, -0.3322463632, -0.0642174631, 0.2072714269, -0.0953584239, -0.0329146348, 0.0967203826, 0.1744714975, -0.1675387025, -0.0488157831, -0.2289149761, 0.0024296939, -0.0330783799, 0.3684214652, -0.3195154667, -0.5360776186, 0.0869985744, 0.0426132716, 0.3537864685, 0.1756166965, -0.1451902539, 0.0426502861, 0.1901020408, 0.3062262237, 0.0830525309, -0.0659001395, 0.235170722, 0.021959424, -0.1183581501, -0.0441659205, -0.0409801826, -0.3000875711, -0.1520018429, 0.120367378, 0.3928641081, -0.3056316674, -0.1839402467, -0.1324625015, -0.1315966994, -0.5064847469, 0.205089286, -0.0619007871, -0.0568432286, 0.4300698638, -0.4037243128, -0.1584980786, 0.0262497216, 0.5301276445, -0.0458667316, 0.2593892813, 0.4973754585, -0.1979177743, -0.1586865336, -0.190932408, 0.2471809685, -0.0929585993, -0.372448355, 0.2927722931, -0.1032934636, 0.1613489687, -0.1380387396, -0.1858425885, -0.0341811441, -0.0735043138, -0.073841311, -0.4374045134, -0.503583014, -0.0459222272, 0.2080614269, 0.1226877123, 0.0186891556, -0.0717196837, -0.2417616248, -0.1153242961, -0.3387564719, 0.0333133265, -0.2050563693, 0.2201227546, 0.3785303831, -0.0623283572, 0.0490256585, -0.3151639402, 0.2734014988, 0.2116336524, 0.1734605432, -0.282225728, -0.2961640358, 0.0619237125, 0.0030185357, -0.1757009625, -0.1491790712, -0.4168156385, -0.0276316348, -0.0899940133, -0.1916015595, 0.3427522779, 0.0935613886, 0.1535223424, -0.1112639457, 0.1643326581, 0.1769543588, 0.050929483, -0.1345404685, -0.0925813466, -0.1850498021, 0.3565357924, -0.0290323459, 0.0291562825, -0.6280357838, -0.1532259136, -0.1658823639, 0.0737437606, 0.2543137074, -0.1966347992, -0.1322880387, 0.0563971996, 0.2729446292, 0.3071060181, -0.2302725464, -0.3356587887, 0.323975414, 0.2371197641, -0.1902787089, -0.1096049547, 0.0842166021, -0.2513614297, -0.0419558659, 0.0426200628, -0.1256054044, -0.0768938959, -0.4428114295, 0.0401115268, 0.3885578811, -0.4339449108, 0.1690966189, 0.6197507977, 0.0043321773, 0.1773355156, 0.3890749216, 0.1132773831, 0.0138305016, 0.6791507006, 0.0265437588, 0.3208673894, 0.3201984763, -0.1189635247, 0.0929331779, -0.094354108, 0.0758029744, -0.2698486149, -0.2856897116, 0.23217839, 0.089144364, -0.0066608302, -0.3313002884, -0.0599942878, 0.0065474883, 0.3166713417, -0.2491107583, -0.077401787, -0.0508532077, -0.0563096851, 0.1967368424, -0.0553786308, -0.2516254187, -0.1057856232, 0.4781980813, 0.1616420597, 0.0480966009, -0.2193868607, -0.0550826788, 0.2141090631, 0.2809604704, -0.2896914482, 0.0601715818, 0.2971107066, -0.1570806503, -0.2346583307, 0.156375438, 0.3924595118, 0.1510290056, 0.1292324662, 0.1491870284, 0.0469206087, -0.2155085355, 0.1399225444, 0.1967820525, -0.0572784953, 0.0629951805, 0.1710459292, 0.1972796023, -0.1851183027, 0.0799916685, 0.1809649467, 0.2702734768, -0.0943970829, 0.4931675196, -0.1464278847, -0.46553725, 0.0049096895, 0.0817354023, -0.048803024, -0.011434719, 0.4544947743, 0.0391239375, 0.0721527562, -0.1666635573, 0.1194606051, 0.1083248109, 0.3438275158, 0.3730085492, -0.447142452, -0.3782069087, -0.083101809, -0.4274824858, -0.0515166596, -0.0105022956, -0.0757498294, -0.0498404503, -0.0158977695, -0.0784549415, -0.0717110783, 0.2825300097, -0.0765681416, 0.0317728929, 0.4928272963, -0.1742975265, -0.0781682059, 0.2210265696, 0.0540719852, 0.0843353495, -0.4384559989, 0.3879521489, 0.3464069664, 0.1248764992, -0.2808240354, 0.096189931, 0.2024356872, 0.1928018183, 0.480494678, 0.0663615316, 0.0273500495, -0.0669156685, -0.3371928334, -0.0151915364, -0.0473078117, -0.0902102739, 0.0753803402, 0.0914743096, 0.4226676524, 0.023997426, -0.1941937208, -0.3309696615, 0.2139647752, -0.2441734523, 0.1477006078, -0.2238079906, 0.1157197654, 0.2566615045, 0.073056601, 0.0829129368, 0.0559129044, -0.0265050903, 0.6643062234, -0.4486854076, -0.4417954385, 0.5646383166, -0.0526747555, -0.522144556, 0.0583654679, 0.4157540798, -0.1047895029, -0.0768284202, -0.47926718, -0.1339037716, 0.3335667253, -0.1386008561, -0.2472852618, 0.3773891628, -0.1568925232, 0.2129518241, 0.0869418979, 0.7443239093, -0.0196805224, -0.2162853628, 0.2112085372, -0.0952279121 ]
https://github.com/huggingface/datasets/issues/2688
hebrew language codes he and iw should be treated as aliases
Hi @eyaler, thanks for reporting. While you are true with respect the Hebrew language tag ("iw" is deprecated and "he" is the preferred value), in the "mc4" dataset (which is a derived dataset) we have kept the language tags present in the original dataset: [Google C4](https://www.tensorflow.org/datasets/catalog/c4).
https://huggingface.co/datasets/mc4 not listed when searching for hebrew datasets (he) as it uses the older language code iw, preventing discoverability.
46
hebrew language codes he and iw should be treated as aliases https://huggingface.co/datasets/mc4 not listed when searching for hebrew datasets (he) as it uses the older language code iw, preventing discoverability. Hi @eyaler, thanks for reporting. While you are true with respect the Hebrew language tag ("iw" is deprecated and "he" is the preferred value), in the "mc4" dataset (which is a derived dataset) we have kept the language tags present in the original dataset: [Google C4](https://www.tensorflow.org/datasets/catalog/c4).
[ -0.1847827882, -0.0222233683, -0.1543210149, 0.0329203457, 0.0282864012, 0.0720352605, 0.5509449244, 0.3117236197, 0.0522167981, 0.104304567, -0.3407955468, -0.2625411749, 0.0178136863, 0.0098184794, 0.1778061241, 0.1035927162, 0.076326929, 0.0028085522, 0.0307026803, -0.2599349022, -0.2483023107, 0.1667094529, 0.0356423408, 0.2309024632, -0.3309553862, 0.074767299, 0.2350800037, -0.0006580614, 0.0945437774, -0.2600384653, -0.050563667, -0.0218151193, -0.1151201129, 0.4908213615, -0.0001046046, 0.2001449764, 0.3720233738, -0.1461260319, -0.2577260137, -0.4023926556, 0.0496584177, -0.0652498007, -0.3410947025, -0.1979908049, -0.3883953691, -0.2093005478, -0.0824905708, -0.4258602858, -0.0239146091, 0.2144084722, 0.2111900151, 0.4698426127, -0.1391433477, 0.106837973, -0.0199653171, -0.2126424909, -0.0785029083, 0.2142323852, 0.0535802431, 0.5240809321, 0.2998704016, 0.5605415106, 0.2111984789, -0.0797845125, -0.1225799471, 0.2412062436, -0.1161046848, -0.1545202732, 0.2309414595, 0.2940371335, 0.3640370667, -0.3231700957, -0.1078304723, 0.0924716741, -0.0515937433, -0.2096344531, 0.4878679812, 0.1322401315, -0.0833425447, 0.2722434998, -0.0162743833, -0.2900919914, 0.0257766098, 0.2554772198, -0.2394373417, 0.5161866546, 0.1004750058, 0.0479174256, 0.1023200154, -0.2073669732, 0.2490312606, -0.2282048166, 0.1534509063, 0.0944626778, 0.0936849788, -0.2620149255, -0.2162771374, 0.0145025579, -0.3406136036, -0.3154473901, 0.075973168, 0.2595085204, -0.1825712323, 0.042056568, -0.3105462193, 0.055943545, 0.4305185378, -0.2673490644, 0.4529974461, -0.2308994979, 0.0026233494, -0.142826736, -0.037915647, -0.0601270422, -0.3148118258, -0.1479602754, -0.0055953264, 0.298243016, 0.0229360312, -0.0491460562, -0.4983119071, -0.5706429482, -0.0304259248, 0.3789435029, 0.1616678387, -0.3083957136, -0.146115154, -0.0396291651, -0.3200576901, -0.5419687033, -0.2043113112, 0.1096074134, -0.1466781199, -0.0825255439, 0.0807794929, -0.1820849925, 0.3079832494, -0.0946759135, 0.0314202569, 0.1600384414, -0.2420830727, 0.0018398762, 0.3078256249, 0.0660006106, -0.1263971627, 0.08215148, -0.0706285611, -0.2200498283, -0.1961159557, 0.132577613, -0.3130850196, 0.1174955964, 0.2477211505, 0.2029939443, -0.1501320451, -0.0047740596, 0.0628708452, 0.2855401933, -0.0142903924, 0.0629689246, 0.3462484479, -0.0515145771, 0.0772696361, -0.1047442704, -0.1049226224, 0.2785845995, -0.4833547473, -0.445677042, 0.1126220971, -0.0339966789, -0.0810500085, 0.5016031265, -0.2918811738, 0.1723969877, -0.1746908426, 0.3707317114, 0.2921553254, -0.3053904772, -0.3107973337, -0.0459151082, 0.0442109406, -0.0580155663, -0.1685324013, -0.1529697478, 0.0498177782, -0.1401434839, 0.0799027234, -0.0656282827, 0.2023756951, -0.1784928739, -0.0507950559, 0.0377852023, 0.3984745443, -0.012750525, 0.1060538888, -0.0219229162, 0.1121251136, -0.0090248622, 0.2545726597, -0.1508145332, 0.219358474, 0.0614952929, 0.0400639474, 0.1059668809, 0.1841665059, -0.0109765306, -0.1952793002, 0.0795870274, -0.1208200306, 0.2615234554, -0.0632150322, 0.0669063628, 0.070411846, -0.1375233978, -0.1428228319, -0.1268764287, 0.2377081662, 0.0359467342, -0.1261020154, 0.2591713071, -0.2723131776, 0.0940323696, -0.3269435763, 0.028544683, -0.1553588063, 0.1628709584, -0.1221367493, 0.0393177457, -0.2129365355, 0.3802622259, 0.1243663281, -0.46716699, -0.0933210701, 0.0844818503, -0.2620694339, 0.1656297147, 0.1111797169, 0.5108318925, 0.5489289165, -0.3658975959, 0.315520674, 0.1858106554, -0.0510409288, -0.108991906, 0.234934032, 0.2308353186, 0.3495801091, 0.1166995168, 0.12177369, -0.226713568, 0.4270855784, 0.0358431116, -0.1411843449, -0.3088140488, -0.092745468, 0.1146658435, 0.5891349316, 0.2524322271, -0.1919257939, 0.0864681602, 1.0686203241, -0.2139692903, -0.0719668791, 0.0956167877, -0.2867283523, 0.1048126668, 0.0347092077, -0.115641661, 0.05913461, 0.1322741807, 0.2981176078, 0.1810244918, 0.1942357421, -0.274828732, 0.3244130611, 0.2057231367, 0.0029119626, -0.0032605426, 0.0801435485, -0.185395062, -0.4277558625, 0.1569378078, 0.0582928658, -0.1904049367, -0.2271966934, 0.2576309443, -0.4687188268, -0.1034525484, -0.3631174266, -0.4276823997, -0.5842372775, -0.0740770847, 0.0689161271, -0.2383496165, -0.0100947618, 0.2999585867, 0.3809863329, 0.1638948619, -0.3429343998, 0.0557868704, -0.2732776403, -0.1871111989, -0.2862943709, 0.1406188756, 0.1163543165, -0.3061379194, 0.2784310579, -0.379643023, -0.2748764157, -0.1865567267, -0.4455600977, 0.4134856462, -0.1688091755, -0.1180183366, -0.1187335998, -0.027259279, -0.047596097, -0.0813059956, -0.0034815371, -0.2797717452, -0.2955235243, -0.2735093832, -0.0544814914, 0.0387495086, -0.0833982602, -0.5276798606, -0.6048951745, -0.0471692905, 0.008123694, -0.1959530264, -0.027698949, 0.1241639704, -0.237765342, -0.1558342278, 0.2911193669, -0.2068580538, -0.3472429514, -0.0925743356, 0.2036809027, -0.434435606, -0.092079103, 0.1560346782, 0.021818459, 0.4703037441, 0.0739345402, -0.0249651372, 0.3892796338, 0.0256207082, 0.2439541817, 0.2953717411, -0.0541687757, 0.2268237919, 0.0055410266, -0.1026121527, -0.3346843421, 0.0345105305, 0.2723378539, 0.0560688153, 0.3472971916, 0.4592171013, 0.1106089056, 0.1023152173, 0.433211118, 0.1335744411, -0.3373228908, 0.3171919882, 0.1943791509, 0.3283284903, -0.2244920582, -0.0435065031, 0.1524136513, 0.0891054347, 0.2402946055, 0.3073189855, -0.0582775921, -0.1126125231, -0.0151069164, -0.068915233, -0.4128377736, -0.1973830163, 0.0830013603, 0.1685195267, 0.3129772842, 0.4733053148, 0.0657681078, -0.1082368791, -0.1908298135, 0.3424503803, 0.1806501746, -0.149362877, 0.1426173449, -0.3924436867, -0.2826727331, -0.5756275058, 0.1183250546, 0.1205575168, 0.2156472057, -0.0242031962, 0.063210167, 0.1214142665, 0.1216599643, 0.4390309751, -0.3354901075, -0.0578698181, 0.1001625359, -0.047777243, 0.1152478158, -0.0892255902, -0.4080405831, 0.1072462052, 0.5992040038, 0.2595005035, -0.3122327924, -0.3205436766, -0.0046131788, -0.1259613931, -0.2476209104, -0.2767195106, -0.0570681989, -0.1351337135, -0.1376322955, -0.3238411844, 0.1389374435, -0.1093695164, -0.1388465166, 0.1005038694, 0.3756708205, -0.1748197079, 0.26265499, 0.1723301262, 0.1697658896, 0.3030055165, -0.2415591776, 0.4288003743, 0.3547993898, 0.482090354, 0.392668277, -0.1090645939, -0.3789314032, -0.0814879239, -0.2688363492, 0.2420611084, 0.4999492168, 0.1379872859, 0.0685848743, 0.0340787955, -0.1236998662, -0.1190898716, 0.1812735796, 0.242228508, 0.3162492812, -0.2268504053, -0.414228797, 0.215086773, -0.3416466117, -0.0082804561, 0.2725928724, 0.3026970029, -0.3349893689, 0.0434400216, 0.0965401828, 1.0030596256, 0.1250051707, -0.0432856157, 0.1459401846, -0.128482163, 0.2652159929, -0.4718645215, -0.0268327091, -0.0550208166, 0.310302645, -0.1304387748, -0.0171362907, -0.0788598508, 0.4574533105, 0.0710954517, 0.3584785461, 0.012664929, 0.2063193917, 0.2466014028, 0.1002297103, 0.0953695551, -0.1974559873, -0.1075207517, 0.1276669204, -0.0016969815, 0.2657647431, -0.1674703211, -0.2553720474, -0.0706622824, 0.0818954408, 0.0557380617, -0.1231257096, -0.2867535651, 0.3074187934, 0.0006251372, -0.2795165181, 0.237839222, -0.0410669558, 0.8017960191, -0.0641530454, -0.1351788938, 0.3463767767, 0.1039815024, 0.0479530282, -0.1543043256, -0.0186004713, 0.1850300878, -0.1475439966, -0.4431722164, 0.1205924526, 0.0532845631, -0.2749579549, -0.2868184447, -0.0032007284, -0.2513622344, 0.2532122135, 0.2322183549, 0.241704151, -0.0840608552, -0.1591555327, 0.1464568824, -0.3185129166, 0.0585345663, -0.3114402294, 0.2933881283, -0.1985555887, -0.330237478, 0.0831746459, 0.2927169204, -0.076959908, 0.3099732101, 0.0649396628, -0.3664093018, -0.12309663, -0.2681156397, 0.3906424344, -0.1110099703, -0.0792766064, 0.0877890438, -0.0982676819, -0.4158189297, 0.1906224191, 0.0250191838, 0.1156908274, -0.3648861051, -0.0180268437, -0.0166497082, 0.2528654039, -0.2255440205, -0.0873673931, 0.1048659235, 0.5610265136, -0.0658603236, -0.0028843749, -0.3408402205, 0.0499165505, 0.0808830112, 0.0166207738, 0.1480218619, -0.1096231341, 0.2010759711, 0.0578282848, 0.0989102051, 0.0325099714, -0.3431235552, -0.2032051384, -0.182447955, 0.065967977, -0.0371182635, -0.0201196056, -0.0106989034, 0.0225328282, 0.2019941807, -0.2463758588, 0.1390525401, 0.1408368498, 0.221738413, 0.422121048, 0.3345206082, -0.1149058864, 0.1129061505, -0.055493176, 0.2061088979, 0.4034079909, 0.1521255076, 0.023727078, -0.0052109137, 0.0482607931, 0.0213150308, 0.1940063685, 0.0163734443, 0.1617124081, 0.2007459402, -0.3083598018, 0.1974999309, 0.0398346372, 0.1542032957, 0.1245034859, -0.359629035, -0.3416134417, 0.1954767853, 0.2210427523, -0.3405461013, -0.2511641979, 0.2323725373, 0.1588824987, 0.2442334294, 0.2402065396, 0.6543263793, 0.286035955, 0.1946167052, -0.0912275985, 0.4273200631, -0.4784708619, 0.0240702033, -0.1936157048, 0.0144340396, 0.2894087434, 0.5641239285, 0.0060034469, -0.0756479576, 0.5502748489, 0.0972601846, 0.1881621629, 0.1705634594, 0.2047503144, 0.0370850377, -0.1647956669, -0.1329272389, 0.0236487687, -0.1242483705, 0.3433171809, 0.1148876846, -0.1867016703, 0.2773751616, -0.3252139986, -0.0014709532, -0.0278654527, -0.270668447, -0.0555339269, -0.1109918058, -0.1249318942, -0.033250913, 0.1942176223, 0.1114232838, -0.0464755781, 0.0796875432, 0.1588650644, -0.1216891408, 0.0806338415, -0.1010038406, -0.2985261381, 0.0116500668, -0.0998261124, 0.2514214814, 0.0764716715, -0.1048846319, 0.0995443016, -0.0504344702, 0.0887340903, -0.1728899032, 0.1524935663, 0.2156712562, -0.2303616405, -0.1926903427, -0.1122015566, 0.051022727, 0.3161515594, -0.1240314245, 0.0932131112, 0.1494018734, -0.130922541, -0.1643323004, 0.3775980175, 0.1715943366, -0.1905048192, -0.023326315, -0.2705205083, -0.0307780653, -0.3539097309, 0.0057448931, -0.4128544331, 0.3363726139, 0.4712304175, -0.309741497, -0.0023271888, -0.0018185936, 0.1136795878, 0.0390474759, 0.4614466131, -0.0712393224, -0.0401122458, 0.0108142681, -0.3932798803, -0.3123115003, -0.0498906076, -0.2666436136, 0.7237251997, -0.2092271894, 0.1534153819, 0.4759404063, -0.1284079552, 0.50297755, 0.0292530209, -0.0931168199, -0.3235893548, -0.3461981714, -0.0431543067, 0.0310196001, 0.3263243437, 0.0789154395, 0.1403748095, 0.100013338, -0.2765099704, -0.0000701472, -0.2109870166, 0.1974182427, 0.4074783325, -0.0448526032, 0.2684653103, 0.1391964555, 0.4069571793, -0.2231523544, -0.1018912196, 0.1256193519, -0.0264081284, -0.2576505244, 0.4738193452, -0.0313564464, 0.0670868754, -0.1327975839, -0.3989466429, -0.1315801293, 0.4251698554, 0.1149928421, 0.1058411598, -0.2703827024, -0.0304849949, -0.3385730088, 0.015402928, 0.0925448686, 0.3840615749, 0.0084440894, -0.1905252934, 0.0091776252, -0.2055167854, 0.416172564, -0.2887668312, -0.1860840023, -0.1703761518, 0.1327440888, 0.1181318909, 0.1167873964, -0.3195802271, -0.0479248315, 0.3436790705, -0.0913560987, -0.3525882065, 0.2031983882, 0.0227657594, -0.0406859033, -0.0398661233, 0.0140540656, 0.259304285, -0.3928056359, -0.0377739035, -0.1988814771 ]
https://github.com/huggingface/datasets/issues/2688
hebrew language codes he and iw should be treated as aliases
For discoverability on the website I updated the YAML tags at the top of the mC4 dataset card https://github.com/huggingface/datasets/commit/38288087b1b02f97586e0346e8f28f4960f1fd37 Once the website is updated, mC4 will be listed in https://huggingface.co/datasets?filter=languages:he
https://huggingface.co/datasets/mc4 not listed when searching for hebrew datasets (he) as it uses the older language code iw, preventing discoverability.
30
hebrew language codes he and iw should be treated as aliases https://huggingface.co/datasets/mc4 not listed when searching for hebrew datasets (he) as it uses the older language code iw, preventing discoverability. For discoverability on the website I updated the YAML tags at the top of the mC4 dataset card https://github.com/huggingface/datasets/commit/38288087b1b02f97586e0346e8f28f4960f1fd37 Once the website is updated, mC4 will be listed in https://huggingface.co/datasets?filter=languages:he
[ -0.1667794287, -0.0835686401, -0.0892026424, 0.0611216649, 0.2324796915, -0.0180356503, 0.2219811082, 0.4122387767, -0.015884392, -0.018412739, -0.3140927255, -0.1698120683, 0.0033469424, 0.2545409501, 0.1932531893, 0.1975349039, 0.0163774379, -0.0476838984, -0.0980866104, -0.1150789931, -0.1693114489, 0.2598114908, 0.0212985128, 0.1030974239, -0.3453692794, 0.1814396828, 0.0931541547, 0.2252607644, -0.1960126013, -0.3190947771, -0.0182251781, 0.0939657986, -0.0006311573, 0.4357658327, -0.0001059205, 0.0330445394, 0.380024761, -0.1992285848, -0.3762789369, -0.2892411649, 0.0209642872, -0.2393655777, -0.2559764385, -0.0811616778, -0.4343551099, -0.1628270745, -0.1122972071, -0.4339210093, 0.1044054478, 0.1989210695, 0.2612395585, 0.3563447893, -0.0329945609, -0.0351645611, -0.1176439524, 0.0228879433, -0.1134200543, 0.1792149544, 0.1580500454, 0.3489223123, 0.1483013332, 0.5432718396, 0.2903339565, -0.0764120668, -0.1122616678, 0.114764154, 0.0032079462, 0.0572590716, 0.3240351677, 0.1487491429, 0.3166534901, -0.241589427, -0.1554276645, -0.056817688, -0.1319238544, 0.0243274719, 0.5333504677, 0.1746339798, -0.1649092436, 0.2587651014, -0.2961874306, -0.3384997845, 0.1553284675, 0.2498288006, -0.0771949589, 0.4242892265, -0.0888627917, -0.0967943817, 0.2540953755, -0.3760227263, 0.2349131554, -0.0890638307, 0.0663887262, 0.1192610115, 0.1198622882, -0.1865348518, -0.0233287439, 0.440276593, -0.065460138, -0.1952185929, -0.0206412021, 0.4489215016, 0.0282778777, -0.1221647263, -0.2154048979, 0.0195818767, 0.4062906802, -0.2921656668, 0.4357169867, 0.1794190407, 0.0299780369, -0.1222587675, -0.0275853816, 0.0099781118, -0.3433047831, -0.1535708457, 0.0033574775, -0.0158010051, 0.0564709008, -0.2361886203, -0.3366082907, -0.5890086889, 0.0629420802, 0.5665415525, 0.1311929226, -0.3434550762, -0.1309619099, 0.0267052166, -0.3744466305, -0.5479004979, -0.1846732944, 0.0057194177, -0.279368341, 0.080229789, 0.2298759669, -0.0261130556, 0.2447021306, -0.0560062528, 0.0425878763, 0.1433310509, -0.2035029233, 0.25077793, 0.1929476857, -0.0188643504, -0.0510999486, 0.0914348289, 0.0767901614, -0.0955581218, -0.1163833365, -0.211816892, -0.0828717649, -0.0378750786, 0.316801101, 0.2138489783, -0.096102193, 0.0332691744, 0.1287434846, 0.2874476314, -0.2442079633, -0.0501866713, 0.0877916738, 0.1112370044, 0.136035949, 0.0165860392, 0.1065110266, 0.5581026077, -0.1508268863, -0.4534161091, 0.0059123859, 0.0684778541, -0.0526170097, 0.2169591039, -0.2650271654, -0.0396188498, -0.2780257463, 0.1999046654, 0.2216719389, -0.2611606717, -0.3147507012, 0.1042898297, -0.0508709624, 0.0783576146, -0.0582683645, -0.2508695424, -0.0913709998, -0.0312881358, 0.1433630586, -0.0250131804, 0.2120951116, -0.1466608793, -0.1613959074, 0.009155415, 0.1078611016, 0.0310233086, 0.0563398823, 0.0332748257, 0.2991706431, 0.0329148546, 0.3045866787, -0.1429284513, 0.3440972269, 0.1078211293, 0.1012446284, 0.1082193181, 0.1702222526, 0.027600199, -0.1284165382, -0.0133597478, -0.1266478598, 0.4452773631, -0.3261275887, 0.0027910322, -0.0843925327, -0.1643789858, -0.2925627232, -0.2476255149, 0.2804226279, 0.2389828116, 0.1320312023, 0.2433050871, -0.0412333906, 0.2225044966, -0.0479258001, 0.0427354313, -0.1773308218, 0.1300029457, -0.1718188375, 0.0889528394, -0.0504999608, 0.3366709054, 0.2604979575, -0.4208655655, -0.0333488323, 0.1978795379, -0.2265545726, 0.0181903969, 0.4222949445, 0.3469169736, 0.4615177214, -0.4829176068, 0.2479091734, 0.2108455598, -0.0170132723, -0.0548949167, 0.1468935311, 0.2738038898, 0.1913132221, 0.1775023341, 0.2303000242, 0.0313565359, 0.539722383, 0.0832959265, -0.1153064072, -0.5012767315, 0.0700699091, -0.1024849713, 0.547016561, 0.0493256301, -0.2217349857, 0.2288285941, 0.5540849566, -0.0712823942, -0.0024072398, 0.0742132068, -0.3126946092, 0.0342738554, 0.1063321158, -0.0146777257, -0.0114302263, 0.2696540952, 0.1796234846, 0.1794148982, 0.1878887117, -0.281291455, 0.3473749161, 0.1071500108, -0.0631066635, -0.0326030701, 0.139266178, -0.2676081359, -0.5354731679, 0.05884891, -0.1164289191, -0.2401037812, -0.2407672405, 0.1507298946, -0.4924582243, -0.2797489762, -0.3269931078, -0.4875528514, -0.5873586535, -0.1275564283, 0.1273371279, -0.2287449837, -0.0304019339, 0.2408621609, 0.101190418, 0.0555536449, -0.3660443127, 0.0910644904, -0.2525665164, -0.1176879555, -0.2850553095, 0.1581057161, 0.2618586719, -0.1413697004, 0.327427268, -0.5285530686, -0.1004669517, -0.4033677578, -0.5248311758, 0.4519945979, -0.0507601202, 0.0864287913, 0.1022054702, 0.0659655333, -0.103391625, -0.0635006428, 0.3658279479, -0.274092555, -0.2576245368, -0.0471567176, -0.0331304856, -0.0117174797, -0.1012048721, -0.4515062869, -0.4519304931, -0.136867702, -0.0734950453, 0.0303942338, -0.0678290799, 0.0535799079, -0.1967332512, -0.1193380356, -0.0210140683, -0.0974941403, -0.3391349912, -0.0635037348, 0.38065961, -0.4907184243, -0.2501943707, 0.0935729742, 0.0847230256, 0.3325751424, -0.0734400526, -0.010786958, 0.2763566971, -0.0586666018, 0.125677824, 0.2447044849, 0.1293502301, 0.2293199599, 0.1969045848, -0.1986115575, -0.2833261788, -0.0769393295, 0.1819898784, -0.221714586, 0.5080350637, 0.2685967684, 0.0753014684, 0.0591797978, 0.2819243371, 0.231661886, -0.0314475857, 0.5248019695, 0.0978564098, 0.3908883035, -0.1025175378, -0.1820399612, 0.0640389472, 0.0860813856, 0.2643450499, 0.3846738935, 0.1578730345, 0.0993583128, -0.2987894714, -0.0800871328, -0.5482738614, -0.2185354233, -0.0431987792, 0.1095787212, 0.2598341107, 0.4453332424, 0.0954796225, -0.0852520913, -0.1659410894, 0.3163281381, 0.2111107409, -0.2077494413, 0.2665355206, -0.4891831279, -0.1579334587, -0.4886630476, 0.2576250434, 0.0615644157, 0.1776462793, -0.085212037, -0.0991785601, 0.2309939563, -0.0214703903, 0.434779048, -0.3138707578, -0.0723510459, 0.0162229314, -0.1698950082, 0.0400795862, 0.0643714517, -0.2964465022, 0.1876493841, 0.503293097, 0.2043596208, -0.4638073146, -0.2545905709, -0.0145862438, -0.1679413915, -0.130871892, -0.2449607104, -0.0860680267, -0.1080701351, -0.1544159651, -0.2814125121, -0.0102720186, 0.16952236, -0.005158402, 0.0454042405, 0.3910740614, -0.1713420302, 0.213414371, 0.4395763278, 0.3315404654, 0.1093597934, -0.1435862184, 0.5581197739, 0.4516918957, 0.493123889, 0.5625643134, 0.037154153, -0.226176396, -0.1274629533, -0.2054808736, 0.1498253345, 0.496357739, 0.188147068, -0.0026740506, 0.2085568309, 0.0794463456, -0.116013281, 0.0048472919, 0.0848881975, 0.159977138, -0.3092432022, -0.2858949304, 0.1967436075, -0.4800967872, 0.0227123052, 0.1360351741, 0.5112380385, -0.398912847, -0.0560484789, 0.0388335809, 1.0443208218, 0.0834263712, -0.0888739228, -0.0380059592, -0.1019889787, 0.1708087027, -0.3162453771, -0.0056047514, -0.0145181492, 0.4962680936, -0.054018613, 0.0265616328, 0.0236657262, 0.3065556586, -0.1433666497, 0.3628177047, -0.0266655907, 0.205555886, 0.1672717035, 0.0893019438, -0.1165194437, -0.1310851723, -0.4001877904, 0.2069391161, 0.0027555237, 0.3016536236, -0.1420214921, -0.3613629043, -0.2012772858, -0.198910147, 0.0840996653, -0.070017159, -0.3903967142, 0.13702856, 0.0416743718, -0.1735153794, 0.1987259686, -0.1213128194, 0.6124118567, 0.033833053, -0.3374806046, 0.2811675668, 0.0589026026, -0.0266479049, -0.1697261482, 0.0062774569, 0.0187075604, -0.144384414, -0.4461082816, 0.038898617, 0.0695436895, -0.2094896436, -0.2025311887, -0.1152646542, -0.2897149026, 0.1632696688, 0.0955131948, 0.0633459911, 0.0501857772, -0.2919588983, 0.160245806, -0.3013709784, 0.0230592005, -0.3883055151, 0.5311199427, -0.0046140701, -0.3006281853, 0.1869464964, -0.0246381275, -0.153818965, 0.1107922643, 0.169226855, -0.382951051, -0.1993737221, -0.2265613824, 0.3500517011, -0.1362959146, -0.1332391202, 0.1816172302, -0.1482316852, -0.2114911526, 0.3260596395, 0.0872608796, -0.0083563812, -0.1710881889, -0.1118521467, 0.0189978927, 0.3421674073, -0.1568467021, -0.1571945697, 0.050859645, 0.4591530859, 0.0487174839, 0.0771264806, -0.3621399701, -0.001298666, -0.0575300157, -0.0681789592, 0.0778997988, 0.0007972596, 0.2496756613, 0.0448004641, 0.1284948289, 0.062114615, -0.4078616202, -0.1852900237, 0.0112539381, 0.0906419083, 0.0179828368, -0.2081391364, -0.0924297571, 0.1249429733, 0.1920028478, -0.2983666062, 0.0413170084, 0.0788109899, 0.1441272646, 0.0869646072, 0.3329895735, -0.438847512, 0.012805596, -0.098592028, 0.1681388766, 0.1985364556, 0.1789590418, -0.0708852708, -0.0885998011, -0.0354590192, 0.2975749075, 0.292134881, 0.0417819098, 0.2276314944, 0.1888562739, -0.2756194472, 0.1884189844, 0.2838941514, 0.3251850605, 0.1674547344, -0.2208598703, -0.1551879793, 0.1859317571, 0.229225263, -0.4245522916, -0.2475091368, 0.2709743381, -0.0124711748, 0.2413324714, 0.2041704804, 0.6218904853, 0.1191563308, 0.2023993134, 0.0492184795, 0.356741339, -0.2847536504, 0.0334805325, -0.1281652004, 0.0752185285, 0.2980566025, 0.5230847597, -0.178196609, -0.131415695, 0.570115149, -0.2448914349, 0.1640877873, 0.0527410693, 0.2045452893, -0.1392393559, -0.1326399744, 0.1763772815, -0.0400695503, 0.086407356, 0.2247380614, -0.0004766099, 0.1777468771, 0.0588066168, -0.2287235856, -0.1411400735, -0.04801137, -0.2195736468, -0.0457099602, 0.0910501629, -0.3784236312, -0.117199026, 0.0576265901, 0.0785729587, -0.1144062057, 0.2686808407, -0.0178963467, 0.0079783127, -0.4327696562, -0.0489113629, -0.0954195708, 0.0395790413, -0.1379528344, 0.2741237283, 0.173298642, -0.0963451937, 0.2165273875, -0.0182265528, 0.2154128253, -0.0560007282, 0.1153897494, 0.081546694, -0.2719694078, -0.2206633091, -0.2305670828, 0.1775821149, 0.2813596129, -0.1658407897, 0.0341938883, 0.1749119461, -0.1940271258, -0.2047534883, 0.2067915499, 0.1573315859, 0.0771393403, -0.0748555586, -0.3715392947, 0.1232287586, -0.2839224339, -0.0474478118, -0.4346117079, 0.4222894609, 0.3308517933, -0.3410863876, -0.0260791443, -0.2093765587, 0.1231810302, 0.2381917238, 0.4040840268, -0.1132199392, -0.126096651, 0.0394418351, -0.526450038, -0.5373829007, -0.1035017967, -0.2164763808, 0.415004611, -0.2493383288, 0.1059721038, 0.5088521838, -0.1090676039, 0.576189518, 0.1663049161, 0.0506911092, -0.3068363667, -0.3791314363, 0.0902083069, 0.1699812114, 0.3119498491, 0.0322107375, 0.0636634603, 0.286161691, -0.2917148769, 0.0544037446, -0.0495796502, 0.2915847301, 0.0694976747, -0.3489286005, 0.1976670623, 0.2845181823, 0.4594618678, -0.35922575, -0.1285212338, -0.1030104011, -0.1203166395, -0.03907267, 0.4512978196, 0.0279215537, 0.229342714, -0.1679073125, -0.427646637, -0.2277383804, 0.5062937737, 0.160600841, 0.2274734974, -0.1285737455, 0.0581644773, -0.2775187492, -0.0609475821, -0.0101723559, 0.2517804503, -0.0292967893, -0.1679506004, -0.0250769481, -0.3688814044, 0.4275471866, -0.2679295242, -0.2136549056, 0.0051191598, 0.1310736835, 0.1438256949, -0.135485813, -0.4822454154, 0.0707099438, 0.1772769243, 0.0607000813, -0.218879953, 0.336949259, -0.1613608301, -0.1116701663, -0.0617902577, 0.0923719183, 0.3087486923, -0.2268972099, 0.0150997564, -0.0535209142 ]
https://github.com/huggingface/datasets/issues/2681
5 duplicate datasets
Yes this was documented in the PR that added this hf->paperswithcode mapping (https://github.com/huggingface/datasets/pull/2404) and AFAICT those are slightly distinct datasets so I think it's a wontfix For context on the paperswithcode mapping you can also refer to https://github.com/huggingface/huggingface_hub/pull/43 which contains a lot of background discussion
## Describe the bug In 5 cases, I could find a dataset on Paperswithcode which references two Hugging Face datasets as dataset loaders. They are: - https://paperswithcode.com/dataset/multinli -> https://huggingface.co/datasets/multi_nli and https://huggingface.co/datasets/multi_nli_mismatch <img width="838" alt="Capture d’écran 2021-07-20 à 16 33 58" src="https://user-images.githubusercontent.com/1676121/126342757-4625522a-f788-41a3-bd1f-2a8b9817bbf5.png"> - https://paperswithcode.com/dataset/squad -> https://huggingface.co/datasets/squad and https://huggingface.co/datasets/squad_v2 - https://paperswithcode.com/dataset/narrativeqa -> https://huggingface.co/datasets/narrativeqa and https://huggingface.co/datasets/narrativeqa_manual - https://paperswithcode.com/dataset/hate-speech-and-offensive-language -> https://huggingface.co/datasets/hate_offensive and https://huggingface.co/datasets/hate_speech_offensive - https://paperswithcode.com/dataset/newsph-nli -> https://huggingface.co/datasets/newsph and https://huggingface.co/datasets/newsph_nli Possible solutions: - don't fix (it works) - for each pair of duplicate datasets, remove one, and create an alias to the other. ## Steps to reproduce the bug Visit the Paperswithcode links, and look at the "Dataset Loaders" section ## Expected results There should only be one reference to a Hugging Face dataset loader ## Actual results Two Hugging Face dataset loaders
45
5 duplicate datasets ## Describe the bug In 5 cases, I could find a dataset on Paperswithcode which references two Hugging Face datasets as dataset loaders. They are: - https://paperswithcode.com/dataset/multinli -> https://huggingface.co/datasets/multi_nli and https://huggingface.co/datasets/multi_nli_mismatch <img width="838" alt="Capture d’écran 2021-07-20 à 16 33 58" src="https://user-images.githubusercontent.com/1676121/126342757-4625522a-f788-41a3-bd1f-2a8b9817bbf5.png"> - https://paperswithcode.com/dataset/squad -> https://huggingface.co/datasets/squad and https://huggingface.co/datasets/squad_v2 - https://paperswithcode.com/dataset/narrativeqa -> https://huggingface.co/datasets/narrativeqa and https://huggingface.co/datasets/narrativeqa_manual - https://paperswithcode.com/dataset/hate-speech-and-offensive-language -> https://huggingface.co/datasets/hate_offensive and https://huggingface.co/datasets/hate_speech_offensive - https://paperswithcode.com/dataset/newsph-nli -> https://huggingface.co/datasets/newsph and https://huggingface.co/datasets/newsph_nli Possible solutions: - don't fix (it works) - for each pair of duplicate datasets, remove one, and create an alias to the other. ## Steps to reproduce the bug Visit the Paperswithcode links, and look at the "Dataset Loaders" section ## Expected results There should only be one reference to a Hugging Face dataset loader ## Actual results Two Hugging Face dataset loaders Yes this was documented in the PR that added this hf->paperswithcode mapping (https://github.com/huggingface/datasets/pull/2404) and AFAICT those are slightly distinct datasets so I think it's a wontfix For context on the paperswithcode mapping you can also refer to https://github.com/huggingface/huggingface_hub/pull/43 which contains a lot of background discussion
[ 0.0702891648, -0.0303931981, 0.0002650805, 0.3026075661, 0.1615349799, 0.022487171, 0.3812553883, 0.1487316489, 0.0632143766, 0.2060804814, -0.1454353333, 0.0585724674, 0.1328157187, -0.0630715787, 0.071940504, -0.0062968424, 0.24742423, -0.1418849975, -0.2275307775, -0.082218796, -0.1461634934, 0.278347224, -0.0094333962, -0.1467346847, -0.3533272147, 0.0687634572, -0.0858613998, 0.4032166004, -0.0831234232, -0.2152671814, 0.3845347762, 0.2588377893, -0.1833362728, 0.3635750413, -0.0001085839, 0.1327496767, 0.1191543564, 0.1520770192, -0.3095711768, 0.0615057126, 0.1082126051, -0.0125757605, 0.0173137859, -0.0110086948, 0.0829875544, -0.315956533, 0.0917755291, -0.2431760132, 0.4125830531, 0.1412667036, 0.2476854026, 0.2306791842, 0.0286566392, -0.1598044485, 0.3622328043, 0.0127874771, -0.067705974, 0.1247704327, 0.1705978811, 0.0258714631, -0.0382996611, 0.5596489906, 0.0059265047, -0.1049734056, 0.0351697281, 0.1814071834, -0.0339608975, -0.0845704749, 0.0711253509, 0.0955600888, -0.0416178405, -0.2665371895, -0.2961682975, -0.3810703158, -0.0798293948, 0.1512449086, 0.3346849382, -0.1314772069, 0.0732253939, -0.1004150659, -0.1617503315, 0.1153696626, 0.1003636569, -0.0374754108, 0.0539107621, -0.0181837045, 0.0245163329, 0.1457729936, 0.279158175, -0.0956727117, 0.0412630439, -0.0963976979, -0.2437050492, 0.1251588464, -0.318625927, 0.1847620904, 0.0741511136, -0.0141668357, 0.4505223632, 0.1745674312, 0.1664844155, -0.1277229637, -0.1661155671, 0.0062894165, 0.2641849518, 0.113948673, -0.2039257139, 0.1781056523, 0.1740801632, 0.2517188489, -0.0281446688, 0.0542661436, 0.1593553126, -0.1900848448, 0.0065155998, -0.2685297728, 0.2132131457, -0.2687272429, -0.338370204, 0.1518462598, -0.0451440029, 0.0742842257, -0.2210176587, 0.2351893783, 0.2290511131, 0.1324495822, 0.1639440358, -0.0091076456, -0.2775206566, -0.2676822543, -0.361076057, 0.0377252325, -0.1698388606, -0.0133067239, 0.0501571447, -0.3885456324, 0.2597258985, 0.3444268107, 0.2077882588, -0.2049943805, 0.0852165818, 0.0182680339, -0.0465194508, 0.1520563066, 0.0271936581, 0.1776811182, 0.1024062335, -0.2849937081, 0.0787037164, -0.0889816433, -0.0825318918, -0.0154927447, -0.2907681167, 0.2522126436, 0.0077123269, 0.064803943, -0.019112587, 0.1038391441, 0.0420779176, -0.1259655356, 0.0561731458, 0.003783768, -0.0485532209, -0.0468563884, 0.0524534136, 0.5406344533, 0.1214761883, -0.3457822502, 0.2633024156, -0.1628337502, 0.1812824905, 0.2803883255, -0.2148377895, -0.04443831, -0.4685079455, -0.2270385474, -0.0370504558, -0.3887757361, -0.4229960144, 0.1572691351, -0.2734943032, 0.3648276925, 0.2113611698, 0.0895469487, -0.066970259, -0.0258572772, -0.111083433, 0.0277508833, 0.0342651978, 0.1007514521, -0.4402082562, -0.3214182854, 0.0769083649, 0.1578864157, -0.0070328908, -0.0400565863, 0.2076916844, 0.0139018893, 0.3016476929, -0.0779570192, -0.0256009661, 0.1917269826, 0.1942148507, -0.0533728115, 0.3169434667, 0.1118601412, -0.5789578557, 0.1740715653, -0.2582847774, 0.0822264925, 0.1265852153, -0.374534905, -0.1260644943, -0.0862090439, -0.4764728546, -0.5406157374, 0.1560218632, 0.2849038243, -0.0491378903, -0.1052729338, -0.2403942496, 0.5512450337, -0.2626470923, 0.2151258886, -0.4765305817, 0.1979447454, -0.0749796554, 0.1527920067, 0.1172694564, 0.1010272652, 0.0043885559, 0.1111821681, 0.0473269522, 0.2589429617, 0.0552449785, 0.333155483, 0.1939175129, -0.0155929029, 0.3004575074, -0.1741738319, -0.1487468928, 0.1129790992, 0.0885686725, 0.0601310432, -0.3865840137, 0.2396645844, -0.2031968981, 0.0032815188, -0.0548341237, -0.1308241487, 0.2923996747, -0.141610831, -0.0034343414, -0.5109377503, 0.2535315752, 0.0886520594, 0.4695354402, 0.1972256601, -0.2442838103, 0.1927697361, 0.0407990552, 0.1407829672, -0.1942289472, -0.0162591375, -0.1412749738, -0.1349200904, -0.0798630267, 0.1790767014, 0.3696672022, 0.2851989865, -0.103569001, 0.1510407478, -0.1323780119, -0.1944528222, 0.2456230223, -0.2350577861, -0.0799733996, 0.2035207003, 0.3219784498, 0.1378721893, -0.655287087, -0.0686197281, 0.0124592707, -0.0030521471, -0.486017704, -0.1635314226, -0.1157723218, -0.3308981061, -0.4506735504, 0.1937760115, -0.3726772666, -0.2968254685, 0.2177337855, 0.1844274402, -0.2909291983, 0.055937916, -0.1773151755, 0.5094550848, -0.190532133, 0.1508852988, -0.1049925834, 0.1799395531, -0.3306488395, 0.1656582057, 0.0899941325, -0.1211988553, 0.3523878157, -0.0389508046, -0.2115744203, -0.5472986102, -0.5236175656, 0.2084299326, 0.1391556561, 0.3696640134, 0.3066103756, -0.1280010045, -0.0571228191, -0.2924892902, 0.0273073949, 0.1066731885, -0.3492103219, -0.095867537, -0.3238347769, 0.1498925388, -0.1476001143, -0.1449314654, 0.0635176376, -0.2053787559, 0.0606598295, -0.1372237653, 0.0845990926, 0.305003047, -0.1538966298, 0.0602916181, -0.317399025, -0.0388750881, -0.4645875692, -0.4354593754, -0.0108941849, -0.1829255074, -0.292060107, -0.1587105095, 0.097150892, -0.0411647856, 0.1423517466, -0.6871280074, -0.4630127549, -0.1058352515, 0.0027167276, 0.0282155555, 0.1861343533, 0.2162626386, 0.1420976222, -0.2022675872, -0.1953267455, -0.0114188045, 0.3829001188, -0.1636301279, 0.3035385013, -0.1152476072, 0.1026085168, 0.0764359236, 0.3137536645, 0.8434228897, -0.0014699955, 0.433880806, -0.0673913807, 0.3124115169, -0.0208491944, -0.1881706417, 0.1442438364, -0.0755562782, 0.1585822403, 0.401827246, -0.0463209972, -0.0364352465, 0.0287630633, -0.1463022977, -0.2654135227, -0.2283643484, -0.0789313465, 0.0548281744, 0.0716527179, 0.0920654759, -0.2884059548, -0.0331861973, -0.1515437812, 0.1572952718, 0.0370928012, 0.1450944245, 0.1348902285, -0.2468571365, 0.2602544725, -0.2389465868, 0.1679645777, 0.1347387135, 0.151457116, -0.0158142149, -0.0577349998, 0.0136940889, -0.0228130054, 0.7903953195, -0.034032695, 0.2042675465, 0.027810201, -0.1460233629, -0.1756723076, -0.1385099292, 0.0538258255, -0.1323562264, 0.0421091169, 0.4128999114, -0.3416717649, 0.0711300075, 0.4328713417, -0.044317618, -0.1570341587, -0.1497316658, -0.1578307003, -0.3200145066, -0.1570154727, 0.0271464679, -0.0239903741, 0.1375599802, -0.0673894361, -0.1892473996, -0.1364289224, -0.2950670719, 0.085899055, 0.0667083561, 0.303299427, 0.2618996799, 0.4669042826, 0.4708639085, 0.3350969553, 0.1465928853, 1.0519514084, -0.1441850066, -0.5197613835, 0.021676302, -0.0926423371, -0.0051408485, 0.4899069071, 0.0896276534, 0.1215439886, 0.0647381693, 0.0467977859, 0.0508454256, -0.0193282664, 0.2704710364, -0.0013512895, -0.1833826005, -0.1507110298, 0.4275877476, 0.1461549848, -0.1242991909, 0.4206095338, 0.2107415199, -0.3146690428, 0.2819367051, 0.0404136404, 0.938585043, 0.15588063, 0.2149763107, 0.0375558063, -0.269210577, 0.5875100493, -0.0289386213, -0.1418969482, -0.2176423073, -0.4918928146, 0.1432879567, -0.0101482943, -0.0341531299, -0.0936075002, 0.0485000163, 0.0905281305, -0.0571779236, 0.2710875273, 0.0720700696, 0.0879284441, -0.2031651288, -0.1366331428, -0.1881482452, 0.1276732981, -0.0253959857, 0.0104332976, 0.0216569863, 0.0600932054, -0.0322423801, -0.3847246766, -0.1123054251, 0.1674442887, -0.5221055746, 0.1415776461, 0.0915616304, 0.0177282542, -0.0306474678, 0.0966905653, 0.4413722157, -0.1222482473, -0.0585910231, 0.2268093228, 0.2496110797, 0.2676343322, -0.1077381745, -0.1987312138, 0.3762799799, -0.1605618596, -0.0839055032, -0.1093352884, 0.159304291, -0.2135663182, -0.4714787006, 0.0761865526, -0.4596889615, -0.0454734378, -0.0102324001, 0.0326741822, 0.203929916, -0.2811033726, 0.1403631568, -0.0378480926, -0.0130375698, -0.090986751, 0.0814658254, -0.3286120296, -0.1354037821, 0.5333238244, 0.286593467, -0.2705762982, 0.1788008511, 0.119210951, -0.0377224348, -0.0770085752, -0.2253711522, 0.5069445372, -0.6518535614, 0.1981789917, -0.3616856039, -0.0053392053, -0.0027530976, 0.4223926067, 0.1842181534, 0.0392527953, 0.1321128905, -0.3254237473, -0.0498327166, 0.2862561643, -0.1308442503, 0.3340657949, 0.1672134995, 0.280338645, -0.1923377812, 0.1796861738, -0.388995409, 0.0801330507, -0.064537622, 0.0102607217, 0.1012522876, -0.0151194986, 0.1557551026, -0.0029585436, 0.140281409, 0.2721833885, -0.1252322942, -0.2485208213, -0.390434444, 0.1317445189, -0.1210007966, -0.0705047771, 0.00387704, -0.0281609781, 0.1299732178, -0.0425642282, 0.5148789883, 0.057757929, 0.0089614578, -0.2092152387, -0.0051759463, -0.0291191787, 0.0734869689, 0.0426973403, -0.0380068198, 0.0841838792, 0.3089032769, 0.0767979547, -0.3439323008, -0.1398140043, 0.270549655, 0.1343269348, 0.148564592, 0.1832734197, -0.016714748, -0.2120537758, -0.2311355025, 0.2464069128, 0.3307934403, 0.2452836186, -0.4638024569, -0.1886006892, -0.1990244836, 0.2618715763, -0.4365539551, -0.4500626326, -0.0400508605, 0.0169516504, -0.0279507264, 0.1592964828, 0.4390648007, -0.2071945518, 0.017078789, 0.0962802544, 0.588193059, -0.2251541615, 0.1943996251, -0.1835409701, -0.1025945991, -0.0928415209, -0.1002473831, 0.0791401565, 0.2035962641, 0.209725976, -0.1540225446, 0.3255159259, 0.0098195709, 0.3314214945, 0.2330664694, -0.2210330814, 0.1576395184, 0.4859613776, -0.2427341342, 0.3098112345, 0.0793530792, 0.1540994346, 0.110753037, -0.1108527184, -0.2532786727, 0.3032993078, -0.0106301997, -0.0971800387, -0.1020241231, -0.3589637876, -0.5747908354, 0.2360834628, -0.2080261707, -0.1438654512, 0.3955695927, -0.048891414, -0.3522394001, -0.5194407701, -0.132923007, 0.2853823006, 0.3495975733, -0.4062209725, 0.3400551081, 0.6960602999, -0.2867569029, 0.2309233844, 0.5722976923, 0.4350291491, 0.1001937538, 0.3267897367, 0.0076680407, -0.0682518631, 0.1063887998, -0.2850445509, 0.1740034819, -0.1171876192, -0.2777262628, 0.3249943852, 0.1536096334, -0.2502074242, -0.3245694935, 0.0223234706, 0.3017282188, -0.4690504968, 0.1286371946, -0.3570268452, 0.2763645649, -0.0031685056, 0.0753344297, -0.451256156, -0.2382503599, 0.3177052736, -0.0202252083, 0.152188614, -0.0654858947, 0.114813, 0.1379261464, 0.4535554349, 0.2049618959, -0.0245893858, -0.0404888093, -0.4924443066, -0.5506697297, 0.3423612118, -0.1147313267, 0.2573940158, 0.1016029939, 0.1014391184, -0.0690049231, -0.0847874433, 0.208553195, 0.2121149004, -0.0459355563, 0.1773766875, -0.3282058239, -0.0099744583, -0.1070320383, -0.1118800044, 0.0895475224, -0.2577898502, 0.2668512464, -0.0040981956, 0.0399764255, 0.0481397249, 0.0566329733, 0.1933889687, -0.2851013541, 0.2023122907, 0.3519156873, 0.2769762874, -0.1271615773, -0.3484400809, -0.2969307899, -0.1960514784, -0.3339641094, 0.2065485865, 0.1690262258, 0.3120586872, 0.006532155, -0.4518446326, -0.023073338, 0.1562704295, 0.2045672089, 0.1513558924, -0.5145585537, 0.1581470668, -0.0708075166, 0.0137263909, 0.141933158, 0.4631643295, 0.0257923491, 0.0870903581, -0.0072627515, -0.5874008536, 0.2039552331, -0.5411153436, 0.0610732585, -0.0182316117, 0.2844230235, 0.0451314151, -0.0510969758, -0.5387966633, 0.0153931379, 0.3055504262, 0.0063498076, -0.0691117346, 0.3009803295, 0.1168981493, 0.0154020116, -0.0079801381, 0.0861918628, 0.3158289492, -0.2034045011, 0.3573435545, -0.2383295 ]
https://github.com/huggingface/datasets/issues/2679
Cannot load the blog_authorship_corpus due to codec errors
Hi @izaskr, thanks for reporting. However the traceback you joined does not correspond to the codec error message: it is about other error `NonMatchingSplitsSizesError`. Maybe you missed some important part of your traceback... I'm going to have a look at the dataset anyway...
## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1
43
Cannot load the blog_authorship_corpus due to codec errors ## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1 Hi @izaskr, thanks for reporting. However the traceback you joined does not correspond to the codec error message: it is about other error `NonMatchingSplitsSizesError`. Maybe you missed some important part of your traceback... I'm going to have a look at the dataset anyway...
[ -0.208489418, 0.478081286, -0.0540075488, 0.3998488188, 0.3617143929, 0.2268405855, 0.0785167441, 0.4288443327, -0.1586730033, 0.2435749173, 0.0468285158, 0.2679275274, -0.066664651, -0.2108721435, 0.0490836129, 0.0175640192, -0.0882997215, 0.1426829696, 0.2282302082, -0.2342805117, -0.2054748982, 0.1818804294, -0.1930266023, 0.0730282366, -0.2108267844, -0.078932561, 0.1461102962, 0.6233424544, -0.1766087115, -0.6049431562, 0.1305889487, 0.0211391095, 0.1271804571, 0.3438816071, -0.0001129081, -0.0840199292, 0.5609156489, -0.0908813179, -0.2077676058, -0.2428598106, -0.2933349609, 0.0893763527, -0.1876993477, -0.2272574753, 0.0519392788, 0.1707791537, 0.0439891368, -0.5675265789, 0.315276891, 0.5750639439, 0.2217923552, -0.0919266194, 0.0331092626, -0.0800497681, 0.3778601587, 0.0454612449, 0.1114238575, 0.446123153, 0.4049828053, -0.1060691476, -0.0645617843, 0.3080867529, -0.3914480805, -0.0931515917, 0.0810794383, -0.1104288399, 0.2468286157, -0.3147916496, 0.6316780448, 0.1682753414, 0.7650756836, -0.2163726836, -0.0818574876, 0.0109545663, 0.1951052845, -0.273940444, 0.1889485419, 0.3846218586, -0.3076027036, 0.0981165469, -0.0437704548, -0.0178628191, -0.2440255582, -0.0302384123, -0.1594133824, 0.0686636865, -0.0978545696, 0.0309899356, -0.248580426, 0.0831889212, 0.343130827, -0.087953344, -0.2779463828, 0.3806456923, 0.0356349833, 0.1754513532, 0.1777856946, 0.0299989432, -0.0623695441, 0.1734721214, -0.0929425806, 0.1898393631, 0.1581863165, 0.2450638264, 0.0953595489, -0.0520523079, 0.1189913154, 0.3499027491, 0.2957805395, -0.0092538185, -0.0625839904, -0.0884831101, -0.3842275441, -0.385306716, -0.1133603826, 0.2477751225, 0.2131842524, -0.369980067, -0.4927599728, 0.3212747276, -0.0740114152, 0.0194723122, -0.0607551634, 0.4851861596, 0.1276383847, 0.0470057204, 0.2408133149, 0.2430116683, -0.189599812, -0.0786767006, -0.1897739321, 0.1530005336, -0.0485873409, -0.0438677073, 0.131706804, -0.5761970878, 0.117654182, -0.0184411518, 0.3553462029, -0.320558995, -0.3360754251, -0.0648011938, -0.1094545946, 0.0805431306, -0.0559901185, 0.0071815178, 0.180180952, -0.3210012317, -0.0618892983, -0.0260085501, -0.1589977443, -0.3241134286, -0.047947675, 0.2177027464, 0.0325043276, 0.1240162998, -0.2615485191, 0.098749347, 0.4569668174, -0.1838753968, 0.0121194087, -0.0366269499, -0.1992594302, -0.1116070822, 0.0685286373, 0.7190667391, 0.0927180722, 0.0617560297, 0.4470198154, 0.2204507887, 0.2396672666, -0.034657646, -0.0303014535, 0.1947583854, -0.2161441445, 0.1940477192, 0.1738506258, -0.6035792828, -0.0017294958, 0.19102633, 0.0441777334, 0.129531011, 0.0547360927, -0.3995577395, 0.4223297238, -0.3531520665, 0.1809351444, 0.4003566206, -0.0078090644, 0.0422332063, -0.2096996903, -0.0094916448, -0.0592942387, 0.1407904923, 0.0956548452, 0.0371473283, 0.4447285235, 0.0195300914, 0.5081378222, -0.2271019667, -0.04350923, 0.204465121, -0.0637108684, 0.0057082921, -0.0157996714, -0.2292636037, -0.1008971408, 0.2268032134, -0.038545385, -0.0186799895, -0.3047527373, -0.1203672066, -0.3363893926, 0.0941975191, -0.1724900007, -0.0096019693, 0.1468278766, 0.0825051069, 0.1227488965, 0.2111047506, -0.2485480309, 0.2506259084, -0.3510061204, 0.1294384897, -0.5143994093, 0.2901620865, 0.0366384089, -0.1802813262, 0.3910514116, 0.5273910165, 0.206374228, -0.1315863132, -0.245041132, 0.3295739293, -0.2906769812, 0.6357575655, -0.3684307337, -0.2102892399, 0.1556364596, -0.3921352625, 0.19127132, 0.1315572113, 0.291969806, -0.106512323, 0.2268298566, 0.129658699, 0.0019440297, 0.0616183355, 0.1570881754, -0.0124362968, 0.3217051327, -0.0014806911, -0.1980579793, -0.3063355684, 0.6450020075, 0.218574509, 0.1565410197, -0.1052058563, -0.2416180372, 0.0593608841, 0.499391973, -0.0996020436, -0.0267611705, 0.035702195, -0.0107222982, 0.0234230906, 0.0127149131, -0.146162048, 0.1471958905, 0.0217036456, -0.1039545834, 0.0323543847, 0.0716074258, -0.3352047205, 0.3919110894, -0.1687843204, 0.0142022111, 0.4510241449, 0.0282913521, 0.0123840496, -0.3308032155, -0.1881503463, 0.0471752882, 0.0889911205, -0.5186878443, 0.0840453207, -0.2582146823, -0.2728700638, -0.2343661636, -0.3481076956, -0.0588170663, -0.1013339609, -0.0612809286, 0.1418219954, -0.0765725449, 0.0614707097, -0.3226085305, 0.1384917647, -0.1622720957, 0.1579306722, -0.1613736451, -0.1625819057, -0.1952579319, -0.0374631286, 0.4106934965, 0.2090357095, 0.1456118673, -0.3906172812, 0.0756683499, -0.1550292373, -0.1967248917, 0.1922616363, -0.0072830864, 0.044501178, -0.096276328, -0.1030249745, 0.6314198375, -0.1873523295, 0.0774800628, 0.040375635, -0.0095926486, 0.4120470881, 0.1020499766, -0.4308472574, -0.0713258162, -0.2392787337, -0.384044081, -0.5113681555, -0.2183601409, 0.0891489387, 0.2631493211, 0.4002131224, -0.2125224769, -0.0471868999, -0.0296737216, 0.3316633701, -0.1299688518, -0.2295030206, 0.2037601471, -0.2909738123, -0.3221515119, 0.1063790172, 0.068276085, 0.397883445, -0.0266789924, -0.2990862131, 0.2009893209, 0.0736918524, 0.0807958245, -0.1829183549, -0.0326648317, 0.1681958735, 0.0659451634, 0.0074228607, -0.0765440315, 0.0337193608, -0.3264494538, -0.0253695138, -0.1287386417, -0.0559626967, 0.2026885748, -0.1725132912, 0.0619195588, 0.4852907956, 0.0982007757, 0.2867951393, 0.0515122712, 0.2136234641, 0.0147208124, -0.2460832745, 0.4707964063, -0.1930657178, -0.2243300825, 0.3553858995, 0.0529205911, -0.134850651, -0.215293631, 0.0723879635, -0.1209117323, -0.2952134907, 0.0524814203, -0.3898859918, 0.2485881001, 0.0668382198, 0.3902975321, 0.0765492171, -0.2069250494, -0.0084629618, 0.3520232737, 0.1568843871, -0.1251985729, 0.0142382756, 0.131218493, -0.4801462889, 0.344866097, 0.210248515, -0.0640167743, -0.0432952568, 0.2608808279, 0.0587285981, -0.1514607817, 0.0913046002, -0.2261170149, 0.2672909498, 0.2079254985, 0.385458231, -0.2534745336, -0.0441584028, -0.0180202574, 0.4818535447, -0.0801009312, -0.0459677204, -0.0982749164, 0.1211585701, 0.073156327, 0.1224754602, -0.0888524354, -0.1877177954, -0.2884796858, -0.3591707647, -0.3103106916, -0.233523652, 0.0687818229, 0.3102965355, -0.1312478483, -0.1198606789, -0.0953512341, -0.0344559774, 0.1942460984, 0.0822996497, 0.0921881422, -0.075224936, 0.115687564, -0.0131785534, -0.1346068531, 0.3768366873, 0.7526931167, -0.1334383935, -0.5529474616, -0.1159116998, -0.3700479567, 0.0784896091, 0.4450324476, -0.212475121, -0.1339326352, 0.0593463406, -0.0505472496, -0.3437482715, -0.2992709875, 0.050474599, 0.0993437022, -0.278416425, -0.5206427574, 0.4623550773, -0.1271227151, 0.0311398208, 0.146849364, 0.0418171696, -0.3473610878, 0.1372858733, 0.0064522382, 0.9900804758, 0.2140815854, -0.1357926726, 0.0753420219, -0.2174913287, 0.0528735369, -0.224895224, 0.1980185956, -0.2843385637, 0.022239428, -0.1518352628, 0.2045905888, 0.2688497603, 0.062127877, -0.2158521861, 0.1995503306, -0.0714002773, -0.2375725806, -0.0485024601, 0.0031613261, -0.419911325, -0.2580136955, -0.5787042975, 0.1172821, -0.117932409, 0.1192463636, -0.1189099029, 0.0359292962, 0.0455076844, -0.3266945183, -0.460832119, 0.3758395612, -0.202447474, -0.1504062414, -0.0577521697, -0.3814416826, 0.3199529052, 0.0561908521, 0.2504868805, 0.0391975604, -0.0429425873, 0.1452625394, 0.1981222034, -0.0339067057, -0.0243589003, 0.0854879171, 0.238564983, -0.0663194284, -0.1132119447, 0.2658365965, -0.0436590649, -0.1837538183, 0.2556528151, 0.0661296099, -0.0826181397, -0.0395174474, -0.043281924, 0.0955186039, 0.1809810698, -0.0629983172, 0.1403061897, 0.1276890337, -0.2898811102, -0.0544111803, -0.1107424498, -0.2697612345, 0.0812908188, 0.2204328328, -0.0361850038, -0.0838951021, 0.4614350796, 0.4005639255, -0.2099893391, -0.1176223308, -0.3479477465, 0.1872604191, -0.5638506413, 0.0368574262, -0.0007264614, 0.0062481612, -0.158690244, 0.4170021415, -0.1392197907, -0.0937974527, 0.0625542477, -0.5232269168, -0.0387312844, 0.1154579967, -0.0103502488, 0.0329313055, -0.04875255, 0.0001442172, -0.2369751036, 0.1144791171, -0.300783366, 0.1038625762, -0.2077759206, 0.137283504, 0.42963624, -0.0340129733, -0.1030204892, -0.2039475441, 0.1335909963, 0.336011827, -0.1127501577, -0.1500055194, -0.008556921, 0.1377922297, 0.0324158333, -0.0805125758, 0.0895493478, -0.0501773655, -0.1057634875, -0.1934638321, 0.2179797441, 0.1474807411, 0.0261412207, -0.027722735, -0.4482190013, 0.2940061986, -0.0006676987, 0.2398101389, -0.1485023201, 0.4302437901, -0.1185296923, 0.1239033937, -0.2088456899, -0.0353736803, -0.115048334, 0.2561822534, -0.0961360112, 0.065586336, 0.436314851, -0.2451553643, 0.3256577253, 0.4871928692, -0.0835478753, 0.3445189595, -0.409155488, 0.0281196684, 0.0262618475, 0.2102448493, -0.1836766899, -0.0181148052, -0.4960896969, -0.0479394421, -0.0900046602, 0.2297486961, 0.11052306, -0.3707813621, -0.2305629253, 0.0906382799, 0.4767552316, -0.0063160639, 0.2191633731, 0.0231048614, 0.0493150577, -0.0192853995, -0.0703007281, 0.2188111544, 0.0461869128, 0.2720301747, -0.4646324217, 0.3093922734, 0.2494734377, 0.1801020503, -0.0085308254, -0.441163063, 0.0482364222, 0.2103965878, 0.0852200314, 0.4002785981, 0.160991028, 0.1585996002, -0.1475245357, -0.1259340793, -0.161346361, 0.0410658345, -0.0583182313, 0.0472530089, -0.3145270646, -0.2136666924, -0.1724198908, -0.1043777466, -0.1697823852, 0.119301036, 0.0753189102, 0.1556894183, -0.3476271629, -0.3463915288, 0.1377423704, -0.2096368372, 0.2447027266, -0.1253279448, 0.5787799954, 0.4382132292, 0.0846358612, 0.4258900285, 0.3017463982, 0.761587739, 0.305842191, 0.0535049513, 0.192780748, -0.1810554415, -0.1250637174, 0.1044049636, 0.3984238803, 0.0448815152, 0.3953421116, 0.0439628214, 0.1863658428, -0.1380055398, 0.1443943083, 0.2655774355, 0.4306207299, -0.1914597899, 0.2662214935, -0.1739094406, -0.0572184697, -0.4198778272, -0.094654426, -0.3771161139, 0.1363275051, 0.2699848413, -0.0920647085, 0.0951405615, -0.0083603412, 0.1025269851, 0.07400354, 0.3087226748, 0.4034378231, 0.1357368529, 0.0255360939, -0.2081611156, -0.4297651052, 0.3247802556, -0.0908723325, -0.3741294146, -0.0666033849, 0.0824068263, 0.1919351816, 0.1155835539, 0.1238223165, -0.0432214588, 0.3833331466, 0.0597238652, -0.172421515, -0.0146101369, 0.2414136827, -0.0620317236, -0.3025858402, -0.3642937243, 0.0325733274, -0.2273192406, 0.0701556653, 0.0482754111, -0.0399630517, -0.0922601297, -0.2646712661, 0.3722181618, 0.0610683635, 0.2166772485, -0.3107423186, -0.2267267406, -0.3663766682, -0.1446742862, -0.1544996798, 0.4856234789, 0.1616642475, 0.2741332054, -0.0787701905, 0.0253112204, -0.268286109, 0.1879410446, -0.1179689839, 0.2693616748, -0.3983274996, -0.061925061, -0.1300141662, 0.0634815395, -0.0002449676, 0.241636157, 0.0137259802, 0.0728769302, -0.1267938912, -0.6861601472, 0.4283369184, -0.5565595031, -0.4156654179, 0.0878275633, 0.6013888717, 0.0051166452, 0.072532393, -0.6429923177, 0.2427358627, 0.0948260874, -0.2015705556, -0.1887488216, -0.0072775371, -0.1239601374, -0.1315534711, -0.0403238498, 0.0875856876, 0.2611949444, -0.1649685204, 0.1641224623, -0.4080627561 ]
https://github.com/huggingface/datasets/issues/2679
Cannot load the blog_authorship_corpus due to codec errors
Hi @izaskr, thanks again for having reported this issue. After investigation, I have created a Pull Request (#2685) to fix several issues with this dataset: - the `NonMatchingSplitsSizesError` - the `UnicodeDecodeError` Once the Pull Request merged into master, you will be able to load this dataset if you install `datasets` from our GitHub repository master branch. Otherwise, you will be able to use it after our next release, by updating `datasets`: `pip install -U datasets`.
## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1
75
Cannot load the blog_authorship_corpus due to codec errors ## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1 Hi @izaskr, thanks again for having reported this issue. After investigation, I have created a Pull Request (#2685) to fix several issues with this dataset: - the `NonMatchingSplitsSizesError` - the `UnicodeDecodeError` Once the Pull Request merged into master, you will be able to load this dataset if you install `datasets` from our GitHub repository master branch. Otherwise, you will be able to use it after our next release, by updating `datasets`: `pip install -U datasets`.
[ -0.208489418, 0.478081286, -0.0540075488, 0.3998488188, 0.3617143929, 0.2268405855, 0.0785167441, 0.4288443327, -0.1586730033, 0.2435749173, 0.0468285158, 0.2679275274, -0.066664651, -0.2108721435, 0.0490836129, 0.0175640192, -0.0882997215, 0.1426829696, 0.2282302082, -0.2342805117, -0.2054748982, 0.1818804294, -0.1930266023, 0.0730282366, -0.2108267844, -0.078932561, 0.1461102962, 0.6233424544, -0.1766087115, -0.6049431562, 0.1305889487, 0.0211391095, 0.1271804571, 0.3438816071, -0.0001129081, -0.0840199292, 0.5609156489, -0.0908813179, -0.2077676058, -0.2428598106, -0.2933349609, 0.0893763527, -0.1876993477, -0.2272574753, 0.0519392788, 0.1707791537, 0.0439891368, -0.5675265789, 0.315276891, 0.5750639439, 0.2217923552, -0.0919266194, 0.0331092626, -0.0800497681, 0.3778601587, 0.0454612449, 0.1114238575, 0.446123153, 0.4049828053, -0.1060691476, -0.0645617843, 0.3080867529, -0.3914480805, -0.0931515917, 0.0810794383, -0.1104288399, 0.2468286157, -0.3147916496, 0.6316780448, 0.1682753414, 0.7650756836, -0.2163726836, -0.0818574876, 0.0109545663, 0.1951052845, -0.273940444, 0.1889485419, 0.3846218586, -0.3076027036, 0.0981165469, -0.0437704548, -0.0178628191, -0.2440255582, -0.0302384123, -0.1594133824, 0.0686636865, -0.0978545696, 0.0309899356, -0.248580426, 0.0831889212, 0.343130827, -0.087953344, -0.2779463828, 0.3806456923, 0.0356349833, 0.1754513532, 0.1777856946, 0.0299989432, -0.0623695441, 0.1734721214, -0.0929425806, 0.1898393631, 0.1581863165, 0.2450638264, 0.0953595489, -0.0520523079, 0.1189913154, 0.3499027491, 0.2957805395, -0.0092538185, -0.0625839904, -0.0884831101, -0.3842275441, -0.385306716, -0.1133603826, 0.2477751225, 0.2131842524, -0.369980067, -0.4927599728, 0.3212747276, -0.0740114152, 0.0194723122, -0.0607551634, 0.4851861596, 0.1276383847, 0.0470057204, 0.2408133149, 0.2430116683, -0.189599812, -0.0786767006, -0.1897739321, 0.1530005336, -0.0485873409, -0.0438677073, 0.131706804, -0.5761970878, 0.117654182, -0.0184411518, 0.3553462029, -0.320558995, -0.3360754251, -0.0648011938, -0.1094545946, 0.0805431306, -0.0559901185, 0.0071815178, 0.180180952, -0.3210012317, -0.0618892983, -0.0260085501, -0.1589977443, -0.3241134286, -0.047947675, 0.2177027464, 0.0325043276, 0.1240162998, -0.2615485191, 0.098749347, 0.4569668174, -0.1838753968, 0.0121194087, -0.0366269499, -0.1992594302, -0.1116070822, 0.0685286373, 0.7190667391, 0.0927180722, 0.0617560297, 0.4470198154, 0.2204507887, 0.2396672666, -0.034657646, -0.0303014535, 0.1947583854, -0.2161441445, 0.1940477192, 0.1738506258, -0.6035792828, -0.0017294958, 0.19102633, 0.0441777334, 0.129531011, 0.0547360927, -0.3995577395, 0.4223297238, -0.3531520665, 0.1809351444, 0.4003566206, -0.0078090644, 0.0422332063, -0.2096996903, -0.0094916448, -0.0592942387, 0.1407904923, 0.0956548452, 0.0371473283, 0.4447285235, 0.0195300914, 0.5081378222, -0.2271019667, -0.04350923, 0.204465121, -0.0637108684, 0.0057082921, -0.0157996714, -0.2292636037, -0.1008971408, 0.2268032134, -0.038545385, -0.0186799895, -0.3047527373, -0.1203672066, -0.3363893926, 0.0941975191, -0.1724900007, -0.0096019693, 0.1468278766, 0.0825051069, 0.1227488965, 0.2111047506, -0.2485480309, 0.2506259084, -0.3510061204, 0.1294384897, -0.5143994093, 0.2901620865, 0.0366384089, -0.1802813262, 0.3910514116, 0.5273910165, 0.206374228, -0.1315863132, -0.245041132, 0.3295739293, -0.2906769812, 0.6357575655, -0.3684307337, -0.2102892399, 0.1556364596, -0.3921352625, 0.19127132, 0.1315572113, 0.291969806, -0.106512323, 0.2268298566, 0.129658699, 0.0019440297, 0.0616183355, 0.1570881754, -0.0124362968, 0.3217051327, -0.0014806911, -0.1980579793, -0.3063355684, 0.6450020075, 0.218574509, 0.1565410197, -0.1052058563, -0.2416180372, 0.0593608841, 0.499391973, -0.0996020436, -0.0267611705, 0.035702195, -0.0107222982, 0.0234230906, 0.0127149131, -0.146162048, 0.1471958905, 0.0217036456, -0.1039545834, 0.0323543847, 0.0716074258, -0.3352047205, 0.3919110894, -0.1687843204, 0.0142022111, 0.4510241449, 0.0282913521, 0.0123840496, -0.3308032155, -0.1881503463, 0.0471752882, 0.0889911205, -0.5186878443, 0.0840453207, -0.2582146823, -0.2728700638, -0.2343661636, -0.3481076956, -0.0588170663, -0.1013339609, -0.0612809286, 0.1418219954, -0.0765725449, 0.0614707097, -0.3226085305, 0.1384917647, -0.1622720957, 0.1579306722, -0.1613736451, -0.1625819057, -0.1952579319, -0.0374631286, 0.4106934965, 0.2090357095, 0.1456118673, -0.3906172812, 0.0756683499, -0.1550292373, -0.1967248917, 0.1922616363, -0.0072830864, 0.044501178, -0.096276328, -0.1030249745, 0.6314198375, -0.1873523295, 0.0774800628, 0.040375635, -0.0095926486, 0.4120470881, 0.1020499766, -0.4308472574, -0.0713258162, -0.2392787337, -0.384044081, -0.5113681555, -0.2183601409, 0.0891489387, 0.2631493211, 0.4002131224, -0.2125224769, -0.0471868999, -0.0296737216, 0.3316633701, -0.1299688518, -0.2295030206, 0.2037601471, -0.2909738123, -0.3221515119, 0.1063790172, 0.068276085, 0.397883445, -0.0266789924, -0.2990862131, 0.2009893209, 0.0736918524, 0.0807958245, -0.1829183549, -0.0326648317, 0.1681958735, 0.0659451634, 0.0074228607, -0.0765440315, 0.0337193608, -0.3264494538, -0.0253695138, -0.1287386417, -0.0559626967, 0.2026885748, -0.1725132912, 0.0619195588, 0.4852907956, 0.0982007757, 0.2867951393, 0.0515122712, 0.2136234641, 0.0147208124, -0.2460832745, 0.4707964063, -0.1930657178, -0.2243300825, 0.3553858995, 0.0529205911, -0.134850651, -0.215293631, 0.0723879635, -0.1209117323, -0.2952134907, 0.0524814203, -0.3898859918, 0.2485881001, 0.0668382198, 0.3902975321, 0.0765492171, -0.2069250494, -0.0084629618, 0.3520232737, 0.1568843871, -0.1251985729, 0.0142382756, 0.131218493, -0.4801462889, 0.344866097, 0.210248515, -0.0640167743, -0.0432952568, 0.2608808279, 0.0587285981, -0.1514607817, 0.0913046002, -0.2261170149, 0.2672909498, 0.2079254985, 0.385458231, -0.2534745336, -0.0441584028, -0.0180202574, 0.4818535447, -0.0801009312, -0.0459677204, -0.0982749164, 0.1211585701, 0.073156327, 0.1224754602, -0.0888524354, -0.1877177954, -0.2884796858, -0.3591707647, -0.3103106916, -0.233523652, 0.0687818229, 0.3102965355, -0.1312478483, -0.1198606789, -0.0953512341, -0.0344559774, 0.1942460984, 0.0822996497, 0.0921881422, -0.075224936, 0.115687564, -0.0131785534, -0.1346068531, 0.3768366873, 0.7526931167, -0.1334383935, -0.5529474616, -0.1159116998, -0.3700479567, 0.0784896091, 0.4450324476, -0.212475121, -0.1339326352, 0.0593463406, -0.0505472496, -0.3437482715, -0.2992709875, 0.050474599, 0.0993437022, -0.278416425, -0.5206427574, 0.4623550773, -0.1271227151, 0.0311398208, 0.146849364, 0.0418171696, -0.3473610878, 0.1372858733, 0.0064522382, 0.9900804758, 0.2140815854, -0.1357926726, 0.0753420219, -0.2174913287, 0.0528735369, -0.224895224, 0.1980185956, -0.2843385637, 0.022239428, -0.1518352628, 0.2045905888, 0.2688497603, 0.062127877, -0.2158521861, 0.1995503306, -0.0714002773, -0.2375725806, -0.0485024601, 0.0031613261, -0.419911325, -0.2580136955, -0.5787042975, 0.1172821, -0.117932409, 0.1192463636, -0.1189099029, 0.0359292962, 0.0455076844, -0.3266945183, -0.460832119, 0.3758395612, -0.202447474, -0.1504062414, -0.0577521697, -0.3814416826, 0.3199529052, 0.0561908521, 0.2504868805, 0.0391975604, -0.0429425873, 0.1452625394, 0.1981222034, -0.0339067057, -0.0243589003, 0.0854879171, 0.238564983, -0.0663194284, -0.1132119447, 0.2658365965, -0.0436590649, -0.1837538183, 0.2556528151, 0.0661296099, -0.0826181397, -0.0395174474, -0.043281924, 0.0955186039, 0.1809810698, -0.0629983172, 0.1403061897, 0.1276890337, -0.2898811102, -0.0544111803, -0.1107424498, -0.2697612345, 0.0812908188, 0.2204328328, -0.0361850038, -0.0838951021, 0.4614350796, 0.4005639255, -0.2099893391, -0.1176223308, -0.3479477465, 0.1872604191, -0.5638506413, 0.0368574262, -0.0007264614, 0.0062481612, -0.158690244, 0.4170021415, -0.1392197907, -0.0937974527, 0.0625542477, -0.5232269168, -0.0387312844, 0.1154579967, -0.0103502488, 0.0329313055, -0.04875255, 0.0001442172, -0.2369751036, 0.1144791171, -0.300783366, 0.1038625762, -0.2077759206, 0.137283504, 0.42963624, -0.0340129733, -0.1030204892, -0.2039475441, 0.1335909963, 0.336011827, -0.1127501577, -0.1500055194, -0.008556921, 0.1377922297, 0.0324158333, -0.0805125758, 0.0895493478, -0.0501773655, -0.1057634875, -0.1934638321, 0.2179797441, 0.1474807411, 0.0261412207, -0.027722735, -0.4482190013, 0.2940061986, -0.0006676987, 0.2398101389, -0.1485023201, 0.4302437901, -0.1185296923, 0.1239033937, -0.2088456899, -0.0353736803, -0.115048334, 0.2561822534, -0.0961360112, 0.065586336, 0.436314851, -0.2451553643, 0.3256577253, 0.4871928692, -0.0835478753, 0.3445189595, -0.409155488, 0.0281196684, 0.0262618475, 0.2102448493, -0.1836766899, -0.0181148052, -0.4960896969, -0.0479394421, -0.0900046602, 0.2297486961, 0.11052306, -0.3707813621, -0.2305629253, 0.0906382799, 0.4767552316, -0.0063160639, 0.2191633731, 0.0231048614, 0.0493150577, -0.0192853995, -0.0703007281, 0.2188111544, 0.0461869128, 0.2720301747, -0.4646324217, 0.3093922734, 0.2494734377, 0.1801020503, -0.0085308254, -0.441163063, 0.0482364222, 0.2103965878, 0.0852200314, 0.4002785981, 0.160991028, 0.1585996002, -0.1475245357, -0.1259340793, -0.161346361, 0.0410658345, -0.0583182313, 0.0472530089, -0.3145270646, -0.2136666924, -0.1724198908, -0.1043777466, -0.1697823852, 0.119301036, 0.0753189102, 0.1556894183, -0.3476271629, -0.3463915288, 0.1377423704, -0.2096368372, 0.2447027266, -0.1253279448, 0.5787799954, 0.4382132292, 0.0846358612, 0.4258900285, 0.3017463982, 0.761587739, 0.305842191, 0.0535049513, 0.192780748, -0.1810554415, -0.1250637174, 0.1044049636, 0.3984238803, 0.0448815152, 0.3953421116, 0.0439628214, 0.1863658428, -0.1380055398, 0.1443943083, 0.2655774355, 0.4306207299, -0.1914597899, 0.2662214935, -0.1739094406, -0.0572184697, -0.4198778272, -0.094654426, -0.3771161139, 0.1363275051, 0.2699848413, -0.0920647085, 0.0951405615, -0.0083603412, 0.1025269851, 0.07400354, 0.3087226748, 0.4034378231, 0.1357368529, 0.0255360939, -0.2081611156, -0.4297651052, 0.3247802556, -0.0908723325, -0.3741294146, -0.0666033849, 0.0824068263, 0.1919351816, 0.1155835539, 0.1238223165, -0.0432214588, 0.3833331466, 0.0597238652, -0.172421515, -0.0146101369, 0.2414136827, -0.0620317236, -0.3025858402, -0.3642937243, 0.0325733274, -0.2273192406, 0.0701556653, 0.0482754111, -0.0399630517, -0.0922601297, -0.2646712661, 0.3722181618, 0.0610683635, 0.2166772485, -0.3107423186, -0.2267267406, -0.3663766682, -0.1446742862, -0.1544996798, 0.4856234789, 0.1616642475, 0.2741332054, -0.0787701905, 0.0253112204, -0.268286109, 0.1879410446, -0.1179689839, 0.2693616748, -0.3983274996, -0.061925061, -0.1300141662, 0.0634815395, -0.0002449676, 0.241636157, 0.0137259802, 0.0728769302, -0.1267938912, -0.6861601472, 0.4283369184, -0.5565595031, -0.4156654179, 0.0878275633, 0.6013888717, 0.0051166452, 0.072532393, -0.6429923177, 0.2427358627, 0.0948260874, -0.2015705556, -0.1887488216, -0.0072775371, -0.1239601374, -0.1315534711, -0.0403238498, 0.0875856876, 0.2611949444, -0.1649685204, 0.1641224623, -0.4080627561 ]
https://github.com/huggingface/datasets/issues/2679
Cannot load the blog_authorship_corpus due to codec errors
@albertvillanova Can you shed light on how this fix works? We're experiencing a similar issue. If we run several runs (eg in a Wandb sweep) the first run "works" but then we get `NonMatchingSplitsSizesError` | run num | actual train examples # | expected example # | recorded example # | | ------- | -------------- | ----------------- | -------- | | 1 | 100 | 100 | 100 | | 2 | 102 | 100 | 102 | | 3 | 100 | 100 | 202 | | 4 | 40 | 100 | 40 | | 5 | 40 | 100 | 40 | | 6 | 40 | 100 | 40 | The second through the nth all crash with ``` datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=19980970, num_examples=100, dataset_name='cies'), 'recorded': SplitInfo(name='train', num_bytes=40163811, num_examples=202, dataset_name='cies')}] ```
## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1
135
Cannot load the blog_authorship_corpus due to codec errors ## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1 @albertvillanova Can you shed light on how this fix works? We're experiencing a similar issue. If we run several runs (eg in a Wandb sweep) the first run "works" but then we get `NonMatchingSplitsSizesError` | run num | actual train examples # | expected example # | recorded example # | | ------- | -------------- | ----------------- | -------- | | 1 | 100 | 100 | 100 | | 2 | 102 | 100 | 102 | | 3 | 100 | 100 | 202 | | 4 | 40 | 100 | 40 | | 5 | 40 | 100 | 40 | | 6 | 40 | 100 | 40 | The second through the nth all crash with ``` datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=19980970, num_examples=100, dataset_name='cies'), 'recorded': SplitInfo(name='train', num_bytes=40163811, num_examples=202, dataset_name='cies')}] ```
[ -0.208489418, 0.478081286, -0.0540075488, 0.3998488188, 0.3617143929, 0.2268405855, 0.0785167441, 0.4288443327, -0.1586730033, 0.2435749173, 0.0468285158, 0.2679275274, -0.066664651, -0.2108721435, 0.0490836129, 0.0175640192, -0.0882997215, 0.1426829696, 0.2282302082, -0.2342805117, -0.2054748982, 0.1818804294, -0.1930266023, 0.0730282366, -0.2108267844, -0.078932561, 0.1461102962, 0.6233424544, -0.1766087115, -0.6049431562, 0.1305889487, 0.0211391095, 0.1271804571, 0.3438816071, -0.0001129081, -0.0840199292, 0.5609156489, -0.0908813179, -0.2077676058, -0.2428598106, -0.2933349609, 0.0893763527, -0.1876993477, -0.2272574753, 0.0519392788, 0.1707791537, 0.0439891368, -0.5675265789, 0.315276891, 0.5750639439, 0.2217923552, -0.0919266194, 0.0331092626, -0.0800497681, 0.3778601587, 0.0454612449, 0.1114238575, 0.446123153, 0.4049828053, -0.1060691476, -0.0645617843, 0.3080867529, -0.3914480805, -0.0931515917, 0.0810794383, -0.1104288399, 0.2468286157, -0.3147916496, 0.6316780448, 0.1682753414, 0.7650756836, -0.2163726836, -0.0818574876, 0.0109545663, 0.1951052845, -0.273940444, 0.1889485419, 0.3846218586, -0.3076027036, 0.0981165469, -0.0437704548, -0.0178628191, -0.2440255582, -0.0302384123, -0.1594133824, 0.0686636865, -0.0978545696, 0.0309899356, -0.248580426, 0.0831889212, 0.343130827, -0.087953344, -0.2779463828, 0.3806456923, 0.0356349833, 0.1754513532, 0.1777856946, 0.0299989432, -0.0623695441, 0.1734721214, -0.0929425806, 0.1898393631, 0.1581863165, 0.2450638264, 0.0953595489, -0.0520523079, 0.1189913154, 0.3499027491, 0.2957805395, -0.0092538185, -0.0625839904, -0.0884831101, -0.3842275441, -0.385306716, -0.1133603826, 0.2477751225, 0.2131842524, -0.369980067, -0.4927599728, 0.3212747276, -0.0740114152, 0.0194723122, -0.0607551634, 0.4851861596, 0.1276383847, 0.0470057204, 0.2408133149, 0.2430116683, -0.189599812, -0.0786767006, -0.1897739321, 0.1530005336, -0.0485873409, -0.0438677073, 0.131706804, -0.5761970878, 0.117654182, -0.0184411518, 0.3553462029, -0.320558995, -0.3360754251, -0.0648011938, -0.1094545946, 0.0805431306, -0.0559901185, 0.0071815178, 0.180180952, -0.3210012317, -0.0618892983, -0.0260085501, -0.1589977443, -0.3241134286, -0.047947675, 0.2177027464, 0.0325043276, 0.1240162998, -0.2615485191, 0.098749347, 0.4569668174, -0.1838753968, 0.0121194087, -0.0366269499, -0.1992594302, -0.1116070822, 0.0685286373, 0.7190667391, 0.0927180722, 0.0617560297, 0.4470198154, 0.2204507887, 0.2396672666, -0.034657646, -0.0303014535, 0.1947583854, -0.2161441445, 0.1940477192, 0.1738506258, -0.6035792828, -0.0017294958, 0.19102633, 0.0441777334, 0.129531011, 0.0547360927, -0.3995577395, 0.4223297238, -0.3531520665, 0.1809351444, 0.4003566206, -0.0078090644, 0.0422332063, -0.2096996903, -0.0094916448, -0.0592942387, 0.1407904923, 0.0956548452, 0.0371473283, 0.4447285235, 0.0195300914, 0.5081378222, -0.2271019667, -0.04350923, 0.204465121, -0.0637108684, 0.0057082921, -0.0157996714, -0.2292636037, -0.1008971408, 0.2268032134, -0.038545385, -0.0186799895, -0.3047527373, -0.1203672066, -0.3363893926, 0.0941975191, -0.1724900007, -0.0096019693, 0.1468278766, 0.0825051069, 0.1227488965, 0.2111047506, -0.2485480309, 0.2506259084, -0.3510061204, 0.1294384897, -0.5143994093, 0.2901620865, 0.0366384089, -0.1802813262, 0.3910514116, 0.5273910165, 0.206374228, -0.1315863132, -0.245041132, 0.3295739293, -0.2906769812, 0.6357575655, -0.3684307337, -0.2102892399, 0.1556364596, -0.3921352625, 0.19127132, 0.1315572113, 0.291969806, -0.106512323, 0.2268298566, 0.129658699, 0.0019440297, 0.0616183355, 0.1570881754, -0.0124362968, 0.3217051327, -0.0014806911, -0.1980579793, -0.3063355684, 0.6450020075, 0.218574509, 0.1565410197, -0.1052058563, -0.2416180372, 0.0593608841, 0.499391973, -0.0996020436, -0.0267611705, 0.035702195, -0.0107222982, 0.0234230906, 0.0127149131, -0.146162048, 0.1471958905, 0.0217036456, -0.1039545834, 0.0323543847, 0.0716074258, -0.3352047205, 0.3919110894, -0.1687843204, 0.0142022111, 0.4510241449, 0.0282913521, 0.0123840496, -0.3308032155, -0.1881503463, 0.0471752882, 0.0889911205, -0.5186878443, 0.0840453207, -0.2582146823, -0.2728700638, -0.2343661636, -0.3481076956, -0.0588170663, -0.1013339609, -0.0612809286, 0.1418219954, -0.0765725449, 0.0614707097, -0.3226085305, 0.1384917647, -0.1622720957, 0.1579306722, -0.1613736451, -0.1625819057, -0.1952579319, -0.0374631286, 0.4106934965, 0.2090357095, 0.1456118673, -0.3906172812, 0.0756683499, -0.1550292373, -0.1967248917, 0.1922616363, -0.0072830864, 0.044501178, -0.096276328, -0.1030249745, 0.6314198375, -0.1873523295, 0.0774800628, 0.040375635, -0.0095926486, 0.4120470881, 0.1020499766, -0.4308472574, -0.0713258162, -0.2392787337, -0.384044081, -0.5113681555, -0.2183601409, 0.0891489387, 0.2631493211, 0.4002131224, -0.2125224769, -0.0471868999, -0.0296737216, 0.3316633701, -0.1299688518, -0.2295030206, 0.2037601471, -0.2909738123, -0.3221515119, 0.1063790172, 0.068276085, 0.397883445, -0.0266789924, -0.2990862131, 0.2009893209, 0.0736918524, 0.0807958245, -0.1829183549, -0.0326648317, 0.1681958735, 0.0659451634, 0.0074228607, -0.0765440315, 0.0337193608, -0.3264494538, -0.0253695138, -0.1287386417, -0.0559626967, 0.2026885748, -0.1725132912, 0.0619195588, 0.4852907956, 0.0982007757, 0.2867951393, 0.0515122712, 0.2136234641, 0.0147208124, -0.2460832745, 0.4707964063, -0.1930657178, -0.2243300825, 0.3553858995, 0.0529205911, -0.134850651, -0.215293631, 0.0723879635, -0.1209117323, -0.2952134907, 0.0524814203, -0.3898859918, 0.2485881001, 0.0668382198, 0.3902975321, 0.0765492171, -0.2069250494, -0.0084629618, 0.3520232737, 0.1568843871, -0.1251985729, 0.0142382756, 0.131218493, -0.4801462889, 0.344866097, 0.210248515, -0.0640167743, -0.0432952568, 0.2608808279, 0.0587285981, -0.1514607817, 0.0913046002, -0.2261170149, 0.2672909498, 0.2079254985, 0.385458231, -0.2534745336, -0.0441584028, -0.0180202574, 0.4818535447, -0.0801009312, -0.0459677204, -0.0982749164, 0.1211585701, 0.073156327, 0.1224754602, -0.0888524354, -0.1877177954, -0.2884796858, -0.3591707647, -0.3103106916, -0.233523652, 0.0687818229, 0.3102965355, -0.1312478483, -0.1198606789, -0.0953512341, -0.0344559774, 0.1942460984, 0.0822996497, 0.0921881422, -0.075224936, 0.115687564, -0.0131785534, -0.1346068531, 0.3768366873, 0.7526931167, -0.1334383935, -0.5529474616, -0.1159116998, -0.3700479567, 0.0784896091, 0.4450324476, -0.212475121, -0.1339326352, 0.0593463406, -0.0505472496, -0.3437482715, -0.2992709875, 0.050474599, 0.0993437022, -0.278416425, -0.5206427574, 0.4623550773, -0.1271227151, 0.0311398208, 0.146849364, 0.0418171696, -0.3473610878, 0.1372858733, 0.0064522382, 0.9900804758, 0.2140815854, -0.1357926726, 0.0753420219, -0.2174913287, 0.0528735369, -0.224895224, 0.1980185956, -0.2843385637, 0.022239428, -0.1518352628, 0.2045905888, 0.2688497603, 0.062127877, -0.2158521861, 0.1995503306, -0.0714002773, -0.2375725806, -0.0485024601, 0.0031613261, -0.419911325, -0.2580136955, -0.5787042975, 0.1172821, -0.117932409, 0.1192463636, -0.1189099029, 0.0359292962, 0.0455076844, -0.3266945183, -0.460832119, 0.3758395612, -0.202447474, -0.1504062414, -0.0577521697, -0.3814416826, 0.3199529052, 0.0561908521, 0.2504868805, 0.0391975604, -0.0429425873, 0.1452625394, 0.1981222034, -0.0339067057, -0.0243589003, 0.0854879171, 0.238564983, -0.0663194284, -0.1132119447, 0.2658365965, -0.0436590649, -0.1837538183, 0.2556528151, 0.0661296099, -0.0826181397, -0.0395174474, -0.043281924, 0.0955186039, 0.1809810698, -0.0629983172, 0.1403061897, 0.1276890337, -0.2898811102, -0.0544111803, -0.1107424498, -0.2697612345, 0.0812908188, 0.2204328328, -0.0361850038, -0.0838951021, 0.4614350796, 0.4005639255, -0.2099893391, -0.1176223308, -0.3479477465, 0.1872604191, -0.5638506413, 0.0368574262, -0.0007264614, 0.0062481612, -0.158690244, 0.4170021415, -0.1392197907, -0.0937974527, 0.0625542477, -0.5232269168, -0.0387312844, 0.1154579967, -0.0103502488, 0.0329313055, -0.04875255, 0.0001442172, -0.2369751036, 0.1144791171, -0.300783366, 0.1038625762, -0.2077759206, 0.137283504, 0.42963624, -0.0340129733, -0.1030204892, -0.2039475441, 0.1335909963, 0.336011827, -0.1127501577, -0.1500055194, -0.008556921, 0.1377922297, 0.0324158333, -0.0805125758, 0.0895493478, -0.0501773655, -0.1057634875, -0.1934638321, 0.2179797441, 0.1474807411, 0.0261412207, -0.027722735, -0.4482190013, 0.2940061986, -0.0006676987, 0.2398101389, -0.1485023201, 0.4302437901, -0.1185296923, 0.1239033937, -0.2088456899, -0.0353736803, -0.115048334, 0.2561822534, -0.0961360112, 0.065586336, 0.436314851, -0.2451553643, 0.3256577253, 0.4871928692, -0.0835478753, 0.3445189595, -0.409155488, 0.0281196684, 0.0262618475, 0.2102448493, -0.1836766899, -0.0181148052, -0.4960896969, -0.0479394421, -0.0900046602, 0.2297486961, 0.11052306, -0.3707813621, -0.2305629253, 0.0906382799, 0.4767552316, -0.0063160639, 0.2191633731, 0.0231048614, 0.0493150577, -0.0192853995, -0.0703007281, 0.2188111544, 0.0461869128, 0.2720301747, -0.4646324217, 0.3093922734, 0.2494734377, 0.1801020503, -0.0085308254, -0.441163063, 0.0482364222, 0.2103965878, 0.0852200314, 0.4002785981, 0.160991028, 0.1585996002, -0.1475245357, -0.1259340793, -0.161346361, 0.0410658345, -0.0583182313, 0.0472530089, -0.3145270646, -0.2136666924, -0.1724198908, -0.1043777466, -0.1697823852, 0.119301036, 0.0753189102, 0.1556894183, -0.3476271629, -0.3463915288, 0.1377423704, -0.2096368372, 0.2447027266, -0.1253279448, 0.5787799954, 0.4382132292, 0.0846358612, 0.4258900285, 0.3017463982, 0.761587739, 0.305842191, 0.0535049513, 0.192780748, -0.1810554415, -0.1250637174, 0.1044049636, 0.3984238803, 0.0448815152, 0.3953421116, 0.0439628214, 0.1863658428, -0.1380055398, 0.1443943083, 0.2655774355, 0.4306207299, -0.1914597899, 0.2662214935, -0.1739094406, -0.0572184697, -0.4198778272, -0.094654426, -0.3771161139, 0.1363275051, 0.2699848413, -0.0920647085, 0.0951405615, -0.0083603412, 0.1025269851, 0.07400354, 0.3087226748, 0.4034378231, 0.1357368529, 0.0255360939, -0.2081611156, -0.4297651052, 0.3247802556, -0.0908723325, -0.3741294146, -0.0666033849, 0.0824068263, 0.1919351816, 0.1155835539, 0.1238223165, -0.0432214588, 0.3833331466, 0.0597238652, -0.172421515, -0.0146101369, 0.2414136827, -0.0620317236, -0.3025858402, -0.3642937243, 0.0325733274, -0.2273192406, 0.0701556653, 0.0482754111, -0.0399630517, -0.0922601297, -0.2646712661, 0.3722181618, 0.0610683635, 0.2166772485, -0.3107423186, -0.2267267406, -0.3663766682, -0.1446742862, -0.1544996798, 0.4856234789, 0.1616642475, 0.2741332054, -0.0787701905, 0.0253112204, -0.268286109, 0.1879410446, -0.1179689839, 0.2693616748, -0.3983274996, -0.061925061, -0.1300141662, 0.0634815395, -0.0002449676, 0.241636157, 0.0137259802, 0.0728769302, -0.1267938912, -0.6861601472, 0.4283369184, -0.5565595031, -0.4156654179, 0.0878275633, 0.6013888717, 0.0051166452, 0.072532393, -0.6429923177, 0.2427358627, 0.0948260874, -0.2015705556, -0.1887488216, -0.0072775371, -0.1239601374, -0.1315534711, -0.0403238498, 0.0875856876, 0.2611949444, -0.1649685204, 0.1641224623, -0.4080627561 ]
https://github.com/huggingface/datasets/issues/2678
Import Error in Kaggle notebook
@lhoestq I did, and then let pip handle the installation in `pip import datasets`. I also tried using conda but it gives the same error. Edit: pyarrow version on kaggle is 4.0.0, it gets replaced with 4.0.1. So, I don't think uninstalling will change anything. ``` Install Trace of datasets: Collecting datasets Downloading datasets-1.9.0-py3-none-any.whl (262 kB) |████████████████████████████████| 262 kB 834 kB/s eta 0:00:01 Requirement already satisfied: dill in /opt/conda/lib/python3.7/site-packages (from datasets) (0.3.4) Collecting pyarrow!=4.0.0,>=1.0.0 Downloading pyarrow-4.0.1-cp37-cp37m-manylinux2014_x86_64.whl (21.8 MB) |████████████████████████████████| 21.8 MB 6.2 MB/s eta 0:00:01 Requirement already satisfied: importlib-metadata in /opt/conda/lib/python3.7/site-packages (from datasets) (3.4.0) Requirement already satisfied: huggingface-hub<0.1.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (0.0.8) Requirement already satisfied: pandas in /opt/conda/lib/python3.7/site-packages (from datasets) (1.2.4) Requirement already satisfied: requests>=2.19.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (2.25.1) Requirement already satisfied: fsspec>=2021.05.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (2021.6.1) Requirement already satisfied: multiprocess in /opt/conda/lib/python3.7/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: packaging in /opt/conda/lib/python3.7/site-packages (from datasets) (20.9) Collecting xxhash Downloading xxhash-2.0.2-cp37-cp37m-manylinux2010_x86_64.whl (243 kB) |████████████████████████████████| 243 kB 23.7 MB/s eta 0:00:01 Requirement already satisfied: numpy>=1.17 in /opt/conda/lib/python3.7/site-packages (from datasets) (1.19.5) Requirement already satisfied: tqdm>=4.27 in /opt/conda/lib/python3.7/site-packages (from datasets) (4.61.1) Requirement already satisfied: filelock in /opt/conda/lib/python3.7/site-packages (from huggingface-hub<0.1.0->datasets) (3.0.12) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: certifi>=2017.4.17 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: chardet<5,>=3.0.2 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: typing-extensions>=3.6.4 in /opt/conda/lib/python3.7/site-packages (from importlib-metadata->datasets) (3.7.4.3) Requirement already satisfied: zipp>=0.5 in /opt/conda/lib/python3.7/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: pyparsing>=2.0.2 in /opt/conda/lib/python3.7/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: python-dateutil>=2.7.3 in /opt/conda/lib/python3.7/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.3 in /opt/conda/lib/python3.7/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: six>=1.5 in /opt/conda/lib/python3.7/site-packages (from python-dateutil>=2.7.3->pandas->datasets) (1.15.0) Installing collected packages: xxhash, pyarrow, datasets Attempting uninstall: pyarrow Found existing installation: pyarrow 4.0.0 Uninstalling pyarrow-4.0.0: Successfully uninstalled pyarrow-4.0.0 Successfully installed datasets-1.9.0 pyarrow-4.0.1 xxhash-2.0.2 WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv ```
## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1
322
Import Error in Kaggle notebook ## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1 @lhoestq I did, and then let pip handle the installation in `pip import datasets`. I also tried using conda but it gives the same error. Edit: pyarrow version on kaggle is 4.0.0, it gets replaced with 4.0.1. So, I don't think uninstalling will change anything. ``` Install Trace of datasets: Collecting datasets Downloading datasets-1.9.0-py3-none-any.whl (262 kB) |████████████████████████████████| 262 kB 834 kB/s eta 0:00:01 Requirement already satisfied: dill in /opt/conda/lib/python3.7/site-packages (from datasets) (0.3.4) Collecting pyarrow!=4.0.0,>=1.0.0 Downloading pyarrow-4.0.1-cp37-cp37m-manylinux2014_x86_64.whl (21.8 MB) |████████████████████████████████| 21.8 MB 6.2 MB/s eta 0:00:01 Requirement already satisfied: importlib-metadata in /opt/conda/lib/python3.7/site-packages (from datasets) (3.4.0) Requirement already satisfied: huggingface-hub<0.1.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (0.0.8) Requirement already satisfied: pandas in /opt/conda/lib/python3.7/site-packages (from datasets) (1.2.4) Requirement already satisfied: requests>=2.19.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (2.25.1) Requirement already satisfied: fsspec>=2021.05.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (2021.6.1) Requirement already satisfied: multiprocess in /opt/conda/lib/python3.7/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: packaging in /opt/conda/lib/python3.7/site-packages (from datasets) (20.9) Collecting xxhash Downloading xxhash-2.0.2-cp37-cp37m-manylinux2010_x86_64.whl (243 kB) |████████████████████████████████| 243 kB 23.7 MB/s eta 0:00:01 Requirement already satisfied: numpy>=1.17 in /opt/conda/lib/python3.7/site-packages (from datasets) (1.19.5) Requirement already satisfied: tqdm>=4.27 in /opt/conda/lib/python3.7/site-packages (from datasets) (4.61.1) Requirement already satisfied: filelock in /opt/conda/lib/python3.7/site-packages (from huggingface-hub<0.1.0->datasets) (3.0.12) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: certifi>=2017.4.17 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: chardet<5,>=3.0.2 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: typing-extensions>=3.6.4 in /opt/conda/lib/python3.7/site-packages (from importlib-metadata->datasets) (3.7.4.3) Requirement already satisfied: zipp>=0.5 in /opt/conda/lib/python3.7/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: pyparsing>=2.0.2 in /opt/conda/lib/python3.7/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: python-dateutil>=2.7.3 in /opt/conda/lib/python3.7/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.3 in /opt/conda/lib/python3.7/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: six>=1.5 in /opt/conda/lib/python3.7/site-packages (from python-dateutil>=2.7.3->pandas->datasets) (1.15.0) Installing collected packages: xxhash, pyarrow, datasets Attempting uninstall: pyarrow Found existing installation: pyarrow 4.0.0 Uninstalling pyarrow-4.0.0: Successfully uninstalled pyarrow-4.0.0 Successfully installed datasets-1.9.0 pyarrow-4.0.1 xxhash-2.0.2 WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv ```
[ -0.3157348037, -0.0831312016, -0.1109721437, 0.1658833772, 0.17944552, -0.022079356, 0.320815146, 0.2708317637, -0.0284398645, -0.052530393, -0.1436257511, 0.8592841029, 0.0922809392, 0.2378657162, 0.020910196, -0.0479101799, 0.1613056511, 0.2256401032, -0.0434860885, 0.0514690727, -0.0643853694, 0.0771298632, -0.2960686386, 0.2006768286, -0.059249226, -0.3657686412, 0.179894492, -0.0142971724, -0.252481401, -0.3473736644, 0.4036725461, -0.1720402539, 0.1640070975, 0.3787457645, -0.0001087982, 0.0669421703, 0.3618469238, -0.02911973, -0.3702860177, -0.1077228636, -0.2176081538, -0.600800395, 0.0832866356, -0.2847101092, 0.4702088833, -0.2857755423, -0.2630594075, -0.1921925694, 0.2056120932, 0.1816900223, 0.220649913, 0.4774709046, 0.480704248, 0.0092316717, 0.2772544622, -0.1289513707, -0.2072615325, 0.3021777868, 0.2401309311, -0.2112717628, 0.116624862, 0.1265564263, -0.0676914155, 0.0300701782, 0.1025228351, 0.0168169476, -0.1558159888, -0.3838816285, -0.0678934231, 0.0581075065, 0.4930506349, -0.5021781325, -0.2771856785, -0.1238675416, 0.114054352, 0.0022393465, 0.1400090009, 0.1730057001, -0.0677027851, -0.0962273777, 0.2432513088, -0.2378113717, -0.2651634812, 0.1864015013, -0.1860897839, 0.4596527517, -0.0485249907, 0.0963280797, 0.2849807143, -0.1344875395, 0.6502166986, -0.0968685448, -0.1329708993, 0.1146483272, -0.4117367864, 0.097132422, 0.0104093049, -0.0425877757, 0.1165602878, 0.1059472263, 0.1066146195, 0.1188909262, 0.0963281542, 0.3061638474, 0.0781598166, 0.3834524155, 0.0288381353, 0.3633150458, 0.263946563, 0.2905315757, 0.2459661663, -0.0625745282, -0.0748768225, -0.3948992789, 0.080910489, -0.0593819059, 0.264490813, 0.1566996872, -0.4245137274, -0.0065867417, -0.290820688, -0.0526706316, 0.0005867966, 0.1260778904, -0.2189186513, 0.1570493579, 0.1539258361, 0.1813417226, -0.1178864837, -0.059399575, -0.1201268286, 0.3064024746, -0.0218913853, -0.2258305252, 0.0449588895, -0.2936345339, 0.2442827523, 0.0245808288, 0.2295256406, 0.175035879, 0.170532465, -0.1257321239, -0.1919405162, 0.3506006598, 0.0321077853, 0.1153928712, 0.1277720779, -0.3931870461, -0.1246997267, 0.078808561, -0.1662566215, -0.0804767981, -0.2768649161, 0.1809962243, -0.290690124, 0.0514249466, -0.5761381388, -0.2516326904, 0.0038181171, -0.0501182862, -0.0043984987, -0.1965855807, 0.2344307601, -0.2544775903, 0.2506343126, 0.0534616522, -0.3594922721, 0.0474444032, -0.2210427821, -0.2070471793, -0.0644448623, 0.1289326847, -0.2450415492, 0.1776167005, -0.2288637161, 0.1348493695, 0.6730281711, -0.6061069965, -0.5256843567, 0.0257643573, -0.0934763104, 0.0148918927, -0.0130195618, 0.0944573283, -0.1029910371, 0.2157652229, 0.0677377358, 0.1622850448, -0.0314900801, -0.1910268962, -0.2592291236, -0.2871658802, 0.0578860007, 0.1806645989, 0.0925267264, -0.2924072146, 0.1847913116, -0.1539344788, 0.0381947756, 0.0600379594, 0.1202750579, 0.0565655865, 0.3603729606, 0.0527836978, -0.0124018528, -0.1248255447, -0.2917068601, 0.2685143352, -0.1398257315, 0.0348940343, -0.4064068198, -0.0832441598, -0.3611127138, 0.301294446, -0.2173997164, 0.052547995, 0.1697993726, -0.1237361953, 0.0105000436, 0.3521029353, -0.0077054426, 0.3821056783, 0.1918429732, 0.1550073773, -0.3192884922, 0.3061142266, -0.3814661205, -0.1457504928, 0.0615458935, 0.1301295757, -0.1030458137, 0.0251291692, -0.0443165079, 0.1139588356, 0.0772133023, 0.0239461288, 0.0103001632, -0.2309057266, 0.1762902737, -0.3153471947, 0.1356554329, 0.1335419267, 0.3049319983, 0.0928746462, 0.0961892307, 0.0953046978, -0.0592509583, -0.0957976431, 0.0148668736, 0.2575814128, 0.2067645788, 0.2018837035, 0.0612243414, -0.1222232953, 0.1843209863, -0.0238402598, 0.1030386612, -0.0872514173, -0.1367311627, -0.0239379108, 0.3600415289, 0.0096612424, 0.1436845958, 0.0097313728, -0.3445079625, 0.218618989, 0.2709666193, 0.0152542815, 0.3870510757, 0.2118289322, -0.213457793, -0.0735057667, -0.0510983467, -0.1095043868, 0.1225213259, 0.3149386048, 0.3916879296, 0.1771175563, 0.2458559424, -0.065415509, 0.0114168525, -0.2596939206, -0.0427027717, 0.2147676647, -0.1877253801, 0.2559347749, -0.2284222692, -0.2371330559, -0.162731424, -0.1992758214, 0.0117196087, -0.4043592811, -0.2368007749, 0.2449378371, 0.1685371399, 0.1849226505, 0.1470609158, -0.118139565, 0.0749961957, -0.2854745984, -0.2432318479, -0.3484172821, -0.3759359121, 0.1030786335, 0.3510779738, 0.1604799032, 0.2290232927, -0.1745556593, 0.24878335, -0.40511778, -0.4474340677, -0.2108632922, -0.0932769924, 0.4236425757, 0.266957134, 0.161386922, -0.2377539873, -0.2812201679, 0.3301023245, 0.1585970521, -0.2695577741, 0.1333747804, -0.110492304, -0.2200865895, 0.0303357467, -0.3240672648, -0.3991328776, -0.4153461754, 0.3101411462, 0.1853808463, -0.131648466, -0.1519117355, 0.3288981915, 0.210177362, 0.1746777296, 0.022653725, 0.0737201795, 0.2688189447, 0.5995612144, -0.1175567582, -0.410183996, 0.222981602, -0.2326620966, 0.3032898605, -0.0754953921, -0.4256072938, 0.0147365294, -0.1739685684, 0.6500650048, -0.2176857591, 0.2231075317, 0.1810688227, 0.2036801279, 0.0705053359, -0.1243864745, -0.2514393926, -0.1216404885, -0.1191995442, 0.0573351532, 0.0553835183, 0.1176579744, 0.0425808728, 0.5509263277, 0.0537306294, -0.0652406886, 0.2583055496, -0.0818952322, 0.2138424516, 0.0764961541, -0.4019140005, -0.0495565087, -0.1408324242, 0.2763574123, -0.1539873779, -0.2508073449, -0.2186053246, -0.3311212063, -0.1756258607, -0.1506526172, -0.1933947951, 0.0008878876, -0.1569966376, 0.0058026938, 0.0806928799, -0.0736643523, -0.1882081628, -0.1347946674, 0.1647776216, 0.0307285804, -0.3172053993, 0.1159443408, -0.3461394906, -0.4914351106, -0.155300796, 0.3025520444, 0.129016012, 0.281511724, 0.1602949053, -0.1667507887, 0.0705200583, -0.1935521364, 0.4416458607, -0.0341809914, -0.2406098694, 0.2495844662, 0.2823727727, -0.792555809, -0.3175820708, -0.2055810392, 0.0780887753, 0.1872676909, 0.1108765602, -0.2535759509, 0.1550150514, -0.0309469067, 0.4460532665, -0.0348791704, 0.0585273318, -0.4713844061, -0.4379484653, -0.3892823458, -0.1156110242, -0.0409340933, 0.3213147521, -0.0254290793, -0.041062247, -0.2078599483, -0.073221758, -0.1497965753, 0.2925758064, 0.2251969576, -0.1615442187, 0.2594017088, -0.1084293127, -0.0424695872, 0.4509443045, 0.409188658, 0.0962643921, -0.7135212421, -0.1644942462, -0.0819563568, 0.1051103175, -0.1693460047, -0.160280481, 0.1434169859, -0.0038492419, 0.0208179373, 0.0615008958, 0.0626366735, 0.1762910783, 0.1478817165, -0.1285624057, -0.1909570396, 0.4781821966, 0.3002483249, 0.0286420137, 0.4108392894, 0.0258858539, -0.1477503777, 0.0995122194, 0.133134827, 0.6035121083, 0.0099610165, 0.0515036248, 0.5848058462, -0.3137620687, 0.5632759929, -0.1316948682, 0.0393745154, -0.4316045046, -0.2410882711, -0.0023159012, -0.3130731285, 0.3180982172, -0.3315045238, -0.2583664358, 0.0785925835, -0.2612192035, 0.1756119132, 0.1027451083, 0.1611454636, -0.3093280494, -0.0600254238, -0.1455916464, 0.1129978001, -0.1309087276, 0.21480757, -0.0661609098, -0.0331405327, -0.539565742, -0.1773794293, -0.1691557169, 0.0144571885, -0.2888350189, 0.5264725685, 0.1666900218, -0.320305258, 0.3427610099, 0.4244213998, 0.2471298575, 0.0057721897, -0.045585759, 0.0889881402, 0.2085776031, -0.237168327, 0.2529141903, 0.0462156199, 0.204273209, -0.156398803, -0.3190074265, 0.4772300124, -0.084655568, -0.0295607746, 0.0000968724, 0.497158885, 0.1131920069, -0.1217276528, -0.1202546954, -0.1595297754, 0.1249535978, -0.1015983745, 0.1322087497, 0.1119274646, 0.0466098115, 0.45567137, -0.1267767251, 0.0519726723, -0.0274903048, 0.2234772146, -0.114935562, 0.0620305985, 0.2123060822, 0.0696587712, -0.3292404413, -0.1683605015, 0.1508704424, -0.1530785263, -0.3438263535, 0.0077214427, 0.1318708658, -0.0082272887, -0.2520039082, 0.3728193641, 0.2031216323, -0.1084893569, 0.1279940456, -0.4349558949, -0.2474515587, 0.348453939, -0.0220288541, -0.1178767383, 0.2887566388, 0.0877571627, -0.0058842376, -0.0320913233, -0.2641661465, 0.1931818724, -0.3227641284, -0.031698253, 0.1425732821, 0.1127645373, 0.0105736032, -0.0856631994, 0.1398328543, 0.0461559556, -0.0437213667, -0.2567093372, -0.0659092143, 0.0574808419, -0.0343529359, -0.1474079341, 0.0741347298, -0.264392972, 0.0659727156, -0.0042306669, -0.0947165564, 0.0316514298, -0.1309354454, 0.0467782244, -0.0807715207, 0.1194450781, -0.2579265237, 0.2794897556, -0.1730119288, -0.0186985321, -0.0069068633, 0.2252326757, 0.2478505373, 0.1844672114, -0.0095562749, -0.1614101827, -0.2980036438, -0.0180743039, 0.2375543118, -0.3787602782, 0.1076792777, -0.0900492966, 0.0517657176, 0.5189226866, -0.269965142, 0.0082830042, 0.3809459507, 0.198972702, -0.4422297776, -0.3729235828, 0.17860955, -0.0709993467, -0.0171534568, 0.0885272995, 0.2025185525, -0.0804910883, -0.0201550499, 0.2654154301, 0.1258960366, -0.1370829493, 0.3140002191, 0.4234542549, -0.0378351733, 0.0232163612, 0.2812749743, 0.2963756919, 0.1855886281, 0.4047457874, -0.3500569165, 0.0282888878, -0.0369497761, 0.1045034304, -0.0547992997, -0.2855790555, -0.0532267168, -0.0571666658, -0.1070987582, -0.1845391989, 0.1097599566, 0.4301123023, 0.0574703924, 0.0307855643, 0.0520781502, 0.0177022535, -0.1023801193, 0.2919911742, -0.0336429998, -0.1272790432, 0.1321562976, -0.0617207736, 0.1519881636, -0.2190746963, 0.3816209137, 0.2350088209, -0.2098593265, -0.2127113938, 0.2184397131, 0.4200306237, 0.0760443285, -0.1324736774, -0.1067288592, 0.2407665402, -0.1935666502, -0.3823975623, 0.2315097153, 0.6090103388, 0.3060408235, -0.2581610084, 0.1225211024, 0.0871991813, -0.1709099412, -0.0398906842, 0.0745101944, 0.1315117478, 0.0693418533, 0.2778827846, 0.2114034146, -0.1768908501, -0.0950515196, 0.1358909607, 0.1936740875, -0.1657044888, 0.1618971825, -0.320671767, -0.2677470744, -0.0531425886, 0.0481510945, -0.2507852316, 0.4375477135, 0.2409531176, 0.2532983124, 0.0314251669, -0.3065513372, 0.0889736935, 0.0574388951, 0.4528074265, 0.230944261, 0.3824342787, -0.1360668242, -0.1408260465, -0.5310806632, 0.0665639862, -0.0521799289, -0.3010044396, -0.0128997136, 0.0071576908, -0.0645842925, 0.2349255681, 0.1780211031, 0.0269659683, 0.3565100729, 0.1520020068, -0.3744761944, -0.3461715877, 0.3202926517, -0.1987851858, 0.0454253778, -0.3909829259, 0.0537328981, -0.37669608, 0.1434803605, -0.3492605388, -0.0599466972, 0.2764986157, 0.0935328305, 0.5667529702, -0.0021583773, 0.5926169157, 0.1934985965, 0.0967654958, -0.0043819956, -0.1707552373, -0.1537619233, 0.2509750426, 0.1735660583, 0.1745194495, -0.2626298368, -0.0890751854, -0.1791506708, 0.4046069384, 0.2431994677, 0.148537606, -0.0523444302, 0.0902898982, -0.030059889, -0.0034674183, 0.0776305497, 0.0713856071, -0.1739757359, 0.1392737031, -0.3855038285, -0.4081260562, 0.242596969, -0.2250494957, -0.2957751751, -0.0146501847, -0.0010493696, 0.0575173907, -0.0983296484, -0.3163693547, 0.0118405223, 0.3954785168, -0.0599401705, -0.2244617939, 0.305788219, 0.129208371, 0.0564277545, -0.0965942442, 0.4190941155, -0.14796336, -0.1125378162, 0.0788377598, -0.1065111235 ]
https://github.com/huggingface/datasets/issues/2678
Import Error in Kaggle notebook
You may need to restart your kaggle notebook after installing a newer version of `pyarrow`. If it doesn't work we'll probably have to create an issue on [arrow's JIRA](https://issues.apache.org/jira/projects/ARROW/issues/), and maybe ask kaggle why it could fail
## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1
37
Import Error in Kaggle notebook ## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1 You may need to restart your kaggle notebook after installing a newer version of `pyarrow`. If it doesn't work we'll probably have to create an issue on [arrow's JIRA](https://issues.apache.org/jira/projects/ARROW/issues/), and maybe ask kaggle why it could fail
[ -0.3392024338, -0.0755516142, -0.1140920669, 0.1258437335, 0.2003508508, 0.0130887926, 0.3512435853, 0.3286039233, -0.0306174345, -0.0346202627, -0.1804618537, 0.8273152113, 0.0816758871, 0.2334335744, 0.0459382273, -0.0699088797, 0.1140711457, 0.2013816088, -0.0490401797, 0.0703777596, -0.117843926, 0.0834917277, -0.2884144783, 0.2321554422, -0.0584079549, -0.3381466568, 0.1671688259, -0.0141577888, -0.2430081218, -0.3790450096, 0.3784845471, -0.1966231763, 0.1817372888, 0.3294719458, -0.0001053689, 0.0604676157, 0.3373239934, -0.0124661289, -0.3102439344, -0.1045580506, -0.1442510933, -0.5257624388, 0.102859363, -0.312852174, 0.4279817939, -0.3194993138, -0.2402211577, -0.1276634932, 0.2308557332, 0.1961777359, 0.2656955421, 0.4633556306, 0.4862200618, 0.0011487417, 0.3741646409, -0.1143620089, -0.1743800044, 0.3628068864, 0.2402816415, -0.2248291075, 0.0500848666, 0.1181878075, -0.050972499, 0.0626083314, 0.1312727034, 0.0576719791, -0.1053012833, -0.3694541454, -0.0583917797, 0.0525120832, 0.5115420222, -0.5075426102, -0.2177436352, -0.0814535394, 0.1224680245, -0.0286662467, 0.1378105134, 0.205057472, -0.0501830056, -0.1210188866, 0.2834637165, -0.2121222466, -0.2584418654, 0.2005662322, -0.1483706832, 0.4371288121, -0.0406336784, 0.0960494727, 0.2935906053, -0.1535814255, 0.6079093218, -0.0881313235, -0.111607492, 0.1210276037, -0.3806028664, 0.1239960492, 0.0679240227, -0.0673968196, 0.0992071033, 0.0918952078, 0.093598552, 0.1550538838, 0.1212944537, 0.3166657984, 0.1174943745, 0.3261025548, 0.0165999681, 0.2997156084, 0.2864750624, 0.3017310798, 0.1729280651, -0.0800278038, -0.0747299939, -0.3969317079, 0.1270081848, -0.0698432475, 0.3046589196, 0.1747570932, -0.3466574848, -0.0529746488, -0.3350790739, -0.0637518242, -0.0116904452, 0.1123064309, -0.20940952, 0.1152172089, 0.1874993742, 0.146000281, -0.1666171253, -0.0682869852, -0.1521495581, 0.3062852621, -0.0251900256, -0.2267777622, 0.028829284, -0.3074621558, 0.1900964826, 0.0459269099, 0.2293922603, 0.1597653925, 0.1890348792, -0.112342909, -0.2045964301, 0.3003134727, 0.0601033792, 0.0712900683, 0.12994349, -0.4086229801, -0.1351535618, 0.1063651368, -0.2069545984, -0.1117255539, -0.2594716251, 0.2262057662, -0.2221556008, 0.0504623279, -0.559643209, -0.2054486424, -0.0173048563, -0.0858524591, 0.0026641823, -0.2396206111, 0.2015480846, -0.2670944929, 0.2504831851, 0.0302171595, -0.3585842252, 0.0127388835, -0.2459343374, -0.2216097265, -0.0705785081, 0.160495311, -0.2848050892, 0.1845776588, -0.226440981, 0.1887179911, 0.6346995234, -0.5204711556, -0.4979524016, -0.0186403897, -0.1067586988, -0.0413646735, -0.0616751909, 0.1173456609, -0.12337479, 0.2213112414, 0.0595052354, 0.1761830449, -0.035612978, -0.1629240364, -0.2430762649, -0.2509733438, 0.1073999554, 0.1639562249, 0.0860652626, -0.3046607077, 0.1918822527, -0.1370864958, 0.078192845, 0.0483361185, 0.0952314138, 0.0352378152, 0.3661608696, 0.0145552726, 0.0464883111, -0.1311743706, -0.2734668553, 0.2382600307, -0.1955819279, 0.0514373295, -0.3236397505, -0.095413208, -0.3622353375, 0.2734936476, -0.2208878696, 0.089586705, 0.2002181858, -0.1121828333, -0.0092323422, 0.3617268205, -0.0242018774, 0.2681078017, 0.1552402377, 0.1296824962, -0.3341873884, 0.3652007878, -0.3834288716, -0.1805643737, 0.1077800691, 0.104086563, -0.1019414216, 0.0380610637, -0.0430635214, 0.1366349906, 0.0826363564, 0.0447763652, -0.0120107308, -0.1960676014, 0.156398043, -0.3880776465, 0.0727494881, 0.1435054094, 0.3162692785, 0.0837145746, 0.0832005739, 0.1296729892, -0.0675329939, -0.098356694, 0.0049291328, 0.2275875211, 0.1567102969, 0.1868842244, 0.1146123037, -0.0986977965, 0.1540547907, -0.063960731, 0.0871819854, -0.0876764655, -0.1409798115, -0.0280204751, 0.405303508, 0.0233541429, 0.1808374524, 0.0304348115, -0.3962767422, 0.1644173563, 0.2427370101, -0.0300168097, 0.3535701632, 0.2256230116, -0.2056583911, -0.0412724204, -0.0282235816, -0.1469459832, 0.1339506954, 0.2999612093, 0.3659517467, 0.1645155698, 0.2697113454, -0.0871521235, -0.0774469376, -0.2046925426, -0.0653678998, 0.2356105, -0.1783071309, 0.2326025665, -0.2168602943, -0.2743118405, -0.1611234099, -0.1632228792, -0.0215985682, -0.4483352304, -0.2108486444, 0.2484630644, 0.1435386539, 0.1773297638, 0.1788654029, -0.1151913553, 0.0936761349, -0.2396899462, -0.2538068593, -0.4000021815, -0.3790814281, 0.1432716846, 0.3257195354, 0.1581728756, 0.2266283482, -0.151905641, 0.2532312274, -0.4079256654, -0.4701179266, -0.2024703622, -0.0813920125, 0.3739663661, 0.268234551, 0.1427749991, -0.25323385, -0.3090757132, 0.3830123544, 0.0678419396, -0.2730148137, 0.1693324745, -0.1098784059, -0.1784491688, 0.0253320113, -0.3571754694, -0.366412878, -0.4171211123, 0.3046453297, 0.1833469719, -0.1222849563, -0.1501719356, 0.2870307565, 0.238640964, 0.1402597725, -0.033191096, 0.0438461266, 0.2569076121, 0.5885711312, -0.1185475364, -0.4215679169, 0.2081315517, -0.2530042529, 0.287925899, -0.1212988719, -0.4119746685, 0.0059752278, -0.1581648588, 0.6464039087, -0.1937624514, 0.2262533754, 0.1384781301, 0.1883796304, 0.0149808079, -0.0934890732, -0.2597444952, -0.1256241947, -0.0381723866, 0.0162667595, 0.032829918, 0.1183338016, 0.0268892944, 0.5717330575, -0.0252749622, -0.0560582653, 0.2782264352, -0.1158827916, 0.2086125016, 0.0487817377, -0.3988293409, -0.0288758986, -0.1440940201, 0.2643155456, -0.1259354651, -0.2704823613, -0.2474968731, -0.299713403, -0.2148073018, -0.1263629198, -0.2221945822, -0.0054585822, -0.0757257044, 0.0108813923, 0.0595688075, -0.1000433415, -0.2002983689, -0.1745503098, 0.2006660104, -0.0082942098, -0.2806133926, 0.1012868732, -0.3764593005, -0.4813118279, -0.1698221713, 0.3195928335, 0.1419187933, 0.2067780048, 0.1361560971, -0.1811809242, 0.0918796211, -0.1955467612, 0.3912840188, -0.000050595, -0.1831398308, 0.2893385589, 0.2120577991, -0.7940048575, -0.2984021306, -0.2168444991, 0.0245928764, 0.151840955, 0.0556011871, -0.2358745337, 0.1825493276, -0.0067500845, 0.4255690873, -0.0520750992, 0.0466575101, -0.4544199109, -0.4137452245, -0.3685896993, -0.1270064265, -0.0514203422, 0.3349299729, 0.002266705, 0.0053242445, -0.1855452061, -0.111964047, -0.1576914489, 0.2670358717, 0.2146258056, -0.1115877032, 0.234678641, -0.1138722226, -0.0742620081, 0.4554016292, 0.4173571467, 0.1206770316, -0.7068603635, -0.1579636782, -0.1026352048, 0.0967425704, -0.2202049196, -0.1588290483, 0.1977933943, 0.0221881606, 0.04379794, 0.0417433046, 0.0806981474, 0.1985221803, 0.0862323642, -0.0655690283, -0.1619853824, 0.4999957085, 0.2260811627, 0.0486238301, 0.4143024385, 0.0146008246, -0.1390306056, 0.0927457064, 0.1526042819, 0.5871587396, -0.0301651023, 0.0560947768, 0.5907444954, -0.3014117479, 0.5513145328, -0.1230462939, 0.0741302669, -0.4628840089, -0.2247701585, 0.0055090338, -0.3155346513, 0.2969498634, -0.3124715984, -0.2542787194, 0.0329560824, -0.2659883797, 0.2080369145, 0.0553778484, 0.1781307757, -0.2830355465, -0.0118619138, -0.1498601735, 0.1494501531, -0.1639214754, 0.1959708929, -0.0625473112, -0.0502739921, -0.4486036301, -0.1684480608, -0.1643161178, 0.0441637188, -0.2691605985, 0.5237215757, 0.1890532374, -0.3010547459, 0.314876467, 0.3913816512, 0.175112769, -0.0387776382, -0.0569795966, 0.1074404866, 0.1616197824, -0.2480657101, 0.2128371, 0.0806436017, 0.205558911, -0.1866948009, -0.3298459053, 0.5272290707, -0.0452226251, -0.0355114266, -0.0341983587, 0.4944119453, 0.1025409102, -0.1520352364, -0.093795225, -0.1552089006, 0.0723394156, -0.1172852516, 0.1601324975, 0.1095341146, 0.0587412193, 0.4139998555, -0.1057190523, 0.0269062668, -0.0296012163, 0.2540783286, -0.1155895293, 0.106709972, 0.2500081062, 0.1303191185, -0.3078185618, -0.1945817024, 0.1806536019, -0.0622145012, -0.354177624, 0.0479427613, 0.1496584862, 0.1058175862, -0.2028281391, 0.3725806773, 0.1533966511, -0.1213789433, 0.1287823468, -0.3833632469, -0.265658617, 0.3385193348, -0.0090028113, -0.1103966534, 0.2926874161, 0.0781987235, 0.0313311443, -0.0062161945, -0.3084301651, 0.2052083313, -0.3302122355, 0.0083811879, 0.1011922956, 0.0794142336, -0.0308858529, -0.0641283318, 0.1722778082, 0.0438546464, -0.0863537565, -0.29665941, -0.0732491314, 0.0432247594, -0.0479830354, -0.1568134129, 0.0791949779, -0.2420345843, 0.050191883, -0.0129744895, -0.0702721551, 0.0301931873, -0.162774533, 0.0894445628, -0.0856824517, 0.0408185907, -0.2453516126, 0.2226582021, -0.1917177141, -0.0080789141, 0.0023846105, 0.1824350655, 0.2653462887, 0.1451664567, -0.0172721911, -0.1375805736, -0.3005638719, -0.0740327314, 0.253013283, -0.3708565235, 0.0302672237, -0.1211540401, 0.0681601614, 0.4832295477, -0.2564837933, 0.0227947906, 0.3177835643, 0.2227732241, -0.4727801383, -0.3402058482, 0.1669094712, -0.0276110731, -0.0059123263, 0.0402583107, 0.1804118156, -0.021456942, -0.0464724638, 0.2500554323, 0.1249822229, -0.1655673981, 0.2797200978, 0.4209260643, -0.049495168, 0.0264375843, 0.267521143, 0.2963808477, 0.2045339048, 0.3570424616, -0.3276478052, 0.0601756871, -0.0562297292, 0.0378398821, -0.0056669749, -0.3138682246, -0.108388491, -0.0105361193, -0.1038450748, -0.1855692267, 0.1291920394, 0.4432269335, 0.1279407889, 0.0593538657, 0.0844722167, 0.0607647002, -0.1108184755, 0.2886046171, -0.0729114413, -0.1020413116, 0.0874913335, -0.0401765965, 0.1214724928, -0.2050823718, 0.4082724154, 0.2422347665, -0.196959421, -0.206922695, 0.2036923766, 0.4047399163, 0.0780596435, -0.1416166127, -0.1425932497, 0.2495489419, -0.1884704679, -0.3304871917, 0.2276611328, 0.5777510405, 0.2577286959, -0.2740432322, 0.1154704988, 0.071717374, -0.1743364036, -0.018098738, 0.0540501885, 0.1704165339, 0.1248133332, 0.2793816626, 0.2489603758, -0.189906776, -0.1014501899, 0.1192903817, 0.1714864373, -0.1778189689, 0.1440207362, -0.3029228151, -0.2679337263, -0.0933258533, 0.0538848303, -0.2071690261, 0.401553005, 0.2685335875, 0.2801016271, 0.0139478408, -0.3120486438, 0.1121474653, 0.0517154895, 0.474393487, 0.2438857853, 0.3920075595, -0.150223121, -0.1226659939, -0.5042755604, 0.1037849337, -0.0440829098, -0.3021403849, 0.0058271401, 0.0311488211, -0.0386296101, 0.2410348356, 0.2164306939, -0.011148449, 0.3305136859, 0.1124735773, -0.3594218493, -0.2880425155, 0.3069214225, -0.2013656795, 0.0282323509, -0.3520439267, 0.0942915082, -0.4053053856, 0.1781674922, -0.3622363806, -0.1047144085, 0.2711575031, 0.1081957221, 0.5927199721, -0.0197990928, 0.5346360803, 0.1709813476, 0.165064171, 0.0199482143, -0.2127308249, -0.1448093504, 0.2392462492, 0.1270062029, 0.2343885899, -0.2212746888, -0.0960160941, -0.2016208172, 0.4118447304, 0.21909374, 0.1606917083, -0.028342966, 0.0924785584, -0.0056447536, -0.0250827521, 0.0812168717, 0.0568824373, -0.1496459097, 0.1283640712, -0.3866484463, -0.4248798192, 0.2752148509, -0.2176072747, -0.3154254854, -0.0374940261, 0.0134214126, 0.1010609567, -0.102340132, -0.3162205219, 0.012066856, 0.4264297485, -0.0359578654, -0.210061267, 0.2819170952, 0.1119931042, 0.122019507, -0.0898988321, 0.384331882, -0.0953408778, -0.1146392673, 0.022028707, -0.1456836313 ]
https://github.com/huggingface/datasets/issues/2678
Import Error in Kaggle notebook
> You may need to restart your kaggle notebook before after installing a newer version of `pyarrow`. > > If it doesn't work we'll probably have to create an issue on [arrow's JIRA](https://issues.apache.org/jira/projects/ARROW/issues/), and maybe ask kaggle why it could fail It works after restarting. My bad, I forgot to restart the notebook. Sorry for the trouble!
## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1
57
Import Error in Kaggle notebook ## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1 > You may need to restart your kaggle notebook before after installing a newer version of `pyarrow`. > > If it doesn't work we'll probably have to create an issue on [arrow's JIRA](https://issues.apache.org/jira/projects/ARROW/issues/), and maybe ask kaggle why it could fail It works after restarting. My bad, I forgot to restart the notebook. Sorry for the trouble!
[ -0.3438676298, -0.0770803168, -0.1142193228, 0.1320916563, 0.1916217655, 0.0109463334, 0.3406415582, 0.3310460448, -0.0405511335, -0.0315703973, -0.1770029962, 0.825958252, 0.078407079, 0.2167554498, 0.0422965437, -0.0751287416, 0.1151350141, 0.2060001791, -0.0540337041, 0.0684146881, -0.1204733402, 0.0821904317, -0.2884450853, 0.2308665365, -0.0536758117, -0.3353978992, 0.1634011567, -0.015641138, -0.2512479126, -0.3893159926, 0.3791489601, -0.2030480653, 0.1786520034, 0.3298628628, -0.0001054691, 0.0557773262, 0.3331196308, -0.0016957335, -0.3189184666, -0.0971898735, -0.1449753046, -0.5241268277, 0.1139846966, -0.3169447184, 0.4252890944, -0.3302153647, -0.2376514822, -0.120702602, 0.2349157631, 0.2009016275, 0.2643294036, 0.461781919, 0.4861876369, -0.004376132, 0.3844994009, -0.1263224036, -0.1678392291, 0.3752983809, 0.2364214212, -0.2263901234, 0.041337166, 0.1175254956, -0.0614102706, 0.0632825941, 0.1276653409, 0.0492599234, -0.1038790047, -0.367446363, -0.0683319792, 0.0503972881, 0.5075068474, -0.5111188889, -0.2169643193, -0.0854615495, 0.1243210137, -0.0331042856, 0.1380395889, 0.2016968429, -0.0535895526, -0.1101545021, 0.2808275223, -0.2064095587, -0.2585777342, 0.19371593, -0.15189071, 0.4403882325, -0.038748011, 0.0953779817, 0.2886869311, -0.1460981667, 0.6073461771, -0.085547626, -0.1203502491, 0.1216695607, -0.3787594736, 0.1202815324, 0.0683320314, -0.0643595606, 0.0970349461, 0.0882157683, 0.0919667184, 0.1456046104, 0.1305026561, 0.3127406538, 0.1170408949, 0.3272092938, 0.0092069339, 0.2912879586, 0.2798188329, 0.2912293077, 0.1691601127, -0.0766246319, -0.0699370652, -0.3918390572, 0.1344004869, -0.0694815218, 0.3126770258, 0.1718908697, -0.3556835651, -0.0494577251, -0.3413331211, -0.0610718578, -0.0187455397, 0.1171980277, -0.2134622037, 0.1104209274, 0.1844510436, 0.1440458298, -0.1670673788, -0.0719214827, -0.1517760456, 0.304597646, -0.0294001475, -0.229706943, 0.0208938718, -0.3086884618, 0.1870207489, 0.0515802726, 0.2191486955, 0.1520774662, 0.1907953024, -0.1156799346, -0.1989661604, 0.303453505, 0.0597293749, 0.0751619712, 0.1255252063, -0.4011131525, -0.1294814646, 0.1090208218, -0.2078445554, -0.1130266935, -0.2632020414, 0.2298653573, -0.2152015567, 0.0539015681, -0.5561849475, -0.2042219937, -0.016154293, -0.0957034975, 0.0088537075, -0.2448434085, 0.2065392584, -0.2754353285, 0.2436390221, 0.0379975028, -0.3599002361, 0.0196819529, -0.2543710768, -0.2262235284, -0.0632983297, 0.159201026, -0.2863207161, 0.19538486, -0.2295815945, 0.191775918, 0.6380630732, -0.5143752694, -0.4943232834, -0.0183399506, -0.1120874211, -0.0296252184, -0.0569067784, 0.1142122075, -0.1233816743, 0.2207450569, 0.0638165027, 0.1699175239, -0.0314439163, -0.1549662948, -0.2469739169, -0.2476424426, 0.1074164882, 0.161928609, 0.0861111134, -0.3101317585, 0.1939123571, -0.1340431869, 0.0820699036, 0.048897054, 0.0861347988, 0.0410352349, 0.3639852703, 0.0073454715, 0.0412798747, -0.1453770101, -0.2789386809, 0.2334989905, -0.2037812918, 0.0433857366, -0.3181881011, -0.0976252556, -0.3575015664, 0.2770493031, -0.2133727372, 0.081175521, 0.2015094161, -0.1052717417, -0.0017690957, 0.3523833156, -0.0231051892, 0.2652154565, 0.1516367197, 0.1324869841, -0.3389767706, 0.3570480347, -0.3791422546, -0.1911287457, 0.1065429151, 0.101032719, -0.0990491211, 0.0375526361, -0.0400208496, 0.1391091645, 0.086964801, 0.0505162962, -0.029967919, -0.1973222047, 0.1561047286, -0.3874384761, 0.0762953907, 0.141154319, 0.3138978481, 0.0901012719, 0.091934666, 0.1251189858, -0.0571352579, -0.1056848541, 0.0100071728, 0.2146953344, 0.1489286423, 0.1848000586, 0.1219902784, -0.0952658057, 0.1637494564, -0.0575596355, 0.0876647085, -0.0831241906, -0.1441519558, -0.0253731757, 0.4067187309, 0.0275044218, 0.1840657294, 0.0293445662, -0.3974840641, 0.1613837034, 0.237791121, -0.0388256833, 0.3521713614, 0.2281311601, -0.2038652897, -0.0367027447, -0.0257223621, -0.1459669471, 0.1384557784, 0.299179852, 0.3653390408, 0.172117129, 0.2751635909, -0.0793754086, -0.0749898553, -0.2025560141, -0.0662608966, 0.2388170511, -0.1793177128, 0.2328463197, -0.2155470401, -0.2813493907, -0.1677555293, -0.1683678776, -0.0178477205, -0.4374029636, -0.207696259, 0.2531120777, 0.1370601505, 0.1795034111, 0.1891433299, -0.1191044897, 0.0914463848, -0.2401308268, -0.2524133325, -0.3897509575, -0.3771705329, 0.1407493353, 0.3231414258, 0.1610303074, 0.2322369367, -0.1523365527, 0.2447451502, -0.4053625166, -0.4641484022, -0.1996774822, -0.0798342675, 0.3753569424, 0.2712038457, 0.1453299969, -0.2507657111, -0.3088516593, 0.3701546192, 0.0678836331, -0.2780373096, 0.1633878201, -0.110238947, -0.1721235216, 0.0301493853, -0.3643359542, -0.3662020564, -0.4178311825, 0.3031976521, 0.1823400259, -0.1202219576, -0.158327952, 0.2869709432, 0.2404125482, 0.1297007203, -0.0267206505, 0.0517495312, 0.2594491541, 0.5824716687, -0.1134837717, -0.417675972, 0.1986727715, -0.2575909197, 0.2834933102, -0.120212242, -0.4212933183, 0.0007618815, -0.1604905427, 0.6609597206, -0.1991946548, 0.2146901637, 0.1496121436, 0.1904707551, 0.0129404552, -0.0890318677, -0.2557510138, -0.140299499, -0.0363347121, 0.0108380318, 0.0229872391, 0.1207669899, 0.0157047138, 0.5826402307, -0.0225846656, -0.0533315837, 0.2751407623, -0.1212434024, 0.2058861405, 0.0454714075, -0.4002604187, -0.0308186244, -0.1482353061, 0.2534762025, -0.123863779, -0.2759881616, -0.2487931252, -0.3007619977, -0.2217009366, -0.1351770312, -0.2148837447, -0.0007897038, -0.0668299645, 0.0191459544, 0.0608748794, -0.0958221182, -0.1899787486, -0.1774168015, 0.1992025971, -0.012646541, -0.2787074745, 0.0954816937, -0.364117533, -0.4850808382, -0.163860321, 0.312502414, 0.1482525915, 0.1970621198, 0.1409005225, -0.1766302586, 0.0947588608, -0.1950095594, 0.3924500942, 0.0057315975, -0.1782674342, 0.2852144539, 0.2199834883, -0.788054049, -0.2938233018, -0.222715497, 0.023845382, 0.1574358046, 0.0574892238, -0.2375727445, 0.1872514784, 0.0052274875, 0.4398748875, -0.0548216589, 0.0437475443, -0.4539206624, -0.4103516936, -0.3626691103, -0.1204479188, -0.0482042469, 0.3372284174, 0.00389437, 0.0014654472, -0.184218049, -0.1064537615, -0.1629242152, 0.2704039216, 0.2156517655, -0.1212680712, 0.2366352081, -0.1229664981, -0.0786359757, 0.4644384384, 0.4202225804, 0.1237810403, -0.6989773512, -0.1592782289, -0.0817475989, 0.1029515117, -0.2168052047, -0.1642383933, 0.2025847882, 0.0215022378, 0.0443371199, 0.0403112657, 0.0755984187, 0.2012653649, 0.0874472111, -0.0733744204, -0.1510350704, 0.5053038597, 0.2279078215, 0.0496597886, 0.4068602622, 0.0133207832, -0.136424154, 0.0958853215, 0.1526993066, 0.6006855965, -0.0278300084, 0.0508124828, 0.6026000977, -0.3067751527, 0.5539410114, -0.1300065219, 0.0840123445, -0.4649181962, -0.2181677222, 0.0070010722, -0.3166860044, 0.2950650156, -0.3199921548, -0.2508442402, 0.0356391855, -0.2634041607, 0.2071663141, 0.0573788583, 0.1801080406, -0.2765651643, -0.0084586348, -0.1526012123, 0.1460164189, -0.1678943336, 0.1933188289, -0.0696763396, -0.0516185015, -0.4364552498, -0.1682930887, -0.1661469936, 0.0437587947, -0.2752036154, 0.5126560926, 0.1887401491, -0.3083452582, 0.3038027287, 0.3915410042, 0.1575747132, -0.0325703211, -0.0551364943, 0.1062989905, 0.1592919528, -0.2499812096, 0.2163817883, 0.0822426304, 0.2063044012, -0.1870326698, -0.3244165778, 0.530528903, -0.0557477474, -0.0302155614, -0.0245100856, 0.490290761, 0.1098904908, -0.1539047956, -0.091233179, -0.1535332501, 0.070980601, -0.1260725856, 0.1597076356, 0.1015519053, 0.0588009469, 0.4141301513, -0.1115622297, 0.0191840976, -0.0419342369, 0.2632978857, -0.1064586565, 0.1108460352, 0.2457140684, 0.1302166432, -0.3101190031, -0.1941177547, 0.174711138, -0.0625778362, -0.3609367907, 0.0510272011, 0.1442757547, 0.1181771308, -0.2049166411, 0.3655368388, 0.1593820304, -0.116038762, 0.1217262223, -0.3830701411, -0.2565538883, 0.338797152, 0.0037233206, -0.1163123697, 0.3004075885, 0.0813374966, 0.0303027257, -0.0058224369, -0.3074536026, 0.2028248608, -0.3254201114, 0.0115599111, 0.0950659364, 0.0824569166, -0.0308386534, -0.0642865375, 0.1781430244, 0.0478641391, -0.0828660578, -0.2979174852, -0.0692147315, 0.0436687246, -0.0529871844, -0.1559216976, 0.0789400637, -0.2427778244, 0.0613805652, -0.0118204001, -0.0639526397, 0.02448681, -0.1600549072, 0.0814578086, -0.077338323, 0.0409088507, -0.2512695789, 0.2282160968, -0.1928747892, -0.0163539462, -0.0043093748, 0.1892686337, 0.2621605396, 0.142203927, -0.0126649179, -0.1455065906, -0.294657439, -0.0714453533, 0.2462891638, -0.3729650676, 0.0193482041, -0.1245205551, 0.0701196045, 0.4878972769, -0.2644608617, 0.0218163133, 0.3213039339, 0.2248580307, -0.4720916748, -0.3357240558, 0.1608940661, -0.0287916902, -0.0033934638, 0.0460186005, 0.1743440479, -0.0250534341, -0.0399036482, 0.2498088032, 0.1167118251, -0.1551564634, 0.2698940039, 0.4228689075, -0.0452194214, 0.0207456425, 0.2719661891, 0.3008872569, 0.2052324265, 0.3551144302, -0.3248214722, 0.0645564646, -0.0516878404, 0.0377669223, -0.0119699165, -0.3060587943, -0.1069979295, -0.0035317168, -0.1044235528, -0.1902882755, 0.1279561669, 0.4319309294, 0.1319541931, 0.0557389185, 0.0828467607, 0.061717581, -0.1190720797, 0.2964464724, -0.0605187863, -0.1037475839, 0.0912167281, -0.0383051075, 0.1162865758, -0.2087969184, 0.4120827317, 0.2387763858, -0.2003587484, -0.2089630663, 0.2051566839, 0.4049686491, 0.0770314485, -0.1447571516, -0.1308680177, 0.2532718182, -0.1904789507, -0.3400833607, 0.2362890244, 0.5830230713, 0.2580745518, -0.275170505, 0.1093606576, 0.0731222928, -0.1765500456, -0.0219406709, 0.0576350167, 0.1601728648, 0.1368482709, 0.2793980241, 0.2509008944, -0.1937188208, -0.0918073505, 0.1245844439, 0.1629544944, -0.1905060261, 0.1447400749, -0.2970665693, -0.2748734951, -0.0879242346, 0.059749715, -0.2057942599, 0.4084696174, 0.2745127678, 0.2821595371, 0.0049597658, -0.3078814745, 0.1118856817, 0.0549868159, 0.4759661257, 0.2466980219, 0.3976468742, -0.1549990177, -0.1284191012, -0.5016837716, 0.110888496, -0.0524984375, -0.3014683425, 0.003835395, 0.0309390873, -0.0469314344, 0.2556976974, 0.2194000483, -0.0072287358, 0.3248771429, 0.1229474247, -0.3567812741, -0.2917699814, 0.3050168455, -0.2067122459, 0.0295964628, -0.3504011631, 0.1054067463, -0.4134696126, 0.176607579, -0.3590979576, -0.1072510555, 0.2813655436, 0.1146103591, 0.5974833965, -0.0193354562, 0.5290721059, 0.1665180773, 0.1585891843, 0.0253887773, -0.2136000395, -0.1434471309, 0.2446593791, 0.1301643252, 0.23025015, -0.216949001, -0.0975293815, -0.19965294, 0.4094181061, 0.2201500684, 0.1637845635, -0.0218737051, 0.0871206373, -0.0011453331, -0.0236403365, 0.0805427134, 0.0555494204, -0.1418819577, 0.1273857057, -0.3887633383, -0.4281505346, 0.2744397819, -0.2218312621, -0.3107543588, -0.0388695486, 0.0244934671, 0.1010348499, -0.1053964496, -0.3233847022, 0.0116407722, 0.4379052818, -0.0378323644, -0.2044844329, 0.2812790573, 0.1053223908, 0.1228215098, -0.0860600844, 0.3797078729, -0.0952711925, -0.1166139096, 0.0315258503, -0.1509279311 ]
https://github.com/huggingface/datasets/issues/2677
Error when downloading C4
Hi Thanks for reporting ! It looks like these files are not correctly reported in the list of expected files to download, let me fix that ;)
Hi, I am trying to download `en` corpus from C4 dataset. However, I get an error caused by validation files download (see image). My code is very primitive: `datasets.load_dataset('c4', 'en')` Is this a bug or do I have some configurations missing on my server? Thanks! <img width="1014" alt="Снимок экрана 2021-07-20 в 11 37 17" src="https://user-images.githubusercontent.com/36672861/126289448-6e0db402-5f3f-485a-bf74-eb6e0271fc25.png">
27
Error when downloading C4 Hi, I am trying to download `en` corpus from C4 dataset. However, I get an error caused by validation files download (see image). My code is very primitive: `datasets.load_dataset('c4', 'en')` Is this a bug or do I have some configurations missing on my server? Thanks! <img width="1014" alt="Снимок экрана 2021-07-20 в 11 37 17" src="https://user-images.githubusercontent.com/36672861/126289448-6e0db402-5f3f-485a-bf74-eb6e0271fc25.png"> Hi Thanks for reporting ! It looks like these files are not correctly reported in the list of expected files to download, let me fix that ;)
[ 0.0968456864, -0.0686113611, -0.053906925, 0.4750130177, 0.2311238945, 0.2395801842, 0.0058163237, 0.1676318944, -0.0170364641, -0.1058177575, -0.0259849541, -0.2992730141, 0.1618456095, -0.0318009667, 0.0029826164, -0.1193321198, 0.1358549595, 0.0848611891, -0.1391200274, -0.3514161408, -0.1153827831, 0.0911918357, -0.148410812, 0.1158548892, -0.026407361, -0.0274938848, 0.0056614578, 0.0816004127, -0.3496822417, -0.3620359302, 0.5557942986, 0.1042392254, 0.1785734296, 0.0744808763, -0.0001167735, -0.1865386069, 0.3024598956, -0.3341217041, -0.1340887994, -0.1216314957, -0.3307468593, -0.2062898278, -0.2419672012, -0.3494561911, -0.044258371, -0.1409954131, 0.1553079188, -0.119693622, 0.0351108089, 0.4630730152, 0.1809931993, -0.1043736711, 0.0083732903, -0.1809170693, -0.092560865, 0.0102553815, 0.0669600815, 0.1523746252, 0.1125923023, 0.295471251, 0.3457048535, 0.1438505054, 0.0234141573, -0.0461738631, 0.2648059428, -0.1932270825, 0.1687988192, -0.3840816021, 0.3017908037, 0.2715111971, 0.9384883046, -0.1433072984, -0.1691135466, 0.2467643768, 0.1892969906, -0.1855991781, 0.2946262062, 0.6772627831, -0.0679938868, 0.1251316667, -0.3260813951, -0.1865653843, -0.1197461411, 0.2777042389, -0.1292817891, -0.2179444432, 0.0771924853, -0.051842317, 0.1002985984, 0.2046856731, 0.0032097884, -0.4079836309, -0.1779826581, 0.2119582444, -0.1153170764, 0.0007462502, -0.4127677381, 0.3904473782, -0.088083595, -0.0488233157, -0.244331196, -0.0720181018, -0.1606345773, 0.0810395032, 0.1806422919, -0.0447045788, 0.136890322, 0.1567290276, 0.0802777931, -0.1490299553, 0.154566288, -0.0944328085, -0.1808453202, -0.3186022639, -0.0616498925, 0.2068342716, -0.1288012564, -0.4318061471, -0.229842186, 0.2312494963, -0.311958313, 0.0769577101, -0.1125139594, 0.4242171049, -0.4325268865, -0.0528690964, -0.081588842, 0.1484345645, -0.0591341555, -0.5108193159, -0.1177362949, 0.0567054749, -0.2883008122, -0.2188449204, 0.2805015445, -0.5110836029, 0.2950261235, 0.0521378592, 0.1721795201, -0.1180119216, -0.0835565627, -0.3251757026, 0.0874160901, 0.2726626396, -0.1362611651, 0.1245288923, 0.2622082829, -0.2980206907, 0.0288887024, -0.0410170816, -0.350358367, -0.1204099655, -0.1634518355, 0.1190707684, -0.2125157416, -0.0093939556, -0.3496472239, -0.2559761107, 0.2443346679, -0.0921488628, 0.1594804525, -0.3166211247, 0.0317739025, -0.1681561321, -0.0448281281, 0.3502220809, -0.3620437384, 0.0180543736, -0.0329126939, -0.1109363884, 0.3610638678, 0.201071322, -0.1729787588, 0.3088463843, -0.2813075781, 0.254906863, 0.0488996394, -0.54295367, -0.4550851583, 0.2392612547, 0.1014865786, -0.0787604824, -0.2260330468, -0.0706490651, 0.3881841898, -0.1845714152, -0.0514269769, 0.0685293674, 0.0910030678, 0.0454453081, -0.1369255483, 0.0582369119, 0.1933751702, -0.0361913182, 0.2007422894, -0.0915704891, 0.2835775316, -0.1294594109, 0.2464188188, -0.1903019249, 0.1727259457, 0.2742316127, 0.1823208183, -0.1228114888, 0.1321308315, 0.3525637686, -0.403190136, 0.1628525257, -0.043869067, -0.0001489543, -0.0202082992, 0.0030593053, -0.2633753419, -0.1960608065, -0.2828921676, -0.0816286281, 0.0295655988, -0.1728114784, 0.0364454463, 0.1513744593, 0.1686383784, 0.5813817382, -0.2374357283, 0.073222965, 0.1647721678, 0.3052453399, -0.1146176681, 0.3243876696, 0.0605077744, -0.1976236701, 0.3011147976, -0.1183041558, -0.1741784066, 0.1802291572, 0.2748379111, 0.2119432986, -0.3257675767, 0.0051279962, 0.4052172303, -0.3786324859, 0.1828552634, 0.4098117352, 0.1813716143, -0.0424861759, 0.0105127096, -0.0025696903, -0.089801088, -0.218642354, 0.0273649693, 0.1081602722, 0.3547262251, -0.0161222965, -0.2691574097, -0.164005816, 0.3425189555, -0.2733925581, 0.0401487499, -0.0079943463, -0.1774643213, -0.3209864795, 0.4895765483, 0.0607111081, -0.0399632417, 0.1609403193, -0.0280324444, 0.0574852824, 0.3541270196, 0.2005565166, 0.5117334127, -0.0272197202, -0.2033051401, 0.2647412717, 0.1374893934, -0.1859333366, 0.3109610677, -0.2197512984, 0.1099894568, 0.186285913, -0.0879821479, -0.1205742955, -0.3998789191, 0.1504885852, 0.318018496, 0.0884107351, -0.3093163967, 0.128546536, -0.4081653059, -0.2306697518, -0.2915101647, -0.138284117, -0.0635016635, 0.0557819083, 0.0039454326, -0.1081700921, -0.1405950636, -0.0048357062, -0.6207511425, -0.0432008207, -0.0407777205, -0.1709546298, 0.0394607186, 0.257370621, -0.2351538688, 0.0094773583, 0.1098938733, 0.0883891433, 0.3553430438, -0.398442477, 0.2627771199, -0.3834376037, -0.2011984289, 0.2526564002, 0.0835285485, -0.1793438196, -0.0235760771, 0.276411742, -0.33039698, -0.1471963525, -0.0817752928, 0.0593430698, -0.1593546569, 0.1985169053, 0.0402036309, -0.1698153913, -0.1646369398, -0.5502983332, -0.4189042449, -0.0854859203, -0.1607698798, -0.1752343476, 0.0396213867, 0.4361679256, 0.018225655, -0.0780424327, 0.109033227, -0.1596164405, -0.2542776763, -0.1209908128, 0.4298147261, -0.2539363801, -0.5836590528, 0.1029920802, 0.0107238442, 0.1744453758, 0.3262533545, -0.3350967169, 0.3499171138, 0.1039253622, 0.0213263556, 0.0253068674, -0.2157394737, 0.3457695544, -0.2229927033, 0.1244463995, -0.1363959908, 0.2712990046, 0.1059966832, 0.2097370178, 0.5329781175, -0.4421274066, -0.030273743, 0.153864339, 0.2319274843, 0.1277964413, -0.2935445905, 0.5387865305, 0.2865953743, 0.3581416309, 0.2793965638, -0.3494909704, 0.3341583908, -0.2343038917, -0.0606029928, 0.3306903243, -0.1923256367, -0.320566833, -0.1543570459, 0.1352217346, -0.3458193243, -0.125665158, -0.0995992497, -0.0232363064, 0.3672540188, 0.3243449032, 0.386877656, 0.2190695405, -0.2529467642, 0.0879828557, 0.3665082753, 0.192277804, 0.1218930259, -0.1594341099, -0.238546446, -0.013744548, 0.269002825, 0.3512969911, 0.1429187953, 0.0086922944, 0.3366684914, -0.0169544853, 0.0273884274, 0.5130412579, -0.3365210891, 0.1041380912, -0.1199324355, 0.3165085912, -0.191299051, -0.2906213403, -0.1121695414, 0.0052342117, 0.2563717961, 0.26475811, -0.3294280767, 0.1596471667, -0.1577945948, 0.3297686875, -0.0717082918, -0.3489950895, -0.1800929904, -0.3787818551, -0.2861403823, 0.2097585499, 0.0344527215, 0.1097161248, -0.2521626651, 0.0800890252, 0.1153601259, 0.4076036811, 0.1858724654, 0.0648534745, 0.2890301347, 0.0751472116, -0.0058171451, -0.0153914448, 0.0391468182, 0.7092399597, 0.366101861, -0.1685134172, -0.2802569866, -0.1138136759, -0.2125696242, 0.1873966306, 0.1063669324, 0.0132568143, -0.182578817, 0.2383497804, -0.2654719055, 0.075249508, 0.3841482103, 0.1735219955, -0.0579017811, -0.6417625546, -0.4279422462, 0.027173413, -0.1657633781, 0.0767466724, 0.1531161368, 0.2185258865, -0.1480733156, -0.254413873, 0.28184852, 0.8829852343, 0.1032864675, -0.1745403558, -0.0468319915, -0.1570566595, 0.1641248912, -0.6999186277, 0.063492462, -0.2291502804, -0.4758972526, -0.2166135758, -0.1454949677, 0.308732301, 0.4803789854, -0.2660745084, 0.326746434, 0.1208247989, 0.2696652412, 0.095634371, 0.1172956228, 0.0867618024, -0.2291981429, -0.3270391524, 0.1372854859, -0.2278524488, 0.3816148043, -0.3304395676, -0.0874115974, -0.0354943946, -0.3432798982, -0.2652932703, 0.3194361329, 0.0433424339, 0.0522042066, 0.0054625235, -0.0803296864, 0.3363475204, 0.3796256483, 0.3059650064, 0.5810824037, -0.1137594581, 0.0904680341, 0.0829672962, -0.2140106559, -0.0017039366, -0.1863299161, 0.0727232769, -0.2209592909, -0.1637432426, 0.1252417862, 0.0256801508, -0.1554331779, 0.3542510867, -0.0052306559, -0.3836029172, -0.0485263951, -0.318536818, 0.0018293336, 0.0806472823, 0.074163191, 0.0542365909, 0.0092407642, -0.0484005064, 0.2165421695, 0.2888495028, -0.2738631368, -0.1093747467, 0.4820820689, 0.0069065746, -0.422578305, 0.3957422674, 0.0692844391, -0.2859169543, -0.2346081585, -0.2766028941, -0.3226011097, -0.4378266931, -0.2122823596, -0.1211903095, 0.2519949973, -0.350102365, 0.2291532457, 0.1092434525, -0.0886002108, 0.3342334628, -0.4625101686, -0.1260690689, 0.0029641874, -0.1780200601, -0.0232611801, 0.1158495545, -0.0608185455, 0.1773512214, 0.0480650291, -0.2034521103, 0.029551357, -0.2206770182, 0.0934602767, 0.1844987869, 0.029180197, -0.014967449, -0.272875607, 0.010682594, 0.2006675005, -0.1280091405, -0.1032632813, -0.0436156467, 0.1919802725, 0.1563543081, 0.0032913201, 0.3131914437, -0.2257287502, -0.1605041325, -0.0429566503, -0.048574578, 0.2598896027, -0.0353707559, 0.2518924475, 0.2516216338, 0.1158089489, -0.2370555103, 0.0919010639, 0.1132132635, 0.4768446088, -0.0105120689, 0.0880642235, 0.1420781761, 0.0484817773, -0.2334059626, 0.0994984359, 0.2594976723, -0.0611052662, 0.3047935367, -0.3842672408, 0.4487790465, 0.1527720839, 0.025996305, 0.2158565521, -0.2095500231, -0.0445937291, 0.4983430505, 0.1671550572, -0.2295721173, -0.0541868433, 0.1648523211, 0.2072170377, -0.2720636427, -0.0493466258, 0.199511826, -0.328979671, 0.2600115538, 0.0632016212, 0.3941884637, 0.0066071805, 0.2652602494, 0.4170492291, -0.0522827208, 0.1995482743, 0.0526962876, -0.1364828199, -0.1017279327, 0.1311134249, 0.1044997871, -0.2310552001, 0.3705917299, 0.2657862902, 0.0234882236, -0.4831439555, -0.046782203, 0.3182041645, -0.0425551645, 0.1746275872, 0.4242461026, -0.1332387179, 0.3142974973, -0.1972237825, -0.8147056103, 0.2134568989, -0.1136611104, 0.2533870339, -0.0570817813, -0.235496223, 0.1878345311, 0.3116334379, -0.1242857426, -0.0830524266, 0.1101039052, 0.3088501096, -0.2186731994, -0.2400930524, 0.2889840603, 0.027846653, 0.0292522646, -0.2123585492, 0.231757462, 0.2056276351, 0.0963568166, 0.1508678645, 0.0168427285, 0.21875754, 0.3880804777, 0.228781566, 0.0126237907, 0.014551267, -0.0118372887, 0.1728639454, 0.5091123581, 0.4928583503, 0.1775872111, 0.3632195592, 0.0782717168, -0.0588837937, 0.1305730194, 0.0597457737, 0.1148813963, -0.1486169696, 0.2104654759, -0.0780472532, 0.0869632438, -0.3805336654, -0.0649958849, -0.2805468142, 0.3111963272, 0.5664165616, -0.0162147246, 0.1151909977, -0.128165558, 0.0291567184, -0.1101015359, 0.3644055724, 0.218244195, 0.4985846877, -0.3034205735, -0.2396451235, -0.6170099974, 0.3663159013, -0.3759623766, 0.236592412, -0.1307975799, -0.0122162662, 0.3323754072, 0.3707734346, -0.0665931106, 0.3085781336, 0.1430299282, 0.4748999178, -0.0532182716, -0.0703134537, 0.2046023905, 0.0699489191, -0.1227094308, -0.4148938358, 0.0504750349, -0.1069609523, 0.0798350051, -0.1807255596, -0.0365895554, -0.0613415241, 0.2318531275, 0.3578614891, 0.1050799489, 0.8830099702, -0.0567260534, -0.0103404894, -0.0094701443, 0.0541440211, -0.1428788006, 0.2769041359, 0.0209861062, 0.1057198644, 0.0254504457, 0.0194996111, -0.1232583448, 0.4462437928, 0.1924269646, 0.1385372132, -0.3047608137, -0.2555624843, -0.3660923243, -0.2397818565, -0.0890366808, -0.1024264991, -0.0129796527, -0.0846839473, 0.0473411828, -0.4045794606, 0.5043486357, -0.5797142982, -0.1596445143, -0.0519166999, 0.1902922094, -0.0386943594, -0.1701985896, -0.1726158559, 0.2493826449, 0.3882629275, -0.2096814215, -0.278716445, -0.0153387748, 0.0080336779, -0.0208507255, -0.0517168567, 0.7078830004, 0.0515539683, -0.4494345784, -0.1627371907, -0.408948034 ]
https://github.com/huggingface/datasets/issues/2677
Error when downloading C4
Alright this is fixed now. We'll do a new release soon to make the fix available. In the meantime feel free to simply pass `ignore_verifications=True` to `load_dataset` to skip this error
Hi, I am trying to download `en` corpus from C4 dataset. However, I get an error caused by validation files download (see image). My code is very primitive: `datasets.load_dataset('c4', 'en')` Is this a bug or do I have some configurations missing on my server? Thanks! <img width="1014" alt="Снимок экрана 2021-07-20 в 11 37 17" src="https://user-images.githubusercontent.com/36672861/126289448-6e0db402-5f3f-485a-bf74-eb6e0271fc25.png">
31
Error when downloading C4 Hi, I am trying to download `en` corpus from C4 dataset. However, I get an error caused by validation files download (see image). My code is very primitive: `datasets.load_dataset('c4', 'en')` Is this a bug or do I have some configurations missing on my server? Thanks! <img width="1014" alt="Снимок экрана 2021-07-20 в 11 37 17" src="https://user-images.githubusercontent.com/36672861/126289448-6e0db402-5f3f-485a-bf74-eb6e0271fc25.png"> Alright this is fixed now. We'll do a new release soon to make the fix available. In the meantime feel free to simply pass `ignore_verifications=True` to `load_dataset` to skip this error
[ 0.0360016599, -0.0390105695, -0.0446486734, 0.4204435349, 0.2243453711, 0.2426010221, -0.0268923044, 0.1530847847, -0.067271091, -0.0291625112, 0.0164736211, -0.2508125305, 0.1566775292, 0.0499307066, 0.0004603267, -0.0572997704, 0.1233928949, 0.0768574625, -0.1300052106, -0.2965221107, -0.1279533058, 0.0637141913, -0.1454873979, 0.0978287756, -0.0157248415, 0.0041987151, -0.0361221693, 0.1128532737, -0.3306387365, -0.4125274122, 0.5867496729, 0.0864503682, 0.2514699399, 0.0607932359, -0.0001131244, -0.1866178662, 0.3207840323, -0.2820207477, -0.1749012321, -0.1334162205, -0.3252376914, -0.1429715157, -0.2270389944, -0.3486926258, -0.0586524382, -0.0870726332, 0.1525994092, -0.1404470056, 0.0293263476, 0.3692459166, 0.2102141976, -0.1186658442, 0.03421022, -0.2088637054, -0.1466710269, -0.0970333144, 0.0677080229, 0.1624718904, 0.136818096, 0.2822681367, 0.3550721407, 0.2087816149, -0.0417193025, -0.0173643827, 0.3091591597, -0.2235090435, 0.2251719981, -0.3702124655, 0.3360902071, 0.2796585262, 0.9650493264, -0.1046359539, -0.1588133126, 0.2854288816, 0.2251125276, -0.1731425673, 0.3463103473, 0.625492394, -0.0934757814, 0.1446558237, -0.3239200711, -0.2792813778, -0.1134177968, 0.2988193631, -0.1196647212, -0.1817186028, 0.1240484715, -0.034456607, 0.1894724965, 0.2115550041, 0.0512722246, -0.3572790027, -0.2294225395, 0.2440079302, -0.1396594048, -0.0109471381, -0.3934451342, 0.4090084136, -0.1072906256, -0.0308373123, -0.307985127, -0.0492991544, -0.1120641977, 0.0944596529, 0.2030058056, -0.0697779357, 0.1198691577, 0.1149194539, 0.1016230509, -0.152977705, 0.2040787041, -0.0545776859, -0.1837909818, -0.353022337, -0.0942233205, 0.1558488607, -0.1233039349, -0.3783268631, -0.1654171348, 0.1764021814, -0.3575053215, 0.1171477661, -0.1370216906, 0.4213329554, -0.3903787136, -0.0504912697, -0.0359503999, 0.1107079834, -0.112052232, -0.5132816434, -0.1210588068, 0.0789469928, -0.2682028115, -0.2268251479, 0.2764567733, -0.5189316869, 0.2074767947, 0.0441432111, 0.1534958482, -0.0671437532, -0.0873307437, -0.28240484, 0.0264251754, 0.2698510289, -0.1203038022, 0.070677653, 0.2335551083, -0.3244761825, 0.012957409, 0.0130956862, -0.3358468711, -0.1569311619, -0.2096268386, 0.1417195797, -0.1472775042, -0.0375683233, -0.3525380492, -0.2765511274, 0.2389995456, -0.0917323604, 0.1340074539, -0.289519012, -0.0120520145, -0.1646083891, -0.0726771504, 0.3515326083, -0.3475584984, 0.022401914, -0.0633132309, -0.0984155983, 0.3028383255, 0.1756017804, -0.1984318793, 0.2672306299, -0.2671558261, 0.2501600385, -0.013776958, -0.5401051641, -0.509370923, 0.2695917189, 0.0551131368, -0.0686936378, -0.2188578099, -0.0355274193, 0.3348935544, -0.1923199743, 0.0134163005, 0.1395022422, 0.0648256242, 0.0564677492, -0.1089970917, -0.0176784322, 0.223435998, -0.0455379263, 0.215885371, -0.0558995232, 0.2599471211, -0.0973493904, 0.2286311835, -0.233747676, 0.1718613505, 0.3047978282, 0.2269141376, -0.1765137166, 0.0588295609, 0.3398593962, -0.4050037563, 0.2001461238, 0.0163849592, 0.0992063209, -0.0325785577, -0.0069132447, -0.194969207, -0.1770458817, -0.2826219797, -0.0993851125, 0.0356474444, -0.2061427534, 0.0358738303, 0.1314907968, 0.1909255683, 0.5959509611, -0.2169482261, 0.07948149, 0.1361020207, 0.2638707757, -0.1812297404, 0.3510237932, 0.022807613, -0.1756058037, 0.2562204897, -0.1429302841, -0.152805075, 0.2349881232, 0.2168684602, 0.2181943059, -0.3224677444, -0.0151660144, 0.3912172019, -0.3939548731, 0.1423126608, 0.3844941258, 0.2187796533, -0.0160032138, 0.0914727673, -0.0463532954, -0.1119233072, -0.2208693027, 0.0427726582, 0.0983947441, 0.3558833003, 0.0020106286, -0.2500752807, -0.152053833, 0.3440112472, -0.3176957965, -0.0068035796, -0.0388011225, -0.1095327288, -0.3359956145, 0.4060758054, 0.0946511999, -0.0373950824, 0.1653103679, -0.0237268135, 0.0274254754, 0.3157752454, 0.2485591173, 0.447175473, -0.0136000942, -0.2143897414, 0.2998839617, 0.1573821604, -0.1602236032, 0.348822087, -0.2297732085, 0.1348235309, 0.0508121215, -0.1089660674, -0.0918366686, -0.3125113845, 0.1166943014, 0.3133603334, 0.1552190483, -0.2792724669, 0.13187626, -0.4109159708, -0.2489749342, -0.1848032176, -0.185015142, -0.0852531344, 0.0458246768, -0.0152914906, -0.0633324385, -0.1338994801, -0.0200536307, -0.5972525477, -0.0605823994, -0.0365188755, -0.2365611196, 0.0650055259, 0.169526726, -0.2182221562, 0.0348356292, 0.1568023562, 0.0094865672, 0.3665181696, -0.3867037296, 0.2242772579, -0.3541081548, -0.2343885303, 0.2437727451, 0.0588887632, -0.1631189436, -0.0350463204, 0.271633625, -0.3771986663, -0.1262652576, -0.1053926125, 0.0165896937, -0.164207384, 0.2119748592, 0.1110272259, -0.1994581968, -0.175201714, -0.5475432277, -0.4019846618, -0.0843535587, -0.1555342376, -0.1761150658, 0.0200413987, 0.4436433613, 0.0465705097, -0.0550639145, 0.1353531331, -0.2508655787, -0.304204762, -0.1063303053, 0.3193991482, -0.2624069154, -0.5575560331, 0.15953058, 0.0274065435, 0.1751668453, 0.31577003, -0.3637109697, 0.3887699842, 0.0978396758, 0.1054477617, -0.0301316902, -0.2219377905, 0.4351091981, -0.2020962238, 0.0946490243, -0.0956714228, 0.2763973475, 0.0846993849, 0.1521804929, 0.5275927782, -0.4281854033, -0.0382150486, 0.1636307836, 0.1768323481, 0.0551304966, -0.2453256845, 0.5363040566, 0.2724507451, 0.3966635168, 0.2414666414, -0.3665802181, 0.3376543224, -0.2462869138, -0.0973269343, 0.3054599762, -0.2202028185, -0.3122651577, -0.2184072435, 0.0671336055, -0.2943168581, -0.1775605083, -0.1228684038, -0.0551592857, 0.3067913055, 0.3584987521, 0.3822776377, 0.234503597, -0.2700300813, 0.0280067511, 0.3280118704, 0.1204862967, 0.1090977862, -0.1994672716, -0.2411129773, -0.0692342222, 0.32821697, 0.3817485571, 0.1986069679, 0.0327288881, 0.3442438841, -0.0016993769, -0.0023001842, 0.5099654794, -0.2901913822, 0.1360225081, -0.1347067952, 0.2955148518, -0.2025737464, -0.2343926281, -0.0494215749, 0.0251400582, 0.29786098, 0.2174989283, -0.2798976898, 0.1700638533, -0.1417284608, 0.3046316504, -0.0283362567, -0.3298506737, -0.1842496246, -0.3711109459, -0.3130016327, 0.2186619043, 0.0056447908, 0.1686591506, -0.2048043609, 0.1331519485, 0.069401294, 0.4012479782, 0.1360419393, 0.0466868579, 0.2689104676, 0.0711446777, -0.0031646937, -0.0124651985, 0.0292656701, 0.7025737762, 0.3302224278, -0.1346911639, -0.2716222405, -0.1439028382, -0.1244867593, 0.1391992569, 0.1108241603, 0.016813986, -0.1897697151, 0.2859244347, -0.2699913979, 0.0322893709, 0.2813587189, 0.1306810677, -0.0307326447, -0.632024765, -0.4210797846, 0.0609078407, -0.1813699305, 0.0958570838, 0.1489225775, 0.2680441737, -0.1285711825, -0.2174447924, 0.2188284099, 0.8750143647, 0.1290870905, -0.1301252842, -0.0264669787, -0.0886053219, 0.2163761109, -0.6644522548, 0.1195860505, -0.2256654054, -0.39124915, -0.2204610109, -0.1284363121, 0.3262506127, 0.4141199589, -0.2569350898, 0.3033986092, 0.0509971082, 0.2380169332, 0.0988603011, 0.0886772275, 0.0070955176, -0.2492575347, -0.2533773482, 0.1659845114, -0.2577990294, 0.3493566215, -0.3405811787, -0.0519937798, -0.0479629077, -0.3674955368, -0.308283478, 0.3698099256, 0.026316531, 0.1083762795, 0.0024818555, -0.0061475337, 0.3616021872, 0.3097479045, 0.3440254927, 0.5899111032, -0.1518325657, 0.1053578556, 0.0975244343, -0.2661137283, 0.0407295264, -0.2164761573, 0.1155542284, -0.1921957135, -0.2545381188, 0.1187406182, 0.039211683, -0.2071430683, 0.4058916569, 0.0351622589, -0.3002878129, 0.0039733276, -0.3729742467, 0.009060448, 0.117694959, 0.03169287, 0.0888120979, -0.0114985928, -0.0897940695, 0.1707095504, 0.301586628, -0.2777347267, -0.0811749324, 0.5380645394, -0.0165196713, -0.436306119, 0.4067168832, 0.0910998061, -0.2650632262, -0.2602671981, -0.2303225398, -0.359916687, -0.3782094419, -0.2318968326, -0.0780701041, 0.2442932576, -0.3475923836, 0.2121430635, 0.0534669235, -0.0326718949, 0.366810292, -0.4717724323, -0.1038793772, -0.0051593743, -0.2411712557, -0.0263198093, 0.1795349717, 0.0173056275, 0.1448741555, 0.0666744784, -0.2324115932, 0.0188775212, -0.2115798146, 0.0607995316, 0.2579635084, 0.0157743394, 0.0331679657, -0.3173062205, 0.0562631488, 0.2354157567, -0.1383287907, -0.1442531049, -0.0435433164, 0.1712250113, 0.1415523142, -0.0547131076, 0.3798899651, -0.2556414604, -0.182508871, -0.004794687, -0.0285684019, 0.3092055321, -0.0480013639, 0.1978422701, 0.231590718, 0.1624957323, -0.2306027859, 0.1384638101, 0.0822306275, 0.4809701145, -0.0767592713, 0.0964097008, 0.0872659534, 0.0559792966, -0.252145946, 0.0656086728, 0.2322046161, -0.0088383555, 0.2820624709, -0.4166627824, 0.4334473014, 0.1091429666, -0.0127713941, 0.2232512534, -0.2425815761, -0.1063715667, 0.5650660992, 0.1957123727, -0.2459315062, -0.0448809527, 0.1090831831, 0.1616181135, -0.2950552702, -0.0200719386, 0.1439014673, -0.3322835863, 0.179962188, 0.062788792, 0.350089252, -0.0705463588, 0.2851706147, 0.4285669625, -0.112406522, 0.158018291, 0.0175328944, -0.0901255682, -0.0449873321, 0.1519815028, 0.0207848772, -0.285587281, 0.3917181492, 0.3113310635, -0.0392869934, -0.5306158066, -0.0169721581, 0.333750248, -0.0573569797, 0.1362056583, 0.401350081, -0.1384161711, 0.2527983785, -0.1455339044, -0.7807797194, 0.2933783531, -0.1241621673, 0.1993798465, 0.0447946563, -0.1824665368, 0.1992429793, 0.2737719417, -0.1125889868, -0.1241296828, 0.0894682407, 0.3351044953, -0.2027256638, -0.2588583827, 0.2589486837, 0.0043812497, -0.0228769369, -0.220495984, 0.1967337728, 0.161319375, 0.1165979877, 0.1213729978, 0.0278688949, 0.2811054289, 0.3800272048, 0.1551164836, 0.0051990375, -0.0512982085, 0.0308092311, 0.2106674314, 0.4682569206, 0.5239809752, 0.1957228035, 0.347448498, 0.080840148, -0.0617093742, 0.1058762297, 0.0885477811, 0.1906840652, -0.1326034069, 0.218870163, -0.0792562217, 0.1500310004, -0.4193204045, 0.0314085968, -0.2548203468, 0.3473963737, 0.531404376, -0.0558547899, 0.1173988283, -0.1215581149, 0.0454473533, -0.0932246223, 0.3865908384, 0.2400591671, 0.4453106225, -0.2861809134, -0.1872859299, -0.6304115653, 0.3185947239, -0.3895477653, 0.1897369027, -0.138248086, 0.0208086446, 0.3115710914, 0.3615576923, -0.1307063103, 0.3410049081, 0.1538966447, 0.4440057278, -0.0241617188, -0.047954198, 0.2248768508, 0.0106656794, -0.1028804556, -0.4751066864, 0.030056648, -0.1046133935, 0.0870180055, -0.1508562416, -0.0130430982, -0.0212867372, 0.1397135407, 0.4028869271, 0.0827021003, 0.8158760071, -0.0312416777, -0.0269633494, -0.0647722185, 0.0436935462, -0.1682125628, 0.2752508819, 0.0953678787, 0.0657409504, -0.0277015045, 0.0265628509, -0.1445898861, 0.4608068764, 0.1300289631, 0.1649177372, -0.3377994001, -0.2344681323, -0.3548513055, -0.1299702227, -0.1278646886, -0.0809604153, -0.0189348273, -0.0265215784, 0.0469351113, -0.40277192, 0.5305595398, -0.5888617635, -0.1571630239, -0.0297350995, 0.1984485984, -0.0414129682, -0.2330595702, -0.1098872423, 0.2802364826, 0.3407000005, -0.117264241, -0.2922649682, 0.0082281344, -0.0437998697, 0.0204544514, -0.0709813386, 0.7276519537, 0.0326759554, -0.4151465893, -0.1617052853, -0.3914834559 ]
https://github.com/huggingface/datasets/issues/2669
Metric kwargs are not passed to underlying external metric f1_score
Hi @BramVanroy, thanks for reporting. First, note that `"min"` is not an allowed value for `average`. According to scikit-learn [documentation](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html), `average` can only take the values: `{"micro", "macro", "samples", "weighted", "binary"} or None, default="binary"`. Second, you should take into account that all additional metric-specific argument should be passed in the method `compute` (and not in the method `load_metric`). You can find more information in our documentation: https://huggingface.co/docs/datasets/using_metrics.html#computing-the-metric-scores So for example, if you would like to calculate the macro-averaged F1 score, you should use: ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True) f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute(average="macro") ```
## Describe the bug When I want to use F1 score with average="min", this keyword argument does not seem to be passed through to the underlying sklearn metric. This is evident because [sklearn](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html) throws an error telling me so. ## Steps to reproduce the bug ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True, average="min") f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute() ``` ## Expected results No error, because `average="min"` should be passed correctly to f1_score in sklearn. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\datasets\metric.py", line 402, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "C:\Users\bramv\.cache\huggingface\modules\datasets_modules\metrics\f1\82177930a325d4c28342bba0f116d73f6d92fb0c44cd67be32a07c1262b61cfe\f1.py", line 97, in _compute "f1": f1_score( File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1071, in f1_score return fbeta_score(y_true, y_pred, beta=1, labels=labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1195, in fbeta_score _, _, f, _ = precision_recall_fscore_support(y_true, y_pred, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1464, in precision_recall_fscore_support labels = _check_set_wise_labels(y_true, y_pred, average, labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1294, in _check_set_wise_labels raise ValueError("Target is %s but average='binary'. Please " ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted']. ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.9.2 - PyArrow version: 4.0.1
96
Metric kwargs are not passed to underlying external metric f1_score ## Describe the bug When I want to use F1 score with average="min", this keyword argument does not seem to be passed through to the underlying sklearn metric. This is evident because [sklearn](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html) throws an error telling me so. ## Steps to reproduce the bug ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True, average="min") f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute() ``` ## Expected results No error, because `average="min"` should be passed correctly to f1_score in sklearn. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\datasets\metric.py", line 402, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "C:\Users\bramv\.cache\huggingface\modules\datasets_modules\metrics\f1\82177930a325d4c28342bba0f116d73f6d92fb0c44cd67be32a07c1262b61cfe\f1.py", line 97, in _compute "f1": f1_score( File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1071, in f1_score return fbeta_score(y_true, y_pred, beta=1, labels=labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1195, in fbeta_score _, _, f, _ = precision_recall_fscore_support(y_true, y_pred, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1464, in precision_recall_fscore_support labels = _check_set_wise_labels(y_true, y_pred, average, labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1294, in _check_set_wise_labels raise ValueError("Target is %s but average='binary'. Please " ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted']. ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.9.2 - PyArrow version: 4.0.1 Hi @BramVanroy, thanks for reporting. First, note that `"min"` is not an allowed value for `average`. According to scikit-learn [documentation](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html), `average` can only take the values: `{"micro", "macro", "samples", "weighted", "binary"} or None, default="binary"`. Second, you should take into account that all additional metric-specific argument should be passed in the method `compute` (and not in the method `load_metric`). You can find more information in our documentation: https://huggingface.co/docs/datasets/using_metrics.html#computing-the-metric-scores So for example, if you would like to calculate the macro-averaged F1 score, you should use: ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True) f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute(average="macro") ```
[ -0.0516289249, -0.5501687527, 0.0873142257, 0.2038567066, 0.4681910276, -0.0643794686, 0.1748597473, -0.1953884065, 0.3451758623, 0.282897383, 0.067913413, 0.4462167025, 0.1783717573, 0.0242550001, -0.0182034075, 0.0616981536, 0.105803974, -0.3587127328, -0.0846230909, -0.2987219393, -0.4068837762, 0.0102045704, -0.4048626423, 0.0202551708, -0.2006225288, 0.0613630861, -0.034785226, -0.1700368226, 0.0016801096, -0.0039012395, 0.3077564836, 0.1265652329, -0.0970671996, 0.3663868904, -0.0001235781, -0.0986131802, 0.4526260197, -0.1368987411, -0.0371829867, -0.0111097619, -0.176451385, 0.0147763491, -0.1244777441, -0.3509167433, 0.1918559372, 0.1058517694, -0.1739185452, -0.3824931681, 0.2338169068, 0.3685025871, 0.0636829585, 0.1573849469, -0.2092082798, -0.1720216274, -0.2959969938, -0.1044454649, -0.1850387454, 0.4786296189, -0.6841749549, -0.0733040273, -0.1676171422, 0.0917700827, 0.1501627862, -0.012652277, 0.7468225956, 0.0399316959, 0.3019663692, 0.1136630699, 0.179210037, -0.1155982763, 0.0679366589, -0.386957258, -0.4035750628, -0.1462422311, 0.0940087438, -0.7693843842, 0.107782878, 0.0144160576, -0.2267363071, -0.0929724127, -0.1046826988, -0.1168837994, -0.3561751246, 0.0764990598, -0.0503033474, 0.6123210788, 0.0015165657, 0.0829184204, 0.1927201301, 0.1838296056, 0.0406337641, -0.2930776775, 0.0284067988, 0.0716913864, -0.263173908, 0.2108207643, -0.0395301618, -0.0636173263, 0.2793687284, 0.0515010729, -0.0760852918, 0.0437830165, 0.4305032492, 0.0532586761, 0.1974087358, 0.5313013792, 0.4781779051, 0.3300953507, -0.0164005365, 0.0775586814, -0.1973582208, -0.2480200976, 0.271512568, -0.0058644116, 0.249512136, 0.1664948463, 0.0198456272, -0.07760185, -0.2983475327, -0.0815997422, 0.0488362759, -0.0131278373, 0.034607064, 0.1596442163, -0.0479189754, 0.3419955671, 0.058227472, 0.3695009649, -0.1124331951, -0.0151642114, -0.2224203348, 0.1949929893, -0.4361765385, 0.1441709995, -0.2022399008, -0.1239356771, 0.5087711811, -0.0023833439, 0.6064444184, -0.4638636708, -0.0930645466, 0.0385823436, -0.0192406699, -0.0122121964, -0.4288244843, 0.241255492, 0.0337990969, 0.0614983141, 0.0438616276, -0.0164112002, -0.3245539665, -0.0843015686, 0.4818833768, 0.0413155667, -0.2956652343, -0.1328901649, -0.1859078705, 0.2178626508, 0.02084646, 0.1141589582, 0.0367674567, -0.145368576, -0.5320335627, -0.2027044296, 0.7653899789, 0.0672896802, 0.1244358197, -0.2514538169, -0.1332685351, 0.080568403, -0.0005603842, 0.0552253053, 0.0327284522, 0.2792535722, -0.0457489416, 0.0623041689, 0.2406334877, -0.6767407656, -0.4408141971, 0.0251211599, 0.0460094661, -0.0332323201, 0.200023666, -0.1751339436, 0.3521324694, -0.0047274046, 0.1999833733, 0.4301861227, -0.1823699325, -0.0675363913, -0.4210839868, -0.0479820818, 0.0489526019, -0.1104325205, 0.4257762134, 0.0662508085, 0.084496744, 0.2618042231, 0.0360829458, 0.1915478408, -0.1473143697, 0.0495128371, 0.0701557249, -0.3530409932, 0.0856518149, 0.0555067956, -0.145714134, 0.10352543, -0.1434555203, -0.1681430191, 0.192715317, -0.3029262125, -0.7353889942, 0.2379851043, -0.0126783904, -0.1675952524, 0.0279245451, -0.0007102601, -0.1402488649, 0.2118354738, 0.1246921271, -0.2877168357, -0.2155009061, 0.068976216, 0.2514442503, 0.0879588872, -0.0275265854, -0.1178223789, -0.0540140308, 0.261759609, 0.4194562435, 0.0281710699, -0.042972751, 0.5366607904, 0.225991413, 0.1409415901, 0.1608157754, 0.0340637788, 0.2441126257, -0.0328772366, 0.0478117615, 0.3331088126, 0.100569129, -0.1979622394, -0.097744599, 0.4207780063, 0.1251932681, 0.3327289522, -0.0869358405, 0.2726322711, -0.2567585111, 0.0971225053, -0.1023769379, -0.2068929374, -0.0779833421, -0.4906929731, -0.020364698, -0.2348927408, 0.0249764025, 0.1215318143, 0.4332321286, 0.1995491982, 0.1523181498, -0.0760580078, -0.227794379, -0.0624572933, 0.0835694447, -0.1111955047, 0.4364537001, 0.1562026441, 0.0343497694, 0.2055187374, -0.1461108327, -0.0951093435, 0.1814319044, 0.481738627, -0.0805644244, 0.24359788, -0.0937526897, -0.1131488532, -0.0635224059, 0.2218560576, 0.0521535426, -0.0792740881, -0.5283739567, 0.2364409566, -0.0392133519, 0.2011192888, -0.2159098089, 0.0986012071, -0.1711426824, -0.7540905476, -0.1033214927, 0.0821499377, -0.1489277929, 0.3635011613, -0.2049848288, 0.2673457861, -0.0496508628, 0.0223415475, 0.0366270468, -0.3193078339, -0.1708574444, -0.1480313092, 0.2124334127, -0.0287866183, 0.3443082571, 0.387326479, 0.2164434046, 0.0731538981, -0.4658795297, -0.143151015, 0.0814773738, 0.9184206724, -0.0383187123, -0.1673642993, -0.3328227103, -0.0775396153, 0.3546085954, -0.2792418003, 0.0753312483, 0.1667620242, 0.0544320568, 0.1211808473, -0.3318285942, -0.1408894062, 0.0599888042, -0.1981331408, -0.1365237832, -0.1284694821, -0.2889372706, 0.3429214656, 0.1867971271, 0.0009102598, -0.0350907184, -0.0836618096, -0.0976050496, 0.0677948371, 0.3448292613, -0.1971106827, -0.2251147032, 0.0398049727, -0.0092013478, 0.2385272384, -0.0336466543, -0.319525063, -0.4439280927, 0.2071544826, 0.1057020649, 0.0439917445, 0.1653725952, -0.0892876536, -0.4593806267, 0.1171313748, -0.2870640755, -0.2191005349, 0.3560735881, -0.2641612291, 0.1047710925, -0.1369573474, 0.3790745735, 0.2572433949, 0.6966183186, 0.0503654853, 0.158295244, -0.0299592577, 0.0022026058, 0.2247805446, 0.0723268017, -0.3129124343, 0.1803694963, 0.0302198827, -0.1768458039, 0.2460015714, 0.1162329465, 0.2928937376, -0.0578409545, -0.3579818606, -0.2600936294, -0.3655108511, -0.1559732705, -0.0219271071, 0.203069061, 0.1455336362, 0.562700808, -0.4348825514, -0.082206361, 0.3034930825, -0.121467635, -0.0266322829, 0.0871557891, -0.2401304543, -0.3764370382, -0.1924000084, 0.1694325209, -0.127361685, 0.4058914483, 0.0894153267, 0.2031162083, 0.1276353449, -0.1006716341, 0.2976209521, -0.2545892, 0.1782374978, 0.1883016974, 0.1651881784, -0.3848176897, -0.1694615185, -0.144117102, -0.1351505816, 0.2666933537, 0.0691987723, -0.5115238428, -0.1317028403, 0.122371152, -0.0508826226, -0.2466026992, -0.1446665525, -0.2461933345, -0.2586558163, 0.153277114, 0.038098909, 0.150067836, 0.3929436803, -0.0927800909, 0.5734656453, -0.112011604, -0.2354328632, 0.2397035509, -0.0630112663, 0.5529729724, -0.0194102675, 0.0340888202, 0.1222654358, -0.1265096962, -0.2053160518, 0.1226583421, 0.1356473416, -0.3416359127, -0.1437759697, -0.3832884133, 0.5200098753, 0.2293063402, -0.275311023, 0.1476997882, -0.3316437006, -0.1977546811, -0.0106327813, -0.0570233576, 0.2516382039, -0.0470467433, 0.1179163903, -0.2057295442, 0.5350643396, 0.2149329334, -0.162463963, 0.4008513987, 0.1537151933, -0.4334540367, 0.1491288543, 0.3389035165, 0.7175222039, 0.4781149626, -0.038588617, 0.426306963, -0.258662492, 0.1159344688, 0.0563809872, -0.0041177943, -0.2077735364, -0.3220454454, 0.1919017583, 0.0116219148, 0.1058192253, 0.000632375, -0.0864818767, 0.1789881587, -0.2033777833, 0.3869855404, 0.1023426056, 0.2675028443, 0.0608242974, 0.0337735862, -0.1049403921, 0.0172548741, 0.0907752216, -0.1177078933, 0.0535146818, -0.3840711117, 0.0313185304, -0.1755129993, -0.0016681999, 0.0522393435, -0.256137073, 0.0642956048, 0.1166629195, -0.0008838773, 0.1194906533, 0.0016805511, 0.5374192595, -0.0359360501, -0.1339450032, 0.2569853663, -0.4386565089, 0.032488659, 0.1740624905, 0.1364797056, 0.0406222716, -0.0596820489, -0.2285202742, 0.3244855702, 0.0586302131, -0.1731659323, -0.210057795, -0.2583573759, -0.2615676224, -0.1521652043, -0.2196030319, -0.0531671681, -0.0192706436, -0.1628286541, 0.0028900895, -0.1240885854, 0.0244236737, 0.4010930359, -0.1081082374, -0.1133655906, 0.0903799534, 0.3428356051, -0.2323459834, -0.2853524983, 0.4727135897, -0.3125239015, -0.082667619, -0.0505315177, 0.174883306, -0.1998936981, -0.2814692259, 0.2686021924, -0.016128175, 0.103967309, 0.0345947891, 0.4042816162, 0.1158285066, -0.1011154354, -0.057221923, -0.4350408912, 0.1116832644, 0.4085426629, -0.2350722551, -0.0952426866, -0.4258365929, 0.1973526478, 0.0779682621, 0.1975914836, -0.2119119167, -0.2755136192, 0.1248584241, -0.1465167999, 0.2670939267, 0.0946129784, 0.0458100438, 0.0242837928, -0.0631353855, 0.088464953, -0.0965997949, -0.02977404, -0.2549290061, 0.1686712056, 0.0313180797, 0.3304584026, 0.0870019123, -0.0451478176, -0.1597487926, -0.2132950723, 0.0232996792, 0.1865108758, -0.116535902, 0.5392252207, 0.1041017473, 0.8976367116, 0.2134971023, -0.0534314513, 0.2053501904, 0.291357398, -0.0549787469, 0.1057692468, 0.3132905364, 0.1365464032, -0.2882300317, -0.089107275, -0.3128888607, 0.0653659254, 0.2927874923, -0.1010160148, 0.0120878816, 0.4501213729, 0.0216902867, 0.2443931699, -0.1739866585, 0.0332905278, -0.331677556, 0.108799994, -0.1615260541, 0.1517756581, 0.138160646, 0.1890220195, 0.0372142419, 0.2193837017, 0.3896553218, -0.1826103032, 0.1538563669, 0.0071755871, 0.2480258644, -0.2777963877, 0.3476071358, 0.1518511623, 0.2368544936, 0.2364319563, 0.2788347304, 0.0636555552, 0.0487266555, 0.4418361783, 0.1506567895, 0.2316163629, 0.1368167698, -0.0283418372, -0.1424886882, -0.0037021935, -0.0575644188, 0.0473345406, -0.0968371481, 0.1636190414, -0.3006998599, 0.2142598033, -0.0032684021, -0.3228292167, -0.2563187182, -0.2440362275, -0.0155126145, -0.2392956018, -0.5574415922, -0.2417224348, -0.0506323352, -0.1181868464, 0.1758485585, -0.0051933359, 0.2497841418, -0.2485954463, -0.144193694, 0.2668411434, -0.261879921, 0.3737458885, 0.5232932568, -0.348328203, 0.058775872, -0.1005219668, 0.2709251046, 0.2109990716, 0.3054180443, 0.2390973419, 0.3020232916, -0.366843611, -0.2365858108, 0.1456976533, -0.2033137977, 0.1144790128, 0.329028517, 0.2814852595, -0.2071490288, 0.2027943879, 0.0467125773, -0.1556739509, 0.1896247566, 0.2759168446, 0.2000060827, -0.4089815617, 0.3424042761, -0.0396017879, -0.0322974175, 0.1221437156, -0.1428459883, -0.0427373424, -0.2502236962, 0.0933625996, 0.2045286596, -0.0232298821, -0.5147497654, 0.0396317206, 0.0295871943, 0.3810939789, 0.0585160516, 0.0123014376, -0.4914894998, -0.0101349354, -0.6506743431, -0.0930298865, 0.2496896386, -0.1495497525, 0.145662874, 0.1661142707, -0.0759353191, 0.0700001195, 0.0718907937, 0.5094357133, 0.175208509, -0.0033008456, -0.4087583125, -0.1453217417, -0.2016131282, -0.2168285847, 0.2321971804, -0.1759061962, -0.009785153, -0.3974434435, -0.0150045827, 0.0600627512, 0.0033529922, 0.1645424664, 0.6511240602, 0.187380895, 0.0206304658, 0.7741079926, 0.0136424825, 0.0299884155, -0.4132050872, -0.1902291477, -0.2227949947, -0.0953331813, -0.1362855136, 0.3383524418, -0.0151673369, -0.4483858347, -0.0393704735, 0.2113921046, 0.3170762658, -0.4165563583, -0.0193999484, 0.3332819045, -0.1906138808, -0.0921215713, 0.023442667, 0.3206247091, -0.0995699316, 0.2311320603, 0.0546544045, -0.2851710618, 0.231081754, -0.3407652676, -0.3436346352, -0.2862750888, 0.3049649, -0.0992925018, -0.1729007065, -0.6666847467, -0.1416712105, 0.282350719, 0.1122600734, -0.033941891, 0.2595967948, -0.0015446469, 0.0506241098, -0.0288964994, 0.0143098589, -0.1536706686, -0.1183004752, 0.0807451457, -0.1149210632 ]
https://github.com/huggingface/datasets/issues/2669
Metric kwargs are not passed to underlying external metric f1_score
Thanks, that was it. A bit strange though, since `load_metric` had an argument `metric_init_kwargs`. I assume that that's for specific initialisation arguments whereas `average` is for the function itself.
## Describe the bug When I want to use F1 score with average="min", this keyword argument does not seem to be passed through to the underlying sklearn metric. This is evident because [sklearn](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html) throws an error telling me so. ## Steps to reproduce the bug ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True, average="min") f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute() ``` ## Expected results No error, because `average="min"` should be passed correctly to f1_score in sklearn. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\datasets\metric.py", line 402, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "C:\Users\bramv\.cache\huggingface\modules\datasets_modules\metrics\f1\82177930a325d4c28342bba0f116d73f6d92fb0c44cd67be32a07c1262b61cfe\f1.py", line 97, in _compute "f1": f1_score( File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1071, in f1_score return fbeta_score(y_true, y_pred, beta=1, labels=labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1195, in fbeta_score _, _, f, _ = precision_recall_fscore_support(y_true, y_pred, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1464, in precision_recall_fscore_support labels = _check_set_wise_labels(y_true, y_pred, average, labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1294, in _check_set_wise_labels raise ValueError("Target is %s but average='binary'. Please " ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted']. ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.9.2 - PyArrow version: 4.0.1
29
Metric kwargs are not passed to underlying external metric f1_score ## Describe the bug When I want to use F1 score with average="min", this keyword argument does not seem to be passed through to the underlying sklearn metric. This is evident because [sklearn](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html) throws an error telling me so. ## Steps to reproduce the bug ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True, average="min") f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute() ``` ## Expected results No error, because `average="min"` should be passed correctly to f1_score in sklearn. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\datasets\metric.py", line 402, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "C:\Users\bramv\.cache\huggingface\modules\datasets_modules\metrics\f1\82177930a325d4c28342bba0f116d73f6d92fb0c44cd67be32a07c1262b61cfe\f1.py", line 97, in _compute "f1": f1_score( File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1071, in f1_score return fbeta_score(y_true, y_pred, beta=1, labels=labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1195, in fbeta_score _, _, f, _ = precision_recall_fscore_support(y_true, y_pred, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1464, in precision_recall_fscore_support labels = _check_set_wise_labels(y_true, y_pred, average, labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1294, in _check_set_wise_labels raise ValueError("Target is %s but average='binary'. Please " ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted']. ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.9.2 - PyArrow version: 4.0.1 Thanks, that was it. A bit strange though, since `load_metric` had an argument `metric_init_kwargs`. I assume that that's for specific initialisation arguments whereas `average` is for the function itself.
[ -0.0516289249, -0.5501687527, 0.0873142257, 0.2038567066, 0.4681910276, -0.0643794686, 0.1748597473, -0.1953884065, 0.3451758623, 0.282897383, 0.067913413, 0.4462167025, 0.1783717573, 0.0242550001, -0.0182034075, 0.0616981536, 0.105803974, -0.3587127328, -0.0846230909, -0.2987219393, -0.4068837762, 0.0102045704, -0.4048626423, 0.0202551708, -0.2006225288, 0.0613630861, -0.034785226, -0.1700368226, 0.0016801096, -0.0039012395, 0.3077564836, 0.1265652329, -0.0970671996, 0.3663868904, -0.0001235781, -0.0986131802, 0.4526260197, -0.1368987411, -0.0371829867, -0.0111097619, -0.176451385, 0.0147763491, -0.1244777441, -0.3509167433, 0.1918559372, 0.1058517694, -0.1739185452, -0.3824931681, 0.2338169068, 0.3685025871, 0.0636829585, 0.1573849469, -0.2092082798, -0.1720216274, -0.2959969938, -0.1044454649, -0.1850387454, 0.4786296189, -0.6841749549, -0.0733040273, -0.1676171422, 0.0917700827, 0.1501627862, -0.012652277, 0.7468225956, 0.0399316959, 0.3019663692, 0.1136630699, 0.179210037, -0.1155982763, 0.0679366589, -0.386957258, -0.4035750628, -0.1462422311, 0.0940087438, -0.7693843842, 0.107782878, 0.0144160576, -0.2267363071, -0.0929724127, -0.1046826988, -0.1168837994, -0.3561751246, 0.0764990598, -0.0503033474, 0.6123210788, 0.0015165657, 0.0829184204, 0.1927201301, 0.1838296056, 0.0406337641, -0.2930776775, 0.0284067988, 0.0716913864, -0.263173908, 0.2108207643, -0.0395301618, -0.0636173263, 0.2793687284, 0.0515010729, -0.0760852918, 0.0437830165, 0.4305032492, 0.0532586761, 0.1974087358, 0.5313013792, 0.4781779051, 0.3300953507, -0.0164005365, 0.0775586814, -0.1973582208, -0.2480200976, 0.271512568, -0.0058644116, 0.249512136, 0.1664948463, 0.0198456272, -0.07760185, -0.2983475327, -0.0815997422, 0.0488362759, -0.0131278373, 0.034607064, 0.1596442163, -0.0479189754, 0.3419955671, 0.058227472, 0.3695009649, -0.1124331951, -0.0151642114, -0.2224203348, 0.1949929893, -0.4361765385, 0.1441709995, -0.2022399008, -0.1239356771, 0.5087711811, -0.0023833439, 0.6064444184, -0.4638636708, -0.0930645466, 0.0385823436, -0.0192406699, -0.0122121964, -0.4288244843, 0.241255492, 0.0337990969, 0.0614983141, 0.0438616276, -0.0164112002, -0.3245539665, -0.0843015686, 0.4818833768, 0.0413155667, -0.2956652343, -0.1328901649, -0.1859078705, 0.2178626508, 0.02084646, 0.1141589582, 0.0367674567, -0.145368576, -0.5320335627, -0.2027044296, 0.7653899789, 0.0672896802, 0.1244358197, -0.2514538169, -0.1332685351, 0.080568403, -0.0005603842, 0.0552253053, 0.0327284522, 0.2792535722, -0.0457489416, 0.0623041689, 0.2406334877, -0.6767407656, -0.4408141971, 0.0251211599, 0.0460094661, -0.0332323201, 0.200023666, -0.1751339436, 0.3521324694, -0.0047274046, 0.1999833733, 0.4301861227, -0.1823699325, -0.0675363913, -0.4210839868, -0.0479820818, 0.0489526019, -0.1104325205, 0.4257762134, 0.0662508085, 0.084496744, 0.2618042231, 0.0360829458, 0.1915478408, -0.1473143697, 0.0495128371, 0.0701557249, -0.3530409932, 0.0856518149, 0.0555067956, -0.145714134, 0.10352543, -0.1434555203, -0.1681430191, 0.192715317, -0.3029262125, -0.7353889942, 0.2379851043, -0.0126783904, -0.1675952524, 0.0279245451, -0.0007102601, -0.1402488649, 0.2118354738, 0.1246921271, -0.2877168357, -0.2155009061, 0.068976216, 0.2514442503, 0.0879588872, -0.0275265854, -0.1178223789, -0.0540140308, 0.261759609, 0.4194562435, 0.0281710699, -0.042972751, 0.5366607904, 0.225991413, 0.1409415901, 0.1608157754, 0.0340637788, 0.2441126257, -0.0328772366, 0.0478117615, 0.3331088126, 0.100569129, -0.1979622394, -0.097744599, 0.4207780063, 0.1251932681, 0.3327289522, -0.0869358405, 0.2726322711, -0.2567585111, 0.0971225053, -0.1023769379, -0.2068929374, -0.0779833421, -0.4906929731, -0.020364698, -0.2348927408, 0.0249764025, 0.1215318143, 0.4332321286, 0.1995491982, 0.1523181498, -0.0760580078, -0.227794379, -0.0624572933, 0.0835694447, -0.1111955047, 0.4364537001, 0.1562026441, 0.0343497694, 0.2055187374, -0.1461108327, -0.0951093435, 0.1814319044, 0.481738627, -0.0805644244, 0.24359788, -0.0937526897, -0.1131488532, -0.0635224059, 0.2218560576, 0.0521535426, -0.0792740881, -0.5283739567, 0.2364409566, -0.0392133519, 0.2011192888, -0.2159098089, 0.0986012071, -0.1711426824, -0.7540905476, -0.1033214927, 0.0821499377, -0.1489277929, 0.3635011613, -0.2049848288, 0.2673457861, -0.0496508628, 0.0223415475, 0.0366270468, -0.3193078339, -0.1708574444, -0.1480313092, 0.2124334127, -0.0287866183, 0.3443082571, 0.387326479, 0.2164434046, 0.0731538981, -0.4658795297, -0.143151015, 0.0814773738, 0.9184206724, -0.0383187123, -0.1673642993, -0.3328227103, -0.0775396153, 0.3546085954, -0.2792418003, 0.0753312483, 0.1667620242, 0.0544320568, 0.1211808473, -0.3318285942, -0.1408894062, 0.0599888042, -0.1981331408, -0.1365237832, -0.1284694821, -0.2889372706, 0.3429214656, 0.1867971271, 0.0009102598, -0.0350907184, -0.0836618096, -0.0976050496, 0.0677948371, 0.3448292613, -0.1971106827, -0.2251147032, 0.0398049727, -0.0092013478, 0.2385272384, -0.0336466543, -0.319525063, -0.4439280927, 0.2071544826, 0.1057020649, 0.0439917445, 0.1653725952, -0.0892876536, -0.4593806267, 0.1171313748, -0.2870640755, -0.2191005349, 0.3560735881, -0.2641612291, 0.1047710925, -0.1369573474, 0.3790745735, 0.2572433949, 0.6966183186, 0.0503654853, 0.158295244, -0.0299592577, 0.0022026058, 0.2247805446, 0.0723268017, -0.3129124343, 0.1803694963, 0.0302198827, -0.1768458039, 0.2460015714, 0.1162329465, 0.2928937376, -0.0578409545, -0.3579818606, -0.2600936294, -0.3655108511, -0.1559732705, -0.0219271071, 0.203069061, 0.1455336362, 0.562700808, -0.4348825514, -0.082206361, 0.3034930825, -0.121467635, -0.0266322829, 0.0871557891, -0.2401304543, -0.3764370382, -0.1924000084, 0.1694325209, -0.127361685, 0.4058914483, 0.0894153267, 0.2031162083, 0.1276353449, -0.1006716341, 0.2976209521, -0.2545892, 0.1782374978, 0.1883016974, 0.1651881784, -0.3848176897, -0.1694615185, -0.144117102, -0.1351505816, 0.2666933537, 0.0691987723, -0.5115238428, -0.1317028403, 0.122371152, -0.0508826226, -0.2466026992, -0.1446665525, -0.2461933345, -0.2586558163, 0.153277114, 0.038098909, 0.150067836, 0.3929436803, -0.0927800909, 0.5734656453, -0.112011604, -0.2354328632, 0.2397035509, -0.0630112663, 0.5529729724, -0.0194102675, 0.0340888202, 0.1222654358, -0.1265096962, -0.2053160518, 0.1226583421, 0.1356473416, -0.3416359127, -0.1437759697, -0.3832884133, 0.5200098753, 0.2293063402, -0.275311023, 0.1476997882, -0.3316437006, -0.1977546811, -0.0106327813, -0.0570233576, 0.2516382039, -0.0470467433, 0.1179163903, -0.2057295442, 0.5350643396, 0.2149329334, -0.162463963, 0.4008513987, 0.1537151933, -0.4334540367, 0.1491288543, 0.3389035165, 0.7175222039, 0.4781149626, -0.038588617, 0.426306963, -0.258662492, 0.1159344688, 0.0563809872, -0.0041177943, -0.2077735364, -0.3220454454, 0.1919017583, 0.0116219148, 0.1058192253, 0.000632375, -0.0864818767, 0.1789881587, -0.2033777833, 0.3869855404, 0.1023426056, 0.2675028443, 0.0608242974, 0.0337735862, -0.1049403921, 0.0172548741, 0.0907752216, -0.1177078933, 0.0535146818, -0.3840711117, 0.0313185304, -0.1755129993, -0.0016681999, 0.0522393435, -0.256137073, 0.0642956048, 0.1166629195, -0.0008838773, 0.1194906533, 0.0016805511, 0.5374192595, -0.0359360501, -0.1339450032, 0.2569853663, -0.4386565089, 0.032488659, 0.1740624905, 0.1364797056, 0.0406222716, -0.0596820489, -0.2285202742, 0.3244855702, 0.0586302131, -0.1731659323, -0.210057795, -0.2583573759, -0.2615676224, -0.1521652043, -0.2196030319, -0.0531671681, -0.0192706436, -0.1628286541, 0.0028900895, -0.1240885854, 0.0244236737, 0.4010930359, -0.1081082374, -0.1133655906, 0.0903799534, 0.3428356051, -0.2323459834, -0.2853524983, 0.4727135897, -0.3125239015, -0.082667619, -0.0505315177, 0.174883306, -0.1998936981, -0.2814692259, 0.2686021924, -0.016128175, 0.103967309, 0.0345947891, 0.4042816162, 0.1158285066, -0.1011154354, -0.057221923, -0.4350408912, 0.1116832644, 0.4085426629, -0.2350722551, -0.0952426866, -0.4258365929, 0.1973526478, 0.0779682621, 0.1975914836, -0.2119119167, -0.2755136192, 0.1248584241, -0.1465167999, 0.2670939267, 0.0946129784, 0.0458100438, 0.0242837928, -0.0631353855, 0.088464953, -0.0965997949, -0.02977404, -0.2549290061, 0.1686712056, 0.0313180797, 0.3304584026, 0.0870019123, -0.0451478176, -0.1597487926, -0.2132950723, 0.0232996792, 0.1865108758, -0.116535902, 0.5392252207, 0.1041017473, 0.8976367116, 0.2134971023, -0.0534314513, 0.2053501904, 0.291357398, -0.0549787469, 0.1057692468, 0.3132905364, 0.1365464032, -0.2882300317, -0.089107275, -0.3128888607, 0.0653659254, 0.2927874923, -0.1010160148, 0.0120878816, 0.4501213729, 0.0216902867, 0.2443931699, -0.1739866585, 0.0332905278, -0.331677556, 0.108799994, -0.1615260541, 0.1517756581, 0.138160646, 0.1890220195, 0.0372142419, 0.2193837017, 0.3896553218, -0.1826103032, 0.1538563669, 0.0071755871, 0.2480258644, -0.2777963877, 0.3476071358, 0.1518511623, 0.2368544936, 0.2364319563, 0.2788347304, 0.0636555552, 0.0487266555, 0.4418361783, 0.1506567895, 0.2316163629, 0.1368167698, -0.0283418372, -0.1424886882, -0.0037021935, -0.0575644188, 0.0473345406, -0.0968371481, 0.1636190414, -0.3006998599, 0.2142598033, -0.0032684021, -0.3228292167, -0.2563187182, -0.2440362275, -0.0155126145, -0.2392956018, -0.5574415922, -0.2417224348, -0.0506323352, -0.1181868464, 0.1758485585, -0.0051933359, 0.2497841418, -0.2485954463, -0.144193694, 0.2668411434, -0.261879921, 0.3737458885, 0.5232932568, -0.348328203, 0.058775872, -0.1005219668, 0.2709251046, 0.2109990716, 0.3054180443, 0.2390973419, 0.3020232916, -0.366843611, -0.2365858108, 0.1456976533, -0.2033137977, 0.1144790128, 0.329028517, 0.2814852595, -0.2071490288, 0.2027943879, 0.0467125773, -0.1556739509, 0.1896247566, 0.2759168446, 0.2000060827, -0.4089815617, 0.3424042761, -0.0396017879, -0.0322974175, 0.1221437156, -0.1428459883, -0.0427373424, -0.2502236962, 0.0933625996, 0.2045286596, -0.0232298821, -0.5147497654, 0.0396317206, 0.0295871943, 0.3810939789, 0.0585160516, 0.0123014376, -0.4914894998, -0.0101349354, -0.6506743431, -0.0930298865, 0.2496896386, -0.1495497525, 0.145662874, 0.1661142707, -0.0759353191, 0.0700001195, 0.0718907937, 0.5094357133, 0.175208509, -0.0033008456, -0.4087583125, -0.1453217417, -0.2016131282, -0.2168285847, 0.2321971804, -0.1759061962, -0.009785153, -0.3974434435, -0.0150045827, 0.0600627512, 0.0033529922, 0.1645424664, 0.6511240602, 0.187380895, 0.0206304658, 0.7741079926, 0.0136424825, 0.0299884155, -0.4132050872, -0.1902291477, -0.2227949947, -0.0953331813, -0.1362855136, 0.3383524418, -0.0151673369, -0.4483858347, -0.0393704735, 0.2113921046, 0.3170762658, -0.4165563583, -0.0193999484, 0.3332819045, -0.1906138808, -0.0921215713, 0.023442667, 0.3206247091, -0.0995699316, 0.2311320603, 0.0546544045, -0.2851710618, 0.231081754, -0.3407652676, -0.3436346352, -0.2862750888, 0.3049649, -0.0992925018, -0.1729007065, -0.6666847467, -0.1416712105, 0.282350719, 0.1122600734, -0.033941891, 0.2595967948, -0.0015446469, 0.0506241098, -0.0288964994, 0.0143098589, -0.1536706686, -0.1183004752, 0.0807451457, -0.1149210632 ]
https://github.com/huggingface/datasets/issues/2663
[`to_json`] add multi-proc sharding support
Hi @stas00, I want to work on this issue and I was thinking why don't we use `imap` [in this loop](https://github.com/huggingface/datasets/blob/440b14d0dd428ae1b25881aa72ba7bbb8ad9ff84/src/datasets/io/json.py#L99)? This way, using offset (which is being used to slice the pyarrow table) we can convert pyarrow table to `json` using multiprocessing. I've a small code snippet for some clarity: ``` result = list( pool.imap(self._apply_df, [(offset, batch_size) for offset in range(0, len(self.dataset), batch_size)]) ) ``` `_apply_df` is a function which will return `batch.to_pandas().to_json(path_or_buf=None, orient="records", lines=True)` which is basically json version of the batched pyarrow table. Later on we can concatenate it to form json file? I think the only downside here is to write file from `imap` output (output would be a list and we'll need to iterate over it and write in a file) which might add a little overhead cost. What do you think about this?
As discussed on slack it appears that `to_json` is quite slow on huge datasets like OSCAR. I implemented sharded saving, which is much much faster - but the tqdm bars all overwrite each other, so it's hard to make sense of the progress, so if possible ideally this multi-proc support could be implemented internally in `to_json` via `num_proc` argument. I guess `num_proc` will be the number of shards? I think the user will need to use this feature wisely, since too many processes writing to say normal style HD is likely to be slower than one process. I'm not sure whether the user should be responsible to concatenate the shards at the end or `datasets`, either way works for my needs. The code I was using: ``` from multiprocessing import cpu_count, Process, Queue [...] filtered_dataset = concat_dataset.map(filter_short_documents, batched=True, batch_size=256, num_proc=cpu_count()) DATASET_NAME = "oscar" SHARDS = 10 def process_shard(idx): print(f"Sharding {idx}") ds_shard = filtered_dataset.shard(SHARDS, idx, contiguous=True) # ds_shard = ds_shard.shuffle() # remove contiguous=True above if shuffling print(f"Saving {DATASET_NAME}-{idx}.jsonl") ds_shard.to_json(f"{DATASET_NAME}-{idx}.jsonl", orient="records", lines=True, force_ascii=False) queue = Queue() processes = [Process(target=process_shard, args=(idx,)) for idx in range(SHARDS)] for p in processes: p.start() for p in processes: p.join() ``` Thank you! @lhoestq
139
[`to_json`] add multi-proc sharding support As discussed on slack it appears that `to_json` is quite slow on huge datasets like OSCAR. I implemented sharded saving, which is much much faster - but the tqdm bars all overwrite each other, so it's hard to make sense of the progress, so if possible ideally this multi-proc support could be implemented internally in `to_json` via `num_proc` argument. I guess `num_proc` will be the number of shards? I think the user will need to use this feature wisely, since too many processes writing to say normal style HD is likely to be slower than one process. I'm not sure whether the user should be responsible to concatenate the shards at the end or `datasets`, either way works for my needs. The code I was using: ``` from multiprocessing import cpu_count, Process, Queue [...] filtered_dataset = concat_dataset.map(filter_short_documents, batched=True, batch_size=256, num_proc=cpu_count()) DATASET_NAME = "oscar" SHARDS = 10 def process_shard(idx): print(f"Sharding {idx}") ds_shard = filtered_dataset.shard(SHARDS, idx, contiguous=True) # ds_shard = ds_shard.shuffle() # remove contiguous=True above if shuffling print(f"Saving {DATASET_NAME}-{idx}.jsonl") ds_shard.to_json(f"{DATASET_NAME}-{idx}.jsonl", orient="records", lines=True, force_ascii=False) queue = Queue() processes = [Process(target=process_shard, args=(idx,)) for idx in range(SHARDS)] for p in processes: p.start() for p in processes: p.join() ``` Thank you! @lhoestq Hi @stas00, I want to work on this issue and I was thinking why don't we use `imap` [in this loop](https://github.com/huggingface/datasets/blob/440b14d0dd428ae1b25881aa72ba7bbb8ad9ff84/src/datasets/io/json.py#L99)? This way, using offset (which is being used to slice the pyarrow table) we can convert pyarrow table to `json` using multiprocessing. I've a small code snippet for some clarity: ``` result = list( pool.imap(self._apply_df, [(offset, batch_size) for offset in range(0, len(self.dataset), batch_size)]) ) ``` `_apply_df` is a function which will return `batch.to_pandas().to_json(path_or_buf=None, orient="records", lines=True)` which is basically json version of the batched pyarrow table. Later on we can concatenate it to form json file? I think the only downside here is to write file from `imap` output (output would be a list and we'll need to iterate over it and write in a file) which might add a little overhead cost. What do you think about this?
[ -0.2420468032, -0.3245051801, -0.0334172547, -0.0440206677, -0.0977221504, -0.0860116184, 0.4022949934, 0.1104016155, -0.0120914951, 0.3323679566, -0.039944265, 0.2764454484, -0.1313709319, 0.2204847932, -0.23964338, -0.0810554102, 0.140750885, -0.1243920326, 0.4335381985, 0.1816551089, -0.2526788414, 0.3090568781, -0.1334241778, -0.2920538485, -0.1443657577, -0.1116198227, 0.1702491939, 0.1693732291, 0.1813989878, -0.205072999, -0.2966968715, 0.1466356814, -0.1574244201, -0.0663381293, -0.0001212066, -0.0165759102, 0.336055994, -0.0251884833, 0.1674972028, 0.0298163891, -0.2610717416, -0.2657983899, -0.1118151098, -0.3679596782, 0.158918336, 0.2573319376, 0.0796103626, -0.1090114787, 0.2735990882, 0.1824123561, 0.0266379081, -0.0381318033, 0.2731875777, 0.1871732175, -0.123168923, -0.0584268831, -0.1341991574, -0.1373112202, 0.1717839837, 0.2883921862, 0.1722883135, 0.2656449974, -0.0714093819, -0.0292129349, -0.0493072383, 0.0790250003, 0.0676736683, -0.2999532521, -0.0728116855, 0.1627262235, -0.1009485126, -0.0941406563, -0.356159687, -0.2951524854, -0.1113356203, -0.5862671137, -0.0910206214, -0.0569906905, -0.0046952926, 0.0016202987, -0.2583360076, -0.1352898926, -0.1115971059, -0.0975020677, 0.0559727997, -0.0492391549, 0.1559401155, 0.2313601673, 0.4239073992, -0.1160161495, -0.28132388, -0.0367552191, 0.1901650727, -0.0995847732, -0.3182098567, -0.2331995517, 0.0670727342, -0.2741036713, -0.1916320324, 0.2405327857, -0.0652903616, 0.3501675129, 0.1451129019, 0.2800191939, -0.0082597323, -0.3676022291, 0.1055696905, -0.2028027624, 0.0866224095, 0.0854693353, -0.0438373499, 0.0142234676, 0.1041974351, -0.1864198595, 0.2379484177, 0.0610440187, -0.2247464657, 0.0134618282, -0.1326911598, 0.1245784461, 0.0409153178, -0.1848432273, -0.1038549021, 0.1181191057, 0.121115312, 0.4554606378, -0.2897274196, 0.1267385483, -0.1991170049, 0.0845793337, -0.0060030818, 0.1752080619, -0.1212141514, 0.3038287759, -0.0945643708, 0.3363528848, -0.1660332978, -0.1813056171, 0.426748842, 0.0143286064, 0.0071664229, -0.1615076512, -0.027764488, 0.3133508563, -0.0525821038, -0.0263763964, -0.0027020867, -0.6090405583, -0.5215038061, 0.0872401893, -0.4247318506, -0.5617139935, 0.067449905, -0.0105563076, 0.0413319916, 0.0530504696, -0.7100691795, 0.1912891865, 0.1468507051, 0.0172503665, -0.2996539176, -0.0313656814, -0.3974207044, -0.3379458785, 0.0040913373, 0.1846759766, -0.0345498659, 0.1666768491, -0.1057315022, 0.1573320776, 0.491199106, 0.3862856627, 0.0417266637, 0.1512308419, 0.1384150088, 0.402053535, 0.1216075793, -0.2359778881, -0.3532426059, 0.3436241746, -0.1950224787, 0.1283873916, 0.5897715092, 0.1619930565, 0.1941809356, -0.1963892281, 0.5543401241, 0.0841369778, -0.0459818915, 0.2191112041, -0.2883825898, -0.0190755725, -0.652238369, 0.2896903455, 0.0680863261, 0.0845357478, 0.1911192238, -0.274148196, 0.2790184915, -0.1253769547, 0.0269499868, 0.1180232614, 0.2163129449, -0.1152401865, -0.2634331286, 0.1062837541, -0.095333159, 0.3388626575, 0.2482238412, 0.1104215607, -0.0917065889, -0.160624966, 0.2462694943, 0.1796579659, 0.0966830626, 0.1453391314, -0.0540784597, -0.2201895118, -0.1485586762, -0.0962636843, -0.0684254467, 0.5936163068, 0.1674357951, -0.0775219947, -0.412216574, 0.1772022545, 0.0901104435, -0.1776476353, 0.0167186633, 0.180041343, 0.0830762088, -0.1811238825, 0.2029943913, 0.0858523697, 0.2311601043, 0.1759352386, -0.0201779753, 0.3995908499, 0.0584957302, 0.1984226108, 0.0361034572, -0.2241057605, 0.0027490184, -0.2517611384, -0.1687449813, 0.7329334021, 0.2339993417, 0.5969924331, 0.1784470081, -0.1098153591, 0.2974084616, 0.0058561936, 0.0032608956, -0.0948941857, 0.1027391478, 0.4333764315, -0.4786277413, -0.2609362602, -0.3565047085, 0.4948659539, 0.3255588412, 0.1614055932, -0.2580355704, 0.2964333296, 0.3624891937, 0.0195348039, 0.1627063006, 0.3779320419, 0.6566361189, 0.2248313725, -0.1344010383, -0.0622734204, 0.0452872813, -0.3232689202, 0.050375998, 0.094353959, 0.3693326712, 0.0394428074, 0.2078117877, 0.0152691379, 0.0442843884, -0.5829310417, -0.0670747757, 0.0321430191, -0.1475298554, 0.1656360626, -0.1907572597, 0.5931072235, 0.069452472, 0.000279896, 0.1994153857, -0.4266070724, -0.0189696103, 0.5152558684, -0.151058197, -0.1607409716, 0.147074908, 0.0544024259, -0.384867847, -0.3304624856, -0.261526525, -0.0200195611, 0.1954405606, -0.0881894231, 0.3558399677, -0.066784054, 0.238935709, -0.004678607, 0.0458213687, 0.0259416066, -0.1893891245, -0.0488842428, -0.1514612138, 0.1716161221, -0.0206063762, -0.1644493639, -0.0581387207, -0.2877834141, 0.2799782157, 0.113781549, -0.0842131153, 0.2283851206, -0.2359645665, -0.1618587077, 0.156935066, 0.0827054977, -0.2531996369, -0.2911529839, 0.5311347246, 0.1381748617, 0.3013703525, -0.4351008534, 0.1738482416, -0.1655336469, 0.0203212462, 0.0540145561, 0.0509411655, -0.4110956192, 0.322997719, -0.0502162464, -0.0940242112, -0.1275966465, -0.0198115557, 0.1817744076, 0.1251271963, -0.2338485718, -0.3862826824, -0.2070025653, 0.1083225906, -0.0194041133, -0.2067757547, 0.4428938329, 0.1868676096, -0.1519837677, 0.1370431334, -0.1170816571, 0.1773801297, -0.1496585011, -0.1970187873, -0.047434859, 0.5124173164, 0.1980291009, 0.6017048955, 0.2563288808, -0.0557648502, 0.2804165483, 0.1276686043, -0.1844821721, -0.1950062364, -0.1390613765, -0.0172407925, -0.1265534163, 0.0335099325, -0.0515078232, 0.0274300873, -0.4436278045, -0.0378677063, 0.159720093, -0.3875333667, -0.3500618935, 0.2630936503, 0.2034052908, -0.1624294519, -0.1210544929, -0.2143116295, -0.2355105132, 0.0491951331, -0.2517801225, 0.4220278561, 0.144010663, -0.3891450167, -0.3714789152, -0.4610389173, -0.6336137652, 0.4533957839, 0.101777181, 0.1259097308, 0.0799113214, -0.1299971789, 0.1769376695, -0.4740132689, 0.4230645299, -0.2788919508, -0.341928333, 0.4411659837, -0.2057168484, -0.1236961484, -0.0165877864, 0.0198713094, 0.2513071597, 0.4258912206, 0.7600976229, -0.3608614802, -0.152310282, -0.0209072232, -0.2820307016, -0.1159221232, -0.3202481866, -0.175359413, -0.3228887916, -0.4666145444, 0.1101016104, 0.1017074734, 0.4080091119, -0.0057403669, -0.0836370885, -0.0733940899, -0.2006118298, 0.3292185664, -0.1313378811, -0.1254903078, 0.0221708491, 0.2492971271, -0.4836691618, 0.067168355, 0.2951050699, 0.2029375434, -0.0138542941, -0.0998581871, -0.1386739761, 0.1534721702, 0.393866837, 0.2586362064, 0.0421480201, 0.1490002871, -0.2551946938, 0.6260345578, -0.0486520343, 0.0141149089, -0.0253271759, 0.1528860778, -0.2188194245, 0.0956201926, 0.3878551126, 0.1129262894, -0.0957067013, 0.0178130213, 0.1687097847, -0.0675471127, 0.1491487324, 0.2251410931, 0.9898107052, -0.300016135, 0.1346515119, -0.14271231, 0.0296356529, -0.0609624721, -0.5919111967, 0.134204179, -0.065970704, -0.1331829578, 0.0868167207, -0.0425484814, 0.2160753906, 0.3780529499, -0.0626916513, 0.3177195787, 0.4126958549, -0.4591327906, -0.0893734694, 0.3414216638, -0.2101225257, -0.5266345143, -0.0600293204, -0.0211201925, 0.2636202872, -0.4082716703, 0.0089062676, -0.1239406466, -0.1102140471, 0.0826625973, -0.3039132059, -0.0807647556, 0.1431289166, 0.1746757627, 0.1177010387, -0.1286087036, 0.004805997, 0.1438336223, 0.3051339686, -0.0194028988, -0.0641009733, -0.1503506601, -0.0903270841, -0.064967081, 0.1151669621, -0.4983927608, 0.3140555322, -0.2099171281, -0.1760050505, -0.1197829545, 0.1505511254, -0.5108479261, -0.1043042913, 0.2440749705, 0.2966707945, 0.2887219787, -0.2108637094, 0.3275486827, -0.402346164, -0.2975879908, -0.0075661857, 0.278635025, -0.1586078107, 0.5502756238, -0.549978435, -0.1529863328, 0.0382566862, 0.1312533915, 0.1465371102, -0.0624506176, 0.003870165, -0.0976630896, -0.2169625163, -0.0971849859, 0.1312488317, -0.0407380462, 0.0553368926, 0.1016306877, -0.1436054409, -0.1815696359, 0.0639715567, -0.118049264, -0.0877135992, -0.0725386217, -0.0936048925, -0.3099116087, -0.2076788247, 0.1351602376, -0.1702668965, -0.0460893922, -0.1275117993, 0.1745929271, -0.2650550604, 0.2505454123, -0.1761874557, 0.0518843979, -0.2666441202, 0.0531451777, 0.29401806, -0.113440752, 0.1016724557, 0.1896565557, 0.0879805982, 0.2687369585, -0.2080687881, -0.1312021762, 0.1138237864, 0.1918834895, -0.0635320544, 0.0977953374, 0.1916433275, 0.2487071306, -0.3594395816, -0.1701644063, 0.0609469265, 0.0068937019, -0.2717462778, -0.1422348022, 0.7559421659, 0.0670435876, 0.0869187415, 0.1275440305, 0.037001837, 0.6623573899, -0.2667345405, 0.2846897244, -0.0016678087, -0.1713434011, 0.0210851803, 0.1079127192, 0.2110728621, 0.1510643661, 0.4081353843, -0.0054547749, -0.244952023, -0.187712878, 0.2510831952, 0.0112658255, -0.0196200088, 0.0264090076, 0.1363795996, 0.0955167413, 0.065490216, -0.3602881432, 0.2202567458, -0.0914755985, 0.1921834946, 0.355371356, 0.0795508847, 0.1364493817, -0.100660041, 0.0064261109, 0.1384617686, -0.2223732173, -0.4793304503, -0.4439964294, 0.1628614664, 0.1356541067, 0.3500676751, -0.0445962697, 0.2138269544, 0.139120996, -0.0987011269, 0.9213708639, 0.2334341258, 0.2134947628, -0.0153667927, -0.1005679071, 0.0820203722, 0.1242321134, 0.0911824405, 0.3882043362, 0.1295157373, 0.2498441339, 0.0221476443, 0.0599887483, -0.2447607219, 0.4115549624, 0.141762957, -0.4825478792, 0.1349291503, 0.0269402266, -0.1517359316, 0.04849834, -0.0439247862, 0.1780868173, 0.4796348512, 0.1804551035, 0.4221503139, 0.0608021393, -0.1545417011, -0.1378038526, 0.4936322868, -0.2833920419, 0.0602760166, 0.2513493896, -0.2618727386, -0.0639843717, -0.0025815144, 0.3616574705, 0.0012845472, 0.0663287714, 0.2202924937, -0.1101970747, 0.045188196, -0.0529712737, 0.3104573786, 0.0357818827, 0.2876128256, 0.1312076151, 0.029160805, -0.1718655229, 0.0844166577, -0.0481678434, 0.0933863223, -0.0488116965, 0.4057822227, 0.0755933374, -0.519316256, 0.1798739731, 0.2910909057, -0.483324945, -0.2664083242, 0.1483105123, -0.6427665949, 0.0150820166, 0.0711623728, 0.0286361016, -0.0711161271, 0.3917163908, -0.429982394, 0.4232679605, -0.3951329589, -0.0731767192, -0.165528208, -0.0722799599, -0.1821722388, 0.1409939826, 0.02467224, 0.4999514222, 0.2592583597, 0.4662971199, -0.0587025285, 0.0591152161, -0.3290483057, 0.5914943218, -0.3510629833, 0.4751756787, 0.3905498683, -0.2426532507, 0.0615282729, -0.2855623364, 0.4005370438, 0.0933428779, 0.0339243263, -0.1799995601, 0.2867391706, 0.0044839233, 0.2107118964, 0.1944088936, 0.1932997406, 0.068605423, -0.3118368387, -0.1851774752, -0.0143257789, 0.3048580885, -0.1415352374, -0.0948519111, -0.1159193516, 0.5137308836, -0.245566994, 0.338249892, 0.0592236966, -0.1040130258, -0.1777092516, -0.4909540713, -0.175888285, 0.0819056183, 0.0400156155, 0.3124935627, -0.1231912822, 0.490373075, 0.2959271073, 0.0327534974, -0.1817990839, -0.1321295202, 0.2517082095, -0.165727824, -0.1034458801, -0.0664741769, 0.2598739564, -0.4155709445, 0.5195028782, -0.2491626889, -0.1954659075, 0.2228464484, 0.0593372472, -0.3831812143, 0.547203064, 0.0982532501, -0.6427067518, -0.0774780586, -0.1920470446, -0.0915122777, -0.2088401765, -0.2902124524, -0.2356252521 ]
https://github.com/huggingface/datasets/issues/2655
Allow the selection of multiple columns at once
Hi! I was looking into this and hope you can clarify a point. Your my_dataset variable would be of type DatasetDict which means the alternative you've described (dict comprehension) is what makes sense. Is there a reason why you wouldn't want to convert my_dataset to a pandas df if you'd like to use it like one? Please let me know if I'm missing something.
**Is your feature request related to a problem? Please describe.** Similar to pandas, it would be great if we could select multiple columns at once. **Describe the solution you'd like** ```python my_dataset = ... # Has columns ['idx', 'sentence', 'label'] idx, label = my_dataset[['idx', 'label']] ``` **Describe alternatives you've considered** we can do `[dataset[col] for col in ('idx', 'label')]` **Additional context** This is of course very minor.
64
Allow the selection of multiple columns at once **Is your feature request related to a problem? Please describe.** Similar to pandas, it would be great if we could select multiple columns at once. **Describe the solution you'd like** ```python my_dataset = ... # Has columns ['idx', 'sentence', 'label'] idx, label = my_dataset[['idx', 'label']] ``` **Describe alternatives you've considered** we can do `[dataset[col] for col in ('idx', 'label')]` **Additional context** This is of course very minor. Hi! I was looking into this and hope you can clarify a point. Your my_dataset variable would be of type DatasetDict which means the alternative you've described (dict comprehension) is what makes sense. Is there a reason why you wouldn't want to convert my_dataset to a pandas df if you'd like to use it like one? Please let me know if I'm missing something.
[ -0.057370469, -0.2296809852, -0.1969854087, 0.0512580238, 0.201422736, 0.2186502963, 0.5181807876, 0.1173711792, 0.3343809545, 0.408284843, -0.1473215669, 0.3830782473, 0.000723416, 0.219599694, -0.2610398233, -0.3490300477, -0.1463273168, 0.1411355734, 0.0857271925, 0.0135871023, -0.1727698147, -0.3008393347, -0.3479202986, 0.0155922174, -0.0639108717, -0.2046381831, -0.2487482131, -0.2731155455, -0.3745284081, -0.2284193039, -0.0509770885, 0.4818701446, -0.0998930186, 0.0420988351, -0.0001022023, -0.2425406724, 0.0494165085, 0.0450045168, -0.3728042543, -0.3197797835, -0.1985393763, -0.2248337716, 0.3259707093, -0.3805672526, -0.1459851563, -0.1769074798, -0.2034195662, -0.252613157, -0.0332646891, 0.0878676102, 0.3098186851, -0.0141788833, -0.2125747502, 0.0007962659, -0.0395886451, 0.1632220596, -0.1948772967, -0.0862278044, 0.4251428545, -0.0222681221, 0.2404666692, 0.1023098379, -0.2389608324, 0.079936862, 0.078968063, 0.1655117273, 0.278115809, -0.2613494992, 0.0809774324, 0.2927647233, 0.7717722058, -0.1894662827, -0.4718900919, -0.2102407068, 0.4684535563, -0.1977855563, -0.3191841245, 0.2664963901, -0.2287949175, 0.2275186926, 0.1129402518, -0.2688915431, -0.1090146974, 0.1486847997, -0.1557212174, 0.3326570094, -0.0430135727, 0.0551570281, 0.1314315796, -0.0222346876, 0.1233641952, -0.1049085334, 0.1292736828, 0.1556301415, -0.6503590345, -0.2172845602, -0.2239075154, -0.2029287666, 0.1681587249, 0.215999499, -0.0236093067, -0.0231380798, -0.1188302487, 0.3164629638, 0.4838552177, -0.0458059683, -0.0439748764, 0.3890667856, -0.0343433768, -0.1517444551, 0.009491168, -0.0180745516, -0.0910572559, 0.0409746319, 0.0095804706, 0.2227685153, 0.0332288221, 0.0254825279, -0.2143531144, -0.2053006142, -0.1048717946, -0.256632179, -0.0612865686, 0.4625503719, 0.1120597422, 0.3907715976, -0.1936306208, 0.2314952016, 0.2148043662, -0.2290375382, -0.2068745196, 0.2864535451, 0.1582294405, -0.1184984446, 0.1220541447, 0.0670836717, -0.1788310111, 0.3173829317, 0.0300924461, -0.3956840038, -0.1217479259, -0.3682629466, 0.0412878804, 0.1645926088, -0.0171067715, 0.1042749435, 0.2690171599, -0.2168728858, -0.3145562112, 0.3942931592, 0.0467406847, -0.1573520899, -0.21714136, 0.1881259382, 0.1842948794, -0.3066887856, -0.0916231051, 0.5061644912, -0.0624876879, 0.3623633981, 0.1700687855, 0.0290997475, 0.0495877862, -0.3428072333, -0.0607746355, 0.3431544602, -0.5089312196, 0.0842319503, 0.1649496108, -0.096729219, -0.0080227479, 0.1633623242, -0.2780388892, 0.0863050967, 0.2251903862, 0.0358407497, 0.3047421575, -0.3884336948, -0.114421837, 0.1912813485, 0.0785428733, 0.1773524433, 0.4585635364, 0.1077364981, 0.1881623566, 0.2333643138, 0.0577280894, 0.1933404803, 0.0248733368, 0.0773602203, 0.2218866348, -0.4066194892, 0.2764486074, 0.1477504373, -0.1539057046, 0.1683893949, -0.1599243134, -0.1816745102, 0.3445219398, -0.2589390278, -0.1385622174, 0.1810885221, 0.313121736, 0.1123531759, -0.0972970128, -0.4043034613, -0.2775417864, 0.1191290393, 0.4883981645, 0.1380018294, 0.0122438632, -0.4381889999, -0.1534578204, 0.0582767949, -0.1595157534, 0.1654389799, 0.2506509423, -0.2094158381, -0.1075734645, -0.1019806713, -0.5070765615, 0.3666982055, -0.1956880391, 0.137177825, 0.198846072, 0.1711435914, 0.0042811856, 0.1743842661, 0.0299108773, 0.0195627902, 0.2008829266, 0.1793608665, 0.149104774, 0.0841175169, 0.1976445317, -0.0701236948, -0.3016872406, -0.0303097665, 0.0741779655, 0.1923078895, -0.0160456095, -0.2838521898, 0.1254214793, 0.0264125317, -0.1852660477, 0.0936237797, -0.1243557781, 0.2316796184, 0.0130066201, 0.0152298585, 0.1907401532, -0.1493622959, -0.1304417849, -0.3635961413, 0.0054599289, -0.0161967576, -0.0854951441, -0.0368622169, -0.4798964262, -0.023961477, 0.0446463861, 0.1415293813, 0.1112429202, 0.0083404155, 0.2061223686, 0.1885335594, -0.0144462921, 0.2635806203, 0.3555056155, 0.2335147858, -0.2185614854, -0.1486165375, -0.0873391032, 0.043703869, 0.1772313416, 0.1707767546, 0.0495431013, 0.1987361759, 0.1211190969, 0.0136510693, -0.1565972567, -0.1618945003, 0.2901346684, 0.1482461244, -0.0390657745, -0.0574764423, -0.4436934292, -0.3970939815, 0.2507373393, -0.1709858775, 0.2013520151, -0.2210757136, -0.0407893993, -0.0284859985, 0.0827125981, -0.1632943898, -0.1330611408, 0.39565593, -0.0260783508, -0.0435181148, 0.1253520548, -0.0867814422, 0.2436130196, 0.183294639, 0.036331445, 0.0684396252, 0.1590239108, 0.5090216398, -0.1408692747, -0.2823235095, 0.0954572856, 0.0301747303, -0.1105842143, 0.1571654975, 0.2084632367, 0.227052927, -0.028624475, -0.0005951338, 0.1542893201, 0.5449559093, -0.0339259133, -0.1696294844, 0.293104291, -0.0085177757, -0.0150814317, -0.1630133688, -0.4817565084, -0.3427665234, 0.2621436715, -0.0571564287, 0.1788184792, -0.0686617345, -0.0465504751, -0.3099001646, 0.1274475455, 0.3333831131, -0.3092622161, 0.1138574034, 0.1015175581, -0.1127337366, -0.1350674331, -0.275064975, 0.0670816526, 0.0355205499, -0.106412977, -0.0677804127, -0.2876263261, -0.2491896451, -0.1500191838, -0.2234163731, 0.1457674354, 0.0861838385, 0.1993302554, -0.0843113959, -0.0341171622, -0.1865894943, 0.0430479422, 0.3065353334, -0.1867838502, 0.1513660252, 0.2028805614, 0.0744919777, 0.0181313567, 0.4157295823, 0.2260369807, 0.2796541154, -0.0739426985, -0.0371487513, 0.0357309654, -0.3922092915, -0.3193702698, -0.2047728747, 0.0584678054, 0.0416636989, -0.0320727006, -0.0897011384, -0.2026485205, 0.2067475319, -0.193120569, -0.1450479329, 0.0521598384, -0.4818815887, 0.0891079307, -0.1158980057, -0.1679169536, -0.1721759439, 0.2199622691, -0.1573327333, 0.0282428712, 0.1448345631, -0.307613641, -0.1853603423, -0.0703724772, -0.20664379, 0.0887704566, 0.1710276604, 0.2410675585, 0.1262307465, 0.1908347607, 0.294906646, 0.191714108, 0.6330708265, -0.3205320835, -0.4039381742, 0.09167023, -0.219968006, -0.2654646039, 0.0371427536, -0.2144472897, -0.1425649971, -0.2723600566, 0.2915308475, -0.4198492169, -0.1505189836, 0.3161566854, 0.3153995275, -0.2118120193, -0.4538208246, 0.0145481676, 0.117298983, -0.2215429097, -0.0664240047, 0.2788381577, 0.1231235266, 0.1009593159, 0.0123828575, -0.1080928743, -0.1009779125, 0.2842494845, 0.0370030627, -0.0776289999, -0.0487519577, 0.120940268, 0.0725597218, -0.0783500448, -0.1066668108, 0.5034684539, -0.2633039653, -0.3774500489, -0.1949515045, -0.067682609, 0.6232671142, 0.3686962128, 0.1476383954, 0.7594149709, -0.309707135, -0.0316558965, -0.0905640572, -0.4885084331, 0.3002041578, -0.0555301048, -0.3722088337, -0.5473954678, 0.4530600011, -0.0088565946, -0.095087029, 0.3091556132, 0.3756284118, -0.065113984, 0.3224088848, 0.1247903109, 0.8138469458, -0.2744168043, -0.1229398623, -0.3575760424, -0.1176920235, 0.4589074254, -0.082384482, 0.1852676868, -0.2941490114, -0.3110415041, -0.0497845151, -0.0187122077, 0.2967815399, 0.2600573897, -0.3409374952, 0.0782407746, -0.4393918812, 0.0698704273, 0.1553504765, 0.2486588359, -0.1398485899, -0.2777967751, -0.1104581505, 0.1425044984, -0.1122368425, -0.1461512446, 0.1312574297, 0.1054700986, -0.0545460321, 0.0209371895, -0.4702289701, -0.2768165469, -0.076512903, 0.1107349545, 0.0855399668, -0.1964542419, 0.332731545, 0.2712891996, 0.1146993786, 0.2238536477, 0.109985888, 0.0301441103, 0.1507939696, 0.0676316321, -0.2251381427, 0.0081455, 0.2617017329, 0.1127973646, -0.3346253633, 0.3105541468, 0.1175572202, -0.5033833981, -0.3143618703, 0.2931497991, 0.3977461457, -0.2647146583, -0.4058217704, -0.0048081726, 0.1831258535, -0.3095092475, 0.1849839687, 0.0178679582, -0.0193056893, 0.3045941591, 0.0085477671, 0.1418852806, -0.0627702698, 0.076244399, 0.1791880429, -0.0277928859, 0.203311041, 0.15646559, -0.2664811611, -0.2013559639, -0.0680584311, -0.144998461, 0.0511510074, 0.1259913146, -0.0413153395, 0.0199129581, 0.0658487678, 0.3281393051, 0.0102786906, 0.2176455259, -0.3694010377, -0.3393455148, 0.0748287365, 0.1342157722, -0.065999046, 0.2429779023, -0.1170241982, 0.077622816, -0.319879204, 0.2393063605, -0.3837424517, -0.1677518785, -0.3384577036, 0.0895201266, 0.4663956165, 0.088588208, -0.3127020895, -0.0063826963, 0.3497032225, 0.1977301687, 0.3647488058, -0.3827805817, -0.2339260727, 0.0406804681, 0.168904081, 0.329472065, -0.004332453, -0.2240866125, -0.2607190609, -0.1267699599, 0.1428365707, 0.2729927897, 0.0092670619, 0.1664815247, 0.0210780222, -0.2067383379, -0.2106307596, 0.1579303741, -0.1462680101, -0.1051933914, 0.2947709262, 0.1650698781, 0.0194179043, -0.0111256614, -0.4132355452, 0.1817749441, -0.0364188515, -0.0044777365, -0.0662928969, 0.0791310072, 0.191642046, -0.0268949792, 0.377266407, 0.1328653842, -0.1443951279, 0.2026526928, 0.2215278745, 0.2833151817, -0.3196437955, -0.3168652952, -0.1006964296, 0.0153602697, 0.3064979315, 0.6884783506, 0.0813974142, 0.2372497469, 0.1005141661, -0.310985595, 0.2229534686, -0.0204652399, 0.0466401353, 0.5463964939, 0.1399906278, -0.3324565589, 0.2372805327, 0.2519736886, 0.0924374759, 0.2494703531, -0.006837748, -0.000460241, 0.1208662167, 0.0719119757, 0.3791204393, -0.0603928231, 0.5356016755, -0.0790698379, -0.1834259331, -0.1936289817, -0.1061276942, 0.0947577134, -0.0275889225, 0.0609729886, -0.2364515662, 0.3580084145, -0.0336460695, -0.2596780658, 0.0461703613, -0.1539089084, 0.1392644048, -0.1982192695, -0.0651955381, -0.3060319424, 0.0937925726, -0.1541677415, 0.4040586054, -0.3358251452, 0.2959900796, -0.0621732324, 0.4309235811, -0.3050547242, -0.0093304422, 0.0279920213, 0.0790501684, 0.1278961003, 0.1090113595, 0.0680751801, 0.2636184692, 0.058940582, -0.110926047, -0.4688369334, -0.1591543555, 0.2030151039, -0.0085283695, 0.0494160205, -0.03068134, 0.4116614461, 0.2149247825, -0.1834035814, -0.0107743107, 0.2067623436, 0.3893940449, -0.6877527237, 0.1380577534, 0.3034946918, -0.2025027871, 0.1468920112, -0.0361426473, -0.4176557362, -0.2483057678, 0.1312694699, -0.0821691453, 0.0702010691, 0.1576976776, 0.169178158, -0.0320063755, -0.1209989041, -0.0300238766, 0.1371435523, -0.1160302758, 0.0243169963, -0.2183525264, -0.2465982437, -0.0963770524, -0.5737486482, 0.3190417886, 0.0891865194, 0.1561412662, 0.2560800016, 0.1114948988, -0.046607662, -0.1248680577, 0.5571187139, -0.18550165, -0.3769249916, 0.1967997402, 0.013088705, -0.0289813913, -0.1083410606, 0.1454728991, 0.1599440277, 0.1609100252, -0.3709367216, 0.2120979726, 0.1374095976, 0.0904126018, 0.0504022986, -0.0397357196, 0.4085711837, 0.0949269831, 0.1440528929, 0.035395734, 0.0942070186, -0.2229652405, -0.0063298345, 0.1614855975, 0.2372976243, -0.1276749074, -0.0223605856, 0.1613537073, -0.0775214136, 0.023507908, -0.0818514824, -0.1837725937, 0.1447619647, 0.3329291642, -0.1348552555, -0.0858379155, 0.0106969839, -0.0539035909, 0.1986067295, 0.1370077282, -0.3265914917, 0.2328224778, 0.0593990609, -0.338837862, 0.0896385908, 0.0826263875, -0.0613290295, 0.1992232651, -0.2359573096, -0.1262846589, 0.3931284249, -0.0934769958, -0.1359138489, 0.4957376122, 0.1258693337, 0.0235415921, -0.1318912059, -0.2299887985, -0.0278313402, 0.1875176728, -0.4701178074, -0.2491232753 ]
https://github.com/huggingface/datasets/issues/2655
Allow the selection of multiple columns at once
Hi! Sorry for the delay. In this case, the dataset would be a `datasets.Dataset` and we want to select multiple columns, the `idx` and `label` columns for example. My issue is that my dataset is too big for memory if I load everything into pandas.
**Is your feature request related to a problem? Please describe.** Similar to pandas, it would be great if we could select multiple columns at once. **Describe the solution you'd like** ```python my_dataset = ... # Has columns ['idx', 'sentence', 'label'] idx, label = my_dataset[['idx', 'label']] ``` **Describe alternatives you've considered** we can do `[dataset[col] for col in ('idx', 'label')]` **Additional context** This is of course very minor.
45
Allow the selection of multiple columns at once **Is your feature request related to a problem? Please describe.** Similar to pandas, it would be great if we could select multiple columns at once. **Describe the solution you'd like** ```python my_dataset = ... # Has columns ['idx', 'sentence', 'label'] idx, label = my_dataset[['idx', 'label']] ``` **Describe alternatives you've considered** we can do `[dataset[col] for col in ('idx', 'label')]` **Additional context** This is of course very minor. Hi! Sorry for the delay. In this case, the dataset would be a `datasets.Dataset` and we want to select multiple columns, the `idx` and `label` columns for example. My issue is that my dataset is too big for memory if I load everything into pandas.
[ -0.1123059466, -0.3079829812, -0.1617852449, 0.1745088398, 0.2768076658, 0.2954529524, 0.4830071926, 0.1078623235, 0.2709565163, 0.4354280233, -0.1071548685, 0.1811608076, -0.0057085603, 0.1110234484, -0.120576337, -0.4149236381, -0.1460115314, 0.1239383146, 0.1093642861, 0.1609404534, -0.1801461875, -0.4086983204, -0.2840023935, -0.0011805147, -0.0922962055, -0.121914506, -0.3127510846, -0.3032178283, -0.3770622313, -0.2049788833, -0.0196615495, 0.3044013381, -0.0134688355, 0.1382127106, -0.0001026555, -0.2590751648, 0.128684625, 0.1175029054, -0.2449212968, -0.1337270439, -0.2202558964, -0.3395716548, 0.2827407122, -0.3361621499, -0.0875568092, -0.1732640266, -0.2556638718, -0.1358379871, -0.2600293159, 0.0658954829, 0.3234617412, 0.1528978795, -0.1889440268, 0.0023041591, 0.0063465815, 0.127767995, -0.2579072118, -0.1608471572, 0.4758289456, -0.1474865675, 0.3507172763, -0.0039971843, -0.1867641062, 0.0326896161, 0.0836206228, 0.1034264416, 0.2566024363, -0.2503734529, 0.1066822261, 0.2868083715, 0.725577116, -0.1725481153, -0.4039956927, -0.1537712663, 0.5212611556, -0.3376424909, -0.2131013572, 0.5081316233, -0.1903931051, 0.1000802368, -0.0466959253, -0.3265552521, -0.0729804635, 0.2228529006, -0.1081900597, 0.2732256055, 0.0282640532, 0.0392635688, 0.3872616887, -0.0016128039, 0.2152477801, -0.1840663999, 0.1768381298, 0.2321213484, -0.7773073912, -0.2501902282, -0.2356764376, -0.1116907448, 0.2165343314, 0.1640049815, 0.0277210362, -0.1002435833, -0.1828405559, 0.2871478498, 0.4455349445, -0.0151290447, -0.306645304, 0.3155572712, 0.1022444218, -0.0562237278, 0.1859586686, -0.0062980219, 0.027145505, 0.0207340382, 0.2195994109, 0.1581206024, -0.1780443788, 0.0976189524, -0.0328995176, -0.265165478, -0.0894480273, -0.2567324936, -0.0282298308, 0.3676393032, 0.0666404516, 0.3588039279, -0.1916097254, 0.1649851799, 0.1718436629, -0.2895754278, -0.2468196154, 0.3928833902, 0.0549771637, -0.0291882902, 0.2498268783, -0.025098471, -0.208854124, 0.3734061122, -0.0406707302, -0.3881931007, -0.0490618497, -0.4134008884, -0.0146455839, 0.2703150213, 0.0037305728, 0.0997228697, 0.1696855128, -0.0508774556, -0.3953900635, 0.4790830016, -0.0024671219, -0.3585241139, -0.0582649559, 0.1234735548, 0.2299956381, -0.1256330311, -0.2516843677, 0.392102778, 0.0448530316, 0.40985623, 0.2616650462, 0.0018018745, 0.0157512277, -0.2986847758, -0.0468570776, 0.3674305677, -0.3242013454, 0.1272621751, 0.076846242, -0.1038112789, -0.0715088993, 0.2260806561, -0.2931676805, -0.0978574753, 0.1805268824, -0.0130633563, 0.2161762416, -0.2442469597, -0.0900665596, 0.0857364684, 0.0422935635, 0.0927946791, 0.4033918381, 0.2204861343, -0.0306513309, 0.2627087831, 0.0579533577, 0.3283011317, -0.0521462187, 0.2525756359, 0.199408412, -0.4831071496, 0.2263853699, 0.1378237158, 0.0445588753, 0.0151861124, -0.1832601875, -0.086548619, 0.2737625241, -0.1824588478, -0.1385209262, 0.2540955842, 0.1792690307, 0.0199867394, -0.1123361588, -0.3947774768, -0.3011068106, 0.1568818986, 0.4884353578, 0.0642902628, 0.1696429849, -0.2737740278, 0.0390782133, 0.00452701, -0.0981856585, 0.2652836144, 0.1543953717, -0.2062117159, -0.002978459, -0.101104714, -0.3993159533, 0.4738372266, -0.2296880186, 0.1321181655, 0.0275057405, 0.2511869967, 0.0649993122, 0.124628745, 0.1646049619, -0.1319043636, 0.2843924165, 0.1517540514, 0.0908201188, 0.1125610247, 0.1458586305, 0.064682737, -0.3552847505, 0.1177158505, 0.1671924293, 0.1794781983, 0.0260348078, -0.3332146406, 0.0846311301, 0.024697125, -0.1232126057, 0.0588424504, -0.3414193094, 0.2632932067, 0.1129575521, -0.0123407468, 0.1553326249, -0.1083925813, -0.1047373861, -0.1918959916, 0.1666088998, 0.0842894986, -0.2391906381, -0.0248147566, -0.6293268204, -0.1653968394, -0.0721651018, 0.1629371643, 0.0634674206, -0.0024514683, 0.1556060165, 0.201586619, 0.0425245166, 0.114236325, 0.47955966, 0.1736519337, -0.2230084985, -0.1962167025, -0.0580710769, 0.0025854707, 0.1832001209, 0.2066927999, 0.045741573, 0.1509783417, 0.2637328804, -0.0220890138, -0.1352915317, -0.0007266477, 0.4631792605, 0.1383934319, 0.0121777132, -0.0780442655, -0.4353891313, -0.2944477797, 0.1450493038, -0.20592843, 0.1311486363, -0.0954129994, -0.0634455383, 0.1592476368, 0.1958410889, -0.2035660744, -0.2929729819, 0.5270132422, -0.0790489838, 0.0136274863, 0.132864207, 0.1082936823, 0.2760705948, 0.1199757233, 0.1261198968, 0.0356755368, 0.1787352711, 0.6488927007, -0.1277385056, -0.3254694939, 0.114714101, -0.0649889857, -0.0020179118, 0.0803012401, 0.0581909344, 0.1841232181, 0.0059465766, -0.0061486587, 0.1868943423, 0.4603096843, 0.0214346647, -0.1087108403, 0.2561409771, 0.0313774794, -0.00327719, -0.0456619412, -0.4483948052, -0.3211636543, 0.2327328771, -0.1309588253, 0.1882288158, -0.1114172488, -0.0094254725, -0.4182294905, 0.0695732981, 0.1007769927, -0.2108720541, 0.0373314768, 0.1368306577, -0.121845156, -0.1473862529, -0.2751777768, 0.1980689168, 0.0036964179, -0.0153309423, -0.1016478837, -0.1861818731, -0.3659267724, -0.2651928067, -0.2874385118, 0.1633552015, 0.1649813503, 0.1100183278, -0.0244298913, 0.0806229264, -0.2668938637, -0.0728357583, 0.3453056216, -0.0653499514, 0.2039984018, 0.2225225568, 0.0862638205, 0.0524852201, 0.364397496, 0.2674492598, 0.310944587, -0.0122173596, -0.1367588639, 0.0528556369, -0.5359564424, -0.32181108, -0.2036452442, 0.1261135191, 0.0635129735, -0.0032934267, -0.1805377007, -0.2337545753, 0.2082328498, -0.0170644075, -0.082948193, 0.0652044564, -0.3010800481, 0.2161559612, -0.2076056153, -0.3492347598, -0.3170902431, 0.0577972755, -0.1490225643, 0.0522460714, 0.0873312429, -0.2652099431, -0.1717198342, -0.0842929631, -0.2234995067, 0.0026798621, 0.11234878, 0.2241789997, 0.0920044705, 0.2355044484, 0.3232548833, 0.27593261, 0.6166086197, -0.1745448709, -0.383796066, 0.0508944914, -0.3853894174, -0.3669198155, -0.0413618647, -0.1233105808, -0.1569226086, -0.3198366761, 0.4189451337, -0.2965473235, -0.1368431896, 0.3415649533, 0.3486962616, -0.2732387185, -0.564830482, -0.0781128258, 0.1573352516, -0.1444009691, 0.0061025135, 0.2095872462, 0.1210961491, 0.0263994485, -0.0221588388, -0.0957029536, -0.0920033753, 0.283513248, -0.163926959, -0.1478693932, 0.0068456233, 0.2150205523, 0.0852210224, -0.2006318718, -0.1354100406, 0.4599725902, -0.2418030351, -0.3409655094, -0.1602626294, -0.0587924831, 0.5828819275, 0.3401699066, 0.2183075696, 0.7634490728, -0.3323466182, 0.0773624182, -0.1714490652, -0.454792738, 0.2537869811, -0.1395791471, -0.3544486165, -0.4438310862, 0.5387896299, 0.0798115358, -0.0491323844, 0.3948583305, 0.3442942202, -0.0674317107, 0.000040967, 0.1498575509, 0.8275066018, -0.4315553606, -0.2111636698, -0.4902248383, -0.0841285735, 0.3179246187, -0.1431907713, 0.3381865025, -0.249423787, -0.5191373229, 0.0597462878, -0.0786458254, 0.2748967409, 0.1233875006, -0.2035632581, 0.010694433, -0.4162716866, 0.0267459303, 0.0781416968, 0.2290372998, -0.138508454, -0.3053472638, -0.0736826211, 0.1564331204, -0.1514737159, -0.1041842401, 0.1494265795, 0.2186591178, -0.0521987118, 0.0623731464, -0.4842538834, -0.1886459291, -0.0390996002, 0.2016899288, -0.0052029057, -0.1411775053, 0.2614846826, 0.2431995571, 0.0940678641, 0.1636535674, 0.1816764027, -0.0763617456, 0.0898226351, -0.0293336194, -0.3864738941, 0.0532240681, 0.1954734474, 0.052370891, -0.3014810681, 0.4472314715, 0.1216008514, -0.5736988187, -0.405783236, 0.3636288345, 0.3562044501, -0.1317463815, -0.4770764709, 0.0079830438, 0.2676300704, -0.234388873, 0.1771583855, 0.0703546703, 0.0031156503, 0.3291619122, -0.013482241, 0.1683644652, -0.127803117, 0.2369878739, 0.1456728727, 0.0540695116, 0.1863731742, 0.2619102895, -0.204437077, -0.140917182, -0.0470542908, -0.0204166565, 0.0557824075, 0.03699838, -0.2269258797, 0.0865377188, 0.1522174031, 0.2939557433, -0.0061813109, 0.1769744605, -0.2811830342, -0.2921190262, 0.0165200755, 0.0989246964, -0.0559583902, 0.2511585057, -0.1503309309, -0.0370118693, -0.3057660758, 0.3603934348, -0.3364816904, -0.0905225724, -0.2678505182, 0.1122491509, 0.4826425612, 0.1033252552, -0.4487978518, -0.0426024981, 0.2752298415, 0.1906017065, 0.3579069376, -0.3008052111, -0.2160655707, 0.0401901603, 0.1674355119, 0.2823281884, 0.0328254886, -0.3111069798, -0.2416775823, -0.0723746866, 0.1359639615, 0.2352171689, -0.0181067064, 0.0346981175, 0.1205168068, -0.4068871737, -0.2512095571, 0.3073611856, -0.1420866698, -0.1013439223, 0.3795369565, 0.1628580987, 0.1169069409, -0.0098361522, -0.594337821, 0.1291298866, -0.0624102019, -0.0212282073, -0.0049674641, 0.1171779335, 0.2263099998, 0.0395614617, 0.2011490166, 0.0559255295, -0.1185513139, 0.3107337952, 0.1497651339, 0.2267701626, -0.238706395, -0.4814907908, -0.2971483171, 0.1094646081, 0.1556464434, 0.6094636321, 0.1171149313, 0.2621333599, 0.0417832881, -0.2218048871, 0.2776864171, -0.0027746772, 0.0446512811, 0.5172436833, 0.1084972918, -0.3845742643, 0.3676689267, 0.2722570896, 0.0327549428, 0.0297849122, -0.0118309371, 0.0362432525, 0.0675964504, 0.0136896595, 0.3687846959, -0.1322775185, 0.23241207, -0.0362099558, -0.146141991, -0.1416945457, -0.1570496559, 0.1373044252, -0.0495221987, 0.0644797832, -0.3368619978, 0.3564510047, -0.0149762994, -0.1321480572, 0.1006452963, -0.1782670766, 0.0650984496, 0.0190558061, 0.0225718915, -0.280274868, 0.3539922833, -0.089671813, 0.3283389807, -0.2615712583, 0.3097864389, 0.2304593176, 0.3455486894, -0.3301075995, -0.1253713816, -0.0218318775, -0.0188373737, -0.0075642141, 0.087479718, -0.104345873, 0.2899874747, 0.2223844826, -0.0856923014, -0.4326571226, -0.1236099005, 0.245962888, 0.0005932897, 0.1164963245, 0.0103419889, 0.3054496646, 0.1678984463, -0.1868193299, 0.0468548164, 0.1130275354, 0.4121385813, -0.8193488121, 0.0993724614, 0.3142162263, -0.2676081061, 0.0531290881, 0.0157384053, -0.3119898438, -0.1369479746, 0.1825880557, -0.0499924421, -0.0048549958, 0.1363016069, 0.1282061785, -0.1264781952, -0.0353247412, -0.0439515784, -0.0469570197, -0.1979513913, -0.1068291217, -0.2249565125, -0.2449551523, -0.2073523551, -0.4267038703, 0.4060290158, 0.0711869821, 0.0132243037, 0.2281348258, 0.1053833663, -0.1622510105, 0.0006872788, 0.5898196101, -0.2509427369, -0.3970302045, 0.2623256147, 0.0200805496, -0.0306449644, -0.0898487419, 0.2543356419, 0.1397684962, 0.1256918907, -0.4077949822, 0.2397903502, 0.0784810483, 0.2195714712, 0.1887874752, -0.1125884131, 0.2785730958, 0.1620334983, 0.1520569175, -0.0482206792, 0.1639134586, -0.1264467239, -0.0584521554, 0.1564705521, 0.2043754458, -0.2094188035, -0.0072862683, 0.1009927094, 0.0564741567, -0.159769237, -0.140217483, -0.0518525168, -0.0705236122, 0.3543418944, -0.0740793273, 0.0884360671, -0.0341242962, -0.0702602714, 0.1476792544, 0.1522470713, -0.2481178939, 0.0753120705, 0.090755254, -0.1930681765, -0.0810830742, 0.1452883184, -0.106294632, 0.2746170759, -0.259627074, -0.1857054234, 0.3158003688, -0.1611783057, -0.0726445317, 0.5669780374, 0.1610435545, 0.0384033397, -0.1069217473, -0.1774675846, 0.0077996515, 0.2639754415, -0.4143881202, -0.1318206787 ]
https://github.com/huggingface/datasets/issues/2654
Give a user feedback if the dataset he loads is streamable or not
I understand it already raises a `NotImplementedError` exception, eg: ``` >>> dataset = load_dataset("journalists_questions", name="plain_text", split="train", streaming=True) [...] NotImplementedError: Extraction protocol for file at https://drive.google.com/uc?export=download&id=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U is not implemented yet ```
**Is your feature request related to a problem? Please describe.** I would love to know if a `dataset` is with the current implementation streamable or not. **Describe the solution you'd like** We could show a warning when a dataset is loaded with `load_dataset('...',streaming=True)` when its lot streamable, e.g. if it is an archive. **Describe alternatives you've considered** Add a new metadata tag for "streaming"
30
Give a user feedback if the dataset he loads is streamable or not **Is your feature request related to a problem? Please describe.** I would love to know if a `dataset` is with the current implementation streamable or not. **Describe the solution you'd like** We could show a warning when a dataset is loaded with `load_dataset('...',streaming=True)` when its lot streamable, e.g. if it is an archive. **Describe alternatives you've considered** Add a new metadata tag for "streaming" I understand it already raises a `NotImplementedError` exception, eg: ``` >>> dataset = load_dataset("journalists_questions", name="plain_text", split="train", streaming=True) [...] NotImplementedError: Extraction protocol for file at https://drive.google.com/uc?export=download&id=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U is not implemented yet ```
[ -0.3121465147, 0.1084257066, -0.0998006538, 0.0617052652, 0.1377475411, -0.1033983454, 0.1825838685, 0.2757681906, -0.0348223597, 0.2482773066, 0.2372249961, 0.2212014794, -0.4187546074, 0.2228206396, -0.2498128712, -0.1057738364, -0.1940760016, 0.226680398, 0.1973604709, 0.0241289511, 0.0500812754, -0.1404723972, 0.1259075999, -0.227545023, 0.0955902487, 0.0408224314, 0.2770474851, 0.0032739136, -0.4309591949, -0.4094036222, -0.1264719069, 0.5943686962, 0.1119763851, 0.3047806025, -0.0001064388, -0.1363655627, 0.4294649661, -0.0646334291, -0.4166702628, -0.2811458707, -0.2709994316, -0.0456952676, 0.3828912675, -0.0648995414, -0.2366085351, 0.0000309572, 0.1893440485, -0.2507542372, 0.398090899, 0.3040388525, 0.1841345727, 0.1431601644, -0.16896604, 0.1103192121, 0.2620269656, 0.2505024672, -0.2353684604, 0.1992794871, 0.1344200224, 0.3304213881, -0.3621218204, 0.3760131896, -0.1080572158, 0.0278846696, 0.2396205962, -0.1162741035, -0.2675048411, -0.3587146997, -0.1097212434, 0.3916170895, 0.8121818304, -0.0677937046, -0.2669245005, -0.2799866796, 0.2192743421, -0.1652312875, 0.2707593441, 0.0779113099, -0.308714807, 0.2289717793, -0.3739489019, -0.3058995008, -0.422328949, 0.0608521253, 0.0020893589, 0.2876544893, 0.0454271547, -0.0564264916, 0.2633791864, 0.1848204732, 0.2292188257, 0.0431780107, 0.0234702118, -0.0227359515, -0.3078719676, -0.3380286694, 0.0473387949, -0.1607310623, 0.1749159098, 0.3495373428, 0.3600505292, 0.1747977436, -0.0686456934, 0.2610440552, 0.3030859232, -0.0043785796, 0.1163039356, -0.2984132171, 0.3219970465, 0.1630396694, 0.1393439025, -0.1453951001, 0.1518914551, 0.1023418158, 0.1967500448, 0.138923347, 0.4190606475, -0.1786616296, -0.1202382445, 0.0440849178, -0.2055463791, -0.3528246284, 0.0303817466, 0.2117038816, -0.2265864015, 0.1878921688, -0.1177256033, 0.1621883959, 0.1279755086, -0.3675709069, 0.0093997791, 0.0382103883, -0.218281135, 0.2038619816, 0.1490737945, -0.5337643623, -0.083171472, 0.0130759105, -0.1549495161, -0.0313116536, 0.3512843847, -0.1534518003, -0.003380172, 0.1138474941, -0.0161808282, -0.0984126255, -0.0082275979, 0.1018309295, -0.2609633803, 0.2310133427, -0.0887560397, -0.2245734036, 0.001880018, 0.2684468329, -0.234155193, -0.1532552987, -0.1981976032, 0.5610990524, -0.4761670232, -0.222542569, 0.149254486, 0.3053436279, -0.0972416624, -0.1726651788, -0.0284205005, 0.4456053972, -0.2409361601, -0.1790954769, -0.3171629906, -0.4264674783, 0.3974467516, 0.0774604529, -0.1762911677, 0.0792951882, 0.0524517, 0.0932534635, 0.5550781488, -0.0697786808, -0.1110174358, 0.5365389585, -0.323695153, 0.3182699382, 0.3217318058, 0.1368827522, 0.3014836907, 0.0313734971, 0.0506619886, 0.3943997025, -0.0976042151, -0.0137697756, -0.313816607, -0.2959582806, 0.1970936209, 0.2616507113, 0.1503323317, 0.1946421564, 0.1730062217, -0.1789407134, 0.1596212834, 0.0251365658, -0.0353978537, -0.0746824741, 0.4696789384, -0.0059240628, -0.390809238, 0.0882129967, -0.3534206748, 0.0092369542, 0.1217712313, 0.0998350531, 0.0756971091, -0.3154944777, -0.1760159135, -0.1409998238, -0.1186432242, 0.0458627716, 0.1992528439, 0.2442771494, -0.2380591631, 0.0990362242, -0.2280893922, 0.2491262257, -0.2165420353, 0.208342135, -0.228206262, 0.1588589549, 0.1062748358, -0.0724147707, 0.1579422206, -0.3028029501, 0.1809504479, 0.015652433, -0.0901722908, 0.3711769581, 0.0464414433, 0.5940021873, 0.0715553612, 0.2712285817, 0.2272630036, -0.2836059928, 0.1909568906, 0.303368479, 0.0110061057, 0.0073283091, -0.3751383126, 0.214303866, 0.1132769734, -0.1076526269, 0.1807175428, -0.1787672639, 0.1305250227, -0.077762872, -0.3311728537, -0.0216078833, 0.1609405279, 0.0429359302, -0.1634137481, 0.0293836575, -0.3633936346, -0.1784784049, 0.2748420238, 0.0663699806, -0.0496440679, 0.5686531663, -0.0119929798, -0.3284746706, 0.2952460647, 0.2152921557, 0.3742587268, 0.2192720324, 0.2608889937, 0.1018616259, 0.3289049864, -0.1284109652, 0.1090841293, 0.0433938727, -0.1185550988, 0.1851857603, 0.0774021, 0.0425150283, -0.4282301664, -0.1988509744, 0.0296162292, 0.1814824492, -0.0835999623, -0.0599261485, -0.0986201763, -0.159747377, 0.0016253367, -0.1829216778, -0.1229930669, -0.1221318468, 0.2737380266, 0.6344074607, -0.2617419362, -0.0066785142, -0.2472235262, 0.4284983277, -0.1542274952, -0.0365394577, -0.3052411377, 0.0085210502, 0.1265053451, 0.1804902256, 0.1358109713, -0.0603529178, 0.7215873003, 0.2235305756, 0.2180977017, -0.4833519459, -0.2957265377, 0.140023455, 0.0619996972, 0.0927764177, -0.0645021051, 0.2419243604, 0.1780841947, -0.4123821855, 0.0639031157, -0.0645541027, -0.0144774579, 0.2115995586, 0.0463889726, 0.2912009358, -0.0600490421, -0.4394125044, -0.3788756728, -0.5287728906, 0.262951076, -0.013258718, 0.0757971182, 0.2690800428, 0.0719244555, -0.1398304552, 0.1498421431, 0.091945, -0.163977474, -0.3578225672, 0.0425290018, -0.1043358967, -0.0163394976, 0.0637978017, 0.1183896437, -0.1711732447, 0.5343632698, -0.3851272464, -0.0583209433, -0.1136074141, -0.2023055851, -0.1155277789, -0.518026948, 0.2743533254, 0.1575746834, -0.2281769514, 0.1127378047, -0.028465189, -0.2289385349, 0.1795026064, 0.1157947555, 0.0684838444, 0.4184271097, 0.024206616, 0.3933289945, 0.0401673093, -0.0478448942, 0.4635879099, 0.2107444853, 0.2624152005, 0.0386316702, -0.0146241933, 0.1145385057, 0.0727311894, -0.3440085649, 0.3816344142, -0.0103278253, -0.3619114459, -0.3208194375, -0.0507945977, -0.2861062288, -0.1568213105, 0.3188705742, -0.033505667, 0.181345582, -0.1649650931, 0.0061603189, 0.2549754083, -0.2481226474, 0.0024466738, 0.395754993, 0.4271706939, -0.2007688582, -0.2212179601, 0.1668210179, -0.32075876, 0.1439553648, -0.0952143893, 0.1345739365, -0.2814964056, -0.148743093, 0.1307980716, 0.0471020415, 0.1721299887, -0.503759861, -0.3077431321, -0.1230988652, 0.1804492027, 0.1246237978, -0.1156438887, -0.1346152276, -0.0081135258, -0.0841056556, 0.2051527947, -0.3297577798, 0.0522746071, 0.1061699912, -0.136059165, -0.1200309247, -0.3209201992, -0.0839511007, 0.114154093, -0.2305554599, 0.1754378229, -0.1583167911, -0.246088624, -0.3209347129, -0.323527813, 0.244277969, 0.1414481252, 0.271574527, 0.262129128, 0.0992307067, 0.0347511135, 0.0128474757, 0.067987442, 0.0814796463, 0.3601877093, 0.4002393186, 0.173634097, -0.2835338712, 0.0120987743, -0.1100337505, 0.1290240437, 0.2547206879, -0.0725499764, 0.3577906787, 0.3873589933, 0.2700958252, -0.3172833622, 0.1379454583, 0.2631403804, -0.3558499217, -0.3819203377, -0.5331365466, 0.5077524781, -0.0340487324, -0.2249022275, 0.3006292284, -0.139723748, -0.2113224268, 0.1403762251, 0.0077702049, 1.1393030882, -0.081335187, -0.2863708436, 0.0281476714, -0.2087206542, 0.3228908777, -0.6179017425, 0.0171212107, -0.1327886581, -0.383449167, -0.2388113737, -0.0798730403, 0.1985811889, 0.1235037893, -0.6832170486, -0.0016388483, -0.0893840939, 0.1861291081, 0.0043757781, 0.6372829676, -0.3760339618, -0.1759625971, -0.4483306706, 0.1394356191, -0.2447149456, 0.2459937036, -0.1275122017, -0.1912705004, 0.417761296, -0.1814320236, -0.3381590247, -0.1181485057, -0.3152581155, -0.2668800354, -0.4614511132, -0.3543007672, 0.0680492967, 0.0507477559, -0.1740121841, -0.0937679559, -0.2449106127, 0.1707957387, -0.179325968, 0.1476753205, -0.1403564513, -0.0248744339, 0.4186313152, -0.2008973062, -0.0720931813, 0.4372832179, 0.012419872, -0.38334319, 0.103107363, -0.2847843468, 0.2615048289, -0.2877124846, -0.0195645131, -0.0967933536, -0.3447509706, -0.1151567698, 0.1612796634, 0.0826523453, -0.0092646405, -0.0857049525, 0.2834559381, -0.0651957914, -0.2721078396, 0.3171852827, 0.0930133387, -0.2397346497, 0.0075635482, -0.0255700275, -0.3257601261, -0.3389293849, -0.1403238773, 0.120182842, -0.0249488503, -0.0174282286, 0.0468679182, 0.0907496959, 0.066836372, -0.046154581, 0.138941288, 0.1220054477, -0.0399710499, -0.1642752439, -0.2067991793, 0.0837502703, -0.0763847679, 0.2557650506, -0.3581164479, -0.2978523672, 0.1445733011, 0.0498076677, -0.3824309111, -0.3346647024, -0.1456534117, 0.022001192, 0.2006405294, 0.1348557323, 0.2724144459, -0.1450314522, 0.0851257294, -0.0014297515, -0.1600330174, -0.1832201481, -0.0749988034, 0.1762990057, 0.249476403, 0.080286786, -0.1696700305, -0.1545974016, -0.1127113849, 0.0316315331, 0.2693577409, 0.0863945633, -0.1076703221, 0.1121907532, 0.2154081613, 0.2012628168, -0.4698934257, -0.1330146343, -0.1361054778, 0.2858884931, 0.1375325918, -0.1758603007, -0.02334016, -0.0657679737, -0.2573365867, 0.1921190023, 0.5488523841, 0.2320531458, 0.112817198, 0.1030883193, 0.0854140073, -0.1116760373, 0.3619668484, 0.3429031074, -0.2478907108, -0.0252952725, 0.1975703239, 0.3165724576, 0.0372550488, -0.0117167607, -0.142080918, -0.2307101041, 0.1755715162, -0.0492806211, 0.1266151369, 0.220208168, 0.3079924881, 0.0576989651, 0.0436652936, -0.1060423106, 0.3654941916, 0.2247043699, -0.0537397861, 0.0165365264, 0.1116279662, 0.0952803716, 0.0640544668, -0.1440197527, -0.0732364953, 0.4655786157, 0.1421108544, 0.0219196435, -0.1203843653, -0.3483926058, -0.0647108257, 0.4036749005, -0.1332674325, 0.3305849433, 0.3621431291, 0.2371150851, 0.1317168474, 0.0474813394, -0.2780638337, -0.1552162915, 0.0312144905, 0.3018753827, -0.1466691345, -0.303355366, -0.3367459774, 0.08959499, 0.0538836718, 0.1774702072, 0.0236674268, 0.2555822432, 0.0480022728, -0.0502859801, -0.0424844213, -0.1595506072, 0.3600118756, -0.4073133171, -0.0228465199, 0.0944227055, 0.1864828914, 0.4190040529, 0.1505406499, 0.0278037358, 0.2221665978, 0.0606838018, 0.1219133139, -0.0456664078, -0.0402870737, 0.0180279464, 0.2732661963, 0.3632719815, -0.0060753524, -0.0276231542, 0.2412565053, -0.2499463409, 0.4658034146, -0.1158831418, -0.1067913473, -0.3139310479, -0.0614185557, 0.5476936698, -0.2058521509, -0.2013745606, -0.3312001228, -0.2827060819, -0.0562995747, 0.2169635296, 0.0852725804, -0.0955081135, -0.1160289571, 0.099027127, 0.2164185792, 0.1388689429, 0.1311119497, -0.0507127792, -0.2327348888, -0.1479548365, -0.6127151847, 0.1011698991, -0.0141725354, 0.0776273608, 0.1402819604, 0.0924199745, 0.037285611, 0.5932241082, -0.2085784823, -0.2035127133, -0.1500028074, -0.0502964295, -0.4235231876, -0.1181757301, 0.3140207529, 0.0358926952, -0.2146659046, -0.1417927742, 0.1993778348, -0.1184093207, 0.0649342611, -0.2269935757, -0.1133246571, -0.0440304838, 0.2698158026, 0.5836308599, -0.0327831767, 0.6000115871, -0.2425940931, -0.0778990388, 0.0491774008, -0.0037097447, -0.1775398701, -0.0804921985, 0.1503085047, 0.5112541914, 0.3086288571, 0.0521611534, -0.475687027, 0.5256847739, -0.1372179389, -0.1262237281, -0.3493206203, -0.0594528019, 0.2060448229, 0.1305940449, -0.0129768215, 0.0898266137, 0.1220912412, -0.1428584307, -0.435002625, -0.236857608, 0.4311560392, -0.1696453094, -0.0917340517, 0.0775056034, 0.1349052042, 0.1489223838, 0.2917038202, -0.6755437851, 0.2758560181, 0.245985359, -0.2296232879, 0.284226805, 0.3128635883, 0.2513950169, 0.0803818554, 0.0008698106, 0.2112137973, 0.0321696252, -0.1610608697, -0.0838165358, -0.2469061166 ]
https://github.com/huggingface/datasets/issues/2653
Add SD task for SUPERB
Note that this subset requires us to: * generate the LibriMix corpus from LibriSpeech * prepare the corpus for diarization As suggested by @lhoestq we should perform these steps locally and add the prepared data to this public repo on the Hub: https://huggingface.co/datasets/superb/superb-data Then we can use the URLs for the files to load the data in `superb`'s dataset loading script. For consistency, I suggest we name the folders in `superb-data` in the same way as the configs in the dataset loading script - e.g. use `sd` for speech diarization in both places :)
Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). Steps: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [ ] README: tags + description sections Related to #2619. cc: @lewtun
94
Add SD task for SUPERB Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). Steps: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [ ] README: tags + description sections Related to #2619. cc: @lewtun Note that this subset requires us to: * generate the LibriMix corpus from LibriSpeech * prepare the corpus for diarization As suggested by @lhoestq we should perform these steps locally and add the prepared data to this public repo on the Hub: https://huggingface.co/datasets/superb/superb-data Then we can use the URLs for the files to load the data in `superb`'s dataset loading script. For consistency, I suggest we name the folders in `superb-data` in the same way as the configs in the dataset loading script - e.g. use `sd` for speech diarization in both places :)
[ -0.2387331128, -0.1557698846, 0.0066518299, 0.111236304, 0.3777110279, -0.1991260946, 0.0082019996, -0.1370200962, 0.1117522866, 0.3464582264, -0.3380064964, 0.4965120554, -0.1501334161, 0.4443325102, 0.2138429433, 0.2012204826, 0.0950581655, 0.20730488, -0.2991645336, 0.0513458997, -0.1497843415, -0.1197715551, -0.1633817554, -0.1436897367, -0.2040832341, 0.2193612158, 0.0727682933, 0.0811639428, -0.290558517, -0.2938538492, 0.1627008319, 0.5291999578, 0.4015755057, 0.327100873, -0.0001083251, -0.1900355369, 0.364015609, -0.407646656, -0.5083064437, -0.1703516692, -0.2225591391, 0.2536759079, -0.1591919065, -0.0934049562, -0.6251896024, -0.136331439, 0.0133751966, -0.110085994, 0.2596839368, 0.1732189357, 0.225988552, -0.0555902533, -0.0955968052, -0.1510584056, 0.1919824332, 0.2502142191, -0.1117711365, -0.0226809476, 0.1821224838, 0.0146343186, 0.1411367059, 0.2883917689, -0.1353493035, -0.1251491606, 0.6657480001, -0.1592932642, -0.0340275243, -0.0476165228, -0.0653878152, 0.2897382379, 0.606210351, -0.2307614088, -0.3986758292, 0.1317663789, 0.048964452, -0.1367881745, -0.0511328578, -0.1670541167, -0.1804627031, -0.0097852526, -0.1593206823, -0.2900248468, 0.0168995336, -0.0991930664, 0.125736922, 0.4029802084, -0.2149695754, -0.248623997, 0.1087748483, -0.1918498129, -0.2503004074, 0.2007245123, 0.2491452098, 0.1213822067, -0.2323536128, -0.1240352541, 0.2190021425, -0.2282167524, 0.0134820417, 0.013472382, 0.2555208504, 0.0663685948, 0.0736559033, 0.0467753038, 0.2122074664, 0.3263143301, 0.341832906, -0.0758146644, 0.1266980022, 0.3235279024, 0.1213150471, -0.0469558649, -0.4792710543, 0.0506933033, -0.3832939863, 0.1291766912, 0.032654576, -0.2910525501, -0.175021708, -0.1362395287, 0.2221737355, 0.0894521177, 0.1904241592, 0.6082090735, -0.1698206812, 0.0162830483, -0.1385705769, 0.1991364956, -0.2245849967, 0.3818305433, -0.1250523329, 0.1218159944, -0.2075894475, 0.2060778439, 0.1558458656, -0.3326054513, 0.1354312301, -0.0365530774, 0.0925741568, -0.0350979827, -0.3106780648, 0.2560378313, 0.1394772977, 0.0112424372, 0.2154380381, -0.024268657, -0.4070393741, -0.0185334831, -0.2668023705, 0.0970806554, 0.2298038602, -0.3090218008, -0.2402654886, 0.2687861323, -0.2112888545, -0.2399875522, -0.2093417048, 0.2070338428, -0.0259957202, -0.3565530479, -0.0472563468, -0.1550930291, -0.187357679, 0.080687359, 0.3618191183, 0.0493878126, 0.141074568, -0.2385225743, -0.0613229945, -0.0213318989, 0.1526767313, -0.0223491862, 0.1086406857, 0.1549889296, 0.0454300269, 0.3059647679, 0.0213383958, -0.7309916615, -0.295655787, -0.0253887959, -0.0704019666, 0.0473955572, 0.0758812428, 0.0266981833, 0.5626789331, -0.366659373, 0.0267691053, 0.4169299006, 0.1045973897, 0.0271831751, -0.1137816012, -0.1186169535, 0.1551053822, 0.3331931531, -0.1412375569, -0.0132466927, -0.0201384537, 0.5371367931, 0.1115939468, -0.2153895199, 0.1351973712, -0.0304378718, 0.1972649992, 0.2505994141, 0.0189219229, -0.1343053877, -0.1566023678, -0.0714808106, 0.3544768095, 0.3644613922, -0.2444359958, -0.4812816978, -0.0186536647, -0.2085850388, -0.2348951399, -0.0008712066, 0.1966124028, 0.1794876605, 0.4501176476, -0.2948079109, -0.103123568, -0.4538340271, -0.1539295912, -0.0776342973, -0.0457611904, 0.0276464671, -0.0710128024, -0.0754553601, 0.2740697265, 0.4282013774, -0.0134115051, 0.0006371066, 0.0198209472, 0.3606020808, -0.1204634905, 0.2716155052, -0.0330983885, 0.4144017696, 0.0200405363, -0.5199401379, 0.151659295, 0.0607673414, 0.0611067042, -0.0336798579, -0.0852076635, 0.0801732764, -0.2156590968, 0.1141563877, 0.245742932, -0.2012443095, 0.2822170854, 0.0160782784, -0.1429869831, -0.1003033519, -0.0837653726, -0.075323537, 0.1822259426, 0.037490055, -0.2956409752, 0.0134174041, 0.1434489489, -0.1508315951, 0.2064884603, -0.0013384873, -0.0963152424, -0.2068926245, 0.1192234233, -0.1725338399, 0.058846008, 0.2269429117, 0.2886661589, -0.0056762295, -0.0835695118, -0.13001737, 0.1359497607, -0.0962678641, -0.0186919253, 0.3149696887, 0.019433476, -0.0111386683, -0.4310696125, 0.050069429, -0.0565519705, -0.0238470882, -0.0844355375, -0.4412798882, -0.0452111959, -0.6270557046, 0.0019320212, -0.4387513995, 0.1230186969, 0.1873011887, 0.2541454136, 0.0001311326, -0.3270378709, 0.2696533501, 0.3459562063, 0.2631190121, -0.2504716516, -0.0477189645, -0.3070188165, -0.2446106225, -0.0061024581, 0.1591076106, 0.1529822797, 0.0119618699, 0.0585238039, 0.010565564, 0.2202136815, -0.2467611879, -0.1310707331, 0.2598434389, -0.0594291314, 0.1896293461, 0.0486857295, -0.008442238, 0.2503095865, -0.0831070095, 0.054190848, -0.3319965005, -0.1546895802, -0.0413329154, 0.0950936377, -0.0059712008, -0.3511023819, -0.3864650428, -0.1713497341, -0.4853638411, -0.221200496, -0.1197456941, 0.0970882326, -0.0555566773, -0.3157557547, 0.0252461769, 0.1532772481, 0.4391429424, -0.2017245889, -0.0928222314, 0.2107272595, -0.4319678843, -0.1795964241, -0.1629500538, -0.0613183975, 0.2938208282, 0.0343350694, -0.1930087209, -0.0772732049, 0.1486810297, -0.1429516673, 0.060809467, -0.0430623665, 0.3532961011, 0.1241763383, -0.0949403718, -0.1835150123, -0.2840728462, 0.0802198276, 0.3533508182, 0.1515343934, -0.0702310801, 0.0244175456, -0.0395405628, 0.3105427325, 0.0657298565, -0.0305121839, 0.2941803038, 0.0216219556, 0.1571722478, -0.0036712848, 0.1609629393, 0.4116497934, 0.0916721746, -0.2100939304, 0.5984888077, 0.201226905, 0.0722194836, -0.122112073, -0.0430779494, -0.4960402846, -0.1229056939, -0.1275878847, -0.1947242618, 0.0066914922, -0.0712367594, 0.1688197851, 0.1662696302, -0.0502690002, 0.3053996265, 0.1846431196, 0.3476546705, 0.019154463, -0.1670768857, -0.2236251533, -0.2916170061, 0.1689396501, 0.2247605175, 0.1301314235, -0.1703353822, -0.3254179358, -0.0393571518, -0.1953027993, 0.0927154869, -0.3638089001, 0.1425372809, 0.0832578093, 0.0921076238, -0.1773832738, 0.0022860914, -0.1171139032, -0.0452598594, -0.0477974825, 0.0368057117, -0.4489268064, -0.0813794583, 0.2349193394, -0.0324413292, -0.1318275332, -0.1953956187, -0.037541844, -0.6822194457, -0.0587643906, 0.1167943552, 0.0817242339, 0.2942717373, -0.0501620881, -0.1117707789, 0.2129606605, 0.1041549146, 0.1387811601, 0.1117424816, 0.2444800735, 0.2800198793, 0.1165296584, 0.2486376464, 0.0691629499, 0.4142351151, 0.5681795478, -0.10525392, -0.0624383129, 0.0022760425, -0.1300581992, 0.3896208405, 0.1206482202, 0.2080133855, 0.1284281611, -0.0103663793, -0.1830572933, -0.7336475253, 0.3549479544, 0.1393646896, 0.0852795616, -0.183088541, -0.6046623588, 0.3944532275, 0.1575480103, -0.1495507658, 0.0865627304, -0.1425363868, -0.3577367067, 0.2706684768, 0.156391874, 1.0518198013, -0.2577362657, -0.0205291603, -0.0682568327, -0.1102534086, 0.2670953274, -0.281187892, 0.1263157427, -0.0363981202, -0.0499613956, 0.0489074886, 0.2216236591, -0.0825652033, 0.1110294461, -0.3840629458, 0.2460259646, 0.1215833277, 0.0690218583, 0.0188958459, 0.2989875674, 0.0200603697, -0.3731891215, -0.2414261997, 0.1576667428, -0.1448146403, 0.2374408096, -0.1495663971, 0.0253533013, 0.103665255, -0.1133127958, -0.0152337179, 0.2427364588, 0.0636692792, -0.3152556419, -0.2060830593, -0.1548039913, 0.0955950692, 0.3037030399, -0.1515708566, 0.229707405, -0.1060803533, 0.1211514473, 0.0687353164, 0.3163686693, 0.0635417551, 0.0734943002, 0.3956194222, -0.1521241963, 0.2492264658, 0.0123686753, 0.298119694, -0.1289324164, -0.220570758, -0.3212552071, 0.0293263756, -0.0470050983, 0.0864675343, 0.252543807, -0.0306524374, -0.1810584217, 0.2006275058, -0.0628492087, -0.4676527083, 0.2213154882, -0.0301252306, -0.0668003634, -0.0389801785, 0.2198366225, 0.1138349622, -0.3127253652, -0.0027812426, 0.1530314535, -0.0303974301, -0.3113150597, -0.4853433371, -0.2333032191, 0.0084998161, 0.089715451, 0.109841533, -0.3046220839, -0.0016215667, 0.6208377481, 0.0262154099, -0.2126693279, -0.1955833733, 0.2060409933, -0.2056100667, 0.2131326199, 0.1754971296, 0.4463223815, -0.0294497088, 0.2326045781, -0.0460698195, 0.1175035834, -0.4152622521, -0.1724221706, -0.4506846964, 0.3689118326, 0.0289844498, 0.056515839, 0.1596824974, -0.1116548851, 0.214355588, -0.0604895465, 0.0054146424, -0.1985802352, -0.0093509369, 0.0974454284, 0.2321243882, 0.0716449544, -0.2855550051, 0.0776178241, -0.2219575644, -0.2022413462, 0.3412206471, 0.2695655525, -0.0611864924, 0.3556402922, 0.033033818, -0.043258924, -0.0384669267, 0.1293979287, 0.1208640784, 0.3543031514, 0.0388862044, 0.109050706, 0.1320514977, -0.1886118203, 0.0620804057, 0.1777034551, 0.4266300797, -0.046169769, 0.1700849831, -0.00151366, -0.015882656, 0.237598002, 0.691675365, 0.0541597158, -0.0590883121, -0.2120251954, 0.1609108448, 0.3708563149, -0.1485462189, -0.0129187517, -0.5179472566, -0.2849598527, 0.1003657728, 0.2510243058, 0.0115844384, 0.0169344544, -0.2469293177, -0.0236688815, -0.058613129, 0.0771435872, 0.0785494819, 0.1035346836, -0.0080733821, -0.0205557533, 0.1679334641, -0.157015577, -0.0534774996, 0.4328361154, 0.1236593723, 0.5165601969, 0.2849934995, 0.4423140287, 0.026105402, -0.0538116395, 0.032854639, 0.1794987321, -0.1046280265, 0.2635352314, -0.1521061063, 0.5993236303, -0.3265370727, -0.0833448023, -0.1794983149, 0.1200794876, -0.2615884542, -0.2134370208, -0.0151997954, -0.255702436, 0.1766149104, 0.0908830464, -0.0540151112, 0.1169528514, -0.0005365983, -0.0073792711, 0.0711869597, -0.0142640136, 0.0348353423, 0.0919853598, 0.1931051314, -0.2312736958, 0.4226827323, 0.2813998163, 0.0357514508, 0.3122566342, 0.4274142087, 0.2777603269, 0.222201407, -0.3424446285, -0.0684829429, 0.0338014252, 0.0183839127, -0.0938162804, 0.4202008247, 0.2514148057, 0.3408824205, 0.2904652655, 0.2242548764, -0.2440182418, 0.1784814894, -0.0694836229, -0.0060646422, 0.0527357124, 0.4793895185, 0.1439281851, -0.0471909344, -0.0995901525, 0.1491746455, -0.790872097, -0.2610090971, 0.1187449545, -0.3048151433, 0.1629013717, -0.3607214987, 0.1167137176, 0.0910067558, 0.5737718344, 0.2001518607, 0.2887251675, 0.0657252222, -0.2745931745, -0.3580310345, -0.0606544316, 0.2796652317, 0.0379083827, -0.2496097833, 0.1469862014, 0.1392483562, 0.0493824147, -0.4266399741, 0.0186099075, -0.1071029678, 0.2197746038, -0.1197679117, 0.3733873367, -0.1624428034, 0.1714731157, -0.0584267229, -0.1896253079, -0.1771628261, -0.2254431844, 0.0215700865, 0.0829844251, 0.3526866436, 0.1450900435, -0.2686472237, 0.3546159863, -0.2303531766, 0.5316292644, -0.3417066336, 0.0261851922, 0.135089159, 0.0329935364, -0.3262871504, -0.3018456995, -0.2989816666, 0.1844819337, 0.1585556716, 0.4981395602, -0.2554976642, -0.207578361, -0.0501763374, 0.3235318363, -0.1857938319, -0.0170853063, -0.426011771, -0.255063802, -0.0187295042, 0.2147424221, 0.0881762952, -0.1216905415, -0.404817313, -0.5538057089, 0.324054569, 0.249355793, -0.2571326494, -0.4015713334, 0.2706719637, 0.133513093, 0.0151636545, -0.6682813764, 0.2751119733, 0.0016302764, 0.1941599548, -0.0660214573, 0.4154749215, -0.0731357783, -0.1756196022, -0.1833538264, -0.1522701085, 0.1328647584, 0.0113618001, -0.1448206604, -0.3962372243 ]
https://github.com/huggingface/datasets/issues/2653
Add SD task for SUPERB
@lewtun @lhoestq: I have already generated the LibriMix corpus and prepared the corpus for diarization. The output is 3 dirs (train, dev, test), each one containing 6 files: reco2dur rttm segments spk2utt utt2spk wav.scp Next steps: - Upload these files to the superb-data repo - Transcribe the corresponding s3prl processing of these files into our superb loading script Note that processing of these files is a bit more intricate than usual datasets: https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/diarization/dataset.py#L233
Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). Steps: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [ ] README: tags + description sections Related to #2619. cc: @lewtun
73
Add SD task for SUPERB Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). Steps: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [ ] README: tags + description sections Related to #2619. cc: @lewtun @lewtun @lhoestq: I have already generated the LibriMix corpus and prepared the corpus for diarization. The output is 3 dirs (train, dev, test), each one containing 6 files: reco2dur rttm segments spk2utt utt2spk wav.scp Next steps: - Upload these files to the superb-data repo - Transcribe the corresponding s3prl processing of these files into our superb loading script Note that processing of these files is a bit more intricate than usual datasets: https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/diarization/dataset.py#L233
[ -0.23063232, -0.3324864805, -0.0547317863, 0.0661656037, 0.3352734447, -0.2812388241, 0.0837418735, -0.0611492172, -0.1144543886, 0.4088609219, -0.4140785933, 0.4271570146, -0.1571260393, 0.3467776179, 0.1571533084, 0.0596580617, 0.0408407971, 0.2455734015, -0.3144541681, -0.0464580655, -0.0659856275, 0.0155267995, -0.1118665487, -0.2875228822, -0.1676344573, 0.312564373, 0.0159357414, -0.0790381581, -0.3433386385, -0.2468423247, 0.1256895959, 0.4726734757, 0.2812189758, 0.3263559341, -0.0001044987, -0.2434344143, 0.1248141378, -0.4071694911, -0.3041564524, 0.0205106139, -0.140011698, 0.2529034913, -0.2431375533, -0.100422956, -0.6214829087, -0.1066612154, -0.0715743303, 0.0587375611, 0.3838649094, 0.2615115643, 0.252238363, -0.1253830492, 0.0187661648, -0.0416317619, 0.3106273413, 0.2372284532, -0.1541279554, -0.0043615755, 0.2208900303, 0.0400728881, 0.0306639262, 0.2973974049, -0.2016078234, -0.0407215059, 0.4242483974, -0.3073335886, 0.0961294174, -0.1444908381, 0.0631378889, 0.406558007, 0.4522717595, -0.2049414515, -0.288703084, 0.2152058184, 0.0077374503, -0.2505539358, -0.2491926551, -0.0404340476, -0.2725820839, -0.0228521302, -0.2060945928, -0.1376392543, 0.0324130803, -0.1914405376, 0.0190915763, 0.3704543114, -0.2671468854, -0.3009179831, 0.2260407358, -0.1345990151, -0.3198322952, 0.3320156038, 0.2018844038, 0.1263997406, -0.2140348554, -0.1842057705, 0.2491409481, -0.3830592632, -0.0471486524, -0.0462133624, 0.2658667862, 0.1086571813, 0.2545672953, 0.0696091801, 0.0248163603, 0.1501287222, 0.2364247143, -0.0354195498, -0.0448734276, 0.1341959089, -0.050639499, -0.0012750435, -0.4389597178, 0.0330507495, -0.3648110032, 0.1746806651, -0.0583861656, -0.310341239, -0.2033722997, -0.1287634969, -0.0196186602, 0.2213390023, 0.0794404, 0.4776501656, -0.0948931873, 0.0649782792, -0.0509123988, 0.2270584404, -0.2490281165, 0.3620912433, -0.1059038937, 0.1659914255, -0.1457807124, 0.0199765638, 0.2315412015, -0.3207781017, 0.1398188919, -0.0499392785, 0.1733026654, -0.1151326597, -0.25750646, 0.1903566867, 0.2721078396, -0.0316015743, 0.144575581, -0.170884192, -0.3705869317, 0.0417675823, -0.2342024446, -0.0167725757, 0.2933940291, -0.2280610502, -0.2369891554, 0.3036904335, -0.1506550014, -0.1359419525, 0.0305429678, 0.201544553, 0.0977664739, -0.3038559556, -0.0548577867, -0.2512847185, -0.2239756882, 0.1178685054, 0.3892634213, -0.0701795667, 0.1160393357, -0.2245631218, -0.0051199533, -0.0084881205, 0.296423167, -0.0331700221, 0.2258887589, 0.06786336, 0.0326799899, 0.1900209337, -0.0479926914, -0.5481697321, -0.2245561033, -0.0074398741, 0.0226994529, 0.0313451588, 0.1355643868, 0.0045561157, 0.6181931496, -0.3744725585, -0.0381599665, 0.3380511999, 0.0725138262, 0.0997642055, -0.131092757, -0.0191143267, 0.0118537862, 0.239346087, -0.0813842416, -0.0808946043, -0.06767416, 0.4970258474, 0.2334404141, -0.1725579351, 0.1217376813, -0.0119455568, 0.2894852161, 0.0910598114, 0.0217039064, -0.1855187118, 0.0678441003, -0.1747247577, 0.2588676512, 0.3830897212, -0.0389187597, -0.4150963724, -0.0010087453, -0.1662146151, -0.2090088129, -0.0032304116, 0.2927137315, 0.242849201, 0.4071395993, -0.3336690664, -0.0167745054, -0.676442802, -0.0711310431, -0.0923163146, -0.0045003407, -0.0200000443, -0.0798717067, -0.118908897, 0.3851713538, 0.533665657, -0.0507784262, 0.0314623751, 0.0887998343, 0.2988004386, -0.0726090074, 0.2658648193, -0.2084178925, 0.4722294211, -0.0895454139, -0.5653336644, 0.0470016971, 0.1999009103, 0.0958382636, -0.0654772222, 0.0055328333, 0.1372516751, -0.0953736305, 0.0778422579, 0.265532285, -0.20626688, 0.2208842933, -0.0152460635, -0.1619106829, 0.0088328868, 0.0560737066, -0.2033193409, 0.0120163038, 0.0018845387, -0.2424479574, 0.0417624488, 0.1776087731, -0.1071047932, 0.1440397501, -0.0182288885, -0.0981844813, -0.261398077, -0.0173639804, -0.0852322578, -0.1022651494, 0.2748093307, 0.3855219483, -0.1190947816, -0.1484155655, -0.0794155002, 0.1939109266, -0.0809498131, -0.1137183458, 0.47924757, 0.0618223473, -0.0789261684, -0.4903306961, 0.0071992502, -0.0477589592, -0.0150729921, -0.014699623, -0.3657631874, 0.0245483145, -0.5591486692, -0.0659196228, -0.5107612014, 0.1796442717, 0.1567975879, 0.3538486958, 0.1014040038, -0.2838632464, 0.3210273981, 0.3669557869, 0.2201401144, -0.0898770168, 0.0792879164, -0.1918426752, -0.1940290183, 0.0848434642, 0.2379514277, 0.1225402206, 0.0649443343, 0.0667416006, -0.0530557074, 0.0843598247, -0.1486165226, -0.1039234251, 0.2008406371, -0.0775584057, 0.0879926756, 0.0492758602, 0.050036341, 0.1740364134, -0.1463155746, -0.0014401451, -0.2926126122, -0.1680889726, 0.163634941, 0.0077724829, -0.0098427385, -0.3968882263, -0.3802543879, -0.0190262124, -0.4988487661, -0.1282485425, -0.0362588651, 0.224686712, 0.0443337299, -0.1743772179, 0.024072431, 0.1243402436, 0.4566857517, -0.1572700888, -0.1098148674, 0.1976677626, -0.3751395941, -0.2254719436, -0.2104407251, -0.0910395831, 0.3619686067, 0.0524689145, -0.0941480175, -0.0015292726, 0.1633961946, -0.2450569123, -0.0099357683, 0.0543497503, 0.2658217251, 0.1149333119, -0.1168090403, -0.2195417881, 0.0235205665, 0.0505324602, 0.2868503332, 0.2303684503, -0.1580722332, -0.0439054929, 0.0079752728, 0.3405782282, -0.0335663334, -0.1394282132, 0.1918023229, -0.0780913383, 0.099926129, 0.0838366896, 0.1801459789, 0.4542689919, 0.0080787614, -0.1352088451, 0.6013184786, 0.1653675139, 0.0473381355, -0.0611421838, 0.2469248027, -0.3664110303, -0.0859007463, -0.0229580682, -0.1226145774, 0.0805790648, -0.0697810575, 0.1989885867, 0.3178985417, -0.0515471138, 0.2662787437, 0.0324858055, 0.335844785, 0.0018379018, -0.0721061379, -0.1589868665, -0.3156155646, 0.0279977508, 0.3300454617, 0.0331318118, -0.0981749222, -0.3514758348, -0.0617530607, -0.205990687, 0.02412498, -0.222429648, 0.2713912129, 0.2328314185, 0.088311404, -0.0381246507, -0.0083946511, -0.3488220572, -0.1965794116, 0.0651907697, -0.1453960836, -0.4111144841, -0.0551000908, 0.284632057, 0.0360942371, 0.0026894137, -0.058140967, -0.115753077, -0.5529299378, -0.0287262499, 0.1698333025, 0.1482658982, 0.2186096311, -0.1743786931, -0.1273179203, 0.1781243384, 0.0050887391, 0.1613935232, 0.1702772081, 0.2613529265, 0.195219636, 0.1688319743, 0.0751854777, -0.0710590333, 0.4589056969, 0.3865028918, -0.0444377102, 0.094317764, 0.0667774081, -0.1656968296, 0.3028513193, 0.0504185408, 0.3310025632, 0.1102581844, -0.1322109252, -0.0550982393, -0.6019119024, 0.4275262356, 0.1789315343, 0.0574013479, -0.0100481659, -0.4498085678, 0.3664427698, -0.0553252175, -0.076168552, 0.0277819205, -0.1592033654, -0.2261772752, 0.3278332055, 0.2264901847, 1.0557329655, -0.1432823837, -0.0407691859, 0.0989279896, -0.0821180493, 0.0767414048, -0.3198871315, 0.238149628, -0.0709343553, -0.0617589056, -0.0001866445, 0.2412301898, -0.1544336379, 0.0569787733, -0.4224568605, 0.0385998748, 0.2103673071, -0.0116844643, -0.0343218483, -0.0049936697, 0.0523135811, -0.2225153148, -0.1930847019, 0.2036749125, -0.1351488829, 0.088417083, -0.0963511616, -0.0180267077, 0.1538251936, -0.1409377307, -0.0319012105, 0.2230213583, -0.0113276504, -0.2855210006, -0.0643818229, -0.1961162388, -0.0370365195, 0.2270757854, -0.3433633447, 0.2473928332, -0.0330450125, 0.0383865237, 0.1383411586, 0.2762389183, 0.0389020704, 0.1228723899, 0.278473556, -0.1656939089, 0.259730041, -0.0495831817, 0.2597330213, 0.0222774521, -0.0376325548, -0.290614903, 0.0964336023, 0.0514144562, 0.1492403299, 0.2572363019, -0.1945391893, -0.1682175994, 0.2234096825, -0.0601495206, -0.682336092, 0.268604219, 0.0336509496, -0.0525874048, -0.0146580152, 0.172002703, 0.1937297434, -0.2056245506, -0.0315051302, 0.1955663264, -0.0608240962, -0.3801859617, -0.4288162589, -0.2341482043, -0.0988480076, 0.0294702835, 0.0979228094, -0.3611581326, 0.1473830789, 0.5644747019, -0.0358488597, -0.1570377052, -0.2788633704, 0.2000599951, -0.1701857597, 0.0973263904, 0.0860832632, 0.53243047, -0.1331998706, 0.228018716, -0.0996868461, 0.2533306777, -0.4481813312, -0.1555631459, -0.4357389212, 0.4334954619, -0.0423923433, -0.1146889627, 0.0695862472, -0.0641073734, 0.275678575, 0.0756590515, -0.0946279317, -0.267778039, -0.0259269588, 0.079823032, 0.1419034749, 0.0841583163, -0.1523621082, 0.3329124153, -0.3364924192, -0.2200278491, 0.3265502453, 0.200595066, -0.0533111058, 0.323286891, -0.072753422, -0.0206123441, 0.0121213198, -0.0839047953, 0.1334698349, 0.1765248179, 0.0147239342, 0.109528169, 0.1358219683, -0.2089043856, 0.1125443205, 0.2479684204, 0.3644376099, -0.2571533024, 0.2628560066, 0.0926766694, 0.0390594751, 0.2321557105, 0.6654083133, 0.0981389582, -0.000772696, -0.2543887794, 0.1583814919, 0.4445457757, -0.2427856922, 0.0042165928, -0.555668354, -0.2629686892, 0.1984892935, 0.2155684829, -0.0638478473, -0.2041840106, -0.1155442446, 0.0124319494, -0.1126069725, -0.0285257325, 0.0075033456, 0.2312055975, 0.0835139602, -0.0903499126, -0.0491823666, -0.2032927722, 0.0378115326, 0.4039701223, 0.0077071097, 0.5663602948, 0.202645272, 0.2588072419, 0.061327748, 0.0391849354, -0.0602186956, 0.2987783551, -0.1448061466, 0.3799723685, -0.1233508661, 0.4566289485, -0.2239580452, -0.1622545719, -0.2535136938, 0.1247855425, -0.2302412987, -0.1228773594, 0.0045665652, -0.2692742944, -0.0339429453, 0.013291657, 0.071143344, 0.2759762108, -0.0217503197, -0.0007499438, 0.1304038018, -0.0083945561, -0.1292389929, 0.0283903331, 0.3064993918, -0.2977680266, 0.304682523, 0.374104917, -0.0208566822, 0.2079509497, 0.3667666316, 0.2912702858, 0.1162850559, -0.2981621921, 0.02924468, -0.0771597326, -0.0221265778, -0.1009696648, 0.3379069567, 0.2625351846, 0.3141923547, 0.2241150737, 0.2191426158, -0.2802015841, 0.189657867, -0.0158349574, -0.1496067196, 0.0556350388, 0.3040376008, 0.0036889594, 0.0052479729, -0.1746346653, 0.0441915393, -0.6745695472, -0.2193664014, 0.0320770852, -0.207875967, 0.1861620843, -0.1932147741, 0.129899472, 0.0137170292, 0.528065145, 0.1954899877, 0.1848647594, 0.0935738459, -0.2953620255, -0.2751649618, 0.0423688293, 0.3151339889, 0.0227450877, -0.2715737224, 0.1354254186, 0.3042470217, 0.1386162639, -0.5134700537, -0.0223845802, 0.0471750535, 0.3129722476, -0.2073918581, 0.3606792688, -0.148221463, 0.1325296909, -0.0403504558, -0.2700540423, -0.2355541289, -0.3604172468, 0.1735893488, 0.1764336824, 0.2119523585, 0.067833513, -0.0882790908, 0.0157060884, -0.1559092999, 0.4464558065, -0.3855407238, -0.0427052826, 0.1393242627, 0.0659097582, -0.200202167, -0.3122701347, -0.1709505022, 0.321038723, 0.2248521447, 0.3830830753, -0.1534943283, -0.1580290496, 0.0711328834, 0.3729652762, -0.2364524305, 0.0506322458, -0.3769298792, -0.2457832694, 0.0239393413, 0.1878745705, 0.1292333007, -0.1024034619, -0.4255011678, -0.5281773806, 0.3048946559, 0.11317157, -0.2440488487, -0.4501841068, 0.3223858178, 0.190488562, 0.0026976708, -0.6447272301, 0.2225142419, -0.0392064154, 0.173561722, -0.0894947946, 0.3659559786, -0.0188617371, -0.2235411108, -0.1541431397, -0.1673186868, 0.2073863745, 0.0264927074, -0.1550415158, -0.4224492311 ]
https://github.com/huggingface/datasets/issues/2651
Setting log level higher than warning does not suppress progress bar
Hi, you can suppress progress bars by patching logging as follows: ```python import datasets import logging datasets.logging.get_verbosity = lambda: logging.NOTSET # map call ... ```
## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0. I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work. ## Steps to reproduce the bug ```python import datasets from datasets.utils.logging import set_verbosity_error set_verbosity_error() def dummy_map(batch): return batch common_voice_train = datasets.load_dataset("common_voice", "de", split="train") common_voice_test = datasets.load_dataset("common_voice", "de", split="test") common_voice_train.map(dummy_map) ``` ## Expected results - The progress bar for `.map` call won't be shown ## Actual results - The progress bar for `.map` is still shown ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.5 - PyArrow version: 4.0.1
25
Setting log level higher than warning does not suppress progress bar ## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0. I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work. ## Steps to reproduce the bug ```python import datasets from datasets.utils.logging import set_verbosity_error set_verbosity_error() def dummy_map(batch): return batch common_voice_train = datasets.load_dataset("common_voice", "de", split="train") common_voice_test = datasets.load_dataset("common_voice", "de", split="test") common_voice_train.map(dummy_map) ``` ## Expected results - The progress bar for `.map` call won't be shown ## Actual results - The progress bar for `.map` is still shown ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.5 - PyArrow version: 4.0.1 Hi, you can suppress progress bars by patching logging as follows: ```python import datasets import logging datasets.logging.get_verbosity = lambda: logging.NOTSET # map call ... ```
[ -0.4419383407, -0.1637801528, 0.0876798481, -0.1625062525, 0.1394932866, -0.0227063373, 0.429366529, 0.2288745642, 0.0989457145, 0.1445457786, 0.1754807532, 0.6159744263, -0.1407672614, 0.1008446366, -0.1938808709, 0.1940040886, 0.0229356252, 0.0618274137, 0.0973696783, -0.0051867962, -0.2738213539, -0.212458685, -0.4537503719, 0.1177136898, -0.1908453852, -0.0994139612, 0.2819592953, -0.0676388144, -0.1347369254, -0.6845768094, 0.3213672638, 0.0655796677, 0.1590005159, 0.603561759, -0.0001319013, -0.062754713, 0.5607283115, 0.1790861487, -0.2247194052, -0.171873033, -0.5930764675, -0.3090308309, 0.392526418, -0.0706971735, 0.0297877267, -0.3474456966, -0.1272032708, -0.2612383068, 0.2345679998, 0.1812127382, -0.0071892776, 0.2482848018, -0.0372401178, 0.5450516939, 0.2635577023, 0.1993848681, -0.2768194079, 0.1551691145, 0.4623750448, -0.2347633243, -0.3073784709, 0.3043423593, -0.3391893208, 0.0891907662, 0.364815414, -0.111171633, 0.6513958573, -0.5470022559, 0.3078684509, 0.1294252276, 0.3183056712, -0.2856891453, -0.3883464932, -0.1922210753, -0.0462128334, -0.0714263469, 0.1643111706, -0.0450841002, -0.388957113, 0.1488930583, -0.779240489, -0.1206322312, -0.2446361333, 0.2550940216, 0.190974161, 0.2744410634, -0.0276816189, 0.1187564135, 0.1178885996, -0.1365886182, 0.0607775077, -0.2545292377, 0.0116920974, 0.2483184189, -0.457241267, -0.0615719594, 0.3918232918, 0.1325471997, 0.1498938203, -0.0930804908, -0.1562082171, 0.1936064661, 0.1616428494, 0.1653099656, 0.2875442803, 0.1497991383, 0.5941335559, 0.2832120061, 0.2572875917, 0.1503211409, 0.1399835646, 0.2325320542, 0.3986860514, -0.4250460267, 0.4426816106, 0.3641909659, 0.3208540082, -0.2956033051, 0.0545897111, 0.0405412354, -0.4391988516, -0.077103883, 0.2471936643, -0.1380396634, 0.4477902949, -0.3311775923, 0.1545620412, 0.2359695137, -0.1745841205, 0.0984212458, 0.0096888691, -0.2765090764, -0.2854015529, 0.1843281835, 0.2677906454, -0.2136617303, 0.2088999748, 0.14510566, -0.2515016496, 0.0489352793, 0.3056749105, 0.0159488097, 0.5277968049, 0.4136825204, -0.2733988464, 0.2552736402, -0.0117602786, 0.0148661882, -0.128660664, 0.4761300087, -0.0766502023, -0.4540785253, -0.1819505543, -0.0578342788, -0.4170143306, 0.1642577052, -0.5429638624, 0.3450357616, 0.2866149545, -0.0346269459, 0.37719208, -0.1488113403, -0.5182565451, -0.0982868597, 0.1885210276, 0.4915162325, -0.6797260642, -0.1832247078, -0.3486947417, -0.2553287148, 0.2047461867, 0.0311415717, -0.2359317243, 0.0198392365, -0.0590230599, 0.3680251837, -0.0158656985, -0.1317310333, -0.3091972172, 0.3006394207, -0.0516397431, 0.1174316183, 0.0648247227, -0.2404748648, -0.1172715202, -0.2352147847, 0.0669460297, -0.0542757213, 0.2040421814, -0.1934766769, -0.230156064, -0.2625631094, 0.0543837473, 0.0057215691, -0.1277091205, 0.0963605493, 0.1668697447, -0.4069344699, 0.4588558078, 0.0186787769, 0.1751152128, 0.2314313203, 0.3669460714, -0.4304539561, -0.0262335408, -0.0806003138, -0.1245748103, 0.1955327243, -0.1073027551, -0.0875075385, -0.3066436648, -0.3172891736, 0.0935739875, 0.0031502768, -0.2190492749, -0.2050160617, -0.1374477148, -0.2400766611, -0.1346880794, -0.1813040376, -0.284574151, -0.2089661211, -0.372379005, 0.0575659983, -0.1472551227, 0.0575119555, 0.2907575965, -0.3923127353, 0.0755687952, 0.1688376069, 0.2368119061, 0.1207595468, -0.1259241998, 0.3243700564, -0.1417276859, 0.55670017, -0.1004673839, 0.2094579339, 0.121137552, -0.1209335178, 0.0265914556, 0.1609221399, -0.2660251558, 0.2535662055, 0.1031404436, 0.0171373561, 0.4108297229, 0.2966625094, -0.0813289285, -0.0227403864, 0.0175926611, -0.1252802312, -0.269610703, -0.4073413014, 0.2404930294, 0.2748616934, 0.4156723917, -0.0455319732, 0.1888780594, 0.0303595401, 0.5161697268, 0.0442287922, 0.1040255502, -0.0162762068, -0.2068386078, -0.1898770034, 0.3138591647, -0.099059552, 0.37513569, 0.1118456721, 0.2199740857, 0.1496592462, -0.0212916341, -0.0490997098, 0.1307388544, 0.2823373675, 0.0909593478, 0.2894970179, 0.0859391838, -0.1233443394, -0.183307752, -0.163849622, -0.1781530082, 0.0441813171, -0.500053823, 0.0947346985, -0.2914811671, -0.1945672929, -0.0300082974, 0.0856101215, -0.2602650821, 0.0320400894, 0.174744755, 0.0906223953, -0.2227555215, 0.484392941, 0.2578089833, -0.1074480712, 0.193328917, -0.1457285434, -0.4724214673, -0.0866332054, -0.1253928244, -0.1823431551, -0.0189420991, -0.2148830146, -0.1284616441, 0.2228268385, -0.1062044352, -0.1972331107, -0.0630906671, -0.0496864319, -0.1086652726, 0.2292991132, 0.0186890289, 0.0687121749, -0.0976078436, 0.199891001, -0.0956422165, -0.3264266849, -0.0166800506, -0.1359514147, -0.2407788336, 0.219442293, -0.188567847, 0.0668674111, -0.2478817254, -0.1415910125, -0.0791145712, -0.3582978845, 0.128526777, 0.2675812542, 0.1696364582, 0.3616369665, -0.1621626616, -0.2807431817, 0.0995376408, -0.5332378149, 0.2486509979, -0.003641095, 0.0805030167, -0.0706206635, 0.0875726491, -0.030748954, 0.3047394156, -0.3325499296, -0.0666834116, -0.2412403077, 0.0422775, 0.0657980591, 0.0382697284, 0.2339994609, 0.0500806607, 0.0235201493, -0.0735219494, -0.3944578171, 0.0005843043, 0.2307642549, 0.3519811332, 0.1808226556, 0.247056067, 0.0638623983, 0.4577200115, 0.5331854224, -0.0457769297, 0.0876512527, 0.2052824497, 0.2106721997, 0.0915255919, -0.137536481, -0.2229065448, 0.0465072542, -0.1945646703, 0.1077924892, 0.0719750151, -0.2971442044, 0.1506835818, -0.5093938112, 0.0052220747, -0.3185647726, -0.2271261513, -0.1176450998, 0.3608940244, -0.1305043101, 0.2869964242, -0.1469755471, -0.2282090783, -0.1503720731, 0.0929700881, 0.3258207738, -0.0075670891, -0.0222306922, -0.1427609026, -0.7272334695, 0.3539393544, 0.0946098417, 0.1905516535, -0.2327795625, 0.0496620983, 0.1037775278, 0.3628754318, 0.229398042, -0.5157284141, 0.5419450998, -0.1000211164, 0.0681572035, -0.4487815201, -0.1284354925, -0.0385266878, 0.469537735, 0.2855922282, 0.3334142268, 0.0306089967, -0.2551820576, -0.0336540639, 0.1708624512, 0.1028691903, -0.2805158496, -0.4779940248, 0.1124443859, -0.1199506819, 0.1532057077, 0.1270665526, -0.1490372866, -0.290545553, -0.4047371745, 0.4099099934, -0.2108184993, -0.0392251424, 0.0343889669, 0.0404042378, 0.0293976925, -0.1926472485, 0.3561832607, -0.1313865334, 0.156240344, 0.3615217507, 0.1200860068, -0.3876297772, -0.0415249839, -0.2409797311, 0.2633205056, 0.3591602445, -0.3182223439, 0.2258414179, 0.2511280179, 0.2178797722, -0.0568475723, -0.3926555812, 0.3767253458, 0.0825197548, -0.244138062, 0.0366806239, 0.3615197837, 0.2846281528, 0.0048830807, 0.3582076728, -0.1439702809, -0.355771482, 0.1363274306, 0.1928454489, 0.6703534126, 0.046423994, -0.0555050746, -0.1147092059, -0.0216105804, 0.2048897296, 0.2880735397, 0.3241169155, -0.0797356293, -0.0270823762, -0.0731246099, -0.2170138806, 0.3660188913, 0.4260585904, -0.061147429, 0.1053867936, -0.3908003569, 0.1868421137, 0.0216769986, 0.0957265347, 0.0689629391, -0.1061699688, -0.5644490123, -0.1038891748, 0.1383898854, 0.1261151284, 0.0942865685, 0.0276048481, 0.2706148028, -0.1854802072, -0.2928014398, 0.1106330082, -0.0034724064, -0.0112967715, -0.0601465926, -0.421071887, 0.3573760688, 0.1403995752, -0.0040030666, 0.0417740308, -0.357436657, -0.117296055, 0.1370173693, 0.3045193851, -0.0825026333, -0.0577628091, 0.3107005656, -0.0192488953, -0.3764196038, 0.3355257213, -0.048744902, -0.3803370893, -0.1026892215, 0.009150425, 0.1832498014, -0.024840951, 0.3616979718, -0.0915998667, 0.2164247036, -0.0754524618, -0.0184808224, 0.2174571902, -0.0591085665, 0.429432869, -0.4074731469, -0.5229221582, -0.0927005857, 0.4390023649, -0.0634734109, 0.1430634707, 0.4201368093, 0.171860382, -0.0951448753, -0.1441235095, -0.0777494609, 0.591637671, -0.2072827369, 0.0725372434, 0.2695087492, 0.2778219879, 0.1658398807, 0.0501278527, -0.2087294757, 0.2175135463, -0.4212329388, -0.2543780804, -0.317561537, -0.0088605024, -0.07374084, 0.2421280593, -0.1627407968, 0.2145868838, 0.3262548447, -0.123876743, -0.0687061399, -0.1503857523, -0.0415362008, -0.0758057535, 0.0196597762, 0.4972245991, 0.259043932, -0.0585037023, -0.2144830227, -0.0271566287, -0.2456520796, 0.0011471175, -0.0487669073, 0.2012064606, 0.0231989697, -0.1960076839, 0.1144613773, -0.1625989974, -0.0466733649, -0.0610801131, 0.3420163989, 0.4181249738, 0.2039485872, 0.4495304823, -0.1516052783, 0.0352697968, -0.1840052605, -0.1711871922, -0.1577925086, 0.0731628835, -0.0218009055, 0.2425388694, 0.2466846555, 0.0664245561, 0.1573635936, -0.1460387558, -0.0087375641, 0.5891340375, -0.1070053428, 0.0546480715, -0.084792234, -0.1332150102, 0.2813198864, 0.1972290277, -0.2099963129, -0.3687162399, -0.1818749011, -0.0137200169, -0.101323545, -0.2978685498, 0.2876685262, 0.1761938781, 0.093180351, 0.076205641, -0.3027899861, 0.0076993704, 0.2502678037, 0.195959121, -0.1139152721, -0.2009647489, 0.213093549, 0.3879194558, -0.1446014047, -0.0477542579, 0.4281347096, 0.2170428336, 0.2008767426, 0.2702791691, 0.2117697299, 0.4954332709, 0.169181779, 0.1041392237, -0.211442098, -0.2212602496, -0.3109473884, 0.2509044409, -0.3340708315, -0.1139443517, 0.1798520386, 0.2877365053, -0.1051026061, -0.2036352754, 0.0761893466, -0.1378472596, -0.0804356188, 0.0155551434, -0.1261260659, 0.0717875957, 0.1098934263, -0.0726454929, -0.056133274, 0.3540784121, 0.3864508569, -0.0885677412, -0.0087137967, -0.0395473763, 0.0012403745, 0.1779052615, 0.366014719, 0.0556320548, -0.232733801, -0.203434974, 0.0603441373, 0.1389928609, 0.2818627059, 0.308772862, 0.2892173529, 0.1288410127, -0.0372469313, 0.1457119286, -0.0828652158, -0.0870759711, 0.4028382003, 0.0156332813, -0.1129821241, 0.162893042, -0.1151734665, 0.1128827184, 0.2430279553, 0.0932034552, 0.3082069457, -0.321382612, 0.4500487745, 0.193680957, -0.2729336023, 0.2564972043, -0.1527054906, -0.121628046, -0.0642862916, 0.6507231593, 0.0050388984, -0.0175395906, -0.3707089424, -0.0279638451, -0.2767975628, 0.1902834475, 0.4077706933, 0.1590860039, -0.2476160973, 0.1171319485, -0.4242971539, 0.0680204928, 0.1552353203, -0.0041457862, 0.0669385791, -0.0209298544, -0.3779888749, 0.3652938604, 0.4599260986, -0.6130453944, -0.1873298883, -0.2289877981, -0.079862453, -0.0266409982, 0.0073652472, 0.1018705592, -0.141502291, -0.283962965, 0.264874965, -0.2523227334, -0.1485255361, -0.1704110205, -0.3014573753, 0.3983107507, 0.1424652636, 0.5048661828, 0.2264359742, 0.0543135591, -0.0375097506, -0.0292080976, -0.1785156131, 0.1687039584, -0.2268445194, 0.2816551626, -0.0607074462, 0.4257079363, -0.5065678358, 0.182122916, -0.1935375333, 0.0765634105, -0.2571017146, -0.0011252537, 0.0492267534, 0.128516674, 0.1317143142, -0.1435747594, -0.2119309008, 0.0161988027, 0.0666766912, 0.3037759364, -0.2902286649, -0.1640960276, 0.394685626, -0.5808707476, -0.2545499206, -0.1875020862, 0.4973036051, 0.0882049948, -0.2843638659, -0.5184581876, -0.1538228393, 0.2201806307, 0.0405528359, -0.2124418318, 0.3295535445, -0.2428316921, 0.3919379115, -0.0787816197, 0.140330866, 0.2935989499, 0.1744742393, 0.0523520708, -0.3468527794 ]
https://github.com/huggingface/datasets/issues/2651
Setting log level higher than warning does not suppress progress bar
Note also that you can disable the progress bar with ```python from datasets.utils import disable_progress_bar disable_progress_bar() ``` See https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/src/datasets/utils/tqdm_utils.py#L84
## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0. I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work. ## Steps to reproduce the bug ```python import datasets from datasets.utils.logging import set_verbosity_error set_verbosity_error() def dummy_map(batch): return batch common_voice_train = datasets.load_dataset("common_voice", "de", split="train") common_voice_test = datasets.load_dataset("common_voice", "de", split="test") common_voice_train.map(dummy_map) ``` ## Expected results - The progress bar for `.map` call won't be shown ## Actual results - The progress bar for `.map` is still shown ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.5 - PyArrow version: 4.0.1
19
Setting log level higher than warning does not suppress progress bar ## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0. I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work. ## Steps to reproduce the bug ```python import datasets from datasets.utils.logging import set_verbosity_error set_verbosity_error() def dummy_map(batch): return batch common_voice_train = datasets.load_dataset("common_voice", "de", split="train") common_voice_test = datasets.load_dataset("common_voice", "de", split="test") common_voice_train.map(dummy_map) ``` ## Expected results - The progress bar for `.map` call won't be shown ## Actual results - The progress bar for `.map` is still shown ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.5 - PyArrow version: 4.0.1 Note also that you can disable the progress bar with ```python from datasets.utils import disable_progress_bar disable_progress_bar() ``` See https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/src/datasets/utils/tqdm_utils.py#L84
[ -0.438827008, -0.2037364393, 0.0796427131, -0.1522615105, 0.1692188829, -0.015966028, 0.4777558148, 0.2021973878, 0.0318350419, 0.1475354284, 0.1682004929, 0.5794956684, -0.1528973132, 0.1000311077, -0.1835139692, 0.1944965124, 0.0263120346, 0.0424373709, 0.0457617752, 0.0004414916, -0.2606734037, -0.1466897279, -0.4761808515, 0.0941634923, -0.2263159901, -0.0694697872, 0.2926197648, 0.0035403785, -0.1176253334, -0.6455770731, 0.3015623093, 0.0900379717, 0.1431135833, 0.6660019159, -0.000133249, -0.087802805, 0.5361058116, 0.1657676995, -0.1852546185, -0.1453339458, -0.5602227449, -0.362980336, 0.3905279636, -0.0617992952, 0.0420390666, -0.3005343676, -0.1574252248, -0.2664179802, 0.2540457547, 0.1718672216, -0.016913075, 0.3063341975, -0.1073400378, 0.548203826, 0.2376396358, 0.1451117694, -0.3086779714, 0.1676182151, 0.4750162363, -0.2120766044, -0.2969586849, 0.3610370159, -0.3199108243, 0.1028575003, 0.3066386878, -0.0769180357, 0.6109769344, -0.5626850128, 0.3343413472, 0.1769722849, 0.3472413719, -0.3141153753, -0.3868075013, -0.1731613427, -0.0694992691, -0.0928670019, 0.205878824, -0.0921728984, -0.3756280243, 0.1914187074, -0.7989662886, -0.1072390825, -0.2327203602, 0.248295784, 0.1075969711, 0.2289098501, -0.0718900859, 0.0963492021, 0.0785069764, -0.1218960881, 0.1031511351, -0.21710895, 0.0044037625, 0.2491952181, -0.5141394734, -0.1063525155, 0.3615422249, 0.071998477, 0.1568300128, -0.0595685616, -0.1863829494, 0.2191512734, 0.1158891767, 0.1340006292, 0.2554062307, 0.1776839644, 0.5470436811, 0.2377234846, 0.2636432052, 0.1237090975, 0.1506486684, 0.20266141, 0.3975674808, -0.4357883036, 0.4497303069, 0.3733791411, 0.3258316815, -0.2783272266, 0.007087864, 0.0931879655, -0.3374129534, -0.0380667895, 0.2372531593, -0.0866667032, 0.4455685616, -0.2540482879, 0.1459573358, 0.2678729296, -0.1896032691, 0.0222187899, 0.0186257735, -0.2887336016, -0.255972445, 0.1881932318, 0.2404665202, -0.1552523971, 0.2149010003, 0.1360750198, -0.1472954005, 0.0388559178, 0.3051343858, -0.019165054, 0.5638688207, 0.4335379899, -0.2885814309, 0.2676411867, 0.0248658527, 0.0252256542, -0.0963667259, 0.470308274, -0.0585904233, -0.4574695826, -0.1870667636, -0.0671590343, -0.4046757221, 0.1836805344, -0.5151896477, 0.3845127225, 0.2827962637, -0.0090503469, 0.4024599791, -0.1470166296, -0.5378504992, -0.0880261734, 0.2301700562, 0.5276053548, -0.6987102032, -0.1768611372, -0.342105031, -0.2491247207, 0.1895651817, 0.0326977856, -0.2099114507, 0.0540274903, -0.0955106243, 0.3148590922, 0.0723086745, -0.1670954674, -0.3650949597, 0.3568647504, -0.0652220547, 0.1153446436, 0.0775958747, -0.2185322195, -0.1156781465, -0.2229302675, 0.0675710291, -0.0615464672, 0.1715470701, -0.208000496, -0.2356216908, -0.2607076466, 0.0544961467, -0.0067108348, -0.0851496607, 0.1419217736, 0.1761006862, -0.4356426299, 0.4553631246, 0.0739695877, 0.16930677, 0.2582275271, 0.3339019418, -0.4463590384, -0.0426593646, -0.1058061942, -0.1639453918, 0.2082850486, -0.1032630056, -0.0945878178, -0.2895022333, -0.3256098926, 0.0706580132, 0.0064350963, -0.2393779755, -0.2069597244, -0.1521600634, -0.23380436, -0.1510631144, -0.2036363631, -0.3345764279, -0.1761712432, -0.3320503235, 0.0417800024, -0.1015784219, 0.0562134758, 0.3076063097, -0.3617401123, 0.0521019697, 0.1781625599, 0.2282768786, 0.1035375297, -0.1218876988, 0.36526981, -0.1437883228, 0.5218517184, -0.0476363339, 0.1986086071, 0.1101090088, -0.1610441655, 0.0058751348, 0.1750310361, -0.261189878, 0.2790228724, 0.1503453404, 0.066197291, 0.3930866122, 0.2827352881, -0.0947122723, -0.0167266577, 0.0013396665, -0.1263050586, -0.2820748389, -0.4369444251, 0.2476719469, 0.2622613311, 0.3680640459, -0.1068669707, 0.1074990034, 0.0735365674, 0.491425097, 0.0519006103, 0.1097516194, -0.0605798438, -0.2102838755, -0.1543626487, 0.2606514096, -0.0956028625, 0.4311892986, 0.0933534503, 0.2250628471, 0.1879182607, 0.0072551034, -0.0469726846, 0.1144523397, 0.2845509946, 0.0379745141, 0.3296860158, 0.0763444155, -0.1105655581, -0.1564058363, -0.1601746082, -0.1460014135, 0.0240582023, -0.5067862272, 0.1301323175, -0.3039039075, -0.1741357148, -0.0295424145, 0.043174848, -0.2786380053, -0.0110480487, 0.1811805964, 0.0700710341, -0.2074576914, 0.4660843313, 0.2094019353, -0.0873798579, 0.1957891136, -0.1263175607, -0.4703644514, -0.0578537136, -0.1195593774, -0.191275999, -0.0444650054, -0.1912558675, -0.1227571666, 0.16090101, -0.1007061079, -0.2174822837, -0.0513033643, -0.0420950465, -0.079176262, 0.3041088879, 0.0238874219, 0.0657115802, -0.1246168464, 0.2760339677, -0.0570036359, -0.3113240898, -0.0033402741, -0.1241062135, -0.2416001856, 0.1921316683, -0.1650095731, 0.0801849216, -0.2275785804, -0.1445661187, -0.1452719122, -0.4155723453, 0.12918818, 0.272918731, 0.1285598874, 0.3616064787, -0.1745834649, -0.2520796061, 0.0768212751, -0.5869481564, 0.2583817244, -0.0286887214, 0.0308609605, -0.0457014181, 0.0982178971, -0.032049939, 0.2712274492, -0.3657184243, -0.1137829423, -0.2194889337, 0.0420218706, 0.0528600402, 0.0495055765, 0.212738201, 0.0170987658, 0.0331126675, -0.0813795552, -0.3952866495, -0.0547733158, 0.2042003125, 0.3584367335, 0.1497318894, 0.2788909376, 0.0666007251, 0.5233482122, 0.5273797512, 0.0182271544, 0.0799961984, 0.2011780888, 0.2599042654, 0.0884442031, -0.1507943124, -0.2543097436, 0.0642151535, -0.1609965861, 0.1307298243, 0.0551924184, -0.1544729173, 0.1447828412, -0.4346092641, -0.0049788058, -0.3219951987, -0.2329063714, -0.1715308726, 0.3573041558, -0.1110614017, 0.2786035538, -0.1246929318, -0.1973204315, -0.1406458616, 0.1976081282, 0.2490927875, -0.0153045002, -0.0503519885, -0.1122864261, -0.7124305964, 0.3519892991, 0.0758899078, 0.2859665751, -0.2444902658, 0.0119806603, 0.1227617413, 0.3503416479, 0.2800558209, -0.4966642261, 0.5247849226, -0.0929263979, 0.0194521025, -0.4260509014, -0.1460881531, -0.042369388, 0.4549840391, 0.3069404662, 0.3457624912, 0.0729793906, -0.2809365094, -0.0387245119, 0.1553349942, 0.0693566874, -0.326605469, -0.5476042628, 0.1364569962, -0.0981859714, 0.1574922502, 0.1247014999, -0.1416086257, -0.2728050649, -0.3768728375, 0.3726083934, -0.2567852736, -0.0151186846, 0.0430183187, 0.033469025, 0.0162065513, -0.1553933769, 0.3270561099, -0.1485352516, 0.0930719972, 0.3858947456, 0.1286588013, -0.3814188838, 0.0095609203, -0.2251482457, 0.2644339502, 0.4158939123, -0.3462157249, 0.2357854247, 0.2754822969, 0.2510716021, -0.0192461908, -0.3622417152, 0.3614007235, 0.0845031142, -0.2436752617, 0.0730553195, 0.3501392603, 0.2230267376, 0.0315575749, 0.3476167023, -0.1459111422, -0.2988948822, 0.0685528517, 0.1400938928, 0.7327126265, 0.0617938153, -0.0144040063, -0.0860868096, 0.018006891, 0.1429747939, 0.2686701715, 0.3113034964, -0.0786023811, -0.0717871189, -0.1081068963, -0.2314881086, 0.376295507, 0.4070203006, -0.0584800914, 0.1555216908, -0.3735047877, 0.1973442435, 0.0259928852, 0.0688587725, 0.0570676625, -0.090904586, -0.5662987232, -0.1167455092, 0.2005324662, 0.1018142253, 0.0523022227, 0.0320775993, 0.2647798657, -0.1404698491, -0.272566855, 0.0908147693, -0.0659791976, -0.0348463319, 0.0290496647, -0.4781447053, 0.3578079045, 0.1115502417, 0.0508479886, 0.0253508948, -0.3542465866, -0.1177040637, 0.1660963148, 0.3358997405, -0.061947085, -0.0807973295, 0.3207852244, -0.0067281201, -0.3636155725, 0.376067102, -0.0415590554, -0.3307176232, -0.0405639559, 0.0347799696, 0.2050368637, -0.0230025612, 0.3666190803, -0.0951417238, 0.2670880556, -0.0923201293, -0.0294135176, 0.2634597719, -0.058851853, 0.4001791179, -0.4039236307, -0.5432715416, -0.0882047191, 0.3998921514, -0.077352345, 0.158775121, 0.398955673, 0.1926055849, -0.0905889645, -0.148797825, -0.024289839, 0.5724534988, -0.2445896268, 0.0855642334, 0.2558706403, 0.2815249562, 0.1719107926, 0.09823744, -0.2300802022, 0.1694045365, -0.4567413926, -0.2837530971, -0.3306881189, -0.0320518352, -0.1125070602, 0.2195494622, -0.1810236871, 0.2398942262, 0.314003408, -0.1277659386, -0.0633230507, -0.1704508066, -0.0580623522, -0.0997023135, 0.0153060816, 0.487911135, 0.3068169057, -0.0222676285, -0.2422083616, -0.0411104076, -0.2885691226, 0.0003657602, -0.0472637676, 0.222894609, 0.0553661548, -0.2178846896, 0.1097006351, -0.1269440651, -0.0509033948, -0.0607409514, 0.3688482344, 0.4017429948, 0.2120191008, 0.4640012383, -0.1659378707, 0.0108391764, -0.2196334898, -0.1615647823, -0.1266142279, 0.1038643718, -0.0171622373, 0.2366272807, 0.2375608087, 0.08508306, 0.1205143705, -0.1252828091, 0.0252882671, 0.5037799478, -0.1073519737, 0.0316259041, -0.0593662895, -0.1373459995, 0.2653337717, 0.2075213194, -0.2695912421, -0.4000193775, -0.1547540873, -0.0291502532, -0.1095415503, -0.2723489404, 0.2048159242, 0.1551053524, 0.0983932167, 0.0957410857, -0.282753855, 0.0102360547, 0.2798992991, 0.2201734632, -0.1466092467, -0.2405667156, 0.1962162554, 0.329564929, -0.1332356036, 0.0316261798, 0.4858594239, 0.2517429292, 0.1496283859, 0.2734568417, 0.2190319002, 0.4766216576, 0.1542243361, 0.0910501257, -0.2495794892, -0.2548618913, -0.2787216604, 0.2103085667, -0.3467274904, -0.1554128826, 0.1416513771, 0.254324466, -0.1171525568, -0.1773028523, 0.083325237, -0.1662633866, -0.044505585, -0.0322800055, -0.0387062095, 0.069921419, 0.1147416681, -0.073182255, -0.043607641, 0.3693084717, 0.3610861301, -0.0791224986, -0.012540549, -0.0775739104, -0.0477960221, 0.239330411, 0.2927103043, 0.0355951115, -0.2087334841, -0.1845272332, 0.0805376619, 0.1834363192, 0.3069001734, 0.3027540445, 0.2926495671, 0.1202859282, -0.0902812406, 0.1253691614, -0.0883063599, -0.0626056865, 0.4116555154, -0.0082990862, -0.1507258564, 0.1903624386, -0.1247330457, 0.1203603297, 0.1995246857, 0.1233231202, 0.3067182899, -0.3873676062, 0.4715417624, 0.1450251639, -0.2299480736, 0.2243388295, -0.1097470894, -0.1656799912, -0.0617495775, 0.6827011704, -0.0302158874, 0.0076491609, -0.3466840088, -0.0345987789, -0.2770448923, 0.1914265305, 0.4415140748, 0.1470931768, -0.2628691494, 0.1024148911, -0.4719313383, 0.0841688663, 0.2158723772, -0.0150024891, 0.0823911875, 0.0288237557, -0.3979291916, 0.3991672695, 0.5172964334, -0.6161114573, -0.1561100483, -0.232921958, -0.082984075, -0.0420481265, -0.0173369311, 0.1415512115, -0.1652455032, -0.3095965385, 0.2503561378, -0.2092682868, -0.1735658646, -0.1356935948, -0.2915961444, 0.359524399, 0.1325264275, 0.4981569052, 0.2361742407, 0.0376024917, -0.0176858827, -0.0324683301, -0.1756127477, 0.1570249945, -0.2105825245, 0.273969084, -0.0459049903, 0.3700999618, -0.5149694681, 0.167644605, -0.155926764, 0.0654427111, -0.2289650738, 0.006913282, 0.0399501622, 0.173731789, 0.141428262, -0.0992366672, -0.187029317, 0.0374044701, 0.0606700405, 0.3610661924, -0.3112113476, -0.1599251926, 0.3900364041, -0.5684542656, -0.2624584436, -0.2146306932, 0.5193516612, 0.0640937686, -0.2825251818, -0.5841551423, -0.1547002494, 0.2183986306, 0.0663636178, -0.2001500428, 0.3623511791, -0.2834413648, 0.3949880302, -0.0630558878, 0.1536168456, 0.2650117576, 0.1830292344, 0.02170185, -0.3092694879 ]
https://github.com/huggingface/datasets/issues/2646
downloading of yahoo_answers_topics dataset failed
Hi ! I just tested and it worked fine today for me. I think this is because the dataset is stored on Google Drive which has a quota limit for the number of downloads per day, see this similar issue https://github.com/huggingface/datasets/issues/996 Feel free to try again today, now that the quota was reset
## Describe the bug I get an error datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files when I try to download the yahoo_answers_topics dataset ## Steps to reproduce the bug self.dataset = load_dataset( 'yahoo_answers_topics', cache_dir=self.config['yahoo_cache_dir'], split='train[:90%]') # Sample code to reproduce the bug self.dataset = load_dataset( 'yahoo_answers_topics', cache_dir=self.config['yahoo_cache_dir'], split='train[:90%]') ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files
53
downloading of yahoo_answers_topics dataset failed ## Describe the bug I get an error datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files when I try to download the yahoo_answers_topics dataset ## Steps to reproduce the bug self.dataset = load_dataset( 'yahoo_answers_topics', cache_dir=self.config['yahoo_cache_dir'], split='train[:90%]') # Sample code to reproduce the bug self.dataset = load_dataset( 'yahoo_answers_topics', cache_dir=self.config['yahoo_cache_dir'], split='train[:90%]') ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files Hi ! I just tested and it worked fine today for me. I think this is because the dataset is stored on Google Drive which has a quota limit for the number of downloads per day, see this similar issue https://github.com/huggingface/datasets/issues/996 Feel free to try again today, now that the quota was reset
[ -0.4173350036, 0.1438481808, -0.0522664227, 0.2103923708, 0.2381462604, -0.0566485561, 0.2377114296, 0.2905799448, 0.1442448199, 0.0573152006, -0.0823222399, -0.0347228162, 0.0095935017, 0.2967810035, -0.1141854227, 0.1532197446, 0.120711863, -0.242334187, -0.3290198743, 0.1872818768, 0.008297272, 0.3475176096, -0.1365118772, -0.1860282272, -0.2225944996, 0.0802133158, 0.0324275419, 0.1877678782, -0.3060188293, -0.193962425, 0.499863565, 0.1681095809, 0.0484986044, 0.2420328259, -0.0001159498, -0.0456451997, 0.3564915359, -0.0230519995, -0.2754575312, -0.1719366014, -0.6136641502, -0.3641073108, -0.1625030339, -0.0510161892, 0.2578029037, 0.4485142827, -0.0789880529, -0.0727403089, 0.2911608219, 0.3613382876, 0.2246932238, 0.5078261495, 0.5233133435, 0.0212832838, 0.600775063, 0.0284279604, -0.1523157656, 0.3020836413, 0.0485346243, 0.095568262, 0.0357894003, 0.2261754423, -0.0547713712, 0.2072293013, 0.0509777628, -0.1315068603, 0.0101164272, -0.2643218338, 0.1809994429, 0.3761473596, 0.7534173131, -0.0676242709, -0.3866150379, -0.2335672975, -0.1377528906, -0.0953435004, 0.3624250591, 0.1967543364, -0.1790937483, 0.1182350814, -0.3431765735, -0.0559017248, -0.1109953225, 0.2298997045, 0.1896435171, -0.0589193627, -0.2049214244, -0.0243715718, -0.0747142136, -0.1185133755, 0.3572819233, -0.277400136, -0.027352972, 0.1389753968, -0.5924149752, -0.16301772, -0.1472226381, 0.3785591125, 0.5116471648, 0.5190514326, 0.0123611391, 0.1149434745, -0.2776394784, -0.1024335772, 0.3908931911, 0.4025636315, -0.0215440206, 0.1509063542, 0.4378217161, 0.3599642813, 0.0442592055, 0.0989443511, 0.0606564917, -0.1273133308, 0.3956005573, -0.0489522219, 0.2884015441, -0.4871147275, -0.3083412051, 0.2666870356, -0.2881490588, -0.2556789219, -0.0349379964, 0.1287739426, -0.2728326619, 0.3193665743, -0.1581631899, 0.2316353023, 0.0761207119, -0.106831193, -0.2661253214, -0.0457296297, -0.1917147636, 0.1251799166, 0.4090275168, -0.3089470267, 0.3847398162, 0.0583134145, -0.0366225466, -0.1010766029, 0.0702506229, -0.00975696, -0.3626895547, 0.4796494842, -0.0283758156, 0.3199996352, 0.0633888021, 0.2056983113, -0.0027632788, 0.188662231, -0.3618533313, -0.3521512449, 0.0451593623, 0.1900095344, -0.3650648296, -0.1490503401, -0.2103967667, -0.0985893384, 0.0886899456, -0.0989630744, -0.0011398122, -0.08086586, -0.1798316538, -0.1877604723, 0.1709346622, 0.2947294414, -0.1214035153, 0.0492803976, -0.2126546204, -0.2295566797, 0.0075603537, 0.0988984108, -0.1021210924, 0.05160423, -0.3121569157, 0.1910162419, -0.0304744467, -0.044129163, -0.8213797212, 0.1120074391, 0.2127332836, 0.1995850503, 0.0226964317, 0.1158606037, -0.0115396269, -0.0558769405, 0.0683127046, 0.2879425883, -0.1113563851, 0.0531982407, -0.2135486901, -0.2146822512, -0.1412276179, 0.1924074888, 0.2178845406, 0.1795271933, 0.1498344988, -0.0014780723, 0.2000295967, 0.060104385, 0.0264654905, 0.4225366712, 0.2325089574, 0.1264429837, -0.1791842282, -0.426620543, -0.6495069265, 0.2739133835, -0.1510442048, -0.1101722568, -0.0169514045, -0.1082541347, -0.4812151194, -0.1396790594, -0.0671040043, -0.1208610311, 0.0543915331, 0.1184011772, 0.1921292245, 0.0473961383, -0.0808086693, 0.6759994626, -0.22778669, 0.1251003295, -0.280918479, 0.3650701642, -0.1465260834, -0.1149823219, 0.1866231263, -0.0570823625, 0.1539195478, 0.0262797028, -0.1638718396, 0.3405661881, 0.0817587301, -0.048177205, 0.1589743644, 0.3192980886, 0.1357053816, -0.2003443241, -0.1071019024, 0.2686321735, 0.0888126045, -0.0193646327, -0.3108481467, 0.1076376811, -0.3952947259, 0.0862758011, -0.0847245753, 0.2748889625, 0.2487689257, -0.1529650837, -0.2354713976, 0.0756015554, 0.4902822971, 0.1661133468, -0.0159182101, 0.0276130866, -0.2370828688, 0.0720313117, 0.3816652894, -0.1854064763, -0.0236778185, 0.2315295339, -0.0424431488, -0.0848594159, 0.0524931997, 0.3492447138, 0.4121185541, 0.0774499774, 0.1270792186, 0.0192576963, -0.0698231757, -0.2119280696, -0.0097271279, 0.1050684005, 0.0516630299, 0.3873593211, 0.0891759098, 0.0201647505, -0.3156519532, 0.0178865343, 0.0662741512, 0.273368299, -0.4959607124, -0.0993699729, -0.2257488668, -0.0083328784, -0.1796368062, -0.2272873819, -0.4338908195, -0.4144545794, -0.0414733738, 0.4321184754, -0.0073693693, 0.1584973633, -0.1760053039, 0.0766012222, 0.1298982948, -0.1298917979, -0.011058405, 0.12393713, -0.0305575691, 0.0674771294, 0.4870753884, -0.1200204194, 0.268366605, -0.3797083795, 0.0057566836, -0.587628305, -0.025242269, 0.0319453329, -0.0429754891, 0.3296522498, 0.068199873, 0.3912463486, -0.3351223767, 0.0892585889, 0.0412827618, 0.0300798118, -0.2807072401, 0.1720668226, 0.0588249974, 0.0429031476, 0.0793969333, -0.1639141291, -0.1592888087, -0.284783572, 0.0246166866, -0.104602918, 0.0429370031, 0.3333444595, -0.0596336126, -0.005599197, 0.0306973383, 0.0233646035, -0.3865583241, -0.6483186483, 0.5215480328, 0.0017794669, -0.4173827767, 0.0635498017, 0.1082300991, -0.1324107051, 0.3234141171, -0.5212421417, -0.0796864033, -0.3460490406, 0.209149912, 0.1091666073, 0.1893133372, 0.4114708304, -0.2102254182, -0.0587381981, -0.0052903146, -0.1677407473, 0.0951374099, -0.0565818548, 0.276540935, 0.0760917217, 0.093340233, -0.0337054133, 0.6843778491, 0.2569457591, 0.3306367397, 0.4992993176, 0.1553969532, 0.3406205177, 0.0140699837, -0.1394453049, 0.0300784335, -0.2988120317, 0.1110090092, 0.0800211579, 0.1796588898, 0.2104769796, -0.2474080771, -0.108562544, -0.2964665294, -0.1631581485, 0.0617193058, -0.1888982505, 0.3915341198, 0.2235946059, 0.0087210163, 0.1550947428, -0.3679839671, 0.1491594315, 0.1619507372, -0.0454495959, -0.0742426068, -0.508907795, -0.0537510403, -0.3977301121, 0.2291778475, 0.0653379411, 0.4077833295, -0.0808594674, 0.0933064818, -0.0127243847, -0.0308024976, 0.4612416923, -0.1670761853, 0.226189658, -0.0558929071, -0.0066083819, -0.2543904483, -0.2947318256, -0.0410112925, 0.0976037532, 0.0445078723, 0.2930547595, -0.5040320754, 0.0814425051, 0.2037865371, 0.3086688817, 0.0089983419, -0.2055961937, -0.2282196283, -0.2156248093, -0.4626050591, 0.0130479634, 0.1228729412, 0.1912577897, -0.0961633474, -0.0554630719, 0.0683328211, -0.0295076966, 0.0314820632, -0.3027848005, 0.2211992294, 0.1362636238, 0.2531538308, 0.0497704744, -0.0033730743, 0.021034969, 0.804191649, -0.0797762722, -0.2488985658, 0.1816281676, -0.2381042838, -0.2277025878, 0.2497151792, -0.1022697091, -0.1096461266, 0.2862844169, 0.0119945705, -0.0040209834, -0.0868685544, 0.3564195931, 0.0856341869, -0.2989563942, -0.3246107101, 0.3209982216, 0.0831266195, -0.0425064713, 0.3991121054, 0.2725445032, 0.0491183996, -0.1712505966, -0.0399866998, 0.8578283191, 0.0498328246, 0.0852189884, 0.0202615969, -0.056788452, 0.4342235923, -0.2464380711, -0.0729637593, -0.2407000661, -0.3326310217, -0.0846641809, -0.2092349678, 0.08274059, -0.0030930769, -0.0626884848, 0.3957351446, -0.2062757015, 0.3918380737, 0.1450440288, 0.1694122851, -0.3521955311, 0.1240327507, -0.1580904871, 0.1550449133, -0.2077640891, 0.4187970459, -0.1372313648, -0.0071839597, -0.3030923605, -0.1701449454, -0.7933592796, 0.1383820027, 0.0477105565, 0.0148507021, 0.3436414301, -0.1029466838, 0.0108628944, 0.219278425, 0.5752389431, 0.0204206761, -0.3639791012, 0.198046267, -0.0757807195, -0.0254169684, -0.0132439062, -0.0763360485, 0.3167340159, -0.3335462809, -0.2046466321, 0.1010543704, -0.1129519567, -0.4047100544, -0.1654865444, -0.1741246134, 0.1597441584, -0.4395291805, -0.1107598692, -0.1657622606, 0.1147329807, -0.2908716202, 0.1486521065, 0.2463243753, 0.004293032, 0.1918427348, 0.1145737469, -0.0875286758, -0.2222450972, 0.5563129187, -0.1080512404, 0.0043465942, 0.3435762227, 0.2170307934, -0.2311034352, -0.1621932089, 0.1701337397, -0.0165805146, -0.5097994804, 0.0385340266, -0.3021154106, 0.2016071081, -0.2905808091, 0.4739768505, 0.3647389114, 0.2416925728, 0.3363366127, -0.7355576754, 0.0386391282, -0.0377284735, 0.0533792004, 0.2291823775, -0.2330826819, -0.3901048601, 0.211987257, -0.2208040059, -0.2780775428, -0.0557720512, -0.3257578611, -0.0768239051, 0.0049988329, 0.0173161514, 0.358907789, -0.2168378234, 0.1106584221, 0.0186861791, -0.1566238403, -0.2169032991, -0.1430363357, 0.1212926209, 0.0578180663, -0.2803611159, 0.1490191519, -0.2365240455, -0.1292478442, 0.1539892107, 0.0131601766, 0.277307719, 0.0367567688, 0.0113028586, -0.0722258538, -0.0603025779, -0.2676007152, 0.1169221252, -0.1861579269, 0.2702556551, 0.0370693617, 0.236031726, 0.3051556349, -0.0430770963, -0.40351969, 0.0967597887, 0.0711776912, -0.0867660344, 0.2332338691, -0.4593536258, -0.084624134, 0.241181314, 0.4229109883, 0.3079669476, -0.298340261, 0.0382734016, 0.2060982734, 0.2426957637, -0.2796035111, -0.130841732, 0.2574138641, -0.0331758372, -0.0699059814, -0.0807472765, 0.3395247459, -0.2981317043, 0.2762932181, 0.1378076375, 0.1826018691, 0.2348323166, 0.1614446789, 0.3945919275, 0.0780492574, 0.108394295, 0.2343334556, -0.1447654665, -0.0748585314, 0.0626412779, 0.0293497108, 0.0213523861, -0.2543692589, 0.252536118, -0.1574703306, -0.4455311298, 0.2843334675, 0.1948121488, -0.1493372172, -0.0774938762, -0.0952656418, 0.4345992208, -0.1961721629, 0.0277626328, -0.4497295022, 0.0599916279, -0.0288859513, 0.1380896121, -0.0134115368, -0.3608106375, -0.1873148829, 0.3162413836, -0.1222872064, -0.0887072757, 0.4075274169, 0.063541919, -0.3009316921, -0.5092543364, 0.2208690047, 0.0110250283, 0.0231642611, -0.1912494004, 0.1664220244, -0.0332768634, -0.1903322041, 0.0944038779, 0.4231258333, 0.2981811166, 0.1958507746, 0.0610543117, -0.0307480432, 0.0787224919, -0.0598150007, 0.0852562189, 0.3819751441, 0.1442196816, -0.1878290623, 0.3243118227, 0.1266501844, -0.2077418417, 0.1612346023, -0.1640617996, -0.0760762244, -0.1665033102, 0.106891647, -0.2139309645, 0.2273308337, -0.0371265709, -0.0536025912, -0.2477538735, -0.2532760799, 0.1240262538, -0.0356302112, 0.0532443151, -0.2184623778, 0.073223196, -0.2117637843, 0.4391586185, 0.5012011528, 0.2203855067, -0.198935017, -0.3539735079, -0.7645024061, 0.0755129904, -0.1055577099, 0.1795702875, 0.1648111939, 0.059053272, -0.2350417525, 0.3077594638, 0.2918091416, -0.1663731784, -0.2167533934, 0.1551812589, -0.2801146507, 0.027818352, -0.0017775912, 0.039290905, -0.1063552499, -0.3270184994, 0.449608475, -0.0174865797, -0.0518390983, 0.0579670183, -0.1573753357, -0.0224292241, -0.0660104305, 0.1293936819, 0.1314200759, 0.4132754505, 0.111558266, -0.2058255076, -0.1611679792, -0.1233504713, -0.0885254592, 0.0245668516, -0.1909862906, 0.4489953816, -0.0743560642, 0.0140362028, -0.2581720352, 0.4458041191, 0.0753707141, -0.1675119102, -0.2399930954, -0.0571003258, -0.0309003592, 0.0237364955, 0.1177298799, -0.0577363819, -0.16646716, 0.2077932358, -0.2280245721, -0.1409025788, 0.2995198071, -0.0260362066, -0.1205232963, -0.2113776207, 0.0801455677, 0.1370506287, -0.2118646204, -0.4640901983, 0.1963193715, 0.3802841902, 0.1471929848, -0.2640031576, 0.2581160963, -0.1581690162, 0.158573553, 0.1285285354, 0.3842265904, 0.0633043051, -0.2160658687, 0.3193858266, -0.1347645819 ]
https://github.com/huggingface/datasets/issues/2645
load_dataset processing failed with OS error after downloading a dataset
Hi ! It looks like an issue with pytorch. Could you try to run `import torch` and see if it raises an error ?
## Describe the bug After downloading a dataset like opus100, there is a bug that OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Steps to reproduce the bug ```python from datasets import load_dataset this_dataset = load_dataset('opus100', 'af-en') ``` ## Expected results there is no error when running load_dataset. ## Actual results Specify the actual results or traceback. Traceback (most recent call last): File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prep self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 989, in _prepare_split example = self.info.features.encode_example(record) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 952, in encode_example example = cast_to_python_objects(example) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 219, in cast_to_python_ob return _cast_to_python_objects(obj)[0] File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 165, in _cast_to_python_o import torch File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 188, in <module> _load_global_deps() File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 141, in _load_global_deps ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) File "/home/anaconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__ self._handle = _dlopen(self._name, mode) OSError: dlopen: cannot load any more object with static TLS During handling of the above exception, another exception occurred: Traceback (most recent call last): File "download_hub_opus100.py", line 9, in <module> this_dataset = load_dataset('opus100', language_pair) File "/home/anaconda3/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepa dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 658, in _download_and_prep + str(e) OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-3.13.0-32-generic-x86_64-with-debian-jessie-sid - Python version: 3.6.6 - PyArrow version: 3.0.0
24
load_dataset processing failed with OS error after downloading a dataset ## Describe the bug After downloading a dataset like opus100, there is a bug that OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Steps to reproduce the bug ```python from datasets import load_dataset this_dataset = load_dataset('opus100', 'af-en') ``` ## Expected results there is no error when running load_dataset. ## Actual results Specify the actual results or traceback. Traceback (most recent call last): File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prep self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 989, in _prepare_split example = self.info.features.encode_example(record) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 952, in encode_example example = cast_to_python_objects(example) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 219, in cast_to_python_ob return _cast_to_python_objects(obj)[0] File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 165, in _cast_to_python_o import torch File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 188, in <module> _load_global_deps() File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 141, in _load_global_deps ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) File "/home/anaconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__ self._handle = _dlopen(self._name, mode) OSError: dlopen: cannot load any more object with static TLS During handling of the above exception, another exception occurred: Traceback (most recent call last): File "download_hub_opus100.py", line 9, in <module> this_dataset = load_dataset('opus100', language_pair) File "/home/anaconda3/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepa dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 658, in _download_and_prep + str(e) OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-3.13.0-32-generic-x86_64-with-debian-jessie-sid - Python version: 3.6.6 - PyArrow version: 3.0.0 Hi ! It looks like an issue with pytorch. Could you try to run `import torch` and see if it raises an error ?
[ -0.4430500865, 0.2031197101, -0.0454364792, 0.4847755134, 0.3039823174, -0.0233754888, 0.2349692732, 0.3660461605, -0.1082285941, 0.092752628, -0.1625686586, 0.4678146839, -0.0074347109, -0.0836083815, -0.0174172278, -0.1323250532, 0.0387219936, 0.2778638899, -0.6045758128, -0.0482677408, -0.4312468469, 0.3115380108, -0.1030295268, -0.0990162045, 0.0378609933, 0.0749130622, -0.1906298399, 0.3197149634, -0.0947884172, -0.2602508664, -0.0209333487, -0.1710366309, 0.2840123773, 0.5108671188, -0.0001183986, 0.2902745008, 0.0925462767, -0.09077131, -0.402387619, -0.1111453921, -0.083258763, -0.1031599492, 0.1482376158, -0.379036665, -0.0424587242, -0.2175002694, -0.0282114744, -0.5162990689, 0.2104210556, 0.3379335105, 0.1746217012, 0.3742226958, 0.2902136743, -0.1484119296, 0.2540623546, -0.0283484235, -0.0414077826, 0.0484553091, 0.1556954831, -0.0565810353, 0.0651962385, 0.2920298874, -0.1614065617, 0.1469640434, 0.2089903504, 0.0581361018, 0.2701868117, -0.3370187283, 0.3568373024, 0.1577440798, 0.5403918624, -0.0280470904, -0.333185941, -0.1878482401, 0.0130494498, -0.4298110604, 0.2435779423, 0.2214608788, -0.0285914801, 0.0868350714, 0.1412745714, -0.1238946021, -0.0940338001, 0.3054015636, -0.0420604348, 0.2001218349, -0.0576186925, -0.0591640621, 0.0631152242, 0.2239583433, 0.2793520093, 0.0497792326, -0.0100777131, 0.3172571063, -0.4745250642, 0.1773100942, 0.171900034, 0.0040302854, 0.0933710411, -0.0650278926, 0.1036135182, -0.2318622321, -0.0230106674, -0.0736536682, 0.2052519172, 0.0471470542, -0.2928023338, -0.1984691173, 0.1404684633, 0.0625923425, -0.1818163693, -0.0956845209, -0.1932927072, -0.3410633504, 0.0759851933, 0.1347165555, 0.575645864, -0.1788662672, -0.3567051291, -0.053794127, -0.1881233156, -0.0532147735, 0.1069232225, 0.2891925871, -0.0607555099, 0.4205153286, 0.2440233678, 0.1303143203, -0.3833304644, 0.0157028474, -0.1193969548, -0.2396059334, -0.1751903594, -0.0182259642, 0.0644399524, -0.4865527451, 0.3154321313, 0.1732186377, -0.0735437199, -0.3623704612, 0.3777589798, -0.0794211552, -0.095461756, 0.2311087996, -0.002141118, -0.1261713207, 0.1479643881, -0.0137933418, 0.0977249593, 0.4053345621, -0.4959003031, -0.5249581337, -0.4787272215, 0.1713287979, -0.3053378165, 0.1398525387, 0.3070881963, -0.1751900911, 0.150740236, -0.1544897854, -0.0985912681, -0.209185496, -0.3328262568, -0.1935878992, 0.4081573486, 0.4952768683, -0.3194479048, 0.0553346574, -0.2524329126, -0.1881267428, -0.1042023525, -0.0230469182, -0.0677802041, 0.3877436221, -0.5029062629, -0.2613582611, 0.2853173316, -0.4429519176, -0.6753495932, 0.0294268169, -0.2476944029, 0.0424232557, 0.3182736635, 0.0589967072, 0.3740203381, -0.0094538443, -0.1303224713, 0.2131940573, 0.135490939, 0.0185984001, -0.1482965201, -0.1480099261, 0.0453192778, 0.2436875403, 0.0738347918, 0.0752405673, 0.1276133955, 0.1137060896, 0.2993846238, -0.1438609958, -0.1832549572, 0.109692812, 0.2658591866, 0.1396877319, 0.2437557131, -0.0872694552, -0.4674575627, 0.082742855, -0.0533502698, 0.0326676965, -0.2187168002, -0.0448131189, -0.1293060184, 0.095643349, -0.2936308086, -0.3219189942, 0.0730180144, 0.1981953084, 0.0066882521, 0.0158333555, -0.0868259519, 0.3457704186, 0.1164514497, 0.1674297452, -0.2508364618, 0.3303534985, 0.1207666695, -0.0379177444, -0.0812915936, 0.320412904, 0.045306392, -0.2102500647, -0.2788045704, 0.4593664706, 0.1484800726, -0.0225255787, -0.0986611843, 0.1753179133, 0.2358968258, -0.2645651698, -0.0982181057, 0.0409373641, 0.2143257111, 0.070844084, 0.1004786789, 0.0042713135, -0.1008392423, 0.1319380403, 0.1286807954, -0.00421267, 0.0599550009, -0.2399789244, 0.0350485146, -0.0927791372, 0.3647741675, -0.0100673083, 0.3398682475, 0.114842087, -0.2486351132, -0.1168407649, 0.4487634301, -0.0409493037, 0.2245079875, 0.104968749, -0.210549593, 0.2330357879, -0.0582608953, 0.133837074, 0.76341784, 0.1158925742, -0.3087421954, 0.0303173568, 0.1568049341, -0.0560592562, 0.304715097, 0.2135778069, 0.5176045299, 0.4227154255, 0.0548550747, 0.211186856, -0.1041077226, -0.4372710586, 0.1301831305, 0.242952168, -0.3268969059, -0.0282365941, -0.227532059, -0.0035177916, -0.1745346189, -0.0063035637, -0.1977399141, -0.1105284467, -0.0038945014, 0.1199060827, -0.0541348234, 0.0521624908, -0.276876986, 0.0833759755, 0.2396610081, -0.2275038064, 0.1765097082, -0.0787878111, -0.1228339076, -0.0798946619, 0.3425708711, -0.1298446804, 0.2565790117, -0.3259464502, 0.1347653419, -0.175197795, -0.2120327353, 0.1560975164, 0.2870917916, 0.1585516632, 0.1268410981, 0.2120091319, 0.1711955518, -0.2368267775, 0.233457759, -0.122333087, -0.0551893562, 0.1113456339, -0.012024764, 0.2442090362, -0.0472897068, -0.4643704295, -0.3488773108, -0.4888260365, -0.0874162018, -0.0671286583, 0.2688058913, 0.1994023919, 0.126101613, 0.2629386485, 0.2930868268, 0.0473044887, -0.0196142308, -0.188722387, 0.2164982259, -0.303324163, -0.2178201675, -0.2564585805, 0.071267724, 0.2940011919, 0.0316478722, -0.6996407509, -0.3688037992, -0.095859386, 0.1920548677, -0.4736223817, -0.021840943, 0.2243336886, 0.0982547104, 0.023132205, -0.3120471835, 0.0890539289, 0.0811185986, -0.1509290338, 0.2234877944, -0.1041749939, 0.4505559504, -0.218290031, 0.5835214853, -0.0896608979, -0.2326274663, 0.494356215, -0.1522168815, 0.3561165631, -0.1552249789, -0.252646327, -0.2044536173, -0.0917276442, 0.011841014, 0.2949993014, 0.090379104, 0.0096509345, -0.2692481875, 0.0204117298, -0.447408855, -0.2161026597, 0.1328549534, -0.1035334766, 0.2543565929, -0.074754931, 0.2682156563, -0.1886685342, -0.0850549936, 0.1154111326, 0.2735350132, 0.1169506609, -0.0427169129, 0.0068602264, -0.0428304076, -0.1197037846, 0.2423279732, -0.1672640294, 0.3011180758, -0.0396490619, -0.1038927361, 0.0168125834, 0.0017575026, 0.8671805263, 0.1616338938, 0.0611755773, 0.0744497925, 0.0017682984, -0.2096126229, -0.1531897038, -0.0487000011, 0.5598666072, 0.4752479196, 0.6100466251, -0.1361036599, -0.2062624693, 0.1989937574, 0.2431157827, -0.0953741521, -0.4367497563, -0.32781896, -0.3320828378, -0.2650569081, -0.0560364053, -0.0521910377, 0.4572674036, -0.1983002573, 0.0208345726, -0.1782423109, -0.4005161524, -0.1174490526, 0.072397992, 0.4080716074, -0.0451457612, 0.3436598182, 0.1963217705, 0.3403641582, 0.3059304655, 0.6303965449, -0.1995362937, -0.5900688767, 0.30275774, -0.1965070963, 0.0657595322, 0.1468284577, -0.0596204996, -0.1145516559, 0.0031643063, 0.1844049543, -0.0919597372, 0.0092866272, 0.2338160723, 0.0345939435, -0.3580456674, -0.3023236394, 0.3559458852, -0.025090076, 0.0034082532, 0.3342488408, -0.242839247, -0.1591667682, 0.5583696365, -0.0221912935, 0.8753301501, -0.1954443455, -0.0461548343, 0.0339418761, -0.2444018871, 0.7470531464, -0.4442424178, 0.1304819286, -0.309566021, -0.3840742111, 0.0418413803, -0.2273296416, 0.1917006075, 0.0126243681, -0.1538769156, 0.1041533798, -0.1464484483, 0.121333763, 0.1688228697, 0.3585909605, -0.1928763986, -0.1547817141, -0.2013196051, -0.006766092, 0.0725000501, 0.4714586735, -0.1576275378, -0.2567613423, -0.1816904396, -0.0251294449, -0.058086589, 0.1820369065, -0.5054661036, 0.2635748684, -0.0394346379, -0.5898028016, 0.0116451979, 0.7242991328, 0.0000025891, 0.1009303704, -0.0902635977, 0.2722339332, 0.1893348694, 0.0081510916, 0.2704312205, -0.0907734111, 0.2482926548, -0.0775396004, -0.189485386, 0.0635935813, -0.2281294167, -0.2401601076, 0.4469695985, -0.0698916763, 0.3370925784, -0.2419397235, -0.1958484352, -0.1846805215, -0.0030677244, -0.1061995551, 0.0852934942, 0.0861071497, -0.2696990073, 0.0032323003, -0.1789134145, -0.4170425236, -0.0303872563, 0.3435990214, -0.1027673334, 0.1958585829, 0.5353899598, 0.2496226877, 0.0700470805, -0.12866202, 0.0876134783, -0.0788828433, -0.8638373613, 0.0030895844, 0.1329427212, 0.1910302788, -0.1324963123, -0.3880007267, -0.0416087769, 0.0246453937, -0.2592012286, -0.8063879013, -0.1279872805, 0.0003272612, -0.0555138662, 0.1209061146, 0.0125721321, 0.1814005971, -0.1055719703, -0.1266917139, -0.2139291763, 0.1138366535, -0.041583281, -0.0350905433, 0.2087370753, -0.0261920709, 0.0522148982, -0.1148365214, 0.1224132329, 0.1322818249, -0.0545902699, -0.1592980176, -0.1986372024, 0.1914595962, -0.1697371006, -0.1901635528, -0.0694986954, -0.260387361, -0.0823466629, -0.0308074951, 0.1341706961, -0.1280404031, -0.1342074871, -0.1807748377, 0.0529538691, 0.1350380182, -0.2587349713, 0.3014795184, -0.1523778588, 0.1533983648, -0.046516858, 0.3444421887, -0.127818346, 0.0601228103, -0.283170253, -0.215034008, -0.0194683596, 0.0541303568, 0.292199254, -0.2612037659, 0.04374253, 0.2345065773, 0.0612110272, 0.2389374822, -0.2238368988, 0.0480346158, 0.1548055261, 0.213817507, -0.2007176727, 0.0465121828, 0.2298102975, 0.225476861, -0.0167987049, 0.1226186156, 0.1225852966, -0.0604852065, -0.0298847556, 0.0791065842, 0.2626871765, 0.4071727395, 0.3707689941, 0.812510252, 0.0319910944, 0.2267281413, -0.1681683809, -0.2003173828, -0.0137509294, 0.5678644776, -0.1570244282, 0.1488419175, 0.1619775593, 0.1495592892, 0.0736277252, -0.4403556585, -0.1011137664, -0.0547252521, -0.0171098299, 0.1752586365, -0.2550034225, 0.5106298327, -0.2262843102, 0.0769669861, -0.2533052564, 0.3183329105, -0.1050112396, 0.0823975205, -0.0645420477, -0.1711417437, 0.1584538519, 0.0610035062, -0.0092047956, 0.0408185348, -0.2774720788, 0.2281304747, -0.2549316585, -0.1301790625, -0.3134043515, 0.3595225513, -0.0539509207, -0.1707004607, 0.3595725, 0.3049591482, 0.174718231, 0.189199537, 0.3637140691, 0.4831364155, 0.4503183961, -0.3225106001, 0.0358870849, 0.1269647181, 0.0891218707, -0.0236318894, -0.0067647733, 0.0139687173, 0.266841948, 0.3173694015, 0.0636152476, -0.163579613, 0.0507054776, 0.0274480525, 0.1804315597, -0.2532275319, -0.026646737, -0.0367830843, -0.1780870557, -0.1143434942, 0.0704004318, -0.2277838439, -0.1253745556, 0.3511192501, -0.0495122299, -0.0020051487, 0.0596438348, 0.0218054987, -0.2592399716, 0.3652290702, 0.21829319, 0.5810958147, -0.2674708664, -0.2173574865, -0.6972260475, 0.3747780323, -0.0192843303, -0.2902254164, 0.2166699618, -0.0611447953, -0.0355447717, 0.1555819809, 0.3550474644, -0.0920128971, 0.3595958054, 0.241131112, -0.4858283401, -0.3335187435, -0.4250918031, 0.2082860768, -0.0554013252, -0.4326459169, 0.0748036206, 0.0352407582, 0.0519153699, -0.1904162616, -0.1346191466, -0.0248720683, -0.0795995444, 0.4432127476, -0.0042052194, 0.4430547953, -0.0852828398, -0.0573904216, 0.003982971, -0.1729488075, -0.1389400214, 0.1609294713, 0.325943172, 0.0645694807, -0.1252213418, -0.3071179986, -0.2925893664, 0.4147918224, -0.0671637431, 0.3546151817, -0.353636533, 0.0940051451, -0.1247278601, 0.0684195757, 0.292765975, 0.1802986264, -0.1506899148, 0.155107975, -0.2595284581, -0.1846697927, 0.4124612808, -0.6139752269, 0.0659287721, -0.061922919, 0.3500472903, 0.03162314, 0.1475657225, -0.361076653, 0.0741283894, 0.4486698508, 0.0358201377, -0.3080538213, -0.0032144971, 0.1185027212, 0.1700796485, 0.0924640074, 0.3108469248, -0.0426306129, -0.3124409318, 0.0873369649, -0.1259962022 ]
https://github.com/huggingface/datasets/issues/2645
load_dataset processing failed with OS error after downloading a dataset
> Hi ! It looks like an issue with pytorch. > > Could you try to run `import torch` and see if it raises an error ? It works. Thank you!
## Describe the bug After downloading a dataset like opus100, there is a bug that OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Steps to reproduce the bug ```python from datasets import load_dataset this_dataset = load_dataset('opus100', 'af-en') ``` ## Expected results there is no error when running load_dataset. ## Actual results Specify the actual results or traceback. Traceback (most recent call last): File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prep self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 989, in _prepare_split example = self.info.features.encode_example(record) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 952, in encode_example example = cast_to_python_objects(example) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 219, in cast_to_python_ob return _cast_to_python_objects(obj)[0] File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 165, in _cast_to_python_o import torch File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 188, in <module> _load_global_deps() File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 141, in _load_global_deps ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) File "/home/anaconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__ self._handle = _dlopen(self._name, mode) OSError: dlopen: cannot load any more object with static TLS During handling of the above exception, another exception occurred: Traceback (most recent call last): File "download_hub_opus100.py", line 9, in <module> this_dataset = load_dataset('opus100', language_pair) File "/home/anaconda3/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepa dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 658, in _download_and_prep + str(e) OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-3.13.0-32-generic-x86_64-with-debian-jessie-sid - Python version: 3.6.6 - PyArrow version: 3.0.0
31
load_dataset processing failed with OS error after downloading a dataset ## Describe the bug After downloading a dataset like opus100, there is a bug that OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Steps to reproduce the bug ```python from datasets import load_dataset this_dataset = load_dataset('opus100', 'af-en') ``` ## Expected results there is no error when running load_dataset. ## Actual results Specify the actual results or traceback. Traceback (most recent call last): File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prep self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 989, in _prepare_split example = self.info.features.encode_example(record) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 952, in encode_example example = cast_to_python_objects(example) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 219, in cast_to_python_ob return _cast_to_python_objects(obj)[0] File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 165, in _cast_to_python_o import torch File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 188, in <module> _load_global_deps() File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 141, in _load_global_deps ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) File "/home/anaconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__ self._handle = _dlopen(self._name, mode) OSError: dlopen: cannot load any more object with static TLS During handling of the above exception, another exception occurred: Traceback (most recent call last): File "download_hub_opus100.py", line 9, in <module> this_dataset = load_dataset('opus100', language_pair) File "/home/anaconda3/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepa dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 658, in _download_and_prep + str(e) OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-3.13.0-32-generic-x86_64-with-debian-jessie-sid - Python version: 3.6.6 - PyArrow version: 3.0.0 > Hi ! It looks like an issue with pytorch. > > Could you try to run `import torch` and see if it raises an error ? It works. Thank you!
[ -0.4430500865, 0.2031197101, -0.0454364792, 0.4847755134, 0.3039823174, -0.0233754888, 0.2349692732, 0.3660461605, -0.1082285941, 0.092752628, -0.1625686586, 0.4678146839, -0.0074347109, -0.0836083815, -0.0174172278, -0.1323250532, 0.0387219936, 0.2778638899, -0.6045758128, -0.0482677408, -0.4312468469, 0.3115380108, -0.1030295268, -0.0990162045, 0.0378609933, 0.0749130622, -0.1906298399, 0.3197149634, -0.0947884172, -0.2602508664, -0.0209333487, -0.1710366309, 0.2840123773, 0.5108671188, -0.0001183986, 0.2902745008, 0.0925462767, -0.09077131, -0.402387619, -0.1111453921, -0.083258763, -0.1031599492, 0.1482376158, -0.379036665, -0.0424587242, -0.2175002694, -0.0282114744, -0.5162990689, 0.2104210556, 0.3379335105, 0.1746217012, 0.3742226958, 0.2902136743, -0.1484119296, 0.2540623546, -0.0283484235, -0.0414077826, 0.0484553091, 0.1556954831, -0.0565810353, 0.0651962385, 0.2920298874, -0.1614065617, 0.1469640434, 0.2089903504, 0.0581361018, 0.2701868117, -0.3370187283, 0.3568373024, 0.1577440798, 0.5403918624, -0.0280470904, -0.333185941, -0.1878482401, 0.0130494498, -0.4298110604, 0.2435779423, 0.2214608788, -0.0285914801, 0.0868350714, 0.1412745714, -0.1238946021, -0.0940338001, 0.3054015636, -0.0420604348, 0.2001218349, -0.0576186925, -0.0591640621, 0.0631152242, 0.2239583433, 0.2793520093, 0.0497792326, -0.0100777131, 0.3172571063, -0.4745250642, 0.1773100942, 0.171900034, 0.0040302854, 0.0933710411, -0.0650278926, 0.1036135182, -0.2318622321, -0.0230106674, -0.0736536682, 0.2052519172, 0.0471470542, -0.2928023338, -0.1984691173, 0.1404684633, 0.0625923425, -0.1818163693, -0.0956845209, -0.1932927072, -0.3410633504, 0.0759851933, 0.1347165555, 0.575645864, -0.1788662672, -0.3567051291, -0.053794127, -0.1881233156, -0.0532147735, 0.1069232225, 0.2891925871, -0.0607555099, 0.4205153286, 0.2440233678, 0.1303143203, -0.3833304644, 0.0157028474, -0.1193969548, -0.2396059334, -0.1751903594, -0.0182259642, 0.0644399524, -0.4865527451, 0.3154321313, 0.1732186377, -0.0735437199, -0.3623704612, 0.3777589798, -0.0794211552, -0.095461756, 0.2311087996, -0.002141118, -0.1261713207, 0.1479643881, -0.0137933418, 0.0977249593, 0.4053345621, -0.4959003031, -0.5249581337, -0.4787272215, 0.1713287979, -0.3053378165, 0.1398525387, 0.3070881963, -0.1751900911, 0.150740236, -0.1544897854, -0.0985912681, -0.209185496, -0.3328262568, -0.1935878992, 0.4081573486, 0.4952768683, -0.3194479048, 0.0553346574, -0.2524329126, -0.1881267428, -0.1042023525, -0.0230469182, -0.0677802041, 0.3877436221, -0.5029062629, -0.2613582611, 0.2853173316, -0.4429519176, -0.6753495932, 0.0294268169, -0.2476944029, 0.0424232557, 0.3182736635, 0.0589967072, 0.3740203381, -0.0094538443, -0.1303224713, 0.2131940573, 0.135490939, 0.0185984001, -0.1482965201, -0.1480099261, 0.0453192778, 0.2436875403, 0.0738347918, 0.0752405673, 0.1276133955, 0.1137060896, 0.2993846238, -0.1438609958, -0.1832549572, 0.109692812, 0.2658591866, 0.1396877319, 0.2437557131, -0.0872694552, -0.4674575627, 0.082742855, -0.0533502698, 0.0326676965, -0.2187168002, -0.0448131189, -0.1293060184, 0.095643349, -0.2936308086, -0.3219189942, 0.0730180144, 0.1981953084, 0.0066882521, 0.0158333555, -0.0868259519, 0.3457704186, 0.1164514497, 0.1674297452, -0.2508364618, 0.3303534985, 0.1207666695, -0.0379177444, -0.0812915936, 0.320412904, 0.045306392, -0.2102500647, -0.2788045704, 0.4593664706, 0.1484800726, -0.0225255787, -0.0986611843, 0.1753179133, 0.2358968258, -0.2645651698, -0.0982181057, 0.0409373641, 0.2143257111, 0.070844084, 0.1004786789, 0.0042713135, -0.1008392423, 0.1319380403, 0.1286807954, -0.00421267, 0.0599550009, -0.2399789244, 0.0350485146, -0.0927791372, 0.3647741675, -0.0100673083, 0.3398682475, 0.114842087, -0.2486351132, -0.1168407649, 0.4487634301, -0.0409493037, 0.2245079875, 0.104968749, -0.210549593, 0.2330357879, -0.0582608953, 0.133837074, 0.76341784, 0.1158925742, -0.3087421954, 0.0303173568, 0.1568049341, -0.0560592562, 0.304715097, 0.2135778069, 0.5176045299, 0.4227154255, 0.0548550747, 0.211186856, -0.1041077226, -0.4372710586, 0.1301831305, 0.242952168, -0.3268969059, -0.0282365941, -0.227532059, -0.0035177916, -0.1745346189, -0.0063035637, -0.1977399141, -0.1105284467, -0.0038945014, 0.1199060827, -0.0541348234, 0.0521624908, -0.276876986, 0.0833759755, 0.2396610081, -0.2275038064, 0.1765097082, -0.0787878111, -0.1228339076, -0.0798946619, 0.3425708711, -0.1298446804, 0.2565790117, -0.3259464502, 0.1347653419, -0.175197795, -0.2120327353, 0.1560975164, 0.2870917916, 0.1585516632, 0.1268410981, 0.2120091319, 0.1711955518, -0.2368267775, 0.233457759, -0.122333087, -0.0551893562, 0.1113456339, -0.012024764, 0.2442090362, -0.0472897068, -0.4643704295, -0.3488773108, -0.4888260365, -0.0874162018, -0.0671286583, 0.2688058913, 0.1994023919, 0.126101613, 0.2629386485, 0.2930868268, 0.0473044887, -0.0196142308, -0.188722387, 0.2164982259, -0.303324163, -0.2178201675, -0.2564585805, 0.071267724, 0.2940011919, 0.0316478722, -0.6996407509, -0.3688037992, -0.095859386, 0.1920548677, -0.4736223817, -0.021840943, 0.2243336886, 0.0982547104, 0.023132205, -0.3120471835, 0.0890539289, 0.0811185986, -0.1509290338, 0.2234877944, -0.1041749939, 0.4505559504, -0.218290031, 0.5835214853, -0.0896608979, -0.2326274663, 0.494356215, -0.1522168815, 0.3561165631, -0.1552249789, -0.252646327, -0.2044536173, -0.0917276442, 0.011841014, 0.2949993014, 0.090379104, 0.0096509345, -0.2692481875, 0.0204117298, -0.447408855, -0.2161026597, 0.1328549534, -0.1035334766, 0.2543565929, -0.074754931, 0.2682156563, -0.1886685342, -0.0850549936, 0.1154111326, 0.2735350132, 0.1169506609, -0.0427169129, 0.0068602264, -0.0428304076, -0.1197037846, 0.2423279732, -0.1672640294, 0.3011180758, -0.0396490619, -0.1038927361, 0.0168125834, 0.0017575026, 0.8671805263, 0.1616338938, 0.0611755773, 0.0744497925, 0.0017682984, -0.2096126229, -0.1531897038, -0.0487000011, 0.5598666072, 0.4752479196, 0.6100466251, -0.1361036599, -0.2062624693, 0.1989937574, 0.2431157827, -0.0953741521, -0.4367497563, -0.32781896, -0.3320828378, -0.2650569081, -0.0560364053, -0.0521910377, 0.4572674036, -0.1983002573, 0.0208345726, -0.1782423109, -0.4005161524, -0.1174490526, 0.072397992, 0.4080716074, -0.0451457612, 0.3436598182, 0.1963217705, 0.3403641582, 0.3059304655, 0.6303965449, -0.1995362937, -0.5900688767, 0.30275774, -0.1965070963, 0.0657595322, 0.1468284577, -0.0596204996, -0.1145516559, 0.0031643063, 0.1844049543, -0.0919597372, 0.0092866272, 0.2338160723, 0.0345939435, -0.3580456674, -0.3023236394, 0.3559458852, -0.025090076, 0.0034082532, 0.3342488408, -0.242839247, -0.1591667682, 0.5583696365, -0.0221912935, 0.8753301501, -0.1954443455, -0.0461548343, 0.0339418761, -0.2444018871, 0.7470531464, -0.4442424178, 0.1304819286, -0.309566021, -0.3840742111, 0.0418413803, -0.2273296416, 0.1917006075, 0.0126243681, -0.1538769156, 0.1041533798, -0.1464484483, 0.121333763, 0.1688228697, 0.3585909605, -0.1928763986, -0.1547817141, -0.2013196051, -0.006766092, 0.0725000501, 0.4714586735, -0.1576275378, -0.2567613423, -0.1816904396, -0.0251294449, -0.058086589, 0.1820369065, -0.5054661036, 0.2635748684, -0.0394346379, -0.5898028016, 0.0116451979, 0.7242991328, 0.0000025891, 0.1009303704, -0.0902635977, 0.2722339332, 0.1893348694, 0.0081510916, 0.2704312205, -0.0907734111, 0.2482926548, -0.0775396004, -0.189485386, 0.0635935813, -0.2281294167, -0.2401601076, 0.4469695985, -0.0698916763, 0.3370925784, -0.2419397235, -0.1958484352, -0.1846805215, -0.0030677244, -0.1061995551, 0.0852934942, 0.0861071497, -0.2696990073, 0.0032323003, -0.1789134145, -0.4170425236, -0.0303872563, 0.3435990214, -0.1027673334, 0.1958585829, 0.5353899598, 0.2496226877, 0.0700470805, -0.12866202, 0.0876134783, -0.0788828433, -0.8638373613, 0.0030895844, 0.1329427212, 0.1910302788, -0.1324963123, -0.3880007267, -0.0416087769, 0.0246453937, -0.2592012286, -0.8063879013, -0.1279872805, 0.0003272612, -0.0555138662, 0.1209061146, 0.0125721321, 0.1814005971, -0.1055719703, -0.1266917139, -0.2139291763, 0.1138366535, -0.041583281, -0.0350905433, 0.2087370753, -0.0261920709, 0.0522148982, -0.1148365214, 0.1224132329, 0.1322818249, -0.0545902699, -0.1592980176, -0.1986372024, 0.1914595962, -0.1697371006, -0.1901635528, -0.0694986954, -0.260387361, -0.0823466629, -0.0308074951, 0.1341706961, -0.1280404031, -0.1342074871, -0.1807748377, 0.0529538691, 0.1350380182, -0.2587349713, 0.3014795184, -0.1523778588, 0.1533983648, -0.046516858, 0.3444421887, -0.127818346, 0.0601228103, -0.283170253, -0.215034008, -0.0194683596, 0.0541303568, 0.292199254, -0.2612037659, 0.04374253, 0.2345065773, 0.0612110272, 0.2389374822, -0.2238368988, 0.0480346158, 0.1548055261, 0.213817507, -0.2007176727, 0.0465121828, 0.2298102975, 0.225476861, -0.0167987049, 0.1226186156, 0.1225852966, -0.0604852065, -0.0298847556, 0.0791065842, 0.2626871765, 0.4071727395, 0.3707689941, 0.812510252, 0.0319910944, 0.2267281413, -0.1681683809, -0.2003173828, -0.0137509294, 0.5678644776, -0.1570244282, 0.1488419175, 0.1619775593, 0.1495592892, 0.0736277252, -0.4403556585, -0.1011137664, -0.0547252521, -0.0171098299, 0.1752586365, -0.2550034225, 0.5106298327, -0.2262843102, 0.0769669861, -0.2533052564, 0.3183329105, -0.1050112396, 0.0823975205, -0.0645420477, -0.1711417437, 0.1584538519, 0.0610035062, -0.0092047956, 0.0408185348, -0.2774720788, 0.2281304747, -0.2549316585, -0.1301790625, -0.3134043515, 0.3595225513, -0.0539509207, -0.1707004607, 0.3595725, 0.3049591482, 0.174718231, 0.189199537, 0.3637140691, 0.4831364155, 0.4503183961, -0.3225106001, 0.0358870849, 0.1269647181, 0.0891218707, -0.0236318894, -0.0067647733, 0.0139687173, 0.266841948, 0.3173694015, 0.0636152476, -0.163579613, 0.0507054776, 0.0274480525, 0.1804315597, -0.2532275319, -0.026646737, -0.0367830843, -0.1780870557, -0.1143434942, 0.0704004318, -0.2277838439, -0.1253745556, 0.3511192501, -0.0495122299, -0.0020051487, 0.0596438348, 0.0218054987, -0.2592399716, 0.3652290702, 0.21829319, 0.5810958147, -0.2674708664, -0.2173574865, -0.6972260475, 0.3747780323, -0.0192843303, -0.2902254164, 0.2166699618, -0.0611447953, -0.0355447717, 0.1555819809, 0.3550474644, -0.0920128971, 0.3595958054, 0.241131112, -0.4858283401, -0.3335187435, -0.4250918031, 0.2082860768, -0.0554013252, -0.4326459169, 0.0748036206, 0.0352407582, 0.0519153699, -0.1904162616, -0.1346191466, -0.0248720683, -0.0795995444, 0.4432127476, -0.0042052194, 0.4430547953, -0.0852828398, -0.0573904216, 0.003982971, -0.1729488075, -0.1389400214, 0.1609294713, 0.325943172, 0.0645694807, -0.1252213418, -0.3071179986, -0.2925893664, 0.4147918224, -0.0671637431, 0.3546151817, -0.353636533, 0.0940051451, -0.1247278601, 0.0684195757, 0.292765975, 0.1802986264, -0.1506899148, 0.155107975, -0.2595284581, -0.1846697927, 0.4124612808, -0.6139752269, 0.0659287721, -0.061922919, 0.3500472903, 0.03162314, 0.1475657225, -0.361076653, 0.0741283894, 0.4486698508, 0.0358201377, -0.3080538213, -0.0032144971, 0.1185027212, 0.1700796485, 0.0924640074, 0.3108469248, -0.0426306129, -0.3124409318, 0.0873369649, -0.1259962022 ]
https://github.com/huggingface/datasets/issues/2644
Batched `map` not allowed to return 0 items
Hi ! Thanks for reporting. Indeed it looks like type inference makes it fail. We should probably just ignore this step until a non-empty batch is passed.
## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1
27
Batched `map` not allowed to return 0 items ## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1 Hi ! Thanks for reporting. Indeed it looks like type inference makes it fail. We should probably just ignore this step until a non-empty batch is passed.
[ -0.2328359336, -0.3903887272, -0.0444568731, 0.1644899547, -0.1085450575, -0.0687687993, 0.1163393706, 0.4056321383, 0.6400416493, 0.1178811789, -0.0565716475, 0.2460853457, -0.3954414129, 0.1043546125, -0.1629213691, 0.1608028412, -0.0449333005, 0.1405792236, -0.1691173315, -0.1914923787, -0.3362932205, 0.1631995887, -0.3979260921, -0.0501046889, -0.1487713754, -0.2919759452, 0.2864801288, -0.0362103283, -0.1628143191, -0.2454051971, 0.2060909718, -0.2328294963, -0.2091358006, 0.5783208013, -0.0001299275, -0.0231368914, 0.1505940557, -0.1851883233, -0.0897616744, -0.3029606342, -0.1908178031, -0.1715303659, -0.1157186553, -0.2824648917, 0.18194592, -0.2716506422, -0.1956347525, -0.4482402503, 0.1071964651, 0.2587006986, 0.0433217548, 0.418817699, 0.0030659661, 0.1764480174, 0.3312484324, 0.2664010823, -0.0753518194, 0.1288105696, 0.7205767632, -0.2881011963, 0.0226272214, 0.3385902345, -0.3921836019, 0.0709063411, 0.1367557049, -0.0309032369, 0.2301689684, -0.5515581965, 0.2697508037, 0.3675672114, -0.0900000781, 0.0607852787, -0.4333372116, -0.6687817574, -0.0403037108, -0.095498845, -0.0388976745, 0.2810003757, -0.4210393727, -0.0564596243, -0.4846191406, 0.1217951775, 0.0078949109, 0.1618544906, 0.0306752101, 0.4589539766, -0.0930405855, 0.2003239989, 0.3451096416, -0.1618328393, -0.0994020849, -0.1672706306, -0.2236275524, 0.5847229362, -0.0366989821, -0.1459875256, 0.3893203139, 0.2197677642, 0.2230354398, -0.313242048, -0.0503059775, -0.0742758811, 0.264680028, -0.0234319046, 0.4159454405, 0.0793760419, 0.2686938047, 0.3493202925, -0.005052398, -0.0590940565, 0.0676898658, 0.1131691933, 0.1134424806, -0.0890840441, -0.0096513927, -0.0764085054, 0.2567854524, -0.0787526742, -0.121898666, 0.2341008484, -0.4100168347, 0.1369069219, 0.0620477609, 0.1250827461, 0.1700580418, -0.1776705384, 0.1202132329, 0.1126284897, -0.1570284814, 0.1897115111, -0.077246964, -0.1316172779, -0.1925022602, -0.3208242357, 0.1964790821, -0.3342857957, 0.2418164909, -0.1585830748, 0.0198275074, -0.0615329333, 0.0957403108, -0.2645619214, 0.7512267232, 0.4937877953, -0.1195115298, 0.2913582623, 0.3966238201, -0.21855703, -0.1752835661, 0.4062903821, -0.3826130927, -0.2777347565, 0.2100419402, -0.0401862115, -0.2380758226, 0.3465698957, -0.5073058009, 0.2185848206, 0.1782456636, 0.0822512656, 0.2914727628, -0.2697467208, -0.1053944454, -0.2360116988, 0.0425621271, 0.6938399076, -0.6387727857, -0.0499247313, 0.1101886928, 0.1013793349, -0.061366193, 0.3478802145, -0.0454606414, 0.3481101692, -0.4107353091, 0.3059866428, 0.0873119533, -0.1264712512, -0.327563256, 0.3134198785, -0.0358150899, 0.2356394529, -0.0210547261, -0.0642482862, 0.5519377589, -0.1873889267, 0.3676522374, -0.1700583547, -0.2799574733, 0.1041628569, -0.0503814667, -0.0398439988, 0.0603798367, -0.242081672, 0.194924444, 0.0165873673, 0.0390777737, -0.5488618612, 0.1286390722, -0.1508787572, 0.3383626342, 0.2401697338, 0.2621085048, 0.1233312786, 0.0182516463, -0.2563518286, -0.4713619649, 0.3001764715, -0.4880333543, 0.0212486014, -0.4338339567, -0.1033040956, 0.0309645981, 0.1834742725, -0.0350199975, 0.0330952369, -0.0749207586, -0.4975807071, 0.1765708923, -0.0213437341, -0.2262369543, -0.237070024, -0.1358645707, -0.0084388666, -0.3567226827, 0.0713603124, 0.250108391, -0.2921575904, -0.2542050779, 0.2466301769, 0.1149316803, -0.1176103577, 0.1173543334, 0.1758525819, -0.0348160528, -0.1673576087, -0.1400129348, 0.1312534064, 0.011728311, -0.0458009616, 0.101837188, 0.1450141966, 0.3444771171, -0.2378433198, -0.0694067776, 0.5054205656, -0.1876149029, 0.5359302163, -0.1796861291, 0.0512385145, -0.1996322572, 0.0426063314, -0.2059214711, -0.3850509226, 0.076283738, -0.1577370167, 0.0513376147, 0.0319149792, 0.0012571439, -0.1989195198, 0.0856174678, -0.0469621643, 0.1647788286, 0.0144882249, -0.0630521327, 0.2266898751, 0.044692874, -0.0142773464, 0.343269974, 0.219142884, -0.0887256265, -0.1521820277, 0.2504404485, 0.0001221001, 0.413918227, 0.1816677749, 0.0260532498, 0.1550094783, -0.0036411956, -0.0657199621, -0.2528336048, -0.1814306676, 0.0057150275, 0.1495339721, -0.3952980638, -0.0354199558, 0.1101147234, -0.1585038006, 0.0689760298, -0.0765034333, -0.2908561826, -0.3032283783, -0.0453334339, 0.260158062, -0.2722712159, -0.0240079537, -0.4013136327, 0.0116534531, 0.1975093186, -0.2747200429, -0.2812997997, -0.1685465574, -0.0756110102, -0.0741588622, 0.0731140077, -0.1339875162, 0.3615631759, 0.252137512, -0.2612817883, -0.2437715828, -0.0951136649, 0.0065132948, -0.5370396376, 0.2054032385, 0.4100924134, 0.39817065, -0.2923846245, 0.1470608413, 0.279386133, -0.1071428657, -0.2480683625, -0.0079055019, 0.0223338567, 0.153262943, -0.1792153567, 0.1474314928, 0.0644614995, -0.3209299445, 0.1781849265, -0.1891590059, 0.2615511715, 0.2194532752, 0.2780077755, 0.1538576335, -0.3693769276, -0.4285492897, 0.1223511547, -0.1416767538, 0.4460206926, 0.0390228108, -0.1469309032, 0.1844057888, 0.0262185782, -0.185319677, 0.2405572534, -0.0966859162, 0.0939638317, -0.0562741235, 0.1234828234, 0.1900067329, 0.3668000996, 0.4985277355, 0.0864884555, 0.0460447483, -0.2846722007, -0.1089554876, 0.0812636688, 0.0222764909, -0.064513877, 0.42252931, 0.3217892349, 0.0287000686, 0.7504062653, 0.3654771149, 0.127213642, 0.0946452469, 0.0725372955, 0.3822361827, -0.1140067503, -0.3796923161, -0.2082248032, 0.1538847834, -0.0840785205, 0.032513313, 0.0550553538, -0.062034443, -0.0012850612, 0.0619004965, -0.4879449606, -0.1890369803, 0.4240103066, -0.3093632162, 0.07615605, -0.074914895, 0.095616743, -0.2788099647, -0.1820271015, -0.1637151688, -0.3036246896, 0.6426758766, -0.082324788, -0.0753787681, -0.1154973581, -0.6797440052, 0.3325339556, 0.221179828, -0.0848111957, 0.1067162603, -0.1852943599, 0.0687568486, 0.3100571632, 0.9494886994, -0.1932724118, 0.156655699, 0.0814262033, -0.0248434767, -0.4435343146, 0.0998062938, -0.3279415369, 0.2550862432, 0.2495421022, 0.5071643591, -0.3575256765, -0.0723438412, -0.0420527868, -0.0277325567, 0.0347221866, -0.0264869258, -0.1733805835, -0.1495418549, -0.1380317807, 0.3645798564, 0.4469458759, 0.072685495, 0.1356699914, -0.2094713151, -0.0988868251, 0.0481702834, 0.0175999552, -0.1340297759, 0.4707480669, 0.0158331282, 0.0505988151, 0.270137161, 0.1117347777, 0.220630005, 0.4900633395, -0.1534305811, 0.2074070573, -0.1815866828, 0.0305913612, 0.3123360872, 0.4398166239, 0.0099648051, 0.0579146743, 0.3812750876, 0.3522176147, -0.0515041053, -0.2942022979, 0.126235798, 0.0464039668, -0.541770041, 0.0036567524, 0.1158789396, -0.099581778, 0.0849706531, 0.6082313061, 0.5790846348, -0.363804549, 0.3609665334, 0.0432920009, 0.892306447, -0.0148935597, 0.107627362, 0.1486807168, 0.0709491447, 0.2498287708, 0.5552588105, 0.0943638384, 0.0084223673, 0.0974387825, -0.0407665297, -0.008215487, 0.1668746471, 0.3400382102, 0.1027864516, 0.2708595693, 0.0819575191, 0.1208938956, -0.1503460109, -0.2895898223, 0.2877456546, -0.3301816881, -0.3449307084, -0.075538516, 0.0785713345, 0.2657670677, -0.0579299852, -0.1058487147, -0.0309242681, -0.4037671685, -0.1928453892, -0.1852023453, -0.4449901879, 0.021173995, 0.263892889, -0.2862432599, -0.0328590088, 0.0515846647, -0.4806173444, 0.1447315812, -0.1111118048, -0.1330837011, 0.3892785311, 0.1719240695, 0.0218229629, -0.1521929353, 0.1726182848, 0.199816674, -0.1803181767, 0.0575538352, -0.4518595636, -0.1729946434, 0.0644665509, 0.4083661735, -0.202341184, -0.2228998691, -0.3968204856, -0.1921590567, 0.1015421301, 0.0394882038, -0.0883382633, 0.2670640945, -0.0757653341, 0.3907501698, -0.1920090765, -0.4534187615, -0.043742422, 0.5255665779, 0.0346298888, -0.1923186481, 0.4125704467, 0.1591854692, -0.164441824, -0.0695428178, 0.1383888423, 0.3426442742, -0.6278496981, 0.5433267951, 0.2498694062, 0.0369901806, 0.1378324926, 0.4185100198, 0.1368643045, 0.2798643708, -0.3155889213, -0.1867184639, -0.2580824494, 0.4086383283, 0.1035425514, 0.0359808914, -0.1420464516, -0.2367395759, 0.3288377225, -0.1956320405, -0.1520755738, 0.0660048723, -0.0865764692, 0.3288319707, 0.2184333801, 0.2640421391, 0.3569835126, -0.0818117112, -0.1028166711, 0.1315307617, -0.2793510258, -0.0736057311, -0.0467088595, 0.1763547212, 0.1042602137, -0.2203988731, 0.1627229601, -0.4074194133, -0.0460063294, -0.4062665701, 0.2619497776, 0.4909594059, -0.0040139761, -0.2378338277, 0.3719466627, 0.0600780882, -0.0297461078, 0.2064462155, -0.1776875108, -0.0705969483, -0.0677785277, 0.3043537438, 0.1634593308, 0.0337508023, 0.0829740763, 0.0720480829, 0.0142619237, 0.0030943975, 0.4227865636, -0.2046114206, -0.2124463618, 0.3322142363, 0.2543899417, 0.0184189528, -0.0208609384, -0.1518294215, 0.2098126262, 0.0060320436, -0.1523620188, 0.0288434103, 0.1550513208, 0.3418108821, 0.2605258226, 0.3646140099, -0.1685423553, -0.2591930628, 0.0174684562, 0.188615784, 0.0211040378, 0.0309397839, 0.1880583465, 0.3906852603, 0.3334282637, -0.0989429504, 0.3222150803, 0.0788697451, 0.2825941145, 0.2901289165, 0.2377106547, 0.266004771, 0.0139710251, 0.0864452347, -0.2048540264, -0.5083088875, 0.0377851725, 0.0890343413, -0.0027338825, 0.3360840082, 0.1234637797, 0.1538112015, -0.1924221665, -0.2750574052, 0.0418598875, 0.0021715993, -0.3454611897, -0.0618338808, -0.3136751056, -0.2561421096, 0.4150930643, -0.1609165967, 0.062736541, -0.3454865813, 0.3650223315, -0.0776077807, -0.095370397, -0.1441653669, -0.3677255809, 0.0240028463, 0.2292593867, -0.1103793234, 0.1378631741, -0.0913241506, -0.0463286415, 0.0504922718, 0.5798310041, 0.5111635327, 0.3985683322, -0.0246107038, 0.4008251429, 0.1301573515, -0.2436255217, -0.2861930728, 0.3631896377, -0.0595288835, -0.025094511, 0.200109154, -0.0104517881, -0.046925921, -0.0630549937, -0.0026361542, 0.1076258719, 0.1635148525, -0.1908553988, -0.1974215508, -0.2362536192, -0.2687472999, -0.0491944142, -0.0817953274, 0.0160534643, 0.293864131, -0.0996415466, 0.0463561788, 0.0778610334, -0.0013326295, -0.0415195152, 0.2583117187, 0.4536598027, 0.0035889377, -0.4841508865, 0.1772230268, -0.3718907535, -0.0301732048, -0.4928693771, 0.2783645093, 0.0389187112, 0.197258234, 0.1198172718, -0.122641921, 0.3183076382, -0.0501735397, -0.0438347682, 0.354549855, 0.0648138523, -0.2790634036, -0.192818433, -0.013535344, 0.0101543143, -0.3842704892, 0.1062458903, -0.1135110855, -0.0753598958, -0.1056097224, 0.1699268222, -0.15767169, 0.027592659, 0.177414313, 0.336016804, -0.0418954827, 0.0294317901, -0.017705299, -0.3504042029, 0.1464199275, -0.1264902651, 0.1394367516, 0.3596005738, 0.4612443447, -0.3284624815, -0.2027061284, -0.0240753181, 0.0423466489, 0.004644461, 0.0361620411, -0.1818932593, 0.1435848922, -0.3938452303, -0.0358403809, -0.1220739931, 0.0222710595, 0.0860233307, 0.0270857513, -0.2525870502, -0.3549434543, 0.3827644587, -0.6531072259, -0.2620071769, -0.0693187937, 0.3420593739, 0.2115106285, -0.2256406099, -0.3928542137, -0.1719203889, 0.2626016736, -0.069357872, -0.0616547763, -0.1847909242, -0.5037384033, -0.0344291702, -0.157623902, 0.1152826995, 0.0357201397, 0.0066587701, 0.2311962694, -0.3098660409 ]
https://github.com/huggingface/datasets/issues/2644
Batched `map` not allowed to return 0 items
Sounds good! Do you want me to propose a PR? I'm quite busy right now, but if it's not too urgent I could take a look next week.
## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1
28
Batched `map` not allowed to return 0 items ## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1 Sounds good! Do you want me to propose a PR? I'm quite busy right now, but if it's not too urgent I could take a look next week.
[ -0.2328359336, -0.3903887272, -0.0444568731, 0.1644899547, -0.1085450575, -0.0687687993, 0.1163393706, 0.4056321383, 0.6400416493, 0.1178811789, -0.0565716475, 0.2460853457, -0.3954414129, 0.1043546125, -0.1629213691, 0.1608028412, -0.0449333005, 0.1405792236, -0.1691173315, -0.1914923787, -0.3362932205, 0.1631995887, -0.3979260921, -0.0501046889, -0.1487713754, -0.2919759452, 0.2864801288, -0.0362103283, -0.1628143191, -0.2454051971, 0.2060909718, -0.2328294963, -0.2091358006, 0.5783208013, -0.0001299275, -0.0231368914, 0.1505940557, -0.1851883233, -0.0897616744, -0.3029606342, -0.1908178031, -0.1715303659, -0.1157186553, -0.2824648917, 0.18194592, -0.2716506422, -0.1956347525, -0.4482402503, 0.1071964651, 0.2587006986, 0.0433217548, 0.418817699, 0.0030659661, 0.1764480174, 0.3312484324, 0.2664010823, -0.0753518194, 0.1288105696, 0.7205767632, -0.2881011963, 0.0226272214, 0.3385902345, -0.3921836019, 0.0709063411, 0.1367557049, -0.0309032369, 0.2301689684, -0.5515581965, 0.2697508037, 0.3675672114, -0.0900000781, 0.0607852787, -0.4333372116, -0.6687817574, -0.0403037108, -0.095498845, -0.0388976745, 0.2810003757, -0.4210393727, -0.0564596243, -0.4846191406, 0.1217951775, 0.0078949109, 0.1618544906, 0.0306752101, 0.4589539766, -0.0930405855, 0.2003239989, 0.3451096416, -0.1618328393, -0.0994020849, -0.1672706306, -0.2236275524, 0.5847229362, -0.0366989821, -0.1459875256, 0.3893203139, 0.2197677642, 0.2230354398, -0.313242048, -0.0503059775, -0.0742758811, 0.264680028, -0.0234319046, 0.4159454405, 0.0793760419, 0.2686938047, 0.3493202925, -0.005052398, -0.0590940565, 0.0676898658, 0.1131691933, 0.1134424806, -0.0890840441, -0.0096513927, -0.0764085054, 0.2567854524, -0.0787526742, -0.121898666, 0.2341008484, -0.4100168347, 0.1369069219, 0.0620477609, 0.1250827461, 0.1700580418, -0.1776705384, 0.1202132329, 0.1126284897, -0.1570284814, 0.1897115111, -0.077246964, -0.1316172779, -0.1925022602, -0.3208242357, 0.1964790821, -0.3342857957, 0.2418164909, -0.1585830748, 0.0198275074, -0.0615329333, 0.0957403108, -0.2645619214, 0.7512267232, 0.4937877953, -0.1195115298, 0.2913582623, 0.3966238201, -0.21855703, -0.1752835661, 0.4062903821, -0.3826130927, -0.2777347565, 0.2100419402, -0.0401862115, -0.2380758226, 0.3465698957, -0.5073058009, 0.2185848206, 0.1782456636, 0.0822512656, 0.2914727628, -0.2697467208, -0.1053944454, -0.2360116988, 0.0425621271, 0.6938399076, -0.6387727857, -0.0499247313, 0.1101886928, 0.1013793349, -0.061366193, 0.3478802145, -0.0454606414, 0.3481101692, -0.4107353091, 0.3059866428, 0.0873119533, -0.1264712512, -0.327563256, 0.3134198785, -0.0358150899, 0.2356394529, -0.0210547261, -0.0642482862, 0.5519377589, -0.1873889267, 0.3676522374, -0.1700583547, -0.2799574733, 0.1041628569, -0.0503814667, -0.0398439988, 0.0603798367, -0.242081672, 0.194924444, 0.0165873673, 0.0390777737, -0.5488618612, 0.1286390722, -0.1508787572, 0.3383626342, 0.2401697338, 0.2621085048, 0.1233312786, 0.0182516463, -0.2563518286, -0.4713619649, 0.3001764715, -0.4880333543, 0.0212486014, -0.4338339567, -0.1033040956, 0.0309645981, 0.1834742725, -0.0350199975, 0.0330952369, -0.0749207586, -0.4975807071, 0.1765708923, -0.0213437341, -0.2262369543, -0.237070024, -0.1358645707, -0.0084388666, -0.3567226827, 0.0713603124, 0.250108391, -0.2921575904, -0.2542050779, 0.2466301769, 0.1149316803, -0.1176103577, 0.1173543334, 0.1758525819, -0.0348160528, -0.1673576087, -0.1400129348, 0.1312534064, 0.011728311, -0.0458009616, 0.101837188, 0.1450141966, 0.3444771171, -0.2378433198, -0.0694067776, 0.5054205656, -0.1876149029, 0.5359302163, -0.1796861291, 0.0512385145, -0.1996322572, 0.0426063314, -0.2059214711, -0.3850509226, 0.076283738, -0.1577370167, 0.0513376147, 0.0319149792, 0.0012571439, -0.1989195198, 0.0856174678, -0.0469621643, 0.1647788286, 0.0144882249, -0.0630521327, 0.2266898751, 0.044692874, -0.0142773464, 0.343269974, 0.219142884, -0.0887256265, -0.1521820277, 0.2504404485, 0.0001221001, 0.413918227, 0.1816677749, 0.0260532498, 0.1550094783, -0.0036411956, -0.0657199621, -0.2528336048, -0.1814306676, 0.0057150275, 0.1495339721, -0.3952980638, -0.0354199558, 0.1101147234, -0.1585038006, 0.0689760298, -0.0765034333, -0.2908561826, -0.3032283783, -0.0453334339, 0.260158062, -0.2722712159, -0.0240079537, -0.4013136327, 0.0116534531, 0.1975093186, -0.2747200429, -0.2812997997, -0.1685465574, -0.0756110102, -0.0741588622, 0.0731140077, -0.1339875162, 0.3615631759, 0.252137512, -0.2612817883, -0.2437715828, -0.0951136649, 0.0065132948, -0.5370396376, 0.2054032385, 0.4100924134, 0.39817065, -0.2923846245, 0.1470608413, 0.279386133, -0.1071428657, -0.2480683625, -0.0079055019, 0.0223338567, 0.153262943, -0.1792153567, 0.1474314928, 0.0644614995, -0.3209299445, 0.1781849265, -0.1891590059, 0.2615511715, 0.2194532752, 0.2780077755, 0.1538576335, -0.3693769276, -0.4285492897, 0.1223511547, -0.1416767538, 0.4460206926, 0.0390228108, -0.1469309032, 0.1844057888, 0.0262185782, -0.185319677, 0.2405572534, -0.0966859162, 0.0939638317, -0.0562741235, 0.1234828234, 0.1900067329, 0.3668000996, 0.4985277355, 0.0864884555, 0.0460447483, -0.2846722007, -0.1089554876, 0.0812636688, 0.0222764909, -0.064513877, 0.42252931, 0.3217892349, 0.0287000686, 0.7504062653, 0.3654771149, 0.127213642, 0.0946452469, 0.0725372955, 0.3822361827, -0.1140067503, -0.3796923161, -0.2082248032, 0.1538847834, -0.0840785205, 0.032513313, 0.0550553538, -0.062034443, -0.0012850612, 0.0619004965, -0.4879449606, -0.1890369803, 0.4240103066, -0.3093632162, 0.07615605, -0.074914895, 0.095616743, -0.2788099647, -0.1820271015, -0.1637151688, -0.3036246896, 0.6426758766, -0.082324788, -0.0753787681, -0.1154973581, -0.6797440052, 0.3325339556, 0.221179828, -0.0848111957, 0.1067162603, -0.1852943599, 0.0687568486, 0.3100571632, 0.9494886994, -0.1932724118, 0.156655699, 0.0814262033, -0.0248434767, -0.4435343146, 0.0998062938, -0.3279415369, 0.2550862432, 0.2495421022, 0.5071643591, -0.3575256765, -0.0723438412, -0.0420527868, -0.0277325567, 0.0347221866, -0.0264869258, -0.1733805835, -0.1495418549, -0.1380317807, 0.3645798564, 0.4469458759, 0.072685495, 0.1356699914, -0.2094713151, -0.0988868251, 0.0481702834, 0.0175999552, -0.1340297759, 0.4707480669, 0.0158331282, 0.0505988151, 0.270137161, 0.1117347777, 0.220630005, 0.4900633395, -0.1534305811, 0.2074070573, -0.1815866828, 0.0305913612, 0.3123360872, 0.4398166239, 0.0099648051, 0.0579146743, 0.3812750876, 0.3522176147, -0.0515041053, -0.2942022979, 0.126235798, 0.0464039668, -0.541770041, 0.0036567524, 0.1158789396, -0.099581778, 0.0849706531, 0.6082313061, 0.5790846348, -0.363804549, 0.3609665334, 0.0432920009, 0.892306447, -0.0148935597, 0.107627362, 0.1486807168, 0.0709491447, 0.2498287708, 0.5552588105, 0.0943638384, 0.0084223673, 0.0974387825, -0.0407665297, -0.008215487, 0.1668746471, 0.3400382102, 0.1027864516, 0.2708595693, 0.0819575191, 0.1208938956, -0.1503460109, -0.2895898223, 0.2877456546, -0.3301816881, -0.3449307084, -0.075538516, 0.0785713345, 0.2657670677, -0.0579299852, -0.1058487147, -0.0309242681, -0.4037671685, -0.1928453892, -0.1852023453, -0.4449901879, 0.021173995, 0.263892889, -0.2862432599, -0.0328590088, 0.0515846647, -0.4806173444, 0.1447315812, -0.1111118048, -0.1330837011, 0.3892785311, 0.1719240695, 0.0218229629, -0.1521929353, 0.1726182848, 0.199816674, -0.1803181767, 0.0575538352, -0.4518595636, -0.1729946434, 0.0644665509, 0.4083661735, -0.202341184, -0.2228998691, -0.3968204856, -0.1921590567, 0.1015421301, 0.0394882038, -0.0883382633, 0.2670640945, -0.0757653341, 0.3907501698, -0.1920090765, -0.4534187615, -0.043742422, 0.5255665779, 0.0346298888, -0.1923186481, 0.4125704467, 0.1591854692, -0.164441824, -0.0695428178, 0.1383888423, 0.3426442742, -0.6278496981, 0.5433267951, 0.2498694062, 0.0369901806, 0.1378324926, 0.4185100198, 0.1368643045, 0.2798643708, -0.3155889213, -0.1867184639, -0.2580824494, 0.4086383283, 0.1035425514, 0.0359808914, -0.1420464516, -0.2367395759, 0.3288377225, -0.1956320405, -0.1520755738, 0.0660048723, -0.0865764692, 0.3288319707, 0.2184333801, 0.2640421391, 0.3569835126, -0.0818117112, -0.1028166711, 0.1315307617, -0.2793510258, -0.0736057311, -0.0467088595, 0.1763547212, 0.1042602137, -0.2203988731, 0.1627229601, -0.4074194133, -0.0460063294, -0.4062665701, 0.2619497776, 0.4909594059, -0.0040139761, -0.2378338277, 0.3719466627, 0.0600780882, -0.0297461078, 0.2064462155, -0.1776875108, -0.0705969483, -0.0677785277, 0.3043537438, 0.1634593308, 0.0337508023, 0.0829740763, 0.0720480829, 0.0142619237, 0.0030943975, 0.4227865636, -0.2046114206, -0.2124463618, 0.3322142363, 0.2543899417, 0.0184189528, -0.0208609384, -0.1518294215, 0.2098126262, 0.0060320436, -0.1523620188, 0.0288434103, 0.1550513208, 0.3418108821, 0.2605258226, 0.3646140099, -0.1685423553, -0.2591930628, 0.0174684562, 0.188615784, 0.0211040378, 0.0309397839, 0.1880583465, 0.3906852603, 0.3334282637, -0.0989429504, 0.3222150803, 0.0788697451, 0.2825941145, 0.2901289165, 0.2377106547, 0.266004771, 0.0139710251, 0.0864452347, -0.2048540264, -0.5083088875, 0.0377851725, 0.0890343413, -0.0027338825, 0.3360840082, 0.1234637797, 0.1538112015, -0.1924221665, -0.2750574052, 0.0418598875, 0.0021715993, -0.3454611897, -0.0618338808, -0.3136751056, -0.2561421096, 0.4150930643, -0.1609165967, 0.062736541, -0.3454865813, 0.3650223315, -0.0776077807, -0.095370397, -0.1441653669, -0.3677255809, 0.0240028463, 0.2292593867, -0.1103793234, 0.1378631741, -0.0913241506, -0.0463286415, 0.0504922718, 0.5798310041, 0.5111635327, 0.3985683322, -0.0246107038, 0.4008251429, 0.1301573515, -0.2436255217, -0.2861930728, 0.3631896377, -0.0595288835, -0.025094511, 0.200109154, -0.0104517881, -0.046925921, -0.0630549937, -0.0026361542, 0.1076258719, 0.1635148525, -0.1908553988, -0.1974215508, -0.2362536192, -0.2687472999, -0.0491944142, -0.0817953274, 0.0160534643, 0.293864131, -0.0996415466, 0.0463561788, 0.0778610334, -0.0013326295, -0.0415195152, 0.2583117187, 0.4536598027, 0.0035889377, -0.4841508865, 0.1772230268, -0.3718907535, -0.0301732048, -0.4928693771, 0.2783645093, 0.0389187112, 0.197258234, 0.1198172718, -0.122641921, 0.3183076382, -0.0501735397, -0.0438347682, 0.354549855, 0.0648138523, -0.2790634036, -0.192818433, -0.013535344, 0.0101543143, -0.3842704892, 0.1062458903, -0.1135110855, -0.0753598958, -0.1056097224, 0.1699268222, -0.15767169, 0.027592659, 0.177414313, 0.336016804, -0.0418954827, 0.0294317901, -0.017705299, -0.3504042029, 0.1464199275, -0.1264902651, 0.1394367516, 0.3596005738, 0.4612443447, -0.3284624815, -0.2027061284, -0.0240753181, 0.0423466489, 0.004644461, 0.0361620411, -0.1818932593, 0.1435848922, -0.3938452303, -0.0358403809, -0.1220739931, 0.0222710595, 0.0860233307, 0.0270857513, -0.2525870502, -0.3549434543, 0.3827644587, -0.6531072259, -0.2620071769, -0.0693187937, 0.3420593739, 0.2115106285, -0.2256406099, -0.3928542137, -0.1719203889, 0.2626016736, -0.069357872, -0.0616547763, -0.1847909242, -0.5037384033, -0.0344291702, -0.157623902, 0.1152826995, 0.0357201397, 0.0066587701, 0.2311962694, -0.3098660409 ]
https://github.com/huggingface/datasets/issues/2644
Batched `map` not allowed to return 0 items
Sure if you're interested feel free to open a PR :) You can also ping me anytime if you have questions or if I can help !
## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1
27
Batched `map` not allowed to return 0 items ## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1 Sure if you're interested feel free to open a PR :) You can also ping me anytime if you have questions or if I can help !
[ -0.2328359336, -0.3903887272, -0.0444568731, 0.1644899547, -0.1085450575, -0.0687687993, 0.1163393706, 0.4056321383, 0.6400416493, 0.1178811789, -0.0565716475, 0.2460853457, -0.3954414129, 0.1043546125, -0.1629213691, 0.1608028412, -0.0449333005, 0.1405792236, -0.1691173315, -0.1914923787, -0.3362932205, 0.1631995887, -0.3979260921, -0.0501046889, -0.1487713754, -0.2919759452, 0.2864801288, -0.0362103283, -0.1628143191, -0.2454051971, 0.2060909718, -0.2328294963, -0.2091358006, 0.5783208013, -0.0001299275, -0.0231368914, 0.1505940557, -0.1851883233, -0.0897616744, -0.3029606342, -0.1908178031, -0.1715303659, -0.1157186553, -0.2824648917, 0.18194592, -0.2716506422, -0.1956347525, -0.4482402503, 0.1071964651, 0.2587006986, 0.0433217548, 0.418817699, 0.0030659661, 0.1764480174, 0.3312484324, 0.2664010823, -0.0753518194, 0.1288105696, 0.7205767632, -0.2881011963, 0.0226272214, 0.3385902345, -0.3921836019, 0.0709063411, 0.1367557049, -0.0309032369, 0.2301689684, -0.5515581965, 0.2697508037, 0.3675672114, -0.0900000781, 0.0607852787, -0.4333372116, -0.6687817574, -0.0403037108, -0.095498845, -0.0388976745, 0.2810003757, -0.4210393727, -0.0564596243, -0.4846191406, 0.1217951775, 0.0078949109, 0.1618544906, 0.0306752101, 0.4589539766, -0.0930405855, 0.2003239989, 0.3451096416, -0.1618328393, -0.0994020849, -0.1672706306, -0.2236275524, 0.5847229362, -0.0366989821, -0.1459875256, 0.3893203139, 0.2197677642, 0.2230354398, -0.313242048, -0.0503059775, -0.0742758811, 0.264680028, -0.0234319046, 0.4159454405, 0.0793760419, 0.2686938047, 0.3493202925, -0.005052398, -0.0590940565, 0.0676898658, 0.1131691933, 0.1134424806, -0.0890840441, -0.0096513927, -0.0764085054, 0.2567854524, -0.0787526742, -0.121898666, 0.2341008484, -0.4100168347, 0.1369069219, 0.0620477609, 0.1250827461, 0.1700580418, -0.1776705384, 0.1202132329, 0.1126284897, -0.1570284814, 0.1897115111, -0.077246964, -0.1316172779, -0.1925022602, -0.3208242357, 0.1964790821, -0.3342857957, 0.2418164909, -0.1585830748, 0.0198275074, -0.0615329333, 0.0957403108, -0.2645619214, 0.7512267232, 0.4937877953, -0.1195115298, 0.2913582623, 0.3966238201, -0.21855703, -0.1752835661, 0.4062903821, -0.3826130927, -0.2777347565, 0.2100419402, -0.0401862115, -0.2380758226, 0.3465698957, -0.5073058009, 0.2185848206, 0.1782456636, 0.0822512656, 0.2914727628, -0.2697467208, -0.1053944454, -0.2360116988, 0.0425621271, 0.6938399076, -0.6387727857, -0.0499247313, 0.1101886928, 0.1013793349, -0.061366193, 0.3478802145, -0.0454606414, 0.3481101692, -0.4107353091, 0.3059866428, 0.0873119533, -0.1264712512, -0.327563256, 0.3134198785, -0.0358150899, 0.2356394529, -0.0210547261, -0.0642482862, 0.5519377589, -0.1873889267, 0.3676522374, -0.1700583547, -0.2799574733, 0.1041628569, -0.0503814667, -0.0398439988, 0.0603798367, -0.242081672, 0.194924444, 0.0165873673, 0.0390777737, -0.5488618612, 0.1286390722, -0.1508787572, 0.3383626342, 0.2401697338, 0.2621085048, 0.1233312786, 0.0182516463, -0.2563518286, -0.4713619649, 0.3001764715, -0.4880333543, 0.0212486014, -0.4338339567, -0.1033040956, 0.0309645981, 0.1834742725, -0.0350199975, 0.0330952369, -0.0749207586, -0.4975807071, 0.1765708923, -0.0213437341, -0.2262369543, -0.237070024, -0.1358645707, -0.0084388666, -0.3567226827, 0.0713603124, 0.250108391, -0.2921575904, -0.2542050779, 0.2466301769, 0.1149316803, -0.1176103577, 0.1173543334, 0.1758525819, -0.0348160528, -0.1673576087, -0.1400129348, 0.1312534064, 0.011728311, -0.0458009616, 0.101837188, 0.1450141966, 0.3444771171, -0.2378433198, -0.0694067776, 0.5054205656, -0.1876149029, 0.5359302163, -0.1796861291, 0.0512385145, -0.1996322572, 0.0426063314, -0.2059214711, -0.3850509226, 0.076283738, -0.1577370167, 0.0513376147, 0.0319149792, 0.0012571439, -0.1989195198, 0.0856174678, -0.0469621643, 0.1647788286, 0.0144882249, -0.0630521327, 0.2266898751, 0.044692874, -0.0142773464, 0.343269974, 0.219142884, -0.0887256265, -0.1521820277, 0.2504404485, 0.0001221001, 0.413918227, 0.1816677749, 0.0260532498, 0.1550094783, -0.0036411956, -0.0657199621, -0.2528336048, -0.1814306676, 0.0057150275, 0.1495339721, -0.3952980638, -0.0354199558, 0.1101147234, -0.1585038006, 0.0689760298, -0.0765034333, -0.2908561826, -0.3032283783, -0.0453334339, 0.260158062, -0.2722712159, -0.0240079537, -0.4013136327, 0.0116534531, 0.1975093186, -0.2747200429, -0.2812997997, -0.1685465574, -0.0756110102, -0.0741588622, 0.0731140077, -0.1339875162, 0.3615631759, 0.252137512, -0.2612817883, -0.2437715828, -0.0951136649, 0.0065132948, -0.5370396376, 0.2054032385, 0.4100924134, 0.39817065, -0.2923846245, 0.1470608413, 0.279386133, -0.1071428657, -0.2480683625, -0.0079055019, 0.0223338567, 0.153262943, -0.1792153567, 0.1474314928, 0.0644614995, -0.3209299445, 0.1781849265, -0.1891590059, 0.2615511715, 0.2194532752, 0.2780077755, 0.1538576335, -0.3693769276, -0.4285492897, 0.1223511547, -0.1416767538, 0.4460206926, 0.0390228108, -0.1469309032, 0.1844057888, 0.0262185782, -0.185319677, 0.2405572534, -0.0966859162, 0.0939638317, -0.0562741235, 0.1234828234, 0.1900067329, 0.3668000996, 0.4985277355, 0.0864884555, 0.0460447483, -0.2846722007, -0.1089554876, 0.0812636688, 0.0222764909, -0.064513877, 0.42252931, 0.3217892349, 0.0287000686, 0.7504062653, 0.3654771149, 0.127213642, 0.0946452469, 0.0725372955, 0.3822361827, -0.1140067503, -0.3796923161, -0.2082248032, 0.1538847834, -0.0840785205, 0.032513313, 0.0550553538, -0.062034443, -0.0012850612, 0.0619004965, -0.4879449606, -0.1890369803, 0.4240103066, -0.3093632162, 0.07615605, -0.074914895, 0.095616743, -0.2788099647, -0.1820271015, -0.1637151688, -0.3036246896, 0.6426758766, -0.082324788, -0.0753787681, -0.1154973581, -0.6797440052, 0.3325339556, 0.221179828, -0.0848111957, 0.1067162603, -0.1852943599, 0.0687568486, 0.3100571632, 0.9494886994, -0.1932724118, 0.156655699, 0.0814262033, -0.0248434767, -0.4435343146, 0.0998062938, -0.3279415369, 0.2550862432, 0.2495421022, 0.5071643591, -0.3575256765, -0.0723438412, -0.0420527868, -0.0277325567, 0.0347221866, -0.0264869258, -0.1733805835, -0.1495418549, -0.1380317807, 0.3645798564, 0.4469458759, 0.072685495, 0.1356699914, -0.2094713151, -0.0988868251, 0.0481702834, 0.0175999552, -0.1340297759, 0.4707480669, 0.0158331282, 0.0505988151, 0.270137161, 0.1117347777, 0.220630005, 0.4900633395, -0.1534305811, 0.2074070573, -0.1815866828, 0.0305913612, 0.3123360872, 0.4398166239, 0.0099648051, 0.0579146743, 0.3812750876, 0.3522176147, -0.0515041053, -0.2942022979, 0.126235798, 0.0464039668, -0.541770041, 0.0036567524, 0.1158789396, -0.099581778, 0.0849706531, 0.6082313061, 0.5790846348, -0.363804549, 0.3609665334, 0.0432920009, 0.892306447, -0.0148935597, 0.107627362, 0.1486807168, 0.0709491447, 0.2498287708, 0.5552588105, 0.0943638384, 0.0084223673, 0.0974387825, -0.0407665297, -0.008215487, 0.1668746471, 0.3400382102, 0.1027864516, 0.2708595693, 0.0819575191, 0.1208938956, -0.1503460109, -0.2895898223, 0.2877456546, -0.3301816881, -0.3449307084, -0.075538516, 0.0785713345, 0.2657670677, -0.0579299852, -0.1058487147, -0.0309242681, -0.4037671685, -0.1928453892, -0.1852023453, -0.4449901879, 0.021173995, 0.263892889, -0.2862432599, -0.0328590088, 0.0515846647, -0.4806173444, 0.1447315812, -0.1111118048, -0.1330837011, 0.3892785311, 0.1719240695, 0.0218229629, -0.1521929353, 0.1726182848, 0.199816674, -0.1803181767, 0.0575538352, -0.4518595636, -0.1729946434, 0.0644665509, 0.4083661735, -0.202341184, -0.2228998691, -0.3968204856, -0.1921590567, 0.1015421301, 0.0394882038, -0.0883382633, 0.2670640945, -0.0757653341, 0.3907501698, -0.1920090765, -0.4534187615, -0.043742422, 0.5255665779, 0.0346298888, -0.1923186481, 0.4125704467, 0.1591854692, -0.164441824, -0.0695428178, 0.1383888423, 0.3426442742, -0.6278496981, 0.5433267951, 0.2498694062, 0.0369901806, 0.1378324926, 0.4185100198, 0.1368643045, 0.2798643708, -0.3155889213, -0.1867184639, -0.2580824494, 0.4086383283, 0.1035425514, 0.0359808914, -0.1420464516, -0.2367395759, 0.3288377225, -0.1956320405, -0.1520755738, 0.0660048723, -0.0865764692, 0.3288319707, 0.2184333801, 0.2640421391, 0.3569835126, -0.0818117112, -0.1028166711, 0.1315307617, -0.2793510258, -0.0736057311, -0.0467088595, 0.1763547212, 0.1042602137, -0.2203988731, 0.1627229601, -0.4074194133, -0.0460063294, -0.4062665701, 0.2619497776, 0.4909594059, -0.0040139761, -0.2378338277, 0.3719466627, 0.0600780882, -0.0297461078, 0.2064462155, -0.1776875108, -0.0705969483, -0.0677785277, 0.3043537438, 0.1634593308, 0.0337508023, 0.0829740763, 0.0720480829, 0.0142619237, 0.0030943975, 0.4227865636, -0.2046114206, -0.2124463618, 0.3322142363, 0.2543899417, 0.0184189528, -0.0208609384, -0.1518294215, 0.2098126262, 0.0060320436, -0.1523620188, 0.0288434103, 0.1550513208, 0.3418108821, 0.2605258226, 0.3646140099, -0.1685423553, -0.2591930628, 0.0174684562, 0.188615784, 0.0211040378, 0.0309397839, 0.1880583465, 0.3906852603, 0.3334282637, -0.0989429504, 0.3222150803, 0.0788697451, 0.2825941145, 0.2901289165, 0.2377106547, 0.266004771, 0.0139710251, 0.0864452347, -0.2048540264, -0.5083088875, 0.0377851725, 0.0890343413, -0.0027338825, 0.3360840082, 0.1234637797, 0.1538112015, -0.1924221665, -0.2750574052, 0.0418598875, 0.0021715993, -0.3454611897, -0.0618338808, -0.3136751056, -0.2561421096, 0.4150930643, -0.1609165967, 0.062736541, -0.3454865813, 0.3650223315, -0.0776077807, -0.095370397, -0.1441653669, -0.3677255809, 0.0240028463, 0.2292593867, -0.1103793234, 0.1378631741, -0.0913241506, -0.0463286415, 0.0504922718, 0.5798310041, 0.5111635327, 0.3985683322, -0.0246107038, 0.4008251429, 0.1301573515, -0.2436255217, -0.2861930728, 0.3631896377, -0.0595288835, -0.025094511, 0.200109154, -0.0104517881, -0.046925921, -0.0630549937, -0.0026361542, 0.1076258719, 0.1635148525, -0.1908553988, -0.1974215508, -0.2362536192, -0.2687472999, -0.0491944142, -0.0817953274, 0.0160534643, 0.293864131, -0.0996415466, 0.0463561788, 0.0778610334, -0.0013326295, -0.0415195152, 0.2583117187, 0.4536598027, 0.0035889377, -0.4841508865, 0.1772230268, -0.3718907535, -0.0301732048, -0.4928693771, 0.2783645093, 0.0389187112, 0.197258234, 0.1198172718, -0.122641921, 0.3183076382, -0.0501735397, -0.0438347682, 0.354549855, 0.0648138523, -0.2790634036, -0.192818433, -0.013535344, 0.0101543143, -0.3842704892, 0.1062458903, -0.1135110855, -0.0753598958, -0.1056097224, 0.1699268222, -0.15767169, 0.027592659, 0.177414313, 0.336016804, -0.0418954827, 0.0294317901, -0.017705299, -0.3504042029, 0.1464199275, -0.1264902651, 0.1394367516, 0.3596005738, 0.4612443447, -0.3284624815, -0.2027061284, -0.0240753181, 0.0423466489, 0.004644461, 0.0361620411, -0.1818932593, 0.1435848922, -0.3938452303, -0.0358403809, -0.1220739931, 0.0222710595, 0.0860233307, 0.0270857513, -0.2525870502, -0.3549434543, 0.3827644587, -0.6531072259, -0.2620071769, -0.0693187937, 0.3420593739, 0.2115106285, -0.2256406099, -0.3928542137, -0.1719203889, 0.2626016736, -0.069357872, -0.0616547763, -0.1847909242, -0.5037384033, -0.0344291702, -0.157623902, 0.1152826995, 0.0357201397, 0.0066587701, 0.2311962694, -0.3098660409 ]