html_url
stringlengths 48
51
| title
stringlengths 5
268
| comments
stringlengths 63
51.8k
| body
stringlengths 0
36.2k
⌀ | comment_length
int64 16
1.52k
| text
stringlengths 164
54.1k
| embeddings
sequence |
---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/2860 | Cannot download TOTTO dataset | Hola @mrm8488, thanks for reporting.
Apparently, the data source host changed their URL one week ago: https://github.com/google-research-datasets/ToTTo/commit/cebeb430ec2a97747e704d16a9354f7d9073ff8f
I'm fixing it. | Error: Couldn't find file at https://storage.googleapis.com/totto/totto_data.zip
`datasets version: 1.11.0`
# How to reproduce:
```py
from datasets import load_dataset
dataset = load_dataset('totto')
```
| 20 | Cannot download TOTTO dataset
Error: Couldn't find file at https://storage.googleapis.com/totto/totto_data.zip
`datasets version: 1.11.0`
# How to reproduce:
```py
from datasets import load_dataset
dataset = load_dataset('totto')
```
Hola @mrm8488, thanks for reporting.
Apparently, the data source host changed their URL one week ago: https://github.com/google-research-datasets/ToTTo/commit/cebeb430ec2a97747e704d16a9354f7d9073ff8f
I'm fixing it. | [
-0.2944106758,
0.390093267,
-0.1317224354,
0.0641969666,
0.4353683889,
0.1393281817,
0.1679637283,
0.587985158,
-0.0261457115,
0.2343415916,
-0.1947767287,
-0.0473089851,
0.0594172031,
0.3187091053,
0.0643601269,
-0.3084109724,
0.0652797148,
-0.0130064292,
-0.1395521462,
0.0308538694,
-0.0759800076,
0.2782619894,
0.010026034,
0.0654645637,
0.0181091893,
0.0936706811,
-0.0290923528,
-0.0979446173,
-0.2686380148,
-0.4347369671,
0.4153385162,
0.0613755286,
0.1697376519,
0.380885303,
-0.0001073767,
0.1472330391,
0.3291011453,
0.0086167743,
-0.2500196099,
-0.3531951904,
-0.3288858533,
-0.1141765267,
-0.1965033561,
-0.1480810642,
-0.0830526575,
0.2127362639,
0.2038826495,
-0.2607125938,
0.0417163558,
0.5573633313,
0.2718278468,
0.0907748193,
0.3079367876,
-0.3647714257,
0.2657264173,
0.1475392133,
-0.036516048,
0.0705632344,
0.0785896182,
0.0108669875,
0.3562818468,
0.0460000522,
-0.1339973509,
0.0743309483,
-0.1553671509,
-0.0840225741,
-0.0924820229,
-0.3424231708,
0.214140296,
0.3073775172,
0.5096558928,
-0.2044653296,
-0.3611645997,
0.2267783284,
-0.0598625429,
-0.2795485854,
0.2698039711,
0.1802222878,
0.0900912285,
0.169818148,
0.1732570231,
-0.4855844676,
-0.1890134662,
0.0528650023,
-0.4141793847,
0.1076047346,
-0.1177637801,
0.0048585702,
-0.1059216857,
-0.1203938425,
0.3016454577,
-0.0547918193,
-0.0375607647,
0.2590126991,
-0.2745460868,
-0.1841469854,
0.1035569757,
0.0311482437,
0.19200553,
0.0490686372,
0.1362316906,
-0.1017649472,
-0.5062012672,
-0.0666138753,
0.241869092,
-0.1095382571,
-0.0002671724,
0.3804118633,
0.294926703,
0.2416360974,
0.1484332383,
0.0473141745,
-0.1586334407,
-0.3586916029,
0.0269330442,
-0.1131042466,
0.4928360581,
-0.2085422873,
-0.3899923563,
0.1616977304,
-0.0900816098,
-0.121474728,
-0.0176120121,
0.1517948955,
-0.0244204924,
0.0753582045,
0.0918693244,
0.1404549479,
-0.0088710058,
-0.1377050877,
-0.2660999,
0.2041444778,
-0.0125199473,
0.0713025033,
0.2309998572,
-0.3448673189,
0.095299542,
-0.0258916803,
-0.4624833167,
0.0828343257,
-0.136153236,
-0.0750162676,
-0.2458770573,
0.3632285595,
0.2265907079,
0.1045650542,
0.0013823598,
0.1134400517,
-0.2949782014,
0.2792560458,
-0.3678755462,
-0.0678896308,
-0.1227772161,
0.2941952646,
-0.3227275312,
-0.2466394901,
-0.5071800351,
-0.033964958,
-0.0525039062,
-0.3056931794,
-0.1234596372,
-0.1745041609,
-0.180534631,
-0.2515175641,
0.1124921739,
0.6013517976,
-0.2063909769,
0.0208854042,
-0.4196626544,
-0.4201267362,
0.1899641007,
0.2693205476,
-0.0341401733,
0.4477234483,
-0.3025844097,
0.088517867,
0.4392077029,
-0.1254836321,
-0.7618815899,
-0.0033204919,
-0.2596685886,
-0.1898872256,
0.1790018231,
0.0790311992,
0.2497511506,
-0.1000053808,
0.2460573614,
0.1370748132,
0.012917378,
-0.0459470116,
-0.238700062,
-0.0105643589,
-0.0045890408,
0.1839415133,
0.1048777923,
0.2050979286,
0.1501675248,
-0.0725681409,
0.2357555181,
0.160733223,
0.0994152874,
0.3408911526,
0.3313900232,
-0.0265135039,
-0.0199444126,
-0.1835748404,
-0.1992597729,
0.123228848,
-0.216278106,
0.1084154397,
-0.2086805254,
-0.1304648072,
-0.4467416406,
0.0594627149,
-0.0653842762,
-0.093042627,
0.1499167532,
-0.0002759825,
0.3107363284,
0.3321075141,
-0.020356277,
0.3206820786,
0.2677031755,
0.103012234,
-0.1375435591,
0.5665909052,
-0.1339780837,
0.056804657,
0.4536594748,
-0.2412831634,
0.2364036888,
-0.0816813707,
-0.0623008646,
0.1545940489,
0.060468968,
0.342227608,
0.4771335423,
0.2396414429,
0.1721654683,
-0.4354348183,
0.2116640657,
0.3432683051,
0.0783025175,
0.1411446929,
-0.1909073144,
0.0213618036,
0.1539851874,
0.0350169018,
-0.0176073015,
0.2682006955,
0.5447119474,
0.0763237402,
0.0633016229,
-0.0642062575,
0.2679163218,
0.5545852184,
0.2224784344,
-0.0677626804,
-0.241917178,
0.1457104087,
0.5387058258,
-0.0372181535,
0.0527858846,
0.2355951369,
-0.1476684064,
-0.0631907657,
-0.1953095794,
0.2097870111,
0.1718097627,
0.0596293285,
0.1565221548,
0.0106350202,
-0.0777701214,
-0.2667880952,
0.0551332943,
0.0725212619,
0.1452945322,
0.1418422312,
0.1219760552,
0.2061336339,
-0.0820092633,
-0.3087288737,
0.0309937056,
0.3056665659,
-0.1311017722,
-0.0795391425,
-0.2592675984,
0.0049409755,
-0.2732783258,
-0.3159628212,
-0.2113306969,
-0.3952909708,
0.0605420209,
0.265761435,
0.0655998066,
-0.0102987317,
-0.0560371242,
0.0340003334,
0.2436153889,
-0.3098422289,
-0.1341095418,
-0.1500493884,
-0.1041893587,
0.1706148088,
0.2377598584,
-0.3077161014,
0.3982347846,
-0.6368308663,
0.1199378595,
-0.5480051041,
-0.2346217781,
-0.0431171544,
-0.1899071932,
0.0942285955,
0.1756146699,
0.4022015631,
0.3427301943,
0.2505167723,
0.1937543601,
-0.0247937143,
-0.0510066226,
0.0891098231,
-0.1387197524,
-0.0441239327,
0.1827337891,
-0.4613678455,
-0.3021485806,
-0.2280496806,
0.0444358625,
0.0629074797,
0.2366308123,
-0.285844028,
0.1709888726,
0.0659947619,
0.1328111142,
-0.3080636561,
-0.1222962439,
-0.1796013117,
0.498562783,
-0.2371802777,
-0.2333061099,
0.1059011146,
0.130261451,
0.4757525623,
0.1674676239,
-0.4497695565,
0.1792440861,
-0.3459710181,
0.1534796655,
-0.0468466394,
0.0758877844,
0.3201241791,
0.1453730613,
-0.1137199923,
-0.0569934398,
-0.1610036194,
-0.0500386059,
-0.3855096698,
0.2330115288,
-0.0367578566,
0.2503889501,
-0.1210069731,
0.398198694,
0.2551103532,
0.0745473132,
0.3040672839,
-0.1943263561,
0.1306039542,
-0.1279257983,
-0.1889469922,
-0.0984254703,
0.1577034891,
-0.1163240522,
-0.1967867911,
-0.0184636414,
0.0741211176,
-0.1694130003,
-0.1042784303,
-0.2042791992,
-0.2836245596,
-0.1303624362,
0.017781863,
0.4172817469,
0.1859097928,
0.0156837292,
-0.1674308628,
-0.0935419127,
0.2443631142,
0.1396630704,
-0.0014964646,
-0.0180457272,
-0.1251368523,
-0.1843105108,
-0.6704335809,
0.3441170454,
-0.1174284965,
0.235399738,
-0.0927244201,
0.1852506101,
0.1104812771,
-0.0463378839,
0.5471502542,
0.0625371709,
0.3733003438,
0.3563944399,
0.2766822875,
-0.1460460722,
-0.0525099076,
-0.1304522306,
0.2965846062,
-0.0263619125,
0.3771852851,
-0.2650291622,
-0.0554963946,
0.2222447246,
0.1888717711,
-0.1031563729,
0.1805048138,
-0.0639476851,
-0.4556205273,
-0.2093116194,
-0.1772016883,
-0.0870986506,
0.2738860846,
-0.1530112475,
-0.0872613341,
0.0672676265,
-0.1473696679,
-0.0175550915,
-0.1686566174,
0.381293267,
-0.1637211144,
0.1771627218,
-0.0096638761,
-0.298150003,
0.5925562978,
0.9116901755,
-0.0094227502,
-0.450552851,
-0.0699972361,
0.1041782051,
-0.1924929172,
0.0370547622,
-0.107715115,
-0.1556167603,
-0.1347667277,
0.1214745864,
-0.1697996259,
0.2179345191,
0.2668154836,
0.0785121173,
-0.418946594,
-0.3319604695,
0.4077738523,
0.1675905883,
-0.0422660932,
0.4756701291,
0.123178184,
0.0052156853,
-0.1512748301,
-0.1465874314,
0.7076449394,
-0.1708522439,
0.121878989,
0.3979226053,
-0.1670890599,
0.2951294184,
0.0539896376,
0.0549510121,
-0.3560284972,
0.2241550386,
-0.0507986285,
-0.0956092104,
0.0422884822,
0.0331596695,
-0.2261526734,
0.3760741651,
-0.1912709028,
0.0057612294,
0.2342992425,
0.2299364656,
-0.2325205803,
0.1433074325,
-0.2494059205,
0.2325792015,
-0.1700907648,
0.5963361859,
0.0126050049,
-0.1578869969,
-0.235252589,
-0.0887923315,
-0.4586823583,
0.2226311564,
-0.3531465828,
0.0472171865,
-0.1291953474,
-0.2200126946,
0.0645602793,
0.1586478502,
0.3044911623,
0.236255914,
-0.5237362385,
0.2670377493,
-0.3025310636,
-0.3513713181,
0.1728509814,
0.2117986083,
0.2136157006,
-0.0355904512,
-0.2754928172,
0.1930136532,
0.0165787861,
-0.1336364746,
-0.1597442925,
-0.3023328185,
0.0960846245,
-0.2871342897,
0.0308850165,
-0.178455174,
-0.0639167428,
-0.2592558563,
0.2108781636,
0.2444290966,
0.1790869683,
-0.0770319998,
-0.2008534819,
-0.2742708921,
-0.1253174096,
0.4576685727,
-0.0899074599,
0.0362663195,
0.3003350496,
0.1418550164,
-0.0421101898,
-0.2370264381,
-0.0758944154,
0.0870875642,
-0.0705423206,
0.2010707408,
-0.2461973876,
0.4602616429,
-0.1983534992,
0.0310583189,
0.0072812284,
-0.0602624677,
-0.0174485836,
-0.4184098542,
-0.0034991647,
0.1399506927,
0.0689988658,
0.0080934819,
0.080174759,
0.3379448056,
0.0753723532,
-0.2415238023,
-0.3141223192,
0.1533350945,
0.0100924596,
-0.2602767646,
0.3766644895,
0.126503095,
0.2459721863,
-0.1016763821,
0.184855476,
-0.2197217941,
-0.2210969478,
-0.2645951211,
0.0000299902,
0.0581651703,
-0.0433958396,
-0.0884143934,
0.1235885844,
-0.381577462,
-0.2894200087,
0.2447361201,
0.0846429691,
0.4267969429,
-0.0242626183,
-0.062661849,
0.1742572635,
0.0256445073,
-0.0715736747,
0.0522936545,
-0.0506927781,
0.0010747634,
-0.0242589768,
0.3078610301,
0.0098360321,
-0.1488314271,
-0.30806759,
-0.0124680614,
0.0695772916,
-0.0835746601,
0.47949332,
-0.2381896377,
0.0586935766,
0.3324653208,
0.1315368116,
0.3096744716,
-0.5152159929,
0.1130950972,
0.0408589952,
0.286698699,
-0.3299859762,
-0.1299770325,
-0.238836199,
0.013306044,
-0.1226401404,
-0.0237424951,
-0.065475069,
0.1589626968,
0.2537429333,
0.1377553195,
0.3771549165,
-0.194801718,
0.2289054394,
0.309329778,
0.1026868001,
0.1862533838,
0.2217634022,
0.0799650997,
-0.0969686359,
0.4350675344,
-0.2293915302,
0.1500753611,
-0.0677117631,
0.0790821314,
0.1858037859,
-0.201668039,
-0.3423801661,
0.2099467069,
-0.1070173606,
-0.0416853279,
0.0382250212,
0.264692843,
-0.3808475435,
0.2599394917,
-0.2471586019,
0.218042925,
0.039691709,
-0.1070377678,
-0.0710214078,
-0.2772130072,
-0.1615739018,
0.1111864224,
0.0544031449,
-0.0574873649,
-0.1172459796,
-0.0004239898,
-0.4112990201,
-0.4172864556,
0.0453433432,
0.192214191,
0.1519671828,
-0.1251610667,
0.4158018827,
-0.0666862279,
-0.2817395329,
0.1539522558,
0.4888015091,
0.4909830689,
0.165241614,
0.2514764369,
-0.144768253,
-0.2571272552,
-0.2132362872,
0.0702498704,
0.1148376539,
-0.0334706157,
0.007120986,
0.2830830812,
0.2091296166,
-0.1540865153,
0.124448508,
0.0029566749,
0.341948539,
0.0563802645,
0.3701933622,
-0.3759682477,
-0.0931664407,
-0.2818808258,
-0.0891279057,
-0.3936681151,
-0.1934795529,
0.1249654815,
0.0378296487,
0.0091357082,
-0.2682195902,
0.1284018308,
0.0321747772,
0.1845885813,
0.2696240246,
0.2058680058,
-0.2469171286,
-0.3324057162,
-0.5042062402,
0.1489999443,
-0.1049714163,
-0.2146743387,
-0.1411429346,
0.0215012394,
-0.2108835131,
0.0625294149,
0.2979359925,
-0.0173045862,
-0.1892402172,
-0.1613344401,
-0.1859369129,
-0.0138215926,
-0.1759536713,
0.0314949378,
0.0316190459,
-0.3335474133,
0.279132545,
-0.3489810228,
0.072145015,
-0.2029918581,
0.0582774393,
0.0845616311,
-0.0209049378,
0.2773117721,
0.1782319844,
0.1633214206,
-0.0716613755,
-0.1242836565,
-0.4604789317,
-0.0752218217,
-0.1951588392,
0.0604051575,
-0.1034029052,
0.0961734205,
-0.1812671721,
-0.4262298346,
-0.1299847364,
0.0591743663,
-0.1510558724,
0.0678854436,
-0.181076169,
-0.0299207773,
-0.0501209311,
0.1820135415,
0.1748445928,
0.0471053831,
-0.0015659584,
0.0969650447,
-0.2998532653,
-0.284042865,
0.1638269871,
0.0188100561,
-0.0074550137,
-0.0921065956,
0.0484026931,
0.2315629572,
0.0643887445,
-0.1891824603,
0.2362125963,
0.4156238437,
0.0095642889,
-0.169630006,
0.1937180012,
-0.1111149639,
0.1457276642,
0.1789948791,
0.4593871832,
-0.040630471,
-0.1174678281,
0.0221760981,
-0.0482678674
] |
https://github.com/huggingface/datasets/issues/2842 | always requiring the username in the dataset name when there is one | From what I can understand, you want the saved arrow file directory to have username as well instead of just dataset name if it was downloaded with the user prefix? | Me and now another person have been bitten by the `datasets`'s non-strictness on requiring a dataset creator's username when it's due.
So both of us started with `stas/openwebtext-10k`, somewhere along the lines lost `stas/` and continued using `openwebtext-10k` and it all was good until we published the software and things broke, since there is no `openwebtext-10k`
So this feature request is asking to tighten the checking and not allow dataset loading if it was downloaded with the user prefix, but then attempted to be used w/o it.
The same in code:
```
# first run
python -c "from datasets import load_dataset; load_dataset('stas/openwebtext-10k')"
# now run immediately
python -c "from datasets import load_dataset; load_dataset('openwebtext-10k')"
# the second command should fail, but it doesn't fail now.
```
Please let me know if I explained myself clearly.
Thank you! | 30 | always requiring the username in the dataset name when there is one
Me and now another person have been bitten by the `datasets`'s non-strictness on requiring a dataset creator's username when it's due.
So both of us started with `stas/openwebtext-10k`, somewhere along the lines lost `stas/` and continued using `openwebtext-10k` and it all was good until we published the software and things broke, since there is no `openwebtext-10k`
So this feature request is asking to tighten the checking and not allow dataset loading if it was downloaded with the user prefix, but then attempted to be used w/o it.
The same in code:
```
# first run
python -c "from datasets import load_dataset; load_dataset('stas/openwebtext-10k')"
# now run immediately
python -c "from datasets import load_dataset; load_dataset('openwebtext-10k')"
# the second command should fail, but it doesn't fail now.
```
Please let me know if I explained myself clearly.
Thank you!
From what I can understand, you want the saved arrow file directory to have username as well instead of just dataset name if it was downloaded with the user prefix? | [
-0.1190379411,
0.1679283381,
-0.047179047,
0.0831829533,
0.0581347719,
-0.1882434636,
0.2695405185,
0.090119943,
0.0316710621,
0.3004505634,
0.157178849,
-0.0406883359,
-0.0339303538,
0.0137739284,
-0.2211272866,
0.0345356502,
-0.0375725999,
0.4607705474,
-0.1611818969,
-0.0188341159,
-0.2140433788,
0.0586198904,
0.0266008172,
0.1466936022,
0.0929171443,
0.0588430986,
0.3130098581,
0.2868219614,
-0.3467882872,
-0.4643649459,
0.3015706241,
0.235601753,
0.0029152383,
0.2852762341,
-0.0001282644,
-0.033367157,
0.2038314939,
-0.0626532957,
-0.4011754692,
-0.4367166758,
-0.533325851,
-0.2659046948,
0.3054174483,
-0.3457645178,
0.0780371428,
-0.2222447246,
0.0719517171,
-0.763908565,
0.5935951471,
0.1730739772,
0.0422015339,
0.2400032282,
-0.0584296621,
0.0676861331,
0.0910243243,
0.1828542054,
-0.1983407736,
0.0576104745,
0.2272553593,
0.1533892453,
0.2952235341,
0.2544378638,
-0.1423671991,
0.184968546,
0.4132419527,
-0.2334418446,
0.1443342119,
-0.1818231046,
-0.062179029,
0.4150880277,
1.1197654009,
0.1163945049,
-0.2934359014,
-0.1209265962,
-0.1289776862,
0.0856912285,
0.429435432,
-0.0286807995,
-0.2189791203,
0.0680714324,
0.0494641438,
-0.2302121222,
-0.234211728,
0.0908736885,
-0.2012760341,
0.405872792,
-0.0297539104,
0.2471694797,
0.0076996484,
-0.1547001898,
0.1335837394,
0.0433809198,
-0.0445638373,
0.0337282829,
-0.3212507069,
-0.1692341417,
0.0908349901,
-0.404835701,
-0.0476180054,
0.5174327493,
0.4020614922,
0.03273011,
-0.344160974,
-0.0132743455,
0.1745272875,
0.1908970177,
0.6876795292,
-0.0796755105,
0.4477431774,
-0.2132452279,
0.1390418112,
-0.1412644535,
-0.2152575105,
-0.2961268127,
0.1313994676,
0.0904850811,
0.6935945749,
-0.2948880494,
-0.1523356885,
0.0342140496,
-0.1434054077,
-0.2593043745,
0.0486350358,
0.074992694,
-0.0735887662,
0.1086218059,
0.1906050295,
-0.0469757393,
0.2274108678,
0.0317913033,
0.0382742882,
-0.4006377757,
-0.1337122321,
-0.0184562057,
0.2508588433,
-0.3766243458,
0.4235998392,
-0.0698965117,
-0.0486346371,
-0.0030260754,
0.281137377,
0.0505679287,
0.1693540215,
0.1912311614,
-0.0317289829,
0.1745620817,
0.0232968573,
-0.2015250623,
-0.2798308432,
0.4101696312,
-0.3928647935,
-0.2087895274,
-0.4585907161,
-0.0268325172,
-0.2381675988,
0.0136592584,
-0.1689314395,
-0.3450930119,
-0.0618425161,
-0.0526142046,
0.2095699906,
0.2401569039,
-0.0615881197,
-0.1526175439,
-0.0715631098,
0.3001873493,
-0.2423455715,
-0.1067418605,
-0.2043181807,
-0.0189729482,
-0.1588861644,
0.1915174872,
-0.4447416365,
0.0448997505,
-0.2232246548,
0.1948379725,
0.5952609181,
-0.4956401587,
-0.0760812834,
0.1809932292,
-0.1531476229,
0.0020548273,
0.5405678749,
-0.1667467952,
-0.178337872,
-0.2737276554,
-0.537460804,
0.2701223195,
0.2313292772,
-0.0610755272,
0.0770300552,
-0.1622282714,
0.0180174597,
-0.2001357675,
-0.2374700904,
0.0979824215,
0.1585732549,
-0.1249815598,
0.3110913932,
-0.2299075723,
-0.0763424486,
0.0260681603,
0.2804859579,
0.1328603625,
-0.0561480857,
0.1408210993,
-0.3887729645,
0.2096931338,
0.0229798183,
-0.0062831584,
-0.1900231987,
-0.3237220347,
-0.2919830978,
-0.003337218,
-0.1393823177,
0.4665457308,
-0.1532780826,
0.2935825586,
-0.2240788341,
-0.1394449472,
-0.1043929383,
0.3928516209,
-0.0612809844,
0.1351869851,
-0.2509831488,
-0.0169806611,
0.1369336396,
0.2311659157,
-0.0492911078,
-0.1680649072,
0.3726315796,
-0.0220886264,
-0.1133119315,
0.5330517292,
-0.0282316916,
0.0319851451,
-0.1048788875,
0.1954685152,
0.1114101112,
-0.2514070868,
0.1943350434,
0.1735418886,
0.1979681849,
-0.1101801172,
0.0263107736,
0.1806220114,
-0.0178218931,
0.0831884444,
0.0754428804,
-0.1566093862,
-0.0618395172,
-0.229137525,
-0.370228231,
-0.1156576946,
0.0781686157,
0.0283834729,
0.1068360358,
-0.0578242727,
-0.2347724885,
-0.2743074298,
0.3148424625,
0.0879816264,
0.1735294014,
-0.0414847955,
0.0935690701,
-0.0817900002,
0.1874940991,
0.0105517618,
0.4148551822,
0.1526488811,
0.1386742443,
-0.2018695176,
0.3261215985,
-0.1958365291,
0.4617407024,
0.0994193181,
-0.1915588677,
0.0323101915,
-0.2889236808,
-0.0004566245,
-0.2048775703,
-0.1207690313,
0.1294810027,
-0.139075771,
-0.5578090549,
-0.1775351614,
-0.1947995424,
-0.1773227602,
-0.0711520314,
-0.3892522454,
-0.1408153027,
-0.0222054441,
-0.0295882467,
0.3878869712,
-0.0663039684,
0.3042516112,
-0.2504912615,
0.2322495729,
-0.2513066828,
-0.4720900953,
-0.2935731113,
0.1879668981,
0.1781594008,
-0.0206829365,
0.1983246803,
-0.0375117622,
0.3403943777,
0.0168808922,
0.3036703765,
-0.4464103878,
-0.2624955475,
-0.1112395376,
-0.0941311643,
0.0098525649,
0.112964645,
0.2278972417,
0.1429517418,
-0.3494533896,
-0.0963941589,
-0.1307206154,
-0.1407061368,
0.0009911205,
0.1941831112,
-0.0720812976,
0.0421999432,
-0.0923180431,
-0.0686050951,
-0.1738800257,
0.1846847236,
0.0589118488,
0.3326396048,
0.418210417,
0.024567347,
0.0229597595,
0.0603554137,
0.0939200819,
-0.1221085638,
-0.4152967036,
0.2814903557,
-0.2210957706,
-0.0365175977,
0.1737719029,
0.2325133234,
0.0525956228,
0.0665099323,
-0.2961342335,
-0.0420537814,
-0.2180655897,
0.477421701,
-0.2487524748,
0.2532510757,
0.5675637126,
0.3703916073,
-0.1215846017,
-0.1645442396,
-0.0928736702,
0.1102989614,
0.0533314273,
0.1783055216,
0.1550331712,
-0.0761389136,
-0.3044640124,
0.7028353214,
-0.0307358764,
0.3346607387,
0.548869431,
0.1978099346,
0.3732857108,
0.0515310764,
-0.3388851285,
-0.3989714086,
0.1529437453,
0.2582510114,
0.1570231766,
0.0615498386,
0.1797026098,
-0.3803018928,
-0.1841917783,
-0.1308832467,
-0.2201766968,
-0.0360446535,
-0.3498948514,
0.0543983243,
0.0439988114,
-0.1236760244,
-0.135457769,
-0.0775801688,
0.0839834213,
0.4269080162,
0.156512484,
-0.0896435529,
-0.4259313643,
0.3228059113,
-0.1297941506,
0.3699964583,
-0.09884087,
0.2729544938,
0.1579924375,
-0.0058772429,
0.1153094992,
0.2723063529,
0.3054023385,
-0.208663404,
0.3312802911,
-0.1204930991,
0.4135695398,
-0.1751643419,
0.0315268449,
0.2564967871,
-0.0998784229,
-0.2643826306,
0.3027746081,
-0.1913678646,
-0.4059070349,
0.1005335674,
-0.27813223,
-0.0048160958,
-0.0812904611,
-0.2858083248,
-0.2675289512,
-0.0237784609,
-0.197160691,
0.1056351662,
0.0764517114,
0.2602630556,
0.1318936199,
-0.5443435907,
-0.103176564,
0.3608006537,
-0.1166562214,
0.0351510085,
0.1044918075,
0.1588219106,
0.0822710469,
0.1861933321,
0.2327173203,
0.6167235374,
-0.2998131812,
-0.3326896429,
-0.2465222776,
-0.0142620495,
0.3358975947,
0.5567631125,
-0.3770553172,
0.0642207563,
0.0524336994,
0.0801536888,
-0.1524664909,
0.2843641043,
0.0053206151,
0.0515178181,
-0.4108072221,
-0.3268083632,
0.5429557562,
0.1056067273,
-0.3005450964,
0.7662759423,
0.3692922294,
-0.4027782977,
0.1413381547,
-0.0247138999,
1.2238190174,
0.2662166953,
0.0439252965,
0.0607515611,
-0.4458109438,
0.2821813226,
0.054733634,
-0.187469244,
-0.1474929303,
-0.3034971654,
-0.3116857409,
-0.1509778947,
0.568595767,
0.1349816173,
-0.1568019688,
0.05737973,
-0.1468242407,
0.0361377597,
0.1009624898,
0.7443873286,
-0.185126707,
0.0469407812,
0.1732179224,
-0.0364799462,
-0.0447543375,
0.2468229979,
-0.0116909184,
-0.1113996282,
-0.1487344503,
-0.5499302149,
-0.0749665052,
-0.0680466816,
-0.7534856796,
-0.0093348864,
-0.3791726828,
-0.3681637347,
0.5626471043,
0.1523160636,
0.0576116405,
0.2965055406,
-0.3175483346,
0.2552102208,
0.0901816487,
0.0149818733,
-0.1803236455,
0.1127087399,
0.2606055737,
-0.0502237156,
-0.0617954396,
-0.0783598199,
-0.2837238014,
-0.3321816623,
-0.0255018845,
0.0529481433,
0.3253262639,
-0.5745778084,
-0.0056035607,
0.0122614,
0.0434933491,
-0.0465569235,
-0.0350840762,
0.0479123481,
0.0039649457,
0.1144410148,
-0.2168416083,
-0.3006612957,
0.1790728867,
0.2455645204,
0.0463701487,
0.0019494061,
0.5263772607,
-0.575494945,
0.0290000979,
-0.1034609303,
0.1901356131,
0.2181661576,
-0.4234995246,
0.1825541258,
0.3277735412,
-0.1825959682,
-0.1071862727,
0.3787519336,
0.260348469,
0.3952933252,
0.1626949906,
-0.1714951545,
0.0690459535,
-0.0812489763,
-0.0692830235,
0.3977306485,
-0.207931146,
-0.2025915384,
0.0163095687,
0.0052004061,
-0.1616017073,
0.138897121,
0.2977432609,
0.1350884587,
0.1676585674,
0.1225022152,
0.2940797508,
-0.2935944498,
-0.0925806165,
-0.140132755,
-0.25130108,
-0.0639980361,
-0.3148652017,
0.3228756785,
0.1089397743,
-0.3098430336,
0.1659440547,
-0.4422402382,
0.0485300235,
0.0441705622,
-0.0342231952,
0.1821009368,
-0.0535594374,
0.0724417642,
0.3745588362,
0.0742093772,
-0.3295546472,
0.3735236824,
-0.028746387,
0.1948767453,
-0.175736472,
0.2849719822,
-0.2727879584,
-0.0840634555,
-0.0693756044,
0.156398505,
0.2392056435,
0.1116318628,
-0.1627606601,
0.0437552966,
-0.3610872328,
-0.1368679255,
0.2759777606,
0.4564223886,
-0.0846002623,
-0.3422047198,
0.3734618723,
0.0350236706,
-0.1578490287,
-0.1395687014,
-0.0506657027,
0.028796386,
0.0680079907,
0.2245222479,
0.0949353799,
-0.1718696654,
0.0033876379,
-0.0594215244,
0.1257728487,
0.2444265932,
0.4302339554,
0.5527551174,
-0.1809054017,
-0.2369039655,
0.5231280923,
0.0897442251,
-0.0738713369,
0.0243309233,
-0.3417435288,
0.2599056065,
0.3151951134,
0.0353338569,
-0.218471542,
-0.1708521694,
0.1869696975,
0.0286615789,
-0.2586021721,
0.2146744132,
0.2728354037,
0.2644331455,
-0.1238503456,
0.0831329226,
-0.068841368,
0.1084795967,
0.1066406593,
-0.1596775502,
-0.2735551894,
-0.1660283208,
-0.1107294708,
-0.232680127,
-0.1443531513,
-0.2382267267,
0.0144016389,
0.1292831302,
-0.0178128146,
-0.1071007326,
-0.0757051557,
-0.0576787591,
0.1540257931,
-0.3662450314,
0.0070554717,
0.1383771896,
-0.0378998481,
0.3139420152,
0.5676707625,
0.2896811962,
0.1228691861,
0.2602411807,
-0.0290089827,
-0.0165429488,
-0.0719608143,
0.0499385744,
0.3027608395,
0.0829568952,
0.0857040808,
0.147198692,
-0.0053593689,
-0.0027514461,
0.0145406267,
-0.083034575,
-0.4029015005,
-0.3799490929,
0.3665392697,
-0.0053545157,
-0.3656518161,
0.010614967,
0.080420427,
0.101257138,
0.1627475172,
0.5316872001,
0.187483117,
-0.008082944,
-0.1555689722,
-0.0273115728,
-0.0110674724,
0.3597066402,
0.2601287663,
0.0083899368,
-0.3220818639,
-0.1413498372,
-0.6859129667,
0.0416155644,
0.1635599136,
-0.1681413203,
0.202779457,
-0.1139177456,
0.1069931611,
0.100873217,
0.1230734363,
0.0877580568,
-0.0730660558,
0.2201384008,
-0.313708663,
0.1525004953,
0.451246202,
0.1160834432,
0.050819613,
-0.6453542113,
0.2798845172,
-0.0242338963,
-0.1862504035,
-0.1720719188,
-0.1087183431,
0.4785985053,
0.0000969659,
0.794883728,
0.0299065895,
0.3624135554,
0.1474063993,
0.1536781043,
0.0480754003,
0.0920404419,
-0.4106507599,
0.2657962143,
0.6018595099,
0.1037252396,
-0.3340429068,
0.1935338527,
-0.3498044014,
0.2718962431,
-0.1413113326,
0.2120960504,
-0.1843788028,
-0.2185985893,
-0.073257193,
-0.0793104321,
-0.0453757979,
0.0925316066,
-0.1731417328,
0.1865433902,
-0.6228408813,
-0.5094377398,
0.642891705,
-0.0273556393,
-0.1840172708,
-0.0626869798,
0.7091812491,
0.1909339577,
-0.0494989045,
-0.7029512525,
0.1149334311,
0.4967623651,
0.0326750092,
0.0374151021,
0.3120485246,
-0.1207024455,
0.2600688636,
-0.026377853,
0.4791585207,
0.0988166481,
-0.2374482602,
-0.1279355139,
-0.3826911151
] |
https://github.com/huggingface/datasets/issues/2842 | always requiring the username in the dataset name when there is one | I don't think the user cares of how this is done, but the 2nd command should fail, IMHO, as its dataset name is invalid:
```
# first run
python -c "from datasets import load_dataset; load_dataset('stas/openwebtext-10k')"
# now run immediately
python -c "from datasets import load_dataset; load_dataset('openwebtext-10k')"
# the second command should fail, but it doesn't fail now.
```
Moreover, if someone were to create `openwebtext-10k` w/o the prefix, they will now get the wrong dataset, if they previously downloaded `stas/openwebtext-10k`.
And if there are 2 users with the same dataset name `foo/ds` and `bar/ds` - currently this won't work to get the correct dataset.
So really there 3 unrelated issues hiding in the current behavior. | Me and now another person have been bitten by the `datasets`'s non-strictness on requiring a dataset creator's username when it's due.
So both of us started with `stas/openwebtext-10k`, somewhere along the lines lost `stas/` and continued using `openwebtext-10k` and it all was good until we published the software and things broke, since there is no `openwebtext-10k`
So this feature request is asking to tighten the checking and not allow dataset loading if it was downloaded with the user prefix, but then attempted to be used w/o it.
The same in code:
```
# first run
python -c "from datasets import load_dataset; load_dataset('stas/openwebtext-10k')"
# now run immediately
python -c "from datasets import load_dataset; load_dataset('openwebtext-10k')"
# the second command should fail, but it doesn't fail now.
```
Please let me know if I explained myself clearly.
Thank you! | 115 | always requiring the username in the dataset name when there is one
Me and now another person have been bitten by the `datasets`'s non-strictness on requiring a dataset creator's username when it's due.
So both of us started with `stas/openwebtext-10k`, somewhere along the lines lost `stas/` and continued using `openwebtext-10k` and it all was good until we published the software and things broke, since there is no `openwebtext-10k`
So this feature request is asking to tighten the checking and not allow dataset loading if it was downloaded with the user prefix, but then attempted to be used w/o it.
The same in code:
```
# first run
python -c "from datasets import load_dataset; load_dataset('stas/openwebtext-10k')"
# now run immediately
python -c "from datasets import load_dataset; load_dataset('openwebtext-10k')"
# the second command should fail, but it doesn't fail now.
```
Please let me know if I explained myself clearly.
Thank you!
I don't think the user cares of how this is done, but the 2nd command should fail, IMHO, as its dataset name is invalid:
```
# first run
python -c "from datasets import load_dataset; load_dataset('stas/openwebtext-10k')"
# now run immediately
python -c "from datasets import load_dataset; load_dataset('openwebtext-10k')"
# the second command should fail, but it doesn't fail now.
```
Moreover, if someone were to create `openwebtext-10k` w/o the prefix, they will now get the wrong dataset, if they previously downloaded `stas/openwebtext-10k`.
And if there are 2 users with the same dataset name `foo/ds` and `bar/ds` - currently this won't work to get the correct dataset.
So really there 3 unrelated issues hiding in the current behavior. | [
-0.0112161068,
0.1447481215,
-0.0393612012,
0.0958191305,
0.0011398974,
-0.21814017,
0.4295823574,
0.1111667305,
0.106905356,
0.3369615972,
0.1158717498,
-0.0281226411,
0.0120588709,
0.0387605019,
-0.1626236737,
0.1540511698,
-0.06216361,
0.3452987373,
-0.1390583366,
0.0082568526,
-0.1663803905,
-0.0051507014,
0.0509563982,
0.0512073487,
0.1581595242,
0.0974032283,
0.3119134009,
0.195742622,
-0.2975038588,
-0.4824239016,
0.3003054857,
0.3615881205,
-0.0639264286,
0.4107330441,
-0.0001179238,
-0.0590648279,
0.2076958716,
0.0588892065,
-0.5383245945,
-0.4455488622,
-0.4917054176,
-0.2482864112,
0.2102009654,
-0.3056303561,
0.0239956081,
-0.0770890042,
0.0180537812,
-0.7141699195,
0.4935950935,
0.1425913274,
0.1235403121,
0.4247734249,
-0.0561009496,
-0.0546837412,
0.0977878571,
0.0445508026,
-0.14305529,
0.0673179328,
0.2824340463,
0.1683508009,
0.3565243483,
0.2082258463,
-0.2156512588,
0.1110856906,
0.3078669608,
-0.2973113656,
0.1378889829,
-0.185041979,
-0.0196564961,
0.4707064331,
1.00101614,
0.1690530926,
-0.4670836926,
-0.1757355779,
-0.1048422828,
0.0698699355,
0.4081430137,
0.1350547671,
-0.111715883,
0.1679629385,
-0.0835040063,
-0.0350225605,
-0.0327408426,
-0.0183723513,
-0.2701371908,
0.4630748928,
-0.0382802598,
0.2346923798,
-0.1269821972,
-0.1310451031,
0.1787928343,
-0.0570791811,
0.0163659975,
-0.008556135,
-0.4005129039,
-0.1691485494,
0.1516159177,
-0.4226426184,
0.0428753421,
0.3494898379,
0.2651740015,
0.083974801,
-0.3256966174,
-0.0293967426,
0.2081444561,
0.2185648233,
0.5727404952,
-0.1588097215,
0.4727652073,
-0.2071725726,
0.2513424456,
-0.0986485034,
-0.0985090062,
-0.1068094969,
0.0423013978,
0.0020767844,
0.5621961951,
-0.2326087207,
-0.2164975256,
0.0521594174,
-0.095808588,
-0.2232665569,
0.054877609,
0.0210058205,
-0.1488409489,
0.1968664229,
0.0845584348,
-0.0511214994,
0.1819669455,
-0.1001204699,
-0.0620182641,
-0.3828082681,
-0.1790469289,
0.0472361147,
0.2418148071,
-0.4406695068,
0.3566652238,
0.0988027304,
-0.1142158583,
0.0436310805,
0.1698501855,
0.090875864,
-0.0172397643,
0.1904597133,
-0.0580173321,
0.1688789427,
-0.0506807603,
-0.2279138863,
-0.2390826494,
0.3085812926,
-0.3904119134,
-0.204566434,
-0.4336534739,
0.1097153127,
-0.2935429215,
0.0661325902,
-0.0812159255,
-0.2224239856,
-0.0917921513,
-0.0883758143,
0.1027793437,
0.1798983514,
-0.1870243847,
-0.1584709287,
-0.0523946956,
0.3964362741,
-0.1756321341,
-0.0502210036,
-0.1365359128,
0.0294641275,
-0.1163139567,
0.1394523233,
-0.4678528607,
0.1224645972,
-0.1508983672,
-0.0489703864,
0.3005215824,
-0.538839817,
-0.0999097228,
0.2233627737,
-0.1950826794,
0.2370558381,
0.5151135921,
-0.1638973951,
-0.169034481,
-0.3403668702,
-0.3859287202,
0.234112978,
0.1532598138,
0.0108525995,
-0.042843122,
-0.2005463839,
0.1890722066,
-0.0827106237,
-0.1046394706,
0.1461024731,
0.1451874971,
0.0288746879,
0.2422484159,
-0.2445034832,
-0.1366337836,
-0.144713968,
0.2217040509,
0.0762652531,
-0.1103755385,
0.0332955159,
-0.4837909043,
0.3472395241,
0.1079090089,
0.2498533875,
-0.0062446678,
-0.3379674256,
-0.2230137736,
-0.0397200733,
-0.0805988535,
0.3676057756,
-0.052095402,
0.250261873,
-0.1500832736,
-0.1581348479,
-0.0297865141,
0.5793235302,
-0.133475855,
0.129886508,
-0.3625035584,
-0.1167222857,
0.0630654097,
0.3549441993,
-0.0472436137,
-0.0926377401,
0.3039371371,
-0.0752966926,
-0.0324135795,
0.4737953246,
0.1176315397,
-0.1633920372,
-0.2493179888,
0.2496859878,
0.2226759493,
-0.0240225345,
0.1172251925,
0.0922883302,
0.3392165899,
-0.1424902081,
-0.0014674271,
0.2404728532,
-0.0266187657,
0.0524699986,
0.0816145316,
-0.2937868536,
0.0200445596,
-0.222383067,
-0.3907834291,
-0.1125161797,
0.0381236039,
0.019634122,
0.068068333,
0.0361105874,
-0.1875891536,
-0.2777247727,
0.2804123461,
0.0181259513,
0.0682562664,
-0.0759635642,
0.2254894227,
-0.1054003462,
0.2398352027,
-0.1361484677,
0.3855208755,
0.2088998407,
0.0597971715,
-0.2161648721,
0.2650005519,
-0.2814113796,
0.3381400704,
0.0773393959,
-0.3269682825,
-0.0710421205,
-0.166560635,
0.1119682267,
-0.1857122332,
-0.1120789349,
0.2062526494,
-0.1443521678,
-0.5838578939,
-0.1948497146,
-0.1586294472,
-0.0823744759,
-0.0362053998,
-0.3682667911,
-0.2206245363,
-0.1217519715,
0.0648031458,
0.3796052039,
-0.1369000375,
0.1926311105,
-0.2595561445,
0.2505998611,
-0.3872122765,
-0.3063415289,
-0.2005380094,
0.1017689407,
0.025154328,
0.0505025424,
0.2794834375,
-0.0904419944,
0.4055160284,
-0.1425038576,
0.0767798051,
-0.2846238017,
-0.4424414635,
-0.0563284941,
-0.1785662472,
0.1260643154,
0.043868944,
-0.0142094716,
0.2531157136,
-0.3800752163,
-0.1869848371,
-0.1745904386,
-0.0908754766,
0.0464824773,
0.1490806192,
-0.240655601,
-0.0902434587,
-0.1752285361,
-0.0152531862,
-0.215950653,
0.04407553,
-0.0034682665,
0.2913247645,
0.5777446628,
-0.1085718274,
-0.0926465392,
0.0440639853,
0.2822087407,
-0.241315037,
-0.4220574796,
0.1361678243,
-0.1282570362,
-0.1011924297,
0.1170821786,
0.2195585072,
0.129871726,
0.124522239,
-0.3237331212,
-0.0901662037,
-0.222266078,
0.4953494668,
-0.1317198575,
0.2276004106,
0.4823290706,
0.3495173752,
-0.1312915534,
-0.1352272332,
-0.1102828979,
0.0061194794,
-0.0955963805,
0.1160095632,
0.1497412771,
-0.178474471,
-0.2178834528,
0.5322825313,
-0.0081039285,
0.1795235723,
0.4474459589,
0.2515375614,
0.484123826,
-0.05539307,
-0.3686904907,
-0.2375954092,
0.1669607908,
0.3007071316,
0.3614526391,
-0.0288800485,
0.1765932888,
-0.451216042,
-0.0420398414,
-0.1621524394,
-0.2278550565,
-0.1509101391,
-0.2837163806,
0.0334211439,
0.1741854548,
0.0232749581,
-0.1574229747,
-0.1108555049,
-0.0661252514,
0.3186626136,
0.1897312552,
-0.1305614412,
-0.5399689078,
0.3867034614,
-0.115023151,
0.3552754223,
-0.0691338405,
0.4952969253,
0.1704869419,
0.0651912689,
0.0256934874,
0.247155264,
0.3881773055,
-0.2131276578,
0.2539447248,
-0.1053877026,
0.2757463753,
-0.2027954161,
-0.0218423735,
0.1168002188,
-0.1649672836,
-0.1291736811,
0.2650550306,
-0.4018346369,
-0.3482814431,
0.1696347296,
-0.2113068402,
0.0327655748,
-0.2741825879,
-0.2963884771,
-0.3259499371,
-0.0105902823,
-0.267018944,
0.0302366801,
0.1780676097,
0.1067329124,
0.0705292076,
-0.4568780363,
0.0152225485,
0.4961724877,
0.0117482664,
-0.1752828509,
0.231042549,
0.3731124699,
0.0772023275,
0.2146688998,
0.2025264204,
0.6153803468,
-0.3113233149,
-0.3651429713,
-0.2468258142,
0.1075052917,
0.203677386,
0.6252368093,
-0.1257187277,
0.0555853434,
0.0182659831,
0.0174132083,
-0.1480576992,
0.2311885804,
0.0695186257,
0.0075257486,
-0.5689128637,
-0.5124381185,
0.4097726345,
0.1962921321,
-0.3164054155,
0.5638621449,
0.2210736424,
-0.3777574003,
0.2363743186,
-0.0685731545,
1.1841133833,
0.1511304229,
-0.0222880393,
0.1086929813,
-0.2743474245,
0.4086298347,
-0.0190221854,
-0.1535320878,
-0.1012921855,
-0.3914805651,
-0.2432570904,
-0.0974705666,
0.4923288524,
0.1395296156,
-0.0809417889,
0.1936914474,
-0.1467930228,
0.310795635,
0.1649028957,
0.8204008341,
-0.1968408674,
-0.0432450622,
0.1305500567,
0.0713708624,
-0.0698815882,
0.0980886966,
-0.0604219995,
-0.0893919021,
0.0003165495,
-0.5520798564,
-0.0432140976,
-0.0595424511,
-0.5215198994,
-0.0043298011,
-0.3476563096,
-0.1348287165,
0.6052543521,
-0.0314835533,
0.2230158001,
0.4870776534,
-0.3037201464,
0.1740721613,
0.0260370765,
0.1071301699,
-0.1010565534,
0.0885668769,
0.2871973217,
0.0180479903,
-0.1029229835,
-0.0717548281,
-0.2084175795,
-0.0926945806,
-0.1091303602,
0.0516610853,
0.2960454226,
-0.6112048626,
0.132174626,
0.1655410081,
0.1464855671,
-0.1314793974,
0.0616511032,
-0.0469371304,
-0.1123207733,
0.2089914232,
-0.2543320954,
-0.3418778479,
-0.0353128649,
0.3156789839,
0.1183123887,
-0.0468293913,
0.3247857094,
-0.4340351224,
-0.0146590946,
-0.1239699274,
0.0443881191,
0.0820217505,
-0.3374632597,
0.1304942071,
0.369427979,
-0.1517462879,
-0.1111422032,
0.4006415308,
0.2646325231,
0.2343737483,
0.2556478679,
-0.0740642175,
0.1905227005,
-0.0857849121,
-0.0271288976,
0.366823256,
-0.0700078532,
-0.0851101354,
-0.2316472083,
0.1306414604,
-0.2717593312,
-0.0667756721,
0.2494489104,
0.1456219703,
0.1512949765,
0.0332745761,
0.2019615322,
-0.3044816852,
0.0085814176,
-0.1379691958,
-0.2515733838,
-0.1664133966,
-0.2767710984,
0.268614918,
0.1358594298,
-0.2527413964,
0.1329984814,
-0.3781416118,
-0.035033159,
-0.0503025837,
0.2388749719,
0.3519415855,
-0.0465128422,
0.0376932658,
0.318700403,
0.2507347167,
-0.245118916,
0.4744579494,
-0.0569195412,
0.1913257241,
-0.1051184908,
0.3228104711,
-0.210377112,
-0.0249674655,
-0.0326477699,
0.2123125643,
0.21477516,
0.1101782769,
-0.1119845808,
-0.0051650563,
-0.2259211987,
0.0477608889,
0.2360940129,
0.4404349625,
-0.0166109819,
-0.3979750872,
0.3906179368,
0.1331166178,
-0.2027979791,
-0.1477348953,
-0.1319350004,
0.0933495313,
0.1392951906,
0.3862107694,
0.2862528563,
-0.1766945571,
-0.0275045913,
-0.1304127425,
0.3384791613,
0.2866657972,
0.4526548982,
0.5592716932,
-0.1542934626,
-0.185473904,
0.512624383,
0.0068703084,
-0.1419382095,
0.0054714871,
-0.2569518089,
0.3793471754,
0.2748571932,
0.1208212897,
-0.1378643364,
-0.1511700153,
0.3385254741,
0.1294662058,
-0.2375846654,
0.1839799732,
0.1595330685,
0.0375082344,
-0.2583959103,
0.1217839047,
-0.1916840076,
0.0509819202,
0.05328428,
-0.053939525,
-0.3588394523,
-0.1637408137,
-0.1485714763,
-0.2200829238,
-0.1351292282,
-0.3176752031,
0.0408209376,
0.0658945665,
-0.1486785859,
-0.2505570352,
-0.1769746095,
-0.0058161006,
0.1997226179,
-0.387365222,
0.050213486,
0.170920372,
-0.0937478617,
0.2696219087,
0.6034385562,
0.3446470201,
0.2489084899,
0.2829258442,
-0.0589629859,
-0.0136464732,
0.0073232166,
-0.0637471005,
0.4808591902,
-0.0753977671,
0.1981628835,
0.2164336145,
0.0723052919,
-0.06276685,
-0.063035436,
-0.0711400956,
-0.4052002728,
-0.5685396194,
0.535615027,
0.021832386,
-0.2458160818,
0.0212234464,
0.1753308475,
0.0452517048,
0.2339672744,
0.5319799185,
0.2475271225,
0.0989461467,
-0.2202381194,
0.0302972402,
0.0421724431,
0.320638448,
0.2086666822,
-0.0390397869,
-0.3553535938,
0.0335701518,
-0.6624810696,
0.1259514242,
0.053482227,
-0.0521553159,
0.1798838675,
-0.221494481,
0.1530089676,
0.1559292674,
-0.1151133031,
-0.0013088968,
-0.0822171569,
0.1474504769,
-0.2808148861,
0.1885606945,
0.3135068715,
-0.0348809771,
0.0735730976,
-0.6237812638,
0.2831662893,
-0.0909055918,
-0.1089207679,
-0.1977210194,
0.0677643046,
0.5854007006,
-0.1355742216,
0.6277524233,
0.1813012511,
0.4258820117,
0.1772141606,
0.0965600163,
-0.1111031398,
-0.0380102023,
-0.4137009978,
0.2449442148,
0.439244628,
-0.1091398969,
-0.1369021386,
0.0600058436,
-0.2991525531,
0.3612940311,
-0.0526054986,
0.2648938596,
-0.2576389909,
-0.2502009869,
-0.1833877414,
-0.0939576998,
-0.0225652941,
0.1579709351,
-0.1462633461,
0.1357739419,
-0.4803954363,
-0.5864162445,
0.5395391583,
-0.1078486964,
-0.1672338396,
-0.2472513169,
0.6490894556,
0.0394794717,
-0.2027115822,
-0.5274104476,
0.1477643847,
0.511292994,
-0.0624122024,
0.0429567397,
0.3808646798,
-0.1212852076,
0.1125439778,
-0.0627648085,
0.1469633728,
0.0151249366,
-0.3714042306,
0.0176378489,
-0.3359435201
] |
https://github.com/huggingface/datasets/issues/2842 | always requiring the username in the dataset name when there is one | This has been fixed now, and we'll do a new release of the library today.
Now the stas/openwebtext-10k dataset is cached at `.cache/huggingface/datasets/stas___openwebtext10k` and openwebtext-10k would be at `.cache/huggingface/datasets/openwebtext10k`. Since they are different, the cache won't fall back on loading the wrong one anymore.
Same for the python script used to generate the dataset: stas/openwebtext-10k is cached at `.cache/huggingface/modules/datasets_modules/datasets/stas___openwebtext10k` and openwebtext-10k would be at `.cache/huggingface/modules/datasets_modules/datasets/openwebtext10k` | Me and now another person have been bitten by the `datasets`'s non-strictness on requiring a dataset creator's username when it's due.
So both of us started with `stas/openwebtext-10k`, somewhere along the lines lost `stas/` and continued using `openwebtext-10k` and it all was good until we published the software and things broke, since there is no `openwebtext-10k`
So this feature request is asking to tighten the checking and not allow dataset loading if it was downloaded with the user prefix, but then attempted to be used w/o it.
The same in code:
```
# first run
python -c "from datasets import load_dataset; load_dataset('stas/openwebtext-10k')"
# now run immediately
python -c "from datasets import load_dataset; load_dataset('openwebtext-10k')"
# the second command should fail, but it doesn't fail now.
```
Please let me know if I explained myself clearly.
Thank you! | 65 | always requiring the username in the dataset name when there is one
Me and now another person have been bitten by the `datasets`'s non-strictness on requiring a dataset creator's username when it's due.
So both of us started with `stas/openwebtext-10k`, somewhere along the lines lost `stas/` and continued using `openwebtext-10k` and it all was good until we published the software and things broke, since there is no `openwebtext-10k`
So this feature request is asking to tighten the checking and not allow dataset loading if it was downloaded with the user prefix, but then attempted to be used w/o it.
The same in code:
```
# first run
python -c "from datasets import load_dataset; load_dataset('stas/openwebtext-10k')"
# now run immediately
python -c "from datasets import load_dataset; load_dataset('openwebtext-10k')"
# the second command should fail, but it doesn't fail now.
```
Please let me know if I explained myself clearly.
Thank you!
This has been fixed now, and we'll do a new release of the library today.
Now the stas/openwebtext-10k dataset is cached at `.cache/huggingface/datasets/stas___openwebtext10k` and openwebtext-10k would be at `.cache/huggingface/datasets/openwebtext10k`. Since they are different, the cache won't fall back on loading the wrong one anymore.
Same for the python script used to generate the dataset: stas/openwebtext-10k is cached at `.cache/huggingface/modules/datasets_modules/datasets/stas___openwebtext10k` and openwebtext-10k would be at `.cache/huggingface/modules/datasets_modules/datasets/openwebtext10k` | [
0.0375942104,
0.0824941769,
-0.0623897277,
0.1891893297,
0.0797620192,
-0.1698654294,
0.3240479231,
0.1753910184,
0.098809801,
0.2571045458,
-0.0334546044,
-0.0057137166,
0.0868410617,
0.0152155412,
-0.0175971426,
0.1378325522,
-0.0254064966,
0.3296597302,
-0.1355325878,
0.0548911802,
-0.1549163014,
0.1709534079,
0.1209010258,
-0.0124111557,
0.0778685138,
0.1203937307,
0.303109169,
0.2197104245,
-0.1996744126,
-0.4276252091,
0.4127323031,
0.3344066739,
-0.1120955423,
0.4064264596,
-0.0001154477,
-0.0118402876,
0.2260466069,
-0.0157720633,
-0.4490819871,
-0.3961158097,
-0.3092709482,
-0.2415910214,
0.14810054,
-0.2513085008,
-0.0750788599,
0.0519999713,
0.1243216172,
-0.8216953278,
0.4474803507,
0.0437122397,
0.1597145796,
0.3984532356,
-0.0662297532,
-0.0339965783,
0.1953966022,
-0.0242583416,
-0.2378287315,
-0.0330576971,
0.2683282495,
0.2136080116,
0.2348718643,
0.3823941946,
-0.1320448518,
0.1214567274,
0.5294761062,
-0.1905005425,
-0.0765320286,
-0.0523219742,
0.0627269372,
0.4552726448,
0.9934235215,
0.098838158,
-0.4571219981,
-0.2672225237,
-0.1201254204,
0.161816597,
0.5167447329,
0.0830884799,
-0.15589872,
0.1172696277,
-0.200396806,
-0.1372403353,
0.020560544,
-0.1234010085,
-0.1353400201,
0.216856584,
-0.1075388342,
0.1391433179,
-0.0142686879,
-0.2034431845,
-0.036240492,
0.0745289028,
-0.1067775786,
0.0448124371,
-0.3880922496,
-0.1176808849,
0.1456662118,
-0.2159736454,
0.0906696543,
0.4436988533,
0.3169752955,
0.0655230731,
-0.3572783768,
-0.0557984523,
0.1364843994,
0.3374383748,
0.5676668882,
-0.2773848176,
0.4061650634,
-0.1175323129,
0.1740214974,
-0.1573355198,
0.0191521477,
-0.1939196438,
-0.0007184228,
-0.1182997748,
0.4845433533,
-0.3503370881,
-0.1724872887,
0.014744279,
0.0866392255,
-0.1949364841,
0.0858672634,
0.1353603899,
-0.2128484398,
0.1548175514,
0.1387089491,
-0.1193472892,
0.0730493143,
0.0121807596,
-0.2253027856,
-0.287425369,
-0.1149149165,
0.1724597067,
0.2542385459,
-0.5877203345,
0.4259344041,
-0.0012003067,
-0.0699643567,
0.0266107526,
0.178361699,
0.1688964963,
0.1100478396,
0.2089372128,
-0.0693489611,
0.1823324263,
-0.0105853602,
-0.1790511459,
-0.3426875472,
0.156102255,
-0.3777933717,
-0.2844822705,
-0.2765375078,
0.1333822608,
-0.3095302284,
0.0167091526,
0.0032431928,
-0.212359637,
0.1110161915,
-0.0681817085,
0.1985925436,
0.2615761757,
-0.2429311574,
-0.1313874722,
-0.0422851183,
0.48073107,
-0.0208386686,
-0.2878076434,
-0.0464028679,
0.0286550559,
-0.19115749,
0.1400122046,
-0.3698643446,
-0.1404032111,
-0.2386258543,
-0.005867484,
0.2615372837,
-0.5422504544,
-0.1753259301,
0.2094222456,
-0.1829867512,
0.2288484275,
0.5161498189,
-0.1081251204,
-0.1796391606,
-0.3369976282,
-0.3160735071,
0.1745829433,
0.1238080189,
0.0089166733,
-0.0150060877,
-0.2921797335,
0.1959773451,
-0.1530795097,
-0.1326319426,
0.119127728,
0.0649603307,
0.115580909,
0.2017227262,
-0.1567177474,
-0.0798915997,
0.0918692201,
0.115823999,
0.1057759896,
-0.0553291924,
-0.0761153325,
-0.3990007043,
0.3699049652,
0.0047430927,
0.151059866,
-0.0381603427,
-0.3035135269,
-0.2081749588,
-0.1519042253,
-0.1030914187,
0.1407391578,
-0.0399605818,
0.2882579863,
-0.0206609387,
-0.0848371238,
-0.1380138248,
0.6630225182,
-0.0821956322,
0.1411767006,
-0.6052953601,
-0.1928301454,
0.1094566658,
0.2213483751,
-0.0821275264,
-0.0498439856,
0.2705251575,
-0.083634451,
-0.0362479724,
0.4826485813,
-0.0253502894,
-0.0777286813,
-0.1643599421,
0.3060419858,
0.1677653641,
-0.0649727955,
0.1342427731,
-0.0101499194,
0.1675352007,
-0.1151786074,
0.1162601784,
0.2596085668,
-0.1182160303,
0.0340587124,
0.1283718944,
-0.2436630726,
-0.002031653,
-0.1679557115,
-0.3611087799,
-0.1741488427,
0.1734527349,
-0.0966655686,
0.2100709975,
0.0032941122,
-0.1879742146,
-0.1772353947,
0.3280989528,
0.0652872398,
0.0247031394,
-0.0490053371,
0.109944731,
-0.1526256651,
0.1590573341,
-0.0789736584,
0.3677210808,
0.2072459161,
0.1408206075,
-0.2069215626,
0.2591050267,
-0.2363043129,
0.3576539159,
0.0444861725,
-0.3380257785,
-0.185003832,
-0.1805044413,
0.0743289068,
-0.2229163051,
0.0631991103,
0.1214973107,
-0.1802817881,
-0.5152891278,
-0.1083763912,
-0.2212190628,
-0.1857562959,
-0.081760779,
-0.3339970112,
-0.4126358032,
0.0231368858,
0.019387586,
0.3944684565,
0.0120268026,
0.2852743864,
-0.2492610514,
0.3125059903,
-0.381331861,
-0.2637669444,
-0.288705796,
0.1078856513,
0.0179942232,
0.0776808038,
0.3039680421,
-0.1619674712,
0.396086365,
-0.194927007,
0.0832809508,
-0.4336530566,
-0.3930889964,
-0.0385031141,
-0.1903372258,
0.101498425,
0.1863470376,
0.0943361893,
0.2056382149,
-0.3380203843,
-0.063930437,
-0.3201241195,
-0.2125253081,
0.0137128001,
0.0797388554,
-0.0470287725,
-0.1253706366,
-0.1166009381,
0.1017374471,
-0.1972436905,
0.1969528496,
-0.0309530776,
0.2142856866,
0.6474475861,
-0.116527997,
-0.0800773203,
-0.0099894805,
0.3416547775,
-0.3617215157,
-0.6655091047,
0.1575686038,
-0.2076195627,
-0.125755921,
0.1225624382,
0.2855863571,
0.1571498513,
0.0301426277,
-0.3921298981,
-0.1861689985,
-0.2656192482,
0.3884158134,
-0.1062542424,
0.2340856791,
0.4980401695,
0.2453361154,
-0.1455230117,
-0.1408033967,
-0.2526673675,
0.0589342937,
-0.1568567604,
0.2337857634,
0.1340130568,
-0.2185343355,
-0.1535796225,
0.568724215,
0.003513135,
0.1735146642,
0.5066501498,
0.382183224,
0.5903388858,
-0.1286031753,
-0.3580378592,
-0.2254738659,
0.0221445151,
0.3743363619,
0.2996938527,
0.1281871796,
0.1853446662,
-0.4639600217,
-0.1044513732,
-0.0827130377,
-0.2020707428,
-0.1489918977,
-0.2809024155,
-0.0008907401,
0.1960293204,
0.0313750952,
-0.304800421,
-0.1998963207,
0.083217293,
0.4045261443,
0.2571619153,
0.0192416999,
-0.6042609215,
0.3694030046,
-0.2164796591,
0.3718638122,
-0.013805354,
0.3274328113,
0.0930106714,
-0.0193045381,
0.0975618213,
0.1203463674,
0.4720259309,
-0.0611376874,
0.2522945702,
-0.0818610117,
0.138487637,
-0.1053481922,
0.0684546009,
0.3307786584,
-0.206562236,
-0.0965375155,
0.2019213438,
-0.3403868079,
-0.3871991932,
0.0353756621,
-0.2511302233,
-0.023272723,
-0.1794601828,
-0.3587290645,
-0.3669802845,
0.0501554199,
-0.2397029549,
0.0100813322,
0.1763562411,
0.1453340948,
0.2328111976,
-0.3783440292,
-0.045218993,
0.4608381987,
-0.043159768,
0.0294681247,
0.1688480228,
0.4329687357,
0.2229732722,
0.2578117251,
0.1232030839,
0.6902140379,
-0.3799012303,
-0.2993149757,
-0.1746029407,
0.1358400285,
0.0368612297,
0.649338007,
-0.1888145208,
0.213706091,
0.137954548,
-0.0061396551,
-0.2106251419,
0.2511587739,
-0.0190645531,
0.0193855166,
-0.4217121303,
-0.5778645277,
0.3938578367,
0.2108415067,
-0.2257905304,
0.5470201969,
0.3135404587,
-0.3387534916,
0.0889736414,
-0.0468117446,
1.2388340235,
0.016328821,
0.0771612301,
-0.0199462958,
-0.2677622139,
0.5656478405,
-0.0664092004,
-0.0142715629,
-0.172946319,
-0.5222335458,
-0.1924114376,
-0.1138163731,
0.4363431931,
-0.0131625412,
-0.0132223489,
0.1994112879,
0.0107522765,
0.3052436113,
0.0815842599,
0.7367773652,
-0.301106751,
-0.0736901537,
0.0378386863,
0.1291226447,
-0.1020067707,
0.2826671004,
-0.0972259343,
-0.0338010713,
-0.0251386147,
-0.5485137701,
-0.1367524564,
-0.0330753438,
-0.466807127,
0.0232196227,
-0.1277996749,
-0.2003282756,
0.4155777693,
0.0785656795,
0.3750987053,
0.3128165603,
-0.3351123333,
0.2381616831,
0.0603833497,
0.058812201,
-0.1089885682,
0.1242657155,
0.4058058858,
-0.0652424917,
0.0135872988,
-0.0629628524,
-0.1720624864,
-0.288970232,
-0.0644608513,
0.0699412152,
0.1186043769,
-0.5196076035,
0.2204049677,
0.0717738196,
0.2882829905,
-0.0889219716,
0.0679207593,
0.1386808306,
-0.1167761907,
0.0512230098,
-0.2320765853,
-0.3293874562,
-0.0209071413,
0.4009484351,
0.1076424718,
-0.1595044285,
0.3880503774,
-0.4340125322,
-0.0329417288,
-0.0654732361,
-0.0640003234,
0.1287866682,
-0.4051831663,
0.1565108597,
0.3117781878,
-0.2265684903,
-0.0853955522,
0.3813581467,
0.2564640045,
0.2329341322,
0.2454099208,
-0.1005745083,
0.0289220717,
-0.0677699521,
-0.1430681348,
0.433873564,
-0.0481296405,
-0.0975869671,
-0.2586191297,
0.1901754737,
-0.2987811565,
-0.0335820168,
0.1710741073,
0.0450388677,
0.144828856,
-0.0367548019,
0.2540446818,
-0.2903525233,
0.0154343694,
-0.0245531239,
-0.3786195815,
-0.1721095592,
-0.3196015358,
0.2486973256,
-0.0564899668,
-0.2714598179,
0.0852858499,
-0.2344001532,
-0.0035036905,
-0.0506018922,
0.1915109009,
0.4054774344,
-0.0067029973,
0.0161163677,
0.2917432487,
0.1746877581,
-0.2373541445,
0.4479267299,
-0.0457935259,
0.2006777823,
-0.1443977952,
0.2293419391,
-0.3494457603,
-0.0278946813,
0.0825887024,
0.2341728806,
0.2164727896,
0.0269397758,
-0.1645635962,
-0.021689631,
-0.3467200398,
0.0804694071,
0.1427132189,
0.3857463896,
0.039910689,
-0.287404716,
0.3522165716,
0.1386258006,
-0.1023073047,
-0.1398070008,
-0.0468477234,
0.0778226256,
0.0672613606,
0.3852829337,
0.3311643302,
-0.0733811259,
0.1795559525,
-0.0836087614,
0.4653944373,
0.2341693938,
0.4407981336,
0.3080012202,
-0.0987875164,
-0.2075238228,
0.4702506363,
0.1369268298,
-0.0974522978,
-0.0893144757,
-0.2041942328,
0.3098369837,
0.0219551027,
0.135699749,
-0.20470272,
-0.2332289368,
0.2869607806,
0.1488620937,
-0.194509536,
0.2554758787,
0.0855105817,
0.2184388787,
-0.3042811155,
0.0191938244,
-0.1470172703,
0.1419563144,
-0.0057353857,
-0.1950592697,
-0.1407137662,
-0.1820848584,
-0.1036005765,
-0.1234484091,
-0.0729613379,
-0.3004342318,
0.1659816951,
-0.0180686377,
-0.1482138932,
-0.1851491332,
-0.3383544087,
0.016400978,
0.1543880552,
-0.3255306482,
0.166224882,
0.1857953072,
-0.1868490577,
0.4123511314,
0.5917930603,
0.2993410826,
0.0897285789,
0.2424342334,
-0.0831902325,
0.0307823867,
0.0764903724,
-0.1196653396,
0.4156256914,
-0.1216422245,
-0.0076002446,
0.2008493394,
0.0823209733,
-0.0741610974,
0.0233541653,
-0.2512153089,
-0.1536502838,
-0.4870773256,
0.4586260617,
-0.1819570214,
-0.1310734749,
-0.061177358,
0.265355885,
0.0030750181,
0.2670947015,
0.3763790131,
0.2236743867,
0.0580911227,
-0.2378465086,
0.0465056673,
0.1088852137,
0.3620971441,
0.2507190704,
-0.0619883537,
-0.2111229002,
-0.10619656,
-0.6141033769,
0.1564970016,
0.1048026457,
0.0487387888,
0.0484843589,
-0.1550867409,
0.2004414201,
0.017742224,
0.0190018322,
0.008714648,
-0.0612780824,
0.042282667,
-0.2962668836,
0.1129640192,
0.2666768134,
-0.0428692847,
0.1628569961,
-0.5402302742,
0.139269188,
-0.0813289434,
-0.0794391111,
-0.1932583898,
0.1207668111,
0.497923106,
-0.1378844827,
0.5424543619,
0.1651067287,
0.3140363991,
0.1449632049,
-0.1303945631,
-0.1333730817,
-0.0609663278,
-0.4501048923,
0.1740877032,
0.38673684,
0.1227163076,
-0.2783446014,
-0.0296458248,
-0.3567100167,
0.5594135523,
-0.048531428,
0.3003309071,
-0.2610328496,
-0.1614304185,
-0.1819900274,
-0.1291442215,
0.1855823994,
0.2608364224,
-0.1570524126,
0.2336367518,
-0.5118052363,
-0.5871173143,
0.6730943918,
-0.2000772655,
-0.0872072726,
-0.1280966848,
0.5462309122,
0.0540092476,
-0.2957036197,
-0.7160848975,
0.1607746035,
0.4070526063,
0.0497568026,
-0.005262814,
0.2497581691,
-0.1671786159,
0.1284652501,
-0.1094091386,
0.2275583148,
0.1571226865,
-0.2937223017,
0.0944016576,
-0.2510557771
] |
https://github.com/huggingface/datasets/issues/2841 | Adding GLUECoS Hinglish and Spanglish code-switching bemchmark | Hi @yjernite I am interested in adding this dataset.
In the repo they have also added a code mixed MT task from English to Hinglish [here](https://github.com/microsoft/GLUECoS#code-mixed-machine-translation-task). I think this could be a good dataset addition in itself and then I can add the rest of the GLUECoS tasks as one dataset. What do you think? | ## Adding a Dataset
- **Name:** GLUECoS
- **Description:** a Microsoft Benchmark to evaluate code-switching for only two language pairs but a variety of tasks
- **Paper:** https://aclanthology.org/2020.acl-main.329/
- **Data:** https://github.com/microsoft/GLUECoS
- **Motivation:** We currently only have [one other](https://huggingface.co/datasets/lince) dataset for code-switching
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 55 | Adding GLUECoS Hinglish and Spanglish code-switching bemchmark
## Adding a Dataset
- **Name:** GLUECoS
- **Description:** a Microsoft Benchmark to evaluate code-switching for only two language pairs but a variety of tasks
- **Paper:** https://aclanthology.org/2020.acl-main.329/
- **Data:** https://github.com/microsoft/GLUECoS
- **Motivation:** We currently only have [one other](https://huggingface.co/datasets/lince) dataset for code-switching
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Hi @yjernite I am interested in adding this dataset.
In the repo they have also added a code mixed MT task from English to Hinglish [here](https://github.com/microsoft/GLUECoS#code-mixed-machine-translation-task). I think this could be a good dataset addition in itself and then I can add the rest of the GLUECoS tasks as one dataset. What do you think? | [
-0.4562040567,
-0.0375739373,
-0.1403834522,
0.0984708145,
-0.0866129771,
0.1747598946,
0.103435643,
0.1597848237,
0.1243996322,
-0.1275312901,
-0.3663086295,
0.0582287125,
-0.1664722115,
0.4522483349,
0.4579001665,
-0.0750973746,
0.1682833284,
-0.1863520741,
-0.2975812554,
-0.0285654925,
-0.2414674014,
0.2591426671,
-0.0748848543,
-0.2490669787,
0.1195181161,
-0.0600320175,
-0.2158003449,
0.0281796213,
-0.2166918367,
-0.3669120669,
0.2070243955,
0.2018546164,
-0.0001946962,
0.3099784255,
-0.0001212761,
-0.045413021,
0.2508904934,
-0.0865599215,
-0.1637156457,
0.0253810119,
-0.2250320017,
-0.4286171198,
-0.3869865239,
0.0224465411,
-0.100706242,
0.3653925657,
-0.2201341987,
-0.9435045719,
0.2026267201,
0.2867707312,
0.0809130594,
0.2432605475,
-0.1424292922,
-0.0372650698,
0.7352901101,
-0.1337577999,
-0.220291391,
0.2272411138,
0.6726604104,
-0.217097342,
0.0930986404,
0.381547004,
-0.1620410979,
-0.3303691149,
-0.2662054002,
-0.043548286,
-0.0405464917,
-0.1095845625,
0.0432636254,
0.3855703473,
0.1063567027,
-0.2388775349,
-0.2566066384,
-0.4398987889,
0.0243869815,
-0.0287990551,
-0.2456246912,
0.1916798949,
0.0747111216,
0.352411449,
0.1448380351,
-0.37257424,
0.2412810922,
0.0874842703,
0.2643490434,
-0.0556115769,
-0.2258851379,
0.0737464428,
0.1882338524,
0.120918788,
0.2201786041,
-0.2032584101,
-0.1668460369,
0.2319618464,
-0.3762145042,
-0.1901731342,
0.2024732977,
0.1758107841,
0.1956191808,
-0.151749745,
0.076729089,
0.0106663033,
-0.0645360202,
-0.2784256935,
0.0454486273,
-0.0186139178,
0.3070379198,
0.076661922,
0.1068389714,
-0.2859810889,
0.46552068,
0.1304588616,
0.0806111023,
-0.086333476,
-0.3141006529,
-0.0095945895,
0.1537838876,
-0.1434821188,
-0.3626544774,
-0.0277234726,
-0.2088482976,
-0.3821387291,
0.1138348877,
0.2250817418,
0.3041007817,
-0.2810276151,
-0.1514191031,
0.6095604897,
0.0756696463,
-0.1866672486,
-0.0463030338,
0.3217450678,
-0.2017744929,
0.2090618014,
0.1378412694,
0.004937862,
-0.1987731606,
0.194509685,
-0.1816969216,
0.1418227702,
0.1004329622,
-0.0555510558,
-0.0043899668,
-0.1610300392,
-0.0925385505,
0.0321344584,
-0.0459240861,
-0.1850142479,
-0.3455573916,
-0.2124434561,
0.1162324101,
-0.0959634855,
-0.0822606087,
0.0319887102,
-0.2499198616,
-0.1897387654,
-0.2471119165,
0.6594050527,
0.1014629677,
0.1009023413,
0.2697682977,
0.1177110374,
-0.1489271969,
-0.1702115238,
-0.2519377768,
0.6982990503,
-0.1051398218,
-0.1983123869,
0.2227163762,
-0.026396919,
0.0097538857,
-0.0311248284,
-0.1665100306,
0.0859860554,
-0.124431476,
0.0410049558,
0.2208699584,
-0.6630023718,
-0.0372320637,
0.5112777352,
-0.067246899,
0.0222846996,
0.3917960525,
0.2232131064,
0.1814111322,
-0.1477973312,
0.1134216264,
0.2170040011,
-0.069766134,
-0.1420493871,
-0.1766978949,
-0.2959162593,
0.2276780307,
0.3646275997,
0.1544318199,
-0.1501965821,
0.2467036545,
0.1386539936,
0.0468995608,
-0.132618919,
0.3884866238,
-0.0526058488,
0.06491974,
-0.1179862767,
-0.1198045239,
-0.1624260396,
-0.3035243452,
-0.0673431531,
0.1742853373,
0.3465015292,
0.171958372,
-0.2279567271,
-0.0264772717,
-0.1765336692,
-0.217431888,
-0.2586341202,
0.0319892354,
-0.1133362055,
0.1491024196,
-0.1919872314,
-0.2116898894,
0.7850536108,
-0.0857681483,
-0.0610075109,
0.0560464598,
0.4692819715,
0.1327565014,
0.078538917,
0.112937957,
0.5679248571,
0.0094595654,
-0.3007209599,
0.1097044572,
0.1424514055,
-0.0804617554,
0.0245189574,
0.6064789295,
0.1087973565,
0.3084996641,
-0.2306317538,
0.442274332,
-0.2406691462,
0.0576791167,
-0.3362898529,
0.0147127379,
0.2891782522,
-0.1666903943,
0.2974422872,
-0.073628813,
-0.0333829597,
0.039903447,
-0.1557313502,
-0.5101320744,
-0.1167820096,
0.4150746763,
-0.212047264,
0.5949841738,
-0.1531040817,
-0.254714787,
0.1771591902,
0.4270576835,
-0.1385543346,
0.0630074143,
-0.1863426566,
-0.0634291247,
0.0967809036,
-0.1388384551,
0.3731572628,
0.5468967557,
0.233633846,
0.1551202238,
0.1052154154,
0.1446069628,
-0.1012262776,
0.1400056928,
-0.1023547053,
0.0240267944,
-0.0150076682,
0.0018942564,
-0.0823107213,
-0.2932805121,
-0.0677898973,
0.0624600686,
0.0017764214,
-0.1852775961,
-0.0936836526,
0.0828697905,
-0.2058596462,
-0.3967959583,
-0.011965856,
-0.1377776414,
-0.1254188716,
0.1600347906,
-0.2357909381,
0.1440870464,
0.0406979211,
0.171437487,
0.3780545294,
-0.5666151047,
-0.2546243966,
0.1896487474,
-0.2795822024,
-0.069391869,
0.0511926189,
0.4177332819,
-0.1247263849,
0.2618255615,
-0.4135525823,
0.0773485228,
-0.2194328457,
-0.3052050769,
0.2013589591,
-0.2877221107,
0.2322923243,
0.157030195,
-0.2804118395,
0.1059050858,
-0.0931600258,
-0.0331333652,
0.0732638761,
-0.2135930061,
-0.3110410869,
-0.1847258955,
-0.090120405,
-0.0302940793,
-0.1354500055,
-0.4298543632,
-0.3466404676,
0.0700610504,
-0.2995126843,
-0.3958468437,
-0.5084580183,
-0.2140940726,
0.1673550308,
-0.1113383994,
-0.1393936872,
-0.3711218238,
-0.5005774498,
0.0580939129,
-0.064459838,
-0.1387187093,
-0.2087156028,
-0.0592254847,
0.4133212566,
-0.050431598,
-0.2962014973,
0.1412036419,
-0.1058874056,
0.32016325,
0.1048128977,
0.2532626688,
0.2049773037,
0.1003270596,
0.1067044064,
-0.185974136,
-0.3719955683,
0.0748687461,
0.1357494444,
0.047928337,
-0.0209080316,
0.0205910821,
-0.0066341073,
0.5636229515,
0.4314821362,
0.2065221816,
0.4313119948,
-0.0233345684,
0.3596459925,
0.0776878372,
-0.4756765664,
0.1389198899,
-0.0006356064,
0.1414474994,
-0.0357366987,
0.2217213511,
-0.2525171936,
-0.1741651744,
-0.1245293245,
-0.329477936,
-0.0136147775,
0.3314718008,
-0.0739215836,
0.2256985903,
-0.0049061161,
-0.1125639826,
-0.2292280048,
-0.154411152,
0.1384095103,
0.2099098265,
-0.0825944245,
0.2117582709,
-0.4877121747,
-0.298256129,
-0.2571344972,
0.2665996552,
0.1710500419,
0.0120417057,
-0.1136472672,
-0.0077272011,
-0.0807075351,
0.0097354194,
0.6598513126,
-0.4428418577,
-0.2318448424,
0.2697362602,
-0.0126997,
0.0233624857,
-0.1595097929,
-0.1288718879,
0.099374786,
0.3072508276,
0.1673400551,
-0.4546341896,
0.043110121,
0.5344935656,
0.0893018618,
0.0649594665,
-0.152718693,
-0.0251691248,
-0.2321620584,
-0.2702474892,
0.1191961244,
0.1700003594,
0.1451487839,
0.1343011409,
0.0657488182,
0.1373813003,
-0.1485401988,
0.3126942515,
0.171905756,
-0.1651584059,
0.4464151263,
0.3257104754,
-0.1137004048,
-0.3509767354,
0.2168025821,
0.4840684831,
-0.0896350443,
0.0390697159,
-0.0347341821,
-0.4376957417,
0.6187108159,
0.3836128712,
0.1710418463,
0.1882719249,
0.022490453,
-0.2530770302,
-0.2913917899,
0.0408909284,
0.0405227542,
0.5102066398,
-0.5562911034,
-0.3827636242,
0.351298362,
0.1303676665,
-0.1110401079,
0.0395725965,
0.1446751505,
-0.2978687584,
0.2069578022,
-0.1510890871,
0.9932774901,
-0.1224560291,
0.1061823666,
-0.0247731209,
-0.4603616297,
0.3457047641,
-0.4727455974,
-0.1515543759,
0.1511346996,
0.1714466214,
-0.0276685543,
-0.1605021954,
0.3199391663,
-0.1183873191,
-0.2226795256,
0.1120508686,
0.2148304433,
0.2501268387,
-0.1467628926,
0.3829248548,
-0.1208311915,
-0.2364889383,
-0.0609813705,
0.0481070317,
-0.0838750154,
0.218293488,
-0.0394820869,
-0.2765104473,
-0.1470919997,
-0.0026077633,
-0.5780723691,
-0.0642358959,
0.0302039534,
-0.154901281,
-0.2684604228,
-0.2580274045,
0.5631974339,
-0.4219700098,
0.6301217675,
-0.1266946197,
-0.0150239831,
0.096851334,
0.2764525115,
0.1523579061,
0.0705296472,
-0.2304154932,
0.0741043016,
-0.1284919083,
-0.155289039,
0.3054185808,
0.1163397133,
-0.111065194,
-0.2907601595,
0.1868167967,
0.1215643585,
-0.2164024562,
0.0679058805,
1.0327315331,
0.3144791424,
-0.2320445776,
0.0386839099,
0.2378622741,
-0.2451846749,
0.178941533,
-0.1413673162,
-0.2871590555,
-0.2996227145,
-0.0955325365,
0.2600487471,
-0.2008307874,
0.0584591329,
0.1042373255,
-0.1072251722,
-0.1731859297,
0.0634055808,
0.3410968781,
-0.2138187289,
-0.1208321005,
-0.0613168813,
-0.2297551483,
-0.1057390049,
-0.0092999917,
0.2797726393,
0.17903395,
-0.0551474132,
-0.0663434416,
0.1410840452,
0.1245626286,
0.0581785291,
0.1630256623,
-0.1263824552,
0.5805552602,
-0.0675765127,
0.115970403,
-0.2379939556,
0.0929985121,
0.0159138869,
0.0895579979,
0.5140351653,
0.0268250536,
-0.0748301223,
-0.27048859,
-0.0421260223,
-0.2241631746,
-0.2862922549,
-0.086070098,
-0.0294723809,
0.1957524568,
-0.1625795811,
0.1351863146,
0.1968007237,
-0.133732751,
0.1343105137,
-0.0563652031,
-0.0140313664,
-0.1107520312,
-0.1155039519,
0.1011488885,
-0.169174552,
-0.1635793746,
0.0678326115,
0.3414418399,
0.0151544046,
-0.0149115669,
-0.0325458981,
0.467877537,
0.4466611445,
0.0129175112,
0.3966613412,
0.179438889,
0.0049358401,
0.3553024232,
-0.1214907616,
-0.0709646344,
0.0404344201,
0.2762136459,
-0.0985455588,
0.2684028149,
-0.0275138002,
0.167583555,
-0.0084347762,
0.0695452839,
-0.2193837166,
0.051351808,
0.2381967157,
-0.1598773152,
0.4563930333,
0.4624572694,
0.4498454034,
0.4713782072,
0.1935987622,
-0.0328040831,
0.4343875647,
0.035688661,
0.1977398396,
0.1725624502,
0.1231416985,
0.2103593647,
0.2968389988,
0.0202165656,
-0.1928158253,
0.2715275288,
-0.1373417825,
0.5085749626,
0.5603353381,
0.3435887992,
0.0324592963,
0.0892139971,
0.2045990378,
0.1330711544,
-0.1815516353,
0.1285166889,
0.2899543941,
0.395105809,
0.0222462453,
-0.1474353671,
0.1239826977,
0.1484283507,
-0.0789423659,
-0.0900598839,
0.0170806814,
-0.1584604532,
-0.3299765587,
0.103571184,
-0.074577257,
-0.1650414765,
0.629145503,
-0.206538409,
0.3052582741,
-0.0593336634,
-0.0556616746,
-0.0301028118,
0.0244888756,
-0.1975678504,
0.1480131298,
-0.0074719973,
-0.1175470576,
0.1241343468,
0.4412284195,
0.2663384378,
-0.0092921117,
-0.2005688548,
0.1976485997,
-0.0191067941,
0.0230721924,
-0.2393618375,
0.1223818585,
0.0284582824,
0.0576584116,
0.1265086085,
0.0849662572,
-0.0025587755,
-0.1427795142,
-0.07181786,
-0.5664823651,
-0.2418842018,
-0.1281182766,
-0.2470083982,
0.089387551,
-0.3532169163,
0.210587725,
-0.2348162234,
0.1129927859,
0.527494669,
-0.2953110933,
-0.0378942713,
-0.1120425537,
0.0273093916,
0.1275475323,
0.2671735287,
0.0315944888,
0.4297011495,
-0.434828043,
-0.2176804692,
-0.4891028702,
-0.2516247332,
-0.2548797131,
-0.0035248157,
-0.3465636969,
0.1753875911,
0.5545945168,
0.4073492289,
0.397636801,
0.0553313643,
-0.0672052577,
-0.1279457659,
-0.244173944,
0.0810791329,
0.3659258485,
0.1829255074,
0.1506286711,
0.1048112437,
0.1118640155,
0.2110537291,
-0.0542562529,
-0.2743021846,
-0.0846506506,
-0.031852711,
-0.5551762581,
0.2235001326,
-0.026935976,
0.3269912302,
-0.0814304277,
0.0114844479,
-0.0365521461,
-0.3381176293,
0.0093737068,
0.2177338153,
0.0200443044,
-0.067718856,
-0.3505982161,
-0.0840411857,
0.13370727,
-0.0505922213,
0.1447226703,
0.3860207796,
-0.1520083696,
0.1570071876,
0.0194321945,
0.0623001195,
-0.2532872558,
0.3708432615,
0.0228408519,
0.1267969459,
0.1134578586,
-0.2349399328,
0.1442972124,
0.0564356148,
-0.1778055131,
-0.0515840724,
0.0088997418,
0.5414056182,
0.0099032782,
-0.5381813645,
-0.060179241,
0.2864616215,
-0.0403037742,
0.0877675042,
0.562153697,
0.0040235934,
-0.2173089683,
-0.0112204216,
-0.438054949,
-0.0599458925,
-0.1621214002,
0.2289135605,
-0.3386108875
] |
https://github.com/huggingface/datasets/issues/2839 | OpenWebText: NonMatchingSplitsSizesError | I just regenerated the verifications metadata and noticed that nothing changed: the data file is fine (the checksum didn't change), and the number of examples is still 8013769. Not sure how you managed to get 7982430 examples.
Can you try to delete your cache ( by default at `~/.cache/huggingface/datasets`) and try again please ?
Also, on which platform are you (linux/macos/windows) ? | ## Describe the bug
When downloading `openwebtext`, I'm getting:
```
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=39769494896, num_examples=8013769, dataset_name='openwebtext'), 'recorded': SplitInfo(name='train', num_bytes=39611023912, num_examples=7982430, dataset_name='openwebtext')}]
```
I suspect that the file we download from has changed since the size doesn't look like to match with documentation
`Downloading: 0%| | 0.00/12.9G [00:00<?, ?B/s]` This suggest the total size is 12.9GB, whereas the one documented mentions `Size of downloaded dataset files: 12283.35 MB`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("openwebtext", download_mode="force_redownload")
```
## Expected results
Loading is successful
## Actual results
Loading throws above error.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.2
- Platform: linux (Redhat version 8.1)
- Python version: 3.8
- PyArrow version: 4.0.1
| 62 | OpenWebText: NonMatchingSplitsSizesError
## Describe the bug
When downloading `openwebtext`, I'm getting:
```
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=39769494896, num_examples=8013769, dataset_name='openwebtext'), 'recorded': SplitInfo(name='train', num_bytes=39611023912, num_examples=7982430, dataset_name='openwebtext')}]
```
I suspect that the file we download from has changed since the size doesn't look like to match with documentation
`Downloading: 0%| | 0.00/12.9G [00:00<?, ?B/s]` This suggest the total size is 12.9GB, whereas the one documented mentions `Size of downloaded dataset files: 12283.35 MB`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("openwebtext", download_mode="force_redownload")
```
## Expected results
Loading is successful
## Actual results
Loading throws above error.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.2
- Platform: linux (Redhat version 8.1)
- Python version: 3.8
- PyArrow version: 4.0.1
I just regenerated the verifications metadata and noticed that nothing changed: the data file is fine (the checksum didn't change), and the number of examples is still 8013769. Not sure how you managed to get 7982430 examples.
Can you try to delete your cache ( by default at `~/.cache/huggingface/datasets`) and try again please ?
Also, on which platform are you (linux/macos/windows) ? | [
-0.232565403,
-0.1025963202,
0.0594485067,
0.4710071385,
0.0991449878,
0.0983287022,
0.0017990913,
0.5494819283,
-0.0201671273,
0.1316695958,
-0.1176460311,
0.0032898202,
-0.1183153838,
0.0913083553,
-0.0851510316,
0.1036114469,
-0.1839792281,
0.1432444751,
-0.2236062586,
0.0837040618,
-0.1660716534,
0.2510772943,
-0.2940526605,
-0.1361760199,
-0.2839494944,
-0.0273159239,
-0.2651297152,
0.2377937734,
-0.2557262778,
-0.4160158634,
0.1758898646,
-0.3987878263,
-0.0372197665,
0.5550353527,
-0.0001198019,
0.053337846,
0.2946437895,
-0.2280975878,
-0.1307502538,
-0.1020404398,
-0.4944342971,
-0.3940512538,
-0.1452363431,
-0.1462633759,
0.1926997155,
-0.1283248365,
0.050888814,
-0.2793250382,
0.4593410194,
0.4411793053,
0.1552281082,
0.3978155851,
0.2411612868,
0.037160784,
0.3650753498,
-0.2219926119,
-0.1318104714,
-0.0362077355,
0.032693211,
0.0405231789,
0.0806395859,
0.117267713,
0.0108480649,
0.2087118924,
-0.0005464204,
-0.0408669934,
0.2286910415,
-0.2362536043,
0.1534998864,
0.4934613109,
0.6223924756,
-0.1369806379,
-0.3544662297,
-0.3586996794,
-0.4166822731,
0.0730490163,
0.2820882797,
0.4564267397,
0.0207831878,
0.2088507712,
-0.3920859098,
0.0627972409,
0.0887396708,
0.1010192633,
-0.2197210938,
0.1737963259,
-0.0613733456,
0.0936695561,
0.0337459333,
0.1205222458,
0.2228567898,
-0.1298710406,
-0.055268161,
0.1303761899,
-0.2470711321,
-0.0399978198,
0.046583984,
-0.1719470769,
0.3725028932,
0.3157573938,
0.3307102919,
-0.225341484,
-0.2792929411,
-0.0260546394,
0.1021309718,
0.4864094853,
-0.0030220579,
0.1811357141,
-0.099426426,
0.1534417868,
0.0841913223,
-0.0383241586,
-0.0627070665,
-0.3573563993,
0.0782193169,
0.0519291535,
0.5506392121,
-0.3137627542,
-0.5638858676,
0.1355628222,
-0.2717957795,
-0.2499682158,
-0.2926042974,
-0.0598702691,
-0.3987959623,
0.2101307511,
0.1625958532,
-0.1578370035,
-0.3149758875,
-0.3888366818,
-0.2744588852,
-0.0227042288,
-0.1876686811,
0.1219245493,
0.0013910769,
-0.1314140707,
0.4226851761,
-0.0792300999,
-0.040535517,
-0.2938419878,
0.1657152623,
0.0118179806,
0.0518368222,
0.1675298661,
-0.2069489807,
0.1224143356,
0.0686969683,
0.0914775059,
-0.2862044275,
0.310595125,
-0.2906440198,
-0.4093710482,
-0.1381833851,
0.1050514653,
-0.3705901504,
-0.1608748436,
0.3073712885,
-0.0599067584,
0.3331331909,
-0.1210963279,
-0.0874516293,
-0.1715032011,
-0.1489334852,
-0.1385395974,
0.1361483932,
0.4009013772,
-0.2815039456,
-0.1870612055,
0.2009665221,
-0.1067373157,
0.2657059133,
0.4419419765,
0.0383119434,
0.1077953354,
-0.2697065175,
0.1994149983,
0.1035527512,
-0.3222498894,
-0.6370261908,
0.3166930377,
-0.0614390485,
0.1890934259,
0.1131791994,
-0.2998301387,
0.0997249484,
-0.113356173,
-0.1074845046,
0.1425455809,
-0.1855406016,
0.0653881729,
-0.6042557955,
-0.7404733896,
0.4050543606,
-0.0152203301,
0.2199624628,
-0.2009824216,
0.025802508,
0.2023738474,
0.4867909849,
-0.006881251,
0.0082403766,
0.183294937,
0.168447718,
0.0200098678,
-0.0262848604,
-0.3034961224,
-0.1270771325,
0.2578173578,
-0.1189629287,
-0.0252108593,
0.2395294756,
-0.1284899414,
-0.5201494694,
-0.279763937,
-0.0274368618,
-0.2890123129,
-0.0011980596,
0.0537338294,
0.331497401,
0.0704436153,
0.1006712019,
0.3630122244,
0.0587039664,
0.1622790247,
-0.3886446059,
0.2116373181,
-0.0419294685,
-0.1590764225,
0.147472173,
-0.0411890782,
0.1578397006,
-0.1788159758,
-0.3645524979,
0.6570304632,
0.1383417249,
0.0278090909,
-0.0206337478,
0.1761492044,
0.2389791608,
-0.2326091975,
0.1361850798,
0.3155081868,
-0.0367025435,
-0.0358332209,
0.0357470922,
-0.0957839265,
0.1101792753,
-0.0270261932,
-0.062957935,
0.0031622048,
-0.0677025542,
-0.2016022652,
-0.099672623,
-0.1194982603,
0.0788500085,
-0.0529222861,
-0.1825650334,
0.0738676265,
0.1595279425,
-0.1473863125,
0.7876147032,
-0.0265091434,
-0.0810911432,
0.2676545382,
-0.2830884159,
-0.1285567135,
-0.1837796122,
0.1333070695,
0.5281814933,
0.2116180658,
0.1979823858,
0.2271814942,
0.059582103,
-0.0967164338,
0.1486258954,
0.2788827419,
0.211977005,
0.301491946,
0.0253643077,
0.0782746449,
-0.188228488,
0.1017746031,
0.1162418872,
0.3736380935,
-0.4455091059,
-0.150647819,
-0.4993299246,
0.0167024154,
-0.2890394926,
0.1519830525,
-0.1953703314,
-0.2340987474,
-0.0569427572,
0.0578246377,
-0.0190756693,
0.2200784534,
-0.1844467223,
0.1744142324,
0.177943632,
0.2221962661,
0.0834516734,
-0.0005310933,
-0.5165872574,
0.0194543172,
0.3351318836,
-0.2498141229,
0.414476037,
-0.5614908338,
-0.0921597481,
-0.2016605586,
-0.2970196009,
-0.089363724,
0.0089838309,
0.1129088774,
0.2927738428,
0.2110989541,
0.0249920543,
-0.0226391964,
0.1041429862,
-0.320573926,
-0.2713530064,
-0.0989820063,
0.0973130539,
0.2661296427,
-0.0641357899,
-0.5627794862,
-0.2163699865,
-0.2757207453,
0.3266997635,
0.1139721349,
0.2029801458,
0.0925925076,
0.0694468394,
0.105040215,
-0.0523551069,
0.1160848439,
-0.2542547882,
-0.5217088461,
0.3188509643,
-0.0026781971,
-0.3333177269,
-0.0070149987,
0.1511378139,
-0.0392284542,
0.025586037,
-0.6288366914,
-0.2420555502,
-0.40204826,
-0.0416231677,
-0.1522633582,
0.2767257392,
0.4846798182,
-0.0308195483,
-0.0632558241,
-0.1522991061,
-0.3440424204,
-0.0237112381,
0.1624839306,
0.6210069656,
-0.1053254232,
0.1852699965,
0.4056093693,
0.4629562199,
0.5385029912,
0.0481483042,
-0.0136957075,
-0.0321361795,
0.1083643213,
-0.1104786322,
-0.0401164182,
0.2920779586,
-0.1999638081,
0.0356372781,
0.297372967,
0.1355916709,
0.1561640352,
-0.0030651209,
-0.0703070164,
-0.4779711664,
-0.2007859647,
-0.0245935712,
-0.111141704,
0.1895925552,
0.1881501973,
0.0732368603,
-0.2434807271,
-0.1945627481,
0.1598560959,
-0.004662334,
-0.143501088,
0.0207650941,
0.0671195164,
0.3567480147,
-0.2626104653,
0.3809085786,
0.1341331452,
0.2630778253,
0.1486925632,
-0.2384482026,
0.1142471656,
0.0053938888,
0.5108355284,
-0.0777722374,
-0.0712624416,
0.0950105712,
0.0725389719,
-0.4039192498,
-0.3115303218,
-0.183671698,
0.0334489308,
0.5596082807,
0.0453808606,
-0.4185117483,
0.0558072925,
0.3097248673,
0.4309919775,
-0.1897708029,
-0.028550867,
-0.1574656069,
-0.402602911,
-0.3548039794,
-0.1288218647,
0.0678974688,
0.2978066504,
-0.091834642,
-0.0646308139,
-0.1403726935,
-0.1978237182,
0.1965386719,
-0.1222219616,
0.2837558091,
-0.0024830059,
0.3147862256,
0.2665967345,
0.3522553444,
0.2715786397,
0.5941634178,
0.0000015366,
-0.2287433594,
-0.0506264232,
-0.061360199,
-0.2377574742,
0.332465589,
0.071513921,
-0.3414061368,
0.0568001829,
0.2474226803,
-0.1786894053,
0.3185909986,
0.425650984,
-0.0635498315,
-0.4400916994,
-0.3524298668,
0.3958844543,
0.2119293064,
-0.0502381027,
0.5040240288,
-0.0495398492,
-0.1787899733,
-0.0557671376,
-0.0423584767,
1.1023483276,
0.1564748287,
-0.1077497154,
0.2527412176,
-0.4704374671,
0.2593772113,
-0.2291091233,
0.134112075,
-0.2876501977,
-0.5424715877,
0.0213857107,
-0.2812007368,
0.2467849255,
-0.0431679673,
-0.2238030285,
0.167055428,
-0.0107189026,
0.0595707521,
0.1506899595,
0.3264893591,
-0.2793125808,
0.1247564033,
0.1668468714,
0.0791604444,
-0.1236405671,
0.4728930295,
-0.0779323354,
-0.1369110942,
-0.1266555041,
-0.1621515304,
-0.6035353541,
0.0548578016,
-0.3796157539,
0.2448878586,
0.0042173988,
0.0506312475,
0.032543499,
0.0662538931,
0.2591129243,
0.0856589228,
-0.3663955629,
0.2365214378,
-0.0726004094,
0.1324081123,
0.2462103665,
0.0113540851,
0.1980233341,
-0.1248902529,
-0.2756636739,
0.0476574674,
-0.1618166715,
-0.1035706922,
0.0045223096,
-0.1750110388,
0.3070129156,
-0.623824656,
-0.0981967226,
-0.0558683798,
0.1288656294,
-0.2135448456,
0.0828684941,
0.1996138245,
-0.1079260856,
0.4750546217,
0.0140788397,
-0.4118832946,
-0.1699380577,
0.4765074551,
0.0673940927,
0.0415945947,
0.4440052807,
-0.0966852158,
-0.030206088,
-0.0609109104,
0.4412086308,
-0.0831034556,
-0.4742699265,
0.2274125069,
-0.330191195,
0.344699949,
0.0210017376,
0.3565437198,
0.5420544744,
0.4391900897,
-0.013571634,
-0.2046359479,
0.0158999562,
0.0229217317,
0.0501286685,
0.4237333834,
-0.092348434,
0.4085063636,
0.0041388916,
-0.0276931133,
-0.2374142855,
0.3453591168,
-0.0479801893,
0.040634159,
0.1409534365,
-0.0342336074,
0.1449658424,
-0.0253792182,
-0.0578120053,
0.2546967864,
-0.1896176487,
-0.1297224164,
-0.187734589,
0.218500942,
0.1113176346,
-0.1485711634,
0.1090274453,
-0.0480885766,
0.0964981467,
-0.0651802495,
0.0203975569,
0.0826219991,
-0.0614791699,
0.2990711629,
0.0464546308,
-0.1582017243,
-0.0322585292,
0.1964226961,
-0.2496591955,
0.3323283792,
0.1313186437,
0.3523203433,
0.1779557317,
0.0039510662,
-0.0866931677,
0.0050664246,
0.0330316909,
0.0843181014,
0.2701560259,
-0.2523281276,
0.0954454914,
0.3207382262,
0.1293784678,
0.3699234128,
-0.1670771986,
-0.1981524825,
0.2500636876,
0.1845027804,
-0.2806069553,
0.0274400301,
0.4826541543,
0.0792052671,
-0.0614391305,
0.1219392344,
0.0515223481,
-0.0403978527,
-0.1860178411,
0.1256127805,
0.3057817519,
0.1706679165,
0.3275694847,
0.7761437297,
-0.1907458454,
-0.0441234969,
0.0329695381,
-0.2791090608,
0.2220821083,
0.1788911819,
-0.1657693386,
0.3593076766,
-0.1619861871,
0.3304785192,
-0.2900739014,
-0.450556308,
-0.0805429146,
0.1438091695,
-0.0844441578,
0.1313309669,
0.0786817521,
0.4334899485,
-0.2061229646,
-0.0349454693,
-0.4442698359,
0.2482858002,
0.0669217929,
0.0064120917,
0.0686034709,
-0.2048145682,
-0.1650120318,
0.0923433602,
-0.064335458,
-0.0166904517,
0.3275225461,
-0.1424657702,
-0.3697807789,
-0.4538444579,
-0.2162761837,
-0.0822580159,
0.2116423845,
-0.4417619407,
0.119868964,
0.1042456105,
-0.2983009517,
0.0144469785,
0.6690346003,
0.3910432458,
0.2221411318,
-0.0082954764,
-0.0840206966,
0.1398151815,
0.1586985439,
0.0923107788,
0.301276356,
0.0906739756,
-0.1768053323,
0.3088212013,
0.0299497005,
-0.0884334072,
0.0700701773,
-0.3639446199,
-0.211931929,
-0.4602621794,
0.2309453487,
-0.1386171132,
0.088557668,
-0.0725025386,
0.0463712923,
-0.3338873982,
-0.0766067803,
0.1268925965,
-0.0344368704,
0.2461353391,
0.0962803438,
0.024332175,
-0.3029870391,
0.2154329121,
0.457252264,
-0.2380202711,
-0.1272335202,
-0.2411008775,
-0.5297256708,
0.1988666952,
-0.145311296,
-0.222380057,
-0.0128740314,
0.2722304165,
-0.2468563765,
0.0310954656,
0.4103511572,
0.2545862198,
-0.1320250779,
0.1670605391,
-0.3741107583,
-0.1049035341,
-0.1244051307,
0.0631967783,
0.1704515815,
-0.2594737411,
0.2376659513,
-0.0988553911,
-0.0403688513,
-0.1549960077,
-0.0353385769,
0.0598156415,
-0.0658442825,
0.4095593691,
0.3740645945,
0.285438329,
0.0370703787,
-0.1465519816,
-0.2708666325,
-0.1762215495,
-0.1887483299,
0.464807272,
0.0033471591,
0.2654673457,
-0.1592426598,
0.030548254,
-0.1501216888,
0.5124750733,
0.120824948,
-0.0202246625,
-0.2466942817,
-0.2782547772,
-0.0599181056,
-0.0759471357,
0.4266424179,
0.2766798139,
-0.1649908721,
0.1061381176,
-0.0258042179,
-0.4128344059,
0.4644294083,
0.0081615075,
-0.0649361536,
-0.1816583872,
0.2398121506,
0.3171192408,
-0.2281713188,
-0.4576900601,
0.042084571,
0.6015407443,
-0.0326095596,
-0.108012341,
0.1667659879,
-0.072052151,
-0.061016418,
0.085772939,
0.1562546492,
-0.0138094323,
-0.3180503845,
0.4304478467,
-0.0633086115
] |
https://github.com/huggingface/datasets/issues/2839 | OpenWebText: NonMatchingSplitsSizesError | I'll try without deleting the whole cache (we have large datasets already stored). I was under the impression that `download_mode="force_redownload"` would bypass cache.
Sorry plateform should be linux (Redhat version 8.1) | ## Describe the bug
When downloading `openwebtext`, I'm getting:
```
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=39769494896, num_examples=8013769, dataset_name='openwebtext'), 'recorded': SplitInfo(name='train', num_bytes=39611023912, num_examples=7982430, dataset_name='openwebtext')}]
```
I suspect that the file we download from has changed since the size doesn't look like to match with documentation
`Downloading: 0%| | 0.00/12.9G [00:00<?, ?B/s]` This suggest the total size is 12.9GB, whereas the one documented mentions `Size of downloaded dataset files: 12283.35 MB`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("openwebtext", download_mode="force_redownload")
```
## Expected results
Loading is successful
## Actual results
Loading throws above error.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.2
- Platform: linux (Redhat version 8.1)
- Python version: 3.8
- PyArrow version: 4.0.1
| 31 | OpenWebText: NonMatchingSplitsSizesError
## Describe the bug
When downloading `openwebtext`, I'm getting:
```
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=39769494896, num_examples=8013769, dataset_name='openwebtext'), 'recorded': SplitInfo(name='train', num_bytes=39611023912, num_examples=7982430, dataset_name='openwebtext')}]
```
I suspect that the file we download from has changed since the size doesn't look like to match with documentation
`Downloading: 0%| | 0.00/12.9G [00:00<?, ?B/s]` This suggest the total size is 12.9GB, whereas the one documented mentions `Size of downloaded dataset files: 12283.35 MB`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("openwebtext", download_mode="force_redownload")
```
## Expected results
Loading is successful
## Actual results
Loading throws above error.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.2
- Platform: linux (Redhat version 8.1)
- Python version: 3.8
- PyArrow version: 4.0.1
I'll try without deleting the whole cache (we have large datasets already stored). I was under the impression that `download_mode="force_redownload"` would bypass cache.
Sorry plateform should be linux (Redhat version 8.1) | [
-0.3607827425,
-0.2398548871,
0.0516971909,
0.4607084095,
-0.0456267223,
0.1327422857,
0.0660521686,
0.6086550355,
0.1439710706,
0.137479037,
-0.2283657789,
0.1216923892,
-0.0511875302,
0.2408794761,
0.0173507649,
0.0554529913,
-0.1288680583,
0.2090866268,
0.0327518806,
0.0963999704,
-0.2407322824,
0.1652148664,
-0.3307677507,
-0.0877939239,
-0.0919426009,
0.0468051918,
-0.0785729662,
0.2525185645,
-0.1423962265,
-0.3720366657,
0.3101967275,
-0.3209817111,
0.0526625887,
0.4554590285,
-0.0001236256,
0.0584113449,
0.300246954,
-0.2492423058,
-0.1643615663,
-0.0202187523,
-0.4952324033,
-0.4582965374,
-0.1188495457,
-0.1141499355,
0.1849629134,
-0.0521583483,
0.0923798755,
-0.2381896377,
0.3523258269,
0.1760240942,
0.1076083481,
0.2688061893,
0.1909793615,
-0.0141790872,
0.3994997442,
-0.2885004282,
-0.2018009573,
-0.0260387436,
0.2025964856,
0.234523505,
-0.0004495271,
0.2051188648,
0.0155436043,
0.3176064789,
0.1230185255,
-0.0852457881,
0.1734517664,
-0.22359626,
0.1765744537,
0.4632990658,
0.711663425,
-0.290866375,
-0.3333331943,
-0.4549497962,
-0.4818344414,
-0.0767980665,
0.3402116895,
0.3721655607,
0.0110202329,
0.2835700214,
-0.2383950651,
-0.0144354487,
0.0867684111,
0.0248063039,
-0.2652616799,
0.166038081,
-0.065587081,
0.0525521636,
-0.0053645708,
0.1384350806,
0.264706701,
-0.0735873729,
0.054830607,
0.1759224236,
-0.2408611029,
-0.0740367845,
0.016543813,
-0.2352586687,
0.3727190495,
0.3354321122,
0.3635961413,
-0.1954645067,
-0.3061289191,
-0.0127847102,
0.2020261288,
0.4631947279,
-0.139136821,
0.0402779058,
-0.1740579605,
0.0575834662,
0.1116505191,
-0.1003556103,
-0.0169873685,
-0.3424649835,
0.1643750221,
0.0634854063,
0.632244885,
-0.3608763218,
-0.5638149977,
0.0620396696,
-0.2243333906,
-0.2449309528,
-0.2871400416,
-0.0788730532,
-0.3087584078,
0.3446004689,
0.108334437,
-0.1410493255,
-0.250838995,
-0.4097031355,
-0.2513111532,
-0.1282013357,
-0.1443445235,
0.0415492393,
0.0319383442,
-0.1385465115,
0.2920022607,
0.0044017108,
-0.0483900532,
-0.1885267198,
0.1772952974,
-0.0495253243,
0.039591819,
0.2417313904,
-0.0637852997,
0.2164585292,
0.0311723761,
0.1261219233,
-0.3001107574,
0.3434174061,
-0.320767045,
-0.3199582696,
-0.0984368473,
0.0781469867,
-0.2246569246,
-0.1677708477,
0.1053340286,
-0.0471283197,
0.3671297431,
-0.2251330316,
-0.0991621092,
-0.1212021708,
-0.1245305985,
-0.1096510887,
0.0449685529,
0.5349203348,
-0.4528931677,
-0.1801820099,
0.1855758727,
-0.1425029188,
0.3732613921,
0.3822268248,
0.0877136216,
0.0240437705,
-0.2359956503,
0.082552731,
0.0203860942,
-0.4213357866,
-0.8024856448,
0.4292292595,
-0.063969709,
0.1961510181,
0.1568332762,
-0.1446540505,
0.1170874014,
-0.150854826,
0.0576058738,
0.1717758477,
-0.2016100138,
0.0442330614,
-0.6290655136,
-0.8196581602,
0.3851353228,
-0.0254814643,
0.2239645571,
-0.1056238711,
0.0249994956,
0.2732912898,
0.3688707948,
0.101323761,
0.066016905,
0.1658232063,
0.003907288,
0.0954903588,
-0.0445363037,
-0.2933860123,
-0.3191495538,
0.2778996229,
-0.2501973808,
-0.1287554801,
0.3011004627,
-0.1411423832,
-0.5185482502,
-0.2888202667,
-0.0862792507,
-0.0926860198,
-0.0315535963,
0.0389907695,
0.2252073437,
0.0351626575,
0.0298351552,
0.3739864528,
0.116735056,
0.138464883,
-0.2917839289,
0.1245402917,
-0.0396487676,
-0.0166221075,
0.0037609164,
-0.1315943152,
0.189511776,
-0.1118276194,
-0.3834508955,
0.6283051372,
-0.0011397456,
0.1150421798,
-0.0907756165,
-0.0132449875,
0.2655422688,
-0.1831513643,
0.1516954452,
0.330578208,
-0.0388674513,
-0.1138826311,
0.0377744064,
-0.1808828413,
0.1214483902,
0.0156270675,
-0.1123445407,
0.0120708086,
-0.0592522435,
-0.1683395058,
0.0520321056,
-0.1470989585,
0.0410327204,
-0.1323206276,
0.1531799585,
-0.0586934164,
0.0894980878,
-0.0775121003,
0.6427759528,
-0.046189677,
-0.002413102,
0.2773856223,
-0.3135369122,
-0.1165980697,
-0.1492438167,
0.3093592525,
0.4315310717,
0.2351768017,
0.1816488802,
0.2148541063,
-0.0480407141,
-0.0663255602,
0.0623966493,
0.2788150907,
0.1103489101,
0.2787039578,
0.031464342,
0.0604013465,
-0.2338595539,
0.1105605811,
0.1959754527,
0.3361188769,
-0.4241137505,
-0.1764779538,
-0.4222447872,
-0.0984088704,
-0.2253971696,
0.1779848337,
-0.168441236,
-0.2284861803,
-0.0869308114,
0.0673672557,
-0.011215359,
0.18163158,
-0.274567157,
0.1598094702,
0.139281705,
0.0402396582,
0.012567183,
0.0235125087,
-0.468019098,
-0.0232421085,
0.3328771889,
-0.3140135407,
0.3491359353,
-0.5354385972,
-0.0107724806,
-0.0256564077,
-0.1533283442,
0.0009076567,
0.0825363323,
-0.0696034729,
0.2342223674,
0.2336277068,
0.056383349,
0.1101672277,
0.1208643466,
-0.2705496848,
-0.2377164215,
-0.1075410917,
0.1214816645,
0.3437823355,
-0.0233935136,
-0.5561487675,
-0.2882372737,
-0.3905978501,
0.2452228814,
0.1488031447,
0.222464636,
0.3056897819,
0.081562683,
0.1264169961,
0.1255259812,
0.0866119787,
-0.2552497983,
-0.3846786618,
0.2754497528,
0.0955308229,
-0.2659648359,
-0.0228640232,
0.2200030088,
-0.0600049198,
0.1335960627,
-0.5093488693,
-0.1830068827,
-0.4022886455,
-0.2084587663,
-0.1236938164,
0.2260225713,
0.4829977155,
0.0146276439,
-0.0300642829,
-0.1376813203,
-0.330088079,
0.0368260816,
0.1950069368,
0.4865731001,
-0.109298557,
0.2380160838,
0.357204318,
0.4601340592,
0.4681926072,
0.1195458919,
0.0832176134,
0.0417757705,
0.2068872452,
-0.1063737869,
0.0597092137,
0.1245608181,
-0.2355277091,
-0.0282633305,
0.2690126598,
0.160471037,
-0.0877637714,
-0.0937865153,
-0.1780083179,
-0.2976432145,
-0.1028993204,
-0.0560941473,
-0.0675409138,
0.1703020036,
0.2686713934,
0.1051751599,
-0.3179879785,
-0.2011032254,
0.1288352311,
0.0375517309,
-0.0185768474,
0.0662475303,
0.0950689465,
0.4359327555,
-0.3008747101,
0.408465445,
0.113615416,
0.2396366894,
0.157103911,
-0.2272114307,
0.1036052033,
0.033056885,
0.4885368645,
-0.2571601868,
0.0951224715,
0.0809625089,
0.1508599073,
-0.3015553951,
-0.2861628234,
-0.1340233982,
0.0312603973,
0.5175756216,
0.0374502428,
-0.4427630305,
0.0397896133,
0.209513396,
0.4867496192,
-0.2145173252,
-0.0063498267,
-0.1836827546,
-0.3508099914,
-0.4405160546,
0.0100526288,
0.1441059113,
0.1535167545,
0.0876210332,
-0.1092214733,
-0.1667595804,
-0.091411449,
0.1370180398,
-0.1000970453,
0.3531219363,
0.0272448752,
0.2810152173,
0.240776822,
0.3583732247,
0.2556766868,
0.5383526087,
-0.0211658869,
-0.0488369763,
0.0128528615,
-0.0926643312,
-0.2564074099,
0.4061824679,
0.076053746,
-0.3070345521,
0.1012069434,
0.1428367347,
-0.2415322661,
0.2489228845,
0.2346799523,
-0.1833534688,
-0.5043687224,
-0.6911818981,
0.4553481936,
0.1715047657,
-0.0941056833,
0.4634660482,
-0.0732957572,
-0.1497593969,
0.062862277,
-0.1080331355,
1.1349259615,
-0.0019089553,
-0.0780183896,
0.0873549283,
-0.5329982638,
0.172620669,
-0.281660378,
0.1941203773,
-0.200712651,
-0.4522466063,
-0.0641663373,
-0.2595255375,
0.0983032435,
0.0390520282,
-0.1713234484,
0.2763009667,
0.0749050006,
0.1446795911,
0.1882210821,
0.2370784283,
-0.301987946,
0.0262205787,
0.1655742824,
0.0374213681,
-0.2098883539,
0.5125643015,
-0.1052571461,
-0.242701292,
-0.103401199,
-0.1232612208,
-0.5089898109,
0.1167295203,
-0.3765404522,
0.276425451,
-0.2374929637,
-0.0862791538,
0.0357934237,
-0.0525443032,
0.0248793177,
-0.044972863,
-0.3938283324,
0.1956787109,
0.0594529063,
0.2147150487,
0.2943234146,
0.0335742049,
0.2583123147,
0.0008408464,
-0.1066410244,
0.1404141784,
-0.0813287497,
-0.2316501737,
-0.0270813145,
-0.0436839275,
0.3094871938,
-0.5829216838,
-0.2163565159,
-0.1027069837,
0.1244823784,
-0.2333381474,
0.0343787968,
0.0879764706,
-0.0746371225,
0.3408399522,
-0.0635326952,
-0.4717177749,
-0.1994460821,
0.5206713676,
0.181989193,
0.0293348823,
0.3584671021,
-0.1413273811,
-0.0639837608,
0.0470413789,
0.3087402582,
-0.223789826,
-0.7066390514,
0.332860738,
-0.5006854534,
0.262108326,
0.0529283136,
0.1818527132,
0.4850795269,
0.4176090062,
-0.0780596584,
-0.1445486546,
-0.0488502905,
-0.0138428453,
0.0381975845,
0.3852781653,
0.048550766,
0.4218772054,
0.1068173647,
-0.1626462042,
-0.2120171189,
0.2745406926,
0.0531280376,
-0.0390797518,
0.0639516935,
0.0605903491,
0.1390800923,
-0.1253378391,
-0.130465433,
0.2742478251,
-0.228435412,
-0.0878520235,
-0.1836319566,
0.2317643762,
0.0993776619,
-0.1137634739,
-0.0607138202,
-0.167647168,
0.1075261831,
-0.1030434966,
-0.0204725135,
0.0792440325,
0.0045060515,
0.1212019771,
0.0752918646,
-0.1436760575,
-0.1643704176,
0.2273164988,
-0.1274591088,
0.258928448,
0.0485454351,
0.3721716404,
0.118727766,
0.0677684695,
-0.2113087624,
-0.0517885461,
0.116162464,
0.1264190823,
0.2635840774,
-0.3530118465,
0.1222915426,
0.4328978956,
0.1321386546,
0.3337176144,
-0.1584497839,
-0.2856968939,
0.090092279,
0.1263713688,
-0.3119298816,
0.0799827129,
0.5263725519,
0.0300190859,
-0.0502246507,
0.1643322557,
0.2634984255,
-0.0278819613,
-0.2550135851,
0.2430295497,
0.5129172802,
0.1604271084,
0.2251697183,
1.0427393913,
0.0106978137,
0.1018012241,
0.1038972363,
0.0040848861,
0.3406728506,
0.412668854,
0.0849271491,
0.2741693854,
-0.0247923639,
0.3909765184,
-0.4134394825,
-0.4724243879,
-0.1134142429,
0.3169428408,
-0.0137260538,
0.278760165,
0.167898491,
0.2187366933,
-0.2551129758,
0.0223546382,
-0.3514286876,
0.1848174334,
0.0168442577,
-0.0328731351,
0.3247116804,
-0.2265099138,
-0.1403003782,
0.086273551,
-0.1605796069,
0.1383535713,
0.2371820956,
-0.1859892756,
-0.1939416379,
-0.3010242283,
-0.1874035299,
0.0105777541,
0.1624984145,
-0.4342554808,
0.1783868819,
0.1304652095,
-0.2807532847,
0.0324487798,
0.6316362023,
0.4081062675,
0.3006578088,
-0.0689980462,
-0.1026682407,
0.3005132377,
0.1360222697,
-0.0912715271,
0.1052778363,
0.0703729987,
-0.0674074367,
0.3016681969,
0.0214816183,
-0.1085118875,
0.0153884087,
-0.2776355147,
-0.169762671,
-0.3523253202,
0.3387862146,
-0.2293533981,
0.0696571916,
-0.0320136473,
0.0404821821,
-0.3742607534,
0.0021904476,
0.1292650104,
-0.05586344,
0.2296979874,
0.1696500331,
0.0025293883,
-0.1484006196,
0.2151014656,
0.4300906956,
-0.3279681802,
-0.1806126684,
-0.0553876795,
-0.6753016114,
0.1929345727,
-0.2446185201,
-0.1638777554,
0.070415087,
0.3578232229,
-0.1726098061,
-0.0341282226,
0.4378107488,
0.3769519329,
-0.1119427606,
0.2010067701,
-0.1759389639,
-0.2322309762,
0.0149958571,
0.0364374332,
0.1134866029,
-0.4270336628,
0.2120770812,
0.1316034943,
-0.067315571,
-0.2084577978,
-0.0971879512,
0.1151315942,
-0.1476908326,
0.5114879608,
0.2450011075,
0.3539227247,
0.007062586,
-0.291864723,
-0.2748837471,
-0.1809362322,
-0.2635330558,
0.3029271066,
0.0074896165,
0.191378504,
-0.2344794869,
-0.0533139408,
-0.1607611775,
0.5604590178,
0.1186753213,
0.0577344969,
-0.2615607977,
-0.298535943,
-0.2029913962,
-0.0543151088,
0.42809093,
0.2124757916,
-0.1955097169,
0.1199354455,
-0.0338992737,
-0.5013498664,
0.3801288605,
0.042417556,
-0.0864378735,
-0.0998112708,
0.235378921,
0.4515440464,
-0.1079054326,
-0.3443454802,
0.117936641,
0.4826673567,
0.0082230195,
-0.1074978486,
0.1426824182,
-0.1259905249,
-0.1082381457,
0.0097632632,
0.0963456854,
0.057439737,
-0.4165949523,
0.3547332287,
-0.1080686599
] |
https://github.com/huggingface/datasets/issues/2839 | OpenWebText: NonMatchingSplitsSizesError | Sorry I haven't had time to work on this. I'll close and re-open if I can't figure out why I'm having this issue. Thanks for taking a look ! | ## Describe the bug
When downloading `openwebtext`, I'm getting:
```
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=39769494896, num_examples=8013769, dataset_name='openwebtext'), 'recorded': SplitInfo(name='train', num_bytes=39611023912, num_examples=7982430, dataset_name='openwebtext')}]
```
I suspect that the file we download from has changed since the size doesn't look like to match with documentation
`Downloading: 0%| | 0.00/12.9G [00:00<?, ?B/s]` This suggest the total size is 12.9GB, whereas the one documented mentions `Size of downloaded dataset files: 12283.35 MB`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("openwebtext", download_mode="force_redownload")
```
## Expected results
Loading is successful
## Actual results
Loading throws above error.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.2
- Platform: linux (Redhat version 8.1)
- Python version: 3.8
- PyArrow version: 4.0.1
| 29 | OpenWebText: NonMatchingSplitsSizesError
## Describe the bug
When downloading `openwebtext`, I'm getting:
```
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=39769494896, num_examples=8013769, dataset_name='openwebtext'), 'recorded': SplitInfo(name='train', num_bytes=39611023912, num_examples=7982430, dataset_name='openwebtext')}]
```
I suspect that the file we download from has changed since the size doesn't look like to match with documentation
`Downloading: 0%| | 0.00/12.9G [00:00<?, ?B/s]` This suggest the total size is 12.9GB, whereas the one documented mentions `Size of downloaded dataset files: 12283.35 MB`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("openwebtext", download_mode="force_redownload")
```
## Expected results
Loading is successful
## Actual results
Loading throws above error.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.2
- Platform: linux (Redhat version 8.1)
- Python version: 3.8
- PyArrow version: 4.0.1
Sorry I haven't had time to work on this. I'll close and re-open if I can't figure out why I'm having this issue. Thanks for taking a look ! | [
-0.3353739381,
-0.1884129345,
0.0487628244,
0.432811141,
0.0591350868,
0.111541383,
-0.0852616429,
0.5720366836,
-0.0169445891,
0.1263843775,
-0.1240674108,
0.0030229676,
-0.0780211166,
0.084197171,
-0.1284151375,
0.0285330918,
-0.1261274219,
0.187572971,
-0.2567580938,
0.1037800387,
-0.2894753218,
0.2635649145,
-0.3147124648,
0.0043346435,
-0.1761123091,
0.0403094403,
-0.1997045428,
0.153028667,
-0.2597183287,
-0.3653437793,
0.2717801929,
-0.382317543,
0.059033405,
0.493645072,
-0.0001182356,
0.0295845643,
0.3093133569,
-0.208902061,
-0.0846332759,
-0.1598861516,
-0.4955508411,
-0.4291179478,
-0.0661037788,
-0.1210816726,
0.1902424395,
-0.1171417013,
0.1268287599,
-0.3275129497,
0.3349784315,
0.3231544495,
0.178308934,
0.4126833081,
0.2072991878,
0.0013005097,
0.3759172857,
-0.2919977009,
-0.2213474065,
-0.0704082623,
0.0860570595,
0.0268127192,
0.0031036856,
0.0268942863,
0.0232802071,
0.2867480814,
0.1630616337,
-0.0368345045,
0.3667392731,
-0.2062832564,
0.1011865363,
0.421010673,
0.7274802327,
-0.2153993249,
-0.2575477362,
-0.3073271811,
-0.3769131601,
0.0297993477,
0.2773853838,
0.4866474271,
0.0031599873,
0.198409766,
-0.3036154807,
0.0575402342,
0.0382374972,
0.1616746634,
-0.2182646096,
0.2967071235,
-0.0009073288,
0.152703017,
-0.0929154009,
0.0851418227,
0.2732588053,
-0.1273198575,
0.0084035918,
0.1611263901,
-0.2615141273,
0.0117763868,
-0.0282195173,
-0.2475548387,
0.2653854787,
0.3092902303,
0.3690364361,
-0.3131038845,
-0.1379643828,
-0.0037724224,
0.23903732,
0.3799055219,
-0.0437341258,
0.1846986264,
-0.1888065487,
0.0326587819,
0.1132927239,
-0.0755625516,
-0.028256407,
-0.3621481061,
0.0659072623,
-0.01132847,
0.6134743094,
-0.2487011254,
-0.6051999331,
0.0658673048,
-0.2793934345,
-0.2565441728,
-0.3295621872,
-0.1635747254,
-0.3112907708,
0.2582391798,
0.1950359792,
-0.0819413289,
-0.3276637793,
-0.3721604943,
-0.2869728208,
-0.1174984425,
-0.1620405316,
0.0461695269,
-0.1041299775,
-0.0131913759,
0.383228749,
-0.0587806813,
-0.0423810855,
-0.2699394226,
0.1448608488,
0.0324002653,
-0.0699521378,
0.1504085511,
-0.1633685678,
0.1828367412,
0.047220502,
0.0847084001,
-0.3564335704,
0.3897978067,
-0.2615618408,
-0.3636492193,
-0.2217822373,
0.1456975192,
-0.3320490122,
-0.2151727825,
0.3394041955,
-0.0417384095,
0.2415720671,
-0.2057960033,
-0.140811339,
-0.2203734964,
-0.2054503709,
-0.1400124431,
0.0715179294,
0.374012202,
-0.2969314456,
-0.2184284776,
0.215954572,
-0.058299657,
0.4005611539,
0.426597029,
0.0306363925,
0.0068852021,
-0.1978979707,
0.2515298724,
0.1011661515,
-0.2532137036,
-0.6780226827,
0.4099710286,
-0.1634246558,
0.1814757288,
0.1188288331,
-0.0990723893,
0.0737060308,
-0.131755352,
-0.0850463882,
0.2120766938,
-0.2106409222,
0.0707256943,
-0.5871101022,
-0.7869006991,
0.3780461848,
-0.0584511384,
0.1627453566,
-0.1797491908,
-0.0278541632,
0.2599586248,
0.4960872829,
0.1067426279,
0.0147281708,
0.1068838686,
0.0614955053,
0.0681386441,
-0.0840679035,
-0.2501348853,
-0.1588564068,
0.2199241966,
-0.1815298647,
-0.0562990196,
0.3016198277,
-0.1083739772,
-0.5671511889,
-0.2056311667,
-0.0594866909,
-0.0970371515,
0.0005352304,
0.0013911732,
0.1822185516,
0.0878181905,
0.1549395025,
0.3509557843,
0.0925608501,
0.1153081357,
-0.325830549,
0.2188001275,
-0.0420673341,
-0.1144090295,
0.1862329096,
-0.0807207152,
0.1894463897,
-0.050658606,
-0.4008097947,
0.6621257663,
-0.0508650839,
0.1304221153,
-0.0485620089,
0.0759105533,
0.2087168247,
-0.1647548825,
0.1396922022,
0.4040055275,
-0.0078118723,
-0.0893659443,
0.1285750717,
-0.1466649026,
0.1681565344,
0.0385815315,
-0.1399839371,
0.0219166335,
-0.108234182,
-0.1906884164,
-0.0218824651,
-0.1363820434,
0.1214793324,
-0.0143771311,
-0.1486692429,
0.0490545295,
0.1307162493,
-0.1663717479,
0.7351148129,
-0.0395388417,
-0.0493246354,
0.3084147573,
-0.3009497821,
-0.0696078539,
-0.1869142205,
0.2009025812,
0.517097652,
0.2373418361,
0.1705388874,
0.2232393175,
0.005983755,
-0.1573752314,
0.1209170893,
0.2986406684,
0.2252733856,
0.2332678586,
-0.0040379409,
0.0442566015,
-0.1431464404,
0.1358933002,
0.054894086,
0.3265088499,
-0.4214718938,
-0.2221031487,
-0.4799453914,
-0.0070516923,
-0.332986027,
0.1856302321,
-0.181444034,
-0.3045488894,
-0.0691654906,
0.0729711801,
-0.0868556798,
0.1772737354,
-0.2617513835,
0.1166195199,
0.1726837903,
0.168426469,
0.1131395549,
-0.0296700802,
-0.5200147629,
0.0163426045,
0.2846111059,
-0.2646361589,
0.3774173558,
-0.553154707,
0.0195056908,
-0.0720696375,
-0.1443549991,
-0.1200666577,
0.059685979,
0.0407045446,
0.1904512942,
0.1615997702,
0.078851752,
-0.0324809402,
0.1823150665,
-0.2791779637,
-0.1931466758,
-0.0665639341,
0.1417396814,
0.2153921872,
-0.0159327053,
-0.5946928859,
-0.2640362978,
-0.3566411734,
0.246953696,
0.0686294362,
0.1870592684,
0.0002922275,
0.0823855922,
0.0191315394,
0.0428410359,
0.0874992907,
-0.2150723338,
-0.4413595796,
0.3366400003,
0.0674882904,
-0.3040824831,
-0.0139752179,
0.2830920219,
-0.0750178173,
0.0852651969,
-0.6037398577,
-0.112148419,
-0.3842428029,
-0.1020447761,
-0.1089006066,
0.1909781694,
0.4259520471,
0.0320953168,
-0.0522994772,
-0.1426744759,
-0.3267738521,
-0.0091119176,
0.286000222,
0.5351225734,
-0.0486744344,
0.2700761259,
0.3071494102,
0.4374695122,
0.5364367962,
0.079187043,
0.0161776654,
-0.0385353416,
0.082842119,
-0.1028327122,
0.0535904467,
0.1910815686,
-0.2176371515,
0.0492425933,
0.3565109968,
0.169650808,
0.0127552357,
-0.0368491188,
-0.0876015797,
-0.3898723423,
-0.1862396598,
-0.02276708,
-0.0313758254,
0.1551939547,
0.2314364314,
0.0815004632,
-0.2151929736,
-0.2685634494,
0.105981499,
-0.030025579,
-0.1459790766,
0.0423288047,
0.1752457619,
0.373088032,
-0.3741365671,
0.3963322639,
0.096931681,
0.2370704859,
0.1760121286,
-0.262329042,
0.1341692954,
0.066508159,
0.3930376768,
-0.015951043,
-0.0892399624,
0.0761585683,
0.133560881,
-0.490927577,
-0.3171020746,
-0.1052996144,
0.1085404828,
0.5230335593,
-0.0738657936,
-0.3801212907,
0.020902494,
0.3068945706,
0.4333488643,
-0.2359805554,
-0.0729082674,
-0.1252313554,
-0.3763368726,
-0.2850297391,
-0.1912844777,
0.0464634448,
0.292881906,
0.0043560877,
-0.0980407149,
-0.0733075663,
-0.2081435025,
0.1746223271,
-0.1836491674,
0.2925066948,
-0.0004943784,
0.3188736439,
0.2693995535,
0.3867370486,
0.2052207291,
0.5904603004,
0.0436035395,
-0.1867182255,
-0.0387386419,
-0.1282731444,
-0.2344357073,
0.303322345,
0.1187585369,
-0.3259142637,
-0.0401386172,
0.195691213,
-0.332693994,
0.2428995669,
0.4663271606,
-0.1162641719,
-0.4240007102,
-0.4418561161,
0.4975843728,
0.2040063888,
-0.0451389477,
0.4790868461,
-0.0798940584,
-0.1677796692,
0.0333920307,
-0.1459576786,
1.0368595123,
0.0999150872,
-0.0907202139,
0.2094312161,
-0.5453344584,
0.1710041463,
-0.1999565363,
0.2204816937,
-0.2778277099,
-0.4051023424,
0.0069355606,
-0.2201944143,
0.1650545448,
-0.0130687188,
-0.2186741084,
0.2340095043,
-0.0390746631,
0.0920774341,
0.1622835249,
0.2636516392,
-0.2369293869,
0.1853293777,
0.266113162,
0.0833000168,
-0.2128532827,
0.514809072,
-0.0760419369,
-0.1609029025,
-0.1491772383,
-0.1373737454,
-0.5546500087,
0.0599501394,
-0.3144535124,
0.2885298431,
-0.2171674967,
0.0433866456,
0.0880815834,
0.0923925862,
0.0142036108,
-0.0594972037,
-0.3775970936,
0.2553163469,
-0.0525225997,
0.141257748,
0.2620883882,
0.0832053497,
0.1101578325,
-0.0912028626,
-0.2372805476,
0.0405235104,
-0.0837491229,
-0.1229645014,
-0.0970739052,
-0.1680072695,
0.3867135048,
-0.6676738858,
-0.157305479,
-0.1034069434,
0.1436843872,
-0.1959363222,
0.0874958262,
0.1029197201,
-0.0474428907,
0.4278290272,
0.0163504202,
-0.4587229192,
-0.1943022013,
0.4307102859,
0.1279551089,
0.0916891024,
0.4442596436,
-0.137053445,
-0.0376778655,
0.0117738238,
0.4629659057,
-0.1131056026,
-0.5498894453,
0.2595931292,
-0.4044881761,
0.3425936103,
0.0981688723,
0.2810600698,
0.5407375693,
0.3864485919,
-0.0264152661,
-0.1146283746,
0.0669918582,
0.0011303097,
0.0746461079,
0.3588257134,
-0.0805718303,
0.4045136273,
0.0672628284,
-0.0704927891,
-0.2422813475,
0.2544279099,
0.0156775899,
0.0428697318,
0.1455542445,
0.0286412537,
0.1355084628,
-0.011797091,
-0.0390096344,
0.1854177713,
-0.24322249,
-0.0989610553,
-0.1615243256,
0.2079800963,
0.0546914451,
-0.1530820578,
0.045655597,
-0.1510105133,
0.1255457699,
-0.1162611917,
-0.113740243,
0.1645743847,
-0.0513616428,
0.218362689,
0.1268450022,
-0.2066083401,
-0.0665394068,
0.2602391541,
-0.2344353944,
0.4273048639,
0.0245205089,
0.3384081125,
0.2047900856,
-0.0108741317,
-0.085031487,
-0.0598099306,
0.000359478,
0.1567875892,
0.3013490736,
-0.2508285344,
0.1260696054,
0.3643403053,
0.1374808699,
0.4328536093,
-0.1313249022,
-0.2906665802,
0.1045472249,
0.178431347,
-0.2992356718,
0.016165521,
0.4957772493,
0.122269325,
-0.0567716919,
0.076114282,
0.0944879279,
-0.0311802998,
-0.3327863514,
0.1645711362,
0.4324415028,
0.2256920636,
0.3186549842,
0.8666623831,
-0.0204309877,
-0.0256547127,
0.0237759948,
-0.1841370165,
0.3195383549,
0.2806242108,
-0.1578598171,
0.3437285125,
-0.00567783,
0.3505118787,
-0.3397982717,
-0.36720258,
-0.1076572612,
0.2417442352,
-0.0121826772,
0.2198259383,
0.2063263357,
0.3108756542,
-0.224153012,
-0.006381338,
-0.3726566434,
0.1676118821,
0.0706151351,
-0.0313571244,
0.0524185263,
-0.2259844244,
-0.2060040683,
0.0640667304,
-0.1661807448,
0.0202163216,
0.2706851959,
-0.17954126,
-0.2028778046,
-0.3367299438,
-0.1908313781,
-0.11357636,
0.1885902584,
-0.4949005544,
0.0465461202,
0.1343565136,
-0.2942205966,
0.1290154457,
0.6200797558,
0.4436333477,
0.2979871929,
-0.1408044845,
-0.1054058447,
0.2517394722,
0.1027258784,
0.046717491,
0.1857621223,
0.0489167869,
-0.1277916431,
0.3198868036,
0.0569142364,
-0.0990992859,
0.0934139267,
-0.2364149094,
-0.1541103572,
-0.3987445533,
0.2347806096,
-0.2085984349,
0.0547562055,
0.0016947436,
-0.028470723,
-0.3427092135,
-0.0356011018,
0.1651673466,
-0.0647954419,
0.2333298922,
0.145422101,
0.0216184407,
-0.211619094,
0.2247880697,
0.4161570072,
-0.3166663945,
-0.1842962056,
-0.2350706607,
-0.5166270137,
0.2552206516,
-0.2080882788,
-0.178612262,
0.061497964,
0.3182902634,
-0.2253256887,
-0.0437422022,
0.4135927856,
0.2970716357,
-0.2436299026,
0.1413474083,
-0.3079405725,
-0.2109189034,
-0.0562669672,
0.0403399318,
0.1673976481,
-0.2650244832,
0.2208799273,
-0.1054106727,
-0.0257280283,
-0.2519943118,
-0.0330630057,
0.1348447055,
-0.0843253657,
0.4137386084,
0.3345899284,
0.2951542735,
-0.0177685786,
-0.1573622376,
-0.2531407177,
-0.2753591239,
-0.202457428,
0.4000014663,
-0.0340064429,
0.2347235829,
-0.2256829292,
0.0578504391,
-0.1563292295,
0.441322118,
0.01675581,
0.0550508834,
-0.2007737309,
-0.2971841097,
-0.0977730751,
-0.1419035792,
0.36167261,
0.3011951447,
-0.1548296511,
0.1341494173,
0.0166275613,
-0.4505010545,
0.4645195007,
0.0743987262,
-0.0788484365,
-0.1006375104,
0.1509799659,
0.3283899724,
-0.0582995154,
-0.3652932346,
0.1082648858,
0.587456286,
0.0201445408,
-0.0254814196,
0.1324417293,
-0.0440024398,
-0.143429786,
0.1158753261,
0.1667719185,
-0.0006538035,
-0.4427076876,
0.4158503711,
-0.1364070475
] |
https://github.com/huggingface/datasets/issues/2832 | Logging levels not taken into account | I just take a look at all the outputs produced by `datasets` using the different log-levels.
As far as i can tell using `datasets==1.17.0` they overall issue seems to be fixed.
However, I noticed that there is one tqdm based progress indicator appearing on STDERR that I can simply not suppress.
```
Resolving data files: 100%|██████████| 652/652 [00:00<00:00, 1604.52it/s]
```
According to _get_origin_metadata_locally_or_by_urls it shold be supressable by using the `NOTSET` log-level
https://github.com/huggingface/datasets/blob/1406a04c3e911cec2680d8bc513653e0cafcaaa4/src/datasets/data_files.py#L491-L501
Sadly when specifiing the log-level `NOTSET` it seems to has no effect.
But appart from it not having any effect I must admit that it seems unintuitive to me.
I would suggest changing this such that it is only shown when the log-level is greater or equal to INFO.
This would conform better to INFO according to the [documentation](https://huggingface.co/docs/datasets/v1.0.0/package_reference/logging_methods.html#datasets.logging.set_verbosity_info).
> This will display most of the logging information and tqdm bars.
Any inputs on this?
I will be happy to supply a PR if desired 👍 | ## Describe the bug
The `logging` module isn't working as intended relative to the levels to set.
## Steps to reproduce the bug
```python
from datasets import logging
logging.set_verbosity_debug()
logger = logging.get_logger()
logger.error("ERROR")
logger.warning("WARNING")
logger.info("INFO")
logger.debug("DEBUG"
```
## Expected results
I expect all logs to be output since I'm putting a `debug` level.
## Actual results
Only the two first logs are output.
## Environment info
- `datasets` version: 1.11.0
- Platform: Linux-5.13.9-arch1-1-x86_64-with-glibc2.33
- Python version: 3.9.6
- PyArrow version: 5.0.0
## To go further
This logging issue appears in `datasets` but not in `transformers`. It happens because there is no handler defined for the logger. When no handler is defined, the `logging` library will output a one-off error to stderr, using a `StderrHandler` with level `WARNING`.
`transformers` sets a default `StreamHandler` [here](https://github.com/huggingface/transformers/blob/5c6eca71a983bae2589eed01e5c04fcf88ba5690/src/transformers/utils/logging.py#L86) | 159 | Logging levels not taken into account
## Describe the bug
The `logging` module isn't working as intended relative to the levels to set.
## Steps to reproduce the bug
```python
from datasets import logging
logging.set_verbosity_debug()
logger = logging.get_logger()
logger.error("ERROR")
logger.warning("WARNING")
logger.info("INFO")
logger.debug("DEBUG"
```
## Expected results
I expect all logs to be output since I'm putting a `debug` level.
## Actual results
Only the two first logs are output.
## Environment info
- `datasets` version: 1.11.0
- Platform: Linux-5.13.9-arch1-1-x86_64-with-glibc2.33
- Python version: 3.9.6
- PyArrow version: 5.0.0
## To go further
This logging issue appears in `datasets` but not in `transformers`. It happens because there is no handler defined for the logger. When no handler is defined, the `logging` library will output a one-off error to stderr, using a `StderrHandler` with level `WARNING`.
`transformers` sets a default `StreamHandler` [here](https://github.com/huggingface/transformers/blob/5c6eca71a983bae2589eed01e5c04fcf88ba5690/src/transformers/utils/logging.py#L86)
I just take a look at all the outputs produced by `datasets` using the different log-levels.
As far as i can tell using `datasets==1.17.0` they overall issue seems to be fixed.
However, I noticed that there is one tqdm based progress indicator appearing on STDERR that I can simply not suppress.
```
Resolving data files: 100%|██████████| 652/652 [00:00<00:00, 1604.52it/s]
```
According to _get_origin_metadata_locally_or_by_urls it shold be supressable by using the `NOTSET` log-level
https://github.com/huggingface/datasets/blob/1406a04c3e911cec2680d8bc513653e0cafcaaa4/src/datasets/data_files.py#L491-L501
Sadly when specifiing the log-level `NOTSET` it seems to has no effect.
But appart from it not having any effect I must admit that it seems unintuitive to me.
I would suggest changing this such that it is only shown when the log-level is greater or equal to INFO.
This would conform better to INFO according to the [documentation](https://huggingface.co/docs/datasets/v1.0.0/package_reference/logging_methods.html#datasets.logging.set_verbosity_info).
> This will display most of the logging information and tqdm bars.
Any inputs on this?
I will be happy to supply a PR if desired 👍 | [
-0.1819091141,
-0.0898382887,
0.0939668864,
0.1882541627,
0.3095968366,
-0.2192624807,
0.4732371569,
0.1431783736,
-0.3718084991,
0.0353801474,
-0.0058935136,
0.4615266323,
-0.4104681909,
0.0659599826,
-0.31302315,
-0.0980830789,
-0.0660252795,
-0.139336288,
-0.5450296998,
0.0457943045,
0.0750944987,
0.1897874326,
-0.2249953002,
0.0555780418,
-0.7809423208,
0.0446767397,
0.340230912,
0.0257385317,
0.1205931455,
-0.4644357264,
0.0075371847,
-0.0298256706,
0.4150167406,
0.6118502617,
-0.0001199822,
0.1394347101,
0.4598306417,
-0.0173226316,
-0.3153910637,
-0.0612403527,
-0.1646202356,
-0.4806192219,
0.262324661,
0.0518129952,
0.1647011191,
-0.4673646092,
0.1094094068,
-0.2714059055,
0.1311970502,
0.2712632418,
0.123117581,
0.172114253,
-0.1674981862,
0.3830895722,
0.1505060643,
0.1529047936,
-0.2150812,
-0.0241490547,
0.1788206995,
-0.0163999163,
-0.5275035501,
0.3455016911,
-0.0007399465,
0.006857574,
0.1303984076,
0.1596150547,
0.5206707716,
-0.1492427438,
0.28563568,
0.0255322028,
0.4331439137,
-0.2427783012,
-0.3528149128,
-0.4176712036,
-0.2126733512,
-0.3420249522,
0.3693421483,
-0.2302710116,
-0.3090792,
0.1930923164,
-0.18180269,
0.1710777581,
-0.3076972067,
-0.0546789207,
-0.3010326922,
0.355337292,
-0.1875871569,
0.0269774981,
-0.2858324945,
0.1534839123,
0.3956536055,
-0.0794459805,
0.2276881635,
0.1356565803,
-0.6115947366,
0.1133959889,
0.4945659935,
-0.0808663517,
-0.1450599581,
0.1697575301,
-0.329395622,
0.1994798332,
0.1811293811,
0.0736655444,
0.3055630624,
0.1178713143,
0.2630478442,
0.4099179506,
0.4124895334,
-0.1393945813,
0.2001850456,
0.1315563321,
0.1282762885,
-0.180662781,
0.5118838549,
0.1964933127,
0.3195085227,
-0.2071631253,
-0.0008672619,
0.1281622946,
-0.0185106155,
-0.0907259211,
-0.0112959566,
0.160335958,
0.1542295665,
0.2650686204,
-0.1903697997,
0.138097167,
-0.1112716198,
0.0103983236,
-0.1276461631,
-0.1787545383,
-0.0399790592,
-0.0741943121,
0.2582683861,
-0.0239808932,
0.0770993605,
0.1951997131,
0.0267169122,
-0.021910768,
0.3467868567,
0.0042746887,
0.2495241761,
0.4448466897,
-0.361174196,
0.4954241812,
0.1187382415,
-0.3750069737,
-0.2066948712,
0.355324477,
0.0903560668,
-0.4283051789,
-0.0089533189,
0.0862448812,
-0.428894043,
0.0198772401,
-0.3415557742,
0.2679595649,
0.384267509,
0.2441598922,
0.1409232318,
-0.3045224547,
-0.1086519808,
-0.087164849,
0.1132277995,
0.2821021378,
-0.2658991814,
-0.3391909599,
-0.4246962368,
-0.2330407649,
0.5331048369,
-0.0809487253,
0.0644737259,
0.2657184601,
-0.2206603885,
-0.1423376352,
0.3220491707,
-0.2108511776,
-0.1373385191,
0.2469375283,
-0.2434391975,
0.3501358926,
0.2571793199,
-0.0712385029,
0.1254282445,
-0.1857033819,
0.0838424042,
-0.1872588396,
-0.0352343731,
-0.1251254231,
-0.2647054195,
0.1382374465,
0.0597302951,
0.1550549269,
0.4126630723,
-0.2349222749,
-0.1292558014,
-0.1459063888,
0.2354670912,
0.0665060803,
0.4810116291,
0.299533695,
-0.0863707885,
-0.3956297934,
0.1675984114,
-0.4225461483,
-0.3089473248,
0.1358081698,
-0.0498751774,
0.2441302985,
-0.2547356784,
-0.0483439676,
-0.2275993675,
-0.0495951585,
-0.2364951372,
-0.3602928519,
0.0657431409,
0.1983582973,
-0.4643245637,
-0.0514879748,
-0.5570803881,
0.0940933451,
-0.0858353823,
0.0390930139,
-0.0710810646,
0.1655441076,
0.13997899,
-0.3162972629,
0.1232604012,
0.1310486794,
0.1704544723,
0.1558425128,
-0.0519147888,
0.1227302551,
0.0682454333,
0.3113900721,
0.0745524243,
0.3755337,
-0.050311923,
-0.2973822355,
-0.2526671588,
0.3052724898,
-0.2191514224,
0.2751579285,
0.0198165271,
0.0583514087,
0.082670711,
0.2765339017,
-0.118674539,
0.0684272498,
0.0363800339,
-0.0979591608,
-0.243456915,
-0.3660644591,
0.2148849815,
-0.0575700849,
0.1926108748,
-0.0190374032,
-0.0904610008,
0.4050556719,
0.3750469089,
-0.1113821417,
-0.0444972105,
0.0927696303,
-0.2481323332,
0.0491662435,
0.1592705846,
0.2371324897,
0.2487282306,
0.1617778987,
0.4445369244,
0.0639636442,
-0.0790757313,
-0.0427259021,
0.0743760467,
0.2338574827,
-0.5179768801,
0.5398026109,
0.0438423976,
0.035410136,
-0.2454955131,
-0.0837489665,
-0.2658790648,
0.1549066305,
-0.4401251972,
0.2154385895,
-0.5277715921,
-0.1177955717,
-0.4569822252,
-0.1331725717,
-0.5202825069,
-0.2676727176,
0.1726202071,
-0.018498918,
-0.3190430999,
0.33638376,
-0.0827427059,
-0.1506625563,
0.106419161,
-0.1788673699,
-0.3044407666,
-0.0194472335,
-0.2339569032,
0.027748432,
0.1590830237,
0.0303558186,
0.1796231419,
-0.0334718227,
-0.11286515,
0.1028184518,
-0.3334927261,
0.2764139175,
-0.1067205444,
0.2237929851,
-0.2222774774,
-0.3238115311,
0.169898957,
0.132425189,
-0.1173927858,
-0.0920092165,
0.0221260712,
0.0204042736,
-0.0720384568,
0.3061914742,
-0.1384519786,
-0.0031474656,
-0.0018819544,
-0.4027002156,
-0.2662216127,
-0.2714513838,
0.2531260848,
0.2070633769,
-0.4551487565,
0.2485957593,
-0.0884559974,
0.269182831,
0.0726320371,
-0.1624678969,
0.3184102178,
-0.1226366386,
-0.1969099492,
0.0178289656,
-0.1715148538,
-0.1894015521,
-0.0470941029,
-0.3627792001,
0.1086988598,
-0.1089037061,
-0.2652153671,
-0.0397305414,
0.1671324521,
0.3691947758,
0.3258031309,
0.0090834582,
-0.1341654509,
-0.1537549496,
-0.1019193679,
0.0585016757,
0.2831253707,
-0.2607405484,
0.0344162546,
0.148378998,
0.506967485,
0.3453035355,
0.2685109973,
-0.0804052055,
0.0759628564,
0.2933185399,
0.0606251098,
-0.1597995311,
-0.1059995964,
0.0338986292,
-0.4181046486,
0.0566373616,
0.144881025,
0.2017134577,
-0.027172599,
-0.0303952582,
0.1652379334,
-0.4635162652,
0.0586880371,
-0.1133040339,
0.1858378202,
-0.1266327053,
0.2348472029,
0.0511066951,
-0.0497217141,
0.1570638716,
0.4339691103,
0.1303690821,
-0.0662132353,
-0.2156477123,
0.2132239044,
-0.6304280162,
0.1582931727,
0.176027298,
0.0840811804,
-0.100154005,
-0.3785307705,
0.101342611,
0.1198468581,
-0.1438218355,
-0.2686073482,
0.2855584919,
0.2387452424,
-0.2489811927,
-0.5182704329,
-0.069314234,
-0.1932426691,
0.1159473956,
0.2608475387,
0.3294423521,
-0.2001610994,
-0.360247314,
0.0519126616,
-0.0191018861,
-0.0753853023,
-0.3444703221,
-0.5269969106,
-0.0797187239,
-0.0607015453,
-0.0583455488,
0.1437380314,
-0.06829568,
-0.3292339742,
-0.2263296247,
0.1825564951,
-0.2757364511,
0.1269931048,
0.0185749587,
0.0728761777,
-0.1861385554,
0.1480654925,
0.1780355275,
0.2167412192,
0.0931033865,
0.5514130592,
0.1194350719,
-0.0828366429,
0.6190797091,
-0.1662601829,
0.1866699904,
0.2880736887,
-0.3590282798,
0.1245783418,
0.0469091013,
0.3061253428,
-0.1944659501,
0.1805532575,
0.2591815591,
0.1890827268,
-0.3992838264,
0.1572112143,
0.4169655144,
0.0140996175,
-0.0746385232,
0.7271110415,
0.105799064,
-0.1947396398,
0.1497529894,
-0.1203288436,
0.6727133989,
0.1968963444,
0.1786935925,
0.1184353754,
-0.4121608436,
-0.0451505333,
0.2780805826,
0.2414037287,
-0.2751302421,
-0.3481461108,
-0.0495912991,
-0.302780062,
0.1864272803,
0.1291717887,
0.0183401145,
0.0810486004,
-0.2185971588,
0.2982626259,
0.1069585159,
-0.0313070267,
-0.0489441641,
-0.0176152643,
-0.6756731868,
-0.0106220823,
0.0209551789,
0.1171401516,
-0.0235466789,
-0.1033571139,
-0.1348106861,
-0.0567612164,
-0.0102788778,
-0.2262195647,
0.5068607926,
-0.1525280029,
0.3462706208,
-0.2853561938,
0.1044003144,
-0.1335162967,
0.1907106042,
-0.3454443514,
-0.0853301361,
-0.0574991889,
-0.1923435777,
0.4880463779,
0.259978056,
-0.1326868534,
0.4208202362,
-0.1099282056,
-0.0416138694,
0.3349725008,
-0.0863172784,
-0.2627700865,
0.1603838503,
0.2207604498,
-0.072587952,
0.1515631676,
0.7512340546,
0.0856782272,
0.1762217134,
-0.006809928,
0.1545620114,
0.2361589223,
-0.0243252628,
0.4376176,
-0.3744153082,
-0.3255402446,
-0.1935967058,
0.3999837041,
0.0029172739,
0.1412766278,
0.22624515,
-0.0111193368,
-0.2802969813,
-0.001857281,
0.1896030605,
0.0617432483,
-0.3137069345,
0.2285534889,
-0.2339439988,
-0.0964736417,
0.1646851301,
0.3712396026,
-0.0469826944,
-0.2045658082,
-0.5734298825,
-0.0662351549,
-0.551553607,
-0.0174134225,
-0.1155947298,
-0.0015743987,
-0.2399241775,
0.3892194927,
0.1458510458,
0.1748235673,
-0.255984664,
-0.5468971729,
-0.0271202587,
0.1467611045,
0.0124440407,
-0.132435143,
0.4264413416,
0.0405430235,
-0.0100180674,
-0.0702999085,
-0.2763059437,
-0.1444533467,
-0.257737577,
0.1885742843,
0.0682908893,
-0.0671271458,
-0.0106219063,
-0.0483783633,
-0.1220016032,
0.0176194683,
0.3206561506,
0.4530397654,
0.0391765907,
0.5274267793,
-0.046448227,
-0.0940761268,
0.0334608369,
-0.2103711963,
0.0891042203,
0.0904634371,
0.0968677402,
0.149754256,
-0.1185617968,
0.1659595221,
0.1048227325,
0.1262009293,
-0.1202986464,
0.0438852124,
0.3256549835,
-0.0354705267,
-0.2347787768,
-0.0822036415,
0.4099620879,
0.1052338034,
-0.0797512308,
-0.4296058714,
-0.2079843134,
0.1114755571,
-0.1284270883,
-0.0764508173,
-0.0088664517,
0.1214373261,
0.0892454833,
0.3642213047,
-0.1191660687,
-0.2467418611,
0.482088238,
0.3013120592,
0.04563177,
-0.1844027787,
0.0561784655,
-0.0609655902,
-0.144036904,
0.2389774621,
0.6558202505,
-0.0039527793,
0.3603111506,
0.1718613207,
0.2860148847,
0.0418072455,
-0.1642822772,
0.0260233674,
-0.0930548161,
-0.2444407493,
0.0219166037,
-0.0051385211,
-0.0218616184,
-0.1876343042,
0.1694562137,
-0.1038033068,
0.207212612,
0.1085741594,
-0.0348822474,
0.0365714878,
0.0143887447,
0.019086834,
0.1839054525,
-0.1289090365,
-0.097387284,
-0.2328981757,
-0.0229980908,
0.0213283636,
0.1387325823,
0.1570233107,
0.0969071761,
-0.1520855725,
-0.0288666803,
0.1704466492,
0.2901502252,
-0.0647635311,
-0.0089732204,
0.3560606837,
-0.1155792028,
0.1490579993,
0.0659028888,
0.3600229025,
0.1679991633,
-0.1340105534,
-0.0964419842,
0.1150020212,
-0.0284228455,
-0.1737386286,
0.6769565344,
-0.3245470822,
-0.0471937694,
0.4004885852,
0.012676429,
-0.1173416376,
0.0474847592,
0.0466467291,
0.0966755599,
-0.3389579356,
0.8710209131,
0.0256043114,
0.0744786039,
0.1557594389,
-0.2975202799,
-0.2971017957,
-0.3708754182,
0.6104121804,
-0.0485243052,
0.1103841364,
-0.2299769074,
0.0416196249,
-0.156233266,
0.0628137812,
0.2825636268,
0.2346615344,
-0.0477232076,
-0.0417792425,
-0.4973962903,
0.2806995213,
0.2839969695,
-0.1307715923,
0.1727913469,
0.0085945996,
-0.1108635142,
0.3636240363,
0.6101103425,
-0.1248443723,
0.0092961527,
-0.0691059083,
-0.1656384915,
-0.0856537297,
-0.1889979541,
-0.0157681964,
-0.2493961304,
-0.3572245836,
0.1871707439,
-0.0549846701,
0.0553356148,
0.15291439,
-0.3650815785,
0.2817211151,
0.3651485741,
0.2001562268,
0.164469555,
0.1668442786,
0.0279799625,
-0.2210935205,
-0.1595650613,
0.1220762879,
-0.4187488258,
-0.0688744858,
-0.147606492,
0.5398005843,
-0.2380640954,
-0.1235453784,
-0.2708122134,
0.2231283635,
0.0659583881,
-0.0840672031,
-0.0466568656,
0.2541733682,
-0.1782500297,
0.0879993215,
-0.1397847086,
0.1698734611,
0.3459701538,
0.4136742055,
-0.4526385367,
-0.4210858047,
0.4436966777,
-0.6302115321,
-0.3797567487,
-0.1369896531,
0.3940406144,
0.2420849055,
-0.2690964341,
-0.3698312342,
-0.0974196419,
0.3951930106,
-0.1096806526,
0.1357145011,
0.2095545232,
-0.3523297906,
0.19397448,
-0.0046770037,
0.0670582131,
0.2577128708,
0.1349375397,
-0.0742063746,
-0.2372929901
] |
https://github.com/huggingface/datasets/issues/2832 | Logging levels not taken into account | Hi! This should disable the tqdm output:
```python
import datasets
datasets.set_progress_bar_enabled(False)
```
On a side note: I believe the issue with logging (not tqdm) is still relevant on master. | ## Describe the bug
The `logging` module isn't working as intended relative to the levels to set.
## Steps to reproduce the bug
```python
from datasets import logging
logging.set_verbosity_debug()
logger = logging.get_logger()
logger.error("ERROR")
logger.warning("WARNING")
logger.info("INFO")
logger.debug("DEBUG"
```
## Expected results
I expect all logs to be output since I'm putting a `debug` level.
## Actual results
Only the two first logs are output.
## Environment info
- `datasets` version: 1.11.0
- Platform: Linux-5.13.9-arch1-1-x86_64-with-glibc2.33
- Python version: 3.9.6
- PyArrow version: 5.0.0
## To go further
This logging issue appears in `datasets` but not in `transformers`. It happens because there is no handler defined for the logger. When no handler is defined, the `logging` library will output a one-off error to stderr, using a `StderrHandler` with level `WARNING`.
`transformers` sets a default `StreamHandler` [here](https://github.com/huggingface/transformers/blob/5c6eca71a983bae2589eed01e5c04fcf88ba5690/src/transformers/utils/logging.py#L86) | 29 | Logging levels not taken into account
## Describe the bug
The `logging` module isn't working as intended relative to the levels to set.
## Steps to reproduce the bug
```python
from datasets import logging
logging.set_verbosity_debug()
logger = logging.get_logger()
logger.error("ERROR")
logger.warning("WARNING")
logger.info("INFO")
logger.debug("DEBUG"
```
## Expected results
I expect all logs to be output since I'm putting a `debug` level.
## Actual results
Only the two first logs are output.
## Environment info
- `datasets` version: 1.11.0
- Platform: Linux-5.13.9-arch1-1-x86_64-with-glibc2.33
- Python version: 3.9.6
- PyArrow version: 5.0.0
## To go further
This logging issue appears in `datasets` but not in `transformers`. It happens because there is no handler defined for the logger. When no handler is defined, the `logging` library will output a one-off error to stderr, using a `StderrHandler` with level `WARNING`.
`transformers` sets a default `StreamHandler` [here](https://github.com/huggingface/transformers/blob/5c6eca71a983bae2589eed01e5c04fcf88ba5690/src/transformers/utils/logging.py#L86)
Hi! This should disable the tqdm output:
```python
import datasets
datasets.set_progress_bar_enabled(False)
```
On a side note: I believe the issue with logging (not tqdm) is still relevant on master. | [
-0.1961633563,
-0.1857534349,
0.1107906997,
0.1480395347,
0.3297184408,
-0.0822730809,
0.5039986372,
0.1595654935,
-0.3525215089,
0.0196760632,
-0.0581963211,
0.399209708,
-0.3322144449,
0.0895238668,
-0.2066877037,
-0.0721537992,
-0.058295887,
-0.1462147683,
-0.7243365049,
0.0119108586,
0.0195579026,
0.1667651236,
-0.2251543552,
-0.031043984,
-0.8175339103,
0.0477159806,
0.2403510064,
0.1338019967,
0.1247156411,
-0.4091968238,
-0.0588396601,
-0.1771489382,
0.4029044807,
0.6211341023,
-0.0001126207,
0.1644097567,
0.4035289586,
0.0473798625,
-0.3274334073,
-0.1172753498,
-0.1890805662,
-0.5097723603,
0.3058555126,
0.0477108136,
0.1475171894,
-0.2378340811,
0.0696509033,
-0.1291805655,
0.4339437485,
0.2530436814,
0.2087229639,
0.2816488147,
-0.1198411584,
0.2419211417,
0.0305376798,
0.0303583723,
-0.2681499124,
-0.0914775729,
0.234440133,
0.04888447,
-0.431172967,
0.1941686124,
0.0194285288,
0.0654404014,
0.100202933,
0.1689887643,
0.5666247606,
-0.2679892778,
0.2360869795,
0.1478899419,
0.5088433027,
-0.3595345914,
-0.3113981783,
-0.2981718481,
-0.1628542393,
-0.2935989499,
0.3128691018,
-0.1524336189,
-0.3761095703,
0.1747972518,
-0.281096518,
0.2337384969,
-0.1563789845,
-0.026814675,
-0.2850452662,
0.2692166269,
-0.1607904136,
-0.0963200554,
-0.230442062,
0.1415987462,
0.3597265482,
0.0579433516,
0.0447675735,
0.0487124734,
-0.6872739792,
0.0309154633,
0.5648555756,
-0.0083829546,
-0.2129124999,
0.2596914768,
-0.3558064997,
0.199855864,
0.1467000842,
0.0373594053,
0.3965775967,
0.1945798844,
0.2000785321,
0.4663998783,
0.2577107251,
-0.1843630075,
0.0969062373,
0.0672743618,
0.2396026254,
-0.2853832543,
0.7518729568,
0.3262871504,
0.3374951184,
-0.1994033158,
0.1333765984,
0.0334257297,
0.1421457678,
0.0238743667,
-0.101698339,
0.2498169392,
0.1464495808,
0.0842106715,
-0.2175175548,
0.2263492048,
-0.1252815425,
-0.0578345172,
-0.1602466255,
-0.3468601406,
-0.190757066,
-0.0038838575,
0.2922644913,
0.0947797969,
0.1197686642,
0.2418020368,
0.1227587014,
-0.0453737639,
0.2539858818,
-0.0451223254,
0.1802020967,
0.3891865313,
-0.1877996027,
0.3774584532,
0.1221590936,
-0.2311724573,
-0.1906292886,
0.2874311805,
0.052711118,
-0.2976287603,
-0.0702843517,
0.1449474543,
-0.2183813304,
0.0385470204,
-0.3331750929,
0.1909692436,
0.4282231331,
0.208495155,
0.1515868306,
-0.2178487331,
0.0772169456,
-0.0886495188,
0.1347336918,
0.2895293832,
-0.2243279368,
-0.3214562237,
-0.455884546,
-0.0703273863,
0.4135141671,
-0.100046061,
0.0729910284,
0.3193697333,
-0.1175439358,
-0.1573953778,
0.3047193885,
-0.239462465,
-0.1108431593,
0.20098643,
-0.2378265113,
0.2311310768,
0.2109930813,
-0.0107222227,
0.2284746915,
-0.1858540028,
0.0317301713,
-0.0965959355,
-0.0761840567,
-0.0115276519,
-0.2013271898,
0.1903136969,
-0.0280960295,
0.0513512902,
0.2954562902,
-0.1307560652,
-0.0628356263,
-0.2544026971,
0.275763005,
0.0596943758,
0.2939059734,
0.3580636382,
0.049614843,
-0.2431004643,
0.0570561513,
-0.2956660688,
-0.271045506,
0.1286031157,
-0.0687122345,
0.3166913688,
-0.1662700325,
-0.1360493153,
-0.1555981338,
-0.0677530691,
-0.2247301042,
-0.3235753477,
0.125248,
0.1171188951,
-0.4840777516,
-0.1226033121,
-0.4014332294,
0.0886065587,
0.0570011362,
0.1415704787,
-0.075730674,
0.1488711238,
0.1120222732,
-0.2919692993,
0.1143543795,
0.1264327168,
0.1433573663,
0.2091688365,
-0.0441684201,
0.1328215003,
-0.012858863,
0.3123264909,
-0.035526704,
0.2624205351,
0.0120606013,
-0.2896256149,
-0.167687729,
0.4245972931,
-0.2647577226,
0.2080603093,
0.0324226618,
0.0356399193,
0.1069640592,
0.230978623,
-0.2238096893,
0.1077127457,
-0.06757164,
-0.1784480065,
-0.1800573766,
-0.2999486029,
0.0748855546,
0.0032702964,
0.1082234308,
-0.1484939903,
0.0070482688,
0.3163109124,
0.4622621536,
-0.0315824971,
0.1585717797,
-0.0436265506,
-0.2921993136,
0.1187112182,
0.1890001297,
0.1749476939,
0.311992228,
0.1866185814,
0.4512998462,
0.1608061492,
-0.0904000625,
-0.0431505106,
0.0107073281,
0.2198345512,
-0.348957628,
0.3686017692,
0.0724783316,
0.0651266277,
-0.1239085644,
0.0399239883,
-0.3184745312,
0.1378660649,
-0.4924424887,
0.1809548289,
-0.3752940297,
-0.1004271135,
-0.3149752915,
-0.1193742976,
-0.3806524277,
-0.2864052653,
0.1889884621,
-0.0876627192,
-0.2258026451,
0.3630397022,
0.0304592252,
-0.1375471652,
0.1519266218,
0.0302969497,
-0.3355329931,
0.0377982259,
-0.2157173455,
0.0924031809,
0.0885363519,
-0.0445696972,
0.138110131,
-0.0509385765,
-0.0554662645,
0.1526847631,
-0.2914133966,
0.2315916717,
-0.1484283954,
0.3853769302,
-0.2647820115,
-0.2195252031,
0.094779022,
0.181689769,
-0.1378816813,
-0.12463893,
0.0160610136,
0.1018251106,
-0.0249028858,
0.2027849853,
-0.1329836994,
-0.0404178463,
0.0034178151,
-0.4241658151,
-0.165181607,
-0.178450644,
0.1941048056,
0.2435720116,
-0.3272632658,
0.1154976115,
-0.12528494,
0.3236820996,
0.2372187078,
-0.2294474691,
0.3142244816,
-0.2238785028,
-0.2484490871,
-0.0604177453,
-0.0575500764,
-0.1547347009,
-0.2085781544,
-0.3361052275,
-0.0273783207,
-0.1448060274,
-0.2392135561,
0.031408336,
0.3288428187,
0.2584890127,
0.270768851,
-0.0694302991,
-0.0711977631,
-0.0978965387,
-0.2681844532,
0.1198683158,
0.2962121367,
-0.3872793913,
0.088902846,
0.1711235642,
0.3883064091,
0.4493604898,
0.2492601573,
-0.1704487801,
-0.1095234677,
0.3249649107,
-0.0348287039,
-0.2589970529,
-0.1947960705,
-0.1468947828,
-0.3472493887,
-0.0088690314,
0.1961155534,
0.2174591869,
-0.0287772734,
0.0791741386,
-0.0513108596,
-0.5034841299,
-0.0623768084,
-0.1443232298,
0.1756955385,
-0.0964425057,
0.3766073287,
0.0187509451,
-0.0732799619,
0.2524951994,
0.3827595711,
-0.0639746264,
-0.0664973706,
-0.1494811028,
0.166939944,
-0.5749861598,
0.1804862022,
-0.00246862,
0.0653375909,
-0.0550615229,
-0.3285676837,
0.073032409,
0.2261092365,
-0.1033226773,
-0.2599753439,
0.2726208866,
0.2039389163,
-0.2371487468,
-0.3963547051,
-0.005446977,
-0.2748857141,
0.170263648,
0.3141650856,
0.2266979218,
-0.1219796985,
-0.1570805758,
-0.0364518426,
-0.0356064998,
-0.1076768935,
-0.3378561139,
-0.5515537858,
0.0816356912,
-0.1018339694,
-0.0496887974,
0.0549887642,
-0.0592885911,
-0.3294769526,
-0.2831895947,
0.1672189683,
-0.3535061479,
0.1641711742,
0.0318363011,
0.1157336161,
-0.1857441962,
0.2030361444,
0.0634599328,
0.0408332199,
-0.0778930113,
0.491271168,
0.1930338889,
-0.1023406982,
0.370061785,
-0.075470157,
0.1679158956,
0.1757357121,
-0.2728309631,
0.0717345923,
-0.0241903495,
0.3866860867,
-0.0995910689,
0.0813370049,
0.1862985194,
0.2269230038,
-0.3436920345,
0.2234024405,
0.3645221293,
-0.0653695911,
-0.0048405128,
0.7308556437,
0.0372432247,
-0.2419329733,
0.0367362909,
-0.0457724966,
0.6684453487,
0.1272699386,
0.2077758312,
0.0490635633,
-0.3366006911,
-0.0657542497,
0.199098289,
0.3491119742,
-0.3315870166,
-0.324454993,
-0.0279226024,
-0.2696394324,
0.0842639133,
-0.027997138,
-0.0918725953,
0.1137739494,
-0.2605959773,
0.2910765707,
-0.0190989561,
-0.1456768811,
-0.1698201448,
-0.1497371197,
-0.5263047814,
0.0916785225,
0.1441034377,
0.0665248185,
-0.0869636387,
-0.1628835052,
0.0057305624,
0.0157698691,
-0.0776953176,
-0.1015292853,
0.2578279972,
-0.1000359729,
0.5574995875,
-0.3090310991,
0.150200516,
-0.0952072889,
0.2840366364,
-0.1165356487,
-0.0975286663,
0.0131452801,
-0.0671390966,
0.479853183,
0.097673595,
-0.1111240759,
0.3638756275,
-0.0362658836,
-0.2045068741,
0.4282309115,
0.0143768005,
-0.2551030815,
0.1243160591,
0.201811254,
-0.1475164592,
-0.0404093266,
0.8456221223,
0.1231592298,
0.176518932,
-0.0572028719,
0.2015036345,
0.2165736854,
-0.0584447309,
0.4912704825,
-0.3008292615,
-0.3339728117,
-0.2129926383,
0.2960385382,
0.009417275,
0.2528944016,
0.2217015773,
0.1813558638,
-0.2009628713,
-0.1219414845,
0.2347412556,
0.0803650022,
-0.3305113316,
0.2359549999,
-0.2519758642,
-0.0890440419,
0.3406769335,
0.421031028,
-0.0165953599,
-0.2075024396,
-0.5048399568,
-0.0159318335,
-0.5521244407,
0.0829137117,
-0.2067285329,
-0.0136295874,
-0.2634498775,
0.4143553972,
0.2472213656,
0.2391422689,
-0.334117949,
-0.5531686544,
-0.1241374835,
0.152840659,
0.1072281823,
-0.2512362301,
0.3360320032,
-0.0165875517,
0.0369953588,
-0.0179129485,
-0.3290500045,
-0.2320440114,
-0.1181193367,
0.1166912988,
0.036631234,
-0.0243625175,
-0.110221304,
0.0461446047,
-0.0882175788,
-0.0913119689,
0.3827036917,
0.317550391,
0.0605724081,
0.5542632341,
-0.0787119493,
-0.1484900266,
-0.1171173826,
-0.2765644193,
0.1004372612,
-0.1241924763,
0.0069083064,
0.1257523596,
-0.0185287856,
0.1696635187,
0.0010980815,
0.2284828573,
-0.0275030956,
0.0902504101,
0.4021543264,
-0.0842746645,
-0.126833722,
-0.0521081574,
0.4257089198,
-0.0859896317,
-0.0545711033,
-0.299102217,
-0.2508809865,
0.1891405731,
-0.1044639945,
-0.0318037458,
-0.2070009857,
0.2434494048,
0.1898573786,
0.4285847247,
-0.1692038029,
-0.2642276883,
0.4354715049,
0.2693842947,
-0.0589519851,
-0.1638072878,
0.0890205279,
0.0856668577,
-0.1794436276,
0.1788672209,
0.5249552131,
0.0401609056,
0.1674101949,
0.2536834478,
0.3552282155,
0.1408791989,
-0.2394657433,
-0.1154941171,
-0.0164060816,
-0.2545681,
0.1217872128,
-0.1718849391,
-0.0889642164,
-0.2387003899,
0.0859351754,
-0.2013282329,
0.2394303232,
0.0593886636,
-0.2079904228,
-0.0055801286,
-0.056030456,
0.0395056158,
0.3460776508,
-0.0310896505,
-0.0123529835,
-0.1913210154,
-0.0303200521,
-0.0126691181,
0.0292806458,
0.0734558254,
0.0274573006,
-0.2334035486,
-0.0338891521,
0.2475496531,
0.1920428872,
-0.037652012,
-0.0200013872,
0.2935316861,
0.0096717607,
0.0033832316,
0.1008250415,
0.3908559978,
0.0871592313,
-0.1549084485,
0.0905953869,
0.2241156846,
-0.0286108553,
-0.0741276592,
0.4661818743,
-0.26646927,
0.0645940006,
0.2407117039,
0.1149184182,
-0.1689732671,
0.0266748816,
-0.120039627,
0.0290548448,
-0.3905908465,
0.8479678631,
0.0627717301,
-0.0618459955,
0.0744124725,
-0.1901253164,
-0.3866170645,
-0.3590686619,
0.720698297,
-0.0944448113,
0.0183460414,
-0.272331059,
0.0844468102,
-0.1669284105,
0.0785482973,
0.324651897,
0.2681674063,
-0.1473264992,
-0.0085494854,
-0.4204918146,
0.2652258873,
0.204814598,
-0.1209151819,
0.1775221676,
0.0182782933,
-0.1131195948,
0.3824795783,
0.6244670749,
-0.1127403378,
-0.0824129507,
-0.0990212709,
-0.1676760018,
-0.1377155185,
-0.2391481996,
-0.0325118527,
-0.232686162,
-0.3247477114,
0.2089240551,
-0.1877087206,
0.1510825157,
0.2010430694,
-0.3376704752,
0.3173327744,
0.4014855027,
0.2254457027,
0.0975405425,
0.083330743,
-0.0098109702,
-0.1364953816,
-0.1826261282,
0.0017618194,
-0.3346559405,
-0.0760263577,
-0.1681056023,
0.4734505713,
-0.1964543015,
-0.1631289274,
-0.2948509157,
0.0699524879,
0.1695719808,
-0.1433115602,
-0.0013763141,
0.2724800408,
-0.1496548355,
0.0877689496,
0.0827864036,
0.2244679779,
0.2807016075,
0.3706337512,
-0.3903216422,
-0.5108885765,
0.4370248318,
-0.5475533605,
-0.3706659079,
-0.3639186323,
0.5380946994,
0.1854427606,
-0.2689963579,
-0.4976948202,
-0.1439243406,
0.2822756469,
-0.1713411212,
0.064466469,
0.2748455107,
-0.3098721206,
0.1819918007,
0.0018415258,
0.0659837872,
0.1608038098,
0.0745948479,
-0.0785980672,
-0.2419644445
] |
https://github.com/huggingface/datasets/issues/2831 | ArrowInvalid when mapping dataset with missing values | Hi ! It fails because of the feature type inference.
Because the first 1000 examples all have null values in the "match" field, then it infers that the type for this field is `null` type before writing the data on disk. But as soon as it tries to map an example with a non-null "match" field, then it fails.
To fix that you can either:
- increase the writer_batch_size to >2000 (default is 1000) so that some non-null values will be in the first batch written to disk
```python
datasets = datasets.map(lambda e: {'labels': e['match']}, remove_columns=['id'], writer_batch_size=2000)
```
- OR force the feature type with:
```python
from datasets import Features, Value
features = Features({
'conflict': Value('int64'),
'date': Value('string'),
'headline': Value('string'),
'match': Value('float64'),
'label': Value('float64')
})
datasets = datasets.map(lambda e: {'labels': e['match']}, remove_columns=['id'], features=features)
``` | ## Describe the bug
I encountered an `ArrowInvalid` when mapping dataset with missing values.
Here are the files for a minimal example. The exception is only thrown when the first line in the csv has a missing value (if you move the last line to the top it isn't thrown).
[data_small.csv](https://github.com/huggingface/datasets/files/7037838/data_small.csv)
[data.csv](https://github.com/huggingface/datasets/files/7037842/data.csv)
## Steps to reproduce the bug
```python
from datasets import load_dataset
datasets = load_dataset("csv", data_files=['data_small.csv'])
datasets = datasets.map(lambda e: {'labels': e['match']},
remove_columns=['id'])
```
## Expected results
No error
## Actual results
```
File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Invalid null value
```
## Environment info
- `datasets` version: 1.5.0
- Platform: Linux-5.11.0-25-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyTorch version (GPU?): 1.7.1+cpu (False)
- Tensorflow version (GPU?): 2.4.1 (False)
- Using GPU in script?: no
- Using distributed or parallel set-up in script?: no
| 134 | ArrowInvalid when mapping dataset with missing values
## Describe the bug
I encountered an `ArrowInvalid` when mapping dataset with missing values.
Here are the files for a minimal example. The exception is only thrown when the first line in the csv has a missing value (if you move the last line to the top it isn't thrown).
[data_small.csv](https://github.com/huggingface/datasets/files/7037838/data_small.csv)
[data.csv](https://github.com/huggingface/datasets/files/7037842/data.csv)
## Steps to reproduce the bug
```python
from datasets import load_dataset
datasets = load_dataset("csv", data_files=['data_small.csv'])
datasets = datasets.map(lambda e: {'labels': e['match']},
remove_columns=['id'])
```
## Expected results
No error
## Actual results
```
File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Invalid null value
```
## Environment info
- `datasets` version: 1.5.0
- Platform: Linux-5.11.0-25-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyTorch version (GPU?): 1.7.1+cpu (False)
- Tensorflow version (GPU?): 2.4.1 (False)
- Using GPU in script?: no
- Using distributed or parallel set-up in script?: no
Hi ! It fails because of the feature type inference.
Because the first 1000 examples all have null values in the "match" field, then it infers that the type for this field is `null` type before writing the data on disk. But as soon as it tries to map an example with a non-null "match" field, then it fails.
To fix that you can either:
- increase the writer_batch_size to >2000 (default is 1000) so that some non-null values will be in the first batch written to disk
```python
datasets = datasets.map(lambda e: {'labels': e['match']}, remove_columns=['id'], writer_batch_size=2000)
```
- OR force the feature type with:
```python
from datasets import Features, Value
features = Features({
'conflict': Value('int64'),
'date': Value('string'),
'headline': Value('string'),
'match': Value('float64'),
'label': Value('float64')
})
datasets = datasets.map(lambda e: {'labels': e['match']}, remove_columns=['id'], features=features)
``` | [
-0.03272672,
-0.153125599,
0.1040896326,
0.2286235839,
0.0726002157,
0.1366069913,
0.3329793215,
0.4905760586,
-0.0207699779,
0.2300734818,
0.2338508219,
0.4390176833,
0.0271517597,
-0.1494163424,
-0.1128670499,
-0.0434915684,
0.0362380184,
0.1175364777,
-0.0013273309,
-0.0447311401,
-0.3787420988,
0.0844398513,
-0.3389021456,
0.0575108379,
-0.3012345433,
-0.1077295765,
-0.0090294061,
0.0034836505,
0.1298889667,
-0.4910511076,
0.2923191488,
-0.5293872952,
-0.1505015641,
0.1626196355,
-0.0001158711,
-0.0339868814,
0.2518497705,
0.0519127809,
-0.0784550607,
-0.2758249342,
-0.156817615,
-0.2185930163,
-0.0141735366,
-0.1653569788,
0.1762025207,
-0.0375167392,
0.0760232359,
-0.1961082369,
-0.0201380923,
0.2709064782,
0.1460494995,
0.4126615822,
0.2178691924,
0.0892385691,
0.4545614123,
0.05079142,
-0.2142464668,
0.3872685432,
0.1501770169,
-0.2261422426,
0.1055752188,
0.3145457208,
-0.0312070586,
0.0160816107,
0.3101094365,
0.1767361164,
-0.0633133575,
-0.2293645591,
-0.0956781283,
0.1412267089,
0.1213128641,
-0.4014455974,
-0.4302619994,
-0.2851820588,
0.0836299956,
-0.3390867412,
0.3403959274,
0.1685681045,
-0.1564162374,
0.1623666734,
0.1155145317,
0.2014277279,
-0.1928487271,
0.1499878317,
-0.104282774,
0.0833819434,
0.050350558,
0.2609375715,
-0.0560739748,
-0.2023004442,
-0.2976313233,
-0.1810261756,
0.0063063772,
0.2630151808,
-0.3672582507,
-0.2198307812,
-0.1504852027,
-0.156058535,
0.1592743248,
-0.2276546657,
0.2990320325,
-0.1067542508,
0.0777330101,
0.4128787816,
0.0608040281,
-0.150610283,
0.1527080834,
0.1083262488,
0.1780027002,
-0.4061114192,
0.2636465132,
-0.0342920125,
0.1340158582,
-0.5859511495,
0.5141164064,
0.2606021762,
0.6728465557,
-0.1126294732,
-0.4689024985,
0.1276105791,
-0.7892330289,
0.3337590992,
-0.1357806027,
0.1627141535,
0.0130746383,
0.086391747,
0.0484194905,
0.2774146795,
-0.16206792,
-0.2743251622,
0.01472547,
-0.0746785849,
-0.0540681891,
-0.0446718261,
0.3431840539,
-0.189889878,
0.2458142489,
0.1759654582,
-0.112278752,
-0.0045988588,
0.2626315653,
-0.3046375811,
0.1480023712,
0.1737486571,
-0.4271009862,
0.2794368267,
0.0387198813,
-0.1465892196,
-0.1892317384,
0.2775795758,
-0.1205458269,
-0.1588581949,
-0.2165753394,
0.1482956707,
0.0022296733,
-0.2128340155,
-0.0540002584,
-0.0019998439,
0.2423746586,
-0.1734903902,
0.1846102774,
-0.2199791521,
0.0187500883,
-0.3760904968,
-0.0113684684,
0.3736340404,
-0.6385914087,
0.0708365366,
0.1267939806,
-0.0185739398,
-0.0337319858,
0.3634842932,
-0.1870691329,
-0.0136713246,
-0.0591619797,
0.5252672434,
-0.008646437,
-0.1326468885,
-0.4373972118,
0.1313861907,
-0.0743958429,
-0.2444545627,
0.0401039422,
0.2435704619,
0.1417696476,
-0.149662599,
-0.0173344444,
-0.1213849112,
-0.1300855726,
0.2243185937,
-0.3260704279,
-0.0411788039,
0.1720778197,
0.0506167747,
-0.1469436735,
-0.210932821,
0.194535926,
-0.6835864186,
0.0329081267,
-0.2068122029,
0.2666673064,
0.3962261379,
0.4044356644,
-0.046576295,
0.155202359,
-0.1333546489,
-0.8110237718,
0.1985866278,
0.1008473262,
-0.1821601987,
-0.4811460078,
-0.4098101854,
-0.1061266512,
0.3230983913,
0.1690467596,
0.1539754868,
0.0751770139,
-0.0067513273,
-0.1226851791,
-0.0598928407,
-0.2849859595,
-0.2986541688,
-0.2172648311,
0.186548695,
-0.2249356508,
0.2575949132,
-0.0139211938,
-0.216779843,
-0.096074976,
0.0344258882,
0.1761992425,
-0.1273742914,
0.013591405,
0.4820093215,
0.10676191,
0.1463912278,
-0.118271172,
0.0272356067,
0.3414061964,
-0.4875244796,
-0.2777241766,
0.3717953265,
0.3092471063,
0.0654945746,
-0.1880117208,
0.367031157,
-0.0085762097,
0.1426619589,
-0.2432318479,
-0.0240109134,
0.0476457439,
-0.0050881314,
-0.1706682742,
-0.0740774423,
-0.0837702826,
-0.0132251112,
0.2308352441,
0.1707010865,
-0.6484630704,
0.0064494675,
0.1777652353,
-0.1262826174,
0.1471400708,
0.0463454202,
-0.2821582556,
0.3659059107,
0.3918357193,
0.0322902165,
0.343752414,
0.1976644695,
-0.0775278807,
0.0050954837,
-0.1521710753,
-0.0824590474,
0.3486303985,
-0.0050708959,
0.0830796063,
0.1302962899,
0.17715168,
0.2778594494,
-0.17541188,
0.0187846441,
0.2271977812,
0.1906453967,
-0.5900597572,
-0.0668672994,
-0.108204022,
0.079159081,
-0.3532578647,
-0.1602438837,
-0.0837708488,
-0.2679263055,
-0.0238325205,
0.1787120998,
-0.4540550709,
0.2962757945,
-0.0503030866,
0.0645017698,
0.2097571194,
-0.2873472273,
-0.1986872703,
-0.1805445999,
-0.2069722712,
0.0005407846,
0.168991223,
-0.0692994222,
0.2951588929,
0.2671792805,
-0.1056488082,
-0.5031930804,
-0.4341720045,
0.0272095799,
-0.2286231071,
0.1287032217,
0.198702693,
0.2116245925,
-0.0771780908,
-0.3438920081,
0.1970792264,
0.0353330597,
-0.2919719815,
0.1465552449,
-0.0171928313,
-0.0445718095,
-0.1751171201,
-0.4850568175,
-0.0388209224,
-0.2281597555,
0.2234226465,
-0.3103991747,
0.0502251461,
0.1630632728,
0.3292429447,
0.1380272955,
-0.117072314,
-0.1576799601,
0.1402169317,
0.2776941955,
0.5713930726,
-0.0197698083,
-0.3324658275,
0.2355106622,
-0.1852096468,
-0.0800571665,
0.4506346583,
-0.2126405537,
-0.0239199493,
-0.1131707877,
0.6397442818,
-0.0702656507,
-0.0265891552,
0.3226295412,
0.2941911519,
0.0133325178,
-0.1408385783,
-0.3169088662,
0.0624888316,
-0.023680741,
0.294080615,
0.0561674982,
0.3970869184,
0.0143701201,
0.7554779053,
0.116319105,
-0.2453815788,
0.1562789679,
-0.21849823,
-0.000891193,
0.1268462837,
-0.1204354987,
-0.1177735776,
-0.1749806404,
-0.0615208112,
-0.1283868104,
-0.191495046,
-0.5315887928,
0.0941081569,
-0.0040598661,
-0.4546511173,
-0.3176426589,
0.2134096026,
-0.0659966543,
0.3006445467,
0.0850825757,
0.0237069614,
-0.2731815875,
-0.0983999446,
0.2626478076,
-0.061985448,
0.2583997548,
-0.1927740574,
0.0116456542,
-0.2957197726,
-0.2309022248,
0.424931258,
0.2806852162,
0.1446987838,
0.1786823422,
-0.2188024074,
-0.0082682883,
0.1248107404,
0.6407935023,
-0.1843992621,
-0.0035300914,
-0.0733777657,
0.0795041099,
-0.4673795998,
0.1887800843,
-0.2618238926,
0.121238023,
0.2620201409,
0.3791089952,
-0.4262298644,
0.04093723,
0.2719635963,
0.0301526003,
0.0009182394,
-0.178876102,
-0.1175879017,
0.0538969487,
-0.1162519529,
-0.0002532591,
0.2568057179,
-0.0368424095,
0.1809670478,
-0.1021703929,
-0.3370204568,
-0.0148666212,
0.0077323131,
-0.0051574428,
0.3421083391,
-0.2208799273,
0.2672511637,
0.0290984809,
0.3201948106,
0.5259215236,
0.3236469626,
0.2308436185,
-0.5913684964,
0.0479080454,
-0.0493215844,
0.3719321787,
0.2339030951,
-0.0153824324,
0.0391952954,
-0.0169088151,
0.075748153,
-0.1975084841,
-0.0415868089,
0.3200694621,
0.161712572,
-0.0220549256,
0.073581554,
0.545021534,
-0.2178988606,
-0.084539324,
0.5981548429,
0.4256736338,
-0.1784009486,
0.3142668307,
0.2651114762,
0.826625824,
0.2423482686,
-0.0428318642,
0.5020027161,
-0.236152038,
0.3753006756,
0.435934037,
0.1408498287,
-0.4725417495,
0.0318131074,
-0.005698021,
-0.0902224034,
0.0566546544,
0.1566031277,
-0.0879653245,
0.1055395082,
0.1479061842,
0.376804471,
0.0117138447,
-0.295443207,
-0.1822735667,
-0.2319571376,
-0.0481274873,
0.0287756044,
0.0588856079,
0.0464368798,
-0.0251410268,
-0.2543235123,
-0.3001088202,
-0.1459304243,
-0.027432682,
-0.0137784947,
-0.6243045926,
0.1249290258,
0.3038369715,
-0.1498275846,
0.1048350558,
0.0283966139,
-0.0029960105,
0.045398958,
-0.1749746203,
-0.0308615547,
0.1676078886,
0.0359348319,
0.1077979729,
-0.126862675,
0.1436228901,
0.0088678394,
-0.3379887044,
0.1709951907,
-0.3489299119,
-0.0887773708,
0.250118196,
-0.0525683016,
-0.2960270643,
-0.0757637694,
-0.1102010459,
-0.1591258496,
-0.1553002,
-0.0104978429,
0.0702020451,
-0.1015282497,
0.0871761665,
-0.0822182447,
-0.1431223303,
-0.2805765569,
0.0563414693,
0.3491202593,
-0.1585403532,
0.2250405699,
0.7464405894,
-0.1259887964,
-0.0978429466,
-0.1068752259,
0.2753214836,
0.2847059071,
-0.751365006,
-0.0339113586,
-0.2546554208,
0.1422489882,
0.0434250906,
0.3635241985,
0.4133289158,
-0.0414072275,
-0.1273893565,
-0.2120482326,
-0.3010552227,
0.2500479519,
0.1703125387,
0.1966130584,
-0.1225018129,
0.1032615975,
0.0622731261,
-0.253541261,
-0.2832321823,
0.1140102521,
-0.0828190595,
0.2677063644,
0.1502026618,
0.2842861712,
-0.0032052202,
-0.2480998486,
0.0826088265,
0.2167167664,
-0.0332854167,
-0.1223517954,
-0.1673523337,
0.1068494022,
-0.0166371074,
0.0131727792,
0.0193716343,
-0.1955144107,
-0.0152199436,
-0.0662604645,
0.0393887982,
0.0908395126,
-0.193599999,
0.3321725726,
0.079507038,
0.132920444,
-0.3743383288,
-0.0004387394,
-0.029772412,
0.0948930159,
-0.1321003437,
0.2827998102,
-0.2116814554,
0.1072416231,
0.0784713477,
0.0996163264,
-0.3790988624,
-0.1276965588,
0.3835835755,
-0.3355986774,
-0.2621273398,
0.2332981229,
0.1428564042,
0.032581646,
-0.2208074927,
0.0428408682,
0.1039243788,
0.20104298,
-0.3584829271,
0.2307638526,
0.0241831411,
0.1520144492,
0.3160282373,
0.130028829,
0.1271677911,
-0.1918480843,
0.0712349415,
-0.0569212325,
0.101578027,
-0.2153933942,
-0.2106614113,
0.50996387,
-0.0421367176,
0.1484284848,
0.3295752406,
0.3196732402,
0.5036204457,
0.0196691696,
0.2491693795,
0.2726068497,
0.1587903202,
0.0403375737,
-0.0816660896,
-0.2444849312,
0.1164991707,
0.1713624597,
-0.1000711545,
-0.0200898293,
0.4890681207,
0.4165970087,
-0.0280173048,
-0.3324064016,
0.1611888707,
-0.0731744543,
-0.2269111276,
0.0226647053,
-0.6775989532,
-0.0025766753,
-0.1935766488,
-0.1397781372,
-0.1691484749,
-0.1219594926,
0.8168908954,
0.2213881016,
-0.0209992323,
-0.3886557817,
0.1076377332,
0.3059972525,
0.4876889288,
-0.2539094985,
0.1352225095,
0.1234416813,
-0.2828819454,
-0.1400595158,
0.4913203716,
0.4069624245,
0.2249290347,
-0.1212656572,
0.0403524339,
-0.0347095914,
-0.054351192,
0.1517040581,
0.1644173414,
0.0987065434,
0.1409578621,
0.3644826114,
0.0870508477,
-0.0920835882,
0.0718835816,
0.0131678227,
0.2570967376,
-0.2345175296,
-0.1019179374,
-0.3865157068,
-0.4380470514,
-0.0280456673,
-0.2071052194,
-0.2199875414,
0.0009459701,
0.4115725756,
0.0882000104,
0.0986719728,
0.1032273695,
0.0817171931,
0.0474652126,
0.2402692139,
0.5085468888,
-0.1268955022,
-0.2856562734,
0.0516219549,
-0.715718329,
0.2013089359,
-0.0577680431,
0.2043699026,
0.2648019195,
0.3000234962,
0.1720285863,
0.2032226175,
0.1652729511,
-0.0015440041,
0.0217055511,
0.2742359638,
-0.1224539801,
-0.1925008595,
-0.0138753736,
-0.2804164886,
0.076769121,
-0.435030818,
0.2325889617,
-0.0922947377,
-0.0119196568,
-0.0938092396,
-0.0700889975,
0.1152581349,
0.0317848548,
0.4940910637,
0.0795047358,
0.1511557102,
0.038688682,
-0.1448906064,
-0.1115941256,
-0.2258876413,
-0.2643375397,
0.2339621931,
0.0837768912,
0.3281964958,
0.095242925,
-0.2597876191,
-0.0061516832,
0.0315794982,
-0.0343180597,
-0.2390243709,
-0.2667893171,
0.3094370663,
-0.2738665342,
-0.0049880757,
-0.1516633779,
0.0633129478,
0.0026380785,
0.1307355464,
-0.3194988072,
-0.4689131081,
0.3250767887,
-0.3774597645,
-0.1080545932,
0.0280196257,
0.3486169875,
0.485396713,
0.1548854858,
-0.5569854975,
-0.1189384833,
0.4156103432,
-0.1695116609,
-0.3143325746,
-0.1939264089,
0.0120867873,
0.0381226428,
0.0517549776,
0.5593419075,
0.1047480702,
0.0732037649,
0.1368071139,
-0.4698799551
] |
https://github.com/huggingface/datasets/issues/2826 | Add a Text Classification dataset: KanHope | Hi ! In your script it looks like you're trying to load the dataset `bn_hate_speech,`, not KanHope.
Moreover the error `KeyError: ' '` means that you have a feature of type ClassLabel, but for a certain example of the dataset, it looks like the label is empty (it's just a string with a space). Can you make sure that the data don't have missing labels, and that your dataset script parses the labels correctly ? | ## Adding a Dataset
- **Name:** *KanHope*
- **Description:** *A code-mixed English-Kannada dataset for Hope speech detection*
- **Paper:** *https://arxiv.org/abs/2108.04616* (I am the author of the paper}
- **Author:** *[AdeepH](https://github.com/adeepH)*
- **Data:** *https://github.com/adeepH/KanHope/tree/main/dataset*
- **Motivation:** *The dataset is amongst the very few resources available for code-mixed Dravidian languages*
- I tried following the steps as per the instructions. However, could not resolve an error. Any help would be appreciated.
- The dataset card and the scripts for the dataset *https://github.com/adeepH/datasets/tree/multilingual-hope-speech/datasets/mhs_eval*
```
Using custom data configuration default
Downloading and preparing dataset bn_hate_speech/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/bn_hate_speech/default/0.0.0/5f417ddc89777278abd29988f909f39495f0ec802090f7d8fa63b5bffb121762...
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-114-4a9cdb519e4c> in <module>()
1 from datasets import load_dataset
2
----> 3 data = load_dataset('/content/bn')
9 frames
/usr/local/lib/python3.7/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs)
850 ignore_verifications=ignore_verifications,
851 try_from_hf_gcs=try_from_hf_gcs,
--> 852 use_auth_token=use_auth_token,
853 )
854
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
614 if not downloaded_from_gcs:
615 self._download_and_prepare(
--> 616 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
617 )
618 # Sync info
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
691 try:
692 # Prepare split will record examples associated to the split
--> 693 self._prepare_split(split_generator, **prepare_split_kwargs)
694 except OSError as e:
695 raise OSError(
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _prepare_split(self, split_generator)
1107 disable=bool(logging.get_verbosity() == logging.NOTSET),
1108 ):
-> 1109 example = self.info.features.encode_example(record)
1110 writer.write(example, key)
1111 finally:
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_example(self, example)
1015 """
1016 example = cast_to_python_objects(example)
-> 1017 return encode_nested_example(self, example)
1018
1019 def encode_batch(self, batch):
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_nested_example(schema, obj)
863 if isinstance(schema, dict):
864 return {
--> 865 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
866 }
867 elif isinstance(schema, (list, tuple)):
/usr/local/lib/python3.7/dist-packages/datasets/features.py in <dictcomp>(.0)
863 if isinstance(schema, dict):
864 return {
--> 865 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
866 }
867 elif isinstance(schema, (list, tuple)):
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_nested_example(schema, obj)
890 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
891 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 892 return schema.encode_example(obj)
893 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
894 return obj
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_example(self, example_data)
665 # If a string is given, convert to associated integer
666 if isinstance(example_data, str):
--> 667 example_data = self.str2int(example_data)
668
669 # Allowing -1 to mean no label.
/usr/local/lib/python3.7/dist-packages/datasets/features.py in str2int(self, values)
623 if value not in self._str2int:
624 value = str(value).strip()
--> 625 output.append(self._str2int[str(value)])
626 else:
627 # No names provided, try to integerize
KeyError: ' '
``` | 75 | Add a Text Classification dataset: KanHope
## Adding a Dataset
- **Name:** *KanHope*
- **Description:** *A code-mixed English-Kannada dataset for Hope speech detection*
- **Paper:** *https://arxiv.org/abs/2108.04616* (I am the author of the paper}
- **Author:** *[AdeepH](https://github.com/adeepH)*
- **Data:** *https://github.com/adeepH/KanHope/tree/main/dataset*
- **Motivation:** *The dataset is amongst the very few resources available for code-mixed Dravidian languages*
- I tried following the steps as per the instructions. However, could not resolve an error. Any help would be appreciated.
- The dataset card and the scripts for the dataset *https://github.com/adeepH/datasets/tree/multilingual-hope-speech/datasets/mhs_eval*
```
Using custom data configuration default
Downloading and preparing dataset bn_hate_speech/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/bn_hate_speech/default/0.0.0/5f417ddc89777278abd29988f909f39495f0ec802090f7d8fa63b5bffb121762...
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-114-4a9cdb519e4c> in <module>()
1 from datasets import load_dataset
2
----> 3 data = load_dataset('/content/bn')
9 frames
/usr/local/lib/python3.7/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs)
850 ignore_verifications=ignore_verifications,
851 try_from_hf_gcs=try_from_hf_gcs,
--> 852 use_auth_token=use_auth_token,
853 )
854
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
614 if not downloaded_from_gcs:
615 self._download_and_prepare(
--> 616 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
617 )
618 # Sync info
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
691 try:
692 # Prepare split will record examples associated to the split
--> 693 self._prepare_split(split_generator, **prepare_split_kwargs)
694 except OSError as e:
695 raise OSError(
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _prepare_split(self, split_generator)
1107 disable=bool(logging.get_verbosity() == logging.NOTSET),
1108 ):
-> 1109 example = self.info.features.encode_example(record)
1110 writer.write(example, key)
1111 finally:
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_example(self, example)
1015 """
1016 example = cast_to_python_objects(example)
-> 1017 return encode_nested_example(self, example)
1018
1019 def encode_batch(self, batch):
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_nested_example(schema, obj)
863 if isinstance(schema, dict):
864 return {
--> 865 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
866 }
867 elif isinstance(schema, (list, tuple)):
/usr/local/lib/python3.7/dist-packages/datasets/features.py in <dictcomp>(.0)
863 if isinstance(schema, dict):
864 return {
--> 865 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
866 }
867 elif isinstance(schema, (list, tuple)):
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_nested_example(schema, obj)
890 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
891 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 892 return schema.encode_example(obj)
893 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
894 return obj
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_example(self, example_data)
665 # If a string is given, convert to associated integer
666 if isinstance(example_data, str):
--> 667 example_data = self.str2int(example_data)
668
669 # Allowing -1 to mean no label.
/usr/local/lib/python3.7/dist-packages/datasets/features.py in str2int(self, values)
623 if value not in self._str2int:
624 value = str(value).strip()
--> 625 output.append(self._str2int[str(value)])
626 else:
627 # No names provided, try to integerize
KeyError: ' '
```
Hi ! In your script it looks like you're trying to load the dataset `bn_hate_speech,`, not KanHope.
Moreover the error `KeyError: ' '` means that you have a feature of type ClassLabel, but for a certain example of the dataset, it looks like the label is empty (it's just a string with a space). Can you make sure that the data don't have missing labels, and that your dataset script parses the labels correctly ? | [
-0.2438095361,
-0.0837457851,
-0.1076410487,
0.168150574,
0.2711260915,
0.0154425288,
0.1767384857,
0.4127869606,
0.146568045,
0.0868590027,
-0.1648918986,
-0.0779900402,
-0.2590736151,
0.2801797092,
-0.2317630202,
-0.2915209532,
-0.0884709507,
0.1522611678,
-0.1177388802,
-0.0643953755,
-0.0891422406,
0.3205003738,
-0.1597217172,
0.1476867348,
-0.2826567292,
-0.3294515908,
-0.1136718243,
0.0935219824,
-0.3491751552,
-0.4404599369,
0.2650223076,
-0.0528074242,
0.1387759298,
0.3857924938,
-0.0001095746,
-0.0700783953,
0.310121268,
-0.175164789,
-0.3034772575,
-0.298186779,
-0.0789674744,
-0.0469494909,
-0.0233720969,
-0.3721514642,
-0.2534296215,
0.1050640941,
-0.0610323548,
-0.4590237737,
0.5346909761,
0.6502833366,
0.2297912091,
0.0913035572,
0.3871515095,
-0.2322712988,
0.0315535516,
0.2178066522,
-0.2045285553,
0.3952793479,
0.2633343637,
-0.125778228,
0.0324166305,
0.3559171855,
0.0472593047,
0.1438393146,
0.2195971012,
-0.0154395318,
0.1111361533,
-0.2860586643,
0.2297819853,
0.1622225344,
0.3204843402,
-0.421191901,
-0.1435186416,
-0.1698825806,
0.0571509115,
-0.370362401,
0.3384321332,
0.0452005379,
-0.3210281432,
0.2198124379,
0.2442412227,
-0.0520663373,
-0.1897223443,
0.127573505,
0.2060874552,
0.3765226603,
-0.1028695181,
0.0157829374,
-0.0386534259,
-0.1966774017,
0.0999089107,
-0.2033937424,
0.0466273613,
0.2891247571,
-0.3035183549,
-0.0678536072,
0.039192237,
-0.179828614,
0.1154341102,
-0.2513124645,
-0.0251798816,
0.0710902214,
0.0023850549,
0.0093137547,
0.0932091847,
0.1263340712,
0.2573831975,
0.2938034534,
0.3097373247,
0.2206830233,
-0.0685123578,
0.0444706455,
0.0038334408,
-0.099894613,
0.0476475023,
0.1706874669,
0.2578558922,
-0.1094403714,
-0.3618175089,
0.0034742635,
-0.0324976481,
0.0244200137,
-0.0002830751,
0.3031307459,
0.1252114326,
-0.1238036826,
0.1699263304,
0.2675575018,
-0.1435548812,
-0.324787885,
-0.1181279942,
0.3308375776,
-0.1890408248,
-0.1475581825,
0.2492349744,
-0.1676842421,
-0.0145408334,
-0.078594178,
0.1480417699,
-0.0763949454,
-0.1346727163,
-0.1982851028,
-0.1027284563,
0.1339933872,
-0.0330299698,
0.0655059367,
0.3730123043,
-0.5284395218,
-0.1443894506,
0.0546987802,
-0.0276942346,
-0.2500070035,
-0.0474637002,
0.2256289423,
0.0221190732,
0.0573183224,
-0.349101752,
0.4549744725,
0.2764906585,
-0.030475121,
-0.0142187402,
-0.2228379697,
-0.0456284471,
-0.1861784756,
0.1986178011,
0.5018199086,
-0.3949009478,
-0.0255266707,
-0.2958820164,
-0.0158854071,
0.1709474623,
0.328666687,
-0.129621312,
0.3348803818,
-0.3377100527,
0.268073678,
0.3865486085,
-0.3286773562,
-0.265244782,
0.0421012156,
-0.0843797252,
-0.016684752,
0.1469515115,
-0.0085748397,
0.1543227285,
0.0568279549,
0.212637648,
0.1990093887,
0.0098340884,
0.0903027207,
-0.2157631516,
0.0875526741,
0.2370744646,
0.1217465103,
0.2510005832,
-0.0429096259,
0.1854169071,
0.1080474481,
0.2132852226,
-0.315705508,
0.3144258559,
0.0235331412,
0.2331555933,
-0.0648790225,
-0.0976155251,
-0.3182426095,
-0.0340651236,
0.1612090617,
-0.0904947743,
0.3825848103,
-0.5090475082,
-0.1393895745,
-0.4510042071,
0.0097898766,
-0.4143908024,
-0.2540184259,
0.2000551671,
0.0524614751,
0.1434838474,
0.1402626187,
-0.1512690037,
0.5673837662,
-0.3430079222,
0.0166805089,
-0.0704815909,
0.3489121199,
-0.3280907273,
-0.2981007993,
0.2780770659,
0.2281982303,
0.0782784894,
-0.1092453152,
-0.1381416619,
0.2861901224,
-0.253243506,
0.0027439795,
0.1318635494,
-0.218934685,
-0.023549065,
-0.4651159048,
0.1460891515,
0.181554243,
0.2387863398,
-0.1993081123,
0.0126367351,
0.4493563473,
0.3232341111,
0.1039567962,
-0.0041024447,
0.0095628742,
0.4009861052,
0.0525740758,
-0.0183920711,
-0.1986188889,
0.2568436861,
-0.0751993209,
0.2822487056,
-0.2066950798,
-0.2829217315,
0.0135723269,
0.3775029778,
0.0491404049,
0.447191447,
0.1533785462,
-0.1032969728,
-0.0195986722,
-0.1601634771,
0.1207777709,
0.3303128779,
0.0281340107,
-0.0462332144,
0.2144806683,
-0.1015013158,
-0.1845666915,
0.2178308517,
-0.0088697365,
0.0528018177,
0.2028616965,
0.1282222718,
-0.0992851779,
-0.3807554841,
-0.2188044786,
-0.0102535104,
0.3387618959,
-0.2657981217,
0.0051067802,
-0.1271506101,
-0.3741123974,
-0.199612096,
0.2105916888,
-0.1274861544,
-0.2177485973,
0.0389077775,
-0.0407141224,
0.029098833,
0.132751897,
0.0913390294,
0.0010962612,
0.1120709404,
-0.1972097009,
-0.0206984878,
-0.2795614302,
-0.1944819391,
0.1158320755,
0.3588796258,
0.1520618796,
0.4850720763,
-0.3050046265,
0.0137912463,
-0.1548304856,
-0.44965747,
-0.0058445539,
-0.3447463214,
0.0721904784,
0.0923592001,
0.2036584616,
-0.0428535789,
-0.459579885,
0.3144107163,
-0.0724989772,
-0.3400884569,
0.1471817642,
-0.0350827798,
-0.0772239864,
-0.0065321452,
-0.7115238309,
-0.3026193082,
-0.375590235,
-0.0545473956,
-0.1178928614,
0.1017841026,
0.0756664649,
0.22192581,
0.2336646169,
0.0522236042,
0.1142272875,
-0.2015265226,
-0.2000743747,
0.3361238241,
-0.3108822703,
-0.3760727942,
0.0944503695,
-0.1340973824,
0.3507674038,
-0.2822908759,
-0.369214505,
0.2077043951,
-0.2674364448,
0.4491764605,
0.092662625,
-0.1399542689,
0.3198356032,
0.0110753058,
-0.0922598839,
0.0202654898,
-0.2211429477,
0.1299606562,
-0.0406079516,
0.3319701254,
0.0096703693,
0.4739270806,
0.0118619986,
0.6238942742,
0.2154700011,
0.0228205323,
0.4156720936,
0.1736144871,
0.2669262588,
-0.3062384427,
-0.4208290875,
0.2276844978,
-0.0628333464,
0.1196227595,
0.0323036201,
-0.1091859862,
-0.2895948291,
-0.3509961069,
-0.3293343484,
-0.2467866242,
-0.3040596247,
0.1780604571,
-0.1339371651,
0.3296233118,
-0.1510361582,
-0.1977495402,
-0.1477028131,
0.0920327976,
-0.0135461008,
0.3433565199,
-0.318300426,
0.0888779163,
-0.3328641355,
-0.2641271055,
-0.4069666862,
0.2210449129,
0.1843546927,
0.0799062699,
-0.3019347489,
0.198807463,
-0.0035240105,
-0.0613080114,
0.1738232523,
-0.1815274209,
0.2074806541,
0.2146143317,
0.0727862045,
-0.0819837898,
0.0115700895,
-0.3653076887,
0.1526087373,
0.225694254,
0.1723298132,
-0.4129525125,
0.0829492137,
0.0229443014,
0.1335792989,
-0.1013846099,
-0.0803677961,
-0.108610712,
-0.361846596,
-0.5332008004,
0.2236563116,
0.3853726089,
0.4265888333,
-0.0034148546,
0.2268607169,
0.1188861206,
-0.0876853019,
0.1869895756,
0.1162842959,
0.0482705273,
0.1831129789,
0.1843985319,
0.0821006745,
0.0087143769,
-0.0682032928,
0.650170505,
0.2422443628,
-0.5056648254,
-0.1315884441,
-0.2369924039,
0.1060503796,
0.1945038885,
-0.0631327927,
0.0218659192,
-0.0195109192,
-0.0468127765,
0.0710325614,
0.2546419501,
0.2530527711,
0.3129630089,
-0.4240289927,
-0.3952422738,
0.0929749534,
-0.201355502,
-0.0196744204,
-0.0248845909,
0.2520099282,
-0.425501287,
0.2545576096,
-0.0045931763,
0.9560574889,
0.0347708687,
0.2339398265,
0.1494146585,
-0.183983922,
0.1841394156,
0.02866056,
-0.0593496263,
-0.1531005353,
0.1560580283,
-0.0298917592,
-0.0247324649,
0.2963772416,
-0.1079892591,
-0.3020827472,
0.096445322,
-0.0278945398,
-0.1122329533,
-0.0903785378,
0.2975539863,
-0.1414355338,
-0.265757978,
-0.5213631392,
0.1996454149,
-0.0886169448,
0.1661651582,
0.0547114685,
-0.1375196576,
-0.1689306051,
-0.3871943355,
-0.5968747139,
-0.008598851,
-0.0872206837,
0.2162309289,
-0.1630768925,
-0.4250730276,
0.5653029084,
0.3926407397,
0.6571991444,
0.134422332,
-0.1175620779,
0.1307079196,
-0.1884858608,
-0.2416863143,
0.1248122528,
0.0581639037,
0.3777553439,
-0.2391427159,
-0.3237065375,
0.2999587655,
-0.0002488374,
-0.1739886403,
-0.3041000068,
-0.164305985,
-0.0943836272,
-0.2417112589,
-0.1273347288,
-0.0950585827,
-0.2003800571,
-0.3413679302,
0.1872369051,
0.1308600754,
-0.2187300324,
0.1325448602,
-0.0359442867,
-0.2003849596,
-0.0723341405,
0.3325360119,
0.2005325705,
0.0265498608,
0.7403997183,
0.2742212415,
-0.2460491508,
-0.2686457038,
0.0441004559,
0.2170725018,
-0.1088810936,
0.1044077426,
0.0407163538,
-0.165808633,
-0.1185244992,
0.5871527195,
0.1434548646,
-0.0834699795,
0.0892258584,
-0.3736431897,
-0.513630569,
0.1403677911,
0.0344945788,
0.0711076632,
0.1605326831,
0.5175592899,
0.1939785182,
0.2597581148,
-0.3545671105,
-0.0199797973,
-0.1265085489,
0.2201583833,
0.2564288676,
-0.1030640081,
0.1695171148,
0.098691605,
0.1692528576,
0.2568179071,
-0.0745001212,
-0.2562865317,
-0.0297070481,
0.0684919283,
0.0609776154,
-0.0182959996,
0.0627053976,
-0.4180741012,
0.0465570427,
-0.019812528,
0.0902306437,
0.1790378541,
-0.1040822864,
0.252312988,
-0.0954290479,
0.1027108654,
0.2190434486,
-0.0049359165,
-0.2229174078,
-0.0316029638,
0.1160962656,
-0.0118868509,
-0.0080475034,
-0.1322989017,
-0.0837070644,
0.0394299962,
-0.1864339262,
0.1457435936,
0.4332693219,
-0.3386836052,
0.0652097985,
0.0485561043,
0.2000083774,
0.0899416208,
-0.3356072605,
0.2155048698,
0.1496499628,
0.1620499641,
-0.5012564659,
-0.026076328,
-0.104865104,
-0.1312339008,
0.1752731651,
0.0897098556,
-0.0530108698,
0.1718422771,
-0.0669194087,
0.041527085,
0.2185551226,
-0.1688291878,
-0.018157294,
0.1704826504,
-0.0814404339,
-0.0229545683,
0.3968534768,
0.1706309319,
0.0817146301,
0.7542809844,
-0.46384269,
0.2728509903,
0.0283805858,
0.079898946,
0.0751684755,
-0.0453806035,
0.2522484362,
0.0665886477,
-0.1579114944,
0.169110775,
0.0004673043,
0.2341300696,
-0.1701086462,
0.1033053845,
0.0690732673,
0.0303405933,
-0.1861153543,
0.0451406725,
-0.2474007308,
-0.1647726446,
-0.0838662162,
-0.1383020729,
-0.1634883136,
-0.0046158996,
0.31667611,
0.0317491479,
-0.1646088958,
-0.337920934,
0.1691760868,
0.0094467141,
0.2030903101,
-0.2248622626,
0.2859094739,
0.4393922687,
0.0068212044,
0.2072545737,
0.2722848952,
0.5848603249,
0.2557887733,
-0.3220207393,
0.2581303716,
-0.1916151345,
-0.3510196805,
0.015337863,
0.2082089037,
0.3283078372,
0.4378297627,
0.2944051027,
0.2015210986,
-0.1613501757,
-0.0089410776,
0.2797060311,
0.0970079675,
-0.0775781944,
0.1749489605,
-0.2106505632,
-0.1400342882,
-0.2763576508,
0.0291908458,
-0.4062028825,
-0.057447359,
0.2399070114,
0.0581414327,
0.1419749111,
-0.2554050982,
0.103754878,
-0.0013098055,
0.4438289702,
0.2324420959,
0.021444289,
-0.4274411201,
-0.2046920806,
-0.7065244317,
-0.0420193113,
-0.080595918,
-0.2868054509,
-0.2410641015,
0.0310064107,
0.3893223703,
0.104070887,
0.182817623,
-0.0337897725,
-0.2051883042,
-0.0601096191,
-0.233809486,
-0.2392850369,
0.0388930403,
0.1976129413,
0.0517265312,
-0.072884284,
0.1848481596,
0.4200251698,
0.0988641977,
-0.1860605031,
0.0358884521,
0.0744066983,
-0.2081199884,
0.0546480305,
0.1556434482,
0.6450901628,
-0.1854211241,
0.032948494,
-0.0414811336,
-0.0796917006,
-0.1384912878,
0.4796762466,
0.2791796625,
0.6704033613,
-0.202839762,
-0.0311047323,
-0.0715386048,
0.4367157221,
-0.0289895181,
-0.3920422494,
-0.2773588896,
0.2260178924,
0.1188497394,
0.1552681178,
-0.1216094419,
0.3387448192,
-0.0839008763,
0.0555878133,
-0.3392179012,
-0.5602796674,
0.3288579881,
-0.1307486147,
-0.4304897189,
0.1566853523,
0.0662878081,
0.3002920449,
0.1371640414,
-0.7134618759,
0.2555775642,
0.2097669542,
-0.032444723,
-0.143379122,
0.1805782169,
0.0106320241,
0.1486515254,
-0.0487371907,
0.434638083,
-0.0354972892,
-0.0764196292,
-0.0083867041,
-0.3005459607
] |
https://github.com/huggingface/datasets/issues/2825 | The datasets.map function does not load cached dataset after moving python script | This also happened to me on COLAB.
Details:
I ran the `run_mlm.py` in two different notebooks.
In the first notebook, I do tokenization since I can get 4 CPU cores without any GPUs, and save the cache into a folder which I copy to drive.
In the second notebook, I copy the cache folder from drive and re-run the run_mlm.py script (this time I uncomment the trainer code which happens after the tokenization)
Note: I didn't change anything in the arguments, not even the preprocessing_num_workers
| ## Describe the bug
The datasets.map function caches the processed data to a certain directory. When the map function is called another time with totally the same parameters, the cached data are supposed to be reloaded instead of re-processing. However, it doesn't reuse cached data sometimes. I use the common data processing in different tasks, the datasets are processed again, the only difference is that I run them in different files.
## Steps to reproduce the bug
Just run the following codes in different .py files.
```python
if __name__ == '__main__':
from datasets import load_dataset
from transformers import AutoTokenizer
raw_datasets = load_dataset("wikitext", "wikitext-2-raw-v1")
tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
def tokenize_function(examples):
return tokenizer(examples["text"], padding="max_length", truncation=True)
tokenized_datasets = raw_datasets.map(tokenize_function, batched=True)
```
## Expected results
The map function should reload data in the second or any later runs.
## Actual results
The processing happens in each run.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: linux
- Python version: 3.7.6
- PyArrow version: 3.0.0
This is the first time I report a bug. If there is any problem or confusing description, please let me know 😄.
| 85 | The datasets.map function does not load cached dataset after moving python script
## Describe the bug
The datasets.map function caches the processed data to a certain directory. When the map function is called another time with totally the same parameters, the cached data are supposed to be reloaded instead of re-processing. However, it doesn't reuse cached data sometimes. I use the common data processing in different tasks, the datasets are processed again, the only difference is that I run them in different files.
## Steps to reproduce the bug
Just run the following codes in different .py files.
```python
if __name__ == '__main__':
from datasets import load_dataset
from transformers import AutoTokenizer
raw_datasets = load_dataset("wikitext", "wikitext-2-raw-v1")
tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
def tokenize_function(examples):
return tokenizer(examples["text"], padding="max_length", truncation=True)
tokenized_datasets = raw_datasets.map(tokenize_function, batched=True)
```
## Expected results
The map function should reload data in the second or any later runs.
## Actual results
The processing happens in each run.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: linux
- Python version: 3.7.6
- PyArrow version: 3.0.0
This is the first time I report a bug. If there is any problem or confusing description, please let me know 😄.
This also happened to me on COLAB.
Details:
I ran the `run_mlm.py` in two different notebooks.
In the first notebook, I do tokenization since I can get 4 CPU cores without any GPUs, and save the cache into a folder which I copy to drive.
In the second notebook, I copy the cache folder from drive and re-run the run_mlm.py script (this time I uncomment the trainer code which happens after the tokenization)
Note: I didn't change anything in the arguments, not even the preprocessing_num_workers
| [
-0.1612100005,
0.0666725561,
0.1235987544,
0.142117694,
0.1211063862,
-0.092572242,
0.418130815,
0.1090158522,
0.1731481105,
-0.0780498907,
0.1154462993,
0.6156932712,
-0.0211399812,
-0.1331948042,
0.1611655205,
0.2321514338,
0.175963521,
0.1501923352,
0.0869101211,
-0.1811601669,
-0.1934700161,
0.0917444974,
-0.4173082709,
-0.1069658175,
-0.4597239792,
0.0247056801,
-0.1255614758,
-0.0259201396,
0.2307697088,
-0.3739829957,
0.3416954577,
0.0286041759,
0.3293196857,
0.4340646565,
-0.0001240348,
-0.0629328936,
0.189911738,
-0.1191305667,
-0.2047811896,
-0.2416987121,
-0.0412900336,
-0.063502878,
0.1722025126,
-0.1777268052,
0.0049675126,
0.1066702828,
-0.0636678413,
-0.5965554714,
0.3043339252,
0.2677557468,
0.0943720564,
0.0372926444,
-0.2589370012,
0.2234524935,
-0.0972793624,
-0.1032888293,
-0.0847675949,
0.0356401093,
0.2718016207,
-0.4042438865,
-0.1610348672,
0.3430396914,
-0.2559062541,
0.1986913979,
0.3800358474,
0.0639557615,
-0.1315136552,
-0.362401098,
0.3555087745,
-0.1061246768,
0.2827382386,
-0.4287841022,
-0.118044056,
-0.337541908,
-0.1085550562,
-0.1223060414,
0.2084061503,
-0.1288088411,
0.1678151488,
0.1231883243,
-0.3631305099,
-0.0782389268,
0.1985266358,
0.2072061002,
-0.1494707316,
0.4666341841,
-0.1864187568,
0.2081396729,
-0.1478579789,
0.0597920865,
0.2998934984,
-0.1723805666,
0.0578928329,
0.4553027749,
-0.1857804954,
0.0049885027,
0.1042602137,
0.0164340585,
-0.0691990033,
-0.042993933,
0.0992402062,
0.071390219,
-0.0783548132,
0.0563074499,
0.1188394055,
0.4971541166,
0.0955588296,
0.3987928629,
0.1923969388,
-0.0712575465,
-0.7449436784,
-0.172895357,
-0.1321696639,
0.0351375788,
0.4841654003,
0.1077987626,
0.1735486984,
-0.0119952327,
0.0163384154,
0.051133547,
-0.2896789908,
-0.2111107856,
0.1056537703,
0.4156185389,
-0.0801941827,
0.1535260081,
-0.0949858055,
0.1437339187,
-0.1945281774,
0.0410147645,
-0.1212419048,
-0.1458108872,
-0.265231967,
0.3765378892,
0.2610456347,
0.1239272803,
0.4008921981,
0.1099497974,
-0.0333948098,
-0.2456988692,
0.301312983,
-0.0583068728,
0.5958385468,
0.1623578519,
-0.0118662277,
0.5882650018,
0.2430468351,
0.002775833,
-0.1312853545,
0.234051466,
-0.672264874,
-0.0946239382,
0.4809673131,
-0.003846932,
-0.187075004,
-0.0904577821,
-0.2192807198,
0.058336664,
0.5520724058,
-0.2391304523,
0.0510407649,
-0.3370290101,
-0.370714426,
-0.4002167881,
0.1697917283,
0.5289990306,
-0.0908066183,
-0.1419553161,
-0.2303370386,
0.4682985544,
0.2079980075,
0.1423210502,
-0.3177860677,
0.2858116031,
-0.3038774729,
0.3247825205,
0.2061855793,
-0.4006859362,
-0.6898707747,
0.0444125086,
-0.0189111438,
0.2681936622,
-0.2062692046,
-0.0692021996,
0.243688643,
-0.1089237481,
0.0306176767,
0.26200068,
0.1978552192,
0.3179399371,
-0.2945936322,
-0.0697201714,
0.2854960859,
-0.2398788631,
0.1903081238,
0.0873957053,
0.0487781428,
0.0684908107,
0.130072847,
0.005078577,
0.1377950758,
0.0802841783,
0.1884412616,
-0.0057984293,
0.2942885756,
-0.0042524431,
-0.261927098,
0.2479479164,
-0.206869185,
-0.4193126559,
-0.1266341656,
-0.0922153592,
-0.0158471726,
-0.1833045781,
-0.4220007956,
-0.3649422526,
0.0538756549,
0.2663183808,
0.191519767,
0.1526270062,
-0.1701245457,
0.239681229,
0.2925303578,
-0.1287485212,
-0.0264474917,
0.2079432011,
0.1729692072,
-0.1440104544,
-0.2889921069,
0.1064644977,
0.4621390998,
-0.1323596388,
-0.2746542096,
0.1695509106,
0.2887338996,
0.1612864286,
-0.2219230086,
0.0296783559,
0.1039761677,
0.0752548501,
0.2001730204,
0.2023636103,
0.1230773702,
-0.0977187306,
0.1575124562,
0.3327406943,
0.1918525696,
0.1902762651,
-0.0139093529,
-0.0960236713,
0.0941475481,
-0.1803358495,
0.1143565401,
-0.2381323129,
-0.1593665332,
-0.0464134812,
0.4003405273,
0.2147741616,
0.2689983547,
0.3867593408,
0.6588152051,
0.2824720442,
0.1987572461,
-0.0951085016,
-0.7050170898,
-0.2481071502,
0.0504061095,
0.2260109931,
0.3612972796,
-0.0615939833,
-0.0229830779,
0.0431729481,
0.1944843531,
-0.0213190839,
0.0175202396,
-0.0430986322,
0.2224768549,
0.2194301933,
0.2184743583,
0.2063402832,
-0.1053413972,
0.1863428503,
0.2211711258,
0.2342161536,
-0.167595461,
0.1337195188,
-0.4766332805,
0.2224490494,
-0.1026735082,
-0.1299256384,
-0.0875684842,
-0.3107096255,
-0.1644131094,
0.4240448773,
0.1998696476,
0.217781812,
0.2266703844,
0.0542202592,
-0.0503890477,
-0.2862828076,
-0.2200454623,
-0.3234052956,
-0.2892322242,
-0.1396640837,
0.2144167572,
-0.0832649842,
-0.0014521264,
0.0057457373,
0.0393406115,
-0.3005687892,
-0.3118560016,
0.0178973489,
0.1531229019,
0.0891463906,
-0.3017294705,
-0.0930185691,
-0.3721901476,
-0.0375696346,
0.1113606915,
-0.4386263788,
-0.0483650453,
0.0744522661,
0.0122518064,
-0.095948182,
0.1013629436,
-0.2232753336,
-0.2573917508,
0.0301529504,
0.0776721761,
-0.0911213234,
-0.0248408392,
-0.0852266625,
-0.0929126069,
-0.0944372639,
-0.1782163531,
-0.1713507175,
-0.3487739563,
-0.2494969666,
0.3564101458,
-0.2292415351,
-0.1970821023,
-0.0286221057,
-0.0213071164,
0.2215863466,
0.2303261906,
-0.4229950309,
-0.1399635226,
-0.0464507006,
0.1276429445,
0.0407810323,
0.1231172681,
0.4344375432,
0.0824710131,
0.1826770157,
-0.2157482356,
-0.2161741108,
0.0058982931,
0.2345542759,
0.0929196253,
0.1258675605,
0.1468122751,
-0.0391456746,
0.8137377501,
0.3329549432,
-0.2891394496,
0.394543916,
-0.0771218464,
0.1991163194,
-0.2179760039,
-0.3984621465,
-0.0565707684,
-0.182771191,
-0.1908348501,
0.1693384349,
-0.0378275439,
-0.2157124281,
-0.0502849929,
-0.1973918676,
-0.3199203014,
-0.2977828681,
0.1104879752,
-0.1729242206,
0.3215151727,
0.3823329806,
0.3232052922,
-0.589630127,
-0.1851326823,
0.1468660384,
0.0718663409,
0.3774530888,
0.0667559877,
-0.2743138373,
-0.2742207646,
-0.2854092717,
0.2252298594,
0.054375384,
0.4561950862,
0.039404843,
-0.1448572576,
0.0027037938,
0.0972270221,
0.2747097313,
-0.4058229327,
0.0144489678,
0.2318762988,
-0.1690294445,
-0.0841191933,
-0.1644564122,
0.0765200853,
0.4333058,
0.1963187903,
0.4632548094,
0.2221891582,
0.0458110161,
-0.3195921481,
0.3016914427,
-0.241553992,
-0.0776088089,
-0.3578516245,
0.0358380452,
-0.4233498275,
-0.0533778518,
-0.0722150356,
-0.1255104989,
0.0304971039,
-0.1190648079,
-0.2477417886,
-0.1286761016,
0.0159274098,
0.2879600227,
0.4373829365,
0.1520215571,
0.2777384222,
0.2438930869,
-0.092546016,
0.2242041975,
0.2301965952,
-0.1936245561,
-0.1622547805,
-0.0704881474,
0.0264502615,
0.2585750222,
0.0949298665,
-0.3744321465,
-0.0717408359,
-0.1470503807,
-0.1333133578,
-0.1991482377,
0.0390071906,
0.1198324859,
0.2040017247,
-0.2184668928,
-0.4964648187,
0.1315730959,
0.11481186,
-0.2241775692,
0.4784288406,
-0.526822567,
-0.2337672412,
0.4640761912,
-0.1589081585,
0.6939276457,
-0.2030062526,
-0.0131728482,
-0.1569578201,
0.2673539519,
0.31759426,
-0.2601319253,
0.1933843046,
-0.4079012871,
-0.0705300272,
0.0176698826,
-0.2399063855,
-0.0603283942,
0.0622506626,
-0.3646008968,
0.2890155017,
0.0456749052,
0.3356090486,
-0.0115410704,
0.2104548365,
0.2857832909,
-0.1372208297,
-0.0568749569,
0.0819547549,
0.06852898,
0.4716665447,
-0.0036626563,
0.0043441262,
0.0710878745,
-0.0449543968,
-0.0913434327,
0.1123438403,
-0.7211811543,
0.3068857491,
-0.1747059822,
0.033641357,
-0.0516440161,
0.2431946695,
0.3510488272,
0.1937647462,
-0.128207773,
0.1868287027,
0.1930039972,
0.2486362457,
-0.0477925651,
-0.3190560043,
0.1430828869,
0.1476629972,
-0.1788546592,
-0.0234665107,
-0.0624393076,
-0.3910655081,
-0.2537934184,
0.2718138397,
0.4700976908,
-0.1907342821,
-0.1381174922,
0.185920611,
-0.0269160755,
-0.1034906358,
0.0273515284,
0.1545142084,
0.0978819579,
0.5066224933,
-0.304074347,
-0.3529681563,
0.0917915478,
0.5403841734,
0.1394848526,
-0.0734276101,
0.3789064884,
-0.2389586717,
-0.0740445256,
-0.1299581826,
0.0430363305,
-0.0469728224,
-0.2355396897,
0.2335422486,
-0.0914035067,
0.1868423671,
0.0900251344,
-0.0355314128,
-0.213766709,
0.0162534565,
-0.3044368625,
-0.3737488091,
-0.3308830261,
-0.0863464922,
0.0511149392,
-0.0865012035,
0.4272455871,
0.2910863757,
0.0601286553,
0.2189549357,
-0.1895188093,
0.2773416042,
0.331410408,
0.1650750339,
-0.1432034373,
-0.0637520552,
0.0176946428,
-0.1543927789,
-0.0480547994,
0.1709008366,
-0.0499134474,
-0.1203970686,
-0.1994161606,
0.2219583243,
0.1711621881,
-0.0217311997,
-0.2919610441,
-0.3067833483,
0.163087368,
-0.5828201175,
0.1274295598,
0.2063224763,
-0.0932626799,
0.009513149,
0.3784596026,
-0.1983896643,
-0.0699826404,
0.0737886205,
-0.334317565,
-0.153522104,
0.0062807901,
0.2818333209,
0.1830985695,
0.1900153756,
-0.036717087,
-0.2239570469,
0.1002555266,
0.0655638501,
0.3466318846,
-0.2847488225,
-0.1031515598,
0.0366778411,
-0.2593296766,
0.2991608083,
-0.1855587512,
-0.234183535,
0.2874580026,
0.0721719489,
-0.2727126181,
-0.1777084917,
0.4632630348,
0.1624135077,
-0.0538193136,
0.2088621706,
0.3971560001,
-0.1730993241,
0.2225063592,
0.0720846131,
0.6409048438,
-0.2101062238,
0.3045121729,
0.04420387,
0.0877540484,
0.2990761399,
0.2292414308,
0.2153180242,
-0.1304765493,
0.2860998213,
0.0502047725,
0.2895380557,
0.2598905563,
-0.0994988978,
-0.0054142373,
-0.4730806947,
0.015753651,
0.1380020976,
-0.3188565075,
0.3985809684,
-0.0782033652,
0.0821988881,
-0.0805377066,
-0.13195467,
-0.0202694889,
0.2977824807,
-0.360398829,
-0.1637578905,
0.1918500662,
-0.0986473709,
0.0516191386,
0.0529703088,
0.0217676982,
0.098592326,
0.477810204,
0.0822217613,
-0.3910198808,
-0.0628982931,
-0.3392602801,
0.1961566955,
0.4229788184,
-0.180988431,
0.2635445595,
-0.3162927032,
0.0390429981,
-0.1846113354,
0.1090952307,
0.3859158158,
0.4559955597,
-0.2092546374,
0.2142002434,
0.2236179709,
0.0662406087,
-0.1414039731,
0.3060620427,
-0.1343112439,
-0.0827825442,
-0.0785431564,
0.0203502681,
-0.0050410009,
-0.0961629301,
-0.0192348361,
0.3018618524,
-0.0153996265,
0.049726624,
0.0164829679,
-0.0332658999,
-0.1139932498,
0.2352297008,
-0.2441951185,
0.2029224783,
0.5567867756,
-0.0086040152,
0.149621278,
-0.3217222393,
0.0348837189,
0.121947974,
0.2171913683,
0.3149909973,
-0.2996425331,
-0.4097651541,
-0.2676975727,
-0.7540674806,
0.3354359567,
-0.1838143915,
0.2210137099,
-0.0587712228,
0.0805403888,
-0.0903604254,
-0.1343165636,
0.1655177176,
-0.0526568294,
0.0231832489,
0.1846774369,
-0.2335090041,
-0.1410393119,
-0.334489435,
0.0851673707,
0.1468011737,
-0.3403092027,
0.2742244303,
-0.1483898759,
0.0004372399,
-0.2321798652,
-0.1087328494,
0.0131376833,
0.0082707908,
0.8180852532,
0.1553945988,
0.1773555577,
-0.0341662802,
0.1784491092,
-0.2499226332,
0.0768158063,
-0.0369190015,
0.0287617482,
-0.0001648325,
0.0974192917,
-0.1688403934,
-0.1767754853,
-0.5049833059,
-0.1605622321,
0.2636041641,
-0.111446552,
-0.0918087959,
0.0327227823,
-0.058339335,
0.3533485234,
-0.0920664519,
0.4632123113,
-0.193838805,
0.3721651137,
-0.2800161839,
-0.1676998436,
0.352871716,
-0.6539237499,
-0.4455688,
-0.2375840545,
0.3042316735,
-0.2936924994,
-0.2092624307,
-0.5068481565,
-0.0203978904,
0.4445632994,
-0.0114228092,
-0.2154306769,
0.053723976,
-0.0901706815,
0.2256149501,
-0.2515746951,
0.2279307544,
0.2003181279,
-0.2147219628,
0.075331673,
-0.1473740488
] |
https://github.com/huggingface/datasets/issues/2825 | The datasets.map function does not load cached dataset after moving python script | #2854 fixed the issue :)
We'll do a new release of `datasets` soon to make the fix available.
In the meantime, feel free to try it out by installing `datasets` from source
If you have other issues or any question, feel free to re-open the issue :) | ## Describe the bug
The datasets.map function caches the processed data to a certain directory. When the map function is called another time with totally the same parameters, the cached data are supposed to be reloaded instead of re-processing. However, it doesn't reuse cached data sometimes. I use the common data processing in different tasks, the datasets are processed again, the only difference is that I run them in different files.
## Steps to reproduce the bug
Just run the following codes in different .py files.
```python
if __name__ == '__main__':
from datasets import load_dataset
from transformers import AutoTokenizer
raw_datasets = load_dataset("wikitext", "wikitext-2-raw-v1")
tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
def tokenize_function(examples):
return tokenizer(examples["text"], padding="max_length", truncation=True)
tokenized_datasets = raw_datasets.map(tokenize_function, batched=True)
```
## Expected results
The map function should reload data in the second or any later runs.
## Actual results
The processing happens in each run.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: linux
- Python version: 3.7.6
- PyArrow version: 3.0.0
This is the first time I report a bug. If there is any problem or confusing description, please let me know 😄.
| 47 | The datasets.map function does not load cached dataset after moving python script
## Describe the bug
The datasets.map function caches the processed data to a certain directory. When the map function is called another time with totally the same parameters, the cached data are supposed to be reloaded instead of re-processing. However, it doesn't reuse cached data sometimes. I use the common data processing in different tasks, the datasets are processed again, the only difference is that I run them in different files.
## Steps to reproduce the bug
Just run the following codes in different .py files.
```python
if __name__ == '__main__':
from datasets import load_dataset
from transformers import AutoTokenizer
raw_datasets = load_dataset("wikitext", "wikitext-2-raw-v1")
tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
def tokenize_function(examples):
return tokenizer(examples["text"], padding="max_length", truncation=True)
tokenized_datasets = raw_datasets.map(tokenize_function, batched=True)
```
## Expected results
The map function should reload data in the second or any later runs.
## Actual results
The processing happens in each run.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: linux
- Python version: 3.7.6
- PyArrow version: 3.0.0
This is the first time I report a bug. If there is any problem or confusing description, please let me know 😄.
#2854 fixed the issue :)
We'll do a new release of `datasets` soon to make the fix available.
In the meantime, feel free to try it out by installing `datasets` from source
If you have other issues or any question, feel free to re-open the issue :) | [
-0.1273976862,
0.0724145621,
0.091458641,
0.0095803542,
0.1599635333,
-0.0660089105,
0.4047463536,
0.2460485399,
0.2259852588,
-0.0873799995,
0.1144408807,
0.5168569684,
-0.0583695211,
-0.1686526686,
0.1454254091,
0.1743040234,
0.2147075236,
0.1613189131,
0.015196085,
-0.174861297,
-0.2260827869,
-0.0004945509,
-0.3888833523,
-0.0530203842,
-0.4167588055,
0.1189526394,
-0.1496827602,
-0.064177908,
0.2103360295,
-0.4711392224,
0.3424901366,
0.1252883673,
0.2924118936,
0.3714998066,
-0.0001175742,
-0.0325825959,
0.2381016761,
-0.0887214243,
-0.1687704176,
-0.1984852403,
-0.0911653191,
-0.0784302354,
0.114075467,
-0.1740200818,
0.014861769,
-0.0670340061,
-0.0580177866,
-0.5517781377,
0.3449014127,
0.2660756707,
0.1569477767,
0.0916646942,
-0.1324367225,
0.1409147531,
-0.0919483379,
-0.1474609673,
-0.0402102247,
-0.1767194122,
0.2883950174,
-0.4073181152,
-0.1861929297,
0.2407976836,
-0.1470913738,
0.0880865082,
0.3459537327,
0.0264888909,
-0.1978944838,
-0.3031310737,
0.309697926,
-0.0609250255,
0.3651447892,
-0.4083527029,
-0.2633097172,
-0.2716083527,
-0.1292910725,
-0.0306372922,
0.1167384684,
-0.2174402326,
0.2154378891,
0.1586682498,
-0.4689266682,
-0.1160348207,
0.1113868952,
0.1911926568,
-0.1262929887,
0.427868396,
-0.0862310678,
0.1805844903,
-0.1728987545,
-0.0524417646,
0.163006857,
-0.1279246658,
0.0592709817,
0.5038401484,
-0.1977025867,
-0.0271316897,
0.153909117,
-0.0486142114,
0.0574083999,
0.110337168,
-0.0095777018,
0.216523096,
-0.198756814,
-0.029594738,
0.1525701433,
0.5008949637,
0.1595462114,
0.4105484188,
0.1037071198,
-0.0912699401,
-0.6493959427,
-0.1686202437,
-0.1285144985,
-0.0576791316,
0.6006769538,
0.0352324694,
0.2038293183,
-0.0009121911,
0.109807305,
0.0979166999,
-0.0716022924,
-0.1900145561,
0.0337546542,
0.4491540492,
-0.0397841111,
0.3059888482,
-0.094189994,
0.2121893913,
-0.1355016381,
0.0562306792,
-0.1956659257,
-0.210847199,
-0.1978409737,
0.2894200981,
0.2324400991,
0.1111556068,
0.3557313383,
0.0897308514,
-0.0325615034,
-0.1209444329,
0.2773364186,
0.0440265574,
0.6040595174,
0.1215033457,
-0.023141969,
0.581836164,
0.2637909949,
0.0014679548,
-0.1511490047,
0.1716979444,
-0.6476750374,
-0.1697176397,
0.3885861933,
0.0899603888,
-0.2056825161,
-0.1571829915,
-0.1573633254,
-0.0107509233,
0.5134229064,
-0.2149527818,
-0.0122531643,
-0.3363990486,
-0.3412782252,
-0.3847538531,
0.1996461898,
0.4401879609,
-0.0512305163,
-0.1549953967,
-0.1365014017,
0.3355628252,
0.1325759739,
0.1070944518,
-0.3555155694,
0.3302603662,
-0.2539387345,
0.3772552311,
0.2882088721,
-0.4481258988,
-0.7045117617,
0.0289335139,
0.0148527836,
0.2682566047,
-0.2539272904,
-0.1451846957,
0.2909590006,
-0.1724199802,
-0.079461813,
0.2683816254,
0.2199960649,
0.3350922465,
-0.2560370564,
-0.1363705546,
0.3257184327,
-0.1690096557,
0.2152384222,
0.0236731842,
-0.0220001228,
0.0955119804,
0.145585075,
-0.009711788,
0.2444510907,
0.160797447,
0.1761434823,
0.0880907401,
0.3228495717,
-0.0743064135,
-0.2499891222,
0.2898174822,
-0.1547430456,
-0.4490093887,
-0.0971900001,
-0.106667392,
-0.1024618074,
-0.1602703333,
-0.5025529265,
-0.2756500244,
0.1304306537,
0.2702076733,
0.2430557758,
0.1169800386,
-0.2288284153,
0.120411925,
0.319252789,
-0.1263381392,
-0.0870227069,
0.1495258212,
0.1631317437,
-0.0988770202,
-0.2654799819,
0.083653681,
0.4113590419,
-0.0910935104,
-0.2791555524,
0.2201688886,
0.2130371481,
0.2288493812,
-0.065883927,
0.0021971283,
0.0230059028,
-0.0422748514,
0.1455111504,
0.2342196405,
0.0880005658,
-0.1172927767,
0.1115301549,
0.2227391303,
0.216986537,
0.2037426531,
-0.0055459351,
-0.0320436768,
0.1114533916,
-0.1695541292,
0.0991042629,
-0.2482888103,
-0.2217269391,
-0.1447311938,
0.3873694241,
0.1267311126,
0.3542509377,
0.3342260718,
0.6654902697,
0.1740915775,
0.1755019575,
0.0477032885,
-0.6600906253,
-0.2747762203,
-0.0900237262,
0.1625274867,
0.2718920112,
-0.0032676621,
-0.0523947626,
-0.0592410676,
0.1783801168,
0.0688536838,
0.063429229,
-0.0239988361,
0.1010286063,
0.1833833903,
0.1937383413,
0.1529006809,
-0.1032355875,
0.1740342677,
0.1970167756,
0.2634406686,
-0.1638144255,
0.0178135224,
-0.4033918679,
0.4058871269,
-0.0110797221,
-0.2489241064,
-0.0473925397,
-0.3511260152,
-0.0560279079,
0.2632540762,
0.0609171577,
0.2647619843,
0.0576651581,
-0.0182360541,
0.0062513766,
-0.3572274148,
-0.2716266811,
-0.414677918,
-0.2249662727,
-0.0644468367,
0.1597517282,
-0.1184377074,
0.1242041588,
-0.0222662985,
0.0828905106,
-0.3509306312,
-0.2879323661,
-0.0605934151,
0.0784290656,
-0.0372277535,
-0.2462183386,
0.0106651299,
-0.2674311399,
-0.1137790233,
0.1633510143,
-0.5391671062,
-0.0414717384,
0.1899372786,
0.0173565298,
-0.0609045252,
0.1396537423,
-0.3343353271,
-0.1855299473,
0.0146548878,
0.0790280998,
-0.0025065595,
-0.0581582896,
-0.0783227086,
-0.0806787089,
-0.1290307641,
-0.2679098845,
-0.149546355,
-0.3555654287,
-0.3247364163,
0.3774480522,
-0.238136813,
-0.2658273578,
-0.0918253362,
-0.0233522523,
0.2156019658,
0.2184800655,
-0.3069501817,
-0.0684565678,
-0.1836550087,
0.1931988746,
0.0127497558,
0.1517698616,
0.4884289205,
0.1360831261,
0.0904133692,
-0.2151893079,
-0.0438366681,
0.059499044,
0.1414828151,
0.0310216863,
0.0702758729,
0.0630451515,
-0.0158290416,
0.8712031841,
0.33943066,
-0.2434750646,
0.3906831741,
-0.1166392639,
0.1712317765,
-0.2813173234,
-0.3686885238,
-0.0921086073,
-0.1965302378,
-0.0361909792,
0.1398811191,
0.0031318052,
-0.1993825138,
0.0029484755,
-0.1436541229,
-0.4210385382,
-0.292575717,
0.074998036,
-0.0956342146,
0.2742870748,
0.324069798,
0.2811287344,
-0.6588518023,
-0.2407613695,
0.2088890523,
-0.0415097959,
0.3959529698,
-0.0165568814,
-0.3597285748,
-0.0942780301,
-0.3311763108,
0.250433296,
0.0488029234,
0.4142693579,
0.0938734934,
-0.2136972696,
-0.0453534313,
0.0769308582,
0.2219331414,
-0.3888385296,
0.0473809652,
0.2300533801,
-0.1469590068,
-0.1887865812,
-0.1479173452,
0.0483712964,
0.2653463185,
0.1881248951,
0.4231220484,
0.1420797855,
0.000430426,
-0.3593810797,
0.3494277,
-0.2431686223,
-0.0385586396,
-0.3027104437,
0.0839013532,
-0.5145258904,
-0.099666737,
-0.0840007663,
-0.0430639125,
-0.0338875502,
-0.1100080237,
-0.2868148386,
-0.1015879512,
-0.0205451902,
0.2367706746,
0.4534939229,
0.0386607163,
0.3291159868,
0.2824528515,
-0.1834537536,
0.1781744063,
0.2456829697,
-0.1328647584,
-0.2484770417,
-0.1681517661,
0.0905914381,
0.2635986805,
0.0388330519,
-0.299498409,
-0.0738542378,
-0.1791800708,
-0.0201589987,
-0.3251715004,
0.0845127329,
0.2234951258,
0.1066389233,
-0.2621914744,
-0.4880998433,
0.1662349254,
0.0820383206,
-0.1978458762,
0.5077856779,
-0.3288020194,
-0.1782567501,
0.5263877511,
-0.1672303081,
0.7030584216,
-0.261482805,
0.0227348283,
-0.148428753,
0.3079771399,
0.282358557,
-0.2782204449,
0.0377053469,
-0.4485218525,
-0.0738486126,
0.0370745361,
-0.1756740361,
-0.0501452871,
0.0857841522,
-0.3708004951,
0.263068229,
-0.0307350717,
0.4242712259,
0.0008206503,
0.295098722,
0.2175412774,
-0.1611545533,
0.0709260777,
0.1475216001,
0.0955183953,
0.4126780331,
0.038590353,
-0.0242801253,
0.0524467118,
-0.0692034736,
-0.136808306,
0.1307315677,
-0.4697887003,
0.3341297805,
-0.15298675,
0.1190003902,
-0.0603017956,
0.362190187,
0.3968263268,
0.1983504444,
-0.2566064,
0.264544636,
0.0978826806,
0.2188668251,
0.0133802509,
-0.2077471465,
0.0840460211,
0.1926832944,
-0.293379277,
0.069465287,
-0.055558838,
-0.3760706186,
-0.3659452796,
0.1993742138,
0.469802469,
-0.3571548462,
-0.1596152931,
0.1972795129,
-0.0259876121,
-0.1202719063,
0.112758711,
0.1794177294,
0.073514387,
0.4738391042,
-0.2469424754,
-0.3006401658,
0.0969442353,
0.5473603606,
0.0868565291,
-0.0703576207,
0.4687358737,
-0.2822931707,
-0.0759919435,
-0.1681775004,
0.0628259778,
0.1285602301,
-0.3534424007,
0.098373577,
-0.0091101211,
0.2103242278,
0.1147621423,
-0.0235996041,
-0.2950789928,
-0.006766377,
-0.2794574201,
-0.2637416124,
-0.3657054603,
-0.0859152153,
0.033557687,
0.0433954187,
0.3683930039,
0.1731270999,
0.0272706747,
0.2843602598,
-0.2767242789,
0.221402213,
0.3566818237,
0.1540383846,
-0.2106957734,
-0.1227832437,
0.0563887693,
-0.2020300031,
0.0518806987,
0.105612196,
-0.0767098963,
-0.2032086551,
-0.149872154,
0.17024526,
0.1818997562,
-0.0067312079,
-0.2689258754,
-0.1823144853,
0.143846646,
-0.5760853887,
0.1551049203,
0.2457037121,
-0.0718843862,
0.151944235,
0.4375985265,
-0.2316624522,
-0.027102612,
0.0170643926,
-0.3173014224,
-0.0495205037,
-0.1127289012,
0.2077107877,
0.1210682318,
0.1175577864,
-0.0437981747,
-0.1282809675,
0.2395602167,
0.0934648886,
0.3994582593,
-0.2951731682,
-0.0739274025,
0.115802072,
-0.1481214315,
0.2610614598,
-0.2970365882,
-0.2015529871,
0.3140521348,
0.192706883,
-0.2493175864,
-0.2417924255,
0.3572392762,
0.1374020576,
-0.0605150685,
0.0118386317,
0.2675014138,
-0.313339591,
0.2877174318,
0.0523609892,
0.5716953278,
-0.3205869496,
0.2812637985,
0.2066581249,
0.1167720035,
0.1284619868,
0.1284875572,
0.1781934202,
-0.0683909804,
0.3175272346,
-0.0119767087,
0.3628054857,
0.1818665713,
-0.0623002723,
-0.0099807698,
-0.4547530711,
-0.0277168136,
0.1175225377,
-0.2924537659,
0.3628992438,
-0.0239519421,
0.1671729237,
0.0781306699,
-0.1214315519,
-0.1191203594,
0.3189847171,
-0.3081088364,
-0.1804355085,
0.1479912102,
-0.0687659085,
0.0302223526,
0.0211464539,
-0.0196930729,
0.0529189184,
0.3540976048,
0.0921829417,
-0.3180075586,
-0.099650465,
-0.1993023157,
0.0919283479,
0.4701646566,
-0.1469154507,
0.1937372833,
-0.1774656475,
-0.0135224266,
-0.0918061882,
0.2231093645,
0.4018783271,
0.4546129704,
-0.1482904553,
0.3653250039,
0.1168748885,
0.0095230136,
-0.1005841494,
0.3791516423,
-0.2120787799,
-0.1514657289,
-0.0042181192,
0.1118995994,
-0.0705499873,
-0.2121529579,
-0.0576568134,
0.333032459,
-0.0077676782,
0.1469991654,
0.1022789106,
-0.0578391626,
-0.1023926437,
0.1804578155,
-0.2888160348,
0.107863754,
0.5013055801,
0.0990962759,
0.1918561757,
-0.3919439018,
0.0726612434,
0.1490284353,
0.1968065798,
0.3455561996,
-0.33207497,
-0.4023283422,
-0.3072874844,
-0.6909538507,
0.3282344043,
-0.139988929,
0.2348545045,
0.0173066445,
0.046360489,
-0.155446887,
-0.124675028,
0.2110842466,
-0.0270856172,
-0.0685897395,
0.2278551161,
-0.2249154598,
0.0068836766,
-0.231287837,
0.1672780961,
0.1372519881,
-0.3825231493,
0.269431591,
-0.165343076,
0.0654589012,
-0.1703137457,
-0.0070524351,
0.0670722052,
-0.0568995625,
0.7861575484,
0.1311321408,
0.1361978203,
-0.0896749943,
0.2551851273,
-0.3458390832,
0.0296219662,
-0.0395723581,
0.0076722205,
-0.057893455,
0.0625896081,
-0.1507779807,
-0.2193171084,
-0.43977651,
-0.2626309693,
0.2159588784,
-0.0473886617,
-0.1473798007,
-0.01834457,
0.0134375915,
0.3102089167,
-0.0609850585,
0.4418365061,
-0.1894945353,
0.3719444275,
-0.2240033895,
-0.2603967786,
0.3844136298,
-0.5583380461,
-0.4699150324,
-0.2035342008,
0.2741133869,
-0.2419669926,
-0.2197265774,
-0.497187078,
0.1145922616,
0.4538176358,
0.1593980193,
-0.1826808304,
0.0075180661,
-0.0619166605,
0.2377016246,
-0.2190838903,
0.3804852664,
0.1765701622,
-0.073781155,
0.0922995806,
-0.0781693682
] |
https://github.com/huggingface/datasets/issues/2823 | HF_DATASETS_CACHE variable in Windows | Agh - I'm a muppet. No quote marks are needed.
set HF_DATASETS_CACHE = C:\Datasets
works as intended. | I can't seem to use a custom Cache directory in Windows. I have tried:
set HF_DATASETS_CACHE = "C:\Datasets"
set HF_DATASETS_CACHE = "C:/Datasets"
set HF_DATASETS_CACHE = "C:\\Datasets"
set HF_DATASETS_CACHE = "r'C:\Datasets'"
set HF_DATASETS_CACHE = "\Datasets"
set HF_DATASETS_CACHE = "/Datasets"
In each instance I get the "[WinError 123] The filename, directory name, or volume label syntax is incorrect" error when attempting to load a dataset | 17 | HF_DATASETS_CACHE variable in Windows
I can't seem to use a custom Cache directory in Windows. I have tried:
set HF_DATASETS_CACHE = "C:\Datasets"
set HF_DATASETS_CACHE = "C:/Datasets"
set HF_DATASETS_CACHE = "C:\\Datasets"
set HF_DATASETS_CACHE = "r'C:\Datasets'"
set HF_DATASETS_CACHE = "\Datasets"
set HF_DATASETS_CACHE = "/Datasets"
In each instance I get the "[WinError 123] The filename, directory name, or volume label syntax is incorrect" error when attempting to load a dataset
Agh - I'm a muppet. No quote marks are needed.
set HF_DATASETS_CACHE = C:\Datasets
works as intended. | [
-0.2557517588,
0.4681490064,
-0.0086678015,
0.0938129723,
-0.0932578966,
0.2809452116,
0.359179467,
0.0130967852,
0.5492928028,
0.1723243147,
-0.1086300313,
-0.3207072318,
0.0269633159,
-0.1362948865,
-0.0884397104,
0.1600555778,
-0.0124637978,
0.2051331699,
0.3308283091,
0.1052644774,
-0.3471746445,
0.1946112067,
-0.1163546517,
0.1732593328,
-0.2201040387,
-0.0273021795,
-0.2286345363,
0.3452451527,
0.1202251464,
-0.0732737705,
0.2985123098,
0.1823598593,
0.461155653,
0.4373252988,
-0.0001192506,
-0.0092274724,
0.1367600709,
-0.1833859086,
-0.1629034877,
0.1200158969,
-0.2397753149,
0.2823106945,
-0.2644101381,
0.0286026243,
-0.0028129404,
0.2012717426,
0.008684719,
-0.6335750222,
-0.2559029758,
0.351875037,
0.1444559991,
-0.2560603619,
-0.4754670858,
-0.1310123056,
0.3233235478,
0.4254637659,
-0.1895280182,
0.1743330806,
0.0022011825,
-0.2547370791,
-0.1301953942,
0.1984849572,
0.0741532445,
0.3853290677,
0.3594758213,
0.202397719,
-0.0893625095,
0.1987680793,
0.2981184721,
-0.0289039835,
0.9117112756,
-0.3926509023,
-0.067581512,
0.1137466431,
-0.1882465035,
-0.3810408413,
0.3569800854,
0.1096176729,
-0.2152436823,
0.0923622027,
0.0322471261,
-0.2094035894,
-0.2581728995,
0.1735568047,
0.1536319256,
-0.0576699488,
0.0166169424,
-0.0853284299,
0.2099921703,
-0.1379803866,
0.3040869534,
-0.2422669381,
-0.4997875392,
0.1586569846,
-0.2232946157,
0.1928559244,
-0.2934031188,
0.5975059271,
-0.0478698164,
0.0349799804,
0.0655476525,
0.1633857191,
-0.1220714301,
-0.0252832919,
-0.0709528998,
0.4531860054,
0.0865987018,
0.068740502,
0.059117917,
-0.1701724082,
-0.1758122146,
-0.0881454647,
-0.2163308859,
-0.4496686161,
0.2182220966,
0.0601511709,
-0.1500681341,
-0.5533456802,
0.0617665611,
-0.2378151715,
0.1814155132,
-0.1227408871,
0.2828263044,
0.328751266,
0.181951344,
-0.1554248333,
-0.2453550994,
0.122256197,
-0.1248542666,
-0.0093623288,
-0.0442132875,
0.1150959432,
-0.3545199037,
0.4502945244,
0.4435074329,
0.1504649371,
-0.0859052092,
-0.1223051623,
0.2869006991,
0.1731901914,
-0.0152330538,
-0.2569103837,
-0.0175519064,
0.162393719,
-0.0230821259,
0.3286898732,
0.0982615724,
-0.1849636286,
-0.2361325473,
0.2819386721,
-0.279859364,
-0.4200797677,
-0.1352798939,
-0.0043289876,
-0.0733566731,
-0.3321879804,
-0.2920281291,
0.0190325677,
0.0367762484,
-0.0160885341,
0.0514024235,
0.0777064487,
-0.2925451994,
-0.1867620796,
-0.1598433703,
0.4258097708,
-0.6456723213,
0.0549007803,
-0.1299290806,
0.0349945426,
0.1590851396,
0.3617970347,
-0.1314048618,
0.1441557556,
-0.3559285104,
0.0094694477,
0.2918242812,
-0.5207453966,
-0.4574781358,
0.0855570734,
0.3869652152,
-0.2977321744,
0.2846935987,
0.0809173808,
0.160673067,
-0.1620026827,
0.0117001943,
0.2161012441,
0.0686243176,
-0.2469921261,
-0.0120328953,
-0.1828506291,
0.04389349,
0.2415063828,
-0.0034102667,
0.4013131857,
0.1921706051,
0.0047581149,
0.0524617061,
-0.0943141431,
0.1270526648,
0.3066820502,
0.3205010891,
0.4424473941,
0.172731325,
0.1762865484,
-0.2260036469,
0.291208148,
-0.1170076951,
-0.2172812819,
0.2878511846,
0.0115911849,
0.0161372405,
-0.2953488231,
-0.220785588,
-0.1811323613,
-0.007617604,
0.2608889341,
0.2349206656,
-0.2933543324,
-0.0267957151,
0.6589476466,
0.226540938,
-0.1941642165,
0.2957310975,
-0.0269142203,
-0.1871455908,
-0.0424646325,
-0.1201219708,
-0.0311329048,
0.2132749259,
0.1775699854,
-0.2325889468,
0.3005898893,
0.0022563054,
-0.0776357725,
0.3121991754,
0.335896641,
-0.0462786965,
-0.012909648,
0.5341507196,
0.0875010043,
-0.0112854578,
-0.0671751797,
-0.2536234856,
-0.0285799988,
-0.1555694193,
0.3571642637,
-0.2178197354,
-0.0085011879,
0.1321295053,
-0.0853914544,
0.3848133385,
-0.2251413018,
0.3857043982,
-0.2674022615,
0.160810411,
-0.2045150399,
-0.022374345,
0.0500296466,
0.2000290751,
0.0464821458,
0.0900040939,
0.3841381669,
-0.2304574847,
-0.0612999983,
0.1181383282,
0.117584765,
0.6406488419,
0.146080792,
-0.0062329783,
0.0381105915,
-0.1333919764,
-0.03826892,
0.1126073077,
-0.1810553819,
-0.0053229169,
-0.0406740271,
-0.0634996817,
-0.1481621414,
0.124939166,
-0.3539214432,
-0.0089605683,
0.0603266098,
-0.4025311172,
0.1254865527,
-0.2663138509,
-0.2450938225,
-0.0418880172,
-0.3795004487,
-0.1935694814,
-0.1571079195,
-0.0439105779,
0.0742222294,
0.3458560407,
-0.0554471463,
-0.6163682938,
0.2907793522,
-0.1938139498,
-0.5244792104,
-0.2568771839,
-0.030818643,
-0.373029232,
-0.0545445755,
0.0315492302,
0.0334095135,
0.0565820225,
0.001354535,
0.4029372931,
-0.4331885278,
0.2553686798,
0.1720152497,
0.3753189147,
0.259696573,
0.0151376454,
-0.0903710574,
0.045308385,
-0.1888087541,
0.2970714569,
-0.083947584,
0.1273832619,
-0.0312310811,
-0.1942107975,
-0.0280024279,
0.0193984266,
0.2274571061,
-0.3716923594,
-0.2120229602,
-0.2424019277,
0.1433383375,
0.079745017,
0.3831817508,
-0.2004886121,
0.0953658372,
0.2932654023,
-0.3508402109,
-0.3323981166,
-0.365414083,
0.5393197536,
-0.4161731601,
0.0118387025,
0.1936703026,
0.2055073678,
-0.2015188187,
0.2151325494,
-0.4242050052,
0.0964951366,
-0.1795961261,
0.0807433352,
0.0342936255,
-0.0883577093,
0.1362949312,
-0.2433889359,
-0.0392157324,
-0.2442472279,
-0.5972722173,
0.2365328819,
-0.0724129528,
0.4560070038,
0.3650609553,
0.1059789583,
-0.0916178077,
0.4457307458,
0.0964220017,
0.1595917791,
0.4605712891,
-0.0735017583,
0.3184105456,
-0.0136252679,
-0.0809272602,
0.1316010952,
-0.0595003255,
-0.2526793182,
0.206504792,
0.2332798839,
-0.162436679,
0.0254411064,
-0.0352299288,
0.1512827426,
-0.1032656059,
0.1092284322,
-0.3504681885,
0.2434607297,
-0.0305182654,
-0.138599664,
-0.3490747213,
-0.4369842112,
0.470767498,
0.524585247,
-0.2454287112,
0.4193023145,
-0.1807517558,
0.1113051176,
-0.2360460907,
0.4586575627,
-0.1192059964,
0.3818719983,
-0.4501281679,
0.3092705607,
-0.112397939,
-0.0147014055,
0.5110967159,
-0.488311857,
0.1709708124,
0.4405172467,
0.2215120047,
0.1607987434,
-0.2506405413,
0.0454852544,
0.3383985162,
-0.4176430404,
0.0901420116,
0.2738478482,
-0.2527698576,
0.0532199368,
-0.0272601433,
-0.467355758,
-0.3163569272,
-0.0918903276,
-0.0569568239,
0.0641009882,
-0.2776579559,
-0.1184409261,
0.0401033759,
0.3600782752,
0.3120993674,
-0.1930748671,
0.1677639782,
0.3788414598,
-0.1430611461,
0.3332849741,
0.2072021216,
-0.083626166,
0.084490262,
0.1856541187,
0.1926147938,
0.2615590692,
-0.1616355479,
-0.1108482778,
0.1743610501,
-0.2599952817,
0.1231755987,
0.0483874753,
-0.1970623285,
-0.1120579839,
0.0306533165,
-0.0253594238,
-0.3931269348,
0.209609881,
-0.040330071,
-0.1396386772,
-0.282347858,
-0.3919420838,
0.4164452851,
0.0744009763,
-0.1704441309,
0.4063180983,
0.3550948203,
-0.355127722,
0.2467368245,
0.0781499743,
0.651103735,
-0.2317094952,
0.0413217992,
-0.2924339771,
-0.459600538,
-0.1842953712,
-0.1948485523,
0.0385680757,
-0.1240281537,
-0.2318088859,
-0.1503692567,
-0.0903322771,
0.3203734756,
0.4188171327,
-0.1880279779,
0.5310232639,
0.08548522,
0.0732925013,
0.1065141186,
-0.1120632961,
0.0741089657,
-0.3800899684,
0.2787133455,
0.1939138472,
-0.0752648786,
0.2040399164,
-0.0995932892,
0.1389642656,
-0.025456015,
0.1124388054,
-0.4690795541,
-0.0862767249,
-0.5284092426,
0.0550688431,
-0.1582948864,
-0.157260865,
0.1016688645,
0.1178227141,
0.4569377303,
-0.0447974093,
-0.212269485,
0.157885775,
0.1468142867,
0.0920067057,
-0.2134713233,
-0.0168729536,
0.0020502117,
-0.1468966603,
-0.2336989939,
-0.1124358326,
0.0008227442,
-0.5835399032,
-0.2684059441,
-0.2306131274,
0.2315962762,
-0.0021106962,
-0.0922532827,
-0.1822311878,
0.2307011336,
0.2200395018,
0.0676133707,
-0.0096415021,
0.2099123895,
0.1866277903,
-0.449647218,
-0.0763369948,
-0.1141119748,
-0.0535053313,
-0.4296340942,
-0.2064581215,
0.2676541507,
0.0008906803,
-0.093164213,
-0.0913442448,
-0.0895102546,
0.0319170877,
-0.1400097758,
-0.2013547719,
-0.0653558448,
-0.1735583842,
0.156319961,
-0.0680220276,
0.3295846879,
-0.1584562808,
-0.0559697337,
-0.418710798,
-0.1215190887,
-0.1466015577,
-0.3597604036,
0.1639638543,
-0.225947693,
-0.3933385313,
0.2311780006,
-0.1383241713,
-0.191132471,
0.000104577,
0.1545093209,
-0.0920532718,
-0.136414364,
0.193598792,
0.296339035,
0.1862526685,
-0.0671017617,
-0.243720293,
-0.0876428485,
-0.0772347376,
-0.2528386414,
0.1778158247,
0.0199228432,
0.1567855328,
0.0384652205,
-0.2315369993,
0.0238004997,
-0.1065339074,
0.136059165,
0.4663169086,
-0.1788538694,
0.3055635989,
0.0394606106,
-0.3041668236,
-0.3280594051,
0.0740608126,
0.3465185165,
0.3882781863,
0.0188466329,
0.1808872521,
-0.0720002353,
-0.0405944958,
-0.2922015786,
0.0611846261,
-0.0388225578,
-0.0349997245,
-0.22153759,
-0.2312075347,
0.3110746145,
0.2208742499,
0.0948445871,
-0.0335953869,
-0.0226293504,
0.0144146401,
0.3749231994,
0.0413136967,
0.0023533148,
-0.266915828,
-0.1157439649,
-0.2078692168,
-0.1973182708,
0.4525612891,
0.307855159,
0.0413307697,
0.0699676797,
-0.1190051362,
0.5813832283,
-0.1159406155,
-0.3443713188,
0.2724403441,
-0.1668227017,
0.2911585867,
0.4228004217,
0.4892131984,
-0.0294392854,
0.8494067788,
0.2110210806,
-0.0239869785,
0.37412709,
-0.0340196528,
-0.2246544361,
-0.5847417712,
-0.1734259129,
0.1263133585,
0.2699770927,
0.2626486421,
-0.3228521645,
0.1719607264,
-0.1433337331,
-0.1161766872,
-0.179014042,
-0.4177320004,
0.1715867668,
-0.3374358416,
0.3003840148,
0.0978951976,
-0.1745759398,
0.0924205333,
0.067926079,
-0.0253722798,
0.1279138774,
-0.2228805274,
0.0852088407,
0.0766692087,
0.3389739692,
0.2513724267,
-0.1098923609,
-0.1288879514,
0.2159268111,
-0.2958230972,
0.1166778579,
0.4527235031,
0.0408509225,
0.1794821769,
0.2273031026,
-0.2377320677,
-0.0539045855,
-0.210917592,
0.0057934807,
-0.0493149459,
0.0424001776,
-0.0364367701,
-0.1378651559,
0.1513023227,
0.1018323377,
0.0331030898,
0.2538626492,
-0.2496429533,
0.3161808252,
0.0220188797,
0.2991945744,
0.2000437677,
0.1922471225,
0.2069411725,
0.2616454959,
-0.2504761517,
-0.1989168078,
0.319648087,
-0.0838437006,
0.2157266736,
0.2454303056,
0.0192265641,
0.1832870394,
0.4234254956,
0.1119875833,
0.3532934487,
-0.2295433432,
-0.0899119303,
-0.4763190448,
-0.0003465835,
-0.0555825531,
-0.2668926716,
-0.0472122394,
0.0526001416,
-0.0892348439,
-0.1452380866,
0.468803525,
-0.0866781548,
0.0472872965,
0.2267995626,
-0.3549312651,
-0.0105336746,
0.2644641101,
0.4981246293,
0.1589111239,
-0.5530814528,
0.0672091842,
0.455622673,
-0.0252315272,
-0.0870580301,
-0.0961905941,
0.4168116152,
0.0889463499,
0.4691798985,
-0.2186756283,
0.2127044499,
0.2576369643,
0.184821412,
-0.4217245281,
0.045913972,
0.0423344858,
-0.3932203948,
-0.0256989468,
0.1231912896,
-0.6304080486,
-0.0291161835,
-0.2919799089,
-0.0300271213,
0.1483548135,
0.2352730781,
-0.0766760856,
0.3016293645,
-0.0349003002,
0.1033953503,
0.4050492942,
0.2613587379,
-0.1189400479,
0.281058073,
-0.2620742917,
0.1222634912,
0.3842462003,
-0.2537788749,
-0.3603966832,
0.0744023398,
0.3058951199,
0.0528523438,
-0.1602580398,
-0.2085424513,
0.0974014848,
0.2296553105,
0.2220072448,
-0.2222032696,
0.0691852719,
-0.1327784061,
0.1328289509,
0.068843253,
0.0415089726,
-0.0183698852,
-0.0479434915,
-0.3267988265,
0.0389853567
] |
https://github.com/huggingface/datasets/issues/2821 | Cannot load linnaeus dataset | Thanks for reporting ! #2852 fixed this error
We'll do a new release of `datasets` soon :) | ## Describe the bug
The [linnaeus](https://huggingface.co/datasets/linnaeus) dataset cannot be loaded. To reproduce:
```
from datasets import load_dataset
datasets = load_dataset("linnaeus")
```
This results in:
```
Downloading and preparing dataset linnaeus/linnaeus (download: 17.36 MiB, generated: 8.74 MiB, post-processed: Unknown size, total: 26.10 MiB) to /root/.cache/huggingface/datasets/linnaeus/linnaeus/1.0.0/2ff05dbc256108233262f596e09e322dbc3db067202de14286913607cd9cb704...
---------------------------------------------------------------------------
ConnectionError Traceback (most recent call last)
<ipython-input-4-7ef3a88f6276> in <module>()
1 from datasets import load_dataset
2
----> 3 datasets = load_dataset("linnaeus")
11 frames
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token)
603 raise FileNotFoundError("Couldn't find file at {}".format(url))
604 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}")
--> 605 raise ConnectionError("Couldn't reach {}".format(url))
606
607 # Try a second time
ConnectionError: Couldn't reach https://drive.google.com/u/0/uc?id=1OletxmPYNkz2ltOr9pyT0b0iBtUWxslh&export=download/
``` | 17 | Cannot load linnaeus dataset
## Describe the bug
The [linnaeus](https://huggingface.co/datasets/linnaeus) dataset cannot be loaded. To reproduce:
```
from datasets import load_dataset
datasets = load_dataset("linnaeus")
```
This results in:
```
Downloading and preparing dataset linnaeus/linnaeus (download: 17.36 MiB, generated: 8.74 MiB, post-processed: Unknown size, total: 26.10 MiB) to /root/.cache/huggingface/datasets/linnaeus/linnaeus/1.0.0/2ff05dbc256108233262f596e09e322dbc3db067202de14286913607cd9cb704...
---------------------------------------------------------------------------
ConnectionError Traceback (most recent call last)
<ipython-input-4-7ef3a88f6276> in <module>()
1 from datasets import load_dataset
2
----> 3 datasets = load_dataset("linnaeus")
11 frames
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token)
603 raise FileNotFoundError("Couldn't find file at {}".format(url))
604 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}")
--> 605 raise ConnectionError("Couldn't reach {}".format(url))
606
607 # Try a second time
ConnectionError: Couldn't reach https://drive.google.com/u/0/uc?id=1OletxmPYNkz2ltOr9pyT0b0iBtUWxslh&export=download/
```
Thanks for reporting ! #2852 fixed this error
We'll do a new release of `datasets` soon :) | [
-0.1098579168,
-0.1431658566,
-0.0036668191,
0.5683763027,
0.2294620275,
-0.0716871843,
0.0764337406,
0.3127034307,
0.1373579502,
0.0487763248,
-0.3296413124,
0.0350636207,
-0.0180284195,
-0.1834695041,
0.1603858322,
-0.2352235317,
-0.1053616777,
-0.0622279905,
-0.4106490314,
0.1044704542,
-0.130886361,
0.3101215065,
-0.0382801704,
-0.005236432,
-0.0595476814,
-0.06359943,
0.0269931927,
0.4038957655,
-0.0817027315,
-0.5142928958,
0.365811944,
-0.0257587824,
0.2221753895,
0.6335694194,
-0.0001129523,
0.1002365723,
0.3394466341,
-0.0037235718,
-0.4179128706,
-0.3696374297,
-0.1447289437,
-0.1747751981,
0.1479744166,
-0.1763243526,
-0.1769499034,
0.1925735474,
-0.0365835801,
-0.448187083,
0.2486858517,
0.211688146,
0.2418953031,
0.2672032416,
0.3284201026,
-0.1788066328,
0.0594659336,
-0.0254501402,
-0.1043901891,
0.7655643821,
0.117354311,
0.2063787431,
0.0510815009,
0.3760934174,
0.090874061,
0.1604606211,
0.4749840796,
0.039484188,
0.2304544598,
-0.268869251,
0.1130295321,
0.1952231824,
0.4000905454,
-0.1607924551,
-0.366540432,
-0.1934895068,
0.0951569378,
-0.3805068433,
0.3234522641,
0.1300037056,
-0.2127990872,
0.1132355034,
-0.1234927252,
-0.1773456037,
-0.279269129,
0.2881270647,
-0.0447791778,
-0.1690955758,
-0.1575404257,
0.1463273168,
0.1806661189,
-0.124824129,
-0.053927701,
0.0094063645,
-0.0262686852,
0.2579780817,
-0.2460853308,
0.1773654222,
-0.0310985651,
0.181728825,
0.255859822,
0.0904841125,
-0.140484795,
0.0120943235,
-0.0953952,
0.1886290312,
0.2989637256,
0.0496456996,
-0.0871777013,
0.0046280287,
0.2070223987,
0.503903985,
-0.2293084115,
-0.127459839,
0.0119241746,
-0.2724318206,
0.1770056337,
-0.1214358956,
0.4966044426,
-0.3770104349,
-0.1082003564,
0.0917363912,
-0.0458591208,
0.0481627546,
0.1512311399,
0.4551624656,
-0.2580024898,
0.1544599235,
0.0954445451,
0.0614505298,
-0.1204145476,
-0.1457550526,
-0.2277959883,
0.1879869998,
-0.1774341017,
0.0885473937,
0.3645631373,
-0.5190119147,
0.1639648676,
-0.0149770472,
0.252233237,
-0.1167272627,
-0.018683644,
-0.2165717483,
-0.1077895686,
0.3113506436,
0.0228780601,
0.0862024799,
0.1767020375,
-0.156744197,
-0.1832844168,
-0.0628963038,
-0.358212173,
-0.2106401771,
-0.083056137,
0.1629567444,
-0.2142595202,
0.0662847236,
-0.3244723976,
-0.0464084409,
-0.1090322509,
-0.1943713427,
-0.1086108908,
-0.1355386376,
-0.1367978752,
-0.2091417611,
0.3754201531,
0.6375408173,
-0.0808183253,
0.0584749132,
-0.1234020963,
-0.0431574397,
0.1322185993,
0.3780942559,
-0.1198971495,
-0.0201253127,
-0.2446830422,
-0.107802175,
0.2805714905,
-0.3060961366,
-0.3442859054,
0.114980951,
-0.0337684751,
0.3318835497,
-0.0532560647,
-0.0374131054,
-0.0318787321,
0.1323213875,
0.1931565851,
0.2832889557,
-0.056348905,
-0.1293171197,
-0.2122821957,
-0.2594577968,
0.1632751673,
0.2174010128,
0.1880999357,
0.1501255035,
0.0770919845,
0.0468288623,
0.1308796704,
-0.0778295621,
0.066931732,
0.1227843463,
0.1351914853,
0.4310696423,
-0.0718185678,
-0.3716205657,
-0.4436387122,
0.336380899,
-0.0314609371,
0.1913926452,
-0.1463511884,
0.0657712221,
-0.4101038873,
0.0308009181,
-0.0787295699,
-0.1457378268,
0.1097630784,
0.0998463705,
0.0353455506,
0.2634498477,
-0.2242711931,
0.4821531475,
0.0530593842,
0.1775316447,
-0.4551772177,
0.2577254772,
-0.0347050764,
-0.0915881395,
0.0311280694,
0.1576482505,
0.1089982763,
-0.0902794972,
-0.1034417301,
0.3063958287,
0.0274120495,
-0.0405849256,
0.108826369,
-0.107061483,
0.0980545357,
-0.1691556126,
0.0670721829,
0.0534189641,
0.1921953559,
-0.0061213067,
-0.3353888392,
0.1313282251,
-0.154335618,
0.2098013014,
0.0107588107,
0.0329193138,
0.3360373676,
-0.0081184292,
-0.0462264568,
-0.0963447914,
0.3444595635,
-0.1084637791,
0.499432981,
-0.0924287364,
-0.3686579466,
-0.1824695617,
-0.111512579,
0.0226243157,
0.0863871276,
0.2621726394,
-0.1716370583,
-0.0400452688,
0.0067799268,
0.1041774824,
0.3363497257,
0.0850466862,
0.0939542279,
0.0940395072,
0.0719724372,
-0.0245298333,
0.1491383165,
-0.0482979529,
0.220009923,
0.0769661292,
0.1324650049,
0.0646659881,
-0.4159030318,
-0.339474678,
-0.0652083009,
0.3232428432,
-0.3425341547,
0.166630879,
-0.1244774833,
-0.3035853207,
-0.2150220871,
-0.2546467781,
-0.446238786,
-0.2368634045,
-0.302986294,
0.5309481025,
0.1654843241,
0.0352377631,
-0.3215265572,
0.0583709925,
-0.0404528081,
-0.173448503,
-0.1826366931,
-0.024798749,
-0.1803611964,
0.0409548767,
0.2866390049,
0.1651409268,
0.4407707751,
-0.0842784867,
-0.0442239605,
-0.2323414236,
-0.3730416,
-0.0294401515,
0.0091494741,
0.4914529026,
0.1717601269,
0.4271707535,
-0.1075664684,
-0.2444172204,
0.4784312844,
-0.0908169523,
0.0685488731,
0.0768223628,
-0.2036724389,
0.0741950646,
0.0008809413,
-0.5234010816,
-0.3201757073,
-0.2964970767,
0.3565405607,
0.088876307,
0.0241042487,
0.4940642118,
-0.0086903907,
0.1140916795,
-0.0923538506,
0.1628053486,
-0.3461089134,
-0.6181039214,
0.3059367537,
-0.278154701,
-0.4102417231,
0.0600086935,
0.125389263,
0.3633440137,
-0.0327595472,
-0.6117784381,
-0.0045392564,
-0.1223774776,
0.1743087023,
-0.0899426863,
-0.1310315281,
0.0207805745,
-0.1267369986,
-0.0387924127,
0.0129933488,
-0.197880283,
-0.1798408329,
-0.0088723423,
0.1235190555,
0.0039647822,
0.3006072938,
-0.0057000956,
0.5055918097,
0.1251587123,
0.0853412077,
0.36922732,
0.0511209145,
0.4881690145,
-0.3019176722,
-0.5070809126,
-0.1335797906,
-0.1893320084,
0.0256698616,
0.0054523712,
0.2143645883,
-0.1302414984,
-0.3036272824,
-0.2458690554,
-0.2516881824,
-0.2852416635,
0.1365140378,
-0.0992166176,
0.1378863305,
0.0290459432,
-0.1467988491,
-0.1984383017,
-0.1798201054,
-0.1898526698,
0.5857320428,
0.282826215,
0.2692272961,
-0.4927920401,
0.2591663599,
-0.5437830687,
0.131682083,
-0.0735207871,
0.4005362391,
-0.2426701486,
0.1835499257,
0.1185220405,
0.0203855336,
0.3855632842,
0.1478423178,
0.4297838211,
0.245225206,
-0.3469167352,
-0.4284436107,
0.1479193419,
0.127266258,
-0.0030361761,
0.4096187055,
0.3735679984,
-0.2575895786,
-0.0308735259,
0.1607466191,
0.2486561686,
-0.1679404378,
-0.2994203866,
-0.2562253773,
-0.2295896262,
-0.3067691028,
-0.0736396834,
-0.0116306143,
0.3966581225,
0.37053743,
0.0559868664,
-0.1036734208,
0.0487801582,
0.2401848286,
0.2222826332,
0.142922461,
0.0422945842,
0.4125692546,
0.4882106483,
0.1184624061,
0.0244306643,
0.6174949408,
-0.0276213568,
-0.6739397049,
-0.0755874366,
0.2311677486,
-0.0158599224,
0.1919617355,
-0.1942848712,
-0.1250992119,
0.1588993371,
0.1396012157,
-0.0812209174,
0.2773296237,
0.057406649,
0.1291480809,
-0.4189876914,
-0.4065654874,
0.4614155591,
0.0728986785,
-0.0248795804,
0.3173591495,
0.1852021068,
-0.1900639981,
0.0608675815,
-0.1444211006,
0.9203285575,
-0.0377890877,
0.1290329993,
0.3462241292,
-0.0819155648,
0.5078807473,
0.0777401105,
0.0116896713,
-0.2593927383,
-0.2144419402,
-0.019857442,
-0.1125158221,
0.194331184,
-0.132790342,
-0.0507674292,
0.4270287454,
0.0441668928,
0.0233227611,
0.0325412154,
0.1910654455,
-0.0050378409,
-0.273011744,
-0.550560534,
0.1895080954,
-0.1917113364,
0.4713811278,
-0.1486087888,
-0.1439526379,
-0.090716958,
-0.1318974048,
-0.0942245275,
0.1017730534,
-0.1582667977,
0.301302731,
-0.0296493117,
-0.3180108666,
-0.0180555601,
0.130004853,
-0.059777949,
0.1640037745,
-0.3081129789,
0.2088379711,
-0.1724813282,
-0.2006235272,
0.1004103497,
0.1756677032,
0.1397546679,
-0.1888618469,
-0.1557834595,
0.0061079231,
-0.074637711,
-0.344710499,
0.0671190843,
-0.0123199169,
-0.0949987099,
-0.1176986918,
-0.259703517,
-0.1652003229,
0.1919192821,
-0.0706140101,
0.1399459839,
0.2263596952,
0.0399863683,
-0.1092119664,
0.2789070606,
-0.263368547,
-0.0934582949,
0.6049339175,
-0.0435959511,
-0.2974509299,
0.3684127927,
0.2711164057,
-0.1591369808,
-0.0773259848,
0.0296812896,
-0.0529251471,
-0.5901023746,
0.1162420064,
0.0221219435,
0.3236807287,
-0.137093246,
-0.1013457403,
0.2540922761,
-0.3785050809,
0.1729755402,
-0.6587609053,
-0.2781509161,
0.2384359539,
-0.2570829391,
0.1325255036,
0.1375769526,
0.0773722976,
-0.1278799921,
0.0461511388,
-0.2828448713,
0.2159303874,
-0.06803146,
-0.0153446877,
0.4675152898,
-0.0501252972,
0.1522691399,
-0.1469822228,
0.1267457008,
0.023775395,
-0.1837631762,
-0.1875145584,
-0.1944707185,
0.1109412536,
-0.144902885,
-0.2054655105,
-0.0715202913,
-0.2063226402,
-0.0248489361,
-0.1483225226,
0.0929168761,
0.402823329,
-0.0033537112,
-0.0944647044,
0.0791763738,
0.1351011395,
-0.2862478495,
0.3571730852,
0.0124073559,
-0.0937271565,
0.0591622703,
-0.0165073071,
-0.1653705388,
-0.1095689386,
-0.3179790974,
-0.027794756,
-0.028707156,
0.0027032846,
0.5015750527,
-0.0748104677,
0.0646538362,
0.2290384769,
0.179467231,
0.1800267547,
-0.0876839533,
0.1274281293,
0.0532916375,
0.165398255,
-0.3052540421,
-0.0202536527,
0.1616719961,
0.0090713613,
-0.0189883765,
0.1019238904,
-0.0128978677,
0.0412567668,
-0.1517838687,
0.0929421708,
0.4723513126,
-0.0426668674,
0.1329584271,
0.1896081567,
-0.1569468528,
-0.1234831139,
0.2636792958,
0.177901566,
0.0847952142,
0.6215698719,
-0.1151488274,
0.1475508064,
-0.1662747413,
0.0233473796,
-0.0067591658,
-0.2583770156,
-0.349134177,
0.3788990378,
0.0265690498,
0.0520994626,
-0.0912097842,
0.28275913,
-0.295037508,
-0.2381263673,
-0.1105133817,
0.115753822,
-0.1052900255,
0.0295346584,
0.008516903,
-0.2364258617,
-0.1409329027,
0.01664179,
-0.1832158267,
-0.2049674243,
0.3693358898,
0.2010636926,
-0.2949981689,
-0.4677323401,
-0.3516995013,
0.3162502348,
-0.0246514287,
-0.1387360394,
0.2355430871,
0.3972216547,
-0.1357555091,
0.1825456619,
0.3464145362,
0.5268884301,
0.1495816559,
0.198773846,
0.1265124232,
-0.091328159,
-0.0762351155,
-0.1071182936,
0.1564549804,
0.0565243848,
0.1400635093,
0.333332032,
0.205295071,
-0.1565947533,
0.2190281302,
-0.100988172,
0.3223036826,
-0.4391769469,
0.3071792126,
-0.2974651158,
0.0331952348,
-0.1077925637,
0.0944547802,
-0.2446489781,
0.0657375157,
0.2872647941,
0.0876967758,
-0.0261810236,
-0.0293233991,
0.0630771294,
0.0814955682,
0.5135886669,
0.2220086306,
0.0571161956,
-0.4488471746,
-0.235275358,
-0.8884504437,
0.1076438054,
-0.2813795507,
-0.1105364785,
0.2011602819,
-0.0130072981,
-0.0319683701,
0.2776533663,
-0.0550292581,
0.0415961146,
-0.076647304,
-0.0145770675,
-0.2234960496,
-0.2428142428,
-0.0475627631,
-0.0204232819,
-0.0823251233,
-0.3094793558,
0.1845415235,
-0.2136322856,
0.0460991748,
-0.0357470922,
0.0285496712,
0.012783193,
0.2756360173,
0.3079812527,
0.2152012438,
0.6308566332,
0.0293050744,
-0.288816154,
-0.3502055109,
-0.5530301929,
0.1024943441,
0.4333721697,
0.2024981678,
0.5229718089,
-0.1057332382,
-0.310637027,
-0.2398287058,
0.6266831756,
-0.1735200137,
0.0534489565,
-0.1775569469,
0.0458976664,
0.0100547187,
0.3290854394,
-0.0232771914,
0.348403722,
-0.1739284694,
0.1046600863,
-0.1560462862,
-0.3812660277,
0.6492168307,
-0.4117071629,
-0.2752858698,
-0.2286065966,
0.1440552473,
0.2265023291,
-0.1033518761,
-0.491748333,
0.1499260515,
0.3424098194,
0.1057307348,
-0.315613091,
0.215557307,
-0.2473869026,
-0.0007563119,
-0.0607645549,
0.5921410918,
0.0151254991,
-0.3535511196,
0.2004112601,
-0.0902963877
] |
https://github.com/huggingface/datasets/issues/2820 | Downloading “reddit” dataset keeps timing out. | ```
Using custom data configuration default
Downloading and preparing dataset reddit/default (download: 2.93 GiB, generated: 17.64 GiB, post-processed: Unknown size, total: 20.57 GiB) to /Volumes/My Passport for Mac/og-chat-data/reddit/default/1.0.0/98ba5abea674d3178f7588aa6518a5510dc0c6fa8176d9653a3546d5afcb3969...
Downloading: 13%
403M/3.14G [44:39<2:27:09, 310kB/s]
---------------------------------------------------------------------------
timeout Traceback (most recent call last)
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in _error_catcher(self)
437 try:
--> 438 yield
439
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in read(self, amt, decode_content, cache_content)
518 cache_content = False
--> 519 data = self._fp.read(amt) if not fp_closed else b""
520 if (
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/http/client.py in read(self, amt)
458 b = bytearray(amt)
--> 459 n = self.readinto(b)
460 return memoryview(b)[:n].tobytes()
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/http/client.py in readinto(self, b)
502 # (for example, reading in 1k chunks)
--> 503 n = self.fp.readinto(b)
504 if not n and b:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/socket.py in readinto(self, b)
703 try:
--> 704 return self._sock.recv_into(b)
705 except timeout:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/ssl.py in recv_into(self, buffer, nbytes, flags)
1240 self.__class__)
-> 1241 return self.read(nbytes, buffer)
1242 else:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/ssl.py in read(self, len, buffer)
1098 if buffer is not None:
-> 1099 return self._sslobj.read(len, buffer)
1100 else:
timeout: The read operation timed out
During handling of the above exception, another exception occurred:
ReadTimeoutError Traceback (most recent call last)
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/requests/models.py in generate()
757 try:
--> 758 for chunk in self.raw.stream(chunk_size, decode_content=True):
759 yield chunk
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in stream(self, amt, decode_content)
575 while not is_fp_closed(self._fp):
--> 576 data = self.read(amt=amt, decode_content=decode_content)
577
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in read(self, amt, decode_content, cache_content)
540 # Content-Length are caught.
--> 541 raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
542
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/contextlib.py in __exit__(self, type, value, traceback)
134 try:
--> 135 self.gen.throw(type, value, traceback)
136 except StopIteration as exc:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in _error_catcher(self)
442 # there is yet no clean way to get at it from this context.
--> 443 raise ReadTimeoutError(self._pool, None, "Read timed out.")
444
ReadTimeoutError: HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out.
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
/var/folders/3f/md0t9sgj6rz8xy01fskttqdc0000gn/T/ipykernel_89016/1133441872.py in <module>
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs)
845
846 # Download and prepare data
--> 847 builder_instance.download_and_prepare(
848 download_config=download_config,
849 download_mode=download_mode,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
613 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
614 if not downloaded_from_gcs:
--> 615 self._download_and_prepare(
616 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
617 )
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
669 split_dict = SplitDict(dataset_name=self.name)
670 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 671 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
672
673 # Checksums verification
~/.cache/huggingface/modules/datasets_modules/datasets/reddit/98ba5abea674d3178f7588aa6518a5510dc0c6fa8176d9653a3546d5afcb3969/reddit.py in _split_generators(self, dl_manager)
73 def _split_generators(self, dl_manager):
74 """Returns SplitGenerators."""
---> 75 dl_path = dl_manager.download_and_extract(_URL)
76 return [
77 datasets.SplitGenerator(
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/download_manager.py in download_and_extract(self, url_or_urls)
287 extracted_path(s): `str`, extracted paths of given URL(s).
288 """
--> 289 return self.extract(self.download(url_or_urls))
290
291 def get_recorded_sizes_checksums(self):
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/download_manager.py in download(self, url_or_urls)
195
196 start_time = datetime.now()
--> 197 downloaded_path_or_paths = map_nested(
198 download_func,
199 url_or_urls,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/py_utils.py in map_nested(function, data_struct, dict_only, map_list, map_tuple, map_numpy, num_proc, types)
194 # Singleton
195 if not isinstance(data_struct, dict) and not isinstance(data_struct, types):
--> 196 return function(data_struct)
197
198 disable_tqdm = bool(logger.getEffectiveLevel() > logging.INFO) or not utils.is_progress_bar_enabled()
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/download_manager.py in _download(self, url_or_filename, download_config)
218 # append the relative path to the base_path
219 url_or_filename = url_or_path_join(self._base_path, url_or_filename)
--> 220 return cached_path(url_or_filename, download_config=download_config)
221
222 def iter_archive(self, path):
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
286 if is_remote_url(url_or_filename):
287 # URL, so get it from the cache (downloading if necessary)
--> 288 output_path = get_from_cache(
289 url_or_filename,
290 cache_dir=cache_dir,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token)
643 ftp_get(url, temp_file)
644 else:
--> 645 http_get(
646 url,
647 temp_file,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/file_utils.py in http_get(url, temp_file, proxies, resume_size, headers, cookies, timeout, max_retries)
451 disable=bool(logging.get_verbosity() == logging.NOTSET),
452 )
--> 453 for chunk in response.iter_content(chunk_size=1024):
454 if chunk: # filter out keep-alive new chunks
455 progress.update(len(chunk))
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/requests/models.py in generate()
763 raise ContentDecodingError(e)
764 except ReadTimeoutError as e:
--> 765 raise ConnectionError(e)
766 else:
767 # Standard file-like object.
ConnectionError: HTTPSConnectionPool(host='zenodo.org', port=443): Read timed 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
| 646 | 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
```
Using custom data configuration default
Downloading and preparing dataset reddit/default (download: 2.93 GiB, generated: 17.64 GiB, post-processed: Unknown size, total: 20.57 GiB) to /Volumes/My Passport for Mac/og-chat-data/reddit/default/1.0.0/98ba5abea674d3178f7588aa6518a5510dc0c6fa8176d9653a3546d5afcb3969...
Downloading: 13%
403M/3.14G [44:39<2:27:09, 310kB/s]
---------------------------------------------------------------------------
timeout Traceback (most recent call last)
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in _error_catcher(self)
437 try:
--> 438 yield
439
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in read(self, amt, decode_content, cache_content)
518 cache_content = False
--> 519 data = self._fp.read(amt) if not fp_closed else b""
520 if (
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/http/client.py in read(self, amt)
458 b = bytearray(amt)
--> 459 n = self.readinto(b)
460 return memoryview(b)[:n].tobytes()
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/http/client.py in readinto(self, b)
502 # (for example, reading in 1k chunks)
--> 503 n = self.fp.readinto(b)
504 if not n and b:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/socket.py in readinto(self, b)
703 try:
--> 704 return self._sock.recv_into(b)
705 except timeout:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/ssl.py in recv_into(self, buffer, nbytes, flags)
1240 self.__class__)
-> 1241 return self.read(nbytes, buffer)
1242 else:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/ssl.py in read(self, len, buffer)
1098 if buffer is not None:
-> 1099 return self._sslobj.read(len, buffer)
1100 else:
timeout: The read operation timed out
During handling of the above exception, another exception occurred:
ReadTimeoutError Traceback (most recent call last)
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/requests/models.py in generate()
757 try:
--> 758 for chunk in self.raw.stream(chunk_size, decode_content=True):
759 yield chunk
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in stream(self, amt, decode_content)
575 while not is_fp_closed(self._fp):
--> 576 data = self.read(amt=amt, decode_content=decode_content)
577
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in read(self, amt, decode_content, cache_content)
540 # Content-Length are caught.
--> 541 raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
542
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/contextlib.py in __exit__(self, type, value, traceback)
134 try:
--> 135 self.gen.throw(type, value, traceback)
136 except StopIteration as exc:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in _error_catcher(self)
442 # there is yet no clean way to get at it from this context.
--> 443 raise ReadTimeoutError(self._pool, None, "Read timed out.")
444
ReadTimeoutError: HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out.
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
/var/folders/3f/md0t9sgj6rz8xy01fskttqdc0000gn/T/ipykernel_89016/1133441872.py in <module>
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs)
845
846 # Download and prepare data
--> 847 builder_instance.download_and_prepare(
848 download_config=download_config,
849 download_mode=download_mode,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
613 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
614 if not downloaded_from_gcs:
--> 615 self._download_and_prepare(
616 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
617 )
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
669 split_dict = SplitDict(dataset_name=self.name)
670 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 671 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
672
673 # Checksums verification
~/.cache/huggingface/modules/datasets_modules/datasets/reddit/98ba5abea674d3178f7588aa6518a5510dc0c6fa8176d9653a3546d5afcb3969/reddit.py in _split_generators(self, dl_manager)
73 def _split_generators(self, dl_manager):
74 """Returns SplitGenerators."""
---> 75 dl_path = dl_manager.download_and_extract(_URL)
76 return [
77 datasets.SplitGenerator(
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/download_manager.py in download_and_extract(self, url_or_urls)
287 extracted_path(s): `str`, extracted paths of given URL(s).
288 """
--> 289 return self.extract(self.download(url_or_urls))
290
291 def get_recorded_sizes_checksums(self):
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/download_manager.py in download(self, url_or_urls)
195
196 start_time = datetime.now()
--> 197 downloaded_path_or_paths = map_nested(
198 download_func,
199 url_or_urls,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/py_utils.py in map_nested(function, data_struct, dict_only, map_list, map_tuple, map_numpy, num_proc, types)
194 # Singleton
195 if not isinstance(data_struct, dict) and not isinstance(data_struct, types):
--> 196 return function(data_struct)
197
198 disable_tqdm = bool(logger.getEffectiveLevel() > logging.INFO) or not utils.is_progress_bar_enabled()
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/download_manager.py in _download(self, url_or_filename, download_config)
218 # append the relative path to the base_path
219 url_or_filename = url_or_path_join(self._base_path, url_or_filename)
--> 220 return cached_path(url_or_filename, download_config=download_config)
221
222 def iter_archive(self, path):
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
286 if is_remote_url(url_or_filename):
287 # URL, so get it from the cache (downloading if necessary)
--> 288 output_path = get_from_cache(
289 url_or_filename,
290 cache_dir=cache_dir,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token)
643 ftp_get(url, temp_file)
644 else:
--> 645 http_get(
646 url,
647 temp_file,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/file_utils.py in http_get(url, temp_file, proxies, resume_size, headers, cookies, timeout, max_retries)
451 disable=bool(logging.get_verbosity() == logging.NOTSET),
452 )
--> 453 for chunk in response.iter_content(chunk_size=1024):
454 if chunk: # filter out keep-alive new chunks
455 progress.update(len(chunk))
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/requests/models.py in generate()
763 raise ContentDecodingError(e)
764 except ReadTimeoutError as e:
--> 765 raise ConnectionError(e)
766 else:
767 # Standard file-like object.
ConnectionError: HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out.
``` | [
-0.3638956547,
-0.142130658,
-0.0797188804,
0.1200469062,
0.1668418348,
0.1872060895,
0.0386047252,
0.2438803762,
-0.0571570881,
-0.1331620365,
-0.0627649203,
0.1441399455,
0.348828733,
-0.0019752285,
-0.0935339332,
0.2313061208,
0.0492557846,
-0.1813281327,
-0.0657733604,
0.0541187562,
-0.0644874349,
0.1003924161,
-0.1485519111,
-0.1538379192,
-0.1942004412,
-0.0592064857,
-0.1093630716,
-0.1202171445,
-0.2129876316,
-0.2641814649,
0.3176382482,
0.1678793132,
-0.0866454244,
0.5624825954,
-0.0001095642,
-0.206145674,
0.3377981782,
0.0788482353,
-0.4498389363,
-0.4648267329,
-0.2613339722,
-0.1185770556,
0.0888731182,
0.0493725128,
0.0792771876,
0.1067879051,
0.0705107599,
-0.4283182621,
0.3173296154,
0.4327321947,
0.2017597109,
0.1783609986,
0.2336222529,
-0.1382243782,
0.1232368797,
0.0802624598,
0.0134520121,
0.4224598408,
0.1959226578,
-0.1228381991,
0.2677883506,
0.026940234,
-0.0859175026,
0.2206048816,
-0.1385431886,
-0.0203243773,
0.1799730361,
-0.4049909711,
-0.0455892943,
0.1644669175,
0.8760611415,
-0.0498092249,
-0.4123394191,
-0.2699546218,
0.1099987701,
-0.0107127884,
0.305614382,
0.3554000556,
-0.4313034713,
0.2249758542,
-0.2838399112,
0.0700306594,
0.0303665511,
0.3651785254,
0.1223641932,
-0.0159727447,
0.0214316044,
0.2920617461,
0.0948145092,
-0.0455701463,
0.2709402442,
-0.3481394649,
0.0262932833,
-0.0730998963,
-0.407039851,
-0.1091762781,
0.0345305726,
0.1573894024,
0.1790525466,
0.1141360402,
-0.0329116918,
-0.1888143569,
-0.0093014399,
0.1332783252,
0.3627252877,
-0.0514029972,
0.0227712467,
0.1718333513,
0.2054774463,
-0.0747329295,
-0.0656799227,
-0.0005854467,
0.0896900222,
-0.0134077929,
0.1178111956,
-0.1248833463,
0.3334635496,
-0.2927748859,
-0.2640203238,
-0.0683688968,
0.1210784614,
-0.0408358015,
-0.1997188181,
0.1755993068,
-0.4186324775,
0.1737189591,
-0.0235132016,
0.1207359508,
-0.2860051095,
-0.3834684789,
-0.0888736397,
-0.0542666279,
-0.2270244062,
-0.0607818216,
-0.025594091,
-0.0167297069,
0.0956359953,
0.174219504,
0.0805226564,
-0.3122352064,
-0.0038487604,
-0.2295089811,
-0.1563984305,
0.1975987554,
-0.1175195798,
0.4563015997,
0.0885375962,
0.1118025482,
-0.0920329243,
-0.0471641831,
-0.1970356852,
-0.2452469766,
-0.161451757,
0.2359230667,
-0.2093833536,
-0.2534176111,
-0.1873575151,
-0.1003126651,
0.2682975829,
0.0549781434,
-0.0631796122,
-0.0574920177,
0.0485179722,
-0.1066828668,
-0.0858376995,
0.3686821759,
-0.4268348515,
0.321561873,
-0.2427404374,
0.1214145124,
0.2209980935,
0.2091513276,
-0.2188081294,
0.0070211641,
-0.1598640978,
-0.1748518646,
0.2636781931,
-0.2803448737,
-0.6896677017,
0.0776348561,
-0.3067834079,
0.0360195935,
-0.1616358161,
0.2824028134,
0.3321718574,
-0.1226258501,
0.0851028264,
0.4505006969,
-0.2175914198,
0.0324917957,
-0.407615602,
-0.1520122141,
-0.0775400624,
0.1463227421,
-0.0387064964,
0.0160491243,
-0.13820602,
-0.0291026682,
0.2990523875,
0.4490669966,
0.1406911016,
0.2543386519,
0.0955417082,
0.2424472719,
0.0095890723,
-0.1858818382,
-0.3774221838,
0.174598664,
0.5166457891,
0.0398234092,
-0.2347048968,
-0.0346938334,
-0.4541685581,
0.0166555457,
-0.0438089333,
0.0101370253,
0.0289865714,
0.1677502245,
0.288700521,
0.199780345,
0.0198438931,
0.6505974531,
-0.0681823716,
0.3121291101,
-0.0864718258,
0.2073747516,
-0.1682164371,
-0.1355970502,
0.1590009481,
-0.3182857633,
0.1997078657,
-0.1743711233,
-0.1728224456,
0.3266715407,
0.0589873567,
0.1011906415,
-0.0256031305,
-0.2437625527,
0.2322074622,
-0.1403186023,
-0.1642283946,
0.352771759,
0.1008637249,
0.0236944612,
-0.2600859106,
-0.0127555616,
0.2208571434,
0.1852485985,
-0.2386240512,
0.1970195323,
0.1934297681,
-0.005059062,
0.1545084566,
-0.0676918104,
0.2783938944,
-0.2629437149,
0.1345346123,
-0.2053738385,
0.0025803689,
0.3789854348,
0.3293516338,
0.1056884453,
-0.2198496759,
0.1804495156,
0.1296848506,
-0.119863227,
-0.0056321849,
0.5065408945,
0.3067331314,
0.170411855,
0.2266139984,
-0.0701208189,
-0.2436687201,
-0.1433327794,
0.1890534461,
0.0757503435,
0.0555560999,
-0.0969584212,
0.1349174529,
-0.0243192427,
-0.0290595833,
-0.391277343,
0.1723953336,
0.3068222404,
-0.0378290489,
0.0120929396,
-0.2496584654,
-0.1520567685,
0.1568962038,
-0.1114776656,
-0.2432441413,
-0.5550536513,
-0.1170369461,
0.2648684978,
-0.0485746153,
0.0361478366,
-0.1683564633,
-0.1456125379,
0.3770266771,
-0.2226379216,
-0.0041138199,
-0.1587962806,
-0.0620050877,
0.085058786,
0.2173149586,
-0.1189317256,
0.3502158225,
-0.2401051372,
-0.231120944,
-0.3148244023,
-0.0313547663,
0.0154778007,
-0.1471476853,
0.3772634566,
-0.2286999822,
0.4140966237,
0.0851945654,
0.1193852946,
0.1587173194,
-0.164590314,
-0.0706984326,
-0.105010286,
0.0962466449,
0.1030079797,
-0.0575040616,
-0.2533048093,
-0.2038374394,
-0.3415124714,
0.1356619298,
-0.1374949217,
-0.0539903045,
0.1529119015,
0.2279940844,
0.0301787313,
-0.1151634753,
0.0764711127,
-0.1927662343,
-0.3900161982,
0.492621839,
-0.0878469646,
-0.1976854205,
0.0133778835,
0.2124523073,
0.0070860041,
0.3136510253,
-0.6629764438,
0.0568315573,
-0.3185948431,
0.2716563642,
-0.0546659119,
-0.2824904025,
0.2686044276,
-0.4917542934,
-0.105347842,
0.0398718752,
0.0277592037,
-0.0297614373,
0.1054958478,
0.4257928431,
-0.1738022566,
0.290147692,
-0.0058970042,
0.1678649336,
0.2327539623,
-0.0230305828,
0.085269779,
0.1211804152,
0.2642675042,
-0.0063392161,
-0.3034161031,
-0.0176090393,
-0.0341336504,
-0.136857152,
-0.0107167484,
-0.0085252747,
-0.2189046293,
-0.1899485886,
0.0047980091,
-0.2691439688,
-0.2852287591,
-0.1181232408,
-0.2087264508,
0.0319989212,
0.3415760994,
0.2162771076,
0.0480176806,
-0.1770516634,
-0.1402963698,
-0.0034892077,
-0.1222754642,
-0.2203558981,
-0.549100101,
0.1339451522,
-0.3536430597,
0.2230887413,
-0.0601284243,
0.3213074803,
-0.0807395056,
0.1125657111,
0.1893663555,
0.037919648,
0.6117432117,
-0.1809260845,
0.0362365991,
0.0179806743,
0.2915143669,
-0.4782932103,
-0.0769509748,
0.1523822695,
0.2845620513,
0.5226517916,
0.0370356105,
-0.31829983,
0.022299204,
0.0786772966,
0.2848936021,
0.1279169768,
-0.4066615999,
0.0861356929,
-0.1845367551,
-0.1715354025,
0.1556865275,
0.0990254655,
0.1399312317,
-0.006308516,
-0.225276053,
0.1577490568,
0.1879137903,
-0.0114683239,
-0.1006641909,
0.1955481172,
-0.2800942063,
0.5696737766,
0.0582192875,
-0.2168160528,
0.3292991221,
0.607147336,
0.2037019432,
-0.478362143,
-0.0077775409,
-0.035275694,
-0.1191032678,
0.2941100895,
0.0688012317,
-0.0737718046,
-0.2819930911,
0.3526282609,
0.0820842832,
0.157607168,
0.2579841018,
0.0414122753,
-0.4130151868,
-0.491019696,
0.1987431049,
0.0407049544,
0.0077408901,
0.7631576061,
-0.0821262151,
0.1172935739,
0.2169812322,
0.0036682219,
1.0106483698,
-0.1849300861,
0.0555882528,
0.0269524325,
-0.196893543,
0.4470202625,
-0.2444502264,
0.0533535704,
-0.0744407028,
0.0985227078,
0.0790509507,
-0.0900908336,
-0.1041534394,
0.2495372593,
-0.2677376568,
0.093412675,
-0.1866246611,
0.1198795065,
-0.1068738699,
0.1602321863,
-0.322109133,
-0.0493131652,
-0.0738775805,
0.2528643012,
-0.0190036763,
0.2423351556,
0.0503332429,
0.1021400541,
-0.216517359,
-0.0511650108,
-0.6515236497,
0.0607920177,
-0.1059932709,
-0.0249389037,
-0.3161869943,
-0.2694268823,
-0.0397359654,
0.0647980645,
0.180983901,
0.2945517898,
-0.1085295007,
0.2734042406,
-0.1617363095,
-0.0828539431,
0.0070877676,
-0.2562040687,
0.1700799018,
0.0257483423,
-0.404370755,
0.1728888899,
-0.0120190158,
-0.1925395131,
0.2453390509,
0.2451249957,
0.1537725627,
-0.1405612081,
0.0705394298,
0.004491928,
0.1839320958,
-0.3315316141,
0.1646397859,
0.2733989954,
0.1160797477,
0.2934764028,
-0.1306784153,
-0.3417876363,
-0.3124029934,
0.4209150076,
0.0147226537,
-0.0182725247,
0.2777172029,
0.1946513206,
-0.3831720948,
-0.3084495664,
0.0483949333,
-0.5737426281,
-0.375939399,
0.2708758712,
-0.4809348285,
0.3688185215,
-0.0525627248,
-0.1945745349,
0.1614540964,
0.0410520583,
0.1765296459,
-0.576995194,
-0.0723823905,
-0.1342255026,
-0.3124859929,
0.0035802673,
-0.1218175814,
-0.0174361337,
0.2209636867,
-0.0283058584,
-0.3059005141,
0.1072412208,
-0.2990957201,
0.1666987389,
0.363022387,
-0.1178336069,
0.3600856364,
-0.1476008594,
0.0719488785,
0.2135467529,
-0.1259142607,
-0.1867565662,
0.0088768238,
0.1204207614,
-0.0983189046,
-0.1987837255,
0.1021670774,
-0.4653486609,
-0.1139156371,
0.0836559683,
-0.1327843964,
0.1149015799,
0.0751328617,
-0.2157937884,
0.1564481854,
0.0608537011,
0.0319546089,
0.174404785,
-0.081453234,
0.4345970452,
0.2335427999,
0.3212583363,
0.1280276179,
0.047678981,
-0.5013423562,
-0.0021893615,
-0.1555355191,
0.0086167725,
0.5000968575,
-0.2849593759,
0.057456512,
0.3465842307,
0.3582385182,
0.5142096877,
0.0217753407,
-0.1660111547,
0.3493448198,
0.2776166499,
-0.0072567309,
-0.093151629,
0.31616503,
0.1954576075,
0.0127299475,
0.1659446657,
-0.028661428,
-0.1532747,
0.175232932,
0.2132847756,
0.74561584,
0.0594355203,
0.2120889276,
0.2359482348,
0.1325786412,
-0.0256501772,
0.4962303042,
0.2893052697,
0.0648459718,
0.1836963594,
-0.1896066368,
-0.0699173063,
-0.0696900934,
0.1187765673,
-0.0925605297,
-0.2562948763,
0.0800464824,
0.1729651541,
-0.2709693015,
-0.0536396317,
0.1682774127,
0.1517083049,
-0.2412226647,
-0.0526953116,
-0.1684114337,
0.2435318679,
0.078486599,
0.2163592577,
0.1559386998,
-0.1166476905,
-0.1253599375,
0.0594990067,
0.00615435,
-0.2609735131,
0.4184812605,
0.123250857,
0.0963148475,
-0.5866311193,
-0.0014918951,
-0.0868233666,
0.188174367,
-0.4743905663,
0.047452677,
0.0180926062,
-0.2157316208,
-0.0612208471,
0.2576413453,
0.5287143588,
0.1578762531,
-0.0736209229,
0.1887332499,
-0.0066004759,
-0.0833332539,
-0.0630710945,
0.4645082355,
0.089026697,
-0.0761164874,
0.4138442576,
0.1446330845,
-0.2284878343,
0.145345673,
0.1089742035,
0.2862815261,
-0.2727351189,
-0.0084778657,
-0.0594220199,
-0.1286308616,
-0.3655262887,
-0.1453653276,
-0.1309568584,
-0.0148778893,
0.4429957271,
-0.3660323322,
-0.0384186693,
-0.265814662,
0.1107901633,
-0.1612297148,
0.3122111559,
0.4844059348,
0.2282983065,
-0.1740746051,
-0.3672615886,
-0.3894626498,
0.0742108747,
-0.6396656632,
-0.150229007,
-0.143874988,
0.5153069496,
0.1265915036,
0.3481553197,
0.3572769761,
0.089767918,
-0.4011442363,
0.4775122106,
-0.2764579058,
-0.3765937686,
-0.050981041,
0.0072242776,
0.0850607604,
-0.3032618165,
0.1778672934,
-0.2237768024,
0.0236351155,
-0.1377320588,
-0.2066951394,
0.2231236398,
-0.1374200284,
0.4727039039,
0.0809812024,
0.2350996137,
0.2856601179,
-0.505497396,
-0.4817369282,
-0.2052444816,
0.0052701854,
0.0731385574,
0.0634792373,
0.3176401258,
-0.3422473967,
0.0149215115,
-0.1203675494,
0.1972676218,
-0.1143391803,
-0.2799229026,
0.2240278274,
-0.2387308776,
-0.0295136087,
0.329040885,
-0.0437298268,
0.1548277289,
-0.0523173027,
0.1966981143,
-0.2919939458,
-0.3440684974,
0.2796038091,
0.0334827155,
-0.4112814069,
0.0386853479,
0.1673299074,
0.1059005111,
-0.0483769625,
-0.2123417407,
0.099665992,
0.4178961813,
-0.063209869,
-0.2242978364,
0.2084811032,
0.054551091,
0.1583586782,
-0.0366301499,
0.4831289351,
0.0268594474,
-0.2417451888,
0.31837672,
-0.1463122368
] |
https://github.com/huggingface/datasets/issues/2820 | Downloading “reddit” dataset keeps timing out. | It also doesn't seem to be "smart caching" and I received an error about a file not being found... | ## 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
| 19 | 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 also doesn't seem to be "smart caching" and I received an error about a file not being found... | [
-0.3514557779,
-0.1771148592,
-0.0796714202,
0.1682870537,
0.1475949287,
0.2232837975,
0.0226032771,
0.2211401314,
0.0123540033,
-0.189738065,
-0.0006051387,
0.07988175,
0.2927660048,
-0.0234992765,
0.0045965817,
0.260556519,
0.1746073961,
-0.1837053299,
0.0295602456,
0.0212488659,
0.0039188028,
0.1042709723,
-0.2045951337,
-0.189121902,
-0.2868824005,
-0.0632347539,
-0.1026238352,
-0.065194793,
-0.1613501161,
-0.2562068105,
0.2678034604,
0.1747541428,
-0.1125699282,
0.5722392201,
-0.0001108744,
-0.2002594322,
0.3267358243,
0.0606779531,
-0.3902628422,
-0.4879056513,
-0.2514712512,
-0.1367274374,
0.0648576468,
0.0613182783,
0.1100816205,
0.0650019646,
0.0765785351,
-0.3915477097,
0.2778306603,
0.4178673029,
0.1937409788,
0.3087408245,
0.1997339427,
-0.1075378284,
0.2146612257,
-0.00598328,
0.0433714874,
0.3852340579,
0.1850038469,
-0.2150465846,
0.2256683707,
0.0387118943,
-0.0873248726,
0.2124775797,
-0.0270647425,
0.0023178591,
0.0624299049,
-0.4295827448,
-0.0266274177,
0.1627349108,
0.9098489881,
0.015501,
-0.4210056663,
-0.2765196562,
0.0643732548,
0.0191604067,
0.4107705653,
0.3963224888,
-0.3528383076,
0.2195534408,
-0.28654024,
0.0169613305,
0.0585763156,
0.3455072939,
0.1300354451,
-0.0365857892,
0.0514856465,
0.2121028453,
0.077693902,
-0.0127775241,
0.3182255924,
-0.3606897295,
0.0638848022,
-0.0454118438,
-0.422377497,
-0.0596106052,
0.0410243198,
0.2965488434,
0.218007803,
0.0376025513,
0.0090415003,
-0.233179599,
-0.1563537568,
0.1810907274,
0.4144001305,
0.0328041986,
-0.0863440335,
0.1566243321,
0.2490012199,
-0.1563358903,
-0.0637260377,
0.0281151515,
0.0535562262,
-0.0046372316,
0.20609501,
-0.1608814299,
0.2642781138,
-0.2941419482,
-0.2341359854,
-0.0317059942,
0.131910786,
-0.1088596061,
-0.2119632214,
0.2084038407,
-0.5190797448,
0.247320503,
-0.1339634359,
0.1147482544,
-0.3465743363,
-0.3769271672,
-0.0995050594,
0.0479185097,
-0.2433881313,
-0.0284865107,
-0.0462480001,
-0.0000036265,
0.076583527,
0.2044057995,
0.0176847689,
-0.363812983,
-0.0099052526,
-0.2387174666,
-0.1129431054,
0.1991782933,
-0.1510953456,
0.4225297868,
0.0376464091,
0.1037936807,
-0.0805963427,
-0.0162503887,
-0.3319400251,
-0.236573413,
-0.1203530282,
0.2128539979,
-0.3113928139,
-0.3375157416,
-0.1700791866,
-0.0349229127,
0.2402769625,
-0.0020039924,
-0.0957968608,
-0.0359609574,
0.0914466903,
-0.1080952883,
-0.0803300291,
0.4175197184,
-0.4671495557,
0.2881302238,
-0.1859705448,
0.136356473,
0.1721719801,
0.2570499778,
-0.1467759758,
0.0454531424,
-0.2080726177,
-0.1775383055,
0.273904115,
-0.186081022,
-0.7467337251,
0.0578028485,
-0.2843505442,
0.0424196497,
-0.1178644747,
0.3694849312,
0.240717873,
-0.1426741034,
0.0391036458,
0.4280470312,
-0.2491463721,
0.0049373112,
-0.3930661082,
-0.200665921,
0.0233061817,
0.1867520213,
0.0173273794,
0.0746781453,
-0.1123711318,
-0.0463861264,
0.2413775474,
0.42074278,
0.1031232774,
0.2581167221,
0.027649764,
0.3117121756,
0.0341693237,
-0.2208828479,
-0.4634928107,
0.1929713041,
0.497427851,
-0.0402289219,
-0.2256626189,
-0.0038945377,
-0.3863793015,
-0.0058577713,
-0.0664516315,
0.0201455411,
0.0067059803,
0.1483605504,
0.2730266452,
0.2620783448,
-0.0428326726,
0.6063827872,
0.0634972006,
0.2556882799,
-0.1081698462,
0.2015019506,
-0.1358217001,
-0.1573536694,
0.1642461568,
-0.3319026232,
0.2064647824,
-0.1426872462,
-0.1712403148,
0.3065046668,
0.0427155159,
0.1618179232,
0.0114988061,
-0.1000135094,
0.2866933644,
-0.1438962668,
-0.1582963169,
0.3258192837,
0.1136552319,
0.0031757697,
-0.295204103,
0.0175413117,
0.1608547121,
0.1463086456,
-0.2422056943,
0.128293395,
0.1188987419,
0.0218802504,
0.2346509844,
-0.0179281179,
0.3345372379,
-0.2813607156,
0.1407998502,
-0.1899897903,
-0.0198666975,
0.3656053245,
0.3421820402,
0.115136072,
-0.1574939787,
0.1737978309,
0.1267796755,
-0.1751208305,
-0.000987058,
0.4331417084,
0.2764455676,
0.1672483981,
0.2333200127,
-0.085927099,
-0.1909575015,
-0.1633751392,
0.1053181961,
0.0348652825,
-0.0363413915,
-0.0639247447,
0.1348115355,
-0.0042758416,
-0.0754826143,
-0.3622910976,
0.1658116579,
0.2567988634,
-0.031226214,
0.0473792143,
-0.2350287884,
-0.0895157382,
0.1797645688,
-0.0626697466,
-0.3132677674,
-0.5346179008,
-0.0570353344,
0.2572367191,
-0.0239655487,
0.0314367637,
-0.2107658833,
-0.0662346557,
0.4184938371,
-0.2246604711,
-0.0019354876,
-0.1966605037,
-0.0031245605,
0.0666255727,
0.2288981676,
-0.1572306454,
0.2978442609,
-0.2575804293,
-0.2320071459,
-0.438239783,
0.0100097712,
0.0240635872,
-0.1659139544,
0.3262791932,
-0.274530381,
0.4014870226,
0.0467612706,
0.184700042,
0.1293169856,
-0.215952158,
-0.056852106,
-0.0901851803,
0.1098200679,
0.0916871727,
0.0130148921,
-0.2832642496,
-0.2611862719,
-0.3255770206,
0.1303076297,
-0.1285692453,
-0.05958312,
0.0994409248,
0.213188231,
-0.0286171399,
-0.1400180906,
0.1327971369,
-0.2126910985,
-0.4661633074,
0.5746907592,
-0.1025393233,
-0.2443286479,
0.0728581771,
0.227420941,
-0.0849173665,
0.3090691268,
-0.7301835418,
0.0651280805,
-0.3316622078,
0.2532574236,
-0.0661317632,
-0.1861429363,
0.220613122,
-0.4908768535,
-0.0971384794,
0.0012672453,
0.0366497561,
-0.0588365383,
0.0865295902,
0.430655241,
-0.0872964114,
0.2449733317,
-0.0117749302,
0.2368471175,
0.1969715208,
0.0393533371,
0.1359304041,
0.1315881014,
0.2887611985,
0.038164407,
-0.1975028813,
0.0056361016,
-0.0781105459,
-0.1713751554,
0.0641339719,
0.0207207557,
-0.2424150705,
-0.1966177374,
-0.0034134369,
-0.2802680731,
-0.2028691322,
-0.1154054552,
-0.2398325801,
-0.0162449926,
0.320068717,
0.2180338204,
0.0189309586,
-0.2698967159,
-0.0365621671,
0.0151881985,
-0.0470496938,
-0.1482365876,
-0.5069868565,
0.1340522766,
-0.3120478988,
0.2034243643,
-0.0954853967,
0.3548943996,
-0.1077154353,
0.0429654047,
0.155305326,
0.0076527167,
0.5914548039,
-0.1041171327,
0.0983436927,
-0.0715872794,
0.2899124324,
-0.326839149,
-0.1091127321,
0.186949417,
0.2797991335,
0.3968086243,
-0.0841597691,
-0.2665335238,
0.1139556766,
0.0210890882,
0.3152821958,
0.1112035811,
-0.4647832215,
0.0356429331,
-0.0712440684,
-0.1073169112,
0.1279921234,
0.0826845616,
0.0197342429,
-0.0182538796,
-0.1706738323,
0.1882758141,
0.1699029356,
0.0500941984,
-0.1184469908,
0.2467596531,
-0.3339703381,
0.479537338,
0.1493545324,
-0.225358963,
0.2193413824,
0.7089191675,
0.1852731258,
-0.4553840458,
0.033659678,
0.0208237115,
-0.0945587605,
0.2738794982,
0.0477420762,
-0.0804544836,
-0.1090876758,
0.3035273254,
-0.0079232603,
0.1479126811,
0.2430758625,
0.0518565923,
-0.4522880912,
-0.5552823544,
0.2607025206,
0.1119508818,
0.0036001294,
0.7280555367,
-0.1057212055,
0.1578545719,
0.2373594642,
-0.0994786844,
0.9929691553,
-0.1621006578,
0.1493357271,
-0.0333849974,
-0.0478536934,
0.4863731861,
-0.3597362339,
0.0773659497,
-0.0537771657,
-0.0039166464,
0.0284776334,
-0.1073970348,
-0.2344087362,
0.2651615441,
-0.2373555452,
0.2292894721,
-0.2026772946,
0.2066045552,
-0.129842937,
0.1543672532,
-0.320378989,
-0.0110400869,
-0.0889735669,
0.2219662368,
0.0260918885,
0.2512619197,
0.0174464956,
0.1118963361,
-0.2052426338,
0.0056716152,
-0.6313536763,
0.07184349,
-0.1243229881,
-0.0102215661,
-0.3196528256,
-0.3208348155,
-0.0335320011,
0.1296311915,
0.1616761386,
0.2259855568,
-0.1288220435,
0.3198727071,
-0.0963645205,
-0.053740751,
-0.0080451574,
-0.2188042253,
0.19299151,
0.0218503363,
-0.300785929,
0.1726768613,
-0.0692979023,
-0.1604340076,
0.1041510701,
0.2808119059,
0.1768755466,
-0.0942792371,
0.0513107255,
-0.0405615158,
0.196417883,
-0.2893084884,
0.163948074,
0.411624372,
0.1906169951,
0.2454123795,
-0.1340896785,
-0.2700130045,
-0.4032470286,
0.4275883436,
0.0022111118,
-0.1101715565,
0.2125895321,
0.2454711646,
-0.4511730969,
-0.2619058192,
0.0425993875,
-0.5402833819,
-0.3960686326,
0.2499278337,
-0.5254065394,
0.3360443115,
-0.0837511644,
-0.1635058671,
0.1754440069,
0.0415310189,
0.1881676465,
-0.5935429931,
-0.0810242444,
-0.1003884673,
-0.2837699652,
0.0128188245,
-0.121530965,
-0.1770423949,
0.2575618625,
-0.034010388,
-0.2953879833,
0.0378857516,
-0.2645796835,
0.0987286493,
0.2678187191,
-0.0715710744,
0.3697847724,
-0.1025822535,
0.0607984178,
0.1411418915,
-0.1148399338,
-0.1495312303,
0.0062993919,
0.1379144937,
-0.0633909479,
-0.1479611248,
0.0588898882,
-0.4454342425,
-0.0665020794,
0.0915177464,
-0.0156414043,
0.1372482926,
0.0614573509,
-0.2270418853,
0.1766369492,
-0.0205350034,
-0.0309891291,
0.2033304423,
-0.0655851364,
0.4361164272,
0.1910601705,
0.2170722485,
0.1537664831,
0.0498853549,
-0.4696024656,
-0.0289687458,
-0.1080415249,
-0.0012204578,
0.5069379807,
-0.3495696485,
0.0856209248,
0.3764311969,
0.3894272745,
0.5139317513,
0.0112116979,
-0.1490624398,
0.4427870512,
0.2743191421,
-0.0154406689,
-0.1695471108,
0.3015776277,
0.1912881583,
0.0245828573,
0.1108363345,
-0.0200663172,
-0.1465347856,
0.1181682274,
0.2566961646,
0.7323005795,
-0.001100873,
0.1976026595,
0.0902483463,
0.1754856855,
0.0045163021,
0.4779078364,
0.3105091453,
-0.0350732058,
0.2082250714,
-0.0762825012,
-0.1176382974,
0.0369773917,
0.1323197037,
-0.106378071,
-0.2636116445,
0.0359183997,
0.1957788318,
-0.2781752944,
-0.0142178899,
0.1020690501,
0.1815604866,
-0.240210712,
-0.0688339472,
-0.1920790076,
0.204771176,
0.0795008093,
0.2561767697,
0.3552334905,
-0.1377822608,
-0.0822460055,
0.0817599967,
0.0413429327,
-0.2312031537,
0.3926379979,
0.1953661293,
0.1165909246,
-0.5178906918,
0.0058874553,
-0.090000324,
0.2304939032,
-0.4653826952,
0.0823567957,
-0.0151105979,
-0.2950533628,
-0.0217593312,
0.2152807117,
0.5295715928,
0.1805811077,
-0.0744955987,
0.1209975183,
-0.0446574874,
-0.0673835427,
-0.0638553873,
0.5054072738,
0.0441165939,
-0.1488215923,
0.3898946047,
0.1145918518,
-0.2024143636,
0.2241456211,
0.0561453141,
0.2569639385,
-0.3091997504,
-0.0556076542,
-0.0921863616,
-0.1618700773,
-0.380784452,
-0.1619995087,
-0.2222255319,
-0.0357227661,
0.4328234196,
-0.3476445675,
-0.032589484,
-0.2878082097,
0.1002570763,
-0.1317638904,
0.3615841866,
0.5655297041,
0.3356919885,
-0.1526852846,
-0.2620874047,
-0.4610738754,
0.0843295529,
-0.5949677825,
-0.0758611634,
-0.1460906416,
0.4706691504,
0.0703237802,
0.3799140751,
0.3234637976,
0.0588405877,
-0.4108418822,
0.467877835,
-0.320251137,
-0.3522127271,
-0.0815751329,
0.0398681872,
0.0524409153,
-0.2496675551,
0.1971650273,
-0.3352737129,
0.0077862972,
-0.142892912,
-0.2132217735,
0.1658727974,
-0.0511899441,
0.4950645864,
0.0748206601,
0.3029791117,
0.2944585085,
-0.4896102548,
-0.5438293815,
-0.2805479765,
0.0079495264,
-0.0352590531,
0.0365843624,
0.293691963,
-0.3994551301,
0.0398656838,
-0.1119330749,
0.2174253166,
-0.1450021118,
-0.2861660421,
0.1758307219,
-0.2617861032,
-0.0467303097,
0.372998178,
0.0740540698,
0.1809002906,
-0.0931032896,
0.1903899461,
-0.2506167293,
-0.3158217669,
0.2352679521,
-0.0230834223,
-0.3548652232,
0.003519994,
0.1605772376,
0.1762250513,
-0.0140077183,
-0.1961224377,
0.0897568837,
0.3986310959,
0.0048917998,
-0.1920950413,
0.182378456,
0.0494247265,
0.1833337545,
-0.0118857855,
0.4769110084,
0.0252298359,
-0.2749191523,
0.3731455505,
-0.1237803921
] |
https://github.com/huggingface/datasets/issues/2820 | Downloading “reddit” dataset keeps timing out. | To be clear, the error I get when I try to "re-instantiate" the download after failure is:
```
OSError: Cannot find data file.
Original error:
[Errno 20] Not a directory: <HOME>/.cache/huggingface/datasets/downloads/1ec12301abba4daa60eb3a90e53529b5b173296b22dc3bef3186e205c75e594c/corpus-webis-tldr-17.json'
``` | ## 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
| 32 | 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
To be clear, the error I get when I try to "re-instantiate" the download after failure is:
```
OSError: Cannot find data file.
Original error:
[Errno 20] Not a directory: <HOME>/.cache/huggingface/datasets/downloads/1ec12301abba4daa60eb3a90e53529b5b173296b22dc3bef3186e205c75e594c/corpus-webis-tldr-17.json'
``` | [
-0.3457064033,
-0.1134912223,
-0.0889912322,
0.129444018,
0.147492066,
0.2143733799,
0.048017364,
0.1998877525,
0.0338551588,
-0.0955311134,
-0.0302022602,
0.1168749481,
0.2437811345,
-0.0771486089,
-0.0491199605,
0.2314233035,
0.0577857271,
-0.1622307003,
-0.0559196025,
0.0735023767,
0.0110589517,
0.1274361163,
-0.0714067966,
-0.1832772493,
-0.2978641391,
-0.0655246675,
-0.1329078525,
0.0713865906,
-0.2183754742,
-0.3113505244,
0.2569486797,
0.1230735332,
0.0103954235,
0.6663291454,
-0.0001116103,
-0.1592563838,
0.2437491268,
0.0426404998,
-0.4877468944,
-0.5513867736,
-0.1342115551,
-0.194521904,
0.0699979439,
-0.0238280036,
0.1194948182,
0.0872307122,
0.186262399,
-0.4260832667,
0.296765238,
0.4254149497,
0.1753057092,
0.2387182266,
0.1722790003,
-0.0251175817,
0.1737601757,
0.1074788347,
0.0559897274,
0.4737620354,
0.1752824932,
-0.1304805279,
0.2195627391,
-0.020969145,
-0.1029604971,
0.2084075212,
-0.0964718759,
0.1018209308,
0.0989016369,
-0.4662339687,
-0.0699397102,
0.145407021,
0.9318506122,
-0.0477513671,
-0.4556200504,
-0.2536895275,
0.0674695373,
-0.008154124,
0.3597679436,
0.3981692195,
-0.3702106476,
0.2384303808,
-0.2310328782,
-0.0379168168,
0.0456236973,
0.3663992882,
0.1222333312,
0.0011731731,
0.0717665479,
0.1935007125,
0.0911999792,
-0.0108824046,
0.1897069514,
-0.287515074,
0.0827834234,
-0.0230278876,
-0.3163490891,
-0.0040633981,
0.0655485764,
0.1514581889,
0.1957384944,
0.0782986656,
0.0556204617,
-0.2048886716,
-0.1919865012,
0.1541331261,
0.3801207244,
0.01809006,
-0.0311851408,
0.0855461657,
0.3153651655,
-0.0658993796,
-0.0671007335,
0.0107096201,
0.0720503777,
0.0049376525,
0.2472786009,
-0.1595620066,
0.3136943281,
-0.1568961889,
-0.264934361,
-0.0032859559,
-0.0083132014,
-0.1022395939,
-0.172638014,
0.1798469871,
-0.4610126317,
0.2657696903,
0.0795592144,
0.0874037966,
-0.37334162,
-0.3142509162,
-0.077197589,
0.0610376447,
-0.287096262,
-0.0180026386,
0.014178725,
-0.1022645459,
0.1352747381,
0.1678621024,
0.0020397718,
-0.3097982109,
-0.0176950675,
-0.1359443367,
-0.1976194382,
0.2188748121,
-0.1506325305,
0.4216024578,
0.0583743677,
0.1022206321,
-0.0403342284,
-0.0383254252,
-0.266951263,
-0.2788282633,
-0.1351443678,
0.2164527029,
-0.2373247296,
-0.21259588,
-0.145617485,
-0.1163155213,
0.2005084902,
-0.0127506359,
-0.0898417085,
-0.0423632711,
0.1261981726,
-0.1159446836,
-0.0254688803,
0.4587132633,
-0.5205501318,
0.2254992872,
-0.2102181017,
0.1050471514,
0.1674224734,
0.2220854759,
-0.1680979431,
0.1256013215,
-0.3032052517,
-0.127632767,
0.3263625503,
-0.2088170201,
-0.6565340757,
-0.0064634699,
-0.4225063026,
0.0436370224,
-0.0398840271,
0.3199853897,
0.2116360813,
-0.0621474162,
0.0237385631,
0.334066987,
-0.1920741349,
0.0146881603,
-0.375851512,
-0.1495868117,
-0.0532919914,
0.1565195471,
0.0131837036,
0.0386524834,
-0.0940392539,
0.0106652435,
0.2913517356,
0.3134849072,
0.1198113859,
0.2804670334,
0.0698078126,
0.305670321,
0.0819983333,
-0.2470280677,
-0.4421096742,
0.2378840894,
0.5058312416,
0.0975983888,
-0.2918383181,
-0.0104448907,
-0.4422036111,
0.0312911905,
-0.0256959386,
0.0083427671,
0.0235645715,
0.1981826723,
0.2984958291,
0.230576098,
-0.0688345507,
0.5827645063,
-0.063000448,
0.2926051319,
-0.2162377983,
0.3001052141,
-0.1852465272,
-0.1520489007,
0.0735652745,
-0.3078401685,
0.0781650096,
-0.2067963928,
-0.1422501802,
0.3422005773,
-0.0093688751,
0.1589460969,
0.0476749018,
-0.0652101412,
0.2794475257,
-0.122491464,
-0.1327505708,
0.3763541877,
0.0903323591,
0.0723878816,
-0.2474758774,
-0.0002935425,
0.1602979749,
0.1797790378,
-0.1811096221,
0.1444839686,
0.1153944209,
-0.0085444245,
0.1329467893,
-0.0447311066,
0.4311592877,
-0.3700485826,
0.1274302006,
-0.2081590295,
-0.0152935563,
0.3702556193,
0.2613643408,
0.056955941,
-0.1585605592,
0.1701386869,
0.1249947622,
-0.1409878135,
-0.0852992013,
0.3960924149,
0.3165251017,
0.1875200272,
0.2048452497,
-0.0945080966,
-0.1836343259,
-0.1254290044,
0.127470538,
0.0232612696,
-0.0187186152,
0.0660413578,
0.1705088764,
0.0169538334,
-0.1588126123,
-0.4864626527,
0.1523249596,
0.3400335908,
-0.1289242953,
0.0425563343,
-0.2582893372,
-0.081186451,
0.1528226137,
-0.0556134395,
-0.3009980321,
-0.5474971533,
-0.0488039032,
0.3517227769,
-0.0317384079,
0.0333203077,
-0.1687019765,
-0.1326803416,
0.3515861928,
-0.1978579611,
-0.0380520262,
-0.1242399141,
-0.0250989497,
0.0519403256,
0.2081224471,
-0.1554656923,
0.3499413729,
-0.3303993344,
-0.2150826901,
-0.5077778101,
-0.0573957376,
0.042037569,
-0.0711470917,
0.3454362452,
-0.1364248842,
0.4982600808,
0.051556468,
0.0235980544,
0.1339965463,
-0.2258450538,
-0.1099700183,
-0.0887671933,
0.0489947684,
0.1446504891,
-0.0279513244,
-0.4025309682,
-0.1980052441,
-0.3813938797,
0.1214805171,
-0.1050282866,
-0.0400379002,
0.1701100916,
0.1836490184,
0.0213119145,
0.0021810001,
0.1341614276,
-0.1613621414,
-0.4538008571,
0.4539407492,
-0.1210562214,
-0.1833671331,
0.0870503187,
0.1361742169,
-0.0487817377,
0.320014298,
-0.7256786227,
0.0329238176,
-0.2690053582,
0.2915373147,
-0.1593286097,
-0.1423471421,
0.2895048559,
-0.4033138752,
-0.1086892784,
0.0458066836,
0.028443845,
-0.0452255495,
0.1700771302,
0.4130655527,
-0.1201202571,
0.2722564936,
-0.0237958785,
0.3074052632,
0.0999022424,
-0.0174082033,
0.1361950785,
0.1241229028,
0.2862435281,
-0.0135770971,
-0.2499908507,
-0.0356641933,
-0.0534124933,
-0.2116119564,
0.0808122531,
0.0698372647,
-0.1821413487,
-0.1863361299,
0.0072596944,
-0.329525888,
-0.2344164848,
-0.0848803595,
-0.2164967954,
-0.002823174,
0.2924297154,
0.0991396382,
-0.0508791991,
-0.1793628782,
-0.1007224545,
0.0946595371,
0.0371530131,
-0.1377043277,
-0.5816249847,
0.0662403926,
-0.3708141744,
0.1462102383,
-0.0140091777,
0.2827032804,
-0.0599454418,
0.1073076725,
0.1634767056,
-0.029418068,
0.6919804215,
-0.2152399421,
0.0371400602,
-0.029926531,
0.353736192,
-0.4249563813,
-0.0459863618,
0.1862322837,
0.3114414513,
0.4815079272,
-0.0239965804,
-0.325530827,
0.0689758584,
0.1253194064,
0.3304879963,
0.0509943515,
-0.4549201429,
0.0984177813,
-0.138391301,
-0.2370645702,
0.0883578733,
0.0409536175,
0.0671758577,
0.0519366898,
-0.1399579197,
0.2137628198,
0.1497507393,
0.0670154542,
-0.1214295179,
0.2189555019,
-0.283803314,
0.5442031026,
0.1434604973,
-0.1760968417,
0.3162307441,
0.7088832259,
0.1405873001,
-0.4247153699,
0.0590025149,
0.0815854669,
-0.1278007925,
0.2983302474,
0.1206629425,
-0.1569914222,
-0.1940546185,
0.3669217825,
-0.0035605938,
0.1559979022,
0.2746641636,
0.0425254963,
-0.4269048274,
-0.4922950864,
0.2004535645,
0.106794633,
0.0310725905,
0.6868847609,
-0.048327636,
0.1477253288,
0.3077606559,
-0.0741997585,
1.0407178402,
-0.2179799825,
0.1197612956,
0.0413823202,
-0.0214082561,
0.5579093695,
-0.4630920887,
0.0748170838,
-0.1090736091,
0.0262699034,
-0.0109227654,
-0.152987957,
-0.1878226101,
0.3844898939,
-0.1779044271,
0.153781727,
-0.2142795175,
0.1738723963,
-0.1212548167,
0.2222173065,
-0.4063539505,
-0.0682746843,
-0.1278553754,
0.2052880079,
0.0070127924,
0.2733255029,
-0.035559658,
0.2405062616,
-0.230995819,
-0.0035609955,
-0.6009571552,
0.0482941717,
-0.1448883116,
0.0285137706,
-0.4012344778,
-0.3080594242,
-0.136490196,
0.2661270201,
0.1745538116,
0.2025554031,
-0.0600725971,
0.2379781753,
-0.1382525265,
-0.1495206952,
-0.0210515838,
-0.2287066281,
0.2524907887,
0.0927498639,
-0.3896208405,
0.1058074385,
-0.1077685803,
-0.1877214164,
0.1917236894,
0.2199915349,
0.1235309392,
-0.098954007,
0.0367772989,
0.0433513038,
0.1285729855,
-0.2819080353,
0.1095124036,
0.3493515253,
0.1423766762,
0.2095106244,
-0.1349356025,
-0.2640582323,
-0.3781039715,
0.4134250581,
0.0218759105,
-0.0857010931,
0.3029449582,
0.2900453806,
-0.436270833,
-0.2456234396,
0.0378442407,
-0.5051122308,
-0.4053311646,
0.2660214305,
-0.3573098481,
0.3312880993,
-0.0398353636,
-0.180197984,
0.1913962215,
0.0492342003,
0.1025516093,
-0.6354932189,
-0.0688728169,
-0.0282225218,
-0.2394973934,
0.0633846223,
-0.0798386857,
-0.180877924,
0.1309539676,
-0.1610223502,
-0.2876026332,
0.095189862,
-0.2553073466,
0.0912964344,
0.3782757223,
-0.1046426967,
0.3756400347,
-0.1644015759,
0.0805488601,
0.1534278244,
-0.1319140345,
-0.1438296139,
-0.0169356074,
0.1424365193,
-0.056654375,
-0.1216361746,
0.1616322696,
-0.4505063593,
-0.0557557307,
0.0261626225,
-0.0478164703,
0.2395346612,
0.079997763,
-0.2451110631,
0.1829363853,
0.0039196308,
-0.0365814231,
0.1725438237,
-0.0338566862,
0.4763278663,
0.2203835249,
0.2932703197,
0.0837578773,
0.0673230439,
-0.5774546266,
0.0289656594,
-0.1202880144,
0.0637435615,
0.4671875238,
-0.3326799273,
0.0473768935,
0.3258731961,
0.4628506005,
0.5449550152,
-0.0101524312,
-0.0936512873,
0.3874696195,
0.2539564669,
0.0218379479,
-0.1331841201,
0.3642090261,
0.1027423218,
0.0447582938,
0.1804492921,
-0.0285877604,
-0.1250514388,
0.1498920619,
0.2051857412,
0.7734173536,
-0.0462943837,
0.1690046489,
0.124243103,
0.1203420386,
0.0064932187,
0.4481611252,
0.2540310025,
0.1060197353,
0.0917701796,
-0.1066584587,
-0.0925568119,
0.0123037286,
0.1724872887,
-0.182988748,
-0.3379845023,
0.0398433767,
0.1847473234,
-0.170937717,
0.018697558,
0.1239753887,
0.2378611863,
-0.2728783786,
-0.0608684011,
-0.153321892,
0.2601199746,
0.0617553741,
0.2621085942,
0.2569059432,
-0.1947938651,
-0.1001040116,
0.0892074928,
0.0280524176,
-0.2530421019,
0.2741195858,
0.1652855277,
0.0852829069,
-0.6464283466,
0.0074518155,
-0.1105929092,
0.1793160588,
-0.4398786426,
0.0459660999,
0.0450883098,
-0.288331002,
-0.0789093971,
0.2779343128,
0.5579772592,
0.1644069701,
-0.0585425571,
0.1780638844,
-0.1288060993,
-0.0518233068,
-0.1080694795,
0.369169116,
0.0417229086,
-0.1889352798,
0.3852723539,
0.1355163753,
-0.2180573642,
0.1424548179,
0.1456935853,
0.302074343,
-0.2055169344,
-0.0799815133,
-0.0809607208,
-0.1015381664,
-0.3095260561,
-0.1737588793,
-0.194685623,
-0.0438488722,
0.3546402156,
-0.3365457356,
-0.0382004939,
-0.2726591825,
0.1017242074,
-0.1623692364,
0.2015331537,
0.5906612873,
0.2629623115,
-0.1339448988,
-0.2415399253,
-0.4791155756,
0.0867284462,
-0.5807118416,
-0.1464296579,
-0.2388316989,
0.4592355788,
0.0935256109,
0.325101167,
0.4186297953,
0.0528817922,
-0.3567661345,
0.5118838549,
-0.2942035496,
-0.4408628643,
-0.070245564,
0.072171323,
0.0406722948,
-0.2368917763,
0.080013752,
-0.3003019691,
-0.0044023627,
-0.1498904824,
-0.1932370365,
0.1880461574,
-0.1040891632,
0.5126102567,
0.0676485822,
0.3033852875,
0.1854616553,
-0.5745764375,
-0.5213244557,
-0.3028704524,
-0.0419492461,
0.0739929676,
0.0750674233,
0.5065421462,
-0.4804160595,
-0.0385464467,
-0.1881071776,
0.1270100176,
-0.0792128369,
-0.2347916514,
0.1491241753,
-0.2023099512,
-0.0865538791,
0.3757195771,
0.0314428434,
0.2095026225,
-0.032079868,
0.2295542359,
-0.2249718159,
-0.3684898019,
0.28859815,
0.0787877515,
-0.2721016705,
0.0808417425,
0.1974209547,
0.102608256,
-0.0161034651,
-0.2055114061,
0.0939312801,
0.4026020169,
-0.0389592014,
-0.2909100056,
0.0970966592,
-0.0008468562,
0.1037740782,
-0.03824386,
0.4988761246,
0.0005765373,
-0.2682354748,
0.37309587,
-0.1041218564
] |
https://github.com/huggingface/datasets/issues/2820 | Downloading “reddit” dataset keeps timing out. | Hi ! Since https://github.com/huggingface/datasets/pull/2803 we've changed the time out from 10sec to 100sec.
This should prevent the `ReadTimeoutError`. Feel free to try it out by installing `datasets` from source
```
pip install git+https://github.com/huggingface/datasets.git
```
When re-running your code you said you get a `OSError`, could you try deleting the file at the path returned by the error ? (the one after `[Errno 20] Not a directory:`). Ideally when a download fails you should be able to re-run it without error; there might be an issue here.
Finally not sure what we can do about `ConnectionError`, this must be an issue from zenodo. If it happens you simply need to try 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
| 111 | 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
Hi ! Since https://github.com/huggingface/datasets/pull/2803 we've changed the time out from 10sec to 100sec.
This should prevent the `ReadTimeoutError`. Feel free to try it out by installing `datasets` from source
```
pip install git+https://github.com/huggingface/datasets.git
```
When re-running your code you said you get a `OSError`, could you try deleting the file at the path returned by the error ? (the one after `[Errno 20] Not a directory:`). Ideally when a download fails you should be able to re-run it without error; there might be an issue here.
Finally not sure what we can do about `ConnectionError`, this must be an issue from zenodo. If it happens you simply need to try again
| [
-0.4538249671,
-0.0359521843,
-0.1072576791,
0.2148067951,
0.2254009396,
0.0983383209,
0.1591715962,
0.2268798649,
-0.0526377186,
0.0000228251,
-0.1627775133,
0.1547372192,
0.1955918819,
-0.1334097087,
-0.0972537696,
0.0610445626,
-0.0565708056,
-0.067760244,
-0.1615537107,
0.0819471478,
0.0188206006,
0.1436863691,
-0.1121324897,
-0.0026503534,
-0.0766933933,
-0.1644877195,
-0.1467981935,
0.0507243462,
-0.2956552207,
-0.3328927755,
0.1694849432,
0.2418559194,
-0.0690901279,
0.6850526929,
-0.0001101032,
-0.1397205591,
0.2245098948,
0.049023632,
-0.3112406135,
-0.5094981194,
-0.1957669854,
-0.1742008477,
-0.0006460508,
-0.0291790403,
0.185485065,
0.0554978661,
0.1089928448,
-0.2749736905,
0.3389204443,
0.5729051828,
0.1995919198,
0.3697786927,
0.3693858087,
-0.0535561703,
0.2664014995,
-0.0121519845,
0.0311924964,
0.4169181585,
0.1380783767,
-0.0596360378,
0.1828979552,
0.0227427892,
-0.0756144971,
0.1545685381,
-0.11939165,
0.0333614275,
0.2555913031,
-0.388717711,
-0.1383718252,
0.2219341546,
0.7953240871,
-0.0027445168,
-0.4068216085,
-0.2871252,
0.16965352,
-0.0129160127,
0.3349570334,
0.2615113854,
-0.4169996977,
0.2174754739,
-0.2613836527,
-0.0808659643,
-0.1266335249,
0.4406140447,
0.1170141846,
0.0012064419,
-0.0256973598,
0.300727427,
0.2633585334,
-0.1087947637,
0.2221507877,
-0.3168982565,
-0.02924647,
0.01374928,
-0.3383380473,
-0.1888525188,
0.0329180919,
0.1638691723,
0.3037260771,
0.031855803,
0.0471079275,
-0.1961562634,
-0.0839971155,
0.1398136318,
0.3832519948,
0.0297968015,
0.0367341451,
0.0558996536,
0.2139371485,
0.0805045813,
-0.0963446721,
0.0382725075,
-0.0520349741,
0.0375240296,
0.1067028195,
-0.1745733768,
0.4148419201,
-0.2983430028,
-0.1657697707,
0.0255853906,
0.0757377148,
-0.1702814698,
-0.1688549817,
0.2133612037,
-0.4682382047,
0.2446541041,
-0.0922743902,
0.0652115196,
-0.3638775051,
-0.3287380636,
-0.0513936691,
0.0137415743,
-0.148739934,
-0.0431217141,
-0.0900758132,
-0.233572945,
0.1790359616,
0.1448258758,
0.0673104152,
-0.2530996501,
0.0061693205,
-0.2436126769,
-0.1551752985,
0.1279543638,
-0.0695511922,
0.2915445268,
0.123797521,
0.1339071244,
-0.0637521297,
0.0186465792,
-0.2753820717,
-0.3336544931,
-0.2002141327,
0.228095904,
-0.3359356225,
-0.2744777501,
0.025253417,
-0.1338586509,
0.3139725029,
-0.1475003809,
-0.1339813918,
-0.1570848525,
0.0600344874,
-0.0604760088,
-0.0414295159,
0.3157824874,
-0.3593471348,
0.1914788932,
-0.2504244149,
-0.0099844346,
0.1681512743,
0.2309770137,
-0.2553583384,
0.1200763509,
-0.2136330903,
-0.2048167288,
0.3608435094,
-0.3011219501,
-0.600212574,
0.0031674574,
-0.3776432574,
0.1416861117,
-0.1392539442,
0.2376515865,
0.3605266213,
-0.0069611119,
-0.0734065622,
0.3193846345,
-0.2023207545,
-0.0070758257,
-0.3626310527,
-0.1656436026,
-0.1414757669,
0.2422950119,
0.0788857788,
-0.0042995154,
-0.0377063416,
0.0240187626,
0.2975078225,
0.3169288635,
0.0668257028,
0.2782158256,
0.1488053054,
0.3036115766,
-0.0502670482,
-0.268284291,
-0.2213941664,
0.1641266644,
0.5927708745,
0.1514857411,
-0.2055569142,
0.0556627102,
-0.3700686991,
0.0064080884,
-0.0968772322,
-0.0029627823,
0.0381575376,
0.2506613731,
0.286986798,
0.2637933493,
-0.041552674,
0.4684082866,
-0.027948603,
0.3550289869,
-0.1794382632,
0.2723224759,
-0.2326213866,
-0.1905997545,
0.0346546993,
-0.2605828941,
0.1190181598,
-0.1672923267,
-0.1346307397,
0.3733447492,
0.0169511829,
0.058024738,
0.1264174581,
-0.1198540479,
0.2207271308,
-0.1083705574,
-0.1503272802,
0.2486807257,
0.114993915,
0.1063639522,
-0.1766043901,
0.1053012758,
0.1430364102,
0.2057058811,
-0.1959833652,
0.1009418294,
0.1564982384,
0.040631786,
0.0823939666,
0.0261108596,
0.4374154508,
-0.364156127,
0.0406905748,
-0.1805987954,
-0.0071349773,
0.3008778691,
0.4109621942,
0.0310152825,
-0.1827634126,
0.1770045459,
0.1970965862,
-0.0896120891,
-0.0317269489,
0.4135088325,
0.4253746569,
0.2163394243,
0.0385430045,
0.002714793,
-0.1771409959,
-0.0891940445,
0.1667309999,
0.0989233181,
0.1816509068,
0.0949448943,
-0.0189948361,
-0.0067830407,
-0.0840523019,
-0.5713557005,
0.0794093758,
0.4571002126,
-0.0892287791,
-0.137604326,
-0.1908156127,
-0.0958803222,
0.1683701873,
0.0160174649,
-0.4750836194,
-0.57869488,
-0.0676092803,
0.4529922605,
-0.0524928048,
0.0596473254,
-0.2232985198,
-0.1037176177,
0.3926707506,
-0.0736510828,
0.0445315652,
-0.2548266053,
0.0125569208,
0.0856888741,
0.2230580598,
-0.191049099,
0.2809529006,
-0.3305031359,
-0.2099801451,
-0.4389459491,
-0.0439105146,
0.1156764627,
-0.216409117,
0.3292762637,
-0.1231700107,
0.5877864957,
0.0931104347,
0.0436492711,
0.2046538889,
-0.3436300159,
-0.0776780099,
-0.0562044047,
0.0713260695,
0.145100385,
0.0598637648,
-0.2994941473,
-0.2301853895,
-0.4278174937,
0.1740369648,
-0.0479381643,
0.0908306092,
0.2794741392,
0.2059389949,
0.0834494755,
-0.2537412643,
0.1692144722,
-0.1258781999,
-0.5617022514,
0.4327823818,
-0.1177530363,
-0.2636638582,
0.0996504948,
0.3058506846,
-0.0206222311,
0.177289322,
-0.6788049936,
-0.0035096398,
-0.2368993908,
0.3396567106,
-0.2022636831,
-0.1831392646,
0.3164765239,
-0.4094331861,
-0.1001707762,
0.0228219982,
0.1097886339,
-0.0111630438,
0.1557814479,
0.422884047,
-0.0675443783,
0.3687639236,
-0.0110911373,
0.3627908528,
0.0647313595,
0.0253922418,
0.0362947024,
0.0257078297,
0.3557808101,
0.0485109724,
-0.3596302867,
-0.0280464813,
-0.0110425716,
-0.1352111995,
0.135245651,
0.0259225853,
-0.0934611335,
-0.2718134522,
-0.0847134516,
-0.2287119478,
-0.316334486,
-0.0509185046,
-0.160398677,
-0.0765902996,
0.2381765395,
0.1666230559,
-0.0253076609,
-0.2131288499,
-0.0903378129,
0.1065335572,
-0.0434230119,
-0.1533289105,
-0.6302165389,
0.2468214333,
-0.4078632891,
0.1728398204,
-0.0485002808,
0.2384985536,
-0.1775385737,
0.0593119748,
0.1668082178,
-0.0147909066,
0.5320881605,
-0.1183649451,
-0.0065428657,
-0.0412881039,
0.2439119071,
-0.4684117734,
-0.0319942795,
-0.0179601237,
0.2684276998,
0.3909963965,
0.1017177179,
-0.3571452498,
-0.0560009629,
0.1374455392,
0.2031073421,
0.102975376,
-0.3991027176,
0.0702963993,
-0.2252370417,
-0.3088777661,
0.1659784615,
-0.0910207853,
0.1600354016,
-0.0441161357,
-0.0862021744,
0.3067352176,
0.2041905969,
0.0026233676,
-0.1327375472,
0.1401607245,
-0.2742882669,
0.514708817,
0.1473811269,
-0.2570006549,
0.5399026871,
0.6204404235,
0.1855610162,
-0.5246993899,
-0.0027771725,
-0.1413168609,
-0.157563284,
0.2658458352,
0.1414179653,
-0.0564619713,
-0.1830665022,
0.4492012858,
0.1471314579,
0.2245178074,
0.3479782343,
0.1122063175,
-0.3846342564,
-0.3544853032,
-0.0518105775,
0.0050303927,
0.0098073054,
0.6732224226,
0.0225050822,
0.060500484,
0.2474563718,
-0.049816329,
1.1006952524,
-0.1692032516,
0.1691572368,
0.1133905873,
-0.1307371259,
0.5093161464,
-0.2213899493,
0.086821571,
-0.1366998106,
-0.1483264118,
0.0517303832,
-0.0947281197,
0.0730000734,
0.1920673996,
-0.2430831939,
0.0707541853,
-0.154696092,
0.188445881,
-0.0883380845,
0.1380518526,
-0.3857750893,
-0.077963002,
-0.1396878511,
0.2257314771,
-0.0752518103,
0.269074589,
0.0206742808,
0.086884059,
-0.2398616076,
-0.0202981904,
-0.504780829,
0.0938813314,
-0.093152836,
-0.0274194665,
-0.4438472986,
-0.155970633,
-0.1467040777,
0.2542878389,
0.0000523739,
0.1928373575,
-0.0549910925,
0.2169496417,
-0.1297851801,
-0.0963959694,
0.0818099976,
-0.2373090237,
0.144031316,
-0.0193446167,
-0.49692294,
0.2323334068,
-0.0716103166,
-0.3198161423,
0.1333940327,
0.1087031215,
0.0935105607,
-0.1285555363,
0.06633766,
-0.1190062314,
0.0405745506,
-0.3209661543,
0.1466360539,
0.2985938191,
-0.0046108281,
0.2261167467,
-0.0861770511,
-0.3036797643,
-0.3014826477,
0.3936605453,
-0.008236846,
-0.0050011785,
0.2596046329,
0.2101564407,
-0.3978388608,
-0.2830135822,
0.3068811297,
-0.4383845925,
-0.3919939697,
0.043470975,
-0.5033022165,
0.36547333,
-0.09442994,
-0.196287483,
0.2207842469,
0.0500570536,
0.1057845727,
-0.6435927153,
-0.112724863,
-0.0441769846,
-0.0875546038,
0.0152265439,
-0.0437844098,
-0.2011597604,
0.0685492903,
-0.0929154307,
-0.3221845925,
0.0387752242,
-0.2956760228,
0.1002295911,
0.4034520984,
-0.1686834842,
0.4216540456,
-0.2036425769,
0.0921619907,
0.107712768,
-0.1632180065,
-0.1457538307,
0.0300685354,
0.1397892237,
-0.0278808121,
-0.2190429419,
0.1264559031,
-0.4023297429,
-0.1240628585,
0.0671288297,
-0.0584939644,
0.1805597246,
0.0082784584,
-0.2347159684,
0.1887295842,
0.0936194211,
-0.0575822517,
0.1896216124,
-0.0769713819,
0.4825536907,
0.1868833303,
0.3720394373,
0.0232267398,
-0.03626379,
-0.4318804741,
0.0704972446,
-0.0795289427,
0.0478319488,
0.5599257946,
-0.286221087,
0.0592890456,
0.3281360567,
0.5346979499,
0.5222048759,
-0.006001988,
-0.1228737235,
0.3413523436,
0.2643198073,
0.0288651194,
-0.1323684007,
0.4328160286,
0.0564261414,
0.0538241789,
0.1736359745,
-0.2305140048,
-0.0726386085,
0.1665361077,
0.1727384627,
0.8266087174,
0.133185178,
0.1718323976,
0.2565771341,
-0.1135781184,
-0.0658832416,
0.4332051575,
0.2657815218,
-0.0021296155,
0.1296423525,
-0.2896937728,
-0.0243607927,
-0.0274886321,
0.1395931691,
-0.027296938,
-0.3127542138,
0.0777793303,
0.1400439292,
-0.1352996081,
-0.1218784973,
0.0924048051,
0.1922761053,
-0.20829916,
-0.1651860625,
-0.1020179689,
0.3825664818,
0.038568493,
0.3544968367,
0.0017306383,
-0.1745242178,
-0.1743301898,
0.0220151544,
0.0964683667,
-0.2946989536,
0.3090137839,
0.2508266568,
0.047455363,
-0.7139672637,
-0.1418224871,
-0.0674924627,
0.131034255,
-0.4903658032,
0.1432154924,
0.0534577891,
-0.1623404026,
-0.0222109687,
0.3072280288,
0.5712034106,
0.1255343705,
0.107101962,
0.248696506,
-0.0851116851,
-0.0366281196,
0.0435943343,
0.3503604531,
0.0601147227,
0.0243842211,
0.393198967,
0.1480337977,
-0.2403560579,
0.1648117006,
0.1535257101,
0.2381442189,
-0.2155443579,
-0.1856285185,
0.0254316591,
-0.1125086397,
-0.2143722177,
-0.1487715989,
-0.172624737,
-0.0003797958,
0.3418623805,
-0.2883595228,
0.0096084615,
-0.2853537798,
0.0952518508,
-0.1689323932,
0.2129428387,
0.5421628356,
0.1865499467,
-0.0928706601,
-0.2022404671,
-0.4226511717,
0.1845500916,
-0.549263835,
-0.3295220137,
-0.1850747913,
0.3340442777,
0.1740223467,
0.4482901394,
0.4680611193,
-0.0904590711,
-0.2368760407,
0.399417758,
-0.3604360223,
-0.3117971122,
0.0756684244,
0.0595293008,
0.0811510459,
-0.2063942701,
0.2447951883,
-0.2420948893,
0.0437558107,
-0.0615610927,
-0.2038391083,
0.1301208436,
-0.2715986669,
0.3323510885,
0.0370634459,
0.3929246068,
0.1993745714,
-0.4113180637,
-0.3911921382,
-0.2847714126,
-0.0875258222,
0.1173937321,
0.1652346253,
0.4006868005,
-0.3302828968,
-0.1996988058,
-0.2120482028,
0.3072329462,
-0.1407977194,
-0.2316660583,
0.1535106152,
-0.2409273982,
0.1307956278,
0.268887192,
-0.0364870988,
0.011967333,
-0.00852268,
0.1623504758,
-0.2913173735,
-0.2029950917,
0.3976861537,
0.0385885537,
-0.2475546896,
-0.0036506287,
0.11979945,
0.0990643948,
-0.170085758,
-0.2421634644,
0.0882802382,
0.3698874116,
-0.0766192749,
-0.2562713325,
0.0985952318,
-0.0127005447,
0.1415996253,
0.0295897052,
0.3484927118,
-0.0263654161,
-0.3384764791,
0.3663104177,
-0.0425284654
] |
https://github.com/huggingface/datasets/issues/2820 | Downloading “reddit” dataset keeps timing out. | @lhoestq thanks for the update. The directory specified by the OSError ie.
```
1ec12301abba4daa60eb3a90e53529b5b173296b22dc3bef3186e205c75e594c/corpus-webis-tldr-17.json
```
was not actually in that directory so I can't delete it. | ## 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
| 26 | 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
@lhoestq thanks for the update. The directory specified by the OSError ie.
```
1ec12301abba4daa60eb3a90e53529b5b173296b22dc3bef3186e205c75e594c/corpus-webis-tldr-17.json
```
was not actually in that directory so I can't delete it. | [
-0.3095023334,
-0.1504021585,
-0.1248522922,
0.1671922356,
0.0626937002,
0.2322172672,
0.0452463068,
0.2481846809,
0.0208498687,
-0.0671561658,
-0.0702518076,
0.1633017659,
0.2610353827,
-0.1121932417,
-0.1331467181,
0.2049565464,
0.0665127486,
-0.2218915671,
-0.0956013799,
0.120662652,
-0.0917955935,
0.1593910754,
-0.1283441037,
-0.1198261753,
-0.1411830038,
-0.1201368272,
-0.1345244348,
-0.030577546,
-0.2029901147,
-0.3059111536,
0.2204694748,
0.1168280989,
-0.0292116255,
0.6436535716,
-0.0001098637,
-0.1421746314,
0.2654626966,
0.0524745882,
-0.4409986734,
-0.5108647943,
-0.2619165182,
-0.129853189,
0.0590725914,
-0.0312446021,
0.2131992877,
0.0836233869,
0.1228472963,
-0.3912441134,
0.2117973268,
0.4887259901,
0.1886624545,
0.3496264219,
0.2179190964,
-0.0172984079,
0.1792482436,
0.0728333667,
0.0780198872,
0.3980510235,
0.1822241843,
-0.1413721442,
0.1812855005,
0.0218105037,
-0.1129290685,
0.2673594952,
-0.11714454,
-0.0004772035,
0.1453634501,
-0.4685248733,
-0.0216492098,
0.1269263625,
0.9099084139,
-0.0185251907,
-0.4328918159,
-0.1754164845,
0.0527638905,
0.081589371,
0.455994606,
0.4742852151,
-0.3605516255,
0.2056498379,
-0.2597312629,
-0.0197782703,
-0.0729319826,
0.3834028542,
0.0901442319,
0.0476596989,
0.0735124946,
0.2317583263,
0.0998643339,
-0.0492648259,
0.2535369992,
-0.3695167601,
0.0089940811,
-0.0261943284,
-0.3241217732,
-0.1076201126,
0.0020493714,
0.1523837745,
0.122641623,
0.0144250831,
-0.0172261707,
-0.2915512919,
-0.2147483975,
0.1797130853,
0.4288503826,
0.0015058761,
-0.0348932222,
0.1349712908,
0.2598966956,
-0.0260887109,
-0.0193672776,
0.0810118765,
0.1183841005,
0.0089719417,
0.083582364,
-0.1330718547,
0.3993257284,
-0.2017677873,
-0.2572390437,
-0.0288926493,
0.0433469564,
-0.1179030389,
-0.2280002385,
0.1583619416,
-0.4906693697,
0.208863765,
0.0793646127,
0.1370233744,
-0.3628248572,
-0.3598409593,
-0.0434100516,
0.1102724001,
-0.163895905,
-0.1707212925,
-0.0593390465,
-0.1105477065,
0.0511404388,
0.1225287095,
-0.0155337425,
-0.3069615066,
-0.0715053976,
-0.1762697995,
-0.1245331988,
0.2396805882,
-0.1146277711,
0.4079992473,
0.1003962755,
0.1169272661,
-0.0820334107,
0.0389702581,
-0.3303120732,
-0.3403404355,
-0.1272415668,
0.237420693,
-0.2133951336,
-0.303963691,
-0.1250537336,
-0.1104234979,
0.2541173697,
0.0337230824,
-0.0793845728,
-0.09632276,
0.0166097432,
-0.0846723691,
-0.157470867,
0.3429023325,
-0.5084068179,
0.321328789,
-0.1965834498,
0.1041990072,
0.1816944033,
0.3182141185,
-0.1496502608,
0.0935459882,
-0.2771325111,
-0.1204958335,
0.2729803026,
-0.2532719076,
-0.6182513237,
0.0820885226,
-0.3610653877,
0.0075530754,
-0.0865055323,
0.2850089371,
0.2797898054,
-0.1380781233,
-0.0132087134,
0.3752260208,
-0.2172142118,
0.0725086406,
-0.3490177393,
-0.1847130507,
-0.0213701651,
0.1756251752,
-0.0187506489,
-0.0033899867,
-0.143077895,
-0.033580102,
0.3587702513,
0.3870671988,
0.1483342201,
0.3216247559,
0.0243825261,
0.278378576,
0.0534567013,
-0.2024548501,
-0.3310602009,
0.1612713635,
0.5941174626,
0.1395786256,
-0.2706464827,
0.0003419785,
-0.4284190536,
0.0866752937,
-0.0213274434,
0.0571301542,
0.0183077771,
0.1815390289,
0.2960184515,
0.2478747964,
-0.0115100471,
0.4557387829,
-0.0579033121,
0.2721843421,
-0.2114625275,
0.2506324351,
-0.2167893499,
-0.1202928126,
0.156069845,
-0.3509275317,
0.0836670399,
-0.2268951982,
-0.2199625671,
0.3265955746,
0.0438919887,
0.1196843982,
0.0249900334,
-0.0596185215,
0.2224901766,
-0.2003029436,
-0.1345724463,
0.4064632058,
0.1330253631,
0.0998227224,
-0.2701017261,
-0.019689681,
0.2064270675,
0.2266619951,
-0.1862728,
0.1116254106,
0.0908956528,
0.0398535915,
0.20472911,
-0.0470399298,
0.4167721272,
-0.3639965653,
0.0535617024,
-0.2369761914,
0.025681274,
0.3321654201,
0.3510742784,
0.0703332201,
-0.182864368,
0.2540558279,
0.1528061926,
-0.1309076995,
-0.0735408366,
0.347720623,
0.2638314068,
0.1764097214,
0.1616753191,
-0.124132134,
-0.1138275191,
-0.1220457852,
0.1897412688,
0.1262058467,
-0.043698594,
-0.0182875767,
0.1533726454,
-0.0168347601,
-0.1188559607,
-0.4593300521,
0.0727741122,
0.4072107673,
-0.0815587118,
0.0731034055,
-0.2246204764,
-0.149161458,
0.1998506635,
-0.0577892326,
-0.3491258323,
-0.5447544456,
-0.0516445413,
0.3656087816,
-0.0903267935,
0.0406890064,
-0.0846578106,
-0.1173726469,
0.45727548,
-0.1580536813,
-0.0107644433,
-0.1331920624,
-0.0478318706,
0.073472783,
0.2426552773,
-0.194661051,
0.3340427876,
-0.2936217487,
-0.2266913652,
-0.5305725336,
-0.0189865138,
0.0168312397,
-0.1706741303,
0.2737116516,
-0.1221016571,
0.5325043201,
0.0582203306,
0.0858036801,
0.0869641528,
-0.2566452324,
-0.1234242544,
-0.0716626495,
0.0591876619,
0.1748989969,
-0.0101408679,
-0.3868835866,
-0.1918507665,
-0.4045590162,
0.1063610241,
-0.1477372348,
0.0216790587,
0.1028050929,
0.1835915446,
0.0243515093,
0.0331160612,
0.1411414444,
-0.1265155673,
-0.4522253275,
0.4309334457,
-0.0664701015,
-0.2162591219,
0.104317911,
0.2256391644,
-0.0498274229,
0.2152762562,
-0.7514486909,
-0.014528241,
-0.278327018,
0.2697311938,
-0.1753170639,
-0.189716354,
0.2162371874,
-0.4299248457,
-0.0869582444,
0.0475654975,
0.0349086523,
-0.0592547171,
0.1991395652,
0.3676385283,
-0.078748025,
0.3557335734,
-0.0129547501,
0.1998180598,
0.1184440181,
0.0496496782,
0.1700465083,
0.1690751165,
0.2795868218,
0.0121601876,
-0.233967945,
-0.0585167706,
-0.0014460043,
-0.2347748578,
0.125249818,
0.0456063859,
-0.1891672462,
-0.1527427286,
-0.0685342103,
-0.2882634699,
-0.2439083159,
-0.0603175834,
-0.1026766151,
0.0170280058,
0.2532616556,
0.0990901962,
0.0114231771,
-0.2779009938,
-0.0780701563,
0.1083372906,
-0.0395467728,
-0.1868324131,
-0.4770653248,
0.0852853507,
-0.3877298236,
0.2447302788,
-0.0003017198,
0.2891823351,
-0.0396193936,
0.1181324348,
0.1726476252,
-0.0341562666,
0.6463546157,
-0.1588417739,
0.1628613323,
-0.037556041,
0.2864970565,
-0.4513315856,
-0.0555174872,
0.0547595136,
0.3185350895,
0.5014468431,
-0.0028706945,
-0.2623035014,
0.0188497249,
0.1009353325,
0.2959571481,
0.0538649857,
-0.4968963563,
0.0795543045,
-0.2046011388,
-0.2623449564,
0.1263028085,
0.1091593951,
0.0686354339,
0.0350881033,
-0.1038480029,
0.2448896766,
0.0855246335,
0.0520429946,
-0.1704456359,
0.1298329234,
-0.2464816421,
0.4957831502,
0.0454469547,
-0.2059769779,
0.3695718348,
0.6841815114,
0.1612988412,
-0.462818712,
0.0990603715,
-0.032214988,
-0.1157462075,
0.2643629014,
0.1172472537,
-0.0979505852,
-0.1994203627,
0.3689551353,
0.020875847,
0.1572160423,
0.2718421221,
0.0810239241,
-0.4527803361,
-0.4301778674,
0.113894105,
0.0375650115,
0.028946517,
0.630308032,
-0.0606515706,
0.1159685701,
0.3418048322,
-0.0649460033,
1.0060210228,
-0.2283346355,
0.1064811051,
0.0492463931,
-0.0904068202,
0.4886732101,
-0.4113642871,
0.0716899037,
-0.1177024245,
0.0135572813,
0.0311492607,
-0.1090932563,
-0.1918100119,
0.335475117,
-0.2478165478,
0.09341003,
-0.1912205368,
0.1450517774,
-0.1241279244,
0.2234557718,
-0.2989010513,
-0.0206946712,
-0.1991700381,
0.2247373462,
-0.0198318083,
0.2506229877,
-0.0100728823,
0.2096996158,
-0.1463121474,
-0.0804261044,
-0.6208149791,
0.045326639,
-0.0195438396,
0.0316735879,
-0.3655817211,
-0.1974221021,
-0.0437817387,
0.2366869152,
0.1416718811,
0.2241816074,
-0.0163395423,
0.2341421098,
-0.1062712073,
-0.1597451121,
-0.00084955,
-0.1496988535,
0.144496575,
0.0135768401,
-0.2735589445,
0.2143669873,
-0.109181948,
-0.2239747494,
0.2120579183,
0.2389527857,
0.0794448629,
-0.1365669817,
0.0419681631,
-0.1080690995,
0.1240836009,
-0.239519164,
0.1314406991,
0.3121676743,
0.1640824676,
0.2492802739,
-0.1205935478,
-0.3549576104,
-0.3437148631,
0.4136875272,
0.0535840057,
-0.007390447,
0.3306725323,
0.312874943,
-0.4030727148,
-0.3092560768,
0.0924074575,
-0.5343803167,
-0.320562005,
0.3328486979,
-0.4157613814,
0.3471696377,
-0.0627882853,
-0.137817964,
0.2030165046,
0.1054212004,
0.1233612001,
-0.6414013505,
-0.0647876933,
-0.0836528838,
-0.2053901255,
0.0240563676,
-0.1460575759,
-0.1997725815,
0.1127578095,
-0.1422039419,
-0.295127064,
0.0484703891,
-0.2745980322,
0.0958572254,
0.3683098555,
-0.090253517,
0.4197203219,
-0.0623871461,
0.0887813494,
0.1003365889,
-0.1311421245,
-0.1470998377,
0.0164528973,
0.1390111446,
-0.076667659,
-0.1915548146,
0.1097423062,
-0.5065026879,
-0.0802383572,
0.0977503434,
-0.0953501984,
0.1345020086,
0.0178678446,
-0.2570758462,
0.1775741726,
-0.0285101458,
0.0442681797,
0.2221823484,
-0.1041630432,
0.5471838713,
0.1964339316,
0.2797549367,
0.1488572061,
0.0148906121,
-0.5414077044,
-0.0015544519,
-0.0919463262,
0.0543604642,
0.3810916245,
-0.3114637434,
0.0728840083,
0.3426958621,
0.4172762632,
0.5035361052,
-0.0343138464,
-0.1695256531,
0.2993563414,
0.2728627622,
0.0618402846,
-0.1616176367,
0.3489339352,
0.086429961,
-0.0092736529,
0.1848195642,
-0.1044385508,
-0.0587015748,
0.1856521964,
0.2389997691,
0.7759049535,
0.0514620952,
0.1726848185,
0.0957847685,
0.0030999612,
-0.0193006899,
0.3979815245,
0.197618261,
0.0659399256,
0.0808460265,
-0.1315651387,
-0.0837667435,
0.1171829924,
0.1486094743,
-0.0626390874,
-0.3323948085,
0.034631215,
0.1082112789,
-0.1654981077,
-0.0080608502,
0.2052627951,
0.0791037828,
-0.2886409163,
-0.0663576424,
-0.2051647007,
0.2875979841,
0.0468936637,
0.2713530064,
0.1986186653,
-0.1460888982,
-0.0298798494,
0.1195138097,
-0.004729962,
-0.2354215384,
0.2322648019,
0.2363516688,
0.105132781,
-0.586502552,
-0.0447982699,
-0.1485784799,
0.1900198311,
-0.4724008143,
0.0266746935,
0.0291524995,
-0.2448444366,
0.0099700121,
0.2574673891,
0.5680679083,
0.214383468,
-0.0539006777,
0.1223604679,
-0.1421368718,
-0.0592410564,
-0.0138143795,
0.4059748352,
0.000004857,
-0.0787822902,
0.4521327019,
0.1227862164,
-0.208247304,
0.1654383391,
0.1053879485,
0.2668370306,
-0.1839601994,
-0.1674204171,
-0.0302670635,
-0.0702591315,
-0.3013980389,
-0.2018901706,
-0.1886168122,
-0.0504565276,
0.3965958357,
-0.3332307935,
-0.005068542,
-0.1903361827,
0.0933341831,
-0.1705902666,
0.3120708168,
0.6364374161,
0.2870885134,
-0.1428944319,
-0.297039181,
-0.3884439766,
0.1540688425,
-0.5896975994,
-0.1935308725,
-0.2076190263,
0.4632065892,
0.0898941904,
0.3273732364,
0.4216402769,
0.0515937693,
-0.4094792008,
0.4779763818,
-0.3611393273,
-0.3932266533,
0.0418683961,
0.076632686,
0.0460631512,
-0.2648558319,
0.1191572398,
-0.2247225195,
-0.0011503586,
-0.1998832077,
-0.1851943284,
0.1524483263,
-0.0451054089,
0.4760364592,
0.0896723494,
0.3005130291,
0.1971117705,
-0.5851708651,
-0.474062711,
-0.2801946104,
-0.0704730228,
0.0913136452,
0.0888687968,
0.4465156496,
-0.4278231263,
-0.0006200583,
-0.1412665397,
0.1998655796,
-0.1642402112,
-0.2047735155,
0.1525723487,
-0.1896264106,
-0.0411875583,
0.4074382186,
-0.0385517292,
0.0942020714,
0.0715059415,
0.1940278709,
-0.287376076,
-0.3336481154,
0.3049745858,
0.0193080306,
-0.3906155229,
0.0559616685,
0.1058754772,
0.0637912676,
-0.0104584433,
-0.2375223488,
0.1077346131,
0.4397534728,
-0.0333892703,
-0.2493494004,
0.1037245393,
-0.0079171285,
0.1705269516,
-0.0169550739,
0.5145736933,
0.0177303348,
-0.3262773752,
0.3846449852,
-0.1136136726
] |
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.3229551315,
-0.1548750252,
-0.0958517119,
0.2122766376,
0.1727839559,
0.2089087963,
0.0311658904,
0.2200948894,
-0.0430056825,
-0.0564695187,
-0.072283946,
0.1025688946,
0.2630369067,
-0.0284359157,
-0.1015663967,
0.2591444254,
0.0751859546,
-0.1532899439,
-0.1340025663,
0.0937622488,
-0.0453595333,
0.1273858398,
-0.1522027701,
-0.1518073976,
-0.2515838146,
-0.081337899,
-0.1123948991,
-0.013346835,
-0.2417639345,
-0.3136617839,
0.2217780799,
0.1977146417,
-0.0670336559,
0.6311798096,
-0.0001082193,
-0.1661071926,
0.2970054746,
0.060700573,
-0.4434765279,
-0.5188804269,
-0.2158620656,
-0.1876018643,
0.0243743025,
0.018411357,
0.1335862875,
0.0764066204,
0.0671558529,
-0.3609516919,
0.3123520911,
0.3766126335,
0.2216304541,
0.2938492894,
0.1855627894,
-0.1055659205,
0.1551820189,
0.0236801282,
0.0808866248,
0.4364548624,
0.1442380548,
-0.1347503215,
0.1696617454,
0.0660865977,
-0.0995426401,
0.2206774205,
-0.1114257127,
-0.0089219762,
0.184403196,
-0.4553859532,
-0.0359133482,
0.1294728816,
0.8906870484,
-0.0397686847,
-0.3760147691,
-0.2968246341,
0.1337404996,
0.0270687658,
0.4262495041,
0.4283312261,
-0.3859820366,
0.2389270216,
-0.2663233876,
-0.0228598025,
0.0520488359,
0.3368497491,
0.0947219506,
-0.022938272,
-0.0076306066,
0.190226078,
0.1924696416,
-0.0476932675,
0.3261295259,
-0.3512675762,
0.0251161624,
-0.092847161,
-0.381216228,
-0.0857717693,
0.0138087366,
0.1782031804,
0.1665261239,
0.0568922795,
-0.0361496434,
-0.2665973008,
-0.1561307311,
0.1570049226,
0.4282913208,
0.0166723114,
-0.0358767696,
0.1470229924,
0.2235931307,
-0.0597805157,
-0.0454056375,
0.0735235959,
0.0501849875,
-0.034241613,
0.1098432615,
-0.0982879251,
0.297677815,
-0.169359386,
-0.2574084699,
-0.02965023,
0.1553849876,
-0.1137760282,
-0.2534313798,
0.1721238494,
-0.456833899,
0.3014908135,
-0.0733492002,
0.1033492535,
-0.322407037,
-0.3715546727,
-0.0770323873,
0.0178421345,
-0.2535534203,
-0.1149994284,
-0.0478271022,
-0.0865905136,
0.0556587875,
0.2549181581,
-0.0034713731,
-0.3169314563,
-0.0021107977,
-0.2342968285,
-0.0961764827,
0.2281833142,
-0.0899434984,
0.4282740057,
0.056363944,
0.1315539181,
-0.0567201152,
-0.0037883937,
-0.3410362005,
-0.2845480144,
-0.1375983059,
0.2481369376,
-0.2255695611,
-0.2428178191,
-0.152455315,
-0.0870865658,
0.1295226663,
0.0438935608,
-0.0951592848,
-0.0379464366,
0.1215738505,
-0.1129855588,
-0.0805241019,
0.3380517662,
-0.4335295558,
0.2870416343,
-0.2611808181,
0.0653513521,
0.2386944294,
0.2952562273,
-0.2074876428,
0.0207776465,
-0.2533311546,
-0.14450638,
0.283165127,
-0.1660370231,
-0.7092908025,
0.067032814,
-0.3865573406,
0.0544940308,
-0.0951567292,
0.2693454623,
0.2380082309,
-0.1328062862,
0.0359677486,
0.4281700552,
-0.2406545281,
0.0688112453,
-0.389673233,
-0.2089088261,
0.0580075569,
0.1221135631,
-0.0680815428,
0.0384231322,
-0.1475018412,
-0.0306048542,
0.3082166314,
0.3910112679,
0.0956729129,
0.3066321313,
-0.0085596228,
0.2678190768,
0.0175745618,
-0.1669082493,
-0.3697958589,
0.181689173,
0.4722081423,
0.0637298301,
-0.2675576508,
-0.038968347,
-0.4558922052,
0.0080369469,
-0.0186160579,
0.0451201759,
0.0606048368,
0.206585139,
0.2361145467,
0.2035789192,
-0.0189472511,
0.5488881469,
0.0479958132,
0.2936904728,
-0.1253659278,
0.1977760792,
-0.1798653454,
-0.1205082685,
0.1851099133,
-0.363132,
0.1816335618,
-0.2229927629,
-0.1726035923,
0.3127639294,
0.0540519208,
0.1943843514,
0.0477310903,
-0.2152792215,
0.2617832124,
-0.1447610408,
-0.1480251849,
0.407790035,
0.1012225822,
0.0592157654,
-0.225485459,
0.0057251728,
0.2113430202,
0.1735050082,
-0.2585219741,
0.1331923604,
0.1047109514,
-0.0047232052,
0.2456094921,
-0.0934915543,
0.3387975097,
-0.2489473969,
0.1024931967,
-0.1653572917,
0.0717939362,
0.3274766505,
0.310159117,
0.0543165803,
-0.2026437521,
0.2211815864,
0.086545594,
-0.128426224,
-0.0187281873,
0.4358159304,
0.2632165849,
0.1839125454,
0.276388377,
-0.0652681813,
-0.1404545903,
-0.1486683488,
0.1811478585,
0.0201217085,
-0.0072506373,
-0.046074573,
0.1301449388,
-0.0028624425,
-0.1005294472,
-0.3409176171,
0.163184315,
0.3060810864,
-0.0270072408,
-0.0144398669,
-0.3174677491,
-0.1755048335,
0.224302575,
-0.0507291481,
-0.2910995483,
-0.5441326499,
-0.0666456148,
0.2732475102,
-0.0621728189,
0.0719594806,
-0.1098335311,
-0.1164224148,
0.3750083745,
-0.1574857384,
-0.0236031171,
-0.1277328134,
0.0175013095,
0.1086304337,
0.2345092744,
-0.2008154243,
0.3059836328,
-0.2675748467,
-0.2694884539,
-0.4199399054,
-0.0039955368,
0.0205785837,
-0.1766994447,
0.2704049945,
-0.1738455892,
0.4695634544,
0.1040982977,
0.1371684074,
0.1168255657,
-0.198544696,
-0.0714370012,
-0.0763071775,
0.0881827027,
0.1546368003,
-0.0620137565,
-0.3198411465,
-0.2525844276,
-0.3489463925,
0.1429212838,
-0.1798453331,
-0.0103376294,
0.0810251012,
0.1957707405,
-0.0042209881,
-0.0697442293,
0.1001497731,
-0.2080838084,
-0.4533269107,
0.4969055057,
-0.0752503574,
-0.2108902633,
0.0671744645,
0.2153133303,
-0.0347476006,
0.2523425519,
-0.6985368133,
0.1177352518,
-0.3417287171,
0.2311584204,
-0.0959615558,
-0.0915401503,
0.1849164963,
-0.4445742965,
-0.137757659,
0.0578001328,
0.0158677939,
-0.1199643239,
0.182892859,
0.4253918529,
-0.1589239836,
0.2361422777,
0.0096747279,
0.1478538513,
0.1611284316,
0.0944743752,
0.1329363883,
0.0986263081,
0.3116334677,
0.0382882357,
-0.2367187589,
-0.0082218871,
-0.0521574728,
-0.1688453704,
0.0556840226,
0.0042466107,
-0.1978373528,
-0.1728804111,
-0.0491408929,
-0.3031013608,
-0.2826766968,
-0.0783570781,
-0.2005127668,
-0.0245785322,
0.276831001,
0.0961307958,
0.0270896051,
-0.2244979441,
-0.0682405159,
0.0223050136,
-0.0316495672,
-0.1880515367,
-0.4782492518,
0.1640077829,
-0.3637947142,
0.2138876915,
-0.078215085,
0.2673684061,
-0.0601462387,
0.0691483468,
0.1800274104,
0.0097439326,
0.5972946882,
-0.1228707731,
0.0711161345,
-0.0421208963,
0.2663245201,
-0.3959361613,
-0.0773221552,
0.130768016,
0.2371253222,
0.4672702551,
-0.0770893395,
-0.2989768386,
0.0393823162,
0.0109475832,
0.3277235031,
0.0852343962,
-0.4379780889,
0.0409492701,
-0.1564340442,
-0.2209915519,
0.1038959548,
0.0966449082,
0.0743274987,
-0.0187691599,
-0.192545712,
0.2158985138,
0.1383883953,
0.1051002219,
-0.1186630428,
0.2249956429,
-0.2883526981,
0.4566147327,
0.1170315892,
-0.1751352549,
0.3143306971,
0.7368860245,
0.2488534003,
-0.4469806552,
0.0710988045,
-0.0204797518,
-0.1305083036,
0.3000690043,
0.0614248179,
-0.0396421291,
-0.2185842395,
0.4220644832,
-0.0212409422,
0.1574662626,
0.2910259664,
0.0361129567,
-0.4399994016,
-0.455604881,
0.1672198772,
0.0991089121,
0.0398139022,
0.7080283761,
-0.1060626805,
0.1349104941,
0.2072742283,
-0.0953415036,
1.0428036451,
-0.2065407485,
0.1418236643,
0.0392074399,
-0.0940970182,
0.468724817,
-0.3534319699,
0.0853755325,
-0.0433649123,
0.0304954071,
0.0344042666,
-0.0845328346,
-0.1817819774,
0.3168222606,
-0.2818128169,
0.1816871613,
-0.236697793,
0.1214531586,
-0.1576097757,
0.1928665042,
-0.3748885393,
-0.0243158005,
-0.1379538476,
0.249552995,
0.0385160893,
0.2364375889,
0.0259891264,
0.1212936938,
-0.1247035787,
-0.0537202246,
-0.6156314611,
0.0517457239,
-0.1698073298,
-0.0385151803,
-0.380004257,
-0.234826237,
-0.0605926663,
0.1536153555,
0.1128547341,
0.2116147429,
-0.0490339771,
0.2427805215,
-0.1440328509,
-0.0439156294,
-0.0471791774,
-0.1807093024,
0.1273682863,
0.0231980346,
-0.3375990391,
0.222105056,
-0.0565144978,
-0.163582027,
0.2309988439,
0.2578207552,
0.0968177244,
-0.1043441817,
0.0605709776,
-0.0869506523,
0.1547445804,
-0.2690963447,
0.174286142,
0.2979970276,
0.1570419073,
0.2275492847,
-0.1475711018,
-0.3382977843,
-0.3909547627,
0.3864549398,
0.0356896147,
-0.0869841501,
0.2533663511,
0.2230575979,
-0.396011889,
-0.3125071526,
0.1102765501,
-0.5467652082,
-0.3165749013,
0.2736476362,
-0.4207129478,
0.2876585126,
-0.043381393,
-0.1575329453,
0.2123347372,
0.0839531645,
0.1333033741,
-0.555997014,
-0.1051084846,
-0.115215227,
-0.278616339,
0.0314195678,
-0.1133976579,
-0.1451278031,
0.2314850688,
-0.0455208793,
-0.3330335617,
0.1012118831,
-0.2488740087,
0.1280422509,
0.2624683082,
-0.0927807018,
0.3442625403,
-0.1348825246,
0.1149704605,
0.1428749859,
-0.1397126615,
-0.1804019064,
-0.0137791261,
0.1184454113,
-0.1072440147,
-0.1202158481,
0.0965372697,
-0.4541836381,
-0.0819670483,
0.0703595206,
-0.0191847868,
0.0994390026,
0.0988776237,
-0.2201794088,
0.1730371118,
-0.0524031818,
-0.0701598004,
0.1650612056,
-0.0772805363,
0.5235566497,
0.2017833441,
0.2585535645,
0.1099748835,
0.0459434167,
-0.5424669385,
-0.0166704338,
-0.0623556599,
0.0409434885,
0.4354707003,
-0.2562421858,
0.0311666224,
0.304849714,
0.4342502058,
0.5167427659,
-0.0207807496,
-0.1835748404,
0.3832826614,
0.2985505164,
-0.0159602407,
-0.1510686278,
0.2647126019,
0.1717211157,
-0.0071415184,
0.1411257982,
-0.0328541286,
-0.0482022464,
0.1285702288,
0.209342882,
0.6953507066,
0.038653791,
0.2273381799,
0.1782874167,
0.1388130486,
-0.0286279693,
0.4683573842,
0.2474286407,
0.0253025461,
0.1073260531,
-0.1378973573,
-0.0369272642,
0.0003922474,
0.1407734752,
-0.1127587333,
-0.3116639555,
0.0422542989,
0.214837417,
-0.2325133681,
-0.0299792942,
0.1322472245,
0.1798061728,
-0.2827201188,
-0.1676201969,
-0.1644778103,
0.2919851542,
0.0641236305,
0.2669751048,
0.2639373541,
-0.0923782215,
-0.1687736958,
0.0813645646,
0.0371085443,
-0.2284736037,
0.3985339403,
0.2368305326,
0.1304697096,
-0.5860461593,
-0.0540811643,
-0.0530214123,
0.1957155168,
-0.4779830873,
0.0264093243,
0.03056412,
-0.2674972713,
-0.0185986441,
0.2658746541,
0.5785301328,
0.1724970192,
-0.0661331415,
0.0794494525,
-0.0307383817,
-0.0551207736,
-0.0800940767,
0.4403758943,
0.0343763158,
-0.0934069976,
0.3708055317,
0.1527279317,
-0.2607954144,
0.1164205521,
0.0944368243,
0.2666627467,
-0.2454840988,
-0.0307160486,
-0.0360300019,
-0.1037131622,
-0.3233612776,
-0.2196988314,
-0.2076778859,
0.010185142,
0.5007895827,
-0.33257249,
-0.0063664792,
-0.2588768303,
0.1201225594,
-0.1117340177,
0.3275039792,
0.5890834928,
0.2320922166,
-0.1620316505,
-0.3375644982,
-0.5112205744,
0.1102172956,
-0.5844737887,
-0.1985817999,
-0.1481407285,
0.4136403501,
0.1261547059,
0.4157707691,
0.368545562,
0.1126012728,
-0.3510940671,
0.4230380952,
-0.3570304811,
-0.3375178277,
-0.0206216946,
0.036858093,
0.0541545562,
-0.3038408458,
0.1973659694,
-0.2808118463,
0.0178735703,
-0.1091537476,
-0.1492458135,
0.1750957519,
-0.0382716581,
0.5005351305,
0.0738065317,
0.2318065315,
0.1809502244,
-0.528717041,
-0.4906195998,
-0.237953797,
-0.0188398585,
-0.0321708433,
0.1138349921,
0.3460376859,
-0.3993892074,
0.0892243013,
-0.1867888272,
0.2027194798,
-0.0821189731,
-0.2360038906,
0.1945281327,
-0.2277840674,
0.0029831033,
0.3618310094,
0.0315352716,
0.2227501422,
-0.0178695973,
0.207340464,
-0.247781679,
-0.3570301533,
0.2816221118,
0.100569427,
-0.4137587547,
0.053592518,
0.1700963527,
0.1150685996,
-0.004773804,
-0.2395492792,
0.1650064439,
0.3653582931,
-0.0137979686,
-0.2470386922,
0.157502085,
0.0031551998,
0.1486154795,
-0.0199634656,
0.515188694,
0.0958431587,
-0.2933823764,
0.3243219256,
-0.0978852734
] |
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.3443330824,
-0.1409980804,
-0.0883192196,
0.1077194437,
0.1344687045,
0.1419221759,
0.0290933214,
0.2305128276,
-0.0500459597,
-0.1488424242,
-0.0651005954,
0.1319426894,
0.2865749002,
0.0448666178,
-0.0551886819,
0.2586468458,
0.0915640444,
-0.2118437886,
-0.0709679648,
0.0641470999,
-0.0160000268,
0.1166803688,
-0.1866285205,
-0.1631230861,
-0.2236129642,
-0.0258422233,
-0.1102016419,
-0.097168155,
-0.2112137526,
-0.2538017035,
0.2425090224,
0.1964346617,
-0.1058992893,
0.5974957347,
-0.0001101712,
-0.1901296079,
0.301458329,
0.0749201626,
-0.3920449018,
-0.5111640692,
-0.1665062904,
-0.1499350518,
0.0677509755,
0.0589530393,
0.1219027415,
0.1088143736,
0.0431349054,
-0.34569031,
0.2524756789,
0.4062387943,
0.1974428743,
0.3186732531,
0.2356887162,
-0.0650090501,
0.1889504641,
0.0090739084,
0.061270155,
0.4360184669,
0.2413875908,
-0.1482383013,
0.286308378,
0.0281023607,
-0.1203851029,
0.2467677444,
-0.1053778306,
0.0088085271,
0.1443114728,
-0.4500547945,
-0.0667434707,
0.1656841934,
0.853022933,
0.038039878,
-0.4033252299,
-0.2840456665,
0.1371208876,
0.0184613615,
0.3736429214,
0.4260641634,
-0.4110418558,
0.1774050146,
-0.2858319581,
-0.0086822882,
0.0160079692,
0.3706652522,
0.1045638919,
-0.0335828774,
0.0563666113,
0.2642190456,
0.1433646083,
-0.0444082357,
0.250808239,
-0.336740613,
0.056929674,
-0.0836203247,
-0.4266657233,
-0.069658719,
0.0054501072,
0.2371154279,
0.1993165761,
0.0109830881,
-0.0365409367,
-0.2065039277,
-0.125781551,
0.1487922966,
0.3903264701,
-0.0173851214,
-0.0382206067,
0.1559548825,
0.2482756525,
-0.1521489918,
-0.0725686476,
0.0817226097,
0.0498881787,
-0.0067598997,
0.0552343316,
-0.1608840376,
0.2735024691,
-0.2745937109,
-0.1909500808,
-0.0340155475,
0.1356944442,
-0.0971088335,
-0.2648787796,
0.1821261048,
-0.4788562655,
0.2605338693,
-0.0654440671,
0.1063377112,
-0.3326457441,
-0.3925062716,
-0.0617963225,
0.0165218469,
-0.2331839353,
-0.099208042,
-0.0376827158,
-0.0509474203,
0.0369333774,
0.1624529362,
0.0429839045,
-0.2928947806,
0.0006365842,
-0.1750115007,
-0.1017821729,
0.1838417053,
-0.1402425319,
0.4254395664,
0.0267335046,
0.184102878,
-0.0658648685,
0.0560508147,
-0.2824711502,
-0.247263819,
-0.1145939603,
0.2255191356,
-0.263047874,
-0.3427593112,
-0.1906619668,
-0.0305898208,
0.1723273695,
0.045444943,
-0.125666678,
-0.043474149,
0.1271687895,
-0.070953995,
-0.0858592764,
0.3016444445,
-0.5062202215,
0.2912120521,
-0.1940139085,
0.1040054411,
0.2185677886,
0.2560473382,
-0.1935176402,
-0.0209170096,
-0.2023589015,
-0.112577714,
0.2611092329,
-0.1710772663,
-0.6848201752,
0.0519655943,
-0.3113511801,
0.0178580601,
-0.1778746247,
0.2989583313,
0.2475438714,
-0.0631887317,
0.0114183705,
0.4559704363,
-0.2054668665,
0.0613627918,
-0.3999525309,
-0.2040453553,
0.0406920798,
0.2002241313,
0.0118119381,
-0.0178574026,
-0.1679245234,
-0.0560866632,
0.3344511688,
0.4108457565,
0.0995043814,
0.2582980096,
0.0189513937,
0.280739665,
-0.0070328233,
-0.1741077751,
-0.3393334448,
0.181674242,
0.5479789376,
0.0701311976,
-0.2165240943,
-0.0037395398,
-0.3784167171,
0.0311314911,
0.0122754546,
0.0492906533,
0.0164885297,
0.1553182751,
0.2597070932,
0.2316703796,
-0.0332966149,
0.553889811,
0.0001850469,
0.304078728,
-0.0871678516,
0.2223825902,
-0.1737216562,
-0.1235968173,
0.1765869558,
-0.3449999988,
0.1806221753,
-0.2068099976,
-0.1502500623,
0.2995539904,
0.0429318361,
0.0923922956,
0.0319355279,
-0.1928213239,
0.2773078382,
-0.1518628895,
-0.1848556548,
0.3243632913,
0.1011919454,
0.0295744557,
-0.252645731,
-0.0034105419,
0.212817505,
0.2231773138,
-0.2287005037,
0.1309570819,
0.0696669891,
0.0324921347,
0.1943876594,
0.0144693963,
0.3520643413,
-0.2859785557,
0.0815065131,
-0.1778682917,
-0.0075529995,
0.3557201326,
0.3431664407,
0.0843382627,
-0.2139347643,
0.2109946311,
0.1186634675,
-0.1527646035,
0.0064592459,
0.3508172333,
0.2607823014,
0.1872299463,
0.2359101772,
-0.103000544,
-0.1805160195,
-0.1531549692,
0.1440917552,
0.0476365685,
-0.0420636088,
-0.084812887,
0.1274740547,
-0.0298429597,
-0.0700511485,
-0.387525171,
0.1550897807,
0.3091112673,
0.0100949248,
-0.0407451056,
-0.2386573702,
-0.1384453773,
0.2339590639,
-0.1119870842,
-0.3209646642,
-0.5685403943,
-0.0882725269,
0.2417791784,
-0.0517283864,
0.074503243,
-0.1412698179,
-0.1699117869,
0.3960914612,
-0.2323114276,
0.0296000522,
-0.2021948695,
-0.0129111707,
0.0996216685,
0.2263810635,
-0.1435127854,
0.2954115868,
-0.2167695016,
-0.2845120132,
-0.4060566127,
-0.062747024,
0.0189122856,
-0.1931962818,
0.3072670698,
-0.2622006536,
0.4708537161,
0.0297152326,
0.1916574091,
0.111135073,
-0.2169247121,
-0.0593549386,
-0.0859665871,
0.0615780912,
0.1041707471,
-0.0240691956,
-0.2971177101,
-0.2785847485,
-0.3193434179,
0.1920940876,
-0.1284937263,
-0.0572027862,
0.088226229,
0.2302348614,
0.0005931502,
-0.0859977305,
0.0964079201,
-0.1858760566,
-0.4200662971,
0.5475694537,
-0.0646038204,
-0.2359235138,
0.0955689847,
0.2388531715,
-0.069414854,
0.2651893497,
-0.6985402703,
0.1034326777,
-0.3445625305,
0.2580440938,
-0.0691323504,
-0.175686121,
0.1853320897,
-0.5137165785,
-0.1090018302,
0.0757055134,
0.031174222,
-0.0786783993,
0.1408200711,
0.3928353488,
-0.1135045588,
0.2219333947,
0.0011655125,
0.163358584,
0.1411469728,
0.0361655578,
0.0860659033,
0.1088596061,
0.2694696486,
0.0133496961,
-0.2448961288,
0.0432929732,
-0.0245827325,
-0.1301950663,
0.0362733044,
-0.0228020679,
-0.2440937012,
-0.178237021,
-0.0317859538,
-0.2656560838,
-0.2509203255,
-0.0718886405,
-0.1711303145,
-0.0590670854,
0.3505453169,
0.1751367748,
0.0286383852,
-0.2856181562,
-0.0759192631,
-0.0141122416,
-0.085709855,
-0.1887926161,
-0.5308369398,
0.1519778669,
-0.3958622515,
0.247741431,
-0.1128498763,
0.2813425958,
-0.0573085062,
0.0412849598,
0.1840789318,
-0.0091783488,
0.5779338479,
-0.097849749,
0.02652248,
-0.0464659035,
0.2701936066,
-0.4184787571,
-0.1023059338,
0.1767012626,
0.2083649784,
0.523904562,
-0.0358796865,
-0.3270115554,
0.1232304946,
0.0759909227,
0.3333396018,
0.1616410464,
-0.4344727397,
0.0406917706,
-0.1140851825,
-0.1964607239,
0.1450037658,
0.0693396479,
0.0846047848,
-0.0492775925,
-0.1960896254,
0.2146620899,
0.1362988055,
0.085956797,
-0.1118160933,
0.184621647,
-0.3388819396,
0.4967478812,
0.0981100276,
-0.1820323616,
0.2965054214,
0.697891295,
0.2273446769,
-0.4742148519,
0.0299003311,
-0.0565425456,
-0.0924846381,
0.3000591695,
0.0675780699,
-0.0263832361,
-0.2150107473,
0.4110400975,
0.0790700987,
0.1983987391,
0.2396911383,
0.0864010006,
-0.4709181488,
-0.4800229669,
0.1404574662,
0.065239951,
0.0255752653,
0.72546947,
-0.1011428759,
0.1864499748,
0.2429665774,
-0.1138594598,
1.0272657871,
-0.2083413452,
0.1298526376,
0.0084401369,
-0.094907403,
0.4633692503,
-0.3317195773,
0.0691337883,
-0.0628282055,
0.0812850818,
0.0680286363,
-0.0684602857,
-0.1782367826,
0.320391655,
-0.2527094483,
0.1336238682,
-0.1656548679,
0.141856581,
-0.1555574536,
0.2258989662,
-0.2960716486,
-0.0161667857,
-0.069422178,
0.2329602838,
-0.0125221042,
0.2096315175,
0.057188835,
0.1308653206,
-0.2241943181,
-0.0392896608,
-0.6747106314,
0.0534942411,
-0.1191186607,
-0.0541616231,
-0.344176501,
-0.2679920197,
-0.0499540605,
0.1242869496,
0.1085305884,
0.2949836552,
-0.0722758099,
0.3172171414,
-0.1573856324,
-0.0684301779,
0.0089840721,
-0.2384508401,
0.1120084226,
0.0059921197,
-0.3947496414,
0.2043997794,
-0.0380243547,
-0.2180022299,
0.1471641809,
0.2849782109,
0.208292827,
-0.073823303,
0.0619348697,
-0.03283149,
0.1700589806,
-0.2620546818,
0.1565245092,
0.3397985697,
0.1525163352,
0.2784981132,
-0.1270457208,
-0.3394215703,
-0.409666121,
0.4108080566,
0.0111023681,
-0.0399704762,
0.237446323,
0.2874157727,
-0.4115640819,
-0.2906268239,
0.0608270429,
-0.5332087278,
-0.3351150155,
0.2490383387,
-0.4125131965,
0.3651676476,
-0.0505500883,
-0.1469938159,
0.1469284594,
0.0774995238,
0.1968625039,
-0.5906017423,
-0.0626299009,
-0.1093577817,
-0.2917639911,
0.0255079027,
-0.1097742245,
-0.0930524543,
0.2142009884,
-0.0552364849,
-0.2938352525,
0.1041356996,
-0.2343116999,
0.128598243,
0.3187289238,
-0.1083915457,
0.3753851056,
-0.1432559192,
0.0887855291,
0.1932701916,
-0.1047510728,
-0.171068579,
0.0111000407,
0.1229714528,
-0.0484921858,
-0.1617569327,
0.1111611649,
-0.4427932501,
-0.0904796124,
0.1024798453,
-0.0471710712,
0.1314584911,
0.0653812587,
-0.2333443314,
0.2394036204,
-0.0071448046,
0.0015385211,
0.2036977559,
-0.0533768609,
0.5051440597,
0.2251235247,
0.2564186156,
0.1778500527,
0.066425547,
-0.4852140546,
-0.0160632338,
-0.1081021503,
0.056637682,
0.4679363072,
-0.286265552,
0.0492570624,
0.3104962707,
0.4150466323,
0.5625926256,
0.0313828439,
-0.1846259683,
0.4165686667,
0.2802246511,
-0.0111238984,
-0.1266763806,
0.3446885943,
0.1587618738,
0.0120021747,
0.1286052614,
-0.0494401194,
-0.0430686362,
0.1444676965,
0.2352801859,
0.686742723,
0.0569094457,
0.1836854517,
0.1002985686,
0.1104222313,
-0.0405234955,
0.4586594999,
0.2718219757,
-0.0080098175,
0.149159953,
-0.1766091734,
-0.1374293119,
-0.0225101709,
0.1113671362,
-0.0861217305,
-0.2771998346,
0.0229274537,
0.1849720627,
-0.248067528,
-0.0364360102,
0.1623395979,
0.1757761985,
-0.225226298,
-0.1415659189,
-0.156265229,
0.2823520601,
0.1131406501,
0.2638893127,
0.2492494434,
-0.1177721992,
-0.1352326423,
0.1094320044,
0.0531334989,
-0.2901607454,
0.3783888221,
0.2352383435,
0.1187346727,
-0.6347619891,
-0.0132391658,
-0.143411234,
0.169261694,
-0.4513989389,
0.0085471533,
-0.0373287424,
-0.2354824394,
0.0193485692,
0.1819727123,
0.5284029841,
0.1656910926,
-0.0857024416,
0.138656497,
-0.0580243506,
-0.0462211333,
-0.0590848289,
0.4760381877,
0.0833447874,
-0.0854203701,
0.4278469086,
0.1260394007,
-0.2391671091,
0.1376173496,
0.0726828128,
0.2613369823,
-0.2798645198,
-0.0890469924,
-0.0237901118,
-0.1442390084,
-0.4345557392,
-0.1916848123,
-0.1944944859,
-0.0115776528,
0.4266689718,
-0.325702399,
-0.0417135581,
-0.3187474906,
0.1037226319,
-0.1676359922,
0.3223071694,
0.5741573572,
0.2755865455,
-0.1699838489,
-0.298399955,
-0.4349110425,
0.071182996,
-0.5885076523,
-0.1753156036,
-0.1917394102,
0.4649915993,
0.1373923123,
0.3879273236,
0.3642196357,
0.0924224108,
-0.3997992575,
0.4755357802,
-0.3340260088,
-0.2970174849,
-0.0493946709,
0.0344100222,
0.0781394243,
-0.254912585,
0.1945786327,
-0.2697485685,
0.0031862003,
-0.1564324796,
-0.2445120513,
0.1896850318,
-0.0470432937,
0.5041050315,
0.0649291202,
0.3030160367,
0.2709484994,
-0.4769492447,
-0.4949392378,
-0.2478876412,
-0.0227422025,
0.0370462425,
0.032243032,
0.3441213369,
-0.3469089866,
0.0326551199,
-0.1335639507,
0.2137105018,
-0.142248407,
-0.3069439232,
0.2198387831,
-0.2569904625,
0.0220551006,
0.4016232789,
-0.0177030284,
0.1567060202,
-0.034555275,
0.1839787811,
-0.27892524,
-0.3133024275,
0.2667184174,
0.0398919247,
-0.3934292793,
0.0392881632,
0.0985214263,
0.1716537625,
-0.0038625414,
-0.2305062711,
0.1069826409,
0.3953538835,
-0.0248193499,
-0.2134449482,
0.1907692999,
0.0378333814,
0.1685906053,
-0.0826665983,
0.4905623198,
0.0174229704,
-0.2901217937,
0.2927952409,
-0.1183576509
] |
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.0574387796,
-0.0158847775,
0.0742202774,
0.5506058335,
0.3027434647,
-0.1935665458,
0.4147057831,
0.0769138411,
0.0825466439,
0.0638930872,
-0.0089266161,
0.5863605142,
0.012284115,
-0.0284526348,
0.1138427183,
-0.0146788508,
0.1873943359,
0.0855283961,
-0.1241162866,
-0.2560268641,
-0.3155728877,
0.1688575894,
-0.1460747421,
0.1901939213,
-0.0699704438,
0.2109434456,
-0.2822049856,
0.4675122499,
0.022765886,
-0.2501041889,
0.4729166329,
-0.2809212506,
0.4408824444,
0.4645853341,
-0.0001151561,
-0.0097311502,
0.4755379558,
0.0375796035,
-0.2390376776,
-0.607242465,
-0.1662136912,
-0.2815757096,
0.4258598685,
-0.1936816573,
-0.0665415376,
-0.1174360961,
-0.2235067636,
-0.1684544533,
0.4106477201,
0.4155714512,
0.1782934219,
0.1498638242,
-0.2141825706,
-0.1690317839,
0.3525305092,
0.1742019355,
0.0461487137,
0.4088490307,
0.0037087309,
-0.2516223788,
0.1068804264,
-0.0742012113,
-0.1378999501,
0.032406278,
0.2563996315,
0.2106460333,
-0.0583172925,
0.0022794569,
0.1797527373,
0.3070550263,
0.511680007,
-0.062618196,
-0.3027724326,
-0.0975568593,
-0.0389356576,
-0.111329414,
0.2599178255,
0.0741576925,
0.0159021858,
0.1967172027,
0.1175489053,
0.2056594789,
-0.0650328621,
0.4197383821,
-0.1461283267,
0.1639846265,
-0.1312114298,
0.088924557,
0.0116654523,
0.1690491289,
0.6599961519,
-0.0752311349,
0.0472110957,
0.3930089772,
-0.1994345486,
0.1279459745,
0.3355511725,
0.1851821542,
-0.0519487336,
-0.0531266183,
0.347078234,
-0.104492411,
-0.1862101555,
0.0079262247,
0.3611757755,
0.1985619515,
-0.3046013713,
0.2134356201,
0.1899715662,
0.2259806097,
-0.0859124064,
-0.1602511406,
-0.2420358062,
-0.2013468295,
-0.126938045,
0.1843210161,
0.3140104413,
-0.3728870451,
-0.221443221,
-0.058182355,
0.0346097834,
0.1836174577,
0.2119459659,
0.5136287808,
-0.2088426799,
0.5151565075,
0.0225077886,
0.2508968711,
-0.0922641382,
0.1784021854,
-0.261413455,
0.0694383755,
-0.146030426,
-0.1126509681,
-0.0430097245,
0.0215562247,
0.252187103,
-0.009621813,
-0.1722254902,
-0.3173284829,
-0.3492339849,
-0.4206418991,
0.0861276388,
0.0746733621,
-0.0392396227,
0.0950154364,
0.2757532299,
-0.0933147892,
-0.2179807425,
0.1728488058,
-0.2247140855,
-0.4391539693,
-0.3228241801,
0.1312870085,
-0.2310710847,
0.0401465707,
0.0886220858,
-0.2725884914,
0.0588158518,
0.3045932949,
-0.1377797276,
0.1218150556,
-0.3652852476,
-0.255667299,
0.4419433177,
0.6512081027,
-0.4164179265,
0.221745491,
-0.2636244893,
0.0769633204,
0.4102801383,
0.1699593067,
-0.3566012084,
0.3813911378,
-0.1161802858,
-0.1510992497,
0.3857566118,
-0.5012980103,
-0.371463418,
0.5995171666,
-0.0560743622,
-0.2375228852,
-0.0514173061,
-0.020065872,
-0.1240405887,
0.0844894797,
0.3112477362,
0.4983115196,
0.1864836663,
0.1523342282,
-0.4068829715,
-0.4395460784,
-0.1264506429,
0.2480692714,
-0.1186072975,
0.0536352769,
0.2413350195,
-0.3943930268,
0.3047114611,
-0.0594212003,
-0.2168198228,
0.4881591797,
0.3690138161,
0.0848212689,
-0.0759774894,
0.1972520053,
-0.2346253842,
0.2298526466,
-0.0617966279,
-0.1506752521,
-0.1290706098,
-0.003085719,
-0.4466367066,
0.0966236591,
-0.2612609565,
-0.1387730539,
0.0527373068,
0.1784129739,
-0.0079235425,
0.0783595368,
-0.1965734959,
0.1575739831,
-0.1202827021,
-0.1758038104,
-0.1213266402,
0.2304284126,
-0.0853112414,
0.0754688829,
0.0699483901,
0.4098211825,
0.2167421579,
-0.033315558,
-0.0657607839,
0.3856573999,
0.1693173349,
0.2863013744,
-0.1166195273,
-0.380441606,
0.2069358081,
-0.0697805062,
0.0948276669,
0.0371950269,
0.2641211152,
0.1456105709,
-0.2078538239,
0.1532487124,
-0.1123903021,
0.0651694983,
0.0451805145,
0.0005377505,
0.5214229226,
-0.2430496812,
0.0346963555,
-0.3120871186,
0.2649819553,
0.4043835402,
0.5120335221,
0.1754516959,
-0.333145231,
-0.0802892074,
0.1967052221,
0.1612118334,
0.0592384562,
0.0705425739,
-0.0783511028,
-0.016879553,
-0.0027853369,
0.4694551826,
0.4198947251,
0.1177513376,
0.146663323,
0.1681153476,
0.0641567111,
-0.1689203978,
0.2062511295,
-0.0474295728,
0.2692136168,
0.0539130904,
-0.0148293227,
0.3034392595,
-0.1236820966,
0.0268184505,
0.0028709988,
0.2994593978,
-0.3273461461,
0.0614308864,
-0.3752578199,
-0.1776740253,
-0.1456059068,
-0.3312714398,
0.2078629434,
-0.1352640837,
-0.3229802847,
0.0328267068,
-0.1912084818,
-0.0376700163,
-0.121834442,
0.0566688254,
-0.0594364107,
-0.2732097208,
-0.2022083998,
-0.1779985875,
-0.5250952244,
-0.0782820582,
0.3557383716,
0.1570083052,
-0.0873205215,
-0.1772177368,
-0.0133180264,
-0.0997573659,
0.1238212585,
0.0228486024,
0.1789852232,
0.6002932787,
0.1714731306,
0.0395606495,
0.1790845692,
-0.1626321673,
0.2645676434,
-0.2557521164,
-0.1662982404,
0.0062346896,
0.099133037,
-0.1168444678,
-0.1966540515,
-0.1383366436,
-0.3782121241,
-0.2874900997,
-0.0389490537,
0.0985015184,
0.1825941503,
0.1845137924,
0.2169056833,
0.2336975336,
0.1198511645,
-0.0777941942,
-0.1604259908,
-0.4417057931,
0.2158461362,
-0.028255973,
-0.5365151167,
-0.3180681467,
-0.1649757773,
0.3878695667,
-0.1524087191,
-0.5176628232,
-0.0888608024,
-0.2314538956,
0.1201902106,
-0.0813610032,
-0.1304139644,
0.3463375866,
-0.102128759,
-0.0298767742,
-0.0978017971,
-0.0786365718,
0.0038152558,
0.1830008477,
0.0856307894,
0.1478826553,
0.3921529055,
-0.1356149465,
0.6314614415,
0.0274883453,
-0.0541716106,
0.5767680407,
-0.1661162525,
0.4468919337,
-0.1700374037,
-0.395013392,
-0.2945562303,
0.0130058406,
-0.2421170026,
0.3109369576,
0.0554624125,
-0.347533375,
-0.3655239642,
0.0218570735,
-0.4551153779,
-0.174778372,
-0.158324644,
-0.2738889754,
0.021791555,
-0.142558381,
0.1417833865,
-0.0741287619,
-0.0378819443,
0.0210158844,
0.0313280746,
0.0329707786,
-0.0628155991,
0.1278606653,
-0.0329135992,
-0.4352097511,
0.1097879931,
-0.0478190482,
0.4363667369,
0.006618923,
-0.286224246,
0.0781520754,
-0.0584604219,
0.6754683256,
0.0223825555,
0.1359012127,
0.181487605,
-0.0211426783,
-0.6554043889,
-0.0295497011,
0.121123217,
0.0229199156,
0.0767610148,
0.7966442704,
0.1024094597,
-0.1237042174,
0.0252634771,
0.0859779045,
0.0182037726,
-0.4049769938,
-0.3497109413,
-0.3659104407,
0.098482646,
-0.1340129226,
-0.0836040452,
0.3783413768,
-0.0212987773,
-0.1552285701,
-0.086149998,
-0.2001954466,
-0.2223152518,
0.1005426571,
0.3425100148,
-0.0169256497,
0.2756721079,
-0.0321035869,
0.3114450574,
-0.1748641133,
0.6477413177,
-0.1171409637,
-0.3216333389,
0.0788394213,
-0.3234079778,
0.0986613259,
0.2470774949,
-0.1465615183,
0.0478250049,
0.0174015295,
-0.2901146412,
-0.0325319506,
0.1599930078,
-0.0270324741,
0.0252427198,
0.0956066996,
-0.2298048586,
0.5176451206,
0.1183607131,
-0.1103812382,
0.3470833898,
-0.5550875068,
-0.2694753408,
0.2309322059,
0.2396322787,
0.8387873769,
-0.1660597622,
0.1618095338,
0.3206000626,
-0.2457157224,
0.2124178261,
0.1730215251,
-0.1323703527,
-0.4516246021,
-0.1949022263,
0.0692348778,
-0.1457590163,
0.1558911055,
-0.0642124638,
0.0811753199,
0.0778915063,
-0.1818903834,
0.3544172049,
0.3318729401,
0.0835026056,
0.0546020307,
-0.1341724247,
-0.3800010383,
0.0537459515,
0.2156204879,
0.1067380756,
-0.0813263953,
0.0350168906,
-0.264342308,
-0.17049326,
0.0468561873,
0.3553573191,
-0.3430228233,
0.0182530768,
-0.1076734811,
-0.4711861014,
-0.316475004,
0.635645628,
0.2303335369,
0.0492923036,
-0.2496906966,
0.0883891657,
0.0357335396,
0.1797056645,
-0.0138681605,
-0.1586063206,
-0.0513028614,
-0.1195731685,
-0.125286445,
-0.1987673193,
-0.2385021746,
-0.1723287851,
0.175748691,
0.3630551994,
0.1982508898,
-0.0026166036,
-0.3738716841,
0.069009684,
0.3177514076,
-0.2005014867,
0.1159919873,
-0.0185713563,
-0.0291240793,
-0.136447072,
-0.1668362617,
-0.4678331017,
0.019284999,
0.5623627901,
0.006111884,
0.5865504146,
0.4906964898,
-0.0581142493,
0.0934347957,
-0.1508752555,
0.2538243532,
0.0914071202,
-0.144508779,
-0.1839634329,
-0.1803082973,
0.012187032,
-0.1138367355,
0.0961939394,
0.3451667428,
-0.1079840362,
-0.1119631007,
-0.6838929653,
-0.4484826922,
0.0404833145,
-0.1864712685,
0.063870877,
0.0737023056,
0.1408948302,
-0.0244400389,
-0.2554089427,
-0.2226367742,
0.2571768761,
-0.4180090725,
0.019803077,
-0.1412277967,
-0.041305095,
0.2445230633,
-0.015400392,
0.1508332342,
-0.1639544666,
0.0708343312,
-0.1837785095,
-0.105620496,
0.1013327166,
0.0859039351,
-0.184752658,
-0.145566389,
-0.2703592479,
-0.0890596583,
-0.0855412707,
-0.2252630293,
0.2039053142,
-0.0406455807,
0.0950415134,
-0.1309646964,
0.3166356981,
-0.2054284811,
0.3459959924,
-0.3354069591,
0.0109142214,
0.1498948634,
0.1973814368,
0.070873417,
-0.0026600375,
0.1882463098,
-0.2834929228,
-0.200602904,
0.1394177675,
0.2105654776,
-0.0921926945,
0.0599514656,
0.1898698062,
0.0745636374,
0.2924564481,
-0.1836611032,
0.0992260203,
0.5471070409,
0.1454543024,
-0.2937477827,
-0.0604266897,
-0.0628629178,
-0.1081198901,
-0.015517748,
0.1801180094,
0.1219180748,
-0.2686058283,
0.0843514875,
-0.0607591681,
0.4588410258,
0.0993797705,
0.145826146,
0.3395939469,
-0.2543952167,
0.1626717001,
-0.0428984463,
0.2295006812,
0.033679381,
0.5187296867,
0.0486086197,
-0.0806711465,
-0.2998912036,
0.4048232138,
-0.0787532702,
-0.6417547464,
0.3375591338,
0.0485763475,
-0.3438986838,
-0.257529676,
-0.2667193711,
0.2372451872,
-0.0933440179,
0.1150248423,
-0.1276445687,
0.1020795554,
-0.0705747157,
-0.2714782357,
-0.4754406214,
-0.1534810215,
0.1385405213,
-0.0363484174,
-0.0092516383,
-0.1910670996,
-0.0841537938,
0.1059213802,
-0.2127446383,
-0.20711492,
0.1263237745,
0.3150515258,
-0.1272414178,
-0.3163985908,
0.4282379448,
-0.2456128746,
0.2148879021,
-0.0139596332,
-0.0502045043,
0.2021694928,
0.6500502229,
-0.0500278771,
-0.1874512285,
0.1273711473,
-0.1951829046,
-0.1654114723,
0.1244852766,
0.0986935347,
0.4059480429,
0.5674879551,
0.1458257586,
-0.1257264912,
0.3826639354,
0.0502288453,
0.4492849708,
-0.2906240225,
0.319468379,
-0.0897682458,
-0.007834495,
-0.0442409739,
0.2483792007,
-0.4166393876,
0.073987633,
0.2309321463,
-0.0469471663,
0.3681476116,
0.0715056211,
0.0608653501,
0.0146222943,
0.4513390958,
0.484081775,
0.3376536667,
-0.2196336985,
-0.2611141205,
-0.6287826896,
0.1254167855,
0.0330737419,
0.1006624699,
-0.036278829,
0.174626857,
-0.1181005985,
0.034803424,
-0.0451578312,
0.3480478525,
0.0746763647,
-0.0032197279,
-0.1826476157,
-0.3485907018,
-0.3953168988,
0.0473144315,
-0.09429802,
-0.4356857538,
-0.0121801188,
0.1142915264,
0.0336445682,
0.1058669537,
-0.2598724663,
-0.1744867414,
0.1039742902,
0.318610698,
0.1113508567,
0.1091753691,
0.0312554576,
0.1002477184,
-0.3792990148,
-0.1152853221,
-0.073720403,
0.2165311575,
0.0278789252,
-0.3506176472,
-0.1900013089,
0.1097139865,
-0.3974586725,
0.1685295999,
0.0821396261,
0.1195256114,
0.0046526711,
-0.1697535217,
-0.0053002327,
-0.0939358845,
-0.0222135391,
0.0084346598,
-0.2914648652,
0.0413474664,
-0.0685116872,
-0.0535089187,
0.3320351243,
-0.4292976558,
-0.0542798378,
-0.0027851255,
0.1854252666,
-0.0521518439,
0.1116236597,
-0.0562811978,
-0.114369683,
0.4793231189,
-0.0975360647,
-0.0052545057,
-0.0017491078,
-0.1760846972,
0.2696332037,
-0.1027434915,
0.1722877473,
0.0208205376,
0.0066082589,
0.0037639611,
-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.4191690385,
-0.006903403,
0.005912493,
0.0238575526,
0.1248177961,
-0.3256883025,
-0.2292779237,
0.4713354111,
0.0886645913,
0.2409462631,
-0.247153759,
0.4001295567,
0.0819667354,
0.1371935159,
-0.0226641688,
-0.1370154172,
-0.0278308634,
0.1331309229,
0.088236846,
-0.005411379,
-0.4790540338,
0.1909054071,
-0.1340043247,
-0.0106724761,
0.2445951998,
0.0356201865,
0.2556264102,
0.2188403159,
-0.3985929191,
-0.1497642547,
-0.1308256835,
0.1495487839,
0.022596417,
0.0869439468,
-0.0001130888,
0.026686931,
0.2988414168,
-0.1954084635,
-0.23817496,
-0.2629080713,
-0.1178576872,
-0.0889439955,
0.0825308785,
-0.0007839723,
0.1002838537,
-0.7044277787,
0.0207543224,
-0.8813655376,
0.5043362975,
0.2567864358,
0.1220125556,
0.1561296582,
0.0596261136,
0.0020174123,
0.275047183,
-0.0995140895,
-0.1907604933,
-0.1044158638,
0.2203272879,
0.332131207,
-0.113718763,
0.4235131145,
-0.1898330003,
-0.1889516711,
0.3292147517,
-0.2509937584,
0.0750827268,
-0.2273346186,
-0.1807317287,
0.1074700132,
0.1452675462,
-0.1285868436,
-0.5220017433,
-0.1854571104,
0.0688585117,
-0.5120434761,
0.1385541111,
0.3591737747,
0.047825966,
0.1616457999,
-0.0850936174,
-0.2431392223,
0.0070688669,
0.0468943976,
0.1972727329,
0.2863021791,
-0.0803830698,
0.0017109202,
0.3852160275,
0.124321878,
0.1140475795,
-0.2616314888,
-0.0275917798,
-0.0973564535,
-0.2123514116,
0.027292911,
0.1381480694,
0.0571020767,
0.0816580206,
0.4363040626,
0.2570692301,
0.2995755672,
-0.1212359518,
0.0256679859,
0.0512157381,
0.156501621,
-0.0218395274,
-0.1820706576,
0.0376390629,
0.1823160797,
0.2186765075,
-0.2348977625,
0.2453595996,
-0.1651805043,
-0.3647235632,
0.3225063384,
0.6144112945,
0.0079712728,
-0.165545404,
-0.0997924358,
-0.1505319029,
-0.2109095901,
0.0533474088,
0.0897927657,
-0.064699091,
0.335244,
0.0172744449,
0.3113518059,
-0.2142480314,
-0.0174159873,
-0.1873304248,
-0.0547251776,
-0.1313957721,
0.2216720879,
0.0550616831,
-0.7223927379,
0.0392942913,
0.2271918207,
0.5497032404,
-0.0975679383,
0.1636151075,
-0.0467938669,
0.2022970319,
0.2446861118,
-0.0780417696,
-0.0580974258,
0.2379579544,
0.0552625172,
-0.228273496,
0.1757034659,
-0.5017318726,
-0.2378916144,
-0.1061718017,
0.1584891528,
-0.0207170472,
0.194698602,
0.0252139587,
0.0411649756,
-0.4355074465,
-0.4308709204,
0.0343736261,
-0.0243316013,
-0.2750072181,
-0.1244571283,
0.3272197545,
0.0292743184,
0.0415948294,
-0.2197496146,
-0.1632012278,
0.1786553711,
0.5669157505,
0.2861437798,
-0.30466187,
-0.3236418962,
-0.2175174654,
0.0354336537,
0.5478262305,
-0.2286628634,
-0.4149607122,
0.373490423,
0.0073396601,
0.396135211,
0.2859600484,
-0.3961560428,
0.4834241569,
-0.1646110713,
0.1445795149,
0.2205338925,
0.1359214336,
0.1277269423,
-0.2463243157,
-0.0944505855,
0.092218563,
-0.0883121863,
-0.1049427763,
0.1127612889,
-0.0099599035,
-0.0584182516,
0.1922485232,
-0.0892306194,
0.0422888622,
-0.2404188514,
0.1896108091,
-0.0265087355,
-0.0270191487,
0.0127171986,
0.1164056361,
-0.0961750597,
-0.1598372757,
-0.1996871084,
-0.1320573986,
-0.2483505309,
-0.0809584633,
0.0238577239,
0.034196768,
-0.2237562537,
0.0648614317,
0.1565389931,
-0.2515933216,
0.0391187742,
-0.2730353773,
0.2372072041,
0.0206577275,
0.022600444,
-0.2585275471,
-0.028028423,
0.1524489373,
-0.0354438052,
0.0742468238,
-0.0298154466,
0.2051520944,
-0.1311265975,
-0.3151760995,
0.4424106181,
-0.0684275627,
0.3711237907,
-0.2005500197,
0.0440543927,
0.2904274464,
-0.3242277205,
0.1412659436,
0.5436942577,
0.1446817815,
0.182997182,
-0.1114252657,
0.3421912193,
0.0299910847,
-0.0450016372,
0.1369954497,
-0.052154921,
-0.0120327668,
0.0070302258,
-0.5576582551,
0.0399450772,
-0.1061249375,
0.1598303914,
0.320805788,
0.1401842982,
-0.1437509954,
-0.0827016756,
0.5054666996,
-0.165029332,
-0.1705070734,
0.452129513,
0.0248488989,
-0.2451159507,
0.1435938329,
0.134531796,
0.6052957773,
0.2483298033,
0.1698984057,
0.1075604185,
0.1086896434,
-0.2464023232,
0.5393251181,
0.1573460847,
0.1208357289,
0.2046387345,
0.0883006752,
0.3496350944,
-0.4763224125,
-0.1577934921,
-0.0188914184,
-0.3481450081,
-0.2709909976,
0.1504782885,
-0.5044306517,
-0.1620635539,
0.1140394434,
0.112658456,
0.0804835483,
-0.183021605,
0.1574531794,
0.2160219997,
-0.2817359269,
0.3589550853,
-0.232125774,
0.34415856,
-0.0610998496,
-0.2766939402,
-0.1615318954,
0.1091090217,
0.1053585708,
0.0525801405,
-0.0900605023,
-0.4445862472,
0.1202621087,
0.2227397263,
0.0490903109,
-0.2063011676,
-0.1972839534,
0.0614702813,
-0.0634211451,
-0.1260742694,
-0.0545570292,
-0.1704533547,
-0.0619699471,
-0.4755945802,
0.0886210948,
-0.2605992854,
0.0925256088,
-0.2269991785,
-0.070955947,
0.2812233567,
-0.4269394875,
-0.1482828408,
0.0539469533,
-0.5750747323,
0.3633082807,
-0.3330123127,
0.1032284722,
0.3552736342,
-0.1464023888,
-0.2642796636,
0.112307094,
0.1083966941,
-0.3649925292,
-0.6582285166,
0.3468935192,
-0.1203557253,
-0.3256306052,
-0.1368481666,
0.0312410295,
-0.0274974089,
0.5976179242,
-0.0717616305,
0.0724811107,
-0.1209234521,
-0.1464298069,
-0.1731396317,
-0.0612986311,
0.3393905461,
0.1769473404,
-0.2226415724,
-0.309101969,
-0.10570658,
-0.1121423766,
0.1643159389,
0.2035526782,
0.060408771,
0.2159343511,
-0.0364293866,
0.2296811342,
0.118959114,
0.3798582256,
0.6151400208,
0.2907940149,
0.4680996537,
-0.1208085418,
-0.0692045093,
0.2056078911,
-0.1757377386,
-0.0238050353,
0.1030079946,
0.1163587868,
-0.1173087582,
-0.124289453,
0.138908118,
-0.3419252336,
-0.3283255994,
0.0274635255,
-0.0866466463,
0.1399337649,
0.0537560657,
0.2511184514,
-0.1893439293,
0.152781263,
0.0916984081,
0.2383136004,
0.6755875945,
-0.1524118781,
0.1070145741,
0.3319440782,
-0.4048944414,
0.3504059017,
-0.1224254146,
0.0183255151,
-0.0397144705,
-0.2039784491,
0.0501859598,
0.1413897723,
0.346309334,
-0.0763349384,
-0.2647820413,
0.2832123935,
-0.0406187288,
-0.56186378,
0.039283026,
-0.052255474,
-0.1368768364,
-0.0117746349,
0.3609424233,
-0.2811940312,
-0.3290459514,
-0.040258877,
-0.2512140274,
0.1511800885,
-0.0644915402,
-0.2048475742,
-0.361708194,
-0.1570329815,
-0.2812044024,
0.15255858,
0.2550777793,
-0.2527911067,
-0.0108840065,
-0.1123666242,
-0.0053262315,
0.3447749913,
-0.2916858494,
0.4291556776,
0.2251057327,
-0.1502023041,
-0.0146227721,
0.4382827282,
-0.1271052063,
0.3987606764,
0.1898751557,
-0.6032568812,
0.1646266729,
0.3104471564,
0.1171530858,
0.3649794161,
-0.3255357742,
-0.0494209938,
-0.2289678454,
0.3229517639,
-0.3455226421,
0.3161295354,
0.3063802123,
-0.2636547983,
-0.0443643369,
-0.4398937225,
0.2175516635,
0.1642790884,
-0.1890222281,
0.8254837394,
0.035272304,
-0.1773243845,
0.1225797012,
0.1263156384,
1.0271830559,
0.0779226497,
-0.0172918271,
0.525633812,
-0.1789593846,
0.2232165337,
-0.2524970174,
0.1508210897,
0.4147317708,
-0.6663117409,
0.0116243716,
0.0635505095,
0.2472856045,
-0.2237024009,
-0.3131395876,
0.1947863996,
0.1261043102,
-0.3749632537,
0.2340988666,
0.1640257537,
-0.4982548356,
-0.5518417954,
-0.6275808215,
0.1332900077,
-0.1251041889,
0.1028621048,
0.1514482796,
-0.4420359731,
0.3490972221,
-0.2442370802,
0.0693470463,
0.3628326356,
-0.247299239,
-0.0080773504,
-0.307415843,
-0.2275936306,
0.111929968,
0.1407986879,
-0.1950428635,
-0.1791712195,
-0.0038059514,
0.2187353075,
-0.2408127189,
0.2785664499,
-0.0977741629,
-0.0204978473,
0.0606459044,
-0.0285227336,
-0.0298124552,
0.18143861,
-0.1000712812,
-0.2371851653,
0.2475834191,
-0.0636252984,
0.1865829974,
-0.062358655,
-0.0895967558,
-0.2573809922,
-0.1082184911,
-0.080535613,
0.0791487992,
-0.1657521576,
0.0583990812,
0.0762596652,
-0.1058045998,
-0.4336340129,
-0.1376478076,
0.2425943017,
-0.0383617245,
0.0819689408,
0.2414812148,
-0.4261106551,
-0.2348877341,
-0.0101460107,
-0.036151953,
-0.3330214024,
-0.1468376368,
0.0455890149,
-0.0184950549,
-0.1030840054,
-0.1638297439,
0.158074826,
-0.0849086344,
0.3173320889,
0.0215174388,
-0.209406659,
-0.0381978415,
0.1747954637,
-0.3201456368,
0.0618151054,
0.2344072312,
0.1284128875,
-0.0325047858,
-0.0868130848,
-0.2891892791,
0.1344660223,
0.4174245298,
-0.0773128197,
-0.1533913463,
-0.0050635096,
0.4084663391,
-0.112533614,
0.0429868102,
0.2514642775,
-0.2160808891,
-0.1384045035,
-0.2821720541,
0.2124688029,
-0.0094442414,
-0.3162378371,
-0.1214063689,
-0.0168031231,
-0.0527553409,
-0.3152305484,
0.3412931263,
0.0054233586,
0.0268560257,
-0.0939990655,
0.2126723677,
-0.0124066127,
0.0356115662,
0.0362169109,
0.0572797507,
0.6462958455,
-0.0696860328,
-0.0376831256,
-0.1834293902,
-0.1723699868,
-0.3989317119,
-0.1285019666,
0.3483403623,
0.3660286069,
0.5126972795,
0.1758347601,
-0.1910287738,
-0.1242365167,
0.342762053,
0.1125372201,
-0.0456460603,
-0.1857051104,
-0.0685044602,
0.1523403376,
-0.1664696187,
0.0045215152,
-0.0280673523,
0.4545366168,
0.0036068179,
-0.0321893506,
-0.0679436848,
0.0796379521,
0.0212429594,
-0.0878721327,
0.1140842363,
0.3200619221,
0.5746152997,
0.2170225978,
0.1167597994,
0.2304070145,
-0.0640202388,
-0.0265947711,
0.0575584397,
-0.1954068094,
-0.1165587679,
0.4438083768,
0.2932680845,
0.2682131231,
-0.1862260699,
-0.4940244257,
-0.0866639167,
0.1054816097,
-0.1801441312,
0.4586994946,
0.2597760856,
0.1344574243,
-0.2059486061,
-0.178602919,
0.0593892261,
0.4335685968,
0.2376706004,
-0.274259299,
0.0818652362,
0.0873520076,
0.0576239191,
0.1591817588,
0.0930174366,
0.3212282062,
0.2338698506,
0.1201746836,
0.0564843081,
0.1418882906,
-0.3399503827,
0.0345465243,
0.523692131,
-0.1745194942,
0.1115561798,
0.3071355224,
0.0080916211,
0.2147067487,
0.4515010118,
0.2882674932,
-0.0392870568,
-0.0057261861,
0.1468672752,
0.149342075,
0.090003863,
0.0258035213,
0.0969762579,
0.5032491684,
0.121563755,
0.2795299292,
0.1764884889,
-0.0703051984,
0.2152401954,
-0.1154237911,
0.3489604294,
-0.2589487731,
0.2532710433,
0.1675396711,
0.1809655428,
0.0671697259,
-0.2221705467,
-0.2454075813,
0.1245907173,
0.1826528907,
0.1845453531,
0.0149035873,
-0.1429317296,
0.0868986771,
0.2495234162,
0.1764582545,
-0.1061423719,
-0.1412616372,
-0.2266934663,
-0.3937927485,
-0.3562113941,
0.2376064062,
0.1957727522,
-0.0760526732,
0.2027979195,
-0.0151425963,
0.319568783,
0.2645488679,
-0.2284378111,
-0.0823644772,
0.2203803957,
-0.0818230957,
-0.1618981361,
0.1388603747,
0.3744252026,
0.1084784642,
-0.001372384,
-0.1735459119,
0.2423675507,
-0.1927785277,
0.0812594295,
0.0070028016,
0.0112383729,
-0.3363493085,
-0.1374450922,
0.3763564229,
0.2580062747,
-0.0482213795,
-0.4752648473,
-0.1529145539,
0.0744275674,
0.0543086752,
-0.0074468814,
-0.1139923707,
-0.077976279,
0.241721943,
-0.082646288,
-0.0084012263,
-0.4220406413,
0.6201142073,
-0.1255544871,
-0.4073030651,
-0.4189611971,
0.0136868842,
-0.0503151752,
-0.1109455377,
-0.1100522578,
0.3306161165,
-0.1201390699,
0.2010825574,
-0.1084936336,
-0.4842886329,
0.7212750912,
-0.3065903485,
-0.0180208404,
0.0600793995,
0.3401731253,
0.0934052914,
0.0044339374,
-0.356125176,
0.1665587425,
0.1113156974,
-0.0360378996,
-0.0797713771,
0.1227185801,
-0.1704527438,
-0.1375092119,
-0.0629705787,
0.2342980206,
0.1840943098,
-0.2812792063,
0.0636586472,
-0.164180845
] |
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.0681873858,
0.1841620356,
0.0364154391,
0.378070116,
0.2355371118,
-0.0062701493,
0.4846676886,
0.3670632541,
0.4180770516,
-0.0028390361,
0.0605550855,
0.5898873806,
0.0276205242,
-0.1488580108,
-0.2172114253,
-0.1838724762,
0.0313556641,
0.1905163974,
0.1274460852,
0.0285851005,
-0.312232703,
0.294205904,
-0.2148162723,
0.1017739326,
-0.0391270779,
-0.0952268541,
0.1041621715,
0.3933391571,
-0.126419276,
-0.3826465607,
0.4134063721,
-0.0130349994,
0.2161163539,
0.5308529139,
-0.0001203599,
0.1964654922,
0.4152527153,
-0.0924445242,
-0.2868116796,
-0.4780592322,
-0.2790301442,
-0.3253921866,
0.5374760628,
-0.1200379953,
0.1052052006,
-0.2437470257,
-0.0497696139,
-0.2207817584,
0.6015405059,
0.2307226956,
0.1048027202,
0.4299396276,
0.0260291677,
0.0192189757,
0.0637281314,
0.2108370215,
-0.1217759252,
0.4542042613,
0.008248481,
0.1270529181,
-0.1715969741,
-0.0036358046,
-0.1026413739,
0.1538670212,
0.2191226035,
0.0476009734,
-0.1704019904,
0.0818347409,
0.0492498018,
0.2946319878,
0.2845769227,
-0.0508807413,
-0.4122374058,
-0.3489956558,
-0.1207851022,
0.1302724779,
0.2388219535,
0.2473597378,
-0.1509172171,
0.1259339899,
0.0328826346,
-0.0184717719,
-0.274196893,
0.2383802086,
0.0036438282,
0.0111868996,
-0.1582195759,
0.1072917655,
-0.1295858026,
-0.0208246578,
-0.1499338299,
-0.2244824916,
-0.3057589233,
0.1283779889,
0.0374988206,
0.1160042658,
-0.0355976447,
-0.4100777209,
0.2355837673,
0.3558476269,
0.3206707239,
0.2080192119,
-0.2673654556,
0.2078463286,
0.5903255343,
0.2016133517,
-0.0549013428,
0.0114983907,
0.2564994097,
0.330513984,
0.060729824,
-0.0435532071,
-0.2637993395,
-0.1108330861,
0.0103773009,
-0.1974509358,
0.3086810112,
-0.1726260036,
-0.223853156,
0.0755630434,
-0.6134247184,
-0.057320971,
-0.0002185348,
0.3672919273,
-0.1971875131,
0.4987776577,
0.2744283378,
0.4868384302,
0.0442170911,
0.0317275114,
-0.1022381559,
-0.0353483744,
-0.1634833217,
-0.2962278426,
0.2371663153,
0.0525440536,
0.0861051753,
0.1265181005,
-0.0630017444,
-0.4126388431,
-0.0742599443,
0.0477152914,
-0.0974051654,
0.1669668406,
0.1920515746,
0.1328712553,
0.1559263617,
-0.4045023322,
-0.1376463324,
0.0323024876,
-0.376919508,
0.0055573806,
-0.3176854253,
0.0546304472,
-0.2702908516,
-0.012081637,
-0.7623516321,
-0.0521201417,
-0.1122781113,
0.066026561,
0.0638750568,
-0.024417324,
0.2227593064,
-0.2470848113,
0.0749819055,
0.2833139896,
-0.3005580604,
-0.2378237098,
-0.0629284754,
-0.0374918953,
0.1896338761,
0.2650880516,
-0.2005773783,
0.2845457792,
-0.1637352407,
0.2106698304,
0.3121518791,
-0.3327308297,
-0.2219263613,
0.6055201888,
0.0193042662,
0.5248498917,
0.0198841766,
-0.2308954895,
-0.0092007201,
0.1884040087,
0.3035949171,
0.4013707638,
0.1422876716,
0.0679153278,
-0.2457052469,
-0.2022636086,
-0.1346423179,
0.3127694726,
0.0487664752,
0.188940227,
0.0995357186,
0.0244783051,
0.2506870925,
-0.1951393038,
-0.0266672354,
0.1624233276,
0.09113314,
0.02821544,
-0.0057260147,
-0.0044113356,
-0.6142939925,
0.1499559879,
-0.0511224791,
0.1092021987,
-0.408085674,
0.0093209231,
-0.2547832131,
0.126067847,
-0.1280753911,
0.1847678423,
0.0374526978,
0.1086536199,
-0.18218714,
0.2108012438,
-0.1838938296,
0.3152323067,
0.1626448035,
0.2816525102,
-0.4834643304,
0.4377064407,
0.2102558166,
-0.1212382987,
0.027118165,
0.185371235,
-0.0978173614,
-0.1626706719,
-0.2391355485,
0.1727548242,
0.1394179314,
0.1797136366,
-0.056277059,
-0.2375709265,
-0.0822837278,
0.083859548,
-0.1951903552,
0.3068771064,
0.2217238694,
-0.0245843641,
-0.0280966461,
0.805208683,
-0.0741070807,
0.4431968629,
-0.0157234408,
-0.0205509197,
0.456171751,
0.061565686,
-0.364153266,
-0.3053401709,
0.2388352603,
0.3186247051,
0.0603673756,
0.0040047891,
-0.3794295788,
-0.1885215193,
0.3982872069,
0.0051799058,
0.2424625605,
0.1532347798,
-0.0953567103,
-0.099672921,
0.0158595871,
0.140178591,
0.2382984757,
0.0758770555,
-0.2070480734,
-0.0434464738,
-0.0409476943,
-0.024745129,
0.1555986106,
0.3065347373,
0.2641780376,
0.0933475718,
0.1558888257,
-0.0209620297,
-0.2815462053,
-0.2380040735,
-0.2863602638,
0.1189388558,
-0.6182571054,
0.2991374433,
-0.4743469357,
0.1188914552,
0.0353333764,
-0.3410823345,
-0.126299873,
-0.3229712546,
-0.3007418513,
0.2734275758,
-0.114748992,
-0.1341669261,
-0.2667236924,
0.3151707649,
-0.0232129171,
-0.3463472426,
-0.2113418728,
-0.011718411,
-0.1846485287,
-0.0234059021,
0.3875864446,
0.1092966199,
0.1544725895,
-0.1289405972,
0.0473137945,
0.1418190002,
-0.0863969028,
0.1482001096,
-0.1994989961,
0.2889932096,
0.2154709548,
0.1969102025,
-0.097852841,
-0.1516464055,
0.2886658013,
0.0957519189,
-0.3427707851,
0.3241927624,
-0.1354989409,
0.0278993677,
-0.1492166668,
-0.0291688349,
0.1219550744,
-0.4392545819,
0.5247157216,
0.2458689511,
0.0581385083,
-0.0170071367,
0.024261402,
0.1799214482,
0.1687064171,
0.0159117598,
-0.1107465252,
-0.1546859443,
0.23265706,
-0.1608326882,
-0.2501762211,
0.0764549151,
-0.1965515465,
0.1685906202,
-0.0865130052,
-0.3909764588,
0.0259427913,
0.0707197785,
0.113656804,
-0.0444037803,
-0.2952396274,
0.0588250048,
-0.012750539,
0.0851903856,
-0.1855715364,
-0.2022251636,
0.1206317171,
-0.0438125804,
0.0216034893,
0.0565146133,
0.7252904773,
-0.094295986,
0.1807755083,
0.3117997944,
-0.0382717587,
0.3949745595,
-0.0264437757,
0.1030091718,
-0.4057943821,
-0.1191254929,
-0.3808178008,
-0.0971131325,
0.0786369219,
0.2193029672,
0.1096424088,
-0.2879477143,
-0.2405598462,
-0.0622840673,
-0.458705008,
-0.3489450216,
0.1333797425,
-0.3543259203,
-0.3382492661,
0.0320334285,
0.2205645293,
-0.0587299727,
-0.058101695,
-0.0303624272,
0.4014145434,
0.2062797546,
-0.045500569,
-0.2057117224,
0.0343682133,
-0.3544536531,
0.3606953919,
0.0746530667,
0.3657509387,
0.1974583417,
-0.0280974675,
0.2447487861,
-0.2093996257,
0.4490725994,
-0.1200107634,
0.0227279458,
0.0280961487,
-0.1236655414,
-0.6418693066,
0.1011511385,
-0.1271311343,
0.2907668054,
0.2359822541,
0.2095478773,
-0.4572591484,
-0.2961417437,
0.1018685997,
-0.1504394412,
-0.1058704257,
-0.1064762697,
-0.3640386164,
-0.2923771143,
-0.2448295206,
-0.1525726616,
0.0274702702,
0.238711223,
0.0874368697,
-0.0987063497,
-0.2664905488,
-0.0690849647,
0.1225851476,
0.2164161801,
0.1880879849,
-0.2173920125,
0.0409797393,
0.0061120326,
0.3643348217,
0.3959255219,
0.8496599197,
0.2561550438,
-0.5346416235,
0.209253028,
-0.0245479438,
0.0420459323,
0.1865961701,
0.0230353661,
0.0835099518,
0.2850645781,
0.1448800266,
-0.2175283134,
-0.1765889078,
0.4804258347,
-0.1738850623,
-0.462118119,
-0.3463932872,
0.4906899035,
-0.1168817654,
0.0213299487,
0.2263396382,
0.2678977251,
-0.1467051059,
0.7589291334,
0.0028832667,
0.7930403948,
0.1487369239,
0.1980528533,
0.722145617,
-0.5317469835,
0.4004819691,
-0.0322305933,
-0.0708862841,
-0.2383533567,
0.5987788439,
-0.1820173562,
-0.1515830457,
-0.0095944759,
0.1925091743,
-0.1030687541,
0.0225749649,
-0.3046784699,
-0.0162520427,
0.0787487626,
0.1285971552,
-0.1141063645,
-0.2810207307,
-0.7139284611,
-0.013921855,
-0.1206340045,
0.0340206139,
-0.0035202035,
-0.3064056635,
-0.2558885813,
-0.1888527423,
-0.3464411497,
0.2579856813,
0.1630946994,
-0.0184751637,
0.2230372578,
-0.0496138036,
0.0946817696,
-0.052479431,
0.2925044596,
-0.093338713,
-0.1754464954,
0.1870107204,
-0.136403814,
-0.0991378203,
-0.0924462378,
-0.0160645843,
0.5005757809,
-0.076882787,
-0.1589540988,
-0.2050986439,
-0.2627161145,
-0.5380346179,
0.2646923363,
0.4163653553,
-0.3466080725,
-0.2409762591,
-0.3931148052,
-0.0475278683,
0.2723073959,
-0.1570667028,
0.0498478115,
0.2624672651,
0.1839358211,
-0.0674590543,
0.2908507288,
-0.3609032929,
-0.1087288335,
0.3222661614,
-0.035309758,
0.0564953759,
0.5033448935,
0.28622967,
-0.2179954201,
-0.1904616356,
0.2036409229,
0.8105611801,
-0.6269248128,
0.306525588,
-0.1730775386,
-0.0535797738,
-0.0472414233,
0.3028697073,
0.0699546561,
-0.0232218876,
0.0566212721,
-0.6213237643,
-0.1062004939,
0.4122470319,
-0.1543130577,
-0.0214454606,
0.1351440996,
-0.0169346463,
-0.2405515462,
-0.1720615774,
-0.1729355901,
0.2192621529,
-0.157630071,
-0.2045776844,
-0.3086435795,
0.0632047355,
0.5788154006,
0.0068062176,
0.0865863115,
0.0817479342,
-0.1436323076,
-0.0885987282,
-0.3009876609,
0.2072960734,
0.1043562815,
-0.0927104354,
-0.0784606487,
0.0101221818,
-0.1790237576,
-0.1357485503,
0.2507114708,
0.2667547166,
-0.0477175191,
-0.1331558824,
0.0813500509,
0.1524970978,
-0.2447348535,
0.1382138431,
-0.1590838879,
0.5401738882,
0.0858469978,
-0.0476722196,
-0.2291522324,
0.1443037242,
-0.2354620099,
0.2881272733,
0.2030767947,
0.2164717466,
0.4846535623,
-0.4272494912,
0.0382829048,
-0.2070928663,
0.097607471,
0.3163168728,
-0.2574581802,
0.0504575856,
-0.1622022539,
0.0547887273,
0.0131523544,
0.0525103696,
0.1396278888,
-0.0389828235,
0.0427070558,
0.3336888254,
-0.1388190091,
0.0428311341,
-0.233440578,
0.0458439477,
0.4255112708,
0.1589772701,
0.0510134622,
0.2905640602,
-0.2684133351,
0.0809300095,
0.0158536173,
0.1407577097,
0.2980787754,
-0.0071149487,
0.0680877268,
0.0217249729,
0.1491241157,
0.242313996,
0.000527641,
-0.4159059227,
-0.0420819484,
0.3158298135,
-0.0500426441,
0.3092297614,
0.1688639522,
0.3333729804,
-0.1892768294,
0.0969854742,
-0.4036624134,
-0.1670232415,
-0.0538141318,
-0.2211983949,
-0.5511420965,
-0.2069525719,
-0.3715271354,
-0.1109168679,
-0.1350995451,
-0.0615069121,
-0.2741715908,
0.18862243,
0.050345365,
-0.3303629458,
0.0814074501,
-0.1955389827,
0.204169035,
-0.1523470134,
0.2263706028,
-0.0093278112,
0.0362452045,
0.3188802898,
0.0760147572,
0.5093174577,
0.2283810079,
-0.0963346884,
-0.2487948537,
-0.0241238102,
-0.1421785355,
0.0403777473,
0.3468791544,
0.1857324243,
0.0395645872,
0.2420819402,
0.1516419202,
-0.113323234,
0.3565613329,
0.0022537354,
0.2634564936,
-0.0992486551,
0.5178783536,
-0.467659086,
0.1000935063,
-0.1672316343,
-0.3525444865,
-0.1460465491,
-0.3188264966,
-0.1780046672,
-0.194589898,
-0.023563683,
-0.0586972274,
0.0232759118,
-0.0869169459,
0.4179296196,
0.394970119,
0.1819572449,
0.1531837136,
-0.0330796316,
-0.2972987294,
0.2351236492,
-0.1318950504,
0.0307580233,
0.2157548219,
0.2165424079,
0.0767683387,
0.172640264,
0.0412499495,
0.0387746803,
0.0111105768,
0.2165727764,
-0.243310228,
-0.0609750114,
0.2753143907,
0.017352812,
-0.1357740611,
-0.2809372544,
-0.0888741538,
-0.058575131,
-0.0598329306,
0.1518499255,
-0.0595390499,
-0.0654159337,
-0.1698687971,
0.4425503612,
0.132435903,
0.201108411,
-0.0575091317,
-0.4760099649,
-0.2689436376,
-0.4144521058,
-0.1308503598,
0.3707847297,
-0.1804433614,
0.6111343503,
0.034223415,
0.1484050453,
-0.0185194183,
-0.0448635109,
-0.1875067055,
-0.0982181132,
-0.5277870893,
0.293900162,
-0.3957844377,
0.1447348148,
-0.131557107,
0.105731912,
0.1239853725,
0.1936317086,
-0.0772353411,
-0.2317138016,
0.4982316196,
-0.2602383494,
-0.3133600354,
0.2727927566,
0.0889144838,
-0.1325902939,
-0.2973822355,
-0.6104028821,
0.0109965438,
0.2189055979,
0.0305514205,
-0.217826277,
-0.1124497354,
-0.1242608428,
-0.0546770953,
-0.1363347471,
0.2223986387,
0.0136691667,
-0.113807179,
0.1441099495,
-0.1869695187
] |
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.0681873858,
0.1841620356,
0.0364154391,
0.378070116,
0.2355371118,
-0.0062701493,
0.4846676886,
0.3670632541,
0.4180770516,
-0.0028390361,
0.0605550855,
0.5898873806,
0.0276205242,
-0.1488580108,
-0.2172114253,
-0.1838724762,
0.0313556641,
0.1905163974,
0.1274460852,
0.0285851005,
-0.312232703,
0.294205904,
-0.2148162723,
0.1017739326,
-0.0391270779,
-0.0952268541,
0.1041621715,
0.3933391571,
-0.126419276,
-0.3826465607,
0.4134063721,
-0.0130349994,
0.2161163539,
0.5308529139,
-0.0001203599,
0.1964654922,
0.4152527153,
-0.0924445242,
-0.2868116796,
-0.4780592322,
-0.2790301442,
-0.3253921866,
0.5374760628,
-0.1200379953,
0.1052052006,
-0.2437470257,
-0.0497696139,
-0.2207817584,
0.6015405059,
0.2307226956,
0.1048027202,
0.4299396276,
0.0260291677,
0.0192189757,
0.0637281314,
0.2108370215,
-0.1217759252,
0.4542042613,
0.008248481,
0.1270529181,
-0.1715969741,
-0.0036358046,
-0.1026413739,
0.1538670212,
0.2191226035,
0.0476009734,
-0.1704019904,
0.0818347409,
0.0492498018,
0.2946319878,
0.2845769227,
-0.0508807413,
-0.4122374058,
-0.3489956558,
-0.1207851022,
0.1302724779,
0.2388219535,
0.2473597378,
-0.1509172171,
0.1259339899,
0.0328826346,
-0.0184717719,
-0.274196893,
0.2383802086,
0.0036438282,
0.0111868996,
-0.1582195759,
0.1072917655,
-0.1295858026,
-0.0208246578,
-0.1499338299,
-0.2244824916,
-0.3057589233,
0.1283779889,
0.0374988206,
0.1160042658,
-0.0355976447,
-0.4100777209,
0.2355837673,
0.3558476269,
0.3206707239,
0.2080192119,
-0.2673654556,
0.2078463286,
0.5903255343,
0.2016133517,
-0.0549013428,
0.0114983907,
0.2564994097,
0.330513984,
0.060729824,
-0.0435532071,
-0.2637993395,
-0.1108330861,
0.0103773009,
-0.1974509358,
0.3086810112,
-0.1726260036,
-0.223853156,
0.0755630434,
-0.6134247184,
-0.057320971,
-0.0002185348,
0.3672919273,
-0.1971875131,
0.4987776577,
0.2744283378,
0.4868384302,
0.0442170911,
0.0317275114,
-0.1022381559,
-0.0353483744,
-0.1634833217,
-0.2962278426,
0.2371663153,
0.0525440536,
0.0861051753,
0.1265181005,
-0.0630017444,
-0.4126388431,
-0.0742599443,
0.0477152914,
-0.0974051654,
0.1669668406,
0.1920515746,
0.1328712553,
0.1559263617,
-0.4045023322,
-0.1376463324,
0.0323024876,
-0.376919508,
0.0055573806,
-0.3176854253,
0.0546304472,
-0.2702908516,
-0.012081637,
-0.7623516321,
-0.0521201417,
-0.1122781113,
0.066026561,
0.0638750568,
-0.024417324,
0.2227593064,
-0.2470848113,
0.0749819055,
0.2833139896,
-0.3005580604,
-0.2378237098,
-0.0629284754,
-0.0374918953,
0.1896338761,
0.2650880516,
-0.2005773783,
0.2845457792,
-0.1637352407,
0.2106698304,
0.3121518791,
-0.3327308297,
-0.2219263613,
0.6055201888,
0.0193042662,
0.5248498917,
0.0198841766,
-0.2308954895,
-0.0092007201,
0.1884040087,
0.3035949171,
0.4013707638,
0.1422876716,
0.0679153278,
-0.2457052469,
-0.2022636086,
-0.1346423179,
0.3127694726,
0.0487664752,
0.188940227,
0.0995357186,
0.0244783051,
0.2506870925,
-0.1951393038,
-0.0266672354,
0.1624233276,
0.09113314,
0.02821544,
-0.0057260147,
-0.0044113356,
-0.6142939925,
0.1499559879,
-0.0511224791,
0.1092021987,
-0.408085674,
0.0093209231,
-0.2547832131,
0.126067847,
-0.1280753911,
0.1847678423,
0.0374526978,
0.1086536199,
-0.18218714,
0.2108012438,
-0.1838938296,
0.3152323067,
0.1626448035,
0.2816525102,
-0.4834643304,
0.4377064407,
0.2102558166,
-0.1212382987,
0.027118165,
0.185371235,
-0.0978173614,
-0.1626706719,
-0.2391355485,
0.1727548242,
0.1394179314,
0.1797136366,
-0.056277059,
-0.2375709265,
-0.0822837278,
0.083859548,
-0.1951903552,
0.3068771064,
0.2217238694,
-0.0245843641,
-0.0280966461,
0.805208683,
-0.0741070807,
0.4431968629,
-0.0157234408,
-0.0205509197,
0.456171751,
0.061565686,
-0.364153266,
-0.3053401709,
0.2388352603,
0.3186247051,
0.0603673756,
0.0040047891,
-0.3794295788,
-0.1885215193,
0.3982872069,
0.0051799058,
0.2424625605,
0.1532347798,
-0.0953567103,
-0.099672921,
0.0158595871,
0.140178591,
0.2382984757,
0.0758770555,
-0.2070480734,
-0.0434464738,
-0.0409476943,
-0.024745129,
0.1555986106,
0.3065347373,
0.2641780376,
0.0933475718,
0.1558888257,
-0.0209620297,
-0.2815462053,
-0.2380040735,
-0.2863602638,
0.1189388558,
-0.6182571054,
0.2991374433,
-0.4743469357,
0.1188914552,
0.0353333764,
-0.3410823345,
-0.126299873,
-0.3229712546,
-0.3007418513,
0.2734275758,
-0.114748992,
-0.1341669261,
-0.2667236924,
0.3151707649,
-0.0232129171,
-0.3463472426,
-0.2113418728,
-0.011718411,
-0.1846485287,
-0.0234059021,
0.3875864446,
0.1092966199,
0.1544725895,
-0.1289405972,
0.0473137945,
0.1418190002,
-0.0863969028,
0.1482001096,
-0.1994989961,
0.2889932096,
0.2154709548,
0.1969102025,
-0.097852841,
-0.1516464055,
0.2886658013,
0.0957519189,
-0.3427707851,
0.3241927624,
-0.1354989409,
0.0278993677,
-0.1492166668,
-0.0291688349,
0.1219550744,
-0.4392545819,
0.5247157216,
0.2458689511,
0.0581385083,
-0.0170071367,
0.024261402,
0.1799214482,
0.1687064171,
0.0159117598,
-0.1107465252,
-0.1546859443,
0.23265706,
-0.1608326882,
-0.2501762211,
0.0764549151,
-0.1965515465,
0.1685906202,
-0.0865130052,
-0.3909764588,
0.0259427913,
0.0707197785,
0.113656804,
-0.0444037803,
-0.2952396274,
0.0588250048,
-0.012750539,
0.0851903856,
-0.1855715364,
-0.2022251636,
0.1206317171,
-0.0438125804,
0.0216034893,
0.0565146133,
0.7252904773,
-0.094295986,
0.1807755083,
0.3117997944,
-0.0382717587,
0.3949745595,
-0.0264437757,
0.1030091718,
-0.4057943821,
-0.1191254929,
-0.3808178008,
-0.0971131325,
0.0786369219,
0.2193029672,
0.1096424088,
-0.2879477143,
-0.2405598462,
-0.0622840673,
-0.458705008,
-0.3489450216,
0.1333797425,
-0.3543259203,
-0.3382492661,
0.0320334285,
0.2205645293,
-0.0587299727,
-0.058101695,
-0.0303624272,
0.4014145434,
0.2062797546,
-0.045500569,
-0.2057117224,
0.0343682133,
-0.3544536531,
0.3606953919,
0.0746530667,
0.3657509387,
0.1974583417,
-0.0280974675,
0.2447487861,
-0.2093996257,
0.4490725994,
-0.1200107634,
0.0227279458,
0.0280961487,
-0.1236655414,
-0.6418693066,
0.1011511385,
-0.1271311343,
0.2907668054,
0.2359822541,
0.2095478773,
-0.4572591484,
-0.2961417437,
0.1018685997,
-0.1504394412,
-0.1058704257,
-0.1064762697,
-0.3640386164,
-0.2923771143,
-0.2448295206,
-0.1525726616,
0.0274702702,
0.238711223,
0.0874368697,
-0.0987063497,
-0.2664905488,
-0.0690849647,
0.1225851476,
0.2164161801,
0.1880879849,
-0.2173920125,
0.0409797393,
0.0061120326,
0.3643348217,
0.3959255219,
0.8496599197,
0.2561550438,
-0.5346416235,
0.209253028,
-0.0245479438,
0.0420459323,
0.1865961701,
0.0230353661,
0.0835099518,
0.2850645781,
0.1448800266,
-0.2175283134,
-0.1765889078,
0.4804258347,
-0.1738850623,
-0.462118119,
-0.3463932872,
0.4906899035,
-0.1168817654,
0.0213299487,
0.2263396382,
0.2678977251,
-0.1467051059,
0.7589291334,
0.0028832667,
0.7930403948,
0.1487369239,
0.1980528533,
0.722145617,
-0.5317469835,
0.4004819691,
-0.0322305933,
-0.0708862841,
-0.2383533567,
0.5987788439,
-0.1820173562,
-0.1515830457,
-0.0095944759,
0.1925091743,
-0.1030687541,
0.0225749649,
-0.3046784699,
-0.0162520427,
0.0787487626,
0.1285971552,
-0.1141063645,
-0.2810207307,
-0.7139284611,
-0.013921855,
-0.1206340045,
0.0340206139,
-0.0035202035,
-0.3064056635,
-0.2558885813,
-0.1888527423,
-0.3464411497,
0.2579856813,
0.1630946994,
-0.0184751637,
0.2230372578,
-0.0496138036,
0.0946817696,
-0.052479431,
0.2925044596,
-0.093338713,
-0.1754464954,
0.1870107204,
-0.136403814,
-0.0991378203,
-0.0924462378,
-0.0160645843,
0.5005757809,
-0.076882787,
-0.1589540988,
-0.2050986439,
-0.2627161145,
-0.5380346179,
0.2646923363,
0.4163653553,
-0.3466080725,
-0.2409762591,
-0.3931148052,
-0.0475278683,
0.2723073959,
-0.1570667028,
0.0498478115,
0.2624672651,
0.1839358211,
-0.0674590543,
0.2908507288,
-0.3609032929,
-0.1087288335,
0.3222661614,
-0.035309758,
0.0564953759,
0.5033448935,
0.28622967,
-0.2179954201,
-0.1904616356,
0.2036409229,
0.8105611801,
-0.6269248128,
0.306525588,
-0.1730775386,
-0.0535797738,
-0.0472414233,
0.3028697073,
0.0699546561,
-0.0232218876,
0.0566212721,
-0.6213237643,
-0.1062004939,
0.4122470319,
-0.1543130577,
-0.0214454606,
0.1351440996,
-0.0169346463,
-0.2405515462,
-0.1720615774,
-0.1729355901,
0.2192621529,
-0.157630071,
-0.2045776844,
-0.3086435795,
0.0632047355,
0.5788154006,
0.0068062176,
0.0865863115,
0.0817479342,
-0.1436323076,
-0.0885987282,
-0.3009876609,
0.2072960734,
0.1043562815,
-0.0927104354,
-0.0784606487,
0.0101221818,
-0.1790237576,
-0.1357485503,
0.2507114708,
0.2667547166,
-0.0477175191,
-0.1331558824,
0.0813500509,
0.1524970978,
-0.2447348535,
0.1382138431,
-0.1590838879,
0.5401738882,
0.0858469978,
-0.0476722196,
-0.2291522324,
0.1443037242,
-0.2354620099,
0.2881272733,
0.2030767947,
0.2164717466,
0.4846535623,
-0.4272494912,
0.0382829048,
-0.2070928663,
0.097607471,
0.3163168728,
-0.2574581802,
0.0504575856,
-0.1622022539,
0.0547887273,
0.0131523544,
0.0525103696,
0.1396278888,
-0.0389828235,
0.0427070558,
0.3336888254,
-0.1388190091,
0.0428311341,
-0.233440578,
0.0458439477,
0.4255112708,
0.1589772701,
0.0510134622,
0.2905640602,
-0.2684133351,
0.0809300095,
0.0158536173,
0.1407577097,
0.2980787754,
-0.0071149487,
0.0680877268,
0.0217249729,
0.1491241157,
0.242313996,
0.000527641,
-0.4159059227,
-0.0420819484,
0.3158298135,
-0.0500426441,
0.3092297614,
0.1688639522,
0.3333729804,
-0.1892768294,
0.0969854742,
-0.4036624134,
-0.1670232415,
-0.0538141318,
-0.2211983949,
-0.5511420965,
-0.2069525719,
-0.3715271354,
-0.1109168679,
-0.1350995451,
-0.0615069121,
-0.2741715908,
0.18862243,
0.050345365,
-0.3303629458,
0.0814074501,
-0.1955389827,
0.204169035,
-0.1523470134,
0.2263706028,
-0.0093278112,
0.0362452045,
0.3188802898,
0.0760147572,
0.5093174577,
0.2283810079,
-0.0963346884,
-0.2487948537,
-0.0241238102,
-0.1421785355,
0.0403777473,
0.3468791544,
0.1857324243,
0.0395645872,
0.2420819402,
0.1516419202,
-0.113323234,
0.3565613329,
0.0022537354,
0.2634564936,
-0.0992486551,
0.5178783536,
-0.467659086,
0.1000935063,
-0.1672316343,
-0.3525444865,
-0.1460465491,
-0.3188264966,
-0.1780046672,
-0.194589898,
-0.023563683,
-0.0586972274,
0.0232759118,
-0.0869169459,
0.4179296196,
0.394970119,
0.1819572449,
0.1531837136,
-0.0330796316,
-0.2972987294,
0.2351236492,
-0.1318950504,
0.0307580233,
0.2157548219,
0.2165424079,
0.0767683387,
0.172640264,
0.0412499495,
0.0387746803,
0.0111105768,
0.2165727764,
-0.243310228,
-0.0609750114,
0.2753143907,
0.017352812,
-0.1357740611,
-0.2809372544,
-0.0888741538,
-0.058575131,
-0.0598329306,
0.1518499255,
-0.0595390499,
-0.0654159337,
-0.1698687971,
0.4425503612,
0.132435903,
0.201108411,
-0.0575091317,
-0.4760099649,
-0.2689436376,
-0.4144521058,
-0.1308503598,
0.3707847297,
-0.1804433614,
0.6111343503,
0.034223415,
0.1484050453,
-0.0185194183,
-0.0448635109,
-0.1875067055,
-0.0982181132,
-0.5277870893,
0.293900162,
-0.3957844377,
0.1447348148,
-0.131557107,
0.105731912,
0.1239853725,
0.1936317086,
-0.0772353411,
-0.2317138016,
0.4982316196,
-0.2602383494,
-0.3133600354,
0.2727927566,
0.0889144838,
-0.1325902939,
-0.2973822355,
-0.6104028821,
0.0109965438,
0.2189055979,
0.0305514205,
-0.217826277,
-0.1124497354,
-0.1242608428,
-0.0546770953,
-0.1363347471,
0.2223986387,
0.0136691667,
-0.113807179,
0.1441099495,
-0.1869695187
] |
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.0681873858,
0.1841620356,
0.0364154391,
0.378070116,
0.2355371118,
-0.0062701493,
0.4846676886,
0.3670632541,
0.4180770516,
-0.0028390361,
0.0605550855,
0.5898873806,
0.0276205242,
-0.1488580108,
-0.2172114253,
-0.1838724762,
0.0313556641,
0.1905163974,
0.1274460852,
0.0285851005,
-0.312232703,
0.294205904,
-0.2148162723,
0.1017739326,
-0.0391270779,
-0.0952268541,
0.1041621715,
0.3933391571,
-0.126419276,
-0.3826465607,
0.4134063721,
-0.0130349994,
0.2161163539,
0.5308529139,
-0.0001203599,
0.1964654922,
0.4152527153,
-0.0924445242,
-0.2868116796,
-0.4780592322,
-0.2790301442,
-0.3253921866,
0.5374760628,
-0.1200379953,
0.1052052006,
-0.2437470257,
-0.0497696139,
-0.2207817584,
0.6015405059,
0.2307226956,
0.1048027202,
0.4299396276,
0.0260291677,
0.0192189757,
0.0637281314,
0.2108370215,
-0.1217759252,
0.4542042613,
0.008248481,
0.1270529181,
-0.1715969741,
-0.0036358046,
-0.1026413739,
0.1538670212,
0.2191226035,
0.0476009734,
-0.1704019904,
0.0818347409,
0.0492498018,
0.2946319878,
0.2845769227,
-0.0508807413,
-0.4122374058,
-0.3489956558,
-0.1207851022,
0.1302724779,
0.2388219535,
0.2473597378,
-0.1509172171,
0.1259339899,
0.0328826346,
-0.0184717719,
-0.274196893,
0.2383802086,
0.0036438282,
0.0111868996,
-0.1582195759,
0.1072917655,
-0.1295858026,
-0.0208246578,
-0.1499338299,
-0.2244824916,
-0.3057589233,
0.1283779889,
0.0374988206,
0.1160042658,
-0.0355976447,
-0.4100777209,
0.2355837673,
0.3558476269,
0.3206707239,
0.2080192119,
-0.2673654556,
0.2078463286,
0.5903255343,
0.2016133517,
-0.0549013428,
0.0114983907,
0.2564994097,
0.330513984,
0.060729824,
-0.0435532071,
-0.2637993395,
-0.1108330861,
0.0103773009,
-0.1974509358,
0.3086810112,
-0.1726260036,
-0.223853156,
0.0755630434,
-0.6134247184,
-0.057320971,
-0.0002185348,
0.3672919273,
-0.1971875131,
0.4987776577,
0.2744283378,
0.4868384302,
0.0442170911,
0.0317275114,
-0.1022381559,
-0.0353483744,
-0.1634833217,
-0.2962278426,
0.2371663153,
0.0525440536,
0.0861051753,
0.1265181005,
-0.0630017444,
-0.4126388431,
-0.0742599443,
0.0477152914,
-0.0974051654,
0.1669668406,
0.1920515746,
0.1328712553,
0.1559263617,
-0.4045023322,
-0.1376463324,
0.0323024876,
-0.376919508,
0.0055573806,
-0.3176854253,
0.0546304472,
-0.2702908516,
-0.012081637,
-0.7623516321,
-0.0521201417,
-0.1122781113,
0.066026561,
0.0638750568,
-0.024417324,
0.2227593064,
-0.2470848113,
0.0749819055,
0.2833139896,
-0.3005580604,
-0.2378237098,
-0.0629284754,
-0.0374918953,
0.1896338761,
0.2650880516,
-0.2005773783,
0.2845457792,
-0.1637352407,
0.2106698304,
0.3121518791,
-0.3327308297,
-0.2219263613,
0.6055201888,
0.0193042662,
0.5248498917,
0.0198841766,
-0.2308954895,
-0.0092007201,
0.1884040087,
0.3035949171,
0.4013707638,
0.1422876716,
0.0679153278,
-0.2457052469,
-0.2022636086,
-0.1346423179,
0.3127694726,
0.0487664752,
0.188940227,
0.0995357186,
0.0244783051,
0.2506870925,
-0.1951393038,
-0.0266672354,
0.1624233276,
0.09113314,
0.02821544,
-0.0057260147,
-0.0044113356,
-0.6142939925,
0.1499559879,
-0.0511224791,
0.1092021987,
-0.408085674,
0.0093209231,
-0.2547832131,
0.126067847,
-0.1280753911,
0.1847678423,
0.0374526978,
0.1086536199,
-0.18218714,
0.2108012438,
-0.1838938296,
0.3152323067,
0.1626448035,
0.2816525102,
-0.4834643304,
0.4377064407,
0.2102558166,
-0.1212382987,
0.027118165,
0.185371235,
-0.0978173614,
-0.1626706719,
-0.2391355485,
0.1727548242,
0.1394179314,
0.1797136366,
-0.056277059,
-0.2375709265,
-0.0822837278,
0.083859548,
-0.1951903552,
0.3068771064,
0.2217238694,
-0.0245843641,
-0.0280966461,
0.805208683,
-0.0741070807,
0.4431968629,
-0.0157234408,
-0.0205509197,
0.456171751,
0.061565686,
-0.364153266,
-0.3053401709,
0.2388352603,
0.3186247051,
0.0603673756,
0.0040047891,
-0.3794295788,
-0.1885215193,
0.3982872069,
0.0051799058,
0.2424625605,
0.1532347798,
-0.0953567103,
-0.099672921,
0.0158595871,
0.140178591,
0.2382984757,
0.0758770555,
-0.2070480734,
-0.0434464738,
-0.0409476943,
-0.024745129,
0.1555986106,
0.3065347373,
0.2641780376,
0.0933475718,
0.1558888257,
-0.0209620297,
-0.2815462053,
-0.2380040735,
-0.2863602638,
0.1189388558,
-0.6182571054,
0.2991374433,
-0.4743469357,
0.1188914552,
0.0353333764,
-0.3410823345,
-0.126299873,
-0.3229712546,
-0.3007418513,
0.2734275758,
-0.114748992,
-0.1341669261,
-0.2667236924,
0.3151707649,
-0.0232129171,
-0.3463472426,
-0.2113418728,
-0.011718411,
-0.1846485287,
-0.0234059021,
0.3875864446,
0.1092966199,
0.1544725895,
-0.1289405972,
0.0473137945,
0.1418190002,
-0.0863969028,
0.1482001096,
-0.1994989961,
0.2889932096,
0.2154709548,
0.1969102025,
-0.097852841,
-0.1516464055,
0.2886658013,
0.0957519189,
-0.3427707851,
0.3241927624,
-0.1354989409,
0.0278993677,
-0.1492166668,
-0.0291688349,
0.1219550744,
-0.4392545819,
0.5247157216,
0.2458689511,
0.0581385083,
-0.0170071367,
0.024261402,
0.1799214482,
0.1687064171,
0.0159117598,
-0.1107465252,
-0.1546859443,
0.23265706,
-0.1608326882,
-0.2501762211,
0.0764549151,
-0.1965515465,
0.1685906202,
-0.0865130052,
-0.3909764588,
0.0259427913,
0.0707197785,
0.113656804,
-0.0444037803,
-0.2952396274,
0.0588250048,
-0.012750539,
0.0851903856,
-0.1855715364,
-0.2022251636,
0.1206317171,
-0.0438125804,
0.0216034893,
0.0565146133,
0.7252904773,
-0.094295986,
0.1807755083,
0.3117997944,
-0.0382717587,
0.3949745595,
-0.0264437757,
0.1030091718,
-0.4057943821,
-0.1191254929,
-0.3808178008,
-0.0971131325,
0.0786369219,
0.2193029672,
0.1096424088,
-0.2879477143,
-0.2405598462,
-0.0622840673,
-0.458705008,
-0.3489450216,
0.1333797425,
-0.3543259203,
-0.3382492661,
0.0320334285,
0.2205645293,
-0.0587299727,
-0.058101695,
-0.0303624272,
0.4014145434,
0.2062797546,
-0.045500569,
-0.2057117224,
0.0343682133,
-0.3544536531,
0.3606953919,
0.0746530667,
0.3657509387,
0.1974583417,
-0.0280974675,
0.2447487861,
-0.2093996257,
0.4490725994,
-0.1200107634,
0.0227279458,
0.0280961487,
-0.1236655414,
-0.6418693066,
0.1011511385,
-0.1271311343,
0.2907668054,
0.2359822541,
0.2095478773,
-0.4572591484,
-0.2961417437,
0.1018685997,
-0.1504394412,
-0.1058704257,
-0.1064762697,
-0.3640386164,
-0.2923771143,
-0.2448295206,
-0.1525726616,
0.0274702702,
0.238711223,
0.0874368697,
-0.0987063497,
-0.2664905488,
-0.0690849647,
0.1225851476,
0.2164161801,
0.1880879849,
-0.2173920125,
0.0409797393,
0.0061120326,
0.3643348217,
0.3959255219,
0.8496599197,
0.2561550438,
-0.5346416235,
0.209253028,
-0.0245479438,
0.0420459323,
0.1865961701,
0.0230353661,
0.0835099518,
0.2850645781,
0.1448800266,
-0.2175283134,
-0.1765889078,
0.4804258347,
-0.1738850623,
-0.462118119,
-0.3463932872,
0.4906899035,
-0.1168817654,
0.0213299487,
0.2263396382,
0.2678977251,
-0.1467051059,
0.7589291334,
0.0028832667,
0.7930403948,
0.1487369239,
0.1980528533,
0.722145617,
-0.5317469835,
0.4004819691,
-0.0322305933,
-0.0708862841,
-0.2383533567,
0.5987788439,
-0.1820173562,
-0.1515830457,
-0.0095944759,
0.1925091743,
-0.1030687541,
0.0225749649,
-0.3046784699,
-0.0162520427,
0.0787487626,
0.1285971552,
-0.1141063645,
-0.2810207307,
-0.7139284611,
-0.013921855,
-0.1206340045,
0.0340206139,
-0.0035202035,
-0.3064056635,
-0.2558885813,
-0.1888527423,
-0.3464411497,
0.2579856813,
0.1630946994,
-0.0184751637,
0.2230372578,
-0.0496138036,
0.0946817696,
-0.052479431,
0.2925044596,
-0.093338713,
-0.1754464954,
0.1870107204,
-0.136403814,
-0.0991378203,
-0.0924462378,
-0.0160645843,
0.5005757809,
-0.076882787,
-0.1589540988,
-0.2050986439,
-0.2627161145,
-0.5380346179,
0.2646923363,
0.4163653553,
-0.3466080725,
-0.2409762591,
-0.3931148052,
-0.0475278683,
0.2723073959,
-0.1570667028,
0.0498478115,
0.2624672651,
0.1839358211,
-0.0674590543,
0.2908507288,
-0.3609032929,
-0.1087288335,
0.3222661614,
-0.035309758,
0.0564953759,
0.5033448935,
0.28622967,
-0.2179954201,
-0.1904616356,
0.2036409229,
0.8105611801,
-0.6269248128,
0.306525588,
-0.1730775386,
-0.0535797738,
-0.0472414233,
0.3028697073,
0.0699546561,
-0.0232218876,
0.0566212721,
-0.6213237643,
-0.1062004939,
0.4122470319,
-0.1543130577,
-0.0214454606,
0.1351440996,
-0.0169346463,
-0.2405515462,
-0.1720615774,
-0.1729355901,
0.2192621529,
-0.157630071,
-0.2045776844,
-0.3086435795,
0.0632047355,
0.5788154006,
0.0068062176,
0.0865863115,
0.0817479342,
-0.1436323076,
-0.0885987282,
-0.3009876609,
0.2072960734,
0.1043562815,
-0.0927104354,
-0.0784606487,
0.0101221818,
-0.1790237576,
-0.1357485503,
0.2507114708,
0.2667547166,
-0.0477175191,
-0.1331558824,
0.0813500509,
0.1524970978,
-0.2447348535,
0.1382138431,
-0.1590838879,
0.5401738882,
0.0858469978,
-0.0476722196,
-0.2291522324,
0.1443037242,
-0.2354620099,
0.2881272733,
0.2030767947,
0.2164717466,
0.4846535623,
-0.4272494912,
0.0382829048,
-0.2070928663,
0.097607471,
0.3163168728,
-0.2574581802,
0.0504575856,
-0.1622022539,
0.0547887273,
0.0131523544,
0.0525103696,
0.1396278888,
-0.0389828235,
0.0427070558,
0.3336888254,
-0.1388190091,
0.0428311341,
-0.233440578,
0.0458439477,
0.4255112708,
0.1589772701,
0.0510134622,
0.2905640602,
-0.2684133351,
0.0809300095,
0.0158536173,
0.1407577097,
0.2980787754,
-0.0071149487,
0.0680877268,
0.0217249729,
0.1491241157,
0.242313996,
0.000527641,
-0.4159059227,
-0.0420819484,
0.3158298135,
-0.0500426441,
0.3092297614,
0.1688639522,
0.3333729804,
-0.1892768294,
0.0969854742,
-0.4036624134,
-0.1670232415,
-0.0538141318,
-0.2211983949,
-0.5511420965,
-0.2069525719,
-0.3715271354,
-0.1109168679,
-0.1350995451,
-0.0615069121,
-0.2741715908,
0.18862243,
0.050345365,
-0.3303629458,
0.0814074501,
-0.1955389827,
0.204169035,
-0.1523470134,
0.2263706028,
-0.0093278112,
0.0362452045,
0.3188802898,
0.0760147572,
0.5093174577,
0.2283810079,
-0.0963346884,
-0.2487948537,
-0.0241238102,
-0.1421785355,
0.0403777473,
0.3468791544,
0.1857324243,
0.0395645872,
0.2420819402,
0.1516419202,
-0.113323234,
0.3565613329,
0.0022537354,
0.2634564936,
-0.0992486551,
0.5178783536,
-0.467659086,
0.1000935063,
-0.1672316343,
-0.3525444865,
-0.1460465491,
-0.3188264966,
-0.1780046672,
-0.194589898,
-0.023563683,
-0.0586972274,
0.0232759118,
-0.0869169459,
0.4179296196,
0.394970119,
0.1819572449,
0.1531837136,
-0.0330796316,
-0.2972987294,
0.2351236492,
-0.1318950504,
0.0307580233,
0.2157548219,
0.2165424079,
0.0767683387,
0.172640264,
0.0412499495,
0.0387746803,
0.0111105768,
0.2165727764,
-0.243310228,
-0.0609750114,
0.2753143907,
0.017352812,
-0.1357740611,
-0.2809372544,
-0.0888741538,
-0.058575131,
-0.0598329306,
0.1518499255,
-0.0595390499,
-0.0654159337,
-0.1698687971,
0.4425503612,
0.132435903,
0.201108411,
-0.0575091317,
-0.4760099649,
-0.2689436376,
-0.4144521058,
-0.1308503598,
0.3707847297,
-0.1804433614,
0.6111343503,
0.034223415,
0.1484050453,
-0.0185194183,
-0.0448635109,
-0.1875067055,
-0.0982181132,
-0.5277870893,
0.293900162,
-0.3957844377,
0.1447348148,
-0.131557107,
0.105731912,
0.1239853725,
0.1936317086,
-0.0772353411,
-0.2317138016,
0.4982316196,
-0.2602383494,
-0.3133600354,
0.2727927566,
0.0889144838,
-0.1325902939,
-0.2973822355,
-0.6104028821,
0.0109965438,
0.2189055979,
0.0305514205,
-0.217826277,
-0.1124497354,
-0.1242608428,
-0.0546770953,
-0.1363347471,
0.2223986387,
0.0136691667,
-0.113807179,
0.1441099495,
-0.1869695187
] |
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.0681873858,
0.1841620356,
0.0364154391,
0.378070116,
0.2355371118,
-0.0062701493,
0.4846676886,
0.3670632541,
0.4180770516,
-0.0028390361,
0.0605550855,
0.5898873806,
0.0276205242,
-0.1488580108,
-0.2172114253,
-0.1838724762,
0.0313556641,
0.1905163974,
0.1274460852,
0.0285851005,
-0.312232703,
0.294205904,
-0.2148162723,
0.1017739326,
-0.0391270779,
-0.0952268541,
0.1041621715,
0.3933391571,
-0.126419276,
-0.3826465607,
0.4134063721,
-0.0130349994,
0.2161163539,
0.5308529139,
-0.0001203599,
0.1964654922,
0.4152527153,
-0.0924445242,
-0.2868116796,
-0.4780592322,
-0.2790301442,
-0.3253921866,
0.5374760628,
-0.1200379953,
0.1052052006,
-0.2437470257,
-0.0497696139,
-0.2207817584,
0.6015405059,
0.2307226956,
0.1048027202,
0.4299396276,
0.0260291677,
0.0192189757,
0.0637281314,
0.2108370215,
-0.1217759252,
0.4542042613,
0.008248481,
0.1270529181,
-0.1715969741,
-0.0036358046,
-0.1026413739,
0.1538670212,
0.2191226035,
0.0476009734,
-0.1704019904,
0.0818347409,
0.0492498018,
0.2946319878,
0.2845769227,
-0.0508807413,
-0.4122374058,
-0.3489956558,
-0.1207851022,
0.1302724779,
0.2388219535,
0.2473597378,
-0.1509172171,
0.1259339899,
0.0328826346,
-0.0184717719,
-0.274196893,
0.2383802086,
0.0036438282,
0.0111868996,
-0.1582195759,
0.1072917655,
-0.1295858026,
-0.0208246578,
-0.1499338299,
-0.2244824916,
-0.3057589233,
0.1283779889,
0.0374988206,
0.1160042658,
-0.0355976447,
-0.4100777209,
0.2355837673,
0.3558476269,
0.3206707239,
0.2080192119,
-0.2673654556,
0.2078463286,
0.5903255343,
0.2016133517,
-0.0549013428,
0.0114983907,
0.2564994097,
0.330513984,
0.060729824,
-0.0435532071,
-0.2637993395,
-0.1108330861,
0.0103773009,
-0.1974509358,
0.3086810112,
-0.1726260036,
-0.223853156,
0.0755630434,
-0.6134247184,
-0.057320971,
-0.0002185348,
0.3672919273,
-0.1971875131,
0.4987776577,
0.2744283378,
0.4868384302,
0.0442170911,
0.0317275114,
-0.1022381559,
-0.0353483744,
-0.1634833217,
-0.2962278426,
0.2371663153,
0.0525440536,
0.0861051753,
0.1265181005,
-0.0630017444,
-0.4126388431,
-0.0742599443,
0.0477152914,
-0.0974051654,
0.1669668406,
0.1920515746,
0.1328712553,
0.1559263617,
-0.4045023322,
-0.1376463324,
0.0323024876,
-0.376919508,
0.0055573806,
-0.3176854253,
0.0546304472,
-0.2702908516,
-0.012081637,
-0.7623516321,
-0.0521201417,
-0.1122781113,
0.066026561,
0.0638750568,
-0.024417324,
0.2227593064,
-0.2470848113,
0.0749819055,
0.2833139896,
-0.3005580604,
-0.2378237098,
-0.0629284754,
-0.0374918953,
0.1896338761,
0.2650880516,
-0.2005773783,
0.2845457792,
-0.1637352407,
0.2106698304,
0.3121518791,
-0.3327308297,
-0.2219263613,
0.6055201888,
0.0193042662,
0.5248498917,
0.0198841766,
-0.2308954895,
-0.0092007201,
0.1884040087,
0.3035949171,
0.4013707638,
0.1422876716,
0.0679153278,
-0.2457052469,
-0.2022636086,
-0.1346423179,
0.3127694726,
0.0487664752,
0.188940227,
0.0995357186,
0.0244783051,
0.2506870925,
-0.1951393038,
-0.0266672354,
0.1624233276,
0.09113314,
0.02821544,
-0.0057260147,
-0.0044113356,
-0.6142939925,
0.1499559879,
-0.0511224791,
0.1092021987,
-0.408085674,
0.0093209231,
-0.2547832131,
0.126067847,
-0.1280753911,
0.1847678423,
0.0374526978,
0.1086536199,
-0.18218714,
0.2108012438,
-0.1838938296,
0.3152323067,
0.1626448035,
0.2816525102,
-0.4834643304,
0.4377064407,
0.2102558166,
-0.1212382987,
0.027118165,
0.185371235,
-0.0978173614,
-0.1626706719,
-0.2391355485,
0.1727548242,
0.1394179314,
0.1797136366,
-0.056277059,
-0.2375709265,
-0.0822837278,
0.083859548,
-0.1951903552,
0.3068771064,
0.2217238694,
-0.0245843641,
-0.0280966461,
0.805208683,
-0.0741070807,
0.4431968629,
-0.0157234408,
-0.0205509197,
0.456171751,
0.061565686,
-0.364153266,
-0.3053401709,
0.2388352603,
0.3186247051,
0.0603673756,
0.0040047891,
-0.3794295788,
-0.1885215193,
0.3982872069,
0.0051799058,
0.2424625605,
0.1532347798,
-0.0953567103,
-0.099672921,
0.0158595871,
0.140178591,
0.2382984757,
0.0758770555,
-0.2070480734,
-0.0434464738,
-0.0409476943,
-0.024745129,
0.1555986106,
0.3065347373,
0.2641780376,
0.0933475718,
0.1558888257,
-0.0209620297,
-0.2815462053,
-0.2380040735,
-0.2863602638,
0.1189388558,
-0.6182571054,
0.2991374433,
-0.4743469357,
0.1188914552,
0.0353333764,
-0.3410823345,
-0.126299873,
-0.3229712546,
-0.3007418513,
0.2734275758,
-0.114748992,
-0.1341669261,
-0.2667236924,
0.3151707649,
-0.0232129171,
-0.3463472426,
-0.2113418728,
-0.011718411,
-0.1846485287,
-0.0234059021,
0.3875864446,
0.1092966199,
0.1544725895,
-0.1289405972,
0.0473137945,
0.1418190002,
-0.0863969028,
0.1482001096,
-0.1994989961,
0.2889932096,
0.2154709548,
0.1969102025,
-0.097852841,
-0.1516464055,
0.2886658013,
0.0957519189,
-0.3427707851,
0.3241927624,
-0.1354989409,
0.0278993677,
-0.1492166668,
-0.0291688349,
0.1219550744,
-0.4392545819,
0.5247157216,
0.2458689511,
0.0581385083,
-0.0170071367,
0.024261402,
0.1799214482,
0.1687064171,
0.0159117598,
-0.1107465252,
-0.1546859443,
0.23265706,
-0.1608326882,
-0.2501762211,
0.0764549151,
-0.1965515465,
0.1685906202,
-0.0865130052,
-0.3909764588,
0.0259427913,
0.0707197785,
0.113656804,
-0.0444037803,
-0.2952396274,
0.0588250048,
-0.012750539,
0.0851903856,
-0.1855715364,
-0.2022251636,
0.1206317171,
-0.0438125804,
0.0216034893,
0.0565146133,
0.7252904773,
-0.094295986,
0.1807755083,
0.3117997944,
-0.0382717587,
0.3949745595,
-0.0264437757,
0.1030091718,
-0.4057943821,
-0.1191254929,
-0.3808178008,
-0.0971131325,
0.0786369219,
0.2193029672,
0.1096424088,
-0.2879477143,
-0.2405598462,
-0.0622840673,
-0.458705008,
-0.3489450216,
0.1333797425,
-0.3543259203,
-0.3382492661,
0.0320334285,
0.2205645293,
-0.0587299727,
-0.058101695,
-0.0303624272,
0.4014145434,
0.2062797546,
-0.045500569,
-0.2057117224,
0.0343682133,
-0.3544536531,
0.3606953919,
0.0746530667,
0.3657509387,
0.1974583417,
-0.0280974675,
0.2447487861,
-0.2093996257,
0.4490725994,
-0.1200107634,
0.0227279458,
0.0280961487,
-0.1236655414,
-0.6418693066,
0.1011511385,
-0.1271311343,
0.2907668054,
0.2359822541,
0.2095478773,
-0.4572591484,
-0.2961417437,
0.1018685997,
-0.1504394412,
-0.1058704257,
-0.1064762697,
-0.3640386164,
-0.2923771143,
-0.2448295206,
-0.1525726616,
0.0274702702,
0.238711223,
0.0874368697,
-0.0987063497,
-0.2664905488,
-0.0690849647,
0.1225851476,
0.2164161801,
0.1880879849,
-0.2173920125,
0.0409797393,
0.0061120326,
0.3643348217,
0.3959255219,
0.8496599197,
0.2561550438,
-0.5346416235,
0.209253028,
-0.0245479438,
0.0420459323,
0.1865961701,
0.0230353661,
0.0835099518,
0.2850645781,
0.1448800266,
-0.2175283134,
-0.1765889078,
0.4804258347,
-0.1738850623,
-0.462118119,
-0.3463932872,
0.4906899035,
-0.1168817654,
0.0213299487,
0.2263396382,
0.2678977251,
-0.1467051059,
0.7589291334,
0.0028832667,
0.7930403948,
0.1487369239,
0.1980528533,
0.722145617,
-0.5317469835,
0.4004819691,
-0.0322305933,
-0.0708862841,
-0.2383533567,
0.5987788439,
-0.1820173562,
-0.1515830457,
-0.0095944759,
0.1925091743,
-0.1030687541,
0.0225749649,
-0.3046784699,
-0.0162520427,
0.0787487626,
0.1285971552,
-0.1141063645,
-0.2810207307,
-0.7139284611,
-0.013921855,
-0.1206340045,
0.0340206139,
-0.0035202035,
-0.3064056635,
-0.2558885813,
-0.1888527423,
-0.3464411497,
0.2579856813,
0.1630946994,
-0.0184751637,
0.2230372578,
-0.0496138036,
0.0946817696,
-0.052479431,
0.2925044596,
-0.093338713,
-0.1754464954,
0.1870107204,
-0.136403814,
-0.0991378203,
-0.0924462378,
-0.0160645843,
0.5005757809,
-0.076882787,
-0.1589540988,
-0.2050986439,
-0.2627161145,
-0.5380346179,
0.2646923363,
0.4163653553,
-0.3466080725,
-0.2409762591,
-0.3931148052,
-0.0475278683,
0.2723073959,
-0.1570667028,
0.0498478115,
0.2624672651,
0.1839358211,
-0.0674590543,
0.2908507288,
-0.3609032929,
-0.1087288335,
0.3222661614,
-0.035309758,
0.0564953759,
0.5033448935,
0.28622967,
-0.2179954201,
-0.1904616356,
0.2036409229,
0.8105611801,
-0.6269248128,
0.306525588,
-0.1730775386,
-0.0535797738,
-0.0472414233,
0.3028697073,
0.0699546561,
-0.0232218876,
0.0566212721,
-0.6213237643,
-0.1062004939,
0.4122470319,
-0.1543130577,
-0.0214454606,
0.1351440996,
-0.0169346463,
-0.2405515462,
-0.1720615774,
-0.1729355901,
0.2192621529,
-0.157630071,
-0.2045776844,
-0.3086435795,
0.0632047355,
0.5788154006,
0.0068062176,
0.0865863115,
0.0817479342,
-0.1436323076,
-0.0885987282,
-0.3009876609,
0.2072960734,
0.1043562815,
-0.0927104354,
-0.0784606487,
0.0101221818,
-0.1790237576,
-0.1357485503,
0.2507114708,
0.2667547166,
-0.0477175191,
-0.1331558824,
0.0813500509,
0.1524970978,
-0.2447348535,
0.1382138431,
-0.1590838879,
0.5401738882,
0.0858469978,
-0.0476722196,
-0.2291522324,
0.1443037242,
-0.2354620099,
0.2881272733,
0.2030767947,
0.2164717466,
0.4846535623,
-0.4272494912,
0.0382829048,
-0.2070928663,
0.097607471,
0.3163168728,
-0.2574581802,
0.0504575856,
-0.1622022539,
0.0547887273,
0.0131523544,
0.0525103696,
0.1396278888,
-0.0389828235,
0.0427070558,
0.3336888254,
-0.1388190091,
0.0428311341,
-0.233440578,
0.0458439477,
0.4255112708,
0.1589772701,
0.0510134622,
0.2905640602,
-0.2684133351,
0.0809300095,
0.0158536173,
0.1407577097,
0.2980787754,
-0.0071149487,
0.0680877268,
0.0217249729,
0.1491241157,
0.242313996,
0.000527641,
-0.4159059227,
-0.0420819484,
0.3158298135,
-0.0500426441,
0.3092297614,
0.1688639522,
0.3333729804,
-0.1892768294,
0.0969854742,
-0.4036624134,
-0.1670232415,
-0.0538141318,
-0.2211983949,
-0.5511420965,
-0.2069525719,
-0.3715271354,
-0.1109168679,
-0.1350995451,
-0.0615069121,
-0.2741715908,
0.18862243,
0.050345365,
-0.3303629458,
0.0814074501,
-0.1955389827,
0.204169035,
-0.1523470134,
0.2263706028,
-0.0093278112,
0.0362452045,
0.3188802898,
0.0760147572,
0.5093174577,
0.2283810079,
-0.0963346884,
-0.2487948537,
-0.0241238102,
-0.1421785355,
0.0403777473,
0.3468791544,
0.1857324243,
0.0395645872,
0.2420819402,
0.1516419202,
-0.113323234,
0.3565613329,
0.0022537354,
0.2634564936,
-0.0992486551,
0.5178783536,
-0.467659086,
0.1000935063,
-0.1672316343,
-0.3525444865,
-0.1460465491,
-0.3188264966,
-0.1780046672,
-0.194589898,
-0.023563683,
-0.0586972274,
0.0232759118,
-0.0869169459,
0.4179296196,
0.394970119,
0.1819572449,
0.1531837136,
-0.0330796316,
-0.2972987294,
0.2351236492,
-0.1318950504,
0.0307580233,
0.2157548219,
0.2165424079,
0.0767683387,
0.172640264,
0.0412499495,
0.0387746803,
0.0111105768,
0.2165727764,
-0.243310228,
-0.0609750114,
0.2753143907,
0.017352812,
-0.1357740611,
-0.2809372544,
-0.0888741538,
-0.058575131,
-0.0598329306,
0.1518499255,
-0.0595390499,
-0.0654159337,
-0.1698687971,
0.4425503612,
0.132435903,
0.201108411,
-0.0575091317,
-0.4760099649,
-0.2689436376,
-0.4144521058,
-0.1308503598,
0.3707847297,
-0.1804433614,
0.6111343503,
0.034223415,
0.1484050453,
-0.0185194183,
-0.0448635109,
-0.1875067055,
-0.0982181132,
-0.5277870893,
0.293900162,
-0.3957844377,
0.1447348148,
-0.131557107,
0.105731912,
0.1239853725,
0.1936317086,
-0.0772353411,
-0.2317138016,
0.4982316196,
-0.2602383494,
-0.3133600354,
0.2727927566,
0.0889144838,
-0.1325902939,
-0.2973822355,
-0.6104028821,
0.0109965438,
0.2189055979,
0.0305514205,
-0.217826277,
-0.1124497354,
-0.1242608428,
-0.0546770953,
-0.1363347471,
0.2223986387,
0.0136691667,
-0.113807179,
0.1441099495,
-0.1869695187
] |
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.0681873858,
0.1841620356,
0.0364154391,
0.378070116,
0.2355371118,
-0.0062701493,
0.4846676886,
0.3670632541,
0.4180770516,
-0.0028390361,
0.0605550855,
0.5898873806,
0.0276205242,
-0.1488580108,
-0.2172114253,
-0.1838724762,
0.0313556641,
0.1905163974,
0.1274460852,
0.0285851005,
-0.312232703,
0.294205904,
-0.2148162723,
0.1017739326,
-0.0391270779,
-0.0952268541,
0.1041621715,
0.3933391571,
-0.126419276,
-0.3826465607,
0.4134063721,
-0.0130349994,
0.2161163539,
0.5308529139,
-0.0001203599,
0.1964654922,
0.4152527153,
-0.0924445242,
-0.2868116796,
-0.4780592322,
-0.2790301442,
-0.3253921866,
0.5374760628,
-0.1200379953,
0.1052052006,
-0.2437470257,
-0.0497696139,
-0.2207817584,
0.6015405059,
0.2307226956,
0.1048027202,
0.4299396276,
0.0260291677,
0.0192189757,
0.0637281314,
0.2108370215,
-0.1217759252,
0.4542042613,
0.008248481,
0.1270529181,
-0.1715969741,
-0.0036358046,
-0.1026413739,
0.1538670212,
0.2191226035,
0.0476009734,
-0.1704019904,
0.0818347409,
0.0492498018,
0.2946319878,
0.2845769227,
-0.0508807413,
-0.4122374058,
-0.3489956558,
-0.1207851022,
0.1302724779,
0.2388219535,
0.2473597378,
-0.1509172171,
0.1259339899,
0.0328826346,
-0.0184717719,
-0.274196893,
0.2383802086,
0.0036438282,
0.0111868996,
-0.1582195759,
0.1072917655,
-0.1295858026,
-0.0208246578,
-0.1499338299,
-0.2244824916,
-0.3057589233,
0.1283779889,
0.0374988206,
0.1160042658,
-0.0355976447,
-0.4100777209,
0.2355837673,
0.3558476269,
0.3206707239,
0.2080192119,
-0.2673654556,
0.2078463286,
0.5903255343,
0.2016133517,
-0.0549013428,
0.0114983907,
0.2564994097,
0.330513984,
0.060729824,
-0.0435532071,
-0.2637993395,
-0.1108330861,
0.0103773009,
-0.1974509358,
0.3086810112,
-0.1726260036,
-0.223853156,
0.0755630434,
-0.6134247184,
-0.057320971,
-0.0002185348,
0.3672919273,
-0.1971875131,
0.4987776577,
0.2744283378,
0.4868384302,
0.0442170911,
0.0317275114,
-0.1022381559,
-0.0353483744,
-0.1634833217,
-0.2962278426,
0.2371663153,
0.0525440536,
0.0861051753,
0.1265181005,
-0.0630017444,
-0.4126388431,
-0.0742599443,
0.0477152914,
-0.0974051654,
0.1669668406,
0.1920515746,
0.1328712553,
0.1559263617,
-0.4045023322,
-0.1376463324,
0.0323024876,
-0.376919508,
0.0055573806,
-0.3176854253,
0.0546304472,
-0.2702908516,
-0.012081637,
-0.7623516321,
-0.0521201417,
-0.1122781113,
0.066026561,
0.0638750568,
-0.024417324,
0.2227593064,
-0.2470848113,
0.0749819055,
0.2833139896,
-0.3005580604,
-0.2378237098,
-0.0629284754,
-0.0374918953,
0.1896338761,
0.2650880516,
-0.2005773783,
0.2845457792,
-0.1637352407,
0.2106698304,
0.3121518791,
-0.3327308297,
-0.2219263613,
0.6055201888,
0.0193042662,
0.5248498917,
0.0198841766,
-0.2308954895,
-0.0092007201,
0.1884040087,
0.3035949171,
0.4013707638,
0.1422876716,
0.0679153278,
-0.2457052469,
-0.2022636086,
-0.1346423179,
0.3127694726,
0.0487664752,
0.188940227,
0.0995357186,
0.0244783051,
0.2506870925,
-0.1951393038,
-0.0266672354,
0.1624233276,
0.09113314,
0.02821544,
-0.0057260147,
-0.0044113356,
-0.6142939925,
0.1499559879,
-0.0511224791,
0.1092021987,
-0.408085674,
0.0093209231,
-0.2547832131,
0.126067847,
-0.1280753911,
0.1847678423,
0.0374526978,
0.1086536199,
-0.18218714,
0.2108012438,
-0.1838938296,
0.3152323067,
0.1626448035,
0.2816525102,
-0.4834643304,
0.4377064407,
0.2102558166,
-0.1212382987,
0.027118165,
0.185371235,
-0.0978173614,
-0.1626706719,
-0.2391355485,
0.1727548242,
0.1394179314,
0.1797136366,
-0.056277059,
-0.2375709265,
-0.0822837278,
0.083859548,
-0.1951903552,
0.3068771064,
0.2217238694,
-0.0245843641,
-0.0280966461,
0.805208683,
-0.0741070807,
0.4431968629,
-0.0157234408,
-0.0205509197,
0.456171751,
0.061565686,
-0.364153266,
-0.3053401709,
0.2388352603,
0.3186247051,
0.0603673756,
0.0040047891,
-0.3794295788,
-0.1885215193,
0.3982872069,
0.0051799058,
0.2424625605,
0.1532347798,
-0.0953567103,
-0.099672921,
0.0158595871,
0.140178591,
0.2382984757,
0.0758770555,
-0.2070480734,
-0.0434464738,
-0.0409476943,
-0.024745129,
0.1555986106,
0.3065347373,
0.2641780376,
0.0933475718,
0.1558888257,
-0.0209620297,
-0.2815462053,
-0.2380040735,
-0.2863602638,
0.1189388558,
-0.6182571054,
0.2991374433,
-0.4743469357,
0.1188914552,
0.0353333764,
-0.3410823345,
-0.126299873,
-0.3229712546,
-0.3007418513,
0.2734275758,
-0.114748992,
-0.1341669261,
-0.2667236924,
0.3151707649,
-0.0232129171,
-0.3463472426,
-0.2113418728,
-0.011718411,
-0.1846485287,
-0.0234059021,
0.3875864446,
0.1092966199,
0.1544725895,
-0.1289405972,
0.0473137945,
0.1418190002,
-0.0863969028,
0.1482001096,
-0.1994989961,
0.2889932096,
0.2154709548,
0.1969102025,
-0.097852841,
-0.1516464055,
0.2886658013,
0.0957519189,
-0.3427707851,
0.3241927624,
-0.1354989409,
0.0278993677,
-0.1492166668,
-0.0291688349,
0.1219550744,
-0.4392545819,
0.5247157216,
0.2458689511,
0.0581385083,
-0.0170071367,
0.024261402,
0.1799214482,
0.1687064171,
0.0159117598,
-0.1107465252,
-0.1546859443,
0.23265706,
-0.1608326882,
-0.2501762211,
0.0764549151,
-0.1965515465,
0.1685906202,
-0.0865130052,
-0.3909764588,
0.0259427913,
0.0707197785,
0.113656804,
-0.0444037803,
-0.2952396274,
0.0588250048,
-0.012750539,
0.0851903856,
-0.1855715364,
-0.2022251636,
0.1206317171,
-0.0438125804,
0.0216034893,
0.0565146133,
0.7252904773,
-0.094295986,
0.1807755083,
0.3117997944,
-0.0382717587,
0.3949745595,
-0.0264437757,
0.1030091718,
-0.4057943821,
-0.1191254929,
-0.3808178008,
-0.0971131325,
0.0786369219,
0.2193029672,
0.1096424088,
-0.2879477143,
-0.2405598462,
-0.0622840673,
-0.458705008,
-0.3489450216,
0.1333797425,
-0.3543259203,
-0.3382492661,
0.0320334285,
0.2205645293,
-0.0587299727,
-0.058101695,
-0.0303624272,
0.4014145434,
0.2062797546,
-0.045500569,
-0.2057117224,
0.0343682133,
-0.3544536531,
0.3606953919,
0.0746530667,
0.3657509387,
0.1974583417,
-0.0280974675,
0.2447487861,
-0.2093996257,
0.4490725994,
-0.1200107634,
0.0227279458,
0.0280961487,
-0.1236655414,
-0.6418693066,
0.1011511385,
-0.1271311343,
0.2907668054,
0.2359822541,
0.2095478773,
-0.4572591484,
-0.2961417437,
0.1018685997,
-0.1504394412,
-0.1058704257,
-0.1064762697,
-0.3640386164,
-0.2923771143,
-0.2448295206,
-0.1525726616,
0.0274702702,
0.238711223,
0.0874368697,
-0.0987063497,
-0.2664905488,
-0.0690849647,
0.1225851476,
0.2164161801,
0.1880879849,
-0.2173920125,
0.0409797393,
0.0061120326,
0.3643348217,
0.3959255219,
0.8496599197,
0.2561550438,
-0.5346416235,
0.209253028,
-0.0245479438,
0.0420459323,
0.1865961701,
0.0230353661,
0.0835099518,
0.2850645781,
0.1448800266,
-0.2175283134,
-0.1765889078,
0.4804258347,
-0.1738850623,
-0.462118119,
-0.3463932872,
0.4906899035,
-0.1168817654,
0.0213299487,
0.2263396382,
0.2678977251,
-0.1467051059,
0.7589291334,
0.0028832667,
0.7930403948,
0.1487369239,
0.1980528533,
0.722145617,
-0.5317469835,
0.4004819691,
-0.0322305933,
-0.0708862841,
-0.2383533567,
0.5987788439,
-0.1820173562,
-0.1515830457,
-0.0095944759,
0.1925091743,
-0.1030687541,
0.0225749649,
-0.3046784699,
-0.0162520427,
0.0787487626,
0.1285971552,
-0.1141063645,
-0.2810207307,
-0.7139284611,
-0.013921855,
-0.1206340045,
0.0340206139,
-0.0035202035,
-0.3064056635,
-0.2558885813,
-0.1888527423,
-0.3464411497,
0.2579856813,
0.1630946994,
-0.0184751637,
0.2230372578,
-0.0496138036,
0.0946817696,
-0.052479431,
0.2925044596,
-0.093338713,
-0.1754464954,
0.1870107204,
-0.136403814,
-0.0991378203,
-0.0924462378,
-0.0160645843,
0.5005757809,
-0.076882787,
-0.1589540988,
-0.2050986439,
-0.2627161145,
-0.5380346179,
0.2646923363,
0.4163653553,
-0.3466080725,
-0.2409762591,
-0.3931148052,
-0.0475278683,
0.2723073959,
-0.1570667028,
0.0498478115,
0.2624672651,
0.1839358211,
-0.0674590543,
0.2908507288,
-0.3609032929,
-0.1087288335,
0.3222661614,
-0.035309758,
0.0564953759,
0.5033448935,
0.28622967,
-0.2179954201,
-0.1904616356,
0.2036409229,
0.8105611801,
-0.6269248128,
0.306525588,
-0.1730775386,
-0.0535797738,
-0.0472414233,
0.3028697073,
0.0699546561,
-0.0232218876,
0.0566212721,
-0.6213237643,
-0.1062004939,
0.4122470319,
-0.1543130577,
-0.0214454606,
0.1351440996,
-0.0169346463,
-0.2405515462,
-0.1720615774,
-0.1729355901,
0.2192621529,
-0.157630071,
-0.2045776844,
-0.3086435795,
0.0632047355,
0.5788154006,
0.0068062176,
0.0865863115,
0.0817479342,
-0.1436323076,
-0.0885987282,
-0.3009876609,
0.2072960734,
0.1043562815,
-0.0927104354,
-0.0784606487,
0.0101221818,
-0.1790237576,
-0.1357485503,
0.2507114708,
0.2667547166,
-0.0477175191,
-0.1331558824,
0.0813500509,
0.1524970978,
-0.2447348535,
0.1382138431,
-0.1590838879,
0.5401738882,
0.0858469978,
-0.0476722196,
-0.2291522324,
0.1443037242,
-0.2354620099,
0.2881272733,
0.2030767947,
0.2164717466,
0.4846535623,
-0.4272494912,
0.0382829048,
-0.2070928663,
0.097607471,
0.3163168728,
-0.2574581802,
0.0504575856,
-0.1622022539,
0.0547887273,
0.0131523544,
0.0525103696,
0.1396278888,
-0.0389828235,
0.0427070558,
0.3336888254,
-0.1388190091,
0.0428311341,
-0.233440578,
0.0458439477,
0.4255112708,
0.1589772701,
0.0510134622,
0.2905640602,
-0.2684133351,
0.0809300095,
0.0158536173,
0.1407577097,
0.2980787754,
-0.0071149487,
0.0680877268,
0.0217249729,
0.1491241157,
0.242313996,
0.000527641,
-0.4159059227,
-0.0420819484,
0.3158298135,
-0.0500426441,
0.3092297614,
0.1688639522,
0.3333729804,
-0.1892768294,
0.0969854742,
-0.4036624134,
-0.1670232415,
-0.0538141318,
-0.2211983949,
-0.5511420965,
-0.2069525719,
-0.3715271354,
-0.1109168679,
-0.1350995451,
-0.0615069121,
-0.2741715908,
0.18862243,
0.050345365,
-0.3303629458,
0.0814074501,
-0.1955389827,
0.204169035,
-0.1523470134,
0.2263706028,
-0.0093278112,
0.0362452045,
0.3188802898,
0.0760147572,
0.5093174577,
0.2283810079,
-0.0963346884,
-0.2487948537,
-0.0241238102,
-0.1421785355,
0.0403777473,
0.3468791544,
0.1857324243,
0.0395645872,
0.2420819402,
0.1516419202,
-0.113323234,
0.3565613329,
0.0022537354,
0.2634564936,
-0.0992486551,
0.5178783536,
-0.467659086,
0.1000935063,
-0.1672316343,
-0.3525444865,
-0.1460465491,
-0.3188264966,
-0.1780046672,
-0.194589898,
-0.023563683,
-0.0586972274,
0.0232759118,
-0.0869169459,
0.4179296196,
0.394970119,
0.1819572449,
0.1531837136,
-0.0330796316,
-0.2972987294,
0.2351236492,
-0.1318950504,
0.0307580233,
0.2157548219,
0.2165424079,
0.0767683387,
0.172640264,
0.0412499495,
0.0387746803,
0.0111105768,
0.2165727764,
-0.243310228,
-0.0609750114,
0.2753143907,
0.017352812,
-0.1357740611,
-0.2809372544,
-0.0888741538,
-0.058575131,
-0.0598329306,
0.1518499255,
-0.0595390499,
-0.0654159337,
-0.1698687971,
0.4425503612,
0.132435903,
0.201108411,
-0.0575091317,
-0.4760099649,
-0.2689436376,
-0.4144521058,
-0.1308503598,
0.3707847297,
-0.1804433614,
0.6111343503,
0.034223415,
0.1484050453,
-0.0185194183,
-0.0448635109,
-0.1875067055,
-0.0982181132,
-0.5277870893,
0.293900162,
-0.3957844377,
0.1447348148,
-0.131557107,
0.105731912,
0.1239853725,
0.1936317086,
-0.0772353411,
-0.2317138016,
0.4982316196,
-0.2602383494,
-0.3133600354,
0.2727927566,
0.0889144838,
-0.1325902939,
-0.2973822355,
-0.6104028821,
0.0109965438,
0.2189055979,
0.0305514205,
-0.217826277,
-0.1124497354,
-0.1242608428,
-0.0546770953,
-0.1363347471,
0.2223986387,
0.0136691667,
-0.113807179,
0.1441099495,
-0.1869695187
] |
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.0681873858,
0.1841620356,
0.0364154391,
0.378070116,
0.2355371118,
-0.0062701493,
0.4846676886,
0.3670632541,
0.4180770516,
-0.0028390361,
0.0605550855,
0.5898873806,
0.0276205242,
-0.1488580108,
-0.2172114253,
-0.1838724762,
0.0313556641,
0.1905163974,
0.1274460852,
0.0285851005,
-0.312232703,
0.294205904,
-0.2148162723,
0.1017739326,
-0.0391270779,
-0.0952268541,
0.1041621715,
0.3933391571,
-0.126419276,
-0.3826465607,
0.4134063721,
-0.0130349994,
0.2161163539,
0.5308529139,
-0.0001203599,
0.1964654922,
0.4152527153,
-0.0924445242,
-0.2868116796,
-0.4780592322,
-0.2790301442,
-0.3253921866,
0.5374760628,
-0.1200379953,
0.1052052006,
-0.2437470257,
-0.0497696139,
-0.2207817584,
0.6015405059,
0.2307226956,
0.1048027202,
0.4299396276,
0.0260291677,
0.0192189757,
0.0637281314,
0.2108370215,
-0.1217759252,
0.4542042613,
0.008248481,
0.1270529181,
-0.1715969741,
-0.0036358046,
-0.1026413739,
0.1538670212,
0.2191226035,
0.0476009734,
-0.1704019904,
0.0818347409,
0.0492498018,
0.2946319878,
0.2845769227,
-0.0508807413,
-0.4122374058,
-0.3489956558,
-0.1207851022,
0.1302724779,
0.2388219535,
0.2473597378,
-0.1509172171,
0.1259339899,
0.0328826346,
-0.0184717719,
-0.274196893,
0.2383802086,
0.0036438282,
0.0111868996,
-0.1582195759,
0.1072917655,
-0.1295858026,
-0.0208246578,
-0.1499338299,
-0.2244824916,
-0.3057589233,
0.1283779889,
0.0374988206,
0.1160042658,
-0.0355976447,
-0.4100777209,
0.2355837673,
0.3558476269,
0.3206707239,
0.2080192119,
-0.2673654556,
0.2078463286,
0.5903255343,
0.2016133517,
-0.0549013428,
0.0114983907,
0.2564994097,
0.330513984,
0.060729824,
-0.0435532071,
-0.2637993395,
-0.1108330861,
0.0103773009,
-0.1974509358,
0.3086810112,
-0.1726260036,
-0.223853156,
0.0755630434,
-0.6134247184,
-0.057320971,
-0.0002185348,
0.3672919273,
-0.1971875131,
0.4987776577,
0.2744283378,
0.4868384302,
0.0442170911,
0.0317275114,
-0.1022381559,
-0.0353483744,
-0.1634833217,
-0.2962278426,
0.2371663153,
0.0525440536,
0.0861051753,
0.1265181005,
-0.0630017444,
-0.4126388431,
-0.0742599443,
0.0477152914,
-0.0974051654,
0.1669668406,
0.1920515746,
0.1328712553,
0.1559263617,
-0.4045023322,
-0.1376463324,
0.0323024876,
-0.376919508,
0.0055573806,
-0.3176854253,
0.0546304472,
-0.2702908516,
-0.012081637,
-0.7623516321,
-0.0521201417,
-0.1122781113,
0.066026561,
0.0638750568,
-0.024417324,
0.2227593064,
-0.2470848113,
0.0749819055,
0.2833139896,
-0.3005580604,
-0.2378237098,
-0.0629284754,
-0.0374918953,
0.1896338761,
0.2650880516,
-0.2005773783,
0.2845457792,
-0.1637352407,
0.2106698304,
0.3121518791,
-0.3327308297,
-0.2219263613,
0.6055201888,
0.0193042662,
0.5248498917,
0.0198841766,
-0.2308954895,
-0.0092007201,
0.1884040087,
0.3035949171,
0.4013707638,
0.1422876716,
0.0679153278,
-0.2457052469,
-0.2022636086,
-0.1346423179,
0.3127694726,
0.0487664752,
0.188940227,
0.0995357186,
0.0244783051,
0.2506870925,
-0.1951393038,
-0.0266672354,
0.1624233276,
0.09113314,
0.02821544,
-0.0057260147,
-0.0044113356,
-0.6142939925,
0.1499559879,
-0.0511224791,
0.1092021987,
-0.408085674,
0.0093209231,
-0.2547832131,
0.126067847,
-0.1280753911,
0.1847678423,
0.0374526978,
0.1086536199,
-0.18218714,
0.2108012438,
-0.1838938296,
0.3152323067,
0.1626448035,
0.2816525102,
-0.4834643304,
0.4377064407,
0.2102558166,
-0.1212382987,
0.027118165,
0.185371235,
-0.0978173614,
-0.1626706719,
-0.2391355485,
0.1727548242,
0.1394179314,
0.1797136366,
-0.056277059,
-0.2375709265,
-0.0822837278,
0.083859548,
-0.1951903552,
0.3068771064,
0.2217238694,
-0.0245843641,
-0.0280966461,
0.805208683,
-0.0741070807,
0.4431968629,
-0.0157234408,
-0.0205509197,
0.456171751,
0.061565686,
-0.364153266,
-0.3053401709,
0.2388352603,
0.3186247051,
0.0603673756,
0.0040047891,
-0.3794295788,
-0.1885215193,
0.3982872069,
0.0051799058,
0.2424625605,
0.1532347798,
-0.0953567103,
-0.099672921,
0.0158595871,
0.140178591,
0.2382984757,
0.0758770555,
-0.2070480734,
-0.0434464738,
-0.0409476943,
-0.024745129,
0.1555986106,
0.3065347373,
0.2641780376,
0.0933475718,
0.1558888257,
-0.0209620297,
-0.2815462053,
-0.2380040735,
-0.2863602638,
0.1189388558,
-0.6182571054,
0.2991374433,
-0.4743469357,
0.1188914552,
0.0353333764,
-0.3410823345,
-0.126299873,
-0.3229712546,
-0.3007418513,
0.2734275758,
-0.114748992,
-0.1341669261,
-0.2667236924,
0.3151707649,
-0.0232129171,
-0.3463472426,
-0.2113418728,
-0.011718411,
-0.1846485287,
-0.0234059021,
0.3875864446,
0.1092966199,
0.1544725895,
-0.1289405972,
0.0473137945,
0.1418190002,
-0.0863969028,
0.1482001096,
-0.1994989961,
0.2889932096,
0.2154709548,
0.1969102025,
-0.097852841,
-0.1516464055,
0.2886658013,
0.0957519189,
-0.3427707851,
0.3241927624,
-0.1354989409,
0.0278993677,
-0.1492166668,
-0.0291688349,
0.1219550744,
-0.4392545819,
0.5247157216,
0.2458689511,
0.0581385083,
-0.0170071367,
0.024261402,
0.1799214482,
0.1687064171,
0.0159117598,
-0.1107465252,
-0.1546859443,
0.23265706,
-0.1608326882,
-0.2501762211,
0.0764549151,
-0.1965515465,
0.1685906202,
-0.0865130052,
-0.3909764588,
0.0259427913,
0.0707197785,
0.113656804,
-0.0444037803,
-0.2952396274,
0.0588250048,
-0.012750539,
0.0851903856,
-0.1855715364,
-0.2022251636,
0.1206317171,
-0.0438125804,
0.0216034893,
0.0565146133,
0.7252904773,
-0.094295986,
0.1807755083,
0.3117997944,
-0.0382717587,
0.3949745595,
-0.0264437757,
0.1030091718,
-0.4057943821,
-0.1191254929,
-0.3808178008,
-0.0971131325,
0.0786369219,
0.2193029672,
0.1096424088,
-0.2879477143,
-0.2405598462,
-0.0622840673,
-0.458705008,
-0.3489450216,
0.1333797425,
-0.3543259203,
-0.3382492661,
0.0320334285,
0.2205645293,
-0.0587299727,
-0.058101695,
-0.0303624272,
0.4014145434,
0.2062797546,
-0.045500569,
-0.2057117224,
0.0343682133,
-0.3544536531,
0.3606953919,
0.0746530667,
0.3657509387,
0.1974583417,
-0.0280974675,
0.2447487861,
-0.2093996257,
0.4490725994,
-0.1200107634,
0.0227279458,
0.0280961487,
-0.1236655414,
-0.6418693066,
0.1011511385,
-0.1271311343,
0.2907668054,
0.2359822541,
0.2095478773,
-0.4572591484,
-0.2961417437,
0.1018685997,
-0.1504394412,
-0.1058704257,
-0.1064762697,
-0.3640386164,
-0.2923771143,
-0.2448295206,
-0.1525726616,
0.0274702702,
0.238711223,
0.0874368697,
-0.0987063497,
-0.2664905488,
-0.0690849647,
0.1225851476,
0.2164161801,
0.1880879849,
-0.2173920125,
0.0409797393,
0.0061120326,
0.3643348217,
0.3959255219,
0.8496599197,
0.2561550438,
-0.5346416235,
0.209253028,
-0.0245479438,
0.0420459323,
0.1865961701,
0.0230353661,
0.0835099518,
0.2850645781,
0.1448800266,
-0.2175283134,
-0.1765889078,
0.4804258347,
-0.1738850623,
-0.462118119,
-0.3463932872,
0.4906899035,
-0.1168817654,
0.0213299487,
0.2263396382,
0.2678977251,
-0.1467051059,
0.7589291334,
0.0028832667,
0.7930403948,
0.1487369239,
0.1980528533,
0.722145617,
-0.5317469835,
0.4004819691,
-0.0322305933,
-0.0708862841,
-0.2383533567,
0.5987788439,
-0.1820173562,
-0.1515830457,
-0.0095944759,
0.1925091743,
-0.1030687541,
0.0225749649,
-0.3046784699,
-0.0162520427,
0.0787487626,
0.1285971552,
-0.1141063645,
-0.2810207307,
-0.7139284611,
-0.013921855,
-0.1206340045,
0.0340206139,
-0.0035202035,
-0.3064056635,
-0.2558885813,
-0.1888527423,
-0.3464411497,
0.2579856813,
0.1630946994,
-0.0184751637,
0.2230372578,
-0.0496138036,
0.0946817696,
-0.052479431,
0.2925044596,
-0.093338713,
-0.1754464954,
0.1870107204,
-0.136403814,
-0.0991378203,
-0.0924462378,
-0.0160645843,
0.5005757809,
-0.076882787,
-0.1589540988,
-0.2050986439,
-0.2627161145,
-0.5380346179,
0.2646923363,
0.4163653553,
-0.3466080725,
-0.2409762591,
-0.3931148052,
-0.0475278683,
0.2723073959,
-0.1570667028,
0.0498478115,
0.2624672651,
0.1839358211,
-0.0674590543,
0.2908507288,
-0.3609032929,
-0.1087288335,
0.3222661614,
-0.035309758,
0.0564953759,
0.5033448935,
0.28622967,
-0.2179954201,
-0.1904616356,
0.2036409229,
0.8105611801,
-0.6269248128,
0.306525588,
-0.1730775386,
-0.0535797738,
-0.0472414233,
0.3028697073,
0.0699546561,
-0.0232218876,
0.0566212721,
-0.6213237643,
-0.1062004939,
0.4122470319,
-0.1543130577,
-0.0214454606,
0.1351440996,
-0.0169346463,
-0.2405515462,
-0.1720615774,
-0.1729355901,
0.2192621529,
-0.157630071,
-0.2045776844,
-0.3086435795,
0.0632047355,
0.5788154006,
0.0068062176,
0.0865863115,
0.0817479342,
-0.1436323076,
-0.0885987282,
-0.3009876609,
0.2072960734,
0.1043562815,
-0.0927104354,
-0.0784606487,
0.0101221818,
-0.1790237576,
-0.1357485503,
0.2507114708,
0.2667547166,
-0.0477175191,
-0.1331558824,
0.0813500509,
0.1524970978,
-0.2447348535,
0.1382138431,
-0.1590838879,
0.5401738882,
0.0858469978,
-0.0476722196,
-0.2291522324,
0.1443037242,
-0.2354620099,
0.2881272733,
0.2030767947,
0.2164717466,
0.4846535623,
-0.4272494912,
0.0382829048,
-0.2070928663,
0.097607471,
0.3163168728,
-0.2574581802,
0.0504575856,
-0.1622022539,
0.0547887273,
0.0131523544,
0.0525103696,
0.1396278888,
-0.0389828235,
0.0427070558,
0.3336888254,
-0.1388190091,
0.0428311341,
-0.233440578,
0.0458439477,
0.4255112708,
0.1589772701,
0.0510134622,
0.2905640602,
-0.2684133351,
0.0809300095,
0.0158536173,
0.1407577097,
0.2980787754,
-0.0071149487,
0.0680877268,
0.0217249729,
0.1491241157,
0.242313996,
0.000527641,
-0.4159059227,
-0.0420819484,
0.3158298135,
-0.0500426441,
0.3092297614,
0.1688639522,
0.3333729804,
-0.1892768294,
0.0969854742,
-0.4036624134,
-0.1670232415,
-0.0538141318,
-0.2211983949,
-0.5511420965,
-0.2069525719,
-0.3715271354,
-0.1109168679,
-0.1350995451,
-0.0615069121,
-0.2741715908,
0.18862243,
0.050345365,
-0.3303629458,
0.0814074501,
-0.1955389827,
0.204169035,
-0.1523470134,
0.2263706028,
-0.0093278112,
0.0362452045,
0.3188802898,
0.0760147572,
0.5093174577,
0.2283810079,
-0.0963346884,
-0.2487948537,
-0.0241238102,
-0.1421785355,
0.0403777473,
0.3468791544,
0.1857324243,
0.0395645872,
0.2420819402,
0.1516419202,
-0.113323234,
0.3565613329,
0.0022537354,
0.2634564936,
-0.0992486551,
0.5178783536,
-0.467659086,
0.1000935063,
-0.1672316343,
-0.3525444865,
-0.1460465491,
-0.3188264966,
-0.1780046672,
-0.194589898,
-0.023563683,
-0.0586972274,
0.0232759118,
-0.0869169459,
0.4179296196,
0.394970119,
0.1819572449,
0.1531837136,
-0.0330796316,
-0.2972987294,
0.2351236492,
-0.1318950504,
0.0307580233,
0.2157548219,
0.2165424079,
0.0767683387,
0.172640264,
0.0412499495,
0.0387746803,
0.0111105768,
0.2165727764,
-0.243310228,
-0.0609750114,
0.2753143907,
0.017352812,
-0.1357740611,
-0.2809372544,
-0.0888741538,
-0.058575131,
-0.0598329306,
0.1518499255,
-0.0595390499,
-0.0654159337,
-0.1698687971,
0.4425503612,
0.132435903,
0.201108411,
-0.0575091317,
-0.4760099649,
-0.2689436376,
-0.4144521058,
-0.1308503598,
0.3707847297,
-0.1804433614,
0.6111343503,
0.034223415,
0.1484050453,
-0.0185194183,
-0.0448635109,
-0.1875067055,
-0.0982181132,
-0.5277870893,
0.293900162,
-0.3957844377,
0.1447348148,
-0.131557107,
0.105731912,
0.1239853725,
0.1936317086,
-0.0772353411,
-0.2317138016,
0.4982316196,
-0.2602383494,
-0.3133600354,
0.2727927566,
0.0889144838,
-0.1325902939,
-0.2973822355,
-0.6104028821,
0.0109965438,
0.2189055979,
0.0305514205,
-0.217826277,
-0.1124497354,
-0.1242608428,
-0.0546770953,
-0.1363347471,
0.2223986387,
0.0136691667,
-0.113807179,
0.1441099495,
-0.1869695187
] |
https://github.com/huggingface/datasets/issues/2799 | Loading JSON throws ArrowNotImplementedError | @albertvillanova @lhoestq I noticed the same issue using datasets v1.12.1. Is there an update on when this could be fixed? | ## 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
| 20 | 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
@albertvillanova @lhoestq I noticed the same issue using datasets v1.12.1. Is there an update on when this could be fixed? | [
-0.0681873858,
0.1841620356,
0.0364154391,
0.378070116,
0.2355371118,
-0.0062701493,
0.4846676886,
0.3670632541,
0.4180770516,
-0.0028390361,
0.0605550855,
0.5898873806,
0.0276205242,
-0.1488580108,
-0.2172114253,
-0.1838724762,
0.0313556641,
0.1905163974,
0.1274460852,
0.0285851005,
-0.312232703,
0.294205904,
-0.2148162723,
0.1017739326,
-0.0391270779,
-0.0952268541,
0.1041621715,
0.3933391571,
-0.126419276,
-0.3826465607,
0.4134063721,
-0.0130349994,
0.2161163539,
0.5308529139,
-0.0001203599,
0.1964654922,
0.4152527153,
-0.0924445242,
-0.2868116796,
-0.4780592322,
-0.2790301442,
-0.3253921866,
0.5374760628,
-0.1200379953,
0.1052052006,
-0.2437470257,
-0.0497696139,
-0.2207817584,
0.6015405059,
0.2307226956,
0.1048027202,
0.4299396276,
0.0260291677,
0.0192189757,
0.0637281314,
0.2108370215,
-0.1217759252,
0.4542042613,
0.008248481,
0.1270529181,
-0.1715969741,
-0.0036358046,
-0.1026413739,
0.1538670212,
0.2191226035,
0.0476009734,
-0.1704019904,
0.0818347409,
0.0492498018,
0.2946319878,
0.2845769227,
-0.0508807413,
-0.4122374058,
-0.3489956558,
-0.1207851022,
0.1302724779,
0.2388219535,
0.2473597378,
-0.1509172171,
0.1259339899,
0.0328826346,
-0.0184717719,
-0.274196893,
0.2383802086,
0.0036438282,
0.0111868996,
-0.1582195759,
0.1072917655,
-0.1295858026,
-0.0208246578,
-0.1499338299,
-0.2244824916,
-0.3057589233,
0.1283779889,
0.0374988206,
0.1160042658,
-0.0355976447,
-0.4100777209,
0.2355837673,
0.3558476269,
0.3206707239,
0.2080192119,
-0.2673654556,
0.2078463286,
0.5903255343,
0.2016133517,
-0.0549013428,
0.0114983907,
0.2564994097,
0.330513984,
0.060729824,
-0.0435532071,
-0.2637993395,
-0.1108330861,
0.0103773009,
-0.1974509358,
0.3086810112,
-0.1726260036,
-0.223853156,
0.0755630434,
-0.6134247184,
-0.057320971,
-0.0002185348,
0.3672919273,
-0.1971875131,
0.4987776577,
0.2744283378,
0.4868384302,
0.0442170911,
0.0317275114,
-0.1022381559,
-0.0353483744,
-0.1634833217,
-0.2962278426,
0.2371663153,
0.0525440536,
0.0861051753,
0.1265181005,
-0.0630017444,
-0.4126388431,
-0.0742599443,
0.0477152914,
-0.0974051654,
0.1669668406,
0.1920515746,
0.1328712553,
0.1559263617,
-0.4045023322,
-0.1376463324,
0.0323024876,
-0.376919508,
0.0055573806,
-0.3176854253,
0.0546304472,
-0.2702908516,
-0.012081637,
-0.7623516321,
-0.0521201417,
-0.1122781113,
0.066026561,
0.0638750568,
-0.024417324,
0.2227593064,
-0.2470848113,
0.0749819055,
0.2833139896,
-0.3005580604,
-0.2378237098,
-0.0629284754,
-0.0374918953,
0.1896338761,
0.2650880516,
-0.2005773783,
0.2845457792,
-0.1637352407,
0.2106698304,
0.3121518791,
-0.3327308297,
-0.2219263613,
0.6055201888,
0.0193042662,
0.5248498917,
0.0198841766,
-0.2308954895,
-0.0092007201,
0.1884040087,
0.3035949171,
0.4013707638,
0.1422876716,
0.0679153278,
-0.2457052469,
-0.2022636086,
-0.1346423179,
0.3127694726,
0.0487664752,
0.188940227,
0.0995357186,
0.0244783051,
0.2506870925,
-0.1951393038,
-0.0266672354,
0.1624233276,
0.09113314,
0.02821544,
-0.0057260147,
-0.0044113356,
-0.6142939925,
0.1499559879,
-0.0511224791,
0.1092021987,
-0.408085674,
0.0093209231,
-0.2547832131,
0.126067847,
-0.1280753911,
0.1847678423,
0.0374526978,
0.1086536199,
-0.18218714,
0.2108012438,
-0.1838938296,
0.3152323067,
0.1626448035,
0.2816525102,
-0.4834643304,
0.4377064407,
0.2102558166,
-0.1212382987,
0.027118165,
0.185371235,
-0.0978173614,
-0.1626706719,
-0.2391355485,
0.1727548242,
0.1394179314,
0.1797136366,
-0.056277059,
-0.2375709265,
-0.0822837278,
0.083859548,
-0.1951903552,
0.3068771064,
0.2217238694,
-0.0245843641,
-0.0280966461,
0.805208683,
-0.0741070807,
0.4431968629,
-0.0157234408,
-0.0205509197,
0.456171751,
0.061565686,
-0.364153266,
-0.3053401709,
0.2388352603,
0.3186247051,
0.0603673756,
0.0040047891,
-0.3794295788,
-0.1885215193,
0.3982872069,
0.0051799058,
0.2424625605,
0.1532347798,
-0.0953567103,
-0.099672921,
0.0158595871,
0.140178591,
0.2382984757,
0.0758770555,
-0.2070480734,
-0.0434464738,
-0.0409476943,
-0.024745129,
0.1555986106,
0.3065347373,
0.2641780376,
0.0933475718,
0.1558888257,
-0.0209620297,
-0.2815462053,
-0.2380040735,
-0.2863602638,
0.1189388558,
-0.6182571054,
0.2991374433,
-0.4743469357,
0.1188914552,
0.0353333764,
-0.3410823345,
-0.126299873,
-0.3229712546,
-0.3007418513,
0.2734275758,
-0.114748992,
-0.1341669261,
-0.2667236924,
0.3151707649,
-0.0232129171,
-0.3463472426,
-0.2113418728,
-0.011718411,
-0.1846485287,
-0.0234059021,
0.3875864446,
0.1092966199,
0.1544725895,
-0.1289405972,
0.0473137945,
0.1418190002,
-0.0863969028,
0.1482001096,
-0.1994989961,
0.2889932096,
0.2154709548,
0.1969102025,
-0.097852841,
-0.1516464055,
0.2886658013,
0.0957519189,
-0.3427707851,
0.3241927624,
-0.1354989409,
0.0278993677,
-0.1492166668,
-0.0291688349,
0.1219550744,
-0.4392545819,
0.5247157216,
0.2458689511,
0.0581385083,
-0.0170071367,
0.024261402,
0.1799214482,
0.1687064171,
0.0159117598,
-0.1107465252,
-0.1546859443,
0.23265706,
-0.1608326882,
-0.2501762211,
0.0764549151,
-0.1965515465,
0.1685906202,
-0.0865130052,
-0.3909764588,
0.0259427913,
0.0707197785,
0.113656804,
-0.0444037803,
-0.2952396274,
0.0588250048,
-0.012750539,
0.0851903856,
-0.1855715364,
-0.2022251636,
0.1206317171,
-0.0438125804,
0.0216034893,
0.0565146133,
0.7252904773,
-0.094295986,
0.1807755083,
0.3117997944,
-0.0382717587,
0.3949745595,
-0.0264437757,
0.1030091718,
-0.4057943821,
-0.1191254929,
-0.3808178008,
-0.0971131325,
0.0786369219,
0.2193029672,
0.1096424088,
-0.2879477143,
-0.2405598462,
-0.0622840673,
-0.458705008,
-0.3489450216,
0.1333797425,
-0.3543259203,
-0.3382492661,
0.0320334285,
0.2205645293,
-0.0587299727,
-0.058101695,
-0.0303624272,
0.4014145434,
0.2062797546,
-0.045500569,
-0.2057117224,
0.0343682133,
-0.3544536531,
0.3606953919,
0.0746530667,
0.3657509387,
0.1974583417,
-0.0280974675,
0.2447487861,
-0.2093996257,
0.4490725994,
-0.1200107634,
0.0227279458,
0.0280961487,
-0.1236655414,
-0.6418693066,
0.1011511385,
-0.1271311343,
0.2907668054,
0.2359822541,
0.2095478773,
-0.4572591484,
-0.2961417437,
0.1018685997,
-0.1504394412,
-0.1058704257,
-0.1064762697,
-0.3640386164,
-0.2923771143,
-0.2448295206,
-0.1525726616,
0.0274702702,
0.238711223,
0.0874368697,
-0.0987063497,
-0.2664905488,
-0.0690849647,
0.1225851476,
0.2164161801,
0.1880879849,
-0.2173920125,
0.0409797393,
0.0061120326,
0.3643348217,
0.3959255219,
0.8496599197,
0.2561550438,
-0.5346416235,
0.209253028,
-0.0245479438,
0.0420459323,
0.1865961701,
0.0230353661,
0.0835099518,
0.2850645781,
0.1448800266,
-0.2175283134,
-0.1765889078,
0.4804258347,
-0.1738850623,
-0.462118119,
-0.3463932872,
0.4906899035,
-0.1168817654,
0.0213299487,
0.2263396382,
0.2678977251,
-0.1467051059,
0.7589291334,
0.0028832667,
0.7930403948,
0.1487369239,
0.1980528533,
0.722145617,
-0.5317469835,
0.4004819691,
-0.0322305933,
-0.0708862841,
-0.2383533567,
0.5987788439,
-0.1820173562,
-0.1515830457,
-0.0095944759,
0.1925091743,
-0.1030687541,
0.0225749649,
-0.3046784699,
-0.0162520427,
0.0787487626,
0.1285971552,
-0.1141063645,
-0.2810207307,
-0.7139284611,
-0.013921855,
-0.1206340045,
0.0340206139,
-0.0035202035,
-0.3064056635,
-0.2558885813,
-0.1888527423,
-0.3464411497,
0.2579856813,
0.1630946994,
-0.0184751637,
0.2230372578,
-0.0496138036,
0.0946817696,
-0.052479431,
0.2925044596,
-0.093338713,
-0.1754464954,
0.1870107204,
-0.136403814,
-0.0991378203,
-0.0924462378,
-0.0160645843,
0.5005757809,
-0.076882787,
-0.1589540988,
-0.2050986439,
-0.2627161145,
-0.5380346179,
0.2646923363,
0.4163653553,
-0.3466080725,
-0.2409762591,
-0.3931148052,
-0.0475278683,
0.2723073959,
-0.1570667028,
0.0498478115,
0.2624672651,
0.1839358211,
-0.0674590543,
0.2908507288,
-0.3609032929,
-0.1087288335,
0.3222661614,
-0.035309758,
0.0564953759,
0.5033448935,
0.28622967,
-0.2179954201,
-0.1904616356,
0.2036409229,
0.8105611801,
-0.6269248128,
0.306525588,
-0.1730775386,
-0.0535797738,
-0.0472414233,
0.3028697073,
0.0699546561,
-0.0232218876,
0.0566212721,
-0.6213237643,
-0.1062004939,
0.4122470319,
-0.1543130577,
-0.0214454606,
0.1351440996,
-0.0169346463,
-0.2405515462,
-0.1720615774,
-0.1729355901,
0.2192621529,
-0.157630071,
-0.2045776844,
-0.3086435795,
0.0632047355,
0.5788154006,
0.0068062176,
0.0865863115,
0.0817479342,
-0.1436323076,
-0.0885987282,
-0.3009876609,
0.2072960734,
0.1043562815,
-0.0927104354,
-0.0784606487,
0.0101221818,
-0.1790237576,
-0.1357485503,
0.2507114708,
0.2667547166,
-0.0477175191,
-0.1331558824,
0.0813500509,
0.1524970978,
-0.2447348535,
0.1382138431,
-0.1590838879,
0.5401738882,
0.0858469978,
-0.0476722196,
-0.2291522324,
0.1443037242,
-0.2354620099,
0.2881272733,
0.2030767947,
0.2164717466,
0.4846535623,
-0.4272494912,
0.0382829048,
-0.2070928663,
0.097607471,
0.3163168728,
-0.2574581802,
0.0504575856,
-0.1622022539,
0.0547887273,
0.0131523544,
0.0525103696,
0.1396278888,
-0.0389828235,
0.0427070558,
0.3336888254,
-0.1388190091,
0.0428311341,
-0.233440578,
0.0458439477,
0.4255112708,
0.1589772701,
0.0510134622,
0.2905640602,
-0.2684133351,
0.0809300095,
0.0158536173,
0.1407577097,
0.2980787754,
-0.0071149487,
0.0680877268,
0.0217249729,
0.1491241157,
0.242313996,
0.000527641,
-0.4159059227,
-0.0420819484,
0.3158298135,
-0.0500426441,
0.3092297614,
0.1688639522,
0.3333729804,
-0.1892768294,
0.0969854742,
-0.4036624134,
-0.1670232415,
-0.0538141318,
-0.2211983949,
-0.5511420965,
-0.2069525719,
-0.3715271354,
-0.1109168679,
-0.1350995451,
-0.0615069121,
-0.2741715908,
0.18862243,
0.050345365,
-0.3303629458,
0.0814074501,
-0.1955389827,
0.204169035,
-0.1523470134,
0.2263706028,
-0.0093278112,
0.0362452045,
0.3188802898,
0.0760147572,
0.5093174577,
0.2283810079,
-0.0963346884,
-0.2487948537,
-0.0241238102,
-0.1421785355,
0.0403777473,
0.3468791544,
0.1857324243,
0.0395645872,
0.2420819402,
0.1516419202,
-0.113323234,
0.3565613329,
0.0022537354,
0.2634564936,
-0.0992486551,
0.5178783536,
-0.467659086,
0.1000935063,
-0.1672316343,
-0.3525444865,
-0.1460465491,
-0.3188264966,
-0.1780046672,
-0.194589898,
-0.023563683,
-0.0586972274,
0.0232759118,
-0.0869169459,
0.4179296196,
0.394970119,
0.1819572449,
0.1531837136,
-0.0330796316,
-0.2972987294,
0.2351236492,
-0.1318950504,
0.0307580233,
0.2157548219,
0.2165424079,
0.0767683387,
0.172640264,
0.0412499495,
0.0387746803,
0.0111105768,
0.2165727764,
-0.243310228,
-0.0609750114,
0.2753143907,
0.017352812,
-0.1357740611,
-0.2809372544,
-0.0888741538,
-0.058575131,
-0.0598329306,
0.1518499255,
-0.0595390499,
-0.0654159337,
-0.1698687971,
0.4425503612,
0.132435903,
0.201108411,
-0.0575091317,
-0.4760099649,
-0.2689436376,
-0.4144521058,
-0.1308503598,
0.3707847297,
-0.1804433614,
0.6111343503,
0.034223415,
0.1484050453,
-0.0185194183,
-0.0448635109,
-0.1875067055,
-0.0982181132,
-0.5277870893,
0.293900162,
-0.3957844377,
0.1447348148,
-0.131557107,
0.105731912,
0.1239853725,
0.1936317086,
-0.0772353411,
-0.2317138016,
0.4982316196,
-0.2602383494,
-0.3133600354,
0.2727927566,
0.0889144838,
-0.1325902939,
-0.2973822355,
-0.6104028821,
0.0109965438,
0.2189055979,
0.0305514205,
-0.217826277,
-0.1124497354,
-0.1242608428,
-0.0546770953,
-0.1363347471,
0.2223986387,
0.0136691667,
-0.113807179,
0.1441099495,
-0.1869695187
] |
https://github.com/huggingface/datasets/issues/2799 | Loading JSON throws ArrowNotImplementedError | Apparently it's possible to make it work by increasing the `block_size`, let me open a PR | ## 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
| 16 | 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
Apparently it's possible to make it work by increasing the `block_size`, let me open a PR | [
-0.0681873858,
0.1841620356,
0.0364154391,
0.378070116,
0.2355371118,
-0.0062701493,
0.4846676886,
0.3670632541,
0.4180770516,
-0.0028390361,
0.0605550855,
0.5898873806,
0.0276205242,
-0.1488580108,
-0.2172114253,
-0.1838724762,
0.0313556641,
0.1905163974,
0.1274460852,
0.0285851005,
-0.312232703,
0.294205904,
-0.2148162723,
0.1017739326,
-0.0391270779,
-0.0952268541,
0.1041621715,
0.3933391571,
-0.126419276,
-0.3826465607,
0.4134063721,
-0.0130349994,
0.2161163539,
0.5308529139,
-0.0001203599,
0.1964654922,
0.4152527153,
-0.0924445242,
-0.2868116796,
-0.4780592322,
-0.2790301442,
-0.3253921866,
0.5374760628,
-0.1200379953,
0.1052052006,
-0.2437470257,
-0.0497696139,
-0.2207817584,
0.6015405059,
0.2307226956,
0.1048027202,
0.4299396276,
0.0260291677,
0.0192189757,
0.0637281314,
0.2108370215,
-0.1217759252,
0.4542042613,
0.008248481,
0.1270529181,
-0.1715969741,
-0.0036358046,
-0.1026413739,
0.1538670212,
0.2191226035,
0.0476009734,
-0.1704019904,
0.0818347409,
0.0492498018,
0.2946319878,
0.2845769227,
-0.0508807413,
-0.4122374058,
-0.3489956558,
-0.1207851022,
0.1302724779,
0.2388219535,
0.2473597378,
-0.1509172171,
0.1259339899,
0.0328826346,
-0.0184717719,
-0.274196893,
0.2383802086,
0.0036438282,
0.0111868996,
-0.1582195759,
0.1072917655,
-0.1295858026,
-0.0208246578,
-0.1499338299,
-0.2244824916,
-0.3057589233,
0.1283779889,
0.0374988206,
0.1160042658,
-0.0355976447,
-0.4100777209,
0.2355837673,
0.3558476269,
0.3206707239,
0.2080192119,
-0.2673654556,
0.2078463286,
0.5903255343,
0.2016133517,
-0.0549013428,
0.0114983907,
0.2564994097,
0.330513984,
0.060729824,
-0.0435532071,
-0.2637993395,
-0.1108330861,
0.0103773009,
-0.1974509358,
0.3086810112,
-0.1726260036,
-0.223853156,
0.0755630434,
-0.6134247184,
-0.057320971,
-0.0002185348,
0.3672919273,
-0.1971875131,
0.4987776577,
0.2744283378,
0.4868384302,
0.0442170911,
0.0317275114,
-0.1022381559,
-0.0353483744,
-0.1634833217,
-0.2962278426,
0.2371663153,
0.0525440536,
0.0861051753,
0.1265181005,
-0.0630017444,
-0.4126388431,
-0.0742599443,
0.0477152914,
-0.0974051654,
0.1669668406,
0.1920515746,
0.1328712553,
0.1559263617,
-0.4045023322,
-0.1376463324,
0.0323024876,
-0.376919508,
0.0055573806,
-0.3176854253,
0.0546304472,
-0.2702908516,
-0.012081637,
-0.7623516321,
-0.0521201417,
-0.1122781113,
0.066026561,
0.0638750568,
-0.024417324,
0.2227593064,
-0.2470848113,
0.0749819055,
0.2833139896,
-0.3005580604,
-0.2378237098,
-0.0629284754,
-0.0374918953,
0.1896338761,
0.2650880516,
-0.2005773783,
0.2845457792,
-0.1637352407,
0.2106698304,
0.3121518791,
-0.3327308297,
-0.2219263613,
0.6055201888,
0.0193042662,
0.5248498917,
0.0198841766,
-0.2308954895,
-0.0092007201,
0.1884040087,
0.3035949171,
0.4013707638,
0.1422876716,
0.0679153278,
-0.2457052469,
-0.2022636086,
-0.1346423179,
0.3127694726,
0.0487664752,
0.188940227,
0.0995357186,
0.0244783051,
0.2506870925,
-0.1951393038,
-0.0266672354,
0.1624233276,
0.09113314,
0.02821544,
-0.0057260147,
-0.0044113356,
-0.6142939925,
0.1499559879,
-0.0511224791,
0.1092021987,
-0.408085674,
0.0093209231,
-0.2547832131,
0.126067847,
-0.1280753911,
0.1847678423,
0.0374526978,
0.1086536199,
-0.18218714,
0.2108012438,
-0.1838938296,
0.3152323067,
0.1626448035,
0.2816525102,
-0.4834643304,
0.4377064407,
0.2102558166,
-0.1212382987,
0.027118165,
0.185371235,
-0.0978173614,
-0.1626706719,
-0.2391355485,
0.1727548242,
0.1394179314,
0.1797136366,
-0.056277059,
-0.2375709265,
-0.0822837278,
0.083859548,
-0.1951903552,
0.3068771064,
0.2217238694,
-0.0245843641,
-0.0280966461,
0.805208683,
-0.0741070807,
0.4431968629,
-0.0157234408,
-0.0205509197,
0.456171751,
0.061565686,
-0.364153266,
-0.3053401709,
0.2388352603,
0.3186247051,
0.0603673756,
0.0040047891,
-0.3794295788,
-0.1885215193,
0.3982872069,
0.0051799058,
0.2424625605,
0.1532347798,
-0.0953567103,
-0.099672921,
0.0158595871,
0.140178591,
0.2382984757,
0.0758770555,
-0.2070480734,
-0.0434464738,
-0.0409476943,
-0.024745129,
0.1555986106,
0.3065347373,
0.2641780376,
0.0933475718,
0.1558888257,
-0.0209620297,
-0.2815462053,
-0.2380040735,
-0.2863602638,
0.1189388558,
-0.6182571054,
0.2991374433,
-0.4743469357,
0.1188914552,
0.0353333764,
-0.3410823345,
-0.126299873,
-0.3229712546,
-0.3007418513,
0.2734275758,
-0.114748992,
-0.1341669261,
-0.2667236924,
0.3151707649,
-0.0232129171,
-0.3463472426,
-0.2113418728,
-0.011718411,
-0.1846485287,
-0.0234059021,
0.3875864446,
0.1092966199,
0.1544725895,
-0.1289405972,
0.0473137945,
0.1418190002,
-0.0863969028,
0.1482001096,
-0.1994989961,
0.2889932096,
0.2154709548,
0.1969102025,
-0.097852841,
-0.1516464055,
0.2886658013,
0.0957519189,
-0.3427707851,
0.3241927624,
-0.1354989409,
0.0278993677,
-0.1492166668,
-0.0291688349,
0.1219550744,
-0.4392545819,
0.5247157216,
0.2458689511,
0.0581385083,
-0.0170071367,
0.024261402,
0.1799214482,
0.1687064171,
0.0159117598,
-0.1107465252,
-0.1546859443,
0.23265706,
-0.1608326882,
-0.2501762211,
0.0764549151,
-0.1965515465,
0.1685906202,
-0.0865130052,
-0.3909764588,
0.0259427913,
0.0707197785,
0.113656804,
-0.0444037803,
-0.2952396274,
0.0588250048,
-0.012750539,
0.0851903856,
-0.1855715364,
-0.2022251636,
0.1206317171,
-0.0438125804,
0.0216034893,
0.0565146133,
0.7252904773,
-0.094295986,
0.1807755083,
0.3117997944,
-0.0382717587,
0.3949745595,
-0.0264437757,
0.1030091718,
-0.4057943821,
-0.1191254929,
-0.3808178008,
-0.0971131325,
0.0786369219,
0.2193029672,
0.1096424088,
-0.2879477143,
-0.2405598462,
-0.0622840673,
-0.458705008,
-0.3489450216,
0.1333797425,
-0.3543259203,
-0.3382492661,
0.0320334285,
0.2205645293,
-0.0587299727,
-0.058101695,
-0.0303624272,
0.4014145434,
0.2062797546,
-0.045500569,
-0.2057117224,
0.0343682133,
-0.3544536531,
0.3606953919,
0.0746530667,
0.3657509387,
0.1974583417,
-0.0280974675,
0.2447487861,
-0.2093996257,
0.4490725994,
-0.1200107634,
0.0227279458,
0.0280961487,
-0.1236655414,
-0.6418693066,
0.1011511385,
-0.1271311343,
0.2907668054,
0.2359822541,
0.2095478773,
-0.4572591484,
-0.2961417437,
0.1018685997,
-0.1504394412,
-0.1058704257,
-0.1064762697,
-0.3640386164,
-0.2923771143,
-0.2448295206,
-0.1525726616,
0.0274702702,
0.238711223,
0.0874368697,
-0.0987063497,
-0.2664905488,
-0.0690849647,
0.1225851476,
0.2164161801,
0.1880879849,
-0.2173920125,
0.0409797393,
0.0061120326,
0.3643348217,
0.3959255219,
0.8496599197,
0.2561550438,
-0.5346416235,
0.209253028,
-0.0245479438,
0.0420459323,
0.1865961701,
0.0230353661,
0.0835099518,
0.2850645781,
0.1448800266,
-0.2175283134,
-0.1765889078,
0.4804258347,
-0.1738850623,
-0.462118119,
-0.3463932872,
0.4906899035,
-0.1168817654,
0.0213299487,
0.2263396382,
0.2678977251,
-0.1467051059,
0.7589291334,
0.0028832667,
0.7930403948,
0.1487369239,
0.1980528533,
0.722145617,
-0.5317469835,
0.4004819691,
-0.0322305933,
-0.0708862841,
-0.2383533567,
0.5987788439,
-0.1820173562,
-0.1515830457,
-0.0095944759,
0.1925091743,
-0.1030687541,
0.0225749649,
-0.3046784699,
-0.0162520427,
0.0787487626,
0.1285971552,
-0.1141063645,
-0.2810207307,
-0.7139284611,
-0.013921855,
-0.1206340045,
0.0340206139,
-0.0035202035,
-0.3064056635,
-0.2558885813,
-0.1888527423,
-0.3464411497,
0.2579856813,
0.1630946994,
-0.0184751637,
0.2230372578,
-0.0496138036,
0.0946817696,
-0.052479431,
0.2925044596,
-0.093338713,
-0.1754464954,
0.1870107204,
-0.136403814,
-0.0991378203,
-0.0924462378,
-0.0160645843,
0.5005757809,
-0.076882787,
-0.1589540988,
-0.2050986439,
-0.2627161145,
-0.5380346179,
0.2646923363,
0.4163653553,
-0.3466080725,
-0.2409762591,
-0.3931148052,
-0.0475278683,
0.2723073959,
-0.1570667028,
0.0498478115,
0.2624672651,
0.1839358211,
-0.0674590543,
0.2908507288,
-0.3609032929,
-0.1087288335,
0.3222661614,
-0.035309758,
0.0564953759,
0.5033448935,
0.28622967,
-0.2179954201,
-0.1904616356,
0.2036409229,
0.8105611801,
-0.6269248128,
0.306525588,
-0.1730775386,
-0.0535797738,
-0.0472414233,
0.3028697073,
0.0699546561,
-0.0232218876,
0.0566212721,
-0.6213237643,
-0.1062004939,
0.4122470319,
-0.1543130577,
-0.0214454606,
0.1351440996,
-0.0169346463,
-0.2405515462,
-0.1720615774,
-0.1729355901,
0.2192621529,
-0.157630071,
-0.2045776844,
-0.3086435795,
0.0632047355,
0.5788154006,
0.0068062176,
0.0865863115,
0.0817479342,
-0.1436323076,
-0.0885987282,
-0.3009876609,
0.2072960734,
0.1043562815,
-0.0927104354,
-0.0784606487,
0.0101221818,
-0.1790237576,
-0.1357485503,
0.2507114708,
0.2667547166,
-0.0477175191,
-0.1331558824,
0.0813500509,
0.1524970978,
-0.2447348535,
0.1382138431,
-0.1590838879,
0.5401738882,
0.0858469978,
-0.0476722196,
-0.2291522324,
0.1443037242,
-0.2354620099,
0.2881272733,
0.2030767947,
0.2164717466,
0.4846535623,
-0.4272494912,
0.0382829048,
-0.2070928663,
0.097607471,
0.3163168728,
-0.2574581802,
0.0504575856,
-0.1622022539,
0.0547887273,
0.0131523544,
0.0525103696,
0.1396278888,
-0.0389828235,
0.0427070558,
0.3336888254,
-0.1388190091,
0.0428311341,
-0.233440578,
0.0458439477,
0.4255112708,
0.1589772701,
0.0510134622,
0.2905640602,
-0.2684133351,
0.0809300095,
0.0158536173,
0.1407577097,
0.2980787754,
-0.0071149487,
0.0680877268,
0.0217249729,
0.1491241157,
0.242313996,
0.000527641,
-0.4159059227,
-0.0420819484,
0.3158298135,
-0.0500426441,
0.3092297614,
0.1688639522,
0.3333729804,
-0.1892768294,
0.0969854742,
-0.4036624134,
-0.1670232415,
-0.0538141318,
-0.2211983949,
-0.5511420965,
-0.2069525719,
-0.3715271354,
-0.1109168679,
-0.1350995451,
-0.0615069121,
-0.2741715908,
0.18862243,
0.050345365,
-0.3303629458,
0.0814074501,
-0.1955389827,
0.204169035,
-0.1523470134,
0.2263706028,
-0.0093278112,
0.0362452045,
0.3188802898,
0.0760147572,
0.5093174577,
0.2283810079,
-0.0963346884,
-0.2487948537,
-0.0241238102,
-0.1421785355,
0.0403777473,
0.3468791544,
0.1857324243,
0.0395645872,
0.2420819402,
0.1516419202,
-0.113323234,
0.3565613329,
0.0022537354,
0.2634564936,
-0.0992486551,
0.5178783536,
-0.467659086,
0.1000935063,
-0.1672316343,
-0.3525444865,
-0.1460465491,
-0.3188264966,
-0.1780046672,
-0.194589898,
-0.023563683,
-0.0586972274,
0.0232759118,
-0.0869169459,
0.4179296196,
0.394970119,
0.1819572449,
0.1531837136,
-0.0330796316,
-0.2972987294,
0.2351236492,
-0.1318950504,
0.0307580233,
0.2157548219,
0.2165424079,
0.0767683387,
0.172640264,
0.0412499495,
0.0387746803,
0.0111105768,
0.2165727764,
-0.243310228,
-0.0609750114,
0.2753143907,
0.017352812,
-0.1357740611,
-0.2809372544,
-0.0888741538,
-0.058575131,
-0.0598329306,
0.1518499255,
-0.0595390499,
-0.0654159337,
-0.1698687971,
0.4425503612,
0.132435903,
0.201108411,
-0.0575091317,
-0.4760099649,
-0.2689436376,
-0.4144521058,
-0.1308503598,
0.3707847297,
-0.1804433614,
0.6111343503,
0.034223415,
0.1484050453,
-0.0185194183,
-0.0448635109,
-0.1875067055,
-0.0982181132,
-0.5277870893,
0.293900162,
-0.3957844377,
0.1447348148,
-0.131557107,
0.105731912,
0.1239853725,
0.1936317086,
-0.0772353411,
-0.2317138016,
0.4982316196,
-0.2602383494,
-0.3133600354,
0.2727927566,
0.0889144838,
-0.1325902939,
-0.2973822355,
-0.6104028821,
0.0109965438,
0.2189055979,
0.0305514205,
-0.217826277,
-0.1124497354,
-0.1242608428,
-0.0546770953,
-0.1363347471,
0.2223986387,
0.0136691667,
-0.113807179,
0.1441099495,
-0.1869695187
] |
https://github.com/huggingface/datasets/issues/2799 | Loading JSON throws ArrowNotImplementedError | I just opened a PR with a fix, feel free to install `datasets` from source from source and let me know if it helps | ## 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
| 24 | 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 opened a PR with a fix, feel free to install `datasets` from source from source and let me know if it helps | [
-0.0681873858,
0.1841620356,
0.0364154391,
0.378070116,
0.2355371118,
-0.0062701493,
0.4846676886,
0.3670632541,
0.4180770516,
-0.0028390361,
0.0605550855,
0.5898873806,
0.0276205242,
-0.1488580108,
-0.2172114253,
-0.1838724762,
0.0313556641,
0.1905163974,
0.1274460852,
0.0285851005,
-0.312232703,
0.294205904,
-0.2148162723,
0.1017739326,
-0.0391270779,
-0.0952268541,
0.1041621715,
0.3933391571,
-0.126419276,
-0.3826465607,
0.4134063721,
-0.0130349994,
0.2161163539,
0.5308529139,
-0.0001203599,
0.1964654922,
0.4152527153,
-0.0924445242,
-0.2868116796,
-0.4780592322,
-0.2790301442,
-0.3253921866,
0.5374760628,
-0.1200379953,
0.1052052006,
-0.2437470257,
-0.0497696139,
-0.2207817584,
0.6015405059,
0.2307226956,
0.1048027202,
0.4299396276,
0.0260291677,
0.0192189757,
0.0637281314,
0.2108370215,
-0.1217759252,
0.4542042613,
0.008248481,
0.1270529181,
-0.1715969741,
-0.0036358046,
-0.1026413739,
0.1538670212,
0.2191226035,
0.0476009734,
-0.1704019904,
0.0818347409,
0.0492498018,
0.2946319878,
0.2845769227,
-0.0508807413,
-0.4122374058,
-0.3489956558,
-0.1207851022,
0.1302724779,
0.2388219535,
0.2473597378,
-0.1509172171,
0.1259339899,
0.0328826346,
-0.0184717719,
-0.274196893,
0.2383802086,
0.0036438282,
0.0111868996,
-0.1582195759,
0.1072917655,
-0.1295858026,
-0.0208246578,
-0.1499338299,
-0.2244824916,
-0.3057589233,
0.1283779889,
0.0374988206,
0.1160042658,
-0.0355976447,
-0.4100777209,
0.2355837673,
0.3558476269,
0.3206707239,
0.2080192119,
-0.2673654556,
0.2078463286,
0.5903255343,
0.2016133517,
-0.0549013428,
0.0114983907,
0.2564994097,
0.330513984,
0.060729824,
-0.0435532071,
-0.2637993395,
-0.1108330861,
0.0103773009,
-0.1974509358,
0.3086810112,
-0.1726260036,
-0.223853156,
0.0755630434,
-0.6134247184,
-0.057320971,
-0.0002185348,
0.3672919273,
-0.1971875131,
0.4987776577,
0.2744283378,
0.4868384302,
0.0442170911,
0.0317275114,
-0.1022381559,
-0.0353483744,
-0.1634833217,
-0.2962278426,
0.2371663153,
0.0525440536,
0.0861051753,
0.1265181005,
-0.0630017444,
-0.4126388431,
-0.0742599443,
0.0477152914,
-0.0974051654,
0.1669668406,
0.1920515746,
0.1328712553,
0.1559263617,
-0.4045023322,
-0.1376463324,
0.0323024876,
-0.376919508,
0.0055573806,
-0.3176854253,
0.0546304472,
-0.2702908516,
-0.012081637,
-0.7623516321,
-0.0521201417,
-0.1122781113,
0.066026561,
0.0638750568,
-0.024417324,
0.2227593064,
-0.2470848113,
0.0749819055,
0.2833139896,
-0.3005580604,
-0.2378237098,
-0.0629284754,
-0.0374918953,
0.1896338761,
0.2650880516,
-0.2005773783,
0.2845457792,
-0.1637352407,
0.2106698304,
0.3121518791,
-0.3327308297,
-0.2219263613,
0.6055201888,
0.0193042662,
0.5248498917,
0.0198841766,
-0.2308954895,
-0.0092007201,
0.1884040087,
0.3035949171,
0.4013707638,
0.1422876716,
0.0679153278,
-0.2457052469,
-0.2022636086,
-0.1346423179,
0.3127694726,
0.0487664752,
0.188940227,
0.0995357186,
0.0244783051,
0.2506870925,
-0.1951393038,
-0.0266672354,
0.1624233276,
0.09113314,
0.02821544,
-0.0057260147,
-0.0044113356,
-0.6142939925,
0.1499559879,
-0.0511224791,
0.1092021987,
-0.408085674,
0.0093209231,
-0.2547832131,
0.126067847,
-0.1280753911,
0.1847678423,
0.0374526978,
0.1086536199,
-0.18218714,
0.2108012438,
-0.1838938296,
0.3152323067,
0.1626448035,
0.2816525102,
-0.4834643304,
0.4377064407,
0.2102558166,
-0.1212382987,
0.027118165,
0.185371235,
-0.0978173614,
-0.1626706719,
-0.2391355485,
0.1727548242,
0.1394179314,
0.1797136366,
-0.056277059,
-0.2375709265,
-0.0822837278,
0.083859548,
-0.1951903552,
0.3068771064,
0.2217238694,
-0.0245843641,
-0.0280966461,
0.805208683,
-0.0741070807,
0.4431968629,
-0.0157234408,
-0.0205509197,
0.456171751,
0.061565686,
-0.364153266,
-0.3053401709,
0.2388352603,
0.3186247051,
0.0603673756,
0.0040047891,
-0.3794295788,
-0.1885215193,
0.3982872069,
0.0051799058,
0.2424625605,
0.1532347798,
-0.0953567103,
-0.099672921,
0.0158595871,
0.140178591,
0.2382984757,
0.0758770555,
-0.2070480734,
-0.0434464738,
-0.0409476943,
-0.024745129,
0.1555986106,
0.3065347373,
0.2641780376,
0.0933475718,
0.1558888257,
-0.0209620297,
-0.2815462053,
-0.2380040735,
-0.2863602638,
0.1189388558,
-0.6182571054,
0.2991374433,
-0.4743469357,
0.1188914552,
0.0353333764,
-0.3410823345,
-0.126299873,
-0.3229712546,
-0.3007418513,
0.2734275758,
-0.114748992,
-0.1341669261,
-0.2667236924,
0.3151707649,
-0.0232129171,
-0.3463472426,
-0.2113418728,
-0.011718411,
-0.1846485287,
-0.0234059021,
0.3875864446,
0.1092966199,
0.1544725895,
-0.1289405972,
0.0473137945,
0.1418190002,
-0.0863969028,
0.1482001096,
-0.1994989961,
0.2889932096,
0.2154709548,
0.1969102025,
-0.097852841,
-0.1516464055,
0.2886658013,
0.0957519189,
-0.3427707851,
0.3241927624,
-0.1354989409,
0.0278993677,
-0.1492166668,
-0.0291688349,
0.1219550744,
-0.4392545819,
0.5247157216,
0.2458689511,
0.0581385083,
-0.0170071367,
0.024261402,
0.1799214482,
0.1687064171,
0.0159117598,
-0.1107465252,
-0.1546859443,
0.23265706,
-0.1608326882,
-0.2501762211,
0.0764549151,
-0.1965515465,
0.1685906202,
-0.0865130052,
-0.3909764588,
0.0259427913,
0.0707197785,
0.113656804,
-0.0444037803,
-0.2952396274,
0.0588250048,
-0.012750539,
0.0851903856,
-0.1855715364,
-0.2022251636,
0.1206317171,
-0.0438125804,
0.0216034893,
0.0565146133,
0.7252904773,
-0.094295986,
0.1807755083,
0.3117997944,
-0.0382717587,
0.3949745595,
-0.0264437757,
0.1030091718,
-0.4057943821,
-0.1191254929,
-0.3808178008,
-0.0971131325,
0.0786369219,
0.2193029672,
0.1096424088,
-0.2879477143,
-0.2405598462,
-0.0622840673,
-0.458705008,
-0.3489450216,
0.1333797425,
-0.3543259203,
-0.3382492661,
0.0320334285,
0.2205645293,
-0.0587299727,
-0.058101695,
-0.0303624272,
0.4014145434,
0.2062797546,
-0.045500569,
-0.2057117224,
0.0343682133,
-0.3544536531,
0.3606953919,
0.0746530667,
0.3657509387,
0.1974583417,
-0.0280974675,
0.2447487861,
-0.2093996257,
0.4490725994,
-0.1200107634,
0.0227279458,
0.0280961487,
-0.1236655414,
-0.6418693066,
0.1011511385,
-0.1271311343,
0.2907668054,
0.2359822541,
0.2095478773,
-0.4572591484,
-0.2961417437,
0.1018685997,
-0.1504394412,
-0.1058704257,
-0.1064762697,
-0.3640386164,
-0.2923771143,
-0.2448295206,
-0.1525726616,
0.0274702702,
0.238711223,
0.0874368697,
-0.0987063497,
-0.2664905488,
-0.0690849647,
0.1225851476,
0.2164161801,
0.1880879849,
-0.2173920125,
0.0409797393,
0.0061120326,
0.3643348217,
0.3959255219,
0.8496599197,
0.2561550438,
-0.5346416235,
0.209253028,
-0.0245479438,
0.0420459323,
0.1865961701,
0.0230353661,
0.0835099518,
0.2850645781,
0.1448800266,
-0.2175283134,
-0.1765889078,
0.4804258347,
-0.1738850623,
-0.462118119,
-0.3463932872,
0.4906899035,
-0.1168817654,
0.0213299487,
0.2263396382,
0.2678977251,
-0.1467051059,
0.7589291334,
0.0028832667,
0.7930403948,
0.1487369239,
0.1980528533,
0.722145617,
-0.5317469835,
0.4004819691,
-0.0322305933,
-0.0708862841,
-0.2383533567,
0.5987788439,
-0.1820173562,
-0.1515830457,
-0.0095944759,
0.1925091743,
-0.1030687541,
0.0225749649,
-0.3046784699,
-0.0162520427,
0.0787487626,
0.1285971552,
-0.1141063645,
-0.2810207307,
-0.7139284611,
-0.013921855,
-0.1206340045,
0.0340206139,
-0.0035202035,
-0.3064056635,
-0.2558885813,
-0.1888527423,
-0.3464411497,
0.2579856813,
0.1630946994,
-0.0184751637,
0.2230372578,
-0.0496138036,
0.0946817696,
-0.052479431,
0.2925044596,
-0.093338713,
-0.1754464954,
0.1870107204,
-0.136403814,
-0.0991378203,
-0.0924462378,
-0.0160645843,
0.5005757809,
-0.076882787,
-0.1589540988,
-0.2050986439,
-0.2627161145,
-0.5380346179,
0.2646923363,
0.4163653553,
-0.3466080725,
-0.2409762591,
-0.3931148052,
-0.0475278683,
0.2723073959,
-0.1570667028,
0.0498478115,
0.2624672651,
0.1839358211,
-0.0674590543,
0.2908507288,
-0.3609032929,
-0.1087288335,
0.3222661614,
-0.035309758,
0.0564953759,
0.5033448935,
0.28622967,
-0.2179954201,
-0.1904616356,
0.2036409229,
0.8105611801,
-0.6269248128,
0.306525588,
-0.1730775386,
-0.0535797738,
-0.0472414233,
0.3028697073,
0.0699546561,
-0.0232218876,
0.0566212721,
-0.6213237643,
-0.1062004939,
0.4122470319,
-0.1543130577,
-0.0214454606,
0.1351440996,
-0.0169346463,
-0.2405515462,
-0.1720615774,
-0.1729355901,
0.2192621529,
-0.157630071,
-0.2045776844,
-0.3086435795,
0.0632047355,
0.5788154006,
0.0068062176,
0.0865863115,
0.0817479342,
-0.1436323076,
-0.0885987282,
-0.3009876609,
0.2072960734,
0.1043562815,
-0.0927104354,
-0.0784606487,
0.0101221818,
-0.1790237576,
-0.1357485503,
0.2507114708,
0.2667547166,
-0.0477175191,
-0.1331558824,
0.0813500509,
0.1524970978,
-0.2447348535,
0.1382138431,
-0.1590838879,
0.5401738882,
0.0858469978,
-0.0476722196,
-0.2291522324,
0.1443037242,
-0.2354620099,
0.2881272733,
0.2030767947,
0.2164717466,
0.4846535623,
-0.4272494912,
0.0382829048,
-0.2070928663,
0.097607471,
0.3163168728,
-0.2574581802,
0.0504575856,
-0.1622022539,
0.0547887273,
0.0131523544,
0.0525103696,
0.1396278888,
-0.0389828235,
0.0427070558,
0.3336888254,
-0.1388190091,
0.0428311341,
-0.233440578,
0.0458439477,
0.4255112708,
0.1589772701,
0.0510134622,
0.2905640602,
-0.2684133351,
0.0809300095,
0.0158536173,
0.1407577097,
0.2980787754,
-0.0071149487,
0.0680877268,
0.0217249729,
0.1491241157,
0.242313996,
0.000527641,
-0.4159059227,
-0.0420819484,
0.3158298135,
-0.0500426441,
0.3092297614,
0.1688639522,
0.3333729804,
-0.1892768294,
0.0969854742,
-0.4036624134,
-0.1670232415,
-0.0538141318,
-0.2211983949,
-0.5511420965,
-0.2069525719,
-0.3715271354,
-0.1109168679,
-0.1350995451,
-0.0615069121,
-0.2741715908,
0.18862243,
0.050345365,
-0.3303629458,
0.0814074501,
-0.1955389827,
0.204169035,
-0.1523470134,
0.2263706028,
-0.0093278112,
0.0362452045,
0.3188802898,
0.0760147572,
0.5093174577,
0.2283810079,
-0.0963346884,
-0.2487948537,
-0.0241238102,
-0.1421785355,
0.0403777473,
0.3468791544,
0.1857324243,
0.0395645872,
0.2420819402,
0.1516419202,
-0.113323234,
0.3565613329,
0.0022537354,
0.2634564936,
-0.0992486551,
0.5178783536,
-0.467659086,
0.1000935063,
-0.1672316343,
-0.3525444865,
-0.1460465491,
-0.3188264966,
-0.1780046672,
-0.194589898,
-0.023563683,
-0.0586972274,
0.0232759118,
-0.0869169459,
0.4179296196,
0.394970119,
0.1819572449,
0.1531837136,
-0.0330796316,
-0.2972987294,
0.2351236492,
-0.1318950504,
0.0307580233,
0.2157548219,
0.2165424079,
0.0767683387,
0.172640264,
0.0412499495,
0.0387746803,
0.0111105768,
0.2165727764,
-0.243310228,
-0.0609750114,
0.2753143907,
0.017352812,
-0.1357740611,
-0.2809372544,
-0.0888741538,
-0.058575131,
-0.0598329306,
0.1518499255,
-0.0595390499,
-0.0654159337,
-0.1698687971,
0.4425503612,
0.132435903,
0.201108411,
-0.0575091317,
-0.4760099649,
-0.2689436376,
-0.4144521058,
-0.1308503598,
0.3707847297,
-0.1804433614,
0.6111343503,
0.034223415,
0.1484050453,
-0.0185194183,
-0.0448635109,
-0.1875067055,
-0.0982181132,
-0.5277870893,
0.293900162,
-0.3957844377,
0.1447348148,
-0.131557107,
0.105731912,
0.1239853725,
0.1936317086,
-0.0772353411,
-0.2317138016,
0.4982316196,
-0.2602383494,
-0.3133600354,
0.2727927566,
0.0889144838,
-0.1325902939,
-0.2973822355,
-0.6104028821,
0.0109965438,
0.2189055979,
0.0305514205,
-0.217826277,
-0.1124497354,
-0.1242608428,
-0.0546770953,
-0.1363347471,
0.2223986387,
0.0136691667,
-0.113807179,
0.1441099495,
-0.1869695187
] |
https://github.com/huggingface/datasets/issues/2799 | Loading JSON throws ArrowNotImplementedError | @zijwang did PR #3000 solve the problem for you? It did for me, so it all is good on your end we can close this issue. Thanks again to @lhoestq for the pyarrow magic 🤯 | ## 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
| 35 | 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
@zijwang did PR #3000 solve the problem for you? It did for me, so it all is good on your end we can close this issue. Thanks again to @lhoestq for the pyarrow magic 🤯 | [
-0.0681873858,
0.1841620356,
0.0364154391,
0.378070116,
0.2355371118,
-0.0062701493,
0.4846676886,
0.3670632541,
0.4180770516,
-0.0028390361,
0.0605550855,
0.5898873806,
0.0276205242,
-0.1488580108,
-0.2172114253,
-0.1838724762,
0.0313556641,
0.1905163974,
0.1274460852,
0.0285851005,
-0.312232703,
0.294205904,
-0.2148162723,
0.1017739326,
-0.0391270779,
-0.0952268541,
0.1041621715,
0.3933391571,
-0.126419276,
-0.3826465607,
0.4134063721,
-0.0130349994,
0.2161163539,
0.5308529139,
-0.0001203599,
0.1964654922,
0.4152527153,
-0.0924445242,
-0.2868116796,
-0.4780592322,
-0.2790301442,
-0.3253921866,
0.5374760628,
-0.1200379953,
0.1052052006,
-0.2437470257,
-0.0497696139,
-0.2207817584,
0.6015405059,
0.2307226956,
0.1048027202,
0.4299396276,
0.0260291677,
0.0192189757,
0.0637281314,
0.2108370215,
-0.1217759252,
0.4542042613,
0.008248481,
0.1270529181,
-0.1715969741,
-0.0036358046,
-0.1026413739,
0.1538670212,
0.2191226035,
0.0476009734,
-0.1704019904,
0.0818347409,
0.0492498018,
0.2946319878,
0.2845769227,
-0.0508807413,
-0.4122374058,
-0.3489956558,
-0.1207851022,
0.1302724779,
0.2388219535,
0.2473597378,
-0.1509172171,
0.1259339899,
0.0328826346,
-0.0184717719,
-0.274196893,
0.2383802086,
0.0036438282,
0.0111868996,
-0.1582195759,
0.1072917655,
-0.1295858026,
-0.0208246578,
-0.1499338299,
-0.2244824916,
-0.3057589233,
0.1283779889,
0.0374988206,
0.1160042658,
-0.0355976447,
-0.4100777209,
0.2355837673,
0.3558476269,
0.3206707239,
0.2080192119,
-0.2673654556,
0.2078463286,
0.5903255343,
0.2016133517,
-0.0549013428,
0.0114983907,
0.2564994097,
0.330513984,
0.060729824,
-0.0435532071,
-0.2637993395,
-0.1108330861,
0.0103773009,
-0.1974509358,
0.3086810112,
-0.1726260036,
-0.223853156,
0.0755630434,
-0.6134247184,
-0.057320971,
-0.0002185348,
0.3672919273,
-0.1971875131,
0.4987776577,
0.2744283378,
0.4868384302,
0.0442170911,
0.0317275114,
-0.1022381559,
-0.0353483744,
-0.1634833217,
-0.2962278426,
0.2371663153,
0.0525440536,
0.0861051753,
0.1265181005,
-0.0630017444,
-0.4126388431,
-0.0742599443,
0.0477152914,
-0.0974051654,
0.1669668406,
0.1920515746,
0.1328712553,
0.1559263617,
-0.4045023322,
-0.1376463324,
0.0323024876,
-0.376919508,
0.0055573806,
-0.3176854253,
0.0546304472,
-0.2702908516,
-0.012081637,
-0.7623516321,
-0.0521201417,
-0.1122781113,
0.066026561,
0.0638750568,
-0.024417324,
0.2227593064,
-0.2470848113,
0.0749819055,
0.2833139896,
-0.3005580604,
-0.2378237098,
-0.0629284754,
-0.0374918953,
0.1896338761,
0.2650880516,
-0.2005773783,
0.2845457792,
-0.1637352407,
0.2106698304,
0.3121518791,
-0.3327308297,
-0.2219263613,
0.6055201888,
0.0193042662,
0.5248498917,
0.0198841766,
-0.2308954895,
-0.0092007201,
0.1884040087,
0.3035949171,
0.4013707638,
0.1422876716,
0.0679153278,
-0.2457052469,
-0.2022636086,
-0.1346423179,
0.3127694726,
0.0487664752,
0.188940227,
0.0995357186,
0.0244783051,
0.2506870925,
-0.1951393038,
-0.0266672354,
0.1624233276,
0.09113314,
0.02821544,
-0.0057260147,
-0.0044113356,
-0.6142939925,
0.1499559879,
-0.0511224791,
0.1092021987,
-0.408085674,
0.0093209231,
-0.2547832131,
0.126067847,
-0.1280753911,
0.1847678423,
0.0374526978,
0.1086536199,
-0.18218714,
0.2108012438,
-0.1838938296,
0.3152323067,
0.1626448035,
0.2816525102,
-0.4834643304,
0.4377064407,
0.2102558166,
-0.1212382987,
0.027118165,
0.185371235,
-0.0978173614,
-0.1626706719,
-0.2391355485,
0.1727548242,
0.1394179314,
0.1797136366,
-0.056277059,
-0.2375709265,
-0.0822837278,
0.083859548,
-0.1951903552,
0.3068771064,
0.2217238694,
-0.0245843641,
-0.0280966461,
0.805208683,
-0.0741070807,
0.4431968629,
-0.0157234408,
-0.0205509197,
0.456171751,
0.061565686,
-0.364153266,
-0.3053401709,
0.2388352603,
0.3186247051,
0.0603673756,
0.0040047891,
-0.3794295788,
-0.1885215193,
0.3982872069,
0.0051799058,
0.2424625605,
0.1532347798,
-0.0953567103,
-0.099672921,
0.0158595871,
0.140178591,
0.2382984757,
0.0758770555,
-0.2070480734,
-0.0434464738,
-0.0409476943,
-0.024745129,
0.1555986106,
0.3065347373,
0.2641780376,
0.0933475718,
0.1558888257,
-0.0209620297,
-0.2815462053,
-0.2380040735,
-0.2863602638,
0.1189388558,
-0.6182571054,
0.2991374433,
-0.4743469357,
0.1188914552,
0.0353333764,
-0.3410823345,
-0.126299873,
-0.3229712546,
-0.3007418513,
0.2734275758,
-0.114748992,
-0.1341669261,
-0.2667236924,
0.3151707649,
-0.0232129171,
-0.3463472426,
-0.2113418728,
-0.011718411,
-0.1846485287,
-0.0234059021,
0.3875864446,
0.1092966199,
0.1544725895,
-0.1289405972,
0.0473137945,
0.1418190002,
-0.0863969028,
0.1482001096,
-0.1994989961,
0.2889932096,
0.2154709548,
0.1969102025,
-0.097852841,
-0.1516464055,
0.2886658013,
0.0957519189,
-0.3427707851,
0.3241927624,
-0.1354989409,
0.0278993677,
-0.1492166668,
-0.0291688349,
0.1219550744,
-0.4392545819,
0.5247157216,
0.2458689511,
0.0581385083,
-0.0170071367,
0.024261402,
0.1799214482,
0.1687064171,
0.0159117598,
-0.1107465252,
-0.1546859443,
0.23265706,
-0.1608326882,
-0.2501762211,
0.0764549151,
-0.1965515465,
0.1685906202,
-0.0865130052,
-0.3909764588,
0.0259427913,
0.0707197785,
0.113656804,
-0.0444037803,
-0.2952396274,
0.0588250048,
-0.012750539,
0.0851903856,
-0.1855715364,
-0.2022251636,
0.1206317171,
-0.0438125804,
0.0216034893,
0.0565146133,
0.7252904773,
-0.094295986,
0.1807755083,
0.3117997944,
-0.0382717587,
0.3949745595,
-0.0264437757,
0.1030091718,
-0.4057943821,
-0.1191254929,
-0.3808178008,
-0.0971131325,
0.0786369219,
0.2193029672,
0.1096424088,
-0.2879477143,
-0.2405598462,
-0.0622840673,
-0.458705008,
-0.3489450216,
0.1333797425,
-0.3543259203,
-0.3382492661,
0.0320334285,
0.2205645293,
-0.0587299727,
-0.058101695,
-0.0303624272,
0.4014145434,
0.2062797546,
-0.045500569,
-0.2057117224,
0.0343682133,
-0.3544536531,
0.3606953919,
0.0746530667,
0.3657509387,
0.1974583417,
-0.0280974675,
0.2447487861,
-0.2093996257,
0.4490725994,
-0.1200107634,
0.0227279458,
0.0280961487,
-0.1236655414,
-0.6418693066,
0.1011511385,
-0.1271311343,
0.2907668054,
0.2359822541,
0.2095478773,
-0.4572591484,
-0.2961417437,
0.1018685997,
-0.1504394412,
-0.1058704257,
-0.1064762697,
-0.3640386164,
-0.2923771143,
-0.2448295206,
-0.1525726616,
0.0274702702,
0.238711223,
0.0874368697,
-0.0987063497,
-0.2664905488,
-0.0690849647,
0.1225851476,
0.2164161801,
0.1880879849,
-0.2173920125,
0.0409797393,
0.0061120326,
0.3643348217,
0.3959255219,
0.8496599197,
0.2561550438,
-0.5346416235,
0.209253028,
-0.0245479438,
0.0420459323,
0.1865961701,
0.0230353661,
0.0835099518,
0.2850645781,
0.1448800266,
-0.2175283134,
-0.1765889078,
0.4804258347,
-0.1738850623,
-0.462118119,
-0.3463932872,
0.4906899035,
-0.1168817654,
0.0213299487,
0.2263396382,
0.2678977251,
-0.1467051059,
0.7589291334,
0.0028832667,
0.7930403948,
0.1487369239,
0.1980528533,
0.722145617,
-0.5317469835,
0.4004819691,
-0.0322305933,
-0.0708862841,
-0.2383533567,
0.5987788439,
-0.1820173562,
-0.1515830457,
-0.0095944759,
0.1925091743,
-0.1030687541,
0.0225749649,
-0.3046784699,
-0.0162520427,
0.0787487626,
0.1285971552,
-0.1141063645,
-0.2810207307,
-0.7139284611,
-0.013921855,
-0.1206340045,
0.0340206139,
-0.0035202035,
-0.3064056635,
-0.2558885813,
-0.1888527423,
-0.3464411497,
0.2579856813,
0.1630946994,
-0.0184751637,
0.2230372578,
-0.0496138036,
0.0946817696,
-0.052479431,
0.2925044596,
-0.093338713,
-0.1754464954,
0.1870107204,
-0.136403814,
-0.0991378203,
-0.0924462378,
-0.0160645843,
0.5005757809,
-0.076882787,
-0.1589540988,
-0.2050986439,
-0.2627161145,
-0.5380346179,
0.2646923363,
0.4163653553,
-0.3466080725,
-0.2409762591,
-0.3931148052,
-0.0475278683,
0.2723073959,
-0.1570667028,
0.0498478115,
0.2624672651,
0.1839358211,
-0.0674590543,
0.2908507288,
-0.3609032929,
-0.1087288335,
0.3222661614,
-0.035309758,
0.0564953759,
0.5033448935,
0.28622967,
-0.2179954201,
-0.1904616356,
0.2036409229,
0.8105611801,
-0.6269248128,
0.306525588,
-0.1730775386,
-0.0535797738,
-0.0472414233,
0.3028697073,
0.0699546561,
-0.0232218876,
0.0566212721,
-0.6213237643,
-0.1062004939,
0.4122470319,
-0.1543130577,
-0.0214454606,
0.1351440996,
-0.0169346463,
-0.2405515462,
-0.1720615774,
-0.1729355901,
0.2192621529,
-0.157630071,
-0.2045776844,
-0.3086435795,
0.0632047355,
0.5788154006,
0.0068062176,
0.0865863115,
0.0817479342,
-0.1436323076,
-0.0885987282,
-0.3009876609,
0.2072960734,
0.1043562815,
-0.0927104354,
-0.0784606487,
0.0101221818,
-0.1790237576,
-0.1357485503,
0.2507114708,
0.2667547166,
-0.0477175191,
-0.1331558824,
0.0813500509,
0.1524970978,
-0.2447348535,
0.1382138431,
-0.1590838879,
0.5401738882,
0.0858469978,
-0.0476722196,
-0.2291522324,
0.1443037242,
-0.2354620099,
0.2881272733,
0.2030767947,
0.2164717466,
0.4846535623,
-0.4272494912,
0.0382829048,
-0.2070928663,
0.097607471,
0.3163168728,
-0.2574581802,
0.0504575856,
-0.1622022539,
0.0547887273,
0.0131523544,
0.0525103696,
0.1396278888,
-0.0389828235,
0.0427070558,
0.3336888254,
-0.1388190091,
0.0428311341,
-0.233440578,
0.0458439477,
0.4255112708,
0.1589772701,
0.0510134622,
0.2905640602,
-0.2684133351,
0.0809300095,
0.0158536173,
0.1407577097,
0.2980787754,
-0.0071149487,
0.0680877268,
0.0217249729,
0.1491241157,
0.242313996,
0.000527641,
-0.4159059227,
-0.0420819484,
0.3158298135,
-0.0500426441,
0.3092297614,
0.1688639522,
0.3333729804,
-0.1892768294,
0.0969854742,
-0.4036624134,
-0.1670232415,
-0.0538141318,
-0.2211983949,
-0.5511420965,
-0.2069525719,
-0.3715271354,
-0.1109168679,
-0.1350995451,
-0.0615069121,
-0.2741715908,
0.18862243,
0.050345365,
-0.3303629458,
0.0814074501,
-0.1955389827,
0.204169035,
-0.1523470134,
0.2263706028,
-0.0093278112,
0.0362452045,
0.3188802898,
0.0760147572,
0.5093174577,
0.2283810079,
-0.0963346884,
-0.2487948537,
-0.0241238102,
-0.1421785355,
0.0403777473,
0.3468791544,
0.1857324243,
0.0395645872,
0.2420819402,
0.1516419202,
-0.113323234,
0.3565613329,
0.0022537354,
0.2634564936,
-0.0992486551,
0.5178783536,
-0.467659086,
0.1000935063,
-0.1672316343,
-0.3525444865,
-0.1460465491,
-0.3188264966,
-0.1780046672,
-0.194589898,
-0.023563683,
-0.0586972274,
0.0232759118,
-0.0869169459,
0.4179296196,
0.394970119,
0.1819572449,
0.1531837136,
-0.0330796316,
-0.2972987294,
0.2351236492,
-0.1318950504,
0.0307580233,
0.2157548219,
0.2165424079,
0.0767683387,
0.172640264,
0.0412499495,
0.0387746803,
0.0111105768,
0.2165727764,
-0.243310228,
-0.0609750114,
0.2753143907,
0.017352812,
-0.1357740611,
-0.2809372544,
-0.0888741538,
-0.058575131,
-0.0598329306,
0.1518499255,
-0.0595390499,
-0.0654159337,
-0.1698687971,
0.4425503612,
0.132435903,
0.201108411,
-0.0575091317,
-0.4760099649,
-0.2689436376,
-0.4144521058,
-0.1308503598,
0.3707847297,
-0.1804433614,
0.6111343503,
0.034223415,
0.1484050453,
-0.0185194183,
-0.0448635109,
-0.1875067055,
-0.0982181132,
-0.5277870893,
0.293900162,
-0.3957844377,
0.1447348148,
-0.131557107,
0.105731912,
0.1239853725,
0.1936317086,
-0.0772353411,
-0.2317138016,
0.4982316196,
-0.2602383494,
-0.3133600354,
0.2727927566,
0.0889144838,
-0.1325902939,
-0.2973822355,
-0.6104028821,
0.0109965438,
0.2189055979,
0.0305514205,
-0.217826277,
-0.1124497354,
-0.1242608428,
-0.0546770953,
-0.1363347471,
0.2223986387,
0.0136691667,
-0.113807179,
0.1441099495,
-0.1869695187
] |
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.3138793409,
-0.1796858311,
-0.1142876968,
0.1454613209,
-0.0157868639,
0.3574570119,
0.4449552894,
0.4948761463,
0.556787014,
0.0195080694,
-0.0745146871,
0.1985773444,
0.0281435344,
0.143457517,
0.1276392639,
-0.323733747,
-0.0534549244,
0.1187503561,
0.271900177,
0.0101070022,
-0.1883502156,
0.0918608382,
-0.4363408089,
-0.3013266921,
-0.1955498308,
0.0335027128,
-0.3832269311,
0.0586888306,
0.0298343301,
-0.2322058827,
0.0476165824,
0.2474762648,
0.0852340236,
0.0112063698,
-0.0001181748,
0.002029774,
0.1929558516,
-0.3049510717,
-0.2270887941,
-0.3292900622,
-0.0461664163,
0.0632799193,
-0.0771350041,
-0.3171570599,
-0.1542427987,
-0.1601596177,
-0.0316537619,
-0.1385710686,
0.4643649459,
0.1826563478,
0.0203302037,
0.1105127558,
-0.3269142807,
-0.1088882983,
0.37466079,
0.3522199988,
0.2187463641,
0.0444286093,
0.4358344674,
-0.0470801666,
-0.1141448617,
-0.1930225343,
-0.0340736657,
0.2639249861,
0.1277291626,
0.1246676147,
-0.3276381791,
-0.3322708011,
-0.1635399461,
0.4533859789,
0.2487738132,
0.0091193328,
-0.4796766639,
-0.6428299546,
0.0095057776,
-0.3940194845,
-0.184847191,
0.4530910552,
-0.3995965719,
0.0952166468,
0.1818253547,
-0.057203345,
0.0219684169,
0.2663127482,
0.0569326729,
0.1254365742,
-0.0676552206,
0.0810490325,
0.7294516563,
0.141641438,
-0.0421174951,
-0.2076790482,
-0.0797925964,
0.118827723,
-0.4636726975,
-0.1048142835,
-0.2771570385,
-0.0089040995,
0.1892950535,
0.3294669986,
0.0680095255,
-0.2414482087,
0.1494101137,
0.1700343341,
0.6460339427,
-0.2381349653,
-0.0347359926,
0.1712916195,
-0.1695315987,
0.0176247675,
0.0331938416,
-0.0454390869,
-0.0381040722,
-0.1814242005,
-0.328294754,
0.1058128476,
-0.1274299175,
0.0860396177,
-0.1948268265,
-0.4890438318,
-0.2440895885,
-0.5034528971,
0.0762870386,
0.359908253,
0.2342459708,
-0.0838763863,
-0.1735524386,
0.4428136647,
-0.0889257789,
-0.2747074664,
-0.1148848087,
0.2223401517,
-0.108981438,
0.0057191262,
0.1465915143,
-0.1884321868,
0.2893143594,
-0.0865548328,
0.2269655913,
-0.2306075245,
0.3035945296,
-0.138725549,
0.1588563472,
0.1340753883,
0.2950140536,
-0.0119692041,
0.2660683393,
-0.0398498699,
-0.1329247653,
0.2388460487,
-0.2571510673,
-0.1912859231,
0.2006833851,
-0.0225589909,
0.0105379578,
0.1674258858,
-0.3620515466,
0.291510582,
0.118914634,
0.1359364092,
-0.1135267615,
-0.1590325087,
0.0445089005,
-0.0197427366,
0.1557988375,
0.3986885846,
-0.2346585542,
-0.1234915033,
-0.2077334374,
-0.1717360467,
0.362683773,
0.0350857191,
-0.3634833395,
0.2414547801,
-0.3660298884,
0.7993335128,
0.33450827,
0.1338743716,
-0.0137383081,
0.4271203876,
0.0220965128,
0.0380517133,
0.2731009126,
0.0632522181,
0.5865425467,
-0.051856257,
0.0598006435,
0.5053108335,
-0.2618049681,
0.0240476467,
0.1377213597,
-0.0513438694,
0.1542181671,
0.3551737368,
-0.0846147016,
0.167806834,
-0.0063040173,
0.2048271149,
0.5283381343,
-0.2432684004,
-0.0367063768,
0.0304864906,
-0.0026644857,
0.276281327,
0.0030847904,
-0.2095145136,
-0.1535413414,
0.1135419682,
0.2787372172,
-0.5721079707,
0.324930042,
-0.3869333863,
-0.1224474683,
-0.0005187371,
-0.1241057217,
0.1367531419,
0.0101975622,
0.1256724298,
-0.1288661659,
-0.530800879,
-0.342953831,
-0.0541970916,
-0.2381862998,
0.1940637231,
-0.2353835851,
0.3334451914,
0.2488533556,
0.0130885374,
0.1835723817,
-0.0925865918,
-0.0169581138,
-0.365347296,
0.0474871621,
0.2036667615,
0.8958289027,
-0.0555033311,
0.1376837045,
-0.2449236661,
0.0282208957,
0.0709378347,
-0.1368810683,
-0.1341380775,
-0.0789422467,
-0.136199668,
-0.2074252814,
0.5919694901,
-0.5605757236,
0.4632732272,
-0.1452793926,
0.2544753253,
0.1349826008,
-0.0727638155,
-0.2149717212,
-0.0677865967,
0.0911612436,
-0.1049719527,
0.3877753317,
0.0620675273,
-0.2700070143,
-0.1236138046,
0.2264413387,
-0.2351539284,
-0.0215932261,
0.1420032829,
0.0250722673,
0.0769355446,
0.134301275,
0.2210194468,
0.2190330327,
0.1367042065,
0.2197371572,
-0.2373443842,
0.1761602014,
-0.167872116,
0.0904826,
0.2804898024,
-0.1848635077,
0.203476131,
-0.516217351,
-0.2349596471,
-0.1231032088,
0.0242489837,
0.2009835541,
-0.0500390753,
-0.1504891664,
0.056330692,
-0.1548142135,
0.0014890066,
-0.1733237058,
-0.2208731472,
0.1084051058,
-0.0190757737,
-0.210128054,
0.1752097756,
-0.0149669657,
-0.0467515104,
-0.0501352698,
0.3053674698,
-0.0454383343,
-0.1721082777,
0.0894082785,
-0.1400021464,
0.1235911101,
0.0462603308,
0.5049251914,
0.5502217412,
0.1374111772,
0.0413785018,
-0.2163083404,
0.2009608299,
0.3659943938,
0.0553424843,
-0.1022307575,
0.1487469673,
0.0951429754,
0.3933895528,
-0.0603432842,
-0.3966610134,
-0.2915036976,
0.4472599626,
-0.0562155955,
-0.1207680926,
0.1564858109,
0.0250614155,
-0.1724924743,
-0.2683088481,
-0.3343341947,
-0.170334816,
0.106480062,
0.1056603715,
0.0908490121,
-0.061307773,
0.0446207672,
-0.1298353374,
-0.2531606853,
-0.3052237928,
-0.0670007989,
-0.1719999313,
0.0288536791,
-0.058690358,
-0.1425163895,
0.0911055654,
-0.1706538945,
-0.1698979735,
0.3151325285,
0.0565422662,
-0.1190058738,
0.0536042489,
-0.0231909715,
-0.191958487,
-0.0447357744,
0.0237634946,
-0.2283340394,
0.1782977432,
-0.1228148341,
0.076862976,
0.3081641793,
-0.1329179853,
0.236463517,
0.2309128046,
0.0722260848,
0.0287410971,
0.9346372485,
0.4259984195,
0.1337541193,
0.1054859161,
-0.0050866883,
-0.1113103032,
0.0277695712,
-0.2091868669,
0.0696028322,
-0.0040835529,
-0.2223212272,
0.2278603911,
-0.0533333756,
-0.0510842986,
-0.0543307513,
0.4830428064,
-0.3878194392,
-0.4113047123,
0.2514187396,
-0.1339636296,
0.1430373788,
-0.0634637102,
0.1352056861,
0.0034179562,
0.051851511,
-0.3238642514,
0.3723503649,
0.6840324998,
0.0787974298,
-0.3335604668,
-0.2034329623,
0.1091626063,
-0.1188939288,
0.2429919541,
0.236023441,
0.0331166238,
-0.1723501235,
0.1852574348,
0.2139885277,
1.0035452843,
0.0698848143,
-0.0713155493,
0.1751419306,
-0.1078396142,
0.2238150984,
-0.0718896091,
-0.1749580055,
0.1892580986,
0.073991783,
0.1319836974,
-0.4061217904,
-0.2338042557,
-0.0051982515,
0.4461128414,
-0.105528295,
-0.0611947998,
0.0108930869,
0.0180288646,
-0.1926850826,
0.131204322,
0.1845131367,
0.0162768606,
-0.1188838854,
-0.1092986465,
0.006172935,
-0.2024416924,
0.1696754396,
0.1074821427,
0.4021860361,
0.119180657,
0.2199012041,
0.2652859688,
-0.2765387297,
0.2222142667,
0.3064242899,
-0.3874232769,
-0.3323571682,
-0.1303473115,
-0.5022565126,
0.3288089931,
0.1313901842,
-0.1304758638,
0.0695614964,
-0.1969646811,
-0.1734098047,
-0.1204661876,
0.1301078498,
0.2851818502,
-0.173664853,
-0.1530524194,
-0.6710410714,
0.3475161493,
0.0427141786,
-0.090469718,
0.5216252208,
-0.3409266174,
-0.1521464139,
0.4326775074,
-0.0926358476,
0.5991627574,
-0.1708899438,
0.0016944176,
0.006423099,
0.5374948382,
0.1572348922,
-0.0105161117,
0.0857561305,
-0.2693864703,
-0.4592578411,
-0.2316503078,
-0.2514383197,
0.059121035,
0.5377879143,
-0.0869731829,
0.0531825908,
-0.2273863703,
-0.1006666124,
-0.1539773047,
-0.010627619,
-0.0455473885,
-0.1159324795,
-0.0164214298,
-0.0479990281,
-0.1417921782,
0.1763978601,
0.1815106422,
-0.1568815261,
0.0286268834,
-0.004537758,
-0.3593706191,
-0.0207994841,
-0.0406894498,
-0.1651330441,
0.017069431,
-0.0868792459,
0.0052190656,
0.2841287255,
-0.2209651768,
-0.0513921678,
0.1355522871,
0.1300030947,
-0.119323805,
-0.0126097966,
-0.3487890959,
-0.0778237805,
0.3172206879,
0.1575843245,
-0.1301663518,
0.106009528,
-0.0572709329,
-0.4175534546,
-0.1477216333,
0.2041466236,
0.2804665267,
-0.2656109333,
-0.5376277566,
0.1008565947,
-0.0632010475,
0.0431191213,
0.0061469944,
0.1896752268,
-0.2225388736,
0.3468295634,
-0.0925848112,
-0.0056064758,
0.0320769772,
-0.1889264882,
0.0692631528,
-0.1685346961,
0.3529904187,
0.0854187682,
-0.0536855571,
-0.2866610885,
0.0814153329,
-0.134173438,
-0.0582076907,
0.2703180313,
-0.0604627728,
0.353020072,
0.0367139094,
0.0682968423,
0.2153347433,
0.1412829906,
-0.1821471602,
-0.6045983434,
0.2448759973,
0.1488197148,
0.0904414058,
0.3770523667,
-0.0822676495,
0.2668079138,
-0.1099335477,
0.2634676099,
-0.1126063541,
0.0930375606,
0.2155742943,
0.1863119453,
0.1346306354,
0.1324447989,
-0.0327640958,
0.0740719959,
-0.0101239085,
0.1042904183,
0.0286126882,
-0.1058968455,
-0.0680628866,
0.1173506007,
0.1163083687,
0.1006413177,
0.1008263156,
0.0226469953,
-0.2740134895,
-0.3027725518,
0.179327786,
-0.2539673746,
0.0554063655,
0.151018858,
0.7681526542,
0.0637185276,
-0.3797898591,
0.0452201813,
-0.189355433,
0.1555940062,
0.0956036821,
0.2181665599,
0.1093074009,
-0.0047508245,
-0.4768043756,
-0.0098437378,
0.2439011633,
-0.1089686081,
-0.0905507654,
0.0835220143,
0.2070000023,
0.0270668603,
0.4364596009,
0.7404634356,
0.1301483065,
0.4848804176,
0.2463209033,
0.1492879689,
-0.1434833109,
0.0682018623,
0.1512394398,
0.1214120165,
0.0020373291,
0.2861408889,
-0.0152082304,
0.0409547836,
-0.2007864863,
-0.2533939183,
0.2422309071,
0.2562247217,
0.4884398878,
0.963960588,
0.0724735409,
0.0361187309,
-0.1169637367,
0.1322027892,
0.3788407147,
0.2384468317,
-0.4292247891,
0.5384776592,
-0.0042350646,
-0.1628542244,
-0.087417677,
-0.7342133522,
0.2144222111,
0.3714233339,
0.1754190028,
0.1611478925,
-0.0401278548,
0.7600796819,
-0.3678721488,
-0.1750857085,
-0.2595912218,
0.1456205845,
0.1086179167,
-0.1780227721,
-0.2276836187,
-0.0662629157,
-0.3687976897,
-0.0719540417,
0.2731825113,
-0.3108789027,
-0.0655130446,
0.0593589172,
0.1460466534,
-0.1520741284,
-0.0059194583,
-0.0339517631,
-0.2421078384,
-0.4008651674,
-0.2064204812,
-0.1082672849,
0.2427559346,
0.6257146001,
-0.3303343058,
0.0083571356,
0.0491569079,
0.0817206576,
-0.2312257588,
-0.3645603955,
0.0110467356,
0.0062822904,
-0.0571066253,
-0.1167689189,
0.095698379,
0.5006062388,
0.0493134931,
-0.0362400189,
0.1601585895,
0.1043369547,
-0.1322453618,
-0.4573706388,
0.3525466919,
0.0718610808,
0.0162154883,
-0.2391442209,
-0.2917620838,
-0.1211857796,
-0.0244757719,
-0.0647129342,
-0.1321186572,
0.0504419878,
0.4550062716,
0.0464036129,
-0.1049973816,
-0.087212041,
-0.1087279469,
0.0174960028,
-0.1154668406,
-0.153385818,
-0.4683509469,
-0.4039639831,
-0.2181061357,
-0.1178194731,
0.1383766532,
0.2690058053,
0.0030818079,
0.2361743003,
-0.1081131101,
-0.0170291364,
0.1897277087,
0.4029567838,
-0.1841489524,
-0.3247695267,
-0.1478237212,
0.3181470037,
-0.1806169003,
-0.2607772946,
-0.0513549522,
0.0818233564,
-0.1259542704,
-0.0365121663,
-0.149774611,
0.3844504952,
0.0456245132,
-0.1752360463,
-0.2018455565,
0.4326036274,
0.0438903831,
0.2329791933,
-0.1088434234,
-0.0967774317,
-0.2256958336,
-0.0982256532,
-0.0252842456,
0.5491031408,
-0.1545088291,
0.0189273767,
-0.2223614603,
0.0939048082,
0.0328007452,
-0.2733960748,
-0.3613684177,
0.0466829501,
-0.3458651304,
0.132879436,
0.3630691469,
0.132695049,
-0.1692214608,
-0.0482825488,
-0.0207223818,
-0.0508955978,
0.2685924172,
-0.5031933188,
-0.0445315093,
-0.1722717285,
0.0902006105,
-0.1271915883,
0.0717596784,
0.0037252142,
-0.0348260552,
0.4160358012,
-0.1965293288,
0.221265763,
0.0803876743,
0.3423402607,
-0.0423952267,
-0.1226456687,
0.0007278752,
0.2510320544,
-0.3887095451,
0.0162321683,
-0.2482428551
] |
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.2038710266,
-0.1601333916,
-0.0819258615,
0.046901986,
0.2665442228,
-0.0723188967,
0.1546958536,
0.3012446761,
0.1090678573,
-0.0955981091,
-0.1769393533,
-0.1569308937,
0.0424281619,
0.0098086512,
0.0353739783,
-0.17579633,
-0.095591493,
-0.0462967977,
-0.2514630556,
0.1877854466,
-0.1379353404,
0.1785493046,
-0.037973702,
0.2863894701,
-0.1777600348,
-0.2044935226,
-0.0835380554,
0.2092448622,
-0.1527039111,
-0.2665782273,
0.4261868,
-0.1104124188,
0.102388218,
0.427652359,
-0.0001111302,
0.2171021849,
0.4489411414,
0.0764487162,
-0.1543844044,
-0.3074431717,
-0.0379910208,
0.0689298287,
0.2134659141,
-0.2233348638,
-0.1960694343,
0.346177876,
0.049114801,
-0.1808768958,
0.4765045643,
0.2705875337,
0.2488420457,
0.3377010524,
0.4446746409,
-0.2152077407,
0.0332203247,
-0.2912709415,
0.0024017629,
0.6216797233,
0.1213354319,
-0.266105473,
0.2426154613,
0.206264466,
-0.1433542222,
-0.0120363012,
0.0456213653,
-0.1558197141,
0.0829062685,
-0.2861299515,
0.1528286338,
0.0686280876,
-0.1418162882,
-0.219216764,
-0.2591913044,
-0.0737400502,
-0.0262957197,
-0.1296842843,
0.3319051564,
0.1610925347,
-0.2213143855,
0.2277658284,
-0.0923093781,
-0.139112711,
-0.2099062353,
0.2466943413,
0.0454546176,
0.2128362954,
-0.285687983,
0.264490366,
0.433748275,
-0.0378364623,
-0.2852623463,
0.0696708113,
0.1732453555,
0.1920873523,
-0.2251848578,
0.0389769934,
-0.3048002422,
0.0818184689,
0.085852161,
0.0211907607,
-0.2492951304,
-0.1187238246,
0.2668733895,
0.1873599291,
-0.0882741436,
0.3309411407,
0.0141424173,
0.1095975563,
0.3459482789,
0.3594095707,
-0.1148072928,
0.0365824141,
-0.2656762004,
-0.465621829,
-0.3594939411,
0.0650141984,
0.2611832917,
0.0185202938,
-0.1696611792,
0.0698689744,
-0.1784017682,
0.0330274329,
0.1020843685,
0.5010195374,
-0.2648852468,
-0.366101414,
0.0398667008,
0.2935800552,
0.018017564,
0.0218925588,
-0.1782663763,
0.1572605371,
-0.2640622854,
0.0905433968,
0.0618727766,
-0.2543201447,
0.2353600562,
-0.2026712,
0.0230699349,
-0.1711887717,
0.1205859035,
-0.2005209774,
-0.158144325,
0.3388406336,
0.0797368139,
0.1804758161,
0.4291988611,
-0.3894390464,
-0.0596614107,
-0.0774279088,
-0.2149033248,
-0.4968356788,
0.0238058157,
0.1501095742,
-0.0620122068,
0.1604386121,
-0.0989378914,
-0.2489256263,
0.2021318078,
0.1912703365,
-0.0140953166,
-0.0100922314,
0.1434960663,
-0.2804525197,
0.5142767429,
0.4544945359,
0.1708979905,
-0.109047398,
-0.0004225268,
0.0640209466,
-0.0517981388,
0.2329599112,
-0.0699739754,
0.1279716939,
-0.3756051958,
0.1551725566,
0.3715333939,
-0.6533892155,
-0.2841062546,
0.3186045587,
-0.2741403282,
-0.0540162697,
0.1668802649,
-0.2321900129,
-0.0450623147,
0.0239412244,
0.3900931478,
0.074038282,
0.0700897947,
-0.2052419633,
-0.0241823252,
-0.3783532083,
0.1280159205,
0.0518316031,
0.117956534,
0.09410391,
0.0289574675,
-0.2993079722,
0.2291132361,
0.1804355681,
0.0232359134,
0.2225603312,
0.0875863358,
0.1844523996,
-0.0589133687,
-0.1022367254,
-0.0982041359,
0.1569277346,
-0.1393313706,
0.3022058904,
-0.4215774238,
0.0652291626,
-0.3841102123,
0.0516630113,
-0.2309432775,
-0.3040854633,
0.1636356413,
-0.0034319228,
0.4423213303,
0.1496354192,
-0.0936234891,
0.4874028265,
-0.1470744312,
0.2835754454,
-0.3597306311,
0.2300836891,
-0.3057551682,
-0.1062674969,
-0.1563710421,
0.1661882401,
0.351362437,
-0.2343124896,
-0.0265931357,
0.4231658876,
-0.264143765,
0.0973607302,
0.2657681704,
0.0963225812,
0.0315228999,
-0.2190818936,
0.0253640693,
-0.1022458598,
-0.0166739412,
0.063858375,
0.6379243135,
0.0479977205,
0.1513415873,
0.7245126963,
0.1906801462,
0.2567310631,
0.141764611,
-0.0172172524,
-0.2446910441,
0.0072810473,
0.205277577,
0.0509160422,
0.4524140954,
-0.3265388608,
0.1677901,
-0.2114033252,
0.1441135108,
-0.0354801975,
0.2344905734,
0.1491603702,
-0.3617247641,
0.2157288492,
-0.1119083613,
0.3587546051,
0.3501404822,
0.0897395611,
-0.0167157203,
0.2718507051,
-0.1022960991,
-0.0745456517,
0.3431274891,
0.0640023351,
0.0710159242,
-0.1801294535,
-0.0368258618,
-0.1345123947,
-0.1243022382,
-0.2394788414,
-0.1977584511,
0.1469755024,
-0.2880880833,
0.1693798304,
-0.1144181117,
-0.3013059795,
-0.1543430239,
-0.3460412323,
-0.4186740518,
-0.2409937233,
-0.3461466432,
0.0472730845,
0.0670877919,
0.2756134868,
0.1089540645,
0.0105084069,
-0.0052669332,
-0.1842110008,
-0.0347121507,
-0.1745302528,
-0.1391938627,
0.0206359867,
-0.0188449603,
-0.2574253678,
0.2771223783,
-0.1947546154,
-0.112735413,
0.0472368486,
-0.2349190712,
0.047972437,
-0.0904430822,
0.1711953729,
0.3285541832,
0.3805792928,
0.1841480881,
-0.3997780383,
0.5727687478,
0.0603624061,
0.1144243255,
-0.1596369594,
0.1083575711,
0.0168828666,
0.1767285168,
0.0041357791,
-0.6324494481,
-0.3507917225,
0.3485685289,
-0.0266019553,
0.151157245,
0.1762986928,
0.0596725866,
0.2824336886,
-0.3841684759,
0.0531045161,
-0.2631132305,
-0.432377398,
0.1425149292,
-0.2498617172,
-0.2201367617,
-0.0182345603,
0.1905054003,
0.2702788711,
-0.2122464329,
-0.3237495422,
-0.3732512891,
-0.2246034741,
-0.0373767465,
0.1037434265,
0.1593063027,
0.2925695777,
-0.1132496297,
-0.0387336351,
0.1269527674,
-0.2187675983,
0.2200420946,
-0.1979695261,
0.128196612,
0.2286255509,
0.3870926499,
0.0413929857,
0.544485569,
0.2436493337,
-0.0796828121,
0.3192814589,
-0.1745526046,
0.2922648489,
-0.0378906578,
-0.5508059859,
-0.1344227642,
-0.1521709412,
0.0345689245,
0.0439351723,
0.1621204913,
0.1705302298,
-0.5553135276,
-0.2198972553,
-0.1913199127,
-0.2798692584,
-0.0953920186,
0.0088961078,
0.1750697941,
0.0263881218,
-0.1763007194,
-0.2223936468,
0.1937032342,
0.2320328504,
0.5205127597,
-0.0382331051,
0.0609750338,
-0.1520734727,
-0.3924020529,
-0.4625764191,
0.4786422253,
0.0343587846,
0.192678988,
-0.2925171256,
-0.0163767207,
-0.0434862487,
0.1060830876,
0.7086894512,
-0.0712132752,
0.2219747901,
0.0485516153,
-0.0863400847,
-0.3645546436,
-0.0629988685,
0.0806385651,
0.2895563543,
0.5007996559,
0.4849517345,
-0.3278108835,
0.0968232378,
0.2301488817,
-0.0766403452,
-0.0308214873,
-0.0739791766,
-0.2963501811,
-0.3656423986,
-0.2678071856,
0.0053081834,
0.2438389808,
0.2123910487,
0.3308703899,
-0.1466614008,
0.1623215675,
-0.2427602559,
-0.0595806465,
-0.0181473438,
0.0382342786,
-0.2016496658,
-0.0326519832,
0.1781362295,
0.3460511267,
-0.3148243427,
0.4281018674,
-0.2402163297,
-0.2235832363,
0.1684296429,
0.3209204674,
0.4058355689,
0.3009505868,
-0.1991280168,
0.1601248384,
0.2677817643,
0.3612558544,
-0.1262011528,
0.1613375992,
0.4501326382,
0.3550080061,
-0.1951705664,
-0.2329108417,
0.2528255582,
-0.072912626,
0.0030149147,
0.2449310273,
0.4155493379,
-0.2275767773,
0.1655350775,
-0.2975749671,
1.1979163885,
0.0573297553,
-0.0391714163,
0.1336844563,
-0.2379473001,
0.5808712244,
-0.1565997154,
0.1131994128,
-0.1766392887,
-0.0917730331,
0.1218970343,
-0.2235734165,
0.3505118489,
-0.1980928779,
-0.0589324646,
0.2558605075,
-0.1141536385,
0.3006235063,
0.201445505,
0.2694350183,
-0.0904738158,
0.0046210391,
-0.257040441,
0.1390345991,
-0.0044749188,
0.424993068,
-0.0580966696,
-0.1384334117,
0.0146737378,
-0.3370608091,
-0.3443260789,
0.1544763446,
-0.7144249678,
0.1664407998,
0.0121584386,
-0.0822372735,
-0.1178105548,
-0.0211143922,
0.3912242055,
0.1099308506,
-0.2193235606,
0.1842374057,
-0.0037482074,
-0.312995106,
0.1039162874,
0.1227221563,
-0.0625953972,
-0.2693053782,
-0.203266561,
0.1417414099,
-0.1730960906,
-0.4226962924,
0.2038716227,
-0.1461987793,
0.151529178,
-0.1836434007,
-0.022626603,
-0.1612542719,
0.024226537,
-0.1469754279,
0.112170577,
-0.069380492,
-0.2479231358,
-0.10859745,
0.022369884,
-0.3606719971,
0.0174631011,
0.4281617701,
-0.1445813775,
0.072320357,
0.4555254579,
0.1247401908,
-0.1317321807,
-0.12844643,
-0.2199526131,
0.0430560447,
-0.4091936648,
-0.0014769913,
-0.0063632019,
-0.1436572373,
-0.2302158773,
-0.0912818313,
0.3861814439,
0.2269380689,
-0.0249441378,
-0.5732640028,
-0.1236654744,
0.1283734441,
-0.1113200188,
-0.0436675437,
0.1352206916,
0.2921498716,
0.0813924149,
0.077278927,
-0.2949266434,
-0.0582202449,
-0.1980375946,
-0.0909827054,
0.4604615271,
-0.4231756926,
0.556439817,
0.2472602129,
0.1833634526,
0.0185599308,
-0.1767929792,
-0.1913489997,
-0.0861809403,
0.1239020228,
-0.1045507565,
-0.2903296351,
0.0198582467,
-0.3376128376,
0.0041405582,
-0.0067033549,
0.0077220327,
0.0418778919,
0.0665358976,
-0.2817331254,
-0.032066077,
-0.0895534828,
-0.1053852066,
0.1841527075,
-0.1359492987,
0.1784515381,
0.0287577733,
-0.0061409106,
-0.2754324675,
-0.1757725924,
-0.2360017747,
-0.0797954202,
0.0297374055,
0.1081589162,
0.3297697306,
-0.1942863464,
-0.2923172116,
-0.1087816209,
0.4173104167,
-0.0037689393,
-0.1419619322,
0.0590194762,
0.1690811068,
0.1616690755,
-0.1311532259,
0.0745706707,
0.1629071534,
-0.1565769315,
0.1184275225,
0.2068684548,
-0.0237030387,
0.163873449,
0.0392771661,
0.0193122067,
0.8280630112,
0.2137531936,
0.0845071226,
0.1391804963,
0.0415812358,
-0.0628211498,
0.1529560685,
0.0035154284,
0.2465285659,
-0.0891734883,
-0.3549361229,
-0.0614766069,
-0.0593231656,
-0.0681368113,
0.2297046036,
-0.0699738711,
0.0251143184,
0.1838397384,
-0.09884803,
-0.1319562048,
-0.4080096781,
0.6134057641,
-0.4409067333,
-0.0357087031,
-0.1996203214,
0.3630472124,
0.0331470445,
-0.1725615561,
0.1452639848,
-0.1420485973,
-0.2319660485,
-0.3037567139,
0.0896620974,
-0.3973184526,
0.3674944937,
-0.0679671541,
0.0307095461,
-0.0729465932,
-0.3076351881,
0.1328385025,
0.2419951707,
-0.2333103269,
0.3818815649,
0.2886331677,
-0.037628565,
-0.1605474055,
0.4000950456,
0.6762165427,
0.2699618042,
-0.2351972163,
0.2674931288,
0.0332840234,
-0.0528570265,
-0.0259343665,
-0.0059955432,
0.2812906802,
-0.003465221,
0.2339333296,
0.2336764783,
-0.2260975838,
0.0528748035,
-0.1916486323,
0.3153737187,
-0.0148683349,
0.4126875401,
-0.3227865994,
-0.1426356584,
-0.3223922551,
0.1364281178,
-0.8104320765,
0.1720470339,
0.2672683597,
-0.4068027139,
0.0215155762,
-0.1731270999,
0.080315344,
-0.0752655789,
0.7511889338,
0.2013041973,
0.3521668017,
-0.4966928065,
-0.3168993294,
-0.2904433906,
0.2075127661,
-0.1204555705,
-0.137706086,
-0.0594683699,
-0.0786986873,
-0.1366245002,
0.1496260762,
0.1224856377,
0.1239466295,
-0.2708902955,
-0.1634466499,
-0.0168657396,
0.0420120172,
-0.0634031296,
0.1023463458,
0.2733126879,
-0.2260944992,
0.2341931313,
-0.0447946824,
0.038397003,
0.2165071517,
-0.0195570998,
0.1787249744,
-0.3686763048,
0.3712459505,
0.1257682145,
0.3474534154,
0.1640768498,
-0.0576719679,
-0.1508487314,
-0.2002635896,
-0.0525051542,
0.1181120053,
-0.0094586844,
0.0054063513,
-0.2345673144,
-0.2379546314,
-0.5355013609,
0.1884404421,
0.0324564725,
-0.0615434609,
0.0410016887,
-0.1977434903,
0.1453061253,
0.1729565412,
0.2607687116,
0.0437687114,
-0.0029305764,
0.1317537874,
-0.3068505526,
-0.2666342556,
0.6317306161,
-0.4022062421,
-0.2421781421,
0.0718516707,
0.3609128296,
0.1383720338,
0.1080271229,
-0.457880944,
0.03677807,
0.3818689883,
0.3051513135,
-0.2807103097,
0.2636131346,
-0.2206345648,
0.0750978142,
0.1570172906,
0.1133456826,
-0.1142304465,
-0.3479041159,
-0.0901176482,
-0.1272863448
] |
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.2038710266,
-0.1601333916,
-0.0819258615,
0.046901986,
0.2665442228,
-0.0723188967,
0.1546958536,
0.3012446761,
0.1090678573,
-0.0955981091,
-0.1769393533,
-0.1569308937,
0.0424281619,
0.0098086512,
0.0353739783,
-0.17579633,
-0.095591493,
-0.0462967977,
-0.2514630556,
0.1877854466,
-0.1379353404,
0.1785493046,
-0.037973702,
0.2863894701,
-0.1777600348,
-0.2044935226,
-0.0835380554,
0.2092448622,
-0.1527039111,
-0.2665782273,
0.4261868,
-0.1104124188,
0.102388218,
0.427652359,
-0.0001111302,
0.2171021849,
0.4489411414,
0.0764487162,
-0.1543844044,
-0.3074431717,
-0.0379910208,
0.0689298287,
0.2134659141,
-0.2233348638,
-0.1960694343,
0.346177876,
0.049114801,
-0.1808768958,
0.4765045643,
0.2705875337,
0.2488420457,
0.3377010524,
0.4446746409,
-0.2152077407,
0.0332203247,
-0.2912709415,
0.0024017629,
0.6216797233,
0.1213354319,
-0.266105473,
0.2426154613,
0.206264466,
-0.1433542222,
-0.0120363012,
0.0456213653,
-0.1558197141,
0.0829062685,
-0.2861299515,
0.1528286338,
0.0686280876,
-0.1418162882,
-0.219216764,
-0.2591913044,
-0.0737400502,
-0.0262957197,
-0.1296842843,
0.3319051564,
0.1610925347,
-0.2213143855,
0.2277658284,
-0.0923093781,
-0.139112711,
-0.2099062353,
0.2466943413,
0.0454546176,
0.2128362954,
-0.285687983,
0.264490366,
0.433748275,
-0.0378364623,
-0.2852623463,
0.0696708113,
0.1732453555,
0.1920873523,
-0.2251848578,
0.0389769934,
-0.3048002422,
0.0818184689,
0.085852161,
0.0211907607,
-0.2492951304,
-0.1187238246,
0.2668733895,
0.1873599291,
-0.0882741436,
0.3309411407,
0.0141424173,
0.1095975563,
0.3459482789,
0.3594095707,
-0.1148072928,
0.0365824141,
-0.2656762004,
-0.465621829,
-0.3594939411,
0.0650141984,
0.2611832917,
0.0185202938,
-0.1696611792,
0.0698689744,
-0.1784017682,
0.0330274329,
0.1020843685,
0.5010195374,
-0.2648852468,
-0.366101414,
0.0398667008,
0.2935800552,
0.018017564,
0.0218925588,
-0.1782663763,
0.1572605371,
-0.2640622854,
0.0905433968,
0.0618727766,
-0.2543201447,
0.2353600562,
-0.2026712,
0.0230699349,
-0.1711887717,
0.1205859035,
-0.2005209774,
-0.158144325,
0.3388406336,
0.0797368139,
0.1804758161,
0.4291988611,
-0.3894390464,
-0.0596614107,
-0.0774279088,
-0.2149033248,
-0.4968356788,
0.0238058157,
0.1501095742,
-0.0620122068,
0.1604386121,
-0.0989378914,
-0.2489256263,
0.2021318078,
0.1912703365,
-0.0140953166,
-0.0100922314,
0.1434960663,
-0.2804525197,
0.5142767429,
0.4544945359,
0.1708979905,
-0.109047398,
-0.0004225268,
0.0640209466,
-0.0517981388,
0.2329599112,
-0.0699739754,
0.1279716939,
-0.3756051958,
0.1551725566,
0.3715333939,
-0.6533892155,
-0.2841062546,
0.3186045587,
-0.2741403282,
-0.0540162697,
0.1668802649,
-0.2321900129,
-0.0450623147,
0.0239412244,
0.3900931478,
0.074038282,
0.0700897947,
-0.2052419633,
-0.0241823252,
-0.3783532083,
0.1280159205,
0.0518316031,
0.117956534,
0.09410391,
0.0289574675,
-0.2993079722,
0.2291132361,
0.1804355681,
0.0232359134,
0.2225603312,
0.0875863358,
0.1844523996,
-0.0589133687,
-0.1022367254,
-0.0982041359,
0.1569277346,
-0.1393313706,
0.3022058904,
-0.4215774238,
0.0652291626,
-0.3841102123,
0.0516630113,
-0.2309432775,
-0.3040854633,
0.1636356413,
-0.0034319228,
0.4423213303,
0.1496354192,
-0.0936234891,
0.4874028265,
-0.1470744312,
0.2835754454,
-0.3597306311,
0.2300836891,
-0.3057551682,
-0.1062674969,
-0.1563710421,
0.1661882401,
0.351362437,
-0.2343124896,
-0.0265931357,
0.4231658876,
-0.264143765,
0.0973607302,
0.2657681704,
0.0963225812,
0.0315228999,
-0.2190818936,
0.0253640693,
-0.1022458598,
-0.0166739412,
0.063858375,
0.6379243135,
0.0479977205,
0.1513415873,
0.7245126963,
0.1906801462,
0.2567310631,
0.141764611,
-0.0172172524,
-0.2446910441,
0.0072810473,
0.205277577,
0.0509160422,
0.4524140954,
-0.3265388608,
0.1677901,
-0.2114033252,
0.1441135108,
-0.0354801975,
0.2344905734,
0.1491603702,
-0.3617247641,
0.2157288492,
-0.1119083613,
0.3587546051,
0.3501404822,
0.0897395611,
-0.0167157203,
0.2718507051,
-0.1022960991,
-0.0745456517,
0.3431274891,
0.0640023351,
0.0710159242,
-0.1801294535,
-0.0368258618,
-0.1345123947,
-0.1243022382,
-0.2394788414,
-0.1977584511,
0.1469755024,
-0.2880880833,
0.1693798304,
-0.1144181117,
-0.3013059795,
-0.1543430239,
-0.3460412323,
-0.4186740518,
-0.2409937233,
-0.3461466432,
0.0472730845,
0.0670877919,
0.2756134868,
0.1089540645,
0.0105084069,
-0.0052669332,
-0.1842110008,
-0.0347121507,
-0.1745302528,
-0.1391938627,
0.0206359867,
-0.0188449603,
-0.2574253678,
0.2771223783,
-0.1947546154,
-0.112735413,
0.0472368486,
-0.2349190712,
0.047972437,
-0.0904430822,
0.1711953729,
0.3285541832,
0.3805792928,
0.1841480881,
-0.3997780383,
0.5727687478,
0.0603624061,
0.1144243255,
-0.1596369594,
0.1083575711,
0.0168828666,
0.1767285168,
0.0041357791,
-0.6324494481,
-0.3507917225,
0.3485685289,
-0.0266019553,
0.151157245,
0.1762986928,
0.0596725866,
0.2824336886,
-0.3841684759,
0.0531045161,
-0.2631132305,
-0.432377398,
0.1425149292,
-0.2498617172,
-0.2201367617,
-0.0182345603,
0.1905054003,
0.2702788711,
-0.2122464329,
-0.3237495422,
-0.3732512891,
-0.2246034741,
-0.0373767465,
0.1037434265,
0.1593063027,
0.2925695777,
-0.1132496297,
-0.0387336351,
0.1269527674,
-0.2187675983,
0.2200420946,
-0.1979695261,
0.128196612,
0.2286255509,
0.3870926499,
0.0413929857,
0.544485569,
0.2436493337,
-0.0796828121,
0.3192814589,
-0.1745526046,
0.2922648489,
-0.0378906578,
-0.5508059859,
-0.1344227642,
-0.1521709412,
0.0345689245,
0.0439351723,
0.1621204913,
0.1705302298,
-0.5553135276,
-0.2198972553,
-0.1913199127,
-0.2798692584,
-0.0953920186,
0.0088961078,
0.1750697941,
0.0263881218,
-0.1763007194,
-0.2223936468,
0.1937032342,
0.2320328504,
0.5205127597,
-0.0382331051,
0.0609750338,
-0.1520734727,
-0.3924020529,
-0.4625764191,
0.4786422253,
0.0343587846,
0.192678988,
-0.2925171256,
-0.0163767207,
-0.0434862487,
0.1060830876,
0.7086894512,
-0.0712132752,
0.2219747901,
0.0485516153,
-0.0863400847,
-0.3645546436,
-0.0629988685,
0.0806385651,
0.2895563543,
0.5007996559,
0.4849517345,
-0.3278108835,
0.0968232378,
0.2301488817,
-0.0766403452,
-0.0308214873,
-0.0739791766,
-0.2963501811,
-0.3656423986,
-0.2678071856,
0.0053081834,
0.2438389808,
0.2123910487,
0.3308703899,
-0.1466614008,
0.1623215675,
-0.2427602559,
-0.0595806465,
-0.0181473438,
0.0382342786,
-0.2016496658,
-0.0326519832,
0.1781362295,
0.3460511267,
-0.3148243427,
0.4281018674,
-0.2402163297,
-0.2235832363,
0.1684296429,
0.3209204674,
0.4058355689,
0.3009505868,
-0.1991280168,
0.1601248384,
0.2677817643,
0.3612558544,
-0.1262011528,
0.1613375992,
0.4501326382,
0.3550080061,
-0.1951705664,
-0.2329108417,
0.2528255582,
-0.072912626,
0.0030149147,
0.2449310273,
0.4155493379,
-0.2275767773,
0.1655350775,
-0.2975749671,
1.1979163885,
0.0573297553,
-0.0391714163,
0.1336844563,
-0.2379473001,
0.5808712244,
-0.1565997154,
0.1131994128,
-0.1766392887,
-0.0917730331,
0.1218970343,
-0.2235734165,
0.3505118489,
-0.1980928779,
-0.0589324646,
0.2558605075,
-0.1141536385,
0.3006235063,
0.201445505,
0.2694350183,
-0.0904738158,
0.0046210391,
-0.257040441,
0.1390345991,
-0.0044749188,
0.424993068,
-0.0580966696,
-0.1384334117,
0.0146737378,
-0.3370608091,
-0.3443260789,
0.1544763446,
-0.7144249678,
0.1664407998,
0.0121584386,
-0.0822372735,
-0.1178105548,
-0.0211143922,
0.3912242055,
0.1099308506,
-0.2193235606,
0.1842374057,
-0.0037482074,
-0.312995106,
0.1039162874,
0.1227221563,
-0.0625953972,
-0.2693053782,
-0.203266561,
0.1417414099,
-0.1730960906,
-0.4226962924,
0.2038716227,
-0.1461987793,
0.151529178,
-0.1836434007,
-0.022626603,
-0.1612542719,
0.024226537,
-0.1469754279,
0.112170577,
-0.069380492,
-0.2479231358,
-0.10859745,
0.022369884,
-0.3606719971,
0.0174631011,
0.4281617701,
-0.1445813775,
0.072320357,
0.4555254579,
0.1247401908,
-0.1317321807,
-0.12844643,
-0.2199526131,
0.0430560447,
-0.4091936648,
-0.0014769913,
-0.0063632019,
-0.1436572373,
-0.2302158773,
-0.0912818313,
0.3861814439,
0.2269380689,
-0.0249441378,
-0.5732640028,
-0.1236654744,
0.1283734441,
-0.1113200188,
-0.0436675437,
0.1352206916,
0.2921498716,
0.0813924149,
0.077278927,
-0.2949266434,
-0.0582202449,
-0.1980375946,
-0.0909827054,
0.4604615271,
-0.4231756926,
0.556439817,
0.2472602129,
0.1833634526,
0.0185599308,
-0.1767929792,
-0.1913489997,
-0.0861809403,
0.1239020228,
-0.1045507565,
-0.2903296351,
0.0198582467,
-0.3376128376,
0.0041405582,
-0.0067033549,
0.0077220327,
0.0418778919,
0.0665358976,
-0.2817331254,
-0.032066077,
-0.0895534828,
-0.1053852066,
0.1841527075,
-0.1359492987,
0.1784515381,
0.0287577733,
-0.0061409106,
-0.2754324675,
-0.1757725924,
-0.2360017747,
-0.0797954202,
0.0297374055,
0.1081589162,
0.3297697306,
-0.1942863464,
-0.2923172116,
-0.1087816209,
0.4173104167,
-0.0037689393,
-0.1419619322,
0.0590194762,
0.1690811068,
0.1616690755,
-0.1311532259,
0.0745706707,
0.1629071534,
-0.1565769315,
0.1184275225,
0.2068684548,
-0.0237030387,
0.163873449,
0.0392771661,
0.0193122067,
0.8280630112,
0.2137531936,
0.0845071226,
0.1391804963,
0.0415812358,
-0.0628211498,
0.1529560685,
0.0035154284,
0.2465285659,
-0.0891734883,
-0.3549361229,
-0.0614766069,
-0.0593231656,
-0.0681368113,
0.2297046036,
-0.0699738711,
0.0251143184,
0.1838397384,
-0.09884803,
-0.1319562048,
-0.4080096781,
0.6134057641,
-0.4409067333,
-0.0357087031,
-0.1996203214,
0.3630472124,
0.0331470445,
-0.1725615561,
0.1452639848,
-0.1420485973,
-0.2319660485,
-0.3037567139,
0.0896620974,
-0.3973184526,
0.3674944937,
-0.0679671541,
0.0307095461,
-0.0729465932,
-0.3076351881,
0.1328385025,
0.2419951707,
-0.2333103269,
0.3818815649,
0.2886331677,
-0.037628565,
-0.1605474055,
0.4000950456,
0.6762165427,
0.2699618042,
-0.2351972163,
0.2674931288,
0.0332840234,
-0.0528570265,
-0.0259343665,
-0.0059955432,
0.2812906802,
-0.003465221,
0.2339333296,
0.2336764783,
-0.2260975838,
0.0528748035,
-0.1916486323,
0.3153737187,
-0.0148683349,
0.4126875401,
-0.3227865994,
-0.1426356584,
-0.3223922551,
0.1364281178,
-0.8104320765,
0.1720470339,
0.2672683597,
-0.4068027139,
0.0215155762,
-0.1731270999,
0.080315344,
-0.0752655789,
0.7511889338,
0.2013041973,
0.3521668017,
-0.4966928065,
-0.3168993294,
-0.2904433906,
0.2075127661,
-0.1204555705,
-0.137706086,
-0.0594683699,
-0.0786986873,
-0.1366245002,
0.1496260762,
0.1224856377,
0.1239466295,
-0.2708902955,
-0.1634466499,
-0.0168657396,
0.0420120172,
-0.0634031296,
0.1023463458,
0.2733126879,
-0.2260944992,
0.2341931313,
-0.0447946824,
0.038397003,
0.2165071517,
-0.0195570998,
0.1787249744,
-0.3686763048,
0.3712459505,
0.1257682145,
0.3474534154,
0.1640768498,
-0.0576719679,
-0.1508487314,
-0.2002635896,
-0.0525051542,
0.1181120053,
-0.0094586844,
0.0054063513,
-0.2345673144,
-0.2379546314,
-0.5355013609,
0.1884404421,
0.0324564725,
-0.0615434609,
0.0410016887,
-0.1977434903,
0.1453061253,
0.1729565412,
0.2607687116,
0.0437687114,
-0.0029305764,
0.1317537874,
-0.3068505526,
-0.2666342556,
0.6317306161,
-0.4022062421,
-0.2421781421,
0.0718516707,
0.3609128296,
0.1383720338,
0.1080271229,
-0.457880944,
0.03677807,
0.3818689883,
0.3051513135,
-0.2807103097,
0.2636131346,
-0.2206345648,
0.0750978142,
0.1570172906,
0.1133456826,
-0.1142304465,
-0.3479041159,
-0.0901176482,
-0.1272863448
] |
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.2038710266,
-0.1601333916,
-0.0819258615,
0.046901986,
0.2665442228,
-0.0723188967,
0.1546958536,
0.3012446761,
0.1090678573,
-0.0955981091,
-0.1769393533,
-0.1569308937,
0.0424281619,
0.0098086512,
0.0353739783,
-0.17579633,
-0.095591493,
-0.0462967977,
-0.2514630556,
0.1877854466,
-0.1379353404,
0.1785493046,
-0.037973702,
0.2863894701,
-0.1777600348,
-0.2044935226,
-0.0835380554,
0.2092448622,
-0.1527039111,
-0.2665782273,
0.4261868,
-0.1104124188,
0.102388218,
0.427652359,
-0.0001111302,
0.2171021849,
0.4489411414,
0.0764487162,
-0.1543844044,
-0.3074431717,
-0.0379910208,
0.0689298287,
0.2134659141,
-0.2233348638,
-0.1960694343,
0.346177876,
0.049114801,
-0.1808768958,
0.4765045643,
0.2705875337,
0.2488420457,
0.3377010524,
0.4446746409,
-0.2152077407,
0.0332203247,
-0.2912709415,
0.0024017629,
0.6216797233,
0.1213354319,
-0.266105473,
0.2426154613,
0.206264466,
-0.1433542222,
-0.0120363012,
0.0456213653,
-0.1558197141,
0.0829062685,
-0.2861299515,
0.1528286338,
0.0686280876,
-0.1418162882,
-0.219216764,
-0.2591913044,
-0.0737400502,
-0.0262957197,
-0.1296842843,
0.3319051564,
0.1610925347,
-0.2213143855,
0.2277658284,
-0.0923093781,
-0.139112711,
-0.2099062353,
0.2466943413,
0.0454546176,
0.2128362954,
-0.285687983,
0.264490366,
0.433748275,
-0.0378364623,
-0.2852623463,
0.0696708113,
0.1732453555,
0.1920873523,
-0.2251848578,
0.0389769934,
-0.3048002422,
0.0818184689,
0.085852161,
0.0211907607,
-0.2492951304,
-0.1187238246,
0.2668733895,
0.1873599291,
-0.0882741436,
0.3309411407,
0.0141424173,
0.1095975563,
0.3459482789,
0.3594095707,
-0.1148072928,
0.0365824141,
-0.2656762004,
-0.465621829,
-0.3594939411,
0.0650141984,
0.2611832917,
0.0185202938,
-0.1696611792,
0.0698689744,
-0.1784017682,
0.0330274329,
0.1020843685,
0.5010195374,
-0.2648852468,
-0.366101414,
0.0398667008,
0.2935800552,
0.018017564,
0.0218925588,
-0.1782663763,
0.1572605371,
-0.2640622854,
0.0905433968,
0.0618727766,
-0.2543201447,
0.2353600562,
-0.2026712,
0.0230699349,
-0.1711887717,
0.1205859035,
-0.2005209774,
-0.158144325,
0.3388406336,
0.0797368139,
0.1804758161,
0.4291988611,
-0.3894390464,
-0.0596614107,
-0.0774279088,
-0.2149033248,
-0.4968356788,
0.0238058157,
0.1501095742,
-0.0620122068,
0.1604386121,
-0.0989378914,
-0.2489256263,
0.2021318078,
0.1912703365,
-0.0140953166,
-0.0100922314,
0.1434960663,
-0.2804525197,
0.5142767429,
0.4544945359,
0.1708979905,
-0.109047398,
-0.0004225268,
0.0640209466,
-0.0517981388,
0.2329599112,
-0.0699739754,
0.1279716939,
-0.3756051958,
0.1551725566,
0.3715333939,
-0.6533892155,
-0.2841062546,
0.3186045587,
-0.2741403282,
-0.0540162697,
0.1668802649,
-0.2321900129,
-0.0450623147,
0.0239412244,
0.3900931478,
0.074038282,
0.0700897947,
-0.2052419633,
-0.0241823252,
-0.3783532083,
0.1280159205,
0.0518316031,
0.117956534,
0.09410391,
0.0289574675,
-0.2993079722,
0.2291132361,
0.1804355681,
0.0232359134,
0.2225603312,
0.0875863358,
0.1844523996,
-0.0589133687,
-0.1022367254,
-0.0982041359,
0.1569277346,
-0.1393313706,
0.3022058904,
-0.4215774238,
0.0652291626,
-0.3841102123,
0.0516630113,
-0.2309432775,
-0.3040854633,
0.1636356413,
-0.0034319228,
0.4423213303,
0.1496354192,
-0.0936234891,
0.4874028265,
-0.1470744312,
0.2835754454,
-0.3597306311,
0.2300836891,
-0.3057551682,
-0.1062674969,
-0.1563710421,
0.1661882401,
0.351362437,
-0.2343124896,
-0.0265931357,
0.4231658876,
-0.264143765,
0.0973607302,
0.2657681704,
0.0963225812,
0.0315228999,
-0.2190818936,
0.0253640693,
-0.1022458598,
-0.0166739412,
0.063858375,
0.6379243135,
0.0479977205,
0.1513415873,
0.7245126963,
0.1906801462,
0.2567310631,
0.141764611,
-0.0172172524,
-0.2446910441,
0.0072810473,
0.205277577,
0.0509160422,
0.4524140954,
-0.3265388608,
0.1677901,
-0.2114033252,
0.1441135108,
-0.0354801975,
0.2344905734,
0.1491603702,
-0.3617247641,
0.2157288492,
-0.1119083613,
0.3587546051,
0.3501404822,
0.0897395611,
-0.0167157203,
0.2718507051,
-0.1022960991,
-0.0745456517,
0.3431274891,
0.0640023351,
0.0710159242,
-0.1801294535,
-0.0368258618,
-0.1345123947,
-0.1243022382,
-0.2394788414,
-0.1977584511,
0.1469755024,
-0.2880880833,
0.1693798304,
-0.1144181117,
-0.3013059795,
-0.1543430239,
-0.3460412323,
-0.4186740518,
-0.2409937233,
-0.3461466432,
0.0472730845,
0.0670877919,
0.2756134868,
0.1089540645,
0.0105084069,
-0.0052669332,
-0.1842110008,
-0.0347121507,
-0.1745302528,
-0.1391938627,
0.0206359867,
-0.0188449603,
-0.2574253678,
0.2771223783,
-0.1947546154,
-0.112735413,
0.0472368486,
-0.2349190712,
0.047972437,
-0.0904430822,
0.1711953729,
0.3285541832,
0.3805792928,
0.1841480881,
-0.3997780383,
0.5727687478,
0.0603624061,
0.1144243255,
-0.1596369594,
0.1083575711,
0.0168828666,
0.1767285168,
0.0041357791,
-0.6324494481,
-0.3507917225,
0.3485685289,
-0.0266019553,
0.151157245,
0.1762986928,
0.0596725866,
0.2824336886,
-0.3841684759,
0.0531045161,
-0.2631132305,
-0.432377398,
0.1425149292,
-0.2498617172,
-0.2201367617,
-0.0182345603,
0.1905054003,
0.2702788711,
-0.2122464329,
-0.3237495422,
-0.3732512891,
-0.2246034741,
-0.0373767465,
0.1037434265,
0.1593063027,
0.2925695777,
-0.1132496297,
-0.0387336351,
0.1269527674,
-0.2187675983,
0.2200420946,
-0.1979695261,
0.128196612,
0.2286255509,
0.3870926499,
0.0413929857,
0.544485569,
0.2436493337,
-0.0796828121,
0.3192814589,
-0.1745526046,
0.2922648489,
-0.0378906578,
-0.5508059859,
-0.1344227642,
-0.1521709412,
0.0345689245,
0.0439351723,
0.1621204913,
0.1705302298,
-0.5553135276,
-0.2198972553,
-0.1913199127,
-0.2798692584,
-0.0953920186,
0.0088961078,
0.1750697941,
0.0263881218,
-0.1763007194,
-0.2223936468,
0.1937032342,
0.2320328504,
0.5205127597,
-0.0382331051,
0.0609750338,
-0.1520734727,
-0.3924020529,
-0.4625764191,
0.4786422253,
0.0343587846,
0.192678988,
-0.2925171256,
-0.0163767207,
-0.0434862487,
0.1060830876,
0.7086894512,
-0.0712132752,
0.2219747901,
0.0485516153,
-0.0863400847,
-0.3645546436,
-0.0629988685,
0.0806385651,
0.2895563543,
0.5007996559,
0.4849517345,
-0.3278108835,
0.0968232378,
0.2301488817,
-0.0766403452,
-0.0308214873,
-0.0739791766,
-0.2963501811,
-0.3656423986,
-0.2678071856,
0.0053081834,
0.2438389808,
0.2123910487,
0.3308703899,
-0.1466614008,
0.1623215675,
-0.2427602559,
-0.0595806465,
-0.0181473438,
0.0382342786,
-0.2016496658,
-0.0326519832,
0.1781362295,
0.3460511267,
-0.3148243427,
0.4281018674,
-0.2402163297,
-0.2235832363,
0.1684296429,
0.3209204674,
0.4058355689,
0.3009505868,
-0.1991280168,
0.1601248384,
0.2677817643,
0.3612558544,
-0.1262011528,
0.1613375992,
0.4501326382,
0.3550080061,
-0.1951705664,
-0.2329108417,
0.2528255582,
-0.072912626,
0.0030149147,
0.2449310273,
0.4155493379,
-0.2275767773,
0.1655350775,
-0.2975749671,
1.1979163885,
0.0573297553,
-0.0391714163,
0.1336844563,
-0.2379473001,
0.5808712244,
-0.1565997154,
0.1131994128,
-0.1766392887,
-0.0917730331,
0.1218970343,
-0.2235734165,
0.3505118489,
-0.1980928779,
-0.0589324646,
0.2558605075,
-0.1141536385,
0.3006235063,
0.201445505,
0.2694350183,
-0.0904738158,
0.0046210391,
-0.257040441,
0.1390345991,
-0.0044749188,
0.424993068,
-0.0580966696,
-0.1384334117,
0.0146737378,
-0.3370608091,
-0.3443260789,
0.1544763446,
-0.7144249678,
0.1664407998,
0.0121584386,
-0.0822372735,
-0.1178105548,
-0.0211143922,
0.3912242055,
0.1099308506,
-0.2193235606,
0.1842374057,
-0.0037482074,
-0.312995106,
0.1039162874,
0.1227221563,
-0.0625953972,
-0.2693053782,
-0.203266561,
0.1417414099,
-0.1730960906,
-0.4226962924,
0.2038716227,
-0.1461987793,
0.151529178,
-0.1836434007,
-0.022626603,
-0.1612542719,
0.024226537,
-0.1469754279,
0.112170577,
-0.069380492,
-0.2479231358,
-0.10859745,
0.022369884,
-0.3606719971,
0.0174631011,
0.4281617701,
-0.1445813775,
0.072320357,
0.4555254579,
0.1247401908,
-0.1317321807,
-0.12844643,
-0.2199526131,
0.0430560447,
-0.4091936648,
-0.0014769913,
-0.0063632019,
-0.1436572373,
-0.2302158773,
-0.0912818313,
0.3861814439,
0.2269380689,
-0.0249441378,
-0.5732640028,
-0.1236654744,
0.1283734441,
-0.1113200188,
-0.0436675437,
0.1352206916,
0.2921498716,
0.0813924149,
0.077278927,
-0.2949266434,
-0.0582202449,
-0.1980375946,
-0.0909827054,
0.4604615271,
-0.4231756926,
0.556439817,
0.2472602129,
0.1833634526,
0.0185599308,
-0.1767929792,
-0.1913489997,
-0.0861809403,
0.1239020228,
-0.1045507565,
-0.2903296351,
0.0198582467,
-0.3376128376,
0.0041405582,
-0.0067033549,
0.0077220327,
0.0418778919,
0.0665358976,
-0.2817331254,
-0.032066077,
-0.0895534828,
-0.1053852066,
0.1841527075,
-0.1359492987,
0.1784515381,
0.0287577733,
-0.0061409106,
-0.2754324675,
-0.1757725924,
-0.2360017747,
-0.0797954202,
0.0297374055,
0.1081589162,
0.3297697306,
-0.1942863464,
-0.2923172116,
-0.1087816209,
0.4173104167,
-0.0037689393,
-0.1419619322,
0.0590194762,
0.1690811068,
0.1616690755,
-0.1311532259,
0.0745706707,
0.1629071534,
-0.1565769315,
0.1184275225,
0.2068684548,
-0.0237030387,
0.163873449,
0.0392771661,
0.0193122067,
0.8280630112,
0.2137531936,
0.0845071226,
0.1391804963,
0.0415812358,
-0.0628211498,
0.1529560685,
0.0035154284,
0.2465285659,
-0.0891734883,
-0.3549361229,
-0.0614766069,
-0.0593231656,
-0.0681368113,
0.2297046036,
-0.0699738711,
0.0251143184,
0.1838397384,
-0.09884803,
-0.1319562048,
-0.4080096781,
0.6134057641,
-0.4409067333,
-0.0357087031,
-0.1996203214,
0.3630472124,
0.0331470445,
-0.1725615561,
0.1452639848,
-0.1420485973,
-0.2319660485,
-0.3037567139,
0.0896620974,
-0.3973184526,
0.3674944937,
-0.0679671541,
0.0307095461,
-0.0729465932,
-0.3076351881,
0.1328385025,
0.2419951707,
-0.2333103269,
0.3818815649,
0.2886331677,
-0.037628565,
-0.1605474055,
0.4000950456,
0.6762165427,
0.2699618042,
-0.2351972163,
0.2674931288,
0.0332840234,
-0.0528570265,
-0.0259343665,
-0.0059955432,
0.2812906802,
-0.003465221,
0.2339333296,
0.2336764783,
-0.2260975838,
0.0528748035,
-0.1916486323,
0.3153737187,
-0.0148683349,
0.4126875401,
-0.3227865994,
-0.1426356584,
-0.3223922551,
0.1364281178,
-0.8104320765,
0.1720470339,
0.2672683597,
-0.4068027139,
0.0215155762,
-0.1731270999,
0.080315344,
-0.0752655789,
0.7511889338,
0.2013041973,
0.3521668017,
-0.4966928065,
-0.3168993294,
-0.2904433906,
0.2075127661,
-0.1204555705,
-0.137706086,
-0.0594683699,
-0.0786986873,
-0.1366245002,
0.1496260762,
0.1224856377,
0.1239466295,
-0.2708902955,
-0.1634466499,
-0.0168657396,
0.0420120172,
-0.0634031296,
0.1023463458,
0.2733126879,
-0.2260944992,
0.2341931313,
-0.0447946824,
0.038397003,
0.2165071517,
-0.0195570998,
0.1787249744,
-0.3686763048,
0.3712459505,
0.1257682145,
0.3474534154,
0.1640768498,
-0.0576719679,
-0.1508487314,
-0.2002635896,
-0.0525051542,
0.1181120053,
-0.0094586844,
0.0054063513,
-0.2345673144,
-0.2379546314,
-0.5355013609,
0.1884404421,
0.0324564725,
-0.0615434609,
0.0410016887,
-0.1977434903,
0.1453061253,
0.1729565412,
0.2607687116,
0.0437687114,
-0.0029305764,
0.1317537874,
-0.3068505526,
-0.2666342556,
0.6317306161,
-0.4022062421,
-0.2421781421,
0.0718516707,
0.3609128296,
0.1383720338,
0.1080271229,
-0.457880944,
0.03677807,
0.3818689883,
0.3051513135,
-0.2807103097,
0.2636131346,
-0.2206345648,
0.0750978142,
0.1570172906,
0.1133456826,
-0.1142304465,
-0.3479041159,
-0.0901176482,
-0.1272863448
] |
https://github.com/huggingface/datasets/issues/2787 | ConnectionError: Couldn't reach https://raw.githubusercontent.com | > Finally i can access it, by the superfast software. Thanks
Excuse me, I have the same problem as you, could you please tell me how to solve it? | 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!
| 29 | 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!
> Finally i can access it, by the superfast software. Thanks
Excuse me, I have the same problem as you, could you please tell me how to solve it? | [
-0.2038710266,
-0.1601333916,
-0.0819258615,
0.046901986,
0.2665442228,
-0.0723188967,
0.1546958536,
0.3012446761,
0.1090678573,
-0.0955981091,
-0.1769393533,
-0.1569308937,
0.0424281619,
0.0098086512,
0.0353739783,
-0.17579633,
-0.095591493,
-0.0462967977,
-0.2514630556,
0.1877854466,
-0.1379353404,
0.1785493046,
-0.037973702,
0.2863894701,
-0.1777600348,
-0.2044935226,
-0.0835380554,
0.2092448622,
-0.1527039111,
-0.2665782273,
0.4261868,
-0.1104124188,
0.102388218,
0.427652359,
-0.0001111302,
0.2171021849,
0.4489411414,
0.0764487162,
-0.1543844044,
-0.3074431717,
-0.0379910208,
0.0689298287,
0.2134659141,
-0.2233348638,
-0.1960694343,
0.346177876,
0.049114801,
-0.1808768958,
0.4765045643,
0.2705875337,
0.2488420457,
0.3377010524,
0.4446746409,
-0.2152077407,
0.0332203247,
-0.2912709415,
0.0024017629,
0.6216797233,
0.1213354319,
-0.266105473,
0.2426154613,
0.206264466,
-0.1433542222,
-0.0120363012,
0.0456213653,
-0.1558197141,
0.0829062685,
-0.2861299515,
0.1528286338,
0.0686280876,
-0.1418162882,
-0.219216764,
-0.2591913044,
-0.0737400502,
-0.0262957197,
-0.1296842843,
0.3319051564,
0.1610925347,
-0.2213143855,
0.2277658284,
-0.0923093781,
-0.139112711,
-0.2099062353,
0.2466943413,
0.0454546176,
0.2128362954,
-0.285687983,
0.264490366,
0.433748275,
-0.0378364623,
-0.2852623463,
0.0696708113,
0.1732453555,
0.1920873523,
-0.2251848578,
0.0389769934,
-0.3048002422,
0.0818184689,
0.085852161,
0.0211907607,
-0.2492951304,
-0.1187238246,
0.2668733895,
0.1873599291,
-0.0882741436,
0.3309411407,
0.0141424173,
0.1095975563,
0.3459482789,
0.3594095707,
-0.1148072928,
0.0365824141,
-0.2656762004,
-0.465621829,
-0.3594939411,
0.0650141984,
0.2611832917,
0.0185202938,
-0.1696611792,
0.0698689744,
-0.1784017682,
0.0330274329,
0.1020843685,
0.5010195374,
-0.2648852468,
-0.366101414,
0.0398667008,
0.2935800552,
0.018017564,
0.0218925588,
-0.1782663763,
0.1572605371,
-0.2640622854,
0.0905433968,
0.0618727766,
-0.2543201447,
0.2353600562,
-0.2026712,
0.0230699349,
-0.1711887717,
0.1205859035,
-0.2005209774,
-0.158144325,
0.3388406336,
0.0797368139,
0.1804758161,
0.4291988611,
-0.3894390464,
-0.0596614107,
-0.0774279088,
-0.2149033248,
-0.4968356788,
0.0238058157,
0.1501095742,
-0.0620122068,
0.1604386121,
-0.0989378914,
-0.2489256263,
0.2021318078,
0.1912703365,
-0.0140953166,
-0.0100922314,
0.1434960663,
-0.2804525197,
0.5142767429,
0.4544945359,
0.1708979905,
-0.109047398,
-0.0004225268,
0.0640209466,
-0.0517981388,
0.2329599112,
-0.0699739754,
0.1279716939,
-0.3756051958,
0.1551725566,
0.3715333939,
-0.6533892155,
-0.2841062546,
0.3186045587,
-0.2741403282,
-0.0540162697,
0.1668802649,
-0.2321900129,
-0.0450623147,
0.0239412244,
0.3900931478,
0.074038282,
0.0700897947,
-0.2052419633,
-0.0241823252,
-0.3783532083,
0.1280159205,
0.0518316031,
0.117956534,
0.09410391,
0.0289574675,
-0.2993079722,
0.2291132361,
0.1804355681,
0.0232359134,
0.2225603312,
0.0875863358,
0.1844523996,
-0.0589133687,
-0.1022367254,
-0.0982041359,
0.1569277346,
-0.1393313706,
0.3022058904,
-0.4215774238,
0.0652291626,
-0.3841102123,
0.0516630113,
-0.2309432775,
-0.3040854633,
0.1636356413,
-0.0034319228,
0.4423213303,
0.1496354192,
-0.0936234891,
0.4874028265,
-0.1470744312,
0.2835754454,
-0.3597306311,
0.2300836891,
-0.3057551682,
-0.1062674969,
-0.1563710421,
0.1661882401,
0.351362437,
-0.2343124896,
-0.0265931357,
0.4231658876,
-0.264143765,
0.0973607302,
0.2657681704,
0.0963225812,
0.0315228999,
-0.2190818936,
0.0253640693,
-0.1022458598,
-0.0166739412,
0.063858375,
0.6379243135,
0.0479977205,
0.1513415873,
0.7245126963,
0.1906801462,
0.2567310631,
0.141764611,
-0.0172172524,
-0.2446910441,
0.0072810473,
0.205277577,
0.0509160422,
0.4524140954,
-0.3265388608,
0.1677901,
-0.2114033252,
0.1441135108,
-0.0354801975,
0.2344905734,
0.1491603702,
-0.3617247641,
0.2157288492,
-0.1119083613,
0.3587546051,
0.3501404822,
0.0897395611,
-0.0167157203,
0.2718507051,
-0.1022960991,
-0.0745456517,
0.3431274891,
0.0640023351,
0.0710159242,
-0.1801294535,
-0.0368258618,
-0.1345123947,
-0.1243022382,
-0.2394788414,
-0.1977584511,
0.1469755024,
-0.2880880833,
0.1693798304,
-0.1144181117,
-0.3013059795,
-0.1543430239,
-0.3460412323,
-0.4186740518,
-0.2409937233,
-0.3461466432,
0.0472730845,
0.0670877919,
0.2756134868,
0.1089540645,
0.0105084069,
-0.0052669332,
-0.1842110008,
-0.0347121507,
-0.1745302528,
-0.1391938627,
0.0206359867,
-0.0188449603,
-0.2574253678,
0.2771223783,
-0.1947546154,
-0.112735413,
0.0472368486,
-0.2349190712,
0.047972437,
-0.0904430822,
0.1711953729,
0.3285541832,
0.3805792928,
0.1841480881,
-0.3997780383,
0.5727687478,
0.0603624061,
0.1144243255,
-0.1596369594,
0.1083575711,
0.0168828666,
0.1767285168,
0.0041357791,
-0.6324494481,
-0.3507917225,
0.3485685289,
-0.0266019553,
0.151157245,
0.1762986928,
0.0596725866,
0.2824336886,
-0.3841684759,
0.0531045161,
-0.2631132305,
-0.432377398,
0.1425149292,
-0.2498617172,
-0.2201367617,
-0.0182345603,
0.1905054003,
0.2702788711,
-0.2122464329,
-0.3237495422,
-0.3732512891,
-0.2246034741,
-0.0373767465,
0.1037434265,
0.1593063027,
0.2925695777,
-0.1132496297,
-0.0387336351,
0.1269527674,
-0.2187675983,
0.2200420946,
-0.1979695261,
0.128196612,
0.2286255509,
0.3870926499,
0.0413929857,
0.544485569,
0.2436493337,
-0.0796828121,
0.3192814589,
-0.1745526046,
0.2922648489,
-0.0378906578,
-0.5508059859,
-0.1344227642,
-0.1521709412,
0.0345689245,
0.0439351723,
0.1621204913,
0.1705302298,
-0.5553135276,
-0.2198972553,
-0.1913199127,
-0.2798692584,
-0.0953920186,
0.0088961078,
0.1750697941,
0.0263881218,
-0.1763007194,
-0.2223936468,
0.1937032342,
0.2320328504,
0.5205127597,
-0.0382331051,
0.0609750338,
-0.1520734727,
-0.3924020529,
-0.4625764191,
0.4786422253,
0.0343587846,
0.192678988,
-0.2925171256,
-0.0163767207,
-0.0434862487,
0.1060830876,
0.7086894512,
-0.0712132752,
0.2219747901,
0.0485516153,
-0.0863400847,
-0.3645546436,
-0.0629988685,
0.0806385651,
0.2895563543,
0.5007996559,
0.4849517345,
-0.3278108835,
0.0968232378,
0.2301488817,
-0.0766403452,
-0.0308214873,
-0.0739791766,
-0.2963501811,
-0.3656423986,
-0.2678071856,
0.0053081834,
0.2438389808,
0.2123910487,
0.3308703899,
-0.1466614008,
0.1623215675,
-0.2427602559,
-0.0595806465,
-0.0181473438,
0.0382342786,
-0.2016496658,
-0.0326519832,
0.1781362295,
0.3460511267,
-0.3148243427,
0.4281018674,
-0.2402163297,
-0.2235832363,
0.1684296429,
0.3209204674,
0.4058355689,
0.3009505868,
-0.1991280168,
0.1601248384,
0.2677817643,
0.3612558544,
-0.1262011528,
0.1613375992,
0.4501326382,
0.3550080061,
-0.1951705664,
-0.2329108417,
0.2528255582,
-0.072912626,
0.0030149147,
0.2449310273,
0.4155493379,
-0.2275767773,
0.1655350775,
-0.2975749671,
1.1979163885,
0.0573297553,
-0.0391714163,
0.1336844563,
-0.2379473001,
0.5808712244,
-0.1565997154,
0.1131994128,
-0.1766392887,
-0.0917730331,
0.1218970343,
-0.2235734165,
0.3505118489,
-0.1980928779,
-0.0589324646,
0.2558605075,
-0.1141536385,
0.3006235063,
0.201445505,
0.2694350183,
-0.0904738158,
0.0046210391,
-0.257040441,
0.1390345991,
-0.0044749188,
0.424993068,
-0.0580966696,
-0.1384334117,
0.0146737378,
-0.3370608091,
-0.3443260789,
0.1544763446,
-0.7144249678,
0.1664407998,
0.0121584386,
-0.0822372735,
-0.1178105548,
-0.0211143922,
0.3912242055,
0.1099308506,
-0.2193235606,
0.1842374057,
-0.0037482074,
-0.312995106,
0.1039162874,
0.1227221563,
-0.0625953972,
-0.2693053782,
-0.203266561,
0.1417414099,
-0.1730960906,
-0.4226962924,
0.2038716227,
-0.1461987793,
0.151529178,
-0.1836434007,
-0.022626603,
-0.1612542719,
0.024226537,
-0.1469754279,
0.112170577,
-0.069380492,
-0.2479231358,
-0.10859745,
0.022369884,
-0.3606719971,
0.0174631011,
0.4281617701,
-0.1445813775,
0.072320357,
0.4555254579,
0.1247401908,
-0.1317321807,
-0.12844643,
-0.2199526131,
0.0430560447,
-0.4091936648,
-0.0014769913,
-0.0063632019,
-0.1436572373,
-0.2302158773,
-0.0912818313,
0.3861814439,
0.2269380689,
-0.0249441378,
-0.5732640028,
-0.1236654744,
0.1283734441,
-0.1113200188,
-0.0436675437,
0.1352206916,
0.2921498716,
0.0813924149,
0.077278927,
-0.2949266434,
-0.0582202449,
-0.1980375946,
-0.0909827054,
0.4604615271,
-0.4231756926,
0.556439817,
0.2472602129,
0.1833634526,
0.0185599308,
-0.1767929792,
-0.1913489997,
-0.0861809403,
0.1239020228,
-0.1045507565,
-0.2903296351,
0.0198582467,
-0.3376128376,
0.0041405582,
-0.0067033549,
0.0077220327,
0.0418778919,
0.0665358976,
-0.2817331254,
-0.032066077,
-0.0895534828,
-0.1053852066,
0.1841527075,
-0.1359492987,
0.1784515381,
0.0287577733,
-0.0061409106,
-0.2754324675,
-0.1757725924,
-0.2360017747,
-0.0797954202,
0.0297374055,
0.1081589162,
0.3297697306,
-0.1942863464,
-0.2923172116,
-0.1087816209,
0.4173104167,
-0.0037689393,
-0.1419619322,
0.0590194762,
0.1690811068,
0.1616690755,
-0.1311532259,
0.0745706707,
0.1629071534,
-0.1565769315,
0.1184275225,
0.2068684548,
-0.0237030387,
0.163873449,
0.0392771661,
0.0193122067,
0.8280630112,
0.2137531936,
0.0845071226,
0.1391804963,
0.0415812358,
-0.0628211498,
0.1529560685,
0.0035154284,
0.2465285659,
-0.0891734883,
-0.3549361229,
-0.0614766069,
-0.0593231656,
-0.0681368113,
0.2297046036,
-0.0699738711,
0.0251143184,
0.1838397384,
-0.09884803,
-0.1319562048,
-0.4080096781,
0.6134057641,
-0.4409067333,
-0.0357087031,
-0.1996203214,
0.3630472124,
0.0331470445,
-0.1725615561,
0.1452639848,
-0.1420485973,
-0.2319660485,
-0.3037567139,
0.0896620974,
-0.3973184526,
0.3674944937,
-0.0679671541,
0.0307095461,
-0.0729465932,
-0.3076351881,
0.1328385025,
0.2419951707,
-0.2333103269,
0.3818815649,
0.2886331677,
-0.037628565,
-0.1605474055,
0.4000950456,
0.6762165427,
0.2699618042,
-0.2351972163,
0.2674931288,
0.0332840234,
-0.0528570265,
-0.0259343665,
-0.0059955432,
0.2812906802,
-0.003465221,
0.2339333296,
0.2336764783,
-0.2260975838,
0.0528748035,
-0.1916486323,
0.3153737187,
-0.0148683349,
0.4126875401,
-0.3227865994,
-0.1426356584,
-0.3223922551,
0.1364281178,
-0.8104320765,
0.1720470339,
0.2672683597,
-0.4068027139,
0.0215155762,
-0.1731270999,
0.080315344,
-0.0752655789,
0.7511889338,
0.2013041973,
0.3521668017,
-0.4966928065,
-0.3168993294,
-0.2904433906,
0.2075127661,
-0.1204555705,
-0.137706086,
-0.0594683699,
-0.0786986873,
-0.1366245002,
0.1496260762,
0.1224856377,
0.1239466295,
-0.2708902955,
-0.1634466499,
-0.0168657396,
0.0420120172,
-0.0634031296,
0.1023463458,
0.2733126879,
-0.2260944992,
0.2341931313,
-0.0447946824,
0.038397003,
0.2165071517,
-0.0195570998,
0.1787249744,
-0.3686763048,
0.3712459505,
0.1257682145,
0.3474534154,
0.1640768498,
-0.0576719679,
-0.1508487314,
-0.2002635896,
-0.0525051542,
0.1181120053,
-0.0094586844,
0.0054063513,
-0.2345673144,
-0.2379546314,
-0.5355013609,
0.1884404421,
0.0324564725,
-0.0615434609,
0.0410016887,
-0.1977434903,
0.1453061253,
0.1729565412,
0.2607687116,
0.0437687114,
-0.0029305764,
0.1317537874,
-0.3068505526,
-0.2666342556,
0.6317306161,
-0.4022062421,
-0.2421781421,
0.0718516707,
0.3609128296,
0.1383720338,
0.1080271229,
-0.457880944,
0.03677807,
0.3818689883,
0.3051513135,
-0.2807103097,
0.2636131346,
-0.2206345648,
0.0750978142,
0.1570172906,
0.1133456826,
-0.1142304465,
-0.3479041159,
-0.0901176482,
-0.1272863448
] |
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.1622431874,
-0.0606820956,
0.093882665,
0.0836028904,
0.3144049346,
-0.142973423,
0.6139577627,
0.0132132014,
-0.1196163222,
0.0058160932,
0.1650342196,
0.2017954439,
-0.0787890106,
0.0945225731,
-0.0190070532,
0.2130858749,
0.0278786626,
-0.1402868778,
-0.2763955295,
-0.1410640776,
-0.2284768373,
0.1523455977,
-0.0874379128,
-0.1617390513,
-0.6726456285,
-0.1021029651,
-0.1329011619,
0.1628412157,
0.1795904189,
-0.4169395566,
0.1931262463,
0.235214591,
-0.101434648,
0.3875526786,
-0.0001199422,
-0.0937379897,
0.352293551,
-0.0650268272,
-0.2904087603,
-0.1039034575,
0.0416675285,
0.1874278933,
-0.0534762666,
-0.1191119105,
-0.060078118,
0.0070906035,
0.1324012727,
-0.4158921838,
0.3937298059,
-0.1208232492,
0.1669469327,
0.2793324292,
-0.1170789376,
0.0917681158,
0.1264913827,
0.7000270486,
-0.2477300465,
-0.0409517027,
0.00381819,
0.0352797918,
-0.2997262776,
0.255040288,
0.1456888169,
0.1156733111,
0.5079764724,
0.1923029572,
-0.1786670536,
-0.1532368809,
0.11486274,
0.2767551839,
0.2311255634,
-0.3748752475,
-0.3369912207,
-0.6084531546,
-0.2362680584,
-0.2321819067,
0.1527199,
0.0096535161,
-0.1577541381,
0.0793165192,
-0.3549199402,
0.1265325695,
0.0707444921,
-0.1952132285,
0.2468886226,
0.2218779922,
0.0072369431,
0.1679399908,
0.1587349474,
0.0604983792,
0.1699354798,
-0.1181587502,
-0.0938740745,
0.0394965038,
0.0180433653,
0.1057432145,
0.1586053371,
0.153463617,
0.318911016,
0.5014269352,
0.0610094741,
0.1023849919,
0.1677441597,
-0.073842831,
0.2467007786,
0.2197239697,
-0.0580616109,
0.3566727042,
0.0670858026,
0.0370438322,
-0.0029732347,
0.0142726647,
0.2652679384,
-0.0426024832,
0.5014554262,
-0.0270121973,
0.2397683561,
-0.0510367081,
0.065081805,
0.1498213559,
0.0121366214,
-0.0750532895,
-0.0779312104,
0.2501384318,
-0.1982080042,
-0.0242467485,
-0.0956238136,
-0.0449063182,
-0.1348835677,
-0.0826703757,
-0.2837890089,
-0.1389881074,
-0.2515236437,
0.2813726366,
-0.0713063627,
-0.0807785764,
0.3410975337,
0.2519501746,
0.1854820251,
-0.1556297541,
0.1785333753,
-0.0622606352,
0.44979164,
0.1312009245,
-0.192961365,
0.1577107161,
0.1532041281,
0.0786588788,
-0.1610736996,
0.0881244019,
0.0865719989,
-0.2364135236,
0.1173690334,
0.0525633357,
-0.5501567125,
0.1222921312,
-0.0983981565,
-0.0366492569,
0.4920065701,
0.1749355346,
0.2651319504,
-0.1899251044,
-0.4315013587,
-0.291818887,
0.0729341432,
0.7805558443,
0.0292770416,
-0.2914332449,
0.027198134,
0.1518497765,
0.1788180172,
0.1570243686,
-0.1241750196,
0.2212256938,
-0.4607885182,
0.2205774784,
-0.2322399616,
-0.142375499,
-0.2322936058,
0.3027460575,
-0.0936335027,
0.3831537664,
0.0383599177,
0.0561094508,
-0.1114994586,
-0.1254640818,
-0.2388656586,
0.2245151848,
-0.006820614,
0.10983897,
-0.4005637169,
-0.3897632957,
0.0655295476,
-0.0483646803,
0.0519643985,
0.0094371084,
0.1318696588,
-0.1288128197,
0.2877879739,
-0.1068513617,
0.1581375301,
0.152853176,
0.1587302536,
0.224632442,
0.0351855606,
0.1689157784,
-0.5419935584,
0.3820071816,
-0.241048336,
-0.189358443,
-0.1494206041,
-0.3210413754,
-0.0753020197,
0.0960761756,
-0.4060975313,
-0.3152600229,
-0.0154515803,
0.5506615639,
0.2708691061,
-0.0051997988,
0.0968246982,
0.2403060645,
0.1423283517,
-0.002717942,
-0.9128637314,
0.0567848161,
0.0906825289,
-0.1725625098,
-0.2306704819,
0.0778863579,
0.0968682989,
-0.2287881672,
0.0384363718,
0.3598065674,
0.1580557227,
0.2628178,
-0.0984209031,
0.1928103417,
0.0074188015,
-0.1086182818,
-0.0394935273,
0.1521769315,
0.0554048195,
-0.1021171585,
-0.098380439,
0.4918054938,
-0.2128904015,
0.1159906983,
-0.15265055,
-0.0862318799,
-0.0628084242,
-0.0525968336,
-0.2161842585,
-0.1971547306,
0.0899827182,
-0.0390489846,
0.5391988754,
0.2282951772,
-0.3941819072,
0.2312158793,
-0.0016539346,
-0.049170278,
0.1437009424,
0.0852039084,
0.0712453201,
-0.3131348491,
0.0560087301,
0.3389396071,
0.427598387,
0.015996689,
0.0583637431,
0.0512269028,
-0.1064068452,
-0.1665118039,
-0.0071321721,
0.0005931706,
-0.0298427176,
0.219587639,
0.1412554681,
0.0112573383,
-0.438752681,
-0.0286885221,
0.1356960088,
-0.0273102503,
-0.3191820681,
0.2899665534,
-0.1755521595,
0.4455591738,
-0.3127734959,
-0.1545071453,
-0.2895254195,
-0.2514543533,
-0.1213660464,
0.4109185636,
-0.1166302487,
0.1950094402,
-0.1968617886,
0.297134161,
-0.0853329003,
-0.2759698629,
-0.2541820705,
-0.1093627587,
-0.2183858007,
-0.0602292418,
0.120375514,
-0.00343974,
0.2321112752,
-0.1100807786,
-0.0712264776,
-0.3098179102,
-0.1055288538,
0.2229753584,
-0.1086349487,
0.5486393571,
0.2477719784,
-0.2188455015,
-0.1793803424,
-0.2130806446,
0.2121192813,
-0.1938271075,
-0.0862898901,
-0.1702486724,
-0.0922701433,
-0.0537801608,
0.0295690298,
0.069015637,
-0.0948398486,
0.0121201808,
0.2557656765,
-0.0645925477,
0.0405178666,
0.5897524953,
0.028413143,
-0.0574364625,
-0.1054535285,
-0.0440538302,
-0.5146176815,
-0.4949687421,
0.2611507475,
-0.1634008735,
-0.2163862735,
-0.3258365989,
-0.2972290218,
0.0188393481,
0.188889727,
-0.6068608761,
-0.0516644157,
-0.2685230672,
0.4238200784,
-0.2032544166,
0.0177746415,
0.3344090581,
0.0985965878,
0.1076802537,
-0.0211104397,
-0.047480166,
0.2567792833,
-0.3898846507,
0.3817113936,
0.1048749387,
0.060253825,
0.0892469883,
1.0046879053,
0.2359311581,
-0.369999975,
0.1978334785,
-0.0644090995,
0.4749624729,
-0.2979862392,
-0.2079371065,
0.1310506612,
-0.0590398461,
-0.2528947294,
0.1606170684,
-0.0795171186,
0.2031420022,
0.1621232927,
0.2374076545,
-0.1579892188,
-0.3636941612,
0.1179596931,
-0.0183761697,
0.02905632,
0.0220860746,
0.3120575547,
-0.2099296898,
-0.1583349556,
0.0411256924,
0.0356696621,
0.4221749306,
0.0522914156,
-0.3100933433,
0.1876140237,
-0.6171494126,
0.0540945008,
0.218743369,
0.2380436659,
-0.109827444,
-0.3385642767,
0.1094964817,
-0.0808581188,
0.7635934353,
-0.0211595763,
0.2726783156,
0.0645888746,
-0.4564516842,
-0.1778556854,
-0.0194788836,
0.0387323573,
-0.2118598521,
0.0743648037,
0.1087061614,
-0.1690748036,
0.1645168215,
-0.1442147642,
0.1973522007,
-0.1298976839,
-0.194591254,
-0.2662622929,
-0.3079314232,
-0.1788806766,
0.1033715084,
0.0640034825,
-0.0608187914,
-0.0826030448,
0.0196880214,
-0.3017711043,
-0.2599676847,
0.0435261987,
0.0706628039,
0.3443905413,
0.0018845811,
0.4046284556,
0.4547140002,
-0.1982672513,
0.0894357488,
0.4374316335,
-0.2148356289,
0.0085542249,
0.2202310562,
-0.039681524,
-0.2334372252,
0.5466164947,
-0.1877535731,
-0.0894532129,
0.0587287173,
0.0108099803,
-0.4439826012,
0.0664634556,
0.1466408521,
0.1137158349,
-0.028197689,
-0.2624799013,
0.3312914968,
0.0272612162,
-0.275875181,
0.4392708838,
-0.3099083602,
-0.1239235327,
0.4247117341,
0.2471441329,
0.8804849982,
-0.1272097528,
0.3180258274,
0.1907137632,
0.2768240869,
0.1486353129,
0.4829754233,
0.0115163103,
-0.4281359911,
-0.3656573892,
0.0060815476,
-0.2024410367,
0.055591803,
0.0869949162,
0.0665673614,
0.1132725179,
-0.0630427524,
0.1032281667,
-0.156785205,
0.1560461968,
0.0246320274,
-0.215686515,
0.1735643744,
0.0843449458,
0.1718551517,
0.5333349705,
-0.0699899569,
0.0953962132,
0.0607639775,
-0.2466618717,
-0.3635310233,
0.2086062431,
-0.2790142596,
0.2022840828,
0.3691951632,
-0.0258363895,
-0.2583651543,
0.1351565272,
0.5098420382,
0.1552301943,
-0.1020520553,
0.1477966607,
0.2578323483,
0.1927010417,
-0.1315278709,
-0.1301501542,
0.2111313343,
0.1236366481,
-0.1206819937,
-0.1519353092,
-0.0478050858,
-0.2716753185,
-0.4598906934,
-0.0121333068,
-0.0979534686,
-0.3023137748,
0.0790292025,
-0.1466923356,
0.0272652432,
-0.1541841924,
0.0286997687,
0.2207657546,
0.0228118729,
0.1299970597,
-0.1785638034,
-0.4069520235,
-0.2265017331,
0.4325013459,
-0.0612095781,
0.0727248788,
0.2602235377,
0.0922236517,
-0.0315434411,
-0.1085574254,
0.2351078391,
0.137725994,
-0.5122731924,
0.2434005886,
-0.2169811577,
-0.019595556,
-0.0813555196,
0.2316168398,
0.1115592644,
0.0348229446,
-0.0617024302,
-0.1523832083,
-0.37194556,
-0.1704630256,
0.0821969733,
0.3519156873,
0.2928989828,
0.0990414247,
-0.105128333,
0.3124902844,
-0.2433377653,
-0.0502343848,
0.0076265982,
0.0296816267,
0.0670684576,
-0.303553015,
0.2867915332,
-0.0681442395,
-0.006358285,
0.2946644723,
-0.368863076,
-0.1184284389,
-0.4529237747,
0.1593662202,
0.0088852542,
-0.0048951977,
-0.157195732,
0.1779760569,
0.023719335,
-0.3966795802,
0.3917923272,
0.5151256919,
0.0149961086,
-0.0830857009,
0.4291328192,
0.0537455007,
-0.0980245844,
-0.175356403,
-0.184446916,
0.0748555288,
0.2480773181,
0.1079166457,
-0.1506760567,
0.007184153,
-0.2314376682,
0.0288115758,
0.2302111387,
-0.0676558018,
0.0180183388,
-0.1343325078,
-0.2681117654,
-0.0723343939,
0.1703022867,
0.1611692309,
-0.1635128856,
-0.3935708106,
0.1354323328,
0.1497947574,
-0.0725998133,
-0.2825772166,
-0.3876024783,
0.2493042648,
0.0868987963,
0.5509285927,
0.3141429722,
-0.122568354,
0.0572355576,
0.0346191861,
0.5128442645,
-0.3987123072,
0.2396623641,
0.3090472817,
-0.2385407388,
0.0252349172,
0.4938823283,
0.2923137844,
0.2063567787,
0.1732746661,
-0.0384311676,
0.5072747469,
-0.3027769625,
0.097218588,
-0.139207527,
-0.6456993222,
0.3082389235,
0.4405919611,
-0.1516468525,
0.4086829722,
0.0774329677,
0.4832056165,
-0.1660363227,
-0.0858012363,
-0.3003625572,
0.3024360836,
0.0143995881,
-0.535314858,
0.0377788618,
-0.0834387541,
-0.3826371729,
0.0900418311,
-0.0035491034,
-0.2081625462,
0.6144249439,
-0.075209558,
-0.2515945733,
-0.3642039299,
-0.0378358178,
0.0142610203,
0.1197625101,
-0.3115848303,
0.2505505085,
0.160597384,
-0.2969708145,
0.1013813168,
0.1887001544,
0.5075893402,
0.3388090432,
0.1338161975,
0.1075945348,
-0.2951599658,
0.1906999499,
-0.2481291741,
0.3066643775,
-0.2367559373,
-0.2121828645,
0.2729892433,
0.0783088729,
-0.1230100393,
0.0755244121,
0.0604902133,
0.4505951107,
-0.1969413012,
0.6952243447,
-0.1496913731,
0.1883818954,
-0.0011687464,
0.3480204642,
-0.3697021008,
0.0585602447,
0.262393713,
-0.1507830471,
0.1990686506,
-0.1322581917,
0.0340269394,
-0.048898086,
0.3877413869,
0.2560420632,
-0.3483611047,
-0.1792102903,
0.1957639903,
-0.5142297745,
0.3533167541,
-0.1999631971,
0.1005279645,
0.0804016441,
0.145535484,
-0.2276922017,
-0.0096826889,
-0.1714702696,
0.2559451163,
0.0081330193,
0.3090419769,
-0.1568305492,
0.0880400613,
-0.439212203,
-0.0144753614,
0.2130461782,
-0.3841432035,
0.2073272467,
0.1999244839,
-0.0297075957,
0.0550278015,
-0.1730280966,
-0.0277810041,
-0.0068208426,
0.4017460346,
0.2652511299,
0.0799825862,
-0.1851329654,
-0.1826787293,
-0.5771653056,
-0.1551559269,
-0.1146452799,
0.1160616875,
0.1047955528,
0.2232985497,
-0.2068717927,
-0.2676875591,
-0.4154664278,
0.2365454286,
0.2599455416,
-0.1395098865,
-0.1362609863,
0.2388967574,
-0.3561553359,
0.3288769722,
0.0919607803,
0.4796587229,
-0.024372872,
0.2805635631,
-0.1349283457,
-0.4061138928,
0.7216503024,
-0.5009364486,
-0.2477235347,
-0.3238894343,
0.0440612361,
0.071589306,
-0.4523599148,
-0.4823102057,
0.1665853709,
0.1452375054,
0.0978134796,
-0.0011372276,
-0.1485638469,
-0.2483025491,
0.0275906883,
-0.0975220427,
0.5400006771,
0.195982188,
-0.1516945064,
0.3653634191,
-0.1505267918
] |
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.1622431874,
-0.0606820956,
0.093882665,
0.0836028904,
0.3144049346,
-0.142973423,
0.6139577627,
0.0132132014,
-0.1196163222,
0.0058160932,
0.1650342196,
0.2017954439,
-0.0787890106,
0.0945225731,
-0.0190070532,
0.2130858749,
0.0278786626,
-0.1402868778,
-0.2763955295,
-0.1410640776,
-0.2284768373,
0.1523455977,
-0.0874379128,
-0.1617390513,
-0.6726456285,
-0.1021029651,
-0.1329011619,
0.1628412157,
0.1795904189,
-0.4169395566,
0.1931262463,
0.235214591,
-0.101434648,
0.3875526786,
-0.0001199422,
-0.0937379897,
0.352293551,
-0.0650268272,
-0.2904087603,
-0.1039034575,
0.0416675285,
0.1874278933,
-0.0534762666,
-0.1191119105,
-0.060078118,
0.0070906035,
0.1324012727,
-0.4158921838,
0.3937298059,
-0.1208232492,
0.1669469327,
0.2793324292,
-0.1170789376,
0.0917681158,
0.1264913827,
0.7000270486,
-0.2477300465,
-0.0409517027,
0.00381819,
0.0352797918,
-0.2997262776,
0.255040288,
0.1456888169,
0.1156733111,
0.5079764724,
0.1923029572,
-0.1786670536,
-0.1532368809,
0.11486274,
0.2767551839,
0.2311255634,
-0.3748752475,
-0.3369912207,
-0.6084531546,
-0.2362680584,
-0.2321819067,
0.1527199,
0.0096535161,
-0.1577541381,
0.0793165192,
-0.3549199402,
0.1265325695,
0.0707444921,
-0.1952132285,
0.2468886226,
0.2218779922,
0.0072369431,
0.1679399908,
0.1587349474,
0.0604983792,
0.1699354798,
-0.1181587502,
-0.0938740745,
0.0394965038,
0.0180433653,
0.1057432145,
0.1586053371,
0.153463617,
0.318911016,
0.5014269352,
0.0610094741,
0.1023849919,
0.1677441597,
-0.073842831,
0.2467007786,
0.2197239697,
-0.0580616109,
0.3566727042,
0.0670858026,
0.0370438322,
-0.0029732347,
0.0142726647,
0.2652679384,
-0.0426024832,
0.5014554262,
-0.0270121973,
0.2397683561,
-0.0510367081,
0.065081805,
0.1498213559,
0.0121366214,
-0.0750532895,
-0.0779312104,
0.2501384318,
-0.1982080042,
-0.0242467485,
-0.0956238136,
-0.0449063182,
-0.1348835677,
-0.0826703757,
-0.2837890089,
-0.1389881074,
-0.2515236437,
0.2813726366,
-0.0713063627,
-0.0807785764,
0.3410975337,
0.2519501746,
0.1854820251,
-0.1556297541,
0.1785333753,
-0.0622606352,
0.44979164,
0.1312009245,
-0.192961365,
0.1577107161,
0.1532041281,
0.0786588788,
-0.1610736996,
0.0881244019,
0.0865719989,
-0.2364135236,
0.1173690334,
0.0525633357,
-0.5501567125,
0.1222921312,
-0.0983981565,
-0.0366492569,
0.4920065701,
0.1749355346,
0.2651319504,
-0.1899251044,
-0.4315013587,
-0.291818887,
0.0729341432,
0.7805558443,
0.0292770416,
-0.2914332449,
0.027198134,
0.1518497765,
0.1788180172,
0.1570243686,
-0.1241750196,
0.2212256938,
-0.4607885182,
0.2205774784,
-0.2322399616,
-0.142375499,
-0.2322936058,
0.3027460575,
-0.0936335027,
0.3831537664,
0.0383599177,
0.0561094508,
-0.1114994586,
-0.1254640818,
-0.2388656586,
0.2245151848,
-0.006820614,
0.10983897,
-0.4005637169,
-0.3897632957,
0.0655295476,
-0.0483646803,
0.0519643985,
0.0094371084,
0.1318696588,
-0.1288128197,
0.2877879739,
-0.1068513617,
0.1581375301,
0.152853176,
0.1587302536,
0.224632442,
0.0351855606,
0.1689157784,
-0.5419935584,
0.3820071816,
-0.241048336,
-0.189358443,
-0.1494206041,
-0.3210413754,
-0.0753020197,
0.0960761756,
-0.4060975313,
-0.3152600229,
-0.0154515803,
0.5506615639,
0.2708691061,
-0.0051997988,
0.0968246982,
0.2403060645,
0.1423283517,
-0.002717942,
-0.9128637314,
0.0567848161,
0.0906825289,
-0.1725625098,
-0.2306704819,
0.0778863579,
0.0968682989,
-0.2287881672,
0.0384363718,
0.3598065674,
0.1580557227,
0.2628178,
-0.0984209031,
0.1928103417,
0.0074188015,
-0.1086182818,
-0.0394935273,
0.1521769315,
0.0554048195,
-0.1021171585,
-0.098380439,
0.4918054938,
-0.2128904015,
0.1159906983,
-0.15265055,
-0.0862318799,
-0.0628084242,
-0.0525968336,
-0.2161842585,
-0.1971547306,
0.0899827182,
-0.0390489846,
0.5391988754,
0.2282951772,
-0.3941819072,
0.2312158793,
-0.0016539346,
-0.049170278,
0.1437009424,
0.0852039084,
0.0712453201,
-0.3131348491,
0.0560087301,
0.3389396071,
0.427598387,
0.015996689,
0.0583637431,
0.0512269028,
-0.1064068452,
-0.1665118039,
-0.0071321721,
0.0005931706,
-0.0298427176,
0.219587639,
0.1412554681,
0.0112573383,
-0.438752681,
-0.0286885221,
0.1356960088,
-0.0273102503,
-0.3191820681,
0.2899665534,
-0.1755521595,
0.4455591738,
-0.3127734959,
-0.1545071453,
-0.2895254195,
-0.2514543533,
-0.1213660464,
0.4109185636,
-0.1166302487,
0.1950094402,
-0.1968617886,
0.297134161,
-0.0853329003,
-0.2759698629,
-0.2541820705,
-0.1093627587,
-0.2183858007,
-0.0602292418,
0.120375514,
-0.00343974,
0.2321112752,
-0.1100807786,
-0.0712264776,
-0.3098179102,
-0.1055288538,
0.2229753584,
-0.1086349487,
0.5486393571,
0.2477719784,
-0.2188455015,
-0.1793803424,
-0.2130806446,
0.2121192813,
-0.1938271075,
-0.0862898901,
-0.1702486724,
-0.0922701433,
-0.0537801608,
0.0295690298,
0.069015637,
-0.0948398486,
0.0121201808,
0.2557656765,
-0.0645925477,
0.0405178666,
0.5897524953,
0.028413143,
-0.0574364625,
-0.1054535285,
-0.0440538302,
-0.5146176815,
-0.4949687421,
0.2611507475,
-0.1634008735,
-0.2163862735,
-0.3258365989,
-0.2972290218,
0.0188393481,
0.188889727,
-0.6068608761,
-0.0516644157,
-0.2685230672,
0.4238200784,
-0.2032544166,
0.0177746415,
0.3344090581,
0.0985965878,
0.1076802537,
-0.0211104397,
-0.047480166,
0.2567792833,
-0.3898846507,
0.3817113936,
0.1048749387,
0.060253825,
0.0892469883,
1.0046879053,
0.2359311581,
-0.369999975,
0.1978334785,
-0.0644090995,
0.4749624729,
-0.2979862392,
-0.2079371065,
0.1310506612,
-0.0590398461,
-0.2528947294,
0.1606170684,
-0.0795171186,
0.2031420022,
0.1621232927,
0.2374076545,
-0.1579892188,
-0.3636941612,
0.1179596931,
-0.0183761697,
0.02905632,
0.0220860746,
0.3120575547,
-0.2099296898,
-0.1583349556,
0.0411256924,
0.0356696621,
0.4221749306,
0.0522914156,
-0.3100933433,
0.1876140237,
-0.6171494126,
0.0540945008,
0.218743369,
0.2380436659,
-0.109827444,
-0.3385642767,
0.1094964817,
-0.0808581188,
0.7635934353,
-0.0211595763,
0.2726783156,
0.0645888746,
-0.4564516842,
-0.1778556854,
-0.0194788836,
0.0387323573,
-0.2118598521,
0.0743648037,
0.1087061614,
-0.1690748036,
0.1645168215,
-0.1442147642,
0.1973522007,
-0.1298976839,
-0.194591254,
-0.2662622929,
-0.3079314232,
-0.1788806766,
0.1033715084,
0.0640034825,
-0.0608187914,
-0.0826030448,
0.0196880214,
-0.3017711043,
-0.2599676847,
0.0435261987,
0.0706628039,
0.3443905413,
0.0018845811,
0.4046284556,
0.4547140002,
-0.1982672513,
0.0894357488,
0.4374316335,
-0.2148356289,
0.0085542249,
0.2202310562,
-0.039681524,
-0.2334372252,
0.5466164947,
-0.1877535731,
-0.0894532129,
0.0587287173,
0.0108099803,
-0.4439826012,
0.0664634556,
0.1466408521,
0.1137158349,
-0.028197689,
-0.2624799013,
0.3312914968,
0.0272612162,
-0.275875181,
0.4392708838,
-0.3099083602,
-0.1239235327,
0.4247117341,
0.2471441329,
0.8804849982,
-0.1272097528,
0.3180258274,
0.1907137632,
0.2768240869,
0.1486353129,
0.4829754233,
0.0115163103,
-0.4281359911,
-0.3656573892,
0.0060815476,
-0.2024410367,
0.055591803,
0.0869949162,
0.0665673614,
0.1132725179,
-0.0630427524,
0.1032281667,
-0.156785205,
0.1560461968,
0.0246320274,
-0.215686515,
0.1735643744,
0.0843449458,
0.1718551517,
0.5333349705,
-0.0699899569,
0.0953962132,
0.0607639775,
-0.2466618717,
-0.3635310233,
0.2086062431,
-0.2790142596,
0.2022840828,
0.3691951632,
-0.0258363895,
-0.2583651543,
0.1351565272,
0.5098420382,
0.1552301943,
-0.1020520553,
0.1477966607,
0.2578323483,
0.1927010417,
-0.1315278709,
-0.1301501542,
0.2111313343,
0.1236366481,
-0.1206819937,
-0.1519353092,
-0.0478050858,
-0.2716753185,
-0.4598906934,
-0.0121333068,
-0.0979534686,
-0.3023137748,
0.0790292025,
-0.1466923356,
0.0272652432,
-0.1541841924,
0.0286997687,
0.2207657546,
0.0228118729,
0.1299970597,
-0.1785638034,
-0.4069520235,
-0.2265017331,
0.4325013459,
-0.0612095781,
0.0727248788,
0.2602235377,
0.0922236517,
-0.0315434411,
-0.1085574254,
0.2351078391,
0.137725994,
-0.5122731924,
0.2434005886,
-0.2169811577,
-0.019595556,
-0.0813555196,
0.2316168398,
0.1115592644,
0.0348229446,
-0.0617024302,
-0.1523832083,
-0.37194556,
-0.1704630256,
0.0821969733,
0.3519156873,
0.2928989828,
0.0990414247,
-0.105128333,
0.3124902844,
-0.2433377653,
-0.0502343848,
0.0076265982,
0.0296816267,
0.0670684576,
-0.303553015,
0.2867915332,
-0.0681442395,
-0.006358285,
0.2946644723,
-0.368863076,
-0.1184284389,
-0.4529237747,
0.1593662202,
0.0088852542,
-0.0048951977,
-0.157195732,
0.1779760569,
0.023719335,
-0.3966795802,
0.3917923272,
0.5151256919,
0.0149961086,
-0.0830857009,
0.4291328192,
0.0537455007,
-0.0980245844,
-0.175356403,
-0.184446916,
0.0748555288,
0.2480773181,
0.1079166457,
-0.1506760567,
0.007184153,
-0.2314376682,
0.0288115758,
0.2302111387,
-0.0676558018,
0.0180183388,
-0.1343325078,
-0.2681117654,
-0.0723343939,
0.1703022867,
0.1611692309,
-0.1635128856,
-0.3935708106,
0.1354323328,
0.1497947574,
-0.0725998133,
-0.2825772166,
-0.3876024783,
0.2493042648,
0.0868987963,
0.5509285927,
0.3141429722,
-0.122568354,
0.0572355576,
0.0346191861,
0.5128442645,
-0.3987123072,
0.2396623641,
0.3090472817,
-0.2385407388,
0.0252349172,
0.4938823283,
0.2923137844,
0.2063567787,
0.1732746661,
-0.0384311676,
0.5072747469,
-0.3027769625,
0.097218588,
-0.139207527,
-0.6456993222,
0.3082389235,
0.4405919611,
-0.1516468525,
0.4086829722,
0.0774329677,
0.4832056165,
-0.1660363227,
-0.0858012363,
-0.3003625572,
0.3024360836,
0.0143995881,
-0.535314858,
0.0377788618,
-0.0834387541,
-0.3826371729,
0.0900418311,
-0.0035491034,
-0.2081625462,
0.6144249439,
-0.075209558,
-0.2515945733,
-0.3642039299,
-0.0378358178,
0.0142610203,
0.1197625101,
-0.3115848303,
0.2505505085,
0.160597384,
-0.2969708145,
0.1013813168,
0.1887001544,
0.5075893402,
0.3388090432,
0.1338161975,
0.1075945348,
-0.2951599658,
0.1906999499,
-0.2481291741,
0.3066643775,
-0.2367559373,
-0.2121828645,
0.2729892433,
0.0783088729,
-0.1230100393,
0.0755244121,
0.0604902133,
0.4505951107,
-0.1969413012,
0.6952243447,
-0.1496913731,
0.1883818954,
-0.0011687464,
0.3480204642,
-0.3697021008,
0.0585602447,
0.262393713,
-0.1507830471,
0.1990686506,
-0.1322581917,
0.0340269394,
-0.048898086,
0.3877413869,
0.2560420632,
-0.3483611047,
-0.1792102903,
0.1957639903,
-0.5142297745,
0.3533167541,
-0.1999631971,
0.1005279645,
0.0804016441,
0.145535484,
-0.2276922017,
-0.0096826889,
-0.1714702696,
0.2559451163,
0.0081330193,
0.3090419769,
-0.1568305492,
0.0880400613,
-0.439212203,
-0.0144753614,
0.2130461782,
-0.3841432035,
0.2073272467,
0.1999244839,
-0.0297075957,
0.0550278015,
-0.1730280966,
-0.0277810041,
-0.0068208426,
0.4017460346,
0.2652511299,
0.0799825862,
-0.1851329654,
-0.1826787293,
-0.5771653056,
-0.1551559269,
-0.1146452799,
0.1160616875,
0.1047955528,
0.2232985497,
-0.2068717927,
-0.2676875591,
-0.4154664278,
0.2365454286,
0.2599455416,
-0.1395098865,
-0.1362609863,
0.2388967574,
-0.3561553359,
0.3288769722,
0.0919607803,
0.4796587229,
-0.024372872,
0.2805635631,
-0.1349283457,
-0.4061138928,
0.7216503024,
-0.5009364486,
-0.2477235347,
-0.3238894343,
0.0440612361,
0.071589306,
-0.4523599148,
-0.4823102057,
0.1665853709,
0.1452375054,
0.0978134796,
-0.0011372276,
-0.1485638469,
-0.2483025491,
0.0275906883,
-0.0975220427,
0.5400006771,
0.195982188,
-0.1516945064,
0.3653634191,
-0.1505267918
] |
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.2274189293,
-0.1898311079,
-0.0089053502,
0.0325091742,
0.0982827693,
0.0415741168,
0.0728504434,
0.183797732,
0.0604876168,
0.164753601,
0.2048401535,
0.6761354804,
0.0139969029,
-0.3138835728,
0.0691086128,
-0.2314470708,
0.0780238509,
0.1225911006,
-0.3308289945,
-0.065232262,
-0.3497132659,
0.0132754482,
-0.3354178965,
-0.3151186407,
-0.3525307477,
-0.1137229428,
-0.1477196962,
-0.076647386,
-0.3253406882,
-0.3277154863,
0.0815930814,
-0.384005487,
0.0551319197,
0.237910822,
-0.0001264378,
-0.11211285,
0.2349815369,
-0.1064972356,
-0.2713167369,
0.090497531,
-0.1300847381,
-0.3753254712,
0.1473686844,
-0.1593486518,
0.1864857525,
-0.1655193269,
-0.6239045858,
-0.3172651529,
-0.0759105384,
0.165289402,
0.1614539027,
0.2517939806,
0.012039179,
-0.2805069387,
-0.0970273912,
0.1960536838,
-0.2620948553,
0.3448802829,
0.0602684207,
-0.0941632688,
0.3812073469,
0.3098256886,
0.20302324,
-0.0177221783,
0.1855843663,
-0.0706435665,
-0.0906359479,
-0.0210475586,
0.4785787165,
-0.0847311541,
0.7143198848,
-0.2248954773,
-0.2491259128,
-0.1734177768,
0.4096646011,
-0.3938187659,
-0.0271732211,
-0.1862059087,
0.2897663116,
0.0206641089,
-0.1405391842,
0.0848094225,
0.1604088545,
0.1899271309,
-0.00695515,
0.5650569201,
0.202469483,
0.3704705238,
-0.1926407963,
-0.170432061,
0.0081761694,
0.0942430571,
-0.2345472127,
0.363632232,
-0.3872017264,
-0.2049814314,
-0.2336308062,
-0.215593785,
0.1200500876,
0.3310539424,
-0.1377872825,
-0.2782111764,
0.3323387802,
-0.2003703266,
0.2972338498,
0.3154058158,
0.044810161,
0.6069286466,
-0.3473196626,
-0.2117928416,
0.3857122362,
0.0074286675,
0.1638016403,
-0.2288596332,
0.3544316888,
-0.2207027823,
0.1014278233,
0.0487018041,
-0.2182033807,
0.2133063972,
-0.16404742,
-0.0807817802,
-0.1688757539,
0.1329700649,
0.1167243868,
0.090415135,
0.1235697195,
0.3109087646,
-0.1185306087,
-0.0169274397,
-0.2082297206,
-0.067913197,
-0.0348821841,
-0.0294250492,
-0.0645576194,
0.3572278023,
0.2836541235,
-0.0721225888,
-0.2275485396,
-0.2286397666,
-0.1471449137,
-0.0540053286,
0.1518873125,
0.2009020001,
-0.2485598475,
0.0838383064,
-0.06924925,
-0.3781671226,
-0.1850915104,
0.3647522926,
-0.2289008498,
-0.2965631187,
-0.6092179418,
0.0443058647,
0.0293097366,
-0.1413225234,
0.1089118868,
0.2688697875,
0.481993556,
-0.1184430048,
0.4236477315,
-0.3621313572,
-0.3157015741,
-0.1269380599,
0.151450038,
0.2686063051,
-0.8413771987,
-0.0652502999,
0.0082481895,
0.2485842705,
0.1492480785,
0.2491781712,
-0.031791281,
-0.1156836301,
0.1023319513,
0.2750087082,
0.444047302,
0.2298648506,
-0.8025737405,
-0.1254060119,
-0.4141767621,
0.1022444442,
-0.1190385446,
0.1956770718,
0.0839704499,
0.2012966424,
0.3524823785,
0.0956381038,
-0.0832369551,
-0.1414694637,
-0.3857780695,
-0.1018518507,
0.2032633424,
-0.1336515993,
0.0435376093,
-0.0106332321,
0.312795341,
-0.0638057739,
0.3429014087,
0.3277739286,
0.2038773894,
0.303357631,
0.2194056958,
-0.0338491425,
0.2668210864,
-0.2382796705,
-0.2710855603,
0.0977189541,
0.1223185137,
-0.1519709975,
-0.1563117653,
-0.2403456569,
-0.7025288939,
0.2183454633,
0.1364158541,
0.0053384448,
-0.0692307428,
-0.0590432622,
0.218089968,
-0.1341994703,
-0.032683067,
-0.0548646487,
-0.3558382392,
0.1471116096,
-0.1049336046,
0.2896160483,
0.0534483828,
-0.369304359,
-0.2833217382,
0.1731370389,
0.1423825324,
0.1439751387,
-0.3318286538,
0.5284387469,
-0.0250574108,
-0.1870954633,
-0.0710230172,
-0.365541786,
0.1858623177,
-0.049162589,
0.2788016498,
-0.0748979747,
0.1783837378,
0.0045650592,
0.0118031725,
-0.0678270236,
-0.2379914969,
0.2784358263,
-0.3470551372,
-0.1087517589,
0.0590354577,
0.131524533,
-0.1129917949,
-0.3320047855,
-0.2876388133,
0.0122851627,
-0.0364266373,
-0.0151261194,
-0.22957775,
0.0601146184,
0.2146398723,
-0.026400758,
0.1114839837,
0.1653433442,
-0.2672159076,
0.1005395725,
0.3662691116,
0.2415162176,
0.7434338927,
0.1991256624,
0.0939245448,
-0.024331769,
-0.1202089116,
-0.007924418,
0.046591986,
-0.0483892523,
0.0148665793,
0.2591740191,
0.2337100059,
-0.1083142608,
-0.0253788475,
0.3794060946,
0.1265304983,
0.1463617384,
-0.3006027043,
0.030423075,
-0.3964520395,
0.1090058684,
-0.113818109,
-0.1068868488,
-0.0472328514,
-0.1677695811,
0.0350238644,
0.0338079855,
-0.2729737759,
0.275567323,
-0.4887408614,
0.1287102103,
0.2696689963,
-0.1172130406,
0.1353976578,
0.1072932333,
-0.1601348817,
-0.0256596152,
-0.3478008509,
0.0767986923,
0.1265489459,
0.3528582156,
-0.0809799507,
-0.1846957505,
-0.6639266014,
-0.0905885249,
-0.1658451855,
0.1347125918,
0.104865998,
0.1017714962,
-0.1720084399,
-0.1064297855,
0.1442973465,
0.299441725,
0.0071017602,
0.0552979,
0.0515187979,
-0.1211503223,
-0.1023788005,
-0.4178763926,
-0.2243614048,
-0.2537752092,
0.2543553114,
0.1677351147,
-0.0982268006,
-0.1927160919,
0.4928368032,
-0.3301514983,
0.015229445,
-0.017203873,
-0.3184480369,
0.3683966696,
0.422062546,
-0.069586724,
-0.1449094564,
0.0337170362,
-0.2432201058,
-0.0239137374,
0.091851674,
-0.1472076029,
0.0933530778,
-0.1383071542,
0.1208326966,
-0.032451041,
0.2197683752,
0.5915470123,
-0.0773880929,
0.1023480743,
-0.1245045364,
-0.4013106525,
0.2273926735,
0.2349445522,
0.5312868953,
-0.1336195022,
0.4529952109,
-0.0000411108,
0.2885744572,
0.0917196572,
-0.2183247656,
-0.0316433273,
-0.2098073214,
0.1782776266,
-0.3310293555,
0.0301834513,
-0.2201043665,
-0.0530981496,
-0.0377524421,
-0.0310932584,
0.0038576657,
-0.2196580321,
0.2738205791,
0.0069020386,
0.0954334736,
0.1320640594,
0.0047284937,
-0.1869535595,
-0.0142247314,
0.2118296027,
0.2793753147,
-0.2753639817,
0.0334077924,
-0.1057042629,
-0.2404876798,
-0.0680909827,
-0.026326919,
-0.4333119988,
-0.0451959893,
-0.283822298,
0.3899298608,
0.1940864325,
0.5467464924,
0.175409615,
-0.5557870865,
0.1311585754,
0.2818832994,
0.2410369366,
-0.3274642825,
-0.4251194596,
0.0470250808,
0.1985603571,
-0.4720605314,
-0.1163352057,
0.0849930793,
-0.0265565552,
0.0530414097,
0.1417144686,
-0.1842363626,
0.3784875572,
0.5383031964,
0.2780976892,
-0.135447219,
-0.1748768091,
-0.211341992,
-0.1154454201,
0.0383574851,
0.2666168213,
0.0506883189,
0.1190379113,
0.3347777426,
-0.0588507093,
-0.2179221958,
-0.4106578529,
-0.2320041955,
0.1078915447,
0.5795093179,
0.1309524029,
0.3434164524,
-0.172749266,
0.1780847162,
0.146242395,
0.6778903604,
-0.3160172999,
-0.1287688017,
0.1859261394,
-0.2585476041,
0.2852410376,
0.3564641178,
0.1048221737,
0.4273756742,
-0.0976129249,
0.1615415663,
-0.12369629,
-0.3316584826,
0.3483014405,
-0.0364913344,
0.1592893153,
-0.1429034024,
0.5838425756,
0.055739738,
-0.0640685558,
0.5355709791,
0.3855295479,
-0.047732994,
0.1789872646,
0.2290593386,
1.0119825602,
0.3987327218,
-0.2096713036,
0.1493918002,
-0.6083496809,
0.1385125518,
0.171082899,
0.0415348299,
-0.1949029267,
-0.2967477739,
0.1062927917,
-0.0384661071,
0.0778830349,
-0.038350258,
-0.0741890743,
-0.0225151349,
-0.4111106098,
-0.0608638711,
-0.0994131416,
0.0356372707,
-0.2062988281,
-0.1018422469,
0.0768307373,
0.0144520635,
0.1541114002,
0.1061990336,
-0.0259001572,
0.2839574218,
-0.3806121945,
-0.5120563507,
-0.0994393677,
0.0156705957,
0.1089025587,
0.0575730428,
0.0102584893,
-0.4089050591,
0.1461760551,
-0.1549654305,
-0.087475732,
0.1336857677,
0.1438663602,
0.3423866332,
0.2724767923,
0.2239227444,
0.1456788778,
0.1136243716,
0.0948993117,
0.2152919024,
-0.2369084507,
0.0916557387,
-0.0856530145,
-0.1643976122,
-0.289001137,
0.140919283,
-0.0327982567,
-0.5026829839,
-0.3177190721,
0.1072991863,
0.182451874,
-0.1735680848,
0.0370034128,
-0.2570531666,
0.0121248784,
0.2574304044,
0.1259060651,
-0.3205460906,
-0.1250507832,
0.7137431502,
0.2430963814,
0.0370569453,
0.5456562638,
-0.062037196,
-0.2005740553,
0.0578546152,
-0.2416698784,
0.1941676587,
-0.4723764062,
0.0387658328,
-0.3199873567,
0.1019134074,
0.0100214835,
0.0781954527,
0.2685831785,
0.232701689,
-0.3625873029,
0.1678191721,
-0.3429447412,
0.3639063239,
0.1460612118,
0.3142029345,
-0.1675262302,
-0.2009889632,
-0.0601717643,
0.3776643276,
-0.1690475345,
-0.285752058,
0.074761793,
0.2211060524,
0.1200478226,
0.2612720728,
-0.2349202186,
-0.1687364578,
0.0742570907,
0.4132664502,
0.189286992,
-0.0425817296,
-0.0177380964,
0.1136992872,
0.1303787678,
0.1159600466,
-0.1941688359,
-0.3900859952,
-0.0220030304,
-0.0733954161,
-0.0131696956,
0.0438193232,
-0.1892606318,
-0.1686127335,
0.1748150736,
-0.2541182339,
0.0460727103,
0.344758451,
-0.1099528074,
0.1676509231,
-0.0650224686,
0.1859347075,
0.2655057311,
0.1638245285,
-0.3548035622,
0.0101155713,
-0.2249090075,
-0.025297014,
0.2344940156,
-0.2191298306,
0.1044158638,
-0.090875417,
0.2551120818,
0.2529682815,
-0.0010135227,
-0.3300301135,
0.006133887,
0.0920822993,
-0.3814069927,
-0.0281083845,
-0.3035816252,
0.2432118058,
0.0974200442,
0.3086269498,
0.0931275114,
0.1900090575,
-0.3261253834,
0.1838025004,
0.270086199,
-0.1610838622,
-0.0497951694,
0.8157374859,
0.0274304021,
-0.0618518554,
0.3706051409,
0.2224715352,
0.2035601735,
0.0609654337,
0.003350192,
0.4796197116,
0.2929705977,
0.0817172974,
-0.1237498447,
0.0599613562,
0.198315382,
0.0828078017,
0.0365377963,
-0.0929825753,
0.4118367434,
-0.023714954,
0.0725683495,
-0.3503092825,
-0.0844897106,
0.0756561607,
-0.1859804094,
0.0007157706,
-0.6281937957,
-0.1837961674,
-0.31108284,
-0.3594717681,
-0.1047758311,
-0.0567479394,
0.7304556966,
-0.2808419466,
0.0407899916,
-0.2583081424,
-0.2098982334,
0.0031493632,
0.076120995,
-0.3128356636,
0.2475766987,
0.2272415459,
-0.0591457114,
0.3323110342,
0.0456520692,
0.3254353404,
0.13283512,
0.2016153187,
-0.0929415226,
0.2371742725,
-0.2348898053,
0.2276576012,
0.3966603577,
0.1293012798,
-0.1632921547,
0.1752872467,
0.053434588,
-0.0952453911,
0.2036037892,
0.1524479538,
0.4200279415,
-0.3563272059,
0.1430585384,
-0.130843237,
-0.3367048204,
-0.0797393173,
-0.0470328964,
-0.0371609516,
0.0862180814,
0.0980571508,
-0.0910401344,
0.0292177144,
-0.1615637541,
0.0033694874,
-0.1287703514,
0.1948774606,
0.2144073695,
-0.2921977043,
0.0550785884,
-0.1844688654,
-0.2614018321,
-0.0671691373,
-0.5196350217,
-0.5024820566,
0.0391685031,
0.2446736544,
0.2013412416,
-0.0925037265,
0.4790180027,
0.2301710695,
0.0132907815,
0.4627120197,
-0.0188113097,
-0.2972556949,
-0.1463599056,
0.0459297411,
0.0431484878,
-0.1846256703,
0.0413141213,
0.2230613679,
-0.1242953613,
-0.0850945935,
-0.1141509637,
0.1872734874,
0.2204162031,
0.4074782431,
0.0221222881,
0.5489422083,
0.1126403213,
0.2246771008,
-0.2629416585,
-0.3424994648,
-0.2419402599,
0.2906066179,
0.0979026183,
0.3872916698,
0.0580059066,
0.0127176419,
0.1250772178,
0.199515745,
-0.337028861,
0.1343453676,
-0.2346697152,
-0.0472323,
-0.1939325333,
0.0765418187,
0.1249755844,
0.0501423217,
0.27969414,
0.3591469824,
0.1647762358,
-0.4475567937,
0.4196080267,
0.0277056061,
-0.2497126907,
-0.0874987841,
0.0219650306,
0.3229507804,
-0.1594498456,
-0.2185304314,
-0.1609864831,
0.304910332,
-0.1044653133,
0.3495865464,
0.139843598,
-0.0841186494,
0.1383663118,
-0.2282848507,
0.5186858177,
-0.2141585946,
0.1019178405,
-0.203262791,
-0.3424544632
] |
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.0286771413,
-0.7930665612,
0.0335285813,
-0.0818501636,
-0.0049163247,
-0.1033488587,
0.2304780334,
-0.0015910362,
0.4284726977,
0.2395398915,
-0.3240568042,
-0.0459577553,
0.0236223266,
0.4699032903,
0.1768153012,
-0.2348045111,
0.0796521828,
0.112086989,
-0.2576456666,
-0.073827751,
-0.1641775817,
-0.021459356,
-0.5562421083,
-0.1872491837,
0.3530068994,
-0.3256388307,
-0.1314133853,
-0.2317972928,
-0.1461291462,
0.3155249953,
0.3914791644,
0.3159993291,
0.1450018138,
0.4359944165,
-0.0001249961,
0.2683011889,
-0.2683857977,
-0.1601195484,
0.1241355538,
-0.1457851976,
-0.1318629831,
-0.0308622159,
-0.0861302689,
-0.2909471989,
-0.1553765684,
0.0247166492,
0.0838053524,
-0.3370780349,
0.6689299941,
0.1163537949,
0.0033911197,
0.2023021728,
-0.0828162432,
0.068701379,
-0.0968775079,
0.064350903,
0.0033202593,
0.0944172665,
0.0819834992,
-0.0196642168,
0.0691596046,
0.3062364459,
-0.0207522027,
-0.0487898812,
0.0508213267,
0.0709672719,
0.0294627324,
-0.4244829714,
0.0995177627,
0.3601128757,
0.1911818087,
-0.3335200548,
-0.546102047,
-0.0424866714,
0.0593183339,
-0.0293311905,
-0.2361652404,
0.1573973447,
-0.1050993949,
0.2068411708,
-0.4860776365,
-0.1199070737,
-0.0401413068,
0.0794256851,
0.1040406451,
-0.0883651823,
-0.3136320114,
0.3048333526,
0.0857106596,
0.068664372,
-0.1580195427,
-0.1046707109,
0.1547601968,
0.2256594449,
-0.6143534184,
-0.219861716,
-0.2562040985,
-0.0180304796,
0.3166290224,
0.3536278009,
0.5462896824,
-0.0548857227,
-0.0812086836,
0.1295621097,
0.0867581367,
0.5366972685,
-0.0814004242,
-0.241898343,
-0.0120942658,
0.1348870993,
0.0322757885,
-0.0191908106,
0.3165334165,
-0.0755865946,
-0.3641900122,
0.1535307318,
0.3737837672,
-0.0768216774,
-0.3276385665,
-0.2054921687,
-0.355368495,
-0.1100302264,
0.0133681865,
0.1497775465,
-0.1751030087,
0.0324247181,
0.182923764,
0.058238849,
-0.2670662999,
-0.0648586005,
-0.1565461159,
0.2346505374,
-0.1623347551,
0.0303168353,
-0.0835500807,
-0.1439877898,
0.0143883154,
0.4878042638,
-0.0132798655,
-0.0494597517,
0.2268326283,
-0.1175173372,
0.3311550319,
-0.012914273,
0.1702435613,
-0.1079320386,
0.1320791095,
0.0481053255,
-0.0473231412,
-0.0201095212,
-0.1124602556,
-0.251968801,
0.0791810751,
-0.0342013612,
-0.280818522,
0.0415977873,
-0.2271562368,
0.3425577283,
-0.3150837719,
0.3320274651,
0.4480589628,
0.395891279,
-0.0926603153,
-0.0812169015,
0.3662145138,
0.0135230049,
-0.0299307592,
-0.2975442111,
0.3306924105,
-0.0206190962,
0.2846174538,
0.2693360746,
-0.0772318467,
0.2560566366,
-0.2479437143,
-0.1416991204,
0.2170894891,
-0.1550874561,
-0.422665149,
0.2669498324,
-0.111682184,
0.3041914105,
-0.0293436758,
0.0453689694,
-0.0606512949,
0.1691665947,
-0.0211245753,
0.2345537245,
-0.0976087153,
-0.0916919634,
-0.0077357362,
-0.1554213017,
0.3678479195,
-0.1237496659,
-0.1123941615,
0.3373726308,
0.1141550764,
-0.0311686806,
0.2400604486,
-0.4657919407,
0.2133108824,
0.2559940219,
0.2300510406,
0.1441585273,
0.2475069761,
-0.1622308791,
-0.3966981173,
0.1127589345,
-0.3874370754,
0.1097856984,
0.1357520372,
-0.3187188506,
-0.1147377416,
-0.2083286941,
-0.1158751324,
-0.0275499057,
-0.091306679,
-0.0769160166,
0.4252485037,
0.0141553208,
-0.4040583968,
0.2884083986,
-0.1211187243,
0.1116677821,
-0.4417365193,
0.0506427996,
0.2840943038,
0.0014731539,
-0.0312432069,
0.1696157902,
-0.014317031,
-0.3851287663,
0.0939000696,
0.3167592883,
-0.27169168,
-0.0050710123,
-0.0730887055,
0.0714599639,
0.0649735704,
-0.1072304919,
-0.1467594355,
0.1161517426,
0.0738632753,
-0.0635086,
-0.1146611944,
0.7550535798,
-0.0631500855,
0.1573878825,
0.1018700078,
-0.0422720611,
-0.1553641856,
-0.2558642328,
-0.1365821213,
0.2526300848,
0.180175066,
-0.204304412,
0.2563438118,
-0.1358104795,
-0.2275714725,
-0.29075405,
0.2738241553,
0.0077714869,
0.3027173579,
0.1412795931,
0.0636069477,
0.161996603,
0.0168050937,
-0.1653855294,
0.3542358875,
-0.0300221741,
0.2275404185,
0.3308393359,
0.2882864177,
0.149615109,
0.0311070047,
-0.2790496945,
-0.0408794247,
-0.0289257932,
0.0171888322,
0.0865659714,
-0.3360080123,
-0.0112245502,
0.0899157822,
0.1401434541,
-0.0238193218,
-0.0793161243,
-0.1206800044,
-0.1589751542,
-0.1988610923,
0.0308302213,
-0.224270761,
-0.0280897934,
-0.0675437748,
0.0957191512,
0.086242497,
0.4852786362,
0.3077235222,
0.4453644156,
-0.049504526,
0.3921658099,
-0.0835310742,
0.0408273116,
0.0993405581,
-0.0459783487,
-0.1255238652,
-0.2114329785,
0.2040089816,
-0.0066474341,
-0.0031046278,
-0.5141175985,
-0.2244875729,
0.2302788347,
0.0412576348,
-0.2499293387,
0.3766583502,
0.0238637924,
-0.5575554371,
-0.1051279455,
-0.0297658164,
-0.0915049091,
-0.5620678067,
0.2115025073,
-0.1757508516,
0.1443347037,
-0.2802773714,
-0.339125365,
-0.0725458264,
-0.2252957523,
0.9792708755,
-0.3612008989,
0.0411208235,
0.1631680131,
-0.2286429405,
0.0631908625,
-0.0209392142,
0.114487581,
-0.0962950587,
-0.5435051918,
-0.1717207879,
0.001851685,
-0.1162725538,
-0.1359869391,
-0.055608023,
0.0778615922,
0.5772360563,
0.0053353598,
-0.1905707717,
-0.3950431049,
-0.2697646916,
-0.0862360448,
0.4125999808,
0.2028818727,
-0.3294509649,
0.1059353873,
-0.0606170595,
-0.0498360395,
0.233362034,
0.0149458433,
-0.0965534151,
0.2160255015,
-0.0281824376,
0.3622389138,
0.3341759145,
0.3676954806,
-0.1023174375,
0.0332145654,
-0.2708881199,
-0.0947811157,
0.1031510681,
-0.3197564185,
0.0953793302,
0.1244688034,
0.2572001517,
0.0873057321,
-0.2040503472,
0.2834174037,
-0.1026235297,
-0.088300474,
-0.307508558,
-0.3365746737,
0.0534682125,
-0.2100794613,
0.232092008,
-0.1446569115,
-0.2437561452,
-0.0363586955,
-0.1027687937,
0.2560221851,
0.2257692665,
0.144520849,
0.107236281,
-0.4300123453,
-0.2547131181,
-0.4477872849,
0.6707231402,
-0.085891135,
0.2343778759,
0.0605877116,
-0.1017307714,
0.1097609699,
0.0608186908,
1.0629656315,
-0.1269098073,
-0.1150795221,
-0.4581468701,
-0.5178861022,
-0.3554795682,
0.2233657539,
-0.2517986298,
0.5846660733,
-0.2207656503,
0.4985592961,
-0.3260099292,
-0.2020829469,
0.3566175401,
-0.0216874816,
-0.1113522202,
-0.1126881689,
-0.0517897047,
-0.5832821727,
-0.1669628471,
-0.0096344789,
0.1398488134,
0.1057277098,
0.0736754015,
0.0825312287,
-0.3450150788,
0.2281898409,
0.3295409083,
-0.1223948151,
-0.0531047732,
0.2326717526,
-0.1102342531,
0.1479381621,
0.3024215996,
-0.1586878747,
0.1321974248,
-0.0909596682,
-0.4877897203,
-0.2094706297,
0.1972485036,
0.4393367469,
-0.0067395675,
0.1547268927,
0.5029056668,
0.3022941351,
0.2137037069,
-0.1864863038,
0.0794918537,
0.0667033866,
0.4177775681,
-0.2173392028,
-0.3686797321,
0.2620945573,
0.2697608769,
-0.1836907268,
0.321077615,
0.359731108,
-0.1764509976,
0.0623174347,
-0.0336869247,
0.9954256415,
-0.2392772287,
0.0327422246,
0.0933548287,
0.0993018225,
0.5693768263,
-0.3401604295,
0.184649244,
-0.1260445714,
-0.4899756014,
-0.1357160658,
-0.0799189508,
0.0968291536,
0.193699643,
-0.3488971591,
0.3828974962,
0.2853858769,
-0.0825764611,
-0.0641373023,
-0.028025385,
-0.1656275243,
-0.107133545,
-0.1467166245,
-0.1079682261,
0.0220566206,
0.5606476068,
0.0056525595,
-0.0185836107,
0.2328843772,
-0.0159532651,
-0.0225532204,
-0.1988409162,
-0.5518350005,
0.2577757239,
0.2468711138,
-0.0929163471,
-0.059198074,
0.6065935493,
0.5822289586,
-0.1418758631,
0.041940596,
-0.1534199268,
0.0694885254,
0.0006191002,
-0.2725733221,
-0.0609656461,
0.1631483138,
0.0406530462,
-0.2638306916,
0.0023187229,
0.0961165875,
0.1285232604,
-0.062900573,
0.0654477552,
-0.0298105944,
-0.3008281887,
-0.0218402036,
0.1121985987,
-0.1306968629,
0.108318314,
-0.0872033611,
-0.0722609386,
-0.525249362,
0.193713367,
-0.1698548794,
-0.4661312699,
0.0094296029,
0.3949134946,
0.2523917854,
-0.1013389006,
0.3541484475,
0.0105433622,
0.129339695,
-0.0748833641,
-0.2623845637,
0.3379662335,
-0.4243889451,
0.4755461514,
-0.3102813959,
0.2922954559,
0.0742958263,
0.1960965842,
0.1080116108,
0.2043855339,
-0.2514821887,
-0.2861174345,
-0.1518701613,
0.0957857892,
0.2197879702,
0.1917153448,
0.0758665577,
0.2850636542,
0.1013219878,
-0.143169567,
-0.1664751917,
0.2582515776,
-0.2909672558,
0.2511137724,
0.1690473557,
-0.026635563,
0.1901881397,
0.2332657874,
-0.0508920848,
0.2125859261,
-0.1234487295,
-0.0858647451,
-0.0335238352,
0.1654633731,
-0.0731753185,
0.0120541546,
0.2206755579,
0.2774682343,
0.0016322123,
-0.1156460419,
0.6620076299,
0.3135238588,
0.1242307574,
0.4530088305,
-0.0392361656,
-0.030065218,
-0.4302756786,
-0.2596963644,
0.2056226283,
0.0129284617,
-0.0419483967,
0.0790591687,
-0.0580809303,
-0.0484758429,
-0.0968894139,
-0.0315730087,
0.5867381692,
-0.2456671596,
-0.027761003,
0.1022152528,
-0.0098980218,
-0.3602333069,
0.3858983219,
-0.1729994118,
-0.2082861215,
0.061364077,
-0.0469939336,
0.014611559,
-0.0997824594,
0.2281921655,
0.3033627868,
-0.2837219536,
0.0247395467,
0.3674832284,
-0.1126345694,
0.2506138682,
-0.1545862705,
-0.2312276661,
-0.0144272437,
-0.1954031885,
0.1038136557,
0.4507316053,
-0.0486228317,
0.072877869,
-0.0790007636,
0.1152455658,
0.3343012929,
-0.0837698802,
-0.1827020794,
0.4700673819,
-0.2861007452,
0.2373531312,
0.3596648574,
-0.4437981844,
0.1341636777,
0.4912837744,
0.0105595626,
0.4207003117,
-0.0713462606,
0.5603380203,
-0.0149856582,
-0.2897993326,
0.166200906,
0.4697264731,
-0.1804601252,
-0.1805507243,
-0.1419833004,
-0.1482177228,
-0.1495566666,
0.0911207572,
-0.0643827617,
-0.014467719,
0.3167576492,
0.0442409106,
0.118955031,
0.0375941172,
-0.1458503902,
0.3263543844,
0.3060726225,
-0.0280870534,
-0.1908962727,
0.3235076368,
-0.2239844799,
0.0667229444,
0.6331111193,
-0.0457764789,
-0.0151910428,
-0.3315422833,
0.6930214763,
0.2356723845,
-0.1277493089,
0.0481516011,
-0.0293363668,
0.0372453965,
0.0154019734,
-0.0318470262,
-0.001632562,
-0.0284104533,
0.1966882795,
-0.1164303795,
0.1457047164,
-0.4811051488,
0.073252894,
-0.0500029773,
-0.0742100924,
-0.2154109627,
0.2200535834,
-0.2281733304,
-0.36677441,
0.1172424853,
-0.1666603386,
0.0750226378,
0.1193063036,
-0.0270118564,
-0.1834547818,
0.2962084413,
0.3321765065,
0.4024868011,
-0.1092903614,
-0.189754948,
-0.076957956,
0.038061846,
0.2055294067,
-0.2358454615,
0.3291261494,
0.0614927858,
-0.0284659248,
0.0228518583,
-0.0437226035,
-0.1772941053,
-0.2516959906,
0.1158900931,
-0.3434189558,
-0.2081307024,
-0.0887907967,
0.2309344411,
0.2883773148,
-0.3365617692,
0.0835813433,
0.33039096,
-0.2150850445,
-0.0639267936,
0.440000236,
-0.0069967927,
0.0228787288,
0.0210186653,
0.1909424663,
-0.1019744128,
-0.1159375906,
-0.0735419989,
0.4731511474,
0.1208456755,
-0.3382179141,
0.3409436047,
-0.0889392123,
0.1021974459,
-0.2532983422,
-0.3499636352,
-0.0432649776,
0.1976895183,
0.5831400156,
-0.4377902448,
-0.2445883602,
0.1392472088,
0.0341703221,
-0.0471586622,
0.3726727068,
0.8478615284,
-0.1141430885,
-0.0920380354,
-0.1728164405,
-0.0630584136,
0.5526185632,
-0.2391412705,
-0.1933095604,
0.0768837407,
0.2288539559,
-0.134684056,
-0.4252274036,
-0.699685514,
0.1381089389,
0.2961443365,
-0.0848561525,
-0.1005777568,
0.3815333247,
-0.0538222119,
-0.1655152887,
0.0913753062,
0.0765393749,
0.3595644832,
-0.3701279759,
0.2556762695,
-0.3200048208
] |
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.0424977504,
-0.7478796244,
0.0441973545,
-0.0638021827,
0.0602155514,
-0.07411924,
0.2164923549,
0.0234036464,
0.4041276574,
0.2328332216,
-0.3757909536,
-0.0309476256,
0.0087435916,
0.46033445,
0.2217883319,
-0.2381003797,
0.0493123941,
0.099917382,
-0.2166884094,
-0.0692888424,
-0.0773237497,
-0.0117728999,
-0.5677038431,
-0.1649729162,
0.3511195183,
-0.2511515319,
-0.1151802167,
-0.2309312224,
-0.125127241,
0.2847945392,
0.4793152213,
0.2426975816,
0.1669387966,
0.4491541684,
-0.0001256292,
0.2773347497,
-0.2205355763,
-0.1515980363,
0.1575898528,
-0.151048407,
-0.1850503236,
-0.0384178497,
-0.053982988,
-0.3068352938,
-0.1764236987,
-0.0184584334,
0.063106209,
-0.3345099092,
0.6362299919,
0.1719637364,
0.001331824,
0.2099070847,
-0.079864949,
0.0820842907,
-0.1022052467,
0.0367430039,
-0.0256353524,
0.1146041527,
0.0846526772,
0.0455239005,
0.0681279823,
0.2344956994,
-0.0564623959,
-0.0299292561,
0.0353238098,
0.1095687076,
-0.0328950733,
-0.3611133695,
0.1364400536,
0.3937363029,
0.2183606178,
-0.3737193048,
-0.5333203673,
-0.0268118102,
0.0756628811,
-0.0685919076,
-0.2059097588,
0.2482981831,
-0.0961423516,
0.2391861528,
-0.4491077662,
-0.1502822787,
-0.0860687718,
0.0137129333,
0.0574083179,
-0.1004856974,
-0.3021977544,
0.2693092823,
0.0576841682,
0.0820068419,
-0.0920691788,
-0.0770094842,
0.1063658297,
0.1584076583,
-0.6728429794,
-0.2440766096,
-0.2414088547,
0.0239159334,
0.268383652,
0.3667656481,
0.545334518,
-0.0524720401,
-0.026259277,
0.0717241317,
0.0509239845,
0.550460577,
-0.09274932,
-0.2812030911,
0.0373219997,
0.1110853478,
-0.0138820037,
-0.0510669053,
0.3221218884,
-0.0530245006,
-0.3440660536,
0.1472052485,
0.3968832493,
-0.1028704345,
-0.3556046784,
-0.1796554625,
-0.3000109196,
-0.1298760474,
0.0673621818,
0.1227709949,
-0.1877585948,
0.0165360607,
0.1142914519,
0.041676987,
-0.2851558626,
-0.0781526342,
-0.1623556018,
0.2975334823,
-0.1561619788,
0.0250503048,
-0.0284829997,
-0.2422844619,
0.0106543116,
0.4878166914,
-0.0249355044,
-0.0006227141,
0.2213850915,
-0.1916828454,
0.2998882234,
-0.0221223403,
0.1274334192,
-0.1672378182,
0.1175885201,
0.0563345663,
-0.0360733941,
0.0110057388,
-0.0750046447,
-0.2657645643,
0.0381359309,
-0.0416550301,
-0.3246124685,
0.0032485935,
-0.1793219745,
0.2697196007,
-0.3806002438,
0.4313864112,
0.462151885,
0.3615432978,
-0.0420181341,
-0.0687470213,
0.4144030213,
-0.0749238357,
-0.0679471791,
-0.3054030836,
0.3379550278,
-0.0421894304,
0.325953722,
0.2724407613,
-0.0680567101,
0.3023757935,
-0.2311034054,
-0.1621001661,
0.2351861,
-0.1755772084,
-0.4458522797,
0.1876092404,
-0.0978451967,
0.2507427931,
-0.0481087007,
0.0729170591,
-0.0773576275,
0.2221725732,
-0.0441653356,
0.2555154264,
-0.0487267859,
-0.138328433,
-0.0155062098,
-0.1830751598,
0.3481131494,
-0.082495369,
-0.0941850394,
0.3812475204,
0.1271147281,
-0.0217740498,
0.2218708098,
-0.4553267658,
0.1601550579,
0.2863129973,
0.2274767756,
0.1333514452,
0.2319568694,
-0.1823988706,
-0.3266888857,
0.1416946501,
-0.3598374426,
0.0889273882,
0.1157253608,
-0.304900527,
-0.1305138469,
-0.2349699587,
-0.1013234854,
0.0059276833,
-0.1083110273,
-0.0970225111,
0.4688789546,
0.0513625927,
-0.4691466391,
0.3537308872,
-0.1237800941,
0.1276918948,
-0.4118318856,
0.0413682796,
0.295488447,
-0.016927626,
-0.0135375978,
0.2284951061,
-0.0155148432,
-0.3583827019,
0.0819733292,
0.3086036146,
-0.3341929913,
0.0336165689,
-0.0568824746,
0.0462706722,
0.0354424715,
-0.1527610421,
-0.1786397099,
0.0535830706,
0.0892215371,
-0.0112614036,
-0.0550485887,
0.7477802634,
-0.0993615687,
0.1371468604,
0.1400216818,
-0.0569112077,
-0.1730738282,
-0.3248524368,
-0.1202724054,
0.2766093016,
0.2228628397,
-0.2027989924,
0.2167765051,
-0.1463133097,
-0.2560459971,
-0.3367410898,
0.3105784655,
0.0451068506,
0.3367244601,
0.133629486,
0.041704841,
0.201752454,
0.0126553811,
-0.1468299329,
0.422799468,
-0.0309495535,
0.2567649782,
0.3795534074,
0.3169096708,
0.1312440336,
0.0841787308,
-0.2490988821,
-0.0797817856,
-0.0145398844,
0.0557714216,
0.0699482784,
-0.3710449338,
-0.0041463245,
0.0700622648,
0.1621102542,
0.0241401494,
-0.1014375091,
-0.1798607111,
-0.2002354264,
-0.2028768808,
0.0098966518,
-0.1672875881,
-0.0132867359,
-0.0906695351,
0.0028246122,
0.1491719335,
0.4050224721,
0.2213255465,
0.4259087145,
-0.0962607339,
0.3810700178,
-0.1173517704,
0.0341567285,
0.0919181183,
-0.0392953418,
-0.1389831603,
-0.187471509,
0.2197643369,
0.014733132,
0.0398429148,
-0.5104530454,
-0.1632600874,
0.2542127073,
0.0426330417,
-0.2061795145,
0.3554163873,
0.0567916185,
-0.5357359648,
-0.084604606,
-0.0282520056,
-0.0885255709,
-0.5490328074,
0.1930107176,
-0.159626618,
0.1691584289,
-0.305981338,
-0.3406264186,
-0.0838261247,
-0.2163716257,
0.9462255239,
-0.3164277077,
0.0208239295,
0.1576193571,
-0.3140148222,
0.1281803846,
-0.023696905,
0.1545454413,
-0.0536155626,
-0.5723293424,
-0.163387835,
0.0267136246,
-0.1361408532,
-0.1201189905,
-0.0198403802,
0.1375266165,
0.5128788352,
-0.0431781374,
-0.127481997,
-0.4869634211,
-0.2536956072,
-0.0911310911,
0.4112824798,
0.1251697093,
-0.3662732244,
0.1088479459,
-0.0184606649,
-0.0162020754,
0.2133467942,
0.0040531629,
-0.0966631398,
0.259473294,
-0.0480679758,
0.3650169969,
0.3248704672,
0.3047578037,
-0.1051919013,
0.0402547568,
-0.2972829044,
-0.0865995139,
0.0679806694,
-0.3497265279,
0.1237853691,
0.1597070396,
0.3275421858,
0.111440599,
-0.192647621,
0.3412343264,
-0.1267319918,
-0.0945027322,
-0.269720614,
-0.3193697929,
-0.0557215661,
-0.1540183574,
0.2477357537,
-0.123686403,
-0.1904550791,
0.0278494842,
-0.1654296368,
0.2789088786,
0.2406208962,
0.1410547644,
0.0966713279,
-0.3829195797,
-0.3035740852,
-0.4883566797,
0.6454591751,
-0.1398074031,
0.2618304491,
0.0665868223,
-0.1270615309,
0.1306856424,
0.0341163911,
1.0370573997,
-0.0324870013,
-0.1396746635,
-0.4750312865,
-0.471019119,
-0.3139972091,
0.1841605306,
-0.2221709937,
0.5769687295,
-0.2369396985,
0.3767881989,
-0.2941347361,
-0.2223189473,
0.3668452799,
-0.0364616178,
-0.079164274,
-0.101824455,
-0.0539003164,
-0.6249426603,
-0.0915393382,
-0.0180134345,
0.0656029731,
0.154986009,
0.0411959924,
0.1325078905,
-0.3746034801,
0.1941817254,
0.3676535785,
-0.1300131679,
-0.0035210457,
0.1491788626,
-0.1001518592,
0.1031873301,
0.3238517344,
-0.2297274321,
0.1300438792,
-0.0321592726,
-0.468182683,
-0.2133581042,
0.157004416,
0.4705613852,
-0.0856453106,
0.1072183251,
0.6108520627,
0.2382158041,
0.1436378956,
-0.19656533,
0.0670799389,
0.0644115061,
0.4300856292,
-0.1884417236,
-0.3638097048,
0.2624980509,
0.3062621951,
-0.1562132686,
0.249763459,
0.3646603823,
-0.2032859921,
-0.0084190611,
-0.0541928187,
0.9401322007,
-0.2121049911,
0.0104363505,
0.0546100661,
0.078815043,
0.6255307794,
-0.2705158591,
0.2517606914,
-0.1583644599,
-0.5409910083,
-0.1582002044,
-0.1358967721,
0.160444364,
0.1070918068,
-0.3282734752,
0.3783896863,
0.2835080326,
-0.0956668854,
-0.0340369828,
-0.0009840962,
-0.1824060678,
-0.080692932,
-0.1565551311,
-0.1136663035,
-0.0327013321,
0.5507888198,
0.021355018,
0.0167271849,
0.2169836909,
0.0469507612,
-0.0409516282,
-0.1543100476,
-0.4644550681,
0.2687181532,
0.3073607683,
-0.1465981752,
0.0131556941,
0.6149062514,
0.6690641642,
-0.1112762541,
-0.0006845484,
-0.1205120087,
0.0516004637,
0.0170153622,
-0.2183579504,
-0.0521084107,
0.130512163,
0.0501957946,
-0.265019089,
0.0233016778,
0.1552673876,
0.1165153235,
-0.0890500695,
0.090236865,
0.0055768895,
-0.2745076716,
-0.0404992551,
0.1044757441,
-0.1179058105,
0.1013719589,
-0.0872137025,
-0.0688396692,
-0.495757252,
0.1789329052,
-0.1613688469,
-0.4757237732,
-0.0061026295,
0.3508867919,
0.2941737473,
-0.0643244013,
0.4002085626,
0.036697682,
0.1323279887,
-0.0667799711,
-0.2662049532,
0.2626365125,
-0.3881517053,
0.4740819335,
-0.2939942181,
0.3173546493,
0.1067783833,
0.1131157428,
0.0162118115,
0.1288259178,
-0.2889350951,
-0.2663583457,
-0.1245183796,
0.0764645338,
0.1795399636,
0.1779040247,
0.0750112459,
0.2766522467,
0.0476268604,
-0.2402659506,
-0.1558551788,
0.2842412293,
-0.2833645642,
0.218441695,
0.1326664686,
-0.0157707613,
0.1630742401,
0.2165211588,
-0.0567007884,
0.2261711955,
-0.0547170565,
-0.0868412927,
-0.0172898322,
0.1616122574,
-0.1124467924,
0.0084790476,
0.1674676538,
0.2956519127,
-0.033069808,
-0.0734098703,
0.6825500131,
0.2951779664,
0.1258975714,
0.4761399329,
-0.036272157,
-0.0462835282,
-0.4582365751,
-0.3013270497,
0.1785137206,
0.0314400345,
-0.0072618979,
0.1081374437,
-0.061502777,
-0.0164692085,
-0.1421904713,
-0.0376238599,
0.5748138428,
-0.2740879953,
-0.0295527726,
0.0608414784,
-0.0396305211,
-0.3905898929,
0.4094211459,
-0.1740114391,
-0.2018861175,
0.0201809276,
-0.0206283368,
-0.005349623,
-0.1028339788,
0.2194720954,
0.2927229702,
-0.2715494335,
0.0251175556,
0.3670119941,
-0.1269932687,
0.2906769514,
-0.214414224,
-0.2452575415,
0.0469378866,
-0.1940745562,
0.1204533577,
0.4268246293,
0.0451318435,
0.0252439119,
-0.0401615463,
0.0988047868,
0.2951339781,
-0.0160153545,
-0.183764562,
0.4372755885,
-0.225607127,
0.2472945303,
0.3573013246,
-0.4244352281,
0.1144538894,
0.4516224265,
-0.0041888026,
0.4051043093,
-0.0818891525,
0.5455580354,
-0.0006798955,
-0.2501792014,
0.1463155299,
0.4758297205,
-0.1705472022,
-0.1944055855,
-0.098026596,
-0.1143438593,
-0.0935430452,
0.1151865125,
-0.0533109903,
0.0250722952,
0.1784050465,
0.0636573881,
0.1081236228,
0.0506288223,
-0.0329842716,
0.3312445581,
0.2496909648,
0.0193048585,
-0.1996648163,
0.3107479811,
-0.1767766923,
0.0455964319,
0.6782320142,
-0.0700292736,
-0.0051779188,
-0.3357174098,
0.6726943254,
0.2287703305,
-0.1550969183,
0.0435774848,
0.0125397146,
0.0421920419,
0.0660527349,
-0.0302556213,
-0.0014336765,
0.0101448717,
0.1819347441,
-0.0780004933,
0.1584955901,
-0.5389954448,
0.1471688449,
0.006196917,
-0.0930636823,
-0.2471257448,
0.2212384939,
-0.2751742601,
-0.4047090411,
0.1331682354,
-0.1408243626,
0.0647849292,
0.1152140275,
-0.0306609236,
-0.2047547549,
0.2973885238,
0.3563154042,
0.4698464572,
-0.078771539,
-0.1468904912,
-0.0865187719,
-0.0149453059,
0.2726430297,
-0.2390536368,
0.3346011937,
0.0375353545,
-0.0850003958,
-0.0304190852,
-0.0827734172,
-0.1391348988,
-0.2084831595,
0.0215337183,
-0.3523411453,
-0.2075143903,
-0.0560424924,
0.2039815187,
0.1930281669,
-0.2936785519,
0.1306681037,
0.3046518862,
-0.220550701,
-0.034695603,
0.4123049974,
0.0229638629,
0.0205560531,
-0.0387000777,
0.111363396,
-0.0904420763,
-0.0774442628,
-0.0414637066,
0.4800555408,
0.0969664529,
-0.3031175435,
0.3314425647,
-0.1199898347,
0.1094994247,
-0.2138831466,
-0.3864008188,
-0.046675805,
0.2270218432,
0.5675141215,
-0.4472629428,
-0.2105764002,
0.1187098622,
0.02140739,
-0.0336178541,
0.3569826782,
0.8135995865,
-0.1269945949,
-0.1103091985,
-0.2217966169,
-0.0645325407,
0.5682216883,
-0.2965454161,
-0.1726728827,
0.0495364815,
0.2286389172,
-0.1154558733,
-0.3957335055,
-0.6892156005,
0.1222513914,
0.3059705198,
-0.104468517,
-0.1229855791,
0.405179739,
-0.028128203,
-0.0896985307,
0.1116388366,
0.0332252197,
0.3858935535,
-0.3727833331,
0.2502821386,
-0.2413188368
] |
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.0753812939,
-0.7735245228,
0.0261516161,
-0.0693189204,
0.0228941906,
-0.0482675135,
0.3034125566,
0.0408936143,
0.3975751996,
0.2398023605,
-0.365085423,
-0.0645893514,
0.0264362544,
0.4119095206,
0.1797592342,
-0.204305321,
0.0633045137,
0.0990089998,
-0.2375573069,
-0.0585382171,
-0.1362455934,
0.0407438986,
-0.5339215398,
-0.1767410785,
0.3353886306,
-0.2973919809,
-0.1161580309,
-0.2635372579,
-0.1034479439,
0.3052072823,
0.4921704829,
0.3093293905,
0.2077564746,
0.4856835306,
-0.0001246522,
0.3010812104,
-0.2492470592,
-0.1526912749,
0.1145770103,
-0.0873674601,
-0.1308569461,
-0.0882825553,
-0.0693371072,
-0.3121808469,
-0.1677761674,
-0.0135152284,
0.0861692503,
-0.3338788152,
0.6199626923,
0.1076618508,
0.0035845456,
0.3279934525,
-0.0736482143,
0.0471055731,
-0.1618748456,
0.0315583311,
-0.0162979607,
0.1471144408,
0.1239845604,
0.0130384723,
0.081159845,
0.3311887085,
-0.1018416137,
-0.0348066837,
0.0685206652,
0.1417721957,
0.0737149343,
-0.4227609634,
0.1653947234,
0.3434447646,
0.1286981106,
-0.3457922339,
-0.5522565842,
-0.111051932,
0.0664459839,
-0.0784130096,
-0.2424914688,
0.1549119502,
-0.1231817082,
0.1915922463,
-0.4587091208,
-0.0850624666,
-0.0642048866,
0.0513775423,
0.0663285926,
-0.0215884242,
-0.2763304412,
0.2708167732,
0.05634607,
0.0941274837,
-0.1524149477,
-0.1206800491,
0.1649203598,
0.2293739021,
-0.6707263589,
-0.2004775256,
-0.2176059335,
-0.0827740878,
0.2486546636,
0.3064737022,
0.5127050281,
-0.0695316643,
-0.0014585131,
0.0912642404,
0.0690612122,
0.545730114,
-0.1010436267,
-0.2234713435,
0.010707424,
0.1190957054,
-0.0006034853,
-0.0132915201,
0.3079890013,
-0.0960773602,
-0.2861174941,
0.1868259758,
0.3991136253,
-0.0048525166,
-0.3670805395,
-0.182721287,
-0.3305945992,
-0.150412932,
0.0168247577,
0.1619480699,
-0.1955448836,
0.0388267413,
0.1834594011,
0.0962479711,
-0.2616737485,
-0.0341714919,
-0.1754766405,
0.2005477399,
-0.135568887,
-0.0149282571,
0.0025348726,
-0.196424067,
0.0182540696,
0.4052438736,
0.0459590741,
-0.0078744702,
0.1850577295,
-0.1379249692,
0.3300074339,
0.0267927293,
0.2054770887,
-0.1043840498,
0.1196804717,
0.1109362692,
-0.0676132143,
0.0062330957,
-0.0762393475,
-0.2370309234,
0.1029387787,
-0.0261911433,
-0.2901275158,
-0.0064335694,
-0.265501231,
0.2805638313,
-0.3139199317,
0.410752207,
0.4642282724,
0.3083906174,
-0.0579390042,
-0.0884879231,
0.3909341395,
-0.0335801803,
-0.1268099993,
-0.2703216076,
0.3334640861,
-0.0070435945,
0.3165133893,
0.311193049,
-0.0583804697,
0.3475650847,
-0.2451773435,
-0.0472129807,
0.2052667588,
-0.1820419878,
-0.4236239195,
0.2309686989,
-0.0761011019,
0.299036175,
-0.0356756374,
0.0611705072,
-0.0361166522,
0.1729478836,
0.0400796942,
0.2885247171,
-0.0879404917,
-0.0819171146,
0.0025715455,
-0.1750306338,
0.2911465466,
-0.0937552229,
-0.0195053741,
0.2881813347,
0.0503393486,
-0.1503593326,
0.2743273675,
-0.5115572214,
0.2057098895,
0.2351750582,
0.233188048,
0.1862758845,
0.2376929224,
-0.1802091449,
-0.4620918632,
0.1702178121,
-0.3757822216,
0.15922831,
0.0510785878,
-0.336446166,
-0.1325398088,
-0.189986378,
-0.1449079812,
0.0438796394,
-0.0932902023,
-0.1333113164,
0.4629058242,
0.0250244867,
-0.4002578557,
0.2373048514,
-0.0836172923,
0.1097682714,
-0.4155574739,
0.0613828003,
0.246187672,
-0.0186504051,
-0.0090567227,
0.2117619514,
0.0163055547,
-0.381462425,
0.1080991253,
0.2936590612,
-0.3484901488,
0.0192192402,
-0.0798182562,
0.0817222372,
0.0673078522,
-0.0596718863,
-0.1295426488,
0.0506829284,
0.0736500099,
-0.0641611889,
-0.033930447,
0.8116828203,
-0.0951392055,
0.1268706769,
0.067018494,
-0.0672765002,
-0.1310653985,
-0.2365905046,
-0.1849683225,
0.2044689953,
0.1865122467,
-0.2316196412,
0.2167524844,
-0.1897063106,
-0.2400354147,
-0.2519876659,
0.2917008996,
0.0077059502,
0.3112778962,
0.1127475053,
0.0425789356,
0.2121854872,
-0.0388294905,
-0.1469402164,
0.3771907687,
0.0011109069,
0.2564553618,
0.3336131275,
0.278411299,
0.156533286,
0.0501442291,
-0.2609416544,
-0.04003774,
0.0102961361,
0.0104519958,
0.102208674,
-0.3529452085,
-0.0023586408,
0.0579044037,
0.1635893732,
0.0091689341,
-0.0685234368,
-0.0933298916,
-0.1590345949,
-0.2032993585,
-0.0484064892,
-0.1999804229,
-0.0636530668,
-0.0596893169,
0.0650862232,
0.0827660635,
0.452752322,
0.2323805392,
0.4247008264,
-0.0046508671,
0.3034424782,
-0.1403293908,
0.0124631161,
0.0758059919,
-0.0436793454,
-0.1188979074,
-0.2360726148,
0.2823857665,
-0.0057215076,
0.0372354984,
-0.5395434499,
-0.1603364646,
0.2113297433,
-0.0652048066,
-0.2380536646,
0.3718394935,
0.1210861653,
-0.5385233164,
-0.1301631778,
0.0426791795,
-0.1647606492,
-0.5449091196,
0.1823605895,
-0.1517248452,
0.1190221012,
-0.2554598153,
-0.3128779531,
-0.1122351587,
-0.193388015,
0.9071433544,
-0.3603634834,
0.0387687609,
0.169789806,
-0.2453992963,
0.0909724087,
0.0120812375,
0.043834053,
-0.1046578065,
-0.5249739289,
-0.1223862469,
0.0322273597,
-0.1373960078,
-0.1270466298,
-0.0300667658,
0.1196215302,
0.5564443469,
-0.0042876247,
-0.1465277076,
-0.4110369384,
-0.1484779119,
-0.0592324324,
0.4029560387,
0.1972221583,
-0.3497497439,
0.1031161696,
-0.0320997387,
-0.0572187677,
0.1777200401,
-0.0003171979,
-0.1117024124,
0.2010337263,
0.0147898989,
0.3613647223,
0.4233079553,
0.2689904273,
-0.1124323457,
0.0211759303,
-0.240636602,
-0.0781437084,
0.0687933117,
-0.4165219069,
0.0867043138,
0.0967585593,
0.2121861428,
0.0890757591,
-0.2410805076,
0.2765482962,
-0.0950957537,
-0.03031395,
-0.3282958865,
-0.3560398519,
0.0593813136,
-0.243275255,
0.2499993145,
-0.1077308878,
-0.1504730433,
-0.0759819746,
-0.1181448475,
0.2302044481,
0.1959136426,
0.1247709244,
0.0806264877,
-0.3856320679,
-0.2992058992,
-0.5825083852,
0.6898987889,
-0.0906805992,
0.2828059196,
0.1038243398,
-0.0963243842,
0.0918034613,
0.0738145038,
1.1266230345,
-0.0902917087,
-0.0679851621,
-0.4532369971,
-0.4792616069,
-0.3658045828,
0.1747482121,
-0.2462020367,
0.4959309995,
-0.1369211525,
0.486179322,
-0.3012238741,
-0.2158021778,
0.3842225671,
-0.0708496794,
-0.1029942483,
-0.1085479707,
-0.1039467603,
-0.6143305898,
-0.1452143639,
0.0402121097,
0.1736767143,
0.1835608035,
0.0963888243,
0.144280687,
-0.3470227122,
0.2196641713,
0.3789550066,
-0.0680102557,
-0.041956529,
0.2102971524,
-0.1067138165,
0.1141850799,
0.2900207937,
-0.1538267434,
0.0499991924,
-0.1119310334,
-0.5091651082,
-0.2036352605,
0.1387949437,
0.4453866184,
0.0021073692,
0.0893899277,
0.4498018622,
0.3313257694,
0.1878381521,
-0.2095422894,
0.07528954,
0.1229470372,
0.4767899811,
-0.2456016093,
-0.3756898642,
0.1890125424,
0.2901029885,
-0.1251988113,
0.2583325803,
0.3687479794,
-0.2165211737,
0.0750942975,
-0.0771684349,
0.9015491009,
-0.2241620272,
0.0572489575,
0.1993954629,
0.1786246747,
0.5808354616,
-0.285525322,
0.2576754987,
-0.1110955849,
-0.5086904764,
-0.123361893,
-0.1007771641,
0.1435219944,
0.1798947304,
-0.2801916897,
0.3612529635,
0.3504682183,
-0.0795019716,
-0.0773689449,
-0.0594201013,
-0.1341118515,
-0.1367686689,
-0.1793337464,
-0.1062965021,
-0.0217226427,
0.5700868368,
-0.0459107161,
-0.0014356623,
0.1819747686,
-0.004344122,
-0.072604686,
-0.2204619944,
-0.5403102636,
0.2581213117,
0.2453536093,
-0.146652177,
-0.1070106179,
0.5531070828,
0.6465962529,
-0.1431564093,
0.0185721181,
-0.1360116452,
0.063805148,
0.0116697634,
-0.2535892427,
-0.1350874305,
0.1461565793,
0.0387850292,
-0.2595751584,
0.0008660094,
0.130272463,
0.0420161299,
-0.0150949517,
0.0775442943,
-0.1029819176,
-0.302936554,
-0.0792439282,
0.0985208303,
-0.0989724025,
0.0807273239,
-0.0858887658,
-0.0727714822,
-0.5481368303,
0.2476283163,
-0.1678898484,
-0.491494596,
-0.0106162466,
0.4057465792,
0.2606987357,
-0.1742279381,
0.4102479517,
0.0836178362,
0.0936148167,
-0.0570737049,
-0.2861721814,
0.2830047607,
-0.4344591498,
0.5060539842,
-0.3074496388,
0.282179296,
0.0642789602,
0.1685797274,
0.1294115633,
0.1295877546,
-0.2556284964,
-0.2817222774,
-0.1472707838,
0.0785301998,
0.2440843433,
0.244180575,
0.1258406788,
0.3767597079,
0.090213567,
-0.1705209613,
-0.1665884256,
0.2332267761,
-0.234549433,
0.1979039013,
0.140725404,
-0.0713166967,
0.2908712626,
0.2017943114,
-0.0633121282,
0.1915008873,
-0.0993863642,
-0.1101254523,
-0.0246676598,
0.1482063383,
-0.078969501,
0.0089469347,
0.2233038396,
0.279807806,
-0.0272525884,
-0.1051923931,
0.6996042728,
0.3694263101,
0.1226841882,
0.4460558891,
0.0006687,
0.0151981721,
-0.3611882627,
-0.2898232937,
0.213650316,
0.0124398796,
0.0064394958,
0.122892119,
-0.0764208958,
-0.0361731984,
-0.1091241762,
-0.0680705532,
0.5871479511,
-0.2230691612,
0.0146058565,
0.052835267,
-0.1149176359,
-0.3639833033,
0.4361189902,
-0.1670495123,
-0.1969696879,
-0.0572257899,
-0.0879220963,
0.0174716245,
-0.1485780478,
0.2439454496,
0.3767095804,
-0.2628638148,
0.055938419,
0.3968824148,
-0.151625976,
0.3247959614,
-0.1985858828,
-0.2218667567,
0.0902813077,
-0.1761721671,
0.1324374527,
0.429907918,
0.0577507652,
0.1098403335,
-0.012612449,
0.1312818825,
0.3224179745,
-0.0335144587,
-0.1583710611,
0.413746506,
-0.2783845663,
0.2369360477,
0.2978637815,
-0.4279221892,
0.0664773732,
0.4004287422,
-0.0287377089,
0.4075151384,
-0.0916057974,
0.5527041554,
-0.0889410749,
-0.3047345877,
0.1227996796,
0.4881363511,
-0.2441276014,
-0.1703255326,
-0.1985961348,
-0.1303699166,
-0.0382660069,
0.0753604248,
-0.0483205691,
0.0260788016,
0.1791818887,
0.035792619,
0.1077530608,
0.0507124513,
-0.1503039449,
0.2482164651,
0.2431669831,
0.0162211619,
-0.2239838094,
0.2543329,
-0.2170744389,
0.0394468084,
0.7196279764,
0.0188232567,
-0.0095197,
-0.2957317829,
0.6617156863,
0.1789479703,
-0.1640622914,
-0.0295563769,
-0.020962147,
0.0190348234,
0.0180691164,
-0.0139457416,
0.0262740981,
-0.0292681158,
0.1912160963,
-0.105702199,
0.161187917,
-0.4103519917,
0.0813198835,
-0.0817072839,
-0.1073370799,
-0.2197113782,
0.1943627745,
-0.2433098108,
-0.3114365041,
0.1205802038,
-0.1593333632,
0.1079165041,
0.0862916261,
-0.0176182967,
-0.1551502943,
0.3381445706,
0.3547683954,
0.3820837736,
-0.170334965,
-0.0973507166,
-0.141709581,
0.0107847685,
0.1978826821,
-0.2089078724,
0.3343541622,
0.1071268097,
-0.0026874002,
-0.0359328017,
0.0213871244,
-0.1784845591,
-0.2717837393,
0.1211228743,
-0.3433918357,
-0.2045817077,
-0.1264022291,
0.1957326084,
0.2733253539,
-0.3446793556,
0.0754913241,
0.3581222594,
-0.2133901268,
-0.0684991181,
0.3740196824,
0.017586546,
0.0997599587,
-0.0087881899,
0.1813973486,
-0.0638095066,
-0.0679593086,
-0.050667461,
0.3892512023,
0.1280763149,
-0.3385194838,
0.3446709514,
-0.0772373453,
0.129919216,
-0.2593944669,
-0.3769943118,
-0.0743444636,
0.24128142,
0.5907960534,
-0.4905032814,
-0.2275041342,
0.1521980315,
-0.0045226295,
-0.0331161916,
0.3418533504,
0.8235197067,
-0.1254414916,
-0.0221548323,
-0.2195949107,
-0.0871912539,
0.6015579104,
-0.2815902233,
-0.2263825983,
-0.0047985837,
0.195696637,
-0.1035835594,
-0.3497140408,
-0.6360818744,
0.1418418437,
0.2863033414,
-0.0755302534,
-0.1086885929,
0.4168683589,
-0.0834906772,
-0.1523140222,
0.0869467333,
0.091683656,
0.357087642,
-0.4112420082,
0.1835695207,
-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.0108778058,
-0.7745169997,
0.0500378646,
-0.0438203961,
0.058595743,
-0.1315132678,
0.2449042946,
0.0355798528,
0.4034039378,
0.2071984261,
-0.3647297621,
-0.0576844029,
0.0258303266,
0.4528595805,
0.1368794143,
-0.2415411919,
0.0354219042,
0.1300745308,
-0.3146577477,
-0.0971324444,
-0.1279556304,
0.0090236971,
-0.5449328423,
-0.1741689891,
0.3397318721,
-0.2855744064,
-0.1111917496,
-0.2267974913,
-0.2018396109,
0.330721736,
0.4212068915,
0.2765444815,
0.1566702574,
0.5160191655,
-0.0001262681,
0.2817387581,
-0.2239810824,
-0.1529460847,
0.0926804021,
-0.1573763192,
-0.1417338848,
-0.0440882891,
-0.0630615354,
-0.2752130032,
-0.1816470027,
-0.0017647218,
0.0454081297,
-0.3386259973,
0.683832109,
0.181779325,
-0.0048464076,
0.2067311555,
-0.0597354546,
0.0920673609,
-0.1350354403,
0.0671228692,
-0.0204419047,
0.0735921264,
0.0742386356,
0.0391843915,
0.0825988352,
0.2869920731,
-0.034260273,
-0.0616689138,
0.0821961164,
0.1065228581,
0.0024307556,
-0.3898434639,
0.1111203805,
0.3619069159,
0.2063344121,
-0.3542039096,
-0.5544350743,
-0.0521408506,
0.0253042113,
-0.0470705293,
-0.2078715861,
0.1657983065,
-0.1159715131,
0.214490518,
-0.4811857045,
-0.0987046435,
-0.0723051801,
0.0731839016,
0.0504783988,
-0.107780017,
-0.2960427701,
0.2540515661,
0.0699313208,
0.0905944929,
-0.117480211,
-0.11754179,
0.1230346635,
0.2084046304,
-0.6481524706,
-0.2360533476,
-0.2577501535,
-0.0207790341,
0.2639651299,
0.3931053579,
0.5452440977,
-0.1059972718,
-0.0683628991,
0.077551797,
0.0718002096,
0.5941021442,
-0.0931245312,
-0.2449739575,
-0.0216667224,
0.1149332523,
0.0338497609,
-0.0456129611,
0.3210250139,
-0.0735206977,
-0.3377153575,
0.1442284584,
0.392858088,
-0.0981250629,
-0.307706356,
-0.1714108288,
-0.3482733965,
-0.1062353402,
0.0052450323,
0.1235989556,
-0.173800081,
0.0956065431,
0.2250310928,
0.0844191387,
-0.286316365,
-0.0946584642,
-0.1676394492,
0.2888304591,
-0.1838470399,
0.0078382529,
-0.0555580258,
-0.1803660542,
-0.0213178862,
0.5038353801,
0.0103862435,
-0.0349445865,
0.206143111,
-0.1644641757,
0.3446746171,
-0.0276214927,
0.158151105,
-0.1279950291,
0.1393094063,
-0.018205855,
-0.0253077708,
0.0004723884,
-0.0577379875,
-0.244557485,
0.0647585019,
-0.0385767519,
-0.3195185661,
0.0288107451,
-0.1932257116,
0.3196072578,
-0.3369590044,
0.3980177045,
0.4549927115,
0.3295464814,
-0.0548327677,
-0.0711228102,
0.4004131854,
0.0320707597,
-0.0892611146,
-0.296040833,
0.3439550996,
0.0093566049,
0.3034726679,
0.2937404215,
-0.0132582942,
0.2759527564,
-0.2429621965,
-0.0962141007,
0.2000615001,
-0.1653341055,
-0.3978580236,
0.2438247651,
-0.0936977565,
0.2858178318,
-0.0008194394,
0.0327162221,
-0.0864739642,
0.1881909668,
-0.0270800982,
0.2525264919,
-0.0661387369,
-0.1053134874,
-0.0651602671,
-0.1617502272,
0.3505888581,
-0.0655954629,
-0.0829996616,
0.3464678824,
0.0652356297,
-0.0619511046,
0.2206347734,
-0.506772995,
0.1742607057,
0.2860682905,
0.2737713456,
0.1422732323,
0.2397805005,
-0.1471372694,
-0.3221263289,
0.1042288393,
-0.3572679758,
0.1865512431,
0.1231016889,
-0.2822451591,
-0.1748359203,
-0.2101640999,
-0.1613718122,
-0.022070514,
-0.0928283632,
-0.0894161463,
0.4296043515,
0.0627397671,
-0.3935888708,
0.3531246185,
-0.1103325337,
0.1173736677,
-0.4565909505,
0.0766897425,
0.2712409496,
-0.0212028921,
-0.0294927023,
0.2020918429,
0.0250196625,
-0.3182093203,
0.0931531191,
0.2768289745,
-0.3111831546,
-0.0000496787,
-0.0807036161,
0.1129690334,
0.04488362,
-0.0933872089,
-0.1356569678,
0.1158978716,
0.0989420414,
-0.0575683489,
-0.0803855434,
0.7735750675,
-0.0630798787,
0.1183303595,
0.1151418835,
-0.0541959219,
-0.1563130915,
-0.2935831249,
-0.1384203136,
0.2834090292,
0.2511125207,
-0.2120889574,
0.2328742892,
-0.1283388734,
-0.2621284425,
-0.2862565517,
0.2700934708,
0.0284280479,
0.3281136155,
0.1195156574,
0.0314622261,
0.1946715415,
-0.0153377075,
-0.1554957479,
0.3815601766,
-0.007174762,
0.2247861028,
0.368588835,
0.3105097115,
0.1431072205,
0.0553681366,
-0.2981645763,
-0.0728998929,
0.039390102,
0.0086061275,
0.1030277163,
-0.379722029,
0.0236476753,
0.030248588,
0.170251146,
-0.0816223621,
-0.0730785951,
-0.1584303975,
-0.1832450628,
-0.2011885643,
0.0363764577,
-0.1941185296,
-0.0438362397,
-0.0806336179,
0.0661065206,
0.1269939244,
0.4456270635,
0.2406218499,
0.4628774524,
-0.0280900821,
0.3665046692,
-0.1363861114,
0.0575945564,
0.0705956444,
-0.0461737588,
-0.1194235533,
-0.203317076,
0.2038011849,
-0.0031704379,
0.0439757854,
-0.4660870135,
-0.2374645621,
0.2677344084,
0.0232885797,
-0.2113488019,
0.3508019745,
0.0557053462,
-0.5462493896,
-0.0783208534,
-0.0216932818,
-0.088482745,
-0.5615618229,
0.2528971136,
-0.1770296842,
0.1233156547,
-0.3099217117,
-0.3661052287,
-0.0872960612,
-0.2064206153,
0.9370262027,
-0.3762078881,
0.0057923631,
0.1996506453,
-0.2222318649,
0.067721948,
0.0126037095,
0.1556548476,
-0.0976720303,
-0.5041766763,
-0.0731259584,
0.0281709209,
-0.1376676857,
-0.1487032473,
-0.0546871349,
0.0802530423,
0.5497127771,
-0.0282655582,
-0.1994815618,
-0.4520469606,
-0.2961639166,
-0.0728064701,
0.4209004045,
0.1771831959,
-0.3457147181,
0.1205207556,
-0.03753132,
-0.0695851594,
0.2295767963,
0.0187303983,
-0.1270517558,
0.23470819,
0.0014078941,
0.3598977923,
0.3538533449,
0.3470198214,
-0.0990254954,
0.0370055176,
-0.2861383557,
-0.085276641,
0.0900596157,
-0.3696489632,
0.102197051,
0.1357016563,
0.263287127,
0.0779102892,
-0.1912822872,
0.2992960513,
-0.1509897262,
-0.0565322675,
-0.3372490108,
-0.3283588588,
0.0419888049,
-0.1391090304,
0.2262818813,
-0.1436558068,
-0.1614684165,
-0.0105281984,
-0.1394326985,
0.2685928941,
0.2348730117,
0.1099196896,
0.122235842,
-0.3618439436,
-0.2483718395,
-0.4749388397,
0.6477643847,
-0.1054956615,
0.2582256794,
0.0596567951,
-0.1224761009,
0.1019008905,
0.0552800968,
1.0442072153,
-0.0928623751,
-0.1418881118,
-0.4542004764,
-0.5523263216,
-0.3331586123,
0.2196699828,
-0.233774364,
0.5441312194,
-0.1980512589,
0.411010772,
-0.3555338085,
-0.1987072825,
0.3440606296,
-0.0428052694,
-0.1176276132,
-0.1123753339,
-0.0697596818,
-0.6193224192,
-0.1143808067,
-0.0228121318,
0.1505485028,
0.1685728282,
0.0634072796,
0.147455737,
-0.3576942086,
0.2287348062,
0.3958052099,
-0.1185992807,
-0.0005936979,
0.1395816952,
-0.1285168231,
0.1251045614,
0.3129320443,
-0.2290612906,
0.1828493625,
-0.0389182344,
-0.5255218744,
-0.2011207193,
0.1282041967,
0.4326055944,
0.0043069734,
0.1211857051,
0.4952028692,
0.290581733,
0.1692710966,
-0.1751949191,
0.0514554493,
0.0547313541,
0.4383253157,
-0.2018350363,
-0.371887356,
0.2034459561,
0.2566275001,
-0.1311087757,
0.2950932384,
0.4055134654,
-0.1705874205,
0.0070123849,
-0.064123936,
1.0264143944,
-0.1779045314,
0.0226663742,
0.1446864605,
0.0649365783,
0.5472711325,
-0.3608383536,
0.2080312371,
-0.1670422852,
-0.5076097846,
-0.1528958976,
-0.1149315387,
0.1049188673,
0.1264862716,
-0.3500165343,
0.3597261906,
0.2949794233,
-0.1077524722,
-0.0378297195,
0.0068125078,
-0.1752335429,
-0.0723745748,
-0.1563098133,
-0.1104515046,
-0.0091843996,
0.5706516504,
0.0093583185,
-0.0183525011,
0.1865909398,
-0.0138800452,
-0.0601730682,
-0.1625116467,
-0.5331322551,
0.2263109982,
0.3066324592,
-0.1381723583,
0.0140436506,
0.6243482828,
0.6611808538,
-0.1327867359,
-0.0027743189,
-0.1644929051,
0.0180116892,
0.0469271243,
-0.2306067944,
-0.0574957058,
0.1657328308,
0.0481053814,
-0.2576410472,
-0.0092641357,
0.1547838598,
0.0989363268,
-0.0698965341,
0.0188647863,
-0.0771569833,
-0.3292373419,
-0.0292538758,
0.1232710779,
-0.1089477167,
0.1232991889,
-0.0864139795,
-0.0403815359,
-0.516885519,
0.1755292416,
-0.1288748831,
-0.4917958975,
0.016539799,
0.4037632346,
0.2822575271,
-0.1160471141,
0.4003129303,
0.0940633118,
0.0872105137,
-0.0527309179,
-0.2767203748,
0.3507881463,
-0.4622554481,
0.4693779349,
-0.3270954788,
0.2717691064,
0.057028126,
0.1779135466,
0.1025839299,
0.1646065563,
-0.2312485874,
-0.2901343405,
-0.1018911898,
0.094067499,
0.2068044245,
0.1520273536,
0.0983556062,
0.2725202441,
0.1068394408,
-0.2188545018,
-0.1683714539,
0.2467845678,
-0.2557553649,
0.1999899745,
0.1347340494,
-0.09198834,
0.198611483,
0.1977642626,
-0.0685086697,
0.2219431847,
-0.1261401623,
-0.0883876607,
-0.0391472578,
0.1671304405,
-0.0806705877,
0.0134147024,
0.1874514222,
0.268789351,
-0.0019301017,
-0.0806284845,
0.6413139105,
0.3312113285,
0.115088053,
0.5001335144,
-0.0514403656,
-0.0175248794,
-0.4890018404,
-0.2775421143,
0.2126240432,
0.0310201347,
0.0276467185,
0.0917785615,
-0.0246268399,
-0.0275031421,
-0.1359475255,
0.0027697675,
0.5822213292,
-0.2275112569,
-0.0127435885,
0.046872329,
-0.0202133376,
-0.382741183,
0.3991594613,
-0.1654494107,
-0.2494143695,
0.0360151865,
-0.0512163974,
0.0068901805,
-0.0835429206,
0.2543730438,
0.3149313033,
-0.2773492038,
0.029996587,
0.3806997538,
-0.1358976215,
0.2611200213,
-0.1441325694,
-0.2044881582,
0.0264260881,
-0.2047901899,
0.1057832241,
0.4187948704,
-0.014558292,
0.0733327642,
-0.0609224327,
0.1031603292,
0.2356014699,
-0.0655149445,
-0.2108763903,
0.4138635099,
-0.2922670841,
0.2327291965,
0.2990346551,
-0.3924891055,
0.0951182246,
0.4452514946,
0.00236831,
0.4268143177,
-0.0494982824,
0.5840530992,
0.0175102837,
-0.2804227471,
0.1194978282,
0.4449957311,
-0.2014253587,
-0.1196045503,
-0.1712667197,
-0.1596519649,
-0.1877387017,
0.090019457,
-0.0751734674,
0.002811719,
0.2173167467,
0.0717946291,
0.0639645308,
0.0240853112,
-0.0795661658,
0.2913346887,
0.2723921835,
-0.0090197241,
-0.1765929013,
0.3458018005,
-0.1892180294,
0.0963712633,
0.6774992347,
-0.0281566605,
0.0179484095,
-0.3747057319,
0.6705464721,
0.2169340253,
-0.1634795517,
0.0480994135,
-0.0109068612,
0.0236370955,
0.0606253706,
-0.0125559755,
0.0033277175,
-0.0127489828,
0.18452999,
-0.1218113601,
0.1319622993,
-0.4920050204,
0.1160299554,
-0.0095948204,
-0.0620358959,
-0.2028698027,
0.1745492071,
-0.2787024975,
-0.3275157809,
0.1406187862,
-0.1091236398,
0.0932401419,
0.0925560743,
-0.0325077735,
-0.1501616091,
0.2595946193,
0.3713558912,
0.4355633557,
-0.1231247038,
-0.157031998,
-0.0916634724,
0.0360566601,
0.2634943426,
-0.2674752772,
0.3377637267,
0.0507333651,
0.0305755101,
0.0323361754,
-0.0640154853,
-0.1622574478,
-0.2586784661,
0.0873736292,
-0.3793010414,
-0.2062281221,
-0.0468781516,
0.2062360644,
0.2270144373,
-0.302926898,
0.0698187649,
0.3544505239,
-0.1974744052,
-0.0493627489,
0.4218861163,
-0.0391918793,
0.0747134015,
-0.0641382486,
0.1939852536,
-0.0614003576,
-0.0922134146,
-0.0477707051,
0.5073213577,
0.1155313253,
-0.3652399778,
0.3364464939,
-0.0941128209,
0.1249051839,
-0.2463933229,
-0.3963311911,
-0.0742866695,
0.2382935286,
0.5800233483,
-0.4254647195,
-0.2457298338,
0.1356074214,
0.0331820659,
-0.006649157,
0.3269905746,
0.812300086,
-0.1088393629,
-0.0509543307,
-0.1931659281,
-0.0889550596,
0.5671642423,
-0.2700329125,
-0.2003222704,
0.0761689842,
0.19302468,
-0.0961931944,
-0.3720486462,
-0.7107866406,
0.1285331547,
0.259074986,
-0.1107790768,
-0.0877090469,
0.4188711047,
-0.0624388121,
-0.1226637587,
0.1063422635,
0.0659078956,
0.3857211769,
-0.3582314849,
0.2123969793,
-0.2672465742
] |
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.0244649686,
-0.8023661375,
0.0363252237,
-0.0556127727,
0.0216098335,
-0.0733310282,
0.2536011636,
0.0494493581,
0.3815230131,
0.2414882332,
-0.353425473,
-0.0654724389,
0.0393711366,
0.4445896447,
0.1729432046,
-0.2635638118,
0.0600869879,
0.1323879361,
-0.2501767576,
-0.0962027237,
-0.112416558,
0.0328882188,
-0.5142921209,
-0.1790899336,
0.3367593288,
-0.2938053906,
-0.1501287818,
-0.2500470281,
-0.1282934099,
0.3018823266,
0.4609179199,
0.2909280062,
0.2123071998,
0.4509744048,
-0.0001249902,
0.2926603556,
-0.2429700643,
-0.1337582767,
0.114501223,
-0.0880550295,
-0.096852228,
-0.094203189,
-0.0344839171,
-0.3120003641,
-0.1772887558,
-0.007346625,
0.0576624759,
-0.3176598251,
0.6801814437,
0.1236014366,
0.0111871744,
0.2365362346,
-0.0750253871,
0.0690962821,
-0.1374191344,
0.0161668397,
-0.020939352,
0.0664190948,
0.0917304978,
0.039654199,
0.1078622788,
0.301674515,
-0.0618221015,
-0.0389599092,
0.0509129949,
0.130355671,
0.0570810959,
-0.4106472731,
0.1430850327,
0.3712305129,
0.1794087589,
-0.3381175995,
-0.556524992,
-0.0625607371,
0.0454883203,
-0.1229718402,
-0.2359693199,
0.1706842035,
-0.1305095702,
0.2065274417,
-0.410728693,
-0.0659745559,
-0.0432807542,
0.0421261936,
0.0760966912,
-0.0634086579,
-0.286624819,
0.2641929984,
0.0687269047,
0.118496865,
-0.1335148662,
-0.1068736538,
0.1343879849,
0.2130963951,
-0.6556071043,
-0.2227413058,
-0.2433802485,
-0.0494686291,
0.2786214948,
0.3848894536,
0.5002586246,
-0.0848696083,
-0.0207165815,
0.0651059598,
0.0739707798,
0.5639443994,
-0.0917668864,
-0.2520311773,
-0.016609937,
0.140238747,
0.0175610296,
-0.041935917,
0.3055621684,
-0.0990370587,
-0.2601805031,
0.203735441,
0.4017170966,
-0.0710722804,
-0.323993504,
-0.1834992915,
-0.3271968067,
-0.1466225833,
-0.007003543,
0.1262949258,
-0.1984352767,
0.0695280656,
0.1843548864,
0.0698362738,
-0.2867666781,
-0.0619152226,
-0.1795289963,
0.2524329722,
-0.1391304731,
-0.0016128898,
-0.0439370275,
-0.2109630853,
0.0124204233,
0.4680205882,
0.0447812565,
-0.0492144451,
0.2229484618,
-0.1477324516,
0.2782616019,
-0.0027512598,
0.1948140711,
-0.1123818159,
0.108991541,
0.0534721911,
-0.0731872842,
-0.006998335,
-0.0442646891,
-0.2340405732,
0.1050291806,
-0.0208553988,
-0.2917472124,
0.0252852868,
-0.2057437599,
0.2881162763,
-0.3421457708,
0.4115403891,
0.4393233359,
0.359046191,
-0.0536828637,
-0.0564321429,
0.4131742418,
-0.0192706008,
-0.0965289548,
-0.2679921091,
0.3482648134,
0.0231549814,
0.3075786531,
0.2882293165,
-0.0513803549,
0.3208955526,
-0.2531568706,
-0.0951123685,
0.2231656015,
-0.1747701913,
-0.4179795682,
0.2593770921,
-0.0811824724,
0.2943810225,
0.0126557807,
0.0581353828,
-0.1151297092,
0.1797284335,
-0.014045232,
0.280177027,
-0.0816656575,
-0.0973386019,
-0.0200457312,
-0.1788858622,
0.3267516792,
-0.0937375277,
-0.0511448197,
0.3327534199,
0.0415733345,
-0.1167279854,
0.2596204579,
-0.4877480567,
0.1816800982,
0.2622481883,
0.2451245934,
0.1432556659,
0.2428884357,
-0.1526281238,
-0.3867460489,
0.1505292654,
-0.334204793,
0.1509621888,
0.0888973176,
-0.3247160614,
-0.1425439268,
-0.2196985483,
-0.1516407579,
-0.0205252655,
-0.0847824439,
-0.1131101325,
0.4627567828,
0.0237461571,
-0.3968054056,
0.276607573,
-0.0825325549,
0.0979910269,
-0.4222597778,
0.0488032624,
0.2384617329,
0.0088134976,
-0.005918344,
0.1739050746,
0.0389287323,
-0.3525581956,
0.0861845687,
0.2756894231,
-0.32014516,
0.0070609157,
-0.075174883,
0.0669735819,
0.0377311707,
-0.0897156224,
-0.1346696168,
0.0368000418,
0.0751838237,
-0.0604837686,
-0.0372871459,
0.7736296654,
-0.0813850686,
0.1259881258,
0.1066020876,
-0.0489502698,
-0.1498587877,
-0.2755475044,
-0.167312175,
0.2761718929,
0.2356811762,
-0.2201273739,
0.2520667911,
-0.1806639284,
-0.2266646326,
-0.2730317116,
0.2895758748,
0.0222222321,
0.3233870566,
0.1219824329,
0.055422157,
0.2160242349,
-0.0402210094,
-0.1559972167,
0.3685370684,
-0.0039904597,
0.2545129955,
0.3580181599,
0.2879854739,
0.1523477584,
0.0509682223,
-0.2573583126,
-0.0744411424,
0.0054116207,
-0.0100240214,
0.1193402633,
-0.3581906259,
0.0063080587,
0.0412621275,
0.1751890033,
0.0069138575,
-0.0505400449,
-0.1088418067,
-0.1534915417,
-0.1993156374,
-0.001304284,
-0.2027614564,
-0.0477774851,
-0.0915739313,
0.0144528486,
0.0921794996,
0.4318850338,
0.2483215034,
0.4400368035,
-0.0472344533,
0.3629507422,
-0.1473098397,
0.0066067744,
0.0675348639,
-0.0385228582,
-0.1326175034,
-0.2288423926,
0.2457873672,
-0.0202643983,
0.016732119,
-0.5255943537,
-0.1940319389,
0.238152191,
-0.0047632162,
-0.2378982604,
0.3722150028,
0.0893640444,
-0.5399628282,
-0.1112285927,
0.0183063149,
-0.1314906478,
-0.5532984734,
0.2090692818,
-0.1560290754,
0.1315938234,
-0.275111258,
-0.327440083,
-0.1012827978,
-0.1940861046,
0.9283862114,
-0.3411179781,
0.0465674922,
0.1961682141,
-0.2678837478,
0.0738971606,
0.0258138143,
0.122448951,
-0.0997033268,
-0.5181106329,
-0.1364706755,
0.0263615865,
-0.1522430331,
-0.1412649602,
-0.0631078109,
0.1339437217,
0.5387530327,
-0.0023167317,
-0.2072090209,
-0.4411297441,
-0.227887392,
-0.1010209993,
0.44745031,
0.1770004332,
-0.3411292136,
0.1188596636,
-0.0365312099,
-0.0537655167,
0.2113046795,
-0.0068765371,
-0.1427295506,
0.1921976507,
0.025802413,
0.3620703518,
0.3707354367,
0.3190151751,
-0.0835307613,
0.0542934872,
-0.2608817816,
-0.102770023,
0.070857279,
-0.3895361125,
0.0945675895,
0.1366187036,
0.2134464532,
0.0644433871,
-0.2114582956,
0.3141699731,
-0.1198178753,
-0.017607782,
-0.3152264655,
-0.3304156363,
0.002131446,
-0.1976332366,
0.2163098156,
-0.1318217069,
-0.1573125571,
-0.0392753072,
-0.0884591416,
0.2690510452,
0.2098580003,
0.1098340377,
0.107118614,
-0.4077516794,
-0.3052117527,
-0.5409754515,
0.6420146227,
-0.0964473933,
0.2413145155,
0.0919442922,
-0.086651668,
0.084841609,
0.0661591887,
1.0803829432,
-0.0872084275,
-0.1028816998,
-0.4584878683,
-0.5351154804,
-0.3529355526,
0.1782925427,
-0.2240312248,
0.5216464996,
-0.2015164047,
0.4366722405,
-0.3162999153,
-0.2294138521,
0.3831053674,
-0.0391893052,
-0.0868256614,
-0.1147061363,
-0.1034919992,
-0.6376012564,
-0.1089687198,
0.0142840818,
0.1750250608,
0.1664238721,
0.0678803399,
0.1198186353,
-0.370182693,
0.2059960365,
0.3532641828,
-0.1239747778,
-0.018102292,
0.1862314939,
-0.0942447633,
0.0939731449,
0.3174671233,
-0.2403257489,
0.1054548547,
-0.0841726139,
-0.5110264421,
-0.1814253032,
0.1448627561,
0.4306388795,
-0.0065272781,
0.0908250958,
0.4707623422,
0.2709286809,
0.1709095836,
-0.2007093281,
0.0886756256,
0.0992485881,
0.4698997438,
-0.2132212818,
-0.3708055317,
0.2332924753,
0.2992041111,
-0.1240187064,
0.3007996678,
0.3552354872,
-0.1722938716,
0.0196961351,
-0.085026145,
0.9305508137,
-0.205765292,
0.0553849116,
0.1662405431,
0.1524593085,
0.5891499519,
-0.3118374944,
0.2421132922,
-0.1372163594,
-0.544387877,
-0.1400337815,
-0.111921072,
0.1085162312,
0.1334475428,
-0.3048273027,
0.3906708062,
0.3042514026,
-0.0892803594,
-0.0534523465,
-0.0337562561,
-0.1932053715,
-0.0882412046,
-0.1691992283,
-0.11244452,
-0.0340409912,
0.5939666629,
-0.0418732911,
0.0029526551,
0.1844167858,
-0.0214710776,
-0.0345331095,
-0.1751813442,
-0.5350191593,
0.2652758658,
0.2661238313,
-0.154038325,
-0.0759144053,
0.5716872811,
0.6944460273,
-0.1355419308,
0.0254096966,
-0.1389090121,
0.0475387089,
0.005984352,
-0.2499772012,
-0.0792944655,
0.1179980785,
0.027909698,
-0.2371241599,
-0.0089593586,
0.125024274,
0.0945893675,
-0.0359659195,
0.0241513904,
-0.0430503897,
-0.2812278271,
-0.0381639972,
0.1298307329,
-0.1041666567,
0.0669882447,
-0.0777908042,
-0.0373957753,
-0.5551763177,
0.1727189124,
-0.1398660988,
-0.4718236923,
0.0163038727,
0.3586140573,
0.2728104293,
-0.1444614679,
0.4105931222,
0.0793772414,
0.1235168651,
-0.058253739,
-0.3121371269,
0.2812637687,
-0.4466729462,
0.4826536179,
-0.33326298,
0.2762411237,
0.046873603,
0.1860536039,
0.0992356241,
0.140722394,
-0.2239490747,
-0.259115696,
-0.1163419038,
0.0624318384,
0.2013019472,
0.2372536808,
0.1000040993,
0.3003733754,
0.0758330002,
-0.1464378834,
-0.1659802496,
0.2176051438,
-0.2373043448,
0.1934837401,
0.1431107074,
-0.0761532113,
0.251360327,
0.2321755141,
-0.0578264594,
0.2195382863,
-0.0989716351,
-0.1025244743,
-0.0458369143,
0.1538627595,
-0.0928684101,
0.0233612023,
0.2305042595,
0.3027406335,
-0.0158406701,
-0.0984349996,
0.6481762528,
0.2999524772,
0.1284633726,
0.503531158,
0.0074532055,
-0.0021042584,
-0.4534744024,
-0.2945236862,
0.2117393464,
0.0077520092,
0.0200662892,
0.0980640575,
-0.0531900786,
-0.0284610558,
-0.1261400431,
-0.0733386278,
0.5804975629,
-0.2278454751,
-0.0304173082,
0.0826794282,
-0.0677460805,
-0.3896821141,
0.4106400311,
-0.1681346595,
-0.2066207826,
-0.0145439561,
-0.0696038902,
0.0262061227,
-0.1212485507,
0.2267165333,
0.3431800008,
-0.256421566,
0.0245611314,
0.3773984909,
-0.1493619829,
0.3176620603,
-0.1793251336,
-0.2306487858,
0.0359415077,
-0.1804053038,
0.1404883415,
0.4447539151,
0.0361010097,
0.096720174,
-0.0780334398,
0.1191920787,
0.2925365865,
-0.0684205741,
-0.209996134,
0.417432487,
-0.3103859127,
0.2381177545,
0.295599252,
-0.4263083041,
0.0692507774,
0.397164911,
-0.0107809762,
0.3950864673,
-0.0795762539,
0.5769338608,
-0.0424113274,
-0.2923170626,
0.1233978122,
0.4711917937,
-0.2232031822,
-0.1391161084,
-0.1596057713,
-0.1254364699,
-0.0932332277,
0.0786692873,
-0.0378239751,
0.0231224149,
0.1900471896,
0.0685064644,
0.1057493985,
0.0426237583,
-0.0970224291,
0.2900156379,
0.2817673385,
-0.0030866135,
-0.2167578936,
0.3081446588,
-0.2293582261,
0.0245833155,
0.6840304732,
-0.0212527998,
-0.0011889266,
-0.3366940618,
0.6613737345,
0.2384198308,
-0.1470415741,
0.0022659446,
-0.0645729527,
0.0270705279,
0.0554501154,
-0.0251230597,
0.0127934748,
-0.0312580951,
0.1785209179,
-0.1207618341,
0.1366901547,
-0.487428844,
0.1445135623,
-0.046226088,
-0.0735691339,
-0.2227117717,
0.2186488062,
-0.2597884238,
-0.3497096002,
0.1194817498,
-0.1082911119,
0.0792771429,
0.0722763315,
-0.0218796246,
-0.1936153769,
0.2946294248,
0.3574354947,
0.4273120165,
-0.1635020375,
-0.1160749123,
-0.1072800085,
0.0179325454,
0.2351539582,
-0.2670187354,
0.3736531734,
0.0878037661,
-0.0091183027,
-0.0199416894,
-0.0227671154,
-0.1291806996,
-0.2303566486,
0.0730213821,
-0.3877385855,
-0.2342641503,
-0.0709630921,
0.186668843,
0.2684720159,
-0.321487993,
0.0706237033,
0.3622846305,
-0.2053530663,
-0.0401141606,
0.3881100416,
0.0078683961,
0.0918074772,
-0.0195940863,
0.1772876978,
-0.0671824664,
-0.0797692537,
-0.0543442369,
0.4619968534,
0.1400752068,
-0.3493221998,
0.323739171,
-0.1057215855,
0.1021880209,
-0.2573278546,
-0.3548612595,
-0.104961805,
0.2201499194,
0.5885667801,
-0.4777235389,
-0.2191798985,
0.1400904655,
0.0247552432,
0.003798764,
0.369043082,
0.8464452624,
-0.1257858723,
-0.0567210987,
-0.2206315547,
-0.084672071,
0.5872299075,
-0.2355545163,
-0.1941435635,
0.0436770655,
0.227244854,
-0.0792712942,
-0.3721282482,
-0.6097915769,
0.1408358514,
0.2747105956,
-0.095180124,
-0.1169876233,
0.449029386,
-0.0427568369,
-0.133298263,
0.1149809361,
0.0669763833,
0.3785045445,
-0.3848003447,
0.198669076,
-0.3128778636
] |
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.1357685328,
0.1683022231,
0.0354214497,
0.2092981488,
0.3473314643,
0.0116619924,
0.228991881,
0.3530412912,
-0.1199427247,
0.3440086246,
0.0769439712,
0.4752254784,
-0.1141473055,
-0.1162746474,
-0.0818043947,
-0.3451916873,
0.0918747634,
0.3889159858,
0.0978737548,
-0.1766297817,
-0.2902542651,
-0.0321732536,
-0.189051643,
0.1411735266,
-0.2226971388,
0.0321640968,
-0.2295639366,
-0.1066834256,
-0.2944520712,
-0.4702114165,
0.2440167218,
-0.0262589771,
-0.049771972,
0.4349937141,
-0.00011068,
-0.0363304764,
0.2661398351,
-0.042828612,
0.0534035265,
-0.3680903912,
-0.5844060183,
-0.2591187358,
0.0363759361,
-0.3373250961,
0.0205995813,
0.0272908974,
-0.009157436,
-0.2054018825,
0.2047612369,
0.336905539,
0.2373391241,
0.1403482109,
-0.1228041425,
-0.3247485161,
0.3542505205,
-0.288048476,
0.0359722339,
0.2395346016,
-0.2517359853,
-0.1955945641,
-0.1582668126,
0.324848026,
-0.0513245091,
0.0017430072,
0.2958139479,
0.2445801198,
-0.0856366456,
0.0226625856,
0.0879990235,
0.1774825007,
0.0153080104,
-0.2262357324,
-0.3905272782,
0.2721060216,
-0.050880719,
-0.232685715,
0.0085090175,
-0.2376614511,
0.0329268686,
-0.206770733,
-0.3441343606,
-0.1278513819,
-0.194591701,
0.0551801808,
-0.0131272729,
0.3923610449,
0.0053675598,
0.0391238183,
0.301794529,
-0.1633254588,
-0.0880641863,
-0.0763621703,
0.1049910262,
0.2026167214,
-0.0702822879,
0.0108942594,
0.2954882681,
0.0909710303,
0.1854871213,
-0.5502123833,
0.0220070798,
0.0181754399,
0.0533531979,
0.206460163,
0.0191062186,
0.3505943716,
-0.1541591585,
0.2164541334,
0.2325024307,
-0.0649734214,
-0.1711604446,
-0.0547927655,
-0.0315942951,
-0.0788685754,
0.4890436828,
0.1721763313,
-0.2210561484,
-0.2010470778,
-0.2376410365,
0.1853825897,
-0.4741443694,
-0.0452964008,
0.2106426656,
0.4372999966,
-0.1917460114,
0.1406192333,
-0.1900236458,
0.0471833944,
-0.178812474,
0.19521676,
-0.2828833461,
0.2730630338,
-0.3546585739,
-0.0977147594,
0.1049499661,
-0.199166134,
0.3755953908,
0.0675269663,
0.4369860291,
0.1716330498,
-0.1321009696,
-0.2742588818,
0.155083105,
-0.0190752689,
0.0458557457,
-0.0588261187,
0.1923585236,
-0.1388752759,
-0.2338358164,
0.1322217584,
-0.2897828221,
-0.3272272348,
0.0407600105,
0.2200025171,
-0.1817957163,
-0.04271321,
-0.2142801285,
0.0517423674,
0.1565989256,
-0.2517820299,
-0.1964698136,
-0.2444110513,
-0.3549409807,
-0.2286157161,
0.3791271448,
0.1625280529,
-0.2698107362,
-0.0479813814,
-0.1046242565,
0.2611281276,
0.2512709498,
0.1937282383,
-0.2317171246,
0.3143138587,
-0.1103287637,
0.083819665,
0.3269451857,
-0.5421459675,
-0.4934961796,
-0.2773632109,
0.117870003,
-0.1706852615,
0.033008974,
0.0672050938,
0.0950097069,
0.0390796363,
0.2723297775,
-0.1352108717,
0.0036766529,
0.1628976911,
-0.2928624749,
-0.1766245961,
0.1568980962,
-0.042933315,
0.4267224967,
-0.2014786005,
-0.1615752578,
0.2878132463,
-0.0385640971,
-0.1464603096,
-0.0206570905,
0.0809885934,
0.5700146556,
-0.2868606448,
0.2906680703,
-0.2317186892,
0.018131597,
0.1943653524,
-0.0077651269,
0.2645761073,
-0.2120677531,
-0.1155012548,
-0.4618647695,
0.1162807196,
-0.0927695259,
0.1053282768,
0.1548777074,
-0.0557346568,
0.270078361,
0.1727412343,
-0.0629523695,
-0.2985926569,
0.0740365312,
-0.1582508236,
0.0757354721,
0.2299349904,
-0.2951509655,
-0.2042702734,
0.3250257373,
0.2769491374,
0.3096361458,
0.0713861808,
-0.1819415838,
0.188135311,
-0.0460108817,
-0.0693425834,
0.0917251781,
0.2144995928,
0.0582689382,
-0.4049299061,
0.0828752145,
0.1304060519,
0.3137612939,
0.0475626066,
-0.1744236946,
0.4764541686,
0.0648465678,
0.1258466244,
-0.0076349252,
-0.0176297352,
0.2678807378,
0.1416642666,
0.2068475485,
-0.3284747303,
0.1557703614,
-0.0036574763,
0.16811046,
-0.0214753486,
0.1855964661,
-0.1167833731,
0.5808285475,
0.3723367155,
0.0887972638,
0.2555124164,
-0.227701202,
-0.1590946764,
-0.1334578246,
-0.2853346467,
0.3417615891,
0.2336738408,
-0.0786179677,
-0.0336477049,
-0.1537463963,
-0.0775060356,
0.124939315,
0.1540717632,
-0.0738967061,
-0.0380365551,
0.3315089345,
-0.0597750582,
-0.1904030442,
-0.1201436445,
-0.0203251969,
0.4591872394,
-0.3168025017,
0.2947404981,
-0.1316540837,
0.1890830249,
-0.0493894592,
-0.65323627,
-0.0592000112,
-0.3793860972,
0.237326324,
-0.0883879215,
-0.0403930508,
0.3508843482,
0.0579356737,
0.1776039004,
0.1711507738,
-0.1074415892,
-0.2738972306,
-0.5320510268,
-0.2634780705,
0.0622548945,
-0.1156595051,
0.0657804534,
0.2517989576,
-0.2744708359,
0.1120414659,
-0.1333207339,
-0.5113041401,
0.0996798128,
-0.3408313394,
0.4703127146,
0.3321335316,
-0.1779077947,
-0.5641245246,
-0.232917428,
0.4654653966,
-0.1895071864,
-0.0704406127,
0.2736670673,
-0.0602835901,
-0.097153239,
0.0020502876,
-0.357529819,
0.0341208875,
0.0028464182,
0.0291583706,
0.0796936154,
0.1652202308,
-0.1709434539,
0.2613539696,
0.2987736464,
-0.0680783316,
-0.0711866543,
-0.2196065187,
-0.4031372368,
0.5500205755,
-0.1909075081,
-0.2825050354,
-0.1657273769,
-0.1692578048,
0.1987821013,
0.0487797111,
-0.1322614551,
-0.5942789316,
-0.0986286849,
0.1793271154,
-0.0764524415,
0.2097878009,
0.1528717428,
0.3122163415,
-0.148609519,
-0.2454244792,
-0.1619689614,
0.174510181,
-0.1710665971,
0.1097462773,
-0.2303157449,
0.3325129449,
0.1021192297,
0.9215056896,
0.1928438246,
-0.2365649194,
0.2600074708,
-0.188190788,
0.1139806435,
-0.1771750301,
-0.4246750176,
0.0952084884,
-0.0468004607,
-0.1012851819,
0.307032764,
-0.052217301,
0.106438987,
-0.2177166194,
-0.0757569596,
-0.2872138917,
-0.3465436101,
0.1041224822,
-0.0554189757,
0.2312719375,
0.2452373505,
0.2311153561,
-0.4509416521,
-0.2976681888,
0.1437606364,
-0.3137773871,
0.0095748724,
-0.1711259335,
0.097392641,
-0.3218021095,
-0.3403775692,
0.4270816445,
0.488160491,
0.2987391353,
0.0457808375,
0.134383738,
-0.0436952375,
-0.1290863156,
0.4031522572,
-0.0241340771,
0.1742091626,
0.0091169793,
0.0497266538,
-0.0384635255,
0.1221544519,
-0.4014153779,
0.1189660728,
0.026223883,
0.4224999845,
-0.2948801816,
0.1139012948,
0.1677739024,
0.0341981165,
-0.1736880243,
-0.0720652342,
-0.4913314879,
-0.1067167073,
-0.0734213516,
0.3320940137,
0.0136510441,
0.3042744398,
0.0199645218,
-0.0697354078,
0.0623828135,
-0.2804697454,
0.2110205293,
0.3583398759,
0.1956290007,
-0.009336601,
0.269190073,
-0.0080665201,
-0.2322553098,
0.5070553422,
0.1846840978,
-0.2473047376,
-0.6065497994,
-0.1909998357,
0.0006401682,
0.5480854511,
0.0741696507,
-0.1902203858,
-0.0997799039,
-0.0731617808,
0.0602186322,
-0.0679090247,
0.3978591263,
0.4066798687,
0.0434777215,
-0.3172374964,
-0.178437084,
0.5495809317,
0.2827202976,
-0.1120699644,
0.0196735803,
0.5535879135,
-0.2378886342,
0.4279624522,
0.3329147696,
0.9520227313,
-0.1216431409,
-0.0361438356,
0.2687773108,
0.0591818467,
0.5790296793,
0.1037805155,
0.2235222161,
-0.4127734601,
-0.2533383667,
0.019741036,
-0.1117405444,
-0.0586737357,
-0.1041252241,
-0.3604674339,
0.4359687567,
-0.2815932631,
0.2554157078,
0.0881392285,
-0.0858829543,
0.1566112936,
-0.1937494129,
-0.3508878648,
0.171556443,
-0.0647833496,
0.0104422001,
-0.1781091541,
-0.0838005394,
-0.1293508857,
-0.3548139036,
-0.2460958958,
0.0518606007,
-0.0493003502,
0.1146281809,
-0.1172227412,
-0.3084893823,
0.0602365509,
0.0566898733,
0.4155306816,
0.4209895134,
-0.2582205236,
0.2679957449,
-0.0648819208,
0.181176424,
0.1085586175,
0.0717809498,
0.1041905582,
-0.0552384891,
-0.1578827351,
0.2358062416,
-0.081914708,
-0.1071698368,
-0.0834335685,
0.0156908724,
0.263323009,
-0.235026896,
0.047370892,
-0.139234975,
0.1451865137,
-0.329562068,
0.1802753955,
0.1452372819,
-0.1570019275,
0.3131346405,
0.0018813747,
-0.1545767039,
0.1093605906,
0.4137753546,
0.1025108099,
-0.0221785381,
0.4374265075,
-0.1429377198,
-0.2596266568,
-0.1375302225,
-0.1614584774,
0.1663231701,
-0.1670376658,
0.1860701144,
0.0946156159,
0.2306500822,
0.0522691794,
0.571916163,
0.1177775189,
-0.169617191,
0.1363872439,
-0.3092879653,
-0.1082823277,
0.1192803308,
-0.0864586458,
-0.0076829428,
0.0035056237,
0.1689175069,
-0.1505278051,
0.3258638084,
-0.3601906598,
0.0126509489,
-0.4700367749,
0.2061264962,
-0.2473835796,
-0.0173082072,
0.2452017814,
-0.0230983328,
0.1007349715,
0.2630829513,
-0.1777681857,
-0.22054106,
-0.1287356317,
0.0916390568,
0.1104481369,
0.0546095558,
-0.006481315,
0.1228998527,
-0.1365970373,
-0.2155855447,
-0.1219804659,
0.2991617024,
-0.0076047289,
0.2453024089,
0.1821097434,
0.1080812141,
0.1998059005,
-0.2148445845,
0.1180735826,
0.1997877657,
-0.0293723624,
0.2218607217,
-0.0079313004,
-0.1382144839,
0.263535738,
0.0294997916,
0.4643993378,
-0.0224973876,
0.2424798012,
-0.1946604997,
-0.1003616154,
0.1491229236,
0.2866360247,
0.3719916046,
-0.1622954309,
-0.1772248745,
0.3476005495,
0.1972045153,
-0.4130780399,
-0.1833365411,
-0.0150853349,
0.2177569568,
0.0468952544,
0.158725664,
-0.0353805982,
-0.0545018986,
0.0274950601,
-0.0682398528,
0.1834893376,
-0.2067252249,
-0.0511262231,
0.0133195277,
-0.0730471164,
0.128765285,
0.354439795,
0.0895642415,
0.3318191171,
0.5564886332,
-0.2681512237,
0.4829031825,
-0.204448998,
0.0878313854,
-0.1325692832,
0.0285284556,
-0.1072971597,
0.1365873665,
0.1400082707,
0.058968164,
0.015856836,
0.8266775608,
-0.0803470686,
0.1014604643,
-0.3887363076,
0.1683852077,
-0.0119951842,
-0.1171090156,
-0.0547751971,
-0.2624057531,
-0.2106733173,
0.0811170042,
0.0158914272,
0.1245821193,
0.4215364158,
0.2092751712,
0.1443516463,
-0.255476743,
-0.1748762727,
0.4411931932,
0.257471025,
-0.2895911038,
0.1098924354,
0.159224242,
-0.1117752343,
-0.1280724257,
0.3511738777,
0.2745372057,
0.3522094786,
-0.1776162386,
-0.1480375379,
-0.2610129714,
-0.0431445315,
-0.0026830325,
0.3742751777,
0.1880338341,
0.0464068055,
0.1489733607,
0.1528085023,
-0.1990119517,
0.2535203695,
0.0206502769,
0.4681148827,
-0.0658482239,
0.3174076676,
0.0398344547,
0.0324196294,
0.0036229619,
-0.2002907395,
-0.2993037999,
0.1330286711,
0.0517547317,
0.2607648075,
-0.0237015486,
-0.211772278,
0.1049003452,
0.1395423859,
0.4409416318,
0.2791271508,
0.1469461322,
-0.6404086351,
-0.0449287407,
-0.4518195093,
0.1629376262,
-0.0208121799,
0.3008388877,
-0.1564248204,
-0.0414830446,
-0.1359416693,
0.264983505,
-0.0204071775,
-0.1017609909,
-0.2103607655,
0.0730617344,
-0.4150725603,
0.0396688133,
-0.3952054083,
-0.4520670474,
0.1354968697,
-0.1934476048,
-0.0277334619,
-0.3400939405,
0.1221161485,
-0.2560789585,
-0.296957165,
0.1214853004,
0.1431154907,
0.6734752059,
0.2715199292,
0.4250793159,
-0.0546115711,
0.0503763333,
0.0825025663,
-0.165483743,
-0.0256072264,
-0.0099342465,
0.0087095238,
0.147287786,
-0.142893523,
0.0028558751,
-0.3011903465,
0.1760219634,
0.0736623406,
-0.2087875158,
-0.3524347246,
0.1006986722,
-0.0179186743,
-0.092089422,
-0.2663929164,
0.1667677909,
-0.0187938735,
0.3740313649,
-0.4058203399,
-0.2653807104,
0.5419952273,
-0.5197666287,
-0.3598220646,
-0.0807498395,
0.2593535185,
0.0481357835,
-0.3689701855,
-0.7990338206,
-0.0074765221,
0.3657464385,
0.2452615649,
-0.2954541445,
-0.0031834149,
-0.0610719621,
0.1361378878,
-0.1206353977,
0.2416767627,
-0.0414122976,
-0.1126290783,
0.0680975616,
-0.2633722723
] |
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.0217496846,
0.2180517465,
-0.1063895747,
0.4800748527,
0.2548157275,
0.1268989593,
0.3188253045,
0.3147775829,
0.2105301917,
0.0805180445,
-0.1847252548,
0.2396584302,
0.3409661353,
-0.2226555645,
0.205966413,
-0.3597016931,
0.2095894068,
0.0540649034,
-0.3535144031,
-0.2804775238,
-0.2011401653,
-0.0445801578,
-0.2302432656,
0.2511762083,
-0.3913942873,
-0.0602718666,
-0.1513203382,
0.0464151837,
-0.027871009,
-0.2779789865,
0.0563255772,
-0.2114447802,
-0.2633560002,
0.3735167384,
-0.0001048581,
-0.0351675153,
0.3287269175,
0.0319340974,
-0.1813073754,
0.1614544094,
-0.4102665186,
-0.2440758646,
-0.1773908585,
-0.429877162,
0.0149512934,
-0.1356498152,
0.0609833151,
0.1326296926,
0.2397328615,
0.2525062561,
0.2651384175,
-0.1925648302,
-0.0854850188,
-0.145297721,
0.2307809144,
0.2006864399,
-0.1339763999,
0.1043765172,
-0.1793818623,
-0.0810345933,
-0.3428083956,
0.4742645025,
-0.1878855079,
-0.0846636444,
-0.001651322,
0.0582642704,
0.003402181,
-0.1630996317,
0.3464973569,
0.407430917,
0.3778396249,
-0.2557984591,
-0.2104947567,
0.0359947868,
-0.193841517,
-0.0199065879,
0.2206407636,
0.4031752944,
-0.1245587468,
0.2314281017,
-0.0001320421,
-0.1658483148,
-0.1803621799,
0.3355076313,
-0.077801995,
0.3513064981,
0.0784134567,
-0.0682719126,
-0.123661913,
-0.2863449156,
0.1012385339,
-0.1975312829,
0.0682563335,
0.347006768,
0.0446781814,
0.0525920615,
0.1136646271,
0.2080913037,
0.2858697474,
-0.1333631426,
-0.2652031779,
-0.0882651582,
-0.1367066056,
0.0373128802,
0.1167579442,
-0.2515016198,
-0.0322292335,
0.1256176829,
0.2220258266,
0.1560222805,
-0.106958352,
0.241307959,
0.1984235197,
-0.2149847001,
-0.0874885842,
-0.1044265032,
0.0813947842,
-0.1835742295,
-0.3046199679,
0.594889164,
-0.3711347282,
-0.1318761557,
-0.2979767919,
0.3457997739,
-0.128163591,
-0.0458848253,
0.1415421963,
0.0513531528,
-0.2917692661,
-0.1837873161,
-0.2216852158,
0.2715579569,
-0.1283210367,
0.0329068378,
-0.0046778293,
-0.1679582149,
0.2080498338,
0.3736846149,
-0.1623069644,
-0.1798124909,
-0.3341550529,
-0.2787849903,
0.1935304403,
0.1823901087,
-0.1924867779,
-0.017530458,
0.1466525793,
-0.466809392,
-0.0528689362,
0.2100448012,
-0.1489783525,
0.0081559857,
-0.3441654742,
0.2914661765,
-0.0529971384,
-0.0388297066,
0.2570792437,
0.1582389325,
0.3505283296,
0.1839471012,
0.3142884672,
0.318516165,
-0.1166177765,
-0.0557747893,
0.1568238139,
0.3804233968,
-0.1299570054,
-0.2104954273,
-0.0621756017,
-0.0130196586,
0.3333037794,
0.3461739421,
0.0501938462,
0.6008315682,
-0.0544618964,
0.1438076943,
0.2068924606,
-0.0154536553,
-0.3052203357,
0.2074413747,
0.0376532152,
0.079306826,
0.0197677352,
0.0175007731,
0.1682174951,
0.2418491691,
0.3015218079,
0.2445595264,
0.3042182028,
0.1639279425,
-0.3787767887,
-0.3602709174,
0.3326548934,
-0.0616251454,
0.1865498126,
-0.0377610922,
0.173739776,
0.4814154804,
0.3857312202,
-0.1446892619,
0.101909101,
0.3164463043,
-0.0144038796,
0.1753052622,
0.2112830877,
-0.1105102897,
0.0269024726,
-0.011826355,
0.1372770667,
0.2664978206,
-0.2442846894,
-0.3616578877,
-0.2867644727,
0.0922367126,
-0.3069058955,
-0.363396287,
0.2632479966,
-0.0178855527,
-0.1031325385,
0.2370319813,
0.1850249916,
-0.0453618839,
-0.4526405036,
-0.0165401585,
-0.2000681162,
0.2641223371,
-0.3693933189,
0.1141753346,
-0.2537213266,
0.2936861813,
-0.0100536989,
0.2576895058,
-0.1580758989,
0.0685128868,
0.0015479523,
0.3471235335,
0.150938645,
-0.0268896502,
0.2413432896,
-0.5917637944,
0.1313879192,
0.3716414571,
0.1322369576,
0.0131708849,
-0.283015281,
0.1229899004,
0.105534032,
-0.0603143759,
-0.066121228,
-0.0409794673,
0.1868354231,
-0.1494053751,
0.1104727238,
-0.3986355066,
0.1634107083,
0.2136998326,
0.0442372821,
0.2923955023,
-0.5543638468,
-0.0755146891,
0.396530509,
-0.0039931359,
0.4506633878,
-0.031755276,
-0.0955355838,
-0.1722245067,
0.3157477379,
-0.1668302119,
-0.0061807157,
0.0669403896,
0.1214142963,
0.096819371,
-0.1436298937,
-0.3810411394,
0.2992763519,
0.0703401715,
0.1209891737,
0.0078815827,
0.126498878,
0.1745316684,
-0.4669389725,
0.2897342443,
-0.1302147508,
0.2766364217,
-0.5091984868,
0.0974702388,
-0.1547906995,
-0.4750180542,
-0.2219112217,
-0.0872932971,
-0.1623681486,
-0.1715697944,
0.0400903597,
-0.2734845579,
-0.3408177793,
0.2923768163,
0.0714332387,
0.1096788943,
0.1521874666,
-0.0311824344,
-0.1206417307,
-0.3250727355,
-0.150971055,
0.1725410819,
0.1331774592,
0.1109377369,
0.2994437814,
-0.293317467,
-0.1828280985,
-0.5233898759,
-0.40140149,
0.2149632275,
-0.0341928788,
0.1937802136,
-0.0156560354,
0.3246045709,
-0.1813624054,
-0.2817064524,
0.1334262341,
0.1305942088,
-0.0667665824,
0.0104154591,
-0.200121209,
0.151859045,
-0.1306825429,
-0.489094615,
-0.0460663103,
-0.2238667458,
0.0964820087,
-0.0520531051,
0.3584498763,
0.4512476921,
0.1462247968,
0.1525150985,
0.1314290762,
0.2828703821,
-0.382525593,
-0.0908683762,
0.2340756208,
-0.1905328184,
-0.3137816787,
-0.1074098349,
-0.1780991256,
-0.091671139,
0.0535358079,
-0.5115403533,
0.0990553945,
-0.0660327449,
0.4441328347,
0.2005376965,
0.0849117041,
-0.0107274745,
0.0398274958,
-0.081923455,
-0.1840941757,
0.2096166015,
-0.0431089848,
-0.1930229813,
0.1679571569,
-0.0162271522,
0.5018720627,
0.2536742091,
0.5470895767,
0.2564650774,
0.2209028155,
0.1681793928,
-0.1750086993,
0.2536383867,
-0.0764029324,
-0.2170144171,
0.2947619557,
-0.0201398581,
-0.1961784214,
0.3155835867,
-0.1906969994,
-0.2418267876,
-0.0645512342,
0.0898622721,
-0.4327478111,
-0.2150687873,
0.0688226521,
0.0117367757,
0.2894498706,
0.0313610993,
0.2015413493,
0.1656949371,
-0.2568353415,
0.0745147169,
0.015312328,
-0.0868684426,
0.0118711479,
0.1580390632,
-0.2125456333,
-0.2947319746,
-0.025816543,
0.1346649379,
0.092365995,
-0.2648645341,
-0.1244316176,
0.1207083166,
0.0238637626,
0.2426907271,
-0.2924235165,
0.162791267,
0.1081886888,
0.2368688285,
-0.2457909137,
0.0996570587,
-0.2826500535,
0.3831591904,
0.4021659791,
0.1113405153,
-0.2951382697,
-0.0998466015,
0.5115591884,
0.2186970115,
-0.1767617017,
0.1225274429,
-0.1420458853,
-0.1168028563,
-0.2688201964,
0.37437886,
0.1339214444,
0.1794765443,
-0.0843837634,
0.1417193562,
0.14236781,
0.5251240134,
0.0477728359,
0.1895801574,
0.2533742785,
0.2911839485,
-0.0996597335,
-0.0260243751,
-0.0781833306,
0.0705486909,
0.4936422706,
-0.197568804,
-0.2303664535,
-0.293931812,
-0.2943985462,
0.064992547,
0.3974124491,
-0.0331270322,
-0.0881758183,
0.1749217957,
-0.1704994291,
-0.1304394305,
-0.095015116,
0.1914544404,
0.0488737822,
-0.1440313458,
-0.4761126637,
0.6198270321,
-0.1264690757,
0.0273771882,
0.0217140093,
-0.0269499458,
-0.4105685353,
0.170082882,
0.2546802461,
0.9464249611,
0.2910658121,
0.1372577697,
0.3389455676,
0.1367832273,
0.1745019704,
0.1369129866,
-0.1498889774,
-0.3785794675,
0.1422250718,
0.0048097093,
0.0986759663,
0.079971835,
0.0561741628,
-0.292694658,
0.0920924544,
-0.4051765501,
0.1487542242,
0.2856564224,
0.0871681869,
0.1106023788,
-0.2564538419,
-0.2089186013,
0.1717504412,
-0.0674592108,
0.0501564294,
-0.2172480077,
-0.0479168966,
-0.2214342505,
-0.0593937673,
-0.4298385978,
0.1101738513,
-0.0146066276,
0.4323615134,
-0.0474374443,
-0.3589805067,
-0.1632195711,
0.3142881989,
0.006821916,
0.2323219031,
-0.2190512121,
0.1638809592,
0.0551234595,
0.1045906991,
0.1837890446,
0.2056871206,
0.4542144835,
-0.041017063,
-0.3303293884,
0.0718729645,
-0.1509423256,
-0.0843539387,
-0.1562631428,
-0.090557009,
-0.1486928016,
-0.1267618686,
-0.203093186,
0.0374683775,
-0.144942686,
-0.3290224969,
0.2100215107,
0.0266083665,
-0.0055109668,
-0.0627179742,
0.1027224287,
-0.4178875089,
-0.0673541054,
0.1203261241,
0.2012439817,
0.2464582473,
0.3070988357,
0.3385811746,
-0.3948934972,
-0.3434702754,
0.0073801721,
-0.2924911082,
-0.2570524216,
-0.103426598,
-0.2936599553,
-0.015826581,
-0.263645947,
0.1282203794,
0.0152876964,
0.0136043495,
-0.1466552317,
-0.427198112,
-0.0610137135,
0.3576849103,
0.1551737934,
0.0271694176,
0.167084679,
0.0822837725,
0.2062351555,
-0.0465493128,
-0.4155222178,
0.0919840708,
-0.3135485649,
0.1315242201,
-0.0567875281,
0.0673400834,
-0.2217293531,
-0.2155217528,
0.1608973891,
-0.239164114,
-0.095936209,
-0.3125947714,
-0.1546700001,
0.0946182236,
0.0696931779,
-0.0980509669,
0.0308930371,
-0.0046277456,
0.100586094,
-0.2756650746,
0.0421902761,
0.1222030669,
-0.0092293331,
0.3724420071,
-0.0267857108,
0.1925995499,
0.0317435525,
-0.1391223818,
-0.051531516,
0.2592616975,
-0.0716814175,
0.2771884203,
0.0490553193,
-0.0567287356,
0.0147451898,
0.0316863656,
-0.0732395202,
0.0380925462,
0.2449266762,
-0.2375313938,
-0.041485209,
0.3766605556,
0.1083501801,
0.312446475,
-0.3910883963,
-0.0867064521,
-0.1380981505,
0.3295797706,
-0.1939186752,
0.0695071295,
0.0026594228,
-0.2876421809,
0.054729946,
0.1131538823,
0.093988575,
-0.2414278686,
-0.0041061835,
0.1915749013,
0.0746797398,
-0.25295192,
0.2269825786,
0.3803837299,
0.013836219,
0.1778623611,
-0.0633262321,
0.0702822134,
-0.06161635,
0.3406343162,
0.3166198134,
-0.0080497656,
0.2981330752,
0.2172823995,
0.041530665,
0.0035944441,
0.3930801451,
0.1677062511,
-0.4628001451,
0.0103607886,
0.1248841733,
0.0746583194,
0.3124025762,
-0.1110322177,
-0.0987587124,
0.1237550601,
-0.3691429198,
-0.1521779746,
-0.1100707054,
-0.1553019285,
0.0493778996,
0.0431637876,
-0.0157785267,
-0.2311102748,
0.029592244,
-0.0264925081,
-0.3002963364,
-0.4345844686,
0.529928863,
0.1440942585,
0.1175738946,
-0.4787163436,
0.1488223374,
0.0081931166,
-0.0973190293,
-0.3266992867,
0.6328184009,
0.3283831179,
0.2006082237,
-0.1508841813,
0.0393684804,
-0.1578692049,
-0.130050838,
0.0183743816,
-0.0011695259,
0.1858095378,
-0.1209185123,
0.4000377953,
0.1490639597,
-0.246620968,
-0.1811034232,
0.5726725459,
0.2986353934,
0.0300127026,
-0.3170938492,
-0.0635960847,
-0.1525590718,
0.064683497,
-0.1351118535,
-0.4166485667,
0.0175687969,
0.5091848969,
0.0315332077,
0.2170377672,
-0.1578039825,
0.1260560155,
0.1256028116,
0.5439800024,
0.4771565199,
0.3215115964,
0.0334347561,
-0.2102821618,
-0.5221921206,
0.113922216,
-0.3307038248,
0.0611846521,
0.1933301985,
0.2705697417,
-0.0403804332,
0.2471337616,
-0.1648397297,
-0.0854506865,
-0.0238446854,
0.1717418879,
-0.2824481726,
-0.0814170241,
0.1719481051,
0.1485822499,
-0.2805480063,
-0.3322794139,
0.3170482218,
-0.2754183114,
0.1466152519,
-0.0726717263,
-0.1809592992,
0.1821580976,
0.3728329837,
0.3264459968,
0.1073773503,
0.2122054249,
-0.218553856,
-0.0122220134,
-0.0883903354,
-0.2975090742,
0.0703274384,
0.6526838541,
0.0642657802,
0.1192350835,
0.1520586163,
-0.2892924845,
0.1741570681,
0.5524721146,
0.0602066815,
-0.0746276602,
-0.2985336483,
-0.0249615069,
0.1073964089,
-0.0485406369,
-0.2636000216,
0.1822527647,
-0.1529707462,
0.0791880861,
-0.1050481424,
-0.6924177408,
0.1791934222,
-0.474367559,
-0.3494186103,
-0.2618202865,
0.2053393275,
0.1779123694,
-0.0478013679,
-0.4104754031,
-0.1351319999,
0.3146879673,
-0.1238036528,
-0.3916368186,
-0.0282043982,
-0.0388243124,
0.118985489,
-0.1689133346,
0.2135902345,
0.05609788,
-0.3986982703,
0.0426545106,
-0.5303533077
] |
https://github.com/huggingface/datasets/issues/2762 | Add RVL-CDIP dataset | [labels_only.tar.gz](https://docs.google.com/uc?authuser=0&id=0B0NKIRwUL9KYcXo3bV9LU0t3SGs&export=download) on the RVL-CDIP website does not work for me.
> 404. That’s an error. The requested URL was not found on this server.
I contacted the author ( Adam Harley) regarding this, and he told me that the link works for him. Not sure what the issue is. But Adam shared the file (labels_only.tar.gz) with me as an attachment.
Are we allowed to host this file(labels_only.tar.gz) elsewhere and use that link instead ?
Thank you.
| ## Adding a Dataset
- **Name:** RVL-CDIP
- **Description:** The RVL-CDIP (Ryerson Vision Lab Complex Document Information Processing) dataset consists of 400,000 grayscale images in 16 classes, with 25,000 images per class. There are 320,000 training images, 40,000 validation images, and 40,000 test images. The images are sized so their largest dimension does not exceed 1000 pixels.
- **Paper:** https://www.cs.cmu.edu/~aharley/icdar15/
- **Data:** https://www.cs.cmu.edu/~aharley/rvl-cdip/
- **Motivation:** I'm currently adding LayoutLMv2 and LayoutXLM to HuggingFace Transformers. LayoutLM (v1) already exists in the library. This dataset has a large value for document image classification (i.e. classifying scanned documents). LayoutLM models obtain SOTA on this dataset, so would be great to directly use it in notebooks.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 76 | Add RVL-CDIP dataset
## Adding a Dataset
- **Name:** RVL-CDIP
- **Description:** The RVL-CDIP (Ryerson Vision Lab Complex Document Information Processing) dataset consists of 400,000 grayscale images in 16 classes, with 25,000 images per class. There are 320,000 training images, 40,000 validation images, and 40,000 test images. The images are sized so their largest dimension does not exceed 1000 pixels.
- **Paper:** https://www.cs.cmu.edu/~aharley/icdar15/
- **Data:** https://www.cs.cmu.edu/~aharley/rvl-cdip/
- **Motivation:** I'm currently adding LayoutLMv2 and LayoutXLM to HuggingFace Transformers. LayoutLM (v1) already exists in the library. This dataset has a large value for document image classification (i.e. classifying scanned documents). LayoutLM models obtain SOTA on this dataset, so would be great to directly use it in notebooks.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
[labels_only.tar.gz](https://docs.google.com/uc?authuser=0&id=0B0NKIRwUL9KYcXo3bV9LU0t3SGs&export=download) on the RVL-CDIP website does not work for me.
> 404. That’s an error. The requested URL was not found on this server.
I contacted the author ( Adam Harley) regarding this, and he told me that the link works for him. Not sure what the issue is. But Adam shared the file (labels_only.tar.gz) with me as an attachment.
Are we allowed to host this file(labels_only.tar.gz) elsewhere and use that link instead ?
Thank you.
| [
0.0768499747,
-0.4151332974,
0.0702098906,
0.3048322201,
0.0102978572,
0.1493622512,
0.1433266699,
0.0107151344,
-0.0011781731,
-0.0203361716,
-0.425915271,
-0.0388229638,
-0.0852706358,
-0.1490817368,
0.3841081262,
-0.2075450271,
-0.122254774,
-0.0297740344,
0.0521152169,
-0.2277636528,
-0.180131197,
0.1146270856,
0.0937476382,
0.1896103173,
-0.304882586,
-0.1561638117,
-0.2080940753,
0.189931348,
-0.208993569,
-0.2469565421,
0.0293881893,
0.0827480927,
0.3880016804,
0.5339916348,
-0.0001228727,
0.1307275891,
0.0308834296,
-0.0651452988,
0.0878795609,
-0.3665474951,
-0.0773010775,
-0.1279892325,
-0.4073096514,
-0.2247694284,
-0.1115344167,
-0.3775613308,
-0.0370036215,
0.0569665469,
0.2793472111,
0.332247436,
0.0952780843,
0.0911263749,
-0.0225174706,
-0.1515678763,
0.3616174757,
0.1581073701,
-0.200521335,
0.611946106,
0.0484923348,
0.1209331155,
0.0912136883,
0.3373126686,
0.0221524853,
-0.1700173318,
0.4157778621,
0.1852716506,
-0.1818298995,
-0.0786259994,
0.161568433,
0.2184292376,
0.7040728927,
-0.0373429023,
-0.3944151402,
-0.0163395684,
0.1236476228,
-0.1236393973,
0.1565722376,
0.3288346827,
-0.0316001438,
0.2372050583,
-0.2897873819,
-0.7433663011,
-0.4912214577,
-0.1045068949,
0.109449327,
0.6133159995,
-0.0986553654,
0.005013193,
0.1502027661,
0.2750146687,
0.0413835794,
0.0589756146,
0.0626807213,
-0.1445250511,
0.1029530168,
-0.0612303801,
0.0976256281,
0.1926326305,
0.0662958026,
0.0557179227,
0.6147730947,
-0.3864222169,
-0.1858604699,
0.080858171,
-0.0709920228,
0.272467941,
-0.2110565156,
0.2319961488,
0.3589212298,
0.3760158718,
0.3160224557,
-0.13570261,
-0.3216272593,
-0.1677554697,
-0.4473356903,
-0.2311811596,
0.0320530273,
-0.0187008455,
-0.0437829196,
0.1121732369,
0.2010869533,
-0.0224431287,
-0.0309426151,
0.351398021,
0.1846602559,
-0.1828991324,
0.2989555299,
0.04602677,
-0.0542667806,
-0.2116046697,
0.0735252872,
0.3771006167,
-0.1840868443,
0.1817946136,
-0.0972948,
0.0530944318,
-0.0308601577,
-0.2478663623,
0.0565345436,
0.1178082451,
-0.0560516566,
0.1223289743,
0.2601221204,
0.2097003609,
0.0355118476,
0.156156987,
-0.0371456929,
-0.0257055275,
-0.3255011439,
0.1348350644,
-0.3029125035,
-0.0379887559,
0.1806930751,
-0.0335849337,
-0.0394994579,
-0.0349973217,
-0.1543946564,
0.1357270926,
-0.2771121562,
-0.1744994372,
0.0779922977,
0.2116785645,
-0.2627345026,
-0.0459051505,
-0.0187038928,
0.3902306855,
-0.2671808898,
0.0574718639,
0.021482883,
0.2037174851,
-0.0261441376,
0.4047252238,
-0.2877966762,
0.3750721216,
-0.3163211942,
-0.1452769637,
0.1668542027,
-0.4488746524,
-0.4283531606,
0.2155791968,
-0.5609652996,
-0.2066191733,
0.2180421799,
0.1170376539,
0.1015350893,
-0.0023890103,
0.0515260622,
-0.0411886685,
0.2536763847,
-0.0321693867,
-0.3707875013,
-0.0850270987,
-0.1271914989,
0.1237381473,
-0.093754299,
0.0888986662,
0.0116283214,
-0.0962898508,
0.2438947111,
-0.20992212,
0.1245981753,
0.4128240645,
0.2957372367,
0.156388998,
-0.1367316693,
0.0892069712,
-0.2214235812,
0.0165614244,
0.0410595313,
0.2596977651,
0.1273269504,
-0.2434450686,
-0.4714420438,
-0.0908423066,
0.0026975917,
-0.3845514953,
-0.0523000248,
0.3894733191,
0.2403628975,
0.0092145884,
-0.2082207948,
0.0882536098,
-0.0110532576,
0.1734555066,
-0.0946018249,
0.2111222297,
-0.1790007204,
0.2869279087,
0.1675931513,
0.0440590382,
0.0558793917,
-0.2298745811,
0.1965216994,
0.4121099412,
-0.3036679029,
0.1024962664,
0.4139633477,
0.0010057341,
0.3386971056,
-0.7085310221,
0.1287854314,
-0.0198965855,
0.067491807,
0.3939861357,
-0.3111965656,
0.139659971,
-0.1457313597,
0.0416403897,
0.3481160998,
0.0628277436,
0.0712053776,
-0.102529794,
-0.2593756318,
0.0799164772,
0.356007129,
0.1916376054,
0.4016967714,
-0.1255626231,
-0.0373206399,
-0.0742607042,
-0.1626526862,
-0.0913422704,
-0.0009631633,
0.0982844159,
-0.2232221514,
0.2566110194,
0.1261522621,
0.494163543,
0.1531780511,
0.2166063339,
0.2304271162,
0.2296898663,
-0.3199309111,
-0.1695791185,
0.0609490462,
0.0837362036,
-0.4019109011,
0.1599309593,
0.0780818313,
0.0902212486,
-0.4106965363,
-0.3911743164,
-0.0131601673,
-0.153334111,
-0.1199558526,
0.135932073,
0.1812039018,
-0.0466519855,
-0.5098646879,
0.0802158639,
-0.5539605618,
-0.0990030915,
0.1029393151,
-0.0268691294,
-0.0901405364,
0.058339864,
-0.2016631514,
0.5337105393,
-0.29659307,
-0.2137501091,
-0.0222790372,
-0.2169560492,
-0.0890741497,
-0.0135989739,
0.0060207788,
-0.0037238882,
0.4807906449,
-0.1347554177,
0.2272661179,
-0.4280574024,
-0.4190192521,
0.1429618299,
0.0779693052,
-0.0280108564,
-0.049298685,
0.1109592095,
0.1857527196,
-0.1441040784,
0.3272346258,
-0.1108920202,
0.1245845631,
-0.2116465718,
0.0488271527,
-0.0977241099,
-0.1999381036,
-0.3060951531,
0.0950294882,
-0.3727474809,
0.1260281205,
0.023526676,
-0.0333771221,
0.2931497991,
0.1035117656,
0.1228548661,
0.0434587337,
0.0531056784,
-0.0366268232,
-0.3010758758,
0.5711954236,
-0.2933142483,
-0.3833473325,
-0.0165942814,
-0.1090490073,
0.3257066011,
0.4066727459,
-0.6308169961,
-0.027568046,
-0.1205814183,
-0.2240696698,
0.1522891968,
0.3723398447,
0.1612197757,
-0.0021526788,
-0.0642231405,
-0.0246661492,
-0.2001347691,
0.0763211101,
0.0759236962,
0.1671227217,
0.1689461023,
-0.0960544422,
0.0900669545,
0.3884825408,
-0.0271125156,
0.0819199532,
0.6089514494,
-0.0497611091,
0.9063457251,
0.1193959787,
-0.2628215253,
-0.0975172967,
0.0744257793,
-0.2179921865,
0.1873997301,
0.2719852626,
0.1433109343,
-0.413010478,
-0.285913527,
-0.1849976033,
-0.2584473491,
0.0407261886,
0.622823298,
0.3359390497,
0.1188289225,
-0.1202470437,
-0.2251684368,
0.0333498605,
0.3968463242,
0.6358076334,
0.244015798,
0.0077144387,
-0.7661111951,
0.1113854945,
-0.4614414573,
0.2895555794,
-0.0205042083,
-0.1267701983,
-0.2226389796,
-0.0608180128,
0.2204817832,
-0.0746416971,
0.3294309378,
-0.241235286,
0.0403974876,
0.0361977778,
-0.1428330988,
0.0977212191,
0.2639128566,
0.0798481554,
-0.2872121632,
0.1216172203,
0.3696378469,
-0.4042759836,
0.3682008982,
-0.0108251953,
-0.0772784799,
-0.214881584,
-0.0497763194,
-0.2693563104,
-0.5257486105,
-0.0851119608,
-0.1088423058,
-0.0452992283,
-0.1238117218,
0.0796226636,
0.3982598782,
0.1645715386,
-0.2266507298,
0.1235564724,
0.1381324381,
0.1344477236,
0.043606814,
-0.2223384082,
0.5401850939,
0.2730743587,
0.3063932955,
0.6484395862,
-0.2413388044,
-0.4499268234,
0.0954988226,
-0.1103598103,
0.1414482147,
0.7204537988,
0.2822377086,
-0.3874567151,
0.3446320295,
-0.0107565038,
-0.3716520965,
0.2342163622,
0.0061705089,
-0.2437155247,
-0.3142084777,
-0.1601148546,
0.3027409613,
0.0489449054,
-0.1545196921,
0.0594590381,
0.593188405,
-0.2696407139,
0.2227564603,
-0.1147593036,
1.4343736172,
-0.2154183388,
0.483987242,
0.1683894098,
-0.1504154801,
0.7653657198,
-0.218059808,
0.3140915632,
0.0232333224,
-0.2250043005,
-0.1346637607,
-0.1617861688,
0.1213335916,
0.1715676785,
0.1296566874,
0.2051501572,
0.213320002,
0.1185832396,
0.0248902179,
0.2886060774,
0.0437943451,
-0.0651636273,
-0.3392708898,
-0.0358875021,
0.2206083536,
0.3119999468,
-0.1858625859,
-0.2253564298,
-0.6210394502,
-0.2667671442,
-0.2296517044,
-0.0580644757,
-0.1664574593,
0.0262155514,
-0.230844602,
-0.2307727486,
0.0101464326,
0.5048199892,
0.1529583186,
0.0991268456,
-0.4695370793,
0.1592948735,
-0.5575493574,
-0.2647971213,
0.0870581642,
-0.0146393552,
-0.0316349752,
-0.0459943861,
-0.0115018319,
0.346378684,
0.1882077456,
-0.1718680114,
-0.1853578836,
0.0021977026,
0.0753847584,
-0.2115620375,
0.2058879733,
0.0677119493,
-0.0457139462,
-0.2076731771,
-0.0355714969,
-0.0759109557,
0.0744535252,
-0.5558192134,
0.142272085,
-0.1537090391,
-0.0646792054,
0.2147551626,
-0.0221267492,
-0.045113232,
-0.0389505103,
-0.1208854541,
-0.0814107135,
-0.0550781675,
-0.0134300496,
0.056096416,
-0.6984011531,
-0.0369479544,
-0.029642785,
-0.1699255109,
-0.537814796,
0.2018509209,
0.4591413736,
-0.0369494222,
-0.0191341378,
0.0530864261,
-0.1661759764,
0.4888817072,
-0.0465640686,
0.1666514575,
-0.0407081842,
0.2534704506,
0.1573279798,
0.106704846,
-0.1828260422,
0.0944977999,
-0.0170867741,
-0.163508296,
0.4532521665,
-0.0403340869,
0.2969860733,
0.05176761,
-0.0537051521,
0.0041333479,
-0.2164865434,
0.0937837213,
-0.2632820308,
0.2297180593,
0.3398095071,
-0.1652774662,
-0.1377859861,
-0.4526996315,
0.0968401507,
-0.0629741699,
0.0167704336,
0.0234091952,
0.0568841137,
-0.3161410689,
-0.0741722137,
0.0425482094,
-0.2186419964,
0.3127963245,
0.0086402614,
0.5289319158,
0.461982578,
-0.2140512168,
-0.0679278746,
-0.0108975526,
-0.3423461616,
0.1372399628,
0.3058750927,
-0.0488006249,
0.4590218365,
0.0375510566,
0.2407272309,
0.2200013846,
0.4523732066,
0.1245754659,
-0.1141103655,
0.0487650894,
0.2453572303,
-0.0300495382,
-0.211915493,
-0.2101836056,
0.2760705948,
-0.1510465443,
0.0078901676,
0.3155643642,
0.1999851614,
0.2103795111,
0.0167159364,
-0.0879933164,
0.5938250422,
-0.0449706726,
-0.0825896636,
0.055624675,
-0.0998386815,
0.4660525918,
0.3272174597,
0.4530796707,
0.1944466978,
0.034882769,
-0.0715043321,
0.0096884482,
-0.1672743559,
0.0998932123,
0.0972914621,
-0.3946513832,
-0.1104149148,
0.1044602841,
0.5562670231,
0.1620879471,
-0.2144392282,
0.0034822801,
-0.0401692539,
0.2446613461,
-0.0534451902,
0.3391174674,
-0.000735777,
-0.1226672232,
0.0328097008,
-0.2920643687,
-0.1536862403,
0.3346023858,
0.0133681167,
-0.2669120729,
0.2509003878,
-0.2451685965,
0.0426068418,
-0.2634821832,
-0.1845384389,
-0.0051607247,
0.0260026194,
-0.1747007966,
0.2079003155,
0.1974953115,
0.0955013335,
0.3559523225,
0.2764659226,
0.2906466126,
0.0335018113,
0.3473523855,
0.0822159573,
-0.1948332489,
0.0181393959,
-0.2511805594,
0.0755382404,
0.3041213453,
0.1077141017,
0.3290761709,
-0.0064953901,
-0.0784910247,
0.1267508268,
-0.0788100734,
0.1927327961,
-0.1651240289,
-0.0698324218,
-0.4621066749,
-0.3027167022,
-0.1987835467,
-0.1838073879,
-0.4656285048,
0.1902010292,
-0.1501192153,
-0.0446416661,
0.0510635376,
-0.108854413,
-0.0537069663,
0.0122851823,
0.2252829671,
0.5836261511,
0.0645526424,
-0.2776049674,
-0.2627458274,
-0.7063142061,
0.2438028455,
-0.1497438252,
-0.213626191,
-0.2124471664,
-0.0326029733,
0.2196819782,
0.0038444709,
0.0280782226,
-0.1017908528,
-0.0008877181,
0.0070790206,
-0.1102726161,
0.0896844938,
0.1719882786,
0.3104553223,
-0.0329135321,
-0.1687726676,
0.0934245065,
0.3349307775,
-0.1873052418,
-0.0253446177,
0.2754234672,
-0.3416675627,
0.1520881206,
0.398737371,
-0.0382572375,
0.3578712046,
-0.2405512631,
-0.4947445393,
-0.4335065484,
-0.050330393,
-0.1144022346,
0.1019676328,
0.4865440726,
0.2948337197,
-0.4495174289,
-0.2734412849,
-0.2304287404,
0.1315297633,
0.0761355385,
0.2805009484,
-0.1534319073,
0.0383110866,
-0.3590947092,
-0.0946073458,
0.4146774411,
0.1298761964,
0.0638198853,
-0.2717654407,
-0.1994909346,
-0.2842947245,
0.5343357921,
-0.2542313635,
-0.0601136237,
0.3883441389,
0.2372534424,
0.4812434316,
0.0462142564,
-0.3834593892,
0.1283045262,
0.190008834,
0.1775940955,
-0.2692312896,
0.1626478434,
-0.1838703603,
-0.2619003057,
0.0293324478,
0.665353179,
-0.0879868194,
-0.5346027613,
-0.0425919443,
-0.1273610592
] |
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.2315261513,
0.0246402305,
-0.0223660432,
0.4574562013,
0.1744247079,
0.2295814157,
-0.0073709022,
0.5081833601,
-0.0316529274,
0.0191250741,
-0.1842969358,
-0.0640129447,
-0.0091638118,
0.3338083625,
-0.0433653891,
-0.2194700837,
-0.1107668057,
0.1606067419,
0.1407686621,
0.0597508326,
-0.1448138505,
0.200905174,
-0.2154415697,
-0.0725571364,
-0.2707111239,
-0.0130071528,
0.1758372933,
0.3205577731,
0.0850606784,
-0.5288673043,
0.2025578171,
-0.173953563,
0.0258219521,
0.5030126572,
-0.0001112284,
0.0486642048,
0.4246914089,
-0.044326175,
-0.3031129241,
0.080271557,
-0.3098668754,
-0.2428597808,
0.1443648934,
-0.0320094824,
-0.3313592076,
-0.1901499927,
-0.2336005121,
-0.337559551,
0.2493238896,
0.6167078018,
0.2385805696,
0.3121446669,
0.0608734488,
0.0165073946,
-0.1109838858,
-0.1475732327,
-0.0226773322,
0.3512014747,
-0.0215198919,
0.0317066498,
0.17848894,
0.2144179046,
0.0287549049,
0.109498553,
0.1285811812,
-0.1285621822,
0.2033363432,
-0.1063505635,
0.1449160874,
0.384683907,
0.3563731909,
-0.2420738935,
-0.1519510001,
-0.3080827296,
-0.1986612529,
-0.2773948014,
0.2565825582,
0.1999746114,
-0.162488535,
0.1661830842,
-0.3945817649,
0.2987675369,
0.0589542575,
0.0859669596,
-0.19323273,
0.2412160188,
0.151707381,
-0.0265463125,
0.0266115516,
0.0962592512,
0.1632707119,
-0.1978421658,
-0.0648604929,
0.2136577517,
-0.6099300385,
-0.2218072712,
-0.3099173307,
0.4977059066,
-0.0144232623,
-0.0514829233,
-0.1140122265,
-0.0171040557,
0.1712173522,
-0.1863041371,
0.168832615,
0.2142092884,
-0.198009029,
0.1207097843,
0.1434048563,
-0.1067881435,
0.0161335301,
-0.0791778341,
0.1627920866,
-0.1318753511,
-0.0637647435,
0.242095843,
0.0574145578,
-0.3179150522,
-0.6927222013,
0.2457999736,
-0.3038000464,
-0.0368809775,
0.0007451276,
0.3466166556,
-0.3842548132,
0.2641150653,
0.1001108363,
-0.1724215299,
-0.2799531221,
-0.2688708901,
-0.2056978047,
0.0522300638,
-0.3685679138,
0.0012720496,
0.2524728179,
-0.2094730288,
0.4003705382,
-0.0511981137,
0.175180614,
-0.0478968918,
0.209127903,
-0.3762721419,
-0.1081526726,
0.2255999595,
-0.3169130385,
0.0376329832,
0.2689842284,
-0.0927063972,
0.0103947874,
-0.0342600904,
0.1593453735,
-0.3435824215,
-0.1637990624,
0.2872267067,
-0.0145502724,
0.028838804,
0.0684600249,
-0.0540245399,
0.3395628631,
-0.1157188118,
-0.1957775652,
-0.2394087762,
0.0330547653,
-0.0582298711,
0.1889541298,
0.4896890819,
-0.4754008949,
0.0806838721,
-0.3405703902,
0.1221412122,
0.4467144012,
0.2935121357,
-0.0330285728,
0.276563555,
-0.2077404857,
0.0237062424,
-0.0174366962,
-0.3686724901,
-0.3444619775,
0.517563343,
-0.0822374001,
0.345343858,
-0.054771293,
0.0431668498,
0.1374017596,
0.0436606333,
0.1547783315,
0.2047379166,
-0.1418510526,
0.1543143839,
-0.5629567504,
-0.1219998896,
0.3635736704,
0.0133565236,
0.1890147179,
-0.2069267184,
0.1235908121,
-0.0846618414,
0.4912209213,
-0.0084106913,
-0.1206196919,
-0.0321738571,
0.2111115009,
-0.0240930151,
0.1006423682,
-0.2743465006,
-0.5518813729,
0.2668114305,
-0.0237271301,
0.1528526247,
0.128613621,
-0.0469232313,
-0.5897586346,
-0.1467691064,
-0.156229347,
-0.2404750586,
0.1061195061,
0.1226578429,
0.2428141087,
0.0796362162,
-0.0546255521,
0.5485525131,
-0.0577964634,
0.1413289011,
-0.0799552128,
0.3413334191,
-0.1525627375,
-0.0305094514,
-0.0302448105,
0.1346585751,
0.2463355958,
-0.0983944014,
-0.3567023277,
0.6420470476,
0.1248638406,
0.2066818476,
-0.4426276684,
0.0053083971,
0.3827439249,
-0.312579751,
0.0957016498,
0.5969316959,
0.2378960252,
0.018149795,
0.0953132808,
0.4245105982,
-0.0290681664,
-0.0525033176,
0.1060230434,
-0.1878117472,
0.1633397937,
-0.1469226629,
0.2009779066,
-0.3520146608,
0.4401285946,
-0.086315237,
0.376046747,
-0.0243643839,
-0.1455284059,
0.0485069752,
0.400924176,
-0.0737882778,
-0.0185000487,
-0.1634851843,
-0.1819179356,
-0.1184911877,
0.3020991087,
0.3241460621,
0.6374416947,
0.1745532155,
-0.2192534357,
0.238128975,
-0.0004308925,
-0.2599273026,
0.4831360579,
-0.16536282,
0.0127728805,
0.4583309591,
0.0089773815,
0.1091808677,
-0.4487719238,
0.1450789124,
0.1234028861,
0.1818009466,
-0.3607928157,
0.0788160712,
-0.2152218372,
0.0968674645,
-0.3518632948,
-0.2619571984,
0.0294027049,
-0.3133798838,
-0.0178714953,
0.1368233263,
-0.0503816381,
0.2308113575,
-0.4672617614,
0.0846560821,
0.1124342903,
-0.1230985522,
-0.2004064173,
0.0737324357,
-0.3612591624,
0.0988925099,
0.2535132468,
0.0678493381,
0.2908096611,
-0.1956795752,
-0.1511839181,
0.0241015013,
-0.403648138,
0.1278225183,
0.1180699021,
0.2275420725,
0.0969562456,
0.074481234,
0.3463861048,
-0.4121953547,
-0.0710677728,
-0.1308416873,
-0.2183186561,
0.1705412418,
0.0332116783,
0.0247355979,
-0.1156042516,
-0.598754704,
-0.4374186695,
-0.3892830312,
-0.049827639,
-0.1645165086,
-0.0728507712,
0.1988957524,
-0.1343784779,
0.0514265448,
0.1836191267,
-0.0720979422,
-0.4009527862,
0.2122819126,
0.1445587128,
-0.0392758101,
-0.2241799831,
-0.1384652406,
-0.0772773102,
-0.0527736656,
-0.0458172299,
-0.3023410439,
0.2543264031,
-0.45600003,
0.243556425,
-0.1985963881,
-0.2131236047,
0.2872215807,
0.0318472013,
-0.0354613326,
-0.1347288191,
-0.0344382972,
-0.0722914413,
-0.1071647182,
0.1636642367,
-0.1976881027,
0.3942435384,
0.1363980919,
0.4813589752,
0.2416755706,
-0.5439124703,
0.0680662841,
0.1705717444,
0.2048651725,
-0.0990282819,
-0.3353739083,
0.3906064034,
-0.0682676658,
0.0239583924,
0.2752488554,
-0.3505267203,
-0.2781621516,
-0.0356107093,
0.1964914054,
-0.3761669397,
-0.0256565083,
-0.1338632107,
-0.1636421531,
0.205854848,
0.3254788816,
0.2892020941,
0.0354887918,
-0.1637171954,
0.250346303,
0.2493044138,
0.0125087593,
-0.1440640688,
-0.1290752739,
-0.1602594107,
-0.2274691463,
0.3832501769,
0.3412743807,
0.2640646398,
0.0742881447,
-0.1175951883,
-0.0429791734,
-0.0687440187,
0.6774852872,
-0.1602199674,
0.1394209564,
-0.0770249963,
0.1332771778,
-0.1524720788,
-0.2240350842,
-0.0229290891,
0.023779951,
0.294780612,
0.5989148617,
-0.3209038377,
-0.1446432918,
0.3440996408,
0.3235155344,
-0.1614697427,
-0.3134259582,
-0.0346945859,
-0.0641084462,
-0.0452169776,
0.1154502183,
0.0462890379,
0.2783488929,
-0.1482948512,
-0.1531402022,
0.0351074636,
-0.0507185981,
0.2441392541,
0.314193666,
0.3286376894,
-0.0386053137,
0.3620904684,
0.1574010998,
0.302365303,
0.3721848428,
0.2111066431,
-0.3454647958,
-0.0583147518,
-0.126635626,
0.0932572335,
-0.0013119415,
0.2818883657,
-0.0490356237,
-0.1346837878,
0.2506635487,
0.0684190094,
-0.1524625868,
0.3452249765,
-0.017785769,
0.0991841778,
-0.179880932,
-0.3432309628,
0.231690228,
-0.1548493654,
0.014570741,
0.1157022566,
0.0679006726,
-0.3640975654,
-0.0880729929,
0.0034846696,
0.799934864,
0.3829322159,
-0.1509273499,
0.244191736,
-0.3533548415,
0.022745559,
-0.3782044649,
0.1704311371,
-0.3321321905,
-0.1670110822,
-0.0512643531,
-0.1950093508,
-0.0709553137,
0.074538745,
-0.2098715454,
0.2186292261,
-0.1244222075,
0.0774680674,
0.2048072815,
0.2370276004,
0.0730774328,
0.1332218498,
-0.1807202101,
0.146478802,
-0.061223641,
0.1584162414,
-0.2090025246,
-0.0780172646,
0.0462246202,
-0.1878200024,
-0.2343229204,
0.20044671,
-0.6715443134,
0.0274444986,
0.030634772,
-0.0971901789,
-0.0029014766,
-0.0963324979,
0.2391867936,
0.2715614438,
-0.1229087338,
0.0358497463,
0.1376943439,
0.1534954906,
0.0529683977,
-0.038759876,
0.2003012598,
-0.1359015703,
-0.179028064,
0.0824057534,
-0.3000932932,
-0.180888027,
0.2318423986,
-0.0816882178,
-0.028824335,
-0.3130398691,
-0.1693852991,
-0.086678192,
0.1064578146,
-0.2034926564,
0.1535089016,
-0.2164586037,
-0.3282729983,
0.0480189659,
0.0514248088,
-0.3208441734,
-0.3036953807,
0.2600756288,
0.1588466614,
-0.0262651052,
0.3788430989,
0.0115336888,
-0.3269039094,
-0.2525987625,
-0.1472420543,
0.154626295,
-0.4197558761,
0.0971368998,
-0.3318916261,
-0.2562455237,
0.1576456428,
0.2788511515,
0.5067476034,
0.0376340747,
0.055186417,
-0.5445109606,
-0.1050762683,
0.0463754162,
-0.1678869873,
0.2210355997,
-0.0551568903,
0.613263309,
-0.3147178292,
0.1814591438,
-0.3386440873,
0.0392295271,
-0.1233163401,
0.1893967986,
0.0008276187,
-0.2967328131,
0.2796499133,
0.0981790647,
0.2074520141,
0.3625249863,
-0.150289312,
-0.1964604408,
-0.1700350195,
0.1034774035,
0.0979660004,
-0.2308012396,
0.0625861734,
0.1589739174,
-0.0434563272,
-0.0086861178,
0.1131300181,
-0.1068088338,
-0.0433672704,
0.1655222774,
0.3677059114,
-0.0724941194,
-0.2427452952,
0.0912592858,
-0.1443974525,
0.0855921134,
0.0484119318,
0.1299037784,
-0.1480564177,
0.0475812443,
0.1583013833,
-0.0559334978,
0.277226299,
0.2009173781,
0.2070957571,
-0.249920696,
-0.2945112586,
0.2605381012,
0.1768848598,
0.4284104705,
0.0114916414,
-0.1583105177,
0.0698025674,
0.2637247741,
-0.3338598609,
-0.0800071433,
-0.0841671079,
-0.2150551677,
0.1919248402,
0.0787675753,
0.0997455344,
-0.1859395802,
-0.0468999706,
0.2622560263,
0.4332888126,
-0.0860138088,
0.1091236174,
0.3987325132,
-0.0716094375,
0.0295817424,
0.1499777734,
-0.2502601147,
0.0625842363,
0.3447422385,
-0.0479679443,
0.1358721852,
0.0101842182,
0.1770617366,
-0.0911619216,
-0.1617770791,
0.2650984228,
0.4197487235,
-0.4040274322,
0.2929240763,
0.2387187481,
-0.1023295298,
-0.3085988462,
-0.184587881,
-0.4084450901,
-0.1939705312,
-0.0719640106,
0.1064393371,
0.0173222665,
-0.342833668,
-0.2268976718,
-0.0113695245,
-0.0335706286,
0.0478486009,
0.5259113908,
0.0245204996,
-0.233011663,
-0.1281085461,
-0.2837898731,
0.2017405182,
0.219013989,
-0.3413544297,
0.3417457044,
0.2017514855,
-0.1879085004,
-0.2357743382,
0.1908759326,
0.1929077506,
0.4227324128,
-0.260741502,
-0.1073191017,
0.1446971893,
0.0094174547,
0.1235153377,
0.4184185565,
0.0590741485,
-0.0722035915,
0.2262649685,
0.1355633736,
-0.2458424121,
0.1419692338,
-0.0804047808,
-0.1136845276,
-0.6303744912,
0.3398407698,
-0.0270328093,
-0.0053561772,
-0.1063561812,
0.2040738761,
-0.3419700563,
0.056027621,
0.3937086463,
-0.1050298288,
0.2485333979,
0.1354948431,
0.0990921706,
-0.1431968659,
0.3879004717,
0.1573153883,
0.0696987957,
-0.5092069507,
-0.1368091404,
-0.4429212809,
0.2315698266,
-0.1639962196,
0.1835734695,
-0.0463664271,
0.0475715995,
0.1086040661,
0.1867365092,
0.1462303251,
0.3793207407,
0.1809258461,
-0.044158861,
-0.2704291046,
-0.1495056748,
-0.1365630031,
-0.2033465952,
0.0330280438,
-0.5399724245,
0.0781179518,
0.1010799929,
0.11846371,
-0.0927305743,
-0.2510058582,
0.3491325676,
0.21621494,
0.3482257426,
0.3603940308,
0.5763016939,
-0.1550002694,
-0.1805731505,
0.0021046102,
-0.0462204553,
-0.1851201802,
0.1420909166,
0.1194763929,
0.3269408941,
0.0800934806,
-0.1135652736,
-0.2312361896,
0.4827976525,
0.3263703585,
-0.2479363382,
-0.2551741004,
-0.0562405363,
-0.3647659123,
-0.0320116505,
0.2655398548,
0.3975051939,
-0.0032960693,
0.0520438328,
0.0077276849,
-0.3785652816,
0.4797545075,
-0.5694300532,
-0.0697972327,
-0.1935784072,
0.2503973544,
-0.0434158221,
-0.0811095834,
-0.4199208021,
0.0652300268,
0.5131905079,
-0.0961263254,
-0.0506022759,
0.1511286348,
0.154512912,
-0.1854588538,
0.0249981675,
0.3290072978,
0.3633759022,
-0.2964656949,
0.0584367029,
-0.2315704823
] |
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.2315261513,
0.0246402305,
-0.0223660432,
0.4574562013,
0.1744247079,
0.2295814157,
-0.0073709022,
0.5081833601,
-0.0316529274,
0.0191250741,
-0.1842969358,
-0.0640129447,
-0.0091638118,
0.3338083625,
-0.0433653891,
-0.2194700837,
-0.1107668057,
0.1606067419,
0.1407686621,
0.0597508326,
-0.1448138505,
0.200905174,
-0.2154415697,
-0.0725571364,
-0.2707111239,
-0.0130071528,
0.1758372933,
0.3205577731,
0.0850606784,
-0.5288673043,
0.2025578171,
-0.173953563,
0.0258219521,
0.5030126572,
-0.0001112284,
0.0486642048,
0.4246914089,
-0.044326175,
-0.3031129241,
0.080271557,
-0.3098668754,
-0.2428597808,
0.1443648934,
-0.0320094824,
-0.3313592076,
-0.1901499927,
-0.2336005121,
-0.337559551,
0.2493238896,
0.6167078018,
0.2385805696,
0.3121446669,
0.0608734488,
0.0165073946,
-0.1109838858,
-0.1475732327,
-0.0226773322,
0.3512014747,
-0.0215198919,
0.0317066498,
0.17848894,
0.2144179046,
0.0287549049,
0.109498553,
0.1285811812,
-0.1285621822,
0.2033363432,
-0.1063505635,
0.1449160874,
0.384683907,
0.3563731909,
-0.2420738935,
-0.1519510001,
-0.3080827296,
-0.1986612529,
-0.2773948014,
0.2565825582,
0.1999746114,
-0.162488535,
0.1661830842,
-0.3945817649,
0.2987675369,
0.0589542575,
0.0859669596,
-0.19323273,
0.2412160188,
0.151707381,
-0.0265463125,
0.0266115516,
0.0962592512,
0.1632707119,
-0.1978421658,
-0.0648604929,
0.2136577517,
-0.6099300385,
-0.2218072712,
-0.3099173307,
0.4977059066,
-0.0144232623,
-0.0514829233,
-0.1140122265,
-0.0171040557,
0.1712173522,
-0.1863041371,
0.168832615,
0.2142092884,
-0.198009029,
0.1207097843,
0.1434048563,
-0.1067881435,
0.0161335301,
-0.0791778341,
0.1627920866,
-0.1318753511,
-0.0637647435,
0.242095843,
0.0574145578,
-0.3179150522,
-0.6927222013,
0.2457999736,
-0.3038000464,
-0.0368809775,
0.0007451276,
0.3466166556,
-0.3842548132,
0.2641150653,
0.1001108363,
-0.1724215299,
-0.2799531221,
-0.2688708901,
-0.2056978047,
0.0522300638,
-0.3685679138,
0.0012720496,
0.2524728179,
-0.2094730288,
0.4003705382,
-0.0511981137,
0.175180614,
-0.0478968918,
0.209127903,
-0.3762721419,
-0.1081526726,
0.2255999595,
-0.3169130385,
0.0376329832,
0.2689842284,
-0.0927063972,
0.0103947874,
-0.0342600904,
0.1593453735,
-0.3435824215,
-0.1637990624,
0.2872267067,
-0.0145502724,
0.028838804,
0.0684600249,
-0.0540245399,
0.3395628631,
-0.1157188118,
-0.1957775652,
-0.2394087762,
0.0330547653,
-0.0582298711,
0.1889541298,
0.4896890819,
-0.4754008949,
0.0806838721,
-0.3405703902,
0.1221412122,
0.4467144012,
0.2935121357,
-0.0330285728,
0.276563555,
-0.2077404857,
0.0237062424,
-0.0174366962,
-0.3686724901,
-0.3444619775,
0.517563343,
-0.0822374001,
0.345343858,
-0.054771293,
0.0431668498,
0.1374017596,
0.0436606333,
0.1547783315,
0.2047379166,
-0.1418510526,
0.1543143839,
-0.5629567504,
-0.1219998896,
0.3635736704,
0.0133565236,
0.1890147179,
-0.2069267184,
0.1235908121,
-0.0846618414,
0.4912209213,
-0.0084106913,
-0.1206196919,
-0.0321738571,
0.2111115009,
-0.0240930151,
0.1006423682,
-0.2743465006,
-0.5518813729,
0.2668114305,
-0.0237271301,
0.1528526247,
0.128613621,
-0.0469232313,
-0.5897586346,
-0.1467691064,
-0.156229347,
-0.2404750586,
0.1061195061,
0.1226578429,
0.2428141087,
0.0796362162,
-0.0546255521,
0.5485525131,
-0.0577964634,
0.1413289011,
-0.0799552128,
0.3413334191,
-0.1525627375,
-0.0305094514,
-0.0302448105,
0.1346585751,
0.2463355958,
-0.0983944014,
-0.3567023277,
0.6420470476,
0.1248638406,
0.2066818476,
-0.4426276684,
0.0053083971,
0.3827439249,
-0.312579751,
0.0957016498,
0.5969316959,
0.2378960252,
0.018149795,
0.0953132808,
0.4245105982,
-0.0290681664,
-0.0525033176,
0.1060230434,
-0.1878117472,
0.1633397937,
-0.1469226629,
0.2009779066,
-0.3520146608,
0.4401285946,
-0.086315237,
0.376046747,
-0.0243643839,
-0.1455284059,
0.0485069752,
0.400924176,
-0.0737882778,
-0.0185000487,
-0.1634851843,
-0.1819179356,
-0.1184911877,
0.3020991087,
0.3241460621,
0.6374416947,
0.1745532155,
-0.2192534357,
0.238128975,
-0.0004308925,
-0.2599273026,
0.4831360579,
-0.16536282,
0.0127728805,
0.4583309591,
0.0089773815,
0.1091808677,
-0.4487719238,
0.1450789124,
0.1234028861,
0.1818009466,
-0.3607928157,
0.0788160712,
-0.2152218372,
0.0968674645,
-0.3518632948,
-0.2619571984,
0.0294027049,
-0.3133798838,
-0.0178714953,
0.1368233263,
-0.0503816381,
0.2308113575,
-0.4672617614,
0.0846560821,
0.1124342903,
-0.1230985522,
-0.2004064173,
0.0737324357,
-0.3612591624,
0.0988925099,
0.2535132468,
0.0678493381,
0.2908096611,
-0.1956795752,
-0.1511839181,
0.0241015013,
-0.403648138,
0.1278225183,
0.1180699021,
0.2275420725,
0.0969562456,
0.074481234,
0.3463861048,
-0.4121953547,
-0.0710677728,
-0.1308416873,
-0.2183186561,
0.1705412418,
0.0332116783,
0.0247355979,
-0.1156042516,
-0.598754704,
-0.4374186695,
-0.3892830312,
-0.049827639,
-0.1645165086,
-0.0728507712,
0.1988957524,
-0.1343784779,
0.0514265448,
0.1836191267,
-0.0720979422,
-0.4009527862,
0.2122819126,
0.1445587128,
-0.0392758101,
-0.2241799831,
-0.1384652406,
-0.0772773102,
-0.0527736656,
-0.0458172299,
-0.3023410439,
0.2543264031,
-0.45600003,
0.243556425,
-0.1985963881,
-0.2131236047,
0.2872215807,
0.0318472013,
-0.0354613326,
-0.1347288191,
-0.0344382972,
-0.0722914413,
-0.1071647182,
0.1636642367,
-0.1976881027,
0.3942435384,
0.1363980919,
0.4813589752,
0.2416755706,
-0.5439124703,
0.0680662841,
0.1705717444,
0.2048651725,
-0.0990282819,
-0.3353739083,
0.3906064034,
-0.0682676658,
0.0239583924,
0.2752488554,
-0.3505267203,
-0.2781621516,
-0.0356107093,
0.1964914054,
-0.3761669397,
-0.0256565083,
-0.1338632107,
-0.1636421531,
0.205854848,
0.3254788816,
0.2892020941,
0.0354887918,
-0.1637171954,
0.250346303,
0.2493044138,
0.0125087593,
-0.1440640688,
-0.1290752739,
-0.1602594107,
-0.2274691463,
0.3832501769,
0.3412743807,
0.2640646398,
0.0742881447,
-0.1175951883,
-0.0429791734,
-0.0687440187,
0.6774852872,
-0.1602199674,
0.1394209564,
-0.0770249963,
0.1332771778,
-0.1524720788,
-0.2240350842,
-0.0229290891,
0.023779951,
0.294780612,
0.5989148617,
-0.3209038377,
-0.1446432918,
0.3440996408,
0.3235155344,
-0.1614697427,
-0.3134259582,
-0.0346945859,
-0.0641084462,
-0.0452169776,
0.1154502183,
0.0462890379,
0.2783488929,
-0.1482948512,
-0.1531402022,
0.0351074636,
-0.0507185981,
0.2441392541,
0.314193666,
0.3286376894,
-0.0386053137,
0.3620904684,
0.1574010998,
0.302365303,
0.3721848428,
0.2111066431,
-0.3454647958,
-0.0583147518,
-0.126635626,
0.0932572335,
-0.0013119415,
0.2818883657,
-0.0490356237,
-0.1346837878,
0.2506635487,
0.0684190094,
-0.1524625868,
0.3452249765,
-0.017785769,
0.0991841778,
-0.179880932,
-0.3432309628,
0.231690228,
-0.1548493654,
0.014570741,
0.1157022566,
0.0679006726,
-0.3640975654,
-0.0880729929,
0.0034846696,
0.799934864,
0.3829322159,
-0.1509273499,
0.244191736,
-0.3533548415,
0.022745559,
-0.3782044649,
0.1704311371,
-0.3321321905,
-0.1670110822,
-0.0512643531,
-0.1950093508,
-0.0709553137,
0.074538745,
-0.2098715454,
0.2186292261,
-0.1244222075,
0.0774680674,
0.2048072815,
0.2370276004,
0.0730774328,
0.1332218498,
-0.1807202101,
0.146478802,
-0.061223641,
0.1584162414,
-0.2090025246,
-0.0780172646,
0.0462246202,
-0.1878200024,
-0.2343229204,
0.20044671,
-0.6715443134,
0.0274444986,
0.030634772,
-0.0971901789,
-0.0029014766,
-0.0963324979,
0.2391867936,
0.2715614438,
-0.1229087338,
0.0358497463,
0.1376943439,
0.1534954906,
0.0529683977,
-0.038759876,
0.2003012598,
-0.1359015703,
-0.179028064,
0.0824057534,
-0.3000932932,
-0.180888027,
0.2318423986,
-0.0816882178,
-0.028824335,
-0.3130398691,
-0.1693852991,
-0.086678192,
0.1064578146,
-0.2034926564,
0.1535089016,
-0.2164586037,
-0.3282729983,
0.0480189659,
0.0514248088,
-0.3208441734,
-0.3036953807,
0.2600756288,
0.1588466614,
-0.0262651052,
0.3788430989,
0.0115336888,
-0.3269039094,
-0.2525987625,
-0.1472420543,
0.154626295,
-0.4197558761,
0.0971368998,
-0.3318916261,
-0.2562455237,
0.1576456428,
0.2788511515,
0.5067476034,
0.0376340747,
0.055186417,
-0.5445109606,
-0.1050762683,
0.0463754162,
-0.1678869873,
0.2210355997,
-0.0551568903,
0.613263309,
-0.3147178292,
0.1814591438,
-0.3386440873,
0.0392295271,
-0.1233163401,
0.1893967986,
0.0008276187,
-0.2967328131,
0.2796499133,
0.0981790647,
0.2074520141,
0.3625249863,
-0.150289312,
-0.1964604408,
-0.1700350195,
0.1034774035,
0.0979660004,
-0.2308012396,
0.0625861734,
0.1589739174,
-0.0434563272,
-0.0086861178,
0.1131300181,
-0.1068088338,
-0.0433672704,
0.1655222774,
0.3677059114,
-0.0724941194,
-0.2427452952,
0.0912592858,
-0.1443974525,
0.0855921134,
0.0484119318,
0.1299037784,
-0.1480564177,
0.0475812443,
0.1583013833,
-0.0559334978,
0.277226299,
0.2009173781,
0.2070957571,
-0.249920696,
-0.2945112586,
0.2605381012,
0.1768848598,
0.4284104705,
0.0114916414,
-0.1583105177,
0.0698025674,
0.2637247741,
-0.3338598609,
-0.0800071433,
-0.0841671079,
-0.2150551677,
0.1919248402,
0.0787675753,
0.0997455344,
-0.1859395802,
-0.0468999706,
0.2622560263,
0.4332888126,
-0.0860138088,
0.1091236174,
0.3987325132,
-0.0716094375,
0.0295817424,
0.1499777734,
-0.2502601147,
0.0625842363,
0.3447422385,
-0.0479679443,
0.1358721852,
0.0101842182,
0.1770617366,
-0.0911619216,
-0.1617770791,
0.2650984228,
0.4197487235,
-0.4040274322,
0.2929240763,
0.2387187481,
-0.1023295298,
-0.3085988462,
-0.184587881,
-0.4084450901,
-0.1939705312,
-0.0719640106,
0.1064393371,
0.0173222665,
-0.342833668,
-0.2268976718,
-0.0113695245,
-0.0335706286,
0.0478486009,
0.5259113908,
0.0245204996,
-0.233011663,
-0.1281085461,
-0.2837898731,
0.2017405182,
0.219013989,
-0.3413544297,
0.3417457044,
0.2017514855,
-0.1879085004,
-0.2357743382,
0.1908759326,
0.1929077506,
0.4227324128,
-0.260741502,
-0.1073191017,
0.1446971893,
0.0094174547,
0.1235153377,
0.4184185565,
0.0590741485,
-0.0722035915,
0.2262649685,
0.1355633736,
-0.2458424121,
0.1419692338,
-0.0804047808,
-0.1136845276,
-0.6303744912,
0.3398407698,
-0.0270328093,
-0.0053561772,
-0.1063561812,
0.2040738761,
-0.3419700563,
0.056027621,
0.3937086463,
-0.1050298288,
0.2485333979,
0.1354948431,
0.0990921706,
-0.1431968659,
0.3879004717,
0.1573153883,
0.0696987957,
-0.5092069507,
-0.1368091404,
-0.4429212809,
0.2315698266,
-0.1639962196,
0.1835734695,
-0.0463664271,
0.0475715995,
0.1086040661,
0.1867365092,
0.1462303251,
0.3793207407,
0.1809258461,
-0.044158861,
-0.2704291046,
-0.1495056748,
-0.1365630031,
-0.2033465952,
0.0330280438,
-0.5399724245,
0.0781179518,
0.1010799929,
0.11846371,
-0.0927305743,
-0.2510058582,
0.3491325676,
0.21621494,
0.3482257426,
0.3603940308,
0.5763016939,
-0.1550002694,
-0.1805731505,
0.0021046102,
-0.0462204553,
-0.1851201802,
0.1420909166,
0.1194763929,
0.3269408941,
0.0800934806,
-0.1135652736,
-0.2312361896,
0.4827976525,
0.3263703585,
-0.2479363382,
-0.2551741004,
-0.0562405363,
-0.3647659123,
-0.0320116505,
0.2655398548,
0.3975051939,
-0.0032960693,
0.0520438328,
0.0077276849,
-0.3785652816,
0.4797545075,
-0.5694300532,
-0.0697972327,
-0.1935784072,
0.2503973544,
-0.0434158221,
-0.0811095834,
-0.4199208021,
0.0652300268,
0.5131905079,
-0.0961263254,
-0.0506022759,
0.1511286348,
0.154512912,
-0.1854588538,
0.0249981675,
0.3290072978,
0.3633759022,
-0.2964656949,
0.0584367029,
-0.2315704823
] |
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.2315261513,
0.0246402305,
-0.0223660432,
0.4574562013,
0.1744247079,
0.2295814157,
-0.0073709022,
0.5081833601,
-0.0316529274,
0.0191250741,
-0.1842969358,
-0.0640129447,
-0.0091638118,
0.3338083625,
-0.0433653891,
-0.2194700837,
-0.1107668057,
0.1606067419,
0.1407686621,
0.0597508326,
-0.1448138505,
0.200905174,
-0.2154415697,
-0.0725571364,
-0.2707111239,
-0.0130071528,
0.1758372933,
0.3205577731,
0.0850606784,
-0.5288673043,
0.2025578171,
-0.173953563,
0.0258219521,
0.5030126572,
-0.0001112284,
0.0486642048,
0.4246914089,
-0.044326175,
-0.3031129241,
0.080271557,
-0.3098668754,
-0.2428597808,
0.1443648934,
-0.0320094824,
-0.3313592076,
-0.1901499927,
-0.2336005121,
-0.337559551,
0.2493238896,
0.6167078018,
0.2385805696,
0.3121446669,
0.0608734488,
0.0165073946,
-0.1109838858,
-0.1475732327,
-0.0226773322,
0.3512014747,
-0.0215198919,
0.0317066498,
0.17848894,
0.2144179046,
0.0287549049,
0.109498553,
0.1285811812,
-0.1285621822,
0.2033363432,
-0.1063505635,
0.1449160874,
0.384683907,
0.3563731909,
-0.2420738935,
-0.1519510001,
-0.3080827296,
-0.1986612529,
-0.2773948014,
0.2565825582,
0.1999746114,
-0.162488535,
0.1661830842,
-0.3945817649,
0.2987675369,
0.0589542575,
0.0859669596,
-0.19323273,
0.2412160188,
0.151707381,
-0.0265463125,
0.0266115516,
0.0962592512,
0.1632707119,
-0.1978421658,
-0.0648604929,
0.2136577517,
-0.6099300385,
-0.2218072712,
-0.3099173307,
0.4977059066,
-0.0144232623,
-0.0514829233,
-0.1140122265,
-0.0171040557,
0.1712173522,
-0.1863041371,
0.168832615,
0.2142092884,
-0.198009029,
0.1207097843,
0.1434048563,
-0.1067881435,
0.0161335301,
-0.0791778341,
0.1627920866,
-0.1318753511,
-0.0637647435,
0.242095843,
0.0574145578,
-0.3179150522,
-0.6927222013,
0.2457999736,
-0.3038000464,
-0.0368809775,
0.0007451276,
0.3466166556,
-0.3842548132,
0.2641150653,
0.1001108363,
-0.1724215299,
-0.2799531221,
-0.2688708901,
-0.2056978047,
0.0522300638,
-0.3685679138,
0.0012720496,
0.2524728179,
-0.2094730288,
0.4003705382,
-0.0511981137,
0.175180614,
-0.0478968918,
0.209127903,
-0.3762721419,
-0.1081526726,
0.2255999595,
-0.3169130385,
0.0376329832,
0.2689842284,
-0.0927063972,
0.0103947874,
-0.0342600904,
0.1593453735,
-0.3435824215,
-0.1637990624,
0.2872267067,
-0.0145502724,
0.028838804,
0.0684600249,
-0.0540245399,
0.3395628631,
-0.1157188118,
-0.1957775652,
-0.2394087762,
0.0330547653,
-0.0582298711,
0.1889541298,
0.4896890819,
-0.4754008949,
0.0806838721,
-0.3405703902,
0.1221412122,
0.4467144012,
0.2935121357,
-0.0330285728,
0.276563555,
-0.2077404857,
0.0237062424,
-0.0174366962,
-0.3686724901,
-0.3444619775,
0.517563343,
-0.0822374001,
0.345343858,
-0.054771293,
0.0431668498,
0.1374017596,
0.0436606333,
0.1547783315,
0.2047379166,
-0.1418510526,
0.1543143839,
-0.5629567504,
-0.1219998896,
0.3635736704,
0.0133565236,
0.1890147179,
-0.2069267184,
0.1235908121,
-0.0846618414,
0.4912209213,
-0.0084106913,
-0.1206196919,
-0.0321738571,
0.2111115009,
-0.0240930151,
0.1006423682,
-0.2743465006,
-0.5518813729,
0.2668114305,
-0.0237271301,
0.1528526247,
0.128613621,
-0.0469232313,
-0.5897586346,
-0.1467691064,
-0.156229347,
-0.2404750586,
0.1061195061,
0.1226578429,
0.2428141087,
0.0796362162,
-0.0546255521,
0.5485525131,
-0.0577964634,
0.1413289011,
-0.0799552128,
0.3413334191,
-0.1525627375,
-0.0305094514,
-0.0302448105,
0.1346585751,
0.2463355958,
-0.0983944014,
-0.3567023277,
0.6420470476,
0.1248638406,
0.2066818476,
-0.4426276684,
0.0053083971,
0.3827439249,
-0.312579751,
0.0957016498,
0.5969316959,
0.2378960252,
0.018149795,
0.0953132808,
0.4245105982,
-0.0290681664,
-0.0525033176,
0.1060230434,
-0.1878117472,
0.1633397937,
-0.1469226629,
0.2009779066,
-0.3520146608,
0.4401285946,
-0.086315237,
0.376046747,
-0.0243643839,
-0.1455284059,
0.0485069752,
0.400924176,
-0.0737882778,
-0.0185000487,
-0.1634851843,
-0.1819179356,
-0.1184911877,
0.3020991087,
0.3241460621,
0.6374416947,
0.1745532155,
-0.2192534357,
0.238128975,
-0.0004308925,
-0.2599273026,
0.4831360579,
-0.16536282,
0.0127728805,
0.4583309591,
0.0089773815,
0.1091808677,
-0.4487719238,
0.1450789124,
0.1234028861,
0.1818009466,
-0.3607928157,
0.0788160712,
-0.2152218372,
0.0968674645,
-0.3518632948,
-0.2619571984,
0.0294027049,
-0.3133798838,
-0.0178714953,
0.1368233263,
-0.0503816381,
0.2308113575,
-0.4672617614,
0.0846560821,
0.1124342903,
-0.1230985522,
-0.2004064173,
0.0737324357,
-0.3612591624,
0.0988925099,
0.2535132468,
0.0678493381,
0.2908096611,
-0.1956795752,
-0.1511839181,
0.0241015013,
-0.403648138,
0.1278225183,
0.1180699021,
0.2275420725,
0.0969562456,
0.074481234,
0.3463861048,
-0.4121953547,
-0.0710677728,
-0.1308416873,
-0.2183186561,
0.1705412418,
0.0332116783,
0.0247355979,
-0.1156042516,
-0.598754704,
-0.4374186695,
-0.3892830312,
-0.049827639,
-0.1645165086,
-0.0728507712,
0.1988957524,
-0.1343784779,
0.0514265448,
0.1836191267,
-0.0720979422,
-0.4009527862,
0.2122819126,
0.1445587128,
-0.0392758101,
-0.2241799831,
-0.1384652406,
-0.0772773102,
-0.0527736656,
-0.0458172299,
-0.3023410439,
0.2543264031,
-0.45600003,
0.243556425,
-0.1985963881,
-0.2131236047,
0.2872215807,
0.0318472013,
-0.0354613326,
-0.1347288191,
-0.0344382972,
-0.0722914413,
-0.1071647182,
0.1636642367,
-0.1976881027,
0.3942435384,
0.1363980919,
0.4813589752,
0.2416755706,
-0.5439124703,
0.0680662841,
0.1705717444,
0.2048651725,
-0.0990282819,
-0.3353739083,
0.3906064034,
-0.0682676658,
0.0239583924,
0.2752488554,
-0.3505267203,
-0.2781621516,
-0.0356107093,
0.1964914054,
-0.3761669397,
-0.0256565083,
-0.1338632107,
-0.1636421531,
0.205854848,
0.3254788816,
0.2892020941,
0.0354887918,
-0.1637171954,
0.250346303,
0.2493044138,
0.0125087593,
-0.1440640688,
-0.1290752739,
-0.1602594107,
-0.2274691463,
0.3832501769,
0.3412743807,
0.2640646398,
0.0742881447,
-0.1175951883,
-0.0429791734,
-0.0687440187,
0.6774852872,
-0.1602199674,
0.1394209564,
-0.0770249963,
0.1332771778,
-0.1524720788,
-0.2240350842,
-0.0229290891,
0.023779951,
0.294780612,
0.5989148617,
-0.3209038377,
-0.1446432918,
0.3440996408,
0.3235155344,
-0.1614697427,
-0.3134259582,
-0.0346945859,
-0.0641084462,
-0.0452169776,
0.1154502183,
0.0462890379,
0.2783488929,
-0.1482948512,
-0.1531402022,
0.0351074636,
-0.0507185981,
0.2441392541,
0.314193666,
0.3286376894,
-0.0386053137,
0.3620904684,
0.1574010998,
0.302365303,
0.3721848428,
0.2111066431,
-0.3454647958,
-0.0583147518,
-0.126635626,
0.0932572335,
-0.0013119415,
0.2818883657,
-0.0490356237,
-0.1346837878,
0.2506635487,
0.0684190094,
-0.1524625868,
0.3452249765,
-0.017785769,
0.0991841778,
-0.179880932,
-0.3432309628,
0.231690228,
-0.1548493654,
0.014570741,
0.1157022566,
0.0679006726,
-0.3640975654,
-0.0880729929,
0.0034846696,
0.799934864,
0.3829322159,
-0.1509273499,
0.244191736,
-0.3533548415,
0.022745559,
-0.3782044649,
0.1704311371,
-0.3321321905,
-0.1670110822,
-0.0512643531,
-0.1950093508,
-0.0709553137,
0.074538745,
-0.2098715454,
0.2186292261,
-0.1244222075,
0.0774680674,
0.2048072815,
0.2370276004,
0.0730774328,
0.1332218498,
-0.1807202101,
0.146478802,
-0.061223641,
0.1584162414,
-0.2090025246,
-0.0780172646,
0.0462246202,
-0.1878200024,
-0.2343229204,
0.20044671,
-0.6715443134,
0.0274444986,
0.030634772,
-0.0971901789,
-0.0029014766,
-0.0963324979,
0.2391867936,
0.2715614438,
-0.1229087338,
0.0358497463,
0.1376943439,
0.1534954906,
0.0529683977,
-0.038759876,
0.2003012598,
-0.1359015703,
-0.179028064,
0.0824057534,
-0.3000932932,
-0.180888027,
0.2318423986,
-0.0816882178,
-0.028824335,
-0.3130398691,
-0.1693852991,
-0.086678192,
0.1064578146,
-0.2034926564,
0.1535089016,
-0.2164586037,
-0.3282729983,
0.0480189659,
0.0514248088,
-0.3208441734,
-0.3036953807,
0.2600756288,
0.1588466614,
-0.0262651052,
0.3788430989,
0.0115336888,
-0.3269039094,
-0.2525987625,
-0.1472420543,
0.154626295,
-0.4197558761,
0.0971368998,
-0.3318916261,
-0.2562455237,
0.1576456428,
0.2788511515,
0.5067476034,
0.0376340747,
0.055186417,
-0.5445109606,
-0.1050762683,
0.0463754162,
-0.1678869873,
0.2210355997,
-0.0551568903,
0.613263309,
-0.3147178292,
0.1814591438,
-0.3386440873,
0.0392295271,
-0.1233163401,
0.1893967986,
0.0008276187,
-0.2967328131,
0.2796499133,
0.0981790647,
0.2074520141,
0.3625249863,
-0.150289312,
-0.1964604408,
-0.1700350195,
0.1034774035,
0.0979660004,
-0.2308012396,
0.0625861734,
0.1589739174,
-0.0434563272,
-0.0086861178,
0.1131300181,
-0.1068088338,
-0.0433672704,
0.1655222774,
0.3677059114,
-0.0724941194,
-0.2427452952,
0.0912592858,
-0.1443974525,
0.0855921134,
0.0484119318,
0.1299037784,
-0.1480564177,
0.0475812443,
0.1583013833,
-0.0559334978,
0.277226299,
0.2009173781,
0.2070957571,
-0.249920696,
-0.2945112586,
0.2605381012,
0.1768848598,
0.4284104705,
0.0114916414,
-0.1583105177,
0.0698025674,
0.2637247741,
-0.3338598609,
-0.0800071433,
-0.0841671079,
-0.2150551677,
0.1919248402,
0.0787675753,
0.0997455344,
-0.1859395802,
-0.0468999706,
0.2622560263,
0.4332888126,
-0.0860138088,
0.1091236174,
0.3987325132,
-0.0716094375,
0.0295817424,
0.1499777734,
-0.2502601147,
0.0625842363,
0.3447422385,
-0.0479679443,
0.1358721852,
0.0101842182,
0.1770617366,
-0.0911619216,
-0.1617770791,
0.2650984228,
0.4197487235,
-0.4040274322,
0.2929240763,
0.2387187481,
-0.1023295298,
-0.3085988462,
-0.184587881,
-0.4084450901,
-0.1939705312,
-0.0719640106,
0.1064393371,
0.0173222665,
-0.342833668,
-0.2268976718,
-0.0113695245,
-0.0335706286,
0.0478486009,
0.5259113908,
0.0245204996,
-0.233011663,
-0.1281085461,
-0.2837898731,
0.2017405182,
0.219013989,
-0.3413544297,
0.3417457044,
0.2017514855,
-0.1879085004,
-0.2357743382,
0.1908759326,
0.1929077506,
0.4227324128,
-0.260741502,
-0.1073191017,
0.1446971893,
0.0094174547,
0.1235153377,
0.4184185565,
0.0590741485,
-0.0722035915,
0.2262649685,
0.1355633736,
-0.2458424121,
0.1419692338,
-0.0804047808,
-0.1136845276,
-0.6303744912,
0.3398407698,
-0.0270328093,
-0.0053561772,
-0.1063561812,
0.2040738761,
-0.3419700563,
0.056027621,
0.3937086463,
-0.1050298288,
0.2485333979,
0.1354948431,
0.0990921706,
-0.1431968659,
0.3879004717,
0.1573153883,
0.0696987957,
-0.5092069507,
-0.1368091404,
-0.4429212809,
0.2315698266,
-0.1639962196,
0.1835734695,
-0.0463664271,
0.0475715995,
0.1086040661,
0.1867365092,
0.1462303251,
0.3793207407,
0.1809258461,
-0.044158861,
-0.2704291046,
-0.1495056748,
-0.1365630031,
-0.2033465952,
0.0330280438,
-0.5399724245,
0.0781179518,
0.1010799929,
0.11846371,
-0.0927305743,
-0.2510058582,
0.3491325676,
0.21621494,
0.3482257426,
0.3603940308,
0.5763016939,
-0.1550002694,
-0.1805731505,
0.0021046102,
-0.0462204553,
-0.1851201802,
0.1420909166,
0.1194763929,
0.3269408941,
0.0800934806,
-0.1135652736,
-0.2312361896,
0.4827976525,
0.3263703585,
-0.2479363382,
-0.2551741004,
-0.0562405363,
-0.3647659123,
-0.0320116505,
0.2655398548,
0.3975051939,
-0.0032960693,
0.0520438328,
0.0077276849,
-0.3785652816,
0.4797545075,
-0.5694300532,
-0.0697972327,
-0.1935784072,
0.2503973544,
-0.0434158221,
-0.0811095834,
-0.4199208021,
0.0652300268,
0.5131905079,
-0.0961263254,
-0.0506022759,
0.1511286348,
0.154512912,
-0.1854588538,
0.0249981675,
0.3290072978,
0.3633759022,
-0.2964656949,
0.0584367029,
-0.2315704823
] |
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.2315261513,
0.0246402305,
-0.0223660432,
0.4574562013,
0.1744247079,
0.2295814157,
-0.0073709022,
0.5081833601,
-0.0316529274,
0.0191250741,
-0.1842969358,
-0.0640129447,
-0.0091638118,
0.3338083625,
-0.0433653891,
-0.2194700837,
-0.1107668057,
0.1606067419,
0.1407686621,
0.0597508326,
-0.1448138505,
0.200905174,
-0.2154415697,
-0.0725571364,
-0.2707111239,
-0.0130071528,
0.1758372933,
0.3205577731,
0.0850606784,
-0.5288673043,
0.2025578171,
-0.173953563,
0.0258219521,
0.5030126572,
-0.0001112284,
0.0486642048,
0.4246914089,
-0.044326175,
-0.3031129241,
0.080271557,
-0.3098668754,
-0.2428597808,
0.1443648934,
-0.0320094824,
-0.3313592076,
-0.1901499927,
-0.2336005121,
-0.337559551,
0.2493238896,
0.6167078018,
0.2385805696,
0.3121446669,
0.0608734488,
0.0165073946,
-0.1109838858,
-0.1475732327,
-0.0226773322,
0.3512014747,
-0.0215198919,
0.0317066498,
0.17848894,
0.2144179046,
0.0287549049,
0.109498553,
0.1285811812,
-0.1285621822,
0.2033363432,
-0.1063505635,
0.1449160874,
0.384683907,
0.3563731909,
-0.2420738935,
-0.1519510001,
-0.3080827296,
-0.1986612529,
-0.2773948014,
0.2565825582,
0.1999746114,
-0.162488535,
0.1661830842,
-0.3945817649,
0.2987675369,
0.0589542575,
0.0859669596,
-0.19323273,
0.2412160188,
0.151707381,
-0.0265463125,
0.0266115516,
0.0962592512,
0.1632707119,
-0.1978421658,
-0.0648604929,
0.2136577517,
-0.6099300385,
-0.2218072712,
-0.3099173307,
0.4977059066,
-0.0144232623,
-0.0514829233,
-0.1140122265,
-0.0171040557,
0.1712173522,
-0.1863041371,
0.168832615,
0.2142092884,
-0.198009029,
0.1207097843,
0.1434048563,
-0.1067881435,
0.0161335301,
-0.0791778341,
0.1627920866,
-0.1318753511,
-0.0637647435,
0.242095843,
0.0574145578,
-0.3179150522,
-0.6927222013,
0.2457999736,
-0.3038000464,
-0.0368809775,
0.0007451276,
0.3466166556,
-0.3842548132,
0.2641150653,
0.1001108363,
-0.1724215299,
-0.2799531221,
-0.2688708901,
-0.2056978047,
0.0522300638,
-0.3685679138,
0.0012720496,
0.2524728179,
-0.2094730288,
0.4003705382,
-0.0511981137,
0.175180614,
-0.0478968918,
0.209127903,
-0.3762721419,
-0.1081526726,
0.2255999595,
-0.3169130385,
0.0376329832,
0.2689842284,
-0.0927063972,
0.0103947874,
-0.0342600904,
0.1593453735,
-0.3435824215,
-0.1637990624,
0.2872267067,
-0.0145502724,
0.028838804,
0.0684600249,
-0.0540245399,
0.3395628631,
-0.1157188118,
-0.1957775652,
-0.2394087762,
0.0330547653,
-0.0582298711,
0.1889541298,
0.4896890819,
-0.4754008949,
0.0806838721,
-0.3405703902,
0.1221412122,
0.4467144012,
0.2935121357,
-0.0330285728,
0.276563555,
-0.2077404857,
0.0237062424,
-0.0174366962,
-0.3686724901,
-0.3444619775,
0.517563343,
-0.0822374001,
0.345343858,
-0.054771293,
0.0431668498,
0.1374017596,
0.0436606333,
0.1547783315,
0.2047379166,
-0.1418510526,
0.1543143839,
-0.5629567504,
-0.1219998896,
0.3635736704,
0.0133565236,
0.1890147179,
-0.2069267184,
0.1235908121,
-0.0846618414,
0.4912209213,
-0.0084106913,
-0.1206196919,
-0.0321738571,
0.2111115009,
-0.0240930151,
0.1006423682,
-0.2743465006,
-0.5518813729,
0.2668114305,
-0.0237271301,
0.1528526247,
0.128613621,
-0.0469232313,
-0.5897586346,
-0.1467691064,
-0.156229347,
-0.2404750586,
0.1061195061,
0.1226578429,
0.2428141087,
0.0796362162,
-0.0546255521,
0.5485525131,
-0.0577964634,
0.1413289011,
-0.0799552128,
0.3413334191,
-0.1525627375,
-0.0305094514,
-0.0302448105,
0.1346585751,
0.2463355958,
-0.0983944014,
-0.3567023277,
0.6420470476,
0.1248638406,
0.2066818476,
-0.4426276684,
0.0053083971,
0.3827439249,
-0.312579751,
0.0957016498,
0.5969316959,
0.2378960252,
0.018149795,
0.0953132808,
0.4245105982,
-0.0290681664,
-0.0525033176,
0.1060230434,
-0.1878117472,
0.1633397937,
-0.1469226629,
0.2009779066,
-0.3520146608,
0.4401285946,
-0.086315237,
0.376046747,
-0.0243643839,
-0.1455284059,
0.0485069752,
0.400924176,
-0.0737882778,
-0.0185000487,
-0.1634851843,
-0.1819179356,
-0.1184911877,
0.3020991087,
0.3241460621,
0.6374416947,
0.1745532155,
-0.2192534357,
0.238128975,
-0.0004308925,
-0.2599273026,
0.4831360579,
-0.16536282,
0.0127728805,
0.4583309591,
0.0089773815,
0.1091808677,
-0.4487719238,
0.1450789124,
0.1234028861,
0.1818009466,
-0.3607928157,
0.0788160712,
-0.2152218372,
0.0968674645,
-0.3518632948,
-0.2619571984,
0.0294027049,
-0.3133798838,
-0.0178714953,
0.1368233263,
-0.0503816381,
0.2308113575,
-0.4672617614,
0.0846560821,
0.1124342903,
-0.1230985522,
-0.2004064173,
0.0737324357,
-0.3612591624,
0.0988925099,
0.2535132468,
0.0678493381,
0.2908096611,
-0.1956795752,
-0.1511839181,
0.0241015013,
-0.403648138,
0.1278225183,
0.1180699021,
0.2275420725,
0.0969562456,
0.074481234,
0.3463861048,
-0.4121953547,
-0.0710677728,
-0.1308416873,
-0.2183186561,
0.1705412418,
0.0332116783,
0.0247355979,
-0.1156042516,
-0.598754704,
-0.4374186695,
-0.3892830312,
-0.049827639,
-0.1645165086,
-0.0728507712,
0.1988957524,
-0.1343784779,
0.0514265448,
0.1836191267,
-0.0720979422,
-0.4009527862,
0.2122819126,
0.1445587128,
-0.0392758101,
-0.2241799831,
-0.1384652406,
-0.0772773102,
-0.0527736656,
-0.0458172299,
-0.3023410439,
0.2543264031,
-0.45600003,
0.243556425,
-0.1985963881,
-0.2131236047,
0.2872215807,
0.0318472013,
-0.0354613326,
-0.1347288191,
-0.0344382972,
-0.0722914413,
-0.1071647182,
0.1636642367,
-0.1976881027,
0.3942435384,
0.1363980919,
0.4813589752,
0.2416755706,
-0.5439124703,
0.0680662841,
0.1705717444,
0.2048651725,
-0.0990282819,
-0.3353739083,
0.3906064034,
-0.0682676658,
0.0239583924,
0.2752488554,
-0.3505267203,
-0.2781621516,
-0.0356107093,
0.1964914054,
-0.3761669397,
-0.0256565083,
-0.1338632107,
-0.1636421531,
0.205854848,
0.3254788816,
0.2892020941,
0.0354887918,
-0.1637171954,
0.250346303,
0.2493044138,
0.0125087593,
-0.1440640688,
-0.1290752739,
-0.1602594107,
-0.2274691463,
0.3832501769,
0.3412743807,
0.2640646398,
0.0742881447,
-0.1175951883,
-0.0429791734,
-0.0687440187,
0.6774852872,
-0.1602199674,
0.1394209564,
-0.0770249963,
0.1332771778,
-0.1524720788,
-0.2240350842,
-0.0229290891,
0.023779951,
0.294780612,
0.5989148617,
-0.3209038377,
-0.1446432918,
0.3440996408,
0.3235155344,
-0.1614697427,
-0.3134259582,
-0.0346945859,
-0.0641084462,
-0.0452169776,
0.1154502183,
0.0462890379,
0.2783488929,
-0.1482948512,
-0.1531402022,
0.0351074636,
-0.0507185981,
0.2441392541,
0.314193666,
0.3286376894,
-0.0386053137,
0.3620904684,
0.1574010998,
0.302365303,
0.3721848428,
0.2111066431,
-0.3454647958,
-0.0583147518,
-0.126635626,
0.0932572335,
-0.0013119415,
0.2818883657,
-0.0490356237,
-0.1346837878,
0.2506635487,
0.0684190094,
-0.1524625868,
0.3452249765,
-0.017785769,
0.0991841778,
-0.179880932,
-0.3432309628,
0.231690228,
-0.1548493654,
0.014570741,
0.1157022566,
0.0679006726,
-0.3640975654,
-0.0880729929,
0.0034846696,
0.799934864,
0.3829322159,
-0.1509273499,
0.244191736,
-0.3533548415,
0.022745559,
-0.3782044649,
0.1704311371,
-0.3321321905,
-0.1670110822,
-0.0512643531,
-0.1950093508,
-0.0709553137,
0.074538745,
-0.2098715454,
0.2186292261,
-0.1244222075,
0.0774680674,
0.2048072815,
0.2370276004,
0.0730774328,
0.1332218498,
-0.1807202101,
0.146478802,
-0.061223641,
0.1584162414,
-0.2090025246,
-0.0780172646,
0.0462246202,
-0.1878200024,
-0.2343229204,
0.20044671,
-0.6715443134,
0.0274444986,
0.030634772,
-0.0971901789,
-0.0029014766,
-0.0963324979,
0.2391867936,
0.2715614438,
-0.1229087338,
0.0358497463,
0.1376943439,
0.1534954906,
0.0529683977,
-0.038759876,
0.2003012598,
-0.1359015703,
-0.179028064,
0.0824057534,
-0.3000932932,
-0.180888027,
0.2318423986,
-0.0816882178,
-0.028824335,
-0.3130398691,
-0.1693852991,
-0.086678192,
0.1064578146,
-0.2034926564,
0.1535089016,
-0.2164586037,
-0.3282729983,
0.0480189659,
0.0514248088,
-0.3208441734,
-0.3036953807,
0.2600756288,
0.1588466614,
-0.0262651052,
0.3788430989,
0.0115336888,
-0.3269039094,
-0.2525987625,
-0.1472420543,
0.154626295,
-0.4197558761,
0.0971368998,
-0.3318916261,
-0.2562455237,
0.1576456428,
0.2788511515,
0.5067476034,
0.0376340747,
0.055186417,
-0.5445109606,
-0.1050762683,
0.0463754162,
-0.1678869873,
0.2210355997,
-0.0551568903,
0.613263309,
-0.3147178292,
0.1814591438,
-0.3386440873,
0.0392295271,
-0.1233163401,
0.1893967986,
0.0008276187,
-0.2967328131,
0.2796499133,
0.0981790647,
0.2074520141,
0.3625249863,
-0.150289312,
-0.1964604408,
-0.1700350195,
0.1034774035,
0.0979660004,
-0.2308012396,
0.0625861734,
0.1589739174,
-0.0434563272,
-0.0086861178,
0.1131300181,
-0.1068088338,
-0.0433672704,
0.1655222774,
0.3677059114,
-0.0724941194,
-0.2427452952,
0.0912592858,
-0.1443974525,
0.0855921134,
0.0484119318,
0.1299037784,
-0.1480564177,
0.0475812443,
0.1583013833,
-0.0559334978,
0.277226299,
0.2009173781,
0.2070957571,
-0.249920696,
-0.2945112586,
0.2605381012,
0.1768848598,
0.4284104705,
0.0114916414,
-0.1583105177,
0.0698025674,
0.2637247741,
-0.3338598609,
-0.0800071433,
-0.0841671079,
-0.2150551677,
0.1919248402,
0.0787675753,
0.0997455344,
-0.1859395802,
-0.0468999706,
0.2622560263,
0.4332888126,
-0.0860138088,
0.1091236174,
0.3987325132,
-0.0716094375,
0.0295817424,
0.1499777734,
-0.2502601147,
0.0625842363,
0.3447422385,
-0.0479679443,
0.1358721852,
0.0101842182,
0.1770617366,
-0.0911619216,
-0.1617770791,
0.2650984228,
0.4197487235,
-0.4040274322,
0.2929240763,
0.2387187481,
-0.1023295298,
-0.3085988462,
-0.184587881,
-0.4084450901,
-0.1939705312,
-0.0719640106,
0.1064393371,
0.0173222665,
-0.342833668,
-0.2268976718,
-0.0113695245,
-0.0335706286,
0.0478486009,
0.5259113908,
0.0245204996,
-0.233011663,
-0.1281085461,
-0.2837898731,
0.2017405182,
0.219013989,
-0.3413544297,
0.3417457044,
0.2017514855,
-0.1879085004,
-0.2357743382,
0.1908759326,
0.1929077506,
0.4227324128,
-0.260741502,
-0.1073191017,
0.1446971893,
0.0094174547,
0.1235153377,
0.4184185565,
0.0590741485,
-0.0722035915,
0.2262649685,
0.1355633736,
-0.2458424121,
0.1419692338,
-0.0804047808,
-0.1136845276,
-0.6303744912,
0.3398407698,
-0.0270328093,
-0.0053561772,
-0.1063561812,
0.2040738761,
-0.3419700563,
0.056027621,
0.3937086463,
-0.1050298288,
0.2485333979,
0.1354948431,
0.0990921706,
-0.1431968659,
0.3879004717,
0.1573153883,
0.0696987957,
-0.5092069507,
-0.1368091404,
-0.4429212809,
0.2315698266,
-0.1639962196,
0.1835734695,
-0.0463664271,
0.0475715995,
0.1086040661,
0.1867365092,
0.1462303251,
0.3793207407,
0.1809258461,
-0.044158861,
-0.2704291046,
-0.1495056748,
-0.1365630031,
-0.2033465952,
0.0330280438,
-0.5399724245,
0.0781179518,
0.1010799929,
0.11846371,
-0.0927305743,
-0.2510058582,
0.3491325676,
0.21621494,
0.3482257426,
0.3603940308,
0.5763016939,
-0.1550002694,
-0.1805731505,
0.0021046102,
-0.0462204553,
-0.1851201802,
0.1420909166,
0.1194763929,
0.3269408941,
0.0800934806,
-0.1135652736,
-0.2312361896,
0.4827976525,
0.3263703585,
-0.2479363382,
-0.2551741004,
-0.0562405363,
-0.3647659123,
-0.0320116505,
0.2655398548,
0.3975051939,
-0.0032960693,
0.0520438328,
0.0077276849,
-0.3785652816,
0.4797545075,
-0.5694300532,
-0.0697972327,
-0.1935784072,
0.2503973544,
-0.0434158221,
-0.0811095834,
-0.4199208021,
0.0652300268,
0.5131905079,
-0.0961263254,
-0.0506022759,
0.1511286348,
0.154512912,
-0.1854588538,
0.0249981675,
0.3290072978,
0.3633759022,
-0.2964656949,
0.0584367029,
-0.2315704823
] |
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.1358161271,
-0.2349782288,
-0.0059329458,
0.4061323404,
0.1851485372,
-0.2260374129,
-0.1716091037,
0.2357302755,
-0.0438347533,
0.0740853325,
0.066820249,
0.3859926164,
-0.0958541185,
-0.4473042786,
-0.0392019711,
-0.0029860118,
-0.0017701586,
-0.2732463181,
-0.1561685354,
-0.1142283902,
-0.0879567713,
0.2557636499,
-0.0586425327,
0.0983389542,
0.1512338966,
0.2146471292,
0.233931005,
-0.0853133053,
-0.0735772401,
-0.2372512519,
0.4464177191,
-0.2547118366,
0.1061590537,
0.5718846917,
-0.0001092228,
-0.1097545177,
0.5471616983,
-0.0057448018,
-0.1640698761,
-0.3211089075,
-0.2009697109,
-0.3649699688,
0.3099009693,
-0.229834035,
-0.1332615465,
0.0013611008,
-0.2734862268,
-0.0977881625,
0.5416396856,
0.24252671,
0.2468084246,
-0.0707294792,
-0.0329470038,
-0.0735691339,
0.0056160768,
0.0035614872,
-0.1855247766,
0.478014797,
-0.2764461637,
0.0538798608,
-0.0193888433,
0.1980320364,
0.1924997121,
0.2882619798,
0.3047474623,
-0.0374400392,
0.2056658864,
0.1865393817,
0.1254913807,
0.2122560143,
0.2753862739,
-0.3759816587,
-0.3653776348,
0.1167429835,
-0.0383624695,
-0.4420904517,
0.1010576114,
0.0597526729,
0.0617232509,
-0.2433204949,
-0.4172963798,
0.1959597766,
-0.1231978312,
0.1582984924,
-0.0885477215,
0.4110729396,
-0.1813752502,
0.1683812439,
-0.1701654792,
0.0795140713,
0.1006190032,
-0.1356271058,
-0.0568454415,
-0.0334443599,
-0.1606684476,
0.0442762524,
-0.13649638,
-0.1545807272,
0.0622729771,
0.0040409882,
0.2865041792,
0.0556127392,
0.4499134719,
-0.0662461594,
-0.0832189098,
0.1952988654,
0.4034388065,
-0.0914597362,
0.2229095399,
0.2841408551,
0.071210295,
0.0319352485,
0.1968729198,
-0.2307176292,
0.5221298933,
0.1731863767,
-0.0789205506,
-0.2163648307,
-0.3225900829,
0.0125970393,
0.0460243225,
0.0061025093,
0.0650953874,
-0.2966373265,
-0.1263105869,
-0.1950011551,
0.0078040366,
0.1437561363,
-0.2404643446,
-0.0113248723,
-0.2011922598,
0.1084213853,
-0.1019063815,
0.3199010789,
-0.0643684492,
0.1869409233,
0.3779101372,
-0.0284285508,
0.2165045589,
-0.2593050003,
-0.1498461515,
-0.0044139572,
-0.0484352261,
0.0778284892,
-0.1474403143,
0.2168374509,
0.2294590175,
-0.2374286652,
-0.1664120555,
-0.0783711076,
-0.0966553912,
-0.2084737271,
0.1554418355,
0.2021885514,
-0.3552139103,
0.0330937728,
-0.0279509779,
0.1025888696,
0.069177933,
-0.0243304744,
0.0344140492,
-0.2691451609,
-0.2135479152,
-0.0733912662,
0.3713423014,
-0.0000830047,
-0.283785969,
-0.0432694033,
-0.390748471,
0.3113588393,
0.1092253923,
-0.1440791637,
-0.0074118818,
0.0101121385,
-0.1593013257,
-0.4902369082,
0.3831689954,
-0.2884458899,
-0.3212444186,
-0.1635175049,
0.273311466,
0.2212442309,
-0.0917891935,
0.0542546958,
-0.2431735694,
-0.0811819583,
0.3172593117,
-0.0166000742,
0.3480674028,
-0.135561958,
-0.5385569334,
-0.039385017,
0.113052085,
0.0065351962,
0.31920892,
-0.4252250791,
0.1794968545,
0.2294230014,
0.0155096594,
0.1722093225,
0.0421788618,
0.0602996796,
0.0968738049,
-0.4579897225,
0.0290459935,
-0.2238136828,
-0.0304724611,
0.2628813982,
-0.2043275684,
-0.0593311824,
0.1946983039,
-0.0019941845,
-0.5488239527,
-0.0581808835,
-0.0294287521,
-0.1989920735,
0.187966153,
0.1149052009,
-0.0626430213,
-0.0436302535,
0.0775681809,
-0.1338418871,
-0.3600865901,
-0.0965372995,
-0.0805341601,
-0.028455833,
-0.155673787,
-0.1163060144,
0.3951699436,
0.201500833,
0.220981434,
-0.082457535,
-0.2547965944,
0.3142404258,
0.2135629654,
0.0754588246,
0.2158139795,
0.0859910101,
-0.1157250404,
-0.2263936847,
-0.1310669631,
0.3775627613,
0.145883739,
0.1624935567,
-0.1309818029,
0.395277977,
0.3242176175,
0.0939598605,
-0.095420137,
-0.1156598553,
-0.0092395684,
-0.0147523573,
-0.1969422549,
-0.2568128109,
0.151278764,
-0.0860580951,
-0.021663947,
-0.1682964712,
0.2429616749,
-0.1447511762,
0.3565322757,
0.0545581207,
0.2296371162,
0.1990042627,
-0.2496373802,
-0.2357939035,
-0.2128976882,
-0.1627343446,
0.3426094353,
0.0317686647,
0.0964511633,
0.0694161132,
-0.2506143749,
-0.312802285,
0.1340083927,
0.2909136117,
-0.080669567,
0.3633871078,
0.3177280426,
0.0116891209,
-0.1174105033,
0.2528041005,
-0.0544436537,
0.0673095882,
-0.0671746209,
0.2033384293,
-0.2143355012,
0.2841468155,
-0.4203421772,
-0.5077072382,
-0.6033648849,
-0.4780294001,
0.0246390533,
-0.0339773111,
0.2161394209,
0.1809399128,
0.3163753152,
0.1196285561,
0.0307187643,
0.1664608419,
-0.0013495098,
-0.3262859285,
-0.4050017297,
0.1059098467,
-0.0300931185,
-0.0299212299,
0.3423898816,
-0.1375701874,
0.1093680933,
-0.1515024751,
-0.4955453575,
0.0252055582,
-0.0457466356,
0.7252531648,
0.1718581617,
-0.4527872205,
0.037248157,
0.3458480239,
0.1602810472,
-0.3668873012,
0.173502624,
0.2218375355,
-0.2250283211,
-0.2084217966,
-0.0190014802,
-0.2203017324,
0.1442067325,
-0.1351414323,
-0.2315958291,
0.3486269414,
0.0707620829,
0.2468064725,
-0.1577879936,
0.1344597936,
0.1748230755,
0.3467096686,
-0.2913876772,
-0.1006376669,
0.2914350331,
-0.1825646758,
-0.3294290304,
-0.0032993525,
0.1110963747,
0.4584416151,
0.061688859,
-0.2635658085,
-0.6254200935,
-0.0283247251,
-0.0230476502,
-0.0609051213,
-0.1638614833,
0.0816943794,
-0.2560129762,
-0.0483233072,
-0.2598661184,
-0.2592061162,
-0.0988846719,
0.1421608031,
0.3638279438,
-0.130481109,
0.0940264389,
0.1602395326,
0.6323771477,
0.2696517706,
-0.1276917011,
-0.1066972092,
0.1169157773,
0.1045966297,
-0.2340125442,
-0.0122037372,
0.1513127983,
0.0846144781,
0.3354142904,
0.3545046747,
0.1112592295,
0.3003503978,
-0.2106337994,
-0.0865531713,
-0.375759244,
-0.2479577661,
-0.1629182398,
0.021530157,
0.0458200946,
0.2445279658,
0.2455225289,
-0.1743803024,
-0.2071652561,
0.1453406662,
0.4250763357,
-0.1590638906,
0.1113640964,
0.2787347734,
0.0978734121,
-0.2737774551,
0.3948976099,
0.12745592,
0.2267422229,
0.1160899177,
0.0500301719,
0.0698362663,
-0.1368582249,
-0.0488487296,
-0.2523267269,
0.321826458,
0.1352014989,
-0.1423923522,
-0.6760874391,
-0.2181342691,
-0.2263398767,
0.0616552942,
0.2319731712,
0.4251724482,
-0.1331086606,
-0.1836066395,
-0.1844701916,
0.1671068966,
-0.1929727495,
-0.1721215546,
-0.3584487438,
-0.0296943765,
0.1986018866,
-0.1994786114,
-0.2214982063,
0.1997011304,
-0.2016652375,
0.0602729805,
-0.1834779382,
-0.2629286051,
-0.0587268658,
0.050373394,
0.2531850636,
-0.2955343425,
0.203388527,
-0.3119793534,
-0.0680172294,
-0.2577796876,
0.0658242106,
0.3018262684,
-0.1768381894,
-0.0956348702,
-0.1792345196,
0.0770721659,
0.1359241605,
-0.1510067433,
-0.1022669971,
-0.4794324934,
0.2801923752,
0.0283419099,
-0.0896992907,
0.165341258,
0.0140915392,
-0.151524201,
0.0536122955,
0.5751373172,
0.3157075942,
-0.1766790152,
0.2900371552,
-0.0357905403,
-0.3305506706,
-0.136421755,
0.2808997631,
0.6272660494,
0.4066708088,
0.0119326552,
0.0492442325,
-0.2753590941,
0.3018884957,
0.3433156908,
0.1594587862,
-0.4138984084,
-0.2181344926,
0.0412715673,
0.1394531578,
0.0428554118,
-0.3080529273,
0.1133090407,
0.5284907222,
-0.0817252919,
0.1583694071,
-0.0079945754,
0.1465640813,
0.0654190928,
0.146765396,
-0.0621022061,
0.2710241377,
-0.1619925797,
0.2423304021,
-0.0018788683,
0.0690986738,
-0.2022748291,
-0.0296114851,
-0.1416732967,
-0.0009688055,
0.5955711603,
0.0765039399,
0.2002229393,
-0.455108881,
0.0486002713,
-0.1175040975,
0.5312618613,
0.3216863871,
-0.2299817502,
0.263417542,
-0.5472120643,
0.2441687435,
-0.1307069659,
0.1279836148,
-0.0697576553,
-0.118500419,
0.0187034681,
-0.1369008869,
-0.0360005125,
0.0825162679,
-0.0620998554,
-0.1582507044,
0.3788279593,
-0.0411833525,
0.4483366609,
-0.3621810675,
-0.0472272821,
-0.2663274407,
0.2131648958,
-0.2188327461,
0.001445969,
0.2188293785,
0.0948926732,
-0.3635931909,
0.0428369232,
0.4329023063,
-0.0534553602,
0.4348672926,
-0.0092124185,
-0.1788997501,
0.0522657074,
-0.1079750732,
-0.2123861015,
-0.0846215039,
-0.1047984734,
0.0343205221,
-0.112468116,
0.2750742435,
0.213568002,
0.4239362478,
0.2719601095,
-0.183676064,
-0.1555682868,
-0.5252072215,
0.2682494819,
-0.0328944214,
-0.1070638523,
0.0073944256,
-0.186792329,
-0.110393241,
0.1266531497,
0.242027089,
-0.3334038556,
-0.0147570958,
0.0707561523,
0.0505086184,
-0.0600868687,
-0.2526156902,
-0.0834791511,
0.2036732435,
0.0670768991,
0.1873740554,
-0.2901426256,
-0.2291766405,
-0.2893619835,
0.0908683911,
0.1242934242,
0.0077957292,
0.0496294983,
0.2131772488,
-0.1830177456,
-0.2457819283,
-0.1480924338,
0.1141904667,
0.1359607428,
0.3024585247,
-0.0604500957,
0.5086019635,
0.0653213412,
-0.0861151814,
0.0335972793,
0.2548257411,
-0.0884657055,
0.1084715202,
0.187520355,
-0.0298928563,
-0.1848646998,
-0.0308393762,
-0.1448869258,
0.1882308573,
0.2696505189,
0.1290749162,
0.0684607625,
0.1303531826,
0.2986500263,
0.2236772478,
-0.063791357,
-0.444234252,
-0.2394886464,
0.1733604074,
-0.2343719006,
-0.040697705,
-0.2714270949,
0.3211047053,
-0.0014937121,
0.0613794811,
0.1544310153,
-0.1894698888,
-0.1897162944,
-0.0988617912,
0.7578181028,
-0.4481827021,
0.042120181,
-0.140088886,
0.2631902695,
0.046328295,
0.4292224348,
-0.2257144451,
0.2814008296,
0.2795657516,
-0.2038103491,
0.3184911907,
-0.107693918,
0.0860003307,
0.0314965323,
0.1829086691,
0.1649773866,
0.3285511136,
0.2327071428,
-0.0589886755,
-0.009352657,
0.3833881319,
-0.2099048644,
0.0567064211,
-0.4581981897,
-0.1379719228,
0.2848413289,
-0.0877968594,
-0.4621796906,
-0.1289702952,
-0.1818467081,
-0.0258139521,
-0.0887717381,
0.060094215,
0.0153892087,
-0.079116188,
-0.1218387783,
-0.3050367832,
-0.2565440238,
0.3641897738,
0.1647268832,
-0.24048163,
0.2906772196,
0.4325597584,
0.1009298488,
-0.1496160328,
0.0716872662,
0.1619820893,
0.120539248,
-0.252070576,
-0.0765153691,
0.3310956061,
-0.0832405537,
0.1071995646,
0.2756617963,
-0.0569792241,
-0.103544496,
0.3694297969,
0.2167434841,
-0.200802356,
0.2692738175,
0.0051077944,
0.0936139375,
-0.3605012,
0.5348921418,
-0.1433050483,
0.1428112537,
0.0146246105,
0.1432060152,
-0.2738911808,
-0.3752203584,
-0.1137514189,
0.3000073433,
0.2451169789,
-0.0801248401,
0.1131701469,
-0.2373940349,
0.4121420383,
-0.1286602914,
-0.4160780907,
-0.0516933352,
-0.1181038693,
-0.4005630314,
0.2340830564,
0.1683344096,
0.2376131117,
-0.1082194075,
-0.053819336,
-0.3112964034,
0.1834894717,
-0.0009352605,
0.3528428972,
-0.0834819078,
-0.1732330173,
-0.5152146816,
-0.0506462157,
0.0662172139,
-0.5063580871,
0.0115721542,
-0.0732128322,
0.0404267199,
-0.5476980805,
0.141128704,
0.1117799431,
-0.3006657362,
0.5468630791,
0.3646294773,
0.4902891219,
0.2103083581,
0.2337279171,
-0.1005823687,
-0.1806225777,
-0.0830207542,
0.1566405296,
-0.0928490534,
0.5090839267,
-0.4025944769,
0.2690126598,
0.0803936794,
0.0869720206,
-0.082647942,
0.4936471581,
0.0949810073,
-0.2323930562,
-0.0688754618,
-0.1761599928,
-0.1346304119,
-0.0426747762,
-0.0072229067,
0.2450737506,
-0.0961176679,
0.3014336228,
-0.189533323,
-0.3276013732,
0.3208591938,
-0.1526228786,
-0.2464815825,
-0.1314666122,
0.2957195342,
0.0376135297,
-0.0539722778,
-0.2076194733,
0.0782644302,
0.4740901887,
-0.0011416724,
0.2411160916,
0.2820770442,
-0.155720681,
0.0282732807,
-0.018142648,
0.2410158813,
0.251188159,
-0.1877971739,
-0.0099866297,
-0.0490339138
] |
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.1478184015,
-0.2521867454,
-0.0246562567,
0.3410741985,
0.2311813384,
-0.2251470238,
-0.1337347329,
0.237529844,
-0.1029680371,
0.1020670831,
0.0819614753,
0.3635591865,
-0.163041845,
-0.3619387746,
-0.0496548116,
0.0434394479,
-0.0236535575,
-0.3071354032,
-0.1534651071,
-0.0484822355,
-0.0770226568,
0.2145743668,
-0.0249225236,
0.0925160497,
0.161709711,
0.2413863093,
0.1707572937,
-0.0400183648,
-0.1442759335,
-0.2580814064,
0.3748164177,
-0.1964262724,
0.1010535881,
0.5309472084,
-0.0001044121,
-0.129384771,
0.5862190723,
0.0081375381,
-0.1794003248,
-0.3455772698,
-0.2490596324,
-0.3852469027,
0.2880988121,
-0.1919133812,
-0.0959121212,
0.0437682681,
-0.2066356391,
-0.1008440107,
0.5769685507,
0.2530092001,
0.2920750678,
-0.1218493283,
0.0126701491,
-0.0997716561,
0.0463836975,
0.0661911741,
-0.1800989956,
0.4117849767,
-0.238542214,
0.0982187837,
-0.0425276607,
0.2050886303,
0.1938479394,
0.2316542417,
0.2611716986,
-0.0546888076,
0.2156089395,
0.1711400896,
0.0779589862,
0.191200152,
0.3276809156,
-0.3993018866,
-0.3931282461,
0.1359330267,
-0.0082496163,
-0.4920445383,
0.0499256626,
0.0782915503,
0.0225339625,
-0.2119946927,
-0.4008946717,
0.1289479733,
-0.1222579479,
0.1270891875,
-0.0585687608,
0.3907243907,
-0.2248826921,
0.12033654,
-0.1347390264,
0.0584192649,
0.0831417963,
-0.0383948423,
-0.0343862325,
-0.0310811941,
-0.1347252429,
0.0342389792,
-0.1566371769,
-0.1525464803,
0.1690118462,
-0.0029825862,
0.2433558106,
0.1008020788,
0.4526493251,
-0.0251309145,
-0.0411133617,
0.1939605325,
0.4406627715,
-0.1113477871,
0.2504619062,
0.318684727,
0.104417555,
0.0632324591,
0.1617823094,
-0.191685006,
0.5070533752,
0.1325169504,
-0.0137898186,
-0.1788942367,
-0.3429355919,
0.0918601155,
0.0669186264,
0.0081753917,
0.1029942036,
-0.1799637824,
-0.1395752579,
-0.1464833021,
-0.0156324971,
0.0464369431,
-0.1846252829,
-0.0662354231,
-0.2085936069,
0.1549057811,
-0.2039868385,
0.2892299592,
-0.0416442715,
0.1677288711,
0.340067178,
-0.0389065705,
0.2023893297,
-0.2363196015,
-0.1112822592,
0.0133611951,
-0.0415271856,
0.0646545589,
-0.1101487949,
0.1739302725,
0.1842862815,
-0.2790249288,
-0.1020315737,
-0.0391607471,
-0.1144148558,
-0.1948992014,
0.0797411278,
0.2515943646,
-0.3690244853,
0.0499072745,
-0.0140077956,
0.1826041639,
0.0627035573,
-0.0204935856,
0.052719947,
-0.1326207072,
-0.1579741836,
-0.0940806419,
0.3570553064,
0.1114910617,
-0.2813995481,
-0.0093765222,
-0.4308560193,
0.3145482242,
0.1247430146,
-0.2065573931,
0.0224437639,
-0.0567486845,
-0.1615628451,
-0.5349423885,
0.3647165298,
-0.2356967628,
-0.3380418718,
-0.2351223677,
0.203390643,
0.1315128058,
-0.0577309392,
0.0421361774,
-0.2469058186,
-0.0696171448,
0.2785610855,
-0.028637778,
0.2881576121,
-0.1320798099,
-0.53519696,
-0.0517961718,
0.1169948801,
0.0778270364,
0.3018966913,
-0.4567934871,
0.2465071827,
0.2115744501,
-0.0054073427,
0.2137971222,
0.0483120158,
0.0966467485,
0.1147340238,
-0.4557760358,
0.120282121,
-0.2431790531,
-0.0412268341,
0.2640695274,
-0.1666317433,
-0.1202254966,
0.2189390808,
0.0205226634,
-0.5379588008,
0.0368407518,
-0.0812163502,
-0.1820637435,
0.219825834,
0.0613491796,
-0.1401591599,
-0.0993564129,
-0.0055019264,
-0.131366685,
-0.3810176551,
-0.0816134289,
-0.1145739034,
-0.0536090545,
-0.1969023943,
-0.1277427673,
0.3600817025,
0.1595163792,
0.1943794787,
-0.0530176796,
-0.2322899699,
0.3451606631,
0.2800034583,
0.0231146608,
0.223031804,
0.118483685,
-0.0870798975,
-0.2262254804,
-0.1516228616,
0.2881507277,
0.1753280014,
0.1734196991,
-0.2755357325,
0.3950209022,
0.2253572941,
0.0255406052,
-0.1097522974,
-0.0231607016,
0.0361028574,
0.0109120933,
-0.2923179865,
-0.263907522,
0.1407269239,
-0.1132560968,
0.0147086009,
-0.13239263,
0.1913961768,
-0.1522470117,
0.3871748149,
0.0431434028,
0.302033782,
0.2685676217,
-0.217982024,
-0.2699264586,
-0.2127492726,
-0.174930051,
0.2869413197,
0.1010900959,
0.1103070304,
0.0748124272,
-0.1497457474,
-0.2546247244,
0.1458888799,
0.2289118916,
-0.146774292,
0.2909064889,
0.3128200471,
0.0072741034,
-0.1140572578,
0.2003951818,
-0.0769301429,
0.0734622255,
-0.0910371095,
0.1209046766,
-0.1940791458,
0.3012644351,
-0.3821585178,
-0.5017489195,
-0.6062215567,
-0.4944027662,
0.0655421019,
-0.0839283839,
0.2129886895,
0.175766319,
0.3269556463,
0.1595526934,
0.0667394102,
0.2071734071,
-0.0170067716,
-0.3314947784,
-0.2945850492,
0.1425486803,
-0.0802769437,
-0.0440403894,
0.3598218858,
-0.1186936274,
0.1431425959,
-0.1241079867,
-0.470944345,
0.045602493,
0.0082605137,
0.691819787,
0.2361383736,
-0.4747566581,
-0.0206394121,
0.4039646983,
0.1259762496,
-0.3874661922,
0.1384507418,
0.2865401208,
-0.2143692225,
-0.2014358342,
0.0108435238,
-0.1430827975,
0.1117509604,
-0.1348061264,
-0.2115042508,
0.3902830184,
0.0237563532,
0.2410503775,
-0.1284733266,
0.2649897933,
0.1560121775,
0.3295112252,
-0.3026741743,
-0.2036081254,
0.3007969856,
-0.1732980311,
-0.3139925599,
0.0291740559,
0.1207085103,
0.3786696792,
-0.0149593642,
-0.1902527213,
-0.6665781736,
-0.0313940682,
-0.0594149008,
-0.0360876508,
-0.1200878397,
0.116729565,
-0.2164954245,
-0.0864941478,
-0.2213134021,
-0.226139009,
-0.101395987,
0.1149091646,
0.3508442044,
-0.1825340539,
0.0895559713,
0.2299667001,
0.7172641158,
0.2367883921,
-0.1143338606,
-0.1029946581,
0.0696393177,
0.131194979,
-0.2151097506,
-0.0539519265,
0.1754361689,
0.0537296161,
0.2634052038,
0.3654417694,
0.1269431859,
0.3131901324,
-0.2360467166,
-0.1155109853,
-0.3265325129,
-0.195267424,
-0.2356277704,
-0.0070687835,
-0.0504800566,
0.2195651233,
0.2327742726,
-0.0876673833,
-0.20716241,
0.1731902063,
0.4234602153,
-0.1588577479,
0.1027152315,
0.3724783361,
0.1140842289,
-0.3238571584,
0.3314692378,
0.0909412354,
0.186441943,
0.1126781106,
0.0550084896,
-0.0031146093,
-0.1909396648,
-0.0209781714,
-0.2531189322,
0.3101334572,
0.0446420014,
-0.122521244,
-0.5995669961,
-0.1632293761,
-0.2427881062,
0.0216919463,
0.1464220583,
0.3101508617,
-0.0808232501,
-0.1328072995,
-0.1513461471,
0.1208472997,
-0.1552976817,
-0.1163098291,
-0.3726925254,
-0.063183099,
0.1353500336,
-0.1255544871,
-0.1635239422,
0.1212918088,
-0.1136773154,
0.0013405697,
-0.1744624674,
-0.291960001,
-0.0350033902,
0.0306293871,
0.1390450299,
-0.3460539281,
0.1883100867,
-0.2414289713,
-0.0478551015,
-0.2576872408,
0.1025187522,
0.3154454231,
-0.2469964921,
-0.0589598231,
-0.1768933237,
0.1138709038,
0.0974821299,
-0.2113995701,
-0.0929663107,
-0.5180154443,
0.2825883627,
0.009576519,
-0.0902419016,
0.1223737821,
0.0630612001,
-0.1648561656,
0.0411988609,
0.5064483285,
0.2582513988,
-0.1460027546,
0.3888774812,
-0.0166429058,
-0.2525937557,
-0.122988835,
0.3109764457,
0.6403049827,
0.3419136703,
-0.0344646797,
0.0447284989,
-0.2284908891,
0.2664890289,
0.2861851752,
0.1647362262,
-0.41429919,
-0.2808918357,
0.0430981964,
0.1353817433,
0.0765110999,
-0.3224918842,
0.0715384781,
0.4974336922,
-0.1406418234,
0.0987119079,
0.0170095321,
0.1865605861,
0.0775744021,
0.0481403247,
-0.0448861569,
0.2939742208,
-0.192489326,
0.1315662861,
-0.0096638072,
0.1223280132,
-0.072028555,
-0.0076265708,
-0.170551613,
0.058073692,
0.5772727132,
0.0531663038,
0.162895292,
-0.3432333469,
0.0198385287,
-0.0865586475,
0.4654540718,
0.3328099847,
-0.2302961498,
0.2989502847,
-0.5688625574,
0.2628832161,
-0.1434998512,
0.1299235225,
0.0013413308,
-0.0944514424,
0.0707464069,
-0.0955878869,
0.0549441315,
0.1475525647,
-0.0062725679,
-0.1776953638,
0.3491712213,
-0.017259134,
0.4607383907,
-0.3853222132,
-0.1181577221,
-0.2469914407,
0.2481600493,
-0.1255540401,
-0.0896089524,
0.1540971696,
0.1558180302,
-0.3281249702,
0.0292921383,
0.5054627657,
-0.1028212234,
0.4280500412,
-0.0792578086,
-0.1355883181,
0.0373903848,
-0.1363712549,
-0.0528771505,
-0.0011778817,
-0.051526729,
0.0471649878,
-0.1478274763,
0.3012148142,
0.2551986575,
0.4241327643,
0.2505406737,
-0.222853303,
-0.1328349411,
-0.5114206672,
0.2083128244,
-0.0453685038,
-0.0960855633,
-0.0417178012,
-0.1661294699,
-0.1720040739,
0.1735004932,
0.2580815852,
-0.3859463632,
-0.075219512,
0.039849814,
0.0059610885,
-0.0258202311,
-0.2938758731,
-0.1433076411,
0.1278075278,
0.1192669496,
0.1593709737,
-0.2800625265,
-0.2723571062,
-0.2823259532,
0.0656558648,
0.0733792558,
0.0689809248,
0.0012035337,
0.2080418169,
-0.2676582336,
-0.2233205736,
-0.1572524458,
0.1703039557,
0.1034848839,
0.2949129343,
-0.0643937364,
0.4062259197,
0.0453622788,
-0.1708667576,
0.0585311018,
0.2147116214,
-0.0531997941,
0.1193391532,
0.2025173604,
-0.0629890561,
-0.1279333085,
0.0352380946,
-0.0675162748,
0.1731336415,
0.3118725419,
0.0562356487,
0.0884849653,
0.123214595,
0.3532483578,
0.1246331856,
-0.1060488597,
-0.4063401222,
-0.2176298946,
0.2336739302,
-0.2540644109,
-0.1200786307,
-0.2477077991,
0.366158247,
0.0031074947,
0.0788143203,
0.0793548152,
-0.1804215014,
-0.1613419056,
-0.0794910118,
0.7314055562,
-0.4885139167,
0.0216296595,
-0.1493762732,
0.2265654802,
0.0350741893,
0.440523386,
-0.1372163296,
0.3410736024,
0.3740023077,
-0.2450244129,
0.4250044525,
-0.0429956913,
0.2151365727,
0.0139031308,
0.1537511647,
0.2210010141,
0.3062158227,
0.2033816874,
-0.0450343937,
-0.0749169812,
0.3186627328,
-0.1925455779,
0.1538997442,
-0.4080439806,
-0.1106439754,
0.2830380797,
-0.1046668291,
-0.3735602498,
-0.1484469175,
-0.2269963324,
-0.0403975733,
-0.0507252552,
0.0631418228,
0.0036715209,
-0.0868486091,
-0.0783487409,
-0.2781257033,
-0.182688266,
0.3552909493,
0.2407270968,
-0.3074507415,
0.2518777847,
0.3919896185,
0.1222322881,
-0.2010669708,
-0.0159654114,
0.1012652218,
0.1369146258,
-0.3087234795,
-0.0339079872,
0.2608789802,
-0.1441623271,
0.0951403975,
0.2885704339,
-0.0707430914,
-0.081291236,
0.3715007603,
0.2621389925,
-0.2381006181,
0.2789749801,
0.0364155211,
0.0859421343,
-0.3769669235,
0.4557334483,
-0.1082671359,
0.0914919227,
-0.0132457968,
0.1441667378,
-0.295106262,
-0.4457588196,
-0.0430306345,
0.2353133559,
0.1749766171,
-0.1530627012,
0.138368398,
-0.1613851786,
0.3769001365,
-0.1761392653,
-0.3782281876,
-0.0125434296,
-0.0520635694,
-0.4072153866,
0.1669826061,
0.2578725219,
0.2493455857,
-0.0116362534,
-0.055478666,
-0.3329470754,
0.2094546258,
-0.0443081558,
0.4313583374,
-0.1041300073,
-0.151420638,
-0.4020170569,
-0.0338057503,
-0.019172648,
-0.4330520034,
-0.0151405409,
-0.0386176407,
0.0190425776,
-0.5741432309,
0.1770800203,
0.1041549295,
-0.3532290161,
0.5408804417,
0.3004405499,
0.4227414131,
0.176968962,
0.1479735374,
-0.151425004,
-0.0963380337,
-0.1034423113,
0.1070192829,
-0.119401522,
0.4396038949,
-0.3794595301,
0.1813825369,
0.108885102,
0.0769575089,
-0.133625403,
0.4373618662,
0.0923435166,
-0.1658055484,
-0.0845743641,
-0.142127499,
-0.0927537605,
-0.0068177232,
-0.0510413423,
0.1910168678,
-0.0871870369,
0.2374994904,
-0.144552201,
-0.2393934131,
0.3237602115,
-0.1295941621,
-0.2335122675,
-0.1668450981,
0.2707191706,
0.0491226092,
-0.062512666,
-0.2227311432,
0.0414363779,
0.4593603909,
0.0213779137,
0.1399926096,
0.2271163762,
-0.1391267627,
0.0567775816,
-0.0739606246,
0.2057382762,
0.2255969644,
-0.097394906,
0.0037192125,
-0.0437505133
] |
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.0659024119,
-0.2509692609,
0.0296786539,
0.5075558424,
0.4053797722,
0.1719072908,
0.4817780554,
0.1346461475,
-0.3654302061,
-0.1315236092,
-0.1543313265,
0.3956092298,
-0.03830266,
-0.0193487704,
-0.0897326916,
-0.2919965684,
0.2896150351,
-0.0016609463,
-0.2081796378,
-0.2273821384,
-0.0381971486,
0.1582769603,
-0.2841173708,
0.0357566811,
-0.2161127925,
0.0315721408,
-0.0633049309,
-0.1039580032,
0.0063899793,
0.039048288,
0.4256384969,
0.0004015488,
0.2480083257,
0.5711280704,
-0.0001217747,
0.0700062513,
0.1109223366,
0.0230530649,
-0.0054581221,
-0.0247397069,
-0.2727144957,
-0.3866927624,
0.1001270339,
-0.221240893,
0.0955422893,
-0.276201874,
-0.280289948,
-0.456353724,
-0.0949750021,
0.1694532633,
0.1514108479,
0.229154706,
0.0298359394,
0.1134989783,
0.177087456,
0.1690298021,
-0.1362751573,
-0.1136703864,
-0.0572796129,
0.2449533492,
0.4470963478,
-0.0400953889,
-0.1846581101,
-0.1947274357,
0.0227858964,
0.2623609006,
-0.3148838878,
-0.3963646889,
-0.1733083874,
0.1674890518,
0.5260429978,
-0.1522034854,
-0.1825706959,
-0.1398909688,
0.0140495207,
0.1007182971,
0.1467596292,
0.1790627688,
0.1674619764,
-0.0629972294,
0.0019770851,
0.2578361928,
-0.0612739809,
0.2807203829,
-0.2607091367,
-0.0113038113,
-0.1205295548,
0.2740453482,
-0.0921654925,
-0.182049945,
0.1866724193,
-0.265876323,
-0.0710546672,
-0.0162653904,
-0.5050219297,
-0.0840443894,
0.0590059236,
-0.5095169544,
-0.1505639851,
-0.1426673532,
0.1211889908,
0.0527788065,
-0.2076215744,
0.1359153986,
0.2071556449,
0.3062791228,
-0.0643243045,
0.3882652521,
-0.0904149637,
-0.0109211262,
-0.0627335235,
0.1054685935,
-0.0303911362,
-0.3052832782,
0.0818851665,
0.0254362468,
0.3865281045,
-0.0147891762,
-0.3727704883,
0.0108856698,
-0.3847966492,
0.2573921382,
0.0848565921,
-0.1533524096,
-0.388143301,
0.592577517,
0.2986513078,
0.281168431,
0.0565007441,
-0.019884361,
-0.0571241416,
-0.2771325111,
-0.0768729672,
-0.2397637665,
0.0317758657,
-0.1434995383,
-0.2257493436,
0.4488453567,
0.125731051,
0.0125265419,
-0.0595630519,
-0.0809918568,
0.2891120613,
-0.0434470475,
-0.0761661306,
0.2290889621,
0.1811476052,
-0.0985063165,
-0.0362648033,
0.2386940718,
-0.4926405549,
-0.0590332858,
-0.381783247,
0.1135700792,
-0.0164531581,
0.0104641039,
-0.0731906146,
0.1836474389,
0.5666254163,
0.2480070889,
0.070407927,
-0.2878102362,
0.0038005707,
-0.2995418906,
-0.0008176839,
0.0209135655,
-0.218507126,
-0.0127197746,
-0.1650027484,
0.0993296802,
0.4306173027,
0.3159379959,
-0.1027803347,
0.3083856702,
-0.3631750345,
0.0680127665,
0.5011174679,
-0.0826230273,
-0.0558358356,
-0.0620212331,
-0.0076068775,
0.4844592214,
-0.0192017388,
0.0540579855,
-0.0028555039,
0.0904536396,
0.4210164845,
0.2623526454,
0.1196408719,
-0.0385204777,
-0.172673896,
0.0994733423,
0.6978393793,
-0.0961649492,
-0.1197113767,
0.3986999989,
-0.0288008414,
0.026765015,
0.1838663518,
-0.2013194561,
0.0032167214,
0.0487343818,
-0.1022671163,
0.1278574914,
0.1434337646,
0.088553302,
-0.4772810936,
0.0218082275,
-0.1082346141,
0.1001596898,
-0.2013893723,
-0.1823513508,
0.1723071188,
-0.0312149599,
-0.0837008134,
0.2704256177,
0.0632627234,
0.0763835385,
-0.4588812292,
-0.0922056213,
0.1424327344,
0.1000561565,
0.1427496523,
0.0255111549,
-0.4670329392,
0.2207725048,
0.0516190827,
-0.0008801981,
-0.3370991349,
0.1691160053,
0.1627226621,
-0.0121848974,
-0.1386409104,
0.2362541258,
-0.2402528971,
0.0432875529,
-0.1662947536,
0.0633413494,
0.0786364824,
0.0362607166,
-0.1191929206,
0.1988857388,
0.1499746293,
-0.211993888,
0.2961157262,
0.4691087902,
0.2151081413,
0.1262291521,
-0.3541631699,
0.1088888869,
0.036647886,
0.0466695018,
-0.1513889283,
0.0986695886,
0.033231996,
0.1303197742,
-0.1636216193,
0.1962629706,
-0.5942216516,
0.2050191462,
0.4457785487,
-0.0293970667,
0.1831899136,
-0.0318304375,
-0.1152453944,
0.144543916,
0.0400427803,
-0.4003143907,
0.5986569524,
-0.0762853622,
0.1600491405,
-0.0623995848,
0.0319035538,
-0.088436529,
0.1578814834,
0.163477242,
-0.1648809612,
0.2422765046,
0.5488058925,
-0.0258923378,
0.0026319961,
0.2411987633,
-0.0258666035,
-0.0695294291,
-0.4299578071,
0.4089531004,
-0.4493636787,
-0.0130517483,
-0.4337832332,
-0.4268895984,
-0.2325567156,
-0.1914567649,
-0.315169245,
0.083153218,
-0.0308007002,
0.140917331,
0.2315024287,
0.2088590711,
0.4176337421,
-0.335290879,
-0.0116184745,
0.2565826178,
-0.293690443,
-0.0194221474,
0.1011189222,
-0.4746143222,
-0.0927020311,
-0.0140166525,
0.114155829,
-0.2371973991,
-0.3689378798,
-0.0497706085,
-0.2383909225,
0.0373718143,
0.2184630632,
-0.0252508558,
-0.0695570558,
-0.3585177958,
0.0914960057,
0.391030848,
0.0402583256,
0.5428990722,
-0.1206102595,
-0.1459310949,
-0.2737416923,
-0.4142544866,
-0.1589874774,
-0.1897294223,
0.3760150671,
0.0556129292,
0.0255451649,
0.2554224133,
0.1048957109,
-0.1140451729,
0.3653511107,
0.1799468845,
-0.2550261021,
-0.3012896776,
0.5462104678,
-0.0352579914,
-0.2991884053,
-0.1919013411,
-0.1815001667,
0.0864805654,
0.3125524223,
-0.3383073211,
0.2758896947,
-0.2269133031,
0.5231872797,
-0.2641233802,
0.0371499732,
0.0337025262,
0.2198938578,
0.05256759,
-0.1942940354,
0.2089821845,
0.2619978487,
0.168386817,
0.4185815454,
-0.026603274,
-0.0517271906,
0.0500226356,
0.2800495923,
0.0553949773,
-0.5754987001,
0.0552766658,
0.0369588062,
0.2148905694,
-0.1227345392,
-0.5823750496,
-0.0003765809,
-0.2560166717,
0.067706123,
-0.1807640046,
-0.2100425512,
-0.2295660228,
-0.0138646951,
0.4533786774,
0.0392069966,
-0.286644876,
0.1987096071,
-0.2816281319,
0.1523375511,
-0.0028861926,
-0.0913683698,
-0.2553853393,
-0.247919932,
0.1207727492,
0.2488180846,
-0.1429388672,
-0.036686752,
-0.3327064514,
-0.3845034242,
-0.0645513535,
0.3166655898,
0.2268412411,
0.3978821337,
0.2228398174,
-0.1883237064,
-0.1549574286,
0.4459352791,
0.8358086348,
0.1393990219,
-0.3315661252,
0.309725374,
0.1563318223,
-0.3661007583,
-0.4271096289,
-0.219266057,
0.2107051462,
0.2837593555,
0.2501065135,
-0.2852647603,
-0.0509403758,
-0.0448640138,
0.3663126528,
-0.1162714139,
0.055599045,
-0.1983707249,
-0.0186836123,
0.0620129071,
-0.2956489325,
0.002154368,
0.3204759061,
-0.5425034165,
-0.4796468019,
-0.2594846189,
-0.1547109336,
0.1353885829,
-0.1421694458,
0.2919120491,
-0.0179593023,
0.0859130993,
-0.2203521729,
0.2265551537,
0.2167868465,
0.4099764526,
0.2381253093,
-0.6073963046,
0.0864773914,
-0.0816747919,
0.1548353434,
0.1625728607,
-0.37224406,
0.1816204637,
-0.2765264511,
-0.0311319195,
-0.0456785485,
0.4009888768,
0.5867689848,
0.2809728384,
-0.5694265962,
-0.4078260064,
0.2210955322,
0.2447008044,
-0.0408972166,
0.3986698687,
-0.5758920312,
-0.4458217919,
0.015168855,
-0.1313025802,
0.9348546863,
0.2274411619,
0.3354798853,
0.3603383601,
0.2283134609,
0.2585175931,
-0.0876077786,
0.2597100139,
-0.217441678,
-0.2065099925,
-0.1460086405,
-0.3474817872,
0.0850362927,
-0.0712472051,
-0.4455398619,
-0.0835424513,
-0.6744431853,
0.2634075582,
0.0200509634,
-0.196761325,
0.2113197297,
-0.3538208902,
-0.0215711538,
0.0079716397,
-0.1043983847,
0.1108679697,
-0.1389358938,
-0.1853514761,
-0.3907167017,
-0.0414990559,
-0.1276093572,
0.2642029524,
-0.1600133479,
0.4613225758,
0.2610340416,
-0.3412078619,
0.1806780249,
0.3065124154,
0.2656790018,
0.1745450497,
-0.0411951579,
-0.0961857662,
0.1947007328,
0.2346386462,
0.2287784517,
-0.3867946267,
0.3823733032,
0.3281328678,
-0.1535712332,
0.0813626125,
0.130756706,
0.0036410857,
-0.2941783965,
0.1807542741,
0.0310393963,
-0.6678334475,
0.0257423334,
0.1144254431,
0.2623032629,
0.0078851916,
0.0455635116,
0.0326086357,
-0.18807365,
0.1570519358,
-0.0923693776,
-0.1523029953,
-0.0486064777,
0.2529427707,
0.6211351752,
0.1648053974,
0.2510536015,
0.1555797011,
0.016308384,
-0.0108199269,
0.3169968724,
-0.2276740074,
-0.3221344054,
0.2020929307,
-0.3763022721,
-0.1631619632,
-0.3678602874,
0.3481138051,
-0.2231418043,
0.1864340603,
-0.1074505672,
-0.1279441267,
-0.163622871,
-0.0874901563,
0.0984856859,
0.1391126662,
-0.0229635462,
0.4937676787,
0.009623345,
-0.2948607504,
-0.1424332559,
0.0263491478,
-0.0642637089,
0.2000518888,
-0.1198729351,
0.0365072638,
0.1525548398,
-0.1129385456,
0.0352508537,
0.0947508067,
0.1068756357,
-0.1395224929,
-0.209855184,
0.1725346148,
0.159606114,
-0.0051735328,
0.0608733743,
-0.0223292876,
0.0280729104,
-0.1015716419,
0.0722628534,
0.0310427006,
-0.0159950741,
0.1429526061,
-0.1008780822,
0.1879896671,
0.1577154547,
0.0051408205,
-0.0138958888,
-0.0258000381,
0.0863284692,
0.2060131431,
-0.2112693191,
-0.0456976779,
-0.4530455768,
0.1093631163,
0.0555424951,
0.2954214811,
0.28153947,
-0.4541044831,
-0.1130690426,
-0.2473673522,
0.1694394946,
0.3495011926,
-0.3330464363,
-0.135799095,
-0.1574989706,
0.0786972567,
0.0047278916,
-0.2634817362,
-0.1379796863,
0.1281900257,
-0.1968497634,
0.1794258207,
-0.0343558677,
-0.0298033766,
-0.0930819884,
-0.0316710882,
0.1060748771,
0.0081219077,
0.4864070714,
0.235622555,
-0.0351785868,
0.1831524223,
0.275752753,
0.0298429709,
-0.0677542761,
0.2069120407,
0.3799352646,
0.0728013292,
0.4757643938,
-0.1776733249,
0.4583594203,
-0.1887039393,
-0.0897479728,
0.0986290723,
-0.0208554342,
0.3439782858,
0.2496025711,
0.1893981397,
-0.3167263269,
-0.4845969081,
-0.0677668676,
0.0744089782,
-0.3010367155,
0.1076430902,
0.1744671017,
0.0114027923,
0.0174721498,
-0.2452272177,
0.0484875366,
0.0446033552,
0.3473396003,
0.0695021823,
-0.1298010051,
-0.3323863149,
0.2785463035,
0.2137667388,
0.1685859263,
-0.0849741995,
0.0482948981,
0.2870335877,
-0.2116377801,
0.031005295,
0.3284197748,
0.4566878974,
0.3523457944,
-0.0556688495,
-0.0347883292,
0.0796083361,
-0.0909845605,
0.0379794948,
0.2267525792,
0.0310631339,
-0.2312520295,
0.1849547923,
0.0787102357,
-0.0896127224,
0.2247815132,
0.0495845713,
0.2855035365,
-0.5732685924,
0.49747172,
-0.3825765252,
-0.1653485596,
-0.2320639491,
-0.0655601174,
-0.3300943375,
-0.0028858737,
0.7613864541,
0.1631410122,
0.2303947061,
-0.0456024744,
0.0524735004,
0.1485672891,
0.3819587529,
-0.0265990794,
0.1260830015,
-0.0758734494,
0.1160465926,
0.1345691532,
0.3428662121,
0.3775585294,
0.2901946604,
0.0708571374,
0.341329962,
0.0616460368,
0.1583908796,
-0.026249148,
-0.262029618,
0.0305726454,
0.1289075911,
-0.3855932057,
-0.3565680385,
-0.086210154,
-0.1032190621,
0.0023236806,
-0.3629136682,
0.4041661918,
-0.0406729989,
0.0443601795,
-0.1156621203,
-0.2173946798,
0.201663807,
0.2793517411,
0.357732147,
0.3725616634,
0.2503008842,
-0.1102255732,
-0.1550385058,
-0.0887540802,
-0.5083965659,
-0.2221994847,
0.4509868026,
-0.2360428274,
0.1048237607,
-0.2071294636,
0.2530993819,
-0.1397610456,
0.1418415457,
0.424560219,
-0.1707582176,
-0.3980738819,
0.2990468144,
-0.3292230964,
-0.0033925886,
-0.0399657339,
0.503176868,
-0.0017839321,
0.2349111438,
-0.0036320162,
-0.4555344582,
0.4450861812,
-0.3086919188,
-0.4081064761,
0.0040453048,
-0.0593629144,
-0.018500831,
0.1491981149,
-0.5609920025,
-0.3100961149,
0.4338611364,
-0.3143926859,
-0.05310148,
0.0299370959,
-0.0753483623,
0.0506684706,
-0.2577311695,
0.2257413417,
-0.0080872253,
-0.2879450619,
0.4016746581,
-0.2544685006
] |
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.1504654139,
-0.0591698438,
-0.0577094704,
0.2559514344,
0.193053633,
0.0901741609,
0.0821335316,
0.262276113,
-0.2609196305,
-0.0551396161,
0.035831213,
0.1265252233,
0.2174618393,
0.0901991948,
-0.2850413024,
-0.1801928282,
0.1788396388,
0.0559669584,
0.0485581681,
-0.1189004481,
-0.1244953871,
0.1265651584,
-0.3151792884,
0.0769736767,
-0.4671196342,
0.1625411808,
-0.3227908015,
0.0076208813,
-0.0032958894,
-0.3098782897,
-0.0556451119,
0.3040579557,
-0.0451285206,
0.3253478706,
-0.0001139846,
-0.1404049397,
0.0203855485,
-0.0589030497,
-0.1106778905,
-0.1804828644,
-0.1020741388,
-0.5905037522,
-0.0913806185,
-0.2002820224,
0.1462706327,
-0.6070086956,
-0.2705746591,
-0.268705368,
0.2620134652,
-0.1385009289,
0.1597832739,
-0.06761536,
0.1747845262,
-0.1806189418,
-0.1066621989,
0.0965178832,
0.0347622931,
-0.0004103935,
-0.1437835842,
-0.0325335264,
0.4414528906,
0.3706357181,
-0.1782263964,
-0.3017143309,
-0.1555946022,
0.1617708057,
0.006312178,
-0.3817131519,
-0.0536331572,
0.1203864515,
0.3290895522,
-0.3443950415,
-0.3714586198,
-0.4346682727,
0.1693648994,
-0.239382714,
0.0312750079,
-0.0691223964,
0.2867304683,
0.2179715186,
-0.0308872666,
-0.1890500784,
0.0395148247,
0.1386507004,
-0.0608811937,
0.2488589287,
0.0057220152,
0.114491567,
0.1244022474,
-0.5368866324,
0.0223358814,
-0.428355962,
-0.0197522826,
0.0175420679,
-0.5440706611,
-0.0473730713,
0.0594297089,
-0.6148052216,
0.2270136327,
0.1771860123,
-0.0383975394,
0.0237072166,
-0.066814743,
-0.0024819856,
0.2470450848,
0.4188671112,
0.2312258333,
0.2866076827,
-0.0470641516,
-0.2252599448,
-0.2453389317,
-0.0734841302,
-0.1264432967,
-0.2911261618,
0.100044474,
0.0113738412,
0.396143496,
-0.0294774678,
-0.0793905482,
0.1111143529,
-0.3544275463,
-0.1133782119,
0.1028652415,
0.0086838286,
-0.0921810716,
0.6188395023,
-0.1172473952,
0.2566658854,
0.1120011583,
-0.1708728522,
-0.1573577076,
-0.1931794286,
0.0105560673,
0.1908486336,
-0.0092356401,
-0.2236088067,
0.0366122648,
0.2651329041,
-0.0237971824,
-0.1290381849,
0.0272334814,
-0.31013152,
0.0045606191,
0.0218813717,
0.1250577569,
0.0520775691,
0.0854916349,
-0.0011944406,
0.0240500569,
0.0454845093,
-0.5595523119,
-0.1502060294,
-0.37011379,
0.213621974,
0.0852636471,
0.2996404469,
0.0801230147,
0.3027195036,
0.2509582341,
0.0506001189,
-0.1885682344,
-0.087035656,
0.0076496517,
-0.1807179302,
0.0821314454,
0.0898534581,
0.0677426904,
0.0127707627,
0.110384956,
0.1843045652,
0.2871362865,
0.420684278,
-0.1703021973,
0.3344916105,
-0.2040979266,
0.4971633852,
0.5261321664,
-0.0743058994,
-0.1810770929,
0.2042458206,
-0.0661211386,
0.355009526,
0.1406593025,
-0.1781974286,
0.0503421873,
0.0754445195,
0.419470638,
0.1238267645,
0.0369043127,
-0.3195024431,
-0.0728150979,
0.024722591,
0.7286325097,
-0.3416668177,
-0.2831137478,
0.2036884129,
-0.0616785139,
-0.0981443673,
0.169304952,
-0.3445922732,
-0.0586958639,
0.1913805008,
-0.1259773672,
0.1830994189,
0.0787284598,
0.0552578531,
-0.3375194967,
0.0893758014,
-0.0399328172,
-0.2428484708,
-0.1679296494,
-0.2065501511,
0.0221015811,
-0.0164529718,
-0.1647253186,
0.2443643361,
0.1765640825,
0.3324429393,
-0.1891662925,
-0.0546171963,
-0.0573654547,
0.4379688203,
0.0619031973,
0.0928421542,
-0.1567477137,
0.3573679626,
0.052652806,
0.0333256721,
-0.0547469407,
0.1343883872,
0.5898091197,
-0.1381363273,
-0.0987759829,
0.4499069154,
-0.1939736754,
-0.1137823984,
-0.0809098706,
-0.0667268336,
0.1039296463,
0.0040461542,
0.0680110753,
-0.123453632,
-0.0436429866,
-0.1680186689,
0.0705931708,
0.2275554687,
0.2849642336,
0.1425679624,
0.0359219834,
-0.0949878991,
0.1146105528,
-0.1052120179,
-0.1035782248,
-0.4422334135,
0.20892106,
0.0312788337,
-0.2695365548,
0.0007309182,
-0.4664671123,
0.2603228986,
0.3221493661,
0.1330777705,
0.0780859292,
0.0291611645,
0.04049927,
0.0632193089,
0.0192057248,
-0.2066781074,
0.4321275353,
0.1638638228,
-0.0032159528,
0.126004681,
-0.0943153277,
0.0408444852,
0.1824206263,
-0.068308197,
0.0810811818,
0.4733741581,
0.270938009,
0.0947592631,
-0.0473093987,
-0.1575176567,
0.0607749969,
-0.1024568975,
-0.1658177972,
0.128069222,
-0.6087811589,
-0.171529755,
-0.2396759242,
-0.5274432302,
-0.2216401696,
-0.4587312341,
-0.1826675087,
0.0086171711,
-0.1529063582,
0.1723489761,
0.1213837713,
-0.1309144795,
0.1670151651,
0.0995272696,
0.1163857505,
0.1581570953,
-0.0811957121,
-0.0527283959,
-0.1512532234,
-0.057847105,
0.0354971029,
-0.0889790356,
-0.0157378651,
-0.322257489,
-0.2392692268,
0.1334004253,
-0.2884916365,
-0.1630614996,
-0.0221154988,
-0.0977417827,
0.0435419455,
-0.4574149251,
0.391376406,
0.5567983985,
0.0928268582,
0.2175680846,
0.3165221214,
-0.3759051859,
-0.2535749376,
-0.3681759238,
-0.2974681556,
-0.0178924985,
0.1713599712,
-0.2565802038,
0.1625857055,
0.5247505903,
0.0695420951,
-0.2070610821,
0.2132778019,
0.2021142989,
-0.1964459866,
-0.1422772557,
0.3517606556,
-0.2002482563,
0.000250825,
-0.2620693743,
-0.0276879277,
-0.117492646,
0.2562605441,
-0.2546109855,
-0.0034956948,
0.0298262369,
0.076976575,
-0.3703234494,
0.0944285765,
0.0625614524,
0.3755553067,
-0.1497161537,
0.035785228,
-0.1428721547,
0.0463106297,
0.3056419492,
0.4419407248,
-0.1824997067,
-0.0159338061,
-0.1022931561,
-0.0357601531,
0.2336683422,
-0.0100662643,
0.2705741823,
-0.037970189,
0.2105388492,
-0.0199498925,
-0.6065669656,
-0.2009226084,
-0.2038240135,
0.1288239062,
-0.0388549827,
-0.1556241512,
0.2491723746,
0.0688512325,
0.1483340859,
0.0078343078,
-0.1901329309,
-0.0095139295,
-0.1038509011,
0.4142341316,
-0.0300220121,
0.0054810219,
-0.2045525908,
0.2662065923,
0.0557393506,
-0.0655133501,
0.1078741178,
-0.2636255026,
-0.5134298205,
-0.2311083227,
-0.3840078712,
0.3098146021,
0.1988605857,
0.3706656992,
0.1436106563,
0.0540111251,
-0.2669858634,
0.1135598421,
0.7118362188,
-0.1150130033,
-0.3851940036,
0.4801956117,
0.0020543232,
-0.0768464655,
-0.3024660647,
-0.0549161099,
0.2780226171,
0.1245327592,
0.562625587,
-0.1685639024,
-0.1218297407,
0.1117850095,
0.6294496059,
-0.1057714522,
-0.1756474078,
-0.112502031,
-0.0003588783,
-0.32416749,
-0.5116015673,
-0.2100286186,
0.4020391703,
-0.3005680144,
-0.1428623646,
-0.2321522981,
-0.3157803118,
0.3009279668,
0.2026451975,
0.4664096236,
0.1533278227,
0.2751989067,
-0.0724411458,
0.2755639255,
0.3012100756,
0.6378162503,
0.1912373751,
-0.7376351953,
-0.14467749,
-0.0231769402,
0.3582289219,
0.0496109761,
-0.2540139258,
0.4031375647,
-0.4295675755,
0.3281934261,
-0.1531596482,
0.196649909,
0.5844239593,
0.1333209276,
-0.5558376908,
-0.1940575242,
0.165182054,
0.1863949597,
-0.0991587639,
0.2788521647,
-0.4781166017,
-0.3841876388,
0.0734135658,
-0.1341846138,
0.8999788761,
0.2740629315,
-0.1333558261,
-0.0925270915,
0.0792019591,
0.2988038361,
-0.2731705904,
0.1949476302,
-0.0499312282,
-0.239465192,
-0.051480677,
0.0525456332,
0.146861732,
0.0526650175,
-0.7124884129,
0.3619903028,
-0.4484540522,
0.0995696262,
-0.2969275415,
0.2878986895,
0.3922805786,
-0.3144973814,
-0.2345912457,
0.054648608,
0.0462341383,
-0.1462474465,
-0.0337211713,
-0.0758751631,
0.2458812594,
-0.2128925025,
-0.1421935707,
0.2426851243,
-0.3409107924,
0.4390046299,
-0.0448305942,
-0.2151909024,
0.1573583186,
0.0909859613,
0.3253346086,
0.257335037,
0.0987041146,
-0.2113579959,
0.0851861984,
0.0636724979,
-0.3257011473,
-0.3507932723,
0.1022852659,
0.1928031594,
-0.3504639864,
0.1404040456,
0.258725673,
0.0485340394,
-0.2336755544,
0.0428019688,
0.2895256579,
-0.5032478571,
0.2250385582,
0.3453088701,
0.1117796227,
-0.1729832143,
0.1053814217,
0.1110710502,
-0.0358319432,
0.0005476035,
-0.1623956114,
-0.1433451027,
-0.0809886679,
0.2497196048,
0.3761563897,
-0.0039941426,
0.2022250891,
-0.0740250945,
-0.0276714582,
-0.1196448356,
-0.0607407093,
-0.4044419229,
0.0639668852,
0.0911105573,
-0.0903157741,
0.0084970109,
-0.2556840479,
0.2764191926,
0.0067531327,
0.2241263539,
-0.0271066464,
-0.2180060446,
-0.1631313115,
0.0002041858,
0.1853835881,
0.1254903078,
-0.102148205,
0.4127793908,
-0.1707361042,
0.3381389678,
-0.2539670467,
-0.0881403834,
-0.1201727092,
0.1959517151,
-0.1684362441,
-0.0022600342,
-0.1586280912,
-0.0449555777,
0.1960982084,
0.2196850777,
0.068528451,
-0.1981112808,
-0.1344370246,
0.1306733787,
0.1136478409,
-0.1090045199,
-0.1214500964,
-0.1655695736,
0.246725738,
-0.3233592212,
0.10899923,
0.1586365849,
0.1293053329,
0.2555963695,
0.0440427996,
-0.0326794535,
0.0062531582,
0.0737167001,
0.0863088071,
0.2640120387,
0.0799776986,
0.1482906044,
-0.2073286027,
-0.0573071241,
-0.6292611957,
-0.110354051,
0.0366321392,
-0.171938926,
0.1182310656,
-0.1929190308,
-0.1658097059,
-0.0592619963,
0.2319019586,
0.6020117998,
-0.3985375762,
-0.0572809353,
0.1449166387,
0.1897976846,
-0.2437742352,
-0.3710725605,
0.080153361,
0.2015958726,
-0.1089891568,
0.2578124106,
0.2650195062,
0.0011204085,
0.0896899253,
-0.0691617727,
0.0189590082,
0.2882751524,
0.4360208213,
0.2229436636,
0.0661666691,
0.0573679358,
0.0454017073,
0.1606490016,
0.1576926708,
0.1019943058,
0.0290542934,
0.1478940248,
0.3706714809,
0.0537912138,
0.0660662875,
-0.1295978874,
0.0943692327,
0.2220946401,
-0.3501648009,
0.129022494,
-0.1412715167,
0.0181889888,
-0.1675128639,
-0.4559595287,
-0.0761231706,
0.5514984727,
-0.0913943574,
-0.2190891802,
0.3085818887,
-0.0410497338,
-0.1610824615,
-0.1548287719,
0.2097725868,
-0.0945971757,
0.2522942126,
-0.1464564204,
0.0588625781,
-0.2706637084,
0.0842846856,
0.3438918889,
0.3819181621,
-0.3340295553,
0.208465457,
0.5395166874,
0.0179147013,
-0.0434296727,
0.3910595775,
0.6031447649,
0.2915300429,
0.0115458537,
0.0487369485,
-0.1092318892,
-0.0658706874,
0.1837102771,
-0.0105244052,
-0.1284661591,
-0.3860163391,
0.3023034334,
0.1048435345,
-0.1672860086,
0.1264675707,
0.2400975525,
0.0715402141,
-0.4240857363,
0.2296591103,
0.2455329597,
-0.0862915888,
-0.0205460377,
-0.1232278645,
-0.3437092304,
-0.341077894,
0.7281008363,
0.1575153172,
0.1374146789,
0.0866666734,
0.1286888123,
-0.049246151,
0.5275996923,
0.2656452656,
0.0637386739,
-0.2873805761,
-0.2236575484,
-0.1651125103,
0.0836652592,
-0.1968184263,
0.0170671418,
0.2934059203,
0.1322612762,
-0.02373082,
0.2036405355,
0.0310452227,
-0.1009668931,
-0.064798981,
-0.1896103919,
-0.5950567126,
-0.1486580819,
0.0926936865,
-0.0080743656,
0.0550475307,
-0.091895178,
0.4462240636,
-0.164404884,
0.0500477962,
-0.0800514966,
0.1472428292,
0.1145497784,
0.1729750186,
0.6292977929,
0.2540770471,
0.3092816174,
-0.1138433367,
0.1047936827,
0.0906462222,
-0.3408107758,
0.0195527319,
0.2614532709,
0.315395534,
-0.0783051178,
-0.2710303068,
0.2042885125,
-0.1040893793,
0.1056808084,
0.4074397683,
-0.066134125,
-0.1134403646,
0.1953423768,
0.2116319239,
0.0576640889,
-0.0634949431,
0.3801527619,
-0.0141824502,
0.5103455782,
0.1568277478,
-0.5181285143,
0.4936009943,
0.066021882,
-0.4652314186,
-0.116386421,
0.1349995732,
0.1205681413,
0.1267576367,
-0.6108979583,
-0.2417512536,
0.5591219664,
-0.0480039157,
-0.3332655132,
0.1799202114,
0.0029891932,
-0.148344785,
0.095836401,
0.2016952038,
-0.0232242867,
-0.3746022284,
0.1889450848,
-0.053079173
] |
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.2240488231,
0.0735054091,
0.0688554496,
0.1454879045,
0.3467077315,
0.0917348936,
0.1795136631,
0.0385220684,
0.1048626676,
0.0732551441,
0.0714531168,
0.2278850824,
-0.3061069846,
0.1689812988,
-0.0743806288,
-0.0853379145,
-0.0969871208,
0.1296142191,
0.2995479405,
0.1218055338,
-0.1967429966,
0.0373021774,
-0.2146413475,
0.0178642068,
-0.0018434726,
-0.1568493098,
0.2580466568,
0.2388845831,
-0.1288103312,
-0.3902957439,
0.3372129798,
0.0121841896,
0.4855319262,
0.516521275,
-0.0001199634,
0.0070315865,
0.3886611462,
-0.1586245745,
-0.5747520924,
-0.1283359081,
-0.4686378539,
-0.0777677074,
0.0901651084,
-0.0698136911,
0.1049861684,
-0.1720952541,
0.1623416394,
-0.3645294607,
0.2047697306,
0.4541600943,
0.1066825017,
0.2829994559,
0.2462423146,
0.1637063771,
0.1327374578,
0.3512680531,
-0.0302185677,
0.3713254929,
0.0608690307,
0.1510272771,
0.1606027037,
0.1628776044,
-0.1228825673,
0.0393840037,
0.188053593,
-0.1661043167,
-0.2295856178,
-0.427788645,
-0.1103253961,
0.4421196282,
0.514893949,
-0.3407014608,
-0.4609522521,
-0.3798699975,
0.0458853357,
-0.147679925,
0.1311264336,
0.4878360331,
-0.4216930866,
0.3501261175,
-0.0883330256,
-0.3158322871,
-0.3065255284,
0.2305596769,
0.0059050452,
-0.1519112587,
0.0557585023,
0.0611204617,
-0.0835496709,
0.1057097092,
0.2180745006,
-0.3093455136,
-0.039656233,
0.0888880342,
-0.2046970278,
-0.0041703619,
-0.0657843128,
-0.041494634,
0.1965886056,
0.0238622259,
0.3733997643,
0.0567333698,
-0.1529815197,
0.243163839,
0.1901953816,
0.0264552161,
0.0991009846,
0.1258837432,
0.481172204,
0.3951644897,
0.1332431734,
-0.1177559793,
-0.025307335,
0.0886068568,
0.3152232468,
0.2048714608,
0.4681083262,
-0.104964003,
-0.4039191902,
0.0096670268,
-0.6102748513,
0.1056834683,
-0.0229072049,
0.1641358435,
-0.1616205424,
0.2007365674,
0.2162865549,
0.3693432212,
-0.0011648978,
-0.2878368497,
-0.0102985464,
-0.0643673316,
0.1261958033,
0.0260479953,
0.1795366704,
-0.5311357975,
0.0900713876,
0.0939426497,
-0.3286800981,
-0.0527601056,
0.3502982855,
-0.0545802899,
-0.1592951864,
0.3757533729,
0.1402720213,
0.0273190849,
0.1152362376,
-0.1576329172,
-0.0164345074,
0.2604483962,
-0.0598954745,
-0.5316066742,
0.1063526496,
0.1647612751,
-0.0167461876,
-0.0777093172,
-0.5121462941,
0.0411835723,
0.0013844108,
-0.3260015845,
-0.0188463703,
-0.1534199417,
0.3346796036,
-0.2917098403,
0.0453912057,
0.5106771588,
-0.3724923134,
0.0134214535,
-0.448105067,
-0.2220885009,
0.7759042382,
0.1512126774,
-0.2369718701,
0.2332099974,
-0.3799982965,
0.0408191457,
0.4848949909,
-0.035345953,
-0.3184099495,
0.4427753091,
0.0254458394,
0.4210850596,
0.1377784163,
0.2182543576,
-0.0400383398,
-0.1267596185,
-0.02616469,
0.5302298069,
-0.2185990661,
0.0431413166,
-0.2089991719,
-0.3620252311,
0.2253882289,
0.2703533471,
0.0270371418,
0.2280397415,
0.3364056945,
0.0141228428,
0.2515027821,
-0.1984635442,
-0.1834651083,
-0.0087438608,
0.4122571647,
-0.0866531357,
-0.2348507196,
-0.1183792502,
-0.3734785914,
0.2647877932,
0.0439620763,
0.0354766957,
-0.213542074,
-0.3262123466,
-0.102730915,
0.013982106,
-0.2305370569,
0.0171953384,
0.0360648222,
0.3708555698,
-0.3016512692,
0.1690960079,
-0.1053364649,
0.4814931452,
-0.5749642253,
0.2593651116,
-0.1490312815,
0.1025913283,
0.0344821289,
-0.1005371064,
-0.1384552866,
-0.3296217024,
0.0505899936,
-0.031150071,
-0.2466446459,
0.457978487,
0.2499207109,
0.3413886726,
-0.2688514888,
-0.0825610235,
0.077967234,
-0.1975451857,
-0.2278680354,
0.5077197552,
0.1895119846,
-0.0363308601,
-0.0994237736,
0.2132185847,
0.244848758,
0.144068107,
0.0862258077,
0.2130608261,
0.1893788874,
0.2060938925,
-0.1933788508,
0.091015622,
0.1567736268,
-0.1239110604,
-0.0441930629,
-0.2678853273,
-0.7136908174,
-0.2057198435,
0.0648716539,
0.0464329906,
0.4829678833,
0.3096090853,
-0.1382144094,
0.0907325894,
0.2525390089,
0.316916436,
0.4295146763,
0.0733746663,
0.1160978451,
0.0864409208,
0.1807482243,
-0.2610625625,
0.2543886602,
0.2185363173,
-0.2846085727,
0.1634678841,
0.1206300557,
0.1041525751,
-0.2988961637,
-0.1633279026,
-0.0516935848,
0.1894503385,
-0.5312811136,
0.0377001725,
0.0376430899,
-0.1813217103,
-0.3296357691,
-0.3708743751,
-0.1727311164,
-0.1337381899,
-0.1167206019,
0.3897579908,
-0.1965970993,
0.2070074081,
-0.0349070132,
0.2335082442,
-0.0607419163,
-0.4499782324,
-0.0715346038,
0.2172196358,
-0.2908613682,
-0.0184098519,
0.3773889542,
-0.1365683526,
0.4272457957,
-0.2955586016,
0.062129844,
-0.3178845346,
-0.1042979658,
-0.0536004677,
0.2045688033,
0.2286829948,
0.3041535318,
0.4670445621,
0.3198857903,
-0.305057168,
0.0509367995,
-0.0395638272,
-0.0034177247,
0.1977663189,
-0.0418910347,
0.3320868611,
-0.1186346486,
-0.2866615653,
-0.4388070703,
-0.4254136682,
-0.0446363389,
-0.0688896701,
0.1023058295,
0.3437128067,
0.1085461751,
0.1080608815,
0.2089249343,
0.1163056418,
0.0747017488,
-0.1723255813,
0.2136212885,
0.075404048,
-0.1863211542,
0.0957170725,
-0.0790751129,
-0.1870463789,
0.6288797259,
-0.4854287207,
-0.077332601,
-0.2160000652,
0.0934364647,
-0.131448999,
-0.1630550176,
0.1723693311,
0.0485098474,
0.0638698488,
0.0521183349,
-0.0092213498,
-0.1064654887,
0.1419489682,
0.3870233893,
0.1204740927,
0.4440129399,
-0.0056692115,
0.4280275106,
0.1485658586,
0.0279102419,
0.5554195642,
0.0379507765,
0.2381644696,
0.1094083562,
-0.1581959873,
-0.0390725434,
-0.0468435884,
-0.2562385499,
0.071328871,
-0.0349688232,
-0.3694889247,
-0.2737472653,
-0.1336814463,
-0.3286110759,
-0.3432628512,
0.1962979436,
-0.0909454003,
0.3309887052,
0.0070275241,
0.1219301373,
0.0049292673,
-0.1368204504,
-0.0896773562,
0.596214056,
0.2017943114,
0.10435801,
0.1359162927,
-0.0845661014,
-0.2823644578,
0.3272706568,
0.1492861956,
0.6370366812,
-0.0328640789,
-0.1540554017,
-0.0561943762,
0.1589781642,
0.1335157007,
-0.4564896524,
0.0867488086,
-0.1212901697,
0.3060763478,
-0.3691342771,
-0.0652158782,
-0.2730306387,
0.2272702157,
0.252595216,
0.1201701462,
-0.3754138052,
0.1627915651,
-0.10784477,
0.1752260923,
0.0209252872,
-0.2673689723,
-0.2003457248,
-0.2474559844,
-0.2632334828,
0.0795573741,
0.0657883286,
0.0128565356,
-0.1496168226,
-0.1036022156,
-0.279040575,
0.2156240195,
0.2718069553,
-0.022399826,
0.2523843944,
-0.0458870865,
-0.0103790089,
0.0428165942,
0.0614273176,
0.4101090729,
0.5562983155,
-0.0217061322,
-0.6266168356,
-0.0508675091,
0.0560512617,
0.0753830299,
0.3415998518,
-0.2250459641,
-0.00108103,
0.2516184151,
-0.0133127254,
-0.0711946711,
0.4304782152,
0.2217742354,
-0.1622163206,
-0.501306653,
-0.725497067,
0.1947618276,
0.0292816143,
-0.0819612667,
0.384681344,
-0.0087303147,
-0.4788635373,
0.2372296602,
-0.10701821,
0.9966685772,
0.1952316314,
0.0946689099,
0.2934129238,
-0.3080474734,
0.2921260595,
-0.2087789327,
0.0780227035,
-0.1851160824,
-0.043530196,
-0.2048892379,
-0.1267680526,
0.2761891484,
-0.1122848466,
-0.3511960506,
0.3305287957,
-0.3107740283,
0.2130019516,
0.2617628574,
0.3083791435,
-0.5707210302,
-0.2149679214,
-0.329985708,
0.0228233449,
-0.242236197,
0.2241696268,
-0.0468312725,
-0.1632679254,
0.1981519014,
-0.2673218548,
-0.3233048022,
0.0179478619,
-0.4679001868,
-0.0139511395,
-0.3990940154,
-0.3702673316,
0.3562410176,
0.4006221592,
0.0616327524,
0.0464913361,
-0.2373073548,
0.0984614119,
-0.0071980469,
0.1846894324,
0.217057392,
-0.0641304106,
0.2954821587,
0.0699849948,
-0.0635705888,
0.1846474409,
-0.2823320627,
-0.1665864438,
-0.006238807,
-0.1703845263,
0.1936398149,
-0.1883355379,
-0.1869477183,
-0.3215477765,
-0.1350564212,
-0.0895298123,
0.0798921585,
-0.0824365839,
-0.0284024719,
0.17659311,
-0.1195742637,
-0.189898923,
-0.2120894045,
0.3894801438,
-0.1033364683,
0.2676965296,
0.4218556285,
-0.0047928402,
-0.0913330317,
-0.1607122272,
0.2487595677,
-0.0593643412,
-0.2879114449,
-0.0581789277,
-0.1485290378,
0.1245779097,
-0.0560329035,
0.1912634671,
0.2498515099,
-0.143152386,
-0.1989725828,
-0.5332927108,
-0.2473438978,
-0.0458373651,
0.1644610316,
0.2406933159,
-0.1021321639,
0.0534519665,
0.038598828,
-0.3022891283,
-0.2069284469,
0.0686589554,
-0.0765222162,
-0.0498196147,
-0.029495528,
0.3428829014,
0.4114541113,
-0.1261540502,
0.0110748624,
0.0795663148,
-0.0242401715,
-0.0527443923,
-0.0257126577,
0.2072196752,
0.0961387753,
-0.0974364057,
-0.056055285,
-0.4067096412,
-0.0844238698,
-0.0434157997,
0.0589238741,
-0.0078554973,
-0.1694695354,
0.1477720588,
0.1635255963,
0.335544616,
-0.4046206176,
0.2251182497,
-0.4388323724,
0.1751461327,
0.0661598891,
0.1257624924,
0.004738051,
-0.0282683894,
0.0239322688,
0.0112660453,
0.3392138481,
0.1978639513,
0.2448913902,
-0.4220344126,
0.0937910751,
0.0007046773,
0.3157904744,
0.436006397,
-0.3139345646,
-0.0677890331,
0.1305148751,
0.1659675092,
-0.172185421,
0.0850876421,
0.0192725193,
-0.0723218247,
-0.0239331778,
0.2342981249,
-0.0105339708,
-0.0923531055,
-0.351210326,
0.1030643284,
0.4362009168,
0.2195510566,
0.1078604758,
0.3562318683,
-0.0963432044,
0.107260704,
-0.1042819172,
0.1574420929,
0.1261451244,
0.0263399165,
-0.2918268144,
0.0915236548,
0.0716544241,
-0.0933476761,
-0.0582973659,
-0.5852044225,
0.0327855125,
0.4007572532,
-0.1421842128,
0.078968592,
0.2735988498,
0.3897937834,
-0.3853033483,
-0.0443265066,
-0.3138196468,
-0.3281127214,
-0.0007674703,
0.2605976462,
-0.1108108684,
-0.1875740737,
0.0702335909,
-0.211680457,
0.056419719,
0.0578411631,
-0.2524811327,
0.0885447413,
-0.033149723,
-0.5446571112,
-0.1316632181,
0.2515081763,
0.2410064936,
-0.4297248721,
-0.041051928,
0.2998058498,
-0.0518037304,
0.1709397733,
0.1605735123,
0.4806590676,
0.2976825535,
-0.037479572,
0.1335156262,
-0.0354831256,
0.0498828292,
0.0439476296,
0.049181655,
0.0891284719,
0.1928108037,
0.2950776219,
0.1464642435,
-0.1442901343,
0.1522217691,
-0.0911776796,
0.0842921287,
-0.4881494641,
0.3297730684,
-0.1628800333,
0.0371095501,
-0.2197921276,
-0.2133106291,
-0.1095034257,
0.0350302495,
0.4889461994,
0.0746517479,
0.0925179124,
0.0753412694,
0.0058634724,
-0.0019574843,
0.2779945433,
0.4232473075,
0.0432399809,
-0.2326323986,
-0.1502411067,
-0.6847051978,
0.0838005766,
-0.0381993763,
-0.1071624681,
0.2841877639,
0.0338022187,
-0.0358229466,
0.2476685494,
-0.1277785152,
0.3261436522,
-0.2290100455,
0.2403311133,
-0.1857779026,
-0.5727883577,
0.0407370403,
-0.1749349833,
-0.2027567476,
-0.4563085139,
0.2727906704,
-0.2935861349,
0.0265792552,
-0.0100463685,
0.0213190168,
0.209841013,
0.2045658976,
0.5075957179,
0.1037400514,
0.3434555531,
-0.0579450689,
-0.3387697041,
0.1108121052,
-0.0523349382,
-0.2122104913,
0.0282862987,
-0.1680825353,
0.5850577354,
-0.1310549229,
0.1079024151,
-0.502410233,
0.4316815138,
0.2228955179,
-0.1745651066,
-0.4910796285,
0.1436590254,
-0.2482075095,
0.1482341588,
-0.0705924928,
0.0483024083,
-0.0161170568,
0.1445304602,
-0.2441432625,
-0.4462406933,
0.5733365417,
-0.1650538146,
-0.0774962753,
0.062133573,
0.2239474803,
0.065413624,
0.1732180268,
-0.4505608082,
0.1712158918,
0.3813615441,
-0.2176903933,
-0.0624277741,
-0.0639496818,
-0.0404644422,
0.3741624057,
0.0852380916,
0.0944981948,
-0.0947519913,
-0.1604731381,
0.1903836131,
-0.1142487973
] |
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.3042272031,
-0.0985632092,
0.0078415042,
0.5131354928,
0.3285455704,
-0.0576421581,
0.5201522708,
0.2553009391,
0.1991575807,
0.1681089848,
-0.4604777694,
-0.0910486281,
-0.2877758145,
-0.2970744371,
0.4347795844,
0.0320018455,
-0.0251879897,
-0.0349553004,
0.1119612306,
0.0084388042,
-0.2257291228,
0.2362412214,
-0.2453140765,
0.0727760121,
-0.4190008342,
-0.0549565069,
0.0889208987,
0.4892742932,
-0.0719759017,
-0.6296031475,
0.4604726434,
0.0143893473,
0.2181517482,
0.4235019386,
-0.0001091994,
0.1441849768,
0.418992579,
-0.0192657523,
-0.2884245813,
-0.3601104319,
0.0940839499,
-0.5144337416,
0.1233331636,
-0.2608025372,
-0.4063474238,
0.0236192178,
0.1217368618,
-0.2709336877,
0.4901704192,
0.4886862636,
0.2884907126,
0.1309139729,
-0.0160082299,
-0.3164567649,
0.4296734631,
0.0675482973,
-0.161294952,
0.2777443528,
0.3432971239,
-0.0043072822,
-0.0363362916,
0.0306215398,
-0.0457585864,
-0.1231165603,
0.3901320994,
0.0024615703,
-0.125672996,
-0.2126003355,
0.1296327412,
0.4381468892,
0.2064512521,
-0.2134827524,
-0.2328185588,
-0.1929796934,
0.0738779604,
-0.181978792,
0.1654341221,
0.0319195911,
-0.1912626326,
0.0741784424,
-0.0262065437,
-0.0630681589,
-0.1722616255,
0.1423974186,
-0.1104407161,
0.1547159702,
-0.1506495029,
0.0314561166,
-0.1483334601,
-0.0989769027,
-0.2203026414,
0.1539326757,
-0.0331301205,
0.2842572331,
-0.3529804647,
0.1692640483,
0.0968756601,
0.3016740382,
0.2464148998,
0.346801132,
-0.0859937891,
-0.0112308981,
-0.0313665122,
0.1054863036,
0.0539563335,
0.1550133526,
0.3106100261,
0.1709687412,
0.2803750038,
0.4544362426,
-0.0940066054,
0.0249503013,
-0.2067871094,
-0.1653556228,
0.0443976447,
0.0359360054,
0.327930212,
-0.233940199,
-0.4098481834,
0.1534152776,
0.2209212184,
0.0887864754,
0.2583983839,
0.4830322862,
-0.2361517251,
-0.0013514152,
-0.0064405231,
0.025530532,
-0.1511358619,
-0.1756567061,
-0.339207232,
0.1940045506,
-0.0808146447,
0.012704419,
0.3254750669,
-0.1232189164,
0.3092910647,
-0.1528523266,
-0.0015988443,
-0.1232206821,
-0.1105272323,
-0.1869744658,
-0.0999147817,
0.2051268965,
-0.0700343922,
0.0878423899,
0.1172280982,
-0.3199291527,
-0.2411323488,
-0.1124534681,
-0.1270278692,
-0.3474448323,
-0.0937900543,
0.2281979471,
-0.2979830503,
0.1321427375,
-0.0671057627,
0.0436786115,
0.0764682367,
-0.2537536919,
-0.1240769997,
-0.1402088553,
-0.4273742139,
-0.3767174482,
0.6006535292,
0.6969181895,
-0.2007524073,
-0.1508893073,
-0.5498251915,
-0.3447905183,
0.105987139,
0.375048548,
-0.2740000188,
0.1505954564,
-0.2850111723,
0.3159658313,
0.3138705194,
-0.4321831465,
-0.4340070486,
0.2631570697,
-0.2292089015,
0.4060311317,
-0.0842329562,
0.0858282298,
0.1212188303,
-0.1092526466,
0.3998245895,
0.4777020812,
0.0203808378,
-0.1821039915,
-0.258133769,
-0.1423351616,
0.1062365398,
0.1785900444,
0.2633875906,
0.0787663832,
0.1548191458,
0.0659916699,
0.2326672822,
0.2080253214,
0.0624011457,
0.1595211774,
0.2724163532,
0.2057396024,
0.0333996192,
-0.4820545316,
-0.6707290411,
0.4395001531,
-0.1612326056,
-0.0476554856,
-0.1690656841,
-0.1581421345,
-0.4199803174,
0.029883381,
-0.0987406522,
-0.2591837645,
0.1797642708,
0.2151270509,
0.2117395103,
0.0778773949,
-0.2501817048,
0.5149944425,
0.0565138347,
0.0629971549,
-0.3822928965,
0.1305712014,
-0.1241282672,
-0.1103751585,
-0.11856509,
0.3505547643,
0.2312970012,
-0.1851249337,
0.0676197633,
0.5000378489,
0.0044358959,
-0.1740283519,
-0.0906506851,
-0.4309685528,
0.0396164842,
-0.1043563411,
0.1348259002,
0.2153397202,
0.107561484,
-0.0511245504,
0.1082190797,
0.3727986515,
0.0354980789,
0.2296619862,
0.0288257338,
-0.0013954189,
0.1831603348,
0.0764851794,
0.1574744433,
-0.2301815897,
0.4892825484,
0.2627513111,
0.1726309061,
0.2077907771,
-0.2014016956,
-0.0117081087,
0.0858466774,
-0.0487292521,
0.0544365011,
0.2945663929,
-0.1510489285,
-0.0472729467,
0.0568790697,
0.3697468936,
0.3691947758,
0.1709933728,
-0.0261740442,
0.096514754,
-0.0314381123,
-0.0691686347,
0.1280414313,
0.0516600013,
0.0810700059,
0.2116550058,
0.0695572346,
0.1970313042,
-0.2670100331,
-0.2561357617,
-0.0517691225,
0.3250852525,
-0.393222481,
0.1741221547,
-0.2071427256,
-0.1251391917,
-0.0495264009,
0.0053798435,
-0.4605346918,
-0.0769574717,
0.0503376871,
0.110679239,
0.2267701477,
0.183350116,
-0.1267201751,
0.1852056533,
-0.3189342618,
0.057020314,
-0.2792580128,
0.000334233,
-0.3292351663,
0.0763942003,
0.3980512619,
-0.0389909968,
0.3228535354,
-0.2194562405,
-0.2569383383,
-0.1921417117,
-0.046326559,
-0.1839066893,
0.0817928091,
0.6579142809,
0.1881101131,
0.2480802685,
-0.0574076176,
-0.1280138344,
0.3673249483,
-0.3022806346,
-0.1845696121,
0.0297332108,
-0.1068389118,
0.0871497244,
-0.1282042265,
-0.3432553113,
-0.6057451963,
-0.4530198872,
0.309640944,
0.1487501711,
0.1859292388,
0.3676006198,
-0.1163643152,
0.0920387283,
-0.0485565402,
0.2006090432,
-0.1484299749,
-0.274638474,
0.2829446197,
-0.4200583994,
-0.3737154603,
-0.1102968007,
0.0587630086,
0.035479214,
0.0825504735,
-0.4535486996,
0.3604622781,
-0.1324117184,
0.0797711983,
-0.1327622086,
-0.0603401363,
0.0686465725,
-0.1221246719,
-0.0532961972,
0.0417382866,
-0.1169573292,
0.0133846505,
-0.2853539884,
0.0561637618,
-0.0636483133,
0.3072239459,
-0.0019498593,
0.4964496493,
0.058083225,
-0.1058205292,
0.2891735733,
-0.0874312893,
0.4604646862,
-0.1876949668,
-0.4373457134,
0.2259437889,
0.0792098194,
0.102100201,
0.1729522198,
0.0360882096,
-0.0474606156,
-0.1986846775,
-0.1381452531,
-0.171809271,
-0.1961097866,
0.1420128644,
-0.1423949748,
-0.0142823411,
0.0818401426,
0.0758623853,
-0.140420109,
-0.2760423124,
-0.1373603046,
0.2724564672,
0.1131137088,
0.15117459,
-0.3932624161,
0.1020023376,
-0.3729325831,
0.3129015267,
0.0480136834,
0.2415393442,
-0.1663655043,
-0.0114004686,
0.1493564546,
-0.0688034296,
0.5504931808,
-0.151531443,
0.2541806102,
0.3367011249,
0.1286226958,
-0.7504610419,
-0.0662805066,
0.0233679377,
0.3294961154,
0.2464182675,
0.4543982744,
-0.2505263686,
-0.1369054019,
0.2337846905,
0.2959226072,
-0.1432937831,
-0.2281202674,
-0.2188385874,
-0.1805829108,
-0.2202906907,
-0.1829198301,
-0.018292468,
0.2696569264,
-0.0675441697,
-0.0292057004,
-0.1527410001,
0.13802284,
0.1742381752,
-0.1038871109,
0.3798678219,
-0.0627670214,
0.3176009953,
0.1641200334,
0.1555964798,
0.0896449164,
0.3713906407,
-0.1347899139,
-0.1864741296,
-0.0433622263,
0.3078994453,
-0.0182064921,
0.2944725454,
-0.1834385097,
0.0559393913,
0.2339202762,
0.0878414884,
-0.0088505298,
0.1489187479,
0.1992046088,
-0.1655573398,
-0.1703933477,
-0.3570539355,
0.4624354541,
0.183601439,
0.1630533189,
0.0863770321,
0.1469565183,
-0.1434807032,
0.060928259,
-0.0672206804,
0.8010354638,
-0.1922799349,
0.2192891389,
0.0859914944,
-0.0177426133,
0.7876714468,
-0.2983112633,
0.0326752923,
-0.478846997,
-0.1975042522,
0.0700774267,
-0.0545483269,
0.0387885794,
0.1448955685,
-0.09474691,
0.1931798011,
-0.2254080325,
-0.1533670872,
-0.0042770267,
0.1144785285,
0.0007140811,
-0.1973515451,
-0.1570113301,
0.1364554465,
-0.1990410089,
0.2564730644,
-0.0531497262,
0.167950213,
-0.1742461026,
-0.15749681,
-0.3562299907,
0.0992632657,
-0.2688148916,
0.4265546501,
0.3584544957,
-0.4234372973,
0.0714092106,
0.2643076181,
0.089821063,
0.1571879387,
-0.1224653721,
0.2339868695,
-0.0381044932,
-0.1398678124,
0.1586796939,
0.080012098,
0.4458076954,
-0.0480822138,
-0.2589701414,
-0.0948806852,
-0.1892415583,
-0.1625115871,
0.0411388949,
0.1250683963,
-0.0068886857,
-0.1418987066,
-0.2220692933,
-0.1977452636,
0.2485520691,
-0.2718151808,
0.1637998819,
0.3282659054,
-0.2938080132,
-0.0524129719,
-0.0341584794,
-0.1917767525,
0.0028739953,
0.4908806682,
0.0114549389,
-0.0632133558,
0.2723679543,
0.2820209563,
-0.1826472878,
-0.1906582117,
-0.0402477868,
0.335108459,
-0.4386788011,
0.0629255995,
0.0017517607,
0.1089848876,
-0.0831962004,
0.0866385475,
0.1854894757,
-0.3316167593,
-0.04971461,
-0.5123909712,
-0.4241814613,
0.0617064461,
-0.1854269058,
0.0927668065,
0.1852400601,
-0.09049052,
-0.0750618652,
0.1424363256,
-0.3271410465,
0.16791448,
-0.4357076883,
0.0970704108,
0.0867011696,
-0.0913311094,
0.0261142943,
0.0056107454,
0.2133779228,
0.1586076915,
-0.1716595143,
-0.2343905121,
-0.2015680671,
0.1274098456,
-0.1638600975,
0.0023353677,
0.0150649315,
0.0391617231,
-0.1514985859,
-0.2010218352,
0.1095063463,
0.1515682787,
0.0297770668,
-0.0893436074,
-0.1283658445,
0.0794051066,
-0.2303029299,
0.2807924449,
-0.0297162738,
0.0850754082,
0.0738380104,
0.1805204004,
-0.0865612477,
-0.0737274587,
-0.2952451706,
-0.0313280001,
-0.0808858052,
0.1275687218,
0.2736896276,
-0.2907217443,
-0.1748834252,
0.271910131,
0.2462236285,
0.395080924,
-0.1202236637,
0.1272374243,
0.2753771544,
0.1972284317,
-0.3205421567,
-0.1585116982,
0.2482055873,
-0.1605395079,
0.0703759119,
0.2588650584,
-0.0053535663,
-0.1616199166,
0.0416752547,
0.109561488,
0.3554961085,
-0.1286275238,
0.1150353849,
-0.1055822968,
-0.003898252,
-0.1538095623,
0.0662344024,
0.0418538116,
0.2328318655,
0.7362143993,
-0.1257957816,
0.1040982082,
-0.4056331515,
0.1632435173,
-0.0487118736,
-0.6907132864,
0.1636541784,
0.375107199,
-0.200418219,
0.0376649424,
-0.2002522647,
0.435937345,
-0.4588372111,
-0.030442182,
-0.1829076856,
0.1219525784,
-0.2052730024,
-0.0144394785,
0.1458820701,
-0.1242273152,
-0.2728483081,
-0.0481207222,
-0.0287610646,
-0.1988631487,
0.3789031208,
0.1070110798,
-0.263030529,
-0.2015578449,
0.1357065439,
0.1699093878,
0.2180937678,
-0.3574671447,
0.2478872091,
-0.0779870376,
-0.0820786357,
0.1299029589,
0.1735709161,
0.5013977885,
0.2809213698,
0.0707978234,
0.2174233049,
0.0229815971,
-0.1285044551,
-0.2220835239,
0.2500050366,
0.0155390613,
0.339538753,
0.20718427,
0.1622638255,
-0.143785283,
-0.083573617,
0.1611058712,
0.2301978469,
-0.2240372449,
0.5022640228,
-0.3898712397,
-0.2849796712,
-0.2181778103,
0.1364946663,
-0.5349043608,
0.0649263337,
0.0866797119,
0.1992293596,
0.2909303606,
-0.2516125441,
0.1108489558,
-0.0459299423,
0.3562532663,
0.1658024788,
0.0648050755,
-0.2455943674,
-0.2477180511,
-0.7577751875,
0.246513918,
-0.0787993744,
-0.0816407576,
0.1872540116,
0.1978060007,
-0.2379468828,
-0.0519824326,
-0.0008515855,
0.0256334674,
0.3602198958,
0.1129863262,
-0.3824450374,
-0.13873294,
0.0782744288,
-0.0492963046,
0.0544913933,
-0.3725679517,
0.1263584644,
-0.507992506,
0.0351008773,
0.0988068432,
-0.1641854495,
0.1969135702,
0.0705330297,
0.4982849956,
-0.0376920104,
0.3045736551,
0.0173748657,
-0.1567619741,
-0.6732807755,
-0.0673639774,
-0.1394058913,
0.3545387089,
0.1344242543,
0.340439111,
-0.2917601764,
-0.0594924241,
-0.2812423706,
0.2554523647,
0.14459984,
0.0735234916,
-0.0078479163,
0.0126824845,
-0.1204615086,
0.1674372554,
0.2154099196,
0.0834822357,
-0.012750091,
-0.043704778,
-0.3620734215,
-0.4809340537,
0.721598506,
-0.0405095294,
-0.1685137898,
-0.2162559181,
0.4100281596,
0.1613395363,
-0.2120658904,
-0.3983772099,
0.1647354662,
0.5024664402,
0.1383817345,
-0.2245300114,
0.0906324685,
-0.2353202254,
-0.0083674556,
-0.095178932,
0.03950518,
-0.0266615786,
-0.1184292063,
0.3332894742,
-0.1559800059
] |
https://github.com/huggingface/datasets/issues/2746 | Cannot load `few-nerd` dataset | Hello, @Mehrad0711; Hi, @albertvillanova !
I am the maintainer of the `dfki/few-nerd" dataset script, sorry for the very late reply and hope this message finds you well!
We should use
```
dataset = load_dataset("dfki-nlp/few-nerd", name="supervised")
```
instead of not specifying the "name" argument, where name is from `["supervised", "inter", "intra"]`. Otherwise the method just treats "supervised" as `split`, which we reserve after specifying the name, since for each name, there are three splits: train, dev and test.
Also we use Tsinghua server source to download data files since it is the official source referred in the paper where the dataset is released (even though it is cc-by-sa-4.0 licensed, means we can copy the data anywhere after mentioning the license
). Sometimes the server just runs down due to high pressure, kinda weird (we encountered the same server problem serveral times a month when we conducted experiments on Few-NERD XD). I tried the script just now and it works perfectly!
```
>> dataset
DatasetDict({
train: Dataset({
features: ['id', 'tokens', 'ner_tags', 'fine_ner_tags'],
num_rows: 131767
})
validation: Dataset({
features: ['id', 'tokens', 'ner_tags', 'fine_ner_tags'],
num_rows: 18824
})
test: Dataset({
features: ['id', 'tokens', 'ner_tags', 'fine_ner_tags'],
num_rows: 37648
})
})
>>> dataset["train"]
Dataset({
features: ['id', 'tokens', 'ner_tags', 'fine_ner_tags'],
num_rows: 131767
})
>>> dataset["train"][0]
{'id': '0', 'tokens': ['Paul', 'International', 'airport', '.'], 'ner_tags': [0, 0, 0, 0], 'fine_ner_tags': [0, 0, 0, 0]}
```
Anyways if you cannot stand the pain with the server and its slow download speed, you can also download the `dfki/few-nerd.py` script from HF and change the `_URLs` to your personal drive (after you once successfully download the data and upload to your cloud drive), and then load the .py script locally.
Hope this reply can still be any help. If you still have problems with it, feel free to ask here and I am glad to help!
Best wishes. | ## 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
| 305 | 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
Hello, @Mehrad0711; Hi, @albertvillanova !
I am the maintainer of the `dfki/few-nerd" dataset script, sorry for the very late reply and hope this message finds you well!
We should use
```
dataset = load_dataset("dfki-nlp/few-nerd", name="supervised")
```
instead of not specifying the "name" argument, where name is from `["supervised", "inter", "intra"]`. Otherwise the method just treats "supervised" as `split`, which we reserve after specifying the name, since for each name, there are three splits: train, dev and test.
Also we use Tsinghua server source to download data files since it is the official source referred in the paper where the dataset is released (even though it is cc-by-sa-4.0 licensed, means we can copy the data anywhere after mentioning the license
). Sometimes the server just runs down due to high pressure, kinda weird (we encountered the same server problem serveral times a month when we conducted experiments on Few-NERD XD). I tried the script just now and it works perfectly!
```
>> dataset
DatasetDict({
train: Dataset({
features: ['id', 'tokens', 'ner_tags', 'fine_ner_tags'],
num_rows: 131767
})
validation: Dataset({
features: ['id', 'tokens', 'ner_tags', 'fine_ner_tags'],
num_rows: 18824
})
test: Dataset({
features: ['id', 'tokens', 'ner_tags', 'fine_ner_tags'],
num_rows: 37648
})
})
>>> dataset["train"]
Dataset({
features: ['id', 'tokens', 'ner_tags', 'fine_ner_tags'],
num_rows: 131767
})
>>> dataset["train"][0]
{'id': '0', 'tokens': ['Paul', 'International', 'airport', '.'], 'ner_tags': [0, 0, 0, 0], 'fine_ner_tags': [0, 0, 0, 0]}
```
Anyways if you cannot stand the pain with the server and its slow download speed, you can also download the `dfki/few-nerd.py` script from HF and change the `_URLs` to your personal drive (after you once successfully download the data and upload to your cloud drive), and then load the .py script locally.
Hope this reply can still be any help. If you still have problems with it, feel free to ask here and I am glad to help!
Best wishes. | [
-0.3042272031,
-0.0985632092,
0.0078415042,
0.5131354928,
0.3285455704,
-0.0576421581,
0.5201522708,
0.2553009391,
0.1991575807,
0.1681089848,
-0.4604777694,
-0.0910486281,
-0.2877758145,
-0.2970744371,
0.4347795844,
0.0320018455,
-0.0251879897,
-0.0349553004,
0.1119612306,
0.0084388042,
-0.2257291228,
0.2362412214,
-0.2453140765,
0.0727760121,
-0.4190008342,
-0.0549565069,
0.0889208987,
0.4892742932,
-0.0719759017,
-0.6296031475,
0.4604726434,
0.0143893473,
0.2181517482,
0.4235019386,
-0.0001091994,
0.1441849768,
0.418992579,
-0.0192657523,
-0.2884245813,
-0.3601104319,
0.0940839499,
-0.5144337416,
0.1233331636,
-0.2608025372,
-0.4063474238,
0.0236192178,
0.1217368618,
-0.2709336877,
0.4901704192,
0.4886862636,
0.2884907126,
0.1309139729,
-0.0160082299,
-0.3164567649,
0.4296734631,
0.0675482973,
-0.161294952,
0.2777443528,
0.3432971239,
-0.0043072822,
-0.0363362916,
0.0306215398,
-0.0457585864,
-0.1231165603,
0.3901320994,
0.0024615703,
-0.125672996,
-0.2126003355,
0.1296327412,
0.4381468892,
0.2064512521,
-0.2134827524,
-0.2328185588,
-0.1929796934,
0.0738779604,
-0.181978792,
0.1654341221,
0.0319195911,
-0.1912626326,
0.0741784424,
-0.0262065437,
-0.0630681589,
-0.1722616255,
0.1423974186,
-0.1104407161,
0.1547159702,
-0.1506495029,
0.0314561166,
-0.1483334601,
-0.0989769027,
-0.2203026414,
0.1539326757,
-0.0331301205,
0.2842572331,
-0.3529804647,
0.1692640483,
0.0968756601,
0.3016740382,
0.2464148998,
0.346801132,
-0.0859937891,
-0.0112308981,
-0.0313665122,
0.1054863036,
0.0539563335,
0.1550133526,
0.3106100261,
0.1709687412,
0.2803750038,
0.4544362426,
-0.0940066054,
0.0249503013,
-0.2067871094,
-0.1653556228,
0.0443976447,
0.0359360054,
0.327930212,
-0.233940199,
-0.4098481834,
0.1534152776,
0.2209212184,
0.0887864754,
0.2583983839,
0.4830322862,
-0.2361517251,
-0.0013514152,
-0.0064405231,
0.025530532,
-0.1511358619,
-0.1756567061,
-0.339207232,
0.1940045506,
-0.0808146447,
0.012704419,
0.3254750669,
-0.1232189164,
0.3092910647,
-0.1528523266,
-0.0015988443,
-0.1232206821,
-0.1105272323,
-0.1869744658,
-0.0999147817,
0.2051268965,
-0.0700343922,
0.0878423899,
0.1172280982,
-0.3199291527,
-0.2411323488,
-0.1124534681,
-0.1270278692,
-0.3474448323,
-0.0937900543,
0.2281979471,
-0.2979830503,
0.1321427375,
-0.0671057627,
0.0436786115,
0.0764682367,
-0.2537536919,
-0.1240769997,
-0.1402088553,
-0.4273742139,
-0.3767174482,
0.6006535292,
0.6969181895,
-0.2007524073,
-0.1508893073,
-0.5498251915,
-0.3447905183,
0.105987139,
0.375048548,
-0.2740000188,
0.1505954564,
-0.2850111723,
0.3159658313,
0.3138705194,
-0.4321831465,
-0.4340070486,
0.2631570697,
-0.2292089015,
0.4060311317,
-0.0842329562,
0.0858282298,
0.1212188303,
-0.1092526466,
0.3998245895,
0.4777020812,
0.0203808378,
-0.1821039915,
-0.258133769,
-0.1423351616,
0.1062365398,
0.1785900444,
0.2633875906,
0.0787663832,
0.1548191458,
0.0659916699,
0.2326672822,
0.2080253214,
0.0624011457,
0.1595211774,
0.2724163532,
0.2057396024,
0.0333996192,
-0.4820545316,
-0.6707290411,
0.4395001531,
-0.1612326056,
-0.0476554856,
-0.1690656841,
-0.1581421345,
-0.4199803174,
0.029883381,
-0.0987406522,
-0.2591837645,
0.1797642708,
0.2151270509,
0.2117395103,
0.0778773949,
-0.2501817048,
0.5149944425,
0.0565138347,
0.0629971549,
-0.3822928965,
0.1305712014,
-0.1241282672,
-0.1103751585,
-0.11856509,
0.3505547643,
0.2312970012,
-0.1851249337,
0.0676197633,
0.5000378489,
0.0044358959,
-0.1740283519,
-0.0906506851,
-0.4309685528,
0.0396164842,
-0.1043563411,
0.1348259002,
0.2153397202,
0.107561484,
-0.0511245504,
0.1082190797,
0.3727986515,
0.0354980789,
0.2296619862,
0.0288257338,
-0.0013954189,
0.1831603348,
0.0764851794,
0.1574744433,
-0.2301815897,
0.4892825484,
0.2627513111,
0.1726309061,
0.2077907771,
-0.2014016956,
-0.0117081087,
0.0858466774,
-0.0487292521,
0.0544365011,
0.2945663929,
-0.1510489285,
-0.0472729467,
0.0568790697,
0.3697468936,
0.3691947758,
0.1709933728,
-0.0261740442,
0.096514754,
-0.0314381123,
-0.0691686347,
0.1280414313,
0.0516600013,
0.0810700059,
0.2116550058,
0.0695572346,
0.1970313042,
-0.2670100331,
-0.2561357617,
-0.0517691225,
0.3250852525,
-0.393222481,
0.1741221547,
-0.2071427256,
-0.1251391917,
-0.0495264009,
0.0053798435,
-0.4605346918,
-0.0769574717,
0.0503376871,
0.110679239,
0.2267701477,
0.183350116,
-0.1267201751,
0.1852056533,
-0.3189342618,
0.057020314,
-0.2792580128,
0.000334233,
-0.3292351663,
0.0763942003,
0.3980512619,
-0.0389909968,
0.3228535354,
-0.2194562405,
-0.2569383383,
-0.1921417117,
-0.046326559,
-0.1839066893,
0.0817928091,
0.6579142809,
0.1881101131,
0.2480802685,
-0.0574076176,
-0.1280138344,
0.3673249483,
-0.3022806346,
-0.1845696121,
0.0297332108,
-0.1068389118,
0.0871497244,
-0.1282042265,
-0.3432553113,
-0.6057451963,
-0.4530198872,
0.309640944,
0.1487501711,
0.1859292388,
0.3676006198,
-0.1163643152,
0.0920387283,
-0.0485565402,
0.2006090432,
-0.1484299749,
-0.274638474,
0.2829446197,
-0.4200583994,
-0.3737154603,
-0.1102968007,
0.0587630086,
0.035479214,
0.0825504735,
-0.4535486996,
0.3604622781,
-0.1324117184,
0.0797711983,
-0.1327622086,
-0.0603401363,
0.0686465725,
-0.1221246719,
-0.0532961972,
0.0417382866,
-0.1169573292,
0.0133846505,
-0.2853539884,
0.0561637618,
-0.0636483133,
0.3072239459,
-0.0019498593,
0.4964496493,
0.058083225,
-0.1058205292,
0.2891735733,
-0.0874312893,
0.4604646862,
-0.1876949668,
-0.4373457134,
0.2259437889,
0.0792098194,
0.102100201,
0.1729522198,
0.0360882096,
-0.0474606156,
-0.1986846775,
-0.1381452531,
-0.171809271,
-0.1961097866,
0.1420128644,
-0.1423949748,
-0.0142823411,
0.0818401426,
0.0758623853,
-0.140420109,
-0.2760423124,
-0.1373603046,
0.2724564672,
0.1131137088,
0.15117459,
-0.3932624161,
0.1020023376,
-0.3729325831,
0.3129015267,
0.0480136834,
0.2415393442,
-0.1663655043,
-0.0114004686,
0.1493564546,
-0.0688034296,
0.5504931808,
-0.151531443,
0.2541806102,
0.3367011249,
0.1286226958,
-0.7504610419,
-0.0662805066,
0.0233679377,
0.3294961154,
0.2464182675,
0.4543982744,
-0.2505263686,
-0.1369054019,
0.2337846905,
0.2959226072,
-0.1432937831,
-0.2281202674,
-0.2188385874,
-0.1805829108,
-0.2202906907,
-0.1829198301,
-0.018292468,
0.2696569264,
-0.0675441697,
-0.0292057004,
-0.1527410001,
0.13802284,
0.1742381752,
-0.1038871109,
0.3798678219,
-0.0627670214,
0.3176009953,
0.1641200334,
0.1555964798,
0.0896449164,
0.3713906407,
-0.1347899139,
-0.1864741296,
-0.0433622263,
0.3078994453,
-0.0182064921,
0.2944725454,
-0.1834385097,
0.0559393913,
0.2339202762,
0.0878414884,
-0.0088505298,
0.1489187479,
0.1992046088,
-0.1655573398,
-0.1703933477,
-0.3570539355,
0.4624354541,
0.183601439,
0.1630533189,
0.0863770321,
0.1469565183,
-0.1434807032,
0.060928259,
-0.0672206804,
0.8010354638,
-0.1922799349,
0.2192891389,
0.0859914944,
-0.0177426133,
0.7876714468,
-0.2983112633,
0.0326752923,
-0.478846997,
-0.1975042522,
0.0700774267,
-0.0545483269,
0.0387885794,
0.1448955685,
-0.09474691,
0.1931798011,
-0.2254080325,
-0.1533670872,
-0.0042770267,
0.1144785285,
0.0007140811,
-0.1973515451,
-0.1570113301,
0.1364554465,
-0.1990410089,
0.2564730644,
-0.0531497262,
0.167950213,
-0.1742461026,
-0.15749681,
-0.3562299907,
0.0992632657,
-0.2688148916,
0.4265546501,
0.3584544957,
-0.4234372973,
0.0714092106,
0.2643076181,
0.089821063,
0.1571879387,
-0.1224653721,
0.2339868695,
-0.0381044932,
-0.1398678124,
0.1586796939,
0.080012098,
0.4458076954,
-0.0480822138,
-0.2589701414,
-0.0948806852,
-0.1892415583,
-0.1625115871,
0.0411388949,
0.1250683963,
-0.0068886857,
-0.1418987066,
-0.2220692933,
-0.1977452636,
0.2485520691,
-0.2718151808,
0.1637998819,
0.3282659054,
-0.2938080132,
-0.0524129719,
-0.0341584794,
-0.1917767525,
0.0028739953,
0.4908806682,
0.0114549389,
-0.0632133558,
0.2723679543,
0.2820209563,
-0.1826472878,
-0.1906582117,
-0.0402477868,
0.335108459,
-0.4386788011,
0.0629255995,
0.0017517607,
0.1089848876,
-0.0831962004,
0.0866385475,
0.1854894757,
-0.3316167593,
-0.04971461,
-0.5123909712,
-0.4241814613,
0.0617064461,
-0.1854269058,
0.0927668065,
0.1852400601,
-0.09049052,
-0.0750618652,
0.1424363256,
-0.3271410465,
0.16791448,
-0.4357076883,
0.0970704108,
0.0867011696,
-0.0913311094,
0.0261142943,
0.0056107454,
0.2133779228,
0.1586076915,
-0.1716595143,
-0.2343905121,
-0.2015680671,
0.1274098456,
-0.1638600975,
0.0023353677,
0.0150649315,
0.0391617231,
-0.1514985859,
-0.2010218352,
0.1095063463,
0.1515682787,
0.0297770668,
-0.0893436074,
-0.1283658445,
0.0794051066,
-0.2303029299,
0.2807924449,
-0.0297162738,
0.0850754082,
0.0738380104,
0.1805204004,
-0.0865612477,
-0.0737274587,
-0.2952451706,
-0.0313280001,
-0.0808858052,
0.1275687218,
0.2736896276,
-0.2907217443,
-0.1748834252,
0.271910131,
0.2462236285,
0.395080924,
-0.1202236637,
0.1272374243,
0.2753771544,
0.1972284317,
-0.3205421567,
-0.1585116982,
0.2482055873,
-0.1605395079,
0.0703759119,
0.2588650584,
-0.0053535663,
-0.1616199166,
0.0416752547,
0.109561488,
0.3554961085,
-0.1286275238,
0.1150353849,
-0.1055822968,
-0.003898252,
-0.1538095623,
0.0662344024,
0.0418538116,
0.2328318655,
0.7362143993,
-0.1257957816,
0.1040982082,
-0.4056331515,
0.1632435173,
-0.0487118736,
-0.6907132864,
0.1636541784,
0.375107199,
-0.200418219,
0.0376649424,
-0.2002522647,
0.435937345,
-0.4588372111,
-0.030442182,
-0.1829076856,
0.1219525784,
-0.2052730024,
-0.0144394785,
0.1458820701,
-0.1242273152,
-0.2728483081,
-0.0481207222,
-0.0287610646,
-0.1988631487,
0.3789031208,
0.1070110798,
-0.263030529,
-0.2015578449,
0.1357065439,
0.1699093878,
0.2180937678,
-0.3574671447,
0.2478872091,
-0.0779870376,
-0.0820786357,
0.1299029589,
0.1735709161,
0.5013977885,
0.2809213698,
0.0707978234,
0.2174233049,
0.0229815971,
-0.1285044551,
-0.2220835239,
0.2500050366,
0.0155390613,
0.339538753,
0.20718427,
0.1622638255,
-0.143785283,
-0.083573617,
0.1611058712,
0.2301978469,
-0.2240372449,
0.5022640228,
-0.3898712397,
-0.2849796712,
-0.2181778103,
0.1364946663,
-0.5349043608,
0.0649263337,
0.0866797119,
0.1992293596,
0.2909303606,
-0.2516125441,
0.1108489558,
-0.0459299423,
0.3562532663,
0.1658024788,
0.0648050755,
-0.2455943674,
-0.2477180511,
-0.7577751875,
0.246513918,
-0.0787993744,
-0.0816407576,
0.1872540116,
0.1978060007,
-0.2379468828,
-0.0519824326,
-0.0008515855,
0.0256334674,
0.3602198958,
0.1129863262,
-0.3824450374,
-0.13873294,
0.0782744288,
-0.0492963046,
0.0544913933,
-0.3725679517,
0.1263584644,
-0.507992506,
0.0351008773,
0.0988068432,
-0.1641854495,
0.1969135702,
0.0705330297,
0.4982849956,
-0.0376920104,
0.3045736551,
0.0173748657,
-0.1567619741,
-0.6732807755,
-0.0673639774,
-0.1394058913,
0.3545387089,
0.1344242543,
0.340439111,
-0.2917601764,
-0.0594924241,
-0.2812423706,
0.2554523647,
0.14459984,
0.0735234916,
-0.0078479163,
0.0126824845,
-0.1204615086,
0.1674372554,
0.2154099196,
0.0834822357,
-0.012750091,
-0.043704778,
-0.3620734215,
-0.4809340537,
0.721598506,
-0.0405095294,
-0.1685137898,
-0.2162559181,
0.4100281596,
0.1613395363,
-0.2120658904,
-0.3983772099,
0.1647354662,
0.5024664402,
0.1383817345,
-0.2245300114,
0.0906324685,
-0.2353202254,
-0.0083674556,
-0.095178932,
0.03950518,
-0.0266615786,
-0.1184292063,
0.3332894742,
-0.1559800059
] |
https://github.com/huggingface/datasets/issues/2746 | Cannot load `few-nerd` dataset | Hi @chen-yuxuan, thanks for your answer.
Just a few comments:
- Please, note that as we use `datasets.load_dataset` implementation, we can pass the configuration name as the second positional argument (no need to pass explicitly `name=`) and it downloads the 3 splits:
```python
In [4]: ds = load_dataset("dfki-nlp/few-nerd", "supervised")
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 11.5k/11.5k [00:00<00:00, 2.85MB/s]
Downloading and preparing dataset few_nerd/supervised to .cache\huggingface\datasets\dfki-nlp___few_nerd\supervised\0.0.0\e40882b71f037a4a1f232025899170fbe8113cd2f4a26dddd2add7222a077255...
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6M/14.6M [01:16<00:00, 190kB/s]
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 11.9M/11.9M [01:14<00:00, 160kB/s]
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 12.0M/12.0M [01:04<00:00, 186kB/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [03:58<00:00, 79.45s/it]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 3.11it/s]
```
- On the other hand, please note that your script does not work on Windows machines, because you call `open()` without passing the encoding parameter:
```
~\.cache\huggingface\modules\datasets_modules\datasets\dfki-nlp___few-nerd\e40882b71f037a4a1f232025899170fbe8113cd2f4a26dddd2add7222a077255\few-nerd.py in <genexpr>(.0)
276 assert filepath[-4:] == ".txt"
277
--> 278 num_lines = sum(1 for _ in open(filepath))
279 id = 0
280
.venv\lib\encodings\cp1252.py in decode(self, input, final)
21 class IncrementalDecoder(codecs.IncrementalDecoder):
22 def decode(self, input, final=False):
---> 23 return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
25 class StreamWriter(Codec,codecs.StreamWriter):
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 5238: character maps to <undefined>
```
If you would like your script to be usable on Windows machines, you should pass `encoding="utf-8"` to every `open()` function:
- line 278: `num_lines = sum(1 for _ in open(filepath, encoding="utf-8"))`
- line 281: `with open(filepath, "r", encoding="utf-8")` | ## 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
| 208 | 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 @chen-yuxuan, thanks for your answer.
Just a few comments:
- Please, note that as we use `datasets.load_dataset` implementation, we can pass the configuration name as the second positional argument (no need to pass explicitly `name=`) and it downloads the 3 splits:
```python
In [4]: ds = load_dataset("dfki-nlp/few-nerd", "supervised")
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 11.5k/11.5k [00:00<00:00, 2.85MB/s]
Downloading and preparing dataset few_nerd/supervised to .cache\huggingface\datasets\dfki-nlp___few_nerd\supervised\0.0.0\e40882b71f037a4a1f232025899170fbe8113cd2f4a26dddd2add7222a077255...
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6M/14.6M [01:16<00:00, 190kB/s]
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 11.9M/11.9M [01:14<00:00, 160kB/s]
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 12.0M/12.0M [01:04<00:00, 186kB/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [03:58<00:00, 79.45s/it]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 3.11it/s]
```
- On the other hand, please note that your script does not work on Windows machines, because you call `open()` without passing the encoding parameter:
```
~\.cache\huggingface\modules\datasets_modules\datasets\dfki-nlp___few-nerd\e40882b71f037a4a1f232025899170fbe8113cd2f4a26dddd2add7222a077255\few-nerd.py in <genexpr>(.0)
276 assert filepath[-4:] == ".txt"
277
--> 278 num_lines = sum(1 for _ in open(filepath))
279 id = 0
280
.venv\lib\encodings\cp1252.py in decode(self, input, final)
21 class IncrementalDecoder(codecs.IncrementalDecoder):
22 def decode(self, input, final=False):
---> 23 return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
25 class StreamWriter(Codec,codecs.StreamWriter):
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 5238: character maps to <undefined>
```
If you would like your script to be usable on Windows machines, you should pass `encoding="utf-8"` to every `open()` function:
- line 278: `num_lines = sum(1 for _ in open(filepath, encoding="utf-8"))`
- line 281: `with open(filepath, "r", encoding="utf-8")` | [
-0.3042272031,
-0.0985632092,
0.0078415042,
0.5131354928,
0.3285455704,
-0.0576421581,
0.5201522708,
0.2553009391,
0.1991575807,
0.1681089848,
-0.4604777694,
-0.0910486281,
-0.2877758145,
-0.2970744371,
0.4347795844,
0.0320018455,
-0.0251879897,
-0.0349553004,
0.1119612306,
0.0084388042,
-0.2257291228,
0.2362412214,
-0.2453140765,
0.0727760121,
-0.4190008342,
-0.0549565069,
0.0889208987,
0.4892742932,
-0.0719759017,
-0.6296031475,
0.4604726434,
0.0143893473,
0.2181517482,
0.4235019386,
-0.0001091994,
0.1441849768,
0.418992579,
-0.0192657523,
-0.2884245813,
-0.3601104319,
0.0940839499,
-0.5144337416,
0.1233331636,
-0.2608025372,
-0.4063474238,
0.0236192178,
0.1217368618,
-0.2709336877,
0.4901704192,
0.4886862636,
0.2884907126,
0.1309139729,
-0.0160082299,
-0.3164567649,
0.4296734631,
0.0675482973,
-0.161294952,
0.2777443528,
0.3432971239,
-0.0043072822,
-0.0363362916,
0.0306215398,
-0.0457585864,
-0.1231165603,
0.3901320994,
0.0024615703,
-0.125672996,
-0.2126003355,
0.1296327412,
0.4381468892,
0.2064512521,
-0.2134827524,
-0.2328185588,
-0.1929796934,
0.0738779604,
-0.181978792,
0.1654341221,
0.0319195911,
-0.1912626326,
0.0741784424,
-0.0262065437,
-0.0630681589,
-0.1722616255,
0.1423974186,
-0.1104407161,
0.1547159702,
-0.1506495029,
0.0314561166,
-0.1483334601,
-0.0989769027,
-0.2203026414,
0.1539326757,
-0.0331301205,
0.2842572331,
-0.3529804647,
0.1692640483,
0.0968756601,
0.3016740382,
0.2464148998,
0.346801132,
-0.0859937891,
-0.0112308981,
-0.0313665122,
0.1054863036,
0.0539563335,
0.1550133526,
0.3106100261,
0.1709687412,
0.2803750038,
0.4544362426,
-0.0940066054,
0.0249503013,
-0.2067871094,
-0.1653556228,
0.0443976447,
0.0359360054,
0.327930212,
-0.233940199,
-0.4098481834,
0.1534152776,
0.2209212184,
0.0887864754,
0.2583983839,
0.4830322862,
-0.2361517251,
-0.0013514152,
-0.0064405231,
0.025530532,
-0.1511358619,
-0.1756567061,
-0.339207232,
0.1940045506,
-0.0808146447,
0.012704419,
0.3254750669,
-0.1232189164,
0.3092910647,
-0.1528523266,
-0.0015988443,
-0.1232206821,
-0.1105272323,
-0.1869744658,
-0.0999147817,
0.2051268965,
-0.0700343922,
0.0878423899,
0.1172280982,
-0.3199291527,
-0.2411323488,
-0.1124534681,
-0.1270278692,
-0.3474448323,
-0.0937900543,
0.2281979471,
-0.2979830503,
0.1321427375,
-0.0671057627,
0.0436786115,
0.0764682367,
-0.2537536919,
-0.1240769997,
-0.1402088553,
-0.4273742139,
-0.3767174482,
0.6006535292,
0.6969181895,
-0.2007524073,
-0.1508893073,
-0.5498251915,
-0.3447905183,
0.105987139,
0.375048548,
-0.2740000188,
0.1505954564,
-0.2850111723,
0.3159658313,
0.3138705194,
-0.4321831465,
-0.4340070486,
0.2631570697,
-0.2292089015,
0.4060311317,
-0.0842329562,
0.0858282298,
0.1212188303,
-0.1092526466,
0.3998245895,
0.4777020812,
0.0203808378,
-0.1821039915,
-0.258133769,
-0.1423351616,
0.1062365398,
0.1785900444,
0.2633875906,
0.0787663832,
0.1548191458,
0.0659916699,
0.2326672822,
0.2080253214,
0.0624011457,
0.1595211774,
0.2724163532,
0.2057396024,
0.0333996192,
-0.4820545316,
-0.6707290411,
0.4395001531,
-0.1612326056,
-0.0476554856,
-0.1690656841,
-0.1581421345,
-0.4199803174,
0.029883381,
-0.0987406522,
-0.2591837645,
0.1797642708,
0.2151270509,
0.2117395103,
0.0778773949,
-0.2501817048,
0.5149944425,
0.0565138347,
0.0629971549,
-0.3822928965,
0.1305712014,
-0.1241282672,
-0.1103751585,
-0.11856509,
0.3505547643,
0.2312970012,
-0.1851249337,
0.0676197633,
0.5000378489,
0.0044358959,
-0.1740283519,
-0.0906506851,
-0.4309685528,
0.0396164842,
-0.1043563411,
0.1348259002,
0.2153397202,
0.107561484,
-0.0511245504,
0.1082190797,
0.3727986515,
0.0354980789,
0.2296619862,
0.0288257338,
-0.0013954189,
0.1831603348,
0.0764851794,
0.1574744433,
-0.2301815897,
0.4892825484,
0.2627513111,
0.1726309061,
0.2077907771,
-0.2014016956,
-0.0117081087,
0.0858466774,
-0.0487292521,
0.0544365011,
0.2945663929,
-0.1510489285,
-0.0472729467,
0.0568790697,
0.3697468936,
0.3691947758,
0.1709933728,
-0.0261740442,
0.096514754,
-0.0314381123,
-0.0691686347,
0.1280414313,
0.0516600013,
0.0810700059,
0.2116550058,
0.0695572346,
0.1970313042,
-0.2670100331,
-0.2561357617,
-0.0517691225,
0.3250852525,
-0.393222481,
0.1741221547,
-0.2071427256,
-0.1251391917,
-0.0495264009,
0.0053798435,
-0.4605346918,
-0.0769574717,
0.0503376871,
0.110679239,
0.2267701477,
0.183350116,
-0.1267201751,
0.1852056533,
-0.3189342618,
0.057020314,
-0.2792580128,
0.000334233,
-0.3292351663,
0.0763942003,
0.3980512619,
-0.0389909968,
0.3228535354,
-0.2194562405,
-0.2569383383,
-0.1921417117,
-0.046326559,
-0.1839066893,
0.0817928091,
0.6579142809,
0.1881101131,
0.2480802685,
-0.0574076176,
-0.1280138344,
0.3673249483,
-0.3022806346,
-0.1845696121,
0.0297332108,
-0.1068389118,
0.0871497244,
-0.1282042265,
-0.3432553113,
-0.6057451963,
-0.4530198872,
0.309640944,
0.1487501711,
0.1859292388,
0.3676006198,
-0.1163643152,
0.0920387283,
-0.0485565402,
0.2006090432,
-0.1484299749,
-0.274638474,
0.2829446197,
-0.4200583994,
-0.3737154603,
-0.1102968007,
0.0587630086,
0.035479214,
0.0825504735,
-0.4535486996,
0.3604622781,
-0.1324117184,
0.0797711983,
-0.1327622086,
-0.0603401363,
0.0686465725,
-0.1221246719,
-0.0532961972,
0.0417382866,
-0.1169573292,
0.0133846505,
-0.2853539884,
0.0561637618,
-0.0636483133,
0.3072239459,
-0.0019498593,
0.4964496493,
0.058083225,
-0.1058205292,
0.2891735733,
-0.0874312893,
0.4604646862,
-0.1876949668,
-0.4373457134,
0.2259437889,
0.0792098194,
0.102100201,
0.1729522198,
0.0360882096,
-0.0474606156,
-0.1986846775,
-0.1381452531,
-0.171809271,
-0.1961097866,
0.1420128644,
-0.1423949748,
-0.0142823411,
0.0818401426,
0.0758623853,
-0.140420109,
-0.2760423124,
-0.1373603046,
0.2724564672,
0.1131137088,
0.15117459,
-0.3932624161,
0.1020023376,
-0.3729325831,
0.3129015267,
0.0480136834,
0.2415393442,
-0.1663655043,
-0.0114004686,
0.1493564546,
-0.0688034296,
0.5504931808,
-0.151531443,
0.2541806102,
0.3367011249,
0.1286226958,
-0.7504610419,
-0.0662805066,
0.0233679377,
0.3294961154,
0.2464182675,
0.4543982744,
-0.2505263686,
-0.1369054019,
0.2337846905,
0.2959226072,
-0.1432937831,
-0.2281202674,
-0.2188385874,
-0.1805829108,
-0.2202906907,
-0.1829198301,
-0.018292468,
0.2696569264,
-0.0675441697,
-0.0292057004,
-0.1527410001,
0.13802284,
0.1742381752,
-0.1038871109,
0.3798678219,
-0.0627670214,
0.3176009953,
0.1641200334,
0.1555964798,
0.0896449164,
0.3713906407,
-0.1347899139,
-0.1864741296,
-0.0433622263,
0.3078994453,
-0.0182064921,
0.2944725454,
-0.1834385097,
0.0559393913,
0.2339202762,
0.0878414884,
-0.0088505298,
0.1489187479,
0.1992046088,
-0.1655573398,
-0.1703933477,
-0.3570539355,
0.4624354541,
0.183601439,
0.1630533189,
0.0863770321,
0.1469565183,
-0.1434807032,
0.060928259,
-0.0672206804,
0.8010354638,
-0.1922799349,
0.2192891389,
0.0859914944,
-0.0177426133,
0.7876714468,
-0.2983112633,
0.0326752923,
-0.478846997,
-0.1975042522,
0.0700774267,
-0.0545483269,
0.0387885794,
0.1448955685,
-0.09474691,
0.1931798011,
-0.2254080325,
-0.1533670872,
-0.0042770267,
0.1144785285,
0.0007140811,
-0.1973515451,
-0.1570113301,
0.1364554465,
-0.1990410089,
0.2564730644,
-0.0531497262,
0.167950213,
-0.1742461026,
-0.15749681,
-0.3562299907,
0.0992632657,
-0.2688148916,
0.4265546501,
0.3584544957,
-0.4234372973,
0.0714092106,
0.2643076181,
0.089821063,
0.1571879387,
-0.1224653721,
0.2339868695,
-0.0381044932,
-0.1398678124,
0.1586796939,
0.080012098,
0.4458076954,
-0.0480822138,
-0.2589701414,
-0.0948806852,
-0.1892415583,
-0.1625115871,
0.0411388949,
0.1250683963,
-0.0068886857,
-0.1418987066,
-0.2220692933,
-0.1977452636,
0.2485520691,
-0.2718151808,
0.1637998819,
0.3282659054,
-0.2938080132,
-0.0524129719,
-0.0341584794,
-0.1917767525,
0.0028739953,
0.4908806682,
0.0114549389,
-0.0632133558,
0.2723679543,
0.2820209563,
-0.1826472878,
-0.1906582117,
-0.0402477868,
0.335108459,
-0.4386788011,
0.0629255995,
0.0017517607,
0.1089848876,
-0.0831962004,
0.0866385475,
0.1854894757,
-0.3316167593,
-0.04971461,
-0.5123909712,
-0.4241814613,
0.0617064461,
-0.1854269058,
0.0927668065,
0.1852400601,
-0.09049052,
-0.0750618652,
0.1424363256,
-0.3271410465,
0.16791448,
-0.4357076883,
0.0970704108,
0.0867011696,
-0.0913311094,
0.0261142943,
0.0056107454,
0.2133779228,
0.1586076915,
-0.1716595143,
-0.2343905121,
-0.2015680671,
0.1274098456,
-0.1638600975,
0.0023353677,
0.0150649315,
0.0391617231,
-0.1514985859,
-0.2010218352,
0.1095063463,
0.1515682787,
0.0297770668,
-0.0893436074,
-0.1283658445,
0.0794051066,
-0.2303029299,
0.2807924449,
-0.0297162738,
0.0850754082,
0.0738380104,
0.1805204004,
-0.0865612477,
-0.0737274587,
-0.2952451706,
-0.0313280001,
-0.0808858052,
0.1275687218,
0.2736896276,
-0.2907217443,
-0.1748834252,
0.271910131,
0.2462236285,
0.395080924,
-0.1202236637,
0.1272374243,
0.2753771544,
0.1972284317,
-0.3205421567,
-0.1585116982,
0.2482055873,
-0.1605395079,
0.0703759119,
0.2588650584,
-0.0053535663,
-0.1616199166,
0.0416752547,
0.109561488,
0.3554961085,
-0.1286275238,
0.1150353849,
-0.1055822968,
-0.003898252,
-0.1538095623,
0.0662344024,
0.0418538116,
0.2328318655,
0.7362143993,
-0.1257957816,
0.1040982082,
-0.4056331515,
0.1632435173,
-0.0487118736,
-0.6907132864,
0.1636541784,
0.375107199,
-0.200418219,
0.0376649424,
-0.2002522647,
0.435937345,
-0.4588372111,
-0.030442182,
-0.1829076856,
0.1219525784,
-0.2052730024,
-0.0144394785,
0.1458820701,
-0.1242273152,
-0.2728483081,
-0.0481207222,
-0.0287610646,
-0.1988631487,
0.3789031208,
0.1070110798,
-0.263030529,
-0.2015578449,
0.1357065439,
0.1699093878,
0.2180937678,
-0.3574671447,
0.2478872091,
-0.0779870376,
-0.0820786357,
0.1299029589,
0.1735709161,
0.5013977885,
0.2809213698,
0.0707978234,
0.2174233049,
0.0229815971,
-0.1285044551,
-0.2220835239,
0.2500050366,
0.0155390613,
0.339538753,
0.20718427,
0.1622638255,
-0.143785283,
-0.083573617,
0.1611058712,
0.2301978469,
-0.2240372449,
0.5022640228,
-0.3898712397,
-0.2849796712,
-0.2181778103,
0.1364946663,
-0.5349043608,
0.0649263337,
0.0866797119,
0.1992293596,
0.2909303606,
-0.2516125441,
0.1108489558,
-0.0459299423,
0.3562532663,
0.1658024788,
0.0648050755,
-0.2455943674,
-0.2477180511,
-0.7577751875,
0.246513918,
-0.0787993744,
-0.0816407576,
0.1872540116,
0.1978060007,
-0.2379468828,
-0.0519824326,
-0.0008515855,
0.0256334674,
0.3602198958,
0.1129863262,
-0.3824450374,
-0.13873294,
0.0782744288,
-0.0492963046,
0.0544913933,
-0.3725679517,
0.1263584644,
-0.507992506,
0.0351008773,
0.0988068432,
-0.1641854495,
0.1969135702,
0.0705330297,
0.4982849956,
-0.0376920104,
0.3045736551,
0.0173748657,
-0.1567619741,
-0.6732807755,
-0.0673639774,
-0.1394058913,
0.3545387089,
0.1344242543,
0.340439111,
-0.2917601764,
-0.0594924241,
-0.2812423706,
0.2554523647,
0.14459984,
0.0735234916,
-0.0078479163,
0.0126824845,
-0.1204615086,
0.1674372554,
0.2154099196,
0.0834822357,
-0.012750091,
-0.043704778,
-0.3620734215,
-0.4809340537,
0.721598506,
-0.0405095294,
-0.1685137898,
-0.2162559181,
0.4100281596,
0.1613395363,
-0.2120658904,
-0.3983772099,
0.1647354662,
0.5024664402,
0.1383817345,
-0.2245300114,
0.0906324685,
-0.2353202254,
-0.0083674556,
-0.095178932,
0.03950518,
-0.0266615786,
-0.1184292063,
0.3332894742,
-0.1559800059
] |
https://github.com/huggingface/datasets/issues/2746 | Cannot load `few-nerd` dataset | Thank you @albertvillanova for your detailed feedback!
> no need to pass explicitly `name=`
Good catch! I thought `split` stands before `name` in the argument list... but now it is all clear to me, sounds cool! Thanks for the explanation.
Anyways in our old code it still looks bit confusing if we only want one split but the function downloads all, so to allow efficient downloading, I optimized the code a bit so that only the specified split data is downloaded. now we get
```
>>> x = load_dataset("dfki-nlp/few-nerd", "supervised")
Downloading and preparing dataset few_nerd/supervised to /home/user/.cache/huggingface/datasets/few_nerd/supervised/0.0.0/8e7ab598946cd5b395dcec6ea239123c8dff5b58b8e1c03b0c595b540248a885...
Downloading: 100%|███████████████████████████████████████████████████████████████████| 14.6M/14.6M [01:01<00:00, 238kB/s]
100%|██████████████████████████████████████████████████████████████████████| 3359329/3359329 [00:12<00:00, 275462.84it/s]
100%|████████████████████████████████████████████████████████████████████████| 482037/482037 [00:01<00:00, 278633.64it/s]
100%|████████████████████████████████████████████████████████████████████████| 958765/958765 [00:03<00:00, 267472.83it/s]
Dataset few_nerd downloaded and prepared to /home/user/.cache/huggingface/datasets/few_nerd/supervised/0.0.0/8e7ab598946cd5b395dcec6ea239123c8dff5b58b8e1c03b0c595b540248a885. Subsequent calls will reuse this data.
```
where only one progress bar indicates downloading, and the three others just indicate pre-processing for the train, dev, test set.
For the encoding issue, I have made corresponding changes for the two lines you pointed out. However, I have no windows machine at hand, I would really appreciate it if you could help test on your end.
All the updates are uploaded to HF under `dfki-nlp` account where I am working for.
Thank you again for your kind help!
| ## 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
| 207 | 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
Thank you @albertvillanova for your detailed feedback!
> no need to pass explicitly `name=`
Good catch! I thought `split` stands before `name` in the argument list... but now it is all clear to me, sounds cool! Thanks for the explanation.
Anyways in our old code it still looks bit confusing if we only want one split but the function downloads all, so to allow efficient downloading, I optimized the code a bit so that only the specified split data is downloaded. now we get
```
>>> x = load_dataset("dfki-nlp/few-nerd", "supervised")
Downloading and preparing dataset few_nerd/supervised to /home/user/.cache/huggingface/datasets/few_nerd/supervised/0.0.0/8e7ab598946cd5b395dcec6ea239123c8dff5b58b8e1c03b0c595b540248a885...
Downloading: 100%|███████████████████████████████████████████████████████████████████| 14.6M/14.6M [01:01<00:00, 238kB/s]
100%|██████████████████████████████████████████████████████████████████████| 3359329/3359329 [00:12<00:00, 275462.84it/s]
100%|████████████████████████████████████████████████████████████████████████| 482037/482037 [00:01<00:00, 278633.64it/s]
100%|████████████████████████████████████████████████████████████████████████| 958765/958765 [00:03<00:00, 267472.83it/s]
Dataset few_nerd downloaded and prepared to /home/user/.cache/huggingface/datasets/few_nerd/supervised/0.0.0/8e7ab598946cd5b395dcec6ea239123c8dff5b58b8e1c03b0c595b540248a885. Subsequent calls will reuse this data.
```
where only one progress bar indicates downloading, and the three others just indicate pre-processing for the train, dev, test set.
For the encoding issue, I have made corresponding changes for the two lines you pointed out. However, I have no windows machine at hand, I would really appreciate it if you could help test on your end.
All the updates are uploaded to HF under `dfki-nlp` account where I am working for.
Thank you again for your kind help!
| [
-0.3042272031,
-0.0985632092,
0.0078415042,
0.5131354928,
0.3285455704,
-0.0576421581,
0.5201522708,
0.2553009391,
0.1991575807,
0.1681089848,
-0.4604777694,
-0.0910486281,
-0.2877758145,
-0.2970744371,
0.4347795844,
0.0320018455,
-0.0251879897,
-0.0349553004,
0.1119612306,
0.0084388042,
-0.2257291228,
0.2362412214,
-0.2453140765,
0.0727760121,
-0.4190008342,
-0.0549565069,
0.0889208987,
0.4892742932,
-0.0719759017,
-0.6296031475,
0.4604726434,
0.0143893473,
0.2181517482,
0.4235019386,
-0.0001091994,
0.1441849768,
0.418992579,
-0.0192657523,
-0.2884245813,
-0.3601104319,
0.0940839499,
-0.5144337416,
0.1233331636,
-0.2608025372,
-0.4063474238,
0.0236192178,
0.1217368618,
-0.2709336877,
0.4901704192,
0.4886862636,
0.2884907126,
0.1309139729,
-0.0160082299,
-0.3164567649,
0.4296734631,
0.0675482973,
-0.161294952,
0.2777443528,
0.3432971239,
-0.0043072822,
-0.0363362916,
0.0306215398,
-0.0457585864,
-0.1231165603,
0.3901320994,
0.0024615703,
-0.125672996,
-0.2126003355,
0.1296327412,
0.4381468892,
0.2064512521,
-0.2134827524,
-0.2328185588,
-0.1929796934,
0.0738779604,
-0.181978792,
0.1654341221,
0.0319195911,
-0.1912626326,
0.0741784424,
-0.0262065437,
-0.0630681589,
-0.1722616255,
0.1423974186,
-0.1104407161,
0.1547159702,
-0.1506495029,
0.0314561166,
-0.1483334601,
-0.0989769027,
-0.2203026414,
0.1539326757,
-0.0331301205,
0.2842572331,
-0.3529804647,
0.1692640483,
0.0968756601,
0.3016740382,
0.2464148998,
0.346801132,
-0.0859937891,
-0.0112308981,
-0.0313665122,
0.1054863036,
0.0539563335,
0.1550133526,
0.3106100261,
0.1709687412,
0.2803750038,
0.4544362426,
-0.0940066054,
0.0249503013,
-0.2067871094,
-0.1653556228,
0.0443976447,
0.0359360054,
0.327930212,
-0.233940199,
-0.4098481834,
0.1534152776,
0.2209212184,
0.0887864754,
0.2583983839,
0.4830322862,
-0.2361517251,
-0.0013514152,
-0.0064405231,
0.025530532,
-0.1511358619,
-0.1756567061,
-0.339207232,
0.1940045506,
-0.0808146447,
0.012704419,
0.3254750669,
-0.1232189164,
0.3092910647,
-0.1528523266,
-0.0015988443,
-0.1232206821,
-0.1105272323,
-0.1869744658,
-0.0999147817,
0.2051268965,
-0.0700343922,
0.0878423899,
0.1172280982,
-0.3199291527,
-0.2411323488,
-0.1124534681,
-0.1270278692,
-0.3474448323,
-0.0937900543,
0.2281979471,
-0.2979830503,
0.1321427375,
-0.0671057627,
0.0436786115,
0.0764682367,
-0.2537536919,
-0.1240769997,
-0.1402088553,
-0.4273742139,
-0.3767174482,
0.6006535292,
0.6969181895,
-0.2007524073,
-0.1508893073,
-0.5498251915,
-0.3447905183,
0.105987139,
0.375048548,
-0.2740000188,
0.1505954564,
-0.2850111723,
0.3159658313,
0.3138705194,
-0.4321831465,
-0.4340070486,
0.2631570697,
-0.2292089015,
0.4060311317,
-0.0842329562,
0.0858282298,
0.1212188303,
-0.1092526466,
0.3998245895,
0.4777020812,
0.0203808378,
-0.1821039915,
-0.258133769,
-0.1423351616,
0.1062365398,
0.1785900444,
0.2633875906,
0.0787663832,
0.1548191458,
0.0659916699,
0.2326672822,
0.2080253214,
0.0624011457,
0.1595211774,
0.2724163532,
0.2057396024,
0.0333996192,
-0.4820545316,
-0.6707290411,
0.4395001531,
-0.1612326056,
-0.0476554856,
-0.1690656841,
-0.1581421345,
-0.4199803174,
0.029883381,
-0.0987406522,
-0.2591837645,
0.1797642708,
0.2151270509,
0.2117395103,
0.0778773949,
-0.2501817048,
0.5149944425,
0.0565138347,
0.0629971549,
-0.3822928965,
0.1305712014,
-0.1241282672,
-0.1103751585,
-0.11856509,
0.3505547643,
0.2312970012,
-0.1851249337,
0.0676197633,
0.5000378489,
0.0044358959,
-0.1740283519,
-0.0906506851,
-0.4309685528,
0.0396164842,
-0.1043563411,
0.1348259002,
0.2153397202,
0.107561484,
-0.0511245504,
0.1082190797,
0.3727986515,
0.0354980789,
0.2296619862,
0.0288257338,
-0.0013954189,
0.1831603348,
0.0764851794,
0.1574744433,
-0.2301815897,
0.4892825484,
0.2627513111,
0.1726309061,
0.2077907771,
-0.2014016956,
-0.0117081087,
0.0858466774,
-0.0487292521,
0.0544365011,
0.2945663929,
-0.1510489285,
-0.0472729467,
0.0568790697,
0.3697468936,
0.3691947758,
0.1709933728,
-0.0261740442,
0.096514754,
-0.0314381123,
-0.0691686347,
0.1280414313,
0.0516600013,
0.0810700059,
0.2116550058,
0.0695572346,
0.1970313042,
-0.2670100331,
-0.2561357617,
-0.0517691225,
0.3250852525,
-0.393222481,
0.1741221547,
-0.2071427256,
-0.1251391917,
-0.0495264009,
0.0053798435,
-0.4605346918,
-0.0769574717,
0.0503376871,
0.110679239,
0.2267701477,
0.183350116,
-0.1267201751,
0.1852056533,
-0.3189342618,
0.057020314,
-0.2792580128,
0.000334233,
-0.3292351663,
0.0763942003,
0.3980512619,
-0.0389909968,
0.3228535354,
-0.2194562405,
-0.2569383383,
-0.1921417117,
-0.046326559,
-0.1839066893,
0.0817928091,
0.6579142809,
0.1881101131,
0.2480802685,
-0.0574076176,
-0.1280138344,
0.3673249483,
-0.3022806346,
-0.1845696121,
0.0297332108,
-0.1068389118,
0.0871497244,
-0.1282042265,
-0.3432553113,
-0.6057451963,
-0.4530198872,
0.309640944,
0.1487501711,
0.1859292388,
0.3676006198,
-0.1163643152,
0.0920387283,
-0.0485565402,
0.2006090432,
-0.1484299749,
-0.274638474,
0.2829446197,
-0.4200583994,
-0.3737154603,
-0.1102968007,
0.0587630086,
0.035479214,
0.0825504735,
-0.4535486996,
0.3604622781,
-0.1324117184,
0.0797711983,
-0.1327622086,
-0.0603401363,
0.0686465725,
-0.1221246719,
-0.0532961972,
0.0417382866,
-0.1169573292,
0.0133846505,
-0.2853539884,
0.0561637618,
-0.0636483133,
0.3072239459,
-0.0019498593,
0.4964496493,
0.058083225,
-0.1058205292,
0.2891735733,
-0.0874312893,
0.4604646862,
-0.1876949668,
-0.4373457134,
0.2259437889,
0.0792098194,
0.102100201,
0.1729522198,
0.0360882096,
-0.0474606156,
-0.1986846775,
-0.1381452531,
-0.171809271,
-0.1961097866,
0.1420128644,
-0.1423949748,
-0.0142823411,
0.0818401426,
0.0758623853,
-0.140420109,
-0.2760423124,
-0.1373603046,
0.2724564672,
0.1131137088,
0.15117459,
-0.3932624161,
0.1020023376,
-0.3729325831,
0.3129015267,
0.0480136834,
0.2415393442,
-0.1663655043,
-0.0114004686,
0.1493564546,
-0.0688034296,
0.5504931808,
-0.151531443,
0.2541806102,
0.3367011249,
0.1286226958,
-0.7504610419,
-0.0662805066,
0.0233679377,
0.3294961154,
0.2464182675,
0.4543982744,
-0.2505263686,
-0.1369054019,
0.2337846905,
0.2959226072,
-0.1432937831,
-0.2281202674,
-0.2188385874,
-0.1805829108,
-0.2202906907,
-0.1829198301,
-0.018292468,
0.2696569264,
-0.0675441697,
-0.0292057004,
-0.1527410001,
0.13802284,
0.1742381752,
-0.1038871109,
0.3798678219,
-0.0627670214,
0.3176009953,
0.1641200334,
0.1555964798,
0.0896449164,
0.3713906407,
-0.1347899139,
-0.1864741296,
-0.0433622263,
0.3078994453,
-0.0182064921,
0.2944725454,
-0.1834385097,
0.0559393913,
0.2339202762,
0.0878414884,
-0.0088505298,
0.1489187479,
0.1992046088,
-0.1655573398,
-0.1703933477,
-0.3570539355,
0.4624354541,
0.183601439,
0.1630533189,
0.0863770321,
0.1469565183,
-0.1434807032,
0.060928259,
-0.0672206804,
0.8010354638,
-0.1922799349,
0.2192891389,
0.0859914944,
-0.0177426133,
0.7876714468,
-0.2983112633,
0.0326752923,
-0.478846997,
-0.1975042522,
0.0700774267,
-0.0545483269,
0.0387885794,
0.1448955685,
-0.09474691,
0.1931798011,
-0.2254080325,
-0.1533670872,
-0.0042770267,
0.1144785285,
0.0007140811,
-0.1973515451,
-0.1570113301,
0.1364554465,
-0.1990410089,
0.2564730644,
-0.0531497262,
0.167950213,
-0.1742461026,
-0.15749681,
-0.3562299907,
0.0992632657,
-0.2688148916,
0.4265546501,
0.3584544957,
-0.4234372973,
0.0714092106,
0.2643076181,
0.089821063,
0.1571879387,
-0.1224653721,
0.2339868695,
-0.0381044932,
-0.1398678124,
0.1586796939,
0.080012098,
0.4458076954,
-0.0480822138,
-0.2589701414,
-0.0948806852,
-0.1892415583,
-0.1625115871,
0.0411388949,
0.1250683963,
-0.0068886857,
-0.1418987066,
-0.2220692933,
-0.1977452636,
0.2485520691,
-0.2718151808,
0.1637998819,
0.3282659054,
-0.2938080132,
-0.0524129719,
-0.0341584794,
-0.1917767525,
0.0028739953,
0.4908806682,
0.0114549389,
-0.0632133558,
0.2723679543,
0.2820209563,
-0.1826472878,
-0.1906582117,
-0.0402477868,
0.335108459,
-0.4386788011,
0.0629255995,
0.0017517607,
0.1089848876,
-0.0831962004,
0.0866385475,
0.1854894757,
-0.3316167593,
-0.04971461,
-0.5123909712,
-0.4241814613,
0.0617064461,
-0.1854269058,
0.0927668065,
0.1852400601,
-0.09049052,
-0.0750618652,
0.1424363256,
-0.3271410465,
0.16791448,
-0.4357076883,
0.0970704108,
0.0867011696,
-0.0913311094,
0.0261142943,
0.0056107454,
0.2133779228,
0.1586076915,
-0.1716595143,
-0.2343905121,
-0.2015680671,
0.1274098456,
-0.1638600975,
0.0023353677,
0.0150649315,
0.0391617231,
-0.1514985859,
-0.2010218352,
0.1095063463,
0.1515682787,
0.0297770668,
-0.0893436074,
-0.1283658445,
0.0794051066,
-0.2303029299,
0.2807924449,
-0.0297162738,
0.0850754082,
0.0738380104,
0.1805204004,
-0.0865612477,
-0.0737274587,
-0.2952451706,
-0.0313280001,
-0.0808858052,
0.1275687218,
0.2736896276,
-0.2907217443,
-0.1748834252,
0.271910131,
0.2462236285,
0.395080924,
-0.1202236637,
0.1272374243,
0.2753771544,
0.1972284317,
-0.3205421567,
-0.1585116982,
0.2482055873,
-0.1605395079,
0.0703759119,
0.2588650584,
-0.0053535663,
-0.1616199166,
0.0416752547,
0.109561488,
0.3554961085,
-0.1286275238,
0.1150353849,
-0.1055822968,
-0.003898252,
-0.1538095623,
0.0662344024,
0.0418538116,
0.2328318655,
0.7362143993,
-0.1257957816,
0.1040982082,
-0.4056331515,
0.1632435173,
-0.0487118736,
-0.6907132864,
0.1636541784,
0.375107199,
-0.200418219,
0.0376649424,
-0.2002522647,
0.435937345,
-0.4588372111,
-0.030442182,
-0.1829076856,
0.1219525784,
-0.2052730024,
-0.0144394785,
0.1458820701,
-0.1242273152,
-0.2728483081,
-0.0481207222,
-0.0287610646,
-0.1988631487,
0.3789031208,
0.1070110798,
-0.263030529,
-0.2015578449,
0.1357065439,
0.1699093878,
0.2180937678,
-0.3574671447,
0.2478872091,
-0.0779870376,
-0.0820786357,
0.1299029589,
0.1735709161,
0.5013977885,
0.2809213698,
0.0707978234,
0.2174233049,
0.0229815971,
-0.1285044551,
-0.2220835239,
0.2500050366,
0.0155390613,
0.339538753,
0.20718427,
0.1622638255,
-0.143785283,
-0.083573617,
0.1611058712,
0.2301978469,
-0.2240372449,
0.5022640228,
-0.3898712397,
-0.2849796712,
-0.2181778103,
0.1364946663,
-0.5349043608,
0.0649263337,
0.0866797119,
0.1992293596,
0.2909303606,
-0.2516125441,
0.1108489558,
-0.0459299423,
0.3562532663,
0.1658024788,
0.0648050755,
-0.2455943674,
-0.2477180511,
-0.7577751875,
0.246513918,
-0.0787993744,
-0.0816407576,
0.1872540116,
0.1978060007,
-0.2379468828,
-0.0519824326,
-0.0008515855,
0.0256334674,
0.3602198958,
0.1129863262,
-0.3824450374,
-0.13873294,
0.0782744288,
-0.0492963046,
0.0544913933,
-0.3725679517,
0.1263584644,
-0.507992506,
0.0351008773,
0.0988068432,
-0.1641854495,
0.1969135702,
0.0705330297,
0.4982849956,
-0.0376920104,
0.3045736551,
0.0173748657,
-0.1567619741,
-0.6732807755,
-0.0673639774,
-0.1394058913,
0.3545387089,
0.1344242543,
0.340439111,
-0.2917601764,
-0.0594924241,
-0.2812423706,
0.2554523647,
0.14459984,
0.0735234916,
-0.0078479163,
0.0126824845,
-0.1204615086,
0.1674372554,
0.2154099196,
0.0834822357,
-0.012750091,
-0.043704778,
-0.3620734215,
-0.4809340537,
0.721598506,
-0.0405095294,
-0.1685137898,
-0.2162559181,
0.4100281596,
0.1613395363,
-0.2120658904,
-0.3983772099,
0.1647354662,
0.5024664402,
0.1383817345,
-0.2245300114,
0.0906324685,
-0.2353202254,
-0.0083674556,
-0.095178932,
0.03950518,
-0.0266615786,
-0.1184292063,
0.3332894742,
-0.1559800059
] |
https://github.com/huggingface/datasets/issues/2746 | Cannot load `few-nerd` dataset | Hi @chen-yuxuan,
I have tested on Windows and now it works perfectly, after the fixing of the encoding issue:
```python
In [1]: from datasets import load_dataset
In [2]: ds = load_dataset("dfki-nlp/few-nerd", "supervised")
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 11.5k/11.5k [00:00<?, ?B/s]
Downloading and preparing dataset few_nerd/supervised to C:\Users\username\.cache\huggingface\datasets\dfki-nlp___few_nerd\supervised\0.0.0\e1ceeaee82073fea12206e4461c7cfcd67e68c8f3ebeca179bddcacee00c4511...
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3359329/3359329 [00:25<00:00, 129427.23it/s]
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 482037/482037 [00:03<00:00, 134513.66it/s]
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 958765/958765 [00:06<00:00, 143152.35it/s]
Dataset few_nerd downloaded and prepared to C:\Users\username\.cache\huggingface\datasets\dfki-nlp___few_nerd\supervised\0.0.0\e1ceeaee82073fea12206e4461c7cfcd67e68c8f3ebeca179bddcacee00c4511. Subsequent calls will reuse this data.765 [00:06<00:00, 139045.03it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 174.71it/s]
In [3]: ds
Out[3]:
DatasetDict({
train: Dataset({
features: ['id', 'tokens', 'ner_tags', 'fine_ner_tags'],
num_rows: 131767
})
validation: Dataset({
features: ['id', 'tokens', 'ner_tags', 'fine_ner_tags'],
num_rows: 18824
})
test: Dataset({
features: ['id', 'tokens', 'ner_tags', 'fine_ner_tags'],
num_rows: 37648
})
})
``` | ## 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
| 112 | 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 @chen-yuxuan,
I have tested on Windows and now it works perfectly, after the fixing of the encoding issue:
```python
In [1]: from datasets import load_dataset
In [2]: ds = load_dataset("dfki-nlp/few-nerd", "supervised")
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 11.5k/11.5k [00:00<?, ?B/s]
Downloading and preparing dataset few_nerd/supervised to C:\Users\username\.cache\huggingface\datasets\dfki-nlp___few_nerd\supervised\0.0.0\e1ceeaee82073fea12206e4461c7cfcd67e68c8f3ebeca179bddcacee00c4511...
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3359329/3359329 [00:25<00:00, 129427.23it/s]
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 482037/482037 [00:03<00:00, 134513.66it/s]
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 958765/958765 [00:06<00:00, 143152.35it/s]
Dataset few_nerd downloaded and prepared to C:\Users\username\.cache\huggingface\datasets\dfki-nlp___few_nerd\supervised\0.0.0\e1ceeaee82073fea12206e4461c7cfcd67e68c8f3ebeca179bddcacee00c4511. Subsequent calls will reuse this data.765 [00:06<00:00, 139045.03it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 174.71it/s]
In [3]: ds
Out[3]:
DatasetDict({
train: Dataset({
features: ['id', 'tokens', 'ner_tags', 'fine_ner_tags'],
num_rows: 131767
})
validation: Dataset({
features: ['id', 'tokens', 'ner_tags', 'fine_ner_tags'],
num_rows: 18824
})
test: Dataset({
features: ['id', 'tokens', 'ner_tags', 'fine_ner_tags'],
num_rows: 37648
})
})
``` | [
-0.3042272031,
-0.0985632092,
0.0078415042,
0.5131354928,
0.3285455704,
-0.0576421581,
0.5201522708,
0.2553009391,
0.1991575807,
0.1681089848,
-0.4604777694,
-0.0910486281,
-0.2877758145,
-0.2970744371,
0.4347795844,
0.0320018455,
-0.0251879897,
-0.0349553004,
0.1119612306,
0.0084388042,
-0.2257291228,
0.2362412214,
-0.2453140765,
0.0727760121,
-0.4190008342,
-0.0549565069,
0.0889208987,
0.4892742932,
-0.0719759017,
-0.6296031475,
0.4604726434,
0.0143893473,
0.2181517482,
0.4235019386,
-0.0001091994,
0.1441849768,
0.418992579,
-0.0192657523,
-0.2884245813,
-0.3601104319,
0.0940839499,
-0.5144337416,
0.1233331636,
-0.2608025372,
-0.4063474238,
0.0236192178,
0.1217368618,
-0.2709336877,
0.4901704192,
0.4886862636,
0.2884907126,
0.1309139729,
-0.0160082299,
-0.3164567649,
0.4296734631,
0.0675482973,
-0.161294952,
0.2777443528,
0.3432971239,
-0.0043072822,
-0.0363362916,
0.0306215398,
-0.0457585864,
-0.1231165603,
0.3901320994,
0.0024615703,
-0.125672996,
-0.2126003355,
0.1296327412,
0.4381468892,
0.2064512521,
-0.2134827524,
-0.2328185588,
-0.1929796934,
0.0738779604,
-0.181978792,
0.1654341221,
0.0319195911,
-0.1912626326,
0.0741784424,
-0.0262065437,
-0.0630681589,
-0.1722616255,
0.1423974186,
-0.1104407161,
0.1547159702,
-0.1506495029,
0.0314561166,
-0.1483334601,
-0.0989769027,
-0.2203026414,
0.1539326757,
-0.0331301205,
0.2842572331,
-0.3529804647,
0.1692640483,
0.0968756601,
0.3016740382,
0.2464148998,
0.346801132,
-0.0859937891,
-0.0112308981,
-0.0313665122,
0.1054863036,
0.0539563335,
0.1550133526,
0.3106100261,
0.1709687412,
0.2803750038,
0.4544362426,
-0.0940066054,
0.0249503013,
-0.2067871094,
-0.1653556228,
0.0443976447,
0.0359360054,
0.327930212,
-0.233940199,
-0.4098481834,
0.1534152776,
0.2209212184,
0.0887864754,
0.2583983839,
0.4830322862,
-0.2361517251,
-0.0013514152,
-0.0064405231,
0.025530532,
-0.1511358619,
-0.1756567061,
-0.339207232,
0.1940045506,
-0.0808146447,
0.012704419,
0.3254750669,
-0.1232189164,
0.3092910647,
-0.1528523266,
-0.0015988443,
-0.1232206821,
-0.1105272323,
-0.1869744658,
-0.0999147817,
0.2051268965,
-0.0700343922,
0.0878423899,
0.1172280982,
-0.3199291527,
-0.2411323488,
-0.1124534681,
-0.1270278692,
-0.3474448323,
-0.0937900543,
0.2281979471,
-0.2979830503,
0.1321427375,
-0.0671057627,
0.0436786115,
0.0764682367,
-0.2537536919,
-0.1240769997,
-0.1402088553,
-0.4273742139,
-0.3767174482,
0.6006535292,
0.6969181895,
-0.2007524073,
-0.1508893073,
-0.5498251915,
-0.3447905183,
0.105987139,
0.375048548,
-0.2740000188,
0.1505954564,
-0.2850111723,
0.3159658313,
0.3138705194,
-0.4321831465,
-0.4340070486,
0.2631570697,
-0.2292089015,
0.4060311317,
-0.0842329562,
0.0858282298,
0.1212188303,
-0.1092526466,
0.3998245895,
0.4777020812,
0.0203808378,
-0.1821039915,
-0.258133769,
-0.1423351616,
0.1062365398,
0.1785900444,
0.2633875906,
0.0787663832,
0.1548191458,
0.0659916699,
0.2326672822,
0.2080253214,
0.0624011457,
0.1595211774,
0.2724163532,
0.2057396024,
0.0333996192,
-0.4820545316,
-0.6707290411,
0.4395001531,
-0.1612326056,
-0.0476554856,
-0.1690656841,
-0.1581421345,
-0.4199803174,
0.029883381,
-0.0987406522,
-0.2591837645,
0.1797642708,
0.2151270509,
0.2117395103,
0.0778773949,
-0.2501817048,
0.5149944425,
0.0565138347,
0.0629971549,
-0.3822928965,
0.1305712014,
-0.1241282672,
-0.1103751585,
-0.11856509,
0.3505547643,
0.2312970012,
-0.1851249337,
0.0676197633,
0.5000378489,
0.0044358959,
-0.1740283519,
-0.0906506851,
-0.4309685528,
0.0396164842,
-0.1043563411,
0.1348259002,
0.2153397202,
0.107561484,
-0.0511245504,
0.1082190797,
0.3727986515,
0.0354980789,
0.2296619862,
0.0288257338,
-0.0013954189,
0.1831603348,
0.0764851794,
0.1574744433,
-0.2301815897,
0.4892825484,
0.2627513111,
0.1726309061,
0.2077907771,
-0.2014016956,
-0.0117081087,
0.0858466774,
-0.0487292521,
0.0544365011,
0.2945663929,
-0.1510489285,
-0.0472729467,
0.0568790697,
0.3697468936,
0.3691947758,
0.1709933728,
-0.0261740442,
0.096514754,
-0.0314381123,
-0.0691686347,
0.1280414313,
0.0516600013,
0.0810700059,
0.2116550058,
0.0695572346,
0.1970313042,
-0.2670100331,
-0.2561357617,
-0.0517691225,
0.3250852525,
-0.393222481,
0.1741221547,
-0.2071427256,
-0.1251391917,
-0.0495264009,
0.0053798435,
-0.4605346918,
-0.0769574717,
0.0503376871,
0.110679239,
0.2267701477,
0.183350116,
-0.1267201751,
0.1852056533,
-0.3189342618,
0.057020314,
-0.2792580128,
0.000334233,
-0.3292351663,
0.0763942003,
0.3980512619,
-0.0389909968,
0.3228535354,
-0.2194562405,
-0.2569383383,
-0.1921417117,
-0.046326559,
-0.1839066893,
0.0817928091,
0.6579142809,
0.1881101131,
0.2480802685,
-0.0574076176,
-0.1280138344,
0.3673249483,
-0.3022806346,
-0.1845696121,
0.0297332108,
-0.1068389118,
0.0871497244,
-0.1282042265,
-0.3432553113,
-0.6057451963,
-0.4530198872,
0.309640944,
0.1487501711,
0.1859292388,
0.3676006198,
-0.1163643152,
0.0920387283,
-0.0485565402,
0.2006090432,
-0.1484299749,
-0.274638474,
0.2829446197,
-0.4200583994,
-0.3737154603,
-0.1102968007,
0.0587630086,
0.035479214,
0.0825504735,
-0.4535486996,
0.3604622781,
-0.1324117184,
0.0797711983,
-0.1327622086,
-0.0603401363,
0.0686465725,
-0.1221246719,
-0.0532961972,
0.0417382866,
-0.1169573292,
0.0133846505,
-0.2853539884,
0.0561637618,
-0.0636483133,
0.3072239459,
-0.0019498593,
0.4964496493,
0.058083225,
-0.1058205292,
0.2891735733,
-0.0874312893,
0.4604646862,
-0.1876949668,
-0.4373457134,
0.2259437889,
0.0792098194,
0.102100201,
0.1729522198,
0.0360882096,
-0.0474606156,
-0.1986846775,
-0.1381452531,
-0.171809271,
-0.1961097866,
0.1420128644,
-0.1423949748,
-0.0142823411,
0.0818401426,
0.0758623853,
-0.140420109,
-0.2760423124,
-0.1373603046,
0.2724564672,
0.1131137088,
0.15117459,
-0.3932624161,
0.1020023376,
-0.3729325831,
0.3129015267,
0.0480136834,
0.2415393442,
-0.1663655043,
-0.0114004686,
0.1493564546,
-0.0688034296,
0.5504931808,
-0.151531443,
0.2541806102,
0.3367011249,
0.1286226958,
-0.7504610419,
-0.0662805066,
0.0233679377,
0.3294961154,
0.2464182675,
0.4543982744,
-0.2505263686,
-0.1369054019,
0.2337846905,
0.2959226072,
-0.1432937831,
-0.2281202674,
-0.2188385874,
-0.1805829108,
-0.2202906907,
-0.1829198301,
-0.018292468,
0.2696569264,
-0.0675441697,
-0.0292057004,
-0.1527410001,
0.13802284,
0.1742381752,
-0.1038871109,
0.3798678219,
-0.0627670214,
0.3176009953,
0.1641200334,
0.1555964798,
0.0896449164,
0.3713906407,
-0.1347899139,
-0.1864741296,
-0.0433622263,
0.3078994453,
-0.0182064921,
0.2944725454,
-0.1834385097,
0.0559393913,
0.2339202762,
0.0878414884,
-0.0088505298,
0.1489187479,
0.1992046088,
-0.1655573398,
-0.1703933477,
-0.3570539355,
0.4624354541,
0.183601439,
0.1630533189,
0.0863770321,
0.1469565183,
-0.1434807032,
0.060928259,
-0.0672206804,
0.8010354638,
-0.1922799349,
0.2192891389,
0.0859914944,
-0.0177426133,
0.7876714468,
-0.2983112633,
0.0326752923,
-0.478846997,
-0.1975042522,
0.0700774267,
-0.0545483269,
0.0387885794,
0.1448955685,
-0.09474691,
0.1931798011,
-0.2254080325,
-0.1533670872,
-0.0042770267,
0.1144785285,
0.0007140811,
-0.1973515451,
-0.1570113301,
0.1364554465,
-0.1990410089,
0.2564730644,
-0.0531497262,
0.167950213,
-0.1742461026,
-0.15749681,
-0.3562299907,
0.0992632657,
-0.2688148916,
0.4265546501,
0.3584544957,
-0.4234372973,
0.0714092106,
0.2643076181,
0.089821063,
0.1571879387,
-0.1224653721,
0.2339868695,
-0.0381044932,
-0.1398678124,
0.1586796939,
0.080012098,
0.4458076954,
-0.0480822138,
-0.2589701414,
-0.0948806852,
-0.1892415583,
-0.1625115871,
0.0411388949,
0.1250683963,
-0.0068886857,
-0.1418987066,
-0.2220692933,
-0.1977452636,
0.2485520691,
-0.2718151808,
0.1637998819,
0.3282659054,
-0.2938080132,
-0.0524129719,
-0.0341584794,
-0.1917767525,
0.0028739953,
0.4908806682,
0.0114549389,
-0.0632133558,
0.2723679543,
0.2820209563,
-0.1826472878,
-0.1906582117,
-0.0402477868,
0.335108459,
-0.4386788011,
0.0629255995,
0.0017517607,
0.1089848876,
-0.0831962004,
0.0866385475,
0.1854894757,
-0.3316167593,
-0.04971461,
-0.5123909712,
-0.4241814613,
0.0617064461,
-0.1854269058,
0.0927668065,
0.1852400601,
-0.09049052,
-0.0750618652,
0.1424363256,
-0.3271410465,
0.16791448,
-0.4357076883,
0.0970704108,
0.0867011696,
-0.0913311094,
0.0261142943,
0.0056107454,
0.2133779228,
0.1586076915,
-0.1716595143,
-0.2343905121,
-0.2015680671,
0.1274098456,
-0.1638600975,
0.0023353677,
0.0150649315,
0.0391617231,
-0.1514985859,
-0.2010218352,
0.1095063463,
0.1515682787,
0.0297770668,
-0.0893436074,
-0.1283658445,
0.0794051066,
-0.2303029299,
0.2807924449,
-0.0297162738,
0.0850754082,
0.0738380104,
0.1805204004,
-0.0865612477,
-0.0737274587,
-0.2952451706,
-0.0313280001,
-0.0808858052,
0.1275687218,
0.2736896276,
-0.2907217443,
-0.1748834252,
0.271910131,
0.2462236285,
0.395080924,
-0.1202236637,
0.1272374243,
0.2753771544,
0.1972284317,
-0.3205421567,
-0.1585116982,
0.2482055873,
-0.1605395079,
0.0703759119,
0.2588650584,
-0.0053535663,
-0.1616199166,
0.0416752547,
0.109561488,
0.3554961085,
-0.1286275238,
0.1150353849,
-0.1055822968,
-0.003898252,
-0.1538095623,
0.0662344024,
0.0418538116,
0.2328318655,
0.7362143993,
-0.1257957816,
0.1040982082,
-0.4056331515,
0.1632435173,
-0.0487118736,
-0.6907132864,
0.1636541784,
0.375107199,
-0.200418219,
0.0376649424,
-0.2002522647,
0.435937345,
-0.4588372111,
-0.030442182,
-0.1829076856,
0.1219525784,
-0.2052730024,
-0.0144394785,
0.1458820701,
-0.1242273152,
-0.2728483081,
-0.0481207222,
-0.0287610646,
-0.1988631487,
0.3789031208,
0.1070110798,
-0.263030529,
-0.2015578449,
0.1357065439,
0.1699093878,
0.2180937678,
-0.3574671447,
0.2478872091,
-0.0779870376,
-0.0820786357,
0.1299029589,
0.1735709161,
0.5013977885,
0.2809213698,
0.0707978234,
0.2174233049,
0.0229815971,
-0.1285044551,
-0.2220835239,
0.2500050366,
0.0155390613,
0.339538753,
0.20718427,
0.1622638255,
-0.143785283,
-0.083573617,
0.1611058712,
0.2301978469,
-0.2240372449,
0.5022640228,
-0.3898712397,
-0.2849796712,
-0.2181778103,
0.1364946663,
-0.5349043608,
0.0649263337,
0.0866797119,
0.1992293596,
0.2909303606,
-0.2516125441,
0.1108489558,
-0.0459299423,
0.3562532663,
0.1658024788,
0.0648050755,
-0.2455943674,
-0.2477180511,
-0.7577751875,
0.246513918,
-0.0787993744,
-0.0816407576,
0.1872540116,
0.1978060007,
-0.2379468828,
-0.0519824326,
-0.0008515855,
0.0256334674,
0.3602198958,
0.1129863262,
-0.3824450374,
-0.13873294,
0.0782744288,
-0.0492963046,
0.0544913933,
-0.3725679517,
0.1263584644,
-0.507992506,
0.0351008773,
0.0988068432,
-0.1641854495,
0.1969135702,
0.0705330297,
0.4982849956,
-0.0376920104,
0.3045736551,
0.0173748657,
-0.1567619741,
-0.6732807755,
-0.0673639774,
-0.1394058913,
0.3545387089,
0.1344242543,
0.340439111,
-0.2917601764,
-0.0594924241,
-0.2812423706,
0.2554523647,
0.14459984,
0.0735234916,
-0.0078479163,
0.0126824845,
-0.1204615086,
0.1674372554,
0.2154099196,
0.0834822357,
-0.012750091,
-0.043704778,
-0.3620734215,
-0.4809340537,
0.721598506,
-0.0405095294,
-0.1685137898,
-0.2162559181,
0.4100281596,
0.1613395363,
-0.2120658904,
-0.3983772099,
0.1647354662,
0.5024664402,
0.1383817345,
-0.2245300114,
0.0906324685,
-0.2353202254,
-0.0083674556,
-0.095178932,
0.03950518,
-0.0266615786,
-0.1184292063,
0.3332894742,
-0.1559800059
] |
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.1457878947,
0.0401422866,
-0.0529892631,
0.4768226147,
0.1063419804,
0.2229724228,
0.1550247073,
0.3400091529,
-0.2390941679,
0.0082268072,
0.0357940793,
0.4321308732,
0.0995689407,
0.1382742971,
-0.0019155741,
-0.1908647269,
0.058264561,
-0.0400952771,
0.0514684245,
0.0135785528,
-0.2260536551,
0.4534675181,
-0.0086118169,
-0.0035446566,
-0.2412651032,
-0.0820141137,
-0.0630133301,
0.1975129843,
-0.1947796643,
-0.2986231744,
0.2238187641,
-0.0007782569,
-0.2992435992,
0.407923311,
-0.000105777,
0.1115242019,
0.3177173138,
-0.0546915531,
-0.2763530016,
-0.3126667738,
-0.1179976761,
-0.1995795965,
-0.1801235229,
-0.310808748,
-0.2244888991,
-0.40728423,
-0.0359191783,
-0.1976815164,
0.4339145124,
0.2254713923,
0.2889286876,
0.0939773098,
0.3655748069,
0.0138636464,
0.1234834343,
0.3481935561,
-0.0990861505,
0.1498705596,
-0.0261066966,
0.2428706139,
0.0618627369,
0.534032166,
0.0121385511,
-0.1359423995,
0.3161493838,
-0.0881339461,
-0.1343108714,
-0.2345808297,
0.3665961921,
0.2039397061,
0.5051333308,
-0.3382625878,
-0.2950500548,
-0.3582284153,
-0.0540363379,
0.044196602,
0.3174577355,
0.15737921,
-0.085003227,
0.2246192247,
-0.1565224826,
-0.1283190697,
-0.0585854277,
0.1186566353,
0.0848707631,
0.1772662699,
-0.1670171171,
0.1165412813,
-0.1810569465,
-0.2725031972,
-0.0729674771,
-0.3031311333,
-0.2434516251,
0.1057293639,
-0.1498847008,
-0.1740513444,
0.1840365529,
-0.1226231754,
0.356120646,
0.0199347064,
-0.0834138989,
0.0302597135,
-0.1282667667,
0.0784089491,
0.2941548824,
0.066467084,
0.2865288258,
0.1005909666,
0.0432851315,
0.3054366708,
-0.0957473218,
-0.0153025705,
0.2361127734,
-0.2029716522,
-0.0158881973,
-0.0455249697,
0.3907975554,
-0.1099098399,
-0.1303402781,
0.3161220849,
-0.3122201264,
-0.1377913654,
-0.0887380838,
0.3365527987,
-0.1041637361,
-0.1737516969,
0.0579556674,
0.1500874013,
-0.075979121,
-0.1040368229,
-0.2383496165,
-0.0655814186,
-0.0106330495,
0.0740005299,
0.0487980284,
-0.3156559765,
0.5672348738,
0.1093741059,
-0.0547515452,
-0.4071510136,
0.0890468732,
0.0703374818,
0.018115053,
0.2034136951,
-0.1953361332,
0.212166667,
0.0029760667,
-0.2547073364,
-0.1380572021,
0.0224879999,
-0.3546999097,
-0.2375630736,
-0.186722666,
0.2677463889,
-0.0865124241,
0.101725176,
-0.1889077127,
0.2865264416,
0.2674295902,
-0.0266441181,
0.01120051,
0.1325134933,
0.0306420587,
-0.2472921759,
0.1174987257,
0.3622021675,
-0.2075220793,
-0.1408250183,
0.1055185869,
0.1386900097,
-0.0218916424,
0.0166035146,
-0.1378026903,
0.2620958388,
-0.2063106596,
0.1565947831,
-0.0173677243,
-0.3505878448,
-0.2432556748,
0.2392065376,
0.0047562048,
0.2748709321,
0.1912212521,
-0.0517985635,
-0.0962356552,
0.1135014594,
0.3098187745,
0.0792004615,
0.1609460711,
0.222157076,
-0.2047822624,
-0.4019451141,
-0.0886186957,
0.095118314,
-0.1413315684,
0.0513562225,
0.147485286,
-0.0433720388,
0.3624109924,
-0.0345610827,
0.0621009283,
0.3707373142,
-0.0492513664,
-0.0897911713,
0.2745544612,
-0.0244213287,
-0.5704758167,
0.1188768074,
0.0124509251,
0.2495315224,
-0.2598679364,
-0.2070998847,
-0.3331194818,
-0.1166167334,
-0.3170586228,
-0.2710929513,
0.2438493669,
0.198249355,
0.0582689904,
-0.0029129665,
-0.1119039506,
-0.0682864264,
0.134584561,
0.1485813558,
-0.8418691754,
0.0498395041,
-0.2129893899,
0.080418244,
0.2350144535,
0.1320937872,
0.178534016,
-0.1546062082,
-0.0937623158,
0.3380414248,
0.0430232212,
0.2134327888,
-0.0276988633,
0.2834198177,
0.1190686375,
-0.1272167563,
0.0026943195,
0.3282431364,
0.0061991466,
-0.0770041049,
-0.1966424733,
0.5660511255,
0.1556258351,
0.1487801671,
-0.1113552079,
-0.0827237889,
0.3291033208,
0.0196896847,
-0.1956840754,
-0.3322224319,
0.1007924527,
-0.0287546106,
0.0456186533,
0.0467656106,
-0.3251133859,
0.1408965886,
0.6347139478,
0.0261399988,
0.0073851245,
0.0732501075,
-0.2073470801,
-0.0869324505,
0.0815154761,
0.2034509182,
0.3029953539,
0.2047735751,
-0.2401098758,
0.1650706381,
0.1505338699,
-0.2791336775,
0.2635055482,
-0.0394196063,
0.1640022099,
0.2611383796,
0.2849473655,
-0.06388776,
-0.3041080236,
0.1152420565,
-0.037274804,
0.1826794595,
-0.3774652481,
0.2238548845,
-0.1475861222,
-0.1229845881,
-0.2147876322,
-0.2431919128,
-0.3269702494,
-0.2343282402,
0.114937894,
-0.0334602743,
-0.2041691393,
0.1390652806,
0.2810514271,
0.0298619922,
-0.0279995538,
-0.0193296932,
-0.4172319174,
-0.2008634657,
-0.1176668927,
0.050974261,
0.1550176293,
-0.1096061245,
0.213026464,
-0.3792507052,
-0.145882085,
-0.315436393,
-0.4999272227,
0.2528181672,
-0.1550462395,
0.5203308463,
0.208125636,
0.2512640953,
-0.0175760072,
-0.2799646854,
0.3669068217,
0.2514347732,
-0.3487677276,
0.1275801361,
-0.1383167952,
-0.0640731081,
-0.062976338,
-0.4735099971,
-0.1007247418,
-0.2338858396,
0.3656721413,
0.1424442977,
0.2632221282,
0.6181695461,
0.0286193043,
-0.1326426864,
-0.3063796759,
0.4378253222,
-0.3224540949,
-0.6928201914,
0.1458531618,
-0.2717384696,
-0.3099215627,
-0.0869622901,
0.1160565317,
0.2011223435,
-0.341342926,
-0.5350948572,
-0.2200460732,
-0.0060970779,
0.1768635958,
0.0011523077,
0.2191347331,
0.1107886583,
0.1014790908,
-0.0868371502,
-0.2585105002,
-0.3038444221,
0.0307264701,
-0.046149049,
0.413017869,
-0.0031143629,
0.2360235304,
-0.0675426349,
0.280798316,
0.4191533029,
-0.103831619,
0.1003283039,
-0.1449593902,
0.1923128814,
-0.2088392526,
-0.3092527092,
0.1237520054,
0.0046161474,
0.0678473562,
0.3873573542,
0.1494342387,
0.0962554142,
-0.1694511026,
-0.0993094668,
-0.6170861721,
-0.3313489258,
-0.0105503825,
0.0282101836,
0.0156982876,
0.2296834886,
0.1860482097,
-0.198126018,
-0.0875740945,
0.167774871,
0.35744977,
0.0115140062,
0.0506598055,
-0.3571624458,
-0.2085380703,
-0.3496343195,
0.2500419319,
-0.1260148436,
0.073883988,
-0.0058295615,
0.1490649134,
0.0586056337,
-0.1595758051,
0.6097591519,
-0.1528534144,
0.1568208635,
0.0101711284,
0.2056984156,
-0.0279193465,
-0.0460850187,
0.0388494097,
0.4127777219,
0.1679826975,
0.7363843322,
-0.4434216022,
-0.1499177814,
0.1074353456,
0.0399352796,
-0.2290534228,
-0.3228268921,
-0.2562302947,
-0.4385032356,
-0.3784906268,
-0.2462125421,
-0.1504314393,
0.3239047229,
0.1287077218,
-0.1380186826,
0.2028112859,
0.1479051709,
-0.0279021375,
0.3254075646,
0.2495109588,
0.1507765949,
0.2005640268,
0.0883946419,
0.3398101926,
0.4530973732,
0.6804468036,
0.1602421999,
-0.3058867157,
-0.1854249537,
-0.1778445095,
-0.0007922138,
0.1976078898,
-0.1164812893,
0.1874602735,
0.2400570214,
0.1372127384,
-0.1013554782,
-0.2747013271,
0.3978068531,
0.089465186,
-0.3039075136,
-0.3379630148,
0.4962551296,
-0.1628098935,
-0.0984535888,
-0.0544000864,
0.1810120195,
-0.3893884122,
0.4970276058,
-0.0196783002,
0.9072644711,
0.1717194915,
-0.0363115557,
0.1672074199,
-0.2376790792,
0.6262364388,
-0.2435285449,
0.0277064294,
-0.4359316826,
-0.0159375407,
0.0963888094,
0.002276856,
0.1277962625,
0.2750008404,
-0.1994231641,
0.1044000164,
-0.1537531018,
0.0744256228,
-0.2134492993,
0.1527741104,
-0.1339102685,
-0.1001509652,
-0.6485548019,
0.2162670344,
-0.1340776831,
0.2843233943,
-0.033745721,
-0.165971145,
-0.159703359,
-0.3566292822,
-0.2164777368,
0.0275528524,
-0.2082717568,
-0.1144606546,
0.4093918502,
-0.1263096482,
0.0895675123,
-0.0023252845,
0.4025226533,
0.2011943161,
-0.2376101613,
0.1958993822,
0.0260189865,
-0.0614310354,
0.1079352126,
0.0391658358,
0.3096681237,
-0.0769104064,
-0.1865867227,
-0.0448819473,
-0.1477648914,
-0.1405670494,
-0.1647745669,
-0.1890875846,
-0.3345377445,
-0.2339899093,
-0.1377708167,
-0.0966913402,
0.0218700394,
-0.3250768483,
0.2027549744,
0.0051450492,
-0.2541189194,
0.0921354145,
-0.0458560437,
-0.1987368315,
-0.0721429512,
0.3532039523,
0.2008494586,
0.0216387529,
0.3913570642,
0.3041114807,
-0.119347252,
-0.2121893167,
0.1043156981,
0.3070048988,
-0.3281638324,
0.0105466964,
0.0983089656,
0.0214077812,
-0.0797633603,
0.396591872,
0.2284851521,
0.0951254517,
0.1138254404,
-0.5196157694,
-0.1872864366,
0.2986903191,
0.1129778773,
-0.0171122905,
0.1456820369,
0.0790128186,
-0.1356934458,
0.2035492957,
-0.4075134993,
-0.0666663498,
-0.1816497743,
0.1701082587,
0.1603740752,
0.0799801573,
0.1320692003,
-0.060136687,
0.1869913787,
-0.0830251798,
-0.2394561619,
-0.2734749019,
-0.1484696865,
0.1039513722,
0.0708252266,
-0.0348594189,
-0.0737836808,
-0.2020000666,
-0.1209959164,
-0.0504710265,
0.1953821331,
0.0575228184,
0.1782270074,
0.2218272835,
-0.1442472339,
0.041896835,
0.0315934494,
-0.1338858455,
0.1066341624,
0.2410722673,
-0.0715848804,
0.1054518372,
-0.4267305434,
0.0500707924,
-0.078398779,
0.2025316358,
-0.173305586,
0.4281404912,
0.3976959586,
-0.356711328,
0.0561240539,
0.3893375993,
0.3376654685,
0.3005209863,
-0.2515507638,
0.1534406692,
-0.0235085301,
0.2705778778,
-0.3498670459,
-0.2758151591,
0.2064149976,
-0.1185998172,
0.0424188226,
0.0232669264,
0.098401472,
0.1095157489,
-0.2196791768,
0.0223610979,
0.4810910225,
-0.122314252,
0.045024354,
0.3552243412,
-0.0936721414,
0.0441396683,
0.4439207017,
0.2615416944,
0.1219501123,
0.3352990448,
-0.0303633902,
0.2382007986,
0.2425149679,
0.1473101676,
-0.0039468431,
-0.1024476737,
0.4072239399,
0.3074491918,
0.0694721714,
0.0872904956,
0.1084564775,
0.2912019789,
-0.0150105171,
-0.0678683221,
-0.205928579,
0.1513767987,
-0.0357831903,
-0.2045347542,
-0.4539463818,
-0.2694565952,
-0.0761115551,
-0.1581044048,
-0.3115894198,
-0.2052868605,
0.0853335559,
-0.1223784238,
-0.224293381,
-0.3759253621,
-0.0284937378,
-0.033775501,
0.304554522,
-0.2974302173,
0.4509522915,
0.2333947569,
-0.1500898004,
0.1736543924,
0.497361958,
0.4691580534,
0.139422074,
0.1619140953,
0.0425575711,
-0.1611883193,
-0.1774739623,
-0.0831260756,
0.3151033819,
0.2066233158,
-0.3417830765,
0.2389534414,
0.1919294745,
-0.2252561897,
-0.0630817562,
0.3651885688,
0.2124390304,
-0.0102098985,
-0.1332976818,
-0.5007306933,
-0.1973345578,
-0.0978455693,
-0.1543737203,
-0.4194020033,
-0.2621980011,
0.3703798652,
0.1630396396,
0.263790369,
-0.1100214198,
0.1605486572,
-0.0822907984,
0.4584309459,
0.2943877876,
-0.1319661736,
-0.1145555079,
-0.1008971408,
-0.3746996522,
0.1558756679,
0.1484064907,
-0.0309011433,
0.0663361624,
0.1782248467,
0.1988011897,
0.0045797331,
-0.0795111284,
0.0059815412,
0.0064124991,
0.2736483216,
-0.2959452569,
-0.1168017983,
0.0176428761,
0.0351331271,
0.0999383107,
-0.0242990293,
0.2786883116,
-0.0703229457,
0.0238398258,
-0.2231589109,
0.1699510664,
0.1513523608,
-0.1464560777,
0.1923554689,
0.0987251326,
0.1606474966,
-0.2993291318,
-0.3821367919,
-0.177275002,
-0.2946634889,
-0.2435608804,
0.4900180101,
0.0125850616,
0.5237451792,
0.1454436779,
-0.0820452273,
-0.1965851188,
0.0187696591,
-0.0781195015,
-0.3165511489,
-0.4513060451,
0.2173181623,
-0.1105308533,
0.0250769686,
0.028220892,
0.3956523836,
-0.0075393119,
0.2020113915,
-0.2546000481,
-0.4512335062,
0.5660299659,
-0.3079727292,
-0.1830759794,
0.1965762824,
0.1448822767,
-0.1755111665,
-0.3089016676,
-0.4869861305,
0.2062942088,
0.3145411611,
-0.1656983942,
-0.0797582343,
0.0009095148,
-0.2106132954,
0.0502119251,
0.0037507715,
0.0310066026,
0.2694350183,
-0.2553670704,
0.0571248792,
-0.0974857807
] |
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.4683198333,
-0.0467546806,
-0.0979573652,
0.1375528574,
0.1663959324,
-0.2239753008,
0.1926612556,
0.4674961865,
0.0628534555,
0.2362470627,
-0.0067692022,
-0.0470786951,
-0.4149928987,
0.2554931939,
0.0666617155,
-0.1503152102,
0.0009769521,
0.0538055599,
0.2009109855,
0.0540025271,
-0.2041479051,
-0.0604097731,
-0.0322796367,
-0.3867236972,
0.1372655183,
0.1212855875,
0.1237368584,
-0.1005210578,
-0.5439123511,
-0.4741577208,
-0.0997941941,
0.3655939102,
0.3324321508,
0.4450814128,
-0.0001090667,
-0.1867187023,
0.3261320591,
-0.2225365341,
-0.3541294336,
-0.3582729995,
-0.3125938475,
-0.0820247978,
0.118079409,
-0.0586485043,
-0.0832975283,
-0.052916348,
0.0051999497,
-0.4320713282,
0.2591352761,
0.4835057557,
0.1480431706,
0.2258725166,
-0.0629004166,
0.3467930853,
0.3124316037,
0.3924541175,
-0.1639554948,
0.0028929077,
0.2594113946,
0.1911758184,
-0.0581255257,
0.1383457184,
-0.1698185503,
0.1033103392,
-0.0566329882,
0.0279627331,
-0.2206063718,
-0.5073229671,
-0.0161742605,
0.5063698888,
0.4199714065,
0.0651928484,
-0.4760580063,
-0.2841736674,
0.1523336768,
0.0003063545,
0.2511094809,
0.1182077229,
-0.3653725088,
0.1618279815,
-0.3606186211,
-0.0820077583,
-0.2226945311,
0.1248640493,
-0.1203312576,
0.2459638417,
-0.0434023701,
-0.0680060089,
0.0655301288,
0.1497652531,
0.4056749344,
-0.2479864508,
0.3087380528,
0.0348310806,
-0.0393289812,
-0.2037237585,
-0.1606527269,
0.023213774,
0.1399275512,
0.2566771805,
0.3086074293,
0.2102728784,
-0.1491982043,
0.2135017514,
0.0305541623,
-0.0383743942,
-0.0746152624,
-0.0697007179,
0.2174673826,
0.5407653451,
-0.003260213,
-0.068725422,
-0.0720641539,
-0.0631118417,
0.1853892952,
0.1223773658,
0.4066692293,
-0.0915878341,
-0.342674911,
-0.1505704671,
-0.3363801539,
-0.2536008656,
0.1648761779,
0.2561690509,
-0.171984911,
0.4266876578,
-0.0319467038,
0.3137049675,
0.0381047204,
-0.2230693102,
0.1180704832,
0.065703392,
0.2028969526,
-0.0114825182,
0.3926182389,
-0.2817877531,
-0.2386937439,
-0.0895163044,
-0.0203913804,
0.070417732,
0.1470765322,
-0.0729338378,
0.4420579374,
-0.0253237914,
-0.1359641105,
-0.0063474937,
0.0284750499,
-0.1936661452,
-0.2635313869,
0.0223021917,
-0.2017054409,
-0.0364398696,
0.0798284262,
0.2122865021,
-0.1962707192,
-0.1137211472,
-0.2630351782,
0.336170584,
-0.3221484423,
0.0124913575,
0.0336134881,
-0.0683285445,
-0.0419183411,
-0.0847016424,
0.2602457702,
0.5462824106,
-0.0980608389,
-0.0433496982,
-0.2405213565,
-0.1707349867,
0.5798385739,
-0.0437972918,
-0.0083252927,
-0.0659557804,
-0.1838843524,
0.1395738721,
0.4809135199,
-0.1480769813,
-0.1279194504,
0.4295482934,
-0.0217103027,
0.4528397918,
0.6081661582,
-0.1676055938,
0.2023664266,
-0.1279570013,
-0.0170406718,
0.5179783702,
-0.1611832678,
-0.0107261082,
-0.3075852096,
-0.3225667179,
0.2332601696,
0.1089289337,
0.2063653767,
0.1164505854,
0.3067208827,
-0.1911922544,
0.1745194942,
-0.1807514876,
0.0947831944,
-0.2880553901,
0.5135549903,
-0.1454492807,
-0.1516350806,
-0.2969726026,
-0.2235252112,
-0.0345312245,
-0.0053608697,
0.1067872196,
-0.5588930249,
-0.3448258042,
-0.1206656098,
-0.1046220586,
-0.1249413937,
0.0593876988,
0.1944292188,
0.2214223742,
-0.2366073132,
0.0891406015,
-0.2099662274,
-0.0000204855,
-0.1156355739,
0.1792645603,
0.109158203,
0.2531506717,
0.1588610113,
0.065115869,
0.4046077132,
-0.0879115835,
0.220845446,
-0.0490315631,
-0.2288407832,
0.1611864418,
0.1499029845,
0.4502603412,
0.1342957914,
0.1967619509,
0.3344067633,
-0.2108051777,
-0.199112609,
0.5702887774,
0.1838455051,
0.1385807395,
-0.1338569373,
0.2535954714,
0.0726740882,
0.0099193277,
0.2294877619,
-0.0721121952,
0.16888161,
0.0099145146,
-0.1288589239,
-0.2819778025,
0.1058613062,
-0.0125205694,
-0.153864041,
0.0313941799,
-0.1393786371,
0.0554552674,
0.3448435366,
-0.195620954,
0.0726766363,
0.3713410795,
-0.0236742832,
-0.2375597656,
0.0598792806,
0.4811075032,
0.2880631685,
0.0595035441,
0.3818356693,
-0.1275046468,
0.1442793459,
-0.2373070717,
0.2923408449,
0.000240184,
-0.273444742,
0.1132260561,
0.0885426998,
-0.0658788383,
-0.3768075407,
0.0178049933,
-0.0038293996,
-0.0365525559,
-0.4186421037,
0.0290677957,
-0.5251240134,
-0.036029093,
-0.2480198592,
-0.138954103,
-0.0589399524,
-0.1279435009,
0.2919636965,
0.2840202749,
-0.1698156148,
-0.0176667515,
-0.2772932351,
0.438801676,
0.0414904915,
-0.2065508962,
-0.0967263654,
0.1288217157,
0.0043228343,
0.1860979199,
0.6305444837,
0.1073829755,
0.4484096467,
-0.3081640303,
0.0962823257,
-0.624953568,
-0.2172112614,
0.0335562713,
0.0587059855,
0.4059969187,
0.0810814276,
0.2308991104,
0.1287959665,
-0.3905831575,
-0.0668748841,
-0.1540996432,
-0.0005738622,
0.2530429065,
-0.0182125475,
0.0828403831,
-0.101162158,
-0.6140938997,
-0.193452239,
-0.3065446317,
0.1677134782,
0.0852087513,
0.1408645958,
0.0646377355,
-0.0652587786,
-0.1110419706,
0.0727029219,
0.2945083082,
-0.0126773668,
-0.3376012743,
0.4186655581,
-0.1411740035,
-0.225903675,
0.0813954547,
-0.0794176906,
-0.1551601887,
0.7107821107,
-0.0593885593,
-0.1276242286,
-0.0179897249,
-0.0429532304,
0.1628356874,
-0.2291651368,
0.1578844935,
0.0400511846,
-0.0961627364,
-0.1579544097,
0.402549088,
-0.1899677962,
0.1545594335,
0.324919641,
0.1847123206,
0.0663636401,
0.1059690937,
0.2219645977,
-0.0338329524,
-0.0687347576,
0.6299157143,
0.1036639288,
-0.0545414127,
0.1048763618,
0.0151893282,
0.3104053736,
-0.2058426291,
-0.1948581636,
0.3442344964,
0.1803891659,
-0.1539151669,
-0.3076986372,
0.2331072092,
-0.4765741825,
-0.1373844445,
0.3630083203,
0.1020594835,
0.3724052012,
0.0023022853,
0.0761034042,
0.1107170209,
-0.2261271626,
0.1746571511,
0.5635551214,
0.4419564009,
-0.0829790458,
-0.1235203147,
0.0987975672,
-0.3718416095,
0.3634103835,
0.3945050836,
0.189553991,
-0.1086297631,
-0.1734787524,
0.1140321791,
0.0420815274,
-0.072690472,
-0.6443422437,
-0.2066244483,
-0.1155283898,
0.2094793469,
0.193102181,
-0.0305150449,
-0.3284290135,
-0.1226560995,
-0.0249666907,
0.1300155818,
-0.2844111621,
-0.0322237238,
-0.0306344684,
0.2318107784,
0.1423319578,
-0.0509389415,
-0.1179795191,
-0.1114744097,
-0.2214979231,
-0.0873977393,
0.1017468199,
-0.0670053512,
-0.5361402631,
-0.2599615753,
-0.0246619862,
0.2275417596,
0.4380739927,
0.2345820665,
0.1742514819,
-0.1007442027,
0.0362850726,
-0.0122567192,
0.1975367069,
0.4364739656,
0.3614237309,
0.0574341565,
-0.467852354,
0.0148501415,
-0.076424472,
-0.038059283,
0.2395372689,
-0.2061875015,
0.3483467102,
0.4832248688,
0.333784014,
-0.4939824343,
0.1397074461,
0.4016365707,
-0.2434223592,
-0.4077296555,
-0.7770463228,
0.3561583459,
-0.0597181581,
-0.0468619689,
0.2563316822,
-0.0173401963,
-0.221823141,
0.0859866738,
0.1644853204,
0.9456915259,
0.0091853403,
-0.278842181,
0.1633625031,
-0.4143882692,
0.0345199965,
-0.396530956,
-0.0209677629,
0.0810820833,
-0.1224764585,
-0.3990935683,
-0.0608598292,
0.4578853548,
0.0664070472,
-0.5342297554,
0.052847527,
-0.0131357992,
0.2774663568,
0.1687205583,
0.4378342927,
-0.6074435711,
-0.0628859699,
-0.3596732318,
0.1476642042,
-0.1431393176,
0.1227681339,
0.0936428159,
-0.108579807,
0.0897910669,
-0.0838833898,
-0.2090047747,
-0.1965208203,
-0.4427072108,
-0.0325448364,
-0.2860933244,
-0.5322916508,
0.265670687,
0.0808722153,
0.0613878369,
-0.145204246,
-0.2330866307,
0.2294155657,
-0.030978417,
0.2384590209,
0.0420839489,
-0.3452260494,
0.4673250616,
-0.1069622338,
-0.0234377105,
0.0204798635,
0.0964671522,
-0.2299924642,
0.2641570568,
-0.2156565785,
0.2669362724,
-0.1431197971,
-0.1373483241,
-0.4070111513,
-0.2420140654,
-0.1871686876,
0.1247340813,
-0.0711026043,
-0.075829342,
-0.0959939733,
0.2370156497,
-0.1377303898,
-0.2342474759,
0.1525321305,
-0.016238695,
-0.0108402018,
0.1060643718,
-0.1014114916,
-0.3778632581,
-0.3085158467,
0.0213306192,
-0.0295632966,
-0.0453519225,
-0.0875551179,
0.1561723799,
0.0267273858,
-0.1257250011,
0.2406300753,
-0.1747753173,
0.1003922448,
-0.2013085037,
-0.3780128658,
0.0562125891,
0.0438468978,
-0.3011311591,
0.145893082,
-0.1954984069,
-0.0969646722,
0.229051277,
-0.1336569339,
-0.3066675365,
-0.0459631309,
0.029586859,
-0.0294146296,
-0.1491418779,
0.2581753135,
0.2873901427,
-0.1312530786,
0.1169519946,
0.0374179482,
-0.1622756571,
-0.1400840878,
-0.133920148,
0.1999059767,
0.1338274032,
-0.121590212,
-0.0150663974,
0.044964619,
-0.1110613793,
-0.1542439759,
-0.0489556417,
0.0220855121,
-0.0585147664,
-0.0492314734,
-0.0165114347,
-0.2595727146,
-0.3069773614,
-0.0104217147,
-0.283896029,
0.4272769392,
0.149551034,
0.0115612326,
-0.021305358,
0.0180672482,
-0.0427941643,
0.202346921,
0.2898601294,
0.2096708268,
0.3697498739,
0.0967876688,
-0.0352621675,
0.0552358627,
0.1889383942,
0.4606349468,
-0.0955195278,
-0.023852488,
0.2567822337,
0.2021659464,
-0.0994022265,
0.2095019519,
-0.1095348448,
-0.3000878394,
0.1835596561,
0.1834961474,
0.2072508633,
-0.1195417196,
-0.010423827,
0.0224418659,
0.0373196118,
-0.0289175734,
0.407563597,
0.3415366113,
0.1775429994,
0.2778353393,
-0.1512516439,
-0.3581094146,
-0.0371352211,
-0.2271773219,
-0.2344063669,
0.4020754695,
-0.0602523386,
0.2089105695,
0.0475347005,
-0.1020173952,
-0.0308525693,
0.0145246843,
-0.2661495805,
0.5484507084,
0.4545840323,
0.5620856881,
-0.2000775188,
0.0056184949,
-0.2480079681,
-0.024437733,
0.1375588477,
0.0045951135,
-0.120616667,
-0.2380753607,
-0.4402795732,
0.0100138262,
0.1284764707,
0.0774769112,
-0.1824947447,
0.4470052421,
0.11953298,
-0.1271870732,
-0.0981835425,
-0.2156851143,
0.5371820331,
-0.4945755005,
-0.0089919902,
0.2984816134,
0.1518823653,
0.4640013278,
0.06312906,
0.270262897,
0.2201010883,
-0.1132466942,
-0.0647803769,
-0.0853086412,
-0.1017664,
0.0401636884,
0.1459961981,
0.1537427455,
0.1427911818,
0.3194054961,
0.2111824751,
-0.0777762681,
0.2214151472,
-0.0933594629,
-0.2038184553,
-0.3882759511,
0.1006370559,
0.1147583798,
0.2198567241,
-0.3925490379,
-0.4492164254,
-0.2825178206,
0.1275816113,
0.0402085148,
-0.0920496061,
0.119623743,
0.0007097081,
0.0661054477,
0.2404971868,
-0.0128433108,
0.0600628816,
0.0689691827,
-0.0999471024,
-0.2770583928,
-0.7179276347,
-0.2123482674,
0.0953014493,
-0.0521785691,
-0.072329618,
-0.0959767103,
-0.0011962556,
0.3992810547,
-0.0945914909,
-0.0438440852,
0.2593011856,
0.2674333453,
-0.2682594061,
-0.3017501831,
0.2872593403,
0.183375597,
-0.4226429164,
-0.3086619973,
0.2992696464,
-0.1995315701,
0.0748500898,
0.0298300721,
0.0061791828,
-0.0273451339,
-0.0671392754,
0.4175610244,
0.2814016342,
0.526030004,
-0.3578934073,
-0.0784128755,
-0.0858025178,
0.1832467467,
-0.0490067154,
0.0498791598,
-0.0777490288,
0.66593647,
0.242689833,
-0.0229001157,
-0.2919482291,
0.5941691399,
-0.0465596505,
-0.17767106,
-0.4388509989,
-0.0921090916,
-0.1107231155,
0.0922904462,
0.1754117161,
-0.0133872852,
-0.066691801,
-0.2000309676,
-0.1337881982,
-0.4501071274,
0.2498960644,
-0.3008940816,
-0.2121910453,
-0.0282350238,
0.1491997391,
0.1342177391,
0.4660350084,
-0.5997118354,
0.0461441688,
0.2094111294,
-0.2047266215,
0.3059101403,
0.1697495878,
0.2519086599,
0.0730283484,
-0.1379056871,
0.0984831527,
0.0926521122,
0.0084116189,
-0.0297908969,
-0.2104873806
] |
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.3851111233,
0.1802146733,
-0.0012569798,
-0.0679101869,
0.5497627854,
-0.2189846188,
0.0627022982,
0.3480108976,
-0.2101944685,
0.12432307,
0.0086565251,
0.3338842392,
-0.0440219417,
-0.0246399958,
-0.1152012944,
-0.0089818547,
0.1046468765,
0.0598539673,
0.3436260819,
0.0075875358,
-0.3184524775,
0.1174138784,
-0.1806854308,
-0.0027262431,
-0.2734517157,
0.0927982628,
-0.057543993,
-0.0664324164,
-0.4653161466,
-0.7149302363,
0.1731105149,
0.0709629059,
-0.0604934581,
0.44333148,
-0.000109066,
-0.1288360804,
0.2636282742,
-0.2208128273,
-0.4332730174,
-0.452921927,
-0.1555379629,
-0.2812542915,
0.0101914536,
-0.1026845425,
-0.0918704122,
-0.3785423338,
-0.0429839306,
-0.0021675969,
0.2421519458,
0.3916676939,
0.2563031614,
0.2788758278,
0.0878584459,
-0.3278109431,
-0.0474800318,
0.0717540011,
-0.0416629575,
0.2062652409,
-0.156447798,
0.0919185653,
0.0697539672,
0.1396524608,
-0.2196808606,
0.1190993413,
0.0251570195,
-0.0775796026,
-0.1114926562,
-0.0601762347,
0.1122962609,
-0.0477880239,
0.3497333229,
-0.4587009251,
-0.3827282786,
0.1970101446,
0.0173573699,
-0.4542075396,
-0.0254985094,
-0.1006395519,
0.0167841427,
-0.1670010388,
0.034417063,
0.0062944437,
-0.0445959717,
0.1155721024,
-0.1596204489,
0.3486796618,
-0.2516731918,
0.079611145,
0.0394849256,
-0.0542566814,
-0.4969717264,
0.1073681638,
-0.2383055985,
0.0230438691,
-0.377296865,
-0.0650165752,
-0.0828536153,
-0.3516815305,
0.0969962478,
0.3739198148,
0.0210685991,
0.2644361854,
0.1377244145,
0.1189343855,
-0.0622324273,
0.5510034561,
0.3230520785,
0.1967888027,
0.0707692802,
0.2654047608,
-0.0412970223,
-0.0453925207,
0.0042821737,
-0.2698686719,
0.2463276088,
0.1067108661,
0.2557295859,
-0.1353616416,
-0.3971835375,
0.1474431157,
0.2378198802,
-0.0447645262,
-0.1319337636,
0.4307971597,
-0.2377204448,
0.172568053,
-0.0958557799,
0.2664756775,
-0.238955602,
-0.3424350321,
-0.2415786833,
0.0390882716,
-0.3046324849,
-0.107916221,
0.1816326231,
0.2411853671,
0.1305253208,
-0.0414059162,
0.4660550654,
-0.2226981372,
0.2804112136,
-0.2302055806,
0.060322158,
-0.0188268926,
-0.119918339,
0.02383909,
0.5161587596,
-0.6103891134,
0.0151251433,
-0.1123184934,
-0.2561793923,
-0.2588269711,
0.3433963358,
0.2879838049,
-0.2528566718,
-0.3133336306,
-0.4201454818,
0.2051165104,
0.0603079535,
0.0521519296,
-0.0012075811,
-0.046226427,
-0.1970328689,
-0.2614490986,
0.374124378,
0.3202639818,
-0.1077723503,
-0.1051596031,
0.1358283907,
-0.1713021547,
0.0858754069,
-0.2513414919,
0.0804902688,
0.2804732025,
0.1020600945,
-0.0613256991,
0.2927131355,
-0.3579612076,
-0.5469431877,
-0.0862496942,
0.0579453483,
-0.2599138916,
0.0062023592,
-0.1106048748,
0.5220206976,
0.0158237219,
-0.0154365646,
-0.0312898941,
0.1183200255,
-0.1374596208,
-0.2333330065,
-0.4542904496,
-0.0332780443,
0.0685944334,
0.5740547776,
-0.0187635142,
0.2364590913,
0.3137111962,
0.2896057069,
0.0075052413,
0.0306337792,
0.1310762167,
0.5953804851,
-0.1788104177,
0.2888139486,
-0.4382767677,
0.0940979421,
0.1595150679,
0.0832316503,
0.0736056566,
0.0023778009,
-0.2065862715,
-0.5189369321,
0.0128106158,
-0.2269900292,
0.0240943041,
0.2367415428,
0.1432616413,
-0.0748594403,
0.1702120304,
-0.2773278952,
-0.0676012635,
-0.1973084807,
0.2919338346,
0.1174833104,
0.2413864285,
-0.0157092083,
-0.3451884091,
0.2164436281,
0.3111028969,
0.2949578464,
-0.0879625231,
-0.1517489702,
0.4523435235,
0.3043159842,
0.1105448529,
-0.0066709081,
0.2907355428,
0.0779271349,
-0.2848579586,
-0.082273908,
0.4827956259,
0.0123697575,
-0.073299244,
0.0758531988,
0.3865855932,
0.0324069262,
0.1609558761,
0.0566229112,
0.2090730071,
0.0145336315,
-0.0445346124,
-0.1115887091,
-0.2812252939,
-0.1029723659,
-0.2905322909,
-0.1413837522,
-0.2448553294,
0.089852117,
0.0704853907,
0.2296762019,
0.1971510202,
0.1057664752,
0.0084908428,
-0.1468925476,
0.0489099137,
-0.1874103993,
0.2557055652,
0.2897591293,
0.1384318769,
0.0444403365,
0.0740776584,
0.0620139763,
0.0123118153,
0.1836153716,
0.1469644606,
-0.3406757712,
0.2635621727,
0.0756592825,
0.0884651989,
-0.1997728795,
0.0275213141,
-0.0363637283,
0.3163965046,
-0.0755243525,
0.1237702295,
-0.0936105326,
0.1945949793,
-0.0755662397,
-0.2289678305,
-0.0397201441,
-0.2019729763,
-0.0094105676,
-0.100734219,
0.1501654834,
0.4106090963,
0.0232318379,
0.2186755985,
0.0232600998,
-0.1518407315,
0.1562186629,
-0.1369854808,
0.0295174029,
0.0613609217,
-0.0998255089,
-0.2353055924,
0.3304954767,
-0.172077015,
-0.0926692411,
-0.1907322258,
-0.3452545404,
0.0945271328,
0.0551951192,
0.3043851554,
0.1725958586,
-0.1930789202,
-0.0501056649,
-0.0340399258,
0.3287702203,
-0.2375618815,
0.0633648708,
0.3274704218,
-0.1111546829,
-0.1580802947,
-0.0383773632,
-0.5256825089,
-0.0342419557,
-0.3555929065,
-0.0401229933,
0.32844612,
-0.0220830105,
0.1165079474,
0.3360469341,
0.1921485066,
0.143769145,
0.1019057035,
-0.2156794816,
-0.0004949226,
0.4178360701,
-0.2397293895,
-0.40764907,
0.2128312141,
-0.081508033,
0.2679240108,
-0.0091953557,
-0.3185968399,
-0.4406932294,
0.0532263331,
-0.0969678238,
-0.0705451146,
0.1420745403,
0.0384494103,
0.0709823072,
-0.2444827259,
-0.1577114761,
-0.1952127814,
0.0239676815,
-0.1525557637,
0.2881750464,
-0.223113358,
-0.0932206437,
0.5048214793,
0.8064695597,
0.3794752955,
-0.197930038,
-0.0522216335,
0.0602567941,
0.3590923548,
0.1488368064,
-0.3842600286,
0.1594088525,
-0.3968271911,
0.1137548983,
0.330804944,
-0.0407752767,
0.0853852779,
-0.0770145729,
0.0330930017,
0.0646856576,
-0.2049106061,
-0.189329952,
-0.0065215877,
0.1907668561,
-0.0057826927,
0.1585078239,
-0.2624434829,
-0.0677731186,
0.2687337697,
0.3583218157,
-0.3996655047,
0.0975512639,
-0.3530915976,
0.2276318818,
-0.2536464334,
0.3831905723,
-0.3001424372,
0.2082957923,
0.1580155343,
0.0468256921,
-0.0848772749,
-0.2429382205,
0.1623780727,
-0.0915281847,
0.0183960088,
0.1837429106,
0.0416086577,
-0.1694904417,
-0.0087942313,
-0.1914979666,
0.1758911014,
0.2852981985,
0.2649521232,
-0.3108694553,
0.0797829926,
0.1394041181,
0.255630821,
-0.2582016587,
0.0831908956,
-0.4989475012,
-0.0726925805,
-0.2127500027,
0.1450122148,
-0.1498372257,
0.0575317442,
-0.0410666578,
0.1880610883,
-0.4498627782,
-0.2235033214,
0.3454739749,
-0.1285298467,
0.2572481036,
-0.1535089612,
0.1203256845,
-0.0082113454,
-0.0148129566,
0.4275589883,
0.2811444402,
-0.04101393,
-0.4183300138,
-0.1800052673,
-0.0602440536,
0.3975877464,
0.2043884546,
-0.2897366583,
0.1413932145,
-0.0571307987,
0.2844456136,
-0.3118416369,
0.2358170897,
0.169766739,
0.1153326184,
-0.0460014008,
-0.2965558767,
0.0850742906,
-0.1428477466,
-0.0698102042,
0.1690170169,
0.1838863492,
-0.0244664401,
0.4124062657,
0.1249621138,
1.0602536201,
0.2460414022,
-0.1515905261,
0.3019744456,
-0.1289836764,
0.1023871377,
-0.3847407401,
0.1739912331,
-0.2857699096,
-0.2945435047,
0.0644803718,
-0.0543524623,
0.1569504589,
0.0145125687,
-0.4472407103,
0.1225603446,
-0.1259526908,
0.0808321089,
0.1830905676,
0.2007604241,
0.0973143354,
-0.0557937175,
0.129131645,
0.2571631074,
-0.1327042282,
-0.0920315832,
-0.1239516661,
0.1330196857,
0.1029100418,
-0.1203281656,
-0.1604493558,
0.0695374832,
-0.2480962574,
0.1179204211,
0.1963861436,
-0.105138652,
0.0773168653,
0.3369871974,
0.6103703976,
0.2923321426,
-0.1190740764,
0.1135116741,
-0.0668095127,
-0.048663862,
-0.0258177537,
-0.0811446905,
0.3567355871,
-0.0724525303,
-0.1762507856,
0.1584069878,
0.1312171072,
0.0021974046,
0.0420191884,
-0.0597675443,
0.3281682432,
-0.2919075787,
0.1386494637,
0.0143049518,
-0.1136602387,
-0.3486379981,
0.1937876642,
0.0259786192,
-0.3033921123,
0.3734671772,
0.0082072234,
-0.2121111006,
-0.0440051593,
0.5273149014,
0.0481277145,
-0.3048394024,
0.3915404081,
-0.2656287849,
-0.1693079472,
-0.2985634506,
-0.1753323525,
-0.1514132768,
-0.2239667028,
0.1547165662,
-0.1720932424,
0.1406961679,
0.2833087444,
0.3459923565,
0.3237283826,
-0.061742153,
-0.0836451575,
-0.1993487775,
-0.3199275434,
0.0277676042,
0.1979091614,
0.0105661675,
-0.2704557776,
0.070558317,
0.0064485287,
0.3164367676,
-0.3936088681,
0.2027149945,
-0.2121354043,
0.0717595071,
0.052845452,
-0.2563833892,
0.0203102268,
-0.0435715951,
0.0727556273,
0.0188473426,
-0.376701802,
-0.1912937164,
-0.3634167016,
0.1428383887,
0.1730635166,
0.1646031141,
-0.0813719556,
0.1350976378,
-0.1678639054,
-0.165314883,
0.064062722,
0.3893421888,
-0.1728257537,
0.2832192183,
-0.0623194128,
0.3497036695,
0.0564678758,
-0.1807608753,
0.2696946859,
0.2693117261,
0.1463213563,
0.0900448337,
-0.1290740371,
-0.0316120498,
-0.0615112036,
0.141976878,
0.2718564868,
0.0525012389,
0.3330374062,
-0.3786539435,
-0.0213357806,
-0.0195416771,
0.3227128685,
0.2083989084,
-0.1975056529,
-0.139137283,
0.0594747588,
0.2730634511,
-0.3722348809,
-0.0629856214,
-0.1746578813,
0.1714305878,
0.115925476,
0.2320192754,
0.3239715099,
-0.330737561,
0.212614879,
0.1382059753,
0.2896265984,
-0.2799566984,
0.5085769296,
-0.3556701541,
0.0754970163,
0.0331168137,
0.294171989,
0.0956101716,
0.2405016124,
0.2398037016,
-0.1697721928,
0.639395237,
0.1815480888,
0.0310279708,
-0.1532474607,
0.032987643,
0.2180236727,
0.0131996349,
-0.0650573522,
-0.1188617498,
-0.0887904167,
0.4944626689,
-0.1701446325,
-0.025069207,
-0.1897778958,
-0.3370117545,
0.0346337035,
-0.0128552988,
0.0006821348,
-0.2497464716,
-0.2808272541,
-0.2134660482,
0.2274003923,
-0.0283437986,
0.1051591858,
-0.0421128757,
-0.0221691038,
-0.1650319397,
-0.0216456987,
0.2968193591,
0.2125163972,
-0.3541482687,
-0.1242639422,
0.1371030211,
0.1513319165,
-0.0172598138,
0.3668431044,
0.4245292246,
0.3550611436,
-0.1583876461,
0.000766124,
-0.0975641683,
-0.0061912029,
0.0173358917,
0.264998734,
0.0491377339,
-0.4225720167,
0.2388219535,
0.2324981093,
-0.2302228808,
-0.1320459843,
0.1067541689,
-0.1956962347,
-0.3676965237,
0.6305990219,
0.1942393482,
-0.0205058046,
-0.1604814678,
-0.0636258796,
-0.5861014128,
-0.013174342,
0.3944789767,
-0.0346702114,
0.1571439654,
-0.2207565308,
0.1260534525,
0.0516831763,
0.1006789058,
0.1210246012,
-0.0353400484,
-0.3321740925,
-0.0545520522,
-0.6144714952,
0.2779047787,
0.2257884741,
0.0675520897,
0.0397282504,
0.2072093934,
-0.1789623648,
0.1978863925,
0.0010370236,
0.0218479559,
-0.0958747044,
-0.2136628628,
-0.6087861061,
0.0825025886,
-0.2039694488,
0.1171343923,
0.0295407735,
-0.268142432,
-0.2384241223,
-0.3822876215,
0.1150828451,
0.0105732158,
-0.3834080398,
0.2427309304,
0.0775855929,
0.4692176282,
-0.0435163453,
0.1849689633,
0.0606191345,
-0.1333983392,
-0.1014840007,
-0.0000465463,
-0.2621170282,
0.3020837307,
-0.0905427039,
0.4197925031,
-0.2192393988,
0.0498056486,
-0.2876782715,
0.170961231,
0.3208836019,
-0.5431159735,
-0.2115824372,
0.3529495299,
-0.013521729,
0.1922453791,
0.016540736,
0.3320553005,
-0.0361462012,
0.5384605527,
-0.3094085157,
-0.33739838,
0.5012771487,
-0.2783641815,
-0.3294883668,
-0.2559565604,
0.6030335426,
0.2151719332,
-0.0788853467,
-0.5270063877,
0.0631274953,
0.3534010053,
0.0524175391,
-0.2306410819,
0.1097532287,
-0.3694944382,
0.1211503372,
-0.0920550153,
0.3362957835,
-0.0609118231,
0.0165721904,
0.0852703601,
-0.1353363544
] |
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.3610987663,
0.1312096417,
-0.0056598815,
-0.1026849523,
0.4761408269,
-0.1557436287,
0.1335218698,
0.3350856304,
-0.0614675246,
0.118069835,
0.0635040328,
0.4146681428,
-0.0860368386,
-0.1110802665,
-0.0810956433,
-0.0622078553,
0.1325369775,
0.0672765449,
0.3208294511,
-0.0251735467,
-0.2997128069,
0.1096773595,
-0.2105327994,
0.0695405006,
-0.246949181,
0.0275088381,
-0.0339476131,
-0.0466945097,
-0.4527232945,
-0.6465783715,
0.2405425608,
0.1384064406,
-0.0376657546,
0.4237560332,
-0.0001106592,
-0.1028933972,
0.3035733402,
-0.1960429847,
-0.4353860915,
-0.4215499759,
-0.1519950032,
-0.3628085554,
0.0174228549,
-0.1062812656,
-0.0368336067,
-0.3589272201,
-0.0217848755,
-0.0480083637,
0.2329917699,
0.4084697664,
0.2475416511,
0.3381181359,
0.0511741899,
-0.3478782177,
-0.1333433092,
0.0854820013,
-0.0458650589,
0.2032530904,
-0.0625100881,
0.0833063498,
0.0917622969,
0.0576000027,
-0.2753891349,
0.1187607944,
0.1333264858,
-0.1312293261,
-0.132750392,
-0.0118353907,
0.0834127739,
0.0151527775,
0.3650405109,
-0.3823312223,
-0.3735579848,
0.2127170563,
0.0366064832,
-0.3824597895,
0.00914538,
-0.1123224348,
-0.0093317525,
-0.1700329483,
0.066435881,
-0.1201474145,
-0.0205984134,
0.0703742132,
-0.2472744286,
0.4081156552,
-0.2506109774,
0.0469715968,
0.0798313543,
-0.0848302618,
-0.4981860816,
0.0868943632,
-0.1984251738,
0.0335591175,
-0.3400897384,
-0.0250233542,
-0.0763027593,
-0.3464219868,
0.0813367441,
0.3945923746,
0.0487432852,
0.2591857612,
0.1699692011,
0.2089419961,
-0.1301802993,
0.4959831834,
0.2420792878,
0.2200369239,
0.1657261997,
0.201977402,
-0.0661538914,
-0.0687894225,
-0.1287661642,
-0.229753837,
0.2602816224,
0.0804348961,
0.3282785118,
-0.0755724087,
-0.513369441,
0.1752420813,
0.2400903702,
-0.0607882477,
-0.0440928936,
0.3927012384,
-0.2399065346,
0.1500323564,
-0.1535262764,
0.2635986507,
-0.2359531075,
-0.3667467833,
-0.2468983531,
0.0178702548,
-0.2878108621,
-0.1278099567,
0.1567810476,
0.1984193921,
0.131872654,
-0.0593955442,
0.3452294469,
-0.1717818081,
0.2690585256,
-0.2084927261,
-0.0340365134,
-0.0009564521,
-0.19240053,
0.0749275386,
0.4489348829,
-0.7316138744,
-0.1049163565,
-0.1289739907,
-0.3792111576,
-0.2902469635,
0.2612974346,
0.2740127742,
-0.2312806994,
-0.3622232676,
-0.4179078043,
0.2116138488,
-0.0123013929,
0.0543334112,
-0.0246529579,
-0.0373275056,
-0.2178055048,
-0.2653990686,
0.3607480824,
0.3120444715,
-0.1571212262,
-0.1470868886,
0.0469978042,
-0.1452469379,
0.0465562455,
-0.1418343931,
0.0897664502,
0.3025017381,
0.00398691,
-0.0378521867,
0.3772499561,
-0.3398386538,
-0.4797559679,
-0.0732090995,
0.0153639773,
-0.2394685298,
0.0264777187,
-0.0947666988,
0.5503351688,
-0.0114409337,
0.0148310978,
0.0521671176,
0.1185401082,
-0.245854944,
-0.1919906735,
-0.3879254758,
0.000823383,
0.0664247796,
0.5991951227,
0.0690895021,
0.2336751223,
0.3648747504,
0.2155064344,
0.0335603021,
-0.0352310054,
0.2000243366,
0.6257210374,
-0.1667006612,
0.2624936998,
-0.5427997112,
0.089425303,
0.139965117,
0.1393517107,
0.0019269066,
0.0035258662,
-0.1469540894,
-0.5078865886,
0.066866897,
-0.1458017528,
0.0626405627,
0.1951810271,
0.1813529432,
-0.1051509753,
0.2351350337,
-0.2970179319,
-0.0262003038,
-0.1130386069,
0.2730756104,
0.111434631,
0.2101031244,
-0.0158115085,
-0.2850120068,
0.2238167524,
0.2779826224,
0.2404209524,
-0.0966573432,
-0.1334518641,
0.4079408348,
0.2851324379,
0.1962303072,
0.006025285,
0.3215177059,
0.057276208,
-0.3230305016,
-0.1335031539,
0.4925208092,
0.0297265854,
-0.074432686,
0.0689797625,
0.3435505331,
0.110049352,
0.1087413058,
0.0434565358,
0.2713370919,
0.045142062,
-0.0510617942,
-0.0742412433,
-0.2531874478,
-0.087932989,
-0.2256305516,
-0.0866144001,
-0.1809443384,
0.0871173069,
0.0022349162,
0.3021743596,
0.1648404151,
0.1735634059,
0.0365758315,
-0.243998915,
0.0406365618,
-0.2193615139,
0.2514436841,
0.344807595,
0.1203911528,
0.06287653,
0.0848325789,
-0.0402028076,
-0.0243763886,
0.2261278033,
0.1047915742,
-0.4793454707,
0.2292712927,
0.0351155773,
0.1252467632,
-0.1896265745,
0.0216191579,
0.0023160574,
0.3032470644,
-0.1119339094,
0.1487007588,
-0.1841073632,
0.2805728614,
-0.0352870785,
-0.1682987809,
-0.0367315859,
-0.1768312305,
0.0316726677,
0.0094894916,
0.1756767333,
0.4028096199,
-0.0151249245,
0.3465368152,
0.0519649759,
-0.213138029,
0.1350444108,
-0.0875085071,
-0.0391140655,
0.0214332938,
0.0093575725,
-0.2057681829,
0.2946451604,
-0.1813661307,
0.0153841982,
-0.3245868981,
-0.3740166426,
0.0728440285,
0.0797594264,
0.4360912144,
0.1809328049,
-0.1662890017,
-0.0249089524,
-0.0552832484,
0.330190748,
-0.2599100769,
0.0595740341,
0.3426206708,
-0.0848998427,
-0.2088809311,
0.0111939516,
-0.4363762736,
-0.0135470582,
-0.3943406045,
-0.0577674806,
0.2302502692,
-0.1176096424,
0.0639884174,
0.223275274,
0.1488087624,
0.1653535962,
0.1498260349,
-0.1831986904,
-0.1005551293,
0.508099556,
-0.192951858,
-0.4019783735,
0.1647428125,
-0.1132766902,
0.2334118932,
0.0597603805,
-0.2861008644,
-0.3820081353,
0.0010042428,
-0.0054818708,
-0.0573164113,
0.1456346661,
0.0758751854,
0.029179465,
-0.2026304454,
-0.1702328473,
-0.2736972272,
-0.0046374812,
-0.1380310804,
0.2538140714,
-0.1768518835,
-0.1441242844,
0.4649414718,
0.8005059361,
0.3342852592,
-0.288251102,
0.0038185688,
0.0407601446,
0.3907129765,
0.228587538,
-0.4275701642,
0.0983101577,
-0.3324218094,
0.1017849743,
0.3215205967,
-0.0136995381,
0.0427919738,
-0.1092607528,
-0.0366051793,
0.0721486732,
-0.1894226372,
-0.1876776367,
-0.0659535229,
0.1959962696,
0.0204110406,
0.1392488927,
-0.2542546391,
-0.1077836007,
0.3225866854,
0.4397411346,
-0.3692905307,
0.1287803501,
-0.4256251156,
0.2170370221,
-0.1380231082,
0.3367148638,
-0.3182201385,
0.2477909178,
0.0971422717,
0.0606607199,
-0.1070527211,
-0.2416161746,
0.2020466626,
-0.1269610077,
-0.0091188466,
0.1536357999,
0.0883920267,
-0.1997351795,
0.0142819816,
-0.1839622259,
0.1971759349,
0.2183216065,
0.2564287484,
-0.2091736346,
0.0493800901,
0.0505624674,
0.2396544069,
-0.2843269408,
0.1172308624,
-0.4796840847,
-0.0815594643,
-0.0956761688,
0.1743688285,
-0.2040810138,
0.0313083678,
0.0708273128,
0.1279579848,
-0.5701901317,
-0.2751621008,
0.3760760427,
-0.1228818223,
0.2080383748,
-0.2716875374,
0.1411865354,
0.0255748574,
0.0295212306,
0.4906158447,
0.276142329,
-0.0685029998,
-0.4534590244,
-0.1442543566,
-0.0579506159,
0.3826781809,
0.1869012862,
-0.3189709485,
0.1494174898,
-0.0263442658,
0.2732052207,
-0.4339582026,
0.2760275304,
0.2799222469,
0.1538552493,
-0.0894291326,
-0.2863087356,
0.040482942,
-0.0427837856,
-0.1177439839,
0.133059606,
0.1954040527,
-0.0473233834,
0.3297822475,
0.1252311319,
1.0295549631,
0.2497768402,
-0.1450736672,
0.2048948705,
-0.122555472,
0.1770913899,
-0.3889916837,
0.1491997242,
-0.2145757675,
-0.3497615755,
-0.002797721,
-0.0786146,
0.2461262047,
-0.08120583,
-0.5005112886,
0.1482785642,
-0.1056861877,
0.122995235,
0.2017677724,
0.1952264905,
-0.0193811655,
-0.0214124564,
0.1440597475,
0.223828271,
-0.0857430771,
-0.0018102595,
-0.1456820071,
0.1349674165,
0.1607820988,
-0.1289908588,
-0.2532972395,
-0.0202069897,
-0.2226049304,
0.1560370177,
0.1556520909,
-0.0548110083,
0.0538821071,
0.3182271719,
0.678384304,
0.2679536641,
-0.1529317498,
0.1743215322,
-0.1608424485,
-0.0177350417,
-0.0590676777,
-0.1327257603,
0.4723625183,
-0.0432027839,
-0.1407503337,
0.1197523028,
0.1525698304,
0.0058707236,
-0.060047105,
-0.0463878177,
0.2235934585,
-0.2058604211,
0.1211572737,
-0.0558938496,
-0.0407832563,
-0.3475444913,
0.1786040217,
0.0588853844,
-0.2360816449,
0.4113481641,
0.0066552572,
-0.2602078915,
-0.0435957909,
0.511790812,
-0.0100947088,
-0.3750861585,
0.364805311,
-0.3749401569,
-0.1787808686,
-0.3353438973,
-0.1208833084,
-0.182365641,
-0.1781063676,
0.2070337832,
-0.2056369483,
0.1281836778,
0.2462081909,
0.3060655892,
0.3564523757,
-0.182808131,
-0.0865224376,
-0.2616468966,
-0.2805154324,
0.0718391687,
0.0743190572,
-0.0332879797,
-0.3151585162,
0.0752733201,
0.003147773,
0.3176879585,
-0.3684148788,
0.3009017706,
-0.2032567114,
-0.0049923649,
0.0438931175,
-0.1541392505,
0.0154808266,
-0.0865899026,
0.0496662185,
-0.0569047518,
-0.407409817,
-0.160100013,
-0.3775689602,
0.1592618525,
0.1250624806,
0.1932133138,
0.0265913662,
0.0696500614,
-0.1082246155,
-0.1402433962,
0.0531244911,
0.4404628873,
-0.1807346344,
0.2637672722,
-0.0732501224,
0.3241831958,
0.0072239381,
-0.1600697041,
0.2754863799,
0.2447523475,
0.1387675703,
0.1572493464,
-0.1430184692,
-0.0202981327,
-0.0802931562,
0.2010243237,
0.3011230826,
-0.0488016903,
0.3822993934,
-0.3700414598,
-0.0139491986,
-0.0711533129,
0.2680605054,
0.3289756477,
-0.1407838166,
-0.0768893659,
0.2062951028,
0.2511439323,
-0.3484356403,
-0.083676964,
-0.0977707729,
0.1452627778,
0.1164644137,
0.194840461,
0.3775345981,
-0.2665852606,
0.1853556037,
0.0541436262,
0.3624926805,
-0.2315693051,
0.5102033615,
-0.292817682,
0.1182635874,
0.0621242151,
0.297714442,
0.1461984217,
0.2570766211,
0.3735712171,
-0.115132235,
0.7012068629,
0.2368118912,
0.0497611202,
-0.0939944685,
-0.024764251,
0.305364728,
-0.033491984,
-0.051339332,
-0.1046820208,
-0.0802332833,
0.4766089022,
-0.194539845,
-0.0436311066,
-0.1961789578,
-0.2771187723,
0.0100915665,
-0.1029693782,
-0.0323963203,
-0.2655655444,
-0.2995893955,
-0.2010112554,
0.2587381899,
-0.0067118751,
0.0845403522,
-0.0583207719,
0.0490162782,
-0.196582824,
-0.0169125218,
0.2903334796,
0.1799900681,
-0.3022836745,
-0.1207775846,
0.0623319447,
0.0667867362,
0.0497856475,
0.4140069187,
0.4629578888,
0.3816128969,
-0.2034564316,
-0.0048309681,
-0.1843124926,
-0.0342668779,
-0.0191115607,
0.3144960999,
-0.0050155637,
-0.4414652288,
0.2036401033,
0.2073157132,
-0.1920166016,
0.0766582265,
0.0165650491,
-0.2133693993,
-0.4664849043,
0.6189286113,
0.1990562826,
-0.005928704,
-0.1693199426,
-0.1364178956,
-0.5505832434,
0.0358371139,
0.4961482286,
-0.0412421972,
0.1906962842,
-0.2188337296,
0.1129235178,
0.1664036661,
0.0737091973,
0.2321356237,
-0.0000421256,
-0.1801949888,
-0.0235992186,
-0.6460700035,
0.3164502084,
0.1733725071,
0.0906197876,
0.0722575113,
0.1077196151,
-0.1306122392,
0.1696072221,
0.066706121,
0.0626215413,
-0.095741868,
-0.2245658636,
-0.6295441985,
0.0424463972,
-0.2246961594,
0.0860630721,
-0.0100437505,
-0.3156251013,
-0.2248575538,
-0.4736673832,
0.0867955834,
0.0383333713,
-0.2752352655,
0.1972086281,
0.0962519646,
0.562353611,
-0.0131493546,
0.2577795088,
0.1092427447,
-0.1006507054,
-0.1269235909,
0.0080610132,
-0.2769251168,
0.2525503039,
-0.0473710075,
0.3885970116,
-0.3237918615,
-0.0190346446,
-0.2622708678,
0.2190773636,
0.3211134076,
-0.5104784369,
-0.2979596555,
0.3339654505,
-0.0716054663,
0.1641743928,
0.0936263651,
0.4034532011,
-0.0830620527,
0.570731163,
-0.3010047972,
-0.3583701849,
0.4811254442,
-0.234784022,
-0.353598386,
-0.2643520236,
0.6121698618,
0.2160152942,
-0.0946952924,
-0.5384446979,
0.0012245969,
0.4085341096,
-0.0195131246,
-0.237170741,
0.1611611247,
-0.2878208458,
0.104545258,
-0.1034155861,
0.3256406486,
-0.0482618324,
-0.0670942962,
0.1501839608,
-0.1195787415
] |
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.3578206897,
0.1911825687,
-0.0130563797,
-0.1219667718,
0.4591224492,
-0.2587322891,
0.1023554802,
0.3462673724,
-0.1047268435,
0.170291692,
0.0292684566,
0.3873144686,
-0.0286068507,
-0.1296034157,
-0.0896718577,
-0.0818408877,
0.022336835,
0.1103717759,
0.210844174,
-0.0650737882,
-0.2887301445,
0.0873919725,
-0.163198337,
0.0852667242,
-0.2492381185,
-0.0023166565,
-0.0760262683,
-0.0779754892,
-0.4405121803,
-0.6061068773,
0.1186020225,
0.1210272983,
-0.0479871333,
0.374345243,
-0.0001058455,
-0.110748753,
0.3051439226,
-0.1988533139,
-0.4026469588,
-0.300961405,
-0.1276694387,
-0.2364967614,
0.1063759923,
-0.1455811262,
-0.1818397641,
-0.3046255112,
0.025275005,
0.0940318033,
0.2512167096,
0.4529438317,
0.305990845,
0.406262219,
0.0230125841,
-0.3524659872,
-0.0199979544,
-0.0242332462,
-0.0131461984,
0.2505613267,
-0.0646731183,
-0.020218648,
-0.0520273559,
0.0627772138,
-0.1706926674,
0.1623965502,
-0.0237088818,
-0.0873841494,
-0.1177440956,
-0.0695196688,
0.0494957939,
-0.0812640414,
0.2804453075,
-0.3829118907,
-0.4305168092,
0.2086235583,
0.0718514621,
-0.2917513549,
-0.0081195803,
-0.1182373315,
-0.0117070703,
-0.1671765745,
0.0797318071,
-0.0309033766,
-0.0469653159,
0.0218469799,
-0.2776468992,
0.3991083503,
-0.2167879939,
0.0295436662,
0.101945132,
-0.0798582286,
-0.539529562,
0.1725981981,
-0.1630485654,
-0.047277648,
-0.3372489214,
-0.0520966761,
-0.0352206044,
-0.3039963245,
0.0797247738,
0.2673197091,
0.078933768,
0.3234216869,
0.1725978255,
0.2088113576,
-0.107454367,
0.5174101591,
0.1569872051,
0.2109558284,
0.148187995,
0.2084750384,
-0.1582446992,
0.013210495,
-0.086813882,
-0.2773759067,
0.1811383367,
0.0504110828,
0.2989057004,
-0.1296226829,
-0.5161449313,
0.1212264225,
0.324945271,
0.0074681127,
-0.078441456,
0.4600085914,
-0.2759072185,
0.0837626383,
-0.1150485575,
0.2334920019,
-0.3387948573,
-0.3230009377,
-0.2766523957,
0.0408225879,
-0.374250561,
-0.0881016403,
0.2087679058,
0.2642613351,
0.1801966727,
-0.0865476653,
0.349354744,
-0.1316843778,
0.2586613297,
-0.2561267316,
-0.0517253987,
-0.0069767674,
-0.1430688947,
-0.0315163843,
0.4688058197,
-0.6108639836,
-0.0566985495,
-0.125414893,
-0.3261384368,
-0.2363000512,
0.2884626985,
0.3258453906,
-0.2371549755,
-0.2956566215,
-0.3317902982,
0.2374336421,
0.0726339296,
0.0277646575,
-0.0176041108,
-0.1226368919,
-0.2025411874,
-0.2438829541,
0.3008955717,
0.3525294363,
-0.1587591916,
-0.1621087492,
0.158493191,
-0.1695163548,
0.0624835864,
-0.0763148218,
0.0115528703,
0.3146715164,
0.0382409208,
-0.0237805881,
0.2955039442,
-0.2857785821,
-0.5236393213,
-0.0819977745,
-0.0154973743,
-0.250025928,
-0.0530065745,
-0.0627646744,
0.6092694998,
0.0600497238,
-0.0038255474,
-0.0115368729,
0.1557665318,
-0.0427971035,
-0.2675361335,
-0.3750510812,
-0.0079510445,
0.0790768638,
0.5792469382,
0.0346507281,
0.2244628221,
0.1579547375,
0.1856238842,
0.0233875252,
0.0189662892,
0.2308950126,
0.6588179469,
-0.166386053,
0.2470438778,
-0.4124955833,
0.0987279564,
0.1414685845,
-0.0113152293,
0.0937689617,
0.051942315,
-0.1947706342,
-0.4691921771,
-0.0183419287,
-0.2268975824,
0.0119522307,
0.2715170383,
0.1378234178,
-0.079737395,
0.2032040209,
-0.2275076956,
0.0311874524,
-0.1075832546,
0.2439024299,
0.1114136055,
0.2018920779,
-0.1064897403,
-0.3009130955,
0.3025526404,
0.2251975238,
0.2552265823,
-0.0269718915,
-0.118735671,
0.4040309191,
0.2718547583,
0.1211066172,
0.1103962138,
0.2345685959,
0.047044944,
-0.3110349774,
-0.1486893147,
0.4316515923,
0.0484485961,
-0.0514892936,
0.0397668965,
0.4062994123,
0.1410156935,
0.0460957177,
0.0679114982,
0.1683559567,
0.0360377878,
-0.1195726469,
-0.0889126882,
-0.1963647306,
-0.0799368918,
-0.1591658741,
-0.0623397641,
-0.1417457014,
0.0780005828,
0.0879579112,
0.3270540535,
0.2486624271,
0.2066834569,
0.076920785,
-0.1798180938,
-0.0212409925,
-0.1770207733,
0.2161440849,
0.3647598028,
0.1700563431,
0.0438453928,
0.0763296336,
-0.04632245,
-0.037808869,
0.1791760921,
0.0653140619,
-0.4200983346,
0.1537056565,
0.1766036153,
0.0890044421,
-0.1963603199,
0.0585501641,
0.0622051805,
0.2806886435,
-0.0912157521,
0.1762318611,
-0.1289593428,
0.3334775865,
0.015899308,
-0.2181562185,
-0.0460449904,
-0.170931384,
0.1734342575,
0.0025812215,
0.073661983,
0.372165978,
0.0109242406,
0.3784333467,
0.2001805156,
-0.211202994,
0.1066684648,
-0.2119736671,
-0.018087266,
0.0760566741,
-0.1197409481,
-0.0421264507,
0.3133829236,
-0.156540826,
-0.01282134,
-0.3236809969,
-0.3269427717,
0.111374557,
0.0142588001,
0.4556115568,
0.1397294551,
-0.1708735079,
-0.1437093914,
-0.0577829182,
0.3358262777,
-0.2341039628,
-0.0047565433,
0.3123630881,
-0.1245186776,
-0.1732457876,
-0.1278385967,
-0.456117481,
0.0026662149,
-0.3819521368,
-0.0850621462,
0.1646662503,
-0.0369072035,
0.0480371825,
0.2475905716,
0.1148173586,
0.0956452787,
0.0587986484,
-0.2714680731,
-0.1322000921,
0.5068072677,
-0.3097519875,
-0.4754902422,
0.1518467665,
-0.1226330027,
0.2845419347,
0.0372843333,
-0.2821933925,
-0.5299499631,
0.0195126943,
0.0280246213,
-0.0609569028,
0.0801196545,
0.1169326603,
0.0231863558,
-0.2826242745,
-0.179414168,
-0.2012349069,
0.1383203864,
-0.063835457,
0.2962293029,
-0.2882065177,
-0.1492156684,
0.3420611024,
0.8126735091,
0.2221955806,
-0.2842614353,
0.0287034232,
-0.0046368414,
0.3649331927,
0.154511109,
-0.344568789,
0.1804588288,
-0.2892845869,
0.1449607164,
0.3699704111,
-0.0995686874,
0.0257929005,
-0.0707534328,
0.0904710516,
0.0109627303,
-0.2755065858,
-0.182929337,
0.0704107881,
0.173681587,
0.0268889796,
0.1381925195,
-0.252094835,
-0.0163278189,
0.2843599319,
0.3995743692,
-0.2782477736,
0.0710219368,
-0.2709499002,
0.1875789165,
-0.1672024876,
0.2655044496,
-0.3068067729,
0.2081255317,
0.1071384251,
0.0699556023,
-0.0648520291,
-0.2380274981,
0.230862245,
0.0154371513,
0.0458044894,
0.1292303801,
0.0159414355,
-0.1366560459,
0.0047391867,
-0.2175615728,
0.1586101055,
0.21813263,
0.2016921192,
-0.3195237815,
0.0964600816,
0.0617579445,
0.1553494632,
-0.342092365,
0.0923141018,
-0.5545899868,
-0.1446537524,
-0.143148154,
0.2754792869,
-0.2147543132,
0.0287507791,
-0.0732060149,
0.1491054744,
-0.4761303961,
-0.2124084383,
0.2964620292,
-0.0050979047,
0.2399255633,
-0.2561049461,
0.1337242573,
-0.034792576,
0.0315444618,
0.4541692138,
0.3160788417,
0.0361006781,
-0.3791025877,
-0.0587960593,
-0.0066063497,
0.2954758704,
0.1132593304,
-0.2193436772,
0.1262145936,
-0.0973729938,
0.3588213027,
-0.2885735035,
0.3199592531,
0.211746484,
0.0973447859,
-0.0223516989,
-0.1476566046,
0.05947816,
-0.2094184905,
-0.0982037857,
0.0274584405,
0.180522576,
-0.0267301351,
0.3437112868,
0.1284796447,
0.972866416,
0.1545347124,
-0.1698006243,
0.3814637661,
-0.0299466737,
0.1575746834,
-0.3214429021,
0.1822109222,
-0.284250766,
-0.2830299139,
0.0590340532,
-0.0460112169,
0.1815722287,
-0.0553113334,
-0.579116106,
0.1761923283,
-0.0546645746,
0.0002062522,
0.2185235918,
0.153494522,
0.0543318912,
-0.0398476645,
0.0679124221,
0.2623175979,
-0.1888808012,
0.0354272686,
-0.1071687117,
0.0517596863,
0.0831901506,
-0.1294437945,
-0.0745792538,
0.0736994967,
-0.2968598306,
0.1341706216,
0.0989098772,
-0.051145602,
0.0143608451,
0.2612829506,
0.5497261882,
0.3040991724,
-0.1275850683,
0.2080314755,
-0.1019928604,
-0.0971849561,
-0.0760593712,
-0.1031069681,
0.400496006,
-0.0556431822,
-0.2246285826,
0.1341570318,
0.1070690751,
-0.031657245,
-0.0437445939,
-0.0109528964,
0.2206582874,
-0.2373545021,
0.0671288744,
-0.0911275446,
-0.1662380248,
-0.3255871236,
0.2039810866,
0.0799049661,
-0.2308878601,
0.426597774,
0.120541364,
-0.2824658453,
-0.0549680032,
0.4708363116,
-0.0222672857,
-0.2782503664,
0.3541190922,
-0.3069100678,
-0.1881443113,
-0.3704712689,
-0.3024506569,
-0.1584442705,
-0.2403988391,
0.1294463873,
-0.1099832207,
0.0756378621,
0.3476690054,
0.2972689867,
0.2949799299,
-0.2006951272,
-0.0764427856,
-0.196413815,
-0.3316261172,
0.0594497733,
0.1357140839,
-0.01730044,
-0.1900379062,
0.1527743936,
0.0276927035,
0.3771694899,
-0.4310584366,
0.2393396348,
-0.3082429469,
0.1350145489,
0.05077824,
-0.2673183382,
0.0164034218,
0.0019292475,
0.0846144632,
0.0695559531,
-0.3597665131,
-0.2404731065,
-0.318688333,
0.1150119901,
0.1184396669,
0.2952624261,
-0.0802583322,
0.1346750557,
-0.1008254737,
-0.141781494,
0.0732926279,
0.3997762799,
-0.1848660409,
0.2600120306,
-0.0433531664,
0.2943044007,
0.1377820373,
-0.0841608718,
0.2218560725,
0.1979981363,
0.1352069974,
0.1358503103,
-0.2521338165,
-0.0349322073,
0.0080186669,
0.1639234871,
0.2954921722,
0.0450418927,
0.3262088597,
-0.3317497075,
-0.0472831912,
-0.1157064363,
0.2377043962,
0.1594416648,
-0.1561024934,
-0.1854161471,
0.1604342163,
0.3080504537,
-0.3771664202,
-0.0732601807,
-0.1698321253,
0.1069692373,
0.2118207663,
0.2212180644,
0.2498071939,
-0.2954525054,
0.2389972061,
0.1047463566,
0.3551610112,
-0.1147337034,
0.3196256459,
-0.4188711047,
0.0481443554,
0.0339867286,
0.3200390935,
0.1382946074,
0.2413092107,
0.2761480808,
-0.130855158,
0.7322458625,
0.2012878805,
0.0283844676,
-0.1049317867,
-0.0192279387,
0.1928396821,
0.0340169333,
0.0155685972,
-0.1041193232,
-0.1250301003,
0.438827008,
-0.2056943476,
-0.0482135378,
-0.2144744694,
-0.2102615684,
0.0167074967,
-0.0024716959,
-0.0432864279,
-0.2329721749,
-0.2016049325,
-0.1873738617,
0.2655162215,
-0.0032352267,
0.1305629611,
-0.0682542399,
0.0290056337,
-0.1451796442,
-0.0951116085,
0.2740392089,
0.1035442352,
-0.2165932208,
-0.015715139,
0.0546056665,
0.1020379439,
0.0257500038,
0.3504709303,
0.3399099112,
0.4087024033,
-0.207426399,
0.0316674337,
-0.1750414222,
0.0038702572,
-0.0499919169,
0.1995206475,
0.0798435807,
-0.4812788069,
0.2994629741,
0.2601360977,
-0.2384610474,
-0.084810473,
0.0219519846,
-0.1837271005,
-0.3299477994,
0.4343504906,
0.2688828111,
0.0057520913,
-0.174347192,
-0.1197387725,
-0.63309443,
0.0110943196,
0.3685871661,
-0.075388588,
0.1884406209,
-0.2897846997,
0.1485455036,
0.0545620918,
0.1447157413,
0.1944023967,
0.0591148809,
-0.2636818588,
-0.0269034542,
-0.7193471193,
0.3840250671,
0.2125402987,
0.0873720422,
0.0387339853,
0.2004411221,
-0.1806338131,
0.1441376358,
0.0589209795,
0.0260142293,
-0.0570509471,
-0.2295217961,
-0.6657169461,
0.1136709228,
-0.3540844321,
0.0968135297,
0.0587344244,
-0.3082031608,
-0.1885086745,
-0.3494607806,
0.1655974537,
0.0418646634,
-0.2623752654,
0.1670269072,
0.0514268354,
0.5181000233,
-0.0106917694,
0.2291047275,
0.0399089418,
-0.0865095705,
-0.1330884546,
-0.0327969827,
-0.199506402,
0.1676522195,
-0.0212180838,
0.3710516691,
-0.1306426823,
0.06372758,
-0.2664959133,
0.2270196378,
0.3711466491,
-0.4613430202,
-0.1648535132,
0.3245264292,
0.0407228358,
0.1466798633,
0.059673842,
0.3735421896,
-0.0053756395,
0.5238207579,
-0.3329617381,
-0.3023941815,
0.5458355546,
-0.3192129135,
-0.3209403455,
-0.2270155847,
0.6169536114,
0.204141289,
-0.1760110259,
-0.5343707204,
0.0416536741,
0.3197526634,
0.0008441819,
-0.1647976935,
0.1102190167,
-0.3402338326,
0.0909267217,
-0.1789981276,
0.4063365757,
-0.0438835472,
0.0316482,
0.0902721509,
-0.1580961049
] |
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.3739029467,
0.2329157144,
0.016678812,
-0.1529369205,
0.3844796717,
-0.2280017734,
0.1411173344,
0.3971858323,
-0.1434216946,
0.1172360256,
0.0634810627,
0.3675316572,
-0.074741371,
-0.0431302041,
-0.0400884673,
0.018208012,
0.1286733001,
0.0568154044,
0.2899596393,
0.047962036,
-0.3001475036,
0.1294308752,
-0.1781705469,
-0.0137691395,
-0.2298811525,
0.0428281426,
-0.0431471989,
-0.0255483631,
-0.4351982474,
-0.6946924329,
0.2592558563,
0.1504914463,
-0.1331428587,
0.4043776393,
-0.0001106694,
-0.0649241954,
0.2988053262,
-0.171576947,
-0.4254034162,
-0.4097581804,
-0.1907388866,
-0.3609962165,
0.0138525832,
-0.0621106438,
0.0258590523,
-0.3896163106,
-0.04137915,
0.0150135159,
0.2358203977,
0.3832377791,
0.2394983023,
0.4302848577,
-0.0015960401,
-0.3362756371,
-0.1122721359,
0.0617028587,
-0.0473625697,
0.1549794078,
-0.09622439,
0.0600672029,
-0.0194020495,
0.039236486,
-0.1868137121,
0.1169505417,
0.0850506723,
-0.19440341,
-0.211423561,
-0.023932742,
0.0887816399,
0.0142878415,
0.3667893112,
-0.3311087787,
-0.4713630676,
0.223342821,
0.0124879889,
-0.3764420748,
0.0764675289,
-0.104038991,
-0.0425247848,
-0.1320861578,
0.0299375057,
-0.0979780927,
-0.0454693027,
0.0143782385,
-0.2644270062,
0.3045634031,
-0.2460582703,
0.0318943039,
0.0465921797,
-0.0460270792,
-0.4297217429,
0.1479370594,
-0.2655238211,
-0.0081697879,
-0.4187924862,
-0.0802067146,
-0.0276515204,
-0.278529495,
0.1515283585,
0.4640419483,
0.0794279948,
0.2926971018,
0.1231562719,
0.1603953987,
-0.0903690606,
0.5370448828,
0.1759423167,
0.1939261258,
0.2064475566,
0.2096592784,
-0.0102407681,
-0.0219159927,
0.0056202491,
-0.2501823008,
0.1966059059,
0.0381132662,
0.28665784,
-0.1028289273,
-0.467641741,
0.1577845812,
0.2295633554,
-0.0384414122,
-0.0725243315,
0.3364725113,
-0.2498460263,
0.2119584531,
-0.1920414865,
0.2145524323,
-0.2049997002,
-0.3765914738,
-0.2550670505,
-0.0666446611,
-0.3085423708,
-0.0407444835,
0.1703773588,
0.1910997033,
0.1725941449,
-0.0540474318,
0.3929163516,
-0.1610340476,
0.2505149245,
-0.174070701,
0.0372876003,
0.0719730705,
-0.1483313888,
-0.0247007422,
0.3736087084,
-0.6256074905,
-0.0404643379,
-0.2014554292,
-0.329964757,
-0.2798799276,
0.2722164392,
0.2741960883,
-0.2737765014,
-0.2794392407,
-0.4384192526,
0.2355145812,
-0.0362767987,
0.0633845627,
-0.0532348156,
-0.0661687404,
-0.2227804661,
-0.271762073,
0.3008931577,
0.3167231977,
-0.1638356298,
-0.1671289057,
0.1063643321,
-0.1123760939,
0.0829696581,
-0.116545327,
0.0046933391,
0.2391457856,
0.0060909223,
-0.0205588657,
0.2737216651,
-0.2885118723,
-0.5547583103,
-0.0408843718,
0.0688700974,
-0.2400220633,
-0.0268478151,
-0.1188978106,
0.6205391288,
-0.0705593079,
-0.0200984217,
0.0195237566,
0.0632056594,
-0.2461589724,
-0.1765813977,
-0.4268583655,
0.0149047198,
0.0077160494,
0.6241724491,
0.0516899414,
0.2833350301,
0.3863051236,
0.158870697,
0.0476237163,
-0.0055340715,
0.230805546,
0.5782595277,
-0.1743897051,
0.3671569228,
-0.5228919387,
0.0775712579,
0.2116927058,
0.1229559109,
0.0056039044,
0.0311188754,
-0.1564726382,
-0.4288710356,
0.0594720803,
-0.1472802758,
0.042212043,
0.2035234123,
0.182667613,
-0.1190579385,
0.2278317958,
-0.28306517,
-0.0059438185,
-0.1857159436,
0.2656484842,
0.1051391587,
0.2024467289,
0.0008290401,
-0.2361796945,
0.2215001732,
0.269516319,
0.2052173764,
-0.1491561979,
-0.1476210952,
0.4282345772,
0.3534133136,
0.1693411767,
0.0146574248,
0.3167549372,
0.0962426364,
-0.3463173509,
-0.1519583911,
0.4838854074,
-0.0357933007,
-0.0805382505,
0.0886524767,
0.3073082864,
0.1158765852,
0.0653568357,
0.0912834704,
0.2688136399,
0.0663799495,
-0.0455182791,
-0.1914456934,
-0.2590551078,
-0.1344319731,
-0.2435737699,
-0.0288175046,
-0.2215945125,
0.093426235,
0.0021052195,
0.2694290578,
0.1448982656,
0.1267835945,
0.0566763654,
-0.1779009402,
-0.0677236989,
-0.207870096,
0.341485858,
0.2781051695,
0.1037744209,
0.1054759845,
0.0240117069,
-0.0426239558,
-0.0134245567,
0.1805578917,
0.1803595573,
-0.3909814954,
0.2518915832,
0.1336864531,
0.1309974343,
-0.2239989489,
0.0206261035,
0.0429931618,
0.2813045681,
-0.0507085286,
0.1824107915,
-0.2047246993,
0.299682498,
-0.0462535881,
-0.158431083,
-0.0436798148,
-0.2114622444,
0.0092435423,
-0.0766248032,
0.1495619267,
0.4088261425,
-0.0732617602,
0.3769264519,
0.0553983338,
-0.0642860383,
0.1847969443,
-0.0677123666,
0.011781984,
0.0265189037,
-0.0211125873,
-0.240042448,
0.2869223952,
-0.1938943863,
-0.0985999182,
-0.3416165709,
-0.4383990467,
0.1606459171,
0.0614479035,
0.4100453556,
0.2410635948,
-0.2603682578,
-0.0223949086,
0.0411863811,
0.1884098053,
-0.241229102,
-0.0302338582,
0.3084079027,
-0.1350417137,
-0.1841017306,
-0.0438067429,
-0.4547433257,
0.0212294664,
-0.3150005043,
-0.032750044,
0.2424474508,
-0.0739830285,
0.0971796364,
0.1906076968,
0.1345985681,
0.1341571808,
0.0485784896,
-0.2081836909,
-0.1073853299,
0.4198903739,
-0.1874566227,
-0.4146062434,
0.1693683267,
-0.0941702053,
0.302366972,
0.1207817271,
-0.2617173791,
-0.3486176729,
0.0223568529,
0.0841832012,
-0.1161617488,
0.0005434325,
0.0513887927,
0.0615980364,
-0.1983548999,
-0.2202178687,
-0.1936363578,
-0.0119824586,
-0.1211420894,
0.1930122674,
-0.1696725935,
-0.1834978908,
0.5552966595,
0.8563190103,
0.3107655942,
-0.294172138,
-0.0198019091,
0.0878221467,
0.3871376216,
0.2270505577,
-0.3990765214,
0.1633842289,
-0.413503468,
0.1365123689,
0.3416537046,
-0.00661373,
-0.0442046039,
-0.0444784798,
0.0516217425,
0.0912018716,
-0.1697895378,
-0.264424026,
-0.028346695,
0.2278471589,
0.0533503219,
0.2036975771,
-0.2415157855,
-0.0809583217,
0.3237984776,
0.3613370061,
-0.3245864511,
0.1194320619,
-0.3851374388,
0.2987189591,
-0.2720150054,
0.2552254498,
-0.3151365519,
0.3091471791,
0.157449007,
0.0931370258,
-0.1766481549,
-0.2636002302,
0.2334955037,
-0.0927464217,
0.0469978489,
0.1676514149,
0.0768603012,
-0.1789134741,
0.0294076968,
-0.2039262354,
0.1848765165,
0.3138543069,
0.3291065395,
-0.1619695127,
0.0284541138,
0.0972554386,
0.2815677226,
-0.2345642745,
0.1191423684,
-0.4278560281,
-0.074758783,
-0.0130676953,
0.0715849102,
-0.2045692354,
-0.0227996688,
-0.0277721193,
0.118115969,
-0.5347540379,
-0.2161837965,
0.3146809638,
-0.1297747195,
0.1752552539,
-0.2964363098,
0.1668874621,
0.0545075834,
0.0477737561,
0.5340453982,
0.2614959478,
-0.0147957467,
-0.4740161598,
-0.0751685351,
0.0103577161,
0.2893357575,
0.1811872125,
-0.3556496203,
0.1588561088,
-0.0256615765,
0.1911880225,
-0.3821745813,
0.3040131032,
0.2679180801,
0.1259441525,
-0.0786571056,
-0.253020972,
0.0703312233,
-0.0784631297,
-0.1001707911,
0.1268386245,
0.1722684354,
-0.0530271195,
0.3745053709,
0.1805080026,
0.9338233471,
0.3048352301,
-0.1176403388,
0.3112781346,
-0.0014501591,
0.1493896842,
-0.3385820091,
0.1684806645,
-0.1839235127,
-0.3425351083,
-0.0159011651,
-0.0749692917,
0.2120802999,
-0.1406525075,
-0.4320195615,
0.1974204779,
-0.0337061957,
0.1461148262,
0.2102959752,
0.1458112299,
-0.0190561544,
-0.0646474436,
0.2706267536,
0.2279317379,
-0.0937654227,
-0.0416850299,
-0.1503834724,
0.128831774,
0.1888366789,
-0.0489154197,
-0.328736037,
0.0332733653,
-0.2181820869,
0.1421862543,
0.1775969416,
-0.028591074,
0.0803402439,
0.2912407219,
0.6542515159,
0.2708210349,
-0.2000182122,
0.1803058833,
-0.1543883085,
-0.0423725396,
0.0070915697,
-0.0903483555,
0.444778353,
-0.0496388897,
-0.1026115716,
0.0386737026,
0.1057103649,
0.0518937036,
-0.0228481907,
-0.0338557996,
0.234396711,
-0.2121325582,
0.1545856148,
-0.0428688787,
-0.0333763957,
-0.4309329987,
0.169549942,
0.0172258914,
-0.2008113563,
0.3604370654,
-0.0283381548,
-0.2871698737,
-0.0228946619,
0.5290214419,
0.0331326127,
-0.3315861523,
0.3670953512,
-0.3462993205,
-0.1792690456,
-0.3073852062,
-0.1228999943,
-0.192433089,
-0.2215664834,
0.1932688951,
-0.3249644041,
0.1601902992,
0.2408550382,
0.3278453052,
0.3561697304,
-0.2040894777,
-0.1393814385,
-0.2308542281,
-0.2793034315,
0.076887466,
0.0703209639,
-0.0398707427,
-0.3134398758,
0.0283525996,
-0.0936169252,
0.3216764629,
-0.3566918671,
0.2944236994,
-0.2056771517,
0.0056757801,
-0.015022439,
-0.1854878515,
0.0732489601,
-0.1046483293,
0.0243968815,
-0.0404682793,
-0.4105324447,
-0.1462352425,
-0.3995327652,
0.1405792683,
0.1378892064,
0.1581655145,
0.0128124654,
0.1462972015,
-0.1491272897,
-0.1367697716,
0.1455404013,
0.4514707625,
-0.1399775147,
0.2465092391,
-0.0463887267,
0.3047937453,
0.100653708,
-0.1171558499,
0.3308511972,
0.2518535554,
0.1103929877,
0.2383763194,
-0.1055430174,
-0.0354176909,
-0.121315904,
0.2168016732,
0.2368119806,
-0.0050426545,
0.3941178024,
-0.4078187048,
-0.0167478882,
-0.1176989004,
0.2764633596,
0.2374686301,
-0.1001908556,
-0.1347438693,
0.2228135914,
0.2545298934,
-0.3505980372,
-0.1477605551,
-0.1271718889,
0.2385995686,
0.1553155929,
0.1561449319,
0.4248199463,
-0.3391853571,
0.1903370023,
0.0715981945,
0.3079239726,
-0.2116219997,
0.5018628836,
-0.2749925256,
0.1414744705,
0.0851252973,
0.3391655087,
0.1029284671,
0.3265253603,
0.3486459255,
-0.0819006488,
0.7880043387,
0.2494933009,
0.0495794006,
-0.1053637937,
-0.112610288,
0.2925438881,
-0.0345581658,
-0.0738915056,
-0.022115076,
-0.0717444122,
0.4817577302,
-0.1989733875,
-0.0967071503,
-0.2307794541,
-0.2808465958,
-0.0241117775,
-0.1283450127,
-0.077229239,
-0.2852727175,
-0.2119912356,
-0.1345700324,
0.2132542431,
0.0115759932,
0.082633853,
-0.0819599628,
-0.0166170988,
-0.1365759224,
-0.0486812666,
0.2407118529,
0.1257005185,
-0.2841627002,
-0.1357597113,
0.0312853642,
0.0344063602,
-0.0044519743,
0.4487254322,
0.4019378424,
0.3772945404,
-0.1418691427,
-0.0686007589,
-0.0889094919,
-0.0059409691,
-0.033723183,
0.3227184117,
-0.0299828555,
-0.4964967966,
0.2722792327,
0.1768932343,
-0.179441303,
-0.0078894654,
0.0196503792,
-0.2082690895,
-0.4713931084,
0.6122554541,
0.1800871491,
-0.0107261939,
-0.1204445511,
-0.0348972827,
-0.4972095788,
0.0367162451,
0.4607998729,
0.0038619449,
0.1777042747,
-0.1913175881,
0.1193148866,
0.1058962047,
0.1353338808,
0.2601881623,
-0.1021368131,
-0.1443091631,
-0.0543946847,
-0.5523702502,
0.3112113476,
0.1401668936,
0.142058596,
0.1100061461,
0.212339893,
-0.1531265676,
0.1321937442,
0.0141488351,
0.0232291669,
-0.0383473113,
-0.3030210733,
-0.6422166228,
0.1211929917,
-0.2429498732,
0.0441621579,
-0.0508460701,
-0.3419217765,
-0.2108596414,
-0.4180001318,
0.0630452707,
0.0682832673,
-0.2858635187,
0.2087309659,
-0.0372837372,
0.5281235576,
0.0377625972,
0.1317011565,
0.0672627017,
-0.1974609494,
-0.2057647258,
-0.0905561447,
-0.256233871,
0.1957243532,
-0.1716299504,
0.3562583029,
-0.2618245482,
0.0302985441,
-0.2557789683,
0.245708704,
0.3573635221,
-0.4469645023,
-0.3357785344,
0.3720014989,
-0.0847400501,
0.139520824,
0.1167862639,
0.3923134804,
-0.1237449646,
0.5088221431,
-0.2650338411,
-0.2870714366,
0.5064147711,
-0.3036539555,
-0.3115775585,
-0.3253054619,
0.6123328805,
0.277746588,
-0.1361267418,
-0.5220624804,
-0.0217416957,
0.3835982084,
-0.0126155615,
-0.2013019472,
0.1189894229,
-0.348403126,
0.1207271144,
-0.0871779546,
0.3735609949,
-0.0616130792,
-0.1087296456,
0.1898052692,
-0.0780482516
] |
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.
How did you solve him | 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
| 41 | 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.
How did you solve him | [
-0.3628456593,
0.2175991684,
0.0040866765,
-0.124244228,
0.411188513,
-0.2206296474,
0.1483427584,
0.3998839855,
-0.1654298902,
0.1352213621,
0.0552651361,
0.3734946847,
-0.0774148628,
-0.0580645315,
-0.0607180297,
0.0035375077,
0.1176180989,
0.0779188201,
0.2915457785,
0.0191621911,
-0.2759603858,
0.1011039615,
-0.1640696228,
0.0015130625,
-0.2383580059,
0.0175305791,
-0.0485035479,
-0.0062926998,
-0.4295663536,
-0.69990623,
0.2532286048,
0.1361991763,
-0.1402982771,
0.3979232311,
-0.0001091248,
-0.0477901287,
0.3237996399,
-0.1652971655,
-0.4128572047,
-0.4182384312,
-0.1641362309,
-0.3391428888,
-0.0007416935,
-0.0666378364,
-0.0077730645,
-0.3945738971,
-0.0312563702,
0.0479360037,
0.2492386699,
0.3934242725,
0.2612756193,
0.4141538143,
0.059882883,
-0.3366802037,
-0.0846941993,
0.0487543494,
-0.0530634895,
0.1865385324,
-0.0910624713,
0.0802500248,
-0.0152819604,
0.0361198075,
-0.182026431,
0.1328265667,
0.0885251909,
-0.1782827526,
-0.1637526453,
-0.0435526222,
0.0892583579,
-0.014492075,
0.3788433969,
-0.3090940714,
-0.4297061563,
0.2353571355,
0.0354056284,
-0.3800631166,
0.0903574452,
-0.0930896997,
-0.0574087538,
-0.14840132,
0.0412225239,
-0.088838242,
-0.0620556101,
0.0255069043,
-0.2523962855,
0.3010900319,
-0.2612535357,
0.0295429565,
0.0508799255,
-0.0524703339,
-0.4290783107,
0.1503400207,
-0.2684565187,
0.0096408362,
-0.4180713594,
-0.1008460596,
-0.0331799127,
-0.2912679315,
0.134048,
0.4417671561,
0.0648403913,
0.2957454026,
0.1138017774,
0.1407484561,
-0.1012539342,
0.5619252324,
0.1575085223,
0.2016014457,
0.1946683824,
0.2054577768,
-0.034840595,
-0.0280921366,
-0.0163334552,
-0.2552352548,
0.2034202665,
0.0415411033,
0.3035630584,
-0.1217255965,
-0.4554691017,
0.1578487605,
0.228248328,
-0.0357068107,
-0.1020590216,
0.3510768414,
-0.291893959,
0.177814424,
-0.1800833941,
0.2075650394,
-0.2244511396,
-0.3472720683,
-0.2624337673,
-0.0457037725,
-0.3201683462,
-0.0532060564,
0.1509983093,
0.1855864972,
0.1739758104,
-0.0481090434,
0.3808063269,
-0.1590558141,
0.2545005977,
-0.1856220216,
0.0052506933,
0.0599294566,
-0.1274772733,
-0.0022432425,
0.3736333251,
-0.6265420914,
-0.0417179577,
-0.1719617248,
-0.3389931023,
-0.2898694575,
0.2603769004,
0.2917867005,
-0.2713736892,
-0.2895102203,
-0.4276372194,
0.2135307491,
-0.0468296595,
0.0605979413,
-0.0583838187,
-0.0446354635,
-0.2061900944,
-0.2938714623,
0.2755730748,
0.2930354476,
-0.1708282232,
-0.162793979,
0.0977059081,
-0.1224903241,
0.0954297781,
-0.1266031414,
0.0110307327,
0.2641764283,
0.0080842432,
-0.0431723148,
0.2989523411,
-0.2925364375,
-0.5710141063,
-0.0437302776,
0.0513181761,
-0.2256921381,
0.0024335776,
-0.1334952265,
0.6360132098,
-0.0520208925,
-0.0179190338,
0.0119224861,
0.0628870875,
-0.2400956005,
-0.1924995631,
-0.4101455212,
0.0121167796,
0.0220780373,
0.6297083497,
0.0523259304,
0.2871434987,
0.3598295748,
0.1547833234,
0.029588148,
-0.007778964,
0.2395475656,
0.5837536454,
-0.149422884,
0.3492375016,
-0.4936032593,
0.0886992067,
0.2013271451,
0.0828698426,
0.036523696,
0.020689182,
-0.16452007,
-0.4781961441,
0.0126044312,
-0.1703342944,
0.0282471552,
0.2213649303,
0.1812158823,
-0.0934644863,
0.2186932564,
-0.2754317224,
-0.01117275,
-0.1760547906,
0.2706193626,
0.0918599293,
0.1965899915,
-0.0252819508,
-0.2301000804,
0.2074285746,
0.2511385679,
0.2311748862,
-0.1749942154,
-0.1680487245,
0.4167262614,
0.3145975471,
0.1679477245,
0.0192306843,
0.287835151,
0.1102961451,
-0.3607653379,
-0.1324299425,
0.460336715,
-0.0213064943,
-0.111807555,
0.1202068701,
0.285066694,
0.1171942428,
0.06490089,
0.0793461353,
0.2440066636,
0.0813207701,
-0.0572494045,
-0.1561620086,
-0.2192445397,
-0.1082311794,
-0.2363703251,
-0.0297120791,
-0.1994159669,
0.0933506638,
0.013074954,
0.2695568204,
0.1522715241,
0.1060373336,
0.0527567677,
-0.1749832183,
-0.0493180566,
-0.2231974602,
0.3209460676,
0.2988562584,
0.117444694,
0.0725450218,
0.0561308414,
-0.0225259289,
-0.0044960445,
0.2074727267,
0.179742232,
-0.3590679765,
0.2685356438,
0.116750136,
0.1422429383,
-0.190976128,
0.0221757609,
0.0750566721,
0.3056627512,
-0.0474057011,
0.1486676037,
-0.2036347389,
0.2859739661,
-0.0500308238,
-0.192695573,
-0.0586600117,
-0.1730152816,
0.025551524,
-0.0870093331,
0.1808105111,
0.4239195883,
-0.0454121307,
0.3644549847,
0.0582845099,
-0.0375047736,
0.1838570982,
-0.0868805349,
-0.0099477228,
0.0442619175,
0.0141762588,
-0.223878786,
0.3022327423,
-0.2006904036,
-0.1141050532,
-0.3337307274,
-0.4218048453,
0.1511762738,
0.0432138517,
0.3995779753,
0.2472608984,
-0.2453446835,
-0.0234298129,
0.0311602,
0.2166613936,
-0.2334045619,
-0.0346826985,
0.3050890863,
-0.1537601799,
-0.1630684137,
-0.0333053395,
-0.4809810817,
-0.005483537,
-0.3314464092,
-0.0303046517,
0.2654607296,
-0.0699679479,
0.1131581664,
0.1999696195,
0.141422987,
0.1660168171,
0.0845948011,
-0.2070977986,
-0.1117455438,
0.4133186638,
-0.2170683295,
-0.4127289057,
0.1629558057,
-0.0948742777,
0.3039221466,
0.0820325166,
-0.2719514966,
-0.3753359318,
-0.0013625586,
0.0699584335,
-0.1577479094,
0.0153763806,
0.0468732342,
0.0491939746,
-0.2190265507,
-0.2190439254,
-0.1967025548,
-0.0044868472,
-0.1227651983,
0.2221050858,
-0.1427264363,
-0.1629655361,
0.5203961134,
0.8731863499,
0.3052800596,
-0.2945716381,
-0.0228120461,
0.0916858688,
0.3633909822,
0.2280338705,
-0.4240377843,
0.1679854542,
-0.3923620284,
0.1263149083,
0.3196281195,
-0.0203752015,
-0.0211934932,
-0.0436630845,
-0.0165928826,
0.0790676326,
-0.1673987955,
-0.237928465,
-0.0255404022,
0.2081071585,
0.0244742036,
0.1585223228,
-0.2344012558,
-0.0646079108,
0.3240378797,
0.3789311349,
-0.3157767057,
0.1149272472,
-0.3926134109,
0.2673371732,
-0.2729625404,
0.2694159448,
-0.3234644532,
0.2681847513,
0.1668633819,
0.1099626869,
-0.1331264526,
-0.2562181652,
0.2539716065,
-0.077326946,
0.0368474908,
0.1902677864,
0.056697242,
-0.1603434235,
0.0160449222,
-0.2090566605,
0.1980812401,
0.3127452433,
0.3237862587,
-0.1894316077,
0.0135703553,
0.1082564518,
0.2471237183,
-0.2602736056,
0.1211046875,
-0.4186784625,
-0.0995123312,
-0.0481007285,
0.0938614234,
-0.2076184154,
0.0103860023,
-0.0267290715,
0.1028749645,
-0.5048642159,
-0.1823907197,
0.28789258,
-0.1640329957,
0.1628486514,
-0.2911860049,
0.1564305574,
0.0357437022,
0.0861747414,
0.530924201,
0.2904769778,
-0.00869154,
-0.4511295557,
-0.093873702,
-0.0016701508,
0.3063034117,
0.1758223176,
-0.3112996519,
0.1735433787,
-0.0535682403,
0.2292538732,
-0.3633075953,
0.2888848484,
0.2569450736,
0.1036886945,
-0.0696771443,
-0.2661156356,
0.059769839,
-0.1127440855,
-0.1015245989,
0.1312598139,
0.1836858541,
-0.0557202138,
0.3641651869,
0.1606290638,
0.9781297445,
0.3184521496,
-0.1483023316,
0.2849494815,
-0.0277463757,
0.1577808708,
-0.3592866063,
0.152768746,
-0.1892242581,
-0.3357231021,
-0.0067539467,
-0.0721232966,
0.2291901559,
-0.1455765218,
-0.4608123302,
0.2048497051,
-0.0422118567,
0.1073701531,
0.2111092061,
0.1493771374,
-0.0104321018,
-0.0572199263,
0.2339441478,
0.2404321581,
-0.0967043415,
-0.0239539556,
-0.1388579011,
0.1036418676,
0.1858082712,
-0.0664510876,
-0.284229815,
0.0155593334,
-0.2561718524,
0.1560415477,
0.159813866,
-0.0354318507,
0.0896023288,
0.2710512578,
0.6368803978,
0.2769602537,
-0.1735891849,
0.1893881261,
-0.1319751889,
-0.0558793619,
0.0007016098,
-0.0918956921,
0.4469554126,
-0.0583023317,
-0.1353010982,
0.0534811281,
0.0971387252,
0.0377164073,
-0.0486488491,
-0.0601591282,
0.2516676486,
-0.2178437859,
0.124832727,
-0.0750094056,
-0.077685982,
-0.4024263918,
0.1869687289,
0.0142220231,
-0.2305256724,
0.3673243523,
0.0017546674,
-0.2947758138,
-0.0376707762,
0.5126438737,
0.0391054042,
-0.3216403127,
0.3731637001,
-0.3684018552,
-0.1851018816,
-0.3135249317,
-0.1539171189,
-0.1774025857,
-0.2452725619,
0.1998892576,
-0.2907574177,
0.1810068935,
0.2425168902,
0.3303503096,
0.365377903,
-0.1636276245,
-0.126229167,
-0.2348983139,
-0.2870452404,
0.0679263324,
0.0902496874,
-0.0220613182,
-0.2941122353,
0.03013248,
-0.0791098028,
0.351482451,
-0.3779443204,
0.2930691838,
-0.2317196429,
0.028254794,
0.0163477361,
-0.1923937798,
0.0612808466,
-0.0863852352,
0.0427658595,
-0.0045263371,
-0.4047161341,
-0.1694409251,
-0.376957655,
0.1357088536,
0.1438071728,
0.1520034373,
-0.0156669673,
0.1264248341,
-0.1316986531,
-0.0985308513,
0.1513523012,
0.4381226599,
-0.1615042537,
0.2428818196,
-0.0560539328,
0.2902364731,
0.057619296,
-0.0992919654,
0.3317423761,
0.2321850806,
0.1068365425,
0.1983926743,
-0.1228489354,
-0.0429885574,
-0.1117670611,
0.1953064352,
0.2232998461,
-0.0101732938,
0.3974609077,
-0.3881912529,
-0.0214580279,
-0.1061083451,
0.2731949091,
0.2144890577,
-0.1178696752,
-0.121475257,
0.2389002293,
0.2694948018,
-0.3458105922,
-0.1565724164,
-0.1220982447,
0.209990114,
0.1307179481,
0.1549530476,
0.4074657261,
-0.3480032682,
0.1960834414,
0.0691762045,
0.311325103,
-0.2075103223,
0.4842528999,
-0.2818484008,
0.1035570055,
0.067763336,
0.3610126376,
0.0867023021,
0.2833177447,
0.354308486,
-0.1018373668,
0.7822023034,
0.2422549725,
0.0244671833,
-0.0976159424,
-0.1132389829,
0.3043536842,
-0.021550037,
-0.0956455842,
-0.0459770821,
-0.0593117885,
0.4808601141,
-0.1795221418,
-0.1083072945,
-0.1933694035,
-0.2719430625,
-0.0118731866,
-0.0888970122,
-0.0785859376,
-0.2907751501,
-0.22524257,
-0.1286563277,
0.2043587565,
0.0064783348,
0.0842387006,
-0.0732141435,
-0.0420103669,
-0.1324606687,
-0.0524498038,
0.236254558,
0.1284718215,
-0.2751265168,
-0.1086897328,
0.0477763452,
0.0530823804,
0.0033305914,
0.4647884965,
0.4162112474,
0.3979310989,
-0.1336795986,
-0.0420219824,
-0.065279983,
-0.0175178889,
-0.0099156993,
0.3217160702,
-0.024500167,
-0.5021936893,
0.2450174391,
0.1919254363,
-0.2042109072,
-0.0013176539,
0.0143441288,
-0.2084879577,
-0.4785096943,
0.5972684026,
0.2217303216,
-0.0170082897,
-0.1540469527,
-0.0283701085,
-0.5284959674,
0.0476521477,
0.45562163,
0.0087366803,
0.1763027012,
-0.2390505075,
0.1270014942,
0.0821920484,
0.1416700482,
0.2353720963,
-0.1099778339,
-0.170477584,
-0.0480967797,
-0.5807263255,
0.3241773844,
0.1596541703,
0.1300630122,
0.1351840645,
0.1925930679,
-0.1610677242,
0.1187671348,
0.0569481961,
-0.0073353201,
-0.0341966674,
-0.2608324587,
-0.6395238042,
0.1411864311,
-0.2149755359,
0.0472189374,
-0.0644974038,
-0.3366399109,
-0.183465004,
-0.3876719475,
0.0874833092,
0.0643761903,
-0.2838181555,
0.217163682,
-0.0354037881,
0.520880878,
0.0153018916,
0.1930983514,
0.0538618229,
-0.1453312486,
-0.1789999455,
-0.0623448938,
-0.258967936,
0.2046235353,
-0.1339682788,
0.3476674259,
-0.2464136332,
0.0229828525,
-0.2652245462,
0.2527111471,
0.3426258862,
-0.4291706085,
-0.3014354408,
0.3762182593,
-0.0846518874,
0.1176522374,
0.1365604848,
0.4052394927,
-0.1069847271,
0.4745934904,
-0.3068552017,
-0.296524018,
0.506090343,
-0.2775691748,
-0.3304468691,
-0.327385515,
0.6099879146,
0.2633413374,
-0.1258384883,
-0.5347605348,
-0.0147110876,
0.3951182365,
-0.0136456545,
-0.1784244776,
0.1490536928,
-0.3307340145,
0.1264851391,
-0.0887347162,
0.3600253761,
-0.0750304535,
-0.0925961807,
0.1823816746,
-0.0975346044
] |
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.6230252981,
0.0684201345,
-0.2241070569,
-0.0011126295,
-0.0653920695,
-0.0625755042,
0.1025174484,
0.2215956002,
0.1189825237,
0.3236289322,
0.2269605547,
0.2179020047,
-0.2382513732,
0.4009597301,
0.0867367014,
-0.0855377913,
-0.0039108046,
0.0257603396,
-0.3132508397,
-0.0593193397,
-0.2509873807,
-0.0065764692,
0.0509937145,
-0.1066529229,
-0.1733564585,
-0.2124451697,
-0.2157185674,
0.0495202616,
-0.1937624514,
-0.1133072525,
-0.1484751701,
0.0985474065,
-0.0310334899,
0.1762388647,
-0.0000950589,
0.0303419493,
0.0873691663,
-0.0173284225,
-0.1495586634,
0.0322934091,
-0.1998693049,
-0.2357268184,
-0.1913837343,
-0.0995224938,
-0.2482877821,
-0.3055033088,
0.1753941923,
-0.160430178,
0.1601270735,
0.1716118157,
0.4217909575,
0.0971788764,
-0.0057386835,
-0.0885415524,
0.1435339749,
0.3612351716,
-0.1792608649,
-0.1117325425,
0.2214248031,
0.0567653701,
-0.1190080196,
0.3845181167,
-0.130617708,
-0.0669638067,
0.1537837386,
-0.0036902449,
0.4531488419,
-0.0692374185,
0.0502351373,
0.2914082408,
0.3696748316,
-0.0297209602,
0.0431031696,
-0.2419792563,
-0.0569373369,
-0.1633580327,
0.0782719925,
0.3049125075,
0.0192151312,
0.0670703202,
-0.3540783226,
-0.252300173,
-0.1428036541,
0.2731841803,
0.0099574048,
0.1090831384,
-0.2636859715,
-0.136798501,
-0.0572414622,
-0.0115477722,
-0.0016429276,
-0.0419679768,
-0.040361952,
-0.1071384922,
0.158935219,
-0.2846082747,
0.2675791085,
0.3740528226,
0.2439796329,
0.0790722743,
0.217136085,
-0.015631821,
0.146066919,
0.0936230198,
0.0302219652,
-0.0052097528,
-0.2541324496,
-0.0691235512,
0.0850654542,
0.0107920207,
-0.0360970572,
-0.0156643223,
0.0807579905,
-0.0613357686,
-0.3894497454,
0.0395666398,
0.1997942477,
-0.1449996233,
-0.2350882888,
-0.1658115387,
-0.0954439044,
0.067333132,
0.2127806842,
0.1905245036,
0.1502644271,
-0.2285730988,
-0.0628766865,
0.1328580678,
0.0877081156,
0.0078050359,
-0.1772197634,
-0.0224580318,
-0.1922895461,
0.2782239616,
0.1723859757,
0.1065274328,
0.346249938,
-0.2274959236,
0.1222018674,
0.1039485559,
0.222463578,
0.2691273391,
0.3936699927,
0.0028164745,
-0.1251038462,
-0.3085381389,
-0.005026476,
0.0725638866,
-0.3081751764,
-0.1603622437,
-0.1034092605,
-0.1174107939,
-0.6414911747,
0.3258069158,
0.0167045482,
-0.1306330711,
0.3455616236,
0.4194293618,
-0.0807241201,
0.1015362665,
0.1099149063,
0.546833992,
-0.2805460989,
-0.1869443357,
0.0710544512,
0.3174801469,
0.2171292454,
-0.1784776151,
-0.0948301926,
0.0587571561,
-0.1399819255,
-0.2157731652,
-0.0245055612,
0.3536581099,
-0.214051947,
-0.1769832671,
0.0251721088,
-0.0991854519,
-0.1977201551,
0.0249369089,
-0.4823989272,
-0.3185204268,
0.1451164335,
0.0448160917,
0.2196044475,
-0.0234549418,
-0.1469696909,
0.298838824,
-0.1710608453,
0.0904277116,
-0.2635373473,
-0.3852530122,
-0.0747675598,
0.2344445735,
-0.011259689,
0.0674143285,
0.2207694203,
0.1787236184,
0.0239801444,
-0.1878061742,
0.2258798182,
0.2710599005,
0.1962820888,
-0.0687554702,
-0.3588471115,
-0.1836931556,
-0.2154414356,
-0.2696719468,
-0.3207306564,
-0.1458589882,
0.0978269354,
-0.1733015329,
0.0119500309,
-0.1436831206,
-0.148826614,
-0.034343008,
0.4483798146,
0.1232352629,
0.1259396076,
0.0121795712,
0.1993554533,
-0.1470784396,
-0.0002672934,
-0.075567998,
0.1166490093,
0.2808678448,
-0.1394071728,
-0.0229549408,
0.1239667237,
0.3052731156,
0.0543753169,
-0.0755762085,
0.2510988414,
0.2471222579,
-0.4497465193,
0.1395656765,
0.2692775428,
0.6203433275,
0.0687893257,
-0.2716167271,
0.2816954255,
0.0852932557,
-0.1750497818,
0.0361089408,
-0.3376235962,
0.183588922,
0.2295091301,
0.0209702067,
-0.175133571,
0.3101273775,
-0.0707539618,
-0.2436030656,
-0.1267685741,
-0.3893862665,
0.0852043927,
0.1160213426,
0.0240440518,
-0.0940997303,
0.0616935194,
0.2042934597,
0.1607660502,
0.0418613553,
0.346927166,
0.0788424462,
-0.3081943095,
0.0382649302,
0.1487524956,
-0.0959708914,
0.0808031857,
0.3439020813,
0.2279255837,
0.0097229593,
0.092415832,
-0.0774166957,
0.1614509225,
0.170250684,
-0.0818791687,
0.1255163252,
0.0986687914,
0.0706477836,
-0.6637938023,
0.0366606414,
0.0985404477,
-0.0511816405,
0.0899758711,
-0.1714110821,
-0.0347533859,
-0.4059109688,
-0.0967213884,
-0.0804722235,
-0.0178092774,
-0.2373981178,
0.2716464102,
0.021603927,
-0.2388005257,
0.2244888395,
0.1554943621,
0.3148771524,
-0.1643854529,
0.023154296,
-0.0639286935,
-0.3015564978,
0.039094951,
0.3722413182,
0.1592794508,
0.0796656534,
0.5405752659,
-0.2245626599,
0.5198448896,
-0.5102850795,
-0.6112648845,
0.0957112834,
0.1514917761,
-0.2901206315,
0.2286679745,
0.1449794918,
0.1110251024,
-0.1933417916,
0.0316030234,
-0.0301307067,
-0.0487855151,
-0.2493217289,
-0.2277150005,
-0.1805244386,
-0.2456379831,
0.1113200933,
-0.0120783523,
-0.5066966414,
0.264817059,
0.2403164208,
0.0354921855,
0.1074683964,
0.1158180162,
0.2038116157,
-0.6048651338,
0.2234700024,
-0.1103955805,
-0.3730154037,
0.0482158586,
-0.396802783,
-0.0938651636,
-0.1508735418,
-0.159716472,
-0.0215467177,
-0.0643768832,
-0.3661302924,
-0.2579315007,
-0.1849819422,
0.2595286667,
0.3191810846,
0.0671480373,
0.4511181712,
0.3124196827,
-0.258128792,
-0.0313525312,
-0.0152908899,
-0.0152024394,
0.3127680719,
0.3218159378,
-0.1103197709,
-0.1075893417,
-0.0312795676,
0.2447682619,
0.2708536088,
-0.2615627944,
0.395871371,
-0.0930595174,
0.5226425529,
-0.0089005921,
-0.1838508248,
0.3940804601,
0.0300674606,
0.099756822,
0.4693874419,
0.2889023423,
-0.0597187877,
-0.0623610802,
0.0250976402,
-0.3260589242,
-0.2032307088,
-0.0565262362,
0.0013793242,
0.1906847805,
-0.0734797865,
-0.1845308244,
-0.3187710047,
-0.121381484,
0.4813639522,
0.1417663991,
0.110712938,
-0.190678224,
0.0330681428,
0.2859848738,
-0.4778059125,
0.1688166559,
-0.0384081341,
-0.682849884,
-0.5322359204,
-0.0232677665,
-0.1445318162,
0.0450761914,
0.1862589866,
-0.1528746337,
-0.0885681883,
-0.1438151747,
0.1635588259,
0.0843689293,
0.1585358828,
-0.0749701038,
0.0854642317,
0.2112662047,
0.473549515,
-0.2738244534,
0.0052978038,
0.2657741606,
0.2148847729,
-0.0757662803,
0.2871134579,
0.1648851931,
-0.318285346,
-0.2095272988,
0.2221398652,
-0.0155637618,
0.1223191395,
0.4529213905,
-0.1820939034,
0.1176413447,
0.0006025027,
-0.0711594522,
-0.0766969621,
0.330912292,
0.2759957612,
0.0682695955,
0.1407665312,
0.3495259285,
0.1246497631,
0.4100805521,
-0.3319395185,
0.0867276713,
0.1538971663,
-0.3069651127,
0.2242828161,
0.2957182229,
0.1607388854,
0.007513863,
-0.0488597155,
0.0738080889,
-0.519233942,
0.1320585608,
0.06013662,
0.2293596864,
0.0801772699,
0.1553259641,
0.3070636392,
0.0583860502,
-0.2221194357,
0.2683371305,
-0.0275299791,
-0.2147564441,
0.2057550699,
0.2147281617,
0.7943814397,
-0.0279024653,
0.0585988089,
0.3563001752,
-0.1825182736,
-0.1278190017,
0.0548619293,
-0.1430567354,
0.0284268428,
-0.2834557593,
-0.025511831,
0.0109053003,
-0.015911309,
0.2491572499,
-0.3056859672,
-0.1912503392,
-0.0228170175,
0.1667384654,
-0.0822260976,
0.1199418753,
0.1780029237,
-0.2580582798,
0.041980546,
0.3108378947,
0.1387301385,
0.2688900828,
-0.0310554616,
-0.1904050708,
0.312685132,
-0.1418594569,
-0.2654376924,
-0.0825910866,
-0.0297539309,
-0.2243078947,
-0.1122975796,
0.0149105843,
-0.075932391,
0.0886699632,
0.3624706864,
-0.0803180784,
-0.3157356977,
0.2020474821,
0.1063031033,
0.0051079346,
-0.137644738,
0.0983408913,
-0.1380514205,
-0.1262558401,
0.1630841792,
0.0074680811,
-0.0462046042,
-0.1249517798,
-0.4165939987,
-0.1133062616,
0.2288375348,
-0.0053539081,
0.5253330469,
0.0532201454,
-0.0698421001,
-0.2707271576,
0.2843099833,
0.1614391655,
0.1358451843,
0.0491369143,
0.283780694,
-0.1220449433,
-0.1672076881,
0.103856355,
0.025981091,
0.1418999285,
-0.1899154633,
-0.0006591865,
-0.2138885111,
-0.4174345136,
0.033239007,
-0.0608518198,
-0.0457498468,
0.1162160113,
0.1164599657,
-0.2296570688,
0.1569875032,
0.3926700056,
0.1478807032,
-0.029228257,
-0.0863289908,
-0.1877083629,
-0.3688640893,
0.2121436,
-0.12604177,
0.4057596326,
0.0060097426,
0.0187430251,
0.1353941262,
0.0341271088,
-0.5436127782,
-0.0257353298,
-0.221255511,
0.0951053947,
0.1314079165,
-0.2149347365,
0.2341575027,
0.0308505688,
0.201445207,
-0.2828035355,
-0.2702721059,
-0.3398700953,
-0.1597587466,
0.0696217567,
-0.103373073,
0.1781077683,
0.3261272013,
0.0630131513,
-0.1480593681,
-0.1249705777,
0.0129693262,
-0.1350702792,
0.008386123,
-0.1960857511,
0.0350235887,
-0.0264254175,
-0.0611908436,
-0.0173749886,
-0.0235322174,
0.0424217172,
-0.1137640625,
0.1766498089,
-0.1386777759,
-0.1207620576,
0.1893795431,
0.2129257917,
0.3505798876,
-0.2509461343,
0.2759134471,
0.277605921,
-0.1396074891,
0.3650394678,
0.0073036323,
-0.4045530558,
-0.0795770809,
0.1772400439,
0.0323738456,
0.4277227223,
-0.4086653888,
0.0117177106,
0.1282572448,
-0.1319140494,
0.4178148508,
0.162331,
0.2632780969,
-0.1911299676,
0.0869377777,
-0.0108883325,
-0.0888860598,
0.0302264709,
-0.0044232477,
0.2714775205,
-0.0076160668,
-0.1423958093,
0.37763533,
0.1821475327,
0.1286646575,
0.0805474296,
0.067806147,
0.3705394268,
-0.1380265802,
0.0275955088,
0.152768299,
0.0977486297,
0.5251342654,
0.0518852063,
0.2139780372,
0.0660583973,
0.0854439437,
0.2081622779,
-0.0804193318,
-0.052851703,
-0.337816447,
0.4252865314,
-0.0080622965,
-0.1204301342,
-0.1732717752,
-0.1280676723,
-0.0152622126,
-0.1200763211,
0.2446440756,
-0.2435304821,
0.1986076534,
-0.2377636582,
0.2374537438,
-0.0236411802,
-0.0473590679,
0.0158294253,
0.239797011,
-0.1980521828,
0.2210667282,
-0.2560221851,
-0.1375739723,
0.0605703481,
0.4935971498,
0.1389361769,
-0.1153158247,
-0.1423374861,
0.0269994959,
-0.1033097133,
-0.1255057156,
-0.3297211528,
0.0240420196,
0.0214968845,
-0.1325967163,
0.4272671938,
0.2687672973,
-0.3066293001,
-0.0320828557,
-0.1506852061,
-0.0244073626,
0.2835616171,
-0.2538000345,
-0.0056196628,
-0.0525400229,
-0.2152952999,
-0.0921743363,
-0.2154504508,
-0.2862650454,
-0.0455489606,
-0.2045321167,
0.0657589808,
-0.0375813469,
0.1787769049,
-0.0093695614,
0.2979602516,
0.2489989996,
-0.0259635206,
0.0779223293,
-0.431240797,
-0.2481152564,
0.2071685493,
-0.2502093017,
0.0365791805,
0.0501914322,
-0.0540024973,
0.2050939053,
0.1456219107,
-0.0717368275,
0.0459606685,
0.0319516882,
-0.1186892241,
-0.4050329626,
0.089873381,
0.1561270207,
0.1325044334,
0.1925547719,
-0.1578136832,
0.0151295234,
0.0497856326,
0.2883238196,
-0.3631317914,
0.0406082533,
-0.5141163468,
-0.1600817144,
0.166154474,
-0.2204019576,
-0.0455406532,
-0.323052913,
-0.3244896531,
-0.0422533602,
-0.0764983967,
-0.0923652425,
-0.0277593695,
0.2801041305,
-0.0329695158,
-0.1189932153,
0.0649993196,
0.0712719336,
0.1353492588,
0.2421403676,
0.1140562817,
-0.0565736815,
0.2857164443,
-0.109784916,
0.1879212558,
0.082914032,
0.0898010209,
-0.0343560278,
-0.209067449,
0.1867343485,
-0.2917203605,
0.3974739313,
-0.3262176514,
0.0062652663,
0.0756151527,
0.0850985721,
-0.1385531574,
-0.0676283911,
-0.122023806,
0.0227508862,
0.1825362146,
-0.0107602049,
0.0817347169,
0.1383605301,
-0.1436309963,
-0.1232245862,
0.0074331705,
0.2546882629,
0.0474913232,
-0.1564385295,
-0.1412764192,
-0.3002550304
] |
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.3897119164,
0.0689004436,
-0.0436253659,
-0.1407741308,
-0.0075453566,
0.2361044139,
-0.0866280943,
0.4099913239,
-0.0332525037,
0.0552656464,
-0.2268211842,
0.1267441064,
-0.1374959052,
0.3757569492,
0.3153653145,
-0.1025511324,
-0.0221793558,
0.0116232242,
0.3541308343,
-0.2009497732,
-0.1525127739,
0.1563080251,
0.0348925292,
-0.0708513781,
-0.0675632581,
0.0845845044,
-0.1082299799,
0.0525997765,
-0.1277036071,
-0.3679586649,
0.1854727417,
0.3187082112,
0.2517134547,
0.2469443679,
-0.0001240131,
-0.4164186418,
0.1370146424,
-0.1946642399,
-0.5836828351,
-0.1107829064,
-0.250659287,
0.037297532,
-0.1177461669,
0.1902162433,
0.1305425018,
-0.0199205782,
0.0473642424,
-0.3805801868,
0.0396899842,
0.1962828487,
0.0604043603,
-0.1646220833,
0.1000420228,
-0.2372972071,
0.0352668948,
0.1634635329,
-0.0934527218,
0.3102360368,
0.663554132,
0.2257750928,
0.2486783564,
0.0445476696,
0.1510124952,
-0.3072903752,
-0.0004821297,
0.1340319067,
-0.2501448989,
-0.4530813992,
0.1524716467,
0.5523589849,
0.6914020181,
-0.1817149073,
-0.3851209879,
-0.116463542,
0.1334379166,
-0.5129933953,
-0.111948967,
0.0647772551,
-0.0460772626,
0.1696072519,
0.2209830284,
-0.4564381242,
-0.0083207861,
0.453556329,
0.2018193603,
0.1871570051,
0.0545915402,
-0.137604326,
0.3618970513,
-0.094229795,
-0.071377337,
0.0558886528,
0.0256278813,
0.4348695576,
0.0762251765,
-0.3975177705,
-0.0114528732,
-0.516058743,
0.4938575327,
-0.2566071451,
0.0837340727,
0.1518265307,
-0.6276643276,
-0.1240407377,
0.3796098232,
-0.2602550983,
-0.1462113857,
0.0701047406,
0.3797551394,
0.1778350323,
0.816459775,
0.1496021599,
-0.268125236,
0.0660153851,
-0.207132265,
0.1514519155,
-0.0152978674,
-0.3966104984,
-0.1177078485,
-0.0770761743,
0.0033965155,
0.0795909017,
-0.3144283295,
0.0444233641,
0.0949635506,
0.1216045171,
-0.0240254644,
0.1572533846,
0.1144949198,
-0.2641268373,
0.1021916345,
0.1461636573,
0.0444496199,
0.1630933136,
0.0774116367,
-0.6380676031,
0.0543288812,
0.0733753294,
0.3085194528,
-0.1125856712,
-0.3097592592,
0.2996521294,
-0.3038826287,
-0.1478011161,
0.0384140834,
0.1520601213,
-0.2544488609,
0.3241444826,
-0.3895080686,
0.1245366111,
-0.0625215918,
-0.487184763,
-0.117495425,
0.0531682298,
0.1520287842,
-0.3868254721,
0.3178738654,
0.2663357854,
-0.2161913067,
-0.3090519011,
-0.0580612645,
0.2228979468,
-0.3956089914,
0.0290811509,
0.0688039288,
0.5167534947,
-0.6113045812,
-0.0970230848,
-0.3922157884,
0.1342054307,
-0.2091186494,
0.1252499074,
-0.0284994319,
0.0580731258,
-0.4365788698,
0.0588038862,
0.5816565156,
-0.5174854398,
-0.2799948752,
0.2649065554,
-0.2213199139,
-0.2088127136,
0.1940359622,
0.1273486465,
0.467002511,
-0.012724488,
0.1766998321,
0.1752272248,
-0.2556617558,
0.0175011549,
-0.091314964,
-0.4835682213,
-0.26573807,
0.16387932,
0.1479586661,
-0.1275346875,
0.1275568753,
-0.0209602248,
0.4738979042,
-0.0539263524,
0.2950319052,
0.2058830708,
0.3243651986,
0.032044258,
-0.0217147358,
0.1040775701,
-0.3587942123,
0.0817736238,
0.0326970257,
0.1676013172,
0.0703766271,
-0.3706407845,
-0.2648741901,
-0.3648479879,
-0.045513548,
-0.110675782,
-0.0740583837,
0.231718272,
0.2323177904,
-0.1991369724,
-0.2143361121,
0.2044939548,
0.2810826898,
0.110215053,
0.0540391132,
0.0138708418,
-0.0384279564,
0.1122696698,
0.2321036607,
0.1626626849,
0.2238751799,
-0.2100116313,
-0.1075395569,
0.2778187692,
-0.0040992619,
0.66362077,
0.2237515599,
0.2109286785,
0.2058417946,
0.0763212889,
0.213795051,
0.2449186891,
-0.1573194116,
0.0034839942,
-0.2436184287,
0.2828457952,
0.3007521927,
0.0037646759,
0.1546219736,
0.2307993621,
0.1304879934,
0.0746318921,
0.0362138636,
-0.1223577112,
-0.1598813832,
0.0585060567,
0.3595190346,
-0.1486742347,
-0.5801503658,
0.3750169873,
0.4067930281,
-0.1300883442,
0.1598213315,
0.2438955307,
-0.3069539964,
-0.1593471617,
-0.0127574718,
0.1984668672,
0.1514738351,
0.2299782634,
0.091049023,
0.1847024113,
0.2917859554,
-0.0427494235,
0.2333384454,
-0.0779764801,
-0.0976061746,
0.4231739938,
-0.1869976521,
0.1300890595,
-0.3433696032,
-0.174697116,
-0.0153604066,
-0.0549229905,
0.0351476446,
-0.4609864056,
0.0200646333,
0.1403175145,
-0.4364107847,
-0.0405479372,
-0.0631513,
-0.3243238032,
0.2186034173,
0.3028700948,
-0.0349641629,
0.0587984733,
-0.3607230484,
0.2980543375,
-0.3364135325,
-0.4129265547,
-0.0940512493,
-0.0122427158,
-0.2489033043,
0.0277524143,
0.0449789353,
-0.2859224081,
0.2350473702,
-0.2272629589,
0.1947667748,
-0.4353840947,
-0.4220513701,
0.1608827412,
0.016744677,
-0.4277882874,
0.1313137412,
-0.2983760536,
0.2825030088,
0.0157576855,
-0.3078207076,
-0.1229287311,
-0.1884715408,
-0.4340613484,
-0.1374359578,
0.2221310735,
0.1926539242,
-0.7328447104,
-0.3953494728,
-0.4587974846,
0.1181815788,
-0.2502521276,
0.0705011636,
0.0066025285,
-0.0758027583,
-0.1232871562,
-0.2171442658,
0.2414302826,
-0.2790501118,
0.2103626132,
0.2944699824,
-0.194648236,
-0.3588213027,
0.0477154627,
-0.2169556916,
0.2603698075,
0.0520537011,
-0.3211286664,
0.4290325642,
0.1537175626,
0.2312139571,
-0.041788917,
-0.0362405851,
0.530261457,
0.2607544065,
-0.1030116901,
0.0379974619,
-0.0504226796,
-0.2390134931,
0.2745096982,
0.2551525533,
0.0466812365,
0.2509110868,
0.1000866219,
0.7929118276,
0.0699421391,
0.0917323902,
0.0113681704,
-0.1323478967,
0.3699172139,
0.0880690217,
-0.1667708755,
-0.0713273957,
-0.100561358,
0.1786996424,
0.3359190822,
0.2163040787,
-0.0623994321,
-0.1944149286,
-0.1485824436,
-0.1240453422,
-0.0507997572,
0.087049827,
-0.127982989,
0.3972433507,
0.2608754635,
-0.0262058619,
-0.1185222417,
-0.0044024247,
0.2155894935,
0.1549449265,
0.0986183509,
-0.0102551477,
0.3189976811,
0.4521587491,
-0.3467702866,
0.1879076362,
0.3292075396,
0.1728169322,
-0.3932289779,
0.0149852103,
-0.0070269192,
0.134765178,
0.2318744659,
-0.2194045782,
-0.1079747602,
-0.0550617613,
-0.0080592949,
-0.0717713982,
0.1767873615,
-0.274818331,
0.0279457532,
0.4873161316,
-0.1069931388,
-0.3011751175,
-0.0860538334,
0.5095319152,
0.1847729385,
-0.0767917261,
0.1322136223,
0.2080122381,
-0.1358366311,
-0.354885906,
0.0565719865,
-0.1595712751,
0.0538225845,
-0.1640256643,
-0.1018119603,
0.4033174813,
-0.0367179178,
0.0523284003,
-0.3107072115,
0.1715810001,
0.358283937,
0.2556029558,
0.186548382,
0.0445892587,
0.4322367013,
0.4311977625,
0.0220358111,
-0.2229167074,
0.0372348651,
-0.5398786664,
0.391156584,
0.494047612,
0.1206305847,
-0.1265558451,
-0.0328854099,
-0.2956703603,
0.1037110314,
-0.0365497954,
0.3544363081,
0.2191476673,
-0.5651633739,
-0.4353216588,
0.1628648043,
0.1665747166,
-0.2549287081,
0.2579556704,
-0.1141849235,
-0.1582355052,
-0.0315859281,
-0.2802395225,
1.1013664007,
0.2786722779,
0.3372334242,
-0.0093832519,
-0.3418517411,
0.1972944438,
-0.2426375151,
-0.0923859403,
-0.1486102939,
0.2155482769,
-0.20856148,
0.0637802407,
-0.2620514929,
0.0314013548,
-0.2880209982,
0.4694891572,
0.0665204898,
-0.0216717366,
0.2636144757,
0.4605937004,
-0.224712953,
-0.3435023129,
0.2273363024,
-0.008492576,
0.1254480034,
0.6293457747,
0.0409244373,
-0.3916577995,
-0.2945463359,
-0.3658155501,
-0.4083197415,
0.224278301,
0.0314944014,
-0.0602371916,
-0.1336972415,
-0.0498058796,
0.3182794154,
-0.1848172843,
0.3094366491,
-0.0069452114,
-0.2686252296,
0.0355221517,
0.1778980941,
-0.1250362992,
0.3106165528,
0.0363711156,
0.0862062797,
-0.095475845,
-0.2484401315,
0.1662700176,
-0.0545730628,
-0.2792824507,
-0.1199139655,
-0.18250525,
0.0352063701,
-0.2328578085,
-0.2651263177,
0.3359254301,
-0.2981410027,
-0.2906295359,
0.0317697823,
0.1675309837,
-0.174884662,
-0.0792968422,
0.3043959439,
0.0575808696,
-0.1693569869,
0.6294356585,
0.0792639554,
-0.2609728873,
0.4255687892,
0.0130991172,
-0.0996785089,
-0.1657105833,
0.073564589,
0.2148166299,
-0.5074224472,
-0.0870019346,
-0.2099499702,
-0.0243629925,
-0.2353970855,
0.3598627746,
0.0052564158,
0.3169459105,
-0.3262868226,
-0.2382822931,
-0.3997450173,
0.1371049434,
0.0130982613,
0.3953422904,
-0.0526324026,
0.002427232,
0.2174754888,
-0.1749491096,
-0.1994875222,
0.1233489364,
0.3694261014,
-0.1273794621,
0.6541808248,
0.2961565852,
0.2610889375,
-0.0086467825,
-0.0815132633,
-0.1322222054,
-0.2986320853,
0.0087532829,
-0.0757566467,
0.1869588494,
0.0391260907,
-0.0972154737,
-0.0929516479,
-0.0846464634,
-0.2465289682,
0.2909641564,
0.021285478,
0.0734150931,
0.1227352098,
0.0313340351,
-0.07140062,
-0.0764034539,
0.034036234,
0.2860241532,
0.0586288571,
0.4684439301,
0.1377410144,
0.4391716123,
-0.1340586096,
-0.2675173581,
0.1980858445,
0.2103239894,
0.3753092885,
-0.2128185183,
0.3068583012,
-0.0254090149,
-0.0645924434,
0.1863841861,
0.2407653332,
0.3072826266,
-0.2076260597,
0.0092559438,
-0.0353048481,
0.0691497028,
-0.4054576755,
-0.0847056359,
-0.2982488573,
-0.0039069699,
0.0256102942,
0.1183417812,
0.3522498012,
-0.0350687578,
0.5823600888,
-0.0325139947,
0.0720368996,
-0.0760497451,
0.3950069547,
0.4880945683,
-0.0044318936,
0.2583203614,
0.083624579,
0.068448849,
-0.0589561947,
-0.0442601256,
-0.5513555408,
-0.1905622333,
0.1594311446,
0.0079046357,
0.4129475355,
-0.3530225456,
0.2965224683,
0.4625873268,
0.1082483009,
-0.1131667122,
0.3864279687,
0.56004107,
0.1485458463,
-0.0364752151,
0.1294241995,
0.1728715897,
0.1189909652,
-0.1233244613,
-0.0667540058,
-0.2481357008,
-0.5411576033,
0.211911127,
0.0681434646,
-0.1262340546,
0.1150540262,
0.0577240437,
0.106649138,
-0.2904768884,
-0.2527487576,
0.0812528729,
-0.0183547903,
-0.174288094,
0.0859902874,
-0.1135555729,
-0.1134597063,
0.2942746282,
0.5817174911,
0.1421033889,
-0.138916567,
0.2913805544,
0.3578938544,
-0.0027552296,
0.1183114722,
0.1787409037,
-0.1841954887,
0.1834459305,
0.1833059937,
0.1276132166,
0.0095173037,
0.0336617753,
0.0910178274,
0.119657211,
-0.2098660618,
-0.0627057701,
0.4658004642,
0.2066519558,
-0.0252023339,
-0.3366094828,
0.0385636091,
-0.2646127045,
-0.152144134,
0.4577650726,
-0.0210623033,
0.0115578026,
-0.126284495,
0.0023985477,
0.2506901324,
0.0299122203,
0.3688190281,
-0.0540840738,
-0.0706751272,
-0.1639256626,
-0.3195562065,
0.077921167,
0.0733779445,
-0.0143794697,
-0.3660420179,
-0.0116927531,
0.2468599528,
0.2482654452,
0.4047496617,
0.1105213463,
-0.2760939896,
-0.0818062201,
0.1156421378,
-0.120829463,
0.2238268554,
0.4752204716,
-0.0172496997,
-0.1476758122,
0.0066566169,
-0.1145588607,
-0.1547755897,
-0.1602440029,
-0.152258873,
-0.2332669944,
-0.2176439762,
0.3434557915,
-0.2784249187,
0.3796603382,
-0.2898495495,
-0.2737598419,
-0.1534916312,
0.0320381001,
-0.1974921674,
0.2600562871,
0.0700505078,
-0.0445153639,
-0.2142020166,
-0.267490536,
-0.2769855559,
0.1053990275,
-0.0668181926,
-0.174644053,
-0.1279672384,
0.0851645172,
-0.1741343737,
-0.0723673627,
0.1871166378,
0.2277425975,
-0.2829014063,
-0.1032680571,
-0.4452148676,
-0.2198553085,
0.2667154968,
0.1583931744,
0.194514364,
-0.2978352904,
0.2802814841,
0.2864380181,
-0.1136658788,
-0.1449761242,
0.247597307,
0.1035009176,
0.1211751476,
0.0664867312,
0.0072774775,
-0.1020928174,
0.0491352193,
-0.2674432397,
0.5598207712,
0.3930935562,
-0.1803133488,
-0.2255277783,
-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.5779123902,
-0.0810000077,
-0.0453642905,
0.4501566589,
0.2459625155,
0.0139752384,
0.5565328002,
0.2723812461,
0.1843714416,
0.190743193,
-0.0311777443,
0.1464354247,
0.0212424397,
0.1441879869,
-0.0885509849,
0.0235604215,
0.130916521,
-0.225741446,
-0.396879375,
-0.020363301,
-0.2406819612,
0.1446245164,
0.0855502933,
0.1932708472,
-0.5113247633,
-0.343385607,
-0.054175809,
0.0557929277,
0.2590036094,
-0.0671327189,
0.1664635986,
0.2859387994,
-0.0116242915,
0.8678805232,
-0.0001090042,
0.1391355991,
0.1289679706,
0.1109725013,
-0.0634467751,
-0.2272720188,
0.0330817029,
-0.1079750583,
0.1186951771,
-0.3137779534,
0.1189507097,
0.0584997945,
-0.0300556589,
-0.2093537003,
0.5382677913,
0.0736097991,
0.2384029627,
0.3819690645,
-0.306597054,
-0.2297081202,
0.184245497,
0.0569793843,
0.0860361606,
0.0703068003,
0.1006151512,
-0.160428524,
-0.024353968,
0.4298269749,
-0.128874734,
0.2059703469,
-0.0231341925,
0.0869602412,
0.105138883,
-0.5513931513,
0.0767248124,
0.0688893348,
-0.0115328655,
-0.3123032451,
-0.3542195559,
-0.3473508656,
-0.063926883,
-0.2551654279,
0.0928216428,
0.3452658653,
-0.2033959925,
-0.192307502,
-0.0920515656,
0.1867491901,
-0.0755040571,
-0.1349956691,
0.2415364087,
0.3306524754,
0.0830515549,
0.2387526929,
0.0692320988,
0.0927331373,
0.3280490339,
-0.1612950414,
-0.1014360115,
-0.0775530413,
-0.6200729609,
0.0457459316,
-0.0160570163,
-0.4652229249,
0.1843743771,
-0.1858733743,
-0.1885084957,
0.0499863438,
0.1717090607,
0.1031513512,
0.2989792228,
0.0960013419,
-0.3177449703,
0.2705483735,
0.3438621461,
0.133197695,
-0.5029966831,
0.0652743578,
-0.0156140514,
-0.2567523122,
0.2176098078,
0.1873345375,
0.241457805,
-0.082989119,
-0.3572192788,
-0.0523140468,
-0.0511176847,
-0.0558524802,
-0.1014147997,
0.4524842203,
0.1777905375,
0.1567739099,
0.0913130566,
0.196944043,
-0.1822922677,
0.0624873862,
-0.3012304008,
-0.0290754084,
-0.0146925403,
0.2143331915,
0.1157390848,
-0.0643141717,
0.2248853892,
0.3379442692,
0.0498889759,
-0.4685381949,
0.2624682188,
-0.3657260239,
-0.2471657991,
0.1961344182,
0.1851788163,
0.1372065246,
-0.1051607355,
0.3842991292,
0.0134874098,
0.2587329149,
-0.328804642,
-0.1393947899,
0.080968067,
0.2727390528,
0.0137451869,
0.1152772903,
-0.3554977775,
0.1136913225,
0.3186284304,
-0.0416695848,
0.1086384803,
-0.3720646501,
-0.3164126277,
-0.1393731833,
-0.0205442514,
0.5279047489,
0.0768124536,
0.0268208738,
0.1770918518,
-0.1090105325,
0.0915665179,
0.3510976136,
-0.3423238993,
0.4966163635,
-0.3493314385,
0.1288179457,
0.2440502197,
-0.3719637394,
-0.1516721249,
0.3383846283,
-0.1646657586,
0.1252203733,
0.2112874538,
-0.0568553768,
0.21223405,
-0.1359219253,
-0.0084831342,
0.1491883844,
-0.1079862714,
0.4015438557,
-0.1918608993,
-0.2839155495,
0.0489498824,
0.1688931584,
0.3223808408,
-0.0939977542,
0.0269823596,
-0.2874780595,
0.3875814676,
-0.3304337561,
-0.0731934533,
0.2158525139,
-0.010300559,
0.0795356929,
0.0810648426,
-0.1096468195,
-0.5169214606,
0.1978816986,
-0.3624862731,
0.0432495624,
0.0342298299,
-0.1991611123,
0.1067375094,
-0.0417706519,
-0.2488531917,
-0.1888306737,
0.1706274003,
0.2317134887,
-0.1502680182,
-0.1181374416,
-0.1473602355,
0.3599050641,
-0.1582810879,
0.0234614518,
-0.0023935749,
0.170536086,
-0.1951894015,
-0.2185280919,
0.1162099242,
-0.0603482202,
0.4591345191,
-0.1816610694,
-0.1646381468,
0.2344811857,
0.1979358047,
0.3151448667,
-0.0608299449,
0.0168911703,
0.1874210238,
0.1556908488,
-0.0017903493,
0.1425170153,
0.2640647292,
-0.1452901363,
0.0974553451,
0.3178673387,
0.0033610153,
0.1383698881,
0.059060201,
-0.2233059704,
0.1934239864,
-0.1233384609,
0.1891791523,
0.1224580929,
0.2253107876,
0.1255553365,
0.0167564824,
-0.0816581398,
-0.5741454363,
0.0836442262,
0.3775577843,
0.166941613,
0.0734945387,
0.0733090118,
-0.0474900231,
0.0227888841,
-0.1682934165,
0.2998519242,
0.5353222489,
0.1349112839,
0.0457243361,
0.0882087946,
-0.1451269239,
-0.0892191827,
0.0666767061,
0.1546058059,
0.1948834807,
0.5548342466,
0.1994922459,
-0.0699805543,
-0.2803618312,
-0.1119266227,
0.2671930492,
0.0941751972,
-0.3748234212,
0.1850152314,
0.1274145544,
-0.1747792065,
-0.4213630557,
0.0054043448,
-0.0335235372,
-0.1470947862,
-0.0398528799,
0.456840694,
-0.1997359693,
0.3671449721,
-0.0299287383,
0.1571481079,
-0.1867981702,
0.2361012399,
-0.1471163779,
-0.071199134,
-0.1141484529,
-0.0113953641,
0.2849560976,
0.066940099,
0.3187499344,
0.0719444379,
-0.3169525862,
-0.3599553406,
-0.003394454,
0.0783700421,
0.001777793,
0.4231903255,
-0.0844050422,
-0.1965939254,
0.0808485076,
-0.4469998479,
0.2024543732,
-0.3591767251,
-0.0702028871,
-0.1327766925,
-0.2264379412,
-0.0671755075,
-0.1766143888,
-0.3789284527,
-0.2513655722,
-0.2676904798,
-0.0906181112,
-0.1727516204,
0.2116886973,
0.0763654634,
-0.1411368251,
-0.0400552563,
0.1537131518,
-0.0046700602,
-0.3079814911,
-0.3230584264,
0.0693268701,
-0.1893556714,
-0.3206602037,
-0.0872683227,
-0.1478090435,
0.0682694912,
0.2267443985,
-0.491656512,
-0.3557168841,
-0.10712789,
0.057795126,
-0.1461230218,
-0.0371048152,
0.0506974496,
0.0610220209,
-0.1380061507,
-0.1171885505,
-0.17283912,
0.2016058266,
-0.0312828906,
0.0052554607,
-0.1659801304,
0.26715222,
-0.1580262929,
0.6628257632,
0.2449264675,
-0.0611027293,
0.3297882974,
-0.1419707537,
0.078655906,
-0.0182801485,
-0.4407640994,
-0.0686315373,
-0.4300891459,
-0.2329538912,
0.1423811466,
-0.3390009701,
-0.1655288786,
-0.0883627683,
0.0207861494,
-0.3483386934,
-0.3111566603,
0.1051786467,
-0.1568962485,
0.3320012689,
0.0473193005,
0.160823673,
0.003293291,
0.0731304809,
0.285294503,
0.0372187756,
0.2085290402,
-0.1879965514,
-0.0320745856,
0.0756291524,
-0.191602394,
0.3207659125,
0.0992456451,
0.1881766915,
-0.0998483524,
0.2111586034,
0.0173972975,
-0.1154944077,
0.8625525832,
-0.1944369078,
0.3259495199,
0.194377616,
-0.3524226844,
-0.0848693773,
-0.1915692091,
-0.3549926281,
-0.2112865597,
0.2583164275,
0.6643006802,
-0.3218051493,
-0.1237824708,
0.1433638334,
-0.0208377447,
-0.2824375331,
-0.3151059449,
-0.1605422497,
-0.3001241684,
-0.2805771828,
0.1758769751,
-0.0904998705,
0.1202872097,
-0.5292026997,
-0.0838714018,
-0.1814915389,
0.2068257332,
-0.0105717564,
0.0588436686,
0.2804207802,
-0.0604165159,
0.4039424956,
0.1262615025,
-0.0301582273,
0.2747971117,
0.446330905,
0.0201086998,
-0.2770256996,
0.0019539788,
0.0463416912,
0.0897723585,
0.4556983113,
0.0272616427,
0.1352090985,
0.0671001971,
0.2680850923,
-0.0672242641,
0.1780902743,
0.3836326599,
0.2199997604,
-0.1989111602,
-0.3477317095,
0.0931111425,
0.2356355935,
-0.1319558173,
0.2889436483,
-0.5127386451,
-0.2068071961,
0.3026005626,
-0.0046676095,
0.6622441411,
0.0142627899,
0.0911537632,
0.3084229529,
-0.3028061986,
0.2865456045,
-0.2150483131,
0.3221713006,
-0.5821487904,
-0.2683510482,
0.115872927,
-0.1270323992,
-0.0752490237,
0.0526768267,
-0.114070192,
0.3120551109,
-0.0008432493,
0.0324364714,
-0.2479720712,
0.2446669042,
0.0065662721,
-0.3198529184,
0.0531230383,
0.1187562793,
-0.2992702723,
0.2569267154,
-0.1400964558,
-0.1082455367,
0.2545029819,
-0.2358600348,
-0.2938600183,
0.2325543016,
-0.3484943509,
0.280626297,
-0.1433752775,
-0.1927308589,
0.0463991389,
-0.0866825432,
0.1560346186,
-0.228722766,
0.0731347203,
0.0957629606,
0.0568759143,
0.1381038874,
-0.2318832725,
-0.1537004411,
0.4277763367,
0.0211631004,
-0.3620676696,
-0.0820331648,
-0.0373367257,
-0.0148329232,
-0.1281269491,
0.0481151827,
-0.1951634437,
-0.1983332783,
-0.1131098494,
0.2236152291,
-0.0742342025,
-0.3154717088,
0.1518262923,
-0.2507011294,
-0.2737055719,
0.3905715644,
-0.1238661259,
-0.3739266992,
-0.0774782002,
0.2204256952,
0.1755117625,
0.0789952353,
0.4106521606,
0.3367049396,
-0.0640730187,
-0.3133042455,
-0.2384478748,
0.1598050594,
-0.4164748788,
0.1772855669,
-0.1435780525,
0.151521787,
-0.027345838,
0.3164762557,
0.0630011782,
0.120594345,
0.0206557047,
-0.2940015495,
-0.2153666615,
-0.0177845284,
-0.0637848005,
0.2160817385,
0.2012472898,
0.2618277371,
0.028204713,
0.3244504333,
-0.3282783926,
0.2335395813,
-0.205746308,
0.1308393925,
0.0513719507,
-0.1313492507,
0.0827392265,
0.2397820204,
0.0975586176,
0.2197264582,
-0.1647180766,
-0.2612222135,
-0.2263840139,
0.0987546071,
-0.0208422989,
0.0202254187,
-0.1477034837,
-0.1334639341,
0.1280265152,
-0.0183769967,
0.4289837778,
0.2284486294,
-0.1643976867,
0.1061616763,
0.1367552429,
0.1648218781,
-0.0818794444,
0.1702709645,
0.0002728654,
-0.0996422917,
0.1888261139,
0.1828818917,
-0.0026518726,
0.0396514274,
-0.29793033,
-0.1828770936,
0.4134561419,
0.15602687,
0.0929486826,
-0.3851539195,
-0.2239549309,
0.0314513519,
0.450008899,
0.3133750856,
-0.3114971519,
-0.0574877523,
-0.0370502733,
0.280208379,
-0.1861451268,
-0.0252604112,
-0.0004435363,
-0.1982535571,
0.0170281343,
0.3708455265,
0.3222138882,
0.0491977334,
-0.025716804,
0.1577518284,
0.3708705306,
-0.3861027658,
0.2404301614,
-0.0043918658,
-0.1260695606,
0.127374053,
0.4078051746,
0.2264870405,
0.0797451884,
0.1788533181,
0.0911038816,
0.1854628921,
-0.0301673394,
-0.1411308348,
0.1116841808,
-0.3086597621,
-0.0381124131,
0.2016685158,
-0.2263549268,
-0.1244863868,
-0.2119969726,
-0.0688010603,
-0.1871410757,
-0.228764534,
-0.3681075275,
0.2676639557,
-0.397469312,
-0.0481058583,
0.1096314341,
-0.1442811489,
0.1278006285,
0.2010710537,
0.1140564084,
0.1347726583,
0.4494643211,
0.1331138164,
-0.2817562521,
-0.1104479432,
-0.3163565397,
0.2716572881,
0.1550413817,
-0.3163852394,
0.2832721472,
0.3418690562,
-0.0504976697,
-0.2370737642,
0.5526761413,
0.6522244215,
0.3537183702,
-0.1452189535,
0.007220265,
0.0328731649,
0.1318574846,
-0.0833301693,
0.0924025327,
0.1320801973,
0.2738417685,
0.3750734329,
0.1627763808,
-0.1621029377,
0.1509011239,
0.2157597244,
0.1737514436,
-0.2635539174,
0.2917875051,
-0.0475653186,
-0.0709340796,
-0.0687783509,
0.0109693138,
-0.3325086832,
0.1167243049,
0.4725084901,
-0.0993129089,
0.2256482691,
0.0002577858,
0.12229231,
0.0116997622,
0.3831609786,
0.1213121116,
0.1006877497,
-0.6743169427,
0.0617797002,
-0.4572266042,
0.2957106531,
-0.1418878436,
0.1963329613,
-0.0430554748,
0.1047224924,
-0.29694736,
-0.0652521998,
0.2955663204,
-0.0407785326,
0.0765405819,
0.4635726213,
-0.596939683,
0.0495046861,
-0.3352075815,
-0.1262418777,
0.345552206,
-0.4687044322,
0.2194333673,
-0.1522492021,
0.0916101113,
0.1163390502,
-0.0036384901,
0.3093611896,
0.1244530752,
0.5834571123,
0.1750374436,
0.6061420441,
-0.1260512322,
0.1312723011,
-0.1131602973,
-0.4133681655,
-0.3300968111,
-0.0069515673,
0.1493002772,
0.1066097841,
-0.0756933242,
-0.0927481055,
-0.338512063,
-0.1523738801,
0.0260591879,
-0.1396061629,
-0.0495961756,
0.0400650725,
0.0016708869,
0.0484994315,
0.1314325631,
0.288274616,
0.2544397116,
0.2327958792,
-0.4348086119,
-0.3158877492,
0.5066923499,
-0.2032598406,
-0.5028807521,
-0.3684078455,
0.3902989626,
-0.0260886531,
0.0840149671,
-0.625705719,
0.1361860186,
0.3196178079,
-0.0780656338,
-0.1940837801,
0.1666281968,
0.0340073593,
-0.1527426541,
0.1009976491,
-0.0439531431,
0.0453943759,
-0.3636941612,
0.0277081206,
-0.0606808513
] |
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.5779123902,
-0.0810000077,
-0.0453642905,
0.4501566589,
0.2459625155,
0.0139752384,
0.5565328002,
0.2723812461,
0.1843714416,
0.190743193,
-0.0311777443,
0.1464354247,
0.0212424397,
0.1441879869,
-0.0885509849,
0.0235604215,
0.130916521,
-0.225741446,
-0.396879375,
-0.020363301,
-0.2406819612,
0.1446245164,
0.0855502933,
0.1932708472,
-0.5113247633,
-0.343385607,
-0.054175809,
0.0557929277,
0.2590036094,
-0.0671327189,
0.1664635986,
0.2859387994,
-0.0116242915,
0.8678805232,
-0.0001090042,
0.1391355991,
0.1289679706,
0.1109725013,
-0.0634467751,
-0.2272720188,
0.0330817029,
-0.1079750583,
0.1186951771,
-0.3137779534,
0.1189507097,
0.0584997945,
-0.0300556589,
-0.2093537003,
0.5382677913,
0.0736097991,
0.2384029627,
0.3819690645,
-0.306597054,
-0.2297081202,
0.184245497,
0.0569793843,
0.0860361606,
0.0703068003,
0.1006151512,
-0.160428524,
-0.024353968,
0.4298269749,
-0.128874734,
0.2059703469,
-0.0231341925,
0.0869602412,
0.105138883,
-0.5513931513,
0.0767248124,
0.0688893348,
-0.0115328655,
-0.3123032451,
-0.3542195559,
-0.3473508656,
-0.063926883,
-0.2551654279,
0.0928216428,
0.3452658653,
-0.2033959925,
-0.192307502,
-0.0920515656,
0.1867491901,
-0.0755040571,
-0.1349956691,
0.2415364087,
0.3306524754,
0.0830515549,
0.2387526929,
0.0692320988,
0.0927331373,
0.3280490339,
-0.1612950414,
-0.1014360115,
-0.0775530413,
-0.6200729609,
0.0457459316,
-0.0160570163,
-0.4652229249,
0.1843743771,
-0.1858733743,
-0.1885084957,
0.0499863438,
0.1717090607,
0.1031513512,
0.2989792228,
0.0960013419,
-0.3177449703,
0.2705483735,
0.3438621461,
0.133197695,
-0.5029966831,
0.0652743578,
-0.0156140514,
-0.2567523122,
0.2176098078,
0.1873345375,
0.241457805,
-0.082989119,
-0.3572192788,
-0.0523140468,
-0.0511176847,
-0.0558524802,
-0.1014147997,
0.4524842203,
0.1777905375,
0.1567739099,
0.0913130566,
0.196944043,
-0.1822922677,
0.0624873862,
-0.3012304008,
-0.0290754084,
-0.0146925403,
0.2143331915,
0.1157390848,
-0.0643141717,
0.2248853892,
0.3379442692,
0.0498889759,
-0.4685381949,
0.2624682188,
-0.3657260239,
-0.2471657991,
0.1961344182,
0.1851788163,
0.1372065246,
-0.1051607355,
0.3842991292,
0.0134874098,
0.2587329149,
-0.328804642,
-0.1393947899,
0.080968067,
0.2727390528,
0.0137451869,
0.1152772903,
-0.3554977775,
0.1136913225,
0.3186284304,
-0.0416695848,
0.1086384803,
-0.3720646501,
-0.3164126277,
-0.1393731833,
-0.0205442514,
0.5279047489,
0.0768124536,
0.0268208738,
0.1770918518,
-0.1090105325,
0.0915665179,
0.3510976136,
-0.3423238993,
0.4966163635,
-0.3493314385,
0.1288179457,
0.2440502197,
-0.3719637394,
-0.1516721249,
0.3383846283,
-0.1646657586,
0.1252203733,
0.2112874538,
-0.0568553768,
0.21223405,
-0.1359219253,
-0.0084831342,
0.1491883844,
-0.1079862714,
0.4015438557,
-0.1918608993,
-0.2839155495,
0.0489498824,
0.1688931584,
0.3223808408,
-0.0939977542,
0.0269823596,
-0.2874780595,
0.3875814676,
-0.3304337561,
-0.0731934533,
0.2158525139,
-0.010300559,
0.0795356929,
0.0810648426,
-0.1096468195,
-0.5169214606,
0.1978816986,
-0.3624862731,
0.0432495624,
0.0342298299,
-0.1991611123,
0.1067375094,
-0.0417706519,
-0.2488531917,
-0.1888306737,
0.1706274003,
0.2317134887,
-0.1502680182,
-0.1181374416,
-0.1473602355,
0.3599050641,
-0.1582810879,
0.0234614518,
-0.0023935749,
0.170536086,
-0.1951894015,
-0.2185280919,
0.1162099242,
-0.0603482202,
0.4591345191,
-0.1816610694,
-0.1646381468,
0.2344811857,
0.1979358047,
0.3151448667,
-0.0608299449,
0.0168911703,
0.1874210238,
0.1556908488,
-0.0017903493,
0.1425170153,
0.2640647292,
-0.1452901363,
0.0974553451,
0.3178673387,
0.0033610153,
0.1383698881,
0.059060201,
-0.2233059704,
0.1934239864,
-0.1233384609,
0.1891791523,
0.1224580929,
0.2253107876,
0.1255553365,
0.0167564824,
-0.0816581398,
-0.5741454363,
0.0836442262,
0.3775577843,
0.166941613,
0.0734945387,
0.0733090118,
-0.0474900231,
0.0227888841,
-0.1682934165,
0.2998519242,
0.5353222489,
0.1349112839,
0.0457243361,
0.0882087946,
-0.1451269239,
-0.0892191827,
0.0666767061,
0.1546058059,
0.1948834807,
0.5548342466,
0.1994922459,
-0.0699805543,
-0.2803618312,
-0.1119266227,
0.2671930492,
0.0941751972,
-0.3748234212,
0.1850152314,
0.1274145544,
-0.1747792065,
-0.4213630557,
0.0054043448,
-0.0335235372,
-0.1470947862,
-0.0398528799,
0.456840694,
-0.1997359693,
0.3671449721,
-0.0299287383,
0.1571481079,
-0.1867981702,
0.2361012399,
-0.1471163779,
-0.071199134,
-0.1141484529,
-0.0113953641,
0.2849560976,
0.066940099,
0.3187499344,
0.0719444379,
-0.3169525862,
-0.3599553406,
-0.003394454,
0.0783700421,
0.001777793,
0.4231903255,
-0.0844050422,
-0.1965939254,
0.0808485076,
-0.4469998479,
0.2024543732,
-0.3591767251,
-0.0702028871,
-0.1327766925,
-0.2264379412,
-0.0671755075,
-0.1766143888,
-0.3789284527,
-0.2513655722,
-0.2676904798,
-0.0906181112,
-0.1727516204,
0.2116886973,
0.0763654634,
-0.1411368251,
-0.0400552563,
0.1537131518,
-0.0046700602,
-0.3079814911,
-0.3230584264,
0.0693268701,
-0.1893556714,
-0.3206602037,
-0.0872683227,
-0.1478090435,
0.0682694912,
0.2267443985,
-0.491656512,
-0.3557168841,
-0.10712789,
0.057795126,
-0.1461230218,
-0.0371048152,
0.0506974496,
0.0610220209,
-0.1380061507,
-0.1171885505,
-0.17283912,
0.2016058266,
-0.0312828906,
0.0052554607,
-0.1659801304,
0.26715222,
-0.1580262929,
0.6628257632,
0.2449264675,
-0.0611027293,
0.3297882974,
-0.1419707537,
0.078655906,
-0.0182801485,
-0.4407640994,
-0.0686315373,
-0.4300891459,
-0.2329538912,
0.1423811466,
-0.3390009701,
-0.1655288786,
-0.0883627683,
0.0207861494,
-0.3483386934,
-0.3111566603,
0.1051786467,
-0.1568962485,
0.3320012689,
0.0473193005,
0.160823673,
0.003293291,
0.0731304809,
0.285294503,
0.0372187756,
0.2085290402,
-0.1879965514,
-0.0320745856,
0.0756291524,
-0.191602394,
0.3207659125,
0.0992456451,
0.1881766915,
-0.0998483524,
0.2111586034,
0.0173972975,
-0.1154944077,
0.8625525832,
-0.1944369078,
0.3259495199,
0.194377616,
-0.3524226844,
-0.0848693773,
-0.1915692091,
-0.3549926281,
-0.2112865597,
0.2583164275,
0.6643006802,
-0.3218051493,
-0.1237824708,
0.1433638334,
-0.0208377447,
-0.2824375331,
-0.3151059449,
-0.1605422497,
-0.3001241684,
-0.2805771828,
0.1758769751,
-0.0904998705,
0.1202872097,
-0.5292026997,
-0.0838714018,
-0.1814915389,
0.2068257332,
-0.0105717564,
0.0588436686,
0.2804207802,
-0.0604165159,
0.4039424956,
0.1262615025,
-0.0301582273,
0.2747971117,
0.446330905,
0.0201086998,
-0.2770256996,
0.0019539788,
0.0463416912,
0.0897723585,
0.4556983113,
0.0272616427,
0.1352090985,
0.0671001971,
0.2680850923,
-0.0672242641,
0.1780902743,
0.3836326599,
0.2199997604,
-0.1989111602,
-0.3477317095,
0.0931111425,
0.2356355935,
-0.1319558173,
0.2889436483,
-0.5127386451,
-0.2068071961,
0.3026005626,
-0.0046676095,
0.6622441411,
0.0142627899,
0.0911537632,
0.3084229529,
-0.3028061986,
0.2865456045,
-0.2150483131,
0.3221713006,
-0.5821487904,
-0.2683510482,
0.115872927,
-0.1270323992,
-0.0752490237,
0.0526768267,
-0.114070192,
0.3120551109,
-0.0008432493,
0.0324364714,
-0.2479720712,
0.2446669042,
0.0065662721,
-0.3198529184,
0.0531230383,
0.1187562793,
-0.2992702723,
0.2569267154,
-0.1400964558,
-0.1082455367,
0.2545029819,
-0.2358600348,
-0.2938600183,
0.2325543016,
-0.3484943509,
0.280626297,
-0.1433752775,
-0.1927308589,
0.0463991389,
-0.0866825432,
0.1560346186,
-0.228722766,
0.0731347203,
0.0957629606,
0.0568759143,
0.1381038874,
-0.2318832725,
-0.1537004411,
0.4277763367,
0.0211631004,
-0.3620676696,
-0.0820331648,
-0.0373367257,
-0.0148329232,
-0.1281269491,
0.0481151827,
-0.1951634437,
-0.1983332783,
-0.1131098494,
0.2236152291,
-0.0742342025,
-0.3154717088,
0.1518262923,
-0.2507011294,
-0.2737055719,
0.3905715644,
-0.1238661259,
-0.3739266992,
-0.0774782002,
0.2204256952,
0.1755117625,
0.0789952353,
0.4106521606,
0.3367049396,
-0.0640730187,
-0.3133042455,
-0.2384478748,
0.1598050594,
-0.4164748788,
0.1772855669,
-0.1435780525,
0.151521787,
-0.027345838,
0.3164762557,
0.0630011782,
0.120594345,
0.0206557047,
-0.2940015495,
-0.2153666615,
-0.0177845284,
-0.0637848005,
0.2160817385,
0.2012472898,
0.2618277371,
0.028204713,
0.3244504333,
-0.3282783926,
0.2335395813,
-0.205746308,
0.1308393925,
0.0513719507,
-0.1313492507,
0.0827392265,
0.2397820204,
0.0975586176,
0.2197264582,
-0.1647180766,
-0.2612222135,
-0.2263840139,
0.0987546071,
-0.0208422989,
0.0202254187,
-0.1477034837,
-0.1334639341,
0.1280265152,
-0.0183769967,
0.4289837778,
0.2284486294,
-0.1643976867,
0.1061616763,
0.1367552429,
0.1648218781,
-0.0818794444,
0.1702709645,
0.0002728654,
-0.0996422917,
0.1888261139,
0.1828818917,
-0.0026518726,
0.0396514274,
-0.29793033,
-0.1828770936,
0.4134561419,
0.15602687,
0.0929486826,
-0.3851539195,
-0.2239549309,
0.0314513519,
0.450008899,
0.3133750856,
-0.3114971519,
-0.0574877523,
-0.0370502733,
0.280208379,
-0.1861451268,
-0.0252604112,
-0.0004435363,
-0.1982535571,
0.0170281343,
0.3708455265,
0.3222138882,
0.0491977334,
-0.025716804,
0.1577518284,
0.3708705306,
-0.3861027658,
0.2404301614,
-0.0043918658,
-0.1260695606,
0.127374053,
0.4078051746,
0.2264870405,
0.0797451884,
0.1788533181,
0.0911038816,
0.1854628921,
-0.0301673394,
-0.1411308348,
0.1116841808,
-0.3086597621,
-0.0381124131,
0.2016685158,
-0.2263549268,
-0.1244863868,
-0.2119969726,
-0.0688010603,
-0.1871410757,
-0.228764534,
-0.3681075275,
0.2676639557,
-0.397469312,
-0.0481058583,
0.1096314341,
-0.1442811489,
0.1278006285,
0.2010710537,
0.1140564084,
0.1347726583,
0.4494643211,
0.1331138164,
-0.2817562521,
-0.1104479432,
-0.3163565397,
0.2716572881,
0.1550413817,
-0.3163852394,
0.2832721472,
0.3418690562,
-0.0504976697,
-0.2370737642,
0.5526761413,
0.6522244215,
0.3537183702,
-0.1452189535,
0.007220265,
0.0328731649,
0.1318574846,
-0.0833301693,
0.0924025327,
0.1320801973,
0.2738417685,
0.3750734329,
0.1627763808,
-0.1621029377,
0.1509011239,
0.2157597244,
0.1737514436,
-0.2635539174,
0.2917875051,
-0.0475653186,
-0.0709340796,
-0.0687783509,
0.0109693138,
-0.3325086832,
0.1167243049,
0.4725084901,
-0.0993129089,
0.2256482691,
0.0002577858,
0.12229231,
0.0116997622,
0.3831609786,
0.1213121116,
0.1006877497,
-0.6743169427,
0.0617797002,
-0.4572266042,
0.2957106531,
-0.1418878436,
0.1963329613,
-0.0430554748,
0.1047224924,
-0.29694736,
-0.0652521998,
0.2955663204,
-0.0407785326,
0.0765405819,
0.4635726213,
-0.596939683,
0.0495046861,
-0.3352075815,
-0.1262418777,
0.345552206,
-0.4687044322,
0.2194333673,
-0.1522492021,
0.0916101113,
0.1163390502,
-0.0036384901,
0.3093611896,
0.1244530752,
0.5834571123,
0.1750374436,
0.6061420441,
-0.1260512322,
0.1312723011,
-0.1131602973,
-0.4133681655,
-0.3300968111,
-0.0069515673,
0.1493002772,
0.1066097841,
-0.0756933242,
-0.0927481055,
-0.338512063,
-0.1523738801,
0.0260591879,
-0.1396061629,
-0.0495961756,
0.0400650725,
0.0016708869,
0.0484994315,
0.1314325631,
0.288274616,
0.2544397116,
0.2327958792,
-0.4348086119,
-0.3158877492,
0.5066923499,
-0.2032598406,
-0.5028807521,
-0.3684078455,
0.3902989626,
-0.0260886531,
0.0840149671,
-0.625705719,
0.1361860186,
0.3196178079,
-0.0780656338,
-0.1940837801,
0.1666281968,
0.0340073593,
-0.1527426541,
0.1009976491,
-0.0439531431,
0.0453943759,
-0.3636941612,
0.0277081206,
-0.0606808513
] |
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.5779123902,
-0.0810000077,
-0.0453642905,
0.4501566589,
0.2459625155,
0.0139752384,
0.5565328002,
0.2723812461,
0.1843714416,
0.190743193,
-0.0311777443,
0.1464354247,
0.0212424397,
0.1441879869,
-0.0885509849,
0.0235604215,
0.130916521,
-0.225741446,
-0.396879375,
-0.020363301,
-0.2406819612,
0.1446245164,
0.0855502933,
0.1932708472,
-0.5113247633,
-0.343385607,
-0.054175809,
0.0557929277,
0.2590036094,
-0.0671327189,
0.1664635986,
0.2859387994,
-0.0116242915,
0.8678805232,
-0.0001090042,
0.1391355991,
0.1289679706,
0.1109725013,
-0.0634467751,
-0.2272720188,
0.0330817029,
-0.1079750583,
0.1186951771,
-0.3137779534,
0.1189507097,
0.0584997945,
-0.0300556589,
-0.2093537003,
0.5382677913,
0.0736097991,
0.2384029627,
0.3819690645,
-0.306597054,
-0.2297081202,
0.184245497,
0.0569793843,
0.0860361606,
0.0703068003,
0.1006151512,
-0.160428524,
-0.024353968,
0.4298269749,
-0.128874734,
0.2059703469,
-0.0231341925,
0.0869602412,
0.105138883,
-0.5513931513,
0.0767248124,
0.0688893348,
-0.0115328655,
-0.3123032451,
-0.3542195559,
-0.3473508656,
-0.063926883,
-0.2551654279,
0.0928216428,
0.3452658653,
-0.2033959925,
-0.192307502,
-0.0920515656,
0.1867491901,
-0.0755040571,
-0.1349956691,
0.2415364087,
0.3306524754,
0.0830515549,
0.2387526929,
0.0692320988,
0.0927331373,
0.3280490339,
-0.1612950414,
-0.1014360115,
-0.0775530413,
-0.6200729609,
0.0457459316,
-0.0160570163,
-0.4652229249,
0.1843743771,
-0.1858733743,
-0.1885084957,
0.0499863438,
0.1717090607,
0.1031513512,
0.2989792228,
0.0960013419,
-0.3177449703,
0.2705483735,
0.3438621461,
0.133197695,
-0.5029966831,
0.0652743578,
-0.0156140514,
-0.2567523122,
0.2176098078,
0.1873345375,
0.241457805,
-0.082989119,
-0.3572192788,
-0.0523140468,
-0.0511176847,
-0.0558524802,
-0.1014147997,
0.4524842203,
0.1777905375,
0.1567739099,
0.0913130566,
0.196944043,
-0.1822922677,
0.0624873862,
-0.3012304008,
-0.0290754084,
-0.0146925403,
0.2143331915,
0.1157390848,
-0.0643141717,
0.2248853892,
0.3379442692,
0.0498889759,
-0.4685381949,
0.2624682188,
-0.3657260239,
-0.2471657991,
0.1961344182,
0.1851788163,
0.1372065246,
-0.1051607355,
0.3842991292,
0.0134874098,
0.2587329149,
-0.328804642,
-0.1393947899,
0.080968067,
0.2727390528,
0.0137451869,
0.1152772903,
-0.3554977775,
0.1136913225,
0.3186284304,
-0.0416695848,
0.1086384803,
-0.3720646501,
-0.3164126277,
-0.1393731833,
-0.0205442514,
0.5279047489,
0.0768124536,
0.0268208738,
0.1770918518,
-0.1090105325,
0.0915665179,
0.3510976136,
-0.3423238993,
0.4966163635,
-0.3493314385,
0.1288179457,
0.2440502197,
-0.3719637394,
-0.1516721249,
0.3383846283,
-0.1646657586,
0.1252203733,
0.2112874538,
-0.0568553768,
0.21223405,
-0.1359219253,
-0.0084831342,
0.1491883844,
-0.1079862714,
0.4015438557,
-0.1918608993,
-0.2839155495,
0.0489498824,
0.1688931584,
0.3223808408,
-0.0939977542,
0.0269823596,
-0.2874780595,
0.3875814676,
-0.3304337561,
-0.0731934533,
0.2158525139,
-0.010300559,
0.0795356929,
0.0810648426,
-0.1096468195,
-0.5169214606,
0.1978816986,
-0.3624862731,
0.0432495624,
0.0342298299,
-0.1991611123,
0.1067375094,
-0.0417706519,
-0.2488531917,
-0.1888306737,
0.1706274003,
0.2317134887,
-0.1502680182,
-0.1181374416,
-0.1473602355,
0.3599050641,
-0.1582810879,
0.0234614518,
-0.0023935749,
0.170536086,
-0.1951894015,
-0.2185280919,
0.1162099242,
-0.0603482202,
0.4591345191,
-0.1816610694,
-0.1646381468,
0.2344811857,
0.1979358047,
0.3151448667,
-0.0608299449,
0.0168911703,
0.1874210238,
0.1556908488,
-0.0017903493,
0.1425170153,
0.2640647292,
-0.1452901363,
0.0974553451,
0.3178673387,
0.0033610153,
0.1383698881,
0.059060201,
-0.2233059704,
0.1934239864,
-0.1233384609,
0.1891791523,
0.1224580929,
0.2253107876,
0.1255553365,
0.0167564824,
-0.0816581398,
-0.5741454363,
0.0836442262,
0.3775577843,
0.166941613,
0.0734945387,
0.0733090118,
-0.0474900231,
0.0227888841,
-0.1682934165,
0.2998519242,
0.5353222489,
0.1349112839,
0.0457243361,
0.0882087946,
-0.1451269239,
-0.0892191827,
0.0666767061,
0.1546058059,
0.1948834807,
0.5548342466,
0.1994922459,
-0.0699805543,
-0.2803618312,
-0.1119266227,
0.2671930492,
0.0941751972,
-0.3748234212,
0.1850152314,
0.1274145544,
-0.1747792065,
-0.4213630557,
0.0054043448,
-0.0335235372,
-0.1470947862,
-0.0398528799,
0.456840694,
-0.1997359693,
0.3671449721,
-0.0299287383,
0.1571481079,
-0.1867981702,
0.2361012399,
-0.1471163779,
-0.071199134,
-0.1141484529,
-0.0113953641,
0.2849560976,
0.066940099,
0.3187499344,
0.0719444379,
-0.3169525862,
-0.3599553406,
-0.003394454,
0.0783700421,
0.001777793,
0.4231903255,
-0.0844050422,
-0.1965939254,
0.0808485076,
-0.4469998479,
0.2024543732,
-0.3591767251,
-0.0702028871,
-0.1327766925,
-0.2264379412,
-0.0671755075,
-0.1766143888,
-0.3789284527,
-0.2513655722,
-0.2676904798,
-0.0906181112,
-0.1727516204,
0.2116886973,
0.0763654634,
-0.1411368251,
-0.0400552563,
0.1537131518,
-0.0046700602,
-0.3079814911,
-0.3230584264,
0.0693268701,
-0.1893556714,
-0.3206602037,
-0.0872683227,
-0.1478090435,
0.0682694912,
0.2267443985,
-0.491656512,
-0.3557168841,
-0.10712789,
0.057795126,
-0.1461230218,
-0.0371048152,
0.0506974496,
0.0610220209,
-0.1380061507,
-0.1171885505,
-0.17283912,
0.2016058266,
-0.0312828906,
0.0052554607,
-0.1659801304,
0.26715222,
-0.1580262929,
0.6628257632,
0.2449264675,
-0.0611027293,
0.3297882974,
-0.1419707537,
0.078655906,
-0.0182801485,
-0.4407640994,
-0.0686315373,
-0.4300891459,
-0.2329538912,
0.1423811466,
-0.3390009701,
-0.1655288786,
-0.0883627683,
0.0207861494,
-0.3483386934,
-0.3111566603,
0.1051786467,
-0.1568962485,
0.3320012689,
0.0473193005,
0.160823673,
0.003293291,
0.0731304809,
0.285294503,
0.0372187756,
0.2085290402,
-0.1879965514,
-0.0320745856,
0.0756291524,
-0.191602394,
0.3207659125,
0.0992456451,
0.1881766915,
-0.0998483524,
0.2111586034,
0.0173972975,
-0.1154944077,
0.8625525832,
-0.1944369078,
0.3259495199,
0.194377616,
-0.3524226844,
-0.0848693773,
-0.1915692091,
-0.3549926281,
-0.2112865597,
0.2583164275,
0.6643006802,
-0.3218051493,
-0.1237824708,
0.1433638334,
-0.0208377447,
-0.2824375331,
-0.3151059449,
-0.1605422497,
-0.3001241684,
-0.2805771828,
0.1758769751,
-0.0904998705,
0.1202872097,
-0.5292026997,
-0.0838714018,
-0.1814915389,
0.2068257332,
-0.0105717564,
0.0588436686,
0.2804207802,
-0.0604165159,
0.4039424956,
0.1262615025,
-0.0301582273,
0.2747971117,
0.446330905,
0.0201086998,
-0.2770256996,
0.0019539788,
0.0463416912,
0.0897723585,
0.4556983113,
0.0272616427,
0.1352090985,
0.0671001971,
0.2680850923,
-0.0672242641,
0.1780902743,
0.3836326599,
0.2199997604,
-0.1989111602,
-0.3477317095,
0.0931111425,
0.2356355935,
-0.1319558173,
0.2889436483,
-0.5127386451,
-0.2068071961,
0.3026005626,
-0.0046676095,
0.6622441411,
0.0142627899,
0.0911537632,
0.3084229529,
-0.3028061986,
0.2865456045,
-0.2150483131,
0.3221713006,
-0.5821487904,
-0.2683510482,
0.115872927,
-0.1270323992,
-0.0752490237,
0.0526768267,
-0.114070192,
0.3120551109,
-0.0008432493,
0.0324364714,
-0.2479720712,
0.2446669042,
0.0065662721,
-0.3198529184,
0.0531230383,
0.1187562793,
-0.2992702723,
0.2569267154,
-0.1400964558,
-0.1082455367,
0.2545029819,
-0.2358600348,
-0.2938600183,
0.2325543016,
-0.3484943509,
0.280626297,
-0.1433752775,
-0.1927308589,
0.0463991389,
-0.0866825432,
0.1560346186,
-0.228722766,
0.0731347203,
0.0957629606,
0.0568759143,
0.1381038874,
-0.2318832725,
-0.1537004411,
0.4277763367,
0.0211631004,
-0.3620676696,
-0.0820331648,
-0.0373367257,
-0.0148329232,
-0.1281269491,
0.0481151827,
-0.1951634437,
-0.1983332783,
-0.1131098494,
0.2236152291,
-0.0742342025,
-0.3154717088,
0.1518262923,
-0.2507011294,
-0.2737055719,
0.3905715644,
-0.1238661259,
-0.3739266992,
-0.0774782002,
0.2204256952,
0.1755117625,
0.0789952353,
0.4106521606,
0.3367049396,
-0.0640730187,
-0.3133042455,
-0.2384478748,
0.1598050594,
-0.4164748788,
0.1772855669,
-0.1435780525,
0.151521787,
-0.027345838,
0.3164762557,
0.0630011782,
0.120594345,
0.0206557047,
-0.2940015495,
-0.2153666615,
-0.0177845284,
-0.0637848005,
0.2160817385,
0.2012472898,
0.2618277371,
0.028204713,
0.3244504333,
-0.3282783926,
0.2335395813,
-0.205746308,
0.1308393925,
0.0513719507,
-0.1313492507,
0.0827392265,
0.2397820204,
0.0975586176,
0.2197264582,
-0.1647180766,
-0.2612222135,
-0.2263840139,
0.0987546071,
-0.0208422989,
0.0202254187,
-0.1477034837,
-0.1334639341,
0.1280265152,
-0.0183769967,
0.4289837778,
0.2284486294,
-0.1643976867,
0.1061616763,
0.1367552429,
0.1648218781,
-0.0818794444,
0.1702709645,
0.0002728654,
-0.0996422917,
0.1888261139,
0.1828818917,
-0.0026518726,
0.0396514274,
-0.29793033,
-0.1828770936,
0.4134561419,
0.15602687,
0.0929486826,
-0.3851539195,
-0.2239549309,
0.0314513519,
0.450008899,
0.3133750856,
-0.3114971519,
-0.0574877523,
-0.0370502733,
0.280208379,
-0.1861451268,
-0.0252604112,
-0.0004435363,
-0.1982535571,
0.0170281343,
0.3708455265,
0.3222138882,
0.0491977334,
-0.025716804,
0.1577518284,
0.3708705306,
-0.3861027658,
0.2404301614,
-0.0043918658,
-0.1260695606,
0.127374053,
0.4078051746,
0.2264870405,
0.0797451884,
0.1788533181,
0.0911038816,
0.1854628921,
-0.0301673394,
-0.1411308348,
0.1116841808,
-0.3086597621,
-0.0381124131,
0.2016685158,
-0.2263549268,
-0.1244863868,
-0.2119969726,
-0.0688010603,
-0.1871410757,
-0.228764534,
-0.3681075275,
0.2676639557,
-0.397469312,
-0.0481058583,
0.1096314341,
-0.1442811489,
0.1278006285,
0.2010710537,
0.1140564084,
0.1347726583,
0.4494643211,
0.1331138164,
-0.2817562521,
-0.1104479432,
-0.3163565397,
0.2716572881,
0.1550413817,
-0.3163852394,
0.2832721472,
0.3418690562,
-0.0504976697,
-0.2370737642,
0.5526761413,
0.6522244215,
0.3537183702,
-0.1452189535,
0.007220265,
0.0328731649,
0.1318574846,
-0.0833301693,
0.0924025327,
0.1320801973,
0.2738417685,
0.3750734329,
0.1627763808,
-0.1621029377,
0.1509011239,
0.2157597244,
0.1737514436,
-0.2635539174,
0.2917875051,
-0.0475653186,
-0.0709340796,
-0.0687783509,
0.0109693138,
-0.3325086832,
0.1167243049,
0.4725084901,
-0.0993129089,
0.2256482691,
0.0002577858,
0.12229231,
0.0116997622,
0.3831609786,
0.1213121116,
0.1006877497,
-0.6743169427,
0.0617797002,
-0.4572266042,
0.2957106531,
-0.1418878436,
0.1963329613,
-0.0430554748,
0.1047224924,
-0.29694736,
-0.0652521998,
0.2955663204,
-0.0407785326,
0.0765405819,
0.4635726213,
-0.596939683,
0.0495046861,
-0.3352075815,
-0.1262418777,
0.345552206,
-0.4687044322,
0.2194333673,
-0.1522492021,
0.0916101113,
0.1163390502,
-0.0036384901,
0.3093611896,
0.1244530752,
0.5834571123,
0.1750374436,
0.6061420441,
-0.1260512322,
0.1312723011,
-0.1131602973,
-0.4133681655,
-0.3300968111,
-0.0069515673,
0.1493002772,
0.1066097841,
-0.0756933242,
-0.0927481055,
-0.338512063,
-0.1523738801,
0.0260591879,
-0.1396061629,
-0.0495961756,
0.0400650725,
0.0016708869,
0.0484994315,
0.1314325631,
0.288274616,
0.2544397116,
0.2327958792,
-0.4348086119,
-0.3158877492,
0.5066923499,
-0.2032598406,
-0.5028807521,
-0.3684078455,
0.3902989626,
-0.0260886531,
0.0840149671,
-0.625705719,
0.1361860186,
0.3196178079,
-0.0780656338,
-0.1940837801,
0.1666281968,
0.0340073593,
-0.1527426541,
0.1009976491,
-0.0439531431,
0.0453943759,
-0.3636941612,
0.0277081206,
-0.0606808513
] |
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.5779123902,
-0.0810000077,
-0.0453642905,
0.4501566589,
0.2459625155,
0.0139752384,
0.5565328002,
0.2723812461,
0.1843714416,
0.190743193,
-0.0311777443,
0.1464354247,
0.0212424397,
0.1441879869,
-0.0885509849,
0.0235604215,
0.130916521,
-0.225741446,
-0.396879375,
-0.020363301,
-0.2406819612,
0.1446245164,
0.0855502933,
0.1932708472,
-0.5113247633,
-0.343385607,
-0.054175809,
0.0557929277,
0.2590036094,
-0.0671327189,
0.1664635986,
0.2859387994,
-0.0116242915,
0.8678805232,
-0.0001090042,
0.1391355991,
0.1289679706,
0.1109725013,
-0.0634467751,
-0.2272720188,
0.0330817029,
-0.1079750583,
0.1186951771,
-0.3137779534,
0.1189507097,
0.0584997945,
-0.0300556589,
-0.2093537003,
0.5382677913,
0.0736097991,
0.2384029627,
0.3819690645,
-0.306597054,
-0.2297081202,
0.184245497,
0.0569793843,
0.0860361606,
0.0703068003,
0.1006151512,
-0.160428524,
-0.024353968,
0.4298269749,
-0.128874734,
0.2059703469,
-0.0231341925,
0.0869602412,
0.105138883,
-0.5513931513,
0.0767248124,
0.0688893348,
-0.0115328655,
-0.3123032451,
-0.3542195559,
-0.3473508656,
-0.063926883,
-0.2551654279,
0.0928216428,
0.3452658653,
-0.2033959925,
-0.192307502,
-0.0920515656,
0.1867491901,
-0.0755040571,
-0.1349956691,
0.2415364087,
0.3306524754,
0.0830515549,
0.2387526929,
0.0692320988,
0.0927331373,
0.3280490339,
-0.1612950414,
-0.1014360115,
-0.0775530413,
-0.6200729609,
0.0457459316,
-0.0160570163,
-0.4652229249,
0.1843743771,
-0.1858733743,
-0.1885084957,
0.0499863438,
0.1717090607,
0.1031513512,
0.2989792228,
0.0960013419,
-0.3177449703,
0.2705483735,
0.3438621461,
0.133197695,
-0.5029966831,
0.0652743578,
-0.0156140514,
-0.2567523122,
0.2176098078,
0.1873345375,
0.241457805,
-0.082989119,
-0.3572192788,
-0.0523140468,
-0.0511176847,
-0.0558524802,
-0.1014147997,
0.4524842203,
0.1777905375,
0.1567739099,
0.0913130566,
0.196944043,
-0.1822922677,
0.0624873862,
-0.3012304008,
-0.0290754084,
-0.0146925403,
0.2143331915,
0.1157390848,
-0.0643141717,
0.2248853892,
0.3379442692,
0.0498889759,
-0.4685381949,
0.2624682188,
-0.3657260239,
-0.2471657991,
0.1961344182,
0.1851788163,
0.1372065246,
-0.1051607355,
0.3842991292,
0.0134874098,
0.2587329149,
-0.328804642,
-0.1393947899,
0.080968067,
0.2727390528,
0.0137451869,
0.1152772903,
-0.3554977775,
0.1136913225,
0.3186284304,
-0.0416695848,
0.1086384803,
-0.3720646501,
-0.3164126277,
-0.1393731833,
-0.0205442514,
0.5279047489,
0.0768124536,
0.0268208738,
0.1770918518,
-0.1090105325,
0.0915665179,
0.3510976136,
-0.3423238993,
0.4966163635,
-0.3493314385,
0.1288179457,
0.2440502197,
-0.3719637394,
-0.1516721249,
0.3383846283,
-0.1646657586,
0.1252203733,
0.2112874538,
-0.0568553768,
0.21223405,
-0.1359219253,
-0.0084831342,
0.1491883844,
-0.1079862714,
0.4015438557,
-0.1918608993,
-0.2839155495,
0.0489498824,
0.1688931584,
0.3223808408,
-0.0939977542,
0.0269823596,
-0.2874780595,
0.3875814676,
-0.3304337561,
-0.0731934533,
0.2158525139,
-0.010300559,
0.0795356929,
0.0810648426,
-0.1096468195,
-0.5169214606,
0.1978816986,
-0.3624862731,
0.0432495624,
0.0342298299,
-0.1991611123,
0.1067375094,
-0.0417706519,
-0.2488531917,
-0.1888306737,
0.1706274003,
0.2317134887,
-0.1502680182,
-0.1181374416,
-0.1473602355,
0.3599050641,
-0.1582810879,
0.0234614518,
-0.0023935749,
0.170536086,
-0.1951894015,
-0.2185280919,
0.1162099242,
-0.0603482202,
0.4591345191,
-0.1816610694,
-0.1646381468,
0.2344811857,
0.1979358047,
0.3151448667,
-0.0608299449,
0.0168911703,
0.1874210238,
0.1556908488,
-0.0017903493,
0.1425170153,
0.2640647292,
-0.1452901363,
0.0974553451,
0.3178673387,
0.0033610153,
0.1383698881,
0.059060201,
-0.2233059704,
0.1934239864,
-0.1233384609,
0.1891791523,
0.1224580929,
0.2253107876,
0.1255553365,
0.0167564824,
-0.0816581398,
-0.5741454363,
0.0836442262,
0.3775577843,
0.166941613,
0.0734945387,
0.0733090118,
-0.0474900231,
0.0227888841,
-0.1682934165,
0.2998519242,
0.5353222489,
0.1349112839,
0.0457243361,
0.0882087946,
-0.1451269239,
-0.0892191827,
0.0666767061,
0.1546058059,
0.1948834807,
0.5548342466,
0.1994922459,
-0.0699805543,
-0.2803618312,
-0.1119266227,
0.2671930492,
0.0941751972,
-0.3748234212,
0.1850152314,
0.1274145544,
-0.1747792065,
-0.4213630557,
0.0054043448,
-0.0335235372,
-0.1470947862,
-0.0398528799,
0.456840694,
-0.1997359693,
0.3671449721,
-0.0299287383,
0.1571481079,
-0.1867981702,
0.2361012399,
-0.1471163779,
-0.071199134,
-0.1141484529,
-0.0113953641,
0.2849560976,
0.066940099,
0.3187499344,
0.0719444379,
-0.3169525862,
-0.3599553406,
-0.003394454,
0.0783700421,
0.001777793,
0.4231903255,
-0.0844050422,
-0.1965939254,
0.0808485076,
-0.4469998479,
0.2024543732,
-0.3591767251,
-0.0702028871,
-0.1327766925,
-0.2264379412,
-0.0671755075,
-0.1766143888,
-0.3789284527,
-0.2513655722,
-0.2676904798,
-0.0906181112,
-0.1727516204,
0.2116886973,
0.0763654634,
-0.1411368251,
-0.0400552563,
0.1537131518,
-0.0046700602,
-0.3079814911,
-0.3230584264,
0.0693268701,
-0.1893556714,
-0.3206602037,
-0.0872683227,
-0.1478090435,
0.0682694912,
0.2267443985,
-0.491656512,
-0.3557168841,
-0.10712789,
0.057795126,
-0.1461230218,
-0.0371048152,
0.0506974496,
0.0610220209,
-0.1380061507,
-0.1171885505,
-0.17283912,
0.2016058266,
-0.0312828906,
0.0052554607,
-0.1659801304,
0.26715222,
-0.1580262929,
0.6628257632,
0.2449264675,
-0.0611027293,
0.3297882974,
-0.1419707537,
0.078655906,
-0.0182801485,
-0.4407640994,
-0.0686315373,
-0.4300891459,
-0.2329538912,
0.1423811466,
-0.3390009701,
-0.1655288786,
-0.0883627683,
0.0207861494,
-0.3483386934,
-0.3111566603,
0.1051786467,
-0.1568962485,
0.3320012689,
0.0473193005,
0.160823673,
0.003293291,
0.0731304809,
0.285294503,
0.0372187756,
0.2085290402,
-0.1879965514,
-0.0320745856,
0.0756291524,
-0.191602394,
0.3207659125,
0.0992456451,
0.1881766915,
-0.0998483524,
0.2111586034,
0.0173972975,
-0.1154944077,
0.8625525832,
-0.1944369078,
0.3259495199,
0.194377616,
-0.3524226844,
-0.0848693773,
-0.1915692091,
-0.3549926281,
-0.2112865597,
0.2583164275,
0.6643006802,
-0.3218051493,
-0.1237824708,
0.1433638334,
-0.0208377447,
-0.2824375331,
-0.3151059449,
-0.1605422497,
-0.3001241684,
-0.2805771828,
0.1758769751,
-0.0904998705,
0.1202872097,
-0.5292026997,
-0.0838714018,
-0.1814915389,
0.2068257332,
-0.0105717564,
0.0588436686,
0.2804207802,
-0.0604165159,
0.4039424956,
0.1262615025,
-0.0301582273,
0.2747971117,
0.446330905,
0.0201086998,
-0.2770256996,
0.0019539788,
0.0463416912,
0.0897723585,
0.4556983113,
0.0272616427,
0.1352090985,
0.0671001971,
0.2680850923,
-0.0672242641,
0.1780902743,
0.3836326599,
0.2199997604,
-0.1989111602,
-0.3477317095,
0.0931111425,
0.2356355935,
-0.1319558173,
0.2889436483,
-0.5127386451,
-0.2068071961,
0.3026005626,
-0.0046676095,
0.6622441411,
0.0142627899,
0.0911537632,
0.3084229529,
-0.3028061986,
0.2865456045,
-0.2150483131,
0.3221713006,
-0.5821487904,
-0.2683510482,
0.115872927,
-0.1270323992,
-0.0752490237,
0.0526768267,
-0.114070192,
0.3120551109,
-0.0008432493,
0.0324364714,
-0.2479720712,
0.2446669042,
0.0065662721,
-0.3198529184,
0.0531230383,
0.1187562793,
-0.2992702723,
0.2569267154,
-0.1400964558,
-0.1082455367,
0.2545029819,
-0.2358600348,
-0.2938600183,
0.2325543016,
-0.3484943509,
0.280626297,
-0.1433752775,
-0.1927308589,
0.0463991389,
-0.0866825432,
0.1560346186,
-0.228722766,
0.0731347203,
0.0957629606,
0.0568759143,
0.1381038874,
-0.2318832725,
-0.1537004411,
0.4277763367,
0.0211631004,
-0.3620676696,
-0.0820331648,
-0.0373367257,
-0.0148329232,
-0.1281269491,
0.0481151827,
-0.1951634437,
-0.1983332783,
-0.1131098494,
0.2236152291,
-0.0742342025,
-0.3154717088,
0.1518262923,
-0.2507011294,
-0.2737055719,
0.3905715644,
-0.1238661259,
-0.3739266992,
-0.0774782002,
0.2204256952,
0.1755117625,
0.0789952353,
0.4106521606,
0.3367049396,
-0.0640730187,
-0.3133042455,
-0.2384478748,
0.1598050594,
-0.4164748788,
0.1772855669,
-0.1435780525,
0.151521787,
-0.027345838,
0.3164762557,
0.0630011782,
0.120594345,
0.0206557047,
-0.2940015495,
-0.2153666615,
-0.0177845284,
-0.0637848005,
0.2160817385,
0.2012472898,
0.2618277371,
0.028204713,
0.3244504333,
-0.3282783926,
0.2335395813,
-0.205746308,
0.1308393925,
0.0513719507,
-0.1313492507,
0.0827392265,
0.2397820204,
0.0975586176,
0.2197264582,
-0.1647180766,
-0.2612222135,
-0.2263840139,
0.0987546071,
-0.0208422989,
0.0202254187,
-0.1477034837,
-0.1334639341,
0.1280265152,
-0.0183769967,
0.4289837778,
0.2284486294,
-0.1643976867,
0.1061616763,
0.1367552429,
0.1648218781,
-0.0818794444,
0.1702709645,
0.0002728654,
-0.0996422917,
0.1888261139,
0.1828818917,
-0.0026518726,
0.0396514274,
-0.29793033,
-0.1828770936,
0.4134561419,
0.15602687,
0.0929486826,
-0.3851539195,
-0.2239549309,
0.0314513519,
0.450008899,
0.3133750856,
-0.3114971519,
-0.0574877523,
-0.0370502733,
0.280208379,
-0.1861451268,
-0.0252604112,
-0.0004435363,
-0.1982535571,
0.0170281343,
0.3708455265,
0.3222138882,
0.0491977334,
-0.025716804,
0.1577518284,
0.3708705306,
-0.3861027658,
0.2404301614,
-0.0043918658,
-0.1260695606,
0.127374053,
0.4078051746,
0.2264870405,
0.0797451884,
0.1788533181,
0.0911038816,
0.1854628921,
-0.0301673394,
-0.1411308348,
0.1116841808,
-0.3086597621,
-0.0381124131,
0.2016685158,
-0.2263549268,
-0.1244863868,
-0.2119969726,
-0.0688010603,
-0.1871410757,
-0.228764534,
-0.3681075275,
0.2676639557,
-0.397469312,
-0.0481058583,
0.1096314341,
-0.1442811489,
0.1278006285,
0.2010710537,
0.1140564084,
0.1347726583,
0.4494643211,
0.1331138164,
-0.2817562521,
-0.1104479432,
-0.3163565397,
0.2716572881,
0.1550413817,
-0.3163852394,
0.2832721472,
0.3418690562,
-0.0504976697,
-0.2370737642,
0.5526761413,
0.6522244215,
0.3537183702,
-0.1452189535,
0.007220265,
0.0328731649,
0.1318574846,
-0.0833301693,
0.0924025327,
0.1320801973,
0.2738417685,
0.3750734329,
0.1627763808,
-0.1621029377,
0.1509011239,
0.2157597244,
0.1737514436,
-0.2635539174,
0.2917875051,
-0.0475653186,
-0.0709340796,
-0.0687783509,
0.0109693138,
-0.3325086832,
0.1167243049,
0.4725084901,
-0.0993129089,
0.2256482691,
0.0002577858,
0.12229231,
0.0116997622,
0.3831609786,
0.1213121116,
0.1006877497,
-0.6743169427,
0.0617797002,
-0.4572266042,
0.2957106531,
-0.1418878436,
0.1963329613,
-0.0430554748,
0.1047224924,
-0.29694736,
-0.0652521998,
0.2955663204,
-0.0407785326,
0.0765405819,
0.4635726213,
-0.596939683,
0.0495046861,
-0.3352075815,
-0.1262418777,
0.345552206,
-0.4687044322,
0.2194333673,
-0.1522492021,
0.0916101113,
0.1163390502,
-0.0036384901,
0.3093611896,
0.1244530752,
0.5834571123,
0.1750374436,
0.6061420441,
-0.1260512322,
0.1312723011,
-0.1131602973,
-0.4133681655,
-0.3300968111,
-0.0069515673,
0.1493002772,
0.1066097841,
-0.0756933242,
-0.0927481055,
-0.338512063,
-0.1523738801,
0.0260591879,
-0.1396061629,
-0.0495961756,
0.0400650725,
0.0016708869,
0.0484994315,
0.1314325631,
0.288274616,
0.2544397116,
0.2327958792,
-0.4348086119,
-0.3158877492,
0.5066923499,
-0.2032598406,
-0.5028807521,
-0.3684078455,
0.3902989626,
-0.0260886531,
0.0840149671,
-0.625705719,
0.1361860186,
0.3196178079,
-0.0780656338,
-0.1940837801,
0.1666281968,
0.0340073593,
-0.1527426541,
0.1009976491,
-0.0439531431,
0.0453943759,
-0.3636941612,
0.0277081206,
-0.0606808513
] |
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.1755404025,
0.1067498401,
-0.1183999851,
0.4231292605,
-0.1488428265,
0.2618192136,
0.2323350161,
0.390468061,
0.3619003892,
-0.0010757784,
-0.2331463099,
-0.0116895726,
0.0589738116,
0.0111062471,
-0.0046201525,
-0.2025987804,
-0.0308901742,
-0.1021870375,
0.2275921702,
0.1421487182,
-0.1725379229,
0.0882981569,
-0.2301309109,
-0.0897330493,
0.1276374012,
-0.0596878678,
0.0723107606,
0.0443106517,
0.2043146342,
-0.544629097,
-0.0048860991,
-0.4125088453,
0.4355434179,
0.4883058965,
-0.0001138217,
0.0546826087,
0.3437693715,
-0.0272878911,
-0.3930962086,
-0.4340237081,
-0.335265398,
-0.2002717555,
0.0597979128,
-0.223235324,
-0.0848989636,
-0.2553304136,
-0.144721821,
-0.3347808421,
0.1664270014,
0.526061058,
0.15908584,
0.1715176404,
0.1333596706,
0.1060602739,
0.3838211298,
-0.2292441279,
-0.0983325839,
0.2020833194,
0.5291867256,
0.1876038611,
-0.0844438002,
0.294567585,
-0.1038551405,
-0.0169018023,
0.1182349771,
-0.0495264307,
0.169614628,
-0.4821278155,
0.0659709796,
0.2115797549,
0.3448187709,
-0.3105713725,
-0.4523895681,
-0.2377698421,
-0.1179611757,
-0.3698240519,
0.256572336,
0.2197510004,
-0.1959238946,
0.1295432299,
0.1145652086,
-0.0898963436,
-0.0348889455,
0.3676126599,
-0.3026770055,
0.3926454782,
-0.0772495568,
-0.0298966337,
0.1111188605,
-0.1466865987,
0.0816027373,
0.0027607426,
0.0597464144,
0.2146912813,
-0.3444156349,
0.2084278017,
0.0736804605,
-0.1433285326,
0.0144617669,
0.0827069432,
0.2570381165,
-0.0341071375,
-0.0585580207,
0.0653535575,
0.3505275846,
0.1814714968,
-0.109526597,
0.0925202072,
-0.0106691513,
0.3030139506,
0.0932593718,
0.0778531358,
0.1683072597,
-0.2432313263,
0.0530866385,
-0.0370573141,
0.2929571569,
-0.3523531258,
-0.2658052146,
0.226101324,
-0.3138168156,
-0.1832838356,
0.0655585825,
0.1817697585,
-0.2392184436,
-0.1005861834,
0.225346446,
0.0679831654,
-0.2773725092,
-0.0633981153,
-0.1548107117,
0.0935432613,
-0.0421131663,
0.1769760996,
0.441858381,
-0.5744710565,
0.1978182048,
0.0437813401,
0.2652726471,
-0.0362152085,
0.018835526,
-0.4248972535,
0.2651001215,
0.437725246,
0.0096786842,
0.0718526691,
0.0458105356,
0.0313298143,
-0.1299722344,
0.3096792102,
-0.2886220217,
-0.1968885064,
-0.0432501696,
0.1264825612,
0.037843138,
0.134003073,
-0.163589716,
0.3765882254,
0.5087189078,
-0.1100702807,
0.0502904393,
-0.1411718279,
-0.2798919678,
-0.0035949533,
0.1736457199,
0.4014998078,
-0.3967857957,
-0.1055602729,
0.0184919517,
0.5653259158,
-0.056042701,
0.1985336244,
-0.2315892875,
0.4627302587,
-0.1715317369,
0.2583893239,
0.2030449212,
-0.1243122518,
-0.1949728131,
0.1152663529,
0.2389271408,
-0.0143755665,
-0.0578815043,
-0.176007241,
0.4688827097,
-0.1368216127,
0.6135956645,
0.3449406028,
-0.0424388349,
-0.0966619402,
-0.3477306366,
-0.1141510382,
0.1973972768,
0.1627765745,
0.0313841142,
-0.0484860875,
-0.0097028976,
-0.2665248215,
0.0788686201,
0.1392219365,
0.0231258012,
0.3674275577,
-0.6418525577,
0.0916568935,
0.2857527435,
-0.2323865741,
-0.1339325309,
0.127180323,
-0.1287390739,
0.2774347663,
-0.3100444078,
0.1869032085,
-0.4867815971,
0.0157059152,
-0.1359554678,
0.1484371722,
0.0637336969,
0.0105740232,
-0.1396458,
0.2280969173,
-0.2554455698,
-0.1438366622,
0.0683844388,
-0.0334544927,
-0.6968355179,
0.2373878956,
-0.2281327248,
-0.1361776888,
0.1577717066,
0.1020084545,
0.1404304951,
-0.1101045161,
-0.1807848662,
-0.020391861,
-0.1228404641,
-0.170803234,
-0.345562011,
0.3240130246,
0.3131723702,
-0.3127226233,
0.2518368959,
0.4056277871,
0.2708936632,
-0.08362367,
0.3261792064,
0.2131665349,
-0.1609642655,
0.3445232213,
-0.0217992645,
-0.2369897515,
0.2463636249,
0.0210879426,
-0.0098293303,
-0.2796857059,
0.2190891504,
-0.1045975611,
0.3646544218,
0.0616708286,
-0.0477097481,
-0.0581343584,
0.1234450489,
-0.0161478966,
0.169176206,
0.2042668015,
-0.0738270879,
-0.1680462658,
-0.1717486084,
-0.3292055428,
0.1732796431,
0.107717663,
-0.0089458562,
-0.0834018961,
0.1157974005,
-0.1058290824,
0.3423879743,
0.2552767694,
0.2736132443,
0.2762807608,
0.0783207938,
0.1315887868,
-0.3082401454,
-0.4225614965,
0.0142450603,
0.2152879685,
-0.4495739937,
0.4153722823,
0.1764906943,
-0.3796941042,
0.0393819697,
-0.6723876595,
-0.2069756389,
-0.2337340117,
0.0206672978,
-0.1468476802,
-0.2473728657,
0.0721463487,
-0.1190403104,
0.0950720906,
0.2156868577,
0.0018520065,
-0.0147829121,
0.0973435119,
-0.3829988241,
-0.0383320972,
0.2576623261,
-0.0327399261,
0.0954396874,
-0.0960053504,
-0.1535269767,
-0.1855545193,
-0.0036090012,
0.1915376037,
0.0029505803,
0.4744867682,
0.0214512106,
0.3548191786,
-0.0678443834,
-0.3108952343,
0.1428101808,
0.284109205,
-0.0027111832,
0.0835408643,
0.0051919539,
0.3517222703,
0.0820930377,
-0.6314834356,
-0.2765562236,
-0.3663817644,
-0.2867331207,
-0.0545875318,
0.283880353,
0.3187382817,
-0.0734042153,
-0.1046388298,
0.2247228026,
0.3155888319,
-0.2177785486,
-0.0706695616,
0.2444878221,
-0.0777037889,
-0.2715017498,
-0.1034860387,
-0.0088610193,
0.0229868516,
0.0225058831,
-0.4185806513,
0.3741729856,
-0.2116334885,
-0.1099838465,
-0.2799407542,
0.142797783,
0.1195820272,
-0.1057288125,
-0.0864007995,
0.2175136656,
-0.1457339376,
-0.0083484482,
-0.0701675117,
0.1588688344,
0.2455357909,
0.3019486964,
-0.150668323,
0.2919906974,
-0.0586928353,
-0.040083576,
0.6439821124,
0.2175883651,
0.1514039487,
-0.2557824254,
-0.3873144388,
-0.1864758879,
0.0446601063,
-0.3228281438,
0.3679369688,
0.0021882774,
-0.4897552729,
-0.2030828595,
-0.3399728835,
-0.4267127216,
-0.1913817525,
0.2030260563,
-0.1593588889,
0.2108829468,
0.0237513483,
0.0421084054,
-0.0633242428,
-0.1329181343,
0.1005293727,
0.0311089158,
-0.0726395026,
-0.0021496941,
0.2656375766,
-0.2039830089,
-0.3477560282,
0.1620822847,
0.2984673977,
0.4872821569,
-0.0555181392,
-0.0622755066,
0.0048182257,
0.1248936132,
0.6233374476,
0.0114797931,
0.2188984752,
0.3644366264,
0.1261978298,
-0.1252693832,
-0.2462922931,
-0.1677235663,
0.2955400646,
0.1296837032,
0.04694058,
-0.2580865026,
0.0334393233,
0.0349085182,
0.5183112025,
-0.1502602994,
-0.1503088325,
-0.2134931982,
-0.2702845335,
-0.1576329172,
0.0489907973,
0.2762343585,
0.2790072858,
0.1163905039,
0.0565569811,
0.1449837387,
-0.0082676765,
0.1182349324,
0.0302530341,
0.2791368663,
-0.0354129449,
0.2316610664,
-0.0505239666,
0.1022325307,
0.1699858457,
0.4633556306,
-0.0541026816,
-0.2049700469,
0.0626579821,
0.0439114869,
-0.0007970216,
0.2750034034,
0.0230816994,
-0.0759898797,
0.1049810275,
0.07030873,
0.0560399331,
-0.2724577785,
-0.092206493,
-0.0225839466,
-0.543132782,
-0.4410666823,
0.470672816,
-0.0079251127,
-0.1015082225,
0.3908189237,
-0.0670436323,
-0.3913848102,
0.8489488959,
-0.0848357007,
0.9151954055,
-0.106836468,
0.0912294164,
-0.0729309991,
0.3846328855,
0.2064214796,
0.0115280207,
0.1456756145,
-0.2525364757,
-0.2984532416,
-0.1454469264,
-0.0122562069,
-0.0232701022,
0.0328771584,
-0.1993304342,
0.3208724856,
-0.2007213086,
-0.1426828355,
0.0873764604,
-0.0067097028,
-0.1424009651,
-0.3256971836,
-0.7548493743,
0.0061006909,
-0.0925031304,
0.017758416,
-0.1283667386,
-0.0647784099,
-0.052277986,
0.0719935074,
-0.3233532012,
0.0826196894,
-0.2926447093,
0.19160676,
-0.0383142307,
0.0786375329,
0.1929413378,
-0.1405192316,
0.244963184,
0.0390204452,
-0.1484773606,
-0.1100704074,
0.0302475709,
-0.1444112808,
0.1483397633,
-0.1872265786,
0.5013310909,
-0.0442668982,
-0.2843294144,
0.1605215371,
-0.0077373781,
-0.1709924936,
-0.1163546741,
0.3395333588,
0.1112181991,
-0.3739179373,
-0.2430127114,
-0.165825516,
0.1200297028,
-0.1154508144,
0.1192824766,
0.1934635341,
-0.1843615919,
0.1124214455,
0.1926915646,
-0.4189239442,
-0.1223242432,
0.4717424214,
0.2463548183,
0.1172112748,
0.3903487921,
0.61438936,
-0.16375269,
-0.0698995143,
-0.1813168079,
0.1079721302,
-0.4279261827,
0.1673282832,
-0.0595007353,
0.0256696697,
0.0052670916,
0.5612252951,
0.237790212,
-0.0229389183,
-0.1789639741,
-0.6683351398,
0.1777802855,
0.3081204891,
0.0797467753,
-0.0309091322,
0.1908643544,
-0.1966797113,
-0.0598717518,
-0.1727072746,
-0.2727918029,
0.1352401525,
-0.3521439433,
0.380798161,
-0.5048598647,
-0.0210789125,
0.1642596424,
-0.0796080828,
0.0516792834,
-0.0498384126,
-0.1113034561,
-0.23041372,
0.0514919423,
0.1193002462,
-0.132891044,
-0.2133139074,
-0.3685186803,
-0.2479917109,
0.0559157096,
-0.1663180292,
0.0965265334,
0.2537268102,
0.0825102255,
-0.0666556433,
0.1753322184,
-0.2093824148,
-0.0640960708,
0.239282608,
-0.1072065309,
0.2693245411,
0.1828236133,
0.2660245299,
-0.1483023614,
-0.0021980852,
-0.3165096641,
0.1672481,
-0.197139293,
0.1155368611,
0.2080383599,
-0.3303747475,
-0.0588248596,
0.4746851325,
0.2639428973,
0.2856272459,
-0.3358514011,
-0.2472340614,
-0.2202568948,
0.1564175785,
-0.2276233882,
-0.270737648,
-0.0806935653,
-0.2140189409,
0.0222401433,
0.3439475298,
0.3728133142,
-0.3177205622,
-0.2651557028,
0.0304210391,
0.3469939232,
0.0293370225,
-0.0581986532,
0.3112131059,
0.193930462,
0.0735186934,
0.0554656349,
-0.0581342243,
0.251709491,
0.3587357104,
-0.0427227058,
0.4240318239,
0.5910564661,
0.2392539084,
-0.2086254209,
-0.5564649701,
0.4546753466,
0.3678336442,
0.1437537521,
0.0243153367,
0.1914881021,
-0.3231004179,
0.1907575279,
-0.0923769623,
-0.0231580324,
-0.03026269,
-0.0183195136,
0.0349920876,
0.0932227671,
-0.2088592649,
0.141479969,
-0.2800651491,
-0.0208465774,
-0.0735580623,
0.0253786836,
0.1334732175,
-0.25143224,
-0.0405885614,
0.0336348787,
0.0703930333,
0.1245526895,
-0.1598726809,
0.3140042424,
0.258377254,
-0.1721873283,
0.0302775968,
0.4492288232,
0.4798879623,
0.402700901,
-0.0890971124,
0.1645623893,
-0.0922215804,
-0.1725896597,
-0.1757374108,
0.0987888947,
0.0299802534,
0.1102684438,
0.2625528872,
0.0869524628,
-0.072966069,
0.1525917649,
0.3058072627,
0.1193873435,
0.0408315398,
-0.034142755,
-0.1013066918,
-0.0667462423,
-0.2574472725,
0.0409118608,
-0.4404967129,
-0.0617006049,
0.5526071787,
-0.4645683169,
0.1704441905,
0.1823158264,
0.0622186065,
-0.0459923074,
0.4709723294,
0.5967460871,
0.1878380924,
-0.4081813097,
0.1641998738,
-0.338447243,
0.1257900447,
-0.1452888846,
0.152346462,
0.5619260669,
0.2891362309,
0.0298849139,
0.2199967057,
0.1524375379,
0.3632757068,
-0.0070695304,
0.0890552923,
-0.5017117858,
-0.3325832784,
-0.0525973849,
0.3393878043,
-0.3351189792,
-0.1767839044,
0.1947644651,
-0.5119804144,
0.0272406135,
-0.2343556285,
-0.355456084,
0.139610067,
0.4828725159,
0.2694964707,
0.0999227539,
-0.0498245992,
-0.1282318234,
-0.0530840382,
-0.1693367064,
-0.0467170253,
0.0469609797,
0.5258584619,
0.092763491,
0.1517029405,
-0.1340387166,
-0.1395255923,
-0.1057455242,
0.381873399,
-0.1435225159,
-0.0104672424,
-0.2730926275,
0.0261901524,
-0.1786255538,
0.1172596142,
-0.1119971722,
0.2092104107,
0.1263937801,
0.317368865,
-0.0004320406,
-0.4568520486,
0.528996706,
-0.4251687825,
-0.2309637815,
-0.3599753976,
0.2226499319,
0.3706855476,
-0.0084142517,
-0.5656880736,
0.011493559,
0.3054688573,
0.0736179426,
-0.5129503012,
0.001224037,
-0.1819702536,
0.2164080143,
-0.0813525617,
0.2238122523,
0.1676719785,
-0.2962997258,
-0.2643443644,
-0.1033181101
] |
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.1877753586,
-0.0464500673,
-0.0886766389,
0.4570907652,
-0.1361014545,
0.2721574903,
0.2241878211,
0.3228884339,
0.4278388321,
-0.0132561065,
-0.2501671016,
-0.0138163362,
0.1214890853,
0.0700825602,
-0.0400825329,
-0.298004806,
0.0483286828,
-0.098388046,
0.2569687665,
0.0944314003,
-0.2235393524,
0.0493706353,
-0.3123706877,
-0.077144742,
0.1526147425,
-0.0772050992,
0.0157800484,
-0.0589516461,
0.2090411037,
-0.4896107614,
0.0861007422,
-0.3483732045,
0.529779315,
0.5618439913,
-0.0001174112,
-0.0130773345,
0.417514205,
0.00116416,
-0.2492551357,
-0.5517653227,
-0.1917780787,
-0.138852641,
0.1426742822,
-0.1907674223,
-0.109366335,
-0.2686260641,
-0.1455368698,
-0.2430962622,
0.1646287143,
0.3619322479,
0.1498287171,
0.15069139,
0.1792136282,
0.0761946514,
0.2918262482,
-0.2640067339,
-0.0309771709,
0.1672477722,
0.554094851,
0.0845653191,
0.020654941,
0.1773421019,
-0.1420641243,
0.0195199903,
0.1509269178,
-0.0254508909,
0.186008662,
-0.6007181406,
0.0481729023,
0.2375653833,
0.4379048944,
-0.2943656147,
-0.4859936535,
-0.2032390535,
-0.030640645,
-0.3684285879,
0.2340958118,
0.3169797361,
-0.187509805,
0.1218396276,
0.1365369707,
-0.1637620032,
-0.1190506816,
0.3956002295,
-0.2622689307,
0.3255660832,
-0.0335665382,
0.0091809276,
0.1443215758,
-0.1356597394,
0.0591469631,
-0.0627764761,
0.0089822207,
0.2237099111,
-0.3714158237,
0.2426294982,
0.0462795012,
-0.1512621492,
0.0464232937,
0.127049163,
0.1780864745,
-0.0431696177,
-0.086699225,
0.1870374531,
0.3773936629,
0.1415172517,
-0.0474854186,
0.1577920169,
0.0590437613,
0.258430779,
-0.0364743583,
0.0688213259,
0.1227203161,
-0.1632345021,
0.0382447802,
-0.1630249768,
0.2272499353,
-0.3855601847,
-0.2166517526,
0.2503850162,
-0.4001907706,
-0.2164934278,
0.0175690278,
0.1911917329,
-0.217597425,
-0.1130019575,
0.1756854653,
0.2376639396,
-0.1939766407,
-0.0253838059,
-0.1380522251,
0.0888229758,
-0.0909496695,
0.0913551897,
0.4032441378,
-0.6046215892,
0.2357472479,
-0.0026582209,
0.3509508371,
-0.0137086827,
0.1142152995,
-0.3825577199,
0.1943871975,
0.4071758091,
0.1387537271,
0.0799130499,
0.1162823662,
0.0233891681,
-0.1573424935,
0.401297152,
-0.3911562562,
-0.1710175276,
-0.0674690604,
0.1026383936,
0.0009661752,
0.0878519118,
-0.2276012003,
0.3403204679,
0.5037471652,
-0.0629233345,
0.0032117935,
-0.148161754,
-0.3219296932,
-0.0733047128,
0.1235524863,
0.3431199193,
-0.351262629,
-0.0584014207,
0.0450982973,
0.489380002,
-0.0376649983,
0.2192805111,
-0.255959481,
0.4304127991,
-0.1774686873,
0.3240617514,
0.2467716336,
-0.1277136803,
-0.2421395183,
0.1979269385,
0.2657417059,
-0.0758553222,
-0.1030730084,
-0.2082651705,
0.4517377615,
-0.0546394102,
0.627405107,
0.4939143658,
-0.051197134,
-0.09005218,
-0.3175871074,
-0.1195220649,
0.3496674895,
0.1258063912,
0.1293510646,
-0.0166825205,
0.003998043,
-0.2633425295,
0.1419402957,
0.1173854917,
-0.0173711777,
0.3858931959,
-0.475905031,
0.0965220556,
0.3008756936,
-0.2243798077,
0.0428484902,
0.1723196059,
-0.1413497329,
0.2480079532,
-0.2273527235,
0.2863009572,
-0.4168074429,
0.0402077362,
-0.205420956,
0.0908534452,
0.0146366041,
-0.0775186568,
-0.0872633979,
0.2759566307,
-0.286506772,
-0.1691034734,
0.0641299114,
0.0150777074,
-0.6049722433,
0.334218502,
-0.1763084978,
-0.2357383817,
0.0998832583,
-0.0123944888,
0.1410334408,
-0.1680070609,
-0.2132779658,
0.0060991151,
-0.1226603538,
-0.2166846544,
-0.3014383912,
0.2852749228,
0.2956887186,
-0.373118341,
0.3329125345,
0.4022060931,
0.1639838964,
-0.0809129626,
0.3661570251,
0.2040124238,
-0.1086356044,
0.3784813881,
-0.1051314473,
-0.2154237926,
0.2266110629,
0.0307548977,
0.0170904156,
-0.103283152,
0.2849923074,
-0.1050957292,
0.3401998281,
-0.0231681913,
-0.1313323081,
-0.1196970195,
0.0099502718,
0.0059377067,
0.2142351866,
0.276522994,
-0.0754361972,
-0.1280435324,
-0.1962985694,
-0.4573315084,
0.2315338999,
0.144240737,
-0.0854846388,
-0.0895236358,
0.1244905367,
-0.0630653724,
0.3120193183,
0.1077939868,
0.2943938375,
0.2502007484,
0.1347865611,
0.1014077142,
-0.3171720803,
-0.3249180913,
0.0405472256,
0.1729807854,
-0.3517559767,
0.4300265312,
0.2592787147,
-0.3555389047,
0.0915016606,
-0.638845861,
-0.2775253654,
-0.1306149662,
-0.0360215902,
0.0063878293,
-0.1150354147,
0.1680923402,
-0.168274492,
-0.0864632502,
0.23602584,
-0.1264013499,
0.0223937295,
0.0920131207,
-0.3701222837,
-0.0770027414,
0.2550439537,
-0.0746798813,
0.1576038152,
0.0727808252,
-0.1214021146,
-0.1043150276,
-0.0292144809,
0.185360238,
-0.0183184166,
0.4640194178,
-0.1149679124,
0.3587630391,
-0.140354678,
-0.2421627343,
0.2271584719,
0.1857068241,
-0.0218748115,
0.1637767851,
0.0100991242,
0.2391341776,
0.0944108665,
-0.4681004286,
-0.3149429858,
-0.3170127571,
-0.2879397869,
-0.0266061053,
0.167861104,
0.323361814,
-0.0039898376,
-0.2117662132,
0.2140717059,
0.2239969969,
-0.1747623533,
-0.1660605371,
0.2782450318,
-0.0394989699,
-0.3239012957,
-0.0820352212,
0.0130388765,
-0.0526657365,
0.0465411395,
-0.4170080721,
0.3313930333,
-0.204610467,
-0.0389937796,
-0.2311554998,
0.1742729992,
0.0914129987,
-0.1448886245,
-0.0160810053,
0.1682033986,
-0.0429362506,
-0.0291247834,
0.0024891731,
0.1942388862,
0.3245142102,
0.2126040012,
-0.1889987886,
0.2093216479,
-0.0382452123,
0.0387953855,
0.6535491347,
0.2737877071,
0.0766957104,
-0.2376987189,
-0.4639845788,
-0.1501163989,
0.1125409007,
-0.4123541415,
0.3311192691,
-0.0498029254,
-0.4764991701,
-0.250131011,
-0.3851373494,
-0.3440398872,
-0.1309672296,
0.1390448362,
-0.14687635,
0.2006629705,
-0.004783628,
0.0029351029,
-0.0379980169,
-0.1806616336,
0.0935199708,
-0.0534731708,
-0.0655059963,
0.026960114,
0.3056279719,
-0.2745111585,
-0.3386610746,
0.1035833657,
0.2288864404,
0.4502704442,
-0.0063825818,
0.010023756,
0.0519629866,
0.1529520303,
0.6871081591,
0.0248993877,
0.2073342651,
0.3312928677,
0.1308226138,
-0.1347748786,
-0.3419047296,
-0.173480317,
0.371322304,
0.0345740691,
0.1124415547,
-0.2644978464,
0.0738708675,
-0.0232192688,
0.5086475611,
-0.1613168269,
-0.2682159245,
-0.3335087299,
-0.2844647765,
-0.2667704523,
0.0898743495,
0.1821268499,
0.3325807452,
0.0521924086,
0.0686133876,
0.1627587527,
-0.0147583876,
0.1783932149,
0.0448339507,
0.2641831636,
-0.0901438221,
0.2104615867,
-0.1074536294,
0.0633915514,
0.1904765517,
0.4232784808,
-0.0521410778,
-0.2642837167,
0.013603271,
-0.0258189719,
0.1289608479,
0.1327117383,
0.033693254,
0.0372573882,
-0.0419183597,
0.0932735652,
0.0550295189,
-0.3299226165,
-0.0015832157,
0.0350289792,
-0.5425876975,
-0.4569781721,
0.519867003,
-0.0449458137,
-0.0834906623,
0.4464790225,
-0.1348858774,
-0.3541565239,
0.8186009526,
-0.1164209098,
0.9402415752,
-0.1575017571,
0.0902890712,
-0.0986623764,
0.4318521619,
0.2294863164,
0.0170625038,
0.1314003319,
-0.3510849178,
-0.3513862193,
-0.1283223033,
-0.0653104335,
-0.0176754631,
-0.0540250912,
-0.1974099427,
0.2823764682,
-0.2762392461,
-0.1637960374,
0.1032768935,
0.0036850239,
-0.038396541,
-0.3015964031,
-0.7697241306,
-0.0044942982,
-0.121173881,
0.0640018433,
-0.1528098732,
-0.0446804874,
-0.0569313988,
0.0623653121,
-0.3020886183,
0.1786656678,
-0.1697913557,
0.2599478364,
-0.024567686,
-0.0733059421,
0.2296824455,
0.0374518037,
0.1489691138,
0.0733140334,
-0.168074578,
-0.1542636454,
0.0181149431,
-0.2912919223,
0.0807127953,
-0.1277770698,
0.4687169492,
-0.0247427188,
-0.4387732446,
0.2530714571,
0.040891733,
-0.0934380591,
-0.1768901497,
0.3172102273,
0.16297777,
-0.3863539398,
-0.3148021698,
-0.2251951844,
0.1760265976,
-0.0860229135,
0.1034946665,
0.2724950314,
-0.2727386653,
0.1300433427,
0.2212478817,
-0.3995957971,
-0.071009405,
0.4882138968,
0.2661292851,
0.1050895974,
0.4344874024,
0.690944612,
-0.1168321893,
-0.062125776,
-0.0925756022,
-0.0260299351,
-0.2954341769,
0.1991963536,
0.036102172,
0.1139547676,
-0.0163014494,
0.5044161677,
0.2366803735,
-0.0716007873,
-0.1014104858,
-0.6054026484,
0.1177414581,
0.2298292965,
-0.008950524,
-0.1208771989,
0.1899373531,
-0.2474104911,
-0.0090364488,
-0.2172662616,
-0.2536601126,
0.1492657363,
-0.3593366146,
0.3357184529,
-0.4784280658,
0.0297560487,
0.1237491965,
-0.1205692515,
0.0153231118,
-0.0598335639,
-0.0652337447,
-0.2206034213,
-0.0253338739,
0.1380935758,
-0.0656347573,
-0.1423895657,
-0.275230974,
-0.321115762,
0.0448404923,
-0.1300244927,
0.039253436,
0.2385993451,
0.0715833977,
-0.0087844385,
0.2596637011,
-0.1693474501,
-0.1735751927,
0.3215179741,
-0.1807613522,
0.27541399,
0.1087810621,
0.176729694,
-0.0140157687,
-0.0061278329,
-0.4125484824,
0.0968421549,
-0.1366616488,
0.0956595391,
0.2184815258,
-0.4270794988,
0.0428605266,
0.3978966475,
0.3022239804,
0.2615046203,
-0.3576153815,
-0.1294259578,
-0.100674212,
0.1508114338,
-0.2962695062,
-0.2760990262,
0.0981946886,
-0.1901114434,
-0.100461036,
0.3018142879,
0.3105677664,
-0.283161968,
-0.3916254938,
0.0541897379,
0.3112680316,
0.0897268131,
-0.0206472967,
0.3724784553,
0.2655083239,
0.1119908839,
0.1267893314,
0.0331315361,
0.2198856473,
0.3703357279,
0.0196164511,
0.3831458986,
0.5232911706,
0.1656560153,
-0.2105607986,
-0.5987141728,
0.475779891,
0.3198191226,
0.2372419685,
-0.0275613349,
0.0966654941,
-0.1578448117,
0.1674957424,
-0.157489717,
-0.0907719731,
0.0042772093,
-0.0026950538,
0.0463199355,
0.1055219322,
-0.2007157952,
0.1826441437,
-0.2155259103,
-0.0251815729,
-0.0862757489,
-0.0452747457,
0.1951212734,
-0.2231222689,
-0.142971009,
0.051692307,
0.1707571,
0.1168577,
-0.2242253423,
0.2616124749,
0.2061662078,
-0.2228834331,
0.0259967912,
0.4006109238,
0.504786551,
0.4441467524,
-0.1801770926,
0.1704858392,
-0.0707332939,
-0.1570306867,
-0.1112940386,
0.1080040112,
0.068377465,
0.2420630604,
0.2476896942,
0.0788132474,
-0.0633481145,
0.2042131573,
0.2919196784,
0.101815857,
-0.019951541,
-0.0103589771,
-0.0866063982,
-0.1367336661,
-0.3233429492,
-0.0731442794,
-0.4708895981,
0.0395666994,
0.6526062489,
-0.3489194214,
0.0747138038,
0.1700439304,
0.0357095562,
-0.0809753463,
0.4416023195,
0.6995095611,
0.2822190821,
-0.4421759844,
0.2009066939,
-0.3303512633,
0.2510176897,
-0.1869005412,
0.2030413002,
0.5098546147,
0.2263410091,
0.0117252702,
0.2636483312,
0.1323352754,
0.3015123606,
-0.0514408015,
0.222050339,
-0.4766444564,
-0.3353192806,
-0.1140910909,
0.3805039823,
-0.3412328064,
-0.1062501147,
0.1164385453,
-0.5912813544,
0.0090655545,
-0.3236002326,
-0.2978069782,
0.1466222256,
0.3390182555,
0.3214838803,
0.1121080369,
0.0966379344,
-0.0456192531,
0.0239853524,
-0.0831468478,
-0.1393447667,
0.0083723888,
0.4147399366,
0.0642857626,
0.1914906204,
-0.1946295798,
-0.2010740787,
-0.185912177,
0.3737421036,
-0.107628867,
-0.0778104067,
-0.2968200743,
-0.0362860598,
-0.1400793344,
0.0614998788,
-0.1188206896,
0.1798105538,
0.1099348143,
0.3384967446,
0.0274355654,
-0.3561401665,
0.5066061616,
-0.5102152228,
-0.3376925886,
-0.3747174442,
0.1354251057,
0.2817045748,
-0.0234074332,
-0.5694025755,
0.0318841301,
0.3264682889,
0.1137194559,
-0.4719184935,
0.0395714417,
-0.1244498789,
0.2546504438,
-0.0420336463,
0.1964075565,
0.0950778797,
-0.232477054,
-0.2083831578,
-0.0419431962
] |
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.0871630982,
0.025846146,
0.0274065882,
0.60459131,
-0.1784683466,
-0.0898554921,
0.2882221639,
0.3268501759,
0.0184905417,
0.1675233096,
-0.369400084,
-0.0839858353,
0.2241547406,
-0.0408565253,
0.088821955,
-0.0422795936,
0.0376423858,
0.1200495288,
0.3278564513,
-0.2406734228,
-0.1716179103,
0.1605944335,
-0.0282531362,
0.2701845169,
0.0697423369,
0.1259598583,
0.0421592556,
0.5915514827,
-0.1242948845,
-0.1665706187,
0.2873154283,
-0.0173067153,
0.5707438588,
0.8942393064,
-0.0001184026,
0.1681628525,
0.2595363855,
0.0103582237,
-0.2348510176,
-0.11426837,
-0.403844595,
0.130204469,
0.0836360827,
-0.1607076079,
-0.1807736456,
-0.0938129574,
-0.306029737,
0.0864415839,
0.4408938289,
0.3926028609,
0.1661801636,
0.448436588,
0.0907085612,
-0.1656460017,
0.4235153496,
0.0348578691,
0.0053400579,
0.2900850475,
-0.0708379894,
0.0867628828,
0.013297108,
-0.0068785362,
0.0141344192,
0.0842934251,
0.2092771232,
0.0134577407,
-0.0423867889,
-0.0992746204,
-0.100217253,
0.0658622757,
0.4129539132,
0.0002568412,
-0.2669297755,
0.026682796,
-0.0367547125,
-0.1364853978,
0.1582322717,
0.2569405735,
-0.134107098,
0.1208953112,
-0.1735553741,
-0.3134870231,
-0.4048248827,
0.3338384032,
0.1114476845,
-0.0551389866,
0.0097002452,
0.0252806079,
-0.252635628,
-0.2069938183,
-0.0964899436,
-0.1750050485,
0.021321917,
0.1697478592,
-0.0287925992,
-0.0907953978,
0.085866183,
-0.0316632241,
0.2942894399,
0.3939573765,
-0.270239085,
-0.0663876534,
-0.4752778411,
0.195490852,
-0.0173455346,
0.3439956009,
0.019396821,
0.2792780101,
0.4515995979,
0.4925678074,
0.0249250121,
0.0916299969,
-0.3378536403,
-0.005190141,
-0.1679280847,
-0.19273296,
0.4646199346,
-0.4979291558,
-0.0039769216,
0.1847068667,
-0.2357385904,
0.0277585592,
-0.0260836948,
0.340642333,
-0.0719406679,
-0.1338147968,
0.0686856881,
0.0375017524,
-0.2768376172,
-0.0923992395,
-0.1704372168,
-0.1632036716,
0.0213636886,
0.2591722012,
0.1316787004,
-0.0267506167,
0.2024156004,
-0.0369497575,
0.3569189608,
-0.2349618375,
0.0001228236,
0.1925103515,
-0.1851203889,
0.2597727478,
0.1659450829,
-0.0253742915,
0.1190524995,
-0.3925628662,
-0.0547074229,
-0.1396571994,
-0.6864683628,
-0.4307948947,
-0.0843315572,
0.1072937772,
-0.1942070425,
0.0400028676,
-0.5282011628,
-0.3732127845,
-0.1112887934,
-0.0995285884,
0.0376249179,
0.0282477904,
-0.0483966023,
-0.115832381,
0.1585275978,
0.5856997967,
0.3585843146,
-0.0071596545,
0.3294964135,
-0.1886003613,
0.2019344568,
0.3431799114,
-0.1851006299,
0.0839205757,
-0.2878254652,
0.3110013008,
0.1597584188,
-0.4815157652,
-0.4112557173,
0.645684123,
-0.269885838,
0.0339967161,
0.0982296765,
-0.1084415987,
0.1172512621,
-0.2085671723,
0.5326527357,
0.4657271802,
0.2107893378,
-0.130087927,
-0.288569659,
-0.2136397213,
-0.3629422188,
0.3998593986,
-0.0017961537,
0.2109304219,
0.3625539839,
-0.2569054961,
0.2932195365,
-0.0458181798,
-0.1872210354,
0.3072162271,
0.3584533334,
0.0192744061,
0.2242030054,
0.0763050094,
-0.2873437405,
0.1927691251,
-0.358561188,
0.1491599232,
-0.0419796966,
-0.0627900288,
-0.3100635111,
-0.0910806805,
-0.4545486569,
0.1863724738,
0.0425488539,
-0.0372702666,
-0.1701895148,
0.1651742607,
0.0201008227,
0.2720375061,
-0.1222625449,
0.2718657851,
-0.2868470848,
0.6367555857,
0.0267662536,
0.0750541836,
0.1860987246,
0.2177872211,
0.3806754053,
-0.0630794838,
-0.1942443401,
0.3124833405,
0.1950445771,
0.1324030161,
0.7725483775,
-0.0686834231,
0.2205394357,
-0.0882274956,
0.0287847482,
0.4030069113,
0.0595476925,
0.2151000649,
0.1824575067,
0.1951799244,
0.0441590808,
0.3703367412,
0.0991879329,
-0.1081423014,
0.1792204976,
-0.1274946779,
-0.1071735173,
-0.0383460969,
0.3741496205,
0.0318133011,
-0.2007787675,
-0.0603223853,
-0.1172191799,
0.027872866,
0.2025965899,
-0.3027198017,
-0.0415040441,
0.3303075731,
-0.1391049773,
-0.0167187378,
0.241038397,
0.4205012619,
0.2979261875,
-0.0170525666,
-0.1817576289,
0.0656797811,
-0.0896782726,
-0.08312089,
-0.0638891086,
0.022054499,
0.0340767317,
0.1687861681,
0.1015622243,
-0.0376969315,
-0.0569458008,
-0.4256900549,
-0.0824865326,
0.2719037831,
-0.4516471326,
-0.0140940025,
-0.3728095591,
-0.1323238164,
-0.0767277852,
-0.2615004182,
-0.5702645779,
-0.0763108432,
0.0289026275,
-0.0809277222,
-0.1059549153,
-0.1590921283,
0.0347101837,
0.2810228169,
0.1168030351,
-0.3547640443,
-0.1858557314,
-0.0121851088,
-0.2940159142,
-0.0945232585,
0.2922329307,
0.0204860922,
0.317524761,
-0.4767370522,
-0.0902840421,
-0.4070100486,
-0.1112843156,
0.0356452018,
0.1565066874,
0.348276794,
-0.0398226641,
0.0723158196,
0.2941636741,
0.0916487277,
0.2570353746,
-0.1088712141,
-0.2068012655,
0.2457994521,
-0.1831878722,
-0.0909196585,
-0.1320870519,
-0.0294610616,
-0.2550734282,
-0.1853722334,
0.2371391803,
0.3771704733,
0.0953639373,
-0.2680516839,
0.0706055686,
0.2262732089,
-0.1531767696,
-0.1468228102,
-0.1719809175,
-0.5023723841,
0.2743112743,
-0.4032094777,
-0.230660066,
0.2652859092,
0.2256272733,
0.043405626,
-0.1237588972,
-0.6602147222,
-0.57729882,
-0.0836369321,
0.2650000155,
-0.2728844881,
0.0472679064,
0.043851804,
-0.1540027261,
0.0778176934,
0.0458038636,
-0.2724542618,
0.1395338774,
0.0477896966,
0.1411537081,
0.0129360314,
0.1984620094,
-0.0642821565,
0.5992153883,
0.1762920171,
0.1972340494,
0.2701567411,
0.0350492634,
0.2159231901,
-0.0271471031,
0.0416460074,
-0.0525211804,
-0.0180700738,
-0.1607156694,
0.2109568268,
0.411785543,
-0.0270069353,
-0.2943615317,
-0.7045916319,
-0.1905464083,
-0.2729953527,
-0.4170335829,
0.3469997644,
0.0805545077,
0.1777721792,
-0.0354024433,
-0.1152430102,
-0.1952485591,
0.2496605664,
0.4584130645,
0.20801121,
0.2246274203,
0.0544974506,
0.0126660466,
-0.4743278325,
0.3333801925,
0.0314415619,
0.2829282284,
0.0254778415,
0.2000864297,
0.1383214295,
-0.1713121086,
0.0101336753,
0.1000091806,
0.4979900718,
-0.0185637549,
-0.1639066041,
-0.0858507976,
-0.0535558574,
0.0078166397,
0.0035869246,
-0.1175594181,
0.8319278955,
-0.2911428511,
-0.2107408792,
0.0021343878,
-0.1326836646,
-0.1245748252,
-0.4110309482,
-0.3006389141,
-0.3991363347,
-0.3001540899,
-0.0360258557,
-0.1755881757,
0.1223568693,
-0.1613676995,
0.1208264753,
0.3628309071,
0.2604139447,
0.0692802742,
-0.0567805842,
0.3072285354,
-0.1998860091,
-0.0738416016,
0.3068897128,
0.2507610917,
0.4206136465,
0.6409817934,
0.0130593423,
-0.4118207991,
0.0338697731,
-0.172188893,
0.0882983878,
0.4270459712,
-0.090320386,
0.0549751222,
0.2732678652,
0.4028311968,
-0.1074726135,
0.1076907441,
0.0753507391,
-0.2576527297,
-0.1100755408,
-0.1417015791,
0.4426448345,
-0.2945501208,
0.0482028946,
0.030647954,
0.5616436601,
-0.1613176763,
0.4553394318,
-0.253224194,
0.8656352758,
0.0318805352,
0.319157511,
0.4125313163,
-0.2175776213,
0.1534341872,
-0.6794505715,
-0.0327024683,
-0.1211869419,
0.2353569716,
-0.1737677157,
-0.0629229173,
-0.0326857939,
-0.2224308401,
0.069711253,
0.3440415561,
-0.1073442474,
0.5143914223,
0.2266748995,
0.0482462607,
0.1429793239,
-0.0709875077,
-0.3608293831,
0.086804539,
-0.0884207711,
0.097417444,
-0.0813910291,
-0.3059491813,
-0.3581775427,
-0.1596122235,
0.0168610103,
0.1965005547,
0.1090872958,
-0.0575449243,
0.0566231869,
-0.2959421277,
0.0211627986,
-0.0125353392,
0.1347132027,
0.0030473112,
-0.5207502842,
0.1371699274,
-0.1726102233,
-0.0293731,
-0.0564424433,
-0.0933093727,
0.1072478071,
-0.2675110102,
-0.1880780011,
-0.0298241824,
-0.1000049636,
-0.4531242549,
-0.2585155368,
0.1860948056,
-0.008169705,
-0.1558703333,
0.071438536,
-0.0161193814,
-0.03413748,
-0.1082224026,
0.0867443085,
0.18004179,
-0.3045521379,
-0.3173417151,
0.1646490395,
-0.2764061689,
-0.0275204368,
0.4022209346,
-0.0957697555,
-0.113891013,
0.3496784866,
0.1088130027,
-0.0804253072,
-0.135131672,
-0.0554851107,
0.3459488451,
-0.7139825821,
-0.0095986677,
-0.0371181034,
0.2363055795,
-0.0731431097,
-0.0166621618,
0.1022858173,
-0.4073723853,
0.2560970187,
-0.5434625745,
-0.0538388044,
0.0893288106,
-0.3175043166,
-0.1462233365,
0.1050829589,
0.1062570289,
-0.1318743378,
-0.3294654489,
-0.2421679199,
0.3742591143,
-0.3990376294,
-0.088728115,
-0.0879358947,
0.0046876362,
0.2556556761,
0.1062885746,
0.0472144559,
0.0730124041,
-0.2092871219,
-0.0989165306,
-0.3098870814,
0.2121885121,
0.0714147389,
-0.1748320311,
0.0320984684,
-0.1938272864,
-0.2138304114,
0.0898280889,
0.0093902862,
0.1445702761,
0.0404257104,
-0.1555692554,
0.239898771,
0.0325245,
-0.3132787645,
0.4965498149,
0.1967858821,
0.5202295184,
-0.174422428,
0.0494261533,
-0.669400692,
0.0276607815,
0.1231197864,
0.0687428489,
0.2977378666,
0.3116062284,
0.6110660434,
-0.5101624131,
0.1276439726,
-0.0901972502,
0.1447169632,
0.1153292879,
-0.2795446813,
0.0343911536,
0.1356977075,
0.09083426,
-0.0185945407,
-0.2194551975,
0.5809528232,
-0.0193756204,
-0.2160778642,
0.1184572652,
0.2108076662,
0.0717757046,
0.06186077,
0.1158038676,
0.374792099,
0.1398814172,
-0.210105747,
0.0496850945,
-0.1048733741,
0.2838538289,
-0.0839257091,
0.0560894571,
-0.0317067839,
0.3715340197,
-0.1107553318,
0.1075452492,
0.0834406391,
0.2526916564,
0.0696456805,
-0.5230894685,
-0.2532199919,
-0.0236056913,
0.3299839199,
0.0113292057,
-0.2905012965,
0.2662548423,
-0.1612526327,
0.2738804221,
-0.3528709412,
-0.0437299311,
0.0542655811,
0.1502534002,
-0.0497362055,
-0.2233941257,
-0.0962870494,
-0.0370935611,
-0.1077383682,
-0.1320925355,
-0.3277088404,
0.1041405722,
-0.1485618353,
-0.2872102857,
-0.241828993,
0.2078893185,
0.0006502756,
-0.1109866351,
0.2159478962,
0.1630752534,
-0.0378808901,
0.1516306698,
-0.2827295363,
0.3619364202,
0.1572067142,
-0.003828035,
0.0017600408,
0.1595132053,
0.0488214009,
0.2324171662,
0.2722709477,
0.1974623799,
0.0793105662,
0.2943634391,
0.0726414174,
-0.1164297014,
-0.0446593091,
-0.2403571755,
0.2847380042,
-0.1660988331,
0.5623671412,
-0.5071783662,
-0.0439348817,
-0.3436988294,
-0.189868331,
-0.3341603875,
0.130670622,
0.2980680168,
0.2615306675,
-0.0225227289,
-0.137325421,
0.0179900359,
-0.3996054232,
0.4213401675,
0.4900416732,
0.4001395404,
-0.3416486382,
-0.1488671899,
-0.4380818009,
0.4692400992,
-0.0023397475,
-0.1144674346,
0.1430309266,
0.208090201,
-0.1222665608,
-0.0149511239,
0.2360367775,
-0.2913751304,
0.2221715152,
-0.0908003598,
-0.0849627033,
-0.0882917941,
-0.079294458,
0.0259996038,
-0.0253753904,
-0.2910262644,
0.156093061,
-0.3079155385,
-0.0215792414,
0.1668856442,
-0.0608087145,
0.1342536807,
-0.2701959014,
0.4539768398,
0.1228075996,
0.191472277,
0.1691092998,
-0.3373649418,
-0.132032454,
-0.1517775208,
-0.2058751583,
-0.422677815,
-0.3909518719,
0.1235794649,
-0.1229855344,
0.0895026177,
-0.3886907995,
0.2831033468,
-0.0362889133,
0.2037679553,
-0.101254724,
0.1550435126,
-0.2333904505,
-0.1216564029,
0.1989433616,
0.0616154149,
0.0581448562,
0.0967615694,
-0.0836427584,
0.0407304876,
0.6753650308,
-0.4463760257,
-0.0966645554,
0.091166921,
0.3124555945,
0.2603936195,
-0.3580758274,
-0.1640055776,
0.1470510811,
0.2772578299,
0.2774131894,
-0.240974918,
0.184202686,
-0.2666305006,
0.125878945,
0.0475343689,
0.0952603221,
0.0432057232,
-0.189122811,
0.3335574269,
-0.052644901
] |
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.1519909352,
0.0217427276,
0.0421522632,
0.4689881504,
-0.1487776488,
-0.0837456286,
0.1870218366,
0.3314779401,
0.0251011867,
0.1321308911,
-0.4147610962,
-0.0381754264,
0.1177173704,
-0.0845712796,
0.2274658084,
-0.0939540863,
0.0643758848,
0.2031138241,
0.1788401604,
-0.1964153796,
-0.1416359842,
0.1891836375,
-0.0267065838,
0.2135807425,
0.0884627402,
0.1626262367,
-0.0169535391,
0.5753358603,
-0.1334585547,
-0.2530798316,
0.4264840782,
0.0575157739,
0.4901395738,
0.8685285449,
-0.0001199092,
0.2189437151,
0.2850865722,
0.0630402714,
-0.2731932998,
-0.1770014167,
-0.4306530356,
0.1696652323,
0.1902305633,
-0.0577684976,
-0.1480035335,
-0.0856632516,
-0.2231207043,
0.1030695662,
0.3863913119,
0.2849092484,
0.1712985784,
0.3798899353,
0.0566890612,
-0.1431237161,
0.2864226997,
0.0662521571,
-0.0473323464,
0.4522378445,
-0.0943673179,
0.103237614,
-0.064958632,
-0.0003480334,
-0.0010125368,
0.0269995052,
0.2268556654,
-0.0060469415,
-0.1101495251,
-0.0566702932,
-0.1633121222,
0.1307188421,
0.3496462107,
-0.1119890958,
-0.2637360692,
-0.0768798515,
-0.0070294673,
-0.2380511463,
0.21041511,
0.1895543784,
-0.11701525,
0.2497235686,
-0.2861324251,
-0.4180764854,
-0.2974919379,
0.3176789284,
0.064110212,
0.0484512523,
-0.0318715461,
-0.0522885956,
-0.3012052476,
-0.0576600544,
-0.1049260423,
-0.1257025748,
-0.0357950628,
0.1374064237,
0.0101505164,
-0.064946726,
0.2622863054,
-0.0737997815,
0.3891856372,
0.2772268057,
-0.0017996089,
-0.0349760316,
-0.4886954725,
0.1327639967,
0.028053144,
0.3387023211,
-0.0982746258,
0.2222915143,
0.5048391819,
0.5479639769,
0.0648633093,
0.1237415522,
-0.1865212619,
0.1162766442,
-0.1982972473,
-0.2018739879,
0.5696321726,
-0.4419042766,
-0.0255239047,
0.3089798987,
-0.3250638545,
0.0254519414,
-0.0543165207,
0.2940506637,
-0.0640185624,
-0.0053877593,
0.1105379909,
0.0006800063,
-0.2913878858,
0.037887767,
-0.1808711737,
-0.1263381243,
-0.061031945,
0.171999231,
0.1499987096,
-0.0761433542,
0.1993523091,
-0.0468538143,
0.3632752597,
-0.2024485618,
-0.1399957687,
0.2448554188,
-0.166092664,
0.2702892423,
0.1124734357,
-0.0482193567,
0.031276349,
-0.3952692151,
-0.0608170703,
-0.1533692181,
-0.6331654787,
-0.4467020929,
-0.1026827842,
0.0789962485,
-0.2454283983,
0.0484480001,
-0.5156441927,
-0.2482575625,
-0.2269539237,
-0.1161457449,
0.1025042981,
0.073171474,
-0.2155028433,
-0.1725382805,
0.2357491255,
0.6003873348,
0.2160523981,
-0.0169521812,
0.3043440282,
-0.2247076482,
0.1536224186,
0.1647024751,
-0.142366156,
0.2290184498,
-0.3856140971,
0.1902228147,
0.2130476981,
-0.4618351758,
-0.4828757048,
0.6060367823,
-0.320225805,
0.246334821,
0.018754635,
-0.2113691419,
-0.0374568328,
-0.1387768388,
0.5398170352,
0.4439111054,
0.2286475748,
-0.1108346432,
-0.3019841015,
-0.2486561388,
-0.4080142379,
0.3468931019,
0.0490517057,
0.2788872719,
0.3681975603,
-0.1649483889,
0.4139642417,
-0.0699726194,
-0.1263871193,
0.366857022,
0.4195957184,
0.0625420958,
0.1435604542,
-0.0797368512,
-0.3744694591,
0.2066185623,
-0.3822332621,
0.1196451038,
0.0238654222,
-0.036893826,
-0.3012804389,
-0.1524410397,
-0.5029712915,
0.1053228974,
0.054801356,
0.0566115193,
-0.1741876006,
0.1656809896,
-0.1146258414,
0.4241327345,
-0.0097635612,
0.2932830453,
-0.3459375501,
0.685985744,
0.0520668663,
0.0212307815,
0.0752308294,
0.3377067745,
0.2700015008,
-0.115140982,
-0.1538032442,
0.4489712715,
0.0573422834,
0.125433892,
0.6857694387,
-0.1921603978,
0.3496061265,
-0.1284115911,
0.0318717584,
0.3469434083,
-0.0006148526,
0.2657711208,
0.187875092,
0.1333736777,
-0.0380102322,
0.2506723404,
0.0925961882,
-0.1911727041,
0.2122318447,
-0.1556424201,
-0.1720917374,
-0.1235764697,
0.4104902744,
-0.0062140031,
-0.1908023357,
-0.0735203773,
-0.1987667233,
-0.037657816,
0.1191851795,
-0.2879223824,
0.0572973862,
0.3348960578,
-0.0859451741,
-0.0173966698,
0.1962102205,
0.4637833536,
0.3661141396,
-0.0279388539,
-0.1758414209,
0.2077221125,
-0.0307253245,
-0.0478538424,
-0.0640149191,
0.0621612258,
0.0942826793,
0.2740384936,
0.1305273324,
0.0253583547,
-0.0931049734,
-0.3885851204,
-0.1760837734,
0.204664126,
-0.4924298525,
-0.0846225247,
-0.4646685421,
0.0009308833,
-0.0848414972,
-0.2139747143,
-0.465098083,
-0.0593362674,
-0.0064659906,
-0.0798759088,
-0.1846034974,
-0.1233486906,
-0.1319296658,
0.2060310096,
-0.0101575786,
-0.37514171,
-0.20108518,
0.0916016102,
-0.2265715003,
-0.1003583297,
0.1256130189,
-0.0187425576,
0.3192822635,
-0.4008626044,
-0.1340949535,
-0.3375827372,
-0.1568830311,
0.1196983457,
0.1543839425,
0.2986594439,
0.1002824455,
-0.0388113037,
0.2130710781,
0.027554756,
0.2490251511,
-0.1115021631,
-0.2384190112,
0.2173649073,
-0.126945883,
0.0206024516,
-0.1685040444,
-0.0235136896,
-0.2968159914,
-0.3472933769,
0.1988021284,
0.2847712338,
0.0736465827,
-0.243643567,
0.0452050529,
0.2794007063,
-0.2056297958,
-0.0306541752,
-0.099785991,
-0.4469516277,
0.1976715028,
-0.3998927176,
-0.1846945733,
0.2627225816,
0.162316978,
0.0497270562,
-0.0955394059,
-0.74132967,
-0.542715013,
0.007241379,
0.2825993299,
-0.2767821252,
0.0239465181,
0.1121172234,
-0.0721710995,
0.0861302614,
-0.0010128687,
-0.2558849156,
-0.0224128831,
0.0404695719,
0.2527863979,
0.1034073383,
0.2775857449,
-0.0809155405,
0.5106098056,
0.175375402,
0.2900906801,
0.3952638209,
0.0623344444,
0.348685652,
-0.1234560534,
0.0279972088,
-0.0588811338,
-0.1017154306,
-0.167257607,
0.1642965674,
0.4003347158,
0.0011569567,
-0.3944433033,
-0.7023415565,
-0.2399014086,
-0.2511531413,
-0.3958390355,
0.2358165681,
0.0389194302,
0.1524686068,
-0.1011966392,
0.0648011491,
-0.0949853137,
0.2410160303,
0.3989115953,
0.2297190279,
0.1988520622,
0.0865762904,
0.0221503507,
-0.6100175381,
0.1995535493,
0.0308054648,
0.2061388195,
0.0316681378,
0.1479302645,
0.033029329,
-0.1607429832,
0.1166279763,
0.1354092658,
0.5210431218,
-0.0774561092,
-0.2037371695,
-0.0485220701,
-0.0565959252,
0.0715440959,
0.0715449676,
-0.0739265531,
0.7497162819,
-0.2757320106,
-0.1843093634,
0.1453226954,
-0.2294538766,
-0.0722527504,
-0.4218308032,
-0.3218512237,
-0.4020780325,
-0.2374115288,
-0.0845633745,
-0.1632717103,
0.1329295188,
-0.0823043063,
0.0034866489,
0.3989431262,
0.1448921263,
0.0388555527,
-0.0921776593,
0.3415281773,
-0.2010948211,
-0.0201297794,
0.3490425944,
0.3559368849,
0.3721437752,
0.6303963661,
-0.0740082115,
-0.2629464269,
0.0912152678,
-0.0916443765,
0.1938480735,
0.4522797167,
-0.019824747,
0.0325110964,
0.2730741799,
0.3494528234,
-0.2121814787,
0.0197355468,
0.0629936084,
-0.3600479066,
-0.1444815844,
-0.0917159691,
0.5425668359,
-0.242387712,
0.0203024503,
0.0324035883,
0.6648788452,
-0.2799304128,
0.3975716531,
-0.2922761142,
0.8610055447,
0.1289742142,
0.3152340949,
0.4537092745,
-0.3615629971,
0.2927815318,
-0.6476737857,
0.0116477581,
-0.0709128603,
0.2144026011,
-0.1924669594,
-0.0844998807,
-0.0397075191,
-0.3045713902,
0.0499334857,
0.3462189138,
-0.0580284931,
0.4351763725,
0.2092390358,
-0.0474821739,
0.1175568476,
-0.0445764475,
-0.4515307844,
0.055913277,
-0.1300704926,
0.1149347723,
-0.144942537,
-0.1952134818,
-0.3324147165,
-0.1463121921,
0.0214683339,
0.2302921712,
0.2007447183,
-0.1235349774,
0.1145105138,
-0.4036966562,
0.0324662812,
0.0046579121,
0.0153038343,
0.079642348,
-0.4880468547,
0.1559610963,
-0.2170826644,
0.0957417563,
-0.0138129927,
-0.0523207411,
0.1070038974,
-0.1990109831,
-0.200174123,
-0.0736114159,
-0.176739499,
-0.4683378637,
-0.2065045536,
0.2000974715,
0.0447463579,
-0.1383116245,
0.0786033645,
0.0633990392,
0.1148077771,
-0.1882504374,
0.0761443749,
0.2264970392,
-0.3660919368,
-0.3395538628,
0.1169342622,
-0.2562223375,
-0.0816712752,
0.4282545447,
-0.0658489391,
-0.1398656368,
0.2938951552,
0.0974344686,
-0.0940848663,
-0.1020468101,
-0.0796984509,
0.4889603257,
-0.5784718394,
0.0619342066,
-0.0959529132,
0.098180905,
-0.0985924453,
-0.0332177095,
0.1336443275,
-0.3805674613,
0.1273418218,
-0.5043210983,
-0.1131136864,
0.1486774534,
-0.3034214973,
-0.0561270937,
0.1187533289,
0.1008642614,
-0.0790764466,
-0.3572709262,
-0.2249250859,
0.2928541899,
-0.3823475838,
-0.1863857657,
-0.1235091984,
0.0516401902,
0.2517189384,
0.0905522779,
0.044312302,
0.1776967794,
-0.1890118122,
-0.0639830604,
-0.3440083861,
0.2022431046,
0.0772348419,
-0.1617627591,
0.1021399051,
-0.1355782151,
-0.1508630216,
0.0877780318,
0.071246855,
0.1543179452,
0.0947259739,
-0.2369139791,
0.293066144,
-0.1163525879,
-0.2011566013,
0.4889200628,
0.2483322173,
0.5059655905,
-0.0493223704,
0.066750057,
-0.6707581282,
0.031374447,
0.1665520966,
0.055723235,
0.2788783908,
0.3210636675,
0.6118311286,
-0.5756323338,
0.0329910144,
0.006039599,
0.3109241724,
0.1347319782,
-0.2945575416,
0.0191930179,
0.0429147929,
0.0752070248,
-0.001358394,
-0.2630732656,
0.5856038928,
0.0490426384,
-0.1889055967,
0.0820926279,
0.1229201183,
0.0509718247,
0.0173321851,
0.174579069,
0.4702455103,
0.1420277059,
-0.1721404791,
0.1295569688,
-0.1266870648,
0.282739073,
-0.0844973624,
0.046894528,
-0.0692186132,
0.4968430698,
-0.0335239992,
0.13903822,
-0.0094805025,
0.3376965523,
0.1195748374,
-0.5196661949,
-0.1551904827,
0.0363380723,
0.1979638338,
0.0586452112,
-0.250813514,
0.1738143265,
-0.1820994467,
0.2708266079,
-0.305583775,
-0.0988200605,
-0.0119952355,
0.1081988886,
-0.0961684138,
-0.2348446995,
-0.023699889,
0.0187401101,
-0.0866902173,
-0.1623459458,
-0.2282877117,
0.0780911744,
-0.1180659235,
-0.3563401997,
-0.1524612457,
0.1279535294,
0.0152661158,
-0.0656813458,
0.2394928783,
0.2469675392,
-0.1023221985,
0.070675388,
-0.1640631557,
0.2949669361,
0.1147910878,
0.0527336337,
-0.0553492941,
0.1584404558,
0.068991594,
0.1454928964,
0.2391981781,
0.2414408475,
0.0733423606,
0.1912482828,
0.0854179859,
-0.1016419306,
0.1510268599,
-0.1452054828,
0.3908146918,
-0.2408692539,
0.5807546377,
-0.4651972651,
-0.0101848962,
-0.2176096439,
-0.1564031839,
-0.3127636611,
0.194842875,
0.3365879059,
0.1935873628,
-0.044862397,
-0.0810687765,
0.0199351255,
-0.1868434548,
0.3000535071,
0.5435922146,
0.3429713845,
-0.2879973054,
-0.1429523528,
-0.4444923997,
0.5230224729,
0.0285181887,
-0.033827953,
0.1645575464,
0.2104057521,
-0.2261791527,
-0.0194598511,
0.2304651141,
-0.2229703963,
0.2771525383,
-0.1384963989,
-0.0435583517,
-0.1260958016,
-0.0966975689,
0.0746505335,
-0.0441109799,
-0.2333350182,
0.1888860911,
-0.1680624038,
-0.0500559919,
0.1312601417,
-0.0650350451,
0.0932965875,
-0.2972729504,
0.4525432289,
0.1580043733,
0.0668033659,
0.0957954973,
-0.4487331212,
-0.2434639335,
-0.1833722442,
-0.1389515102,
-0.481564641,
-0.3514605463,
0.1729981005,
-0.1922955811,
0.0325003974,
-0.3576336503,
0.2487706542,
-0.0688279122,
0.1517862231,
-0.1557129174,
0.1815238297,
-0.225921005,
-0.1300968826,
0.2394523472,
0.1117603034,
0.0049150311,
0.1079536676,
-0.1028832868,
-0.0198180173,
0.6600612402,
-0.420956403,
-0.0405637324,
0.0502652749,
0.330349803,
0.1436000615,
-0.4629879594,
-0.2183719426,
0.077838324,
0.238480866,
0.2662730813,
-0.2090524882,
0.208662495,
-0.3058161736,
0.0186631661,
0.0485655069,
0.1629759222,
0.1390304416,
-0.2202226669,
0.4223589301,
-0.0216657557
] |
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.1489496082,
-0.284111619,
-0.0903949291,
0.1460704803,
0.2751776576,
0.0493271276,
0.0770323128,
0.2098800391,
0.2618973553,
0.0594649091,
-0.0856971294,
0.096999228,
0.098621659,
0.2517308891,
0.1167900339,
-0.1429445744,
-0.1188410968,
0.2136434913,
-0.37576437,
0.1028597727,
-0.0300947744,
0.4992607534,
0.0187853463,
-0.0301717594,
-0.3194895685,
0.0158228353,
-0.072543703,
0.3714368939,
-0.0625678226,
-0.2505570948,
0.2042682767,
-0.0081872912,
0.1753682792,
0.2365753949,
-0.0001000679,
-0.0085890424,
0.1501079053,
-0.0443095118,
-0.1311838627,
0.1888654977,
-0.1232580841,
-0.1802767515,
-0.0042729913,
-0.0790975913,
-0.4431521595,
0.1293305755,
0.1493919641,
-0.2958285511,
0.5744665265,
-0.0261676647,
0.3707997203,
0.2814992964,
0.1990785152,
-0.2768567204,
0.1207764,
-0.1539125592,
-0.0656858608,
0.1609665304,
0.091889821,
-0.1530088037,
0.1342795193,
0.4699549377,
0.0848044381,
0.1188218743,
0.285153836,
-0.0147728724,
-0.2164843529,
-0.1598255187,
0.3803758025,
-0.0023825786,
0.3897219896,
-0.2139130682,
-0.183767572,
-0.1025154293,
-0.005080509,
-0.0097251376,
0.1055581123,
-0.011737315,
0.1646524966,
0.3102855086,
0.0797110647,
-0.3766745329,
0.1340938359,
-0.1535578519,
0.1237724796,
0.0248709768,
-0.2039152533,
0.0251799747,
0.2108680457,
-0.0817253888,
-0.3896350265,
0.2301621735,
-0.4329808354,
0.1080719233,
-0.2919596136,
0.0540038459,
0.2727687359,
0.0597482473,
-0.0113161756,
0.1861448139,
0.0120567903,
0.0881807059,
0.2470486909,
0.0937485769,
0.1267061979,
0.2551040947,
0.277736187,
-0.0926356986,
0.294124037,
-0.0005992181,
-0.1350929886,
-0.1442198604,
0.0105527332,
-0.0579529926,
0.1486090124,
-0.023618577,
0.0687815994,
-0.1440521032,
-0.0859179944,
-0.009424787,
0.0210775845,
0.0438706838,
-0.067619957,
0.2988847196,
-0.125108555,
-0.0440159552,
0.1222793907,
-0.0032418629,
-0.1049565747,
-0.1209477037,
-0.4230037034,
0.0173479952,
-0.1510064155,
0.1446429789,
0.2698574662,
-0.282641381,
0.471791774,
-0.0908557326,
-0.14310202,
-0.0054612905,
0.1562078446,
0.1193651855,
-0.1149759069,
0.3126598001,
0.0720781013,
0.2043958455,
0.1971700341,
-0.2255742699,
0.0935301483,
-0.0622499846,
-0.3156173229,
-0.3906930089,
-0.2478711754,
0.2746995687,
-0.2598507106,
0.047659196,
-0.1760028899,
-0.06734851,
0.0220543332,
-0.1317916065,
-0.050973244,
-0.0088437088,
-0.1057489067,
-0.3027727604,
0.3504107594,
0.4563004673,
-0.3841168284,
-0.3124052286,
0.0743109435,
-0.301265806,
-0.2867964804,
0.2582088709,
-0.0690878332,
0.0903623104,
-0.3982503116,
0.3396099806,
0.086900562,
-0.245740518,
-0.4413238764,
0.1408775896,
-0.156109944,
-0.0168533288,
0.0004650744,
0.0846223235,
0.0410564616,
0.1609211415,
-0.0110930866,
0.0727053881,
0.1295701265,
0.1198461205,
-0.293391794,
-0.223423928,
-0.1068688035,
0.1781915128,
-0.0184354205,
0.0480175838,
0.0894298628,
-0.0532663688,
-0.0724115297,
-0.0346955545,
0.1421085,
0.5428277254,
0.3240683973,
0.1759870946,
0.0710827708,
-0.1112198606,
-0.4236650467,
0.2405982316,
0.011083045,
0.199427709,
-0.0727410465,
-0.1040808111,
-0.1806591302,
-0.1200454012,
-0.1043451428,
-0.3273670375,
0.2714443207,
0.2450680882,
0.2367119938,
0.1192796081,
-0.1000405625,
0.531288147,
0.2279619128,
0.1042726338,
-0.5642828345,
0.2393195629,
-0.137259692,
-0.3061444163,
0.0747151896,
0.0397149809,
0.0365928784,
-0.2077721804,
-0.0809380263,
0.503069222,
-0.250952512,
0.1525254399,
0.2653540373,
0.1040039435,
-0.0787996799,
-0.201281324,
0.0443736315,
-0.1353622228,
0.0737980232,
0.0207622051,
0.1207826883,
0.0742132366,
0.0406173691,
-0.0525601208,
0.0079511786,
0.0271905959,
0.1815288365,
-0.1884569526,
-0.1001357585,
-0.1488167346,
0.1305883676,
-0.2202730179,
0.2337646782,
-0.012862308,
-0.1599572897,
0.4027628303,
0.5056482553,
0.1514836699,
0.17035833,
-0.0077865655,
-0.346735388,
-0.0944549292,
0.0424058437,
0.3587122262,
0.5050244927,
0.2802165151,
-0.0021780315,
-0.0187234282,
0.0887213573,
-0.0561167076,
0.100664176,
-0.2698323131,
-0.0591023341,
0.0573709868,
0.1500866413,
-0.1143287718,
-0.361856252,
0.16923666,
-0.1863104403,
0.2012963891,
-0.1493307054,
-0.1143299863,
-0.2247169763,
-0.2197960317,
0.1550289243,
0.0793032944,
-0.2900719047,
-0.1471258104,
0.097943984,
0.0780382752,
0.0648430288,
0.172721386,
0.1401345283,
0.1194719225,
0.0232447907,
0.0420776345,
-0.2549951077,
-0.1949689984,
-0.1610856056,
0.1396797895,
-0.1114572734,
0.0598112196,
0.3552449942,
-0.2490371168,
0.2142371982,
-0.4008229673,
-0.3154815137,
0.0011928169,
-0.101566188,
0.2772091627,
0.3434366584,
0.4804939032,
-0.1362866461,
-0.2463297546,
0.4448932409,
-0.3510623872,
-0.1793383658,
-0.087446779,
0.0341212898,
-0.1851829588,
-0.3269742131,
-0.1720090061,
-0.1625946462,
-0.3666309118,
0.4123757482,
-0.091113314,
-0.0702768788,
-0.0009887209,
-0.0258269757,
0.1959028989,
-0.2662554979,
0.0188398622,
-0.487693876,
-0.5863965154,
0.2309205532,
-0.3134088814,
-0.3265422881,
0.1614694595,
0.1782240719,
0.2323612422,
-0.3869134486,
-0.6166650057,
-0.5167443156,
-0.261787653,
0.2029007226,
-0.2004730403,
0.1902623326,
0.3913961053,
-0.0382908247,
-0.1795982569,
-0.1816893816,
-0.4716684818,
0.2314306051,
0.0114418911,
0.2168355435,
-0.2339809984,
0.3932483196,
0.0465902053,
0.443298012,
0.0131254513,
-0.0416371338,
0.3219984174,
-0.0824591294,
0.4564376175,
-0.2917788625,
-0.3831225038,
0.185781613,
-0.006061262,
0.2260974646,
0.2681301832,
0.1443547606,
0.1405828595,
-0.2879011333,
0.1222022921,
-0.2376621515,
-0.1655716598,
-0.1087881625,
0.1454124749,
-0.0104359258,
0.1099621207,
0.0119747976,
-0.2576725483,
-0.0426460803,
0.3268523514,
0.2962165177,
0.1599029452,
0.1903889179,
-0.4206805825,
-0.1156718954,
-0.4370610416,
0.2657994032,
-0.1600763351,
-0.0160811115,
-0.3290893137,
-0.0653524026,
0.0163334198,
-0.0760551989,
0.7218399048,
-0.2210388929,
-0.0354334451,
-0.0009087791,
0.0285820328,
-0.3047820628,
-0.1213602498,
-0.0297411587,
0.0629952177,
0.472938329,
0.3769615591,
-0.3789211512,
-0.1535687596,
0.1134482026,
-0.052930858,
-0.1644908935,
-0.1424075365,
-0.3487763703,
-0.1971343756,
-0.2680312991,
-0.1303836405,
-0.0994106457,
0.0301685706,
0.2141272277,
0.071319215,
-0.0748287514,
-0.2438514382,
0.0058634277,
0.2063797414,
0.4361850321,
0.0788857788,
0.2069232315,
0.2102938145,
0.339957118,
-0.1238629892,
0.4497173429,
-0.184823826,
-0.0555164479,
0.211620003,
-0.0791399926,
0.0530194044,
0.1041458398,
-0.0876906067,
0.1449715346,
-0.0304717533,
0.415040493,
-0.0847369656,
0.1173211038,
0.2567464113,
0.136357978,
0.0978961065,
-0.0575578511,
0.1750541329,
0.0013881684,
0.0433514751,
0.1693200618,
0.264557749,
-0.1397046298,
0.0899084881,
-0.3566862345,
0.7948887348,
0.0072720065,
-0.0595917739,
0.1683618426,
-0.2669600546,
0.4844326079,
0.0303155147,
0.0382851884,
-0.2218040824,
-0.3330694437,
0.1039325893,
-0.0075712833,
0.0718079731,
-0.0013676008,
-0.289247632,
0.1556918025,
0.0943646282,
0.1527907848,
-0.2376542091,
0.291234076,
-0.0004337757,
-0.0680210143,
-0.0517969243,
0.3398603499,
-0.2662391067,
0.3884879947,
-0.1627097279,
-0.1161806732,
0.1328404397,
-0.1030168012,
-0.2831184268,
-0.0023749415,
-0.3912833333,
0.1674739122,
0.213318646,
0.0145378532,
-0.1710275859,
0.005038362,
0.3181118965,
0.1806622595,
-0.3579664826,
0.1715008169,
0.0942139402,
-0.1630604863,
-0.1737092286,
0.1159994677,
0.19633919,
-0.1118113473,
-0.272613287,
0.037825644,
-0.1886430979,
-0.2516731918,
-0.2021656334,
-0.0079317475,
-0.1417810917,
-0.1820688546,
-0.2065446973,
0.1918257624,
0.0782819465,
-0.1552025825,
0.2192503363,
0.2732063532,
-0.0200239196,
-0.0007665918,
0.0992553383,
-0.2341623455,
-0.1573439837,
0.523573041,
-0.2910882831,
-0.0991075039,
0.3289557695,
0.0550473258,
-0.1744872332,
-0.2369523644,
-0.1459592134,
0.0769428685,
-0.3101458549,
0.0191044714,
0.0729070157,
-0.2128572166,
0.241500929,
-0.0643307418,
0.2172029167,
-0.1466229111,
0.0190265737,
-0.2803138793,
-0.2939015925,
0.1789794862,
0.0187826473,
0.2110982984,
-0.0115305064,
0.077366367,
0.0362938009,
0.2026422918,
-0.4853777289,
0.1817747056,
-0.1482908428,
0.0133207655,
0.4220645726,
-0.2894527912,
0.182763949,
-0.1572647989,
0.2635750771,
0.1009763926,
-0.5141134858,
-0.3665655553,
-0.0135370344,
0.0669628531,
-0.2105908543,
0.018826589,
-0.0643627867,
-0.0037205985,
-0.0521361865,
-0.0427093431,
0.2446481138,
0.034435261,
0.0141833024,
0.1515272558,
0.0893865675,
-0.0311039519,
0.2417569906,
0.082549952,
0.0548415482,
0.0844558403,
-0.0832608417,
-0.0351251587,
-0.2291374654,
0.0378643312,
0.0491032042,
0.113511309,
0.0299335681,
0.2438948452,
0.0428873673,
-0.2724188566,
-0.2917987108,
-0.0545395352,
0.3474993706,
0.001447765,
-0.0882971883,
0.0474029221,
0.0823991895,
0.3787725568,
-0.2625282109,
0.0694128051,
0.2650743723,
0.0131721841,
0.1829775274,
0.105648756,
0.0961885527,
0.0241869912,
0.1539673507,
0.2842823565,
0.5918827057,
-0.2418417633,
-0.0685135126,
-0.0554466024,
-0.1624848992,
-0.2928982377,
0.2425117791,
-0.0054919492,
0.0663072392,
0.1724506915,
-0.0895998478,
0.1781722903,
0.1148403063,
0.2551929355,
0.01399469,
-0.2192768902,
-0.0379599258,
0.1845483035,
-0.1068756133,
0.0447752587,
-0.0614663251,
0.6470043063,
-0.4179857671,
-0.3641884029,
-0.211306408,
0.2803061008,
-0.2529313862,
-0.1189959645,
0.1990023255,
-0.0641166866,
-0.0293624047,
0.0604335554,
0.1364050657,
-0.0747184455,
0.3099991083,
-0.0051318663,
0.0145467697,
-0.184318468,
-0.2600733936,
0.1281091273,
0.0953451395,
-0.0213206094,
0.3233246207,
0.056082461,
-0.2279418856,
-0.0128830308,
0.5119285583,
0.3439207375,
0.1031911001,
-0.0047946689,
0.2766622901,
0.0499534458,
-0.1356281489,
-0.2410328984,
0.2170783132,
0.0172557402,
-0.2678773105,
0.1144607738,
0.291426003,
-0.2709864378,
-0.0314792544,
-0.2785281539,
0.2457700372,
-0.0369521081,
0.1055263355,
-0.2938432097,
-0.1737418473,
-0.1535030752,
0.0162720978,
-0.4971678853,
-0.0921292752,
0.1305256486,
-0.0643551946,
0.0872596055,
-0.3384013772,
0.1706445813,
-0.124982968,
0.5146692991,
0.4026973546,
0.0658306107,
-0.0437744409,
-0.272762835,
-0.6360182166,
0.1922901422,
-0.0027038944,
-0.0223698467,
-0.2565233409,
0.2879669964,
0.0265965145,
-0.0453133993,
0.2262430787,
0.2340508401,
0.0507039316,
-0.1486348063,
-0.4697647095,
0.0955657959,
0.0967520624,
0.0169142652,
0.3438379467,
-0.2005909383,
0.0509592965,
0.0119026536,
0.2370919883,
0.0370290205,
0.0664551705,
-0.1040433943,
-0.1123718843,
0.5082688928,
0.1078959852,
0.067249015,
-0.0397850387,
-0.103502132,
-0.132690832,
-0.397379905,
-0.0432122871,
0.0439192429,
0.1358220577,
0.429340899,
-0.0294462144,
-0.1377387494,
-0.2468766421,
0.1571399122,
0.1699456573,
0.2434619218,
-0.2193081081,
0.0672192499,
0.082271941,
0.0717638507,
0.1030417606,
0.222102955,
-0.0175563414,
0.1006818339,
-0.2025216669,
-0.1591155976,
0.6115165353,
-0.1784409583,
-0.0553497821,
0.0610223338,
0.2773206532,
0.2382976413,
-0.3452547789,
-0.5500256419,
0.0908089727,
0.1909854263,
0.1230885983,
-0.1996170729,
0.363550514,
-0.306410104,
0.1511594355,
0.0829545185,
0.099839516,
0.2783592343,
-0.1304612011,
0.1929551214,
-0.0530242436
] |
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.0967949629,
-0.2115667909,
-0.0807494968,
0.1962109506,
0.3262526691,
0.2369838953,
0.0145859625,
0.2186019719,
0.304212451,
0.0247303843,
0.0359605141,
0.0324180797,
0.0695074722,
0.0254837051,
0.1852319688,
-0.1839707345,
-0.0519990027,
0.2447134107,
-0.2526424527,
0.1134489179,
0.0262399111,
0.5897668004,
-0.0162138809,
-0.0534842014,
-0.4070294499,
0.0637795925,
-0.1067257896,
0.3864387274,
0.0837382153,
-0.309255302,
0.3094594479,
-0.122324504,
0.1665250808,
0.2378735691,
-0.0001069555,
-0.0172671154,
0.1097331494,
-0.0738142133,
-0.2003083229,
0.193640843,
-0.1755623072,
-0.2121768147,
-0.0431489572,
-0.1683143079,
-0.3127230704,
0.2077139765,
0.2080175877,
-0.3602095842,
0.4669824839,
-0.077984944,
0.3034726381,
0.0734519958,
0.187038675,
-0.2253175527,
0.0996841267,
-0.0647169277,
0.0179998633,
0.1627908349,
0.028018564,
-0.0881335437,
0.2278115898,
0.5137566924,
0.0191268418,
0.066894725,
0.3252758086,
0.0058024437,
-0.2148664743,
-0.1175145209,
0.4294654429,
0.0252466388,
0.5012627244,
-0.284591645,
-0.2556747794,
-0.147760272,
0.0607871898,
-0.0376206823,
0.1306269318,
0.0382048786,
0.2402044982,
0.3680465817,
0.1573652029,
-0.4963626266,
0.1782765239,
-0.1671726257,
0.2400635481,
-0.0252190698,
-0.2089726478,
0.0257383604,
-0.0523492284,
0.0602184758,
-0.4202081561,
0.0936180949,
-0.4452361166,
0.2293764204,
-0.338439852,
0.0177126788,
0.1564030051,
0.0586692691,
-0.0672712997,
0.175692752,
-0.0096158879,
-0.0178151634,
0.1846621186,
0.0050518699,
0.1165802255,
0.3475582004,
0.3002184033,
-0.0608563945,
0.2772582769,
-0.034431722,
-0.1126053929,
-0.2116930336,
-0.026766967,
-0.044520326,
0.3394461572,
0.0709250793,
0.0471468456,
-0.1273617446,
-0.074882701,
0.0052471082,
0.0094822347,
0.0462571792,
-0.0173615515,
0.2279711515,
-0.1619675308,
0.0669733435,
0.0752749965,
-0.112076968,
-0.1022966728,
-0.2396531105,
-0.4385360479,
0.0857380405,
-0.14162983,
0.2605869472,
0.2251193374,
-0.3529346287,
0.5194398761,
-0.1544638127,
-0.1339453012,
-0.0671919286,
0.1733883321,
0.0164420251,
-0.111294724,
0.3600180447,
-0.007032224,
0.2911080122,
0.2413915545,
-0.2093444914,
0.0329281986,
0.0017530423,
-0.448535502,
-0.4871954322,
-0.2713923454,
0.2058472633,
-0.3041184843,
0.1193075702,
-0.2237886935,
-0.1324520856,
0.1100723892,
-0.3623008728,
0.066528447,
-0.0316079706,
-0.1814624518,
-0.3980072439,
0.318770647,
0.588807404,
-0.4055523872,
-0.3779485524,
-0.0020707534,
-0.2126723528,
-0.3125274181,
0.2282431722,
-0.0836511627,
0.1937856078,
-0.5655230284,
0.328268826,
0.2421826571,
-0.4067057073,
-0.5046398044,
0.1763454229,
-0.076145485,
0.024231514,
0.0388752408,
0.1862749755,
-0.0485392734,
0.0908515006,
-0.0068642036,
-0.0596246645,
0.0911437273,
0.0738901272,
-0.2160987854,
-0.1852941513,
-0.0194679853,
0.1719610095,
0.1014140248,
0.0600858256,
0.1387095004,
-0.0865883678,
-0.1059984937,
0.0313376747,
0.1604246348,
0.665158987,
0.2728141546,
0.1942803562,
0.1240616292,
-0.1508187801,
-0.4816051424,
0.3217642605,
0.0186106581,
-0.0582427308,
-0.1431979537,
-0.1247108132,
-0.0210406166,
-0.2005501539,
-0.1294280291,
-0.4022966325,
0.1712467819,
0.1458323598,
0.2671713829,
0.1689708382,
-0.0652441159,
0.6422883868,
0.1865051091,
0.0755152255,
-0.5425467491,
0.2478590906,
-0.0030787613,
-0.2368044406,
-0.0396941118,
0.1197548956,
0.0918188244,
-0.1683971286,
-0.1228631884,
0.4949468076,
-0.2293965518,
0.0498527214,
0.3663036823,
0.1016435921,
-0.1042597741,
-0.137436837,
0.0360561162,
-0.1573879272,
0.1217034534,
-0.0146613745,
0.1188350543,
-0.0206108652,
0.0581252128,
-0.1098690405,
-0.0893904939,
0.0144163612,
0.2158410251,
-0.1967653036,
-0.1474704593,
-0.132848978,
0.2166167498,
-0.252722472,
0.2928242087,
0.0272486862,
-0.0646641031,
0.3660410047,
0.5254279971,
0.1012596563,
0.1509117186,
-0.0414988659,
-0.3780706525,
-0.057685338,
0.0197059587,
0.371759057,
0.6975575089,
0.2514446974,
-0.0356978141,
-0.124202624,
0.1776920408,
0.011953068,
0.0613097139,
-0.2530559003,
-0.0369475596,
0.1276065558,
0.1222913116,
0.0318816863,
-0.2021453083,
0.0858172625,
-0.1157990098,
0.1562951505,
-0.0868853331,
-0.0478946231,
-0.2492737621,
-0.2735439837,
0.1308376342,
0.1976593733,
-0.225323379,
-0.1098196134,
0.0344395228,
-0.0506122597,
0.2351566851,
0.1227775961,
0.0337838233,
0.1383574903,
0.0554195084,
-0.0962218344,
-0.2523568273,
-0.1669971347,
-0.1882661283,
0.035055209,
-0.1320617348,
-0.0566253252,
0.3350163102,
-0.3225831687,
0.2025209665,
-0.5201033354,
-0.2556636631,
0.0153616741,
-0.0054266495,
0.1994889528,
0.3850771487,
0.3450614214,
-0.1408618093,
-0.1468840986,
0.4020047188,
-0.3022861481,
-0.1455641538,
-0.038531702,
0.0002109485,
-0.2106549889,
-0.2796367109,
-0.1135792211,
-0.2354620397,
-0.2539644241,
0.2946379483,
-0.1774366349,
-0.1345803291,
-0.0957027376,
-0.1538657248,
0.1646317393,
-0.2699983418,
-0.0264162179,
-0.4716524482,
-0.6318147779,
0.2939576507,
-0.2295249254,
-0.2231515348,
0.2445827127,
0.0589949116,
0.314601779,
-0.3103457391,
-0.6782832742,
-0.4436458051,
-0.222826317,
0.2856235504,
-0.4130557179,
0.1635392904,
0.4808388054,
-0.148803845,
-0.1070155203,
-0.1414727271,
-0.4869021475,
0.0894888863,
0.0037859997,
0.3139514923,
-0.2787531018,
0.4786129594,
0.073376283,
0.5729892254,
0.0530608185,
0.0298598241,
0.2796929479,
0.0171317887,
0.5509271026,
-0.2649047971,
-0.3026597798,
0.2523863018,
-0.0624425225,
0.1633918881,
0.2103695422,
0.1810741872,
0.1441465765,
-0.2752344608,
0.0400384739,
-0.3271703124,
-0.084571369,
-0.1091480851,
0.0389299616,
0.0367597751,
0.1565858126,
-0.044706624,
-0.3745788038,
-0.1370154768,
0.3229599595,
0.4588407278,
0.2946390808,
0.2685697079,
-0.4339429736,
-0.2006482333,
-0.3611644506,
0.2375063747,
-0.0376682393,
-0.0321626551,
-0.246254921,
0.0461241342,
-0.0542898923,
0.0707107857,
0.8077050447,
-0.2146588415,
-0.0551433042,
0.0144534502,
0.0718351603,
-0.2178855389,
-0.1947078854,
0.1727675945,
0.292132169,
0.460299015,
0.3915629089,
-0.2678532898,
-0.2193645239,
0.1635451317,
-0.0171572343,
-0.2304359376,
-0.2725432217,
-0.3794242442,
-0.0390466079,
-0.0797813162,
-0.2582912743,
-0.0535675436,
-0.0432487614,
0.250215739,
0.0968956947,
-0.0923526362,
-0.2009293884,
-0.1086865142,
0.026712168,
0.4955196679,
0.0252678171,
0.1935302615,
0.1733484268,
0.3421191871,
-0.1140534952,
0.3577988446,
-0.2585393488,
-0.1132806763,
0.3245093524,
-0.1598333567,
0.0741033927,
0.086182937,
-0.199303627,
0.1636451036,
0.0218280051,
0.3937489688,
-0.0986722931,
-0.043854285,
0.1909768432,
0.1791539341,
-0.0297383852,
-0.1486718506,
0.1355154663,
0.1121660769,
0.0918470994,
0.2919161618,
0.1278931946,
-0.1780319214,
-0.0020839041,
-0.4114619493,
0.7303281426,
0.0602776445,
0.0234786961,
0.0471578017,
-0.2416366488,
0.6816247702,
-0.1125279889,
0.1529456973,
-0.1582615674,
-0.4088338912,
0.0609310046,
-0.0639160872,
0.1055735201,
0.0336704068,
-0.247538209,
0.3832396865,
0.1345041394,
0.1439775825,
-0.1651837826,
0.213321954,
0.0426834933,
-0.0096134422,
0.0558950566,
0.2382583022,
-0.3472244442,
0.4295881093,
-0.2156780958,
-0.0095856311,
0.1674841046,
-0.0825670883,
-0.3599323034,
-0.0465162657,
-0.4265125394,
0.2485101074,
0.2785872519,
-0.0668643937,
-0.1309327036,
0.0868380442,
0.3556092083,
0.1657104492,
-0.3290106952,
0.2240128368,
0.0849862769,
-0.065754652,
-0.2196587026,
0.0317459591,
0.2520681024,
-0.0553096905,
-0.1571588069,
0.0981687307,
-0.3675018549,
-0.3502757251,
-0.1498158574,
-0.0038483755,
-0.1148571596,
-0.1644685268,
-0.2608120441,
0.1685833484,
0.2005794048,
-0.1329324394,
0.1327245533,
0.3589594066,
-0.0083720936,
-0.0744092688,
-0.031070292,
-0.2876271904,
-0.1363267899,
0.5017423034,
-0.2428724766,
-0.2337964326,
0.3761482239,
-0.0480007567,
-0.2009575218,
-0.1655632406,
-0.0998669118,
0.0081308559,
-0.3345193863,
-0.0508029088,
0.0333761945,
-0.0201608017,
0.2324294895,
-0.3288285732,
0.2337895185,
-0.1422808766,
0.0405847877,
-0.4315919578,
-0.2289017588,
0.1564458609,
-0.0141136199,
0.1237565801,
0.0188665036,
-0.0220025443,
0.0435595773,
0.1835614145,
-0.3920586407,
0.2403356135,
-0.1512727737,
0.0164130069,
0.3780590892,
-0.1453928947,
0.1978183538,
-0.209119916,
0.1878336072,
-0.0070137302,
-0.4165576398,
-0.2812809348,
0.0399882011,
0.1088974699,
-0.3066789806,
0.1190102547,
-0.1023699418,
-0.0167367179,
0.0488018729,
-0.0414369851,
0.2671303451,
0.0853450298,
0.066611208,
0.1731096357,
0.0559291691,
-0.0533679053,
0.0554095581,
0.1705227941,
-0.0602928922,
0.0776352808,
0.0085266894,
0.0390932411,
-0.1214926764,
0.1347724944,
-0.0502776466,
-0.0136816725,
-0.1389730424,
0.1148256436,
0.0675126091,
-0.4156567156,
-0.2959529757,
0.0221164431,
0.2257867903,
-0.1327262372,
-0.199920401,
0.1093710884,
0.1244585738,
0.2931166887,
-0.2306099236,
0.0554578751,
0.4106413424,
0.1473627537,
0.0764011368,
0.0539948121,
0.0977283418,
-0.0133674601,
0.3058975041,
0.2899708748,
0.6977531314,
-0.3106095791,
0.0015330242,
-0.0925405473,
0.033930026,
-0.2071587592,
0.2290630937,
0.0474290885,
-0.0009528179,
0.2722167969,
0.0156160016,
0.1789286882,
0.2054873258,
0.3731602132,
-0.1100726873,
-0.4000132084,
-0.1372211277,
0.2010282129,
-0.2470475435,
-0.0090150917,
-0.0738271847,
0.6431599855,
-0.3798415959,
-0.2961474359,
-0.1248712912,
0.1860908866,
-0.29126665,
-0.0150753874,
0.3056094348,
0.0000539412,
0.1109789982,
0.0460695624,
0.1823923886,
0.032316532,
0.2538015544,
0.0520850569,
-0.0765970796,
-0.0945828632,
-0.2046380341,
0.219426617,
0.1017225534,
-0.0381378941,
0.2479142696,
0.0605675951,
-0.3091119528,
-0.051967632,
0.5426908135,
0.2848141491,
0.0730679706,
0.0074850591,
0.126554817,
0.1710322946,
-0.1292844564,
-0.1871747524,
0.2179502994,
0.0674466193,
-0.3011258841,
-0.0585719086,
0.2554777265,
-0.1615119725,
0.1505519003,
-0.25554654,
0.2517748177,
-0.1435960829,
0.0600672513,
-0.3752919137,
-0.1392557025,
-0.1722236425,
0.2159517556,
-0.4729170799,
-0.0914302766,
0.2356640995,
-0.0140758501,
-0.0139211603,
-0.2724199891,
0.1286889017,
-0.1506767124,
0.3211677074,
0.5002917647,
0.0337833948,
-0.1693238169,
-0.2195381969,
-0.5923279524,
0.2428312153,
0.0272282287,
0.0931199268,
-0.1942408383,
0.2648686171,
-0.0299214236,
-0.0864044875,
0.2662325203,
0.1924626976,
0.0803684518,
-0.0920398235,
-0.4781439304,
-0.0566298887,
0.1173732206,
0.0293790158,
0.2845118642,
-0.2394271493,
0.0562578067,
0.132888183,
0.1510089189,
0.0085604992,
0.0202638954,
-0.0801185966,
0.0257634688,
0.5730305314,
0.1187078282,
0.0600102991,
0.0495250747,
-0.1236979365,
-0.0332174227,
-0.3297728002,
0.1130043939,
0.0761107206,
0.0947506949,
0.3451065421,
-0.244691208,
-0.1119470522,
-0.2737615108,
0.1665124446,
0.1354675591,
0.2840454876,
-0.3247118294,
0.0768090934,
-0.0207882077,
0.1927498728,
0.1993478984,
0.1823451817,
-0.09816809,
0.1080789194,
-0.138554424,
0.0620516054,
0.5860341787,
-0.2508490086,
0.0463203453,
-0.0526145436,
0.3319083452,
0.2783115208,
-0.272885859,
-0.369166106,
0.010499781,
0.3397522271,
0.167730853,
-0.2306314111,
0.3144058883,
-0.3140174747,
0.2389193922,
0.1413287073,
0.045536574,
0.1619601995,
-0.1154981405,
0.1430306286,
-0.116824165
] |
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.4098217487,
-0.2538073659,
0.016455479,
-0.0311614051,
0.3398854733,
-0.057971403,
0.3023079932,
0.0674435869,
-0.2175251842,
0.3773571551,
-0.231050238,
0.2912555635,
-0.1922605634,
0.2657684982,
-0.0942451358,
0.1088106856,
0.077402167,
0.0824447572,
-0.4071668983,
-0.025976425,
-0.225734815,
-0.0934465006,
-0.5538958311,
-0.249430418,
-0.0387424454,
-0.1291294098,
0.0840011686,
0.0690733865,
-0.2499088794,
-0.1048585996,
0.115721792,
0.546689868,
-0.066616565,
0.4911214113,
-0.0001046605,
-0.0466863103,
0.2209417522,
-0.1478953958,
-0.1971085519,
-0.0162348505,
-0.2287011743,
0.361631602,
-0.1729204059,
-0.0470903777,
-0.1105784625,
-0.3326944411,
0.0179092437,
-0.3529171944,
0.1090985686,
-0.0607380755,
0.2504821122,
0.1520521939,
-0.1833849847,
-0.0110957362,
0.3300375938,
0.160201475,
-0.1887401193,
0.2795751095,
0.3021202683,
0.1214005575,
-0.0215309244,
0.3396959305,
-0.0457588471,
0.097307235,
0.2876346409,
-0.1221550331,
-0.0756910443,
-0.405592531,
0.162907511,
0.1327943057,
0.4041189849,
-0.3270387053,
-0.2338448912,
-0.3728273213,
0.0683639795,
-0.2494539768,
0.1298159957,
-0.0826159343,
-0.1251390278,
-0.11274454,
-0.4295095205,
0.1275166124,
-0.013584258,
-0.0339327455,
0.5006250739,
0.4225342572,
-0.1381252259,
0.1263806522,
0.2588518262,
-0.2066312581,
0.4659804106,
-0.0802470073,
-0.2135605663,
0.3368563056,
-0.4075316489,
-0.1301375777,
0.1735796928,
0.2387516797,
0.3460848331,
0.0446175672,
0.2171568871,
0.2294620872,
0.1571500003,
0.0546242222,
0.4331028759,
0.0627880692,
-0.0688363537,
0.0454046763,
0.1574961096,
0.305814594,
0.0237277783,
-0.0249250587,
0.2888554931,
-0.0860853046,
0.0023558049,
-0.0567301959,
0.1077043787,
-0.1669804454,
-0.0952628329,
-0.3858784735,
-0.1767879128,
-0.1537870765,
0.2711010575,
0.3885038495,
0.0594843999,
0.0154895028,
-0.3158891499,
0.2343374938,
0.0019728178,
0.1345427185,
-0.263230145,
-0.2480550408,
-0.2327020913,
0.0905817598,
0.2369068861,
-0.4453911185,
0.3494921923,
0.3258510828,
0.0771217495,
0.0918582231,
0.1089508608,
-0.1570502371,
0.2872882187,
0.0994779393,
0.0974387378,
0.0569832027,
0.121300064,
0.1756843776,
0.0762385353,
0.0880064517,
-0.0508970581,
-0.0789757222,
0.402525574,
0.2578458488,
-0.187002942,
-0.0908628404,
-0.5048837662,
0.1181118265,
0.0382431746,
-0.3109931946,
0.1444635689,
-0.271210283,
0.0033718869,
-0.2548607886,
0.1507636458,
0.1824268848,
0.0524110571,
-0.090798825,
0.0347352177,
-0.2587923706,
0.6150116324,
0.4008066952,
-0.2116877437,
0.0417139418,
-0.2732913196,
0.0779406503,
0.1313036233,
0.1164887175,
-0.3975090981,
0.1741446555,
-0.1221159101,
0.4353639483,
0.0598931126,
0.0428745411,
0.3480427861,
-0.1915025264,
0.2754981816,
0.2648024559,
-0.2541203499,
0.2964874506,
-0.1950290948,
-0.0763326436,
-0.0320449732,
0.0939138457,
-0.2064950764,
0.3401971757,
0.123037748,
-0.1803275496,
0.316827029,
-0.2674481273,
0.1347769946,
-0.0228714645,
0.282508105,
0.096134603,
-0.0171808507,
-0.1778332293,
-0.2438287735,
0.0989341214,
0.1635683924,
-0.0619949773,
-0.0031121073,
-0.3148007691,
0.161525175,
-0.1159020588,
-0.489049077,
-0.213338986,
0.2111129463,
0.2268391848,
0.0447983854,
-0.1561160833,
-0.1767095327,
0.0718604326,
-0.2924747169,
-0.1943626255,
-0.3770168126,
-0.094328627,
0.113674812,
-0.2265724987,
0.15984115,
0.1384001821,
0.1202635542,
-0.1816588044,
-0.0854528025,
0.455249995,
-0.0204100832,
0.0224799719,
-0.047161635,
0.2453851998,
-0.109588176,
0.0012363439,
-0.1277894974,
-0.0703823119,
0.2200998515,
-0.1837348044,
-0.0583240129,
0.4448705018,
-0.4544275403,
0.2487808168,
0.232684508,
-0.2751171291,
0.4183247089,
0.2991347015,
-0.2019591033,
-0.1013118178,
0.0643188283,
-0.1856443137,
0.1916487962,
0.0225363858,
-0.3827548027,
0.0753572285,
0.4850610197,
0.1322099417,
-0.1092716455,
-0.0830766112,
-0.1139727756,
-0.278262049,
-0.0191042423,
0.3351630569,
0.4067939818,
0.2389632612,
0.2084312588,
0.1073292568,
0.1976168752,
-0.1879749298,
0.1229330674,
0.0111797452,
0.1723272949,
0.2312593758,
0.1828303039,
-0.1218915507,
-0.4867264926,
-0.3557831645,
0.088569358,
0.3144855499,
-0.21189107,
-0.2529518604,
-0.1668186933,
-0.2122496814,
-0.1276165694,
-0.2103354782,
-0.083176747,
-0.2203660607,
0.1369230002,
0.7543540001,
-0.1674435586,
0.2527230978,
0.3151093125,
0.141162008,
-0.0560660921,
-0.0997978672,
-0.1466866881,
-0.0236520991,
-0.0085364459,
0.1970877051,
0.1575424522,
-0.1427106112,
0.356376946,
-0.0000348763,
-0.3080058396,
-0.3034622669,
0.1307912916,
0.0878002718,
-0.1911068559,
0.0158844925,
0.0466463715,
0.1843951643,
-0.0100605441,
-0.2569463849,
0.2034882754,
-0.417111963,
-0.0513278842,
0.0685134903,
-0.1702583283,
-0.0884041339,
-0.2802340388,
-0.0983252451,
-0.1416513473,
-0.3688465059,
0.2363347411,
-0.1134563386,
0.0388992205,
0.2580616176,
-0.0042468826,
-0.116441533,
-0.1947188824,
-0.2532931864,
-0.3594523966,
-0.6516541839,
0.0104263183,
-0.2006955743,
-0.2527258098,
0.0317443162,
0.1986942291,
0.1780182421,
0.63959378,
-0.0322558694,
0.1754577905,
-0.1056495309,
0.0781790242,
-0.0048311702,
0.1112319827,
0.4022189379,
0.0161643364,
-0.1008444428,
-0.2005632669,
-0.0300821532,
0.1122006252,
0.0311470833,
0.2318634689,
0.1879941672,
0.4561057985,
-0.0550171062,
0.9363188744,
0.1427910924,
0.1208269522,
0.3089776337,
-0.0406129509,
0.2949369848,
-0.3398708105,
-0.1727133542,
0.4189914465,
0.1589231789,
-0.2530125976,
0.2699563205,
-0.1785174906,
-0.34807989,
-0.1428568512,
0.1436567456,
-0.00006333,
-0.0704254955,
0.2039436847,
0.1525276154,
0.2158191949,
0.0193441585,
0.1884663999,
-0.1212710217,
-0.0508086123,
-0.2181769311,
-0.0350105837,
0.3387904167,
-0.0903511718,
-0.4391954839,
-0.3892983794,
-0.4123508036,
0.066766575,
0.0623016767,
0.5975310802,
-0.1478611082,
-0.1179701164,
0.2101562768,
0.1820257306,
0.571148634,
-0.447050184,
-0.1075443476,
0.1274788529,
0.0622725189,
-0.095015645,
-0.1538404375,
-0.2738077343,
0.210986495,
0.0970170349,
0.2901655436,
-0.2299704552,
0.0009558847,
-0.0570669547,
-0.0818059817,
0.1513828933,
-0.0959706828,
-0.2688919008,
-0.2532069087,
-0.2367136031,
0.1879084706,
0.0725013614,
0.0114183156,
-0.2773071826,
-0.0387119651,
0.0183906239,
0.2690772712,
-0.121625483,
0.34072721,
0.1726689786,
0.2733711004,
0.1691564023,
0.3852129579,
-0.0037224281,
0.3598809242,
0.193072468,
0.2869406939,
-0.1482042819,
0.170037806,
-0.0655322075,
0.1006538048,
0.2456901222,
-0.1561160982,
0.1534906775,
0.1478285342,
0.2866062224,
-0.1028926522,
-0.2666448653,
0.3975701332,
-0.0696271509,
-0.4378697574,
-0.8425217867,
0.1484264284,
0.0468964241,
-0.1386061013,
0.5356469154,
-0.3040625155,
-0.1331493556,
0.3750419915,
-0.1486594379,
0.6218428612,
-0.0143623864,
-0.1162522286,
0.3653719127,
0.2237396687,
0.128084898,
-0.0105896704,
0.3386749029,
-0.096194692,
-0.5596521497,
0.1815622598,
-0.1051484644,
0.0270033814,
0.0661650077,
-0.2295010686,
0.2785799503,
-0.0691476613,
0.1658454388,
-0.1683229357,
-0.190836966,
-0.2544880211,
-0.3233904243,
-0.3023684025,
0.2215272188,
-0.0260744039,
0.0651986375,
0.0785661563,
-0.0854967162,
0.0607560538,
0.0981946066,
-0.1658930033,
0.1918344349,
-0.2944270372,
-0.1783637106,
-0.3193566799,
0.161961779,
0.0704472661,
0.01235562,
0.0561571941,
0.0476908647,
-0.0944444984,
0.1550247222,
0.33363083,
0.2662809491,
-0.1004924774,
0.0957869068,
0.1077768058,
-0.0701817423,
-0.0577212498,
0.0543719009,
0.130661577,
-0.375749737,
-0.345050633,
-0.182201609,
0.2062251866,
-0.1429492533,
-0.1285930574,
0.0668809488,
-0.0323938839,
-0.2168658227,
0.1690602303,
-0.0859127492,
-0.1933258772,
0.4004817605,
-0.2756023109,
-0.0968621373,
-0.2272104621,
0.3841653168,
0.2000458539,
0.1802434921,
0.3196737766,
-0.0627439916,
-0.1752789766,
-0.2885639668,
-0.1654692143,
-0.122865364,
-0.1576548815,
0.1163399965,
0.1648498178,
0.0324889198,
0.0459674373,
0.2720926106,
-0.2012594789,
0.1393442899,
-0.3060133755,
-0.1747598648,
-0.3050635159,
0.0089876717,
0.0825862736,
0.1315064132,
-0.0871794,
0.227468282,
0.0897244513,
-0.1020628288,
-0.4125231802,
-0.3236413002,
-0.0959168151,
0.1910415143,
0.0058485745,
0.029074993,
0.2106626183,
-0.0281094071,
0.1836046726,
0.1174014509,
-0.2297207564,
-0.2758111656,
0.1535897702,
0.0850452781,
0.1756462753,
-0.0935230553,
-0.0710834116,
-0.217716068,
-0.5254062414,
-0.2647675574,
0.4250844717,
0.1822078228,
0.0167898741,
-0.1717598736,
0.465592742,
0.0090397848,
0.0640561879,
0.0469966903,
-0.1677905619,
-0.4819276631,
-0.0941470712,
-0.1503873914,
-0.1886017174,
-0.2323781401,
-0.1075756922,
-0.0179500747,
0.2478491664,
0.3136832714,
0.1901550144,
-0.2606304586,
0.0899416655,
0.2874259353,
0.4517201185,
0.5097647905,
0.0900294408,
-0.4366598427,
0.2320919633,
0.2794462442,
-0.1522327662,
-0.155415073,
-0.0217235852,
0.0845893919,
0.2006820142,
0.09547133,
-0.1406143755,
-0.2623805404,
0.0018221285,
0.066746816,
0.2619026899,
-0.4957254529,
0.2348490506,
0.0708036497,
0.0209592842,
-0.081022732,
0.226628229,
0.0962516591,
-0.006023414,
0.3671916127,
-0.0813911036,
0.2392350286,
0.2457405031,
-0.0151901394,
-0.0518162511,
-0.5209728479,
-0.1195380315,
0.5239409804,
-0.1321075559,
0.4228529632,
0.125311628,
0.0202692188,
-0.2050748467,
0.0062796469,
-0.0397868976,
0.0353533886,
-0.1845469475,
-0.0327134319,
-0.0692919865,
-0.2562201023,
-0.0385798365,
0.0194982532,
-0.0797346234,
0.247082293,
0.2956744134,
-0.1761795431,
-0.0751433298,
-0.4886921346,
-0.0132665494,
0.1551082283,
0.403470248,
-0.1090623885,
0.0698335245,
-0.1169679761,
0.0588614419,
0.2569010258,
0.3191128671,
0.1653281152,
0.3827477992,
0.1881954521,
0.1194789112,
-0.135776788,
-0.1633860767,
-0.1559185088,
0.2363308966,
0.1890112907,
-0.0869611502,
0.2447089404,
0.2143071741,
-0.1717332453,
0.0415580049,
0.0931634381,
0.2078004628,
0.0550416894,
-0.0129985716,
-0.1015729234,
0.0064410339,
0.0086366851,
-0.0451540351,
-0.3146966696,
-0.0214763451,
-0.0340610854,
-0.1987436712,
0.1235641167,
-0.2202577591,
0.1245720014,
0.0243968386,
0.4130277932,
0.1606730074,
-0.3146050572,
-0.1001112461,
-0.3307813406,
-0.5856947303,
-0.0620808676,
-0.0364676304,
0.1141978055,
0.0643222108,
0.3521090448,
0.0763247386,
-0.040760763,
-0.0060288017,
-0.007385375,
-0.1809277683,
0.5266049504,
-0.2156368792,
-0.0458277166,
-0.3805634379,
0.1204198524,
0.1375428289,
-0.2747383118,
0.278475076,
-0.0980339572,
0.1694283187,
0.1234323084,
0.2686365247,
-0.0671864524,
-0.3670602441,
0.0654964447,
0.1954610944,
0.0584269613,
-0.1546787173,
0.17120184,
-0.2905959189,
-0.2137199491,
-0.3174711466,
-0.0259920992,
0.1941357702,
0.40240556,
0.1754822582,
-0.0857535601,
-0.3212848008,
0.1749438792,
0.1112527028,
0.1403627098,
-0.2917777002,
0.3752897084,
0.0799081624,
0.2514568567,
-0.1469298452,
0.0690482482,
-0.0965512693,
0.0188272744,
-0.3619236946,
-0.3267614245,
0.6507822275,
-0.3065680861,
-0.308731705,
-0.1929969341,
0.3111168444,
0.151048094,
-0.1815506816,
-0.1616996527,
0.3057673275,
0.171414569,
-0.077444233,
0.0539454632,
0.2937751412,
-0.2106449008,
0.0878426209,
-0.1030067056,
0.0475121886,
0.1259878576,
-0.3081819415,
0.3053464592,
-0.21042189
] |
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.0413543284,
-0.5577721,
-0.1589673162,
0.3919741809,
0.2053750902,
-0.0639247671,
-0.0737591982,
0.0503647439,
0.1064481661,
0.0798684135,
-0.4394701719,
0.0881781131,
-0.0656971186,
0.4548651576,
0.0609380044,
0.0388586968,
-0.2295208722,
-0.1126658022,
-0.1492429227,
-0.2198023498,
0.0234506335,
0.2798556387,
0.2534017265,
-0.0295910314,
-0.0154504105,
0.121482119,
-0.2544065416,
0.2946002781,
-0.544805944,
-0.216855377,
0.1625062972,
-0.0575585701,
0.1592408717,
-0.021005692,
-0.0001038513,
-0.0647774264,
0.108095631,
-0.2295951694,
-0.3205727637,
-0.0383348875,
0.0025482057,
-0.3959293962,
0.1042665169,
-0.0850446597,
-0.1412746906,
-0.1166360974,
0.0335714631,
-0.1261950433,
0.4541440606,
0.0918546766,
0.273373872,
0.4500877261,
0.1584029943,
-0.1389548481,
0.0338329226,
0.4866324961,
0.0143969813,
0.2679380774,
0.3840730488,
0.3003026843,
-0.0922308937,
0.4050793946,
0.2523311973,
-0.0259290803,
0.260145545,
0.0314367488,
-0.3214986324,
-0.137087822,
0.1025048047,
0.4285007119,
0.1674050242,
-0.3730249703,
-0.5177248716,
-0.4534082413,
0.1588494778,
-0.2547272146,
0.0493002012,
0.2319036424,
0.0301974528,
0.1767473519,
-0.2547949255,
-0.1507338732,
-0.2382446378,
-0.024006607,
-0.1776671708,
0.0789702162,
-0.2915143669,
-0.118530497,
0.0026720876,
-0.4049320221,
-0.6295154691,
0.0317046456,
-0.112076439,
0.2041806132,
-0.1458258778,
-0.3822923601,
0.3146908879,
0.2405805886,
0.5023841262,
0.1578406394,
0.0075037805,
0.1524951309,
0.0011088654,
0.1947937608,
0.1977787614,
0.3022005558,
0.3661187291,
-0.0779797584,
0.1031198427,
0.0316858254,
0.1499067247,
-0.1356848627,
-0.2137385458,
0.0816756114,
-0.3636179864,
-0.2070540935,
0.0226011612,
-0.1112505719,
-0.0727839395,
-0.009966136,
0.176428467,
0.0235270858,
0.0794335753,
0.4399183095,
0.0285254139,
0.011436386,
-0.0948271006,
0.2278682739,
0.1659280211,
-0.2580324709,
-0.1681975573,
0.0100567285,
-0.0577120595,
0.139585048,
0.0128062312,
-0.3011855483,
0.393486917,
-0.1103335992,
0.1721937209,
-0.049996715,
-0.0783385485,
0.0496040806,
0.1866594106,
0.0405115634,
0.0921570957,
-0.2169887871,
0.0278593637,
-0.1454955488,
-0.3767352402,
-0.2053823769,
-0.1997886002,
-0.2601393163,
-0.4404107332,
0.2663024068,
-0.2347162813,
-0.0646483302,
-0.4436701536,
0.3297383487,
-0.1481903195,
0.1381038129,
0.0043476243,
0.0898581445,
-0.0293878317,
-0.1064033508,
0.0048886263,
0.2305943966,
-0.0331625417,
-0.275741756,
-0.0361058265,
-0.2553454638,
-0.2473156005,
0.4085280895,
-0.0546534695,
-0.2784496844,
-0.109967187,
0.2847640216,
0.3449615836,
-0.4075215161,
-0.0638780147,
0.2323250175,
0.0420696177,
0.0920106843,
0.0441860631,
0.0051908973,
0.229590252,
0.1645947397,
0.0175023228,
0.3218151331,
-0.1843338311,
0.1228393614,
-0.106668815,
-0.4086618125,
-0.1758041531,
0.1705349237,
0.0425584763,
-0.3353560865,
0.2083472908,
0.0844618902,
0.2212420553,
-0.1525699347,
0.0652610362,
0.2249131501,
-0.0162418373,
-0.0485725254,
0.0501228757,
-0.1123518869,
-0.6196359992,
0.1310897917,
-0.0196531303,
0.2372086942,
-0.0399619564,
-0.4177995026,
-0.3142911792,
0.155238986,
0.0596920177,
-0.0916104764,
0.2139571607,
-0.0335058682,
0.2626997828,
-0.0538792387,
-0.1323898733,
-0.0153965931,
-0.1248898283,
0.2994819283,
-0.6840797663,
0.0677036121,
-0.0187637489,
0.0317227319,
0.163961798,
0.1434710324,
-0.2023172975,
-0.0474745668,
0.0281767044,
0.0756472722,
-0.1749102026,
0.4565301239,
0.260379374,
0.4778716862,
0.2401756644,
-0.0033623814,
0.2902506888,
-0.1425657868,
0.0222380068,
0.1272931695,
-0.5046001077,
0.5015557408,
0.3156275451,
-0.0389140286,
0.0748621598,
-0.0589891113,
0.0190480184,
-0.0133137815,
-0.2305651456,
-0.3546415865,
0.0251253732,
-0.0404180847,
0.2994697392,
0.0617634989,
-0.3438565433,
0.06254787,
0.5101700425,
0.0132960286,
-0.0046374183,
0.3452257812,
-0.3160441816,
-0.2252224386,
0.209577322,
0.055681292,
0.1830605119,
0.3736016452,
0.1089994088,
0.1292484254,
0.2113346756,
-0.0286115538,
0.1002286077,
0.1177816167,
-0.0578758866,
0.0437695757,
0.3493605554,
-0.0645664111,
-0.4000747502,
-0.1172628179,
-0.2899731994,
0.0852836296,
-0.2282989919,
-0.0175708123,
-0.1347499788,
-0.3644796014,
-0.1586054862,
-0.0990819335,
-0.5645573735,
-0.2226260155,
0.1855561882,
-0.2478719354,
-0.3137247264,
-0.2181921005,
0.1011983529,
0.2453226596,
-0.0683198422,
0.0089633092,
-0.0908100829,
-0.0856579542,
-0.010182796,
0.1782535911,
0.177680254,
0.0589755252,
0.3929872513,
-0.2609722316,
0.1044503599,
0.0062724496,
-0.5086253881,
0.271772325,
-0.1840401143,
0.1842018068,
0.0771673769,
0.1117585748,
0.0895385221,
0.0349556543,
0.1722739786,
-0.000750804,
-0.3836701214,
-0.0939415917,
-0.008097549,
0.1394446194,
-0.1613655835,
-0.1860437989,
-0.3122625947,
-0.3296838105,
0.3015921712,
0.0786695182,
0.2122534066,
0.2112790495,
-0.0106811598,
0.1425529867,
-0.1424603611,
0.0097212633,
-0.3036103845,
-0.4350681901,
0.2735944092,
-0.4120612442,
-0.1951002479,
-0.0573082156,
0.0915092453,
0.201204583,
-0.2210040241,
-0.1597383171,
-0.539400816,
-0.1228955388,
-0.0279829707,
0.1173580661,
0.0357880257,
0.255787611,
-0.1290500313,
-0.1456703544,
0.0228044037,
-0.2735740244,
-0.055673223,
0.2504129708,
0.0304262415,
-0.2115629017,
0.2764236927,
0.1665294617,
0.2871810198,
0.2273593992,
-0.2123127729,
0.1203335449,
-0.1358998269,
0.2125935107,
0.0071703568,
-0.0339481533,
0.2497866899,
0.1192169189,
0.0755947679,
0.4831531942,
0.3956525326,
0.2829973698,
0.023087129,
-0.0926343724,
-0.1653816849,
-0.1985622942,
0.3444508314,
0.2088208199,
-0.1278043389,
-0.0347604156,
-0.0861574709,
-0.1628299206,
-0.1396649927,
-0.1885164082,
0.3137393296,
0.0045146775,
0.1377197057,
-0.5218558908,
-0.101599142,
-0.2448655367,
0.575068891,
-0.0382527933,
-0.3285717368,
-0.0430595987,
-0.2700400949,
0.126856789,
0.0676165074,
0.0229026992,
-0.0856689364,
-0.3362783492,
-0.1821861863,
-0.2599522173,
-0.3137335479,
0.2416992038,
0.0095344139,
-0.1177257895,
0.4289166927,
0.4547969401,
-0.5648525357,
-0.2424125224,
0.1274434179,
0.2162188888,
-0.1528227925,
-0.0360644162,
-0.146242246,
-0.0884625837,
-0.4926461577,
0.0405903235,
0.0551719591,
0.1614612937,
0.0294254143,
0.0009250128,
0.0585435741,
0.0606931895,
0.4050000608,
0.605887711,
0.1253753453,
0.1370280236,
-0.1399499625,
0.1495874524,
0.4613375962,
0.2738896608,
0.6469153762,
0.1012864262,
-0.1358735412,
0.0203397851,
0.0402214974,
0.2384431213,
0.3605232537,
0.1815389246,
-0.0088939369,
0.0315246098,
0.1655165255,
-0.3032900691,
0.1003597975,
-0.0485510454,
0.0017777273,
-0.1444617212,
0.0508657657,
0.4109842479,
-0.049149625,
0.0982715115,
0.1295281351,
0.3705093265,
-0.206934616,
0.2141833752,
0.0672579929,
1.064089179,
-0.2176129967,
0.1019982845,
0.0588851646,
-0.1937705278,
0.4219007194,
-0.0598733649,
-0.0264883861,
-0.2077643424,
0.2569037974,
0.1574484259,
0.1491709799,
0.145873487,
0.0992430523,
-0.1668530256,
0.057448972,
0.0623663068,
0.1175972149,
-0.3965122998,
0.5909297466,
-0.4135977328,
-0.52952981,
-0.5926879048,
0.2633858621,
-0.0888000578,
0.3599305451,
0.0462487563,
-0.2781266272,
-0.1870383918,
-0.2317662984,
-0.3549025059,
-0.1536561847,
-0.0324335285,
-0.2425076365,
0.1593876183,
-0.3184925616,
0.0122611839,
0.3286584914,
0.0820261613,
0.1905646175,
-0.2280524671,
0.1592798531,
-0.5026183724,
0.1174360588,
0.1281570345,
-0.0831606239,
0.095884636,
-0.1782920808,
0.0170135293,
0.0572191179,
0.315084368,
0.0120744184,
-0.004442052,
-0.0037433729,
-0.2274230272,
-0.2892986536,
-0.0151894558,
-0.0078869713,
0.0582144447,
-0.0911118612,
0.1713141054,
0.1977209747,
0.0618447773,
-0.0394438058,
0.3849597573,
-0.0977168903,
-0.2396052331,
0.226436913,
-0.0940745696,
-0.3045297563,
0.0304969139,
0.144784078,
-0.0074710189,
-0.1658855677,
0.2489942014,
0.3029515147,
-0.3718909919,
-0.0993819386,
0.0348032638,
-0.228468582,
-0.0984033346,
0.1012172028,
0.2532755435,
0.0787535533,
0.2638925612,
-0.1840362549,
-0.3771270812,
0.4878147542,
-0.0138028022,
0.1850368083,
-0.2188995332,
0.0506912321,
0.0482548848,
0.403939873,
-0.4329450428,
0.0922192037,
-0.2767198086,
-0.0288183726,
0.3223300278,
0.0294947084,
0.396838218,
-0.17653808,
0.0903924182,
0.0157620423,
-0.2969458997,
-0.2389742434,
-0.1329905242,
0.0942662805,
-0.0950659364,
0.2489352822,
0.0663094148,
0.1162625477,
-0.0040642074,
-0.2708456516,
0.3166066408,
0.1042489335,
0.1591234356,
0.0767233446,
-0.0698435456,
0.0723240525,
0.1301009357,
-0.0857836455,
0.3456185162,
0.3020139635,
0.0362832509,
0.0966207683,
-0.2138933241,
-0.1111758128,
0.1031235009,
0.2083468288,
0.2305242121,
0.0727462843,
0.092194885,
0.2423122674,
-0.2250279188,
0.2563062906,
0.3816104531,
0.0709068477,
-0.1218112558,
0.2718302608,
-0.0183460303,
0.2761362791,
-0.1224985346,
0.1581380218,
0.183390379,
-0.0879192054,
0.1031723991,
0.3402596414,
0.1969466507,
0.4780898392,
0.2556493282,
0.0159265585,
0.3624540567,
0.0430256575,
-0.0120076397,
-0.0018359108,
-0.1979350001,
-0.064285703,
0.4485366046,
0.2068795413,
0.5565652251,
-0.1806065738,
-0.3229587078,
0.202627182,
-0.1447532773,
0.1746145934,
0.3417482376,
-0.2067809403,
-0.2872589827,
0.1873377711,
0.3389519751,
0.2000152916,
0.1048680246,
0.4568771422,
0.1618061066,
-0.3141471744,
-0.2933791578,
0.4585604966,
-0.0922619924,
-0.083577849,
0.0667583123,
-0.2180444002,
-0.3744446039,
0.0384052731,
-0.0629544035,
-0.4746852517,
0.1443571299,
-0.0760227665,
0.1167379096,
-0.250304997,
-0.087576054,
0.0984770581,
0.0628846735,
-0.2830204964,
0.1778155267,
0.2792691886,
0.0524338596,
0.1525217295,
0.2958323956,
0.303870827,
-0.1640508026,
0.1301805526,
0.3555206954,
-0.0374775343,
-0.099104315,
-0.2428994328,
-0.0109764691,
0.0800497159,
-0.0562435128,
0.3106295764,
0.2558508515,
-0.2411569953,
-0.199571088,
-0.3234943151,
0.0794744045,
0.0139729884,
0.326338172,
-0.0467858016,
-0.0423298888,
-0.3483893871,
-0.2470827699,
-0.4944188595,
0.0992263258,
-0.0236443095,
0.1314778179,
0.0442097001,
-0.245754227,
0.1170220301,
0.1964771897,
0.2438387722,
0.5422877669,
0.0034236319,
-0.0112322401,
-0.2232895941,
-0.4496416152,
0.068688795,
0.0492492989,
-0.144225046,
0.0065492913,
0.3821817636,
0.2754144073,
0.1455075443,
-0.1040342003,
-0.2930577099,
-0.011830098,
0.0118321534,
-0.317343086,
0.1339320242,
-0.0657761395,
-0.1426741779,
0.285906136,
0.0234383605,
0.0873940587,
-0.2667748928,
0.0612366684,
-0.360788703,
0.2922793627,
-0.1789943278,
-0.1232885346,
0.2861503959,
0.0752060935,
0.1630211174,
-0.2596971095,
-0.1424850523,
-0.1944016814,
-0.2954749763,
-0.2570571601,
0.423702687,
-0.0181252323,
0.3955464065,
-0.0450450554,
-0.2638508976,
-0.1138284802,
0.010052396,
-0.0870559737,
-0.2136552334,
0.0140523016,
0.1094870642,
-0.0256688427,
-0.1050350368,
-0.005402544,
0.2724954784,
0.0359711051,
-0.068093501,
-0.0653141662,
-0.3072282374,
0.5054528117,
-0.0257779714,
-0.0580166951,
0.0878132209,
0.2606491148,
0.4709809124,
-0.1615628302,
-0.6479045153,
0.4406296909,
0.2577060461,
0.1593431085,
0.0267740302,
0.1952491701,
0.0265609156,
-0.136266157,
-0.2946957052,
-0.1092555523,
0.1015441418,
-0.2585722506,
-0.0192037206,
-0.1878204048
] |
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.275123626,
-0.2970445156,
0.0208110008,
0.4673910141,
-0.0559450611,
0.0520152375,
-0.0117357597,
-0.2991321981,
-0.2569103837,
-0.21867311,
0.0983798057,
0.3813359439,
-0.1071818694,
0.2050388157,
0.1961680651,
-0.0721682981,
0.1684130281,
-0.1887158453,
0.3061253428,
-0.1100959405,
-0.3069910407,
0.3437999785,
-0.2482837886,
0.4954277873,
-0.376237154,
-0.0859183744,
-0.186940819,
-0.1539732069,
-0.4046432674,
-0.5950915813,
0.2896219492,
0.1556393206,
0.0723899901,
-0.0579098351,
-0.0001202807,
-0.246078074,
0.028519379,
-0.1889370382,
-0.122404851,
-0.1234155372,
-0.092630215,
-0.2060734928,
0.2835663259,
-0.0094312904,
-0.1429478079,
-0.1868062764,
0.2751157284,
0.5176039934,
-0.2508014143,
0.1197168902,
0.0497633144,
-0.1621631384,
0.2689090967,
0.028813282,
0.3519519866,
0.0908358246,
-0.1232599542,
0.3104260564,
0.4276799262,
-0.0534058847,
-0.2571891546,
0.462760061,
0.0963758826,
-0.282025218,
0.2589054406,
0.2285993993,
0.335866034,
-0.4192576706,
-0.130167231,
0.3817868233,
0.2516931295,
0.1147547215,
-0.215410471,
-0.0157398619,
-0.0526016094,
-0.6351477504,
0.0023944594,
0.4393248558,
0.0330131426,
0.0414247662,
-0.0036088815,
0.1708149314,
-0.2163024843,
0.0360444561,
-0.094990246,
0.6974464059,
-0.1429925561,
-0.1101660132,
-0.0203674864,
-0.0645243824,
-0.3136535585,
0.0532630086,
0.0026731638,
0.048541043,
-0.3527157903,
0.0821141303,
0.1113009229,
0.6753001809,
0.1034720987,
0.1295494437,
-0.1083086431,
-0.1619322449,
-0.1246846393,
0.0191322286,
0.0126681039,
0.0671096966,
0.1944051683,
0.2011132985,
-0.0446370728,
0.346955657,
0.0323717743,
-0.0740824342,
-0.1044221595,
0.0455813035,
-0.2820934951,
0.0927809924,
0.0680843368,
-0.0183761623,
-0.296031028,
0.2254842669,
-0.3230933547,
-0.0889056846,
0.1440232843,
-0.0752072707,
-0.0731510967,
0.0357109457,
0.1876576394,
-0.0504870117,
-0.0379351415,
-0.4821264148,
-0.1482042074,
0.0386484601,
-0.4639268517,
0.252336055,
0.1713849306,
0.0126347747,
0.2062462568,
-0.1111705974,
-0.4054635167,
0.0354564711,
-0.0658325627,
-0.0313020907,
0.0889695808,
0.1795017719,
-0.4525696337,
0.3838883638,
0.0929941908,
-0.1642801315,
-0.2671722174,
0.0119264433,
-0.4921446145,
-0.3080554605,
0.069030568,
0.1287892014,
-0.1365884095,
0.0609575137,
0.1897368282,
0.3318853676,
-0.1153178588,
0.1990911961,
-0.1007406935,
-0.0983118862,
-0.4269196987,
-0.2644009888,
0.0072036781,
0.0409696624,
-0.3341090679,
-0.1623815,
0.1373777837,
0.1871722043,
0.3112606406,
-0.022741463,
-0.0241281055,
0.4247215092,
-0.109093599,
0.1467432082,
0.2499329597,
-0.3465862274,
-0.0087535745,
-0.1740072817,
-0.0258991066,
0.1329859495,
-0.0895646438,
0.1664259285,
-0.1744971573,
-0.0926980823,
0.0160260852,
-0.084096849,
-0.0957268998,
-0.1990118027,
0.0502358973,
-0.1406762451,
0.6332864761,
0.1118355915,
-0.1572702825,
-0.111015901,
-0.3735495806,
0.1674022973,
0.3539593518,
-0.0071341521,
0.0449136384,
0.3623039126,
0.0871980414,
0.3109551966,
0.3268584907,
0.0515773334,
-0.1253260672,
-0.0166783463,
0.1232136264,
0.7216901779,
0.1610011756,
-0.1609761864,
-0.0598948225,
-0.0297035705,
-0.0421016961,
-0.5228354931,
0.1638391465,
-0.0354805849,
-0.0927689895,
-0.0156908203,
-0.2345709503,
0.3003307581,
-0.7553532124,
0.1253665686,
-0.5494095683,
-0.2719166875,
-0.3093497157,
0.1723167449,
0.2604397833,
0.1606018245,
0.3212373257,
0.2714565694,
0.092471458,
-0.0461576246,
0.1488592923,
-0.6642783284,
0.0911436081,
0.6776847839,
0.088373214,
-0.5249885321,
-0.0968008861,
0.0926433802,
-0.1376922429,
-0.0823117495,
-0.1829962581,
0.0447827876,
-0.0842519253,
0.293314904,
0.1141290069,
0.0089596342,
0.0623177849,
0.0631056875,
-0.3090404272,
0.0669120848,
0.1034507453,
-0.1360892951,
0.0211301353,
0.1199388057,
-0.0387461744,
0.4414962232,
0.563806355,
-0.1863643378,
-0.0692084953,
0.2521672845,
-0.182985127,
-0.0577115901,
-0.27078107,
0.1821920574,
0.2422930598,
0.0731471404,
0.2016144991,
-0.142331928,
-0.2664194405,
-0.2101287246,
0.1479951143,
0.0713572279,
-0.3675381839,
0.1322910041,
-0.0141253239,
0.0283212326,
-0.1001180485,
-0.2369364202,
-0.0526686534,
0.1579364389,
-0.2895198166,
-0.0486257635,
-0.0847699717,
-0.0414973274,
0.0493919216,
-0.1332646012,
-0.3768904507,
-0.4618844688,
0.0604123212,
-0.2065778375,
0.1046139821,
0.0916571915,
0.0267901961,
0.2577778399,
0.007820351,
0.4968670905,
-0.0199225955,
-0.3135145307,
-0.4187054336,
0.000277845,
-0.1932316273,
-0.0689469054,
-0.2793948352,
-0.4715571702,
-0.1962038279,
0.189182505,
-0.6522642374,
0.1992064863,
-0.0307924934,
0.0423555151,
0.361949861,
0.03848961,
-0.2372521609,
0.1165784299,
0.0128946612,
-0.0482749939,
-0.237735033,
-0.0630051494,
-0.1078974605,
0.0475882366,
-0.2777673006,
-0.3997898996,
-0.41372177,
-0.0360724181,
0.147191152,
-0.0564058498,
0.0793976411,
0.500062108,
-0.3187736869,
0.0542293079,
-0.0402778164,
0.4291720688,
-0.0579383112,
-0.0362955555,
0.3741431832,
-0.1225997657,
-0.287594378,
0.2860406041,
-0.2776126266,
-0.0642166957,
-0.2167771608,
-0.165970102,
0.0128623843,
0.1247489303,
-0.2548129261,
0.1925062984,
0.1471299827,
0.1604902148,
-0.0510470681,
0.1826123595,
-0.1810187101,
-0.1359699368,
0.1485752314,
-0.1738652587,
0.162564829,
-0.1120587066,
-0.2352695614,
0.1533918232,
-0.0981060341,
0.0958106592,
-0.1561300159,
-0.195843786,
0.181734845,
0.1204215586,
0.1285725683,
0.0914677307,
-0.120799832,
0.0656293556,
0.0671374798,
0.1672759503,
0.1578974575,
0.4212938249,
0.2485268265,
0.4521140456,
-0.230411008,
-0.1518733054,
0.0616702102,
0.5299971104,
0.3666865826,
-0.1315763742,
-0.1318486333,
-0.0041674818,
-0.2918210328,
0.0320726633,
0.3986598551,
0.2485456914,
0.1270181388,
-0.1801843196,
-0.1087058857,
-0.3199878037,
-0.3875417411,
-0.0180187784,
-0.0942425206,
-0.1032284051,
0.0734534785,
-0.0681673512,
0.0887591615,
0.2113137394,
-0.4619134963,
0.3038243949,
0.3779916167,
0.1060473099,
0.0458210185,
-0.2179714888,
-0.4066914022,
-0.3208163083,
0.2544102669,
0.3007875085,
-0.2096461505,
-0.3157261312,
0.6650325656,
-0.1623010188,
-0.2146288007,
0.0231161378,
-0.0798232853,
-0.1886562705,
0.2049296945,
-0.3243943751,
0.2717308104,
0.1194405779,
-0.5196065307,
0.3327736557,
0.2235523462,
0.4568700194,
0.2948156595,
-0.0084764976,
0.1713102013,
0.019742867,
-0.1269917488,
0.0451137125,
0.3307836056,
-0.0008961784,
0.3283190429,
0.2983852625,
-0.5064973831,
0.3612936437,
-0.226769045,
0.2376774698,
0.1006019488,
-0.0175063033,
0.328478545,
-0.2298385799,
0.0035498927,
-0.3467367589,
0.147097379,
0.4200779498,
-0.154399246,
-0.0777294859,
-0.1305729598,
0.3563928902,
0.2603347898,
-0.3048218489,
0.0040714745,
0.2573171854,
-0.240152508,
0.0644240603,
0.4713022113,
1.0378026962,
0.3031316102,
0.1885528713,
0.1219173893,
-0.3590348065,
0.6271586418,
-0.441362977,
0.2939227223,
-0.4917212427,
-0.2597659826,
-0.0798553154,
-0.0532473251,
-0.3230323493,
0.4851154387,
-0.0133812567,
0.279953748,
0.0795681253,
0.1533133388,
0.0762817934,
0.0381999016,
0.4392774701,
-0.1355612874,
0.1449452788,
0.0158817228,
-0.0943061858,
0.0506516062,
-0.2155333012,
-0.030917773,
-0.0585170649,
0.1497457325,
-0.4512604475,
-0.0009579594,
0.0739386231,
-0.1980793923,
0.2527940273,
0.2564839125,
0.2726524472,
0.3124997616,
0.4582827687,
-0.11848782,
-0.1011567935,
-0.0288455393,
-0.3781508803,
-0.045194719,
0.0228757653,
0.0239693895,
0.1892852187,
0.1026287228,
-0.0556613021,
-0.2188269198,
0.112350896,
0.2670867741,
-0.3358884454,
-0.030405879,
-0.0276488215,
-0.101946719,
0.357965827,
0.2216022909,
-0.0156744514,
-0.0714717507,
0.0677613243,
0.2044017017,
-0.3964380622,
-0.036834158,
-0.1398340613,
0.001334192,
0.0931505561,
-0.0539613329,
0.2500535846,
-0.0573751219,
-0.0314922445,
0.1672794372,
-0.1308666468,
-0.1319426298,
0.007825275,
0.3666979074,
-0.4888994098,
0.0116823781,
0.1734935939,
0.0562340021,
0.1463616788,
0.5145270228,
0.127876237,
0.2062714696,
0.0274110604,
-0.2807464302,
-0.1172427163,
0.3828388453,
-0.1685971916,
-0.0338448584,
-0.4350361526,
-0.4497326016,
0.1195737496,
0.2847349346,
-0.209782213,
-0.0833584741,
-0.216124326,
0.2336940914,
0.1275093108,
-0.036123354,
0.062365219,
0.3726070225,
-0.0886382759,
-0.060328681,
0.0074934782,
-0.0603777282,
-0.2313490361,
0.1688094437,
0.2645081282,
0.2135520279,
-0.060940668,
0.0440987349,
0.0316556729,
0.0133300032,
-0.0719900802,
-0.0996455327,
0.2574819922,
0.5117641091,
-0.1896255463,
0.467759341,
-0.0513462313,
-0.0599409305,
0.27647686,
0.5056186318,
0.4498590231,
-0.2050456405,
0.1272492707,
-0.0422145948,
-0.0180217698,
0.3335675001,
-0.1050384194,
-0.1160611138,
0.4081157148,
-0.2138752788,
0.0616920516,
-0.2944959998,
0.2523393929,
-0.0519595928,
0.0903062746,
-0.173674047,
0.0929381102,
0.1015455425,
-0.2090338022,
-0.175504595,
0.7825030088,
0.060479138,
-0.0400785431,
0.1015182659,
0.2406179905,
0.1557172537,
0.0507112704,
-0.1725821495,
0.3301269114,
0.1372451186,
0.1113739982,
-0.105101034,
-0.0463514365,
0.2719039619,
0.4097803533,
0.0255900286,
0.1206084415,
0.1058514938,
0.5922995806,
0.1977979988,
0.1648871303,
0.0666495636,
0.2030248642,
-0.0697351545,
-0.3384664059,
0.2676408291,
0.2246959656,
-0.0455017127,
-0.2587060034,
-0.5041486621,
0.1658729464,
-0.3136121631,
-0.1184868664,
-0.1274347752,
-0.1070165858,
-0.073999472,
-0.6019305587,
-0.1222602203,
-0.2403326333,
0.002561054,
0.0618584268,
-0.3346045017,
0.2231555134,
-0.0902732685,
0.1559702754,
-0.1328748912,
-0.3667320311,
0.3920842707,
0.3054877222,
-0.00744568,
0.0691751987,
0.0800208524,
0.0280433763,
0.0133771328,
0.4532527924,
0.1409288198,
0.2674155533,
-0.0482879914,
-0.1304042935,
0.0924439579,
-0.0631446913,
0.1392107159,
0.1444194019,
0.1311930567,
-0.2176302969,
0.1192921177,
-0.0470577031,
0.0623307228,
0.1783408225,
0.1782837212,
0.1870181859,
0.2196921557,
-0.1662825495,
0.0244084671,
-0.2889587879,
0.0589663945,
0.19316791,
-0.1010682955,
0.0312131904,
0.5167574286,
0.5962797403,
0.1636160761,
-0.0893288478,
0.0574168898,
0.1213992834,
0.3225637972,
0.5040453076,
-0.0957841575,
-0.5049682856,
-0.4385407269,
-0.2283804417,
0.1354012489,
-0.1539177597,
-0.1548360586,
0.049773667,
0.0315384381,
0.1469536573,
-0.0454764813,
-0.2531864941,
0.1034186408,
0.1706101894,
0.4527876973,
-0.2479967177,
-0.2641302049,
0.1756776273,
0.1481625736,
-0.3362432122,
0.261669457,
-0.2128399312,
-0.301027298,
-0.0757123008,
0.1897957176,
0.0888680667,
-0.0190401468,
0.6010872722,
-0.0455838479,
0.3202249408,
0.2428413182,
-0.0212924089,
-0.29037866,
-0.275029093,
0.2024097294,
-0.0744129196,
0.4421251416,
-0.3846026063,
0.2418859005,
0.034709949,
0.0626793206,
-0.2775330842,
-0.2786612213,
0.0277652256,
-0.2143134028,
-0.3709553182,
0.279589951,
-0.0979457349,
0.0287373252,
0.4505160749,
0.1107025668,
0.0913535804,
-0.1294455975,
-0.1693637669,
-0.2396494746,
0.2120364457,
-0.3755999804,
-0.0540666655,
-0.046767246,
0.1419931501,
0.5354362726,
0.4785679281,
-0.3146361113,
-0.205306679,
0.3774158359,
-0.1149438545,
-0.2709684968,
0.1097265035,
0.288572669,
-0.1728776842,
-0.0676890984,
-0.4764375091,
0.2064548731,
-0.1344136894,
-0.2389264554,
-0.3001995981
] |
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.2450180203,
-0.3615008891,
-0.167169258,
0.3723611832,
0.1236956567,
0.1451465189,
0.016439097,
0.4380205274,
-0.1213207915,
0.0934929103,
0.1632600874,
0.1249717548,
0.0430465601,
0.2471366227,
-0.0943753272,
-0.1647270769,
-0.0069864895,
0.2966330647,
-0.2305757999,
-0.074492,
-0.2418486029,
0.3023811579,
-0.2500705421,
-0.0736243352,
-0.1649782509,
-0.2872937024,
-0.0491759069,
0.0133109102,
0.0458689816,
-0.3200640678,
-0.0480262227,
-0.324757278,
-0.1014456078,
0.4697220623,
-0.0001062213,
0.0782133192,
0.1270972937,
-0.1408859193,
-0.3300846517,
0.1074308306,
-0.2933758795,
-0.1728283316,
0.032680545,
-0.0973912328,
-0.2557199597,
-0.2729075849,
-0.0496534295,
-0.0854506642,
0.5871786475,
0.289849788,
0.2529068291,
0.3633325994,
0.0336478725,
-0.0832496509,
-0.2213349789,
-0.5049694777,
-0.040540617,
0.0328144059,
0.2264515162,
0.0457121767,
0.2468180209,
0.2307890356,
0.2760746479,
-0.100784421,
0.1479253024,
-0.2171174288,
0.1146206632,
-0.1962147653,
0.0263635144,
0.1972754151,
0.371968776,
0.1936609596,
-0.3621880114,
-0.1538570225,
-0.0319557749,
-0.4144758582,
-0.0372161046,
0.269079268,
-0.0616777055,
0.207327038,
-0.1861330867,
0.234562844,
-0.1997883767,
0.1442641765,
-0.1462111026,
0.224407956,
-0.065470174,
-0.0954149067,
-0.2495792061,
0.1812457144,
-0.0705583394,
0.12609303,
-0.0084407693,
0.1862766743,
-0.5876226425,
-0.1518307775,
0.173530221,
-0.2187473327,
0.0536674447,
-0.0276972018,
0.4717936516,
-0.1412030756,
0.0702642277,
0.0977404192,
0.2745475173,
0.5109511614,
0.2012847066,
0.1008574739,
-0.1483420134,
0.2257251292,
-0.1809090376,
0.1172313765,
-0.1104007736,
-0.1220033616,
0.1084838957,
0.2392062098,
-0.1832300723,
-0.1661885977,
-0.4356069267,
0.4669901431,
-0.451790601,
0.111078918,
-0.2033960223,
0.3239641786,
-0.2341742367,
0.2661925554,
0.0968194678,
0.2421137393,
-0.449746877,
-0.1726885438,
-0.3069636822,
-0.0053719585,
-0.1520238519,
-0.1448992491,
0.0667962059,
-0.0198876821,
0.6864052415,
-0.1905843168,
0.240697071,
-0.1494981945,
0.1166922599,
-0.1677238643,
-0.1573783159,
0.2168616802,
0.0933347642,
-0.1515267044,
0.0986842141,
0.127358079,
0.0735539794,
-0.0123293651,
-0.1933779716,
-0.0778048262,
0.0731488392,
0.330712229,
0.0673327371,
0.1481942534,
-0.0800903067,
0.3283023536,
0.3131912947,
0.2075052261,
-0.1654670089,
-0.1291123033,
-0.0672498792,
-0.066421859,
0.2284733802,
0.1068682745,
-0.3879638314,
-0.2831279635,
0.2111898065,
0.1523140073,
-0.1277308762,
0.1663791537,
-0.0637843162,
0.4463843703,
-0.0574761517,
0.1228247136,
-0.1606710553,
-0.0278362539,
-0.0758509487,
-0.0808559805,
-0.0359561443,
0.0637385175,
0.0771536976,
-0.3781816959,
0.3808518052,
0.1721238494,
0.2533080578,
0.2878330946,
-0.0454361439,
-0.0531010926,
-0.3692815304,
-0.3330494463,
-0.1322298646,
0.0303951725,
0.1376109123,
-0.0659363866,
-0.0196517259,
-0.2123086303,
0.4386967123,
0.0753438696,
-0.1268946528,
0.2475075573,
0.201656118,
-0.1755530536,
0.1349404305,
-0.0882639214,
-0.4648679495,
0.3856159449,
-0.2136991024,
0.18052499,
0.1455844939,
0.0752160102,
-0.531308949,
-0.0354603454,
-0.0576037057,
-0.3980097771,
0.2089185119,
-0.0482743122,
0.1521579772,
-0.0416217744,
-0.1192983463,
0.0717147589,
-0.2015970796,
-0.0051511549,
-0.2455400825,
0.294898361,
-0.1022190154,
-0.0338154621,
0.2529663146,
0.1713653505,
0.0838684738,
-0.2252239287,
-0.0535432398,
0.3246358633,
0.1384630203,
-0.0993396118,
-0.1715629697,
-0.1226138026,
0.1180635616,
-0.1319233477,
-0.2020105124,
0.2057532966,
0.1158744767,
-0.0233054478,
-0.1940401942,
0.3919536173,
0.170397982,
0.2448911816,
0.231954962,
0.0529226661,
0.144859761,
-0.0916808695,
0.0975736678,
-0.0638849512,
0.189599663,
-0.0497282185,
-0.0844068453,
-0.0868862495,
-0.2769930363,
0.1296674311,
0.133687377,
0.0348883457,
-0.0792624354,
-0.1626708806,
-0.1537511498,
0.1644690037,
0.1590702832,
0.1174458414,
0.1510914564,
0.3079982698,
-0.2536089122,
-0.199834615,
0.0356868878,
0.0004941714,
0.1626496464,
0.0426236689,
0.2464945018,
0.2847857773,
0.1936948895,
-0.0943689942,
-0.1065964401,
0.1231055334,
0.1845840067,
0.2153209597,
-0.3730053306,
0.143209517,
-0.1024535969,
0.2950364947,
-0.1279533356,
0.2355161458,
0.1593344659,
-0.2550416291,
0.2276653945,
0.036748603,
-0.0530088544,
0.264975071,
-0.2547739148,
0.2745153904,
0.1846229881,
-0.1531975418,
0.1978167146,
0.1969081908,
-0.3121937215,
0.2985314727,
-0.0876592249,
0.1244524568,
0.2559632957,
-0.0741103813,
-0.2983540297,
0.1935952902,
-0.2393571287,
0.1780948043,
-0.1836473048,
0.483614713,
-0.1416649669,
0.1909187883,
-0.3466758132,
-0.3810736835,
0.1948750615,
-0.0581266135,
-0.2577679455,
0.1504854262,
0.0410655327,
-0.2013731748,
-0.1593970954,
-0.7575306892,
0.0354382508,
-0.1635407954,
0.1972050667,
0.1563576162,
0.2769850492,
0.0308583565,
0.2668564618,
-0.0354169644,
-0.1260355711,
-0.1651288718,
-0.1709087938,
-0.1946427077,
0.3205130696,
-0.1530383378,
-0.3015634418,
-0.1450708658,
-0.139386937,
0.5834779143,
-0.0346682556,
-0.3780319095,
-0.2207747996,
-0.0099999784,
0.1090355963,
-0.0412040949,
-0.1890208423,
0.3572487831,
-0.0990518481,
-0.2029393911,
-0.0918204188,
-0.0775545314,
0.308878243,
0.1910595149,
0.2585724294,
-0.4090473354,
0.2854523361,
-0.0080062496,
1.0584619045,
0.3723424375,
0.0747848377,
0.0401259065,
-0.0044042282,
-0.1289399415,
-0.1965897232,
-0.1487228274,
0.1607521623,
-0.059311036,
-0.2840841115,
0.2656475306,
0.1344439834,
-0.0197179709,
-0.1355738193,
0.2519262433,
-0.6226941943,
-0.1467549354,
-0.0441395678,
-0.0679619238,
0.5081371665,
0.0261445791,
0.2575259507,
0.1802200824,
0.0982108787,
0.0189101975,
-0.0221584328,
0.1799108833,
-0.0480814092,
-0.3849961162,
-0.072015129,
-0.0630735606,
0.1918583512,
-0.1368914694,
0.2850539386,
-0.0336408988,
-0.0315191373,
-0.0155024808,
0.0193066429,
0.4916499555,
0.1030351967,
0.0759635419,
0.2137276679,
0.0983610302,
-0.0878995955,
-0.1557474881,
-0.1249990463,
-0.3020195365,
-0.1005192101,
0.3204067051,
-0.3774963915,
0.0301841497,
-0.0500864908,
0.0213073734,
-0.3617132306,
0.0159995742,
-0.3647141457,
0.023644805,
-0.1130775586,
0.1736126542,
0.2534516156,
0.239273876,
-0.0875733122,
-0.0866845176,
0.0384343751,
-0.3197673857,
0.2297403812,
0.3085210621,
0.3850121498,
0.075853534,
0.5038484931,
0.1059478819,
-0.260270983,
0.234955281,
0.5228103995,
-0.1499752998,
-0.303834796,
0.1117308065,
-0.1718558222,
0.4033386111,
0.2430360168,
-0.1971921027,
0.0012441124,
-0.0755828544,
0.2412464917,
0.2151298225,
0.0825200081,
0.0790470243,
-0.0239107236,
0.2027700394,
-0.3584735692,
0.0560039654,
-0.166577667,
-0.0322497748,
-0.0816434324,
0.1298965812,
-0.1747609228,
0.3338711262,
0.1127268896,
0.6330313683,
0.1305939704,
-0.0383034758,
0.4832283854,
0.0490094386,
0.1228825971,
-0.3597963154,
0.2030261904,
-0.2173837572,
-0.1108086184,
0.0887389705,
-0.0648303106,
0.1883213967,
0.3287277222,
-0.1439508498,
0.4234225154,
-0.4484820962,
-0.0406926125,
0.073843129,
-0.0510888211,
0.0314650349,
-0.0251644943,
-0.2900234461,
0.2359440774,
-0.0015881271,
-0.0406087711,
-0.1033925563,
-0.0731635392,
-0.1227568612,
-0.1274031997,
-0.0092289224,
0.2474855185,
-0.3118835092,
-0.1006114185,
0.3116769195,
-0.1610025913,
0.0762253478,
0.319671303,
-0.1201980934,
0.2709675133,
-0.0974705964,
0.2468040586,
-0.0463559069,
0.0579719618,
0.0048049074,
-0.091267325,
0.4631345272,
-0.1395934522,
-0.0712313727,
0.41497913,
-0.2818176746,
0.0176113993,
0.0510920957,
0.0648634806,
0.0080348393,
-0.3585584462,
-0.1104811877,
0.1376364231,
0.0029342275,
-0.3381872177,
0.230005905,
0.0572287403,
-0.1892749369,
0.1670876145,
0.0865444019,
-0.1463120282,
0.042708233,
0.1361493021,
0.3570473194,
-0.1305964142,
0.7882825732,
0.1528767198,
-0.0398470685,
-0.3938731849,
-0.0726180971,
0.2945171595,
-0.435719043,
0.3019653857,
-0.0136565035,
-0.0246523414,
-0.0521612763,
0.4134022295,
0.1887342781,
0.0399364941,
0.2184929699,
-0.4894672036,
-0.1931095123,
0.2399051487,
-0.0145096779,
0.0302342847,
-0.1322637051,
0.290312171,
-0.1278676689,
0.2097467184,
-0.4214288592,
-0.143373549,
-0.3985897601,
0.1878069341,
-0.5181495547,
-0.1457367688,
0.2272177935,
-0.1095384732,
0.2473853827,
0.037555676,
-0.2567579448,
-0.3200961053,
-0.2861351073,
0.0617648847,
0.19273296,
0.1127404645,
0.2889398634,
0.041668877,
-0.2834431529,
0.017824566,
0.1013171747,
-0.1948021054,
0.0467671007,
0.0871968269,
0.3864266872,
0.021977758,
-0.1919877231,
-0.1358884126,
-0.0882555991,
0.090460591,
0.0601679794,
-0.2023028433,
0.052350685,
-0.012818234,
-0.1507108957,
0.2215192169,
-0.1231176928,
0.2737950087,
0.2905274928,
-0.1926762462,
-0.0184262991,
-0.1168122813,
0.1618769169,
0.1685914993,
-0.1445002854,
0.1315018684,
0.0135790789,
0.3528313935,
-0.3844122887,
0.0049670534,
-0.3526668549,
-0.0184044093,
0.089321278,
0.1673435271,
0.0437681973,
-0.3547253907,
-0.0860323682,
0.281105727,
-0.2622291744,
-0.1081990972,
0.2802661359,
0.5731696486,
0.0275646895,
-0.0002921917,
0.1819288582,
-0.389788717,
-0.0526640117,
-0.0991595238,
0.0734335333,
0.1352886856,
0.2290858477,
0.0200845618,
-0.0661902726,
-0.1742317677,
0.0116925891,
0.0469579548,
-0.0897579119,
0.3786462247,
-0.0138228014,
0.2987895906,
-0.0638647079,
-0.1497028321,
-0.3668245673,
-0.1680526435,
-0.0015941677,
0.0645890832,
0.0085984971,
-0.1513912082,
-0.1663929671,
-0.0818335041,
0.0792212412,
-0.328342706,
0.1542554349,
-0.1284559518,
-0.441752404,
-0.232384637,
-0.3880307972,
0.485745281,
0.2582843602,
-0.2795485854,
0.2843214571,
0.1506462693,
-0.1825753152,
-0.1176911071,
0.4338414371,
0.1280681044,
0.0845425725,
-0.0463073477,
-0.0871171206,
0.0822570324,
-0.1040437445,
0.1117975935,
0.2822865248,
0.1642479002,
-0.0767761841,
0.2574380934,
0.1753000468,
-0.2762503922,
0.173346594,
0.0810538605,
0.2326996028,
-0.253342092,
0.1304884851,
-0.1144491807,
-0.044753477,
-0.0553240813,
0.1883160621,
-0.4011356533,
0.0053416137,
0.1108732298,
0.110242188,
0.1241548508,
-0.0843064636,
0.1275138706,
-0.3049997389,
0.5124530196,
0.0103118196,
0.0229154173,
-0.4916670918,
-0.0647165552,
-0.2829298377,
-0.0501293018,
-0.2130349278,
0.2104374319,
0.0346969739,
0.2090833038,
0.126204133,
0.101769723,
-0.0141175175,
0.0250880364,
-0.2571706176,
0.3189043105,
-0.7061988115,
-0.1350684017,
-0.2019830495,
0.3497312963,
0.1605275571,
-0.3106667995,
0.0155650442,
-0.1239759922,
0.1142855063,
0.1948513389,
-0.1609450132,
0.3158735931,
-0.0857968107,
0.2146508247,
0.1274189353,
0.1434753984,
-0.0719683245,
-0.1633683145,
-0.1401195377,
-0.3524004519,
-0.2526797354,
0.2253605872,
0.2688836753,
0.4694867134,
0.1029351205,
-0.1061380953,
0.0337460525,
0.0445147678,
0.211557284,
-0.4895721376,
-0.3758785725,
0.2332729101,
0.0127200028,
0.2232288867,
0.1194652691,
0.2636308372,
-0.1482478827,
-0.247629106,
-0.3535002768,
-0.4347566962,
0.4308348894,
-0.0701339915,
-0.0934194252,
-0.1445527375,
0.2189144492,
0.0158596225,
-0.0631371588,
-0.6744796634,
-0.065977864,
0.4094994366,
-0.1132723466,
-0.2585166991,
0.1806692183,
0.1244951412,
-0.1271042824,
-0.0564318299,
0.2745739222,
0.0278273635,
-0.2310828418,
0.0818092972,
-0.0966653526
] |
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.0275760554,
-0.1798949391,
-0.0416176841,
0.5950446725,
0.4188712239,
0.1276882589,
-0.102133356,
0.4045755267,
-0.4222145975,
0.2916166782,
-0.3122208118,
0.1641519666,
-0.159445852,
-0.2467198968,
0.0084443195,
-0.3867281079,
-0.1002724096,
-0.0234840568,
-0.2141504884,
0.1703376621,
-0.0552278385,
0.3564768136,
-0.1458572745,
0.193897903,
0.0413475446,
0.1218295991,
-0.156138882,
0.3231824338,
-0.2132582664,
-0.3137522936,
0.3761617243,
-0.1966383308,
0.2636948824,
0.7458999157,
-0.000113161,
0.1709338427,
0.2560486794,
-0.1524574459,
-0.2275672108,
-0.3300162256,
-0.2031930089,
0.020837564,
0.0260601509,
0.062077526,
-0.3279790878,
-0.0541188866,
0.029656779,
-0.1068712175,
0.0726986751,
0.2427030206,
0.2222918421,
0.5647498965,
0.1862714589,
-0.3274779916,
0.1554671973,
-0.181812942,
-0.1400783509,
0.6799874902,
0.1498617679,
0.4447277486,
0.1170041487,
0.4727894366,
0.0081935255,
-0.0207346976,
0.2193839252,
-0.1606037617,
0.3265084624,
-0.3726668656,
0.2364120781,
0.3105347157,
0.3984401822,
-0.1125397831,
-0.3003064692,
-0.1880160719,
0.0631654412,
-0.1206555218,
0.2856000066,
0.1726786196,
-0.2515365481,
0.2372484207,
0.0646845698,
-0.3774136901,
-0.0309251342,
0.2397216707,
-0.0525429472,
-0.3283067644,
-0.1941551119,
-0.0440330915,
-0.0428911559,
-0.1177551895,
-0.1223734692,
-0.1022245511,
-0.060499426,
0.407345742,
-0.1801195592,
-0.0222836416,
0.1310413629,
0.16329211,
0.0916108862,
0.2455809563,
-0.0600875542,
0.1073498949,
-0.4293566346,
0.1083616316,
0.2306106389,
0.0193925779,
0.0387208685,
0.006426224,
0.102253817,
0.5596544147,
0.1537627727,
-0.0669868663,
-0.3494532108,
-0.399440676,
-0.4301459491,
0.0453645028,
0.3619145453,
-0.2745938897,
-0.1926772892,
-0.2255996168,
-0.1761292964,
-0.1179646403,
0.3284712732,
0.4818300307,
-0.0135617368,
0.1518219709,
-0.2231663615,
0.1077077463,
-0.0843081996,
-0.1456591785,
-0.2482449412,
0.0794836655,
-0.2387345284,
0.1790163219,
0.1133855954,
-0.6890285611,
0.3001259267,
-0.3057084978,
-0.1137942672,
0.0082930271,
0.0363539793,
-0.0737778693,
-0.110991396,
0.2830497622,
0.0126991458,
-0.0248332974,
-0.0502679422,
-0.1237629056,
-0.1351199746,
0.0123531613,
-0.2292303145,
-0.2775954008,
-0.0139289899,
0.1285253912,
-0.0168106556,
0.2033052146,
0.1159621924,
0.1687003076,
-0.2712262273,
-0.1288264245,
-0.0279892497,
0.139417097,
-0.0879686251,
-0.1676280797,
0.4258753061,
0.5617590547,
-0.1878831685,
-0.0116632404,
-0.0652729347,
-0.4448722303,
0.0218880195,
0.2667711377,
-0.1007736027,
0.2799505889,
-0.5007408261,
0.0761444494,
0.3697865009,
-0.3822960258,
-0.2424638569,
-0.0179707725,
-0.1458065957,
-0.0362401605,
0.0455981828,
-0.1990570873,
-0.071161136,
-0.1117390841,
0.4304513335,
-0.0396549478,
0.1082408801,
-0.2827385664,
-0.15614748,
-0.1705923676,
-0.0402733833,
0.0282071568,
0.0869350806,
0.0649740994,
0.1890322566,
-0.1641194969,
0.1505363435,
0.0177250467,
0.0044506853,
0.3384777308,
0.3335938156,
0.2531712055,
0.0434682965,
-0.1701407433,
-0.090635404,
0.1604193002,
-0.1763248593,
0.2604506314,
-0.3216402233,
-0.0586828142,
-0.3983007073,
-0.0621899329,
-0.2430595607,
-0.1129873022,
0.1386482418,
0.0277112201,
0.1554593295,
0.3996636868,
-0.1036327332,
0.0866563693,
0.0413637571,
0.3868948817,
-0.5217027664,
0.2882938683,
-0.1621197015,
-0.0569980405,
0.0447350331,
0.1650547981,
0.0889761448,
-0.2264205515,
0.08791513,
0.3215097189,
0.1480686814,
0.0254211575,
0.6113661528,
-0.2260302752,
0.1211304069,
-0.2721600533,
0.0900695324,
-0.0116434377,
0.1313447654,
0.1288071126,
0.0631596372,
0.1652719378,
0.112303935,
0.076293163,
0.1483350694,
0.0277672019,
0.341691196,
-0.0324318856,
-0.0726277679,
-0.2988239825,
0.2953140438,
0.1561000496,
0.2211463153,
-0.0873382315,
-0.2797177136,
-0.2418057323,
-0.2270912528,
-0.1054827273,
-0.0097522559,
0.1181009933,
-0.3057865202,
0.2041133791,
0.218448177,
0.3560208082,
0.1993278265,
0.1325497627,
0.1636902839,
0.1632712781,
0.1215510517,
-0.1284630001,
0.0921375304,
0.1699593812,
0.0739590079,
0.1871479899,
-0.1497146487,
0.0457579978,
-0.3276005983,
-0.0989336148,
-0.1598586589,
0.2108635753,
-0.1368251294,
-0.1308036149,
-0.3650537133,
-0.5920037031,
-0.2478826344,
-0.0549497828,
-0.4640183747,
-0.2258248776,
-0.1292402148,
-0.0146918576,
-0.0487076677,
0.0384631902,
-0.3173113763,
0.1435841471,
-0.0826628953,
-0.0794702694,
-0.2091594487,
0.047494676,
-0.0480668545,
0.0619081743,
0.331228286,
-0.0067726416,
0.3388995528,
-0.3461804092,
0.1102548987,
-0.2857082486,
-0.3271130025,
0.1754178405,
0.1256679893,
0.2020726353,
0.1722789556,
0.1957676262,
0.0749967471,
-0.1231169924,
0.3749612868,
0.0885666385,
-0.104262948,
0.0144843664,
-0.0229882933,
0.2079498917,
0.000750679,
-0.2067746669,
-0.1117955744,
-0.2796297073,
-0.0600175112,
0.075303793,
-0.0136355208,
0.0379964449,
0.2016091049,
0.3852599263,
-0.5088942051,
-0.0519051664,
-0.0848607197,
-0.3770295978,
0.3114744127,
-0.2667353749,
-0.2900530696,
0.3200340569,
-0.2356287688,
0.5331382751,
-0.1657550782,
-0.4765571058,
0.0859390274,
0.0523846373,
0.160512954,
0.227205351,
-0.1370083541,
0.0498036779,
0.0314959623,
-0.1133918464,
0.002001029,
-0.0747734681,
-0.3300971091,
-0.0530961715,
0.4950979948,
-0.1138646081,
0.0503145978,
0.0733369961,
0.4199269712,
0.3726041615,
0.1534767002,
0.4652201235,
0.116708003,
0.5983051658,
-0.0907257572,
-0.1926035285,
-0.1169223189,
0.0117184399,
0.1279617995,
0.0744702443,
0.5465227365,
0.1982717365,
-0.5745587349,
-0.3914293349,
-0.2849516571,
-0.3250798583,
-0.3052755892,
-0.1911687404,
0.1338606328,
0.0820839033,
0.0130699184,
0.0836493224,
-0.0033112185,
0.221497491,
0.6827549338,
0.0313967578,
0.0096507091,
0.0218122024,
0.4009027183,
-0.7738466859,
0.2067867965,
-0.2102188617,
0.0063061649,
0.0255132895,
0.0963205472,
0.2056541592,
-0.0184105318,
0.6278695464,
0.0996662527,
0.0807927102,
-0.0246404149,
-0.0494301058,
-0.2527087331,
0.0870690644,
0.0038772447,
-0.0025454636,
0.1338186115,
0.6096513271,
-0.2629620731,
-0.1945956796,
0.1487482637,
0.0900395587,
-0.1467809975,
-0.2016201466,
-0.2816530466,
-0.2833284438,
-0.1463649422,
-0.3225824237,
-0.1948909014,
0.3163631856,
0.4110981524,
-0.1206553951,
0.1204500124,
0.1290361583,
0.1325503141,
0.0731242821,
0.2535376251,
0.1423860043,
0.1947265118,
0.4189749658,
0.2729951441,
0.2054224908,
0.6228638887,
-0.228593275,
-0.5557925701,
-0.1378272027,
-0.0102486592,
0.0661036745,
0.2842224836,
-0.1786152571,
0.1075813845,
0.2094204426,
0.2447221875,
-0.3189250231,
0.2377245575,
0.4166228771,
-0.0420568176,
-0.229514882,
-0.2105553746,
0.1751544029,
-0.10906744,
0.0142890252,
0.5919672847,
0.2655676603,
-0.0308934022,
-0.0533250049,
-0.0762450024,
0.8943351507,
-0.3052037358,
-0.1355112642,
0.4126398563,
-0.1429205388,
0.3268463314,
0.1835488826,
0.15979895,
-0.0332712382,
0.1485080719,
-0.0339827016,
0.0062113851,
0.1509290636,
-0.0666003525,
-0.0723301619,
0.3700768352,
0.1185520068,
-0.1996469796,
-0.1146828458,
0.0298472252,
-0.0864052996,
0.1577292085,
-0.1449262351,
0.1460777521,
0.0016575328,
0.6845750809,
-0.1613357663,
-0.1802318096,
-0.2283404022,
-0.1184449494,
-0.0732766241,
0.0116945859,
-0.179580763,
0.0108822891,
0.0359087288,
-0.4694713056,
0.0718544051,
0.1127227619,
-0.0739293098,
-0.1057821289,
-0.4312485456,
0.2365910113,
-0.2660599351,
-0.403706491,
-0.0257566608,
0.0901979432,
0.2451150566,
-0.0258609559,
-0.1520772129,
0.0672035441,
0.0271408632,
0.0056663714,
0.2813140154,
-0.0833322331,
-0.1544918567,
-0.0350880772,
-0.1870549023,
0.0724630877,
0.1514793932,
-0.1914688945,
0.1532901525,
0.2633694112,
-0.1594767123,
-0.4186684191,
0.1783053428,
-0.0989264771,
0.0503909662,
0.3924622536,
-0.2345747054,
-0.332685411,
0.1719310135,
0.324113816,
-0.1872752309,
-0.1208374873,
0.1790052801,
0.1110546291,
-0.5132270455,
0.0620097779,
0.1603048444,
0.4298988879,
-0.0017273645,
0.0022818157,
0.2556881309,
-0.6776071191,
-0.1010785848,
-0.3675171733,
-0.292396158,
0.2684901655,
-0.1659118831,
0.0773578808,
-0.1927929074,
0.0267064627,
0.240282163,
-0.1025599241,
-0.2744695544,
0.1755051464,
-0.2248123884,
0.0137468744,
0.1955939531,
0.1704109162,
0.1359428018,
0.062315017,
0.1203891635,
-0.1133150905,
-0.3900870681,
-0.1529632956,
0.0052960259,
0.0870564058,
-0.0175167583,
-0.1752781868,
0.0797711015,
-0.1581258625,
-0.0152745629,
-0.1603567749,
-0.1277953833,
0.2234125435,
0.1035035029,
-0.1417803168,
0.1294023842,
-0.012022662,
-0.2700367272,
0.3153377175,
0.1504019946,
0.2719040215,
0.260406822,
-0.185481891,
-0.2581336796,
-0.0590674467,
-0.0993149206,
0.0291404724,
-0.0427692905,
-0.1533048749,
0.2613153756,
-0.0067478516,
0.0375076011,
-0.0210287496,
0.2382089943,
0.0559399799,
-0.1683039963,
0.2652598917,
0.4411585331,
0.1108984724,
-0.3262589574,
0.1049167886,
0.1623982191,
0.0359201245,
-0.0440060087,
-0.1589194238,
-0.2583513856,
0.220885843,
-0.0149286855,
0.07926514,
0.1950487196,
0.1507972479,
0.3202220798,
0.4101893306,
0.2101359665,
-0.0290635154,
0.303357482,
0.1490908563,
0.0973711312,
0.4854166806,
-0.1422753781,
0.3498799205,
-0.6094710827,
0.2992951274,
-0.0194630083,
-0.4472792149,
-0.0481808558,
0.1635996103,
-0.0522703119,
-0.1631709039,
-0.1516120434,
0.3918914497,
-0.1910350621,
0.1293945462,
-0.1471155286,
0.0728557259,
0.0067058811,
0.0518133864,
0.1234887764,
-0.3167691529,
0.0602366999,
-0.0292315166,
0.2890923619,
-0.3182103932,
-0.1202590615,
0.0752681792,
-0.0915646628,
-0.1428074837,
-0.2174870223,
0.0918714851,
-0.0202283245,
-0.011862522,
0.1545283198,
0.2011742294,
0.0429386683,
0.0218256358,
0.190355435,
0.4008925259,
0.0433460884,
0.0538096428,
-0.1292656958,
-0.152147904,
-0.0523977913,
0.0550791509,
0.2060992122,
0.0399796143,
0.1083691865,
0.3821549118,
0.1420219392,
-0.1837974787,
-0.2758412659,
0.0675115213,
0.2499997616,
-0.2783145905,
0.4672817886,
-0.5629258752,
0.0096477224,
-0.1725462526,
-0.0641686097,
-0.5021948814,
0.5542033315,
0.2244342119,
-0.363337487,
-0.1388112903,
-0.1607695222,
0.0650710687,
0.0170880258,
0.4634778798,
0.3883376122,
0.4095772803,
-0.244513914,
-0.5597168207,
-0.7324653864,
0.2157926857,
-0.1681684554,
0.0038508864,
-0.016579289,
0.0682505667,
-0.114428699,
0.3239787817,
0.2871301174,
0.0853668898,
0.3343955278,
-0.1083977744,
-0.0686183274,
-0.1621775925,
-0.210103631,
-0.0269094612,
-0.1026001126,
-0.1848224401,
0.0655360967,
-0.4303753078,
-0.0103824977,
0.1170587614,
0.1353752166,
-0.1436256766,
-0.094407469,
0.4596574306,
-0.0379390977,
0.22859478,
0.0479290523,
-0.0674177706,
-0.14375256,
-0.2410258204,
0.2154722512,
-0.0430862121,
-0.031642966,
0.0373082981,
-0.2298005223,
-0.2477361858,
-0.2015143037,
0.5169579983,
0.1491547227,
0.3214690089,
-0.0567177422,
0.1079271957,
-0.0420844629,
-0.1029457673,
0.2558766603,
-0.0612676591,
-0.1464363784,
-0.060865283,
-0.1390433013,
-0.1754336059,
0.6612132788,
-0.3637345433,
0.1629916579,
-0.1541464031,
0.0348045751,
0.065801248,
-0.2408935726,
-0.7541187406,
0.28832376,
0.2903974652,
0.3903476,
-0.1727056652,
0.1597915143,
-0.2616015077,
-0.0970124304,
0.1424276978,
0.0466235429,
-0.0516108833,
-0.0518993177,
0.1443358511,
-0.0248508248
] |
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.0376230143,
-0.2442804277,
-0.0386776403,
0.6305745244,
0.4072245955,
0.088330768,
-0.0716989189,
0.3489049673,
-0.3947158754,
0.264603883,
-0.2870089412,
0.2205043137,
-0.1573987901,
-0.2962247729,
0.0108722709,
-0.3568080664,
-0.1149341688,
-0.0169954877,
-0.1815583408,
0.14895311,
-0.0625044107,
0.3521649837,
-0.1265236586,
0.1486694813,
0.0735031813,
0.1503955275,
-0.1259553432,
0.2814263999,
-0.1905418038,
-0.3247136474,
0.4116792381,
-0.1972881109,
0.2471828759,
0.7875108719,
-0.0001171694,
0.1473743469,
0.2983236909,
-0.164973259,
-0.2821420431,
-0.3706022501,
-0.2304016203,
-0.074906826,
0.0254259948,
0.0481943935,
-0.3216998279,
-0.0121681392,
0.0023312292,
-0.0769952685,
0.1006455719,
0.2473403811,
0.1817989647,
0.5502542853,
0.1799943596,
-0.2549858689,
0.1239053458,
-0.1564268917,
-0.14325957,
0.6937094331,
0.2121169716,
0.4913324714,
0.1655281335,
0.4662214816,
-0.0164647531,
-0.0003989591,
0.1752240807,
-0.1469997913,
0.3066898286,
-0.3588718176,
0.2023095638,
0.3324891031,
0.4127959013,
-0.1082110032,
-0.3176199198,
-0.2034642696,
0.0543418117,
-0.1205694452,
0.280148834,
0.2186777741,
-0.2847770452,
0.2256471515,
0.0706213117,
-0.4013849497,
-0.046225477,
0.2663990259,
-0.0475645587,
-0.3123936355,
-0.2254799008,
-0.0457048863,
-0.0561008714,
-0.122848928,
-0.1137523428,
-0.1313112974,
-0.0502309799,
0.4134671092,
-0.1436475068,
-0.0026622934,
0.0764175504,
0.1962408721,
0.0534740351,
0.2188104689,
-0.071879223,
0.1110743582,
-0.3836346865,
0.0944970995,
0.2684497833,
-0.0089990646,
0.0116550196,
0.0559995919,
0.0936570466,
0.5667539239,
0.1805588454,
-0.0413757376,
-0.3334462941,
-0.3940544128,
-0.4419760704,
0.0216967501,
0.3429943919,
-0.2445635796,
-0.1817902625,
-0.2328261137,
-0.1784706861,
-0.1435525417,
0.3312102854,
0.4548915625,
-0.0192041323,
0.1615786552,
-0.197838217,
0.0973857343,
-0.0708596781,
-0.1500713229,
-0.2035822272,
0.0518464819,
-0.2274142504,
0.1836645007,
0.1518691331,
-0.7167778611,
0.3160146177,
-0.2461054176,
-0.1420820355,
0.0163222551,
0.0305062439,
-0.0926794857,
-0.0823926702,
0.2839704454,
0.0460852683,
0.0165915955,
-0.0983635336,
-0.1527360827,
-0.1185644269,
0.0476333052,
-0.2459806055,
-0.2467967272,
-0.0715636909,
0.083106555,
-0.0353125557,
0.2100954801,
0.056959983,
0.1596895158,
-0.2359337509,
-0.1610610783,
0.0122283185,
0.1079688072,
-0.0236638505,
-0.1690436155,
0.4432069957,
0.5722749829,
-0.1904916614,
-0.0203827433,
-0.1001598835,
-0.4123748839,
0.0347052403,
0.2353800237,
-0.1050833538,
0.3270792663,
-0.5126179457,
0.009488333,
0.4096072912,
-0.4043955505,
-0.2640869319,
-0.0146396086,
-0.1036582366,
0.0169052724,
0.0618812665,
-0.2221134752,
-0.0735697225,
-0.0733288601,
0.4005431235,
-0.0504775494,
0.1311739087,
-0.2857052982,
-0.1809941679,
-0.1583045572,
-0.0461682826,
0.0271685701,
0.0974406898,
0.0271270499,
0.1707299799,
-0.1774170995,
0.1637758017,
0.0285246074,
0.0153921237,
0.360457778,
0.3656587303,
0.304626137,
0.0483873971,
-0.1808131039,
-0.0931406543,
0.1336423308,
-0.1816187501,
0.2133658379,
-0.3849080801,
-0.0144105749,
-0.3852231503,
-0.0800001025,
-0.260226965,
-0.1229651272,
0.093259193,
0.0460893065,
0.1697569638,
0.4013624787,
-0.1205973849,
0.1332775354,
0.0645348802,
0.3940294087,
-0.5741814375,
0.2775954902,
-0.1454006433,
-0.0851298198,
-0.0152849844,
0.1977675408,
0.0863131955,
-0.2329650819,
0.1167252734,
0.2829642594,
0.1624977887,
-0.0122365654,
0.5958026648,
-0.2751285136,
0.1441279352,
-0.2933014631,
0.0742353722,
-0.0074060485,
0.1238602921,
0.1390322149,
0.0064975307,
0.1745623946,
0.0916065574,
0.1102487817,
0.1289981008,
0.0054874085,
0.3452595472,
-0.0348347984,
-0.1165445298,
-0.2764839232,
0.3460580409,
0.1868558228,
0.2750221789,
-0.0800101086,
-0.2335379124,
-0.2471491396,
-0.2247966528,
-0.096962899,
0.0205949638,
0.1212185472,
-0.3004142642,
0.2324627489,
0.1540485322,
0.3634404838,
0.2016907632,
0.1185741723,
0.1071729958,
0.1104393378,
0.172407642,
-0.1105891988,
0.0749387592,
0.1939234287,
0.0081139803,
0.2232382447,
-0.1277026683,
0.050391905,
-0.2690108716,
-0.0030085365,
-0.1563004851,
0.1812728941,
-0.1465035975,
-0.0971215814,
-0.3710286617,
-0.5473519564,
-0.2929011881,
-0.0843415484,
-0.4625462294,
-0.1980142593,
-0.1817055643,
-0.0270368308,
0.0327188112,
0.0591558032,
-0.2924274206,
0.1223867685,
-0.1217258796,
-0.1199229583,
-0.2157154679,
0.0569691621,
-0.0498641506,
0.0278450772,
0.3217610717,
0.0231651757,
0.3310333788,
-0.3448907137,
0.114635773,
-0.2824025452,
-0.3251257241,
0.147124052,
0.1241643652,
0.2616081834,
0.1532167643,
0.2105140835,
0.0722509325,
-0.1196705922,
0.3903250694,
0.1341013759,
-0.0772341639,
0.0079320911,
-0.0552428737,
0.2397367656,
0.0300044678,
-0.1942543089,
-0.1402243674,
-0.2553324997,
-0.0677699745,
0.0564311258,
-0.0548762307,
-0.030268345,
0.2058977187,
0.3537765145,
-0.559940815,
-0.0433564559,
-0.0665354133,
-0.3719191551,
0.3360428214,
-0.2776235342,
-0.2710162699,
0.3012783527,
-0.2774114907,
0.5949880481,
-0.1596418619,
-0.4551083744,
0.1483637244,
0.0645554513,
0.1678708345,
0.2163108736,
-0.1184491813,
0.0491824821,
0.0213149805,
-0.0523297302,
0.013579689,
-0.0814726204,
-0.3569486737,
-0.0511715263,
0.5589960814,
-0.0684971809,
0.0786291659,
0.0684090629,
0.4786714017,
0.4028773308,
0.1334718466,
0.4516440034,
0.0872954503,
0.6159581542,
-0.0439011417,
-0.25054726,
-0.168050766,
0.0329114832,
0.1802297086,
0.0468055643,
0.5635351539,
0.1887270212,
-0.5760728121,
-0.3702651262,
-0.3555662334,
-0.3124449849,
-0.2666374147,
-0.1730479896,
0.1711354256,
0.1012064591,
0.0234099161,
0.0597661957,
-0.0263874866,
0.20437181,
0.6898044348,
0.0907154158,
0.0081736166,
0.0336517207,
0.3789702654,
-0.7080022097,
0.177066505,
-0.1999405026,
0.026301261,
0.0229962803,
0.127668947,
0.216702491,
-0.018788673,
0.6216830015,
0.0953300819,
0.0419654958,
-0.0486092679,
-0.0291160271,
-0.3157761097,
0.0924272761,
0.0278221164,
-0.0208460204,
0.1545674503,
0.5928747654,
-0.3154580295,
-0.1971944571,
0.1752250791,
0.1359915286,
-0.2190578729,
-0.2317588031,
-0.3073806763,
-0.2623601258,
-0.1213853061,
-0.3269086182,
-0.221196726,
0.3113205731,
0.4118069708,
-0.1419182867,
0.1385831982,
0.1523182988,
0.0619500689,
0.0166474693,
0.2721290588,
0.1267291456,
0.2077225298,
0.4207660854,
0.283677876,
0.2216936946,
0.6485926509,
-0.2784503102,
-0.5561393499,
-0.1726402938,
-0.0462086201,
0.0759330317,
0.2549341917,
-0.1942777932,
0.0927217305,
0.2109365761,
0.2335279584,
-0.3187154531,
0.1677996218,
0.424770087,
-0.0356996022,
-0.2502806783,
-0.2213528901,
0.1825155616,
-0.0822796077,
0.0254881289,
0.6119911671,
0.279170543,
-0.0188060105,
-0.0784471259,
-0.1266104132,
0.9042648673,
-0.2687932253,
-0.1294875741,
0.4073128104,
-0.1276658028,
0.297231555,
0.154027015,
0.1268141121,
-0.0180849452,
0.2190383971,
-0.0297416039,
-0.0342445225,
0.1612792909,
-0.0748638213,
-0.0664101169,
0.3986872733,
0.1374390572,
-0.1995113343,
-0.1338718086,
0.0169899631,
-0.0966547802,
0.1677270979,
-0.1297186911,
0.1063559279,
-0.012541662,
0.7009764314,
-0.153602168,
-0.1957848966,
-0.2491740584,
-0.1173385084,
-0.1056031436,
0.0045500551,
-0.1956379861,
0.0213313624,
0.054773476,
-0.5188840628,
0.0887022913,
0.1006741226,
-0.0801487342,
-0.1125141308,
-0.4400893748,
0.2601293027,
-0.2693245709,
-0.3994058371,
-0.0319333002,
0.0987920761,
0.2109642625,
-0.0006943815,
-0.1603876054,
0.0480662212,
0.0254751947,
0.0005275561,
0.2996791005,
-0.0604753494,
-0.1382228881,
-0.0428050458,
-0.1881848872,
0.0786639825,
0.1960265338,
-0.1662231386,
0.1293876618,
0.2950852513,
-0.1340368539,
-0.3536821008,
0.1474451423,
-0.1143755093,
0.056810379,
0.4100631475,
-0.2306810319,
-0.3865357339,
0.1940339506,
0.3112262785,
-0.1955406666,
-0.1101503447,
0.2158872932,
0.0721121579,
-0.5249445438,
0.0313302726,
0.1951517165,
0.4888616502,
-0.0043639308,
-0.0386480056,
0.2547053099,
-0.7374970317,
-0.1480491757,
-0.3607775867,
-0.2593630254,
0.2665599287,
-0.1515922397,
0.0607856661,
-0.1825423092,
-0.0384750143,
0.2826068699,
-0.0899165273,
-0.235411182,
0.2019675821,
-0.193925187,
0.0402217694,
0.2166131288,
0.1754211485,
0.127701059,
0.0524841659,
0.0962223336,
-0.1248779446,
-0.3624171019,
-0.1364046931,
0.0337149166,
0.1087866127,
-0.0152021535,
-0.1299058497,
0.0349425524,
-0.1888576448,
0.038543582,
-0.1587520987,
-0.1408676505,
0.2055957466,
0.1142646372,
-0.1182228848,
0.1314356178,
-0.0177492443,
-0.3116677403,
0.3304659724,
0.1340046078,
0.2897087634,
0.2980371118,
-0.1655780673,
-0.1955422759,
-0.030240817,
-0.1134231538,
-0.0098796654,
-0.0035828457,
-0.1396647394,
0.3032437563,
-0.0385261476,
0.0621066317,
-0.0363335647,
0.1861911565,
0.0858511925,
-0.1964635253,
0.3042490482,
0.4258560538,
0.0797967389,
-0.3316408098,
0.1336796731,
0.148348853,
0.0621008165,
-0.0390260816,
-0.1588810384,
-0.2443132997,
0.165300265,
0.0001056554,
0.0717247799,
0.2031347603,
0.1051311195,
0.3249286115,
0.4476816952,
0.2443683296,
-0.0635736063,
0.2858733237,
0.1709223986,
0.0429591984,
0.4747556448,
-0.1251417249,
0.3736906648,
-0.6186771989,
0.3184230924,
-0.0067492919,
-0.4154499173,
-0.0951471552,
0.1269235015,
-0.0572543852,
-0.160979256,
-0.1594771892,
0.3915149868,
-0.1774334162,
0.1014197171,
-0.1726043224,
0.0407884121,
0.0082495157,
0.0605956502,
0.134408623,
-0.305688858,
0.0596013665,
-0.0243143924,
0.2929195166,
-0.3246059716,
-0.1594115347,
0.1317431778,
-0.1052237377,
-0.1515744478,
-0.228268221,
0.1309054196,
-0.0233432073,
0.0086625069,
0.160698235,
0.2212691009,
0.0177660938,
-0.0087297698,
0.2035346776,
0.392832607,
0.0582294427,
0.050092563,
-0.1159053966,
-0.1569764316,
-0.0361394249,
0.0364917442,
0.2557415366,
0.0382204391,
0.0677730069,
0.3389041126,
0.1214954853,
-0.1665450782,
-0.2820751369,
0.0614655837,
0.2272479236,
-0.2657392323,
0.5067764521,
-0.5798208117,
-0.0198484156,
-0.2129505277,
-0.0859583244,
-0.5317123532,
0.5941919088,
0.2756079435,
-0.3396124542,
-0.1432625353,
-0.1595933139,
0.0406142101,
0.0290215462,
0.4412977695,
0.3815445304,
0.4354869723,
-0.2590343654,
-0.5794157386,
-0.6965132952,
0.1823439151,
-0.1787941456,
0.0366054364,
-0.0486075394,
0.0823874101,
-0.1335342824,
0.3341454566,
0.3072035611,
0.0891759172,
0.3979133666,
-0.0584488101,
-0.0807564929,
-0.1679401994,
-0.1781061143,
-0.0150633436,
-0.1068007648,
-0.171102941,
0.0387679711,
-0.4375112057,
-0.0356997512,
0.1228634566,
0.1446998417,
-0.1124498993,
-0.0667095184,
0.4605040252,
-0.0549264513,
0.2260177433,
0.0524841584,
-0.0462034717,
-0.1337999254,
-0.229838118,
0.2762641013,
0.0127296094,
-0.0151467891,
-0.0203664247,
-0.2614907026,
-0.2483704388,
-0.2103631198,
0.4305938482,
0.1235956922,
0.2976337075,
0.0021889964,
0.0183613691,
-0.0310735032,
-0.094047524,
0.2442736626,
-0.0527427718,
-0.166269511,
-0.0464553274,
-0.1476933062,
-0.1338102072,
0.6335508823,
-0.3730254173,
0.1740249395,
-0.1673175842,
0.0666933209,
0.0493965782,
-0.2080425322,
-0.728030324,
0.2806952298,
0.3322631121,
0.3692112565,
-0.1336750537,
0.1337775737,
-0.2310559303,
-0.0583757162,
0.1305672675,
0.0492010564,
-0.0403045416,
-0.0162086096,
0.1304627508,
0.0073383371
] |
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.0579443052,
-0.2256722003,
-0.0337307602,
0.6018185616,
0.3969440758,
0.1228495836,
-0.0771400481,
0.392708987,
-0.4282575846,
0.2528086305,
-0.3340741098,
0.1994092017,
-0.1437428147,
-0.2634530067,
0.0329601839,
-0.3631289899,
-0.1055584773,
-0.035641022,
-0.1782318056,
0.1402929276,
-0.0773813128,
0.349183768,
-0.1713869721,
0.1461028755,
0.0305642486,
0.1640694886,
-0.1523555368,
0.281820178,
-0.1676367521,
-0.3405278325,
0.4034927785,
-0.1659759879,
0.2667889297,
0.7545295358,
-0.0001155138,
0.1582777202,
0.2871519029,
-0.1801173389,
-0.2258957177,
-0.3208476603,
-0.2181344926,
-0.0076235603,
0.0299345981,
0.0575376451,
-0.3109139502,
-0.025061965,
0.0147860609,
-0.1243566498,
0.0784540549,
0.2548887134,
0.19966425,
0.566978395,
0.1579412818,
-0.2838997245,
0.121088028,
-0.1600351036,
-0.1550653875,
0.6935015917,
0.1979852468,
0.5019049644,
0.1076984033,
0.4367839694,
0.0512147918,
-0.000036584,
0.1703889072,
-0.1627652645,
0.3027931154,
-0.3620833457,
0.2260488123,
0.3412950635,
0.4112472534,
-0.0895616487,
-0.3002088368,
-0.2041231841,
0.0630145818,
-0.1047642082,
0.2831819057,
0.2124741226,
-0.2709572613,
0.2240070403,
0.059697818,
-0.3989566267,
-0.0375753678,
0.2220339328,
-0.0665910318,
-0.3245231807,
-0.2249276191,
-0.0477191806,
-0.0698753744,
-0.1235075071,
-0.1092794016,
-0.0962816551,
-0.0449427068,
0.4012902677,
-0.2000896186,
0.0081391074,
0.0980038121,
0.1805592924,
0.0718981549,
0.2427893877,
-0.0923173949,
0.1385718435,
-0.4070571959,
0.052827213,
0.2572010159,
-0.0139702782,
0.0244921744,
0.0129903695,
0.1060974374,
0.5729393959,
0.1416832954,
-0.0277773868,
-0.3655085266,
-0.4114145637,
-0.4233095348,
0.0277434532,
0.3314837813,
-0.2584205568,
-0.1657231152,
-0.2332686633,
-0.1796721667,
-0.1320351362,
0.3118087351,
0.4670644403,
0.0070981919,
0.1362685859,
-0.194995895,
0.1143865809,
-0.0724022388,
-0.1776787639,
-0.242113024,
0.0321828984,
-0.2401956618,
0.1697180569,
0.166734308,
-0.7531400323,
0.3183695078,
-0.2839641869,
-0.1498495489,
-0.0083344309,
0.0144483363,
-0.0589313246,
-0.0803300738,
0.2743906677,
0.0371802077,
0.0159660708,
-0.1051174253,
-0.1115517989,
-0.1097053513,
0.0255912561,
-0.2360405475,
-0.2386387736,
-0.042968221,
0.0918829516,
-0.0386213847,
0.2000917494,
0.0625074133,
0.1967735142,
-0.2370225042,
-0.1061922461,
-0.030195456,
0.1145453453,
-0.0816156715,
-0.1677069962,
0.4616363943,
0.5593080521,
-0.2058151364,
-0.0246673655,
-0.0757971033,
-0.4332314134,
0.0128629319,
0.2552057803,
-0.0984492302,
0.3181890249,
-0.5351843834,
0.0659499168,
0.3240581453,
-0.349384129,
-0.2325605005,
-0.0395769924,
-0.09581431,
0.0048002056,
0.0316052847,
-0.2354948074,
-0.0602966771,
-0.0936400816,
0.4298361242,
-0.0275839362,
0.1246362627,
-0.2872690856,
-0.1498780102,
-0.1584854871,
-0.0458610803,
0.0432471186,
0.1069768146,
0.0484396853,
0.1735406965,
-0.1535313129,
0.1848181039,
0.0487172045,
0.0185189098,
0.3353230655,
0.3199555874,
0.2681529224,
0.0523091517,
-0.1446799189,
-0.11347498,
0.1642010659,
-0.1607924849,
0.2338317931,
-0.3601340652,
-0.0121704116,
-0.3953308761,
-0.0618145652,
-0.2387171686,
-0.1459469944,
0.1087271944,
0.0498259068,
0.1492777616,
0.4205012023,
-0.129273057,
0.1097556353,
0.0478613451,
0.3824838102,
-0.5560263991,
0.2685637772,
-0.1329843104,
-0.0726380423,
0.0431461744,
0.1757272184,
0.0637691841,
-0.245411858,
0.0792405754,
0.2824503481,
0.1595968306,
0.0057040611,
0.5873301625,
-0.2710193992,
0.1232920289,
-0.3047970533,
0.0646835342,
0.0044437563,
0.1039255336,
0.1204294935,
0.0022750127,
0.2172100991,
0.1170865744,
0.0793343708,
0.1173364148,
0.0420594923,
0.359328866,
-0.0393533036,
-0.0884054825,
-0.2660075724,
0.3219718337,
0.1995387971,
0.2781038582,
-0.0838950202,
-0.2605070174,
-0.2462642938,
-0.226967454,
-0.0955888256,
0.022151472,
0.1218469143,
-0.324801445,
0.2021922916,
0.1915892959,
0.3560812771,
0.1836344451,
0.1089359,
0.1458858252,
0.1345482171,
0.1329139918,
-0.1289665103,
0.0620397888,
0.1720375121,
0.037038289,
0.1893457323,
-0.140074566,
0.0406122208,
-0.3171598911,
-0.0203471482,
-0.1183284149,
0.1915405393,
-0.1601588279,
-0.1411345899,
-0.379851073,
-0.5577112436,
-0.2689436972,
-0.0469791926,
-0.4519859552,
-0.2289761007,
-0.1617730409,
-0.0296157133,
-0.0148885837,
0.0779268742,
-0.3301405609,
0.1626654416,
-0.0876999944,
-0.0723215491,
-0.2258998454,
0.0785858929,
-0.0488438308,
0.0400495604,
0.3276124597,
-0.0029397812,
0.3127987385,
-0.3487844467,
0.1278117597,
-0.2811443806,
-0.3291569352,
0.1592872292,
0.1283325851,
0.2206984162,
0.1335713267,
0.2108579427,
0.0832080096,
-0.1141858324,
0.3580521643,
0.0815690979,
-0.0978445262,
0.0026837431,
-0.0238127355,
0.2314570099,
0.0320732147,
-0.2025595158,
-0.1074046493,
-0.252003938,
-0.0685241893,
0.0493982695,
-0.0499443933,
0.0068834894,
0.1808725595,
0.3758723438,
-0.5315432549,
-0.0625066906,
-0.0959485024,
-0.4061949849,
0.3328712285,
-0.2945601642,
-0.311149776,
0.3056973815,
-0.2641010582,
0.5637581944,
-0.1587351561,
-0.4655625224,
0.1995111406,
0.0502376556,
0.1819996387,
0.23394683,
-0.143017292,
0.0354514606,
-0.000908462,
-0.0746005476,
-0.0022464965,
-0.0792551041,
-0.3318122029,
-0.0562985912,
0.5509485602,
-0.0979867727,
0.0411277115,
0.1134249121,
0.4031956792,
0.3871582448,
0.1285030544,
0.4658761621,
0.1068722457,
0.6118927598,
-0.0472188108,
-0.2056021988,
-0.1198549569,
0.019816827,
0.1720660627,
0.0831651166,
0.5636384487,
0.1724125147,
-0.5466662049,
-0.3913594782,
-0.3036636114,
-0.3372726142,
-0.2823137939,
-0.2080495805,
0.1505244225,
0.1003944352,
0.026642995,
0.0706415996,
-0.0146531519,
0.2296503633,
0.6586833,
0.0853422955,
-0.0068983324,
0.0241844468,
0.4207141697,
-0.7590504885,
0.1812449396,
-0.2369685173,
0.0642021447,
0.0293871053,
0.1057670265,
0.2163593173,
-0.0039226222,
0.6508569121,
0.1021030843,
0.1004900411,
-0.0330603942,
-0.0383406766,
-0.3130973876,
0.0892240778,
0.0177642591,
-0.0205396265,
0.1522284746,
0.6132918,
-0.2646584809,
-0.2038006335,
0.1580059975,
0.1116837636,
-0.1989921778,
-0.2295607924,
-0.2762851119,
-0.2647714913,
-0.1234835014,
-0.3163934648,
-0.2108535469,
0.302158922,
0.402240783,
-0.1270831376,
0.1152558476,
0.1207250133,
0.0784331858,
0.0421376079,
0.2388521731,
0.1956625283,
0.2288539112,
0.4308675826,
0.2876802683,
0.2100606114,
0.638499558,
-0.2398590297,
-0.5860438347,
-0.1227776557,
-0.0511284769,
0.069818601,
0.2586890459,
-0.2100683004,
0.0858639106,
0.1924999505,
0.2209434211,
-0.3436309397,
0.2258488834,
0.4244188666,
-0.0344653614,
-0.2482138425,
-0.208871454,
0.169401899,
-0.1192337349,
0.0178049859,
0.5995386839,
0.2700914145,
-0.0264409501,
-0.0489984415,
-0.1091582179,
0.8627339005,
-0.3173599541,
-0.1430608779,
0.3974966705,
-0.1369401217,
0.2823214829,
0.2000729591,
0.1165136993,
-0.0252038036,
0.1742736846,
-0.017088335,
-0.0182445757,
0.1442667693,
-0.074038133,
-0.028407136,
0.3510408103,
0.12942563,
-0.2327609062,
-0.1022557616,
0.0341765136,
-0.0630761087,
0.145724535,
-0.1192373261,
0.1204877794,
0.0023409061,
0.6824350357,
-0.1257651895,
-0.1849945039,
-0.2092804313,
-0.0909752548,
-0.1011131108,
0.0343022048,
-0.1515926868,
0.029892331,
0.0362039208,
-0.4707597196,
0.1246273518,
0.1019477993,
-0.0547828302,
-0.1186409667,
-0.4549556375,
0.2834397256,
-0.2564649582,
-0.3910733461,
-0.0325379185,
0.1019547805,
0.2347443104,
0.0108647402,
-0.1453995705,
0.0657999963,
0.0513237081,
-0.0076991012,
0.2702140212,
-0.0834145397,
-0.1498304158,
-0.0395019688,
-0.1611669958,
0.0572364964,
0.1878028959,
-0.1946087182,
0.1414125711,
0.2921892703,
-0.1358781308,
-0.3849088252,
0.1558651924,
-0.1216332018,
0.0463036597,
0.4255723655,
-0.2424823493,
-0.3623393774,
0.1913565546,
0.3384473622,
-0.1666398197,
-0.1054475009,
0.239501819,
0.106362626,
-0.5258745551,
0.0544810519,
0.1539386362,
0.4710281193,
-0.0193927698,
-0.003768112,
0.2319387943,
-0.7504908442,
-0.1091420576,
-0.3552948236,
-0.289965719,
0.2494616508,
-0.213390708,
0.0785017386,
-0.1959082931,
0.0190292951,
0.2596178651,
-0.0680848062,
-0.2487381697,
0.2140538394,
-0.2045211345,
0.0116546443,
0.1629925817,
0.1818401515,
0.1322844774,
0.0485198647,
0.1022282541,
-0.0928019062,
-0.3593687713,
-0.1395339221,
-0.0055817897,
0.0957578644,
-0.0088074729,
-0.110088028,
0.0497740507,
-0.1750461459,
-0.0145619027,
-0.1571630687,
-0.1505517662,
0.2373261601,
0.1356775761,
-0.112529099,
0.1605957448,
-0.0496460237,
-0.2892831862,
0.3091968894,
0.155746758,
0.2655004561,
0.2623184025,
-0.1723350585,
-0.2354276627,
-0.0431110561,
-0.1349602342,
0.01860529,
-0.04056523,
-0.1381247491,
0.2875163555,
-0.0203584749,
0.0428125001,
-0.0327242985,
0.2053018361,
0.0751457065,
-0.1998060197,
0.2819977999,
0.4231080711,
0.0853480101,
-0.3414815664,
0.1376573592,
0.1228300333,
0.0577864163,
-0.0528536811,
-0.1804598421,
-0.2473853081,
0.1940377355,
-0.0186296236,
0.0420611538,
0.2001725435,
0.1539035887,
0.3345660269,
0.4152137637,
0.2362952828,
-0.0660930574,
0.3193457723,
0.1658215374,
0.0652546361,
0.492967695,
-0.1017904282,
0.3545519412,
-0.6261975765,
0.311946243,
0.0161277689,
-0.4276146591,
-0.0734484792,
0.1491997689,
-0.0892674625,
-0.1475450397,
-0.1491675377,
0.4075738192,
-0.1782062948,
0.0909319818,
-0.182209909,
0.0398202837,
0.0078867534,
0.042084299,
0.1249307171,
-0.319499284,
0.0690997466,
-0.0104813371,
0.2825874984,
-0.3300523758,
-0.1321211457,
0.1035321355,
-0.1019439027,
-0.1543002576,
-0.2264276445,
0.1020386219,
-0.0165674519,
0.006534006,
0.1416333914,
0.1948204488,
0.0223912541,
0.0422548465,
0.1814017594,
0.3701475859,
0.0252519492,
0.0633056089,
-0.1117471755,
-0.1309584826,
-0.0337583199,
0.0416672602,
0.2496416867,
0.0743030086,
0.0741260424,
0.3713854849,
0.1213885769,
-0.1566477716,
-0.2803468406,
0.0927967206,
0.2560225427,
-0.2445173413,
0.4824369252,
-0.5761266351,
0.005579228,
-0.1850952506,
-0.0921317115,
-0.476213783,
0.5811572075,
0.2458809912,
-0.3841913939,
-0.1372477412,
-0.1609368622,
0.0534713715,
0.010903066,
0.4640227258,
0.3801372945,
0.4002384543,
-0.2473380417,
-0.5967435241,
-0.713870883,
0.2029966265,
-0.1287075132,
0.0140652414,
-0.0168940015,
0.0979117155,
-0.1094404906,
0.3211934566,
0.2787204087,
0.090926066,
0.3800649047,
-0.0781400949,
-0.089538753,
-0.1559941173,
-0.2007278651,
-0.0063409097,
-0.1218643561,
-0.1536653489,
0.066620864,
-0.4474489391,
-0.0313929766,
0.131427601,
0.1380231231,
-0.1137946844,
-0.058491271,
0.4580973685,
-0.0454884619,
0.2134418637,
0.0362048261,
-0.0344389379,
-0.1763319671,
-0.2321976125,
0.2459512502,
-0.0233409405,
-0.0381549075,
0.0040171393,
-0.2301501632,
-0.2383050621,
-0.2027827799,
0.4307765067,
0.1455102414,
0.2988997698,
-0.0486849509,
0.0791117996,
-0.0278560948,
-0.0889399424,
0.2718877196,
-0.0235654023,
-0.1776830405,
-0.0572473332,
-0.1270520687,
-0.1526108384,
0.6423469186,
-0.3883253336,
0.1675479263,
-0.150797978,
0.0455478802,
0.0417217389,
-0.2181849927,
-0.7388222814,
0.2959372401,
0.3184670806,
0.3756460547,
-0.1593205184,
0.1444540471,
-0.2346391827,
-0.0697991177,
0.1374530047,
0.0760496482,
-0.0325059257,
-0.0383272059,
0.1242020205,
-0.01543763
] |
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.0143734785,
0.0021064377,
0.2360561341,
0.0338601544,
0.0631666258,
0.054252781,
0.1971954703,
-0.0232600011,
0.1844014227,
-0.199016884,
0.3482317924,
0.1889101714,
-0.0352049135,
0.1387395263,
-0.2517964542,
0.0296935439,
0.2635377347,
0.0581075922,
-0.0975889787,
-0.2116295993,
0.1820753813,
-0.4031838179,
0.2455021739,
-0.1433736533,
-0.0048096566,
0.0279012434,
0.1099602953,
-0.3365816474,
-0.2690231502,
0.3799153268,
-0.2225336432,
0.3279036582,
0.6063833237,
-0.0001109609,
-0.0759147406,
0.4458804429,
0.1000097319,
-0.3918360174,
-0.405583024,
-0.423722744,
-0.0974916294,
-0.0088990508,
-0.2199466974,
-0.0336323902,
-0.3518975377,
-0.0263602305,
0.0464491956,
0.1087761298,
0.4080131352,
0.2161209732,
0.3451708853,
0.1994796991,
-0.0758984387,
0.1112233996,
-0.2041802406,
-0.2938868999,
0.2485888004,
0.3716219962,
0.0193181783,
0.2147425115,
0.4076727033,
-0.0129354503,
-0.1191934943,
0.0002605273,
0.0962100998,
-0.2352771759,
-0.3271326721,
0.1940367371,
0.4193381667,
0.7381362319,
-0.0773253217,
-0.3165581524,
-0.1083419174,
0.1998565793,
-0.1682269722,
0.2259470522,
-0.0250786413,
-0.1283593923,
0.2104656547,
0.1944339573,
-0.369530201,
-0.1503366828,
0.2880271375,
-0.0677541271,
0.6986855865,
-0.0293511543,
0.0186185315,
-0.1005323306,
-0.2014933676,
0.6673573852,
-0.0795007721,
0.1071669832,
0.0952381417,
-0.1010598913,
-0.0074740881,
0.0782536119,
0.2704423964,
0.0974567905,
-0.5342894197,
0.0890708715,
0.0713901669,
-0.172648862,
0.1293274611,
0.096672602,
0.4672060311,
0.1136367619,
0.0596067719,
0.3231092691,
0.563496232,
-0.0561739095,
-0.0862277001,
-0.2202482522,
0.0366755202,
0.0765395463,
-0.1212230921,
0.2347896844,
-0.2797558308,
-0.1778756678,
0.1110152304,
0.0104962587,
-0.1117836386,
0.134074688,
0.3343396783,
-0.0520978533,
0.4685736001,
-0.1090250462,
-0.0353923701,
-0.2961291969,
-0.0141349835,
-0.1227807775,
0.2299467027,
-0.2976326048,
-0.0304369386,
0.0177037679,
-0.0002730434,
0.3745613396,
-0.1093473285,
0.2685654163,
-0.0799271092,
0.0472405702,
-0.058980681,
-0.1680406928,
0.2072969079,
0.1856457293,
0.0938888565,
-0.0393016711,
-0.5908215046,
-0.0037345737,
0.2500285208,
-0.5024211407,
-0.1110800505,
-0.3087926507,
0.207456544,
-0.0394152217,
-0.0953392759,
-0.2219096124,
0.0893994123,
-0.1252564341,
-0.2733161151,
-0.0483467467,
-0.1564325094,
-0.0715264678,
-0.0714869052,
0.0706886426,
0.1540297121,
-0.3954990506,
-0.0663111508,
-0.0150676183,
0.0924509689,
0.0102317436,
0.2509194314,
-0.2897425294,
0.1805295944,
-0.4087097049,
0.2994856834,
0.4748592973,
-0.6277832985,
-0.4702950716,
-0.155184865,
-0.2183941305,
0.1764794141,
-0.173221454,
-0.1397212297,
0.0623196699,
-0.024624018,
0.3741482198,
0.2529840171,
0.1814846098,
-0.1765973866,
-0.3372810483,
-0.2627297044,
-0.1873219758,
0.0544971079,
0.2701176703,
-0.0965783969,
0.2220113724,
0.0977879688,
0.2185599655,
-0.3049599528,
-0.0352814607,
0.3708950579,
0.2777455151,
0.0029750871,
0.0427018739,
-0.1631829739,
-0.2401780784,
0.2356499434,
-0.0651693344,
0.2263504267,
-0.1303497702,
-0.1732661724,
-0.5030013919,
0.0282156765,
-0.4124867916,
0.0118033895,
0.2027695179,
0.0639728755,
-0.0951890275,
0.382122308,
-0.1254786253,
0.0553834438,
-0.064860642,
0.0590665303,
-0.1425853521,
0.300401181,
-0.277237922,
0.0521435924,
0.009965891,
0.3502000272,
0.324639529,
0.0650505573,
-0.0587194003,
0.1411346495,
-0.2738316655,
-0.0084211873,
0.6433113813,
-0.0843108669,
0.2559210062,
-0.4660769105,
0.2186954767,
0.0654229075,
0.1841396242,
0.0361103155,
-0.0412481762,
0.2195615321,
0.2949728072,
0.1033336222,
0.1645792723,
0.0750198662,
0.3924271166,
-0.2022891641,
0.0477028042,
-0.380610317,
0.1593781114,
-0.2764972448,
0.157420218,
-0.1935890317,
-0.2063789666,
0.2418935299,
0.4138445556,
-0.2443423718,
0.226642102,
0.1589666307,
-0.2687551677,
-0.0573768578,
0.2165175378,
0.3593729734,
0.3308876455,
0.1574571729,
0.3751512766,
0.0756047815,
-0.0619225241,
-0.0286792796,
0.2185886651,
-0.0385723971,
0.1342400759,
0.2594104707,
0.2180500776,
0.0059734695,
-0.3377842903,
-0.2373338789,
-0.1496368945,
0.2096709311,
-0.0474483334,
-0.0373310857,
-0.2840378582,
-0.239445895,
-0.0997330919,
-0.1130312458,
-0.193663314,
-0.43246907,
0.037659362,
0.0136796124,
0.1823806614,
0.1621530056,
-0.1680107266,
-0.0975626111,
-0.0643108338,
-0.1069128513,
-0.3256937265,
-0.0213216096,
-0.4002252519,
0.0550168157,
0.1399587691,
0.0118894512,
0.0437358283,
-0.4289548099,
0.0444941148,
-0.3928018808,
-0.4904257953,
0.3152218163,
-0.0062969141,
0.3915445805,
-0.0743701309,
0.2267782986,
-0.0817344561,
-0.1939723641,
0.2416509241,
-0.3259667158,
0.0569709018,
-0.026868891,
-0.0811774284,
-0.0201229919,
0.1438261569,
-0.2476808131,
-0.3624426425,
-0.0988986343,
-0.3223589063,
-0.1130256504,
-0.0283180755,
0.166383937,
0.0870402306,
0.2570315599,
-0.0655410513,
-0.1978176534,
-0.2999258041,
-0.2391169369,
0.4530376792,
-0.2117198706,
-0.2243976593,
0.2539779544,
-0.1193229854,
0.2886126339,
-0.2418438941,
-0.5117623806,
-0.4658150077,
-0.0748426169,
0.4123662114,
0.093615368,
0.099067241,
0.2016833276,
0.0559698083,
-0.0554732159,
-0.0769423246,
-0.1939580142,
-0.3744462729,
0.0871131197,
0.433640331,
-0.0294840783,
0.0110902078,
0.0580508448,
0.4314291477,
0.1037614048,
0.3736896515,
0.4079247713,
0.0739924461,
0.4846548438,
-0.1832887679,
-0.1795471311,
-0.004560749,
-0.1673393995,
-0.1842821389,
0.1388660818,
0.3608132899,
-0.4884893298,
-0.3888811171,
-0.2070564777,
-0.5439020991,
-0.2546104491,
-0.253385365,
0.3486426473,
-0.0121653117,
0.277934432,
0.081195429,
-0.1389021575,
-0.1706607789,
0.0334695391,
0.4500014186,
-0.1177518219,
0.0116630252,
-0.3267325163,
-0.0038247143,
-0.5948860645,
0.1245975345,
-0.0487172343,
0.463447243,
0.0193506125,
0.1649515331,
0.1243018061,
-0.1393500417,
0.1326627284,
-0.5171252489,
0.0715036839,
0.0174522959,
0.294475168,
-0.1008058414,
-0.0299445949,
-0.1241525486,
-0.0218143258,
0.0883309841,
0.3394629359,
-0.196177274,
-0.0545369983,
0.428260684,
0.309588939,
-0.0725224987,
-0.0278757513,
-0.2378899604,
-0.6871279478,
-0.0488938838,
-0.1485823691,
-0.0068680146,
0.1395154297,
0.0660219863,
0.0056034229,
0.0002003085,
0.1595850885,
-0.0128867831,
0.2413862944,
0.1181754693,
0.1687460691,
-0.0836930647,
0.0870015696,
-0.0382890478,
0.2488385886,
0.4720657468,
-0.1361257434,
-0.5144055486,
-0.2439081371,
-0.0887472034,
0.0590644255,
0.246493876,
-0.1293630749,
-0.2327955365,
0.0409934632,
0.1670073122,
0.1961424202,
0.2150183022,
0.3455316424,
0.2300861031,
-0.5121198893,
-0.0948592424,
0.3955669701,
0.0403895825,
-0.021568276,
0.4098515809,
0.1562863588,
-0.2189686,
0.1863828748,
-0.073267296,
1.0719258785,
-0.0911128297,
0.2113977671,
0.3607044816,
-0.169021517,
0.0808521584,
0.0697210133,
0.098909691,
-0.1443688571,
-0.2136269361,
-0.1377221197,
0.0493168421,
0.0133373458,
-0.2496156543,
-0.1779063195,
0.468197763,
0.0500932857,
0.2999772429,
0.374335736,
0.2124055028,
-0.133214578,
-0.0835403427,
-0.1145633757,
0.116728507,
-0.1161135435,
0.1636294127,
-0.274577111,
-0.0361180156,
-0.0691803023,
-0.1278301477,
-0.2191942781,
0.1846355498,
-0.2150387615,
0.0012128629,
-0.2951928079,
-0.6971206069,
-0.0881367251,
0.4381738305,
-0.0814207941,
0.1437569112,
-0.3321284652,
0.3885343671,
-0.1205432937,
0.0194389392,
0.0433051549,
-0.4239304066,
0.0485432521,
-0.0740097016,
-0.456086129,
0.0465346873,
-0.0023855274,
0.086826846,
-0.1821129918,
0.093343012,
0.0025488352,
-0.0098117497,
-0.1035378799,
0.1148665473,
0.1216751635,
-0.4113839567,
0.1354813278,
-0.1152538806,
-0.0680666119,
-0.049267754,
0.2187410146,
-0.2328513414,
-0.0105874119,
0.2659333646,
0.0526386313,
-0.1703012884,
0.2356358021,
0.0302282255,
-0.2531352937,
-0.1517297328,
0.0054126149,
-0.1749430448,
-0.3292524219,
-0.1728734076,
0.0499938093,
0.0707304254,
-0.2453924716,
0.2282729894,
0.1984299868,
-0.2476923764,
-0.1196608394,
-0.4557781816,
-0.070285432,
0.2636732161,
0.0156578347,
0.125276044,
0.0351102725,
-0.1545595974,
0.0171416886,
-0.1899528056,
-0.3249896765,
0.1302816123,
-0.1726171523,
-0.100245446,
-0.0611154251,
-0.001017201,
0.2794390023,
-0.0123634646,
0.1607062221,
-0.0685745552,
0.0506453253,
-0.1711771339,
-0.0407179557,
0.1101028994,
0.1396260262,
-0.0997908935,
-0.0133232297,
-0.2990201116,
0.1617020965,
-0.2171312869,
-0.018371027,
0.2007294148,
0.0666031539,
-0.0076033277,
0.2076284438,
0.1514817625,
-0.0018375778,
0.3704829812,
0.1704531759,
0.2995702922,
0.05928801,
0.086931631,
0.1470435858,
0.158534348,
0.2571715117,
-0.1194196716,
-0.1919035316,
0.4616596103,
0.3368366659,
-0.3351194859,
0.1151584089,
0.1822771132,
0.1819806546,
0.2565377057,
-0.2351098508,
-0.169100672,
0.3897413611,
0.2337060571,
-0.4088407755,
-0.2705037892,
0.7051084638,
0.1384461522,
0.0195326824,
0.1763793081,
0.1471142471,
-0.1689487994,
0.0990509838,
-0.0430024751,
0.4494206011,
0.1409200281,
0.2215244472,
0.2571347952,
0.0046804487,
0.1889476478,
0.2908560634,
0.0605816804,
-0.0078082909,
0.532787025,
-0.0477705114,
0.3120150864,
-0.0900689363,
0.5175081491,
-0.3650617599,
-0.1609178185,
0.1385194063,
-0.2704816461,
0.0875789076,
0.0842291713,
0.0132959355,
-0.1740370989,
-0.0349228308,
0.1546516865,
-0.1705438346,
0.0971434563,
-0.2005711943,
-0.033707194,
-0.1742655933,
-0.3630826175,
0.3250049055,
-0.0705806464,
0.0345463492,
0.0586426295,
-0.2898454666,
0.1423874348,
-0.0971454456,
-0.0924586356,
0.0728589371,
0.3994549215,
0.1110663339,
-0.0131527176,
0.3374659717,
0.3209855556,
0.2688961625,
-0.3577325344,
0.3398106396,
0.3719190359,
0.134842962,
-0.2798981369,
-0.0526651256,
0.0249110628,
-0.1245269328,
-0.0772818625,
0.0438014902,
0.162882641,
0.0021941136,
0.2933055162,
0.1943155676,
-0.2242334336,
0.3932964802,
-0.0111730285,
-0.0338103287,
-0.0537447892,
-0.4464102685,
-0.0781534389,
-0.079245165,
-0.3510480821,
-0.0094353752,
-0.2264391035,
0.6084110141,
0.4803207219,
-0.132438764,
0.0656328276,
-0.1473208964,
0.0700647905,
0.1007646397,
0.1866697371,
0.5567757487,
0.0488678999,
-0.1949884444,
-0.2805473506,
-0.8394193649,
0.2146111876,
-0.4184158444,
-0.2192977816,
0.1283458173,
-0.1578164697,
-0.1890800595,
0.1042638272,
0.4804939926,
0.4738732874,
0.1469684541,
0.2053223103,
-0.3954742551,
-0.3286799192,
0.2986510098,
0.096193552,
-0.0835272744,
-0.2910260856,
-0.0635522753,
0.0593113154,
-0.0091489432,
-0.0210534241,
0.000232186,
-0.2736733854,
-0.478951633,
0.6185750961,
0.2002346963,
0.130237788,
-0.20664078,
-0.2219356,
-0.0627419651,
-0.2315331399,
-0.057964392,
0.2054092437,
0.1275552213,
0.10051018,
-0.0311250761,
0.0066563007,
-0.2374490499,
0.1402209252,
0.1548161656,
0.1914416701,
-0.2015694082,
0.1249347627,
0.0730814934,
0.0456830524,
0.1138536185,
0.3327822685,
-0.1859225482,
0.2362199724,
-0.0052303555,
-0.467592746,
0.4862316847,
-0.0227632225,
-0.3595174253,
-0.092195496,
0.107911177,
-0.0812979937,
-0.1136263087,
-0.1258212328,
0.1503780335,
0.2672080994,
0.1806958467,
-0.2453930974,
0.1420570016,
-0.0677606612,
0.1050694287,
0.0141632892,
0.4371634722,
0.1009188145,
-0.2681317627,
-0.0257534739,
-0.0293720122
] |
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.4085455239,
-0.1528587341,
-0.1239809915,
0.0641505867,
0.1121258512,
0.103505075,
0.3430986404,
0.2238982916,
-0.1365936846,
0.0548987947,
-0.0883903876,
0.28764081,
0.0480185561,
0.0611999109,
-0.1352098882,
0.0198289193,
-0.0553884692,
-0.0109331124,
-0.3337740898,
0.126652509,
-0.2173225135,
0.3459282219,
-0.319671154,
-0.0665074438,
-0.2649058104,
-0.2171353847,
-0.0884472802,
0.2700226009,
-0.0890712664,
-0.3350607753,
0.0057383822,
0.1406821012,
-0.037914034,
0.5401780009,
-0.0001011049,
-0.0078355093,
0.3128855824,
0.0935641378,
-0.0844171345,
-0.07104747,
-0.3134647608,
-0.4694291055,
0.0806843787,
-0.1916164607,
-0.0022027071,
0.1091367081,
-0.0123658404,
-0.3157415986,
0.3191043735,
0.3372054994,
0.3364603817,
0.5836627483,
0.0019611595,
-0.3067323864,
0.0630690977,
-0.3369419873,
-0.1633456796,
0.2865933776,
0.4009723663,
-0.1956420988,
-0.0135743786,
0.1969816387,
-0.2139666826,
0.2128461748,
0.0626572669,
0.0328397639,
-0.0416465998,
-0.4304126501,
0.262484163,
0.1870163381,
0.5149673223,
-0.327174753,
-0.0373377241,
-0.056867823,
0.0038170558,
-0.232515052,
0.2190862894,
-0.0369224697,
-0.1316184253,
0.2236547321,
-0.0362175778,
0.0710480511,
0.0526875705,
0.038464535,
-0.2217682153,
-0.0460676104,
-0.0829894841,
-0.0408101678,
-0.041215837,
-0.1363699734,
0.3713528216,
-0.007810358,
0.0284169149,
-0.0238214452,
-0.5177696943,
-0.0575568713,
0.3645917475,
0.0355681404,
0.0987454131,
0.0120878536,
-0.0397548936,
0.109459281,
-0.0714508817,
0.3100285828,
0.1683249921,
-0.107332319,
-0.0055005797,
0.0794884339,
0.2821151912,
0.1880701184,
-0.2165438831,
0.0819281191,
0.063070789,
-0.4723849297,
0.2384416461,
0.1042849422,
0.280636847,
0.1072817072,
-0.3729565144,
0.0452743471,
-0.0440312177,
0.1376920938,
-0.0906590819,
0.4109573364,
-0.1091493592,
0.0150478352,
-0.0427165963,
0.0600477047,
-0.2108016163,
-0.322080791,
-0.2802445292,
0.0243947543,
0.0463380627,
-0.1378920376,
-0.0416073576,
-0.1625705957,
0.2116595507,
0.0482912175,
0.1572293341,
0.0954250321,
0.1668868661,
-0.2702956498,
-0.0576176755,
0.4077109694,
0.1926712841,
0.0409891382,
0.2395562679,
-0.0955692306,
-0.0758203492,
0.0929864794,
-0.2596945167,
-0.1863328964,
-0.0069953427,
0.3259138167,
0.1039610803,
-0.2556675971,
-0.0916622281,
0.1133575588,
0.0773155168,
-0.1863558143,
-0.0654878542,
-0.2524960637,
-0.0674690828,
-0.3504024446,
0.0776729211,
0.5380798578,
-0.43270877,
-0.01495561,
-0.1592624635,
-0.1078129783,
0.0124576865,
0.2770960629,
-0.081005156,
0.1695792228,
-0.1159966514,
0.049124416,
0.2401681691,
-0.3199147284,
-0.3626371026,
0.0908699781,
-0.301079303,
-0.0427360199,
-0.1367133856,
0.0937210247,
0.2957526147,
-0.0094474396,
0.4482404292,
0.2462097108,
-0.2692752779,
0.0903338119,
-0.1365799904,
-0.2909476757,
-0.0536915734,
0.0469711237,
0.2362892032,
-0.0899253637,
0.2524037659,
-0.2295198739,
0.1484707892,
0.1339481175,
-0.0187073033,
0.3950463533,
0.3054838479,
0.0365399867,
-0.0323320702,
-0.1834007502,
-0.5057476163,
0.2498746365,
0.3089757562,
0.0818632767,
-0.0234783776,
-0.0089071942,
-0.4486205876,
0.2037528902,
-0.1624401659,
0.0956388712,
0.288228035,
0.0894584209,
-0.2714307606,
0.050976783,
-0.2473025918,
0.4360182285,
0.0321619734,
0.0869536027,
-0.1087866053,
0.2889498472,
-0.2754171491,
-0.2581117451,
0.2147305608,
-0.0580092408,
0.2476534247,
0.0031079848,
-0.0581928641,
0.3293103874,
0.0771941468,
0.2450994551,
0.1307123154,
-0.0577198118,
0.1969686598,
-0.2697573602,
-0.0954550281,
0.0938057303,
0.104157187,
-0.0734272078,
0.0805766433,
0.1706544757,
-0.2142152339,
0.0104889525,
0.0348367915,
0.2288724631,
0.3592412174,
-0.0549507663,
-0.0541915335,
-0.136629343,
0.2221428156,
0.1184020713,
0.0125840977,
-0.1474810094,
-0.2470897734,
0.2493077517,
0.4901154339,
0.1015382633,
0.1599899083,
-0.1755919307,
-0.2158998698,
0.097721085,
0.1335701346,
0.3544580936,
0.4767528176,
0.2372667342,
0.1458979696,
0.1817170531,
-0.0352560207,
-0.2257148474,
0.0278199315,
0.2088332474,
0.0691450015,
0.1396368146,
0.279181242,
0.0575676635,
-0.2701752484,
-0.3984822035,
0.04939951,
0.2347217798,
-0.3226422071,
0.0203032363,
-0.302213937,
-0.0669249892,
-0.0339750089,
-0.1841364205,
-0.1792142391,
-0.4988186955,
0.0177643672,
0.173353076,
-0.0362733938,
0.225477621,
-0.0886926576,
0.0382604189,
0.1581798643,
-0.2342584729,
-0.0838014781,
-0.2235109657,
-0.08587946,
0.2016253918,
0.1225926653,
0.1275233775,
0.4814587235,
-0.3473610878,
-0.0764091611,
-0.3007543385,
-0.2729535699,
0.1080875993,
-0.1079413816,
0.5393428802,
0.1690941155,
0.1429462433,
-0.1891468018,
0.0837833285,
0.2729690373,
-0.2841290236,
-0.0361449085,
0.1139920205,
-0.0069274921,
-0.1247006878,
-0.0059448043,
-0.2853999436,
-0.2594159544,
-0.5138936639,
-0.1164919212,
0.0366634391,
0.0855601504,
0.2803019583,
0.1171807945,
0.2591090798,
0.0950799361,
0.1597632021,
-0.157387808,
-0.274792999,
0.288983494,
-0.2669567466,
-0.4839944839,
0.2523922324,
-0.0436242744,
0.2488273233,
0.0183747057,
-0.2916951776,
-0.347537607,
-0.073572807,
0.45987463,
-0.0146950874,
0.139476046,
0.2242237329,
0.1021410525,
-0.248685807,
-0.150361076,
-0.1936664581,
-0.2438552529,
0.2690797448,
0.042966444,
-0.0695938468,
0.4731346667,
0.1293030828,
0.5410221815,
0.2028914988,
0.1337269545,
0.3551776409,
-0.3133035898,
0.470117718,
-0.0137461573,
-0.4632148743,
-0.2093194723,
-0.1566202939,
-0.2196603715,
0.1839845031,
-0.1219011694,
0.0083446354,
-0.2008326501,
0.031307634,
-0.3126890659,
-0.2886296213,
-0.1099267378,
-0.0378074795,
0.2987926006,
0.1247180253,
-0.0077968626,
-0.1730634421,
0.0766292363,
0.0802607685,
0.3518159389,
-0.365819037,
-0.2055611163,
-0.0920201838,
0.039197091,
-0.5612569451,
0.314252913,
-0.0376313366,
0.3010165095,
-0.1695300639,
0.0466058552,
-0.0210714582,
-0.1367329061,
0.1865981519,
-0.270737648,
-0.0610270016,
0.3763122857,
-0.0375206657,
-0.2834610343,
0.0316957235,
-0.3035867512,
-0.0872139484,
0.588240087,
0.1496821344,
-0.2319240719,
0.0843923539,
0.1798771024,
0.2301519364,
-0.048571676,
-0.0306975394,
-0.3578569591,
-0.6081137061,
-0.4169079661,
-0.0317580439,
0.1946901083,
0.1478212178,
0.0366778076,
-0.121883817,
-0.0814925879,
-0.2642629147,
0.101425305,
0.2987626791,
0.0152714467,
0.0514459796,
0.3791185915,
-0.0545988306,
-0.3085269332,
0.4553217888,
0.5644432306,
0.0935869366,
-0.3636811972,
-0.0350374728,
-0.0297743008,
0.1475266516,
0.1547467858,
-0.1215577498,
0.0153696137,
0.0256638359,
0.1582840979,
0.3126121759,
0.0927457213,
0.3412409425,
-0.0211883783,
-0.1041296721,
-0.1698944569,
0.1131924316,
0.1280114353,
0.0611299351,
0.2848449051,
-0.2390727848,
0.0123007176,
0.0189967062,
0.0477190688,
0.6743602753,
-0.0058518066,
-0.1335734874,
0.3497023582,
-0.2442308068,
0.2312913984,
-0.0070457854,
0.145829007,
-0.3999636471,
-0.4180327356,
-0.0113904551,
-0.1408477277,
0.3766774535,
0.0181206353,
-0.2749494016,
0.2337263674,
0.0567082204,
0.1694544107,
0.0048253397,
-0.0859138072,
-0.1994825602,
-0.2102618515,
-0.342476666,
0.2780532241,
0.0304979514,
0.1002309769,
-0.2302431911,
-0.0756507143,
-0.0022719,
-0.1145536453,
-0.2208560407,
-0.0430641994,
-0.390753597,
0.1365591586,
0.1541353464,
-0.1798408031,
0.0128812958,
-0.0068835639,
0.1035196483,
0.0739507452,
-0.1130790785,
0.1491712779,
0.1311756521,
0.0251976717,
0.1456775665,
-0.1355883926,
0.3613081276,
-0.1701890528,
-0.1081271246,
0.2956544757,
-0.0282269064,
-0.1445140392,
0.1549286991,
0.3218527436,
0.0484358408,
-0.0987299755,
-0.0249711163,
0.0726728365,
0.2177847773,
-0.4324819744,
0.2274698168,
0.1098214239,
0.0280080885,
0.4482873678,
-0.2745153904,
-0.075728558,
-0.1692845225,
0.2780624628,
-0.0978037491,
-0.0683533996,
0.2635720372,
0.3350369334,
-0.2140744179,
-0.2988041341,
0.3023133874,
-0.2714874744,
-0.1159422249,
0.2750825584,
-0.1219209209,
-0.0068426928,
0.1769755334,
0.5146284699,
0.0672653913,
-0.1476501673,
-0.1188544631,
-0.2926462591,
-0.3343294263,
0.0866132155,
0.0571965054,
0.0675612763,
0.1711488664,
0.2797253132,
0.0978308618,
0.0337817371,
-0.4624916911,
0.0146880513,
-0.4128826261,
0.0474852547,
0.2357292026,
-0.0974383578,
0.1013841182,
0.0244065989,
0.1799715906,
0.105223991,
-0.1337604076,
-0.3522090316,
-0.0336403362,
0.0878045931,
-0.0039436701,
0.0217026547,
0.0412189327,
-0.1963620931,
-0.2757995129,
-0.125004366,
0.0960730463,
0.0712824017,
-0.1034787148,
-0.0618352033,
0.1638184935,
0.0417050123,
-0.1251422614,
0.0965345353,
0.0480588973,
0.1241120845,
-0.0932390317,
0.0561799072,
0.0966353565,
-0.0530852042,
-0.0538896061,
0.1123823822,
0.0803085193,
-0.0846450105,
0.4036474526,
-0.2934017777,
-0.08378876,
0.2388861924,
0.4376218915,
0.2970944345,
-0.1042978466,
-0.1326536238,
0.1317989379,
0.2998232245,
-0.4269777536,
-0.0797765404,
0.2276552916,
0.0312156789,
0.2894969285,
0.1620601714,
0.0091711162,
0.0803849921,
0.1102856845,
0.2927852273,
0.3749347329,
-0.2685065866,
0.0089508137,
0.0542333461,
0.0661036894,
0.1620821208,
0.3600084186,
0.1112754792,
0.1788649261,
0.4138867855,
-0.0186641887,
0.1593801975,
0.0633139834,
-0.1102106348,
0.0784742907,
-0.4868062437,
0.3760782182,
-0.0723928958,
0.1060387269,
-0.1730609387,
0.022688685,
0.0955680087,
-0.2848629355,
0.1331893951,
-0.2175019085,
0.3178292811,
-0.1695960462,
0.2080063969,
0.2158290893,
0.0470759384,
-0.0041889735,
-0.0685386211,
0.1173426062,
0.0952019319,
0.3830109537,
0.1151952073,
0.0234844256,
-0.5718718767,
-0.1943043172,
0.1402422488,
-0.0500199497,
-0.3423667252,
0.0659658611,
0.014820667,
-0.0683905482,
-0.2042540312,
0.4518051147,
0.4655421078,
0.187555179,
-0.0217462201,
-0.0537228882,
-0.0694720596,
-0.1414835751,
-0.1546760648,
0.1211891621,
-0.0825650468,
0.2094568908,
0.3394081891,
0.251416415,
-0.3259422183,
-0.1645159572,
0.1148011088,
-0.1634518355,
-0.3844023943,
0.295507282,
-0.1409957856,
-0.1607821286,
-0.1595874578,
-0.0308326539,
-0.3114372492,
0.0526953675,
0.4397566617,
-0.2856872976,
0.0353570655,
-0.2400780767,
0.165923357,
-0.0764079392,
0.3434976339,
0.3479088247,
0.0946845859,
-0.32360816,
-0.1609087288,
-0.8212376833,
0.2509790957,
-0.1219765171,
-0.2337373048,
0.0354435407,
0.2488982826,
0.0543549284,
0.3188182414,
0.357540369,
0.0408063568,
-0.0032818525,
0.1275626719,
-0.3231612742,
-0.2139831483,
-0.0753675699,
-0.2632589638,
-0.0036478895,
-0.3058438003,
0.1710049063,
-0.2677229345,
0.1970316768,
-0.2112951577,
-0.4058315754,
0.214685753,
-0.0597278848,
0.4275778234,
0.0655834377,
0.3013670743,
-0.2161145061,
-0.0543659851,
-0.1791129261,
-0.3456141651,
-0.1444772333,
0.2212973088,
0.1074010953,
0.2834341228,
-0.0556845181,
-0.1634288132,
-0.1055844426,
0.1816211492,
0.1836783439,
0.0489661247,
-0.0327335708,
0.2775432169,
-0.0131123988,
0.2347469479,
-0.0551850274,
0.2331459522,
0.0064925333,
0.3684498668,
-0.400182277,
-0.5349045396,
0.2997889221,
-0.3270011842,
-0.409888953,
-0.3604011238,
0.279319942,
0.0132643944,
-0.1624011397,
-0.1239520311,
0.0338407271,
0.287150234,
0.0694513246,
-0.18813245,
0.4414679408,
-0.0199174322,
0.0468640551,
0.0082706325,
0.2054450363,
0.0405815616,
-0.2055840343,
0.1134549454,
0.0200574696
] |
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.5081489086,
-0.3373530507,
-0.1102790311,
-0.0140299853,
0.0330485739,
0.0741377994,
0.0743085742,
0.485465467,
-0.0663448721,
0.1295401305,
-0.2676171064,
0.2315488905,
-0.0514131337,
0.5110139847,
0.0302072968,
-0.3258367777,
0.1286162287,
0.0924143046,
-0.3972888589,
0.2039905638,
0.0156944599,
0.1319800466,
-0.2798555791,
-0.3620296717,
-0.351397723,
0.3136510551,
-0.0559829064,
0.0434772037,
-0.1932207048,
-0.1684152484,
-0.0865591913,
0.1241645962,
-0.0005705924,
0.5355131626,
-0.0001148047,
-0.0435678102,
0.5377913117,
0.0555122979,
-0.1230912805,
0.0520757064,
-0.4317382276,
-0.0420410596,
-0.0881984681,
0.1587156355,
-0.2271653414,
0.1198300496,
-0.1076327115,
-0.1590536535,
0.3743039072,
0.0940159485,
0.0899582133,
0.1013054997,
0.0752253309,
-0.2277186215,
0.0327017717,
0.0407929085,
-0.0755751505,
-0.0672889128,
0.1625946015,
0.0533761829,
0.1702078581,
0.205091089,
0.3278667629,
-0.2385346442,
0.0529790595,
-0.0781995282,
-0.2163972855,
-0.3731330335,
-0.0300138071,
0.2754046023,
0.4171726704,
0.1806240529,
-0.3277599514,
0.0924967155,
-0.0132377259,
-0.4786672592,
0.0948754698,
0.075503394,
-0.1146731451,
0.1316607594,
-0.5122502446,
-0.2017864138,
-0.2065026462,
0.2524446845,
-0.1153546274,
0.6995688677,
0.1064390689,
-0.0259962287,
0.5007660985,
0.0095833074,
0.159890607,
-0.0029392664,
-0.250908643,
0.0968379304,
-0.3748497963,
-0.1022784337,
-0.4304017723,
-0.0613728203,
0.0011967492,
0.1479570717,
-0.0523990914,
0.0594875664,
0.1386431307,
0.1004416272,
0.402620703,
-0.1157405451,
-0.0750738159,
0.2515941858,
0.2232342064,
0.1167278811,
0.2711422145,
-0.0339944474,
0.0628526658,
-0.2844310999,
-0.4857780337,
0.0061911363,
-0.09982007,
-0.1338427067,
-0.1590295285,
-0.3384348452,
-0.1455879956,
-0.028670229,
0.0967053622,
0.0855215192,
-0.2533043027,
0.1140839085,
-0.1045274064,
0.296915561,
0.0216700062,
-0.3427954018,
-0.138779372,
-0.014583203,
-0.2554708123,
-0.0818122327,
0.2565937936,
-0.2658788562,
0.1501656026,
0.3329009414,
0.286168009,
0.2612110376,
-0.2194489241,
0.0029606104,
0.0976145566,
0.3461608291,
0.2332957536,
-0.2164623737,
-0.1802342981,
0.2645348608,
0.3113656938,
-0.0113179395,
0.0223510638,
-0.4372554719,
-0.0999163315,
0.1921678334,
0.0101410998,
-0.1386031061,
-0.1920828521,
0.5086087584,
0.0677139536,
-0.1515936852,
-0.1903990805,
-0.0040799142,
0.0967612043,
-0.1116225794,
0.3906469941,
-0.0287302174,
-0.4876493812,
-0.0572689436,
-0.178378433,
-0.1254671067,
0.2866671979,
0.3830595315,
-0.2684168816,
-0.3105136752,
0.0117011862,
0.2296999395,
0.2801134884,
0.0356155783,
-0.1620112509,
0.2357978374,
0.1493207216,
-0.0552925393,
0.269036144,
-0.1544441581,
0.1483692527,
-0.0233158562,
0.1964317113,
0.527938962,
-0.147190243,
-0.3320833743,
-0.2287955135,
-0.0443875603,
0.25294137,
0.2439572811,
0.3917976618,
-0.2100870758,
0.1873402447,
0.1677799076,
0.1789096296,
-0.1880308539,
0.1267259121,
-0.0284449458,
0.1899456978,
-0.0645639896,
0.0734616891,
-0.216976136,
-0.2115378529,
-0.0437555537,
-0.052496057,
-0.0564152971,
0.5228715539,
-0.1800922155,
0.0138317989,
-0.3455847204,
-0.194962427,
-0.0930152163,
0.1002580151,
-0.1318469793,
0.0416365899,
-0.3252920508,
-0.3905951679,
0.0545197539,
-0.0638394058,
0.0676631108,
-0.087876156,
0.4246721566,
-0.199104622,
-0.230344519,
-0.0079403361,
0.2666901648,
0.158034578,
-0.0920136943,
-0.0449872836,
0.6052392125,
0.0240021441,
0.3310450912,
-0.1366333365,
0.0064039961,
0.4401603043,
-0.2197289616,
-0.0747113302,
0.3792753816,
-0.0911202207,
-0.1778291017,
-0.3126198649,
0.0908949226,
-0.3767002523,
0.0743771791,
0.1943710893,
0.0916932672,
0.0833508745,
0.0190159287,
-0.2693001628,
-0.1221597493,
0.1034238711,
-0.5749576688,
0.0316056646,
-0.1716379076,
-0.3143162131,
0.1330606788,
0.2696283162,
0.0853923634,
-0.1447694004,
-0.2021973282,
-0.1466707438,
-0.0676521137,
0.0505083166,
0.2840464115,
0.4919461012,
0.2036000788,
0.2562605143,
0.2814299464,
-0.0278468896,
-0.2152475566,
0.3708740175,
0.0582862161,
0.0924875215,
0.3329787254,
-0.0673538446,
-0.1376364231,
-0.1639204472,
0.1609381884,
0.292134136,
-0.101212129,
-0.1680912226,
-0.1960757077,
-0.4404214323,
-0.3401387632,
-0.1436610818,
-0.2690731883,
-0.1394086182,
-0.4952286482,
0.0970955938,
0.2488376051,
-0.1684307903,
0.1095259264,
0.0756290182,
0.0112145478,
-0.1120053008,
0.2869212627,
-0.0890293717,
0.1482100487,
-0.0353772715,
0.1844817102,
0.1746094078,
0.0170832239,
0.1113240644,
0.1222268119,
-0.1454953253,
-0.2003287971,
-0.5325549245,
0.1181262657,
-0.1742520928,
-0.0486431904,
0.2068661451,
-0.1350510269,
0.2030082345,
-0.5070750117,
-0.0250826553,
-0.1179826856,
-0.0727682933,
-0.0896507502,
-0.0503467321,
-0.1196974441,
-0.4618372917,
-0.6362449527,
-0.2490644604,
-0.5404443145,
0.2634404898,
-0.2554799616,
-0.1121742204,
0.1065887064,
0.0326892845,
-0.1179724261,
-0.0065716938,
-0.4299373925,
-0.2892366946,
-0.0589363091,
0.4022923708,
-0.4461692274,
-0.3850894868,
0.0921235904,
0.1072703972,
0.2493472397,
0.2030598074,
0.0808838606,
0.3455437422,
-0.0296857096,
0.0870421678,
-0.0778545514,
-0.0007340002,
0.2698394656,
-0.1681798995,
0.044281844,
-0.191345349,
0.1416907012,
0.0298004001,
0.3293234408,
0.5940420032,
-0.092273131,
0.26029405,
0.1720614284,
0.8503627777,
0.2213721424,
0.033861801,
0.0265255906,
0.1010482684,
0.2220975012,
-0.1088565141,
-0.2199731469,
0.2636602521,
-0.1620944887,
0.0602046326,
0.0874209106,
0.0236199033,
-0.4355467856,
-0.2725833952,
0.2202931195,
-0.0500403158,
0.0048695928,
-0.0267521795,
-0.2231230885,
0.1030636206,
0.043737635,
0.0180823021,
0.3688745201,
-0.0164265502,
0.0451073274,
0.1667735428,
0.2742875516,
0.101953432,
-0.3018219471,
-0.1953762323,
-0.1486048996,
0.0285655595,
0.00797264,
0.1342537403,
-0.2335392088,
-0.1523537487,
-0.0622505806,
-0.0333437957,
0.7309001684,
-0.4700448215,
-0.1862260252,
0.0893393904,
-0.0316738524,
0.0784578845,
-0.3002662957,
-0.1464819014,
0.0606123246,
0.5181647539,
0.3313447237,
-0.2025875151,
-0.0085708387,
0.4726243913,
-0.1199385002,
0.0429337285,
-0.2671265006,
-0.1636565179,
0.2226849794,
-0.2541055679,
-0.1159056202,
0.3159098625,
0.0911070853,
-0.5133222938,
-0.1697618067,
0.1480542123,
-0.3351941407,
0.1450448185,
0.1714392155,
0.3846229315,
-0.0806668848,
0.1510411203,
0.2846966386,
-0.0170550663,
0.3582704365,
0.3160247207,
0.4130522609,
-0.3127908111,
0.2898931205,
-0.2952032387,
0.6024833322,
0.1973261684,
0.0268834122,
-0.0061181951,
0.1774468422,
-0.0012976086,
0.0833522901,
0.2481266707,
0.2944793701,
-0.0753850341,
-0.2934321165,
-0.2479620278,
0.2437047809,
0.0967631415,
0.1570515633,
0.366571039,
-0.0080958977,
-0.2202668786,
-0.180208832,
-0.093144685,
0.8311529756,
0.3514554203,
-0.0511212088,
0.0822235271,
-0.3420524299,
0.1145345941,
-0.2410763055,
0.349049747,
-0.0499592945,
-0.1900231242,
-0.0996516123,
-0.0661771297,
0.2365008593,
-0.1206922308,
-0.5448083282,
0.3441715539,
-0.2958672345,
0.4792377949,
-0.1160143539,
0.1826062351,
-0.1522693485,
-0.1442125142,
-0.247608915,
0.115113385,
0.0034282426,
-0.0758741945,
-0.0651072934,
-0.2912389338,
0.156796217,
0.0651636571,
-0.2207715064,
0.3643647432,
0.0778071359,
0.1872260422,
-0.0820422173,
-0.1057076827,
0.0941798761,
0.1624279171,
0.1093289629,
0.1021920666,
-0.2916805446,
0.2685700953,
-0.1199022308,
-0.0704734549,
-0.3529691994,
-0.0182667598,
0.1041845903,
-0.3264845312,
-0.2080944777,
0.2107827067,
0.1126906872,
-0.5092002749,
-0.2521857917,
-0.0672906265,
0.0317978896,
-0.0281095058,
0.0520915687,
0.2679307461,
-0.1196016744,
-0.3213805258,
0.1105263308,
-0.1861270368,
-0.4356993735,
0.1394525468,
0.1880929321,
0.0779353306,
-0.2295377851,
0.3991302848,
0.0167134609,
-0.1774702519,
0.330319494,
0.1787614077,
-0.0833467469,
-0.1643690765,
-0.2420060337,
0.2020903826,
-0.0776384547,
0.1237072349,
-0.2825099528,
-0.2111568004,
0.2983009219,
0.1103868634,
0.0154010179,
0.1366525441,
-0.1931946576,
-0.1865276396,
-0.1653407067,
0.260104537,
-0.2842329741,
0.3302907348,
-0.1422862113,
0.4343194067,
0.0736774504,
0.204456538,
-0.268424958,
-0.0025948992,
0.1188779324,
0.1553228199,
-0.226090163,
-0.3581100404,
0.0110795666,
-0.0739914924,
0.0427975655,
0.2439487427,
-0.1716936082,
-0.1312971115,
-0.0300475936,
0.0900147408,
0.3175622821,
0.0310148541,
-0.1119523048,
0.0074076317,
-0.4620467424,
0.1675176173,
0.2413916737,
-0.1604740322,
0.0731808022,
0.0464831479,
0.769467175,
0.0026707726,
0.0763218477,
-0.0761988685,
0.1711457819,
0.1486604661,
-0.0044562812,
0.0859765708,
0.1657086909,
-0.1427560151,
-0.0114718946,
-0.0064312532,
0.3535854816,
0.0894692391,
0.3557214141,
-0.3032313585,
-0.0499162227,
-0.3494812846,
0.4437383413,
0.4431464672,
0.111962527,
0.051403068,
0.0177690089,
0.1722627282,
-0.1517116725,
-0.1266007423,
-0.1626868248,
0.2234695852,
-0.0318373814,
-0.0154606048,
0.3882977366,
0.1365395486,
-0.0452423804,
0.3940406144,
-0.1873162985,
-0.1082061455,
0.6243636608,
0.4589969814,
-0.2730152905,
0.0798390731,
-0.0518255122,
-0.1712731123,
-0.1128542721,
0.048308745,
-0.1877717376,
0.3462684751,
0.400002718,
-0.0684834793,
0.5021163225,
-0.0291220155,
-0.4155101776,
-0.1350044906,
-0.1447893828,
0.3166702688,
0.2044383436,
0.3156458735,
-0.2462448031,
-0.4899682105,
-0.2448235452,
-0.023059383,
-0.0245443806,
-0.0202679485,
-0.1529139578,
-0.2530764341,
-0.1895496398,
0.1706692725,
0.1991121769,
0.1580580026,
0.6029375196,
0.0041990434,
0.0793792605,
-0.2160996199,
0.2362807393,
0.3822193742,
0.3558264375,
-0.1452441216,
0.0076428228,
0.3794391453,
-0.2650621235,
0.3523435295,
0.170577243,
0.4073835909,
0.2343981266,
-0.1795747578,
0.0125420857,
0.1997923553,
-0.2044632584,
0.1789809763,
0.2393649966,
0.5440565348,
-0.1517499387,
0.193488434,
0.0924246758,
-0.0880414844,
0.2542189062,
-0.2827869356,
0.3401777446,
-0.3977622092,
0.3002811074,
0.1573113501,
0.0152107449,
0.1106260717,
-0.0687541142,
-0.4797088206,
-0.2704090476,
0.3754624724,
0.0008003165,
-0.0935251713,
-0.1560479552,
0.0744086578,
0.2217359543,
0.6444829702,
0.0328455344,
-0.1067726761,
-0.0711750463,
-0.2070062011,
-0.3353722394,
-0.2207002491,
0.0591469221,
0.3860920668,
-0.1026647538,
0.2361464202,
0.0716348961,
0.2721895576,
0.3447859585,
-0.1758826673,
0.2958407998,
-0.0070240474,
-0.3321442902,
0.0365431346,
0.1879815906,
0.1128573194,
0.0031115157,
-0.0522037186,
0.2949278057,
0.0324191526,
-0.0187554024,
0.1324228644,
-0.0701426715,
0.2797317505,
0.1121883094,
-0.2236464471,
0.2178763002,
0.3656513095,
-0.09627226,
-0.0768081769,
-0.2699720263,
-0.1720236838,
-0.4505992234,
-0.0722969919,
0.0526679605,
0.4325372279,
-0.0800549835,
-0.1802478731,
-0.1298143715,
0.4174410701,
0.0131856622,
-0.0718946531,
-0.1770030409,
-0.1322391927,
-0.0359183215,
0.051906012,
0.3032901585,
0.4208347499,
-0.2203765661,
-0.1917253584,
-0.0738458857,
-0.343110621,
0.467377305,
-0.2923315763,
-0.2383930832,
-0.4524562657,
-0.1654772758,
0.6991720796,
0.234047845,
-0.6319125891,
-0.2952764034,
-0.0088740028,
-0.3797497451,
0.2310720533,
0.5059241056,
0.2337810546,
-0.1236180142,
-0.1809200197,
-0.0346406698,
0.4153897762,
-0.1883784086,
0.0353065543,
-0.2904880643
] |
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.4603254795,
-0.2148275226,
-0.0243750736,
0.2682135701,
0.1354127526,
0.0519943908,
0.4973770976,
-0.1074850187,
0.1983703226,
0.0849529952,
-0.3266308308,
0.4753236175,
-0.1742699891,
0.1487480402,
-0.2584453821,
0.0984701663,
-0.0661858618,
0.0582034029,
-0.2907034159,
0.0956149176,
0.0202916637,
0.3308885694,
-0.633569181,
-0.3468570411,
-0.5786885023,
-0.2100412697,
-0.0277420823,
0.1687915921,
-0.2702192366,
-0.2920111418,
0.3478227556,
0.1770585179,
0.0921899751,
0.56971699,
-0.0001172403,
0.0715134516,
0.393309474,
-0.0787533373,
-0.245689705,
-0.3918707967,
-0.3461534381,
-0.3291963041,
0.3686219454,
-0.1073926836,
0.1058271974,
0.4041658044,
-0.1357308328,
-0.1332754642,
0.2626953125,
0.1352796406,
0.1936343163,
0.5491981506,
0.1630604267,
-0.1924922466,
-0.1125867292,
-0.1933780462,
-0.2020827979,
0.7461529374,
0.4174179137,
0.016856337,
-0.0510250293,
0.260495007,
-0.0992679521,
0.2890876532,
0.1862410307,
-0.0334218182,
0.1051015556,
-0.4805829525,
0.1006370634,
0.1743775308,
0.4806716442,
-0.2334275991,
0.0443904661,
-0.1220248491,
0.209474057,
-0.2924675345,
0.2619006038,
-0.0985702276,
-0.2118593156,
0.0490081348,
-0.0226965006,
-0.0896172747,
-0.0123072658,
0.0164374616,
-0.0933857635,
0.3655067682,
-0.1430076063,
-0.1118265018,
0.0698659122,
-0.109641619,
0.501809597,
-0.0161826089,
-0.0268676858,
0.2063280344,
-0.468000561,
-0.0093297176,
-0.0988706723,
-0.1408490092,
-0.0516988412,
-0.1014949009,
-0.0361867622,
0.017466763,
-0.1110088378,
0.3034836352,
0.184802413,
0.1422501504,
0.0347585008,
0.0182992499,
0.1226538196,
0.2864285111,
-0.2007627934,
0.2273954451,
-0.2592826784,
-0.3118796945,
0.1845090538,
-0.0292138737,
0.2715789676,
-0.0037106599,
-0.319062084,
-0.181845367,
0.0095682023,
0.1050422639,
0.0446223952,
0.3990534544,
0.0557954498,
0.105708763,
-0.0346218757,
0.0016939327,
-0.3566536009,
-0.2394383401,
-0.0538450442,
0.1936964393,
-0.0642800853,
-0.1152993217,
0.0678032786,
-0.154998973,
0.260186553,
-0.012420699,
0.3092046678,
-0.0599603392,
0.1036739275,
-0.3025385737,
-0.0606455244,
0.331908226,
0.1287348568,
0.0872024,
-0.0623134971,
-0.205578059,
-0.0778880641,
0.2355171889,
-0.4770625234,
-0.1442363262,
-0.0243148636,
0.142946437,
-0.1339149177,
-0.2244309783,
-0.5850236416,
0.1648343056,
0.1447639763,
-0.0812812895,
-0.0849621296,
-0.3062836528,
-0.2330712527,
-0.1535830051,
0.1236881837,
0.4482834935,
-0.2309289575,
-0.1423142701,
-0.2176909,
0.1205274463,
0.1272706538,
0.2348231822,
-0.2021542341,
0.1736089587,
-0.0962644219,
-0.1171420589,
0.4906486571,
-0.4326360226,
-0.4671246111,
-0.0203476399,
-0.266076386,
-0.0052545578,
-0.0897065401,
0.0485793501,
0.3577235043,
-0.066940777,
0.5458382964,
0.2629370987,
-0.1390327066,
-0.0366043225,
-0.164090991,
-0.4099053144,
0.1294253618,
0.0418197513,
0.1834632605,
-0.2177712619,
0.2030326426,
-0.0533746444,
0.1012381837,
0.1859946102,
-0.1211296171,
0.3843333125,
0.2429011762,
-0.2223786861,
0.0372740179,
-0.1859574914,
-0.4775208533,
0.224048093,
0.40929389,
0.0799714625,
-0.0674990639,
0.0513248108,
-0.4381962717,
0.0791066587,
-0.259444356,
0.0676426515,
0.0994126648,
-0.0666699558,
-0.1751305908,
0.0889265761,
-0.2604833245,
0.7403810024,
0.0377079211,
0.2175934762,
-0.3183416724,
0.2157880366,
-0.1859040558,
-0.3081795573,
0.1762924343,
0.13617149,
0.0753254071,
-0.092272602,
-0.2389076203,
0.142121464,
0.2554136515,
0.1713410914,
0.0618921556,
-0.2776557803,
0.4123666286,
-0.2740115225,
0.0123252673,
-0.1066840217,
0.2085703164,
0.0058230115,
0.2551184595,
0.1565715075,
-0.3707030714,
-0.0410733372,
-0.0305120535,
0.0905382186,
0.3726440966,
0.1239962727,
-0.0050925557,
-0.1856490821,
0.3251841068,
0.2222952098,
0.1924740821,
0.0937419534,
-0.1297321618,
0.2881350815,
0.3061756492,
0.2452443838,
0.0387794077,
-0.2685610354,
-0.255430758,
0.0633646175,
0.1922870278,
0.2518089116,
0.4446449578,
0.1803887188,
0.1049190387,
0.0316314735,
0.0318477675,
-0.1561172009,
0.1151200682,
0.2919998467,
0.2558411956,
0.1311029047,
0.4120825529,
0.0967437103,
-0.0789980814,
-0.3894118667,
0.1753252149,
0.150311023,
-0.3317725658,
0.0766262785,
-0.2146018445,
-0.1139470115,
-0.1419462413,
-0.4253391922,
-0.146453768,
-0.197835058,
-0.1058006212,
0.2810256779,
0.265062362,
0.1936623454,
-0.0239941925,
0.0500169992,
0.0625044554,
-0.1424838305,
-0.0558167063,
-0.2506767809,
-0.0925877392,
0.0015157837,
0.3277395666,
0.2468111217,
0.3685059249,
-0.3038309813,
-0.0695629939,
0.1437004507,
-0.3320978284,
0.1763456017,
-0.0056826347,
0.2919799387,
-0.0134427249,
-0.0779714435,
-0.3206298351,
-0.1939177215,
0.0215365253,
-0.1346228123,
-0.1827465594,
0.0472794473,
-0.1800285578,
-0.2297740728,
-0.0019907958,
-0.2926879525,
-0.434446156,
-0.3998571336,
-0.3682098389,
0.0472465605,
-0.0089028291,
0.4603002369,
-0.0427162126,
0.2933927178,
0.2250697613,
0.0508382916,
0.0179361086,
-0.3330913186,
0.4733822644,
-0.2865110338,
-0.2936577797,
0.280120492,
-0.2680465877,
0.3836090863,
0.0181831904,
-0.1104435548,
-0.213531211,
-0.0214795098,
0.3837371171,
-0.1009402126,
0.0416830108,
0.084635973,
0.1136622429,
0.078258425,
-0.0924064443,
-0.1815525442,
-0.2040504068,
0.219632104,
0.1930786818,
-0.1657152474,
0.2265980244,
-0.0363360941,
0.8421134353,
0.0771994442,
-0.0400502123,
0.3015678227,
-0.0616554916,
0.3064917922,
-0.1064245328,
-0.5121486783,
-0.0696846694,
-0.1073109135,
-0.0392839685,
0.0819719583,
-0.1839758158,
-0.1112222075,
-0.2847858965,
-0.2727976143,
-0.3160194457,
-0.2918522954,
-0.1147848591,
-0.2003916055,
0.1308543831,
0.1986789107,
-0.0612921529,
-0.1620079279,
-0.1124965847,
0.0489823781,
0.4355245233,
-0.420802623,
-0.0186146758,
0.3795598149,
-0.072855629,
-0.3464909792,
0.1986530572,
0.1317848265,
0.330327034,
0.0766259208,
0.1182001233,
0.0601410121,
-0.0493250713,
0.1122455373,
0.0591965392,
-0.0800003484,
0.2366164625,
-0.01469432,
-0.4012737572,
-0.057743486,
-0.2255627364,
0.2240984738,
0.4793189764,
0.0861524865,
-0.2667843699,
0.2115177065,
0.2363318205,
0.1412733644,
-0.1142226756,
-0.1485226154,
-0.4387521148,
-0.3134376705,
-0.378410697,
-0.0600449853,
0.1850459725,
0.2391747236,
0.0416694991,
-0.0708692968,
-0.0640274808,
-0.2169731855,
0.0610414371,
0.3596894443,
0.1482841223,
0.2704477012,
0.5801548362,
0.1271514595,
-0.2473592311,
0.4470183551,
0.5865610242,
0.0028330833,
-0.5835173726,
-0.0279994607,
-0.1797395945,
0.234888956,
0.1315192878,
-0.0706733316,
0.0163305122,
0.0595655069,
-0.1358519942,
0.3848748207,
0.3812658489,
-0.0635428131,
0.1262481958,
-0.4026652873,
-0.1285913736,
0.0958479792,
0.0007423602,
0.1376990378,
0.4601655304,
-0.3796383142,
-0.0598221943,
0.0470988378,
-0.1843538284,
0.6863651872,
-0.0381888486,
-0.239015162,
0.2732535303,
-0.1615029126,
0.2652589083,
0.1131907031,
0.1857605278,
-0.2762228251,
-0.3076210916,
0.0923929811,
-0.2266218513,
0.1900258064,
-0.1945811361,
-0.3511311412,
0.2596142888,
0.0564559288,
-0.1498303562,
-0.0185761917,
0.0406049602,
0.0024128403,
-0.2937500775,
-0.3525198698,
0.0517694242,
-0.1905303895,
0.2061719894,
-0.1972418875,
-0.183346346,
-0.1389481276,
-0.1865323782,
-0.0331040807,
-0.1090354919,
-0.6445793509,
0.2370985448,
0.3314477801,
-0.3087444007,
0.2005168349,
-0.1111384854,
0.0950987712,
-0.0293306299,
-0.1739497632,
0.1265122592,
0.1993345916,
0.0166865848,
-0.1108885333,
-0.1729524881,
0.4197726548,
-0.0839654803,
0.0050037848,
0.0576664656,
0.036622867,
-0.0225344487,
0.4702344239,
0.3512618244,
0.3681574762,
0.1506928653,
-0.0755759776,
0.1810475141,
0.261675328,
-0.195877552,
0.078042157,
0.1019754782,
-0.1530846357,
0.2558068633,
-0.1075140536,
-0.1003245413,
-0.0019221493,
0.3397726119,
0.1296712607,
-0.0160999838,
0.1832214594,
0.1551725268,
-0.2558428645,
-0.0844760612,
0.1688348651,
-0.3087920249,
-0.3004137278,
0.241277203,
-0.0199141391,
0.0491271727,
0.0744940937,
0.7340952158,
0.2456148863,
-0.3685688674,
-0.1320783943,
-0.3772932291,
-0.5326018929,
0.1417693198,
-0.1205236986,
-0.0949436203,
0.2369502783,
0.3836894929,
0.1208686978,
0.1284105331,
-0.220890522,
0.1052406356,
-0.1584757119,
0.1540041417,
0.2756508589,
-0.0960514694,
0.0372920744,
0.0859895498,
0.004242043,
0.1529784501,
0.0671002567,
-0.2249542624,
-0.1146585941,
0.1326806247,
-0.1025534347,
0.040870741,
-0.118026115,
-0.1512854844,
-0.2300351262,
-0.1715027094,
0.1590516418,
0.0351240411,
-0.0818418115,
-0.1321558058,
0.2920052707,
-0.0966297239,
-0.2174018025,
0.4025672972,
0.1177950203,
0.0810076743,
0.0776668638,
0.1660299748,
0.1665420234,
0.183278963,
0.0175298546,
-0.2253393233,
-0.0916716233,
-0.1765127778,
0.0942780897,
-0.3320895433,
-0.0140228625,
0.069995068,
-0.0275069326,
0.4203798473,
-0.1289569587,
-0.2099849731,
0.0472415499,
0.0857806653,
-0.388807714,
0.0311131999,
0.30426386,
0.1548587978,
0.1754324138,
0.2722876966,
0.081771709,
0.0818846747,
0.1544097364,
0.395252049,
0.2447241992,
-0.0228373446,
0.2661114931,
-0.2058010101,
0.0857818499,
0.2306346446,
0.2361097038,
0.118432261,
0.0381047837,
0.152669847,
-0.150182873,
0.2959783673,
0.1446439475,
-0.1672737747,
0.2365310937,
-0.3596026301,
0.2424565703,
-0.0986768007,
0.0569084324,
-0.136328131,
0.1417861432,
0.3276463151,
-0.0491864793,
-0.0884467587,
-0.1608532071,
-0.0030408262,
-0.3001901805,
0.2709415555,
0.4638241827,
-0.0976308808,
-0.0931241959,
-0.0431757309,
0.2145773023,
0.2175282538,
0.537479043,
0.3159118593,
-0.1668996066,
-0.4896299541,
-0.1224404722,
0.5082057714,
-0.1266731918,
-0.1844532937,
0.4623733461,
-0.1348712593,
0.0100122001,
-0.1652807295,
0.3222153187,
0.4884845316,
0.3006312251,
-0.1383482069,
-0.2075259835,
0.2566275299,
-0.1801051199,
-0.1383738965,
0.210721612,
0.0596839413,
0.2941678464,
0.2981709242,
0.084253557,
-0.1690877378,
-0.032037545,
0.2207306027,
-0.3357614577,
-0.4409195781,
0.2064285129,
-0.1567063928,
-0.002659057,
-0.1897850484,
0.0980004743,
-0.4563895464,
0.2288247198,
0.3156726956,
-0.2224389464,
-0.0670025051,
-0.1489631981,
0.0449593626,
-0.0307993963,
0.3605278134,
0.2467246652,
0.3562097549,
-0.2011302114,
-0.1037733927,
-0.8396955729,
0.3146014512,
0.0336659662,
-0.01173048,
-0.0385529101,
0.1393252313,
-0.0011309733,
0.3212940097,
0.4201124609,
0.0454288498,
0.1901209503,
0.0372286737,
-0.4620157182,
-0.2717563212,
0.0900408179,
-0.4454762042,
0.0050570425,
-0.3917898536,
-0.0040982892,
-0.2824519873,
-0.0414681435,
-0.0273980387,
-0.4465277791,
0.270176053,
0.3022377491,
0.295974195,
-0.0437555313,
0.6722488999,
-0.05365704,
0.0996359438,
-0.0690654963,
-0.3176441491,
-0.0269643702,
0.1578304172,
0.3953226507,
0.2114284188,
-0.2491105944,
0.0748828202,
-0.1284852773,
0.1337046027,
0.1330320388,
0.0128993466,
-0.2782158554,
0.068542026,
-0.1654135138,
0.4030524194,
-0.1301136762,
0.1823721677,
0.0637911931,
0.2705150545,
-0.3036562502,
-0.3571580946,
0.3911987245,
-0.3434486985,
-0.4585973322,
-0.4276725054,
0.2904646099,
0.1598202437,
-0.2049571425,
-0.4742091298,
0.0093035027,
0.2549891472,
-0.1533088237,
-0.1555007845,
0.5398077369,
0.06995444,
0.2142626047,
-0.121996209,
0.2098635733,
0.0046631866,
-0.1189016402,
-0.1165049896,
-0.0643659607
] |
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.4603254795,
-0.2148275226,
-0.0243750736,
0.2682135701,
0.1354127526,
0.0519943908,
0.4973770976,
-0.1074850187,
0.1983703226,
0.0849529952,
-0.3266308308,
0.4753236175,
-0.1742699891,
0.1487480402,
-0.2584453821,
0.0984701663,
-0.0661858618,
0.0582034029,
-0.2907034159,
0.0956149176,
0.0202916637,
0.3308885694,
-0.633569181,
-0.3468570411,
-0.5786885023,
-0.2100412697,
-0.0277420823,
0.1687915921,
-0.2702192366,
-0.2920111418,
0.3478227556,
0.1770585179,
0.0921899751,
0.56971699,
-0.0001172403,
0.0715134516,
0.393309474,
-0.0787533373,
-0.245689705,
-0.3918707967,
-0.3461534381,
-0.3291963041,
0.3686219454,
-0.1073926836,
0.1058271974,
0.4041658044,
-0.1357308328,
-0.1332754642,
0.2626953125,
0.1352796406,
0.1936343163,
0.5491981506,
0.1630604267,
-0.1924922466,
-0.1125867292,
-0.1933780462,
-0.2020827979,
0.7461529374,
0.4174179137,
0.016856337,
-0.0510250293,
0.260495007,
-0.0992679521,
0.2890876532,
0.1862410307,
-0.0334218182,
0.1051015556,
-0.4805829525,
0.1006370634,
0.1743775308,
0.4806716442,
-0.2334275991,
0.0443904661,
-0.1220248491,
0.209474057,
-0.2924675345,
0.2619006038,
-0.0985702276,
-0.2118593156,
0.0490081348,
-0.0226965006,
-0.0896172747,
-0.0123072658,
0.0164374616,
-0.0933857635,
0.3655067682,
-0.1430076063,
-0.1118265018,
0.0698659122,
-0.109641619,
0.501809597,
-0.0161826089,
-0.0268676858,
0.2063280344,
-0.468000561,
-0.0093297176,
-0.0988706723,
-0.1408490092,
-0.0516988412,
-0.1014949009,
-0.0361867622,
0.017466763,
-0.1110088378,
0.3034836352,
0.184802413,
0.1422501504,
0.0347585008,
0.0182992499,
0.1226538196,
0.2864285111,
-0.2007627934,
0.2273954451,
-0.2592826784,
-0.3118796945,
0.1845090538,
-0.0292138737,
0.2715789676,
-0.0037106599,
-0.319062084,
-0.181845367,
0.0095682023,
0.1050422639,
0.0446223952,
0.3990534544,
0.0557954498,
0.105708763,
-0.0346218757,
0.0016939327,
-0.3566536009,
-0.2394383401,
-0.0538450442,
0.1936964393,
-0.0642800853,
-0.1152993217,
0.0678032786,
-0.154998973,
0.260186553,
-0.012420699,
0.3092046678,
-0.0599603392,
0.1036739275,
-0.3025385737,
-0.0606455244,
0.331908226,
0.1287348568,
0.0872024,
-0.0623134971,
-0.205578059,
-0.0778880641,
0.2355171889,
-0.4770625234,
-0.1442363262,
-0.0243148636,
0.142946437,
-0.1339149177,
-0.2244309783,
-0.5850236416,
0.1648343056,
0.1447639763,
-0.0812812895,
-0.0849621296,
-0.3062836528,
-0.2330712527,
-0.1535830051,
0.1236881837,
0.4482834935,
-0.2309289575,
-0.1423142701,
-0.2176909,
0.1205274463,
0.1272706538,
0.2348231822,
-0.2021542341,
0.1736089587,
-0.0962644219,
-0.1171420589,
0.4906486571,
-0.4326360226,
-0.4671246111,
-0.0203476399,
-0.266076386,
-0.0052545578,
-0.0897065401,
0.0485793501,
0.3577235043,
-0.066940777,
0.5458382964,
0.2629370987,
-0.1390327066,
-0.0366043225,
-0.164090991,
-0.4099053144,
0.1294253618,
0.0418197513,
0.1834632605,
-0.2177712619,
0.2030326426,
-0.0533746444,
0.1012381837,
0.1859946102,
-0.1211296171,
0.3843333125,
0.2429011762,
-0.2223786861,
0.0372740179,
-0.1859574914,
-0.4775208533,
0.224048093,
0.40929389,
0.0799714625,
-0.0674990639,
0.0513248108,
-0.4381962717,
0.0791066587,
-0.259444356,
0.0676426515,
0.0994126648,
-0.0666699558,
-0.1751305908,
0.0889265761,
-0.2604833245,
0.7403810024,
0.0377079211,
0.2175934762,
-0.3183416724,
0.2157880366,
-0.1859040558,
-0.3081795573,
0.1762924343,
0.13617149,
0.0753254071,
-0.092272602,
-0.2389076203,
0.142121464,
0.2554136515,
0.1713410914,
0.0618921556,
-0.2776557803,
0.4123666286,
-0.2740115225,
0.0123252673,
-0.1066840217,
0.2085703164,
0.0058230115,
0.2551184595,
0.1565715075,
-0.3707030714,
-0.0410733372,
-0.0305120535,
0.0905382186,
0.3726440966,
0.1239962727,
-0.0050925557,
-0.1856490821,
0.3251841068,
0.2222952098,
0.1924740821,
0.0937419534,
-0.1297321618,
0.2881350815,
0.3061756492,
0.2452443838,
0.0387794077,
-0.2685610354,
-0.255430758,
0.0633646175,
0.1922870278,
0.2518089116,
0.4446449578,
0.1803887188,
0.1049190387,
0.0316314735,
0.0318477675,
-0.1561172009,
0.1151200682,
0.2919998467,
0.2558411956,
0.1311029047,
0.4120825529,
0.0967437103,
-0.0789980814,
-0.3894118667,
0.1753252149,
0.150311023,
-0.3317725658,
0.0766262785,
-0.2146018445,
-0.1139470115,
-0.1419462413,
-0.4253391922,
-0.146453768,
-0.197835058,
-0.1058006212,
0.2810256779,
0.265062362,
0.1936623454,
-0.0239941925,
0.0500169992,
0.0625044554,
-0.1424838305,
-0.0558167063,
-0.2506767809,
-0.0925877392,
0.0015157837,
0.3277395666,
0.2468111217,
0.3685059249,
-0.3038309813,
-0.0695629939,
0.1437004507,
-0.3320978284,
0.1763456017,
-0.0056826347,
0.2919799387,
-0.0134427249,
-0.0779714435,
-0.3206298351,
-0.1939177215,
0.0215365253,
-0.1346228123,
-0.1827465594,
0.0472794473,
-0.1800285578,
-0.2297740728,
-0.0019907958,
-0.2926879525,
-0.434446156,
-0.3998571336,
-0.3682098389,
0.0472465605,
-0.0089028291,
0.4603002369,
-0.0427162126,
0.2933927178,
0.2250697613,
0.0508382916,
0.0179361086,
-0.3330913186,
0.4733822644,
-0.2865110338,
-0.2936577797,
0.280120492,
-0.2680465877,
0.3836090863,
0.0181831904,
-0.1104435548,
-0.213531211,
-0.0214795098,
0.3837371171,
-0.1009402126,
0.0416830108,
0.084635973,
0.1136622429,
0.078258425,
-0.0924064443,
-0.1815525442,
-0.2040504068,
0.219632104,
0.1930786818,
-0.1657152474,
0.2265980244,
-0.0363360941,
0.8421134353,
0.0771994442,
-0.0400502123,
0.3015678227,
-0.0616554916,
0.3064917922,
-0.1064245328,
-0.5121486783,
-0.0696846694,
-0.1073109135,
-0.0392839685,
0.0819719583,
-0.1839758158,
-0.1112222075,
-0.2847858965,
-0.2727976143,
-0.3160194457,
-0.2918522954,
-0.1147848591,
-0.2003916055,
0.1308543831,
0.1986789107,
-0.0612921529,
-0.1620079279,
-0.1124965847,
0.0489823781,
0.4355245233,
-0.420802623,
-0.0186146758,
0.3795598149,
-0.072855629,
-0.3464909792,
0.1986530572,
0.1317848265,
0.330327034,
0.0766259208,
0.1182001233,
0.0601410121,
-0.0493250713,
0.1122455373,
0.0591965392,
-0.0800003484,
0.2366164625,
-0.01469432,
-0.4012737572,
-0.057743486,
-0.2255627364,
0.2240984738,
0.4793189764,
0.0861524865,
-0.2667843699,
0.2115177065,
0.2363318205,
0.1412733644,
-0.1142226756,
-0.1485226154,
-0.4387521148,
-0.3134376705,
-0.378410697,
-0.0600449853,
0.1850459725,
0.2391747236,
0.0416694991,
-0.0708692968,
-0.0640274808,
-0.2169731855,
0.0610414371,
0.3596894443,
0.1482841223,
0.2704477012,
0.5801548362,
0.1271514595,
-0.2473592311,
0.4470183551,
0.5865610242,
0.0028330833,
-0.5835173726,
-0.0279994607,
-0.1797395945,
0.234888956,
0.1315192878,
-0.0706733316,
0.0163305122,
0.0595655069,
-0.1358519942,
0.3848748207,
0.3812658489,
-0.0635428131,
0.1262481958,
-0.4026652873,
-0.1285913736,
0.0958479792,
0.0007423602,
0.1376990378,
0.4601655304,
-0.3796383142,
-0.0598221943,
0.0470988378,
-0.1843538284,
0.6863651872,
-0.0381888486,
-0.239015162,
0.2732535303,
-0.1615029126,
0.2652589083,
0.1131907031,
0.1857605278,
-0.2762228251,
-0.3076210916,
0.0923929811,
-0.2266218513,
0.1900258064,
-0.1945811361,
-0.3511311412,
0.2596142888,
0.0564559288,
-0.1498303562,
-0.0185761917,
0.0406049602,
0.0024128403,
-0.2937500775,
-0.3525198698,
0.0517694242,
-0.1905303895,
0.2061719894,
-0.1972418875,
-0.183346346,
-0.1389481276,
-0.1865323782,
-0.0331040807,
-0.1090354919,
-0.6445793509,
0.2370985448,
0.3314477801,
-0.3087444007,
0.2005168349,
-0.1111384854,
0.0950987712,
-0.0293306299,
-0.1739497632,
0.1265122592,
0.1993345916,
0.0166865848,
-0.1108885333,
-0.1729524881,
0.4197726548,
-0.0839654803,
0.0050037848,
0.0576664656,
0.036622867,
-0.0225344487,
0.4702344239,
0.3512618244,
0.3681574762,
0.1506928653,
-0.0755759776,
0.1810475141,
0.261675328,
-0.195877552,
0.078042157,
0.1019754782,
-0.1530846357,
0.2558068633,
-0.1075140536,
-0.1003245413,
-0.0019221493,
0.3397726119,
0.1296712607,
-0.0160999838,
0.1832214594,
0.1551725268,
-0.2558428645,
-0.0844760612,
0.1688348651,
-0.3087920249,
-0.3004137278,
0.241277203,
-0.0199141391,
0.0491271727,
0.0744940937,
0.7340952158,
0.2456148863,
-0.3685688674,
-0.1320783943,
-0.3772932291,
-0.5326018929,
0.1417693198,
-0.1205236986,
-0.0949436203,
0.2369502783,
0.3836894929,
0.1208686978,
0.1284105331,
-0.220890522,
0.1052406356,
-0.1584757119,
0.1540041417,
0.2756508589,
-0.0960514694,
0.0372920744,
0.0859895498,
0.004242043,
0.1529784501,
0.0671002567,
-0.2249542624,
-0.1146585941,
0.1326806247,
-0.1025534347,
0.040870741,
-0.118026115,
-0.1512854844,
-0.2300351262,
-0.1715027094,
0.1590516418,
0.0351240411,
-0.0818418115,
-0.1321558058,
0.2920052707,
-0.0966297239,
-0.2174018025,
0.4025672972,
0.1177950203,
0.0810076743,
0.0776668638,
0.1660299748,
0.1665420234,
0.183278963,
0.0175298546,
-0.2253393233,
-0.0916716233,
-0.1765127778,
0.0942780897,
-0.3320895433,
-0.0140228625,
0.069995068,
-0.0275069326,
0.4203798473,
-0.1289569587,
-0.2099849731,
0.0472415499,
0.0857806653,
-0.388807714,
0.0311131999,
0.30426386,
0.1548587978,
0.1754324138,
0.2722876966,
0.081771709,
0.0818846747,
0.1544097364,
0.395252049,
0.2447241992,
-0.0228373446,
0.2661114931,
-0.2058010101,
0.0857818499,
0.2306346446,
0.2361097038,
0.118432261,
0.0381047837,
0.152669847,
-0.150182873,
0.2959783673,
0.1446439475,
-0.1672737747,
0.2365310937,
-0.3596026301,
0.2424565703,
-0.0986768007,
0.0569084324,
-0.136328131,
0.1417861432,
0.3276463151,
-0.0491864793,
-0.0884467587,
-0.1608532071,
-0.0030408262,
-0.3001901805,
0.2709415555,
0.4638241827,
-0.0976308808,
-0.0931241959,
-0.0431757309,
0.2145773023,
0.2175282538,
0.537479043,
0.3159118593,
-0.1668996066,
-0.4896299541,
-0.1224404722,
0.5082057714,
-0.1266731918,
-0.1844532937,
0.4623733461,
-0.1348712593,
0.0100122001,
-0.1652807295,
0.3222153187,
0.4884845316,
0.3006312251,
-0.1383482069,
-0.2075259835,
0.2566275299,
-0.1801051199,
-0.1383738965,
0.210721612,
0.0596839413,
0.2941678464,
0.2981709242,
0.084253557,
-0.1690877378,
-0.032037545,
0.2207306027,
-0.3357614577,
-0.4409195781,
0.2064285129,
-0.1567063928,
-0.002659057,
-0.1897850484,
0.0980004743,
-0.4563895464,
0.2288247198,
0.3156726956,
-0.2224389464,
-0.0670025051,
-0.1489631981,
0.0449593626,
-0.0307993963,
0.3605278134,
0.2467246652,
0.3562097549,
-0.2011302114,
-0.1037733927,
-0.8396955729,
0.3146014512,
0.0336659662,
-0.01173048,
-0.0385529101,
0.1393252313,
-0.0011309733,
0.3212940097,
0.4201124609,
0.0454288498,
0.1901209503,
0.0372286737,
-0.4620157182,
-0.2717563212,
0.0900408179,
-0.4454762042,
0.0050570425,
-0.3917898536,
-0.0040982892,
-0.2824519873,
-0.0414681435,
-0.0273980387,
-0.4465277791,
0.270176053,
0.3022377491,
0.295974195,
-0.0437555313,
0.6722488999,
-0.05365704,
0.0996359438,
-0.0690654963,
-0.3176441491,
-0.0269643702,
0.1578304172,
0.3953226507,
0.2114284188,
-0.2491105944,
0.0748828202,
-0.1284852773,
0.1337046027,
0.1330320388,
0.0128993466,
-0.2782158554,
0.068542026,
-0.1654135138,
0.4030524194,
-0.1301136762,
0.1823721677,
0.0637911931,
0.2705150545,
-0.3036562502,
-0.3571580946,
0.3911987245,
-0.3434486985,
-0.4585973322,
-0.4276725054,
0.2904646099,
0.1598202437,
-0.2049571425,
-0.4742091298,
0.0093035027,
0.2549891472,
-0.1533088237,
-0.1555007845,
0.5398077369,
0.06995444,
0.2142626047,
-0.121996209,
0.2098635733,
0.0046631866,
-0.1189016402,
-0.1165049896,
-0.0643659607
] |
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.4603254795,
-0.2148275226,
-0.0243750736,
0.2682135701,
0.1354127526,
0.0519943908,
0.4973770976,
-0.1074850187,
0.1983703226,
0.0849529952,
-0.3266308308,
0.4753236175,
-0.1742699891,
0.1487480402,
-0.2584453821,
0.0984701663,
-0.0661858618,
0.0582034029,
-0.2907034159,
0.0956149176,
0.0202916637,
0.3308885694,
-0.633569181,
-0.3468570411,
-0.5786885023,
-0.2100412697,
-0.0277420823,
0.1687915921,
-0.2702192366,
-0.2920111418,
0.3478227556,
0.1770585179,
0.0921899751,
0.56971699,
-0.0001172403,
0.0715134516,
0.393309474,
-0.0787533373,
-0.245689705,
-0.3918707967,
-0.3461534381,
-0.3291963041,
0.3686219454,
-0.1073926836,
0.1058271974,
0.4041658044,
-0.1357308328,
-0.1332754642,
0.2626953125,
0.1352796406,
0.1936343163,
0.5491981506,
0.1630604267,
-0.1924922466,
-0.1125867292,
-0.1933780462,
-0.2020827979,
0.7461529374,
0.4174179137,
0.016856337,
-0.0510250293,
0.260495007,
-0.0992679521,
0.2890876532,
0.1862410307,
-0.0334218182,
0.1051015556,
-0.4805829525,
0.1006370634,
0.1743775308,
0.4806716442,
-0.2334275991,
0.0443904661,
-0.1220248491,
0.209474057,
-0.2924675345,
0.2619006038,
-0.0985702276,
-0.2118593156,
0.0490081348,
-0.0226965006,
-0.0896172747,
-0.0123072658,
0.0164374616,
-0.0933857635,
0.3655067682,
-0.1430076063,
-0.1118265018,
0.0698659122,
-0.109641619,
0.501809597,
-0.0161826089,
-0.0268676858,
0.2063280344,
-0.468000561,
-0.0093297176,
-0.0988706723,
-0.1408490092,
-0.0516988412,
-0.1014949009,
-0.0361867622,
0.017466763,
-0.1110088378,
0.3034836352,
0.184802413,
0.1422501504,
0.0347585008,
0.0182992499,
0.1226538196,
0.2864285111,
-0.2007627934,
0.2273954451,
-0.2592826784,
-0.3118796945,
0.1845090538,
-0.0292138737,
0.2715789676,
-0.0037106599,
-0.319062084,
-0.181845367,
0.0095682023,
0.1050422639,
0.0446223952,
0.3990534544,
0.0557954498,
0.105708763,
-0.0346218757,
0.0016939327,
-0.3566536009,
-0.2394383401,
-0.0538450442,
0.1936964393,
-0.0642800853,
-0.1152993217,
0.0678032786,
-0.154998973,
0.260186553,
-0.012420699,
0.3092046678,
-0.0599603392,
0.1036739275,
-0.3025385737,
-0.0606455244,
0.331908226,
0.1287348568,
0.0872024,
-0.0623134971,
-0.205578059,
-0.0778880641,
0.2355171889,
-0.4770625234,
-0.1442363262,
-0.0243148636,
0.142946437,
-0.1339149177,
-0.2244309783,
-0.5850236416,
0.1648343056,
0.1447639763,
-0.0812812895,
-0.0849621296,
-0.3062836528,
-0.2330712527,
-0.1535830051,
0.1236881837,
0.4482834935,
-0.2309289575,
-0.1423142701,
-0.2176909,
0.1205274463,
0.1272706538,
0.2348231822,
-0.2021542341,
0.1736089587,
-0.0962644219,
-0.1171420589,
0.4906486571,
-0.4326360226,
-0.4671246111,
-0.0203476399,
-0.266076386,
-0.0052545578,
-0.0897065401,
0.0485793501,
0.3577235043,
-0.066940777,
0.5458382964,
0.2629370987,
-0.1390327066,
-0.0366043225,
-0.164090991,
-0.4099053144,
0.1294253618,
0.0418197513,
0.1834632605,
-0.2177712619,
0.2030326426,
-0.0533746444,
0.1012381837,
0.1859946102,
-0.1211296171,
0.3843333125,
0.2429011762,
-0.2223786861,
0.0372740179,
-0.1859574914,
-0.4775208533,
0.224048093,
0.40929389,
0.0799714625,
-0.0674990639,
0.0513248108,
-0.4381962717,
0.0791066587,
-0.259444356,
0.0676426515,
0.0994126648,
-0.0666699558,
-0.1751305908,
0.0889265761,
-0.2604833245,
0.7403810024,
0.0377079211,
0.2175934762,
-0.3183416724,
0.2157880366,
-0.1859040558,
-0.3081795573,
0.1762924343,
0.13617149,
0.0753254071,
-0.092272602,
-0.2389076203,
0.142121464,
0.2554136515,
0.1713410914,
0.0618921556,
-0.2776557803,
0.4123666286,
-0.2740115225,
0.0123252673,
-0.1066840217,
0.2085703164,
0.0058230115,
0.2551184595,
0.1565715075,
-0.3707030714,
-0.0410733372,
-0.0305120535,
0.0905382186,
0.3726440966,
0.1239962727,
-0.0050925557,
-0.1856490821,
0.3251841068,
0.2222952098,
0.1924740821,
0.0937419534,
-0.1297321618,
0.2881350815,
0.3061756492,
0.2452443838,
0.0387794077,
-0.2685610354,
-0.255430758,
0.0633646175,
0.1922870278,
0.2518089116,
0.4446449578,
0.1803887188,
0.1049190387,
0.0316314735,
0.0318477675,
-0.1561172009,
0.1151200682,
0.2919998467,
0.2558411956,
0.1311029047,
0.4120825529,
0.0967437103,
-0.0789980814,
-0.3894118667,
0.1753252149,
0.150311023,
-0.3317725658,
0.0766262785,
-0.2146018445,
-0.1139470115,
-0.1419462413,
-0.4253391922,
-0.146453768,
-0.197835058,
-0.1058006212,
0.2810256779,
0.265062362,
0.1936623454,
-0.0239941925,
0.0500169992,
0.0625044554,
-0.1424838305,
-0.0558167063,
-0.2506767809,
-0.0925877392,
0.0015157837,
0.3277395666,
0.2468111217,
0.3685059249,
-0.3038309813,
-0.0695629939,
0.1437004507,
-0.3320978284,
0.1763456017,
-0.0056826347,
0.2919799387,
-0.0134427249,
-0.0779714435,
-0.3206298351,
-0.1939177215,
0.0215365253,
-0.1346228123,
-0.1827465594,
0.0472794473,
-0.1800285578,
-0.2297740728,
-0.0019907958,
-0.2926879525,
-0.434446156,
-0.3998571336,
-0.3682098389,
0.0472465605,
-0.0089028291,
0.4603002369,
-0.0427162126,
0.2933927178,
0.2250697613,
0.0508382916,
0.0179361086,
-0.3330913186,
0.4733822644,
-0.2865110338,
-0.2936577797,
0.280120492,
-0.2680465877,
0.3836090863,
0.0181831904,
-0.1104435548,
-0.213531211,
-0.0214795098,
0.3837371171,
-0.1009402126,
0.0416830108,
0.084635973,
0.1136622429,
0.078258425,
-0.0924064443,
-0.1815525442,
-0.2040504068,
0.219632104,
0.1930786818,
-0.1657152474,
0.2265980244,
-0.0363360941,
0.8421134353,
0.0771994442,
-0.0400502123,
0.3015678227,
-0.0616554916,
0.3064917922,
-0.1064245328,
-0.5121486783,
-0.0696846694,
-0.1073109135,
-0.0392839685,
0.0819719583,
-0.1839758158,
-0.1112222075,
-0.2847858965,
-0.2727976143,
-0.3160194457,
-0.2918522954,
-0.1147848591,
-0.2003916055,
0.1308543831,
0.1986789107,
-0.0612921529,
-0.1620079279,
-0.1124965847,
0.0489823781,
0.4355245233,
-0.420802623,
-0.0186146758,
0.3795598149,
-0.072855629,
-0.3464909792,
0.1986530572,
0.1317848265,
0.330327034,
0.0766259208,
0.1182001233,
0.0601410121,
-0.0493250713,
0.1122455373,
0.0591965392,
-0.0800003484,
0.2366164625,
-0.01469432,
-0.4012737572,
-0.057743486,
-0.2255627364,
0.2240984738,
0.4793189764,
0.0861524865,
-0.2667843699,
0.2115177065,
0.2363318205,
0.1412733644,
-0.1142226756,
-0.1485226154,
-0.4387521148,
-0.3134376705,
-0.378410697,
-0.0600449853,
0.1850459725,
0.2391747236,
0.0416694991,
-0.0708692968,
-0.0640274808,
-0.2169731855,
0.0610414371,
0.3596894443,
0.1482841223,
0.2704477012,
0.5801548362,
0.1271514595,
-0.2473592311,
0.4470183551,
0.5865610242,
0.0028330833,
-0.5835173726,
-0.0279994607,
-0.1797395945,
0.234888956,
0.1315192878,
-0.0706733316,
0.0163305122,
0.0595655069,
-0.1358519942,
0.3848748207,
0.3812658489,
-0.0635428131,
0.1262481958,
-0.4026652873,
-0.1285913736,
0.0958479792,
0.0007423602,
0.1376990378,
0.4601655304,
-0.3796383142,
-0.0598221943,
0.0470988378,
-0.1843538284,
0.6863651872,
-0.0381888486,
-0.239015162,
0.2732535303,
-0.1615029126,
0.2652589083,
0.1131907031,
0.1857605278,
-0.2762228251,
-0.3076210916,
0.0923929811,
-0.2266218513,
0.1900258064,
-0.1945811361,
-0.3511311412,
0.2596142888,
0.0564559288,
-0.1498303562,
-0.0185761917,
0.0406049602,
0.0024128403,
-0.2937500775,
-0.3525198698,
0.0517694242,
-0.1905303895,
0.2061719894,
-0.1972418875,
-0.183346346,
-0.1389481276,
-0.1865323782,
-0.0331040807,
-0.1090354919,
-0.6445793509,
0.2370985448,
0.3314477801,
-0.3087444007,
0.2005168349,
-0.1111384854,
0.0950987712,
-0.0293306299,
-0.1739497632,
0.1265122592,
0.1993345916,
0.0166865848,
-0.1108885333,
-0.1729524881,
0.4197726548,
-0.0839654803,
0.0050037848,
0.0576664656,
0.036622867,
-0.0225344487,
0.4702344239,
0.3512618244,
0.3681574762,
0.1506928653,
-0.0755759776,
0.1810475141,
0.261675328,
-0.195877552,
0.078042157,
0.1019754782,
-0.1530846357,
0.2558068633,
-0.1075140536,
-0.1003245413,
-0.0019221493,
0.3397726119,
0.1296712607,
-0.0160999838,
0.1832214594,
0.1551725268,
-0.2558428645,
-0.0844760612,
0.1688348651,
-0.3087920249,
-0.3004137278,
0.241277203,
-0.0199141391,
0.0491271727,
0.0744940937,
0.7340952158,
0.2456148863,
-0.3685688674,
-0.1320783943,
-0.3772932291,
-0.5326018929,
0.1417693198,
-0.1205236986,
-0.0949436203,
0.2369502783,
0.3836894929,
0.1208686978,
0.1284105331,
-0.220890522,
0.1052406356,
-0.1584757119,
0.1540041417,
0.2756508589,
-0.0960514694,
0.0372920744,
0.0859895498,
0.004242043,
0.1529784501,
0.0671002567,
-0.2249542624,
-0.1146585941,
0.1326806247,
-0.1025534347,
0.040870741,
-0.118026115,
-0.1512854844,
-0.2300351262,
-0.1715027094,
0.1590516418,
0.0351240411,
-0.0818418115,
-0.1321558058,
0.2920052707,
-0.0966297239,
-0.2174018025,
0.4025672972,
0.1177950203,
0.0810076743,
0.0776668638,
0.1660299748,
0.1665420234,
0.183278963,
0.0175298546,
-0.2253393233,
-0.0916716233,
-0.1765127778,
0.0942780897,
-0.3320895433,
-0.0140228625,
0.069995068,
-0.0275069326,
0.4203798473,
-0.1289569587,
-0.2099849731,
0.0472415499,
0.0857806653,
-0.388807714,
0.0311131999,
0.30426386,
0.1548587978,
0.1754324138,
0.2722876966,
0.081771709,
0.0818846747,
0.1544097364,
0.395252049,
0.2447241992,
-0.0228373446,
0.2661114931,
-0.2058010101,
0.0857818499,
0.2306346446,
0.2361097038,
0.118432261,
0.0381047837,
0.152669847,
-0.150182873,
0.2959783673,
0.1446439475,
-0.1672737747,
0.2365310937,
-0.3596026301,
0.2424565703,
-0.0986768007,
0.0569084324,
-0.136328131,
0.1417861432,
0.3276463151,
-0.0491864793,
-0.0884467587,
-0.1608532071,
-0.0030408262,
-0.3001901805,
0.2709415555,
0.4638241827,
-0.0976308808,
-0.0931241959,
-0.0431757309,
0.2145773023,
0.2175282538,
0.537479043,
0.3159118593,
-0.1668996066,
-0.4896299541,
-0.1224404722,
0.5082057714,
-0.1266731918,
-0.1844532937,
0.4623733461,
-0.1348712593,
0.0100122001,
-0.1652807295,
0.3222153187,
0.4884845316,
0.3006312251,
-0.1383482069,
-0.2075259835,
0.2566275299,
-0.1801051199,
-0.1383738965,
0.210721612,
0.0596839413,
0.2941678464,
0.2981709242,
0.084253557,
-0.1690877378,
-0.032037545,
0.2207306027,
-0.3357614577,
-0.4409195781,
0.2064285129,
-0.1567063928,
-0.002659057,
-0.1897850484,
0.0980004743,
-0.4563895464,
0.2288247198,
0.3156726956,
-0.2224389464,
-0.0670025051,
-0.1489631981,
0.0449593626,
-0.0307993963,
0.3605278134,
0.2467246652,
0.3562097549,
-0.2011302114,
-0.1037733927,
-0.8396955729,
0.3146014512,
0.0336659662,
-0.01173048,
-0.0385529101,
0.1393252313,
-0.0011309733,
0.3212940097,
0.4201124609,
0.0454288498,
0.1901209503,
0.0372286737,
-0.4620157182,
-0.2717563212,
0.0900408179,
-0.4454762042,
0.0050570425,
-0.3917898536,
-0.0040982892,
-0.2824519873,
-0.0414681435,
-0.0273980387,
-0.4465277791,
0.270176053,
0.3022377491,
0.295974195,
-0.0437555313,
0.6722488999,
-0.05365704,
0.0996359438,
-0.0690654963,
-0.3176441491,
-0.0269643702,
0.1578304172,
0.3953226507,
0.2114284188,
-0.2491105944,
0.0748828202,
-0.1284852773,
0.1337046027,
0.1330320388,
0.0128993466,
-0.2782158554,
0.068542026,
-0.1654135138,
0.4030524194,
-0.1301136762,
0.1823721677,
0.0637911931,
0.2705150545,
-0.3036562502,
-0.3571580946,
0.3911987245,
-0.3434486985,
-0.4585973322,
-0.4276725054,
0.2904646099,
0.1598202437,
-0.2049571425,
-0.4742091298,
0.0093035027,
0.2549891472,
-0.1533088237,
-0.1555007845,
0.5398077369,
0.06995444,
0.2142626047,
-0.121996209,
0.2098635733,
0.0046631866,
-0.1189016402,
-0.1165049896,
-0.0643659607
] |
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.4603254795,
-0.2148275226,
-0.0243750736,
0.2682135701,
0.1354127526,
0.0519943908,
0.4973770976,
-0.1074850187,
0.1983703226,
0.0849529952,
-0.3266308308,
0.4753236175,
-0.1742699891,
0.1487480402,
-0.2584453821,
0.0984701663,
-0.0661858618,
0.0582034029,
-0.2907034159,
0.0956149176,
0.0202916637,
0.3308885694,
-0.633569181,
-0.3468570411,
-0.5786885023,
-0.2100412697,
-0.0277420823,
0.1687915921,
-0.2702192366,
-0.2920111418,
0.3478227556,
0.1770585179,
0.0921899751,
0.56971699,
-0.0001172403,
0.0715134516,
0.393309474,
-0.0787533373,
-0.245689705,
-0.3918707967,
-0.3461534381,
-0.3291963041,
0.3686219454,
-0.1073926836,
0.1058271974,
0.4041658044,
-0.1357308328,
-0.1332754642,
0.2626953125,
0.1352796406,
0.1936343163,
0.5491981506,
0.1630604267,
-0.1924922466,
-0.1125867292,
-0.1933780462,
-0.2020827979,
0.7461529374,
0.4174179137,
0.016856337,
-0.0510250293,
0.260495007,
-0.0992679521,
0.2890876532,
0.1862410307,
-0.0334218182,
0.1051015556,
-0.4805829525,
0.1006370634,
0.1743775308,
0.4806716442,
-0.2334275991,
0.0443904661,
-0.1220248491,
0.209474057,
-0.2924675345,
0.2619006038,
-0.0985702276,
-0.2118593156,
0.0490081348,
-0.0226965006,
-0.0896172747,
-0.0123072658,
0.0164374616,
-0.0933857635,
0.3655067682,
-0.1430076063,
-0.1118265018,
0.0698659122,
-0.109641619,
0.501809597,
-0.0161826089,
-0.0268676858,
0.2063280344,
-0.468000561,
-0.0093297176,
-0.0988706723,
-0.1408490092,
-0.0516988412,
-0.1014949009,
-0.0361867622,
0.017466763,
-0.1110088378,
0.3034836352,
0.184802413,
0.1422501504,
0.0347585008,
0.0182992499,
0.1226538196,
0.2864285111,
-0.2007627934,
0.2273954451,
-0.2592826784,
-0.3118796945,
0.1845090538,
-0.0292138737,
0.2715789676,
-0.0037106599,
-0.319062084,
-0.181845367,
0.0095682023,
0.1050422639,
0.0446223952,
0.3990534544,
0.0557954498,
0.105708763,
-0.0346218757,
0.0016939327,
-0.3566536009,
-0.2394383401,
-0.0538450442,
0.1936964393,
-0.0642800853,
-0.1152993217,
0.0678032786,
-0.154998973,
0.260186553,
-0.012420699,
0.3092046678,
-0.0599603392,
0.1036739275,
-0.3025385737,
-0.0606455244,
0.331908226,
0.1287348568,
0.0872024,
-0.0623134971,
-0.205578059,
-0.0778880641,
0.2355171889,
-0.4770625234,
-0.1442363262,
-0.0243148636,
0.142946437,
-0.1339149177,
-0.2244309783,
-0.5850236416,
0.1648343056,
0.1447639763,
-0.0812812895,
-0.0849621296,
-0.3062836528,
-0.2330712527,
-0.1535830051,
0.1236881837,
0.4482834935,
-0.2309289575,
-0.1423142701,
-0.2176909,
0.1205274463,
0.1272706538,
0.2348231822,
-0.2021542341,
0.1736089587,
-0.0962644219,
-0.1171420589,
0.4906486571,
-0.4326360226,
-0.4671246111,
-0.0203476399,
-0.266076386,
-0.0052545578,
-0.0897065401,
0.0485793501,
0.3577235043,
-0.066940777,
0.5458382964,
0.2629370987,
-0.1390327066,
-0.0366043225,
-0.164090991,
-0.4099053144,
0.1294253618,
0.0418197513,
0.1834632605,
-0.2177712619,
0.2030326426,
-0.0533746444,
0.1012381837,
0.1859946102,
-0.1211296171,
0.3843333125,
0.2429011762,
-0.2223786861,
0.0372740179,
-0.1859574914,
-0.4775208533,
0.224048093,
0.40929389,
0.0799714625,
-0.0674990639,
0.0513248108,
-0.4381962717,
0.0791066587,
-0.259444356,
0.0676426515,
0.0994126648,
-0.0666699558,
-0.1751305908,
0.0889265761,
-0.2604833245,
0.7403810024,
0.0377079211,
0.2175934762,
-0.3183416724,
0.2157880366,
-0.1859040558,
-0.3081795573,
0.1762924343,
0.13617149,
0.0753254071,
-0.092272602,
-0.2389076203,
0.142121464,
0.2554136515,
0.1713410914,
0.0618921556,
-0.2776557803,
0.4123666286,
-0.2740115225,
0.0123252673,
-0.1066840217,
0.2085703164,
0.0058230115,
0.2551184595,
0.1565715075,
-0.3707030714,
-0.0410733372,
-0.0305120535,
0.0905382186,
0.3726440966,
0.1239962727,
-0.0050925557,
-0.1856490821,
0.3251841068,
0.2222952098,
0.1924740821,
0.0937419534,
-0.1297321618,
0.2881350815,
0.3061756492,
0.2452443838,
0.0387794077,
-0.2685610354,
-0.255430758,
0.0633646175,
0.1922870278,
0.2518089116,
0.4446449578,
0.1803887188,
0.1049190387,
0.0316314735,
0.0318477675,
-0.1561172009,
0.1151200682,
0.2919998467,
0.2558411956,
0.1311029047,
0.4120825529,
0.0967437103,
-0.0789980814,
-0.3894118667,
0.1753252149,
0.150311023,
-0.3317725658,
0.0766262785,
-0.2146018445,
-0.1139470115,
-0.1419462413,
-0.4253391922,
-0.146453768,
-0.197835058,
-0.1058006212,
0.2810256779,
0.265062362,
0.1936623454,
-0.0239941925,
0.0500169992,
0.0625044554,
-0.1424838305,
-0.0558167063,
-0.2506767809,
-0.0925877392,
0.0015157837,
0.3277395666,
0.2468111217,
0.3685059249,
-0.3038309813,
-0.0695629939,
0.1437004507,
-0.3320978284,
0.1763456017,
-0.0056826347,
0.2919799387,
-0.0134427249,
-0.0779714435,
-0.3206298351,
-0.1939177215,
0.0215365253,
-0.1346228123,
-0.1827465594,
0.0472794473,
-0.1800285578,
-0.2297740728,
-0.0019907958,
-0.2926879525,
-0.434446156,
-0.3998571336,
-0.3682098389,
0.0472465605,
-0.0089028291,
0.4603002369,
-0.0427162126,
0.2933927178,
0.2250697613,
0.0508382916,
0.0179361086,
-0.3330913186,
0.4733822644,
-0.2865110338,
-0.2936577797,
0.280120492,
-0.2680465877,
0.3836090863,
0.0181831904,
-0.1104435548,
-0.213531211,
-0.0214795098,
0.3837371171,
-0.1009402126,
0.0416830108,
0.084635973,
0.1136622429,
0.078258425,
-0.0924064443,
-0.1815525442,
-0.2040504068,
0.219632104,
0.1930786818,
-0.1657152474,
0.2265980244,
-0.0363360941,
0.8421134353,
0.0771994442,
-0.0400502123,
0.3015678227,
-0.0616554916,
0.3064917922,
-0.1064245328,
-0.5121486783,
-0.0696846694,
-0.1073109135,
-0.0392839685,
0.0819719583,
-0.1839758158,
-0.1112222075,
-0.2847858965,
-0.2727976143,
-0.3160194457,
-0.2918522954,
-0.1147848591,
-0.2003916055,
0.1308543831,
0.1986789107,
-0.0612921529,
-0.1620079279,
-0.1124965847,
0.0489823781,
0.4355245233,
-0.420802623,
-0.0186146758,
0.3795598149,
-0.072855629,
-0.3464909792,
0.1986530572,
0.1317848265,
0.330327034,
0.0766259208,
0.1182001233,
0.0601410121,
-0.0493250713,
0.1122455373,
0.0591965392,
-0.0800003484,
0.2366164625,
-0.01469432,
-0.4012737572,
-0.057743486,
-0.2255627364,
0.2240984738,
0.4793189764,
0.0861524865,
-0.2667843699,
0.2115177065,
0.2363318205,
0.1412733644,
-0.1142226756,
-0.1485226154,
-0.4387521148,
-0.3134376705,
-0.378410697,
-0.0600449853,
0.1850459725,
0.2391747236,
0.0416694991,
-0.0708692968,
-0.0640274808,
-0.2169731855,
0.0610414371,
0.3596894443,
0.1482841223,
0.2704477012,
0.5801548362,
0.1271514595,
-0.2473592311,
0.4470183551,
0.5865610242,
0.0028330833,
-0.5835173726,
-0.0279994607,
-0.1797395945,
0.234888956,
0.1315192878,
-0.0706733316,
0.0163305122,
0.0595655069,
-0.1358519942,
0.3848748207,
0.3812658489,
-0.0635428131,
0.1262481958,
-0.4026652873,
-0.1285913736,
0.0958479792,
0.0007423602,
0.1376990378,
0.4601655304,
-0.3796383142,
-0.0598221943,
0.0470988378,
-0.1843538284,
0.6863651872,
-0.0381888486,
-0.239015162,
0.2732535303,
-0.1615029126,
0.2652589083,
0.1131907031,
0.1857605278,
-0.2762228251,
-0.3076210916,
0.0923929811,
-0.2266218513,
0.1900258064,
-0.1945811361,
-0.3511311412,
0.2596142888,
0.0564559288,
-0.1498303562,
-0.0185761917,
0.0406049602,
0.0024128403,
-0.2937500775,
-0.3525198698,
0.0517694242,
-0.1905303895,
0.2061719894,
-0.1972418875,
-0.183346346,
-0.1389481276,
-0.1865323782,
-0.0331040807,
-0.1090354919,
-0.6445793509,
0.2370985448,
0.3314477801,
-0.3087444007,
0.2005168349,
-0.1111384854,
0.0950987712,
-0.0293306299,
-0.1739497632,
0.1265122592,
0.1993345916,
0.0166865848,
-0.1108885333,
-0.1729524881,
0.4197726548,
-0.0839654803,
0.0050037848,
0.0576664656,
0.036622867,
-0.0225344487,
0.4702344239,
0.3512618244,
0.3681574762,
0.1506928653,
-0.0755759776,
0.1810475141,
0.261675328,
-0.195877552,
0.078042157,
0.1019754782,
-0.1530846357,
0.2558068633,
-0.1075140536,
-0.1003245413,
-0.0019221493,
0.3397726119,
0.1296712607,
-0.0160999838,
0.1832214594,
0.1551725268,
-0.2558428645,
-0.0844760612,
0.1688348651,
-0.3087920249,
-0.3004137278,
0.241277203,
-0.0199141391,
0.0491271727,
0.0744940937,
0.7340952158,
0.2456148863,
-0.3685688674,
-0.1320783943,
-0.3772932291,
-0.5326018929,
0.1417693198,
-0.1205236986,
-0.0949436203,
0.2369502783,
0.3836894929,
0.1208686978,
0.1284105331,
-0.220890522,
0.1052406356,
-0.1584757119,
0.1540041417,
0.2756508589,
-0.0960514694,
0.0372920744,
0.0859895498,
0.004242043,
0.1529784501,
0.0671002567,
-0.2249542624,
-0.1146585941,
0.1326806247,
-0.1025534347,
0.040870741,
-0.118026115,
-0.1512854844,
-0.2300351262,
-0.1715027094,
0.1590516418,
0.0351240411,
-0.0818418115,
-0.1321558058,
0.2920052707,
-0.0966297239,
-0.2174018025,
0.4025672972,
0.1177950203,
0.0810076743,
0.0776668638,
0.1660299748,
0.1665420234,
0.183278963,
0.0175298546,
-0.2253393233,
-0.0916716233,
-0.1765127778,
0.0942780897,
-0.3320895433,
-0.0140228625,
0.069995068,
-0.0275069326,
0.4203798473,
-0.1289569587,
-0.2099849731,
0.0472415499,
0.0857806653,
-0.388807714,
0.0311131999,
0.30426386,
0.1548587978,
0.1754324138,
0.2722876966,
0.081771709,
0.0818846747,
0.1544097364,
0.395252049,
0.2447241992,
-0.0228373446,
0.2661114931,
-0.2058010101,
0.0857818499,
0.2306346446,
0.2361097038,
0.118432261,
0.0381047837,
0.152669847,
-0.150182873,
0.2959783673,
0.1446439475,
-0.1672737747,
0.2365310937,
-0.3596026301,
0.2424565703,
-0.0986768007,
0.0569084324,
-0.136328131,
0.1417861432,
0.3276463151,
-0.0491864793,
-0.0884467587,
-0.1608532071,
-0.0030408262,
-0.3001901805,
0.2709415555,
0.4638241827,
-0.0976308808,
-0.0931241959,
-0.0431757309,
0.2145773023,
0.2175282538,
0.537479043,
0.3159118593,
-0.1668996066,
-0.4896299541,
-0.1224404722,
0.5082057714,
-0.1266731918,
-0.1844532937,
0.4623733461,
-0.1348712593,
0.0100122001,
-0.1652807295,
0.3222153187,
0.4884845316,
0.3006312251,
-0.1383482069,
-0.2075259835,
0.2566275299,
-0.1801051199,
-0.1383738965,
0.210721612,
0.0596839413,
0.2941678464,
0.2981709242,
0.084253557,
-0.1690877378,
-0.032037545,
0.2207306027,
-0.3357614577,
-0.4409195781,
0.2064285129,
-0.1567063928,
-0.002659057,
-0.1897850484,
0.0980004743,
-0.4563895464,
0.2288247198,
0.3156726956,
-0.2224389464,
-0.0670025051,
-0.1489631981,
0.0449593626,
-0.0307993963,
0.3605278134,
0.2467246652,
0.3562097549,
-0.2011302114,
-0.1037733927,
-0.8396955729,
0.3146014512,
0.0336659662,
-0.01173048,
-0.0385529101,
0.1393252313,
-0.0011309733,
0.3212940097,
0.4201124609,
0.0454288498,
0.1901209503,
0.0372286737,
-0.4620157182,
-0.2717563212,
0.0900408179,
-0.4454762042,
0.0050570425,
-0.3917898536,
-0.0040982892,
-0.2824519873,
-0.0414681435,
-0.0273980387,
-0.4465277791,
0.270176053,
0.3022377491,
0.295974195,
-0.0437555313,
0.6722488999,
-0.05365704,
0.0996359438,
-0.0690654963,
-0.3176441491,
-0.0269643702,
0.1578304172,
0.3953226507,
0.2114284188,
-0.2491105944,
0.0748828202,
-0.1284852773,
0.1337046027,
0.1330320388,
0.0128993466,
-0.2782158554,
0.068542026,
-0.1654135138,
0.4030524194,
-0.1301136762,
0.1823721677,
0.0637911931,
0.2705150545,
-0.3036562502,
-0.3571580946,
0.3911987245,
-0.3434486985,
-0.4585973322,
-0.4276725054,
0.2904646099,
0.1598202437,
-0.2049571425,
-0.4742091298,
0.0093035027,
0.2549891472,
-0.1533088237,
-0.1555007845,
0.5398077369,
0.06995444,
0.2142626047,
-0.121996209,
0.2098635733,
0.0046631866,
-0.1189016402,
-0.1165049896,
-0.0643659607
] |
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.4603254795,
-0.2148275226,
-0.0243750736,
0.2682135701,
0.1354127526,
0.0519943908,
0.4973770976,
-0.1074850187,
0.1983703226,
0.0849529952,
-0.3266308308,
0.4753236175,
-0.1742699891,
0.1487480402,
-0.2584453821,
0.0984701663,
-0.0661858618,
0.0582034029,
-0.2907034159,
0.0956149176,
0.0202916637,
0.3308885694,
-0.633569181,
-0.3468570411,
-0.5786885023,
-0.2100412697,
-0.0277420823,
0.1687915921,
-0.2702192366,
-0.2920111418,
0.3478227556,
0.1770585179,
0.0921899751,
0.56971699,
-0.0001172403,
0.0715134516,
0.393309474,
-0.0787533373,
-0.245689705,
-0.3918707967,
-0.3461534381,
-0.3291963041,
0.3686219454,
-0.1073926836,
0.1058271974,
0.4041658044,
-0.1357308328,
-0.1332754642,
0.2626953125,
0.1352796406,
0.1936343163,
0.5491981506,
0.1630604267,
-0.1924922466,
-0.1125867292,
-0.1933780462,
-0.2020827979,
0.7461529374,
0.4174179137,
0.016856337,
-0.0510250293,
0.260495007,
-0.0992679521,
0.2890876532,
0.1862410307,
-0.0334218182,
0.1051015556,
-0.4805829525,
0.1006370634,
0.1743775308,
0.4806716442,
-0.2334275991,
0.0443904661,
-0.1220248491,
0.209474057,
-0.2924675345,
0.2619006038,
-0.0985702276,
-0.2118593156,
0.0490081348,
-0.0226965006,
-0.0896172747,
-0.0123072658,
0.0164374616,
-0.0933857635,
0.3655067682,
-0.1430076063,
-0.1118265018,
0.0698659122,
-0.109641619,
0.501809597,
-0.0161826089,
-0.0268676858,
0.2063280344,
-0.468000561,
-0.0093297176,
-0.0988706723,
-0.1408490092,
-0.0516988412,
-0.1014949009,
-0.0361867622,
0.017466763,
-0.1110088378,
0.3034836352,
0.184802413,
0.1422501504,
0.0347585008,
0.0182992499,
0.1226538196,
0.2864285111,
-0.2007627934,
0.2273954451,
-0.2592826784,
-0.3118796945,
0.1845090538,
-0.0292138737,
0.2715789676,
-0.0037106599,
-0.319062084,
-0.181845367,
0.0095682023,
0.1050422639,
0.0446223952,
0.3990534544,
0.0557954498,
0.105708763,
-0.0346218757,
0.0016939327,
-0.3566536009,
-0.2394383401,
-0.0538450442,
0.1936964393,
-0.0642800853,
-0.1152993217,
0.0678032786,
-0.154998973,
0.260186553,
-0.012420699,
0.3092046678,
-0.0599603392,
0.1036739275,
-0.3025385737,
-0.0606455244,
0.331908226,
0.1287348568,
0.0872024,
-0.0623134971,
-0.205578059,
-0.0778880641,
0.2355171889,
-0.4770625234,
-0.1442363262,
-0.0243148636,
0.142946437,
-0.1339149177,
-0.2244309783,
-0.5850236416,
0.1648343056,
0.1447639763,
-0.0812812895,
-0.0849621296,
-0.3062836528,
-0.2330712527,
-0.1535830051,
0.1236881837,
0.4482834935,
-0.2309289575,
-0.1423142701,
-0.2176909,
0.1205274463,
0.1272706538,
0.2348231822,
-0.2021542341,
0.1736089587,
-0.0962644219,
-0.1171420589,
0.4906486571,
-0.4326360226,
-0.4671246111,
-0.0203476399,
-0.266076386,
-0.0052545578,
-0.0897065401,
0.0485793501,
0.3577235043,
-0.066940777,
0.5458382964,
0.2629370987,
-0.1390327066,
-0.0366043225,
-0.164090991,
-0.4099053144,
0.1294253618,
0.0418197513,
0.1834632605,
-0.2177712619,
0.2030326426,
-0.0533746444,
0.1012381837,
0.1859946102,
-0.1211296171,
0.3843333125,
0.2429011762,
-0.2223786861,
0.0372740179,
-0.1859574914,
-0.4775208533,
0.224048093,
0.40929389,
0.0799714625,
-0.0674990639,
0.0513248108,
-0.4381962717,
0.0791066587,
-0.259444356,
0.0676426515,
0.0994126648,
-0.0666699558,
-0.1751305908,
0.0889265761,
-0.2604833245,
0.7403810024,
0.0377079211,
0.2175934762,
-0.3183416724,
0.2157880366,
-0.1859040558,
-0.3081795573,
0.1762924343,
0.13617149,
0.0753254071,
-0.092272602,
-0.2389076203,
0.142121464,
0.2554136515,
0.1713410914,
0.0618921556,
-0.2776557803,
0.4123666286,
-0.2740115225,
0.0123252673,
-0.1066840217,
0.2085703164,
0.0058230115,
0.2551184595,
0.1565715075,
-0.3707030714,
-0.0410733372,
-0.0305120535,
0.0905382186,
0.3726440966,
0.1239962727,
-0.0050925557,
-0.1856490821,
0.3251841068,
0.2222952098,
0.1924740821,
0.0937419534,
-0.1297321618,
0.2881350815,
0.3061756492,
0.2452443838,
0.0387794077,
-0.2685610354,
-0.255430758,
0.0633646175,
0.1922870278,
0.2518089116,
0.4446449578,
0.1803887188,
0.1049190387,
0.0316314735,
0.0318477675,
-0.1561172009,
0.1151200682,
0.2919998467,
0.2558411956,
0.1311029047,
0.4120825529,
0.0967437103,
-0.0789980814,
-0.3894118667,
0.1753252149,
0.150311023,
-0.3317725658,
0.0766262785,
-0.2146018445,
-0.1139470115,
-0.1419462413,
-0.4253391922,
-0.146453768,
-0.197835058,
-0.1058006212,
0.2810256779,
0.265062362,
0.1936623454,
-0.0239941925,
0.0500169992,
0.0625044554,
-0.1424838305,
-0.0558167063,
-0.2506767809,
-0.0925877392,
0.0015157837,
0.3277395666,
0.2468111217,
0.3685059249,
-0.3038309813,
-0.0695629939,
0.1437004507,
-0.3320978284,
0.1763456017,
-0.0056826347,
0.2919799387,
-0.0134427249,
-0.0779714435,
-0.3206298351,
-0.1939177215,
0.0215365253,
-0.1346228123,
-0.1827465594,
0.0472794473,
-0.1800285578,
-0.2297740728,
-0.0019907958,
-0.2926879525,
-0.434446156,
-0.3998571336,
-0.3682098389,
0.0472465605,
-0.0089028291,
0.4603002369,
-0.0427162126,
0.2933927178,
0.2250697613,
0.0508382916,
0.0179361086,
-0.3330913186,
0.4733822644,
-0.2865110338,
-0.2936577797,
0.280120492,
-0.2680465877,
0.3836090863,
0.0181831904,
-0.1104435548,
-0.213531211,
-0.0214795098,
0.3837371171,
-0.1009402126,
0.0416830108,
0.084635973,
0.1136622429,
0.078258425,
-0.0924064443,
-0.1815525442,
-0.2040504068,
0.219632104,
0.1930786818,
-0.1657152474,
0.2265980244,
-0.0363360941,
0.8421134353,
0.0771994442,
-0.0400502123,
0.3015678227,
-0.0616554916,
0.3064917922,
-0.1064245328,
-0.5121486783,
-0.0696846694,
-0.1073109135,
-0.0392839685,
0.0819719583,
-0.1839758158,
-0.1112222075,
-0.2847858965,
-0.2727976143,
-0.3160194457,
-0.2918522954,
-0.1147848591,
-0.2003916055,
0.1308543831,
0.1986789107,
-0.0612921529,
-0.1620079279,
-0.1124965847,
0.0489823781,
0.4355245233,
-0.420802623,
-0.0186146758,
0.3795598149,
-0.072855629,
-0.3464909792,
0.1986530572,
0.1317848265,
0.330327034,
0.0766259208,
0.1182001233,
0.0601410121,
-0.0493250713,
0.1122455373,
0.0591965392,
-0.0800003484,
0.2366164625,
-0.01469432,
-0.4012737572,
-0.057743486,
-0.2255627364,
0.2240984738,
0.4793189764,
0.0861524865,
-0.2667843699,
0.2115177065,
0.2363318205,
0.1412733644,
-0.1142226756,
-0.1485226154,
-0.4387521148,
-0.3134376705,
-0.378410697,
-0.0600449853,
0.1850459725,
0.2391747236,
0.0416694991,
-0.0708692968,
-0.0640274808,
-0.2169731855,
0.0610414371,
0.3596894443,
0.1482841223,
0.2704477012,
0.5801548362,
0.1271514595,
-0.2473592311,
0.4470183551,
0.5865610242,
0.0028330833,
-0.5835173726,
-0.0279994607,
-0.1797395945,
0.234888956,
0.1315192878,
-0.0706733316,
0.0163305122,
0.0595655069,
-0.1358519942,
0.3848748207,
0.3812658489,
-0.0635428131,
0.1262481958,
-0.4026652873,
-0.1285913736,
0.0958479792,
0.0007423602,
0.1376990378,
0.4601655304,
-0.3796383142,
-0.0598221943,
0.0470988378,
-0.1843538284,
0.6863651872,
-0.0381888486,
-0.239015162,
0.2732535303,
-0.1615029126,
0.2652589083,
0.1131907031,
0.1857605278,
-0.2762228251,
-0.3076210916,
0.0923929811,
-0.2266218513,
0.1900258064,
-0.1945811361,
-0.3511311412,
0.2596142888,
0.0564559288,
-0.1498303562,
-0.0185761917,
0.0406049602,
0.0024128403,
-0.2937500775,
-0.3525198698,
0.0517694242,
-0.1905303895,
0.2061719894,
-0.1972418875,
-0.183346346,
-0.1389481276,
-0.1865323782,
-0.0331040807,
-0.1090354919,
-0.6445793509,
0.2370985448,
0.3314477801,
-0.3087444007,
0.2005168349,
-0.1111384854,
0.0950987712,
-0.0293306299,
-0.1739497632,
0.1265122592,
0.1993345916,
0.0166865848,
-0.1108885333,
-0.1729524881,
0.4197726548,
-0.0839654803,
0.0050037848,
0.0576664656,
0.036622867,
-0.0225344487,
0.4702344239,
0.3512618244,
0.3681574762,
0.1506928653,
-0.0755759776,
0.1810475141,
0.261675328,
-0.195877552,
0.078042157,
0.1019754782,
-0.1530846357,
0.2558068633,
-0.1075140536,
-0.1003245413,
-0.0019221493,
0.3397726119,
0.1296712607,
-0.0160999838,
0.1832214594,
0.1551725268,
-0.2558428645,
-0.0844760612,
0.1688348651,
-0.3087920249,
-0.3004137278,
0.241277203,
-0.0199141391,
0.0491271727,
0.0744940937,
0.7340952158,
0.2456148863,
-0.3685688674,
-0.1320783943,
-0.3772932291,
-0.5326018929,
0.1417693198,
-0.1205236986,
-0.0949436203,
0.2369502783,
0.3836894929,
0.1208686978,
0.1284105331,
-0.220890522,
0.1052406356,
-0.1584757119,
0.1540041417,
0.2756508589,
-0.0960514694,
0.0372920744,
0.0859895498,
0.004242043,
0.1529784501,
0.0671002567,
-0.2249542624,
-0.1146585941,
0.1326806247,
-0.1025534347,
0.040870741,
-0.118026115,
-0.1512854844,
-0.2300351262,
-0.1715027094,
0.1590516418,
0.0351240411,
-0.0818418115,
-0.1321558058,
0.2920052707,
-0.0966297239,
-0.2174018025,
0.4025672972,
0.1177950203,
0.0810076743,
0.0776668638,
0.1660299748,
0.1665420234,
0.183278963,
0.0175298546,
-0.2253393233,
-0.0916716233,
-0.1765127778,
0.0942780897,
-0.3320895433,
-0.0140228625,
0.069995068,
-0.0275069326,
0.4203798473,
-0.1289569587,
-0.2099849731,
0.0472415499,
0.0857806653,
-0.388807714,
0.0311131999,
0.30426386,
0.1548587978,
0.1754324138,
0.2722876966,
0.081771709,
0.0818846747,
0.1544097364,
0.395252049,
0.2447241992,
-0.0228373446,
0.2661114931,
-0.2058010101,
0.0857818499,
0.2306346446,
0.2361097038,
0.118432261,
0.0381047837,
0.152669847,
-0.150182873,
0.2959783673,
0.1446439475,
-0.1672737747,
0.2365310937,
-0.3596026301,
0.2424565703,
-0.0986768007,
0.0569084324,
-0.136328131,
0.1417861432,
0.3276463151,
-0.0491864793,
-0.0884467587,
-0.1608532071,
-0.0030408262,
-0.3001901805,
0.2709415555,
0.4638241827,
-0.0976308808,
-0.0931241959,
-0.0431757309,
0.2145773023,
0.2175282538,
0.537479043,
0.3159118593,
-0.1668996066,
-0.4896299541,
-0.1224404722,
0.5082057714,
-0.1266731918,
-0.1844532937,
0.4623733461,
-0.1348712593,
0.0100122001,
-0.1652807295,
0.3222153187,
0.4884845316,
0.3006312251,
-0.1383482069,
-0.2075259835,
0.2566275299,
-0.1801051199,
-0.1383738965,
0.210721612,
0.0596839413,
0.2941678464,
0.2981709242,
0.084253557,
-0.1690877378,
-0.032037545,
0.2207306027,
-0.3357614577,
-0.4409195781,
0.2064285129,
-0.1567063928,
-0.002659057,
-0.1897850484,
0.0980004743,
-0.4563895464,
0.2288247198,
0.3156726956,
-0.2224389464,
-0.0670025051,
-0.1489631981,
0.0449593626,
-0.0307993963,
0.3605278134,
0.2467246652,
0.3562097549,
-0.2011302114,
-0.1037733927,
-0.8396955729,
0.3146014512,
0.0336659662,
-0.01173048,
-0.0385529101,
0.1393252313,
-0.0011309733,
0.3212940097,
0.4201124609,
0.0454288498,
0.1901209503,
0.0372286737,
-0.4620157182,
-0.2717563212,
0.0900408179,
-0.4454762042,
0.0050570425,
-0.3917898536,
-0.0040982892,
-0.2824519873,
-0.0414681435,
-0.0273980387,
-0.4465277791,
0.270176053,
0.3022377491,
0.295974195,
-0.0437555313,
0.6722488999,
-0.05365704,
0.0996359438,
-0.0690654963,
-0.3176441491,
-0.0269643702,
0.1578304172,
0.3953226507,
0.2114284188,
-0.2491105944,
0.0748828202,
-0.1284852773,
0.1337046027,
0.1330320388,
0.0128993466,
-0.2782158554,
0.068542026,
-0.1654135138,
0.4030524194,
-0.1301136762,
0.1823721677,
0.0637911931,
0.2705150545,
-0.3036562502,
-0.3571580946,
0.3911987245,
-0.3434486985,
-0.4585973322,
-0.4276725054,
0.2904646099,
0.1598202437,
-0.2049571425,
-0.4742091298,
0.0093035027,
0.2549891472,
-0.1533088237,
-0.1555007845,
0.5398077369,
0.06995444,
0.2142626047,
-0.121996209,
0.2098635733,
0.0046631866,
-0.1189016402,
-0.1165049896,
-0.0643659607
] |
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.3526867032,
-0.3867756426,
-0.0510649458,
0.2910829782,
0.2072106004,
0.0486672781,
-0.1169929355,
0.2295712233,
0.1450731158,
0.0749079585,
-0.207177788,
0.2856614292,
0.0034072113,
0.0860852748,
0.1964894384,
-0.2445530444,
0.070219405,
0.119609952,
0.0714931786,
-0.039535448,
-0.0941301882,
0.1315493286,
-0.2260096818,
0.0777679235,
-0.2466472387,
0.1261090189,
0.0916940048,
0.2066924125,
-0.3236722648,
-0.4029152393,
0.6594857574,
-0.0882711858,
0.2548995614,
0.6138738394,
-0.0001095451,
0.0444417633,
0.2389016002,
-0.0772670284,
0.0085789505,
-0.5894996524,
-0.3442206383,
-0.4234595299,
-0.0681285486,
-0.1822475344,
-0.0317803957,
-0.1360591054,
-0.1195597202,
-0.1269760579,
0.3041212261,
0.27583462,
0.2564079165,
0.4237167835,
0.2048835754,
-0.1892296076,
0.4242539704,
0.0090920664,
-0.3090730011,
0.2538469136,
0.4219305217,
0.1650081575,
0.4848670661,
0.2082422078,
-0.0695542023,
0.0420789458,
0.129795149,
0.0679555684,
-0.1117197275,
-0.4720569849,
0.0596620925,
0.3128014803,
0.4577903152,
-0.2595131695,
-0.3999510109,
-0.1368685663,
0.1110482663,
-0.2919361889,
0.3227857351,
0.2403819263,
-0.0112177301,
0.0619956143,
0.0464066043,
-0.0516871922,
-0.0386233889,
0.1513979286,
-0.042721048,
0.2568821013,
-0.2622475922,
-0.0077698571,
0.1031031236,
-0.046525307,
0.3317069113,
-0.0003911976,
-0.0721538439,
0.1808128208,
-0.2971531153,
0.0336147882,
-0.081233941,
-0.1032692194,
0.3259277046,
-0.06594529,
-0.1524970233,
-0.0552356169,
-0.1848700941,
0.0646037683,
0.2071900368,
0.2051489502,
0.0498813652,
0.0647758991,
0.202614978,
0.1957771778,
0.0656496286,
-0.0646907017,
-0.1810184717,
-0.02795895,
0.0963960439,
-0.0940712392,
0.4540395737,
-0.3807744086,
-0.3451698422,
-0.0102132326,
-0.0039379629,
0.0608344115,
0.1219210997,
0.147457242,
-0.0968996808,
0.3871397078,
-0.1044133231,
0.3990941346,
-0.2333690971,
-0.04210959,
-0.183231473,
0.3537902534,
-0.2850379944,
-0.2012858838,
0.2524964213,
-0.2233886123,
0.3617867231,
0.100048393,
0.3133206964,
-0.2062489688,
0.0428043418,
-0.0248360075,
-0.3530001342,
0.41047436,
0.1801798195,
0.2340245098,
-0.1464570314,
0.0782421157,
-0.129651323,
0.1654411256,
-0.6251087189,
-0.0875180364,
-0.0984896049,
0.1942233443,
-0.2082003653,
-0.1046870351,
-0.6656982303,
-0.167655617,
-0.0900124311,
0.143158555,
0.0834209025,
-0.2053961754,
0.154295668,
-0.1790492535,
0.2005877793,
0.241144523,
-0.2552345991,
0.0609921776,
-0.1533210725,
-0.2647585571,
-0.0765784904,
0.1262759566,
-0.2085568309,
0.0103682196,
-0.3422113359,
0.323213309,
0.4552651644,
-0.6140803099,
-0.5974394679,
-0.1052320004,
-0.2622517943,
0.089878574,
-0.061728023,
0.1077231094,
-0.0357162729,
-0.0788004696,
0.101433292,
0.245117873,
0.0692814291,
-0.0631380901,
-0.1651222855,
-0.2046423703,
-0.3625920117,
0.3529901505,
0.2083219588,
-0.0578962639,
0.0786109269,
0.0761334673,
0.0877822638,
-0.0318487771,
-0.0306236558,
0.4155045748,
0.3037109375,
-0.0001341006,
-0.1492663324,
-0.3682318926,
-0.3647809625,
0.31553936,
-0.0051268251,
-0.2266249508,
-0.016196508,
-0.0862173289,
-0.4500857294,
0.1982225031,
-0.2209275365,
-0.0606524125,
0.0769479498,
0.0073386491,
0.2201866359,
0.0836805478,
-0.2290254533,
0.1458618641,
0.016322501,
0.1431557387,
-0.4204462469,
0.3151151538,
-0.0489104688,
-0.155377984,
0.0702613443,
0.052623637,
0.2588836551,
-0.2040774375,
-0.1541563123,
0.2960610092,
-0.1171706021,
0.0546538942,
0.2451880425,
0.1121124551,
0.1407472193,
-0.5683159828,
0.2428392321,
0.0568335801,
0.0048018815,
0.1328019798,
-0.0801943094,
0.3285501003,
0.0742875263,
-0.1284797043,
-0.1443329901,
0.1246476173,
0.3701759875,
-0.1742715091,
0.0623167679,
-0.0386973508,
0.3798928261,
-0.1570977122,
0.2001882493,
-0.1817020476,
-0.3316302598,
0.0980750099,
0.2502307594,
-0.1069735661,
0.1860954612,
0.1444754303,
-0.1026409194,
0.1593290418,
-0.0966135561,
0.1676409692,
0.5179623961,
0.1285325289,
-0.0067949905,
0.0641476437,
0.008289028,
-0.1184644029,
0.0590546578,
0.1046781316,
-0.3239884377,
0.0827621222,
0.1612746119,
0.1036030948,
-0.2250234634,
-0.1348780394,
-0.1345206648,
0.0970061943,
-0.1478448808,
-0.0257359613,
-0.1935747117,
-0.1062391251,
-0.0235614125,
-0.0627597272,
-0.2630924582,
-0.1395763308,
-0.0624652542,
0.3216554224,
0.3296005428,
0.1525024772,
-0.3904212117,
-0.0954002142,
0.0352771915,
-0.3149368167,
-0.2127215862,
0.3404076993,
-0.0474718437,
0.0662845373,
0.0962967277,
0.0808144882,
0.2356975675,
-0.3708004653,
0.2722424567,
-0.4419665039,
-0.202993989,
0.0966421813,
-0.2410521209,
0.4696164429,
0.1120233908,
0.1265448928,
-0.0322054625,
0.2229401469,
0.3095310032,
-0.4043674767,
-0.0039249281,
0.0307902228,
0.0260594394,
-0.1758609116,
0.0369343981,
-0.1270143092,
-0.3618341386,
-0.3396022916,
0.0283499211,
0.0801372305,
-0.0221557226,
0.0101637272,
0.0757042989,
-0.02995863,
-0.1044039279,
-0.1533588171,
-0.2170976698,
-0.7377818823,
0.5196613073,
-0.2019710839,
-0.4470084012,
0.3016467094,
0.0556518026,
0.2421494275,
0.0431422107,
-0.5795797706,
-0.3328720927,
-0.2093738168,
0.3857640028,
0.0262415372,
0.1725893021,
0.1798844039,
-0.3582767248,
0.0249794573,
-0.2073284984,
-0.2407356352,
-0.3274491131,
0.137680456,
0.3069241643,
0.0616083741,
0.1685750037,
-0.1148672923,
0.4480383396,
0.140306443,
0.1453655362,
0.5500608087,
-0.0225300565,
0.3252840042,
-0.154556796,
-0.3528731763,
-0.1701274514,
0.0941822529,
0.1193364486,
-0.0195561089,
0.2615588903,
0.0613201335,
-0.3054990768,
-0.1316114217,
-0.0387073979,
-0.0832648501,
-0.0314534493,
0.1191359758,
0.1137527451,
0.0811116919,
0.2296649814,
-0.1488061398,
-0.1825036407,
0.0221288409,
0.4156580865,
0.1601018906,
0.2835167944,
-0.5198408961,
0.1627908945,
-0.3463425636,
0.2180435807,
-0.0051469868,
0.3751676083,
0.0005980741,
0.1822774261,
0.2526136339,
0.0190843027,
0.336548835,
-0.1874767244,
0.2626710534,
0.1567425877,
-0.1884523928,
-0.2643440366,
-0.1834804416,
-0.0880472064,
0.1510480344,
0.2219394296,
0.4319797456,
-0.2872444391,
-0.2112278342,
0.2268483639,
0.2067935914,
0.024137957,
-0.1701165587,
-0.2435175478,
-0.5633919835,
-0.1476867497,
-0.1200378537,
0.2404229194,
0.0556024015,
0.1601884216,
0.0037762586,
-0.2464238256,
-0.0884151831,
0.1463683695,
0.1705906689,
0.3395797908,
-0.1337961406,
0.3536370099,
0.143511191,
-0.3297021389,
0.267031014,
0.7374881506,
0.0058286823,
-0.4494513571,
0.0718678012,
-0.0187180005,
-0.0781946555,
0.1143374965,
-0.2037747353,
-0.0973355547,
-0.2186989039,
0.0812801719,
0.0257367697,
0.1539980322,
0.377166748,
0.0625730678,
-0.5213443041,
-0.3220101893,
0.5426342487,
0.2666314542,
0.1196524575,
0.2263088226,
-0.0863893479,
0.047035858,
-0.2256039083,
-0.0838146061,
0.9448819757,
-0.0112388236,
0.0339342095,
0.1245706975,
0.014548731,
0.1615135372,
-0.1924781799,
0.0699110031,
-0.1522157639,
-0.4263076782,
-0.1463763565,
-0.1881896406,
0.1286137551,
-0.0577635206,
0.0621435642,
0.2255205214,
-0.0725997612,
0.1192601621,
0.0648186952,
0.0723348632,
-0.1526963264,
-0.1707782894,
-0.5171350837,
0.1991241723,
-0.0697473511,
0.4064854681,
-0.138829127,
-0.1040902436,
-0.1983233839,
-0.0959431902,
-0.1218512133,
0.2916822433,
0.0023222796,
0.071559675,
0.057902433,
-0.6102399826,
0.0385803208,
0.0526864417,
0.0162252355,
0.1011556461,
-0.2659354806,
0.3533175588,
-0.0021153004,
-0.2266727239,
0.1472968906,
-0.1359360516,
-0.1531226635,
-0.0944723487,
-0.1086310744,
0.1762410551,
-0.0828934833,
-0.1928375214,
-0.2500215769,
0.0991539508,
-0.1647956371,
-0.0987405404,
-0.1774943322,
-0.1970984936,
0.3366287053,
-0.2021456063,
0.1516021639,
0.2968965769,
0.0558718927,
0.0631211624,
0.0386188067,
-0.256809622,
-0.147399947,
0.4189614356,
-0.0821870789,
-0.0837995633,
0.1137785465,
0.1257393807,
0.000220076,
-0.1332896501,
0.1391723305,
0.0586107261,
-0.6309765577,
0.0441205502,
-0.1751818508,
0.0880250037,
-0.1130468845,
0.3112161458,
0.2554552555,
-0.3791322112,
0.2418459654,
-0.6552194953,
-0.0697514787,
0.0945660844,
0.0227356628,
0.2029661536,
0.0134270908,
0.0766263828,
0.1292037368,
-0.2599190772,
-0.3166563511,
0.1748609394,
-0.0904704183,
-0.1386956573,
0.2489342541,
0.1542688608,
0.279936552,
-0.0008411913,
0.1445416808,
0.0790598616,
-0.3133640289,
-0.1696363389,
-0.039088171,
0.0975603908,
0.0073129148,
-0.1443007141,
0.0250959434,
-0.1934477985,
-0.2018470913,
-0.0162706319,
0.0714774355,
0.2128663212,
0.0548100024,
-0.1767895967,
-0.1202125773,
0.052400142,
-0.2712774873,
0.3782561421,
0.1526098996,
0.1362901479,
-0.0707217753,
0.1698895693,
-0.0045895008,
0.0377821624,
-0.350754559,
-0.1537234187,
-0.0099875256,
0.3234341741,
0.3173138499,
-0.2338353246,
0.3399518728,
0.5180973411,
0.2589371204,
0.3506010175,
-0.3326710165,
0.2288189977,
0.204467386,
0.2669622898,
-0.3421081901,
-0.1972787529,
0.3491123319,
0.3381574452,
-0.0222110488,
0.3334654272,
0.2860366404,
0.0999351442,
0.2936147153,
0.1892458349,
0.7017912865,
0.1483007669,
0.3616813719,
0.4879669845,
0.0453408174,
0.0547546409,
0.4047194421,
0.2209102362,
0.0589067675,
0.5563634038,
-0.1501090676,
0.3705187738,
0.027699206,
0.1410740614,
-0.173634395,
-0.2919471264,
-0.2292748392,
-0.0300018415,
0.0328440443,
0.0066142124,
-0.1024398804,
0.0717508867,
-0.3785610199,
-0.0442167185,
-0.3720662296,
0.2042672485,
-0.1073922366,
0.1628195494,
0.1005006731,
-0.2054409385,
-0.0019083418,
0.004628133,
-0.0106320716,
0.0236763675,
0.2068847269,
0.0598008707,
-0.2006709427,
-0.2601110935,
0.0146141071,
0.3534217179,
-0.0258857794,
-0.1044211015,
0.4160711765,
0.0979035348,
-0.1558296233,
0.0114984559,
0.3531677425,
0.347186327,
0.1551683098,
0.1355300695,
-0.0455290452,
0.0878979489,
-0.0654707924,
-0.0037284775,
0.2300328314,
0.0325543731,
0.3787963986,
0.2136468291,
0.2474651337,
-0.2060370743,
0.216629371,
-0.1780155301,
0.1044225171,
-0.3161135018,
0.0276572052,
-0.3075531125,
-0.1017173827,
-0.2598287165,
-0.2114051133,
-0.1291496307,
0.0809333324,
0.297731787,
0.0193512924,
0.0042312271,
-0.323140651,
0.0737728104,
-0.1102202758,
0.1380382627,
0.4347142875,
-0.0541045889,
-0.1887923479,
-0.132920891,
-0.8249322772,
0.2049008012,
-0.3134781718,
-0.3593269587,
0.2230779529,
-0.1967062503,
-0.133731693,
0.2950109541,
0.3823512197,
0.1986643374,
0.1417558342,
0.2696786821,
-0.3786463141,
-0.1755009443,
0.11647553,
0.0805224553,
0.1550346315,
-0.1966102719,
0.0020443711,
-0.0605068356,
0.0296264179,
-0.1787051111,
-0.1014793962,
-0.1546011567,
-0.2730814219,
0.7128174901,
-0.0265822243,
0.1818778217,
0.0089345276,
-0.1415954679,
-0.347932905,
-0.3359898925,
-0.1717507839,
0.1654936224,
0.0380564965,
0.2271930128,
-0.1851953864,
0.0454303995,
-0.4097549915,
0.1165404618,
0.0190045983,
-0.0313897021,
-0.1484309584,
0.161760211,
-0.3718981445,
0.1241319478,
0.2702312768,
0.2067092955,
-0.0751157254,
0.2049672604,
-0.1371403188,
-0.400746882,
0.3941509724,
-0.0630499572,
-0.2641804218,
-0.0338019282,
0.0910276398,
-0.0175067801,
-0.2228854597,
-0.2046369314,
0.3222983778,
0.3259679079,
0.0417649299,
-0.0742106512,
0.1801104993,
-0.1593891978,
-0.0055476795,
0.1667847484,
0.5679107308,
-0.0529465042,
-0.1662544459,
0.4779120982,
0.064498879
] |